/* Modern BTP Platform - Main Stylesheet */

/* ===== Design Tokens (CSS Variables) ===== */
:root {
    /* Base */
    --bg: #F7F8FA;
    --panel: #FFFFFF;
    --panel-border: #E9EDF2;
    --panel-shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 16px rgba(16,24,40,.06);
    --backgroundAlt: #F9FAFB;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    /* Text */
    --text-strong: #0F172A; /* slate-900 */
    --text: #1F2937;        /* gray-800 */
    --muted: #6B7280;       /* gray-500 */
    --subtle: #9AA3AF;      /* gray-400 */

    /* Accent */
    --indigo: #4F46E5;
    --indigo-600: #6366F1;
    --indigo-50: #EEF2FF;

    /* States */
    --positive: #12B76A;
    --positive-bg: #ECFDF3;
    --negative: #EF4444;
    --negative-bg: #FEF2F2;
    --warning: #F59E0B;
    --warning-bg: #FFFBEB;

    /* Lines & charts */
    --chart-line: #6366F1;
    --chart-fill-from: rgba(99,102,241,.35);
    --chart-fill-to: rgba(99,102,241,0);

    /* Controls */
    --input-bg: #FFFFFF;
    --input-border: #E5E7EB;
    --input-focus: #6366F1;
    --chip-bg: #F3F4F6;
    --chip-text: #374151;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font: 14px/1.45 "Inter", "Segoe UI", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Layout ===== */
.app-shell {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.app-sidebar {
    width: 280px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.app-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.app-sidebar-overlay.is-active {
    display: block;
    opacity: 1;
    pointer-events: all;
}

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-topbar {
    display: none;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--panel);
    border-bottom: 1px solid var(--panel-border);
    position: sticky;
    top: 0;
    z-index: 98;
}

.app-burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.app-burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-strong);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.app-topbar-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-strong);
    margin: 0;
    flex: 1;
}

.app-content {
    flex: 1;
    padding: 28px 28px 64px;
    background: var(--bg);
    min-height: calc(100vh - 60px);
    max-width: 100%;
    overflow-x: hidden;
}

/* Messages container */
.messages-container {
    margin-bottom: 20px;
}

.messages-container .alert {
    margin-bottom: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid;
    font-size: 14px;
    line-height: 1.5;
}

.messages-container .alert strong {
    font-weight: 600;
    margin-right: 4px;
}

.messages-container .alert--error {
    background: var(--negative-bg);
    border-color: var(--negative);
    color: var(--negative);
}

.messages-container .alert--success {
    background: var(--positive-bg);
    border-color: var(--positive);
    color: var(--positive);
}

.messages-container .alert--warning {
    background: var(--warning-bg);
    border-color: var(--warning);
    color: var(--warning);
}

.messages-container .alert--info {
    background: #EFF6FF;
    border-color: #3B82F6;
    color: #1E40AF;
}

.main-content {
    margin-left: 280px;
    padding: 28px 28px 64px;
    width: calc(100% - 280px);
    min-height: 100vh;
    background: var(--bg);
}

/* ===== Sidebar Theme System ===== */
.aside {
    position: fixed;
    inset: 0 auto 0 0;
    width: 280px;
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow-y: auto;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    height: 100vh;
}

@media (max-width: 1024px) {
    .aside {
        position: relative;
        inset: 0;
        width: 100%;
        height: 100%;
    }
}

/* Dark Theme (Default) */
body[data-sidebar-theme="dark"] .aside {
    background: #0F172A;
    color: #E5E7EB;
}

body[data-sidebar-theme="dark"] .aside__brand {
    color: #FFFFFF;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body[data-sidebar-theme="dark"] .aside__section {
    color: #9CA3AF;
}

body[data-sidebar-theme="dark"] .nav__item {
    color: #D1D5DB;
}

body[data-sidebar-theme="dark"] .nav__item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
}

body[data-sidebar-theme="dark"] .nav__item.is-active {
    background: rgba(99, 102, 241, 0.1);
    color: #818CF8;
    border-left: 3px solid #6366F1;
}

