/* iSAC Taxi Admin - Custom Styles */

/* ============================================
   CSS Variables (Brand Colors - iSAC Logo)
   ============================================ */
:root {
    /* Brand Primary (iSAC Vibrant Green - từ logo) */
    --brand-primary: #16a34a; /* Green-600 - vibrant green từ logo */
    --brand-primary-hover: #15803d; /* Green-700 - darker for hover */
    --brand-primary-light: #dcfce7; /* Green-50 - light background */
    --brand-primary-dark: #14532d; /* Green-900 - for text on light bg */
    /* Bootstrap token override */
    --bs-primary: var(--brand-primary);
    --bs-primary-rgb: 22, 163, 74;
    /* Status Colors */
    --success: #16a34a; /* Green-600 - align với brand */
    --success-light: #dcfce7; /* Green-50 */
    --danger: #dc2626; /* Red-600 - từ lightning bolt trong logo */
    --danger-light: #fee2e2; /* Red-50 */
    --warning: #f59e0b; /* Amber-500 - giữ nguyên */
    --warning-light: #fef3c7; /* Amber-50 */
    --info: #0ea5e9; /* Sky-500 - thay blue bằng sky */
    --info-light: #e0f2fe; /* Sky-50 */
    --secondary: #6b7280; /* Gray-500 - giữ nguyên */
    --secondary-light: #f3f4f6; /* Gray-100 */
    /* Neutral Colors */
    --body-bg: #f3f4f6; /* Gray-100 */
    --card-bg: #ffffff; /* White */
    --sidebar-bg: #ffffff; /* White - light background */
    --header-bg: #ffffff; /* White - light background */
    --text-primary: #111827; /* Gray-900 */
    --text-secondary: #6b7280; /* Gray-500 */
    --text-muted: #9ca3af; /* Gray-400 */
    --border-color: #e5e7eb; /* Gray-200 */
    --border-light: #f3f4f6; /* Gray-100 */
}

/* ============================================
   Typography
   ============================================ */
body {
    margin: 0;
    padding: 0;
    background-color: #f3f4f6;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 768px) {
    body {
        font-size: 14px;
    }
}
b, strong {
    color: #64748b;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    /*color: var(--text-primary);*/
    color: #64748b; 
}


/* ============================================
   Map Components
   ============================================ */
.map-container {
    height: 720px;
    width: 100%;
}

.map-legend-icon {
    font-size: 1.5rem;
}

/* ============================================
   Common UI Patterns
   ============================================ */
/* Avatar sizes */
.avatar-sm {
    width: 32px;
    height: 32px;
    object-fit: cover;
}

.avatar-md {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

/* Empty state icon - moved to stat-detail-list section below */

/* Table image */
.table-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

/* Bảng danh sách: 1 dòng trắng, 1 dòng màu xen kẽ (striped) */
.table tbody tr:nth-of-type(odd) {
    background-color: #fff;
}
.table tbody tr:nth-of-type(even) {
    background-color: #f8f9fa;
}
.table-hover tbody tr:hover {
    background-color: rgba(22, 163, 74, 0.08) !important; /* hover vẫn rõ trên nền xen kẽ */
}

/* Danh sách dạng thẻ (list-group): xen kẽ 1 trắng 1 màu nhạt */
.list-group-flush .list-group-item:nth-of-type(odd),
.list-group .list-group-item.list-group-item-action:nth-of-type(odd) {
    background-color: #fff;
}
.list-group-flush .list-group-item:nth-of-type(even),
.list-group .list-group-item.list-group-item-action:nth-of-type(even) {
    background-color: #f8f9fa;
}

/* ============================================
   Layout Structure
   ============================================ */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */

/* Sidebar Styles */
#sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 16rem;
    min-width: 16rem; /* Ensure minimum width */
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: visible; /* Allow toggle button to be visible outside sidebar */
    transition: width 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    background-color: var(--sidebar-bg, #ffffff);
    color: var(--text-primary, #111827);
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
    border-right: 1px solid var(--border-color, #e5e7eb);
    isolation: isolate; /* Tạo stacking context, tránh nội dung main đè lên sidebar */
}

    /* Sidebar header (logo + title): không co lại, không tràn che menu */
    #sidebar > div:first-child {
        flex-shrink: 0;
        min-height: 0;
    }

    #sidebar > div:first-child .sidebar-title {
        overflow: hidden;
    }

    #sidebar > div:first-child .sidebar-title h5 {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Override Bootstrap text-white classes in sidebar */
    #sidebar.text-white,
    #sidebar .text-white,
    #sidebar .text-white-50 {
        color: var(--text-primary, #111827) !important;
    }

    #sidebar .text-white-50 {
        color: var(--text-secondary, #6b7280) !important;
    }

/* Desktop: Allow sidebar to collapse to 4rem */
@media (min-width: 768px) {
    #sidebar {
        min-width: 4rem; /* Allow sidebar to shrink to 4rem when collapsed */
    }
}

/* Ensure sidebar nav doesn't overflow (cho phép overflow-x visible để chấm tròn item con không bị cắt) */
#sidebar .sidebar-nav,
#sidebar nav {
    overflow-x: visible;
    overflow-y: auto;
}

/* Mobile: Sidebar hidden by default, slides in from left */
@media (max-width: 767.98px) {
    #sidebar {
        transform: translateX(-100%);
        width: 16rem !important;
        z-index: 1050;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
    }

        #sidebar.show {
            transform: translateX(0);
        }

            /* Overlay backdrop when sidebar is open on mobile */
            #sidebar.show::before {
                content: '';
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                /*background-color: rgba(0, 0, 0, 0.5);*/
                z-index: -1;
                pointer-events: none;
            }

    /* Sidebar backdrop overlay */
    .sidebar-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1049;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

        .sidebar-backdrop.show {
            display: block;
            opacity: 1;
        }

    /* Disable collapsed state on mobile */
    #sidebar.collapsed {
        width: 16rem !important;
    }

        #sidebar.collapsed .sidebar-text {
            display: block !important;
        }

        #sidebar.collapsed .nav-item {
            justify-content: flex-start !important;
            padding: 0.75rem 1rem !important;
        }

        #sidebar.collapsed .sidebar-icon {
            margin-right: 0.75rem !important;
        }

    /* Main content full width on mobile */
    .app-main {
        margin-left: 0 !important;
        width: 100% !important;
    }

    /* Hide sidebar toggle button on sidebar itself on mobile */
    #sidebar-toggle-btn {
        display: none;
    }
}

#mobile-sidebar-toggle {
    display: none;
}





/* Sidebar collapse functionality - Desktop only */
@media (min-width: 768px) {
    #sidebar.collapsed {
        width: 4rem !important;
        min-width: 4rem !important;
    }
}

/* Desktop: Collapsed sidebar styles */
@media (min-width: 768px) {
    /* Hide text when collapsed */
    #sidebar.collapsed .sidebar-title span {
        display: none;
    }

    /* Keep icon visible in title when collapsed */
    #sidebar.collapsed .sidebar-title i {
        display: inline-block !important;
        margin: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    #sidebar.collapsed .sidebar-text {
        display: none;
    }

    /* Nav items - center icons when collapsed */
    #sidebar.collapsed .nav-item {
        justify-content: center;
        padding: 0.75rem;
        display: flex !important;
    }

        /* Ensure ALL icons are visible when collapsed */
        #sidebar.collapsed .nav-item i,
        #sidebar.collapsed .nav-item .sidebar-icon,
        #sidebar.collapsed .nav-item .bi {
            display: inline-block !important;
            margin: 0 !important;
            margin-right: 0 !important;
            width: auto !important;
            font-size: 1.25rem !important;
            opacity: 1 !important;
            visibility: visible !important;
        }

    /* Hide menu group items when collapsed */
    #sidebar.collapsed .menu-group-items {
        display: none !important;
    }

    /* Universal icon visibility rule for collapsed sidebar */
    #sidebar.collapsed i,
    #sidebar.collapsed .bi,
    #sidebar.collapsed .sidebar-icon {
        display: inline-block !important;
        opacity: 1 !important;
        visibility: visible !important;
        width: auto !important;
        height: auto !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
    }
}

