/* ========================================
   ONGLET DATES UTILES - VISITES ENTREPRISE
   ======================================== */

/* Section des visites */
.visits-section-modern {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e3e6f0;
    overflow: hidden;
}

.visits-header-modern {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f8f9fc 0%, #f0f2f5 100%);
    border-bottom: 2px solid #e3e6f0;
}

.visits-header-modern h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.visits-list-modern {
    padding: 1rem;
    max-height: 600px;
    overflow-y: auto;
}

/* Carte de visite */
.visit-card-modern {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e3e6f0;
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.visit-card-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #d1d3e2;
}

.visit-card-modern:last-child {
    margin-bottom: 0;
}

/* Badge de date */
.visit-date-modern {
    flex-shrink: 0;
}

.date-badge-modern {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.date-badge-modern.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.date-badge-modern.bg-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.day-modern {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.month-modern {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.9;
    margin-top: 2px;
}

/* Contenu de la visite */
.visit-content-modern h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.visit-meta-modern {
    font-size: 0.875rem;
    color: #6c757d;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.visit-meta-modern i {
    font-size: 0.8rem;
}

.visit-observation-modern {
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
    padding: 0.5rem;
    background: #f8f9fc;
    border-left: 3px solid #4e73df;
    border-radius: 4px;
}

/* Actions de visite */
.visit-actions-modern {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
}

.status-badge-visit {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.status-badge-visit.status-planned {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.status-badge-visit.status-completed {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

/* Empty state */
.empty-state-small-modern {
    text-align: center;
    padding: 3rem 1rem;
    color: #8d9498;
}

.empty-state-small-modern i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state-small-modern p {
    font-size: 0.95rem;
    margin: 0;
}

/* Scroll personnalisé pour la liste */
.visits-list-modern::-webkit-scrollbar {
    width: 6px;
}

.visits-list-modern::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.visits-list-modern::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.visits-list-modern::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive */
@media (max-width: 991px) {
    .visit-card-modern {
        flex-direction: column;
        gap: 0.75rem;
    }

    .visit-actions-modern {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .date-badge-modern {
        width: 55px;
        height: 55px;
    }

    .day-modern {
        font-size: 1.25rem;
    }

    .visits-list-modern {
        max-height: 500px;
    }
}

@media (max-width: 767px) {
    .section-header-modern {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch !important;
    }

    .section-header-modern > div {
        width: 100%;
    }

    .section-header-modern .d-flex {
        justify-content: space-between;
    }

    .visit-meta-modern {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* Animation d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.visit-card-modern {
    animation: fadeInUp 0.3s ease-out;
}

/* Indicateur de ligne de temps */
.visit-card-modern::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 3px 0 0 3px;
}

.visit-card-modern.border-primary::before {
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
}

.visit-card-modern.border-success::before {
    background: linear-gradient(180deg, #11998e 0%, #38ef7d 100%);
}
