#container {
    width: 100%;
    padding-top: 67px
}

.dropdown.dropdown-hover:hover .dropdown-menu{
    display: block;
    margin-top: 0;
}

.add-to-list {
    width: 141px;
    font-size: 82%;
    padding: 2px;
    border: #bbb solid 1px;
    color: #ccc;
}

.add-to-list option{
    color: black;
    font-size: 100%;
}

.menu-form-item {
    padding: 0 20px;
}

.x-small {
    font-size: 75%
}

.attachment-row.attachment-large {
    padding-left: 30px;
    position: relative;
}

.attachment-row.attachment-small .fa {
    margin-right: 8px;
}

.attachment-row.attachment-large .fa {
    position: absolute;
    left: 0;
    top: 8px;
    font-size: 25px;
}

.text-white {
    color: white !important
}

#quickCase label {
    font-size: 82%;
    font-weight: 400;
}

#quickCase .form-group {
    margin-bottom: 5px;
}

#status-indicator {
    position: fixed;
    top: 0;
    left: 50%;
    margin-left: -100px;
    width: 200px;
    z-index: 2001;
    border-radius: 0 0 4px 4px;
    padding: 10px 40px;
    color: white;
    text-align: center;
    font-weight: 700;
}

#status-indicator.success{
    background-image: linear-gradient(to bottom,#5cb85c 0,#419641 100%);
}

#status-indicator.danger{
    background-image: linear-gradient(to bottom,#d9534f 0,#c12e2a 100%);
}

#templates {
    z-index:2001;
}

#quickCase{
    z-index:2000;
}

#selected-keywords {
    height: auto;
    padding: 6px 6px 0;
    min-height: 30px;
}


.editing {
    background: white;
    padding: 5px 20px;

}

/* livesearch */
.livesearch-input {
    position: absolute !important;
    width: calc(100% - 30px) !important;
    
}

.transparent {
    background: transparent;
}

.livesearch-autocomplete {
    color: #bbb;
}

.livesearch-active {
    background: #e5e5e5;
}

#dist-lists .list-group-item {
    cursor: pointer;
}

#dist-lists .list-group-item.bg-warning .list-title {
    font-weight: 700;
}

.keyword-tag{
    background: #eee;
    border: #bbb solid 1px;
    font-size: 10px;
    border-radius: 3px;
    display: inline-block;
    color: black;
    margin-right: 5px;
    padding: 3px 20px 3px 8px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    width: 31.9%;
}

.keyword-tag .close-tag{
    position: absolute;
    top: 3px;
    right: 0;
    cursor: pointer;
    background: #eee;
    width: 20px;
    text-align: center;
    padding: 2px 0;
}



.nav-bubble {
    margin-left: 15px;
}

.nav-bubble span{
    background: white;
    height: 20px;
    width: 20px;
    padding: 3px;
    color: black;
    border-radius: 50%;
}

#keyword-selector {
    font-size: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 30px;
    width: 30px;
    border: #ccc solid 1px;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    background: #eee url(/img/chevron-down.svg) no-repeat 9px 11px;
    background-size: 12px;
}

#keyword-selector option{
    background: white;
}

.monospace {
    font-family: "Courier New", Courier, monospace;
    font-size: 15px !important
}

.icon-left{
    float:left;
    margin-top: 3px;
}

.icon-right{
    float: right;
    margin-top: 3px;
}

.icon-green {
    color: #00aa00
}

.icon-yellow {
    color: #EBA31F
}

.icon-red {
    color: #ff0000
}

.icon-gray {
    color: #888
}

.icon-blue {
    color: #418EC6
}

.icon-small {
    font-size: 16px !important
}

.icon-xsmall {
    font-size: 14px !important;
    vertical-align: inherit
}

.icon-large {
    margin-top: -5px;
    font-size: 22px !important;
}

.icon-xlarge {
    vertical-align: sub;
    font-size: 25px !important;
    color: #337ab7
}

