:root {
  --navy: #0b1930;
  --navy-2: #102744;
  --ink: #17263e;
  --muted: #6d7a8d;
  --line: #e5eaf1;
  --bg: #f4f7fb;
  --white: #fff;
  --teal: #0c9f9a;
  --teal-soft: #e2f7f5;
  --amber: #e79b2d;
  --amber-soft: #fff4df;
  --green: #2db16f;
  --green-soft: #e4f7ed;
  --shadow: 0 14px 36px rgba(16, 39, 68, .08);
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); min-height: 100vh; }
body.is-display, html:has(body.is-display) { overflow: hidden; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }
.topbar { height: 76px; padding: 0 38px; color: white; background: var(--navy); display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; gap: 13px; align-items: center; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, #1cb7b1, #68dfbd); color: var(--navy); display:grid; place-items:center; font-weight:800; font-family: 'Space Grotesk'; }
.brand h1 { margin:0; font: 700 17px 'Space Grotesk'; letter-spacing: -.3px; }
.brand span { display:block; color:#9eacc0; font-size:11px; margin-top:2px; }
.top-actions { display:flex; align-items:center; gap:12px; }
.clock { color:#c5d0df; font-size:13px; margin-right:10px; }
.btn { border: 1px solid transparent; border-radius: 10px; padding: 10px 15px; font-weight:700; font-size:13px; transition: .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: white; }
.btn-outline { border-color: #3b506e; color: white; background: transparent; }
.btn-light { background: white; color: var(--navy); border-color: var(--line); }
.btn-danger { background: #fff0ef; color:#c34e45; border-color:#ffd9d5; }
.page { max-width: 1360px; margin: 0 auto; padding: 38px; }
.hero { display:flex; justify-content:space-between; align-items:flex-end; gap:20px; margin-bottom:28px; }
.eyebrow { color: var(--teal); font-weight:800; font-size:12px; letter-spacing:1.2px; text-transform:uppercase; }
h2 { font: 700 32px 'Space Grotesk'; letter-spacing:-1px; margin:7px 0 8px; }
.hero p { margin:0; color:var(--muted); }
.summary-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:16px; margin-bottom:25px; }
.stat { background:white; border:1px solid var(--line); border-radius:15px; padding:19px 20px; box-shadow:var(--shadow); }
.stat-label { color:var(--muted); font-size:12px; font-weight:700; }
.stat-value { font:700 31px 'Space Grotesk'; margin:9px 0 3px; }
.stat-note { color:var(--muted); font-size:12px; }
.section-card { background:white; border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow); overflow:hidden; margin-bottom:20px; }
.section-head { display:flex; align-items:center; justify-content:space-between; padding:20px 23px; border-bottom:1px solid var(--line); }
.section-head h3 { margin:0; font:700 18px 'Space Grotesk'; }
.section-head p { color:var(--muted); font-size:12px; margin:5px 0 0; }
.service-pill { font-size:11px; font-weight:800; color:var(--teal); background:var(--teal-soft); padding:7px 10px; border-radius:999px; }
.room-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:13px; padding:18px 23px 23px; }
.room-card { border:1px solid var(--line); border-radius:14px; padding:16px; position:relative; min-height:142px; }
.room-card.active { border-color:#a3e4dd; background:#fbffff; }
.room-card.waiting { border-color:#f5dfb4; background:#fffdfa; }
.room-top { display:flex; justify-content:space-between; align-items:center; }
.room-number { font:700 14px 'Space Grotesk'; color:var(--muted); }
.status-dot { width:8px; height:8px; border-radius:50%; background:var(--green); box-shadow:0 0 0 4px var(--green-soft); }
.room-card.waiting .status-dot { background:var(--amber); box-shadow:0 0 0 4px var(--amber-soft); }
.room-label { font-size:10px; color:var(--muted); margin-top:16px; text-transform:uppercase; letter-spacing:.6px; }
.room-ticket { color:var(--navy); font:700 30px 'Space Grotesk'; margin-top:2px; }
.room-name { font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.room-next { color:var(--muted); font-size:11px; margin-top:11px; }
.operator-layout { display:grid; grid-template-columns: 1.25fr .75fr; gap:20px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:20px 23px 0; }
label { display:block; color:var(--muted); font-size:11px; font-weight:700; margin-bottom:6px; }
input, select { width:100%; padding:11px 12px; border:1px solid var(--line); border-radius:9px; color:var(--ink); background:white; outline:none; }
input:focus, select:focus { border-color:var(--teal); box-shadow:0 0 0 3px var(--teal-soft); }
.table-wrap { overflow:auto; padding:16px 23px 23px; }
table { width:100%; border-collapse:collapse; font-size:13px; }
th { text-align:left; color:var(--muted); font-size:10px; letter-spacing:.4px; text-transform:uppercase; padding:10px 8px; border-bottom:1px solid var(--line); }
td { padding:13px 8px; border-bottom:1px solid #eef1f5; vertical-align:middle; }
tr:last-child td { border:0; }
.tag { border-radius:999px; padding:5px 8px; font-size:10px; font-weight:800; white-space:nowrap; }
.tag.waiting { color:#a36a11; background:var(--amber-soft); }
.tag.progress { color:#087f7b; background:var(--teal-soft); }
.tag.done { color:#197948; background:var(--green-soft); }
.table-actions { display:flex; gap:7px; flex-wrap:wrap; }
.table-actions .btn { padding:7px 9px; font-size:11px; }
.empty { padding:35px; text-align:center; color:var(--muted); }
.display-mode { background: #09172c; color:white; position:fixed; inset:0; overflow:hidden; }
.display-shell { height:100vh; padding:24px 45px 18px; display:flex; flex-direction:column; }
.display-head { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; }
.display-title h1 { margin:0; font:700 clamp(22px, 2.7vw, 40px) 'Space Grotesk'; letter-spacing:-1.5px; }
.display-title p { margin:9px 0 0; color:#9eacc0; font-size:14px; }
.display-clock { text-align:right; color:#dbe5f2; font:600 clamp(20px, 2.7vw, 38px) 'Space Grotesk'; }
.display-clock small { display:block; color:#8fa1b9; font:400 12px 'DM Sans'; margin-top:3px; }
.display-content { flex:1; display:flex; flex-direction:column; justify-content:center; gap:14px; padding:12px 0 14px; min-height:0; }
.display-section { background:#102744; border:1px solid #25415f; border-radius:20px; overflow:hidden; }
.display-section-head { padding:12px 21px; display:flex; justify-content:space-between; align-items:center; background:#143254; }
.display-section-head h2 { color:white; font-size:20px; margin:0; }
.display-section-head span { color:#9edbd7; font-size:12px; font-weight:700; }
.display-rooms { display:grid; grid-template-columns:repeat(8, 1fr); gap:8px; padding:10px; }
.display-room { min-width:0; text-align:center; border-radius:13px; background:#17385b; padding:11px 7px 10px; border:1px solid transparent; }
.display-room.current { background:#0c8f8a; border-color:#5be0d2; box-shadow:0 8px 25px rgba(12,159,154,.23); }
.display-room.waiting { background:#493b29; border-color:#88662f; }
.display-room .r { color:#a9bdd3; font-size:11px; font-weight:700; }
.display-room.current .r, .display-room.waiting .r { color:white; }
.display-room .ticket { font:700 clamp(22px, 2.4vw, 38px) 'Space Grotesk'; margin:5px 0 2px; }
.display-room .name { color:#b8c7d9; font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.display-room.current .name, .display-room.waiting .name { color:white; }
.display-room .next { color:#8ea7c1; font-size:10px; margin-top:8px; }
.display-room.current .next { color:#d8fffb; }
.display-footer { display:flex; justify-content:space-between; border-top:1px solid #233b5b; padding-top:11px; color:#8298b2; font-size:12px; }
.display-footer strong { color:#cbd8e7; }
.display-tools { position:fixed; right:24px; bottom:22px; opacity:.25; transition:.2s; }
.display-tools:hover { opacity:1; }
.display-tools .btn { background:#183653; color:white; border-color:#385371; }
@media (max-width: 900px) { .page { padding:24px 18px; } .topbar { padding:0 18px; } .summary-grid { grid-template-columns:repeat(2,1fr); } .room-grid { grid-template-columns:repeat(2,1fr); } .operator-layout { grid-template-columns:1fr; } .display-shell { padding:24px 18px; } .display-rooms { grid-template-columns:repeat(4,1fr); } .display-content { justify-content:flex-start; } }
@media (max-width: 560px) { .clock { display:none; } .hero { display:block; } .hero .btn { margin-top:18px; } h2 { font-size:27px; } .room-grid { grid-template-columns:1fr; } .summary-grid { gap:10px; } .stat { padding:14px; } .display-rooms { grid-template-columns:repeat(2,1fr); } }
