/* STORE OS design system: System Blue actions, Midnight text, Cloud pages, white cards.
   8 px spacing rhythm, 16 px body text, 10 px control radius, 16 px card radius. */

@font-face { font-family: 'DejaVu Sans'; src: url('/assets/fonts/DejaVuSans.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'DejaVu Sans'; src: url('/assets/fonts/DejaVuSans-Bold.woff') format('woff'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'DejaVu Sans Condensed'; src: url('/assets/fonts/DejaVuSansCondensed.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'DejaVu Sans Condensed'; src: url('/assets/fonts/DejaVuSansCondensed-Bold.woff') format('woff'); font-weight: 700; font-display: swap; }
/* The name, job and city on the badges STORE OS draws (Inter Display, SIL OFL: fonts/Inter-LICENSE.txt). */
@font-face { font-family: 'Badge Display'; src: url('/assets/fonts/InterDisplay-ExtraBold-badge.woff') format('woff'); font-weight: 800; font-display: block; }
@font-face { font-family: 'Badge Display'; src: url('/assets/fonts/InterDisplay-SemiBold-badge.woff') format('woff'); font-weight: 600; font-display: block; }

:root {
  --blue: #0057FF;
  --blue-hover: #0047D6;
  --blue-press: #003BB3;
  --blue-soft: #E8F0FF;
  --navy: #07152D;
  --cyan: #00C8E8;
  --cloud: #F3F7FC;
  --slate: #52647B;
  --border: #E1E8F2;
  --border-strong: #C9D4E3;
  --white: #FFFFFF;
  --green: #0F7A4F;
  --green-soft: #E3F5EC;
  --amber: #8A5300;
  --amber-soft: #FFF3DC;
  --red: #C42127;
  --red-soft: #FDECEC;
  --focus: #07152D;
  --shadow: 0 1px 2px rgba(7, 21, 45, 0.06), 0 4px 16px rgba(7, 21, 45, 0.06);
  --shadow-lg: 0 12px 40px rgba(7, 21, 45, 0.18);
  --r-control: 10px;
  --r-card: 16px;
  --font: 'DejaVu Sans', Arial, sans-serif;
  --nav-w: 96px;
  --top-h: 72px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font: 16px/24px var(--font);
  color: var(--navy);
  background: var(--cloud);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3 { margin: 0; color: var(--navy); font-weight: 700; }
h1 { font-size: 28px; line-height: 36px; }
h2 { font-size: 22px; line-height: 30px; }
h3 { font-size: 18px; line-height: 26px; }
p { margin: 0; }
.muted { color: var(--slate); }
.small { font-size: 14px; line-height: 20px; }
.tiny { font-size: 12px; line-height: 16px; }
.strong { font-weight: 700; }
.num { font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: var(--nav-w) 1fr; grid-template-rows: var(--top-h) 1fr; height: 100vh; height: 100dvh; }
.nav { grid-row: 1 / span 2; background: var(--white); border-right: 1px solid var(--border); display: flex; flex-direction: column; align-items: stretch; padding: 12px 8px; gap: 4px; overflow-y: auto; }
.nav-brand { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0 12px; text-decoration: none; color: var(--navy); }
.nav-brand img { width: 44px; height: 44px; }
.nav-brand span { font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: 0.04em; }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 12px; text-decoration: none; color: var(--slate); font-size: 12px; line-height: 16px; font-weight: 700; border: 0; background: none; cursor: pointer; text-align: center; position: relative; }
.nav-item svg { width: 26px; height: 26px; }
.nav-item:hover { background: var(--cloud); color: var(--navy); }
.nav-item[aria-current='page'] { background: var(--blue-soft); color: var(--blue); }
.nav-item[aria-current='page']::before { content: ''; position: absolute; left: -8px; top: 12px; bottom: 12px; width: 4px; border-radius: 0 4px 4px 0; background: var(--blue); }
.nav-spacer { flex: 1; }
/* STORE OS mark and copyright, bottom left. */
.nav-legal { position: sticky; bottom: -12px; display: flex; flex-direction: column; align-items: center; gap: 1px; margin: 8px -8px -12px; padding: 8px 4px 10px; border-top: 1px solid var(--border); background: var(--white); color: var(--slate); font-size: 10px; line-height: 13px; text-align: center; }
.nav-legal img { width: 22px; height: 22px; margin-bottom: 3px; }
.nav-legal .nl-name { font-weight: 800; letter-spacing: 0.06em; color: var(--navy); }
.legal-foot { position: fixed; left: 16px; bottom: 12px; display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; color: var(--slate); pointer-events: none; }
.legal-foot img { width: 20px; height: 20px; }
.legal-foot strong { color: var(--navy); letter-spacing: 0.04em; }
@media print { .legal-foot, .nav-legal { display: none; } }
@media (max-width: 640px) { .legal-foot { position: static; justify-content: center; padding: 12px 16px 16px; } }
.top { display: flex; align-items: center; gap: 16px; padding: 0 24px; background: var(--cloud); border-bottom: 1px solid var(--border); min-width: 0; }
.top-store { display: flex; flex-direction: column; min-width: 0; }
.top-store .biz { font-size: 12px; line-height: 16px; color: var(--slate); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
.top-store .loc { font-weight: 700; white-space: nowrap; }
.top-search { flex: 1; max-width: 640px; position: relative; }
.top-user { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.main { overflow-y: auto; padding: 24px; min-width: 0; }
.page { max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.page-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.page-head h1 { margin-right: auto; }
.row { display: flex; align-items: center; gap: 8px; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.grow { flex: 1; min-width: 0; }
/* Icons default to 20px and never stretch; specific rules below resize them. */
.svg-ic { width: 20px; height: 20px; flex: none; }

/* ---------- surfaces ---------- */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-card); padding: 24px; }
.card-tight { padding: 16px; }
.card h2, .card h3 { margin-bottom: 8px; }
.divider { height: 1px; background: var(--border); margin: 8px 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px; border-radius: var(--r-control); border: 1px solid transparent; font-weight: 700; font-size: 16px; line-height: 20px; cursor: pointer; text-decoration: none; white-space: nowrap; user-select: none; transition: background 0.12s, border-color 0.12s, color 0.12s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-hover); }
.btn-primary:active { background: var(--blue-press); }
.btn-secondary { background: var(--white); color: var(--navy); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--white); }
.btn-danger { background: var(--white); color: var(--red); border-color: #F2C4C6; }
.btn-danger:hover { background: var(--red-soft); }
.btn-lg { min-height: 56px; font-size: 18px; padding: 14px 24px; }
.btn-xl { min-height: 72px; font-size: 22px; padding: 16px 28px; border-radius: 14px; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-control); border: 1px solid var(--border-strong); background: var(--white); cursor: pointer; color: var(--navy); flex: none; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { border-color: var(--navy); }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--navy); }
.field .hint { font-size: 13px; line-height: 18px; color: var(--slate); font-weight: 400; }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--border-strong); border-radius: var(--r-control); background: var(--white); color: var(--navy); }
.textarea { min-height: 88px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); outline: 3px solid rgba(0, 87, 255, 0.18); outline-offset: 0; }
.input-lg { min-height: 56px; font-size: 18px; }
.input-money { font-variant-numeric: tabular-nums; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--blue); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.error-text { color: var(--red); font-size: 14px; line-height: 20px; font-weight: 700; }

/* ---------- search ---------- */
.search { position: relative; }
.search > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--slate); pointer-events: none; }
.search .input { padding-left: 44px; border-radius: 999px; }
.search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-lg); max-height: 70vh; overflow-y: auto; z-index: 40; padding: 8px; }
.search-hit { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; border: 0; background: none; cursor: pointer; }
.search-hit:hover, .search-hit[aria-selected='true'] { background: var(--cloud); }
.search-hit .t { font-weight: 700; }
.search-hit .s { font-size: 14px; line-height: 20px; color: var(--slate); }

/* ---------- badges & status ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 13px; line-height: 20px; font-weight: 700; background: var(--cloud); color: var(--navy); border: 1px solid var(--border); white-space: nowrap; }
.badge svg { width: 14px; height: 14px; }
.badge-blue { background: var(--blue-soft); color: var(--blue); border-color: #C9DAFF; }
.badge-green { background: var(--green-soft); color: var(--green); border-color: #BFE6D2; }
.badge-amber { background: var(--amber-soft); color: var(--amber); border-color: #F4D9A6; }
.badge-red { background: var(--red-soft); color: var(--red); border-color: #F2C4C6; }

/* ---------- home ---------- */
.tasks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.task { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 16px; min-height: 132px; padding: 20px; border-radius: var(--r-card); border: 1px solid var(--border); background: var(--white); color: var(--navy); text-decoration: none; cursor: pointer; text-align: left; box-shadow: var(--shadow); transition: transform 0.08s, border-color 0.12s; }
.task:hover { border-color: var(--blue); }
.task:active { transform: scale(0.985); }
.task .ic { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--blue-soft); color: var(--blue); }
.task .ic svg { width: 28px; height: 28px; }
.task .label { font-size: 20px; line-height: 26px; font-weight: 700; letter-spacing: 0.01em; }
.task .sub { font-size: 14px; line-height: 20px; color: var(--slate); }
.task.primary { background: var(--blue); border-color: var(--blue); color: var(--white); }
.task.primary .ic { background: rgba(255, 255, 255, 0.16); color: var(--white); }
.task.primary .sub { color: rgba(255, 255, 255, 0.85); }
.task .pic-box { width: 76px; height: 76px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, #F3F7FC, #E3EDFF); flex: none; }
.task.primary .pic-box { background: #fff; }
.task .soon { font-size: 12px; line-height: 16px; font-weight: 700; color: var(--slate); background: var(--cloud); border-radius: 999px; padding: 2px 8px; }
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-card); padding: 16px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--navy); min-height: 104px; }
.tile .k { font-size: 14px; line-height: 20px; color: var(--slate); font-weight: 700; }
.tile .v { font-size: 28px; line-height: 36px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tile .n { font-size: 13px; line-height: 18px; color: var(--slate); }
a.tile:hover { border-color: var(--blue); }
.alerts { display: flex; flex-direction: column; gap: 8px; }
.alert { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--white); border: 1px solid var(--border); text-decoration: none; color: var(--navy); font-weight: 700; }
.alert svg { width: 22px; height: 22px; flex: none; }
.alert .go { margin-left: auto; color: var(--slate); }
.alert.warning { border-left: 6px solid #E3A33B; }
.alert.critical { border-left: 6px solid var(--red); }
.alert.info { border-left: 6px solid var(--blue); }
.alert.good { border-left: 6px solid var(--green); }

/* ---------- lists ---------- */
.list { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; }
.list-row { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--navy); background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; cursor: pointer; }
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: #F8FAFE; }
.list-row .main-col { flex: 1; min-width: 0; }
.list-row .t { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .s { font-size: 14px; line-height: 20px; color: var(--slate); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row > .svg-ic { color: var(--slate); }
.list-head { display: flex; gap: 16px; padding: 10px 16px; font-size: 13px; line-height: 18px; color: var(--slate); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; background: var(--cloud); border-bottom: 1px solid var(--border); }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 13px; line-height: 18px; color: var(--slate); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--cloud); }
.table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: #F8FAFE; }
.empty { padding: 40px 24px; text-align: center; color: var(--slate); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty svg { width: 40px; height: 40px; color: var(--border-strong); }

/* ---------- tabs / chips ---------- */
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--white); border: 1px solid var(--border); border-radius: 12px; width: fit-content; flex-wrap: wrap; }
.tab { border: 0; background: none; padding: 10px 16px; border-radius: 9px; font-weight: 700; color: var(--slate); cursor: pointer; min-height: 44px; }
.tab[aria-selected='true'] { background: var(--navy); color: var(--white); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--border-strong); background: var(--white); padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; line-height: 20px; cursor: pointer; min-height: 40px; color: var(--navy); display: inline-flex; align-items: center; gap: 6px; }
.chip[aria-pressed='true'] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.chip .x { font-size: 16px; line-height: 1; }
.chip .svg-ic { width: 16px; height: 16px; }

