/* ═══════════════════════════════════════════════════════════════════════════
   DEBTX THEME SYSTEM - Professional UI Themes for Debt Tracking
   A comprehensive collection designed for daily use by small shop owners
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   THEME 0: STUDIO PRO
   Crisp, professional palette with refined neutrals and teal focus
   Built to feel premium and fast in everyday business use
   ───────────────────────────────────────────────────────────────────────────── */
html[data-theme="studio-pro"] {
    color-scheme: light;
    
    /* Core Colors */
    --bg: #f5f4f0;
    --bg-rgb: 245, 244, 240;
    --surface: #ffffff;
    --surface-rgb: 255, 255, 255;
    --surface-soft: #f1f2f4;
    --surface-elevated: #ffffff;
    --border: #d9dde2;
    --border-subtle: #e8ebef;
    
    /* Brand Colors */
    --primary: #0f766e;
    --primary-rgb: 15, 118, 110;
    --primary-soft: rgba(15, 118, 110, 0.12);
    --primary-strong: #0b5f58;
    --primary-glow: rgba(15, 118, 110, 0.24);
    
    /* Accent & Secondary */
    --accent: #f59e0b;
    --accent-soft: rgba(245, 158, 11, 0.12);
    --secondary: #1e293b;
    
    /* Text Colors */
    --text: #121826;
    --text-soft: #556070;
    --text-muted: #8a94a6;
    --text-on-primary: #ffffff;
    
    /* Status Colors */
    --success: #16a34a;
    --success-soft: rgba(22, 163, 74, 0.12);
    --warning: #f59e0b;
    --warning-soft: rgba(245, 158, 11, 0.12);
    --danger: #dc2626;
    --danger-soft: rgba(220, 38, 38, 0.12);
    --info: #0284c7;
    --info-soft: rgba(2, 132, 199, 0.12);
    
    /* Debt Status Specific */
    --debt-paid: #16a34a;
    --debt-paid-bg: linear-gradient(135deg, rgba(22, 163, 74, 0.08), rgba(22, 163, 74, 0.03));
    --debt-pending: #f59e0b;
    --debt-pending-bg: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0.03));
    --debt-overdue: #dc2626;
    --debt-overdue-bg: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(220, 38, 38, 0.04));
    --debt-reminder: #0284c7;
    --debt-reminder-bg: linear-gradient(135deg, rgba(2, 132, 199, 0.08), rgba(2, 132, 199, 0.03));
    
    /* Shadows & Effects */
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.08);
    --shadow: 0 10px 32px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 18px 48px rgba(15, 23, 42, 0.16);
    --shadow-glow: 0 6px 20px rgba(15, 118, 110, 0.18);
    
    /* Borders & Radius */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    /* Typography Scale */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Amount Display */
    --amount-large: 2.1rem;
    --amount-medium: 1.55rem;
    --amount-small: 1.1rem;
    
    /* Animation */
    --transition-fast: 0.12s ease;
    --transition-normal: 0.24s ease;
    --transition-slow: 0.36s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─────────────────────────────────────────────────────────────────────────────
   THEME 1: COZY LEDGER
   Warm, calming tones with soft shadows and rounded cards
   Designed to reduce stress during long daily use
   ───────────────────────────────────────────────────────────────────────────── */
