/* ================================================
   PizzeriaOperativa - CSS CONDIVISO
   ================================================ */
/* ============================================================
   VARIABILI GLOBALI — MiseEnPlace
   Cambia qui i colori principali, si aggiornano in tutto il CSS
   ============================================================ */
:root {
  --primary: #ff6b00;
  --primary-dark: #e55a00;
  --primary-light: #ff8c33;
  --accent: #2a3f5f;
  --accent-dark: #1e2a3a;
  --bg: #f4f6f8;
  --card-bg: #ffffff;
  --text: #222222;
  --text-light: #ffffff;
  --muted: #6c757d;
  --border: #e0e0e0;
  --success: #28a745;
  --danger: #dc3545;
  --warning: #ffc107;
  --info: #17a2b8;
  --radius: 12px;
  --radius-sm: 6px;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 24px rgba(255, 107, 0, 0.20);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
/* === RESET E BASE === */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font);
  background: var(--accent);
  color: var(--text-light);
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

h1 {
    text-align: center;
    color: #ff6b00;
    margin-bottom: 15px;
    font-size: 28px;
}

/* === LOGO === */
.logo-container {
    text-align: center;
    margin-bottom: 15px;
}

.logo-container img {
    max-width: 150px;
    height: auto;
}

/* === GIORNO/ORA === */
.barra-data-ora {
    background-color: #000;
    color: #fff;
    padding: 10px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    border-radius: 8px;
    margin: 10px auto;
    max-width: 400px;
}