body[data-sidebar-theme="dark"] .nav__item.is-active .nav__icon {
    color: #818CF8;
}

body[data-sidebar-theme="dark"] .aside__theme-toggle {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body[data-sidebar-theme="dark"] .theme-toggle {
    color: #D1D5DB;
}

body[data-sidebar-theme="dark"] .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
}

/* Light Theme */
body[data-sidebar-theme="light"] .aside {
    background: #F9FAFB;
    color: #111827;
}

body[data-sidebar-theme="light"] .aside__brand {
    color: #111827;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body[data-sidebar-theme="light"] .aside__section {
    color: #6B7280;
}

body[data-sidebar-theme="light"] .nav__item {
    color: #374151;
}

body[data-sidebar-theme="light"] .nav__item:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #111827;
}

body[data-sidebar-theme="light"] .nav__item.is-active {
    background: rgba(59, 130, 246, 0.08);
    color: #2563EB;
    border-left: 3px solid #3B82F6;
}

body[data-sidebar-theme="light"] .nav__item.is-active .nav__icon {
    color: #2563EB;
}

body[data-sidebar-theme="light"] .aside__theme-toggle {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body[data-sidebar-theme="light"] .theme-toggle {
    color: #374151;
}

body[data-sidebar-theme="light"] .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #111827;
}

/* Logout section border color by theme */
body[data-sidebar-theme="dark"] .aside__section:last-of-type {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body[data-sidebar-theme="light"] .aside__section:last-of-type {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.aside__brand {
    padding: 24px 20px;
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.aside__brand-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

/* Theme Toggle Button */
.aside__theme-toggle {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s ease;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 8px 12px;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
    position: relative;
    gap: 8px;
}

.theme-toggle__icon {
    width: 18px;
    height: 18px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Show/hide icons based on theme */
body[data-sidebar-theme="dark"] .theme-toggle__icon--moon {
    opacity: 0;
    transform: rotate(90deg);
    position: absolute;
}

body[data-sidebar-theme="dark"] .theme-toggle__icon--sun {
    opacity: 1;
    transform: rotate(0deg);
}

body[data-sidebar-theme="light"] .theme-toggle__icon--sun {
    opacity: 0;
    transform: rotate(90deg);
    position: absolute;
}

body[data-sidebar-theme="light"] .theme-toggle__icon--moon {
    opacity: 1;
    transform: rotate(0deg);
}

.aside__section {
    padding: 16px 12px 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    transition: color 0.3s ease, border-color 0.3s ease;
}

/* Logout section styling */
.aside__section:last-of-type {
    margin-top: auto;
    padding-top: 20px;
}

.nav {
    display: flex;
    flex-direction: column;
    padding: 8px 12px;
}

.nav__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s ease;
    margin-bottom: 4px;
    position: relative;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.nav__icon-wrapper {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav__icon {
    width: 18px;
    height: 18px;
    color: inherit;
    transition: color 0.15s ease;
}

.nav__item-arrow {
    margin-left: auto;
    font-size: 12px;
    opacity: 0.6;
    flex-shrink: 0;
}

/* ===== Header ===== */
.header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.header__title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-strong);
    letter-spacing: .2px;
    line-height: 1.2;
}

.header__subtitle {
    color: var(--muted);
    margin-top: 4px;
    font-size: 14px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-strong);
    letter-spacing: .2px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title-icon {
    width: 24px;
    height: 24px;
    color: var(--indigo);
}

/* ===== Cards ===== */
.card {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-md);
    box-shadow: var(--panel-shadow);
}

.card--pad {
    padding: 16px;
}

/* ===== Metrics ===== */
.metric {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.metric__icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #F5F7FF;
    color: var(--indigo);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.metric__icon svg {
    width: 16px;
    height: 16px;
}

.metric__label {
    color: var(--muted);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 4px;
}

.metric__value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-strong);
    line-height: 1.2;
}

.metric__trend {
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
}

.metric__trend--up {
    color: var(--positive);
}

.metric__trend--down {
    color: var(--negative);
}

/* ===== Chips ===== */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--chip-bg);
    color: var(--chip-text);
    border: 1px solid var(--panel-border);
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 500;
    font-size: 12px;
}

