body {
    font-family: 'Source Sans 3', sans-serif;
}

.en, .en-font {
    font-family: 'Source Sans 3', sans-serif !important;
}

.navbar-nav > .user-menu > .dropdown-menu > li.user-header {
    min-height: 175px;
    height: auto;
}

.text-line-through {
    text-decoration: line-through;
}

.progress {
    display: flex;
    height: 1rem;
    overflow: hidden;
    font-size: .65625rem;
    background-color: #e9ecef;
    border-radius: .25rem;
}

.progress-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    background-color: #4c84ff;
    transition: width 0.6s ease;
}

aside .separator {
    border-top: 1px rgba(229, 233, 242, 0.2) solid;
}

.user-menu .separator {
    display: none;
}

aside .license-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
}

.license-indicator {
    padding: 0.75rem 1rem;
    background-color: #292929;
    width: 100%;
}

.license-indicator > h6 {
    color: #b7c0cd;
    font-size: 0.81rem;
    margin-top: 0.69rem;
    margin-bottom: 0.69rem;
    white-space: nowrap;
}

.license-indicator .progress {
    height: 15px;
    margin-bottom: 0.9rem;
    overflow: hidden;
    background-color: #e4eaec;
    border-radius: 0.215rem;
}

.license-indicator .progress-xs {
    height: 6px;
    border-radius: .06rem;
}

.license-indicator .progress-xs .progress-bar {
    line-height: 4px;
}

.license-indicator .progress-xs .progress-bar.progress-bar-warning {
    background: #fec400;
}

#adv-search .card-header {
    position: relative;
    cursor: pointer;
}

#adv-search .card-header:after {
    font-family: "Font Awesome 5 Free";
    content: "\f146"; /* fa-minus-square */
    position: absolute;
    top: 12px;
    right: 15px;
}

#adv-search.collapsed-card .card-header:after {
    content: "\f0fe"; /* fa-plus-square */
}

#adv-search table th {
    line-height: 2.3;
}

.table-bordered thead td,
.table-bordered thead th {
    vertical-align: middle;
}

.table.compact td, .table.compact th {
    padding: .4rem;
}

[data-toggle="tooltip"].fa-info-circle {
    cursor: pointer;
}

.select2-container .select2-selection--single {
    border: 1px solid #ced4da !important;
    height: 38px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 2px !important;
}

.select2-container--default .select2-selection--multiple,
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border: 1px solid #ced4da !important;
    height: 42px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    padding: 2px 7px;
    color: #333;
    display: inline-block;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    margin-left: 0;
    padding: 3px 5px;
}

.select2-container--default .select2-search--inline .select2-search__field,
.select2-container--default .select2-dropdown .select2-search__field:focus,
.select2-container--default .select2-search--inline .select2-search__field:focus {
    padding: 4px 10px;
    height: 30px;
    border: none;
}

/*.select2-container .select2-search--inline .select2-search__field {*/
/*    display: none;*/
/*}*/

/********************/
/* CKEDITOR CONTENT */
/********************/

.ck-content {
    min-height: 350px;
}

.ck-content hr {
    margin: 0 !important;
    height: 3px !important;
}

.ck-content ul,
.ck-content ul li {
    list-style-type: disc;
}

.ck-content ol,
.ck-content ol li {
    list-style-type: decimal;
}

.ck-content ul {
    padding-left: 30px;
}

.ck-content ol {
    padding-left: 25px;
}

.ck-content ol li {
    padding-left: 5px;
}

.ck-content a {
    color: #007bff !important;
}

/***************/
/* GENERAL CSS */
/***************/

.alert ul,
.errors ul {
    margin-bottom: 0;
    padding-left: 1rem;
}

.modal {
    z-index: 99999;
}

.btn,
.modal-title,
.content-header h1,
.breadcrumb .breadcrumb-item {
    text-transform: capitalize;
}

.input-error {
    border: 1px red solid !important;
    background: #fdecec !important;
}

.v-align-middle {
    vertical-align: middle;
}

.form-control[readonly] {
    background-color: #f8f9fa;
}

.navbar-nav > .user-menu > .dropdown-menu {
    width: 300px;
}

.navbar-nav > .user-menu > .dropdown-menu {
    width: 300px;
}

.nav-sidebar .nav-treeview {
    transition: padding .3s ease-in-out;
    padding-left: 1rem;
}

.nav-treeview > .nav-item > .nav-link.active {
    width: calc(280px - 0.5rem * 2 - 1rem);
}

.nav-treeview > .nav-item > .nav-link {
    width: calc(280px - 0.5rem * 2 - 1rem);
    padding: .5rem 0.6rem;
}

.nav-item .nav-link .badge {
    top: -10px;
    right: -8px;
}

.nav-item .nav-link .badge.badge-left {
    top: -10px;
    left: -10px;
    right: unset;
}

.nav-item .dropdown-item.d-flex span:first-child {
    width: 30px;
    text-align: left;
}

.layout-fixed .wrapper .sidebar {
    overflow-x: hidden;
}

.layout-fixed .brand-link,
.main-sidebar, .main-sidebar::before {
    width: 280px;
}

.sidebar-mini .main-sidebar .nav-link,
.sidebar-mini-md .main-sidebar .nav-link,
.sidebar-mini-xs .main-sidebar .nav-link {
    width: calc(280px - 0.5rem * 2);
}

.sidebar-collapse .main-sidebar,
.sidebar-collapse .main-sidebar::before {
    margin-left: -280px
}

.login-box, .register-box {
    width: 470px;
}

