/* NESSA, build 0.1. Tokens from the PFM Decisions Register's visual standard and the NESSA design canvas. */
:root {
  --ink: #17273a; --ink-2: #4d5f74; --muted: #667588;
  --navy: #101b2b; --nav-text: #a9b8cc; --nav-head: #5f7290; --nav-sub: #7f90a6;
  --blue: #164fc5; --blue-hover: #1242a8; --blue-tint: #eef3fd;
  --green: #1d7a45; --green-tint: #ecf6f0;
  --amber: #b07615; --amber-tint: #fdf5e8; --watch: #b45309; --watch-tint: #fff4e6;
  --red: #b32d2d; --red-tint: #fdeeee;
  --line: #e1e7ef; --line-soft: #eef1f5; --paper: #f4f6fa; --card: #ffffff;
  --shadow: 0 1px 2px rgba(16,27,43,0.05);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: Inter, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; color: var(--ink); background: var(--paper); font-size: 14px; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }
button { font-family: inherit; }

/* ---------- Sign in (screens 118, 119) ---------- */
.signin { display: flex; min-height: 100vh; background: var(--navy); }
.signin-brand { width: 520px; flex-shrink: 0; padding: 56px 52px; display: flex; flex-direction: column; }
.signin-brand .mark { display: flex; align-items: center; gap: 12px; }
.signin-brand .mark img { width: 52px; height: 39px; display: block; }
.signin-brand .mark span { color: #fff; font-weight: 700; font-size: 22px; letter-spacing: 0.02em; }
.signin-brand h1 { margin: 150px 0 0; color: #fff; font-size: 34px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; }
.signin-brand p { margin: 14px 0 0; color: var(--nav-text); font-size: 15px; line-height: 1.55; max-width: 380px; }
.signin-brand .build { margin-top: auto; color: var(--nav-head); font-size: 12px; }
.signin-main { flex-grow: 1; background: var(--paper); display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.signin-card { background: var(--card); border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow); width: 440px; max-width: 100%; padding: 34px 36px; }
.eyebrow { font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.signin-card h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 4px 0 0; }
.signin-card .lead { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; margin-top: 6px; }
.btn-ms { margin-top: 22px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--blue); color: #fff; border: 1.5px solid var(--blue); border-radius: 9px; padding: 12px 14px; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-ms:hover { background: var(--blue-hover); }
.btn-ms[disabled] { opacity: 0.6; cursor: wait; }
.signin-notes { margin-top: 18px; border-top: 1px solid var(--line-soft); padding-top: 14px; font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }
.signin-notes div { padding: 3px 0; }
.signin-notes strong { color: var(--ink); }
.signin-help { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.signin-help strong { color: var(--ink); }
.whatnow { margin-top: 16px; background: #f7f9fc; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; font-size: 12.5px; line-height: 1.55; }
.small-note { margin-top: 16px; font-size: 11.5px; color: var(--muted); }
@media (max-width: 900px) { .signin { flex-direction: column; } .signin-brand { width: auto; padding: 28px 20px; } .signin-brand h1 { margin-top: 28px; font-size: 26px; } .signin-brand .build { margin-top: 18px; } }

/* ---------- Pills, buttons ---------- */
.pill { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; white-space: nowrap; display: inline-block; }
.pill.red { background: var(--red-tint); color: var(--red); } .pill.green { background: var(--green-tint); color: var(--green); }
.pill.amber { background: var(--amber-tint); color: var(--amber); } .pill.grey { background: var(--line-soft); color: #54637a; } .pill.blue { background: var(--blue-tint); color: var(--blue); }
.btn { display: inline-block; border-radius: 8px; padding: 7px 12px; font-size: 12.5px; font-weight: 600; white-space: nowrap; cursor: pointer; border: 1.5px solid #dae1ea; background: #fff; color: var(--ink); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-hover); color: #fff; }

/* ---------- App shell ---------- */
.shell { display: flex; min-height: 100vh; }
.side { width: 232px; flex-shrink: 0; background: var(--navy); padding: 20px 13px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { display: flex; align-items: center; gap: 9px; padding: 0 7px 22px; }
.side .brand img { width: 39px; height: 29px; display: block; flex-shrink: 0; }
.side .brand span { color: #fff; font-weight: 600; font-size: 15px; }
.side .group { font-size: 9.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--nav-head); padding: 13px 11px 5px; font-weight: 700; }
.side a.item { padding: 7px 11px; border-radius: 9px; display: flex; align-items: center; gap: 11px; color: var(--nav-text); font-size: 13px; font-weight: 500; margin-bottom: 1px; }
.side a.item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.side a.item.active { background: var(--blue); color: #fff; }
.side a.item svg { flex-shrink: 0; }
.side a.item .label { flex-grow: 1; }
.side .spacer { flex-grow: 1; min-height: 16px; }
.side .viewas-btn { display: flex; align-items: center; gap: 8px; width: 100%; background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.22); border-radius: 9px; padding: 7px 11px; font-size: 12.5px; font-weight: 600; cursor: pointer; margin-bottom: 11px; }
.side .viewas-btn .grow { flex-grow: 1; text-align: left; }
.side .viewas-btn .hint { font-size: 10px; color: var(--nav-text); }
.side .person { border-top: 1px solid rgba(255,255,255,0.09); padding-top: 13px; display: flex; align-items: center; gap: 10px; }
.avatar { width: 33px; height: 33px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; flex-shrink: 0; }
.side .person .name { font-weight: 600; color: #fff; font-size: 13px; }
.side .person .role { font-size: 11px; color: var(--nav-sub); }
.side .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding: 0 2px; font-size: 11px; color: var(--nav-head); }
.side .foot button { background: none; border: 0; color: var(--nav-text); font-size: 11px; cursor: pointer; padding: 0; }
.side .foot button:hover { color: #fff; }

.main { flex-grow: 1; min-width: 0; padding: 24px 28px; }
.dateline { font-size: 12px; color: var(--muted); font-weight: 600; }
.greet { font-size: 22px; font-weight: 700; letter-spacing: -0.025em; margin-top: 1px; }
.subline { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.page-title { font-size: 24px; font-weight: 700; letter-spacing: -0.025em; }

/* View as (screens 120, 121) */
.viewing-bar { background: var(--watch-tint); border: 1.5px solid #efc98f; border-radius: 9px; padding: 7px 12px; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 12.5px; color: #7a4f0a; }
.viewing-bar .grow { flex-grow: 1; }
.viewing-bar button { background: #fff; color: var(--ink); border: 1.5px solid #efc98f; border-radius: 8px; padding: 5px 11px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.viewas-pop { position: fixed; left: 244px; bottom: 22px; width: 380px; max-width: calc(100vw - 32px); background: #fff; border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 10px 30px rgba(16,27,43,0.22); padding: 12px 12px 10px; z-index: 20; }
.viewas-pop h3 { font-size: 14px; font-weight: 800; margin: 0; padding: 0 4px; }
.viewas-pop .intro { font-size: 12px; color: var(--ink-2); line-height: 1.45; padding: 3px 4px 8px; }
.viewas-pop button.who { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 8px 10px; border-radius: 8px; color: var(--ink); background: none; border: 0; border-bottom: 1px solid var(--line-soft); text-align: left; cursor: pointer; }
.viewas-pop button.who:hover { background: #f7f9fc; }
.viewas-pop .who .avatar { width: 30px; height: 30px; font-size: 11px; }
.viewas-pop .who b { display: block; font-size: 13px; }
.viewas-pop .who small { display: block; font-size: 11.5px; color: var(--muted); }
.viewas-pop .foot-note { font-size: 11.5px; color: var(--muted); padding: 8px 4px 0; }

/* Not built yet (staging only) */
.notbuilt { margin-top: 16px; background: #fff; border: 1.5px dashed #c9d3e0; border-radius: 11px; padding: 22px 24px; max-width: 760px; }
.notbuilt h2 { font-size: 16px; font-weight: 800; margin: 6px 0 4px; }
.notbuilt p { font-size: 13px; color: var(--ink-2); line-height: 1.55; margin: 4px 0; }

/* Errors never fail silently */
.toast { position: fixed; top: 16px; right: 16px; max-width: 440px; background: var(--red-tint); color: var(--red); border: 1.5px solid #f0b9b9; border-radius: 10px; padding: 10px 14px; font-size: 13px; line-height: 1.45; z-index: 50; box-shadow: 0 6px 18px rgba(16,27,43,0.15); }
.toast b { display: block; }
.loading { padding: 40px; color: var(--muted); }

@media (max-width: 760px) {
  .shell { flex-direction: column; }
  .side { width: auto; height: auto; position: static; }
  .viewas-pop { left: 16px; }
  .main { padding: 18px 16px; }
}

/* ---------- Build 0.3: sign-in reason ---------- */
.ended-note { margin-top: 16px; background: var(--watch-tint); border: 1px solid #efc98f; color: #7a4f0a; border-radius: 9px; padding: 9px 12px; font-size: 12.5px; line-height: 1.45; font-weight: 600; }
.ended-note + .btn-ms { margin-top: 12px; }

/* ---------- Build 0.3: clients ---------- */
.m { font-size: 11px; color: var(--muted); }
.m12 { font-size: 12px; color: var(--muted); }
.m115 { font-size: 11.5px; color: var(--muted); }
.b { font-size: 12.5px; font-weight: 700; }
.b13 { font-size: 13px; font-weight: 700; }
.p125 { font-size: 12.5px; line-height: 1.55; }
.grow { flex-grow: 1; min-width: 0; }
.row-between { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow); margin-bottom: 10px; }
.card.pad { padding: 10px 14px; }
.card.pad.tight { padding: 8px 14px; margin-bottom: 0; }
.card.soft { background: #f7f9fc; }
.card.tint { background: var(--blue-tint); border-color: #c8d6f5; }
.card-h { font-size: 12px; font-weight: 700; margin-bottom: 2px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 600; font-size: 11.5px; cursor: pointer; }
.small-link { font-size: 11.5px; font-weight: 600; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 12.5px; margin-bottom: 10px; color: var(--muted); flex-wrap: wrap; }
.crumbs a { font-weight: 600; }
.crumbs .sep { color: var(--muted); }
.client-title { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.client-title + .subline { font-size: 13px; margin-top: 3px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 12px; overflow-x: auto; }
.tabs a { padding: 7px 13px; font-size: 13px; font-weight: 500; color: #54637a; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.on { font-weight: 600; color: var(--blue); border-bottom-color: var(--blue); }

/* 14. My clients */
.mc-table { margin-top: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.mc-head, .mc-row { display: grid; grid-template-columns: minmax(0, 1.6fr) 60px 110px 110px 90px 130px; gap: 10px; padding: 10px 16px; }
.mc-head { background: #f7f9fc; border-bottom: 1px solid var(--line); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.mc-row { align-items: center; border-bottom: 1px solid var(--line-soft); color: var(--ink); font-size: 12.5px; }
.mc-row:hover { background: #f7f9fc; color: var(--ink); }
.mc-name { font-size: 13px; font-weight: 700; }
.mc-more { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 10px 16px; font-size: 12px; color: var(--muted); cursor: pointer; }
.mc-more:hover { color: var(--blue); }

/* 15. Profile */
.profile-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr) 270px; gap: 14px; align-items: start; }
.dot { width: 28px; height: 28px; border-radius: 50%; color: #fff; font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.team-row { display: flex; align-items: center; gap: 9px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.team-row:last-child { border-bottom: 0; }
.who-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.card .foot { padding: 6px 0 2px; line-height: 1.45; }
.scope { font-size: 11.5px; line-height: 1.5; margin: 2px 0 4px; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; }
.kv span:first-child { color: var(--muted); }
.kv span:last-child { font-weight: 600; text-align: right; }
.card.list { overflow: hidden; margin-bottom: 12px; }
.list-h { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 12px; background: #f7f9fc; border-bottom: 1px solid var(--line); gap: 8px; }
.list-h .t { font-size: 13px; font-weight: 700; }
.list-h .n { color: var(--muted); font-weight: 500; }
.list-h .t-wrap { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.list-h > a { font-size: 12px; font-weight: 600; white-space: nowrap; }
.chip { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 20px; border: 1px solid #dae1ea; background: #fff; color: var(--ink); cursor: pointer; }
.chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip.big { font-size: 12px; padding: 4px 10px; }
.list-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 118px; gap: 8px; align-items: center; padding: 7px 12px; border-bottom: 1px solid var(--line-soft); color: var(--ink); font-size: 12.5px; }
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: #f7f9fc; color: var(--ink); }
.list-row.hot { background: var(--red-tint); }
.list-empty { padding: 10px 12px; font-size: 12.5px; color: var(--muted); }
.sys-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; }
.sys-row:last-child { border-bottom: 0; }
.note-row { padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.note-row .body { font-size: 12.5px; line-height: 1.45; white-space: pre-wrap; }
#note-form textarea { width: 100%; box-sizing: border-box; margin-top: 8px; border: 1.5px solid #dae1ea; border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 12.5px; resize: vertical; }
#note-form textarea:focus { outline: none; border-color: var(--blue); }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin: 6px 0 4px; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.doing-row { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
.doing-row .dot { width: 26px; height: 26px; font-size: 10px; }
.doing-row .t { font-size: 12.5px; line-height: 1.45; }
.doing-row:hover .t { color: var(--blue); }

/* 16, 17, 18. Open items, documents, reports */
.card.rows { padding: 2px 16px; }
.open-row { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.open-row:last-child, .doc-row:last-child { border-bottom: 0; }
.open-row .who { width: 150px; flex-shrink: 0; }
.open-row .who .m { margin-top: 3px; }
.open-row .title { flex-grow: 1; min-width: 0; font-size: 13px; font-weight: 600; }
.open-row .title.muted { color: var(--muted); }
.open-row .due { width: 90px; flex-shrink: 0; font-size: 12px; color: var(--muted); }
.open-row .due.now { color: var(--red); font-weight: 700; }
.open-row .viewonly { font-size: 11.5px; color: var(--muted); width: 62px; flex-shrink: 0; }
.doc-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.doc-row svg { flex-shrink: 0; }
.docs-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }

/* 93. Activity */
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.card.acts { padding: 2px 16px 6px; }
.act-group { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 10px 0 2px; }
.act-row { display: grid; grid-template-columns: 70px 30px minmax(0, 1fr); gap: 10px; align-items: start; padding: 7px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
.act-row .when { font-size: 11.5px; font-weight: 700; color: var(--muted); padding-top: 6px; }
.act-row .t { font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.act-row .open-link { color: var(--blue); font-weight: 600; }
.act-row:hover .t { color: var(--blue); }

/* 49. An entry, opened */
.entry { max-width: 680px; }
.entry-card { padding: 14px 16px; }
.entry-title { font-size: 17px; font-weight: 700; margin-top: 8px; }
.sent-msg { background: #f1f4f8; border-left: 3px solid var(--blue); border-radius: 6px; padding: 10px 12px; font-size: 13px; line-height: 1.55; margin: 8px 0; }
.kv-grid { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; line-height: 1.45; }
.kv-grid span:first-child { color: var(--muted); font-weight: 600; }
.tl-h { font-size: 13px; font-weight: 700; margin: 10px 0 2px; }
.tl-row { display: flex; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line-soft); font-size: 12px; }
.tl-row span:first-child { width: 60px; flex-shrink: 0; color: var(--muted); font-weight: 600; }
.tl-row:last-child { border-bottom: 0; }
.entry-foot { margin-top: 14px; padding: 11px 16px; display: flex; gap: 28px; font-size: 12.5px; line-height: 1.5; max-width: 980px; }

@media (max-width: 1180px) { .profile-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .profile-grid > div:last-child { grid-column: 1 / -1; } }
@media (max-width: 900px) {
  .profile-grid, .docs-grid { grid-template-columns: minmax(0, 1fr); }
  .mc-head { display: none; }
  .mc-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
  .mc-row > span:nth-child(2), .mc-row > span:nth-child(4) { display: none; }
  .mc-row > span:nth-child(3) { color: var(--muted); }
  .open-row { flex-wrap: wrap; }
  .open-row .title { flex-basis: 100%; order: 3; }
  .entry-foot { flex-direction: column; gap: 8px; }
}
.pill.watch { background: var(--watch-tint); color: var(--watch); }
.who-row .m12, .small-link, .list-h > a, .team-row > .m { white-space: nowrap; }

/* ---------- Build 0.4: drivers, equipment, editing, Suggest a correction ---------- */
[hidden] { display: none !important; }
.fleet-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; align-items: start; margin-top: 12px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 14px; }
.p125.card, .card.p125 { padding: 10px 14px; }

/* 122, 123. The lists */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.toolbar .chips { margin: 0; }
.find { border: 1.5px solid #dae1ea; border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 12.5px; width: 200px; background: #fff; }
.find:focus, .in:focus { outline: none; border-color: var(--blue); }
.card.tbl { overflow: hidden; margin-bottom: 8px; }
.tbl-head, .tbl-row { display: grid; gap: 10px; padding: 8px 14px; align-items: center; }
.tbl-head.drv, .tbl-row.drv { grid-template-columns: minmax(0, 1.4fr) 112px 78px 104px minmax(0, 1fr) 140px; }
.tbl-head.eq, .tbl-row.eq { grid-template-columns: 96px minmax(0, 1.4fr) 62px minmax(0, 1fr) 110px 76px 140px; }
.tbl-head { background: #f7f9fc; border-bottom: 1px solid var(--line); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.tbl-row { border-bottom: 1px solid var(--line-soft); color: var(--ink); font-size: 12.5px; }
.tbl-row:hover { background: #f7f9fc; color: var(--ink); }
.tbl-row.hot { background: var(--red-tint); }
.hot-text { color: var(--red); font-weight: 600; }

/* Guides on the right */
.card.guide { padding: 12px 14px; }
.g-eyebrow { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); font-weight: 700; }
.g-title { font-size: 13.5px; font-weight: 700; margin-top: 3px; }
.g-item { margin-top: 8px; }
.g-h { font-size: 11.5px; font-weight: 700; color: var(--blue); }
.g-t { font-size: 12px; line-height: 1.45; margin-top: 1px; }

/* 19, 20, 124. A driver, a truck, a trailer */
.rec-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.rec-who { display: flex; gap: 14px; align-items: center; }
.rec-avatar { width: 54px; height: 54px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; flex-shrink: 0; }
.rec-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; box-shadow: var(--shadow); }
.tile .tl { font-size: 12px; color: var(--muted); font-weight: 600; }
.tile .tv { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; margin-top: 2px; }
.tile .tv.amber { color: var(--amber); } .tile .tv.red { color: var(--red); } .tile .tv.muted { color: #b8c2cf; }
.tile .ts { font-size: 11.5px; color: var(--muted); }
.tile.live { border-style: dashed; }
.live-note { font-size: 12px; line-height: 1.5; color: var(--ink-2); background: #f7f9fc; border: 1px dashed #c9d3e0; border-radius: 8px; padding: 7px 10px; margin: 4px 0 2px; }
.kv.warn span:last-child { color: var(--amber); }
.banner { border-radius: 9px; padding: 8px 12px; font-size: 12.5px; margin-bottom: 12px; }
.banner.red { background: var(--red-tint); color: var(--red); border: 1.5px solid #f0b9b9; }
.banner.grey { background: var(--line-soft); color: #54637a; border: 1px solid var(--line); }

/* 125 to 128. Editing */
.ed-sec { padding: 12px 16px; }
.ed-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 16px; margin-top: 6px; }
.span2 { grid-column: 1 / -1; }
.fld { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fl { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.fh { font-weight: 500; color: var(--muted); }
.in { border: 1.5px solid #dae1ea; border-radius: 8px; padding: 7px 10px; font: inherit; font-size: 13px; background: #fff; color: var(--ink); width: 100%; box-sizing: border-box; }
.in.small { width: auto; margin-left: 6px; }
textarea.in { resize: vertical; }
.locked { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #eef1f5; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 13px; color: #3c4d61; }
.locked .src { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.leave .leave-row { display: flex; gap: 10px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.ed-note { background: var(--blue-tint); color: var(--blue); border-radius: 8px; padding: 7px 12px; font-size: 12.5px; margin-bottom: 10px; }
.contact-row { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 6px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.contact-row .m { grid-column: 1 / -1; }
.contact-row .em { grid-column: 1 / -1; }
.role-phone { min-height: 13px; }

/* 130. Suggest a correction, over the record */
.sg-shade { position: fixed; inset: 0; background: rgba(16,27,43,0.35); display: flex; justify-content: flex-end; z-index: 30; }
.sg-panel { width: 420px; max-width: 100%; height: 100%; overflow-y: auto; background: #fff; padding: 20px 22px; box-shadow: -10px 0 30px rgba(16,27,43,0.2); display: flex; flex-direction: column; gap: 10px; box-sizing: border-box; }
.sg-title { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.attach-off { font-size: 12px; color: var(--muted); border: 1.5px dashed #c9d3e0; border-radius: 8px; padding: 9px 10px; line-height: 1.45; }
.sent-ok { background: var(--green-tint); color: var(--green); border-radius: 9px; padding: 10px 12px; font-size: 13px; line-height: 1.5; }

/* 131. The review */
.finish-btns { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 4px; }
.big-val { font-size: 16px; font-weight: 700; margin: 4px 0; word-break: break-word; }

@media (max-width: 1100px) { .fleet-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col, .ed-grid { grid-template-columns: minmax(0, 1fr); }
  .tbl-head { display: none; }
  .tbl-row.drv, .tbl-row.eq { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
  .tbl-row > span:nth-child(n+2):not(:last-child) { display: none; }
  .find { width: 100%; }
}

/* Build 0.4: the red message closes, and reminders sit next to the button */
.toast { padding-right: 38px; }
.toast-x { position: absolute; top: 6px; right: 8px; width: 26px; height: 26px; border: 0; border-radius: 6px; background: transparent; color: var(--red); font-size: 20px; line-height: 1; cursor: pointer; }
.toast-x:hover { background: rgba(179,45,45,0.1); }
.hint-note { background: var(--watch-tint); color: #7a4f0a; border: 1px solid #efc98f; border-radius: 8px; padding: 7px 11px; font-size: 12.5px; line-height: 1.45; margin: 6px 0; flex-basis: 100%; }

/* 16. Open items: the sort switch (decided Oct 4) */
.sort-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.seg { display: inline-flex; border: 1.5px solid #dae1ea; border-radius: 8px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: #fff; color: var(--ink); font: inherit; font-size: 12px; font-weight: 600; padding: 5px 11px; cursor: pointer; }
.seg button + button { border-left: 1.5px solid #dae1ea; }
.seg button.on { background: var(--blue); color: #fff; }

/* Today: suggested corrections, until Today is built in step 2 (decided Oct 4) */
.today-cards { margin-top: 14px; max-width: 760px; }
.today-card { padding: 10px 14px 8px; }
.today-card .n { color: var(--muted); font-weight: 500; }
.sg-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
.sg-row:last-of-type { border-bottom: 0; }
.sg-row:hover .b13 { color: var(--blue); }
.side a.item .count { font-size: 11px; padding: 1px 7px; border-radius: 9px; font-weight: 600; background: rgba(255,255,255,0.1); color: #c3d0e0; }
.side a.item .count.red { background: #d64545; color: #fff; font-weight: 700; }
.side a.item.active .count { background: rgba(255,255,255,0.22); color: #fff; }
.side a.item.active .count.red { background: #d64545; }

/* ---------- Driver pay (74), one timesheet (129), the settlement (76): McBry, October 4 ---------- */
.b14 { font-size: 14px; font-weight: 700; } .m11 { font-size: 11px; color: var(--muted); } .m125 { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.pad-14 { padding: 10px 14px; }
.pay-grid { grid-template-columns: minmax(0, 1fr) 300px; margin-top: 0; }
.tbl-head.pay, .tbl-row.pay { grid-template-columns: 190px 110px minmax(0, 1fr) 120px auto; }
.tbl-head.hist, .tbl-row.hist { grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr) 120px; }
.up-grid { display: grid; grid-template-columns: minmax(0, 1fr) 170px minmax(0, 1fr); gap: 10px; }
.ts-grid { grid-template-columns: minmax(0, 1fr) 300px; margin-top: 0; }
.tbl-head.ts, .tbl-row.ts { grid-template-columns: 92px 110px 110px 70px 110px minmax(0, 1fr); padding: 7px 14px; }
.tbl-row.ts.unclear { background: #fffaf2; }
.tbl-row.ts.edit .in { padding: 4px 6px; }
.unclear-t { color: var(--amber); }
.ts-foot { display: flex; justify-content: space-between; gap: 10px; padding: 8px 14px; font-size: 12.5px; }
img.ts-img { display: block; width: 100%; max-height: 420px; object-fit: contain; border-radius: 8px; background: #f7f9fc; border: 1px solid var(--line-soft); }
div.ts-img.empty { min-height: 120px; border-radius: 8px; background: repeating-linear-gradient(135deg, #eef1f5 0 10px, #f7f9fc 10px 20px); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; color: var(--muted); padding: 0 16px; }
.card.ts-unclear { border-color: #efc98f; }
.card.ts-state.red { border-color: #f0b9b9; background: var(--red-tint); }
.choice-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.role-eyebrow { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); font-weight: 700; margin-bottom: 2px; }
.tbl-head.chk, .tbl-row.chk { grid-template-columns: 110px 100px 100px minmax(0, 1fr); padding: 6px 14px; }
.settle-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 24px; align-items: start; }
.phone { width: 360px; height: 720px; box-sizing: border-box; background: var(--navy); border-radius: 46px; padding: 12px; box-shadow: 0 18px 40px rgba(16,27,43,0.18); }
.ph-screen { width: 100%; height: 100%; background: #fff; border-radius: 35px; overflow: hidden; display: flex; flex-direction: column; }
.ph-notch { height: 38px; flex-shrink: 0; display: flex; justify-content: center; align-items: center; }
.ph-notch div { width: 96px; height: 24px; border-radius: 14px; background: var(--navy); }
.ph-head { padding: 6px 20px 12px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; gap: 10px; }
.ph-head img { width: 34px; height: 25px; display: block; }
.ph-body { padding: 14px 20px; flex-grow: 1; display: flex; flex-direction: column; }
.ph-body .grow { flex-grow: 1; }
.ph-title { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.ph-rows { margin-top: 8px; }
.ph-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.ph-row span:last-child { font-weight: 600; }
.ph-row.total { font-weight: 700; }
.ph-note { background: var(--blue-tint); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; line-height: 1.5; margin-top: 12px; }
.ph-btn { display: block; width: 100%; text-align: center; background: #fff; color: var(--ink); border: 1.5px solid #dae1ea; border-radius: 12px; padding: 13px; font: inherit; font-size: 15px; font-weight: 600; margin-top: 8px; }
.ph-btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; padding: 14px; }
.ph-btn[disabled] { cursor: default; }
.ph-cap { width: 360px; margin-top: 8px; text-align: center; }
@media (max-width: 1100px) { .settle-grid, .pay-grid, .ts-grid, .up-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1000px) {
  .tbl-head.pay { display: none; }
  .tbl-row.pay { grid-template-columns: minmax(0, 1fr) auto auto; }
  .tbl-row.pay > span:nth-child(2) { display: none; }
  .tbl-row.pay > span:nth-child(3) { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 760px) {
  .tbl-row.pay, .tbl-row.hist { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
  .tbl-row.ts, .tbl-head.ts { grid-template-columns: 78px 1fr 1fr 44px; font-size: 12px; }
  .tbl-row.ts > span:nth-child(n+2) { display: block; }
  .tbl-row.ts > span:nth-child(n+5), .tbl-head.ts > span:nth-child(n+5) { display: none; }
  .phone, .ph-cap { width: 100%; max-width: 360px; }
}

/* ---------- The owner's settlement link (review.html, screen 76) ---------- */
.review-body { background: #e9edf3; }
.review { min-height: 100vh; display: flex; justify-content: center; align-items: flex-start; padding: 32px 16px; box-sizing: border-box; }
.rv-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; max-width: 420px; width: 100%; box-sizing: border-box; }
.rv-mark { width: 39px; height: 29px; display: block; margin-bottom: 12px; }
.rv-phone { height: auto; min-height: 720px; }
.rv-phone .ph-screen { min-height: 696px; }
.rv-done { text-align: center; font-weight: 600; color: var(--green); padding: 10px 0 2px; }
.rv-err { background: var(--red-tint); color: var(--red); border: 1.5px solid #f0b9b9; border-radius: 10px; padding: 9px 12px; font-size: 12.5px; margin-top: 10px; }
@media (max-width: 480px) {
  .review { padding: 0; }
  .rv-phone { width: 100%; min-height: 100vh; background: #fff; border-radius: 0; padding: 0; box-shadow: none; }
  .rv-phone .ph-screen { border-radius: 0; min-height: 100vh; }
  .rv-phone .ph-notch { display: none; }
  .rv-phone .ph-head { padding-top: 16px; }
}
/* Sending a settlement, inside NESSA */
.send-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; }
.send-row:last-child { border-bottom: 0; }
/* The PFM mark is white (for the navy sidebar); on white screens it's drawn in navy. */
.ph-head img, .rv-mark { filter: brightness(0) saturate(100%) invert(9%) sepia(19%) saturate(2400%) hue-rotate(185deg) brightness(95%); }

/* ---------- 0.4.9: open pay weeks, the client's Driver pay card, settlements, the Earnings Statement, Who handles what ---------- */
.today-card.late { border-color: #f0b9b9; }
a.pay-card { display: block; color: var(--ink); margin-bottom: 12px; }
a.pay-card:hover { border-color: #c8d6f5; color: var(--ink); }
a.pay-card.late { border-color: #f0b9b9; background: #fffafa; }
.cp-row { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line-soft); align-items: center; }
.cpay-head { display: flex; align-items: center; gap: 18px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cpay-head > div:first-child { flex-grow: 1; }
.cpay-ytd { text-align: right; }
.tbl-head.cpay, .tbl-row.cpay { grid-template-columns: 120px minmax(0, 1fr) 150px auto; }
.cpay-recent { padding: 8px 14px; border-top: 1px solid var(--line-soft); }
.tbl-head.stl, .tbl-row.stl { grid-template-columns: 120px minmax(0, 1fr) 80px 110px 80px; padding: 6px 14px; }
.stl-open { padding: 4px 14px; border-bottom: 1px solid var(--line); background: #fffaf2; }
#settlements { margin-top: 12px; }
.who-row2 { padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.who-row2:last-of-type { border-bottom: 0; }
.who-top { display: flex; align-items: baseline; gap: 8px; }
.who-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.who-tags .tag { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 20px; background: var(--line-soft); color: #54637a; }
/* The statement: PFM's own layout, on paper-white */
.stmt { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); max-width: 780px; padding: 36px 40px; font-size: 12.5px; color: #111; font-family: Calibri, Carlito, "Segoe UI", Inter, sans-serif; }
.stmt .b { font-weight: 700; }
.stmt-top { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.stmt-co { line-height: 1.5; padding-top: 34px; }
.stmt-meta { min-width: 240px; }
.stmt-title { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.stmt-kv { display: flex; justify-content: space-between; gap: 18px; line-height: 1.55; }
.stmt-emp { margin-top: 18px; line-height: 1.45; }
.stmt-tbl { width: 100%; max-width: 560px; border-collapse: collapse; margin-bottom: 18px; }
.stmt-tbl th { font-size: 12.5px; text-align: right; padding: 4px 6px; border-bottom: 2px solid #111; background: repeating-linear-gradient(#f3f3f3 0 3px, #fff 3px 6px); }
.stmt-tbl th.lbl { text-align: left; font-size: 14px; background: #fff; }
.stmt-tbl td { text-align: right; padding: 5px 6px; border-bottom: 1px solid #e3e3e3; }
.stmt-tbl tr.tot td { font-weight: 700; background: #e9e9e9; border-bottom: 2px solid #111; }
.stmt-tbl tr.tot td:nth-child(2) { text-align: left; }
.stmt-advice { margin-top: 70px; padding: 16px 18px; background: repeating-linear-gradient(45deg, #e8f0fb 0 2px, #f4f8fd 2px 6px); position: relative; min-height: 200px; }
.stmt-adv-top { display: flex; justify-content: space-between; line-height: 1.5; margin-bottom: 14px; }
.stmt-adv-row { display: flex; justify-content: space-between; border-bottom: 1px solid #111; padding: 2px 0; }
.stmt-adv-row + .stmt-adv-row { border-bottom: 0; }
.stmt-void { position: absolute; left: 22%; top: 46%; transform: rotate(-8deg); font-size: 34px; font-weight: 800; color: rgba(90, 90, 90, 0.35); letter-spacing: 0.02em; }
.stmt-nn { position: absolute; right: 22%; bottom: 18px; font-size: 22px; font-weight: 700; }
@media (max-width: 760px) {
  .stmt { padding: 18px 14px; }
  .stmt-top { flex-direction: column; }
  .stmt-co { padding-top: 0; }
  .cp-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .tbl-row.cpay, .tbl-row.stl { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
  .tbl-head.cpay, .tbl-head.stl { display: none; }
  .tbl-row.stl > span:nth-child(2), .tbl-row.stl > span:nth-child(3), .tbl-row.stl > span:nth-child(5) { display: none; }
  .tbl-row.cpay > span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
}
@media print {
  .side, .viewing-bar, .crumbs, .no-print, .toast { display: none !important; }
  body, .main, .shell { background: #fff !important; padding: 0 !important; margin: 0 !important; display: block !important; }
  .stmt { border: 0; box-shadow: none; max-width: none; padding: 0; }
  .stmt-advice, .stmt-tbl th, .stmt-tbl tr.tot td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.stmt-left { display: flex; gap: 14px; align-items: flex-start; }
.stmt-logo { width: 110px; height: auto; display: block; }
.stmt-left .stmt-co { padding-top: 10px; }
@media (max-width: 760px) { .stmt-left { flex-direction: column; } }

/* ---------- 0.5.0: the client's intake link (intake.html) and a driver's forms (driver.html) ---------- */
.ik-body { background: var(--paper); color: var(--ink); }
.ik-loading { padding: 40px; color: var(--muted); }
.ik-top { min-height: 64px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 28px; box-sizing: border-box; flex-wrap: wrap; }
.ik-brand { display: flex; align-items: center; gap: 12px; }
.ik-brand img, .dv-head img, .ik-solomark { width: 39px; height: 29px; display: block; filter: brightness(0) saturate(100%) invert(9%) sepia(19%) saturate(2400%) hue-rotate(185deg) brightness(95%); }
.ik-t1 { font-size: 15px; font-weight: 700; } .ik-t2 { font-size: 12px; color: var(--muted); }
.ik-due { font-size: 12.5px; color: #33404f; } .ik-sep { color: #c9d3e0; margin: 0 6px; }
.ik-shell { display: flex; min-height: calc(100vh - 64px); }
.ik-side { width: 270px; flex-shrink: 0; padding: 22px 16px; box-sizing: border-box; border-right: 1px solid var(--line); background: #fff; }
.ik-eyebrow { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 14px 10px 8px; }
.ik-nav { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 9px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 500; text-align: left; cursor: pointer; min-height: 40px; }
.ik-nav:hover { background: #f4f6fa; }
.ik-nav.now { background: var(--blue-tint); font-weight: 700; }
.ik-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c9d3e0; color: var(--muted); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; box-sizing: border-box; }
.ik-nav.now .ik-dot { background: var(--blue); border-color: var(--blue); color: #fff; }
.ik-nav.done .ik-dot { background: var(--green); border-color: var(--green); color: #fff; }
.ik-nav.part .ik-dot { border-color: var(--amber); color: var(--amber); }
.ik-tip { margin: 18px 10px 0; padding: 12px; border-radius: 10px; background: #f4f6fa; font-size: 12px; line-height: 1.5; color: #33404f; }
.ik-main { flex-grow: 1; min-width: 0; padding: 26px 34px 60px; box-sizing: border-box; }
.ik-cols { display: flex; gap: 24px; align-items: flex-start; }
.ik-content { flex-grow: 1; min-width: 0; max-width: 720px; }
.ik-aside { width: 280px; flex-shrink: 0; }
.ik-step { font-size: 12px; color: var(--muted); font-weight: 600; }
.ik-h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 2px 0 4px; }
.ik-lede { font-size: 14px; color: #4d5f74; line-height: 1.5; margin: 0 0 16px; }
.ik-card { background: #fff; border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 12px; }
.ik-card.ok { border-color: #b9dcc7; background: var(--green-tint); }
.ik-h2 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.ik-p { font-size: 13px; line-height: 1.55; color: #33404f; margin: 0 0 8px; }
.ik-b { font-size: 13.5px; font-weight: 700; }
.ik-m { font-size: 12px; color: var(--muted); line-height: 1.5; display: block; }
.ik-eb { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); font-weight: 700; margin-bottom: 4px; }
.ik-ai { padding: 8px 0; border-top: 1px solid var(--line-soft); }
.ik-ai .ik-b { font-size: 12.5px; }
.ik-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 14px; }
.ik-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.ik-f { display: flex; flex-direction: column; min-width: 0; margin-bottom: 2px; }
.ik-f.full { grid-column: 1 / -1; }
.ik-f label { font-size: 12px; font-weight: 600; color: #33404f; margin-bottom: 4px; }
.ik-f input, .ik-f select, .ik-f textarea { width: 100%; box-sizing: border-box; border: 1.5px solid #dae1ea; border-radius: 8px; padding: 9px 11px; font: inherit; font-size: 14px; color: var(--ink); background: #fff; min-height: 42px; }
.ik-f input:focus, .ik-f select:focus, .ik-f textarea:focus { outline: none; border-color: var(--blue); }
.ik-hint { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.ik-req { color: var(--red); }
.ik-yn { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.ik-q { font-size: 13.5px; font-weight: 600; }
.ik-ynb { display: flex; gap: 8px; flex-shrink: 0; }
.ik-ynb label, .ik-chips label, .ik-tile, .dv-opt { display: flex; align-items: center; gap: 7px; border: 1.5px solid #dae1ea; background: #fff; border-radius: 9px; padding: 9px 14px; font-size: 13px; font-weight: 600; cursor: pointer; min-height: 44px; box-sizing: border-box; }
.ik-ynb label.on, .ik-chips label.on, .ik-tile.on, .dv-opt.on { border-color: var(--blue); background: var(--blue-tint); }
.ik-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.ik-chips label { min-height: 36px; padding: 6px 12px; border-radius: 20px; font-size: 12.5px; }
.ik-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ik-tile { flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; min-height: 64px; }
.ik-tile > span:first-child { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.ik-note { background: var(--amber-tint); border: 1px solid #efd6a8; border-radius: 10px; padding: 10px 12px; font-size: 12.5px; line-height: 1.5; margin: 8px 0; }
.ik-box { margin-top: 10px; padding: 12px 14px; border-radius: 10px; background: #f4f6fa; }
.ik-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 10px; }
.ik-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; box-sizing: border-box; border-radius: 9px; padding: 10px 18px; font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; border: 1.5px solid #dae1ea; background: #fff; color: var(--ink); }
.ik-btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.ik-btn[disabled] { opacity: 0.6; cursor: wait; }
.ik-link { border: 0; background: transparent; color: var(--blue); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 6px 4px; }
.ik-msg { background: var(--red-tint); color: var(--red); border: 1.5px solid #f0b9b9; border-radius: 10px; padding: 9px 12px; font-size: 13px; margin: 0 0 12px; }
.ik-row { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.ik-grow { flex-grow: 1; min-width: 0; }
.ik-bar { height: 8px; border-radius: 5px; background: #eef1f5; overflow: hidden; margin: 6px 0; }
.ik-bar div { height: 100%; background: var(--green); }
.ik-hrow { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.ik-hnum { width: 28px; height: 28px; border-radius: 50%; background: #eef1f5; color: #54637a; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ik-hnum.done { background: var(--green-tint); color: var(--green); }
.ik-pill { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 20px; background: var(--line-soft); color: #54637a; white-space: nowrap; display: inline-block; }
.ik-pill.green { background: var(--green-tint); color: var(--green); } .ik-pill.amber { background: var(--amber-tint); color: #8a5a0b; }
.ik-rrow { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.ik-rgrid { display: grid; grid-template-columns: minmax(0, 1.3fr) 140px minmax(0, 1.3fr) 110px; gap: 10px; }
.ik-rgrid.e { grid-template-columns: 110px 110px minmax(0, 1.4fr) 90px 110px minmax(0, 1fr); }
.ik-rgrid.p { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) 150px minmax(0, 1.2fr); }
.ik-rfoot { display: flex; gap: 14px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.ik-rfoot label, .ik-check { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.ik-check { padding: 8px 0; }
.ik-check input, .ik-rfoot input[type=checkbox] { width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; }
.ik-check > span { display: flex; flex-direction: column; }
.ik-lab { font-size: 12px; font-weight: 600; color: #33404f; margin: 10px 0 4px; }
.ik-logo { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.ik-logobox { width: 140px; height: 80px; border: 1.5px dashed #c9d3e0; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); overflow: hidden; }
.ik-logobox img { max-width: 100%; max-height: 100%; }
.ik-stepbox { padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.ik-how { margin: 0 0 6px 26px; font-size: 12.5px; }
.ik-how summary { color: var(--blue); font-weight: 600; cursor: pointer; padding: 4px 0; }
.ik-how ol, .ik-ol { margin: 4px 0; padding-left: 20px; line-height: 1.6; font-size: 13px; }
.ik-doc { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.ik-rev { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.ik-revi { display: flex; justify-content: space-between; gap: 14px; padding: 4px 0; font-size: 13px; }
.ik-revi span:last-child { font-weight: 600; text-align: right; }
.ik-solo { max-width: 420px; margin: 60px auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; }
.ik-solomark { margin-bottom: 12px; }
@media (max-width: 1100px) { .ik-aside { display: none; } }
@media (max-width: 820px) {
  .ik-shell { flex-direction: column; }
  .ik-side { width: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 16px; display: flex; gap: 4px; overflow-x: auto; }
  .ik-side .ik-eyebrow, .ik-side .ik-tip { display: none; }
  .ik-nav { width: auto; flex-shrink: 0; }
  .ik-nav span:last-child { white-space: nowrap; }
  .ik-main { padding: 18px 16px 60px; }
  .ik-top { padding: 10px 16px; }
  .ik-grid, .ik-rgrid, .ik-rgrid.e, .ik-rgrid.p, .ik-tiles { grid-template-columns: minmax(0, 1fr); }
  .ik-yn { flex-direction: column; align-items: flex-start; gap: 8px; }
}
/* A driver's forms: one phone-width column */
.dv { max-width: 460px; margin: 0 auto; background: #fff; min-height: 100vh; box-sizing: border-box; }
.dv-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px 12px; border-bottom: 1px solid var(--line-soft); }
.dv-t1 { font-size: 14px; font-weight: 700; } .dv-t2 { font-size: 11px; color: var(--muted); }
.dv-body2 { padding: 16px 20px 30px; }
.dv-big { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.dv-row { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line-soft); background: transparent; font: inherit; color: var(--ink); text-align: left; min-height: 44px; }
.dv-row.link { cursor: pointer; }
.dv-cta { width: 100%; margin-top: 12px; }
.dv-opt { flex-direction: row; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.dv-opt > span { display: flex; flex-direction: column; }
.dv-legal { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; line-height: 1.55; background: #f7f9fc; max-height: 280px; overflow-y: auto; margin-bottom: 8px; }
.dv-ok { width: 64px; height: 64px; border-radius: 50%; background: var(--green-tint); color: var(--green); font-size: 30px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 20px auto 14px; }
.dv .ik-f { margin-bottom: 10px; }
/* Onboarding, Add a client, a client's intake (screen 62) */
.tbl-head.onb, .tbl-row.onb { grid-template-columns: minmax(0, 1.4fr) 90px 100px 150px auto; }
.add-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 14px; margin-top: 6px; }
.add-grid .fld.full { grid-column: 1 / -1; }
.addons { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }
.int-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line-soft); font-size: 12.5px; }
.int-tl { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 8px; padding: 5px 0; border-top: 1px solid var(--line-soft); }
@media (max-width: 760px) { .add-grid, .int-row { grid-template-columns: minmax(0, 1fr); } .tbl-row.onb { grid-template-columns: minmax(0, 1fr) auto; } .tbl-row.onb > span:nth-child(2), .tbl-row.onb > span:nth-child(3), .tbl-head.onb { display: none; } }