/* ===== Inputs / Filters ===== */
.input, .select, textarea.input {
    height: 38px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    padding: 0 12px;
    color: var(--text);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

textarea.input {
    min-height: 76px;
    padding: 10px 12px;
    height: auto;
}

.input::placeholder {
    color: var(--subtle);
}

.input:focus, .select:focus, textarea.input:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}

.input-group {
    margin-bottom: 16px;
}

.input-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-strong);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: filter .15s, transform .02s;
    text-decoration: none;
    font-family: inherit;
}

.btn:active {
    transform: translateY(1px);
}

.btn--primary {
    background: linear-gradient(180deg, #7468F3 0%, #5D54EA 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(93,84,234,.25);
}

.btn--primary:hover {
    filter: brightness(1.02);
}

.btn--primary:disabled {
    background: #E5E7EB;
    color: #9CA3AF;
    box-shadow: none;
    cursor: not-allowed;
}

.btn--secondary {
    background: #fff;
    border-color: var(--panel-border);
    color: #374151;
}

.btn--secondary:hover {
    background: #F8FAFC;
}

.btn-icon {
    width: 16px;
    height: 16px;
}

/* ===== Tables ===== */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid var(--panel-border);
    background: #fff;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    min-width: 600px; /* Largeur minimale pour éviter que le tableau soit trop compressé */
}

.table thead th {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    background: #FBFCFE;
    font-weight: 600;
    white-space: nowrap; /* Empêche le retour à la ligne dans les en-têtes */
    position: sticky;
    top: 0;
    z-index: 10;
}

.table th, .table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--panel-border);
    text-align: left;
}

.table tr:last-child td {
    border-bottom: 0;
}

.table tbody tr:hover {
    background: #FAFBFF;
}

/* Sur mobile, certaines colonnes peuvent être masquées */
@media (max-width: 767px) {
    .table-wrapper {
        border-radius: 8px;
    }
    
    .table {
        min-width: 100%;
        font-size: 14px;
    }
    
    .table th, .table td {
        padding: 12px 10px;
    }
    
    /* Colonnes optionnelles masquées sur très petit écran */
    .table .col-optional {
        display: none;
    }
}

/* Indicateur visuel de scroll horizontal sur mobile */
@media (max-width: 767px) {
    .table-wrapper {
        position: relative;
    }
    
    .table-wrapper::after {
        content: '→';
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--muted);
        font-size: 20px;
        pointer-events: none;
        opacity: 0.5;
    }
    
    .table-wrapper.scrolled-right::after {
        display: none;
    }
}

.action-pill {
    background: #EFF1F5;
    border: 1px solid var(--panel-border);
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 600;
    color: #374151;
    font-size: 12px;
}

/* ===== Chart Container ===== */
.chart-bg {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-md);
    box-shadow: var(--panel-shadow);
    padding: 20px;
}

/* ===== Grid Layout ===== */
.grid {
    display: grid;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ===== Utility Classes ===== */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }

.text-center { text-align: center; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-between { justify-content: space-between; }
.flex-center { justify-content: center; }
.align-center { align-items: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

.hidden { display: none; }

.ml-2 { margin-left: 8px; }
.mr-2 { margin-right: 8px; }

/* ===== Modal ===== */
/* ===== Modal - Desktop (centrée) ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.modal-content {
    position: relative;
    background: var(--panel);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--panel-border);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-shrink: 0;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--panel-border);
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-strong);
    flex: 1;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--muted);
    padding: 0;
    width: 44px; /* Taille minimale pour le toucher */
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background .15s;
    flex-shrink: 0;
}

.modal-close:hover,
.modal-close:active {
    background: var(--chip-bg);
    color: var(--text-strong);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    padding-right: 4px; /* Espace pour la scrollbar */
}

/* Scrollbar personnalisée pour modal-body */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--muted);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--text);
}

