/* /Components/Chat/ChatComponent.razor.rz.scp.css */
/* Stili base chat */
.chat-container[b-gd2re1wega] {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem;
}

.chat-messages[b-gd2re1wega] {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
}

/* Messaggi */
.message[b-gd2re1wega] {
    margin-bottom: 1rem;
    padding: 0.8rem;
    border-radius: 8px;
    max-width: 100%;
    font-size: 16px;
    line-height: 1.6; /* Migliora spaziatura tra righe */
}

.user-message[b-gd2re1wega] {
    background: #007bff;
    color: white;
    margin-left: auto;
}

.ai-message[b-gd2re1wega] {
    background: #f5f5f5;
    margin-right: auto;
    font-size: 20px;
    white-space: pre-line;
}

/* Filtri */
.filters-display[b-gd2re1wega] {
    margin-top: 1rem;
    padding: 0.8rem;
    background: #e9ecef;
    border-radius: 4px;
    font-family: monospace;
}

.filters-display[b-gd2re1wega] {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #1b6ec2;
}

.filter-grid[b-gd2re1wega] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.filter-item[b-gd2re1wega] {
    padding: 0.3rem 0;
    border-bottom: 1px dashed #dee2e6;
}

.filter-name[b-gd2re1wega] {
    font-weight: 600;
    color: #1b6ec2;
}

.filter-value[b-gd2re1wega] {
    color: #495057;
    margin-left: 0.5rem;
}

.filter-row[b-gd2re1wega] {
    display: flex;
    margin-bottom: 0.3rem;
}

.filter-label[b-gd2re1wega] {
    font-weight: 600;
    min-width: 120px;
    color: #1b6ec2;
}

.ai-response[b-gd2re1wega] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 10%;
    background: green; /* Pino */
}

.filters-display[b-gd2re1wega] {
    margin-top: 0.5rem;
    padding: 0.8rem;
    background: #f0f8ff;
    border-radius: 6px;
    border-left: 3px solid #1b6ec2;
}


/* Stili per la tabella anteprima Staff */
.staff-results[b-gd2re1wega] {
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: #f70e0e; /* Pino */
}

.preview-table[b-gd2re1wega] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

    .preview-table th[b-gd2re1wega], .preview-table td[b-gd2re1wega] {
        padding: 0.5rem;
        text-align: left;
        border-bottom: 1px solid #ddd;
    }

    .preview-table th[b-gd2re1wega] {
        background-color: #e9ecef;
    }

.status-d[b-gd2re1wega] {
    color: green;
}

.status-a[b-gd2re1wega] {
    color: orange;
}

.show-more[b-gd2re1wega] {
    text-align: center;
    padding: 0.5rem;
    font-style: italic;
    color: #666;
}

/* Intestazione griglia */
.grid-header[b-gd2re1wega] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.header-main[b-gd2re1wega] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-actions[b-gd2re1wega] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-display[b-gd2re1wega] {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9em;
    color: #6c757d;
    padding-right: 10px;
}


/* FILE: ChatComponent.razor.css */

.ai-response[b-gd2re1wega] {
    background: transparent !important; /* Rimuove il verde */
    padding: 0;
    margin: 0;
}

.message-content[b-gd2re1wega] {
    color: inherit; /* Mantiene il colore del testo originale */
    padding: 0.5rem 0;
    font-size: 18px;
}

.suggestion-item[b-gd2re1wega] {
    display: flex;
    gap: 0.5rem;
    margin: 0.2rem 0;
}

.suggestion-bullet[b-gd2re1wega] {
    color: #007bff;
    font-weight: bold;
}

.message-text[b-gd2re1wega] {
    line-height: 1.5;
    margin: 0.3rem 0;
}



/* ======================================================= */
/* OVERLAY STYLES - MANCANTI                               */
/* ======================================================= */


.chat-overlay[b-gd2re1wega] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: flex-end; /* CAMBIA: da center a flex-end */
    align-items: flex-start; /* CAMBIA: da center a flex-start */
    z-index: 9999;
    animation: fadeIn-b-gd2re1wega 0.3s ease;
    padding: 20px; /* AGGIUNGI: spazio dai bordi */
}

.chat-container[b-gd2re1wega] {
    width: 30%; /* CAMBIA: da 90% a 400px (più stretto) */
    max-width: 30%; /* CAMBIA */
    height: 90%; /* CAMBIA: da 80% a 90% (più alto) */
    max-height: 90vh; /* CAMBIA */
    background: white;
    border-radius: 12px 0 0 12px; /* CAMBIA: arrotonda solo sinistra */
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3); /* CAMBIA: ombra a sinistra */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideInRight-b-gd2re1wega 0.3s ease; /* CAMBIA animazione */
}

