.th-history-buttons { width: 51px }

.buttons-options { text-align: right; font-size: 0 }
.buttons-options > div { margin: 1.25px; display: inline-block; }
.buttons-options > div:first-child { margin-left: 0 }
.buttons-options > div:last-child { margin-right: 0 }
.buttons-options { width: 152px; min-width: 152px; }
.buttons-options.additional-1 { width: 190px; min-width: 190px; }
.buttons-options.additional-2 { width: 223px; min-width: 223px; }
.buttons-options.additional-3 { width: 260px; min-width: 260px; }
.sidebar a { cursor: pointer; }
.no-margin { margin: 0 }
.tooltip-inner { word-wrap: break-word; }
.box-table-body { overflow-x: auto; clear: both; }
.box { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2)  }
.box-info { background: #fafeff }
.box-warning { background: #fffdfa }
.data-table td {line-height: 198% !important;}
.table { margin-bottom: 6px; }

button.dropdown-toggle > span.caret { margin-left: 5px; }
.dropdown.actions-list { margin-right: 5px; float: right; }
.dropdown.actions-list i { min-width: 15px;text-align: left; }
.dropdown.actions-list a { cursor: pointer; }
.dropdown.fields-list { margin-right: 5px; float: right; }
.dropdown.fields-list .dropdown-menu li label {cursor: pointer; padding: 0 10px; font-weight: 400; color: #777 }
.dropdown.fields-list .dropdown-menu li input { margin-right: 5px }
.search-bar .dropdown-menu, .dropdown.fields-list .dropdown-menu {max-height: 400px !important;overflow: auto;}

/* Modal links, for exports etc, from buttons response... */
.message-modal > .modal { z-index: 99999999999; }
.message-modal .modal-dialog .modal-body p > a, .message-modal .modal-dialog .modal-body > a { color: white; font-weight: 600; text-decoration: underline; }
.message-modal modal-dialog .modal-body p > a:hover, .message-modal .modal-dialog .modal-body > a:hover { color: white; text-decoration: none; }

.flex-table { display: flex; flex-wrap: wrap;}
.flex-table .col-rows { /*overflow-x: auto;*/ }
.flex-table .col:nth-child(1) { order: 2; }

@media screen and (min-width: 768px) {
    .content .box > .box-body > .box {
        margin-left: 40px;
        width: calc(100% - 40px);
    }
}

/*
 * Single mode settings
 */
.content .single-mode > .box-body > .box { margin-top: 10px; width: calc(100% - 50px); }
.content .single-mode > .box-body > .row > div.col > form > .box { border: none; box-shadow: none; margin-bottom: 0; }
.content .single-mode > .box-body > .row > div.col > form > .box > .box-header:not(.visible) { display: none; }
.content .single-mode > .box-body > .row > div.col > form > .box > .box-header h3 { display: none; }
.content .single-mode > .box-body,
.content .single-mode > .box-footer { padding: 0 }

/*
 * Header settings
 */
.content .box-header { min-height: 51px }
.content .box-header .add-row-btn { margin: 0 4px; }
.content .box-header > *:not(div):not(button) { position: relative; top: 6px; }
.content .box-header .form-group.pull-right { margin: 0 }
.content .box-header .multi-languages .dropdown-toggle { padding: 4px 10px }
.content .box-header .multi-languages .dropdown-toggle.has-error { border: 1px solid #dd4b39; color: #dd4b39; }
.content .box-header .multi-languages .dropdown-menu li .fa { display: none; }
.content .box-header .multi-languages .dropdown-menu li.has-error a { color: #dd4b39; }
.content .box-header .multi-languages .dropdown-menu li.has-error .fa { display: inline-block }
.content .box-header .multi-languages span.text { margin: 0 5px }
.content .box-limit { padding-bottom: 0 }

@media screen and (max-width: 768px) {
    .content .box > .box-body > .box {
        margin-left: 10px;
        width: calc(100% - 10px);
    }

    .box-header .pagination {
        display: none;
    }

    .content .box-body > .row > div.col { width: 100% }

    .box-header h3.box-title {
        display: block;
        width: 100%;
        margin-bottom: 10px
    }
}

/*
 * Form settings
 */
.content .box-body .add-row-btn i, .nav-tabs li i, .nav-tabs-custom h4 i { margin-right: 5px }
.content .box-body .file-group { position: relative; }
.content .box-body .file-group button[type=button] { position: absolute; right: 0; top: 0; }
.content .box-body .radio-group label { display: block }
.content .box-body .radio-group .radio { display: inline-block; margin-right: 20px; }
.content .box-body .radio-group .help-block { margin-top: 0; }
.content .box-body.cantadd { margin-bottom: 0px }
.empty-group-separator { color: #cacaca;font-size: 38px;line-height: 100%;position: relative;top: -11px;text-align: center;padding: 0;margin: 0; }
.language_select {padding: 10px 0 0 0;margin: 0;border-radius: 0px;}
.language_select select {border-radius: 0px !important;background: #0b0d0e;color: #888;border: 1px solid black;font-size: 12px;}

.sidebar-menu, .main-sidebar .user-panel, .sidebar-menu > li.header { overflow: visible; }

.model-info { color: #888 }
.xdsoft_datetimepicker { z-index: 99999999999 }
.form-group input.js_date { background: white }
.form-group textarea.js_editor { display: block;min-height: 321px;width: 100%;opacity: 0.2;padding: 10px; }
.form-group small { color: #555; }
.form-group.disabled > label { opacity: 0.5; }
.form-group.multiple-date label { display: block; }
.multiple-dates .multiple-selected { background: #f39c12 !important; color: white !important; font-weight: bold !important; box-shadow: none !important }
.multiple-dates .xdsoft_current:not(.multiple-selected) { background: #f6f5f6 !important; box-shadow: none !important; color: #555 !important; font-weight: normal !important; }

table.table th:not(.th-options-buttons) { cursor: pointer; }
table.table > tbody > tr { user-select: auto; }
table.table.sortable tr[draggable="true"] { cursor: move; }
table.table td.image_field {padding: 0 1px;}
table.table td.image_field img {height: 46px;transition: 0.2s all ease-in-out;}
table.table td.image_field img:hover {height: 46px;opacity: 0.8}

label.checkbox {

}

label.checkbox span {
    color: #555;
    font-weight: normal;
}

.checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

/* Normal Track */
.checkbox input[type="checkbox"].ios-switch + div {
    vertical-align: middle;
    width: 40px;
    height: 20px;
    border: 1px solid rgb(189, 186, 186);
    border-radius: 999px;
    background-color: rgba(0, 0, 0, 0.1);
    -webkit-transition-duration: .4s;
    -webkit-transition-property: background-color, box-shadow;
    box-shadow: inset 0 0 0 0px rgba(0,0,0,0.4);
    margin: 5px 0;
}

/* Checked Track (Blue) */
.checkbox input[type="checkbox"].ios-switch:checked + div {
    width: 40px;
    background-position: 0 0;
    background-color: #3b89ec;
    border: 1px solid #0e62cd;
    box-shadow: inset 0 0 0 10px rgba(59,137,259,1);
}

/* Green Track */
.checkbox input[type="checkbox"].green.ios-switch:checked + div {
    background-color: #00e359;
    border: 1px solid rgba(0, 162, 63,1);
    box-shadow: inset 0 0 0 10px rgba(0,227,89,1);
}

/* Normal Knob */
.checkbox input[type="checkbox"].ios-switch + div > div {
    float: left;
    width: 18px;
    height: 18px;
    border-radius: inherit;
    background: #ffffff;
    -webkit-transition-timing-function: cubic-bezier(.54,1.85,.5,1);
    -webkit-transition-duration: 0.4s;
    -webkit-transition-property: transform, background-color, box-shadow;
    -moz-transition-timing-function: cubic-bezier(.54,1.85,.5,1);
    -moz-transition-duration: 0.4s;
    -moz-transition-property: transform, background-color;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.12), 0px 0px 0 1px rgb(206, 206, 206);
    pointer-events: none;
}

/* Checked Knob (Blue Style) */
.checkbox input[type="checkbox"].ios-switch:checked + div > div {
    -webkit-transform: translate3d(20px, 0, 0);
    -moz-transform: translate3d(20px, 0, 0);
    background-color: #ffffff;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3), 0px 0px 0 1px rgba(8, 80, 172,1);
}

/* Green Knob */
.checkbox input[type="checkbox"].green.ios-switch:checked + div > div {
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 162, 63,1);
}

.arrow-sorting { margin-right: 4px }

#loader {
    display: none;
}

#loader h2 {
    margin: 0 auto 15px;
    line-height: 260%;
    font-size: 22px;
}

#loader h2 strong {
    font-size: 48px;
    display: block;
}

#loader h2 span {
    position: relative;
    top: 3px;
}

#loader {
    background: #429CCA;
    display: block;
    position: fixed;
    visibility: visible;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

#loader.hidenloader {
    opacity: 0;
    visibility: hidden;
    -webkit-transition: 0.4s all cubic-bezier(0.250, 0.460, 0.450, 0.940);
       -moz-transition: 0.4s all cubic-bezier(0.250, 0.460, 0.450, 0.940);
        -ms-transition: 0.4s all cubic-bezier(0.250, 0.460, 0.450, 0.940);
         -o-transition: 0.4s all cubic-bezier(0.250, 0.460, 0.450, 0.940);
            transition: 0.4s all cubic-bezier(0.250, 0.460, 0.450, 0.940);
}

#loader .spinner {
    margin: auto;
    height: 145px;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    color: white;
}

#loader .spinner > div {
    width: 18px;
    height: 18px;
    background-color: #FFF;
    border-radius: 100%;
    display: inline-block;
    -webkit-animation: bouncedelay 1.4s infinite ease-in-out;
    animation: bouncedelay 1.4s infinite ease-in-out;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

#loader .spinner .bounce1 {
    -webkit-animation-delay: -0.32s;
    animation-delay: -0.32s;
}

#loader .spinner .bounce2 {
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s;
}

@-webkit-keyframes bouncedelay {
    0%, 80%, 100% { -webkit-transform: scale(0.0) }
    40% { -webkit-transform: scale(1.0) }
}

@keyframes bouncedelay {
    0%, 80%, 100% {
        transform: scale(0.0);
        -webkit-transform: scale(0.0);
    } 40% {
        transform: scale(1.0);
        -webkit-transform: scale(1.0);
    }
}

select[multiple] {height: 34px;color: white;}

.help-block { margin-bottom: 0 }

.filesList {position: relative;}
.filesList div {display: inline}
.filesList div:last-child span { display: none; }
.file-group .chosen-container-multi .chosen-drop .result-selected { display: none }
.file-group .chosen-container-multi .chosen-choices { background: none; border: none; padding: 2px 0; }
.file-group .chosen-container-multi .chosen-drop { border: none; }
.file-group .chosen-container-active .chosen-choices { box-shadow: none !important }
.form-group.has-error .chosen-container > .chosen-single,
.form-group.has-error .chosen-container > .chosen-choices { border-color: #dd4b39; box-shadow: none; }
.form-group .can-add-select { width: 100%; position: relative; }
.form-group .can-add-select > div.chosen-container { width: calc(100% - 35px) !important; min-width: calc(100% - 35px) !important; }
.form-group .can-add-select > button { float: right; height: 100%; width: 35px; position: absolute;}

.fields-group.inline-col > div > .tab-content > .row > div > div { display: inline-block; }
.fields-group.inline-col[data-fields="2"] > div > .tab-content > .row > div > div { width: calc(100% / 2) }
.fields-group.inline-col[data-fields="3"] > div > .tab-content > .row > div > div { width: calc(100% / 3) }
.fields-group.inline-col[data-fields="4"] > div > .tab-content > .row > div > div { width: calc(100% / 4) }
.fields-group.inline-col[data-fields="5"] > div > .tab-content > .row > div > div { width: calc(100% / 5) }
.fields-group.inline-col[data-fields="6"] > div > .tab-content > .row > div > div { width: calc(100% / 6) }
.fields-group.inline-col[data-fields="7"] > div > .tab-content > .row > div > div { width: calc(100% / 7) }

/* Form in modal settings */
@media screen and (min-width: 768px) {
    .form-group .modal .modal-dialog { width: 80%; }
}
.form-group .modal > .modal-dialog > .modal-content > .modal-body > .box {box-shadow: none;border: 0;margin-bottom: 0}
.form-group .modal > .modal-dialog > .modal-content > .modal-body > .box > .box-header {padding: 0;position: absolute;right: 45px;top: -59px;}
.form-group .modal > .modal-dialog > .modal-content > .modal-body > .box > .box-body {padding: 0;margin-bottom: -15px;}

.th-id { width: 50px; text-align: center; }
.td-id { text-align: center; }

.box .overlay > p { position: absolute;top: calc(50% + 28px);text-align: center;width: 100%;font-weight: bold;}
.pagination-sm>li>a { border-radius: 0 !important }


.search-bar {max-width: 280px; display: inline-block; margin: 0 5px; }
.search-bar.interval {max-width: 350px }
.search-bar .input-group-btn { text-align: right; }
.search-bar .input-group-btn button { margin-right: 0 !important; }
.search-bar .chosen-single { height: 30px }
.search-bar .chosen-container-single .chosen-single span { margin-top: 2px; font-size: 13px }
.search-bar input {border-left: 0}
.search-bar select {border-radius: 0;}
.search-bar .interval {display: table-cell;white-space: nowrap;vertical-align: top;width: 25px;}
.search-bar .interval button {padding: 4px;border-radius: 0;border-left: 0;width: 100%;}

form label span.required { color: red; position: relative; top: 2px }

.history-table table { background: white; width: 100%; max-width: 700px; margin-bottom: 0;}
.history-table .modal-body { max-height: 380px; overflow-y: auto; }

.gettext-table table { background: white; width: 100%; max-width: 700px; margin-bottom: 0;}
.gettext-table .modal-body { overflow-y: auto; }
.gettext-table .modal-dialog { width: 1000px }
.gettext-table .modal-dialog table { max-width: none }
.gettext-table .modal-dialog td { padding: 5px 5px; line-height: 155% !important; }
.gettext-table .modal-dialog td.input { background: white; padding: 0; }
.gettext-table .modal-dialog td.input.edited { background: #ffe5e5 }
.gettext-table .modal-dialog td .form-control { background: none; border: none; }
.gettext-table .modal-dialog td textarea.form-control { padding: 7px 10px 0; width: 100% !important; resize: none; height: 35px; }
.gettext-table .modal-dialog td textarea.form-control.long { resize: auto; height: auto }
.gettext-table .modal-dialog td.plural textarea.form-control:not(:last-child) { border-bottom: 1px solid #f4f4f4; }
.gettext-table .modal-dialog td:last-child { width: 50%; }
.gettext-table .modal-dialog .all-translates { text-align: center;width: 100%;display: block;margin-top: 20px;cursor: pointer; }
.gettext-table .modal-dialog .loading { text-align: center; }
.gettext-table .modal-dialog .loading i { margin-right: 5px; }

/*
 * History field color
 */
form .is-changed-from-history label { color: #b900e2; }
form .is-changed-from-history .form-control,
form .is-changed-from-history .form-group .chosen-container > .chosen-choices,
form .is-changed-from-history .form-group .chosen-container > .chosen-single { border: 1px solid #b900e2; }
button.enabled-history { background: #b900e2; color: white !important; border: 1px solid #80009c !important; }
button.enabled-history:hover, button.enabled-history:focus, button.enabled-history:active, button.enabled-history:visited { background: #80009c !important }

/*
 * Tabs
 */
.nav-tabs-custom > .nav-tabs > li > a {cursor: pointer;}
.nav-tabs-custom > .nav-tabs > li.has-error {border-top-color: #dd4939;}
.nav-tabs-custom > .nav-tabs > li.has-error i {margin-left: -1px;}
.nav-tabs-custom > .nav-tabs > li.has-error i.fa-exclamation-triangle ~ i {display: none}
.nav-tabs-custom > .nav-tabs > li.has-error a {color: #dd4939}
.nav-tabs-custom.default {box-shadow: none;margin-bottom: 0;background: transparent;}
.nav-tabs-custom.default > .nav-tabs { display: none; }
.nav-tabs-custom.default > .tab-content { margin: 0; padding: 0; background: transparent; }
.nav-tabs-custom > h4 { font-weight: 600; padding: 13px; margin: 0; border-bottom: 1px solid #eee; border-top: 3px solid #3c8dbc; }
.box-warning > .box-body > .nav-tabs-custom > .nav-tabs li.active {border-top-color: #f39c12;}
.box-warning > .box-body .nav-tabs-custom > h4 {border-top-color: #f39c12;}
.box-warning > .box-body .nav-tabs-custom li.active {border-top-color: #f39c12;}
.nav-tabs-custom .tab-pane > .row .model > .box { border-top: 0;     box-shadow: none; }
.nav-tabs-custom .tab-pane > .row .model > .box > .box-header h3 { display: none; }
.nav-tabs-custom .tab-pane > .row .model > .box > .box-header, .nav-tabs-custom .tab-pane > .row .model > .box > .box-body { padding: 0; }
.nav-tabs-custom .tab-pane > .row .model > .box.single-mode { margin-bottom: 0px }
.nav-tabs-custom .tab-pane > .row .model > .box.single-mode > .box-header { display: none; }
.nav-tabs-custom .tab-pane > .row .model > .box.single-mode > .box-body > .row > .col > form > .box > .box-body { padding: 0; background: white; }
.nav-tabs-custom .tab-pane > .row .model > .box.single-mode > .box-body > .row > .col > form > .box > .box-footer { padding-left: 0; padding-bottom: 0; }
.nav-tabs-custom .tab-pane > .row > .col-lg-12:first-child:last-child > .box { box-shadow: none;border: none;padding: 0; }
.nav-tabs-custom .tab-pane > .row > .col-lg-12:first-child:last-child > .box > .box-body, .nav-tabs-custom .tab-pane > .row > .col-lg-12:first-child:last-child > .box > .box-header { padding: 0; }
.nav-tabs-custom .tab-pane > .row > .col-lg-12:first-child:last-child > .box > .box-header > h3 { display: none }
.nav-tabs-custom .tab-pane > .row > .col-lg-12:first-child:last-child > .box.single-mode > .box-header { display: none }

/* Checkboxes */
.checkbox-td { position: relative; width: 25px; }
.checkbox-box { display: block; cursor: pointer; font-size: 22px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
.checkbox-box input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.checkbox-box .checkmark { position: absolute; top: 0; bottom: 0; left: 0; height: 100%; width: 100%; background-color: transparent; }
.checkbox-box:hover input ~ .checkmark { background-color: #ccc; }
.checkbox-box input:checked ~ .checkmark { background-color: #2196F3; }
.checkbox-box .checkmark:after { content: ""; position: absolute; display: none; }
.checkbox-box input:checked ~ .checkmark:after { display: block; }
.checkbox-box .checkmark:after { left: 0; top: 0; bottom: 0; right: 0; margin: auto; width: 5px; height: 10px; border: solid white; border-width: 0 3px 3px 0; -webkit-transform: rotate(45deg); -ms-transform: rotate(45deg); transform: rotate(45deg); }