

/* Layout principal : calendrier à gauche + contenu à droite */
#calendar-panel-title {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 8px;
}

#calendar-panel {
    /*position: relative;
    left: 0;
    top: 0;*/
    width: 320px;
    /*height: 100vh;*/
    background: linear-gradient(135deg, #f1f1f1 0%, #e6e6e6 100%);
    border-right: none;
    padding: 20px 16px;
    overflow-y: auto;
    z-index: 1050;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

/* Conteneur du calendrier avec fond blanc arrondi */
#fullcalendar-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

/* Styles FullCalendar */
#calendar-panel .fc {
    font-size: 0.8rem;
    font-family: "Segoe UI", sans-serif;
}

#calendar-panel .fc-toolbar-title {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #2c3e50;
}

#calendar-panel .fc-button {
    font-size: 0.75rem;
    padding: 4px 8px;
    background: #a3a3a3 !important;
    border: none !important;
    border-radius: 6px !important;
    transition: all 0.2s ease;
}

#calendar-panel .fc-button:hover {
    background: #8a8a8a !important;
    transform: translateY(-1px);
}

#calendar-panel .fc-button:active {
    transform: translateY(0);
}

#calendar-panel .fc-button-primary:disabled {
    background: #cbd5e0 !important;
    opacity: 0.5;
}

/* Jours de la semaine */
#calendar-panel .fc-col-header-cell {
    padding: 6px 4px;
    font-weight: 700;
    color: #4a5568;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 1px;
    background: #f8f9fa;
    border-bottom: 2px solid #e2e8f0 !important;
    height: 30px;
}

#calendar-panel .fc-col-header-cell .fc-col-header-cell-cushion {
    color: #4a5568;
    text-decoration: none;
    padding: 2px;
}

/* Cellules des jours */
#calendar-panel .fc-daygrid-day {
    transition: background 0.2s ease;
    min-height: 45px !important;
    height: 45px !important;
    position: relative; /* Pour permettre le positionnement absolu de la barre d'activité */
}

#calendar-panel .fc-daygrid-day-frame {
    min-height: 45px !important;
    height: 45px !important;
}

#calendar-panel .fc-daygrid-day-top {
    min-height: 45px !important;
    height: 45px !important;
}

#calendar-panel .fc-scrollgrid-sync-table {
    height: auto !important;
}

#calendar-panel .fc-daygrid-body {
    height: auto !important;
}

#calendar-panel .fc-daygrid-day-events {
    margin-top: 0 !important;
    min-height: 0 !important;
}

#calendar-panel .fc-daygrid-day:hover {
    background: #f8f9ff !important;
    cursor: pointer;
}

#calendar-panel .fc-daygrid-day-number {
    padding: 0;
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.75rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#calendar-panel .fc-daygrid-day-top {
    display: flex;
    align-items: center;
    justify-content: center;
}

#calendar-panel a.fc-daygrid-day-number {
    text-decoration: none !important;
}

/* Jour aujourd'hui */
#calendar-panel .fc-day-today {
    background: #f3f4f6 !important;
}

#calendar-panel .fc-day-today .fc-daygrid-day-number {
    color: #374151;
    font-weight: 600;
}

/* Jour sélectionné */
#calendar-panel .fc-day-selected {
    background: #dbeafe !important;
    border: 2px solid #2563eb !important;
}

#calendar-panel .fc-day-selected .fc-daygrid-day-number {
    color: #1e40af;
    font-weight: 700;
}

/* Jours d'autres mois */
#calendar-panel .fc-day-other .fc-daygrid-day-number {
    color: #cbd5e0;
}

/* Barre d'activité tricolore au bas des jours */
#calendar-panel .activity-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    pointer-events: none;
    border-radius: 0 0 4px 4px;
    z-index: 2;
}

/* Événements */
#calendar-panel .fc-event {
    border: none !important;
    border-radius: 4px;
    padding: 2px 4px;
    font-size: 0.7rem;
    margin-bottom: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
}

#calendar-panel .fc-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Bordures des cellules */
#calendar-panel .fc-scrollgrid {
    border: 1px solid #e2e8f0 !important;
}

