.btn {
    border-radius: @button-radius;
}

.panel-heading {
    padding: 6px 10px;
}

.panel-body {
  padding: 14px;
  .clearfix();
}

blockquote {
    font-size: @font-size-base;
}

.pagination-sm > li > a {
    line-height: @line-height-small;
}

.preset {
    text-overflow: ellipsis;
    overflow: hidden !important;
}

.preset > div{
    padding-right: 20px;
}

.modal-header {
  padding: 10px 14px;
  border-bottom: 1px solid @modal-header-border-color;
  min-height: (10px + @modal-title-line-height);
}

.modal-footer {
    margin-top: 10px;
    padding: 15px 15px 15px;
}

.table thead > tr > th {
    border-bottom: 1px solid @table-border-color;
    font-weight: normal;
}

.form-group {
  margin-bottom: 12px;
}

.form-group.hidden-cell {
    margin-bottom: 0;
}

.panel-group .panel + .panel {
    margin-top: 4px;
}

.alert {
    padding: 5px 18px;
}

label {
  margin-bottom: 3px;
}

.table {
    margin-bottom: 10px;
}

.page-header {
  margin: 10px 0;
  border-bottom: 0;
  padding-bottom: 2px;
  min-height: 33px;
}

.modal-header {
    background-color: @default-heading-bg-color;
}

div.list-expanded > ul > li > div.expanded-row > .cell {
    padding-left: 6px;
    padding-right: 3px;
    border-left: 1px solid @default-border-color;
}

div.list-expanded > ul > li > div.expanded-row > .cell:first-child {
    padding-left: 0;
    border-left: 0;
}

.list .checkbox-dropdown {
    margin-right: -10px;
    top: 1px;
    margin-top: -2px;
}

.list .checkbox-dropdown > a {
    padding: 0;
}

.list > table.table td > span.glyphicon {
    line-height: @line-height-computed;
}

.list > table.table td > span.glyphicon.pull-right {
    margin-left: 5px;
}

table.table > thead th > a {
    color: @gray-light;
}

table.table > thead th {
    color: @gray-light;
}


.cell label,
.filter label {
    color: @gray-light;
    font-weight: normal;
}

.cell > label,
.filter label {
    margin-bottom: 2px;
}


.btn.active {
    box-shadow: none;
}

.navbar-inverse {
    border-bottom-width: 0 !important;
}

@media screen and (min-width: @screen-sm-min) {
    .navbar .navbar-header {
        width: 181px;
    }
}

.navbar .navbar-header a.navbar-brand {
    margin-left: auto;
    margin-right: auto;
}

.navbar-brand {
    padding: 0;
}

#global-search-input {
    width: 145px;
    margin-top: 1px;
    padding-right: 10px;
}

.progress.pre-loading {
    margin-top: -50px;
    margin-bottom: 31px;
}

.edit form {
    margin: 0;
}

.button-container {
    padding: 0 0 10px;
}


.margin {
    margin: 8px 0;
}

ul.dropdown-menu > li.checkbox {
    margin-left: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding: 3px 0 3px 20px;

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

ul.dropdown-menu > li.checkbox:last-child {
    margin-bottom: 3px;
}

.page-header h3 {
    margin-top: 0px;
    margin-bottom: 8px;
}

.page-header .breadcrumb-separator {
    padding: 0 6px;
}

.modal-header a {
    color: @text-color;
}

.list-buttons-container > div {
    float: left;
    margin-right: 15px;
}

.list-buttons-container > div.total-count {
    margin-right: 0px;
    float: right;
    padding: 6px 0;
}

.list-container .pagination {
    margin: 0;
}

.floated-row > div  {
    float: left;
    margin-right: 15px;
}

.search-row {
    margin-left: -3px !important;
    margin-right: -3px !important;
}

.search-row > div {
    padding-left: 2px !important;
    padding-right: 2px !important;
}

.btn-icon > span {
    margin: 0 20px;
}

.field .row {
    margin-left: -5px !important;
    margin-right: -5px !important;
}

.field .row > div {
    padding-left: 5px !important;
    padding-right: 5px !important;
    float: left;
}

.field .form-control, .field .btn {
    margin-bottom: 3px;
}

.field .input-group .form-control, .field .input-group .btn {
    margin-bottom: 0;
}

.field .input-group {
    margin-bottom: 3px;
}

.field .link-container {
    margin-bottom: -1px;
}

.field .link-container .list-group-item > div {
    margin: -3px 0 -3px;
}

.field .link-container .list-group-item > div > div {
    margin: 6px 0;
}

.field .link-container .list-group-item .form-control,
.field .link-container .list-group-item .btn {
    margin-top: 1px;
    margin-bottom: 1px;
}

.field .link-container .list-group-item .form-control {
    width: 140px !important;
}

.filter .field .link-container .list-group-item a {
    margin-top: 1px;
}

.field .link-container .list-group-item a {
    margin-top: 1px;
}

.field .link-container .list-group-item.link-with-role a {
    margin-top: 6px;
}

.detail-field-container {
    padding: 7px 0;
}

#login.panel > .panel-heading {
    background-color: @login-panel-heading-bg;
    padding: 0;
    margin: -2px;
}

