/* ShiftPlanner — dark glass theme matching joakimsuhr.se */

:root {
  --bg: #030712;
  --text: #e4e4e7;
  --muted: #a1a1aa;
  --faint: #71717a;
  --line: rgba(255, 255, 255, 0.09);
  --glass: rgba(17, 24, 39, 0.65);
  --accent: #6366f1;
  --accent2: #22d3ee;
  --load: rgba(52, 211, 153, 0.16);
  --dump: rgba(251, 191, 36, 0.14);
  --standby: rgba(129, 140, 248, 0.1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}

/* Glow blobs like the website */
body::before, body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}
body::before { width: 500px; height: 500px; top: -10%; left: -10%; background: #4f46e5; }
body::after { width: 500px; height: 500px; bottom: -10%; right: -10%; background: #059669; }

/* ---- Live orbit animation (top right): trucks circling the haul loop ---- */
.live-orbit {
  position: fixed; top: 10px; right: 14px; z-index: 60;
  display: flex; align-items: center; gap: 6px;
}
.live-orbit svg { width: 42px; height: 42px; }
.orbit-ring { fill: none; stroke: rgba(255, 255, 255, 0.15); stroke-width: 1; stroke-dasharray: 3 4; }
.orbit { transform-origin: 24px 24px; animation: orbit-spin 7s linear infinite; }
.orbit-2 { animation-delay: -2.33s; }
.orbit-3 { animation-delay: -4.66s; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
.live-label {
  font-size: 9px; font-weight: 800; letter-spacing: 0.18em; color: #34d399;
  display: flex; align-items: center; gap: 4px;
}
.live-label::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #34d399; animation: live-pulse 1.8s ease-in-out infinite;
}
@keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---- Nav / tabs (admin) ---- */
.tabs {
  display: flex; align-items: center; gap: 4px;
  padding: 10px 110px 10px 14px; position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 26, 0.8); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.tabs button {
  background: none; border: none; color: var(--muted);
  padding: 8px 14px; border-radius: 8px; cursor: pointer; font-size: 14px;
}
.tabs button.active {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.35), rgba(34, 211, 238, 0.35));
  color: #fff;
}
.tabs-spacer { flex: 1; }
.tab-link {
  background: none; border: none; color: var(--faint); font-size: 13px;
  cursor: pointer; text-decoration: none; padding: 7px 10px;
}
.tab-link:hover { color: var(--text); }

.tab { display: none; padding: 18px; position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; }
.tab.active { display: block; }
h2 { font-size: 18px; }

/* ---- Controls & forms ---- */
.controls { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.sync-result { font-size: 13px; color: var(--muted); }
.truck-ratio { display: inline-flex; gap: 8px; align-items: flex-end;
  padding: 4px 8px; border: 1px solid var(--line); border-radius: 10px; }
.truck-ratio label { flex-direction: row; align-items: center; gap: 5px; }
button {
  padding: 8px 15px; border: 1px solid var(--line); border-radius: 8px;
  background: rgba(255, 255, 255, 0.05); color: var(--text); cursor: pointer; font-size: 14px;
}
button:hover { background: rgba(255, 255, 255, 0.1); }
button.primary {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: #fff; border: none; font-weight: 600;
}
label { display: inline-flex; flex-direction: column; font-size: 12px; gap: 4px; color: var(--muted); }
input, select, textarea {
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px;
  background: rgba(0, 0, 0, 0.35); color: var(--text); font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { min-width: 240px; resize: vertical; }

.dayinfo-details { margin: 12px 0; }
.dayinfo-details summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 4px 0; }
.dayinfo-details[open] summary { color: var(--text); }
.dayinfo-card { margin-top: 8px; align-items: flex-start; }
::placeholder { color: var(--faint); }
input[type="date"] { color-scheme: dark; }

table { border-collapse: collapse; width: 100%; background: var(--glass); border-radius: 10px; overflow: hidden; }
th, td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; font-size: 13px; }
th { background: rgba(255, 255, 255, 0.05); color: var(--muted); font-weight: 600; }

