/* --- Extracted from 01_BCV_RATE_COMPONENTS.css --- */
/* === BCV RATE COMPONENTS === */
.bcv-rate-container {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 15px;
    margin-top: 5px;
    margin-left: 12px;
}

.bcv-rate-pill {
    background: #ffffff;
    padding: 8px 14px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid #e2e8f0;
    min-width: 100px;
}

.bcv-rate-date {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.bcv-rate-label {
    color: #059669;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: -0.3px;
    margin-right: 4px;
}

.bcv-rate-value {
    font-family: 'Outfit', sans-serif;
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.5px;
}

.bcv-rate-inline-container {
    display: none;
    align-items: center;
    margin-right: 10px;
    background: var(--bg-subtle);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.bcv-flag {
    width: 16px;
    margin-right: 6px;
    opacity: 0.8;
}

.bcv-inline-label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 700;
    margin-right: 4px;
}

.bcv-inline-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: #000;
    /* Black */
}



/* --- Extracted from 22_DASHBOARD_HOME_BRUTAL.css --- */
/* === DASHBOARD HOME BRUTAL === */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.kpi-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.kpi-card:hover {
    transform: translateY(-5px);
}

.kpi-gradient-1 {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
}

/* Dark Blue */
.kpi-gradient-2 {
    background: linear-gradient(135deg, #166534 0%, #22c55e 100%);
}

/* Green */
.kpi-gradient-3 {
    background: linear-gradient(135deg, #b91c1c 0%, #ef4444 100%);
}

/* Red */
.kpi-gradient-4 {
    background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
}

/* Indigo */

.kpi-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    opacity: 0.2;
}

.kpi-label {
    font-size: 0.9rem;
    font-weight: 700;
    opacity: 0.9;
    margin-bottom: 5px;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: -1px;
}

.kpi-sub {
    font-size: 0.8rem;
    opacity: 0.8;
}

.dashboard-charts-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

@media (max-width: 900px) {
    .dashboard-charts-row {
        grid-template-columns: 1fr;
    }
}

.chart-container-premium,
.list-container-premium {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.section-header-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header-mini h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #1e293b;
    font-weight: 700;
}

.btn-icon-mini {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #94a3b8;
    cursor: pointer;
}

.top-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.top-rank {
    width: 30px;
    height: 30px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    margin-right: 15px;
}

.top-info {
    flex: 1;
}

.top-name {
    font-weight: 700;
    color: #334155;
    font-size: 0.95rem;
}

.top-qty {
    font-size: 0.8rem;
    color: #64748b;
}



/* --- Extracted from 26_SPECTACULAR_GLASS_DASHBOARD.css --- */
/* === SPECTACULAR GLASS DASHBOARD === */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 5px;
    flex-wrap: wrap;
    gap: 15px;
}

/* Action Bar Groups */
.action-groups-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
}

.action-group {
    display: flex;
    align-items: center;
    background: rgba(241, 245, 249, 0.5);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    gap: 4px;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.2s;
    border: 1px solid transparent;
    cursor: pointer;
    background: transparent;
    color: #475569;
}

.btn-action i {
    font-size: 1.1rem;
}

.btn-action:hover {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-action.ai {
    color: #4f46e5;
}

.btn-action.ai:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
}

.btn-action.danger:hover {
    background: #fef2f2;
    border-color: #fecaca;
}

.btn-action.gold {
    color: #b45309;
}

.btn-action.gold:hover {
    background: #fffbeb;
    border-color: #fde68a;
}

.divider-vertical {
    width: 1px;
    height: 24px;
    background: #e2e8f0;
    margin: 0 4px;
}

/* Bulk Pricing Preview Styles */
.pricing-preview-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-top: 15px;
}

.preview-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 10px 15px;
    border-bottom: 1px solid #f1f5f9;
    align-items: center;
    font-size: 0.85rem;
}

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

.preview-price {
    font-weight: 700;
    color: #64748b;
}

.preview-new-price {
    font-weight: 700;
    color: #0f172a;
}

.badge-price-change {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

.badge-price-up {
    background: #f0fdf4;
    color: #166534;
}

.badge-price-down {
    background: #fef2f2;
    color: #991b1b;
}

.pricing-op-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
}




.dashboard-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -1px;
    margin: 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* THE NUCLEAR CONTAINER */
.dashboard-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 15px !important;

    /* Glassmorphism REMOVED to fix double-border issue */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;

    margin-bottom: 30px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex-wrap: wrap !important;
    /* Wrap gracefully on mobile */
}

.controls-right-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    /* Push to right just in case */
}

/* 1. SEARCH PILL */
.control-search {
    position: relative;
    flex: 1 1 250px !important;
    /* Grow, shrink, base 250px */
    max-width: 400px;
    margin-right: auto;
    /* Ensure it stays left */
}

