.login-page{
    background: url("/img/template/background-login.jpg");
    background-position: center;
    background-size: cover;
}

.login-page:after{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,.5);
    /*z-index: 1;*/
}

.login-box{
    z-index: 10;
    border-radius: 5px;
}

.card-primary.card-outline {
    border-top: none;
    box-shadow:0 0 50px #FFFFFF;
}

.no-records-table{
    text-align: center;
    font-size: 20px;
    padding: 50px;
    font-style: italic;
    background: #cccccc;
}

.permission-title{
    font-weight: bold;
    color: #007bff;
    font-size: 15px;
    margin-top: 12px;
}

.check-item{
    margin-right: 10px;
    margin-bottom: 10px;
}

.check-item label{
    font-size: 13px;
    margin-bottom: 15px;
}

.permiss-block{
    border: 1px dashed #ccc;
    padding: 15px 15px 0;
}

.error-castom-field{
    margin-top: 0.25rem;
    font-size: 80%;
    color: #dc3545;
}

.center-block{
    max-width: 800px;
    margin: auto;
}

.fixed_height .select2-selection--single, .fixed_height .select2-selection{
    height: 40px !important;
}

.position-checkbox-brend, .position-checkbox-brend label{
    margin-bottom: 0 !important;
}

.show-brand{
    border: 1px dashed #ccc;
    margin: 20px 0px;
    padding: 10px 15px 17px;
}

.title-color{
    color: #007bff;
}

.hide-brand .add-fields{
    display: none;
}

.show-block{
    display: block;
}

.hide-block{
    display: none;
}

.background-1{
    background: #fff;
}

.title-block{
    font-size: 1.4rem;
    font-weight: 400;
    padding: 10px 15px;
    border-bottom: 1px solid #ccc;
}

.table-pd tr td{
    padding: 7px 15px;

}

.table-pd{
    margin-bottom: 0px;
}

.btn-block-right a{
    margin-left: 15px;
}

.body-lead-block{
    padding: 15px;
}

.progress{display: none;}

.table-avatar{
    width: 40px;
}

.modal {
    text-align: center;
}
@media screen and (min-width: 768px) {
    .modal:before {
        display: inline-block;
        vertical-align: middle;
        content: " ";
        height: 100%;
    }
}
.modal-dialog {
    display: inline-block;
    text-align: left;
    vertical-align: middle;
}

.top-left-menu a{
    margin-right: 10px;
}

#edit_desk .select2-selection--single, #edit_desk .select2-selection, .not-min-height .select2-selection, .filter-lead .select2-selection{
    height: auto !important;
}

.vis-check{
    padding: 3px 10px;
}
.filter_columns_block{
    border: 1px dashed #ccc;
    background-color: #ffffff;
    margin: 5px 0px 10px;
    padding: 5px 0px;
}

.row-filter{
    margin-top: 5px;
    margin-bottom: 5px;
}

.stbl{
    cursor: pointer;
}