#calendar-panel .fc-theme-standard td,
#calendar-panel .fc-theme-standard th {
    border-color: #e2e8f0 !important;
}

#calendar-panel .fc-theme-standard .fc-scrollgrid {
    border: 1px solid #e2e8f0 !important;
}

/* Conteneur principal qui organise les éléments */
#page-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    /*margin-left: 320px;*/
    padding: 20px;
    /*padding-top: 80px;*/
}

/* Barre de navigation semaine */
.week-nav-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-bottom: 8px;
}
.week-nav-bar .btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.week-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

/* En-tête avec les boutons et le nom du conducteur */
.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0; /* Empêche l'en-tête de rétrécir */
}
#DriverInfo-container h2 {
    margin-top: 0;
    border-bottom: none;
    /* La police s'adaptera entre 1.1rem et 1.5rem */
    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.5rem);
}

/* Conteneur principal pour le graphique SVG */
#main {
    flex-grow: 1; /* Fait en sorte que le graphique prenne tout l'espace vertical disponible */
    width: 100%;
    height: auto; /* La hauteur est gérée par flexbox */
}

/* Pied de page pour les infos d'activité et le statut */
.footer-controls {
    display: flex;
    align-items: center;
    padding-top: 15px;
    gap: 20px;
    flex-shrink: 0;
}
.btn-undo-week {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    margin-left: 8px;
    background: #ff8c00;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-undo-week:hover {
    background: #e67e00;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
.activity-info-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
}
.activity-info-container p {
    margin: 0;
}

.fixed-top-right-controls {
    position: relative;
    margin-top: 1rem;
    /*top: 20px;
    right: 20px;*/
    z-index: 1050;
    display: flex; /* Aligne les boutons horizontalement */
    gap: 10px;     /* Ajoute un petit espace entre eux */
}

#graph-loader {
    /* Caché par défaut */
    display: none; 
    
    /* Centrage parfait au milieu du conteneur #main */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    /* Style de l'icône */
    font-size: 48px; /* Taille de l'icône */
    color: #3498db;  /* Une couleur bleue assortie à votre design */
}

/* La sidebar (panneau latéral) */
#info-sidebar {
    position: absolute;
    top: 150px;
    right: 0;
    width: 400px;
    max-width: 90%;
    height: 700px;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1100; /* Au-dessus de tout */
    transform: translateX(100%); /* Cachée par défaut sur la droite */
    transition: transform 0.3s ease-in-out; /* Animation de glissement */
    display: flex;
    flex-direction: column;
}

/* L'état "ouvert" de la sidebar */
#info-sidebar.open {
    transform: translateX(0);
}

/* En-tête de la sidebar */
.activity-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

/* L'accordéon dans la sidebar doit pouvoir défiler si le contenu est trop grand */
#info-sidebar .accordion {
    overflow-y: auto;
    padding: 20px;
}

.fab-container {
    display: none;
}
.modal {
    z-index:2000;
}
#trucks .card, #infractions .card, #events .card, #faults .card, #modifications .card{
    padding : 10px;
    margin : 5px;
}
#modifications .modification-card .mod-detail {
    font-size: 0.85rem;
    padding: 2px 0;
}
#modifications .modification-card .mod-label {
    font-weight: 600;
}
#modifications .modification-card .mod-before {
    color: #dc3545;
}
#modifications .modification-card .mod-after {
    color: #28a745;
}
#advanced-options .card {

    background-color: #f8f9fa !important; /* Force un fond gris clair */
}

/* --- Mode édition de segment --- */
rect.act-segment.editing {
    stroke: #FFD700;
    stroke-width: 2.5px;
}
rect.act-segment.dimmed {
    opacity: 0.35;
    pointer-events: none;
}