.control-search input {
    width: 100% !important;
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    padding: 10px 15px 10px 40px !important;
    border-radius: 50px !important;
    font-size: 0.95rem !important;
    color: #334155 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    transition: all 0.3s ease !important;
    height: 44px !important;
}

.control-search input:focus {
    background: white !important;
    border-color: var(--primary) !important;
    box-shadow: none !important;
    /* Removed secondary ring artifact */
    outline: none !important;
}

.control-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
    pointer-events: none;
}

/* 2. PRESET TOGGLES */
.control-presets {
    display: flex !important;
    background: #e2e8f0 !important;
    padding: 4px !important;
    border-radius: 50px !important;
    gap: 0 !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.preset-btn {
    border: none !important;
    background: transparent !important;
    padding: 8px 16px !important;
    border-radius: 50px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: #64748b !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.preset-btn:hover {
    color: #334155 !important;
}

.preset-btn.active {
    background: white !important;
    color: var(--primary) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* 3. DATE CAPSULE */
.control-dates {
    display: flex !important;
    align-items: center !important;
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    padding: 0 15px !important;
    /* No vertical padding, height handles it */
    border-radius: 50px !important;
    height: 44px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03) !important;
    gap: 10px !important;
}

.control-dates:hover {
    border-color: #cbd5e1 !important;
}

.control-dates input {
    border: none !important;
    background: transparent !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: #475569 !important;
    width: 110px !important;
    padding: 0 !important;
    height: 100% !important;
    cursor: pointer !important;
    font-family: inherit !important;
    margin: 0 !important;
    outline: none !important;
}

.control-dates span {
    color: #cbd5e1 !important;
    font-weight: 700 !important;
}

/* MOBILE FIXES */
@media (max-width: 768px) {
    .dashboard-controls {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px !important;
        padding: 15px !important;
    }

    .control-search {
        max-width: 100% !important;
    }

    .control-presets {
        justify-content: center;
    }

    .control-dates {
        justify-content: space-between;
    }

    .control-dates input {
        width: 125px !important;
        /* reliable width on mobile */
    }
}

/* COMPACT INPUTS FOR PURCHASE FORM */
.input-field-compact {
    width: 100%;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    font-size: 0.85rem;
    height: 36px;
    background: white;
}

.input-field-compact:focus {
    border-color: var(--primary);
    outline: none;
}



/* --- Extracted from 11_ENTERPRISE_DASHBOARD_STATS_New.css --- */
/* =========================================
   ENTERPRISE DASHBOARD STATS (New)
   ========================================= */
/* ENTERPRISE DASHBOARD STATS (Restored Classic Design) */
.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

.stats-section {
    width: 100%;
}

.section-label {
    margin-bottom: 12px;
    opacity: 0.6;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 120px;
}

/* Hero Cards - Top Hierarchy */
.hero-card {
    min-height: 160px;
    border: none;
    color: white;
}

.hero-card.liquidity {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.2);
}

.hero-card.profit {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.2);
}

.hero-card.cashflow {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.2);
}

.hero-card .stat-info h3 {
    color: rgba(255, 255, 255, 0.8);
}

.hero-card .stat-value {
    color: white !important;
    font-size: 2.5rem;
}

.hero-card .stat-info small {
    color: rgba(255, 255, 255, 0.7);
}

/* Waterproof / Watermark Icons */
.big-icon {
    position: absolute;
    right: -25px;
    bottom: -25px;
    font-size: 8rem;
    opacity: 0.1;
    transform: rotate(-15deg);
    pointer-events: none;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.stat-card:hover .big-icon {
    transform: rotate(-10deg) scale(1.1);
    opacity: 0.15;
}

.hero-card .big-icon {
    font-size: 10rem;
    color: white !important;
    opacity: 0.15;
    right: -35px;
    bottom: -35px;
}

/* Trend & Indicators */
.trend-positive {
    color: #10b981 !important;
}

.trend-negative {
    color: #ef4444 !important;
}

.stat-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 8px;
}

.indicator-up {
    color: #10b981;
}

.indicator-down {
    color: #ef4444;
}

/* Progress Bars */
.stat-progress-bg {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    margin-top: 15px;
    overflow: hidden;
}

.hero-card .stat-progress-bg {
    background: rgba(255, 255, 255, 0.2);
}

.stat-progress-fill {
    height: 100%;
    background: currentColor;
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

/* Trend Indicators */
.trend-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
    vertical-align: middle;
}

.trend-up {
    background: #dcfce7;
    color: #15803d;
}

.trend-down {
    background: #fee2e2;
    color: #b91c1c;
}

.hero-card .trend-up {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Grid Layouts */
.stats-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.stats-row-3,
.stats-row-4,
.charts-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 25px;
}

