/* Rippner Tennis — Stringing Desk
 * Ported from the coworker's globals.css. The Tailwind @import is replaced by
 * the small reset below (it reproduces the parts of Tailwind's preflight the
 * original layout actually depended on: zeroed heading/paragraph/fieldset
 * margins, inherited control fonts, bare buttons). The @media print block at
 * the bottom — the 72 x 200 mm receipt — is the original, plus one extra
 * display:none for the on-screen-only queue toolbar.
 *
 * Counter ergonomics: every tappable control is >= 40px tall, quick-pick chips
 * replace typing where the vocabulary is small, and the two-column workspace
 * stacks below 1080px so a tablet or a half-width window still works.
 */

/* ---- reset (stand-in for Tailwind preflight) ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
button, input, select, textarea { font-family: inherit; font-size: 100%; line-height: inherit; color: inherit; margin: 0; padding: 0; }
button { background-color: transparent; background-image: none; border: 0; }
button, [role="button"] { cursor: pointer; }
::placeholder { color: #9aa7b2; opacity: 1; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }

/* Rippner Tennis brand palette (see rippner/CLAUDE.md): navy #1b4458 anchors
 * and headings, green #95d600 for action, blue #2596b5 as the secondary voice,
 * platinum #F1F5F5 for surfaces. The --lime/--navy-2/--cross aliases are kept
 * so ported rules keep working; they now resolve to brand values. */
:root {
  --navy: #1b4458;
  --navy-2: #12303e;
  --green: #95d600;
  --green-soft: #eaf9c9;
  --blue: #2596b5;
  --blue-soft: #e4f2f7;
  --platinum: #f1f5f5;
  --ink: #14303d;
  --muted: #5d7280;
  --line: #d9e3e6;
  --panel: var(--platinum);
  --white: #fff;
  --danger: #b3261e;
  --radius: 8px;
  /* aliases from the ported stylesheet */
  --lime: var(--green);
  --lime-soft: var(--green-soft);
  --cross: var(--blue);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--platinum); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-feature-settings: "rlig" 1, "calt" 1; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.topbar { height: 64px; background: linear-gradient(100deg, var(--navy-2), var(--navy)); color: white; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 750; font-size: 21px; letter-spacing: -.02em; }
/* The club's R mark sits on a white chip: the logo's blue half would sink into
   the navy bar otherwise, and the brand colours must stay exact. */