/* Sidebar header */
.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Sidebar title */
.sidebar-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary, #111827);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .sidebar-title i {
        font-size: 1.5rem;
        display: inline-block;
        color: var(--brand-primary, #16a34a); /* iSAC Green */
    }

    .sidebar-title span {
        font-weight: 600;
    }

    /* Sidebar title adjustments - reduce font sizes and weight */
    .sidebar-title h1 {
        font-size: 1rem !important;
        font-weight: 500 !important; /* Giảm từ 700 xuống 500 */
        line-height: 1.3;
        margin-bottom: 0.125rem;
    }

    .sidebar-title p {
        font-size: 0.75rem !important;
        line-height: 1.2;
        margin-top: 0;
    }

/* Sidebar navigation */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 0;
}

    .sidebar-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

/* Sidebar icon styles */
.sidebar-icon {
    width: 1.25rem;
    font-size: 1.25rem;
    margin-right: 0.75rem;
    text-align: center;
    display: inline-block;
    flex-shrink: 0;
    flex-grow: 0;
    min-width: 1.25rem; /* Prevent icon from shrinking */
    color: var(--brand-primary, #16a34a); /* iSAC Green - primary brand color */
}

/* Nav item icons - default color */
.nav-item i,
.nav-item .bi,
.nav-item .sidebar-icon {
    color: var(--brand-primary, #16a34a) !important; /* iSAC Green */
}

/* Nav item icons on hover */
.nav-item:hover i,
.nav-item:hover .bi,
.nav-item:hover .sidebar-icon {
    color: var(--brand-primary-hover, #15803d) !important; /* Darker green on hover */
}

/* Sidebar text styles */
.sidebar-text {
    font-weight: 500;
    line-height: 1.5;
    flex: 1;
    min-width: 0; /* Allow text to shrink */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #64748b;
}

/* Nav item base styles */
.nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-primary, #111827);
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-left 0.2s ease;
    /*border-left: 3px solid transparent;*/
    min-width: 0; /* Allow flex item to shrink */
    overflow: hidden; /* Prevent text overflow */
    position: relative;
    z-index: 2; /* Nằm trên các lớp khác trong sidebar, tránh bị text/block khác che không click được */
}

    .nav-item:hover {
        background-color: var(--body-bg, #f3f4f6);
        color: var(--text-primary, #111827);
    }

/* Menu group items container: thanh dọc + chấm + thụt vào */
.menu-group-items {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 1.5rem;
    position: relative;
}

    /* Thanh dọc — gần item con (1rem), màu đậm, z-index 2 để nằm trên chấm */
    .menu-group-items::before {
        content: '';
        position: absolute;
        left: calc(1rem - 0.5px);
        top: 0.75rem;
        bottom: 0.75rem;
        width: 1px;
        background: #9ca3af; /* gray-400, đậm hơn border-color */
        z-index: 2;
        pointer-events: none;
    }

    /* li kéo dài sang trái để hover/active background bao cả thanh dọc */
    .menu-group-items li {
        list-style: none;
        position: relative;
        z-index: 0;
        margin-left: -1.5rem;
        padding-left: 1.5rem;
    }

        /* Hover: nền bao cả vùng thanh dọc, chấm và thanh vẫn hiện */
        .menu-group-items li:hover {
            background-color: var(--body-bg, #f3f4f6);
        }

        /* Active: nền xanh nhạt bao cả thanh dọc, chấm và thanh vẫn hiện */
        .menu-group-items li:has(.nav-item.active) {
            background-color: #dcfce7 !important; /* Green-50 */
        }

        .menu-group-items li:has(.nav-item.active):hover {
            background-color: #bbf7d0 !important; /* Green-100 */
        }

        /* Chấm tròn — tại 1rem (trùng thanh, gần item con), z-index 1 để thanh dọc nằm trên */
        .menu-group-items li::before {
            content: '';
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translate(-50%, -50%);
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--text-secondary, #6b7280);
            opacity: 0.7;
            z-index: 1;
            pointer-events: none;
        }

/* Menu group items nav - thụt vừa, gần thanh/chấm; nền dùng li nên nav-item trong suốt */
.menu-group-items .nav-item {
    padding-left: 0.75rem;
    font-size: 0.875rem;
}

#sidebar .menu-group-items li:hover .nav-item,
#sidebar .menu-group-items li:has(.nav-item.active) .nav-item {
    background-color: transparent !important;
}

/* Sidebar toggle button - circular button on right edge, centered in header */
#sidebar-toggle-btn {
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: #ffffff !important;
    border: none !important;
    border-radius: 50%;
    color: var(--brand-primary) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    z-index: 1001;
    cursor: pointer;
}

    #sidebar-toggle-btn:hover {
        background: #f8f9fa !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        transform: translateY(-50%) scale(1.1);
    }

    #sidebar-toggle-btn:focus {
        background: #f8f9fa !important;
        box-shadow: 0 0 0 0.2rem rgba(22, 163, 74, 0.25) !important;
        outline: none !important;
        transform: translateY(-50%);
    }

    #sidebar-toggle-btn:active {
        background: #e9ecef !important;
        transform: translateY(-50%) scale(0.95);
    }

    #sidebar-toggle-btn i {
        font-size: 1rem;
        display: inline-block;
        transition: transform 0.3s ease;
        line-height: 1;
    }

#sidebar.collapsed #sidebar-toggle-btn {
    right: -16px;
}

    #sidebar.collapsed #sidebar-toggle-btn i {
        transform: rotate(180deg);
    }

#sidebar.collapsed .menu-group-header {
    display: none;
}

