/* DayHosting Design System & Modern UI for Admin Site v2 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --dh-bg: #0b0f19;
    --dh-card: #1e293b;
    --dh-card-border: #334155;
    --dh-primary: #1D4ED8;
    --dh-primary-hover: #1e40af;
    --dh-accent: #38bdf8;
    --dh-emerald: #10b981;
    --dh-amber: #f59e0b;
    --dh-rose: #f43f5e;
    --dh-text: #f8fafc;
    --dh-muted: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--dh-bg);
    color: var(--dh-text);
    min-height: 100vh;
    display: flex;
    /* overflow-x controlled per-section to allow table scrolling */
}

/* Sidebar Styling */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 260px;
    background: #0f172a;
    border-right: 1px solid var(--dh-card-border);
    padding: 1rem;
    z-index: 99;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sidebar .logo-details {
    height: 60px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--dh-card-border);
    margin-bottom: 1rem;
}

.sidebar .logo-details img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.sidebar .logo-details .logo_name {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.sidebar .nav-list {
    list-style: none;
    flex: 1;
    overflow-y: auto;
    space-y: 6px;
}

.sidebar .nav-list li {
    margin-bottom: 6px;
}

.sidebar .nav-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--dh-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.sidebar .nav-list li a:hover,
.sidebar .nav-list li a.active {
    background: linear-gradient(135deg, #1D4ED8 0%, #0284c7 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px 0 rgba(29, 78, 216, 0.39);
}

.sidebar .nav-list li a i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.sidebar .profile {
    padding-top: 1rem;
    border-top: 1px solid var(--dh-card-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar .profile-details {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar .profile-details img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--dh-accent);
}

.sidebar .profile-details .name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}

/* Home Section Layout */
.home-section {
    position: relative;
    margin-left: 260px;
    width: calc(100% - 260px);
    min-height: 100vh;
    padding: 2rem;
    transition: all 0.3s ease;
    overflow-x: auto; /* Allow inner table horizontal scroll */
    box-sizing: border-box;
}

/* Glassmorphism Cards */
.dh-card, .card {
    background: rgba(30, 41, 59, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(51, 65, 85, 0.7);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.dh-card:hover {
    border-color: rgba(56, 189, 248, 0.4);
}

/* Page Headers */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--dh-card-border);
}

.card-title, h1, h2, h3 {
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.card-subtitle, p {
    color: var(--dh-muted);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Hauteur commune à tous les contrôles (boutons, champs, listes déroulantes)
   pour que les barres d'outils soient alignées sur toutes les pages. */
:root {
    --dh-control-height: 44px;
}

/* Universal Buttons Design System */
.dh-button, .btn-primary, button[type="submit"] {
    background: linear-gradient(135deg, #1D4ED8 0%, #0284c7 100%);
    color: white;
    font-weight: 600;
    padding: 0 1.25rem;
    min-height: var(--dh-control-height);
    line-height: 1.2;
    box-sizing: border-box;
    border-radius: 0.6rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    box-shadow: 0 4px 14px 0 rgba(29, 78, 216, 0.35);
    text-decoration: none;
    white-space: nowrap;
}

/* Boutons compacts explicitement dimensionnés dans les tableaux (padding inline) */
.dh-button[style*="padding"], .dh-button.dh-button-sm {
    min-height: 0;
}
.dh-button.dh-button-sm {
    padding: 0.3rem 0.75rem;
    font-size: 0.78rem;
}

.dh-button:hover, .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px 0 rgba(29, 78, 216, 0.5);
    filter: brightness(1.1);
}

.dh-button-secondary {
    background: rgba(51, 65, 85, 0.6) !important;
    color: #f8fafc !important;
    border: 1px solid var(--dh-card-border) !important;
    box-shadow: none !important;
}

.dh-button-secondary:hover {
    background: rgba(71, 85, 105, 0.8) !important;
}

.dh-button-danger {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%) !important;
    box-shadow: 0 4px 14px 0 rgba(225, 29, 72, 0.35) !important;
    color: white !important;
}

.dh-button-emerald {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.35) !important;
    color: white !important;
}

.dh-button-amber {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%) !important;
    box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.35) !important;
    color: white !important;
}

/* Toast Notifications System */
#dh-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 380px;
    width: 100%;
}

