/* ==========================================================================
   LPFF Portal - Legal Practitioners Fidelity Fund Style System
   ========================================================================== */

/* BEGIN_PROMPT_706_TOKENS */
:root {
  /* Legacy LPFF & Dynamic System Variables (Exact Light Defaults) */
  --lpff-green: #1b7a48;
  --lpff-blue: #103c68;
  --lpff-teal: #004e70;
  --lpff-teal-hover: #003d58;
  --lpff-link-blue: #0062b1;
  --lpff-gray-bg: #f5f5f5;
  --lpff-text-dark: #333333;
  --lpff-text-muted: #555555;
  --lpff-border-gray: #d4d4d4;
  --lpff-border-focus: #004e70;
  --lpff-error-red: #d32f2f;
  --lpff-success-green: #2e7d32;

  --sys-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sys-header-bg: #e5edf3;
  --sys-header-font-color: #0f172a;
  --sys-text-color: #333333;
  --sys-btn-bg: #004d61;
  --sys-btn-text-color: #ffffff;
  --font-family: var(--sys-font-family);

  /* Semantic Theme Tokens — Light Mode (100% Pixel-Identical Original Palette) */
  --surface-card: #ffffff;
  --surface-dark-navy: #0f172a;
  --surface-dark-slate: #1e293b;
  --surface-elevated: #e2e8f0;
  --surface-footer: #f7f7f7;
  --surface-gray-muted: #f3f4f6;
  --surface-header: #e5edf3;
  --surface-input: #ffffff;
  --surface-logo-backing: transparent;
  --surface-modal: #f8fafc;
  --surface-muted: #f1f5f9;
  --surface-neutral-f5f5f4: #f5f5f4;
  --surface-neutral-faint: #fafafa;
  --surface-neutral-ffffff: #ffffff;
  --surface-neutral-subtle: #f5f5f5;
  --surface-page: #ffffff;
  --surface-panel-muted: #eef2f6;
  --surface-sidebar: #f1f3f6;
  --surface-sidebar-active: #bdbdbd;
  --surface-sidebar-hover: #d8dcde;
  --surface-slate-light: #94a3b8;
  --surface-slate-mid: #475569;
  --surface-slate-muted: #64748b;
  --surface-strong: #cbd5e1;
  --surface-submenu: #e9ecf0;
  --surface-submenu-hover: #dce1e7;
  --surface-subtle: #f8fafc;
  --surface-track: #edf2f7;
  --text-body: #333333;
  --text-faint: #cbd5e1;
  --text-gray-muted: #6b7280;
  --text-gray-primary: #111827;
  --text-gray-secondary: #374151;
  --text-icon-muted: #8c9dae;
  --text-ink: #222222;
  --text-input-placeholder: #8c8c8c;
  --text-inverse: #ffffff;
  --text-muted: #64748b;
  --text-muted-strong: #475569;
  --text-nav: #3b4252;
  --text-neutral-44403c: #44403c;
  --text-neutral-444444: #444444;
  --text-neutral-78716c: #78716c;
  --text-neutral-888888: #888888;
  --text-neutral-dim: #666666;
  --text-neutral-muted: #555555;
  --text-neutral-secondary: #595959;
  --text-on-dark: #f8fafc;
  --text-on-dark-muted: #e2e8f0;
  --text-placeholder: #8fa0b0;
  --text-primary: #0f172a;
  --text-pure: #000000;
  --text-secondary: #334155;
  --text-separator: #a0aec0;
  --text-strong: #1e293b;
  --text-subtle: #94a3b8;
  --border-card: #dbe2ea;
  --border-control: #cbd6e2;
  --border-dark-slate: #334155;
  --border-default: #cbd5e1;
  --border-emphasis: #64748b;
  --border-faint: #f1f5f9;
  --border-gray: #d1d5db;
  --border-header: #d2dde6;
  --border-inverse: #ffffff;
  --border-neutral: #d9d9d9;
  --border-neutral-666666: #666666;
  --border-neutral-d6d3d1: #d6d3d1;
  --border-neutral-subtle: #e5e5e5;
  --border-search: #cbd7e2;
  --border-sidebar: #e1e6eb;
  --border-strong: #94a3b8;
  --border-subtle: #e2e8f0;
  --brand-cerulean-bg: #0b4f6c;
  --brand-cerulean-text: #0b4f6c;
  --brand-cyan-teal-bg: #0d9488;
  --brand-deep-teal-bg: #004e70;
  --brand-deep-teal-border: #004e70;
  --brand-deep-teal-text: #004e70;
  --brand-navy-bg: #0f2942;
  --brand-navy-text: #0f2942;
  --brand-ocean-bg: #005482;
  --brand-ocean-border: #005482;
  --brand-royal-navy-text: #103c68;
  --brand-slate-teal-text: #154e70;
  --brand-teal-accent-bg: #0f766e;
  --brand-teal-bg: #004d61;
  --brand-teal-border: #004d61;
  --brand-teal-dark-bg: #004052;
  --brand-teal-hover-bg: #003847;
  --brand-teal-text: #004d61;
  --brand-ocean-text: #005482;
  --link-royal: #2563eb;
  --link-sky: #0284c7;
  --border-success-047857: #047857;
  --border-success-059669: #059669;
  --border-success-15803d: #15803d;
  --border-success-22c55e: #22c55e;
  --border-success-6ee7b7: #6ee7b7;
  --border-success-84e1bc: #84e1bc;
  --brand-cyan-teal-text: #0d9488;
  --brand-teal-accent-text: #0f766e;
  --status-success-aqua-bg: #f0fdfa;
  --status-success-bg: #dcfce7;
  --status-success-border: #bbf7d0;
  --status-success-deep-bg: #15803d;
  --status-success-deep-emerald-text: #047857;
  --status-success-emerald-bg: #ecfdf5;
  --status-success-emerald-border: #a7f3d0;
  --status-success-emerald-solid-bg: #10b981;
  --status-success-emerald-text: #10b981;
  --status-success-emerald-vivid-border: #10b981;
  --status-success-forest-text: #065f46;
  --status-success-jade-solid-bg: #059669;
  --status-success-jade-text: #059669;
  --status-success-mint-bg: #d1fae5;
  --status-success-pine-text: #064e3b;
  --status-success-solid-bg: #16a34a;
  --status-success-strong-border: #86efac;
  --status-success-strong-text: #15803d;
  --status-success-subtle-bg: #f0fdf4;
  --status-success-teal-bg: #ccfbf1;
  --status-success-teal-border: #99f6e4;
  --status-success-text: #166534;
  --status-success-vivid-border: #16a34a;
  --status-success-vivid-text: #16a34a;
  --surface-success-047857: #047857;
  --surface-success-064e3b: #064e3b;
  --surface-success-10b981: #10b981;
  --surface-success-166534: #166534;
  --surface-success-22c55e: #22c55e;
  --surface-success-def7ec: #def7ec;
  --text-success-03543f: #03543f;
  --text-success-14532d: #14532d;
  --text-success-4ade80: #4ade80;
  --text-success-ecfdf5: #ecfdf5;
  --border-warning-92400e: #92400e;
  --border-warning-e0a63a: #e0a63a;
  --border-warning-eab308: #eab308;
  --border-warning-fde047: #fde047;
  --border-warning-fed7aa: #fed7aa;
  --status-warning-amber-border: #d97706;
  --status-warning-amber-solid-bg: #d97706;
  --status-warning-bg: #fef3c7;
  --status-warning-border: #fde68a;
  --status-warning-bright-text: #f59e0b;
  --status-warning-brown-text: #78350f;
  --status-warning-burnt-text: #9a3412;
  --status-warning-deep-bg: #b45309;
  --status-warning-faint-bg: #fefce8;
  --status-warning-gold-text: #a16207;
  --status-warning-olive-text: #854d0e;
  --status-warning-on-dark-text: #fef08a;
  --status-warning-orange-bg: #ffedd5;
  --status-warning-orange-border: #fdba74;
  --status-warning-orange-subtle-bg: #fff7ed;
  --status-warning-orange-text: #ea580c;
  --status-warning-rust-text: #c2410c;
  --status-warning-solid-bg: #f59e0b;
  --status-warning-strong-border: #fcd34d;
  --status-warning-strong-text: #b45309;
  --status-warning-subtle-bg: #fffbeb;
  --status-warning-text: #92400e;
  --status-warning-vivid-border: #f59e0b;
  --status-warning-vivid-text: #d97706;
  --status-warning-yellow-bg: #fef9c3;
  --surface-warning-92400e: #92400e;
  --surface-warning-fde68a: #fde68a;
  --surface-warning-fff6e5: #fff6e5;
  --text-warning-8a5a00: #8a5a00;
  --text-warning-ca8a04: #ca8a04;
  --border-danger-b91c1c: #b91c1c;
  --border-danger-e11d48: #e11d48;
  --border-danger-f87171: #f87171;
  --border-danger-f8b4b4: #f8b4b4;
  --border-danger-feb2b2: #feb2b2;
  --border-danger-fee2e2: #fee2e2;
  --status-danger-bg: #fee2e2;
  --status-danger-border: #fecaca;
  --status-danger-bright-solid-bg: #ef4444;
  --status-danger-bright-text: #ef4444;
  --status-danger-crimson-bg: #991b1b;
  --status-danger-crimson-border: #dc2626;
  --status-danger-deep-bg: #b91c1c;
  --status-danger-maroon-text: #7f1d1d;
  --status-danger-rose-bg: #fff1f2;
  --status-danger-soft-text: #f87171;
  --status-danger-solid-bg: #dc2626;
  --status-danger-strong-border: #fca5a5;
  --status-danger-strong-text: #b91c1c;
  --status-danger-subtle-bg: #fef2f2;
  --status-danger-text: #991b1b;
  --status-danger-vivid-border: #ef4444;
  --status-danger-vivid-text: #dc2626;
  --surface-danger-7f1d1d: #7f1d1d;
  --surface-danger-c2410c: #c2410c;
  --surface-danger-fde8e8: #fde8e8;
  --surface-danger-fff9f9: #fff9f9;
  --surface-danger-fffafa: #fffafa;
  --text-danger-7c2d12: #7c2d12;
  --text-danger-9b1c1c: #9b1c1c;
  --text-danger-c53030: #c53030;
  --text-danger-e11d48: #e11d48;
  --text-danger-fca5a5: #fca5a5;
  --text-danger-fecaca: #fecaca;
  --text-danger-fee2e2: #fee2e2;
  --text-danger-fef2f2: #fef2f2;
  --border-info-0f2942: #0f2942;
  --border-info-1d4ed8: #1d4ed8;
  --border-info-3730a3: #3730a3;
  --border-info-3b82f6: #3b82f6;
  --border-info-4338ca: #4338ca;
  --border-info-6366f1: #6366f1;
  --border-info-a4cafe: #a4cafe;
  --border-info-c7d2de: #c7d2de;
  --border-info-cbd5e0: #cbd5e0;
  --border-info-d0d7de: #d0d7de;
  --border-info-d0dbe5: #d0dbe5;
  --border-info-e6ecf1: #e6ecf1;
  --border-info-e8edf2: #e8edf2;
  --border-info-edf2f7: #edf2f7;
  --border-info-eef2f6: #eef2f6;
  --border-info-f8fafc: #f8fafc;
  --brand-sky-border: #0284c7;
  --status-info-azure-text: #3b82f6;
  --status-info-bg: #e0f2fe;
  --status-info-blue-bg: #dbeafe;
  --status-info-blue-border: #bfdbfe;
  --status-info-blue-subtle-bg: #eff6ff;
  --status-info-blue-text: #1d4ed8;
  --status-info-border: #bae6fd;
  --status-info-bright-border: #7dd3fc;
  --status-info-bright-text: #38bdf8;
  --status-info-deep-bg: #0369a1;
  --status-info-deep-text: #0c4a6e;
  --status-info-indigo-text: #1e40af;
  --status-info-royal-border: #93c5fd;
  --status-info-solid-bg: #0284c7;
  --status-info-strong-border: #0369a1;
  --status-info-strong-text: #075985;
  --status-info-subtle-bg: #f0f9ff;
  --status-info-text: #0369a1;
  --surface-info-8291a0: #8291a0;
  --surface-info-cbd5e1: #cbd5e1;
  --surface-info-dce3eb: #dce3eb;
  --surface-info-dde2e8: #dde2e8;
  --surface-info-e1effe: #e1effe;
  --surface-info-e4e9ee: #e4e9ee;
  --surface-info-eef2ff: #eef2ff;
  --surface-info-f1f3f6: #f1f3f6;
  --surface-info-f7f9fb: #f7f9fb;
  --surface-info-fcfdfe: #fcfdfe;
  --text-info-1e3a8a: #1e3a8a;
  --text-info-1e429f: #1e429f;
  --text-info-2b3b4c: #2b3b4c;
  --text-info-2b6cb0: #2b6cb0;
  --text-info-3730a3: #3730a3;
  --text-info-4a5568: #4a5568;
  --text-info-4b5563: #4b5563;
  --text-info-4f46e5: #4f46e5;
  --text-info-55687a: #55687a;
  --text-info-5b6e82: #5b6e82;
  --text-info-6d7f92: #6d7f92;
  --text-info-93c5fd: #93c5fd;
  --text-info-9ca3af: #9ca3af;
  --border-purple-5b21b6: #5b21b6;
  --border-purple-8b5cf6: #8b5cf6;
  --border-purple-a855f7: #a855f7;
  --border-purple-f5d0fe: #f5d0fe;
  --status-purple-bg: #f3e8ff;
  --status-purple-border: #ddd6fe;
  --status-purple-bright-text: #8b5cf6;
  --status-purple-deep-bg: #6b21a8;
  --status-purple-deep-violet-text: #6d28d9;
  --status-purple-indigo-bg: #e0e7ff;
  --status-purple-indigo-border: #c7d2fe;
  --status-purple-indigo-text: #6366f1;
  --status-purple-plum-text: #5b21b6;
  --status-purple-solid-bg: #8b5cf6;
  --status-purple-strong-text: #7e22ce;
  --status-purple-subtle-bg: #f5f3ff;
  --status-purple-text: #6b21a8;
  --status-purple-violet-bg: #ede9fe;
  --status-purple-violet-text: #7c3aed;
  --surface-purple-5b21b6: #5b21b6;
  --surface-purple-fae8ff: #fae8ff;
  --surface-purple-fdf4ff: #fdf4ff;
  --text-purple-4c1d95: #4c1d95;
  --text-purple-701a75: #701a75;
  --text-purple-86198f: #86198f;
  --text-purple-9333ea: #9333ea;
  --text-purple-c026d3: #c026d3;
  --border-amber-fef08a: #fef08a;
  --surface-rose-fdf2f8: #fdf2f8;
  --text-rose-9f1239: #9f1239;
  --text-rose-ec4899: #ec4899;
  --border-teal-002d3a: #002d3a;
  --border-teal-003644: #003644;
  --border-teal-003a49: #003a49;
  --border-teal-003b4a: #003b4a;
  --border-teal-005073: #005073;
  --border-teal-005580: #005580;
  --border-teal-005a70: #005a70;
  --border-teal-06b6d4: #06b6d4;
  --border-teal-0b4f6c: #0b4f6c;
  --border-teal-0d9488: #0d9488;
  --border-teal-0ea5e9: #0ea5e9;
  --border-teal-0f766e: #0f766e;
  --border-teal-38bdf8: #38bdf8;
  --border-teal-9fb4c2: #9fb4c2;
  --surface-teal-003342: #003342;
  --surface-teal-003344: #003344;
  --surface-teal-003644: #003644;
  --surface-teal-003b4a: #003b4a;
  --surface-teal-004e70: #004e70;
  --surface-teal-005073: #005073;
  --surface-teal-0284c7: #0284c7;
  --surface-teal-0891b2: #0891b2;
  --surface-teal-38bdf8: #38bdf8;
  --surface-teal-9fb4c2: #9fb4c2;
  --surface-teal-e6f0f5: #e6f0f5;
  --surface-teal-e6f4f8: #e6f4f8;
  --surface-teal-ebf8ff: #ebf8ff;
  --surface-teal-ecfeff: #ecfeff;
  --surface-teal-eef3f6: #eef3f6;
  --surface-teal-eef6fb: #eef6fb;
  --surface-teal-f0f7fa: #f0f7fa;
  --surface-teal-f7fafc: #f7fafc;
  --surface-teal-fafcfd: #fafcfd;
  --surface-teal-fcfdfd: #fcfdfd;
  --text-teal-00334e: #00334e;
  --text-teal-003b54: #003b54;
  --text-teal-006699: #006699;
  --text-teal-06b6d4: #06b6d4;
  --text-teal-082f49: #082f49;
  --text-teal-115e59: #115e59;
  --text-teal-155e75: #155e75;
  --text-teal-99f6e4: #99f6e4;
  --text-teal-e0f2fe: #e0f2fe;
  --table-header-bg: #004d61;
  --table-hover-bg: #f0f9ff;
  --table-selected-bg: #e0f2fe;
  --table-stripe-bg: #f8fafc;
  --shadow-2xl: rgba(0,0,0,0.3);
  --shadow-2xs: rgba(0,0,0,0.03);
  --shadow-brand-md: rgba(0,77,97,0.25);
  --shadow-brand-sm: rgba(0,77,97,0.15);
  --shadow-card-lg: rgba(0,0,0,0.12);
  --shadow-elevated: rgba(0,0,0,0.15);
  --shadow-lg: rgba(0,0,0,0.1);
  --shadow-md: rgba(0,0,0,0.08);
  --shadow-modal: rgba(0,0,0,0.2);
  --shadow-rgba-0-0-0-0p02: rgba(0,0,0,0.02);
  --shadow-rgba-0-0-0-0p14: rgba(0,0,0,0.14);
  --shadow-rgba-0-0-0-0p22: rgba(0,0,0,0.22);
  --shadow-rgba-0-0-0-0p28: rgba(0,0,0,0.28);
  --shadow-rgba-0-0-0-0p35: rgba(0,0,0,0.35);
  --shadow-rgba-0-0-0-0p4: rgba(0,0,0,0.4);
  --shadow-rgba-0-0-0-0p45: rgba(0,0,0,0.45);
  --shadow-rgba-0-0-0-0p6: rgba(0,0,0,0.6);
  --shadow-rgba-0-77-97-0p12: rgba(0,77,97,0.12);
  --shadow-rgba-0-77-97-0p18: rgba(0,77,97,0.18);
  --shadow-rgba-0-77-97-0p2: rgba(0,77,97,0.2);
  --shadow-rgba-0-77-97-0p22: rgba(0,77,97,0.22);
  --shadow-rgba-0-78-112-0p1: rgba(0,78,112,0.1);
  --shadow-rgba-0-78-112-0p15: rgba(0,78,112,0.15);
  --shadow-rgba-0-84-130-0p15: rgba(0,84,130,0.15);
  --shadow-rgba-0-84-130-0p18: rgba(0,84,130,0.18);
  --shadow-rgba-11-79-108-0p16: rgba(11,79,108,0.16);
  --shadow-rgba-15-23-42-0p04: rgba(15,23,42,0.04);
  --shadow-rgba-15-23-42-0p05: rgba(15,23,42,0.05);
  --shadow-rgba-15-23-42-0p06: rgba(15,23,42,0.06);
  --shadow-rgba-15-23-42-0p08: rgba(15,23,42,0.08);
  --shadow-rgba-15-23-42-0p1: rgba(15,23,42,0.1);
  --shadow-rgba-15-23-42-0p12: rgba(15,23,42,0.12);
  --shadow-rgba-15-23-42-0p18: rgba(15,23,42,0.18);
  --shadow-rgba-15-23-42-0p22: rgba(15,23,42,0.22);
  --shadow-rgba-15-23-42-0p25: rgba(15,23,42,0.25);
  --shadow-rgba-15-23-42-0p32: rgba(15,23,42,0.32);
  --shadow-rgba-15-41-66-0p06: rgba(15,41,66,0.06);
  --shadow-rgba-15-41-66-0p14: rgba(15,41,66,0.14);
  --shadow-rgba-15-41-66-0p18: rgba(15,41,66,0.18);
  --shadow-rgba-16-185-129-0p2: rgba(16,185,129,0.2);
  --shadow-rgba-16-185-129-0p6: rgba(16,185,129,0.6);
  --shadow-rgba-2-132-199-0p08: rgba(2,132,199,0.08);
  --shadow-rgba-2-132-199-0p12: rgba(2,132,199,0.12);
  --shadow-rgba-2-132-199-0p2: rgba(2,132,199,0.2);
  --shadow-rgba-2-132-199-0p3: rgba(2,132,199,0.3);
  --shadow-rgba-220-38-38-0p18: rgba(220,38,38,0.18);
  --shadow-rgba-56-189-248-0p25: rgba(56,189,248,0.25);
  --shadow-rgba-56-189-248-0p28: rgba(56,189,248,0.28);
  --shadow-rgba-56-189-248-0p32: rgba(56,189,248,0.32);
  --shadow-sm: rgba(0,0,0,0.05);
  --shadow-soft: rgba(0,0,0,0.06);
  --shadow-xl: rgba(0,0,0,0.25);
  --shadow-xs: rgba(0,0,0,0.04);
  --border-rgba-0-77-97-0p25: rgba(0,77,97,0.25);
  --border-rgba-226-232-240-0p8: rgba(226,232,240,0.8);
  --border-rgba-255-255-255-0p12: rgba(255,255,255,0.12);
  --border-rgba-255-255-255-0p14: rgba(255,255,255,0.14);
  --border-rgba-255-255-255-0p15: rgba(255,255,255,0.15);
  --border-rgba-255-255-255-0p25: rgba(255,255,255,0.25);
  --border-rgba-255-255-255-0p28: rgba(255,255,255,0.28);
  --border-rgba-255-255-255-0p3: rgba(255,255,255,0.3);
  --border-rgba-255-255-255-0p35: rgba(255,255,255,0.35);
  --border-rgba-255-255-255-0p4: rgba(255,255,255,0.4);
  --border-rgba-255-255-255-0p45: rgba(255,255,255,0.45);
  --border-rgba-255-255-255-0p55: rgba(255,255,255,0.55);
  --border-rgba-255-255-255-0p7: rgba(255,255,255,0.7);
  --border-rgba-255-255-255-0p8: rgba(255,255,255,0.8);
  --border-rgba-255-255-255-0p95: rgba(255,255,255,0.95);
  --overlay-glass-medium: rgba(255,255,255,0.15);
  --overlay-glass-strong: rgba(255,255,255,0.25);
  --overlay-glass-subtle: rgba(255,255,255,0.12);
  --overlay-loading-bg: rgba(255,255,255,0.75);
  --overlay-rgba-0-0-0-0p04: rgba(0,0,0,0.04);
  --overlay-rgba-0-0-0-0p15: rgba(0,0,0,0.15);
  --overlay-rgba-0-0-0-0p45: rgba(0,0,0,0.45);
  --overlay-rgba-0-77-97-0p65: rgba(0,77,97,0.65);
  --overlay-rgba-0-78-112-0p1: rgba(0,78,112,0.1);
  --overlay-rgba-127-29-29-0p55: rgba(127,29,29,0.55);
  --overlay-rgba-15-23-42-0p08: rgba(15,23,42,0.08);
  --overlay-rgba-15-23-42-0p25: rgba(15,23,42,0.25);
  --overlay-rgba-15-23-42-0p45: rgba(15,23,42,0.45);
  --overlay-rgba-15-23-42-0p48: rgba(15,23,42,0.48);
  --overlay-rgba-15-23-42-0p52: rgba(15,23,42,0.52);
  --overlay-rgba-15-23-42-0p55: rgba(15,23,42,0.55);
  --overlay-rgba-15-23-42-0p58: rgba(15,23,42,0.58);
  --overlay-rgba-15-23-42-0p7: rgba(15,23,42,0.7);
  --overlay-rgba-15-23-42-0p88: rgba(15,23,42,0.88);
  --overlay-rgba-2-132-199-0p08: rgba(2,132,199,0.08);
  --overlay-rgba-2-132-199-0p1: rgba(2,132,199,0.1);
  --overlay-rgba-2-132-199-0p12: rgba(2,132,199,0.12);
  --overlay-rgba-220-227-235-0p85: rgba(220,227,235,0.85);
  --overlay-rgba-224-166-58-0p22: rgba(224,166,58,0.22);
  --overlay-rgba-255-255-255-0p14: rgba(255,255,255,0.14);
  --overlay-rgba-255-255-255-0p16: rgba(255,255,255,0.16);
  --overlay-rgba-255-255-255-0p18: rgba(255,255,255,0.18);
  --overlay-rgba-255-255-255-0p2: rgba(255,255,255,0.2);
  --overlay-rgba-255-255-255-0p22: rgba(255,255,255,0.22);
  --overlay-rgba-255-255-255-0p24: rgba(255,255,255,0.24);
  --overlay-rgba-255-255-255-0p28: rgba(255,255,255,0.28);
  --overlay-rgba-255-255-255-0p32: rgba(255,255,255,0.32);
  --overlay-rgba-255-255-255-0p35: rgba(255,255,255,0.35);
  --overlay-rgba-255-255-255-0p55: rgba(255,255,255,0.55);
  --overlay-rgba-255-255-255-0p72: rgba(255,255,255,0.72);
  --overlay-rgba-255-255-255-0p98: rgba(255,255,255,0.98);
  --overlay-rgba-30-41-59-0p85: rgba(30,41,59,0.85);
  --overlay-scrim: rgba(15,23,42,0.65);
  --overlay-scrim-soft: rgba(15,23,42,0.6);
  --overlay-scrim-strong: rgba(15,23,42,0.75);
  --overlay-surface-frosted: rgba(255,255,255,0.85);
  --overlay-surface-opaque: rgba(255,255,255,0.92);
  --chart-area-emerald: rgba(16, 185, 129, 0.1);
  --chart-area-sky: rgba(2, 132, 199, 0.1);
  --chart-area-teal: rgba(0, 77, 97, 0.08);
  --chart-area-violet: rgba(139, 92, 246, 0.12);
  --chart-axis-label-color: #334155;
  --chart-grid-color: #f1f5f9;
  --chart-grid-strong-color: #e2e8f0;
  --chart-legend-color: #1e293b;
  --chart-legend-muted-color: #334155;
  --chart-series-1: #004d61;
  --chart-series-2: #0284c7;
  --chart-series-3: #10b981;
  --chart-series-4: #f59e0b;
  --chart-series-5: #ef4444;
  --chart-series-6: #8b5cf6;
  --chart-series-7: #d946ef;
  --chart-series-8: #06b6d4;
  --chart-series-9: #f87171;
  --chart-series-muted: #64748b;
  --chart-series-slate: #94a3b8;
  --chart-slice-border: #ffffff;
  --chart-tick-color: #64748b;
}