.stats-row-4 {
    grid-template-columns: repeat(4, 1fr);
}

.no-data {
    padding: 40px;
    text-align: center;
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}


@media (max-width: 1024px) {
    .stats-row-3,
    .stats-row-4,
    .charts-row-3 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
}

@media (max-width: 768px) {
    .stats-row-3,
    .stats-row-4,
    .charts-row-3 {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
}


.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-float);
    border-color: var(--primary-soft);
}

.stat-icon {
    position: absolute;
    right: -10px;
    bottom: -15px;
    width: auto;
    height: auto;
    font-size: 6rem;
    /* Big Icon */
    opacity: 0.15;
    transform: rotate(-15deg);
    background: transparent !important;
    /* Remove circle background */
    color: inherit;
    /* Inherit from specific class logic or set below */
    display: block;
}

.stat-icon i {
    font-size: inherit;
    /* Ensure icon takes the size */
}

/* Specific Colors for Icons (applied to the div) */
.stat-icon.income {
    color: #166534;
}

.stat-icon.expense {
    color: #b91c1c;
}

.stat-icon.profit {
    color: #1e40af;
}

.stat-icon.inventory {
    color: #6b21a8;
}

.stat-info {
    position: relative;
    z-index: 2;
    /* Above the icon */
}

.stat-info h3 {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 2.2rem;
    /* Larger numbers as requested */
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 5px;
}

/* Colored Numbers based on context */
.stat-card:nth-child(1) .stat-value {
    color: #166534;
}

/* Sales Green */
.stat-card:nth-child(2) .stat-value {
    color: #ef4444;
}

/* Expenses Red */
.stat-card:nth-child(3) .stat-value {
    color: #2563eb;
}

/* Profit Blue */
.stat-card:nth-child(4) .stat-value {
    color: #9333ea;
}

/* Inventory Purple */

.stat-info small {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 700;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-float);
    border-color: var(--primary-soft);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.stat-icon.income {
    background: #dcfce7;
    color: #166534;
}

.stat-icon.expense {
    background: #fee2e2;
    color: #b91c1c;
}

.stat-icon.profit {
    background: #dbeafe;
    color: #1e40af;
}

.stat-icon.inventory {
    background: #f3e8ff;
    color: #6b21a8;
}

.stat-info h3 {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.stat-info small {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 4px;
    display: block;
}

/* Legacy header styles removed to favor the modern Glass Dashboard version */


/* Charts Premium Containers */
.chart-container-premium {
    background: white;
    border-radius: 30px;
    padding: 35px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Elite Dashboard Enhancements */
.elite-header-subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 600;
    margin-top: 5px;
}

.elite-card-white {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 24px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.elite-card-white:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-float);
    border-color: #e2e8f0;
}

.elite-badge-pill {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.elite-rank-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
    font-size: 0.9rem;
}

.elite-rank-1 {
    background: var(--primary);
    color: white;
    box-shadow: 0 5px 15px rgba(211, 22, 40, 0.3);
}

