/* ════════════════ DESIGN TOKENS ════════════════ */
:root {
    --font: 'Plus Jakarta Sans',system-ui,-apple-system,sans-serif;
    --r-xs: 6px;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 20px;
    --r-full: 999px;
    --t-fast: .15s cubic-bezier(.4,0,.2,1);
    --t: .22s cubic-bezier(.4,0,.2,1);
    --t-slow: .35s cubic-bezier(.4,0,.2,1);
    --sb-w: 248px;
    --bg: #EEF2F0;
}

#components-reconnect-modal {
    display: none !important;
}
/*[data-theme="emerald"] {
    --bg: #EEF2F0;
    --surface: #FFFFFF;
    --surface-2: #F6F9F7;
    --hover: #F0F5F2;
    --thead: #0e9f6e;
    --line: #E4EAE7;
    --line-2: #D2DDD8;
    --brand: #0E9F6E;
    --brand-d: #057A55;
    --brand-l: #E3F5EC;
    --brand-t: #03543F;
    --ink-1: #0B1F18;
    --ink-2: #46615A;
    --ink-3: #8AA39A;
    --ink-4: #FFFFFF;
    --amber: #C2740C;
    --amber-bg: #FDF2E0;
    --amber-t: #7A4905;
    --red: #D03A3A;
    --red-bg: #FCEAEA;
    --red-t: #8C2020;
    --blue: #2563C9;
    --blue-bg: #E8F0FD;
    --blue-t: #16407F;
    --rail: #FFFFFF;
    --rail-ink: #46615A;
    --sh-sm: 0 1px 2px rgba(11,31,24,.06),0 1px 3px rgba(11,31,24,.04);
    --sh-md: 0 4px 12px rgba(11,31,24,.07),0 2px 4px rgba(11,31,24,.04);
    --sh-lg: 0 12px 32px rgba(11,31,24,.10),0 4px 8px rgba(11,31,24,.05);
    --ring: rgba(14,159,110,.18);
}
[data-theme="sapphire"] {
    --bg: #EEF1F7;
    --surface: #FFFFFF;
    --surface-2: #F5F7FC;
    --hover: #EFF3FA;
    --thead: #2563eb;
    --line: #E2E7F0;
    --line-2: #CCD6E6;
    --brand: #2563EB;
    --brand-d: #1A4BC2;
    --brand-l: #E6EDFD;
    --brand-t: #12317A;
    --ink-1: #0D1526;
    --ink-2: #475473;
    --ink-3: #8C9AB8;
    --ink-4: #FFFFFF;
    --amber: #C2740C;
    --amber-bg: #FDF2E0;
    --amber-t: #7A4905;
    --red: #D03A3A;
    --red-bg: #FCEAEA;
    --red-t: #8C2020;
    --blue: #0E9F6E;
    --blue-bg: #E3F5EC;
    --blue-t: #03543F;
    --rail: #FFFFFF;
    --rail-ink: #475473;
    --sh-sm: 0 1px 2px rgba(13,21,38,.06),0 1px 3px rgba(13,21,38,.04);
    --sh-md: 0 4px 12px rgba(13,21,38,.07),0 2px 4px rgba(13,21,38,.04);
    --sh-lg: 0 12px 32px rgba(13,21,38,.10),0 4px 8px rgba(13,21,38,.05);
    --ring: rgba(37,99,235,.18);
}*/
/*[data-theme="midnight"] {
    --bg: #0B0E14;
    --surface: #151A23;
    --surface-2: #1B212C;
    --hover: #1E2530;
    --line: #242C39;
    --line-2: #313B4B;
    --brand: #34D399;
    --brand-d: #10B981;
    --brand-l: #16271F;
    --brand-t: #6EE7B7;
    --ink-1: #E9EEF5;
    --ink-2: #94A3B8;
    --ink-3: #56657C;
    --ink-4: #000000;
    --amber: #FBBF6B;
    --amber-bg: #2A1E08;
    --amber-t: #FCD9A0;
    --red: #F87171;
    --red-bg: #2A1212;
    --red-t: #FCA5A5;
    --blue: #60A5FA;
    --blue-bg: #0E1E33;
    --blue-t: #93C5FD;
    --rail: #0F141C;
    --rail-ink: #94A3B8;
    --sh-sm: 0 1px 2px rgba(0,0,0,.3);
    --sh-md: 0 4px 14px rgba(0,0,0,.4);
    --sh-lg: 0 16px 40px rgba(0,0,0,.5);
    --ring: rgba(52,211,153,.22);
}
[data-theme="amethyst"] {
    --bg: #F1EFF6;
    --surface: #FFFFFF;
    --surface-2: #F7F5FC;
    --hover: #F2EFFA;
    --thead: #7c3aed;
    --line: #E7E2F0;
    --line-2: #D5CCE6;
    --brand: #7C3AED;
    --brand-d: #6125C7;
    --brand-l: #EEE8FC;
    --brand-t: #3F1D87;
    --ink-1: #160F26;
    --ink-2: #52466E;
    --ink-3: #9A8DBC;
    --ink-4: #FFFFFF;
    --amber: #C2740C;
    --amber-bg: #FDF2E0;
    --amber-t: #7A4905;
    --red: #D03A3A;
    --red-bg: #FCEAEA;
    --red-t: #8C2020;
    --blue: #2563C9;
    --blue-bg: #E8F0FD;
    --blue-t: #16407F;
    --rail: #FFFFFF;
    --rail-ink: #52466E;
    --sh-sm: 0 1px 2px rgba(22,15,38,.06),0 1px 3px rgba(22,15,38,.04);
    --sh-md: 0 4px 12px rgba(22,15,38,.07),0 2px 4px rgba(22,15,38,.04);
    --sh-lg: 0 12px 32px rgba(22,15,38,.10),0 4px 8px rgba(22,15,38,.05);
    --ring: rgba(124,58,237,.18);
}
[data-theme="slate"] {
    --bg: #F1F2F4;
    --surface: #FFFFFF;
    --surface-2: #F7F8FA;
    --hover: #F1F3F5;
    --thead: #0f766e;
    --line: #E6E8EC;
    --line-2: #D3D7DE;
    --brand: #0F766E;
    --brand-d: #0B5A54;
    --brand-l: #E0F2F0;
    --brand-t: #074640;
    --ink-1: #15191F;
    --ink-2: #4B5563;
    --ink-3: #94A0B0;
    --ink-4: #FFFFFF;
    --amber: #B45309;
    --amber-bg: #FDF2E0;
    --amber-t: #7A4905;
    --red: #DC2626;
    --red-bg: #FCEAEA;
    --red-t: #8C2020;
    --blue: #2563C9;
    --blue-bg: #E8F0FD;
    --blue-t: #16407F;
    --rail: #FAFBFC;
    --rail-ink: #4B5563;
    --sh-sm: 0 1px 2px rgba(21,25,31,.06),0 1px 3px rgba(21,25,31,.04);
    --sh-md: 0 4px 12px rgba(21,25,31,.07),0 2px 4px rgba(21,25,31,.04);
    --sh-lg: 0 12px 32px rgba(21,25,31,.10),0 4px 8px rgba(21,25,31,.05);
    --ring: rgba(15,118,110,.18);
}

[data-theme="terracotta"] {
    --bg: #FBF9F6;
    --surface: #FFFFFF;
    --surface-2: #FDFBF7;
    --hover: #F6F2EB;
    --thead: #C2410C;
    --line: #EFEAE2;
    --line-2: #E2D9CC;
    --brand: #C2410C;
    --brand-d: #9A3412;
    --brand-l: #FFEDD5;
    --brand-t: #7C2D12;
    --ink-1: #271A14;
    --ink-2: #5F4D45;
    --ink-3: #A7958D;
    --ink-4: #FFFFFF;
    --amber: #B45309;
    --amber-bg: #FDF2E0;
    --amber-t: #7A4905;
    --red: #DC2626;
    --red-bg: #FCEAEA;
    --red-t: #8C2020;
    --blue: #2563C9;
    --blue-bg: #E8F0FD;
    --blue-t: #16407F;
    --rail: #FFFFFF;
    --rail-ink: #5F4D45;
    --sh-sm: 0 1px 2px rgba(39,26,20,.06),0 1px 3px rgba(39,26,20,.04);
    --sh-md: 0 4px 12px rgba(39,26,20,.07),0 2px 4px rgba(39,26,20,.04);
    --sh-lg: 0 12px 32px rgba(39,26,20,.10),0 4px 8px rgba(39,26,20,.05);
    --ring: rgba(194,65,12,.18);
}

[data-theme="oceanic"] {
    --bg: #EFF6F8;
    --surface: #FFFFFF;
    --surface-2: #F4F9FA;
    --hover: #EDF4F6;
    --thead: #0E7490;
    --line: #E1ECF0;
    --line-2: #CADCE2;
    --brand: #0E7490;
    --brand-d: #0A586D;
    --brand-l: #E0F2FE;
    --brand-t: #164E63;
    --ink-1: #0F1B21;
    --ink-2: #47565E;
    --ink-3: #8EA2AC;
    --ink-4: #FFFFFF;
    --amber: #C2740C;
    --amber-bg: #FDF2E0;
    --amber-t: #7A4905;
    --red: #D03A3A;
    --red-bg: #FCEAEA;
    --red-t: #8C2020;
    --blue: #2563C9;
    --blue-bg: #E8F0FD;
    --blue-t: #16407F;
    --rail: #FFFFFF;
    --rail-ink: #47565E;
    --sh-sm: 0 1px 2px rgba(15,27,33,.06),0 1px 3px rgba(15,27,33,.04);
    --sh-md: 0 4px 12px rgba(15,27,33,.07),0 2px 4px rgba(15,27,33,.04);
    --sh-lg: 0 12px 32px rgba(15,27,33,.10),0 4px 8px rgba(15,27,33,.05);
    --ring: rgba(14,116,144,.18);
}

[data-theme="sage"] {
    --bg: #F4F7F5;
    --surface: #FFFFFF;
    --surface-2: #FAFDFB;
    --hover: #EDF2EE;
    --thead: #6B8E7D;
    --line: #E6ECE8;
    --line-2: #D5DFD9;
    --brand: #6B8E7D;
    --brand-d: #526E60;
    --brand-l: #EAF0EC;
    --brand-t: #364A40;
    --ink-1: #19241E;
    --ink-2: #4D5E54;
    --ink-3: #92A398;
    --ink-4: #FFFFFF;
    --amber: #B45309;
    --amber-bg: #FDF2E0;
    --amber-t: #7A4905;
    --red: #DC2626;
    --red-bg: #FCEAEA;
    --red-t: #8C2020;
    --blue: #2563C9;
    --blue-bg: #E8F0FD;
    --blue-t: #16407F;
    --rail: #FFFFFF;
    --rail-ink: #4D5E54;
    --sh-sm: 0 1px 2px rgba(25,36,30,.04),0 1px 3px rgba(25,36,30,.03);
    --sh-md: 0 4px 12px rgba(25,36,30,.05),0 2px 4px rgba(25,36,30,.03);
    --sh-lg: 0 12px 32px rgba(25,36,30,.08),0 4px 8px rgba(25,36,30,.04);
    --ring: rgba(107,142,125,.18);
}

[data-theme="lavender"] {
    --bg: #F6F5FA;
    --surface: #FFFFFF;
    --surface-2: #FAF9FD;
    --hover: #EFF0F7;
    --thead: #8A81B5;
    --line: #EAE8F2;
    --line-2: #D9D6E7;
    --brand: #8A81B5;
    --brand-d: #6D639B;
    --brand-l: #F0EFF7;
    --brand-t: #47406B;
    --ink-1: #1B1924;
    --ink-2: #524E66;
    --ink-3: #9793AD;
    --ink-4: #FFFFFF;
    --amber: #C2740C;
    --amber-bg: #FDF2E0;
    --amber-t: #7A4905;
    --red: #D03A3A;
    --red-bg: #FCEAEA;
    --red-t: #8C2020;
    --blue: #2563C9;
    --blue-bg: #E8F0FD;
    --blue-t: #16407F;
    --rail: #FFFFFF;
    --rail-ink: #524E66;
    --sh-sm: 0 1px 2px rgba(27,25,36,.04),0 1px 3px rgba(27,25,36,.03);
    --sh-md: 0 4px 12px rgba(27,25,36,.05),0 2px 4px rgba(27,25,36,.03);
    --sh-lg: 0 12px 32px rgba(27,25,36,.08),0 4px 8px rgba(27,25,36,.04);
    --ring: rgba(138,129,181,.18);
}*/



