/* Compliance screens: layout only — every component comes from styles.css / app.css (tokens only, no new components). */
.cmp-page{gap:16px}
.cmp-g6{gap:6px}.cmp-g12{gap:12px}.cmp-g16{gap:16px}
.cmp-main{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:16px;align-items:start}
.cmp-chips{gap:8px;flex-wrap:wrap}
.cmp-foot{gap:8px;margin-top:auto}
.stat-cards.cmp-c4{grid-template-columns:repeat(4,minmax(0,1fr))}

/* clickable cards and rows (same hover as the dashboard stat cards) */
.card.dash-link,.list-row.dash-link{cursor:pointer;box-shadow:inset 0 0 0 1px transparent;transition:box-shadow .15s ease,background .15s ease;border:0;text-align:left;font:inherit;color:inherit;width:100%}
.card.dash-link:hover,.list-row.dash-link:hover{background:var(--bg-brand-subtle);box-shadow:inset 0 0 0 1.5px var(--border-brand)}
.card.dash-link:focus-visible,.list-row.dash-link:focus-visible{outline:none;box-shadow:inset 0 0 0 1.5px var(--border-brand),0 0 0 3px var(--border-focus)}
.card.cmp-sel{background:var(--bg-brand-subtle);box-shadow:inset 0 0 0 1.5px var(--border-brand)}
.tbl tr[data-act]{cursor:pointer}