.bg-warning {
    background-color: #fcf8e3 !important
}

.bg-light {
    background-color: #f1f1f1 !important
}

/*.panel-body div:last-child, .panel-body ul:last-child {margin-bottom: 0 !important}*/

.option {
    margin-bottom: 15px
}

.modal {
    text-align: center;
    padding: 0 !important;
}

.strong {
    font-weight: bold;
    font-size: 140%;
}

.stat-title {
    position: relative;
    text-align: center;
}

.stat-actions {
    position: absolute;
    top: 10px;
    right: 30px;
}

.mb-5 {
    margin-bottom: 5px;
}

.mb-10 {
    margin-bottom: 10px;
}

.well {
    background: #fff;
}

.field-inline {
    display: inline-block;
}

.field-inline span {
    margin-right: 5px;
}

.field-inline span:empty {
    margin: 0
}

.line-break {
    display: table;
}

.bg-disabled {
    background: #f1f1f1;
    color: #f1f1f1;
    border: #bbb solid 1px;
}

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

.table-fixed td{
    vertical-align: middle !important;
}
/* update info */

#version-updates {
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 50%;
    width: 200px;
    margin-left: -100px;
    padding: 6px 10px;
    border-radius: 0 0 4px 4px;
    text-align: center;
    cursor: pointer;
    font-weight: bold
}

.offside {
    position: absolute;
    left: -9999px;
}

/* nav */

.nav>li>a {
    padding: 15px 12px
}

.navbar .fa {
    margin-right: 6px;
    min-width: 15px;
    text-align: center
}

@media all and (max-width:768px) {
    #main-navbar .nav,
    #main-navbar .nav>li {
        display: block;
        float: left
    }
    .quick-search {
        float: right
    }
    .navbar-nav,
    .navbar-right {
        margin: 0
    }
    .nav-toggle {
        margin: 10px
    }
    .nav-toggle .fa {
        margin: 0
    }
    .navbar-collapse,
    .navbar-collapse.in {
        max-height: unset !important;
        overflow: visible
    }
    .navbar-nav .open .dropdown-menu {
        position: absolute;
        background-color: white;
    }
    .navbar-inverse .navbar-nav .open .dropdown-menu .divider {
        background: #ddd;
    }
    .dropdown-menu {
        box-shadow: 0 6px 12px rgba(0, 0, 0, .175) !important
    }
    .navbar-inverse .navbar-nav .open .dropdown-menu>li>a {
        color: black;
    }
    .navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover {
        background: #eee;
        color: black;
    }
}

.modal:before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    margin-right: -4px;
}

.modal-dialog {
    display: inline-block;
    text-align: left;
    vertical-align: middle;
}

.modal-dialog.modal-large {
    width: 98vw;
    margin: 0;
    padding: 0;
}

.modal-dialog.modal-large iframe {
    height: 88vh !important;
}

.modal-body.max-height {
    height: 410px;
    overflow-y: auto;
}

.modal-content.modal-large {
    height: auto;
    min-height: 100%;
    border-radius: 0;
}

.panel-heading h4 a:hover {
    text-decoration: none;
    color: #337ab7
}

.user-picker table td{
    vertical-align:  middle !important;
}

.user-picker select {
    margin: 20px 15px 0 15px;
    width: auto
}

#document_choose {
    height: 70vh
}

#showExplorer{
    height: 100vh;
    width: 100vw;
}

#explorer{
    width: 100%;
    height: calc(100vh - 130px);
    border: #bbb solid 1px;
}

#explorer_attachments{
    height: 250px;
    overflow-y: auto;
    position: relative;
}

