/* Styles for the Spa, Equipment, Island and Reports screens (public/pos/spa.js, equipment.js, island.js, reports.js). */
:root { --sp-booked: #e6eef1; --sp-booked-b: var(--sea); --sp-done: #d6ebdf; --sp-done-b: #2f7d5b; --sp-noshow: #f3e4c2; --sp-noshow-b: #c98a1b; }

/* ---------- shared ---------- */
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.xp-sub { margin: -6px 0 12px; color: var(--muted); }
.xp-note { font-size: .88rem; margin: 0 0 10px; }
.xp-datebar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.xp-datebar .input { width: auto; }
.xp-panel { padding: 14px 16px; margin-bottom: 14px; }
.xp-panel h3 { margin-bottom: 8px; }
.xp-ph { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.xp-ph h3 { margin: 0 auto 0 0; }
.xp-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 14px; align-items: start; margin-top: 14px; }
.xp-grow { flex: 1; min-width: 0; }
.xp-grow small { display: block; color: var(--muted); }
.xp-btns { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.xp-meta { margin: 0 0 4px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.xp-stack { display: grid; gap: 8px; margin: 8px 0; }
.xp-check { display: flex; align-items: center; gap: 10px; color: var(--navy); }
.xp-check input { width: 24px; height: 24px; }
.xp-field > span { display: block; font-size: .9rem; color: var(--muted); margin-bottom: 4px; }
.xp-glist { margin-top: 6px; padding: 4px; }
.xp-glist option { padding: 10px; border-radius: 6px; }
.xp-row { display: flex; align-items: center; gap: 12px; justify-content: space-between; width: 100%; text-align: left; padding: 8px 10px; background: transparent; border: 0; border-bottom: 1px solid var(--sand-light); border-radius: 0; }
.xp-row:hover { background: var(--sand-light); }
.xp-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--sand-light); }
.xp-item.off { opacity: .6; }
.xp-thumb { width: 64px; flex: none; }
.xp-thumb.big { width: 120px; }
.xp-photo { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.xp-photo .xp-prev + input + div { display: grid; gap: 6px; }
.th-btn { min-height: 40px; padding: 0; border: 0; background: none; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; white-space: nowrap; }
.th-btn.on { color: var(--teal); font-weight: 600; }
.lg { display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: 6px; vertical-align: -2px; border: 1px solid transparent; }
.iconb { min-width: 44px; padding: 6px 10px; font-size: 1.1rem; }
.chip-btn { min-height: 44px; padding: 4px 16px; border-radius: var(--radius-pill); border: 1px solid var(--sand); background: var(--white); }
.chip-btn.on { background: var(--warn-bg); border-color: var(--warn); color: #8a5d0c; }
.print-only { display: none; }

/* ---------- spa ---------- */
.sp-stats { margin-bottom: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.sp-card { padding: 0; overflow: hidden; margin-bottom: 14px; }
.sp-scroll { overflow: auto; max-height: 70vh; -webkit-overflow-scrolling: touch; }
.sp-grid { display: grid; grid-template-columns: 56px repeat(var(--beds), minmax(150px, 1fr)); min-width: calc(56px + var(--beds) * 150px); }
.sp-corner, .sp-head { position: sticky; top: 0; z-index: 6; background: var(--sand-light); border-bottom: 1px solid var(--sand); padding: 10px 8px; text-align: center; font-family: var(--font-display); font-size: var(--fs-h3); }
.sp-corner { grid-column: 1; left: 0; z-index: 8; }
.sp-times { grid-column: 1; position: sticky; left: 0; z-index: 5; background: var(--cream); border-right: 1px solid var(--sand); }
.sp-time { font-size: .78rem; color: var(--muted); text-align: right; padding: 2px 6px 0 0; border-bottom: 1px solid transparent; }
.sp-body { position: relative; }
.sp-cols { display: grid; }
.sp-col { position: relative; border-left: 1px solid var(--sand); overflow: hidden; }
.sp-cell { display: block; width: 100%; height: 48px; min-height: 0; padding: 0; border: 0; border-bottom: 1px solid var(--sand-light); background: transparent; border-radius: 0; }
.sp-cell.half { border-bottom-color: var(--sand); }
.sp-cell:hover, .sp-cell:focus-visible { background: rgba(5, 86, 111, .16); }
.sp-blk { position: absolute; left: 3px; right: 3px; z-index: 2; display: flex; flex-direction: column; padding: 0; min-height: 0; text-align: left; border: 1px solid var(--sp-booked-b); border-left-width: 5px; border-radius: 8px; background: var(--sp-booked); overflow: hidden; box-shadow: var(--shadow); }
.sp-blk.st-completed { background: var(--sp-done); border-color: var(--sp-done-b); }
.sp-blk.st-no_show { background: var(--sp-noshow); border-color: var(--sp-noshow-b); opacity: .75; z-index: 1; }
.sp-in { display: block; padding: 4px 8px; overflow: hidden; line-height: 1.2; font-size: .9rem; flex: none; }
.sp-in strong { display: block; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-in span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-sub { color: var(--muted); font-size: .82rem; }
.sp-tail { display: block; flex: none; background: repeating-linear-gradient(135deg, rgba(47, 56, 80, .18) 0 4px, transparent 4px 9px); border-top: 1px dashed rgba(47, 56, 80, .35); }
.sp-now { position: absolute; left: 0; right: 0; height: 0; border-top: 2px solid var(--danger); z-index: 4; pointer-events: none; }
.sp-now::before { content: attr(data-t); position: absolute; left: 0; top: -10px; background: var(--danger); color: #fff; font-size: .7rem; padding: 0 5px; border-radius: 0 6px 6px 0; line-height: 18px; }
.sp-legend { display: flex; gap: 16px; flex-wrap: wrap; padding: 10px 14px; border-top: 1px solid var(--sand); font-size: .88rem; }
.lg.st-booked { background: var(--sp-booked); border-color: var(--sp-booked-b); }
.lg.st-completed { background: var(--sp-done); border-color: var(--sp-done-b); }
.lg.st-no_show { background: var(--sp-noshow); border-color: var(--sp-noshow-b); }
.lg-tail { background: repeating-linear-gradient(135deg, rgba(47, 56, 80, .35) 0 3px, transparent 3px 6px); border-color: var(--sand); }

.sp-body { grid-column: 2 / -1 !important; }

/* ---------- equipment ---------- */
.eq-out { border-left: 6px solid var(--warn); }
.eq-out.empty { border-left-color: var(--sand); }
.eq-outgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.eq-outcard { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--sand); border-radius: 12px; background: var(--cream); }
.eq-outcard.late { background: var(--danger-bg); border-color: var(--danger); }
.eq-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.eq-cat h3 { border-bottom: 1px solid var(--sand); padding-bottom: 4px; }
.eq-item { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--sand-light); }
.eq-item:last-child { border-bottom: 0; }
.eq-item.off { opacity: .6; }
.eq-name { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.eq-avail { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.eq-bar { height: 10px; border-radius: 5px; background: var(--ok-bg); overflow: hidden; border: 1px solid var(--sand); margin-top: 2px; }
.eq-bar i { display: block; height: 100%; background: var(--success); }
.eq-bar.low i { background: var(--warn); }
.eq-bar.full { background: var(--danger-bg); }
.eq-bar.full i { background: var(--danger); }
.eq-brow { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--sand-light); }
.eq-brow.done { opacity: .6; }
.eq-brow:last-child { border-bottom: 0; }

/* ---------- island ---------- */
.isl-grid { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: 14px; align-items: start; }
.isl-edgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; align-items: start; }
.isl-filter { margin-bottom: 8px; }
.isl-draftnote { margin: 0 0 10px; padding: 8px 12px; background: var(--warn-bg); border-radius: 10px; font-size: .92rem; color: #7a520a; }
.isl-cat h4 { margin: 12px 0 4px; font-family: var(--font-body); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.isl-li { display: flex; align-items: center; gap: 4px; border-radius: 10px; }
.isl-li.on { background: var(--sky-bg); }
.isl-li.draft .isl-t { }
.isl-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; text-align: left; padding: 6px 10px; background: transparent; border: 0; border-radius: 10px; }
.isl-open:hover { background: var(--sand-light); }
.isl-t { flex: 1; min-width: 0; }
.isl-ta { min-height: 280px; line-height: 1.45; font-family: var(--font-body); }
.isl-actions { align-items: center; }
.isl-empty { text-align: center; padding: 40px 16px; }
.isl-draftbanner { margin-bottom: 10px; padding: 12px 14px; border-radius: 10px; background: var(--warn-bg); border: 1px dashed var(--warn); color: #7a520a; font-weight: 600; }
.isl-art h2 { margin: 8px 0; }
.isl-body p { margin: 0 0 .8em; }
.isl-body ul { margin: 0 0 .8em; padding-left: 1.3em; }
.isl-body li { margin-bottom: .25em; }
.isl-map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 320px); gap: 14px; align-items: start; }
.mp-none { text-align: center; padding: 40px 16px; }
.mp-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.mp-zoom { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.mp-hint { min-height: 28px; margin-bottom: 8px; font-size: .95rem; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.mp-wrap { overflow: auto; max-height: 68vh; border: 1px solid var(--sand); border-radius: 12px; background: var(--sand-light); -webkit-overflow-scrolling: touch; }
.mp-stage { position: relative; min-width: 100%; cursor: grab; }
.mp-stage.mp-adding { cursor: crosshair; }
.mp-stage img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.mp-ov { position: absolute; inset: 0; pointer-events: none; }
.mp-ov svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.mp-trail { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.mp-trail.sel { stroke-width: 6; }
.mp-case { fill: none; stroke: #fff; stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.mp-hit { fill: none; stroke: transparent; stroke-width: 22; vector-effect: non-scaling-stroke; pointer-events: stroke; cursor: pointer; }
.mp-draft { fill: none; stroke: var(--warn); stroke-width: 4; stroke-dasharray: 8 6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.mp-pin { position: absolute; width: 26px; height: 26px; min-height: 0; padding: 0; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--teal); border: 3px solid #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .5); pointer-events: auto; }
.mp-pin::after { content: ''; position: absolute; inset: -12px; border-radius: 50%; }
.mp-pin.sel { background: var(--danger); width: 32px; height: 32px; margin: -16px 0 0 -16px; z-index: 3; box-shadow: 0 0 0 4px rgba(5, 86, 111, .8); }
.mp-pin.moving { opacity: .5; }
.mp-pin.flash, .mp-trail.flash { animation: mpflash .8s ease-in-out 3; }
@keyframes mpflash { 50% { box-shadow: 0 0 0 10px rgba(5, 86, 111, .9); } }
.mp-lbl { position: absolute; left: 100%; top: 50%; transform: translateY(-50%); margin-left: 6px; white-space: nowrap; font-size: .78rem; line-height: 1.2; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .88); color: var(--navy); pointer-events: none; }
.mp-dot { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; border: 3px solid var(--warn); pointer-events: none; }
.mp-dot.last { background: var(--warn); }
.mp-pending { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: rgba(201, 138, 27, .6); border: 3px solid #fff; pointer-events: none; }
.mp-adding .mp-pin, .mp-adding .mp-hit { pointer-events: none; }
.mp-sel { margin-top: 10px; }
.mp-card { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--sky-bg); border: 1px solid var(--sky); }
.mp-card h4 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; margin: 0 0 4px; }
.mp-card p { margin: 0; }
.mp-sw { display: inline-block; width: 16px; height: 16px; border-radius: 50%; flex: none; vertical-align: -2px; }
.mp-sw.pin { background: var(--teal); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--sand); }
.mp-row.on { background: var(--sky-bg); }
.mp-list { max-height: 80vh; overflow: auto; }
.mp-swatches { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.mp-swatches label { position: relative; }
.mp-swatches input { position: absolute; opacity: 0; inset: 0; }
.mp-swatches span { display: block; width: 48px; height: 48px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--sand); }
.mp-swatches input:checked + span { box-shadow: 0 0 0 3px var(--navy); }
.mp-swatches input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 3px; }

/* ---------- reports ---------- */
.rp-range { display: flex; gap: 12px 18px; align-items: end; flex-wrap: wrap; padding: 12px 14px; margin-bottom: 14px; }
.rp-presets { flex-wrap: wrap; border-radius: 24px; }
.rp-presets button { padding: 6px 16px; }
.rp-custom { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.rp-custom .f { margin: 0; }
.rp-custom .input { width: auto; }
.rp-tiles { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.rp-tiles .stat .sv { font-size: 1.6rem; }
.rp-tiles .net { background: var(--teal); color: var(--cream); border-color: var(--teal); }
.rp-tiles .net .sl { color: rgba(250, 247, 242, .8); }
.rp-card { overflow: hidden; }
.rp-wide { width: 100%; }
.rp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; align-items: start; }
.rp-grid .xp-panel { margin-bottom: 0; }
.rp-grid { margin-bottom: 14px; }
.rp-till { display: grid; grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); gap: 16px; align-items: start; }
.rp-till-side { display: grid; gap: 10px; }
.rp-till-side .stat { padding: 10px 12px; background: var(--cream); border: 1px solid var(--sand); border-radius: 12px; }
.rp-dayhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; justify-content: space-between; }
.rp-bars, .rp-hours { display: flex; align-items: stretch; gap: 3px; height: 170px; padding: 4px 0 0; overflow-x: auto; }
.rp-col { flex: 1 0 14px; min-width: 14px; max-width: 70px; display: flex; flex-direction: column; }
.rp-stack { flex: 1; display: flex; flex-direction: column-reverse; justify-content: flex-start; min-height: 0; border-bottom: 1px solid var(--sand); }
.rp-stack i, .rp-hb i { display: block; width: 100%; }
.b1 { background: var(--teal); }
.b2 { background: var(--sky); }
.b3 { background: var(--warn); }
.lg.b1 { background: var(--teal); } .lg.b2 { background: var(--sky); } .lg.b3 { background: var(--warn); }
.rp-x { height: 20px; line-height: 20px; font-size: .72rem; color: var(--muted); text-align: center; white-space: nowrap; overflow: visible; }
.rp-hr { flex: 1 0 18px; display: flex; flex-direction: column; }
.rp-hb { flex: 1; display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--sand); min-height: 0; padding: 0 1px; }
.rp-hb i { flex: 1; }
.rp-legend { display: flex; gap: 16px; font-size: .85rem; margin: 6px 0 10px; flex-wrap: wrap; }
.rp-note { display: block; color: var(--muted); }
.rp-days td { vertical-align: top; }
.rp-search { max-width: 360px; margin-bottom: 8px; }
.rp-export { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 14px; }
.rp-export small { display: block; }
.rp-printhead { display: none; }

/* ---------- print ---------- */
@media print {
  body.print-x > *:not(#app) { display: none !important; }
  body.print-x > #app { display: block !important; }
  body.print-x .top, body.print-x .no-print, body.print-x .toasts { display: none !important; }
  body.print-x { background: #fff; color: #000; font-size: 10.5pt; }
  body.print-x .main { padding: 0; max-width: none; }
  body.print-x .card { box-shadow: none; break-inside: avoid; }
  body.print-x .rp-printhead { display: block; font-family: var(--font-body); font-size: 16pt; margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid #000; }
  body.print-x .tbl th, body.print-x .tbl td { padding: 3px 6px; }
  body.print-x .rp-bars, body.print-x .rp-hours { height: 120px; }
  body.print-x .sp-scroll { max-height: none; overflow: visible; }
  body.print-x .mp-wrap { max-height: none; overflow: visible; }
  body.print-x * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- tablet / phone ---------- */
@media (max-width: 1100px) {
  .eq-main { grid-template-columns: 1fr; }
  .isl-grid { grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .row3 { grid-template-columns: 1fr; }
  .isl-grid, .isl-map { grid-template-columns: 1fr; }
  .rp-till { grid-template-columns: 1fr; }
  .xp-two { grid-template-columns: 1fr; }
  .eq-avail { grid-template-columns: 1fr; }
  .eq-item, .eq-brow { flex-wrap: wrap; }
  .xp-thumb { width: 52px; }
  .mp-zoom { margin-left: 0; }
  .rp-presets { width: 100%; }
  .rp-presets button { flex: 1 1 auto; }
  .eq-outgrid { grid-template-columns: 1fr; }
}

/* touch targets: app.css makes .btn.sm 40px tall; keep the extras screens at 48px */
.xp-panel .btn.sm, .screen-h .btn.sm, .mp-card .btn.sm, .mp-hint .btn.sm, .mp-tools .btn.sm, .eq-outcard .btn.sm, .eq-brow .btn.sm, .rp-dayhead .btn.sm, .rp-days .btn.sm { min-height: 48px; }

/* ---------- tips ---------- */
.tk-tools.three { grid-template-columns: repeat(3, 1fr); }
.tk-tools.three .btn { padding: 6px 6px; font-size: .88rem; }
.tk-sub.tip { color: var(--teal); font-weight: 600; margin-top: 2px; }
.tk-tipnote { font-size: .84rem; color: var(--muted); margin-bottom: 4px; }
.tipchip { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; min-width: 76px; }
.tipchip small { font-size: .74rem; opacity: .85; }
.tipchip:disabled { opacity: .45; }
.tiprow { margin-bottom: 12px; padding: 10px 12px; border: 1px solid var(--sand); border-radius: 12px; background: var(--cream); }
.tiprow .chips-pick { margin: 8px 0 10px; }
.tipblock { border-top: 1px dashed var(--sand); margin-top: 4px; padding-top: 4px; }
.tipblock .tip-h { font-weight: 600; color: var(--teal); }
.tipblock .tip-h small { font-weight: 400; color: var(--muted); }
.tipblock .bline.tip { align-items: center; }
.tipblock .tip-d { flex: 1; min-width: 0; }
.tipblock .tip-d small { display: block; color: var(--muted); font-size: .82rem; }
.tipblock .btn.sm { min-height: 48px; }
.tip-add { margin-top: 8px; }
.tip-add .btn { min-height: 48px; width: 100%; }
.rp-tiles .tips { border-color: var(--teal); border-style: dashed; background: var(--sky-bg); }
.rp-tiles .stat .sc { font-size: .8rem; color: var(--muted); }
@media (max-width: 520px) { .tk-tools.three { grid-template-columns: 1fr 1fr; } .tk-tools.three .btn:last-child { grid-column: 1 / -1; } }

/* ---------- equipment: Upcoming view ---------- */
.screen-h .seg { order: 0; }
.eq-tools { display: flex; gap: 12px 16px; flex-wrap: wrap; align-items: center; }
.eq-tools .seg { max-width: 100%; }
.eq-tools .seg button { padding: 6px 14px; }
.eq-tools .btn { min-height: 48px; }
.eq-tools > .btn:last-child { margin-left: auto; }
.eq-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.eq-stat { background: var(--white); border: 1px solid var(--sand); border-radius: 14px; padding: 10px 14px; display: flex; flex-direction: column; }
.eq-stat strong { font-size: 1.7rem; line-height: 1.1; color: var(--navy); }
.eq-stat small { color: var(--muted); }
.eq-stat.warn { background: var(--warn-bg); border-color: var(--warn); }
.eq-stat.bad { background: var(--danger-bg); border-color: var(--danger); }
.eq-stat.bad strong { color: var(--danger); }
.eq-sect { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; margin: 6px 0 10px; }
.eq-sect h2 { margin: 0; margin-right: auto; }
.eq-day.today { border-left: 6px solid var(--teal); }
.eq-dayh { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--sand); padding-bottom: 4px; }
.eq-slot { margin: 8px 0 0; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.eq-none { margin: 4px 0 0; color: var(--muted); }
.eq-arow { align-items: flex-start; }
.eq-arow .xp-grow small { display: block; color: var(--muted); }
.eq-arow .eq-note { color: var(--navy); }
.eq-price { white-space: nowrap; }

.eq-gridwrap { overflow-x: auto; border: 1px solid var(--sand); border-radius: 12px; background: var(--white); max-width: 100%; -webkit-overflow-scrolling: touch; }
.eq-grid { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; }
.eq-grid th, .eq-grid td { border-bottom: 1px solid var(--sand-light); border-right: 1px solid var(--sand-light); padding: 0; text-align: center; background: var(--white); }
.eq-grid thead th { position: sticky; top: 0; z-index: 2; padding: 6px 4px; font-weight: 600; background: var(--sand-light); }
.eq-grid thead th span { display: block; font-size: .78rem; color: var(--muted); }
.eq-grid thead th.today, .eq-grid td.today { border-left: 2px solid var(--teal); border-right: 2px solid var(--teal); }
.eq-grid thead th.today { background: var(--sky-bg); color: var(--teal); }
.eq-grid .eq-gname { position: sticky; left: 0; z-index: 1; text-align: left; min-width: 160px; max-width: 200px; padding: 6px 10px; box-shadow: 1px 0 0 var(--sand); font-weight: 600; }
.eq-grid thead .eq-gname { z-index: 3; }
.eq-gname span { display: block; }
.eq-gname small { display: block; font-weight: 400; color: var(--muted); }
.eq-gcat th { text-align: left; background: var(--cream); padding: 6px 10px; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.eq-gcat th span { position: sticky; left: 10px; }
.eq-cell { display: flex; flex-direction: column; justify-content: center; gap: 3px; width: 100%; min-width: 92px; min-height: 56px; padding: 4px 6px; border: 0; background: transparent; color: var(--navy); font-size: .74rem; text-align: left; position: relative; }
.eq-cell.nil { color: var(--sand); }
.eq-cell.l1 { background: var(--sky-bg); }
.eq-cell.l2 { background: var(--warn-bg); }
.eq-cell.full { background: var(--danger-bg); box-shadow: inset 0 0 0 2px var(--danger); }
.eq-dash { text-align: center; font-size: 1.2rem; }
.eq-cl { display: flex; align-items: center; gap: 4px; line-height: 1; }
.eq-cl b { width: 18px; font-weight: 600; }
.eq-cl em { font-style: normal; font-variant-numeric: tabular-nums; margin-left: auto; }
.eq-mini { display: block; flex: 1; height: 6px; border-radius: 3px; background: var(--white); border: 1px solid var(--sand); overflow: hidden; }
.eq-mini u { display: block; height: 100%; background: var(--teal); text-decoration: none; }
.eq-mini.low u { background: var(--warn); }
.eq-mini.full u { background: var(--danger); }
.eq-fulltag { position: absolute; top: 1px; right: 3px; font-size: .62rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--danger); }
.eq-cell.full .eq-cl:first-child { margin-top: 8px; }
.eq-cell:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }

@media (max-width: 900px) {
  .eq-tools > .btn:last-child { margin-left: 0; }
  .eq-grid .eq-gname { min-width: 112px; max-width: 130px; padding: 6px; font-size: .88rem; }
  .eq-stats { grid-template-columns: repeat(2, 1fr); }
  .screen-h .seg { width: 100%; }
  .screen-h .seg button { flex: 1; }
}
@media print {
  body.print-x .eq-day { break-inside: avoid; margin-bottom: 6px; padding: 6px 8px; border-left-width: 1px; }
  body.print-x .eq-stats { grid-template-columns: repeat(5, 1fr); }
  body.print-x .eq-stat { padding: 4px 8px; }
  body.print-x .eq-stat strong { font-size: 1.1rem; }
  body.print-x .eq-brow { padding: 3px 0; }
}
.screen-h .seg button, .eq-tools .seg button, .eq-sect .seg button { min-height: 48px; }

/* ---- equipment: return check, alerts, returns log ---- */
.eq-due { font-size: .9rem; color: var(--muted); white-space: nowrap; }
.eq-due.late { color: var(--danger); font-weight: 600; }
.eq-rgood { opacity: .85; }
.eq-rbad { border-left: 4px solid var(--danger); padding-left: 10px; background: var(--danger-bg); }
.eq-rinfo { display: flex; gap: 10px; align-items: flex-start; margin-top: 2px; }
.eq-rinfo .xp-grow small { display: block; }
.eq-pthumb { flex: none; width: 64px; height: 48px; padding: 0; border: 1px solid var(--sand); border-radius: 8px; overflow: hidden; background: var(--sand-light); cursor: zoom-in; }
.eq-pthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eq-rrow { align-items: flex-start; }
.eq-rrow .xp-grow small { display: block; color: var(--muted); }
.eq-rrow .xp-grow small.eq-note { color: var(--navy); }
.eq-bigphoto { text-align: center; }
.eq-bigphoto img { max-width: 100%; max-height: 70vh; border-radius: 12px; }

/* attention panel */
.eq-attn { border-left: 6px solid var(--warn); }
.eq-attn.urgent { border-left-color: var(--danger); background: var(--danger-bg); }
.eq-attn.empty { border-left-color: var(--sand); }
.eq-attn.err { border-left-color: var(--danger); }
.eq-alert { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--sand); }
.eq-alert:first-of-type { border-top: 0; }
.eq-alert.conflict { border-left: 4px solid var(--danger); padding-left: 10px; }
.eq-alert .xp-grow small { display: block; }
.eq-alert .eq-wait { color: var(--navy); }
.eq-alert .eq-sent { color: var(--success); }
.eq-need { font-weight: 700; }
.eq-attn .btn.sm { min-height: 48px; }
.nav .badge.eq-badge.urgent { background: var(--danger); box-shadow: 0 0 0 2px var(--cream); }

/* return dialog */
.eq-rwho { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; margin-bottom: 14px; background: var(--sand-light); border-radius: 12px; }
.eq-rwho small { color: var(--muted); }
.eq-conds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.eq-cond { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; text-align: left; min-height: 72px; padding: 10px 14px; border: 2px solid var(--sand); border-radius: 14px; background: var(--white); color: var(--navy); }
.eq-cond small { color: var(--muted); }
.eq-cond.on.good { border-color: var(--success); background: var(--ok-bg); }
.eq-cond.on.damaged { border-color: var(--warn); background: var(--warn-bg); }
.eq-cond.on.lost { border-color: var(--danger); background: var(--danger-bg); }
.eq-cond:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.eq-lbl { display: block; font-size: .9rem; color: var(--muted); margin-bottom: 4px; }
.eq-lbl em, .eq-ret label em { font-style: normal; font-size: .85em; opacity: .8; }
.eq-pickrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.eq-pickrow .eq-pthumb { width: 96px; height: 72px; }
.eq-quick { margin-top: 8px; }
.eq-warn { padding: 10px 12px; border-radius: 12px; background: var(--warn-bg); border: 1px solid var(--warn); margin: 0 0 10px; }
.eq-warnt { color: var(--danger); font-weight: 600; }
.eq-ret .f { margin-bottom: 12px; }
.eq-ret .f > small { display: block; margin-top: 4px; }
.eq-step { display: flex; gap: 8px; align-items: center; }
.eq-step .btn { min-width: 52px; min-height: 48px; }
.eq-step .input { width: 80px; text-align: center; }
.eq-ret .btn, .eq-ret .input { min-height: 48px; }
.eq-ret .btn.sm { min-height: 48px; }
@media (max-width: 700px) {
  .eq-conds { grid-template-columns: 1fr; }
  .eq-alert { flex-wrap: wrap; }
  .eq-alert .xp-grow, .eq-rrow .xp-grow { flex: 1 1 100%; }
  .eq-rinfo { flex-wrap: wrap; }
  .eq-rrow { flex-wrap: wrap; }
}

/* ---------- surf cams (Island) ---------- */
.cm-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.cm-wrap.cm-open { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); }
.cm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 14px; }
.cm-card { padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.cm-card.on { box-shadow: 0 0 0 2px var(--sky); }
.cm-card.inactive .cm-frame { opacity: .6; }
.cm-info h4 { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; }
.cm-info p { margin: 6px 0 0; }
.cm-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.cm-info .xp-btns { margin-top: 10px; }
.cm-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--sand-light); border: 1px solid var(--sand); display: flex; align-items: center; justify-content: center; }
.cm-frame img, .cm-frame video, .cm-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; background: var(--sand-light); }
.cm-frame video { object-fit: contain; }
.cm-frame.bad img, .cm-frame.bad video, .cm-frame.bad iframe { visibility: hidden; }
.cm-off { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 10px; background: var(--sand-light); color: var(--muted); }
.cm-off[hidden] { display: none; }
.cm-off strong { color: var(--danger); font-size: 1.05rem; }
.cm-testh { margin: 12px 0 6px; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; font-family: var(--font-body); }
.cm-ed form { position: sticky; top: 8px; }
.cm-help { margin-top: 4px; }
.cm-help summary { cursor: pointer; font-weight: 600; min-height: 48px; display: flex; align-items: center; }
.cm-card .btn.sm, .cm-ed .btn, .cm-main .xp-ph .btn { min-height: 48px; }
@media (max-width: 900px) {
  .cm-wrap.cm-open { grid-template-columns: minmax(0, 1fr); }
  .cm-ed form { position: static; }
  .cm-cards { grid-template-columns: minmax(0, 1fr); }
}
