.header-menu {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }
    
.header-menu h2 {
    margin: 0; font-size: 18px; font-weight: 700; color: #1e293b;
    } 

.header-menu p {
    margin: 5px 0 0 0; font-size: 12px; color: #64748b;
    }
    
.header-menu label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    tracking: 0.5px;
    white-space: nowrap;
    }
    
.header-menu input {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    outline: none; min-width: 250px;
    }
.exclamation {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0 25px 0;
    padding: 1px 16px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    color: #64748b;
    }  

/* Tabella responsiva */
.cfd-table-responsive {
    width: 100%;
    overflow-x: auto; /* Attiva lo scorrimento orizzontale se necessario su schermi piccolissimi */
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}
.cfd-data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}
.cfd-data-table th {
    background-size: 2px 2px;
    background-image: repeating-linear-gradient(0deg, #05056c, #05056c 1px, #2b3990 1px, #2b3990);
    color: #ffffff;
    padding: 12px 15px;
    font-weight: 600;
}
.cfd-data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

/* Effetto zebrato per elenchi lunghi */
.cfd-data-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}
.cfd-data-table tbody tr:hover {
    background-color: #f1f5f9;
}
.stazione-name small {
    color: #64748b;
    display: block;
    font-weight: normal;
    margin-top: 2px;
}

/* Bottoni compatti per la tabella */
.btn-table {
    display: inline-block;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.btn-tmax, .btn-tmax:visited { background-color: #fff1f2; color: #e11d48; border-color: #ffe4e6; }
.btn-tmax:hover { background-color: #e11d48; color: #ffffff; }

.btn-tmin, .btn-tmin:visited { background-color: #eff6ff; color: #2563eb; border-color: #dbeafe; }
.btn-tmin:hover { background-color: #2563eb; color: #ffffff; }

.btn-rain, .btn-rain:visited { background-color: #c6f4ff; color: #007a99; border-color: #00a1c9; }
.btn-rain:hover { background-color: #007a99; color: #fff; }

.btn-muto {
    background-color: #f1f5f9;
    color: #94a3b8;
    pointer-events: none;
    cursor: default;
}

/* TRASFORMAZIONE MOBILE PER SMARTPHONE */
@media (max-width: 600px) {
    /* Nascondiamo l'intestazione classica della tabella */
    .cfd-data-table create, .cfd-data-table thead { display: none; }
    .cfd-data-table tr { 
        display: block; 
        border-bottom: 3px solid #cbd5e1; 
        padding: 15px 5px;
    }
    .cfd-data-table td { 
        display: flex; 
        justify-content: space-between; 
        align-items: center;
        border-bottom: 1px solid #f1f5f9;
        padding: 8px 10px;
        text-align: right;
    }
    .cfd-data-table td::before {
        content: attr(data-label); /* Genera un'etichetta descrittiva a sinistra */
        font-weight: bold;
        color: #05056c;
        float: left;
    }
    .stazione-name { 
        background-color: #f1f5f9; 
        justify-content: center !important; 
        text-align: center;
    }
    .btn-table { width: 50%; text-align: center; } /* Allarga i bottoni sul telefono per facilitare il click */
}