@media screen and (min-width: @screen-sm-min) {
    .modal-dialog {
        width: 740px !important;
    }
}
@media screen and (min-width: @screen-md-min) {
    .modal-dialog {
        width: 900px !important;
    }
}

table.table > tbody td > .list-row-buttons button {
    position: relative;
    margin-top: 2px;
}

.list-row-buttons span.caret {
    border-top-color: #999;
}

.list > table {
    margin-bottom: 0;
}

.list > ul {
    margin-bottom: 0;
}

.list > table td input[type="checkbox"],
.list > table th input[type="checkbox"] {
    margin: 0;
    position: relative;
    top: 2px;
}

.list > table th input[type="checkbox"] {
    margin: 0;
    position: relative;
    top: 3px !important;
}

.list > table th span.caret {
    border-top-color: #999;
}
.list > table th span.caret-up {
    border-bottom-color: #999;
}

.filter a.remove-filter {
    display: none;
}
.filter:hover a.remove-filter {
    display: block;
}

select[multiple].input-sm {
    height: 90px !important;
}

.input-group-btn > select.form-control {
    position: relative; 
    display: inline-block;
    width: auto;
    vertical-align: middle;
    margin-right: -1px;
}

.input-group-btn:last-child > select.form-control {
    margin-right: 0;
    margin-left: -1px;
}

.input-group .form-control:focus {
    z-index: 3;
}

.panel-body > .list-container > .list-expanded {
    margin-left: -15px;
    margin-right: -15px;
}
.panel-body > .list-container > .list {
    margin-left: -15px;
    margin-right: -15px;
}
.panel-body > .list-container > .list > table td:first-child,
.panel-body > .list-container > .list > table th:first-child {
    padding-left: 15px;
}
.panel-body > .list-container > .list > table td:last-child,
.panel-body > .list-container > .list > table th:last-child {
    padding-right: 15px;
}

.list-expanded > .show-more {
    padding: 0px;
    margin-top: -1px;
}

.list-expanded > li.show-more > .btn {
    margin-left: -1px;
    margin-right: -4px;
}

.list-expanded > ul > li .list-row-buttons {
    margin-right: -12px;
    margin-top: -10px;
}

.show-more > .btn {
    border-radius: 0;

    border-color: #e0e0e0;
}

.panel-body > .list-container:first-child > .list-expanded:first-child {
    margin-top: -15px;
}
.panel-body > .list-container:last-child > .list-expanded:last-child {
    margin-bottom: -15px;
}

.panel-body > .list-container:first-child > .list:first-child {
    margin-top: -15px;
}
.panel-body > .list-container:last-child > .list:last-child {
    margin-bottom: -15px;
}

.expanded-row {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

#notifications-panel .expanded-row {
    white-space: normal;
    overflow: hidden;
}

#notifications-panel .right {
    padding-top: 5px;
}

.expanded-row .cell {
    display: inline-block;
}

.caret-up {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 2px;
    vertical-align: middle;
    border-bottom: 4px solid #000;
    border-right: 4px solid transparent;
    border-top: 0 dotted;
    border-left: 4px solid transparent;
    content: "";
}

.list > table {
    table-layout: fixed;
}