/* dashboard */
.cmp-hero{height:100%}
.cmp-attn-row{gap:16px;align-items:flex-start}
.cmp-acts{gap:8px;flex:none}
.cmp-meta{gap:16px;flex-wrap:wrap}.cmp-meta>.row{gap:4px}
.cmp-rec{gap:6px}
.cmp-hrow{gap:12px}.cmp-hname{width:96px;flex:none}
.cmp-date{display:flex;flex-direction:column;align-items:center;width:40px;flex:none;padding:4px 0;border-radius:var(--r-lg);background:#fff;box-shadow:inset 0 0 0 1px var(--border-default)}
.cmp-cal{gap:12px;align-items:center}
.cmp-act{display:flex;flex-direction:column;gap:2px;padding-bottom:12px;border-bottom:1px solid var(--border-default)}.cmp-act:last-child{border-bottom:0;padding-bottom:0}
.btn.link.cmp-inline{display:inline;height:auto;padding:0;vertical-align:baseline}

/* tables and bars */
.cmp-prog{gap:8px;min-width:120px}.cmp-prog .pbar{width:72px}
.cmp-conf{gap:8px;justify-content:flex-end}.cmp-conf .pbar{width:72px}
.cmp-evbar{width:96px}
.cmp-bar{gap:12px}.cmp-bl{width:180px;flex:none}
.cmp-wline{background:none;padding:8px 12px}.cmp-wline.cmp-total{background:var(--bg-subtle)}
.cmp-kv4{grid-template-columns:repeat(4,minmax(0,1fr))}
.cmp-regcard{text-align:left}

/* drawers and pop-ups */
.cmp-dr{gap:16px}
.cmp-links,.cmp-form{gap:12px}
.cmp-check{gap:8px;cursor:pointer}
.cmp-xline{align-items:flex-start;cursor:pointer}
/* count badges (nav, bell): centre the digits by their cap height, not the font's line box, which leaves them ~1px low at 125% scaling (C-052) */
.badge{line-height:1;text-box:trim-both cap alphabetic}
.cmp-ctabar{min-height:40px;margin-top:-14px}
/* selection actions share the segment row; fixed height, no wrap, so nothing below moves (C-055) */
.toolbar.cmp-bulkbar{flex-wrap:nowrap;min-height:40px}
/* page sub-header (C-050): subtitle 6 under the H1, chips line under it, as in Figma's page header */
.cmp-hmeta{display:flex;flex-direction:column;gap:6px;min-width:0}
/* count tiles (C-050): Figma "Bucket" — number over label in a bordered box */
.cmp-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px}
.bordered.cmp-tile{padding:12px;gap:4px;border-radius:var(--r-lg)}
.cmp-tile>.t-cap{color:var(--text-secondary)}
/* tone = stroke + text only, no fill (C-051) */
.cmp-tile.cmp-tone-success{border-color:var(--success-border)}.cmp-tile.cmp-tone-success>*{color:var(--success-text)}
.cmp-tile.cmp-tone-info{border-color:var(--info-border)}.cmp-tile.cmp-tone-info>*{color:var(--info-text)}
.cmp-tile.cmp-tone-warning{border-color:var(--warning-border)}.cmp-tile.cmp-tone-warning>*{color:var(--warning-text)}
.cmp-tile.cmp-tone-error{border-color:var(--error-border)}.cmp-tile.cmp-tone-error>*{color:var(--error-text)}
.cmp-tile.cmp-tone-orange{border-color:color-mix(in srgb,var(--orange-text) 45%,var(--orange-bg))}.cmp-tile.cmp-tone-orange>*{color:var(--orange-text)}
/* register summary stats (Figma "Stat": label · value · hint) */
.cmp-rstats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.cmp-rstat{display:flex;flex-direction:column;gap:4px;min-width:0}
/* Management Report (C-059): summary paragraphs, on-time columns, plain exposure rows */
.list-row.cmp-sumrow{align-items:flex-start}
/* On-time trend (C-064): line + soft area, tokens only. Grid and axis recessive; latest point highlighted; text in text tokens */
.cmp-trend{display:block;width:100%;height:auto;overflow:visible}
.cmp-trend .cmp-tg{stroke:var(--border-default);stroke-width:1;stroke-dasharray:3 4}
.cmp-trend text{font-family:var(--font);font-size:11px;fill:var(--text-secondary)}
.cmp-trend .cmp-tt{fill:var(--text-tertiary,var(--text-secondary))}
.cmp-trend .cmp-tm.cmp-cur{fill:var(--text-primary);font-weight:600}
.cmp-trend .cmp-tv{font-size:12px;font-weight:700;fill:var(--text-primary)}
.cmp-trend .cmp-tfa{stop-color:var(--bg-brand);stop-opacity:.16}.cmp-trend .cmp-tfb{stop-color:var(--bg-brand);stop-opacity:0}
.cmp-trend .cmp-tarea{fill:url(#cmpTrendFill);stroke:none}
.cmp-trend .cmp-tline{fill:none;stroke:var(--bg-brand);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cmp-trend .cmp-tline.cmp-down{stroke:var(--warning-solid)}
.cmp-trend .cmp-tdot{fill:var(--bg-surface);stroke:var(--bg-brand);stroke-width:2}
.cmp-trend .cmp-tdot.cmp-down{fill:var(--warning-solid);stroke:var(--bg-surface)}.cmp-trend .cmp-tdot.cmp-up{fill:var(--bg-brand);stroke:var(--bg-surface)}
.cmp-trend .cmp-thit{fill:transparent}
.cmp-trend .cmp-tp{cursor:default;outline:none}.cmp-trend .cmp-tp:hover .cmp-tdot,.cmp-trend .cmp-tp:focus-visible .cmp-tdot{stroke-width:3}
/* GST liability: one bordered block per section A–D */
.cmp-wsec{gap:4px;padding:12px}
@media (max-width:1180px){.cmp-main{grid-template-columns:minmax(0,1fr)}.stat-cards.cmp-c4{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* tables in "card flush" (the shared table pattern, C-027): padded empty state and footer row inside the flush card */
.cmp-flush-body{padding:0 20px 20px}
.cmp-flush-foot{display:flex;align-items:center;gap:8px;padding:12px 20px 16px}
.card.flush>.card-head .pbar.cmp-evbar{flex:none}
/* drawers: facts in a 3-column kvGrid inside bordered sections (shared drawer pattern, C-028) */
.drawer .bordered .kv-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.cmp-ddw{width:180px;flex:none}

/* CTA placement in cards (C-044): a CTA is anchored to an edge, never floating after the text.
   Allowed spots: card head right (top-right) · footer row (bottom-right, or bottom-left for a lone link) · row end (right, top-aligned in multi-line rows).
   .grow fills the rest of its flex row everywhere, so whatever follows it sits at the right edge. */
.grow{flex:1 1 0;min-width:0}
.cmp-attn-row{align-items:flex-start}.cmp-attn-row>.cmp-acts{margin-left:auto;align-self:flex-start}
.cmp-foot{width:100%}

/* Count status and legend dots (C-046): numbers with one indicator, no strips. */
.cmp-count{display:inline-flex;flex:none;cursor:default}
.m-success{background:var(--success-solid)}.m-warning{background:var(--warning-solid)}.m-error{background:var(--error-solid)}.m-info{background:var(--info-solid)}
.m-neutral{background:var(--border-strong)}.m-orange{background:color-mix(in srgb,var(--orange-text) 55%,var(--orange-bg))}
.cmp-legend{display:flex;flex-direction:column;gap:4px}
.cmp-lg{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:var(--r-sm);border:0;background:none;font:inherit;color:inherit;text-align:left}
.cmp-lg>i{width:10px;height:10px;border-radius:var(--r-full);flex:none}
