html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}


.select2-container--default .select2-selection--single {
    border-radius: 6px;
    border: 1px solid #ccc;
    height: 38px;
    padding: 5px 10px;
}

/*6-20-2025*/

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

h1 {
    font-size: 35px;
}

h2 {
    font-size: 25px;
}

h2.mb-0 {
    margin-bottom: .5rem;
    font-family: inherit;
    font-weight: 500;
    line-height: 1.2;
    color: inherit;
}

.select2-container--default .select2-selection--single {
    border-radius: 6px;
    border: 1px solid #ccc;
    height: 38px;
    padding: 5px 10px;
}

/*6-20-2025*/


.brand-logo {
    display: flex;
    justify-content: center;
}

.brand-logo img {
    width: 130px;
    padding: 7px 0;
}

/* Mặc định: logo lớn (sidebar mở) */
.logo-mini {
    display: none;
}

.logo-lg {
    display: inline;
}

/* Khi sidebar bị thu gọn (đóng hoàn toàn): dùng logo nhỏ */
body.sidebar-collapse .logo-mini {
    display: inline;
}

body.sidebar-collapse .logo-lg {
    display: none;
}

/* Khi hover vào sidebar thu gọn → hiện logo lớn */
body.sidebar-mini.sidebar-collapse .main-sidebar:hover .logo-mini {
    display: none;
}

body.sidebar-mini.sidebar-collapse .main-sidebar:hover .logo-lg {
    display: inline;
}

.main-sidebar {
    background: #16733a !important;
}

.sidebar {
    padding: 0;
}

.sidebar a {
    color: #ffffff !important;
    font-size: 14px;
    margin-bottom: 0 !important;
}

.sidebar i {
    font-size: 12px !important;
}

.main-navigation-1 .nav-item {
    border-bottom: .5px solid #ffffff4e;
    justify-content: center;
    display: flex;
    flex-direction: column;
    padding-left: 5px;
    transition: all 0.3s ease;
}

.brand-logo {
    background-color: #075836;
    height: 65px;
}

.main-header {
    height: 65px;
    background: #16733a;
}

.navbar-expand .navbar-nav {
    border: none;
}

.navbar-expand .navbar-nav .nav-link {
    color: #ffffff;
}

.elevation-4 {
    box-shadow: none !important;
}

.main-navigation-1 .nav-item:hover {
    background-color: #075836;
    padding: 5px 0;
}

.main-navigation-1 .nav-item:hover a {
    background: none !important;
}

.main-navigation-1 .nav-item.menu-is-opening a {
    background: none !important;
    margin-left: 5px;
}

.main-navigation-1 .nav-item.menu-is-opening {
    background: #075836;
    padding-left: 0;
}

.main-navigation-1 .nav-item a {
    background: none !important;
}

.main-navigation-1 .nav-item a:hover {
    background: none !important;
}


.navigation-menu a {
    background: #16733a !important;
}

.navigation-menu a:hover {
    background-color: #075836 !important;
}

.input-group-fix {
    padding: 0 5px 0 26px;
}

.input-group-fix input {
    border-radius: 0px;
}

.input-group-fix i {
    color: #ffffff;
}

.nav-title {
    font-size: 26px;
    font-weight: 700;
    padding: 0px;
    color: #ffffff !important;
}

.nav-title:hover {
    color: #ffffff !important;
}

.sidebar .user-panel {
    display: flex;
    justify-content: center;
    padding: 0 !important;
}

.nav-treeview {
    background: #16733a !important;
}

.nav-treeview .nav-item {
    padding: 0 !important;
}

.body-card {
    position: relative;
    margin-bottom: 30px !important;
}

.body-card-list {
    list-style: none;
    position: absolute;
    z-index: 100;
    background: #16733a;
    width: 96%;
    border-radius: 5px;
    padding: 5px 0;
    display: none;
}

.body-card-list a {
    color: #ffffff;
    background: none !important;
}

.body-card-list a:hover {
    background: none !important;
}

.body-card-item {
    padding: 4px 0;
    transition: all 0.3s ease;
}

.body-card-item:hover {
    background: #075836;
    padding: 6px 0;
}

.body-card:hover .body-card-list {
    display: block;
}

.main-navigation-1 .nav-item.active {
    background: #075836;
}

.main-header ul:nth-child(2) {
    margin-bottom: 0;
    margin-left: auto;
}

.main-header ul:nth-child(2) a,
.main-header ul:nth-child(2) form button {
    color: #ffffff !important;
}

.main-body1 .nav-item .form-inline {
    display: none !important;
}

.main-body1 .nav-item .nav-link {
    pointer-events: none;
    cursor: not-allowed;
    font-size: 18px;
    font-weight: 600;
}

.main-body1 .nav-item .nav-link.identity-page {
    pointer-events: all !important;
    cursor: pointer;
    font-size: 20px;
}

.main-body1 .nav-item .nav-link.identity-page.active {
    color: #ffffff !important;
    background: #16733A !important;
}

.main-body1 .nav-item .nav-link.identity-page:hover {
    color: #16733A;
}

fieldset {
    border: 1px solid #ccc !important;
    border-radius: 5px;
    padding: 1rem;
    background-color: #fdfdfd;
}

legend {
    font-weight: bold;
    font-size: 1rem;
    padding: 0 10px;
    color: #16733a;

}

.fieldRequired {
    background-attachment: scroll;
    background-color: transparent;
    background-image: url(../images/required.gif);
    background-position: center;
    background-repeat: no-repeat;
    color: #DD0000;
    padding-bottom: 0px;
    padding-left: 8px;
    padding-right: 5px;
    padding-top: 0px;
}


/* ===== SIDEBAR ACTIVE MENU STYLES ===== */

