/* Hello Rodolfo - Dashboard styles
* (c) 2026 Ivanov Hristo. All rights reserved.
*/
.dh-dash{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;color:#1a1a1a;background:#f4f5f7;min-height:100vh;padding:16px;box-sizing:border-box}
.dh-dash *,.dh-dash *::before,.dh-dash *::after{box-sizing:border-box}

.dh-dash-login{max-width:380px;margin:10vh auto;background:#fff;padding:36px 32px;border-radius:14px;box-shadow:0 8px 30px rgba(0,0,0,.08);text-align:center}
.dh-dash-login h2{margin:0 0 8px;font-size:24px}
.dh-dash-login p{margin:4px 0;color:#666}
.dh-dash-login input{width:100%;padding:14px;font-size:24px;text-align:center;letter-spacing:10px;border:2px solid #ddd;border-radius:10px;margin:18px 0}
.dh-dash-login input:focus{outline:none;border-color:#1a1a1a}
.dh-dash-login button{width:100%;padding:14px;font-size:16px;background:#1a1a1a;color:#fff;border:0;border-radius:10px;cursor:pointer;font-weight:600}
.dh-dash-login button:hover{background:#000}
.dh-dash-err{color:#c0392b;min-height:20px;margin:8px 0 0;font-size:14px}

.dh-dash-header{display:flex;justify-content:space-between;align-items:center;padding:8px 12px 16px}
.dh-dash-header h1{margin:0;font-size:22px}
.dh-dash-meta{display:flex;gap:10px;align-items:center}
.dh-dash-meta #dh-dash-clock{font-variant-numeric:tabular-nums;font-weight:600;font-size:15px}
.dh-dash-badge{background:#c0392b;color:#fff;padding:4px 10px;border-radius:999px;font-size:13px;font-weight:700;min-width:28px;text-align:center}
#dh-dash-mute,#dh-dash-logout{background:#eee;border:0;padding:6px 12px;border-radius:8px;cursor:pointer;font-size:13px;font-weight:600}
#dh-dash-mute:hover,#dh-dash-logout:hover{background:#ddd}

.dh-dash-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px;align-items:start}
@media (max-width:1100px){.dh-dash-grid{grid-template-columns:1fr 1fr}.dh-dash-soon{display:none}}
@media (max-width:760px){.dh-dash-grid{grid-template-columns:1fr}}

.dh-dash-col{background:#fff;border-radius:12px;padding:14px;box-shadow:0 2px 8px rgba(0,0,0,.05);max-height:calc(100vh - 120px);overflow-y:auto}
.dh-dash-col h2{margin:0 0 12px;font-size:14px;text-transform:uppercase;letter-spacing:1.5px;color:#888;font-weight:700}
.dh-dash-empty{color:#999;font-style:italic;text-align:center;padding:30px 0;margin:0}

.dh-card,.dh-order{background:#fafafa;border:1px solid #eee;border-radius:10px;padding:12px;margin-bottom:10px;transition:box-shadow .2s,transform .15s}
.dh-card.dh-unread{background:#fff5e6;border-color:#ffb84d;box-shadow:0 0 0 3px rgba(255,184,77,.18);animation:dhPulse 1.6s ease-in-out 2}
@keyframes dhPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.015)}}

.dh-card header,.dh-order header{display:flex;align-items:center;gap:8px;font-size:12px;color:#777;margin-bottom:8px;flex-wrap:wrap}
.dh-card header time,.dh-order header time{margin-left:auto;font-variant-numeric:tabular-nums;color:#999}

.dh-tag{font-weight:700;font-size:11px;padding:3px 8px;border-radius:6px;background:#333;color:#fff;letter-spacing:.5px}
.dh-tag-chiama_cameriere{background:#2980b9}
.dh-tag-richiesta_conto{background:#16a085}
.dh-tag-feedback{background:#8e44ad}
.dh-tag-segnala_problema{background:#c0392b}

.dh-tav{font-weight:600;color:#1a1a1a;font-size:13px}
.dh-status{text-transform:uppercase;font-size:11px;font-weight:700;padding:3px 8px;border-radius:6px;background:#eee}

.dh-card .dh-note,.dh-order .dh-note{margin:6px 0;color:#444;font-size:14px;line-height:1.4}
.dh-rating{color:#f39c12;font-size:18px;letter-spacing:3px;margin:4px 0}

.dh-items{list-style:none;padding:0;margin:6px 0}
.dh-items li{padding:6px 0;border-bottom:1px dashed #eee;font-size:14px}
.dh-items li:last-child{border-bottom:0}
.dh-items .qty{display:inline-block;min-width:30px;font-weight:700;color:#c0392b}

.dh-card footer,.dh-order footer{display:flex;justify-content:flex-end;gap:8px;margin-top:8px;align-items:center}
.dh-order footer strong{margin-right:auto;font-size:16px}
.dh-card footer button,.dh-order footer button{background:#1a1a1a;color:#fff;border:0;padding:8px 14px;border-radius:8px;cursor:pointer;font-size:13px;font-weight:600;transition:background .15s}
.dh-card footer button:hover,.dh-order footer button:hover{background:#333}
.dh-card footer button:disabled,.dh-order footer button:disabled{opacity:.5;cursor:wait}
.dh-done{color:#27ae60;font-weight:700;font-size:13px}

.dh-status-ricevuta{border-left:4px solid #f39c12}
.dh-status-confermata{border-left:4px solid #2980b9}
.dh-status-in_preparazione{border-left:4px solid #8e44ad}
.dh-status-servita{border-left:4px solid #27ae60;opacity:.7}
/* === Prenotazioni (booking cards) === */
.dh-booking{background:#fff;border:1px solid #e3e3e3;border-left:4px solid #f0a500;border-radius:8px;padding:10px 12px;margin-bottom:10px;}
.dh-booking header{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px;}
.dh-bk-name{font-weight:700;font-size:15px;}
.dh-bk-pax{background:#f5f5f5;border-radius:12px;padding:2px 8px;font-size:12px;color:#555;}
.dh-bk-when{font-size:14px;color:#333;margin-bottom:4px;}
.dh-bk-phone{font-size:13px;margin-bottom:6px;}
.dh-bk-tel{color:#0a7;text-decoration:none;}
.dh-bk-actions{display:flex;gap:8px;margin-top:6px;}
.dh-bk-actions button{flex:1;border:none;border-radius:6px;padding:8px;font-weight:600;cursor:pointer;}
.dh-bk-ok{background:#27ae60;color:#fff;}
.dh-bk-no{background:#f1f1f1;color:#c0392b;}
.dh-bk-actions button:disabled{opacity:.5;cursor:default;}

/* CONTO PER TAVOLO */
.dh-table-group{background:#fff;border:1px solid #e2e2e2;border-radius:12px;padding:14px;margin-bottom:16px;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.dh-tg-head{display:flex;align-items:center;gap:10px;margin-bottom:10px;padding-bottom:8px;border-bottom:2px solid #f0f0f0}
.dh-tg-tav{font-weight:700;font-size:16px;color:#1a1a1a}
.dh-tg-count{margin-left:auto;font-size:12px;color:#888;background:#f4f4f4;padding:3px 9px;border-radius:20px}
.dh-tg-orders{display:flex;flex-direction:column;gap:8px}
.dh-tg-orders .dh-order{margin-bottom:0}
.dh-tg-foot{display:flex;align-items:center;gap:12px;margin-top:12px;padding-top:10px;border-top:1px dashed #ddd}
.dh-tg-total{font-size:20px;color:#1a1a1a;font-weight:800}
.dh-close-table{margin-left:auto;background:#27ae60;color:#fff;border:0;padding:10px 18px;border-radius:8px;cursor:pointer;font-size:14px;font-weight:700;transition:background .15s}
.dh-close-table:hover{background:#219150}
.dh-close-table:disabled{opacity:.5;cursor:wait}

/* Righe comanda con prezzo */
.dh-items li{display:flex;align-items:baseline;gap:6px}
.dh-items li .dh-it-name{flex:1}
.dh-items li .dh-it-prezzo{font-variant-numeric:tabular-nums;color:#555;font-weight:600;white-space:nowrap}
.dh-items li.dh-item-sconto{color:#27ae60;font-style:italic}
.dh-items li.dh-item-sconto .dh-it-prezzo{color:#27ae60;font-weight:700}

/* ═══ VISTE PER RUOLO (cassa/cameriere/cucina) ═══ */
/* CUCINA: solo comande. Nasconde tab extra, alert, prenotazioni, piatti */
.dh-role-cucina #dh-dash-alerts,
.dh-role-cucina #dh-dash-bookings,
.dh-role-cucina #dh-dishes-section,
.dh-role-cucina .dh-tab[data-view="floor"],
.dh-role-cucina .dh-tab[data-view="bookings"],
.dh-role-cucina .dh-tab[data-view="calendar"]{display:none !important}
/* CAMERIERE: comande da confermare + chiamate + sala. Nasconde prenotazioni, piatti, calendario */
.dh-role-cameriere #dh-dishes-section,
.dh-role-cameriere #dh-dash-bookings,
.dh-role-cameriere .dh-tab[data-view="bookings"],
.dh-role-cameriere .dh-tab[data-view="calendar"]{display:none !important}
/* Badge ruolo in dashboard */
.dh-role-badge{display:inline-block;font-size:12px;font-weight:700;padding:4px 12px;border-radius:20px;margin-left:10px;vertical-align:middle}
.dh-role-cassa .dh-role-badge{background:#1a1a1a;color:#fff}
.dh-role-cameriere .dh-role-badge{background:#2980b9;color:#fff}
.dh-role-cucina .dh-role-badge{background:#8e44ad;color:#fff}
.dh-wait{color:#999;font-size:12px;font-style:italic;text-transform:capitalize}
.dh-cancel-order{background:transparent;color:#c0392b;border:1px solid #e0b4b4;border-radius:6px;width:32px;height:32px;cursor:pointer;font-size:14px;font-weight:700;margin-left:8px;line-height:1;transition:background .15s}
.dh-cancel-order:hover{background:#c0392b;color:#fff;border-color:#c0392b}
.dh-cancel-order{background:transparent;color:#c0392b;border:1px solid #e0b4b4;border-radius:6px;width:32px;height:32px;cursor:pointer;font-size:14px;font-weight:700;margin-left:8px;line-height:1;transition:background .15s}
.dh-cancel-order:hover{background:#c0392b;color:#fff;border-color:#c0392b}
.dh-new-order-btn{display:none;width:100%;background:#2980b9;color:#fff;border:0;padding:12px;border-radius:10px;cursor:pointer;font-size:14px;font-weight:700;margin-bottom:12px;transition:background .15s}
.dh-new-order-btn.is-visible{display:block}
.dh-new-order-btn:hover{background:#2471a3}
.dh-edit-order{background:transparent;color:#2980b9;border:1px solid #aed0e8;border-radius:6px;width:32px;height:32px;cursor:pointer;font-size:14px;margin-left:8px;line-height:1;transition:background .15s}
.dh-edit-order:hover{background:#2980b9;color:#fff;border-color:#2980b9}

/* ==== VISTA CUCINA (comande a portate) — sobrio, restyling parcheggiato ==== */
.dh-k-items{list-style:none;margin:0;padding:0;}
.dh-k-item{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px dashed #f0f0f0;}