.chat-header[b-gd2re1wega] {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-title[b-gd2re1wega] {
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.chat-close-btn[b-gd2re1wega] {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

    .chat-close-btn:hover[b-gd2re1wega] {
        background: rgba(255, 255, 255, 0.2);
    }

.chat-body[b-gd2re1wega] {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: #f8f9fa;
}

.chat-footer[b-gd2re1wega] {
    padding: 1rem 1.5rem;
    background: white;
    border-top: 1px solid #e0e0e0;
}

/* Input */
.chat-input-container[b-gd2re1wega] {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start; /* AGGIUNGI */
}

    .chat-input-container textarea.chat-input[b-gd2re1wega] {
        flex: 1;
        padding: 0.8rem 1rem;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        font-size: 18px;
        min-height: 60px;
        max-height: 120px;
        resize: vertical;
        overflow-y: auto;
        line-height: 1.4;
        white-space: pre-wrap;
        word-wrap: break-word;
        width: 100%; /* FORZA LARGHEZZA COMPLETA */
        box-sizing: border-box; /* INCLUDE PADDING NELLA WIDTH */
    }

    .chat-input-container button[b-gd2re1wega] {
        padding: 0.8rem 1.5rem; /* AUMENTA padding */
        background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); /* SFUMATO */
        color: white;
        border: none;
        border-radius: 8px; /* PIÙ arrotondato */
        cursor: pointer;
        font-weight: 600; /* TESTO PIÙ SPESSO */
    }

.chat-send-btn[b-gd2re1wega] {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s;
    min-height: 60px; /* ALTEZZA MINIMA */
    max-height: 120px; /* ALTEZZA MAX */
}

    .chat-send-btn:hover:not(:disabled)[b-gd2re1wega] {
        transform: translateY(-2px);
    }

    .chat-send-btn:disabled[b-gd2re1wega] {
        opacity: 0.6;
        cursor: not-allowed;
    }

.spinner[b-gd2re1wega] {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin-b-gd2re1wega 1s linear infinite;
}

@keyframes fadeIn-b-gd2re1wega {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInRight-b-gd2re1wega {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes spin-b-gd2re1wega {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .chat-container[b-gd2re1wega] {
        width: 95%;
        height: 90%;
        max-height: none;
    }
}
/* /Components/Chat/CustomerChatBlock.razor.rz.scp.css */
/* FILE: CustomerChatBlock.razor.css */

.van-results[b-k55etez3yo] {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.van-grid[b-k55etez3yo] {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colonne di uguale larghezza */
    gap: 1.5rem;
    padding: 10px;
}

.van-card[b-k55etez3yo] {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

    .van-card:hover[b-k55etez3yo] {
        transform: translateY(-5px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .van-card img[b-k55etez3yo] {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-bottom: 1px solid #eee;
    }

.van-details[b-k55etez3yo] {
    padding: 1.25rem;
}

    .van-details h5[b-k55etez3yo] {
        margin: 0 0 0.5rem 0;
        color: #333;
        font-size: 1.1rem;
    }

    .van-details p[b-k55etez3yo] {
        margin: 0.3rem 0;
        color: #666;
        font-size: 0.9rem;
    }

.btn-booking[b-k55etez3yo] {
    display: inline-block;
    padding: 8px 16px;
    margin-top: 0.5rem;
    background: #1b6ec2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

    .btn-booking:hover[b-k55etez3yo] {
        background: #155a9c;
    }

.no-results[b-k55etez3yo] {
    color: #666;
    font-style: italic;
    padding: 10px;
    display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .van-grid[b-k55etez3yo] {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .van-grid[b-k55etez3yo] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .van-grid[b-k55etez3yo] {
        grid-template-columns: 1fr;
    }
}
/* /Components/Staff/DataDisplay/CompactGrid.razor.rz.scp.css */
/* CONTENITORE PRINCIPALE */
.compact-grid[b-5af8jpgq1h] {
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: white;
    overflow: hidden;
}


/* INTESTAZIONE CONTROLLI */
.grid-controls[b-5af8jpgq1h] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.result-count[b-5af8jpgq1h] {
    width: 120px;
    font-weight: 500;
    color: #495057;
    font-size: 1.2rem;
}

.grid-actions button[b-5af8jpgq1h] {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 0.5rem;
}

/* ---------------------------
  SCROLLBAR PERSONALIZZATA
/---------------------------*/
/* Contenitore della griglia con overflow orizzontale */
.grid-scroll-container[b-5af8jpgq1h] {
    overflow: auto; /* Scorrimento sia orizzontale che verticale */
    flex-grow: 1;
    min-height: 0;
    width: 100%;
}

/* La parte della griglia che deve essere scrollabile verticalmente */
.grid-body[b-5af8jpgq1h] {
    height: 100%; /* Si adatta all'altezza del contenitore */
    overflow-y: auto; /* Mostra la barra di scorrimento verticale se il contenuto supera l'altezza */
}

    /* Se vuoi una versione espansa con altezza maggiore */
    .grid-body.expanded[b-5af8jpgq1h] {
        height: 100%; /* Puoi modificare questa altezza se necessario */
    }

/* Personalizzazione della scrollbar per Webkit (Chrome, Safari, Edge) */
.grid-scroll-container[b-5af8jpgq1h]::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.grid-scroll-container[b-5af8jpgq1h]::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 4px;
}


/* ---------------------
      DATA-GRID
/---------------------*/
.data-grid[b-5af8jpgq1h] {
    width: 100%;
    min-width: 100%; /* Mantiene la larghezza minima */
    border-collapse: collapse;
    table-layout: auto;
    font-size: 0.8rem;
}

    .data-grid thead th[b-5af8jpgq1h] {
        position: sticky;
        top: 0;
        background: #e9ecef; /* colore di sfondo uguale a quello già usato */
        z-index: 10; /* sopra le righe */
    }

    .data-grid th[b-5af8jpgq1h] {
        position: sticky;
        top: 0;
        background: #e9ecef;
        padding: 0.5rem 1rem;
        text-align: left;
        font-weight: 500;
        white-space: nowrap;
    }

    .data-grid td[b-5af8jpgq1h] {
        padding: 0.5rem 1rem;
        border-bottom: 1px solid #dee2e6;
        vertical-align: top;
    }

.data-grid[b-5af8jpgq1h] {
    table-layout: fixed;
    border-collapse: collapse;
}

    .data-grid th[b-5af8jpgq1h], .data-grid td[b-5af8jpgq1h] {
        padding: 8px;
        border: 1px solid #ddd;
        overflow: hidden;
    }


    /* Rendi le celle più compatte */
    .data-grid th[b-5af8jpgq1h],
    .data-grid td[b-5af8jpgq1h] {
        padding: 4px 8px; /* riduci i padding verticali e orizzontali */
        line-height: 1.2; /* abbassa il line-height per meno spazio tra le righe */
    }


/* ---------------------
  TESTO DELLA DATA-GRID
/---------------------*/

.cell-content[b-5af8jpgq1h] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    display: block;
}

/* Tooltip naturale del browser */
[title][b-5af8jpgq1h] {
    position: relative;
}

/* ---------------------
    PULSANTI
/---------------------
.delete-btn {
    color: #dc3545;
    background: none;
    border: none;
    font-size: 1.1em;
    cursor: pointer;
    padding: 0 5px;
}
*/
.delete-btn[b-5af8jpgq1h] {
    background: none;
    border: none;
    color: #e53e3e;
    cursor: pointer;
    font-size: 1.2em;
    padding: 0 5px;
    transition: color 0.2s;
}

    .delete-btn:hover[b-5af8jpgq1h] {
        color: #c53030;
    }


/* Intestazione griglia */
.grid-header[b-5af8jpgq1h] {
    position: sticky; /* Rende la testata fissa durante lo scroll */
    top: 0; /* Posizione in alto rispetto al contenitore */
    z-index: 10; /* Assicurati che sia sopra le righe */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.header-main[b-5af8jpgq1h] {
    display: flex;
    align-items: center;
    gap: 8px;
}


.filter-display[b-5af8jpgq1h] {
    margin-left: 8px;
    color: #555;
    font-size: 1.2em;
    max-width: 800px;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.header-actions[b-5af8jpgq1h] {
    display: flex;
    justify-content: flex-end; /* Allinea tutto a destra */
    align-items: center;
    gap: 8px;
    width: 100%;
}

.filter-summary[b-5af8jpgq1h] {
    background: #e6f7ff;
    padding: 2px 6px;
    border-radius: 3px;
    border-left: 2px solid #1890ff;
    font-size: 0.85em;
    margin-left: 8px;
}



.header-actions[b-5af8jpgq1h] {
    display: flex;
    gap: 8px;
}

.action-btn[b-5af8jpgq1h] {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

    .action-btn:hover[b-5af8jpgq1h] {
        background-color: #f0f0f0;
    }

.header-icon[b-5af8jpgq1h] {
    width: 26px; /* Aumentato da 20px */
    height: 26px; /* Aumentato da 20px */
    vertical-align: middle;
    margin: 0 4px; /* Aggiunto margine */
}

/* Stato attivo icona filtri */
.action-btn.filter-btn.active[b-5af8jpgq1h] {
    background-color: #e0e0e0;
}

    .action-btn.filter-btn.active img[b-5af8jpgq1h] {
        filter: brightness(0.8);
    }


.data-grid td span[b-5af8jpgq1h] {
    display: block; /* Occupa tutto lo spazio della cella */
    padding: 4px; /* Spaziatura interna */
    border-radius: 3px; /* Angoli arrotondati */
}

/* Colori di background per gli stati */
/* Ciano */
.scadenza-imminente[b-5af8jpgq1h] {
    background-color: #00FFFF;
}
/* Giallo */
.scadenza-recente[b-5af8jpgq1h] {
    background-color: #FFFF00;
}
/* Rosso */
.scadenza-avanzata[b-5af8jpgq1h] {
    background-color: #FF0000;
}
/* Grigio (solo testo) */
.scadenza-mancante[b-5af8jpgq1h] {
    color: #CCCCCC;
}

/* Colore rosso per scadenze avanzate (10 giorni fa) */
.data-grid td span.scadenza-avanzata[b-5af8jpgq1h] {
    background-color: #FF0000;
    color: white; /* Testo bianco per leggibilità */
    display: inline-block; /* Alternativa a 'block' se preferisci */
    padding: 2px 6px;
    border-radius: 3px;
}

[b-5af8jpgq1h] .scadenza-avanzata {
    background-color: #FF0000 !important;
    color: white !important;
    display: inline-block !important;
    padding: 2px 6px !important;
    border-radius: 3px !important;
}

/* Colore giallo per scadenze recenti (1-10 giorni fa) */
[b-5af8jpgq1h] .scadenza-recente {
    background-color: #FFFF00 !important; /* Giallo puro */
    color: #333 !important; /* Testo scuro per contrasto */
    display: inline-block !important;
    padding: 2px 6px !important;
    border-radius: 3px !important;
}

/* Colore CIANO per scadenze imminenti (0-4 giorni) */
[b-5af8jpgq1h] .scadenza-imminente {
    background-color: #00FFFF !important; /* Ciano puro */
    color: #000 !important; /* Testo nero per contrasto */
    display: inline-block !important;
    padding: 2px 6px !important;
    border-radius: 3px !important;
}

/* Controlli sulla data Scadenza Revisione) */

.scadenza-avanzata[b-5af8jpgq1h] {
    background-color: #FF0000 !important;
    color: white !important;
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
}

.scadenza-mancante[b-5af8jpgq1h] {
    color: #CCCCCC !important;
    font-style: italic;
}


/* Badge allarmi */
.allarmi-badge[b-5af8jpgq1h] {
    display: inline-flex;
    align-items: center;
    background-color: #fff3cd;
    border: 1px solid #ffecb5;
    border-radius: 12px;
    padding: 2px 8px;
    margin-right: 10px;
    cursor: default;
}

.icona-allarme[b-5af8jpgq1h] {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

.contatore-allarmi[b-5af8jpgq1h] {
    color: #856404;
    font-size: 0.9rem;
    font-weight: bold;
}



.allarmi-badge.active[b-5af8jpgq1h] {
    background-color: #ffecb5; /* Giallo più intenso */
    box-shadow: 0 0 0 2px #ffc107;
}

.allarmi-badge[b-5af8jpgq1h] {
    cursor: pointer;
    transition: all 0.2s;
}

/* NUOVI STILI PER IL RIEPILOGO FILTRI */
.filter-display[b-5af8jpgq1h] {
    background-color: #f0f7ff;
    border-left: 4px solid #0066cc;
    border-radius: 6px;
    padding: 8px 14px;
    margin-left: 15px;
    font-size: 1.05rem; /* Aumentato da 0.9rem */
    color: #003366;
    font-weight: 600; /* Più grassetto */
    display: inline-block;
    max-width: 100%;
    min-width: 800px;
    white-space: normal; /* Abilita multilinea */
    line-height: 1.4; /* Spaziatura tra righe */
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    min-height: 44px; /* Altezza minima garantita */
}

.filter-display-container[b-5af8jpgq1h] {
    display: flex;
    align-items: center;
    min-width: 0; /* Permette il text-overflow */
}

.filter-icon[b-5af8jpgq1h] {
    font-size: 1.2rem;
    margin-right: 10px;
    color: #004080;
    flex-shrink: 0;
}

.filter-content[b-5af8jpgq1h] {
    overflow: hidden;
}

.filter-label[b-5af8jpgq1h] {
    font-weight: 700; /* Più grassetto */
    color: #002b5c;
    margin-right: 8px;
    font-size: 1.1em;
    display: inline-block;
}

.filter-values[b-5af8jpgq1h] {
    color: #0066cc;
    font-weight: 600;
    white-space: normal;
    word-break: break-word; /* Forza a capo se necessario */
}

/* Effetto hover */
.filter-display:hover[b-5af8jpgq1h] {
    background-color: #e1f0ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}

/* Versione compatta per mobile */
@media (max-width: 768px) {
    .filter-display[b-5af8jpgq1h] {
        padding: 6px 10px;
        font-size: 1rem;
        margin-left: 8px;
        min-height: 40px;
    }

    .filter-icon[b-5af8jpgq1h] {
        font-size: 1rem;
        margin-right: 6px;
    }
}

/* Tooltip avanzato */
.filter-display[title]:hover[b-5af8jpgq1h]::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1a365d;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    width: max-content;
    max-width: 90vw;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tipo-sosta[b-5af8jpgq1h] {
    font-weight: 500;
}

.data-sosta[b-5af8jpgq1h] {
    color: #333;
}

.durata-sosta[b-5af8jpgq1h] {
    color: #0066cc;
    font-weight: 500;
}

.data-mancante[b-5af8jpgq1h] {
    color: #999;
    font-style: italic;
}

/* Stile base del badge */
.tipo-sosta-badge[b-5af8jpgq1h] {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-weight: bold;
    color: white;
}

    /* Colori specifici */
    .tipo-sosta-badge.movimento[b-5af8jpgq1h] {
        background-color: #4CAF50; /* Verde */
    }

    .tipo-sosta-badge.fermata[b-5af8jpgq1h] {
        background-color: #2196F3; /* Blu */
    }

    .tipo-sosta-badge.sosta[b-5af8jpgq1h] {
        background-color: #2196F3; /* Blu (stesso di Fermata) */
    }

    .tipo-sosta-badge.parcheggio[b-5af8jpgq1h] {
        background-color: #2196F3; /* Blu (stesso di Fermata) */
    }

    .tipo-sosta-badge.default[b-5af8jpgq1h] {
        background-color: #9E9E9E; /* Grigio (valore non riconosciuto) */
    }
.durata[b-5af8jpgq1h] {
    color: #0066cc;
    font-weight: 500;
}

.durata-mancante[b-5af8jpgq1h] {
    color: #9E9E9E;
    font-style: italic;
}
/* /Components/Staff/DataDisplay/ResultsContainer.razor.rz.scp.css */

/* CONTENITORE PRINCIPALE */
.compact-grid[b-dv8c492e7d] {
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: white;
    overflow: hidden;
}

/* INTESTAZIONE CONTROLLI */
.grid-controls[b-dv8c492e7d] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.result-count[b-dv8c492e7d] {
    font-weight: 500;
    color: #495057;
}

.grid-actions button[b-dv8c492e7d] {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 0.5rem;
}

/* ---------------------------
  SCROLLBAR PERSONALIZZATA
/---------------------------*/
.grid-scroll-container[b-dv8c492e7d] {
    height: calc(100vh - 200px); /* Regola 200px in base all'header/footer */
    min-height: 300px; /* Altezza minima di fallback */
    overflow: auto; /* Mantieni scroll esistente */
    width: 100%; /* Conserva larghezza attuale */
}

.grid-body[b-dv8c492e7d] {
    max-height: 200px;
}

.grid-scroll-container[b-dv8c492e7d]::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.grid-scroll-container[b-dv8c492e7d]::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 4px;
}


/* ---------------------
      DATA-GRID
/---------------------*/
.data-grid[b-dv8c492e7d] {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

    .data-grid th[b-dv8c492e7d] {
        position: sticky;
        top: 0;
        background: #e9ecef;
        padding: 0.5rem 1rem;
        text-align: left;
        font-weight: 500;
        white-space: nowrap;
    }

    .data-grid td[b-dv8c492e7d] {
        padding: 0.5rem 1rem;
        border-bottom: 1px solid #dee2e6;
        vertical-align: top;
    }

.data-grid[b-dv8c492e7d] {
    table-layout: fixed;
    border-collapse: collapse;
}

    .data-grid th[b-dv8c492e7d], .data-grid td[b-dv8c492e7d] {
        padding: 8px;
        border: 1px solid #ddd;
        overflow: hidden;
    }

/* ---------------------
  TESTO DELLA DATA-GRID
/---------------------*/

.cell-content[b-dv8c492e7d] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    display: block;
}

/* Tooltip naturale del browser */
[title][b-dv8c492e7d] {
    position: relative;
}


/* Overlay di caricamento */
.loading-overlay[b-dv8c492e7d] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-overlay[b-dv8c492e7d] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* sopra tutto */
}

.loading-spinner[b-dv8c492e7d] {
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin-b-dv8c492e7d 1s linear infinite;
}

@keyframes spin-b-dv8c492e7d {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
.results-grid-container[b-dv8c492e7d] {
    width: 70%;
    float: left;
    padding-right: 15px;
    transition: width 0.3s ease;
}

    .results-grid-container.filter-open[b-dv8c492e7d] {
        width: 70%;
        opacity: 0.9;
    }


/* Mobile */
@media (max-width: 768px) {
    .advanced-filter-overlay[b-dv8c492e7d] {
        width: 100%;
    }

    .results-grid-container[b-dv8c492e7d] {
        width: 100% !important;
        padding-right: 0;
    }
}

/* Clearfix per il float */
.staff-container[b-dv8c492e7d]::after {
    content: "";
    display: table;
    clear: both;
}

/* /Components/Staff/Filters/AdvancedFilter.razor.rz.scp.css */
/* =========== CONTENITORE PRINCIPALE =========== */
.advanced-filter-container[b-av01tfrz8p] {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-height: 100%;
    padding: 0 2px;
    margin: 0 auto;
    position: relative;
    overflow-y: auto; /* Nuovo */
}

@media (max-width: 780px) {
    .advanced-filter-container[b-av01tfrz8p] {
        padding: 0 5px;
    }
}

/* =========== CATEGORIE VERTICALI =========== */
.categorie-verticali[b-av01tfrz8p] {
    flex: 1;
    width: 100%;
    max-width: 100%;
    height: 90vh;
    max-height: 800px;
    overflow-y: auto;
    margin-left: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding-bottom: 60px; /* Spazio per la barra azioni */
    display: flex;
    flex-direction: column;
    gap: 4px; /* Ridotto da 8px */
}

/* Versione compatta */
.categorie-verticali[b-av01tfrz8p] {
    height: 100%;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

/* =========== CATEGORIA SINGOLA =========== */
.categoria-verticale[b-av01tfrz8p] {
    border: 1px solid #e1e4e8;
    border-bottom: 1px solid #e2e8f0; /* Unificato */
    border-radius: 6px;
    padding: 0;
}

.categoria-espansa[b-av01tfrz8p] {
    background-color: #f8f9fa;
    border-left: 3px solid #0d6efd;
}

/* =========== INTESTAZIONE CATEGORIA =========== */
.intestazione-verticale[b-av01tfrz8p] {
    display: flex;
    justify-content: space-between; /* Distribuisce gli elementi */
    align-items: center; /* Allineamento verticale */
    padding: 0 4px;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e4e8;
    width: 94%; /* Occupa tutta la larghezza del genitore */
    gap: 0px; /* Spazio uniforme tra gli elementi */

}

    .intestazione-verticale h4[b-av01tfrz8p] {
        flex: 1; /* Occupa tutto lo spazio rimanente */
        padding: 0 0px; /* Spaziatura laterale */
        max-width: 62%; /* Rimuovi il limite */
        margin-left: 2px; /* Piccolo spazio fisso dopo l'icona */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis; /* [...] se il testo è troppo lungo */
        text-align: left;
        font-weight: 500; /* Ridotto da 600 */
        color: #334155; /* Grigio scuro */
        margin: 0;
        font-size: 0.9rem;
    }

/* =========== CAMPI FILTRI =========== */
.campi-verticali[b-av01tfrz8p] {
    padding: 4px 8px; /* Ridotto */
}

.campo-verticale[b-av01tfrz8p] {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(140px, 1.2fr) 24px;
    gap: 8px;
    align-items: center;
    padding: 4px 0; /* Ridotto */
    min-height: 32px;
    margin-bottom: 2px;
}

.campo-input-container[b-av01tfrz8p] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 2px;
}

.campo-input-verticale[b-av01tfrz8p] {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .campo-input-verticale label[b-av01tfrz8p] {
        min-width: 120px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .campo-input-verticale input[b-av01tfrz8p] {
        width: 100%;
        min-width: 280px; /* Nuovo: larghezza minima garantita */
        max-width: 300px; /* Nuovo: limite massimo (opzionale) */
        padding: 2px 2px;
        font-size: 0.82rem;
    }

.campo-checkbox[b-av01tfrz8p] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-left: 10px;
}

/* =========== CAMPI FILTRATI =========== */
.campo-filtrato[b-av01tfrz8p] {
    background-color: #E6F7FF !important;
    border-left: 3px solid #1890FF !important;
    padding-left: 5px;
    margin-left: -5px;
    transition: all 0.3s ease;
}

    .campo-filtrato label[b-av01tfrz8p] {
        font-weight: 600;
    }

    .campo-filtrato input:focus[b-av01tfrz8p] {
        box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
    }

/* =========== MOSTRA TUTTI =========== */
.mostra-tutti[b-av01tfrz8p] {
    flex: 0 0 auto; /* Adatta alla larghezza del contenuto */
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: green; /*#57606a;*/
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.05);
    margin-left: 0;
    transition: all 0.2s;
}

    .mostra-tutti:hover[b-av01tfrz8p] {
        background-color: rgba(0, 0, 0, 0.1);
    }

.mostra-icon[b-av01tfrz8p] {
    display: inline-block;
    width: 24px;
    height: 24px;
    text-align: center;
    font-size: 1.2rem;
    line-height: 24px;
}

/* =========== LOADING =========== */
.loading-overlay[b-av01tfrz8p] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner[b-av01tfrz8p] {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin-b-av01tfrz8p 1s linear infinite;
}

@keyframes spin-b-av01tfrz8p {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* =========== RESPONSIVE =========== */
@media (max-width: 1300px) {
    .categorie-verticali[b-av01tfrz8p] {
        width: 100%;
        max-width: 40vw;
    }

    .campo-verticale[b-av01tfrz8p] {
        grid-template-columns: minmax(110px, 1fr) minmax(120px, 1fr) 24px;
    }
}

@media (max-width: 768px) {
    .categorie-verticali[b-av01tfrz8p] {
        width: 100%;
        max-width: none;
        max-height: 300px;
        margin: 10px 0;
    }
}

/* =========== CORREZIONE ALLINEAMENTO CAMPI =========== */
.campo-verticale[b-av01tfrz8p] {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) minmax(150px, 1.5fr) 30px;
    gap: 1px;
    align-items: center; /* Allineamento verticale centrale */
    padding: 0px 0;
    min-height: 36px;
}

/* Contenitore input + label */
.campo-input-container[b-av01tfrz8p] {
    grid-column: 1 / 3; /* Occupa le prime due colonne */
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0; /* Fix per overflow */
    align-items: flex-start;
}

/* Label */
.campo-input-verticale label[b-av01tfrz8p] {
    flex: 0 0 140px; /* Larghezza fissa */
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Input */
.campo-input-verticale input[b-av01tfrz8p] {
    flex: 1;
    min-width: 0; /* Permette lo shrinking */
    padding: 6px 8px;
    border: 1px solid #d1d5da;
    border-radius: 4px;
}

/* Checkbox */
.campo-checkbox[b-av01tfrz8p] {
    grid-column: 3; /* Terza colonna */
    justify-self: end; /* Allineamento a destra */
    width: 18px;
    height: 18px;
    margin: 0;
}

@media (max-width: 1200px) {
    .campo-verticale[b-av01tfrz8p] {
        grid-template-columns: minmax(110px, 1fr) minmax(120px, 1fr) 24px;
    }

    .campo-input-verticale label[b-av01tfrz8p] {
        flex-basis: 110px;
    }
}

@media (max-width: 768px) {
    .campo-verticale[b-av01tfrz8p] {
        grid-template-columns: 1fr 24px; /* Stack verticale */
    }

    .campo-input-container[b-av01tfrz8p] {
        grid-column: 1;
    }

    .campo-checkbox[b-av01tfrz8p] {
        grid-column: 2;
        align-self: center;
    }
}


.overlay-header[b-av01tfrz8p] {
    /*background-color: var(--header-bg);*/
    background: #c4d8f5;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 8px 8px 0 0; /* Arrotonda solo gli angoli superiori */
    border: 1px solid #0066cc !important;
}

.overlay-title[b-av01tfrz8p] {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748; /* Grigio scuro */
    margin: 0;
}

.btn-close[b-av01tfrz8p] {
    background: none;
    border: none;
    color: #64748b; /* Grigio medio */
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

    .btn-close:hover[b-av01tfrz8p] {
        background-color: var(--header-accent);
        color: #0066cc; /* Blu aziendale */
    }

    .btn-close:disabled[b-av01tfrz8p] {
        opacity: 0.5;
        cursor: not-allowed;
    }

.btn-disabled[b-av01tfrz8p] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.campo-data-disabilitato[b-av01tfrz8p] {
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #ced4da;
    cursor: not-allowed;
}
.toggle-icon[b-av01tfrz8p] {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #0066cc; /* Colore personalizzato */
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

    .toggle-icon span[b-av01tfrz8p] {
        display: block;
        line-height: 1;
        margin-top: -2px; /* Allineamento verticale perfetto */
    }

.intestazione-verticale:hover .toggle-icon[b-av01tfrz8p] {
    color: #004080; /* Colore hover */
    transform: scale(1.1); /* Leggera animazione */
}



/* BARRA AZIONI INFERIORE */
.filter-actions-bar[b-av01tfrz8p] {
    position: sticky;
    bottom: 0;
    background: #f8f9fa;
    padding: 8px 16px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 8px;
    z-index: 10;
}

    .filter-actions-bar button[b-av01tfrz8p] {
        flex: 1;
        padding: 8px;
        border-radius: 4px;
        font-size: 0.85rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
        border: 1px solid transparent;
    }

        /* Pulsante Azzera */
        .filter-actions-bar button:first-child[b-av01tfrz8p] {
            background: white;
            color: #475569;
            border: 1px solid #e2e8f0;
        }

        /* Pulsante Cerca */
        .filter-actions-bar button:last-child[b-av01tfrz8p] {
            background: #0066cc;
            color: white;
            border: 1px solid #0066cc;
        }

        /* Effetti hover */
        .filter-actions-bar button:first-child:hover[b-av01tfrz8p] {
            background: #f1f5f9;
        }

        .filter-actions-bar button:last-child:hover[b-av01tfrz8p] {
            background: #0052a3;
            border-color: #0052a3;
        }

.toggle-control[b-av01tfrz8p] {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin-left: 8px;
}

    .toggle-control.disabled[b-av01tfrz8p] {
        opacity: 0.5;
        cursor: not-allowed;
    }

.toggle-input[b-av01tfrz8p] {
    display: none;
}

.toggle-indicator[b-av01tfrz8p] {
    font-size: 1.2rem;
    user-select: none;
    color: #495057;
}

    .toggle-indicator:hover:not(.disabled)[b-av01tfrz8p] {
        color: #0d6efd;
    }

/* Allineamento toggle a sinistra */
.toggle-control[b-av01tfrz8p] {
    display: flex;
    align-items: center;
    gap: 8px; /* Spaziatura tra icona e testo */
    cursor: pointer;
}

.toggle-indicator[b-av01tfrz8p] {
    order: -1; /* Icona prima del testo */
    margin-right: 8px;
    font-size: 1.2rem;
    user-select: none;
}

.toggle-label[b-av01tfrz8p] {
    display: flex;
    align-items: center;
}

/* Stile dropdown TipoSosta */
.campo-input-verticale select[b-av01tfrz8p] {
    width: 100%;
    padding: 0.25rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    font-size: 0.85rem;
}



/* Stile base per il container del campo */
.campo-input-container[b-av01tfrz8p] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

/* Stato DISABILITATO (quando EsisteSuTrack=false) */
select:disabled[b-av01tfrz8p] {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Icona di avviso (tooltip) */
.campo-avviso[b-av01tfrz8p] {
    color: #6c757d;
    cursor: help;
    font-size: 14px;
    transition: color 0.2s;
}

    .campo-avviso:hover[b-av01tfrz8p] {
        color: #0d6efd; /* Blu di Bootstrap */
    }

/* Stato ATTIVO (quando EsisteSuTrack=true) */
.campo-input-verticale.campo-filtrato[b-av01tfrz8p] {
    border-left: 3px solid #0d6efd; /* Bordo blu a sinistra */
    padding-left: 8px;
}

/* Stile per la combo attiva */
select:not(:disabled)[b-av01tfrz8p] {
    border-color: #adb5bd;
    transition: border-color 0.3s;
}

    select:not(:disabled):focus[b-av01tfrz8p] {
        border-color: #0d6efd;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }

/* Tooltip personalizzato */
[data-tooltip][b-av01tfrz8p] {
    position: relative;
}

    [data-tooltip][b-av01tfrz8p]::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: #333;
        color: #fff;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        white-space: nowrap;
        opacity: 0;
        transition: opacity 0.3s;
        pointer-events: none;
    }

    [data-tooltip]:hover[b-av01tfrz8p]::after {
        opacity: 1;
    }
/* /Components/Staff/Localita/LocalitaGrid.razor.rz.scp.css */
/* Layout principale */
.container[b-g69buwo1m5] {
    display: flex;
    height: 100vh; /* altezza totale viewport */
}

/* Stile del componente CompactGrid */
.compact-grid[b-g69buwo1m5] {
    border-radius: 8px;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: white;
    display: flex;
    flex-direction: column;
    height: calc(100% - 20px); /* per adattarsi allo spazio disponibile */
}

/* Intestazione controlli */
.grid-controls[b-g69buwo1m5] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

    /* Nuovo stile per il gruppo input+pulsante */
    .grid-controls .filter-group[b-g69buwo1m5] {
        display: flex;
        gap: 8px;
        align-items: center;
        flex-grow: 1;
        max-width: 600px; /* regola secondo necessità */
    }

    .grid-controls input[type="text"][b-g69buwo1m5] {
        padding: 6px 12px;
        border: 1px solid #ced4da;
        border-radius: 4px;
        flex-grow: 1;
    }

    .grid-controls button[b-g69buwo1m5] {
        padding: 6px 12px;
        background-color: #007bff;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        white-space: nowrap;
    }

        .grid-controls button:hover[b-g69buwo1m5] {
            background-color: #0069d9;
        }

.result-count[b-g69buwo1m5] {
    width: auto;
    font-weight: 500;
    color: #495057;
    font-size: 1.2rem;
}

.grid-actions button[b-g69buwo1m5] {
    background: none;
    border: none;
    cursor: pointer; /* corretto senza transition sbagliato */
    font-size: 1.1rem;
}

/* Scroll container della griglia */
.grid-scroll-container[b-g69buwo1m5] {
    overflow-x: auto;
    flex-grow: 1; /* occupa tutto lo spazio rimanente verticalmente */
    transform: translateZ(0);
    isolation: isolate;
}

.grid-body[b-g69buwo1m5] {
    height: auto; /* si adatta all'altezza disponibile */
    overflow-y: auto; /* scrollbar verticale se necessario */
}

/* Personalizzazione scrollbar Webkit (optional) */
.grid-scroll-container[b-g69buwo1m5]::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.grid-scroll-container[b-g69buwo1m5]::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 4px;
}

/* Tabella dati */
.data-grid[b-g69buwo1m5] {
    width: auto; /* si adatta alla larghezza del contenitore */
    border-collapse: collapse;
    table-layout: auto; /* permette di ridimensionare le colonne dinamicamente */
    font-size: .9rem;
}

    .data-grid thead th[b-g69buwo1m5] {
        position: sticky;
        top: -1px;
        background-color: #e9ecef;
        z-index: 10;
    }

    .data-grid th[b-g69buwo1m5] {
        position: sticky;
        top: -1px;
        background-color: #e9ecef;
        padding: .5rem 1rem;
        text-align: left;
        font-weight: bold;
    }

    .data-grid td[b-g69buwo1m5] {
        padding: .2rem .75rem;
        border-bottom: 1px solid #dee2e6;
        vertical-align: top;
    }

/* Correzioni specifiche per gli avvisi */

.cell-content[b-g69buwo1m5] {
    white-space: nowrap; /* errore originale, corretto in nowrap senza trattino*/
    overflow: hidden; /* meglio usare overflow invece di hidden con ellipsis se non serve ellipsis*/
    text-overflow: ellipsis; /* correttamente senza spazi o errori di sintassi*/
    width: 100%;
    display: block;
}

/* Pulsante delete con hover corretto e senza transition sbagliato */

.delete-btn[b-g69buwo1m5] {
    background: none;
    border: none;
    color: #e53e3e;
    font-size: 1.2em;
    padding: 0 .5em;
    cursor: pointer; /* rimosso transition sbagliato che causava errore*/
}

    .delete-btn:hover[b-g69buwo1m5] {
        color: #c53030;
    }

/* Header della griglia */
.grid-header[b-g69buwo1m5] {
    position: sticky;
    top: -1px;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .75rem;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
}

.header-main[b-g69buwo1m5] {
    display: flex;
    align-items: center;
    gap: .5em;
}

.filter-display[b-g69buwo1m5] {
    margin-left: .5em;
    color: #555;
    font-size: .9em;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-actions[b-g69buwo1m5] {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.filter-summary[b-g69buwo1m5] {
    background: #e6f7ff;
    padding: .25em .5em;
    border-radius: .3em;
    border-left: .25em solid #1890ff;
    font-size: .75em;
    margin-left: .5em;
}

.export-btn[b-g69buwo1m5] {
    color: #2e7d32 !important;
    background: none;
    border: none;
    font-size: .9em;
    padding: .25em .5em;
    margin-left: .5em;
    text-align: center;
    text-decoration: none;
}

    .export-btn:hover[b-g69buwo1m5] {
        color: #0d4d12;
    }

.data-grid tr.no-coordinates[b-g69buwo1m5] {
    background-color: rgba(255, 200, 200, 0.3); /* Rosso tenue con trasparenza */
}

    .data-grid tr.no-coordinates:hover[b-g69buwo1m5] {
        background-color: rgba(255, 180, 180, 0.4); /* Leggermente più intenso al hover */
    }

.dirty-cell[b-g69buwo1m5] {
    background-color: rgba(144, 238, 144, 0.8); /* Lightgreen con trasparenza */
}

/* Stile per gli input in modalità edit */
.compact-grid input[b-g69buwo1m5] {
    border: 1px solid #ddd;
    padding: 2px 5px;
    width: 100%;
    box-sizing: border-box;
    background-color: white !important;
}

.btn-save[b-g69buwo1m5] {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 6px 12px;
    margin-left: 10px;
    border-radius: 4px;
    cursor: pointer;
}

    .btn-save:disabled[b-g69buwo1m5] {
        opacity: 0.5;
        cursor: not-allowed;
    }


.toast-container[b-g69buwo1m5] {
    position: fixed;
    /* Posizione in alto al centro, sopra la mappa */
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000; /* Più alto della mappa (z-index: 1000) */
    width: max-content;
    max-width: 90%;
}

.toast-message[b-g69buwo1m5] {
    background: #4CAF50;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /* Animazione migliorata */
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

    .toast-message.show[b-g69buwo1m5] {
        opacity: 1;
        transform: translateY(0);
    }

    .toast-message.hide[b-g69buwo1m5] {
        opacity: 0;
        transform: translateY(-20px);
    }

/* Aggiungi in LocalitaGrid.razor.css */
.geocoding-status[b-g69buwo1m5] {
    position: absolute;
    right: 20px;
    bottom: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    z-index: 1000;
}


/* Evidenziazione hover per celle coordinate */
td.coordinate-cell:hover[b-g69buwo1m5] {
    background-color: #c1f8f5; /* Celeste chiarissimo */
    cursor: pointer; /* Manina */
    transition: background-color 0.2s ease;
}

/* Mantieni lo stese esistente per celle senza coordinate */
td.no-coordinates:hover[b-g69buwo1m5] {
    background-color: inherit; /* Nessun cambiamento */
    cursor: default;
}


/* Stile base per tutti i pulsanti icona */
.icon-btn[b-g69buwo1m5] {
    background: none;
    border: none;
    padding: 0;
    margin: 0 8px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

    .icon-btn:hover[b-g69buwo1m5] {
        opacity: 1;
        transform: scale(1.1);
    }

/* Icone SVG */
.icon[b-g69buwo1m5] {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Colori specifici per ogni azione */
.export-btn .icon[b-g69buwo1m5] {
    filter: invert(28%) sepia(98%) saturate(1518%) hue-rotate(87deg) brightness(98%) contrast(91%);
    /* Verde simile al colore originale 📥 */
}

.map-btn .icon[b-g69buwo1m5] {
    filter: invert(24%) sepia(99%) saturate(7488%) hue-rotate(235deg) brightness(91%) contrast(91%);
    /* Blu scuro simile a 🗺️ */
}

.refresh-btn .icon[b-g69buwo1m5] {
    filter: invert(44%) sepia(99%) saturate(1623%) hue-rotate(176deg) brightness(98%) contrast(91%);
    /* Azzurro simile a 🔄 */
}


/* Celle coordinate - Hover */
.data-grid td[onclick]:hover[b-g69buwo1m5] {
    cursor: pointer; /* Manina al passaggio del mouse */
    background-color: #f0f8ff; /* Celeste chiaro per feedback visivo */
}

/* Celle senza coordinate - Hover (disabilita cursore) */
.data-grid td.no-coordinates:hover[b-g69buwo1m5] {
    cursor: default !important; /* Freccia normale */
    background-color: inherit !important; /* Mantieni colore originale */
}

/* /Components/Staff/Map/GoogleMapsOverlay.razor.rz.scp.css */
.google-maps-wrapper[b-qzqdmh5nmd] {
    position: relative;
    width: 100%;
    height: 100%;
}

.map-filter-button[b-qzqdmh5nmd] {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    background: white;
    border: none;
    border-radius: 4px;
    padding: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.2s;
}

    .map-filter-button:hover[b-qzqdmh5nmd] {
        transform: scale(1.05);
    }

    .map-filter-button img[b-qzqdmh5nmd] {
        width: 24px;
        height: 24px;
        display: block;
    }


.tooltip-body[b-qzqdmh5nmd] {
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.4;
}

    .tooltip-body p[b-qzqdmh5nmd] {
        margin: 2px 0;
        white-space: nowrap;
    }

    .tooltip-body strong[b-qzqdmh5nmd] {
        display: inline-block;
        min-width: 60px;
        color: #555;
    }
/* /Components/Staff/Map/MappaOverlayOSM.razor.rz.scp.css */
.map-overlay-container[b-1ppe5gv55g] {
    position: fixed;
    right: 20px;
    top: 100px;
    width: 45%;
    height: 70vh;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border-radius: 8px;
}

.map-overlay-header[b-1ppe5gv55g] {
    height: 40px;
    background: #2c3e50;
    color: white;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: move;
}

.map-overlay-body[b-1ppe5gv55g] {
    height: calc(100% - 40px);
    background: white;
}

.close-btn[b-1ppe5gv55g] {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.map-overlay-container[b-1ppe5gv55g] {
    transition: transform 0.2s ease, opacity 0.2s ease;
}
    /* Chiudendo */
    .map-overlay-container.hidden[b-1ppe5gv55g] {
        transform: translateY(10px);
        opacity: 0;
    }
/* /Components/Staff/Map/ModalContainer.razor.rz.scp.css */
.map-overlay-container[b-zc8joxdbss] {
    position: fixed;
    right: 20px;
    top: 100px;
    width: 45%;
    height: 70vh;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border-radius: 8px;
}

.map-overlay-header[b-zc8joxdbss] {
    height: 40px;
    background: #2c3e50;
    color: white;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: move;
}

.map-overlay-body[b-zc8joxdbss] {
    height: calc(100% - 40px);
    background: white;
}

.close-btn[b-zc8joxdbss] {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.map-overlay-container[b-zc8joxdbss] {
    transition: transform 0.2s ease, opacity 0.2s ease;
}
    /* Chiudendo */
    .map-overlay-container.hidden[b-zc8joxdbss] {
        transform: translateY(10px);
        opacity: 0;
    }
/* /Pages/Index.razor.rz.scp.css */
/* ====================== */
/* RESET LAYOUT BASE */
/* ====================== */
html[b-1zuh9nlqf8], body[b-1zuh9nlqf8] {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Elimina scrollbar globale */
}

/* ====================== */
/* LAYOUT PRINCIPALE */
/* ====================== */
.layout-root[b-1zuh9nlqf8] {
    display: flex;
    flex-direction: column;
    height: 100vh; /* Occupa tutta l'altezza viewport */
    max-width: 1400px; /* Larghezza massima aumentata */
    margin: 0 auto;
    padding: 0;
    overflow: hidden; /* Previene scrollbar indesiderate */
}

/* ====================== */
/* HEADER AMPLIATO */
/* ====================== */
.header-wrapper[b-1zuh9nlqf8] {
    width: 100%;
    padding: 20px 0; /* Spaziatura verticale aumentata */
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    flex-shrink: 0; /* Impedisce il ridimensionamento */
}

.header-table[b-1zuh9nlqf8] {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

/* Logo ingrandito */
.logo-cell[b-1zuh9nlqf8] {
    width: 120px; /* Larghezza aumentata */
    vertical-align: middle;
    padding-right: 20px;
}

.header-logo[b-1zuh9nlqf8] {
    height: 100px; /* Altezza aumentata */
    width: auto;
    max-width: 120px; /* Larghezza massima */
    display: block;
}

/* Area testo ampliata */
.text-cell[b-1zuh9nlqf8] {
    vertical-align: middle;
    padding-left: 0;
}

    .text-cell h1[b-1zuh9nlqf8] {
        font-size: 1.8rem; /* Dimensione aumentata */
        font-weight: 600;
        margin: 0;
        line-height: 1.2;
        color: #333;
    }

    .text-cell .subtitle[b-1zuh9nlqf8] {
        font-size: 1.2rem; /* Dimensione aumentata */
        font-weight: 400;
        margin-top: 0.5rem; /* Spazio bilanciato */
        color: #666;
        line-height: 1.4;
    }

/* ====================== */
/* AREA CHAT (SENZA DOPPIA SCROLLBAR) */
/* ====================== */
.chat-container[b-1zuh9nlqf8] {
    flex: 1; /* Occupa tutto lo spazio disponibile */
    padding: 20px;
    overflow-y: auto; /* Solo qui abilitiamo lo scroll */
    margin-bottom: 10px;
}

/* ====================== */
/* ICONE HEADER */
/* ====================== */
.header-actions[b-1zuh9nlqf8] {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.header-icon[b-1zuh9nlqf8] {
    width: 24px;
    height: 24px;
    opacity: 0.7;
    transition: all 0.3s ease;
    filter: invert(40%) blur() saturate(1000%) hue-rotate(190deg);
    cursor: pointer;
}

    .header-icon:hover[b-1zuh9nlqf8] {
        opacity: 1;
        transform: scale(1.1);
    }

.header-actions .hidden[b-1zuh9nlqf8] {
    display: none;
}

.header-actions .header-icon[b-1zuh9nlqf8] {
    cursor: pointer;
    width: 24px;
    height: 24px;
    margin: 0 10px;
    transition: opacity 0.2s;
}

    .header-actions .header-icon:hover[b-1zuh9nlqf8] {
        opacity: 0.8;
    }

/* Icona area riservata speciale */
.reserved-area-icon[b-1zuh9nlqf8] {
    display: inline-flex;
    align-items: center;
    margin-left: auto; /* Spinge l'Area Riservata a destra */
    gap: 6px;
    padding: 8px 12px;
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
}

    .reserved-area-icon:hover[b-1zuh9nlqf8] {
        background-color: rgba(0, 0, 0, 0.1);
    }

    /* ====================== */
    /* STATO CONTESTO APPLICATIVO */
    /* ====================== */
    .reserved-area-icon.staff-active[b-1zuh9nlqf8] {
        background-color: blue; /* Verde */
        border: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

        .reserved-area-icon.staff-active span[b-1zuh9nlqf8] {
            font-weight: 600;
            color: #f8f9fa;
        }

        .reserved-area-icon.staff-active img[b-1zuh9nlqf8] {
            filter: invert(75%) blur() saturate(500%) hue-rotate(360deg); /* Icona gialla */
            opacity: 1;
        }

        /* Effetti hover specifici per la modalità staff */
        .reserved-area-icon.staff-active:hover[b-1zuh9nlqf8] {
            background-color: #2d1dfa;
            transform: translateY(-1px);
        }

/* ====================== */
/* RESPONSIVE MOBILE */
/* ====================== */
@media (max-width: 768px) {
    .header-wrapper[b-1zuh9nlqf8] {
        padding: 15px 0; /* Spaziatura ridotta */
    }

    .logo-cell[b-1zuh9nlqf8] {
        width: 100%;
        padding: 10px 0;
    }

    .header-logo[b-1zuh9nlqf8] {
        height: 90px; /* Leggermente più piccolo su mobile */
        max-width: 100px;
    }

    .text-cell h1[b-1zuh9nlqf8] {
        font-size: 1.5rem;
    }

    .text-cell .subtitle[b-1zuh9nlqf8] {
        font-size: 1.1rem;
        margin-top: 0.3rem;
    }
}

/* Schermi grandi (> 1600px) */
@media (min-width: 1600px) {
    .layout-root[b-1zuh9nlqf8] {
        max-width: 1600px;
    }

    .header-logo[b-1zuh9nlqf8] {
        height: 120px;
        max-width: 140px;
    }

    .text-cell h1[b-1zuh9nlqf8] {
        font-size: 2rem;
    }
}


/* ====================== */
/* RESPONSIVE ICONE */
/* ====================== */
@media (max-width: 768px) {
    .header-actions[b-1zuh9nlqf8] {
        top: 15px;
        right: 15px;
        gap: 10px;
    }

    .header-icon[b-1zuh9nlqf8] {
        width: 20px;
        height: 20px;
    }

    .reserved-area-icon[b-1zuh9nlqf8] {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}


/* ====================== */
/* NUOVA TABELLA FURGONI */
/* ====================== */
.vans-container[b-1zuh9nlqf8] {
    max-width: 100% !important; /* Forza l'espansione */
    margin: 0;
    padding: 20px 5%; /* Spazi laterali generosi */
}

.van-table-container[b-1zuh9nlqf8] {
    width: 100%;
    overflow-x: auto;
    margin-top: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.van-table[b-1zuh9nlqf8] {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

    .van-table th[b-1zuh9nlqf8] {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        border-bottom: 2px solid #dee2e6;
        position: sticky;
        top: 0;
    }

    .van-table td[b-1zuh9nlqf8] {
        padding: 12px 15px;
        border-bottom: 1px solid #eee;
        vertical-align: middle;
    }

.van-table-image[b-1zuh9nlqf8] {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.van-status[b-1zuh9nlqf8] {
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    display: inline-block;
}

    .van-status.si[b-1zuh9nlqf8] {
        background-color: #d4edda;
        color: #155724;
    }

    .van-status.no[b-1zuh9nlqf8] {
        background-color: #f8d7da;
        color: #721c24;
    }

.btn-table-action[b-1zuh9nlqf8] {
    background: none;
    border: none;
    padding: 5px;
    margin: 0 3px;
    cursor: pointer;
    transition: transform 0.2s;
}

    .btn-table-action:hover[b-1zuh9nlqf8] {
        transform: scale(1.1);
    }

    .btn-table-action img[b-1zuh9nlqf8] {
        width: 20px;
        height: 20px;
    }

/* ====================== */
/* ADATTAMENTO MOBILE */
/* ====================== */
@media (max-width: 768px) {
    .van-table th[b-1zuh9nlqf8],
    .van-table td[b-1zuh9nlqf8] {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .van-table-image[b-1zuh9nlqf8] {
        width: 60px;
        height: 45px;
    }

    .btn-table-action img[b-1zuh9nlqf8] {
        width: 18px;
        height: 18px;
    }
}


/* Transizioni */
.chat-container[b-1zuh9nlqf8] {
    position: relative;
    height: 100%;
}

.chat-hidden[b-1zuh9nlqf8] {
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, height 0.3s ease;
}

.login-overlay[b-1zuh9nlqf8] {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    animation: fadeIn-b-1zuh9nlqf8 0.3s ease forwards;
    z-index: 100;
}

    .login-overlay.login-error[b-1zuh9nlqf8] {
        animation: shake-b-1zuh9nlqf8 0.5s ease;
    }

@keyframes fadeIn-b-1zuh9nlqf8 {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes shake-b-1zuh9nlqf8 {
    0%, 100% {
        transform: translateX(0);
    }

    20%, 60% {
        transform: translateX(-5px);
    }

    40%, 80% {
        transform: translateX(5px);
    }
}

/* Stile pannello login */
.login-panel[b-1zuh9nlqf8] {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    transform: translateY(-20px);
    animation: slideUp-b-1zuh9nlqf8 0.3s ease forwards;
}

@keyframes slideUp-b-1zuh9nlqf8 {
    to {
        transform: translateY(0);
    }
}

.auth-loading[b-1zuh9nlqf8] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
}

    .auth-loading .spinner[b-1zuh9nlqf8] {
        border: 3px solid rgba(0, 0, 0, 0.1);
        border-radius: 50%;
        border-top: 3px solid #3498db;
        width: 30px;
        height: 30px;
        animation: spin-b-1zuh9nlqf8 1s linear infinite;
    }

@keyframes spin-b-1zuh9nlqf8 {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}



/* Header principale */
.header-wrapper[b-1zuh9nlqf8] {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Contenuto header */
.header-content[b-1zuh9nlqf8] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1.5rem;
    height: 60px;
}

/* Versione staff */
.header-wrapper.staff-header[b-1zuh9nlqf8] {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

/* Logo */
.header-logo img[b-1zuh9nlqf8] {
    height: 30px;
    width: auto;
}

/* Titolo */
.header-title[b-1zuh9nlqf8] {
    flex-grow: 1;
    text-align: center;
    padding: 0 1rem;
}

    .header-title h1[b-1zuh9nlqf8] {
        font-size: 1.2rem;
        margin: 0;
    }

    .header-title .subtitle[b-1zuh9nlqf8] {
        font-size: 0.8rem;
        margin: 0;
        color: #666;
    }

/* Area icone */
.header-actions[b-1zuh9nlqf8] {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.header-icon[b-1zuh9nlqf8] {
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

    .header-icon:hover[b-1zuh9nlqf8] {
        transform: scale(1.1);
    }

.reserved-area-icon[b-1zuh9nlqf8] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

    .reserved-area-icon.staff-active[b-1zuh9nlqf8] {
        color: #2c58a0;
        font-weight: bold;
    }

/* HEADER CLIENTE ORIGINALE */
.header-wrapper:not(.staff-header)[b-1zuh9nlqf8] {
    background: white;
    padding: 1rem;
}

.header-table[b-1zuh9nlqf8] {
    width: 100%;
}

.logo-cell[b-1zuh9nlqf8] {
    width: 120px;
    vertical-align: middle;
}

.header-logo[b-1zuh9nlqf8] {
    height: 80px;
    width: auto;
}

.text-cell[b-1zuh9nlqf8] {
    padding-left: 20px;
}

    .text-cell h1[b-1zuh9nlqf8] {
        font-size: 1.8rem;
        margin: 0;
        color: #2c58a0;
    }

    .text-cell .subtitle[b-1zuh9nlqf8] {
        font-size: 1rem;
        margin: 5px 0 0;
        color: #666;
    }

/* HEADER STAFF COMPATTO */
.staff-header[b-1zuh9nlqf8] {
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.staff-header-content[b-1zuh9nlqf8] {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.staff-logo[b-1zuh9nlqf8] {
    height: 70px;
    width: auto;
}

.staff-title[b-1zuh9nlqf8] {
    font-size: 1.4rem;
    color: #2c58a0;
    font-weight: 500;
}

/* AREA ICONE (condivisa) */
.header-actions[b-1zuh9nlqf8] {
    position: absolute;
    right: 2.5rem;
    top: 1rem;
    display: flex;
    gap: 1.5rem;
}

.reserved-area[b-1zuh9nlqf8] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}


/* Contenitore principale */
.login-container[b-1zuh9nlqf8] {
    position: fixed;
    top: 140px; /* Altezza header cliente + margine */
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 50;
    padding-top: 20px;
}

/* Pannello login */
.login-panel[b-1zuh9nlqf8] {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 400px;
    height: fit-content;
    margin: 0 20px;
    border: 1px solid #e0e0e0;
}

    .login-panel h3[b-1zuh9nlqf8] {
        color: #2c58a0;
        margin-bottom: 1.5rem;
        text-align: center;
    }

.form-group[b-1zuh9nlqf8] {
    margin-bottom: 1.2rem;
}

    .form-group label[b-1zuh9nlqf8] {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
    }

.form-control[b-1zuh9nlqf8] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.login-buttons[b-1zuh9nlqf8] {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn[b-1zuh9nlqf8] {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    flex: 1;
}

.btn-primary[b-1zuh9nlqf8] {
    background-color: #2c58a0;
    color: white;
    border: none;
}

.btn-secondary[b-1zuh9nlqf8] {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.alert-danger[b-1zuh9nlqf8] {
    color: #dc3545;
    padding: 0.5rem;
    margin-top: 1rem;
    border-radius: 4px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

/* Stile specifico per icona località attiva */
.header-actions .header-icon.localita-active[b-1zuh9nlqf8] {
    filter: invert(75%) sepia(90%) saturate(500%) hue-rotate(90deg);
    opacity: 1;
    transform: scale(1.1);
}
/* /Pages/StaffLayout.razor.rz.scp.css */
/* ======================================================= */
/* STAFF LAYOUT SPECIFICO                                 */
/* ======================================================= */

.staff-layout-container[b-kdvdwvmuga] {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: 100vh; /* AGGIUNTO: Altezza fissa viewport */
    overflow: hidden; /* AGGIUNTO: Previene scroll esterno */
}

    /* Header uniforme (stesso gradient homepage) */
    .staff-layout-container .main-header[b-kdvdwvmuga] {
        background: linear-gradient(135deg, var(--lazio-celeste-dark) 0%, var(--lazio-celeste) 100%);
        color: white;
        height: 60px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }

/* Titolo staff nel header */
.staff-header-title[b-kdvdwvmuga] {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.9;
}

/* Contenuto principale staff */
.staff-main-content[b-kdvdwvmuga] {
    flex-grow: 1;
    margin: 0;
    padding: 0;
    background-color: var(--lazio-gray-light);
    overflow-y: auto;
    height: calc(100vh - 60px); /* AGGIUNTO: Sottrae altezza header */
}

/* Pulsante Home nello staff */
.staff-layout-container .header-chat-btn[b-kdvdwvmuga] {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

    .staff-layout-container .header-chat-btn:hover[b-kdvdwvmuga] {
        background: rgba(255, 255, 255, 0.25);
    }

/* ======================================================= */
/* CORREZIONI ALTEZZA STAFF INTERFACE                     */
/* ======================================================= */

/* Container principale staff tabs */
.staff-tabs[b-kdvdwvmuga] {
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100%; /* AGGIUNTO: Occupa tutto lo spazio disponibile */
}

/* Nascondi vecchia intestazione (se ancora nel HTML) */
.staff-header-wrapper[b-kdvdwvmuga] {
    display: none !important;
}

/* Tab header */
.tab-header[b-kdvdwvmuga] {
    display: flex;
    justify-content: flex-start;
    background-color: #e9eef5;
    padding: 0.5rem;
    border-bottom: 1px solid #ccc;
    gap: 0.5rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

    .tab-header button[b-kdvdwvmuga] {
        background: none;
        border: none;
        padding: 0.5rem 1rem;
        cursor: pointer;
        font-size: 0.95rem;
        font-weight: 600;
        color: #555;
        border-radius: 4px;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

        .tab-header button:hover[b-kdvdwvmuga] {
            background-color: #dce6f1;
        }

        .tab-header button.active[b-kdvdwvmuga] {
            background-color: #0066cc;
            color: white;
        }

/* Contenuto dei tab */
.tab-body[b-kdvdwvmuga] {
    padding: 0.2rem;
    height: calc(100% - 50px); /* AGGIUNTO: Sottrae altezza tab-header */
}

/* Layout contenitore principale */
.filters-grid-container[b-kdvdwvmuga] {
    display: flex;
    height: 100% !important; /* MODIFICATO: Da calc(100vh - 180px) a 100% */
    padding-right: 0 !important;
    margin-right: 0 !important;
}

/* Colonna Griglia */
.grid-column[b-kdvdwvmuga] {
    width: 100%;
    height: 100%; /* AGGIUNTO */
    transition: all 0.3s ease;
}

    .grid-column.inactive[b-kdvdwvmuga] {
        width: 80%;
        opacity: 0.5;
        pointer-events: none;
        background: rgba(255, 255, 255, 0.7);
    }

/* Colonna Filtri */
.filters-column[b-kdvdwvmuga] {
    width: 20%;
    border-left: 1px solid #e2e8f0;
    background: #f8fafc;
    height: 100%; /* AGGIUNTO */
}

/* Versione sovrapposta filtri */
.filters-grid-container .filters-column[b-kdvdwvmuga] {
    position: absolute;
    right: 0;
    width: 20%;
    height: 100%;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 100;
    transition: transform 0.3s ease;
}

/* Messaggio griglia vuota */
.empty-grid-message[b-kdvdwvmuga] {
    padding: 2rem;
    text-align: center;
    color: #64748b;
}
/* /Pages/StaffTabs.razor.rz.scp.css */
/* STAFF LAYOUT SPECIFICO */
.staff-layout-container[b-ypxjsz7jmo] {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
}

    .staff-layout-container .main-header[b-ypxjsz7jmo] {
        background: linear-gradient(135deg, var(--lazio-celeste-dark) 0%, var(--lazio-celeste) 100%);
        color: white;
        height: 60px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }

.staff-header-title[b-ypxjsz7jmo] {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.9;
}

.staff-main-content[b-ypxjsz7jmo] {
    flex-grow: 1;
    margin: 0;
    padding: 0;
    background-color: #ff0000; /* DEBUG: colore rosso */
    overflow-y: auto;
    height: calc(100vh - 60px);
}

.staff-layout-container .header-chat-btn[b-ypxjsz7jmo] {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

    .staff-layout-container .header-chat-btn:hover[b-ypxjsz7jmo] {
        background: rgba(255, 255, 255, 0.25);
    }

/* CORREZIONI ALTEZZA STAFF INTERFACE */
.staff-tabs[b-ypxjsz7jmo] {
    margin-top: 0 !important;
    border-radius: 8px;
    /* RIMUOVI: overflow: hidden; */
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.staff-header-wrapper[b-ypxjsz7jmo] {
    display: none !important;
}

.tab-header[b-ypxjsz7jmo] {
    display: flex;
    justify-content: flex-start;
    background-color: #e9eef5;
    padding: 0.5rem;
    border-bottom: 1px solid #ccc;
    gap: 0.5rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

    .tab-header button[b-ypxjsz7jmo] {
        background: none;
        border: none;
        padding: 0.5rem 1rem;
        cursor: pointer;
        font-size: 0.95rem;
        font-weight: 600;
        color: #555;
        border-radius: 4px;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

        .tab-header button:hover[b-ypxjsz7jmo] {
            background-color: #dce6f1;
        }

        .tab-header button.active[b-ypxjsz7jmo] {
            background-color: #0066cc;
            color: white;
        }

.tab-body[b-ypxjsz7jmo] {
    padding: 0.2rem;
    flex-grow: 1; /* OCCUPA SPAZIO RESIDUO */
    display: flex; /* ATTIVA FLEXBOX */
    flex-direction: column; /* DISPOSIZIONE VERTICALE */
    min-height: 0; /* IMPORTANTE: permette al figlio di ridursi */
}

.filters-grid-container[b-ypxjsz7jmo] {
    display: flex;
    height: 100%; /* Ora 100% di .tab-body che ha altezza definita */
    flex-grow: 1; /* OCCUPA TUTTO LO SPAZIO DISPONIBILE */
    min-height: 0; /* PERMETTE RIDIMENSIONAMENTO */
}

.grid-column[b-ypxjsz7jmo] {
    width: 100%;
    transition: all 0.3s ease;
}

    .grid-column.inactive[b-ypxjsz7jmo] {
        width: 80%;
        opacity: 0.5;
        pointer-events: none;
        background: rgba(255, 255, 255, 0.7);
    }

.filters-column[b-ypxjsz7jmo] {
    width: 20%;
    border-left: 1px solid #e2e8f0;
    background: #f8fafc;
}

.filters-grid-container .filters-column[b-ypxjsz7jmo] {
    position: absolute;
    right: 0;
    width: 20%;
    height: 100%;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 100;
    transition: transform 0.3s ease;
}

.empty-grid-message[b-ypxjsz7jmo] {
    padding: 2rem;
    text-align: center;
    color: #64748b;
}