/* ===== Modal - Mobile (Bottom Sheet) ===== */
@media (max-width: 767px) {
    .modal {
        align-items: flex-end; /* Aligne en bas sur mobile */
        padding: 0;
    }
    
    .modal-overlay {
        background: rgba(0, 0, 0, 0.6);
    }
    
    .modal-content {
        max-width: 100%;
        width: 100%;
        max-height: 92vh; /* 92% de la hauteur de l'écran */
        height: auto;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0; /* Arrondi seulement en haut */
        padding: 20px;
        padding-bottom: max(20px, env(safe-area-inset-bottom)); /* Safe area pour iPhone */
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
        animation: slideUp 0.3s ease-out;
    }
    
    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }
    
    .modal-header {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .modal-body {
        margin-bottom: 0;
        /* Padding supplémentaire en bas pour éviter que le contenu soit masqué par le clavier */
        padding-bottom: 100px;
    }
    
    /* Indicateur visuel de "drag handle" en haut de la modale mobile */
    .modal-content::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: var(--panel-border);
        border-radius: 2px;
    }
}

/* ===== Lock body scroll quand modal est ouverte ===== */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* ===== Time Preset Cards ===== */
.time-preset-cards {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}

.time-preset-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    text-align: center;
}

.time-preset-card:hover {
    border-color: var(--input-focus);
    background: #F8FAFF;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.time-preset-card--active {
    border-color: var(--input-focus);
    background: var(--indigo-50);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.time-preset-card__title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-strong);
    margin-bottom: 4px;
}

.time-preset-card__time {
    font-size: 11px;
    color: var(--muted);
    font-weight: 500;
}

.time-preset-card--active .time-preset-card__title {
    color: var(--indigo-600);
}

.time-preset-card--active .time-preset-card__time {
    color: var(--indigo-600);
}

/* ===== Time Picker Component ===== */
.time-picker {
    position: relative;
    width: 100%;
}

.time-picker-display {
    width: 100%;
    height: 38px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
    text-align: left;
}

.time-picker-display:hover {
    border-color: var(--input-focus);
}

.time-picker--open .time-picker-display,
.time-picker-display:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    outline: none;
}

.time-picker-label {
    flex: 1;
    color: var(--text);
}

.time-picker-label:empty::before {
    content: '--:--';
    color: var(--subtle);
}

.time-picker-icon {
    color: var(--muted);
    font-size: 16px;
    margin-left: 8px;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.time-picker--open .time-picker-icon {
    transform: rotate(180deg);
}

.time-picker-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(16, 24, 40, 0.12);
    max-height: 240px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 4px;
}

.time-picker-options {
    padding: 4px;
}

.time-picker-option {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
    border-radius: 6px;
    transition: background-color 0.15s;
    user-select: none;
}

.time-picker-option:hover {
    background: var(--backgroundAlt);
}

.time-picker-option[data-selected="true"] {
    background: var(--indigo-50);
    color: var(--indigo-600);
    font-weight: 600;
}

.time-picker-option[data-selected="true"]:hover {
    background: var(--indigo-50);
}

/* Scrollbar styling for dropdown */
.time-picker-dropdown::-webkit-scrollbar {
    width: 6px;
}

.time-picker-dropdown::-webkit-scrollbar-track {
    background: var(--backgroundAlt);
    border-radius: 3px;
}

.time-picker-dropdown::-webkit-scrollbar-thumb {
    background: var(--subtle);
    border-radius: 3px;
}

.time-picker-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--muted);
}

/* ===== Loading & Error ===== */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: var(--muted);
}

.error-message {
    padding: 16px;
    background: var(--negative-bg);
    color: var(--negative);
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ===== Progress Bars ===== */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #F3F4F6;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-bar__fill {
    height: 100%;
    background: var(--indigo);
    border-radius: 999px;
    transition: width .3s ease;
}

/* ===== Labels/Badges ===== */
.label {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
}

.label-default {
    background: var(--chip-bg);
    color: var(--chip-text);
}