/* --- Segments modifiés --- */
rect.act-segment.modified {
    stroke: #2ECC71;
    stroke-width: 2px;
}
.drag-handle {
    pointer-events: all;
}
.drag-handle:hover .handle-visual {
    fill: #FFC107;
    stroke: #FF8F00;
}
.drag-handle:active .handle-visual {
    fill: #FF8F00;
}
#edit-mode-buttons {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    vertical-align: middle;
    margin-left: 12px;
}
#edit-mode-buttons .btn {
    font-size: 0.85rem;
    padding: 4px 12px;
}
#edit-activity-types {
    display: inline-flex;
    gap: 4px;
}
.btn-activity-type {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border: 2px solid transparent;
    border-radius: 4px;
    background: #f0f0f0;
    font-size: 0.8rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.btn-activity-type:hover {
    background: #e0e0e0;
}
.btn-activity-type.active {
    border-color: var(--act-color);
    background: #fff;
    font-weight: 600;
}
.act-color-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.edit-separator {
    display: inline-block;
    width: 1px;
    height: 24px;
    background: #ccc;
    margin: 0 4px;
}

/* --- Responsive FAB pour les mobiles (Version simplifiée) --- */
@media screen and (max-width: 768px) {

    /* On autorise le défilement sur mobile si besoin */
    html, body {
        overflow: auto;
    }

    /* On cache le panneau calendrier sur mobile */
    #calendar-panel {
        display: none;
    }

    /* On récupère l'espace qui était réservé */
    #page-content {
        margin-left: 0;
        padding-top: 15px;
    }

    /* On cache les boutons de la version PC */
    .fixed-top-right-controls {
        display: none;
    }

    /* On affiche et positionne le conteneur du FAB */
    .fab-container {
        display: flex;
        flex-direction: column; /* On empile les boutons */
        gap: 15px; /* Espace entre les boutons */
        position: relative;
        bottom: 100px;
        right: 20px;
        z-index: 1100;
    }

    /* Style des boutons d'action (Rapport et Infos) */
    .fab-action {
        background-color: #f8f9fa;
        color: #333;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: none;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        font-size: 1.2rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Groupe FAB rapports avec sous-menu */
    .fab-report-group {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .fab-report-submenu {
        display: none;
        flex-direction: column;
        gap: 10px;
    }

    .fab-report-submenu.open {
        display: flex;
    }
    



    .footer-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .activity-info-container{
        font-size: 0.9rem;
    }

}

/* --- Popup d'édition d'activité --- */
.activity-edit-popup {
    position: fixed;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 15px 20px;
    z-index: 2000;
    min-width: 300px;
    max-width: 500px;
    animation: popupFadeIn 0.2s ease-out;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.activity-edit-popup::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 8px solid transparent;
}

/* Flèche vers la gauche */
.activity-edit-popup.arrow-left::before {
    left: -16px;
    top: 20px;
    border-right-color: white;
}

/* Flèche vers la droite */
.activity-edit-popup.arrow-right::before {
    right: -16px;
    top: 20px;
    border-left-color: white;
}

/* Flèche vers le haut */
.activity-edit-popup.arrow-top::before {
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-color: white;
}

/* Flèche vers le bas */
.activity-edit-popup.arrow-bottom::before {
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: white;
}

.activity-edit-popup .popup-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    line-height: 1;
}

.activity-edit-popup .popup-close:hover {
    color: #333;
}

.activity-edit-popup .info {
    display: block;
    margin-bottom: 15px;
    padding-right: 20px;
    line-height: 1.5;
    color: #333;
}

.activity-edit-popup #edit-mode-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.activity-edit-popup #edit-activity-types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.activity-edit-popup .btn-activity-type {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
}

.activity-edit-popup .btn-activity-type:hover {
    border-color: var(--act-color);
    background: rgba(0, 0, 0, 0.02);
}

.activity-edit-popup .btn-activity-type.active {
    border-color: var(--act-color);
    background: var(--act-color);
    color: white;
}

.activity-edit-popup .btn-activity-type .act-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.activity-edit-popup .btn-activity-type.active .act-color-dot {
    background: white !important;
}

.activity-edit-popup .edit-separator {
    height: 1px;
    background: #e0e0e0;
    margin: 4px 0;
}

