/* Tema Eliminacode — totem, display, operatore, sale prelievi */
:root {
  --brand: #0066b3;
  --brand-dark: #004d88;
  --bg: #0a1628;
  --bg-panel: #0f2240;
  --surface: #152a4a;
  --text: #ffffff;
  --muted: #8eb4d9;
  --accent: #00c853;
  --accent-glow: rgba(0, 200, 83, 0.35);
  --danger: #ff5252;
  --border: #1e3a5f;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.hidden { display: none !important; }

/* Barra stato connessione (nascosta su TV, visibile in setup) */
.status-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
  background: var(--bg-panel);
  color: var(--muted);
}
.status-bar.online { color: var(--accent); }
.status-bar.offline { color: var(--danger); }
.page-display .status-bar { display: none; }
.page-room .status-bar { display: none; }

/* ========== SALA PRELIEVI ========== */
.page-room {
  min-height: 100vh;
  background: linear-gradient(180deg, #0a1628 0%, #061018 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
}
.room-header {
  padding: 1rem 1.5rem;
  text-align: center;
  background: var(--brand-dark);
  border-bottom: 4px solid var(--brand);
}
.room-header h1 {
  font-size: clamp(1.15rem, 4.5vw, 1.6rem);
  margin: 0;
  line-height: 1.35;
  padding: 0 1rem;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.room-sub { color: #94a3b8; margin: 0.35rem 0 0; font-size: 0.95rem; }
.room-header .btn-change-room { max-width: calc(100% - 2rem); margin-top: 0.5rem; }
.room-hero {
  margin: 2rem auto 1rem;
  text-align: center;
  padding: 2rem;
  max-width: 520px;
  width: 100%;
}
.room-hero.flash { animation: hero-flash 0.6s ease; }
.room-hero-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}
.room-hero-num {
  font-size: clamp(4rem, 18vw, 7rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.room-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  padding: 0 1rem 1rem;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}
.room-actions .btn-call { flex: 1 1 200px; }
.room-list-title {
  font-size: 1rem;
  color: #cbd5e1;
  margin: 1rem 1.5rem 0.5rem;
  max-width: 640px;
  width: 100%;
  align-self: center;
}
.page-room .waiting-list {
  max-width: 640px;
  width: 100%;
  margin: 0 auto 2rem;
  padding: 0 1rem;
  align-self: center;
}
.page-room .wl-item {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}
.page-room .wl-num { color: #fff; }

/* ========== DISPLAY TV (visore sala) ========== */
.page-display {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bg) 0%, #061018 100%);
}

body.page-display:has(#display-panel.display-layout-board) {
  background: #ffffff;
}

#display-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 100vh;
  width: 100%;
}

.display-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--brand-dark);
  border-bottom: 4px solid var(--brand);
}

.display-top .brand-block {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.display-top img#site-logo {
  max-height: 56px;
  max-width: 180px;
  object-fit: contain;
}

.display-top h1 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.display-clock {
  font-size: 1.25rem;
  color: var(--muted);
}

.display-body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-rows: minmax(0, 1fr);
  grid-template-areas: "hero sidebar";
  gap: 0;
  min-height: 12rem;
}

.display-hero {
  grid-area: hero;
}

.display-sidebar {
  grid-area: sidebar;
}

@media (max-width: 900px) {
  .display-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "hero"
      "sidebar";
  }
}

.display-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2rem 2.5rem;
  position: relative;
  overflow: visible;
  min-height: 0;
  box-sizing: border-box;
}

.display-hero .hero-label {
  font-size: clamp(1.25rem, 3vw, 2rem);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
}

.display-hero .hero-number {
  font-size: clamp(6rem, 22vw, 14rem);
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 60px var(--accent-glow);
  transition: transform 0.3s ease;
}

.display-hero.flash .hero-number {
  animation: pulse-call 0.8s ease;
}

@keyframes pulse-call {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.display-hero .hero-desk {
  margin-top: 1rem;
  font-size: clamp(1.25rem, 4.5vw, 2.75rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  max-width: 100%;
  width: 100%;
  padding: 0 1.5rem;
  box-sizing: border-box;
  text-align: center;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: break-word;
  flex-shrink: 0;
}

.display-hero .hero-queue {
  margin-top: 0.5rem;
  font-size: 1.25rem;
  color: var(--muted);
}

.display-sidebar {
  background: var(--bg-panel);
  border-left: 1px solid var(--border);
  padding: 1.25rem;
  overflow-y: auto;
}

.display-sidebar h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.queue-mini {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.queue-mini .qm-name {
  font-size: 0.95rem;
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  padding-right: 0.5rem;
}
.queue-mini .qm-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.recent-list {
  margin-top: 1.5rem;
}

.recent-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.recent-item strong { color: var(--text); }

/* Layout split: ticket a sinistra (verde), sportello + ultimi a destra */
#display-panel.display-layout-split .display-body {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

#display-panel.display-layout-split .display-hero {
  background: linear-gradient(180deg, #14532d 0%, #052e16 55%, #031a0f 100%);
  border-right: 4px solid #22c55e;
}

#display-panel.display-layout-split .display-hero .hero-label {
  color: #bbf7d0;
}

#display-panel.display-layout-split .display-hero .hero-number {
  color: #4ade80;
  text-shadow: 0 0 80px rgba(74, 222, 128, 0.55);
}

#display-panel.display-layout-split .display-hero .hero-queue {
  display: none;
}