.explorer_no_selection{
    width: 120px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.icon-big {
    font-size: 180%
}

.showContact:hover {
    background: #fcf8e3 !important
}

.small-heading {
    padding: 5px 15px 0
}

.small-body {
    padding: 5px 15px
}

.glyphicon-spin {
    -webkit-animation: spin 1000ms infinite linear;
    animation: spin 1000ms infinite linear;
}

.column-text-2 {
    -webkit-column-count: 2;
    /* Chrome, Safari, Opera */
    -moz-column-count: 2;
    /* Firefox */
    column-count: 2;
    -webkit-column-gap: 20px;
    /* Chrome, Safari, Opera */
    -moz-column-gap: 20px;
    /* Firefox */
    column-gap: 20px;
}

.column-text-2 .checkbox:first-child {
    margin-top: 0
}

.column-text-3 {
    -webkit-column-count: 3;
    /* Chrome, Safari, Opera */
    -moz-column-count: 3;
    /* Firefox */
    column-count: 3;
    -webkit-column-gap: 20px;
    /* Chrome, Safari, Opera */
    -moz-column-gap: 20px;
    /* Firefox */
    column-gap: 20px;
}

.column-text-3 .checkbox:first-child {
    margin-top: 0
}

.bg-success {
    background-color: #dff0d8 !important
}

.bg-info {
    background-color: #d9edf7 !important
}

.bg-danger {
    background: #c12e2a !important;
    
}   

.bg-danger .mce-ico {
    color: white !important;
}

.mce-privacy-enabled .mce-btn-group:last-child {
    float:right;
    border-left: none;
}

.customfield-checkbox {
    text-align: left;
    background: #eee;
    padding: 8px 10px 7px;
    margin: 0;
    border-radius: 4px;
}

/* JQuery UI */

.ui-sortable-helper {
    cursor: ns-resize
}

.ui-state-highlight {
    content: "drop here";
    background-color: #fff;
    border: 1px dashed orange;
    display: block;
    margin: 2px 0 1px;
    padding: 10px 15px;
    height: 41px
}

.drop-hover {
    background: #eee
}

.checkbox-group .btn-default.active,
.checkbox-group .btn-default:hover {
    background: #337ab7;
    color: white;
    text-shadow: none;
}

span.btn-sm {
    cursor: pointer
}

.no-bottom-margin {
    margin-bottom: 0
}

tr.hover:hover {
    background: #fcf8e3 !important
}

.pointer {
    cursor: pointer
}

.unstyled,
.unstyled:hover {
    color: black;
    text-decoration: none
}

.icon-large {
    float: left;
    margin-right: 10px;
    margin-top: -2px;
}

.hover:hover {
    background: #f1f1f1
}

th.sort-key:after {
    font-family: 'FontAwesome';
    content: " \f0dc";
    color: #aaa;
    font-size: 90%;
}

td input[type="checkbox"] {
    margin: 0
}

.line-dotted {
    border-bottom: #777 dotted 1px;
    margin: 6px 0
}

.badge-success {
    background: #093
}

.badge-primary {
    background: #337ab7
}

.badge-small {
    font-size: 9px;
    vertical-align: text-top;
    font-weight: normal;
}

.badge-medium {
    font-size: 11px;
    vertical-align: text-top;
    font-weight: normal;
}

.blind {
    display: none
}

.explorer-item {
    display: block;
    float: left;
    clear: both;
    margin-bottom: 1px;
}

.remove-explorer-item {
    cursor: pointer;
}


#explorer_target {
    overflow-y: scroll;
    max-height: 200px;
    position: absolute;
    bottom: -35px;
    height: auto;
    background: white;
    padding: 10px;
    border: 1px solid rgba(0,0,0,.15);
    box-shadow: 0 6px 12px rgba(0,0,0,.175);
}

.navbar-inverse .navbar-nav>li>a {
    color: #ffffff
}

.navbar-inverse .navbar-nav>li>a:hover {
    background-image: linear-gradient(to bottom, #080808 0px, #0f0f0f 100%);
    background-repeat: repeat-x;
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.25) inset;
}

/* form elements */

