/* Shared admin foundations; the dashboard uses the same tokens in both themes. */
:root { --po-bg:#f6f7f9; --po-card:#fff; --po-text:#202b37; --po-muted:#7b8491; --po-border:#e9ecf0; --po-soft:#f5f7f9; --po-accent:#d9f6a3; --po-green:#477a21; --po-sidebar:#fff; --po-nav:#596575; --po-nav-icon:#7b8796; --po-nav-hover:#f0f3f6; }
.dark { --po-bg:#11161c; --po-card:#1a2129; --po-text:#edf1f5; --po-muted:#96a2af; --po-border:#2b343f; --po-soft:#222c36; --po-green:#c4eb93; --po-sidebar:#18222d; --po-nav:#aebac7; --po-nav-icon:#8698aa; --po-nav-hover:#273441; }
.fi-body { background:var(--po-bg); }
.fi-sidebar { background:var(--po-sidebar); border-inline-end:1px solid var(--po-border); }
.fi-sidebar-nav { padding-top:30px; scrollbar-width:thin; scrollbar-color:var(--po-border) transparent; }
.fi-sidebar-item .fi-sidebar-item-label { color:var(--po-nav); font-size:13px; font-weight:500; }
.fi-sidebar-item .fi-icon { color:var(--po-nav-icon); }
.fi-sidebar-item .fi-sidebar-item-btn { padding:12px 14px; border-radius:9px; }
.fi-sidebar-item.fi-active .fi-sidebar-item-btn { background:#d9f6a3; }
.fi-sidebar-item.fi-active .fi-sidebar-item-label,.fi-sidebar-item.fi-active .fi-icon { color:#243222; }
.fi-sidebar-item:not(.fi-active) .fi-sidebar-item-btn:hover { background:var(--po-nav-hover); }
.fi-sidebar-group-label { color:#718395; font-size:10px; text-transform:uppercase; letter-spacing:1.5px; }
.fi-sidebar-group-btn .fi-icon { color:#718395; }
.fi-topbar { border-bottom:1px solid var(--po-border); box-shadow:none; }
.fi-topbar > nav { background:var(--po-card); box-shadow:none; }
.fi-logo { font-weight:800; letter-spacing:-1px; }
.fi-main { padding-top:30px; }
.po-dashboard { color:var(--po-text); font-size:13px; }
.po-dashboard *, .po-dashboard *::before, .po-dashboard *::after { box-sizing:border-box; }
.po-dashboard a { text-decoration:none; }
.po-dashboard a:focus-visible,.po-dashboard select:focus-visible { outline:2px solid #8dbf46; outline-offset:5px; }
.po-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; margin:0 0 28px; }
.po-eyebrow { color:var(--po-muted); font-size:9px; letter-spacing:2px; font-weight:700; margin-bottom:8px; }
.po-heading h1 { font-size:34px; line-height:1.2; font-weight:650; letter-spacing:-1.5px; }
.po-heading h1 span { color:#8dbf46; }
.po-heading p { color:var(--po-muted); margin-top:8px; font-size:13px; }
.po-date { display:flex; align-items:center; gap:8px; color:var(--po-muted); font-size:11px; white-space:nowrap; }
.po-date svg,.po-filter svg { width:16px; height:16px; }
.po-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin-bottom:32px; }
.po-metric { border:1px solid var(--po-border); background:var(--po-card); border-radius:12px; padding:20px; transition:border-color .2s, transform .2s; }
a.po-metric:hover { border-color:#8dbf46; transform:translateY(-2px); }
.po-metric-top { display:flex; justify-content:space-between; align-items:center; gap:8px; color:var(--po-muted); font-size:11px; font-weight:500; }
.po-icon { display:flex; align-items:center; justify-content:center; width:34px; height:34px; background:var(--po-soft); color:var(--po-muted); border-radius:9px; flex-shrink:0; }
.po-icon svg { width:18px; height:18px; }
.po-metric:first-child .po-icon { color:var(--po-green); background:color-mix(in srgb, #8dbf46 15%, var(--po-card)); }
.po-metric > strong { display:block; font-size:32px; line-height:1; font-weight:600; letter-spacing:-1px; margin:13px 0; font-variant-numeric:tabular-nums; }
.po-metric p { color:var(--po-muted); font-size:10px; }
.po-section-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; }
.po-section-heading h2,.po-editor h2 { font-size:17px; font-weight:600; letter-spacing:-.4px; }
.po-section-heading p { color:var(--po-muted); font-size:11px; margin-top:4px; }
.po-filter { display:flex; align-items:center; gap:8px; border:1px solid var(--po-border); background:var(--po-card); border-radius:7px; padding:9px 12px; }
.po-filter svg { color:var(--po-muted); }
.po-filter select { background:transparent; border:0; color:var(--po-text); font-size:11px; padding:0 20px 0 0; cursor:pointer; }
.po-filter option { background:var(--po-card); }
.po-analytics { display:grid; grid-template-columns:minmax(0,2fr) minmax(230px,1fr); gap:20px; margin-bottom:22px; }
.po-card { background:var(--po-card); border:1px solid var(--po-border); border-radius:12px; overflow:hidden; }
.po-card-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.po-card-heading h3 { font-size:13px; font-weight:600; }
.po-card-heading p { color:var(--po-muted); font-size:10px; margin-top:5px; }
.po-trend,.po-status { padding:22px; }
.po-legend { display:flex; align-items:center; gap:6px; font-size:9px; color:var(--po-muted); }
.po-legend i { height:6px; width:6px; border-radius:50%; background:#8dbf46; }
.po-chart-total { display:flex; align-items:baseline; gap:8px; margin-top:22px; }
.po-chart-total strong { font-size:28px; font-weight:600; letter-spacing:-1px; }
.po-chart-total span { font-size:10px; color:var(--po-muted); }
.po-chart { width:100%; height:auto; min-height:170px; margin-top:6px; overflow:visible; }
.po-chart text { fill:var(--po-muted); font-size:10px; }
.po-gridline { stroke:var(--po-border); stroke-dasharray:4 4; }
.po-chart-point { fill:var(--po-card); stroke:#8dbf46; stroke-width:2; opacity:0; }
.po-chart-point:hover { opacity:1; r:6; }
.po-chart-empty { text-align:center; color:var(--po-muted); font-size:10px; margin-top:4px; }
.po-donut { width:145px; height:145px; border-radius:50%; background:conic-gradient(#a8cf78 0 var(--accepted), #7189c4 var(--accepted) var(--completed), #e5a391 var(--completed) 100%); margin:23px auto; padding:16px; }
.po-donut.po-donut-empty { background:var(--po-soft); }
.po-donut div { background:var(--po-card); border-radius:50%; height:100%; display:flex; align-items:center; justify-content:center; flex-direction:column; }
.po-donut strong { font-size:28px; font-weight:600; letter-spacing:-1px; line-height:1.3; }
.po-donut span { font-size:9px; color:var(--po-muted); }
.po-status-list { display:grid; gap:13px; }
.po-status-list > div { display:flex; align-items:center; gap:12px; font-size:11px; }
.po-status-list span { display:flex; align-items:center; gap:8px; flex:1; color:var(--po-muted); }
.po-status-list strong { font-weight:600; }.po-status-list small { width:32px; text-align:right; font-size:10px; color:var(--po-muted); }
.po-dot { width:7px; height:7px; border-radius:50%; background:#a8cf78; }.po-dot.completed { background:#7189c4; }.po-dot.canceled { background:#e5a391; }
.po-recent > .po-card-heading { padding:22px; }
.po-text-link { display:flex; gap:12px; align-items:center; font-size:11px; font-weight:600; color:var(--po-green); }
.po-table-wrap { position:relative; overflow-x:auto; }
.po-recent table { width:100%; border-collapse:collapse; text-align:left; white-space:nowrap; }
.po-recent th { background:var(--po-soft); color:var(--po-muted); font-size:9px; text-transform:uppercase; letter-spacing:.7px; font-weight:500; padding:12px 22px; }
.po-recent td { border-top:1px solid var(--po-border); padding:15px 22px; font-size:11px; }
.po-recent td small { display:block; color:var(--po-muted); font-size:9px; margin-top:4px; }
.po-person { display:flex; align-items:center; gap:10px; }.po-person strong { font-weight:500; }
.po-avatar { width:30px; height:30px; display:flex; align-items:center; justify-content:center; border-radius:50%; background:var(--po-soft); color:var(--po-muted); font-weight:600; }
.po-badge { display:inline-flex; align-items:center; gap:5px; border-radius:5px; padding:4px 7px; font-size:9px; background:var(--po-soft); }
.po-badge::before { content:''; width:4px; height:4px; background:currentColor; border-radius:50%; }
.po-badge.accepted { color:var(--po-green); background:color-mix(in srgb, #a8cf78 15%, var(--po-card)); }.po-badge.completed { color:#829bd9; background:color-mix(in srgb, #7189c4 12%, var(--po-card)); }.po-badge.canceled { color:#ce8270; background:color-mix(in srgb, #e5a391 12%, var(--po-card)); }
.po-row-link { color:var(--po-muted); font-size:16px; padding:8px; }.po-row-link:hover { color:var(--po-green); }
.po-empty { padding:20px; text-align:center; white-space:normal; color:var(--po-muted); }.po-empty svg { width:28px; margin:0 auto 10px; }.po-empty strong { display:block; color:var(--po-text); font-size:13px; }.po-empty p { margin-top:6px; font-size:11px; }
.po-listings { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-top:22px; }
.po-listings a { display:flex; align-items:center; gap:12px; padding:17px; border:1px solid var(--po-border); border-radius:10px; background:var(--po-card); }.po-listings a:hover { border-color:#8dbf46; }
.po-listings strong { font-size:11px; font-weight:600; }.po-listings p { font-size:10px; color:var(--po-muted); margin-top:3px; }.po-arrow { margin-left:auto; font-size:17px; color:var(--po-muted); }
.po-footer { display:flex; justify-content:space-between; gap:10px; color:var(--po-muted); font-size:9px; padding:28px 0 0; }.po-footer-divider { padding:0 8px; opacity:.4; }
.po-editor { padding:28px; }.po-editor p { color:var(--po-muted); margin:8px 0 24px; }.po-editor-links { display:flex; gap:28px; }
.po-updating { opacity:.5; }.po-loading { color:var(--po-muted); padding-bottom:10px; font-size:11px; }.po-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media(min-width:1600px) { .po-chart { max-height:270px; } }
@media(max-width:1100px) { .po-metrics { gap:10px; }.po-metric { padding:15px; }.po-metric-top { font-size:10px; }.po-icon { width:28px; height:28px; }.po-analytics { gap:14px; grid-template-columns:minmax(0,1.8fr) minmax(220px,1fr); }.po-trend,.po-status { padding:18px; }.po-legend { display:none; } }
@media(max-width:767px) { .po-heading { align-items:flex-start; }.po-heading h1 { font-size:28px; }.po-date { display:none; }.po-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); margin-bottom:24px; }.po-analytics { grid-template-columns:1fr; }.po-chart { min-height:140px; }.po-listings { grid-template-columns:1fr; gap:10px; }.po-heading p { font-size:11px; }.po-filter { padding:8px; }.po-section-heading h2 { font-size:15px; }.po-recent th,.po-recent td { padding-left:16px; padding-right:16px; }.po-status { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:16px; }.po-status .po-card-heading { grid-column:1/-1; }.po-donut { margin:4px auto; width:130px; height:130px; }.po-status-list { padding-right:8px; }.po-footer { font-size:8px; } }
@media(prefers-reduced-motion:reduce) { .po-metric { transition:none; } }

/* Resource pages share the dashboard's surfaces and visual hierarchy. */
.fi-header-heading { color:var(--po-text); font-size:30px; font-weight:650; letter-spacing:-1px; }
.fi-header-subheading { color:var(--po-muted); font-size:13px; line-height:1.6; }
.fi-breadcrumbs { color:var(--po-muted); font-size:11px; }
.fi-ta-ctn { background:var(--po-card); border:1px solid var(--po-border); border-radius:12px; box-shadow:none; }
.fi-ta-header-toolbar { padding:16px 20px; gap:16px; }
.fi-ta-table thead { background:var(--po-soft); }
.fi-ta-header-cell { color:var(--po-muted); font-size:11px; font-weight:600; padding-top:14px; padding-bottom:14px; }
.fi-ta-header-cell-label { color:var(--po-muted); font-size:11px; font-weight:600; }
.fi-ta-cell .fi-ta-text { padding-top:18px; padding-bottom:18px; }
.fi-ta-text-item { font-size:12px; }
.fi-ta-row { border-color:var(--po-border); }
.fi-ta-row:not(.fi-ta-group-header-row):hover { background:var(--po-soft); }
.fi-ta-ctn .fi-pagination { border-color:var(--po-border); padding:16px 20px; }
.fi-ta-ctn .fi-pagination-overview { color:var(--po-muted); font-size:11px; }
.fi-ta-ctn .fi-input-wrp { border-radius:8px; background:var(--po-card); }
.fi-ta-ctn .fi-badge { border-radius:5px; font-size:10px; font-weight:500; }
.fi-section { border-radius:12px; border-color:var(--po-border); box-shadow:none; }
@media(max-width:767px) { .fi-header-heading { font-size:26px; }.fi-ta-header-toolbar { padding:12px 16px; }.fi-ta-cell .fi-ta-text { padding-top:15px; padding-bottom:15px; } }