html[data-theme="dark"]:not(.lpff-force-light-capture) {
  color-scheme: dark;

  --lpff-green: #4ade80;
  --lpff-blue: #7dd3fc;
  --lpff-teal: #0e6084;
  --lpff-teal-hover: #0c5373;
  --lpff-link-blue: #60a5fa;
  --lpff-gray-bg: #1a2538;
  --lpff-text-dark: #e2e8f0;
  --lpff-text-muted: #9fb0c4;
  --lpff-border-gray: #3b4d66;
  --lpff-border-focus: #38bdf8;
  --lpff-error-red: #f87171;
  --lpff-success-green: #4ade80;

  --sys-header-bg: #131d31;
  --sys-header-font-color: #f1f5f9;
  --sys-text-color: #e2e8f0;
  --sys-btn-bg: #0c5a70;
  --sys-btn-text-color: #ffffff;

  /* Semantic Theme Tokens — Dark Mode Palette */
  --surface-card: #1e293b;
  --surface-dark-navy: #0b1220;
  --surface-dark-slate: #131e33;
  --surface-elevated: #2b3b52;
  --surface-footer: #131c2e;
  --surface-gray-muted: #223046;
  --surface-header: #131d31;
  --surface-input: #152033;
  --surface-logo-backing: rgba(248, 250, 252, 0.94);
  --surface-modal: #1e293b;
  --surface-muted: #243247;
  --surface-neutral-f5f5f4: #223046;
  --surface-neutral-faint: #172133;
  --surface-neutral-ffffff: #162032;
  --surface-neutral-subtle: #1a2538;
  --surface-page: #0f172a;
  --surface-panel-muted: #1d293d;
  --surface-sidebar: #111827;
  --surface-sidebar-active: #163a50;
  --surface-sidebar-hover: #1e293b;
  --surface-slate-light: #475569;
  --surface-slate-mid: #334155;
  --surface-slate-muted: #475569;
  --surface-strong: #364863;
  --surface-submenu: #182234;
  --surface-submenu-hover: #233148;
  --surface-subtle: #162032;
  --surface-track: #243247;
  --text-body: #e2e8f0;
  --text-faint: #94a3b8;
  --text-gray-muted: #9fb0c4;
  --text-gray-primary: #f1f5f9;
  --text-gray-secondary: #cbd5e1;
  --text-icon-muted: #8da0b8;
  --text-ink: #f1f5f9;
  --text-input-placeholder: #94a3b8;
  --text-inverse: #ffffff;
  --text-muted: #9fb0c4;
  --text-muted-strong: #b6c4d6;
  --text-nav: #cbd5e1;
  --text-neutral-44403c: #cfccc9;
  --text-neutral-444444: #cccccc;
  --text-neutral-78716c: #cfccc9;
  --text-neutral-888888: #adadad;
  --text-neutral-dim: #a3b3c6;
  --text-neutral-muted: #b6c4d6;
  --text-neutral-secondary: #b6c4d6;
  --text-on-dark: #f8fafc;
  --text-on-dark-muted: #e2e8f0;
  --text-placeholder: #8da0b8;
  --text-primary: #f1f5f9;
  --text-pure: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-separator: #8da0b8;
  --text-strong: #e2e8f0;
  --text-subtle: #8da0b8;
  --border-card: #32435b;
  --border-control: #3b4d66;
  --border-dark-slate: #475569;
  --border-default: #3b4d66;
  --border-emphasis: #64748b;
  --border-faint: #253348;
  --border-gray: #3b4d66;
  --border-header: #28374e;
  --border-inverse: #334155;
  --border-neutral: #3b4d66;
  --border-neutral-666666: #4b6281;
  --border-neutral-d6d3d1: #3a4c64;
  --border-neutral-subtle: #2d3d54;
  --border-search: #3b4d66;
  --border-sidebar: #263449;
  --border-strong: #526682;
  --border-subtle: #2d3d54;
  --brand-cerulean-bg: #0f5f82;
  --brand-cerulean-text: #38bdf8;
  --brand-cyan-teal-bg: #0f766e;
  --brand-deep-teal-bg: #0e6084;
  --brand-deep-teal-border: #0284c7;
  --brand-deep-teal-text: #38bdf8;
  --brand-navy-bg: #132f4c;
  --brand-navy-text: #e2e8f0;
  --brand-ocean-bg: #0e6699;
  --brand-ocean-border: #0284c7;
  --brand-royal-navy-text: #7dd3fc;
  --brand-slate-teal-text: #7dd3fc;
  --brand-teal-accent-bg: #0f766e;
  --brand-teal-bg: #0c5a70;
  --brand-teal-border: #1e7490;
  --brand-teal-dark-bg: #0a4f63;
  --brand-teal-hover-bg: #0e6a84;
  --brand-teal-text: #38bdf8;
  --brand-ocean-text: #60a5fa;
  --link-royal: #60a5fa;
  --link-sky: #38bdf8;
  --border-success-047857: #1d8768;
  --border-success-059669: #1d8766;
  --border-success-15803d: #1d8744;
  --border-success-22c55e: #28bf60;
  --border-success-6ee7b7: #1e8f62;
  --border-success-84e1bc: #228b61;
  --brand-cyan-teal-text: #2dd4bf;
  --brand-teal-accent-text: #2dd4bf;
  --status-success-aqua-bg: #0d2d2e;
  --status-success-bg: #0d3326;
  --status-success-border: #1d6348;
  --status-success-deep-bg: #166534;
  --status-success-deep-emerald-text: #6ee7b7;
  --status-success-emerald-bg: #0c2c24;
  --status-success-emerald-border: #1e6850;
  --status-success-emerald-solid-bg: #047857;
  --status-success-emerald-text: #34d399;
  --status-success-emerald-vivid-border: #34d399;
  --status-success-forest-text: #6ee7b7;
  --status-success-jade-solid-bg: #047857;
  --status-success-jade-text: #34d399;
  --status-success-mint-bg: #0f362b;
  --status-success-pine-text: #6ee7b7;
  --status-success-solid-bg: #15803d;
  --status-success-strong-border: #227454;
  --status-success-strong-text: #4ade80;
  --status-success-subtle-bg: #0c2920;
  --status-success-teal-bg: #0f3535;
  --status-success-teal-border: #1d6666;
  --status-success-text: #4ade80;
  --status-success-vivid-border: #22c55e;
  --status-success-vivid-text: #4ade80;
  --surface-success-047857: #0e8160;
  --surface-success-064e3b: #0e8162;
  --surface-success-10b981: #14b580;
  --surface-success-166534: #1a753c;
  --surface-success-22c55e: #20b757;
  --surface-success-def7ec: #19392b;
  --text-success-03543f: #a8fae5;
  --text-success-14532d: #b5edcb;
  --text-success-4ade80: #8eeab0;
  --text-success-ecfdf5: #ecfdf5;
  --border-warning-92400e: #87451d;
  --border-warning-e0a63a: #d7a342;
  --border-warning-eab308: #c8a12a;
  --border-warning-fde047: #d7bf42;
  --border-warning-fed7aa: #8f5b1e;
  --status-warning-amber-border: #b45309;
  --status-warning-amber-solid-bg: #b45309;
  --status-warning-bg: #33240d;
  --status-warning-border: #785118;
  --status-warning-bright-text: #fcd34d;
  --status-warning-brown-text: #fcd34d;
  --status-warning-burnt-text: #fdba74;
  --status-warning-deep-bg: #92400e;
  --status-warning-faint-bg: #29200b;
  --status-warning-gold-text: #facc15;
  --status-warning-olive-text: #fde047;
  --status-warning-on-dark-text: #fef08a;
  --status-warning-orange-bg: #361f0d;
  --status-warning-orange-border: #7c3f18;
  --status-warning-orange-subtle-bg: #2e1b0c;
  --status-warning-orange-text: #fb923c;
  --status-warning-rust-text: #fb923c;
  --status-warning-solid-bg: #b45309;
  --status-warning-strong-border: #8a5d19;
  --status-warning-strong-text: #fbbf24;
  --status-warning-subtle-bg: #2c1f0b;
  --status-warning-text: #fbbf24;
  --status-warning-vivid-border: #b45309;
  --status-warning-vivid-text: #fbbf24;
  --status-warning-yellow-bg: #30260b;
  --surface-warning-92400e: #904010;
  --surface-warning-fde68a: #c19f15;
  --surface-warning-fff6e5: #3f3012;
  --text-warning-8a5a00: #fadea8;
  --text-warning-ca8a04: #fadfa7;
  --border-danger-b91c1c: #b02525;
  --border-danger-e11d48: #d22c51;
  --border-danger-f87171: #8f1e1e;
  --border-danger-f8b4b4: #8f1e1e;
  --border-danger-feb2b2: #8f1e1e;
  --border-danger-fee2e2: #8f1e1e;
  --status-danger-bg: #38161b;
  --status-danger-border: #7f2931;
  --status-danger-bright-solid-bg: #dc2626;
  --status-danger-bright-text: #f87171;
  --status-danger-crimson-bg: #7f1d1d;
  --status-danger-crimson-border: #ef4444;
  --status-danger-deep-bg: #991b1b;
  --status-danger-maroon-text: #fca5a5;
  --status-danger-rose-bg: #31131b;
  --status-danger-soft-text: #fca5a5;
  --status-danger-solid-bg: #dc2626;
  --status-danger-strong-border: #943038;
  --status-danger-strong-text: #f87171;
  --status-danger-subtle-bg: #2f1318;
  --status-danger-text: #fca5a5;
  --status-danger-vivid-border: #dc2626;
  --status-danger-vivid-text: #f87171;
  --surface-danger-7f1d1d: #7f1d1d;
  --surface-danger-c2410c: #b94515;
  --surface-danger-fde8e8: #3f1313;
  --surface-danger-fff9f9: #3f1212;
  --surface-danger-fffafa: #3f1212;
  --text-danger-7c2d12: #f3c0af;
  --text-danger-9b1c1c: #f1b1b1;
  --text-danger-c53030: #e9a6a6;
  --text-danger-e11d48: #f29aad;
  --text-danger-fca5a5: #f76464;
  --text-danger-fecaca: #fecaca;
  --text-danger-fee2e2: #fee2e2;
  --text-danger-fef2f2: #fef2f2;
  --border-info-0f2942: #1e5385;
  --border-info-1d4ed8: #2b55ca;
  --border-info-3730a3: #3730a3;
  --border-info-3b82f6: #427ad7;
  --border-info-4338ca: #4338ca;
  --border-info-6366f1: #1e218f;
  --border-info-a4cafe: #1e4e8f;
  --border-info-c7d2de: #40566d;
  --border-info-cbd5e0: #41566d;
  --border-info-d0d7de: #485766;
  --border-info-d0dbe5: #3e5870;
  --border-info-e6ecf1: #3e596f;
  --border-info-e8edf2: #3f576f;
  --border-info-edf2f7: #355778;
  --border-info-eef2f6: #3c5771;
  --border-info-f8fafc: #345779;
  --brand-sky-border: #38bdf8;
  --status-info-azure-text: #60a5fa;
  --status-info-bg: #102c44;
  --status-info-blue-bg: #152c4e;
  --status-info-blue-border: #254c7c;
  --status-info-blue-subtle-bg: #132642;
  --status-info-blue-text: #60a5fa;
  --status-info-border: #1e5278;
  --status-info-bright-border: #0284c7;
  --status-info-bright-text: #38bdf8;
  --status-info-deep-bg: #075985;
  --status-info-deep-text: #7dd3fc;
  --status-info-indigo-text: #93c5fd;
  --status-info-royal-border: #2b5b94;
  --status-info-solid-bg: #0369a1;
  --status-info-strong-border: #0284c7;
  --status-info-strong-text: #7dd3fc;
  --status-info-subtle-bg: #11263c;
  --status-info-text: #7dd3fc;
  --surface-info-8291a0: #54616e;
  --surface-info-cbd5e1: #1c2836;
  --surface-info-dce3eb: #1c2836;
  --surface-info-dde2e8: #1c2836;
  --surface-info-e1effe: #12283f;
  --surface-info-e4e9ee: #1c2936;
  --surface-info-eef2ff: #121d3f;
  --surface-info-f1f3f6: #1c2636;
  --surface-info-f7f9fb: #1c2936;
  --surface-info-fcfdfe: #1c2936;
  --text-info-1e3a8a: #b4c3ef;
  --text-info-1e429f: #b2c3f0;
  --text-info-2b3b4c: #b8d0ea;
  --text-info-2b6cb0: #b0cdec;
  --text-info-3730a3: #b9b5ea;
  --text-info-4a5568: #b8caea;
  --text-info-4b5563: #b8cdea;
  --text-info-4f46e5: #8f89ee;
  --text-info-55687a: #b7d1ea;
  --text-info-5b6e82: #b2cde9;
  --text-info-6d7f92: #a6c5e5;
  --text-info-93c5fd: #64a9f7;
  --text-info-9ca3af: #8caadd;
  --border-purple-5b21b6: #5c26b1;
  --border-purple-8b5cf6: #411e8f;
  --border-purple-a855f7: #581e8f;
  --border-purple-f5d0fe: #791e8f;
  --status-purple-bg: #271942;
  --status-purple-border: #533582;
  --status-purple-bright-text: #c4b5fd;
  --status-purple-deep-bg: #581c87;
  --status-purple-deep-violet-text: #c4b5fd;
  --status-purple-indigo-bg: #1e2449;
  --status-purple-indigo-border: #3f4b8c;
  --status-purple-indigo-text: #a5b4fc;
  --status-purple-plum-text: #c4b5fd;
  --status-purple-solid-bg: #6d28d9;
  --status-purple-strong-text: #d8b4fe;
  --status-purple-subtle-bg: #23183c;
  --status-purple-text: #d8b4fe;
  --status-purple-violet-bg: #261a45;
  --status-purple-violet-text: #c4b5fd;
  --surface-purple-5b21b6: #5b21b5;
  --surface-purple-fae8ff: #35123f;
  --surface-purple-fdf4ff: #37123f;
  --text-purple-4c1d95: #cab2f0;
  --text-purple-701a75: #ebb4ee;
  --text-purple-86198f: #ecb1f1;
  --text-purple-9333ea: #c18bf3;
  --text-purple-c026d3: #e5a0ee;
  --border-amber-fef08a: #8f811e;
  --surface-rose-fdf2f8: #3c152b;
  --text-rose-9f1239: #f6adc1;
  --text-rose-ec4899: #f281b9;
  --border-teal-002d3a: #1d6f87;
  --border-teal-003644: #1d7187;
  --border-teal-003a49: #1d7187;
  --border-teal-003b4a: #1d7187;
  --border-teal-005073: #1d6687;
  --border-teal-005580: #1d6387;
  --border-teal-005a70: #1d7287;
  --border-teal-06b6d4: #269fb4;
  --border-teal-0b4f6c: #1d6787;
  --border-teal-0d9488: #1d877d;
  --border-teal-0ea5e9: #2b9acc;
  --border-teal-0f766e: #1d877e;
  --border-teal-38bdf8: #42a9d7;
  --border-teal-9fb4c2: #435b6a;
  --surface-teal-003342: #0c6079;
  --surface-teal-003344: #0c5d79;
  --surface-teal-003644: #0c6279;
  --surface-teal-003b4a: #0c6379;
  --surface-teal-004e70: #0c5b7d;
  --surface-teal-005073: #0d5d80;
  --surface-teal-0284c7: #117ab0;
  --surface-teal-0891b2: #1192b0;
  --surface-teal-38bdf8: #1180b0;
  --surface-teal-9fb4c2: #4b6577;
  --surface-teal-e6f0f5: #1c2d36;
  --surface-teal-e6f4f8: #1a3138;
  --surface-teal-ebf8ff: #12303f;
  --surface-teal-ecfeff: #123d3f;
  --surface-teal-eef3f6: #1c2c36;
  --surface-teal-eef6fb: #182d39;
  --surface-teal-f0f7fa: #1c2e36;
  --surface-teal-f7fafc: #1c2b36;
  --surface-teal-fafcfd: #1c2d36;
  --surface-teal-fcfdfd: #1c3636;
  --text-teal-00334e: #a8defa;
  --text-teal-003b54: #a8e2fa;
  --text-teal-006699: #a8dffa;
  --text-teal-06b6d4: #a2edfa;
  --text-teal-082f49: #acd8f6;
  --text-teal-115e59: #b1f1ed;
  --text-teal-155e75: #b1e2f1;
  --text-teal-99f6e4: #69f2d7;
  --text-teal-e0f2fe: #e0f2fe;
  --table-header-bg: #0c4a5e;
  --table-hover-bg: #1e334d;
  --table-selected-bg: #1a3a5c;
  --table-stripe-bg: #172235;
  --shadow-2xl: rgba(0,0,0,0.65);
  --shadow-2xs: rgba(0,0,0,0.22);
  --shadow-brand-md: rgba(0,0,0,0.50);
  --shadow-brand-sm: rgba(0,0,0,0.40);
  --shadow-card-lg: rgba(0,0,0,0.44);
  --shadow-elevated: rgba(0,0,0,0.48);
  --shadow-lg: rgba(0,0,0,0.40);
  --shadow-md: rgba(0,0,0,0.36);
  --shadow-modal: rgba(0,0,0,0.55);
  --shadow-rgba-0-0-0-0p02: rgba(0, 0, 0, 0.24);
  --shadow-rgba-0-0-0-0p14: rgba(0, 0, 0, 0.36);
  --shadow-rgba-0-0-0-0p22: rgba(0, 0, 0, 0.48);
  --shadow-rgba-0-0-0-0p28: rgba(0, 0, 0, 0.62);
  --shadow-rgba-0-0-0-0p35: rgba(0, 0, 0, 0.75);
  --shadow-rgba-0-0-0-0p4: rgba(0, 0, 0, 0.75);
  --shadow-rgba-0-0-0-0p45: rgba(0, 0, 0, 0.75);
  --shadow-rgba-0-0-0-0p6: rgba(0, 0, 0, 0.75);
  --shadow-rgba-0-77-97-0p12: rgba(0, 0, 0, 0.34);
  --shadow-rgba-0-77-97-0p18: rgba(0, 0, 0, 0.4);
  --shadow-rgba-0-77-97-0p2: rgba(0, 0, 0, 0.42);
  --shadow-rgba-0-77-97-0p22: rgba(0, 0, 0, 0.44);
  --shadow-rgba-0-78-112-0p1: rgba(0, 0, 0, 0.32);
  --shadow-rgba-0-78-112-0p15: rgba(0, 0, 0, 0.37);
  --shadow-rgba-0-84-130-0p15: rgba(0, 0, 0, 0.37);
  --shadow-rgba-0-84-130-0p18: rgba(0, 0, 0, 0.4);
  --shadow-rgba-11-79-108-0p16: rgba(0, 0, 0, 0.38);
  --shadow-rgba-15-23-42-0p04: rgba(0, 0, 0, 0.26);
  --shadow-rgba-15-23-42-0p05: rgba(0, 0, 0, 0.27);
  --shadow-rgba-15-23-42-0p06: rgba(0, 0, 0, 0.28);
  --shadow-rgba-15-23-42-0p08: rgba(0, 0, 0, 0.3);
  --shadow-rgba-15-23-42-0p1: rgba(0, 0, 0, 0.32);
  --shadow-rgba-15-23-42-0p12: rgba(0, 0, 0, 0.34);
  --shadow-rgba-15-23-42-0p18: rgba(0, 0, 0, 0.4);
  --shadow-rgba-15-23-42-0p22: rgba(0, 0, 0, 0.48);
  --shadow-rgba-15-23-42-0p25: rgba(0, 0, 0, 0.55);
  --shadow-rgba-15-23-42-0p32: rgba(0, 0, 0, 0.7);
  --shadow-rgba-15-41-66-0p06: rgba(0, 0, 0, 0.28);
  --shadow-rgba-15-41-66-0p14: rgba(0, 0, 0, 0.36);
  --shadow-rgba-15-41-66-0p18: rgba(0, 0, 0, 0.4);
  --shadow-rgba-16-185-129-0p2: rgba(0, 0, 0, 0.42);
  --shadow-rgba-16-185-129-0p6: rgba(0, 0, 0, 0.6);
  --shadow-rgba-2-132-199-0p08: rgba(0, 0, 0, 0.3);
  --shadow-rgba-2-132-199-0p12: rgba(0, 0, 0, 0.34);
  --shadow-rgba-2-132-199-0p2: rgba(0, 0, 0, 0.42);
  --shadow-rgba-2-132-199-0p3: rgba(0, 0, 0, 0.52);
  --shadow-rgba-220-38-38-0p18: rgba(0, 0, 0, 0.4);
  --shadow-rgba-56-189-248-0p25: rgba(0, 0, 0, 0.47);
  --shadow-rgba-56-189-248-0p28: rgba(0, 0, 0, 0.5);
  --shadow-rgba-56-189-248-0p32: rgba(0, 0, 0, 0.54);
  --shadow-sm: rgba(0,0,0,0.30);
  --shadow-soft: rgba(0,0,0,0.32);
  --shadow-xl: rgba(0,0,0,0.60);
  --shadow-xs: rgba(0,0,0,0.26);
  --border-rgba-0-77-97-0p25: rgba(56, 189, 248, 0.34);
  --border-rgba-226-232-240-0p8: rgba(226, 232, 240, 0.42);
  --border-rgba-255-255-255-0p12: rgba(255, 255, 255, 0.12);
  --border-rgba-255-255-255-0p14: rgba(255, 255, 255, 0.14);
  --border-rgba-255-255-255-0p15: rgba(255, 255, 255, 0.15);
  --border-rgba-255-255-255-0p25: rgba(255, 255, 255, 0.25);
  --border-rgba-255-255-255-0p28: rgba(255, 255, 255, 0.28);
  --border-rgba-255-255-255-0p3: rgba(255, 255, 255, 0.3);
  --border-rgba-255-255-255-0p35: rgba(255, 255, 255, 0.35);
  --border-rgba-255-255-255-0p4: rgba(255, 255, 255, 0.35);
  --border-rgba-255-255-255-0p45: rgba(255, 255, 255, 0.35);
  --border-rgba-255-255-255-0p55: rgba(15, 23, 42, 0.65);
  --border-rgba-255-255-255-0p7: rgba(15, 23, 42, 0.78);
  --border-rgba-255-255-255-0p8: rgba(15, 23, 42, 0.88);
  --border-rgba-255-255-255-0p95: rgba(15, 23, 42, 0.95);
  --overlay-glass-medium: rgba(255,255,255,0.15);
  --overlay-glass-strong: rgba(255,255,255,0.20);
  --overlay-glass-subtle: rgba(255,255,255,0.12);
  --overlay-loading-bg: rgba(15,23,42,0.80);
  --overlay-rgba-0-0-0-0p04: rgba(148, 163, 184, 0.12);
  --overlay-rgba-0-0-0-0p15: rgba(148, 163, 184, 0.23);
  --overlay-rgba-0-0-0-0p45: rgba(2, 6, 23, 0.57);
  --overlay-rgba-0-77-97-0p65: rgba(56, 189, 248, 0.42);
  --overlay-rgba-0-78-112-0p1: rgba(56, 189, 248, 0.14);
  --overlay-rgba-127-29-29-0p55: rgba(127, 29, 29, 0.42);
  --overlay-rgba-15-23-42-0p08: rgba(148, 163, 184, 0.16);
  --overlay-rgba-15-23-42-0p25: rgba(148, 163, 184, 0.28);
  --overlay-rgba-15-23-42-0p45: rgba(2, 6, 23, 0.57);
  --overlay-rgba-15-23-42-0p48: rgba(2, 6, 23, 0.6);
  --overlay-rgba-15-23-42-0p52: rgba(2, 6, 23, 0.64);
  --overlay-rgba-15-23-42-0p55: rgba(2, 6, 23, 0.67);
  --overlay-rgba-15-23-42-0p58: rgba(2, 6, 23, 0.7);
  --overlay-rgba-15-23-42-0p7: rgba(2, 6, 23, 0.82);
  --overlay-rgba-15-23-42-0p88: rgba(2, 6, 23, 0.92);
  --overlay-rgba-2-132-199-0p08: rgba(2, 132, 199, 0.11);
  --overlay-rgba-2-132-199-0p1: rgba(2, 132, 199, 0.14);
  --overlay-rgba-2-132-199-0p12: rgba(2, 132, 199, 0.16);
  --overlay-rgba-220-227-235-0p85: rgba(220, 227, 235, 0.42);
  --overlay-rgba-224-166-58-0p22: rgba(224, 166, 58, 0.3);
  --overlay-rgba-255-255-255-0p14: rgba(255, 255, 255, 0.14);
  --overlay-rgba-255-255-255-0p16: rgba(255, 255, 255, 0.16);
  --overlay-rgba-255-255-255-0p18: rgba(255, 255, 255, 0.18);
  --overlay-rgba-255-255-255-0p2: rgba(255, 255, 255, 0.2);
  --overlay-rgba-255-255-255-0p22: rgba(255, 255, 255, 0.22);
  --overlay-rgba-255-255-255-0p24: rgba(255, 255, 255, 0.24);
  --overlay-rgba-255-255-255-0p28: rgba(255, 255, 255, 0.28);
  --overlay-rgba-255-255-255-0p32: rgba(255, 255, 255, 0.32);
  --overlay-rgba-255-255-255-0p35: rgba(255, 255, 255, 0.35);
  --overlay-rgba-255-255-255-0p55: rgba(15, 23, 42, 0.65);
  --overlay-rgba-255-255-255-0p72: rgba(15, 23, 42, 0.8);
  --overlay-rgba-255-255-255-0p98: rgba(15, 23, 42, 0.95);
  --overlay-rgba-30-41-59-0p85: rgba(2, 6, 23, 0.92);
  --overlay-scrim: rgba(2,6,23,0.78);
  --overlay-scrim-soft: rgba(2,6,23,0.75);
  --overlay-scrim-strong: rgba(2,6,23,0.84);
  --overlay-surface-frosted: rgba(15,23,42,0.88);
  --overlay-surface-opaque: rgba(30,41,59,0.94);
  --chart-area-emerald: rgba(52, 211, 153, 0.18);
  --chart-area-sky: rgba(56, 189, 248, 0.18);
  --chart-area-teal: rgba(34, 211, 238, 0.16);
  --chart-area-violet: rgba(167, 139, 250, 0.20);
  --chart-axis-label-color: #cbd5e1;
  --chart-grid-color: #263449;
  --chart-grid-strong-color: #2d3d54;
  --chart-legend-color: #e2e8f0;
  --chart-legend-muted-color: #cbd5e1;
  --chart-series-1: #22d3ee;
  --chart-series-2: #38bdf8;
  --chart-series-3: #34d399;
  --chart-series-4: #fbbf24;
  --chart-series-5: #f87171;
  --chart-series-6: #a78bfa;
  --chart-series-7: #e879f9;
  --chart-series-8: #22d3ee;
  --chart-series-9: #fca5a5;
  --chart-series-muted: #94a3b8;
  --chart-series-slate: #64748b;
  --chart-slice-border: #1e293b;
  --chart-tick-color: #9fb0c4;
}