.btn-file input[type="file"] {
    background: white none repeat scroll 0 0;
    cursor: inherit;
    display: block;
    font-size: 100px;
    min-height: 100%;
    min-width: 100%;
    opacity: 0;
    outline: medium none;
    position: absolute;
    right: 0;
    text-align: right;
    top: 0;
}


.keyword-inactive {
    background: #f5f5f5 !important;
    color: #ccc;
}

.keyword-inactive:before {
    font-family: 'FontAwesome';
    content: '\f05e';
    margin-right: 5px;
}

.ui-autocomplete {
    border-radius: 4px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
}

.ui-autocomplete a {
    display: block;
    padding: 8px 15px !important;
    border-bottom: #ddd solid 1px;
}

.ui-autocomplete a:hover {
    text-decoration: none;
    background-image: linear-gradient(to bottom, #337ab7 0, #2e6da4 100%) !important;
}

.ui-autocomplete .ui-state-active {
    background-image: linear-gradient(to bottom, #337ab7 0, #2e6da4 100%) !important;
    border: none !important;
    border-bottom: #bbb solid 1px !important;
}

textarea.textarea-small {
    height: 34px
}

.inline {
    display: inline
}

.block {
    display: block
}

.color-circle {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 8px;
    border: gray solid 1px;
    margin-right: 10px;
    vertical-align: middle
}

#kwcats .list-group-title {
    padding: 8px;
    background: #f5f5f5;
    cursor: pointer;
}

#kwcats .list-group-item {
    padding: 0
}

#kwcats .list-group-content {
    padding: 20px 15px
}

/* spinner */

#curtain {
    position: fixed;
    top: 0;
    z-index: 10000;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.6)
}

.spinner {
    width: 100px;
    height: 100px;
    position: relative;
    margin: 0 auto;
    top: 50%;
    transform: translateY(-50%);
}

.svg-qr-code-empty .fa {
    display: inline-block;
    font-size: 35px;
    width: 60px;
    color: #bbb;
    background: #f1f1f1;
    margin: 5px;
    padding: 10px;
}

.svg-qr-code {
    position: relative;
    cursor: pointer;
}

.svg-qr-code:hover::after {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.4);
    font-family: 'FontAwesome';
    content: "\f00e";
    color: white;
    padding-top: 25%;
    font-size: 350%;
    text-align: center;
}

.qr-enlarge-box:hover::after {
    cursor: pointer;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    position: absolute;
    content: "\f010";
    background: rgba(0, 0, 0, 0.4);
    font-family: 'FontAwesome';
    text-align: center;
    color: white;
    padding-top: 20%;
    font-size: 850%;
}

.qr-enlarge-box {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    min-height: 400px;
    height: 100%;
    z-index: 1000;
    background: white;
    padding: 20px 0;
}


.qrcode{
    width: 220px;
    height: 100%;
    float: left;
    padding-right: 20px;
}

.qrcode .inner {
    width: 200px;
    height: 200px;
}

.contact-details {
    float: left;
}

.spinner-box {
    display: none;
    background: #f1f1f1;
    color: #ccc;
    font-size: 100%;
    height: 100px;
    padding-top: 30px;
    width: 100%;
    text-align: center;
}

.double-bounce1,
.double-bounce2 {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #fff;
    opacity: 0.6;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-animation: sk-bounce 2.0s infinite ease-in-out;
    animation: sk-bounce 2.0s infinite ease-in-out;
}

.no-border {
    border: none
}

.no-padding {
    padding: 0
}

.no-radius {
    border-radius: 0
}

.table-ul {
    margin: 0;
    padding: 0 0 0 15px
}

.nowrap {
    white-space: nowrap;
}


/* appointment picker */

.user-picker-table .btn {
    display: inline;
}

.appointment-picker {
    padding: 0;
}

.appointment-picker .day-table {
    border-collapse: collapse;
    border: #ddd solid 1px;
    width: 100%;
    font-size: 82%;
}