.activity-edit-popup .edit-action-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.activity-edit-popup .btn {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.activity-edit-popup .btn-success {
    background: #28a745;
    color: white;
}

.activity-edit-popup .btn-success:hover {
    background: #218838;
}

.activity-edit-popup .btn-outline-secondary {
    background: white;
    color: #6c757d;
    border: 1px solid #6c757d;
}

.activity-edit-popup .btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
}

@media screen and (max-width: 768px) {
    .activity-edit-popup {
        min-width: 280px;
        max-width: calc(100vw - 40px);
        padding: 12px 15px;
    }

    .activity-edit-popup .info {
        font-size: 0.9rem;
    }

    .activity-edit-popup #edit-activity-types {
        flex-direction: column;
    }

    .activity-edit-popup .btn-activity-type {
        width: 100%;
        justify-content: flex-start;
    }
}

/* --- Indicateur de statut de sauvegarde --- */
.save-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-left: auto;
}

.save-status .status-icon {
    font-size: 1rem;
}

.save-status.pending {
    background-color: #FFF3CD;
    color: #856404;
    border: 1px solid #FFE69C;
}

/* Progress ring pour l'état pending */
.progress-ring {
    flex-shrink: 0;
}

.progress-ring-bg {
    fill: none;
    stroke: #e0d5b0;
    stroke-width: 2;
}

.progress-ring-fill {
    fill: none;
    stroke: #856404;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 44; /* 2 * PI * 7 */
    stroke-dashoffset: 44;
    transform: rotate(-90deg);
    transform-origin: center;
    animation: progress-fill linear forwards;
}

@keyframes progress-fill {
    to {
        stroke-dashoffset: 0;
    }
}

.save-status.saving {
    background-color: #D1ECF1;
    color: #0C5460;
    border: 1px solid #BEE5EB;
    animation: pulse-saving 1.5s ease-in-out infinite;
}