/*[data-theme="mint"] {
    --bg: #F2FAF5;
    --surface: #FFFFFF;
    --surface-2: #F7FCF9;
    --hover: #EBF7F0;
    --thead: #059669;
    --line: #E1F2E8;
    --line-2: #CBEAD8;
    --brand: #10B981;
    --brand-d: #059669;
    --brand-l: #D1FAE5;
    --brand-t: #065F46;
    --ink-1: #062F22;
    --ink-2: #245E4E;
    --ink-3: #75BFA8;
    --ink-4: #FFFFFF;
    --amber: #D97706;
    --amber-bg: #FEF3C7;
    --amber-t: #92400E;
    --red: #DC2626;
    --red-bg: #FCEAEA;
    --red-t: #8C2020;
    --blue: #2563C9;
    --blue-bg: #E8F0FD;
    --blue-t: #16407F;
    --rail: #FFFFFF;
    --rail-ink: #245E4E;
    --sh-sm: 0 1px 2px rgba(6,47,34,.05);
    --sh-md: 0 4px 12px rgba(6,47,34,.06);
    --sh-lg: 0 12px 32px rgba(6,47,34,.08);
    --ring: rgba(16,185,129,.2);
}

[data-theme="citrus"] {
    --bg: #FAF9F2;
    --surface: #FFFFFF;
    --surface-2: #FDFDF7;
    --hover: #F6F4E6;
    --thead: #CA8A04;
    --line: #F4F1D7;
    --line-2: #EAE3B3;
    --brand: #EAB308;
    --brand-d: #CA8A04;
    --brand-l: #FEF9C3;
    --brand-t: #854D0E;
    --ink-1: #2E2502;
    --ink-2: #655618;
    --ink-3: #BDB06C;
    --ink-4: #FFFFFF;
    --amber: #EA580C;
    --amber-bg: #FFEDD5;
    --amber-t: #7C2D12;
    --red: #DC2626;
    --red-bg: #FCEAEA;
    --red-t: #8C2020;
    --blue: #2563C9;
    --blue-bg: #E8F0FD;
    --blue-t: #16407F;
    --rail: #FFFFFF;
    --rail-ink: #655618;
    --sh-sm: 0 1px 2px rgba(46,37,2,.04);
    --sh-md: 0 4px 12px rgba(46,37,2,.06);
    --sh-lg: 0 12px 32px rgba(46,37,2,.08);
    --ring: rgba(234,179,8,.2);
}



[data-theme="mist"] {
    --bg: #F1F4F6;
    --surface: #FFFFFF;
    --surface-2: #F6F8FA;
    --hover: #EDF0F3;
    --thead: #475569;
    --line: #E2E8F0;
    --line-2: #CBD5E1;
    --brand: #64748B;
    --brand-d: #475569;
    --brand-l: #F1F5F9;
    --brand-t: #334155;
    --ink-1: #0F172A;
    --ink-2: #475569;
    --ink-3: #94A3B8;
    --ink-4: #FFFFFF;
    --amber: #D97706;
    --amber-bg: #FEF3C7;
    --amber-t: #92400E;
    --red: #DC2626;
    --red-bg: #FCEAEA;
    --red-t: #8C2020;
    --blue: #2563C9;
    --blue-bg: #E8F0FD;
    --blue-t: #16407F;
    --rail: #FFFFFF;
    --rail-ink: #475569;
    --sh-sm: 0 1px 2px rgba(15,23,42,.05);
    --sh-md: 0 4px 12px rgba(15,23,42,.06);
    --sh-lg: 0 12px 32px rgba(15,23,42,.08);
    --ring: rgba(100,116,139,.2);
}
    */
/* 11. SKY BLUE */
[data-theme="sky"] {
    --bg: #F3F6FA;
    --surface: #FFFFFF;
    --surface-2: #F8FAFD;
    --hover: #ECF1F7;
    --thead: #7FA3C7;
    --line: #E5ECF2;
    --line-2: #D2DFEB;
    --brand: #7FA3C7;
    --brand-d: #5F84AA;
    --brand-l: #EFF4F9;
    --brand-t: #3F5975;
    --ink-1: #182029;
    --ink-2: #4B5766;
    --ink-3: #91A0B0;
    --ink-4: #FFFFFF;
    --amber: #C2740C;
    --amber-bg: #FDF2E0;
    --amber-t: #7A4905;
    --red: #D03A3A;
    --red-bg: #FCEAEA;
    --red-t: #8C2020;
    --blue: #2563C9;
    --blue-bg: #E8F0FD;
    --blue-t: #16407F;
    --rail: #FFFFFF;
    --rail-ink: #4B5766;
    --sh-sm: 0 1px 2px rgba(24,32,41,.04),0 1px 3px rgba(24,32,41,.03);
    --sh-md: 0 4px 12px rgba(24,32,41,.05),0 2px 4px rgba(24,32,41,.03);
    --sh-lg: 0 12px 32px rgba(24,32,41,.08),0 4px 8px rgba(24,32,41,.04);
    --ring: rgba(127,163,199,.18);
    /* Dynamic Tile Container Tokens */
    --c-brand-bg: #EFF4F9;
    --c-brand-fg: #3F5975;
    --c-amber-bg: #FDF2E0;
    --c-amber-fg: #7A4905;
    --c-blue-bg: #E8F0FD;
    --c-blue-fg: #16407F;
    --c-red-bg: #FCEAEA;
    --c-red-fg: #8C2020;
}

/* 12. BLOSSOM PINK */
[data-theme="blossom"] {
    --bg: #FFF5F7;
    --surface: #FFFFFF;
    --surface-2: #FFFBFB;
    --hover: #FFEBF0;
    --thead: #DB2777;
    --line: #FFE4EC;
    --line-2: #FBCFE8;
    --brand: #EC4899;
    --brand-d: #DB2777;
    --brand-l: #FCE7F3;
    --brand-t: #9D174D;
    --ink-1: #4C0519;
    --ink-2: #881337;
    --ink-3: #F472B6;
    --ink-4: #FFFFFF;
    --amber: #D97706;
    --amber-bg: #FEF3C7;
    --amber-t: #92400E;
    --red: #DC2626;
    --red-bg: #FCEAEA;
    --red-t: #8C2020;
    --blue: #2563C9;
    --blue-bg: #E8F0FD;
    --blue-t: #16407F;
    --rail: #FFFFFF;
    --rail-ink: #881337;
    --sh-sm: 0 1px 2px rgba(76,5,25,.05);
    --sh-md: 0 4px 12px rgba(76,5,25,.06);
    --sh-lg: 0 12px 32px rgba(76,5,25,.08);
    --ring: rgba(236,72,153,.2);
    /* Dynamic Tile Container Tokens */
    --c-brand-bg: #FCE7F3;
    --c-brand-fg: #9D174D;
    --c-amber-bg: #FEF3C7;
    --c-amber-fg: #92400E;
    --c-blue-bg: #E8F0FD;
    --c-blue-fg: #16407F;
    --c-red-bg: #FCEAEA;
    --c-red-fg: #8C2020;
}

/* 13. CORAL SUNSET */
[data-theme="coral"] {
    --bg: #FFF8F6;
    --surface: #FFFFFF;
    --surface-2: #FFFDFD;
    --hover: #FFF1EE;
    --thead: #EA580C;
    --line: #FFE4DE;
    --line-2: #FFC9BE;
    --brand: #FF6B4A;
    --brand-d: #E04F2E;
    --brand-l: #FFEBE7;
    --brand-t: #7F230F;
    --ink-1: #34120A;
    --ink-2: #703E33;
    --ink-3: #C28D82;
    --ink-4: #FFFFFF;
    --amber: #D97706;
    --amber-bg: #FEF3C7;
    --amber-t: #92400E;
    --red: #DC2626;
    --red-bg: #FCEAEA;
    --red-t: #8C2020;
    --blue: #2563C9;
    --blue-bg: #E8F0FD;
    --blue-t: #16407F;
    --rail: #FFFFFF;
    --rail-ink: #703E33;
    --sh-sm: 0 1px 2px rgba(52,18,10,.05);
    --sh-md: 0 4px 12px rgba(52,18,10,.06);
    --sh-lg: 0 12px 32px rgba(52,18,10,.09);
    --ring: rgba(255,107,74,.2);
    /* Dynamic Tile Container Tokens */
    --c-brand-bg: #FFEBE7;
    --c-brand-fg: #7F230F;
    --c-amber-bg: #FEF3C7;
    --c-amber-fg: #92400E;
    --c-blue-bg: #E8F0FD;
    --c-blue-fg: #16407F;
    --c-red-bg: #FCEAEA;
    --c-red-fg: #8C2020;
}
/* ==========================================================================
     2. THEME DEFINITIONS (EFS SYSTEM MATRIX)
     ========================================================================== */

/* 1. REGENT EMERALD (Original Theme / Elevated) */
[data-theme="emerald"] {
    --bg: #EEF2F0;
    --surface: #FFFFFF;
    --surface-2: #F6F9F7;
    --hover: #F0F5F2;
    --thead: #0E9F6E;
    --line: #E4EAE7;
    --line-2: #D2DDD8;
    --brand: #0E9F6E;
    --brand-d: #057A55;
    --brand-l: #E3F5EC;
    --brand-t: #03543F;
    --ink-1: #0B1F18;
    --ink-2: #46615A;
    --ink-3: #8AA39A;
    --ink-4: #FFFFFF;
    --amber: #C2740C;
    --amber-bg: #FDF2E0;
    --amber-t: #7A4905;
    --red: #D03A3A;
    --red-bg: #FCEAEA;
    --red-t: #8C2020;
    --blue: #2563C9;
    --blue-bg: #E8F0FD;
    --blue-t: #16407F;
    --rail: #FFFFFF;
    --rail-ink: #46615A;
    --sh-sm: 0 1px 2px rgba(11,31,24,.06), 0 1px 3px rgba(11,31,24,.04);
    --sh-md: 0 4px 12px rgba(11,31,24,.07), 0 2px 4px rgba(11,31,24,.04);
    --sh-lg: 0 12px 32px rgba(11,31,24,.10), 0 4px 8px rgba(11,31,24,.05);
    --ring: rgba(14,159,110,.18);
    --c-brand-bg: #FFF;
    --c-brand-fg: #03543F;
    --c-amber-bg: #FDF2E0;
    --c-amber-fg: #7A4905;
    --c-blue-bg: #E8F0FD;
    --c-blue-fg: #16407F;
    --c-red-bg: #FCEAEA;
    --c-red-fg: #8C2020;
}

/* 2. ROYAL SAPPHIRE (Elevated) */
[data-theme="sapphire"] {
    --bg: #EEF1F7;
    --surface: #FFFFFF;
    --surface-2: #F5F7FC;
    --hover: #EFF3FA;
    --thead: #2563EB;
    --line: #E2E7F0;
    --line-2: #CCD6E6;
    --brand: #2563EB;
    --brand-d: #1A4BC2;
    --brand-l: #E6EDFD;
    --brand-t: #12317A;
    --ink-1: #0D1526;
    --ink-2: #475473;
    --ink-3: #8C9AB8;
    --ink-4: #FFFFFF;
    --amber: #C2740C;
    --amber-bg: #FDF2E0;
    --amber-t: #7A4905;
    --red: #D03A3A;
    --red-bg: #FCEAEA;
    --red-t: #8C2020;
    --blue: #0E9F6E;
    --blue-bg: #E3F5EC;
    --blue-t: #03543F;
    --rail: #FFFFFF;
    --rail-ink: #475473;
    --sh-sm: 0 1px 2px rgba(13,21,38,.06), 0 1px 3px rgba(13,21,38,.04);
    --sh-md: 0 4px 12px rgba(13,21,38,.07), 0 2px 4px rgba(13,21,38,.04);
    --sh-lg: 0 12px 32px rgba(13,21,38,.10), 0 4px 8px rgba(13,21,38,.05);
    --ring: rgba(37,99,235,.18);
    --c-brand-bg: #FFF;
    --c-brand-fg: #12317A;
    --c-amber-bg: #FDF2E0;
    --c-amber-fg: #7A4905;
    --c-blue-bg: #E3F5EC;
    --c-blue-fg: #03543F;
    --c-red-bg: #FCEAEA;
    --c-red-fg: #8C2020;
}

/* 3. PERIWINKLE (NotebookLM Tonal) */
[data-theme="periwinkle"] {
    --bg: #F3F6FC;
    --surface: #FFFFFF;
    --surface-2: #E8DEF8;
    --hover: #E4ECFB;
    --thead: #0B57D0;
    --line: #DDE3F0;
    --line-2: #C2CEE5;
    --brand: #0B57D0;
    --brand-d: #0842A0;
    --brand-l: #D3E3FD;
    --brand-t: #0842A0;
    --ink-1: #1F2A44;
    --ink-2: #5F6B85;
    --ink-3: #8B98B5;
    --ink-4: #FFFFFF;
    --amber: #B06000;
    --amber-bg: #FFE8D1;
    --amber-t: #592E00;
    --red: #C5221F;
    --red-bg: #FCE8E6;
    --red-t: #601210;
    --blue: #004A77;
    --blue-bg: #C2E7FF;
    --blue-t: #001D33;
    --rail: #FFFFFF;
    --rail-ink: #5F6B85;
    --sh-sm: 0 1px 3px rgba(31,42,68,.05);
    --sh-md: 0 4px 14px rgba(31,42,68,.08);
    --sh-lg: 0 10px 24px rgba(31,42,68,.12);
    --ring: rgba(11,87,208,.20);
    --c-brand-bg: #D3E3FD;
    --c-brand-fg: #0842A0;
    --c-amber-bg: #FFE8D1;
    --c-amber-fg: #592E00;
    --c-blue-bg: #C2E7FF;
    --c-blue-fg: #004A77;
    --c-red-bg: #FCE8E6;
    --c-red-fg: #601210;
}