/* Dark Mode Form Controls, Native Pickers, Scrollbars & Transparent Brand Logo Backing */
html[data-theme="dark"]:not(.lpff-force-light-capture) input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]):not([type="file"]),
html[data-theme="dark"]:not(.lpff-force-light-capture) select,
html[data-theme="dark"]:not(.lpff-force-light-capture) textarea {
  background-color: var(--surface-input, #152033);
  color: var(--text-primary, #f1f5f9);
  border-color: var(--border-default, #3b4d66);
}

html[data-theme="dark"]:not(.lpff-force-light-capture) input::placeholder,
html[data-theme="dark"]:not(.lpff-force-light-capture) textarea::placeholder {
  color: var(--text-subtle, #8da0b8);
}

html[data-theme="dark"]:not(.lpff-force-light-capture) img.topbar-logo,
html[data-theme="dark"]:not(.lpff-force-light-capture) img.lpff-logo-img,
html[data-theme="dark"]:not(.lpff-force-light-capture) img[src*="/assets/lpff-logo"],
html[data-theme="dark"]:not(.lpff-force-light-capture) img[src*="/assets/lpc-logo"] {
  background-color: var(--surface-logo-backing);
  border-radius: 6px;
  padding: 3px 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] #reportPaperSheet img[src*="/assets/"],
html[data-theme="dark"] [data-force-light-theme="true"] img[src*="/assets/"] {
  background-color: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* Dark Mode Component Polish: Secondary/Light Buttons, Settings Date Inputs, Standalone Filter Selects & Refund Footer */
html[data-theme="dark"]:not(.lpff-force-light-capture) .btn-light:not([style*="background"]),
html[data-theme="dark"]:not(.lpff-force-light-capture) .btn-secondary:not([style*="background"]),
html[data-theme="dark"]:not(.lpff-force-light-capture) .btn-cancel:not([style*="background"]) {
  background-color: var(--surface-elevated, #2b3b52);
  color: var(--text-strong, #e2e8f0);
  border-color: var(--border-default, #3b4d66);
}

html[data-theme="dark"]:not(.lpff-force-light-capture) .btn-light:not([style*="background"]):hover:not(:disabled),
html[data-theme="dark"]:not(.lpff-force-light-capture) .btn-secondary:not([style*="background"]):hover:not(:disabled),
html[data-theme="dark"]:not(.lpff-force-light-capture) .btn-cancel:not([style*="background"]):hover:not(:disabled) {
  background-color: var(--surface-strong, #364863);
  color: var(--text-primary, #f1f5f9);
}

html[data-theme="dark"]:not(.lpff-force-light-capture) #refundPopupActionsBar button:not(.refund-popup-primary-btn) {
  background-color: var(--surface-elevated, #2b3b52) !important;
  color: var(--text-strong, #e2e8f0) !important;
  border-color: var(--border-strong, #526682) !important;
}

html[data-theme="dark"]:not(.lpff-force-light-capture) #refundPopupActionsBar button:not(.refund-popup-primary-btn):hover:not(:disabled) {
  background-color: var(--surface-strong, #364863) !important;
  color: var(--text-primary, #f1f5f9) !important;
}

html[data-theme="dark"]:not(.lpff-force-light-capture) .settings-date-icon {
  display: none !important;
}

html[data-theme="dark"]:not(.lpff-force-light-capture) .settings-date-input {
  padding-right: 12px !important;
}

html[data-theme="dark"]:not(.lpff-force-light-capture) select.filter-select {
  appearance: auto;
}

html[data-theme="dark"]:not(.lpff-force-light-capture) .filter-select-wrapper > select.filter-select {
  appearance: none;
}

html[data-theme="dark"]:not(.lpff-force-light-capture) #filterPendingPeriod,
html[data-theme="dark"]:not(.lpff-force-light-capture) #filterPendingBlocker,
html[data-theme="dark"]:not(.lpff-force-light-capture) #filterPendingProvince,
html[data-theme="dark"]:not(.lpff-force-light-capture) #filterOutstandingPeriod,
html[data-theme="dark"]:not(.lpff-force-light-capture) #filterOutstandingReason,
html[data-theme="dark"]:not(.lpff-force-light-capture) #filterPaymentsProvince {
  min-width: 96px;
  padding-right: 26px !important;
}

html[data-theme="dark"]:not(.lpff-force-light-capture) .shared-advanced-filter-bar {
  background-color: var(--surface-subtle, #162032);
  border-color: var(--border-default, #3b4d66);
}

/* Force Light Tokens Inside Email Previews, Printable Paper Sheets, html2canvas/html2pdf Captures & @media print */
html.lpff-force-light-capture,
html.lpff-force-light-capture[data-theme="dark"],
[data-force-light-theme="true"] {
  color-scheme: light !important;
  --lpff-green: #1b7a48;
  --lpff-blue: #103c68;
  --lpff-teal: #004e70;
  --lpff-teal-hover: #003d58;
  --lpff-link-blue: #0062b1;
  --lpff-gray-bg: #f5f5f5;
  --lpff-text-dark: #333333;
  --lpff-text-muted: #555555;
  --lpff-border-gray: #d4d4d4;
  --lpff-border-focus: #004e70;
  --lpff-error-red: #d32f2f;
  --lpff-success-green: #2e7d32;
  --sys-header-bg: #e5edf3;
  --sys-header-font-color: #0f172a;
  --sys-text-color: #333333;
  --sys-btn-bg: #004d61;
  --sys-btn-text-color: #ffffff;
  --surface-card: #ffffff;
  --surface-dark-navy: #0f172a;
  --surface-dark-slate: #1e293b;
  --surface-elevated: #e2e8f0;
  --surface-footer: #f7f7f7;
  --surface-gray-muted: #f3f4f6;
  --surface-header: #e5edf3;
  --surface-input: #ffffff;
  --surface-logo-backing: transparent;
  --surface-modal: #f8fafc;
  --surface-muted: #f1f5f9;
  --surface-neutral-f5f5f4: #f5f5f4;
  --surface-neutral-faint: #fafafa;
  --surface-neutral-ffffff: #ffffff;
  --surface-neutral-subtle: #f5f5f5;
  --surface-page: #ffffff;
  --surface-panel-muted: #eef2f6;
  --surface-sidebar: #f1f3f6;
  --surface-sidebar-active: #bdbdbd;
  --surface-sidebar-hover: #d8dcde;
  --surface-slate-light: #94a3b8;
  --surface-slate-mid: #475569;
  --surface-slate-muted: #64748b;
  --surface-strong: #cbd5e1;
  --surface-submenu: #e9ecf0;
  --surface-submenu-hover: #dce1e7;
  --surface-subtle: #f8fafc;
  --surface-track: #edf2f7;
  --text-body: #333333;
  --text-faint: #cbd5e1;
  --text-gray-muted: #6b7280;
  --text-gray-primary: #111827;
  --text-gray-secondary: #374151;
  --text-icon-muted: #8c9dae;
  --text-ink: #222222;
  --text-input-placeholder: #8c8c8c;
  --text-inverse: #ffffff;
  --text-muted: #64748b;
  --text-muted-strong: #475569;
  --text-nav: #3b4252;
  --text-neutral-44403c: #44403c;
  --text-neutral-444444: #444444;
  --text-neutral-78716c: #78716c;
  --text-neutral-888888: #888888;
  --text-neutral-dim: #666666;
  --text-neutral-muted: #555555;
  --text-neutral-secondary: #595959;
  --text-on-dark: #f8fafc;
  --text-on-dark-muted: #e2e8f0;
  --text-placeholder: #8fa0b0;
  --text-primary: #0f172a;
  --text-pure: #000000;
  --text-secondary: #334155;
  --text-separator: #a0aec0;
  --text-strong: #1e293b;
  --text-subtle: #94a3b8;
  --border-card: #dbe2ea;
  --border-control: #cbd6e2;
  --border-dark-slate: #334155;
  --border-default: #cbd5e1;
  --border-emphasis: #64748b;
  --border-faint: #f1f5f9;
  --border-gray: #d1d5db;
  --border-header: #d2dde6;
  --border-inverse: #ffffff;
  --border-neutral: #d9d9d9;
  --border-neutral-666666: #666666;
  --border-neutral-d6d3d1: #d6d3d1;
  --border-neutral-subtle: #e5e5e5;
  --border-search: #cbd7e2;
  --border-sidebar: #e1e6eb;
  --border-strong: #94a3b8;
  --border-subtle: #e2e8f0;
  --brand-cerulean-bg: #0b4f6c;
  --brand-cerulean-text: #0b4f6c;
  --brand-cyan-teal-bg: #0d9488;
  --brand-deep-teal-bg: #004e70;
  --brand-deep-teal-border: #004e70;
  --brand-deep-teal-text: #004e70;
  --brand-navy-bg: #0f2942;
  --brand-navy-text: #0f2942;
  --brand-ocean-bg: #005482;
  --brand-ocean-border: #005482;
  --brand-royal-navy-text: #103c68;
  --brand-slate-teal-text: #154e70;
  --brand-teal-accent-bg: #0f766e;
  --brand-teal-bg: #004d61;
  --brand-teal-border: #004d61;
  --brand-teal-dark-bg: #004052;
  --brand-teal-hover-bg: #003847;
  --brand-teal-text: #004d61;
  --brand-ocean-text: #005482;
  --link-royal: #2563eb;
  --link-sky: #0284c7;
  --border-success-047857: #047857;
  --border-success-059669: #059669;
  --border-success-15803d: #15803d;
  --border-success-22c55e: #22c55e;
  --border-success-6ee7b7: #6ee7b7;
  --border-success-84e1bc: #84e1bc;
  --brand-cyan-teal-text: #0d9488;
  --brand-teal-accent-text: #0f766e;
  --status-success-aqua-bg: #f0fdfa;
  --status-success-bg: #dcfce7;
  --status-success-border: #bbf7d0;
  --status-success-deep-bg: #15803d;
  --status-success-deep-emerald-text: #047857;
  --status-success-emerald-bg: #ecfdf5;
  --status-success-emerald-border: #a7f3d0;
  --status-success-emerald-solid-bg: #10b981;
  --status-success-emerald-text: #10b981;
  --status-success-emerald-vivid-border: #10b981;
  --status-success-forest-text: #065f46;
  --status-success-jade-solid-bg: #059669;
  --status-success-jade-text: #059669;
  --status-success-mint-bg: #d1fae5;
  --status-success-pine-text: #064e3b;
  --status-success-solid-bg: #16a34a;
  --status-success-strong-border: #86efac;
  --status-success-strong-text: #15803d;
  --status-success-subtle-bg: #f0fdf4;
  --status-success-teal-bg: #ccfbf1;
  --status-success-teal-border: #99f6e4;
  --status-success-text: #166534;
  --status-success-vivid-border: #16a34a;
  --status-success-vivid-text: #16a34a;
  --surface-success-047857: #047857;
  --surface-success-064e3b: #064e3b;
  --surface-success-10b981: #10b981;
  --surface-success-166534: #166534;
  --surface-success-22c55e: #22c55e;
  --surface-success-def7ec: #def7ec;
  --text-success-03543f: #03543f;
  --text-success-14532d: #14532d;
  --text-success-4ade80: #4ade80;
  --text-success-ecfdf5: #ecfdf5;
  --border-warning-92400e: #92400e;
  --border-warning-e0a63a: #e0a63a;
  --border-warning-eab308: #eab308;
  --border-warning-fde047: #fde047;
  --border-warning-fed7aa: #fed7aa;
  --status-warning-amber-border: #d97706;
  --status-warning-amber-solid-bg: #d97706;
  --status-warning-bg: #fef3c7;
  --status-warning-border: #fde68a;
  --status-warning-bright-text: #f59e0b;
  --status-warning-brown-text: #78350f;
  --status-warning-burnt-text: #9a3412;
  --status-warning-deep-bg: #b45309;
  --status-warning-faint-bg: #fefce8;
  --status-warning-gold-text: #a16207;
  --status-warning-olive-text: #854d0e;
  --status-warning-on-dark-text: #fef08a;
  --status-warning-orange-bg: #ffedd5;
  --status-warning-orange-border: #fdba74;
  --status-warning-orange-subtle-bg: #fff7ed;
  --status-warning-orange-text: #ea580c;
  --status-warning-rust-text: #c2410c;
  --status-warning-solid-bg: #f59e0b;
  --status-warning-strong-border: #fcd34d;
  --status-warning-strong-text: #b45309;
  --status-warning-subtle-bg: #fffbeb;
  --status-warning-text: #92400e;
  --status-warning-vivid-border: #f59e0b;
  --status-warning-vivid-text: #d97706;
  --status-warning-yellow-bg: #fef9c3;
  --surface-warning-92400e: #92400e;
  --surface-warning-fde68a: #fde68a;
  --surface-warning-fff6e5: #fff6e5;
  --text-warning-8a5a00: #8a5a00;
  --text-warning-ca8a04: #ca8a04;
  --border-danger-b91c1c: #b91c1c;
  --border-danger-e11d48: #e11d48;
  --border-danger-f87171: #f87171;
  --border-danger-f8b4b4: #f8b4b4;
  --border-danger-feb2b2: #feb2b2;
  --border-danger-fee2e2: #fee2e2;
  --status-danger-bg: #fee2e2;
  --status-danger-border: #fecaca;
  --status-danger-bright-solid-bg: #ef4444;
  --status-danger-bright-text: #ef4444;
  --status-danger-crimson-bg: #991b1b;
  --status-danger-crimson-border: #dc2626;
  --status-danger-deep-bg: #b91c1c;
  --status-danger-maroon-text: #7f1d1d;
  --status-danger-rose-bg: #fff1f2;
  --status-danger-soft-text: #f87171;
  --status-danger-solid-bg: #dc2626;
  --status-danger-strong-border: #fca5a5;
  --status-danger-strong-text: #b91c1c;
  --status-danger-subtle-bg: #fef2f2;
  --status-danger-text: #991b1b;
  --status-danger-vivid-border: #ef4444;
  --status-danger-vivid-text: #dc2626;
  --surface-danger-7f1d1d: #7f1d1d;
  --surface-danger-c2410c: #c2410c;
  --surface-danger-fde8e8: #fde8e8;
  --surface-danger-fff9f9: #fff9f9;
  --surface-danger-fffafa: #fffafa;
  --text-danger-7c2d12: #7c2d12;
  --text-danger-9b1c1c: #9b1c1c;
  --text-danger-c53030: #c53030;
  --text-danger-e11d48: #e11d48;
  --text-danger-fca5a5: #fca5a5;
  --text-danger-fecaca: #fecaca;
  --text-danger-fee2e2: #fee2e2;
  --text-danger-fef2f2: #fef2f2;
  --border-info-0f2942: #0f2942;
  --border-info-1d4ed8: #1d4ed8;
  --border-info-3730a3: #3730a3;
  --border-info-3b82f6: #3b82f6;
  --border-info-4338ca: #4338ca;
  --border-info-6366f1: #6366f1;
  --border-info-a4cafe: #a4cafe;
  --border-info-c7d2de: #c7d2de;
  --border-info-cbd5e0: #cbd5e0;
  --border-info-d0d7de: #d0d7de;
  --border-info-d0dbe5: #d0dbe5;
  --border-info-e6ecf1: #e6ecf1;
  --border-info-e8edf2: #e8edf2;
  --border-info-edf2f7: #edf2f7;
  --border-info-eef2f6: #eef2f6;
  --border-info-f8fafc: #f8fafc;
  --brand-sky-border: #0284c7;
  --status-info-azure-text: #3b82f6;
  --status-info-bg: #e0f2fe;
  --status-info-blue-bg: #dbeafe;
  --status-info-blue-border: #bfdbfe;
  --status-info-blue-subtle-bg: #eff6ff;
  --status-info-blue-text: #1d4ed8;
  --status-info-border: #bae6fd;
  --status-info-bright-border: #7dd3fc;
  --status-info-bright-text: #38bdf8;
  --status-info-deep-bg: #0369a1;
  --status-info-deep-text: #0c4a6e;
  --status-info-indigo-text: #1e40af;
  --status-info-royal-border: #93c5fd;
  --status-info-solid-bg: #0284c7;
  --status-info-strong-border: #0369a1;
  --status-info-strong-text: #075985;
  --status-info-subtle-bg: #f0f9ff;
  --status-info-text: #0369a1;
  --surface-info-8291a0: #8291a0;
  --surface-info-cbd5e1: #cbd5e1;
  --surface-info-dce3eb: #dce3eb;
  --surface-info-dde2e8: #dde2e8;
  --surface-info-e1effe: #e1effe;
  --surface-info-e4e9ee: #e4e9ee;
  --surface-info-eef2ff: #eef2ff;
  --surface-info-f1f3f6: #f1f3f6;
  --surface-info-f7f9fb: #f7f9fb;
  --surface-info-fcfdfe: #fcfdfe;
  --text-info-1e3a8a: #1e3a8a;
  --text-info-1e429f: #1e429f;
  --text-info-2b3b4c: #2b3b4c;
  --text-info-2b6cb0: #2b6cb0;
  --text-info-3730a3: #3730a3;
  --text-info-4a5568: #4a5568;
  --text-info-4b5563: #4b5563;
  --text-info-4f46e5: #4f46e5;
  --text-info-55687a: #55687a;
  --text-info-5b6e82: #5b6e82;
  --text-info-6d7f92: #6d7f92;
  --text-info-93c5fd: #93c5fd;
  --text-info-9ca3af: #9ca3af;
  --border-purple-5b21b6: #5b21b6;
  --border-purple-8b5cf6: #8b5cf6;
  --border-purple-a855f7: #a855f7;
  --border-purple-f5d0fe: #f5d0fe;
  --status-purple-bg: #f3e8ff;
  --status-purple-border: #ddd6fe;
  --status-purple-bright-text: #8b5cf6;
  --status-purple-deep-bg: #6b21a8;
  --status-purple-deep-violet-text: #6d28d9;
  --status-purple-indigo-bg: #e0e7ff;
  --status-purple-indigo-border: #c7d2fe;
  --status-purple-indigo-text: #6366f1;
  --status-purple-plum-text: #5b21b6;
  --status-purple-solid-bg: #8b5cf6;
  --status-purple-strong-text: #7e22ce;
  --status-purple-subtle-bg: #f5f3ff;
  --status-purple-text: #6b21a8;
  --status-purple-violet-bg: #ede9fe;
  --status-purple-violet-text: #7c3aed;
  --surface-purple-5b21b6: #5b21b6;
  --surface-purple-fae8ff: #fae8ff;
  --surface-purple-fdf4ff: #fdf4ff;
  --text-purple-4c1d95: #4c1d95;
  --text-purple-701a75: #701a75;
  --text-purple-86198f: #86198f;
  --text-purple-9333ea: #9333ea;
  --text-purple-c026d3: #c026d3;
  --border-amber-fef08a: #fef08a;
  --surface-rose-fdf2f8: #fdf2f8;
  --text-rose-9f1239: #9f1239;
  --text-rose-ec4899: #ec4899;
  --border-teal-002d3a: #002d3a;
  --border-teal-003644: #003644;
  --border-teal-003a49: #003a49;
  --border-teal-003b4a: #003b4a;
  --border-teal-005073: #005073;
  --border-teal-005580: #005580;
  --border-teal-005a70: #005a70;
  --border-teal-06b6d4: #06b6d4;
  --border-teal-0b4f6c: #0b4f6c;
  --border-teal-0d9488: #0d9488;
  --border-teal-0ea5e9: #0ea5e9;
  --border-teal-0f766e: #0f766e;
  --border-teal-38bdf8: #38bdf8;
  --border-teal-9fb4c2: #9fb4c2;
  --surface-teal-003342: #003342;
  --surface-teal-003344: #003344;
  --surface-teal-003644: #003644;
  --surface-teal-003b4a: #003b4a;
  --surface-teal-004e70: #004e70;
  --surface-teal-005073: #005073;
  --surface-teal-0284c7: #0284c7;
  --surface-teal-0891b2: #0891b2;
  --surface-teal-38bdf8: #38bdf8;
  --surface-teal-9fb4c2: #9fb4c2;
  --surface-teal-e6f0f5: #e6f0f5;
  --surface-teal-e6f4f8: #e6f4f8;
  --surface-teal-ebf8ff: #ebf8ff;
  --surface-teal-ecfeff: #ecfeff;
  --surface-teal-eef3f6: #eef3f6;
  --surface-teal-eef6fb: #eef6fb;
  --surface-teal-f0f7fa: #f0f7fa;
  --surface-teal-f7fafc: #f7fafc;
  --surface-teal-fafcfd: #fafcfd;
  --surface-teal-fcfdfd: #fcfdfd;
  --text-teal-00334e: #00334e;
  --text-teal-003b54: #003b54;
  --text-teal-006699: #006699;
  --text-teal-06b6d4: #06b6d4;
  --text-teal-082f49: #082f49;
  --text-teal-115e59: #115e59;
  --text-teal-155e75: #155e75;
  --text-teal-99f6e4: #99f6e4;
  --text-teal-e0f2fe: #e0f2fe;
  --table-header-bg: #004d61;
  --table-hover-bg: #f0f9ff;
  --table-selected-bg: #e0f2fe;
  --table-stripe-bg: #f8fafc;
  --shadow-2xl: rgba(0,0,0,0.3);
  --shadow-2xs: rgba(0,0,0,0.03);
  --shadow-brand-md: rgba(0,77,97,0.25);
  --shadow-brand-sm: rgba(0,77,97,0.15);
  --shadow-card-lg: rgba(0,0,0,0.12);
  --shadow-elevated: rgba(0,0,0,0.15);
  --shadow-lg: rgba(0,0,0,0.1);
  --shadow-md: rgba(0,0,0,0.08);
  --shadow-modal: rgba(0,0,0,0.2);
  --shadow-rgba-0-0-0-0p02: rgba(0,0,0,0.02);
  --shadow-rgba-0-0-0-0p14: rgba(0,0,0,0.14);
  --shadow-rgba-0-0-0-0p22: rgba(0,0,0,0.22);
  --shadow-rgba-0-0-0-0p28: rgba(0,0,0,0.28);
  --shadow-rgba-0-0-0-0p35: rgba(0,0,0,0.35);
  --shadow-rgba-0-0-0-0p4: rgba(0,0,0,0.4);
  --shadow-rgba-0-0-0-0p45: rgba(0,0,0,0.45);
  --shadow-rgba-0-0-0-0p6: rgba(0,0,0,0.6);
  --shadow-rgba-0-77-97-0p12: rgba(0,77,97,0.12);
  --shadow-rgba-0-77-97-0p18: rgba(0,77,97,0.18);
  --shadow-rgba-0-77-97-0p2: rgba(0,77,97,0.2);
  --shadow-rgba-0-77-97-0p22: rgba(0,77,97,0.22);
  --shadow-rgba-0-78-112-0p1: rgba(0,78,112,0.1);
  --shadow-rgba-0-78-112-0p15: rgba(0,78,112,0.15);
  --shadow-rgba-0-84-130-0p15: rgba(0,84,130,0.15);
  --shadow-rgba-0-84-130-0p18: rgba(0,84,130,0.18);
  --shadow-rgba-11-79-108-0p16: rgba(11,79,108,0.16);
  --shadow-rgba-15-23-42-0p04: rgba(15,23,42,0.04);
  --shadow-rgba-15-23-42-0p05: rgba(15,23,42,0.05);
  --shadow-rgba-15-23-42-0p06: rgba(15,23,42,0.06);
  --shadow-rgba-15-23-42-0p08: rgba(15,23,42,0.08);
  --shadow-rgba-15-23-42-0p1: rgba(15,23,42,0.1);
  --shadow-rgba-15-23-42-0p12: rgba(15,23,42,0.12);
  --shadow-rgba-15-23-42-0p18: rgba(15,23,42,0.18);
  --shadow-rgba-15-23-42-0p22: rgba(15,23,42,0.22);
  --shadow-rgba-15-23-42-0p25: rgba(15,23,42,0.25);
  --shadow-rgba-15-23-42-0p32: rgba(15,23,42,0.32);
  --shadow-rgba-15-41-66-0p06: rgba(15,41,66,0.06);
  --shadow-rgba-15-41-66-0p14: rgba(15,41,66,0.14);
  --shadow-rgba-15-41-66-0p18: rgba(15,41,66,0.18);
  --shadow-rgba-16-185-129-0p2: rgba(16,185,129,0.2);
  --shadow-rgba-16-185-129-0p6: rgba(16,185,129,0.6);
  --shadow-rgba-2-132-199-0p08: rgba(2,132,199,0.08);
  --shadow-rgba-2-132-199-0p12: rgba(2,132,199,0.12);
  --shadow-rgba-2-132-199-0p2: rgba(2,132,199,0.2);
  --shadow-rgba-2-132-199-0p3: rgba(2,132,199,0.3);
  --shadow-rgba-220-38-38-0p18: rgba(220,38,38,0.18);
  --shadow-rgba-56-189-248-0p25: rgba(56,189,248,0.25);
  --shadow-rgba-56-189-248-0p28: rgba(56,189,248,0.28);
  --shadow-rgba-56-189-248-0p32: rgba(56,189,248,0.32);
  --shadow-sm: rgba(0,0,0,0.05);
  --shadow-soft: rgba(0,0,0,0.06);
  --shadow-xl: rgba(0,0,0,0.25);
  --shadow-xs: rgba(0,0,0,0.04);
  --border-rgba-0-77-97-0p25: rgba(0,77,97,0.25);
  --border-rgba-226-232-240-0p8: rgba(226,232,240,0.8);
  --border-rgba-255-255-255-0p12: rgba(255,255,255,0.12);
  --border-rgba-255-255-255-0p14: rgba(255,255,255,0.14);
  --border-rgba-255-255-255-0p15: rgba(255,255,255,0.15);
  --border-rgba-255-255-255-0p25: rgba(255,255,255,0.25);
  --border-rgba-255-255-255-0p28: rgba(255,255,255,0.28);
  --border-rgba-255-255-255-0p3: rgba(255,255,255,0.3);
  --border-rgba-255-255-255-0p35: rgba(255,255,255,0.35);
  --border-rgba-255-255-255-0p4: rgba(255,255,255,0.4);
  --border-rgba-255-255-255-0p45: rgba(255,255,255,0.45);
  --border-rgba-255-255-255-0p55: rgba(255,255,255,0.55);
  --border-rgba-255-255-255-0p7: rgba(255,255,255,0.7);
  --border-rgba-255-255-255-0p8: rgba(255,255,255,0.8);
  --border-rgba-255-255-255-0p95: rgba(255,255,255,0.95);
  --overlay-glass-medium: rgba(255,255,255,0.15);
  --overlay-glass-strong: rgba(255,255,255,0.25);
  --overlay-glass-subtle: rgba(255,255,255,0.12);
  --overlay-loading-bg: rgba(255,255,255,0.75);
  --overlay-rgba-0-0-0-0p04: rgba(0,0,0,0.04);
  --overlay-rgba-0-0-0-0p15: rgba(0,0,0,0.15);
  --overlay-rgba-0-0-0-0p45: rgba(0,0,0,0.45);
  --overlay-rgba-0-77-97-0p65: rgba(0,77,97,0.65);
  --overlay-rgba-0-78-112-0p1: rgba(0,78,112,0.1);
  --overlay-rgba-127-29-29-0p55: rgba(127,29,29,0.55);
  --overlay-rgba-15-23-42-0p08: rgba(15,23,42,0.08);
  --overlay-rgba-15-23-42-0p25: rgba(15,23,42,0.25);
  --overlay-rgba-15-23-42-0p45: rgba(15,23,42,0.45);
  --overlay-rgba-15-23-42-0p48: rgba(15,23,42,0.48);
  --overlay-rgba-15-23-42-0p52: rgba(15,23,42,0.52);
  --overlay-rgba-15-23-42-0p55: rgba(15,23,42,0.55);
  --overlay-rgba-15-23-42-0p58: rgba(15,23,42,0.58);
  --overlay-rgba-15-23-42-0p7: rgba(15,23,42,0.7);
  --overlay-rgba-15-23-42-0p88: rgba(15,23,42,0.88);
  --overlay-rgba-2-132-199-0p08: rgba(2,132,199,0.08);
  --overlay-rgba-2-132-199-0p1: rgba(2,132,199,0.1);
  --overlay-rgba-2-132-199-0p12: rgba(2,132,199,0.12);
  --overlay-rgba-220-227-235-0p85: rgba(220,227,235,0.85);
  --overlay-rgba-224-166-58-0p22: rgba(224,166,58,0.22);
  --overlay-rgba-255-255-255-0p14: rgba(255,255,255,0.14);
  --overlay-rgba-255-255-255-0p16: rgba(255,255,255,0.16);
  --overlay-rgba-255-255-255-0p18: rgba(255,255,255,0.18);
  --overlay-rgba-255-255-255-0p2: rgba(255,255,255,0.2);
  --overlay-rgba-255-255-255-0p22: rgba(255,255,255,0.22);
  --overlay-rgba-255-255-255-0p24: rgba(255,255,255,0.24);
  --overlay-rgba-255-255-255-0p28: rgba(255,255,255,0.28);
  --overlay-rgba-255-255-255-0p32: rgba(255,255,255,0.32);
  --overlay-rgba-255-255-255-0p35: rgba(255,255,255,0.35);
  --overlay-rgba-255-255-255-0p55: rgba(255,255,255,0.55);
  --overlay-rgba-255-255-255-0p72: rgba(255,255,255,0.72);
  --overlay-rgba-255-255-255-0p98: rgba(255,255,255,0.98);
  --overlay-rgba-30-41-59-0p85: rgba(30,41,59,0.85);
  --overlay-scrim: rgba(15,23,42,0.65);
  --overlay-scrim-soft: rgba(15,23,42,0.6);
  --overlay-scrim-strong: rgba(15,23,42,0.75);
  --overlay-surface-frosted: rgba(255,255,255,0.85);
  --overlay-surface-opaque: rgba(255,255,255,0.92);
  --chart-area-emerald: rgba(16, 185, 129, 0.1);
  --chart-area-sky: rgba(2, 132, 199, 0.1);
  --chart-area-teal: rgba(0, 77, 97, 0.08);
  --chart-area-violet: rgba(139, 92, 246, 0.12);
  --chart-axis-label-color: #334155;
  --chart-grid-color: #f1f5f9;
  --chart-grid-strong-color: #e2e8f0;
  --chart-legend-color: #1e293b;
  --chart-legend-muted-color: #334155;
  --chart-series-1: #004d61;
  --chart-series-2: #0284c7;
  --chart-series-3: #10b981;
  --chart-series-4: #f59e0b;
  --chart-series-5: #ef4444;
  --chart-series-6: #8b5cf6;
  --chart-series-7: #d946ef;
  --chart-series-8: #06b6d4;
  --chart-series-9: #f87171;
  --chart-series-muted: #64748b;
  --chart-series-slate: #94a3b8;
  --chart-slice-border: #ffffff;
  --chart-tick-color: #64748b;
}

@media print {
  :root,
  html[data-theme="dark"] {
    color-scheme: light !important;
    --lpff-green: #1b7a48 !important;
    --lpff-blue: #103c68 !important;
    --lpff-teal: #004e70 !important;
    --lpff-teal-hover: #003d58 !important;
    --lpff-link-blue: #0062b1 !important;
    --lpff-gray-bg: #f5f5f5 !important;
    --lpff-text-dark: #333333 !important;
    --lpff-text-muted: #555555 !important;
    --lpff-border-gray: #d4d4d4 !important;
    --lpff-border-focus: #004e70 !important;
    --lpff-error-red: #d32f2f !important;
    --lpff-success-green: #2e7d32 !important;
    --sys-header-bg: #e5edf3 !important;
    --sys-header-font-color: #0f172a !important;
    --sys-text-color: #333333 !important;
    --sys-btn-bg: #004d61 !important;
    --sys-btn-text-color: #ffffff !important;
    --surface-card: #ffffff !important;
    --surface-dark-navy: #0f172a !important;
    --surface-dark-slate: #1e293b !important;
    --surface-elevated: #e2e8f0 !important;
    --surface-footer: #f7f7f7 !important;
    --surface-gray-muted: #f3f4f6 !important;
    --surface-header: #e5edf3 !important;
    --surface-input: #ffffff !important;
    --surface-logo-backing: transparent !important;
    --surface-modal: #f8fafc !important;
    --surface-muted: #f1f5f9 !important;
    --surface-neutral-f5f5f4: #f5f5f4 !important;
    --surface-neutral-faint: #fafafa !important;
    --surface-neutral-ffffff: #ffffff !important;
    --surface-neutral-subtle: #f5f5f5 !important;
    --surface-page: #ffffff !important;
    --surface-panel-muted: #eef2f6 !important;
    --surface-sidebar: #f1f3f6 !important;
    --surface-sidebar-active: #bdbdbd !important;
    --surface-sidebar-hover: #d8dcde !important;
    --surface-slate-light: #94a3b8 !important;
    --surface-slate-mid: #475569 !important;
    --surface-slate-muted: #64748b !important;
    --surface-strong: #cbd5e1 !important;
    --surface-submenu: #e9ecf0 !important;
    --surface-submenu-hover: #dce1e7 !important;
    --surface-subtle: #f8fafc !important;
    --surface-track: #edf2f7 !important;
    --text-body: #333333 !important;
    --text-faint: #cbd5e1 !important;
    --text-gray-muted: #6b7280 !important;
    --text-gray-primary: #111827 !important;
    --text-gray-secondary: #374151 !important;
    --text-icon-muted: #8c9dae !important;
    --text-ink: #222222 !important;
    --text-input-placeholder: #8c8c8c !important;
    --text-inverse: #ffffff !important;
    --text-muted: #64748b !important;
    --text-muted-strong: #475569 !important;
    --text-nav: #3b4252 !important;
    --text-neutral-44403c: #44403c !important;
    --text-neutral-444444: #444444 !important;
    --text-neutral-78716c: #78716c !important;
    --text-neutral-888888: #888888 !important;
    --text-neutral-dim: #666666 !important;
    --text-neutral-muted: #555555 !important;
    --text-neutral-secondary: #595959 !important;
    --text-on-dark: #f8fafc !important;
    --text-on-dark-muted: #e2e8f0 !important;
    --text-placeholder: #8fa0b0 !important;
    --text-primary: #0f172a !important;
    --text-pure: #000000 !important;
    --text-secondary: #334155 !important;
    --text-separator: #a0aec0 !important;
    --text-strong: #1e293b !important;
    --text-subtle: #94a3b8 !important;
    --border-card: #dbe2ea !important;
    --border-control: #cbd6e2 !important;
    --border-dark-slate: #334155 !important;
    --border-default: #cbd5e1 !important;
    --border-emphasis: #64748b !important;
    --border-faint: #f1f5f9 !important;
    --border-gray: #d1d5db !important;
    --border-header: #d2dde6 !important;
    --border-inverse: #ffffff !important;
    --border-neutral: #d9d9d9 !important;
    --border-neutral-666666: #666666 !important;
    --border-neutral-d6d3d1: #d6d3d1 !important;
    --border-neutral-subtle: #e5e5e5 !important;
    --border-search: #cbd7e2 !important;
    --border-sidebar: #e1e6eb !important;
    --border-strong: #94a3b8 !important;
    --border-subtle: #e2e8f0 !important;
    --brand-cerulean-bg: #0b4f6c !important;
    --brand-cerulean-text: #0b4f6c !important;
    --brand-cyan-teal-bg: #0d9488 !important;
    --brand-deep-teal-bg: #004e70 !important;
    --brand-deep-teal-border: #004e70 !important;
    --brand-deep-teal-text: #004e70 !important;
    --brand-navy-bg: #0f2942 !important;
    --brand-navy-text: #0f2942 !important;
    --brand-ocean-bg: #005482 !important;
    --brand-ocean-border: #005482 !important;
    --brand-royal-navy-text: #103c68 !important;
    --brand-slate-teal-text: #154e70 !important;
    --brand-teal-accent-bg: #0f766e !important;
    --brand-teal-bg: #004d61 !important;
    --brand-teal-border: #004d61 !important;
    --brand-teal-dark-bg: #004052 !important;
    --brand-teal-hover-bg: #003847 !important;
    --brand-teal-text: #004d61 !important;
    --brand-ocean-text: #005482 !important;
    --link-royal: #2563eb !important;
    --link-sky: #0284c7 !important;
    --border-success-047857: #047857 !important;
    --border-success-059669: #059669 !important;
    --border-success-15803d: #15803d !important;
    --border-success-22c55e: #22c55e !important;
    --border-success-6ee7b7: #6ee7b7 !important;
    --border-success-84e1bc: #84e1bc !important;
    --brand-cyan-teal-text: #0d9488 !important;
    --brand-teal-accent-text: #0f766e !important;
    --status-success-aqua-bg: #f0fdfa !important;
    --status-success-bg: #dcfce7 !important;
    --status-success-border: #bbf7d0 !important;
    --status-success-deep-bg: #15803d !important;
    --status-success-deep-emerald-text: #047857 !important;
    --status-success-emerald-bg: #ecfdf5 !important;
    --status-success-emerald-border: #a7f3d0 !important;
    --status-success-emerald-solid-bg: #10b981 !important;
    --status-success-emerald-text: #10b981 !important;
    --status-success-emerald-vivid-border: #10b981 !important;
    --status-success-forest-text: #065f46 !important;
    --status-success-jade-solid-bg: #059669 !important;
    --status-success-jade-text: #059669 !important;
    --status-success-mint-bg: #d1fae5 !important;
    --status-success-pine-text: #064e3b !important;
    --status-success-solid-bg: #16a34a !important;
    --status-success-strong-border: #86efac !important;
    --status-success-strong-text: #15803d !important;
    --status-success-subtle-bg: #f0fdf4 !important;
    --status-success-teal-bg: #ccfbf1 !important;
    --status-success-teal-border: #99f6e4 !important;
    --status-success-text: #166534 !important;
    --status-success-vivid-border: #16a34a !important;
    --status-success-vivid-text: #16a34a !important;
    --surface-success-047857: #047857 !important;
    --surface-success-064e3b: #064e3b !important;
    --surface-success-10b981: #10b981 !important;
    --surface-success-166534: #166534 !important;
    --surface-success-22c55e: #22c55e !important;
    --surface-success-def7ec: #def7ec !important;
    --text-success-03543f: #03543f !important;
    --text-success-14532d: #14532d !important;
    --text-success-4ade80: #4ade80 !important;
    --text-success-ecfdf5: #ecfdf5 !important;
    --border-warning-92400e: #92400e !important;
    --border-warning-e0a63a: #e0a63a !important;
    --border-warning-eab308: #eab308 !important;
    --border-warning-fde047: #fde047 !important;
    --border-warning-fed7aa: #fed7aa !important;
    --status-warning-amber-border: #d97706 !important;
    --status-warning-amber-solid-bg: #d97706 !important;
    --status-warning-bg: #fef3c7 !important;
    --status-warning-border: #fde68a !important;
    --status-warning-bright-text: #f59e0b !important;
    --status-warning-brown-text: #78350f !important;
    --status-warning-burnt-text: #9a3412 !important;
    --status-warning-deep-bg: #b45309 !important;
    --status-warning-faint-bg: #fefce8 !important;
    --status-warning-gold-text: #a16207 !important;
    --status-warning-olive-text: #854d0e !important;
    --status-warning-on-dark-text: #fef08a !important;
    --status-warning-orange-bg: #ffedd5 !important;
    --status-warning-orange-border: #fdba74 !important;
    --status-warning-orange-subtle-bg: #fff7ed !important;
    --status-warning-orange-text: #ea580c !important;
    --status-warning-rust-text: #c2410c !important;
    --status-warning-solid-bg: #f59e0b !important;
    --status-warning-strong-border: #fcd34d !important;
    --status-warning-strong-text: #b45309 !important;
    --status-warning-subtle-bg: #fffbeb !important;
    --status-warning-text: #92400e !important;
    --status-warning-vivid-border: #f59e0b !important;
    --status-warning-vivid-text: #d97706 !important;
    --status-warning-yellow-bg: #fef9c3 !important;
    --surface-warning-92400e: #92400e !important;
    --surface-warning-fde68a: #fde68a !important;
    --surface-warning-fff6e5: #fff6e5 !important;
    --text-warning-8a5a00: #8a5a00 !important;
    --text-warning-ca8a04: #ca8a04 !important;
    --border-danger-b91c1c: #b91c1c !important;
    --border-danger-e11d48: #e11d48 !important;
    --border-danger-f87171: #f87171 !important;
    --border-danger-f8b4b4: #f8b4b4 !important;
    --border-danger-feb2b2: #feb2b2 !important;
    --border-danger-fee2e2: #fee2e2 !important;
    --status-danger-bg: #fee2e2 !important;
    --status-danger-border: #fecaca !important;
    --status-danger-bright-solid-bg: #ef4444 !important;
    --status-danger-bright-text: #ef4444 !important;
    --status-danger-crimson-bg: #991b1b !important;
    --status-danger-crimson-border: #dc2626 !important;
    --status-danger-deep-bg: #b91c1c !important;
    --status-danger-maroon-text: #7f1d1d !important;
    --status-danger-rose-bg: #fff1f2 !important;
    --status-danger-soft-text: #f87171 !important;
    --status-danger-solid-bg: #dc2626 !important;
    --status-danger-strong-border: #fca5a5 !important;
    --status-danger-strong-text: #b91c1c !important;
    --status-danger-subtle-bg: #fef2f2 !important;
    --status-danger-text: #991b1b !important;
    --status-danger-vivid-border: #ef4444 !important;
    --status-danger-vivid-text: #dc2626 !important;
    --surface-danger-7f1d1d: #7f1d1d !important;
    --surface-danger-c2410c: #c2410c !important;
    --surface-danger-fde8e8: #fde8e8 !important;
    --surface-danger-fff9f9: #fff9f9 !important;
    --surface-danger-fffafa: #fffafa !important;
    --text-danger-7c2d12: #7c2d12 !important;
    --text-danger-9b1c1c: #9b1c1c !important;
    --text-danger-c53030: #c53030 !important;
    --text-danger-e11d48: #e11d48 !important;
    --text-danger-fca5a5: #fca5a5 !important;
    --text-danger-fecaca: #fecaca !important;
    --text-danger-fee2e2: #fee2e2 !important;
    --text-danger-fef2f2: #fef2f2 !important;
    --border-info-0f2942: #0f2942 !important;
    --border-info-1d4ed8: #1d4ed8 !important;
    --border-info-3730a3: #3730a3 !important;
    --border-info-3b82f6: #3b82f6 !important;
    --border-info-4338ca: #4338ca !important;
    --border-info-6366f1: #6366f1 !important;
    --border-info-a4cafe: #a4cafe !important;
    --border-info-c7d2de: #c7d2de !important;
    --border-info-cbd5e0: #cbd5e0 !important;
    --border-info-d0d7de: #d0d7de !important;
    --border-info-d0dbe5: #d0dbe5 !important;
    --border-info-e6ecf1: #e6ecf1 !important;
    --border-info-e8edf2: #e8edf2 !important;
    --border-info-edf2f7: #edf2f7 !important;
    --border-info-eef2f6: #eef2f6 !important;
    --border-info-f8fafc: #f8fafc !important;
    --brand-sky-border: #0284c7 !important;
    --status-info-azure-text: #3b82f6 !important;
    --status-info-bg: #e0f2fe !important;
    --status-info-blue-bg: #dbeafe !important;
    --status-info-blue-border: #bfdbfe !important;
    --status-info-blue-subtle-bg: #eff6ff !important;
    --status-info-blue-text: #1d4ed8 !important;
    --status-info-border: #bae6fd !important;
    --status-info-bright-border: #7dd3fc !important;
    --status-info-bright-text: #38bdf8 !important;
    --status-info-deep-bg: #0369a1 !important;
    --status-info-deep-text: #0c4a6e !important;
    --status-info-indigo-text: #1e40af !important;
    --status-info-royal-border: #93c5fd !important;
    --status-info-solid-bg: #0284c7 !important;
    --status-info-strong-border: #0369a1 !important;
    --status-info-strong-text: #075985 !important;
    --status-info-subtle-bg: #f0f9ff !important;
    --status-info-text: #0369a1 !important;
    --surface-info-8291a0: #8291a0 !important;
    --surface-info-cbd5e1: #cbd5e1 !important;
    --surface-info-dce3eb: #dce3eb !important;
    --surface-info-dde2e8: #dde2e8 !important;
    --surface-info-e1effe: #e1effe !important;
    --surface-info-e4e9ee: #e4e9ee !important;
    --surface-info-eef2ff: #eef2ff !important;
    --surface-info-f1f3f6: #f1f3f6 !important;
    --surface-info-f7f9fb: #f7f9fb !important;
    --surface-info-fcfdfe: #fcfdfe !important;
    --text-info-1e3a8a: #1e3a8a !important;
    --text-info-1e429f: #1e429f !important;
    --text-info-2b3b4c: #2b3b4c !important;
    --text-info-2b6cb0: #2b6cb0 !important;
    --text-info-3730a3: #3730a3 !important;
    --text-info-4a5568: #4a5568 !important;
    --text-info-4b5563: #4b5563 !important;
    --text-info-4f46e5: #4f46e5 !important;
    --text-info-55687a: #55687a !important;
    --text-info-5b6e82: #5b6e82 !important;
    --text-info-6d7f92: #6d7f92 !important;
    --text-info-93c5fd: #93c5fd !important;
    --text-info-9ca3af: #9ca3af !important;
    --border-purple-5b21b6: #5b21b6 !important;
    --border-purple-8b5cf6: #8b5cf6 !important;
    --border-purple-a855f7: #a855f7 !important;
    --border-purple-f5d0fe: #f5d0fe !important;
    --status-purple-bg: #f3e8ff !important;
    --status-purple-border: #ddd6fe !important;
    --status-purple-bright-text: #8b5cf6 !important;
    --status-purple-deep-bg: #6b21a8 !important;
    --status-purple-deep-violet-text: #6d28d9 !important;
    --status-purple-indigo-bg: #e0e7ff !important;
    --status-purple-indigo-border: #c7d2fe !important;
    --status-purple-indigo-text: #6366f1 !important;
    --status-purple-plum-text: #5b21b6 !important;
    --status-purple-solid-bg: #8b5cf6 !important;
    --status-purple-strong-text: #7e22ce !important;
    --status-purple-subtle-bg: #f5f3ff !important;
    --status-purple-text: #6b21a8 !important;
    --status-purple-violet-bg: #ede9fe !important;
    --status-purple-violet-text: #7c3aed !important;
    --surface-purple-5b21b6: #5b21b6 !important;
    --surface-purple-fae8ff: #fae8ff !important;
    --surface-purple-fdf4ff: #fdf4ff !important;
    --text-purple-4c1d95: #4c1d95 !important;
    --text-purple-701a75: #701a75 !important;
    --text-purple-86198f: #86198f !important;
    --text-purple-9333ea: #9333ea !important;
    --text-purple-c026d3: #c026d3 !important;
    --border-amber-fef08a: #fef08a !important;
    --surface-rose-fdf2f8: #fdf2f8 !important;
    --text-rose-9f1239: #9f1239 !important;
    --text-rose-ec4899: #ec4899 !important;
    --border-teal-002d3a: #002d3a !important;
    --border-teal-003644: #003644 !important;
    --border-teal-003a49: #003a49 !important;
    --border-teal-003b4a: #003b4a !important;
    --border-teal-005073: #005073 !important;
    --border-teal-005580: #005580 !important;
    --border-teal-005a70: #005a70 !important;
    --border-teal-06b6d4: #06b6d4 !important;
    --border-teal-0b4f6c: #0b4f6c !important;
    --border-teal-0d9488: #0d9488 !important;
    --border-teal-0ea5e9: #0ea5e9 !important;
    --border-teal-0f766e: #0f766e !important;
    --border-teal-38bdf8: #38bdf8 !important;
    --border-teal-9fb4c2: #9fb4c2 !important;
    --surface-teal-003342: #003342 !important;
    --surface-teal-003344: #003344 !important;
    --surface-teal-003644: #003644 !important;
    --surface-teal-003b4a: #003b4a !important;
    --surface-teal-004e70: #004e70 !important;
    --surface-teal-005073: #005073 !important;
    --surface-teal-0284c7: #0284c7 !important;
    --surface-teal-0891b2: #0891b2 !important;
    --surface-teal-38bdf8: #38bdf8 !important;
    --surface-teal-9fb4c2: #9fb4c2 !important;
    --surface-teal-e6f0f5: #e6f0f5 !important;
    --surface-teal-e6f4f8: #e6f4f8 !important;
    --surface-teal-ebf8ff: #ebf8ff !important;
    --surface-teal-ecfeff: #ecfeff !important;
    --surface-teal-eef3f6: #eef3f6 !important;
    --surface-teal-eef6fb: #eef6fb !important;
    --surface-teal-f0f7fa: #f0f7fa !important;
    --surface-teal-f7fafc: #f7fafc !important;
    --surface-teal-fafcfd: #fafcfd !important;
    --surface-teal-fcfdfd: #fcfdfd !important;
    --text-teal-00334e: #00334e !important;
    --text-teal-003b54: #003b54 !important;
    --text-teal-006699: #006699 !important;
    --text-teal-06b6d4: #06b6d4 !important;
    --text-teal-082f49: #082f49 !important;
    --text-teal-115e59: #115e59 !important;
    --text-teal-155e75: #155e75 !important;
    --text-teal-99f6e4: #99f6e4 !important;
    --text-teal-e0f2fe: #e0f2fe !important;
    --table-header-bg: #004d61 !important;
    --table-hover-bg: #f0f9ff !important;
    --table-selected-bg: #e0f2fe !important;
    --table-stripe-bg: #f8fafc !important;
    --shadow-2xl: rgba(0,0,0,0.3) !important;
    --shadow-2xs: rgba(0,0,0,0.03) !important;
    --shadow-brand-md: rgba(0,77,97,0.25) !important;
    --shadow-brand-sm: rgba(0,77,97,0.15) !important;
    --shadow-card-lg: rgba(0,0,0,0.12) !important;
    --shadow-elevated: rgba(0,0,0,0.15) !important;
    --shadow-lg: rgba(0,0,0,0.1) !important;
    --shadow-md: rgba(0,0,0,0.08) !important;
    --shadow-modal: rgba(0,0,0,0.2) !important;
    --shadow-rgba-0-0-0-0p02: rgba(0,0,0,0.02) !important;
    --shadow-rgba-0-0-0-0p14: rgba(0,0,0,0.14) !important;
    --shadow-rgba-0-0-0-0p22: rgba(0,0,0,0.22) !important;
    --shadow-rgba-0-0-0-0p28: rgba(0,0,0,0.28) !important;
    --shadow-rgba-0-0-0-0p35: rgba(0,0,0,0.35) !important;
    --shadow-rgba-0-0-0-0p4: rgba(0,0,0,0.4) !important;
    --shadow-rgba-0-0-0-0p45: rgba(0,0,0,0.45) !important;
    --shadow-rgba-0-0-0-0p6: rgba(0,0,0,0.6) !important;
    --shadow-rgba-0-77-97-0p12: rgba(0,77,97,0.12) !important;
    --shadow-rgba-0-77-97-0p18: rgba(0,77,97,0.18) !important;
    --shadow-rgba-0-77-97-0p2: rgba(0,77,97,0.2) !important;
    --shadow-rgba-0-77-97-0p22: rgba(0,77,97,0.22) !important;
    --shadow-rgba-0-78-112-0p1: rgba(0,78,112,0.1) !important;
    --shadow-rgba-0-78-112-0p15: rgba(0,78,112,0.15) !important;
    --shadow-rgba-0-84-130-0p15: rgba(0,84,130,0.15) !important;
    --shadow-rgba-0-84-130-0p18: rgba(0,84,130,0.18) !important;
    --shadow-rgba-11-79-108-0p16: rgba(11,79,108,0.16) !important;
    --shadow-rgba-15-23-42-0p04: rgba(15,23,42,0.04) !important;
    --shadow-rgba-15-23-42-0p05: rgba(15,23,42,0.05) !important;
    --shadow-rgba-15-23-42-0p06: rgba(15,23,42,0.06) !important;
    --shadow-rgba-15-23-42-0p08: rgba(15,23,42,0.08) !important;
    --shadow-rgba-15-23-42-0p1: rgba(15,23,42,0.1) !important;
    --shadow-rgba-15-23-42-0p12: rgba(15,23,42,0.12) !important;
    --shadow-rgba-15-23-42-0p18: rgba(15,23,42,0.18) !important;
    --shadow-rgba-15-23-42-0p22: rgba(15,23,42,0.22) !important;
    --shadow-rgba-15-23-42-0p25: rgba(15,23,42,0.25) !important;
    --shadow-rgba-15-23-42-0p32: rgba(15,23,42,0.32) !important;
    --shadow-rgba-15-41-66-0p06: rgba(15,41,66,0.06) !important;
    --shadow-rgba-15-41-66-0p14: rgba(15,41,66,0.14) !important;
    --shadow-rgba-15-41-66-0p18: rgba(15,41,66,0.18) !important;
    --shadow-rgba-16-185-129-0p2: rgba(16,185,129,0.2) !important;
    --shadow-rgba-16-185-129-0p6: rgba(16,185,129,0.6) !important;
    --shadow-rgba-2-132-199-0p08: rgba(2,132,199,0.08) !important;
    --shadow-rgba-2-132-199-0p12: rgba(2,132,199,0.12) !important;
    --shadow-rgba-2-132-199-0p2: rgba(2,132,199,0.2) !important;
    --shadow-rgba-2-132-199-0p3: rgba(2,132,199,0.3) !important;
    --shadow-rgba-220-38-38-0p18: rgba(220,38,38,0.18) !important;
    --shadow-rgba-56-189-248-0p25: rgba(56,189,248,0.25) !important;
    --shadow-rgba-56-189-248-0p28: rgba(56,189,248,0.28) !important;
    --shadow-rgba-56-189-248-0p32: rgba(56,189,248,0.32) !important;
    --shadow-sm: rgba(0,0,0,0.05) !important;
    --shadow-soft: rgba(0,0,0,0.06) !important;
    --shadow-xl: rgba(0,0,0,0.25) !important;
    --shadow-xs: rgba(0,0,0,0.04) !important;
    --border-rgba-0-77-97-0p25: rgba(0,77,97,0.25) !important;
    --border-rgba-226-232-240-0p8: rgba(226,232,240,0.8) !important;
    --border-rgba-255-255-255-0p12: rgba(255,255,255,0.12) !important;
    --border-rgba-255-255-255-0p14: rgba(255,255,255,0.14) !important;
    --border-rgba-255-255-255-0p15: rgba(255,255,255,0.15) !important;
    --border-rgba-255-255-255-0p25: rgba(255,255,255,0.25) !important;
    --border-rgba-255-255-255-0p28: rgba(255,255,255,0.28) !important;
    --border-rgba-255-255-255-0p3: rgba(255,255,255,0.3) !important;
    --border-rgba-255-255-255-0p35: rgba(255,255,255,0.35) !important;
    --border-rgba-255-255-255-0p4: rgba(255,255,255,0.4) !important;
    --border-rgba-255-255-255-0p45: rgba(255,255,255,0.45) !important;
    --border-rgba-255-255-255-0p55: rgba(255,255,255,0.55) !important;
    --border-rgba-255-255-255-0p7: rgba(255,255,255,0.7) !important;
    --border-rgba-255-255-255-0p8: rgba(255,255,255,0.8) !important;
    --border-rgba-255-255-255-0p95: rgba(255,255,255,0.95) !important;
    --overlay-glass-medium: rgba(255,255,255,0.15) !important;
    --overlay-glass-strong: rgba(255,255,255,0.25) !important;
    --overlay-glass-subtle: rgba(255,255,255,0.12) !important;
    --overlay-loading-bg: rgba(255,255,255,0.75) !important;
    --overlay-rgba-0-0-0-0p04: rgba(0,0,0,0.04) !important;
    --overlay-rgba-0-0-0-0p15: rgba(0,0,0,0.15) !important;
    --overlay-rgba-0-0-0-0p45: rgba(0,0,0,0.45) !important;
    --overlay-rgba-0-77-97-0p65: rgba(0,77,97,0.65) !important;
    --overlay-rgba-0-78-112-0p1: rgba(0,78,112,0.1) !important;
    --overlay-rgba-127-29-29-0p55: rgba(127,29,29,0.55) !important;
    --overlay-rgba-15-23-42-0p08: rgba(15,23,42,0.08) !important;
    --overlay-rgba-15-23-42-0p25: rgba(15,23,42,0.25) !important;
    --overlay-rgba-15-23-42-0p45: rgba(15,23,42,0.45) !important;
    --overlay-rgba-15-23-42-0p48: rgba(15,23,42,0.48) !important;
    --overlay-rgba-15-23-42-0p52: rgba(15,23,42,0.52) !important;
    --overlay-rgba-15-23-42-0p55: rgba(15,23,42,0.55) !important;
    --overlay-rgba-15-23-42-0p58: rgba(15,23,42,0.58) !important;
    --overlay-rgba-15-23-42-0p7: rgba(15,23,42,0.7) !important;
    --overlay-rgba-15-23-42-0p88: rgba(15,23,42,0.88) !important;
    --overlay-rgba-2-132-199-0p08: rgba(2,132,199,0.08) !important;
    --overlay-rgba-2-132-199-0p1: rgba(2,132,199,0.1) !important;
    --overlay-rgba-2-132-199-0p12: rgba(2,132,199,0.12) !important;
    --overlay-rgba-220-227-235-0p85: rgba(220,227,235,0.85) !important;
    --overlay-rgba-224-166-58-0p22: rgba(224,166,58,0.22) !important;
    --overlay-rgba-255-255-255-0p14: rgba(255,255,255,0.14) !important;
    --overlay-rgba-255-255-255-0p16: rgba(255,255,255,0.16) !important;
    --overlay-rgba-255-255-255-0p18: rgba(255,255,255,0.18) !important;
    --overlay-rgba-255-255-255-0p2: rgba(255,255,255,0.2) !important;
    --overlay-rgba-255-255-255-0p22: rgba(255,255,255,0.22) !important;
    --overlay-rgba-255-255-255-0p24: rgba(255,255,255,0.24) !important;
    --overlay-rgba-255-255-255-0p28: rgba(255,255,255,0.28) !important;
    --overlay-rgba-255-255-255-0p32: rgba(255,255,255,0.32) !important;
    --overlay-rgba-255-255-255-0p35: rgba(255,255,255,0.35) !important;
    --overlay-rgba-255-255-255-0p55: rgba(255,255,255,0.55) !important;
    --overlay-rgba-255-255-255-0p72: rgba(255,255,255,0.72) !important;
    --overlay-rgba-255-255-255-0p98: rgba(255,255,255,0.98) !important;
    --overlay-rgba-30-41-59-0p85: rgba(30,41,59,0.85) !important;
    --overlay-scrim: rgba(15,23,42,0.65) !important;
    --overlay-scrim-soft: rgba(15,23,42,0.6) !important;
    --overlay-scrim-strong: rgba(15,23,42,0.75) !important;
    --overlay-surface-frosted: rgba(255,255,255,0.85) !important;
    --overlay-surface-opaque: rgba(255,255,255,0.92) !important;
    --chart-area-emerald: rgba(16, 185, 129, 0.1) !important;
    --chart-area-sky: rgba(2, 132, 199, 0.1) !important;
    --chart-area-teal: rgba(0, 77, 97, 0.08) !important;
    --chart-area-violet: rgba(139, 92, 246, 0.12) !important;
    --chart-axis-label-color: #334155 !important;
    --chart-grid-color: #f1f5f9 !important;
    --chart-grid-strong-color: #e2e8f0 !important;
    --chart-legend-color: #1e293b !important;
    --chart-legend-muted-color: #334155 !important;
    --chart-series-1: #004d61 !important;
    --chart-series-2: #0284c7 !important;
    --chart-series-3: #10b981 !important;
    --chart-series-4: #f59e0b !important;
    --chart-series-5: #ef4444 !important;
    --chart-series-6: #8b5cf6 !important;
    --chart-series-7: #d946ef !important;
    --chart-series-8: #06b6d4 !important;
    --chart-series-9: #f87171 !important;
    --chart-series-muted: #64748b !important;
    --chart-series-slate: #94a3b8 !important;
    --chart-slice-border: #ffffff !important;
    --chart-tick-color: #64748b !important;
  }
  html[data-theme="dark"] img.topbar-logo,
  html[data-theme="dark"] img.lpff-logo-img,
  html[data-theme="dark"] img[src*="/assets/lpff-logo"],
  html[data-theme="dark"] img[src*="/assets/lpc-logo"] {
    background-color: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
  }
}

/* Profile Popup Segmented Appearance Control (Light / Dark / System) */
.appearance-segmented-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 8px;
  background-color: var(--surface-muted, #f1f5f9);
  border: 1px solid var(--border-default, #cbd5e1);
  box-sizing: border-box;
}

.appearance-seg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary, #334155);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.appearance-seg-btn:hover:not(.active) {
  background-color: var(--surface-subtle, #f8fafc);
  color: var(--text-primary, #0f172a);
}

.appearance-seg-btn.active {
  background-color: var(--brand-teal-bg, #004d61);
  color: var(--text-inverse, #ffffff);
  border-color: var(--brand-teal-border, #004d61);
  box-shadow: 0 1px 3px var(--shadow-md, rgba(0, 0, 0, 0.08));
}

.appearance-seg-btn:focus-visible {
  outline: 2px solid var(--link-sky, #0284c7);
  outline-offset: 1px;
}
/* END_PROMPT_706_TOKENS */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: var(--sys-font-family);
  background-color: var(--surface-page, #ffffff);
  color: var(--sys-text-color);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* App Wrapper */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* Main Content Area */
.main-wrapper {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 100px;
}

/* Login Container - Centered Single Column matching screenshot */
.portal-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 480px;
  width: 100%;
  margin: 10px auto 0;
}

/* Left Panel - Welcome Banner */
.welcome-card {
  background-color: var(--lpff-gray-bg);
  border-radius: 4px;
  min-height: 290px;
  padding: 38px 42px;
  display: flex;
  align-items: flex-start;
  box-shadow: 0 1px 3px var(--shadow-xs, rgba(0, 0, 0, 0.04));
}

.welcome-heading {
  color: var(--lpff-green);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.2px;
}

/* Right Panel - Login Form Container */
.login-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

/* LPFF Logo Header */
.lpff-logo-container {
  margin-bottom: 20px;
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.lpff-logo-img {
  width: 275px;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
}

/* Form Subtitle */
.form-prompt {
  color: var(--lpff-text-muted);
  font-size: 13.5px;
  margin-bottom: 18px;
  font-weight: 400;
}

/* Form Controls */
.login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
  margin-bottom: 14px;
}

.form-input {
  width: 100%;
  height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--lpff-border-gray);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-ink, #222222);
  background-color: var(--surface-input, #ffffff);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input::placeholder {
  color: var(--text-input-placeholder, #8c8c8c);
  font-size: 13.5px;
}

.form-input:focus {
  outline: none;
  border-color: var(--lpff-border-focus);
  box-shadow: 0 0 0 2px var(--shadow-rgba-0-78-112-0p15, rgba(0, 78, 112, 0.15));
}

.form-input.input-error {
  border-color: var(--lpff-error-red);
  background-color: var(--surface-danger-fff9f9, #fff9f9);
}

/* Forgot Password Link */
.forgot-password-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
  margin-bottom: 6px;
}

.forgot-password-link {
  color: var(--lpff-link-blue);
  font-size: 12px;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}

.forgot-password-link:hover {
  text-decoration: underline;
}

/* Sign In Button */
.btn-signin {
  align-self: flex-start;
  background-color: var(--sys-btn-bg, #004d61);
  color: var(--sys-btn-text-color, #ffffff);
  border: none;
  border-radius: 4px;
  padding: 8px 24px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  transition: background-color 0.15s ease, transform 0.05s active, filter 0.15s ease;
}

.btn-signin:hover {
  filter: brightness(0.92);
}

.btn-signin:active {
  transform: translateY(1px);
}

.btn-sys-primary {
  background-color: var(--sys-btn-bg, #004d61) !important;
  color: var(--sys-btn-text-color, #ffffff) !important;
  transition: filter 0.15s ease, transform 0.05s ease;
}

.btn-sys-primary:hover {
  filter: brightness(0.92);
}

.theme-swatch-btn {
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  outline: none;
}

.theme-swatch-btn:hover {
  transform: scale(1.25);
  box-shadow: 0 2px 5px var(--shadow-xl, rgba(0,0,0,0.25));
  z-index: 5;
}

.theme-swatch-btn:active {
  transform: scale(1.05);
}

.btn-signin:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Button Spinner */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--border-rgba-255-255-255-0p4, rgba(255, 255, 255, 0.4));
  border-radius: 50%;
  border-top-color: var(--border-inverse, #ffffff);
  animation: spin 0.7s linear infinite;
  margin-right: 6px;
}

/* Table Loading Overlay & Spinner */
.table-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--overlay-loading-bg, rgba(255, 255, 255, 0.75));
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: opacity 0.2s ease;
}

.table-loading-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-card, #ffffff);
  padding: 12px 22px;
  border-radius: 30px;
  box-shadow: 0 4px 18px var(--shadow-brand-sm, rgba(0, 77, 97, 0.15)), 0 1px 3px var(--shadow-soft, rgba(0, 0, 0, 0.06));
  border: 1px solid var(--border-subtle, #e2e8f0);
  animation: fadeInPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.table-spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid var(--border-subtle, #e2e8f0);
  border-top-color: var(--brand-teal-border, #004d61);
  border-right-color: var(--brand-sky-border, #0284c7);
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
}

.table-loading-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary, #0f172a);
}

@keyframes fadeInPop {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Support Help Text */
.support-text {
  color: var(--lpff-text-muted);
  font-size: 12px;
  margin-top: 14px;
  line-height: 1.4;
}

.support-link {
  color: var(--lpff-link-blue);
  text-decoration: none;
  cursor: pointer;
}

.support-link:hover {
  text-decoration: underline;
}

/* Alert Notification */
.alert-box {
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 12px;
  display: none;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.alert-box.alert-error {
  display: flex;
  background-color: var(--surface-danger-fde8e8, #fde8e8);
  color: var(--text-danger-9b1c1c, #9b1c1c);
  border: 1px solid var(--border-danger-f8b4b4, #f8b4b4);
}

.alert-box.alert-success {
  display: flex;
  background-color: var(--surface-success-def7ec, #def7ec);
  color: var(--text-success-03543f, #03543f);
  border: 1px solid var(--border-success-84e1bc, #84e1bc);
}

.alert-box.alert-info {
  display: flex;
  background-color: var(--surface-info-e1effe, #e1effe);
  color: var(--text-info-1e429f, #1e429f);
  border: 1px solid var(--border-info-a4cafe, #a4cafe);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.app-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52px;
  background-color: var(--surface-footer, #f7f7f7);
  border-top: 1px solid var(--border-neutral-subtle, #e5e5e5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  font-size: 12px;
  color: var(--text-neutral-dim, #666666);
}

/* ==========================================================================
   Full Portal Layout (Exact Match to Screenshot)
   ========================================================================== */
.portal-app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  background-color: var(--surface-page, #ffffff);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
}

/* Top Navigation Bar */
.portal-topbar {
  height: 52px;
  background-color: var(--sys-header-bg, #e5edf3);
  border-bottom: 1px solid var(--border-header, #d2dde6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.2s ease;
}

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

.btn-topbar-sidebar-toggle {
  width: 32px;
  height: 32px;
  background-color: var(--surface-card, #ffffff);
  border: 1px solid var(--border-control, #cbd6e2);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--brand-teal-text, #004d61);
  font-size: 14px;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px var(--shadow-sm, rgba(0, 0, 0, 0.05));
  flex-shrink: 0;
  padding: 0;
}

.btn-topbar-sidebar-toggle:hover {
  background-color: var(--status-success-subtle-bg, #f0fdf4);
  border-color: var(--brand-teal-border, #004d61);
  color: var(--brand-teal-text, #004d61);
  transform: scale(1.05);
}

.btn-topbar-sidebar-toggle:active {
  transform: scale(0.98);
}

.topbar-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.topbar-center {
  flex: 1;
  max-width: 520px;
  margin: 0 20px;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  height: 28px;
  padding: 4px 30px 4px 10px;
  background-color: var(--surface-input, #ffffff);
  border: 1px solid var(--border-search, #cbd7e2);
  border-radius: 3px;
  font-size: 13px;
  font-family: inherit;
  color: var(--sys-text-color, #333333);
}

.search-input::placeholder {
  color: var(--text-placeholder, #8fa0b0);
  font-size: 12.5px;
}

.search-input:focus {
  outline: none;
  border-color: var(--border-teal-005073, #005073);
  box-shadow: 0 0 0 1px var(--surface-teal-005073, #005073);
}

.search-icon {
  position: absolute;
  right: 8px;
  color: var(--text-icon-muted, #8c9dae);
  font-size: 12px;
  pointer-events: none;
}

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

.user-profile-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: transparent;
  padding: 4px 8px;
  border-radius: 3px;
}

.user-avatar-box {
  width: 34px;
  height: 34px;
  background-color: var(--surface-card, #ffffff);
  border: 1.5px solid var(--border-control, #cbd6e2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.15s ease;
}

.user-avatar-box:hover {
  border-color: var(--sys-btn-bg, #004d61);
  box-shadow: 0 0 0 2px var(--shadow-brand-sm, rgba(0, 77, 97, 0.15));
}

.user-avatar-box .avatar-initial {
  font-size: 14px;
  font-weight: 700;
  color: var(--sys-btn-bg, #004d61);
  text-transform: uppercase;
}

#profileModalAvatarContainer:hover #profileAvatarHoverOverlay {
  opacity: 1 !important;
}

.user-icon-glyph {
  font-size: 17px;
  color: var(--text-info-5b6e82, #5b6e82);
}

.user-details-col {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.user-display-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sys-header-font-color, #222222);
  transition: color 0.2s ease;
}

.user-action-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  margin-top: 3px;
}

.user-sublink {
  color: var(--lpff-link-blue);
  text-decoration: none;
  cursor: pointer;
}

.user-sublink:hover {
  text-decoration: underline;
}

.user-sublink-sep {
  color: var(--text-separator, #a0aec0);
  font-size: 10px;
}

/* Portal Body */
.portal-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* Left Sidebar */
.portal-sidebar {
  width: 315px;
  background-color: var(--surface-sidebar, #f1f3f6);
  border-right: 1px solid var(--border-sidebar, #e1e6eb);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 52px);
  overflow-y: auto;
  overflow-x: hidden;
  flex-shrink: 0;
  transition: transform 0.2s ease, width 0.2s ease;
}

.portal-sidebar.collapsed {
  width: 54px !important;
  min-width: 54px !important;
  max-width: 54px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-right: 1px solid var(--border-sidebar, #e1e6eb) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  visibility: visible !important;
  transform: none !important;
  display: flex !important;
  flex-direction: column !important;
}

.portal-sidebar.collapsed .sidebar-nav {
  padding: 4px 0 !important;
}

.portal-sidebar.collapsed .nav-item {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
}

.portal-sidebar.collapsed .nav-link {
  justify-content: center !important;
  padding: 9px 0 !important;
  width: 100% !important;
  gap: 0 !important;
  position: relative !important;
}

.portal-sidebar.collapsed .nav-icon {
  font-size: 15px !important;
  margin: 0 !important;
  width: 18px !important;
  text-align: center !important;
}

.portal-sidebar.collapsed .nav-label,
.portal-sidebar.collapsed .nav-submenu-arrow,
.portal-sidebar.collapsed .btn-sidebar-icon,
.portal-sidebar.collapsed .sidebar-item-actions,
.portal-sidebar.collapsed .admin-only-gear,
.portal-sidebar.collapsed .nav-badge,
.portal-sidebar.collapsed .sidebar-action-wrapper,
.portal-sidebar.collapsed .sidebar-footer-brand,
.portal-sidebar.collapsed .nav-submenu,
.portal-sidebar.collapsed .nav-nested-submenu,
.portal-sidebar.collapsed .nav-deep-submenu {
  display: none !important;
}

/* Pre-hydration collapsed state before JS executes */
html.lpff-sidebar-pre-collapsed #portalSidebar {
  width: 54px !important;
  min-width: 54px !important;
  max-width: 54px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-right: 1px solid var(--border-sidebar, #e1e6eb) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  visibility: visible !important;
  transform: none !important;
  display: flex !important;
  flex-direction: column !important;
}

html.lpff-sidebar-pre-collapsed #portalSidebar .sidebar-nav {
  padding: 4px 0 !important;
}

html.lpff-sidebar-pre-collapsed #portalSidebar .nav-item {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
}

html.lpff-sidebar-pre-collapsed #portalSidebar .nav-link {
  justify-content: center !important;
  padding: 9px 0 !important;
  width: 100% !important;
  gap: 0 !important;
  position: relative !important;
}

html.lpff-sidebar-pre-collapsed #portalSidebar .nav-icon {
  font-size: 15px !important;
  margin: 0 !important;
  width: 18px !important;
  text-align: center !important;
}

html.lpff-sidebar-pre-collapsed #portalSidebar .nav-label,
html.lpff-sidebar-pre-collapsed #portalSidebar .nav-submenu-arrow,
html.lpff-sidebar-pre-collapsed #portalSidebar .btn-sidebar-icon,
html.lpff-sidebar-pre-collapsed #portalSidebar .sidebar-item-actions,
html.lpff-sidebar-pre-collapsed #portalSidebar .admin-only-gear,
html.lpff-sidebar-pre-collapsed #portalSidebar .nav-badge,
html.lpff-sidebar-pre-collapsed #portalSidebar .sidebar-action-wrapper,
html.lpff-sidebar-pre-collapsed #portalSidebar .sidebar-footer-brand,
html.lpff-sidebar-pre-collapsed #portalSidebar .nav-submenu,
html.lpff-sidebar-pre-collapsed #portalSidebar .nav-nested-submenu,
html.lpff-sidebar-pre-collapsed #portalSidebar .nav-deep-submenu {
  display: none !important;
}

.sidebar-action-wrapper {
  padding: 12px 14px 8px;
}

.btn-create-new {
  width: 100%;
  height: 34px;
  background-color: var(--lpff-teal);
  color: var(--text-inverse, #ffffff);
  border: none;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 2px var(--shadow-lg, rgba(0, 0, 0, 0.1));
  transition: background-color 0.15s ease;
}

.btn-create-new:hover {
  background-color: var(--lpff-teal-hover);
}

.sidebar-nav {
  flex: 1;
  padding: 4px 0;
}

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

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 6px 14px;
  color: var(--text-nav, #3b4252);
  text-decoration: none;
  font-size: 12px;
  gap: 10px;
  transition: background-color 0.1s ease, color 0.1s ease;
}

.nav-link:hover {
  background-color: var(--surface-sidebar-hover, #d8dcde);
}

.nav-item.active .nav-link,
.nav-subitem.active .nav-sublink {
  background-color: var(--surface-sidebar-active, #bdbdbd) !important;
  color: var(--text-strong, #1e293b) !important;
  font-weight: 700 !important;
}

.nav-item.active .nav-icon,
.nav-subitem.active .nav-subicon {
  color: var(--text-pure, #000000) !important;
}

.nav-icon {
  font-size: 13px;
  width: 16px;
  text-align: center;
  color: var(--text-strong, #1e293b);
}

.nav-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-badge {
  background-color: var(--surface-info-8291a0, #8291a0);
  color: var(--text-inverse, #ffffff);
  font-size: 10px;
  font-weight: 700;
  border-radius: 9999px;
  width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

/* Techfinity Submenu */
.nav-has-submenu {
  display: flex;
  flex-direction: column;
}

.nav-submenu-toggle {
  cursor: pointer;
}

.nav-submenu-arrow {
  font-size: 10px;
  margin-left: auto;
  color: var(--text-icon-muted, #8c9dae);
  transition: transform 0.2s ease;
}

.nav-has-submenu.open .nav-submenu-arrow {
  transform: rotate(180deg);
}

.nav-submenu {
  list-style: none;
  margin: 0;
  padding: 2px 0 6px 14px;
  background-color: var(--surface-submenu, #e9ecf0);
  border-left: 2px solid var(--border-teal-005580, #005580);
  margin-left: 14px;
  margin-right: 8px;
  border-radius: 0 4px 4px 0;
  display: none;
}

.nav-has-submenu.open .nav-submenu {
  display: block;
}

.nav-subitem {
  margin: 2px 0;
}

.nav-sublink {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  color: var(--text-muted-strong, #475569);
  text-decoration: none;
  font-size: 11.5px;
  border-radius: 3px;
  transition: all 0.1s ease;
}

.nav-sublink:hover {
  background-color: var(--surface-submenu-hover, #dce1e7);
  color: var(--text-primary, #0f172a);
}

.nav-subitem.active .nav-sublink {
  background-color: var(--brand-deep-teal-bg, #004e70);
  color: var(--text-inverse, #ffffff);
  font-weight: 600;
}

.nav-subicon {
  font-size: 11px;
}

/* Level 2 & Level 3 Nested Submenus (Module Configuration & AFF) */
.nav-nested-submenu,
.nav-deep-submenu {
  list-style: none;
  margin: 0;
  padding: 2px 0 4px 14px;
  background-color: var(--surface-elevated, #e2e8f0);
  border-left: 2px solid var(--brand-teal-border, #004d61);
  margin-left: 10px;
  margin-right: 4px;
  border-radius: 0 4px 4px 0;
  display: none;
}

.nav-has-nested-submenu.open > .nav-nested-submenu,
.nav-has-deep-submenu.open > .nav-deep-submenu {
  display: block !important;
}

.nav-nested-arrow,
.nav-deep-arrow {
  font-size: 10px;
  margin-left: auto;
  color: var(--text-muted, #64748b);
  transition: transform 0.2s ease;
}

.nav-has-nested-submenu.open > .nav-sublink .nav-nested-arrow,
.nav-has-deep-submenu.open > .nav-nested-link .nav-deep-arrow {
  transform: rotate(180deg);
}

.nav-nested-link,
.nav-deep-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  color: var(--text-secondary, #334155);
  text-decoration: none;
  font-size: 11.5px;
  border-radius: 3px;
  transition: all 0.1s ease;
}

.nav-nested-link:hover,
.nav-deep-link:hover {
  background-color: var(--surface-strong, #cbd5e1);
  color: var(--text-primary, #0f172a);
}

.nav-nested-item.active > .nav-nested-link,
.nav-deep-item.active > .nav-deep-link {
  background-color: var(--brand-teal-bg, #004d61) !important;
  color: var(--text-inverse, #ffffff) !important;
  font-weight: 700 !important;
}

/* Centered Sidebar Footer */
.centered-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center !important;
  text-align: center;
  padding: 12px 10px;
  gap: 4px;
}

.sidebar-version-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-subtle, #94a3b8);
  letter-spacing: 0.5px;
  line-height: 1.2;
  user-select: none;
}

html.lpff-pre-authenticated #loginSection {
  display: none !important;
}

html.lpff-pre-authenticated #portalApp {
  display: flex !important;
}

/* ==========================================================================
   Portal Main Workspace Area
   ========================================================================== */
.portal-main {
  flex: 1;
  min-width: 0;
  background-color: var(--surface-page, #ffffff);
  padding: 16px 28px 40px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 52px);
  box-sizing: border-box;
}

/* ==========================================================================
   SQL Credentials View Styles
   ========================================================================== */
.view-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle, #e2e8f0);
  padding-bottom: 16px;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.view-main-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--brand-royal-navy-text, #103c68);
}

.view-subtitle {
  font-size: 13px;
  color: var(--text-muted, #64748b);
  margin-top: 4px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
}

.status-pill-success {
  background-color: var(--status-success-bg, #dcfce7);
  color: var(--status-success-strong-text, #15803d);
  border: 1px solid var(--status-success-border, #bbf7d0);
}

.status-pill-warning {
  background-color: var(--status-warning-bg, #fef3c7);
  color: var(--status-warning-strong-text, #b45309);
  border: 1px solid var(--status-warning-border, #fde68a);
}

.status-pill-error {
  background-color: var(--status-danger-bg, #fee2e2);
  color: var(--status-danger-strong-text, #b91c1c);
  border: 1px solid var(--status-danger-border, #fecaca);
}

/* ==========================================================================
   Add / Edit SQL Connection & Profile Management Styles (LPFF Colors)
   ========================================================================== */
.saved-connections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.conn-profile-card {
  border: 1px solid var(--border-card, #dbe2ea);
  border-radius: 6px;
  padding: 16px;
  background-color: var(--surface-subtle, #f8fafc);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.15s ease;
}

.conn-profile-card.active-profile {
  border-color: var(--brand-deep-teal-border, #004e70);
  background-color: var(--surface-teal-f0f7fa, #f0f7fa);
  box-shadow: 0 0 0 1px var(--surface-teal-004e70, #004e70);
}

.conn-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.conn-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-royal-navy-text, #103c68);
}

.conn-badge-active {
  background-color: var(--surface-success-def7ec, #def7ec);
  color: var(--text-success-03543f, #03543f);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  border: 1px solid var(--border-success-84e1bc, #84e1bc);
}

.conn-card-details {
  font-size: 12px;
  color: var(--text-muted-strong, #475569);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.conn-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid var(--border-subtle, #e2e8f0);
  padding-top: 10px;
  flex-wrap: wrap;
}

.btn-conn-action {
  background: var(--surface-card, #ffffff);
  border: 1px solid var(--border-default, #cbd5e1);
  color: var(--text-secondary, #334155);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.1s ease;
}

.btn-conn-action:hover {
  background: var(--surface-muted, #f1f5f9);
  color: var(--text-primary, #0f172a);
}

.btn-conn-action.btn-conn-activate {
  background-color: var(--lpff-teal);
  border-color: var(--lpff-teal);
  color: var(--text-inverse, #ffffff);
}

.btn-conn-action.btn-conn-activate:hover {
  background-color: var(--lpff-teal-hover);
}

.btn-conn-action.btn-conn-del:hover {
  background-color: var(--status-danger-bg, #fee2e2);
  color: var(--status-danger-vivid-text, #dc2626);
  border-color: var(--status-danger-border, #fecaca);
}

.sql-connection-card {
  background: var(--surface-card, #ffffff);
  border: 1px solid var(--border-card, #dbe2ea);
  border-radius: 6px;
  padding: 24px 28px;
  box-shadow: 0 1px 3px var(--shadow-xs, rgba(0, 0, 0, 0.04));
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
}

.sql-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.sql-icon-badge {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sql-header-text {
  display: flex;
  flex-direction: column;
}

.sql-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--brand-royal-navy-text, #103c68);
  letter-spacing: -0.2px;
  margin-bottom: 3px;
}

.sql-card-subtitle {
  font-size: 12.5px;
  color: var(--text-info-55687a, #55687a);
  line-height: 1.4;
}

.sql-connection-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sql-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.sql-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.sql-field-group.full-width {
  grid-column: 1 / -1;
}

.sql-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary, #334155);
}

.sql-input {
  width: 100%;
  height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--border-info-c7d2de, #c7d2de);
  border-radius: 4px;
  font-size: 13.5px;
  color: var(--text-strong, #1e293b);
  background-color: var(--surface-card, #ffffff);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sql-input::placeholder {
  color: var(--text-info-9ca3af, #9ca3af);
  font-size: 13px;
}

.sql-input:focus {
  outline: none;
  border-color: var(--lpff-teal);
  box-shadow: 0 0 0 2px var(--shadow-rgba-0-78-112-0p15, rgba(0, 78, 112, 0.15));
}

.password-input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.password-input-wrapper .sql-input {
  padding-right: 40px;
}

.btn-toggle-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  padding: 4px 6px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.btn-toggle-eye:hover {
  color: var(--text-primary, #0f172a);
}

.sql-select-wrapper {
  position: relative;
  width: 100%;
}

.sql-select {
  width: 100%;
  height: 40px;
  padding: 8px 36px 8px 14px;
  border: 1px solid var(--border-info-c7d2de, #c7d2de);
  border-radius: 4px;
  font-size: 13.5px;
  color: var(--text-strong, #1e293b);
  background-color: var(--surface-card, #ffffff);
  appearance: none;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sql-select:focus {
  outline: none;
  border-color: var(--lpff-teal);
  box-shadow: 0 0 0 2px var(--shadow-rgba-0-78-112-0p15, rgba(0, 78, 112, 0.15));
}

.select-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--text-gray-muted, #6b7280);
  pointer-events: none;
}

.sql-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-sql-test {
  background-color: var(--surface-info-f1f3f6, #f1f3f6);
  color: var(--text-secondary, #334155);
  border: 1px solid var(--border-control, #cbd6e2);
  border-radius: 4px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
  height: 38px;
}

.btn-sql-test:hover {
  background-color: var(--surface-elevated, #e2e8f0);
  color: var(--text-gray-primary, #111827);
}

.btn-sql-save {
  background-color: var(--lpff-teal);
  color: var(--text-inverse, #ffffff);
  border: none;
  border-radius: 4px;
  padding: 8px 22px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  transition: background-color 0.15s ease;
  box-shadow: 0 1px 2px var(--shadow-lg, rgba(0, 0, 0, 0.1));
}

/* Column Metadata Pills */
.columns-pills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 140px;
  overflow-y: auto;
  padding: 8px;
  background: var(--surface-subtle, #f8fafc);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 4px;
}

.col-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-card, #ffffff);
  border: 1px solid var(--border-default, #cbd5e1);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11.5px;
}

.col-pill-name {
  font-weight: 600;
  color: var(--text-strong, #1e293b);
}

.col-pill-type {
  font-size: 10px;
  font-weight: 700;
  color: var(--lpff-teal);
  background: var(--surface-teal-e6f0f5, #e6f0f5);
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
}

.btn-sql-save:hover {
  background-color: var(--lpff-teal-hover);
}

.btn-plus-icon {
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

/* Responsiveness for SQL & Data Extraction Cards */
.portal-view {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 992px) {
  .portal-main {
    padding: 12px 18px 30px;
  }
}

@media (max-width: 768px) {
  .portal-main {
    padding: 10px 12px 24px;
  }

  .sql-form-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .sql-connection-card {
    padding: 16px 14px;
  }

  .sql-card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-sql-test, .btn-sql-save {
    width: 100%;
    justify-content: center;
  }

  .saved-connections-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Firms Page Styles (Exact Match to Screenshot)
   ========================================================================== */
.firms-top-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.firms-nav-btns-left, .firms-nav-btns-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-firms-nav {
  width: 26px;
  height: 26px;
  background-color: var(--surface-info-f1f3f6, #f1f3f6);
  border: 1px solid var(--border-control, #cbd6e2);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-info-4b5563, #4b5563);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-firms-nav:hover {
  background-color: var(--surface-elevated, #e2e8f0);
  color: var(--text-primary, #0f172a);
}

.btn-firms-nav svg {
  width: 14px;
  height: 14px;
  display: block;
}

.firms-page-header {
  margin-bottom: 10px;
}

.firms-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--sys-header-font-color, #1e293b);
  margin: 0;
  transition: color 0.2s ease;
}

.firms-grid-card {
  border: 1px solid var(--border-card, #dbe2ea);
  border-radius: 4px;
  background-color: var(--surface-card, #ffffff);
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 180px);
  min-height: 380px;
  box-sizing: border-box;
}

/* Dark Teal Table Toolbar (LPFF Brand) */
.firms-table-toolbar {
  background-color: var(--lpff-teal);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}

.firms-search-box-wrapper {
  flex: 0 1 340px;
  min-width: 110px;
}

.firms-search-input {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 4px 10px;
  background: var(--surface-card, #ffffff);
  border: 1px solid var(--border-default, #cbd5e1);
  border-radius: 3px;
  font-size: 12px;
  color: var(--text-strong, #1e293b);
  outline: none;
}

.firms-search-input::placeholder {
  color: var(--text-subtle, #94a3b8);
}

.firms-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.btn-firms-toolbar {
  height: 30px;
  background-color: var(--surface-card, #ffffff);
  border: 1px solid var(--border-default, #cbd5e1);
  border-radius: 3px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary, #334155);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.1s ease;
}

.btn-firms-toolbar.icon-only {
  padding: 4px 8px;
  font-size: 11px;
}

.btn-firms-toolbar:hover {
  background-color: var(--surface-muted, #f1f5f9);
  color: var(--text-primary, #0f172a);
}

/* Shared Toolbar Toggle Button (PROMPT 715: matches .btn-firms-toolbar geometry & tokens) */
.toolbar-toggle {
  height: 30px;
  background-color: var(--surface-card, #ffffff);
  border: 1px solid var(--border-default, #cbd5e1);
  border-radius: 3px;
  padding: 4px 10px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1;
  color: var(--text-secondary, #334155);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease, filter 0.12s ease;
}

.toolbar-toggle[hidden] {
  display: none !important;
}

.toolbar-toggle > i {
  font-size: 10px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  flex-shrink: 0;
}

.toolbar-toggle .toolbar-toggle-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 16px;
  padding: 0 5px;
  border-radius: 2px;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background-color: var(--surface-elevated, #e2e8f0);
  color: var(--text-muted-strong, #475569);
  flex-shrink: 0;
}

.toolbar-toggle:not(.is-on):hover {
  background-color: var(--surface-muted, #f1f5f9);
  color: var(--text-primary, #0f172a);
}

.toolbar-toggle.is-on {
  background-color: var(--brand-teal-accent-bg, #0f766e);
  border-color: var(--border-rgba-255-255-255-0p45, rgba(255, 255, 255, 0.45));
  color: var(--text-inverse, #ffffff);
}

.toolbar-toggle.is-on:hover {
  background-color: var(--brand-cyan-teal-bg, #0d9488);
  color: var(--text-inverse, #ffffff);
  filter: brightness(1.06);
}

.toolbar-toggle.is-on .toolbar-toggle-badge {
  background-color: var(--status-success-teal-bg, #ccfbf1);
  color: var(--brand-teal-accent-text, #0f766e);
}

.toolbar-toggle:focus-visible {
  outline: 2px solid var(--brand-sky-border, #0284c7);
  outline-offset: 1px;
}

@media (max-width: 1150px) {
  .firms-table-toolbar {
    padding: 8px 10px;
    gap: 8px;
  }

  .firms-search-box-wrapper {
    flex: 1 1 90px;
    min-width: 80px;
  }

  .firms-toolbar-actions {
    gap: 4px;
  }

  .btn-firms-toolbar,
  .toolbar-toggle {
    padding: 4px 7px;
    gap: 4px;
    font-size: 11px;
  }

  .btn-firms-toolbar.icon-only {
    padding: 4px 7px;
  }
}

/* Firms Table Styling */
.firms-table-container {
  border: none;
  flex: 1 1 auto;
  overflow-x: auto;
  overflow-y: auto;
  background: var(--surface-card, #ffffff);
  position: relative;
  min-height: 200px;
}

.firms-table {
  width: 100%;
  min-width: 1100px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 11.5px;
}

.firms-table th {
  position: sticky;
  top: 0;
  z-index: 5;
  background-color: var(--surface-subtle, #f8fafc);
  border-bottom: 1px solid var(--border-default, #cbd5e1);
  border-right: 1px solid var(--border-subtle, #e2e8f0);
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary, #334155);
  white-space: nowrap;
  user-select: none;
  box-shadow: 0 1px 0 var(--surface-info-cbd5e1, #cbd5e1);
}

.firms-table th.sortable {
  cursor: pointer;
}

.firms-table th.sortable:hover {
  background-color: var(--surface-panel-muted, #eef2f6);
}

.firms-table th .sort-icon {
  font-size: 10px;
  color: var(--text-subtle, #94a3b8);
  margin-left: 4px;
}

.firms-table td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--border-subtle, #e2e8f0);
  border-right: 1px solid var(--border-subtle, #e2e8f0);
  color: var(--text-strong, #1e293b);
  white-space: nowrap;
  font-size: 11.5px;
}

.firms-table tr:nth-child(even) td {
  background-color: var(--surface-info-fcfdfe, #fcfdfe);
}

.firms-table tr:hover td {
  background-color: var(--surface-teal-f0f7fa, #f0f7fa);
}

.btn-inspect-row {
  color: var(--lpff-teal);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 11.5px;
  padding: 2px;
}

.btn-inspect-row:hover {
  color: var(--text-teal-003b54, #003b54);
}

/* Firms Pagination Bar */
.firms-pagination-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background-color: var(--surface-card, #ffffff);
  border-top: 1px solid var(--border-card, #dbe2ea);
  font-size: 11.5px;
  color: var(--text-muted-strong, #475569);
  flex-wrap: wrap;
  gap: 12px;
}

.firms-pagination-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-input-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.firms-page-number-input {
  width: 42px;
  height: 24px;
  padding: 2px 4px;
  border: 1px solid var(--border-default, #cbd5e1);
  border-radius: 3px;
  text-align: center;
  font-size: 11.5px;
}

.firms-pagination-buttons {
  display: flex;
  align-items: center;
  gap: 2px;
}

.btn-page-step {
  padding: 4px 8px;
  font-size: 11px;
  border: 1px solid var(--border-gray, #d1d5db);
  background-color: var(--surface-card, #ffffff);
  color: var(--text-gray-secondary, #374151);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.1s ease;
}

.btn-page-step:hover:not(:disabled) {
  background-color: var(--surface-gray-muted, #f3f4f6);
}

.btn-page-step:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-page-num {
  width: 26px;
  height: 26px;
  border: 1px solid var(--border-gray, #d1d5db);
  background-color: var(--surface-card, #ffffff);
  color: var(--text-gray-secondary, #374151);
  font-size: 11px;
  font-weight: 500;
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-page-num:hover {
  background-color: var(--surface-gray-muted, #f3f4f6);
}

.btn-page-num.active {
  background-color: var(--lpff-teal, #004d61);
  color: var(--text-inverse, #ffffff);
  border-color: var(--lpff-teal, #004d61);
  font-weight: 700;
}

/* Advanced Filter Panel (Exact Match to Screenshot) */
.firms-filter-panel {
  background: var(--surface-card, #ffffff);
  border-bottom: 1px solid var(--border-card, #dbe2ea);
  padding: 16px 20px;
  box-shadow: 0 4px 6px -1px var(--shadow-sm, rgba(0, 0, 0, 0.05));
}

.filter-panel-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.filter-field-selector-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-strong, #1e293b);
}

.filter-select-wrapper {
  position: relative;
  min-width: 260px;
}

.filter-select {
  width: 100%;
  height: 32px;
  padding: 4px 30px 4px 10px;
  border: 1px solid var(--border-default, #cbd5e1);
  border-radius: 3px;
  font-size: 12px;
  color: var(--text-strong, #1e293b);
  background-color: var(--surface-input, #ffffff);
  appearance: none;
  cursor: pointer;
}

.filter-select:focus {
  outline: none;
  border-color: var(--lpff-teal);
}

.active-filter-conditions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-condition-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--surface-muted, #f1f5f9);
  border: 1px solid var(--border-default, #cbd5e1);
  border-radius: 3px;
  padding: 6px 10px;
  font-size: 12px;
}

.filter-condition-name {
  font-weight: 600;
  color: var(--brand-deep-teal-text, #004e70);
}

.filter-condition-input {
  height: 26px;
  padding: 2px 8px;
  border: 1px solid var(--border-default, #cbd5e1);
  border-radius: 2px;
  font-size: 11.5px;
  background: var(--surface-card, #ffffff);
}

.btn-remove-condition {
  background: transparent;
  border: none;
  color: var(--status-danger-vivid-text, #dc2626);
  cursor: pointer;
  padding: 2px;
  font-size: 11px;
}

.filter-panel-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-default, #cbd5e1);
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.filter-action-group-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-filter-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  font-size: 11.5px;
  font-family: inherit;
  font-weight: 500;
  color: var(--text-strong, #1e293b);
  background-color: var(--surface-card, #ffffff);
  border: 1px solid var(--border-strong, #94a3b8);
  border-radius: 2px;
  cursor: pointer;
  box-shadow: 0 1px 2px var(--shadow-xs, rgba(0, 0, 0, 0.04));
  transition: all 0.15s ease;
  line-height: 1.4;
  white-space: nowrap;
}

.btn-filter-action:hover {
  background-color: var(--surface-muted, #f1f5f9);
  border-color: var(--border-emphasis, #64748b);
  color: var(--text-primary, #0f172a);
}

.btn-filter-action:active {
  background-color: var(--surface-elevated, #e2e8f0);
}

.btn-filter-action i {
  font-size: 11px;
}

.btn-filter-action.btn-close i {
  color: var(--text-strong, #1e293b);
}

.btn-filter-action.btn-clear i {
  color: var(--text-strong, #1e293b);
}

.btn-filter-action.btn-apply i {
  color: var(--brand-teal-text, #004d61);
}

.btn-apply-filter {
  background-color: var(--lpff-teal);
  color: var(--text-inverse, #ffffff);
  border: none;
  border-radius: 3px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-apply-filter:hover {
  background-color: var(--lpff-teal-hover);
}

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

.filter-link {
  color: var(--lpff-link-blue);
  font-size: 12px;
  text-decoration: none;
  font-weight: 500;
}

.filter-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   EntityConfig Details: Firm (Exact Match to Screenshot)
   ========================================================================== */
.entity-config-card {
  border: 1px solid var(--border-card, #dbe2ea);
  border-radius: 3px;
  background-color: var(--surface-card, #ffffff);
  padding: 0;
  overflow: hidden;
  width: 100%;
}

.entity-section-bar {
  background-color: var(--lpff-teal);
  color: var(--text-inverse, #ffffff);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.entity-section-bar .section-arrow {
  font-size: 10px;
}

.entity-properties-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 36px;
  padding: 18px 20px;
  background-color: var(--surface-card, #ffffff);
}

.entity-prop-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: baseline;
  font-size: 11.5px;
  line-height: 1.5;
}

.entity-prop-label {
  font-weight: 700;
  color: var(--text-strong, #1e293b);
}

.entity-prop-value {
  color: var(--text-secondary, #334155);
}

.entity-prop-value.not-specified {
  color: var(--text-subtle, #94a3b8);
  font-style: normal;
}

.entity-sql-config-section {
  padding: 16px 20px;
  background-color: var(--surface-subtle, #f8fafc);
}

@media (max-width: 768px) {
  .entity-properties-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .entity-prop-row {
    grid-template-columns: 140px 1fr;
  }
}

.workspace-toolbar {
  margin-bottom: 12px;
}

/* Sections & Tables */
.grid-section {
  margin-bottom: 36px;
}

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

.section-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-title {
  font-size: 17px;
  color: var(--text-teal-006699, #006699);
  font-weight: 500;
}

.btn-filter {
  background: var(--surface-info-f1f3f6, #f1f3f6);
  border: 1px solid var(--border-control, #cbd6e2);
  border-radius: 3px;
  padding: 3px 8px;
  font-size: 11px;
  color: var(--text-neutral-444444, #444444);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-filter:hover {
  background: var(--surface-info-e4e9ee, #e4e9ee);
}

.filter-icon {
  font-size: 10px;
  color: var(--text-neutral-dim, #666);
}

.caret-icon {
  font-size: 9px;
  color: var(--text-neutral-dim, #666);
}

.btn-refresh {
  background: none;
  border: none;
  color: var(--text-icon-muted, #8c9dae);
  font-size: 13px;
  cursor: pointer;
  padding: 4px;
}

.btn-refresh:hover {
  color: var(--text-body, #333333);
}

.table-container {
  border: 1px solid var(--border-card, #dbe2ea);
  border-radius: 2px;
  overflow-x: auto;
  background-color: var(--surface-card, #ffffff);
}

.portal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.portal-table thead tr {
  background-color: var(--surface-info-f7f9fb, #f7f9fb);
  border-bottom: 1px solid var(--border-card, #dbe2ea);
}

.portal-table th {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary, #334155);
  border-right: 1px solid var(--border-info-e8edf2, #e8edf2);
}

.portal-table th:last-child {
  border-right: none;
}

.portal-table td {
  padding: 9px 12px;
  font-size: 12px;
  color: var(--text-strong, #1e293b);
  border-bottom: 1px solid var(--border-info-eef2f6, #eef2f6);
  vertical-align: middle;
}

/* PROMPT 525: Standardised Notifications Tabs, Pill Badges, Namespace Tags & Toggle Switch */
.notif-pill-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.notif-pill-tab,
.notif-pill-tabs > button {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.15s ease;
}

.notif-pill-tab.btn-sql-save,
.notif-pill-tabs > button.btn-sql-save {
  background: var(--brand-teal-bg, #004d61) !important;
  color: var(--text-inverse, #ffffff) !important;
  border: 1px solid var(--brand-teal-border, #004d61) !important;
}

.notif-pill-tab.btn-sql-test,
.notif-pill-tabs > button.btn-sql-test {
  background: var(--surface-card, #ffffff) !important;
  color: var(--text-secondary, #334155) !important;
  border: 1px solid var(--border-default, #cbd5e1) !important;
}

.notif-pill-tab.btn-sql-test:hover,
.notif-pill-tabs > button.btn-sql-test:hover {
  background: var(--surface-muted, #f1f5f9) !important;
  border-color: var(--border-strong, #94a3b8) !important;
}

.notif-pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.notif-pill-tab.btn-sql-save .notif-pill-count,
.notif-pill-tabs > button.btn-sql-save .notif-pill-count {
  background: var(--overlay-rgba-255-255-255-0p22, rgba(255, 255, 255, 0.22));
  color: var(--text-inverse, #ffffff);
}

.notif-pill-tab.btn-sql-test .notif-pill-count,
.notif-pill-tabs > button.btn-sql-test .notif-pill-count {
  background: var(--surface-muted, #f1f5f9);
  color: var(--text-muted-strong, #475569);
  border: 1px solid var(--border-subtle, #e2e8f0);
}

.notif-ns-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  background: var(--surface-muted, #f1f5f9);
  color: var(--text-muted-strong, #475569);
  border: 1px solid var(--border-default, #cbd5e1);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.notif-toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 38px;
  height: 20px;
  cursor: pointer;
  user-select: none;
  vertical-align: middle;
}

.notif-toggle-switch.is-disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.notif-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.notif-toggle-slider {
  position: absolute;
  inset: 0;
  background-color: var(--surface-strong, #cbd5e1);
  border-radius: 999px;
  transition: background-color 0.18s ease;
}

.notif-toggle-slider::before {
  content: "";
  position: absolute;
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: var(--surface-card, #ffffff);
  border-radius: 50%;
  transition: transform 0.18s ease;
  box-shadow: 0 1px 2px var(--shadow-rgba-15-23-42-0p25, rgba(15, 23, 42, 0.25));
}

.notif-toggle-switch input:checked + .notif-toggle-slider {
  background-color: var(--brand-cyan-teal-bg, #0d9488);
}

.notif-toggle-switch input:checked + .notif-toggle-slider::before {
  transform: translateX(18px);
}

.notif-toggle-switch input:focus-visible + .notif-toggle-slider {
  outline: 2px solid var(--brand-sky-border, #0284c7);
  outline-offset: 2px;
}

.notif-std-table th,
.notif-std-table td {
  padding: 9px 12px !important;
  vertical-align: middle !important;
}

.notif-std-table tbody tr {
  height: 44px;
}

.firms-pagination-bar .pagination-info {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted-strong, #475569);
}

.firms-pagination-bar .pagination-controls-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.firms-pagination-bar .firms-footer-page-size-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted-strong, #475569);
  margin: 0;
}

.firms-pagination-bar .firms-page-size-select {
  height: 26px;
  padding: 2px 8px;
  border: 1px solid var(--border-default, #cbd5e1);
  border-radius: 4px;
  background: var(--surface-card, #ffffff);
  color: var(--text-strong, #1e293b);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.firms-pagination-bar .page-input-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted-strong, #475569);
}

.firms-pagination-bar .page-num-input {
  width: 44px;
  height: 26px;
  padding: 2px 4px;
  border: 1px solid var(--border-default, #cbd5e1);
  border-radius: 4px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary, #0f172a);
}

.firms-pagination-bar .pagination-buttons-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.empty-state-cell {
  padding: 48px 24px;
  text-align: center;
  background-color: var(--surface-card, #ffffff);
}

.empty-state-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.empty-title {
  font-size: 15.5px;
  font-weight: 400;
  color: var(--text-info-2b3b4c, #2b3b4c);
  margin-bottom: 6px;
}

.empty-subtitle {
  font-size: 11.5px;
  color: var(--text-info-6d7f92, #6d7f92);
}

/* Placeholder Module Card */
.placeholder-card {
  border: 1px solid var(--border-card, #dbe2ea);
  border-radius: 4px;
  padding: 24px;
  background: var(--surface-card, #ffffff);
}

.placeholder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-info-eef2f6, #eef2f6);
  padding-bottom: 14px;
  margin-bottom: 24px;
}

.placeholder-tag {
  background: var(--status-warning-bg, #fef3c7);
  color: var(--status-warning-text, #92400e);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--status-warning-border, #fde68a);
}

.placeholder-body {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted, #64748b);
}

.placeholder-icon {
  font-size: 42px;
  color: var(--text-subtle, #94a3b8);
  margin-bottom: 16px;
}

.placeholder-body h3 {
  font-size: 16px;
  color: var(--text-secondary, #334155);
  font-weight: 500;
  margin-bottom: 6px;
}

.placeholder-body p {
  font-size: 13px;
  color: var(--text-muted, #64748b);
}

/* Responsive Styles for Portal */
@media (max-width: 900px) {
  .portal-sidebar {
    position: absolute;
    left: 0;
    top: 52px;
    z-index: 99;
    box-shadow: 2px 0 10px var(--shadow-elevated, rgba(0, 0, 0, 0.15));
  }

  .portal-main {
    padding: 14px 16px 40px;
  }
}

@media (max-width: 600px) {
  .topbar-center {
    display: none;
  }
  
  .user-display-name {
    font-size: 11px;
  }

  .portal-topbar {
    padding: 0 10px;
  }
}


/* ==========================================================================
   Post-Login Dashboard Card
   ========================================================================== */
.dashboard-view {
  display: none;
  background: var(--surface-card, #ffffff);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 8px;
  box-shadow: 0 4px 12px var(--shadow-sm, rgba(0, 0, 0, 0.05));
  padding: 32px;
  max-width: 650px;
  width: 100%;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-info-edf2f7, #edf2f7);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.user-badge {
  background: var(--surface-teal-ebf8ff, #ebf8ff);
  color: var(--text-info-2b6cb0, #2b6cb0);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
}

.btn-logout {
  background: var(--surface-card, #fff);
  border: 1px solid var(--border-info-cbd5e0, #cbd5e0);
  color: var(--text-info-4a5568, #4a5568);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-logout:hover {
  background: var(--surface-teal-f7fafc, #f7fafc);
  color: var(--text-danger-c53030, #c53030);
  border-color: var(--border-danger-feb2b2, #feb2b2);
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  background: var(--status-success-subtle-bg, #f0fdf4);
  color: var(--status-success-text, #166534);
  border: 1px solid var(--status-success-border, #bbf7d0);
  margin-top: 14px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface-success-22c55e, #22c55e);
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--overlay-rgba-0-0-0-0p45, rgba(0, 0, 0, 0.45));
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  backdrop-filter: blur(2px);
}

.modal-card {
  background: var(--surface-card, #ffffff);
  border-radius: 6px;
  max-width: 440px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 10px 25px var(--shadow-elevated, rgba(0, 0, 0, 0.15));
  position: relative;
  animation: modalIn 0.2s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.modal-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--lpff-blue);
}

.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-neutral-888888, #888);
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-body, #333);
}

.modal-body {
  font-size: 13px;
  color: var(--text-neutral-muted, #555);
  line-height: 1.5;
  margin-bottom: 20px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
}

.btn-modal-close {
  background-color: var(--lpff-teal);
  color: var(--text-inverse, #fff);
  border: none;
  border-radius: 4px;
  padding: 6px 18px;
  font-size: 13px;
  cursor: pointer;
}

/* ==========================================================================
   Responsive & Mobile Friendly Breakpoints
   ========================================================================== */
@media (max-width: 900px) {
  .portal-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 460px;
  }

  .welcome-card {
    min-height: auto;
    padding: 28px 24px;
  }

  .welcome-heading {
    font-size: 18px;
  }

  .main-wrapper {
    padding: 24px 16px 100px;
  }
}

@media (max-width: 480px) {
  .form-input {
    font-size: 16px; /* Prevents auto-zoom on iOS Safari */
  }

  .app-footer {
    padding: 0 16px;
    height: auto;
    min-height: 52px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    text-align: center;
  }

  .welcome-card {
    padding: 20px;
  }

  .welcome-heading {
    font-size: 16.5px;
  }

  .btn-signin {
    width: 100%;
  }
}

/* ==========================================================================
   Entity Configuration, SQL Test Results & Dynamic Column Manager Styles
   ========================================================================== */

.mapping-results-panel {
  margin-top: 24px;
  background: var(--surface-card, #ffffff);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 6px;
  padding: 20px;
  box-shadow: 0 1px 4px var(--shadow-xs, rgba(0,0,0,0.04));
}

.test-stats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle, #e2e8f0);
}

.test-stats-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.badge-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-stat.stat-success {
  background: var(--status-success-emerald-bg, #ecfdf5);
  color: var(--status-success-forest-text, #065f46);
  border: 1px solid var(--status-success-emerald-border, #a7f3d0);
}

.badge-stat.stat-info {
  background: var(--status-info-subtle-bg, #f0f9ff);
  color: var(--status-info-text, #0369a1);
  border: 1px solid var(--status-info-border, #bae6fd);
}

.column-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-small-action {
  background: var(--surface-subtle, #f8fafc);
  border: 1px solid var(--border-default, #cbd5e1);
  color: var(--text-secondary, #334155);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-small-action:hover {
  background: var(--surface-muted, #f1f5f9);
  border-color: var(--border-strong, #94a3b8);
  color: var(--text-primary, #0f172a);
}

.double-click-hint-box {
  background: var(--status-info-blue-subtle-bg, #eff6ff);
  border: 1px solid var(--status-info-blue-border, #bfdbfe);
  color: var(--status-info-indigo-text, #1e40af);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.column-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding: 12px;
  background: var(--surface-subtle, #f8fafc);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 6px;
  max-height: 220px;
  overflow-y: auto;
}

.column-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--surface-card, #ffffff);
  border: 1px solid var(--border-default, #cbd5e1);
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.column-chip:hover {
  border-color: var(--lpff-teal);
  box-shadow: 0 2px 6px var(--shadow-rgba-0-78-112-0p1, rgba(0, 78, 112, 0.1));
}

.column-chip.column-chip-deselected {
  opacity: 0.55;
  background: var(--surface-muted, #f1f5f9);
  border-style: dashed;
}

.column-chip-checkbox {
  cursor: pointer;
  accent-color: var(--lpff-teal);
}

.column-chip-body {
  display: flex;
  flex-direction: column;
}

.column-chip-title {
  font-weight: 600;
  color: var(--text-strong, #1e293b);
}

.column-chip-sub {
  font-size: 10.5px;
  color: var(--text-muted, #64748b);
  font-family: monospace;
}

.column-chip-lookup-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--status-info-bg, #e0f2fe);
  color: var(--link-sky, #0284c7);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  margin-left: 4px;
}

.column-chip-cap-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 600;
}

.column-chip-cap-tag.cap-search {
  background: var(--status-success-subtle-bg, #f0fdf4);
  color: var(--status-success-vivid-text, #16a34a);
  border: 1px solid var(--status-success-border, #bbf7d0);
}

.column-chip-cap-tag.cap-filter {
  background: var(--status-success-aqua-bg, #f0fdfa);
  color: var(--brand-cyan-teal-text, #0d9488);
  border: 1px solid var(--status-success-teal-border, #99f6e4);
}

.column-chip-cap-tag.cap-disabled {
  opacity: 0.3;
  filter: grayscale(1);
}

/* Export Dropdown Menu Styles */
.firms-export-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.export-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 220px;
  background: var(--surface-card, #ffffff);
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px var(--shadow-elevated, rgba(0, 0, 0, 0.15)), 0 8px 10px -6px var(--shadow-lg, rgba(0, 0, 0, 0.1));
  border: 1px solid var(--border-subtle, #e2e8f0);
  padding: 6px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: fadeInDown 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.export-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}

.export-menu-item:hover {
  background: var(--surface-muted, #f1f5f9);
}

.export-item-text {
  display: flex;
  flex-direction: column;
}

.export-item-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-strong, #1e293b);
}

.export-item-sub {
  font-size: 10.5px;
  color: var(--text-muted, #64748b);
}

.export-icon-excel {
  font-size: 16px;
  color: var(--status-success-vivid-text, #16a34a);
  width: 20px;
  text-align: center;
}

.export-icon-csv {
  font-size: 16px;
  color: var(--link-sky, #0284c7);
  width: 20px;
  text-align: center;
}

.export-icon-pdf {
  font-size: 16px;
  color: var(--status-danger-vivid-text, #dc2626);
  width: 20px;
  text-align: center;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 100 Rows Preview Table Styles */
.preview-table-container {
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 6px;
  overflow: auto;
  max-height: 480px;
  background: var(--surface-card, #ffffff);
}

.preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.preview-table thead th {
  position: sticky;
  top: 0;
  background: var(--surface-muted, #f1f5f9);
  color: var(--text-primary, #0f172a);
  font-weight: 600;
  padding: 8px 12px;
  border-bottom: 2px solid var(--border-default, #cbd5e1);
  border-right: 1px solid var(--border-subtle, #e2e8f0);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.preview-table thead th:hover {
  background: var(--surface-elevated, #e2e8f0);
  color: var(--lpff-teal);
}

.preview-table thead th .th-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.preview-table thead th .th-sub {
  display: block;
  font-size: 10px;
  color: var(--text-muted, #64748b);
  font-weight: normal;
  font-family: monospace;
}

.preview-table tbody td {
  padding: 6px 12px;
  border-bottom: 1px solid var(--border-faint, #f1f5f9);
  border-right: 1px solid var(--border-info-f8fafc, #f8fafc);
  color: var(--text-secondary, #334155);
  white-space: nowrap;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-table tbody tr:hover td {
  background: var(--surface-subtle, #f8fafc);
}

.lookup-value-cell {
  color: var(--status-info-text, #0369a1);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lookup-value-cell .lookup-icon {
  font-size: 9px;
  color: inherit;
  opacity: 0.7;
}

.lookup-value-cell.status-badge-active {
  background: var(--status-success-bg, #dcfce7);
  color: var(--status-success-text, #166534);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
}

.lookup-value-cell.status-badge-inactive {
  background: var(--surface-muted, #f1f5f9);
  color: var(--text-muted, #64748b);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
}

.lookup-value-cell.status-badge-pending {
  background: var(--status-warning-bg, #fef3c7);
  color: var(--status-warning-text, #92400e);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
}

.lookup-value-cell.status-badge-danger {
  background: var(--status-danger-bg, #fee2e2);
  color: var(--status-danger-text, #991b1b);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
}

/* Modal Form Styles */
.modal-form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary, #334155);
}

.modal-input, .modal-select {
  padding: 8px 12px;
  border: 1px solid var(--border-default, #cbd5e1);
  border-radius: 4px;
  font-size: 13px;
  outline: none;
  background: var(--surface-card, #ffffff);
  color: var(--text-primary, #0f172a);
}

.modal-input:focus, .modal-select:focus {
  border-color: var(--lpff-teal);
  box-shadow: 0 0 0 2px var(--shadow-rgba-0-78-112-0p15, rgba(0, 78, 112, 0.15));
}

.modal-preview-box {
  background: var(--surface-subtle, #f8fafc);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 4px;
  padding: 12px;
  font-size: 12px;
}

.mapping-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.mapping-table th {
  background: var(--surface-muted, #f1f5f9);
  font-size: 11px;
  padding: 6px 8px;
  text-align: left;
  border: 1px solid var(--border-subtle, #e2e8f0);
}

.mapping-table td {
  padding: 4px 6px;
  border: 1px solid var(--border-subtle, #e2e8f0);
}

.mapping-input {
  width: 100%;
  padding: 4px 6px;
  border: 1px solid var(--border-default, #cbd5e1);
  border-radius: 3px;
  font-size: 12px;
}

/* ==========================================================================
   PostgreSQL Database Manager Layout & Replication Wizard Styles
   ========================================================================== */

.db-manager-grid {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 20px;
  min-height: 600px;
  align-items: start;
}

.db-sidebar-card {
  background: var(--surface-card, #ffffff);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px var(--shadow-xs, rgba(0, 0, 0, 0.04));
  overflow: hidden;
}

.db-sidebar-header {
  padding: 14px 16px;
  background: var(--surface-subtle, #f8fafc);
  border-bottom: 1px solid var(--border-subtle, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.db-badge-pg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--status-info-blue-subtle-bg, #eff6ff);
  color: var(--status-info-blue-text, #1d4ed8);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.db-sidebar-actions {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-faint, #f1f5f9);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.db-table-search {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--border-default, #cbd5e1);
  border-radius: 4px;
  font-size: 12px;
}

.db-tables-list {
  max-height: 480px;
  overflow-y: auto;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.db-table-item {
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all 0.15s ease;
  user-select: none;
}

.db-table-item:hover {
  background: var(--surface-muted, #f1f5f9);
  border-color: var(--border-subtle, #e2e8f0);
}

.db-table-item.active {
  background: var(--status-info-bg, #e0f2fe);
  border-color: var(--status-info-bright-border, #7dd3fc);
}

.db-table-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.db-table-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary, #0f172a);
}

.db-table-item-rows {
  font-size: 11px;
  font-weight: 600;
  background: var(--surface-card, #ffffff);
  padding: 2px 6px;
  border-radius: 10px;
  color: var(--lpff-teal);
  border: 1px solid var(--border-default, #cbd5e1);
}

.db-table-item-source {
  font-size: 11px;
  color: var(--text-muted, #64748b);
  font-family: monospace;
}

.db-main-card {
  background: var(--surface-card, #ffffff);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 6px;
  padding: 20px;
  box-shadow: 0 1px 3px var(--shadow-xs, rgba(0, 0, 0, 0.04));
  min-height: 600px;
}

.db-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle, #e2e8f0);
  margin-bottom: 16px;
}

.db-tab-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle, #e2e8f0);
  padding-bottom: 8px;
}

.db-tab-btn {
  background: none;
  border: none;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.db-tab-btn.active {
  background: var(--lpff-teal);
  color: var(--text-inverse, #ffffff);
}

.db-empty-workspace {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  color: var(--text-muted, #64748b);
}

.db-empty-icon {
  font-size: 48px;
  color: var(--text-subtle, #94a3b8);
  margin-bottom: 16px;
}

/* Modal Icon Picker Grid */
.icon-pick-btn {
  height: 38px;
  border: 1px solid var(--border-default, #cbd5e1);
  border-radius: 6px;
  background: var(--surface-subtle, #f8fafc);
  color: var(--text-muted-strong, #475569);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.icon-pick-btn:hover {
  border-color: var(--brand-sky-border, #0284c7);
  color: var(--link-sky, #0284c7);
  background: var(--status-info-subtle-bg, #f0f9ff);
}
.icon-pick-btn.active {
  border-color: var(--brand-sky-border, #0284c7);
  background: var(--status-info-solid-bg, #0284c7);
  color: var(--text-inverse, #ffffff);
  box-shadow: 0 2px 4px var(--shadow-rgba-2-132-199-0p2, rgba(2, 132, 199, 0.2));
}

/* ==========================================================================
   View / Edit User Modal & Roles Permissions Matrix
   ========================================================================== */
.practitioner-modal-card,
#viewUserModal .modal-card {
  padding: 0;
}

.practitioner-modal-card .modal-body,
#viewUserModal .modal-body {
  margin-bottom: 0;
}

#viewUserModal input[type="text"],
#viewUserModal input[type="email"],
#viewUserModal select {
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#viewUserModal input[type="text"]:focus,
#viewUserModal input[type="email"]:focus,
#viewUserModal select:focus {
  outline: none;
  border-color: var(--brand-teal-border, #004d61) !important;
  box-shadow: 0 0 0 2px var(--shadow-brand-sm, rgba(0, 77, 97, 0.15));
}

#viewUserRolesTableBody tr:hover {
  background-color: var(--surface-subtle, #f8fafc);
}

/* ==========================================================================
   Communication Settings (SMTP & SMS API Gateway)
   ========================================================================== */
.comm-tab-btn {
  transition: all 0.2s ease;
  font-family: inherit;
}
.comm-tab-btn:hover {
  color: var(--brand-teal-text, #004d61) !important;
  background-color: var(--surface-subtle, #f8fafc) !important;
}
.comm-tab-btn.active-tab {
  color: var(--brand-teal-text, #004d61) !important;
  border-bottom-color: var(--brand-teal-border, #004d61) !important;
}
#viewCommunicationSettings input:focus,
#viewCommunicationSettings textarea:focus {
  outline: none;
  border-color: var(--brand-teal-border, #004d61) !important;
  box-shadow: 0 0 0 2px var(--shadow-brand-sm, rgba(0, 77, 97, 0.15));
}
#commLogsTableBody tr:hover {
  background-color: var(--surface-subtle, #f8fafc);
}
.comm-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}
.comm-badge-success {
  background: var(--status-success-bg, #dcfce7);
  color: var(--status-success-text, #166534);
}
.comm-badge-failed {
  background: var(--status-danger-bg, #fee2e2);
  color: var(--status-danger-text, #991b1b);
}
.comm-badge-simulated {
  background: var(--surface-muted, #f1f5f9);
  color: var(--text-muted-strong, #475569);
}
.comm-badge-email {
  background: var(--status-info-blue-subtle-bg, #eff6ff);
  color: var(--status-info-indigo-text, #1e40af);
}
.comm-badge-sms {
  background: var(--status-warning-bg, #fef3c7);
  color: var(--status-warning-text, #92400e);
}

/* ==========================================================================
   Sidebar Drag & Drop Re-ordering Styles
   ========================================================================== */
.sidebar-item-dragging {
  opacity: 0.45 !important;
  background: var(--surface-muted, #f1f5f9) !important;
  border: 1px dashed var(--brand-teal-border, #004d61) !important;
}
.sidebar-drag-over-top {
  border-top: 2px solid var(--brand-teal-border, #004d61) !important;
}
.sidebar-drag-over-bottom {
  border-bottom: 2px solid var(--brand-teal-border, #004d61) !important;
}
.sidebar-drag-handle {
  cursor: grab;
  color: var(--text-subtle, #94a3b8);
  font-size: 11px;
  margin-right: 4px;
  display: inline-flex;
  align-items: center;
}
.sidebar-drag-handle:active {
  cursor: grabbing !important;
}

/* ==========================================================================
   Custom SVG Mask Icons (Exact Line Art Matches from LPFF System Screenshots)
   ========================================================================== */
.fa-custom-home,
.fa-custom-practitioners,
.fa-custom-firms,
.fa-custom-firm-audits,
.fa-custom-check-pen,
.fa-custom-financial-years,
.fa-custom-associations,
.fa-custom-trust-accounts,
.fa-custom-unallocated-accounts,
.fa-custom-interest-payments,
.fa-custom-manual-payments,
.fa-custom-refund-management,
.fa-custom-pi-cover,
.fa-custom-ffc-applications,
.fa-custom-ffc-certificates,
.fa-custom-firm-questionnaires,
.fa-custom-lpiif-questionnaires,
.fa-custom-ffc-period,
.fa-custom-fcms,
.fa-custom-reports,
.fa-custom-administration,
.fa-custom-logout {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: middle;
  background-color: currentColor;
  flex-shrink: 0;
}

/* 1. Home */
.fa-custom-home {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5L12 3l9 7.5V20a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpath d='M9 22v-6a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v6'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5L12 3l9 7.5V20a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpath d='M9 22v-6a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v6'/%3E%3C/svg%3E") no-repeat center / contain;
}
.nav-item.active .fa-custom-home,
.nav-subitem.active .fa-custom-home {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath fill-rule='evenodd' d='M3 10.5L12 3l9 7.5V20a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2zM9 22v-6a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v6z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath fill-rule='evenodd' d='M3 10.5L12 3l9 7.5V20a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2zM9 22v-6a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v6z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* 2. Practitioners */
.fa-custom-practitioners {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='5.5' r='2' fill='black'/%3E%3Cpath d='M8.5 21v-4a3.5 3.5 0 0 1 7 0v4'/%3E%3Ccircle cx='5.5' cy='7.5' r='1.8' fill='black'/%3E%3Cpath d='M2 21v-2.5a3.5 3.5 0 0 1 4.5-3.2'/%3E%3Ccircle cx='18.5' cy='7.5' r='1.8' fill='black'/%3E%3Cpath d='M22 21v-2.5a3.5 3.5 0 0 0-4.5-3.2'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='5.5' r='2' fill='black'/%3E%3Cpath d='M8.5 21v-4a3.5 3.5 0 0 1 7 0v4'/%3E%3Ccircle cx='5.5' cy='7.5' r='1.8' fill='black'/%3E%3Cpath d='M2 21v-2.5a3.5 3.5 0 0 1 4.5-3.2'/%3E%3Ccircle cx='18.5' cy='7.5' r='1.8' fill='black'/%3E%3Cpath d='M22 21v-2.5a3.5 3.5 0 0 0-4.5-3.2'/%3E%3C/svg%3E") no-repeat center / contain;
}
.nav-item.active .fa-custom-practitioners,
.nav-subitem.active .fa-custom-practitioners {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='12' cy='5.5' r='2.5'/%3E%3Cpath d='M7.5 21v-4.5a4.5 4.5 0 0 1 9 0V21z'/%3E%3Ccircle cx='5' cy='7.5' r='2'/%3E%3Cpath d='M1.5 21v-3a3.5 3.5 0 0 1 5.2-3.1V21z'/%3E%3Ccircle cx='19' cy='7.5' r='2'/%3E%3Cpath d='M22.5 21v-3a3.5 3.5 0 0 0-5.2-3.1V21z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='12' cy='5.5' r='2.5'/%3E%3Cpath d='M7.5 21v-4.5a4.5 4.5 0 0 1 9 0V21z'/%3E%3Ccircle cx='5' cy='7.5' r='2'/%3E%3Cpath d='M1.5 21v-3a3.5 3.5 0 0 1 5.2-3.1V21z'/%3E%3Ccircle cx='19' cy='7.5' r='2'/%3E%3Cpath d='M22.5 21v-3a3.5 3.5 0 0 0-5.2-3.1V21z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* 3. Firms */
.fa-custom-firms {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 8.5L12 3l10 5.5v1.5H2z'/%3E%3Cline x1='6' y1='10' x2='6' y2='19'/%3E%3Cline x1='12' y1='10' x2='12' y2='19'/%3E%3Cline x1='18' y1='10' x2='18' y2='19'/%3E%3Cline x1='3' y1='19' x2='21' y2='19'/%3E%3Cline x1='2' y1='21.5' x2='22' y2='21.5'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 8.5L12 3l10 5.5v1.5H2z'/%3E%3Cline x1='6' y1='10' x2='6' y2='19'/%3E%3Cline x1='12' y1='10' x2='12' y2='19'/%3E%3Cline x1='18' y1='10' x2='18' y2='19'/%3E%3Cline x1='3' y1='19' x2='21' y2='19'/%3E%3Cline x1='2' y1='21.5' x2='22' y2='21.5'/%3E%3C/svg%3E") no-repeat center / contain;
}
.nav-item.active .fa-custom-firms,
.nav-subitem.active .fa-custom-firms {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M2 9L12 3l10 6v1.5H2z'/%3E%3Crect x='5' y='10.5' width='2.5' height='8.5' rx='0.5'/%3E%3Crect x='10.75' y='10.5' width='2.5' height='8.5' rx='0.5'/%3E%3Crect x='16.5' y='10.5' width='2.5' height='8.5' rx='0.5'/%3E%3Crect x='2' y='19' width='20' height='3' rx='0.5'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M2 9L12 3l10 6v1.5H2z'/%3E%3Crect x='5' y='10.5' width='2.5' height='8.5' rx='0.5'/%3E%3Crect x='10.75' y='10.5' width='2.5' height='8.5' rx='0.5'/%3E%3Crect x='16.5' y='10.5' width='2.5' height='8.5' rx='0.5'/%3E%3Crect x='2' y='19' width='20' height='3' rx='0.5'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* 4. Firms Audits */
.fa-custom-firm-audits,
.fa-custom-check-pen {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='6' r='3.5'/%3E%3Cpolyline points='4.5 6 5.8 7.3 7.8 5'/%3E%3Cpath d='M4 12.5V18a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2v-6'/%3E%3Cpath d='M17 4l3 3L11 16l-3.5 0.8 0.8-3.5L17 4z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='6' r='3.5'/%3E%3Cpolyline points='4.5 6 5.8 7.3 7.8 5'/%3E%3Cpath d='M4 12.5V18a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2v-6'/%3E%3Cpath d='M17 4l3 3L11 16l-3.5 0.8 0.8-3.5L17 4z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.nav-item.active .fa-custom-firm-audits,
.nav-subitem.active .fa-custom-firm-audits,
.nav-item.active .fa-custom-check-pen,
.nav-subitem.active .fa-custom-check-pen {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='6' cy='6' r='4' fill='black'/%3E%3Cpolyline points='4.5 6 5.8 7.3 7.8 5' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/><path d='M3.5 13v5a2.5 2.5 0 0 0 2.5 2.5h11a2.5 2.5 0 0 0 2.5-2.5v-6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'/><path d='M17 4l3 3L11 16l-3.5 0.8 0.8-3.5L17 4z' fill='black'/>%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='6' cy='6' r='4' fill='black'/%3E%3Cpolyline points='4.5 6 5.8 7.3 7.8 5' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/><path d='M3.5 13v5a2.5 2.5 0 0 0 2.5 2.5h11a2.5 2.5 0 0 0 2.5-2.5v-6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'/><path d='M17 4l3 3L11 16l-3.5 0.8 0.8-3.5L17 4z' fill='black'/>%3C/svg%3E") no-repeat center / contain;
}

/* 5. Firm Financial Years */
.fa-custom-financial-years {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='3' y1='3' x2='3' y2='21'/%3E%3Cline x1='3' y1='21' x2='21' y2='21'/%3E%3Cline x1='7.5' y1='21' x2='7.5' y2='14'/%3E%3Cline x1='12' y1='21' x2='12' y2='10'/%3E%3Cline x1='16.5' y1='21' x2='16.5' y2='7'/%3E%3Cpolyline points='4 14 8 10 13 13 19 6'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='3' y1='3' x2='3' y2='21'/%3E%3Cline x1='3' y1='21' x2='21' y2='21'/%3E%3Cline x1='7.5' y1='21' x2='7.5' y2='14'/%3E%3Cline x1='12' y1='21' x2='12' y2='10'/%3E%3Cline x1='16.5' y1='21' x2='16.5' y2='7'/%3E%3Cpolyline points='4 14 8 10 13 13 19 6'/%3E%3C/svg%3E") no-repeat center / contain;
}
.nav-item.active .fa-custom-financial-years,
.nav-subitem.active .fa-custom-financial-years {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M2 3h2v17h18v2H2z'/%3E%3Crect x='6' y='13' width='3' height='7' rx='0.5'/%3E%3Crect x='11' y='9' width='3' height='11' rx='0.5'/%3E%3Crect x='16' y='6' width='3' height='14' rx='0.5'/%3E%3Cpolyline points='4 14 8 10 13 13 19 6' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M2 3h2v17h18v2H2z'/%3E%3Crect x='6' y='13' width='3' height='7' rx='0.5'/%3E%3Crect x='11' y='9' width='3' height='11' rx='0.5'/%3E%3Crect x='16' y='6' width='3' height='14' rx='0.5'/%3E%3Cpolyline points='4 14 8 10 13 13 19 6' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* 6. Firms Associations */
.fa-custom-associations {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='5.5' cy='5' r='1.8' fill='black'/%3E%3Cpath d='M3.5 11.5v-1a2 2 0 0 1 2-2h0a2 2 0 0 1 2 2v1'/%3E%3Cpath d='M4.5 11.5v8.5m2-8.5v8.5'/%3E%3Ccircle cx='18.5' cy='5' r='1.8' fill='black'/%3E%3Cpath d='M16.5 11.5v-1a2 2 0 0 1 2-2h0a2 2 0 0 1 2 2v1'/%3E%3Cpath d='M17.5 11.5v8.5m2-8.5v8.5'/%3E%3Cpath d='M9 9.5h5.5m0 0l-1.8-1.8m1.8 1.8l-1.8 1.8'/%3E%3Cpath d='M15 13.5H9.5m0 0l1.8-1.8m-1.8 1.8l1.8 1.8'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='5.5' cy='5' r='1.8' fill='black'/%3E%3Cpath d='M3.5 11.5v-1a2 2 0 0 1 2-2h0a2 2 0 0 1 2 2v1'/%3E%3Cpath d='M4.5 11.5v8.5m2-8.5v8.5'/%3E%3Ccircle cx='18.5' cy='5' r='1.8' fill='black'/%3E%3Cpath d='M16.5 11.5v-1a2 2 0 0 1 2-2h0a2 2 0 0 1 2 2v1'/%3E%3Cpath d='M17.5 11.5v8.5m2-8.5v8.5'/%3E%3Cpath d='M9 9.5h5.5m0 0l-1.8-1.8m1.8 1.8l-1.8 1.8'/%3E%3Cpath d='M15 13.5H9.5m0 0l1.8-1.8m-1.8 1.8l1.8 1.8'/%3E%3C/svg%3E") no-repeat center / contain;
}
.nav-item.active .fa-custom-associations,
.nav-subitem.active .fa-custom-associations {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='5.5' cy='5' r='2'/%3E%3Cpath d='M3 21v-5a2.5 2.5 0 0 1 5 0v5z'/><circle cx='18.5' cy='5' r='2'/><path d='M16 21v-5a2.5 2.5 0 0 1 5 0v5z'/><path d='M9 9.5h5.5m0 0l-1.8-1.8m1.8 1.8l-1.8 1.8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/><path d='M15 13.5H9.5m0 0l1.8-1.8m-1.8 1.8l1.8 1.8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/>%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='5.5' cy='5' r='2'/%3E%3Cpath d='M3 21v-5a2.5 2.5 0 0 1 5 0v5z'/><circle cx='18.5' cy='5' r='2'/><path d='M16 21v-5a2.5 2.5 0 0 1 5 0v5z'/><path d='M9 9.5h5.5m0 0l-1.8-1.8m1.8 1.8l-1.8 1.8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/><path d='M15 13.5H9.5m0 0l1.8-1.8m-1.8 1.8l1.8 1.8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/>%3C/svg%3E") no-repeat center / contain;
}

/* 7. Trust Bank Accounts */
.fa-custom-trust-accounts {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.5'/%3E%3Cline x1='3' y1='9' x2='21' y2='9'/%3E%3Ccircle cx='17.5' cy='14' r='1.2' fill='black'/%3E%3Cpath d='M4.5 17a3 3 0 1 0 3-3H6m0 0l1.5-1.5M6 14l1.5 1.5'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.5'/%3E%3Cline x1='3' y1='9' x2='21' y2='9'/%3E%3Ccircle cx='17.5' cy='14' r='1.2' fill='black'/%3E%3Cpath d='M4.5 17a3 3 0 1 0 3-3H6m0 0l1.5-1.5M6 14l1.5 1.5'/%3E%3C/svg%3E") no-repeat center / contain;
}
.nav-item.active .fa-custom-trust-accounts,
.nav-subitem.active .fa-custom-trust-accounts {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.5' fill='black'/%3E%3Cline x1='3' y1='9' x2='21' y2='9' stroke='white' stroke-width='1.5'/%3E%3Ccircle cx='17.5' cy='14' r='1.2' fill='white'/%3E%3Cpath d='M4.5 17a3 3 0 1 0 3-3H6' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpolyline points='7.5 12.5 6 14 7.5 15.5' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.5' fill='black'/%3E%3Cline x1='3' y1='9' x2='21' y2='9' stroke='white' stroke-width='1.5'/%3E%3Ccircle cx='17.5' cy='14' r='1.2' fill='white'/%3E%3Cpath d='M4.5 17a3 3 0 1 0 3-3H6' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpolyline points='7.5 12.5 6 14 7.5 15.5' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* 8. Unallocated Accounts */
.fa-custom-unallocated-accounts {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9L12 3l10 6v1.5H2z'/%3E%3Cline x1='6' y1='10.5' x2='6' y2='18.5'/%3E%3Cline x1='12' y1='10.5' x2='12' y2='18.5'/%3E%3Cline x1='18' y1='10.5' x2='18' y2='18.5'/%3E%3Cline x1='2' y1='19' x2='22' y2='19'/%3E%3Cline x1='1' y1='21.5' x2='23' y2='21.5'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9L12 3l10 6v1.5H2z'/%3E%3Cline x1='6' y1='10.5' x2='6' y2='18.5'/%3E%3Cline x1='12' y1='10.5' x2='12' y2='18.5'/%3E%3Cline x1='18' y1='10.5' x2='18' y2='18.5'/%3E%3Cline x1='2' y1='19' x2='22' y2='19'/%3E%3Cline x1='1' y1='21.5' x2='23' y2='21.5'/%3E%3C/svg%3E") no-repeat center / contain;
}
.nav-item.active .fa-custom-unallocated-accounts,
.nav-subitem.active .fa-custom-unallocated-accounts {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M2 9L12 3l10 6v1.5H2z'/%3E%3Crect x='5' y='10.5' width='2.5' height='8' rx='0.5' fill='black'/%3E%3Crect x='10.75' y='10.5' width='2.5' height='8' rx='0.5' fill='black'/%3E%3Crect x='16.5' y='10.5' width='2.5' height='8' rx='0.5' fill='black'/%3E%3Cline x1='2' y1='19.5' x2='22' y2='19.5' stroke='black' stroke-width='2'/%3E%3Cline x1='1' y1='21.5' x2='23' y2='21.5' stroke='black' stroke-width='2'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M2 9L12 3l10 6v1.5H2z'/%3E%3Crect x='5' y='10.5' width='2.5' height='8' rx='0.5' fill='black'/%3E%3Crect x='10.75' y='10.5' width='2.5' height='8' rx='0.5' fill='black'/%3E%3Crect x='16.5' y='10.5' width='2.5' height='8' rx='0.5' fill='black'/%3E%3Cline x1='2' y1='19.5' x2='22' y2='19.5' stroke='black' stroke-width='2'/%3E%3Cline x1='1' y1='21.5' x2='23' y2='21.5' stroke='black' stroke-width='2'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* 9. Interest Payments */
.fa-custom-interest-payments {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.5l8 4.5v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V7l8-4.5z'/%3E%3Ccircle cx='8.5' cy='9.5' r='1.2' fill='black'/%3E%3Ccircle cx='13.5' cy='14.5' r='1.2' fill='black'/%3E%3Cline x1='14' y1='9' x2='8' y2='15'/%3E%3Ccircle cx='16' cy='16.5' r='3.2'/%3E%3Cpath d='M16 15v3m0 0l-1.2-1.2m1.2 1.2l1.2-1.2'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.5l8 4.5v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V7l8-4.5z'/%3E%3Ccircle cx='8.5' cy='9.5' r='1.2' fill='black'/%3E%3Ccircle cx='13.5' cy='14.5' r='1.2' fill='black'/%3E%3Cline x1='14' y1='9' x2='8' y2='15'/%3E%3Ccircle cx='16' cy='16.5' r='3.2'/%3E%3Cpath d='M16 15v3m0 0l-1.2-1.2m1.2 1.2l1.2-1.2'/%3E%3C/svg%3E") no-repeat center / contain;
}
.nav-item.active .fa-custom-interest-payments,
.nav-subitem.active .fa-custom-interest-payments {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2.5l8 4.5v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V7l8-4.5z' fill='black'/%3E%3Ccircle cx='8.5' cy='9.5' r='1.2' fill='white'/%3E%3Ccircle cx='13.5' cy='14.5' r='1.2' fill='white'/%3E%3Cline x1='14' y1='9' x2='8' y2='15' stroke='white' stroke-width='1.5'/%3E%3Ccircle cx='16' cy='16.5' r='3.2' fill='white'/%3E%3Cpath d='M16 15v3m0 0l-1.2-1.2m1.2 1.2l1.2-1.2' fill='none' stroke='black' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2.5l8 4.5v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V7l8-4.5z' fill='black'/%3E%3Ccircle cx='8.5' cy='9.5' r='1.2' fill='white'/%3E%3Ccircle cx='13.5' cy='14.5' r='1.2' fill='white'/%3E%3Cline x1='14' y1='9' x2='8' y2='15' stroke='white' stroke-width='1.5'/%3E%3Ccircle cx='16' cy='16.5' r='3.2' fill='white'/%3E%3Cpath d='M16 15v3m0 0l-1.2-1.2m1.2 1.2l1.2-1.2' fill='none' stroke='black' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* 10. Manual Payments */
.fa-custom-manual-payments {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9.5c3-1 6 0 7 2.5s3 3.5 6 2.5'/%3E%3Cpath d='M2 14.5c3 1 6 0 7-2.5s3-3.5 6-2.5'/%3E%3Ccircle cx='18.5' cy='9' r='1.5' fill='black'/%3E%3Ccircle cx='18.5' cy='15' r='1.5' fill='black'/%3E%3Cpath d='M16 8.5h4.5a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1-1.5 1.5H16'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9.5c3-1 6 0 7 2.5s3 3.5 6 2.5'/%3E%3Cpath d='M2 14.5c3 1 6 0 7-2.5s3-3.5 6-2.5'/%3E%3Ccircle cx='18.5' cy='9' r='1.5' fill='black'/%3E%3Ccircle cx='18.5' cy='15' r='1.5' fill='black'/%3E%3Cpath d='M16 8.5h4.5a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1-1.5 1.5H16'/%3E%3C/svg%3E") no-repeat center / contain;
}
.nav-item.active .fa-custom-manual-payments,
.nav-subitem.active .fa-custom-manual-payments {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M2 9.5c3-1 6 0 7 2.5s3 3.5 6 2.5' stroke='black' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E%3Cpath d='M2 14.5c3 1 6 0 7-2.5s3-3.5 6-2.5' stroke='black' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E%3Crect x='16' y='8' width='6' height='8' rx='2' fill='black'/%3E%3Ccircle cx='19' cy='10' r='1' fill='white'/%3E%3Ccircle cx='19' cy='14' r='1' fill='white'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M2 9.5c3-1 6 0 7 2.5s3 3.5 6 2.5' stroke='black' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E%3Cpath d='M2 14.5c3 1 6 0 7-2.5s3-3.5 6-2.5' stroke='black' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E%3Crect x='16' y='8' width='6' height='8' rx='2' fill='black'/%3E%3Ccircle cx='19' cy='10' r='1' fill='white'/%3E%3Ccircle cx='19' cy='14' r='1' fill='white'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* 11. Refund Management */
.fa-custom-refund-management {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 14.5l5.5-1.5 4 2.5h8a2 2 0 0 1 2 2v0a2 2 0 0 1-2 2h-11l-3.5-2H2v-3z'/%3E%3Crect x='8.5' y='5' width='6' height='5.5' rx='0.8'/%3E%3Cline x1='11.5' y1='5' x2='11.5' y2='10.5'/%3E%3Cline x1='8.5' y1='7.75' x2='14.5' y2='7.75'/%3E%3Cpath d='M10 3c0.5-1 1.5-1 1.5 0s1 1 1.5 0'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 14.5l5.5-1.5 4 2.5h8a2 2 0 0 1 2 2v0a2 2 0 0 1-2 2h-11l-3.5-2H2v-3z'/%3E%3Crect x='8.5' y='5' width='6' height='5.5' rx='0.8'/%3E%3Cline x1='11.5' y1='5' x2='11.5' y2='10.5'/%3E%3Cline x1='8.5' y1='7.75' x2='14.5' y2='7.75'/%3E%3Cpath d='M10 3c0.5-1 1.5-1 1.5 0s1 1 1.5 0'/%3E%3C/svg%3E") no-repeat center / contain;
}
.nav-item.active .fa-custom-refund-management,
.nav-subitem.active .fa-custom-refund-management {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M2 14.5l5.5-1.5 4 2.5h8a2 2 0 0 1 2 2v0a2 2 0 0 1-2 2h-11l-3.5-2H2v-3z' fill='black'/%3E%3Crect x='8.5' y='5' width='6' height='5.5' rx='0.8' fill='black'/%3E%3Cline x1='11.5' y1='5' x2='11.5' y2='10.5' stroke='white' stroke-width='1'/%3E%3Cline x1='8.5' y1='7.75' x2='14.5' y2='7.75' stroke='white' stroke-width='1'/%3E%3Cpath d='M10 3c0.5-1 1.5-1 1.5 0s1 1 1.5 0' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M2 14.5l5.5-1.5 4 2.5h8a2 2 0 0 1 2 2v0a2 2 0 0 1-2 2h-11l-3.5-2H2v-3z' fill='black'/%3E%3Crect x='8.5' y='5' width='6' height='5.5' rx='0.8' fill='black'/%3E%3Cline x1='11.5' y1='5' x2='11.5' y2='10.5' stroke='white' stroke-width='1'/%3E%3Cline x1='8.5' y1='7.75' x2='14.5' y2='7.75' stroke='white' stroke-width='1'/%3E%3Cpath d='M10 3c0.5-1 1.5-1 1.5 0s1 1 1.5 0' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* 12. PI Cover */
.fa-custom-pi-cover {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='16' rx='1'/%3E%3Cline x1='12' y1='3' x2='12' y2='19'/%3E%3Cline x1='7' y1='6.5' x2='9' y2='6.5'/%3E%3Cline x1='7' y1='9' x2='9' y2='9'/%3E%3Cline x1='15' y1='6.5' x2='17' y2='6.5'/%3E%3Cline x1='15' y1='9' x2='17' y2='9'/%3E%3Cline x1='6' y1='19' x2='6' y2='22'/%3E%3Cline x1='18' y1='19' x2='18' y2='22'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='16' rx='1'/%3E%3Cline x1='12' y1='3' x2='12' y2='19'/%3E%3Cline x1='7' y1='6.5' x2='9' y2='6.5'/%3E%3Cline x1='7' y1='9' x2='9' y2='9'/%3E%3Cline x1='15' y1='6.5' x2='17' y2='6.5'/%3E%3Cline x1='15' y1='9' x2='17' y2='9'/%3E%3Cline x1='6' y1='19' x2='6' y2='22'/%3E%3Cline x1='18' y1='19' x2='18' y2='22'/%3E%3C/svg%3E") no-repeat center / contain;
}
.nav-item.active .fa-custom-pi-cover,
.nav-subitem.active .fa-custom-pi-cover {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Crect x='4' y='3' width='16' height='16' rx='1' fill='black'/%3E%3Cline x1='12' y1='3' x2='12' y2='19' stroke='white' stroke-width='1.5'/%3E%3Cline x1='7' y1='6.5' x2='9' y2='6.5' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3Cline x1='7' y1='9' x2='9' y2='9' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3Cline x1='15' y1='6.5' x2='17' y2='6.5' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3Cline x1='15' y1='9' x2='17' y2='9' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3Cline x1='6' y1='19' x2='6' y2='22' stroke='black' stroke-width='2'/%3E%3Cline x1='18' y1='19' x2='18' y2='22' stroke='black' stroke-width='2'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Crect x='4' y='3' width='16' height='16' rx='1' fill='black'/%3E%3Cline x1='12' y1='3' x2='12' y2='19' stroke='white' stroke-width='1.5'/%3E%3Cline x1='7' y1='6.5' x2='9' y2='6.5' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3Cline x1='7' y1='9' x2='9' y2='9' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3Cline x1='15' y1='6.5' x2='17' y2='6.5' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3Cline x1='15' y1='9' x2='17' y2='9' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3Cline x1='6' y1='19' x2='6' y2='22' stroke='black' stroke-width='2'/%3E%3Cline x1='18' y1='19' x2='18' y2='22' stroke='black' stroke-width='2'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* 13. FFC Applications */
.fa-custom-ffc-applications {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='3'/%3E%3Cline x1='3' y1='9.5' x2='21' y2='9.5'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='3'/%3E%3Cline x1='3' y1='9.5' x2='21' y2='9.5'/%3E%3C/svg%3E") no-repeat center / contain;
}
.nav-item.active .fa-custom-ffc-applications,
.nav-subitem.active .fa-custom-ffc-applications {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Crect x='3' y='4' width='18' height='16' rx='3' fill='black'/%3E%3Cline x1='3' y1='9.5' x2='21' y2='9.5' stroke='white' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Crect x='3' y='4' width='18' height='16' rx='3' fill='black'/%3E%3Cline x1='3' y1='9.5' x2='21' y2='9.5' stroke='white' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* 14. FFC Certificates */
.fa-custom-ffc-certificates {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='14' height='16' rx='1.5'/%3E%3Cline x1='6' y1='8' x2='11' y2='8'/%3E%3Cline x1='6' y1='11' x2='11' y2='11'/%3E%3Cline x1='6' y1='14' x2='9.5' y2='14'/%3E%3Ccircle cx='17.5' cy='12' r='3.5'/%3E%3Cpath d='M16 15.5l-1 4 2.5-1.5 2.5 1.5-1-4'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='14' height='16' rx='1.5'/%3E%3Cline x1='6' y1='8' x2='11' y2='8'/%3E%3Cline x1='6' y1='11' x2='11' y2='11'/%3E%3Cline x1='6' y1='14' x2='9.5' y2='14'/%3E%3Ccircle cx='17.5' cy='12' r='3.5'/%3E%3Cpath d='M16 15.5l-1 4 2.5-1.5 2.5 1.5-1-4'/%3E%3C/svg%3E") no-repeat center / contain;
}
.nav-item.active .fa-custom-ffc-certificates,
.nav-subitem.active .fa-custom-ffc-certificates {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Crect x='3' y='4' width='14' height='16' rx='1.5' fill='black'/%3E%3Cline x1='6' y1='8' x2='11' y2='8' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3Cline x1='6' y1='11' x2='11' y2='11' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3Cline x1='6' y1='14' x2='9.5' y2='14' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='17.5' cy='12' r='3.5' fill='black' stroke='white' stroke-width='1'/%3E%3Cpath d='M16 15.5l-1 4 2.5-1.5 2.5 1.5-1-4' fill='black'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Crect x='3' y='4' width='14' height='16' rx='1.5' fill='black'/%3E%3Cline x1='6' y1='8' x2='11' y2='8' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3Cline x1='6' y1='11' x2='11' y2='11' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3Cline x1='6' y1='14' x2='9.5' y2='14' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='17.5' cy='12' r='3.5' fill='black' stroke='white' stroke-width='1'/%3E%3Cpath d='M16 15.5l-1 4 2.5-1.5 2.5 1.5-1-4' fill='black'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* 15. Firm Questionnaires */
.fa-custom-firm-questionnaires {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 13.5v4.5a2 2 0 0 1-2 2H6l-3 3V5a2 2 0 0 1 2-2h8'/%3E%3Cpath d='M6.5 8a1.5 1.5 0 0 1 2 1c0 1-1.2 1.2-1.2 2'/%3E%3Ccircle cx='7.3' cy='13' r='0.4' fill='black'/><path d='M17.5 3l3 3L12 14.5l-3 0.8 0.8-3L17.5 3z'/>%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 13.5v4.5a2 2 0 0 1-2 2H6l-3 3V5a2 2 0 0 1 2-2h8'/%3E%3Cpath d='M6.5 8a1.5 1.5 0 0 1 2 1c0 1-1.2 1.2-1.2 2'/%3E%3Ccircle cx='7.3' cy='13' r='0.4' fill='black'/><path d='M17.5 3l3 3L12 14.5l-3 0.8 0.8-3L17.5 3z'/>%3C/svg%3E") no-repeat center / contain;
}
.nav-item.active .fa-custom-firm-questionnaires,
.nav-subitem.active .fa-custom-firm-questionnaires {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M15 13.5v4.5a2 2 0 0 1-2 2H6l-3 3V5a2 2 0 0 1 2-2h8z' fill='black'/%3E%3Cpath d='M6.5 8a1.5 1.5 0 0 1 2 1c0 1-1.2 1.2-1.2 2' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='7.3' cy='13' r='0.5' fill='white'/><path d='M17.5 3l3 3L12 14.5l-3 0.8 0.8-3L17.5 3z' fill='black' stroke='white' stroke-width='0.8'/>%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M15 13.5v4.5a2 2 0 0 1-2 2H6l-3 3V5a2 2 0 0 1 2-2h8z' fill='black'/%3E%3Cpath d='M6.5 8a1.5 1.5 0 0 1 2 1c0 1-1.2 1.2-1.2 2' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='7.3' cy='13' r='0.5' fill='white'/><path d='M17.5 3l3 3L12 14.5l-3 0.8 0.8-3L17.5 3z' fill='black' stroke='white' stroke-width='0.8'/>%3C/svg%3E") no-repeat center / contain;
}

/* 16. LPIIF Risk Questionnaires */
.fa-custom-lpiif-questionnaires {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h11a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-1l3 3V8a2 2 0 0 0-2-2H8z'/%3E%3Cpath d='M16 14v-7a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v9l3-2h8a2 2 0 0 0 2-2z'/%3E%3Cpath d='M8.5 7.5a1.8 1.8 0 0 1 2 1.5c0 1.2-1.5 1.5-1.5 2.5'/%3E%3Ccircle cx='9' cy='13' r='0.5' fill='black'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h11a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-1l3 3V8a2 2 0 0 0-2-2H8z'/%3E%3Cpath d='M16 14v-7a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v9l3-2h8a2 2 0 0 0 2-2z'/%3E%3Cpath d='M8.5 7.5a1.8 1.8 0 0 1 2 1.5c0 1.2-1.5 1.5-1.5 2.5'/%3E%3Ccircle cx='9' cy='13' r='0.5' fill='black'/%3E%3C/svg%3E") no-repeat center / contain;
}
.nav-item.active .fa-custom-lpiif-questionnaires,
.nav-subitem.active .fa-custom-lpiif-questionnaires {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M16 14v-7a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v9l3-2h8a2 2 0 0 0 2-2z' fill='black'/%3E%3Cpath d='M8 6h11a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-1l3 3V8a2 2 0 0 0-2-2H8z' fill='none' stroke='black' stroke-width='1.5'/%3E%3Cpath d='M8.5 7.5a1.8 1.8 0 0 1 2 1.5c0 1.2-1.5 1.5-1.5 2.5' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='9' cy='13' r='0.6' fill='white'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M16 14v-7a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v9l3-2h8a2 2 0 0 0 2-2z' fill='black'/%3E%3Cpath d='M8 6h11a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-1l3 3V8a2 2 0 0 0-2-2H8z' fill='none' stroke='black' stroke-width='1.5'/%3E%3Cpath d='M8.5 7.5a1.8 1.8 0 0 1 2 1.5c0 1.2-1.5 1.5-1.5 2.5' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='9' cy='13' r='0.6' fill='white'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* 17. FFC Period */
.fa-custom-ffc-period {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2.5'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3Cline x1='7' y1='2.5' x2='7' y2='5.5'/%3E%3Cline x1='17' y1='2.5' x2='17' y2='5.5'/%3E%3Cline x1='7' y1='14' x2='17' y2='14'/%3E%3Cline x1='7' y1='17.5' x2='13' y2='17.5'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2.5'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3Cline x1='7' y1='2.5' x2='7' y2='5.5'/%3E%3Cline x1='17' y1='2.5' x2='17' y2='5.5'/%3E%3Cline x1='7' y1='14' x2='17' y2='14'/%3E%3Cline x1='7' y1='17.5' x2='13' y2='17.5'/%3E%3C/svg%3E") no-repeat center / contain;
}
.nav-item.active .fa-custom-ffc-period,
.nav-subitem.active .fa-custom-ffc-period {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Crect x='3' y='5' width='18' height='16' rx='2.5' fill='black'/%3E%3Cline x1='3' y1='10' x2='21' y2='10' stroke='white' stroke-width='1.5'/%3E%3Cline x1='7' y1='2.5' x2='7' y2='5.5' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Cline x1='17' y1='2.5' x2='17' y2='5.5' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Cline x1='7' y1='14' x2='17' y2='14' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3Cline x1='7' y1='17.5' x2='13' y2='17.5' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Crect x='3' y='5' width='18' height='16' rx='2.5' fill='black'/%3E%3Cline x1='3' y1='10' x2='21' y2='10' stroke='white' stroke-width='1.5'/%3E%3Cline x1='7' y1='2.5' x2='7' y2='5.5' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Cline x1='17' y1='2.5' x2='17' y2='5.5' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Cline x1='7' y1='14' x2='17' y2='14' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3Cline x1='7' y1='17.5' x2='13' y2='17.5' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* 18. FCMS */
.fa-custom-fcms {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='2.5'/%3E%3Crect x='7' y='6' width='10' height='6' rx='1'/%3E%3Ccircle cx='7.5' cy='15' r='0.8' fill='black'/%3E%3Ccircle cx='10.5' cy='15' r='0.8' fill='black'/%3E%3Ccircle cx='13.5' cy='15' r='0.8' fill='black'/%3E%3Ccircle cx='16.5' cy='15' r='0.8' fill='black'/%3E%3Ccircle cx='7.5' cy='17.5' r='0.8' fill='black'/%3E%3Ccircle cx='10.5' cy='17.5' r='0.8' fill='black'/%3E%3Ccircle cx='13.5' cy='17.5' r='0.8' fill='black'/%3E%3Ccircle cx='16.5' cy='17.5' r='0.8' fill='black'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='2.5'/%3E%3Crect x='7' y='6' width='10' height='6' rx='1'/%3E%3Ccircle cx='7.5' cy='15' r='0.8' fill='black'/%3E%3Ccircle cx='10.5' cy='15' r='0.8' fill='black'/%3E%3Ccircle cx='13.5' cy='15' r='0.8' fill='black'/%3E%3Ccircle cx='16.5' cy='15' r='0.8' fill='black'/%3E%3Ccircle cx='7.5' cy='17.5' r='0.8' fill='black'/%3E%3Ccircle cx='10.5' cy='17.5' r='0.8' fill='black'/%3E%3Ccircle cx='13.5' cy='17.5' r='0.8' fill='black'/%3E%3Ccircle cx='16.5' cy='17.5' r='0.8' fill='black'/%3E%3C/svg%3E") no-repeat center / contain;
}
.nav-item.active .fa-custom-fcms,
.nav-subitem.active .fa-custom-fcms {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Crect x='4' y='3' width='16' height='18' rx='2.5' fill='black'/%3E%3Crect x='7' y='6' width='10' height='6' rx='1' fill='white'/%3E%3Ccircle cx='7.5' cy='15' r='0.8' fill='white'/%3E%3Ccircle cx='10.5' cy='15' r='0.8' fill='white'/%3E%3Ccircle cx='13.5' cy='15' r='0.8' fill='white'/%3E%3Ccircle cx='16.5' cy='15' r='0.8' fill='white'/%3E%3Ccircle cx='7.5' cy='17.5' r='0.8' fill='white'/%3E%3Ccircle cx='10.5' cy='17.5' r='0.8' fill='white'/%3E%3Ccircle cx='13.5' cy='17.5' r='0.8' fill='white'/%3E%3Ccircle cx='16.5' cy='17.5' r='0.8' fill='white'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Crect x='4' y='3' width='16' height='18' rx='2.5' fill='black'/%3E%3Crect x='7' y='6' width='10' height='6' rx='1' fill='white'/%3E%3Ccircle cx='7.5' cy='15' r='0.8' fill='white'/%3E%3Ccircle cx='10.5' cy='15' r='0.8' fill='white'/%3E%3Ccircle cx='13.5' cy='15' r='0.8' fill='white'/%3E%3Ccircle cx='16.5' cy='15' r='0.8' fill='white'/%3E%3Ccircle cx='7.5' cy='17.5' r='0.8' fill='white'/%3E%3Ccircle cx='10.5' cy='17.5' r='0.8' fill='white'/%3E%3Ccircle cx='13.5' cy='17.5' r='0.8' fill='white'/%3E%3Ccircle cx='16.5' cy='17.5' r='0.8' fill='white'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* 19. Reports */
.fa-custom-reports {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4a2 2 0 0 1 2-2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Crect x='7.5' y='6' width='3.5' height='3.5' rx='0.5'/%3E%3Cline x1='7.5' y1='12' x2='16.5' y2='12'/%3E%3Cline x1='7.5' y1='15' x2='16.5' y2='15'/%3E%3Cline x1='7.5' y1='18' x2='13.5' y2='18'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4a2 2 0 0 1 2-2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Crect x='7.5' y='6' width='3.5' height='3.5' rx='0.5'/%3E%3Cline x1='7.5' y1='12' x2='16.5' y2='12'/%3E%3Cline x1='7.5' y1='15' x2='16.5' y2='15'/%3E%3Cline x1='7.5' y1='18' x2='13.5' y2='18'/%3E%3C/svg%3E") no-repeat center / contain;
}
.nav-item.active .fa-custom-reports,
.nav-subitem.active .fa-custom-reports {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M4 4a2 2 0 0 1 2-2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4z' fill='black'/%3E%3Cpolyline points='14 2 14 8 20 8' fill='none' stroke='white' stroke-width='1.5'/%3E%3Crect x='7.5' y='6' width='3.5' height='3.5' rx='0.5' fill='white'/%3E%3Cline x1='7.5' y1='12' x2='16.5' y2='12' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3Cline x1='7.5' y1='15' x2='16.5' y2='15' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3Cline x1='7.5' y1='18' x2='13.5' y2='18' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M4 4a2 2 0 0 1 2-2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4z' fill='black'/%3E%3Cpolyline points='14 2 14 8 20 8' fill='none' stroke='white' stroke-width='1.5'/%3E%3Crect x='7.5' y='6' width='3.5' height='3.5' rx='0.5' fill='white'/%3E%3Cline x1='7.5' y1='12' x2='16.5' y2='12' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3Cline x1='7.5' y1='15' x2='16.5' y2='15' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3Cline x1='7.5' y1='18' x2='13.5' y2='18' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* 20. Administration */
.fa-custom-administration {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='7' r='3.5'/%3E%3Cpath d='M3 20c0-3.5 2.8-6 6-6 1.2 0 2.3.4 3.2 1'/%3E%3Ccircle cx='17' cy='17' r='2'/%3E%3Cpath d='M17 13.5v1m0 5v1m-3.5-3.5h1m5 0h1m-1.1-2.5l-.7.7m-3.4 3.4l-.7.7m0-4.8l.7.7m3.4 3.4l.7.7'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='7' r='3.5'/%3E%3Cpath d='M3 20c0-3.5 2.8-6 6-6 1.2 0 2.3.4 3.2 1'/%3E%3Ccircle cx='17' cy='17' r='2'/%3E%3Cpath d='M17 13.5v1m0 5v1m-3.5-3.5h1m5 0h1m-1.1-2.5l-.7.7m-3.4 3.4l-.7.7m0-4.8l.7.7m3.4 3.4l.7.7'/%3E%3C/svg%3E") no-repeat center / contain;
}
.nav-item.active .fa-custom-administration,
.nav-subitem.active .fa-custom-administration {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='9' cy='7' r='3.5' fill='black'/%3E%3Cpath d='M3 20c0-3.5 2.8-6 6-6 1.2 0 2.3.4 3.2 1v5z' fill='black'/%3E%3Ccircle cx='17' cy='17' r='2.5' fill='black'/%3E%3Cpath d='M17 13.5v1m0 5v1m-3.5-3.5h1m5 0h1m-1.1-2.5l-.7.7m-3.4 3.4l-.7.7m0-4.8l.7.7m3.4 3.4l.7.7' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='9' cy='7' r='3.5' fill='black'/%3E%3Cpath d='M3 20c0-3.5 2.8-6 6-6 1.2 0 2.3.4 3.2 1v5z' fill='black'/%3E%3Ccircle cx='17' cy='17' r='2.5' fill='black'/%3E%3Cpath d='M17 13.5v1m0 5v1m-3.5-3.5h1m5 0h1m-1.1-2.5l-.7.7m-3.4 3.4l-.7.7m0-4.8l.7.7m3.4 3.4l.7.7' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ==========================================================================
   Practitioner Detail Popup Modal & Sub-Views
   ========================================================================== */

.practitioner-detail-overlay {
  background: var(--overlay-scrim-strong, rgba(15, 23, 42, 0.75));
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1050;
}

.firm-subview-clickable-row {
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
}

.firm-subview-clickable-row:hover {
  background-color: var(--surface-muted, #f1f5f9) !important;
}

.practitioner-modal-container {
  background: var(--surface-card, #ffffff);
  width: 96vw;
  max-width: 1720px;
  height: 94vh;
  max-height: 94vh;
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px var(--shadow-rgba-0-0-0-0p45, rgba(0, 0, 0, 0.45));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-default, #cbd5e1);
  animation: modalScaleIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.98) translateY(6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.practitioner-modal-topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--surface-subtle, #f8fafc);
  border-bottom: 1px solid var(--border-subtle, #e2e8f0);
}

.practitioner-modal-title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: var(--text-teal-00334e, #00334e);
  font-family: inherit;
  letter-spacing: -0.2px;
}

.practitioner-modal-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-practitioner-header-icon {
  background: var(--brand-teal-bg, #004d61);
  color: var(--text-inverse, #ffffff);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px var(--shadow-brand-md, rgba(0, 77, 97, 0.25));
}

.btn-practitioner-header-icon:hover {
  background: var(--surface-teal-003344, #003344);
  transform: translateY(-1px);
}

.btn-practitioner-header-icon.close-icon {
  background: var(--brand-teal-bg, #004d61);
}

.btn-practitioner-header-icon.close-icon:hover {
  background: var(--status-danger-solid-bg, #dc2626);
}

.btn-practitioner-header-icon.btn-practitioner-run-as {
  width: auto;
  height: 34px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  vertical-align: middle;
  margin: 0;
}

@media (max-width: 640px) {
  .practitioner-modal-topbar {
    padding: 10px 14px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .practitioner-modal-top-actions {
    gap: 6px;
    flex-shrink: 0;
  }
  .btn-practitioner-header-icon.btn-practitioner-run-as {
    height: 34px;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 12px;
  }
}

/* MMS Sync Status Strip under Practitioner & Firm Popup Headers */
.mms-sync-status-bar {
  flex-shrink: 0;
  padding: 6px 24px;
  background: var(--surface-subtle, #f8fafc);
  border-bottom: 1px solid var(--border-subtle, #e2e8f0);
  display: flex;
  align-items: center;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--text-muted, #64748b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mms-sync-line {
  color: var(--text-muted, #64748b);
  font-size: 11.5px;
  font-weight: 400;
}

@media (max-width: 640px) {
  .mms-sync-status-bar {
    padding: 6px 14px;
  }
}

.practitioner-modal-body {
  padding: 16px 20px 32px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--surface-muted, #f1f5f9);
  flex: 1;
}

/* Card Sections */
.practitioner-section-card {
  background: var(--surface-card, #ffffff);
  border: 1px solid var(--border-default, #cbd5e1);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px var(--shadow-sm, rgba(0, 0, 0, 0.05));
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.practitioner-section-banner {
  background: var(--brand-teal-bg, #004d61);
  color: var(--text-inverse, #ffffff);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.practitioner-details-body {
  padding: 14px 18px;
  background: var(--surface-page, #ffffff);
}

/* 4-Column Balanced Grid */
.practitioner-details-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 16px;
  width: 100%;
}

@media (max-width: 1200px) {
  .practitioner-details-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.prac-detail-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 34px 8px 12px;
  background: var(--surface-subtle, #f8fafc);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 6px;
}

.logon-support-fact-item,
.popup-detail-card {
  position: relative;
  padding-right: 30px;
}

.prac-detail-item-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--brand-teal-text, #004d61);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.prac-detail-item-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary, #0f172a);
  word-break: break-word;
}

/* Copy-to-Clipboard Icon Button on Popup Detail Cards */
.popup-card-copy-btn {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  min-width: 24px;
  height: 24px;
  padding: 0 5px;
  border-radius: 4px;
  border: 1px solid var(--border-default, #cbd5e1);
  background: var(--surface-card, #ffffff);
  color: var(--text-muted-strong, #475569);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease, background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
  z-index: 2;
}

.prac-detail-item:hover .popup-card-copy-btn,
.prac-detail-item:focus-within .popup-card-copy-btn,
.logon-support-fact-item:hover .popup-card-copy-btn,
.logon-support-fact-item:focus-within .popup-card-copy-btn,
.popup-detail-card:hover .popup-card-copy-btn,
.popup-detail-card:focus-within .popup-card-copy-btn,
.popup-card-copy-btn:focus,
.popup-card-copy-btn:focus-visible,
.popup-card-copy-btn.copied {
  opacity: 1;
  pointer-events: auto;
}

.popup-card-copy-btn:hover,
.popup-card-copy-btn:focus-visible {
  background: var(--surface-muted, #f1f5f9);
  color: var(--brand-teal-text, #004d61);
  border-color: var(--border-strong, #94a3b8);
  outline: 2px solid var(--border-rgba-0-77-97-0p25, rgba(0, 77, 97, 0.25));
  outline-offset: 1px;
}

.popup-card-copy-btn.copied {
  background: var(--status-success-bg, #dcfce7);
  color: var(--status-success-strong-text, #15803d);
  border-color: var(--status-success-strong-border, #86efac);
}

.popup-card-copy-feedback {
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

/* Subview Card Headers */
.practitioner-subview-header,
.practitioner-section-banner.has-popup-toolbar {
  background: var(--brand-teal-bg, #004d61);
  color: var(--text-inverse, #ffffff);
  padding: 7px 16px;
  min-height: 42px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.subview-title-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
}

.subview-toolbar-buttons,
.popup-section-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.popup-section-search-wrap {
  position: relative;
  width: 220px;
  flex: 0 0 220px;
  height: 28px;
  display: inline-flex;
  align-items: center;
}

.popup-section-search-icon {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--text-muted, #64748b);
  pointer-events: none;
  z-index: 1;
}

.popup-section-search-input {
  width: 100%;
  height: 28px;
  box-sizing: border-box;
  padding: 0 24px 0 26px;
  font-size: 11.5px;
  font-family: inherit;
  line-height: 26px;
  border: 1px solid var(--border-rgba-255-255-255-0p45, rgba(255, 255, 255, 0.45));
  border-radius: 4px;
  background: var(--overlay-surface-opaque, rgba(255, 255, 255, 0.92));
  color: var(--text-primary, #0f172a);
  outline: none;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.popup-section-search-input::placeholder {
  color: var(--text-muted, #64748b);
}

.popup-section-search-input:hover {
  background: var(--overlay-rgba-255-255-255-0p98, rgba(255, 255, 255, 0.98));
  border-color: var(--border-rgba-255-255-255-0p7, rgba(255, 255, 255, 0.7));
}

.popup-section-search-input:focus {
  background: var(--surface-card, #ffffff);
  border-color: var(--border-teal-38bdf8, #38bdf8);
  box-shadow: 0 0 0 2px var(--shadow-rgba-56-189-248-0p28, rgba(56, 189, 248, 0.28));
}

.popup-section-search-clear {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted, #64748b);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.popup-section-search-clear:hover {
  background: var(--surface-elevated, #e2e8f0);
  color: var(--text-primary, #0f172a);
}

.btn-subview-tool {
  background: var(--overlay-glass-medium, rgba(255, 255, 255, 0.15));
  border: 1px solid var(--border-rgba-255-255-255-0p3, rgba(255, 255, 255, 0.3));
  color: var(--text-inverse, #ffffff);
  height: 28px;
  box-sizing: border-box;
  padding: 0 10px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-subview-tool:hover {
  background: var(--overlay-rgba-255-255-255-0p28, rgba(255, 255, 255, 0.28));
  border-color: var(--border-rgba-255-255-255-0p55, rgba(255, 255, 255, 0.55));
}

.btn-subview-tool:focus-visible {
  outline: none;
  border-color: var(--border-teal-38bdf8, #38bdf8);
  box-shadow: 0 0 0 2px var(--shadow-rgba-56-189-248-0p32, rgba(56, 189, 248, 0.32));
}

.btn-subview-tool.active {
  background: var(--overlay-rgba-255-255-255-0p32, rgba(255, 255, 255, 0.32));
  border-color: var(--border-rgba-255-255-255-0p7, rgba(255, 255, 255, 0.7));
}

.btn-subview-tool.icon-only {
  width: 28px;
  padding: 0;
}

.btn-subview-tool.btn-subview-extra {
  background: var(--overlay-surface-opaque, rgba(255, 255, 255, 0.92));
  color: var(--brand-teal-text, #004d61);
  border-color: var(--border-rgba-255-255-255-0p95, rgba(255, 255, 255, 0.95));
  font-weight: 700;
}

.btn-subview-tool.btn-subview-extra:hover {
  background: var(--surface-card, #ffffff);
  border-color: var(--border-inverse, #ffffff);
}

/* ==========================================================================
   PROMPT 689 — Compact Popup Section Advanced Filter Panel & Inline Chips
   ========================================================================== */
.practitioner-section-card:has(.popup-adv-filter-panel) {
  overflow: visible !important;
}

.practitioner-section-card:has(.popup-adv-filter-panel) > .practitioner-subview-header,
.practitioner-section-card:has(.popup-adv-filter-panel) > .practitioner-section-banner:first-child {
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.popup-adv-filter-panel {
  padding: 8px 14px !important;
  background: var(--surface-subtle, #f8fafc) !important;
  border-bottom: 1px solid var(--border-subtle, #e2e8f0) !important;
  overflow: visible !important;
}

.popup-adv-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  flex-wrap: wrap;
}

.popup-adv-picker-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.popup-adv-picker-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-teal-text, #004d61);
  white-space: nowrap;
  margin: 0;
}

.popup-adv-select-wrapper {
  width: 240px;
  max-width: 260px;
  flex: 0 1 240px;
}

.popup-adv-actions-group {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

.popup-adv-btn-apply {
  height: 28px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 600;
  background: var(--brand-teal-bg, #004d61);
  color: var(--text-inverse, #ffffff);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.popup-adv-btn-apply:hover {
  background: var(--brand-teal-hover-bg, #003847);
}

.popup-adv-btn-link {
  background: none;
  border: none;
  padding: 2px 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--link-sky, #0284c7);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.popup-adv-btn-link:hover {
  color: var(--status-info-text, #0369a1);
  text-decoration: underline;
}

.popup-adv-conditions-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px 8px !important;
  margin-top: 8px !important;
  margin-bottom: 0 !important;
}

.popup-adv-conditions-row:empty {
  display: none !important;
  margin-top: 0 !important;
}

.popup-filter-condition-chip {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: 100% !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 3px 8px !important;
  background: var(--surface-card, #ffffff) !important;
  border: 1px solid var(--border-default, #cbd5e1) !important;
  border-radius: 6px !important;
  font-size: 11.5px !important;
  box-shadow: 0 1px 2px var(--shadow-rgba-15-23-42-0p04, rgba(15, 23, 42, 0.04)) !important;
}

.popup-filter-condition-chip .filter-condition-name {
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: var(--brand-teal-text, #004d61) !important;
  white-space: nowrap !important;
}

.popup-filter-condition-chip .shared-filter-operator {
  height: 26px !important;
  padding: 1px 6px !important;
  font-size: 11px !important;
}

.popup-filter-condition-chip .shared-multiselect-trigger {
  height: 26px !important;
  min-width: 135px !important;
  max-width: 245px !important;
  padding: 1px 8px !important;
  font-size: 11.5px !important;
}

.popup-filter-condition-chip input.filter-condition-input[type="text"] {
  height: 26px !important;
  min-width: 115px !important;
  width: 132px !important;
  padding: 1px 7px !important;
  font-size: 11.5px !important;
}

.popup-filter-condition-chip input.filter-condition-input[type="number"] {
  height: 26px !important;
  min-width: 95px !important;
  width: 105px !important;
  padding: 1px 7px !important;
  font-size: 11.5px !important;
}

.popup-filter-condition-chip input.filter-condition-input[type="date"] {
  height: 26px !important;
  padding: 1px 6px !important;
  font-size: 11.5px !important;
}

.popup-filter-condition-chip .btn-remove-condition {
  padding: 2px 3px !important;
  font-size: 12.5px !important;
  line-height: 1 !important;
}

/* Subview Tables */
.subview-table-wrapper {
  max-height: 220px;
  min-height: 70px;
  overflow-y: auto;
  overflow-x: auto;
  background: var(--surface-card, #ffffff);
}

.subview-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.subview-data-table th {
  position: sticky;
  top: 0;
  background: var(--brand-teal-dark-bg, #004052);
  color: var(--text-inverse, #ffffff);
  padding: 7px 12px;
  font-weight: 700;
  font-size: 11.5px;
  border-right: 1px solid var(--border-rgba-255-255-255-0p12, rgba(255, 255, 255, 0.12));
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
  z-index: 2;
}

.subview-data-table th:last-child {
  border-right: none;
}

.subview-data-table th:hover {
  background: var(--surface-teal-003342, #003342);
}

.subview-data-table td {
  padding: 7px 12px;
  border-bottom: 1px solid var(--border-subtle, #e2e8f0);
  color: var(--text-strong, #1e293b);
  font-size: 12px;
}

.subview-data-table tbody tr:nth-child(even) {
  background: var(--surface-subtle, #f8fafc);
}

.subview-data-table tbody tr:hover {
  background: var(--surface-muted, #f1f5f9);
}

.subview-empty-cell {
  text-align: center;
  padding: 24px 12px !important;
  color: var(--text-muted, #64748b);
  font-style: italic;
}

.subview-adv-filter-panel {
  padding: 8px 14px;
  background: var(--surface-subtle, #f8fafc);
  border-bottom: 1px solid var(--border-subtle, #e2e8f0);
}

.subview-filter-input {
  width: 100%;
  max-width: 320px;
  padding: 5px 10px;
  border: 1px solid var(--border-default, #cbd5e1);
  border-radius: 4px;
  font-size: 12px;
  outline: none;
  box-sizing: border-box;
}

.subview-filter-input:focus {
  border-color: var(--brand-teal-border, #004d61);
}

.subview-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px;
  background: var(--surface-card, #ffffff);
  border-top: 1px solid var(--border-subtle, #e2e8f0);
  font-size: 11.5px;
  color: var(--text-muted, #64748b);
}

.subview-pagination-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-subview-page {
  background: var(--surface-subtle, #f8fafc);
  border: 1px solid var(--border-default, #cbd5e1);
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  color: var(--text-secondary, #334155);
  font-weight: 500;
}

.btn-subview-page:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-subview-page:not(:disabled):hover {
  background: var(--brand-teal-bg, #004d61);
  color: var(--text-inverse, #ffffff);
  border-color: var(--brand-teal-border, #004d61);
}

.subview-page-badge {
  background: var(--brand-teal-bg, #004d61);
  color: var(--text-inverse, #ffffff);
  padding: 3px 9px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
}

/* Modal Z-Index Overrides */
.subview-config-modal-overlay {
  z-index: 2500 !important;
}

#columnConfigModal {
  z-index: 3000 !important;
}

/* Row cursor pointer for practitioners table */
#practitionersTableBody tr {
  cursor: pointer;
  transition: background-color 0.12s ease;
}

#practitionersTableBody tr:hover {
  background-color: var(--status-info-bg, #e0f2fe) !important;
}

/* Print / PDF generation styles */
@media print {
  @page {
    size: A4 landscape;
    margin: 8mm 6mm;
  }
  body, html {
    background: #ffffff !important;
    color: #1e293b !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    overflow: visible !important;
    height: auto !important;
  }
  body * {
    visibility: hidden;
  }
  #practitionerModalPrintableArea,
  #practitionerModalPrintableArea *,
  #firmModalPrintableArea,
  #firmModalPrintableArea * {
    visibility: visible;
  }
}
/* ==========================================================================
   Executive Dashboard Printing Preparation (Screen & Print Medium)
   ========================================================================== */
body.printing-dashboard {
  background: #ffffff !important;
}

body.printing-dashboard #portalApp,
body.printing-dashboard .portal-body,
body.printing-dashboard .portal-main {
  display: block !important;
  position: static !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  width: 100% !important;
}

body.printing-dashboard #viewHome {
  display: block !important;
  position: static !important;
  visibility: visible !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 0 !important;
  margin: 0 auto !important;
  width: 1050px !important;
  max-width: 1050px !important;
}

body.printing-dashboard .dashboard-chart-row.dashboard-row-2col {
  display: grid !important;
  grid-template-columns: 517px 517px !important;
  gap: 16px !important;
  width: 1050px !important;
  margin-bottom: 12px !important;
}

body.printing-dashboard .dashboard-chart-row.dashboard-row-1col {
  display: block !important;
  width: 1050px !important;
  margin-bottom: 12px !important;
}

body.printing-dashboard .dashboard-canvas-wrap {
  height: 215px !important;
  position: relative !important;
}

body.printing-dashboard .dashboard-chart-row > div {
  padding: 12px 14px !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  border: 1px solid #cbd5e1 !important;
}

body.printing-dashboard #homeDashboardKpiGrid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 10px !important;
  margin-bottom: 10px !important;
  width: 1050px !important;
}

body.printing-dashboard #homeDashboardKpiGrid > div {
  padding: 8px 10px !important;
  box-shadow: none !important;
  border: 1px solid #cbd5e1 !important;
}

body.printing-dashboard #homeDashboardKpiGrid > div div[id^="kpi"] {
  font-size: 19px !important;
}

body.printing-dashboard .dashboard-screen-controls {
  display: none !important;
}

body.printing-dashboard .dashboard-print-badges {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

@media print {
  @page {
    size: A4 landscape;
    margin: 6mm 6mm;
  }
  body, html {
    background: #ffffff !important;
    color: #1e293b !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    overflow: visible !important;
    height: auto !important;
  }

  body.printing-dashboard {
    height: auto !important;
    min-height: 100% !important;
    overflow: visible !important;
    background: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.printing-dashboard * {
    visibility: visible !important;
  }

  /* Completely remove non-dashboard layout elements from flow */
  body.printing-dashboard .portal-sidebar,
  body.printing-dashboard .sidebar,
  body.printing-dashboard .portal-header,
  body.printing-dashboard .app-header,
  body.printing-dashboard .portal-nav,
  body.printing-dashboard .modal,
  body.printing-dashboard .modal-backdrop,
  body.printing-dashboard .toast-container,
  body.printing-dashboard .dashboard-screen-controls,
  body.printing-dashboard .btn-signin,
  body.printing-dashboard .filter-select,
  body.printing-dashboard .btn-velocity-granularity,
  body.printing-dashboard #homeDashboardPeriod,
  body.printing-dashboard #homeDashboardProvince,
  body.printing-dashboard #btnRefreshHomeDashboard,
  body.printing-dashboard #btnExportHomeDashboard,
  body.printing-dashboard #collapsibleWorkflowTasks,
  body.printing-dashboard .no-print,
  body.printing-dashboard #loginModal,
  body.printing-dashboard .portal-view:not(#viewHome),
  body.printing-dashboard .app-footer,
  body.printing-dashboard footer,
  body.printing-dashboard .portal-footer,
  body.printing-dashboard .footer-brand,
  body.printing-dashboard .footer-copyright {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
  }

  /* Page Breaks: Clean 3-page layout */
  body.printing-dashboard .dashboard-page-break-after {
    page-break-after: always !important;
    break-after: page !important;
  }

  body.printing-dashboard .dashboard-chart-row {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  body.printing-dashboard #homeDashboardKpiGrid {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  body.printing-dashboard canvas {
    display: block !important;
    max-height: 100% !important;
  }
  #practitionerModalPrintableArea,
  #firmModalPrintableArea {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: #ffffff !important;
    padding: 8px 12px;
    margin: 0;
  }
  .no-print {
    display: none !important;
  }
  .practitioner-section-card {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #004d61 !important;
    margin-bottom: 12px;
    overflow: visible !important;
    width: 100% !important;
    box-sizing: border-box;
  }
  .subview-table-wrapper {
    max-height: none !important;
    overflow: visible !important;
    width: 100% !important;
    box-sizing: border-box;
  }
  .subview-data-table {
    width: 100% !important;
    table-layout: fixed !important;
    box-sizing: border-box;
  }
  .subview-data-table th,
  .subview-data-table td {
    padding: 5px 6px !important;
    font-size: 10px !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow: visible !important;
    box-sizing: border-box;
  }
  .practitioner-section-banner,
  .practitioner-subview-header,
  .subview-data-table th {
    background-color: #004d61 !important;
    color: #ffffff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* Unallocated Accounts Sub-Tabs & Status Filter Segmented Tray */
.unallocated-tabs-bar {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-sub-tab {
  height: 30px;
  padding: 0 12px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--border-default, #cbd5e1);
  background: var(--surface-card, #ffffff);
  color: var(--text-muted, #64748b);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.btn-sub-tab:hover {
  background: var(--surface-subtle, #f8fafc);
  border-color: var(--border-strong, #94a3b8);
  color: var(--brand-teal-text, #004d61);
}

.btn-sub-tab.active {
  border: 1px solid var(--brand-teal-border, #004d61);
  background: var(--brand-teal-bg, #004d61);
  color: var(--text-inverse, #ffffff);
}

.btn-sub-tab.active:hover {
  background: var(--brand-teal-bg, #004d61);
  border-color: var(--brand-teal-border, #004d61);
  color: var(--text-inverse, #ffffff);
}

.status-filter-pill-bar {
  display: inline-flex;
  align-items: center;
  background: var(--surface-muted, #f1f5f9);
  border: none;
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
  height: 30px;
  box-sizing: border-box;
}

.btn-status-pill {
  height: 26px;
  padding: 0 10px;
  font-size: 11.5px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted-strong, #475569);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-status-pill:hover {
  background: var(--surface-elevated, #e2e8f0);
  color: var(--text-primary, #0f172a);
}

.btn-status-pill.active {
  background: var(--brand-teal-bg, #004d61);
  color: var(--text-inverse, #ffffff);
}

.btn-status-pill.active:hover {
  background: var(--brand-teal-bg, #004d61);
  color: var(--text-inverse, #ffffff);
}

/* Multi-Level Nested Sidebar Styles */
.nav-nested-submenu, .nav-deep-submenu {
  list-style: none;
  padding-left: 16px;
  margin: 0;
  display: none;
}

.nav-nested-submenu.open, .nav-deep-submenu.open {
  display: block;
}

.nav-nested-link, .nav-deep-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--text-muted-strong, #475569);
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-nested-link:hover, .nav-deep-link:hover {
  background: var(--surface-muted, #f1f5f9);
  color: var(--brand-teal-text, #004d61);
}

.nav-nested-link.active, .nav-deep-link.active {
  background: var(--status-info-bg, #e0f2fe);
  color: var(--brand-teal-text, #004d61);
  font-weight: 700;
}

.nav-nested-toggle, .nav-deep-toggle {
  cursor: pointer;
}

.nav-nested-arrow, .nav-deep-arrow {
  margin-left: auto;
  font-size: 10px;
  transition: transform 0.2s ease;
}

.nav-has-nested-submenu.open > .nav-nested-toggle .nav-nested-arrow,
.nav-has-deep-submenu.open > .nav-deep-toggle .nav-deep-arrow {
  transform: rotate(180deg);
}

/* Accordion icon rotation */
.accordion-icon.collapsed {
  transform: rotate(-90deg);
}

/* ==========================================================================
   AFF Settings & Standard Shesha Settings Forms (Matching Screenshot 2)
   ========================================================================== */
.settings-page-wrapper {
  padding: 0;
  width: 100%;
}

.settings-action-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.btn-settings-action {
  background: var(--surface-card, #ffffff);
  border: 1px solid var(--border-neutral, #d9d9d9);
  border-radius: 4px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-strong, #1e293b);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px var(--shadow-2xs, rgba(0, 0, 0, 0.03));
}

.btn-settings-action:hover {
  background: var(--surface-subtle, #f8fafc);
  border-color: var(--brand-ocean-border, #005482);
  color: var(--brand-ocean-text, #005482);
}

.btn-settings-save {
  background: var(--surface-card, #ffffff);
  border: 1px solid var(--border-neutral, #d9d9d9);
  font-weight: 600;
}

.btn-settings-save:hover {
  background: var(--brand-ocean-bg, #005482);
  color: var(--text-inverse, #ffffff);
  border-color: var(--brand-ocean-border, #005482);
}

.settings-page-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  margin: 0 0 16px 0;
  letter-spacing: -0.2px;
}

.settings-card-container {
  background: var(--surface-card, #ffffff);
  border: 1px solid var(--brand-ocean-border, #005482);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px var(--shadow-sm, rgba(0, 0, 0, 0.05));
  margin-bottom: 24px;
}

.settings-card-header {
  background: var(--brand-ocean-bg, #005482);
  color: var(--text-inverse, #ffffff);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.settings-card-body {
  padding: 24px 30px;
  background: var(--surface-page, #ffffff);
}

.settings-form-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.settings-form-row {
  display: grid;
  grid-template-columns: 270px 1fr;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.settings-form-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-strong, #1e293b);
  margin: 0;
  line-height: 1.4;
}

.settings-form-input-col {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
}

.settings-input-control {
  width: 100%;
  padding: 7px 12px;
  font-size: 13.5px;
  color: var(--text-strong, #1e293b);
  background: var(--surface-card, #ffffff);
  border: 1px solid var(--border-neutral, #d9d9d9);
  border-radius: 4px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.settings-input-control:focus {
  outline: none;
  border-color: var(--brand-ocean-border, #005482);
  box-shadow: 0 0 0 2px var(--shadow-rgba-0-84-130-0p15, rgba(0, 84, 130, 0.15));
}

.settings-date-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.settings-date-input {
  width: 100%;
  padding: 7px 12px;
  padding-right: 36px;
  font-size: 13.5px;
  color: var(--text-strong, #1e293b);
  background: var(--surface-card, #ffffff);
  border: 1px solid var(--border-neutral, #d9d9d9);
  border-radius: 4px;
  transition: all 0.2s ease;
  box-sizing: border-box;
  font-family: inherit;
}

.settings-date-input:focus {
  outline: none;
  border-color: var(--brand-ocean-border, #005482);
  box-shadow: 0 0 0 2px var(--shadow-rgba-0-84-130-0p15, rgba(0, 84, 130, 0.15));
}

.settings-date-icon {
  position: absolute;
  right: 12px;
  color: var(--text-muted, #64748b);
  pointer-events: none;
  font-size: 14px;
}

.settings-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-ocean-border, #005482);
  cursor: pointer;
  border: 1px solid var(--border-default, #cbd5e1);
  border-radius: 3px;
}

.settings-hint-text {
  font-size: 11.5px;
  color: var(--text-muted, #64748b);
  margin-top: 4px;
}

/* =============================================================================
   HIDE BACK / FORWARD ARROW BUTTONS GLOBALLY FROM ALL VIEWS AS REQUESTED
   (PROMPT 713: keep ONLY #btnFfcPeriodDetailsNavBack on FFC Period Details)
============================================================================= */
.btn-nav-back,
.btn-back,
#btnBackFromFfcPeriodCreate,
#btnDocTestingNavBack,
#btnLogonAuditNavBack,
#btnUsersNavBack,
#btnBackToFirms,
#btnPractitionersNavBack,
#btnBackToPractitioners,
#btnBackToAudit,
#btnBackToUsers,
#btnCustomPageNavBack,
#btnBackToCustomPage,
#btnAffSettingsBack,
#btnAffSettingsForward,
.btn-firms-nav[title="Back"],
.btn-firms-nav[title="Forward"],
.btn-settings-action[title="Back"],
.btn-settings-action[title="Forward"],
.firms-nav-btns-left > .btn-firms-nav[title="Back"],
.firms-nav-btns-left > .btn-firms-nav[title="Forward"] {
  display: none !important;
}

/* ==========================================================================
   Report Document Viewer, Charts & Print Preview Styles
   ========================================================================== */
.btn-viewer-tool {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--text-secondary, #334155);
  width: 26px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.btn-viewer-tool:hover {
  background: var(--surface-elevated, #e2e8f0);
  border-color: var(--border-default, #cbd5e1);
  color: var(--text-primary, #0f172a);
}

.btn-viewer-tool:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-side-strip:hover {
  color: var(--brand-teal-text, #004d61) !important;
}

.report-paper-sheet {
  box-shadow: 0 4px 20px var(--shadow-elevated, rgba(0, 0, 0, 0.15)), 0 1px 3px var(--shadow-md, rgba(0, 0, 0, 0.08));
}

.report-sheet-table th,
.report-sheet-table td {
  border: 1px solid var(--border-emphasis, #64748b);
}

.report-sheet-table tbody tr:hover {
  background-color: var(--surface-subtle, #f8fafc);
}

/* Graph Cards Export Dropdown Styles */
.chart-menu-btn:hover {
  color: var(--brand-teal-text, #004d61) !important;
  background: var(--surface-muted, #f1f5f9) !important;
}
.chart-export-action:hover {
  background: var(--surface-subtle, #f8fafc) !important;
  color: var(--brand-teal-text, #004d61) !important;
}
.chart-export-dropdown {
  animation: fadeInDown 0.15s ease-out;
}
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Print Stylesheet */
@media print {
  body * {
    visibility: hidden;
  }
  #reportPaperSheet, #reportPaperSheet * {
    visibility: visible;
  }
  #reportPaperSheet {
    position: absolute;
    left: 0;
    top: 0;
    width: 100% !important;
    min-height: auto !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}

@keyframes indeterminateProgress {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Dedicated Export Progress Modal (Pixel-matched to user screenshot) */
.export-loader-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 32px 36px 26px 36px !important;
  border-radius: 12px !important;
  box-shadow: 0 15px 35px var(--shadow-xl, rgba(0, 0, 0, 0.25)) !important;
  text-align: center !important;
  max-width: 430px !important;
  width: 90% !important;
  background: var(--surface-card, #ffffff) !important;
  border: 1px solid var(--border-rgba-226-232-240-0p8, rgba(226, 232, 240, 0.8)) !important;
  position: relative !important;
  box-sizing: border-box !important;
}

.export-circle-spinner {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  border-radius: 50% !important;
  border: 3.5px solid var(--border-subtle, #e2e8f0) !important;
  border-top-color: var(--brand-teal-border, #004d61) !important;
  border-right-color: var(--border-subtle, #e2e8f0) !important;
  border-bottom-color: var(--border-subtle, #e2e8f0) !important;
  border-left-color: var(--border-subtle, #e2e8f0) !important;
  box-sizing: border-box !important;
  animation: exportCircleSpin 0.85s linear infinite !important;
  margin: 0 auto 18px auto !important;
}

@keyframes exportCircleSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.export-progress-track {
  width: 100% !important;
  height: 3px !important;
  background: var(--surface-track, #edf2f7) !important;
  border-radius: 2px !important;
  overflow: hidden !important;
  position: relative !important;
  margin-top: 4px !important;
}

.export-progress-bar-moving {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 25% !important;
  background: var(--brand-teal-bg, #004d61) !important;
  border-radius: 2px !important;
  animation: exportBarSlide 1.5s ease-in-out infinite !important;
}

@keyframes exportBarSlide {
  0% {
    left: -25%;
    width: 20%;
  }
  50% {
    left: 45%;
    width: 35%;
  }
  100% {
    left: 105%;
    width: 20%;
  }
}

/* ==========================================================================
   Permanently remove all forward and back buttons everywhere per user request
   (PROMPT 713 exception: keep ONLY #btnFfcPeriodDetailsNavBack visible)
   ========================================================================== */
.btn-nav-back,
.btn-nav-forward,
.btn-detail-back:not(#btnFfcPeriodDetailsNavBack),
.detail-back-btn:not(#btnFfcPeriodDetailsNavBack),
button[title="Back"]:not(#btnFfcPeriodDetailsNavBack),
button[title="Forward"],
button[title^="Back to"]:not(#btnFfcPeriodDetailsNavBack),
button[title="Back to Firms"],
button[title="Back to Practitioners"],
button[title="Back to Audit Trail"],
button[title="Back to Users Administration"],
button[title="Back to Custom Page"],
button[title="Back to Certificate Details"],
.btn-firms-nav:has(.fa-arrow-left):not(#btnFfcPeriodDetailsNavBack),
.btn-firms-nav:has(.fa-arrow-right),
#btnDocTestingNavBack,
#btnLogonAuditNavBack,
#btnUsersNavBack,
#btnPractitionersNavBack,
#btnCustomPageNavBack,
#btnTicketsNavBack,
#btnTicketsHistoryNavBack,
#btnRunAsNavBack,
#btnRunAsAuditNavBack,
#btnBackToFirms,
#btnBackToPractitioners,
#btnBackToAudit,
#btnBackToUsers,
#btnBackToCustomPage,
#btnBackFromFfcPeriodCreate,
#btnBackFromIntegrationManage,
#btnBackToBatchesList,
#btnBackFromCertDetailModal,
#btnBackToCertModal,
#btnBackFromTrustAccountDetail,
#btnBackFromFirmInfo,
#btnBackFromRiskQuestionnaire,
#btnBackFromFirmQuestionnaire {
  display: none !important;
}

#btnFfcPeriodDetailsNavBack {
  display: inline-flex !important;
}

#initiateProgressModal {
  background: var(--overlay-rgba-0-0-0-0p15, rgba(0, 0, 0, 0.15));
  backdrop-filter: none;
}

#initiateProgressModal .modal-content {
  background: var(--surface-card, #ffffff);
  border-radius: 8px;
  width: 100%;
  padding: 28px;
  box-shadow: 0 10px 30px var(--shadow-modal, rgba(0, 0, 0, 0.2));
}

#initiateProgressModal .initiate-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border: 4px solid var(--border-subtle, #e2e8f0);
  border-top-color: var(--brand-teal-border, #004d61);
  border-radius: 50%;
  animation: initiateSpin 0.8s linear infinite;
}

@keyframes initiateSpin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Toggle Switch & Slider Components
   ========================================================================== */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  cursor: pointer;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--surface-strong, #cbd5e1);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 24px;
  box-shadow: inset 0 1px 2px var(--shadow-card-lg, rgba(0, 0, 0, 0.12));
}

.switch .slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--surface-card, #ffffff);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px var(--shadow-xl, rgba(0, 0, 0, 0.25));
}

.switch input:checked + .slider {
  background-color: var(--brand-teal-bg, #004d61) !important;
}

.switch input:focus + .slider {
  box-shadow: 0 0 0 3px var(--shadow-rgba-0-77-97-0p2, rgba(0, 77, 97, 0.2));
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}

.switch:hover .slider {
  filter: brightness(0.96);
}

/* ==========================================================================
   PROMPT 678 / PROMPT 693 — Exceptions Report UI Redesign & Header Polish
   ========================================================================== */
#viewExceptionsReport .exceptions-toolbar {
  background-color: var(--lpff-teal, #004d61);
  border-radius: 6px 6px 0 0;
  padding: 8px 14px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  flex-wrap: wrap;
}

#viewExceptionsReport .exceptions-toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

#viewExceptionsReport .exceptions-toolbar-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-inverse, #ffffff) !important;
  letter-spacing: 0.01em;
  white-space: nowrap;
  padding-right: 10px;
  border-right: 1px solid var(--border-rgba-255-255-255-0p25, rgba(255, 255, 255, 0.25));
}

#viewExceptionsReport .exceptions-toolbar-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#viewExceptionsReport .exceptions-toolbar-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-on-dark-muted, #e2e8f0);
  white-space: nowrap;
}

#viewExceptionsReport .exceptions-period-select {
  height: 30px;
  min-width: 84px;
  padding: 0 26px 0 9px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border-rgba-255-255-255-0p45, rgba(255, 255, 255, 0.45));
  border-radius: 4px;
  background-color: var(--surface-card, #ffffff);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%230f172a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 7px center;
  background-size: 12px 12px;
  color: var(--text-primary, #0f172a);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
  box-sizing: border-box;
}

#viewExceptionsReport .exceptions-period-select:hover {
  border-color: var(--border-rgba-255-255-255-0p8, rgba(255, 255, 255, 0.8));
}

#viewExceptionsReport .exceptions-period-select:focus {
  border-color: var(--border-teal-38bdf8, #38bdf8);
  box-shadow: 0 0 0 2px var(--shadow-rgba-56-189-248-0p25, rgba(56, 189, 248, 0.25));
}

#viewExceptionsReport .exceptions-search-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

#viewExceptionsReport .exceptions-search-input {
  width: 230px;
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
  border: 1px solid var(--border-rgba-255-255-255-0p45, rgba(255, 255, 255, 0.45));
  border-radius: 4px;
  background: var(--surface-card, #ffffff);
  color: var(--text-primary, #0f172a);
  outline: none;
  box-sizing: border-box;
}

#viewExceptionsReport .exceptions-search-input:focus {
  border-color: var(--border-teal-38bdf8, #38bdf8);
  box-shadow: 0 0 0 2px var(--shadow-rgba-56-189-248-0p25, rgba(56, 189, 248, 0.25));
}

/* Header Advanced Filter Button (matches 682/689 popup section toolbar style) */
#viewExceptionsReport .btn-exceptions-advanced {
  background: var(--overlay-glass-medium, rgba(255, 255, 255, 0.15));
  border: 1px solid var(--border-rgba-255-255-255-0p3, rgba(255, 255, 255, 0.3));
  color: var(--text-inverse, #ffffff);
  height: 30px;
  box-sizing: border-box;
  padding: 0 10px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

#viewExceptionsReport .btn-exceptions-advanced:hover {
  background: var(--overlay-rgba-255-255-255-0p28, rgba(255, 255, 255, 0.28));
  border-color: var(--border-rgba-255-255-255-0p55, rgba(255, 255, 255, 0.55));
}

#viewExceptionsReport .btn-exceptions-advanced:focus-visible {
  outline: none;
  border-color: var(--border-teal-38bdf8, #38bdf8);
  box-shadow: 0 0 0 2px var(--shadow-rgba-56-189-248-0p32, rgba(56, 189, 248, 0.32));
}

#viewExceptionsReport .btn-exceptions-advanced.active,
#viewExceptionsReport .btn-exceptions-advanced.has-active-filters {
  background: var(--overlay-rgba-255-255-255-0p32, rgba(255, 255, 255, 0.32));
  border-color: var(--border-rgba-255-255-255-0p7, rgba(255, 255, 255, 0.7));
}

#viewExceptionsReport .exc-adv-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--surface-card, #ffffff);
  color: var(--brand-teal-text, #004d61);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
}

#viewExceptionsReport .btn-exceptions-toolbar-primary {
  height: 30px;
  padding: 0 12px;
  background: var(--surface-card, #ffffff);
  color: var(--brand-teal-text, #004d61);
  border: 1px solid var(--border-inverse, #ffffff);
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background 0.15s ease;
}

#viewExceptionsReport .btn-exceptions-toolbar-primary:hover {
  background: var(--status-info-subtle-bg, #f0f9ff);
}

#viewExceptionsReport .btn-exceptions-toolbar-secondary {
  height: 30px;
  padding: 0 10px;
  background: var(--overlay-glass-subtle, rgba(255, 255, 255, 0.12));
  color: var(--text-inverse, #ffffff);
  border: 1px solid var(--border-rgba-255-255-255-0p35, rgba(255, 255, 255, 0.35));
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: background 0.15s ease;
}

#viewExceptionsReport .btn-exceptions-toolbar-secondary:hover {
  background: var(--overlay-rgba-255-255-255-0p22, rgba(255, 255, 255, 0.22));
}

#viewExceptionsReport .btn-exceptions-toolbar-icon {
  width: 30px;
  height: 30px;
  background: var(--overlay-glass-subtle, rgba(255, 255, 255, 0.12));
  color: var(--text-inverse, #ffffff);
  border: 1px solid var(--border-rgba-255-255-255-0p35, rgba(255, 255, 255, 0.35));
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

#viewExceptionsReport .btn-exceptions-toolbar-icon:hover {
  background: var(--overlay-rgba-255-255-255-0p22, rgba(255, 255, 255, 0.22));
}

/* Collapsible Grey Advanced Filter Band & Closed-Band Active Filters Summary Line (PROMPT 693) */
#viewExceptionsReport .exceptions-adv-band-host {
  position: relative;
  z-index: 30;
}

#viewExceptionsReport .exceptions-adv-band-host > .shared-advanced-filter-bar {
  margin: 0 !important;
  padding: 9px 14px !important;
  background: var(--surface-subtle, #f8fafc) !important;
  border-left: 1px solid var(--border-default, #cbd5e1) !important;
  border-right: 1px solid var(--border-default, #cbd5e1) !important;
  border-bottom: 1px solid var(--border-default, #cbd5e1) !important;
  border-top: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

#viewExceptionsReport .exceptions-active-filters-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 6px 14px;
  background: var(--surface-subtle, #f8fafc);
  border-left: 1px solid var(--border-default, #cbd5e1);
  border-right: 1px solid var(--border-default, #cbd5e1);
  border-bottom: 1px solid var(--border-default, #cbd5e1);
  font-size: 11.5px;
  color: var(--text-secondary, #334155);
}

#viewExceptionsReport .exc-active-filters-label {
  font-weight: 700;
  color: var(--brand-teal-text, #004d61);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

#viewExceptionsReport .exc-active-filters-chips {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

#viewExceptionsReport .exc-clear-all-filters-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--status-info-text, #0369a1);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 2px 4px;
}

#viewExceptionsReport .exc-clear-all-filters-btn:hover {
  color: var(--brand-teal-text, #004d61);
}

/* Clear Filled Report Tabs with Pill Count Badges & Zero Vertical Scrollbar (PROMPT 693) */
#viewExceptionsReport .exceptions-tabs-bar {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 8px 12px 0;
  background: var(--surface-muted, #f1f5f9);
  border-left: 1px solid var(--border-default, #cbd5e1);
  border-right: 1px solid var(--border-default, #cbd5e1);
  border-bottom: 1px solid var(--border-default, #cbd5e1);
  margin-bottom: 10px;
  border-radius: 0 0 6px 6px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

#viewExceptionsReport .btn-exception-tab {
  appearance: none;
  min-height: 40px;
  padding: 9px 18px;
  margin: 0;
  background: var(--overlay-rgba-255-255-255-0p55, rgba(255, 255, 255, 0.55));
  border: 1px solid var(--border-default, #cbd5e1);
  border-top: 3px solid transparent;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted-strong, #475569);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-sizing: border-box;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

#viewExceptionsReport .btn-exception-tab:hover {
  color: var(--text-primary, #0f172a);
  background: var(--overlay-surface-opaque, rgba(255, 255, 255, 0.92));
  border-color: var(--border-strong, #94a3b8);
  border-top-color: var(--border-emphasis, #64748b);
  border-bottom: none;
}

#viewExceptionsReport .btn-exception-tab:focus-visible {
  outline: 2px solid var(--brand-sky-border, #0284c7);
  outline-offset: -2px;
}

#viewExceptionsReport .btn-exception-tab.active {
  background: var(--surface-card, #ffffff);
  color: var(--brand-teal-text, #004d61);
  font-weight: 700;
  border-left: 1px solid var(--border-default, #cbd5e1);
  border-right: 1px solid var(--border-default, #cbd5e1);
  border-top: 3px solid var(--brand-teal-border, #004d61);
  border-bottom: none;
  box-shadow: 0 1px 0 var(--surface-neutral-ffffff, #ffffff);
}

#viewExceptionsReport .exc-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  background: var(--surface-elevated, #e2e8f0);
  color: var(--text-muted-strong, #475569);
}

#viewExceptionsReport .btn-exception-tab.active .exc-tab-count {
  background: var(--brand-teal-bg, #004d61);
  color: var(--text-inverse, #ffffff);
  font-weight: 700;
}

/* Summary Strip Above Table */
#viewExceptionsReport .exceptions-summary-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 7px 12px;
  background: var(--surface-subtle, #f8fafc);
  border: 1px solid var(--border-default, #cbd5e1);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  font-size: 12px;
  color: var(--text-secondary, #334155);
}

#viewExceptionsReport .exceptions-summary-metrics {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

#viewExceptionsReport .exc-metric-item strong {
  color: var(--text-primary, #0f172a);
  font-weight: 700;
}

#viewExceptionsReport .exc-metric-sep {
  color: var(--text-subtle, #94a3b8);
}

#viewExceptionsReport .exc-metric-sub {
  color: var(--text-muted, #64748b);
  font-size: 11px;
  margin-left: 4px;
}

#viewExceptionsReport .exc-metric-context {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 4px;
  background: var(--surface-elevated, #e2e8f0);
  color: var(--text-secondary, #334155);
  font-size: 11px;
  font-weight: 600;
}

#viewExceptionsReport .exceptions-summary-legend {
  font-size: 11.5px;
  color: var(--text-muted, #64748b);
  display: inline-flex;
  align-items: center;
}

#viewExceptionsReport .exc-star-legend {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--surface-card, #ffffff);
  border: 1px solid var(--border-default, #cbd5e1);
  cursor: help;
  outline: none;
}

#viewExceptionsReport .exc-star-legend:hover,
#viewExceptionsReport .exc-star-legend:focus-visible {
  border-color: var(--brand-teal-border, #004d61);
  background: var(--status-info-subtle-bg, #f0f9ff);
}

#viewExceptionsReport .exc-star-legend strong {
  color: var(--status-warning-strong-text, #b45309);
  font-weight: 800;
  font-size: 11.5px;
  line-height: 1;
}

#viewExceptionsReport .exc-star-info-icon {
  color: var(--brand-teal-text, #004d61);
  font-size: 12px;
}

#viewExceptionsReport .exc-star-legend[data-tooltip]:hover::after,
#viewExceptionsReport .exc-star-legend[data-tooltip]:focus-visible::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  background: var(--surface-dark-navy, #0f172a);
  color: var(--text-inverse, #ffffff);
  padding: 5px 9px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 4px 12px var(--shadow-rgba-15-23-42-0p22, rgba(15, 23, 42, 0.22));
  pointer-events: none;
  z-index: 60;
}

/* Unified Single Sticky-Header Table */
#viewExceptionsReport .exceptions-unified-table-wrap {
  min-height: 420px;
  max-height: calc(100vh - 285px);
  overflow-y: auto;
  overflow-x: auto;
  border: 1px solid var(--border-default, #cbd5e1);
  background: var(--surface-card, #ffffff);
}

#viewExceptionsReport .exceptions-unified-table {
  width: 100%;
  min-width: 660px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 11.5px;
  text-align: left;
}

#viewExceptionsReport .exceptions-unified-table thead th {
  position: sticky;
  top: 0;
  z-index: 15;
  background: var(--brand-teal-bg, #004d61);
  color: var(--text-inverse, #ffffff);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.01em;
  padding: 8px 8px;
  border-bottom: 2px solid var(--border-teal-003a49, #003a49);
  border-right: 1px solid var(--border-rgba-255-255-255-0p14, rgba(255, 255, 255, 0.14));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#viewExceptionsReport .exceptions-unified-table thead th:last-child {
  border-right: none;
}

#viewExceptionsReport .exceptions-unified-table .std-list-actions-th,
#viewExceptionsReport .exceptions-unified-table .std-list-actions-td {
  width: auto !important;
  min-width: 0 !important;
}

/* Slim Light-Tinted Firm Group Rows */
#viewExceptionsReport tr.exceptions-firm-group-row td {
  padding: 5px 10px;
  background: var(--surface-muted, #f1f5f9);
  border-top: 1px solid var(--border-default, #cbd5e1);
  border-bottom: 1px solid var(--border-subtle, #e2e8f0);
  cursor: pointer;
  user-select: none;
}

#viewExceptionsReport tr.exceptions-firm-group-row:first-child td {
  border-top: none;
}

#viewExceptionsReport tr.exceptions-firm-group-row:hover td {
  background: var(--surface-elevated, #e2e8f0);
}

#viewExceptionsReport .exceptions-firm-group-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#viewExceptionsReport .exceptions-firm-group-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

#viewExceptionsReport .exceptions-group-chevron {
  width: 12px;
  text-align: center;
  font-size: 10px;
  color: var(--brand-teal-text, #004d61);
  flex-shrink: 0;
}

#viewExceptionsReport .exceptions-firm-name {
  font-weight: 700;
  font-size: 11.5px;
  color: var(--text-primary, #0f172a);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#viewExceptionsReport .exceptions-firm-name-unlinked {
  color: var(--text-muted, #64748b);
  font-style: italic;
  font-weight: 600;
}

#viewExceptionsReport .exc-star-mark {
  color: var(--status-warning-strong-text, #b45309);
  font-weight: 800;
  text-decoration: underline dotted var(--border-strong, #94a3b8);
  cursor: help;
}

#viewExceptionsReport .exceptions-firm-no-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--surface-card, #ffffff);
  border: 1px solid var(--border-default, #cbd5e1);
  color: var(--text-muted-strong, #475569);
  font-family: Consolas, 'SFMono-Regular', Menlo, monospace;
  font-size: 10.5px;
  font-weight: 600;
  flex-shrink: 0;
}

#viewExceptionsReport .exceptions-group-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-teal-text, #004d61);
  background: var(--status-info-bg, #e0f2fe);
  border: 1px solid var(--status-info-border, #bae6fd);
  padding: 0 7px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Practitioner Data Rows */
#viewExceptionsReport .exceptions-unified-table tbody tr.exceptions-data-row td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border-subtle, #e2e8f0);
  border-right: 1px solid var(--border-faint, #f1f5f9);
  vertical-align: middle;
  color: var(--text-strong, #1e293b);
  overflow: hidden;
  text-overflow: ellipsis;
}

#viewExceptionsReport .exceptions-unified-table tbody tr.exceptions-data-row td:last-child {
  border-right: none;
}

#viewExceptionsReport .exceptions-unified-table tbody tr.exceptions-data-row:hover td {
  background-color: var(--surface-subtle, #f8fafc);
}

#viewExceptionsReport .exc-cell-practitioner {
  font-weight: 500;
  color: var(--text-primary, #0f172a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#viewExceptionsReport .exc-cell-mono {
  font-family: Consolas, 'SFMono-Regular', Menlo, monospace;
  font-size: 10.5px;
  color: var(--text-secondary, #334155);
  white-space: nowrap;
}

#viewExceptionsReport .exc-cert-link {
  color: var(--status-info-text, #0369a1);
  text-decoration: underline;
  font-weight: 600;
  font-family: Consolas, 'SFMono-Regular', Menlo, monospace;
  font-size: 10.5px;
  cursor: pointer;
}

#viewExceptionsReport .exc-cert-link:hover {
  color: var(--brand-teal-text, #004d61);
}

#viewExceptionsReport .exc-cell-reason {
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-secondary, #334155);
  white-space: normal;
  word-break: break-word;
}

/* Semantic Status Pills */
#viewExceptionsReport .exc-status-pill {
  display: inline-block;
  text-align: center;
  vertical-align: middle;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

#viewExceptionsReport .exc-pill-blocking {
  background: var(--status-danger-subtle-bg, #fef2f2);
  color: var(--status-danger-strong-text, #b91c1c);
  border: 1px solid var(--status-danger-border, #fecaca);
}

#viewExceptionsReport .exc-pill-outstanding {
  background: var(--status-warning-subtle-bg, #fffbeb);
  color: var(--status-warning-strong-text, #b45309);
  border: 1px solid var(--status-warning-border, #fde68a);
}

#viewExceptionsReport .exc-pill-done {
  background: var(--status-success-subtle-bg, #f0fdf4);
  color: var(--status-success-strong-text, #15803d);
  border: 1px solid var(--status-success-border, #bbf7d0);
}

#viewExceptionsReport .exc-pill-not-started {
  background: var(--surface-muted, #f1f5f9);
  color: var(--text-muted-strong, #475569);
  border: 1px solid var(--border-subtle, #e2e8f0);
}

/* Labelled Open Action Button */
#viewExceptionsReport .btn-exc-open-action {
  width: auto !important;
  height: 24px !important;
  padding: 0 8px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: var(--brand-teal-text, #004d61) !important;
  background: var(--surface-card, #ffffff) !important;
  border: 1px solid var(--border-default, #cbd5e1) !important;
  border-radius: 4px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

#viewExceptionsReport .btn-exc-open-action:hover {
  background: var(--status-info-subtle-bg, #f0f9ff) !important;
  border-color: var(--brand-teal-border, #004d61) !important;
}

@media (max-width: 1180px) {
  #viewExceptionsReport .exceptions-toolbar {
    padding: 7px 10px;
    gap: 6px 8px;
  }
  #viewExceptionsReport .exceptions-toolbar-left {
    gap: 6px;
  }
  #viewExceptionsReport .exceptions-toolbar-title {
    font-size: 12px;
    padding-right: 7px;
  }
  #viewExceptionsReport .exceptions-period-select {
    min-width: 74px;
    padding: 0 22px 0 7px;
    font-size: 11.5px;
  }
  #viewExceptionsReport .exceptions-search-input {
    width: 132px;
    padding: 0 7px;
    font-size: 11.5px;
  }
  #viewExceptionsReport .btn-exceptions-advanced,
  #viewExceptionsReport .btn-exceptions-toolbar-secondary,
  #viewExceptionsReport .btn-exceptions-toolbar-primary {
    padding: 0 8px;
    font-size: 11px;
  }
  #viewExceptionsReport .btn-exception-tab {
    min-height: 38px;
    padding: 8px 13px;
    font-size: 12px;
    gap: 6px;
  }
  #viewExceptionsReport .exceptions-unified-table {
    font-size: 10.5px;
  }
  #viewExceptionsReport .exceptions-unified-table thead th,
  #viewExceptionsReport .exceptions-unified-table tbody tr.exceptions-data-row td {
    padding: 5px 5px;
  }
  #viewExceptionsReport .exc-status-pill {
    padding: 1px 5px;
    font-size: 9.5px;
  }
  #viewExceptionsReport .btn-exc-open-action {
    padding: 0 6px !important;
    font-size: 10px !important;
  }
}

/* ============================================================================
   PROMPT 721 — Refund Role Guidance: Admin Queue Tabs & "Your next step" Panel
   (Uses strictly PROMPT 706 semantic tokens + PROMPT 715 toolbar geometry)
   ============================================================================ */
#refundQueueTabsBar {
  display: flex;
  gap: 6px;
  border-bottom: 2px solid var(--border-subtle);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.refund-queue-tab-btn {
  padding: 9px 15px;
  border: 1px solid var(--border-default);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  background-color: var(--surface-subtle);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.12s ease, color 0.12s ease, opacity 0.12s ease, border-color 0.12s ease;
}

.refund-queue-tab-btn:hover:not(.active):not([aria-disabled="true"]) {
  background-color: var(--surface-muted);
  color: var(--text-primary);
}

.refund-queue-tab-btn.is-own-role-tab:not(.active) {
  border-color: var(--brand-teal-accent-bg);
  color: var(--brand-navy-text);
}

.refund-queue-tab-btn.active {
  background-color: var(--brand-navy-bg);
  border-color: var(--brand-navy-bg);
  color: var(--text-inverse);
}

.refund-queue-tab-btn.is-muted:not(.active) {
  opacity: 0.56;
  background-color: var(--surface-subtle);
  color: var(--text-muted);
  border-color: var(--border-subtle);
}

.refund-queue-tab-btn[aria-disabled="true"] {
  cursor: not-allowed;
}

.refund-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  padding: 1px 7px;
  border-radius: 10px;
  background-color: var(--surface-elevated);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
}

.refund-queue-tab-btn.active .refund-tab-badge {
  background-color: var(--overlay-rgba-255-255-255-0p2);
  color: var(--text-inverse);
}

.refund-queue-tab-btn.is-own-role-tab .refund-tab-badge.is-own-todo-badge {
  background-color: var(--status-warning-bg);
  color: var(--status-warning-text);
  border: 1px solid var(--status-warning-strong-border);
}

.refund-queue-tab-btn.active.is-own-role-tab .refund-tab-badge.is-own-todo-badge {
  background-color: var(--status-success-teal-bg);
  color: var(--brand-teal-accent-text);
  border: none;
}

.refund-your-next-step-panel {
  border-radius: 8px;
  padding: 12px 15px;
  margin-bottom: 14px;
  background-color: var(--surface-subtle);
  border: 1px solid var(--border-default);
}

.refund-your-next-step-panel[data-next-steps-tone="ready"] {
  background-color: var(--status-success-subtle-bg);
  border-color: var(--status-success-strong-border);
}

.refund-your-next-step-panel[data-next-steps-tone="pending"] {
  background-color: var(--status-warning-subtle-bg);
  border-color: var(--status-warning-strong-border);
}

.refund-your-next-step-panel[data-next-steps-tone="blocked"] {
  background-color: var(--status-danger-subtle-bg);
  border-color: var(--status-danger-strong-border);
}

.refund-next-step-who-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.refund-next-step-sod-banner {
  padding: 8px 11px;
  border-radius: 6px;
  background-color: var(--status-danger-bg);
  border: 1px solid var(--status-danger-strong-border);
  color: var(--status-danger-text);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 8px;
}

.refund-next-step-waiting-banner {
  padding: 8px 11px;
  border-radius: 6px;
  background-color: var(--surface-card);
  border: 1px solid var(--border-default);
  color: var(--text-strong);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 8px;
}

.refund-next-step-open-flags {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.refund-next-step-flag-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  background-color: var(--status-warning-bg);
  border: 1px solid var(--status-warning-strong-border);
  color: var(--status-warning-text);
  font-size: 12px;
}

.refund-next-step-what-list {
  margin: 4px 0 10px;
  padding-left: 20px;
  color: var(--text-strong);
  font-size: 12.5px;
  line-height: 1.5;
}

.refund-next-step-what-list li {
  margin-bottom: 3px;
  font-weight: 600;
}

.refund-next-step-actions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.refund-next-step-action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.refund-next-step-action-btn {
  height: 30px;
  padding: 4px 12px;
  border-radius: 3px;
  border: 1px solid var(--border-default);
  background-color: var(--surface-card);
  color: var(--text-strong);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease, opacity 0.12s ease;
}

.refund-next-step-action-btn:hover:not(:disabled) {
  background-color: var(--surface-muted);
  color: var(--text-primary);
}

.refund-next-step-action-btn.is-primary {
  background-color: var(--brand-navy-bg);
  border-color: var(--brand-navy-bg);
  color: var(--text-inverse);
  font-weight: 700;
}

.refund-next-step-action-btn.is-primary:hover:not(:disabled) {
  background-color: var(--brand-teal-bg);
  border-color: var(--brand-teal-bg);
  color: var(--text-inverse);
}

.refund-next-step-action-btn.is-danger {
  border-color: var(--status-danger-strong-border);
  color: var(--status-danger-vivid-text);
  background-color: var(--surface-card);
}

.refund-next-step-action-btn.is-danger:hover:not(:disabled) {
  background-color: var(--status-danger-subtle-bg);
  color: var(--status-danger-text);
}

.refund-next-step-action-btn:disabled {
  background-color: var(--surface-strong);
  border-color: var(--border-default);
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.72;
}

.refund-next-step-consequence {
  font-size: 12px;
  color: var(--text-muted-strong);
  line-height: 1.4;
}

/* ============================================================================
   BEGIN_PROMPT_724_FLOW_CHART
   BEGIN_PROMPT_726_FLOW_CHART
   PROMPT 726 — Refund Management: Slim Single-Line Flow Chart (Rework of 724)
   (Uses strictly PROMPT 706 dark-mode semantic tokens — zero hard-coded colours)
   ============================================================================ */
#view-refund-management {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

#refundFlowChart {
  --flow-gap: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  background-color: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  padding: 4px 8px;
  margin-bottom: 12px;
  overflow: visible;
}

#refundFlowChart.is-collapsed {
  align-items: center;
  padding: 3px 8px;
}

#refundFlowChart [hidden] {
  display: none !important;
}

.refund-flow-collapsed-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted-strong);
  line-height: 1.2;
}

.refund-flow-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: visible;
}

.refund-flow-main-track {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) var(--flow-gap)
    minmax(0, 1fr) var(--flow-gap)
    minmax(0, 1fr) var(--flow-gap)
    minmax(0, 1fr) var(--flow-gap)
    minmax(0, 1fr) var(--flow-gap)
    minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
  min-width: 0;
  overflow: visible;
}

.refund-flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  user-select: none;
}

.refund-flow-arrow-h {
  display: block;
}

.refund-flow-arrow-v {
  display: none;
}

.refund-flow-chip {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: visible;
}

.refund-flow-step-btn {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  padding: 3px 7px;
  border-radius: 5px;
  border: 1px solid var(--border-default);
  background-color: var(--surface-subtle);
  color: var(--text-primary);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease, opacity 0.12s ease;
}

.refund-flow-chip.has-info .refund-flow-step-actor {
  padding-right: 16px;
}

.refund-flow-step-btn:hover:not([aria-disabled="true"]):not(.is-current-role) {
  background-color: var(--surface-muted);
  border-color: var(--border-strong);
}

.refund-flow-step-btn.is-active-tab-step:not(.is-current-role) {
  background-color: var(--status-info-subtle-bg);
  border-color: var(--brand-sky-border);
}

.refund-flow-step-btn.is-current-role {
  background-color: var(--brand-teal-bg);
  border-color: var(--brand-teal-border);
  color: var(--text-inverse);
}

.refund-flow-step-btn.is-current-role:hover:not([aria-disabled="true"]) {
  background-color: var(--brand-teal-hover-bg);
  border-color: var(--brand-teal-border);
}

.refund-flow-step-btn.is-muted-step:not(.is-current-role):not(.is-active-tab-step) {
  opacity: 0.76;
}

.refund-flow-step-btn[aria-disabled="true"],
.refund-flow-return-btn[aria-disabled="true"] {
  cursor: not-allowed;
}

.refund-flow-step-btn:focus-visible,
.refund-flow-info-trigger:focus-visible,
.refund-flow-return-btn:focus-visible,
.refund-flow-chevron-btn:focus-visible {
  outline: 2px solid var(--brand-sky-border);
  outline-offset: 1px;
}

.refund-flow-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  width: 100%;
  min-width: 0;
  min-height: 14px;
}

.refund-flow-step-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-navy-text);
  line-height: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.refund-flow-step-btn.is-current-role .refund-flow-step-title {
  color: var(--text-inverse);
}

.refund-flow-step-actor {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  box-sizing: border-box;
}

.refund-flow-step-btn.is-current-role .refund-flow-step-actor {
  color: var(--text-on-dark-muted);
}

.refund-flow-step-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 14px;
  padding: 0 5px;
  border-radius: 9px;
  background-color: var(--surface-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  box-sizing: border-box;
}

.refund-flow-step-btn.is-current-role .refund-flow-step-count {
  background-color: var(--status-warning-bg);
  color: var(--status-warning-text);
  border-color: var(--status-warning-strong-border);
}

/* Info icon & hover/focus tooltip */
.refund-flow-info-trigger {
  position: absolute;
  right: 4px;
  bottom: 2px;
  z-index: 3;
  width: 15px;
  height: 15px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: transparent;
  color: var(--text-muted);
  font-size: 10.5px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.refund-flow-info-trigger:hover,
.refund-flow-info-trigger:focus {
  color: var(--text-primary);
}

.refund-flow-chip.is-current-role .refund-flow-info-trigger {
  color: var(--text-on-dark-muted);
}

.refund-flow-chip.is-current-role .refund-flow-info-trigger:hover,
.refund-flow-chip.is-current-role .refund-flow-info-trigger:focus {
  color: var(--text-inverse);
}

.refund-flow-tooltip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  z-index: 50;
  width: max-content;
  max-width: 240px;
  padding: 4px 8px;
  border-radius: 5px;
  background-color: var(--surface-dark-navy);
  color: var(--text-on-dark);
  border: 1px solid var(--border-strong);
  box-shadow: 0 4px 10px var(--shadow-rgba-0-0-0-0p28);
  font-family: var(--font-family);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease, visibility 0.12s ease;
}

.refund-flow-info-trigger:hover:not([data-tooltip-dismissed="true"]) .refund-flow-tooltip,
.refund-flow-info-trigger:focus:not([data-tooltip-dismissed="true"]) .refund-flow-tooltip,
.refund-flow-info-trigger:focus-visible:not([data-tooltip-dismissed="true"]) .refund-flow-tooltip {
  opacity: 1;
  visibility: visible;
}

.refund-flow-tooltip-mobile-extra {
  display: none;
}

/* Thin muted return arrow row under LPC check / Fund verify / Fund approve -> Firm -> LPC check */
.refund-flow-return-row {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) var(--flow-gap)
    minmax(0, 1fr) var(--flow-gap)
    minmax(0, 1fr) var(--flow-gap)
    minmax(0, 1fr) var(--flow-gap)
    minmax(0, 1fr) var(--flow-gap)
    minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  height: 15px;
}

.refund-flow-return-btn {
  grid-column: 1 / 8;
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) var(--flow-gap)
    minmax(0, 1fr) var(--flow-gap)
    minmax(0, 1fr) var(--flow-gap)
    minmax(0, 1fr);
  align-items: center;
  width: 100%;
  min-width: 0;
  height: 15px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 3px;
  background-color: transparent;
  color: var(--text-muted);
  font-family: inherit;
  cursor: pointer;
}

.refund-flow-return-btn:hover:not([aria-disabled="true"]),
.refund-flow-return-btn.is-active-tab-step {
  color: var(--brand-teal-text);
}

.refund-flow-return-firm-cell {
  grid-column: 1 / 2;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  display: inline-flex;
  align-items: center;
}

.refund-flow-return-firm {
  display: inline-flex;
  align-items: center;
  height: 13px;
  padding: 0 5px;
  border-radius: 3px;
  border: 1px solid var(--border-default);
  background-color: var(--surface-subtle);
  color: var(--text-muted-strong);
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1;
  box-sizing: border-box;
}

.refund-flow-return-btn:hover:not([aria-disabled="true"]) .refund-flow-return-firm,
.refund-flow-return-btn.is-active-tab-step .refund-flow-return-firm {
  border-color: var(--brand-sky-border);
  background-color: var(--status-info-subtle-bg);
  color: var(--brand-teal-text);
}

.refund-flow-return-loop-cell {
  grid-column: 2 / 4;
  grid-row: 1;
  justify-self: start;
  align-self: center;
  width: 26px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  z-index: 1;
}

.refund-flow-return-loop-svg {
  display: block;
  width: 26px;
  height: 14px;
  flex-shrink: 0;
}

.refund-flow-return-span-cell {
  grid-column: 3 / 8;
  grid-row: 1;
  position: relative;
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) var(--flow-gap)
    minmax(0, 1fr) var(--flow-gap)
    minmax(0, 1fr);
  width: 100%;
  height: 14px;
  align-self: center;
}

.refund-flow-return-tick {
  grid-row: 1;
  justify-self: center;
  align-self: start;
  width: 1px;
  height: 10.5px;
  background-color: currentColor;
}

.refund-flow-return-tick.is-lpc {
  grid-column: 1 / 2;
}

.refund-flow-return-tick.is-verify {
  grid-column: 3 / 4;
}

.refund-flow-return-tick.is-approve {
  grid-column: 5 / 6;
}

.refund-flow-return-wire {
  position: absolute;
  left: calc(26px - var(--flow-gap));
  right: calc((100% - (2 * var(--flow-gap))) / 6);
  top: 10px;
  height: 1px;
  background-color: currentColor;
}

.refund-flow-return-caption {
  grid-column: 3 / 8;
  grid-row: 1;
  justify-self: center;
  align-self: end;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 5px;
  background-color: var(--surface-card);
  line-height: 1;
}

.refund-flow-return-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted-strong);
  line-height: 11px;
  white-space: nowrap;
}

.refund-flow-return-btn:hover:not([aria-disabled="true"]) .refund-flow-return-label,
.refund-flow-return-btn.is-active-tab-step .refund-flow-return-label {
  color: var(--brand-teal-text);
  font-weight: 600;
}

.refund-flow-return-count {
  height: 13px;
  min-width: 15px;
  padding: 0 4px;
  font-size: 9.5px;
}

/* Small chevron collapse icon button at the right of the block */
.refund-flow-chevron-btn {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  padding: 0;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background-color: transparent;
  color: var(--text-muted-strong);
  font-size: 11px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.refund-flow-chevron-btn:hover {
  background-color: var(--surface-muted);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

/* Compact 1-row fit for 1024px viewports where sidebar remains open */
@media (max-width: 1280px) and (min-width: 861px) {
  #refundFlowChart {
    --flow-gap: 10px;
    padding: 4px 6px;
    gap: 4px;
  }
  .refund-flow-step-btn {
    padding: 3px 5px;
  }
  .refund-flow-step-title {
    font-size: 10.5px;
  }
  .refund-flow-step-actor {
    font-size: 9.5px;
  }
  .refund-flow-step-count {
    min-width: 14px;
    padding: 0 4px;
    font-size: 9.5px;
  }
  .refund-flow-return-label {
    font-size: 9.5px;
  }
}

/* Narrow viewports: stack chips vertically with down arrows, hide return line, move side-path note into tooltip */
@media (max-width: 860px) {
  #view-refund-management {
    padding: 14px 12px !important;
    overflow-x: hidden;
  }
  #view-refund-management #txtRefundSearchFilter {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
  }
  #view-refund-management #refundApplicationsListContainer .data-table {
    display: block;
    overflow-x: auto;
  }
  .refund-flow-main-track {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .refund-flow-chip {
    width: 100%;
  }
  .refund-flow-arrow {
    padding: 1px 0;
  }
  .refund-flow-arrow-h {
    display: none;
  }
  .refund-flow-arrow-v {
    display: block;
  }
  .refund-flow-return-row {
    display: none;
  }
  .refund-flow-tooltip-mobile-extra {
    display: inline;
  }
}
/* END_PROMPT_726_FLOW_CHART */
/* END_PROMPT_724_FLOW_CHART */