.loading-bar {
    display: none;
    background: repeating-linear-gradient(to right, red 0%, blue 50%, red 100%);
    width: 100%;
    height: 7px;
    background-size: 200% auto;
    background-position: 0 100%;
    animation: gradient 2s infinite;
    animation-fill-mode: forwards;
    animation-timing-function: linear;
    position: fixed;
    z-index: 999999;
    top: 0;
    left: 0;
}

input.hide-spinner::-webkit-outer-spin-button,
input.hide-spinner::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number].hide-spinner {
    -moz-appearance:textfield; /* Firefox */
}

.element-group:first-child .btn-remove {
    display: none;
}

#create-item-modal .optional {
    display: none;
}

.select-item {
    cursor: pointer;
}

#dialog-list-modal .btn-search,
#dialog-list-modal .dialog-list tr {
    cursor: pointer;
}

#dialog-list-modal .dialog-list tr.inactive {
    cursor: default;
}

#dialog-list-modal .dialog-list {
    min-height: 345px;
}

.datetime > .input-group {
    margin-right: 5px;
}

.datetime > select {
    width: 100px;
}

.datetime > span {
    padding: 5px 5px 5px;
}

.file-upload .item-images {
    display: flex;
    flex-wrap: wrap;
}

.file-upload .item-images .img-thumbnail {
    width: 85px;
    height: 85px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 7px;
    margin-bottom: 7px;
    overflow: hidden;
    position: relative;
}

.file-upload .item-images .img-thumbnail img {
    width: 100%;
}

.file-upload .item-images .img-thumbnail .img-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    color: red;
    background: white;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
}

.file-upload .add-image .fas {
    font-size: 50px;
}

.file-upload .add-image .fa-spinner,
.file-upload .add-image.loading .fa-plus-circle {
    display: none;
}

.file-upload .add-image.loading .fa-spinner {
    display: inline-block;
}

.file-upload .img-thumbnail:nth-child(6) {
    display: none;
}

.gallery .thumbnails {
    display: flex;
}

.gallery .main-image {
    height: 320px;
    width: 100%;
    max-width: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.gallery .thumbnails .img-thumbnail {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5px;
    margin-right: 5px;
    cursor: pointer;
    overflow: hidden;
}

.gallery .thumbnails .img-thumbnail.active,
.gallery .thumbnails .img-thumbnail:hover {
    border-color: #999;
}

.gallery .main-image img,
.gallery .thumbnails .img-thumbnail img {
    width: 100%;
}

.gallery .thumbnails .img-thumbnail:last-child {
    margin-right: 0;
}

.table th.actions {
    min-width: 130px;
}

.table.table-compact td {
    padding: .4rem;
}

.dashboard .small-box p {
    text-transform: uppercase;
}

.chart .legend {
    display: inline-block;
    background: #ccc;
    width: 25px;
    height: 15px;
}

.chart .legend.exp-sales {
    background: #9ad0f5;
}

.chart .legend.actual-sales {
    background: #ffb1c1;
}

a.add-new {
    padding-top: 3px;
    display: inline-block;
}

a.add-new.my {
    font-size: 0.9rem;
}

#orders-loading .fa-spinner {
    color: #17a2b8;
}

#no-orders .fa-inbox {
    color: #6c757d;
}

.datepicker {
    z-index: 10000 !important;
}

.logo-card-header {
    padding: .5rem 1.25rem;
}

.logo-card-header img {
    height: 75px;
}

.element-group .promotion {
    margin-top: -5px;
}

.element-group .promotion span {
    color: #495057;
}

.element-group .promotion .fa-share {
    transform: scaleY(-1)
}

.table td, .table th {
    vertical-align: middle !important;
}

.table.list td {
    padding: .5rem;
    min-height: 56px;
    height: 56px;
}

.table.list tbody td:last-child .btn {
    margin-top: 1px !important;
    margin-bottom: 1px !important;
}

.noti-bell {
    color: #fbc821 !important;
    animation: effect-bounce 0.3s ease-in-out infinite alternate;
}

.noti-bell:hover {
    color: #fff !important;
}

.pos-flag {
    position: absolute;
    top: -5px;
    right: -5px;
    z-index: 10;
}

.contacts a {
    font-size: 1.5rem !important;
}

#barcode-scan-modal {
    z-index: 999999;
}

#form-product-search-modal th,
#form-product-search-modal td {
    font-size: 0.9rem;
    padding: .5rem;
}

@keyframes gradient {
    0%   { background-position: 0 0; }
    100% { background-position: -200% 0; }
}

@keyframes effect-bounce {
    0% { margin-top: 0; }
    100% { margin-top: -6px; }
}

@media (min-width: 768px) {
    body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .content-wrapper,
    body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .main-footer,
    body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .main-header {
        margin-left: 280px;
    }
}

@media (max-width: 765px) {
    .gallery .main-image {
        max-width: 100%;
    }

    .small-box h3 {
        font-size: 1.4rem !important;
        text-wrap: auto !important;
    }
}

@media (max-width: 576px) {
    .login-box, .register-box {
        width: 90%;
    }

    .table th.actions {
        min-width: auto !important;
        width: 25% !important;
    }

    .dashboard .ex-rate-box h3 {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 992px) {
    body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .content-wrapper,
    body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .main-footer,
    body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .main-header {
        margin-left: 0;
    }
}

@media print {
    .border-print {
        border: 1px solid #dee2e6;
        border-radius: 0;
    }

    #toolbarContainer {
        display: none;
    }

    .content-wrapper {
        background: white;
    }
}