html[data-theme="cozy-ledger"] {
    color-scheme: light;
    
    /* Core Colors */
    --bg: #faf7f4;
    --bg-rgb: 250, 247, 244;
    --surface: #ffffff;
    --surface-rgb: 255, 255, 255;
    --surface-soft: #f5f0eb;
    --surface-elevated: #ffffff;
    --border: #e8e0d8;
    --border-subtle: #f0e8e0;
    
    /* Brand Colors */
    --primary: #8b7355;
    --primary-rgb: 139, 115, 85;
    --primary-soft: rgba(139, 115, 85, 0.12);
    --primary-strong: #6d5a44;
    --primary-glow: rgba(139, 115, 85, 0.25);
    
    /* Accent & Secondary */
    --accent: #c9a86c;
    --accent-soft: rgba(201, 168, 108, 0.15);
    --secondary: #a8927a;
    
    /* Text Colors - improved contrast for readability */
    --text: #3d342c;
    --text-soft: #6b5f54;
    --text-muted: #8f8378;
    --text-on-primary: #ffffff;
    
    /* Status Colors */
    --success: #6b9b7a;
    --success-soft: rgba(107, 155, 122, 0.15);
    --warning: #d4a574;
    --warning-soft: rgba(212, 165, 116, 0.15);
    --danger: #c27c6a;
    --danger-soft: rgba(194, 124, 106, 0.15);
    --info: #7a9bb5;
    --info-soft: rgba(122, 155, 181, 0.15);
    
    /* Debt Status Specific */
    --debt-paid: #6b9b7a;
    --debt-paid-bg: linear-gradient(135deg, rgba(107, 155, 122, 0.08), rgba(107, 155, 122, 0.04));
    --debt-pending: #d4a574;
    --debt-pending-bg: linear-gradient(135deg, rgba(212, 165, 116, 0.08), rgba(212, 165, 116, 0.04));
    --debt-overdue: #c27c6a;
    --debt-overdue-bg: linear-gradient(135deg, rgba(194, 124, 106, 0.1), rgba(194, 124, 106, 0.05));
    --debt-reminder: #7a9bb5;
    --debt-reminder-bg: linear-gradient(135deg, rgba(122, 155, 181, 0.08), rgba(122, 155, 181, 0.04));
    
    /* Shadows & Effects */
    --shadow-sm: 0 2px 8px rgba(74, 63, 53, 0.06);
    --shadow: 0 8px 24px rgba(74, 63, 53, 0.08);
    --shadow-lg: 0 16px 48px rgba(74, 63, 53, 0.12);
    --shadow-glow: 0 4px 20px rgba(139, 115, 85, 0.15);
    
    /* Borders & Radius */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    /* Typography Scale */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Amount Display */
    --amount-large: 2rem;
    --amount-medium: 1.5rem;
    --amount-small: 1.1rem;
    
    /* Animation */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─────────────────────────────────────────────────────────────────────────────
   THEME 2: CLEAN BUSINESS
   Minimal high-contrast layout prioritizing clarity and speed
   Professional appearance for business-focused users
   ───────────────────────────────────────────────────────────────────────────── */
html[data-theme="clean-business"] {
    color-scheme: light;
    
    /* Core Colors */
    --bg: #ffffff;
    --bg-rgb: 255, 255, 255;
    --surface: #ffffff;
    --surface-rgb: 255, 255, 255;
    --surface-soft: #f8f9fa;
    --surface-elevated: #ffffff;
    --border: #e9ecef;
    --border-subtle: #f1f3f5;
    
    /* Brand Colors */
    --primary: #2563eb;
    --primary-rgb: 37, 99, 235;
    --primary-soft: rgba(37, 99, 235, 0.08);
    --primary-strong: #1d4ed8;
    --primary-glow: rgba(37, 99, 235, 0.2);
    
    /* Accent & Secondary */
    --accent: #0ea5e9;
    --accent-soft: rgba(14, 165, 233, 0.1);
    --secondary: #64748b;
    
    /* Text Colors */
    --text: #0f172a;
    --text-soft: #475569;
    --text-muted: #94a3b8;
    --text-on-primary: #ffffff;
    
    /* Status Colors */
    --success: #059669;
    --success-soft: rgba(5, 150, 105, 0.1);
    --warning: #d97706;
    --warning-soft: rgba(217, 119, 6, 0.1);
    --danger: #dc2626;
    --danger-soft: rgba(220, 38, 38, 0.1);
    --info: #0284c7;
    --info-soft: rgba(2, 132, 199, 0.1);
    
    /* Debt Status Specific */
    --debt-paid: #059669;
    --debt-paid-bg: linear-gradient(135deg, rgba(5, 150, 105, 0.06), rgba(5, 150, 105, 0.02));
    --debt-pending: #d97706;
    --debt-pending-bg: linear-gradient(135deg, rgba(217, 119, 6, 0.06), rgba(217, 119, 6, 0.02));
    --debt-overdue: #dc2626;
    --debt-overdue-bg: linear-gradient(135deg, rgba(220, 38, 38, 0.08), rgba(220, 38, 38, 0.03));
    --debt-reminder: #0284c7;
    --debt-reminder-bg: linear-gradient(135deg, rgba(2, 132, 199, 0.06), rgba(2, 132, 199, 0.02));
    
    /* Shadows & Effects */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 4px 16px rgba(37, 99, 235, 0.12);
    
    /* Borders & Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    /* Typography Scale */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Amount Display */
    --amount-large: 2.2rem;
    --amount-medium: 1.6rem;
    --amount-small: 1.15rem;
    
    /* Animation */
    --transition-fast: 0.1s ease;
    --transition-normal: 0.2s ease;
    --transition-slow: 0.3s ease;
}

/* ─────────────────────────────────────────────────────────────────────────────
   THEME 3: NIGHT SHOP
   Dark theme optimized for night-time use with eye-friendly highlights
   Perfect for late-night inventory checks and bookkeeping
   ───────────────────────────────────────────────────────────────────────────── */
html[data-theme="night-shop"] {
    color-scheme: dark;
    
    /* Core Colors */
    --bg: #0c0f14;
    --bg-rgb: 12, 15, 20;
    --surface: #151921;
    --surface-rgb: 21, 25, 33;
    --surface-soft: #1c222d;
    --surface-elevated: #232a38;
    --border: #323d4d;
    --border-subtle: #252d3a;
    
    /* Brand Colors */
    --primary: #10b981;
    --primary-rgb: 16, 185, 129;
    --primary-soft: rgba(16, 185, 129, 0.15);
    --primary-strong: #34d399;
    --primary-glow: rgba(16, 185, 129, 0.25);
    
    /* Accent & Secondary */
    --accent: #6ee7b7;
    --accent-soft: rgba(110, 231, 183, 0.12);
    --secondary: #6b7280;
    
	    /* Text Colors */
	    --text: #f1f5f9;
	    --text-soft: #94a3b8;
	    --text-muted: #64748b;
	    --text-on-primary: #ffffff;
    
    /* Status Colors - Adjusted for dark mode visibility */
    --success: #34d399;
    --success-soft: rgba(52, 211, 153, 0.15);
    --warning: #fbbf24;
    --warning-soft: rgba(251, 191, 36, 0.15);
    --danger: #f87171;
    --danger-soft: rgba(248, 113, 113, 0.15);
    --info: #60a5fa;
    --info-soft: rgba(96, 165, 250, 0.15);
    
    /* Debt Status Specific */
    --debt-paid: #34d399;
    --debt-paid-bg: linear-gradient(135deg, rgba(52, 211, 153, 0.1), rgba(52, 211, 153, 0.05));
    --debt-pending: #fbbf24;
    --debt-pending-bg: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(251, 191, 36, 0.05));
    --debt-overdue: #f87171;
    --debt-overdue-bg: linear-gradient(135deg, rgba(248, 113, 113, 0.12), rgba(248, 113, 113, 0.06));
    --debt-reminder: #60a5fa;
    --debt-reminder-bg: linear-gradient(135deg, rgba(96, 165, 250, 0.1), rgba(96, 165, 250, 0.05));
    
    /* Shadows & Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 4px 24px rgba(16, 185, 129, 0.2);
    
    /* Borders & Radius */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    /* Typography Scale */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Amount Display */
    --amount-large: 2rem;
    --amount-medium: 1.5rem;
    --amount-small: 1.1rem;
    
    /* Animation */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─────────────────────────────────────────────────────────────────────────────
   THEME 4: ZEN FINANCE
   Peaceful pastel layout feeling spacious and organized
   Minimalist approach for clear financial overview
   ───────────────────────────────────────────────────────────────────────────── */
html[data-theme="zen-finance"] {
    color-scheme: light;
    
    /* Core Colors */
    --bg: #f8fafb;
    --bg-rgb: 248, 250, 251;
    --surface: #ffffff;
    --surface-rgb: 255, 255, 255;
    --surface-soft: #f0f5f7;
    --surface-elevated: #ffffff;
    --border: #e2e8ec;
    --border-subtle: #edf2f5;
    
    /* Brand Colors */
    --primary: #5b8c85;
    --primary-rgb: 91, 140, 133;
    --primary-soft: rgba(91, 140, 133, 0.1);
    --primary-strong: #4a7570;
    --primary-glow: rgba(91, 140, 133, 0.18);
    
    /* Accent & Secondary */
    --accent: #8bb5ab;
    --accent-soft: rgba(139, 181, 171, 0.15);
    --secondary: #7a8f8c;
    
    /* Text Colors - clearer hierarchy */
    --text: #24302e;
    --text-soft: #4d5f5d;
    --text-muted: #7a8886;
    --text-on-primary: #ffffff;
    
    /* Status Colors - Soft pastels */
    --success: #6aa899;
    --success-soft: rgba(106, 168, 153, 0.12);
    --warning: #d4a76a;
    --warning-soft: rgba(212, 167, 106, 0.12);
    --danger: #c9857a;
    --danger-soft: rgba(201, 133, 122, 0.12);
    --info: #7aacc4;
    --info-soft: rgba(122, 172, 196, 0.12);
    
    /* Debt Status Specific */
    --debt-paid: #6aa899;
    --debt-paid-bg: linear-gradient(135deg, rgba(106, 168, 153, 0.06), rgba(106, 168, 153, 0.02));
    --debt-pending: #d4a76a;
    --debt-pending-bg: linear-gradient(135deg, rgba(212, 167, 106, 0.06), rgba(212, 167, 106, 0.02));
    --debt-overdue: #c9857a;
    --debt-overdue-bg: linear-gradient(135deg, rgba(201, 133, 122, 0.08), rgba(201, 133, 122, 0.03));
    --debt-reminder: #7aacc4;
    --debt-reminder-bg: linear-gradient(135deg, rgba(122, 172, 196, 0.06), rgba(122, 172, 196, 0.02));
    
    /* Shadows & Effects */
    --shadow-sm: 0 2px 6px rgba(45, 62, 60, 0.04);
    --shadow: 0 6px 20px rgba(45, 62, 60, 0.06);
    --shadow-lg: 0 14px 40px rgba(45, 62, 60, 0.08);
    --shadow-glow: 0 4px 18px rgba(91, 140, 133, 0.12);
    
    /* Borders & Radius */
    --radius-sm: 14px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --radius-xl: 36px;
    
    /* Typography Scale */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Amount Display */
    --amount-large: 1.9rem;
    --amount-medium: 1.4rem;
    --amount-small: 1.05rem;
    
    /* Animation */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─────────────────────────────────────────────────────────────────────────────
   THEME 5: STREET LEDGER
   Bold modern theme highlighting important actions
   Energetic and dynamic for active shop environments
   ───────────────────────────────────────────────────────────────────────────── */
html[data-theme="street-ledger"] {
    color-scheme: light;
    
    /* Core Colors */
    --bg: #f7f7f8;
    --bg-rgb: 247, 247, 248;
    --surface: #ffffff;
    --surface-rgb: 255, 255, 255;
    --surface-soft: #f0f0f2;
    --surface-elevated: #ffffff;
    --border: #e0e0e4;
    --border-subtle: #eaeaed;
    
    /* Brand Colors */
    --primary: #e63946;
    --primary-rgb: 230, 57, 70;
    --primary-soft: rgba(230, 57, 70, 0.1);
    --primary-strong: #c1121f;
    --primary-glow: rgba(230, 57, 70, 0.22);
    
    /* Accent & Secondary */
    --accent: #ff6b6b;
    --accent-soft: rgba(255, 107, 107, 0.12);
    --secondary: #6c757d;
    
    /* Text Colors */
    --text: #1a1a2e;
    --text-soft: #4a4a5e;
    --text-muted: #8a8a9e;
    --text-on-primary: #ffffff;
    
    /* Status Colors - Vibrant and bold */
    --success: #06d6a0;
    --success-soft: rgba(6, 214, 160, 0.12);
    --warning: #ffd166;
    --warning-soft: rgba(255, 209, 102, 0.18);
    --danger: #ef476f;
    --danger-soft: rgba(239, 71, 111, 0.12);
    --info: #118ab2;
    --info-soft: rgba(17, 138, 178, 0.12);
    
    /* Debt Status Specific */
    --debt-paid: #06d6a0;
    --debt-paid-bg: linear-gradient(135deg, rgba(6, 214, 160, 0.08), rgba(6, 214, 160, 0.03));
    --debt-pending: #ffd166;
    --debt-pending-bg: linear-gradient(135deg, rgba(255, 209, 102, 0.12), rgba(255, 209, 102, 0.05));
    --debt-overdue: #ef476f;
    --debt-overdue-bg: linear-gradient(135deg, rgba(239, 71, 111, 0.1), rgba(239, 71, 111, 0.04));
    --debt-reminder: #118ab2;
    --debt-reminder-bg: linear-gradient(135deg, rgba(17, 138, 178, 0.08), rgba(17, 138, 178, 0.03));
    
    /* Shadows & Effects */
    --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
    --shadow: 0 8px 28px rgba(26, 26, 46, 0.1);
    --shadow-lg: 0 18px 52px rgba(26, 26, 46, 0.14);
    --shadow-glow: 0 6px 24px rgba(230, 57, 70, 0.2);
    
    /* Borders & Radius */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    /* Typography Scale */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 800;
    
    /* Amount Display */
    --amount-large: 2.4rem;
    --amount-medium: 1.7rem;
    --amount-small: 1.2rem;
    
    /* Animation */
    --transition-fast: 0.12s ease;
    --transition-normal: 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-slow: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─────────────────────────────────────────────────────────────────────────────
   THEME 6: CLASSIC PAPER
   Paper-inspired design feeling familiar and reliable
   Traditional ledger aesthetic with modern functionality
   ───────────────────────────────────────────────────────────────────────────── */
html[data-theme="classic-paper"] {
    color-scheme: light;
    
    /* Core Colors */
    --bg: #fdfbf7;
    --bg-rgb: 253, 251, 247;
    --surface: #fffef9;
    --surface-rgb: 255, 254, 249;
    --surface-soft: #f8f5ef;
    --surface-elevated: #ffffff;
    --border: #e8e4da;
    --border-subtle: #f0ece2;
    
    /* Brand Colors */
    --primary: #2c5530;
    --primary-rgb: 44, 85, 48;
    --primary-soft: rgba(44, 85, 48, 0.1);
    --primary-strong: #1e3f22;
    --primary-glow: rgba(44, 85, 48, 0.15);
    
    /* Accent & Secondary */
    --accent: #8b4513;
    --accent-soft: rgba(139, 69, 19, 0.1);
    --secondary: #6b5b4f;
    
    /* Text Colors */
    --text: #2c2416;
    --text-soft: #5c4d3c;
    --text-muted: #8c7d6c;
    --text-on-primary: #fffef9;
    
    /* Status Colors - Vintage inspired */
    --success: #2c5530;
    --success-soft: rgba(44, 85, 48, 0.1);
    --warning: #b8860b;
    --warning-soft: rgba(184, 134, 11, 0.12);
    --danger: #8b2500;
    --danger-soft: rgba(139, 37, 0, 0.1);
    --info: #1e4d6b;
    --info-soft: rgba(30, 77, 107, 0.1);
    
    /* Debt Status Specific */
    --debt-paid: #2c5530;
    --debt-paid-bg: linear-gradient(135deg, rgba(44, 85, 48, 0.06), rgba(44, 85, 48, 0.02));
    --debt-pending: #b8860b;
    --debt-pending-bg: linear-gradient(135deg, rgba(184, 134, 11, 0.08), rgba(184, 134, 11, 0.03));
    --debt-overdue: #8b2500;
    --debt-overdue-bg: linear-gradient(135deg, rgba(139, 37, 0, 0.08), rgba(139, 37, 0, 0.03));
    --debt-reminder: #1e4d6b;
    --debt-reminder-bg: linear-gradient(135deg, rgba(30, 77, 107, 0.06), rgba(30, 77, 107, 0.02));
    
    /* Shadows & Effects - warmer, paper-like depth */
    --shadow-sm: 0 1px 5px rgba(44, 36, 22, 0.07);
    --shadow: 0 6px 20px rgba(44, 36, 22, 0.09);
    --shadow-lg: 0 14px 40px rgba(44, 36, 22, 0.12);
    --shadow-glow: 0 4px 18px rgba(44, 85, 48, 0.14);
    
    /* Borders & Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    
    /* Typography Scale */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Amount Display */
    --amount-large: 1.9rem;
    --amount-medium: 1.4rem;
    --amount-small: 1.05rem;
    
    /* Animation */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
}


/* ═══════════════════════════════════════════════════════════════════════════
   THEME-SPECIFIC COMPONENT STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   DOCK NAVIGATION - Icons with Text Labels (New Design)
   ───────────────────────────────────────────────────────────────────────────── */

/* Base Dock Styles for All Themes - Updated for icons + text */
.dock {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    pointer-events: none;
}

.dock-inner {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: saturate(180%) blur(25px);
    -webkit-backdrop-filter: saturate(180%) blur(25px);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-subtle);
    pointer-events: auto;
}

.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 14px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: var(--text-soft);
    font-family: inherit;
    position: relative;
    min-width: 52px;
}

.dock-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dock-item .dock-icon {
    width: 20px;
    height: 20px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Always visible text label - tiny text */
.dock-label {
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--text-soft);
    transition: all 0.3s ease;
    text-transform: none;
    white-space: nowrap;
    line-height: 1.2;
}

/* Hide old helper class */
.dock-helper {
    display: none;
}

/* Active indicator dot */
.dock-indicator {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 6px var(--primary);
}

.dock-item:hover {
    background: var(--primary-soft);
    color: var(--primary-strong);
    transform: translateY(-4px) scale(1.05);
}

.dock-item:hover .dock-icon {
    transform: scale(1.1);
}

.dock-item:hover .dock-label {
    color: var(--primary-strong);
}

.dock-item.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong, var(--primary)) 100%);
    color: var(--text-on-primary);
    box-shadow: var(--shadow-glow);
}