.appointment-picker .day-caption {
    padding: 0 5px;
    border-top: #ddd solid 1px;
}

.appointment-picker .hour{
    width: 24px;
    height: 24px;
    border-top: #ccc solid 1px;
    border-bottom: #ccc solid 1px;
}

.appointment-picker .hour:nth-child(2n){
    border-left: #aaa solid 1px;
    border-right: #aaa dotted 1px;
}

.appointment-picker .hour:last-child{
    border-right: #aaa solid 1px;
}

.appointment-picker .time-row td{
    border-left: #aaa solid 1px;
    padding: 5px 0;
}

.appointment-picker .time-row td:first-child{
    border: none
}

.appointment-picker .time-row td:last-child{
    border-right: #aaa solid 1px;
    
}

.user-row .day-stat{
    padding: 6px 0 2px;
}

.user-row .day-stat:hover{
    background: white;
    cursor: pointer;
    
}

.user-row .day-stat-active{
    background: white;
    border: #ddd solid 1px;
    border-bottom: white solid 1px;
}

.user-row-picker > td{
    padding: 0 !important;
}

.occupied {
    background-image: linear-gradient(to bottom,#f2dede 0,#e7c3c3 100%);
    box-shadow: 2px 2px 0 white inset, -2px -2px 0 white inset;
    
}
.selected,
.occupied.case {
    background-image: linear-gradient(to bottom,#dff0d8 0,#c8e5bc 100%);
    box-shadow: 2px 2px 0 white inset, -2px -2px 0 white inset;
}

.day-event {
    position: relative;
}
.day-event:after {
    font-family: 'FontAwesome';
    content: ' \f111';
    color: red;
    position: absolute;
    right: -20px

}

.soon-cases-warning {
    border-radius: 4px 4px 0 0;
    background-image: linear-gradient(to bottom,#f2dede 0,#e7c3c3 100%);
    
}

.soon-cases-warning.active a {
    height: auto;
    animation-name: none;
}

.soon-cases-warning a {
    color: #a94442;
    height: 49px;
    margin-right: 0 !important;
    animation-name: color;
    animation-duration: 2s;
    animation-iteration-count: infinite;
}
      
@keyframes color {
    0% {
        background-color: #fff;
    }
    50% {
        background-color: rgba(255,255,255,0);
    }
    100% {
        background-color: #fff;
    }
}


#footer {
    position: fixed;
    bottom: 4px;
    right: 4px;
    font-size: 9px;
    color: #777
}

.hr {
    border: 0;
    border-top: #ddd solid 1px;
    margin: 10px 0;
    height: 1px
}

.readonly label {
    margin: 5px 0 0;
}

.btn-dropdown {
    padding: 2px 20px;
    display: block;
    text-align: left;
    width: 100%;
    color: black;
}

.btn-dropdown:hover {
    background: #e8e8e8;
    text-decoration: none;
}

.checkbox-line {
    padding: 8px 0;
}
.bg-light-gray {
    background: #f1f1f1;
}
.bg-pdf{
    background: #BE1C2B;
}

.bg-doc,
.bg-docx{
    background: #255499;
}

.bg-ppt,
.bg-pptx{
    background: red;
}

.checkbox-line span:first-child {
    display: inline-block;
    margin: -5px 8px -5px 0;
    padding: 5px;
    text-align: center;
    width: 25px;
    height: 25px;
}

#print-preview .list-group-item .col-lg-5 {
    white-space: nowrap;
    overflow: hidden;
}

#contacts_table thead {
    position: sticky;
    background: white;
    top: 0;
    box-shadow: 0 -2px 0px #bbb inset;
}

.contacts .info {
    display: none
}

.contacts .info.empty {
    display: block;
    height: calc(100% - 43px);
    background: #f1f1f1;
    color: #999;
    text-align: center;
}

