/* ============================================================
   LORRY BODY BUILDER – Premium Dark Design System
   ============================================================ */

:root {
    /* Sizing */
    --sidebar-width: 270px;
    --sidebar-collapsed: 0px;
    --topbar-height: 64px;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 8px;

    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-blur: blur(16px);
}

[data-bs-theme="dark"] {
    --bg-primary: #12100e;
    --bg-secondary: #1c1816;
    --bg-card: rgba(36, 30, 28, 0.6);
    --bg-card-hover: rgba(46, 38, 35, 0.8);
    --bg-sidebar: #12100e;
    --bg-input: rgba(28, 24, 22, 0.9);

    --accent-primary: #d4a373;
    /* Golden Tan */
    --accent-secondary: #bc8a5f;
    --accent-tertiary: #a67c52;
    --accent-gradient: linear-gradient(135deg, #d4a373, #a67c52);
    --accent-glow: rgba(212, 163, 115, 0.3);

    --text-primary: #f5ebe0;
    --text-secondary: #d5bdaf;
    --text-muted: #8b7d77;
    --text-accent: #d4a373;

    --border-color: rgba(212, 163, 115, 0.1);
    --border-active: rgba(212, 163, 115, 0.3);

    --success: #82a36d;
    --warning: #d4a373;
    --danger: #e76f51;
    --info: #8ab17d;

    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 30px var(--accent-glow);
}

[data-bs-theme="light"] {
    --bg-primary: #fdfaf5;
    /* Cream */
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: #ffffff;
    --bg-sidebar: #ffffff;
    --bg-input: #ffffff;

    --accent-primary: #603808;
    /* Dark Chocolate */
    --accent-secondary: #8d5524;
    --accent-tertiary: #c68642;
    --accent-gradient: linear-gradient(135deg, #603808, #8d5524);
    --accent-glow: rgba(96, 56, 8, 0.1);

    --text-primary: #1a1512;
    --text-secondary: #4a3d34;
    --text-muted: #7d6b62;
    --text-accent: #603808;

    --border-color: rgba(96, 56, 8, 0.08);
    --border-active: rgba(96, 56, 8, 0.2);

    --success: #2d6a4f;
    --warning: #f4a261;
    --danger: #bc4749;
    --info: #2a9d8f;

    --shadow-sm: 0 4px 12px rgba(96, 56, 8, 0.08);
    --shadow-md: 0 8px 24px rgba(96, 56, 8, 0.12);
    --shadow-lg: 0 12px 48px rgba(96, 56, 8, 0.16);
    --shadow-glow: 0 0 20px var(--accent-glow);

    /* Selection Fix */
    --selection-bg: #8d5524;
    --selection-text: #ffffff;
}

/* ============================================================
   BASE
   ============================================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: var(--text-accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-primary);
}

::selection {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* ============================================================
   TOP NAVBAR
   ============================================================ */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-height);
    background: var(--bg-secondary);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1000;
}

.top-navbar-left,
.top-navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sidebar-toggle {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.sidebar-toggle:hover {
    color: var(--text-primary);
    background: var(--bg-card);
    border-color: var(--accent-primary);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.logo-icon-wrapper {
    width: 38px;
    height: 38px;
    background: var(--accent-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    box-shadow: var(--shadow-glow);
}

.company-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 4px;
    border-radius: 30px;
    transition: var(--transition);
}

.user-avatar-premium {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.user-avatar-premium img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-btn:hover .user-avatar-premium {
    border-color: var(--accent-primary);
}

.user-name {
    font-size: 14px;
    font-weight: 600;
}

.glass-dropdown {
    background: var(--bg-card) !important;
    backdrop-filter: var(--glass-blur) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: var(--shadow-lg) !important;
    padding: 10px !important;
    min-width: 200px !important;
}

.dropdown-item {
    color: var(--text-primary) !important;
    border-radius: var(--radius-xs) !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    display: flex;
    align-items: center;
    gap: 10px !important;
    transition: var(--transition) !important;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--accent-secondary) !important;
    transform: translateX(5px);
}

.dropdown-divider {
    border-color: var(--border-color) !important;
    margin: 8px 0 !important;
}

.uppercase {
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--topbar-height));
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    z-index: 999;
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.sidebar-menu {
    flex: 1;
    padding: 20px 14px;
    overflow-y: auto;
    overflow-x: hidden;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    margin-bottom: 6px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    background: none;
    width: 100%;
    text-align: left;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
}

.menu-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-color);
    text-decoration: none;
    transform: translateX(4px);
}

.menu-item.active {
    color: var(--bg-primary) !important;
    background: var(--accent-gradient);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.menu-item.active i:first-child {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px var(--accent-glow));
}