.dock-item.active .dock-label {
    color: var(--text-on-primary);
}

.dock-item.active .dock-indicator {
    transform: translateX(-50%) scale(1);
    background: #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* Theme-specific dock styles */
html[data-theme="cozy-ledger"] .dock-inner {
    background: linear-gradient(145deg, 
        color-mix(in srgb, var(--surface) 95%, transparent),
        color-mix(in srgb, var(--surface-soft) 90%, transparent));
    border-color: var(--border);
    box-shadow: 
        0 8px 32px rgba(74, 63, 53, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

html[data-theme="night-shop"] .dock-inner {
    background: linear-gradient(145deg, 
        color-mix(in srgb, var(--surface) 85%, transparent),
        color-mix(in srgb, var(--surface-soft) 80%, transparent));
    border-color: var(--border);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html[data-theme="night-shop"] .dock-label {
    color: rgba(255, 255, 255, 0.7);
}

html[data-theme="night-shop"] .dock-item.active .dock-label {
    color: #fff;
}

html[data-theme="street-ledger"] .dock-item.active {
    box-shadow: 0 6px 24px rgba(230, 57, 70, 0.35);
}

html[data-theme="classic-paper"] .dock-inner {
    background: var(--surface);
    border: 2px solid var(--border);
    box-shadow: 
        0 4px 16px rgba(44, 36, 22, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}


/* ─────────────────────────────────────────────────────────────────────────────
   DEBT CARDS - Status Treatments
   ───────────────────────────────────────────────────────────────────────────── */

/* Customer/Debt Card Base */
.customer-card,
.debt-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.customer-card:hover,
.debt-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--primary);
}

/* Status Indicator Strip */
.customer-card::before,
.debt-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
    transition: width var(--transition-normal);
}

.customer-card:hover::before,
.debt-card:hover::before {
    width: 6px;
}

/* Paid Status */
.customer-card[data-status="paid"],
.debt-card.debt-status-paid {
    background: var(--debt-paid-bg);
    border-color: color-mix(in srgb, var(--debt-paid) 30%, transparent);
}

.customer-card[data-status="paid"]::before,
.debt-card.debt-status-paid::before {
    background: var(--debt-paid);
}

.customer-card[data-status="paid"] .status-pill,
.debt-status-paid .status-badge {
    background: var(--success-soft);
    color: var(--debt-paid);
}

/* Pending Status */
.customer-card[data-status="pending"],
.debt-card.debt-status-pending {
    background: var(--debt-pending-bg);
    border-color: color-mix(in srgb, var(--debt-pending) 25%, transparent);
}

.customer-card[data-status="pending"]::before,
.debt-card.debt-status-pending::before {
    background: var(--debt-pending);
}

.customer-card[data-status="pending"] .status-pill,
.debt-status-pending .status-badge {
    background: var(--warning-soft);
    color: var(--debt-pending);
}

/* Overdue Status */
.customer-card[data-status="overdue"],
.debt-card.debt-status-overdue {
    background: var(--debt-overdue-bg);
    border-color: color-mix(in srgb, var(--debt-overdue) 35%, transparent);
}

.customer-card[data-status="overdue"]::before,
.debt-card.debt-status-overdue::before {
    background: var(--debt-overdue);
    animation: pulse-overdue 2s infinite;
}

.customer-card[data-status="overdue"] .status-pill,
.debt-status-overdue .status-badge {
    background: var(--danger-soft);
    color: var(--debt-overdue);
}

@keyframes pulse-overdue {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Reminder Status */
.customer-card[data-status="reminder"],
.debt-card.debt-status-reminder {
    background: var(--debt-reminder-bg);
    border-color: color-mix(in srgb, var(--debt-reminder) 25%, transparent);
}

.customer-card[data-status="reminder"]::before,
.debt-card.debt-status-reminder::before {
    background: var(--debt-reminder);
}

.customer-card[data-status="reminder"] .status-pill,
.debt-status-reminder .status-badge {
    background: var(--info-soft);
    color: var(--debt-reminder);
}


/* ─────────────────────────────────────────────────────────────────────────────
   AMOUNT DISPLAY HIERARCHY
   ───────────────────────────────────────────────────────────────────────────── */

/* Large Amount - Total balance, invoices */
.amount-large,
.customer-balance,
.bill-total,
.invoice-amount {
    font-size: var(--amount-large);
    font-weight: var(--font-weight-bold);
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Medium Amount - Individual debts, payments */
.amount-medium,
.debt-amount,
.payment-amount {
    font-size: var(--amount-medium);
    font-weight: var(--font-weight-semibold);
    color: var(--text);
}

/* Small Amount - Details, history */
.amount-small,
.history-amount,
.detail-amount {
    font-size: var(--amount-small);
    font-weight: var(--font-weight-medium);
    color: var(--text-soft);
}

/* Negative/Debit Amount */
.amount-negative,
.amount-debit {
    color: var(--danger);
}

/* Positive/Credit Amount */
.amount-positive,
.amount-credit {
    color: var(--success);
}

/* Currency Symbol */
.currency-symbol {
    font-size: 0.7em;
    vertical-align: super;
    margin-right: 2px;
    opacity: 0.9;
}


/* ─────────────────────────────────────────────────────────────────────────────
   NAME HIERARCHY
   ───────────────────────────────────────────────────────────────────────────── */

/* Customer Name */
.customer-name,
.name-primary {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

/* Secondary Name (Shop name, description) */
.name-secondary,
.customer-shop {
    font-size: 0.95rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-soft);
}

/* Phone/Contact */
.customer-phone,
.contact-info {
    font-size: 0.9rem;
    font-weight: var(--font-weight-normal);
    color: var(--text-muted);
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
}


/* ─────────────────────────────────────────────────────────────────────────────
   DATE HIERARCHY
   ───────────────────────────────────────────────────────────────────────────── */

/* Due Date - Important */
.due-date,
.date-primary {
    font-size: 0.95rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text);
}

/* Due Date - Overdue Emphasis */
.due-date.overdue,
.date-overdue {
    color: var(--danger);
    font-weight: var(--font-weight-bold);
}

/* Regular Date */
.date-secondary,
.created-date {
    font-size: 0.85rem;
    font-weight: var(--font-weight-normal);
    color: var(--text-soft);
}

/* Time/Timestamp */
.date-timestamp {
    font-size: 0.8rem;
    color: var(--text-muted);
}


/* ─────────────────────────────────────────────────────────────────────────────
   BUTTONS & INTERACTIONS
   ───────────────────────────────────────────────────────────────────────────── */

/* Primary Button */
.primary-btn {
    background: var(--primary);
    color: var(--text-on-primary);
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.primary-btn:hover {
    background: var(--primary-strong);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.primary-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Secondary Button */
.secondary-btn {
    background: var(--primary-soft);
    color: var(--primary-strong);
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.secondary-btn:hover {
    background: var(--primary);
    color: var(--text-on-primary);
    box-shadow: var(--shadow-sm);
}

/* Icon Button */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-soft);
}

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

/* Danger Button */
.danger-btn {
    background: var(--danger-soft);
    color: var(--danger);
    border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent);
}

.danger-btn:hover {
    background: var(--danger);
    color: white;
}


/* ─────────────────────────────────────────────────────────────────────────────
   INVOICE/BILL CARDS
   ───────────────────────────────────────────────────────────────────────────── */

.invoice-card,
.bill-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all var(--transition-normal);
}

.invoice-card:hover,
.bill-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Invoice Header */
.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 16px;
    border-bottom: 2px dashed var(--border);
    margin-bottom: 16px;
}

.invoice-number {
    font-size: 0.85rem;
    font-weight: var(--font-weight-semibold);
    color: var(--primary);
    font-family: 'SF Mono', 'Monaco', monospace;
}

/* Invoice Items Table */
.invoice-items {
    margin: 16px 0;
}

.invoice-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-subtle);
}

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