.dh-toast {
    pointer-events: auto;
    background: #1e293b;
    border: 1px solid var(--dh-card-border);
    border-radius: 0.75rem;
    padding: 0.85rem 1.1rem;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dh-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.dh-toast-success {
    border-left: 4px solid var(--dh-emerald);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(30, 41, 59, 0.95) 100%);
}

.dh-toast-error, .dh-toast-danger {
    border-left: 4px solid var(--dh-rose);
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.12) 0%, rgba(30, 41, 59, 0.95) 100%);
}

.dh-toast-warning {
    border-left: 4px solid var(--dh-amber);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(30, 41, 59, 0.95) 100%);
}

.dh-toast-info {
    border-left: 4px solid var(--dh-accent);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, rgba(30, 41, 59, 0.95) 100%);
}

/* Universal Confirmation Modal */
#dh-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
}
#dh-confirm-modal.open {
    display: flex;
}

/* Tables */
table, .table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.875rem;
}

.dh-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    display: block;
}

.table-nowrap {
    width: max-content !important;
    min-width: 100% !important;
}

/* Universal Custom Dark Scrollbar for all scrollable elements & sidebar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.4) rgba(15, 23, 42, 0.7);
}

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.7);
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.35);
    border-radius: 9999px;
    border: 1px solid rgba(15, 23, 42, 0.5);
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.75);
}

::-webkit-scrollbar-corner {
    background: rgba(15, 23, 42, 0.9);
}

/* Sidebar Specific Scrollbar */
.sidebar .nav-list::-webkit-scrollbar {
    width: 5px;
}
.sidebar .nav-list::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.3);
}
.sidebar .nav-list::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.65);
}

/* Table Horizontal Scrollbar Styling */
.dh-table-wrap::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar,
div[style*="overflow-x: auto"]::-webkit-scrollbar {
    height: 8px;
}
.dh-table-wrap::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb,
div[style*="overflow-x: auto"]::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #1d4ed8 0%, #38bdf8 100%);
    border-radius: 9999px;
}

/* The wrapper owns the scrollbar; wide data tables keep their columns intact. */
.dh-table-wrap,
.table-responsive {
    overflow-x: auto !important;
    overflow-y: hidden;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.dh-table-wrap > .table-nowrap {
    min-width: 1550px !important;
    table-layout: auto;
}

.table-nowrap th,
.table-nowrap td,
.table-nowrap span,
.table-nowrap div,
.table-nowrap a,
.table-nowrap label,
.dh-nowrap {
    white-space: nowrap !important;
    vertical-align: middle !important;
}

/* Table horizontal scrollbar styling */
.dh-table-wrap::-webkit-scrollbar,
div[style*="overflow-x: auto"]::-webkit-scrollbar {
    height: 8px;
}
.dh-table-wrap::-webkit-scrollbar-track,
div[style*="overflow-x: auto"]::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 4px;
}
.dh-table-wrap::-webkit-scrollbar-thumb,
div[style*="overflow-x: auto"]::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.4);
    border-radius: 4px;
}
.dh-table-wrap::-webkit-scrollbar-thumb:hover,
div[style*="overflow-x: auto"]::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.7);
}

th {
    background: rgba(15, 23, 42, 0.8);
    color: var(--dh-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--dh-card-border);
}

td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid rgba(51, 65, 85, 0.4);
    color: var(--dh-text);
}

tr:hover td {
    background: rgba(30, 41, 59, 0.5);
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-success, .badge-approuve, .badge-active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--dh-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning, .badge-en_attente, .badge-pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--dh-amber);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-danger, .badge-refuse {
    background: rgba(244, 63, 94, 0.15);
    color: var(--dh-rose);
    border: 1px solid rgba(244, 63, 94, 0.3);
}

/* Form Inputs */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--dh-muted);
    margin-bottom: 0.5rem;
}

.form-control, input[type="text"], input[type="number"], input[type="date"], input[type="time"], input[type="password"], input[type="email"], select, textarea {
    width: 100%;
    background: #0f172a;
    border: 1px solid var(--dh-card-border);
    border-radius: 0.75rem;
    padding: 0 1rem;
    min-height: var(--dh-control-height);
    line-height: 1.2;
    box-sizing: border-box;
    color: #ffffff;
    font-size: 0.875rem;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
}

textarea {
    padding: 0.75rem 1rem;
    line-height: 1.5;
}

