﻿/* ========================= */
/* Grand DateSelector (par défaut) */
/* ========================= */
.date-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 12px 20px;
    background: white;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: bold;
    height: 70px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* ========================= */
/* Petit DateSelector - LightDateSelector */
/* ========================= */
.light-date-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    min-width: auto;
}

/* Boutons de navigation */
.btn-arrow {
    font-size: 1rem;
    font-weight: bold;
    padding: 6px 10px;
}

.light-date-selector .btn-arrow {
    font-size: 0.8rem;
    padding: 4px 8px;
}

/* Conteneur du sélecteur de date */
.date-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s ease-in-out;
    min-width: 400px;
}

.light-date-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    transition: background 0.2s ease-in-out;
    min-width: auto;
}

    /* Ajout d'un effet hover */
    .date-wrapper:hover,
    .light-date-wrapper:hover {
        background: rgba(0, 0, 0, 0.1);
    }

/* Icône calendrier */
.calendar-icon {
    font-size: 1.6rem;
    color: var(--primary-color);
}

.light-calendar-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* InputDate stylisé */
.date-input {
    font-size: 1.5rem !important;
    font-weight: bold !important;
    text-align: center !important;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    color: var(--primary-color) !important;
}

.light-date-input {
    font-size: 1rem !important;
    font-weight: bold !important;
    text-align: center !important;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    color: var(--primary-color) !important;
    width: fit-content !important;
}

    .date-input input,
    .light-date-input input {
        background: transparent !important;
        outline: none !important;
        text-align: center !important;
    }

    /* Placeholder du InputDate */
    .date-input::placeholder,
    .light-date-input::placeholder {
        color: var(--primary-color);
    }

    .date-input .e-input-group-icon.e-date-icon,
    .light-date-input .e-input-group-icon.e-date-icon {
        background: transparent !important;
        cursor: pointer !important;
    }

        .date-input .e-input-group-icon.e-date-icon:hover,
        .light-date-input .e-input-group-icon.e-date-icon:hover {
            background: transparent !important;
        }

    /* Icône calendrier du InputDate */
    .date-input .e-input-group .e-input-group-icon:last-child,
    .date-input .e-input-group.e-control-wrapper .e-input-group-icon:last-child,
    .light-date-input .e-input-group .e-input-group-icon:last-child,
    .light-date-input .e-input-group.e-control-wrapper .e-input-group-icon:last-child {
        font-size: 1.5rem;
        background: transparent;
        margin-top: 5px;
    }

    .light-date-input .e-input-group .e-input-group-icon:last-child,
    .light-date-input .e-input-group.e-control-wrapper .e-input-group-icon:last-child {
        font-size: 1rem;
        margin-top: 2px;
    }

/* Texte "Aujourd’hui" */
.date-today {
    font-size: 1rem;
    font-weight: normal;
    color: #CFA551;
}

.light-date-today {
    font-size: 0.8rem;
    font-weight: normal;
    color: #CFA551;
}

/* WeekSelector (même layout que DateSelector, sans SfDatePicker) */
.week-input {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.35rem 0.9rem;
    min-height: 46px;
    border: 1px solid rgba(var(--primary-color-rgb), 0.25);
    border-radius: 12px;
    background: white;
    color: var(--primary-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.week-input-title {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.55);
    line-height: 1.1;
}

.week-input-value {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
}

.week-input-native {
    border: 0;
    outline: none;
    background: transparent;
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 0;
}

.week-input-native::-webkit-calendar-picker-indicator {
    cursor: pointer;
}

.btn-week-reset {
    height: 36px;
    border-radius: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.week-wrapper {
    flex: 0 0 auto;
    min-width: unset;
}

.week-current-indicator {
    font-size: 0.9rem;
    line-height: 1;
    color: #CFA551;
    margin-left: 0.35rem;
    align-self: center;
}

.week-reset-label {
    font-size: 0.82rem;
}