#display-panel.display-layout-split .display-split-desk {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 1rem;
  border-bottom: 1px solid var(--border);
  min-height: 42%;
}

#display-panel.display-layout-split .display-split-desk h2 {
  font-size: clamp(1rem, 2vw, 1.35rem);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

#display-panel.display-layout-split .display-split-desk .hero-desk {
  margin-top: 0;
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 700;
  text-align: center;
  line-height: 1.15;
  color: var(--text);
}

#display-panel.display-layout-split .display-sidebar-queues {
  display: none;
}

#display-panel.display-layout-split .recent-list {
  margin-top: 0;
  padding: 1rem 1.25rem 1.25rem;
  flex: 1;
  overflow-y: auto;
}

#display-panel.display-layout-split .recent-list h2 {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  margin-bottom: 0.75rem;
}

#display-panel.display-layout-split .recent-item {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

#display-panel.display-layout-split .recent-item strong {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
}

#display-panel.display-layout-split .display-sidebar {
  display: flex;
  flex-direction: column;
  padding: 0;
}

#display-panel.display-layout-classic .display-split-desk {
  display: none;
}

#display-panel.display-layout-classic .hero-desk-slot {
  width: 100%;
}

/* Layout board: tabellone TICKET | SPORTELLO (stile tabellone sala) */
.display-board {
  display: none;
}

#display-panel.display-layout-board {
  background: #ffffff;
}

#display-panel.display-layout-board.page-display,
.page-display #display-panel.display-layout-board {
  background: #ffffff;
}

#display-panel.display-layout-board .display-top {
  background: #ffffff;
  color: #1e3a8a;
  border-bottom: 2px solid #dbeafe;
}

#display-panel.display-layout-board .display-top h1 {
  color: #1e3a8a;
}

#display-panel.display-layout-board .display-clock {
  color: #64748b;
}

#display-panel.display-layout-board .display-body {
  grid-template-columns: 1fr;
  grid-template-areas: "board";
  background: #ffffff;
}

#display-panel.display-layout-board .display-hero,
#display-panel.display-layout-board .display-sidebar {
  display: none;
}

#display-panel.display-layout-board .display-board {
  grid-area: board;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 0.75rem 1.25rem 1.25rem;
  box-sizing: border-box;
}

#display-panel.display-layout-board .display-board-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 0.35rem 0.5rem 0.85rem;
  font-size: clamp(1.35rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #1e40af;
  text-transform: uppercase;
}

#display-panel.display-layout-board .display-board-rows {
  flex: 0 0 auto;
  display: grid;
  grid-template-rows: repeat(4, clamp(5.25rem, 17vh, 8.75rem));
  gap: 0.55rem;
  align-content: start;
}

#display-panel.display-layout-board .display-board-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  height: 100%;
  min-height: 0;
}

#display-panel.display-layout-board .display-board-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand, #3366cc);
  color: #ffffff;
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
  height: 100%;
  min-height: clamp(5.25rem, 17vh, 8.75rem);
}

#display-panel.display-layout-board .display-board-cell--ticket {
  font-size: clamp(2rem, 7.5vw, 4.75rem);
}

#display-panel.display-layout-board .display-board-cell--desk {
  font-size: clamp(1.15rem, 3.2vw, 2.35rem);
  line-height: 1.15;
  padding: 0.5rem 0.65rem;
}

#display-panel.display-layout-board .display-board-row--empty .display-board-cell {
  background: #e8eef8;
  border: 2px dashed #cbd5e1;
  color: transparent;
}

#display-panel.display-layout-board .display-board-row--highlight .display-board-cell {
  background: #15803d;
  color: #ffffff;
  animation: board-highlight-blink 0.9s ease-in-out infinite;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.35);
}

@keyframes board-highlight-blink {
  0%, 100% {
    background: #15803d;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.35);
  }
  50% {
    background: #22c55e;
    box-shadow: 0 0 28px 6px rgba(34, 197, 94, 0.55);
  }
}

