/* ---------- Manor Lanes brand palette ---------- */
:root {
  --navy-900: #0a1730;     /* deep base */
  --navy-800: #0f1f44;     /* page bg */
  --navy-700: #142a59;     /* panels */
  --navy-600: #1c3873;     /* lifted panels / cells */
  --navy-500: #28477a;     /* borders / hairlines */
  --navy-400: #3b5b94;     /* hover/border accent */
  --gold-500: #d4af37;     /* primary accent */
  --gold-400: #e6c558;     /* hover gold */
  --gold-300: #f1d97a;     /* highlight */
  --gray-100: #f5f6fa;     /* near-white surfaces */
  --gray-300: #c9d0dd;     /* light text */
  --gray-500: #8b97b3;     /* muted text */
  --white: #ffffff;
  --good: #4ad971;
  --warn: var(--gold-400);
  --bad: #ff6b6b;

  --bg: var(--navy-800);
  --panel: var(--navy-700);
  --panel-2: var(--navy-600);
  --border: var(--navy-500);
  --text: var(--white);
  --muted: var(--gray-500);
  --accent: var(--gold-500);
  --accent-2: var(--gold-400);
  --link: var(--gold-400);
  --shadow: 0 4px 24px rgba(0,0,0,.4);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; min-height: 100%;
  background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--gold-300); }

button, .btn {
  appearance: none; cursor: pointer;
  background: var(--gold-500); color: var(--navy-900);
  border: 0; border-radius: 8px;
  padding: 12px 18px;
  font: inherit; font-weight: 700;
  transition: filter .15s ease, transform .05s ease;
  letter-spacing: .2px;
}
button:hover, .btn:hover { filter: brightness(1.08); }
button:active, .btn:active { transform: translateY(1px); }
button.secondary, .btn.secondary {
  background: transparent; color: var(--gold-400);
  border: 1px solid var(--navy-500);
}
button.secondary:hover, .btn.secondary:hover { background: var(--navy-700); border-color: var(--gold-500); }
button.danger { background: var(--bad); color: #fff; }
button:disabled { opacity: .5; cursor: not-allowed; }

input, select, textarea {
  font: inherit;
  background: var(--navy-900); color: var(--white);
  border: 1px solid var(--navy-500); border-radius: 8px;
  padding: 12px 14px; width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--gold-500); outline-offset: 1px; border-color: var(--gold-500);
}
label { display: block; font-size: 13px; color: var(--gray-300); margin-bottom: 6px; font-weight: 600; }
.field { margin-bottom: 16px; }

.container { max-width: 980px; margin: 0 auto; padding: 24px; }
.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px; box-shadow: var(--shadow);
}
.row { display: flex; gap: 12px; align-items: center; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- App header ---------- */
header.app {
  display: flex; align-items: center; gap: 18px;
  padding: 14px 24px;
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  border-bottom: 2px solid var(--gold-500);
}
header.app .brand-mark {
  display: inline-flex; align-items: center; gap: 12px;
}
header.app img.brand {
  height: 44px;
  /* Logo is monochrome navy on transparent — invert to pure white for dark UI */
  filter: brightness(0) invert(1);
}
header.app h1 {
  font-size: 18px; margin: 0; font-weight: 600;
  color: var(--white); letter-spacing: .3px;
}
header.app h1 .gold { color: var(--gold-400); font-weight: 700; }
header.app .spacer { flex: 1; }

/* ---------- Dashboard ---------- */
.event-list { display: grid; gap: 12px; }
.event-card {
  display: flex; align-items: center; gap: 16px;
  padding: 18px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--panel-2);
}
.event-card .meta { flex: 1; }
.event-card .meta h3 { margin: 0 0 4px; color: var(--white); }
.event-card .meta .muted { font-size: 13px; color: var(--gray-300); }
.event-card .links { display: flex; gap: 8px; flex-wrap: wrap; }
.event-card .links a {
  padding: 8px 14px; background: var(--navy-900);
  border: 1px solid var(--navy-500); border-radius: 8px;
  color: var(--gold-400); font-size: 13px; font-weight: 600;
}
.event-card .links a:hover {
  background: var(--gold-500); color: var(--navy-900);
  border-color: var(--gold-500); text-decoration: none;
}

