/* Catalis Design System tokens used by Recover (light theme). */
:root {
    --catalis-navy: #013970;
    --catalis-mint: #18795A;
    --bg-canvas: #eef1f4;
    --bg-subtle: #f5f6f8;
    --line-default: #e3e6ea;
    --line-strong: #d5dae1;
    --fg-secondary: rgba(0, 0, 0, 0.60);
    --shadow-card: 0 1px 3px rgba(16, 24, 40, 0.08);
}

html, body { font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif; background: var(--bg-canvas); margin: 0; }

.boot { height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.boot img { height: 40px; }
.boot-mark { font-size: 13px; color: var(--catalis-mint); letter-spacing: 2px; text-transform: uppercase; }
.boot-sub { color: var(--fg-secondary); font-size: 14px; }

#blazor-error-ui { background: #fff3cd; bottom: 0; box-shadow: 0 -1px 2px rgba(0,0,0,.2); display: none; left: 0; padding: 10px 20px; position: fixed; width: 100%; z-index: 2000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 12px; top: 8px; }

/* Shell */
.rc-appbar { border-bottom: 1px solid var(--line-default); }
/* BrandMark: logo 32px tall; product name uppercase, mint, 1.5px tracking, right-aligned under the logo. */
.rc-brand { display: inline-flex; flex-direction: column; align-items: flex-end; text-decoration: none; margin-left: 8px; line-height: 1; }
.rc-brand img { height: 32px; width: auto; display: block; }
.rc-brand-sub { color: var(--catalis-mint); text-transform: uppercase; letter-spacing: 1.5px; font-size: 11px; font-weight: 400; margin-top: 2px; }
.rc-brand.large img { height: 44px; }
.rc-brand.large .rc-brand-sub { font-size: 13px; letter-spacing: 2px; margin-top: 4px; }
.rc-agency { color: var(--fg-secondary); font-size: 12px; line-height: 1.1; }
.rc-wordmark { font-weight: 700; font-size: 20px; color: var(--catalis-navy); letter-spacing: .01em; }

/* Rail: icon over a short label; the active section is a navy pill. Settings sits at the bottom. */
.rc-rail { display: flex; flex-direction: column; align-items: stretch; height: 100%; padding: 8px 0 12px; }
.rc-rail-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; text-decoration: none;
    color: var(--fg-secondary); font-size: 11.5px; line-height: 1.2; text-align: center; }