.elite-rank-2 {
    background: #f59e0b;
    color: white;
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

.elite-rank-3 {
    background: #3b82f6;
    color: white;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.elite-rank-default {
    background: #f1f5f9;
    color: #64748b;
}

.elite-table-label {
    font-size: 0.7rem;
    font-weight: 850;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.elite-table-value {
    font-size: 1.1rem;
    font-weight: 850;
    color: var(--text-main);
}


.section-header-mini {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-header-mini h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.btn-icon-mini {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: #f1f5f9;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.btn-icon-mini:hover {
    background: var(--primary);
    color: white;
}

/* Top Products List */
.list-container-premium {
    background: white;
    border-radius: 24px;
    padding: 25px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
}

.top-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.top-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.top-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.top-rank {
    width: 28px;
    height: 28px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.top-info {
    flex: 1;
}

.top-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

.top-qty {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* --- AUDIT & REPAIRS MODULES (Extracted from login.html) --- */
.audit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.audit-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
    align-items: center;
}

.audit-row.header {
    font-weight: 700;
    color: #64748b;
    font-size: 0.85rem;
    border-bottom: 2px solid #e2e8f0;
}

.system-val {
    font-family: 'Outfit', monospace;
    font-weight: 700;
    color: #64748b;
}

.audit-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-weight: 700;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
}

.audit-total-row {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #e2e8f0;
    font-weight: 700;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .audit-grid {
        grid-template-columns: 1fr;
    }
}

.checklist-grid {
    margin-top: 15px;
    background: var(--bg-input);
    padding: 20px;
    border-radius: 16px;
    gap: 15px !important;
}

.check-item {
    display: flex;
    align-items: center;
}

.switch-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
}

.terms-box {
    margin-top: 20px;
    padding: 15px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 12px;
}

[data-theme="dark"] .terms-box {
    background: #1a160a;
    border-color: #3e3314;
}

.terms-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #b45309;
    margin-bottom: 10px;
}

.terms-content {
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--text-main);
    max-height: 100px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.acceptance-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.acceptance-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* --- PREMIUM WALLET & CRM REFINEMENTS (Extracted from login.html) --- */
.header-balance-pill {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    border: 1px solid rgba(16, 185, 129, 0.2);
    margin-left: 5px;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.5px;
}

.wallet-banner-premium {
    margin: 0 auto 25px auto;
    width: calc(100% - 30px);
    max-width: 1200px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 24px;
    padding: 22px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    animation: walletSlideDown 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.wallet-banner-premium::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -10%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.wallet-main-info {
    display: flex;
    align-items: center;
    gap: 22px;
    z-index: 1;
}

.wallet-icon-circle {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #60a5fa;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.wallet-details {
    display: flex;
    flex-direction: column;
}

.wallet-title {
    font-size: 0.7rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #94a3b8;
    margin-bottom: 5px;
}

.wallet-value-group {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.wallet-value {
    font-size: 2.5rem;
    font-weight: 950;
    letter-spacing: -1.5px;
    line-height: 1;
    background: linear-gradient(to bottom, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wallet-currency {
    font-size: 1.1rem;
    font-weight: 800;
    color: #3b82f6;
}

.wallet-subtext {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-style: italic;
}

.wallet-status-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 22px;
    border-radius: 18px;
    text-align: right;
    z-index: 1;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.status-label {
    font-size: 0.65rem;
    font-weight: 900;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.status-value {
    font-size: 0.9rem;
    font-weight: 800;
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

@keyframes walletSlideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

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

@media (max-width: 768px) {
    .wallet-banner-premium {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 25px;
        text-align: center;
        border-radius: 28px;
    }

    .wallet-main-info {
        flex-direction: column;
        gap: 15px;
    }

    .wallet-value-group {
        justify-content: center;
    }

    .wallet-status-card {
        width: 100%;
        text-align: center;
    }

    .status-value {
        justify-content: center;
    }

    .wallet-subtext {
        justify-content: center;
    }
}

/* --- FOOTER & MOBILE NAV --- */
.app-main-footer {
    text-align: center;
    padding: 25px 20px;
    border-top: 1px solid var(--border);
    background: #f8fafc;
    margin-top: 80px;
}

.app-main-footer div {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-main-footer p {
    margin: 0;
}

.app-main-footer .footer-brand {
    font-weight: 800;
    color: #1e293b;
    font-size: 1.1rem;
    letter-spacing: -0.5px;
}

.app-main-footer .footer-dev {
    color: #64748b;
    font-size: 0.85rem;
}

.app-main-footer .footer-dev b {
    color: #ef4444;
}

.app-main-footer .footer-copy {
    margin-top: 10px;
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: white;
    display: none; /* Desktop hidden */
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #e2e8f0;
    padding: 0 10px;
    z-index: 999;
}

@media (max-width: 768px) {
    .mobile-nav {
        display: flex;
    }
}

.mobile-nav .nav-item {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.mobile-nav .nav-item i {
    font-size: 1.4rem;
}

.mobile-nav .nav-item.active {
    color: var(--primary);
}

.badge-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    padding: 2px 5px;
    border-radius: 10px;
    font-weight: 850;
    border: 1px solid white;
}

/* Responsive Card Header for Liquidez (Facturación) Card */
.liquidity-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 14px;
}

.liquidity-card-title {
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    font-size: 0.95rem;
    font-weight: 800;
}

.liquidity-card-badge {
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* On medium/smaller desktops and tablets where the 3-column layout causes narrow cards */
@media (max-width: 1440px) {
    .liquidity-card-title {
        font-size: 0.85rem;
        gap: 4px;
    }
    .liquidity-card-badge {
        font-size: 0.7rem;
        padding: 4px 10px;
        gap: 4px;
    }
}

@media (max-width: 1200px) {
    .liquidity-card-title {
        font-size: 0.8rem;
        gap: 3px;
    }
    .liquidity-card-badge {
        font-size: 0.65rem;
        padding: 3px 8px;
        gap: 4px;
    }
}

/* On mobile layout where cards stack to 1-column, they get plenty of space again */
@media (max-width: 1024px) {
    .liquidity-card-title {
        font-size: 0.95rem;
        gap: 6px;
    }
    .liquidity-card-badge {
        font-size: 0.75rem;
        padding: 5px 12px;
        gap: 6px;
    }
}

@media (max-width: 768px) {
    .liquidity-card-title {
        font-size: 0.85rem;
        gap: 4px;
    }
    .liquidity-card-badge {
        font-size: 0.7rem;
        padding: 4px 10px;
        gap: 4px;
    }
}