/* Sidebar dividers */
.sidebar-divider {
    height: 1px;
    background-color: var(--border-color, #e5e7eb);
    margin: 0.5rem 1rem;
    list-style: none;
}

/* Menu group styles */
.menu-group-header {
    /*margin-top: 0.5rem;*/
}

/* Menu group toggle button styles */
.menu-group-toggle {
    cursor: pointer;
    transition: background-color 0.2s ease;
    border: none;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 0.75rem 1rem;
    color: var(--text-secondary, #6b7280);
    text-decoration: none;
    background: transparent;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 2; /* Tránh bị text/block khác che không click được */
    font-weight: 600;
    margin: 0;
    text-align: left;
    height: 50px;
}
/* Bỏ màu xanh đậm khi click/focus item cha (outline + box-shadow + background) */
#sidebar .menu-group-toggle:focus,
#sidebar .menu-group-toggle:active {
    outline: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
}
#sidebar .menu-group-toggle:focus:not([aria-expanded="true"]) {
    background-color: var(--body-bg, #f3f4f6) !important;
    color: var(--text-primary, #111827) !important;
}
#sidebar .menu-group-toggle:active:not([aria-expanded="true"]) {
    background-color: var(--border-color, #e5e7eb) !important;
    color: var(--text-primary, #111827) !important;
}

    /* Menu group toggle text - align left */
    .menu-group-toggle .sidebar-text {
        text-align: left;
        flex: 1;
    }

    /* Menu group icon - align right */
    .menu-group-toggle .menu-group-icon {
        margin-left: auto;
        flex-shrink: 0;
        height: 50px;
    }

    /* Active/expanded menu group toggle - background highlight */
    .menu-group-toggle[aria-expanded="true"],
    .menu-group-toggle.active {
        background-color: var(--body-bg, #f3f4f6) !important;
        border: none !important;
        color: var(--text-primary, #111827) !important;
        height: 50px;
    }

    /* Chỉ item cha đang mở (expand) mới có nền xám + viền xanh; không áp cho nhóm chỉ có con active khi đang đóng */
    .menu-group-toggle.has-active {
        border: none !important;
        color: var(--text-primary, #111827) !important;
        height: 50px;
    }

    /* Thanh viền xanh dọc: CHỈ trên item cha đang mở (aria-expanded="true"), không dùng has-active */
    .menu-group-toggle[aria-expanded="true"] {
        position: relative;
        background-color: var(--body-bg, #f3f4f6) !important;
    }
    .menu-group-toggle[aria-expanded="true"]::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: -1px;
        width: 3px;
        background: #198754;
        pointer-events: none;
        z-index: 0;
    }

    /* Thanh viền xanh dọc: tiếp tục chạy qua toàn bộ khối item con (khi menu mở) */
    #sidebar .menu-group-items.collapse.show {
        position: relative;
    }
    #sidebar .menu-group-items.collapse.show::after {
        content: '';
        position: absolute;
        right: 0;
        top: -1px;
        bottom: 0;
        width: 3px;
        background: #198754;
        pointer-events: none;
        z-index: 0;
    }

    /* Mỗi mục (li) trong sidebar z-index cao → khi cuộn / khi đóng nhóm luôn nằm trên khối con */
    #sidebar nav ul#sidebar-nav-list > li {
        position: relative;
        z-index: 2;
    }
    /* Khối item con (ul): z-index thấp + overflow hidden + isolation → lúc collapse không tràn/đè lên item dưới */
    #sidebar nav ul#sidebar-nav-list > ul.menu-group-items {
        position: relative;
        z-index: 0;
        overflow: hidden;
        isolation: isolate;
    }
    /* Bootstrap collapse: khi đang animation (collapsing) vẫn clip và nằm dưới */
    #sidebar nav ul#sidebar-nav-list > ul.menu-group-items.collapse.collapsing {
        overflow: hidden;
        z-index: 0;
    }

    /* Trang chủ active: thanh xanh bên phải giống item cha */
    #sidebar nav ul#sidebar-nav-list > li:first-child .nav-item.active {
        position: relative;
    }
    #sidebar nav ul#sidebar-nav-list > li:first-child .nav-item.active::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        background: #198754;
        pointer-events: none;
        z-index: 0;
    }

    /* Hover states - only for non-active/expanded */
    .menu-group-toggle:hover:not([aria-expanded="true"]):not(.active):not(.has-active) {
        background-color: var(--body-bg, #f3f4f6) !important;
    }

    /* Hover for active/expanded - slightly darker */
    .menu-group-toggle[aria-expanded="true"]:hover,
    .menu-group-toggle.active:hover,
    .menu-group-toggle.has-active:hover {
        background-color: var(--border-color, #e5e7eb) !important;
    }

/* Light theme hover */
#sidebar.bg-light .menu-group-toggle:hover {
    background-color: #e5e7eb !important;
}

/* Green theme hover */
#sidebar.bg-success .menu-group-toggle:hover {
    background-color: var(--body-bg, #f3f4f6) !important;
}

/* Gray theme hover */
#sidebar.bg-secondary .menu-group-toggle:hover {
    background-color: var(--body-bg, #f3f4f6) !important;
}

/* Primary theme hover */
#sidebar.bg-primary .menu-group-toggle:hover {
    background-color: var(--body-bg, #f3f4f6) !important;
}

.menu-group-icon {
    transition: transform 0.3s ease;
    color: var(--brand-primary, #16a34a) !important; /* iSAC Green */
    font-size: 0.875rem !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
    font-family: "bootstrap-icons" !important;
    font-style: normal !important;
    font-weight: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Green theme menu group icon */
#sidebar.bg-success .menu-group-icon {
    color: var(--brand-primary, #16a34a) !important; /* iSAC Green */
}

/* Gray theme menu group icon */
#sidebar.bg-secondary .menu-group-icon {
    color: var(--brand-primary, #16a34a) !important; /* iSAC Green */
}

/* Primary theme menu group icon - Improved contrast */
#sidebar.bg-primary .menu-group-icon {
    color: var(--brand-primary, #16a34a) !important; /* iSAC Green */
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 0.875rem !important;
}

.menu-group-toggle.active .menu-group-icon,
.menu-group-toggle[aria-expanded="true"] .menu-group-icon {
    transform: rotate(180deg);
    color: var(--brand-primary, #16a34a) !important; /* iSAC Green */
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure icons are visible in expanded menu group toggle */
.menu-group-toggle[aria-expanded="true"] .menu-group-icon,
.menu-group-toggle[aria-expanded="true"] i,
.menu-group-toggle.active .menu-group-icon,
.menu-group-toggle.active i,
.menu-group-toggle.has-active .menu-group-icon,
.menu-group-toggle.has-active i {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Theme: chỉ item cha đang mở mới có nền xám (không áp cho has-active khi đang đóng) */
#sidebar.bg-success .menu-group-toggle[aria-expanded="true"],
#sidebar.bg-secondary .menu-group-toggle[aria-expanded="true"],
#sidebar.bg-primary .menu-group-toggle[aria-expanded="true"] {
    background-color: var(--body-bg, #f3f4f6) !important;
    border: none !important;
}

    /* Ensure icons are visible in theme-specific expanded states */
    #sidebar.bg-success .menu-group-toggle[aria-expanded="true"] .menu-group-icon,
    #sidebar.bg-success .menu-group-toggle[aria-expanded="true"] i,
    #sidebar.bg-secondary .menu-group-toggle[aria-expanded="true"] .menu-group-icon,
    #sidebar.bg-secondary .menu-group-toggle[aria-expanded="true"] i,
    #sidebar.bg-primary .menu-group-toggle[aria-expanded="true"] .menu-group-icon,
    #sidebar.bg-primary .menu-group-toggle[aria-expanded="true"] i,
    #sidebar.bg-success .menu-group-toggle.has-active .menu-group-icon,
    #sidebar.bg-success .menu-group-toggle.has-active i,
    #sidebar.bg-secondary .menu-group-toggle.has-active .menu-group-icon,
    #sidebar.bg-secondary .menu-group-toggle.has-active i,
    #sidebar.bg-primary .menu-group-toggle.has-active .menu-group-icon,
    #sidebar.bg-primary .menu-group-toggle.has-active i {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Theme-specific hover for expanded */
    #sidebar.bg-success .menu-group-toggle[aria-expanded="true"]:hover,
    #sidebar.bg-secondary .menu-group-toggle[aria-expanded="true"]:hover,
    #sidebar.bg-primary .menu-group-toggle[aria-expanded="true"]:hover {
        background-color: var(--border-color, #e5e7eb) !important;
    }

/* Improved text contrast for menu group headers */
#sidebar.bg-primary .menu-group-toggle .sidebar-text {
    color: var(--text-secondary, #6b7280) !important;
    font-weight: 500 !important; /* Giảm từ 600 xuống 500 */
    letter-spacing: 0.02em;
    line-height: 1.5;
}

/* Improved text contrast for sub-menu items */
#sidebar.bg-primary .menu-group-items .nav-item:not(.active) {
    color: var(--text-primary, #111827) !important;
}

#sidebar.bg-primary .menu-group-items .nav-item:hover:not(.active) {
    color: var(--text-primary, #111827) !important;
    transition: background-color 0.2s ease;
}

#sidebar.bg-primary .menu-group-items li:hover {
    background-color: var(--body-bg, #f3f4f6) !important;
}

#sidebar.bg-primary .menu-group-items .nav-item.active {
    color: #bbf7d0 !important; /* Green-900 - tối hơn để tăng contrast */
    background-color: #dcfce7 !important; /* Green-50 - light green background */
}

    #sidebar.bg-primary .menu-group-items .nav-item.active:hover {
        background-color: #bbf7d0 !important; /* Green-100 - slightly darker */
        box-shadow: inset 0 0 0 1px rgba(21, 128, 61, 0.1);
    }

.menu-group-items {
    list-style: none;
    padding: 0 0 0 1.5rem;
    margin: 0;
    overflow: visible; /* visible để chấm tròn bên trái không bị cắt */
}

    /* Bootstrap collapse integration */
    .menu-group-items.collapse:not(.show) {
        display: none;
    }

    .menu-group-items.collapse.show {
        display: block;
        max-height: 1000px;
        opacity: 1;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }

    /* Add border between menu items within a group */
    .menu-group-items li:not(:last-child) .nav-item {
        border-bottom: 1px solid var(--border-color, #e5e7eb);
    }

    /* Add border after last item in menu group */
    .menu-group-items li:last-child .nav-item {
        border-bottom: 1px solid var(--border-color, #e5e7eb);
        /*margin-bottom: 0.25rem;*/
    }

    .menu-group-items li {
        margin-top: 0;
        margin-bottom: 0;
    }

/* When collapsed, show menu group items as icon-only */
#sidebar.collapsed .menu-group-items {
    display: block !important;
    max-height: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding-left: 0 !important;
}

    #sidebar.collapsed .menu-group-items::before,
    #sidebar.collapsed .menu-group-items li::before {
        display: none !important;
    }

    #sidebar.collapsed .menu-group-items li {
        display: block !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

    #sidebar.collapsed .menu-group-items .nav-item {
        display: flex !important;
        visibility: visible !important;
        justify-content: center;
        align-items: center;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

#sidebar.collapsed .menu-group-toggle {
    display: none !important;
}

#sidebar.collapsed .menu-group-icon {
    display: none;
}

/* Ensure standalone nav items (like Dashboard) are visible when collapsed */
#sidebar.collapsed > nav > ul > li:not(.menu-group-header) > .nav-item {
    display: flex !important;
    visibility: visible !important;
}

/* Ensure icons are visible when sidebar is collapsed */
#sidebar.collapsed .nav-item .fas,
#sidebar.collapsed .nav-item .fa,
#sidebar.collapsed .nav-item i,
#sidebar.collapsed .nav-item .bi {
    display: inline-block !important;
    margin: 0 !important;
    margin-right: 0 !important;
    width: auto !important;
    font-size: 1.25rem;
    visibility: visible !important;
    opacity: 1 !important;
    color: var(--brand-primary, #16a34a) !important; /* iSAC Green */
}

/* Ensure menu group items icons are visible when sidebar is collapsed */
#sidebar.collapsed .menu-group-items .nav-item i,
#sidebar.collapsed .menu-group-items .nav-item .bi,
#sidebar.collapsed .menu-group-items .sidebar-icon {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 !important;
    font-size: 1.25rem !important;
    color: var(--brand-primary, #16a34a) !important; /* iSAC Green */
}

/* Sidebar scrollbar - Light theme default */
#sidebar nav::-webkit-scrollbar {
    width: 6px;
}