.card {
  background: var(--glass); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; margin-bottom: 16px; display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end;
  backdrop-filter: blur(10px);
}
fieldset { border: 1px solid var(--line); border-radius: 8px; }
legend { color: var(--muted); font-size: 12px; }
#cert-checkboxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
#cert-checkboxes label { flex-direction: row; align-items: center; gap: 6px; color: var(--text); }

/* ---- Shift paper (real skiftpapper layout) ---- */
#shift-paper { margin-top: 14px; position: relative; z-index: 1; }
.paper { display: flex; flex-direction: column; gap: 12px; }
.paper-body { display: flex; gap: 12px; align-items: flex-start; }
.paper-bands { flex: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.band { display: flex; gap: 10px; flex-wrap: wrap; }

.col {
  flex: 1 1 150px; min-width: 140px; max-width: 210px;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: var(--glass); backdrop-filter: blur(8px);
  display: flex; flex-direction: column;
}
.col-head {
  padding: 5px 8px; font-size: 13px; font-weight: 700; color: #fff;
  border-bottom: 1px solid var(--line); text-align: center;
}
/* Printed header colours (dark-theme tints on screen, real colours in print) */
.col-head.color-blue   { background: rgba(59, 130, 246, 0.35); }
.col-head.color-salmon { background: rgba(251, 146, 110, 0.30); }
.col-head.color-red    { background: rgba(239, 68, 68, 0.40); }
.col-head.color-yellow { background: rgba(250, 204, 21, 0.30); }
.col-head.color-plain  { background: rgba(255, 255, 255, 0.06); }

.machines { display: flex; flex-direction: column; gap: 3px; padding: 6px 14px; }
.machine {
  border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 4px;
  text-align: center; font-weight: 700; font-size: 13px; padding: 2px 4px;
  background: rgba(0, 0, 0, 0.25);
}
.machine.car { font-weight: 500; color: var(--muted); border-style: dashed; }

.editable-machine { position: relative; cursor: grab; }
.machine-x {
  display: none; position: absolute; top: -6px; right: -6px;
  width: 16px; height: 16px; line-height: 15px; border-radius: 50%;
  background: #ef4444; color: #fff; font-size: 12px; font-weight: 700;
  text-align: center; cursor: pointer;
}
.editable-machine:hover .machine-x { display: block; }

#tab-generate .seat, #tab-generate .standby-card span { cursor: grab; }
.col.drag-over, .standby-card.drag-over { outline: 2px dashed #34d399; outline-offset: -2px; }
/* Insertion marker: the dragged truck/person lands on this spot. */
.machine.drop-before, .seat.drop-before { box-shadow: 0 -3px 0 0 #34d399; }

.seats { border-top: 1px solid var(--line); }
.seat { display: flex; gap: 7px; padding: 4px 8px; font-size: 13px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); align-items: baseline; }
.seat:last-child { border-bottom: none; }
.seat .slot { font-weight: 700; width: 13px; color: var(--muted); text-align: right; }
.seat .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat.loader { background: rgba(99, 102, 241, 0.12); }
/* Pinned to a row that doesn't match their A/B/C/D letter. */
.seat.off-row { background: rgba(250, 204, 21, 0.30); }
/* Overtime helper from outside the shift team — wins over the off-row tint. */
.seat.overtime, .standby-card span.overtime { background: rgba(239, 68, 68, 0.28); }
/* In the gang but no row yet: the gang is full until someone is lifted out. */
.seat.waiting { opacity: 0.7; font-style: italic; }
.seat.waiting .nm { border-bottom: 1px dashed var(--muted); }
.grp { font-weight: 700; width: 14px; }
.grp-A { color: #38bdf8; }
.grp-B { color: #818cf8; }
.grp-C { color: #2dd4bf; }
.grp-D { color: #fb7185; }

/* Right-hand column beside the gangs: absence list on top, bubble under it. */
.side-col { flex: 0 0 130px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.side-col > * { flex: 0 0 auto; }

.absent-col {
  flex: 0 0 130px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--glass); backdrop-filter: blur(8px); overflow: hidden;
}
.absent-head {
  padding: 5px 8px; font-size: 12px; font-weight: 700; color: var(--muted);
  border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.05);
}
.absent-name { padding: 3px 8px; font-size: 13px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.absent-name:last-child { border-bottom: none; }
.absent-reason { color: var(--faint); font-size: 11px; }

/* ---- Right-click context menu (admin) ---- */
.ctx-menu {
  position: fixed; z-index: 200; min-width: 180px;
  background: #0d1420; border: 1px solid var(--line); border-radius: 10px;
  padding: 5px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  display: flex; flex-direction: column; gap: 1px;
}
.ctx-menu button {
  text-align: left; background: none; border: none; color: var(--text);
  padding: 8px 11px; border-radius: 7px; font-size: 13px; cursor: pointer; width: 100%;
}
.ctx-menu button:hover { background: rgba(255, 255, 255, 0.09); }
.ctx-menu button.danger { color: #fb7185; }
.ctx-menu hr { border: none; border-top: 1px solid var(--line); margin: 3px 2px; }
/* hint that names are right-clickable in the admin paper */
#tab-generate .seat, #tab-generate .standby-card span, #tab-generate .absent-name { cursor: context-menu; }
.cert-flash { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; transition: outline-color 0.4s; }
.status-badge {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px;
  border-radius: 999px; margin-left: 6px; text-transform: capitalize;
}
.status-badge.sjuk { background: rgba(251, 113, 133, 0.22); color: #fb7185; }
.status-badge.semester { background: rgba(250, 204, 21, 0.22); color: #fbbf24; }

/* ---- One-click certification chips ---- */
.cert-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.cert-chip {
  font-size: 11px; padding: 2px 9px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); user-select: none; white-space: nowrap;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.cert-chip.on {
  background: rgba(52, 211, 153, 0.18); border-color: rgba(52, 211, 153, 0.5); color: #6ee7b7;
}
.cert-chip.on::before { content: "✓ "; }
.cert-chip.off { color: var(--faint); background: rgba(255, 255, 255, 0.03); }
.cert-chip.off:hover { color: var(--text); border-color: var(--muted); }
.cert-chip.on:hover { background: rgba(52, 211, 153, 0.28); }
tr.cert-flash > td { background: rgba(99, 102, 241, 0.15); transition: background 0.4s; }

.standby-card {
  background: var(--standby); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.standby-card h3 {
  margin: 0; padding: 6px 9px; font-size: 13px; color: #fff;
  background: rgba(255, 255, 255, 0.06); border-bottom: 1px solid var(--line);
}
.standby-card .seats { display: flex; flex-wrap: wrap; gap: 5px 16px; padding: 8px; font-size: 13px; border-top: none; }

/* Holding bubble — admin scratch area, dashed to read as "not the paper". */
.parked-card {
  border: 1px dashed var(--muted); border-radius: 10px;
  background: rgba(255, 255, 255, 0.03); overflow: hidden;
}
.parked-card h3 {
  margin: 0; padding: 6px 9px; font-size: 12px; color: var(--muted);
  background: rgba(255, 255, 255, 0.04); border-bottom: 1px dashed var(--line);
}
.parked-items {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  padding: 10px; min-height: 34px; font-size: 13px;
}
.parked-items .machine { min-width: 52px; }
.parked-items > span[data-wid] { cursor: grab; }
.parked-empty { color: var(--muted); font-style: italic; }
.parked-card.drag-over { outline: 2px dashed #34d399; outline-offset: -2px; }

.paper-notice {
  text-align: center; font-size: 22px; font-weight: 800; color: #f87171; padding: 2px 0;
}

.paper-footer { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }
.foot-box {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  background: var(--glass); backdrop-filter: blur(8px); font-size: 12.5px;
}
.reserve-box { flex: 1 1 160px; }
.phones-box { flex: 2 1 260px; }
.foot-title { font-weight: 800; font-size: 14px; margin-bottom: 6px; text-align: center; }
.foot-line { padding: 1.5px 0; color: var(--text); }
.foot-line b { color: var(--muted); font-weight: 600; }
.foot-stack { flex: 1 1 220px; display: flex; flex-direction: column; gap: 8px; }
.date-box {
  border-radius: 10px; padding: 10px; text-align: center; font-size: 17px; font-weight: 800;
  background: rgba(192, 132, 252, 0.25); border: 1px solid var(--line);
}
.company-box {
  border-radius: 10px; padding: 8px 10px; text-align: center; font-weight: 900;
  letter-spacing: 0.08em; font-size: 18px; border: 1px solid var(--line);
  background: rgba(251, 146, 110, 0.18);
}
.company-box span { display: block; font-size: 9px; font-weight: 500; letter-spacing: 0.02em; color: var(--muted); }
.leaders-box { background: rgba(59, 130, 246, 0.12); }
.leader-line b { color: var(--text); }

.paper-title { display: none; }

/* ---- Worker view ---- */
.worker-view { max-width: 1500px; margin: 0 auto; padding: 12px; position: relative; z-index: 1; }
.worker-header {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  position: sticky; top: 8px; padding: 10px; z-index: 40;
  background: rgba(11, 15, 26, 0.85); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 12px;
  margin-right: 96px; /* room for the live orbit */
}
.worker-date-nav { display: flex; gap: 4px; align-items: center; }
.worker-date-nav button { font-size: 18px; padding: 6px 14px; }
#name-search { flex: 1; min-width: 150px; font-size: 16px; padding: 10px 12px; }
.paper-status { padding: 34px 10px; text-align: center; color: var(--faint); font-size: 15px; }
.worker-footer { text-align: center; padding: 20px; font-size: 12px; color: var(--faint); }
.worker-footer a { color: var(--muted); }
@media (max-width: 480px) {
  .worker-view .seat { font-size: 14px; padding: 6px 8px; }
  .worker-view .col { flex-basis: 100%; max-width: none; }
  .worker-view .paper-body { flex-direction: column; }
  .worker-view .absent-col,
  .worker-view .side-col { flex-basis: auto; width: 100%; }
  .worker-header { margin-right: 0; margin-top: 48px; }
}

/* ---- Name highlight ---- */
.seat.highlight, .standby-card .highlight {
  background: rgba(251, 222, 100, 0.92) !important; color: #111 !important; font-weight: 700; border-radius: 3px;
}
.seat.highlight .slot, .seat.highlight .grp { color: #333 !important; }

/* ---- Machine status sheet (worker view: tap a truck) ---- */
.worker-view .machine { cursor: pointer; }
.machine-sheet {
  position: fixed; inset: 0; z-index: 90; display: flex;
  align-items: flex-end; justify-content: center;
  background: rgba(3, 7, 18, 0.72); backdrop-filter: blur(4px);
}
.machine-sheet[hidden] { display: none; }
.machine-sheet-card {
  width: min(460px, 100%); background: #0d1420;
  border: 1px solid var(--line); border-radius: 16px 16px 0 0;
  padding: 16px 18px 20px; max-height: 80vh; overflow-y: auto;
}
@media (min-width: 620px) {
  .machine-sheet { align-items: center; }
  .machine-sheet-card { border-radius: 16px; }
}
.machine-sheet-head { display: flex; align-items: center; justify-content: space-between; }
.machine-sheet-title { margin: 0; font-size: 24px; letter-spacing: 0.02em; }
.machine-sheet-head button {
  background: none; border: none; color: var(--muted); font-size: 26px;
  line-height: 1; padding: 0 6px; cursor: pointer;
}
.machine-feedname { margin: 2px 0 10px; color: var(--faint); font-size: 12px; }
.machine-where {
  font-size: 19px; font-weight: 700; color: #34d399;
  padding: 10px 12px; margin-bottom: 12px;
  background: rgba(52, 211, 153, 0.10); border-radius: 10px;
}
.machine-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
.machine-row:last-child { border-bottom: none; }
.machine-row span { color: var(--muted); }
.machine-row b { text-align: right; word-break: break-word; }
.machine-loading, .machine-miss { color: var(--muted); font-size: 14px; padding: 10px 0; }
.machine-sheet-foot { margin: 14px 0 0; color: var(--faint); font-size: 11px; text-align: center; }

/* ---- Machine map (worker view) ---- */
.map-card { width: min(760px, 100%); }
.map-canvas {
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line);
  border-radius: 12px; margin-top: 10px; overflow: hidden;
}
.map-canvas svg {
  display: block; width: 100%; height: min(58vh, 460px);
  cursor: grab; touch-action: none;   /* we handle pinch/drag ourselves */
}
.map-canvas svg:active { cursor: grabbing; }

.map-wrap { position: relative; }
.map-zoom {
  position: absolute; right: 10px; bottom: 10px;
  display: flex; flex-direction: column; gap: 4px;
}
.map-zoom button {
  width: 34px; height: 34px; padding: 0; font-size: 17px; line-height: 1;
  background: rgba(13, 20, 32, 0.85); border: 1px solid var(--line);
  backdrop-filter: blur(4px);
}
.map-legend {
  display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px;
  font-size: 12px; color: var(--muted);
}
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot-truck { background: #22d3ee; }
.dot-loader { background: #fbbf24; }
.dot-other { background: #52525b; }
.map-legend i.dot-ring { background: none; border: 2px solid #34d399; }

/* Thin hairlines: non-scaling-stroke means this is screen pixels, so anything
   thick turns 604 segments into a smear. */
.map-canvas .roads polyline {
  fill: none; stroke: rgba(203, 213, 225, 0.55); stroke-width: 1.2;
  stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke; shape-rendering: geometricPrecision;
}
.map-canvas circle { cursor: pointer; }
.map-canvas .dot-truck { fill: #22d3ee; }
.map-canvas .dot-loader { fill: #fbbf24; }
.map-canvas .dot-other { fill: #52525b; }
.map-canvas svg { shape-rendering: geometricPrecision; }
/* Outlines in screen pixels so they don't thicken as you zoom in. Machines
   glide to their new position on each refresh instead of jumping. */
.map-canvas circle {
  vector-effect: non-scaling-stroke;
  transition: cx 1.2s linear, cy 1.2s linear;
}
@media (prefers-reduced-motion: reduce) {
  .map-canvas circle { transition: none; }
}
.map-canvas .on-paper { stroke: #34d399; stroke-width: 2; }
.map-canvas .moving { opacity: 1; }
.map-canvas circle:not(.moving) { opacity: 0.55; }
/* The machine tapped on the paper — must stand out among ~113 dots. */
.map-canvas .focus { fill: #f43f5e; stroke: #fff; stroke-width: 2.5; opacity: 1 !important; }
.map-canvas .focus-halo {
  fill: none; stroke: #f43f5e; stroke-width: 2;
  animation: halo-pulse 1.6s ease-in-out infinite;
}
@keyframes halo-pulse { 0%,100% { opacity: 0.9; } 50% { opacity: 0.25; } }
.dot-focus { background: #f43f5e; }
.map-where-sub { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 3px; }
.map-info {
  margin-top: 10px; padding: 9px 12px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.05); font-size: 14px; min-height: 20px;
}

/* ---- Admin login ---- */
.login-overlay {
  position: fixed; inset: 0; background: rgba(3, 7, 18, 0.9);
  display: flex; align-items: center; justify-content: center; z-index: 100;
  backdrop-filter: blur(6px);
}
/* display:flex above would otherwise override the hidden attribute */
.login-overlay[hidden] { display: none; }

/* Overtime popup: same card as the login box, wider for the licence list. */
.overtime-card { width: 420px; max-width: 92vw; max-height: 88vh; overflow-y: auto; }
.overtime-card fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.overtime-card legend { color: var(--muted); font-size: 12px; padding: 0 4px; }
.overtime-certs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.overtime-certs label {
  display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer;
}
.overtime-actions { display: flex; gap: 8px; }
.overtime-actions button { flex: 1; }
/* Reusing a stored person: their details are shown but not editable here. */
.overtime-card input:disabled, .overtime-card select:disabled { opacity: 0.55; }
.overtime-certs input:disabled + * , .overtime-certs label:has(input:disabled) { opacity: 0.7; }
.login-card {
  background: #0d1420; border: 1px solid var(--line); border-radius: 16px;
  padding: 30px; display: flex; flex-direction: column; gap: 12px; width: 310px;
}
.login-card h2 { margin: 0; color: #fff; }
.login-card p { margin: 0; font-size: 13px; color: var(--muted); }
.login-card input { font-size: 16px; padding: 11px; }
.login-error { color: #fb7185; min-height: 16px; }
.login-back { font-size: 13px; text-align: center; color: var(--faint); text-decoration: none; }

/* ---- Print: replicate the real white A4-landscape skiftpapper ---- */
@media print {
  @page { size: A4 landscape; margin: 6mm; }
  .no-print, .live-orbit { display: none !important; }
  body::before, body::after { display: none !important; }
  body { background: #fff; color: #000; }
  .tab, .worker-view { padding: 0; max-width: none; }

  .paper { gap: 6px; }
  .paper-body { gap: 6px; }
  .paper-bands { gap: 6px; }
  .band { gap: 5px; flex-wrap: nowrap; }

  .col { background: #fff; border: none; border-radius: 0; min-width: 0; max-width: none; backdrop-filter: none; }
  .col-head { color: #000; border: 1px solid #000; font-size: 10px; padding: 2px 4px; }
  .col-head.color-blue   { background: #9dc3e6; }
  .col-head.color-salmon { background: #f8cbad; }
  .col-head.color-red    { background: #ff0000; color: #fff; }
  .col-head.color-yellow { background: #ffff00; }
  .col-head.color-plain  { background: #fff; border: none; font-weight: 700; }

  .machines { padding: 3px 10px; gap: 2px; }
  .machine { border: 1.5px solid #000; border-radius: 0; background: #fff; color: #000; font-size: 10px; padding: 1px 2px; }
  .machine.car { border: 1px solid #000; border-style: solid; color: #000; font-weight: 600; }

  .seats { border-top: none; }
  .seat { border-bottom: none; color: #000; font-size: 10px; padding: 1.5px 4px; }
  .seat .slot { color: #000; }
  .seat.loader { background: #eef2f8; }
  .seat.off-row { background: #fdf0b4; }
  .seat.overtime, .standby-card span.overtime { background: #f7c9c9; }
  .grp-A { color: #2e75b6; }
  .grp-B { color: #1f4e99; }
  .grp-C { color: #0e7c7b; }
  .grp-D { color: #c00000; }

  .absent-col { background: #fff; border: none; border-radius: 0; flex-basis: 95px; }
  /* The bubble is no-print, so the side column shrinks to just the absence list. */
  .side-col { flex-basis: 95px; gap: 0; }
  .absent-head { background: #fff; color: #000; border-bottom: 1px solid #000; font-size: 9px; padding: 2px 4px; }
  .absent-name { color: #000; font-size: 10px; padding: 1.5px 4px; border-bottom: none; }

  .standby-card { background: #fff; border: 1px solid #000; border-radius: 0; }
  .standby-card h3 { background: #eee; color: #000; font-size: 10px; padding: 2px 6px; border-bottom: 1px solid #000; }
  .standby-card .seats { color: #000; font-size: 10px; gap: 2px 12px; padding: 4px 6px; }

  .paper-notice { color: #ff0000; font-size: 20px; }

  .paper-footer { gap: 6px; flex-wrap: nowrap; }
  .foot-box { background: #fbe5d6; border: 1px solid #000; border-radius: 0; color: #000; font-size: 9.5px; backdrop-filter: none; }
  .reserve-box { background: #fff; }
  .foot-title { font-size: 13px; }
  .foot-line, .foot-line b { color: #000; }
  .date-box { background: #c9a0dc; border: 1px solid #000; border-radius: 0; color: #000; font-size: 15px; }
  .company-box { background: #f4b183; border: 1px solid #000; border-radius: 0; color: #000; }
  .company-box span { color: #000; }
  .leaders-box { background: #d6e4f0; }
  .leader-line b { color: #000; }
  .leader-line { color: #1e7c34; font-weight: 700; }

  .seat.highlight, .absent-name.highlight, .standby-card .highlight {
    background: none !important; color: #000 !important; font-weight: inherit;
  }
}