.label-success {
    background: var(--positive-bg);
    color: var(--positive);
}

.label-warning {
    background: var(--warning-bg);
    color: var(--warning);
}

.label-error {
    background: var(--negative-bg);
    color: var(--negative);
}

/* ===== Notifications ===== */
.notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    min-width: 280px;
    max-width: 360px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    animation: slideInUp 0.3s ease-out;
    transition: all 0.3s ease;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.notification.notification--closing {
    animation: slideOutDown 0.3s ease-out;
}

@keyframes slideOutDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

.notification__icon {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification--success .notification__icon {
    background: rgba(0, 196, 140, 0.1);
    color: #00C48C;
}

.notification--error .notification__icon {
    background: rgba(255, 107, 107, 0.1);
    color: #FF6B6B;
}

.notification--info .notification__icon {
    background: rgba(108, 99, 255, 0.1);
    color: #6C63FF;
}

.notification__icon svg {
    width: 14px;
    height: 14px;
}

.notification__content {
    flex: 1;
    min-width: 0;
}

.notification__title {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
    line-height: 1.3;
}

.notification__message {
    font-size: 12px;
    color: #6B7280;
    line-height: 1.4;
}

.notification--quiet .notification__content {
    flex: 1;
}

.notification--quiet .notification__title {
    display: none;
}

.notification--quiet .notification__message {
    font-size: 13px;
    color: #374151;
    margin: 0;
}

.notification__close {
    background: none;
    border: none;
    padding: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #9CA3AF;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.notification__close:hover {
    background: #F3F4F6;
    color: #374151;
}

.notification__close svg {
    width: 12px;
    height: 12px;
}

/* ===== Tabbed Detail Layout ===== */
.detail-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.detail-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-strong);
    margin-bottom: 8px;
    line-height: 1.2;
}

.detail-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge--default {
    background: var(--chip-bg);
    color: var(--chip-text);
}

.badge--status {
    background: rgba(108, 99, 255, 0.12);
    color: var(--indigo);
}

.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--panel-border);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    position: relative;
}

.tab__icon {
    font-size: 16px;
}

.tab:hover {
    color: var(--text);
    background: var(--backgroundAlt);
}

.tab.tab--active {
    color: var(--indigo);
    border-bottom-color: var(--indigo);
    background: #fff;
}

.tab-content {
    display: none;
}

.tab-content--active {
    display: block;
}

.detail-two-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px 32px;
    margin-bottom: 24px;
}

.detail-field {
    margin-bottom: 20px;
}

.detail-field__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.detail-field__value {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
    line-height: 1.5;
}

.detail-field__value--empty {
    color: var(--muted);
    font-style: italic;
}

.detail-section {
    margin-top: 32px;
}

.detail-section__title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-strong);
}

.detail-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-list--stacked {
    flex-direction: column;
    gap: 6px;
}

.detail-list--stacked li {
    background: var(--chip-bg);
    color: var(--chip-text);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    border: 1px solid var(--panel-border);
}

.location-card {
    background: var(--panel);
    border: 1px dashed var(--panel-border);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    color: var(--muted);
    margin-top: 24px;
}

.planning-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.planning-card {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: var(--panel-shadow);
}

.planning-card__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.planning-card__value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-strong);
}

.planning-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    background: var(--panel);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--panel-border);
}

.planning-table th,
.planning-table td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--panel-border);
    font-size: 13px;
}

.planning-table th {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--muted);
    font-weight: 600;
    background: var(--backgroundAlt);
}

.planning-table tbody tr:last-child td {
    border-bottom: none;
}

.planning-table tbody tr:hover {
    background: var(--backgroundAlt);
}

/* ===== Progress Card ===== */
.progress-card {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--panel-shadow);
}

.progress-card__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-strong);
    margin-bottom: 12px;
}

.progress-card__text {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.5;
}

.progress-bar {
    display: flex;
    height: 32px;
    background: #F3F4F6;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
}

.progress-bar__segment {
    height: 100%;
    transition: width 0.3s ease;
}

