/* ========================================
   COMPOSANT GLOBAL DE FILTRAGE
======================================== */

.date-filter {
    position: relative;
    z-index: 100;
    overflow: visible;

    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;

    padding: 10px 14px;
    margin: 0 0 12px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.date-filter .form-label {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 3px;
}

.date-filter .form-control,
.date-filter .form-select,
.date-filter .btn {
    height: 36px !important;
    min-height: 36px !important;
    font-size: 13px !important;
}

.date-filter-month-year {
    display: flex;
    gap: 6px;
}

.date-filter-month {
    flex: 1.5;
    min-width: 0;
}

.date-filter-year {
    flex: 1;
    min-width: 0;
}

.date-filter-dropdown {
    width: 280px;
    max-width: calc(100vw - 30px);
    z-index: 1050;
}

.date-filter-month-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.date-filter-month-option {
    padding: 9px 6px;
    border: 0;
    border-radius: 5px;
    background: #f5f7f8;
    font-size: 12px;
    cursor: pointer;
}

.date-filter-month-option:hover {
    background: #e1eeee;
}

.date-filter-month-option.active {
    background: #104a4f;
    color: #fff;
}

.date-filter .btn-primary {
    background: #104a4f;
    border-color: #104a4f;
}

@media (max-width: 767px) {
    .date-filter {
        padding: 8px 10px;
    }
}