
/* 1. ALIGNMENT: Turn the TH into a flex container */
.disponibilites_table-th {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: opacity 0.2s ease;
}

.disponibilites_table-th:hover {
    opacity: 0.8;
}

/* 2. HIDE THE SELECT: We control it via JS, so hide the element itself */
.disponibilites_table-th select {
    display: none;
}

/* 3. ICON STYLING */
.disponibilites_table-th .sort-icon {
    font-size: 12px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0; /* Faded out when not active */
}

/* Active State: Full Opacity */
.disponibilites_table-th.sort-active .sort-icon {
    opacity: 1;
    color: var(--primary); /* Optional: Change color when active */
}

/* ASC State: Rotate arrow to point UP (assuming icon is naturally down) */
.disponibilites_table-th.sort-asc .sort-icon {
    transform: rotate(180deg);
}

/* DESC State: Point DOWN (Default icon orientation) */
.disponibilites_table-th.sort-desc .sort-icon {
    transform: rotate(0deg);
}