/* Invoice Total Row */
.invoice-total-row {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-top: 2px solid var(--border);
    margin-top: 16px;
    font-weight: var(--font-weight-bold);
}


/* ─────────────────────────────────────────────────────────────────────────────
   REMINDER CARDS
   ───────────────────────────────────────────────────────────────────────────── */

.reminder-card {
    background: var(--debt-reminder-bg);
    border-radius: var(--radius-lg);
    padding: 18px;
    border: 1px solid color-mix(in srgb, var(--info) 30%, transparent);
    border-left: 4px solid var(--info);
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: all var(--transition-normal);
}

.reminder-card:hover {
    box-shadow: var(--shadow);
    transform: translateX(4px);
}

.reminder-icon {
    width: 40px;
    height: 40px;
    background: var(--info-soft);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.reminder-content {
    flex: 1;
}

.reminder-title {
    font-weight: var(--font-weight-semibold);
    color: var(--text);
    margin-bottom: 4px;
}

.reminder-message {
    font-size: 0.9rem;
    color: var(--text-soft);
    line-height: 1.5;
}

.reminder-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
}


/* ─────────────────────────────────────────────────────────────────────────────
   STATUS BADGES
   ───────────────────────────────────────────────────────────────────────────── */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.status-badge.status-paid {
    background: var(--success-soft);
    color: var(--success);
}