.menu-item i:first-child {
    width: 24px;
    text-align: center;
    font-size: 18px;
    transition: var(--transition);
}

.toggle-arrow {
    margin-left: auto;
    font-size: 10px;
    opacity: 0.5;
    transition: transform 0.3s ease;
}

.menu-toggle.active .toggle-arrow {
    transform: rotate(90deg);
    opacity: 1;
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
}

.submenu.open {
    max-height: 500px;
    padding: 4px 0;
}

.submenu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px 10px 48px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-xs);
    transition: var(--transition);
    position: relative;
}

.submenu-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
    text-decoration: none;
}

.submenu-item.active {
    color: var(--accent-secondary);
    background: rgba(99, 102, 241, 0.05);
}

.submenu-item::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 1.5px solid var(--text-muted);
    background: transparent;
    transition: var(--transition);
}

.submenu-item:hover::before,
.submenu-item.active::before {
    border-color: var(--accent-secondary);
    background: var(--accent-secondary);
    box-shadow: 0 0 8px var(--accent-glow);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.1);
}

.sidebar-version {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 998;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--topbar-height);
    min-height: calc(100vh - var(--topbar-height));
    transition: var(--transition);
    padding: 0;
}

.main-content.expanded {
    margin-left: 0;
}

.content-area {
    padding: 24px;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    background: var(--bg-primary);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.breadcrumb {
    font-size: 13px;
    font-weight: 500;
}

.breadcrumb-item a {
    color: var(--text-muted);
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--accent-secondary);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--text-secondary) !important;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--text-muted) !important;
    padding-right: 12px;
}

