/* AS Performance Inventory Control v3.6 — theme matched to the AS Performance mockups */
:root {
  --bg: #050d12;
  --bg2: #071219;
  --panel: #0a171e;
  --panel2: #0d1d26;
  --line: #16303a;
  --line2: #1f3d49;
  --cyan: #1cc0ec;
  --cyan2: #0e93c4;
  --text: #eef5f8;
  --muted: #8ea6b1;
  --muted2: #6d8792;
  --green: #22d98a;
  --amber: #f6b829;
  --red: #ff4655;
  --blue: #2f9cff;
  --side: 256px;
  --r: 12px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--bg); font-family: var(--font); font-size: 14px; }
.hidden { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1 { font-size: 30px; font-weight: 800; letter-spacing: -.3px; margin: 0; }
h2 { font-size: 19px; font-weight: 700; margin: 0 0 14px; }
svg.ic { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* brand block */
.brandBlock { display: grid; justify-items: start; gap: 8px; }
.logoImg { display: block; width: 100%; max-width: 230px; height: auto; }
.tagline { letter-spacing: 4.2px; font-size: 10px; white-space: nowrap; color: #b9cad1; padding-left: 4px; }

/* buttons */
.primary {
  border: 0; border-radius: 8px; padding: 11px 20px; font-weight: 700; color: #fff; letter-spacing: .3px;
  background: linear-gradient(135deg, #22c8f2, var(--cyan2)); box-shadow: 0 6px 18px #0ea5d433;
}
.primary.big { padding: 14px; font-size: 16px; }
.primary:disabled, .btnIn:disabled, .btnOut:disabled { opacity: .55; cursor: wait; }
.ghost { border: 1px solid var(--line2); background: var(--panel); border-radius: 8px; padding: 10px 16px; color: #dbe7ec; font-weight: 600; }
.ghost.small { padding: 6px 11px; font-size: 13px; }
.iconBtn { border: 0; background: none; color: #dbe7ec; width: 42px; height: 42px; display: grid; place-items: center; font-size: 24px; border-radius: 8px; }
.linkBtn { background: none; border: 0; color: var(--cyan); padding: 0; text-align: left; text-decoration: underline; font-size: 13px; }

/* forms */
label { display: grid; gap: 7px; color: #a9bcc4; font-size: 12px; font-weight: 600; }
label small { font-weight: 400; color: var(--muted2); }
input, select, textarea {
  width: 100%; border: 1px solid var(--line2); border-radius: 8px; background: #061118; color: #fff;
  padding: 11px 13px; outline: none; font-size: 16px;
}
select { cursor: pointer; appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9cad1' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }
option { background: #0a171e; }
textarea { resize: vertical; min-height: 84px; }
input:focus, select:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px #1cc0ec22; }
label.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #dce8ec; }
label.check input { width: 20px; height: 20px; accent-color: var(--cyan); }
.formMsg { min-height: 1em; margin: 0; color: #a9bcc4; font-size: 14px; }
.formMsg.error { color: #ff7681; }
.formMsg.success { color: var(--green); }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; position: relative; overflow: hidden; }
.loginHero { position: absolute; inset: 0; background: linear-gradient(180deg, #050d12cc, #050d12 70%), url('img/hero.jpg') center top / cover no-repeat; }
.loginCard {
  position: relative; width: min(420px, 100%); display: grid; gap: 16px; padding: 30px 28px;
  border: 1px solid var(--line2); border-radius: 16px; background: #0a171ee8; backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px #000c;
}
.loginCard h1 { font-size: 26px; }
.loginCard .sub { margin: 6px 0 0; color: var(--muted); }
.loginFoot { margin: 0; font-size: 12px; color: var(--muted); text-align: center; }

/* quick PIN sign-in (warehouse staff on a remembered device) */
.loginCard.quickMode .pwOnly { display: none; }
.loginCard.qpWait .pwOnly, .loginCard.qpWait .quickPin, .loginCard.qpWait #toQuickWrap { visibility: hidden; }
.quickPin { display: grid; gap: 14px; }
.qpTitle { margin: 0; font-weight: 700; font-size: 16px; text-align: center; }
.qpLink { font-weight: 400; font-size: 13px; margin-left: 6px; }
.qpStaff { display: grid; gap: 8px; }
.qpPerson { display: flex; align-items: center; gap: 6px; }
.qpPerson > button:first-child { flex: 1; padding: 16px 14px; font-size: 17px; font-weight: 700; border-radius: 12px; border: 1px solid var(--line2); background: var(--panel2); color: var(--text); text-align: left; }
.qpPerson > button:first-child:active { border-color: var(--cyan); }
.qpPerson .qpForget { border: 0; background: transparent; color: var(--muted); font-size: 12px; padding: 8px; }
.qpDots { display: flex; justify-content: center; gap: 16px; padding: 4px 0; }
.qpDots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line2); }
.qpDots i.on { background: var(--cyan); border-color: var(--cyan); }
.qpDots.shake { animation: qpShake .35s; }
@keyframes qpShake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.qpKeys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.qpKeys button { height: 64px; font-size: 26px; font-weight: 600; border-radius: 14px; border: 1px solid var(--line2); background: var(--panel2); color: var(--text); touch-action: manipulation; }
.qpKeys button:active { background: var(--cyan); color: #fff; border-color: var(--cyan); }
.qpKeys button:disabled { opacity: .5; }
.pinTag { display: inline-block; margin-left: 6px; font-size: 10px; letter-spacing: 1px; border: 1px solid var(--line2); border-radius: 4px; padding: 1px 5px; color: var(--muted); vertical-align: 1px; }

/* ---------------------------------------------------------------- shell */
.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 50; padding: 26px 0 22px;
  background: linear-gradient(180deg, #08141b, #050d12); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; overflow-y: auto;
}
.side .brandBlock { padding: 0 22px 22px; }
#nav { display: grid; gap: 2px; margin-top: 6px; }
#nav button {
  border: 0; background: transparent; color: #fff; padding: 13px 22px; text-align: left; position: relative;
  display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: center;
}
#nav button .ic { font-size: 26px; stroke-width: 1.6; }
#nav b { display: block; font-size: 15px; font-weight: 700; }
#nav small { display: block; color: #a8bcc5; font-size: 12px; margin-top: 3px; line-height: 1.3; }
#nav button:hover { background: #0d1f28; }
#nav button.active { background: linear-gradient(90deg, #0f4a62, #0b2a36 70%, transparent); }
#nav button.active::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--cyan); }
#nav button.soon { opacity: .55; cursor: default; }
#nav .soonTag { font-size: 9px; letter-spacing: 1px; border: 1px solid var(--line2); border-radius: 4px; padding: 1px 5px; margin-left: 6px; color: var(--muted); vertical-align: 2px; }
.sideFoot { margin-top: auto; padding: 24px 28px 0; display: grid; gap: 8px; letter-spacing: 6px; font-size: 11px; color: #b9cad1; }
.sideFoot small { letter-spacing: 0; margin-top: 18px; color: var(--muted); }

.page { margin-left: var(--side); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { display: none; }
.hero { position: relative; height: 232px; overflow: hidden; border-bottom: 1px solid var(--line); }
.heroImg { position: absolute; inset: 0; background: url('img/hero-e92-e46.jpg') center 55% / cover no-repeat; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #050d12 0, #050d1200 22%, #050d1200 70%, #050d12 100%), linear-gradient(0deg, #050d12f0 0, #050d1200 45%); }
.hashtag { position: absolute; right: 30px; top: 22px; z-index: 2; font-size: 24px; font-weight: 800; font-style: italic; letter-spacing: .5px; }
.hashtag::first-letter { color: var(--cyan); }
.crumbs { position: absolute; left: 30px; bottom: 18px; z-index: 2; font-size: 11px; letter-spacing: 3px; color: #d5e2e7; }
.statusbar {
  display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 10px 26px;
  border-bottom: 1px solid var(--line); background: #071118;
}
.live { display: inline-flex; align-items: center; gap: 7px; color: var(--green); }
.live .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.live.down { color: var(--red); } .live.down .dot { background: var(--red); box-shadow: 0 0 10px var(--red); }
.liveSub { color: #b9cad1; font-size: 13px; padding-right: 16px; border-right: 1px solid var(--line2); }
.userMenu { position: relative; }
.userBtn { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 6px 4px; font-size: 14px; }
.userBtn .ic { font-size: 26px; }
.userBtn .chev .ic { font-size: 16px; }
.userPop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 70; min-width: 220px; padding: 10px; border: 1px solid var(--line2); border-radius: 10px; background: var(--panel2); box-shadow: 0 20px 50px #000b; display: grid; gap: 8px; }
.who { padding: 6px 8px; }
.who b, .who small { display: block; }
.who small { color: var(--muted); margin-top: 3px; text-transform: capitalize; }
.menuItem { display: flex; gap: 10px; align-items: center; border: 0; background: none; padding: 9px 8px; border-radius: 8px; text-align: left; }
.menuItem:hover { background: #12303c; }
main { width: 100%; max-width: 1320px; padding: 22px 26px 24px; flex: 1; }
footer {
  display: flex; justify-content: space-between; gap: 16px; padding: 18px 26px 22px; border-top: 1px solid var(--line);
  color: #b9cad1; letter-spacing: 3px; font-size: 11px;
}
footer b { font-weight: 500; letter-spacing: 4px; }

.panel { border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel), #08141a); border-radius: var(--r); padding: 18px; margin-bottom: 16px; }
.panelHead { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.panelHead h2 { margin: 0; }
.panelHead small { color: var(--muted); }
.viewHead { margin: 4px 0 18px; }
.viewHead p { margin: 6px 0 0; color: var(--muted); }
.phoneOnly { display: none !important; }

/* ------------------------------------------------------------ dashboard */
.dashHead { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 16px; flex-wrap: wrap; }
.titleBlock p { margin: 4px 0 0; color: #b9cad1; font-size: 16px; }
.filters { display: flex; gap: 10px; align-items: center; flex: 1; justify-content: flex-end; flex-wrap: wrap; }
.filters select { width: auto; min-width: 132px; height: 44px; font-size: 14px; padding-top: 0; padding-bottom: 0; background-color: var(--panel); }
.filters .ghost { height: 44px; padding: 0 22px; }
.search {
  display: grid; grid-template-columns: 42px 1fr 36px; align-items: center; height: 44px; flex: 1 1 340px; max-width: 460px;
  border: 1px solid var(--line2); border-radius: 8px; background: var(--panel); color: #fff;
}
.search > span { display: grid; place-items: center; font-size: 20px; color: #dce8ec; }
.search input { border: 0; background: transparent; height: 100%; padding: 0; box-shadow: none; font-size: 14px; }
.search input::-webkit-search-cancel-button { display: none; }
.search button { height: 100%; border: 0; background: transparent; color: var(--muted); font-size: 20px; }

/* product line tabs (Springs / Lowering Links / Wheel Spacers) */
.lineTabs { display: flex; gap: 8px; margin: 0 0 16px; overflow-x: auto; scrollbar-width: none; }
.lineTabs::-webkit-scrollbar { display: none; }
.lineTab { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); color: #dbe7ec; font-weight: 600; white-space: nowrap; }
.lineTab small { font-size: 12px; color: var(--muted); background: var(--bg2); border-radius: 999px; padding: 2px 8px; }
.lineTab:hover { border-color: var(--cyan2); }
.lineTab.on { background: var(--cyan); border-color: var(--cyan); color: #00151d; }
.lineTab.on small { background: rgba(0,0,0,.18); color: #00151d; }
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 18px; }
.tile {
  display: flex; align-items: center; gap: 16px; padding: 16px; text-align: left; color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(180deg, var(--panel), #08141a);
}
button.tile:hover { border-color: var(--line2); }
.tile.active { border-color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan); }
.tileIcon { width: 54px; height: 54px; border-radius: 10px; display: grid; place-items: center; font-size: 30px; flex: none; }
.tileIcon .ic { stroke-width: 2; }
.tile small { display: block; font-size: 12px; letter-spacing: .6px; color: #c7d6dc; text-transform: uppercase; }
.tile b { display: block; font-size: 26px; font-weight: 800; margin-top: 4px; }
.t-cyan .tileIcon { background: #0e4a63; color: #3fd0ff; } .t-cyan b { color: #fff; }
.t-green .tileIcon { background: #0c4a35; color: var(--green); } .t-green b { color: #fff; }
.t-amber .tileIcon { background: #5a4410; color: var(--amber); } .t-amber b { color: var(--amber); }
.t-red .tileIcon { background: #5a1820; color: var(--red); } .t-red b { color: var(--red); }
.t-blue .tileIcon { background: #0f3560; color: var(--blue); } .t-blue b { color: var(--blue); }

/* brand cards */
.brandsPanel { margin-bottom: 16px; }
.brandRow { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.brandCard {
  position: relative; height: 128px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: #fff;
  text-align: left; padding: 0; background: #081218;
}
.brandCard .bImg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .3s; }
.brandCard .bImg.placeholder { background: radial-gradient(ellipse at 80% 30%, #12394a 0, #0a1a22 55%, #061016); }
.brandCard .bImg.placeholder::after { content: ''; position: absolute; right: -6px; top: 10px; width: 92px; height: 108px; background: url('img/spring.jpg') center / cover; opacity: .42; border-radius: 8px; mix-blend-mode: lighten; }
.brandCard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #050d12f2 8%, #050d1288 55%, #050d1222); }
.brandCard:hover .bImg { transform: scale(1.04); }
.brandCard:hover, .brandCard.active { border-color: var(--cyan); }
.brandCard.active { box-shadow: inset 0 0 0 1px var(--cyan); }
.brandCard .bText { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; display: grid; gap: 4px; }
.brandCard .bName { font-size: 20px; font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .4px; }
.brandCard.customCard { border-color: var(--cyan2); }
.brandCard.customCard .bImg { background: radial-gradient(ellipse at 80% 20%, #1cc0ec44 0, #0b2230 55%, #061016); }
.brandCard.customCard .cIcon { position: absolute; right: 14px; top: 16px; width: 96px; z-index: 2; opacity: .9; }
.brandCard.customCard .cIcon svg { width: 100%; height: auto; fill: none; stroke: var(--cyan); stroke-width: 2.5; }
.brandCard.customCard .bKits { color: var(--cyan); }
.freightPick { display: grid; gap: 8px; margin: 14px 0 4px; }
.freightPick > b { font-size: 13px; color: #dce8ec; }
.freightPick label.check { border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; background: #061118; }
.freightPick label.check:has(input:checked) { border-color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan); }
.freightPick .fAmt { margin-left: auto; font-weight: 800; color: #fff; }
.payBox { margin-top: 14px; border: 1px solid var(--cyan); border-radius: 12px; padding: 16px; background: #0b2230; display: grid; gap: 10px; }
.payBox h3 { margin: 0; font-size: 17px; }
.payNow { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.payTag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .4px; border-radius: 99px; padding: 3px 9px; }
.payTag.paid { background: #0c4a35; color: var(--green); }
.payTag.due { background: #5a4410; color: var(--amber); }
.payTag.other { background: #1f3d49; color: #dce8ec; }
.doFilter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; border: 1px solid var(--cyan2); background: #0b2230; border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; }
.brandCard .bMeta { font-size: 12px; color: #c7d6dc; display: flex; gap: 10px; flex-wrap: wrap; }
.brandCard .bMeta .s-low { color: var(--amber); } .brandCard .bMeta .s-out { color: var(--red); }
.brandCard .bKits { color: var(--cyan); font-weight: 700; }

/* inventory table */
.tablePanel { padding: 0; overflow: hidden; }
.tableCrumb { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.tableCrumb h3 { margin: 0; font-size: 18px; font-style: italic; text-transform: uppercase; }
.tableCrumb small { color: var(--muted); }
.tableScroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
.inv th {
  text-align: left; font-size: 11px; letter-spacing: 1px; font-weight: 600; color: #c7d6dc; text-transform: uppercase;
  padding: 12px 10px; background: #0b1a22; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.inv th button { background: none; border: 0; padding: 0; color: inherit; font: inherit; letter-spacing: inherit; display: inline-flex; gap: 6px; align-items: center; text-transform: inherit; }
.inv th button .ic { font-size: 13px; opacity: .6; }
.inv th button.sorted { color: var(--cyan); } .inv th button.sorted .ic { opacity: 1; }
.inv td { padding: 6px 10px; height: 44px; border-bottom: 1px solid #10252e; font-size: 13.5px; white-space: nowrap; }
.inv td.c-app { white-space: normal; min-width: 170px; line-height: 1.3; }
.inv tr.invRow { cursor: pointer; }
.inv tr.invRow:hover td { background: #0c2029; }
.inv td.thumb { width: 66px; padding: 0; vertical-align: middle; }
.thumbImg { width: 66px; height: 100%; min-height: 44px; background: #11181c url('img/spring.jpg') center / cover; display: block; }
.inv .pn { color: var(--cyan); font-weight: 700; }
.inv td.num { font-variant-numeric: tabular-nums; }
.inv td.go { width: 36px; color: #dbe7ec; font-size: 18px; }
.st { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.st i { width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }
.s-ok { color: var(--green); } .s-low { color: var(--amber); } .s-order { color: var(--blue); } .s-out { color: var(--red); }
.inv tr.groupRow td { background: #08151b; height: 38px; border-bottom: 1px solid var(--line); }
.groupRow .gName { font-weight: 800; font-style: italic; letter-spacing: 2px; text-transform: uppercase; color: #fff; }
.groupRow .gMeta { color: var(--muted); margin-left: 10px; font-size: 12px; }
.groupRow button { margin-left: 10px; }
.inv .price { font-weight: 700; }
.inv .muted { color: var(--muted); }
.tableFoot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; color: #c7d6dc; flex-wrap: wrap; }
.pager { display: flex; gap: 6px; align-items: center; }
.pager button { min-width: 34px; height: 34px; border-radius: 6px; border: 0; background: none; color: #dbe7ec; }
.pager button.on { background: var(--cyan2); color: #fff; font-weight: 700; }
.pager button:disabled { opacity: .35; cursor: default; }
.empty { color: var(--muted); padding: 34px 12px; text-align: center; white-space: normal; }

.bottomPanels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quickActions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qa {
  display: grid; grid-template-columns: 46px 1fr 20px; gap: 14px; align-items: center; text-align: left; padding: 12px 14px;
  border: 1px solid var(--line2); border-radius: 10px; background: #0b1b23; color: #fff;
}
.qa:hover { border-color: var(--cyan); }
.qa .qi { width: 46px; height: 46px; border-radius: 9px; background: #0e2c39; color: var(--cyan); display: grid; place-items: center; font-size: 24px; }
.qa b, .qa small { display: block; }
.qa small { color: #a8bcc5; margin-top: 3px; font-size: 12px; }
.qa .ic.chev { font-size: 18px; color: #dbe7ec; }
.activity { display: grid; }
.actRow { display: grid; grid-template-columns: 34px 120px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid #10252e; font-size: 13px; }
.actRow:last-child { border-bottom: 0; }
.actIcon { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; font-size: 17px; background: #0e2c39; }
.a-in { color: var(--green); background: #0c3a2c; } .a-out { color: var(--red); background: #4a1820; } .a-adj { color: var(--cyan); }
.actRow .when { color: var(--muted); white-space: nowrap; }
.actRow .who2 { color: var(--muted); }

/* phone action grid */
.actionGrid { grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.act {
  display: grid; justify-items: center; gap: 6px; text-align: center; padding: 18px 10px; min-height: 120px; align-content: center;
  border: 1px solid var(--line2); border-radius: 14px; background: linear-gradient(180deg, #0d1d26, #0a171e); color: #fff;
}
.act .ic { font-size: 34px; stroke-width: 1.6; }
.act b { font-size: 13px; letter-spacing: .6px; text-transform: uppercase; }
.act small { color: #a8bcc5; font-size: 11px; }
.act.hot { background: linear-gradient(160deg, #1aa9d6, #0b5f80); border-color: #4cd6ff; box-shadow: 0 10px 30px #0ea5d455; }
.act.hot small { color: #e3f6fd; }
.act.wide { grid-column: 1 / -1; min-height: 96px; }
.act.soon { opacity: .6; }

/* ----------------------------------------------------------- kit sheet */
.backdrop { position: fixed; inset: 0; background: #000b; z-index: 80; }
.sheet {
  position: fixed; z-index: 81; top: 0; right: 0; bottom: 0; width: min(560px, 100%); overflow-y: auto;
  background: var(--bg2); border-left: 1px solid var(--line2); padding: 22px 22px 40px; box-shadow: -30px 0 80px #000c;
}
.sheetClose { position: absolute; right: 12px; top: 10px; border: 0; background: none; font-size: 32px; color: #fff; width: 44px; height: 44px; z-index: 2; }
.sheetTop { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; margin-right: 34px; }
.kitImg { width: 112px; height: 112px; border-radius: 12px; background: #11181c url('img/spring.jpg') center / cover; border: 1px solid var(--line2); }
.pill { display: inline-block; color: var(--cyan); font-weight: 800; font-size: 17px; }
.sheet h2, .scanCard h2 { font-size: 21px; margin: 4px 0 4px; line-height: 1.2; }
.kitMeta { color: #a8bcc5; font-size: 14px; }
.badge { display: inline-flex; gap: 7px; align-items: center; font-size: 13px; font-weight: 700; margin-top: 8px; }
.badge i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 18px 0; border: 1px solid var(--line); border-radius: 10px; background: #08141a; }
.stats div { text-align: center; padding: 12px 6px; }
.stats div + div { border-left: 1px solid var(--line); }
.stats b { display: block; font-size: 26px; font-weight: 800; }
.stats small { display: block; font-size: 11px; letter-spacing: .6px; color: #c7d6dc; text-transform: uppercase; margin-top: 2px; }
.stats .c-green b { color: var(--green); } .stats .c-blue b, .stats .c-blue small { color: var(--blue); } .stats .c-amber b { color: var(--amber); }
.prices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.prices div { background: #08141a; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.prices small { display: block; font-size: 10px; color: var(--muted); letter-spacing: 1px; }
.prices b { font-size: 15px; }
.move { display: grid; gap: 12px; margin-bottom: 18px; }
.moveFields { display: grid; grid-template-columns: 120px 1fr 1fr; gap: 10px; }
.moveFields label { font-size: 12px; }
.staffBox { border: 1px solid var(--line2); border-radius: 8px; background: #061118; padding: 11px 13px; font-size: 16px; color: #dce8ec; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.moveBtns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btnIn, .btnOut { height: 58px; border: 0; border-radius: 10px; color: #fff; font-size: 17px; font-weight: 800; letter-spacing: .6px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.btnIn { background: linear-gradient(135deg, #20c98a, #0f9f6a); }
.btnOut { background: linear-gradient(135deg, #ff4b5a, #e3303f); }
.btnIn .ic, .btnOut .ic { font-size: 22px; stroke-width: 2.6; }
.setRow { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.sheetSection { margin-bottom: 18px; display: grid; gap: 8px; }
.sheetSection h3 { margin: 0; font-size: 12px; letter-spacing: 2px; color: #a7c3cd; }
dl { margin: 0; display: grid; grid-template-columns: 130px 1fr; gap: 8px; font-size: 14px; }
dt { color: #9db6c0; }
dd { margin: 0; word-break: break-word; }
.fitList { margin: 0; padding-left: 18px; color: #cfe0e6; display: grid; gap: 4px; font-size: 14px; }
.warnBox { border: 1px solid #f6b82955; background: #f6b82912; color: #ffd68a; border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px; }

/* --------------------------------------------------------------- scan */
.scanHead { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.scanLayout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.camera { position: relative; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 4 / 3.3; border: 1px solid var(--line2); }
.reader { position: absolute; inset: 0; }
.reader video { width: 100% !important; height: 100% !important; object-fit: cover; }
.reader > div, .reader canvas, #reader__dashboard, #reader__scan_region img { display: none !important; }
.reader #reader__scan_region { display: block !important; height: 100%; }
.frame { position: absolute; inset: 22% 14%; pointer-events: none; }
.frame i { position: absolute; width: 34px; height: 34px; border: 3px solid #3fd3ff; filter: drop-shadow(0 0 6px #1cc0ec); }
.frame i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
.frame i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 10px; }
.frame i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 10px; }
.frame i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; }
.laser { position: absolute; left: 4%; right: 4%; top: 50%; height: 2px; background: #ff3b3b; box-shadow: 0 0 10px #ff3b3b; animation: laser 2.2s ease-in-out infinite; }
@keyframes laser { 0%, 100% { top: 22%; } 50% { top: 78%; } }
.camHint { position: absolute; left: 0; right: 0; bottom: 12px; margin: 0; text-align: center; font-size: 13px; color: #e3eef2; text-shadow: 0 1px 4px #000; }
#scanMsg { margin: 10px 2px; }
.manual { display: grid; gap: 10px; }
.manual label { font-size: 15px; color: #fff; font-weight: 700; }
.manualRow { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.manualRow .primary { padding: 0 26px; letter-spacing: 1px; }
.scanCard .sheetTop { margin-right: 0; grid-template-columns: 110px 1fr; }
.scanEmpty { display: grid; justify-items: center; gap: 10px; text-align: center; color: var(--muted); padding: 40px 18px; }
.scanEmpty .ic { font-size: 48px; color: #3a6170; }
.nextBtn { width: 100%; }
.scanChoices { display: grid; gap: 8px; margin: 12px 0; }
.scanChoice { display: grid; gap: 3px; text-align: left; padding: 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--panel2); color: var(--text); }
.scanChoice:active { border-color: var(--cyan); }
.scanChoice .pn { color: var(--cyan); font-weight: 700; font-size: 13px; }
.scanChoice small { color: var(--muted); }

/* forms + tables in other views */
.form { max-width: 1000px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid2 .wide { grid-column: 1 / -1; }
.formActions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.formActions .formMsg { margin-right: auto; }
.list th, .list td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #12323c; vertical-align: middle; font-size: 14px; }
.list th { color: #9db6c0; font-size: 11px; letter-spacing: 1px; font-weight: 700; }
.list td select { padding: 7px 30px 7px 10px; font-size: 13px; min-width: 150px; }
.list tr.clickable { cursor: pointer; }
.list tr.clickable:hover td { background: #0c2029; }
.skeleton { height: 120px; border-radius: 10px; background: linear-gradient(90deg, #0a171e, #10252f, #0a171e); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90;
  background: #0b2a36; border: 1px solid var(--cyan); color: #fff; border-radius: 10px; padding: 12px 18px;
  box-shadow: 0 20px 50px #000c; max-width: calc(100% - 32px); font-weight: 600;
}
.toast.error { border-color: var(--red); background: #2a0b10; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1360px) {
  .inv th:nth-child(5), .inv td:nth-child(5) { display: none; }
}
@media (max-width: 1280px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tiles .tile:nth-child(n+4) { grid-column: span 1; }
}
@media (max-width: 1100px) {
  .bottomPanels { grid-template-columns: 1fr; }
  .scanLayout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --side: 286px; }
  .phoneOnly { display: grid !important; }
  .desktopOnly { display: none !important; }
  .side { transform: translateX(-100%); transition: transform .22s ease; box-shadow: 30px 0 80px #000c; }
  .side.open { transform: none; }
  .navScrim { position: fixed; inset: 0; background: #000a; z-index: 45; }
  .page { margin-left: 0; }
  .topbar {
    display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 40;
    padding: 10px 14px calc(10px) 16px; background: #050d12f2; backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
  }
  .topbar .logoImg { width: 190px; }
  .hero { display: none; }
  .statusbar { padding: 8px 16px; justify-content: space-between; }
  .liveSub { border: 0; padding: 0; margin-right: auto; font-size: 12px; }
  .userBtn b { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  main { padding: 16px 14px 18px; }
  h1 { font-size: 27px; }
  .titleBlock p { font-size: 14px; color: var(--muted); }
  .filters { justify-content: stretch; }
  .search { flex: 1 1 100%; max-width: none; }
  .filters select { flex: 1; min-width: 0; }
  .filters .ghost { padding: 0 14px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tiles .tile:nth-child(5) { display: none; }
  .tile { display: block; padding: 14px; border-radius: 12px; }
  .tile .tileIcon { display: none; }
  .tile b { font-size: 30px; margin: 0 0 4px; }
  .tile small { font-size: 12px; color: #e3eef2; }
  .t-cyan b { color: #3fd0ff !important; } .t-green b { color: var(--green) !important; }
  .tile.t-amber b { color: #ff9a3c; }
  .tiles .tile { display: flex; flex-direction: column-reverse; align-items: flex-start; }
  .brandRow { grid-auto-columns: 46%; margin: 0 -14px; padding: 0 14px 6px; }
  .brandCard { height: 112px; }
  .brandCard .bName { font-size: 17px; }
  .bottomPanels .panel:first-child { display: none; }
  /* table becomes stacked cards */
  .inv thead { display: none; }
  .inv, .inv tbody { display: block; }
  .inv tr.invRow { display: grid; grid-template-columns: 64px 1fr auto; grid-template-rows: auto auto auto; column-gap: 12px; padding: 10px 12px; border-bottom: 1px solid #10252e; }
  .inv tr.invRow td { display: none; height: auto; padding: 0; border: 0; white-space: normal; }
  .inv tr.invRow td.thumb { display: block; grid-row: 1 / 4; width: 64px; }
  .inv tr.invRow td.thumb .thumbImg { width: 64px; height: 64px; border-radius: 8px; }
  .inv tr.invRow td.c-pn { display: block; grid-column: 2; }
  .inv tr.invRow td.c-app { display: block; grid-column: 2; font-weight: 700; }
  .inv tr.invRow td.c-ch { display: block; grid-column: 2; color: var(--muted); font-size: 13px; }
  .inv tr.invRow td.c-stock { display: block; grid-column: 3; grid-row: 1; text-align: right; font-size: 20px; font-weight: 800; }
  .inv tr.invRow td.c-status { display: block; grid-column: 3; grid-row: 2 / 4; text-align: right; font-size: 12px; align-self: end; }
  .inv tr.invRow td.c-price { display: block; grid-column: 3; grid-row: 2; text-align: right; }
  .inv tr.groupRow { display: block; }
  .inv tr.groupRow td { display: block; height: auto; padding: 10px 12px; }
  .tableFoot { padding: 12px; }
  .actRow { grid-template-columns: 32px 1fr auto; }
  .actRow .what { grid-column: 2; }
  .actRow .pnA { grid-column: 2; }
  .grid2 { grid-template-columns: 1fr; }
  .prices { grid-template-columns: repeat(2, 1fr); }
  .moveFields { grid-template-columns: 90px 1fr; }
  .moveFields .staffWrap { grid-column: 1 / -1; }
  .sheet { top: auto; max-height: 92vh; border-left: 0; border-top: 1px solid var(--line2); border-radius: 18px 18px 0 0; padding: 18px 16px calc(30px + env(safe-area-inset-bottom)); }
  .sheetTop { grid-template-columns: 84px 1fr; }
  .kitImg { width: 84px; height: 84px; }
  .scanHead h1 { font-size: 22px; flex: 1; text-align: center; margin-right: 42px; }
  footer { display: none; }
}

/* purchase orders */
.poHead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.poHead h2 { margin: 0; }
.poHint { margin: 8px 0 14px; font-size: 13px; color: var(--muted); }
.poTable td input { width: 90px; padding: 8px 10px; font-size: 15px; }
.poTable tr.need td:first-child { box-shadow: inset 3px 0 var(--amber); }
.poMeta { margin-top: 16px; }
.muted { color: var(--muted); }

/* edit mode */
.sheetTools { display: flex; gap: 8px; margin: 14px 0 4px; }
.editForm { display: grid; gap: 14px; margin-top: 14px; }
.editForm .grid2 { gap: 12px; }
.editForm h3 { margin: 6px 0 0; font-size: 12px; letter-spacing: 2px; color: #a7c3cd; }
.fitRow { display: grid; grid-template-columns: 1fr 1fr 0.8fr 0.8fr 1.4fr 96px 36px; gap: 6px; align-items: center; }
.fitRow input, .fitRow select { padding: 8px 9px; font-size: 13px; }
.fitRow .del { border: 1px solid var(--line2); background: none; color: var(--red); border-radius: 8px; height: 36px; }
.fitHead { font-size: 10px; letter-spacing: 1px; color: var(--muted); }
.editActions { display: flex; gap: 10px; justify-content: flex-end; align-items: center; flex-wrap: wrap; position: sticky; bottom: -40px; background: var(--bg2); padding: 12px 0; }
.editActions .formMsg { margin-right: auto; }
@media (max-width: 900px) {
  .fitRow { grid-template-columns: 1fr 1fr; }
  .fitRow .fitNotes { grid-column: 1 / -1; }
  .fitHead { display: none; }
}

/* dealer ordering */
.cartTotals { display: grid; justify-content: end; gap: 6px; margin-top: 14px; font-size: 14px; }
.cartTotals div { display: grid; grid-template-columns: 180px 120px; text-align: right; }
.cartTotals .grand { font-size: 18px; font-weight: 800; border-top: 1px solid var(--line2); padding-top: 8px; }
.cartTotals .grand span:last-child { color: var(--cyan); }
.orderBox { border: 1px solid var(--line2); border-radius: 10px; background: #08141a; padding: 14px; margin-bottom: 12px; display: grid; gap: 10px; }
.orderTop { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.orderTop b.no { font-size: 16px; color: var(--cyan); }
.orderTop .total { margin-left: auto; font-weight: 800; font-size: 16px; }
.orderTop select { width: auto; padding: 7px 30px 7px 10px; font-size: 13px; }
.orderBox table td, .orderBox table th { padding: 6px 8px; font-size: 13px; }
.airTag { display: inline-block; font-size: 11px; font-weight: 700; color: #ffd68a; border: 1px solid #f6b82966; border-radius: 99px; padding: 2px 8px; margin-left: 6px; }
.orderBlock { border: 1px solid var(--line2); border-radius: 12px; padding: 14px; display: grid; gap: 10px; background: #041219; margin-bottom: 18px; }
.orderBlock h3 { margin: 0; font-size: 12px; letter-spacing: 2px; color: #a7c3cd; }
.orderBlock .qtyRow { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: end; }
.cartBadge { display: inline-block; min-width: 18px; padding: 1px 6px; border-radius: 99px; background: var(--cyan2); color: #fff; font-size: 11px; margin-left: 6px; vertical-align: 1px; }
@media (max-width: 900px) { .cartTotals div { grid-template-columns: 1fr 110px; } .cartTotals { justify-content: stretch; } }

/* dealer application */
.loginFoot a, .applyIntro a { color: var(--cyan); }
.apply { min-height: 100vh; position: relative; padding: 40px 20px; }
.applyWrap { position: relative; max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: start; }
.applyIntro { display: grid; gap: 18px; padding-top: 10px; }
.applyIntro h1 { font-size: 36px; line-height: 1.1; }
.applyIntro .sub { color: #c7d6dc; font-size: 16px; margin: 0; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.perks li { border-left: 3px solid var(--cyan); padding: 4px 0 4px 14px; display: grid; gap: 3px; }
.perks span { color: var(--muted); font-size: 14px; }
.applyCard { width: 100%; }
.applyCard h2 { margin: 0 0 4px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* B2B credit application + guarantee */
.applyWrap--form { grid-template-columns: 1fr; max-width: 880px; gap: 24px; }
.applyWrap--form .applyIntro h1 { font-size: 32px; }
.applyChoice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.applyChoice > div { border: 1px solid var(--line2); border-radius: 12px; background: #0a171ecc; padding: 14px 16px; display: grid; gap: 4px; }
.applyChoice span { color: var(--muted); font-size: 14px; }
.applyChoice a { color: var(--cyan); font-weight: 600; }
.creditForm { width: 100%; gap: 22px; padding: 28px; }
.creditForm fieldset { border: 0; margin: 0; padding: 0 0 22px; border-bottom: 1px solid var(--line); display: grid; gap: 12px; min-width: 0; }
.creditForm fieldset:last-of-type { border-bottom: 0; padding-bottom: 0; }
.creditForm legend { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; color: #fff; padding: 0; margin-bottom: 14px; }
.creditForm legend > span:first-child { width: 26px; height: 26px; border-radius: 50%; background: var(--cyan); color: #00151d; display: grid; place-items: center; font-size: 13px; flex: none; }
.creditForm .hint { margin: 0; color: var(--muted); font-size: 13px; }
.creditForm .hint a { color: var(--cyan); }
.repeatList { display: grid; gap: 12px; }
.repeatItem { border: 1px solid var(--line2); border-radius: 10px; padding: 14px; background: #061118; display: grid; gap: 10px; }
.repeatItem .rhead { display: flex; justify-content: space-between; align-items: center; color: #dce8ec; font-weight: 700; font-size: 13px; }
.termsBox { max-height: 320px; overflow-y: auto; border: 1px solid var(--line2); border-radius: 10px; background: #f7f9fa; color: #111; padding: 16px 18px; font-size: 13.5px; line-height: 1.5; }
.termsBox h2 { font-size: 14px; margin: 14px 0 4px; color: #111; }
.termsBox p { margin: 0 0 6px; }
.termsBox .cl { display: grid; grid-template-columns: 38px 1fr; gap: 4px; }
.termsBox .cl span:first-child { color: #555; font-weight: 700; }
.termsBox .warn { border: 2px solid #b00; padding: 8px 10px; font-weight: 700; }
.acks { display: grid; gap: 10px; }
.acks label.check, label.check.ackStrong { align-items: flex-start; font-weight: 500; line-height: 1.4; }
.acks label.check input, label.check.ackStrong input { margin-top: 1px; flex: none; }
.acks label.check.locked { opacity: .55; }
.sigWrap { display: grid; gap: 6px; }
.sigHead { display: flex; justify-content: space-between; color: #a9bcc4; font-size: 12px; font-weight: 600; }
.sigPad { width: 100%; height: 130px; background: #fff; border-radius: 10px; border: 2px dashed #8ea6b1; touch-action: none; cursor: crosshair; }
.sigPad.signed { border-style: solid; border-color: var(--cyan); }
.recordBox { border: 1px solid var(--line2); border-radius: 10px; padding: 12px 14px; font-size: 12.5px; color: #c7d6dc; display: grid; gap: 4px; word-break: break-all; }
.liability { border: 2px solid var(--red); border-radius: 10px; padding: 12px 14px; color: #ffd6da; background: #2a0b10; display: grid; gap: 4px; font-size: 14px; }
.liability b { color: #fff; letter-spacing: .5px; }
.appCard details { border-top: 1px solid var(--line); padding-top: 8px; }
.appCard summary { cursor: pointer; color: var(--cyan); font-size: 13px; font-weight: 600; }
.appCard .sigImg { background: #fff; border-radius: 6px; max-width: 260px; height: auto; display: block; }
.appCard pre { white-space: pre-wrap; margin: 0; font: inherit; }
.gtLink { display: flex; gap: 8px; align-items: center; }
.gtLink input { font-size: 12px; padding: 8px 10px; }
@media (max-width: 700px) {
  .applyChoice { grid-template-columns: 1fr; }
  .creditForm { padding: 20px 16px; }
  .applyWrap--form .applyIntro h1 { font-size: 26px; }
}
.appCard { border: 1px solid var(--line2); border-radius: 10px; background: #08141a; padding: 14px; margin-bottom: 10px; display: grid; gap: 8px; }
.appCard .top { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; }
.appCard .top b { font-size: 16px; }
.appCard .actions { display: flex; gap: 8px; justify-content: flex-end; }
.appCard dl { grid-template-columns: 130px 1fr; font-size: 13px; }
.navBadge { display: inline-block; min-width: 18px; padding: 1px 6px; border-radius: 99px; background: var(--amber); color: #111; font-size: 11px; margin-left: 6px; vertical-align: 1px; font-weight: 800; }
@media (max-width: 900px) {
  .applyWrap { grid-template-columns: 1fr; gap: 22px; }
  .applyIntro h1 { font-size: 28px; }
  .apply { padding: 24px 14px; }
}

/* custom-spec lowering links (dealer portal) */
.customPanel { margin-bottom: 16px; padding: 20px; display: grid; gap: 14px; border-color: var(--cyan2); background: linear-gradient(135deg, #0b2230, var(--panel)); }
.customPanel h2 { margin: 0; }
.customPanel .sub { margin: 0; color: var(--muted); }
.customGrid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: start; }
.customForm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.customForm .wide { grid-column: 1 / -1; }
.linkDiagram { background: #061118; border: 1px solid var(--line2); border-radius: 12px; padding: 12px; }
.linkDiagram svg { width: 100%; height: auto; display: block; }
.customPrice { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; }
.customPrice b { font-size: 22px; color: #fff; }
.customActions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.btoTag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .5px; color: #00151d; background: var(--cyan); border-radius: 99px; padding: 2px 8px; }
@media (max-width: 900px) { .customGrid { grid-template-columns: 1fr; } }

.axles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.customForm fieldset.axle { border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px 12px; margin: 0; display: grid; gap: 10px; min-width: 0; background: #061118; }
.customForm fieldset.axle legend { padding: 0 6px; font-weight: 800; color: var(--cyan); font-size: 13px; letter-spacing: .5px; text-transform: uppercase; }
@media (max-width: 560px) { .axles { grid-template-columns: 1fr; } }

.vehGrid { display: grid; grid-template-columns: 110px 1fr 1fr; gap: 10px; }
.vehGrid label:last-child { grid-column: 1 / -1; }
@media (max-width: 560px) { .vehGrid { grid-template-columns: 1fr 1fr; } .vehGrid label:nth-child(3) { grid-column: 1 / -1; } }

.adjRow { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 6px 18px; color: #a9bcc4; font-size: 12px; font-weight: 600; }
.adjRow > span { grid-column: 1 / -1; }
.adjRow label.check { font-size: 14px; gap: 6px; }
.nonRefund { border: 1px solid #b8860b; background: #2a2108; color: #ffe7a6; border-radius: 10px; padding: 12px 14px; display: grid; gap: 10px; font-size: 13.5px; line-height: 1.45; }
.nonRefund b { color: #ffd166; }
.nonRefund label.check { color: #fff; font-weight: 600; align-items: flex-start; }

/* ---- wheel spacers price list ---- */
.spFinder { text-align: center; }
.spFinderTitle { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; margin: 0 0 14px; }
.spFinderRow { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 10px; }
.spFinderRow select { height: 46px; font-size: 15px; }
.spFinderRow select:disabled { opacity: .45; }
.spFinderRow button { height: 46px; padding: 0 22px; }
.spMoreFilters { margin-top: 14px; text-align: left; }
.spMoreFilters > summary { cursor: pointer; font-size: 13px; color: var(--muted, #8aa); text-align: center; list-style: none; text-decoration: underline; }
.spMoreFilters > summary::-webkit-details-marker { display: none; }
.spMoreFilters[open] > summary { margin-bottom: 12px; }
.spFilters { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 12px; }
.spFilters label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #8aa); display: flex; flex-direction: column; gap: 6px; }
.spKit { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; overflow: hidden; }
.spKit > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; }
.spKit > summary::-webkit-details-marker { display: none; }
.spKit[open] > summary { border-bottom: 1px solid var(--line); }
.spThumb { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: #0b1a20; }
.spTitle { font-weight: 700; line-height: 1.3; }
.spTags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.spTag { font-size: 11px; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted, #8aa); }
.spFrom { text-align: right; white-space: nowrap; }
.spFrom b { display: block; font-size: 18px; color: var(--cyan); }
.spFrom small { color: var(--muted, #8aa); }
.spVars { padding: 6px 14px 14px; }
.spVars input[type=number] { width: 70px; padding: 6px 8px; font-size: 14px; }
.spPoa { color: var(--muted, #8aa); font-size: 13px; }
@media (max-width: 900px) { .spFinderRow { grid-template-columns: 1fr; } .spFilters { grid-template-columns: 1fr 1fr; } .spSearch { grid-column: 1 / -1; } .spKit > summary { grid-template-columns: 48px 1fr; } .spThumb { width: 48px; height: 48px; } .spFrom { grid-column: 2; text-align: left; } }
.spEdit { display: inline-flex; gap: 6px; align-items: center; }
.spEdit input { width: 96px; padding: 6px 8px; font-size: 14px; }
.spBulk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 14px 0; }
.spBulk input { width: 140px; padding: 6px 8px; font-size: 14px; }
.spHeadRow { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.payRow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }

/* order progress (from the order board) */
.stageBox { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line, #24343c); border-radius: 10px; }
.stageHead { font-size: 13px; margin-bottom: 8px; }
.stageBar { list-style: none; display: flex; gap: 4px; margin: 0 0 6px; padding: 0; }
.stageBar li { flex: 1; min-width: 0; font-size: 11px; color: #8aa0a8; }
.stageBar li i { display: block; height: 5px; border-radius: 3px; background: #24343c; margin-bottom: 5px; }
.stageBar li.done i { background: var(--green, #2fd38a); }
.stageBar li.now i { background: var(--cyan, #22c3e6); }
.stageBar li.now { color: inherit; font-weight: 700; }
.stageBar li.warn i { background: var(--amber, #f2b233); }
.stageBar li span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stageNote.cancelled { margin-top: 10px; color: var(--red, #ff6b6b); font-weight: 700; font-size: 13px; }
.stageBox .back { color: var(--amber, #f2b233); }
@media (max-width: 600px) { .stageBar li span { white-space: normal; font-size: 10px; } }
.spStock { color: var(--green, #2fd38a); font-weight: 700; white-space: nowrap; }

/* ---- welcome dashboard ---- */
#view-dashboard.homeMode > :not(#home):not(#actionGrid):not(#tiles) { display: none !important; }
.home { display: flex; flex-direction: column; gap: 18px; margin-bottom: 18px; }
.homeHero { position: relative; min-height: 150px; border-radius: var(--r, 14px); overflow: hidden; border: 1px solid var(--line); display: flex; align-items: flex-end; }
.homeHeroImg { position: absolute; inset: 0; background: radial-gradient(120% 140% at 100% 0%, #0f3a4a 0%, #0a1d25 45%, #071319 100%); }
.homeHeroText { position: relative; padding: 28px 30px; max-width: 640px; }
.homeKicker { letter-spacing: .22em; font-size: 11px; color: var(--cyan); font-weight: 700; }
.homeHeroText h1 { margin: 8px 0 6px; font-size: 34px; line-height: 1.1; }
.homeHeroText p { margin: 0; color: #c7d6dc; }
.homeAbout { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.homeAbout h2 { margin: 0 0 8px; font-size: 18px; }
.homeAbout p { margin: 0; color: #b9c9cf; line-height: 1.6; }
.homeAboutTag { font-weight: 800; font-style: italic; font-size: 22px; color: var(--cyan); text-align: right; white-space: nowrap; }
.homeAboutTag small { display: block; font-style: normal; font-weight: 500; font-size: 11px; letter-spacing: .2em; color: var(--muted, #8aa); margin-top: 6px; text-transform: uppercase; }
.homeCards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.homeCard { text-align: left; display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--r, 14px); border: 1px solid var(--line); background: var(--panel); color: inherit; cursor: pointer; transition: border-color .15s, transform .15s; }
.homeCard:hover { border-color: var(--cyan2, #22c3e6); transform: translateY(-2px); }
.homeCard .hcIcon svg { width: 30px; height: 30px; stroke: var(--cyan); }
.homeCard b { font-size: 18px; }
.homeCard p { margin: 0; color: #b9c9cf; font-size: 14px; line-height: 1.5; flex: 1; }
.homeCard .hcMeta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted, #8aa); }
.homeCard .hcGo { color: var(--cyan); font-weight: 700; }
.homeGrid { display: grid; grid-template-columns: 1fr 2fr; gap: 14px; }
.homeGrid h2 { margin: 0 0 12px; font-size: 16px; }
.homeStat { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.homeStat:last-child { border-bottom: 0; }
.homeStat b { font-size: 22px; color: var(--cyan); }
.homeOrder { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.homeOrder:last-of-type { border-bottom: 0; }
.homeOrder .kitMeta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.homeHead { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
@media (max-width: 900px) {
  .homeCards, .homeGrid, .homeAbout { grid-template-columns: 1fr; }
  .homeAboutTag { text-align: left; }
  .homeHeroText { padding: 20px; } .homeHeroText h1 { font-size: 26px; }
  .homeOrder { grid-template-columns: auto 1fr auto; } .homeOrder .hoTotal { display: none; }
}

/* ---- light theme (body.light): white content, dark sidebar + photo banner kept ---- */
body.light .page, body.light .sheet {
  --bg: #f3f6f8; --bg2: #eaf0f3; --panel: #ffffff; --panel2: #f6f9fb; --line: #dfe7eb; --line2: #cfdbe1;
  --text: #0e1c23; --text2: #3c5560; --muted: #6a818b; --muted2: #8a9da5; --cyan: #0b9fcf; --cyan2: #0b8ab8;
  color: var(--text);
}
body.light, body.light html { background: #f3f6f8; }
body.light .page { background: #f3f6f8; }
body.light .hero { --text: #eef5f8; color: #eef5f8; }
body.light .statusbar { background: #ffffff; border-color: var(--line); }
body.light .panel, body.light .homeCard, body.light .orderBox, body.light .spKit, body.light .tile, body.light .tablePanel { background: #ffffff; box-shadow: 0 1px 3px #0e1c230d, 0 4px 14px #0e1c2308; }
body.light .page input, body.light .page select, body.light .page textarea, body.light .sheet input, body.light .sheet select, body.light .sheet textarea { background: #ffffff; color: var(--text); border-color: var(--line2); }
body.light .homeHeroImg { background: radial-gradient(120% 160% at 100% 0%, #d8f1fa 0%, #eef8fc 45%, #ffffff 100%); }
body.light .homeHeroText p, body.light .homeAbout p, body.light .homeCard p { color: var(--text2); }
body.light .homeAboutTag { color: var(--cyan); }
body.light table.list th, body.light .inv th { color: var(--muted); }
body.light .invRow:hover, body.light table.list tr:hover td { background: #f1f7fa; }
body.light .ghost { color: var(--text); border-color: var(--line2); background: #fff; }
body.light .lineTab { background: #fff; color: var(--text); }
body.light footer { background: #ffffff; color: var(--muted); border-color: var(--line); }
body.light .skeleton { background: linear-gradient(90deg, #eef3f5, #f8fbfc, #eef3f5); background-size: 200% 100%; }
body.light .sheet { background: #ffffff; }
body.light .page .ghost, body.light .sheet .ghost { color: var(--text2); }
body.light .page .iconBtn, body.light .sheet .iconBtn { color: var(--text2); }
body.light .page input, body.light .sheet input, body.light .page select, body.light .sheet select, body.light .page textarea, body.light .sheet textarea { color: var(--text2); background: var(--panel); }
body.light .page option, body.light .sheet option { background: var(--panel); }
body.light .page label.check, body.light .sheet label.check { color: var(--text2); }
body.light .page .formMsg, body.light .sheet .formMsg { color: var(--text2); }
body.light .page .liveSub, body.light .sheet .liveSub { color: var(--text2); }
body.light .page footer, body.light .sheet footer { color: var(--text2); }
body.light .page .panel, body.light .sheet .panel { background: var(--panel); }
body.light .page .titleBlock p, body.light .sheet .titleBlock p { color: var(--text2); }
body.light .page .search, body.light .sheet .search { color: var(--text2); }
body.light .page .search > span, body.light .sheet .search > span { color: var(--text2); }
body.light .page .lineTab, body.light .sheet .lineTab { color: var(--text2); }
body.light .page .tile, body.light .sheet .tile { background: var(--panel); }
body.light .page .tile small, body.light .sheet .tile small { color: var(--text2); }
body.light .page .t-cyan b, body.light .sheet .t-cyan b { color: var(--text2); }
body.light .page .t-green b, body.light .sheet .t-green b { color: var(--text2); }
body.light .page .freightPick > b, body.light .sheet .freightPick > b { color: var(--text2); }
body.light .page .freightPick label.check, body.light .sheet .freightPick label.check { background: var(--panel); }
body.light .page .freightPick .fAmt, body.light .sheet .freightPick .fAmt { color: var(--text2); }
body.light .page .payBox, body.light .sheet .payBox { background: var(--panel); }
body.light .page .payTag.other, body.light .sheet .payTag.other { color: var(--text2); }
body.light .page .doFilter, body.light .sheet .doFilter { background: var(--panel); }
body.light .page .inv th, body.light .sheet .inv th { color: var(--text2); }
body.light .page .inv td.go, body.light .sheet .inv td.go { color: var(--text2); }
body.light .page .groupRow .gName, body.light .sheet .groupRow .gName { color: var(--text2); }
body.light .page .tableFoot, body.light .sheet .tableFoot { color: var(--text2); }
body.light .page .pager button, body.light .sheet .pager button { color: var(--text2); }
body.light .page .qa, body.light .sheet .qa { color: var(--text2); }
body.light .page .qa small, body.light .sheet .qa small { color: var(--text2); }
body.light .page .qa .ic.chev, body.light .sheet .qa .ic.chev { color: var(--text2); }
body.light .page .act, body.light .sheet .act { color: var(--text2); background: var(--panel); }
body.light .page .act small, body.light .sheet .act small { color: var(--text2); }
body.light .sheetClose { color: var(--text2); }
body.light .page .kitMeta, body.light .sheet .kitMeta { color: var(--text2); }
body.light .page .stats, body.light .sheet .stats { background: var(--panel); }
body.light .page .stats small, body.light .sheet .stats small { color: var(--text2); }
body.light .page .prices div, body.light .sheet .prices div { background: var(--panel); }
body.light .page .staffBox, body.light .sheet .staffBox { color: var(--text2); background: var(--panel); }
body.light .sheetSection h3 { color: var(--text2); }
body.light .page dt, body.light .sheet dt { color: var(--text2); }
body.light .page .fitList, body.light .sheet .fitList { color: var(--text2); }
body.light .page .camHint, body.light .sheet .camHint { color: var(--text2); }
body.light .page .manual label, body.light .sheet .manual label { color: var(--text2); }
body.light .page .list th, body.light .sheet .list th { color: var(--text2); }
body.light .page .skeleton, body.light .sheet .skeleton { background: var(--panel); }
body.light .page .topbar, body.light .sheet .topbar { background: var(--panel); }
body.light .page .tile small, body.light .sheet .tile small { color: var(--text2); }
body.light .page .editForm h3, body.light .sheet .editForm h3 { color: var(--text2); }
body.light .page .orderBox, body.light .sheet .orderBox { background: var(--panel); }
body.light .page .orderBlock h3, body.light .sheet .orderBlock h3 { color: var(--text2); }
body.light .page .cartBadge, body.light .sheet .cartBadge { color: var(--text2); }
body.light .page .applyIntro .sub, body.light .sheet .applyIntro .sub { color: var(--text2); }
body.light .page .applyChoice > div, body.light .sheet .applyChoice > div { background: var(--panel); }
body.light .page .creditForm legend, body.light .sheet .creditForm legend { color: var(--text2); }
body.light .page .repeatItem, body.light .sheet .repeatItem { background: var(--panel); }
body.light .page .repeatItem .rhead, body.light .sheet .repeatItem .rhead { color: var(--text2); }
body.light .page .sigHead, body.light .sheet .sigHead { color: var(--text2); }
body.light .page .recordBox, body.light .sheet .recordBox { color: var(--text2); }
body.light .page .liability b, body.light .sheet .liability b { color: var(--text2); }
body.light .page .appCard, body.light .sheet .appCard { background: var(--panel); }
body.light .page .linkDiagram, body.light .sheet .linkDiagram { background: var(--panel); }
body.light .page .customPrice b, body.light .sheet .customPrice b { color: var(--text2); }
body.light .page .customForm fieldset.axle, body.light .sheet .customForm fieldset.axle { background: var(--panel); }
body.light .page .adjRow, body.light .sheet .adjRow { color: var(--text2); }
body.light .page .nonRefund label.check, body.light .sheet .nonRefund label.check { color: var(--text2); }
body.light .page .spThumb, body.light .sheet .spThumb { background: var(--panel); }
body.light .page .homeHeroImg, body.light .sheet .homeHeroImg { background: var(--panel); }
body.light .page .homeHeroText p, body.light .sheet .homeHeroText p { color: var(--text2); }
body.light .page .homeAbout p, body.light .sheet .homeAbout p { color: var(--text2); }
body.light .page .homeCard p, body.light .sheet .homeCard p { color: var(--text2); }
body.light .inv th { background: #f6f9fb; color: var(--muted); border-bottom: 1px solid var(--line); }
body.light .inv td { border-bottom-color: var(--line); }
body.light .inv tr.invRow:hover td { background: #f1f7fa; }
body.light .inv tr.groupRow td { background: #eef4f7; color: var(--text); }
body.light .inv tr.groupRow .gName { color: var(--text); }
body.light .inv td.go { color: var(--muted); }
body.light .tablePanel { background: #fff; }

/* ---- light sign-in + dealer application pages ---- */
.login, .apply {
  --bg: #f3f6f8; --panel: #ffffff; --panel2: #f6f9fb; --line: #dfe7eb; --line2: #cfdbe1;
  --text: #0e1c23; --text2: #3c5560; --muted: #6a818b; --cyan: #0b9fcf; --cyan2: #0b8ab8;
  background: #f3f6f8; color: var(--text);
}
.login .loginHero, .apply .loginHero { background: linear-gradient(180deg, #f3f6f8e6, #f3f6f8 60%), url('img/hero-e92-e46.jpg') center 55% / cover no-repeat; }
.login .loginCard, .apply .loginCard { background: #ffffff; border-color: var(--line); box-shadow: 0 2px 6px #0e1c230f, 0 12px 32px #0e1c2314; color: var(--text); }
.login input, .login select, .login textarea, .apply input, .apply select, .apply textarea { background: #ffffff; color: var(--text); border: 1px solid var(--line2); }
.login input::placeholder, .apply input::placeholder, .apply textarea::placeholder { color: #9aacb4; }
.login .logoImg, .apply .logoImg { filter: invert(1) brightness(.15); }
.login .tagline, .apply .tagline { color: var(--muted); }
.apply .applyIntro .sub { color: var(--text2); }
.apply .applyChoice > div { background: #ffffff; border-color: var(--line); }
.apply .creditForm legend { color: var(--text); }
.login label, .apply label { color: var(--text2); }
.login .tagline, .apply .tagline { color: var(--text2); }
.login .ghost, .apply .ghost { color: var(--text2); }
.login .iconBtn, .apply .iconBtn { color: var(--text2); }
.login label, .apply label { color: var(--text2); }
.login input, .apply input, .login select, .apply select, .login textarea, .apply textarea { color: var(--text2); background: var(--panel); }
.login option, .apply option { background: var(--panel); }
.login label.check, .apply label.check { color: var(--text2); }
.login .formMsg, .apply .formMsg { color: var(--text2); }
.login .loginCard, .apply .loginCard { background: var(--panel); }
.login .liveSub, .apply .liveSub { color: var(--text2); }
.login footer, .apply footer { color: var(--text2); }
.login .panel, .apply .panel { background: var(--panel); }
.login .titleBlock p, .apply .titleBlock p { color: var(--text2); }
.login .search, .apply .search { color: var(--text2); }
.login .search > span, .apply .search > span { color: var(--text2); }
.login .lineTab, .apply .lineTab { color: var(--text2); }
.login .tile, .apply .tile { background: var(--panel); }
.login .tile small, .apply .tile small { color: var(--text2); }
.login .t-cyan b, .apply .t-cyan b { color: var(--text2); }
.login .t-green b, .apply .t-green b { color: var(--text2); }
.login .freightPick > b, .apply .freightPick > b { color: var(--text2); }
.login .freightPick label.check, .apply .freightPick label.check { background: var(--panel); }
.login .freightPick .fAmt, .apply .freightPick .fAmt { color: var(--text2); }
.login .payBox, .apply .payBox { background: var(--panel); }
.login .payTag.other, .apply .payTag.other { color: var(--text2); }
.login .doFilter, .apply .doFilter { background: var(--panel); }
.login .inv th, .apply .inv th { color: var(--text2); }
.login .inv td.go, .apply .inv td.go { color: var(--text2); }
.login .groupRow .gName, .apply .groupRow .gName { color: var(--text2); }
.login .tableFoot, .apply .tableFoot { color: var(--text2); }
.login .pager button, .apply .pager button { color: var(--text2); }
.login .pager button.on, .apply .pager button.on { color: var(--text2); }
.login .qa, .apply .qa { color: var(--text2); }
.login .qa small, .apply .qa small { color: var(--text2); }
.login .qa .ic.chev, .apply .qa .ic.chev { color: var(--text2); }
.login .act, .apply .act { color: var(--text2); background: var(--panel); }
.login .act small, .apply .act small { color: var(--text2); }
.login .sheetClose, .apply .sheetClose { color: var(--text2); }
.login .kitMeta, .apply .kitMeta { color: var(--text2); }
.login .stats, .apply .stats { background: var(--panel); }
.login .stats small, .apply .stats small { color: var(--text2); }
.login .prices div, .apply .prices div { background: var(--panel); }
.login .staffBox, .apply .staffBox { color: var(--text2); background: var(--panel); }
.login .sheetSection h3, .apply .sheetSection h3 { color: var(--text2); }
.login dt, .apply dt { color: var(--text2); }
.login .camHint, .apply .camHint { color: var(--text2); }
.login .manual label, .apply .manual label { color: var(--text2); }
.login .list th, .apply .list th { color: var(--text2); }
.login .skeleton, .apply .skeleton { background: var(--panel); }
.login .topbar, .apply .topbar { background: var(--panel); }
.login .tile small, .apply .tile small { color: var(--text2); }
.login .editForm h3, .apply .editForm h3 { color: var(--text2); }
.login .orderBox, .apply .orderBox { background: var(--panel); }
.login .orderBlock h3, .apply .orderBlock h3 { color: var(--text2); }
.login .cartBadge, .apply .cartBadge { color: var(--text2); }
.login .applyIntro .sub, .apply .applyIntro .sub { color: var(--text2); }
.login .applyChoice > div, .apply .applyChoice > div { background: var(--panel); }
.login .creditForm legend, .apply .creditForm legend { color: var(--text2); }
.login .repeatItem, .apply .repeatItem { background: var(--panel); }
.login .repeatItem .rhead, .apply .repeatItem .rhead { color: var(--text2); }
.login .sigHead, .apply .sigHead { color: var(--text2); }
.login .recordBox, .apply .recordBox { color: var(--text2); }
.login .liability b, .apply .liability b { color: var(--text2); }
.login .appCard, .apply .appCard { background: var(--panel); }
.login .customPanel, .apply .customPanel { background: var(--panel); }
.login .linkDiagram, .apply .linkDiagram { background: var(--panel); }
.login .customPrice b, .apply .customPrice b { color: var(--text2); }
.login .customForm fieldset.axle, .apply .customForm fieldset.axle { background: var(--panel); }
.login .adjRow, .apply .adjRow { color: var(--text2); }
.login .nonRefund label.check, .apply .nonRefund label.check { color: var(--text2); }
.login .spThumb, .apply .spThumb { background: var(--panel); }
.login .homeHeroImg, .apply .homeHeroImg { background: var(--panel); }
.login .homeHeroText p, .apply .homeHeroText p { color: var(--text2); }
.login .homeAbout p, .apply .homeAbout p { color: var(--text2); }
.login .homeCard p, .apply .homeCard p { color: var(--text2); }
/* typed text is always near-black on white fields */
.login input, .login select, .login textarea, .apply input, .apply select, .apply textarea,
body.light .page input, body.light .page select, body.light .page textarea, body.light .sheet input, body.light .sheet select, body.light .sheet textarea { color: #0e1c23 !important; }

.fitsLine { font-size: 12px; color: var(--muted, #6b7d86); margin-top: 2px; }
.login .qpLink { color: var(--cyan); }
.login .formMsg.error { color: #d93645; }

/* bulk edit */
.bulkTools { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 8px; }
.bulkTools select { width: auto; flex: 0 0 auto; min-width: 160px; }
.bulkTools input[type=search] { flex: 1 1 220px; min-width: 180px; width: auto; }
.bulkHint { font-size: 13px; margin: 0 0 10px; }
.bulkTable td { vertical-align: middle; }
.bulkTable td.num { width: 1%; }
.bulkTable th, .bulkTable td { padding-left: 6px; padding-right: 6px; }
.bulkTable .bulkIn { width: 62px; padding: 6px 7px; font-size: 14px; text-align: right; }
.bulkTable td.money .bulkIn { width: 84px; }
.bulkTable .bulkIn.dirty { background: #fff6d6; border-color: var(--amber, #f2b233); color: #1b1b1b; font-weight: 700; }
.bulkTable tr.inactive td { opacity: .55; }
.bulkTable .kitCell { min-width: 180px; font-size: 14px; }
.bulkTable .st { white-space: nowrap; font-size: 12px; }
.bulkTable .pn { color: var(--cyan, #0aa4c8); white-space: nowrap; }
.ruleTag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .3px; padding: 1px 6px; border-radius: 99px; background: #e6f2f7; color: #24607a; margin-left: 4px; }
.ruleTag.own { background: #f4ecdf; color: #7a5a24; }
.bulkBar { position: sticky; bottom: 12px; margin-top: 12px; display: flex; gap: 10px; align-items: center; justify-content: flex-end; padding: 10px 14px; border-radius: 12px; background: var(--panel, #fff); box-shadow: 0 6px 24px rgba(0,0,0,.18); border: 1px solid var(--line, #dde5e9); z-index: 5; }
.bulkBar #bulkCount { margin-right: auto; font-weight: 700; }

/* spacer box labels */
.labelBtn { width: 100%; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; padding: 12px; }
.labelBtn .ic { font-size: 20px; }
.spHead h2 { margin-top: 8px; }
.spFix { margin: 10px 0; font-size: 14px; }
.spFix summary { cursor: pointer; color: var(--cyan); }
.spFix .grid2 { margin: 10px 0; }
.spSeg { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 12px 0; border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; }
.spSeg button { border: 0; padding: 12px; font-weight: 700; background: transparent; color: var(--text); }
.spSeg button.on { background: var(--cyan); color: #fff; }
.spH { font-size: 13px; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px; }
.spNote { margin: 0 0 8px; font-size: 14px; }
.spNote.warn { color: #b7791f; }
.spRow { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 12px; margin-bottom: 8px; background: var(--panel2); }
.spRow.on { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan) inset; }
.spPick { flex: 1; display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.spPick input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--cyan); flex: 0 0 auto; }
.spPick span { display: grid; gap: 2px; }
.spPick small { color: var(--muted); font-size: 12px; }
.spQty { display: flex; align-items: center; gap: 4px; }
.spQty button { width: 36px; height: 40px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel); color: var(--text); font-size: 20px; font-weight: 700; }
.spQty input { width: 52px; height: 40px; text-align: center; padding: 4px; font-size: 16px; font-weight: 700; }
.spSave { width: 100%; margin-top: 12px; }
.spSpecific { margin: 10px 0 0; font-size: 13px; }
.spPick span > b { color: var(--text); font-size: 15px; }

.srOnly { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; opacity: 0; }
label.labelBtn { cursor: pointer; border: 1px solid var(--line2); border-radius: 12px; color: var(--text); background: var(--panel); }
label.labelBtn.busy { opacity: .5; pointer-events: none; }

.labelStatus { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 26px 10px; }
.labelStatus b { font-size: 18px; }
.labelStatus small { color: var(--muted); }
.labelStatus.error b { color: #d93645; }
.labelStatus .labelBtn { width: 100%; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--line2); border-top-color: var(--cyan); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.spLinked { color: var(--cyan) !important; }
.linkish { border: 0; background: none; color: var(--muted); text-decoration: underline; font-size: 12px; padding: 0 0 0 6px; cursor: pointer; }
.spShare { display: grid; gap: 8px; margin: 10px 0; padding: 12px; border-radius: 12px; background: var(--panel2); border: 1px dashed var(--cyan); }
.spShare .spSeg { margin: 0; }
.spShare small { color: var(--muted); }

/* dealer GST labels */
th .thSub { display: block; font-size: 10px; font-weight: 600; letter-spacing: .03em; text-transform: none; color: var(--muted, #6b7d86); margin-top: 1px; }
.gstNote { font-size: 12px; color: var(--muted, #6b7d86); margin: -4px 0 8px; text-align: right; }

/* spacers: centre bore */
.spSpec { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted, #6b7d86); margin: 3px 0 4px; }
.spSpec b { color: var(--text, inherit); font-weight: 700; }
.spGroup { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 18px 2px 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line, #dde5e9); }
.spGroup:first-child { margin-top: 4px; }
.spGroup b { font-size: 15px; } .spGroup span { font-weight: 600; } .spGroup small { color: var(--muted, #6b7d86); }
.spFit b { font-weight: 700; } .spWarn { color: var(--amber, #c98a00); font-weight: 700; }

/* Exhausts: locked 2nd tier for trade dealers */
.tierLock { position: relative; display: inline-flex; align-items: center; gap: 5px; color: var(--muted, #7a8794); cursor: help; font-size: 12px; font-weight: 600; letter-spacing: .04em; border: 1px dashed currentColor; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.tierLock .ic { width: 13px; height: 13px; }
th .tierLock { border: 0; padding: 0; font-size: inherit; }
.tipBox { position: fixed; z-index: 1000; max-width: 240px; background: #0c1a24; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; line-height: 1.35;
  padding: 8px 11px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.25); text-align: center; pointer-events: none; white-space: pre-line; }
.exKit .spVars td:last-child { white-space: nowrap; }

.exStockEdit { display: flex; flex-direction: column; gap: 6px; }
.exStockEdit input { width: 64px; }
.exOnHand { font-size: 13px; }

/* product picture zoom: hover preview + full-screen view */
img.spThumb[src] { cursor: zoom-in; }
.imgPeek { position: fixed; z-index: 9000; width: 420px; max-width: 46vw; padding: 6px; background: #fff; border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0,0,0,.35); pointer-events: none; opacity: 0; transform: scale(.96); transition: opacity .12s, transform .12s; }
.imgPeek.on { opacity: 1; transform: none; }
.imgPeek img { display: block; width: 100%; height: auto; border-radius: 8px; }
.imgBox { position: fixed; inset: 0; z-index: 9500; background: rgba(5,10,14,.88); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.imgBox img { max-width: min(1100px, 100%); max-height: 100%; border-radius: 10px; background: #fff; }
.imgBoxX { position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }

.spTag.exWarranty { display: inline-flex; align-items: center; gap: 4px; color: var(--cyan, #00aaff); border-color: currentColor; font-weight: 600; }
.spTag.exWarranty svg { width: 13px; height: 13px; }

/* Part Lookup: other products (spacers, exhausts) for the searched car */
.lookupMore .panelHead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.lmGroup { margin-top: 12px; }
.lmGroup h3 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; display: flex; gap: 10px; align-items: baseline; }
.lmGroup h3 small { font-weight: 400; letter-spacing: 0; text-transform: none; opacity: .7; }
.lmItem { width: 100%; display: grid; grid-template-columns: 56px 1fr auto 18px; gap: 12px; align-items: center; text-align: left; padding: 8px 10px; margin: 0 0 6px; border: 1px solid var(--line, #dde3ea); border-radius: 10px; background: transparent; color: inherit; cursor: pointer; font: inherit; }
.lmItem:hover { border-color: var(--cyan, #00aaff); }
.lmItem .spThumb { width: 56px; height: 56px; }
.lmText b { display: block; font-size: 14px; }
.lmText small { display: block; opacity: .7; font-size: 12.5px; margin-top: 2px; }
.lmPrice { text-align: right; font-weight: 700; color: var(--cyan, #00aaff); white-space: nowrap; }
.lmPrice small { display: block; font-weight: 400; font-size: 11px; color: var(--muted, #8aa); }
.lmItem svg { width: 16px; height: 16px; opacity: .5; }
@media (max-width: 700px) { .lmItem { grid-template-columns: 44px 1fr 16px; } .lmItem .spThumb { width: 44px; height: 44px; } .lmPrice { grid-column: 2; text-align: left; } }

/* v3.23 dealer extras */
.homeFinder { display: grid; gap: 12px; }
.finderHead { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.finderHead h2 { margin: 0; display: flex; align-items: center; gap: 8px; }
.finderHead small { color: var(--muted, #7a8794); }
.finderRow { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 12px; align-items: end; }
@media (max-width: 640px) { .finderRow { grid-template-columns: 1fr; } }
.tsBox { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(0,170,220,.07); border: 1px solid rgba(0,170,220,.25); display: grid; gap: 6px; }
.tsBox.compact { margin: 4px 0 10px; max-width: 560px; }
.tsBox.done { grid-template-columns: auto 1fr; align-items: center; gap: 10px; background: rgba(20,180,110,.08); border-color: rgba(20,180,110,.35); }
.tsBox.done .ic { width: 22px; height: 22px; color: #14b46e; }
.tsBox.done div { display: grid; }
.tsHead { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.tsHead b { display: inline-flex; align-items: center; gap: 6px; }
.tsHead .ic { width: 14px; height: 14px; }
.tsBar { height: 8px; border-radius: 999px; background: rgba(0,0,0,.08); overflow: hidden; }
.tsBar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #22c3ee, #0a8fc4); transition: width .4s; }
.tsBox small { color: var(--muted, #7a8794); }
.alertBox { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; background: rgba(240,160,0,.08); border: 1px solid rgba(240,160,0,.3); margin: 10px 0; }
.alertBox span { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.alertBox .ic { width: 16px; height: 16px; }
.sellInfo .sellPoints { margin: 0 0 10px; padding-left: 18px; }
.sellLinks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.sellLinks .ghost { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.sellLinks .ic { width: 15px; height: 15px; }
.shipDirect { margin: 14px 0 4px; display: grid; gap: 10px; }
.quoteBox h2 { display: flex; align-items: center; gap: 8px; }
.quoteBox input { min-width: 0; }
.quoteBox td input:not([type=number]) { width: 100%; }
.quoteFoot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.quoteTotal b { font-size: 20px; margin-left: 6px; }
.xeroAcct { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; margin-right: auto; }
.formActions .ic { width: 15px; height: 15px; vertical-align: -2px; }

/* v3.24 Xero quoting */
.qCustWrap { position: relative; }
.xLinked { color: #14b46e; font-weight: 600; }
.qHits { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; background: var(--panel, #fff); border: 1px solid var(--line, #dfe5ea); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.15); max-height: 280px; overflow: auto; }
.qHits button { display: grid; width: 100%; text-align: left; padding: 9px 12px; background: none; border: 0; border-bottom: 1px solid var(--line, #eef1f4); cursor: pointer; font: inherit; color: inherit; }
.qHits button:hover { background: rgba(0,170,220,.08); }
.qHits small { color: var(--muted, #7a8794); }
.qHits .qNew { color: var(--cyan, #0a8fc4); font-weight: 600; }
.qItems { margin-top: 12px; border: 1px solid var(--line, #dfe5ea); border-radius: 12px; padding: 12px; }
.qItems h3 { margin: 0; }
.qItems input[type=search] { width: 100%; margin: 8px 0; }
.qItemList { display: grid; gap: 6px; max-height: 320px; overflow: auto; }
.qItemList button { display: flex; justify-content: space-between; gap: 10px; text-align: left; padding: 9px 12px; border: 1px solid var(--line, #e5eaee); border-radius: 9px; background: none; cursor: pointer; font: inherit; color: inherit; }
.qItemList button:hover { border-color: var(--cyan, #0a8fc4); }
.qItemList span { display: grid; } .qItemList small { color: var(--muted, #7a8794); }
.xItemTag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--cyan, #0a8fc4); margin-bottom: 3px; }
.xSaved { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(20,180,110,.08); border: 1px solid rgba(20,180,110,.35); margin: 10px 0; }
.xSaved .ic { width: 18px; height: 18px; color: #14b46e; }
.xEmail { margin-top: 12px; }
.xConn { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; flex-wrap: wrap; }
.xConn .ic { width: 16px; height: 16px; color: #14b46e; }
.linkBtn { background: none; border: 0; color: var(--cyan, #0a8fc4); cursor: pointer; text-decoration: underline; font: inherit; padding: 0 0 0 6px; }
.soonTag { font-size: 12px; font-weight: 700; letter-spacing: .05em; color: var(--muted, #7a8794); border: 1px dashed currentColor; border-radius: 999px; padding: 3px 9px; }
.xqActs { display: flex; flex-wrap: wrap; gap: 6px; }
.xqActs a { text-decoration: none; }
.xqSt { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(0,0,0,.06); }
.xq-sent { background: rgba(0,170,220,.12); color: #0a8fc4; } .xq-accepted, .xq-invoiced { background: rgba(20,180,110,.12); color: #0f9a5c; } .xq-declined { background: rgba(220,60,60,.1); color: #c23b3b; }
.xeroPanel p { margin-top: 0; }
.xOffer { padding: 10px 12px; border-radius: 10px; background: rgba(0,170,220,.07); border: 1px solid rgba(0,170,220,.25); margin: 8px 0 10px; }
.qLineWrap { position: relative; }
.qLineWrap .qHits { min-width: 320px; }
.qhRow { display: flex; justify-content: space-between; gap: 12px; }
.xPicked { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.quoteBox td textarea { width: 100%; resize: vertical; font: inherit; }

/* v3.27 notifications, freight, finder */
.navBadge { display: inline-flex; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 999px; background: #e5383b; color: #fff; font-size: 11px; font-weight: 800; align-items: center; justify-content: center; vertical-align: 1px; }
.notifyPop { position: fixed; right: 18px; bottom: 18px; z-index: 900; width: min(360px, calc(100vw - 32px)); background: #0c1a24; color: #fff; border-radius: 14px; padding: 14px 16px 14px; box-shadow: 0 16px 40px rgba(0,0,0,.3); border-left: 4px solid #e5383b; transform: translateY(140%); opacity: 0; transition: transform .25s, opacity .25s; }
.notifyPop.show { transform: none; opacity: 1; }
.notifyPop b { display: flex; align-items: center; gap: 6px; } .notifyPop .ic { width: 16px; height: 16px; }
.notifyPop ul { margin: 8px 0 10px; padding-left: 18px; font-size: 14px; }
.notifyPop .npClose { position: absolute; top: 6px; right: 8px; background: none; border: 0; color: #fff; font-size: 20px; cursor: pointer; }
.freightCalc { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: rgba(0,170,220,.07); border: 1px solid rgba(0,170,220,.25); }
.freightCalc .ic { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.finderRow.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .finderRow.two { grid-template-columns: 1fr; } }
.fdResults { display: grid; gap: 14px; }
.fdGroup h3 { margin: 4px 0 8px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #7a8794); }
.fdGroup h3 small { background: rgba(0,0,0,.06); border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
.fdItem { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; margin-bottom: 6px; border: 1px solid var(--line, #e3e8ec); border-radius: 10px; background: none; cursor: pointer; font: inherit; color: inherit; }
.fdItem:hover { border-color: var(--cyan, #0a8fc4); }
.fdItem > span:first-child { flex: 1; display: grid; } .fdItem small { color: var(--muted, #7a8794); }
.fdPrice { display: grid; text-align: right; font-weight: 700; color: var(--cyan, #0a8fc4); white-space: nowrap; } .fdPrice small { font-weight: 500; }
.fdItem .ic { width: 16px; height: 16px; opacity: .5; }