/* ---------- Admin ---------- */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.basket-cell {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px; cursor: pointer;
  display: flex; flex-direction: column; gap: 4px;
  min-height: 100px;
  position: relative;
  transition: border-color .15s, transform .05s;
}
.basket-cell:hover { border-color: var(--gold-500); }
.basket-cell:active { transform: scale(.98); }
.basket-cell .num { color: var(--gray-300); font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.basket-cell .ticket { font-size: 24px; font-weight: 800; letter-spacing: .5px; color: var(--white); }
.basket-cell .ticket.empty { color: var(--gray-500); font-weight: 400; font-size: 13px; font-style: italic; }
.basket-cell .status {
  position: absolute; top: 8px; right: 10px;
  font-size: 10px; padding: 3px 8px; border-radius: 999px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.basket-cell .status.picked { background: rgba(74,217,113,.18); color: var(--good); }
.basket-cell .status.waiting { background: rgba(212,175,55,.2); color: var(--gold-400); }
.basket-cell .desc { color: var(--gray-300); font-size: 11px; }
.basket-cell.has-ticket { border-color: var(--gold-500); border-width: 1px; }
.basket-cell.cat-big { border-left: 4px solid #f97316; }
.basket-cell.cat-special { border-left: 4px solid #8b5cf6; }
.basket-cell.cat-big .num { color: #f97316; }
.basket-cell.cat-special .num { color: #a78bfa; }

.cust-row.cat-big { border-left: 4px solid #f97316; padding-left: 8px; }
.cust-row.cat-special { border-left: 4px solid #8b5cf6; padding-left: 8px; }
.cust-row.cat-big .b-num { color: #f97316; }
.cust-row.cat-special .b-num { color: #a78bfa; }

/* Edit modal */
.modal-bg { position: fixed; inset: 0; background: rgba(5,12,30,.78); display: none; align-items: center; justify-content: center; z-index: 50; padding: 16px; backdrop-filter: blur(2px); }
.modal-bg.open { display: flex; }
.modal {
  background: var(--panel); border: 1px solid var(--gold-500); border-radius: 14px;
  padding: 22px; width: 100%; max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.modal h3 { margin-top: 0; color: var(--gold-400); }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.modal input[inputmode="numeric"] { font-size: 28px; text-align: center; letter-spacing: 2px; }
.toggle { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--navy-900); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.toggle input { width: auto; transform: scale(1.4); accent-color: var(--gold-500); }

/* PIN screen */
.pin-screen { min-height: 75vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.pin-card { width: 100%; max-width: 380px; text-align: center; border: 1px solid var(--gold-500); }
.pin-card h2 { color: var(--gold-400); }
.pin-card input { font-size: 36px; text-align: center; letter-spacing: 12px; padding: 18px; font-weight: 700; }

/* ---------- Customer list ---------- */
.cust-header {
  padding: 28px 20px 24px;
  text-align: center;
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  border-bottom: 2px solid var(--gold-500);
}
.cust-header .logos {
  display: flex; align-items: center; justify-content: center;
  gap: 24px; flex-wrap: wrap;
}
.cust-header .logos .lockup {
  background: var(--white); border-radius: 12px; padding: 12px 16px;
  display: flex; align-items: center; justify-content: center;
  min-height: 96px;
}
.cust-header .logos img { max-height: 72px; max-width: 200px; display: block; }
.cust-header h1 { margin: 18px 0 6px; font-size: 26px; color: var(--white); }
.cust-header .org { color: var(--gold-400); font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.cust-header .when { color: var(--gray-300); font-size: 14px; }

.search-bar {
  position: sticky; top: 0; padding: 14px 20px;
  background: var(--navy-800); border-bottom: 1px solid var(--border); z-index: 10;
}
.search-bar input { font-size: 18px; padding: 14px 16px; }

.cust-list { padding: 12px 20px 60px; max-width: 720px; margin: 0 auto; }
.cust-row {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 12px; border-bottom: 1px solid var(--border);
}
.cust-row .b-num { width: 70px; color: var(--gray-300); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.cust-row .b-ticket { flex: 1; font-size: 24px; font-weight: 800; letter-spacing: .5px; color: var(--white); }
.cust-row .b-ticket.empty { color: var(--gray-500); font-weight: 400; font-size: 14px; font-style: italic; }
.cust-row .b-desc { color: var(--gray-300); font-size: 12px; display: block; margin-top: 2px; font-weight: 400; }
.cust-row .b-status {
  font-size: 11px; padding: 4px 10px; border-radius: 999px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; white-space: nowrap;
}
.cust-row .b-status.picked { background: rgba(74,217,113,.18); color: var(--good); }
.cust-row .b-status.waiting { background: rgba(212,175,55,.2); color: var(--gold-400); }
.cust-row.hit {
  background: rgba(212,175,55,.18);
  border-left: 5px solid var(--gold-500);
  padding-left: 8px;
}
.cust-empty { text-align: center; padding: 50px 20px; color: var(--muted); }

.cust-footer {
  text-align: center; padding: 24px;
  color: var(--gray-300); font-size: 13px;
  border-top: 1px solid var(--border);
  background: var(--navy-900);
}
.cust-footer img.brand-mini {
  height: 28px; margin: 6px auto;
  filter: brightness(0) invert(1);
  opacity: .85;
}

/* ---------- 1920x1080 Display ---------- */
/* Stage scales to fit any viewport; native = 1920x1080 */
body.display-body {
  margin: 0;
  background: var(--navy-900);
  overflow: hidden;
  height: 100vh;
  position: relative;
}
.display-root {
  position: absolute;
  width: 1920px; height: 1080px;
  left: 50%; top: 50%;
  margin: -540px 0 0 -960px;
  transform: scale(var(--display-scale, 1));
  transform-origin: 50% 50%;
  display: grid; grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(ellipse at top, var(--navy-700) 0%, var(--navy-900) 70%);
  font-family: "Segoe UI", system-ui, sans-serif;
  overflow: hidden;
  color: var(--white);
}

/* ----- Header ----- */
.display-header {
  display: grid; grid-template-columns: 280px 1fr 280px;
  align-items: center; gap: 24px;
  padding: 22px 36px 18px;
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  border-bottom: 4px solid var(--gold-500);
  position: relative;
}
.display-header .hdr-side { display: flex; align-items: center; }
.display-header .hdr-left { justify-content: flex-start; }
.display-header .hdr-right { justify-content: flex-end; }
.display-header .logo-card {
  background: var(--white);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.35), 0 0 0 3px rgba(212,175,55,.35);
  display: flex; align-items: center; justify-content: center;
  min-height: 110px;
}
.display-header .logo-card img { max-height: 90px; max-width: 240px; display: block; }
.display-header .logo-card img.manor { max-height: 100px; max-width: 240px; }

.display-header .hdr-center { text-align: center; }
.display-header h1 {
  margin: 0;
  font-size: 84px;
  font-weight: 900;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--white);
  text-shadow:
    0 2px 0 var(--navy-900),
    0 4px 0 var(--navy-900),
    0 8px 18px rgba(0,0,0,.55);
  line-height: 1;
}
.ribbon {
  display: inline-block;
  margin-top: 14px;
  background: linear-gradient(180deg, var(--gold-400) 0%, var(--gold-500) 100%);
  color: var(--navy-900);
  padding: 10px 36px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.6);
  border: 2px solid var(--gold-300);
}

/* ----- Grid: white cells, gold borders, green when picked up ----- */
.display-grid {
  display: grid;
  gap: 14px;
  padding: 22px 28px;
  align-content: stretch;
}

.dcell {
  background: var(--white);
  border-radius: 14px;
  border: 4px solid var(--gold-500);
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 4px 14px rgba(0,0,0,.35),
    inset 0 0 0 1px rgba(255,255,255,.7);
  transition: transform .15s ease, border-color .25s ease, background .25s ease;
}

/* Top header bar with BASKET #N label + optional picked-up check */
.dcell .basket-header {
  background: var(--gold-500);
  color: var(--navy-900);
  text-align: center;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 4px 10px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-shadow: 0 1px 0 rgba(255,255,255,.25);
}
.dcell .basket-header .pick-icon {
  position: absolute; right: 8px;
  width: 1.4em; height: 1.4em;
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  color: var(--good);
  border-radius: 50%;
  font-weight: 900;
  font-size: .9em;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}

/* Big body number (winning ticket #, or "—" if undrawn) */
.dcell .dbig {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  color: var(--navy-900);
  letter-spacing: 1px;
  line-height: 1;
  text-align: center;
}
.dcell.empty .dbig {
  color: #c5cbd6;
  font-weight: 600;
}

/* Category colors: Big Ticket (orange), Special (purple). Picked-up always wins green. */
.dcell.cat-big {
  border-color: #f97316;
}
.dcell.cat-big .basket-header {
  background: #f97316;
  color: var(--white);
  text-shadow: 0 1px 1px rgba(0,0,0,.3);
}
.dcell.cat-special {
  border-color: #8b5cf6;
}
.dcell.cat-special .basket-header {
  background: #8b5cf6;
  color: var(--white);
  text-shadow: 0 1px 1px rgba(0,0,0,.3);
}

/* Picked-up state: green border + header + soft green body. Wins over category. */
.dcell.picked {
  border-color: var(--good);
  background: linear-gradient(180deg, #eaffe8 0%, var(--white) 60%);
}
.dcell.picked .basket-header {
  background: var(--good);
  color: var(--navy-900);
}

.dcell.flash { animation: flash 1.6s ease-out; }
@keyframes flash {
  0% { background: var(--gold-300); transform: scale(1.06); border-color: var(--gold-300); }
  60% { background: var(--gold-400); }
  100% { background: var(--white); transform: scale(1); border-color: var(--gold-500); }
}

/* ----- Footer (4 cards like reference) ----- */
.display-footer {
  display: grid;
  grid-template-columns: 1.4fr 1.4fr 1.4fr 1fr;
  gap: 14px;
  padding: 16px 28px;
  background: linear-gradient(0deg, var(--navy-900) 0%, var(--navy-800) 100%);
  border-top: 4px solid var(--gold-500);
}
.foot-card {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 10px 16px;
  min-height: 110px;
}
.foot-card .foot-icon {
  width: 64px; height: 64px; flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 800;
  background: var(--gold-500); color: var(--navy-900);
  box-shadow: 0 3px 10px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.4);
}
.foot-card.foot-beneficiary .foot-icon { background: #ec4899; color: var(--white); }
.foot-card.foot-manor .foot-icon { background: var(--gold-500); color: var(--navy-900); }
.foot-card .foot-text { display: flex; flex-direction: column; line-height: 1.2; }
.foot-card .foot-text strong {
  color: var(--gold-400);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.foot-card .foot-text span { color: var(--white); font-size: 16px; margin-top: 2px; }

.foot-card.foot-qr img.qr {
  width: 96px; height: 96px;
  background: var(--white); padding: 6px; border-radius: 10px;
}

.foot-card.foot-status {
  flex-direction: column; align-items: stretch; justify-content: center; gap: 8px;
  padding: 12px 18px;
}
.foot-card.foot-status .legend { display: flex; gap: 14px; font-size: 14px; color: var(--gray-300); justify-content: center; flex-wrap: wrap; }
.foot-card.foot-status .legend span { display: inline-flex; align-items: center; gap: 6px; }
.foot-card.foot-status .clock {
  font-size: 28px; color: var(--white); font-weight: 700;
  font-variant-numeric: tabular-nums; text-align: center;
  letter-spacing: 1px;
}
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.dot.waiting { background: var(--gold-400); box-shadow: 0 0 6px rgba(230,197,88,.6); }
.dot.picked { background: var(--good); box-shadow: 0 0 6px rgba(74,217,113,.6); }

@media (max-width: 800px) {
  header.app h1 { font-size: 16px; }
  .container { padding: 16px; }
  .cust-header h1 { font-size: 22px; }
}

/* ---------- Instructions sheet (organizer one-pager + Save as PDF) ---------- */
.instructions-body { background: #eef1f6; color: #111; }
.print-toolbar {
  background: #fff; border-bottom: 1px solid #d8dde6;
  position: sticky; top: 0; z-index: 5;
}
.print-toolbar .btn.secondary {
  background: #fff; color: #0f1f44; border: 1px solid #c9d0dd;
}
.print-toolbar #printBtn {
  background: #0f1f44; color: #fff;
}

.instr-sheet {
  background: #fff; color: #111;
  width: 8.2in; max-width: 100%;
  margin: 24px auto; padding: 0.45in 0.5in;
  border-radius: 6px;
  box-shadow: 0 4px 24px rgba(0,0,0,.15);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  line-height: 1.35;
}

.instr-head {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #d4af37;
  margin-bottom: 14px;
}
.instr-head .ml-mark { width: 56px; height: auto; }
.instr-head .org-mark { max-height: 50px; max-width: 130px; width: auto; }
.instr-titles { min-width: 0; }
.instr-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: 1.2px;
  color: #b08d1c; text-transform: uppercase;
}
.instr-titles h1 {
  margin: 2px 0 2px; font-size: 19px; line-height: 1.15;
  color: #0a1730;
}
.instr-meta { font-size: 11.5px; color: #444; }

.instr-callout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px; align-items: center;
  background: #fff8e1;
  border: 1.5px solid #d4af37;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.instr-cta-eyebrow {
  font-size: 11px; font-weight: 700; color: #6b5a14;
  text-transform: uppercase; letter-spacing: .8px; margin-bottom: 4px;
}
.instr-url {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px; font-weight: 700;
  color: #0a1730; word-break: break-all;
}
.instr-url-sm { font-size: 11.5px; font-weight: 600; }
.instr-pin { margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.instr-pin-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  color: #6b5a14; text-transform: uppercase;
}
.instr-pin-value {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 22px; font-weight: 800; letter-spacing: 4px;
  color: #0a1730;
  background: #fff; padding: 2px 10px; border-radius: 4px;
  border: 1px solid #d4af37;
}
.instr-callout-right { text-align: center; }
.instr-callout-right img {
  width: 130px; height: 130px; display: block;
  border: 1px solid #d4af37; background: #fff; padding: 4px;
}
.qr-caption {
  font-size: 9.5px; color: #6b5a14; font-weight: 600;
  margin-top: 4px; text-transform: uppercase; letter-spacing: .5px;
}

.instr-section { margin-bottom: 11px; page-break-inside: avoid; }
.instr-section h2 {
  font-size: 13px; margin: 0 0 5px;
  color: #0a1730;
  border-bottom: 1px solid #e3e7ef; padding-bottom: 3px;
}
.instr-section-highlight {
  background: #f0f7ff;
  border-left: 3px solid #0a1730;
  padding: 8px 12px; border-radius: 4px;
}
.instr-section-highlight h2 { border: 0; padding: 0; margin-bottom: 3px; }
.instr-section-highlight p { margin: 0; font-size: 11.5px; color: #222; }

.instr-steps {
  margin: 4px 0 4px 18px; padding: 0;
  font-size: 11.5px; color: #222;
}
.instr-steps li { margin-bottom: 2px; }
.instr-note {
  margin: 4px 0 0; font-size: 11px; color: #555; font-style: italic;
}

.instr-legend {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px;
  font-size: 11.5px; color: #222;
}
.instr-legend li { display: flex; align-items: center; gap: 8px; }
.instr-legend .chip {
  display: inline-block; width: 14px; height: 14px;
  border-radius: 3px; border: 1px solid rgba(0,0,0,.18);
  flex-shrink: 0;
}
.chip-gold { background: #d4af37; }
.chip-orange { background: #f97316; }
.chip-purple { background: #8b5cf6; }
.chip-green { background: #4ad971; }
.chip-good {
  display: inline-block; padding: 1px 7px; border-radius: 3px;
  background: #e6f7ec; color: #1e7a3a; font-weight: 700; font-size: 10.5px;
}

.instr-foot {
  margin-top: 12px; padding-top: 8px;
  border-top: 1px solid #e3e7ef;
  font-size: 10px; color: #666; text-align: center;
}

@media print {
  @page { size: letter; margin: 0.4in; }
  html, body { background: #fff !important; }
  .no-print, .print-toolbar { display: none !important; }
  .instr-sheet {
    margin: 0; padding: 0; box-shadow: none; border-radius: 0;
    width: 100%; max-width: 100%;
  }
  .instr-section, .instr-callout, .instr-head, .instr-foot { page-break-inside: avoid; }
}

/* ---------- Print (Save as PDF from customer list) ---------- */
@media print {
  :root { --bg: #fff; --text: #000; --muted: #555; --panel: #fff; --border: #ccc; --gold-500: #b08d1c; --gold-400: #a07c10; }
  html, body { background: #fff !important; color: #000 !important; }
  .search-bar, button, .btn, #downloadPdf { display: none !important; }
  .cust-header {
    background: #fff !important;
    border-bottom: 2px solid var(--gold-500);
    padding: 16px;
  }
  .cust-header h1 { color: #000 !important; font-size: 22px; }
  .cust-header .org { color: #b08d1c !important; }
  .cust-header .when { color: #444 !important; }
  .cust-header .logos .lockup { box-shadow: none; padding: 0; }
  .cust-header .logos img { max-height: 60px; }
  .cust-list { padding: 12px 16px; max-width: none; }
  .cust-row {
    border-bottom: 1px solid #ccc !important;
    padding: 10px 0;
    page-break-inside: avoid;
  }
  .cust-row .b-num { color: #555 !important; }
  .cust-row .b-ticket { color: #000 !important; font-size: 18px; }
  .cust-row .b-desc { color: #555 !important; }
  .cust-row .b-status { border: 1px solid #999; color: #000 !important; background: #fff !important; }
  .cust-row.hit { background: #fff !important; border-left: none !important; padding-left: 0 !important; }
  .cust-footer {
    background: #fff !important;
    color: #555 !important;
    border-top: 1px solid #ccc;
  }
  .cust-footer img.brand-mini { filter: none; }
}