/* === STATISTICHE === */
.stats {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-card {
    background: #2a2f4a;
    padding: 15px 25px;
    border-radius: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    color: #fff;
}

.stat-card span {
    font-size: 24px;
    color: #ff6b00;
}

/* === GRIGLIA TAVOLI === */
.griglia {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .griglia {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .griglia {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* === CARD TAVOLO === */
.tavolo-card-nuovo {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tavolo-card-nuovo:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.tavolo-card-nuovo.tavolo-grigio {
    background: #e0e0e0;
    border-color: #999;
    color: #000;
}
.tavolo-card-nuovo.tavolo-giallo {
    background: #f0c040;
    border-color: #b89000;
    color: #000;
}
.tavolo-card-nuovo.tavolo-verde {
    background: #4caf50;
    border-color: #2e7d32;
    color: #fff;
}
.tavolo-card-nuovo.tavolo-arancio {
    background: #ff9800;
    border-color: #e65100;
    color: #fff;
}

.tavolo-card-nuovo.tavolo-rosso {
    background: #e53935;
    border-color: #b71c1c;
    color: #fff;
}

.tavolo-card-nuovo.selezionato {
    border-color: #2196f3;
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.5);
    transform: scale(1.05);
}

.tavolo-numero-nuovo {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* === PULSANTI SÌ/NO/ANNULLA === */
.tavolo-bottoni {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    justify-content: center;
}
.btn-si, .btn-no {
    flex: 1;
    min-width: 60px;
    min-height: 50px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}
 .btn-annulla {
    background: transparent !important;
    color: #333;
    border: none !important;
    font-size: 34px;
    cursor: pointer;
    padding: 5px;
    margin-top: auto;
    width: 100%;
    text-align: center;
}
.btn-si { background: #4caf50; color: white; }
.btn-si:hover { background: #388e3c; }

.btn-no { background: #f44336; color: white; }
.btn-no:hover { background: #c62828; }

.btn-annulla { background: #6c757d; color: white; }
.btn-annulla:hover { background: #5a6268; }

/* === BARRA FRITTINI === */
.barra-frittini {
    text-align: center;
    margin: 15px 0;
}

.btn-frittini-generico {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    background: #ff9800;
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    min-height: 55px;
}
.btn-frittini-generico:hover {
    background: #e68900;
}

/* === MODALE FRITTINI === */
.modale-frittini {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modale-frittini.aperta { display: flex; }

.modale-content {
    background: #2a3f5f;
    border: 3px solid #ff6b00;
    border-radius: 20px;
    padding: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modale-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6b00;
}

.modale-header h2 { color: #fff; font-size: 20px; margin: 0; }

.modale-close {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 18px;
    cursor: pointer;
    font-weight: bold;
}

.modale-lista {
    max-height: 50vh;
    overflow-y: auto;
    margin-bottom: 15px;
}

.modale-riga {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin: 6px 0;
    background: #fff;
    border-radius: 10px;
    color: #000;
}

.modale-riga .nome { font-weight: bold; flex: 1; }

.modale-riga .controlli {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-qty {
    background: #ff6b00;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 18px;
    cursor: pointer;
    font-weight: bold;
}
.btn-qty:hover { background: #e55a00; }

.qty-valore {
    font-weight: bold;
    font-size: 18px;
    min-width: 30px;
    text-align: center;
}

.modale-messaggio {
    color: #ff6b00;
    text-align: center;
    font-weight: bold;
    min-height: 20px;
    margin-bottom: 10px;
}

.modale-footer {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-conferma {
    background: #28a745;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}
.btn-conferma:hover { background: #218838; }

.btn-elimina {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}
.btn-elimina:hover { background: #c82333; }

.btn-annulla-modale {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}
.btn-annulla-modale:hover { background: #5a6268; }

/* === PULSANTI ADMIN (Cassa) === */
.azioni-cassa {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.btn-storico, .btn-reset, .btn-menu-frittini {
    padding: 12px 30px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    color: white;
}

.btn-storico { background: #17a2b8; }
.btn-storico:hover { background: #138496; }

.btn-reset { background: #dc3545; }
.btn-reset:hover { background: #c82333; }

.btn-menu-frittini { background: #ff9800; }
.btn-menu-frittini:hover { background: #e68900; }

/* === MODALE MENU FRITTINI (Admin) === */
.modale-menu {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modale-menu.aperta { display: flex; }

.modale-menu .modale-content {
    background: #2a3f5f;
    border: 3px solid #ff6b00;
    border-radius: 20px;
    padding: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modale-menu .modale-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6b00;
}

.modale-menu .modale-header h2 { color: #fff; font-size: 20px; margin: 0; }

.modale-menu .modale-close {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 18px;
    cursor: pointer;
    font-weight: bold;
}

.aggiungi-frittino {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.aggiungi-frittino input {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
}

.aggiungi-frittino button {
    background: #28a745;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
}
.aggiungi-frittino button:hover { background: #218838; }

.frittino-riga {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin: 6px 0;
    background: #fff;
    border-radius: 10px;
    color: #000;
}

.frittino-riga.inattivo {
    opacity: 0.5;
    background: #ddd;
}

.frittino-riga .nome { flex: 1; font-weight: bold; }

.frittino-riga input {
    flex: 1;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.frittino-riga button {
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
}

.btn-edit { background: #ffc107; color: #000; }
.btn-save { background: #28a745; color: #fff; }
.btn-toggle-off { background: #dc3545; color: #fff; }
.btn-toggle-on { background: #28a745; color: #fff; }

/* === STORICO === */
.filtri {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #2a2f4a;
    border-radius: 15px;
}

.filtri input, .filtri select, .filtri button {
    padding: 10px 15px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
}

.filtri input, .filtri select {
    background: #fff;
    color: #000;
    min-width: 150px;
}

.filtri button {
    background: #ff6b00;
    color: white;
    font-weight: bold;
    cursor: pointer;
}
.filtri button:hover { background: #e55a00; }

.filtri button.reset { background: #6c757d; }
.filtri button.reset:hover { background: #5a6268; }

.totale {
    text-align: center;
    margin-bottom: 15px;
    font-size: 16px;
    color: #ff6b00;
    font-weight: bold;
}

table {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 20px auto;
    border-collapse: collapse;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}

thead { background: #ff6b00; color: white; }

th, td {
    padding: 12px 15px;
    text-align: left;
    color: #000;
    font-size: 14px;
}

th { font-weight: bold; color: #fff; }

tbody tr:nth-child(even) { background: #f5f5f5; }
tbody tr:hover { background: #ffe0b2; }

.badge-accettato {
    display: inline-block;
    padding: 4px 10px;
    background: #d4edda;
    color: #155724;
    border-radius: 12px;
    font-weight: bold;
    font-size: 12px;
}

.badge-declinato {
    display: inline-block;
    padding: 4px 10px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 12px;
    font-weight: bold;
    font-size: 12px;
}

.paginazione {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.paginazione button {
    background: #ff6b00;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
}
.paginazione button:hover { background: #e55a00; }
.paginazione button:disabled {
    background: #444;
    cursor: not-allowed;
    opacity: 0.5;
}

.paginazione span { font-weight: bold; color: #fff; }

.btn-back {
    position: fixed;
    top: 20px;
    left: 20px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    z-index: 100;
}
.btn-back:hover { background: #5a6268; }

.empty {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 18px;
}

/* === SPLIT (per ora tenuto) === */
#split-container {
    margin: 0;
    padding: 0;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 15px;
    display: flex;
    gap: 10px;
}
#split-container .tavolo-card-nuovo {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    flex-shrink: 0;
}

#split-wrapper {
    margin: 15px auto;
    padding: 12px;
    border-radius: 20px;
    background: #2a3f5f;
    border: 2px dashed #ff6b00;
    max-width: 1200px;
}

.split-title {
    color: #ff6b00;
    font-weight: bold;
    font-size: 18px;
    text-align: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ff6b00;
}

#split-title-box {
    color: #ffffff;
    font-weight: bold;
    font-size: 18px;
    text-align: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ff6b00;
}

.tavolo-card-split {
    background: linear-gradient(90deg, #d4edda 50%, #ffe0b2 50%);
    border: 2px solid #ff9800;
    border-radius: 10px;
    padding: 10px;
    margin: 5px;
    display: inline-block;
    width: 220px;
    vertical-align: top;
    color: #000;
    flex-shrink: 0;
    white-space: normal;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .tavolo-card-nuovo {
        min-height: 100px;
        padding: 12px;
    }
    .tavolo-numero-nuovo { font-size: 18px; }
}

@media (max-width: 600px) {
    .tavolo-card-nuovo {
        min-height: 90px;
        padding: 10px;
    }
    .tavolo-numero-nuovo { font-size: 16px; }
    .btn-si, .btn-no, .btn-annulla {
        font-size: 16px;
        min-height: 45px;
    }
}

/* === COUNTDOWN 30 MINUTI === */
.countdown {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    background: rgba(0,0,0,0.3);
    padding: 4px 10px;
    border-radius: 10px;
    margin-top: 5px;
    display: inline-block;
}

/* === STILI FRIGGITORIA (display passivo) === */
.tavolo-card-friggi {
    background: #ffffff;
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    border: 3px solid #28a745;
    color: #333;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.tavolo-card-friggi.tavolo-verde { border-color: #28a745; }
.tavolo-card-friggi.tavolo-giallo { border-color: #ffc107; }
.tavolo-card-friggi.tavolo-arancio { border-color: #fd7e14; }
.tavolo-card-friggi.tavolo-rosso { border-color: #dc3545; }

.tavolo-numero-friggi {
    font-size: 20px;
    font-weight: bold;
    color: #2a3f5f;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.frittini-lista-friggi {
    text-align: left;
    margin: 10px 0;
}
.frittino-riga-friggi {
    font-size: 16px;
    padding: 5px 0;
    color: #333;
}
.frittino-riga-friggi strong {
    color: #ff6b00;
    font-size: 18px;
}

.frittini-tempo-friggi {
    font-size: 13px;
    color: #666;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
    font-weight: bold;
}

.nessun-ordine {
    text-align: center;
    color: #aaa;
    font-size: 20px;
    padding: 40px;
    grid-column: 1 / -1;
}

/* === STILI PER SPLIT E RIPRENDI === */
.declino-orario {
    font-size: 12px;
    color: #fff;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 8px;
    border-radius: 6px;
    margin-top: 5px;
    display: inline-block;
}

.btn-riprendi {
    background: #17a2b8;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    flex: 1;
    min-width: 90px;
}

.btn-riprendi:hover {
    background: #138496;
}

/* === STILI STORICO === */
body { font-family: var(--font); background: var(--accent); color: var(--text-light); padding: 20px; }
        h1 { color: #ff6b00; text-align: center; margin-bottom: 20px; }
        .btn-back { background: #34495e; color: white; border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; margin-bottom: 20px; }
        .btn-back:hover { background: #2c3e50; }

        .ricerca-intelligente { background: #1e2a3a; padding: 15px; border-radius: 10px; margin-bottom: 20px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; border: 2px solid #ff6b00; }
        .ricerca-intelligente input { flex: 1; min-width: 250px; padding: 10px; border-radius: 6px; border: 1px solid #ccc; font-size: 14px; }
        .btn-microfono { background: #dc3545; color: white; border: none; padding: 10px 15px; border-radius: 6px; font-size: 18px; cursor: pointer; }
        .btn-cerca { background: #28a745; color: white; border: none; padding: 10px 20px; border-radius: 6px; font-size: 14px; font-weight: bold; cursor: pointer; }

        .filtri-rapidi { margin-bottom: 20px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
        .btn-filtro { padding: 8px 15px; border-radius: 20px; border: 1px solid #ff6b00; background: transparent; color: white; cursor: pointer; font-weight: bold; transition: 0.2s; }
        .btn-filtro:hover { background: rgba(255, 107, 0, 0.2); }

        .reset { padding: 8px 15px; border-radius: 20px; border: 1px solid #555; background: transparent; color: white; cursor: pointer; }
        .reset:hover { background: rgba(255, 255, 255, 0.1); }
        .btn-cancella { padding: 8px 15px; border-radius: 20px; border: 1px solid #dc3545; background: transparent; color: #dc3545; cursor: pointer; margin-left: auto; }
        .btn-cancella:hover { background: #dc3545; color: white; }

        .totale { margin-bottom: 10px; color: #aaa; font-size: 14px; }

        table { width: 100%; border-collapse: collapse; background: #1e2a3a; border-radius: 8px; overflow: hidden; }
        th, td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #34495e; }
        th { background: #2c3e50; color: #ff6b00; font-weight: bold; }
        tr:hover { background: rgba(255, 255, 255, 0.05); }

        .badge-accettato { background: #28a745; color: white; padding: 3px 8px; border-radius: 10px; font-size: 12px; font-weight: bold; }
        .badge-declinato { background: #dc3545; color: white; padding: 3px 8px; border-radius: 10px; font-size: 12px; font-weight: bold; }
        .badge-frittini { background: #ffc107; color: #000; padding: 3px 8px; border-radius: 10px; font-size: 12px; font-weight: bold; }

        .paginazione { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 20px; }
        .paginazione button { background: #34495e; color: white; border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; }
        .paginazione button:hover:not(:disabled) { background: #2c3e50; }
        .paginazione button:disabled { opacity: 0.5; cursor: not-allowed; }

        .empty { text-align: center; color: #aaa; padding: 20px; }

/* === RIPRISTINO STILI STORICO === */
#ricerca-naturale {
    flex: 1 !important;
    min-width: 250px !important;
    padding: 10px !important;
    border-radius: 6px !important;
    border: 1px solid #ccc !important;
    font-size: 14px !important;
    color: #000 !important;
    background: #fff !important;
}

.ricerca-intelligente {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    background: #2a3f5f !important;
    padding: 15px !important;
    border-radius: 10px !important;
    margin-bottom: 20px !important;
    border: 2px solid #ff6b00 !important;
}

.cella-storico {
    color: white !important;
    padding: 12px 15px !important;
    border-bottom: 1px solid #2a3f5f !important;
    font-weight: bold !important;
}

/* Hover per le righe dello storico (vince sullo stile inline) */
tr:hover td {
    background-color: #4a6d91 !important; /* Colore hover: blu chiaro */
    transition: background-color 0.2s ease-in-out;
}
/* === STILI DEFINITIVI PER LA MODALE REPORT SERALE === */
#risultato-report-serale table {
    width: 100%;
    border-collapse: collapse;
    background-color: #2a3f5f; /* Sfondo scuro per tutta la tabella */
}

#risultato-report-serale th {
    background-color: #1e2a3a;
    color: white !important;
    padding: 10px;
    text-align: left;
}

#risultato-report-serale td {
    background-color: #2a3f5f !important; /* Forza lo sfondo scuro su OGNI cella */
    color: white !important; /* Forza il testo bianco su OGNI cella */
    padding: 10px !important;
    border-bottom: 1px solid #1e2a3a !important;
}

/* Effetto zebra (righe pari leggermente più chiare) */
#risultato-report-serale tr:nth-child(even) td {
    background-color: #1e2a3a !important;
}

/* Effetto hover (passando il mouse la riga si illumina) */
#risultato-report-serale tr:hover td {
    background-color: #4f6d8c !important;
    cursor: pointer;
}
/* === HEADER APP (logo + titolo) === */
.header-app {
  display: flex;
  flex-direction: column;  /* Logo sopra, testo sotto */
  align-items: center;     /* Centra orizzontalmente */
  justify-content: center; /* Centra verticalmente (non necessario qui, ma ok) */
  gap: 8px;                /* Spazio tra logo e titolo */
  margin-bottom: 20px;
  text-align: center;
}
.header-logo {
  height: 60px;            /* Logo un po' più grande, dato che è da solo */
  width: auto;
}
.header-app h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
@media (max-width: 600px) {
  .header-logo { height: 48px; }
  .header-app h1 { font-size: 1.4rem; }
}
/* =========================================
   REPARTI NELLE CARD (Stile Touch)
   ========================================= */
.tavolo-bottoni {
    display: flex;
    flex-direction: column;
    gap: 8px; 
    margin-top: 10px;
}

.reparto-riga {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px; 
    background: #f8f9fa; 
    border: 1px solid #e9ecef;
    border-radius: 8px; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); 
    color: #333;
    transition: all 0.2s ease-in-out; 
    user-select: none; 
}

/* Effetto hover/touch */
.reparto-riga:hover, 
.reparto-riga:active {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12); 
    transform: translateY(-2px); 
    border-color: #ccc;
}

/* Colori di stato (Semaforo) */
.reparto-attesa { 
    border-left: 6px solid #ccc; 
}
.reparto-accettato { 
    border-left: 6px solid #28a745; 
    background: #f0fdf4; 
}
.reparto-declinato { 
    border-left: 6px solid #dc3545; 
    background: #fdf0f1; 
}

.reparto-nome {
    font-weight: 700;
    font-size: 15px;
}

.reparto-stato {
    font-size: 18px;
}

.reparto-azioni {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Bottoni dentro la card (Touch) */
.btn-azione {
    padding: 6px 12px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-azione:active { 
    transform: scale(0.95); 
}

.btn-accetta { 
    background-color: #28a745; 
    color: #fff; 
}
.btn-declina { 
    background-color: #dc3545; 
    color: #fff; 
}
.btn-frittini { 
    background-color: #ff6b00; 
    color: #fff; 
    padding: 6px 10px; 
}

/* =========================================
   BOTTONI FRIGGITORIA
   ========================================= */
.friggi-bottoni {
    display: flex;
    gap: 10px;
    padding: 0 15px 15px 15px;
}

.btn-friggi-accetta, .btn-friggi-declina {
    flex: 1;
    padding: 12px 0;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    color: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.1s ease;
}

.btn-friggi-accetta { background: #28a745; }
.btn-friggi-declina { background: #dc3545; }

.btn-friggi-accetta:active, .btn-friggi-declina:active { 
    transform: scale(0.96); 
}
/* =========================================
   CARD ASPORTO (colori dedicati, non quelli dei tavoli)
   ========================================= */

.card-asporto {
    display: flex;
    flex-direction: column;
    background: #f4f6f8;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 15px;
    color: #333;
    width: 100%;
    box-sizing: border-box;
    border: 3px solid #2980b9;
}

/* Stato: In Attesa (grigio chiaro, bordo grigio scuro) */
.card-asporto.stato-attesa {
    background: #f4f6f8;
    border-color: #6c757d; /* Grigio scuro */
    border-width: 6px; /* <-- Bordo più spesso (default è 3px) */
    border-style: solid;
}

/* Stato: In Preparazione (azzurro chiaro, bordo blu scuro) */
.card-asporto.stato-preparazione {
     background: #fff8e1;
    border-color: #f39c12; /* Arancione acceso */
    border-width: 6px; /* Bordo più spesso */
    border-style: solid;
 
}

/* Stato: Pronto (verde chiaro, bordo verde) */
.card-asporto.stato-pronto {
    background: #e8f5e9;
    border-color: #28a745;
}

/* Titolo */
.card-asporto .card-titolo {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #1565c0; /* Testo blu per distinguerlo */
}

/* Lista prodotti */
.card-asporto .card-lista {
    font-size: 14px;
    margin-bottom: 10px;
    text-align: left;
}

/* Stato e timer */
.card-asporto .card-stato {
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 5px;
}

.card-asporto .card-timer {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-bottom: 15px;
}

/* Contenitore bottoni */
.card-asporto .card-bottoni {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

/* Bottoni (colori contrastanti) */
.btn-asporto-accetta {
    flex: 1;
    padding: 10px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.1s ease, opacity 0.1s ease;
}

.btn-asporto-declina {
    flex: 1;
    padding: 10px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.1s ease, opacity 0.1s ease;
}

.btn-asporto-chiudi {
    flex: 1;
    padding: 10px;
    background: #2980b9;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.1s ease, opacity 0.1s ease;
}

.btn-asporto-accetta:hover,
.btn-asporto-declina:hover,
.btn-asporto-chiudi:hover {
    opacity: 0.9;
}

.btn-asporto-accetta:active,
.btn-asporto-declina:active,
.btn-asporto-chiudi:active {
    transform: scale(0.96);
}