.list > table td, table.list th {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.list > table td.cell-buttons {
    overflow: visible;
}

.dashboard-header .dashboard-buttons {
    margin-left: 10px;
}

.panel.dashlet > .panel-heading > .menu-container {
    margin-top: -8px;
    right: -10px;
}

.panel.dashlet > .panel-heading > .panel-title {
    cursor: default;
}

.panel.dashlet > .panel-body {
    height: 295px;
    overflow-y: auto;
    overflow-x: hidden;
}

.panel.dashlet.double-height > .panel-body {
    height: 642px;
}

.panel-heading > .btn-group {
    top: -7px;
    right: -11px;
}

.list-container + .button-container {
    margin-top: 6px;
    padding-bottom: 0;
}

td.cell-buttons > .btn-group {
    margin-top: -8px;
    margin-bottom: -8px;
    margin-right: -10px;
}

.list-expanded > li > .right > .btn-group {
    top: -7px;
    right: -11px;
}

.panel.note-editor {
    border: 1px solid @input-border;
    border-width: 1px;
}

.note-editor .note-toolbar {
    border-bottom: 0 !important;
    background-color: transparent;
}

.note-editor .panel-heading {
    padding: 0px 5px 2px 5px;
}

.note-editor .panel-heading > .btn-group {
    right: 0;
    top: 0;
}

.panel {
    border-width: 2px;
}

.panel-heading > .btn-group > .btn {
    border-radius: 0 !important;
}

.list > table thead > th {
    border-top-width: 1px !important;
}

.show-more > .btn-block {
    text-align: left;
    padding-left: 15px;
}

.autocomplete-suggestions { border: 1px solid #999; background: #FFF; cursor: default; overflow: auto; -webkit-box-shadow: 1px 4px 3px rgba(50, 50, 50, 0.64); -moz-box-shadow: 1px 4px 3px rgba(50, 50, 50, 0.64); box-shadow: 1px 4px 3px rgba(50, 50, 50, 0.64); }
.autocomplete-suggestion { padding: 2px 5px; white-space: nowrap; overflow: hidden; }
.autocomplete-selected { background: #F0F0F0; }
.autocomplete-suggestions strong { font-weight: normal; color: #3399FF; }

.gray-box {
    background-color: @gray-lighter;
    margin: 0 5px 3px 0;
    padding: 3px 3px 3px 5px;
}

.gray-box .preview {
    overflow: hidden;
    display: inline-block;
}

.attachment-preview {
    display: inline-block;
    vertical-align: top;
    margin: 3px 6px 3px 0;
}

.field > .attachment-preview {
    overflow: hidden;
}

.attachment-block {
    display: block;
    vertical-align: top;
}

.stick-sub {
    position: fixed;
    top: 0;
    margin: 44px 0 0;
    z-index: 4;
}

.stick-sub.button-container {
    background-color: @body-bg;
    padding: 3px 3px 3px 0;
    width: 100%;
}


@media screen and (max-width: @screen-sm-min) {
    .stick-sub {
        margin-top: 0;
    }
}

@font-face {
     font-family: Open Sans;
     src: url('../fonts/open-sans-regular.eot?') format('eot'),
          url('../fonts/open-sans-regular.woff') format('woff'),
          url('../fonts/open-sans-regular.ttf')  format('truetype'),
          url('../fonts/open-sans-regular.svg#svgFontName') format('svg');
}

.badge-circle {
    width:8px;
    height:8px;
    border-radius: 4px;
    text-align: center;
    display: table-cell;
    font-size: 5px;
    line-height: 8px;
    text-align: center;
    background-color: @main-gray;
}

.badge-circle.badge-circle-danger {
    background-color: @brand-danger;
}
.badge-circle.badge-circle-warning {
    background-color: @brand-warning;
}

.danger.glyphicon {
    color: @brand-danger;
}

.warning.glyphicon {
    color: @brand-warning;
}


body > footer {
    background-color: @gray-lighter;
}


body > footer > p {
    padding: 6px 15px;
}
body > footer > p.credit {
    margin: 0;
}
body > footer > p,
body > footer > p a,
body > footer > p a:hover,
body > footer > p a:active,
body > footer > p a:visited {
    color: @gray;
}

.navbar-right {
    margin-right: -2px !important;
}

.navbar-collapse {
    overflow-x: hidden !important;
}

.navbar-form.global-search-container {
    padding-left: 0;
    padding-right: 0;
}

#global-search-panel > .panel > .panel-body {
    max-height: 294px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 15px;
}

#notifications-panel > .panel > .panel-body {
    max-height: 294px;
    overflow-y: auto;
    overflow-x: hidden;
}

@media screen and (max-width: @screen-sm-min) {
    .list {
        width: auto;
        overflow-y: hidden;
        overflow-x: scroll;
    }
    .list.list-expanded {
        width: auto;
        overflow-x: hidden;
    }
    .list > table {
        min-width: @screen-sm-min;
    }
}


.modal.in .modal.in {
    overflow: visible !important;
    overflow-y: visible !important;
}

.record > .panel:first-child {
    margin-top: 0;
}

.record > .panel {
    margin-top: -1 * @line-height-computed - 2;
}

.bottom > .panel.sticked,
.side > .panel.sticked {
    margin-top: -1 * @line-height-computed - 2;
}

.stream-head-container {
    padding-bottom: 3px;
}

.stream-head-text-container {
    padding-left: 26px;
}

.stream-head-container > img.avatar {
    display: inline-block;
    margin-top: -3px;
    margin-right: 3px;
    margin-bottom: -2px;
}

img.avatar.avatar-link {
    display: inline-block;
    margin-top: -2px;
    margin-right: 3px;
}

.stream-post-container,
.stream-attachments-container,
.stream-details-container,
.stream-subject-container,
{
    padding: 2px 0 5px 26px;
}

.link-container .list-group-item {
    padding: @padding-base-vertical @padding-base-horizontal;
    line-height: @line-height-computed;
}

.list-group-item {
    background-color: transparent;
}

.note-editable blockquote {
    font-size: @font-size-base;
}

.legend-container table td {
    padding: 2px 2px;
    line-height: 1em;
}

.textcomplete-item a {
    cursor: default;
}

.complext-text a {
    word-wrap: break-word;
}

#popup-notifications-container {
    overflow-y: auto;
    overflow-x: hidden;

    right: 0px;
    bottom: 0px;
    position: fixed;
    height: auto;
    z-index: 1000;

    float: right;
}

.popup-notification {
    width: 400px;
    padding: 14px;
    background-color: @panel-bg;
    border: 2px solid @main-gray;
    margin-top: 10px;
}

.popup-notification a.close{
    margin-top: -8px;
    margin-right: -3px;
}

.popup-notification-default {
    border-color: @gray-light;
}

.popup-notification-danger {
    border-color: @brand-danger;
}

.popup-notification-warning {
    border-color: @brand-warning;
}

.popup-notification-primary {
    border-color: @brand-primary;
}

.popup-notification-success {
    border-color: @brand-success;
}

.popup-notification-info {
    border-color: @brand-info;
}

.popup-notification h4 {
    margin-top: 0px;
}

.popup-notification-default h4 {
    color: @gray-light;
}

.popup-notification-danger h4 {
    color: @brand-danger;
}

.popup-notification-warning h4 {
    color: @brand-warning;
}

.popup-notification-primary h4 {
    color: @brand-primary;
}

.popup-notification-success h4 {
    color: @brand-success;
}

.popup-notification .cell {
    margin-bottom: 5px;
}


@media screen and (max-width: @screen-sm-min) {
    #popup-notifications-container {
        width: 100%;
    }
    .popup-notification {
        width: auto;
    }
}

