/* 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;}
