/* Alfa Data workspace refresh: blue glass, clear structure, real status data. */
:root{--portal-navy:#001b7e;--portal-teal:#019bbe;--portal-ink:#112451;--portal-muted:#6680a5;--portal-surface:rgba(247,251,255,.83);--portal-line:rgba(255,255,255,.9)}
html:not(.dark) body.fi-body{background:radial-gradient(ellipse at 18% 5%,#d7e8ff 0,transparent 48%),radial-gradient(ellipse at 97% 80%,#deedff 0,transparent 48%),#edf5ff!important;color:var(--portal-ink)}
html:not(.dark) body.fi-body .fi-topbar-ctn{background:#e6f0fd}
html body.fi-body .fi-topbar{min-height:70px;border-radius:20px!important;box-shadow:0 8px 28px rgba(39,84,154,.08)!important}
html:not(.dark) body.fi-body .fi-topbar{background:linear-gradient(115deg,#f8fbff,#edf5ff)!important}
.fi-topbar .fi-logo{max-width:210px;object-fit:contain}
.fi-global-search{width:clamp(200px,36vw,640px)}.fi-global-search .fi-input-wrp{border-radius:16px!important}
.portal-header-tools{display:flex;align-items:center;gap:16px}.portal-theme-toggle{width:40px;height:40px;border:1px solid rgba(255,255,255,.75);border-radius:50%;display:grid;place-items:center;background:rgba(229,240,255,.7);color:#144491;cursor:pointer}.portal-theme-toggle svg{width:23px;height:23px}.portal-theme-toggle:focus-visible{outline:3px solid #019bbe;outline-offset:3px}
.portal-user-identity{display:flex;flex-direction:column;gap:3px;max-width:180px}.portal-user-identity strong{font-size:13px;color:var(--portal-navy)}.portal-user-identity span{font-size:11px;color:var(--portal-muted)}
html body.fi-body .fi-sidebar{border-radius:22px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 12px 30px rgba(0,27,126,.17)!important}
html:not(.dark) body.fi-body .fi-sidebar{background:linear-gradient(155deg,#001b7e,#073b83 60%,#008aab)!important}
.fi-sidebar .fi-sidebar-item-btn{min-height:42px}.fi-sidebar .fi-sidebar-item-label{font-size:13px}.fi-sidebar .alfa-nav-group>.fi-sidebar-group-btn{border-radius:12px;min-height:45px}.fi-sidebar .fi-sidebar-group-items{padding-top:7px;padding-bottom:4px}
html body.fi-body .fi-ta-ctn,html body.fi-body .fi-section,html body.fi-body .expiry-card-section{border-radius:20px!important}
html:not(.dark) body.fi-body .fi-ta-header-cell{background:rgba(220,235,252,.55);color:#365580}
html:not(.dark) body.fi-body .fi-ta-row:hover{background:rgba(217,239,255,.38)}
html body.fi-body .alfa-metric{border-radius:16px!important}
.portal-dashboard{display:grid;gap:20px;min-width:0}
.portal-welcome{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 0 2px;border:0}
.portal-welcome .portal-eyebrow{margin:0 0 5px;font-size:11px;font-weight:800;letter-spacing:.22em;color:#5276a8}
.portal-welcome h1{font-size:32px;line-height:1.15;font-weight:800;letter-spacing:-.035em;color:var(--portal-navy);margin:0}
.portal-welcome p:not(.portal-eyebrow){font-size:13px;color:var(--portal-muted);margin:5px 0 0}
.portal-welcome-name{display:block;margin-top:7px;font-size:12px;color:#5276a8}
.portal-date{display:flex;align-items:center;gap:9px;font-size:12px;color:var(--portal-muted);white-space:nowrap;align-self:flex-start;padding-top:6px}.portal-date svg{width:19px;height:19px}
.portal-attention h2{font-size:12px;font-weight:650;color:#5276a8;margin:0 0 10px}
.dashboard-attention-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
html body.fi-body .portal-attention .dashboard-attention-card[data-tone]{position:relative;isolation:isolate;overflow:hidden;min-height:124px;display:flex;gap:16px;padding:18px;border:1px solid #fff;border-left:2px solid rgb(var(--attention-rgb));border-radius:16px;background:linear-gradient(115deg,rgba(255,255,255,.95),rgba(237,245,255,.85))!important;box-shadow:0 7px 22px rgba(55,103,170,.08);text-decoration:none;transition:transform 160ms ease,box-shadow 160ms ease;will-change:auto}
html body.fi-body .portal-attention .attention-status-icon{height:52px;width:52px;flex-basis:52px;border:0;background:rgba(var(--attention-rgb),.13);color:rgb(var(--attention-rgb))!important;box-shadow:none}
.portal-attention .attention-status-icon svg{width:27px;height:27px}
html body.fi-body .portal-attention .attention-status-copy{gap:8px;z-index:1}.portal-attention .attention-status-copy>span:first-child{font-size:12px!important;line-height:1.3}
html body.fi-body .portal-attention .dashboard-attention-card strong{font-size:30px!important;letter-spacing:-.025em}
html body.fi-body .portal-attention .attention-status-copy>span:last-child{font-size:11px!important;color:#0878e6!important}
.portal-attention-watermark{position:absolute;right:-6px;bottom:-13px;z-index:-1;color:rgba(var(--attention-rgb),.08);transform:rotate(-12deg)}.portal-attention-watermark svg{width:94px;height:94px}
.portal-section-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:20px;align-items:stretch}
html:not(.dark) body.fi-body .portal-dashboard-panel{background:linear-gradient(125deg,rgba(255,255,255,.85),rgba(231,241,255,.82))!important;border:1px solid var(--portal-line)!important;outline:0;box-shadow:inset 0 1px 0 white,0 9px 28px rgba(56,100,166,.08)!important;border-radius:20px!important}
.portal-dashboard-panel{padding:20px;min-width:0}.dashboard-section-header{display:flex;align-items:center;gap:12px;margin-bottom:20px;min-width:0}.portal-panel-icon{display:grid;place-items:center;flex:0 0 32px;color:var(--portal-navy)}.portal-panel-icon svg{width:28px;height:28px}
html body.fi-body .dashboard-section-header h2{font-size:16px;font-weight:750;letter-spacing:-.025em;color:var(--portal-navy);margin:0}
.dashboard-section-header p{font-size:11px;line-height:1.4;color:var(--portal-muted);margin:4px 0 0}.dashboard-section-header>a{margin-left:auto;white-space:nowrap;font-size:11px;color:#0079e9;text-decoration:none;font-weight:600}
.portal-overview{min-width:0}.portal-overview--expiry,.portal-overview--jobs{display:grid;grid-template-columns:minmax(145px,.85fr) minmax(0,2fr);gap:18px;align-items:center}
.portal-donut-region{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:10px 12px 10px 0;border-right:1px solid rgba(169,196,230,.3)}
.portal-donut{position:relative;width:clamp(145px,12vw,220px);aspect-ratio:1;border-radius:50%;background:var(--donut-background);box-shadow:inset 0 1px 4px rgba(255,255,255,.9),0 12px 24px rgba(1,155,190,.12);flex-shrink:0}
.portal-donut:before{content:"";position:absolute;inset:32px;border-radius:50%;background:linear-gradient(135deg,#f9fcff,#e7f1ff);box-shadow:0 0 0 1px rgba(255,255,255,.8),inset 0 2px 5px rgba(24,74,138,.07)}
.portal-donut-centre{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center}.portal-donut-centre strong{font-size:31px;font-weight:800;letter-spacing:-.04em;color:var(--portal-navy)}.portal-donut-centre>span:not(.portal-donut-icon){font-size:11px;color:var(--portal-muted)}.portal-donut-icon{color:#698cbc}.portal-donut-icon svg{width:18px;height:18px}.portal-donut-note{font-size:10px;color:var(--portal-muted);text-align:center}
.portal-status-list{display:grid;gap:9px;min-width:0}.portal-status-row{position:relative;display:grid;grid-template-columns:24px minmax(0,1fr) 30px 33px minmax(45px,.65fr) 14px;align-items:center;gap:9px;min-height:48px;padding:9px 10px;background:rgba(255,255,255,.58);border:1px solid rgba(255,255,255,.8);border-radius:13px;text-decoration:none;color:var(--portal-ink);cursor:pointer;transition:background 140ms ease,box-shadow 140ms ease;min-width:0}
.portal-status-row:hover,.portal-status-row:focus-visible{background:rgba(255,255,255,.95);box-shadow:0 0 0 2px rgba(var(--row-rgb),.4);outline:none}
.portal-row-icon{width:25px;height:25px;display:grid;place-items:center;color:rgb(var(--row-rgb));background:rgba(var(--row-rgb),.1);border-radius:50%}.portal-row-icon svg{width:17px;height:17px}
.portal-row-label{font-size:11px;font-weight:600;line-height:1.35}.portal-row-value{font-size:12px;font-weight:800;text-align:right;color:var(--portal-navy)}.portal-row-share{font-size:10px;text-align:right;color:var(--portal-muted)}
.portal-progress{height:8px;border-radius:99px;background:rgba(188,208,233,.5);overflow:hidden}.portal-progress>span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,rgba(var(--row-rgb),.65),rgb(var(--row-rgb)))}.portal-row-arrow{color:#688ebc}.portal-row-arrow svg{width:14px;height:14px}
.portal-mini-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.portal-mini-grid .portal-status-row{grid-template-columns:35px minmax(0,1fr) 12px;gap:6px 10px;padding:16px;min-height:108px}.portal-mini-grid .portal-row-icon{grid-row:1/4;width:35px;height:35px}.portal-mini-grid .portal-row-icon svg{width:21px;height:21px}.portal-mini-grid .portal-row-label{grid-column:2;grid-row:1}.portal-mini-grid .portal-row-value{grid-column:2;grid-row:2;text-align:left;font-size:25px}.portal-mini-grid .portal-row-description{grid-column:2/4;grid-row:3;font-size:10px;color:rgb(var(--row-rgb));line-height:1.4}.portal-mini-grid .portal-row-arrow{grid-column:3;grid-row:1/4}
.portal-overview--followups .portal-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
html.dark .portal-dashboard-panel{background:linear-gradient(120deg,#142b49,#10213b)!important}html.dark .portal-welcome h1,html.dark .dashboard-section-header h2,html.dark .portal-row-value,html.dark .portal-donut-centre strong,html.dark .portal-user-identity strong{color:#e3f3ff}html.dark .portal-status-row{background:rgba(31,61,95,.65);border-color:rgba(146,193,228,.12);color:#d9eafa}html.dark .portal-donut:before{background:#142b49}html.dark body.fi-body .portal-attention .dashboard-attention-card[data-tone]{background:linear-gradient(120deg,#183354,#10213b)!important}html.dark .portal-theme-toggle{background:#153456;color:#c9eaff}
body.alfa-standalone:not(.alfa-client-login):not(.alfa-admin-login){background:radial-gradient(ellipse at 15% 5%,#d7e8ff,transparent 50%),#edf5ff}
@media(min-width:1024px){html body.fi-body .fi-sidebar{top:94px!important;height:calc(100dvh - 108px)!important}.fi-main{padding-top:20px!important}}
@media(max-width:1300px){.portal-section-grid{grid-template-columns:1fr 1fr}.portal-overview--expiry,.portal-overview--jobs{grid-template-columns:1fr}.portal-donut-region{border-right:0;padding:0}.portal-donut{width:155px}.portal-status-row{min-height:44px}.dashboard-attention-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1000px){.portal-user-identity{display:none}.portal-section-grid{grid-template-columns:1fr}.portal-overview--expiry,.portal-overview--jobs{grid-template-columns:180px minmax(0,1fr)}.portal-donut-region{border-right:1px solid rgba(169,196,230,.3)}.fi-global-search{width:min(38vw,420px)}}
@media(max-width:640px){.portal-welcome{align-items:flex-start;flex-direction:column;gap:8px}.portal-welcome h1{font-size:27px}.portal-date{padding:0}.dashboard-attention-grid{grid-template-columns:1fr}.portal-dashboard-panel{padding:16px}.portal-overview--expiry,.portal-overview--jobs{grid-template-columns:1fr}.portal-donut-region{border:0}.portal-donut{width:165px}.portal-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-status-row{grid-template-columns:24px minmax(0,1fr) 28px 30px 45px 12px;gap:6px}.portal-row-label{font-size:10px}.portal-section-grid{gap:16px}.portal-header-tools{gap:5px}.portal-theme-toggle{width:32px;height:32px}.fi-global-search{width:auto}.portal-dashboard{gap:16px}.dashboard-section-header{gap:8px}.dashboard-section-header p{max-width:215px}.portal-panel-icon{flex-basis:24px}.portal-panel-icon svg{width:24px;height:24px}}
@media(prefers-reduced-motion:reduce){.portal-status-row,.portal-attention .dashboard-attention-card{transition:none!important;transform:none!important}}

@media(min-width:1024px){.fi-topbar-start{width:calc(var(--sidebar-width) - 28px);min-width:220px;flex-shrink:0}.fi-topbar-end{flex:1;margin-inline-start:0!important;min-width:0}.fi-topbar-end .fi-global-search{margin-inline-end:auto}}
.portal-row-label{font-size:12px}.portal-row-value{font-size:13px}.portal-row-share{font-size:11px}.portal-mini-grid .portal-row-description{font-size:11px}
@media(max-width:640px){.portal-row-label{font-size:11px}.portal-mini-grid .portal-row-description{font-size:10px}}

@media(min-width:1024px){.fi-topbar-end>.fi-global-search-ctn{margin-inline-end:auto}.fi-main{padding-top:4px!important}}
.portal-welcome-name{display:none}.portal-dashboard{gap:18px}.portal-mini-grid .portal-status-row{min-height:98px}
html body.fi-body .portal-attention .portal-attention-watermark{color:rgba(var(--attention-rgb),.09)!important}
html.dark body.fi-body .portal-dashboard .dashboard-section-header h2,html.dark body.fi-body .portal-panel-icon,html.dark body.fi-body .portal-attention .dashboard-attention-card strong{color:#e3f3ff!important}
html.dark body.fi-body .portal-attention .attention-status-copy>span:first-child{color:#c2d7f0!important}
html.dark body.fi-body .portal-attention .attention-status-copy>span:last-child{color:#60c8ff!important}
html.dark body.fi-body .portal-dashboard-panel{background:linear-gradient(125deg,#142b49,#10213b)!important}
html.dark body.fi-body .portal-dashboard .dashboard-section-header p,html.dark body.fi-body .portal-donut-note,html.dark body.fi-body .portal-donut-centre>span:not(.portal-donut-icon),html.dark body.fi-body .portal-row-share{color:#a9bfdc}

/* Shared interactive card treatment across dashboard and summary pages. */
html body.fi-body .portal-status-row{--hover-rgb:var(--row-rgb)}
html body.fi-body .dashboard-attention-card{--hover-rgb:var(--attention-rgb)}
html body.fi-body .alfa-metric{--hover-rgb:var(--metric-rgb)}
html body.fi-body :is(.portal-status-row,.dashboard-attention-card,.alfa-metric){transition:transform 200ms ease,box-shadow 200ms ease!important}
html body.fi-body :is(.portal-status-row,.dashboard-attention-card,.alfa-metric):is(:hover,:focus-visible){transform:translateY(-3px) scale(1.01)!important;box-shadow:0 0 0 2px rgba(var(--hover-rgb),.25),0 0 20px rgba(var(--hover-rgb),.4),0 9px 20px rgba(var(--hover-rgb),.22)!important;z-index:1}
html body.fi-body :is(.portal-status-row,.dashboard-attention-card,.alfa-metric):active{transform:translateY(-1px) scale(1)!important}
html body.fi-body .portal-row-arrow{transition:transform 200ms ease}
html body.fi-body .portal-status-row:hover .portal-row-arrow{transform:translateX(3px)}
@media(prefers-reduced-motion:reduce){html body.fi-body :is(.portal-status-row,.dashboard-attention-card,.alfa-metric),html body.fi-body :is(.portal-status-row,.dashboard-attention-card,.alfa-metric):is(:hover,:focus-visible,:active),html body.fi-body .portal-status-row:hover .portal-row-arrow{transition:none!important;transform:none!important}}

/* Pastel expiry list, with clear risk badges and compact counts. */
html body.fi-body .portal-overview--expiry .portal-status-row{grid-template-columns:30px minmax(0,1fr) auto 28px;gap:10px;min-height:50px;padding:9px 12px;background:linear-gradient(110deg,rgba(var(--row-rgb),.15),rgba(var(--row-rgb),.24));border:1px solid rgba(255,255,255,.9);border-radius:14px;box-shadow:inset 0 1px 2px rgba(255,255,255,.85),0 4px 10px rgba(35,70,120,.05);color:#172d54}
html body.fi-body .portal-overview--expiry .portal-status-row:hover,
html body.fi-body .portal-overview--expiry .portal-status-row:focus-visible{background:linear-gradient(110deg,rgba(var(--row-rgb),.2),rgba(var(--row-rgb),.3))}
html body.fi-body .portal-overview--expiry .portal-row-icon{width:28px;height:28px;border-radius:9px;background:rgb(var(--row-rgb));color:#fff;box-shadow:0 2px 5px rgba(var(--row-rgb),.22)}
html body.fi-body .portal-overview--expiry .portal-row-label{font-weight:650}
html body.fi-body .portal-overview--expiry .portal-row-value{font-size:18px;font-weight:800;color:#142d55;min-width:42px}
html body.fi-body .portal-overview--expiry .portal-row-share,
html body.fi-body .portal-overview--expiry .portal-progress{display:none}
html body.fi-body .portal-overview--expiry .portal-row-arrow{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,.4);color:rgb(var(--row-rgb))}
html body.fi-body .portal-overview--expiry .portal-row-arrow svg{width:18px;height:18px}
html.dark body.fi-body .portal-overview--expiry .portal-status-row{background:linear-gradient(110deg,rgba(var(--row-rgb),.18),rgba(var(--row-rgb),.28));border-color:rgba(255,255,255,.16);color:#edf5ff}
html.dark body.fi-body .portal-overview--expiry .portal-row-value{color:#edf5ff}
html.dark body.fi-body .portal-overview--expiry .portal-row-arrow{background:rgba(255,255,255,.12);color:#fff}

/* Reference-style follow-up tiles: count first, coloured label and icon. */
html body.fi-body .portal-overview--followups .portal-mini-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
html body.fi-body .portal-overview--followups .portal-status-row{grid-template-columns:36px minmax(0,1fr) 12px;grid-template-rows:auto auto auto;gap:2px 10px;min-height:96px;padding:14px 12px;background:linear-gradient(120deg,rgba(255,255,255,.85),rgba(var(--row-rgb),.07));border:1px solid rgba(255,255,255,.85);border-radius:16px}
html body.fi-body .portal-overview--followups .portal-row-icon{grid-row:1/4;width:36px;height:36px;background:rgba(var(--row-rgb),.13);color:rgb(var(--row-rgb))}
html body.fi-body .portal-overview--followups .portal-row-icon svg{width:22px;height:22px}
html body.fi-body .portal-overview--followups .portal-row-value{grid-row:1;font-size:22px;line-height:1.15}
html body.fi-body .portal-overview--followups .portal-row-label{grid-row:2;font-size:11px;color:rgb(var(--row-rgb))}
html body.fi-body .portal-overview--followups .portal-row-description{grid-row:3;font-size:10px}
html.dark body.fi-body .portal-overview--followups .portal-status-row{background:linear-gradient(120deg,#1b3554,rgba(var(--row-rgb),.14));border-color:rgba(255,255,255,.12)}
@media(max-width:1450px){html body.fi-body .portal-overview--followups .portal-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){html body.fi-body .portal-overview--followups .portal-mini-grid{grid-template-columns:1fr}}

/* Sales pipeline tiles share the compact reference treatment. */
html body.fi-body .portal-overview--leads .portal-status-row{grid-template-columns:36px minmax(0,1fr) 12px;grid-template-rows:auto auto auto;gap:2px 10px;min-height:96px;padding:14px 12px;background:linear-gradient(120deg,rgba(255,255,255,.85),rgba(var(--row-rgb),.07));border:1px solid rgba(255,255,255,.85);border-radius:16px}
html body.fi-body .portal-overview--leads .portal-row-icon{grid-row:1/4;width:36px;height:36px;background:rgba(var(--row-rgb),.13);color:rgb(var(--row-rgb))}
html body.fi-body .portal-overview--leads .portal-row-icon svg{width:22px;height:22px}
html body.fi-body .portal-overview--leads .portal-row-value{grid-row:1;font-size:22px;line-height:1.15}
html body.fi-body .portal-overview--leads .portal-row-label{grid-row:2;font-size:11px;color:rgb(var(--row-rgb))}
html body.fi-body .portal-overview--leads .portal-row-description{grid-row:3;font-size:10px}
html.dark body.fi-body .portal-overview--leads .portal-status-row{background:linear-gradient(120deg,#1b3554,rgba(var(--row-rgb),.14));border-color:rgba(255,255,255,.12)}
@media(max-width:1450px){html body.fi-body .portal-overview--leads .portal-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){html body.fi-body .portal-overview--leads .portal-mini-grid{grid-template-columns:1fr}}

/* Attention cards: glass tint, icon badge, arrow and quiet decorative wave. */
.portal-attention-heading{display:flex;align-items:center;gap:14px;margin-bottom:12px}
.portal-attention-heading h2{position:relative;padding-left:14px;margin:0!important}
.portal-attention-heading h2:before{content:"";position:absolute;left:0;top:2px;bottom:2px;width:4px;border-radius:4px;background:linear-gradient(#29c8ff,#1762ff)}
.portal-attention-heading>span{font-size:11px;color:var(--portal-muted)}
html body.fi-body .portal-attention .dashboard-attention-card[data-tone]{min-height:118px;padding:16px 44px 16px 16px;background:linear-gradient(125deg,rgba(255,255,255,.88),rgba(var(--attention-rgb),.12))!important;border:1px solid rgba(255,255,255,.95)!important;border-left:2px solid rgb(var(--attention-rgb))!important;border-radius:14px!important;box-shadow:inset 0 1px 2px #fff,0 6px 18px rgba(35,70,120,.07)!important;isolation:isolate;overflow:hidden}
html body.fi-body .portal-attention .attention-status-icon{width:46px;height:46px;min-width:46px;border-radius:13px;background:rgba(var(--attention-rgb),.14);color:rgb(var(--attention-rgb));box-shadow:inset 0 1px 1px rgba(255,255,255,.9)}
html body.fi-body .portal-attention .attention-status-icon svg{width:27px;height:27px}
html body.fi-body .portal-attention .attention-status-copy>span:last-child{color:rgb(var(--attention-rgb))!important}
.portal-attention-arrow{position:absolute;right:14px;top:calc(50% - 13px);width:26px;height:26px;display:grid;place-items:center;border-radius:50%;background:rgba(var(--attention-rgb),.12);color:rgb(var(--attention-rgb));z-index:1;transition:transform 200ms ease}
.portal-attention-arrow svg{width:16px;height:16px}
.dashboard-attention-card:hover .portal-attention-arrow{transform:translateX(3px)}
html body.fi-body .portal-attention .portal-attention-watermark{display:none}
.portal-attention .dashboard-attention-card:after{content:"";position:absolute;right:-10px;bottom:-45px;width:160px;height:70px;border-radius:50%;transform:rotate(-15deg);background:linear-gradient(100deg,rgba(var(--attention-rgb),.02),rgba(var(--attention-rgb),.19));z-index:-1;pointer-events:none}
html.dark body.fi-body .portal-attention .dashboard-attention-card[data-tone]{background:linear-gradient(125deg,#19324e,rgba(var(--attention-rgb),.2))!important;border-color:rgba(255,255,255,.18)!important;border-left-color:rgb(var(--attention-rgb))!important;box-shadow:inset 0 1px 1px rgba(255,255,255,.12)!important}
@media(max-width:640px){.portal-attention-heading{align-items:flex-start;flex-direction:column;gap:5px}.portal-attention-heading>span{padding-left:14px}}
@media(prefers-reduced-motion:reduce){.dashboard-attention-card:hover .portal-attention-arrow{transform:none;transition:none}}

/* Expiry dashboard uses two-column risk tiles and a full-width normal tile. */


.portal-summary-note{font-size:11px;color:var(--portal-muted);margin:0 0 12px;line-height:1.5}
.portal-quick-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:-4px}.portal-quick-actions>span{font-size:12px;font-weight:650;color:var(--portal-muted);margin-right:4px}.portal-quick-actions a{display:inline-flex;align-items:center;gap:7px;padding:9px 13px;border:1px solid rgba(155,186,225,.45);border-radius:10px;background:rgba(255,255,255,.7);color:#092975;font-size:12px;font-weight:600;text-decoration:none;transition:background 150ms ease}.portal-quick-actions a svg{width:17px;height:17px}.portal-quick-actions a:hover{background:#fff}.portal-quick-actions a:focus-visible,.portal-empty-filters summary:focus-visible{outline:2px solid #118aa6;outline-offset:3px}
.portal-empty-state{display:flex;align-items:center;gap:12px;padding:22px 16px;border-radius:14px;background:rgba(1,155,190,.06)}.portal-empty-state>svg{width:30px;height:30px;color:#118aa6}.portal-empty-state strong{font-size:13px}.portal-empty-state p{font-size:11px;color:var(--portal-muted);margin-top:4px}.portal-empty-filters summary{font-size:12px;color:#0878bb;cursor:pointer;padding:12px 0}.portal-empty-filters .portal-mini-grid{margin-top:4px}
html.dark .portal-quick-actions a{background:#18334e;color:#e3f3ff}html.dark .portal-empty-state{color:#e3f3ff}
.fi-sidebar-item.fi-active>.fi-sidebar-item-btn{box-shadow:inset 3px 0 0 #51e0ed}

/* Quality pass: shared surface, readable status text and explicit keyboard focus. */
:root{--portal-muted:#4c6384;--portal-card-radius:16px;--portal-panel-radius:20px;--portal-card-gap:12px;--portal-focus:#005c99}
html.dark{--portal-muted:#b6c9e2;--portal-focus:#72ddff}
.portal-status-row{--status-text:color-mix(in srgb,rgb(var(--row-rgb)) 45%,#101b32)}
.dashboard-attention-card{--attention-text:color-mix(in srgb,rgb(var(--attention-rgb)) 45%,#101b32)}
html body.fi-body .portal-overview :is(.portal-row-description,.portal-expiry-description),
html body.fi-body .portal-overview:is(.portal-overview--expiry,.portal-overview--followups,.portal-overview--leads) .portal-row-label{color:var(--status-text)}
html body.fi-body .portal-attention .attention-status-copy>span:last-child{color:var(--attention-text)!important}
html body.fi-body .portal-attention .attention-status-copy>span:first-child{color:var(--portal-ink)!important}
html body.fi-body .dashboard-section-header>a,.portal-empty-filters summary{color:#075d9b}
html body.fi-body .portal-status-row{border-radius:var(--portal-card-radius)}
html body.fi-body .portal-dashboard-panel{border-radius:var(--portal-panel-radius)!important}
html body.fi-body .portal-attention .dashboard-attention-card[data-tone]{border-radius:var(--portal-card-radius)!important}
html body.fi-body :is(.portal-status-row,.dashboard-attention-card,.alfa-metric):focus-visible{outline:3px solid var(--portal-focus)!important;outline-offset:3px!important}
.portal-dashboard :is(a,button,summary):focus-visible,.fi-sidebar :is(a,button):focus-visible{outline:3px solid var(--portal-focus)!important;outline-offset:3px}
html.dark .portal-status-row{--status-text:color-mix(in srgb,rgb(var(--row-rgb)) 30%,#fff)}
html.dark .dashboard-attention-card{--attention-text:color-mix(in srgb,rgb(var(--attention-rgb)) 30%,#fff)}
html.dark body.fi-body .portal-attention .attention-status-copy>span:first-child{color:#e3f3ff!important}
html.dark body.fi-body .dashboard-section-header>a,html.dark .portal-empty-filters summary{color:#82d7ff}
html.dark body.fi-body .portal-summary-note,html.dark .portal-date,html.dark .portal-user-identity span{color:var(--portal-muted)}
/* No continuous animations or layer promotion; touch devices keep cards stable. */
@media(hover:none),(prefers-reduced-motion:reduce){html body.fi-body :is(.portal-status-row,.dashboard-attention-card,.alfa-metric):is(:hover,:focus-visible,:active){transform:none!important}html body.fi-body :is(.portal-row-arrow,.portal-attention-arrow){transform:none!important;transition:none!important}}

/* Shared portal-wide interactive card palette and motion. */
.alfa-metric{--card-accent:rgb(var(--metric-rgb))}.expiry-metric{--card-accent:rgb(var(--expiry-rgb))}.renewal-status-card{--card-accent:var(--renewal-color)}
.client-risk-expired{--card-accent:#dc2626}.client-risk-critical{--card-accent:#de6625}.client-risk-high{--card-accent:#ad7109}.client-risk-medium{--card-accent:#2869cf}.client-risk-normal{--card-accent:#16a34a}
:is(html body.fi-body,body.alfa-standalone) :is(.alfa-metric,.expiry-metric,.renewal-status-card,.client-expiry-card){background:linear-gradient(120deg,color-mix(in srgb,var(--card-accent) 9%,#fff),color-mix(in srgb,var(--card-accent) 19%,#edf5ff))!important;border:1px solid rgba(255,255,255,.9)!important;border-inline-start:3px solid var(--card-accent)!important;border-radius:var(--portal-card-radius)!important;box-shadow:inset 0 1px 1px rgba(255,255,255,.8),0 5px 16px rgba(20,55,100,.07)!important;color:#112451!important;transition:transform 200ms ease,box-shadow 200ms ease!important;position:relative}
:is(html body.fi-body,body.alfa-standalone) :is(.alfa-metric-value,.expiry-metric-value,.renewal-status-card strong,.client-expiry-card strong){color:#112451!important}
:is(html body.fi-body,body.alfa-standalone) :is(.alfa-metric-label,.alfa-metric-description,.expiry-metric-label,.expiry-metric-description,.renewal-status-card>span,.renewal-status-card small,.client-expiry-card>span,.client-expiry-card small){color:color-mix(in srgb,var(--card-accent) 40%,#101b32)!important;opacity:1!important}
html body.fi-body .alfa-metric-symbol{color:var(--card-accent)!important;background:color-mix(in srgb,var(--card-accent) 13%,transparent)!important}
:is(html body.fi-body,body.alfa-standalone) :is(.alfa-metric,.expiry-metric,.renewal-status-card,.client-expiry-card):is(:hover,:focus-visible){transform:translateY(-3px) scale(1.01)!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--card-accent) 25%,transparent),0 0 20px color-mix(in srgb,var(--card-accent) 35%,transparent),0 9px 20px color-mix(in srgb,var(--card-accent) 20%,transparent)!important;z-index:1}
:is(html body.fi-body,body.alfa-standalone) :is(.alfa-metric,.expiry-metric,.renewal-status-card,.client-expiry-card):is([aria-pressed="true"],[aria-current="true"]){outline:2px solid var(--card-accent);outline-offset:2px}
:is(html body.fi-body,body.alfa-standalone) :is(.alfa-metric,.expiry-metric,.renewal-status-card,.client-expiry-card):focus-visible{outline:3px solid var(--portal-focus)!important;outline-offset:3px!important}
html.dark body.fi-body :is(.alfa-metric,.expiry-metric,.renewal-status-card){background:linear-gradient(120deg,#18304e,color-mix(in srgb,var(--card-accent) 18%,#13233d))!important;border-color:rgba(255,255,255,.16)!important;border-inline-start-color:var(--card-accent)!important;color:#e3f3ff!important}
html.dark body.fi-body :is(.alfa-metric-value,.expiry-metric-value,.renewal-status-card strong){color:#e3f3ff!important}
html.dark body.fi-body :is(.alfa-metric-label,.alfa-metric-description,.expiry-metric-label,.expiry-metric-description,.renewal-status-card>span,.renewal-status-card small){color:color-mix(in srgb,var(--card-accent) 30%,#fff)!important}
html body.fi-body .fi-btn{transition:box-shadow 150ms ease,filter 150ms ease}
@media(hover:hover){html body.fi-body .fi-btn:not(:disabled):hover{box-shadow:0 0 12px rgba(1,155,190,.2);filter:brightness(1.03)}}
html body.fi-body .fi-btn:focus-visible,body.alfa-standalone :is(button,a,input,select):focus-visible{outline:3px solid var(--portal-focus)!important;outline-offset:3px}
@media(hover:none),(prefers-reduced-motion:reduce){:is(html body.fi-body,body.alfa-standalone) :is(.alfa-metric,.expiry-metric,.renewal-status-card,.client-expiry-card):is(:hover,:focus-visible,:active){transform:none!important;transition:none!important}}

html body.fi-body .alfa-metric-ring{background:conic-gradient(var(--card-accent) var(--metric-share),color-mix(in srgb,var(--card-accent) 18%,transparent) 0)!important;color:#112451!important}
html body.fi-body .alfa-metric-ring:before{background:#edf5ff!important}
html.dark body.fi-body .alfa-metric-ring{color:#e3f3ff!important}html.dark body.fi-body .alfa-metric-ring:before{background:#18304e!important}

/* Jobs list: breathing room around a consistent set of status cards. */
html body.fi-body .fi-wi-stats-overview:has(.alfa-metric-domain-jobs){padding:22px!important;border:1px solid rgba(255,255,255,.95);border-radius:20px;background:linear-gradient(125deg,rgba(255,255,255,.86),rgba(235,244,255,.78));box-shadow:inset 0 1px 1px #fff,0 8px 24px rgba(35,70,120,.07);overflow:visible}
html body.fi-body .fi-wi-stats-overview:has(.alfa-metric-domain-jobs) .fi-sc{gap:18px}
html body.fi-body .fi-resource-list-records-page .alfa-metric-domain-jobs{padding:24px!important;min-height:160px;gap:14px;border-inline-start-width:1px!important;box-shadow:inset 0 1px 1px rgba(255,255,255,.8),0 4px 12px rgba(20,55,100,.05)!important}
html body.fi-body .alfa-metric-domain-jobs .alfa-metric-symbol{display:flex!important;width:42px;height:42px;flex-basis:42px;border-radius:50%;border:0;box-shadow:none!important}
html body.fi-body .alfa-metric-domain-jobs .alfa-metric-copy{gap:7px;min-width:0}
html body.fi-body .alfa-metric-domain-jobs .alfa-metric-label{font-size:13px;font-weight:650}
html body.fi-body .alfa-metric-domain-jobs .alfa-metric-value{font-size:32px;line-height:1.15}
html body.fi-body .alfa-metric-domain-jobs .alfa-metric-description{font-size:12px;line-height:1.5}
html body.fi-body .alfa-metric-domain-jobs .alfa-metric-ring{width:52px;height:52px;flex-basis:52px;margin-left:auto}
html body.fi-body .fi-resource-list-records-page .alfa-metric-domain-jobs:is(:hover,:focus-visible){box-shadow:0 0 0 2px rgba(var(--metric-rgb),.25),0 0 20px rgba(var(--metric-rgb),.35),0 9px 20px rgba(var(--metric-rgb),.2)!important}
html.dark body.fi-body .fi-wi-stats-overview:has(.alfa-metric-domain-jobs){background:linear-gradient(125deg,#142b49,#10213b);border-color:rgba(255,255,255,.16);box-shadow:inset 0 1px 1px rgba(255,255,255,.12)}
@media(max-width:640px){html body.fi-body .fi-wi-stats-overview:has(.alfa-metric-domain-jobs){padding:16px!important}html body.fi-body .fi-resource-list-records-page .alfa-metric-domain-jobs{padding:20px!important;min-height:145px}}

/* Keep a single Jobs summary surface; the nested schema section is only a grid. */
html body.fi-body .fi-wi-stats-overview:has(.alfa-metric-domain-jobs) .fi-section{background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border-radius:0!important;padding:0!important}
html body.fi-body .fi-wi-stats-overview:has(.alfa-metric-domain-jobs) .fi-section-content{padding:0!important;background:transparent!important}

/* Leads summary shares the single, padded Jobs panel treatment. */
html body.fi-body .fi-wi-stats-overview:has(.alfa-metric-domain-leads){padding:22px!important;border:1px solid rgba(255,255,255,.95);border-radius:20px;background:linear-gradient(125deg,rgba(255,255,255,.86),rgba(235,244,255,.78));box-shadow:inset 0 1px 1px #fff,0 8px 24px rgba(35,70,120,.07);overflow:visible}
html body.fi-body .fi-wi-stats-overview:has(.alfa-metric-domain-leads) .fi-section{background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border-radius:0!important;padding:0!important}
html body.fi-body .fi-wi-stats-overview:has(.alfa-metric-domain-leads) .fi-section-content{padding:0!important;background:transparent!important}
html body.fi-body .fi-wi-stats-overview:has(.alfa-metric-domain-leads) .fi-sc{gap:18px}
html body.fi-body .fi-resource-list-records-page .alfa-metric-domain-leads{padding:24px!important;gap:14px;border-inline-start-width:1px!important}
html body.fi-body .alfa-metric-domain-leads .alfa-metric-symbol{display:flex!important;width:42px;height:42px;flex-basis:42px;border-radius:50%;border:0;box-shadow:none!important}
html body.fi-body .alfa-metric-domain-leads .alfa-metric-copy{gap:7px;min-width:0}
html.dark body.fi-body .fi-wi-stats-overview:has(.alfa-metric-domain-leads){background:linear-gradient(125deg,#142b49,#10213b);border-color:rgba(255,255,255,.16);box-shadow:inset 0 1px 1px rgba(255,255,255,.12)}
@media(max-width:640px){html body.fi-body .fi-wi-stats-overview:has(.alfa-metric-domain-leads){padding:16px!important}html body.fi-body .fi-resource-list-records-page .alfa-metric-domain-leads{padding:20px!important}}

/* Lead Follow-ups summary uses the same clean single-panel layout. */
html body.fi-body .fi-wi-stats-overview:has(.alfa-metric-domain-followups){padding:22px!important;border:1px solid rgba(255,255,255,.95);border-radius:20px;background:linear-gradient(125deg,rgba(255,255,255,.86),rgba(235,244,255,.78));box-shadow:inset 0 1px 1px #fff,0 8px 24px rgba(35,70,120,.07);overflow:visible}
html body.fi-body .fi-wi-stats-overview:has(.alfa-metric-domain-followups) .fi-section{background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border-radius:0!important;padding:0!important}
html body.fi-body .fi-wi-stats-overview:has(.alfa-metric-domain-followups) .fi-section-content{padding:0!important;background:transparent!important}
html body.fi-body .fi-wi-stats-overview:has(.alfa-metric-domain-followups) .fi-sc{gap:18px}
html body.fi-body .fi-resource-list-records-page .alfa-metric-domain-followups{padding:24px!important;gap:14px;border-inline-start-width:1px!important}
html body.fi-body .alfa-metric-domain-followups .alfa-metric-symbol{display:flex!important;width:42px;height:42px;flex-basis:42px;border-radius:50%;border:0;box-shadow:none!important}
html body.fi-body .alfa-metric-domain-followups .alfa-metric-copy{gap:7px;min-width:0}
html.dark body.fi-body .fi-wi-stats-overview:has(.alfa-metric-domain-followups){background:linear-gradient(125deg,#142b49,#10213b);border-color:rgba(255,255,255,.16);box-shadow:inset 0 1px 1px rgba(255,255,255,.12)}
@media(max-width:640px){html body.fi-body .fi-wi-stats-overview:has(.alfa-metric-domain-followups){padding:16px!important}html body.fi-body .fi-resource-list-records-page .alfa-metric-domain-followups{padding:20px!important}}

/* Company Documents: one clean summary surface and consistent icon cards. */
html body.fi-body .expiry-card-section:has(.expiry-metric){padding:22px!important;border:1px solid rgba(255,255,255,.95)!important;outline:0!important;border-radius:20px!important;background:linear-gradient(125deg,rgba(255,255,255,.86),rgba(235,244,255,.78))!important;box-shadow:inset 0 1px 1px #fff,0 8px 24px rgba(35,70,120,.07)!important}
html body.fi-body .expiry-card-section:has(.expiry-metric) h2{margin:0 0 18px;font-size:14px;font-weight:650}
html body.fi-body .expiry-card-section .expiry-metrics{gap:18px;background:transparent!important;border:0!important;box-shadow:none!important}
html body.fi-body .expiry-card-section .expiry-metric{display:grid;grid-template-columns:42px minmax(0,1fr);gap:7px 14px;align-content:center;text-align:left;padding:24px!important;min-height:150px;border-inline-start-width:1px!important}
.expiry-status-icon{grid-column:1;grid-row:1/4;width:42px;height:42px;display:grid;place-items:center;align-self:center;border-radius:50%;color:rgb(var(--expiry-rgb));background:rgba(var(--expiry-rgb),.13)}
.expiry-status-icon svg{width:23px;height:23px}
.expiry-metric :is(.expiry-metric-label,.expiry-metric-value,.expiry-metric-description){grid-column:2}
html.dark body.fi-body .expiry-card-section:has(.expiry-metric){background:linear-gradient(125deg,#142b49,#10213b)!important;border-color:rgba(255,255,255,.16)!important;box-shadow:inset 0 1px 1px rgba(255,255,255,.12)!important}
@media(max-width:640px){html body.fi-body .expiry-card-section:has(.expiry-metric){padding:16px!important}html body.fi-body .expiry-card-section .expiry-metric{padding:20px!important;min-height:140px}}

/* Match Company Documents risk tints to the Family Expiry cards. */
html body.fi-body .expiry-card-section .expiry-metric{--card-accent:var(--expiry-color);border-inline-start:2px solid var(--expiry-color)!important;background:linear-gradient(120deg,color-mix(in srgb,var(--expiry-color) 9%,#fff),color-mix(in srgb,var(--expiry-color) 19%,#edf5ff))!important}
html body.fi-body .expiry-card-section .expiry-status-icon{color:var(--expiry-color);background:color-mix(in srgb,var(--expiry-color) 13%,transparent)}
html.dark body.fi-body .expiry-card-section .expiry-metric{background:linear-gradient(120deg,#18304e,color-mix(in srgb,var(--expiry-color) 18%,#13233d))!important}

/* Tracking Overview is informational: retain neutral surfaces. */
html body.fi-body .expiry-card-section[aria-label="Tracking overview"] .expiry-metric{background:linear-gradient(145deg,#fff,#edf4fb)!important;border:1px solid #d5e2f2!important;border-inline-start:1px solid #d5e2f2!important;color:#112451!important}
html body.fi-body .expiry-card-section[aria-label="Tracking overview"] :is(.expiry-metric-label,.expiry-metric-description){color:#4c6384!important}
html body.fi-body .expiry-card-section[aria-label="Tracking overview"] .expiry-status-icon{color:#52739b;background:rgba(82,115,155,.09)}
html.dark body.fi-body .expiry-card-section[aria-label="Tracking overview"] .expiry-metric{background:linear-gradient(145deg,#1b314e,#13233d)!important;border-color:rgba(255,255,255,.16)!important}
html.dark body.fi-body .expiry-card-section[aria-label="Tracking overview"] :is(.expiry-metric-label,.expiry-metric-description){color:#b6c9e2!important}

.tracking-overview-disclosure>summary{width:fit-content;padding:10px 0;cursor:pointer;font-size:13px;font-weight:600;color:#075d9b}
.tracking-overview-disclosure>summary:focus-visible{outline:3px solid var(--portal-focus);outline-offset:3px;border-radius:4px}
.tracking-overview-disclosure[open]>summary{margin-bottom:10px}
html.dark .tracking-overview-disclosure>summary{color:#82d7ff}

/* Persistent selected-state feedback, independent of hover. */
.expiry-selected-badge{position:absolute;top:9px;right:10px;display:inline-flex;align-items:center;gap:4px;padding:3px 7px;border-radius:99px;background:var(--expiry-color);color:#fff;font-size:10px;font-weight:700;line-height:1.3;pointer-events:none}
.expiry-selected-badge svg{width:13px;height:13px}
html body.fi-body .expiry-card-section .expiry-metric[aria-pressed="true"]{outline:3px solid var(--expiry-color)!important;outline-offset:3px!important;box-shadow:0 0 0 6px rgba(var(--expiry-rgb),.12),0 8px 20px rgba(var(--expiry-rgb),.18)!important}
html body.fi-body .expiry-card-section .expiry-metric{padding-top:30px!important}

/* Every filtering summary card exposes a persistent, readable selected badge. */
:is(html body.fi-body,body.alfa-standalone) .portal-selected-badge{display:none!important;position:absolute;top:9px;right:10px;align-items:center;gap:4px;padding:3px 8px;border-radius:99px;background:color-mix(in srgb,var(--card-accent) 65%,#101b32)!important;color:#fff!important;font-size:10px!important;font-weight:700;line-height:1.4;white-space:nowrap;z-index:2;pointer-events:none}
:is(html body.fi-body,body.alfa-standalone) :is(.alfa-metric,.renewal-status-card,.client-expiry-card):is([aria-pressed="true"],[aria-current="true"])>.portal-selected-badge{display:inline-flex!important}
:is(html body.fi-body,body.alfa-standalone) :is(.alfa-metric,.renewal-status-card,.client-expiry-card):is([aria-pressed="true"],[aria-current="true"]){outline:3px solid var(--card-accent)!important;outline-offset:3px!important;box-shadow:0 0 0 6px color-mix(in srgb,var(--card-accent) 12%,transparent),0 8px 20px color-mix(in srgb,var(--card-accent) 18%,transparent)!important}
:is(html body.fi-body,body.alfa-standalone) :is(.alfa-metric,.renewal-status-card,.client-expiry-card){padding-top:32px!important}

/* Job selections use the same persistent treatment as Lead selections. */
html body.fi-body .fi-resource-list-records-page .alfa-metric:is([aria-pressed="true"],[aria-current="true"]){outline:3px solid var(--card-accent)!important;outline-offset:3px!important;box-shadow:0 0 0 6px color-mix(in srgb,var(--card-accent) 12%,transparent),0 8px 20px color-mix(in srgb,var(--card-accent) 18%,transparent)!important}

/* Selected Jobs match the neutral selected surface used by Leads. */
html body.fi-body .fi-resource-list-records-page .alfa-metric-domain-jobs[aria-pressed="true"]{background:linear-gradient(145deg,#fff,#edf4fb)!important}
html.dark body.fi-body .fi-resource-list-records-page .alfa-metric-domain-jobs[aria-pressed="true"]{background:linear-gradient(145deg,#1b314e,#13233d)!important}

/* Expiry Tracker selections share the neutral Jobs/Leads selected surface. */
html body.fi-body .expiry-card-section .expiry-metric[aria-pressed="true"],
html body.fi-body .renewal-dashboard-section .renewal-status-card[aria-pressed="true"]{background:linear-gradient(145deg,#fff,#edf4fb)!important}
html.dark body.fi-body .expiry-card-section .expiry-metric[aria-pressed="true"],
html.dark body.fi-body .renewal-dashboard-section .renewal-status-card[aria-pressed="true"]{background:linear-gradient(145deg,#1b314e,#13233d)!important}

/* Visit Visa and other renewal cards match Company Documents when selected. */
html body.fi-body .renewal-dashboard-section .renewal-status-card[aria-pressed="true"]{background:linear-gradient(145deg,#fff,#edf4fb)!important}
html.dark body.fi-body .renewal-dashboard-section .renewal-status-card[aria-pressed="true"]{background:linear-gradient(145deg,#1b314e,#13233d)!important}

/* Keep selected badge lettering white above status-label colour rules. */
html body.fi-body .renewal-status-card>.portal-selected-badge,
html.dark body.fi-body .renewal-status-card>.portal-selected-badge,
html body.fi-body .alfa-metric>.portal-selected-badge,
body.alfa-standalone .client-expiry-card>.portal-selected-badge{color:#fff!important;opacity:1!important}

.job-output-document{border:1px solid #64748b;border-radius:12px;padding:16px;display:grid;gap:12px}.job-output-document legend{font-size:15px;font-weight:700;color:#fff;padding:0 5px}.job-output-document label{display:grid;gap:6px;font-size:13px;color:#e2e8f0}.job-output-document label>span{display:inline;color:#fca5a5}.job-output-document input,.job-output-owner+label input{width:100%;background:#0f172a;color:#fff;border:1px solid #64748b;border-radius:8px;padding:10px}.job-output-owner{font-size:13px;color:#e2e8f0}

/* Distinct staff and client entrances, sharing the Alfa Data identity. */
html body.alfa-standalone.alfa-admin-login{background:radial-gradient(ellipse at 85% 15%,rgba(1,155,190,.28),transparent 54%),linear-gradient(135deg,#001250,#001b7e 62%,#075a83)!important}
html body.alfa-standalone.alfa-client-login{background:radial-gradient(ellipse at 15% 12%,rgba(255,255,255,.7),transparent 48%),linear-gradient(135deg,#e5efff,#c4e5f2 54%,#89cfdf)!important}
.alfa-login-identity{text-align:center;margin:22px 0 26px}.alfa-login-audience{display:inline-flex;align-items:center;gap:7px;padding:6px 12px;border:1px solid rgba(0,27,126,.12);border-radius:99px;background:rgba(0,27,126,.06);color:#092975;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.alfa-login-audience svg{width:16px;height:16px}
.alfa-login-identity h1{margin:15px 0 7px;font-size:25px;line-height:1.2;letter-spacing:-.035em;color:#112451}.alfa-login-identity h2{font-size:15px;font-weight:650;color:#36557a;margin:0 0 9px}.alfa-login-identity .alfa-subtitle{font-size:13px;line-height:1.6;margin:0;color:#4c6384}
body.alfa-client-login .alfa-login-audience{background:rgba(1,155,190,.1);color:#08627b;border-color:rgba(1,155,190,.18)}
body.alfa-client-login .alfa-auth-card{box-shadow:inset 0 1px 0 #fff,0 22px 60px rgba(20,68,110,.14)}
.alfa-login-identity~form button[type="submit"]{min-height:44px}
@media(max-width:480px){.alfa-login-identity{margin:18px 0 22px}.alfa-login-identity h1{font-size:24px}}

/* Temporary procedure validity uses the same restrained portal panels. */
.portal-temporary-expiries .portal-temporary-empty,
.portal-temporary-expiries .portal-temporary-card {padding:18px;margin-top:14px;border:1px solid rgba(9,41,117,.13);border-radius:16px;background:rgba(255,255,255,.65);color:#17355b;}
.portal-temporary-expiries .portal-temporary-strong {color:#092975;font-weight:600;}
.portal-temporary-expiries .portal-temporary-muted {color:#586e90;}
.dark .portal-temporary-expiries .portal-temporary-card,
.dark .portal-temporary-expiries .portal-temporary-empty {background:rgba(15,30,58,.7);border-color:rgba(148,180,224,.2);color:#dceaff;}
.dark .portal-temporary-expiries .portal-temporary-strong {color:#e8f1ff;}
.dark .portal-temporary-expiries .portal-temporary-muted {color:#aac1df;}

/* Operations: align temporary validity details with the Jobs overview. */
.portal-dashboard-temporary {min-width:0;display:flex;}
.portal-dashboard-temporary > .portal-temporary-expiries,
.portal-dashboard-temporary .fi-wi-widget {width:100%;height:100%;min-width:0;display:flex;flex-direction:column;}
.portal-dashboard-temporary .fi-section {height:100%;flex:1;display:flex;flex-direction:column;}
.portal-dashboard-temporary .fi-section-content-ctn {flex:1;min-height:0;}
.portal-dashboard-temporary .fi-section-content {max-height:300px;overflow-y:auto;}
.portal-dashboard-temporary .portal-temporary-card .md\:grid-cols-4 {grid-template-columns:repeat(2,minmax(0,1fr));}
@media(max-width:1000px){.portal-dashboard-temporary .fi-section-content {max-height:none;overflow:visible;}}

/* Keep account controls at the header edge, including accounts without search. */
.fi-topbar-end .portal-header-tools {margin-inline-start:auto;flex-shrink:0;}

/* Document validity: thick status donut and compact, actionable rows. */
html body.fi-body .portal-overview--expiry {display:grid;grid-template-columns:minmax(155px,.8fr) minmax(0,2fr);gap:18px;align-items:center;}
.portal-overview--expiry .portal-donut-region {padding:10px 18px 10px 0;border-right:1px solid rgba(169,196,230,.3);}
.portal-overview--expiry .portal-donut {width:clamp(155px,15vw,220px);max-width:100%;}
html body.fi-body .portal-overview--expiry .portal-status-list {display:grid;grid-template-columns:minmax(0,1fr);gap:10px;}
html body.fi-body .portal-overview--expiry .portal-status-row {grid-template-columns:28px minmax(0,1fr) auto 28px;grid-template-rows:auto;gap:10px;min-height:48px;padding:8px 10px;}
html body.fi-body .portal-overview--expiry .portal-row-label {font-size:12px;line-height:1.35;}
html body.fi-body .portal-overview--expiry .portal-row-value {text-align:right;font-size:19px;}
.portal-dashboard-panel {container-type:inline-size;}
@container(max-width:440px){html body.fi-body .portal-overview--expiry {grid-template-columns:1fr;}.portal-overview--expiry .portal-donut-region {border:0;padding:0;}.portal-overview--expiry .portal-donut {width:180px;}}
@media(max-width:640px){html body.fi-body .portal-overview--expiry {grid-template-columns:1fr;}.portal-overview--expiry .portal-donut-region {border:0;padding:0;}.portal-overview--expiry .portal-donut {width:180px;}}

/* Preserve the established expiry tiles; only the left donut is new. */
html body.fi-body .portal-overview--expiry .portal-status-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
html body.fi-body .portal-overview--expiry .portal-status-row{grid-template-columns:42px minmax(0,1fr) 28px;grid-template-rows:auto auto auto;gap:3px 12px;min-height:105px;padding:16px 12px}
html body.fi-body .portal-overview--expiry .portal-row-icon{grid-column:1;grid-row:1/4;width:42px;height:42px;border-radius:50%;background:rgba(var(--row-rgb),.1);color:rgb(var(--row-rgb));box-shadow:none}
html body.fi-body .portal-overview--expiry .portal-row-icon svg{width:24px;height:24px}
html body.fi-body .portal-overview--expiry .portal-row-label{grid-column:2;grid-row:1;font-size:11px;color:var(--status-text)}
html body.fi-body .portal-overview--expiry .portal-row-value{grid-column:2;grid-row:2;text-align:left;font-size:25px;line-height:1.1}
html body.fi-body .portal-overview--expiry .portal-row-arrow{grid-column:3;grid-row:1/4;border:1px solid rgba(255,255,255,.9);box-shadow:0 3px 7px rgba(var(--row-rgb),.1)}
.portal-expiry-description{grid-column:2;grid-row:3;font-size:10px;line-height:1.4;color:var(--status-text)}
html body.fi-body .portal-overview--expiry .portal-status-row:last-child{grid-column:1/-1;grid-template-columns:42px minmax(0,1fr) 66px}
html body.fi-body .portal-overview--expiry .portal-status-row:last-child .portal-row-arrow{display:none}
.portal-expiry-ring{grid-column:3;grid-row:1/4;width:60px;height:60px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(rgb(var(--row-rgb)) var(--expiry-share),rgba(var(--row-rgb),.16) 0);position:relative}
.portal-expiry-ring:before{content:"";position:absolute;inset:7px;border-radius:50%;background:#e4f5eb}
.portal-expiry-ring>span{position:relative;font-size:12px;font-weight:750;color:#153c29}
html.dark .portal-expiry-ring:before{background:#173b32}html.dark .portal-expiry-ring>span{color:#e7fff0}
@container(max-width:440px){html body.fi-body .portal-overview--expiry .portal-status-list{grid-template-columns:1fr}}
@media(max-width:520px){html body.fi-body .portal-overview--expiry .portal-status-list{grid-template-columns:1fr}html body.fi-body .portal-overview--expiry .portal-status-row{min-height:100px}}

/* Marketing's main workload: six generous lead cards with dashboard motion. */
html body.fi-body .portal-marketing-leads .portal-mini-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;}
html body.fi-body .portal-marketing-leads .portal-status-row{grid-template-columns:46px minmax(0,1fr) 54px;gap:4px 14px;min-height:132px;padding:20px 18px;background:linear-gradient(120deg,rgba(var(--row-rgb),.10),rgba(var(--row-rgb),.20));border-inline-start:2px solid rgb(var(--row-rgb));}
html body.fi-body .portal-marketing-leads .portal-row-icon{width:46px;height:46px;grid-row:1/4;}
html body.fi-body .portal-marketing-leads .portal-row-icon svg{width:27px;height:27px;}
html body.fi-body .portal-marketing-leads .portal-row-label{grid-row:1;font-size:13px;font-weight:650;}
html body.fi-body .portal-marketing-leads .portal-row-value{grid-row:2;font-size:30px;text-align:left;}
html body.fi-body .portal-marketing-leads .portal-row-description{grid-row:3;font-size:12px;}
html body.fi-body .portal-marketing-leads .portal-row-arrow{justify-self:end;}
.portal-lead-win-ring{display:none;}
.portal-marketing-leads .portal-lead-win-ring{grid-column:3;grid-row:1/4;width:52px;height:52px;display:grid;place-items:center;position:relative;border-radius:50%;background:conic-gradient(rgb(var(--row-rgb)) var(--won-share),rgba(var(--row-rgb),.18) 0);}
.portal-lead-win-ring:before{content:"";position:absolute;inset:6px;border-radius:50%;background:#e5f4ec;}
.portal-lead-win-ring>span{position:relative;font-size:11px;font-weight:750;color:#14532d;}
.portal-marketing-leads .portal-status-row:has(.portal-lead-win-ring) .portal-row-arrow{display:none;}
html.dark body.fi-body .portal-marketing-leads .portal-status-row{background:linear-gradient(120deg,#1b3554,rgba(var(--row-rgb),.20));}
html.dark .portal-lead-win-ring:before{background:#173b32;}html.dark .portal-lead-win-ring>span{color:#d9ffe8;}
@container(max-width:740px){html body.fi-body .portal-marketing-leads .portal-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@container(max-width:480px){html body.fi-body .portal-marketing-leads .portal-mini-grid{grid-template-columns:1fr;}}

/* Keep expiry chart labels inside the thick ring in half-width panels. */
.portal-overview--expiry .portal-donut-centre{inset:32px;gap:4px;}
.portal-overview--expiry .portal-donut-centre strong{font-size:28px;line-height:1.1;}
.portal-overview--expiry .portal-donut-centre>span:not(.portal-donut-icon){font-size:10px;line-height:1.3;}
.portal-overview--expiry .portal-donut-icon{display:flex;align-items:center;justify-content:center;height:16px;}
.portal-overview--expiry .portal-donut-icon svg{width:14px;height:14px;}

/* Marketing: lead work on the left, follow-ups within immediate reach. */
.portal-marketing-work-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr);gap:20px;align-items:stretch;min-width:0;}
.portal-marketing-work-grid>.portal-dashboard-panel{min-width:0;}
.portal-marketing-followups .portal-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
@media(max-width:1100px){.portal-marketing-work-grid{grid-template-columns:minmax(0,1fr);}}

html body.fi-body .portal-marketing-work-grid .portal-marketing-leads .portal-mini-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
html body.fi-body .portal-marketing-work-grid .portal-marketing-leads .portal-status-row{grid-template-columns:36px minmax(0,1fr) 44px;gap:4px 8px;padding:16px 10px;}
html body.fi-body .portal-marketing-work-grid .portal-marketing-leads .portal-row-icon{width:36px;height:36px;}
html body.fi-body .portal-marketing-work-grid .portal-marketing-leads .portal-row-icon svg{width:23px;height:23px;}
html body.fi-body .portal-marketing-work-grid .portal-marketing-leads .portal-row-label{font-size:12px;}
html body.fi-body .portal-marketing-work-grid .portal-marketing-leads .portal-row-description{font-size:11px;}
.portal-marketing-work-grid .portal-lead-win-ring{width:44px;height:44px;}
@container(max-width:600px){html body.fi-body .portal-marketing-work-grid .portal-marketing-leads .portal-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@container(max-width:400px){html body.fi-body .portal-marketing-work-grid .portal-marketing-leads .portal-mini-grid{grid-template-columns:1fr;}}

@media(max-width:480px){.portal-marketing-followups .portal-mini-grid{grid-template-columns:1fr!important;}}

/* Maintain clear icon contrast on the branded document-recipient action. */
html body.fi-body .portal-document-recipient-button .fi-icon,
html body.fi-body .portal-document-recipient-button svg{color:#fff!important;}

html body.fi-body .portal-job-assignment-button .fi-icon,html body.fi-body .portal-job-assignment-button svg{color:#fff!important;}

/* Client expiry cards share the dashboard status icons and hover treatment. */
body.alfa-standalone .client-expiry-card{display:grid!important;grid-template-columns:46px minmax(0,1fr) 28px;align-items:center;gap:14px!important;min-height:180px;padding:32px 20px 24px!important;text-decoration:none;}
body.alfa-standalone .client-expiry-icon{display:flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;background:color-mix(in srgb,var(--card-accent) 14%,transparent);color:var(--card-accent)!important;transition:box-shadow 200ms ease;}
body.alfa-standalone .client-expiry-icon svg{width:25px;height:25px;}
body.alfa-standalone .client-expiry-copy{display:flex;flex-direction:column;gap:10px;min-width:0;}
body.alfa-standalone .client-expiry-copy .client-expiry-label{font-size:13px;font-weight:600;line-height:1.4;color:color-mix(in srgb,var(--card-accent) 50%,#112451)!important;}
body.alfa-standalone .client-expiry-copy strong{font-size:36px;line-height:1.1;color:#112451!important;}
body.alfa-standalone .client-expiry-copy small{font-size:12px;line-height:1.4;color:color-mix(in srgb,var(--card-accent) 50%,#112451)!important;}
body.alfa-standalone .client-expiry-arrow{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border:1px solid #fff;border-radius:50%;background:#ffffff70;color:var(--card-accent)!important;transition:transform 200ms ease;}
body.alfa-standalone .client-expiry-arrow svg{width:16px;height:16px;}
body.alfa-standalone .client-expiry-card:is(:hover,:focus-visible) .client-expiry-icon{box-shadow:0 0 15px color-mix(in srgb,var(--card-accent) 30%,transparent);}
body.alfa-standalone .client-expiry-card:is(:hover,:focus-visible) .client-expiry-arrow{transform:translateX(2px);}
@media(max-width:640px){body.alfa-standalone .client-expiry-card{grid-template-columns:36px minmax(0,1fr);gap:10px!important;min-height:160px;padding:32px 16px 20px!important;}body.alfa-standalone .client-expiry-icon{width:36px;height:36px;}body.alfa-standalone .client-expiry-icon svg{width:21px;height:21px;}body.alfa-standalone .client-expiry-arrow{display:none;}body.alfa-standalone .client-expiry-copy strong{font-size:32px;}}
@media(prefers-reduced-motion:reduce),(hover:none){body.alfa-standalone .client-expiry-icon,body.alfa-standalone .client-expiry-arrow{transition:none!important;transform:none!important;}}

/* Client workspace: the same navy navigation and frosted dashboard layout. */
body.client-dashboard-page .alfa-customer-shell{max-width:none;width:auto;margin:0;padding:12px;}
body.client-dashboard-page .alfa-customer-header{position:relative;margin-bottom:14px;padding:14px 24px;border:1px solid #fff;border-radius:22px;background:#f7fbfff0;box-shadow:0 8px 28px #0929750b;}
.client-workspace{display:grid;grid-template-columns:240px minmax(0,1fr);gap:24px;align-items:start;}
.client-sidebar{position:sticky;top:16px;display:flex;flex-direction:column;min-height:calc(100vh - 120px);padding:20px 14px;border-radius:22px;background:linear-gradient(155deg,#071e77 30%,#064682 75%,#0089a5);box-shadow:0 12px 30px #09297526;color:#fff;}
.client-sidebar nav{display:flex;flex-direction:column;gap:16px;}
.client-sidebar nav a{display:flex;align-items:center;gap:12px;padding:14px 12px;border:1px solid #ffffff25;border-radius:10px;color:#fff;text-decoration:none;font-size:14px;font-weight:600;transition:background 180ms ease,box-shadow 180ms ease;}
.client-sidebar nav a.client-sidebar-active{background:#0798b9;border-color:#67d9ed;box-shadow:inset 0 1px 1px #ffffff70;}
.client-sidebar nav a:is(:hover,:focus-visible){background:#078fb0;box-shadow:0 0 16px #00c6e540;outline:2px solid #85e8fa;outline-offset:2px;}
.client-sidebar svg{width:22px;height:22px;flex-shrink:0;}
.client-sidebar-account{margin-top:auto;padding:30px 12px 10px;display:grid;gap:8px;font-size:13px;overflow-wrap:anywhere;}.client-sidebar-account span{color:#c5d9ed;font-size:12px;}
body.client-dashboard-page .alfa-customer-card{min-width:0;width:auto;max-width:none;margin:0;padding:28px;border-radius:22px;}
.client-expiry-panel{padding:20px;border:1px solid #fff;border-radius:20px;background:#ffffff70;box-shadow:inset 0 1px 1px #fff,0 8px 24px #09297508;}
.client-chart-layout{display:grid;grid-template-columns:minmax(190px,.7fr) minmax(0,2fr);align-items:center;gap:24px;}
.client-chart-column{text-align:center;padding-right:24px;border-right:1px solid #d8e5f4;}
.client-expiry-donut{width:min(100%,230px);aspect-ratio:1;margin:auto;border-radius:50%;background:var(--client-chart);padding:32px;box-sizing:border-box;box-shadow:inset 0 2px 3px #ffffffa0,0 10px 22px #118aa619;}
.client-donut-centre{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:#f0f7ff;border-radius:50%;box-shadow:0 0 3px #09297530;}
.client-donut-centre svg{width:18px;height:18px;color:#5882b8;}.client-donut-centre strong{font-size:30px;line-height:1.1;color:#092975;}.client-donut-centre span{font-size:11px;color:#58739b;}
body.client-dashboard-page .client-chart-column p{font-size:11px;margin:16px 0 8px;}.client-chart-column>small{display:block;font-size:11px;line-height:1.5;color:#58739b;}
body.client-dashboard-page .client-expiry-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0;}
body.client-dashboard-page .client-expiry-card{min-height:132px;padding:28px 16px 18px!important;gap:10px!important;grid-template-columns:40px minmax(0,1fr) 28px;}
body.client-dashboard-page .client-expiry-card:last-child{grid-column:1/-1;}
body.client-dashboard-page .client-expiry-icon{width:40px;height:40px;}body.client-dashboard-page .client-expiry-copy{gap:7px;}body.client-dashboard-page .client-expiry-copy strong{font-size:30px;}
#client-documents{scroll-margin-top:20px;}
@media(min-width:1500px){body.client-dashboard-page .alfa-customer-card{padding:36px;}.client-chart-layout{grid-template-columns:minmax(230px,.7fr) minmax(0,2fr);}}
@media(max-width:1100px){.client-workspace{grid-template-columns:200px minmax(0,1fr);gap:16px;}.client-chart-layout{grid-template-columns:1fr;}.client-chart-column{padding:0 0 20px;border-right:0;border-bottom:1px solid #d8e5f4;}.client-expiry-donut{width:210px;}}
@media(max-width:700px){.client-workspace{grid-template-columns:1fr;}.client-sidebar{position:static;min-height:0;padding:10px;border-radius:16px;}.client-sidebar nav{flex-direction:row;gap:8px;}.client-sidebar nav a{flex:1;padding:12px 8px;font-size:12px;gap:7px;}.client-sidebar-account{display:none;}body.client-dashboard-page .alfa-customer-card{padding:18px;}body.client-dashboard-page .alfa-customer-header{padding:12px;}.client-expiry-panel{padding:12px;}body.client-dashboard-page .client-expiry-card{grid-template-columns:32px minmax(0,1fr);padding:30px 10px 16px!important;}body.client-dashboard-page .client-expiry-icon{width:32px;height:32px;}body.client-dashboard-page .client-expiry-copy .client-expiry-label{font-size:12px;}}
@media(prefers-reduced-motion:reduce){.client-sidebar nav a{transition:none;}}

/* Client identity and persistent light/dark preference in the header. */
.client-header-tools{display:flex;align-items:center;justify-content:flex-end;gap:20px;margin-left:auto;}
.client-header-identity{display:flex;align-items:center;gap:10px;min-width:0;color:#092975;}.client-header-identity>svg{width:32px;height:32px;flex-shrink:0;}.client-header-identity>div{display:flex;flex-direction:column;gap:3px;}.client-header-identity strong{font-size:14px;}.client-header-identity span,.client-header-identity small{font-size:11px;color:#58739b;overflow-wrap:anywhere;}
body.client-dashboard-page button.client-theme-toggle{display:flex;align-items:center;justify-content:center;width:40px;height:40px;min-width:40px;padding:8px;border:1px solid #d8e5f4;border-radius:50%;background:#edf5ff;color:#092975;box-shadow:none;}.client-theme-toggle svg{width:22px;height:22px;}.client-theme-toggle span{display:flex;}.client-theme-toggle .client-theme-moon{display:none;}[data-client-theme=dark] .client-theme-toggle .client-theme-sun{display:none;}[data-client-theme=dark] .client-theme-toggle .client-theme-moon{display:flex;}
.client-theme-toggle:focus-visible{outline:2px solid #118aa6;outline-offset:3px;}
html[data-client-theme=dark] body.client-dashboard-page{background:#0d172a!important;color:#e3edf9;}
html[data-client-theme=dark] body.client-dashboard-page .alfa-customer-header,html[data-client-theme=dark] body.client-dashboard-page .alfa-customer-card{background:#15243a!important;border-color:#34465e!important;outline-color:#34465e;color:#e3edf9;}
html[data-client-theme=dark] .client-header-identity,html[data-client-theme=dark] body.client-dashboard-page :is(h1,h2,label,.client-record-heading){color:#e3edf9!important;}
html[data-client-theme=dark] body.client-dashboard-page :is(p,.client-dashboard-heading>span,.client-header-identity span,.client-header-identity small,.client-chart-column>small){color:#adc0d9!important;}
html[data-client-theme=dark] .client-expiry-panel{background:#101e32;border-color:#34465e;box-shadow:none;}
html[data-client-theme=dark] .client-chart-column{border-color:#34465e;}html[data-client-theme=dark] .client-donut-centre{background:#17283f;}html[data-client-theme=dark] .client-donut-centre strong{color:#e3edf9;}html[data-client-theme=dark] .client-donut-centre span{color:#adc0d9;}
html[data-client-theme=dark] body.client-dashboard-page .client-expiry-card{background:linear-gradient(120deg,color-mix(in srgb,var(--card-accent) 15%,#17283f),color-mix(in srgb,var(--card-accent) 27%,#17283f))!important;border-color:#526078!important;border-inline-start-color:var(--card-accent)!important;}
html[data-client-theme=dark] body.client-dashboard-page .client-expiry-copy :is(strong,.client-expiry-label,small){color:#eef5ff!important;}
html[data-client-theme=dark] body.client-dashboard-page :is(input,select,.client-scope-tabs a){background:#101e32!important;border-color:#435875!important;color:#e3edf9!important;}
html[data-client-theme=dark] body.client-dashboard-page .client-scope-tabs a[aria-current=page]{background:#124a61!important;border-color:#21b4d3!important;}
html[data-client-theme=dark] body.client-dashboard-page :is(.alfa-customer-table,table,thead,tbody,tr,th,td){background:#15243a!important;color:#e3edf9!important;border-color:#34465e!important;}
html[data-client-theme=dark] body.client-dashboard-page button.client-theme-toggle{background:#253b58;color:#d9edff;border-color:#435875;}
html[data-client-theme=dark] body.client-dashboard-page .alfa-customer-header>img{background:#f0f7ff;border-radius:10px;padding:8px;}
@media(max-width:700px){body.client-dashboard-page .alfa-customer-header{flex-wrap:wrap;gap:16px;}.client-header-tools{width:100%;gap:12px;}.client-header-identity{flex:1;}.client-header-identity strong{font-size:12px;}.client-header-identity span{font-size:10px;}.client-header-tools form button{padding:10px;font-size:12px;}}

/* Final document completion: a readable light form with a gentle backdrop. */
html body.fi-body .job-output-overlay{background:rgba(20,45,80,.22)!important;backdrop-filter:blur(3px);box-sizing:border-box;}
html body.fi-body .job-output-modal{background:linear-gradient(140deg,#fff,#f0f6fe)!important;border:1px solid #fff!important;border-radius:20px!important;box-shadow:0 20px 65px rgba(9,41,117,.20)!important;color:#183153;color-scheme:light;}
html body.fi-body .job-output-modal form>div{border-color:#dce6f3!important;}
html body.fi-body .job-output-modal h2{color:#092975!important;line-height:1.4;}
html body.fi-body .job-output-modal p{color:#58708f!important;}
html body.fi-body .job-output-modal :is(label,legend,.job-output-owner strong){color:#233f63!important;}
html body.fi-body .job-output-modal .job-output-document{background:#ffffffb8;border:1px solid #cddced!important;border-radius:12px;padding:16px;}
html body.fi-body .job-output-modal input{background:#f8fbff!important;color:#183153!important;border:1px solid #bfd0e5!important;border-radius:9px;box-shadow:inset 0 1px 3px #09297508;color-scheme:light;}
html body.fi-body .job-output-modal input:focus{outline:2px solid #118aa6!important;outline-offset:2px;}
html body.fi-body .job-output-modal label>span{color:#d32f45!important;}
html body.fi-body .job-output-modal button[type=button]{background:#fff!important;color:#294767!important;border-color:#bfd0e5!important;}
html body.fi-body .job-output-modal button[type=submit]{box-shadow:0 3px 10px #16a34a25;}
html.dark body.fi-body .job-output-overlay{background:rgba(8,18,34,.38)!important;}
html.dark body.fi-body .job-output-modal{background:#20334c!important;border-color:#4a6380!important;color:#edf5ff;color-scheme:dark;}
html.dark body.fi-body .job-output-modal :is(h2,label,legend,.job-output-owner strong){color:#edf5ff!important;}
html.dark body.fi-body .job-output-modal p{color:#c2d1e4!important;}
html.dark body.fi-body .job-output-modal .job-output-document{background:#283f5b;border-color:#617b9a!important;}
html.dark body.fi-body .job-output-modal input{background:#1b2e47!important;border-color:#718bab!important;color:#fff!important;color-scheme:dark;}
html.dark body.fi-body .job-output-modal button[type=button]{background:#304964!important;color:#edf5ff!important;}

html body.fi-body .adc-action-skip{margin-top:8px;background:#edf3fa;color:#345274;border:1px solid #bdcfe3;}html body.fi-body .adc-action-skip:focus-visible{outline:2px solid #118aa6;outline-offset:2px;}.adc-skip-history{padding:12px 18px;display:grid;gap:5px;background:#eaf2fa;color:#345274;font-size:12px;overflow-wrap:anywhere;}html.dark body.fi-body .adc-action-skip,html.dark .adc-skip-history{background:#253c56;color:#dceafa;}

.finance-period{display:flex;align-items:center;flex-wrap:wrap;gap:12px;color:#345274;font-size:13px;}.finance-period input{border:1px solid #bfd0e5;border-radius:10px;background:#f8fbff;padding:9px;}.finance-period span{margin-left:auto;color:#617b9a;font-size:12px;}
.finance-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;}.finance-card-panel,.finance-empty{padding:24px;border:1px solid #fff;border-radius:20px;background:linear-gradient(140deg,#ffffffeb,#eaf5ffcf);box-shadow:0 8px 25px #09297510;min-width:0;transition:transform 180ms ease,box-shadow 180ms ease;}.finance-card-panel:hover{transform:translateY(-3px);box-shadow:0 0 20px #118aa625,0 12px 28px #09297515;}.finance-card-panel header{display:flex;align-items:center;gap:12px;}.finance-card-icon{display:flex;padding:10px;border-radius:13px;background:#d8f0f5;color:#118aa6;}.finance-card-icon svg{width:25px;height:25px;}.finance-card-panel h2,.finance-empty h2{font-size:16px;font-weight:700;color:#092975;}.finance-card-panel p,.finance-empty p{font-size:12px;color:#58708f;margin-top:6px;}.finance-card-metrics{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:24px 0 15px;}.finance-card-metrics small{display:block;color:#58708f;font-size:12px;}.finance-card-metrics strong{display:block;color:#092975;font-size:21px;margin-top:5px;}.finance-budget-bar{height:8px;background:#d6e4f2;border-radius:8px;overflow:hidden;}.finance-budget-bar span{display:block;height:100%;background:#118aa6;border-radius:8px;}.finance-card-panel dl{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:20px;}.finance-card-panel dt{font-size:11px;color:#58708f;}.finance-card-panel dd{font-size:12px;font-weight:600;color:#274568;margin-top:4px;}.finance-over-budget .finance-budget-bar span{background:#dc2626;}.finance-over-budget .finance-card-metrics>div:last-child strong{color:#dc2626;}.finance-empty{grid-column:1/-1;}.finance-empty>svg{width:36px;height:36px;color:#118aa6;margin-bottom:12px;}.finance-empty a{display:inline-block;margin-top:15px;color:#087d98;font-weight:600;}.finance-ledger-note{font-size:12px;color:#58708f;}.finance-ledger-title{color:#092975;font-size:18px;font-weight:700;}
html.dark .finance-card-panel,html.dark .finance-empty{background:#1b3049;border-color:#3d5674;}html.dark :is(.finance-card-panel h2,.finance-card-metrics strong,.finance-card-panel dd,.finance-ledger-title){color:#e3f0ff;}html.dark :is(.finance-card-panel p,.finance-card-panel dt,.finance-card-metrics small,.finance-ledger-note){color:#b5c9e1;}
@media(max-width:1250px){.finance-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}@media(max-width:700px){.finance-card-grid{grid-template-columns:1fr;}.finance-period span{margin-left:0;}}@media(prefers-reduced-motion:reduce){.finance-card-panel{transition:none;transform:none!important;}}

html body.fi-body .adc-action-spend{display:flex;align-items:center;gap:7px;margin-top:8px;background:#e1f2f6;color:#087d98;border:1px solid #a6d9e4;}.adc-action-spend svg{width:17px;height:17px;}.adc-card-spending{display:grid;gap:8px;padding:12px 18px;background:#eff8fa;color:#345274;font-size:12px;}.adc-card-spending>div{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;}html.dark .adc-card-spending{background:#213b50;color:#d3e8f6;}

.finance-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;}.finance-summary-grid>div{padding:18px 20px;background:#ffffffba;border:1px solid #fff;border-radius:16px;}.finance-summary-grid span{font-size:12px;color:#58708f;display:block;}.finance-summary-grid strong{font-size:23px;color:#092975;display:block;margin-top:8px;}html.dark .finance-summary-grid>div{background:#1b3049;border-color:#3d5674;}html.dark .finance-summary-grid strong{color:#e3f0ff;}html.dark .finance-summary-grid span{color:#b5c9e1;}@media(max-width:900px){.finance-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}@media(max-width:400px){.finance-summary-grid{grid-template-columns:1fr;}}

html body.fi-body .portal-finance-manage-button svg,html body.fi-body .portal-finance-manage-button .fi-icon{color:#fff!important;}

.finance-overview-panel{background:linear-gradient(140deg,#ffffffed,#eef6ffcf);border:1px solid #fff;border-radius:22px;padding:24px;box-shadow:0 8px 28px #0929750c;}.finance-overview-heading{display:flex;align-items:center;gap:14px;margin-bottom:22px;}.finance-overview-heading>span{color:#092975;}.finance-overview-heading svg{width:28px;height:28px;}.finance-overview-heading h2{color:#092975;font-weight:700;font-size:17px;}.finance-overview-heading p{color:#58708f;font-size:12px;margin-top:5px;}.finance-overview-heading>a{margin-left:auto;font-size:12px;color:#087d98;white-space:nowrap;}.finance-overview-layout{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(0,2fr);gap:24px;align-items:center;}.finance-overview-chart{text-align:center;padding-right:24px;border-right:1px solid #d8e5f4;}.finance-donut{width:240px;max-width:100%;aspect-ratio:1;margin:auto;border-radius:50%;padding:34px;background:var(--finance-ring);box-shadow:inset 0 2px 3px #ffffffa0,0 10px 25px #118aa618;box-sizing:border-box;}.finance-donut>div{border-radius:50%;background:#f0f7ff;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:6px;}.finance-donut svg{width:20px;height:20px;color:#5882b8;}.finance-donut strong{font-size:22px;line-height:1.2;color:#092975;overflow-wrap:anywhere;}.finance-donut small,.finance-overview-chart>small,.finance-overview-chart>p{font-size:11px;color:#58708f;}.finance-overview-chart>small{display:block;margin-top:12px;}.finance-overview-chart>p{margin-top:14px;}.finance-donut-legend{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;margin-top:16px;font-size:11px;color:#58708f;}.finance-donut-legend span{display:flex;align-items:center;gap:5px;}.finance-donut-legend i{width:8px;height:8px;border-radius:50%;}
.finance-overview-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}.finance-tone-navy{--finance-rgb:9,41,117}.finance-tone-teal{--finance-rgb:17,138,166}.finance-tone-blue{--finance-rgb:40,105,207}.finance-tone-green{--finance-rgb:22,163,74}.finance-tone-red{--finance-rgb:220,38,38}.finance-overview-metric{display:flex;align-items:center;gap:14px;min-width:0;padding:19px 16px;border-radius:15px;border:1px solid #fff;background:linear-gradient(120deg,rgba(var(--finance-rgb),.08),rgba(var(--finance-rgb),.17));transition:transform 180ms ease,box-shadow 180ms ease;}.finance-overview-metric:last-child{grid-column:1/-1;}.finance-overview-metric:hover{transform:translateY(-3px) scale(1.01);box-shadow:0 0 20px rgba(var(--finance-rgb),.25);}.finance-metric-icon{display:flex;align-items:center;justify-content:center;width:42px;height:42px;flex-shrink:0;border-radius:50%;background:rgba(var(--finance-rgb),.12);color:rgb(var(--finance-rgb));}.finance-metric-icon svg{width:24px;height:24px;}.finance-overview-metric>div{min-width:0;display:grid;gap:6px;}.finance-overview-metric small{font-size:12px;font-weight:600;color:#345274;}.finance-overview-metric strong{font-size:24px;line-height:1.2;color:#112451;overflow-wrap:anywhere;}.finance-overview-metric div>span{font-size:11px;color:#58708f;}.finance-card-usage{display:flex;gap:16px;align-items:center;margin-top:18px;}.finance-mini-donut{width:78px;height:78px;border-radius:50%;padding:12px;flex-shrink:0;background:conic-gradient(var(--mini-tone) var(--mini-fill),#d6e4f2 var(--mini-fill));}.finance-mini-donut>span{background:#f0f7ff;width:100%;height:100%;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;color:#092975;}.finance-card-usage .finance-card-metrics{flex:1;min-width:0;margin:0;grid-template-columns:1fr;gap:10px;}.finance-card-usage .finance-card-metrics strong{font-size:18px;}.finance-card-usage+.finance-budget-bar{margin-top:16px;}.finance-transactions-link{display:inline-block;margin-top:18px;font-size:12px;color:#087d98;font-weight:600;}.finance-transactions-link:focus-visible,.finance-setup-grid>a:focus-visible{outline:2px solid #118aa6;outline-offset:4px;}.finance-setup-panel{border-radius:18px;padding:18px 22px;border:1px solid #fff;background:#ffffffb0;}.finance-setup-panel summary{display:flex;align-items:center;gap:10px;cursor:pointer;color:#345274;font-size:14px;font-weight:600;}.finance-setup-panel summary>svg{width:22px;height:22px;}.finance-setup-panel summary>span{background:#dcebf6;border-radius:20px;padding:3px 9px;font-size:12px;}.finance-setup-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px;}.finance-setup-grid>a{display:flex;align-items:center;gap:12px;border:1px solid #dbe7f4;border-radius:12px;padding:14px;background:#f6faff;}.finance-setup-grid>a>div{display:grid;gap:5px;min-width:0;}.finance-setup-grid strong{color:#234366;font-size:13px;}.finance-setup-grid small,.finance-setup-grid div>span{font-size:11px;color:#58708f;}.finance-setup-grid div>span{color:#087d98;}
html.dark .finance-overview-panel,html.dark .finance-setup-panel{background:#1b3049;border-color:#3d5674;}html.dark .finance-donut>div,html.dark .finance-mini-donut>span{background:#1b3049;}html.dark :is(.finance-overview-heading h2,.finance-donut strong,.finance-overview-metric strong,.finance-mini-donut>span){color:#e3f0ff;}html.dark :is(.finance-overview-metric small,.finance-overview-metric div>span,.finance-overview-chart>small,.finance-overview-heading p,.finance-donut small){color:#b5c9e1;}html.dark .finance-overview-chart{border-color:#3d5674;}html.dark .finance-overview-metric{border-color:#54708f;background:rgba(var(--finance-rgb),.22);}html.dark .finance-setup-grid>a{background:#253b55;border-color:#54708f;}html.dark .finance-setup-grid strong,html.dark .finance-setup-panel summary{color:#e3f0ff;}
@media(max-width:1100px){.finance-overview-layout{grid-template-columns:1fr;}.finance-overview-chart{padding:0 0 20px;border-right:0;border-bottom:1px solid #d8e5f4;}.finance-setup-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}@media(max-width:600px){.finance-overview-panel{padding:18px;}.finance-overview-metrics{grid-template-columns:1fr;}.finance-overview-metric:last-child{grid-column:auto;}.finance-overview-metric strong{font-size:22px;}.finance-setup-grid{grid-template-columns:1fr;}.finance-overview-heading{gap:10px;}.finance-overview-heading p{font-size:11px;}.finance-donut{width:220px;}}@media(prefers-reduced-motion:reduce),(hover:none){.finance-overview-metric{transition:none;transform:none!important;}}

/* Use Alfa navy consistently for page titles in the light theme. */
html:not(.dark) body.fi-body :is(.fi-header-heading,.fi-page-header-heading,.fi-section-header-heading,.fi-modal-heading){color:#092975!important;}

.finance-payment-summary{display:flex;align-items:center;gap:16px;padding:20px 24px;background:#ffffffc9;border:1px solid #fff;border-radius:18px;}.finance-payment-summary>div{display:grid;gap:5px;}.finance-payment-summary small,.finance-payment-summary div>span{font-size:12px;color:#58708f;}.finance-payment-summary strong{font-size:24px;color:#092975;}.finance-payment-summary>a{margin-left:auto;color:#087d98;font-size:13px;font-weight:600;}.finance-payment-details{padding-top:16px;border-top:1px solid #d8e5f4;}html.dark .finance-payment-summary{background:#1b3049;border-color:#3d5674;}html.dark .finance-payment-summary strong{color:#e3f0ff;}@media(max-width:600px){.finance-payment-summary{flex-wrap:wrap;}.finance-payment-summary>a{margin-left:0;width:100%;}}

.finance-payment-status[data-status="Paid"]{color:#15803d}.finance-payment-status[data-status="Part paid"]{color:#ad7109}.finance-payment-status[data-status="Overdue"]{color:#dc2626}

html body.fi-body .portal-add-statement-button svg,html body.fi-body .portal-add-statement-button .fi-icon{color:#fff!important;opacity:1!important;}

.finance-holder-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:18px;}.finance-holder-tile{display:flex;align-items:center;gap:12px;position:relative;padding:20px 14px;border:1px solid #fff;border-radius:17px;background:linear-gradient(130deg,#f6fcff,#dff0f7);box-shadow:0 5px 15px #09297508;transition:transform 180ms ease,box-shadow 180ms ease;min-width:0;}.finance-holder-tile:hover{transform:translateY(-3px) scale(1.01);box-shadow:0 0 22px #118aa638,0 10px 24px #09297514;}.finance-holder-tile:focus-visible{outline:2px solid #118aa6;outline-offset:3px;}.finance-holder-avatar{display:flex;align-items:center;justify-content:center;background:#118aa616;border-radius:50%;width:40px;height:40px;flex-shrink:0;color:#118aa6;}.finance-holder-avatar svg{width:27px;height:27px;}.finance-holder-tile>div:not(.finance-mini-donut){display:grid;gap:5px;flex:1;min-width:0;}.finance-holder-tile h3{font-size:13px;font-weight:700;color:#092975;overflow-wrap:anywhere;}.finance-holder-tile strong{font-size:18px;font-weight:700;color:#092975;}.finance-holder-tile small,.finance-holder-tile div>span{font-size:11px;color:#58708f;}.finance-holder-tile .finance-mini-donut{width:60px;height:60px;padding:9px;}.finance-holder-arrow{position:absolute;right:10px;top:10px;color:#118aa6;}.finance-holder-arrow svg{width:14px;height:14px;}.finance-holder-back{font-size:13px;color:#087d98;font-weight:600;}
html.dark .finance-holder-tile{background:linear-gradient(130deg,#203951,#20465a);border-color:#466582;}html.dark .finance-holder-tile h3,html.dark .finance-holder-tile strong{color:#e3f0ff;}html.dark .finance-holder-tile small,html.dark .finance-holder-tile div>span{color:#bed3e9;}
@media(max-width:1250px){.finance-holder-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}@media(max-width:700px){.finance-holder-grid{grid-template-columns:1fr;}}@media(prefers-reduced-motion:reduce),(hover:none){.finance-holder-tile{transition:none;transform:none!important;}}

/* Three aligned Finance browse sections, with independent disclosures. */
.finance-browse-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start;min-width:0;}.finance-browse-columns>.finance-setup-panel{min-width:0;padding:18px;}.finance-browse-columns .finance-holder-grid,.finance-browse-columns .finance-card-grid,.finance-browse-columns .finance-setup-grid{grid-template-columns:minmax(0,1fr);}.finance-browse-columns .finance-setup-panel summary{min-height:26px;}.finance-browse-columns:not(:has(.finance-holder-directory)){grid-template-columns:repeat(2,minmax(0,1fr));}.finance-browse-columns .finance-card-panel{padding:18px;}.finance-browse-columns .finance-holder-tile{gap:9px;padding:18px 10px;}.finance-browse-columns .finance-holder-avatar{width:32px;height:32px;}.finance-browse-columns .finance-holder-tile .finance-mini-donut{width:48px;height:48px;padding:7px;}.finance-browse-columns .finance-holder-tile strong{font-size:16px;}
@media(max-width:1000px){.finance-browse-columns,.finance-browse-columns:not(:has(.finance-holder-directory)){grid-template-columns:minmax(0,1fr);}}

/* Finance disclosures open across the page below their shared heading row. */
.finance-browse-columns{gap:16px;}.finance-browse-columns>.finance-setup-panel{display:contents;}.finance-browse-columns>.finance-setup-panel>summary{grid-row:1;padding:18px 22px;border:1px solid #fff;border-radius:18px;background:#ffffffb0;min-width:0;}.finance-browse-columns>.finance-setup-panel:nth-of-type(1)>summary{grid-column:1;}.finance-browse-columns>.finance-setup-panel:nth-of-type(2)>summary{grid-column:2;}.finance-browse-columns>.finance-setup-panel:nth-of-type(3)>summary{grid-column:3;}.finance-browse-columns>.finance-setup-panel[open]>summary{background:#e1f3fa;border-color:#7dcbdc;box-shadow:0 0 14px #118aa622;}.finance-browse-columns>.finance-setup-panel:not([open])>div{display:none!important;}.finance-browse-columns>.finance-setup-panel[open]>div{grid-row:2;grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:20px;border:1px solid #fff;border-radius:20px;background:#ffffff90;margin-top:0!important;min-width:0;}.finance-browse-columns>.finance-setup-panel[open]>.finance-card-grid>.finance-empty{grid-column:1/-1;}
html.dark .finance-browse-columns>.finance-setup-panel>summary,html.dark .finance-browse-columns>.finance-setup-panel[open]>div{background:#1b3049;border-color:#3d5674;}html.dark .finance-browse-columns>.finance-setup-panel[open]>summary{background:#21475e;border-color:#118aa6;}
@media(max-width:1000px){.finance-browse-columns{grid-template-columns:repeat(3,minmax(0,1fr));}.finance-browse-columns:not(:has(.finance-holder-directory)){grid-template-columns:repeat(2,minmax(0,1fr));}.finance-browse-columns>.finance-setup-panel>summary{padding:14px 10px;font-size:12px;gap:6px;}.finance-browse-columns>.finance-setup-panel[open]>div{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:600px){.finance-browse-columns{gap:8px;}.finance-browse-columns>.finance-setup-panel>summary{flex-wrap:wrap;font-size:11px;padding:12px 8px;}.finance-browse-columns>.finance-setup-panel[open]>div{grid-template-columns:minmax(0,1fr);padding:12px;}}

/* A single compact Finance tab panel, closed until a tab is selected. */
.finance-tabs-panel{padding:10px;border:1px solid #fff;border-radius:20px;background:#ffffff9c;box-shadow:0 7px 22px #09297508;gap:8px;}.finance-tabs-panel>.finance-setup-panel>summary{justify-content:center;padding:14px 18px;border:1px solid transparent;border-radius:12px;background:transparent;transition:background 180ms ease,box-shadow 180ms ease,color 180ms ease;list-style:none;cursor:pointer;}.finance-tabs-panel>.finance-setup-panel>summary::-webkit-details-marker{display:none;}.finance-tabs-panel>.finance-setup-panel>summary:hover{background:#e9f5fb;}.finance-tabs-panel>.finance-setup-panel[open]>summary{color:#087d98;background:#d7f0f6;border-color:#79cddd;box-shadow:0 0 14px #118aa62b;}.finance-tabs-panel>.finance-setup-panel[open]>summary>span{background:#fff9;color:#087d98;}.finance-tabs-panel>.finance-setup-panel[open]>div{border:0;border-top:1px solid #dce8f4;border-radius:0 0 12px 12px;background:transparent;padding:20px 10px 10px;}.finance-tabs-panel>.finance-setup-panel>summary:focus-visible{outline:2px solid #118aa6;outline-offset:2px;}
html.dark .finance-tabs-panel{background:#1b3049;border-color:#3d5674;}html.dark .finance-tabs-panel>.finance-setup-panel>summary{background:transparent;}html.dark .finance-tabs-panel>.finance-setup-panel[open]>summary{background:#214b61;color:#a7edf5;}html.dark .finance-tabs-panel>.finance-setup-panel[open]>div{background:transparent;border-color:#3d5674;}
@media(max-width:600px){.finance-tabs-panel{padding:7px;gap:4px;}.finance-tabs-panel>.finance-setup-panel>summary{padding:12px 6px;font-size:11px;}.finance-tabs-panel>.finance-setup-panel[open]>div{padding:14px 3px 3px;}}@media(prefers-reduced-motion:reduce){.finance-tabs-panel>.finance-setup-panel>summary{transition:none;}}

/* Shared tab content occupies the complete panel, independent of headings. */
.finance-browse-columns.finance-tabs-panel{display:block!important;}.finance-tab-buttons{display:flex;gap:8px;}.finance-tab-buttons>button{flex:1;display:flex;align-items:center;justify-content:center;gap:9px;padding:15px 12px!important;border:1px solid transparent!important;border-radius:12px!important;background:transparent!important;color:#345274!important;box-shadow:none!important;font-size:13px!important;font-weight:600;cursor:pointer;}.finance-tab-buttons>button svg{width:21px;height:21px;flex-shrink:0;}.finance-tab-buttons>button>span{border-radius:20px;padding:3px 8px;background:#dcebf6;font-size:11px;}.finance-tab-buttons>button.is-selected{background:#d7f0f6!important;color:#087d98!important;border-color:#79cddd!important;box-shadow:0 0 14px #118aa62b!important;}.finance-tab-buttons>button:focus-visible{outline:2px solid #118aa6;outline-offset:2px;}.finance-tab-content{width:100%;min-width:0;}.finance-tab-content[x-cloak]{display:none!important;}.finance-tab-content>div{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px;margin:16px 0 0!important;padding:20px 10px 10px;border-top:1px solid #dce8f4;min-width:0;}.finance-tab-content .finance-card-panel{min-width:0;}.finance-tab-content .finance-holder-tile{padding:20px 14px;}.finance-tab-content .finance-empty{grid-column:1/-1;}html.dark .finance-tab-buttons>button{color:#d3e8f6!important;}html.dark .finance-tab-buttons>button.is-selected{background:#214b61!important;color:#a7edf5!important;}@media(max-width:1000px){.finance-tab-content>div{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}@media(max-width:600px){.finance-tab-content>div{grid-template-columns:1fr!important;padding:14px 3px 3px;}.finance-tab-buttons>button{font-size:11px!important;padding:12px 5px!important;gap:5px;flex-wrap:wrap;}.finance-tab-buttons>button svg{width:18px;height:18px;}}

/* Make spending cards a clear interactive target, preserving their action links. */
.finance-clickable-card{position:relative;cursor:pointer;transition:transform 200ms ease,box-shadow 200ms ease,border-color 200ms ease;}.finance-card-hit-area{position:absolute;inset:0;border-radius:inherit;z-index:1;}.finance-clickable-card .finance-transactions-link{position:relative;z-index:2;}.finance-clickable-card:is(:hover,:focus-within){transform:translateY(-4px) scale(1.01);border-color:#77d4e5;box-shadow:0 0 0 1px #118aa630,0 0 24px #118aa640,0 12px 28px #09297516;}.finance-card-hit-area:focus-visible{outline:2px solid #118aa6;outline-offset:4px;}.finance-clickable-card .finance-card-icon{transition:box-shadow 200ms ease,transform 200ms ease;}.finance-clickable-card:is(:hover,:focus-within) .finance-card-icon{box-shadow:0 0 15px #118aa630;transform:scale(1.05);}@media(prefers-reduced-motion:reduce),(hover:none){.finance-clickable-card,.finance-clickable-card .finance-card-icon{transition:none!important;transform:none!important;}}

.finance-selected-card{display:flex;align-items:center;gap:16px;padding:22px 24px;border:1px solid #fff;border-radius:18px;background:linear-gradient(120deg,#f8fcff,#dfedf9);}.finance-selected-card h2{font-size:22px;font-weight:700;color:#092975;}.finance-selected-card p{font-size:14px;color:#345274;margin-top:6px;}.finance-selected-card small{display:block;font-size:12px;color:#58708f;margin-top:5px;}html.dark .finance-selected-card{background:#1b3049;border-color:#3d5674;}html.dark .finance-selected-card h2{color:#e3f0ff;}@media(max-width:600px){.finance-selected-card{padding:18px;}.finance-selected-card h2{font-size:18px;}}

/* Button icons follow the button label contrast in both light and dark themes. */
html body.fi-body .fi-btn .fi-icon,
html body.fi-body .fi-btn svg {
    color: inherit !important;
    opacity: 1 !important;
}

/* Employee attendance and leave panels. */
.hr-self-card{padding:24px;border:1px solid #ffffffbb;border-radius:24px;background:linear-gradient(135deg,#ffffffbb,#e1efff77);color:#123366;box-shadow:0 8px 30px #144e8310}.hr-self-card h2{font-size:21px;font-weight:700;margin-bottom:8px}.hr-self-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin:20px 0}.hr-self-metrics>div{padding:18px;background:#dceafa88;border:1px solid #ffffffb0;border-radius:16px}.hr-self-metrics strong{display:block;font-size:23px;margin-top:7px}.hr-self-metrics small{display:block;font-size:12px;margin-top:6px}.hr-self-note{font-size:13px;margin:16px 0;color:#496a94}.hr-self-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:20px}.hr-self-form label{display:flex;flex-direction:column;gap:8px}.hr-self-form select,.hr-self-form textarea{padding:10px;border:1px solid #b6cfe5;border-radius:10px;background:#ffffff77;color:inherit}.hr-self-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:20px}.hr-self-actions button{padding:12px 18px;border:1px solid #8fc6dc;border-radius:12px;color:#123366;display:inline-flex;align-items:center;gap:8px;cursor:pointer}.hr-self-actions button svg{width:22px;height:22px;color:inherit}.hr-self-actions .hr-self-primary{color:white;background:linear-gradient(130deg,#001b7e,#019bbe);box-shadow:0 5px 15px #019bbe28}.hr-self-actions button:disabled{opacity:.45;cursor:not-allowed}.dark .hr-self-card{background:#17365388;color:#e0eeff;border-color:#51708e}.dark .hr-self-note{color:#adc5e4}.dark .hr-self-metrics>div{background:#294c6c66;border-color:#57708c}.dark .hr-self-form select,.dark .hr-self-form textarea{background:#16304c;color:#e0eeff}.dark .hr-self-actions button{color:#e0eeff}@media(max-width:600px){.hr-self-form{grid-template-columns:1fr}.hr-self-card{padding:18px}}

/* HR overview and attendance dashboards. */
.hr-dash-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.hr-dash-kpi{display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:20px;border:1px solid #ffffffb8;border-radius:19px;background:linear-gradient(125deg,#ffffffba,#dcecfacc);color:#123366;box-shadow:0 7px 23px #12336609;transition:transform .18s,box-shadow .18s;min-width:0;cursor:pointer}.hr-dash-kpi:hover,.hr-dash-status:hover{transform:translateY(-3px);box-shadow:0 0 22px #009ebe29}.hr-dash-kpi svg{width:25px;height:25px;margin-bottom:12px;color:#008baa}.hr-dash-kpi strong{font-size:29px;margin:6px 0}.hr-dash-kpi small{font-size:12px;color:#557297}.hr-dash-columns{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:20px;margin-bottom:24px}.hr-dash-panel{padding:24px;border:1px solid #ffffffbb;border-radius:23px;background:linear-gradient(140deg,#ffffffbb,#e5f1ff88);color:#123366;min-width:0;box-shadow:0 8px 28px #144e830c}.hr-dash-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:22px}.hr-dash-heading h2{font-size:18px;font-weight:700}.hr-dash-heading p,.hr-dash-note{font-size:12px;color:#557297;margin-top:6px}.hr-dash-heading>a,.hr-dash-heading>button{font-size:12px;white-space:nowrap;color:#0088a9;cursor:pointer}.hr-dash-heading>svg{width:26px;height:26px;color:#008baa;flex-shrink:0}.hr-dash-att-layout{display:grid;grid-template-columns:205px minmax(0,1fr);gap:22px;align-items:center}.hr-dash-ring{width:194px;height:194px;border-radius:50%;display:grid;place-items:center;margin:auto;box-shadow:inset 0 2px 4px #ffffffa0,0 8px 22px #019bbe20}.hr-dash-ring>div{width:138px;height:138px;background:#eff7ff;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#123366}.hr-dash-ring svg{width:23px;height:23px}.hr-dash-ring strong{font-size:30px;margin:4px}.hr-dash-ring small{font-size:12px}.hr-dash-ring-wrap>p{font-size:11px;text-align:center;color:#557297;margin-top:14px}.hr-dash-status-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.hr-dash-status{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px;border:1px solid #ffffffcc;border-left:3px solid var(--hr-status);border-radius:13px;background:#edf5fc99;transition:transform .18s,box-shadow .18s;min-width:0;color:inherit}.hr-dash-status>span{font-size:12px}.hr-dash-status strong{font-size:21px}.hr-dash-status i{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--hr-status);margin-right:6px}.hr-dash-queue{display:flex;flex-direction:column;gap:9px}.hr-dash-queue>a,.hr-dash-queue>div{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 14px;border:1px solid #d6e6f255;border-radius:12px;background:#e7f1fa66;color:inherit;font-size:13px;overflow-wrap:anywhere}.hr-dash-queue small{display:block;font-size:11px;opacity:.8;margin-top:4px}.hr-dash-queue strong{white-space:nowrap}.hr-dash-empty{font-size:13px;color:#557297;padding:15px 0}.hr-dash-tag{font-size:10px;border-radius:20px;padding:5px 8px;background:#d9eaf6;text-transform:capitalize}.hr-dash-filters{display:flex;flex-wrap:wrap;gap:18px;color:#123366}.hr-dash-filters label{display:flex;flex-direction:column;gap:7px;font-size:13px;min-width:180px}.hr-dash-filters input,.hr-dash-filters select{padding:9px 12px;border:1px solid #b6cfe5;border-radius:11px;background:#ffffff88;color:inherit}.hr-dash-trend{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px;align-items:end}.hr-dash-trend>a{text-align:center;color:inherit;font-size:13px}.hr-dash-trend>a>div{height:95px;display:flex;align-items:flex-end;background:#dce9f5;border-radius:9px;overflow:hidden;margin:8px 0}.hr-dash-trend i{display:block;width:100%;min-height:2px;background:linear-gradient(#00b9cf,#1650ad);border-radius:9px}.hr-dash-trend small{font-size:11px}.dark .hr-dash-kpi,.dark .hr-dash-panel{background:#17365388;color:#e0eeff;border-color:#51708e66}.dark .hr-dash-kpi small,.dark .hr-dash-heading p,.dark .hr-dash-note,.dark .hr-dash-ring-wrap>p,.dark .hr-dash-empty{color:#b3c9e1}.dark .hr-dash-status,.dark .hr-dash-queue>a,.dark .hr-dash-queue>div{background:#294b6b55;border-color:#55708c55}.dark .hr-dash-tag{background:#254b69}.dark .hr-dash-filters{color:#e0eeff}.dark .hr-dash-filters input,.dark .hr-dash-filters select{background:#173653;color:#e0eeff}@media(max-width:1200px){.hr-dash-columns{grid-template-columns:1fr}.hr-dash-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.hr-dash-att-layout{grid-template-columns:1fr}.hr-dash-panel{padding:18px}.hr-dash-heading{flex-wrap:wrap}.hr-dash-filters label{min-width:0;flex:1 1 150px}.hr-dash-kpis{gap:10px}.hr-dash-kpi{padding:16px}.hr-dash-trend{gap:7px}.hr-dash-trend small{font-size:9px}}@media(prefers-reduced-motion:reduce){.hr-dash-kpi,.hr-dash-status{transition:none}.hr-dash-kpi:hover,.hr-dash-status:hover{transform:none}}

/* Employee dashboard: compact validity card above tasks, aligned with Jobs. */
.portal-dashboard-work-stack{min-width:0}
.portal-dashboard-work-stack-inner{display:grid;gap:16px;min-width:0}
.portal-dashboard-work-stack .task-detail{margin:0;min-width:0;min-height:0;padding:18px;display:flex;flex-direction:column;overflow:hidden}
.portal-dashboard-work-stack .task-heading{margin-bottom:8px;flex-shrink:0}
.portal-dashboard-work-stack .task-heading h2{font-size:17px}
.portal-dashboard-work-stack .task-heading p{font-size:12px}
.portal-dashboard-work-stack .task-latest{min-height:0;overflow-y:auto;gap:6px}
.portal-dashboard-work-stack .task-latest>a{padding:9px 11px;font-size:12px;flex-shrink:0}
.portal-dashboard-work-stack .portal-dashboard-temporary .fi-section-header{padding:16px 18px 10px}
.portal-dashboard-work-stack .portal-dashboard-temporary .fi-section-header-description{font-size:11px;line-height:1.4}
.portal-dashboard-work-stack .portal-dashboard-temporary .fi-section-content{padding:10px 18px 14px;max-height:none}
.portal-dashboard-work-stack .portal-temporary-empty{padding:10px 0;font-size:12px}
/* Let reminders and tasks size to their content instead of splitting a fixed height. */
.portal-dashboard-work-stack{min-width:0;align-self:start}
.portal-dashboard-work-stack-inner{position:static;display:grid;grid-template-rows:auto auto;align-items:start;gap:16px}
.portal-dashboard-work-stack .portal-dashboard-temporary{min-height:0;overflow:visible}
.portal-dashboard-work-stack .portal-dashboard-temporary :is(.portal-temporary-expiries,.fi-wi-widget,.fi-section){height:auto;min-height:0;flex:none}
.portal-dashboard-work-stack .portal-dashboard-temporary :is(.fi-section-content-ctn,.fi-section-content){max-height:none;overflow:visible}
.portal-dashboard-work-stack .task-summary-card{height:auto;min-height:0;align-self:start}
.portal-dashboard-work-stack .task-latest{max-height:none;overflow:visible}


.staff-task-bell{position:relative}.staff-task-bell-button{position:relative;display:grid;place-items:center;width:38px;height:38px;border:1px solid #d4e5f4;border-radius:50%;color:#103b80;background:#edf5ff;cursor:pointer;transition:box-shadow .2s}.staff-task-bell-button:hover{box-shadow:0 0 18px #009bb52a}.staff-task-bell-button svg{width:21px;height:21px}.staff-task-bell-count{position:absolute;right:-4px;top:-5px;background:#ed3953;color:#fff;min-width:18px;height:18px;padding:0 4px;border:2px solid #f3f8ff;border-radius:20px;font-size:10px;line-height:14px;font-weight:700}.staff-task-bell-panel{position:absolute;right:0;top:48px;width:min(360px,calc(100vw - 24px));border:1px solid #cce3f1;border-radius:22px;background:#f5fafff5;color:#133766;box-shadow:0 16px 40px #153d7330;backdrop-filter:blur(18px);overflow:hidden;z-index:100}.staff-task-bell-heading{display:flex;justify-content:space-between;align-items:center;padding:16px;border-bottom:1px solid #dce9f3}.staff-task-bell-heading a{font-size:12px;color:#00829f}.staff-task-bell-list{max-height:min(440px,65vh);overflow:auto;padding:8px}.staff-task-bell-item{display:flex;width:100%;text-align:left;gap:10px;align-items:flex-start;padding:12px;border-radius:14px;border:0;background:transparent;cursor:pointer}.staff-task-bell-item:hover,.staff-task-bell-item.is-unread{background:#e5f3fc}.staff-task-bell-item>span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}.staff-task-bell-item strong{display:block;font-size:13px;line-height:1.4}.staff-task-bell-item small,.staff-task-bell-item time{display:block;font-size:11px;color:#6983a4;margin-top:4px}.staff-task-reminder-symbol{width:30px;height:30px;display:grid;place-items:center;background:#d6edf8;border-radius:10px;flex-shrink:0;color:#008aa8}.staff-task-reminder-symbol svg{width:19px;height:19px}.staff-task-bell-item i{width:6px;height:6px;background:#0099b4;border-radius:50%;margin-top:5px}.staff-task-bell-empty{padding:18px;font-size:13px}.staff-task-bell-button:focus-visible,.staff-task-bell-item:focus-visible{outline:2px solid #009bb5;outline-offset:2px}.dark .staff-task-bell-button{background:#1b3a58;color:#def3ff;border-color:#345775}.dark .staff-task-bell-panel{background:#17334ef5;color:#e2f1ff;border-color:#365774}.dark .staff-task-bell-item:hover,.dark .staff-task-bell-item.is-unread{background:#254b6d}@media(prefers-reduced-motion:reduce){.staff-task-bell-button{transition:none}}

/* Raise the active lead form section above adjacent frosted sections. */
html body.fi-body .alfa-lead-form-section{position:relative;overflow:visible!important}
html body.fi-body .alfa-lead-form-section:is(:focus-within,:has([aria-expanded="true"])) {z-index:30}
html body.fi-body .fi-sc-component:has(.alfa-lead-form-section:is(:focus-within,:has([aria-expanded="true"]))) {position:relative;z-index:30;overflow:visible!important}
html body.fi-body .alfa-lead-form-section .fi-section-content-ctn,html body.fi-body .alfa-lead-form-section .fi-section-content{overflow:visible!important}

/* Sales: keep temporary deadlines and employee tasks aligned in the right column. */
.portal-sales-support-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:20px;align-items:start}
.portal-sales-support-stack{grid-column:2;display:grid;gap:20px;min-width:0}
.portal-sales-support-stack>.portal-temporary-expiries,.portal-sales-support-stack>.task-summary-card{width:100%;min-width:0;margin:0;box-sizing:border-box}
.portal-sales-support-stack .task-heading{align-items:center;gap:12px}
.portal-sales-support-stack .task-heading h2{font-size:16px}
.portal-sales-support-stack .task-latest{max-height:260px;overflow-y:auto}
.portal-sales-support-stack .fi-section-header{padding:18px 20px 14px}
.portal-sales-support-stack .fi-section-content{padding:16px 20px 20px;max-height:none;overflow:visible}
@media(max-width:1300px){.portal-sales-support-grid{grid-template-columns:1fr 1fr}}
@media(max-width:1000px){.portal-sales-support-grid{grid-template-columns:1fr;gap:16px}.portal-sales-support-stack{grid-column:1;gap:16px}}

/* Sales support cards sit side by side: expiries left, tasks right. */
.portal-sales-support-grid{display:block}
.portal-sales-support-stack{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:20px;align-items:start}
.portal-sales-support-stack>.portal-temporary-expiries{grid-column:1}
.portal-sales-support-stack>.task-summary-card{grid-column:2;height:auto;align-self:start}
.portal-sales-support-stack>.portal-temporary-expiries>.fi-section{height:100%;margin:0}
@media(max-width:1300px){.portal-sales-support-stack{grid-template-columns:1fr 1fr}}
@media(max-width:1000px){.portal-sales-support-stack{grid-template-columns:1fr;gap:16px}.portal-sales-support-stack>.portal-temporary-expiries,.portal-sales-support-stack>.task-summary-card{grid-column:1;height:auto}}

/* Staff dashboard: interactive new-job notifications. */
.staff-new-notification-card{transition:transform .2s ease,box-shadow .2s ease,background-color .2s ease,border-color .2s ease;position:relative}
.staff-new-notifications-toggle{transition:color .2s ease,text-shadow .2s ease}
@media(hover:hover){
html body.fi-body .staff-new-notification-card:hover{background:linear-gradient(115deg,#ffffffd9,#d9f4ffdc)!important;border-color:#009bb7!important;box-shadow:0 0 0 1px #009bb725,0 0 22px #009bb72b,0 8px 20px #09297513;transform:translateY(-2px)}
html body.fi-body .staff-new-notifications-toggle:hover{color:#008fae!important;text-shadow:0 0 18px #009bb72b}
html.dark body.fi-body .staff-new-notification-card:hover{background:linear-gradient(115deg,#163755,#185064)!important;border-color:#48c6dc!important;box-shadow:0 0 22px #009bb735}
}
.staff-new-notification-card:focus-visible,.staff-new-notifications-toggle:focus-visible{outline:3px solid #009bb7;outline-offset:3px}
.staff-new-notification-card:active{transform:scale(.995);background:#dff5fc}
@media(prefers-reduced-motion:reduce){.staff-new-notification-card,.staff-new-notifications-toggle{transition:none!important;transform:none!important}}

.portal-temporary-clickable{cursor:pointer;border-radius:24px;transition:transform .2s ease,box-shadow .2s ease}
@media(hover:hover){.portal-temporary-clickable:hover{transform:translateY(-2px);box-shadow:0 0 0 1px #009bb73b,0 0 24px #009bb729,0 10px 25px #09297513}}
.portal-temporary-clickable:focus-visible{outline:3px solid #009bb7;outline-offset:4px}
@media(prefers-reduced-motion:reduce){.portal-temporary-clickable{transition:none;transform:none!important}}

.staff-task-bell .staff-task-bell-item.is-overdue{background:#fff0f2;border:1px solid #f4bcc7;border-inline-start:3px solid #df3653;margin-bottom:6px}
.staff-task-bell .staff-task-bell-item.is-overdue strong{color:#a91735}
.staff-task-bell .staff-task-bell-item.is-overdue :is(small,time){color:#a23f54}
.staff-task-bell .staff-task-bell-item.is-overdue .staff-task-reminder-symbol{color:#d12646;background:#ffdce4}
.staff-task-bell .staff-task-bell-item.is-overdue i{background:#dc2548}
.staff-reminder-overdue-label{display:inline-block!important;width:fit-content;font-size:9px!important;font-weight:750;text-transform:uppercase;letter-spacing:.07em;border-radius:6px;padding:2px 6px;margin:0 0 5px;background:#dc2548;color:#fff!important}
@media(hover:hover){.staff-task-bell .staff-task-bell-item.is-overdue:hover{background:#ffe2e8;box-shadow:0 0 15px #df36531a}}
html.dark .staff-task-bell .staff-task-bell-item.is-overdue{background:#4a2033;border-color:#943d55;border-inline-start-color:#fb6481}html.dark .staff-task-bell .staff-task-bell-item.is-overdue strong{color:#ffc7d3}html.dark .staff-task-bell .staff-task-bell-item.is-overdue :is(small,time){color:#f2aab9}html.dark .staff-task-bell .staff-task-bell-item.is-overdue .staff-task-reminder-symbol{background:#6b2940;color:#ff9bb2}

.fi-fo-date-time-picker-time-inputs:has(.task-time-period){display:flex;align-items:center;justify-content:center;gap:8px;padding:12px 8px;border-top:1px solid #cfe0ef;margin-top:8px}
.fi-fo-date-time-picker-time-inputs:has(.task-time-period) input{width:48px;min-height:36px;border:1px solid #c6daeb;border-radius:9px;text-align:center;background:#edf6ff;color:#173d70}
.fi-fo-date-time-picker-time-inputs .task-time-period{width:69px;min-height:36px;border:1px solid #86c9dc;border-radius:9px;padding:5px 8px;background:#dff4fa;color:#007d99;font-size:13px;font-weight:700}
.dark .fi-fo-date-time-picker-time-inputs:has(.task-time-period) input,.dark .fi-fo-date-time-picker-time-inputs .task-time-period{background:#173650;color:#d8efff;border-color:#41667f}

/* Brand glow and gentle interaction for dashboard Quick Actions. */
.portal-quick-actions a{position:relative;overflow:hidden;isolation:isolate;transition:transform .22s cubic-bezier(.22,1,.36,1),box-shadow .22s ease,border-color .22s ease!important}
.portal-quick-actions a::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(110deg,transparent 20%,#6eddeb28 50%,transparent 80%);transform:translateX(-130%);transition:transform .65s ease}
@media(hover:hover){html body.fi-body .portal-quick-actions a:hover{transform:translateY(-3px);border-color:#009bb7!important;box-shadow:0 0 0 1px #009bb720,0 0 20px #009bb72d,0 7px 18px #09297515!important}.portal-quick-actions a:hover::after{transform:translateX(130%)}.portal-quick-actions a:hover svg{transform:scale(1.12)}}
.portal-quick-actions a svg{transition:transform .22s ease}
.portal-quick-actions a:active{transform:scale(.97);box-shadow:0 0 14px #009bb735!important}
.portal-quick-actions a:focus-visible{outline:3px solid #009bb7;outline-offset:3px;box-shadow:0 0 18px #009bb730!important}
@media(prefers-reduced-motion:reduce){.portal-quick-actions a,.portal-quick-actions a svg,.portal-quick-actions a::after{transition:none!important;transform:none!important}.portal-quick-actions a::after{display:none}}

/* Needs Attention cards match the Quick Actions motion using their own status colours. */
.portal-attention .dashboard-attention-card{position:relative;overflow:hidden;isolation:isolate;transition:transform .22s cubic-bezier(.22,1,.36,1),box-shadow .22s ease,border-color .22s ease!important}
.portal-attention .dashboard-attention-card::before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(110deg,transparent 20%,rgba(var(--attention-rgb),.11) 50%,transparent 80%);transform:translateX(-130%);transition:transform .65s ease;z-index:0}
.portal-attention .attention-status-icon{transition:transform .22s ease,box-shadow .22s ease}
@media(hover:hover){html body.fi-body .portal-attention .dashboard-attention-card:hover{transform:translateY(-4px) scale(1.005)!important;border-color:rgba(var(--attention-rgb),.7)!important;box-shadow:0 0 0 1px rgba(var(--attention-rgb),.15),0 0 24px rgba(var(--attention-rgb),.24),0 9px 22px rgba(var(--attention-rgb),.13)!important}.portal-attention .dashboard-attention-card:hover::before{transform:translateX(130%)}.portal-attention .dashboard-attention-card:hover .attention-status-icon{transform:scale(1.09);box-shadow:0 0 17px rgba(var(--attention-rgb),.24)}}
html body.fi-body .portal-attention .dashboard-attention-card:active{transform:scale(.985)!important}
.portal-attention .dashboard-attention-card:focus-visible{outline:3px solid rgba(var(--attention-rgb),.8);outline-offset:3px}
@media(prefers-reduced-motion:reduce){.portal-attention .dashboard-attention-card,.portal-attention .dashboard-attention-card::before,.portal-attention .attention-status-icon{transition:none!important;transform:none!important}.portal-attention .dashboard-attention-card::before{display:none}}

html body.fi-body .portal-attention .attention-status-icon{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;border-radius:14px;background:rgba(var(--attention-rgb),.13);color:rgb(var(--attention-rgb));border:1px solid rgba(var(--attention-rgb),.18)}
html body.fi-body .portal-attention .attention-status-icon svg{display:block;width:25px;height:25px;opacity:1;stroke-width:1.8}
.portal-attention .attention-status-copy{min-width:0}

.staff-task-bell-panel{transform-origin:top right;will-change:transform,opacity}
.work-reminder-enter{transition:opacity .22s ease,transform .28s cubic-bezier(.22,1,.36,1)}
.work-reminder-leave{transition:opacity .15s ease,transform .18s ease}
.work-reminder-hidden{opacity:0;transform:translateY(-7px) scale(.98)}
.work-reminder-visible{opacity:1;transform:translateY(0) scale(1)}
.staff-task-bell .staff-task-bell-item{transition:background .18s ease,box-shadow .18s ease,transform .18s ease;border-radius:14px}
.staff-task-reminder-symbol{transition:transform .2s ease,box-shadow .2s ease}
@media(hover:hover){.staff-task-bell .staff-task-bell-item:not(.is-overdue):hover{background:#ddf3fc;box-shadow:inset 0 0 0 1px #009bb72b,0 0 14px #009bb712;transform:translateX(2px)}.staff-task-bell-item:hover .staff-task-reminder-symbol{transform:scale(1.08);box-shadow:0 0 12px #009bb726}.staff-task-bell-item.is-overdue:hover .staff-task-reminder-symbol{box-shadow:0 0 12px #df36532b}.dark .staff-task-bell .staff-task-bell-item:not(.is-overdue):hover{background:#23445d}}
.staff-task-bell-item:active{transform:scale(.985)}
@media(prefers-reduced-motion:reduce){.work-reminder-enter,.work-reminder-leave,.staff-task-bell .staff-task-bell-item,.staff-task-reminder-symbol{transition:none!important;transform:none!important}.staff-task-bell-panel{will-change:auto}}

.dashboard-finance-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.dashboard-finance-metric{display:flex;align-items:center;gap:13px;padding:20px 16px;border:1px solid rgba(var(--finance-rgb),.25);border-radius:17px;background:linear-gradient(130deg,#fff,rgba(var(--finance-rgb),.12));color:#123366;text-decoration:none;min-width:0;transition:transform .2s,box-shadow .2s}.dashboard-finance-metric>span{display:grid;place-items:center;width:40px;height:40px;flex-shrink:0;background:rgba(var(--finance-rgb),.12);color:rgb(var(--finance-rgb));border-radius:13px}.dashboard-finance-metric svg{width:23px;height:23px}.dashboard-finance-metric small{display:block;font-size:12px;margin-bottom:7px}.dashboard-finance-metric strong{display:block;font-size:22px;line-height:1.3;overflow-wrap:anywhere}.dashboard-finance-metric>div{min-width:0}.dashboard-finance-metric:hover{transform:translateY(-3px);box-shadow:0 0 20px rgba(var(--finance-rgb),.18)}
.dark .dashboard-finance-metric{background:linear-gradient(130deg,#0b2443,rgba(var(--finance-rgb),.2));border-color:rgba(var(--finance-rgb),.5);color:#e9f3ff}.dark .dashboard-finance-metric>span{color:#c6f3ff}
@media(max-width:1000px){.dashboard-finance-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.dashboard-finance-metric{padding:15px 10px;gap:9px}.dashboard-finance-metric strong{font-size:18px}.dashboard-finance-metric>span{width:32px;height:32px}.dashboard-finance-metric small{font-size:10px}}
@media(prefers-reduced-motion:reduce){.dashboard-finance-metric{transition:none;transform:none!important}}

.procedure-checklist-row{display:flex;align-items:flex-start;gap:10px;padding:9px 0;border-bottom:1px solid #d9e8f2}.procedure-checklist-row:last-child{border-bottom:0}.procedure-checklist-row input[type=checkbox]{appearance:auto!important;width:18px!important;height:18px!important;min-width:18px;margin:2px 0 0;padding:0;accent-color:#009bb7;cursor:pointer;flex-shrink:0}.procedure-checklist-row>div{min-width:0;font-size:12px;line-height:1.5}.procedure-checklist-row strong{font-weight:500;overflow-wrap:anywhere}.procedure-checklist-row small{display:inline-block;font-size:9px;margin-left:6px;padding:1px 5px;background:#e3eef9;border-radius:5px;color:#527298}.procedure-checklist-state{display:block;font-size:10px;color:#7184a0}.procedure-checklist-state.is-ready{color:#118259;font-weight:600}.procedure-checklist-row a{display:block;color:#0088a4;font-size:11px}.dark .procedure-checklist-row{border-color:#34506a}.dark .procedure-checklist-row small{background:#294460;color:#c8dff1}.dark .procedure-checklist-state.is-ready{color:#6de0ad}

/* Compact procedure document checklist. */
.procedure-document-checklist{padding:10px 12px!important;border-radius:12px!important;font-size:12px}
.procedure-document-checklist>strong{font-size:12px;display:block;margin-bottom:3px}
.procedure-document-checklist>p{font-size:11px;line-height:1.4;margin:3px 0 6px}
.procedure-document-checklist>.adc-action{font-size:10px!important;padding:4px 7px!important;min-height:0!important;margin:2px 0 5px!important;border-radius:7px!important}
.procedure-checklist-row{gap:7px;padding:6px 0;align-items:flex-start}
.procedure-checklist-row input[type=checkbox]{width:15px!important;height:15px!important;min-width:15px;margin-top:2px}
.procedure-checklist-row>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 5px;font-size:11px;line-height:1.4;flex:1}
.procedure-checklist-row strong{font-size:11px;line-height:1.4;flex:1 1 auto}
.procedure-checklist-row small{font-size:8px;margin-left:0;padding:0 4px;white-space:nowrap}
.procedure-checklist-row .procedure-checklist-state{display:inline;font-size:9px;white-space:nowrap;margin-left:auto}
.procedure-checklist-row a{font-size:10px;flex-basis:100%}

/* Clear procedure hierarchy: details, full-width checklist, then actions. */
html body.fi-body .adc-procedure-card{background:linear-gradient(135deg,#ffffffdc,#f0f7ffcc);border:1px solid #d4e2f0;border-radius:18px;box-shadow:0 5px 18px #163c7407}
html body.fi-body .adc-procedure-main{padding:18px;gap:14px;grid-template-columns:38px minmax(0,1fr) minmax(90px,.7fr) minmax(100px,.7fr)}
html body.fi-body .adc-procedure-name{color:#12366f;font-size:14px;line-height:1.4}
html body.fi-body .adc-value{color:#254e80;font-size:12px}
html body.fi-body .adc-label{color:#6b83a1;font-size:10px}
html body.fi-body .adc-procedure-number{background:#eaf3fc;border-color:#cfdfef;color:#325c8a;width:35px;height:35px}
html body.fi-body .adc-procedure-main>.adc-procedure-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:9px;min-width:0;width:100%}
html body.fi-body .adc-procedure-actions>.procedure-document-checklist{order:-1;flex:1 0 100%;width:100%;min-width:0;margin:0 0 7px!important;padding:13px 14px!important;background:#f5faff;border-color:#cee5ef!important;box-sizing:border-box}
.procedure-document-checklist>strong{display:inline-block!important;font-size:12px;margin-bottom:8px;color:#16396c}
html body.fi-body .procedure-document-checklist>.adc-action{float:right;margin:0 0 6px 9px!important;padding:5px 9px!important;border:1px solid #b7dce9;background:#e4f5fa;color:#007e9d;font-size:10px!important;font-weight:650}
.procedure-document-checklist>.procedure-checklist-row{clear:both;padding:8px 0;gap:9px}
.procedure-checklist-row>div{display:flex;align-items:center;gap:5px 7px;min-width:0;flex:1;font-size:12px}
.procedure-checklist-row strong{flex:1 1 160px;font-size:11px;line-height:1.5}
.procedure-checklist-row .procedure-checklist-state{padding:2px 7px;border-radius:7px;background:#edf1f7;color:#617793;font-size:9px;margin-left:auto}
.procedure-checklist-row .procedure-checklist-state.is-ready{background:#e1f5eb;color:#087c52}
html body.fi-body .adc-procedure-detail{background:#eaf2fa;color:#587597;border-top:1px solid #d8e5f1;padding:12px 18px}
html.dark body.fi-body .adc-procedure-card{background:linear-gradient(135deg,#142c46,#10223b);border-color:#35506d}
html.dark body.fi-body .adc-procedure-name,html.dark body.fi-body .adc-value{color:#dceeff}
html.dark body.fi-body .adc-label{color:#9ab6d2}
html.dark body.fi-body .adc-procedure-actions>.procedure-document-checklist{background:#102b43;border-color:#365976!important}
html.dark .procedure-document-checklist>strong{color:#e0f1ff}
html.dark .procedure-checklist-row .procedure-checklist-state{background:#28425a;color:#c2d6e9}
html.dark .procedure-checklist-row .procedure-checklist-state.is-ready{background:#164937;color:#8ae4bb}
@media(max-width:640px){html body.fi-body .adc-procedure-main{grid-template-columns:35px minmax(0,1fr);padding:14px;gap:11px}html body.fi-body .adc-procedure-main>div:nth-child(3),html body.fi-body .adc-procedure-main>div:nth-child(4){grid-column:auto}html body.fi-body .adc-procedure-actions>.procedure-document-checklist{padding:11px!important}.procedure-checklist-row strong{flex-basis:120px}}

@media(max-width:767px){.fi-page-content:has(>.portal-dashboard){display:flex;flex-direction:column}.dashboard-celebrations{order:2}.portal-dashboard{order:1}}