/* 4. AURUM NOIR (Elevated Dark) */
[data-theme="aurum"] {
    --bg: #101114;
    --surface: #1A1C21;
    --surface-2: #24272E;
    --hover: #2C2F37;
    --thead: #D4AF37;
    --line: #2C2F36;
    --line-2: #3F434D;
    --brand: #D4AF37;
    --brand-d: #A67C1F;
    --brand-l: #2E2812;
    --brand-t: #E8CB74;
    --ink-1: #EFEDE6;
    --ink-2: #9A9C9F;
    --ink-3: #686B70;
    --ink-4: #101114;
    --amber: #E4B04A;
    --amber-bg: #2B2314;
    --amber-t: #F3C978;
    --red: #E06C6C;
    --red-bg: #33201F;
    --red-t: #F0A3A3;
    --blue: #7FA6E0;
    --blue-bg: #1F2733;
    --blue-t: #B5CEF3;
    --rail: #1A1C21;
    --rail-ink: #9A9C9F;
    --sh-sm: 0 2px 4px rgba(0,0,0,.35);
    --sh-md: 0 4px 16px rgba(0,0,0,.45);
    --sh-lg: 0 12px 32px rgba(0,0,0,.60);
    --ring: rgba(212,175,55,.25);
    --c-brand-bg: #2E2812;
    --c-brand-fg: #E8CB74;
    --c-amber-bg: #2B2314;
    --c-amber-fg: #F3C978;
    --c-blue-bg: #1F2733;
    --c-blue-fg: #B5CEF3;
    --c-red-bg: #33201F;
    --c-red-fg: #F0A3A3;
}

/* 5. MINT MEADOW (Material-3 Tonal) */
[data-theme="mint"] {
    --bg: #F2F8F3;
    --surface: #FFFFFF;
    --surface-2: #E8F3EA;
    --hover: #E3F2E6;
    --thead: #146C43;
    --line: #DCE8DE;
    --line-2: #C3D8C7;
    --brand: #146C43;
    --brand-d: #0F5132;
    --brand-l: #C9EDD6;
    --brand-t: #0F5132;
    --ink-1: #1D3527;
    --ink-2: #5F7A68;
    --ink-3: #8AA493;
    --ink-4: #FFFFFF;
    --amber: #A86500;
    --amber-bg: #F0EBC9;
    --amber-t: #523100;
    --red: #C0392B;
    --red-bg: #FADBD8;
    --red-t: #641E16;
    --blue: #155E56;
    --blue-bg: #D7F0EE;
    --blue-t: #0B332F;
    --rail: #FFFFFF;
    --rail-ink: #5F7A68;
    --sh-sm: 0 1px 3px rgba(29,53,39,.05);
    --sh-md: 0 4px 12px rgba(29,53,39,.07);
    --sh-lg: 0 10px 28px rgba(29,53,39,.10);
    --ring: rgba(20,108,67,.18);
    --c-brand-bg: #C9EDD6;
    --c-brand-fg: #0F5132;
    --c-amber-bg: #F0EBC9;
    --c-amber-fg: #523100;
    --c-blue-bg: #D7F0EE;
    --c-blue-fg: #0B332F;
    --c-red-bg: #FADBD8;
    --c-red-fg: #641E16;
}

/* 6. OCEAN GLASS (Elevated Teal) */
[data-theme="ocean"] {
    --bg: #EEF6F8;
    --surface: #FFFFFF;
    --surface-2: #F2FAFB;
    --hover: #E6F3F6;
    --thead: #0E7490;
    --line: #D8E7EC;
    --line-2: #BDD7E0;
    --brand: #0E7490;
    --brand-d: #0A5568;
    --brand-l: #D8F1F6;
    --brand-t: #0B5E75;
    --ink-1: #0E2A33;
    --ink-2: #5C7783;
    --ink-3: #8AA3AF;
    --ink-4: #FFFFFF;
    --amber: #CB8A2A;
    --amber-bg: #FBF0DA;
    --amber-t: #6B4610;
    --red: #D25050;
    --red-bg: #FAE2E2;
    --red-t: #702222;
    --blue: #1489B4;
    --blue-bg: #DFEDFB;
    --blue-t: #0A435A;
    --rail: #FFFFFF;
    --rail-ink: #5C7783;
    --sh-sm: 0 1px 3px rgba(14,42,51,.05);
    --sh-md: 0 4px 12px rgba(14,42,51,.08);
    --sh-lg: 0 12px 30px rgba(14,42,51,.12);
    --ring: rgba(14,116,144,.20);
    --c-brand-bg: #D8F1F6;
    --c-brand-fg: #0B5E75;
    --c-amber-bg: #FBF0DA;
    --c-amber-fg: #6B4610;
    --c-blue-bg: #DFEDFB;
    --c-blue-fg: #0A435A;
    --c-red-bg: #FAE2E2;
    --c-red-fg: #702222;
}

/* 7. NORDIC FROST (Elevated Steel) */
[data-theme="nordic"] {
    --bg: #F2F6FA;
    --surface: #FFFFFF;
    --surface-2: #F6FAFD;
    --hover: #E9F0F7;
    --thead: #33628C;
    --line: #DEE8F0;
    --line-2: #C4D5E5;
    --brand: #33628C;
    --brand-d: #254661;
    --brand-l: #DFEBF6;
    --brand-t: #2A4E70;
    --ink-1: #17273A;
    --ink-2: #63788C;
    --ink-3: #8CA0B5;
    --ink-4: #FFFFFF;
    --amber: #C08A2D;
    --amber-bg: #F6EDDA;
    --amber-t: #61430F;
    --red: #C65252;
    --red-bg: #F8E3E3;
    --red-t: #692424;
    --blue: #22688C;
    --blue-bg: #E2F0F6;
    --blue-t: #0D3144;
    --rail: #FFFFFF;
    --rail-ink: #63788C;
    --sh-sm: 0 1px 3px rgba(23,39,58,.05);
    --sh-md: 0 4px 12px rgba(23,39,58,.07);
    --sh-lg: 0 12px 28px rgba(23,39,58,.11);
    --ring: rgba(51,98,140,.20);
    --c-brand-bg: #DFEBF6;
    --c-brand-fg: #2A4E70;
    --c-amber-bg: #F6EDDA;
    --c-amber-fg: #61430F;
    --c-blue-bg: #E2F0F6;
    --c-blue-fg: #0D3144;
    --c-red-bg: #F8E3E3;
    --c-red-fg: #692424;
}

/* 8. IMPERIAL VIOLET (Elevated Modern) */
[data-theme="violet"] {
    --bg: #F8F7FC;
    --surface: #FFFFFF;
    --surface-2: #FAF9FE;
    --hover: #F1EEF9;
    --thead: #6D28D9;
    --line: #E8E4F4;
    --line-2: #D2C9EB;
    --brand: #6D28D9;
    --brand-d: #521BA3;
    --brand-l: #EFE6FC;
    --brand-t: #521BA3;
    --ink-1: #221A38;
    --ink-2: #71698A;
    --ink-3: #9C94B5;
    --ink-4: #FFFFFF;
    --amber: #C98B1E;
    --amber-bg: #FBF1DC;
    --amber-t: #63430B;
    --red: #D2455B;
    --red-bg: #FBE3E9;
    --red-t: #6B1C2A;
    --blue: #5B6CD9;
    --blue-bg: #E4E8FB;
    --blue-t: #1B2670;
    --rail: #FFFFFF;
    --rail-ink: #71698A;
    --sh-sm: 0 1px 3px rgba(34,26,56,.05);
    --sh-md: 0 4px 14px rgba(34,26,56,.08);
    --sh-lg: 0 12px 30px rgba(34,26,56,.12);
    --ring: rgba(109,40,217,.20);
    --c-brand-bg: #EFE6FC;
    --c-brand-fg: #521BA3;
    --c-amber-bg: #FBF1DC;
    --c-amber-fg: #63430B;
    --c-blue-bg: #E4E8FB;
    --c-blue-fg: #1B2670;
    --c-red-bg: #FBE3E9;
    --c-red-fg: #6B1C2A;
}

/* 9. LILAC BLOOM (Material-3 Tonal) */
[data-theme="lilac"] {
    --bg: #F7F4FB;
    --surface: #FFFFFF;
    --surface-2: #F0EBF7;
    --hover: #EDE6F5;
    --thead: #6750A4;
    --line: #E4DDF1;
    --line-2: #CEBFDF;
    --brand: #6750A4;
    --brand-d: #53418C;
    --brand-l: #EADDFF;
    --brand-t: #4A3A78;
    --ink-1: #2A2440;
    --ink-2: #6B6480;
    --ink-3: #9B93B2;
    --ink-4: #FFFFFF;
    --amber: #8E2F55;
    --amber-bg: #FFD8E4;
    --amber-t: #491229;
    --red: #BA1A1A;
    --red-bg: #FFDAD6;
    --red-t: #410002;
    --blue: #2B4E85;
    --blue-bg: #DCE7FB;
    --blue-t: #0A2249;
    --rail: #FFFFFF;
    --rail-ink: #6B6480;
    --sh-sm: 0 1px 3px rgba(42,36,64,.04);
    --sh-md: 0 4px 12px rgba(42,36,64,.07);
    --sh-lg: 0 10px 26px rgba(42,36,64,.10);
    --ring: rgba(103,80,164,.18);
    --c-brand-bg: #EADDFF;
    --c-brand-fg: #4A3A78;
    --c-amber-bg: #FFD8E4;
    --c-amber-fg: #491229;
    --c-blue-bg: #DCE7FB;
    --c-blue-fg: #0A2249;
    --c-red-bg: #FFDAD6;
    --c-red-fg: #410002;
}

/* 10. COPPER TWILIGHT (Elevated Dark Warm) */
[data-theme="copper"] {
    --bg: #171219;
    --surface: #221C27;
    --surface-2: #2B2332;
    --hover: #342B3C;
    --thead: #C97B63;
    --line: #372E3D;
    --line-2: #4E4157;
    --brand: #C97B63;
    --brand-d: #96503C;
    --brand-l: #3A2620;
    --brand-t: #EDB79C;
    --ink-1: #F1EAEE;
    --ink-2: #A2949E;
    --ink-3: #6E636B;
    --ink-4: #171219;
    --amber: #E0AC52;
    --amber-bg: #2C2530;
    --amber-t: #F3CA83;
    --red: #E27070;
    --red-bg: #3A2226;
    --red-t: #F3A8A8;
    --blue: #84A8DE;
    --blue-bg: #232B3A;
    --blue-t: #BBD0F3;
    --rail: #221C27;
    --rail-ink: #A2949E;
    --sh-sm: 0 2px 4px rgba(0,0,0,.35);
    --sh-md: 0 4px 16px rgba(0,0,0,.45);
    --sh-lg: 0 12px 32px rgba(0,0,0,.60);
    --ring: rgba(201,123,99,.25);
    --c-brand-bg: #3A2620;
    --c-brand-fg: #EDB79C;
    --c-amber-bg: #2C2530;
    --c-amber-fg: #F3CA83;
    --c-blue-bg: #232B3A;
    --c-blue-fg: #BBD0F3;
    --c-red-bg: #3A2226;
    --c-red-fg: #F3A8A8;
}



*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body {
    font-family: var(--font) !important;
    background: var(--bg);
    color: var(--ink-1);
  /*  font-size: 14px;*/
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
    overflow-y:auto !important;
    letter-spacing: normal !important;
}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}
input{font-family:inherit}
a{color:inherit;text-decoration:none}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

.shell{display:flex;height:100vh;height:100dvh;overflow:hidden}

/* ════ SIDEBAR ════ */
.rail{width:var(--sb-w);flex-shrink:0;background:var(--rail);border-right:1px solid var(--line);
  display:flex;flex-direction:column;height:100vh;height:100dvh;z-index:60;transition:transform var(--t-slow)}
.rail-head{padding:18px 20px 16px;display:flex;align-items:center;gap:11px;border-bottom:1px solid var(--line)}
.brand-mark{width:38px;height:38px;border-radius:var(--r-md);background:var(--brand);display:grid;
  place-items:center;flex-shrink:0;box-shadow:var(--sh-sm);position:relative;overflow:hidden}
.brand-mark::after{content:'';position:absolute;inset:0;
  background:linear-gradient(135deg,rgba(255,255,255,.22),transparent 60%)}