#display-panel.display-layout-board .display-board-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: clamp(1.25rem, 3vw, 2rem);
}

#display-panel.display-layout-board .display-footer-bar {
  background: #f8fafc;
  color: #475569;
  border-top: 1px solid #e2e8f0;
}

#display-panel.display-layout-board .signage-strip {
  border-top: 1px solid #e2e8f0;
}

.display-footer-bar {
  text-align: center;
  padding: 0.75rem;
  background: var(--brand-dark);
  font-size: 1rem;
  color: var(--muted);
}

/* ========== TOTEM ========== */
.page-totem {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, var(--brand-dark) 0%, var(--bg) 45%);
}

.totem-header {
  text-align: center;
  padding: 2rem 1.5rem 1rem;
}

.totem-header img#site-logo,
.booking-header img#site-logo {
  max-height: 72px;
  margin-bottom: 1rem;
  background: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.display-top img#site-logo {
  background: #fff;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
}

.totem-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
}

.totem-header p {
  color: var(--muted);
  font-size: 1.15rem;
  margin-top: 0.5rem;
}

.totem-quick-actions {
  padding: 0 1.5rem 0.5rem;
  max-width: 640px;
  margin: 0 auto;
}

.totem-action {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 2px solid var(--brand);
  background: #fff;
  cursor: pointer;
  margin-bottom: 0.5rem;
}

.totem-action-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark, #0088c2) 100%);
  color: #fff;
  border-color: transparent;
}

.totem-action-title {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
}

.totem-action-desc {
  display: block;
  font-size: 0.85rem;
  opacity: 0.9;
  margin-top: 0.25rem;
}

.totem-section-label {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0.5rem 0 0.75rem;
  padding: 0 1rem;
}

.totem-scan-panel {
  padding: 0 1.5rem 2rem;
  max-width: 520px;
  margin: 0 auto;
}

.totem-scan-back {
  width: 100%;
  margin-bottom: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.85rem 1rem;
  font-weight: 600;
}

.totem-scan-intro {
  color: var(--muted);
  margin-bottom: 1rem;
  text-align: center;
}

.totem-scan-camera-start {
  margin-bottom: 1rem;
}

.totem-scan-start-btn,
.totem-scan-confirm-btn {
  width: 100%;
  background: var(--brand);
  color: #fff;
  padding: 1rem;
  font-weight: 600;
}

.totem-scan-stop-btn {
  width: 100%;
  margin: 0.5rem 0 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem;
}