.manager-message .direct-chat-text{
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

.manager-message .direct-chat-text:before, .manager-message .direct-chat-text:after{
    border-right-color: #007bff;
    content: " ";
    height: 0;
    pointer-events: none;
    position: absolute;
    right: 100%;
    top: 15px;
    width: 0;
}

.direct-chat-text {
    max-width: 96%;
    margin: 5px 0 0 20px;
}

.manager-message .direct-chat-text {
    display: inline-flex;
    background-color: #666564;
    border-color: #818181;
}

.manager-message .direct-chat-text:before, .manager-message .direct-chat-text:after {
    border-right-color: #666564;
}

.direct-chat-text {
    display: inline-flex;
}

.select2-height-40 .select2-selection{
    height: 40px;
}
.select2-height-40 .select2-container--default .select2-selection--single .select2-selection__arrow b{
    margin-top: 4px;
}

/* ==========================================================================
   Design Variant 8: Olive Business
   Sidebar menu items as solid business buttons
   ========================================================================== */

:root {
    --ui-primary: #4d7c0f;
    --ui-primary-hover: #3f6212;
    --ui-secondary: #52525b;
    --ui-success: #15803d;
    --ui-info: #0369a1;
    --ui-warning: #a16207;
    --ui-danger: #b91c1c;
    --ui-bg: #f7f8ef;
    --ui-surface: #ffffff;
    --ui-sidebar: #1c1f16;
    --ui-sidebar-dark: #11130d;
    --ui-sidebar-button: #2d3322;
    --ui-sidebar-button-hover: #3a432a;
    --ui-text: #1f2418;
    --ui-muted: #6f7666;
    --ui-border: #d9dfc7;
    --ui-radius: 6px;
}

body {
    background: var(--ui-bg);
    color: var(--ui-text);
    font-size: 14px;
}

.content-wrapper {
    background: linear-gradient(180deg, #fbfcf5 0%, #f7f8ef 100%);
}

.card,
.background-1,
.login-box,
.filter_columns_block,
.permiss-block,
.show-brand {
    background: var(--ui-surface);
    border: 1px solid var(--ui-border);
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(31, 36, 24, 0.07);
}

.card-header,
.title-block {
    background: linear-gradient(180deg, #ffffff 0%, #f7f8ef 100%);
    border-bottom: 1px solid var(--ui-border);
    color: var(--ui-text);
    font-size: 15px;
    font-weight: 700;
    padding: 12px 16px;
}

.card-body,
.body-lead-block {
    padding: 14px 16px;
}

.title-color,
.permission-title {
    color: var(--ui-primary);
}

.table {
    margin-bottom: 0;
    color: var(--ui-text);
}

.table th {
    padding: 7px 10px;
    background: #ecf0dd;
    border-bottom: 1px solid var(--ui-border);
    color: #3f6212;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    vertical-align: middle;
}

.table td,
.table-pd tr td {
    padding: 5px 10px;
    border-color: var(--ui-border);
    color: #1f2418;
    font-size: 13px;
    line-height: 1.35;
    vertical-align: middle;
}

.table tbody tr {
    transition: background 0.16s ease;
}

.table tbody tr:hover {
    background: #f7f8ef;
}

.no-records-table {
    background: #f7f8ef;
    border: 1px dashed #bcc8a3;
    border-radius: 8px;
    color: var(--ui-muted);
    font-size: 15px;
    font-style: italic;
    padding: 28px;
    text-align: center;
}

.btn,
.btn-primary,
.btn-secondary,
.btn-success,
.btn-info,
.btn-warning,
.btn-danger,
.btn-default {
    border: none;
    border-radius: var(--ui-radius);
    box-shadow: 0 4px 10px rgba(77, 124, 15, 0.14);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    padding: 7px 13px;
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--ui-primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--ui-primary-hover);
    color: #ffffff;
}

.btn-secondary,
.btn-default {
    background: var(--ui-secondary);
    color: #ffffff;
}

.btn-success {
    background: var(--ui-success);
    color: #ffffff;
}

.btn-info {
    background: var(--ui-info);
    color: #ffffff;
}

.btn-warning {
    background: var(--ui-warning);
    color: #ffffff;
}

.btn-danger {
    background: var(--ui-danger);
    color: #ffffff;
}

.form-control,
.select2-selection,
.select2-container--default .select2-selection--single {
    border-color: var(--ui-border) !important;
    border-radius: var(--ui-radius) !important;
    color: var(--ui-text);
    font-size: 13px;
}

.main-sidebar {
    background: linear-gradient(180deg, var(--ui-sidebar) 0%, var(--ui-sidebar-dark) 100%);
    box-shadow: 8px 0 24px rgba(28, 31, 22, 0.22);
}

.brand-link {
    margin: 10px 10px 12px;
    border: 1px solid rgba(217, 223, 199, 0.14);
    border-radius: 10px;
    background: rgba(45, 51, 34, 0.88);
    color: #ffffff !important;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.nav-sidebar {
    padding: 0 8px 12px;
}

.nav-sidebar .nav-item {
    margin-bottom: 7px;
}

.nav-sidebar .nav-link {
    min-height: 40px;
    margin: 0;
    border: 1px solid rgba(217, 223, 199, 0.14);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(45, 51, 34, 0.98), rgba(28, 31, 22, 0.98));
    box-shadow: 0 6px 14px rgba(17, 19, 13, 0.2);
    color: #e7ecd5;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-sidebar .nav-link i {
    color: #bef264;
    transition: transform 0.2s ease, color 0.2s ease;
}

.nav-sidebar .nav-link:hover {
    background: linear-gradient(180deg, #3a432a, #2d3322);
    border-color: rgba(190, 242, 100, 0.42);
    box-shadow: 0 10px 20px rgba(77, 124, 15, 0.24);
    color: #ffffff;
    transform: translateX(4px);
}

.nav-sidebar .nav-link:hover i {
    color: #ffffff;
    transform: scale(1.08);
}

.nav-sidebar .nav-link.active {
    background: linear-gradient(135deg, #4d7c0f, #65a30d);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 10px 22px rgba(77, 124, 15, 0.34);
    color: #ffffff;
}

.nav-sidebar .nav-link.active i {
    color: #ffffff;
}

.main-footer {
    background: #f7f8ef;
    border-top: 1px solid var(--ui-border);
    color: var(--ui-muted);
    font-size: 13px;
    padding: 12px 16px;
}

.main-footer strong,
.main-footer a {
    color: var(--ui-primary);
}