/* SOR Tracker styles (v0.4) */
:root {
  --navy: #1f3864; --ink: #1d2433; --muted: #5d6677; --line: #dde2ea;
  --bg: #f4f6f9; --card: #ffffff; --ok: #1e7b46; --bad: #b42318; --accent: #2f5fb3;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif; background: var(--bg); color: var(--ink); min-height: 100vh; display: flex; flex-direction: column; }
[hidden] { display: none !important; }
header { background: var(--navy); color: #fff; padding: 10px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
header .brand { font-weight: 700; font-size: 18px; color: #fff; text-decoration: none; }
header .brand small { font-weight: 400; opacity: .8; font-size: 13px; margin-left: 6px; }
header .who { font-size: 14px; }
header .who b { font-weight: 600; }
main { flex: 1; padding: 24px 16px; display: flex; justify-content: center; }
.card { background: var(--card); border-radius: 10px; padding: 28px 24px; max-width: 520px; width: 100%; box-shadow: 0 2px 10px rgba(0,0,0,.08); align-self: flex-start; }
.card h1 { margin: 0 0 8px; color: var(--navy); font-size: 24px; }
.card p { color: var(--muted); line-height: 1.5; }
button { font: inherit; border: 0; border-radius: 6px; padding: 10px 18px; cursor: pointer; background: var(--accent); color: #fff; font-weight: 600; }
button.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); padding: 6px 12px; font-weight: 500; }
button.secondary { background: #e9edf3; color: var(--ink); }
.ms { display: inline-flex; align-items: center; gap: 10px; }
.ms i { display: grid; grid-template-columns: 8px 8px; gap: 2px; }
.ms i b { width: 8px; height: 8px; display: block; }
.denied h1 { color: var(--bad); }
.email { font-family: ui-monospace, Consolas, monospace; background: #f1f3f7; padding: 2px 6px; border-radius: 4px; color: var(--ink); }
ul.perms { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 6px; font-size: 14px; }
ul.perms li.yes { color: var(--ok); }
ul.perms li.no { color: #8a92a2; }
.note { background: #fff6e0; border: 1px solid #f1d58a; border-radius: 6px; padding: 8px 12px; font-size: 14px; color: #6b4e00; margin-top: 16px; }
footer { text-align: center; font-size: 12px; color: #8a92a2; padding: 12px 16px 16px; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; margin: 12px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.stack { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 1600px; align-items: center; }
.card.wide { max-width: 900px; }
.card h2 { margin: 0 0 6px; color: var(--navy); font-size: 20px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 14px 0; }
.tiles div { background: #f1f4f9; border-radius: 8px; padding: 10px 12px; }
.tiles b { display: block; font-size: 24px; color: var(--navy); }
.tiles span { font-size: 13px; color: var(--muted); }
.warn { color: #8a5a00; min-height: 1em; }
button:disabled { opacity: .6; cursor: default; }
.tablewrap { overflow-x: auto; }
table.runs { width: 100%; border-collapse: collapse; font-size: 14px; }
table.runs th { text-align: left; color: var(--muted); font-weight: 600; border-bottom: 2px solid var(--line); padding: 6px 8px; }
table.runs td { border-bottom: 1px solid var(--line); padding: 8px; vertical-align: top; }
table.runs small { color: var(--muted); }
table.runs .msg { color: var(--muted); margin-top: 4px; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.pill.done { background: #e3f4ea; color: var(--ok); }
.pill.running { background: #e6eefb; color: var(--accent); }
.pill.failed { background: #fde8e6; color: var(--bad); }

/* v0.4: navigation, list, detail */
nav.main { display: flex; gap: 4px; margin-right: auto; }
nav.main a { color: #dfe6f3; text-decoration: none; padding: 6px 10px; border-radius: 6px; font-size: 15px; }
nav.main a.on, nav.main a:hover { background: rgba(255,255,255,.14); color: #fff; }
.full { width: 100%; max-width: 1600px; align-self: stretch; margin: 0 auto; }
.card.full { max-width: 1600px; padding: 20px 16px; }
.card h1 small { font-size: 15px; color: var(--muted); font-weight: 400; margin-left: 8px; }
a.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; padding: 9px 16px; border-radius: 6px; font-weight: 600; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 14px; }
.filters input[type=search] { flex: 1 1 260px; }
.filters input, .filters select, form#log-form input, form#log-form select, form#log-form textarea {
  font: inherit; padding: 8px 10px; border: 1px solid #c9d1de; border-radius: 6px; background: #fff; color: var(--ink); min-width: 0; }
.chk { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; color: var(--muted); font-weight: 600; border-bottom: 2px solid var(--line); padding: 6px 8px; white-space: nowrap; }
table.list td { border-bottom: 1px solid var(--line); padding: 8px; vertical-align: top; }
table.list tbody tr { cursor: pointer; }
table.list tbody tr:hover { background: #f6f8fc; }
table.list tr.closed td { color: #7d8595; }
table.list small, .muted { color: var(--muted); }
.st { display: inline-block; background: #e6eefb; color: #1d4a9a; border-radius: 10px; padding: 1px 8px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.st.closed { background: #eceef2; color: #646c7a; }
.ball { display: inline-block; border-radius: 10px; padding: 1px 8px; font-size: 12px; font-weight: 600; }
.ball.parts { background: #efe2d0; color: #6b4a26; }   /* light brown (Jonathan) */
.ball.service { background: #e6eefb; color: #1d4a9a; } /* blue (Jonathan) */
.due { font-size: 12px; white-space: nowrap; }
.due.late { color: var(--bad); font-weight: 700; }
.due.ok { color: var(--muted); }
.due.pre { color: #8a92a2; }
.tag { display: inline-block; font-size: 11px; border-radius: 4px; padding: 0 5px; background: #eef1f6; color: #4b5466; white-space: nowrap; }
.tag.gone { background: #fde8e6; color: var(--bad); }
.tag.vor { background: #ff8a00; color: #000; font-weight: 700; } /* orange like the VOR badge - no purple (v0.6.11) */
.tag.warn { background: #fff1d6; color: #8a5a00; }
.err { color: var(--bad); }
#pager button { padding: 6px 12px; margin-left: 6px; }
.req-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.req-head h1 { margin: 0; color: var(--navy); font-size: 24px; }
.req-head p { margin: 4px 0 0; color: var(--muted); }
.req-state { text-align: right; font-size: 14px; color: var(--muted); }
.req-state > div { margin-top: 4px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-bottom: 16px; }
.card.inner { max-width: none; padding: 18px 18px; }
.card.inner h2 { font-size: 17px; }
.card.inner h3 { font-size: 15px; margin: 16px 0 6px; color: var(--navy); }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 8px 0 0; font-size: 14px; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }
ul.sibs { margin: 0; padding-left: 18px; font-size: 14px; }
form#log-form { display: flex; flex-direction: column; gap: 10px; }
form#log-form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
form#log-form .opt { font-size: 12px; }
form#log-form button { align-self: flex-start; }
ol.log { list-style: none; margin: 8px 0 0; padding: 0; }
ol.log li { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
ol.log li.cdk { color: #5d6677; }
ol.log .when { color: var(--muted); font-size: 13px; }
ol.log .who { color: var(--muted); }
.note-text { margin-top: 4px; white-space: pre-wrap; background: #f6f8fc; border-radius: 6px; padding: 6px 8px; color: var(--ink); }
@media (max-width: 640px) {
  ol.log li { grid-template-columns: 1fr; gap: 2px; }
  .req-state { text-align: left; }
  table.list th:nth-child(7), table.list td:nth-child(7), table.list th:nth-child(10), table.list td:nth-child(10) { display: none; }
}
.timing { font-size: 12px; color: var(--muted); margin-top: 2px; }
.t-ok { color: var(--ok); font-weight: 600; }
.t-late { color: var(--bad); font-weight: 600; }
.vor-badge { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.05; background: #ff8a00; color: #000;
  border-radius: 8px; padding: 4px 10px 5px; box-shadow: 0 1px 3px rgba(255,138,0,.4); vertical-align: middle; }
.vor-badge b { font-size: 20px; font-weight: 800; letter-spacing: .5px; }
.vor-badge span { font-size: 11px; font-weight: 700; text-transform: none; }
.st.st-received { background: #e3f4ea; color: #1e7b46; }  /* green */
.st.st-ordered { background: #fff3b0; color: #6e5a00; }   /* yellow */
/* v0.5: My Tasks */
.tasks-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tasks-head select { font: inherit; padding: 7px 10px; border: 1px solid #c9d1de; border-radius: 6px; max-width: 100%; }
.tiles .tile-late b { color: var(--bad); }
.tiles .tile-pre b { color: #8a92a2; }
h2.grp { font-size: 17px; margin: 22px 0 6px; color: var(--navy); }
h2.grp.late { color: var(--bad); }
h2.grp.pre { color: #646c7a; }
h2.grp small { font-size: 13px; color: var(--muted); font-weight: 400; }
table.tasks tr.esc td:nth-child(2) b { color: var(--bad); }
.all-clear { font-size: 18px; color: var(--ok); }
a.btn.secondary-btn { background: #e9edf3; color: var(--ink); }
/* v0.5.1: required fields (Jonathan): red italic "*Required", empty required field highlighted until filled */
form#log-form .req-note, #log-msg { color: var(--bad); font-style: italic; font-weight: 600; }
form#log-form label.needs-fill input, form#log-form label.needs-fill textarea { border: 2px solid var(--bad); background: #fff3f2; }
form#log-form label.apply-ro { flex-direction: row; color: var(--ink); background: #f1f4f9; border-radius: 6px; padding: 8px 10px; }
a.back-btn { display: inline-block; background: #e9edf3; color: var(--ink); text-decoration: none; padding: 7px 14px; border-radius: 6px; font-weight: 600; }
/* v0.5.2: bigger checkboxes everywhere (Jonathan) - not squeezed by the form input style */
input[type=checkbox], form#log-form input[type=checkbox], .filters input[type=checkbox] {
  width: 22px; height: 22px; min-width: 22px; padding: 0; margin: 0; accent-color: var(--accent); cursor: pointer; flex: 0 0 auto; }
form#log-form label.apply-ro { align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.chk { gap: 8px; cursor: pointer; }

/* v0.5.7 Parts Manager review flags - orange like the VOR badge, black text */
.tag.review { background: #ff8a00; color: #000; font-weight: 600; font-size: 12px; padding: 1px 6px; }
.review-box { border: 2px solid #ff8a00; background: #fff4e8; border-radius: 8px; padding: 8px 12px; margin: 10px 0; }
.review-box b { display: block; color: #000; }
.review-box ul { margin: 4px 0; padding-left: 18px; font-weight: 600; }
.review-box small { color: #4b5466; }
.review-box.done { border-color: #9aa3b2; background: #f4f6f9; }

/* v0.5.8 fit the request list / tasks in the window without a sideways scroll bar (Jonathan) */
#page-home { width: 100%; max-width: 1600px; } /* v0.6.14: wide for the VOR section; the cards stay 900 */
table.list td, table.tasks td { padding: 7px 6px; }
table.list th { padding: 6px; }
table.list td .tag, table.tasks td .tag { white-space: normal; }
table.list td:nth-child(4) { min-width: 160px; }
/* v0.5.9 review line: one row of pills, orange like the VOR badge */
.review-line { margin: 10px 0 4px; display: flex; flex-wrap: wrap; gap: 6px; }
.st.st-review { background: #ff8a00; color: #000; }
/* v0.5.10 scheduling before all parts are in */
.notin-warn { border: 2px solid #ff8a00; background: #fff4e8; border-radius: 8px; padding: 8px 12px; margin: 6px 0 10px; }
.notin-warn b { color: #000; }
.notin-warn ul { margin: 4px 0 6px; padding-left: 18px; }
form#log-form label.sched-anyway { background: #fff; border: 1px solid #ff8a00; font-weight: 600; margin-top: 4px; }
/* v0.5.12 not-all-parts warning: red, compact, checkbox on the left (Jonathan) */
form#log-form .notin-warn { border: 2px solid var(--bad); background: #fdecea; padding: 6px 10px; margin: 4px 0 8px; font-size: 14px; line-height: 1.3; }
form#log-form .notin-warn b { color: var(--bad); }
form#log-form .notin-warn ul { margin: 2px 0 4px; }
form#log-form label.sched-anyway { flex-direction: row !important; align-items: center; justify-content: flex-start; gap: 8px;
  border: 1px solid var(--bad); background: #fff; padding: 4px 8px; margin: 0; color: var(--ink); font-weight: 600; }
form#log-form label.sched-anyway input { order: -1; margin: 0; }
.st.st-notin { background: #fdecea; color: var(--bad); border: 1px solid var(--bad); }
/* v0.6 VOR clock, banner, screenshots */
.vclock { display: inline-block; border-radius: 10px; padding: 1px 8px; font-size: 12px; font-weight: 700; white-space: nowrap; margin-top: 2px; }
.vc-run { background: #e6eefb; color: #1d4a9a; }
.vc-amber { background: #ffb000; color: #000; }
.vc-red { background: var(--bad); color: #fff; }
.vc-bad { background: #7a1010; color: #fff; }
.vc-ok { background: #e3f4ea; color: #1e7b46; }
.vc-wait { background: #eceef2; color: #4b5466; }
.vor-banner { border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.vor-banner.open { background: #ff8a00; color: #000; }
.vor-banner.done { background: #f4f6f9; border: 1px solid #d5dbe5; }
.vor-banner > b { font-size: 20px; letter-spacing: .5px; }
.vor-banner .vclock { font-size: 14px; padding: 3px 10px; }
.vb-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; width: 100%; }
.vor-banner.open .vb-facts { color: #1a1a1a; }
.ev-btn { font: inherit; font-size: 13px; padding: 3px 8px; margin-top: 4px; border: 1px solid #c9d1de; background: #fff; border-radius: 6px; cursor: pointer; color: var(--accent); }
.paste-zone { display: block; border: 2px dashed #c9d1de; border-radius: 6px; padding: 8px; text-align: center; color: var(--muted); cursor: text; font-size: 13px; }
.paste-zone:focus { border-color: var(--accent); color: var(--ink); outline: none; background: #f1f4f9; }
.ev-list { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-chip { background: #eef1f6; border-radius: 6px; padding: 2px 6px; font-size: 13px; color: var(--ink); }
.ev-chip button { border: 0; background: none; cursor: pointer; color: var(--bad); padding: 0 2px; }
form#log-form label.needs-fill .paste-zone { border-color: var(--bad); background: #fff3f2; }
/* v0.6.2 New Request, manual requests, time corrections, VOR task section */
.newreq { margin: 8px 0 14px; border: 2px solid var(--accent); }
.newreq-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 14px; align-items: end; }
.newreq-form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
.newreq-form label.chk { flex-direction: row; align-items: center; color: var(--ink); grid-column: 1 / -1; }
.newreq-form p { grid-column: 1 / -1; margin: 0; }
.newreq-form input { font: inherit; padding: 8px 10px; border: 1px solid #c9d1de; border-radius: 6px; }
.newreq-form label.needs-fill input { border: 2px solid var(--bad); background: #fff3f2; }
.tag.manual { background: #e6eefb; color: #1d4a9a; font-weight: 600; }
.manual-box { border: 2px solid var(--accent); background: #f1f4f9; border-radius: 10px; padding: 8px 14px; margin: 0 0 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.manual-box.bad { border-color: var(--bad); background: #fdecea; }
.manual-box.bad > b { color: var(--bad); }
.manual-box form { width: 100%; }
.link-btn { border: 0; background: none; color: var(--accent); cursor: pointer; padding: 0; font: inherit; font-size: 12px; text-decoration: underline; }
.timefix { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: end; margin: 6px 0; padding: 8px; background: #fff4e8; border: 1px solid #ff8a00; border-radius: 6px; }
.timefix label { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); }
.timefix input { font: inherit; padding: 6px 8px; border: 1px solid #c9d1de; border-radius: 6px; }
h2.grp.vorgrp { color: #000; background: #ff8a00; padding: 6px 10px; border-radius: 8px; }
h2.grp.vorgrp small { color: #000; }
table.tasks tr.vorrow td:nth-child(2) b { color: #c25e00; }
.timefix { grid-column: 1 / -1; }
.newreq-form .req-note { color: var(--bad); font-style: italic; font-weight: 600; }
.newreq-form select { font: inherit; padding: 8px 10px; border: 1px solid #c9d1de; border-radius: 6px; }
.newreq-form label.needs-fill select { border: 2px solid var(--bad); background: #fff3f2; }
.newreq-form input[readonly] { background: #f4f6f9; color: var(--ink); }
.newreq-form #new-req-by select, .newreq-form #new-req-by input { width: 100%; box-sizing: border-box; }
.newreq-form label.vor-req { background: #ff8a00; color: #000; border-radius: 8px; padding: 8px 12px; font-size: 15px; }
.newreq-form label.vor-req span { font-size: 13px; }
.tag.sentto { background: #f3e9dc; color: #6b4a1f; font-weight: 600; }
ol.log .vclock { font-size: 11px; }
/* v0.7 New Request: order type, STAR case, several parts */
.newreq-form .order-type { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.newreq-form .part-rows { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; }
.newreq-form .part-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 14px; }
.newreq-form p.add-part { margin: 0; }
.tag.star { background: #d7f0ec; color: #0b5c55; font-weight: 700; }
.manual-box.star { border-color: #0f766e; background: #e9f6f4; }  /* teal, not purple (Jonathan 11/3/26) */
.manual-box.star > b { color: #0b5c55; }

/* v0.6.11 (Jonathan 11/3/26): T-Bot style sign-in with the South Oak Jeep logo, View As, darker back button and
   count boxes, every action button blue and spaced out, labelled filters, VOR section on Requests */
header .brand { display: flex; align-items: center; gap: 12px; }
header .brand span { display: flex; flex-direction: column; line-height: 1.2; }
header .brand small { margin-left: 0; }
.brand-logo { height: 46px; width: auto; flex: none; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
body.signed-out { background: linear-gradient(180deg, rgba(244,246,249,.90), rgba(244,246,249,.97) 45%, rgba(244,246,249,.99)), url(../img/hero.jpg) center top / cover no-repeat fixed var(--bg); }
.card.center { text-align: center; max-width: 560px; margin: 32px auto 0; align-self: center; }
.card.hero { padding-top: 22px; }
.signin-logo { width: min(320px, 80%); height: auto; margin: 0 auto 8px; display: block; }
#view-signin h1 { font-size: 22px; }
button.ms.big { background: #f2b134; color: var(--navy); font-weight: 700; padding: 12px 22px; font-size: 16px; }
button.ms.big:hover { background: #e9a41c; }
.small { font-size: 13px; }
.viewas { font: inherit; font-size: 13px; font-weight: 600; padding: 5px 8px; border-radius: 8px; border: 1px solid #f2b134; background: rgba(242,177,52,.22); color: #fff; max-width: 260px; }
.viewas option, .viewas optgroup { color: var(--ink); background: #fff; }
.view-banner { background: #f2b134; color: #1b2a41; padding: 8px 16px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: center; }
.view-banner button { padding: 5px 12px; background: var(--navy); }
a.back-btn { background: var(--navy); color: #fff; padding: 8px 16px; }
a.back-btn:hover { background: #142849; }
.tiles div { background: #d9e1ee; border: 1px solid #c3cee0; }
.tiles span { color: #3b4558; font-weight: 600; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
#pager button { background: var(--accent); color: #fff; }
.filters { gap: 10px 16px; background: #eef2f8; border: 1px solid #d5dde9; border-radius: 10px; padding: 10px 12px; }
.filters label.flt { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--navy); white-space: nowrap; }
.filters .btn-row { gap: 12px; margin-left: auto; }
#vor-top h2.grp { margin-top: 6px; }
#vor-top table.vorlist { margin-bottom: 8px; }
#vor-top table.vorlist tbody tr { background: #fff7ee; }
.newreq-form label.star-check { background: #fff4e8; border: 2px solid #ff8a00; border-radius: 8px; padding: 8px 12px; color: var(--ink); }
.newreq-form label.star-check.needs-fill { border-color: var(--bad); background: #fdecea; }
@media (max-width: 640px) { .brand-logo { height: 38px; } body.signed-out { background-attachment: scroll; } .filters .btn-row { margin-left: 0; } }
/* VOR section and the list below line up column for column */
#page-requests table.list, #admin-vor table.list { table-layout: fixed; }
#page-requests table.list th:nth-child(1), #admin-vor table.list th:nth-child(1) { width: 62px; }
#page-requests table.list th:nth-child(2), #admin-vor table.list th:nth-child(2) { width: 12%; }
#page-requests table.list th:nth-child(3), #admin-vor table.list th:nth-child(3) { width: 13%; }
#page-requests table.list th:nth-child(4), #admin-vor table.list th:nth-child(4) { width: 16%; }
#page-requests table.list th:nth-child(5), #admin-vor table.list th:nth-child(5) { width: 17%; }
#page-requests table.list th:nth-child(6), #admin-vor table.list th:nth-child(6) { width: 11%; }
#page-requests table.list th:nth-child(7), #admin-vor table.list th:nth-child(7) { width: 70px; }
#page-requests table.list th:nth-child(8), #admin-vor table.list th:nth-child(8), #page-requests table.list th:nth-child(9), #admin-vor table.list th:nth-child(9) { width: 9%; }
#page-requests table.list th:nth-child(10), #admin-vor table.list th:nth-child(10) { width: 80px; }
#page-requests table.list td, #admin-vor table.list td { overflow-wrap: anywhere; }
@media (max-width: 900px) { #page-requests table.list, #admin-vor table.list { table-layout: auto; } }

#admin-vor h2.grp.vorgrp { margin-top: 0; }
#view-as { margin-right: 24px; } /* a quarter inch of room before the name (Jonathan 11/3/26) */
#page-home > .card.wide { align-self: center; }
header .who button[data-signout] { margin-left: 24px; } /* a quarter inch from the role (Jonathan 11/3/26) */

/* v0.6.19 Staff & Roles (T-021) */
.staff-tools { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 10px 0; }
.staff-tools input[type=search], .staff-tools select, table.staff input:not([type=checkbox]), table.staff select { font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid #c9d1de; border-radius: 6px; background: #fff; }
.staff-tools label.flt { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--navy); }
.staff-tools #btn-staff-add { margin-left: auto; }
table.staff { table-layout: auto; }
table.staff tbody tr { cursor: default; }
table.staff input:not([type=checkbox]) { width: 100%; min-width: 140px; }
table.staff button.save { padding: 6px 12px; }
table.staff td .err { display: block; font-size: 12px; }
.tag.sa { background: #1f3864; color: #fff; font-weight: 700; }
.staff-log { margin-top: 12px; font-size: 14px; }
.staff-log summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.staff-log ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); }
#staff-add { margin: 8px 0 12px; padding: 12px; border: 2px solid var(--accent); border-radius: 10px; }
#staff-panel { max-width: 1150px; }

/* v0.6.20: every action button blue (Jonathan 11/3/26) - the View As banner keeps its own */
button.secondary { background: var(--accent); color: #fff; }
.ev-btn { background: var(--accent); color: #fff; border: 0; font-weight: 600; }
.link-btn { background: var(--accent); color: #fff; text-decoration: none; padding: 2px 8px; border-radius: 5px; font-weight: 600; margin-top: 3px; }
.btn-row .push-right { margin-left: auto; }
#page-staff { display: flex; flex-direction: column; align-items: center; }
#page-staff > p { align-self: center; width: 100%; max-width: 1150px; }
#page-staff #staff-panel { align-self: center; }

/* v0.6.21 Feedback (removed at go-live) */
nav.main a.fb-link { background: #f2b134; color: #1b2a41; font-weight: 700; margin-left: 8px; }
nav.main a.fb-link:hover { background: #ffc24d; color: #1b2a41; }
.btn-row > .push-right { margin-left: auto; display: inline-flex; gap: 12px 24px; flex-wrap: wrap; }
.modal { position: fixed; inset: 0; background: rgba(16,24,40,.45); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; z-index: 50; overflow-y: auto; }
.modal-card { background: #fff; border-radius: 12px; padding: 20px; width: 100%; max-width: 620px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.modal-card h2 { grid-column: 1 / -1; margin: 0; color: var(--navy); }
.newreq-form .wide-field { grid-column: 1 / -1; }
.newreq-form textarea { font: inherit; padding: 8px 10px; border: 1px solid #c9d1de; border-radius: 6px; }
.newreq-form label.needs-fill textarea { border: 2px solid var(--bad); background: #fff3f2; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 8px; z-index: 60; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
#page-feedback { display: flex; flex-direction: column; align-items: center; }
#page-feedback > p { width: 100%; max-width: 900px; }
.fb-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.fb-item.new { border: 2px solid #f2b134; background: #fffbef; }
.fb-top { font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.fb-act { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 8px; font-size: 14px; }
.fb-act select, .fb-act .fb-resp { font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid #c9d1de; border-radius: 6px; }
.fb-act .fb-resp { flex: 1 1 240px; }
.fb-act label.flt { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; color: var(--navy); }

/* practice ROs for testers (11/3/26) - removed before go-live */
.tag.testro { background: #111; color: #ffd400; font-weight: 800; font-size: 12px; padding: 1px 6px; letter-spacing: .3px; }
.manual-box.testro { border: 3px dashed #111; background: #ffd400; color: #111; }
.manual-box.testro > b { font-size: 18px; letter-spacing: .5px; }

/* v0.7 Dashboard (2026-11-10) */
.dash-banner { background: #ff8a00; color: #000; border-radius: 8px; padding: 8px 12px; margin: 8px 0 4px; font-size: 14px; }
.dash-tiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.dash-tiles a.tile { display: block; text-decoration: none; background: #d9e1ee; border: 1px solid #c3cee0; border-radius: 8px; padding: 10px 12px; }
.dash-tiles a.tile:hover { border-color: var(--accent); }
.dash-tiles a.tile b { display: block; font-size: 26px; color: var(--navy); }
.dash-tiles a.tile span { font-size: 13px; color: #3b4558; font-weight: 600; }
.dash-tiles a.tile.zero b { color: #8a92a2; }
.dash-tiles a.tile.tone-bad:not(.zero) b { color: var(--bad); }
.dash-tiles a.tile.tone-vor:not(.zero) { background: #ff8a00; border-color: #e07700; }
.dash-tiles a.tile.tone-vor:not(.zero) b, .dash-tiles a.tile.tone-vor:not(.zero) span { color: #000; }
.dash-weekbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.dash-weekbar h2.grp { margin: 0; }
.dash-weekbar .btn-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
h3.dash-side { margin: 16px 0 4px; font-size: 15px; color: var(--navy); }
.muted { color: var(--muted); } .small { font-size: 13px; }
.t-mid { color: #8a5a00; font-weight: 600; }
button.linkish { background: none; border: 0; padding: 0; color: var(--accent); font-size: 12px; text-decoration: underline; cursor: pointer; }
table.dash-score tr.steps-row > td { background: #f7f9fc; }
table.steps { margin: 4px 0; }
ul.sop-miss { margin: 6px 0; padding-left: 18px; font-size: 14px; }
ul.sop-miss li { margin: 4px 0; }
table.dash-hot tbody tr { cursor: pointer; }
/* phones: no sideways scroll - each table row becomes a stacked card with labels (Start Here §7) */
@media (max-width: 640px) {
  table.cardrows, table.cardrows tbody, table.cardrows tr, table.cardrows td { display: block; width: 100%; }
  table.cardrows thead { display: none; }
  table.cardrows tr { border: 1px solid var(--line); border-radius: 8px; margin: 8px 0; padding: 6px 8px; background: #fff; }
  table.cardrows td { border: 0; padding: 2px 0; }
  table.cardrows td[data-l]::before { content: attr(data-l) ": "; font-weight: 600; color: var(--muted); font-size: 12px; }
  table.cardrows tr.steps-row { padding: 0; border: 0; }
  .dash-weekbar .btn-row { width: 100%; justify-content: space-between; }
}

/* v0.8.0 (2026-11-10): call-in orders, RO Lookup, SOP list, Settings, Go-Live Checklist */
.secbar { margin: 16px 0 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.secbar label { font-weight: 700; color: var(--navy); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.settabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 4px; }
.settabs button { background: #e9edf3; color: var(--navy); }
.settabs button.on { background: var(--navy); color: #fff; }
.settabs button:disabled { opacity: .5; cursor: default; }
.setgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 14px; margin-top: 10px; }
.setgrid fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; min-width: 0; }
.setgrid legend { font-weight: 700; color: var(--navy); padding: 0 6px; }
.setgrid label { display: block; margin: 8px 0; font-size: 14px; }
.setgrid label > input:not([type=checkbox]), .setgrid label > select { display: block; margin-top: 3px; max-width: 100%; }
.setgrid label.sw { display: flex; gap: 8px; align-items: flex-start; }
.setgrid .hm { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 3px; }
.setgrid .hm input { width: 64px; }
.setgrid .hours label.day { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 4px 0; }
.setgrid .hours label.day input { width: auto; display: inline-block; margin: 0; }
.setgrid table.who-counts td, .setgrid table.who-counts th { padding: 4px 6px; font-size: 13px; }
/* T-166 (v0.12.3): Settings - numbered groups, collapsed, one aligned row per option, every box the same width */
.setlist { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.setlist details.sg { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.setlist details.sg > summary { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; list-style: none; font-weight: 700; color: var(--navy); }
.setlist details.sg > summary::-webkit-details-marker { display: none; }
.setlist details.sg > summary::after { content: "▸"; margin-left: auto; color: var(--muted); }
.setlist details.sg[open] > summary::after { content: "▾"; }
.setlist details.sg[open] > summary { border-bottom: 1px solid var(--line); }
.setlist .num { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; border-radius: 13px; background: var(--navy); color: #fff; font-size: 13px; }
.setlist summary small { font-weight: 500; }
.setlist .sg-body { padding: 6px 14px 10px; }
.setlist .srow { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: center; padding: 7px 0; border-bottom: 1px dashed #e5e7eb; font-size: 14px; }
.setlist .srow:last-child { border-bottom: 0; }
.setlist .srow.top { align-items: start; }
.setlist .sc { min-width: 0; }
.setlist .sc .box { width: 100%; box-sizing: border-box; margin: 0; }
.setlist .sc input.box[type=time] { width: 116px; }
.setlist .hm, .setlist .th { display: grid; align-items: center; gap: 6px; }
.setlist .hm { grid-template-columns: 62px 22px 62px 22px 62px 30px; }
.setlist .th { grid-template-columns: 116px 20px 116px 1fr; }
.setlist .hm input, .setlist .th input { width: 100%; box-sizing: border-box; margin: 0; }
.setlist .hm i, .setlist .th i { font-style: normal; color: var(--muted); font-size: 13px; }
.setlist label.sw { display: inline-flex; gap: 8px; align-items: center; margin: 0; cursor: pointer; }
.setlist label.sw input { width: 18px; height: 18px; margin: 0; }
.setlist .cl { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.setlist .cl label.chk { font-size: 13px; margin: 0; }
.setlist .picker { margin: 0; }
.setlist table.who-counts td, .setlist table.who-counts th { padding: 4px 6px; font-size: 13px; }
.set-x { margin: 6px 0 0; }
@media (max-width: 700px) {
  .setlist .srow { grid-template-columns: 1fr; gap: 4px; }
}
.picker { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; margin: 2px 0 10px; background: #fff; }
.picker .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.picker .chip { background: #e6eefb; color: #1d4a9a; border-radius: 12px; padding: 2px 10px; font-size: 13px; font-weight: 600; }
.picker .chip b { margin-left: 4px; cursor: pointer; }
.picker .pick-in { width: 100%; box-sizing: border-box; }
.picker .pick-list { display: flex; flex-direction: column; max-height: 180px; overflow: auto; margin-top: 4px; }
.picker button.pick { background: none; color: var(--ink); text-align: left; padding: 5px 6px; font-weight: 500; border-radius: 4px; }
.picker button.pick:hover { background: #eef2f8; }
form.ci-form fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 10px 18px; }
form.ci-form legend { font-weight: 700; color: var(--navy); padding: 0 6px; }
form.ci-form fieldset > label { min-width: 200px; flex: 1 1 200px; }
form.ci-form label.chk { flex-basis: 100%; }
.ci-lines { flex-basis: 100%; }
.part-row label.qty input { width: 70px; }
.manual-box.callin { border-color: #9cc1ef; background: #f2f7fe; }
.manual-box.callin span { display: block; margin-top: 3px; }
.ci-reply .seg { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.ci-reply .seg button { background: #e9edf3; color: var(--navy); }
.ci-reply .seg button.on { background: var(--accent); color: #fff; }
.ci-reply .part-row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: flex-end; }
.rocard { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-top: 12px; background: #fff; }
.rohead { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; align-items: center; }
.rohead h2 { margin: 0; }
ul.shots { padding-left: 18px; }
ul.shots li { margin: 6px 0; }
.lk-note { border: 1px dashed var(--line); border-radius: 8px; padding: 8px 10px; margin: 8px 0; }
.lk-note textarea { width: 100%; box-sizing: border-box; }
ol.golive li { margin: 12px 0; line-height: 2; }
ol.golive .preview { background: #fdecea; border: 1px solid var(--bad); border-radius: 8px; padding: 8px 12px; font-size: 14px; line-height: 1.5; margin: 6px 0; }
button.small { padding: 5px 10px; font-size: 12px; }
@media print {
  header, nav, footer, .noprint, .view-banner { display: none !important; }
  body.print-one .stack > *:not(#page-lookup) { display: none !important; }
  body.print-one #page-lookup > *:not(#lk-body) { display: none !important; }
  body.print-one .rocard:not(.printing) { display: none !important; }
  .rocard { border: 0; }
}
@media (max-width: 640px) {
  form.ci-form fieldset > label { min-width: 100%; }
  .setgrid .hm input { width: 56px; }
}
/* v0.8.0: more menu items - let the menu wrap on phones (no sideways scroll, Start Here §7) */
@media (max-width: 760px) {
  nav.main { flex-wrap: wrap; width: 100%; margin-right: 0; order: 3; }
  nav.main a { padding: 6px 8px; font-size: 14px; white-space: nowrap; }
}
/* v0.8.0: call-in forms use the same field look as New Request (labels above, red outline until filled) */
form.ci-form.newreq-form { display: block; }
#ci-reply-form { display: flex; flex-direction: column; gap: 10px; }
#ci-reply-form label, form.ci-form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
form.ci-form label.chk { flex-direction: row; align-items: center; color: var(--ink); }
#ci-reply-form input, #ci-reply-form textarea, form.ci-form textarea { font: inherit; padding: 8px 10px; border: 1px solid #c9d1de; border-radius: 6px; }
#ci-reply-form label.needs-fill input, #ci-reply-form label.needs-fill textarea, form.ci-form label.needs-fill input { border: 2px solid var(--bad); background: #fff3f2; }
#ci-reply-form .req-note, form.ci-form .req-note { color: var(--bad); font-style: italic; font-weight: 600; }
#ci-reply-form .part-row label { flex: 1 1 160px; }
#ci-reply-form .part-row label.qty { flex: 0 0 80px; }
#ci-reply-form [data-for] { display: flex; flex-direction: column; gap: 10px; }
#ci-reply-form [data-for][hidden] { display: none; }
#ci-reply-form > button[type=submit], #ci-reply-form #ci-r-add { align-self: flex-start; }

/* v0.9.0: CDK Report Checks box on the Admin page (Jonathan 11/11/26: yellow so it's seen right after a refresh) */
.cdk-checks { border-radius: 8px; padding: 12px 14px; margin: 12px 0; }
.cdk-checks.has { background: #fff3b0; border: 2px solid #e0b000; color: #3d3000; }
.cdk-checks.ok { background: #e3f4ea; border: 1px solid #b7dfc6; color: var(--ok); }
.cdk-checks h3 { margin: 0 0 6px; font-size: 16px; color: #3d3000; }
.cdk-checks h3 small, .cdk-checks.ok small { font-weight: 400; color: #5d5000; }
.cdk-checks.ok small { color: var(--muted); }
.cdk-checks ul { margin: 0; padding-left: 18px; }
.cdk-checks li { margin: 6px 0; overflow-wrap: anywhere; }
.cdk-checks li.bad > b { color: var(--bad); }
.cdk-checks .fix { font-weight: 600; }
.secbar select { max-width: 100%; }

/* ===== v0.10.0 (Jonathan 11/11/26) ===== */
/* T-131: "*Required" / "(optional)" stay on the same line as the field name; the box goes underneath, full width */
form#log-form label:not(.chk), .newreq-form label:not(.chk):not(.vor-req), .timefix label { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 6px; }
form#log-form label:not(.chk) > input, form#log-form label:not(.chk) > select, form#log-form label:not(.chk) > textarea,
.newreq-form label:not(.chk):not(.vor-req) > input, .newreq-form label:not(.chk):not(.vor-req) > select, .newreq-form label:not(.chk):not(.vor-req) > textarea,
.timefix label > input, .timefix label > select { flex-basis: 100%; }
/* T-139 / T-144: headers centered and allowed to wrap; check boxes and numbers centered; text stays left */
table.list th, table.runs th { text-align: center; white-space: normal; vertical-align: bottom; line-height: 1.2; }
table.list td.c, table.list td.num, table.runs td.c { text-align: center; }
table.dash-score td:not(:first-child), table.steps td:not(:first-child), table.oro-adv td:not(:first-child) { text-align: center; }
table.list th { cursor: pointer; user-select: none; }
table.list th.sorted-asc::after { content: " ▲"; font-size: 10px; }
table.list th.sorted-desc::after { content: " ▼"; font-size: 10px; }
table.nosort th { cursor: default; }
.checklist { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin: 6px 0; }
.checklist .cl-label { flex-basis: 100%; font-size: 14px; color: var(--muted); }
/* yellow alert boxes (T-129 / T-135) */
.cdk-checks li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.cdk-checks li > .txt { flex: 1 1 320px; }
.cdk-checks .clear-btn { background: #6b5b00; padding: 4px 10px; font-size: 13px; }
.cdk-checks .tag.back { background: #b42318; color: #fff; }
.cdk-checks .review-btn { padding: 4px 10px; font-size: 13px; }
.parts-recap { background: #fff8d6; border: 1px solid #e0b000; border-radius: 8px; padding: 8px 12px; margin: 8px 0; }
/* My Tasks Ignore / Complete (T-140) */
.task-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.task-btns button { padding: 4px 10px; font-size: 13px; }
.task-reason { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.task-reason input { flex: 1 1 200px; }
/* Dashboard date range (T-136) */
.dash-range { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.dash-range label { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); }
.grade { display: inline-block; min-width: 26px; padding: 2px 6px; border-radius: 6px; font-weight: 700; color: #fff; }
.grade.A, .grade.B { background: var(--ok); } .grade.C { background: #b38600; } .grade.D { background: #e06a00; } .grade.F { background: var(--bad); }
.sop-miss-v li { margin: 4px 0; } .sop-miss-v ul { margin: 2px 0 8px 18px; }
/* Staff & Roles section bands (Spec Core §2) */
table.staff th.band { border-bottom: 2px solid var(--navy); color: var(--navy); }
table.staff td.c input { margin: 0; }
/* Open Repair Orders */
.oro-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.oro-tabs a { padding: 6px 12px; border-radius: 6px; background: #e9edf3; color: var(--ink); text-decoration: none; font-weight: 600; }
.oro-tabs a.on { background: var(--navy); color: #fff; }
.oro-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin: 8px 0; }
.oro-filters label { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); }
.cls { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.cls.blue { background: #e6eefb; color: #1f4f9c; } .cls.yellow { background: #fff1b8; color: #6b5200; } .cls.green { background: #e3f4ea; color: var(--ok); }
.cls.grey { background: #e9edf3; color: var(--muted); } .cls.orange { background: #ffe2c2; color: #8a4300; } .cls.red { background: #fde8e6; color: var(--bad); }
.cls.teal { background: #d8f3f1; color: #0f6b63; } .cls.light.brown, .cls.lightbrown { background: #efe2d0; color: #6b4b23; } .cls.none { background: #e6eefb; color: #1f4f9c; }
.oflag { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 11px; font-weight: 600; margin: 1px 2px 1px 0; background: #ffe2c2; color: #8a4300; white-space: nowrap; }
.oflag.bad { background: #fde8e6; color: var(--bad); } .oflag.info { background: #d8f3f1; color: #0f6b63; }
.oro-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 8px 0 16px; }
.oro-tiles a, .oro-tiles div { display: block; padding: 10px; border-radius: 8px; background: #f1f4f9; text-decoration: none; color: var(--ink); text-align: center; }
.oro-tiles b { display: block; font-size: 22px; color: var(--navy); }
.oro-tiles .warn { background: #fff1d6; } .oro-tiles .bad { background: #fde8e6; } .oro-tiles .info { background: #e6eefb; } .oro-tiles .ok { background: #e3f4ea; }
.needs.bad { color: var(--bad); font-weight: 700; } .needs.warn { color: #b35a00; font-weight: 700; } .needs.ok { color: var(--ok); font-weight: 700; }
.oro-ticket { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 8px 0; }
.oro-ticket h3 { margin: 0 0 6px; }
.oro-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin: 8px 0; }
.oro-actions label { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); }
.copy-line { font-family: ui-monospace, Consolas, monospace; background: #f1f3f7; padding: 2px 6px; border-radius: 4px; }
@media (max-width: 700px) { .oro-filters label, .oro-actions label { flex: 1 1 45%; } }
.oro-ticket .chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.oro-ticket .chips .chip { background: #e6eefb; color: #1d4a9a; border-radius: 12px; padding: 2px 10px; font-size: 13px; font-weight: 600; }
.oro-ticket .chips .chip.muted { background: #eef0f3; color: var(--muted); text-decoration: line-through; }
.oro-ticket .chips .chip b { margin-left: 4px; cursor: pointer; }
.oro-tabs a.on { font-weight: 700; border-bottom: 3px solid var(--navy); }

/* ---------- v0.11.0 (2026-11-12, JJ): Open Repair Orders Recap (Recap Preview v13), day colors, palette pickers ---------- */
.daypill { display: inline-block; min-width: 30px; padding: 1px 8px; border-radius: 12px; font-weight: 700; text-align: center; }
.oro-list td.c, .oro-adv td.c { text-align: center; }
.rrow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 12px; }
@media (max-width: 900px) { .rrow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .rrow { grid-template-columns: 1fr; } }
.rrow .rt { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; text-align: center; text-decoration: none; color: var(--ink); }
.rrow .rn { font-size: 44px; font-weight: 800; line-height: 1.05; color: var(--navy); }
.rrow .rl2 { font-size: 15px; font-weight: 700; margin-top: 2px; } .rrow .ra { font-size: 13px; color: var(--muted); margin-top: 4px; } .rrow .ra span { color: #b45309; font-weight: 600; }
.rrow .duo { background: #fff; border: 1px solid var(--line); border-radius: 8px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.rrow .duo a { padding: 8px 6px; text-align: center; text-decoration: none; color: var(--ink); }
.rrow .rsub { font-size: 14px; font-weight: 700; color: #b45309; } .rrow .duo .o2 { font-size: 13px; font-weight: 700; color: #b45309; } .rrow .duo .l { font-weight: 600; color: var(--ink); } .rrow .duo .t2 { font-size: 12px; color: var(--muted); } .rrow .duo .t2 b { color: var(--ink); }
.rrow .duo .n { font-size: 26px; font-weight: 700; } .rrow .duo .l { font-size: 12px; color: var(--muted); } .rrow .duo .s { font-size: 12px; color: #b45309; font-weight: 600; }
.rrow .rbox { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; }
.rrow .rbox .t { font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.rrow .rbox table { border-collapse: collapse; width: 100%; } .rrow .rbox td { padding: 2px 4px; font-size: 14px; } .rrow .rbox td.v { text-align: right; font-weight: 700; }
.rrow .rbox tr.sub td { font-size: 12.5px; color: var(--muted); padding-left: 18px; } .rrow .rbox tr.top td { border-top: 1px solid var(--line); }
.rrow a { color: inherit; text-decoration: none; } .rrow a:hover { text-decoration: underline; }
table.oro-grid { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; background: #fff; }
.oro-grid th { font-size: 11.5px; font-weight: 600; padding: 4px; text-align: center; vertical-align: middle; border-bottom: 2px solid #fff; min-width: 62px; line-height: 1.15; }
.oro-grid thead tr:first-child th { border-bottom: 2px solid #64748b; }
.oro-grid th.gh { font-size: 12.5px; font-weight: 700; color: var(--navy); padding: 6px 4px; border-radius: 4px 4px 0 0; box-shadow: inset -2px 0 0 #fff; }
.oro-grid th.corner { font-size: 14px; font-weight: 800; color: var(--navy); background: #f1f5f9; border-radius: 4px 4px 0 0; box-shadow: inset -2px 0 0 #fff; }
.oro-grid th.br { font-size: 14px; font-weight: 700; color: #111827; }
.oro-grid th.cn { font-weight: 700; color: #111827; box-shadow: inset -2px 0 0 #fff; } .oro-grid th.pc { background: #f1f5f9; }
.oro-grid td { text-align: center; padding: 6px 4px; font-size: 16px; font-weight: 600; }
.oro-grid td.bx { border-bottom: 2px solid #fff; border-right: 2px solid #fff; } .oro-grid td.tot { background: #e5e7eb; } .oro-grid td.pc { background: #f1f5f9; font-size: 13px; }
.oro-grid td.rl { font-weight: 700; font-size: 14px; white-space: nowrap; padding: 0 10px; border-bottom: 1px solid #eef1f5; }
.oro-grid tr.aged td.bx:not(.tot):not(.pc) { background: #ffedd5; }
.oro-grid a { color: #1e3a8a; text-decoration: none; } .oro-grid a:hover { text-decoration: underline; }
.oro-adv .pc { color: var(--muted); font-size: 12px; }
.swatches { display: inline-flex; flex-wrap: wrap; gap: 4px; vertical-align: middle; }
.swatches .sw-c { width: 22px; height: 22px; min-width: 0; padding: 0; border-radius: 5px; border: 1px solid #cbd5e1; cursor: pointer; }
.swatches .sw-c.on { outline: 3px solid var(--navy); outline-offset: 1px; }
button.mv { padding: 0 6px; min-width: 0; margin: 2px 1px 0; font-size: 11px; }
form.oro-logform { display: flex; flex-direction: column; gap: 10px; }
form.oro-logform label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
form.oro-logform label.chk { flex-direction: row; align-items: center; gap: 8px; }
form.oro-logform input:not([type=checkbox]), form.oro-logform select, form.oro-logform textarea { font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; width: 100%; box-sizing: border-box; }
form.oro-logform button { align-self: flex-start; }
table.lop-ros { border-collapse: collapse; margin: 6px 0 2px; font-size: 13px; } table.lop-ros td { padding: 2px 10px 2px 0; vertical-align: top; }
table.lop-ros .lop-close { font-size: 12px; padding: 2px 10px; }

/* ---------- v0.11.1 (2026-11-12, JJ): header Section dropdown (Section Dropdown Preview v3), Open RO testing note ---------- */
header .brand .hdr-sec { position: relative; display: block; }
header .secsel { width: 310px; max-width: 70vw; margin-top: 3px; font: inherit; font-size: 13px; font-weight: 600; color: #fff; text-align: left; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.45); border-radius: 6px; padding: 3px 26px 3px 8px; cursor: pointer; min-width: 0;
  background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%); background-position: calc(100% - 13px) 55%, calc(100% - 8px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
header .sec-menu { position: absolute; top: 100%; left: 0; margin-top: 4px; width: 310px; max-width: 70vw; box-sizing: border-box; background: #fff; color: var(--ink); border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.25); overflow: hidden; z-index: 50; font-size: 14px; font-weight: 400; display: flex; flex-direction: column; }
header .sec-menu[hidden] { display: none; }
header .sec-menu button { all: unset; display: block; padding: 9px 14px; border-bottom: 1px solid #eef1f5; cursor: pointer; color: var(--ink); }
header .sec-menu button:hover { background: #f1f4f9; } header .sec-menu button.on { background: #e6eefb; font-weight: 700; }
header .sec-menu .soon { display: block; padding: 9px 14px; color: #9aa3b2; font-style: italic; cursor: not-allowed; white-space: normal; line-height: 1.3; }
header .sec-menu .soon b { display: inline-block; margin-top: 3px; font-style: normal; font-size: 11px; background: #eef0f3; color: #5d6677; border-radius: 10px; padding: 1px 8px; }
nav.main[data-sec="sor"] a[data-sec="oro"], nav.main[data-sec="oro"] a:not([data-sec]) { display: none !important; }
nav.main[data-sec="sor"] [data-sec="ucr"], nav.main[data-sec="oro"] [data-sec="ucr"], nav.main[data-sec="ucr"] a:not([data-sec]), nav.main[data-sec="ucr"] a[data-sec="oro"] { display: none !important; }
/* v0.13.4 CTP Tracker section: its own menu items only */
nav.main:not([data-sec="ctp"]) [data-sec="ctp"], nav.main[data-sec="ctp"] a:not([data-sec]), nav.main[data-sec="ctp"] [data-sec="oro"], nav.main[data-sec="ctp"] [data-sec="ucr"] { display: none !important; }
nav.main a.soon-link { color: rgba(255,255,255,.45) !important; cursor: not-allowed; font-style: italic; pointer-events: none; }
nav.main a.soon-link b { font-style: normal; font-size: 10px; background: rgba(255,255,255,.15); color: rgba(255,255,255,.75); border-radius: 10px; padding: 1px 7px; margin-left: 4px; font-weight: 600; }
.oro-test-banner { background: #fff7d6; border: 1px solid #f1d27a; color: #4a3b00; border-radius: 6px; padding: 6px 10px; margin: 6px 0; font-size: 13px; }
/* v0.12.0 (JJ 11/13): signed out, the header shows only "South Oak Service & Parts Tracking" - no section label / dropdown */
body.signed-out #hdr-sec { display: none !important; }

/* v0.12.1 My Guide */
.guide-list { display: flex; flex-direction: column; gap: 8px; max-width: 560px; margin: 8px 0 16px; }
.guide-item { display: flex; justify-content: space-between; align-items: center; border: 1px solid #d6dce5; border-radius: 8px; padding: 8px 12px; background: #fff; }
.guide-item.main { border-color: var(--navy); background: #f2f6fc; }

/* ================= v0.13.0 Used Car Reconditioning (Spec Core v1.0 §7; Start Here §7 clean recap style) ================= */
nav.main .nav-soon { color: rgba(255,255,255,.45); padding: 6px 10px; font-size: 14px; cursor: not-allowed; white-space: nowrap; }
nav.main .nav-soon b { font-size: 10px; font-weight: 700; background: rgba(255,255,255,.15); border-radius: 8px; padding: 0 5px; margin-left: 2px; }
.btn.soon-btn { background: #e9edf3; color: #8a93a3; cursor: not-allowed; } .btn.soon-btn b { font-size: 10px; background: #fff; border-radius: 8px; padding: 0 5px; }
.ucr-head { align-items: flex-end; flex-wrap: wrap; gap: 8px 16px; } .ucr-range { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-end; }
.ucr-range button { padding: 7px 14px; }
/* tiles: small KPI boxes in one tight row */
.kpis { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; margin: 10px 0 14px; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 520px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 6px; text-align: center; min-width: 0; }
.kpi .n { font-size: 28px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.kpi.sm .n { font-size: 17px; padding: 6px 0 4px; }
.kpi .l { font-size: 12px; font-weight: 700; color: var(--ink); margin-top: 2px; } .kpi .s { font-size: 11px; color: var(--muted); }
.kpi.bad .n { color: var(--bad); } .kpi.negbox .n { color: var(--bad); }
.ucr-listhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.ucr-listhead h2.grp { margin: 8px 0; }
table.ucr-list td { vertical-align: middle; } table.ucr-list tbody tr { cursor: pointer; } table.ucr-list tbody tr:hover td { background: #f6f8fc; }
table.ucr-list td.note-cell { max-width: 320px; font-size: 13px; line-height: 1.3; }
table.ucr-list td.c, table.ucr-done td.c, table.ucr-tier td.c, table.ucr-ip td.c, table.ucr-hist td.c { text-align: center; }
select.ucr-act { font: inherit; font-size: 13px; padding: 5px 6px; border: 1px solid #9fb3d9; border-radius: 6px; background: #eef4ff; color: #1d4a9a; font-weight: 600; width: 190px; max-width: 100%; }
.st.st-otw { background: #fff; color: #1d4a9a; border: 1px dashed #7da2e3; }
.durpill { display: inline-block; padding: 1px 8px; border-radius: 12px; font-weight: 700; white-space: nowrap; }
.tag.test { background: #fff1b8; color: #6b5200; font-weight: 700; }
.neg { color: var(--bad); font-weight: 700; }
details.ucr-recap { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin: 12px 0; padding: 0 12px; }
details.ucr-recap > summary { cursor: pointer; padding: 10px 2px; font-size: 16px; color: var(--navy); list-style: revert; }
details.ucr-recap[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 10px; }
details.ucr-recap .rrow { margin-top: 4px; } details.ucr-recap .tablewrap { margin-bottom: 12px; }
/* Add Vehicle / action forms */
.ucr-form { display: block; } .ucr-form > * { margin-bottom: 10px; }
.ucr-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; } @media (max-width: 560px) { .ucr-grid2 { grid-template-columns: 1fr; } }
.ucr-form input, .ucr-form select, .ucr-form textarea { font: inherit; padding: 8px 10px; border: 1px solid #c3cad6; border-radius: 6px; color: var(--ink); }
.ucr-form label.wide-field { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
.ucr-form .req-note { color: var(--bad); font-style: italic; font-weight: 600; font-size: 12px; }
.ucr-form label.missing input, .ucr-form label.missing select, .ucr-form label.missing textarea { border: 2px solid var(--bad); background: #fff3f2; }
.ucr-form fieldset.where { border: 1px solid var(--line); border-radius: 8px; display: flex; gap: 10px; flex-wrap: wrap; padding: 8px 12px; }
.ucr-form fieldset.where.missing { border: 2px solid var(--bad); background: #fff8f7; }
.ucr-form fieldset.where legend { font-size: 14px; color: var(--muted); padding: 0 4px; }
.ucr-form .big-radio { flex: 1 1 180px; border: 1px solid #c3cad6; border-radius: 8px; padding: 10px 12px; gap: 8px; background: #fff; cursor: pointer; font-size: 15px; }
.ucr-form .big-radio:has(input:checked) { border: 2px solid var(--accent); background: #eef4ff; }
.ucr-form .big-radio small { color: var(--muted); }
.pack-preview { border: 1px dashed #c3cad6; border-radius: 8px; padding: 8px 12px; text-align: center; align-self: end; min-height: 52px; font-size: 14px; }
.pack-preview b { font-size: 20px; color: var(--navy); }
.money-in { display: inline-flex; align-items: center; gap: 4px; } .money-in i { font-style: normal; color: var(--muted); font-weight: 700; } .money-in input { width: 140px; }
/* Car Record */
.ucr-car-head h1 { margin: 4px 0 0; } .ucr-car-head .veh { color: var(--ink); font-weight: 600; } .ucr-car-head .sub { margin: 2px 0 10px; color: var(--muted); }
.ready-banner { background: #e3f4ea; border: 2px solid var(--ok); color: var(--ok); font-size: 20px; font-weight: 800; border-radius: 10px; padding: 10px 14px; margin: 6px 0 12px; }
.ready-banner small { font-size: 14px; font-weight: 600; color: #2f6b45; margin-left: 6px; }
.ready-banner.part { background: #d8f3f1; border-color: #0f6b63; color: #0f6b63; font-size: 17px; }
.stage-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 4px 0 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.stage-strip .step { padding: 8px 6px; text-align: center; border-right: 1px solid var(--line); position: relative; }
.stage-strip .step:last-child { border-right: 0; }
.stage-strip .dot { width: 26px; height: 26px; line-height: 26px; border-radius: 50%; margin: 0 auto 2px; background: #e9edf3; color: var(--muted); font-weight: 700; font-size: 13px; }
.stage-strip .step.done .dot { background: var(--ok); color: #fff; } .stage-strip .step.on { background: #eef4ff; } .stage-strip .step.on .dot { background: var(--accent); color: #fff; }
.stage-strip .sn { font-size: 13px; font-weight: 700; color: var(--ink); } .stage-strip .sn small { font-weight: 500; color: var(--muted); }
.stage-strip .ss { font-size: 11px; color: var(--muted); line-height: 1.25; margin-top: 2px; min-height: 14px; }
@media (max-width: 640px) { .stage-strip { grid-template-columns: 1fr; } .stage-strip .step { border-right: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 30px 1fr; text-align: left; gap: 0 8px; align-items: center; } .stage-strip .dot { margin: 0; grid-row: span 2; } }
.ucr-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .ucr-two { grid-template-columns: 1fr; } }
.ucr-two .rbox { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; margin-bottom: 12px; }
.ucr-two .rbox .t { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.ucr-two .rbox table { width: 100%; border-collapse: collapse; } .ucr-two .rbox td { padding: 4px 4px; font-size: 14px; vertical-align: top; }
.ucr-two .rbox td.v { text-align: right; font-weight: 700; } .ucr-two .rbox tr.top td { border-top: 1px solid var(--line); }
.ucr-two .rbox .wp { border-top: 1px solid var(--line); padding: 6px 4px 2px; font-size: 14px; white-space: pre-wrap; }
.actbox { background: #eef4ff; border: 1px solid #c7d7f5; border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; }
.actbox label { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--navy); } .actbox select.ucr-act { font-size: 15px; padding: 7px 8px; max-width: 100%; flex: 1; }
.actbox p { margin: 6px 0 0; }
.notes-box { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 14px 10px; }
.notes-box .nb-head { display: flex; align-items: center; justify-content: space-between; } .notes-box .nb-head h2.grp { margin: 8px 0 0; }
.notes-box > p { margin: 2px 0 6px; } .notes-box .nb-head button { padding: 6px 12px; }
ul.ucr-notes { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow-y: auto; }
ul.ucr-notes li { border-top: 1px solid #eef1f5; padding: 7px 0; font-size: 14px; line-height: 1.35; }
.soon-page { background: #f1f5f9; border: 1px dashed #c3cad6; border-radius: 8px; padding: 14px; color: var(--muted); }
/* Settings: Used Car Reconditioning types */
.setlist table.mini-tbl { width: 100%; font-size: 13px; margin-bottom: 6px; } .setlist table.mini-tbl input:not([type=checkbox]) { width: 100%; min-width: 70px; padding: 4px 6px; }
.setlist table.mini-tbl td { padding: 3px 4px; } .setlist .srow.top:has(table.mini-tbl) { grid-template-columns: minmax(0, 1fr) minmax(300px, 460px); }
.rule-box { border: 1px solid var(--line); border-radius: 8px; padding: 2px 10px; margin: 6px 0; background: #fbfcfe; }
.rule-box > summary { cursor: pointer; padding: 7px 0; font-size: 14px; } .rule-box > summary .st { margin-left: 6px; }
.picker .chip.role { background: #d8f3f1; color: #0f6b63; }
@media (max-width: 640px) { nav.main .nav-soon { display: none; } }
body.no-soon nav.main .nav-soon { display: none; } /* v0.13.2: Coming Soon items only for Admins / Super Admins */
nav.main { flex-wrap: wrap; }
.kpis.k6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } .kpis.k5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 900px) { .kpis.k6, .kpis.k5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .kpis.k6, .kpis.k5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ucr-head h1 small { font-size: 15px; color: var(--muted); font-weight: 600; margin-left: 6px; }
.kpis.k7 { grid-template-columns: repeat(7, minmax(0, 1fr)); } @media (max-width: 1100px) { .kpis.k7 { grid-template-columns: repeat(4, minmax(0, 1fr)); } } @media (max-width: 520px) { .kpis.k7 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi.warnbox .s { color: #b45309; font-weight: 700; }
.st.st-wip { background: #1f4f9c; color: #fff; }
.etapill { display: inline-block; margin: 2px 0 0 4px; padding: 1px 7px; border-radius: 10px; font-size: 11px; font-weight: 700; background: #e6eefb; color: #1d4a9a; white-space: nowrap; }
.etapill.late { background: #fde8e6; color: var(--bad); }
.stage-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); } @media (max-width: 640px) { .stage-strip { grid-template-columns: 1fr; } }
table.ucr-list td.nowrap { white-space: nowrap; }
nav.main a { white-space: nowrap; }
td.vin { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; white-space: nowrap; }

/* v0.13.2 RO Check (Used Car Reconditioning) */
.rocheck-line { margin: 4px 0 10px; font-size: 14px; } .rocheck-line a { color: #1e7b46; text-decoration: none; } .rocheck-line.bad a { color: #b42318; } .rocheck-line a:hover { text-decoration: underline; }
.rocheck-box { background: #fdecea; border: 1px solid #f3b8b1; border-radius: 6px; padding: 6px 8px; font-size: 13px; } .rocheck-box button { margin-top: 4px; }

/* v0.13.4 Vehicle Lookup */
.lk-form { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; margin: 6px 0 12px; } .lk-form .wide-field { flex: 1 1 320px; } .lk-form button { height: 34px; box-sizing: border-box; padding-top: 0; padding-bottom: 0; display: inline-flex; align-items: center; justify-content: center; margin: 0; } /* text centered, lined up with the inputs (JJ 11/17 1:29 PM) */
.lk-form label { display: flex; flex-direction: column; font-size: 13px; gap: 2px; } .lk-form input, .lk-form select { height: 34px; padding: 4px 8px; border: 1px solid #c7cfdb; border-radius: 6px; font-size: 14px; background: #fff; }

/* ---------- v0.13.4 CTP Tracker (Spec Core v1.2 §9) ---------- */
.ctp-search { display: flex; gap: 6px; justify-content: flex-end; margin: 0 0 6px; } .ctp-search input { width: 320px; max-width: 60vw; height: 34px; padding: 4px 10px; border: 1px solid #c7cfdb; border-radius: 6px; font-size: 14px; } .ctp-search button { height: 34px; padding: 0 14px; }
.ctp-filters { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: flex-end; } .ctp-filters label { display: flex; flex-direction: column; gap: 2px; font-size: 13px; } .ctp-filters select { height: 32px; min-width: 150px; max-width: 240px; border: 1px solid #c7cfdb; border-radius: 6px; padding: 2px 6px; font-size: 14px; background: #fff; }
.ctp-filters button { height: 32px; margin-left: auto; align-self: flex-end; padding-top: 0; padding-bottom: 0; display: inline-flex; align-items: center; } /* lined up with the dropdowns (JJ 11/17 1:03 PM) */
.kpis.k7 { grid-template-columns: repeat(7, minmax(0, 1fr)); } @media (max-width: 1100px) { .kpis.k7 { grid-template-columns: repeat(4, minmax(0, 1fr)); } } @media (max-width: 520px) { .kpis.k7 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.st.st-ra { background: #ffe2c2; color: #8a4300; } .st.st-util { background: #d8f3f1; color: #0f6b63; }
.ctp-stale { background: #fff3b0; border: 1px solid #f1d27a; color: #6e5a00; border-radius: 6px; padding: 6px 10px; font-size: 13px; font-weight: 600; margin: 0 0 8px; }
.warnline { background: #fff7d6; border-left: 4px solid #f1c40f; padding: 4px 8px; font-size: 13px; margin: 6px 0 0; }
tr.row-red td { background: #fdecea; }
.ctp-lines { width: 100%; border-collapse: collapse; font-size: 13.5px; } .ctp-lines th { text-align: center; font-size: 12px; color: var(--muted); font-weight: 700; padding: 3px; border-bottom: 1px solid var(--line); } .ctp-lines td { padding: 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ctp-lines small.est { color: #8a4300; font-weight: 700; }
button.mini { font-size: 12px; padding: 2px 8px; height: auto; margin-left: 6px; vertical-align: middle; }
details.ctp-year { border: 1px solid var(--line); border-radius: 8px; margin: 8px 0; background: #fff; }
details.ctp-year summary { cursor: pointer; padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: baseline; font-size: 15px; }
details.ctp-year summary .yr { font-weight: 800; font-size: 17px; color: var(--navy); min-width: 52px; }
details.ctp-year table { margin: 0 10px 10px; width: calc(100% - 20px); }
.ctp-table td { font-size: 13.5px; }

.badge-n { display: inline-block; min-width: 22px; padding: 0 7px; border-radius: 11px; background: #dc2626; color: #fff; font-size: 13px; text-align: center; }