.brand-mark i{color:#fff;font-size:19px;z-index:1}
.brand-name{font-size:14px;font-weight:700;letter-spacing:-.01em;color:var(--ink-1)}
.brand-sub{font-size:10px;font-weight:500;color:var(--ink-3);letter-spacing:.02em}
.rail-close{display:none;margin-left:auto;width:32px;height:32px;border-radius:var(--r-sm);
  color:var(--ink-3);align-items:center;justify-content:center}
.rail-close:hover{background:var(--hover);color:var(--ink-1)}
.rail-nav{flex:1;overflow-y:auto;padding:12px;scrollbar-width:thin}
.rail-nav::-webkit-scrollbar{width:0}
.nav-grp{margin-bottom:4px}
.nav-grp-label{font-size:10px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;
  color:var(--ink-3);padding:9px 12px 5px}
.nav-link{display:flex;align-items:center;gap:11px;padding:8px 12px;border-radius:var(--r-sm);
  font-size:13.5px;font-weight:500;color:var(--rail-ink);cursor:pointer;
  transition:background var(--t-fast),color var(--t-fast);position:relative;margin-bottom:1px}
.nav-link i{font-size:18px;width:20px;flex-shrink:0;color:var(--ink-3);transition:color var(--t-fast)}
.nav-link:hover{background:var(--hover);color:var(--ink-1)}
.nav-link:hover i{color:var(--ink-2)}
.nav-link.on{background:var(--brand-l);color:var(--brand-t);font-weight:600}
.nav-link.on i{color:var(--brand)}
.nav-link.on::before{content:'';position:absolute;left:-12px;top:50%;transform:translateY(-50%);
  width:3px;height:20px;border-radius:0 3px 3px 0;background:var(--brand)}
.qa-link i{color:var(--brand)}
.qa-link:hover{background:var(--brand-l);color:var(--brand-t)}
.qa-link:hover i{color:var(--brand)}
.nav-count{margin-left:auto;font-size:10.5px;font-weight:700;min-width:20px;height:20px;padding:0 6px;
  border-radius:var(--r-full);display:grid;place-items:center}
.nc-amber{background:var(--amber-bg);color:var(--amber-t)}
.nc-red{background:var(--red-bg);color:var(--red-t)}
.nc-blue{background:var(--blue-bg);color:var(--blue-t)}
.rail-foot{padding:12px;border-top:1px solid var(--line)}
.user-chip{display:flex;align-items:center;gap:11px;padding:9px 10px;border-radius:var(--r-md);
  cursor:pointer;transition:background var(--t-fast)}
.user-chip:hover{background:var(--hover)}
.avatar{width:36px;height:36px;border-radius:var(--r-full);flex-shrink:0;
  background:linear-gradient(135deg,var(--brand),var(--brand-d));color:#fff;font-size:13px;
  font-weight:700;display:grid;place-items:center;box-shadow:var(--sh-sm);position:relative}
.avatar-status{position:absolute;bottom:-1px;right:-1px;width:11px;height:11px;border-radius:50%;
  background:#22C55E;border:2px solid var(--rail)}
.uc-name{font-size:13px;font-weight:600;color:var(--ink-1);line-height:1.2}
.uc-role{font-size:11px;color:var(--ink-3)}
.uc-arrow{margin-left:auto;color:var(--ink-3);font-size:16px}

/* ════ MAIN ════ */
.main{flex:1;display:flex;flex-direction:column;overflow:hidden;min-width:0}
.topbar{height:60px;flex-shrink:0;background:var(--surface);border-bottom:1px solid var(--line);
  display:flex;align-items:center;gap:14px;padding:0 22px}
.burger{display:none;width:40px;height:40px;border-radius:var(--r-sm);color:var(--ink-2);
  align-items:center;justify-content:center;flex-shrink:0}
.burger:hover{background:var(--hover)}
.burger i{font-size:22px}
.search{position:relative;flex:1;max-width:400px}
.search i{position:absolute;left:13px;top:50%;transform:translateY(-50%);font-size:17px;
  color:var(--ink-3);pointer-events:none}
.search input{width:100%;height:40px;padding:0 14px 0 40px;font-size:13.5px;border:1px solid var(--line);
  border-radius:var(--r-md);background:var(--surface-2);color:var(--ink-1);outline:none;
  transition:border-color var(--t-fast),box-shadow var(--t-fast),background var(--t-fast)}
.search input::placeholder{color:var(--ink-3)}
.search input:focus{border-color:var(--brand);background:var(--surface);box-shadow:0 0 0 4px var(--ring)}
.search kbd{position:absolute;right:10px;top:50%;transform:translateY(-50%);font-size:10px;
  font-weight:600;color:var(--ink-3);background:var(--surface);border:1px solid var(--line-2);
  border-radius:var(--r-xs);padding:2px 6px;font-family:var(--font)}
.tb-right{margin-left:auto;display:flex;align-items:center;gap:8px}
.theme-pop{position:relative}
.theme-trig{width:40px;height:40px;border-radius:var(--r-md);border:1px solid var(--line);
  background:var(--surface-2);color:var(--ink-2);display:grid;place-items:center;
  transition:background var(--t-fast),border-color var(--t-fast)}
.theme-trig:hover{background:var(--hover);border-color:var(--line-2)}
.theme-trig i{font-size:19px}
.theme-menu{position:absolute;top:50px;right:0;width:240px;background:var(--surface);
  border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--sh-lg);padding:8px;z-index:80;
  opacity:0;visibility:hidden;transform:translateY(-8px) scale(.97);transform-origin:top right;
  transition:opacity var(--t),transform var(--t),visibility var(--t)}
.theme-menu.open{opacity:1;visibility:visible;transform:translateY(0) scale(1)}
.theme-menu-backdrop{position:fixed;inset:0;z-index:75;background:transparent}
.theme-menu-title{font-size:10px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;
  color:var(--ink-3);padding:6px 10px 8px}
.theme-opt{display:flex;align-items:center;gap:11px;padding:9px 10px;border-radius:var(--r-sm);
  cursor:pointer;transition:background var(--t-fast);width:100%;text-align:left}
.theme-opt:hover{background:var(--hover)}
.theme-swatch{width:22px;height:22px;border-radius:var(--r-full);flex-shrink:0;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}

.sw-emerald {
    background: linear-gradient(135deg,#0E9F6E,#057A55)
}
.sw-sapphire{background:linear-gradient(135deg,#2563EB,#1A4BC2)}
.sw-midnight{background:linear-gradient(135deg,#34D399,#0F141C)}
.sw-amethyst{background:linear-gradient(135deg,#7C3AED,#6125C7)}
.sw-slate{background:linear-gradient(135deg,#0F766E,#334155)}

.sw-periwinkle {
    background-color: #D3E3FD;
   }

.sw-aurum {
    background:#2E2812;
}

.sw-slate {
    background: linear-gradient(135deg,#0F766E,#334155)
}
.theme-swatch.sw-mint {background-color: #10B981;}
.theme-swatch.sw-nordic {
    background-color: #DFEBF6;
}
.theme-swatch.sw-blossom {background-color: #EC4899;}
.theme-swatch.sw-violet {
    background-color: #EFE6FC;
}
.theme-swatch.sw-coral {background-color: #FF6B4A;}
.theme-swatch.sw-lilac {
    background-color: #EADDFF;
}
.theme-swatch.sw-copper {
    background-color: #3A2620;
}
.theme-swatch.sw-ocean {
    background-color: #0E7490;
}
.theme-swatch.sw-sage {background-color: #6B8E7D;}
.theme-swatch.sw-lavender {background-color: #8A81B5;}
.theme-swatch.sw-blush {background-color: #C98B8B;}
.theme-swatch.sw-sky {background-color: #7FA3C7;}
/* Ocean Blue Theme */
[data-theme="ocean-blue"] .sw-slate {
    background: linear-gradient(135deg, #1D4ED8, #334155);
}

/* Sage Green Theme */
[data-theme="sage-green"] .sw-slate {
    background: linear-gradient(135deg, #166534, #334155);
}

/* Amber Wood Theme */
[data-theme="amber-wood"] .sw-slate {
    background: linear-gradient(135deg, #715B2F, #334155);
}

/* Rose Quartz Theme */
[data-theme="rose-quartz"] .sw-slate {
    background: linear-gradient(135deg, #883D36, #334155);
}

/* Amethyst Theme */
[data-theme="amethyst"] .sw-slate {
    background: linear-gradient(135deg, #7E308E, #334155);
}


.theme-opt-name{font-size:13px;font-weight:500;color:var(--ink-1)}
.theme-opt .ti-check{margin-left:auto;color:var(--brand);font-size:17px;opacity:0}
.theme-opt.sel .ti-check{opacity:1}
.icon-btn{width:40px;height:40px;border-radius:var(--r-md);border:1px solid var(--line);
  background:var(--surface-2);color:var(--ink-2);display:grid;place-items:center;position:relative;
  transition:background var(--t-fast),border-color var(--t-fast)}
.icon-btn:hover{background:var(--hover);border-color:var(--line-2)}
.icon-btn i{font-size:19px}
.dot{position:absolute;top:9px;right:10px;width:7px;height:7px;border-radius:50%;
  background:var(--red);border:1.5px solid var(--surface)}

.scroll{flex:1;overflow-y:auto;overflow-x:hidden}
.scroll::-webkit-scrollbar{width:8px}
.scroll::-webkit-scrollbar-thumb{background:var(--line-2);border-radius:10px;border:2px solid var(--bg)}
.scroll::-webkit-scrollbar-track{background:transparent}
.page { /*max-width:1320px;*/
    background-color: var(--bg);
    margin: 0 auto;
    padding: 22px 22px 32px
}

/* HERO Old */
.hero{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px}
.hello{font-size:22px;font-weight:700;letter-spacing:-.02em;color:var(--ink-1)}
.hello span{color:var(--brand)}
.hello-sub{font-size:12.5px;color:var(--ink-3);margin-top:3px;display:flex;align-items:center;gap:7px}
.hello-sub i{font-size:15px}
/*.cta{display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 18px;background:var(--brand);
  color:#fff;font-size:13.5px;font-weight:600;border-radius:var(--r-md);box-shadow:var(--sh-sm);
  transition:transform var(--t-fast),box-shadow var(--t-fast),background var(--t-fast)}
.cta:hover{background:var(--brand-d);box-shadow:var(--sh-md);transform:translateY(-1px)}*/
/* HERO SECTION */
/* ==========================================================================
     4. DASHBOARD COMPONENT STYLES
     ========================================================================== */

/* HERO SECTION */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: 24px 28px;
    box-shadow: var(--sh-sm);
    transition: all var(--t);
}

.hello {
    font-size: 22px;
    font-weight: 700;
    color: var(--ink-1);
}

    .hello span {
        color: var(--brand);
    }

.hello-sub {
    font-size: 13px;
    color: var(--ink-2);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.cta {
    background: var(--brand);
    color: var(--ink-4);
    border: none;
    border-radius: var(--r-md);
    padding: 10px 18px;
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px var(--ring);
    transition: background var(--t-fast), transform var(--t-fast);
}

    .cta:hover {
        background: var(--brand-d);
        transform: translateY(-1px);
    }
.cta:active{transform:translateY(0)}
.cta i{font-size:18px}

/* ════ MAIN GRID: content + right rail ════ */
.layout{display:grid;grid-template-columns:1fr 300px;gap:20px;align-items:start}
.col-main{display:flex;flex-direction:column;gap:20px;min-width:0}
.col-side{display:flex;flex-direction:column;gap:16px;position:sticky;top:0}

/* ════ STAT TILES (square, 2×2) ════ */
/*.stat-tiles{display:grid;grid-template-columns:1fr 1fr;gap:12px}*/
.stat-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 992px) {
    .stat-tiles {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .stat-tiles {
        /* grid-template-columns: 1fr;*/
        grid-template-columns: repeat(2, 1fr);
    }
}
/****************** Tile Old*********************************************/
.tile{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:15px;
  cursor:pointer;transition:transform var(--t),box-shadow var(--t),border-color var(--t);
  box-shadow:var(--sh-sm);display:flex;align-items:center;gap:13px}
.tile:hover{transform:translateY(-2px);box-shadow:var(--sh-md);border-color:var(--line-2)}
.tile-ic{width:42px;height:42px;border-radius:var(--r-md);display:grid;place-items:center;flex-shrink:0}
.tile-ic i{font-size:21px}
.ic-brand{background:var(--brand-l)} .ic-brand i{color:var(--brand)}
.ic-blue{background:var(--blue-bg)} .ic-blue i{color:var(--blue)}
.ic-amber{background:var(--amber-bg)} .ic-amber i{color:var(--amber)}
.ic-red{background:var(--red-bg)} .ic-red i{color:var(--red)}
.tile-body{min-width:0;flex:1}
.tile-val{font-size:26px;font-weight:700;letter-spacing:-.02em;line-height:1;color:var(--ink-1)}
.tile-cap{font-size:12px;font-weight:500;color:var(--ink-2);margin-top:4px;display:flex;
  align-items:center;gap:7px;flex-wrap:wrap}
.tile-tag{font-size:9.5px;font-weight:700;padding:2px 7px;border-radius:var(--r-full)}
.tag-brand{background:var(--brand-l);color:var(--brand-t)}
.tag-blue{background:var(--blue-bg);color:var(--blue-t)}
.tag-amber{background:var(--amber-bg);color:var(--amber-t)}
.tag-red{background:var(--red-bg);color:var(--red-t)}

/* ==========================================================================
   STAT TILE BASE (DYNAMIC BACKGROUNDS + SEMANTIC TOP BORDER)
   ========================================================================== */



/*.tile-link {
    text-decoration: none;
    color: inherit;
}

.tile {
    display: flex;
    align-items: center;
    padding: 18px 16px;
    background-color: var(--surface);
    border-radius: 10px;
    box-shadow: var(--sh-sm);
    border: 1px solid var(--line);
    border-top: 4px solid var(--brand);*/ /* Default fallback */
    /*transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .tile:hover {
        transform: translateY(-2px);
        box-shadow: var(--sh-md);
    }*/

    /* Unique Top Borders and Icon Colors for all 6 boxes */
    /*.tile.t-brand {
        border-top-color: var(--brand);
    }

        .tile.t-brand .tile-ic {
            color: var(--brand);
            background-color: var(--c-brand-bg);
        }

    .tile.t-blue {
        border-top-color: var(--blue);
    }

        .tile.t-blue .tile-ic {
            color: var(--blue);
            background-color: var(--c-blue-bg);
        }

    .tile.t-amber {
        border-top-color: var(--amber);
    }

        .tile.t-amber .tile-ic {
            color: var(--amber);
            background-color: var(--c-amber-bg);
        }

    .tile.t-red {
        border-top-color: var(--red);
    }

        .tile.t-red .tile-ic {
            color: var(--red);
            background-color: var(--c-red-bg);
        }

    .tile.t-brand-d {
        border-top-color: var(--brand-d);
    }

        .tile.t-brand-d .tile-ic {
            color: var(--brand-d);
            background-color: var(--brand-l);
        }

    .tile.t-ink {
        border-top-color: var(--ink-1);
    }

        .tile.t-ink .tile-ic {
            color: var(--ink-1);
            background-color: var(--hover);
        }*/

/* Inner Elements Layout */
/*.tile-ic {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 22px;
    margin-right: 14px;
    flex-shrink: 0;
}

.tile-body {
    display: flex;
    flex-direction: column;
}

.tile-val {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink-1);
    line-height: 1.2;
}

.tile-cap {
    font-size: 13px;
    color: var(--ink-2);
    margin-top: 2px;
}

.unit {
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-3);
}*/

/* =========================================================
   1. DEFAULT TILE STYLES (Applies to the other 6 themes)
   Tiles remain white with dark text and subtle borders/shadows
   ========================================================= */
/* =========================================================
   1. DEFAULT TILE STYLES (Applies to the other 6 themes)
   Tiles remain white with dark text and a 4px colored top border
   ========================================================= */
.tile {
    background-color: var(--surface, #FFFFFF);
    color: var(--ink-1, #1A1A1A);
    border: 1px solid var(--line, #E5E7EB);
    border-top-width: 4px; /* Distinct top border thickness */
    box-shadow: var(--sh-sm, 0 1px 3px rgba(0,0,0,0.05));
    transition: all 0.2s ease;
}

    .tile .tile-ic,
    .tile .tile-cap {
        color: var(--ink-2, #6B7280);
    }

    /* Default themes top border & icon colors */
    .tile.t-brand {
        border-top-color: var(--brand);
    }

        .tile.t-brand .tile-ic {
            color: var(--brand);
        }

    .tile.t-blue {
        border-top-color: var(--blue);
    }

        .tile.t-blue .tile-ic {
            color: var(--blue);
        }

    .tile.t-amber {
        border-top-color: var(--amber);
    }

        .tile.t-amber .tile-ic {
            color: var(--amber);
        }

    .tile.t-red {
        border-top-color: var(--red);
    }

        .tile.t-red .tile-ic {
            color: var(--red);
        }

    .tile.t-brand-d {
        border-top-color: var(--brand-d);
    }

        .tile.t-brand-d .tile-ic {
            color: var(--brand-d);
        }

    .tile.t-ink {
        border-top-color: var(--ink-1);
    }

        .tile.t-ink .tile-ic {
            color: var(--ink-1);
        }


/* =========================================================
   2. ELEVATED THEMES OVERRIDES (Ocean, Nordic, Violet, Lilac)
   Tiles get tinted backgrounds with dark contrast top borders
   ========================================================= */
[data-theme="ocean"],
[data-theme="nordic"],
[data-theme="violet"],
[data-theme="lilac"] {
    /* Box 1: Brand / Received */
    .tile.t-brand

{
    background-color: var(--c-brand-bg, var(--brand-l));
    color: var(--c-brand-fg, var(--brand-t));
    border-color: transparent;
    border-top: 4px solid var(--brand); /* Strong contrast accent */
}

.tile.t-brand .tile-ic,
.tile.t-brand .tile-cap {
    color: var(--c-brand-fg, var(--brand-t));
}

/* Box 2: Blue / Files in transit */
.tile.t-blue {
    background-color: var(--c-blue-bg, var(--blue-bg));
    color: var(--c-blue-fg, var(--blue-t));
    border-color: transparent;
    border-top: 4px solid var(--blue); /* Strong contrast accent */
}

    .tile.t-blue .tile-ic,
    .tile.t-blue .tile-cap {
        color: var(--c-blue-fg, var(--blue-t));
    }

/* Box 3: Amber / Oldest at desk */
.tile.t-amber {
    background-color: var(--c-amber-bg, var(--amber-bg));
    color: var(--c-amber-fg, var(--amber-t));
    border-color: transparent;
    border-top: 4px solid var(--amber); /* Strong contrast accent */
}

    .tile.t-amber .tile-ic,
    .tile.t-amber .tile-cap {
        color: var(--c-amber-fg, var(--amber-t));
    }

/* Box 4: Red / Delayed Files */
.tile.t-red {
    background-color: var(--c-red-bg, var(--red-bg));
    color: var(--c-red-fg, var(--red-t));
    border-color: transparent;
    border-top: 4px solid var(--red); /* Strong contrast accent */
}

    .tile.t-red .tile-ic,
    .tile.t-red .tile-cap {
        color: var(--c-red-fg, var(--red-t));
    }

/* Box 5: Brand Dark / Notifications */
.tile.t-brand-d {
    background-color: var(--brand-d);
    color: var(--ink-4, #FFFFFF);
    border-color: transparent;
    border-top: 4px solid var(--brand-l); /* Light contrast top accent on dark tile */
}

    .tile.t-brand-d .tile-ic,
    .tile.t-brand-d .tile-cap {
        color: var(--ink-4, #FFFFFF);
        opacity: 0.9;
    }

/* Box 6: Ink / Avg. Processing time */
.tile.t-ink {
    background-color: var(--surface-2);
    color: var(--ink-1);
    border: 1px solid var(--line);
    border-top: 4px solid var(--ink-1); /* Dark contrast top accent */
}

    .tile.t-ink .tile-ic {
        color: var(--brand);
    }

    .tile.t-ink .tile-cap {
        color: var(--ink-2);
    }

}
/* Dark Theme Adjustments for Icon Containers (Aurum / Copper) */
[data-theme="aurum"] .tile-ic,
[data-theme="copper"] .tile-ic {
    background: rgba(0, 0, 0, 0.25);
}

/* SECTION */
.sec-bar{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.sec-name{font-size:15px;font-weight:700;letter-spacing:-.01em;color:var(--ink-1);display:flex;
  align-items:center;gap:8px}
.sec-name i{font-size:18px;color:var(--brand)}
.sec-more{font-size:12px;font-weight:600;color:var(--brand);display:inline-flex;align-items:center;
  gap:4px;transition:gap var(--t-fast)}
.sec-more:hover{gap:7px}
.sec-more i{font-size:15px}

/* PANEL + FILE TABLE */
.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
  box-shadow:var(--sh-sm);overflow:hidden}
.thead {
    display: grid;
    grid-template-columns: 1fr 130px 116px 124px;
    gap: 12px;
    align-items: center;
    padding: 11px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--thead)
}
.th{font-size:10px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--ink-4)}
.th.right{text-align:right}
.whitetext { color:var(--ink-4)}
.theme {
    background: var(--brand);
    color: var(--ink-4)
}
.trow{display:grid;grid-template-columns:1fr 130px 116px 124px;gap:12px;align-items:center;
  padding:12px 18px;border-bottom:1px solid var(--line);cursor:pointer;transition:background var(--t-fast)}
.trow:last-child{border-bottom:none}
.trow:hover{background:var(--hover)}
.fcell{display:flex;align-items:center;gap:12px;min-width:0}
.ficon{width:36px;height:36px;border-radius:var(--r-md);display:grid;place-items:center;flex-shrink:0}
.ficon i{font-size:17px}
.fi-brand{background:var(--brand-l)} .fi-brand i{color:var(--brand)}
.fi-amber{background:var(--amber-bg)} .fi-amber i{color:var(--amber)}
.fi-red{background:var(--red-bg)} .fi-red i{color:var(--red)}
.fi-blue{background:var(--blue-bg)} .fi-blue i{color:var(--blue)}
.ftext{min-width:0}
.fname{font-size:13px;font-weight:600;color:var(--ink-1);white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis}
.fid{font-size:10.5px;color:var(--ink-3);margin-top:2px}
.ffrom{font-size:12px;color:var(--ink-2);font-weight:500}
.fdate{font-size:12px;color:var(--ink-2)}
.badge{display:inline-flex;align-items:center;gap:5px;font-size:10.5px;font-weight:600;
  padding:3px 10px;border-radius:var(--r-full)}
.b-brand{background:var(--brand-l);color:var(--brand-t)}
.b-amber{background:var(--amber-bg);color:var(--amber-t)}
.b-red{background:var(--red-bg);color:var(--red-t)}
.badge i{font-size:12px}
.acts{display:flex;gap:5px;justify-content:flex-end}
.act{width:30px;height:30px;border-radius:var(--r-sm);border:1px solid var(--line);
  background:var(--surface);color:var(--ink-3);display:grid;place-items:center;
  transition:background var(--t-fast),color var(--t-fast),border-color var(--t-fast)}
.act:hover{background:var(--brand-l);color:var(--brand);border-color:var(--brand-l)}
.act i{font-size:15px}
.fmeta-mobile{display:none}

/* CC RECEIVED (compact list) */
.cc-row{display:flex;align-items:center;gap:12px;padding:11px 18px;border-bottom:1px solid var(--line);
  cursor:pointer;transition:background var(--t-fast)}
.cc-row:last-child{border-bottom:none}
.cc-row:hover{background:var(--hover)}
.cc-text{min-width:0;flex:1}
.cc-name{font-size:12.5px;font-weight:600;color:var(--ink-1);white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis}
.cc-meta{font-size:11px;color:var(--ink-3);margin-top:2px}
.cc-date{font-size:11px;color:var(--ink-2);flex-shrink:0;white-space:nowrap}
.cc-new{width:7px;height:7px;border-radius:50%;background:var(--brand);flex-shrink:0}

/* ════ RIGHT RAIL CARDS ════ */
.side-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
  box-shadow:var(--sh-sm);overflow:hidden}
.side-head{padding:14px 16px 12px;display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--line)}
.side-head i{font-size:17px;color:var(--brand)}
.side-title{font-size:13px;font-weight:700;color:var(--ink-1)}
/* quick actions list */
.qa-list{padding:8px}
.qa{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:var(--r-md);
  cursor:pointer;transition:background var(--t-fast);width:100%;text-align:left}
.qa:hover{background:var(--hover)}
.qa-ic{width:34px;height:34px;border-radius:var(--r-sm);background:var(--brand-l);display:grid;
  place-items:center;flex-shrink:0}
.qa-ic i{font-size:17px;color:var(--brand)}
.qa-label{font-size:13px;font-weight:600;color:var(--ink-1)}
.qa-sub{font-size:11px;color:var(--ink-3);margin-top:1px}
.qa-arrow{margin-left:auto;color:var(--ink-3);font-size:16px;opacity:0;transition:opacity var(--t-fast),transform var(--t-fast)}
.qa:hover .qa-arrow{opacity:1;transform:translateX(2px)}
/* circulars in rail */
.cr{padding:12px 16px;border-bottom:1px solid var(--line);cursor:pointer;display:flex;gap:11px;
  align-items:flex-start;transition:background var(--t-fast)}
.cr:last-child{border-bottom:none}
.cr:hover{background:var(--hover)}
.cr-ic{width:28px;height:28px;border-radius:var(--r-sm);background:var(--brand-l);color:var(--brand);
  display:grid;place-items:center;flex-shrink:0;font-size:14px}
.cr-name{font-size:12px;font-weight:600;color:var(--ink-1);line-height:1.4}
.cr-meta{font-size:10.5px;color:var(--ink-3);margin-top:3px}

/* TIP */
.tip{display:flex;align-items:flex-start;gap:11px;background:var(--brand-l);border:1px solid var(--line);
  border-radius:var(--r-md);padding:13px 15px;font-size:12px;color:var(--brand-t);line-height:1.6;margin-top:4px}
.tip i{font-size:17px;color:var(--brand);flex-shrink:0;margin-top:1px}
.tip strong{font-weight:700}

.overlay{position:fixed;inset:0;background:rgba(11,31,24,.45);z-index:55;opacity:0;visibility:hidden;
  transition:opacity var(--t),visibility var(--t)}
.overlay.show{opacity:1;visibility:visible}



/*******************MODAL POPUP CSS**********************************/

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn .25s ease;
}

.modal-container {
    width: 650px;
    max-width: 95%;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,.25);
    opacity: 0;
    transform: translateY(-40px) scale(.95);
    transition: all .25s ease;
}

    .modal-container.show {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid #e5e5e5;
}

    .modal-header h4 {
        margin: 0;
        font-weight: 600;
    }

.modal-body {
    padding: 25px;
}

.btn-close {
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
/*********************************************************/

/*****************************************  Theme Tables *************************************************** */
/* Container & Base Font Setup */
.manage-groups-container {
    background-color: var(--bg);
    font-family: var(--font);
    transition: background-color var(--t);
}

/* Dynamic Variable Text Enforcements */
.theme-ink-1 {
    color: var(--ink-1);
}

.theme-ink-2 {
    color: var(--ink-2);
}

.theme-ink-3 {
    color: var(--ink-3);
}

.theme-text-danger {
    color: var(--red);
}

/* Unified Heights and Borders */
.custom-height {
    height: 45px;
}

.theme-radius-md {
    border-radius: var(--r-md);
}

/* Card Surface Styling */
.theme-card {
    background-color: var(--surface);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-md);
    transition: background-color var(--t), box-shadow var(--t);
}

/* Form Inputs styling mapping */
.theme-input {
    background-color: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--ink-1);
    border-radius: var(--r-sm);
    transition: border-color var(--t-fast), background-color var(--t-fast);
}

    .theme-input:focus {
        background-color: var(--surface);
        border-color: var(--brand);
        color: var(--ink-1);
        box-shadow: 0 0 0 4px var(--ring);
        outline: none;
    }

/* Master Action Buttons styles variables mapping */
.theme-btn-brand {
    background-color: var(--brand);
    color: var(--ink-4);
    border: none;
    border-radius: var(--r-sm);
    transition: background-color var(--t-fast);
}

    .theme-btn-brand:hover {
        background-color: var(--brand-d);
        color: var(--ink-4);
    }

.theme-btn-action {
    background-color: var(--brand);
    color: var(--ink-4);
    border-radius: var(--r-xs);
    padding: 4px 10px;
    border: none;
}

    .theme-btn-action:hover {
        background-color: var(--brand-d);
    }

.theme-btn-danger {
    background-color: var(--red);
    color: var(--ink-4);
    border-radius: var(--r-xs);
    padding: 4px 10px;
    border: none;
}

    .theme-btn-danger:hover {
        background-color: var(--red-t);
    }

/* Grid layout Theme integration */
.theme-table {
    background-color: var(--thead);
    border: 1px solid var(--line);
}

    .theme-table thead {
        /* Uses custom property theme tracking head values fallback to brand tokens if omitted on theme profiles */
        background-color: var(--thead, var(--brand-d));
        color: var(--ink-4);
    }

    .theme-table th {
        font-weight: 600;
    }

    .theme-table tbody tr {
        border-bottom: 1px solid var(--line);
    }

        .theme-table tbody tr:hover {
            background-color: var(--hover) !important;
        }

/* Dynamic State Badges mappings */
.theme-badge-active {
    background-color: var(--brand-l);
    color: var(--brand-t);
    border-radius: var(--r-full);
    padding: 0.35em 0.65em;
    font-weight: 600;
}

/* Custom Responsive Card Layout for Mobile Screens */
@media screen and (max-width: 767.98px) {

    /* Hide the original table header completely */
    .responsive-mobile-table thead {
        display: none;
    }

    /* Make structural grid blocks behaves as cards */
    .responsive-mobile-table,
    .responsive-mobile-table tbody,
    .responsive-mobile-table tr,
    .responsive-mobile-table td {
        display: block;
        width: 100%;
    }

        /* Space out individual row elements as card items */
        .responsive-mobile-table tr {
            margin-bottom: 1rem;
            border: 1px solid var(--line);
            background-color: var(--surface);
            border-radius: var(--r-md);
            padding: 0.5rem 0;
            box-shadow: var(--sh-sm);
        }

        /* Format table descriptive cell labels */
        .responsive-mobile-table td {
            text-align: right;
            padding: 0.6rem 1rem !important;
            position: relative;
            border-bottom: 1px dashed var(--line);
        }

            .responsive-mobile-table td:last-child {
                border-bottom: none;
            }

            /* Insert data-label as prefix titles on left hand column elements */
            .responsive-mobile-table td::before {
                content: attr(data-label);
                position: absolute;
                left: 1rem;
                width: 45%;
                text-align: left;
                font-weight: 600;
                color: var(--ink-2);
                font-size: 0.85rem;
                text-transform: uppercase;
                letter-spacing: 0.5px;
            }

    /* Adjust button positioning to look uniform on tiny cards layouts */
    .mobile-actions {
        display: flex !important;
        justify-content: flex-end;
        align-items: center;
        gap: 0.25rem;
    }

        .mobile-actions .btn {
            margin: 0 !important;
        }
}

/******************************** Modal Popup Styles */
.fmodal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    /*z-index: 99;*/
    opacity: 0;
    transition: opacity 0.2s ease;
}

    .fmodal-backdrop.active {
        opacity: 1;
    }
/* Baseline state when modal enters the DOM */
.fmodal-backdrop, .fmodal-wrapper {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

    /* Target state triggered by your C# method */
    .fmodal-backdrop.active, .fmodal-wrapper.active {
        opacity: 1;
    }
.fmodal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
    pointer-events: none;
}

.fmodal-dialog {
    background-color: var(--surface, #ffffff);
    border: 1px solid var(--line-2, #ccc);
    border-radius: var(--r-lg, 12px);
    box-shadow: var(--sh-lg, 0 10px 25px rgba(0,0,0,0.1));
    width: 100%;
    max-width: 950px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: auto;
    transform: scale(0.95) translateY(-15px);
    opacity: 0;
    transition: transform var(--t, 0.22s) cubic-bezier(0.1, 0.8, 0.3, 1), opacity var(--t, 0.22s) ease;
    margin: 1.75rem auto;
   
}

.fmodal-wrapper.active .fmodal-dialog {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.fmodal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background-color: var(--surface-2, #f8f9fa);
    border-bottom: 1px solid var(--line, #eee);
    flex-shrink: 0;
}

.fmodal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex-grow: 1;
    font-family: var(--font, sans-serif);
    flex: 1 1 auto;
   
}

/* --- Form Grid & Controls --- */
.fmodal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.3rem;
    /*gap: 1.25rem;*/
    margin-bottom: 1.25rem;
}

.form-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.form-select {
    font-size: 12px !important;
}

@@media(min-width: 768px) {
    .fmodal-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .col-md-4 {
        grid-column: span 1 / span 1;
    }

    .col-md-8 {
        grid-column: span 2 / span 2;
    }

    .col-md-12 {
        grid-column: span 3 / span 3;
    }
}

.fmodal-label {
    display: block;
    font-size: 0.75rem;
 /*   font-weight: 600;*/
    color: var(--ink-2, #4b5563);
    margin-bottom: 0.4rem;
}

.fmodal-star {
    color: var(--red, #d03a3a);
}

.fmodal-helper {
    color: var(--brand, #0e9f6e);
    font-weight: 400;
    font-size: 0.8rem;
    margin-left: 4px;
}

.fmodal-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.75rem;
    font-size: 0.7rem;
    background-color: var(--surface, #fff);
    color: var(--ink-1, #111);
    border: 1px solid var(--line-2, #d1d5db);
    border-radius: var(--r-sm, 6px);
    transition: border-color 0.15s, box-shadow 0.15s;
    height: 38px;
}

    .fmodal-input:focus {
        outline: none;
        border-color: var(--brand, #0e9f6e);
        box-shadow: 0 0 0 3px var(--ring, rgba(14,159,110,0.15));
    }

/* --- Interactive Pill Badges --- */
.fpill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.fpill-btn {
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #4b5563;
    transition: all 0.2s ease;
    user-select: none;
}

    .fpill-btn:hover {
        background: #f3f4f6;
        color: #1f2937;
    }

    .fpill-btn.active {
        background: var(--brand, #0e9f6e);
        border-color: var(--brand, #0e9f6e);
        color: #fff;
        font-weight: 600;
    }

/* --- Custom Select2 Emulation Styles --- */
.fselect2-container {
    position: relative;
    width: 100%;
}

.fselect2-control {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 0.35rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    box-sizing: border-box;
    justify-content: space-between;
    font-size: 0.9rem;
}

    .fselect2-control:focus-within {
        border-color: var(--brand, #0e9f6e);
        box-shadow: 0 0 0 3px rgba(14,159,110,0.15);
    }

.fselect2-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
}

/* Select2 Multi-select Tag Pill */
.fselect2-tag {
    display: inline-flex;
    align-items: center;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 0.15rem 0.4rem;
    font-size: 0.8rem;
    font-weight: 500;
    gap: 0.25rem;
}

.fselect2-tag-remove {
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    line-height: 1;
}

    .fselect2-tag-remove:hover {
        color: #ef4444;
    }

.fselect2-placeholder {
    color: #9ca3af;
}

/* Select2 Dropdown Overlay Menu */
.fselect2-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10100;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.fselect2-option {
    padding: 0.6rem 0.75rem;
    font-size: 0.88rem;
    color: #374151;
    cursor: pointer;
    transition: background 0.1s;
}

    .fselect2-option:hover {
        background: #f3f4f6;
        color: #111;
    }

    .fselect2-option.selected {
        background: #eff6ff;
        color: #1d4ed8;
        font-weight: 600;
    }

/* --- Text Area Editor Mock --- */
.feditor-frame {
    border: 1px solid var(--line-2, #ccc);
    border-radius: var(--r-md, 8px);
    overflow: hidden;
    margin-top: 0.25rem;
}

.feditor-txt {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem;
    border: 0;
    background: var(--surface, #fff);
    color: var(--ink-1, #111);
    font-size: 0.9rem;
    resize: vertical;
}

    .feditor-txt:focus {
        outline: none;
    }

/* --- Actions Footer --- */
.fmodal-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
   /* padding-top: 1.25rem;*/
    border-top: 1px solid var(--line, #eee);
    margin-top: 1.5rem;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    background-color: #ffffff; /* Prevents text behind from bleeding through */
    padding: 1rem 1.5rem;
    z-index: 10; /* Ensures buttons remain interactive and visible */


  
    /* 1. Pull the footer flush to the left and right edges */
    margin-left: -1.5rem; /* Change this value to match your modal body's padding */
    margin-right: -1.5rem; /* Change this value to match your modal body's padding */
    margin-bottom: -1.5rem; /* Pulls it flush with the bottom edge */
    /* 2. Re-apply internal padding so the buttons aren't touching the edge */
    padding: 1rem 1.5rem;
    /* 3. Match header background and add a crisp top border */
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0; /* Matches a clean UI border style */
    /* 4. Layout properties */
  
}

.fbtn {
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.6rem 1.2rem;
    border-radius: var(--r-md, 8px);
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fbtn-primary {
    background: var(--brand, #0e9f6e);
    color: var(--ink-4, #fff);
}

    .fbtn-primary:hover {
        background: var(--brand-d, #057a55);
    }

.fbtn-warning {
    background: var(--amber, #c2740c);
    color: var(--ink-4, #fff);
}

    .fbtn-warning:hover {
        opacity: 0.9;
    }

.fbtn-secondary {
    background: var(--surface-2, #eee);
    color: var(--ink-2, #555);
    border-color: var(--line-2, #ccc);
}

    .fbtn-secondary:hover {
        background: var(--hover, #ddd);
    }

/* --- Wizard Stepper Custom Styles --- */
.fstepper-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    position: relative;
    padding: 0 1rem;
}

.fstepper-line-bg {
    position: absolute;
    left: 0;
    top: 20px;
    width: 100%;
    height: 3px;
    background-color: #e5e7eb;
    z-index: 1;
}

.fstepper-line-progress {
    position: absolute;
    left: 0;
    top: 20px;
    height: 3px;
    background-color: var(--brand, #0e9f6e);
    z-index: 2;
    transition: width 0.3s ease;
}

.fstep-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
    position: relative;
    flex: 1;
}

.fstep-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid #fff;
}

.fstep-text {
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
    color: #9ca3af;
    transition: color 0.3s ease;
    text-align: center;
}

.fstep-item.active .fstep-circle {
    background-color: #3b82f6;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.fstep-item.active .fstep-text {
    color: #3b82f6;
}

.fstep-item.completed .fstep-circle {
    background-color: var(--brand, #0e9f6e);
    color: #fff;
}

.fstep-item.completed .fstep-text {
    color: var(--brand, #0e9f6e);
}

/*********************** SELECT 2 Styles *********************************************/
/* 1. Change the height of the main selection container wrapper */
.select2-container .select2-selection--single {
    height: 40px !important;
    display: flex;
    align-items: center; /* Vertically centers the text and inner content */
    border: 1px solid #ededed !important;
}

/* 2. Adjust the rendering height of the text inside */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 40px !important;
    padding-left: 12px;
}

/* 3. Center the dropdown selection arrow container button vertically */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
    top: 0 !important;
    right: 6px !important;
}

/* 4. Optional: If you use the allowClear button (the 'x' button), center it too */
.select2-container--default .select2-selection--single .select2-selection__clear {
    height: 40px !important;
    line-height: 40px !important;
    margin-right: 8px;
}

/* Force the Select2 clear button (x) to position on the right side */
.select2-container--default .select2-selection--single .select2-selection__clear {
    float: right !important;
    margin-right: 25px !important; /* Leaves clean breathing room so it doesn't overlap the down arrow */
    position: relative;
    z-index: 1;
}

/* Ensure the wrapper structure handles the floating elements correctly without wrapping */
.select2-container .select2-selection--single .select2-selection__rendered {
    padding-right: 35px !important; /* Prevents long option text from overlapping the clear button */
    display: block;
    width: 100%;
}

/* Target the select2 selection box ONLY when the hidden native select has Blazor's 'invalid' class */
select.invalid + .select2-container .select2-selection {
    border-color: #dc3545 !important; /* Bootstrap Danger Red */
    background-color: #fff8f8; /* Subtle red tint background */
}

/* Optional: Turn the text/arrow red or adjust focus rings when invalid */
select.invalid + .select2-container .select2-selection__rendered {
    color: #b02a37;
}

/*************************** Sweet Alert Styles ******************************************************/

.swal2-container {
    z-index: 9999999 !important;
}

input.invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* Container for the error message to keep it from shifting the form */
.validation-error-with-icon {
    position: absolute;
  /*  bottom: -30px;
    left: 20px;*/
    font-size: 0.85rem;
    color: #dc3545;
    display: flex;
    align-items: center;
}

    /* Injects the Bootstrap Icon safely before the message text */
    .validation-error-with-icon::before {
        content: "\F33A"; /* Unicode for Bootstrap Icon: bi-exclamation-circle-fill */
        font-family: "bootstrap-icons";
        font-weight: bold;
        margin-right: 6px;
        font-size: 0.9rem;
        display: inline-block;
    }

/*****************************************************************************************************/

/***************************************** File Upload *************************************************/
.upload-box {
    border: 2px dashed #cbd5e1;
   /* padding: 2rem;*/
    border-radius: 10px;
    text-align: center;
    background: #f8fafc;
}

.attachment-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 7px;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
}

.attachment-info {
    flex: 1;
    margin-left: 15px;
}

.attachment-icon {
    font-size: 30px;
    color: #2563eb;
}

/************************************************ Alert Styles*********************************************/

.alert {
    padding: 0.5rem 0.5rem !important;
    margin-bottom: 0px !important;
}






/***************************************************collapsed bar styles***********************************/

#rail {
    background: var(--rail);
    border-right: 1px solid var(--brand);
    box-shadow: 4px 0 20px rgba(0,0,0,.04);
}
.nav-grp-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
 /*   margin: 10px 8px 6px;*/
    font-size: .78rem;
   /* font-weight: 700;
    letter-spacing: .12em;*/
    text-transform: uppercase;  
    border-radius: 7px;
    transition: all .2s ease;
    cursor:pointer;
}

    .nav-grp-label:hover {
        color: var(--primary-color);
        background: rgba(0, 0, 0, 0.03);
    }

.nav-grp {
    border-top: 1px solid #eef2f7;
  
    /* padding-top: 8px;
    margin-top: 8px;*/
}

    .nav-grp:first-child {
        border-top: none;
    }

.nav-grp-label.active {
    color: var(--ink-2);
    border-left: 4px solid var(--brand);
    padding-left: 12px;
}


.nav-grp-body {
    max-height: 0;
    overflow: hidden;
   /* transition: max-height .3s ease;*/
    display: grid;
    grid-template-rows: 0fr;
    transition: .25s;
}

    .nav-grp-body.show {
        max-height: 700px; /* Adjust if needed */
       /* grid-template-rows: 1fr;*/
    }

.chevron {
    transition: .25s;
}

    .chevron.open {
        transform: rotate(90deg);
    }
   

.nav-link i {
    width: 22px !important;
    font-size: 19px !important;
    color: #7d97a8 !important;
}

.nav-link.on i {
    color: #10b981 !important;
}

.form-control {
    font-size: 0.8rem !important;
  
}

.mud-input > input.mud-input-root-outlined.mud-input-root-margin-dense, div.mud-input-slot.mud-input-root-outlined.mud-input-root-margin-dense {
    padding-top: 10.5px !important;
    padding-bottom: 15.5px !important;
}
/**************************************FileDetails CSS******************************************************/


.noting-card {
    border-radius: 8px;
}

/* Custom scrollbar styling for a cleaner look */
.style-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.style-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.style-scrollbar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

    .style-scrollbar::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }

/* Timeline/Noting Thread visual enhancements */
.noting-card {
    border-left: 4px solid #0d6efd; /* Accent bar for active items */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .noting-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.05) !important;
    }

/* Document Viewer Box */
.document-viewer-container {
    background-color: #525659; /* Standard PDF reader dark mode background */
    border-radius: 0 0 0.375rem 0.375rem;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Tight spacing optimization styles */
.fs-7 {
    font-size: 0.75rem !important;
}

.style-btn-close {
    width: 0.5em;
    height: 0.5em;
    padding: 0;
}

.shadow-xs {
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Enhancing timeline connection paths */
.border-primary-subtle {
    border-color: #cfe2ff !important;
}

/* Custom utility scaling for clean edge margins */
.fs-8 {
    font-size: 0.725rem !important;
}

.shadow-xs {
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.max-w-70 {
    max-width: 70%;
}

.min-w-150 {
    min-w-width: 150px;
}

/* Fluid responsive breaks targeting handheld viewports */
@media (max-width: 576px) {
    .fs-6-mobile {
        font-size: 0.9rem !important;
    }

    .fs-7-mobile {
        font-size: 0.825rem !important;
        line-height: 1.5 !important;
    }
}

@media (min-width: 992px) {
    .min-vh-lg-100 {
        min-height: calc(100vh - 53px) !important;
    }
}


/* Targets the placeholder text inside all MudBlazor inputs */
.mud-input-placeholder {
    font-size: 0.75rem !important; /* Adjust size here (e.g., 14px or 0.85rem) */
}

/* Optional: Ensures the active typed text matches the placeholder size */
.mud-input-root {
    font-size: 0.75rem !important;
}



/* Container Spacing */
.form-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    padding: 1rem 0;
}

.full-width-field {
    grid-column: span 2;
}

/* Unified Field Styles */
.corporate-input .mud-input-root,
.corporate-input .mud-input-placeholder {
    font-size: 0.875rem !important;
    font-weight: 400;
    color: #333333;
}

/* Button Layout styling */
.form-actions-wrapper {
    display: flex;
    justify-content: space-between; /* Pushes 'Previous' to the left, others to the right */
    align-items: center;
    margin-top: 2rem;
    border-top: 1px solid #e0e0e0;
    padding-top: 1.25rem;
}

.right-actions {
    display: flex;
    gap: 0.75rem;
}

/******************************************************************************/

/************************* Spinner *******************************************/
/* 1. Style your spinner */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #09f;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 2. The Magic Trick: Hide the loader when Blazor finishes initializing */
html:not([blazor-booting]) #app-loading-spinner {
    display: none;
}
/* Alternatively, if using standard modern Blazor components: */
body.components-reconnect-modal-hidden #app-loading-spinner {
    /* Once the circuit is active, hide it */
    display: none;
}

/**************************************Received Files Grid Styles*******************************************************/

/* Custom Compact Typography Framework */
.custom-small-text {
    font-size: 0.78rem !important;
    letter-spacing: 0.03em;
}

.file-heading {
    font-size: 0.88rem !important;
    line-height: 1.35;
    color: var(--brand-d);
}

.meta-subtext, .subtitle-text, .tracking-id-row {
    font-size: 0.76rem !important;
}

.sender-role, .cell-date {
    font-size: 0.82rem !important;
}

.mx-1.5 {
    margin-left: 0.35rem;
    margin-right: 0.35rem;
}

/* Strict Desktop Table Structural Setup */
@media (min-width: 768px) {
    .table-custom-grid {
        display: table !important;
        border-collapse: collapse;
    }

        .table-custom-grid tr {
            display: table-row !important;
        }

        .table-custom-grid th, .table-custom-grid td {
            display: table-cell !important;
            padding: 12px 8px !important;
            vertical-align: middle !important;
        }

    .grid-row-item:hover {
        background-color: #f8f9fa !important;
    }

    .action-btn {
        width: 30px;
        height: 30px;
        border: none;
        border-radius: 4px;
        color: #ffffff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
        cursor: pointer;
        transition: transform 0.15s ease;
    }

        .action-btn:hover {
            transform: scale(1.08);
            opacity: 0.95;
        }
}

/* Elegant Native Card Transformation Rule for Mobile UI */
@media (max-width: 767.98px) {
    .table-custom-grid, .custom-body-grid, .table-custom-grid tr, .table-custom-grid td {
        display: block !important;
        width: 100% !important;
    }

        .table-custom-grid thead {
            display: none !important;
        }

    .grid-row-item {
        background: #ffffff;
        margin-bottom: 12px;
        border: 1px solid #dee2e6;
        border-radius: 6px;
        padding: 12px !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    }

    .table-custom-grid td {
        padding: 6px 0 !important;
        border: none !important;
        display: flex !important;
        align-items: center;
    }

        .table-custom-grid td::before {
            content: attr(data-label);
            font-weight: 700;
            width: 35%;
            color: #6c757d;
            font-size: 0.78rem;
            text-uppercase: true;
        }

    .cell-main-title::before, .cell-file-num::before {
        display: none !important; /* Hide label prefixes on title and numbers for mobile aesthetic balance */
    }

    .cell-main-title {
        border-bottom: 1px solid #f1f3f5 !important;
        padding-bottom: 8px !important;
        margin-bottom: 4px;
    }

    .action-btn-group {
        width: 100%;
        margin-top: 8px;
        display: flex !important;
        justify-content: space-between;
    }

    .action-btn {
        flex-grow: 1;
        height: 36px;
        border: none;
        border-radius: 4px;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
    }
}

/*******************************File Tracking Styles**************************************************/
/* Base Container Hook */
.theme-wrapper {
    background-color: var(--bg);
    min-height: 100vh;
    color: var(--ink-1);
    transition: background-color 0.25s ease, color 0.25s ease;
}

/* Card Structures */
.themed-card {
    background-color: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--sh-sm);
    overflow: hidden;
}

.themed-card-header {
    background-color: var(--surface-2);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem;
    color: var(--ink-1);
}

/* Dynamic Typography Helpers */
.text-ink-1 {
    color: var(--ink-1);
}

.text-ink-2 {
    color: var(--ink-2);
}

.text-ink-3 {
    color: var(--ink-3);
}

.text-brand {
    color: var(--brand);
}

.text-red {
    color: var(--red);
}

.small-caption {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

.uppercase {
    text-transform: uppercase;
}

.text-xs {
    font-size: 0.78rem;
}

/* Adaptive Badge Components using theme definitions */
.custom-badge {
    padding: 0.35em 0.65em;
    font-size: 0.75rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
}

.badge-amber {
    background-color: var(--amber-bg);
    color: var(--amber-t);
    border: 1px solid rgba(194, 116, 12, 0.15);
}

.badge-blue {
    background-color: var(--blue-bg);
    color: var(--blue-t);
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.badge-red {
    background-color: var(--red-bg);
    color: var(--red-t);
}

.badge-brand {
    background-color: var(--brand-l);
    color: var(--brand-t);
    border: 1px solid var(--line-2);
}

/* Table System Updates */
.custom-themed-table {
    width: 100%;
    border-collapse: collapse;
}

    .custom-themed-table thead th {
        background-color: var(--surface-2);
        color: var(--ink-2);
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        padding: 1rem;
        border-bottom: 2px solid var(--line-2);
    }

    .custom-themed-table tbody td {
        padding: 1.15rem 1rem;
        color: var(--ink-1);
        border-bottom: 1px solid var(--line);
        vertical-align: top;
        background-color: var(--surface);
    }

    .custom-themed-table tbody tr:hover td {
        background-color: var(--hover);
    }

.badge-inline-received {
    color: var(--brand);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* Mobile Component Styling */
.mobile-timeline .timeline-step {
    background-color: var(--surface-2);
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand);
    border-radius: 6px;
}

.text-line-2 {
    color: var(--line-2);
}

/****************************************Stepper Classes************************************************/
/* Container Context Positioning Fixes */
.position-relative {
    position: relative !important;
}

.z-index-2 {
    z-index: 2;
}

/* Absolute Tracker Line Placement Engine */
.fstepper-track-wrapper {
    position: absolute;
    top: 44px; /* Vertically aligns exactly behind the 40px circles */
    left: 0;
    right: 0;
    width: 100%;
    max-width: 540px; /* Adjust this value to perfectly target circle centers based on app grid scale */
    margin: 0 auto;
    height: 3px;
    z-index: 1;
    pointer-events: none;
    padding: 0 20px;
}

/* Static Base Line Track */
.fstepper-line-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--line, #e2e8f0);
    border-radius: 4px;
}

/* Active Moving Dynamic Process Line Track */
.fstepper-line-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background-color: var(--brand, #4f46e5);
    border-radius: 4px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Stepper Circle Formatting */
.fstep-item {
    flex: 1;
    position: relative;
}

.fstep-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--card-bg, #ffffff);
    border: 2px solid var(--line, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-3, #64748b);
    transition: all 0.3s ease;
    box-shadow: 0 0 0 6px var(--card-bg, #ffffff); /* Masks line bleeding behind circles */
}

    .fstep-circle svg {
        width: 18px;
        height: 18px;
        stroke: currentColor;
    }

/* State Transitions */
.fstep-item.is-active .fstep-circle {
    border-color: var(--brand, #4f46e5);
    color: var(--brand, #4f46e5);
}

.fstep-item.is-completed .fstep-circle {
    background-color: var(--brand, #4f46e5);
    border-color: var(--brand, #4f46e5);
    color: #ffffff;
}

/* Button & Theme Colors Sync */
.btn-brand {
    background-color: var(--brand, #4f46e5) !important;
    border-color: var(--brand, #4f46e5) !important;
    color: #ffffff !important;
}

    .btn-brand:hover {
        filter: brightness(0.9);
    }

.unified-btn {
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/*************************************Themes menu Styles***************************************/

/* The main menu container */
.theme-menu {
    display: none; /* Keep your existing toggle logic, e.g., display: none/block or opacity */
    padding: 16px;
    background: var(--surface);
    border-radius: 12px;
    box-shadow: var(--sh-lg);
    width: 320px; /* Adjust the overall width to fit 3 columns comfortably */
}

    /* When the menu is open, activate the 3-column grid */
    .theme-menu.open {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* Creates 3 equal columns */
        gap: 8px; /* Adds spacing between the theme buttons */
    }

/* Make sure the title stretches across all 3 columns */
.theme-menu-title {
    grid-column: span 3;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-3);
    margin-bottom: 8px;
    padding-left: 4px;
}

/* Adjust your buttons to stack nicely inside their grid cells */
.theme-opt {
    display: flex;
    flex-direction: column; /* Stacks the color dot on top of the text */
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--surface-2);
    cursor: pointer;
    position: relative; /* For positioning the checkmark if needed */
    transition: all 0.2s ease;
}

    .theme-opt:hover {
        background: var(--hover);
    }

    /* Style for the selected state */
    .theme-opt.sel {
        background: var(--brand-l);
        border-color: var(--brand);
    }

    /* Adjust checkmark icon positioning so it doesn't break the layout */
    .theme-opt .ti-check {
        display: none; /* Hide by default */
        position: absolute;
        top: 4px;
        right: 4px;
        font-size: 12px;
        color: var(--brand);
    }

    .theme-opt.sel .ti-check {
        display: block; /* Show only when selected */
    }

/**********************************************************************************************/
/**********************************Responsive Images and Tables for Dynamically rendered content*/
/* Responsive adjustments for dynamically rendered dynamic markup */
.remarks-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0.75rem auto;
    border-radius: var(--r-xs, 4px);
    border: 1px solid var(--border-theme, rgba(0, 0, 0, 0.1));
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Fallback protection for rich-text element tables or code screenshots */
.remarks-content table,
.remarks-content pre {
    max-width: 100%;
    overflow-x: auto;
    display: block;
    white-space: nowrap;
}

/* Forces injection markup SVGs to dynamically fit inside their layout box context */
.responsive-qr-svg svg {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    display: block;
}



/* Ensure the native select inputs match the custom component's typical height */
.custom-sync-height {
    height: 48px !important; /* Adjust this value to match your desired component design height */
    line-height: 1.5;
}

/* Force the wrapper or internal input elements of MultiSelectUser to stay identical */
.component-sync-height,
.component-sync-height .multiselect-input-element-class {
    height: 48px !important;
    display: flex;
    align-items: center;
}

/****************************************************************************************/
/* 1. Reset the main selectbar container (remove borders and background) */
.rz-selectbar.pill-selectbar {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important; /* Adds space between the pills */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

    /* 2. Style every item as an independent rounded pill */
    .rz-selectbar.pill-selectbar .rz-button {
        border-radius: 50px !important; /* Perfect round pill shape */
        border: 1px solid #ccc !important;
        background-color: #ffffff !important;
        color: #444444 !important;
        text-transform: none !important; /* Disables the ALL-CAPS look */
        padding: 6px 18px !important;
        font-size: 14px !important;
        font-weight: normal !important;
        box-shadow: none !important;
    }

        /* 3. Style the active/selected pill (Green) */
        .rz-selectbar.pill-selectbar .rz-button.rz-state-active {
            background-color: #198754 !important; /* Forest green */
            color: #ffffff !important;
            border-color: #198754 !important;
        }

        /* 4. Hover effect on unselected pills */
        .rz-selectbar.pill-selectbar .rz-button:hover:not(.rz-state-active) {
            background-color: #f3f4f6 !important;
            border-color: #999999 !important;
        }

/* 1. Separate the pills and clear container styling */
.rz-selectbar.pill-selectbar {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

    /* 2. Standard (Unselected) Pill State */
    .rz-selectbar.pill-selectbar .rz-button {
        border-radius: 50px !important; /* Rounded pill shape */
        border: 1px solid var(--rz-border-color, #ccc) !important;
        background-color: #ffffff !important;
        color: var(--rz-text-color, #444444) !important;
        text-transform: none !important; /* Preserves database text casing */
        padding: 6px 18px !important;
        font-size: 14px !important;
        font-weight: normal !important;
        box-shadow: none !important;
        transition: all 0.15s ease-in-out;
    }

        /* 3. Active (Selected) Pill State */
        /* Uses your theme's primary color variables automatically */
        .rz-selectbar.pill-selectbar .rz-button.rz-state-active {
            background-color: var(--rz-primary, #198754) !important; /* Theme Primary Color */
            color: var(--rz-on-primary, #ffffff) !important; /* Accessible Text Color on Primary */
            border-color: var(--rz-primary, #198754) !important;
        }

        /* 4. Hover state for unselected pills */
        .rz-selectbar.pill-selectbar .rz-button:hover:not(.rz-state-active) {
            background-color: var(--rz-grid-hover-background-color, #f5f5f5) !important;
            border-color: var(--rz-primary, #999) !important;
            opacity: 0.9;
        }

/************************************ CC Received ( Dashboard Styles***************************************************************/
/* Ensure the row is a flex container aligning items vertically centered */
.cc-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f3f5;
    gap: 16px;
    transition: background-color 0.2s ease;
}

    .cc-row:hover {
        background-color: #fafbfc;
    }

/* Container for both the status dot and the icon */
.cc-left-block {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Styled circle box for the CC Icon */
.cc-icon-wrapper {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background-color: #ebf8ff; /* Soft blue tint background */
    border: 1px solid #bee3f8; /* Soft blue border */
    display: flex;
    align-items: center;
    justify-content: center;
}

    .cc-icon-wrapper i {
        color: #3182ce; /* Vibrant Blue for the CC icon */
        font-size: 1.1rem;
    }

/* Small unread indicator dot positioned absolute to the icon box */
.cc-new-badge {
    position: absolute;
    top: -2px;
    left: -2px;
    width: 10px;
    height: 10px;
    background-color: #e53e3e; /* Red indicator */
    border: 2px solid #ffffff; /* White outer ring so it pops */
    border-radius: 50%;
    z-index: 2;
}

/* Align the text next to it */
.cc-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cc-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
}

.cc-meta {
    font-size: 0.8rem;
    color: #718096;
}

.cc-date {
    font-size: 0.85rem;
    color: #a0aec0;
    flex-shrink: 0;
}

/*************************************************************/
.mud-chip-filled.mud-chip-color-info {
    color: var(--mud-palette-info-text);
    --mud-ripple-color rgba(255,255,255,1) !important : var(--mud-palette-info-text) !important;
    background-color: var(--brand) !important;
}


/* Styling for the pills */
.btn-pill-campus {
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
    border: 1px solid #dee2e6; /* light gray border */
}

/* Style for unselected pills */
.inactive-pill {
    background-color: var(--bg);
    color: var(--ink-2);
}


    .inactive-pill:hover {
        background-color: #e9ecef;
        border-color: #ced4da;
        color: #212529;
    }

/* Green active pill matching the reference photo */
.active-pill {
    background-color: var(--brand) !important; /* Green */
    color: var(--ink-4);
    border-color: #28a745 !important;
   /* box-shadow: 0 2px 6px rgba(40, 167, 69, 0.2);*/
}

/***********************************************Push Notification Styles********************************/
/* Container positioned firmly in the top-right corner */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

/* Individual Toast Cards */
.toast-card {
    background-color: var(--brand);
    color: var(--ink-4);
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 280px;
}

.toast-body {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .toast-body p {
        margin: 0;
        font-size: 14px;
    }

.close-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 20px;
    cursor: pointer;
}

    .close-btn:hover {
        color: #fff;
    }

/****************************************** Rector Green Remarks*****************************/
.remarks-green {
    color: #198754 !important; /* Bootstrap success green */
    font-weight: 500;
}

/***************************************** Dashboard Boxes Themes****************************************** */
/* -----------------------------------------------------------------
   STAT TILES GRID & CARDS
----------------------------------------------------------------- */
.stat-tiles {
  /*  display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    width: 100%;
    margin-bottom: 1.5rem;*/
}

/*.tile-link {
    text-decoration: none !important;
    color: inherit;
    display: block;
    outline: none;
    border-radius: 12px;
}

    .tile-link:focus-visible .tile {
        box-shadow: 0 0 0 3px var(--ring), var(--sh-md);
    }

.tile {
    background-color: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--sh-sm);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}*/

    /* Subtle top border accent line for premium look */
    /*.tile::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background-color: transparent;
        transition: background-color 0.25s ease;
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
    }*/

/* Hover state: elevation & highlight */
/*.tile-link:hover .tile {
    transform: translateY(-3px);
    box-shadow: var(--sh-md);
    border-color: var(--line-2);
    background-color: var(--surface-2);
}*/

/* Icon Box Base Styling */
/*.tile-ic {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.tile-link:hover .tile-ic {
    transform: scale(1.08);
}*/

/* Content Area */
/*.tile-body {
    display: flex;
    flex-direction: column;
    min-width: 0;*/ /* Prevents text overflow */
/*}

.tile-val {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink-1);
    letter-spacing: -0.02em;
}

    .tile-val .unit {
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--ink-3);
        margin-left: 2px;
    }

.tile-cap {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ink-2);
    margin-top: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}*/

/* -----------------------------------------------------------------
   DYNAMIC THEME VARIANTS (Brand, Amber, Blue, Red)
----------------------------------------------------------------- */

/* Brand Variant */
/*.tile-brand .tile-ic {
    background-color: var(--brand-l);
    color: var(--brand);
}

.tile-brand::before {
    background-color: var(--brand);
}*/

/* Amber Variant */
/*.tile-amber .tile-ic {
    background-color: var(--amber-bg);
    color: var(--amber);
}

.tile-amber::before {
    background-color: var(--amber);
}*/

/* Blue Variant */
/*.tile-blue .tile-ic {
    background-color: var(--blue-bg);
    color: var(--blue);
}

.tile-blue::before {
    background-color: var(--blue);
}*/

/* Red Variant */
/*.tile-red .tile-ic {
    background-color: var(--red-bg);
    color: var(--red);
}

.tile-red::before {
    background-color: var(--red);
}*/

/* Applies light pastel hover/alternate background to every second card using theme variables */
/*.mobile-record-card:nth-child(even) {
    background-color: var(--surface-2);
}

.mobile-record-card:nth-child(odd) {
    background-color: var(--surface);
}*/

.mobile-record-card {
    margin-bottom: 8px; /* Creates a thin 8px gap between cards */
    border-radius: 6px; /* Optional: rounds card corners slightly */
    border: 1px solid var(--ink-1); /* Replaces bottom border with a clean subtle border */
}

    /* Remove bottom margin from the last card */
    .mobile-record-card:last-child {
        margin-bottom: 0;
    }


/* 1. Prevent grid overflow on small screens */
@media (max-width: 576px) {
    .stat-tiles {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important; /* 'minmax(0, 1fr)' allows content to shrink properly */
        gap: 8px !important;
        width: 100%;
        box-sizing: border-box;
    }

        /* 2. Fix inner tile sizing and padding */
        .stat-tiles .tile {
            padding: 10px 8px !important; /* Reduce internal side padding */
            min-width: 0 !important; /* Allows flex/grid children to shrink */
            width: 100%;
            box-sizing: border-box;
        }

        /* 3. Handle long text gracefully so it doesn't push the right side out */
        .stat-tiles .tile-val,
        .stat-tiles .tile-cap {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-size: 0.75rem; /* Slightly shrink caption text on mobile if needed */
        }

        .stat-tiles .tile-val {
            font-size: 1.1rem; /* Adjust number size for mobile fit */
        }
}

/* ════ RESPONSIVE ════ */
@media (max-width:1140px) {
    .layout{grid-template-columns:1fr}
  .col-side{position:static;flex-direction:row;flex-wrap:wrap}
  .col-side > *{flex:1;min-width:280px}
}
@media (max-width:860px){
  .rail{position:fixed;left:0;top:0;transform:translateX(-100%);box-shadow:var(--sh-lg)}
  .rail.open{transform:translateX(0)}
  .rail-close{display:flex}
  .burger{display:flex}
}
@media (max-width:680px){
  .topbar{height:58px;padding:0 14px;gap:10px}
  .search{max-width:none}
  .search kbd{display:none}
  .page{padding:16px 14px 28px}
  .hello{font-size:20px}
  .cta{width:100%;justify-content:center}
  .hero{flex-direction:column;align-items:stretch}
  .icon-btn,.theme-trig{width:40px;height:40px}
  .col-side{flex-direction:column}
  .col-side > *{min-width:0}
  /* file table → cards */
  .thead{display:none}
  .trow{grid-template-columns:1fr;gap:10px;padding:13px 15px;position:relative}
  .fcell{padding-right:38px}
  .fmeta-mobile{display:flex;align-items:center;gap:9px;flex-wrap:wrap;}
  .trow > .fdate,.trow > .ffrom,.trow > .badge-cell{display:none}
    .acts {
        flex-direction: row;
        margin-top: -40px;
        gap: 5px;
    }
  .acts .act:nth-child(n+3){display:none}
}