/* Parent menu active: vàng đậm nổi bật */
[class*=sidebar-dark-] .nav-sidebar > .nav-item > .nav-link.active,
.main-navigation-1 .nav-item > .nav-link.active {
    background: #0a5c2e !important;
    color: #ffc107 !important;
    font-weight: 700;
    box-shadow: none;
    border-left: 4px solid #ffc107;
}

/* Parent menu active icon */
[class*=sidebar-dark-] .nav-sidebar > .nav-item > .nav-link.active i,
.main-navigation-1 .nav-item > .nav-link.active i {
    color: #ffc107 !important;
}

/* Child menu active: trắng sáng với viền trái xanh */
.nav-treeview .nav-item .nav-link.active {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: inset 3px 0 0 #4fc3f7;
    display: block;
    width: 100%;
    border-left: 0px;
}

/* Child menu active icon */
.nav-treeview .nav-item .nav-link.active i {
    color: #4fc3f7 !important;
}

/* Child menu hover */
.nav-treeview .nav-item .nav-link:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    display: block;
    width: 100%;
}

/* Parent menu open background */
.main-navigation-1 .nav-item.menu-open {
    background: #0a5c2e !important;
}

.toggle-legend {
    cursor: pointer
}

.toggle-legend .toggle-icon {
    transition: transform 0.3s ease;
}

.toggle-legend.collapsed .toggle-icon {
    transform: rotate(180deg);
    /* Chevron xoay khi đóng */
}

.customToolbar {
    margin: 0px 0px 0px 0px
}

th.noSort::after,
th.noSort::before {
    display: none !important;
}

.header-action-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Mặc định: đẩy nút Thêm sang phải start center space-between*/
    gap: 10px;
}

.login-page {
    background: url(https://betongxanhsaigon.com/uploads/2025/04/GIOI-THIEU-1.jpg) !important;
    background-size: cover !important;
}

.login-box {
    padding: 20px 40px;
    border-radius: 20px;
    background: #ffffffdb;
    width: 430px;
}

.login-page .checkbox {
    margin-left: 20px;
}

#login-submit {
    background-color: #16733a !important;
    border-color: #16733a;
}

#forgot-password {
    color: #16733a;
}

/* ===== CONTRACT CRM UI ===== */
.contract-page {
    font-size: 14px;
}

.contract-card {
    border-radius: 10px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.contract-card .card-header {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 12px 16px;
}

.contract-card .card-title {
    font-size: 16px;
    font-weight: 700;
    color: #212529;
}

.contract-status-badge {
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 20px;
}

.contract-progress {
    height: 5px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.contract-progress .progress-bar {
    transition: width .25s ease;
}

.contract-tabs {
    border-bottom: 1px solid #e5e7eb;
    padding: 0 16px;
    background: #fff;
}

.contract-tabs .nav-item {
    margin-bottom: -1px;
}

.contract-tabs .nav-item .nav-link {
    pointer-events: all !important;
    cursor: pointer !important;
}

.contract-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 18px;
    border-bottom: 3px solid transparent;
    transition: all .2s ease;
}

.contract-tabs .nav-link i {
    font-size: 14px;
    margin-right: 7px;
    color: #adb5bd;
}

.contract-tabs .nav-link:hover {
    color: #007bff;
    background: #f8f9fa;
}

.contract-tabs .nav-link.active {
    color: #007bff;
    background: #fff;
    border-bottom-color: #007bff;
}

.contract-tabs .nav-link.active i {
    color: #007bff;
}

.contract-tab-content {
    padding: 20px 20px 10px;
    background: #fff;
}

.contract-form label {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 6px;
}

.contract-form .form-group {
    margin-bottom: 14px;
}

.contract-form .form-control,
.contract-form .select2-container--default .select2-selection--single {
    min-height: 38px;
    border-radius: 7px;
    border-color: #ced4da;
    font-size: 14px;
}

.contract-form textarea.form-control {
    min-height: 90px;
}

.contract-form .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 .15rem rgba(0, 123, 255, .12);
}

.contract-form .select2-container--default .select2-selection--single {
    height: 38px;
    padding: 4px 8px;
}

.contract-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 28px;
    font-weight: 600;
}

.contract-form .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

.contract-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 14px 20px;
}

.contract-footer .btn {
    border-radius: 7px;
    font-weight: 600;
    padding: 8px 16px;
}

.contract-side-card {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
    margin-bottom: 14px;
}

.contract-side-card .card-header {
    background: #fff;
    padding: 12px 14px;
    border-bottom: 1px solid #e9ecef;
}

.contract-side-card .card-title {
    font-size: 15px;
    font-weight: 700;
    color: #212529;
}

.contract-side-card .card-body {
    padding: 14px;
}

.summary-item {
    margin-bottom: 14px;
}

.summary-label {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 2px;
}

.summary-value {
    font-size: 18px;
    font-weight: 800;
}

.summary-currency {
    font-size: 12px;
    color: #6c757d;
    margin-left: 3px;
}

.payment-progress {
    height: 7px;
    border-radius: 20px;
    overflow: hidden;
    background: #e9ecef;
}

.rate-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
}

.rate-row strong {
    font-size: 15px;
}

.contract-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #007bff;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
    margin-bottom: 14px;
}

.step-label {
    font-size: .75rem;
    transition: color .3s;
}

.step-label.active {
    color: #007bff !important;
    font-weight: 600;
}

.preset-rate.active {
    background: #17a2b8 !important;
    color: #fff !important;
    border-color: #17a2b8 !important;
}

.tab-pane {
    animation: fadeTab .25s ease;
}

@keyframes fadeTab {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .contract-tabs .nav-link {
        padding: 10px 12px;
        font-size: 13px;
    }

    .contract-tab-content {
        padding: 16px 12px;
    }
}