:root {
  --brand: #005596;
  --brand-ink: #003b69;
  --brand-soft: #e6eff7;
  --brand-deep: #00294a;
  --cyan: #00aeef;          /* process cyan (CMYK 100/0/0/0) on screen */
  --cyan-ink: #0079a8;      /* cyan dark enough for text on white */
  --cyan-soft: #e1f5fd;
  --bg: #eff3f7;
  --panel: #ffffff;
  --ink: #1d2126;
  --ink-2: #4a525c;
  --muted: #7a828c;
  --line: #dbe3eb;
  --line-2: #c6d1dc;
  --ok: #2e9d5b;
  --warn: #d9822b;
  --bad: #c9372c;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 24, 30, .06), 0 1px 1px rgba(20, 24, 30, .04);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --display: 'Gotham', 'Montserrat', 'Inter', system-ui, Arial, sans-serif;   /* Gotham if installed, else Montserrat (its free cousin) */
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0; letter-spacing: -.01em; }
h3 { font-size: 14px; margin: 0; }
h4 { margin: 16px 0 8px; font-size: 13px; }
input, select, textarea { font: inherit; color: inherit; background: #fff; border: 1px solid var(--line-2); border-radius: 7px; padding: 7px 9px; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 35%, transparent); border-color: var(--brand); }
input:disabled, select:disabled, textarea:disabled { background: #f3f6f9; color: var(--ink-2); }
textarea { resize: vertical; width: 100%; }
.mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.bad { color: var(--bad); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; font: 500 13px var(--font); padding: 7px 12px; border-radius: 7px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; white-space: nowrap; text-decoration: none !important; }
.btn:hover { background: #f3f7fb; border-color: #b3c1cf; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
.btn-sm { padding: 4px 9px; font-size: 12px; }
.icon-btn { border: 0; background: transparent; cursor: pointer; font-size: 16px; color: var(--ink-2); padding: 4px 7px; border-radius: 6px; }
.icon-btn:hover { background: #e8eef4; }
.icon-btn:disabled { opacity: .3; }
.icon-btn.danger:hover { color: var(--bad); }
.link-btn { border: 0; background: none; color: var(--brand); cursor: pointer; padding: 0; font: inherit; }
.link-btn.small { font-size: 12px; }

/* Shell */
.demo-bar { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 7px 18px; background: #fff7e0; border-bottom: 1px solid #f0dfa8; font-size: 12.5px; color: #6b5512; }
.demo-bar select { padding: 3px 6px; font-size: 12.5px; }
.shell { display: grid; grid-template-columns: 216px 1fr; min-height: calc(100vh - 34px); }
.nav { background: #16191d; color: #c9cdd2; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; padding: 18px 18px 14px; color: #fff; }
.brand-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 12px; letter-spacing: .02em; }
.nav nav { display: flex; flex-direction: column; padding: 6px 10px; gap: 2px; flex: 1; }
.nav nav a { display: flex; align-items: center; gap: 10px; color: #c9cdd2; padding: 8px 10px; border-radius: 7px; font-weight: 500; }
.nav nav a:hover { background: #22262b; text-decoration: none; color: #fff; }
.nav nav a.active { background: #262b31; color: #fff; box-shadow: inset 3px 0 0 var(--brand); }
.nav-ico { width: 18px; text-align: center; opacity: .8; }
.nav-foot { padding: 12px 14px 16px; border-top: 1px solid #262a2f; display: grid; gap: 8px; }
.nav-foot .link-btn { color: #9aa1a9; font-size: 12px; text-align: left; }
.me { display: flex; gap: 10px; align-items: center; color: #e8eaed !important; text-decoration: none !important; }
.me b { display: block; font-size: 13px; }
.me small { color: #8d949c; }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #2d3339; font-size: 11px; font-weight: 600; }
.topbar { display: none; }
.main { min-width: 0; }
.page { padding: 22px 28px 60px; max-width: 1400px; }
.page-board { max-width: none; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head .sub { margin: 4px 0 0; color: var(--muted); }
.page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.search { width: 230px; }
.crumbs { font-size: 12px; color: var(--muted); margin-bottom: 6px; }

/* Segmented filters */
.seg { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.seg button { font: 500 12.5px var(--font); border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); padding: 5px 11px; border-radius: 999px; cursor: pointer; }
.seg button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg .count { opacity: .6; margin-left: 4px; }
.seg-inline { margin: 0; }

/* Pills, flags, tags */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 7px; border-radius: 999px; font-size: 12.5px; font-weight: 500; background: color-mix(in srgb, var(--c) 14%, #fff); color: color-mix(in srgb, var(--c) 70%, #000); white-space: nowrap; }
.pill-sm { font-size: 11.5px; padding: 2px 8px 2px 6px; }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.flags { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.flag { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 40%, #fff); background: color-mix(in srgb, var(--c) 8%, #fff); padding: 1px 6px; border-radius: 4px; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 5px; background: var(--brand-soft); color: var(--brand-ink); vertical-align: middle; }
.tag-quiet { background: #e8eef4; color: var(--ink-2); }

/* Board */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.col { background: #e4ebf2; border-radius: 12px; min-height: 140px; display: flex; flex-direction: column; border: 2px solid transparent; }
.col-over { border-color: var(--brand); background: var(--brand-soft); }
.col-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px 8px; font-weight: 600; font-size: 13px; position: sticky; top: 0; }
.col-dot { width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.col-head .count { color: var(--muted); font-weight: 500; }
.col-val { margin-left: auto; color: var(--muted); font-weight: 500; font-size: 12px; }
.col-body { padding: 0 8px 10px; display: grid; gap: 8px; }
.col-empty { color: var(--muted); font-size: 12px; text-align: center; padding: 18px 0; }
.card { background: var(--panel); border-radius: 9px; box-shadow: var(--shadow); border: 1px solid var(--line); border-left: 3px solid var(--c, var(--line)); cursor: grab; }
.card-rush { box-shadow: 0 0 0 2px #b80672 inset, var(--shadow); }
.card-link { display: block; padding: 9px 11px 8px; color: inherit; text-decoration: none !important; }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; }
.jobno { font: 600 12px var(--mono); color: var(--ink-2); }
.card-meta { display: flex; gap: 6px; align-items: center; }
.ful { font-size: 13px; color: var(--muted); }
.card-title { font-weight: 600; line-height: 1.3; }
.card-client { color: var(--ink-2); font-size: 12.5px; margin: 1px 0 4px; }
.card-foot { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 11.5px; }
.card-val { margin-left: auto; font-weight: 600; color: var(--ink-2); }
.progress { width: 44px; height: 5px; border-radius: 3px; background: #e4ebf2; overflow: hidden; flex: none; }
.progress span { display: block; height: 100%; background: var(--ok); }
.card-next { display: block; width: 100%; border: 0; border-top: 1px dashed var(--line); background: transparent; padding: 6px 11px; font: 500 11.5px var(--font); color: var(--brand); text-align: left; cursor: pointer; border-radius: 0 0 9px 9px; }
.card-next:hover { background: var(--brand-soft); }
.due { font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 4px; background: #e8eef4; color: var(--ink-2); white-space: nowrap; }
.due-soon { background: #fff1d6; color: #8a5a00; }
.due-today { background: #ffe2c2; color: #9a4a00; }
.due-late { background: #fde0dd; color: var(--bad); }

/* Tables */
.table-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 9px 12px; border-bottom: 1px solid var(--line); background: #f5f8fb; }
.table td { padding: 9px 12px; border-bottom: 1px solid #e8eef4; vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.num { text-align: right !important; white-space: nowrap; }
.row-link { cursor: pointer; }
.row-link:hover td { background: #f5f8fb; }
.inactive td { opacity: .5; }
.empty { color: var(--muted); text-align: center; padding: 28px; }
.panel .table th { background: transparent; }

/* Panels and forms */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 14px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field-wide { grid-column: 1 / -1; }
.field-label { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.field-hint { font-size: 11px; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.check input { width: auto; }
.inline { display: flex; gap: 6px; }
.inline select { flex: 1; }
.callout { background: var(--brand-soft); border: 1px solid #c8dbec; border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; }
.callout p { margin: 6px 0 0; color: var(--ink-2); }
.error-box { background: #fde8e6; color: #8f1f17; border-radius: 8px; padding: 10px 12px; margin: 8px 0; }
.loading { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 50px; color: var(--muted); }
.spinner { width: 16px; height: 16px; border: 2px solid var(--line-2); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Job and quote pages */
.job-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.job-head h1 .mono { color: var(--ink-2); font-weight: 600; margin-right: 4px; }
.job-sub { color: var(--ink-2); margin-top: 4px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.job-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.stage-strip { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 14px; }
.flag-toggles { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.flag-toggle { font: 500 12px var(--font); border: 1px dashed var(--line-2); background: #fff; color: var(--muted); padding: 4px 10px; border-radius: 999px; cursor: pointer; }
.flag-toggle.on { border: 1px solid var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); color: var(--c); font-weight: 600; }
.flag-toggle:disabled { cursor: default; }
.job-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.folder { margin-top: 12px; font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.folder code { background: #edf2f7; padding: 2px 6px; border-radius: 4px; color: var(--ink-2); }
.floor-items { display: grid; gap: 6px; }
.floor-item { display: grid; grid-template-columns: 22px 56px 1fr auto; gap: 10px; align-items: start; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.floor-item input { margin-top: 3px; width: 17px; height: 17px; }
.floor-item.done { background: #f3faf5; border-color: #cfe9d8; }
.floor-item.done .fi-body b { text-decoration: line-through; color: var(--muted); }
.fi-qty { font: 700 16px var(--font); text-align: right; }
.fi-qty small { display: block; font-size: 10px; color: var(--muted); font-weight: 500; }
.fi-body { display: flex; flex-direction: column; gap: 2px; }
.fi-notes { font-size: 12px; color: #8a5a00; }
.fi-price { font-weight: 600; color: var(--ink-2); }
.fi-total { text-align: right; padding-top: 6px; color: var(--ink-2); }
.spec { font-size: 12px; color: var(--muted); }
.timeline { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.ev { display: flex; flex-direction: column; padding-left: 12px; border-left: 2px solid var(--line); }
.ev-stage { border-color: var(--brand); }
.ev-note { border-color: var(--warn); }
.ev-when { font-size: 11px; color: var(--muted); }
.note-box { display: grid; gap: 6px; justify-items: end; }
.ship { display: block; padding: 8px 0; border-top: 1px solid #e8eef4; color: inherit; }
.ship:first-of-type { border-top: 0; }
.parcel-row { display: flex; gap: 8px; align-items: end; margin-bottom: 8px; }
.parcel-row label { display: grid; gap: 3px; font-size: 11px; color: var(--muted); }
.parcel-row input { width: 80px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stats div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: grid; }
.stats b { font-size: 19px; }
.stats span { font-size: 12px; color: var(--muted); }
.contact { display: grid; width: 100%; text-align: left; border: 0; border-top: 1px solid #e8eef4; background: none; padding: 8px 0; cursor: pointer; font: inherit; color: inherit; }
.contact:first-of-type { border-top: 0; }

/* Items editor */
.items-table input { width: 100%; }
.items-table .w-num { width: 82px; text-align: right; }
.items-table .w-pct { width: 64px; text-align: right; }
.items-table .w-unit { width: 72px; }
.item-title-cell { display: grid; gap: 3px; justify-items: start; }
.item-title-cell input { width: 100%; font-weight: 500; }
.row-tools { white-space: nowrap; }
.spec-row td { background: #f5f8fb; }
.spec-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 10px; }
.spec-grid label { display: grid; gap: 3px; font-size: 11.5px; color: var(--muted); }
.spec-grid .span2 { grid-column: span 2; }
.items-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-top: 10px; flex-wrap: wrap; }
.items-add { display: flex; gap: 8px; }
.totals { display: grid; grid-template-columns: auto auto; gap: 3px 22px; margin: 0; text-align: right; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.totals .grand { font-weight: 700; font-size: 15px; color: var(--ink); }
.picker-bar { display: flex; gap: 8px; margin-bottom: 10px; }
.picker-bar .search { flex: 1; }
.picker-list { max-height: 55vh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.picker-row { display: grid; grid-template-columns: 70px 1fr auto 80px; gap: 10px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid #e8eef4; background: #fff; padding: 9px 12px; cursor: pointer; font: inherit; align-items: center; }
.picker-row:hover { background: var(--brand-soft); }
.picker-row b { text-align: right; }

/* Inbox */
.inbox { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mail { border-bottom: 1px solid #e8eef4; }
.mail:last-child { border-bottom: 0; }
.mail-head { display: grid; grid-template-columns: 220px 1fr auto; gap: 14px; width: 100%; text-align: left; border: 0; background: none; padding: 12px 16px; cursor: pointer; font: inherit; color: inherit; align-items: center; }
.mail-head:hover, .mail.open .mail-head { background: #f5f8fb; }
.mail-subj { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-meta { display: flex; gap: 6px; align-items: center; }
.mail-body { padding: 4px 16px 16px; background: #f5f8fb; }
.mail-body p { margin: 0 0 12px; max-width: 75ch; white-space: pre-wrap; }
.mail-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Settings */
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin-bottom: 12px; }
.roles div { background: #f5f8fb; border-radius: 8px; padding: 9px 11px; display: grid; gap: 2px; font-size: 12px; color: var(--muted); }
.roles b { color: var(--ink); font-size: 13px; }
.integrations { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.integration { border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; }
.integration-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.integration p { margin: 8px 0 0; }

/* Modal and toast */
.modal-back { position: fixed; inset: 0; background: rgba(20, 23, 27, .45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: #fff; border-radius: 12px; width: min(560px, 100%); max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.modal-wide { width: min(820px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal-body { padding: 16px 18px; overflow: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
.toasts { position: fixed; bottom: 18px; right: 18px; display: grid; gap: 8px; z-index: 60; }
.toast { background: #1d2126; color: #fff; padding: 10px 14px; border-radius: 8px; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); max-width: 380px; }
.toast-err { background: var(--bad); }

/* Login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px; width: min(380px, 100%); display: grid; gap: 12px; }
.login-card .brand { color: var(--ink); padding: 0; }
.login-card p { margin: -6px 0 6px; }
.login-links { display: flex; justify-content: space-between; font-size: 12.5px; }

/* Wall display */
.display { min-height: 100vh; background: #0f1215; color: #e7eaee; padding: 18px 20px; }
.display-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.display-head .brand { padding: 0; font-size: 20px; }
.display-stats { display: flex; gap: 22px; align-items: center; font-size: 16px; color: #9aa3ad; }
.display-stats b { color: #fff; font-size: 24px; margin-right: 4px; }
.display-stats .warn b { color: #f5a623; }
.display-stats .bad b { color: #ff6b5e; }
.clock { font: 600 26px var(--mono); color: #fff; }
.display-exit { color: #9aa3ad; font-size: 13px; }
.display-board { display: grid; gap: 12px; align-items: start; }
.display .col { background: #181c21; }
.display .col-head { color: #fff; font-size: 15px; }
.display .card { background: #22272d; border-color: #2c3239; color: #e7eaee; cursor: default; }
.display .card-client, .display .jobno { color: #a5aeb8; }
.display .card-title { font-size: 16px; }
.display .due { background: #2d333a; color: #c8cfd6; font-size: 12.5px; }
.display .due-late { background: #5a1f1a; color: #ffb4ab; }
.display .due-today { background: #5a3a12; color: #ffd08a; }
.display .progress { background: #2d333a; }
.display .muted { color: #8b949e; }

/* Print documents */
.print-wrap { background: #dde5ee; min-height: 100vh; padding: 0 0 40px; }
.print-bar { position: sticky; top: 0; display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 18px; background: #fff; border-bottom: 1px solid var(--line); z-index: 5; }
.doc { background: #fff; width: 210mm; min-height: 297mm; margin: 20px auto; padding: 16mm 15mm 14mm; box-shadow: 0 4px 18px rgba(0, 0, 0, .12); font-size: 12.5px; color: #1b1f24; display: flex; flex-direction: column; }
.doc-head { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 14px; border-bottom: 3px solid var(--brand); }
.doc-logo { width: 190px; display: block; margin-bottom: 8px; }
.doc-co { font-size: 11px; color: #555c64; line-height: 1.5; }
.doc-title { text-align: right; }
.doc-title h1 { font-size: 24px; color: var(--brand); text-transform: uppercase; letter-spacing: .04em; }
.doc-no { font: 700 16px var(--mono); margin: 2px 0 8px; }
.doc-meta { margin-left: auto; font-size: 11.5px; border-collapse: collapse; }
.doc-meta th { text-align: left; color: #6b737c; font-weight: 500; padding: 1px 12px 1px 0; }
.doc-meta td { text-align: right; padding: 1px 0; }
.doc-client { margin: 16px 0 6px; line-height: 1.5; }
.doc-label { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: #6b737c; margin-bottom: 2px; }
.doc-subject { font-size: 16px; margin: 12px 0 8px; }
.doc-items { width: 100%; border-collapse: collapse; margin-top: 8px; }
.doc-items th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: #fff; background: var(--brand); padding: 6px 8px; text-align: left; }
.doc-items td { padding: 7px 8px; border-bottom: 1px solid #e4e4e4; vertical-align: top; }
.doc-spec { font-size: 11px; color: #5f666e; margin-top: 2px; }
.doc-totals { margin: 10px 0 0 auto; border-collapse: collapse; min-width: 220px; }
.doc-totals th { text-align: left; font-weight: 500; color: #555; padding: 3px 14px 3px 0; }
.doc-totals td { text-align: right; padding: 3px 0; }
.doc-totals .grand th, .doc-totals .grand td { font-weight: 700; font-size: 14px; border-top: 2px solid #1b1f24; padding-top: 6px; color: #1b1f24; }
.doc-note { margin-top: 16px; padding: 10px 12px; background: #f4f7fa; border-left: 3px solid var(--brand); white-space: pre-wrap; }
.doc-terms { margin-top: 18px; font-size: 11px; color: #555c64; }
.doc-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid #ddd; font-size: 9.5px; color: #7a828c; text-align: center; }
.doc-terms-ref { margin-top: 6px; font-weight: 600; color: #3b4148; }
/* Documents with more than one A4 sheet (quote and confirmation + terms) */
.doc-multi { padding: 0; background: transparent; box-shadow: none; min-height: 0; display: block; }
.doc-sheet { background: #fff; min-height: 296mm; padding: 16mm 15mm 14mm; box-shadow: 0 4px 18px rgba(0, 0, 0, .12); display: flex; flex-direction: column; }
.doc-sheet + .doc-gap + .doc-sheet, .doc-sheet + .doc-sheet { break-before: page; page-break-before: always; }
.doc-gap { height: 20px; }
.doc-tcs { display: flex; flex-direction: column; flex: 1; }
.doc-tcs-head { display: flex; align-items: center; gap: 18px; padding-bottom: 10px; border-bottom: 3px solid var(--brand); margin-bottom: 12px; }
.doc-tcs-head h2 { font-size: 18px; color: var(--brand); text-transform: uppercase; letter-spacing: .04em; }
.doc-tcs-head .muted { font-size: 11px; }
.doc-logo-sm { width: 130px; margin: 0; }
.doc-tcs-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 9mm; font-size: 9.6px; line-height: 1.42; color: #2b3036; }
.doc-tc { margin-bottom: 7px; }
.doc-tc h4 { font-size: 10.2px; color: var(--brand-ink); margin-bottom: 1px; }
.doc-tc p { margin: 0; }
.jobsheet { font-size: 13px; }
.js-head { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start; border-bottom: 4px solid #1b1f24; padding-bottom: 12px; }
.js-no { font: 800 40px var(--mono); line-height: 1; padding: 8px 12px; background: #1b1f24; color: #fff; border-radius: 6px; }
.js-main h1 { font-size: 22px; }
.js-client { font-size: 14px; color: #444; margin-top: 4px; }
.js-flags { display: flex; gap: 6px; margin-top: 6px; }
.js-flag { font-weight: 700; font-size: 11px; text-transform: uppercase; border: 2px solid #c9372c; color: #c9372c; padding: 1px 6px; border-radius: 4px; }
.qr { width: 110px; height: 110px; }
.qr img, .qr canvas { width: 110px !important; height: 110px !important; }
.js-facts { width: 100%; border-collapse: collapse; margin: 12px 0; }
.js-facts td { border: 1px solid #ccc; padding: 6px 8px; }
.js-facts span { display: block; font-size: 10px; text-transform: uppercase; color: #777; letter-spacing: .05em; }
.js-facts b { font-size: 14px; }
.js-box { border: 1px solid #ccc; padding: 8px 10px; margin: 8px 0; border-radius: 4px; }
.js-items, .js-steps { width: 100%; border-collapse: collapse; margin: 8px 0 14px; }
.js-items th, .js-steps th { background: #1b1f24; color: #fff; text-align: left; font-size: 10.5px; text-transform: uppercase; padding: 6px 8px; }
.js-items td, .js-steps td { border-bottom: 1px solid #ccc; padding: 8px; vertical-align: top; }
.js-items .box { width: 26px; font-size: 16px; text-align: center; border: 1px solid #999; }
.js-items .qty { font-weight: 800; font-size: 16px; white-space: nowrap; }
.js-steps td { height: 34px; }
.js-steps td:first-child { width: 30%; font-weight: 600; }
.jobsheet h3 { margin-top: 6px; }
.js-foot { margin-top: auto; font-size: 10.5px; color: #777; }

@media print {
  @page { size: A4; margin: 0; }
  body, .print-wrap { background: #fff !important; }
  .print-wrap { padding: 0; min-height: 0; }
  .no-print { display: none !important; }
  .doc { margin: 0; box-shadow: none; width: auto; min-height: 296mm; }
  .doc-multi { min-height: 0; }
  .doc-multi .doc-sheet { box-shadow: none; }
  .doc-gap { display: none; }
}

/* Small screens: tablets on the shop floor and phones */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: start; }
  .nav { position: fixed; left: 0; top: 0; bottom: 0; width: 240px; z-index: 40; transform: translateX(-100%); transition: transform .2s; }
  .nav-open .nav { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
  .topbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #16191d; color: #fff; position: sticky; top: 0; z-index: 30; }
  .topbar .icon-btn { color: #fff; }
  .brand-sm { font-weight: 700; }
  .page { padding: 16px 16px 50px; }
  .job-grid { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .search { width: 100%; }
  .page-actions { width: 100%; }
  .mail-head { grid-template-columns: 1fr; gap: 4px; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .board { grid-auto-columns: 82vw; scroll-snap-type: x mandatory; }
  .col { scroll-snap-align: start; }
  .flag-toggles { margin-left: 0; }
}
/* Documents on a phone: full width, no fixed page height. Screen only, so printing (A4 is under 900px
   wide) keeps the real page layout. */
@media screen and (max-width: 900px) {
  .doc { width: 100%; }
  .doc:not(.doc-multi), .doc-sheet { min-height: 0; padding: 16px; }
}

/* Delivery notes */
.dn { border-top: 1px solid #e8eef4; padding: 10px 0; display: grid; gap: 3px; }
.dn:first-of-type { border-top: 0; }
.dn-top { display: flex; gap: 8px; align-items: center; }
.dn-top .link-btn { margin-left: auto; }
.dn-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.dn-h { margin: 18px 0 8px; }
.dn-h:first-child { margin-top: 0; }
.dn-items { display: grid; gap: 6px; }
.dn-item { display: flex; gap: 10px; align-items: center; }
.dn-item .w-num { width: 80px; text-align: right; }
.dn-warn { background: #fff1d6; color: #7a4f00; border-radius: 8px; padding: 8px 10px; font-size: 12.5px; }
.parcel-no { width: 22px; height: 22px; border-radius: 50%; background: #e8eef4; display: grid; place-items: center; font-size: 12px; font-weight: 600; align-self: center; }
.book-steps { margin: 0; padding-left: 20px; display: grid; gap: 16px; }
.book-steps p { margin: 4px 0 0; }
.copy-list { border: 1px solid var(--line); border-radius: 8px; margin-top: 8px; }
.copy-row { display: grid; grid-template-columns: 130px 1fr auto; gap: 10px; align-items: center; padding: 6px 10px; border-top: 1px solid #e8eef4; }
.copy-row:first-child { border-top: 0; }
.copy-label { font-size: 12px; color: var(--muted); }
.copy-val { font-weight: 500; word-break: break-word; }
.dn-parcels { margin-top: 14px; }
.dn-sign { width: 100%; border-collapse: collapse; margin-top: 22px; }
.dn-sign td { border: 1px solid #bbb; height: 54px; vertical-align: top; padding: 6px 8px; width: 33%; }
.dn-sign span { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: #6b737c; }
@media (max-width: 900px) { .copy-row { grid-template-columns: 1fr auto; } .copy-label { grid-column: 1 / -1; } }
.tag-draft { background: #e7f5ec; color: #1f6b3f; }
.draft-note { background: #e7f5ec; border-radius: 8px; padding: 8px 10px; margin: 0 0 12px; font-size: 13px; max-width: 75ch; }

/* Job files */
.row-gap { display: flex; gap: 10px; align-items: center; }
.files { list-style: none; margin: 8px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 8px; }
.files li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 7px 10px; border-top: 1px solid #e8eef4; }
.files li:first-child { border-top: 0; }
.file-kind { font: 700 9.5px var(--font); letter-spacing: .04em; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 45%, #fff); background: color-mix(in srgb, var(--c) 8%, #fff); border-radius: 4px; text-align: center; padding: 2px 0; }
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-weight: 500; }
.file-meta { font-size: 12px; color: var(--muted); white-space: nowrap; }
.files-empty { display: grid; gap: 8px; justify-items: start; }
.files-empty p { margin: 0; }
.files-email { margin-top: 12px; padding: 10px 12px; background: var(--brand-soft); border-radius: 8px; display: grid; gap: 6px; justify-items: start; }
@media (max-width: 900px) { .files li { grid-template-columns: 40px minmax(0, 1fr) auto; } }
.attach-line { margin: -4px 0 12px; }

/* Proofs panel on a job */
.ev-proof { border-color: #b07cc6; }
.proof-row { padding: 10px 0; border-top: 1px solid #e8eef4; }
.proof-row:first-of-type { border-top: 0; padding-top: 0; }
.proof-row.faded { opacity: .6; }
.proof-answer { margin-top: 6px; padding: 7px 10px; border-radius: 8px; font-size: 12.5px; }
.proof-approved { background: #e5f4ea; color: #1f5f37; }
.proof-changes_requested { background: #fde8e6; color: #8a2016; }
.proof-files { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.proof-files li { display: grid; grid-template-columns: 56px 1fr auto auto; gap: 10px; align-items: center; }
.proof-thumb { width: 56px; height: 40px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); background: #edf2f7; }
.proof-thumb-doc { display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #c0392b; }
.proof-pick { margin-top: 8px; padding: 10px 12px; border: 1px dashed var(--line-2); border-radius: 8px; display: grid; gap: 6px; max-height: 260px; overflow: auto; }

/* The client's proof sheet */
.pf { min-height: 100vh; background: #eef3f8; color: #1d2126; font-size: 15px; line-height: 1.5; }
.pf-demo { background: #fff4d6; color: #6b4a00; font-size: 13px; padding: 8px 16px; text-align: center; }
.pf-demo a { margin-left: 8px; font-weight: 600; }
.pf-top { background: #fff; border-bottom: 4px solid var(--brand); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px max(16px, calc(50% - 440px)); }
.pf-top img { height: 38px; width: auto; }
.pf-top span { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); font-weight: 700; }
.pf-main { max-width: 880px; margin: 0 auto; padding: 20px 16px 10px; display: grid; gap: 16px; }
.pf-card { background: #fff; border-radius: 12px; padding: 22px 24px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 6px 20px rgba(0, 0, 0, .04); }
.pf-card h2 { font-size: 17px; margin: 0 0 12px; }
.pf-state { text-align: center; padding: 40px 24px; }
.pf-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); font-weight: 700; }
.pf-intro h1 { font-size: 28px; line-height: 1.2; margin: 4px 0 2px; }
.pf-for { color: #5f666e; }
.pf-msg { margin-top: 14px; padding: 12px 14px; background: #f4f7fa; border-left: 3px solid var(--brand); border-radius: 0 8px 8px 0; white-space: pre-wrap; }
.pf-banner { margin-top: 14px; padding: 12px 14px; border-radius: 8px; }
.pf-ok { background: #e5f4ea; color: #1f5f37; }
.pf-change { background: #fff1e0; color: #7a3d00; }
.pf-old { background: #eef0f2; color: #3b4148; }
.pf-quote { margin-top: 6px; font-style: italic; }
.pf-art { display: grid; gap: 18px; }
.pf-file { margin: 0; }
.pf-file img { display: block; width: 100%; height: auto; border-radius: 6px; border: 1px solid #dbe3ec; background: repeating-conic-gradient(#edf2f7 0% 25%, #fff 0% 50%) 0 0 / 20px 20px; cursor: zoom-in; }
.pf-file object { display: block; width: 100%; height: 70vh; border: 1px solid #dbe3ec; border-radius: 6px; }
.pf-file figcaption { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: #5f666e; margin-top: 6px; word-break: break-all; }
.pf-file figcaption a { white-space: nowrap; font-weight: 600; }
.pf-missing { padding: 30px; text-align: center; background: #edf2f7; border-radius: 6px; color: #5f666e; }
.pf-small { font-size: 13px; color: #6b737c; margin: 10px 0 0; }
.pf-items { width: 100%; border-collapse: collapse; }
.pf-items td { padding: 9px 6px; border-top: 1px solid #e8eef4; vertical-align: top; }
.pf-items tr:first-child td { border-top: 0; }
.pf-qty { width: 90px; font-weight: 700; white-space: nowrap; }
.pf-spec { font-size: 13px; color: #5f666e; }
.pf-decide { border: 2px solid var(--brand); }
.pf-checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pf-checks li { background: #f4f7fa; border-radius: 999px; padding: 5px 12px 5px 30px; position: relative; font-size: 14px; }
.pf-checks li::before { content: '✓'; position: absolute; left: 11px; color: var(--brand); font-weight: 700; }
.pf-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pf-btn { font: 600 16px var(--font); padding: 14px 22px; border-radius: 10px; border: 2px solid transparent; cursor: pointer; flex: 1 1 200px; }
.pf-btn:disabled { opacity: .5; cursor: not-allowed; }
.pf-btn-ok { background: #1f8a4c; color: #fff; }
.pf-btn-ok:hover:not(:disabled) { background: #187040; }
.pf-btn-change { background: #fff; color: #b3261e; border-color: #e3a29c; }
.pf-btn-change:hover:not(:disabled) { background: #fdf0ee; }
.pf-btn-solid { background: #b3261e; color: #fff; border-color: #b3261e; }
.pf-btn-solid:hover:not(:disabled) { background: #8f1f18; }
.pf-btn-plain { background: transparent; color: #3b4148; border-color: #c7d2dd; flex: 0 1 auto; }
.pf-form { margin-top: 16px; padding: 16px; border-radius: 10px; display: grid; gap: 12px; }
.pf-form-ok { background: #f0f8f3; }
.pf-form-change { background: #fdf3f1; }
.pf-form h3 { margin: 0; font-size: 16px; }
.pf-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: #3b4148; }
.pf-form input:not([type=checkbox]), .pf-form textarea { font: 400 15px var(--font); padding: 10px 12px; border: 1px solid #c2cdd9; border-radius: 8px; background: #fff; width: 100%; }
.pf-tick { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; font-size: 14px !important; }
.pf-tick input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.pf-err { color: #b3261e; font-weight: 600; font-size: 14px; }
.pf-link { border: 0; background: none; padding: 0; color: var(--brand); font: inherit; text-decoration: underline; cursor: pointer; }
.pf-terms-toggle { text-decoration: none; font-weight: 600; }
.pf-terms { margin-top: 12px; columns: 2 300px; column-gap: 28px; font-size: 12.5px; color: #3b4148; }
.pf-terms div { break-inside: avoid; margin-bottom: 10px; }
.pf-terms h4 { font-size: 13px; margin: 0 0 2px; color: var(--brand-ink); }
.pf-terms p { margin: 0; }
.pf-foot { text-align: center; font-size: 12px; color: #6b737c; padding: 18px 16px 30px; }
@media (max-width: 600px) {
  .pf-card { padding: 18px 16px; border-radius: 10px; }
  .pf-intro h1 { font-size: 23px; }
  .pf-top img { height: 30px; }
  .pf-file object { height: 55vh; }
  .proof-files li { grid-template-columns: 48px 1fr auto; }
  .proof-files li .file-meta { display: none; }
}
.terms-edit { font: 12.5px/1.5 var(--mono); }


/* ==========================================================================
   Brand layer: Stretford Studios mid blue (#005596) and cyan, on every screen.
   ========================================================================== */
h1, h2, .brand, .pf-intro h1, .doc-title h1, .doc-tcs-head h2 { font-family: var(--display); }
a:hover { color: var(--cyan-ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--cyan) 45%, transparent); border-color: var(--cyan); }
.btn:hover { border-color: var(--cyan); background: var(--cyan-soft); }
.btn-primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
.btn-primary { box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); }
.link-btn:hover { color: var(--cyan-ink); }
.tag { background: var(--cyan-soft); color: var(--brand-ink); }

/* Sidebar: mid blue to deep blue, cyan for where you are */
.nav { background: linear-gradient(180deg, var(--brand) 0%, var(--brand-ink) 55%, var(--brand-deep) 100%); color: #d3e3f1; border-top: 4px solid var(--cyan); }
.nav .brand { flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 16px 14px; }
.brand-logo { background: #fff; border-radius: 9px; padding: 7px 9px; display: block; line-height: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.brand-logo img { height: 34px; width: auto; }
.brand-app { font: 700 11px var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); padding-left: 2px; }
.nav nav a { color: #d3e3f1; }
.nav nav a:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.nav nav a.active { background: rgba(255, 255, 255, .15); color: #fff; box-shadow: inset 3px 0 0 var(--cyan); }
.nav nav a.active .nav-ico { color: var(--cyan); opacity: 1; }
.nav-foot { border-top: 1px solid rgba(255, 255, 255, .14); }
.nav-foot .link-btn { color: #a9c6de; }
.nav-foot .link-btn:hover { color: var(--cyan); }
.me small { color: #a9c6de; }
.avatar { background: var(--cyan); color: var(--brand-deep); font-weight: 700; }
.topbar { border-bottom: 3px solid var(--cyan); }
@media (max-width: 900px) { .topbar { background: linear-gradient(90deg, var(--brand), var(--brand-ink)) !important; } }

/* Preview bar */
.demo-bar { background: var(--brand-deep); border-bottom: 2px solid var(--cyan); color: #cfe3f3; }
.demo-bar b { color: #fff; }
.demo-bar .link-btn { color: var(--cyan); }

/* Page titles: mid blue with a cyan underline */
.page-head h1, .job-head h1 { color: var(--brand-ink); }
.page-head h1::after, .job-head h1::after { content: ''; display: block; width: 44px; height: 4px; border-radius: 2px; margin-top: 8px; background: linear-gradient(90deg, var(--cyan), var(--brand)); }
.job-head h1 .mono { color: var(--cyan-ink); }
.crumbs a { color: var(--brand); }

/* Panels: a cyan marker on each heading, mid blue headings */
.panel { border-top: 3px solid var(--brand); }
.panel-head h3 { display: flex; align-items: center; gap: 8px; color: var(--brand-ink); }
.panel-head h3::before { content: ''; width: 4px; height: 15px; border-radius: 2px; background: var(--cyan); flex: none; }
.stage-strip { border-left: 4px solid var(--cyan); }
.stats div { border-top: 3px solid var(--cyan); }
.stats b { color: var(--brand-ink); font-family: var(--display); }
.callout { background: var(--cyan-soft); border-color: #a9e2f8; border-left: 4px solid var(--cyan); }

/* Filters */
.seg button:hover { border-color: var(--cyan); color: var(--brand-ink); }
.seg button.on { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: inset 0 -2px 0 var(--cyan); }

/* Tables: mid blue header text, cyan rule */
.table th { color: var(--brand-ink); background: #eef4fa; border-bottom: 2px solid var(--cyan); }
.panel .table th { background: transparent; }
.row-link:hover td { background: var(--cyan-soft); }
.table-wrap, .inbox { border-top: 3px solid var(--brand); }

/* Board */
.col { background: #e3ebf3; }
.col-head { border-bottom: 2px solid color-mix(in srgb, var(--c, var(--brand)) 55%, transparent); margin: 0 8px 8px; padding: 10px 4px 8px; }
.card:hover { border-color: #a9d9ef; }
.card-next { color: var(--brand); }
.card-next:hover { background: var(--cyan-soft); color: var(--brand-ink); }

/* Modals and toasts */
.modal { overflow: hidden; }
.modal-head { background: linear-gradient(90deg, var(--brand), var(--brand-ink)); border-bottom: 3px solid var(--cyan); color: #fff; }
.modal-head h3 { color: #fff; font-family: var(--display); }
.modal-head .icon-btn { color: #fff; }
.modal-head .icon-btn:hover { background: rgba(255, 255, 255, .15); }
.toast { background: var(--brand-deep); border-left: 4px solid var(--cyan); }
.toast-err { background: var(--bad); border-left-color: #ffb4ab; }
.mail-head:hover, .mail.open .mail-head { background: var(--cyan-soft); }
.mail-body { background: #f3f8fc; }
.roles div { background: #f0f6fb; border-left: 3px solid var(--cyan); }
.integration { border-top: 3px solid var(--cyan); }
.picker-row:hover { background: var(--cyan-soft); }
.timeline .ev-stage { border-color: var(--cyan); }

/* Sign-in: the brand blue, logo on white, cyan edge */
.login { background: radial-gradient(1200px 600px at 85% -10%, rgba(0, 174, 239, .35), transparent 60%), linear-gradient(160deg, var(--brand) 0%, var(--brand-ink) 60%, var(--brand-deep) 100%); }
.login-card { border: 0; border-top: 5px solid var(--cyan); box-shadow: 0 24px 60px rgba(0, 20, 40, .35); }
.login-card .brand { flex-direction: column; align-items: flex-start; gap: 8px; }
.login-card .brand-logo { box-shadow: none; padding: 0; }
.login-card .brand-logo img { height: 46px; }
.login-card .brand-app { color: var(--cyan-ink); font-size: 12px; }

/* Wall display: deep blue, cyan highlights */
.display { background: linear-gradient(180deg, #00213d, #001629); border-top: 5px solid var(--cyan); }
.display .brand-logo img { height: 40px; }
.display-head .brand { flex-direction: row; align-items: center; gap: 14px; }
.display-head .brand-app { font-size: 14px; }
.display .col { background: rgba(255, 255, 255, .05); border: 1px solid rgba(0, 174, 239, .18); }
.display .col-head { border-bottom-color: color-mix(in srgb, var(--c, var(--cyan)) 70%, transparent); }
.display .card { background: #0b3357; border-color: #134a78; }
.display .due { background: #123f66; color: #cfe3f3; }
.display-stats b { color: var(--cyan); }
.clock { color: var(--cyan); }

/* Documents: cyan rule under the blue */
.doc-head { position: relative; }
.doc-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; background: var(--cyan); }
.doc-tcs-head { position: relative; }
.doc-tcs-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; background: var(--cyan); }
.doc-label { color: var(--cyan-ink); font-weight: 700; }
.doc-totals .grand th, .doc-totals .grand td { border-top-color: var(--brand); color: var(--brand-ink); }
.doc-note { border-left-color: var(--cyan); background: #eef8fd; }
.doc-foot { border-top: 2px solid var(--cyan); }
.doc-items tbody tr:nth-child(even) td { background: #f5f9fc; }
.js-no { background: var(--brand); }
.js-head { border-bottom-color: var(--brand); }
.js-items th, .js-steps th { background: var(--brand); }
.print-bar { border-bottom: 3px solid var(--cyan); }

/* Proof sheet */
.pf-top { border-bottom: 4px solid var(--brand); box-shadow: 0 3px 0 var(--cyan); }
.pf-top span { color: var(--brand); }
.pf-kicker { color: var(--cyan-ink); }
.pf-intro { border-top: 4px solid var(--cyan); }
.pf-intro h1 { color: var(--brand-ink); }
.pf-card h2 { color: var(--brand-ink); font-family: var(--display); }
.pf-msg { border-left-color: var(--cyan); background: #eef8fd; }
.pf-checks li { background: var(--cyan-soft); }
.pf-checks li::before { color: var(--cyan-ink); }
.pf-demo { background: var(--brand-deep); color: #cfe3f3; }
.pf-demo a { color: var(--cyan); }
.pf-foot { background: var(--brand-deep); color: #a9c6de; margin-top: 24px; border-top: 3px solid var(--cyan); }
.pf-foot a { color: var(--cyan); }
.proof-pick { border-color: #a9d9ef; background: #f3fafe; }
.demo-bar select { color: var(--ink); }

/* Versions */
.ver-chip { display: inline-block; vertical-align: middle; margin-left: 8px; font: 700 11px var(--font); padding: 2px 7px; border-radius: 6px; background: var(--cyan-soft); color: var(--brand-ink); letter-spacing: .02em; }
td .ver-chip { margin-left: 5px; font-size: 10px; padding: 1px 5px; }
.versions { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.versions li { padding: 10px 0 10px 14px; border-left: 2px solid var(--line); position: relative; }
.versions li::before { content: ''; position: absolute; left: -6px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--line-2); }
.versions li.cur { border-left-color: var(--cyan); }
.versions li.cur::before { background: var(--cyan); border-color: var(--cyan); }
.ver-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ver-net { margin-left: auto; font-size: 13px; color: var(--ink-2); }
.ver-why { margin: 3px 0; padding: 5px 9px; background: #f3f8fc; border-radius: 6px; font-size: 13px; }
.ver-diff { display: grid; gap: 4px; margin-bottom: 10px; }
.ver-d { padding: 5px 10px; border-radius: 6px; background: #f3f6f9; font-size: 13px; }
.ver-d-added { background: #e5f4ea; color: #1f5f37; }
.ver-d-removed { background: #fde8e6; color: #8a2016; text-decoration: none; }
.deleted-banner { background: #fde8e6; color: #8a2016; border-left: 4px solid var(--bad); border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.btn-danger-quiet { color: var(--bad); }
.btn-danger-quiet:hover { border-color: var(--bad); background: #fdf0ee; }
.btn-danger { background: var(--bad) !important; border-color: var(--bad) !important; color: #fff !important; }
.timeline .ev-version { border-color: var(--cyan); }
.timeline .ev-change { border-color: #8aa4bd; }

/* Calendar */
.page-wide { max-width: none; }
.cal-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.cal-title { font-size: 18px; color: var(--brand-ink); margin: 0; min-width: 190px; }
.cal-legend { display: flex; gap: 6px; flex-wrap: wrap; }
.cal-key { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 12%, #fff); color: color-mix(in srgb, var(--c) 75%, #000); cursor: pointer; user-select: none; }
.cal-key input { display: none; }
.cal-key.off { opacity: .4; text-decoration: line-through; }
.cal-dot { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.cal-sync { margin-left: auto; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: var(--radius); overflow: hidden; background: var(--line); gap: 1px; }
.cal-dow { background: #eef4fa; color: var(--brand-ink); font: 600 11.5px var(--font); text-transform: uppercase; letter-spacing: .05em; padding: 7px 9px; border-bottom: 2px solid var(--cyan); }
.cal-day { background: #fff; min-height: 112px; padding: 6px 6px 8px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-week .cal-day { min-height: 340px; }
.cal-day.weekend { background: #f8fafc; }
.cal-day.outside { background: #f3f6f9; }
.cal-day.outside .cal-date { color: #a7b3bf; }
.cal-date { font: 600 12px var(--font); color: var(--ink-2); margin-bottom: 2px; }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--cyan); }
.cal-day.today .cal-date { color: #fff; background: var(--cyan); border-radius: 5px; padding: 1px 6px; align-self: flex-start; }
.cal-ev { display: block; font-size: 11.5px; line-height: 1.3; padding: 3px 6px; border-radius: 5px; background: color-mix(in srgb, var(--c) 11%, #fff); border-left: 3px solid var(--c); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none !important; }
.cal-week .cal-ev { white-space: normal; }
.cal-ev:hover { background: color-mix(in srgb, var(--c) 20%, #fff); color: var(--ink); }
.cal-install { background: var(--brand); color: #fff; border-left-color: var(--cyan); }
.cal-install:hover { background: var(--brand-ink); color: #fff; }
.cal-k { font-weight: 600; opacity: .85; }
.cal-loc { display: block; font-size: 11px; opacity: .8; margin-top: 2px; }
@media (max-width: 900px) {
  .cal { grid-template-columns: 1fr; }
  .cal-dow { display: none; }
  .cal-day { min-height: 0; }
  .cal-day:not(:has(.cal-ev)):not(.today) { display: none; }
  .cal-ev { white-space: normal; }
  .cal-sync { margin-left: 0; }
}

/* Note kinds */
.note-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.note-kind { text-align: left; border: 1px solid var(--line-2); border-top: 3px solid var(--brand); border-radius: 9px; background: #fff; padding: 12px 14px; cursor: pointer; display: grid; gap: 4px; font: inherit; color: inherit; }
.note-kind:hover { border-color: var(--cyan); background: var(--cyan-soft); }
.note-kind b { color: var(--brand-ink); font-size: 14px; }
.note-kind span { font-size: 12.5px; color: var(--ink-2); }
.note-kind small { font-size: 11px; color: var(--muted); }
.note-kind-install { border-top-color: var(--cyan); }
.note-tag-courier { background: #eef4fa; }
.note-tag-delivery { background: #e5f4ea; color: #1f5f37; }
.note-tag-collection { background: #fff1d6; color: #7a4f00; }
.note-tag-install { background: var(--cyan-soft); color: var(--brand-ink); }
.dn-check { display: grid; gap: 6px; }
.dn-check-row { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; }
.dn-check-row input[type=checkbox] { width: 17px; height: 17px; }
@media (max-width: 600px) { .note-kinds { grid-template-columns: 1fr; } }
/* Printed note extras */
.tick-col { width: 34px; text-align: center !important; }
.tick-box { display: inline-grid; place-items: center; width: 16px; height: 16px; border: 1.5px solid #1b1f24; border-radius: 3px; font-size: 12px; font-weight: 700; line-height: 1; }
.tick-box.ticked { background: var(--brand-soft); }
.doc-h3 { font-size: 13px; color: var(--brand-ink); margin: 16px 0 4px; text-transform: uppercase; letter-spacing: .05em; }
.doc-checks td { padding: 8px; }
.doc-checks .initials { width: 90px; color: #b0b6bd; font-size: 10px; text-align: right; border-bottom: 1px solid #ccc; }
.doc-box { border: 1px solid #c9ced4; border-radius: 4px; min-height: 80px; padding: 6px 8px; margin-top: 10px; }
.doc-confirm { margin: 16px 0 0; font-weight: 600; }
.dn-sign td b { display: block; margin-top: 4px; font-size: 13px; }
/* Installation note: keep it to one A4 sheet */
.doc-note-install .doc-client { margin: 10px 0 2px; line-height: 1.4; }
.doc-note-install .doc-subject { margin: 8px 0 4px; }
.doc-note-install .doc-items td { padding: 5px 8px; }
.doc-note-install .doc-h3 { margin-top: 10px; }
.doc-note-install .doc-box { min-height: 64px; }
.doc-note-install .doc-confirm { margin-top: 10px; }
.doc-note-install .dn-sign { margin-top: 12px; }
.doc-note-install .doc-terms { margin-top: 10px; }

/* Export */
.export-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 14px; align-items: start; }
.export-grid .panel { margin-bottom: 0; }
.export-sub { margin-top: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chip-x { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; padding: 3px 4px 3px 9px; }
.chip-x button { border: 0; background: none; cursor: pointer; color: var(--brand-ink); font-size: 15px; line-height: 1; padding: 0 4px; }
.export-search { width: 100%; }
.export-matches { border: 1px solid var(--line); border-radius: 8px; margin-top: 4px; overflow: hidden; }
.export-matches button { display: block; width: 100%; text-align: left; border: 0; border-top: 1px solid var(--line); background: #fff; padding: 8px 10px; font: inherit; cursor: pointer; }
.export-matches button:first-child { border-top: 0; }
.export-matches button:hover { background: var(--cyan-soft); }
.export-sets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-bottom: 10px; }
.export-set { align-items: flex-start; }
.export-set input { margin-top: 3px; }
.export-set span { display: grid; }
.export-set small { color: var(--muted); font-size: 11.5px; }
.export-go { margin-top: 16px; display: flex; justify-content: flex-end; }
.export-preview td { white-space: nowrap; max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.export-more { padding: 8px 12px; margin: 0; }
@media (max-width: 600px) { .export-sets { grid-template-columns: 1fr; } }

/* Site visit (phone first) */
.sv { max-width: 720px; }
.sv-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.sv-head h1 { color: var(--brand-ink); }
.sv .panel { padding: 14px; }
.sv input, .sv select, .sv textarea { font-size: 16px; }   /* 16px stops phones zooming in on focus */
.sv-search { width: 100%; }
.sv-picked { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: var(--cyan-soft); border-radius: 8px; margin-bottom: 10px; }
.sv .field { margin-top: 10px; }
.sv-photo-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sv-big { justify-content: center; padding: 13px 16px; font-size: 15px; width: 100%; }
.sv-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 12px; }
.sv-photo { position: relative; display: grid; gap: 4px; }
.sv-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); max-width: 100%; }
.sv-photo input { font-size: 13px !important; padding: 5px 7px; }
.sv-remove { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 18px; cursor: pointer; }
.sv-area { border: 1px solid var(--line); border-left: 3px solid var(--cyan); border-radius: 8px; padding: 10px; margin-bottom: 10px; display: grid; gap: 8px; }
.sv-area-top { display: flex; gap: 6px; }
.sv-area-top input { flex: 1; font-weight: 600; }
.sv-dims { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.sv-dims label { display: grid; gap: 3px; font-size: 11.5px; color: var(--muted); }
.sv-dims input { width: 104px; }
.sv-qty input { width: 70px; }
.sv-grow { flex: 1 1 200px; }
.sv-grow select { width: 100%; }
.sv-x { padding-bottom: 9px; color: var(--muted); }
.sv-m2 { margin-left: auto; padding-bottom: 8px; font-weight: 700; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.sv-save { position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(transparent, var(--bg) 30%); }
.sv-waiting { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sv-done { text-align: center; padding: 40px 12px; display: grid; gap: 10px; justify-items: center; }
.sv-tick { width: 64px; height: 64px; border-radius: 50%; background: var(--cyan); color: #fff; font-size: 34px; display: grid; place-items: center; }
.sv-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
/* Photos in the Inbox and on jobs */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 10px 0; }
.photo-grid figure { margin: 0; }
.photo-grid img, .photo-ph { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 7px; border: 1px solid var(--line); background: #edf2f7; max-width: 100%; }
.photo-grid figcaption { font-size: 12px; color: var(--ink-2); margin-top: 3px; }
.photo-kind-finished { background: #e5f4ea; color: #1f5f37; }
.photo-kind-snag { background: #fde8e6; color: #8a2016; }
.visit { display: grid; gap: 8px; margin-bottom: 12px; }
.visit-areas { background: #fff; border: 1px solid var(--line); border-radius: 8px; }
@media (max-width: 600px) { .sv-photo-btns { grid-template-columns: 1fr; } .sv-dims input { width: 88px; } }

/* ---- client documents ---------------------------------------------------------------------------- */
.docs-panel.drag { outline: 2px dashed var(--cyan, #00AEEF); outline-offset: -6px; background: #eef9fe; }
.docs { list-style: none; margin: 0; padding: 0; }
.docs li { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line, #e4e8ee); }
.docs li:first-child { border-top: 0; }
.doc-kind { flex: none; min-width: 38px; padding: 4px 6px; border-radius: 5px; background: #eef2f6; color: #4a5866; font-size: 11px; font-weight: 700; text-align: center; letter-spacing: .02em; }
.doc-kind.doc-purchase_order { background: #005596; color: #fff; }
.doc-kind.doc-artwork { background: #e0f5fd; color: #0079a8; }
.doc-kind.doc-drawing, .doc-kind.doc-brief { background: #fff3dc; color: #8a5a00; }
.doc-main { flex: 1; min-width: 0; }
.doc-name { font-weight: 600; text-align: left; word-break: break-word; }
.doc-meta { font-size: 12.5px; color: var(--muted, #6b737c); margin-top: 2px; }
.doc-meta b { color: var(--ink, #1d2733); }
.doc-add { padding: 10px 0; border-top: 1px solid var(--line, #e4e8ee); }
.doc-add:first-child { border-top: 0; padding-top: 0; }
.doc-add-name { margin-bottom: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.doc-view-img { display: block; max-width: 100%; max-height: 75vh; margin: 0 auto; border: 1px solid var(--line, #e4e8ee); }
.doc-view-pdf { width: 100%; height: 75vh; border: 1px solid var(--line, #e4e8ee); }
.po-link { font: inherit; color: #005596; font-weight: 600; }
.po-link:hover { color: #0079a8; text-decoration: underline; }

/* ---- price list: client items -------------------------------------------------------------------- */
.scope-box { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line, #e4e8ee); border-left: 4px solid #00AEEF; border-radius: 8px; background: #f7fbfe; }
.scope-box .seg { margin: 6px 0; }
.client-chooser input { width: 100%; margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 999px; background: #005596; color: #fff; font-size: 13px; }
.chip button { border: 0; background: transparent; color: #fff; font-size: 15px; line-height: 1; cursor: pointer; padding: 0 4px; }
.suggest { margin: 8px 0 0; }
.tag-client { background: #e0f5fd; color: #0079a8; border-color: #b8e6f8; margin-left: 6px; }
.picker-mine { background: #f2fafe; }
.picker-details { display: block; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 520px; }
.picker-note { margin: 0 0 8px; }
.clamp1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 520px; }
.client-prices { list-style: none; margin: 0; padding: 0; }
.client-prices li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; padding: 7px 0; border-top: 1px solid var(--line, #e4e8ee); }
.client-prices li:first-child { border-top: 0; }
.client-prices li > button { flex: 1; text-align: left; min-width: 0; }
.mr-auto { margin-right: auto; }
/* Addresses: client list, picker on quotes and jobs, printed blocks */
.addr-row { gap: 2px; }
.addr-row:disabled { cursor: default; color: inherit; }
.addr-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 3px; }
.addr-tags:empty { display: none; }
.addr-defaults { display: grid; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #e8eef4; }
.addr-uses { display: flex; gap: 18px; flex-wrap: wrap; }
.addr-job { border-top: 1px solid #e8eef4; padding-top: 4px; }
.addr-invoice { margin-bottom: 12px; }
.addr-invoice .field-label { display: block; }
.addr-pick { min-width: 0; }
.addr-shown { margin-top: 4px; overflow-wrap: anywhere; }
.addr-missing { margin: 4px 0 8px; color: #a4570a; }
.addr-typed { margin-top: 10px; }
.sv-places { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.doc-parties { display: flex; gap: 48px; align-items: flex-start; }
.doc-parties > .doc-client { flex: 0 1 50%; }

/* ---- more printed documents: proof sheet, site visit, photos, client prices, production list -------- */
.pp-files { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.pp-files.one { grid-template-columns: 1fr; }
.pp-file { margin: 0; border: 1px solid #d5dbe1; padding: 6px; break-inside: avoid; }
.pp-file img { display: block; width: 100%; max-height: 120mm; object-fit: contain; }
.pp-file figcaption { font-size: 10px; color: #6b737c; margin-top: 4px; }
.pp-file-pdf { border: 1px dashed #b9c2cb; padding: 14px; font-weight: 600; }
.pp-sign { margin-top: 12px; break-inside: avoid; }
.pp-choices { display: flex; flex-direction: column; gap: 7px; margin-bottom: 10px; font-weight: 600; }
.pp-box { display: inline-block; width: 13px; height: 13px; border: 1.5px solid #1d2126; vertical-align: -2px; margin-right: 6px; }
.pp-lines { width: 100%; margin-top: 22px; border-collapse: separate; border-spacing: 14px 0; }
.pp-lines td { border-top: 1px solid #1d2126; padding-top: 4px; font-size: 10.5px; color: #6b737c; width: 33%; }
.pp-answer { margin-top: 12px; padding: 10px 12px; border-left: 4px solid #2e9d5b; background: #eef8f1; }
.pp-answer.pp-changes { border-left-color: #d9822b; background: #fdf4ea; }
.print-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.print-photos figure { margin: 0; break-inside: avoid; }
.print-photos img, .print-photos .photo-ph { display: block; width: 100%; height: 70mm; object-fit: cover; border: 1px solid #d5dbe1; background: #eef1f4; }
.print-photos figcaption { font-size: 10.5px; margin-top: 3px; display: flex; justify-content: space-between; gap: 8px; }
.print-photos figcaption span { color: #7a828c; }
.doc-photos section, .doc-visit .doc-items { break-inside: auto; }
.doc-photos .doc-h3 { break-after: avoid; }
.prod-head { display: flex; align-items: center; gap: 16px; padding-bottom: 8px; border-bottom: 3px solid var(--brand); margin-bottom: 10px; }
.prod-head h1 { font-size: 20px; color: var(--brand); text-transform: uppercase; letter-spacing: .04em; margin: 0; }
.prod-stage h3 { margin: 12px 0 4px; padding-left: 8px; border-left: 5px solid var(--c, var(--brand)); font-size: 13px; break-after: avoid; }
.prod-table { font-size: 11px; }
.prod-table tr { break-inside: avoid; }
.prod-table tr.late td { font-weight: 600; }
.prod-table tr.late td:nth-child(5) { color: #c0392b; }
@media print {
  .pp-file img { max-height: 100mm; }
  .pp-files:not(.one) .pp-file img { max-height: 70mm; }
  .doc-proof .doc-box { min-height: 60px; }
}
@media print {
  .doc-proof .pp-file img { max-height: 82mm; }
  .doc-proof .pp-files:not(.one) .pp-file img { max-height: 60mm; }
  .doc-proof .doc-client { margin: 8px 0 2px; line-height: 1.35; }
  .doc-proof .doc-subject { margin: 6px 0 4px; }
  .doc-proof .doc-note { margin-top: 6px; padding: 6px 10px; }
  .doc-proof .pp-files { margin: 8px 0; }
  .doc-proof .pp-choices { gap: 4px; margin-bottom: 6px; }
  .doc-proof .doc-box { min-height: 48px; }
  .doc-proof .pp-lines { margin-top: 16px; }
}
.prod-table { table-layout: fixed; width: 100%; } .prod-table td { overflow-wrap: anywhere; }

/* ---- price list spreadsheet and history ------------------------------------------------------------- */
.sheet-summary { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 8px; }
.sheet-summary span { background: var(--brand-soft, #e6eff7); padding: 4px 10px; border-radius: 999px; }
.sheet-summary .warn { background: #fdf0dc; color: #8a5a00; }
.warn-box { background: #fff8ec; border-left: 4px solid #d9822b; padding: 8px 12px; margin: 8px 0; }
.warn-box ul { margin: 4px 0 0 18px; padding: 0; font-size: 13px; }
.sheet-table { max-height: 50vh; overflow: auto; }
.sheet-table .was { color: #8a9099; text-decoration: line-through; }
.sheet-table .now { font-weight: 600; }
.pct.up { color: #2e7d4f; } .pct.down { color: #b23b3b; }
.sheet-new { margin: 0 0 8px 18px; padding: 0; }
.price-hist-box { margin-top: 12px; border: 1px solid var(--line, #e4e8ee); border-radius: 8px; padding: 8px 12px; }
.price-hist-box summary { cursor: pointer; font-weight: 600; color: var(--brand, #005596); }
.price-history { list-style: none; margin: 8px 0 0; padding: 0; max-height: 55vh; overflow: auto; }
.price-history li { padding: 6px 0; border-top: 1px solid var(--line, #e4e8ee); font-size: 13.5px; }
.price-history li:first-child { border-top: 0; }

/* ---- price feedback: line prompt and adjustments report --------------------------------------------- */
.price-prompt-row td { padding-top: 0 !important; border-top: 0 !important; }
.price-prompt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 7px 10px; background: #eef8fd; border-left: 3px solid #00AEEF; border-radius: 6px; font-size: 13px; }
.price-prompt > span { margin-right: 4px; }
.adj-table td { vertical-align: top; }
.adj-actions { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.adj-table tr.faded td { opacity: .55; }
.ready-by-field { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ready-by-field input { flex: 1; min-width: 140px; }

/* ---- RAMS --------------------------------------------------------------------------------------------- */
.rams-page .haz-card { border: 1px solid var(--line, #e4e8ee); border-left: 4px solid #005596; border-radius: 8px; padding: 10px 12px; margin: 10px 0; background: #fbfcfe; }
.haz-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 6px; }
.haz-title { flex: 1 1 260px; font-weight: 700; }
.haz-risk { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted, #6b737c); }
.haz-risk select { width: auto; padding: 2px 4px; }
.risk { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.risk-low, .ra-low { background: #e3f4ea; color: #1f7a45; }
.risk-med, .ra-med { background: #fff1d6; color: #8a5a00; }
.risk-high, .ra-high { background: #fde3e1; color: #a52a20; }
.ppe-pick { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.chip-check { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border: 1px solid var(--line, #d5dbe1); border-radius: 999px; font-size: 13px; cursor: pointer; }
.chip-check.on { background: #005596; color: #fff; border-color: #005596; }
.chip-check input { display: none; }
.tag.rams-draft { background: #eef1f4; color: #4a5866; } .tag.rams-approved { background: #e0f5fd; color: #0079a8; }
.tag.rams-sent { background: #e3f4ea; color: #1f7a45; } .tag.rams-superseded { background: #f3f3f3; color: #8a9099; text-decoration: line-through; }
.rams-list { list-style: none; margin: 0; padding: 0; }
.rams-list li { padding: 7px 0; border-top: 1px solid var(--line, #e4e8ee); }
.rams-list li:first-child { border-top: 0; }
/* printed */
.doc-rams .doc-sheet { position: relative; }
.rams-draft-mark { position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%) rotate(-30deg); font: 900 120px/1 var(--display, Arial); color: rgba(192, 57, 43, .08); pointer-events: none; letter-spacing: .1em; }
.rams-facts { width: 100%; border-collapse: collapse; margin: 6px 0 10px; font-size: 12px; }
.rams-facts th { width: 26%; text-align: left; vertical-align: top; padding: 5px 8px; background: #eef4f9; color: #005596; font-weight: 700; border-bottom: 1px solid #fff; }
.rams-facts td { padding: 5px 8px; border-bottom: 1px solid #e6ebf0; }
.rams-h { font: 700 13px var(--display, Arial); color: #005596; text-transform: uppercase; letter-spacing: .04em; margin: 12px 0 4px; padding-bottom: 3px; border-bottom: 2px solid #00AEEF; break-after: avoid; }
.doc-rams p { font-size: 12px; margin: 4px 0; }
.rams-steps { margin: 4px 0 0 18px; padding: 0; font-size: 12px; }
.rams-steps li { margin: 2px 0; padding-left: 2px; }
.rams-ppe { display: flex; flex-wrap: wrap; gap: 5px; }
.rams-ppe span { background: #005596; color: #fff; border-radius: 4px; padding: 3px 8px; font-size: 11px; font-weight: 600; }
.rams-band { display: flex; justify-content: space-between; align-items: baseline; background: #005596; color: #fff; padding: 8px 12px; margin-bottom: 10px; border-bottom: 3px solid #00AEEF; }
.rams-band b { font: 700 15px var(--display, Arial); text-transform: uppercase; letter-spacing: .04em; } .rams-band span { font-size: 11px; opacity: .85; }
.ra-table { font-size: 10.5px; table-layout: fixed; }
.ra-table td { vertical-align: top; }
.ra-score { text-align: center !important; }
.ra-score b { display: block; font-size: 15px; } .ra-score span { display: block; font-weight: 700; font-size: 10px; } .ra-score small { display: block; font-size: 9px; opacity: .75; }
.ra-controls { margin: 0; padding-left: 14px; } .ra-controls li { margin: 1px 0; }
.ra-legend { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 10px; margin-top: 8px; color: #6b737c; }
.ra-legend .ra-low, .ra-legend .ra-med, .ra-legend .ra-high { padding: 2px 8px; border-radius: 3px; font-weight: 700; }
.rams-emergency { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 6px; }
.rams-emergency > div { border: 1px solid #e6ebf0; border-left: 4px solid #c0392b; padding: 6px 10px; }
.rams-emergency h4 { margin: 0 0 2px; font-size: 11px; text-transform: uppercase; color: #c0392b; letter-spacing: .04em; }
.rams-sign td { height: 30px; }
.ra-table th { white-space: normal !important; line-height: 1.2; vertical-align: bottom; }
.ra-table th.num { text-align: center; }


/* Logo usage (brand guidelines Nov 2026): high-res masters, no box behind the logo, generous clear space,
   mid blue logo on white, white compound logo on blue. Clear space is at least the logo's height. */
.brand-logo { background: none; padding: 0; border-radius: 0; box-shadow: none; }
.brand-logo img { display: block; height: auto; }
.nav .brand { align-items: center; padding: 34px 22px 30px; gap: 16px; }
.nav .brand-logo img { width: 132px; }
.nav .brand-app { padding-left: 0; }
.login-card { padding: 34px 30px; }
.login-card .brand { padding: 4px 0 22px; align-items: flex-start; }
.login-card .brand-logo img { width: 170px; height: auto; }
.display-head { padding: 6px 4px 12px; }
.display .brand-logo img { width: 150px; height: auto; }
.display-head .brand { gap: 52px; }
.nav .brand { gap: 22px; }
.doc-logo { width: 170px; margin-bottom: 14px; }
.doc-logo-sm { width: 115px; }
.pf-top { padding-top: 22px; padding-bottom: 22px; }
.pf-top img { height: auto; width: 150px; }
@media (max-width: 600px) { .pf-top img { width: 120px; height: auto; } }


/* ===== Clean look preview: four brand colours, no unnecessary boxes, text straight on the page ===== */
:root { --navy:#0E3D6F; --mid:#005596; --cyan:#00ADEF; --ice:#B3E6FA; --hair:#e3e9ef;
  --brand:#005596; --brand-ink:#0E3D6F; --brand-deep:#0E3D6F; --bg:#ffffff; --line:#e3e9ef; }
html, body { background:#fff; }
h1, h2, .page-head h1, .job-head h1 { color:var(--navy); font-family:var(--display); letter-spacing:-.005em; }
.page-head h1::after, .job-head h1::after { display:none; }
.page { padding:34px 44px 70px; }
.page-head { margin-bottom:26px; }

/* Sidebar: flat navy, text reversed out, no highlight boxes */
.nav { background:var(--navy); border-top:0; }
.nav nav { padding:4px 14px; gap:0; }
.nav nav a { color:#c9dcec; background:none !important; border-radius:0; padding:9px 10px 9px 14px; box-shadow:none !important; }
.nav nav a:hover { color:#fff; }
.nav nav a.active { color:#fff; font-weight:600; box-shadow:inset 2px 0 0 var(--cyan) !important; }
.nav nav a.active .nav-ico { color:var(--ice); }
.brand-app { color:var(--ice); }
.nav-foot { border-top:1px solid rgba(255,255,255,.12); }
.avatar { background:var(--ice); color:var(--navy); }
.demo-bar { background:var(--navy); border-bottom:1px solid rgba(255,255,255,.15); }
.topbar { border-bottom:0; }
@media (max-width:900px){ .topbar { background:var(--navy) !important; } }

/* Panels: no box, just space and a hairline under the heading */
.panel, .table-wrap, .inbox, .stage-strip, .integration, .stats div, .roles div, .callout {
  background:transparent; border:0; border-radius:0; box-shadow:none; }
.panel { padding:0; margin-bottom:36px; }
.panel-head { border-bottom:1px solid var(--hair); padding-bottom:8px; margin-bottom:12px; }
.panel-head h3 { color:var(--mid); font:700 11.5px var(--font); text-transform:uppercase; letter-spacing:.12em; }
.panel-head h3::before { display:none; }
.stage-strip { padding:0 0 14px; border-bottom:1px solid var(--hair); margin-bottom:26px; }
.callout { padding:0 0 0 14px; border-left:2px solid var(--cyan); }
.callout p { color:var(--ink-2); }

/* Stats: big navy numbers sitting on the page */
.stats { gap:28px; margin-bottom:30px; }
.stats div { padding:0; }
.stats b { font-size:26px; color:var(--navy); }
.stats span { text-transform:uppercase; letter-spacing:.08em; font-size:11px; }

/* Tables: hairlines only */
.table th { background:transparent !important; color:var(--muted); border-bottom:1px solid var(--navy); font-size:11px; letter-spacing:.08em; padding-left:0; }
.table td { padding-left:0; border-bottom:1px solid var(--hair); }
.row-link:hover td { background:transparent; color:var(--mid); }

/* Filters: plain text tabs, cyan underline for the selected one */
.seg { gap:22px; border-bottom:1px solid var(--hair); margin-bottom:22px; }
.seg button, .seg button.on { border:0; background:none; border-radius:0; padding:6px 0 9px; color:var(--muted); box-shadow:none; }
.seg button:hover { color:var(--navy); }
.seg button.on { color:var(--navy); font-weight:600; box-shadow:inset 0 -2px 0 var(--cyan); }

/* Buttons: one solid button colour, the rest quiet */
.btn { border-radius:6px; }
.btn:hover { background:#f2f8fc; border-color:var(--mid); }
.btn-primary { background:var(--navy); border-color:var(--navy); box-shadow:none; }
.btn-primary:hover { background:var(--mid); border-color:var(--mid); }
.tag { background:none; padding:0; color:var(--mid); font-weight:700; text-transform:uppercase; letter-spacing:.06em; font-size:10.5px; }
input, select, textarea { border-color:#cfd9e3; }

/* Modals: white, navy title, no coloured header bar */
.modal-head { background:#fff; border-bottom:1px solid var(--hair); color:var(--navy); }
.modal-head h3 { color:var(--navy); }
.modal-head .icon-btn { color:var(--ink-2); }
.toast { background:var(--navy); border-left:0; }

/* Sign-in: straight on navy, no card */
.login { background:var(--navy); }
.login-card { background:transparent; border:0; box-shadow:none; color:#fff; }
.login-card .brand-app { color:var(--ice); }
.login-card .field-label, .login-card label, .login-card p, .login-card .muted, .login-links a { color:#c9dcec; }

/* Wall display: navy, no column boxes */
.display { background:var(--navy); border-top:0; }
.display-stats b, .clock { color:var(--ice); }

/* Documents: hairlines and type, no filled table header */
.doc-head { border-bottom:1px solid var(--navy); padding-bottom:18px; }
.doc-head::after, .doc-tcs-head::after { display:none; }
.doc-title h1, .doc-tcs-head h2 { color:var(--navy); font-weight:700; letter-spacing:.14em; }
.doc-label { color:var(--mid); }
.doc-items th { background:none; color:var(--navy); border-bottom:1px solid var(--navy); padding-left:0; letter-spacing:.08em; }
.doc-items td { padding-left:0; }
.doc-items tbody tr:nth-child(even) td { background:none; }
.doc-note { background:none; border-left:2px solid var(--cyan); padding:0 0 0 12px; }
.doc-foot { border-top:1px solid var(--hair); }
.doc-totals .grand th, .doc-totals .grand td { border-top:1px solid var(--navy); color:var(--navy); }
.doc-tcs-head { border-bottom:1px solid var(--navy); }
.print-bar { border-bottom:1px solid var(--hair); }

/* Client proof page */
.pf { background:#fff; }
.pf-top { border-bottom:1px solid var(--hair); box-shadow:none; }
.pf-card { box-shadow:none; border-radius:0; padding:8px 0 26px; border-bottom:1px solid var(--hair); }
.pf-intro { border-top:0; }
.pf-decide { border:0; }
.pf-msg { background:none; border-left:2px solid var(--cyan); }
.pf-foot { background:var(--navy); border-top:0; }
.floor-item { border:0; border-bottom:1px solid var(--hair); border-radius:0; padding:12px 0; }
.floor-item.done { background:none; }
.files, .copy-list, .proof-pick { border:0; border-radius:0; }
.files li:first-child, .copy-row:first-child { border-top:1px solid var(--hair); }

/* ===== Approved social-frame look carried into the portal (Nov 2026) ===== */
/* Section labels: a short cyan dash, then letter-spaced caps, like the kickers on the frames */
.panel-head h3 { display:flex; align-items:center; gap:10px; }
.panel-head h3::before { display:block !important; content:''; width:18px; height:3px; border-radius:0; background:var(--cyan); }
/* Page titles: bold Montserrat, navy, with the same kicker dash above */
.page-head h1, .job-head h1 { font-weight:800; font-size:26px; letter-spacing:-.015em; }
.page-head h1::before { content:''; display:block; width:28px; height:3px; background:var(--cyan); margin-bottom:12px; }
/* Sidebar: navy into mid blue, faint arcs in the bottom corner */
.nav { background:
  radial-gradient(circle at 100% 100%, transparent 0 140px, rgba(179,230,250,.08) 141px 142px, transparent 143px 200px, rgba(179,230,250,.08) 201px 202px, transparent 203px 260px, rgba(179,230,250,.08) 261px 262px, transparent 263px),
  linear-gradient(180deg, #005596 0%, var(--navy) 45%, var(--navy) 100%); }
.brand-app { letter-spacing:.2em; }
/* Primary action: rounded like the call-to-action on the frames */
.btn-primary { border-radius:999px; padding-left:16px; padding-right:16px; }
/* Sign-in: navy into mid blue, faint arcs, cyan pill button */
.login { background:
  radial-gradient(circle at 100% 100%, transparent 0 220px, rgba(179,230,250,.07) 221px 223px, transparent 224px 320px, rgba(179,230,250,.07) 321px 323px, transparent 324px 420px, rgba(179,230,250,.07) 421px 423px, transparent 424px),
  radial-gradient(1100px 800px at 100% 0%, #005596 0%, rgba(0,85,150,0) 70%), var(--navy); }
.login-card .btn-primary { background:var(--cyan); border-color:var(--cyan); color:var(--navy); font-weight:700; }
.login-card input { background:#fff; color:var(--ink); }
/* Board column headings in the frame label style; the job cards themselves are unchanged */
.col-head { font-family:var(--display); }


/* ---- account application form (public, #/apply/<token>): our social media look ---- */
.af { --af-navy: #0E3D6F; --af-mid: #005596; --af-cyan: #00ADEF; --af-ice: #B3E6FA; --af-soft: #CFE2F1; --af-rule: rgba(179, 230, 250, .35);
  min-height: 100vh; position: relative; overflow: hidden; color: var(--af-soft);
  background: radial-gradient(1100px 760px at 100% 0%, rgba(0, 85, 150, .95), rgba(0, 85, 150, 0) 70%), var(--af-navy);
  font-family: 'News Gothic', 'News Gothic MT', 'News Cycle', 'Helvetica Neue', Arial, sans-serif; font-size: 17px; line-height: 1.55; }
.af-arcs { position: fixed; right: -320px; bottom: -320px; width: 900px; height: 900px; pointer-events: none; border-radius: 50%;
  background: repeating-radial-gradient(circle at center, transparent 0 58px, rgba(179, 230, 250, .07) 58px 60px); }
.af-top { position: relative; padding: 28px max(20px, calc(50% - 380px)) 0; }
.af-top img { height: 34px; width: auto; display: block; }
.af-main { position: relative; max-width: 760px; margin: 0 auto; padding: 56px 20px 40px; }
.af-kicker { display: flex; align-items: center; gap: 12px; color: var(--af-ice); text-transform: uppercase; letter-spacing: .22em; font-size: 13px; font-weight: 700; }
.af-kicker span { width: 34px; height: 3px; background: var(--af-cyan); border-radius: 2px; }
.af-h1 { font-family: 'Gotham', Montserrat, 'Helvetica Neue', Arial, sans-serif; font-weight: 800; color: #fff; font-size: clamp(34px, 6vw, 54px); line-height: 1.08; letter-spacing: -.01em; margin: 18px 0 18px; }
.af-h1 b { color: var(--af-ice); font-weight: 800; }
.af-lead { font-size: 19px; max-width: 600px; margin: 0 0 14px; }
.af a { color: var(--af-ice); }
.af-sec { border-top: 1px solid var(--af-rule); margin-top: 44px; padding-top: 30px; }
.af-sec h2 { font-family: 'Gotham', Montserrat, Arial, sans-serif; font-weight: 800; color: #fff; font-size: 24px; margin: 0 0 18px; }
.af-note { margin: -6px 0 16px; font-size: 15px; }
.af-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.af-wide { grid-column: 1 / -1; }
.af-field { display: flex; flex-direction: column; gap: 6px; }
.af-field > span { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--af-ice); font-weight: 700; }
.af-field i { color: var(--af-cyan); font-style: normal; }
.af-field input { font: inherit; font-size: 17px; color: #fff; background: transparent; border: 0; border-bottom: 1px solid var(--af-rule); border-radius: 0; padding: 8px 0 9px; outline: none; transition: border-color .15s; }
.af-field input:focus { border-bottom-color: var(--af-cyan); box-shadow: 0 1px 0 var(--af-cyan); }
.af-field small { font-size: 13px; color: rgba(207, 226, 241, .72); }
.af-field em, .af-err { font-style: normal; font-size: 14px; color: #FFC2B3; }
.af-bad input { border-bottom-color: #FF9C85; }
.af-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(179, 230, 250, .14); }
.af-q:last-child { border-bottom: 0; }
.af-q + .af-grid { margin: 8px 0 10px; }
.af-yesno { display: flex; gap: 8px; flex: none; }
.af-yesno button { font: inherit; font-size: 15px; font-weight: 700; color: var(--af-soft); background: transparent; border: 1px solid var(--af-rule); border-radius: 999px; padding: 6px 18px; cursor: pointer; }
.af-yesno button.on { background: var(--af-ice); border-color: var(--af-ice); color: var(--af-navy); }
.af-terms { max-height: 360px; overflow-y: auto; padding: 4px 18px 4px 0; border-left: 3px solid var(--af-cyan); padding-left: 18px; font-size: 14px; line-height: 1.5; scrollbar-color: var(--af-rule) transparent; }
.af-terms h4 { color: #fff; font-family: Montserrat, Arial, sans-serif; font-size: 14px; margin: 14px 0 4px; }
.af-terms p { margin: 0; white-space: pre-wrap; }
.af-tick { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0 6px; cursor: pointer; font-size: 16px; }
.af-tick input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--af-cyan); }
.af-accept { color: #fff; }
.af-accept.af-bad span { color: #FFC2B3; }
.af-sign { margin-top: 22px; max-width: 420px; }
.af-sign input { font-family: 'Segoe Script', 'Bradley Hand', 'Brush Script MT', cursive; font-size: 24px; }
.af-btn { margin-top: 28px; display: inline-flex; align-items: center; gap: 14px; font-family: Montserrat, Arial, sans-serif; font-weight: 800; font-size: 17px; color: var(--af-navy);
  background: var(--af-cyan); border: 0; border-radius: 999px; padding: 15px 30px; cursor: pointer; transition: transform .12s, background .12s; }
.af-btn:hover:not(:disabled) { background: var(--af-ice); transform: translateX(2px); }
.af-btn:disabled { opacity: .6; cursor: wait; }
.af-btn span { font-size: 20px; }
.af-foot { position: relative; max-width: 760px; margin: 0 auto; padding: 20px 20px 36px; font-size: 13px; color: rgba(207, 226, 241, .7); border-top: 1px solid rgba(179, 230, 250, .14); }
@media (max-width: 640px) {
  .af { font-size: 16px; }
  .af-main { padding-top: 38px; }
  .af-grid { grid-template-columns: 1fr; }
  .af-q { flex-direction: column; align-items: flex-start; }
  .af-lead { font-size: 17px; }
}

/* ---- staff side: account forms ---- */
.af-status { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: #eef0f2; color: #3b4148; vertical-align: middle; }
.af-status.info { background: #e3f0fb; color: #0b4f86; }
.af-status.warn { background: #fff1d6; color: #7a4b00; }
.af-status.ok { background: #e5f4ea; color: #1f5f37; }
.af-status.bad { background: #fde8e6; color: #8a2016; }
.kv { width: 100%; border-collapse: collapse; font-size: 14px; }
.kv th { text-align: left; font-weight: 500; color: #5f666e; width: 34%; padding: 5px 10px 5px 0; vertical-align: top; }
.kv td { padding: 5px 0; }
.kv-h td { padding: 14px 0 4px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--brand); border-bottom: 1px solid #e4e7eb; }
.af-approve { margin-top: 18px; padding-top: 14px; border-top: 1px solid #e4e7eb; }
.af-approve h3 { margin: 0 0 10px; font-size: 16px; }
.kv-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; padding: 4px 14px 12px; font-size: 13.5px; }
.kv-list dt { color: #5f666e; }
.kv-list dd { margin: 0; }
.count-badge { display: inline-block; margin-left: 6px; min-width: 18px; padding: 0 6px; border-radius: 9px; background: #d9480f; color: #fff; font-size: 11.5px; line-height: 18px; text-align: center; }
.doc-kv td:first-child { width: 32%; color: #444; }
.doc-small { font-size: 11px; color: #555; margin-top: 14px; }

/* ---- account numbers in Xero ---- */
.an-summary { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.an-chip { font: inherit; font-size: 13px; border: 1px solid #dfe5eb; background: #fff; border-radius: 999px; padding: 4px 12px; cursor: pointer; color: #3b4148; }
.an-chip b { margin-right: 2px; }
.an-chip.on { border-color: var(--navy, #0E3D6F); box-shadow: inset 0 0 0 1px var(--navy, #0E3D6F); }
.an-chip.info b { color: #0b4f86; } .an-chip.ok b { color: #1f5f37; } .an-chip.warn b { color: #7a4b00; } .an-chip.bad b { color: #8a2016; }
.an-table { max-height: 46vh; overflow-y: auto; margin-top: 12px; }
.an-warn { color: #9a5b00 !important; }
.doc-acct { margin-top: 4px; font-size: 11px; color: #555; letter-spacing: .02em; }

/* ---- finance board ---- */
.seg-link { margin-left: auto; align-self: center; font-size: 12.5px; font-weight: 600; color: var(--brand, #005596); text-decoration: none; }
.seg-link:hover { text-decoration: underline; }
.col-hint { margin: -2px 10px 8px; font-size: 11.5px; color: #6b737c; line-height: 1.35; }
.fin-card .fin-lines { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; font-size: 12px; color: #4a5663; }
.fin-card .fin-lines .bad { color: #b3261e; font-weight: 600; }
.fin-card.fin-alert { box-shadow: inset 3px 0 0 #d93025; }
.fin-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 10px 10px; }
.fin-watch { background: #fff8e6; border: 1px solid #f1dfa8; border-radius: 10px; padding: 8px 12px; margin-bottom: 14px; }
.fin-watch .link-btn { font-weight: 600; color: #7a4b00; text-align: left; }
.fin-watch-list { margin-top: 8px; display: grid; gap: 4px; }
.fin-watch-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) auto auto; gap: 10px; align-items: center; font-size: 13px; padding: 4px 0; border-top: 1px solid #f1dfa8; }
.fin-watch-row a { color: inherit; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .fin-watch-row { grid-template-columns: 1fr auto; } .fin-watch-row .muted { display: none; } .seg-link { margin-left: 0; } }

/* ---- five-column board, stage labels, holds ---- */
.stage-label { display: inline-block; margin: 2px 0 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--c, #555); background: color-mix(in srgb, var(--c, #888) 12%, white); border-radius: 4px; padding: 1px 6px; }
.fin-board { display: flex; gap: 22px; align-items: flex-start; }
.fin-group { display: flex; flex-direction: column; gap: 8px; }
.fin-group-title { margin: 0 2px; font: 700 11.5px var(--font, Inter, sans-serif); letter-spacing: .1em; text-transform: uppercase; color: #6b737c; }
.fin-group-cols { display: flex; gap: 12px; align-items: flex-start; }
.fin-card .fin-lines .warn { color: #8a5a00; font-weight: 600; }
.hold-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 8px 12px; margin: 0 0 12px; border-radius: 8px; background: #f4f6f8; font-size: 13.5px; }
.hold-strip.on { background: #fff4d6; border: 1px solid #f0d78a; }
.hold-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.fin-group-cols .col { width: 250px; flex: none; }
@media (max-width: 760px) { .fin-group-cols .col { width: 82vw; } }

/* ---- Claude's work ---- */
.claude-chip { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; padding: 1px 7px; border-radius: 999px; background: #eef1f5; color: #5b6573; vertical-align: middle; margin: 2px 4px 2px 0; }
.claude-chip.todo { background: #f3e8ff; color: #6b2fb3; }
.claude-banner { display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin: 0 0 12px; border-radius: 8px; background: #f4f6f8; font-size: 13.5px; }
.claude-banner.todo { background: #f7f0ff; border: 1px solid #dcc6f7; }
.claude-banner > span:nth-child(2) { flex: 1; }
.claude-star { color: #8b4fd6; font-size: 15px; }
.claude-todo ul { list-style: none; margin: 0; padding: 4px 14px 12px; display: grid; gap: 6px; font-size: 14px; }
.claude-todo a { color: inherit; text-decoration: none; }
.claude-todo a:hover { text-decoration: underline; }