.totem-qr-reader {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.totem-scan-manual-label {
  display: block;
  margin-top: 0.5rem;
  margin-bottom: 0.35rem;
}

.totem-scan-manual-input {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.totem-scan-confirm-btn {
  margin-top: 0.75rem;
}

.totem-scan-result {
  margin-top: 1rem;
  text-align: center;
  font-size: 1.1rem;
}

.totem-scan-late-actions {
  margin-top: 1rem;
  text-align: center;
}

.totem-scan-late-actions p {
  color: #b45309;
  margin-bottom: 0.75rem;
}

.totem-services {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  padding: 1.5rem 2rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.service-tile {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem 1.5rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  color: inherit;
  font: inherit;
}

.service-tile:hover,
.service-tile:focus {
  border-color: var(--brand);
  background: var(--bg-panel);
  transform: translateY(-2px);
  outline: none;
}

.service-tile .tile-code {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-tile--no-code {
  min-height: 140px;
  justify-content: center;
}

.service-tile--no-code .tile-name {
  margin-top: 0;
  min-height: auto;
}

.service-tile .tile-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 0.5rem;
  min-height: 2.85em;
  line-height: 1.425;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.service-tile .tile-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.35rem;
  min-height: 2.5em;
  line-height: 1.25;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
}

.totem-ticket-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.totem-ticket-screen .ticket-label-text {
  font-size: 1.25rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.totem-ticket-screen .ticket-big {
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 800;
  color: var(--accent);
  margin: 0.5rem 0;
}

.totem-ticket-screen .ticket-wait {
  font-size: 1.35rem;
  color: var(--text);
  margin: 1rem 0 2rem;
}

.totem-ticket-screen .ticket-hint {
  color: var(--muted);
  max-width: 400px;
  line-height: 1.5;
}

/* ========== OPERATORE (postazione / Windows) ========== */
.page-operator {
  min-height: 100vh;
  background: #eef2f7;
  color: #1a2332;
}

.page-operator .status-bar {
  position: relative;
  background: #fff;
  border-bottom: 1px solid #d0d7e2;
}

.op-header {
  background: var(--brand);
  color: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.op-header-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.op-compact-only { display: none; }

.op-header h1 { font-size: 1.25rem; font-weight: 600; }

.op-header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.op-header-btn {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.op-dialog {
  border: none;
  border-radius: 12px;
  padding: 0;
  margin: auto;
  max-width: min(26rem, calc(100vw - 1.5rem));
  width: min(22rem, calc(100vw - 1.5rem));
  box-sizing: border-box;
  overflow: hidden;
  max-height: calc(100dvh - 1.5rem);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.2);
}

.op-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.op-dialog-form {
  padding: 1.1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
}

.op-dialog-form h2 {
  margin: 0 0 0.15rem;
  font-size: 1.05rem;
}

.op-dialog-lead {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.op-dialog-form label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  margin-top: 0.25rem;
}

.op-dialog-form input {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid #d0d7e2;
  border-radius: 6px;
  box-sizing: border-box;
}

.op-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-top: 0.65rem;
  min-width: 0;
}

.op-dialog--prompt {
  width: min(20rem, calc(100vw - 1.25rem));
  max-width: min(20rem, calc(100vw - 1.25rem));
}

.op-dialog--prompt .op-dialog-actions .btn {
  min-width: 0;
  width: 100%;
  padding: 0.65rem 0.5rem;
  font-size: 0.88rem;
  white-space: normal;
  line-height: 1.2;
  text-align: center;
  box-sizing: border-box;
}

.op-dialog--alert .op-dialog-actions {
  grid-template-columns: 1fr;
}

.page-operator-compact .op-dialog {
  width: calc(100vw - 1rem);
  max-width: calc(100vw - 1rem);
}

.page-operator-compact .op-dialog-form {
  padding: 0.85rem 0.85rem 0.95rem;
}

.page-operator-compact .op-dialog-form h2 {
  font-size: 0.95rem;
}

.page-operator-compact .op-dialog-lead {
  font-size: 0.82rem;
}

.page-operator-compact .op-dialog-actions .btn {
  padding: 0.58rem 0.4rem;
  font-size: 0.82rem;
}

.op-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 900px) {
  .op-main { grid-template-columns: 1fr; }
}

.op-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
}

.op-card label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.op-card select {
  width: 100%;
  padding: 0.65rem;
  border: 1px solid #d0d7e2;
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.op-now-serving {
  text-align: center;
  padding: 1.5rem 0;
  border: 2px dashed #d0d7e2;
  border-radius: 12px;
  margin: 1rem 0;
}

.op-now-serving .label { font-size: 0.85rem; color: #64748b; }
.op-now-serving .number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.1;
}
.op-now-serving .desk { font-size: 1.25rem; margin-top: 0.25rem; }

.op-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.op-finish-actions {
  margin-top: 1rem;
  padding: 1rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
}
.op-finish-actions.hidden { display: none; }
.op-finish-label {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #166534;
}
.op-finish-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
}
.op-finish-row.hidden { display: none; }
.op-finish-row .wl-room-select { flex: 1; min-width: 10rem; }
.op-finish-queue,
.op-finish-close { width: 100%; margin-bottom: 0.5rem; }
.op-finish-absent,
.op-finish-noshow {
  width: 100%;
  margin-top: 0.5rem;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}
.op-finish-absent:disabled,
.op-finish-noshow:disabled {
  opacity: 0.55;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.25rem;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-call {
  grid-column: 1 / -1;
  background: var(--brand);
  color: #fff;
  font-size: 1.35rem;
  padding: 1.25rem;
  min-height: 64px;
}
.btn-call:hover { background: var(--brand-dark); }

.btn-secondary { background: #e2e8f0; color: #1a2332; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-danger { background: #fee2e2; color: #b91c1c; }

.op-next-hint {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  text-align: center;
}
.op-next-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #047857;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.op-next-ticket {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: #065f46;
  line-height: 1.2;
}
.op-next-queue {
  font-size: 0.85rem;
  color: #64748b;
}
.op-waiting-summary {
  margin-top: 1rem;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.4;
}
.op-queue-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.op-badge {
  font-size: 0.8rem;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  color: #475569;
}
.op-badge b { color: var(--brand); margin-right: 0.2rem; }
.op-waiting-title {
  font-size: 1rem;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.op-waiting-count {
  background: var(--brand);
  color: #fff;
  font-size: 0.85rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  min-width: 1.5rem;
  text-align: center;
}
.op-waiting-help {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}
.op-waiting-title--sub {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}
.bookings-today-list {
  list-style: none;
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 0.25rem;
}
.bookings-today-list .wl-item.wl-booking-pending {
  border-color: #fbbf24;
  background: #fffbeb;
}

.waiting-list {
  list-style: none;
  max-height: 480px;
  overflow-y: auto;
}

.waiting-list .wl-empty {
  color: #94a3b8;
  padding: 1rem 0;
  font-size: 0.95rem;
}

.waiting-list .wl-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.waiting-list .wl-item.wl-suggested {
  background: #f0fdf4;
  margin: 0 -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border-radius: 8px;
  border-bottom-color: #bbf7d0;
}

.wl-main { flex: 1; min-width: 0; }
.wl-num {
  display: block;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--brand);
  line-height: 1.2;
}
.wl-queue {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.15rem;
}
.wl-arrival {
  display: block;
  font-size: 0.8rem;
  color: #475569;
  margin-top: 0.2rem;
  font-variant-numeric: tabular-nums;
}
.wl-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  margin-top: 0.2rem;
  vertical-align: middle;
}
.wl-tag-wait {
  background: #fef3c7;
  color: #92400e;
}
.waiting-list .wl-item.wl-not-yet {
  opacity: 0.85;
}
.btn-wl-call:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn-wl-skip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.bookings-today-list .wl-arrival-hint {
  color: #b45309;
  font-weight: 600;
}

.wl-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-shrink: 0;
}

.btn-wl-call,
.btn-wl-skip,
.btn-wl-suspend {
  border: none;
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-wl-call {
  background: var(--brand);
  color: #fff;
}
.btn-wl-call:hover { background: var(--brand-dark); }
.btn-wl-skip {
  background: transparent;
  color: #b91c1c;
}
.btn-wl-suspend {
  background: transparent;
  color: #b45309;
  border: 1px solid #fcd34d;
}
.op-finish-suspend {
  background: #fff7ed;
  color: #b45309;
  border: 1px solid #fdba74;
}
.waiting-list .wl-item.wl-suspended {
  border-left: 3px solid #f59e0b;
}

/* Operatore compatto (pannello widget / ?view=compact) */
.page-operator-compact {
  min-height: 100vh;
  background: #f1f5f9;
  display: flex;
  flex-direction: column;
}
.page-operator-compact #app-section {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.page-operator-compact .matrix-credit,
.page-operator-compact .status-bar,
.page-operator-compact .op-waiting-help,
.page-operator-compact .op-full-only { display: none !important; }
.page-operator-compact .op-compact-only { display: block; }
.page-operator-compact .op-compact-only.hidden { display: none !important; }
.page-operator-compact .op-header {
  padding: 0.4rem 0.55rem;
  flex-shrink: 0;
}
.page-operator-compact .op-header h1 {
  font-size: 0.82rem;
  font-weight: 600;
  max-width: 5.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
}
.page-operator-compact .op-header-desk,
.page-operator-compact .op-compact-header-desk {
  font-size: 0.72rem;
  opacity: 0.9;
  padding: 0.12rem 0.45rem;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  white-space: nowrap;
  max-width: 7rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.page-operator-compact .op-compact-conn {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #94a3b8;
}
.page-operator-compact .op-compact-conn.online { background: #4ade80; box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.35); }
.page-operator-compact .op-compact-conn.offline { background: #f87171; }
.page-operator-compact .op-header-btn {
  padding: 0.28rem 0.45rem;
  font-size: 0.72rem;
  min-height: 1.75rem;
}
.page-operator-compact .op-compact-menu { position: relative; display: inline-block; }
.page-operator-compact .op-compact-menu summary {
  list-style: none;
  cursor: pointer;
}
.page-operator-compact .op-compact-menu summary::-webkit-details-marker { display: none; }
.page-operator-compact .op-compact-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 120;
  background: #fff;
  color: #1e293b;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
  padding: 0.35rem;
  display: grid;
  gap: 0.25rem;
  min-width: 9rem;
}
.page-operator-compact .op-compact-menu__panel .btn { width: 100%; justify-content: flex-start; }
.page-operator-compact #btn-toggle-lists {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.page-operator-compact .op-compact-waiting-badge {
  background: #fbbf24;
  color: #78350f;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  min-width: 1.1rem;
  text-align: center;
}
.page-operator-compact .op-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: none;
  padding: 0.5rem;
  gap: 0;
  min-height: 0;
}
.page-operator-compact .op-card-primary {
  flex: 1;
  padding: 0.65rem;
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.page-operator-compact .op-desk-select {
  width: 100%;
  padding: 0.4rem 0.5rem;
  font-size: 0.82rem;
  margin-bottom: 0.45rem;
  border-radius: 8px;
  border: 1px solid #d0d7e2;
}
.page-operator-compact .op-next-hint {
  cursor: pointer;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #93c5fd;
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
  margin-bottom: 0.45rem;
  transition: transform 0.12s ease;
}
.page-operator-compact .op-next-hint:active { transform: scale(0.98); }
.page-operator-compact .op-next-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1d4ed8;
}
.page-operator-compact .op-next-ticket {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: #1e3a8a;
  line-height: 1.15;
}
.page-operator-compact .op-next-queue {
  font-size: 0.72rem;
  color: #475569;
}
.page-operator-compact .op-next-tap {
  display: block;
  font-size: 0.68rem;
  color: #2563eb;
  margin-top: 0.15rem;
}
.page-operator-compact .op-now-serving {
  text-align: center;
  padding: 0.35rem 0 0.5rem;
  margin: 0;
  border: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.page-operator-compact.compact-has-waiting .op-now-serving {
  cursor: pointer;
}
.page-operator-compact.compact-has-waiting .op-now-serving .number {
  color: #0f766e;
  animation: op-compact-pulse 2s ease-in-out infinite;
}
.page-operator-compact.compact-in-service .op-now-serving .number {
  color: var(--brand);
  animation: none;
}
.page-operator-compact .op-now-serving .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.page-operator-compact .op-now-serving .number {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.05;
}
.page-operator-compact .op-now-serving .desk {
  font-size: 0.85rem;
  color: #64748b;
}
.page-operator-compact.compact-in-service .op-now-serving {
  flex: 0 0 auto;
  padding: 0.2rem 0 0.35rem;
  cursor: default;
}
.page-operator-compact.compact-in-service .op-now-serving .number {
  font-size: 2.1rem;
}
.page-operator-compact.compact-in-service .op-finish-actions {
  background: linear-gradient(180deg, #f0fdf4, #ecfdf5);
  border: 1px solid #86efac;
  border-radius: 10px;
  flex-shrink: 0;
  margin-top: 0;
  padding: 0.55rem;
}
.page-operator-compact.compact-in-service .op-finish-actions .btn {
  padding: 0.55rem 0.4rem;
  font-size: 0.78rem;
  min-height: 2.45rem;
}
.page-operator-compact.compact-in-service .op-compact-stats {
  display: none !important;
}
.page-operator-compact.compact-in-service .op-compact-dock-hint {
  display: none !important;
}
.page-operator-compact.compact-calling .op-compact-dock #btn-call-next,
.page-operator-compact.compact-in-service .op-compact-dock #btn-call-next,
.page-operator-compact .op-compact-dock #btn-call-next:disabled {
  display: none;
}
.page-operator-compact.compact-calling .op-compact-dock .op-actions,
.page-operator-compact.compact-in-service .op-compact-dock .op-actions {
  grid-template-columns: 1fr;
}
.page-operator-compact.compact-in-service .op-card-primary {
  overflow-y: auto;
}
.page-operator-compact.compact-in-service .op-restore-absent {
  display: none !important;
}
.op-restore-absent {
  margin: 0.35rem 0 0;
}
.op-restore-absent-summary {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.45rem 0.5rem;
  border: 1px solid #fdba74;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  color: #9a3412;
  font-size: 0.75rem;
  text-align: left;
  cursor: pointer;
}
.op-restore-absent-summary-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.op-restore-absent-chevron {
  flex-shrink: 0;
  font-weight: 600;
  color: #c2410c;
  font-size: 0.72rem;
}
.op-restore-absent-badge {
  flex-shrink: 0;
  background: #ea580c;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  min-width: 1.1rem;
  text-align: center;
}
.op-restore-absent-panel {
  border: 1px solid #fdba74;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  overflow: hidden;
}
.op-restore-absent-expanded-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid #fdba74;
  font-size: 0.78rem;
  color: #9a3412;
}
.op-restore-absent-list {
  max-height: 7.5rem;
  overflow-y: auto;
  padding: 0.25rem 0.35rem 0.35rem;
}
.op-restore-absent-item {
  padding: 0.35rem 0.15rem;
}
.op-restore-absent-item + .op-restore-absent-item {
  border-top: 1px solid rgba(253, 186, 116, 0.55);
  margin-top: 0.15rem;
  padding-top: 0.4rem;
}
.op-restore-absent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}
.op-restore-absent-label {
  font-weight: 800;
  font-size: 0.88rem;
  color: #c2410c;
  flex-shrink: 0;
}
.op-restore-absent-row-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}
.op-restore-absent-wait {
  margin: 0;
  font-size: 0.65rem;
  color: #b45309;
  white-space: nowrap;
}
.op-restore-absent .btn-restore-absent.btn-sm {
  padding: 0.32rem 0.45rem;
  font-size: 0.72rem;
  min-height: auto;
  background: #ea580c;
  color: #fff;
}
.op-restore-absent .btn-dismiss-absent.btn-sm {
  padding: 0.32rem 0.4rem;
  font-size: 0.68rem;
  min-height: auto;
}
.page-operator-compact .op-compact-dock #btn-call-next {
  transition: opacity 0.1s ease;
}
.page-operator-compact.compact-in-service .op-restore-absent {
  order: -1;
  margin-bottom: 0.35rem;
}
.page-operator-compact .op-finish-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.5rem;
  margin: 0.35rem 0 0;
}
.page-operator-compact .op-finish-label {
  grid-column: 1 / -1;
  margin: 0 0 0.15rem;
  font-size: 0.78rem;
}
.page-operator-compact .op-finish-actions .btn {
  padding: 0.45rem 0.35rem;
  font-size: 0.75rem;
  margin: 0;
  width: auto;
}
.page-operator-compact .op-finish-hint {
  grid-column: 1 / -1;
  font-size: 0.7rem;
}
.page-operator-compact .op-compact-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: auto;
  padding-top: 0.35rem;
}
.page-operator-compact .op-compact-stat {
  font-size: 0.68rem;
  padding: 0.15rem 0.4rem;
  background: #e2e8f0;
  color: #475569;
  border-radius: 999px;
}
.page-operator-compact .op-compact-dock {
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 40;
  padding: 0.45rem 0.5rem 0.55rem;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
}
.page-operator-compact .op-compact-dock-hint {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  color: #64748b;
  text-align: center;
}
.page-operator-compact .op-compact-dock .op-actions {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.4rem;
}
.page-operator-compact .op-compact-dock .btn {
  padding: 0.7rem 0.5rem;
  font-size: 0.85rem;
}
.page-operator-compact.compact-lists-open {
  overflow: hidden;
}
.page-operator-compact.compact-lists-open .op-main {
  overflow: hidden;
}
.page-operator-compact .op-card-waiting {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  width: 100%;
  max-width: none;
  height: min(82dvh, 540px);
  z-index: 110;
  margin: 0;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.22);
  padding: 0;
  overflow: hidden;
  flex-direction: column;
  background: #fff;
}
.page-operator-compact.compact-lists-open .op-card-waiting {
  display: flex;
  animation: op-sheet-up 0.22s ease-out;
}
@keyframes op-sheet-up {
  from { transform: translateY(100%); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}
.page-operator-compact .op-compact-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 0.55rem 0.65rem 0.4rem;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}
.page-operator-compact .op-compact-drawer-head strong {
  font-size: 0.92rem;
}
.page-operator-compact .op-compact-drawer-head .btn-sm {
  min-width: 2rem;
  padding: 0.2rem 0.45rem;
  font-size: 1.1rem;
  line-height: 1;
}
.page-operator-compact .op-compact-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
  flex-shrink: 0;
  padding: 0.4rem 0.5rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.page-operator-compact .op-compact-tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  padding: 0.35rem 0.15rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  line-height: 1.2;
  min-width: 0;
}
.page-operator-compact .op-compact-tab.active {
  background: #fff;
  border-color: #cbd5e1;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.page-operator-compact .op-compact-tab-count {
  display: inline-block;
  min-width: 1rem;
  margin-left: 0.1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 0.62rem;
  font-weight: 800;
}
.page-operator-compact .op-compact-tab.active .op-compact-tab-count {
  background: var(--brand);
  color: #fff;
}
.page-operator-compact .op-lists-pane {
  display: none;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.5rem 0.65rem 0.75rem;
  -webkit-overflow-scrolling: touch;
}
.page-operator-compact #lists-panel[data-active-tab="waiting"] .op-lists-pane[data-compact-tab="waiting"],
.page-operator-compact #lists-panel[data-active-tab="bookings"] .op-lists-pane[data-compact-tab="bookings"],
.page-operator-compact #lists-panel[data-active-tab="suspended"] .op-lists-pane[data-compact-tab="suspended"],
.page-operator-compact #lists-panel[data-active-tab="ready"] .op-lists-pane[data-compact-tab="ready"] {
  display: block;
}
.page-operator-compact .op-lists-pane .op-waiting-title,
.page-operator-compact .op-lists-pane .op-waiting-help {
  display: none;
}
.page-operator-compact .op-compact-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  z-index: 105;
  animation: op-fade-in 0.2s ease;
}
@keyframes op-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.page-operator-compact .op-compact-drawer-backdrop.hidden { display: none; }
.page-operator-compact .bookings-today-list,
.page-operator-compact .waiting-list {
  max-height: none;
}
.page-operator-compact .waiting-list .wl-item,
.page-operator-compact .bookings-today-list .wl-item {
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #e2e8f0;
}
.page-operator-compact .wl-num {
  font-size: 1.1rem;
}
.page-operator-compact .wl-queue,
.page-operator-compact .wl-arrival {
  font-size: 0.72rem;
}
.page-operator-compact .wl-tag {
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
}
.page-operator-compact .wl-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  width: 100%;
}
.page-operator-compact .btn-wl-call,
.page-operator-compact .btn-wl-room {
  grid-column: 1 / -1;
  width: 100%;
  padding: 0.5rem 0.45rem;
  font-size: 0.8rem;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}