.progress-bar__segment--completed {
    background: #12B76A;
}

.progress-bar__segment--remaining {
    background: #E5E7EB;
}

.progress-bar__segment--excess {
    background: #EF4444;
}

.progress-legend {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.progress-legend__item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-legend__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.progress-legend__dot--completed {
    background: #12B76A;
}

.progress-legend__dot--remaining {
    background: #E5E7EB;
}

.progress-legend__dot--excess {
    background: #EF4444;
}

.progress-legend__label {
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
}

/* ===== Équipe & Planning Cards (ep- prefix) ===== */
.ep-row--cards {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 24px;
    margin-top: 24px;
    margin-bottom: 32px;
}

@media (max-width: 960px) {
    .ep-row--cards {
        grid-template-columns: minmax(0, 1fr);
    }
}

.ep-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.ep-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #111827;
}

.ep-card__empty {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 4px 0 0 0;
}

/* Progress card */
.ep-card__summary {
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: #111827;
}

.ep-card__summary strong {
    font-weight: 600;
}

.ep-progress-bar {
    height: 10px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
    display: flex;
}

.ep-progress-bar__segment {
    height: 100%;
}

.ep-progress-bar__segment--green {
    background: #22c55e;
}

.ep-progress-bar__segment--grey {
    background: #e5e7eb;
}

.ep-progress-bar__segment--red {
    background: #f97373;
}

.ep-progress-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #4b5563;
}

.ep-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ep-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}

.ep-dot--green {
    background: #22c55e;
}

.ep-dot--grey {
    background: #d1d5db;
}

.ep-dot--red {
    background: #f97373;
}

/* VA card */
.ep-card--va {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ep-va-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ep-va-emoji {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: rgba(148, 163, 184, 0.18);
}

.ep-va-values {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ep-va-line {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.ep-va-amount {
    font-size: 1.1rem;
    font-weight: 700;
}

.ep-va-percent {
    font-size: 0.9rem;
    font-weight: 500;
}

.ep-va-sub {
    font-size: 0.8rem;
    color: #6b7280;
}

.ep-va-footer {
    font-size: 0.8rem;
    color: #6b7280;
}

.ep-card--va-good .ep-va-amount,
.ep-card--va-good .ep-va-percent {
    color: #16a34a;
}

.ep-card--va-good .ep-va-emoji {
    background: rgba(22, 163, 74, 0.14);
}

.ep-card--va-bad .ep-va-amount,
.ep-card--va-bad .ep-va-percent {
    color: #ef4444;
}

.ep-card--va-bad .ep-va-emoji {
    background: rgba(239, 68, 68, 0.14);
}

.ep-section-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-strong);
}

/* ===== Planning Cell Add Button (Minimal & Discreet) ===== */
.planning-cell {
    position: relative;
}

.planning-cell--empty {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.planning-cell--empty:hover {
    background-color: var(--backgroundAlt) !important;
}

.planning-cell-add-btn {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 16px;
    height: 16px;
    border: none;
    padding: 0;
    background: none;
    color: #cbd5e1; /* light gray */
    font-size: 16px;
    line-height: 16px;
    cursor: pointer;
    opacity: 0.30;
    transition:
        opacity 0.15s ease,
        color 0.15s ease,
        transform 0.12s ease,
        background-color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.planning-cell--empty:hover .planning-cell-add-btn {
    opacity: 0.80;
    color: #4b5563; /* medium gray */
    transform: scale(1.05);
    background-color: rgba(0, 0, 0, 0.03); /* optional very light hover */
    border-radius: 4px; /* subtle softness */
    width: 16px;
    height: 16px;
}

.planning-cell-add-btn:active {
    color: #374151; /* darker gray */
    opacity: 1;
}

.planning-cell-add-btn--small {
    width: 14px;
    height: 14px;
    font-size: 14px;
    line-height: 14px;
}

.planning-cell--empty:hover .planning-cell-add-btn--small {
    width: 14px;
    height: 14px;
}

.link {
    color: var(--indigo);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
}

.link:hover {
    color: #5D54EA;
    text-decoration: underline;
}

/* ===== Dashboard Cards Grid ===== */
.dashboard-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.dashboard-card {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-md);
    box-shadow: var(--panel-shadow);
}

/* Backward compatibility for existing dashboard cards */
.dashboard-kpi-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}

/* ===== Body Scroll Lock ===== */
body.sidebar-open {
    overflow: hidden;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .app-shell {
        position: relative;
    }

    .app-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 100;
        transform: translateX(-100%);
    }

    .app-sidebar.is-open {
        transform: translateX(0);
    }

    .app-main {
        width: 100%;
    }

    .app-topbar {
        display: flex;
    }

    .app-burger {
        display: flex;
    }

    .app-content {
        padding: 20px;
        min-height: calc(100vh - 60px);
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
        width: 100%;
    }

    .aside {
        transform: translateX(-100%);
    }

    .app-sidebar.is-open .aside {
        transform: translateX(0);
    }

    .dashboard-cards-grid,
    .dashboard-kpi-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1200px) {
    .dashboard-cards-grid,
    .dashboard-kpi-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-cards-grid,
    .dashboard-kpi-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .app-content {
        padding: 16px;
    }

    .main-content {
        padding: 16px;
    }

    .page-title {
        font-size: 24px;
    }

    .header__title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .detail-header {
        flex-direction: column;
    }
    
    .detail-two-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab {
        white-space: nowrap;
    }
}


