You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sims-hq/apps/hq-web/src/app.css

524 lines
30 KiB
CSS

/* HQ shell — warm ops console (spec 2026-07-17 §3). */
.hq-shell { display: grid; grid-template-columns: 224px 1fr; height: 100vh; }
/* Sidebar collapse (D18 WS-E): icon rail — labels, eyebrows, brand text and count
badges hide; nav icons + tooltips (title=) remain. State lives in localStorage. */
.hq-shell.side-collapsed { grid-template-columns: 52px 1fr; }
.hq-shell.side-collapsed .hq-side .lbl,
.hq-shell.side-collapsed .hq-eyebrow,
.hq-shell.side-collapsed .hq-brand small,
.hq-shell.side-collapsed .hq-count,
.hq-shell.side-collapsed .hq-side-foot .lbl { display: none; }
.hq-shell.side-collapsed .hq-brand { font-size: 12px; padding: 4px 8px 14px; text-align: center; }
.hq-shell.side-collapsed .hq-side a { justify-content: center; padding: 8px 0; }
.hq-collapse {
margin-left: auto; border: 1px solid var(--border); background: var(--bg-raised);
color: var(--text-dim); border-radius: 4px; width: 20px; height: 20px; line-height: 1;
cursor: pointer; font-size: 12px; padding: 0;
}
.hq-collapse:hover { background: var(--bg-hover); color: var(--text); }
.hq-shell.side-collapsed .hq-side-foot { display: flex; justify-content: center; padding: 10px 4px; }
.hq-side {
background: var(--bg-raised); border-right: 1px solid var(--border);
overflow-y: auto; padding: 12px 0 0; display: flex; flex-direction: column;
}
.hq-brand { font-weight: 700; font-size: 16px; padding: 4px 16px 14px; letter-spacing: -0.01em; }
.hq-brand small { display: block; color: var(--text-dim); font-weight: 400; font-size: 11.5px; }
.hq-group { margin-bottom: 10px; }
.hq-eyebrow {
font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
color: var(--text-dim); padding: 4px 16px;
}
.hq-side a {
display: flex; align-items: center; gap: 9px; padding: 7px 16px 7px 14px;
color: var(--text); text-decoration: none; font-size: 13.5px;
border-left: 2px solid transparent;
}
.hq-side a .lbl { flex: 1; }
.hq-side a:hover { background: var(--bg-hover); }
.hq-side a.active {
background: var(--accent-soft); border-left-color: var(--accent); font-weight: 600;
}
.hq-count {
font-family: var(--mono); font-size: 10.5px; font-weight: 600;
background: var(--bg-inset); color: var(--text-dim);
border-radius: 999px; padding: 1px 7px;
}
.hq-count.warn { background: var(--warn-soft); color: var(--warn); }
.hq-count.err { background: var(--err-soft); color: var(--err); }
.hq-side-foot {
margin-top: auto; padding: 10px 16px; border-top: 1px solid var(--border);
font-size: 11px; color: var(--text-dim); font-family: var(--mono);
display: flex; align-items: center; gap: 7px;
}
.hq-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--text-dim); }
.hq-dot.ok { background: var(--ok); }
.hq-dot.warn { background: var(--warn); }
.hq-dot.err { background: var(--err); }
.hq-main { display: flex; flex-direction: column; min-width: 0; }
.hq-banner {
padding: 8px 20px; font-size: 13px; color: var(--warn); background: var(--warn-soft);
border-bottom: 1px solid color-mix(in srgb, var(--warn) 35%, transparent);
}
.hq-top {
display: flex; gap: 10px; align-items: center; padding: 8px 20px;
border-bottom: 1px solid var(--border); background: var(--bg-raised); min-height: 48px;
}
.hq-burger { display: none; padding: 6px 9px; }
.hq-search {
display: flex; align-items: center; gap: 8px; min-width: 260px;
background: var(--bg-inset); color: var(--text-dim);
border: 1px solid var(--border); border-radius: 999px;
padding: 6px 12px; font: 400 13px var(--font); cursor: pointer;
transition: border-color var(--speed);
}
.hq-search:hover { border-color: var(--border-strong); }
.hq-search kbd {
margin-left: auto; font-family: var(--mono); font-size: 10px;
border: 1px solid var(--border-strong); border-radius: 3px; padding: 0 5px;
}
.hq-pill {
display: inline-flex; align-items: center; gap: 6px;
border-radius: 999px; padding: 3px 11px; font-size: 12px; font-weight: 500;
border: 1px solid var(--border); color: var(--text-dim);
}
.hq-pill.ok { color: var(--ok); background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.hq-pill.warn { color: var(--warn); background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.hq-user-wrap { position: relative; display: inline-flex; }
.hq-user {
display: inline-flex; align-items: center; gap: 8px;
background: none; border: 1px solid transparent; border-radius: 999px;
padding: 3px 8px 3px 4px; cursor: pointer; font: inherit; color: inherit;
}
.hq-user:hover, .hq-user[aria-expanded='true'] { background: var(--bg-hover); border-color: var(--border); }
.hq-user-menu {
/* Below the dialog scrim (50) so an opened modal covers the dropdown; above the
mobile drawer (40) and page chrome. */
position: absolute; top: calc(100% + 6px); right: 0; z-index: 45;
min-width: 150px; padding: 4px;
background: var(--bg-raised); border: 1px solid var(--border);
border-radius: var(--radius); box-shadow: var(--shadow-lg);
display: flex; flex-direction: column;
}
.hq-user-item {
display: flex; align-items: center; gap: 8px;
background: none; border: none; border-radius: var(--radius-sm);
padding: 7px 10px; font: 500 13px var(--font); color: var(--text);
cursor: pointer; text-align: left;
}
.hq-user-item:hover { background: var(--bg-hover); }
.hq-user-av {
width: 26px; height: 26px; border-radius: 50%;
display: inline-flex; align-items: center; justify-content: center;
font-size: 11px; font-weight: 600;
}
.hq-user-name { font-size: 13px; font-weight: 500; }
.hq-content { overflow-y: auto; flex: 1; padding: 4px 20px 20px; }
.hq-scrim { display: none; }
/* ============================================================================
Dashboard cockpit (D29) — a calm command view: a "Today" hero strip, the four
KPI stat cards, then a bento grid of section cards. Deliberately low-colour:
ink + warm neutrals, teal accent only for state/links, red reserved for real
failures. Scoped to .dash-* so the flat house style on every other page is
untouched. (Replaces the old two-column .dash-grid.)
============================================================================ */
.dash-hero {
border: 1px solid var(--border); border-radius: var(--radius-lg);
background: var(--bg-raised);
padding: 20px 22px; margin: 6px 0 18px;
display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
}
.dash-hero-l { flex: 1 1 320px; min-width: 260px; }
.dash-hero-eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); }
.dash-hero h1 { font-size: 24px; margin: 7px 0 4px; }
.dash-hero p { margin: 0; color: var(--text-dim); max-width: 54ch; }
.dash-hero-r { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.dash-money { text-align: right; }
.dash-money .k { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); }
.dash-money .v { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; margin-top: 3px; }
.dash-hero-actions { display: flex; gap: 8px; }
@media (max-width: 760px) {
.dash-hero-r { align-items: flex-start; width: 100%; }
.dash-money { text-align: left; }
}
/* Everyone / Mine scope toggle (managerial only) */
.dash-seg { display: inline-flex; background: var(--bg-inset); border: 1px solid var(--border); border-radius: 999px; padding: 3px; gap: 2px; margin-top: 14px; }
.dash-seg button { border: none; background: none; cursor: pointer; font: 600 12.5px var(--font); color: var(--text-dim); padding: 5px 14px; border-radius: 999px; }
.dash-seg button.on { background: var(--bg-raised); color: var(--text); box-shadow: var(--shadow-md); }
/* Table pager: summary text on the left, Prev / page / Next grouped at the right end. */
.wf-pager { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; font-size: 13px; color: var(--text-dim); }
.wf-pager > span:first-child { margin-right: auto; }
/* Per-module collapsible section on Client 360 → Modules: coloured header, everything of
one module lives inside it, so a client with many modules stays scannable. */
.mod-section { border: 1px solid var(--border); border-radius: var(--radius); margin-top: 12px; overflow: hidden; background: var(--bg-raised); }
.mod-section > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
padding: 10px 14px; background: var(--accent-soft); color: var(--accent-strong); font-weight: 700;
border-left: 4px solid var(--accent); user-select: none; }
.mod-section > summary::-webkit-details-marker { display: none; }
.mod-section > summary::before { content: '▸'; font-size: 12px; transition: transform .15s ease; opacity: .8; }
.mod-section[open] > summary::before { transform: rotate(90deg); }
.mod-section > summary .mod-name { flex: 1; font-size: 14px; letter-spacing: .2px; }
.mod-section-body { padding: 10px 14px 14px; }
/* Section header shared by the queue block and the bento cards */
.dash-head { display: flex; align-items: center; gap: 10px; padding: 2px 0 10px; }
.dash-head h3 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-dim); margin: 0; }
.dash-head .count { font-family: var(--mono); font-size: 11px; color: var(--text-dim); background: var(--bg-inset); border-radius: 999px; padding: 1px 8px; }
.dash-head a { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--accent-strong); text-decoration: none; }
.dash-head a:hover { text-decoration: underline; }
[data-theme='dark'] .dash-head a { color: var(--accent); }
/* the queue block sits above the bento; its DataTable keeps its own frame */
.dash-queue { margin: 18px 0 10px; }
.dash-cap { margin-top: 8px; font-size: 12.5px; color: var(--text-dim); }
/* bento grid of read-only section cards */
.dash-bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 4px; align-items: start; }
.dash-card { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; min-width: 0; }
.dash-card .dash-head { padding: 13px 15px 9px; }
/* Long lists scroll inside the card — reachable in full, never silently capped (rule 8). */
.dash-list { display: flex; flex-direction: column; max-height: 304px; overflow-y: auto; }
.dash-empty { padding: 14px 15px 16px; color: var(--text-dim); font-size: 13px; border-top: 1px solid var(--border); }
.dash-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 9px 15px; border-top: 1px solid var(--border); background: none; color: inherit; font: inherit; }
button.dash-row { cursor: pointer; }
button.dash-row:hover { background: var(--accent-soft); }
.dash-row .rc { min-width: 0; flex: 1; }
.dash-row .t { display: block; font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-row .s { display: block; font-size: 12px; color: var(--text-dim); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-row .r { text-align: right; white-space: nowrap; flex-shrink: 0; }
.dash-row .amt { display: block; font-variant-numeric: tabular-nums lining-nums; font-size: 13px; font-weight: 600; }
.dash-row .sub { display: block; font-size: 11.5px; color: var(--text-dim); margin-top: 1px; }
@media (max-width: 900px) { .dash-bento { grid-template-columns: 1fr; } }
/* ============================================================================
Home hub (D30) — a card launcher for every screen, grouped like the sidebar.
Cards theme through the tokens (so they follow the palette + light/dark).
============================================================================ */
.hub-head { margin-bottom: 20px; }
.hub-head h1 { font-size: 26px; margin: 2px 0 4px; }
.hub-head p { margin: 0; color: var(--text-dim); }
.hub-section { margin-top: 22px; }
.hub-eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin: 0 0 10px; }
.hub-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.hub-card {
display: flex; gap: 13px; align-items: flex-start; text-decoration: none; color: inherit;
background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-lg);
padding: 15px 16px; box-shadow: var(--shadow-md);
transition: box-shadow var(--speed), transform var(--speed), border-color var(--speed);
}
.hub-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--border-strong); }
.hub-ic {
flex: none; width: 38px; height: 38px; border-radius: 10px;
display: inline-flex; align-items: center; justify-content: center;
background: var(--accent-soft); color: var(--accent-strong);
border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
}
[data-theme='dark'] .hub-ic { color: var(--accent); }
.hub-body { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.hub-t { font-size: 14.5px; font-weight: 600; }
.hub-d { font-size: 12.5px; color: var(--text-dim); margin-top: 3px; line-height: 1.4; }
.hub-stat {
align-self: flex-start; margin-top: 10px; font-family: var(--mono);
font-size: 11.5px; font-weight: 600; color: var(--text-dim);
background: var(--bg-inset); border-radius: 999px; padding: 2px 9px;
}
.hub-stat.warn { color: var(--warn); background: var(--warn-soft); }
.hub-stat.err { color: var(--err); background: var(--err-soft); }
.hub-arrow { align-self: center; color: var(--text-dim); opacity: 0; transition: opacity var(--speed); }
.hub-card:hover .hub-arrow { opacity: 1; }
/* Login — split panel (Task 13). */
.login-wrap { height: 100vh; display: flex; align-items: stretch; justify-content: center; }
.login-brand {
flex: 1; background: #1a1a17; color: #eae8e2;
display: flex; flex-direction: column; justify-content: center; padding: 48px 56px;
}
.login-brand .login-mark { margin-bottom: 16px; }
.login-brand h1 { font-size: 34px; margin: 0 0 8px; letter-spacing: -0.02em; }
.login-brand p { color: #a8a69c; max-width: 44ch; }
.login-form { flex: 0 0 440px; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card {
background: var(--bg-raised); border: 1px solid var(--border);
border-radius: var(--radius-lg); padding: 28px; width: 100%; max-width: 380px;
}
@media (max-width: 800px) {
.login-brand { display: none; }
.login-form { flex: 1; }
}
/* Responsive-lite: drawer sidebar under 900px (APEX checklist item h). */
@media (max-width: 900px) {
.hq-shell { grid-template-columns: 1fr; }
.hq-side {
position: fixed; inset: 0 auto 0 0; width: 240px; z-index: 40;
transform: translateX(-100%); visibility: hidden;
transition: transform var(--speed) ease, visibility 0s var(--speed);
box-shadow: var(--shadow-lg);
}
.hq-side.open { transform: translateX(0); visibility: visible; transition: transform var(--speed) ease; }
.hq-scrim { display: block; position: fixed; inset: 0; z-index: 39; background: rgba(15, 14, 11, 0.4); }
.hq-burger { display: inline-flex; }
.hq-search { min-width: 0; flex: 1; }
.hq-search span { display: none; }
.hq-user-name { display: none; }
.hq-content { padding: 8px 14px 20px; }
.wf-page { padding: 14px 2px 28px; }
}
/* Tables scroll inside their page rather than breaking the layout. */
.hq-content { overflow-x: hidden; }
table.wf { display: block; overflow-x: auto; }
@media (min-width: 901px) { table.wf { display: table; } }
/* Relationship-pulse ribbon (Client 360 overview). */
.pulse {
background: var(--bg-raised); border: 1px solid var(--border);
border-radius: var(--radius); padding: 14px 16px; margin: 16px 0;
}
.pulse-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pulse-head h3 { margin: 0; font-size: 15px; }
.pulse-legend { margin-left: auto; display: flex; gap: 12px; font-size: 11px; letter-spacing: 0.06em; color: var(--text-dim); }
.pulse-legend .dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 4px; }
.pulse-grid { display: grid; gap: 2px 0; margin-top: 12px; }
.pulse-lane {
font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
color: var(--text-dim); padding: 6px 8px 6px 0; white-space: nowrap;
}
.pulse-cell {
border-left: 1px solid var(--border);
min-height: 26px; display: flex; align-items: center; gap: 3px; padding: 2px 3px;
flex-wrap: wrap;
}
.pulse-dot {
position: relative;
width: 9px; height: 9px; border-radius: 50%; border: none; cursor: pointer; padding: 0;
transition: transform 80ms;
}
.pulse-dot::before { content: ''; position: absolute; inset: -8px; }
.pulse-dot:hover { transform: scale(1.5); }
.pulse-more { font-size: 11px; color: var(--text-dim); font-family: var(--mono); }
.pulse-month {
border-left: 1px solid var(--border);
font-size: 11px; color: var(--text-dim); font-family: var(--mono); padding: 3px;
}
.pulse-readout {
margin-top: 10px; border-left: 2px solid var(--accent);
background: var(--bg-inset); border-radius: var(--radius-sm);
padding: 7px 10px; font-size: 12.5px; color: var(--text);
min-height: 32px; display: flex; align-items: center; gap: 6px;
}
.pulse-open { color: var(--accent-strong); margin-left: auto; font-size: 11.5px; }
@media (max-width: 900px) { .pulse-grid { display: none; } .pulse-readout { display: none; }
.pulse::after { content: 'Timeline hidden on small screens.'; color: var(--text-dim); font-size: 12px; } }
/* ================= Settings hub (rail + panels) ================= */
.set-wrap { display: flex; gap: 24px; }
.set-rail { flex: 0 0 190px; display: flex; flex-direction: column; gap: 2px; }
.set-rail button { text-align: left; border: none; background: none; padding: 8px 12px; border-radius: var(--radius); font: 500 13.5px var(--font); color: var(--text-dim); cursor: pointer; }
.set-rail button:hover { background: var(--bg-hover); color: var(--text); }
.set-rail button.active { background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }
.set-panel { flex: 1; min-width: 0; max-width: 860px; }
/* Panel section headers sit under the 22px page h1 — pin them to the app's type
scale instead of the ~21px UA default that nearly ties with the page title. */
.set-panel h2 { font-size: 17px; margin: 0 0 4px; }
.set-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.set-card h3 { margin: 0 0 8px; font-size: 14px; }
@media (max-width: 900px) {
.set-wrap { flex-direction: column; }
/* flex-basis: auto — the desktop 190px basis is a width in row layout, but once
.set-wrap flips to column it would pin the rail's HEIGHT to 190px. */
.set-rail { flex-direction: row; flex-wrap: wrap; flex-basis: auto; }
}
/* ================= accessibility helpers ================= */
/* Skip link (WCAG 2.4.1): off-screen until Tab-focused, then pinned top-left over
the shell so keyboard users can jump past the sidebar straight to <main id="main">. */
.skip-link {
position: absolute; left: 8px; top: 8px; z-index: 100;
transform: translateY(-150%);
background: var(--bg-raised); color: var(--text); text-decoration: none;
border: 1px solid var(--border-strong); border-radius: var(--radius);
padding: 8px 14px; font: 500 13px var(--font); box-shadow: var(--shadow-lg);
transition: transform var(--speed);
}
.skip-link:focus { transform: translateY(0); }
/* Programmatic focus target — no outline when jumped to via the skip link. */
main#main:focus { outline: none; }
/* Screen-reader-only text (visually hidden but read aloud). */
.visually-hidden {
position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* Keyboard focus for clickable DataTable rows (role=button + tabindex): the table
clips outlines (overflow:hidden), so mark the focused row with an inset accent
bar + soft wash instead — visible in both themes and over tone-* rows. */
table.wf tbody tr[role='button']:focus-visible { outline: none; }
table.wf tbody tr[role='button']:focus-visible td { background: var(--accent-soft); }
table.wf tbody tr[role='button']:focus-visible td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
/* ============================================================================
PWA / phone polish (D25). The shell is already responsive (drawer < 900px,
scrolling tables). These add the touch-device niceties on top.
============================================================================ */
/* Notched-phone safe areas (index.html sets viewport-fit=cover). */
.hq-topbar { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
.hq-content { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.hq-side { padding-left: env(safe-area-inset-left); }
@media (max-width: 640px) {
/* iOS zooms the viewport when a focused field's font is < 16px — pin inputs to 16px. */
input.wf, select.wf, textarea.wf { font-size: 16px; }
/* Comfortable tap targets on touch. */
button.wf, select.wf, .wf-dialog-x { min-height: 40px; }
.wf-dialog-x { min-width: 40px; }
/* Dialogs become a bottom sheet: full width, flush to the bottom, taller. */
.wf-dialog-back { padding: 0; align-items: flex-end; }
.wf-dialog { max-width: 100%; max-height: 92vh; border-radius: 16px 16px 0 0; }
/* Page toolbars stack instead of overflowing the width. */
.wf-toolbar { gap: 6px; }
/* Stat cards go one-per-row so numbers stay legible. */
.wf-stats { grid-template-columns: 1fr 1fr; }
}
/* ============================================================================
Mobile experience pass (D26) — the accent swatches are gone from the top bar
(now in Settings > Appearance), and phones get real breathing room. Targets
≤640px: the cramped-phone width the user tested on.
============================================================================ */
@media (max-width: 640px) {
/* Top bar: search is the star, everything else compact. */
.hq-top { gap: 8px; padding: 8px 12px; }
.hq-search { flex: 1; min-width: 0; height: 40px; font-size: 15px; }
.hq-search kbd { display: none; } /* the Ctrl-K hint is desktop-only */
.hq-pill { display: none; } /* Gmail status shows in the banner/Settings, not the phone bar */
.mode { padding: 6px 9px; font-size: 15px; }
.hq-user .hq-user-name { display: none; } /* avatar + role only */
.hq-user { padding: 4px 6px; gap: 5px; }
/* Pages: generous, single-column, full-width children. */
.wf-page { padding: 14px 14px 96px; } /* bottom room so content clears the thumb zone */
.wf-card { padding: 14px; }
.wf-page > *, .wf-card { max-width: 100% !important; }
/* Toolbars & filter chips wrap with air, don't jam into one line. */
.wf-toolbar { flex-wrap: wrap; gap: 8px; row-gap: 10px; }
.wf-toolbar > .wf, .wf-toolbar select.wf, .wf-toolbar input.wf { flex: 1 1 auto; min-width: 140px; }
.wf-chips { flex-wrap: wrap; gap: 6px; }
/* Inputs full width & tall enough to tap; 16px kills iOS focus-zoom (already set globally). */
input.wf, select.wf, textarea.wf { width: 100%; min-height: 42px; }
.wf-field { width: 100%; }
/* Stats: two-up so the numbers stay big and readable. */
.wf-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
/* Dialogs already bottom-sheet (earlier pass); keep them roomy. */
.wf-dialog-body { padding: 14px 16px; }
/* Tables scroll, with a subtle hint that there's more sideways. */
table.wf { font-size: 13.5px; }
table.wf th, table.wf td { padding: 9px 10px; white-space: nowrap; }
/* The New-Document composer: every container fills the screen (no 340px caps). */
.wf-page .composer-search, .wf-page .composer-line { max-width: 100% !important; width: 100%; }
.wf-page .composer-line { flex-direction: column; align-items: stretch; }
.wf-page .composer-line > * { width: 100%; }
}
/* ============================================================================
Client account statement (D26) — a printable overlay. On screen it reads like
paper (white card) in either theme; @media print isolates .statement-print so
only the statement, not the app chrome, reaches the page.
============================================================================ */
.statement-overlay {
position: fixed; inset: 0; z-index: 60; overflow: auto;
background: var(--bg-inset); padding: 24px 16px 48px;
}
.statement-toolbar { display: flex; gap: 8px; justify-content: flex-end; max-width: 820px; margin: 0 auto 16px; }
.statement-print {
max-width: 820px; margin: 0 auto; background: #fff; color: #14130f;
border: 1px solid var(--border); border-radius: 10px; padding: 34px 40px;
box-shadow: var(--shadow-lg);
}
.statement-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.statement-co { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.statement-co-meta { font-size: 12px; color: #55524a; margin-top: 2px; }
.statement-title { font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.statement-client {
display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 18px 0 6px;
padding: 12px 0; border-top: 1px solid #e5e2da; border-bottom: 1px solid #e5e2da; font-size: 13.5px;
}
.statement-lbl {
font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: #7a766c; margin-right: 6px;
}
.statement-table { width: 100%; border-collapse: collapse; margin: 16px 0 8px; font-size: 13px; }
.statement-table th, .statement-table td { padding: 7px 10px; border-bottom: 1px solid #ece9e1; text-align: left; }
.statement-table th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: #55524a; }
.statement-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.statement-table tfoot td { border-top: 2px solid #ddd9d0; border-bottom: none; }
.statement-table .mono { font-family: var(--mono); }
.statement-summary {
display: flex; justify-content: flex-end; gap: 32px; margin-top: 12px; font-size: 14px;
}
.statement-summary .statement-lbl { display: block; margin-bottom: 2px; }
.statement-note { margin-top: 22px; font-size: 11px; color: #7a766c; }
@media print {
/* Isolate the statement: hide the whole app (keeps layout, drops ink), then re-show
only the statement and pin it to the top-left of the page. */
body * { visibility: hidden; }
.statement-print, .statement-print * { visibility: visible; }
.statement-overlay { position: static; padding: 0; background: #fff; overflow: visible; }
.statement-print {
position: absolute; left: 0; top: 0; width: 100%; max-width: none;
margin: 0; padding: 0 4px; border: none; border-radius: 0; box-shadow: none;
}
.no-print { display: none !important; }
}
/* ---- Client Detail redesign (D-CDR) ---- */
/* 50/50 service sheet */
.cdr-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
.cdr-split > .col { padding: 13px 0; min-width: 0; }
.cdr-split > .col + .col { border-left: 1px solid var(--border); padding-left: 30px; }
.cdr-kv { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; min-width: 0; }
.cdr-kv + .cdr-kv { border-top: 1px dashed var(--border); }
.cdr-kv > .k { flex: none; width: 120px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-dim); font-weight: 600; padding-top: 2px; }
.cdr-kv > .v { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.cdr-kv > .v .txt { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) {
.cdr-split { grid-template-columns: 1fr; }
.cdr-split > .col + .col { border-left: none; padding-left: 0; border-top: 1px solid var(--border); }
}
/* horizontal onboarding status line */
.cdr-track-wrap { overflow-x: auto; padding: 10px 2px 4px; }
.cdr-track { display: flex; min-width: min-content; }
.cdr-node { flex: 1 0 112px; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; padding: 0 4px; }
.cdr-node .bar { position: absolute; top: 11px; right: 50%; width: 100%; height: 2px; background: var(--border); }
.cdr-node.done .bar, .cdr-node.now .bar { background: var(--accent); }
.cdr-node:first-child .bar { display: none; }
.cdr-node .dot { position: relative; z-index: 1; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--bg-raised); display: grid; place-items: center; font-size: 11px; color: transparent; cursor: pointer; }
.cdr-node.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.cdr-node.now .dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.cdr-node .nm { font-size: 11px; margin-top: 7px; max-width: 104px; line-height: 1.35; }
.cdr-node.done .nm { color: var(--text-dim); }
.cdr-node.now .nm { font-weight: 600; }
.cdr-node .dt { font-size: 10px; color: var(--text-dim); font-family: var(--mono); margin-top: 3px; }
/* outstanding panel */
.cdr-out { border: 1px solid color-mix(in srgb, var(--warn) 30%, var(--border)); border-radius: var(--radius); overflow: hidden; }
.cdr-out .oh { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.cdr-out .orow { display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.cdr-out .orow:last-child { border-bottom: none; }
.cdr-out .orow .due { margin-left: auto; font-family: var(--mono); font-weight: 600; }
.cdr-out .ofoot { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--bg-inset); }
/* document-type pill */
.doc-pill { font-size: 10.5px; font-weight: 600; letter-spacing: .3px; border-radius: 999px; padding: 1px 8px; border: 1px solid var(--border); color: var(--text-dim); background: var(--bg-inset); }