/* ---------- sale ---------- */
.sale { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 24px; height: 100%; }
.sale-left { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.item { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--white); text-align: left; cursor: pointer; min-height: 120px; }
.item:hover { border-color: var(--blue); }
.item .t { font-weight: 700; line-height: 22px; }
.item .s { font-size: 13px; line-height: 18px; color: var(--slate); }
.item .pic-wrap { height: 104px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: #F7F9FD; margin-bottom: 4px; overflow: hidden; }
.item .pic-wrap img.pic { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.item[disabled] { opacity: 0.6; cursor: default; }
img.pic { object-fit: contain; border-radius: 10px; background: #fff; }
.thumb { width: 56px; height: 56px; flex: none; border-radius: 10px; background: #F7F9FD; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.thumb img.pic, .thumb svg.art { width: 56px; height: 56px; }
.item .p { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 18px; }
/* Sale menu: Apple, Samsung, Google, Moto, WiFi, Accessories, then groups and models with pictures. */
.brand-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.brand-tile { display: grid; grid-template-rows: 150px auto auto; gap: 4px; padding: 14px; border-radius: var(--r-card); border: 1px solid var(--border); background: var(--white); cursor: pointer; text-align: left; color: var(--navy); box-shadow: var(--shadow); transition: border-color 0.12s, transform 0.12s; }
.brand-tile:hover { border-color: var(--blue); }
.brand-tile:active { transform: scale(0.985); }
.brand-tile .brand-pic { display: flex; align-items: center; justify-content: center; border-radius: 12px; background: linear-gradient(160deg, #F7F9FD, #E9F0FB); overflow: hidden; margin-bottom: 6px; }
.brand-tile .brand-pic img { width: 100%; height: 100%; object-fit: contain; padding: 10px; mix-blend-mode: multiply; }
.brand-tile .brand-pic .svg-ic { width: 48px; height: 48px; color: var(--slate); }
.brand-tile .brand-name { font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -0.01em; }
.brand-tile .brand-sub { font-size: 13px; line-height: 18px; color: var(--slate); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-crumbs { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.crumb-back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 14px 0 8px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--white); font-weight: 700; color: var(--navy); cursor: pointer; }
.crumb-back .svg-ic { width: 18px; height: 18px; }
.crumb-title { font-size: 22px; line-height: 28px; font-weight: 700; }
.chip-lg { min-height: 48px; font-size: 16px; padding: 10px 18px; }
.menu-section { display: flex; flex-direction: column; gap: 10px; }
.menu-section-title { margin: 6px 0 0; font-size: 14px; line-height: 20px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--slate); }
.menu-item-wrap { position: relative; display: flex; }
.menu-item-wrap .item { flex: 1; min-width: 0; }
.menu-item .t { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.menu-item .s { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-item .p small { font-size: 13px; font-weight: 400; color: var(--slate); }
.menu-edit { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.94); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--navy); }
.menu-edit:hover { border-color: var(--blue); color: var(--blue); }
.menu-edit .svg-ic { width: 16px; height: 16px; }
.ask { color: var(--amber); font-size: 15px; font-weight: 700; }
.model-head { display: flex; gap: 16px; align-items: center; }
.model-pic { width: 140px; height: 140px; flex: none; border-radius: 14px; background: #F7F9FD; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.model-pic img.pic { width: 100%; height: 100%; object-fit: contain; }
.cart { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-card); display: flex; flex-direction: column; min-height: 0; max-height: calc(100dvh - var(--top-h) - 48px); position: sticky; top: 0; }
.cart-head { padding: 16px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.cart-lines { flex: 1; overflow-y: auto; padding: 8px 16px; min-height: 120px; position: relative; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 16px; margin: 0 -16px; border-bottom: 1px solid var(--border); }
.cart-line.flash { animation: flash 1.6s ease-out; }
.cart-line:last-child { border-bottom: 0; }
.cart-line .d { font-weight: 700; line-height: 22px; }
.cart-line .x { font-size: 13px; line-height: 18px; color: var(--slate); }
.cart-line .amt { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.cart-line .ctl { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--r-control); overflow: hidden; }
.qty button { width: 40px; height: 40px; border: 0; background: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qty button svg { width: 16px; height: 16px; }
.qty span { min-width: 36px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-foot { border-top: 1px solid var(--border); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.sum-row { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.sum-row.total { font-size: 24px; line-height: 32px; font-weight: 700; padding-top: 6px; }
.pay-btn { margin-top: 10px; }
.customer-pill { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--cloud); }
.customer-pill svg { width: 20px; height: 20px; color: var(--slate); }

/* ---------- sheets (modals) ---------- */
.overlay { position: fixed; inset: 0; background: rgba(7, 21, 45, 0.45); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 100; animation: fade 0.12s ease-out; }
.sheet { background: var(--white); border-radius: 20px; box-shadow: var(--shadow-lg); width: 100%; max-width: 560px; max-height: calc(100dvh - 48px); display: flex; flex-direction: column; animation: rise 0.16s ease-out; }
.sheet-wide { max-width: 860px; }
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 20px 24px 12px; }
.sheet-head h2 { margin-right: auto; }
.sheet-body { padding: 8px 24px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.sheet-foot { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes flash { from { background: var(--blue-soft); } to { background: transparent; } }
@keyframes rise { from { transform: translateY(-12px); opacity: 0.6; } to { transform: none; opacity: 1; } }

/* ---------- pin pad ---------- */
.pin-dots { display: flex; justify-content: center; gap: 14px; height: 24px; }
.pin-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--navy); display: block; }
.pin-dots i.on { background: var(--navy); }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 320px; margin: 0 auto; width: 100%; }
.pinpad button { height: 68px; border-radius: 14px; border: 1px solid var(--border); background: var(--white); font-size: 26px; font-weight: 700; cursor: pointer; color: var(--navy); display: flex; align-items: center; justify-content: center; }
.pinpad button:active { background: var(--cloud); }
.pinpad button svg { width: 26px; height: 26px; }

/* ---------- sign-in screens ---------- */
.gate { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(900px 420px at 50% -6%, rgba(1, 98, 253, 0.09), transparent 70%), var(--white); }
.gate-lock { background: radial-gradient(1000px 460px at 50% -6%, rgba(1, 98, 253, 0.10), transparent 70%), var(--cloud); }
.gate-card { width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 24px; }
.gate-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gate-wcw { width: min(400px, 88%); }
.gate-os { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 8px; font-size: 14px; line-height: 20px; color: var(--slate); text-align: center; }
.gate-os img { width: 20px; height: 20px; }
.gate-os .strong { color: var(--navy); font-size: 13px; letter-spacing: 0.06em; }

/* ---------- the West Coast Wireless logo ---------- */
.wcw { position: relative; display: grid; aspect-ratio: 960 / 337; user-select: none; -webkit-user-select: none; }
.wcw > * { grid-area: 1 / 1; width: 100%; height: 100%; }
.wcw img { display: block; max-width: none; pointer-events: none; }
.wcw-shine {
  pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, 0.9) 50%, transparent 60%) no-repeat; background-size: 300% 100%; background-position: 100% 0;
  -webkit-mask: url('/assets/wcw-logo-brush.png') center / 100% 100% no-repeat; mask: url('/assets/wcw-logo-brush.png') center / 100% 100% no-repeat;
}
/* Painted on from left to right with a slanted brush edge, WIRELESS rises in, then one shine. */
.wcw-anim .wcw-brush { animation: wcw-paint 0.95s cubic-bezier(0.3, 0.7, 0.2, 1) both; }
.wcw-anim .wcw-word { animation: wcw-rise 0.55s ease-out 0.6s both; }
.wcw-anim .wcw-shine { animation: wcw-shine 1.1s ease-in-out 1.1s both; }
@keyframes wcw-paint { from { clip-path: polygon(0 0, 0 0, -14% 100%, 0 100%); } to { clip-path: polygon(0 0, 114% 0, 100% 100%, 0 100%); } }
@keyframes wcw-rise { from { opacity: 0; transform: translateY(14%); } to { opacity: 1; transform: none; } }
@keyframes wcw-shine { from { opacity: 1; background-position: 100% 0; } to { opacity: 1; background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .wcw-anim .wcw-brush, .wcw-anim .wcw-word, .wcw-anim .wcw-shine { animation: none; } }

/* ---------- employee badges: 2 wide by 3 tall ---------- */
.ebadge { position: relative; display: block; width: 100%; aspect-ratio: 2 / 3; border-radius: 4.5% / 3%; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(7, 21, 45, 0.12), 0 6px 18px rgba(7, 21, 45, 0.14); }
.ebadge img, .ebadge svg { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.eb-name { font-family: 'Badge Display', var(--font); font-weight: 800; fill: #fff; }
.eb-job, .eb-city { font-family: 'Badge Display', var(--font); font-weight: 600; fill: #fff; }
.eb-rule { stroke: #2f6bff; stroke-width: 3; }
.ebadge.mini { width: 30px; flex: none; border-radius: 3px; box-shadow: 0 1px 2px rgba(7, 21, 45, 0.25); }
.ebadge.pick { width: 112px; flex: none; }
.ebadge.big { width: min(320px, 76vw); }
.badge-view { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.badge-field { display: flex; gap: 16px; align-items: center; padding: 12px; margin-bottom: 16px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--cloud); }
.badge-field label.btn { position: relative; }
.badge-field label.btn.disabled { opacity: 0.6; pointer-events: none; }
/* The clock-in screen: everyone's badge; after a tap, theirs next to the code pad. */
.lock-card { max-width: 1040px; }
.lock-card.lock-picked .gate-wcw { width: min(280px, 70%); }
.people.badges { gap: 14px; }
.person.badge-tile { width: 136px; padding: 8px 8px 10px; gap: 6px; transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease; }
.person.badge-tile .ebadge { width: 118px; }
.person.badge-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.person.badge-tile .nm { font-size: 14px; line-height: 18px; }
.clockin { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.ebadge.clockin-badge { width: 236px; flex: none; animation: badge-in 0.35s ease-out both; }
.clockin-pad { max-width: 420px; width: 100%; }
@keyframes badge-in { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ebadge.clockin-badge { animation: none; } }
@media (max-width: 640px) {
  .person.badge-tile { width: 112px; }
  .person.badge-tile .ebadge { width: 94px; }
  .ebadge.clockin-badge { width: 150px; }
}
/* Top right, once signed in: their badge. A tap shows it big. */
.top-badge { flex: none; width: 44px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 4px; }
.top-badge .ebadge { width: 44px; border-radius: 3px; box-shadow: 0 1px 3px rgba(7, 21, 45, 0.3); transition: transform 0.12s ease; }
.top-badge:hover .ebadge { transform: translateY(-1px); }
/* Home: hello, today, and the logo. */
.home-hero { position: relative; overflow: hidden; align-items: center; padding: 20px 24px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-card); }
.home-hero::before { content: ''; position: absolute; right: -80px; top: -110px; width: 520px; height: 340px; background: radial-gradient(closest-side, rgba(1, 98, 253, 0.12), transparent); pointer-events: none; }
.home-hero .hero-text { position: relative; margin-right: auto; }
.home-hero .hero-hi { font-weight: 700; color: var(--blue); }
.home-hero .hero-logo { position: relative; width: 300px; }
@media (max-width: 760px) { .home-hero { flex-direction: column-reverse; align-items: flex-start; } .home-hero .hero-logo { width: 220px; } }
.people { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.person { width: 140px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; border-radius: var(--r-card); border: 1px solid var(--border); background: var(--white); cursor: pointer; }
.person:hover { border-color: var(--blue); }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; flex: none; }
.avatar-sm { width: 36px; height: 36px; font-size: 14px; }
.person .nm { font-weight: 700; text-align: center; line-height: 20px; }
.person .rl { font-size: 13px; line-height: 18px; color: var(--slate); }

/* ---------- toasts ---------- */
/* Messages appear at the top so they never cover the Pay or Finish buttons; taps go straight through them. */
.toasts { position: fixed; top: calc(var(--top-h) + 12px); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 200; width: min(560px, calc(100vw - 32px)); pointer-events: none; }
.toast { background: var(--navy); color: var(--white); padding: 14px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center; font-weight: 700; animation: rise 0.16s ease-out; }
.toast svg { width: 20px; height: 20px; flex: none; }
.toast.error { background: var(--red); }
.toast.good { background: var(--green); }

/* ---------- receipt ---------- */
.receipt { width: 100%; max-width: 360px; margin: 0 auto; background: var(--white); padding: 20px; border: 1px dashed var(--border-strong); border-radius: 8px; font-size: 14px; line-height: 20px; color: #000; }
.receipt .logo { display: inline-block; vertical-align: top; max-width: 180px; max-height: 64px; margin: 0 auto 8px; object-fit: contain; }
.receipt .biz { text-align: center; font-weight: 700; font-size: 18px; line-height: 24px; }
.receipt .c { text-align: center; }
.receipt .rl { display: flex; justify-content: space-between; gap: 12px; }
.receipt .rl span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.receipt .dim { color: #444; font-size: 12px; line-height: 16px; }
.card hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0; align-self: stretch; width: 100%; }
.receipt hr { border: 0; border-top: 1px dashed #999; margin: 10px 0; }
.receipt .tot { font-weight: 700; font-size: 18px; line-height: 26px; }
.done-mark { width: 72px; height: 72px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.done-mark svg { width: 40px; height: 40px; }

/* ---------- misc ---------- */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; }
.kv dt { color: var(--slate); font-weight: 700; font-size: 14px; }
.kv dd { margin: 0; }
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--blue-soft); color: var(--navy); }
.banner svg { width: 22px; height: 22px; flex: none; color: var(--blue); margin-top: 1px; }
.banner.warn { background: var(--amber-soft); }
.banner.warn svg { color: var(--amber); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stat { background: var(--cloud); border-radius: 12px; padding: 12px 14px; }
.stat .k { font-size: 13px; line-height: 18px; color: var(--slate); font-weight: 700; }
.stat .v { font-size: 22px; line-height: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--blue); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 24px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.bottom-nav { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sale { grid-template-columns: minmax(0, 1fr) 360px; }
}
@media (max-width: 900px) {
  .tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sale { grid-template-columns: 1fr; }
  .cart { position: static; max-height: none; }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .sale-left > .spread { flex-wrap: wrap; }
  .sale-left > .spread > .tabs { width: 100%; flex-wrap: nowrap; }
  .sale-left > .spread > .tabs .tab { flex: 1; padding: 10px 8px; }
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .brand-tile { grid-template-rows: 110px auto auto; }
  .brand-tile .brand-name { font-size: 20px; }
  .model-pic { width: 96px; height: 96px; }
  :root { --top-h: 64px; }
  .app { grid-template-columns: 1fr; grid-template-rows: var(--top-h) 1fr 72px; }
  .nav { display: none; }
  .bottom-nav { display: flex; grid-row: 3; background: var(--white); border-top: 1px solid var(--border); justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav .nav-item { flex: 1; padding: 6px 2px; }
  .top { padding: 0 16px; gap: 12px; }
  .top-store { display: none; }
  .top-user .who { display: none; }
  .main { padding: 16px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task { min-height: 112px; padding: 16px; }
  .task .label { font-size: 17px; line-height: 22px; }
  .form-grid, .grid-2 { grid-template-columns: 1fr; }
  .overlay { padding: 0; align-items: flex-end; }
  .sheet { border-radius: 20px 20px 0 0; max-height: 92dvh; }
  h1 { font-size: 24px; line-height: 32px; }
}

/* ---------- printing (receipts, tickets, invoices) ---------- */
#print-root { display: none; }
/* Thermal (80 mm receipt printer): each ticket is its own page, 80 mm wide and exactly as tall as
   the ticket (fitThermalPages sets each page's height right before printing; 297 mm is only the
   fallback). The width is RepairDesk's thermal receipt width: 70.6 mm (200 pt), 3.6 mm sides.
   No page margins: the white around the text is the ticket's own 3 mm padding, and with no
   margins the print window has no room for its date, web address and page numbers. Nothing here
   has a minimum or fixed height or is centered vertically. */
@page thermal { size: 70.6mm 297mm; margin: 0; }
#print-root .thermal { width: auto; margin: 0; padding: 0; }
#print-root .thermal > .ticket { page: thermal; display: block; width: 70.6mm; height: auto; min-height: 0; margin: 0 auto; padding: 3mm 3.6mm; }
#print-root .thermal > .ticket + .ticket { break-before: page; }
#print-root .thermal .receipt { width: auto; max-width: none; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
/* Chrome's print layout moves a block-level picture (or one that is a flex item) onto a new
   page inside a named page (thermal, letter, label). Pictures on paper stay inline-block. */
#print-root img { display: inline-block; vertical-align: top; }
/* Measuring the tickets at their printed width with the same styles (see fitThermalPages). */
#print-root.measure { display: block; position: absolute; left: -10000px; top: 0; visibility: hidden; }
/* Full pages: no page margins either; the 12 mm is padding repeated on every page, so they come
   out the same whichever Margins option the print window is set to. */
@page letter { size: letter; margin: 0; }
#print-root .letter { width: 100%; padding: 12mm; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media print {
  html, body { height: auto; min-height: 0; background: #fff; }
  body.printing #root { display: none; }
  body.printing #print-root { display: block; }
  #print-root .letter { page: letter; }
}

/* ---------- receipt (thermal, 72 mm) ---------- */
.receipt .head { text-align: center; }
.receipt .head .site { color: #000; font-weight: 700; font-size: 13px; line-height: 17px; }
/* The website, big and bold at the bottom of every receipt, ticket and invoice. */
.site-line { text-align: center; color: #000; margin: 12px 0 2px; }
.site-line span { display: block; font-size: 10px; line-height: 14px; letter-spacing: .06em; text-transform: uppercase; }
.site-line strong { display: block; font-size: 17px; line-height: 22px; font-weight: 800; overflow-wrap: anywhere; }
.invoice .site-line strong, .letter .site-line strong, .record .site-line strong { font-size: 20px; line-height: 26px; }
.receipt .doc { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 15px; letter-spacing: 0.04em; }
.receipt .meta { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; font-size: 13px; line-height: 18px; }
.receipt .meta dt { color: #444; }
.receipt .meta dd { margin: 0; text-align: right; }
.receipt table.rtable { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 18px; }
.receipt table.rtable th { text-align: left; font-size: 11px; letter-spacing: 0.05em; border-bottom: 1px solid #000; padding: 2px 0; }
.receipt table.rtable th.r, .receipt table.rtable td.r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.receipt table.rtable td { vertical-align: top; padding: 4px 0 2px; }
.receipt table.rtable td.q, .receipt table.rtable th.q { width: 26px; }
.receipt table.rtable th:nth-child(2), .receipt table.rtable td:nth-child(2) { padding-left: 4px; padding-right: 6px; }
.receipt .bar { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 8px 0 4px; }
.receipt .bar svg { width: 100%; max-width: 240px; height: 44px; }
.receipt .terms { font-size: 11px; line-height: 15px; color: #222; text-align: left; white-space: pre-wrap; }
.receipt .sign { margin-top: 18px; border-top: 1px solid #000; padding-top: 2px; font-size: 11px; }
.receipt .box { border: 1.5px solid #000; border-radius: 4px; padding: 6px 8px; margin: 8px 0; }
.receipt .big { font-size: 20px; line-height: 26px; font-weight: 700; text-align: center; letter-spacing: 0.02em; }
.tear-line { text-align: center; color: #666; font-size: 11px; margin: 14px 0; border-top: 1px dashed #666; padding-top: 2px; }

/* ---------- invoice (full page) ---------- */
.invoice { background: #fff; color: #000; font-size: 13px; line-height: 19px; padding: 0; }
.invoice .ih { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; border-bottom: 3px solid var(--blue); padding-bottom: 12px; }
.invoice .ih img { max-height: 110px; max-width: 220px; object-fit: contain; }
.invoice .ih .biz { font-size: 22px; line-height: 28px; font-weight: 700; }
.invoice .ih .right { text-align: right; }
.invoice h1 { font-size: 26px; line-height: 32px; letter-spacing: 0.06em; margin: 0; color: var(--navy); }
.invoice .two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 16px 0; }
.invoice .lab { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #555; }
.invoice table { width: 100%; border-collapse: collapse; }
.invoice th { background: #F3F7FC; text-align: left; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; padding: 8px; border-bottom: 1px solid #C9D6EA; }
.invoice td { padding: 8px; border-bottom: 1px solid #E1E8F2; vertical-align: top; }
.invoice .r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.invoice .totals { margin-left: auto; width: 280px; margin-top: 12px; }
.invoice .totals div { display: flex; justify-content: space-between; padding: 3px 0; }
.invoice .totals .grand { border-top: 2px solid #000; margin-top: 4px; padding-top: 6px; font-size: 17px; font-weight: 700; }
.invoice .terms { margin-top: 20px; font-size: 11px; line-height: 16px; color: #333; white-space: pre-wrap; }
.invoice .sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 36px; }
.invoice .sigs div { border-top: 1px solid #000; padding-top: 4px; font-size: 11px; }
.invoice .foot { margin-top: 24px; text-align: center; font-size: 11px; color: #555; }
.invoice .barc svg { height: 40px; width: 220px; }

/* ---------- repairs ---------- */
.board-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 3px 10px; background: var(--cloud); color: var(--navy); white-space: nowrap; }
.status-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: 0.8; }
.st-checked_in { color: #0057FF; background: #E6F0FF; }
.st-in_progress { color: #6B4EFF; background: #EFEBFF; }
.st-waiting_parts { color: #B76E00; background: #FFF4DE; }
.st-waiting_customer { color: #C2410C; background: #FFEDE3; }
.st-ready { color: #0E8A55; background: #E3F7EE; }
.st-picked_up { color: #52647B; background: #EEF2F7; }
.st-cancelled { color: #B42318; background: #FDECEA; }
.overdue { color: var(--red); font-weight: 700; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.svc { text-align: left; border: 1px solid var(--border); border-radius: 14px; background: var(--white); padding: 12px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; min-height: 84px; }
.svc:hover { border-color: var(--blue); }
.svc[aria-pressed='true'] { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.svc .t { font-weight: 700; line-height: 20px; }
.svc .s { font-size: 13px; line-height: 18px; color: var(--slate); }
.svc .p { font-weight: 700; margin-top: auto; }
.precheck { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.precheck .pc { display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 12px; padding: 6px 6px 6px 12px; background: var(--white); }
.precheck .pc .opts { display: flex; gap: 4px; }
.precheck .pc button { border: 1px solid var(--border); background: var(--white); border-radius: 8px; min-width: 40px; min-height: 36px; font-weight: 700; cursor: pointer; }
.precheck .pc button[aria-pressed='true'].ok { background: #E3F7EE; border-color: #0E8A55; color: #0E8A55; }
.precheck .pc button[aria-pressed='true'].bad { background: #FDECEA; border-color: #B42318; color: #B42318; }
.precheck .pc button[aria-pressed='true'].na { background: var(--cloud); border-color: var(--border-strong); }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.photos a { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: #F7F9FD; }
.photos img { width: 100%; height: 100%; object-fit: cover; }
.timeline { display: flex; flex-direction: column; gap: 10px; }
.timeline .ev { display: grid; grid-template-columns: 10px 1fr; gap: 10px; }
.timeline .ev::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); margin-top: 6px; }
.timeline .ev.status::before { background: var(--blue); }
.money-split { font-size: 13px; color: var(--slate); }
.sticky-actions { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin: 8px -8px 0; background: rgba(255, 255, 255, 0.96); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-lg); backdrop-filter: blur(6px); }
@media (max-width: 720px) { .sticky-actions { flex-wrap: wrap; } .sticky-actions .grow { flex-basis: 100%; } }

/* ---- phone check (SICKW) and unlock sites ---- */
.imei-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.imei-row > .input { flex: 1 1 220px; min-width: 0; }
.unlock-tools { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--cloud); }
.unlock-sites { display: flex; flex-wrap: wrap; gap: 8px; }
.unlock-site { flex: 0 1 auto; max-width: 100%; justify-content: flex-start; text-align: left; min-width: 0; }
.unlock-site .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unlock-site > svg:last-child { color: var(--slate); }
.unlock-site-off { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 16px; border-radius: var(--r-control); border: 1px dashed var(--border-strong); background: var(--white); color: var(--slate); font-weight: 700; }
.unlock-site-off a, .unlock-site-off .small { white-space: nowrap; font-size: 14px; }
.pc-intro { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn.pc-run { max-width: 100%; white-space: normal; text-align: left; }
.chip .pc-price { font-weight: 400; color: var(--slate); }
.chip[aria-pressed='true'] .pc-price { color: rgba(255, 255, 255, 0.8); }
.pc-result { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--r-card); border: 1px solid var(--border-strong); background: var(--white); box-shadow: var(--shadow); }
.pc-result.pc-failed { border-color: #F4D9A6; background: var(--amber-soft); box-shadow: none; }
.pc-result-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.pc-lines { display: grid; grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); margin: 0; border-top: 1px solid var(--border); }
.pc-lines dt, .pc-lines dd { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.pc-lines dt { padding-right: 20px; color: var(--slate); font-size: 14px; font-weight: 700; }
.pc-lines .pc-full { grid-column: 1 / -1; color: var(--slate); }
.pc-lines .pc-good { color: var(--green); font-weight: 700; }
.pc-lines .pc-bad { color: var(--red); font-weight: 700; }
.pc-lines .pc-warn { color: var(--amber); font-weight: 700; }
.pc-lines .pc-good::before, .pc-lines .pc-bad::before, .pc-lines .pc-warn::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.pc-text { margin: 0; white-space: pre-wrap; font-family: inherit; }
.sheet .list-row[aria-current='true'] { background: var(--blue-soft); }
@media (max-width: 720px) {
  .pc-lines { grid-template-columns: minmax(0, 1fr); }
  .pc-lines dt { padding-bottom: 0; border-bottom: 0; }
}

/* ---- points, member QR, repair tickets ---- */
.qr { display: block; }
.points-box { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-card); background: var(--amber-soft); border: 1px solid var(--border); }
.points-box > .svg-ic { color: var(--amber); flex: none; }
.points-head { display: flex; gap: 16px; align-items: center; }
.points-head .big { font-size: 32px; line-height: 38px; font-weight: 800; }
.num.neg { color: var(--red); }
.person .in { font-size: 12px; line-height: 16px; color: var(--green); font-weight: 700; }
.receipt .qrwrap { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 8px 0 4px; text-align: center; }
.receipt .rewards .c.strong { letter-spacing: 0.06em; }
.receipt .rewards .rw { display: flex; align-items: center; gap: 8px; }
.receipt .rewards .rw .qr { flex: none; }
.receipt .rewards .rw-t { flex: 1; min-width: 0; }
.receipt .rewards .rw-t > .strong:first-child { letter-spacing: 0.06em; }
.member-card .qrwrap .strong { font-size: 16px; letter-spacing: 0.06em; }
.invoice .inv-rewards { display: flex; gap: 14px; align-items: center; border: 1px solid #ccc; border-radius: 8px; padding: 10px 12px; margin: 14px 0; }
.receipt .ticket-no { text-align: center; font-size: 30px; line-height: 36px; font-weight: 800; letter-spacing: 0.03em; margin: 4px 0; }
.receipt .big-dev { font-size: 18px; line-height: 24px; font-weight: 700; }
.receipt .todo { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0; }
.receipt .todo .chk { flex: none; width: 14px; height: 14px; border: 1.5px solid #000; border-radius: 2px; margin-top: 3px; }
.receipt .checks .rl { font-size: 13px; line-height: 18px; }

/* ---- buy phone / trade-in ---- */
.qa { display: grid; gap: 6px; }
.qa-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.offer-box { padding: 14px 16px; border-radius: var(--r-card); background: var(--green-soft); border: 1px solid var(--border); }
.offer-box .big { font-size: 34px; line-height: 40px; font-weight: 800; }
/* ---------- buy a phone: SICKW results, thumbprint, printouts ---------- */
.imei-result { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--cloud); }
.imei-result.tone-green { background: var(--green-soft); border-color: #BFE6D2; }
.imei-result.tone-red { background: var(--red-soft); border-color: #F2C4C6; }
.imei-result.tone-amber { background: var(--amber-soft); border-color: #F4D9A6; }
.imei-result .badge { white-space: normal; overflow-wrap: anywhere; }
.imei-sec { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.imei-grid { display: grid; grid-template-columns: minmax(150px, max-content) 1fr; gap: 3px 16px; margin: 6px 0 0; font-size: 14px; line-height: 20px; }
.imei-grid dt { color: var(--slate); font-weight: 700; }
.imei-grid dd { margin: 0; overflow-wrap: anywhere; }
.imei-grid dd.full { grid-column: 1 / -1; }
.imei-grid .v-green { color: var(--green); font-weight: 700; }
.imei-grid .v-red { color: var(--red); font-weight: 700; }
.imei-grid .v-amber { color: var(--amber); font-weight: 700; }
@media (max-width: 720px) { .imei-grid { grid-template-columns: 1fr; gap: 0; } .imei-grid dd { margin-bottom: 6px; } }
.suggest { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; background: var(--blue-soft); }
.suggest svg { width: 20px; height: 20px; color: var(--blue); flex: none; }
.thumb-row { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.thumb-slot { width: 120px; height: 150px; flex: none; display: flex; align-items: center; justify-content: center; text-align: center; border: 1.5px dashed var(--border-strong); border-radius: 12px; background: var(--white); color: var(--slate); font-size: 13px; overflow: hidden; }
.thumb-slot img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.thumb-slot svg { width: 40px; height: 40px; color: var(--border-strong); }
.thumb-slot.small-slot { width: 64px; height: 80px; border-style: solid; }
.print-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.print-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--white); color: var(--navy); font: inherit; text-align: left; cursor: pointer; min-height: 44px; }
.print-choice:hover { border-color: var(--navy); }
.print-choice svg { width: 24px; height: 24px; color: var(--blue); }
.print-choice .t { font-weight: 700; }
.print-choice .s { font-size: 13px; line-height: 18px; color: var(--slate); }
.saved-card { border-color: #BFE6D2; background: var(--green-soft); }
.saved-card > .row svg { width: 24px; height: 24px; color: var(--green); }
@media (max-width: 720px) { .print-choices { grid-template-columns: 1fr; } }
.invoice .imei-print { margin-top: 14px; border: 1px solid #C9D6EA; border-radius: 6px; padding: 8px 10px; font-size: 10.5px; line-height: 14px; break-inside: avoid; }
.invoice .imei-print dl { display: grid; grid-template-columns: max-content 1fr max-content 1fr; gap: 1px 10px; margin: 2px 0 6px; }
.invoice .imei-print dt { color: #555; font-weight: 700; }
.invoice .imei-print dd { margin: 0; overflow-wrap: anywhere; }

/* The sticker for the back of a bought phone: 2.25 x 1.25 in label printer. */
@page label { size: 2.25in 1.25in; margin: 0; }
@media print { #print-root > .label { page: label; width: 2.25in; } }
.plabel { width: 2.25in; height: 1.25in; box-sizing: border-box; padding: 0.06in 0.09in 0.05in; display: flex; flex-direction: column; overflow: hidden; background: #fff; color: #000; font-size: 7.5pt; line-height: 9pt; break-after: avoid; }
.plabel .pl-top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: 7pt; white-space: nowrap; }
.plabel .pl-no { font-size: 11.5pt; line-height: 13pt; font-weight: 800; letter-spacing: 0.02em; }
.plabel .pl-dev { font-size: 8.5pt; line-height: 10pt; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plabel .pl-ln { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plabel .pl-bc { margin-top: auto; height: 0.27in; }
.plabel .pl-bc svg { display: block; width: 100%; height: 100%; }
.sigpad { position: relative; border: 1.5px dashed var(--border-strong); border-radius: var(--r-card); background: var(--white); height: 180px; touch-action: none; }
.sigpad canvas { width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: none; }
.sigpad .hint-in { position: absolute; left: 16px; bottom: 14px; color: var(--slate); pointer-events: none; }
.sigpad .clear { position: absolute; right: 12px; top: 8px; }
.photo-row { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-row .ph { position: relative; width: 104px; height: 104px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: #F7F9FD; display: block; }
.photo-row .ph img { width: 100%; height: 100%; object-fit: cover; }
.photo-row .tag { position: absolute; left: 4px; bottom: 4px; font-size: 11px; font-weight: 700; background: rgba(255,255,255,.9); border-radius: 6px; padding: 0 6px; }
.photo-row .x { position: absolute; right: 4px; top: 4px; width: 24px; height: 24px; border-radius: 12px; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; }
.sig-img { max-width: 100%; height: 80px; object-fit: contain; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.receipt .sig-print { display: inline-block; vertical-align: top; width: 100%; max-height: 70px; object-fit: contain; margin-top: 8px; }
.invoice .record-sign { display: flex; gap: 24px; align-items: flex-end; margin-top: 18px; }
.invoice .record-sign .sigblock { flex: 1; }
.invoice .record-sign .sigblock img { display: inline-block; vertical-align: bottom; max-height: 70px; max-width: 100%; }
.invoice .record-sign .line { border-top: 1px solid #000; padding-top: 2px; font-size: 12px; }
.invoice .thumb-box { width: 1.3in; height: 1.6in; border: 1.5px solid #000; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; font-size: 11px; padding: 4px; box-sizing: border-box; }
.invoice .thumb-box .ti { flex: 1; min-height: 0; width: 100%; text-align: center; line-height: 0; overflow: hidden; }
.invoice .thumb-box .ti img { display: inline-block; max-width: 100%; max-height: 1.3in; object-fit: contain; }
.checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 12px; }

/* ---- special orders: part search, picked part, the two questions, tracking ---- */
.part-panel { border: 1px solid var(--border); border-radius: var(--r-card); background: #FBFCFF; padding: 12px; display: flex; flex-direction: column; gap: 12px; max-height: 560px; overflow-y: auto; }
.part-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; position: sticky; top: -12px; background: #FBFCFF; padding: 4px 0; z-index: 1; }
.part-group { display: flex; flex-direction: column; gap: 4px; }
.part-group-head { display: flex; align-items: center; gap: 8px; padding: 4px 4px 2px; border-bottom: 1px solid var(--border); min-height: 30px; }
.part-row { display: flex; align-items: center; gap: 8px; }
.part-pick { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; border: 1px solid transparent; background: var(--white); cursor: pointer; text-align: left; color: var(--navy); }
.part-pick:hover { border-color: var(--blue); }
.part-thumb { width: 48px; height: 48px; flex: none; border-radius: 8px; background: #fff; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--slate); }
.part-thumb img { width: 100%; height: 100%; object-fit: contain; }
.part-thumb svg { width: 22px; height: 22px; }
.part-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; line-height: 20px; }
.part-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 13px; line-height: 18px; color: var(--slate); margin-top: 2px; }
.part-meta .stock.in { color: var(--green); font-weight: 700; }
.part-meta .stock.out { color: var(--red); font-weight: 700; }
.part-price { display: flex; flex-direction: column; align-items: flex-end; flex: none; text-align: right; }
.part-open { width: 40px; height: 40px; }
.part-more { align-self: flex-start; margin: 2px 10px; font-size: 14px; }
.mini-spin { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--border); border-top-color: var(--blue); border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: middle; flex: none; }
.picked { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--blue-soft); border: 1px solid #C9DAFF; flex-wrap: wrap; }
.choice-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice { text-align: left; border: 1px solid var(--border-strong); border-radius: 14px; background: var(--white); padding: 12px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; min-height: 64px; color: var(--navy); }
.choice:hover { border-color: var(--blue); }
.choice[aria-pressed='true'] { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.choice .t { font-weight: 700; }
.choice .s { font-size: 13px; line-height: 18px; color: var(--slate); }
.order-row .thumb { width: 48px; height: 48px; color: var(--slate); }
.order-row .thumb img.pic { width: 48px; height: 48px; }
.order-flags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.eta-box { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--cloud); }
.eta-box .eta { font-size: 22px; line-height: 28px; font-weight: 700; }
.search-group { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 6px; }
.search-group-head { display: flex; align-items: center; gap: 8px; padding: 4px 12px; font-size: 12px; line-height: 16px; font-weight: 700; color: var(--slate); text-transform: uppercase; letter-spacing: 0.05em; }
.search-hit .part-thumb { width: 40px; height: 40px; }
@media (max-width: 720px) { .choice-row { grid-template-columns: 1fr; } .part-price .tiny { display: none; } }

/* ---- the sticker for the back of the phone: DYMO 30334 (2.25 x 1.25 in) or 30252 (3.5 x 1.125 in) ---- */
@page sticker { size: 2.25in 1.25in; margin: 0; }
@page sticker-wide { size: 3.5in 1.125in; margin: 0; }
.osticker { box-sizing: border-box; width: 2.25in; height: 1.25in; padding: 0.05in 0.07in; background: #fff; color: #000; font-family: Arial, 'DejaVu Sans', sans-serif; display: flex; flex-direction: column; gap: 1px; overflow: hidden; border: 1px dashed var(--border-strong); }
.osticker.s30252 { width: 3.5in; height: 1.125in; }
.osticker .os-top { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.osticker .os-no { font-size: 15pt; line-height: 1; font-weight: 800; letter-spacing: 0.02em; }
.osticker .os-pay { font-size: 8pt; line-height: 1.1; font-weight: 800; border: 1.5px solid #000; border-radius: 3px; padding: 1px 4px; white-space: nowrap; }
.osticker .os-pay.paid { background: #000; color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.osticker .os-cust { font-size: 7.5pt; line-height: 1.15; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.osticker .os-item { font-size: 6.5pt; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.osticker .os-dates { font-size: 6pt; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.osticker .os-bar { margin-top: auto; height: 0.22in; }
.osticker .os-bar svg { width: 100%; height: 100%; display: block; }
.osticker.s30252 .os-item { -webkit-line-clamp: 1; }
@media print {
  #print-root .sticker { page: sticker; width: 2.25in; }
  #print-root .sticker-wide { page: sticker-wide; width: 3.5in; }
  #print-root .osticker { border: 0; }
}
.track-edit { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--border); padding-top: 10px; margin-top: 4px; }
.track-edit > label { font-size: 14px; line-height: 20px; font-weight: 700; margin-top: 4px; }
.form-grid > * { min-width: 0; }
@media (max-width: 720px) {
  .part-panel { padding: 10px; max-height: 70vh; }
  .part-panel-head .chips { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: 2px; }
  .part-panel-head .chip { flex: none; }
  .part-open { display: none; }
  .part-pick { gap: 10px; padding: 8px; }
}

/* ---- scanning a driver license (Buy a phone, Trade-in) ---- */
.banner.bad { background: var(--red-soft); }
.banner.bad svg { color: var(--red); }
.id-pill { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--green-soft); border: 1px solid #BFE6D2; }
.id-pill > svg { width: 24px; height: 24px; color: var(--green); flex: none; }
.id-pill.bad { background: var(--red-soft); border-color: #F2C4C6; }
.id-pill.bad > svg { color: var(--red); }
.scan-zone { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 22px 16px; border: 2px dashed var(--border-strong); border-radius: 16px; background: var(--cloud); }
.scan-zone.reading { border-color: var(--blue); background: var(--blue-soft); }
.scan-zone .card-back { width: 172px; height: 108px; color: var(--slate); }
.scan-video { position: relative; width: 100%; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 16 / 10; }
.scan-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-guide { position: absolute; left: 8%; right: 8%; top: 30%; bottom: 30%; border: 3px solid rgba(255, 255, 255, 0.9); border-radius: 10px; box-shadow: 0 0 0 2000px rgba(0, 0, 0, 0.35); }

/* ---- the big label for the back of a bought phone: Brother DK-1202 (62 x 100 mm) or DYMO 30256 (2-5/16 x 4 in) ---- */
@page phone-label { size: 62mm 100mm; margin: 0; }
@page phone-label-4 { size: 2.3125in 4in; margin: 0; }
@media print {
  #print-root > .phone-label { page: phone-label; width: 62mm; }
  #print-root > .phone-label-4 { page: phone-label-4; width: 2.3125in; }
}
.plabel-big { box-sizing: border-box; width: 62mm; height: 100mm; padding: 3mm 3.5mm 2.5mm; display: flex; flex-direction: column; gap: 0.9mm; overflow: hidden; background: #fff; color: #000; font-family: Arial, 'DejaVu Sans', sans-serif; break-after: avoid; }
.plabel-big.d30256 { width: 2.3125in; height: 4in; }
.plabel-big hr { border: 0; border-top: 0.45mm solid #000; margin: 0.6mm 0; width: 100%; }
.plabel-big .pb-top { display: flex; justify-content: space-between; align-items: baseline; gap: 2mm; font-size: 6.5pt; line-height: 1.1; font-weight: 700; text-transform: uppercase; letter-spacing: 0; white-space: nowrap; }
.plabel-big .pb-top span:first-child { overflow: hidden; text-overflow: ellipsis; }
.plabel-big .pb-no { font-size: 21pt; line-height: 1; font-weight: 800; letter-spacing: 0.02em; }
.plabel-big .pb-bar { height: 8mm; }
.plabel-big .pb-imei-bar { height: 7.5mm; }
.plabel-big .pb-bar svg, .plabel-big .pb-imei-bar svg { display: block; width: 100%; height: 100%; }
.plabel-big .pb-model { font-size: 16pt; line-height: 1.05; font-weight: 800; }
.plabel-big .pb-spec { display: flex; align-items: baseline; gap: 2.5mm; font-size: 10pt; line-height: 1.15; }
.plabel-big .pb-gb { font-size: 15pt; font-weight: 800; }
.plabel-big .pb-carrier { font-size: 11.5pt; line-height: 1.15; font-weight: 700; }
.plabel-big .pb-imei-l { font-size: 7pt; line-height: 1; font-weight: 700; letter-spacing: 0.08em; }
.plabel-big .pb-imei { font-family: 'DejaVu Sans Mono', 'Courier New', monospace; font-size: 12.5pt; line-height: 1.1; font-weight: 700; letter-spacing: 0.02em; }
.plabel-big .pb-paid { display: flex; justify-content: space-between; align-items: baseline; font-size: 9pt; font-weight: 800; letter-spacing: 0.05em; }
.plabel-big .pb-paid .amt { font-size: 18pt; letter-spacing: 0; }
.plabel-big .pb-sub { font-size: 8.5pt; line-height: 1.15; }
.plabel-big .pb-hold { border: 0.55mm solid #000; border-radius: 1.5mm; padding: 0.8mm 2mm; font-size: 10.5pt; line-height: 1.15; font-weight: 800; text-align: center; }
.plabel-big .pb-foot { margin-top: auto; font-size: 7.5pt; line-height: 1.15; }

/* ---- the technician's repair label (Brother 62 × 100 mm): black TECH banner, nothing like the customer's ticket ---- */
.tlabel { box-sizing: border-box; width: 100mm; height: 62mm; border: 1mm solid #000; display: flex; flex-direction: column; overflow: hidden; background: #fff; color: #000; font-family: Arial, 'DejaVu Sans', sans-serif; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.tlabel.d30256 { width: 4in; height: 2.3125in; }
.tlabel .tl-banner { background: #000; color: #fff; display: flex; align-items: center; gap: 2.5mm; padding: 0.8mm 2.2mm 1mm; }
.tlabel .tl-tech { font-size: 24pt; line-height: 1; font-weight: 900; letter-spacing: 0.08em; }
.tlabel .tl-sub { font-size: 6pt; line-height: 1.2; font-weight: 800; letter-spacing: 0.05em; }
.tlabel .tl-due { margin-left: auto; font-size: 6.5pt; line-height: 1.1; font-weight: 800; text-align: right; letter-spacing: 0.04em; }
.tlabel .tl-due b { font-size: 11pt; letter-spacing: 0; }
.tlabel .tl-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 47% 1fr; }
.tlabel .tl-left { display: flex; flex-direction: column; gap: 0.5mm; padding: 1mm 2mm 0 2.2mm; border-right: 0.45mm solid #000; min-width: 0; overflow: hidden; }
.tlabel .tl-right { display: flex; flex-direction: column; gap: 0.6mm; padding: 1mm 2.2mm 0 2mm; min-width: 0; overflow: hidden; }
.tlabel .tl-no { font-size: 19pt; line-height: 1; font-weight: 900; letter-spacing: 0.01em; }
.tlabel .tl-bar { height: 6.5mm; }
.tlabel .tl-bar svg { display: block; width: 100%; height: 100%; }
.tlabel .tl-dev { font-size: 12pt; line-height: 1.05; font-weight: 900; }
.tlabel .tl-spec { font-size: 6.6pt; line-height: 1.2; overflow-wrap: anywhere; }
.tlabel .tl-h { font-size: 7pt; font-weight: 900; letter-spacing: 0.1em; }
.tlabel .tl-todo { display: flex; gap: 1.3mm; align-items: flex-start; font-size: 8.5pt; line-height: 1.15; font-weight: 700; }
.tlabel .tl-todo .chk { flex: none; width: 2.8mm; height: 2.8mm; border: 0.45mm solid #000; margin-top: 0.3mm; }
.tlabel .tl-part { font-size: 6.5pt; font-weight: 400; }
.tlabel .tl-more, .tlabel .tl-issue, .tlabel .tl-fail { font-size: 6.8pt; line-height: 1.2; }
.tlabel .tl-issue { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tlabel .tl-fail { font-weight: 800; }
.tlabel .tl-foot { border-top: 0.45mm solid #000; padding: 0.6mm 2.2mm 0.7mm; font-size: 6.2pt; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tlabel .tl-foot > div { overflow: hidden; text-overflow: ellipsis; }
@page tech-wide { size: 100mm 62mm; margin: 0; }
@page tech-wide-4 { size: 4in 2.3125in; margin: 0; }
@media print {
  #print-root > .tech-wide { page: tech-wide; width: 100mm; }
  #print-root > .tech-wide-4 { page: tech-wide-4; width: 4in; }
}
/* The customer's copy says so in a box under the logo. */
.receipt .copy-tag { margin: 6px auto 4px; padding: 2px 10px; border: 2px solid #000; border-radius: 6px; width: fit-content; font-size: 13px; font-weight: 800; letter-spacing: 0.14em; }

/* ---- thermal receipts: the logo on top, the store's policies at the bottom ---- */
.receipt .palms { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto 6px; }
.receipt .policies ul { margin: 4px 0 0; padding-left: 16px; font-size: 12px; line-height: 16px; }
.receipt .policies li { margin: 3px 0; }

/* ---- trade-ins on the sale ---- */
.trade-row { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; border-radius: 10px; background: var(--green-soft); font-size: 14px; line-height: 18px; }
.trade-row > svg { width: 20px; height: 20px; color: var(--green); flex: none; }
.trade-prompt { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 12px; background: var(--blue-soft); }
.trade-prompt > svg { width: 24px; height: 24px; color: var(--blue); flex: none; }

/* ---- Today: a color for each tile ---- */
.tile { position: relative; overflow: hidden; transition: transform .12s ease, box-shadow .12s ease; }
a.tile:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(11, 22, 45, 0.08); }
.tile .ic { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; color: #fff; }
.tile .ic svg { width: 20px; height: 20px; }
.tile.t-green { background: linear-gradient(140deg, #DDF4E7 0%, #FFFFFF 75%); border-color: #BFE6D2; }
.tile.t-green .ic { background: #12A150; }
.tile.t-green .v { color: #0B7A3B; }
.tile.t-blue { background: linear-gradient(140deg, #E1EBFF 0%, #FFFFFF 75%); border-color: #C9DAFF; }
.tile.t-blue .ic { background: #0057FF; }
.tile.t-blue .v { color: #0046CC; }
.tile.t-amber { background: linear-gradient(140deg, #FFF0D6 0%, #FFFFFF 75%); border-color: #F4D9A6; }
.tile.t-amber .ic { background: #E08A00; }
.tile.t-amber .v { color: #A86400; }
.tile.t-purple { background: linear-gradient(140deg, #EEE6FF 0%, #FFFFFF 75%); border-color: #D9C8FF; }
.tile.t-purple .ic { background: #7C3AED; }
.tile.t-purple .v { color: #5B21B6; }
.tile.t-red { background: linear-gradient(140deg, #FDE3E4 0%, #FFFFFF 75%); border-color: #F2C4C6; }
.tile.t-red .ic { background: #E5252A; }
.tile.t-red .v { color: #B91C1F; }
.tile.t-teal { background: linear-gradient(140deg, #D9F5F3 0%, #FFFFFF 75%); border-color: #B5E6E2; }
.tile.t-teal .ic { background: #0E9F9A; }
.tile.t-teal .v { color: #0A7672; }
.tile.t-indigo { background: linear-gradient(140deg, #E4E7FF 0%, #FFFFFF 75%); border-color: #C9CEFF; }
.tile.t-indigo .ic { background: #4F46E5; }
.tile.t-indigo .v { color: #3730A3; }
.visits { display: flex; flex-direction: column; gap: 8px; }
.visit { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--white); }
.visit .when { font-weight: 800; min-width: 76px; color: var(--navy); }
.visit .who { flex: 1; min-width: 0; }
.visit.arrived, .visit.no_show { opacity: .7; }
@media (max-width: 640px) { .visit { flex-wrap: wrap; } .visit .row-wrap { width: 100%; } }

/* Big money amounts shrink so they stay inside the tile. */
.tile .v.long { font-size: 22px; line-height: 36px; }
.tile .v.xlong { font-size: 18px; line-height: 36px; }
/* Keep the policies together (title and all), so a long receipt breaks before them, not inside. */
.receipt .policies { break-inside: avoid; page-break-inside: avoid; }
/* The full West Coast Wireless logo on receipts: big enough to read the phone number and address. */
.receipt .logo.logo-full { display: block; width: 84%; max-width: 300px; max-height: none; height: auto; margin: 2px auto 4px; }
/* A barcode never splits from its number across two pages. */
.receipt .bar { break-inside: avoid; page-break-inside: avoid; }

/* ---------- Messages & calls ---------- */
.nav-count { position: absolute; top: 4px; right: 14px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: var(--white); font-size: 12px; line-height: 20px; font-weight: 700; text-align: center; }
.msg-layout { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
.msg-list { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.msg-list .list { max-height: calc(100dvh - 300px); overflow-y: auto; }
.msg-row { align-items: flex-start; }
.msg-row[aria-current='true'] { background: var(--blue-soft); }
.msg-row.unread .t { color: var(--blue); }
.msg-row .s { white-space: nowrap; }
.msg-thread { position: sticky; top: 0; min-width: 0; }
.msg-empty { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-card); padding: 48px 24px; }
.msg-thread-inner { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-card); padding: 16px; display: flex; flex-direction: column; gap: 12px; height: calc(100dvh - 200px); min-height: 420px; }
.msg-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.msg-head a { color: var(--navy); }
.msg-back { display: none; }
.msg-bubbles { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 4px 2px; }
.msg-day { text-align: center; font-size: 12px; line-height: 16px; color: var(--slate); font-weight: 700; margin: 10px 0 4px; }
.bubble { max-width: 78%; padding: 10px 14px; border-radius: 18px; width: fit-content; }
.bubble.in { background: var(--cloud); border: 1px solid var(--border); border-bottom-left-radius: 6px; }
.bubble.out { margin-left: auto; background: var(--blue); color: var(--white); border-bottom-right-radius: 6px; }
.bubble.out.ai { background: #5B3FD6; }
.bubble.out.sys { background: var(--navy); }
.try-bubbles { max-height: 380px; border: 1px solid var(--border); border-radius: 12px; padding: 10px; }
.try-bubbles .bubble { white-space: pre-wrap; }
.try-used { margin-top: 6px; opacity: 0.85; }
.try-input { flex: 1 1 240px; min-width: 0; }
.bubble.bad { background: var(--red-soft); color: var(--red); border: 1px solid #F2C4C6; }
.bubble-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble-meta { display: flex; align-items: center; gap: 4px; font-size: 12px; line-height: 16px; opacity: 0.8; margin-top: 4px; }
.bubble-meta svg { width: 13px; height: 13px; }
.bubble.out .bubble-meta { justify-content: flex-end; }
.bubble a { color: inherit; }
.msg-compose { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--border); padding-top: 12px; }
.msg-compose .textarea { min-height: 72px; }
.consent-box { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--cloud); }
.consent-box input { width: 22px; height: 22px; accent-color: var(--blue); flex: none; margin-top: 2px; }
.setup-links code { font-size: 13px; background: var(--cloud); border: 1px solid var(--border); border-radius: 6px; padding: 2px 6px; overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .msg-layout { grid-template-columns: 1fr; }
  .msg-layout.has-thread .msg-list { display: none; }
  .msg-layout:not(.has-thread) .msg-thread { display: none; }
  .msg-back { display: inline-flex; }
  .msg-head .grow { flex: 1 1 calc(100% - 56px); }
  .msg-thread-inner { height: auto; min-height: calc(100dvh - 230px); padding: 12px; }
  .msg-bubbles { min-height: 260px; max-height: 60dvh; }
  .bubble { max-width: 88%; }
}
/* ---------- repair check-in menu ---------- */
.fix-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.fix-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 14px 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--white); color: var(--navy); text-align: left; cursor: pointer; min-height: 150px; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.fix-tile:hover, .fix-tile:focus-visible { border-color: var(--blue); box-shadow: 0 6px 18px rgba(11, 92, 255, .12); transform: translateY(-1px); }
.fix-tile .art { width: 64px; height: 64px; border-radius: 14px; background: var(--cloud); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.fix-tile .t { font-weight: 800; font-size: 17px; line-height: 22px; }
.fix-tile .s { font-size: 13px; line-height: 18px; color: var(--slate); }
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.model-btn { padding: 12px 12px; min-height: 52px; border: 1px solid var(--border); border-radius: 12px; background: var(--white); color: var(--navy); font-weight: 700; font-size: 15px; line-height: 20px; text-align: left; cursor: pointer; }
.model-btn:hover, .model-btn:focus-visible { border-color: var(--blue); background: #F2F7FF; }
.typed-model { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding-top: 4px; border-top: 1px dashed var(--border); }
.typed-model .field { flex: 1 1 220px; margin: 0; }
.parts-menu { border-top: 1px solid var(--border); padding-top: 12px; }
.svc.part { position: relative; }
.svc.part.has-img { padding-right: 64px; }
.svc.part .pimg { position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: #fff; }
@media (max-width: 700px) {
  .fix-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fix-tile { min-height: 130px; }
  .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* The special-order sticker on the Brother 2.4 x 3.9 in label (62 x 100 mm, portrait). */
.osticker-big { box-sizing: border-box; width: 62mm; height: 100mm; padding: 3mm 3.5mm; background: #fff; color: #000; font-family: Arial, 'DejaVu Sans', sans-serif; display: flex; flex-direction: column; gap: 1.2mm; overflow: hidden; border: 1px dashed var(--border-strong); }
.osticker-big .ob-top { display: flex; justify-content: space-between; font-size: 7.5pt; font-weight: 800; letter-spacing: 0.04em; }
.osticker-big .ob-no { font-size: 26pt; line-height: 1; font-weight: 900; letter-spacing: 0.01em; }
.osticker-big .ob-bar { height: 11mm; }
.osticker-big .ob-bar svg { width: 100%; height: 100%; display: block; }
.osticker-big .ob-pay { font-size: 14pt; font-weight: 900; text-align: center; border: 2px solid #000; border-radius: 4px; padding: 1mm; }
.osticker-big .ob-pay.paid { background: #000; color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.osticker-big .ob-cust { font-size: 13pt; line-height: 1.15; font-weight: 800; }
.osticker-big .ob-phone { font-size: 11pt; font-weight: 700; }
.osticker-big .ob-item { font-size: 10pt; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.osticker-big .ob-dev { font-size: 9pt; line-height: 1.2; }
.osticker-big .ob-dates { font-size: 8.5pt; line-height: 1.2; }
.osticker-big .ob-foot { margin-top: auto; font-size: 7pt; font-weight: 800; letter-spacing: 0.04em; text-align: center; border-top: 1px solid #000; padding-top: 1mm; }
@media print { #print-root .osticker-big { border: 0; } }

/* ---- calls and the phone agent ---- */
.call-row { cursor: pointer; align-items: flex-start; }
.call-row > .svg-ic { margin-top: 2px; }
.call-summary { display: block; font-size: 14px; line-height: 20px; color: var(--navy); margin-top: 4px; }
.call-transcript { max-height: 50dvh; border: 1px solid var(--border); border-radius: 12px; padding: 10px; flex: none; }
@media (max-width: 720px) { .call-row > .btn { display: none; } }
.line-edit { display: inline-flex; color: var(--blue); }
.line-edit svg { width: 18px; height: 18px; }
/* BUY BACK / TRADE-IN on every buyback printout, so the two can't be mixed up. */
.kind-banner { background: #000; color: #fff; text-align: center; font-size: 26px; line-height: 34px; font-weight: 900; letter-spacing: 0.12em; padding: 3px 8px; margin: 6px 0 4px; border-radius: 4px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.kind-banner.sm { font-size: 18px; line-height: 24px; }
.invoice .right .kind-banner { display: inline-block; font-size: 22px; line-height: 30px; margin: 0 0 6px; }
.plabel-big .pb-kind { background: #000; color: #fff; text-align: center; font-size: 15pt; line-height: 1.15; font-weight: 900; letter-spacing: 0.12em; margin: -0.5mm -0.5mm 0.6mm; padding: 0.4mm 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.plabel .pl-kind { font-weight: 900; letter-spacing: 0.04em; }
.policies li.sub { margin-left: 14px; list-style: circle; }
.policies .policy-sign { text-align: center; margin-top: 6px; font-size: 12px; line-height: 16px; }
.invoice .policies { margin-top: 14px; font-size: 12px; line-height: 17px; break-inside: avoid; page-break-inside: avoid; }
.invoice .policies hr { border: 0; border-top: 1px solid #000; }
.invoice .policies ul { margin: 6px 0 0; padding-left: 18px; }
.invoice .policies li { margin: 3px 0; }
.confirm-all { align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--amber-soft); }
.confirm-all input { margin-top: 3px; }
.file-pick { position: relative; overflow: hidden; width: fit-content; cursor: pointer; }
.file-pick input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ---------- thermal receipts and tickets: RepairDesk's sizes ----------
   Measured from RepairDesk's own thermal receipt (mPDF): DejaVu Sans Condensed, 9 pt (12 px)
   text on 12 pt (16 px) lines, bold labels, 18 pt (24 px) titles, 12 pt (16 px) totals, 6 pt fine
   print, a 10 mm tall barcode. */
.receipt { font-family: 'DejaVu Sans Condensed', 'DejaVu Sans', Arial, sans-serif; font-size: 12px; line-height: 16px; }
.receipt .logo.logo-full { width: 60%; max-width: 200px; margin: 0 auto 2px; }
.receipt .head .site { font-size: 12px; line-height: 16px; }
.receipt .biz { font-size: 16px; line-height: 20px; }
.receipt hr { margin: 5px 0; }
.receipt .dim { font-size: 10px; line-height: 13px; }
.receipt .doc { font-size: 13px; line-height: 17px; }
.receipt .meta { font-size: 12px; line-height: 16px; }
.receipt table.rtable { font-size: 12px; line-height: 16px; }
.receipt table.rtable th { font-size: 10px; padding: 1px 0; }
.receipt table.rtable td { padding: 2px 0 1px; }
.receipt table.rtable td.q, .receipt table.rtable th.q { width: 22px; }
.receipt .tot { font-size: 16px; line-height: 20px; }
.receipt .bar { margin: 3px 0 2px; gap: 0; }
.receipt .bar svg { max-width: 170px; height: 38px; }
.receipt .ticket-no { font-size: 24px; line-height: 28px; margin: 2px 0; }
.receipt .big-dev { font-size: 16px; line-height: 20px; }
.receipt .big { font-size: 18px; line-height: 24px; }
.receipt .copy-tag { margin: 4px auto 2px; font-size: 12px; padding: 1px 8px; }
.receipt .box { padding: 4px 6px; margin: 6px 0; }
.receipt .sign { margin-top: 12px; }
.receipt .terms { font-size: 8px; line-height: 11px; }
.receipt .policies > .c.strong { font-size: 9px; line-height: 12px; }
/* The policies flow as one small paragraph on receipts (a list wastes paper); full pages keep the list. */
.receipt .policies ul { margin: 1px 0 0; padding: 0; list-style: none; font-size: 8px; line-height: 10px; }
.receipt .policies li, .receipt .policies li.sub { display: inline; margin: 0; list-style: none; }
.receipt .policies li + li::before { content: ' \00B7  '; }
.receipt .policies li.lead + li::before { content: ' '; }
.receipt .policies .policy-sign { margin-top: 2px; font-size: 8px; line-height: 10px; }
.receipt .policies .policy-sign > div { display: inline; }
.receipt .policies .policy-sign > div + div::before { content: ' \00B7  '; font-weight: 400; }
.receipt .pickup-note { margin-top: 4px; font-size: 11px; line-height: 14px; }
/* A receipt still too long for one paper is made tighter right before printing (fitThermalPages):
   the printer's page is often 297 mm long, and a longer receipt comes out on two papers. */
#print-root .thermal > .ticket.tight .receipt .logo.logo-full { width: 46%; }
#print-root .thermal > .ticket.tight .receipt hr { margin: 3px 0; }
#print-root .thermal > .ticket.tight .receipt .bar svg { height: 30px; }
#print-root .thermal > .ticket.tight .receipt .meta, #print-root .thermal > .ticket.tight .receipt table.rtable { line-height: 14px; }
#print-root .thermal > .ticket.tight .receipt .policies ul, #print-root .thermal > .ticket.tight .receipt .policies .policy-sign { font-size: 7px; line-height: 8.5px; }
#print-root .thermal > .ticket.tight .receipt .site-line { margin-top: 3px; }
#print-root .thermal > .ticket.tighter .receipt .logo.logo-full { width: 38%; }
#print-root .thermal > .ticket.tighter .receipt .meta, #print-root .thermal > .ticket.tighter .receipt table.rtable, #print-root .thermal > .ticket.tighter .receipt { font-size: 11px; line-height: 13px; }
#print-root .thermal > .ticket.tighter .receipt .policies ul, #print-root .thermal > .ticket.tighter .receipt .policies .policy-sign { font-size: 6.5px; line-height: 7.5px; }
.receipt .kind-banner { font-size: 20px; line-height: 26px; margin: 4px 0 2px; }
.receipt .kind-banner.sm { font-size: 14px; line-height: 19px; }
.receipt .site-line { margin: 5px 0 0; }
.receipt .site-line span { display: none; }
.receipt .site-line strong { font-size: 14px; line-height: 18px; }
.receipt .todo { margin: 3px 0; }
.receipt .checks .rl { font-size: 12px; line-height: 16px; }

/* Lifetime repairs (Repairs → All time). */
.lifetime { display: flex; align-items: center; gap: 16px; padding: 14px 18px; }
.lifetime .lt-n { font-size: 34px; line-height: 40px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }

/* A newer STORE OS is live (see lib/update.tsx). */
.update-bar { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 16px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 6px 24px rgba(10, 37, 64, 0.25); }
.update-bar button { border: 0; border-radius: 999px; padding: 6px 14px; background: #fff; color: var(--navy); font-weight: 800; cursor: pointer; }
@media print { .update-bar { display: none; } }

/* The technician's ticket on receipt paper (Repairs → Tech ticket). */
.receipt.tech-ticket .tt-banner { display: flex; align-items: center; gap: 10px; background: #000; color: #fff; border-radius: 4px; padding: 3px 10px; margin-bottom: 2px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.receipt.tech-ticket .tt-tech { font-size: 24px; line-height: 30px; font-weight: 900; letter-spacing: 0.12em; }
.receipt.tech-ticket .tt-sub { font-size: 10px; line-height: 12px; font-weight: 800; letter-spacing: 0.04em; }
.receipt.tech-ticket .tt-due { font-weight: 800; font-size: 13px; }
.receipt.tech-ticket .tt-h { margin-top: 4px; letter-spacing: 0.05em; }

/* The STORE OS mark, bottom left of every receipt, ticket and invoice (ui/legal.tsx). */
.sos-mark { text-align: left; color: #000; margin-top: 6px; white-space: nowrap; }
.sos-mark img { width: 20px; height: 20px; vertical-align: middle; margin-right: 6px; filter: grayscale(1) contrast(1.3); }
.sos-mark .sos-t { display: inline-block; vertical-align: middle; font-size: 9px; line-height: 11px; white-space: normal; }
.sos-mark .sos-t strong { font-size: 10px; letter-spacing: 0.06em; }
.invoice .sos-mark { margin-top: 18px; }
.invoice .sos-mark img { width: 24px; height: 24px; }
.invoice .sos-mark .sos-t { font-size: 10px; line-height: 13px; }
.invoice .sos-mark .sos-t strong { font-size: 11px; }

/* Settings → Store tablets → setup link. */
.setup-link { padding: 10px 12px; border: 1px dashed var(--border-strong); border-radius: 10px; background: var(--cloud); font: 14px/20px ui-monospace, Menlo, Consolas, monospace; overflow-wrap: anywhere; user-select: all; }
/* A supplier's part already on the repair (tap again to take it off). */
.part-pick[aria-pressed='true'] { border-color: var(--blue); background: var(--blue-soft); }
.part-pick[aria-pressed='true'] .part-name::before { content: '✓ '; color: var(--blue); font-weight: 800; }

/* ---------------------------------------------------------------- real photos on the menus */
/* One look everywhere: the photo on white in a rounded tile, a small blue badge for the action. */
img.photo { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; border-radius: inherit; }
.photo-tile { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 18px; background: #fff; border: 1px solid #E3EAF5; box-shadow: 0 1px 2px rgba(7, 21, 45, 0.06); }
.photo-tile img.photo { padding: 7px; border-radius: 18px; }
.photo-tile > svg.art { width: 82%; height: 82%; }
.photo-badge { position: absolute; right: -7px; bottom: -7px; width: 28px; height: 28px; border-radius: 999px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(7, 21, 45, 0.2); }
.photo-badge svg { width: 15px; height: 15px; }
.task.primary .photo-tile { border-color: transparent; }
.task.primary .photo-badge { background: var(--navy); }
.thumb img.photo { padding: 4px; }

/* "Search customer name": the matches drop down under the box. */
.cust-search { position: relative; }
.cust-drop { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); background: var(--white); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 12px 32px rgba(7, 21, 45, 0.16); padding: 6px; max-height: 360px; overflow-y: auto; }
.cust-hit { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 10px; border: 0; border-radius: 10px; background: none; color: var(--navy); text-align: left; cursor: pointer; min-height: 52px; }
.cust-hit:hover, .cust-hit[aria-selected='true'] { background: var(--blue-soft); }
.cust-hit .t { display: block; font-weight: 700; line-height: 20px; }
.cust-hit .s { display: block; font-size: 13px; line-height: 18px; color: var(--slate); }
.cust-hit.cust-add { border-top: 1px solid var(--border); border-radius: 0 0 10px 10px; margin-top: 4px; }
.cust-hit.cust-add .avatar { background: var(--blue); color: #fff; }
.cust-hit.cust-add .avatar svg { width: 16px; height: 16px; }
.cust-none { padding: 10px 12px; }

/* Trade-in: the last step shows the phone and its value before "Accept Trade-In & Issue Credit". */
.accept-box { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; border: 1.5px solid var(--blue); background: linear-gradient(160deg, #F5F9FF, #EAF2FF); }
.accept-box .ab-dev { display: flex; gap: 14px; align-items: center; }
.accept-box .ab-val { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px solid #CFE0FB; font-weight: 700; }
.accept-box .ab-val .num { font-size: 32px; line-height: 38px; color: var(--blue); }

/* Activations: the five carriers and New Line / Port-In as big buttons. */
.carrier-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.carrier-btn { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--white); color: var(--navy); font-weight: 800; font-size: 17px; text-align: left; cursor: pointer; border-left: 6px solid var(--cc, var(--blue)); }
.carrier-btn .cc-dot { width: 12px; height: 12px; border-radius: 999px; background: var(--cc, var(--blue)); flex: none; }
.carrier-btn[aria-checked='true'] { border-color: var(--cc, var(--blue)); box-shadow: inset 0 0 0 2px var(--cc, var(--blue)); background: #F7FAFF; }
.act-type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.act-type { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; border-radius: 16px; border: 1.5px solid var(--border); background: var(--white); color: var(--navy); text-align: left; cursor: pointer; min-height: 104px; }
.act-type svg { width: 26px; height: 26px; color: var(--blue); }
.act-type .t { font-weight: 800; font-size: 19px; line-height: 24px; }
.act-type .s { font-size: 13px; line-height: 18px; color: var(--slate); }
.act-type[aria-checked='true'] { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1.5px var(--blue); }
@media (max-width: 520px) { .act-type-grid { grid-template-columns: 1fr; } }
.commission-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }

/* ---- the technician's label: DYMO LabelWriter, 89 x 29 mm (RepairDesk's ticket label size) ---- */
@page tech-label { size: 89mm 29mm; margin: 0; }
.tklabel { box-sizing: border-box; width: 89mm; height: 28.5mm; padding: 1.4mm 2.2mm 1.2mm; background: #fff; color: #000; font-family: 'DejaVu Sans Condensed', Arial, sans-serif; font-size: 8pt; line-height: 1.15; display: flex; flex-direction: column; gap: 0.6mm; overflow: hidden; border: 1px dashed var(--border-strong); break-inside: avoid; break-after: avoid; }
.tklabel .tk-top { display: flex; justify-content: space-between; align-items: baseline; gap: 2mm; }
.tklabel .tk-no { font-size: 13pt; line-height: 1; font-weight: 700; letter-spacing: 0.02em; }
.tklabel .tk-due { font-size: 8.5pt; font-weight: 700; white-space: nowrap; }
.tklabel .tk-mid { display: flex; align-items: center; gap: 2.5mm; height: 8mm; }
.tklabel .tk-bar { width: 38mm; height: 7.5mm; flex: none; }
.tklabel .tk-bar svg { width: 100%; height: 100%; display: block; }
.tklabel .tk-cust { display: flex; flex-direction: column; min-width: 0; font-size: 8pt; }
.tklabel .tk-name { font-size: 9.5pt; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tklabel .tk-dev { font-size: 8.5pt; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tklabel .tk-foot { margin-top: auto; font-weight: 700; font-size: 8pt; text-align: center; letter-spacing: 0.02em; }
@media print {
  /* Exactly one label: the page is the label, and nothing can spill onto a second one. */
  #print-root .tech-label { page: tech-label; width: 89mm; height: 29mm; overflow: hidden; }
  #print-root .tklabel { border: 0; }
}

/* ---- repair check-in: the part used, the price / tax / total box, the repair time buttons ---- */
.repair-line .part-used { color: var(--green-ink, #067647); }
.repair-line .part-used svg, .part-used svg { width: 14px; height: 14px; vertical-align: -2px; }
.repair-totals { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 14px; background: var(--cloud); margin-top: 4px; }
.repair-totals .rt-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; line-height: 22px; }
.repair-totals .rt-total { font-size: 20px; line-height: 28px; font-weight: 800; border-top: 1px solid var(--border); padding-top: 8px; }
.svc-head { display: flex; align-items: center; gap: 10px; }
.svc-head .photo, .svc-head svg { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); padding: 3px; flex: none; }
.svc.svc-pic { position: relative; padding-right: 62px; }
.svc.svc-pic .svc-pic-img { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; border-radius: 8px; padding: 2px; border: 1px solid var(--border); }
.model-btn.has-pic { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.model-btn .mb-pic { width: 40px; height: 40px; flex: none; display: flex; align-items: center; justify-content: center; }
.model-btn .mb-pic img.photo, .model-btn .mb-pic svg { width: 40px; height: 40px; }
.time-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.time-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 10px; min-height: 112px; border-radius: 16px; border: 1.5px solid var(--border); background: var(--white); color: var(--navy); cursor: pointer; text-align: center; transition: border-color .12s, box-shadow .12s, transform .08s; }
.time-btn:hover { border-color: var(--blue); }
.time-btn:active { transform: scale(0.985); }
.time-btn .tm-n { font-size: 34px; line-height: 38px; font-weight: 800; letter-spacing: -0.02em; }
.time-btn .tm-l { font-size: 14px; line-height: 18px; font-weight: 700; }
.time-btn .tm-s { font-size: 12px; line-height: 16px; color: var(--slate); }
.time-btn[aria-checked='true'] { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(11, 92, 255, 0.25); }
.time-btn[aria-checked='true'] .tm-s { color: rgba(255, 255, 255, 0.85); }
@media (max-width: 520px) { .time-grid { gap: 8px; } .time-btn { min-height: 96px; padding: 12px 6px; } .time-btn .tm-n { font-size: 28px; } .time-btn .tm-l { font-size: 12px; } }

/* ---- print choices right after a repair is checked in ---- */
.print-now { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.print-now .pn-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px; min-height: 120px; border-radius: 16px; border: 1.5px solid var(--border); background: var(--white); color: var(--navy); cursor: pointer; text-align: left; }
.print-now .pn-btn:hover { border-color: var(--blue); }
.print-now .pn-btn svg { width: 28px; height: 28px; color: var(--blue); }
.print-now .pn-btn .t { font-size: 18px; line-height: 24px; font-weight: 800; }
.print-now .pn-btn .s { font-size: 13px; line-height: 18px; color: var(--slate); }
.print-now .pn-btn.done { border-color: var(--green, #12B76A); }
@media (max-width: 520px) { .print-now { grid-template-columns: 1fr; } }

/* ---------- prints on their way to the store's printers (PrintNode) ---------- */
.print-tray { position: fixed; right: 16px; bottom: 16px; z-index: 95; display: flex; flex-direction: column; gap: 8px; width: min(400px, calc(100vw - 32px)); }
.print-job { display: flex; align-items: flex-start; gap: 12px; padding: 12px 10px 12px 14px; background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--blue); border-radius: 14px; box-shadow: var(--shadow-lg); animation: fade 0.16s ease-out; }
.print-job.printed { border-left-color: var(--green); }
.print-job.failed { border-left-color: var(--red); }
.print-job.warn { border-left-color: var(--amber); }
.pj-ico { display: grid; place-items: center; padding-top: 1px; }
.pj-ico svg { width: 22px; height: 22px; color: var(--blue); }
.print-job.printed .pj-ico svg { color: var(--green); }
.print-job.failed .pj-ico svg { color: var(--red); }
.print-job.warn .pj-ico svg { color: var(--amber); }
.pj-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pj-t { font-weight: 800; color: var(--navy); line-height: 20px; }
.pj-s { font-size: 13px; line-height: 18px; color: var(--slate); }
.print-job.failed .pj-s { color: var(--red); }
.pj-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pj-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 10px; border: 0; background: var(--blue); color: var(--white); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.pj-btn:hover { background: var(--blue-hover); }
.pj-btn svg { width: 16px; height: 16px; }
.pj-btn.ghost { background: var(--cloud); color: var(--navy); border: 1px solid var(--border); }
.pj-x { flex: none; border: 0; background: transparent; color: var(--slate); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.pj-x:hover { background: var(--cloud); }
.pj-x svg { width: 16px; height: 16px; }
.pj-spin { flex: none; width: 18px; height: 18px; margin: 3px 7px 0; border-radius: 50%; border: 2.5px solid var(--border); border-top-color: var(--blue); animation: spin 0.8s linear infinite; }
@media (max-width: 640px) { .print-tray { left: 12px; right: 12px; bottom: 12px; width: auto; } }
@media print { .print-tray { display: none; } }
.pn-btn .pn-state { font-size: 13px; line-height: 18px; font-weight: 700; color: var(--blue); }
.pn-btn .pn-state.printed { color: var(--green); }
.pn-btn .pn-state.failed, .pn-btn .pn-state.warn { color: var(--red); }
.pn-btn:disabled { opacity: 0.7; cursor: progress; }
.printer-store { display: flex; flex-direction: column; gap: 14px; }
.printer-store + .printer-store { border-top: 1px solid var(--border); padding-top: 18px; }
.printer-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.printer-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

/* ---------- drop-off check (customer receipt and technician ticket) ----------
   Every check with a big mark in a box; anything not working is filled black so it stands out. */
.receipt .dropoff { margin: 5px 0 2px; border: 1.5px solid #000; border-radius: 6px; padding: 3px 6px 2px; break-inside: avoid; }
.receipt .do-h { text-align: center; font-weight: 800; font-size: 12px; line-height: 15px; letter-spacing: 0.08em; }
.receipt .do-sub { text-align: center; font-size: 9px; line-height: 12px; margin: 0 0 3px; }
.receipt .do-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px 6px; }
.receipt .do-grid.one { grid-template-columns: 1fr; }
.receipt .do-item { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 10.5px; line-height: 14px; }
.receipt .do-mark { flex: none; display: inline-block; width: 13px; height: 13px; border: 1.5px solid #000; border-radius: 3px; text-align: center; font-size: 10px; line-height: 11px; font-weight: 900; font-family: 'DejaVu Sans', 'Segoe UI Symbol', Arial, sans-serif; }
.receipt .do-item.bad .do-mark { background: #000; color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.receipt .do-item.bad .do-label { font-weight: 800; }
.receipt .do-item.none .do-mark { border-style: dashed; font-weight: 400; }
.receipt .do-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.receipt .do-legend { text-align: center; font-size: 8px; line-height: 11px; margin-top: 2px; font-family: 'DejaVu Sans', 'Segoe UI Symbol', Arial, sans-serif; }

/* ---------- technician ticket, option A: 89 x 29 mm DYMO label with the logo ---------- */
.tklabel.tkA { display: grid; grid-template-columns: 25mm 1fr; grid-template-rows: 1fr auto; column-gap: 2.4mm; row-gap: 0.5mm; }
.tkA .tkA-left { display: flex; flex-direction: column; justify-content: space-between; gap: 1mm; min-width: 0; }
.tkA .tkA-logo { line-height: 0; }
.tkA .tkA-logo img { width: 25mm; height: auto; }
.tkA .tkA-biz { font-size: 9pt; font-weight: 800; line-height: 1.1; }
.tkA .tkA-bar { width: 25mm; height: 8.5mm; }
.tkA .tkA-bar svg { width: 100%; height: 100%; display: block; }
.tkA .tkA-right { display: flex; flex-direction: column; gap: 0.2mm; min-width: 0; }
.tkA .tk-top { gap: 1.5mm; }
.tkA .tk-no { font-size: 13pt; }
.tkA .tk-due { font-size: 8pt; }
.tkA .tk-name { font-size: 9pt; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tkA .tk-ph { font-size: 8pt; font-weight: 400; }
.tkA .tk-dev, .tkA .tk-work { font-size: 8pt; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tkA .tk-bad { font-size: 7.5pt; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tkA .tk-foot { grid-column: 1 / -1; margin-top: 0; font-size: 8pt; }

/* ---------- technician ticket, option B: 4-inch DYMO label (30256, 2-5/16 x 4 in) ---------- */
@page tech-label-4 { size: 2.3125in 4in; margin: 0; }
.tkB { box-sizing: border-box; width: 2.3125in; height: 3.98in; padding: 2.2mm 2.6mm 2mm; background: #fff; color: #000; font-family: 'DejaVu Sans Condensed', Arial, sans-serif; font-size: 7.5pt; line-height: 1.2; display: flex; flex-direction: column; gap: 0.7mm; overflow: hidden; border: 1px dashed var(--border-strong); break-inside: avoid; }
.tkB .tkB-logo { text-align: center; line-height: 0; }
.tkB > * { flex-shrink: 0; }
.tkB .tkB-mid { flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 0.6mm; }
.tkB .tkB-mid > * { flex-shrink: 0; }
.tkB .tkB-logo img { width: 30mm; height: auto; }
.tkB .tkB-biz { text-align: center; font-size: 11pt; font-weight: 800; }
.tkB .tkB-bar { background: #000; color: #fff; text-align: center; font-weight: 900; font-size: 9pt; letter-spacing: 0.14em; padding: 0.4mm 0; border-radius: 1mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.tkB .tkB-top { display: flex; justify-content: space-between; align-items: center; gap: 2mm; }
.tkB .tkB-no { font-size: 17pt; font-weight: 800; line-height: 1; letter-spacing: 0.02em; }
.tkB .tkB-due { display: flex; flex-direction: column; align-items: flex-end; border: 0.4mm solid #000; border-radius: 1mm; padding: 0.4mm 1.2mm; font-size: 7pt; line-height: 1.15; text-align: right; }
.tkB .tkB-due b { font-size: 8.5pt; }
.tkB .tkB-code { height: 7mm; }
.tkB .tkB-code svg { width: 100%; height: 100%; display: block; }
.tkB .tkB-row { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 8pt; }
.tkB .tkB-row.sm { font-size: 7pt; }
.tkB .tkB-prob { font-size: 7.5pt; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tkB .tkB-h { font-weight: 800; font-size: 7pt; letter-spacing: 0.06em; margin-top: 0.3mm; }
.tkB .tkB-todo { display: flex; gap: 1.2mm; align-items: flex-start; font-size: 7.5pt; white-space: nowrap; overflow: hidden; }
.tkB .tkB-todo > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.tkB .tkB-todo .chk { flex: none; width: 2.6mm; height: 2.6mm; border: 0.35mm solid #000; margin-top: 0.2mm; }
.tkB .dim { color: #333; }
.tkB .dropoff { border: 0.35mm solid #000; border-radius: 1mm; padding: 0.6mm 1mm; }
.tkB .do-h { text-align: center; font-weight: 800; font-size: 6.5pt; letter-spacing: 0.06em; }
.tkB .do-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.2mm 1.4mm; }
.tkB .do-item { display: flex; align-items: center; gap: 0.8mm; font-size: 6.5pt; line-height: 1.25; min-width: 0; }
.tkB .do-mark { flex: none; display: inline-block; width: 2.6mm; height: 2.6mm; border: 0.3mm solid #000; text-align: center; font-size: 6pt; line-height: 2.3mm; font-weight: 900; font-family: 'DejaVu Sans', Arial, sans-serif; }
.tkB .do-item.bad .do-mark { background: #000; color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.tkB .do-item.bad .do-label { font-weight: 800; }
.tkB .do-item.none .do-mark { border-style: dashed; }
.tkB .do-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tkB .do-legend { text-align: center; font-size: 5.5pt; margin-top: 0.2mm; }
.tkB .tk-foot { margin-top: auto; text-align: center; font-weight: 800; font-size: 8.5pt; letter-spacing: 0.02em; }
@media print {
  #print-root .tech-label-4 { page: tech-label-4; width: 2.3125in; height: 4in; overflow: hidden; }
  #print-root .tkB { border: 0; }
}

/* ---------- technician ticket, option C: receipt paper (80 mm) ---------- */
.receipt.tkC .tkC-logo { text-align: center; line-height: 0; margin: 0 0 4px; }
.receipt.tkC .tkC-logo img { width: 62%; max-width: 200px; height: auto; }
.receipt.tkC .tt-banner { justify-content: center; }
.receipt.tkC .tt-not { font-size: 10px; line-height: 13px; letter-spacing: 0.08em; margin-top: 2px; }
.receipt.tkC .tkC-due { display: flex; justify-content: space-between; gap: 6px; border: 2px solid #000; border-radius: 6px; padding: 3px 8px; margin: 4px 0 6px; font-weight: 800; font-size: 13px; line-height: 17px; }
.receipt.tkC .tt-h { margin-top: 6px; letter-spacing: 0.05em; }
.receipt.tkR .tkR-title { font-size: 14px; line-height: 18px; letter-spacing: 0.04em; }
/* Whose copy it is (the customer's or the technician's), white on black under the title. */
.copy-tag { display: block; width: fit-content; margin: 2px auto 3px; padding: 0 10px; background: #000; color: #fff; font-weight: 800; font-size: 12px; line-height: 17px; letter-spacing: 0.12em; border-radius: 3px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
/* On the title's line (the customer's ticket stays exactly as long as it was). */
.copy-tag.inline { display: inline-block; margin: 0 0 0 6px; padding: 0 6px; font-size: 11px; line-height: 15px; letter-spacing: 0.05em; vertical-align: baseline; white-space: nowrap; }
.invoice .ih .right .copy-tag { margin: 2px 0 4px auto; font-size: 13px; line-height: 19px; }
.receipt.tkR .tkC-foot { text-align: center; font-weight: 800; font-size: 15px; line-height: 15px; margin-top: 8px; padding-top: 4px; border-top: 2px solid #000; }
.receipt.tkC .tkC-foot { text-align: center; font-weight: 800; font-size: 15px; line-height: 17px; margin-top: 8px; padding-top: 4px; border-top: 2px solid #000; }
.tt-formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.tt-format { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 14px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--white); color: var(--navy); cursor: pointer; font: inherit; }
.tt-format:hover { border-color: var(--blue); }
.tt-format.on { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.tt-format .t { font-weight: 800; }
.tt-format .s { font-size: 13px; line-height: 18px; color: var(--slate); }