.contacts .info.empty .contacts-empty{
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.contacts-empty {
    line-height: 0.8em;
    font-size: 90%;
}

.contacts-empty .btn {
    color: #777;
}

.result-info {
    font-size: 110%;
    font-weight: bold;
    padding-bottom: 25px;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.panel-contacts {
    height: calc(100vh - 84px);
    margin-bottom: 0;
}

.panel-contacts .contacts {
    height: calc(100% - 53px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 0;
    border-top: white solid 15px;
}

.switch {
    margin: 3px 8px 5px 0;
    display: inline-block;
    padding: 5px 0 0 30px;
}

.switch > input[type="checkbox"] {
    display: none;
}

.switch > label {
    cursor: pointer;
    height: 0px;
    position: relative;
}


.switch>label::after {
    background: #f1f1f1;
    top: -12px;
    left: -30px;
    content: '';
    height: 25px;
    position: absolute;
    width: 25px;
}

.switch>input[type="checkbox"]:checked+label::after {
    font-family: 'FontAwesome';
    color: #3c763d;
    content: "\f00c";
    background: #dff0d8;
    padding-left: 5px;
    font-size: 115%;
}

.bg-green {
    background-image: linear-gradient(to bottom, #5cb85c 0, #419641 100%)
}
.calendar-selector .owner{
    background: #c8e5bc;
}

.calendar-selector .reader{
    background: #f1f1f1;
}


.bg-white {
    background: white
}
.ui-sortable-placeholder,
.ui-state-highlight{
    background: #dff0d8 !important;
    border: #b2dba1 dashed 1px;
}
.ui-sortable-helper{
    background: white !important;
}

.panel-fixed {
    height: calc(100vh - 84px);
    margin-bottom: 0;
}

.panel-fixed .fixed-inner {
    height: calc(100% - 53px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 0;
    border-top: white solid 15px;
}

.decent {
    font-weight: 400;
    margin: 0
}

.ok:after {
    content: ' OK';
}

.pt-0 {
    padding-top: 0;
}

.radioblock {
    padding-left: 45px;
    text-indent: -25px;
}

.radioblock input {
    width: 20px;
}

.export-selection .has-children ul{
    margin-top: 15px; 
}

#body {
    height: 350px;
}

.viewport-height {
    margin-bottom: 0;
    height: calc(100vh - 84px);
    display: flex;
    flex-direction: column;
}

.scroll-panel{
    overflow-y: auto;
}

.viewport-height-50 {
    display: flex;
    flex-direction: column;
    height: calc(50vh - 54px);
}

.flex-grow-1 {
    flex-grow: 1
}

@media all and (max-width:1024px) {
    .table {
        table-layout: fixed
    }
    td,
    th {
        text-overflow: ellipsis;
        min-width: 100px;
        white-space: nowrap;
        overflow: hidden;
    }
    .panel-fixed {
        height: auto;
    }
    .panel-fixed .fixed-inner {
        height: auto;
        overflow-y: auto;
        overflow-x: hidden;
        padding-top: 0;
        border-top: white solid 15px;
    }

    .contacts .info.empty .contacts-empty{
margin-top: 40px;
    }
    
}

.double-bounce2 {
    -webkit-animation-delay: -1.0s;
    animation-delay: -1.0s;
}

@-webkit-keyframes sk-bounce {
    0%,
    100% {
        -webkit-transform: scale(0.0)
    }
    50% {
        -webkit-transform: scale(1.0)
    }
}

@keyframes sk-bounce {
    0%,
    100% {
        transform: scale(0.0);
        -webkit-transform: scale(0.0);
    }
    50% {
        transform: scale(1.0);
        -webkit-transform: scale(1.0);
    }
}

/* will be obsolete */

/* ul {
    border: none
}

li {
    padding: 0
}

li:nth-child(2n+1) {
    background: unset !important
}

th {
    font-weight: bold
} */