.save-status.saved {
    background-color: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.save-status.error {
    background-color: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

.save-status.recovered {
    background-color: #546E7A;
    color: white;
    border: 1px solid #455A64;
    animation: slide-in 0.3s ease-out;
}

@keyframes pulse-saving {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes slide-in {
    from {
        transform: translateX(20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Couleurs par type d'événement calendrier */
.fc-event.cal-type-conge { background-color: #2196F3 !important; border-color: #1976D2 !important; }
.fc-event.cal-type-repos_compensateur { background-color: #4CAF50 !important; border-color: #388E3C !important; }
.fc-event.cal-type-maladie { background-color: #FF9800 !important; border-color: #F57C00 !important; }
.fc-event.cal-type-formation { background-color: #9C27B0 !important; border-color: #7B1FA2 !important; }
.fc-event.cal-type-accident { background-color: #F44336 !important; border-color: #D32F2F !important; }
.fc-event.cal-type-autre { background-color: #607D8B !important; border-color: #455A64 !important; }

/* Zone d'alerte des conflits calendrier */
.calendar-conflicts-alert {
    margin-top: 16px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.calendar-conflicts-alert .alert-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #856404;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.calendar-conflicts-alert .alert-header i {
    color: #ffc107;
}

.calendar-conflicts-alert .conflicts-list {
    max-height: 150px;
    overflow-y: auto;
    overflow-x: hidden;
}

.conflict-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3px;
    padding: 6px 8px;
    background: white;
    border-radius: 4px;
    margin-bottom: 6px;
    font-size: 0.8rem;
    border-left: 3px solid #ffc107;
}

.conflict-item.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.conflict-item.clickable:hover {
    background: #f8f9fa;
    border-left-color: #ff9800;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.conflict-item:last-child {
    margin-bottom: 0;
}

.conflict-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.conflict-date {
    font-weight: 600;
    color: #495057;
    font-size: 0.75rem;
    white-space: nowrap;
}

.conflict-time {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #dc3545;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    margin-left: auto;
}

.conflict-time i {
    font-size: 0.8rem;
}

.conflict-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Modale de confirmation personnalisée */
.confirm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.15s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.confirm-modal-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 28px 28px 20px;
    min-width: 300px;
    max-width: 380px;
    text-align: center;
    animation: slideUp 0.2s ease;
}

@keyframes slideUp {
    from { transform: translateY(16px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.confirm-modal-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    color: #d32f2f;
}

.confirm-modal-icon.info {
    color: #1976d2;
}

.confirm-modal-title {
    font-size: 1rem;
    font-weight: 700;
    color: #212121;
    margin-bottom: 8px;
}

.confirm-modal-message {
    font-size: 0.875rem;
    color: #555;
    margin-bottom: 24px;
    line-height: 1.5;
}

.confirm-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.confirm-modal-btn {
    padding: 8px 22px;
    border-radius: 6px;
    border: none;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.15s ease;
}

.confirm-modal-btn:hover {
    filter: brightness(0.92);
}

.confirm-modal-btn.cancel {
    background: #f0f0f0;
    color: #333;
}

.confirm-modal-btn.confirm {
    background: #d32f2f;
    color: white;
}

.confirm-modal-btn.confirm.info {
    background: #1976d2;
}

/* ---- Champ valorisation : transition glissement ---- */
#cal-event-valorisation-group {
    overflow: hidden;
    max-height: 80px;
    opacity: 1;
    transition: max-height 250ms ease, opacity 200ms ease;
}

#cal-event-valorisation-group.hidden {
    max-height: 0;
    opacity: 0;
}

/* ---- ActivityInfo masqué (remplacé par Tippy) ---- */
.activity-info-container {
    display: none !important;
}

/* ---- Tippy tooltip activité ---- */
.tippy-box[data-theme~='act-tooltip'] {
    background: #fff;
    color: #333;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10), 0 1px 4px rgba(0, 0, 0, 0.06);
    padding: 0;
    overflow: hidden;
    min-width: 170px;
    font-family: inherit;
    font-size: 0.82rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.tippy-box[data-theme~='act-tooltip'] > .tippy-arrow::before {
    color: #fff;
}

.act-tooltip-header {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px 7px;
    border-bottom: 1px solid #f0f0f0;
}

.act-tooltip-header .fa {
    font-size: 0.85rem;
}

.act-tooltip-type {
    font-weight: 600;
    font-size: 0.83rem;
    letter-spacing: 0.01em;
}

.act-tooltip-d8 {
    margin-left: auto;
    font-size: 0.68rem;
    font-weight: 600;
    background: #f0f0f0;
    color: #666;
    border-radius: 3px;
    padding: 1px 5px;
    letter-spacing: 0.06em;
}

.act-tooltip-body {
    padding: 8px 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.act-tooltip-time {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.act-tooltip-hours {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111;
    letter-spacing: 0.01em;
}

.act-tooltip-duration {
    font-size: 0.88rem;
    font-weight: 700;
    color: #111;
    margin-left: auto;
}

.act-tooltip-vehicle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #777;
    margin-top: 1px;
}

.act-tooltip-vehicle .fa {
    font-size: 0.75rem;
    color: #aaa;
    width: 13px;
    text-align: center;
}

/* Menu contextuel calendrier */
.calendar-context-menu {
    position: fixed;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    min-width: 240px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.context-menu-header {
    padding: 12px 14px;
    background: #fafafa;
    color: #333333;
    font-weight: 600;
    font-size: 0.85rem;
    border-bottom: 1px solid #e0e0e0;
}

.context-menu-item {
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #333333;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s ease;
}

.context-menu-item:last-child {
    border-bottom: none;
}

.context-menu-item:hover {
    background: #f8f9fa;
}

.context-menu-item i {
    width: 16px;
    text-align: center;
    font-size: 0.9rem;
}

.context-menu-item.add i,
.context-menu-item.edit i {
    color: #1976d2;
}

.context-menu-item.delete-day i,
.context-menu-item.delete-all i {
    color: #d32f2f;
}

.context-menu-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 4px 0;
}


.act-tooltip-manuel {
    margin-left: auto;
    font-size: 0.68rem;
    font-weight: 600;
    background: #fff3cd;
    color: #8a6d00;
    border-radius: 3px;
    padding: 1px 5px;
    letter-spacing: 0.02em;
}