.brand-logo { width: 38px; height: 38px; padding: 4px; border-radius: 9px; background: white; object-fit: contain; flex: none; }
/* Cross-link between the front desk and the stringing bench. */
.deskline { color: #d9e6ec; font-size: 13px; font-weight: 650; text-decoration: none; padding: 9px 14px; border-radius: 999px; border: 1px solid rgb(255 255 255 / 22%); white-space: nowrap; }
.deskline:hover { background: rgb(149 214 0 / 18%); border-color: var(--green); color: #fff; }
.system-status { display: flex; align-items: center; gap: 9px; color: #e7edf2; font-size: 13px; }
.system-status span, .preview-title i { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgb(149 214 0 / 10%); }

/* ---- desk token gate (addition, not in the original) ---- */
.token-bar { max-width: 1600px; margin: 16px auto 0; padding: 0 16px; }
.token-bar form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid #e2c98a; border-radius: 12px; background: #fff8e6; box-shadow: 0 4px 18px rgb(27 68 88 / 4%); }
.token-bar div { flex: 1 1 260px; }
.token-bar strong { display: block; color: #5c4200; font-size: 14px; font-weight: 750; }
.token-bar small { display: block; margin-top: 3px; color: #7a6431; font-size: 12px; }
.token-bar input { width: 220px; height: 44px; margin: 0; padding: 0 13px; border: 1px solid #d4bd80; border-radius: 8px; background: white; }
.token-bar button { min-height: 44px; padding: 0 20px; border: 1px solid #7fb800; border-radius: 8px; background: var(--lime); color: #10210c; font-weight: 750; }

.workspace { max-width: 1600px; margin: auto; padding: 16px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(320px, .8fr); gap: 16px; align-items: start; }
.order-card, .preview-panel { border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 4px 18px rgb(27 68 88 / 4%); }
.order-card { padding: 22px; }
.order-card.just-saved { animation: savedFlash 1.1s ease-out; }
@keyframes savedFlash {
  0% { box-shadow: 0 0 0 3px rgb(149 214 0 / 55%); }
  100% { box-shadow: 0 4px 18px rgb(27 68 88 / 4%); }
}
.section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.heading-actions { display: flex; align-items: center; gap: 9px; }
.heading-actions button { min-height: 40px; border: 1px solid var(--line); border-radius: 8px; background: white; padding: 0 12px; color: var(--ink); font-size: 12px; font-weight: 750; }
.heading-actions button:hover { background: #f3f7f8; }
.eyebrow { margin: 0 0 4px; color: var(--muted); text-transform: uppercase; letter-spacing: .13em; font-size: 11px; font-weight: 700; }
h1 { margin: 0; color: var(--navy); font-size: clamp(25px, 2vw, 31px); letter-spacing: -.035em; }
.order-id { padding: 9px 10px; border-radius: 7px; background: var(--platinum); font: 600 12px ui-monospace, monospace; color: var(--muted); }
section { border-top: 1px solid #e6eef0; margin-top: 20px; padding-top: 17px; }
h2 { margin: 0 0 13px; font-size: 16px; color: var(--navy); }
/* The returning-customer popover was removed 08/2026 — the single search box
   above the ticket list covers it. */
.topbar-tools { display: flex; align-items: center; gap: 18px; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.grid { display: grid; gap: 14px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
label, legend { color: var(--ink); font-size: 12px; font-weight: 650; }
label.field { display: block; }
input, select, textarea { width: 100%; margin-top: 6px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--navy); outline: none; transition: border-color .14s, box-shadow .14s; }
input, select { height: 44px; padding: 0 13px; }
textarea { min-height: 72px; resize: vertical; padding: 11px 13px; }
input:focus, select:focus, textarea:focus { border-color: #7fb800; box-shadow: 0 0 0 3px rgb(149 214 0 / 25%); }
.field-group, .compact-field { margin: 14px 0 0; padding: 0; border: 0; }
.segments { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin-top: 6px; }
.segments button { min-height: 44px; background: white; border: 1px solid var(--line); color: var(--ink); font-weight: 700; }
.segments button:first-child { border-radius: 8px 0 0 8px; }
.segments button:last-child { border-radius: 0 8px 8px 0; }
.segments button + button { border-left: 0; }
.segments button.active { background: var(--lime-soft); border-color: #7fb800; color: #25330a; box-shadow: inset 0 0 0 1px #7fb800; }

/* ---- required-field state ---- */
.req { margin-left: 2px; font-size: 15px; font-weight: 800; line-height: 1; color: var(--danger); }
.has-error .req, .has-error legend { color: var(--danger); }
.has-error > input, .has-error input:not(.other-input), .has-error .other-input { border-color: #dba09b; box-shadow: 0 0 0 3px rgb(179 38 30 / 16%); }
.has-error .chips { border-radius: 12px; box-shadow: 0 0 0 3px rgb(179 38 30 / 16%); }
.field-msg { display: block; margin-top: 6px; font-size: 11px; font-weight: 700; color: var(--danger); }
.field-msg.warn { color: #8a5a00; }
.field-msg.info { color: #6b7885; font-weight: 600; }
.field-msg.bad { color: var(--danger); }

/* ---- quick-pick chips (racket brand) ---- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 7px; }
.chip { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--ink); font-size: 13px; font-weight: 700; transition: background .12s, border-color .12s, box-shadow .12s; }
.chip:hover { border-color: #7fb800; background: var(--green-soft); }
.chip:focus-visible { outline: 2px solid #6d8f10; outline-offset: 2px; }
.chip.active { background: var(--lime); border-color: #7fb800; color: #25330a; box-shadow: inset 0 0 0 1px #7fb800; }
.chip-other { border-style: dashed; }
.other-input { max-width: 280px; margin-top: 9px; }

/* ---- "same as last time" recall ---- */
.recall { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 15px; padding: 11px 13px; border: 1px solid #b9d76a; border-radius: 11px; background: linear-gradient(100deg, #f6fde8, #fff); }
.recall-copy strong { display: block; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #5d7f0a; }
.recall-copy span { display: block; margin-top: 3px; color: var(--navy); font-size: 14px; font-weight: 750; }
.recall-actions { display: flex; gap: 8px; }
.recall-use { min-height: 42px; padding: 0 20px; border: 1px solid #7fb800; border-radius: 8px; background: var(--lime); color: #10210c; font-weight: 750; }
.recall-skip { min-height: 42px; padding: 0 15px; border: 1px solid var(--line); border-radius: 8px; background: white; color: #4a5a67; font-weight: 700; }
.recall-skip:hover { background: #f3f7f8; }

.service-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.service-options button { display: flex; text-align: left; align-items: center; gap: 12px; min-height: 67px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.service-options button.selected { border-color: #a7d10d; background: linear-gradient(100deg, #fbfff0, #fff); box-shadow: inset 0 0 0 1px #d4f06a; }
.select-icon { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; background: var(--platinum); border-radius: 50%; font-size: 15px; }
.selected .select-icon { background: var(--lime); }
.service-options strong, .service-options small { display: block; }
.service-options strong { font-size: 15px; }
.service-options small { color: var(--muted); font-weight: 500; margin-top: 3px; }
.switch-label { display: flex; align-items: center; gap: 8px; cursor: pointer; border: 1px solid transparent; border-radius: 999px; background: transparent; min-height: 40px; padding: 0 10px; color: var(--ink); font-size: 12px; font-weight: 650; }
.switch-label:hover { border-color: var(--line); background: #f6f9fa; }
.switch { width: 34px; height: 20px; border-radius: 99px; background: var(--line); position: relative; transition: .15s; }
.switch::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: white; top: 3px; left: 3px; transition: .15s; }
.switch-label[aria-checked="true"] .switch { background: #8bae1c; }
.switch-label[aria-checked="true"] .switch::after { transform: translateX(14px); }

/* ---- string setup: one lane normally, two clearly-marked lanes on hybrid ---- */
.string-lanes { display: grid; grid-template-columns: 1fr; gap: 14px; }
.string-lanes.hybrid { grid-template-columns: 1fr 1fr; }
.string-lane { display: grid; gap: 12px; align-content: start; padding: 12px 14px 14px; border: 1px solid #dde5ea; border-left: 5px solid #dde5ea; border-radius: 11px; background: #fafcfc; }
.lane-tag { font-size: 10px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
/* Strings sold in the POS: shown, not picked. */
.string-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.string-tools button { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); font-size: 12px; font-weight: 750; }
.string-tools button:hover { border-color: #7fb800; background: var(--green-soft); }
.string-tools .linky { min-height: 0; padding: 0; border: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 650; text-decoration: underline; }
.string-tools .linky:hover { background: none; color: var(--ink); }
.string-fixed { padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.string-fixed strong { display: block; margin-top: 2px; font-size: 14px; font-weight: 800; color: var(--navy); overflow-wrap: anywhere; }
.from-pos { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lane-cross .string-fixed { border-color: #a8cfdd; }
.string-lanes.hybrid .lane-main { border-color: #b7d94f; border-left-color: #7fb800; background: linear-gradient(180deg, #fcffef, #fff); }
.string-lanes.hybrid .lane-main .lane-tag { color: #4f6d09; }
.string-lanes.hybrid .lane-main .lane-tag::before { content: "▌ "; }
.lane-cross { border-color: #a8cfdd; border-left-color: var(--cross); background: linear-gradient(180deg, #f3f9ff, #fff); }
.lane-cross .lane-tag { color: var(--cross); }
.lane-cross .lane-tag::before { content: "▌ "; }
.lane-cross input:focus, .lane-cross select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgb(37 150 181 / 18%); }
.lane-cross .chip.active { background: var(--blue-soft); border-color: #4c9fbb; color: #14566d; box-shadow: inset 0 0 0 1px #4c9fbb; }
.tension-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tension-title { font-size: 12px; font-weight: 650; color: var(--ink); }
.tension-head .input-unit { flex: 0 0 auto; width: 116px; }
.input-unit { position: relative; display: block; }
.input-unit input { margin-top: 0; padding-right: 44px; }
.input-unit em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #687684; font-style: normal; font-size: 12px; }
.odd-value { border-color: #dfae4c !important; box-shadow: 0 0 0 3px rgb(223 174 76 / 22%) !important; }

.count { float: right; margin-top: -21px; margin-right: 10px; position: relative; color: #7f8b96; font-weight: 500; }
.notice { margin: 16px 0 0; padding: 11px 13px; border: 1px solid #ecd6a1; border-radius: 9px; background: #fff3d5; color: #6e4a00; font-size: 12.5px; font-weight: 650; }
.notice.ok { background: #eefbd2; border-color: #b8dd5c; color: #2f4c00; }
.notice.error { background: #fdeceb; border-color: #eab3ad; color: #8a2b21; }
.notice.info { background: #eef5fb; border-color: #bcd5e9; color: #234c69; }
.actions { margin-top: 18px; padding-top: 16px; border-top: 1px solid #e6eef0; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.actions-hint { color: #66757f; font-size: 12px; font-weight: 650; }
.actions-hint.pending { color: var(--danger); font-weight: 750; }
.actions-buttons { display: flex; gap: 12px; margin-left: auto; }
.actions button { min-height: 48px; padding: 0 22px; border-radius: 8px; font-weight: 750; border: 1px solid #abb8c2; }
.secondary { background: white; }
.secondary:hover { background: #f3f7f8; }
.primary { min-width: 230px; background: var(--lime); color: #10210c; border-color: #7fb800 !important; box-shadow: 0 6px 16px rgb(149 214 0 / 20%); }
.primary.incomplete { background: #eef3e2; color: #5d6a52; border-color: #cfdcae !important; box-shadow: none; }
.actions button:disabled { opacity: .6; cursor: wait; }

.preview-panel { background: linear-gradient(145deg, #f6f9fa, var(--platinum)); padding: 17px; position: sticky; top: 16px; min-height: calc(100vh - 96px); }
.preview-title { display: flex; justify-content: space-between; align-items: center; color: var(--ink); font-weight: 700; font-size: 13px; }
.preview-title span { display: flex; gap: 9px; align-items: center; }
.preview-title small { color: var(--muted); font-weight: 550; }
.receipt { width: 288px; max-width: 100%; min-height: 520px; margin: 18px auto 8px; padding: 24px 17px 14px; background: #fff; color: #000; box-shadow: 0 7px 20px rgb(27 68 88 / 15%); font-family: Arial, Helvetica, sans-serif; font-weight: 700; text-align: center; position: relative; -webkit-font-smoothing: none; }
.receipt::before, .receipt::after { content: ""; position: absolute; left: 0; right: 0; height: 7px; background: linear-gradient(135deg, transparent 5px, white 0) 0 0/10px 10px repeat-x; }
.receipt::before { top: -7px; transform: rotate(180deg); }
.receipt::after { bottom: -7px; }
.copy-label { border: 2px solid #000; border-radius: 3px; margin: 0 auto 10px; padding: 2px 10px; width: fit-content; font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.receipt-brand { font-family: "Arial Black", Arial, Helvetica, sans-serif; font-size: 25px; font-weight: 900; text-transform: uppercase; letter-spacing: -.045em; }
.receipt-subtitle { font-size: 11px; font-weight: 900; letter-spacing: .1em; margin-top: 3px; }
.dash { border-top: 2px dashed #000; margin: 12px 0 9px; }
.ticket-number { font-family: "Arial Black", Arial, Helvetica, sans-serif; font-size: 22px; font-weight: 900; }
.ticket-location { font-size: 14px; font-weight: 900; letter-spacing: .14em; }
.receipt > span, .receipt > strong { display: block; }
.customer { font-size: 17px; font-weight: 900; }
.small-text { font-size: 10px; font-weight: 700; overflow-wrap: anywhere; }
.ticket-details { text-align: left; font-size: 12px; font-weight: 800; line-height: 1.3; }
.ticket-details p { margin: 3px 0; }
.ticket-note { text-align: left; font-size: 11px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.line-item { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; margin: 5px 0; }
.total { border-top: 2px dashed #000; border-bottom: 2px dashed #000; margin-top: 9px; padding: 8px 0; display: flex; justify-content: space-between; align-items: baseline; font-weight: 900; }
.total strong { font-family: "Arial Black", Arial, Helvetica, sans-serif; font-size: 22px; }
.payment { font-size: 19px; font-weight: 900; padding: 10px 0 3px; }
.payment.paid { border: 2px solid #111; margin: 10px auto 0; padding: 4px 12px; width: fit-content; transform: rotate(-2deg); }
.footer-copy { font-size: 10px; font-weight: 800; line-height: 1.35; }
.cut-line { margin-top: 15px; font-size: 9px; white-space: nowrap; overflow: hidden; }

/* ---- queue: a working surface ---- */
.queue-toolbar { max-width: 1600px; margin: 8px auto 0; padding: 0 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.queue-search { flex: 1 1 320px; max-width: 520px; }
.queue-search input { margin-top: 0; height: 46px; }
.queue-summary { color: var(--muted); font-size: 12px; font-weight: 650; }
.queue-summary b { color: var(--ink); }
.queue-summary .overdue-count { color: var(--danger); }
.queue-stack { max-width: 1600px; margin: 12px auto 28px; padding: 0 16px; display: grid; gap: 14px; }
.orders-section { margin: 0; padding: 20px; background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 4px 18px rgb(27 68 88 / 4%); }
.queue-progress { border-left: 5px solid var(--blue); }
.queue-complete { border-left: 5px solid #8dae2c; }
.orders-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.orders-header h2 { margin: 0; font-size: 21px; }
.orders-header > span { color: var(--ink); font-size: 12px; font-weight: 800; padding: 7px 12px; border-radius: 99px; background: var(--platinum); white-space: nowrap; }
.empty-orders { margin-top: 16px; padding: 24px; border: 1px dashed var(--line); border-radius: 9px; text-align: center; color: var(--muted); font-size: 13px; }
.orders-table { margin-top: 14px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.order-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; align-items: center; min-height: 64px; padding: 10px 14px; border-top: 1px solid #e6eef0; font-size: 12px; }
.order-row:first-child { border-top: 0; }
.order-row:nth-child(even) { background: #fafcfc; }
.order-open { display: grid; grid-template-columns: 1.05fr 1.75fr 1.4fr .95fr; gap: 14px; align-items: center; min-width: 0; border: 0; background: transparent; padding: 8px 6px; margin: -8px -6px; border-radius: 8px; color: inherit; text-align: left; }
.order-open:hover { background: #eef4f6; }
.order-open:focus-visible { outline: 2px solid #6d8f10; outline-offset: 1px; }
.order-open > span { min-width: 0; }
.order-open strong, .order-open small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.order-open strong { font-size: 13px; color: #16232f; }
.order-open small { color: #71808c; margin-top: 3px; }
.col-id strong { font: 700 12.5px ui-monospace, monospace; }
.col-due strong { font-size: 12.5px; }
.due-flag { font-weight: 800 !important; }
.col-due.overdue strong, .col-due.overdue .due-flag { color: var(--danger) !important; }
.col-due.today .due-flag { color: #8a5a00 !important; }
.col-due.soon .due-flag { color: #3d6a91 !important; }
.pbp-user { color: #4b6f8a !important; font-weight: 700; }
.row-controls { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.status-pill { min-height: 40px; min-width: 74px; border-radius: 99px; padding: 0 13px; border: 1px solid #d1d9df; background: #f2f5f6; text-transform: capitalize; font-size: 11px; font-weight: 800; color: #5c6a75; }
.status-pill:hover { background: #e8edef; }
.status-pill.paid { background: var(--green-soft); border-color: #bedf55; color: #365100; }
/* Two states: one toggle button per row (no status <select> any more). */
.advance { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid #a8cfdd; border-radius: 8px; background: var(--blue-soft); color: #14566d; font-size: 11px; font-weight: 800; white-space: nowrap; }
.advance:hover { background: #d5eaf2; }
.advance.reopen { border-color: #dde3e8; background: #f4f6f7; color: var(--muted); }
.advance.reopen:hover { background: #e9edef; color: var(--ink); }
/* Not a control: the desk cannot complete a racket, only the bench can. */
.advance.waiting { border-style: dashed; border-color: var(--line); background: transparent; color: var(--muted); font-weight: 700; cursor: default; }
.delete-ticket { min-height: 40px; border: 1px solid #e2b5b5; border-radius: 8px; background: #fff7f7; color: #9a3030; padding: 0 12px; font-size: 11px; font-weight: 750; }
.delete-ticket:hover { background: #ffe8e8; }

@media (max-width: 1080px) {
  .workspace { grid-template-columns: 1fr; }
  .preview-panel { position: static; min-height: 0; }
  .order-row { grid-template-columns: 1fr; }
  .order-open { grid-template-columns: 1fr 1fr; gap: 10px 14px; }
  .row-controls { justify-content: flex-start; }
}
@media (max-width: 780px) {
  .topbar { padding: 0 16px; }
  .system-status { display: none; }
  .lookup-toggle { padding: 0 11px; font-size: 0; gap: 0; } /* icon-only at phone width */
  .lookup-toggle svg { width: 17px; height: 17px; }
  .workspace { padding: 8px; }
  .order-card { padding: 16px; }
  .grid.three, .grid.two, .service-options, .string-lanes.hybrid { grid-template-columns: 1fr; }
  .actions-buttons { width: 100%; flex-direction: column-reverse; }
  .actions button { width: 100%; }
  .primary { min-width: 0; }
  .queue-stack, .queue-toolbar { padding: 0 8px; }
  .queue-search { max-width: none; }
  .orders-section { padding: 16px; }
  .order-open { grid-template-columns: 1fr; }
  .order-open strong, .order-open small { white-space: normal; }
  .token-bar { padding: 0 8px; }
  .token-bar input { width: 100%; }
  .row-controls > * { flex: 1 1 auto; justify-content: center; text-align: center; }
}

@media print {
  /* Two 72x200mm copies, one per page: customer first, then the shop copy. */
  @page { size: 72mm 200mm; margin: 0; }
  body { background: white; }
  body * { visibility: hidden !important; }
  #print-area, #print-area * { visibility: visible !important; }
  #print-area { position: absolute; left: 0; top: 0; width: 72mm; margin: 0; padding: 0; }
  #print-area .receipt { width: 72mm; height: 200mm; min-height: 200mm; max-width: none; margin: 0; padding: 5mm 4mm; overflow: hidden; box-shadow: none; color: #000 !important; background: #fff !important; font-family: Arial, Helvetica, sans-serif !important; font-weight: 800 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; -webkit-font-smoothing: none; page-break-after: always; break-after: page; }
  #print-area .receipt:last-child { page-break-after: auto; break-after: auto; }
  #print-area .receipt::before, #print-area .receipt::after { display: none; }
  #print-area .receipt-brand, #print-area .ticket-number, #print-area .total strong { font-family: "Arial Black", Arial, Helvetica, sans-serif !important; font-weight: 900 !important; }
  #print-area .dash, #print-area .total, #print-area .copy-label { border-color: #000 !important; }
  .orders-section { display: none !important; }
  .queue-toolbar { display: none !important; }
}