/* ============================================================
   CARDS (Glassmorphism)
   ============================================================ */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    border-color: var(--border-active);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--border-active);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: var(--accent-gradient);
    opacity: 0.1;
    border-radius: 0 0 0 100%;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.stat-icon.purple {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.stat-icon.green {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.stat-icon.orange {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.stat-icon.red {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.stat-icon.blue {
    background: rgba(14, 165, 233, 0.2);
    color: #38bdf8;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================================
   TABLES
   ============================================================ */
.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.table-container .table-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.table-container .table-title {
    font-size: 16px;
    font-weight: 600;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead th {
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.data-table tbody td {
    padding: 12px 16px;
    font-size: 13px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.data-table tbody tr {
    transition: var(--transition);
}

.data-table tbody tr:hover {
    background: var(--bg-card-hover);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 28px;
}

.form-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-control,
.form-select {
    background: var(--bg-input) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-xs) !important;
    color: var(--text-primary) !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
    transition: var(--transition) !important;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 3px var(--accent-glow) !important;
    outline: none !important;
}

.form-control::placeholder {
    color: var(--text-muted) !important;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary-custom {
    background: var(--accent-gradient) !important;
    border: none !important;
    color: #fff !important;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-danger-custom {
    background: var(--danger) !important;
    border: none !important;
    color: #fff !important;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-danger-custom:hover {
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
    transform: translateY(-1px);
}

.btn-primary-custom:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.btn-outline-custom {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-custom:hover {
    border-color: var(--accent-primary);
    color: var(--accent-secondary);
}

.btn-sm-custom {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: var(--radius-xs);
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.btn-icon:hover {
    color: var(--text-primary);
    border-color: var(--accent-primary);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-icon.sm {
    width: 30px;
    height: 30px;
    font-size: 12px;
}

.btn-icon.info {
    color: var(--info);
}

.btn-icon.danger {
    color: var(--danger);
}

.btn-icon.warning {
    color: var(--warning);
}

.btn-icon.success {
    color: var(--success);
}

.btn-icon.primary {
    color: var(--accent-primary);
}

.btn-icon.danger:hover {
    color: var(--danger);
    border-color: var(--danger);
}

/* ============================================================
   STATUS BADGES
   ============================================================ */
.badge-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-pending {
    background: rgba(253, 203, 110, 0.15);
    color: var(--warning);
}

.badge-inprogress {
    background: rgba(116, 185, 255, 0.15);
    color: var(--info);
}

.badge-completed {
    background: rgba(0, 206, 201, 0.15);
    color: var(--success);
}

.badge-delivered {
    background: rgba(108, 92, 231, 0.15);
    color: var(--accent-secondary);
}

.badge-paid {
    background: rgba(0, 206, 201, 0.15);
    color: var(--success);
}

.badge-partial {
    background: rgba(253, 203, 110, 0.15);
    color: var(--warning);
}

.badge-low-stock {
    background: rgba(255, 118, 117, 0.15);
    color: var(--danger);
}

/* ============================================================
   DASHBOARD GRID
   ============================================================ */
.stats-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 24px;
}

.charts-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 24px;
}

.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
}

.chart-card h6 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-bar .form-control,
.filter-bar .form-select {
    max-width: 200px;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    opacity: 0.3;
}

.empty-state p {
    font-size: 14px;
}

/* ============================================================
   ANIMATIONS & EFFECTS
   ============================================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-fade-up {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.5s ease forwards;
}

.hover-scale {
    transition: var(--transition);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-glow:hover {
    box-shadow: var(--shadow-glow);
}

.page-title-icon {
    width: 36px;
    height: 36px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* ============================================================
   RESPONSIVE REFINEMENTS
   ============================================================ */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0 !important;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .top-navbar-right .company-badge {
        display: none;
    }

    .user-name {
        display: none;
    }

    .content-area {
        padding: 16px;
    }
}

/* ============================================================
   FIXES & UTILITIES
   ============================================================ */
.text-accent {
    color: var(--accent-secondary) !important;
}

.uppercase {
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.fw-800 {
    font-weight: 800;
}

.fs-xs {
    font-size: 11px;
}

/* Lint Fixes */
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--accent-primary);
    /* Fallback */
}

.gap-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.mt-section {
    margin-top: 24px;
}

.mb-section {
    margin-bottom: 24px;
}

.fw-600 {
    font-weight: 600;
}

.fs-sm {
    font-size: 12px;
}

/* ============================================================
   RESPONSIVE TABLES (Card Design)
   ============================================================ */
@media (max-width: 991px) {

    .data-table,
    .table-responsive .table:not(.no-responsive) {
        display: block;
        width: 100%;
        background: transparent !important;
        border: none !important;
    }

    .data-table thead,
    .table-responsive .table:not(.no-responsive) thead {
        display: none;
    }

    .data-table tbody,
    .table-responsive .table:not(.no-responsive) tbody {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 4px;
    }

    .data-table tr,
    .table-responsive .table:not(.no-responsive) tr {
        display: block;
        background: var(--bg-card) !important;
        border: 1px solid var(--border-color) !important;
        border-radius: var(--radius) !important;
        padding: 16px !important;
        box-shadow: var(--shadow-sm);
        position: relative;
    }

    .data-table td,
    .table-responsive .table:not(.no-responsive) td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0 !important;
        border-bottom: 1px solid var(--border-color) !important;
        text-align: right !important;
        background: transparent !important;
        min-height: 45px;
    }

    .data-table td:last-child,
    .table-responsive .table:not(.no-responsive) td:last-child {
        border-bottom: none !important;
    }

    .data-table td::before,
    .table-responsive .table:not(.no-responsive) td::before {
        content: attr(data-label);
        font-weight: 700;
        text-transform: uppercase;
        font-size: 10px;
        color: var(--text-muted);
        letter-spacing: 0.5px;
        text-align: left;
    }

    /* Actions positioning */
    .data-table td.text-end,
    .table-responsive .table:not(.no-responsive) td.text-end {
        justify-content: flex-end;
        gap: 10px;
    }

    .data-table td.text-end::before,
    .table-responsive .table:not(.no-responsive) td.text-end::before {
        margin-right: auto;
    }
}

.currency::before {
    content: '₹';
}

/* ============================================================
   REPORT SPECIFIC STYLES
   ============================================================ */
.report-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 24px;
}

@media (max-width: 991px) {
    .report-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .report-grid {
        grid-template-columns: 1fr;
    }
}

.payment-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.payment-widget:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.pay-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.pay-info h6 {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.pay-balance {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ============================================================
   RESPONSIVE OVERRIDES
   ============================================================ */
@media (max-width: 768px) {
    .btn-responsive-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    .btn-responsive-container .btn {
        width: 100%;
        justify-content: center;
    }
    .search-container-responsive {
        width: 100% !important;
        margin-bottom: 15px;
    }
    .search-container-responsive input {
        width: 100% !important;
    }
}

/* Light Mode Visibility Helpers */
[data-bs-theme="light"] .text-muted {
    color: var(--text-muted) !important;
}
[data-bs-theme="light"] .badge-status {
    border: 1px solid rgba(0,0,0,0.1);
}
[data-bs-theme="light"] .glass-card {
    background: #fff;
    border-color: rgba(0,0,0,0.05);
}
[data-bs-theme="light"] .breadcrumb-item a {
    color: #4a3d34;
    font-weight: 600;
}
[data-bs-theme="light"] .breadcrumb-item.active {
    color: #1a1512 !important;
}
[data-bs-theme="light"] .breadcrumb-bar {
    background: #fff;
    border-color: rgba(0,0,0,0.1);
}
[data-bs-theme="light"] .form-control::placeholder {
    color: #9c8b82 !important;
}