/* Stili comuni admin e frontend */
.shift-manager {
    font-family: Arial, sans-serif;
    margin: 20px 0;
}

.settimana-container {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 15px;
    background-color: #f9f9f9;
}

.settimana-title {
    margin-top: 0;
    color: #2271b1;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
}

.settimana-spacer {
    height: 30px;
}

.agenda-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 14px;
}

.agenda-table th, .agenda-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.agenda-table th {
    background-color: #2271b1;
    color: white;
    padding: 10px;
}

.agenda-table th.nome-header, 
.agenda-table th.ore-header,
.agenda-table th.note-header {
    background-color: #135e96;
}

.agenda-table td.nome-dipendente {
    font-weight: bold;
    color: #333;
}

.agenda-table td.ore-settimanali {
    font-weight: bold;
}

.agenda-table td.note {
    text-align: left;
    font-size: 13px;
}

.agenda-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.agenda-table tr:hover {
    background-color: #f1f1f1;
}

/* Stili specifici per i giorni */
.agenda-table td.sun {
    background-color: #fff0f0;
}

.agenda-table td.sat {
    background-color: #f0f0ff;
}

/* Stili per i tipi di turno */
.agenda-table td.riposo {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
}

.agenda-table td.ferie {
    background-color: #FFC107;
    color: #333;
    font-weight: bold;
}

.agenda-table td.chiuso {
    background-color: #F44336;
    color: white;
    font-weight: bold;
}

.legenda {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.legenda ul {
    margin: 5px 0;
    padding-left: 20px;
    list-style-type: none;
}

.legenda li {
    margin-bottom: 5px;
}

.legenda .riposo,
.legenda .ferie,
.legenda .chiuso {
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: bold;
}

.legenda .riposo {
    background-color: #4CAF50;
    color: white;
}

.legenda .ferie {
    background-color: #FFC107;
    color: #333;
}

.legenda .chiuso {
    background-color: #F44336;
    color: white;
}

/* Stili form */
.shift-container .form-group {
    margin-bottom: 15px;
}

.shift-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.shift-container input[type="text"],
.shift-container input[type="number"],
.shift-container select,
.shift-container textarea {
    width: 100%;
    max-width: 400px;
    padding: 8px;
}

.shift-container input[type="color"] {
    width: 50px;
    height: 30px;
    padding: 2px;
}

/* Stili tabelle liste */
.wp-list-table.widefat {
    margin-top: 20px;
}

.wp-list-table.widefat th {
    padding: 10px;
}

.wp-list-table.widefat td {
    padding: 8px 10px;
    vertical-align: middle;
}
.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 20px;
    border-radius: 5px;
    z-index: 9999;
}
/* Responsive */
@media screen and (max-width: 782px) {
    .agenda-table {
        font-size: 12px;
    }
    
    .agenda-table th, 
    .agenda-table td {
        padding: 4px;
    }
}