.list-group-tree {
    border: 0;
}
.list-group-tree > li {
    border: 0;
    padding: 0 0 0 15px;
}

.list-group-tree > li .cell {
    padding: 2px 0;
}

.text-bold {
    font-weight: 800;
}

.email-address-create-dropdown .btn {
    position: relative;
    top: -1px;
    padding: 0 4px;
    margin: 0;
    margin-bottom: 0;
    border: 0;
}

#main > .calendar-container {
    margin-top: 10px;
}

#notifications-panel {
    position: absolute;
    width: 600px;
    z-index: 1001;
    right: 0;
    left: auto;
}

#global-search-panel {
    position: absolute;
    width: 500px;
    z-index: 1001;
    right: 0;
    left: auto;
}



@media screen and (min-width: @screen-sm-min) {
    #global-search-panel {
        margin-top: 5px;
    }
}

@media screen and (max-width: @screen-sm-min) {
    #notifications-panel {
        position: fixed;
        width: 100%;
        top: 0;
        right: none;
        left: 0;
        margin-right: 10px;
    }

    #global-search-panel {
        position: fixed;
        width: 100%;
        top: 0;
        right: none;
        left: 0;
        margin-right: 10px;
    }

    .navbar-form.global-search-container {
        padding-left: 8px;
        padding-right: 8px;
    }

    .navbar-form.global-search-container > .input-group {
        margin-left: 14px;
    }

    #global-search-input {
        width: 100%;
    }

    #header .navbar-right > li {
        display: inline-block;
    }

    #header .navbar-right > li.notifications-badge-container {
        display: inline-block;
        float: right;
    }
}