#sidebar nav::-webkit-scrollbar-track {
    background: var(--body-bg, #f3f4f6);
}

#sidebar nav::-webkit-scrollbar-thumb {
    background: var(--border-color, #e5e7eb);
    border-radius: 3px;
}

    #sidebar nav::-webkit-scrollbar-thumb:hover {
        background: var(--text-muted, #9ca3af);
    }

/* Light theme sidebar scrollbar */
#sidebar.bg-light nav::-webkit-scrollbar-track {
    background: #f3f4f6;
}

#sidebar.bg-light nav::-webkit-scrollbar-thumb {
    background: #d1d5db;
}

    #sidebar.bg-light nav::-webkit-scrollbar-thumb:hover {
        background: #9ca3af;
    }

/* Green theme sidebar scrollbar */
#sidebar.bg-success nav::-webkit-scrollbar-track {
    background: var(--body-bg, #f3f4f6);
}

#sidebar.bg-success nav::-webkit-scrollbar-thumb {
    background: var(--border-color, #e5e7eb);
}

    #sidebar.bg-success nav::-webkit-scrollbar-thumb:hover {
        background: var(--text-muted, #9ca3af);
    }

/* Gray theme sidebar scrollbar */
#sidebar.bg-secondary nav::-webkit-scrollbar-track {
    background: var(--body-bg, #f3f4f6);
}

#sidebar.bg-secondary nav::-webkit-scrollbar-thumb {
    background: var(--border-color, #e5e7eb);
}

    #sidebar.bg-secondary nav::-webkit-scrollbar-thumb:hover {
        background: var(--text-muted, #9ca3af);
    }

/* Light theme sidebar scrollbar */
#sidebar.bg-primary nav::-webkit-scrollbar-track {
    background: var(--body-bg, #f3f4f6);
}

#sidebar.bg-primary nav::-webkit-scrollbar-thumb {
    background: var(--border-color, #e5e7eb);
}

    #sidebar.bg-primary nav::-webkit-scrollbar-thumb:hover {
        background: var(--text-muted, #9ca3af);
    }

/* Nav item hover */
.nav-item.hover-bg-secondary:hover,
.nav-item.hover-bg-secondary:focus {
    background-color: #374151;
}

.nav-item.hover-bg-light:hover,
.nav-item.hover-bg-light:focus {
    background-color: #e5e7eb;
}

.nav-item.hover-bg-success-subtle:hover,
.nav-item.hover-bg-success-subtle:focus {
    background-color: var(--body-bg, #f3f4f6);
}

.nav-item.hover-bg-secondary-subtle:hover,
.nav-item.hover-bg-secondary-subtle:focus {
    background-color: var(--body-bg, #f3f4f6);
}

.nav-item.hover-bg-primary-subtle:hover,
.nav-item.hover-bg-primary-subtle:focus {
    background-color: #16a34a; /* Green-600 theo guideline iSAC */
}

/* Sidebar nav item hover - theo guideline (chỉ cho non-active items) */
#sidebar .nav-item:hover:not(.active) {
    background-color: var(--body-bg, #f3f4f6) !important; /* Light gray background */
    color: var(--text-primary, #111827) !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Smooth transition cho tất cả nav items */
#sidebar .nav-item {
    transition: background-color 0.2s ease, color 0.2s ease, border-left 0.2s ease;
}

/* Active nav item - theo guideline (iSAC Green Theme) */
.nav-item.active {
    background-color: #dcfce7 !important; /* Green-50 - light green theo guideline */
    color: #bbf7d0 !important; /* Green-900 - tối hơn để tăng contrast với background */
    font-weight: 600 !important; /* Bold cho active theo guideline */
    transition: all 0.2s ease;
}

    .nav-item.active .sidebar-text {
        color: #14532d !important; /* Green-900 - tối hơn để tăng contrast, đảm bảo WCAG AA */
        font-weight: 600 !important;
    }

    .nav-item.active i,
    .nav-item.active .sidebar-icon {
        color: #15803d !important; /* Green-700 icon theo guideline */
    }

    /* Active + Hover state - subtle darken để feedback */
    .nav-item.active:hover {
        background-color: #bbf7d0 !important; /* Green-100 - slightly darker than active */
        /*box-shadow: inset 0 0 0 1px rgba(21, 128, 61, 0.1);*/
    }

/* Active state cho các theme khác - iSAC Green Theme */
#sidebar.bg-success .nav-item.active,
#sidebar.bg-secondary .nav-item.active,
#sidebar.bg-primary .nav-item.active {
    background-color: #dcfce7 !important; /* Green-50 */
    color: #bbf7d0 !important; /* Green-900 - tối hơn để tăng contrast */
    font-weight: 600 !important;
    transition: all 0.2s ease;
}

    #sidebar.bg-success .nav-item.active:hover,
    #sidebar.bg-secondary .nav-item.active:hover,
    #sidebar.bg-primary .nav-item.active:hover {
        background-color: #bbf7d0 !important; /* Green-100 */
        box-shadow: inset 0 0 0 1px rgba(21, 128, 61, 0.1);
    }

    #sidebar.bg-success .nav-item.active i,
    #sidebar.bg-secondary .nav-item.active i,
    #sidebar.bg-primary .nav-item.active i {
        color: #15803d !important; /* Green-700 */
    }

