/* ============================================================
   ORNIX STAFF SKIN
   Loaded by management/base.html and the staff sign-in pages, after brand.css and site.css.
   Brings the staff system in line with the client portal and website: deep navy surfaces, coral
   accent, cool grey page, white 16px cards, DM Sans / Plus Jakarta Sans, line icons. Everything is
   scoped to body.staff-body, so the client portal is unaffected.
   ============================================================ */

body.staff-body {
  /* Re-point the shared brand tokens so every existing staff component picks up the new palette. */
  --ornix-navy: #0B2A4A;
  --ornix-orange: #FF5B35;
  --ornix-orange-dark: #C2410C;
  --ornix-orange-tint: #FDEEE9;
  --ornix-grey: #667085;
  --ornix-grey-tint: #E3E7EE;
  --ornix-good: #1E7B4F;
  --ornix-good-tint: #E2F1E7;
  --ornix-font-body: 'DM Sans', Arial, Helvetica, sans-serif;

  --st-navy: #0B2A4A;
  --st-navy-2: #17395F;
  --st-navy-3: #21476F;
  --st-orange: #FF5B35;
  --st-orange-text: #C2410C;
  --st-orange-tint: #FDEEE9;
  --st-bg: #F3F5F9;
  --st-border: #E3E7EE;
  --st-field: #D9DEE6;
  --st-ink: #111827;
  --st-text: #344054;
  --st-muted: #667085;
  --st-green: #1E7B4F;
  --st-green-tint: #E2F1E7;
  --st-blue-tint: #E6ECF5;
  --st-amber: #7A5300;
  --st-amber-tint: #FDF3D2;
  --st-red: #B42318;
  --st-red-tint: #FDECEA;
  --st-head: 'Plus Jakarta Sans', 'DM Sans', Arial, sans-serif;

  background: var(--st-bg);
  color: var(--st-text);
  font-family: 'DM Sans', Arial, Helvetica, sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
.staff-body h1, .staff-body h2, .staff-body h3 { font-family: var(--st-head); color: var(--st-navy); letter-spacing: -0.01em; }
.staff-body .ico { width: 20px; height: 20px; flex: none; display: block; }

/* ---------- sidebar (navy) ---------- */
.staff-body .mgmt-sidebar { background: var(--st-navy); border-right: 0; padding: 22px 14px 16px; width: 256px; }
.staff-body .mgmt-sidebar-logo { gap: 10px; padding: 2px 12px; margin-bottom: 6px; }
.staff-body .mgmt-sidebar-logo img { width: auto; height: 30px; }
.mgmt-wordmark { font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif; font-weight: 800; font-size: 1.28rem; letter-spacing: 0.12em; color: #fff; }
.mgmt-wordmark-tag { align-self: flex-start; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em; color: var(--st-orange, #FF5B35); margin: 2px 0 0 -4px; }
.staff-body .mgmt-sidebar-tag { color: rgba(255,255,255,0.5); padding: 4px 12px 18px; letter-spacing: 0.14em; }
.staff-body .mgmt-nav { gap: 1px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.18) transparent; }
.staff-body .mgmt-nav-group { color: rgba(255,255,255,0.45); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 18px 12px 6px; margin: 0; }
.staff-body .mgmt-nav a { color: rgba(255,255,255,0.78); font-weight: 500; font-size: 0.93rem; padding: 9px 12px; border-radius: 10px; gap: 12px; }
.staff-body .mgmt-nav a .ico { width: 19px; height: 19px; color: rgba(255,255,255,0.6); }
.staff-body .mgmt-nav a:hover { background: rgba(255,255,255,0.07); color: #fff; }
.staff-body .mgmt-nav a:hover .ico { color: #fff; }
.staff-body .mgmt-nav a.active { background: var(--st-navy-2); color: #fff; font-weight: 700; }
.staff-body .mgmt-nav a.active .ico { color: var(--st-orange); }
.staff-body .mgmt-nav a.active::before { content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--st-orange); }
.staff-body .mgmt-nav .nav-badge { margin-left: auto; background: rgba(255,255,255,0.14); color: #fff; }
.staff-body .mgmt-nav .nav-badge-red { background: var(--st-orange); color: var(--st-navy); }

.staff-body .mgmt-sidebar-foot { background: var(--st-navy); border-top: 1px solid rgba(255,255,255,0.1); padding-top: 14px; }
.staff-body .mgmt-sidebar-user { padding: 4px 10px 10px; }
.staff-body .mgmt-sidebar-user .avatar-circle { background: var(--st-orange); color: var(--st-navy); font-family: var(--st-head); }
.staff-body .mgmt-sidebar-user-name { color: #fff; }
.staff-body .mgmt-sidebar-user-role { color: rgba(255,255,255,0.55); }
.staff-body .mgmt-logout-link { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.65); font-size: 0.88rem; }
.staff-body .mgmt-logout-link .ico { width: 17px; height: 17px; }
.staff-body .mgmt-logout-link:hover { color: #fff; }

/* ---------- top bar ---------- */
.staff-body .mgmt-topbar { padding: 14px 32px; min-height: 68px; border-bottom: 1px solid var(--st-border); position: sticky; top: 0; z-index: 40; }
.staff-body .mgmt-topbar-title { font-family: var(--st-head); font-weight: 800; font-size: 1.08rem; color: var(--st-navy); }
.topbar-link { display: inline-flex; align-items: center; gap: 6px; color: var(--st-muted, #667085); font-size: 0.9rem; font-weight: 600; text-decoration: none; padding: 7px 10px; border-radius: 10px; }
.topbar-link .ico { width: 17px; height: 17px; }
.topbar-link:hover, .topbar-link.active { background: var(--st-bg, #F3F5F9); color: var(--st-navy, #0B2A4A); }
.staff-body .topbar-bell { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--st-navy); background: var(--st-bg); text-decoration: none; position: relative; }
.staff-body .topbar-bell:hover { background: var(--st-blue-tint); }
.staff-body .topbar-bell .nav-badge { position: absolute; top: -5px; right: -5px; }
.staff-body .switcher.notif-bell summary { padding: 0; border: 0; border-radius: 12px; color: var(--st-navy); background: var(--st-bg); }
.staff-body .switcher.notif-bell summary:hover { background: var(--st-blue-tint); }
.staff-body .topbar-logout { border: 1.5px solid var(--st-border); border-radius: 12px; padding: 8px 14px; font-weight: 700; color: var(--st-navy); }
.staff-body .topbar-logout:hover { border-color: var(--st-navy); background: #fff; }
.staff-body .switcher summary { border-radius: 12px; border-color: var(--st-orange-text); color: var(--st-orange-text); padding: 8px 14px; }
.staff-body .switcher-menu { border-radius: 16px; border-color: var(--st-border); box-shadow: 0 18px 40px rgba(11,42,74,0.16); }
.staff-body .switcher-item { border-radius: 10px; }
.staff-body .switcher-item:hover { background: var(--st-bg); }
.staff-body .switcher-item.current { background: var(--st-blue-tint); }
.staff-body .switch-banner { background: var(--st-navy); border-radius: 14px; padding: 12px 18px; }
.staff-body .switch-return { background: var(--st-orange); color: var(--st-navy); border-radius: 10px; }

/* mobile menu (the sidebar slides in) */
.mgmt-menu-btn { display: none; }
.mgmt-scrim { display: none; }
@media (max-width: 960px) {
  .mgmt-menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; border: 1.5px solid var(--st-border); background: #fff; color: var(--st-navy); cursor: pointer; margin-right: 12px; }
  .staff-body .mgmt-sidebar { display: flex; position: fixed; left: 0; top: 0; bottom: 0; z-index: 70; transform: translateX(-100%); transition: transform 0.2s ease; }
  .staff-body.menu-open .mgmt-sidebar { transform: none; box-shadow: 0 0 40px rgba(0,0,0,0.3); }
  .staff-body.menu-open .mgmt-scrim { display: block; position: fixed; inset: 0; background: rgba(11,42,74,0.4); z-index: 60; }
  .staff-body .mgmt-topbar { padding: 12px 16px; }
  .staff-body .topbar-link-site, .staff-body .topbar-logout { display: none; }  /* both are in the slide-in menu or not needed on a phone */
  .staff-body .mgmt-topbar-title { font-size: 1rem; }
}

/* ---------- content ---------- */
.staff-body .mgmt-content { padding: 28px 32px 48px; max-width: 1280px; }
.staff-body .page-header { margin-bottom: 24px; gap: 16px; }
.staff-body .page-header h1 { font-size: 1.65rem; font-weight: 800; line-height: 1.2; }
.staff-body .page-header p { color: var(--st-muted); font-size: 0.97rem; }
.staff-body .breadcrumb { color: var(--st-muted); font-size: 0.9rem; margin-bottom: 10px; }
.staff-body .breadcrumb a:hover { color: var(--st-navy); text-decoration: underline; }
.staff-body .text-muted { color: var(--st-muted); }

/* cards */
.staff-body .ornix-card { background: #fff; border: 1px solid var(--st-border); border-radius: 16px; box-shadow: 0 1px 2px rgba(11,42,74,0.03); }
.staff-body .detail-card { padding: 24px; margin-bottom: 20px; }
.staff-body .detail-card h2, .staff-body .card-header-row h2 { font-size: 1.08rem; font-weight: 800; }
.staff-body .detail-row { border-bottom-color: var(--st-border); padding: 12px 0; }
.staff-body .detail-row .label { color: var(--st-muted); }
.staff-body .detail-row .value { color: var(--st-ink); }
.staff-body .detail-grid { gap: 20px; }
.staff-body .form-card { padding: 28px; border-radius: 16px; }
.staff-body .chart-card { padding: 24px; }

/* stat cards */
.staff-body .stat-grid { gap: 16px; }
.staff-body .stat-card { padding: 20px 22px; position: relative; overflow: hidden; }
.staff-body .stat-card .stat-label { color: var(--st-muted); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.07em; }
.staff-body .stat-card .stat-value { font-family: var(--st-head); font-size: 1.85rem; color: var(--st-navy); margin-top: 6px; font-variant-numeric: tabular-nums; }
.staff-body .stat-card::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--st-blue-tint); }
.staff-body .stat-link:hover { box-shadow: 0 10px 24px rgba(11,42,74,0.1); }
.staff-body .stat-link:hover .stat-card::after, .staff-body a.stat-card:hover::after { background: var(--st-orange); }

/* tables */
.staff-body .data-table th { background: #F8FAFC; color: var(--st-muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; border-bottom: 1px solid var(--st-border); padding: 12px 18px; }
.staff-body .data-table td { border-bottom-color: #EEF1F5; padding: 13px 18px; color: var(--st-text); }
.staff-body .data-table tbody tr:hover td { background: #F8FAFC; }
.staff-body .data-table a.row-link { color: var(--st-navy); font-weight: 700; }
.staff-body .data-table a.row-link:hover { color: var(--st-orange-text); text-decoration: underline; text-underline-offset: 3px; }
.staff-body .table-card { border-radius: 16px; overflow: hidden; }
.staff-body .table-card .table-scroll { overflow-x: auto; }

/* badges and pills */
.staff-body .status-badge, .staff-body .pill { border-radius: 999px; font-weight: 700; font-size: 0.76rem; padding: 4px 11px; }
.staff-body .pill { background: var(--st-bg); color: var(--st-text); }
.staff-body .pill-ok { background: var(--st-green-tint); color: var(--st-green); }
.staff-body .pill-bad { background: var(--st-red-tint); color: var(--st-red); }
.staff-body .status-pending { background: var(--st-amber-tint); color: var(--st-amber); }
.staff-body .status-active { background: var(--st-green-tint); color: var(--st-green); }
.staff-body .status-paid { background: var(--st-blue-tint); color: var(--st-navy); }
.staff-body .status-defaulted { background: var(--st-red-tint); color: var(--st-red); }
.staff-body .status-cancelled, .staff-body .status-written_off { background: var(--st-bg); color: var(--st-muted); }
.staff-body .status-refinanced { background: var(--st-blue-tint); color: var(--st-navy); }
.staff-body .status-badge.app-draft, .staff-body .status-badge.app-ready_for_vetting, .staff-body .status-badge.app-in_vetting { background: var(--st-blue-tint); color: var(--st-navy); }
.staff-body .status-badge.app-compliance_review, .staff-body .status-badge.app-referred, .staff-body .status-badge.app-pending_approval { background: var(--st-amber-tint); color: var(--st-amber); }
.staff-body .status-badge.app-approved, .staff-body .status-badge.app-ready_to_disburse, .staff-body .status-badge.app-disbursed { background: var(--st-green-tint); color: var(--st-green); }
.staff-body .status-badge.app-declined, .staff-body .status-badge.app-cancelled { background: var(--st-red-tint); color: var(--st-red); }
.staff-body .nav-badge { font-weight: 800; }
.staff-body .nav-badge-red { background: var(--st-red); color: #fff; }

/* buttons: navy for the main action, white outline for secondary (as in the client portal) */
.staff-body .ornix-button-primary { background: var(--st-navy); color: #fff; border-radius: 12px; padding: 0.72em 1.4em; font-size: 0.95rem; font-weight: 700; border: 1.5px solid var(--st-navy); }
.staff-body .ornix-button-primary:hover, .staff-body .ornix-button-primary:focus-visible { filter: none; background: var(--st-navy-3); border-color: var(--st-navy-3); }
.staff-body .ornix-button-secondary { background: #fff; color: var(--st-navy); border: 1.5px solid var(--st-field); border-radius: 12px; padding: 0.72em 1.4em; font-size: 0.95rem; }
.staff-body .ornix-button-secondary:hover, .staff-body .ornix-button-secondary:focus-visible { border-color: var(--st-navy); background: #fff; }
.staff-body .action-btn { border-radius: 10px; padding: 6px 12px; font-size: 0.8rem; background: var(--st-blue-tint); color: var(--st-navy); }
.staff-body .action-btn:hover { background: var(--st-navy); color: #fff; }
.staff-body .action-btn-muted { border-radius: 10px; background: var(--st-bg); }

/* toolbar, search and filter tabs */
.staff-body .search-input { border: 1.5px solid var(--st-field); border-radius: 12px; padding: 10px 14px; font-family: inherit; font-size: 0.95rem; }
.staff-body .search-input:focus { border-color: var(--st-navy); box-shadow: 0 0 0 3px rgba(11,42,74,0.1); }
.staff-body .filter-tabs { background: #E8ECF2; padding: 4px; border-radius: 14px; gap: 2px; }
.staff-body .filter-tab { border: 0; background: transparent; border-radius: 10px; color: var(--st-text); font-weight: 600; padding: 8px 14px; }
.staff-body .filter-tab:hover { background: rgba(255,255,255,0.6); color: var(--st-navy); }
.staff-body .filter-tab.active { background: #fff; color: var(--st-navy); font-weight: 800; box-shadow: 0 1px 3px rgba(11,42,74,0.1); }

/* forms */
.staff-body .form-group label { color: var(--st-text); font-weight: 700; font-size: 0.9rem; }
.staff-body .form-control { border: 1.5px solid var(--st-field); border-radius: 12px; padding: 11px 14px; font-family: inherit; font-size: 0.97rem; color: var(--st-ink); background: #fff; }
.staff-body .form-control:focus { border-color: var(--st-navy); box-shadow: 0 0 0 3px rgba(11,42,74,0.12); outline: none; }
.staff-body select.form-control { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%230B2A4A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.staff-body input[type="checkbox"], .staff-body input[type="radio"] { accent-color: var(--st-navy); }
.staff-body .form-errors { background: var(--st-red-tint); color: var(--st-red); border-radius: 10px; }

/* notices */
.staff-body .flash { border-radius: 12px; padding: 13px 16px; background: var(--st-blue-tint); color: var(--st-navy); }
.staff-body .flash-success { background: var(--st-green-tint); color: #145A39; }
.staff-body .flash-error { background: var(--st-red-tint); color: var(--st-red); }
.staff-body .flash-warning { background: var(--st-amber-tint); color: #5C3F00; }
.staff-body .alert-panel { border-radius: 16px; border: 1px solid #F6D9A8; background: #FFFAEF; }
.staff-body .alert-panel.alert-overdue { border-color: #F5C2BC; background: #FFF6F5; }
.staff-body .alert-panel.alert-overdue h3, .staff-body .alert-panel.alert-overdue p { color: var(--st-red); }
.staff-body .flag-note { background: var(--st-amber-tint); color: #5C3F00; border-radius: 10px; }
.staff-body .help-topic { border-color: var(--st-border); border-radius: 12px; background: #fff; }
.staff-body .help-topic[open] { border-color: #C9D3E1; background: #FBFCFE; }
.staff-body .help-topic summary::marker { color: var(--st-orange-text); }

/* empty states and avatars */
.staff-body .empty-state { color: var(--st-muted); }
.staff-body .empty-state-icon { background: var(--st-blue-tint); color: var(--st-navy); }
.staff-body .avatar-circle { background: var(--st-blue-tint); color: var(--st-navy); font-weight: 800; }

/* ---------- sign-in page ---------- */
.staff-body .auth-page { background: #fff; }
.staff-auth-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-bottom: 36px; }
.staff-auth-logo img { width: auto !important; height: 36px !important; }
.staff-auth-logo .mgmt-wordmark { color: var(--st-navy, #0B2A4A); font-size: 1.5rem; }
.staff-body .auth-box h1 { font-size: 1.9rem; font-weight: 800; }
.staff-body .auth-box p.auth-sub { color: var(--st-muted); }
.staff-body .auth-submit { width: 100%; min-height: 50px; border-radius: 12px; font-size: 1.02rem; }
.staff-auth-side { background: var(--st-navy) !important; position: relative; overflow: hidden; }
.staff-auth-side .auth-side-inner { position: relative; z-index: 1; }
.staff-auth-side .auth-side-tag { color: var(--st-orange); }
.staff-auth-side h2 { font-family: var(--st-head); font-size: 2.2rem; line-height: 1.15; color: #fff; }
.staff-auth-side p { color: rgba(255,255,255,0.75); font-size: 1.02rem; }
.staff-auth-deco { position: absolute; right: -140px; bottom: -160px; width: 560px; height: 560px; pointer-events: none; }

/* ---------- print (statements, letters) ---------- */
@media print {
  body.staff-body { background: #fff; }
  .staff-body .ornix-card { box-shadow: none; }
}

/* ============================================================
   RESPONSIVE: from a 320px phone to a 2560px monitor.
   Checked by rendering every staff screen at 320, 360, 390, 414, 768, 1024, 1920 and 2560px and
   confirming nothing makes the page wider than the screen.
   ============================================================ */

/* top bar: title and actions share the row; the title gives way first */
.staff-body .mgmt-topbar { gap: 12px; }
.mgmt-topbar-start { display: flex; align-items: center; min-width: 0; flex: 1 1 auto; }
.staff-body .mgmt-topbar-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mgmt-topbar-actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.staff-body .switcher summary { display: inline-flex; align-items: center; gap: 8px; }
.staff-body .switcher summary .ico { width: 17px; height: 17px; }

/* Grid and flex children may shrink below their content, so a wide table scrolls inside its own card
   instead of pushing the whole page wider than the screen. */
.staff-body .mgmt-main,
.staff-body .detail-grid > *,
.staff-body .chart-grid > *,
.staff-body .stat-grid > *,
.staff-body .form-grid-2 > * { min-width: 0; }
.staff-body .detail-card, .staff-body .form-card { overflow-x: auto; }
.staff-body .chart-card .table-scroll, .staff-body .detail-card .table-scroll { overflow-x: auto; }

/* two-column label/value rows: long labels wrap instead of pushing values off-screen */
.staff-body .detail-row .label { flex-shrink: 1; min-width: 0; }
.staff-body .detail-row .value { overflow-wrap: anywhere; }
/* Long unbroken text (references, e-mail addresses, file names) wraps inside table cells. break-word, not
   anywhere: it keeps columns at their natural width, so a wide table scrolls instead of squeezing words
   into single letters. */
.staff-body .data-table td, .staff-body .consent-table td, .staff-body .consent-table th { overflow-wrap: break-word; }

/* stat cards: as many columns as fit (4 on a laptop, more on a big monitor, 1 on a phone) */
.staff-body .stat-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* big monitors: use the extra width, but keep lines a comfortable length and centre the content */
@media (min-width: 1600px) {
  .staff-body .mgmt-content { max-width: 1560px; margin: 0 auto; padding: 32px 40px 56px; }
}
@media (min-width: 2200px) {
  body.staff-body { font-size: 16px; }
  .staff-body .mgmt-sidebar { width: 280px; }
  .staff-body .mgmt-content { max-width: 1760px; }
}

/* tablets and phones */
@media (max-width: 760px) {
  .staff-body .mgmt-content { padding: 20px 16px 40px; }
  .staff-body .page-header { flex-wrap: wrap; }
  .staff-body .page-header h1 { font-size: 1.4rem; }
  .staff-body .detail-card, .staff-body .form-card, .staff-body .chart-card { padding: 18px; }
  .staff-body .stat-card .stat-value { font-size: 1.55rem; }
  /* filter tabs scroll sideways rather than stacking into a tall grey block */
  .staff-body .filter-tabs { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .staff-body .filter-tabs::-webkit-scrollbar { display: none; }
  .staff-body .filter-tab { flex: 0 0 auto; }
  .staff-body .ornix-button-primary, .staff-body .ornix-button-secondary { padding: 0.7em 1.1em; }
}
@media (max-width: 600px) {
  .staff-body .topbar-text { display: none; }            /* icon-only actions */
  .staff-body .topbar-link { padding: 8px; }
  .staff-body .switcher summary { padding: 8px 10px; }
  .mgmt-topbar-actions { gap: 6px; }
  .staff-body .mgmt-topbar { padding: 10px 12px; min-height: 60px; }
  .staff-body .detail-row { flex-wrap: wrap; gap: 2px 12px; }
  .staff-body .detail-row .value { text-align: left; }
  .staff-body .switcher-menu { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; }
}
/* the signed consent form's two-column table wraps inside the screen on small phones */
@media (max-width: 600px) { .staff-body .consent-table { table-layout: fixed; } }

/* ============================================================
   FINANCE (Accountant screens)
   ============================================================ */
.staff-body .pill.fin-pending { background: var(--st-amber-tint); color: var(--st-amber); }
.fin-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.fin-actions a { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border: 1.5px solid var(--st-border, #E3E7EE); border-radius: 14px; text-decoration: none; background: #fff; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.fin-actions a:hover { border-color: var(--st-navy, #0B2A4A); box-shadow: 0 6px 16px rgba(11,42,74,0.08); }
.fin-actions strong { color: var(--st-navy, #0B2A4A); font-size: 0.97rem; }
.fin-actions span { color: var(--st-muted, #667085); font-size: 0.85rem; }
.fin-cash-row { text-decoration: none; color: inherit; }
.fin-cash-row:hover { background: #F8FAFC; }
.fin-cash-row .value { white-space: nowrap; }
.fin-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 14px; padding: 18px 20px 4px; margin-bottom: 18px; }
.fin-filters .form-group { margin-bottom: 14px; }
.fin-decide { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.fin-decide .form-control { flex: 1 1 260px; }
.fin-journal td { vertical-align: middle; }
.fin-journal .form-control { min-width: 0; padding: 9px 10px; }
.fin-journal tfoot td { background: #F8FAFC; }
/* printed-statement look for the financial statements */
.fin-statement { max-width: 860px; }
.fin-statement-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; border-bottom: 2px solid var(--st-navy, #0B2A4A); padding-bottom: 12px; margin-bottom: 8px; }
.fin-statement-head strong { display: block; font-family: var(--st-head); font-size: 1.2rem; color: var(--st-navy, #0B2A4A); }
.fin-statement-head span { color: var(--st-text, #344054); }
.fin-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.fin-table td, .fin-table th { padding: 9px 4px; border-bottom: 1px solid #EEF1F5; text-align: left; }
.fin-table th { color: var(--st-muted, #667085); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; }
.fin-table .n { text-align: right; white-space: nowrap; }
.fin-table tr.fin-group td { font-family: var(--st-head); font-weight: 800; color: var(--st-navy, #0B2A4A); padding-top: 18px; border-bottom: 0; }
.fin-table tr.fin-sub td { font-weight: 700; border-top: 1px solid var(--st-border, #E3E7EE); color: var(--st-ink, #111827); }
.fin-table tr.fin-total td { font-weight: 800; font-size: 1.05rem; color: var(--st-navy, #0B2A4A); border-top: 2px solid var(--st-navy, #0B2A4A); border-bottom: 3px double var(--st-navy, #0B2A4A); }
.fin-table tr.fin-neg td { color: var(--st-red, #B42318); }
.fin-table a.row-link { color: inherit; font-weight: 500; text-decoration: none; }
.fin-table a.row-link:hover { text-decoration: underline; }
@media print {
  .fin-statement { border: 0 !important; max-width: none; padding: 0 !important; }
  .fin-table a.row-link { text-decoration: none; }
}