/* Flèche personnalisée : le rendu natif des <select> variait d'un navigateur
   à l'autre et cassait l'alignement avec les boutons voisins. */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 2.25rem;
    background-image: linear-gradient(45deg, transparent 50%, #94a3b8 50%), linear-gradient(135deg, #94a3b8 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% + 2px), calc(100% - 13px) calc(50% + 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    cursor: pointer;
}
select option { background: #0f172a; color: #fff; }

.form-control:focus, input:focus, select:focus, textarea:focus {
    border-color: var(--dh-accent);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

/* Responsive Grid Utilities */
.grid {
    display: grid;
    gap: 1.5rem;
}
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 768px) {
    .grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Layout & Flex Utilities */
.d-flex {
    display: flex !important;
}
.align-items-center {
    align-items: center !important;
}
.justify-content-between {
    justify-content: space-between !important;
}
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.flex-wrap {
    flex-wrap: wrap !important;
}
.flex-shrink-0 {
    flex-shrink: 0 !important;
}
.w-full {
    width: 100% !important;
}

/* ============================================================
   UNIVERSAL MODAL OVERLAY SYSTEM - CLEAN & CENTERED
   ============================================================ */

/* Hide modals by default */
[id$="-modal"],
.dh-modal-overlay,
.modal {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(4px) !important;
    z-index: 99999 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
}

/* Only use flex centering when modal is explicitly opened and not display: none */
[id$="-modal"]:not([style*="display: none"]):not([style*="display:none"])[style*="display"],
.dh-modal-overlay:not([style*="display: none"]):not([style*="display:none"])[style*="display"],
.modal:not([style*="display: none"]):not([style*="display:none"])[style*="display"],
[id$="-modal"].active,
.dh-modal-overlay.active,
.modal.active,
[id$="-modal"].show,
.dh-modal-overlay.show,
.modal.show {
    display: flex !important;
}

/* Modal content card */
.dh-modal-box,
.modal-content {
    background: #1e293b !important;
    border: 1px solid rgba(51, 65, 85, 0.8) !important;
    border-radius: 1.25rem !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7) !important;
    width: 90% !important;
    max-width: 560px !important;
    padding: 2rem !important;
    color: #f8fafc !important;
    animation: modalFadeIn 0.2s ease-out !important;
    overflow-y: auto !important;
    max-height: 90vh !important;
}

/* When used inside a modal overlay, dh-card acts as the box */
[id$="-modal"] > .dh-card {
    background: #1e293b !important;
    border: 1px solid rgba(51, 65, 85, 0.8) !important;
    border-radius: 1.25rem !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7) !important;
    width: 90% !important;
    max-width: 560px !important;
    padding: 2rem !important;
    color: #f8fafc !important;
    animation: modalFadeIn 0.2s ease-out !important;
    overflow-y: auto !important;
    max-height: 90vh !important;
    margin: 0 !important;
}

/* Wider variant for detail panels */
[id$="-modal"] > .dh-card.wide, .dh-modal-box.wide {
    max-width: 750px !important;
}