/* Hover cho non-active items trong các theme */
#sidebar.bg-success .nav-item:hover:not(.active),
#sidebar.bg-secondary .nav-item:hover:not(.active),
#sidebar.bg-primary .nav-item:hover:not(.active) {
    background-color: var(--body-bg, #f3f4f6) !important;
    transition: background-color 0.2s ease;
}

/* Main Content */
.app-main {
    flex: 1;
    margin-left: 16rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
    width: calc(100% - 16rem);
    position: relative;
    z-index: 1; /* Thấp hơn sidebar (1000) để nội dung không đè lên menu, nút sidebar luôn click được */
}

.app-wrapper:has(#sidebar.collapsed) .app-main {
    margin-left: 4rem;
    width: calc(100% - 4rem);
}

.app-header {
    background: var(--header-bg, #ffffff);
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    padding: 6px 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: var(--text-primary, #111827);
    position: sticky;
    top: 0;
    z-index: 1024;
    flex-shrink: 0;
}

/* Tiêu đề header: căn giữa toàn bộ header, hiển thị full text */
.app-header .header-title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
    width: max-content;
    max-width: 85%;
    text-align: center;
}
.app-header .header-title + .header-subtitle {
    display: none;
}
.app-header .d-flex.flex-grow-1 > div:first-child,
.app-header .d-flex.flex-grow-1 > div:last-child,
.app-header .d-flex.flex-grow-1 ~ div {
    position: relative;
    z-index: 1;
}

/* Header title - desktop (giữ màu, font, không cắt chữ) */
@media (min-width: 768px) {
    .app-header .header-title {
        color: #64748b;
        font-weight: 600;
        margin: 0;
        font-size: 1.125rem; /* Normal size on desktop */
    }

    .app-header .header-subtitle {
        color: var(--text-secondary, #6b7280);
        font-size: 0.875rem;
        margin-top: 0.25rem;
        display: block !important;
    }

    /* Desktop: Show user name text */
    .app-header .dropdown-toggle span {
        display: inline !important;
    }

    /* Desktop: Show dropdown arrow */
    .app-header .dropdown-toggle::after {
        display: inline-block !important;
        border-top-color: var(--text-primary, #111827);
    }

    /* Desktop: Header buttons - dark color on light background */
    .app-header .btn-link {
        color: var(--text-primary, #111827) !important;
    }

        .app-header .btn-link:hover {
            color: var(--brand-primary, #16a34a) !important;
        }

    .app-header .dropdown-toggle {
        color: var(--text-primary, #111827) !important;
        padding: 0.5rem 0.75rem !important;
        min-width: auto;
    }

        .app-header .dropdown-toggle:hover {
            color: var(--brand-primary, #16a34a) !important;
        }

        .app-header .dropdown-toggle span {
            display: inline !important;
        }

        .app-header .dropdown-toggle i {
            font-size: 1.5rem;
            margin-right: 0.5rem;
        }
}

/* Header buttons - default (will be overridden in media queries) */
.app-header .btn-link {
    color: var(--text-primary, #111827) !important;
}

    .app-header .btn-link:hover {
        color: var(--brand-primary, #16a34a) !important;
    }

.app-header .dropdown-toggle {
    color: var(--text-primary, #111827) !important;
}

    .app-header .dropdown-toggle:hover {
        color: var(--brand-primary, #16a34a) !important;
    }

.app-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: var(--body-bg, #f7f7f7);
 }

/* Responsive padding for app-content */
@media (max-width: 767.98px) {
    .app-content {
        padding: 1rem;
    }
}

/* ============================================
   Statistics Cards
   ============================================ */
.stat-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .stat-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

.stat-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

/* All stat card icons use brand primary color */
.stat-card-primary .stat-card-icon,
.stat-card-success .stat-card-icon,
.stat-card-danger .stat-card-icon,
.stat-card-warning .stat-card-icon,
.stat-card-info .stat-card-icon,
.stat-card-secondary .stat-card-icon {
    background: var(--brand-primary);
}

.stat-card-content {
    flex: 1;
}

.stat-card-value {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.stat-card-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0.25rem 0 0 0;
}

.stat-card-details {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-light);
}

    .stat-card-details small {
        font-size: 0.75rem;
        line-height: 1.5;
    }

/* Statistics Detail List (for Dashboard detailed stats) */
.stat-detail-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

    .stat-detail-item:last-child {
        border-bottom: none;
    }

.stat-detail-label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.stat-detail-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

/* Empty State */
.empty-state {
    padding: 3rem 1rem;
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Responsive adjustments for statistics */
@media (max-width: 767.98px) {
    .stat-card {
        padding: 1rem;
    }

    .stat-card-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }

    .stat-card-value {
        font-size: 1.5rem;
    }

    .stat-card-details {
        font-size: 0.7rem;
    }

    .stat-detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .stat-detail-value {
        margin-left: auto;
    }
}



/* ============================================
   Select2 Customization (UI/UX Compliance)
   ============================================ */
.select2-container--default .select2-selection--single {
    height: 38px;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
}

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 1.5;
        padding-left: 12px;
        padding-right: 50px; /* Space for clear button (x) and arrow */
        color: #212529;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        height: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        width: 100%;
    }

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 100%;
        right: 8px;
        top: 0;
        width: 20px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: absolute;
        z-index: 2; /* Higher than clear button */
        pointer-events: none; /* Allow clicks to pass through to select */
    }

        .select2-container--default .select2-selection--single .select2-selection__arrow b {
            border-color: #6c757d transparent transparent transparent;
            border-style: solid;
            border-width: 5px 4px 0 4px;
            height: 0;
            left: 50%;
            margin-left: -4px;
            margin-top: -2px;
            position: absolute;
            top: 50%;
            width: 0;
        }

    /* Clear button (X) styling - position after text */
    .select2-container--default .select2-selection--single .select2-selection__clear {
        position: absolute;
        right: 30px; /* Position before arrow */
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        font-size: 1.2rem;
        line-height: 1;
        color: #6c757d;
        width: 18px;
        height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1; /* Lower than arrow */
    }

        .select2-container--default .select2-selection--single .select2-selection__clear:hover {
            color: #212529;
        }

    .select2-container--default .select2-selection--single .select2-selection__placeholder {
        color: #6c757d;
        line-height: 1.5;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        width: 100%;
        text-align: center;
    }

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.2rem rgba(22, 163, 74, 0.25);
}

.select2-dropdown {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    z-index: 1055; /* Ensure dropdown appears above modals */
}

.select2-results__option--highlighted {
    background-color: var(--brand-primary);
    color: white;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: var(--brand-primary);
    color: white;
}

/* Select2 Bootstrap 5 Theme Compatibility */
.select2-container--bootstrap-5 .select2-selection {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    min-height: 38px;
    display: flex;
    align-items: center;
    position: relative; /* For absolute positioning of clear button and arrow */
}

.select2-container--bootstrap-5 .select2-selection--single {
    height: 38px;
}

    .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
        line-height: 1.5;
        padding-left: 12px;
        padding-right: 50px; /* Space for clear button (x) and arrow */
        color: #212529;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        height: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        width: 100%;
        position: relative;
    }

    .select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
        height: 100%;
        right: 8px;
        top: 0;
        width: 20px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: absolute;
        z-index: 2; /* Higher than clear button */
        pointer-events: none; /* Allow clicks to pass through to select */
    }

        .select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow b {
            border-color: #6c757d transparent transparent transparent;
            border-style: solid;
            border-width: 5px 4px 0 4px;
            height: 0;
            left: 50%;
            margin-left: -4px;
            margin-top: -2px;
            position: absolute;
            top: 50%;
            width: 0;
        }

    /* Clear button (X) styling for Bootstrap 5 theme */
    .select2-container--bootstrap-5 .select2-selection--single .select2-selection__clear {
        position: absolute;
        right: 30px; /* Position before arrow */
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        font-size: 1.2rem;
        line-height: 1;
        color: #6c757d;
        width: 18px;
        height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1;
    }

        .select2-container--bootstrap-5 .select2-selection--single .select2-selection__clear:hover {
            color: #212529;
        }

    /* Placeholder center alignment for Bootstrap 5 */
    .select2-container--bootstrap-5 .select2-selection--single .select2-selection__placeholder {
        color: #6c757d;
        line-height: 1.5;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        width: 100%;
        text-align: center;
    }

.select2-container--bootstrap-5.select2-container--focus .select2-selection {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.2rem rgba(22, 163, 74, 0.25);
}

.select2-container--bootstrap-5 .select2-dropdown {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    z-index: 1055;
}

/* Ensure dropdown menus appear above pagination */
.card-body .table-responsive .dropdown-menu {
    z-index: 1050 !important;
}

/* ============================================
   Buttons
   ============================================ */

.btn-primary {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

    .btn-primary:hover {
        background-color: var(--brand-primary-hover);
        border-color: var(--brand-primary-hover);
    }

/* ============================================
   Forms
   ============================================ */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.2rem rgba(22, 163, 74, 0.25);
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: var(--brand-primary);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--text-secondary);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 767.98px) {
    /* Mobile sidebar styles are defined above in the main #sidebar section */
    /* This section handles app-main and scroll behavior */
    .app-wrapper {
        min-height: 100vh;
        height: auto;
        display: block; /* Change from flex to block for natural flow */
    }

    .app-main {
        margin-left: 0 !important;
        width: 100% !important;
        min-height: 100vh;
        height: auto;
        overflow: visible;
        display: block;
        padding-top: 56px; /* Chừa chỗ cho header cố định (fixed) */
    }

    .app-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 1024;
        flex-shrink: 0;
        padding: 0.1rem 1rem !important;
        background: var(--header-bg, #ffffff) !important;
        color: var(--text-primary, #111827) !important;
        border-bottom: 1px solid var(--border-color, #e5e7eb) !important;
    }

        /* Mobile header layout improvements */
        .app-header .d-flex {
            gap: 0.75rem !important; /* Reduced gap */
        }

        /* Title section - căn giữa chắc chắn trên mobile, full text */
        .app-header .header-title {
            position: absolute !important;
            left: 50% !important;
            top: 50% !important;
            transform: translate(-50%, -50%) !important;
            font-size: 1rem !important;
            font-weight: 600;
            line-height: 1.3;
            margin: 0 !important;
            color: var(--text-primary, #111827) !important;
            width: max-content !important;
            max-width: 85% !important;
            white-space: nowrap !important;
            text-align: center !important;
        }

        /* Hide subtitle on mobile to save space */
        .app-header .header-subtitle {
            display: none !important;
        }

        /* Adjust flex layout for mobile */
        .app-header .d-flex.flex-grow-1 {
            gap: 0.5rem !important;
        }

        .app-header .flex-grow-1 {
            min-width: 0; /* Allow flex item to shrink */
        }

        /* Balance spacer width on mobile */
        .app-header .d-flex.flex-grow-1 > div:last-child {
            width: 40px !important;
        }

    /* Sidebar toggle button - smaller on mobile */
    #sidebarToggle {
        padding: 0.5rem !important;
        min-width: 40px;
        flex-shrink: 0;
    }

        #sidebarToggle i {
            font-size: 1.25rem !important; /* Slightly smaller icon */
        }

    /* User dropdown - hide text, show only icon on mobile */
    .app-header .dropdown-toggle {
        padding: 0.5rem !important;
        min-width: 40px;
        flex-shrink: 0;
        color: var(--text-primary, #111827) !important;
    }

        .app-header .dropdown-toggle:hover {
            color: var(--brand-primary, #16a34a) !important;
        }

        .app-header .dropdown-toggle span {
            display: none !important; /* Hide user name text on mobile */
        }

        .app-header .dropdown-toggle i {
            font-size: 1.5rem !important;
            margin: 0 !important;
            color: var(--text-primary, #111827) !important;
        }

        /* Remove dropdown arrow on mobile */
        .app-header .dropdown-toggle::after {
            display: none !important;
        }

    /* User dropdown menu - full width on mobile */
    .app-header .dropdown-menu {
        min-width: 200px;
        right: 0;
        left: auto;
    }

    .app-content {
        min-height: auto;
        overflow: visible;
        padding: 0.5rem;
    }

    /* Ensure body and html can scroll on mobile */
    body {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        position: relative !important;
        height: auto !important;
        min-height: 100vh;
    }

    html {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        height: auto !important;
    }
}

/* ============================================
   Table Rules (UI/UX Compliance)
   ============================================ */
/* Table responsive - horizontal scroll, no wrapping */
.card-body .table-responsive {
    /* Increased padding to ensure dropdown menus are not clipped */
  /*  padding-bottom: 300px;
    margin-bottom: -300px;*/
    /* Horizontal scroll for long content */
    overflow-x: auto;
    /*overflow-y: visible !important;*/
    /* Ensure horizontal scrollbar is visible */
    -webkit-overflow-scrolling: touch;
}

    /* Ensure dropdown menus appear above pagination and other elements */
    .card-body .table-responsive .dropdown-menu {
        z-index: 1070 !important;
        position: absolute !important;
        /* Ensure dropdown can escape table boundaries */
        margin-top: 0.125rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
        /* Prevent clipping */
        will-change: transform;
        transform: translateZ(0);
    }

    /* Ensure dropdown toggle button has proper positioning context */
    .card-body .table-responsive .dropdown {
        position: relative !important;
    }

/* Make sure dropdown menu can escape table boundaries */
/* Ensure card and card-body allow overflow for dropdowns */
.card:has(.table-responsive) {
    overflow: visible !important;
}

.card-body {
    /*overflow: visible !important;*/
}

    .card-body .table-responsive {
        position: relative;
        /*overflow: visible !important;*/
        min-height: 200px !important;
    }

        .card-body .table-responsive table {
            position: relative;
            margin-bottom: 0;
        }

            .card-body .table-responsive table tbody tr {
                position: relative;
            }

                .card-body .table-responsive table tbody tr td {
                    position: relative;
                }

                    .card-body .table-responsive table tbody tr td .dropdown {
                        position: static;
                        /*overflow: visible;*/
                    }

                    /* Ensure dropdown menu can escape table cell boundaries */
                    .card-body .table-responsive table tbody tr td .dropdown-menu {
                        position: absolute !important;
                        z-index: 1070 !important;
                        /* Ensure menu appears above everything */
                        transform: translate3d(0, 0, 0);
/**/                    }


            /* Prevent text wrapping in all table cells - use horizontal scroll instead */
            .card-body .table-responsive table.table {
                width: 100%;
                min-width: 100%;
                table-layout: auto;
            }

                .card-body .table-responsive table.table th,
                .card-body .table-responsive table.table td {
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    /* Minimum width to prevent too narrow columns */
                    min-width: 80px;
                }

                    /* Exception: Allow overflow for cells containing dropdowns */
                    .card-body .table-responsive table.table td:has(.dropdown-toggle),
                    .card-body .table-responsive table.table th:has(.dropdown-toggle) {
                        /*overflow: visible !important;*/
                    }

                    /* Allow dropdown menus to overflow from table cells - target action column */
                    .card-body .table-responsive table.table td.text-center:has(.dropdown),
                    .card-body .table-responsive table.table th.text-center:has(.dropdown),
                    .card-body .table-responsive table.table td:has(.dropdown-toggle),
                    .card-body .table-responsive table.table th:has(.dropdown-toggle) {
                        /*overflow: visible !important;*/
                        position: relative;
                    }

                    /* Ensure dropdown container can overflow */
                    .card-body .table-responsive table.table td .dropdown {
                        position: static;
                        overflow: visible;
                    }

                /* Specific fix for action column - allow overflow */
                .card-body .table-responsive table.table tbody tr td:has(.dropdown-toggle) {
                    overflow: visible !important;
                    position: relative;
                    /*z-index: 1;*/
                }

                /* Allow specific columns to have more width if needed */
                .card-body .table-responsive table.table th:first-child,
                .card-body .table-responsive table.table td:first-child {
                    min-width: 30px; /* STT column */
   
                }

                .card-body .table-responsive table.table th.text-center,
                .card-body .table-responsive table.table td.text-center {
                    text-align: center;
                }

                /* Make all table headers uppercase */
                .card-body .table-responsive table.table thead th {
                    text-transform: uppercase;
                    font-weight: 600;
                    letter-spacing: 0.5px;
                }

/* Badge colors for gender */
.badge.bg-pink {
    background-color: #e91e63 !important;
    color: white;
}

/* ============================================
   Utilities
   ============================================ */
.container-fluid.p-0.m-0 {
    padding: 0 !important;
    margin: 0 !important;
}

.container-fluid {
    padding: 0 !important;
    margin: 0 !important;
}

/* Focus styles */
.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 rgba(22, 163, 74, 0.25);
}

/* ============================================
   SPA Navigation Loading Overlay
   ============================================ */
.spa-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.spa-loading-content {
    text-align: center;
}

    .spa-loading-content .spinner-border {
        width: 3rem;
        height: 3rem;
    }

.app-content {
    position: relative;
    min-height: 400px;
    /*transition: opacity 0.3s ease;*/
   
}

@media (max-width: 767.98px) {
    .app-content {
        margin-top: 10px;
    }
}
/* Improved badge contrast - reduced font weight */
.badge.bg-info {
    background-color: #0dcaf0 !important;
    color: #fff !important;
    font-weight: 500; /* Giảm từ 600 xuống 500 */
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #fff !important;
    font-weight: 500; /* Giảm từ 600 xuống 500 */
}

.badge.bg-secondary {
    background-color: #6c757d !important;
    color: #fff !important;
    font-weight: 500; /* Giảm từ 600 xuống 500 */
}

.badge.bg-success {
    background-color: #198754 !important;
    color: #fff !important;
    font-weight: 500; /* Giảm từ 600 xuống 500 */
    padding:10px;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
    color: #fff !important;
    font-weight: 500; /* Giảm từ 600 xuống 500 */
}

.badge.bg-primary {
    background-color: #0d6efd !important;
    color: #fff !important;
    font-weight: 500; /* Giảm từ 600 xuống 500 */
    padding:10px;
}

.badge.bg-dark {
    background-color: #212529 !important;
    color: #fff !important;
    font-weight: 500; /* Giảm từ 600 xuống 500 */
}

/* Enhanced badge styling for detail pages */
.detail-badge,
.card-body .badge,
dl .badge {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 400; /* Giảm từ 600 xuống 500 */
    border-radius: 0.375rem;
    letter-spacing: 0.025em;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.width-30 {
    width: 50px !important;
    max-width: 50px !important;
    min-width: 50px !important;
}

.width-50 {
    width: 100px !important;
    max-width: 100px !important;
    min-width: 100px !important;
}

.width-100 {
    width: 115px !important;
    max-width: 115px !important;
    min-width: 115px !important;
}

.width-200 {
    width: 200px !important;
    max-width: 200px !important;
    min-width: 200px !important;
}

.dropdown-item.active, .dropdown-item:active {
    background-color: #15803d !important;
}

.form-check-input:checked {
    background-color: #16a34a !important;
    border-color: #16a34a !important;
}

.form-switch .form-check-input {
    transform: scale(1.5) !important;
}

.modal-dialog{
    max-width: 900px;
}
.modal-dialog-confirm {
    max-width: 400px;
}

.modal-dialog.vehicle-detail-popup {
    max-width: 95vw;
    width: 95vw;
}

/* Thứ tự lớp khi mở modal: nội dung trang (1050) < backdrop (1060) < modal (1070). Modal được chuyển ra body bằng JS nên nổi trên backdrop. */
body.modal-open .app-wrapper {
    z-index: 1050;
    position: relative;
}
/* Backdrop làm mờ nền: phải nằm dưới modal nhưng trên nội dung trang */
.modal.show {
    z-index: 1070 !important;
}
.modal-backdrop {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    background-color: #000 !important;
}
.modal-backdrop.show {
    z-index: 1060 !important;
    opacity: 0.5 !important;
}
.modal.show .modal-dialog {
    z-index: 1;
    position: relative;
    pointer-events: auto;
}
.modal.show .modal-content {
    pointer-events: auto;
}

/* Popup Quản lý ví + Cập nhật trạng thái (tài xế/xe): z-index cao, luôn nổi trên backdrop, click được */
#walletModal.show,
#updateDriverStatusModal.show,
#updateStatusModal.show {
    z-index: 1110 !important;
    pointer-events: auto !important;
}
#walletModal.show .modal-dialog,
#updateDriverStatusModal.show .modal-dialog,
#updateStatusModal.show .modal-dialog {
    pointer-events: auto !important;
}
#walletModal.show .modal-content,
#updateDriverStatusModal.show .modal-content,
#updateStatusModal.show .modal-content {
    pointer-events: auto !important;
}

/* Popup Quản lý ví hiện trên popup Edit (khi Edit mở trong globalModal) */
#walletModal.wallet-modal-on-top,
#walletModal.wallet-modal-on-top.show {
    z-index: 1080 !important;
}

/* Hide number input spinners globally */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
    display: none !important;
}

input[type="number"] {
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

/* For Edge */
input[type="number"]::-ms-clear,
input[type="number"]::-ms-reveal {
    display: none !important;
}

/* ============================================
   Bookings Index - Mobile UI (< md)
   ============================================ */
@media (max-width: 767.98px) {
    #bookingsQuickFilters {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0.5rem;
        padding-bottom: 0.25rem;
    }
    #bookingsQuickFilters .btn {
        flex-shrink: 0;
        white-space: nowrap;
    }
    .list-group-item {
        border-radius: 0.5rem !important;
        margin-bottom: 0.5rem;
        border-width: 1px !important;
    }
    .list-group-item:last-child {
        margin-bottom: 0 !important;
    }
}

/* ============================================
   List pages mobile: sticky header + filters, chỉ danh sách cuộn (Riders, Drivers, Vehicles, Bookings)
   ============================================ */
@media (max-width: 767.98px) {
    .riders-mobile-sticky,
    .drivers-mobile-sticky,
    .vehicles-mobile-sticky,
    .bookings-mobile-sticky,
    .scheduled-mobile-sticky,
    .manual-mobile-sticky {
        position: sticky;
        top: 0;
        z-index: 100;
        background: var(--bs-body-bg, #fff);
        padding-bottom: 0.5rem;
        background-color: var(--body-bg, #f7f7f7);
    }
    .riders-mobile-only .riders-mobile-list-body,
    .drivers-mobile-only .drivers-mobile-list-body,
    .vehicles-mobile-only .vehicles-mobile-list-body,
    .bookings-mobile-only .bookings-mobile-list-body,
    .scheduled-mobile-only .scheduled-mobile-list-body,
    .manual-mobile-only .manual-mobile-list-body {
        max-height: calc(100vh - 320px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .riders-mobile-sticky .filters-section,
    .drivers-mobile-sticky .filters-section,
    .vehicles-mobile-sticky .filters-section,
    .bookings-mobile-sticky .filters-section,
    .scheduled-mobile-sticky .filters-section,
    .manual-mobile-sticky .filters-section {
        margin-bottom: 0 !important;
    }
}

/* ============================================
   Settings/Mobile - UI mobile (cùng bảng, hiển thị dạng card)
   ============================================ */
@media (min-width: 768px) {
    .settings-table .settings-table-head {
        display: table-header-group;
    }
}
@media (max-width: 767.98px) {
    .settings-table-wrap {
        overflow: visible;
    }
    .settings-table,
    .settings-table tbody,
    .settings-table tr.settings-row,
    .settings-table td {
        display: block;
    }
    .settings-table .settings-table-head {
        display: none;
    }
    .settings-table tbody tr.settings-row {
        border: 1px solid var(--border-color, #dee2e6);
        border-radius: 0.5rem;
        margin-bottom: 0.75rem;
        padding: 0.75rem 1rem;
        background: var(--body-bg, #f8f9fa);
    }
    .settings-table tbody tr.settings-row:last-child {
        margin-bottom: 0;
    }
    .settings-table .settings-cell-stt {
        border: none;
        padding: 0 0 0.25rem 0;
        font-size: 0.85rem;
        color: var(--bs-secondary);
    }
    .settings-table .settings-cell-stt::before {
        content: "STT: ";
        font-weight: 600;
    }
    .settings-table .settings-cell-title {
        border: none;
        padding: 0 0 0.25rem 0;
    }
    .settings-table .settings-cell-title strong {
        font-size: 0.95rem;
    }
    .settings-table .settings-cell-type {
        border: none;
        padding: 0 0 0.5rem 0;
    }
    .settings-table .settings-cell-type .badge {
        font-size: 0.7rem;
    }
    .settings-table .settings-cell-value {
        border: none;
        padding: 0;
    }
    .settings-table .settings-cell-value .form-control {
        max-width: 100%;
    }
}

/* ============================================
   Bookings/Detail - Mobile UI
   ============================================ */
@media (max-width: 767.98px) {
   
    .ms-auto{
            margin-left: initial !important;
    }
    .booking-detail-header {
        margin-bottom: 0px !important;
        padding-bottom: 0.5rem;
    }
    .booking-detail-status-card .booking-detail-status-row {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    .booking-detail-status-card .booking-detail-status-item {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color, #eee);
    }
    .booking-detail-status-card .booking-detail-status-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    .booking-detail-status-card .booking-detail-status-item h5 {
        font-size: 0.875rem;
        color: var(--text-secondary, #6c757d);
        margin-bottom: 0.35rem !important;
    }
    .booking-detail-status-card .booking-detail-badge {
        font-size: 0.95rem;
        padding: 0.4rem 0.75rem;
        display: inline-block;
    }

    /* Vehicles/Detail - Mobile UI (header + info table) */
    .vehicle-detail-header {
        margin-bottom: 0.5rem !important;
        padding: 0.5rem 0;
        background: #fff;
        border-radius: 0.5rem;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06);
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .vehicle-detail-header-back {
        width: 2.5rem;
        height: 2.5rem;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 0.5rem;
        border: 1px solid #dee2e6;
        color: #6c757d;
    }
    .vehicle-detail-header-edit {
        width: 2.5rem;
        height: 2.5rem;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 0.5rem;
    }
    .vehicle-detail-header-title span { font-size: 0.95rem; }
    .vehicle-detail-image-wrap { text-align: center; margin-bottom: 1rem; }
    .vehicle-detail-image { max-width: 120px !important; }
    .vehicle-detail-image-placeholder { width: 120px !important; height: 120px !important; margin: 0 auto; }
    .vehicle-detail-image-placeholder i { font-size: 3rem !important; }
    .vehicle-detail-info-table table { font-size: 0.9rem; }
    .vehicle-detail-info-table table tr { display: block; border-bottom: 1px solid var(--bs-border-color, #dee2e6); padding: 0.35rem 0; }
    .vehicle-detail-info-table table td { display: block; border: none; padding: 0.15rem 0; }
    .vehicle-detail-info-table table td:first-child { font-weight: 600; color: var(--bs-secondary); }

    /* Categories/Detail - Mobile UI */
    .category-detail-header {
        margin-bottom: 0.5rem !important;
        padding: 0.5rem 0;
        background: #fff;
        border-radius: 0.5rem;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06);
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .category-detail-header-back {
        width: 2.5rem;
        height: 2.5rem;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 0.5rem;
        border: 1px solid #dee2e6;
        color: #6c757d;
    }
    .category-detail-header-edit {
        width: 2.5rem;
        height: 2.5rem;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 0.5rem;
    }
    .category-detail-header-title span { font-size: 0.95rem; }
    .category-detail-image-wrap { text-align: center; margin-bottom: 1rem; }
    .category-detail-image { max-width: 120px !important; }
    .category-detail-image-placeholder { width: 120px !important; height: 120px !important; margin: 0 auto; }
    .category-detail-image-placeholder i { font-size: 3rem !important; }
    .category-detail-info-table table { font-size: 0.9rem; }
    .category-detail-info-table table tr { display: block; border-bottom: 1px solid var(--bs-border-color, #dee2e6); padding: 0.35rem 0; }
    .category-detail-info-table table td { display: block; border: none; padding: 0.15rem 0; }
    .category-detail-info-table table td:first-child { font-weight: 600; color: var(--bs-secondary); }

    /* Pricings/Detail - Mobile UI */
    .pricing-detail-header {
        margin-bottom: 0.5rem !important;
        padding: 0.5rem 0;
        background: #fff;
        border-radius: 0.5rem;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06);
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .pricing-detail-header-back {
        width: 2.5rem;
        height: 2.5rem;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 0.5rem;
        border: 1px solid #dee2e6;
        color: #6c757d;
    }
    .pricing-detail-header-edit {
        width: 2.5rem;
        height: 2.5rem;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 0.5rem;
    }
    .pricing-detail-header-title span { font-size: 0.95rem; }
    .pricing-detail-info-table table { font-size: 0.9rem; }
    .pricing-detail-info-table table tr { display: block; border-bottom: 1px solid var(--bs-border-color, #dee2e6); padding: 0.35rem 0; }
    .pricing-detail-info-table table td { display: block; border: none; padding: 0.15rem 0; }
    .pricing-detail-info-table table td:first-child { font-weight: 600; color: var(--bs-secondary); }
}

.img-thumbnail {
    padding: 0px !important;
    max-width:90% !important;
}

/* Summernote trong modal: dropdown và toolbar nổi trên modal, click được */
#globalModal .note-editor,
#globalModal .note-toolbar {
    position: relative;
    z-index: 1;
}
#globalModal .note-editor .note-dropdown-menu,
#globalModal .note-toolbar .note-dropdown .dropdown-menu,
#globalModal .note-toolbar .dropdown-menu {
    z-index: 1060 !important;
    position: absolute !important;
}
#globalModal .note-toolbar .note-btn-group .dropdown-toggle {
    pointer-events: auto;
}
/* Custom font size select trong Summernote */
.note-toolbar .note-fontsize-select {
    width: auto !important;
    min-width: 4rem;
    height: 28px !important;
    margin: 0 4px;
    padding: 0 6px;
    font-size: 12px;
    cursor: pointer;
}

/* Pagination footer: select "số mục mỗi trang" luôn click được, không bị table/overflow che */
.pagination-footer {
    position: relative;
    z-index: 10;
}
.pagination-footer .form-select.drivers-page-size-select,
.pagination-footer .form-select.riders-page-size-select,
.pagination-footer .form-select.vehicles-page-size-select,
.pagination-footer .form-select.bookings-page-size-select,
.pagination-footer .form-select.cancelreasons-page-size-select,
.pagination-footer .form-select.staticpages-page-size-select,
.pagination-footer .form-select.pagination-page-size,
.pagination-page-size-wrap .form-select {
    position: relative;
    z-index: 11;
    pointer-events: auto;
    cursor: pointer;
}

.page-item.active .page-link {
    background-color: #198754 !important;
}
.shadow-lg {
    box-shadow: none !important;
}
.card {
    border: 1px solid rgba(0,0,0,.125) !important;
}
.driver-online-card {
    border: 1px solid rgba(0,0,0,.125) !important;
}

.page-item.active .page-link {
    border-color: #198754 !important;
}

.width-modal {
    max-width: 670PX !important;
}
.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
    font-weight: 700 !important;
}

.btn-primary.disabled, .btn-primary:disabled {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

@media (max-width: 767.98px) {
    .card {
        border: 0px !important;
    }
}