.page-operator-compact .btn-wl-suspend,
.page-operator-compact .btn-wl-skip,
.page-operator-compact .btn-booking-noshow,
.page-operator-compact .btn-booking-checkin {
  padding: 0.42rem 0.35rem;
  font-size: 0.72rem;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}
.page-operator-compact .waiting-list .wl-item.wl-suggested {
  margin: 0;
  padding: 0.55rem 0.45rem;
  border: 1px solid #86efac;
  border-radius: 8px;
  margin-bottom: 0.35rem;
}
.page-operator-compact .waiting-list .wl-empty {
  padding: 2rem 0.5rem;
  text-align: center;
  font-size: 0.85rem;
}
.page-operator-compact .login-form {
  max-width: none;
  margin: 0.75rem;
  padding: 1rem;
  box-shadow: none;
}
.page-operator-compact .login-form h1 { font-size: 1.1rem; }
.page-operator-compact .login-form p { display: none; }

@keyframes op-compact-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

.login-form {
  max-width: 400px;
  margin: 4rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.login-form input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d0d7e2;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.login-form .btn-primary {
  width: 100%;
  background: var(--brand);
  color: #fff;
}

.error-msg { color: #b91c1c; font-size: 0.875rem; margin-bottom: 1rem; }

/* Setup panels */
.setup-panel {
  max-width: 420px;
  margin: 4rem auto;
  padding: 2rem;
  background: var(--surface);
  border-radius: 12px;
}

.setup-panel input {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.setup-panel .btn { background: var(--brand); color: #fff; width: 100%; margin-bottom: 0.5rem; }
.setup-panel .btn-secondary { background: #e2e8f0; color: #1a2332; }
.setup-hint { font-size: 0.9rem; color: #64748b; margin-bottom: 1rem; line-height: 1.45; }
.setup-hint code { font-size: 0.85em; }
.page-room .btn-change-room { margin-top: 0.5rem; font-size: 0.9rem; }

.totem-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1rem 1rem;
}
.totem-tab {
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
}
.totem-tab.active { background: var(--brand); border-color: var(--brand); }

/* Overlay attivazione audio display (Chrome) */
#voice-unlock-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 15, 30, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.voice-unlock-box {
  text-align: center;
  max-width: 420px;
  padding: 2rem;
  border-radius: 16px;
  background: var(--surface, #1a2d4a);
  border: 2px solid var(--brand, #00aeef);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.voice-unlock-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #fff;
}

.voice-unlock-hint {
  color: var(--muted, #94a3b8);
  margin-bottom: 1.25rem;
  line-height: 1.5;
  font-size: 0.95rem;
}

.voice-unlock-ff {
  font-size: 0.85rem;
  color: #b45309;
  background: rgba(255, 193, 7, 0.15);
  border: 1px solid rgba(255, 193, 7, 0.45);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  margin: 0 0 1rem;
  line-height: 1.4;
  text-align: left;
}

.voice-unlock-btn {
  padding: 0.85rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  background: var(--brand, #00aeef);
  color: #052e16;
  cursor: pointer;
}

#voice-unlock-overlay.voice-unlock-done {
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

/* Signage display: vedi shared/css/signage.css */

/* Credit Matrix Informatica */
.matrix-credit {
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
  color: #64748b;
  margin: 0.75rem 0 0;
  padding: 0 0.5rem 0.75rem;
}

.matrix-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.matrix-credit a:hover {
  color: var(--brand, #00aeef);
}

.matrix-credit--on-dark {
  color: rgba(255, 255, 255, 0.52);
}

.matrix-credit--on-dark a:hover {
  color: rgba(255, 255, 255, 0.92);
}

.matrix-credit--fixed {
  position: fixed;
  bottom: 0.3rem;
  left: 0;
  right: 0;
  margin: 0;
  z-index: 8;
  pointer-events: auto;
}

.display-credit-wrap {
  text-align: center;
  background: var(--brand-dark);
  padding-bottom: 0.35rem;
}

.page-operator .matrix-credit,
.page-admin .matrix-credit {
  margin-top: 1.5rem;
  padding-bottom: 1rem;
}