/* Skeleton loading animation */
@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}
.skeleton-row {
    height: 48px;
    background: rgba(51, 65, 85, 0.25);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    animation: pulse 1.5s infinite ease-in-out;
}
.skeleton-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(51, 65, 85, 0.25);
    animation: pulse 1.5s infinite ease-in-out;
}
.skeleton-line {
    height: 14px;
    background: rgba(51, 65, 85, 0.25);
    border-radius: 4px;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes modalFadeIn {
    from { transform: scale(0.95) translateY(-10px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

/* Org chart styles */
.org-tree {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
    width: 100%;
    overflow-x: auto;
    padding: 1rem 0;
}
.org-level {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    position: relative;
    width: 100%;
    flex-wrap: wrap;
}
.org-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.org-card {
    background: #1e293b;
    border: 2px solid rgba(51, 65, 85, 0.7);
    border-radius: 1rem;
    padding: 1.25rem;
    min-width: 180px;
    text-align: center;
    transition: all 0.2s;
    position: relative;
}
.org-card:hover {
    border-color: var(--dh-accent);
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.15);
    transform: translateY(-2px);
}
.org-card.root {
    border-color: var(--dh-accent);
    background: rgba(29, 78, 216, 0.2);
}
.org-card.manager {
    border-color: var(--dh-amber);
    background: rgba(217, 119, 6, 0.1);
}
.org-connector-v {
    width: 2px;
    height: 24px;
    background: rgba(51, 65, 85, 0.7);
    margin: 0 auto;
}
.org-connector-h {
    position: absolute;
    top: 0;
    left: 50%;
    right: 50%;
    height: 2px;
    background: rgba(51, 65, 85, 0.7);
}

/* Mobile Responsiveness & Touch Devices Optimization */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    .sidebar {
        width: 100% !important;
        height: auto !important;
        position: relative !important;
        border-right: none !important;
        border-bottom: 1px solid var(--dh-card-border) !important;
    }
    .sidebar .nav-list {
        display: flex !important;
        overflow-x: auto !important;
        gap: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    .sidebar .nav-list li {
        margin: 0 !important;
        white-space: nowrap !important;
    }
    .home-section {
        left: 0 !important;
        width: 100% !important;
        padding: 0.85rem !important;
    }
    .grid, .grid-cols-2, .grid-cols-3, .grid-cols-4 {
        grid-template-columns: 1fr !important;
    }
    .fc .fc-toolbar {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    .fc .fc-toolbar-title {
        font-size: 1rem !important;
    }
    .card-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
    }
    .dh-card {
        padding: 1rem !important;
    }
}

/* ============================================================
   INDICATEURS DE CHARGEMENT (js/loading.js)
   ============================================================ */
#dh-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    z-index: 1000000;
    background: transparent;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
#dh-progress.active { opacity: 1; }
#dh-progress-inner {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #1D4ED8, #38bdf8, #10b981);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.7);
    transition: width 0.3s ease;
}
#dh-progress.active #dh-progress-inner {
    animation: dh-progress-grow 12s cubic-bezier(0.1, 0.6, 0.2, 1) forwards;
}
#dh-progress.done #dh-progress-inner {
    animation: none;
    width: 100%;
    transition: width 0.2s ease;
}
@keyframes dh-progress-grow {
    0%   { width: 0; }
    20%  { width: 45%; }
    50%  { width: 72%; }
    100% { width: 94%; }
}

#dh-page-overlay {
    position: fixed;
    inset: 0;
    z-index: 999998;
    background: rgba(2, 6, 23, 0.55);
    backdrop-filter: blur(2px);
    display: none;
    align-items: center;
    justify-content: center;
}
#dh-page-overlay.open { display: flex; }
.dh-page-overlay-box {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.5rem;
    border-radius: 0.85rem;
    background: #1e293b;
    border: 1px solid var(--dh-card-border);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
    color: #f8fafc;
    font-size: 0.9rem;
    font-weight: 600;
}
.dh-page-overlay-box i { color: var(--dh-accent); font-size: 1.15rem; }

.dh-button.is-loading,
button.is-loading {
    pointer-events: none;
    opacity: 0.75;
    filter: saturate(0.85);
}
a.is-navigating { opacity: 0.7; }

/* ============================================================
   LISTE DÉROULANTE AVEC RECHERCHE (dh-combobox)
   ============================================================ */
.dh-combobox { position: relative; }
.dh-combobox-list {
    position: absolute;
    z-index: 50;
    top: calc(100% + 4px);
    left: 0; right: 0;
    max-height: 240px;
    overflow-y: auto;
    background: #0f172a;
    border: 1px solid var(--dh-card-border);
    border-radius: 0.75rem;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
    display: none;
}
.dh-combobox.open .dh-combobox-list { display: block; }
.dh-combobox-option {
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
    color: #e2e8f0;
    cursor: pointer;
    border-bottom: 1px solid rgba(51, 65, 85, 0.35);
}
.dh-combobox-option:last-child { border-bottom: none; }
.dh-combobox-option:hover,
.dh-combobox-option.active {
    background: rgba(56, 189, 248, 0.14);
    color: #fff;
}
.dh-combobox-option small { display: block; color: var(--dh-muted); font-size: 0.72rem; }
.dh-combobox-empty {
    padding: 0.75rem 0.9rem;
    font-size: 0.82rem;
    color: var(--dh-muted);
}

/* ============================================================
   EN-TÊTES DE TABLEAU TRIABLES
   ============================================================ */
th.dh-sortable {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}
th.dh-sortable:hover { color: var(--dh-accent); }
th.dh-sortable::after {
    content: ' \f0dc';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7em;
    opacity: 0.35;
}
th.dh-sortable.sort-asc::after  { content: ' \f0de'; opacity: 1; }
th.dh-sortable.sort-desc::after { content: ' \f0dd'; opacity: 1; }