.status-badge.status-pending {
    background: var(--warning-soft);
    color: var(--warning);
}

.status-badge.status-overdue {
    background: var(--danger-soft);
    color: var(--danger);
}

.status-badge.status-partial {
    background: var(--info-soft);
    color: var(--info);
}

/* Status Dot */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.dot-paid { background: var(--success); }
.status-dot.dot-pending { background: var(--warning); }
.status-dot.dot-overdue { 
    background: var(--danger); 
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}


/* ─────────────────────────────────────────────────────────────────────────────
   SETTINGS CARD STYLES
   ───────────────────────────────────────────────────────────────────────────── */

.settings-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 20px;
    transition: all var(--transition-normal);
}

.settings-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}


/* ─────────────────────────────────────────────────────────────────────────────
   SEARCH BAR
   ───────────────────────────────────────────────────────────────────────────── */

.search-bar input {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border);
    background: var(--surface-soft);
    font-size: 1rem;
    color: var(--text);
    transition: all var(--transition-normal);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.search-bar input::placeholder {
    color: var(--text-muted);
}


/* ─────────────────────────────────────────────────────────────────────────────
   MODAL STYLES
   ───────────────────────────────────────────────────────────────────────────── */

.modal {
    border: none;
    border-radius: var(--radius-xl);
    padding: 0;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    max-width: 440px;
    width: calc(100vw - 40px);
}

