/* Orbit cash overview. Additions on top of styles.css and cash-tracking.css; see static/cash-dashboard.js. */
/* Chart colours are steps of one documented palette, chosen per theme and checked for colour-blind separation on this app's own card surfaces
   (#101b2b dark, #ffffff light). Over and short are an indigo and a burnt orange used for nothing else here: neither is one of the product's
   state colours or its red, amber and green. Age is six ordered steps of one neutral hue, strongest for the oldest, and the meter one neutral
   fill, so that neither is read as a state. These are marks only: text is never set in them. */
.cd-root,.cd-strip{--cd-short:#d2691e;--cd-over:#7479e8;--cd-age1:#4a5a73;--cd-age2:#61728d;--cd-age3:#7a8ba6;--cd-age4:#98a8bf;--cd-age5:#b9c5d6;--cd-age6:#dfe6ef;--cd-meter:#98a8bf;--cd-track:#eaf2ff14;--cd-n1:#eaf2ff12;--cd-n2:#eaf2ff24;--cd-n3:#eaf2ff3d;--cd-n4:#eaf2ff5c}
body.light .cd-root,body.light .cd-strip{--cd-short:#c2571a;--cd-over:#4f46c8;--cd-age1:#9fabbf;--cd-age2:#8491a8;--cd-age3:#697891;--cd-age4:#505f79;--cd-age5:#394861;--cd-age6:#212e44;--cd-meter:#505f79;--cd-track:#162c4514;--cd-n1:#162c450f;--cd-n2:#162c4524;--cd-n3:#162c453d;--cd-n4:#162c455c}
.cd-slot{display:inline-flex;align-items:center;gap:10px}
.cd-slot .mini-label,.cd-filters .mini-label{margin:0}
.cd-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:0 0 14px}
/* Quiet text on a tinted surface. In the light theme the theme's own muted ink gives 4.2 to 1 there; this is two parts of its text ink to three of
   its muted ink, 6.5 to 1 on the tints. It is an ink, not a mark: no step of the age ramp and not the meter's fill. The tooltip is drawn on the body,
   outside the page's root, so it is named beside it. */
.cd-root,.cd-tip{--cd-quiet:var(--muted)}
body.light .cd-root,body.light .cd-tip{--cd-quiet:#435871}
body.light .cd-root .callout,body.light .cd-root .ct-note,body.light .cd-root .cd-adds,body.light .cd-root .metric.featured .metric-top{color:var(--cd-quiet)}      /* this page's cautions, notes and featured tile sit on tints too */
.cd-slice{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;font-size:11.5px;color:var(--cd-quiet);margin:0 0 14px;line-height:1.5}
.cd-later{margin:0 0 16px;align-items:center}
.cd-later>div{flex:1}
.cd-stale{opacity:.55;transition:opacity .15s}
.cd-lead{margin-bottom:16px;align-items:flex-start}
.cd-lead>.cd-word{margin-top:1px}
.cd-lead>div{flex:1}
.cd-lead strong,.cd-later strong{color:var(--text)}
.cd-tile-sub{font-size:11px;color:var(--cd-quiet);margin-top:2px;line-height:1.5}
.cd-of{font-size:13px;font-weight:500;color:var(--cd-quiet);letter-spacing:0;margin-left:6px}
.cd-adds{margin:8px 2px 0}
.cd-notes{display:grid;gap:10px;margin-top:16px}
.cd-list{margin:6px 0 0;padding-left:18px;display:grid;gap:4px}
.cd-section{margin-top:16px;padding:0}
.cd-section>.section-heading{padding:18px 18px 0}
.cd-section .ct-note{padding:0 18px 16px}
.cd-section .cd-legend{padding:0 18px}
/* A thin bar: one whole split into parts, 2px of surface between fills, square where it starts and rounded where it ends. */
.cd-bar{display:flex;gap:2px;height:8px;width:170px;min-width:170px;margin:5px 0 1px}
.cd-figure{display:block;white-space:nowrap}
.cd-bar i{display:block;height:100%;min-width:3px}
.cd-bar i:last-child{border-radius:0 4px 4px 0}
.cd-bar.empty{background:var(--cd-track);border-radius:0 4px 4px 0}
.cd-agebar{margin-top:7px}
/* A meter: one neutral fill on a track, square where it starts. It shows how much, never whether that is good. */
.cd-meter{display:block;height:8px;width:170px;margin:5px 0 1px;background:var(--cd-track);border-radius:0 4px 4px 0;overflow:hidden}
.cd-meter i{display:block;height:100%;background:var(--cd-meter);border-radius:0 4px 4px 0}
.cd-s-short{background:var(--cd-short)}.cd-s-over{background:var(--cd-over)}
.cd-a1{background:var(--cd-age1)}.cd-a2{background:var(--cd-age2)}.cd-a3{background:var(--cd-age3)}.cd-a4{background:var(--cd-age4)}.cd-a5{background:var(--cd-age5)}.cd-a6{background:var(--cd-age6)}
.cd-legend{display:flex;flex-wrap:wrap;gap:14px;font-size:11px;color:var(--muted);margin:10px 0 4px}
.cd-legend span{display:inline-flex;align-items:center;gap:6px}
.cd-legend i{width:10px;height:10px;border-radius:3px;display:inline-block}
.cd-stack{display:flex;flex-direction:column;gap:2px}
.cd-amount{white-space:nowrap}
.cd-root .ct-table td .cd-amount small,.cd-amount small{display:inline;margin:0 0 0 4px;color:var(--muted);font-size:10px;max-width:none}
.cd-tag{display:inline-block;font-size:10px;color:var(--muted);border:1px solid var(--border);border-radius:4px;padding:1px 5px;margin-top:3px}
.cd-word{display:inline-flex;align-items:center;gap:6px;font-weight:600}
.cd-mark{width:15px;height:15px;flex:0 0 15px;border-radius:50%;display:inline-grid;place-items:center;font-size:10px;font-weight:700;border:1px solid var(--border);color:var(--muted)}
.cd-word.good .cd-mark,.cd-check.ok .cd-mark{color:var(--accent);border-color:var(--accent)}.cd-word.wait .cd-mark{color:var(--amber);border-color:var(--amber)}.cd-word.stop .cd-mark,.cd-check.no .cd-mark{color:var(--red);border-color:var(--red)}
.cd-check{display:inline-flex;align-items:center;gap:6px}
.cd-check.no{font-weight:600}
.cd-check.ok{color:var(--muted)}
.cd-chart{padding:6px 18px 4px}
.cd-chart svg{display:block;width:100%;max-width:760px;height:auto;overflow:visible}
.cd-chart text{font-size:11px;fill:var(--muted);font-family:var(--font)}
.cd-chart .cd-grid{stroke:var(--border);stroke-width:1}
.cd-chart .cd-zero{stroke:var(--muted);stroke-width:1}
.cd-chart .cd-col-over{fill:var(--cd-over)}.cd-chart .cd-col-short{fill:var(--cd-short)}
.cd-chart .cd-hit{fill:transparent;cursor:default}
.cd-chart .cd-hit:hover,.cd-chart .cd-hit:focus{fill:var(--cd-track);outline:none}
.cd-tip{position:fixed;z-index:60;pointer-events:none;background:var(--panel2);border:1px solid var(--border);border-radius:8px;padding:8px 10px;font-size:11px;color:var(--cd-quiet);box-shadow:var(--shadow);max-width:260px;line-height:1.5}
.cd-tip strong{color:var(--text);display:block}
/* A month cell prints its number; the tint only helps the eye along the row. One neutral hue, so it is never read as good or bad. */
.cd-cells{display:inline-flex;gap:2px}
.cd-cells b{width:22px;height:22px;border-radius:4px;display:inline-grid;place-items:center;font-size:11px;font-weight:600;color:var(--text);background:var(--cd-track)}
.cd-cells b.n0{color:var(--muted);font-weight:400}.cd-cells b.n1{background:var(--cd-n1)}.cd-cells b.n2{background:var(--cd-n2)}.cd-cells b.n3{background:var(--cd-n3)}.cd-cells b.n4{background:var(--cd-n4)}
.cd-cells b.quiet{background:none;color:var(--muted)}
.cd-cells b:focus,.cd-bar:focus{outline:2px solid var(--accent);outline-offset:2px}
.cd-months-head{display:inline-flex;gap:2px;font-size:9px;color:var(--muted);font-weight:500}
.cd-months-head span{width:22px;text-align:center}
.cd-cells.tight b,.cd-months-head.tight span{width:18px}
.cd-tint{background:var(--cd-track)}.cd-tint.n1{background:var(--cd-n1)}.cd-tint.n2{background:var(--cd-n2)}.cd-tint.n3{background:var(--cd-n3)}.cd-tint.n4{background:var(--cd-n4)}
.cd-legend i.cd-tint{border:1px solid var(--border)}
.cd-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:flex-end}
.cd-inline{border-bottom:1px dotted var(--muted)}
.cd-inline.clickable:hover{color:var(--text)}
.cd-linkish{border:0;background:none;padding:0;color:var(--muted);font:inherit;text-decoration:underline;text-underline-offset:2px;cursor:pointer;text-align:left}
.cd-linkish:hover{color:var(--text)}
.cd-sub{font-size:11px;font-weight:600;margin:14px 0 6px;color:var(--text)}
.cd-root .ct-table td.cd-lines{white-space:normal;background:var(--panel2);padding:14px 18px}
.cd-block td{color:var(--text)}
.cd-switch{display:flex;flex-wrap:wrap;gap:8px;margin:0 18px 12px}
.cd-switch .segmented{flex-wrap:wrap}
.cd-part td{background:var(--panel2);font-size:11px;color:var(--cd-quiet);font-weight:600;letter-spacing:.2px}
.cd-total td{font-weight:600;border-top:1px solid var(--border)}
.cd-wrap{white-space:normal;min-width:150px;max-width:340px;line-height:1.45}
/* Tables here are wide by nature. Headings wrap, cells are a little tighter than elsewhere, and the first column stays in view when a table must scroll sideways. */
.cd-root .ct-table th{white-space:normal;line-height:1.3;vertical-align:bottom;padding-left:9px;padding-right:9px}
.cd-root .ct-table th.num{max-width:112px}
.cd-root .ct-table td{padding-left:9px;padding-right:9px}
.cd-root .ct-table th:first-child,.cd-root .ct-table td:first-child{padding-left:18px;min-width:150px}
.cd-root .cd-sticky td:first-child,.cd-root .cd-sticky th:first-child{position:sticky;left:0;z-index:1;background:var(--panel);max-width:230px;white-space:normal}
.cd-root .cd-sticky tr.cd-part td:first-child{background:var(--panel2);max-width:none}
.cd-root .ct-table td.clickable:hover{background:#ffffff08}
body.light .cd-root .ct-table td.clickable:hover{background:#162c4508}
.cd-root .ct-table td.clickable:focus,.cd-root .ct-table tr.clickable:focus{outline:1px solid var(--accent);outline-offset:-1px}
.cd-back{margin:0 0 12px}
/* The few cash numbers on the main Overview: labelled counts, the verdict in words with a mark, no chart. */
#cash-strip-root{display:flow-root}
.cd-strip{margin:16px 0 0;padding:16px 18px}
.cd-strip-head{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between}
.cd-strip-head>div{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.cd-strip-head .mini-label{margin:0}
.cd-strip-cells{display:flex;flex-wrap:wrap;gap:10px 28px;margin-top:12px}
.cd-strip-cells div{display:flex;gap:8px;align-items:baseline;font-size:11px;color:var(--muted)}
.cd-strip-cells strong{font-size:18px;color:var(--text);font-variant-numeric:tabular-nums}
.cd-print-head{display:none}
@media (max-width:1100px){.cd-slice{justify-content:flex-start}}
@media print{.cd-print-head{display:block;margin-bottom:10px;font-size:12px}.cd-bar i,.cd-meter,.cd-meter i,.cd-legend i,.cd-cells b,.cd-chart path{-webkit-print-color-adjust:exact;print-color-adjust:exact}.cd-filters,.cd-switch,.cd-slice .btn,.cd-later .btn,.cd-lead .btn{display:none}}
.cd-root .cd-sticky .cd-sticky td:first-child,.cd-root .cd-sticky .cd-sticky th:first-child{position:static;background:none;padding-left:9px}
.cd-root .ct-table tr.cd-group th{font-size:10px;font-weight:600;letter-spacing:.3px;text-transform:none;color:var(--muted);border-bottom:0;padding-bottom:2px;text-align:left}
.cd-root .ct-table tr.cd-group th[colspan]{border-left:1px solid var(--border)}
.cd-root .ct-table tr.cd-group th:first-child{border-left:0}
.cd-actions .mini-label{margin:0}
.cd-nowam{font-size:11px;font-weight:600;color:var(--red);white-space:nowrap}
.cd-state{display:block;font-size:10.5px;font-weight:600}
.cd-state.green{color:var(--accent)}.cd-state.amber{color:var(--amber)}.cd-state.red{color:var(--red)}.cd-state.cyan{color:#77b8ff}