.rc-rail-item .pill { width: 44px; height: 28px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.rc-rail-item:hover .pill { background: rgba(0, 0, 0, 0.06); }
.rc-rail-item.active { color: var(--catalis-navy); font-weight: 600; }
.rc-rail-item.active .pill { background: var(--catalis-navy); color: #fff; }
.rc-rail-item:focus-visible { outline: 2px solid var(--catalis-navy); outline-offset: -2px; }
.rc-rail-spacer { flex: 1 1 auto; }

/* Main area with the footer pinned to the bottom right. */
.rc-main { display: flex; flex-direction: column; min-height: 100vh; }
.rc-main-body { flex: 1 1 auto; }
.rc-footer { padding: 10px 24px 12px; text-align: right; font-size: 12px; color: var(--fg-secondary); }
.rc-footer b { color: rgba(0, 0, 0, 0.75); font-weight: 500; }
.rc-footer a { color: var(--catalis-navy); text-decoration: none; font-weight: 500; }
.rc-footer a:hover { text-decoration: underline; }
.rc-footer .sep { margin: 0 8px; color: var(--line-strong); }
.rc-incoming + .rc-incoming { border-top: 1px solid var(--line-default); margin-top: 12px; padding-top: 12px; }
.rc-page { padding: 24px; max-width: 1400px; margin: 0 auto; }
.rc-title { font-size: 22px; font-weight: 500; margin: 0 0 4px; }
.rc-subtitle { color: var(--fg-secondary); font-size: 14px; margin: 0 0 20px; }

/* Panels: flat, square, 1px line (Catalis panels have no radius). */
.rc-panel { background: #fff; border: 1px solid var(--line-default); box-shadow: var(--shadow-card); border-radius: 0; }
.rc-panel-head { padding: 12px 16px; border-bottom: 1px solid var(--line-default); display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; }
.rc-panel-body { padding: 16px; }

.rc-stat { padding: 16px; }
.rc-stat .label { color: var(--fg-secondary); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.rc-stat .value { font-size: 26px; font-weight: 500; font-variant-numeric: tabular-nums; margin-top: 4px; }
.rc-stat .hint { color: var(--fg-secondary); font-size: 12px; margin-top: 2px; }

.rc-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.rc-table th { text-align: left; font-weight: 500; color: var(--fg-secondary); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding: 10px 16px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; background: var(--bg-subtle); }
.rc-table td { padding: 10px 16px; border-bottom: 1px solid rgba(0,0,0,.06); vertical-align: top; }
.rc-table tr.click { cursor: pointer; }
.rc-table tr.click:hover td { background: rgba(1, 57, 112, 0.05); }
.rc-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rc-table .nowrap { white-space: nowrap; }
.rc-empty { padding: 28px 16px; text-align: center; color: var(--fg-secondary); }
.rc-scroll { overflow-x: auto; }

.rc-kv { display: grid; grid-template-columns: 180px 1fr; row-gap: 10px; column-gap: 16px; font-size: 14px; }
.rc-kv dt { color: var(--fg-secondary); }
.rc-kv dd { margin: 0; }

.rc-mono { font-family: "Roboto Mono", ui-monospace, Consolas, monospace; font-size: 12.5px; }
.rc-muted { color: var(--fg-secondary); }
.rc-link { color: var(--catalis-navy); cursor: pointer; text-decoration: none; font-weight: 500; }
.rc-link:hover { text-decoration: underline; }

/* Ladder */
.rc-ladder { display: flex; gap: 0; align-items: stretch; overflow-x: auto; padding: 8px 0 4px; }
.rc-step { flex: 1 1 0; min-width: 170px; position: relative; padding: 0 12px 0 0; }
.rc-step .bar { height: 4px; background: var(--line-strong); margin: 13px 0 12px 28px; }
.rc-step:last-child .bar { visibility: hidden; }
.rc-step .dot { position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-strong); background: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--fg-secondary); }
.rc-step.done .dot { background: var(--catalis-navy); border-color: var(--catalis-navy); color: #fff; }
.rc-step.done .bar { background: var(--catalis-navy); }
.rc-step.current .dot { border-color: var(--catalis-mint); color: var(--catalis-mint); box-shadow: 0 0 0 4px rgba(24, 121, 90, .18); }
.rc-step.skipped .dot { border-style: dashed; }
.rc-step.skipped .name { text-decoration: line-through; color: var(--fg-secondary); }
.rc-step .name { font-weight: 500; font-size: 14px; }
.rc-step .when { font-size: 12px; color: var(--fg-secondary); margin-top: 2px; }
.rc-step .detail { font-size: 12.5px; margin-top: 4px; }

/* Settings › demo setup */
.rc-clock { font-size: 24px; font-weight: 500; font-variant-numeric: tabular-nums; }

/* Portal */
.rc-portal { max-width: 960px; margin: 0 auto; padding: 24px 16px 48px; }
.rc-hero { background: var(--catalis-navy); color: #fff; padding: 28px; }
.rc-hero .amount { font-size: 40px; font-weight: 500; font-variant-numeric: tabular-nums; }
.rc-hero .label { opacity: .8; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }

@media (max-width: 600px) {
    .rc-page { padding: 16px; }
    .rc-kv { grid-template-columns: 1fr; row-gap: 2px; }
    .rc-kv dd { margin-bottom: 10px; }
}

/* Dashboard drill-downs: tiles, sub-lines and caseload rows are links. */
a.rc-drill { display: block; color: inherit; text-decoration: none; border-radius: 2px; }
a.rc-drill:hover .value, a.rc-drill:hover .rc-drill-label { color: var(--catalis-navy); text-decoration: underline; }
a.rc-drill:focus-visible { outline: 2px solid var(--catalis-navy); outline-offset: 2px; }
.rc-stat a.hint { display: inline-block; color: var(--catalis-navy); text-decoration: none; }
.rc-stat a.hint:hover { text-decoration: underline; }
.rc-stat a.hint.alert { color: #C62828; font-weight: 500; }
.rc-stat .go { float: right; color: rgba(0,0,0,.38); }
a.rc-drill:hover .go { color: var(--catalis-navy); }
a.rc-caseload { padding: 6px 8px; margin: 0 -8px 6px; }
a.rc-caseload:hover { background: rgba(1, 57, 112, 0.05); }

/* Notice PDF viewer */
.rc-pdf { width: 100%; height: 72vh; border: 1px solid var(--line-default); background: #525659; }
.rc-emblem { height: 40px; width: 40px; margin-right: 12px; }

/* Page header with actions on the right; link tabs under it. */
.rc-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.rc-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-strong); margin: 0 0 20px; overflow-x: auto; }
.rc-tab { padding: 10px 16px; font-size: 14px; font-weight: 500; color: var(--fg-secondary); text-decoration: none; white-space: nowrap;
    border-bottom: 2px solid transparent; margin-bottom: -1px; }
.rc-tab:hover { color: var(--catalis-navy); background: rgba(1, 57, 112, 0.05); }
.rc-tab.active { color: var(--catalis-navy); border-bottom-color: var(--catalis-navy); }
.rc-tab:focus-visible { outline: 2px solid var(--catalis-navy); outline-offset: -2px; }

/* Settings › collection rules */
.rc-settings td:first-child { width: 24%; }
.rc-setting-value { font-weight: 500; font-variant-numeric: tabular-nums; }
.rc-changed { font-size: 12px; color: #9A3412; font-weight: 500; margin-top: 2px; }

/* Assignments */
.rc-selbar { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 6px 8px 6px 16px; margin-bottom: 12px;
    background: var(--catalis-navy); color: #fff; font-size: 14px; font-weight: 500; }
.rc-load + .rc-load { margin-top: 16px; }
.rc-note { font-size: 13px; background: var(--bg-subtle); border: 1px solid var(--line-default); padding: 12px; }

/* Reports */
.rc-download { text-decoration: none; }
.rc-bar { height: 8px; min-width: 1px; margin: 2px 0; }
.rc-bar.est, .rc-legend i.est { background: var(--catalis-navy); }
.rc-bar.rec, .rc-legend i.rec { background: #C2570C; }
.rc-legend { display: flex; gap: 16px; padding: 10px 16px; font-size: 12.5px; color: var(--fg-secondary); }
.rc-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; }
.rc-table tfoot td { border-top: 1px solid var(--line-strong); background: var(--bg-subtle); }
.rc-settings { table-layout: fixed; min-width: 900px; }
.rc-settings th:nth-child(1) { width: 25%; }
.rc-settings th:nth-child(2) { width: 15%; }
.rc-settings th:nth-child(4) { width: 17%; }
.rc-settings th:nth-child(5) { width: 64px; }
.rc-settings td.nowrap { white-space: normal; }
.rc-selbar .mud-button-root.mud-disabled { color: rgba(255, 255, 255, 0.45) !important; }

/* Account: a claimant request waiting for a decision. */
.rc-request { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; font-size: 14px;
    background: #FFF7ED; border: 1px solid #FDBA74; }

/* Settings that belong to features the demo does not run. */
.rc-settings tr.rc-locked td { background: var(--bg-subtle); }
.rc-settings tr.rc-locked td:first-child b, .rc-settings tr.rc-locked .rc-setting-value { color: var(--fg-secondary); font-weight: 500; }
.rc-settings td.rc-lock-note { color: var(--fg-secondary); font-size: 12.5px; }
