/* === Gestion des Visites - Frontend Styles === */

/* Calendrier Frontend */
.gv-calendar-wrapper {
    max-width: 100%;
    margin: 20px 0;
}

.gv-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.gv-calendar-header h2 {
    margin: 0;
    font-size: 24px;
}

.gv-prev-month,
.gv-next-month {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 3px;
}

.gv-prev-month:hover,
.gv-next-month:hover {
    background: #005a87;
}

.gv-calendar {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.gv-calendar th {
    background: #f7f7f7;
    padding: 10px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #ddd;
}

.gv-calendar td {
    border: 1px solid #ddd;
    padding: 8px;
    min-height: 80px;
    vertical-align: top;
}

.gv-calendar td.weekend {
    background: #fafafa;
}

.gv-calendar td.ferie {
    background: #fff3cd;
}

.gv-calendar td.today {
    background: #e7f3ff;
    border: 2px solid #0073aa;
}

.gv-calendar td.other-month {
    opacity: 0.5;
}

.gv-calendar .day-number {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.gv-calendar .visite-item {
    background: #0073aa;
    color: #fff;
    padding: 4px 8px;
    margin: 2px 0;
    border-radius: 3px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Visites à venir */
.gv-upcoming-visits {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.gv-upcoming-visits h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
}

.gv-visits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gv-visit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: #f9f9f9;
    border-left: 4px solid #0073aa;
    border-radius: 3px;
}

.visit-date {
    font-weight: 600;
    color: #555;
}

.visit-site {
    flex: 1;
    margin: 0 15px;
}

.visit-status {
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.visit-status.status-planifiée {
    background: #e7f3ff;
    color: #0073aa;
}

.visit-status.status-confirmée {
    background: #d4edda;
    color: #155724;
}

.visit-status.status-terminée {
    background: #d1ecf1;
    color: #0c5460;
}

/* Liste des sites */
.gv-sites-list {
    background: #fff;
    padding: 20px;
}

.gv-sites-table {
    width: 100%;
    border-collapse: collapse;
}

.gv-sites-table th,
.gv-sites-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.gv-sites-table th {
    background: #f7f7f7;
    font-weight: 600;
}

.gv-sites-table .priority-faible {
    color: #999;
}

.gv-sites-table .priority-moyenne {
    color: #0073aa;
}

.gv-sites-table .priority-haute {
    color: #ff8c00;
    font-weight: 600;
}

.gv-sites-table .priority-critique {
    color: #dc3232;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .gv-calendar-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .gv-calendar td {
        min-height: 60px;
        font-size: 12px;
    }
    
    .gv-visit-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .gv-sites-table {
        font-size: 14px;
    }
    
    .gv-sites-table th,
    .gv-sites-table td {
        padding: 8px;
    }
}
