/* Z10 Management - the same colours and type as the Z10 Safety website */
:root {
  --navy: #00354d; --navy-dark: #00283a; --teal: #00737a; --teal-dark: #005c62; --green: #007a33; --green-dark: #00632a;
  --ink: #1d1d1b; --muted: #4f5b60; --line: #dbe3e6; --line-soft: #edf1f2; --soft: #f4f7f8; --red: #b42318;
  --radius: 8px; --font: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* text sizes: about 6% smaller than at first (Jeremy, 26 Oct 2026: "a small font reduction"), none under 12px */
body { margin: 0; background: var(--soft); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.45; }
/* on a computer (mouse or trackpad), no rubber-band bounce at the edges of the page, up and down or side to side */
@media (hover: hover) and (pointer: fine) {
  html, body { overscroll-behavior: none; }
}
a { color: var(--teal); } a:hover { color: var(--navy); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid #7fd3d8; outline-offset: 1px; }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---- sign in ------------------------------------------------------------------------------------------ */
.signin { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 16px; background: var(--navy); }
.signin__box { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 18px; }
.signin form { background: #fff; border-radius: 14px; padding: 34px 30px 28px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); display: flex; flex-direction: column; gap: 16px; }
.signin__head { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 4px; text-align: center; }
.signin__head img { width: 104px; height: auto; }
.signin h1 { margin: 6px 0 0; font-size: 24.5px; font-weight: 900; color: var(--navy); }
.signin__head p { margin: 0; color: var(--muted); }
.signin .msg { margin: 0; padding: 10px 12px; border-radius: 8px; font-size: 13.5px; background: #fdecea; color: #8a1c14; }
.signin .msg.ok { background: #e4f3e8; color: #005f27; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--teal); font-weight: 700; font-size: 13px; cursor: pointer; text-decoration: underline; }

/* ---- fields and buttons ----------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field .label { font-size: 13px; font-weight: 800; color: var(--navy); }
.field input, .field select, .field textarea, .input { min-height: 44px; padding: 8px 10px; border: 1px solid #b9c7cc; border-radius: 8px; background: #fff; font-size: 14px; width: 100%; }
.field textarea { min-height: 90px; resize: vertical; line-height: 1.45; }
.field input[readonly] { background: var(--soft); border-color: var(--line); color: #3d474b; }
.hint { font-size: 12px; color: var(--muted); line-height: 1.45; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 8px 16px; border-radius: 8px; border: 1px solid #c5d2d7; background: #fff; color: var(--navy); font-size: 13.5px; font-weight: 800; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #f0f5f6; color: var(--navy); }
.btn svg.i { width: 18px; height: 18px; stroke-width: 2.2; }
.btn--primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); color: #fff; }
.btn--danger { border-color: var(--red); color: var(--red); }
.btn--danger:hover { background: #fdecea; color: var(--red); }
.btn--danger-solid { background: var(--red); border-color: var(--red); color: #fff; }
.btn--danger-solid:hover { background: #912018; color: #fff; }
.btn--small { min-height: 34px; padding: 5px 12px; font-size: 12.5px; }
.btn--block { width: 100%; min-height: 48px; font-size: 15px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.is-busy { opacity: .7; cursor: progress; }

/* ---- the frame: top bar, sidebar, content --------------------------------------------------------------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 10px 20px; background: var(--navy); color: #fff; }
.menu-btn { display: none; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 8px; background: transparent; color: #fff; cursor: pointer; }
.menu-btn:hover { background: rgba(255, 255, 255, .12); }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 800; font-size: 17px; white-space: nowrap; }
.brand:hover { color: #fff; }
.brand__tile { width: 42px; height: 42px; border-radius: 8px; background: #fff; display: grid; place-items: center; flex: none; }
.brand__tile img { width: 32px; height: auto; display: block; }
.search { flex: 1 1 280px; max-width: 560px; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 8px; background: rgba(255, 255, 255, .12); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; font-size: 14px; outline: none; }
.search input::placeholder { color: rgba(255, 255, 255, .8); }
.search:focus-within { outline: 3px solid #7fd3d8; outline-offset: 1px; }
.avatar { margin-left: auto; width: 42px; height: 42px; flex: none; display: grid; place-items: center; border: 2px solid rgba(255, 255, 255, .6); border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; cursor: pointer; }
.avatar:hover { background: var(--teal-dark); }
.layout { display: flex; align-items: flex-start; min-height: calc(100vh - 62px); }
.side { position: sticky; top: 62px; flex: 0 0 250px; align-self: stretch; display: flex; flex-direction: column; gap: 3px; padding: 18px 12px; background: #fff; border-right: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--navy); font-size: 14px; font-weight: 700; text-align: left; text-decoration: none; cursor: pointer; }
.nav:hover { background: #f0f5f6; color: var(--navy); }
.nav.is-active { background: #e3f1f2; box-shadow: inset 3px 0 0 var(--green); }
.badge { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 11px; background: var(--green); color: #fff; font-size: 12px; font-weight: 800; text-align: center; }
.side__foot { margin-top: auto; padding: 14px 12px 0; border-top: 1px solid #e6ecee; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.side__foot strong { color: var(--navy); font-size: 14px; }
.side__foot .nav { padding-left: 0; min-height: 38px; margin-top: 4px; }
.main { flex: 1 1 auto; min-width: 0; padding: 26px 32px 48px; }
.scrim { display: none; }

/* ---- page heads ----------------------------------------------------------------------------------------- */
.crumb { margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.crumb a { font-weight: 700; }
.head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px 16px; margin-bottom: 18px; }
.head h1 { margin: 0; font-size: 27.5px; font-weight: 900; line-height: 1.15; color: var(--navy); display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; }
.head p { margin: 4px 0 0; color: var(--muted); }
.head--record { align-items: flex-start; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tools .spacer { flex: 1; }
.fchip { min-height: 36px; padding: 6px 14px; border: 1px solid #c5d2d7; border-radius: 18px; background: #fff; color: var(--navy); font-size: 13px; font-weight: 700; cursor: pointer; }
.fchip:hover { background: #f0f5f6; }
.fchip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.select { min-height: 38px; padding: 6px 10px; border: 1px solid #c5d2d7; border-radius: 8px; background: #fff; font-size: 13px; }
.tabs { display: flex; border-bottom: 2px solid var(--line); margin-bottom: 18px; }
.tab { flex: 0 1 240px; min-height: 48px; padding: 10px 20px; margin-bottom: -2px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); font-size: 15px; font-weight: 800; cursor: pointer; }
.tab:hover { color: var(--navy); }
.tab[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--green); }

/* ---- status chips ---------------------------------------------------------------------------------- */
.chip { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 800; white-space: nowrap; vertical-align: middle; }
.chip--new { background: #e1f1f3; color: #00585e; }
.chip--good { background: #e4f3e8; color: #005f27; }
.chip--strong { background: var(--green); color: #fff; }
.chip--muted { background: #eceff1; color: var(--muted); }
.chip--draft { background: #fff1d6; color: #7a4300; }
.chip--bad { background: #fdecea; color: #a3221a; }
/* a chip that's a dropdown (Staff accounts: Access, Active / Disabled): the same round pill, with a small arrow */
.chip-select { appearance: none; -webkit-appearance: none; field-sizing: content; border: 0; font-family: inherit; line-height: 1.45; cursor: pointer; padding-right: 24px;
  background-repeat: no-repeat; background-position: right 8px center; background-size: 9px 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 6'%3E%3Cpath d='M1 1l3.5 3.5L8 1' fill='none' stroke='%23005f27' stroke-width='1.6'/%3E%3C/svg%3E"); }
.chip-select.chip--muted { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 6'%3E%3Cpath d='M1 1l3.5 3.5L8 1' fill='none' stroke='%234f5b60' stroke-width='1.6'/%3E%3C/svg%3E"); }
.chip-select.chip--new { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 6'%3E%3Cpath d='M1 1l3.5 3.5L8 1' fill='none' stroke='%2300585e' stroke-width='1.6'/%3E%3C/svg%3E"); }
.chip-select:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.head h1 .chip { font-size: 12px; }

/* ---- tables ---------------------------------------------------------------------------------------------- */
.tablebox { position: relative; overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { padding: 12px 14px; border-bottom: 1px solid var(--line); background: #f8fafb; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #f6fafb; }
.table .r { text-align: right; } .table .mid { text-align: center; }
.c-check { width: 40px; }
.c-check input, .tick { width: 18px; height: 18px; accent-color: var(--navy); cursor: pointer; }
.when { white-space: nowrap; color: var(--muted); }
.rowlink { font-weight: 800; color: var(--navy); text-decoration: none; }
.rowlink:hover { color: var(--navy); text-decoration: underline; }
.sub { margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.thumbs { display: flex; align-items: center; gap: 6px; }
.thumb { width: 34px; height: 26px; object-fit: contain; border: 1px solid #e1e8eb; border-radius: 4px; background: #fff; }
.count { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.money { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.empty { padding: 44px 20px; text-align: center; color: var(--muted); }
.loading { padding: 44px 20px; text-align: center; color: var(--muted); }

/* ---- record pages -------------------------------------------------------------------------------------- */
.grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; }
.col { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; min-width: 0; }
.card h2 { margin: 0 0 14px; font-size: 17px; font-weight: 900; color: var(--navy); }
.card h3 { margin: 16px 0 4px; font-size: 12.5px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; color: var(--teal); }
.card h3:first-of-type { margin-top: 0; }
.card > p { margin: 0 0 14px; color: var(--muted); line-height: 1.5; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 20px; align-items: start; }
.dl { display: grid; grid-template-columns: 160px minmax(0, 1fr); margin: 0; }
.dl dt { padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: 13.5px; font-weight: 800; color: var(--navy); }
.dl dd { margin: 0; padding: 9px 0; border-top: 1px solid var(--line-soft); overflow-wrap: anywhere; }
.dl dt:first-of-type, .dl dd:first-of-type { border-top: 0; }
.dl .msg { white-space: pre-line; }
.none { color: var(--muted); }
.prod { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.prod:first-of-type { border-top: 0; padding-top: 0; }
.prod img { width: 72px; height: 52px; object-fit: contain; border: 1px solid #e1e8eb; border-radius: 6px; background: #fff; }
.prod .noimg { width: 72px; height: 52px; border-radius: 6px; background: #f0f3f4; }
.code { font-weight: 900; color: var(--navy); white-space: nowrap; }
.desc { margin-top: 2px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.colour { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 6px; border-radius: 14px; background: var(--soft); font-size: 12px; font-weight: 800; white-space: nowrap; }
.dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); vertical-align: middle; flex: none; }
.dot--white { background: #f4f4f1; } .dot--black { background: #1d1d1b; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; align-items: center; gap: 10px; }
.ticks svg.i { color: var(--green); stroke-width: 2.6; }
.acts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.acts li { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 12px; font-size: 13.5px; }
.acts li::before { content: ""; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--teal); }
.acts span { display: block; color: var(--muted); font-size: 12.5px; }
.inline-field { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }

/* ---- quote editor ------------------------------------------------------------------------------------ */
.steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; font-size: 12.5px; font-weight: 800; color: var(--muted); }
.steps li { display: flex; align-items: center; gap: 6px; }
.steps li + li::before { content: ""; width: 28px; height: 2px; margin-right: 6px; background: #c5d2d7; }
.steps .num { display: grid; place-items: center; width: 22px; height: 22px; border: 2px solid #c5d2d7; border-radius: 50%; font-size: 12px; }
.steps .on { color: var(--navy); }
.steps .on .num { background: var(--navy); border-color: var(--navy); color: #fff; }
.row2 { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; }
.row2 > * { flex: 1 1 340px; min-width: 0; }
.kv { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px 12px; margin: 0; }
.kv dt { font-size: 13.5px; font-weight: 800; color: var(--navy); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.lines { position: relative; overflow-x: auto; }
.lt { width: 100%; min-width: 920px; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.lt th { padding: 10px 8px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.lt td { padding: 10px 8px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.lt .r { text-align: right; }
.lt img { width: 60px; height: 44px; object-fit: contain; border: 1px solid #e1e8eb; border-radius: 6px; background: #fff; display: block; }
.lt .desc { max-width: 360px; font-size: 12px; }
.in { min-height: 38px; padding: 6px 8px; border: 1px solid #b9c7cc; border-radius: 6px; background: #fff; font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.in--qty { width: 64px; } .in--price { width: 96px; } .in--disc { width: 64px; }
.lp:empty { display: none; }
/* quote lines on a computer: every box on one line along the top of the row, whatever is under it */
@media (min-width: 801px) {
  .lt td { vertical-align: top; }
  .lt td.l-tot, .lt td.l-unit { padding-top: 19px; }
  .lt td.l-x { padding-top: 11px; }
  .lt td.l-part { padding-top: 12px; }
  .lt .select { min-height: 38px; }
  .lt td[data-label="Colour"] .colour { margin-top: 5px; }
}
.in::placeholder { color: var(--muted); opacity: 1; }
.lp { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; }
.x { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.x:hover { background: #fdecea; color: var(--red); }
.add { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 14px 0 2px; }
.add input { flex: 1 1 260px; max-width: 420px; }
.foot { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; }
.foot > .opts { flex: 1.4 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.foot > .tot { flex: 1 1 300px; min-width: 0; }
.pair { display: flex; flex-wrap: wrap; gap: 14px; }
.pair > * { flex: 1 1 160px; }
.totals { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.totals td { padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.totals td:last-child { text-align: right; font-weight: 800; white-space: nowrap; }
.totals tr.grand td { padding-top: 14px; border-bottom: 0; font-size: 19px; font-weight: 900; color: var(--navy); }
.totals .in { width: 110px; }
.saved { color: #005f27; font-size: 13px; font-weight: 800; }
.locked { padding: 12px 14px; margin-bottom: 16px; border-radius: 8px; background: #fff1d6; color: #5c3200; font-weight: 700; }

/* ---- price list ------------------------------------------------------------------------------------------ */
.mh { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 4px; }
.datebtn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border: 1px solid #c5d2d7; border-radius: 20px; background: var(--soft); color: var(--navy); font-size: 13.5px; font-weight: 800; cursor: pointer; }
.datebtn--static { cursor: default; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.filters input { flex: 1 1 240px; min-height: 40px; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 10px; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .dot { width: 14px; height: 14px; }
.pt { width: 100%; min-width: 1000px; table-layout: fixed; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.pt th { padding: 10px; border-bottom: 1px solid var(--line); background: #f8fafb; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-align: left; text-transform: uppercase; white-space: nowrap; vertical-align: bottom; }
.pt th.calc { background: #eef5f6; }
.pt td { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.pt td.calc { background: #f8fbfb; }
.pt tr:last-child td { border-bottom: 0; }
.pt .r { text-align: right; } .pt .mid { text-align: center; }
.pt th.ph { width: 62px; } .pt th.w-col { width: 70px; } .pt th.w-ty { width: 56px; } .pt th.w-money, .pt th.w-mk, .pt th.calc { width: 104px; }
/* the six price columns: one width, headings and figures centred under each other */
.pt th.r, .pt td.r { text-align: center; padding-left: 6px; padding-right: 6px; }
.pt.pt--admin { min-width: 1060px; }
/* the markup box: grey when it's the default, dark when the part has its own */
.pct--mk { gap: 4px; color: var(--muted); font-weight: 700; }
.pt .in.in--mk { width: 72px; }
/* a changed cost: the little × in its box puts the saved one back */
.revwrap { position: relative; display: inline-block; }
.pt .revwrap .in { width: 88px; }
.revwrap:has(.rev:not([hidden])) .in { padding-left: 26px; }
.rev { position: absolute; left: 5px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: #dfe7ea; color: var(--navy); font-size: 13px; font-weight: 800; line-height: 18px; text-align: center; cursor: pointer; }
.rev:hover, .rev:focus-visible { background: #c9d6db; }
.rev[hidden] { display: none; }
/* Settings > CSV file: the two buttons side by side, sharing the width */
.csvbtns { display: flex; gap: 8px; }
.csvbtns .btn { flex: 1 1 0; justify-content: center; padding-left: 10px; padding-right: 10px; white-space: nowrap; }
.in--mk.is-default, .mk-key { color: #8a979c; font-style: italic; }
.in--mk:disabled { background: #f5f7f8; border-color: #dbe3e6; }
.in--mk.is-low { border-color: var(--red); background: #fdecea; color: var(--red); font-style: normal; }
.warnnote { margin: 0 0 14px; padding: 8px 12px; border-radius: 8px; background: #fff1d6; color: #5c3200; font-weight: 700; }
.setboxes .warnnote { margin-top: -4px; }
/* Settings > Factor: the worked example, and the highest factors that keep every list at or above cost */
.setboxes .example { margin-top: -4px; padding: 8px 12px; border-radius: 8px; background: #f3f7f8; color: var(--navy); font-weight: 700; }
.minmk { display: grid; gap: 4px; margin: 12px 0 0; font-size: 12.5px; }
.minmk span { display: inline-flex; align-items: center; gap: 6px; }
.minmk .okay { color: #005f27; }
.minmk .neg { color: var(--red); font-weight: 700; }
.minmk svg.i { width: 16px; height: 16px; }
.mk-key { display: inline-block; min-width: 34px; padding: 1px 6px; border: 1px solid #c5d2d7; border-radius: 4px; background: #fff; font-size: 12px; text-align: right; }
/* the price list's Settings tab: a tab for each price list (Standard, Eyeris), each with a box for its factor,
   its discounts and its CSV file: the factor and the CSV on the left, the discounts beside them */
.subtabs { display: inline-flex; gap: 4px; margin: 0 0 18px; padding: 4px; border-radius: 10px; background: #e6edf0; }
.subtab { min-height: 40px; padding: 6px 18px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 800; cursor: pointer; }
.subtab:hover { color: var(--navy); }
.subtab[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(0, 40, 58, .16); }
/* Staff accounts: the Name, Role and Access headings sort the list (again: the other way) */
.sortbtn { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.sortbtn:hover, .sortbtn.is-on { color: var(--navy); }
.sortbtn__arrow { font-size: 10px; opacity: .55; }
.sortbtn.is-on .sortbtn__arrow { opacity: 1; }
/* Staff accounts: Users (n), with the small Show all switch beside it */
.staff-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: 4px 0 14px; }
.staff-bar__n { font-size: 15px; font-weight: 900; color: var(--navy); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--navy); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { position: relative; flex: none; width: 40px; height: 22px; border-radius: 11px; background: #c5d2d7; transition: background .15s; }
.switch__track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 40, 58, .3); transition: transform .15s; }
.switch input:checked + .switch__track { background: var(--green); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--teal); outline-offset: 2px; }
.switch--small { gap: 6px; font-size: 12.5px; color: var(--muted); }
.switch--small .switch__track { width: 28px; height: 16px; border-radius: 8px; }
.switch--small .switch__track::after { top: 2px; left: 2px; width: 12px; height: 12px; }
.switch--small input:checked + .switch__track::after { transform: translateX(12px); }
.subtab:focus-visible { outline: 3px solid var(--teal); outline-offset: 1px; }
.setboxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 1100px; }
.setboxes--book { grid-template-areas: "factor disc" "csv disc"; }
.setboxes--book .card--factor { grid-area: factor; } .setboxes--book .card--disc { grid-area: disc; } .setboxes--book .card--csv { grid-area: csv; }
@media (max-width: 900px) { .setboxes { grid-template-columns: minmax(0, 1fr); } .setboxes--book { grid-template-areas: "factor" "disc" "csv"; } }
.setboxes .card { margin: 0; display: flex; flex-direction: column; }
.setboxes .card > :last-child { margin-top: auto; padding-top: 14px; }
.setboxes .dt { width: 100%; table-layout: fixed; }
.setboxes .dt th { white-space: nowrap; }
.setboxes .dt th:first-child, .setboxes .dt td:first-child { width: 36%; }
.setboxes .dt .r { width: 32%; }
.setboxes .pct input { width: 56px; }
/* Files and Downloads: the documents by product type, a heading row for each folder with its range photo */
.table tr.dgrp td { padding: 0; background: #f3f7f8; border-bottom: 1px solid var(--line); }
.table tbody tr.dgrp:hover td { background: #f3f7f8; }
.dgrp__head { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 8px 14px; color: var(--navy); }
.dgrp__head img, .dgrp__noimg { flex: 0 0 auto; width: 72px; height: 44px; border-radius: 6px; background: #fff; }
.dgrp__head img { padding: 3px; }
.dgrp__head img { object-fit: contain; }
.dgrp__noimg { display: inline-grid; place-items: center; color: var(--muted); }
.dgrp__noimg svg.i { width: 20px; height: 20px; }
.dgrp__name { font-size: 15px; font-weight: 800; }
.dgrp__meta { color: var(--muted); font-size: 12.5px; }
/* Files: a folder's heading opens and folds it (closed to begin with) */
.dgrp__btn { width: 100%; border: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.dgrp__btn:hover { background: #e9f1f3; }
.dgrp__btn:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }
.dgrp.is-open .grp__chev { transform: rotate(45deg); }
/* Downloads: a folder's views and downloads, in their columns on its heading */
.table tr.dgrp td.dgrp__n { padding: 0 14px; color: var(--navy); font-weight: 800; vertical-align: middle; }
@media (max-width: 800px) { .table--cards tr.dgrp { padding: 0; background: #f3f7f8; } .table--cards tr.dgrp td.dgrp__n { display: inline-block; width: auto; padding: 0 0 10px 14px; } .table--cards tr.dgrp td.dgrp__rest { display: none; } }
/* device categories: a row you open and fold, with its devices under it */
.pt tr.grp td { padding: 0; background: #f3f7f8; border-bottom: 1px solid var(--line); }
.grp__btn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 8px 14px; border: 0; background: transparent; color: var(--navy); font: inherit; text-align: left; cursor: pointer; }
.grp__btn:hover { background: #e9f1f3; }
.grp__btn img { width: 46px; height: 32px; object-fit: contain; border-radius: 4px; background: #fff; }
.grp__chev { width: 10px; height: 10px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s; flex: 0 0 auto; margin-right: 2px; }
.grp.is-open .grp__chev { transform: rotate(45deg); }
.grp__name { font-size: 15px; font-weight: 800; }
.grp__meta { color: var(--muted); font-size: 12.5px; }
.grp__todo { margin-left: auto; padding: 2px 10px; border-radius: 999px; background: #fff1d6; color: #7a4100; font-size: 12px; font-weight: 800; white-space: nowrap; }
.grp__done { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: #005f27; font-size: 12px; font-weight: 800; white-space: nowrap; }
.grp__done svg.i { width: 16px; height: 16px; }
.pt img, .pt .noimg { display: block; width: 46px; height: 32px; object-fit: contain; border-radius: 4px; }
.pt .noimg { background: #f0f3f4; }
.pt .desc { font-size: 13px; }
.pt .in { width: 76px; }
.in.empty { border-color: #c77700; background: #fff8ec; }
.type { display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border-radius: 6px; font-size: 12px; font-weight: 900; text-decoration: none; cursor: help; }
.type--hw { background: #e1f1f3; color: #00585e; }
.type--acc { background: #efe9f8; color: #4d2f80; }
.cp { font-weight: 800; white-space: nowrap; }
.mg { display: block; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.mg.neg { color: var(--red); font-weight: 900; }
.dt { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.dt th { padding: 8px 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.dt td { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); }
.dt tr:last-child td { border-bottom: 0; }
.dt .r { text-align: right; width: 150px; }
.pct { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.pct input { width: 64px; min-height: 38px; padding: 6px 8px; border: 1px solid #b9c7cc; border-radius: 6px; text-align: right; }
.lname { font-weight: 900; color: var(--navy); }
.lsub { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.cardfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.cardfoot .spacer { flex: 1; }
.status { font-size: 13px; font-weight: 800; }
.status--dirty { color: #8a4b00; } .status--ok { color: #005f27; }

/* ---- settings -------------------------------------------------------------------------------------------- */
.ch { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.ch h2 { margin: 0; }
.ch p { margin: 4px 0 0; max-width: 640px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.formgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px 20px; }
.span2 { grid-column: 1 / -1; }
.sw { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 14px 4px 6px; border: 1px solid #c5d2d7; border-radius: 24px; background: #fff; color: var(--navy); font-size: 14px; font-weight: 800; cursor: pointer; }
.sw .track { position: relative; flex: none; width: 44px; height: 26px; border-radius: 13px; background: #b9c7cc; }
.sw .knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: left .15s; }
.sw[aria-checked="true"] .track { background: var(--green); }
.sw[aria-checked="true"] .knob { left: 21px; }
.secret { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; }
.secret--set { color: #005f27; } .secret--unset { color: #8a4b00; }
.secret svg.i { width: 16px; height: 16px; }
/* a tick inside a box (Settings > Email's From address: a confirmed sender in Mailjet), left of the list's own arrow */
.role-super { display: inline-flex; align-items: center; gap: 5px; }
.role-super svg.i { width: 13px; height: 13px; }
.infield { position: relative; display: block; }
.infield input { padding-right: 58px; }
.infield__tick { position: absolute; top: 50%; right: 32px; display: none; transform: translateY(-50%); color: #00873a; pointer-events: none; }
.infield.is-ok .infield__tick { display: flex; }
.infield__tick svg.i { width: 20px; height: 20px; stroke-width: 2.6; }
.secret[hidden] { display: none; }
.addrow { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); align-items: end; gap: 12px; margin-top: 14px; padding: 16px; border-radius: 8px; background: var(--soft); }
.you { color: var(--muted); font-size: 12px; font-weight: 700; }

/* ---- pop-ups ------------------------------------------------------------------------------------------- */
.overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(0, 30, 44, .6); }
.dialog { width: min(470px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 24px; border-radius: 12px; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.dialog h2 { margin: 0 0 8px; font-size: 19.5px; font-weight: 900; color: var(--navy); }
.dialog p { margin: 0 0 18px; color: #3d474b; line-height: 1.5; }
.dialog .row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.dialog p.dialog__sub { display: flex; align-items: center; gap: 8px; margin: 4px 0 18px; padding: 10px 12px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); color: var(--navy); overflow-wrap: anywhere; }
.dialog__sub svg.i { flex: none; width: 18px; height: 18px; color: var(--teal); }
.dialog p.dialog__lead { margin: 0 0 8px; color: var(--muted); }
.dialog .field { margin-bottom: 14px; }
.pv { width: min(1120px, 100%); height: calc(100vh - 32px); display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.overlay--pv { background: rgba(0, 30, 44, .72); }
.pv__bar { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 18px; background: var(--navy); }
.pv__title { flex: 1; min-width: 0; margin: 0; overflow: hidden; color: #fff; font-size: 16px; font-weight: 800; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.pv__btn { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 6px; background: transparent; color: #fff; font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; cursor: pointer; }
.pv__btn:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.pv__btn--dl { border-color: #fff; background: #fff; color: var(--navy); }
.pv__btn--dl:hover { background: #e6eef1; color: var(--navy); }
.pv__x { display: grid; place-items: center; width: 40px; height: 40px; margin-left: 4px; border: 0; border-radius: 6px; background: transparent; color: #fff; cursor: pointer; }
.pv__x:hover { background: rgba(255, 255, 255, .16); }
.pv__frame { flex: 1; width: 100%; min-height: 0; border: 0; background: #525659; }
.pp { width: min(460px, 100%); }
.pp__head { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.pp__head h2 { margin: 0 auto 0 6px; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: var(--navy); cursor: pointer; }
.icon-btn:hover { background: #eef4f6; }
.icon-btn.is-on { background: #e4f3e8; color: #005f27; }
.icon-btn--danger { color: var(--red); }
.icon-btn--danger:hover { background: #fdecea; }
.pp__slot { width: 40px; height: 40px; }
.pp .meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); }
.pp .meta strong { color: var(--navy); }
.panel { margin-top: 16px; padding: 16px; border-radius: 10px; background: var(--soft); }
.panel h3 { margin: 0 0 10px; font-size: 15px; font-weight: 900; color: var(--navy); }
.panel--danger { background: #fdecea; }
.panel--danger h3 { color: #a3221a; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 700; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.toast--bad { background: #8a1c14; }

/* ---- smaller screens ---------------------------------------------------------------------------------------- */
@media (max-width: 1100px) { .main { padding: 22px 20px 40px; } .cards { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1240px) {
  .menu-btn { display: grid; }
  .topbar { gap: 10px; padding: 8px 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; height: 40px; }
  .topbar { flex-wrap: wrap; }
  .side { position: fixed; top: 0; bottom: 0; left: 0; z-index: 40; width: 280px; transform: translateX(-100%); transition: transform .2s; overflow-y: auto; box-shadow: 0 0 40px rgba(0, 0, 0, .25); }
  body.menu-open .side { transform: none; }
  body.menu-open .scrim { display: block; position: fixed; inset: 0; z-index: 30; background: rgba(0, 30, 44, .45); }
  .layout { display: block; min-height: 0; }
}
@media (max-width: 800px) {
  .brand span:last-child { font-size: 15px; }
  .main { padding: 18px 14px 36px; }
  .head h1 { font-size: 23.5px; }
  .dl { grid-template-columns: minmax(0, 1fr); }
  .dl dt { padding-bottom: 0; } .dl dd { border-top: 0; padding-top: 2px; }
  .prod { grid-template-columns: 56px minmax(0, 1fr); }
  .prod img, .prod .noimg { width: 56px; height: 42px; }
  .prod .colour { grid-column: 2; justify-self: start; }
  /* the lists become one card per row */
  .table--cards thead { display: none; }
  .table--cards, .table--cards tbody, .table--cards tr, .table--cards td { display: block; width: 100%; }
  .table--cards tr { position: relative; padding: 12px 14px 10px 48px; border-bottom: 1px solid var(--line); }
  .table--cards tbody tr:last-child { border-bottom: 0; }
  .table--cards td { padding: 2px 0; border: 0; }
  .table--cards td.c-check { position: absolute; left: 14px; top: 12px; width: auto; }
  .table--cards td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: 12px; font-weight: 700; }
  .table--cards td.c-act { margin-top: 6px; text-align: left; }
  .table--cards tbody tr:hover td { background: transparent; }
  .table--cards.no-check tr { padding-left: 14px; }
  /* quote lines: photo, part and remove on top, then the fields, then the line total */
  .lines { overflow: visible; }
  .lt { min-width: 0; }
  .lt thead { display: none; }
  .lt, .lt tbody { display: block; }
  .lt tr { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr); gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .lt td { display: block; padding: 0; border: 0; min-width: 0; }
  .lt td.l-img img { width: 56px; height: 42px; }
  .lt td.l-part { grid-column: 2 / -1; padding-right: 40px; }
  .lt td.l-x { position: absolute; top: 10px; right: 0; }
  .lt td.l-f { text-align: left; }
  .lt td[data-label="Colour"], .lt td[data-label="Trade (£)"] { grid-column: 1 / 3; }
  .lt td[data-label="Qty"], .lt td[data-label="Discount (%)"] { grid-column: 3; }
  .lt td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
  .lt td.l-f .in, .lt td.l-f .select { width: 100%; }
  .lt td.l-f .lp { text-align: left; white-space: normal; }
  .lt td.l-tot, .lt td.l-unit { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; }
  .lt td.l-tot::before, .lt td.l-unit::before { display: inline; margin: 0; }
  .lt td.none { grid-column: 1 / -1; }
  .lt .desc { max-width: none; }
}
@media (max-width: 420px) { .brand span:last-child { display: none; } }

/* list rows open their record; the row's buttons sit side by side; the bin on the filters line */
.table tr.rowopen { cursor: pointer; }
.rowbtns { display: inline-flex; gap: 8px; align-items: center; justify-content: flex-end; white-space: nowrap; }
.icon-btn--line { width: 36px; height: 36px; border: 1px solid #b9c7cc; background: #fff; }
.icon-btn--line.icon-btn--danger { border-color: #f1c3bd; }
.icon-btn--line.icon-btn--danger:hover { background: #fdecea; }
.icon-btn--line:hover { background: #eef4f6; }
.tools .icon-btn { width: 36px; height: 36px; border: 1px solid #b9c7cc; background: #fff; }
.tools .icon-btn:hover:not(:disabled) { background: #eef4f6; }
.tools .icon-btn--danger { border-color: #f1c3bd; }
.thumbs { flex-wrap: wrap; }
.tools .icon-btn--danger:hover:not(:disabled) { background: #fdecea; }
.icon-btn:disabled { opacity: .4; cursor: default; }
.icon-btn:disabled:hover { background: transparent; }
.tools .icon-btn--danger:disabled:hover { background: #fff; }
@media (max-width: 800px) { .rowbtns { justify-content: flex-start; flex-wrap: wrap; white-space: normal; } }
/* laptop widths with the sidebar showing: the row's quote button is just its icon */
@media (min-width: 1241px) and (max-width: 1279px), (min-width: 801px) and (max-width: 960px) { .rowbtns .lbl { display: none; } .rowbtns .btn--small { padding-left: 9px; padding-right: 9px; } }
@media (min-width: 801px) and (max-width: 900px) { .table .when { white-space: normal; } .table .thumbs .thumb ~ .thumb { display: none; } }

/* small helpers (the content security policy doesn't allow style="" attributes) */
.u-between { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.u-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.u-end { display: flex; justify-content: flex-end; }
.u-m0 { margin: 0; }
.u-m0b { margin-bottom: 0; }
.u-mt10 { margin-top: 10px; }
.u-mt14 { margin-top: 14px; }
.u-mt16 { margin-top: 16px; }
.u-mb16 { margin-bottom: 16px; }
.u-mb20 { margin-bottom: 20px; }
.u-r8 { border-radius: 8px; }
.u-nowrap { white-space: nowrap; }
.u-nounder { text-decoration: none; }
.u-pointer { cursor: pointer; }
.u-mw760 { max-width: 760px; }
.u-minw880 { min-width: 880px; }
.u-lede { margin: 4px 0 14px; color: var(--muted); }
.u-pad-empty { padding: 18px 8px; }
.addrow.addrow--bare { margin-top: 0; background: none; padding: 0; }

/* password reset (app.js forgotScreen, sentScreen, newPasswordScreen, expiredScreen) */
.signin__text { margin: 0; font-size: 13.5px; line-height: 1.5; color: #3d474b; }
.signin__again { align-self: center; }
.signin__again:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.pwrules { margin: -4px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.pwrules li { display: flex; align-items: center; gap: 8px; }
.pwrules li::before { content: ""; width: 16px; height: 16px; flex: none; border: 2px solid #b9c7cc; border-radius: 50%; box-sizing: border-box; }
.pwrules li.is-ok { color: #005f27; }
.pwrules li.is-ok::before { border-color: #007a33; background: #007a33 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.field .u-between > label { font-size: 13px; font-weight: 800; color: var(--navy); }   /* a label with a link beside it (Password / Forgot password?) */

/* ---- Downloads (views/downloads.js): totals, the last 30 days, then each document --------------------- */
.dl-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 2fr); gap: 14px; margin-bottom: 18px; }
.dl-stat { padding: 16px 18px; }
.dl-stat h2 { margin: 0 0 6px; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--teal); }
.dl-stat__n { margin: 0; font-size: 28px; font-weight: 900; line-height: 1.1; color: var(--navy); font-variant-numeric: tabular-nums; }
.dl-stat__name { margin: 0 0 2px; font-size: 16px; font-weight: 900; line-height: 1.25; color: var(--navy); }
.dl-stat .sub { margin: 2px 0 0; }
.dl-chart { display: block; width: 100%; height: 72px; }
.dl-bar--view { fill: var(--teal); }
.dl-bar--dl { fill: var(--green); }
.dl-bar--none { fill: var(--line); }
.dl-legend { display: flex; align-items: center; gap: 6px; }
/* Downloads: Sort by, beside the periods */
.dl-sortlabel { color: var(--muted); font-size: 13px; font-weight: 700; }
#dl-sort { width: auto; min-width: 170px; }
/* Downloads' Opened from: each page a link to it on the website */
.dl-from { color: var(--navy); font-weight: 700; text-decoration: none; }
.dl-from:hover { text-decoration: underline; }
.dl-places { display: block; margin-top: 1px; font-size: 12px; }
.dl-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.dl-key--view { background: var(--teal); }
.dl-key--dl { background: var(--green); margin-left: 10px; }
@media (max-width: 1100px) { .dl-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .dl-stat--chart { grid-column: 1 / -1; } }
@media (max-width: 640px) { .dl-stats { grid-template-columns: 1fr 1fr; } .dl-stat--chart, .dl-stats .dl-stat:nth-child(3) { grid-column: 1 / -1; } }

/* ---- Files: the website's documents (views/files.js) */
.fl-n { margin-left: 4px; font-weight: 600; opacity: .7; }
.fl-table td { vertical-align: top; }
.fl-table td:first-child { min-width: 240px; }
.fl-ons { display: flex; flex-wrap: wrap; gap: 4px; max-width: 420px; }
.fl-on { display: inline-block; padding: 2px 8px; border-radius: 6px; background: #eef4f6; color: var(--navy); font-size: 12px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.fl-on--lib { background: #e4f3e8; color: #005f27; }
.fl-on--page { background: #fff4e0; color: #7a4b00; }
.fl-missing { color: var(--red); }
.dialog--wide { width: min(720px, 100%); }
.fl-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; }
.fl-check { display: flex; align-items: center; gap: 8px; margin: 2px 0 14px; font-weight: 700; color: var(--navy); cursor: pointer; }
.fl-h3 { margin: 6px 0 8px; font-size: 15px; font-weight: 900; color: var(--navy); }
.fl-parts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; max-height: 300px; overflow: auto; margin-bottom: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.fl-part { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.fl-part label { display: flex; align-items: center; gap: 8px; min-width: 0; cursor: pointer; font-size: 13px; }
.fl-part select { min-height: 34px; padding: 4px 6px; border: 1px solid #b9c7cc; border-radius: 6px; background: #fff; font-size: 12.5px; }
.fl-part select:disabled { opacity: .45; }
@media (max-width: 700px) { .fl-grid, .fl-parts { grid-template-columns: 1fr; } }
.fl-check--small { align-items: flex-start; font-size: 12.5px; font-weight: 600; color: #3d474b; }
.fl-check--small .tick { margin-top: 1px; flex: none; }
.fl-table td[data-label="Size"] { white-space: nowrap; }

/* ---- Links (views/links.js): tracked links, with their clicks */
.lk-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 720px; }
.lk-url { display: flex; align-items: center; gap: 6px; margin: 4px 0 2px; min-width: 0; }
.lk-url code { font-size: 12px; color: var(--navy); background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 300px; }
.lk-url .icon-btn { width: 30px; height: 30px; min-height: 30px; }
.lk-spark { width: 120px; height: 24px; display: block; }
.lk-bar { fill: var(--green, #009640); }
.lk-bar--none { fill: #d5dee1; }
.lk-edit code { font-size: 12px; }
.lk-preview { padding: 10px 12px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); }
.lk-preview code { font-size: 13px; color: var(--navy); word-break: break-all; }
.lk-preview .is-empty { color: var(--muted); font-style: italic; }
/* a link's QR code */
.lk-qr { max-width: 440px; }
.lk-qr__code { width: 280px; max-width: 100%; margin: 6px auto 4px; }
.lk-qr__code svg { display: block; width: 100%; height: auto; }
.lk-qr__url { text-align: center; word-break: break-all; }
@media (max-width: 800px) { .lk-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lk-url code { max-width: 220px; } }

/* ---- Settings > Eyeris (the Eyeris module: its price list file, views/eyeris.js) ---------------------------- */
.ey-file { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 6px 0 14px; padding: 10px 12px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); }
.ey-file svg.i { width: 18px; height: 18px; color: var(--teal); }
.card > .ey-file:last-child { margin-bottom: 0; }
.ey-view { margin-left: auto; }
.ey-pop { width: min(1040px, 100%); }
.ey-pop .mh { margin-bottom: 4px; }
.ey-pop .mh h2 { margin: 0; }
.ey-miss-h { margin: 18px 0 4px; font-size: 15px; font-weight: 900; color: var(--navy); }
.ey-table code { font-size: 12px; color: var(--navy); }
.ey-table tr.ey-first td { border-top: 1px solid #c9d6db; }
.ey-miss { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.ey-miss li { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ey-table td[data-label="Z10 part no"] strong { white-space: nowrap; }
/* Settings > Email: email enabled / disabled beside Save email settings */
.em-on { min-height: 42px; font-weight: 700; }
.ey-prices { margin-top: 20px; }
.in-fixed { display: inline-block; min-width: 76px; padding: 6px 9px; font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; color: var(--navy); cursor: default; }

/* ---- Eyeris model picker for Quotes (views/eyeris-picker.js) --------------------------------- */
.dialog--picker { width: min(960px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 20px 24px; display: flex; flex-direction: column; overflow: hidden; }
.q-picker__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 2px; }
.q-picker__head h2 { margin: 0 0 2px; font-size: 22px; font-weight: 900; color: var(--navy); }
.q-picker__hint { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.q-picker__x { border: 0; background: var(--soft); border-radius: 8px; width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; color: var(--navy); padding: 0; flex: none; }
.q-picker__x:hover { background: var(--line); }
.q-picker__x svg.i { width: 18px; height: 18px; }

.q-picker__cust { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; padding: 12px 14px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); }
@media (max-width: 600px) { .q-picker__cust { grid-template-columns: 1fr; } }
.q-picker__cust .field { margin-bottom: 0; }
.q-picker__cust .field label { font-size: 12px; }

.q-cats { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
@media (max-width: 800px) { .q-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 500px) { .q-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.q-cat { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 6px 4px; border: 2px solid var(--line); border-radius: 8px; background: #fff; color: var(--navy); font-family: var(--font); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.q-cat:hover { border-color: #93a6ad; }
.q-cat[aria-selected="true"] { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); background: #eaf6ee; }
.q-cat__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.q-cat__img img { width: 100%; height: 100%; object-fit: contain; }
.q-cat__name { font-size: 10.5px; font-weight: 800; line-height: 1.15; text-transform: uppercase; letter-spacing: .02em; }
.q-cat__count { position: absolute; top: -7px; right: -7px; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--green); color: #fff; font-size: 11.5px; font-weight: 900; box-sizing: border-box; }
.q-cat__count[hidden] { display: none; }

.q-models { flex: 1 1 auto; min-height: 160px; max-height: calc(100vh - 420px); overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 4px; display: flex; flex-direction: column; gap: 4px; }
.q-item { display: grid; grid-template-columns: 24px 56px max-content minmax(0, 1fr) 72px; align-items: center; column-gap: 12px; padding: 8px 10px; border-radius: 6px; cursor: pointer; transition: background .12s; }
.q-item:hover { background: var(--soft); }
.q-item.is-checked { background: #eaf6ee; }
.q-item input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--green); cursor: pointer; }
.q-item__img { display: grid; place-items: center; width: 56px; height: 42px; padding: 2px; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-sizing: border-box; }
.q-item__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.q-item__code { font-weight: 900; color: var(--navy); font-size: 14.5px; white-space: nowrap; }
.q-item__desc { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-item .q-item__qty { width: 72px; height: 34px; padding: 4px 8px; border: 1px solid #93a6ad; border-radius: 6px; background: #fff; color: var(--ink); font-size: 14px; text-align: center; }
.q-item:not(.is-checked) .q-item__qty { opacity: .55; }
@media (max-width: 640px) {
  .q-item { grid-template-columns: 22px 48px minmax(0, 1fr) 64px; }
  .q-item__img { grid-column: 2; grid-row: 1 / span 2; width: 48px; height: 38px; }
  .q-item__code { grid-column: 3; grid-row: 1; }
  .q-item__desc { grid-column: 3; grid-row: 2; }
  .q-item .q-item__qty { grid-column: 4; grid-row: 1 / span 2; width: 64px; }
  .q-item input[type="checkbox"] { grid-row: 1 / span 2; }
}

.q-picker__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.q-picker__foot .btn { min-width: 120px; }