/* ===== Employee Space Styles ===== */
.employee-app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    background: var(--bg);
}

/* Sidebar latérale pour desktop */
.employee-sidebar {
    width: 240px;
    background: var(--panel);
    border-right: 1px solid var(--panel-border);
    display: none; /* Masquée sur mobile */
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 99;
    overflow-y: auto;
}

.employee-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 16px;
    border-bottom: 1px solid var(--panel-border);
}

.employee-sidebar__brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
}

.employee-sidebar__brand span {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-strong);
}

.employee-sidebar__nav {
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.employee-sidebar__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
}

.employee-sidebar__item:hover {
    background: var(--backgroundAlt);
    color: var(--text-strong);
}

.employee-sidebar__item.is-active {
    background: var(--indigo-50);
    color: var(--indigo);
    border-left-color: var(--indigo);
    font-weight: 600;
}

.employee-sidebar__item svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.employee-sidebar__item--logout {
    margin-top: auto;
    margin-bottom: 16px;
    color: var(--muted);
}

.employee-sidebar__item--logout:hover {
    color: var(--negative);
    background: var(--negative-bg);
}

.employee-header {
    background: var(--panel);
    border-bottom: 1px solid var(--panel-border);
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    width: 100%;
}

@media (min-width: 768px) {
    .employee-sidebar {
        display: flex;
    }
    
    .employee-main {
        margin-left: 240px;
        width: calc(100% - 240px);
    }
    
    .employee-header {
        margin-left: 240px;
        width: calc(100% - 240px);
    }
}

.employee-header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.employee-header__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-strong);
    margin: 0;
}

.employee-header__user {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--muted);
    font-weight: 500;
}

.employee-logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 14px;
    white-space: nowrap;
}

.employee-logout-btn svg {
    flex-shrink: 0;
}

.employee-main {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.employee-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--panel);
    border-top: 1px solid var(--panel-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    z-index: 100;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

.employee-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    text-decoration: none;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    transition: color 0.15s ease;
    min-width: 60px;
    flex: 1;
    max-width: 120px;
}

.employee-nav-item svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.employee-nav-item.is-active {
    color: var(--indigo);
}

.employee-nav-item.is-active svg {
    color: var(--indigo);
}

.employee-nav-item:active {
    opacity: 0.7;
}

@media (min-width: 768px) {
    .employee-bottom-nav {
        display: none; /* Masquer sur desktop */
    }
    
    .employee-main {
        padding-bottom: 0;
    }
}

.badge--success {
    background: var(--positive-bg);
    color: var(--positive);
    border: 1px solid var(--positive);
}