.modal::backdrop {
    background: color-mix(in srgb, var(--bg) 85%, black 30%);
    backdrop-filter: blur(4px);
}

.modal-form {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-form h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: var(--font-weight-bold);
    color: var(--text);
}


/* ─────────────────────────────────────────────────────────────────────────────
   THEME-SPECIFIC CARD STYLES
   ───────────────────────────────────────────────────────────────────────────── */

/* Cozy Ledger - Extra soft shadows, warmer tones */
html[data-theme="cozy-ledger"] .customer-card,
html[data-theme="cozy-ledger"] .invoice-card {
    box-shadow: 
        0 4px 20px rgba(74, 63, 53, 0.06),
        0 1px 3px rgba(74, 63, 53, 0.04);
}

html[data-theme="cozy-ledger"] .customer-card:hover,
html[data-theme="cozy-ledger"] .invoice-card:hover {
    box-shadow: 
        0 12px 36px rgba(74, 63, 53, 0.1),
        0 2px 6px rgba(74, 63, 53, 0.06);
}

/* Night Shop - Subtle glow effects */
html[data-theme="night-shop"] .customer-card,
html[data-theme="night-shop"] .invoice-card {
    background: linear-gradient(145deg, var(--surface), var(--surface-soft));
    border-color: var(--border);
}

html[data-theme="night-shop"] .customer-card:hover,
html[data-theme="night-shop"] .invoice-card:hover {
    border-color: var(--primary);
    box-shadow: 
        var(--shadow-lg),
        0 0 20px rgba(16, 185, 129, 0.1);
}

