/* ==========================================================
   SOK LUXURY SALON & POS DESIGN SYSTEM
   Certified & Verified by Master Sok (បញ្ជាក់កម្មវិធីដោយ លោកគ្រូសុខ)
   ========================================================== */

:root {
    /* Soothing Eye-Friendly Dark Palette (Midnight Slate - ត្រជាក់ភ្នែក) */
    --bg-dark: #0d131f;
    /* Calming deep midnight-slate body background */
    --bg-darker: #080d15;
    /* Deep tone for sidebar, footer, backdrops */
    --bg-surface: #121927;
    /* Surface elevation */
    --bg-card: rgba(21, 29, 44, 0.85);
    /* Rich soothing card background */
    --bg-card-solid: #151d2c;
    --bg-card-hover: rgba(28, 38, 58, 0.95);
    --border-color: rgba(212, 175, 55, 0.22);
    --border-subtle: rgba(148, 163, 184, 0.12);
    --border-card: rgba(148, 163, 184, 0.14);

    /* Gold & Luxury Palettes (Soft Champagne, Non-Glare) */
    --gold: #d4af37;
    --gold-rgb: 212, 175, 55;
    --primary-rgb: 212, 175, 55;
    --gold-light: #f5e4a8;
    --gold-dark: #a8820c;
    --gold-gradient: linear-gradient(135deg, #f5e4a8 0%, #d4af37 50%, #a8820c 100%);
    --gold-glow: 0 0 20px rgba(212, 175, 55, 0.28);

    /* Accents (Muted & Eye-Friendly) */
    --primary: #d4af37;
    --primary-hover: #e5be48;
    --accent-purple: #8a2be2;
    --accent-pink: #ff2a85;
    --success: #22c55e;
    --success-glow: 0 0 15px rgba(34, 197, 94, 0.3);
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #38bdf8;
    --badge-bg: rgba(212, 175, 55, 0.15);
    --badge-color: var(--gold-light);

    /* Text Colors (High Legibility & Anti-Glare Contrast) */
    --text-primary: #f1f5f9;
    /* Crisp soft off-white, anti-glare */
    --text-secondary: #94a3b8;
    /* Clear slate-400 for high readability */
    --text-muted: #64748b;
    /* Slate-500 */
    --text-gold: #e2b740;

    /* Shadows & Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.45);
    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.3);

    /* Transitions */
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Kantumruy Pro', 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.68;
    letter-spacing: 0.012em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* Typography Helpers */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Kantumruy Pro', 'Outfit', sans-serif;
    font-weight: 600;
    color: #f8fafc;
    line-height: 1.45;
    letter-spacing: -0.01em;
}

.text-gold {
    color: var(--gold) !important;
}

.text-gradient-gold {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-success {
    color: var(--success) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Background Glows */
.auth-bg-glow,
.bg-ambient-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, rgba(56, 189, 248, 0.05) 50%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    filter: blur(60px);
}

.glow-2 {
    top: auto;
    bottom: -150px;
    left: -150px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, rgba(34, 197, 94, 0.04) 50%, transparent 70%);
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.glass-card:hover {
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.btn-gold {
    background: var(--gold-gradient);
    color: #0b0f17;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: var(--gold-glow);
    color: #000;
}

.btn-outline-gold {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
}

.btn-outline-gold:hover {
    background: var(--gold-gradient);
    color: #000;
    box-shadow: var(--gold-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

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

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

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
}

.btn-block {
    width: 100%;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-gold {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-light);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.badge-success {
    background: rgba(46, 160, 67, 0.15);
    color: #3fb950;
    border: 1px solid rgba(46, 160, 67, 0.3);
}

.badge-danger {
    background: rgba(248, 81, 73, 0.15);
    color: #f85149;
    border: 1px solid rgba(248, 81, 73, 0.3);
}

.badge-info {
    background: rgba(88, 166, 255, 0.15);
    color: #58a6ff;
    border: 1px solid rgba(88, 166, 255, 0.3);
}

.badge-purple {
    background: rgba(138, 43, 226, 0.2);
    color: #c788ff;
    border: 1px solid rgba(138, 43, 226, 0.4);
}

/* Verified Master Sok Seal */
.verified-seal-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(138, 43, 226, 0.1));
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Form Controls */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.55;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
    background: #0f172a;
}

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.alert-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

/* Auth Page Layout */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    background: radial-gradient(circle at top right, #191e2b 0%, #0d131f 100%);
}

.auth-container {
    width: 100%;
    max-width: 480px;
    background: rgba(21, 29, 44, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 8px;
}

.auth-title {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.auth-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.input-icon-wrapper {
    position: relative;
}

.btn-toggle-pwd {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

.form-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.remember-label {
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.back-home-link {
    color: var(--gold);
    text-decoration: none;
}

.back-home-link:hover {
    text-decoration: underline;
}

/* Demo Accounts Box */
.demo-accounts-box {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.demo-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.btn-demo-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-demo-badge:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold);
    transform: translateY(-1px);
}

.badge-shadow {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(138, 43, 226, 0.15));
    border-color: var(--gold);
    font-weight: 600;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dev-tag {
    color: var(--gold-light);
    font-weight: 600;
    margin-top: 4px;
}

/* APP MAIN LAYOUT (Header, Sidebar, Main Content) */
.app-wrapper {
    display: flex;
    min-height: 100vh;
    background: var(--bg-dark);
}

.app-sidebar {
    width: 270px;
    background: var(--bg-darker);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    transition: var(--transition);
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.brand-logo-icon {
    width: 42px;
    height: 42px;
    background: var(--gold-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #0b0f17;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.brand-text h3 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 2px;
}

.brand-text span {
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 600;
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
    list-style: none;
}

.menu-category-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    padding: 12px 12px 6px;
    font-weight: 700;
}

.menu-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 4px;
}

.menu-item a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.menu-item.active a {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.04));
    color: var(--gold-light);
    border-left: 3px solid var(--gold);
    font-weight: 600;
}

.menu-item a i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.menu-item.active a i {
    color: var(--gold);
}

/* ==========================================================
   SIDEBAR GROUP MENUS (ACCORDION & EXPANDABLE SECTIONS)
   ========================================================== */
.menu-group {
    margin-bottom: 7px;
    border-radius: 12px;
    transition: all 0.25s ease;
}

.menu-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 12px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.22s ease;
    user-select: none;
}

.menu-group-header:hover {
    background: rgba(var(--gold-rgb, 212, 175, 55), 0.12);
    border-color: rgba(var(--gold-rgb, 212, 175, 55), 0.35);
}

.menu-group.open .menu-group-header {
    background: rgba(var(--gold-rgb, 212, 175, 55), 0.15);
    border-color: rgba(var(--gold-rgb, 212, 175, 55), 0.4);
}

.group-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.group-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--gold-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.group-icon.icon-revenue {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
}

.group-icon.icon-expense {
    background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
}

.group-icon.icon-financial {
    background: var(--gold-gradient);
}

.group-icon.icon-adjust {
    background: linear-gradient(135deg, #818cf8 0%, #4f46e5 100%);
}

.group-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

.group-header-right {
    display: flex;
    align-items: center;
    gap: 7px;
}

.group-count-badge {
    font-size: 0.68rem;
    padding: 2px 7px;
    border-radius: 10px;
    background: rgba(var(--gold-rgb, 212, 175, 55), 0.16);
    color: var(--gold);
    border: 1px solid rgba(var(--gold-rgb, 212, 175, 55), 0.28);
    font-weight: 600;
}

.group-chevron {
    font-size: 0.72rem;
    color: var(--text-muted);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-group.open .group-chevron {
    transform: rotate(180deg);
    color: var(--gold);
}

.menu-group-sub {
    list-style: none;
    padding: 5px 0 5px 12px;
    margin: 3px 0 4px 14px;
    border-left: 2px solid rgba(var(--gold-rgb, 212, 175, 55), 0.22);
    display: none;
}

.menu-group.open .menu-group-sub {
    display: block;
    animation: slideDownSubmenu 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDownSubmenu {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-group-sub .menu-item a {
    padding: 8px 12px;
    font-size: 0.86rem;
    border-radius: 8px;
    gap: 9px;
    margin-bottom: 2px;
}

.menu-group-sub .menu-item a i {
    font-size: 0.92rem;
    width: 18px;
}

/* Light Mode Overrides for Group Menus */
.theme-light-mode .menu-group-header {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.theme-light-mode .menu-group-header:hover {
    background: rgba(var(--gold-rgb, 184, 134, 11), 0.08);
    border-color: var(--gold);
}

.theme-light-mode .menu-group.open .menu-group-header {
    background: rgba(var(--gold-rgb, 184, 134, 11), 0.1);
    border-color: var(--gold);
}

.theme-light-mode .group-title {
    color: var(--text-primary, #1c1917);
}

.theme-light-mode .group-count-badge {
    background: rgba(var(--gold-rgb, 184, 134, 11), 0.12);
    color: var(--gold);
    border: 1px solid rgba(var(--gold-rgb, 184, 134, 11), 0.28);
}

.theme-light-mode .menu-group-sub {
    border-left-color: rgba(var(--gold-rgb, 184, 134, 11), 0.25);
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-subtle);
    background: #060a10;
}

.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    object-fit: cover;
}

.user-info {
    flex: 1;
    overflow: hidden;
}

.user-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.75rem;
    color: var(--gold);
}

/* App Main Content Area */
.app-main {
    flex: 1;
    margin-left: 270px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0 !important;
    max-width: calc(100vw - 270px) !important;
    width: calc(100% - 270px) !important;
    box-sizing: border-box !important;
}

@media (max-width: 991px) {
    .app-main {
        margin-left: 0 !important;
        max-width: 100vw !important;
        width: 100% !important;
    }
}

.app-topbar {
    height: 70px;
    background: rgba(13, 19, 31, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.page-title {
    font-size: 1.25rem;
    color: #fff;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.exchange-rate-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.exchange-rate-pill strong {
    color: var(--gold);
}

.content-body {
    flex: 1;
    padding: 24px 28px;
    padding-bottom: 90px;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: clip;
}

/* Dashboard Metric Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-info {
    text-align: right;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    font-family: var(--font-number);
    color: var(--text-primary);
}

.stat-sub {
    font-size: 0.78rem;
    margin-top: 4px;
}

/* Data Tables, Forms & Horizontal Scroll Containers (Scroll Below All Forms) */
.table-responsive,
.filter-card,
.branch-switcher-bar,
.report-sheet,
.form-scrollable {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-sm);
    position: relative;
    padding-bottom: 8px;
    margin-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--gold, #d4af37) rgba(8, 13, 21, 0.7);
}

.tab-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
}

.table-responsive::-webkit-scrollbar,
.filter-card::-webkit-scrollbar,
.branch-switcher-bar::-webkit-scrollbar,
.report-sheet::-webkit-scrollbar,
form::-webkit-scrollbar {
    height: 9px;
    width: 9px;
}

.table-responsive::-webkit-scrollbar-track,
.filter-card::-webkit-scrollbar-track,
.branch-switcher-bar::-webkit-scrollbar-track,
.report-sheet::-webkit-scrollbar-track,
form::-webkit-scrollbar-track {
    background: rgba(8, 13, 21, 0.7);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.table-responsive::-webkit-scrollbar-thumb,
.filter-card::-webkit-scrollbar-thumb,
.branch-switcher-bar::-webkit-scrollbar-thumb,
.report-sheet::-webkit-scrollbar-thumb,
form::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.4), rgba(212, 175, 55, 0.85));
    border-radius: 6px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.table-responsive::-webkit-scrollbar-thumb:hover,
.filter-card::-webkit-scrollbar-thumb:hover,
.report-sheet::-webkit-scrollbar-thumb:hover,
form::-webkit-scrollbar-thumb:hover {
    background: var(--gold, #d4af37);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Custom Table Design */
.custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.custom-table th {
    background: #0f1624;
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 18px;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
    text-align: left;
}

.custom-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.9rem;
    color: var(--text-primary);
    vertical-align: middle;
}

.custom-table tr:hover td {
    background: rgba(35, 48, 72, 0.75);
}

/* Sticky Action Column (Auto Fix on Screen View - Always Accessible & Visible) */
.custom-table th.sticky-col,
.custom-table td.sticky-col,
.sticky-col,
.sticky-actions-col {
    position: sticky !important;
    right: 0 !important;
    z-index: 10 !important;
    background: #161b22 !important;
    box-shadow: -8px 0 16px rgba(0, 0, 0, 0.6) !important;
    border-left: 2px solid rgba(212, 175, 55, 0.5) !important;
    white-space: nowrap !important;
    text-align: center !important;
}

.custom-table th.sticky-col,
.custom-table thead .sticky-col {
    background: #1c222b !important;
    z-index: 12 !important;
}

.custom-table tr:hover td.sticky-col {
    background: #212833 !important;
}

/* Auto-Fix Screen View Form Action Buttons Bar */
.form-actions-sticky,
.screen-view-fix {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: rgba(18, 25, 39, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1.5px solid var(--border-color);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.65);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* Branch Switcher Pill Buttons on Screen */
.branch-switcher-container {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(13, 19, 31, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 24px;
    padding: 4px 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.branch-pill-btn {
    padding: 5px 12px;
    border-radius: 18px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    border: 1px solid transparent;
}

.branch-pill-btn:hover {
    color: var(--gold-light);
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.4);
}

.branch-pill-btn.active {
    background: linear-gradient(135deg, #f5e4a8 0%, #d4af37 60%, #aa8010 100%);
    color: #000 !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}


/* Modal Popup */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-backdrop.show {
    display: flex;
}

.modal-content {
    background: #151d2c;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-close-modal {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
}

.btn-close-modal:hover {
    color: #fff;
}

/* Animations */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-6px);
    }

    40%,
    80% {
        transform: translateX(6px);
    }
}

.animate-shake {
    animation: shake 0.4s ease-in-out;
}

/* ==========================================================
   MODERN LUXURY & EYE-CARE THEME SYSTEM (8 CURATED THEMES)
   Certified & Verified by Master Sok (បញ្ជាក់កម្មវិធីដោយ លោកគ្រូសុខ)
   ========================================================== */

/* Light Mode Base Variables & Foundation */
html.theme-light-mode,
body.theme-light-mode,
[data-theme-mode="light"],
.theme-light-mode {
    --bg-dark: #fbf9f4;
    --bg-body: #fbf9f4;
    --bg-darker: #ffffff;
    --bg-sidebar: #ffffff;
    --bg-card: #ffffff;
    --bg-card-solid: #ffffff;
    --bg-card-hover: #fcfbfa;
    --bg-surface: #f5f0e4;
    --text-primary: #1c1917;
    --text-secondary: #57534e;
    --text-muted: #78716c;
    --border-subtle: rgba(202, 162, 77, 0.22);
    --border-card: rgba(202, 162, 77, 0.28);
    --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 20px 40px -4px rgba(0, 0, 0, 0.08);
}

body.theme-light-mode,
html.theme-light-mode body,
[data-theme-mode="light"] body,
.theme-light-mode .app-wrapper {
    background: var(--bg-dark, #fbf9f4) !important;
    color: var(--text-primary, #1c1917) !important;
}

/* Headings in Light Mode */
.theme-light-mode h1,
.theme-light-mode h2,
.theme-light-mode h3,
.theme-light-mode h4,
.theme-light-mode h5,
.theme-light-mode h6 {
    color: var(--text-primary, #1c1917) !important;
}

/* Fix Inline White Text Glitches in Light Mode */
.theme-light-mode [style*="color: #fff"],
.theme-light-mode [style*="color:#fff"],
.theme-light-mode [style*="color: #ffffff"],
.theme-light-mode [style*="color:#ffffff"],
.theme-light-mode [style*="color: white"],
.theme-light-mode [style*="color:white"] {
    color: var(--text-primary, #1c1917) !important;
}

/* Preserve White Text on Dark/Accent Badges & Buttons */
.theme-light-mode .btn [style*="color: #fff"],
.theme-light-mode .btn [style*="color:#fff"],
.theme-light-mode .btn-gold,
.theme-light-mode .btn-gold *,
.theme-light-mode .btn-danger,
.theme-light-mode .btn-danger *,
.theme-light-mode .btn-success,
.theme-light-mode .btn-success *,
.theme-light-mode .branch-pill-btn.active,
.theme-light-mode .branch-pill-btn.active * {
    color: #ffffff !important;
}

/* App Topbar in Light Mode */
.theme-light-mode .app-topbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid var(--border-card, rgba(0, 0, 0, 0.08)) !important;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.03) !important;
}

.theme-light-mode .app-topbar .page-title {
    color: var(--text-primary, #1c1917) !important;
    font-weight: 700;
}

.theme-light-mode .exchange-rate-pill {
    background: #ffffff !important;
    border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.12)) !important;
    color: var(--text-secondary, #57534e) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

/* App Sidebar in Light Mode */
.theme-light-mode .app-sidebar {
    background: #ffffff !important;
    border-right: 1px solid var(--border-card, rgba(0, 0, 0, 0.08)) !important;
    box-shadow: 3px 0 18px rgba(0, 0, 0, 0.03) !important;
}

.theme-light-mode .sidebar-header {
    background: #ffffff !important;
    border-bottom: 1px solid var(--border-card, rgba(0, 0, 0, 0.08)) !important;
}

.theme-light-mode .brand-text h3 {
    color: var(--text-primary, #1c1917) !important;
    font-weight: 700;
}

.theme-light-mode .menu-category-title {
    color: var(--text-muted, #78716c) !important;
    font-weight: 700;
}

.theme-light-mode .menu-item a {
    color: var(--text-secondary, #57534e) !important;
}

.theme-light-mode .menu-item a:hover {
    background: rgba(var(--gold-rgb, 184, 134, 11), 0.08) !important;
    color: var(--gold) !important;
}

.theme-light-mode .menu-item.active a {
    background: linear-gradient(135deg, rgba(var(--gold-rgb, 184, 134, 11), 0.15), rgba(var(--gold-rgb, 184, 134, 11), 0.03)) !important;
    color: var(--gold) !important;
    border-left: 3.5px solid var(--gold) !important;
    font-weight: 700 !important;
}

.theme-light-mode .sidebar-footer {
    background: #ffffff !important;
    border-top: 1px solid var(--border-card, rgba(0, 0, 0, 0.08)) !important;
}

.theme-light-mode .user-name {
    color: var(--text-primary, #1c1917) !important;
}

/* Cards & Surfaces in Light Mode */
.theme-light-mode .glass-card,
.theme-light-mode .stat-card {
    background: #ffffff !important;
    border: 1px solid var(--border-card, rgba(0, 0, 0, 0.08)) !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.02) !important;
    color: var(--text-primary, #1c1917) !important;
}

.theme-light-mode .stat-card:hover,
.theme-light-mode .glass-card:hover {
    box-shadow: 0 12px 30px -4px rgba(var(--gold-rgb, 184, 134, 11), 0.14), 0 4px 10px -2px rgba(0, 0, 0, 0.03) !important;
    border-color: var(--gold) !important;
    transform: translateY(-2px);
}

.theme-light-mode .stat-value {
    color: var(--text-primary, #1c1917) !important;
}

.theme-light-mode .stat-details h4 {
    color: var(--text-secondary, #57534e) !important;
}

/* Dashboard Greeting Welcome Banner */
.theme-light-mode .dashboard-container>.glass-card:first-child,
.theme-light-mode [style*="rgba(22, 27, 34"] {
    background: linear-gradient(135deg, #ffffff 0%, #fefdf9 60%, rgba(var(--gold-rgb, 184, 134, 11), 0.08) 100%) !important;
    border: 1px solid rgba(var(--gold-rgb, 184, 134, 11), 0.35) !important;
    box-shadow: 0 4px 20px rgba(var(--gold-rgb, 184, 134, 11), 0.08) !important;
}

.theme-light-mode .dashboard-container>.glass-card:first-child h2,
.theme-light-mode [style*="rgba(22, 27, 34"] h2 {
    color: var(--text-primary, #1c1917) !important;
}

/* Tables & Sticky Actions in Light Mode */
.theme-light-mode .custom-table th {
    background: var(--bg-surface, #f8fafc) !important;
    color: var(--text-primary, #1c1917) !important;
    border-bottom: 2px solid rgba(0, 0, 0, 0.08) !important;
    font-weight: 700;
}

.theme-light-mode .custom-table td {
    background: #ffffff !important;
    color: var(--text-primary, #1c1917) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.theme-light-mode .custom-table tr:hover td {
    background: rgba(var(--gold-rgb, 184, 134, 11), 0.04) !important;
}

.theme-light-mode .custom-table th.sticky-col,
.theme-light-mode .custom-table td.sticky-col,
.theme-light-mode .sticky-actions-col {
    background: #ffffff !important;
    box-shadow: -4px 0 14px rgba(0, 0, 0, 0.06) !important;
}

.theme-light-mode .custom-table th.sticky-col {
    background: var(--bg-surface, #f8fafc) !important;
}

.theme-light-mode .custom-table tr:hover td.sticky-col {
    background: rgba(var(--gold-rgb, 184, 134, 11), 0.04) !important;
}

.theme-light-mode .table-responsive,
.theme-light-mode .filter-card,
.theme-light-mode .branch-switcher-bar,
.theme-light-mode .report-sheet,
.theme-light-mode .tab-panel {
    scrollbar-color: #d97706 #e2e8f0;
}

.theme-light-mode .table-responsive::-webkit-scrollbar-track,
.theme-light-mode .filter-card::-webkit-scrollbar-track,
.theme-light-mode .branch-switcher-bar::-webkit-scrollbar-track,
.theme-light-mode .report-sheet::-webkit-scrollbar-track,
.theme-light-mode .tab-panel::-webkit-scrollbar-track,
.theme-light-mode form::-webkit-scrollbar-track {
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
}

.theme-light-mode .table-responsive::-webkit-scrollbar-thumb,
.theme-light-mode .filter-card::-webkit-scrollbar-thumb,
.theme-light-mode .branch-switcher-bar::-webkit-scrollbar-thumb,
.theme-light-mode .report-sheet::-webkit-scrollbar-thumb,
.theme-light-mode .tab-panel::-webkit-scrollbar-thumb,
.theme-light-mode form::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #d97706, #b45309);
    border: 1px solid #92400e;
}

.theme-light-mode .table-responsive::-webkit-scrollbar-track {
    background: #f1f5f9 !important;
}

.theme-light-mode .table-responsive::-webkit-scrollbar-thumb {
    background: rgba(var(--gold-rgb, 184, 134, 11), 0.35) !important;
    border-radius: 4px;
}

/* Form Action Bars & Screen-of-View Fix */
.theme-light-mode .form-actions-sticky,
.theme-light-mode .screen-view-fix {
    background: rgba(255, 255, 255, 0.96) !important;
    border-top: 1.5px solid var(--border-card, #e2e8f0) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06) !important;
}

/* Branch Switcher Pill Buttons in Light Mode */
.theme-light-mode .branch-switcher-container {
    background: #ffffff !important;
    border: 1px solid var(--border-card, #cbd5e1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.theme-light-mode .branch-pill-btn {
    color: var(--text-secondary, #57534e) !important;
}

.theme-light-mode .branch-pill-btn:hover {
    background: rgba(var(--gold-rgb, 184, 134, 11), 0.09) !important;
    color: var(--gold) !important;
}

.theme-light-mode .branch-pill-btn.active {
    background: var(--gold-gradient) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(var(--gold-rgb, 184, 134, 11), 0.3) !important;
}

/* Form Controls & Inputs in Light Mode */
.theme-light-mode .form-control,
.theme-light-mode input[type="text"],
.theme-light-mode input[type="number"],
.theme-light-mode input[type="password"],
.theme-light-mode input[type="date"],
.theme-light-mode select,
.theme-light-mode textarea {
    background: #ffffff !important;
    color: var(--text-primary, #1c1917) !important;
    border: 1.5px solid var(--border-card, #cbd5e1) !important;
    border-radius: 10px !important;
    transition: var(--transition);
}

.theme-light-mode .form-control:focus,
.theme-light-mode input:focus,
.theme-light-mode select:focus,
.theme-light-mode textarea:focus {
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 3.5px rgba(var(--gold-rgb, 184, 134, 11), 0.18) !important;
    outline: none;
}

/* Modals in Light Mode */
.theme-light-mode .modal-backdrop {
    background: rgba(15, 23, 42, 0.55) !important;
    backdrop-filter: blur(4px);
}

.theme-light-mode .modal-content {
    background: #ffffff !important;
    border: 1px solid var(--border-card, #cbd5e1) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
    color: var(--text-primary, #1c1917) !important;
    border-radius: 18px !important;
}

.theme-light-mode .modal-header {
    border-bottom: 1px solid #f1f5f9 !important;
}

.theme-light-mode .modal-header h3 {
    color: var(--text-primary, #1c1917) !important;
}

.theme-light-mode .btn-close-modal {
    color: var(--text-muted, #64748b) !important;
}

.theme-light-mode .modal-footer {
    border-top: 1px solid #f1f5f9 !important;
}

/* Buttons in Light Mode */
.theme-light-mode .btn-secondary {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
}

.theme-light-mode .btn-secondary:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.theme-light-mode .btn-outline-gold {
    border-color: var(--gold) !important;
    color: var(--gold) !important;
    background: rgba(var(--gold-rgb, 184, 134, 11), 0.06) !important;
}

.theme-light-mode .btn-outline-gold:hover {
    background: var(--gold) !important;
    color: #ffffff !important;
}

.theme-light-mode .btn-gold {
    background: var(--gold-gradient) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(var(--gold-rgb, 184, 134, 11), 0.3) !important;
}

.theme-light-mode .btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--gold-rgb, 184, 134, 11), 0.42) !important;
}

/* Badges & Seals in Light Mode */
.theme-light-mode .badge-gold {
    background: var(--badge-bg, rgba(var(--gold-rgb, 184, 134, 11), 0.15)) !important;
    color: var(--badge-color, var(--gold)) !important;
    border: 1px solid rgba(var(--gold-rgb, 184, 134, 11), 0.32) !important;
}

.theme-light-mode .verified-seal-pill {
    background: linear-gradient(135deg, rgba(var(--gold-rgb, 184, 134, 11), 0.15), rgba(var(--gold-rgb, 184, 134, 11), 0.04)) !important;
    border-color: rgba(var(--gold-rgb, 184, 134, 11), 0.45) !important;
    color: var(--gold) !important;
}

/* Theme Switcher Dropdown (Universal & Light Mode Adaptive) */
.theme-dropdown-menu {
    background: rgba(15, 22, 36, 0.98);
    border: 1.5px solid rgba(var(--gold-rgb, 212, 175, 55), 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    transition: all 0.25s ease;
}

.theme-dropdown-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.theme-dropdown-title {
    color: #f8fafc;
}

.badge-theme-count {
    background: rgba(var(--gold-rgb, 212, 175, 55), 0.15);
    color: var(--gold);
    border: 1px solid var(--gold);
}

.theme-opt-title {
    color: #f8fafc;
}

.theme-opt-sub {
    color: #94a3b8;
}

.theme-option-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.theme-option-item:hover {
    background: rgba(255, 255, 255, 0.07);
}

.theme-option-item.active-theme {
    background: rgba(var(--gold-rgb, 212, 175, 55), 0.18);
    border-color: var(--gold);
}

/* Theme Dropdown in Light Mode */
.theme-light-mode .theme-dropdown-menu {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1.5px solid rgba(var(--gold-rgb, 184, 134, 11), 0.35) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12) !important;
}

.theme-light-mode .theme-dropdown-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.theme-light-mode .theme-dropdown-title {
    color: var(--text-primary, #1c1917) !important;
}

.theme-light-mode .badge-theme-count {
    background: rgba(var(--gold-rgb, 184, 134, 11), 0.12) !important;
    color: var(--gold) !important;
    border: 1px solid rgba(var(--gold-rgb, 184, 134, 11), 0.3) !important;
}

.theme-light-mode .theme-opt-title {
    color: var(--text-primary, #1c1917) !important;
}

.theme-light-mode .theme-opt-sub {
    color: var(--text-secondary, #57534e) !important;
}

.theme-light-mode .theme-option-item:hover {
    background: rgba(var(--gold-rgb, 184, 134, 11), 0.08) !important;
}

.theme-light-mode .theme-option-item.active-theme {
    background: rgba(var(--gold-rgb, 184, 134, 11), 0.14) !important;
    border-color: var(--gold) !important;
}

/* ==========================================================
   SPECIFIC EYE-CARE THEME ATTRIBUTE STYLING
   ========================================================== */

/* 1. Champagne Silk & Warm Gold (Eye-Friendly Luxury Default) */
[data-active-theme="champagne_light_gold"] body,
[data-active-theme="champagne_light_gold"] .app-wrapper {
    background: #fbf9f4 !important;
    color: #1c1917 !important;
}

[data-active-theme="champagne_light_gold"] .glass-card,
[data-active-theme="champagne_light_gold"] .stat-card {
    background: #ffffff !important;
    border: 1px solid rgba(202, 162, 77, 0.28) !important;
}

[data-active-theme="champagne_light_gold"] .custom-table th {
    background: #fbf7ee !important;
    color: #1c1917 !important;
}

/* 2. Serene Emerald & Sage Spa (Scientifically Calming for Eyes) */
[data-active-theme="serene_emerald_spa"] body,
[data-active-theme="serene_emerald_spa"] .app-wrapper {
    background: #f3f8f5 !important;
    color: #0f291e !important;
}

[data-active-theme="serene_emerald_spa"] .glass-card,
[data-active-theme="serene_emerald_spa"] .stat-card {
    background: #ffffff !important;
    border: 1px solid rgba(16, 185, 129, 0.24) !important;
}

[data-active-theme="serene_emerald_spa"] .custom-table th {
    background: #eaf4ee !important;
    color: #0f291e !important;
}

/* 3. Soft Rose Blush & Fresh (Warm Salon Glamour) */
[data-active-theme="soft_rose_blush"] body,
[data-active-theme="soft_rose_blush"] .app-wrapper {
    background: #faf6f7 !important;
    color: #1e1b24 !important;
}

[data-active-theme="soft_rose_blush"] .glass-card,
[data-active-theme="soft_rose_blush"] .stat-card {
    background: #ffffff !important;
    border: 1px solid rgba(244, 63, 94, 0.22) !important;
}

[data-active-theme="soft_rose_blush"] .custom-table th {
    background: #fbf1f3 !important;
    color: #1e1b24 !important;
}

/* 4. Pearl Pure Clean & Platinum (Minimalist Pure Contrast) */
[data-active-theme="pearl_pure_clean"] body,
[data-active-theme="pearl_pure_clean"] .app-wrapper {
    background: #f8fafc !important;
    color: #0f172a !important;
}

[data-active-theme="pearl_pure_clean"] .glass-card,
[data-active-theme="pearl_pure_clean"] .stat-card {
    background: #ffffff !important;
    border: 1px solid rgba(203, 213, 225, 0.85) !important;
}

[data-active-theme="pearl_pure_clean"] .custom-table th {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

/* 5. Lavender Mist & Lilac Sanctuary (Serene Relaxing Purple) */
[data-active-theme="lavender_serenity"] body,
[data-active-theme="lavender_serenity"] .app-wrapper {
    background: #f8f6fc !important;
    color: #1f162e !important;
}

[data-active-theme="lavender_serenity"] .glass-card,
[data-active-theme="lavender_serenity"] .stat-card {
    background: #ffffff !important;
    border: 1px solid rgba(139, 92, 246, 0.22) !important;
}

[data-active-theme="lavender_serenity"] .custom-table th {
    background: #f3effc !important;
    color: #1f162e !important;
}

/* 6. Royal Velvet Gold & Obsidian (Eye-Care Night Dark) */
[data-active-theme="royal_velvet_gold"] body,
[data-active-theme="royal_velvet_gold"] .app-wrapper {
    background: #0b0f19 !important;
    color: #f8fafc !important;
}

[data-active-theme="royal_velvet_gold"] .glass-card,
[data-active-theme="royal_velvet_gold"] .stat-card {
    background: rgba(17, 24, 39, 0.92) !important;
    border: 1px solid rgba(212, 175, 55, 0.26) !important;
}

/* 7. Deep Sapphire & Ice Blue */
[data-active-theme="deep_sapphire_ocean"] body,
[data-active-theme="deep_sapphire_ocean"] .app-wrapper {
    background: #071322 !important;
    color: #f0f9ff !important;
}

[data-active-theme="deep_sapphire_ocean"] .glass-card,
[data-active-theme="deep_sapphire_ocean"] .stat-card {
    background: rgba(10, 26, 47, 0.92) !important;
    border: 1px solid rgba(56, 189, 248, 0.24) !important;
}

/* 8. Amethyst & Obsidian Crystal */
[data-active-theme="amethyst_obsidian"] body,
[data-active-theme="amethyst_obsidian"] .app-wrapper {
    background: #110c1c !important;
    color: #faf5ff !important;
}

[data-active-theme="amethyst_obsidian"] .glass-card,
[data-active-theme="amethyst_obsidian"] .stat-card {
    background: rgba(26, 18, 43, 0.92) !important;
    border: 1px solid rgba(192, 132, 252, 0.24) !important;
}

/* ==========================================================
   BRANCH MANAGEMENT & TABLE RESPONSIVE UTILITIES
   ========================================================== */

/* Table Horizontal Scroll (Mobile / Overflow) */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

/* Sticky Action Column for wide tables */
.sticky-col {
    position: sticky;
    right: 0;
    background: var(--bg-card-solid, #151d2c);
    z-index: 2;
    border-left: 1px solid var(--border-subtle);
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.25);
}

.custom-table thead .sticky-col {
    background: var(--bg-darker, #080d15);
}

/* Branch Switcher Container (Topbar) */
.branch-switcher-container {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 420px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 0;
}

.branch-switcher-container::-webkit-scrollbar {
    display: none;
}

/* Branch Pill Buttons */
.branch-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 13px;
    border-radius: var(--radius-full, 9999px);
    font-size: 0.78rem;
    font-weight: 600;
    font-family: 'Kantumruy Pro', 'Plus Jakarta Sans', sans-serif;
    color: var(--text-secondary, #94a3b8);
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.18);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.branch-pill-btn:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.4);
    color: var(--gold, #d4af37);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.15);
}

.branch-pill-btn.active {
    background: rgba(212, 175, 55, 0.18);
    border-color: var(--gold, #d4af37);
    color: var(--gold, #d4af37);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
    font-weight: 700;
}

/* Light Mode overrides for branch pills */
.theme-light-mode .branch-pill-btn {
    color: #4b5563;
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.12);
}

.theme-light-mode .branch-pill-btn:hover,
.theme-light-mode .branch-pill-btn.active {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold, #d4af37);
    color: var(--gold-dark, #a8820c);
}

/* ==========================================================================
   EXECUTIVE FINANCIAL REPORTS — CLEAN NO-BACKGROUND & HIGH CONTRAST TYPOGRAPHY
   (រាល់របាយការណ៍ហិរញ្ញវត្ថុ គ្មាន Background & អក្សរ ស្អាត ច្បាស់)
   ========================================================================== */

/* Remove background completely from financial report containers */
#pl-report,
#bs-report,
#cf-report,
#tb-report,
#ledger-report,
.report-sheet,
.report-no-bg,
.financial-report-card {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Remove background from all tables, table heads, rows, and cells inside financial reports */
#pl-report .custom-table,
#bs-report .custom-table,
#cf-report .custom-table,
#tb-report .custom-table,
#ledger-report .custom-table,
.report-sheet .custom-table,
.report-no-bg .custom-table,
.financial-report-table {
    background: transparent !important;
    background-color: transparent !important;
    border-collapse: collapse !important;
    width: 100% !important;
}

#pl-report .custom-table th,
#bs-report .custom-table th,
#cf-report .custom-table th,
#tb-report .custom-table th,
#ledger-report .custom-table th,
.report-sheet .custom-table th,
.report-no-bg .custom-table th,
.financial-report-table th {
    background: transparent !important;
    background-color: transparent !important;
    border-bottom: 2px solid var(--gold, #d4af37) !important;
    color: var(--gold-light, #fbbf24) !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    padding: 12px 14px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

#pl-report .custom-table td,
#bs-report .custom-table td,
#cf-report .custom-table td,
#tb-report .custom-table td,
#ledger-report .custom-table td,
.report-sheet .custom-table td,
.report-no-bg .custom-table td,
.financial-report-table td {
    background: transparent !important;
    background-color: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--text-primary, #f8fafc) !important;
    font-size: 0.92rem !important;
    padding: 12px 14px !important;
    vertical-align: middle !important;
    font-family: 'Kantumruy Pro', 'Outfit', sans-serif !important;
    line-height: 1.5 !important;
}

#pl-report .custom-table tr:hover td,
#bs-report .custom-table tr:hover td,
#cf-report .custom-table tr:hover td,
#tb-report .custom-table tr:hover td,
#ledger-report .custom-table tr:hover td,
.report-sheet .custom-table tr:hover td,
.report-no-bg .custom-table tr:hover td {
    background: rgba(212, 175, 55, 0.04) !important;
}

/* Beautiful, high-contrast links and account names in reports */
.report-sheet a,
.report-no-bg a,
#pl-report a,
#bs-report a,
#cf-report a,
#tb-report a,
#ledger-report a {
    color: var(--text-primary, #f8fafc) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
}

.report-sheet a:hover,
.report-no-bg a:hover,
#pl-report a:hover,
#bs-report a:hover,
#cf-report a:hover,
#tb-report a:hover,
#ledger-report a:hover {
    color: var(--gold, #d4af37) !important;
}

/* Clear subheadings and titles inside reports */
.report-sheet h2, .report-sheet h3, .report-sheet h4,
.report-no-bg h2, .report-no-bg h3, .report-no-bg h4,
#pl-report h2, #pl-report h3, #pl-report h4,
#bs-report h2, #bs-report h3, #bs-report h4,
#cf-report h2, #cf-report h3, #cf-report h4,
#tb-report h2, #tb-report h3, #tb-report h4,
#ledger-report h2, #ledger-report h3, #ledger-report h4 {
    color: var(--text-primary, #f8fafc) !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    letter-spacing: -0.01em !important;
}

/* Financial Total and Subtotal Rows — crisp double underline, transparent bg */
.report-sheet .total-row,
.report-no-bg .total-row,
.custom-table tr.total-row td,
.custom-table tr.report-subtotal td {
    background: transparent !important;
    background-color: transparent !important;
    font-weight: 800 !important;
    color: var(--text-primary, #f8fafc) !important;
    border-top: 1.5px solid var(--gold, #d4af37) !important;
    border-bottom: 3px double var(--gold, #d4af37) !important;
}

/* Executive summary highlight cards — clean borderless layout, no boxed frames (ដកស៊ុមចេញ) */
.report-highlight-card {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-top: 1px solid var(--border-subtle) !important;
    border-bottom: 2px solid var(--gold, #d4af37) !important;
    border-radius: 0 !important;
    padding: 16px 4px !important;
    box-shadow: none !important;
}

.report-highlight-card.highlight-success {
    border-bottom-color: #10b981 !important;
}

.report-highlight-card.highlight-danger {
    border-bottom-color: #f43f5e !important;
}

.report-highlight-card.highlight-blue {
    border-bottom-color: #38bdf8 !important;
}

/* Crisp numeric display */
.report-amount {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif !important;
    font-variant-numeric: tabular-nums !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
}

.report-amount-positive {
    color: #10b981 !important;
}

.report-amount-negative {
    color: #f43f5e !important;
}

.report-amount-gold {
    color: var(--gold, #d4af37) !important;
}

.report-amount-blue {
    color: #38bdf8 !important;
}

/* LIGHT MODE OVERRIDES FOR FINANCIAL REPORTS: Crystal Clear, High Contrast Dark Text */
.theme-light-mode #pl-report,
.theme-light-mode #bs-report,
.theme-light-mode #cf-report,
.theme-light-mode #tb-report,
.theme-light-mode #ledger-report,
.theme-light-mode .report-sheet,
.theme-light-mode .report-no-bg,
[data-theme-mode="light"] #pl-report,
[data-theme-mode="light"] #bs-report,
[data-theme-mode="light"] #cf-report,
[data-theme-mode="light"] #tb-report,
[data-theme-mode="light"] #ledger-report,
[data-theme-mode="light"] .report-sheet,
[data-theme-mode="light"] .report-no-bg {
    background: transparent !important;
    background-color: transparent !important;
}

.theme-light-mode #pl-report .custom-table th,
.theme-light-mode #bs-report .custom-table th,
.theme-light-mode #cf-report .custom-table th,
.theme-light-mode #tb-report .custom-table th,
.theme-light-mode #ledger-report .custom-table th,
.theme-light-mode .report-sheet .custom-table th,
.theme-light-mode .report-no-bg .custom-table th,
[data-theme-mode="light"] .report-sheet .custom-table th {
    background: transparent !important;
    color: #0f172a !important;
    border-bottom: 2px solid #0f172a !important;
    font-weight: 700 !important;
}

.theme-light-mode #pl-report .custom-table td,
.theme-light-mode #bs-report .custom-table td,
.theme-light-mode #cf-report .custom-table td,
.theme-light-mode #tb-report .custom-table td,
.theme-light-mode #ledger-report .custom-table td,
.theme-light-mode .report-sheet .custom-table td,
.theme-light-mode .report-no-bg .custom-table td,
[data-theme-mode="light"] .report-sheet .custom-table td {
    background: transparent !important;
    color: #0f172a !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    font-weight: 500 !important;
}

.theme-light-mode .report-sheet a,
.theme-light-mode .report-no-bg a,
.theme-light-mode #pl-report a,
.theme-light-mode #bs-report a,
.theme-light-mode #cf-report a,
.theme-light-mode #tb-report a,
.theme-light-mode #ledger-report a,
[data-theme-mode="light"] .report-sheet a {
    color: #0f172a !important;
}

.theme-light-mode .report-sheet h2,
.theme-light-mode .report-sheet h3,
.theme-light-mode .report-sheet h4,
.theme-light-mode .report-no-bg h2,
.theme-light-mode .report-no-bg h3,
.theme-light-mode .report-no-bg h4,
.theme-light-mode #pl-report h2,
.theme-light-mode #pl-report h3,
.theme-light-mode #pl-report h4,
.theme-light-mode #bs-report h2,
.theme-light-mode #bs-report h3,
.theme-light-mode #bs-report h4,
.theme-light-mode #cf-report h2,
.theme-light-mode #cf-report h3,
.theme-light-mode #cf-report h4,
.theme-light-mode #tb-report h2,
.theme-light-mode #tb-report h3,
.theme-light-mode #tb-report h4,
.theme-light-mode #ledger-report h2,
.theme-light-mode #ledger-report h3,
.theme-light-mode #ledger-report h4 {
    color: #0f172a !important;
}

.theme-light-mode .report-amount-positive,
[data-theme-mode="light"] .report-amount-positive {
    color: #059669 !important;
}

.theme-light-mode .report-amount-negative,
[data-theme-mode="light"] .report-amount-negative {
    color: #dc2626 !important;
}

.theme-light-mode .report-amount-gold,
[data-theme-mode="light"] .report-amount-gold {
    color: #92400e !important;
}

.theme-light-mode .report-amount-blue,
[data-theme-mode="light"] .report-amount-blue {
    color: #0284c7 !important;
}

.theme-light-mode .report-sheet .total-row,
.theme-light-mode .report-no-bg .total-row,
.theme-light-mode .custom-table tr.total-row td,
.theme-light-mode .custom-table tr.report-subtotal td,
[data-theme-mode="light"] .custom-table tr.total-row td {
    color: #0f172a !important;
    border-top: 1.5px solid #0f172a !important;
    border-bottom: 3px double #0f172a !important;
}

.theme-light-mode .report-highlight-card,
[data-theme-mode="light"] .report-highlight-card {
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: 2px solid #0f172a !important;
}

.theme-light-mode .report-highlight-card.highlight-success,
[data-theme-mode="light"] .report-highlight-card.highlight-success {
    border-bottom-color: #059669 !important;
}

.theme-light-mode .report-highlight-card.highlight-danger,
[data-theme-mode="light"] .report-highlight-card.highlight-danger {
    border-bottom-color: #dc2626 !important;
}

.theme-light-mode .report-sheet small,
.theme-light-mode .report-sheet p,
[data-theme-mode="light"] .report-sheet small,
[data-theme-mode="light"] .report-sheet p {
    color: #334155 !important;
}

/* ==========================================================
   FULL VISIBILITY & SEAMLESS RESPONSIVE FORM DATA ENTRY
   (បង្ហាញមើលឃើញគ្រប់ទម្រង់ កុំអោយដាច់ ងាយស្រួលកត់ត្រានិងប្រើប្រាស់)
   ========================================================== */

/* Filter cards & search containers: 100% visible, clean padding, never clipped */
.filter-card,
.filter-bar,
.search-bar-card,
.form-scroll-container,
.form-scrollable {
    width: 100% !important;
    max-width: 100% !important;
    position: relative;
    padding: 16px 20px !important;
    margin-bottom: 20px !important;
    box-sizing: border-box !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Forms layout: Show all fields & buttons at a glance, wrap gracefully so nothing is cut off */
form,
form[method="GET"],
.filter-card form,
.filter-bar form,
form.filter-form,
.form-horizontal-scroll {
    display: flex !important;
    align-items: flex-end !important;
    gap: 12px 16px !important;
    flex-wrap: wrap !important; /* Wrap gracefully so all controls remain 100% visible without clipping */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Ensure form groups maintain clear labels and optimal widths */
.filter-card form .form-group,
.filter-bar form .form-group,
form.filter-form .form-group,
form[method="GET"] .form-group {
    flex-shrink: 0 !important;
    margin-bottom: 0 !important;
}

.filter-card form .form-group label,
.filter-bar form .form-group label,
form.filter-form .form-group label,
form[method="GET"] .form-group label {
    display: block !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
    color: var(--text-secondary);
    white-space: nowrap !important;
}

/* Action buttons inside forms: Prominent, fully visible, never clipped */
.filter-card form .btn,
.filter-bar form .btn,
form.filter-form .btn,
form[method="GET"] .btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    min-height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

/* Form Controls & Inputs: High legibility, comfortable touch/click target for easy data entry */
.form-control,
input[type="text"],
input[type="number"],
input[type="password"],
input[type="date"],
input[type="tel"],
input[type="email"],
select.form-control,
select {
    min-height: 42px !important;
    box-sizing: border-box !important;
}

/* Modal Form Layout: Generous breathing room, fully visible controls, easy data entry */
.modal-body {
    max-height: 80vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 20px 24px !important;
    box-sizing: border-box !important;
}

.modal form {
    display: block !important;
    width: 100% !important;
}

.modal form .form-group {
    margin-bottom: 16px !important;
}

.modal form .form-group label {
    display: block !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
    color: var(--text-primary);
}

/* Branch Switcher Bar: Wrap gracefully so all branches are visible */
.branch-switcher-bar {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 14px 20px !important;
    box-sizing: border-box !important;
}

.branch-switcher-bar > div {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
}

.branch-switcher-bar .branch-pill-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

/* Sleek Luxury Scrollbars for Data Tables and Containers */
.table-responsive::-webkit-scrollbar,
.filter-card::-webkit-scrollbar,
.filter-bar::-webkit-scrollbar,
.branch-switcher-bar::-webkit-scrollbar,
.form-scroll-container::-webkit-scrollbar {
    height: 9px !important;
    width: 9px !important;
}

.table-responsive::-webkit-scrollbar-track,
.filter-card::-webkit-scrollbar-track,
.filter-bar::-webkit-scrollbar-track,
.branch-switcher-bar::-webkit-scrollbar-track,
.form-scroll-container::-webkit-scrollbar-track {
    background: rgba(13, 19, 31, 0.75) !important;
    border-radius: 6px !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.table-responsive::-webkit-scrollbar-thumb,
.filter-card::-webkit-scrollbar-thumb,
.filter-bar::-webkit-scrollbar-thumb,
.branch-switcher-bar::-webkit-scrollbar-thumb,
.form-scroll-container::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #c29b2b, #e6ca65, #c29b2b) !important;
    border-radius: 6px !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
}

.table-responsive::-webkit-scrollbar-thumb:hover,
.filter-card::-webkit-scrollbar-thumb:hover,
.filter-bar::-webkit-scrollbar-thumb:hover,
.branch-switcher-bar::-webkit-scrollbar-thumb:hover,
.form-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #ffd700 !important;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6) !important;
}

/* Light Theme Scrollbars */
.theme-light-mode .table-responsive::-webkit-scrollbar-track,
.theme-light-mode .filter-card::-webkit-scrollbar-track,
.theme-light-mode .filter-bar::-webkit-scrollbar-track,
.theme-light-mode .branch-switcher-bar::-webkit-scrollbar-track {
    background: #e2e8f0 !important;
    border: 1px solid #cbd5e1 !important;
}

.theme-light-mode .table-responsive::-webkit-scrollbar-thumb,
.theme-light-mode .filter-card::-webkit-scrollbar-thumb,
.theme-light-mode .filter-bar::-webkit-scrollbar-thumb,
.theme-light-mode .branch-switcher-bar::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #d97706, #b45309) !important;
    border: 1px solid #92400e !important;
}

/* ==========================================================================
   LIVE PRINT PREVIEW CONTAINER (Always Pure White Paper with Pitch Black / Crisp Text)
   ========================================================================== */
#fontPreviewContainer,
.print-preview-container {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}

#fontPreviewContainer *,
.print-preview-container * {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    text-shadow: none !important;
}

#fontPreviewContainer table,
.print-preview-container table {
    background-color: #ffffff !important;
    color: #000000 !important;
}

#fontPreviewContainer thead tr,
.print-preview-container thead tr {
    background-color: #f1f5f9 !important;
}

#fontPreviewContainer thead th,
.print-preview-container thead th {
    background-color: #f1f5f9 !important;
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    font-weight: 700 !important;
    border-top: 1px solid #cbd5e1 !important;
    border-bottom: 2px solid #000000 !important;
}

#fontPreviewContainer tbody td,
.print-preview-container tbody td {
    background-color: #ffffff !important;
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

#fontPreviewContainer #previewSalonKh {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    font-weight: 700 !important;
}

#fontPreviewContainer #previewSalonEn {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    font-weight: 600 !important;
}

#fontPreviewContainer #previewSalonContact {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}

#fontPreviewContainer .preview-report-title,
#fontPreviewContainer #previewReportTitle {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    font-weight: 800 !important;
}

#fontPreviewContainer .preview-report-subtitle,
#fontPreviewContainer #previewReportSubtitle {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    font-weight: 600 !important;
}

#fontPreviewContainer .preview-revenue,
#fontPreviewContainer td.preview-revenue {
    color: #047857 !important;
    -webkit-text-fill-color: #047857 !important;
    font-weight: 700 !important;
}

#fontPreviewContainer .preview-expense,
#fontPreviewContainer td.preview-expense {
    color: #b91c1c !important;
    -webkit-text-fill-color: #b91c1c !important;
    font-weight: 700 !important;
}

#fontPreviewContainer tbody tr.preview-total-row,
#fontPreviewContainer tbody tr:last-child {
    background-color: #f8fafc !important;
    border-top: 2px solid #000000 !important;
    border-bottom: 2px solid #000000 !important;
}

#fontPreviewContainer tbody tr.preview-total-row td,
#fontPreviewContainer tbody tr:last-child td {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    font-weight: 700 !important;
}

#fontPreviewContainer .preview-signatures,
#fontPreviewContainer .preview-signature-block,
#fontPreviewContainer .preview-signature-block * {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}