/* Street Ledger - Bold borders on hover */
html[data-theme="street-ledger"] .customer-card:hover,
html[data-theme="street-ledger"] .invoice-card:hover {
    border-color: var(--primary);
    border-width: 2px;
}

/* Classic Paper - Subtle texture effect */
html[data-theme="classic-paper"] .customer-card,
html[data-theme="classic-paper"] .invoice-card {
    background: 
        linear-gradient(var(--surface), var(--surface)),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 27px,
            var(--border-subtle) 27px,
            var(--border-subtle) 28px
        );
    background-blend-mode: normal;
}


/* ─────────────────────────────────────────────────────────────────────────────
   THEME PREVIEW TILES (Settings)
   ───────────────────────────────────────────────────────────────────────────── */

.theme-appearance-tile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 2px solid var(--border);
    background: var(--surface-soft);
    border-radius: var(--radius-lg);
    padding: 14px;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.theme-appearance-tile:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.theme-appearance-tile[aria-checked="true"] {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
    background: var(--primary-soft);
}

.theme-appearance-tile[aria-checked="true"]::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    background: var(--primary);
    color: var(--text-on-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

.theme-preview {
    width: 100%;
    height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.theme-preview-header {
    height: 18px;
}

.theme-preview-content {
    height: 52px;
    padding: 6px;
    display: flex;
    gap: 5px;
}

.theme-preview-card {
    flex: 1;
    border-radius: 4px;
}

.theme-appearance-name {
    font-weight: var(--font-weight-semibold);
    color: var(--text);
    text-align: center;
    font-size: 0.9rem;
}

/* Theme Preview Colors */
.theme-preview-cozy-ledger .theme-preview-header { background: #8b7355; }
.theme-preview-cozy-ledger .theme-preview-content { background: #faf7f4; }
.theme-preview-cozy-ledger .theme-preview-card { background: #ffffff; border: 1px solid #e8e0d8; }

.theme-preview-clean-business .theme-preview-header { background: #2563eb; }
.theme-preview-clean-business .theme-preview-content { background: #ffffff; }
.theme-preview-clean-business .theme-preview-card { background: #f8f9fa; border: 1px solid #e9ecef; }

.theme-preview-night-shop .theme-preview-header { background: #10b981; }
.theme-preview-night-shop .theme-preview-content { background: #0c0f14; }
.theme-preview-night-shop .theme-preview-card { background: #151921; border: 1px solid #2a3341; }

.theme-preview-zen-finance .theme-preview-header { background: #5b8c85; }
.theme-preview-zen-finance .theme-preview-content { background: #f8fafb; }
.theme-preview-zen-finance .theme-preview-card { background: #ffffff; border: 1px solid #e2e8ec; }

.theme-preview-street-ledger .theme-preview-header { background: #e63946; }
.theme-preview-street-ledger .theme-preview-content { background: #f7f7f8; }
.theme-preview-street-ledger .theme-preview-card { background: #ffffff; border: 1px solid #e0e0e4; }

.theme-preview-classic-paper .theme-preview-header { background: #2c5530; }
.theme-preview-classic-paper .theme-preview-content { background: #fdfbf7; }
.theme-preview-classic-paper .theme-preview-card { background: #fffef9; border: 1px solid #e8e4da; }


/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE ADJUSTMENTS
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
    .dock-inner {
        padding: 8px 10px;
        gap: 4px;
    }
    
    .dock-item {
        padding: 8px 10px;
        min-width: 50px;
    }
    
    .dock-item .dock-icon {
        width: 20px;
        height: 20px;
    }
    
    .dock-item .dock-helper {
        font-size: 0.6rem;
    }
    
    .customer-card,
    .invoice-card {
        padding: 16px;
    }
    
    .amount-large,
    .customer-balance {
        font-size: calc(var(--amount-large) * 0.85);
    }
    
    .theme-appearance-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}


/* ─────────────────────────────────────────────────────────────────────────────
   ACCESSIBILITY FOCUS STATES
   ───────────────────────────────────────────────────────────────────────────── */

*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.dock-item:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}


/* ─────────────────────────────────────────────────────────────────────────────
   PRINT STYLES
   ───────────────────────────────────────────────────────────────────────────── */

@media print {
    .dock {
        display: none !important;
    }
    
    .customer-card,
    .invoice-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }
    
    .primary-btn,
    .secondary-btn {
        display: none !important;
    }
}


/* ─────────────────────────────────────────────────────────────────────────────
   THEME DESCRIPTIONS
   ───────────────────────────────────────────────────────────────────────────── */

.theme-descriptions {
    margin-top: 16px;
    padding: 16px;
    background: var(--surface-soft);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
    transition: all var(--transition-normal);
}

.theme-description-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-soft);
}

/* Theme Grid Responsive */
.theme-appearance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 16px;
}

@media (max-width: 520px) {
    .theme-appearance-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}


/* ─────────────────────────────────────────────────────────────────────────────
   ENHANCED DOCK HELPER TEXT STYLES
   ───────────────────────────────────────────────────────────────────────────── */

.dock-helper {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    opacity: 0.75;
    white-space: nowrap;
    transition: opacity var(--transition-fast), color var(--transition-fast);
    text-transform: uppercase;
}

.dock-item:hover .dock-helper {
    opacity: 1;
}

.dock-item.active .dock-helper {
    opacity: 1;
    color: inherit;
}

/* Night Shop dock helper visibility */
html[data-theme="night-shop"] .dock-helper {
    opacity: 0.6;
}

html[data-theme="night-shop"] .dock-item:hover .dock-helper,
html[data-theme="night-shop"] .dock-item.active .dock-helper {
    opacity: 1;
}


/* ─────────────────────────────────────────────────────────────────────────────
   BILLING SCREEN ENHANCEMENTS
   ───────────────────────────────────────────────────────────────────────────── */

.bill-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all var(--transition-normal);
    position: relative;
}

.bill-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.bill-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.bill-customer-name {
    font-size: 1.1rem;
    font-weight: var(--font-weight-bold);
    color: var(--text);
}

.bill-invoice-number {
    font-size: 0.85rem;
    font-weight: var(--font-weight-medium);
    color: var(--primary);
    font-family: 'SF Mono', 'Monaco', monospace;
}

.bill-amount {
    font-size: var(--amount-large);
    font-weight: var(--font-weight-bold);
    color: var(--text);
}

.bill-due-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

.bill-due-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.bill-due-date {
    font-size: 0.9rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text);
}

.bill-due-date.overdue {
    color: var(--danger);
}

/* Bill Status Indicators */
.bill-card[data-status="paid"] {
    border-left: 4px solid var(--success);
    background: var(--debt-paid-bg);
}

.bill-card[data-status="pending"] {
    border-left: 4px solid var(--warning);
    background: var(--debt-pending-bg);
}

.bill-card[data-status="overdue"] {
    border-left: 4px solid var(--danger);
    background: var(--debt-overdue-bg);
}


/* ─────────────────────────────────────────────────────────────────────────────
   REMINDER SCREEN ENHANCEMENTS
   ───────────────────────────────────────────────────────────────────────────── */

.reminder-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reminder-card {
    background: var(--debt-reminder-bg);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid color-mix(in srgb, var(--info) 25%, transparent);
    border-left: 4px solid var(--info);
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: all var(--transition-normal);
}

.reminder-card:hover {
    box-shadow: var(--shadow);
    transform: translateX(4px);
    border-left-width: 6px;
}

.reminder-card-urgent {
    background: var(--debt-overdue-bg);
    border-color: color-mix(in srgb, var(--danger) 25%, transparent);
    border-left-color: var(--danger);
}

.reminder-card-urgent:hover {
    background: color-mix(in srgb, var(--danger) 8%, var(--surface));
}

.reminder-avatar {
    width: 44px;
    height: 44px;
    background: var(--info-soft);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.reminder-card-urgent .reminder-avatar {
    background: var(--danger-soft);
}

.reminder-body {
    flex: 1;
    min-width: 0;
}

.reminder-customer {
    font-weight: var(--font-weight-semibold);
    color: var(--text);
    margin-bottom: 4px;
}

.reminder-amount {
    font-size: var(--amount-medium);
    font-weight: var(--font-weight-bold);
    color: var(--info);
    margin-bottom: 6px;
}

.reminder-card-urgent .reminder-amount {
    color: var(--danger);
}

.reminder-due {
    font-size: 0.85rem;
    color: var(--text-soft);
}

.reminder-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}


/* ─────────────────────────────────────────────────────────────────────────────
   LOADING & EMPTY STATES
   ───────────────────────────────────────────────────────────────────────────── */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-soft);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 1.2rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text);
    margin-bottom: 8px;
}

.empty-state-message {
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 280px;
}


/* ─────────────────────────────────────────────────────────────────────────────
   SKELETON LOADING
   ───────────────────────────────────────────────────────────────────────────── */

.skeleton {
    background: linear-gradient(
        90deg,
        var(--surface-soft) 25%,
        var(--border-subtle) 50%,
        var(--surface-soft) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    height: 160px;
    border-radius: var(--radius-lg);
}

.skeleton-line {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-line-short {
    width: 60%;
}


/* ─────────────────────────────────────────────────────────────────────────────
   TRUST RATIO INDICATOR
   ───────────────────────────────────────────────────────────────────────────── */

.trust-ratio {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-ratio-bar {
    flex: 1;
    height: 6px;
    background: var(--surface-soft);
    border-radius: 999px;
    overflow: hidden;
}

.trust-ratio-fill {
    height: 100%;
    border-radius: 999px;
    transition: width var(--transition-slow);
}

.trust-ratio-fill.excellent { background: var(--success); }
.trust-ratio-fill.good { background: #22c55e; }
.trust-ratio-fill.average { background: var(--warning); }
.trust-ratio-fill.poor { background: var(--danger); }

.trust-ratio-value {
    font-size: 0.9rem;
    font-weight: var(--font-weight-semibold);
    min-width: 42px;
    text-align: right;
}


/* ─────────────────────────────────────────────────────────────────────────────
   QUICK ACTION BUTTONS
   ───────────────────────────────────────────────────────────────────────────── */

.quick-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.quick-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-soft);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quick-action-btn:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary);
}

.quick-action-btn svg {
    width: 16px;
    height: 16px;
}


/* ─────────────────────────────────────────────────────────────────────────────
   THEME TRANSITION ANIMATION
   ───────────────────────────────────────────────────────────────────────────── */

html {
    transition: 
        background-color 0.3s ease,
        color 0.3s ease;
}

html[data-theme-transitioning] * {
    transition: 
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease !important;
}


/* ─────────────────────────────────────────────────────────────────────────────
   OVERDUE PULSE ANIMATION
   ───────────────────────────────────────────────────────────────────────────── */

.overdue-pulse {
    animation: overdue-pulse 2s ease-in-out infinite;
}

@keyframes overdue-pulse {
    0%, 100% {
        box-shadow: var(--shadow);
    }
    50% {
        box-shadow: 
            var(--shadow),
            0 0 0 4px var(--danger-soft);
    }
}

/* Street Ledger - More dramatic overdue pulse */
html[data-theme="street-ledger"] .overdue-pulse {
    animation: overdue-pulse-street 1.5s ease-in-out infinite;
}

@keyframes overdue-pulse-street {
    0%, 100% {
        box-shadow: var(--shadow);
        transform: scale(1);
    }
    50% {
        box-shadow: 
            var(--shadow-lg),
            0 0 0 6px var(--danger-soft);
        transform: scale(1.01);
    }
}
