:root {
    --sidebar-bg: #0f172a;
    --sidebar-bg-2: #0f172a;
    --sidebar-text: #cbd5e1;
    --sidebar-muted: #64748b;
    --sidebar-active: #fbbf24;
    --sidebar-active-bg: rgba(251,191,36,0.12);
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --topbar-bg: #ffffff;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
--green: #16a34a;
    --red: #dc2626;
    --blue: #2563eb;
    --purple: #7c3aed;
    --shadow: 0 1px 3px rgba(15,23,42,0.08);
    --shadow-lg: 0 6px 16px rgba(15,23,42,0.10);
    --radius: 12px;
    --hover-bg: #f1f5f9;
    --icon-bg: #f1f5f9;
    --icon-hover-bg: #e2e8f0;
    --active-icon-bg: #fde68a;
    --active-icon-color: #92400e;
    --table-head-bg: #f8fafc;
    --row-hover-bg: #f8fafc;
    --danger-hover-bg: #fef2f2;
    --scrollbar: #cbd5e1;
    --scrollbar-hover: #94a3b8;
    --tooltip-bg: #0f172a;
    --badge-gray-bg: #f3f4f6;
    --badge-gray-color: #4b5563;
    --input-bg: #ffffff;
}

[data-theme="dark"] {
    --sidebar-bg: #0f172a;
    --sidebar-bg-2: #0f172a;
    --sidebar-text: #cbd5e1;
    --sidebar-muted: #64748b;
    --sidebar-active: #fbbf24;
    --sidebar-active-bg: rgba(251,191,36,0.12);
    --accent: #f59e0b;
    --accent-dark: #fbbf24;
    --topbar-bg: #0f172a;
    --bg: #0b1220;
    --card-bg: #111a2e;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --border: #1e293b;
--green: #4ade80;
    --red: #f87171;
    --blue: #60a5fa;
    --purple: #a78bfa;
    --shadow: 0 1px 3px rgba(0,0,0,0.4);
    --shadow-lg: 0 6px 16px rgba(0,0,0,0.5);
    --hover-bg: #1e293b;
    --icon-bg: #1e293b;
    --icon-hover-bg: #334155;
    --active-icon-bg: rgba(251,191,36,0.18);
    --active-icon-color: #fbbf24;
    --table-head-bg: #111a2e;
    --row-hover-bg: #16213a;
    --danger-hover-bg: #2a1b1b;
    --scrollbar: #334155;
    --scrollbar-hover: #475569;
    --tooltip-bg: #e2e8f0;
    --badge-gray-bg: #1e293b;
    --badge-gray-color: #94a3b8;
    --input-bg: #16213a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    transition: background 0.25s ease, color 0.25s ease;
}

a { color: inherit; text-decoration: none; }

/* ============ LAYOUT ============ */
.layout { display: flex; min-height: 100vh; }

/* ============ SIDEBAR (light modern) ============ */
.sidebar {
    width: 250px;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    /* La sidebar reste sombre quel que soit le thème */
    --border: rgba(255,255,255,0.09);
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --hover-bg: rgba(148,163,184,0.12);
    --icon-bg: #1e293b;
    --icon-hover-bg: #334155;
    --active-icon-bg: rgba(251,191,36,0.18);
    --active-icon-color: #fbbf24;
    --danger-hover-bg: rgba(248,113,113,0.14);
    --red: #f87171;
    --scrollbar: #334155;
    --scrollbar-hover: #475569;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    transition: width 0.25s ease, transform 0.25s ease;
    z-index: 40;
    border-right: 1px solid var(--border);
    overflow: hidden;
}

body.nav-collapsed .sidebar { width: 68px; }
body:not(.nav-collapsed) .sidebar { width: 250px; }

/* Subtle scrollbar */
.sidebar-nav {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar) transparent;
}
.sidebar-nav::-webkit-scrollbar { width: 6px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 3px; }
.sidebar-nav::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-hover); }

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    border-bottom: 1px solid var(--border);
    min-height: 72px;
    white-space: nowrap;
}

.brand-logo {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(245,158,11,0.30);
    flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; transition: opacity 0.2s ease; }
.brand-name { color: var(--text); font-weight: 800; font-size: 15px; }
.brand-sub { font-size: 11px; color: var(--sidebar-muted); }

.brand-logo img {
    width: 42px; height: 42px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    padding: 3px;
}

.param-logo-current {
    margin: 8px 0;
    padding: 10px;
    border: 1px dashed var(--border);
    border-radius: 8px;
    display: inline-block;
    background: var(--bg-card, #fff);
}
.param-logo-current img {
    display: block;
    max-width: 240px;
    max-height: 120px;
    object-fit: contain;
}

body.nav-collapsed .brand-text { opacity: 0; width: 0; overflow: hidden; }
body.nav-collapsed .sidebar-brand { justify-content: center; padding: 18px 12px; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 16px 12px; }

.nav-section {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--sidebar-muted);
    padding: 12px 8px 6px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.2s ease;
}

body.nav-collapsed .nav-section { opacity: 0; height: 0; padding-top: 4px; padding-bottom: 4px; }

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    margin-bottom: 2px;
    color: var(--sidebar-text);
    font-weight: 500;
    border-radius: 9px;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.nav-link:hover { color: var(--text); background: var(--hover-bg); }

.nav-link.active {
    color: var(--sidebar-active);
    background: var(--sidebar-active-bg);
    font-weight: 600;
}

/* Icon badge behind each icon */
.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    border-radius: 8px;
    background: var(--icon-bg);
    color: var(--text-muted);
    font-size: 14px;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.nav-link:hover .nav-icon { background: var(--icon-hover-bg); color: var(--text); }
.nav-link.active .nav-icon { background: var(--active-icon-bg); color: var(--active-icon-color); }

body.nav-collapsed .nav-link { justify-content: center; padding: 8px 0; gap: 0; }
body.nav-collapsed .nav-link .nav-label { display: none; }

/* Tooltip when collapsed (rendered via JS, position:fixed => always on top) */
.app-tooltip {
    position: fixed;
    display: none;
    background: var(--tooltip-bg);
    color: var(--bg);
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
    line-height: 1;
    box-shadow: 0 6px 18px rgba(0,0,0,0.30);
    z-index: 1000;
    pointer-events: none;
}

.app-tooltip.visible { display: block; }

/* Chevron arrow pointing to the menu (left side) */
.app-tooltip::before {
    content: "";
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: var(--tooltip-bg);
    box-shadow: -2px -2px 4px rgba(0,0,0,0.10);
}

.sidebar-footer { padding: 14px; border-top: 1px solid var(--border); white-space: nowrap; }
body.nav-collapsed .sidebar-footer { padding: 14px 14px; }

.logout-btn {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--sidebar-text);
    font-size: 14px;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    cursor: pointer;
    border-radius: 9px;
    transition: all 0.15s ease;
}

.logout-btn:hover { color: var(--red); background: var(--danger-hover-bg); }
.logout-btn:hover .nav-icon { background: var(--danger-hover-bg); color: var(--red); }

body.nav-collapsed .logout-btn .nav-label { display: none; }
body.nav-collapsed .logout-btn { justify-content: center; padding: 8px; }

/* ============ DESIGN COMMUN : entêtes de cartes + tableaux ============ */
.card-header .dash-title { display: flex; align-items: center; gap: 10px; font-size: 14px !important; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; color: #0f172a; }
.card-header .dash-title .dash-bar { width: 4px; height: 18px; border-radius: 2px; background: linear-gradient(180deg, #f59e0b, #ea580c); }
.dash-head { background: #fdeccd; border-top-left-radius: 10px; border-top-right-radius: 10px; }
.dash-link { font-size: 12px; font-weight: 600; color: var(--accent-dark, #b45309); background: var(--icon-bg); padding: 6px 12px; border-radius: 999px; transition: background .15s; }
.dash-link:hover { background: var(--icon-hover-bg); }
table.dash-table thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; font-weight: 800; color: #fff; background: #334155; border-bottom: 1.5px solid #0f172a; }
table.dash-table tbody tr { transition: background .15s ease; }
table.dash-table tbody tr:nth-child(even) > td { background: rgba(148, 163, 184, 0.08); }
table.dash-table tbody tr:hover > td { background: rgba(245, 158, 11, 0.10); }
table.dash-table tbody td { position: relative; padding: 13px 16px; font-size: 13.5px; border-bottom: 1px solid var(--border); }
table.dash-table td.code-bl { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent-dark, #b45309); }
table.dash-table td { white-space: nowrap; }
.dash-vol { display: inline-block; background: var(--icon-bg); border-radius: 6px; padding: 3px 9px; font-size: 12.5px; font-weight: 600; }

/* ============ SIDEBAR : toujours le rendu du mode sombre ============ */
.sidebar,
.sidebar-brand,
.sidebar-footer { background: #0f172a; }
.sidebar { border-right-color: rgba(255, 255, 255, 0.09); }
.sidebar-brand { border-bottom-color: rgba(255, 255, 255, 0.09); }
.sidebar-footer { border-top-color: rgba(255, 255, 255, 0.09); }
.sidebar .brand-name { color: #f1f5f9; }
.sidebar .brand-sub,
.sidebar .nav-section { color: #64748b; }
.sidebar .nav-link { color: #cbd5e1; }
.sidebar .nav-link:hover { color: #f1f5f9; background: rgba(148, 163, 184, 0.12); }
.sidebar .nav-link.active { color: #fbbf24; background: rgba(251, 191, 36, 0.12); }
.sidebar .nav-icon { background: #1e293b; color: #94a3b8; }
.sidebar .nav-link:hover .nav-icon { background: #334155; color: #f1f5f9; }
.sidebar .nav-link.active .nav-icon { background: rgba(251, 191, 36, 0.18); color: #fbbf24; }
.sidebar .logout-btn { color: #cbd5e1; }
.sidebar .logout-btn:hover { color: #f87171; background: rgba(248, 113, 113, 0.14); }
.sidebar .logout-btn:hover .nav-icon { background: rgba(248, 113, 113, 0.14); color: #f87171; }

/* ============ MAIN ============ */
.main {
    flex: 1;
    margin-left: 250px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
    transition: margin-left 0.25s ease;
}

body.nav-collapsed .main { margin-left: 68px; }

.topbar {
    height: 60px;
    background: var(--topbar-bg);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 30;
    box-shadow: var(--shadow);
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text);
    padding: 4px 6px;
    border-radius: 6px;
    transition: background 0.15s;
}

.sidebar-toggle:hover { background: var(--bg); }

/* Theme toggle button (light/dark) */
.theme-toggle {
    position: relative;
    width: 40px; height: 40px;
    background: var(--icon-bg);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s ease, transform 0.15s ease;
}

.theme-toggle:hover { background: var(--icon-hover-bg); transform: rotate(15deg); }

.theme-icon {
    position: absolute;
    font-size: 18px;
    line-height: 1;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Light theme: show sun, hide moon */
.theme-sun { color: #d97706; }
.theme-moon { color: #a5b4fc; }

[data-theme="light"] .theme-sun { opacity: 1; transform: rotate(0); }
[data-theme="light"] .theme-moon { opacity: 0; transform: rotate(-90deg) scale(0.5); }
[data-theme="dark"] .theme-sun { opacity: 0; transform: rotate(90deg) scale(0.5); }
[data-theme="dark"] .theme-moon { opacity: 1; transform: rotate(0); }

.topbar-title { font-size: 17px; font-weight: 700; color: var(--text); flex: 1; }

.topbar-user { position: relative; display: flex; align-items: center; }

.user-menu-btn {
    display: flex; align-items: center; gap: 10px;
    background: none; border: none; cursor: pointer;
    padding: 6px 10px; border-radius: 10px;
    transition: background 0.15s ease;
}
.user-menu-btn:hover { background: var(--icon-bg); }

.user-greeting { font-size: 13px; color: var(--text-muted); font-weight: 500; }

.user-avatar {
    width: 34px; height: 34px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    text-transform: uppercase;
}

.user-chevron { font-size: 10px; color: var(--text-muted); transition: transform 0.15s ease; }
.user-menu-btn[aria-expanded="true"] .user-chevron { transform: rotate(180deg); }

.user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 230px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 8px;
    z-index: 60;
}
.user-menu[hidden] { display: none; }

.user-menu-header {
    padding: 8px 10px 10px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
}

.user-menu-item {
    display: flex; align-items: center; gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--text);
    font-size: 13.5px;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease;
}
.user-menu-item:hover { background: var(--icon-bg); }

.user-menu-icon { font-size: 14px; }

.user-menu-sep { height: 1px; background: var(--border); margin: 6px 4px; }

.content { padding: 24px; flex: 1; min-width: 0; max-width: 100%; }

.main-footer {
    padding: 14px 24px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12.5px;
    background: var(--card-bg);
    text-align: center;
}

/* ============ CARDS / GRID ============ */
.grid { display: grid; gap: 18px; }
.grid-cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1000px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

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

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fdeccd;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.card-header h3 { font-size: 14px; font-weight: 700; position: relative; padding-left: 14px; text-transform: uppercase; letter-spacing: .3px; color: #0f172a; }
.card-header h3::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 18px; border-radius: 2px; background: linear-gradient(180deg, #f59e0b, #ea580c); }
.card-header h3:has(.dash-bar) { padding-left: 0; }
.card-header h3:has(.dash-bar)::before { display: none; }

.card-body { padding: 20px; }
.card-body.no-pad { padding: 0; }

/* ============ KPI STATS ============ */
.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 18px 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.15s, box-shadow 0.15s;
}

.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.stat-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.stat-bg-amber { background: #fef3c7; }
.stat-bg-green { background: #dcfce7; }
.stat-bg-blue { background: #dbeafe; }
.stat-bg-red { background: #fee2e2; }
.stat-bg-purple { background: #ede9fe; }

[data-theme="dark"] .stat-bg-amber { background: rgba(245,158,11,0.18); }
[data-theme="dark"] .stat-bg-green { background: rgba(74,222,128,0.15); }
[data-theme="dark"] .stat-bg-blue { background: rgba(96,165,250,0.15); }
[data-theme="dark"] .stat-bg-red { background: rgba(248,113,113,0.15); }
[data-theme="dark"] .stat-bg-purple { background: rgba(196,181,253,0.15); }

.stat-info { display: flex; flex-direction: column; }
.stat-label { font-size: 12.5px; color: var(--text-muted); font-weight: 500; }
.stat-value { font-size: 22px; font-weight: 800; color: var(--text); }
.stat-sub { font-size: 11.5px; color: var(--text-muted); }

/* ============ TABLE ============ */
.table-responsive { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }

table.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.table thead th {
    text-align: left;
    padding: 12px 16px;
    background: #334155;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.6px;
    border-bottom: 1.5px solid #0f172a;
    white-space: nowrap;
}

.table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.table tbody tr:hover { background: var(--row-hover-bg); }

.table-total-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    background: var(--table-head-bg);
    border-top: 2px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
    white-space: nowrap;
    font-size: 13.5px;
}

.table-total-bar .tbl-total-label {
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 11px;
}

.table-total-bar .tbl-total-value {
    font-weight: 700;
    color: var(--text);
}

/* ============ BADGES ============ */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
}

.badge-green { background: #dcfce7; color: #15803d; }
.badge-red { background: #fee2e2; color: #b91c1c; }
.badge-amber { background: #fef3c7; color: #b45309; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-gray { background: var(--badge-gray-bg); color: var(--badge-gray-color); }
.badge-purple { background: #ede9fe; color: #6d28d9; }

.statut-btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.4;
}

.statut-btn:hover { filter: brightness(0.94); }

.statut-choices {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.statut-choices-empty {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--hover-bg);
    color: var(--text-muted);
    font-size: 13px;
}

.statut-choice {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text);
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    padding: 10px 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.12s ease;
}

.statut-choice:hover { background: var(--hover-bg); border-color: var(--accent); }

.statut-choice.badge-green { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.statut-choice.badge-blue { background: #dbeafe; color: #1d4ed8; border-color: #bfdbfe; }
.statut-choice.badge-red { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }

.btn-outline { background: var(--input-bg); border-color: var(--border); color: var(--text); }
.btn-outline:hover { background: var(--hover-bg); }

.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #b91c1c; }

.btn-sm { padding: 6px 12px; font-size: 12.5px; }

/* ============ FORMS ============ */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label { font-size: 13px; font-weight: 600; color: var(--text); }

.form-control {
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: var(--input-bg);
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
}

textarea.form-control { resize: vertical; min-height: 80px; }

.form-actions { margin-top: 20px; display: flex; gap: 12px; justify-content: flex-end; }

.totals-box {
    max-width: 360px;
    margin-left: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    background: var(--card-bg);
}

.totals-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    min-width: 0;
}
.totals-row:last-child { margin-bottom: 0; }

.totals-label {
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
}

.totals-row .total-display {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-dark);
}

.totals-row .form-control {
    width: 160px;
    flex: 0 0 auto;
    text-align: right;
    background: var(--input-bg, var(--card-bg));
    color: var(--text);
}

.form-row-inline {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.field-error {
    font-size: 12px;
    color: var(--red);
    font-weight: 500;
}

.field-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

/* Bouton "+ Créer une personnalisation" (eléments <details>/<summary>) */
.perso-create { position: relative; }
.perso-create summary {
    list-style: none;
    cursor: pointer;
}
.perso-create summary::-webkit-details-marker { display: none; }
.perso-create-body {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 50;
    width: min(560px, 92vw);
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 16px;
}
.perso-create-body form { display: flex; flex-direction: column; gap: 14px; }

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 8px 16px;
}

.conso-fields {
    margin-top: 12px;
    padding: 16px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--card-bg) 60%, transparent);
}

.conso-fields-title {
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    margin: 0 0 12px;
}

.conso-fields .form-group {
    margin-bottom: 12px;
}

.conso-fields .form-group:last-child {
    margin-bottom: 0;
}

/* ============ DETAIL VIEW ============ */
.detail-grid {
    display: grid;
    gap: 0;
}

.detail-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.detail-value {
    font-size: 14px;
    color: var(--text);
}

@media (max-width: 600px) {
    .detail-row { grid-template-columns: 1fr; gap: 4px; }
    .detail-label { text-transform: none; font-size: 12px; }
}

/* ============ CONFIRM DELETE ============ */
.confirm-delete-box {
    text-align: center;
    padding: 32px 24px;
    max-width: 420px;
    margin: 0 auto;
}

.confirm-delete-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.7;
}

.confirm-delete-box p {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 24px;
    line-height: 1.5;
}

.confirm-delete-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* ============ SECTION HEAD ============ */
.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
    flex-wrap: wrap;
}

.page-head h2 { font-size: 20px; font-weight: 800; }
.page-head .subtitle { color: var(--text-muted); font-size: 13.5px; margin-top: 2px; }

/* ============ MODULE CARDS (Référentiels home) ============ */
.module-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
}

.module-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.module-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

[data-theme="dark"] .module-icon {
    background: linear-gradient(135deg, rgba(251,191,36,0.18), rgba(245,158,11,0.12));
}

.module-card:hover .module-icon {
    transform: scale(1.08);
}

.module-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.module-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}

.module-desc {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.3;
}

.module-count {
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 4px;
}

.module-arrow {
    font-size: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.15s ease, color 0.15s ease;
}

.module-card:hover .module-arrow {
    transform: translateX(4px);
    color: var(--accent-dark);
}

@media (max-width: 600px) {
    .module-card { padding: 16px; gap: 12px; }
    .module-icon { width: 44px; height: 44px; font-size: 20px; border-radius: 12px; }
    .module-title { font-size: 14px; }
}

/* ============ HEAD ACTIONS ============ */
.head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* ============ SEARCH FORM ============ */
.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-input {
    width: 220px;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    background: var(--input-bg);
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245,158,11,0.12);
}

@media (max-width: 600px) {
    .search-input { width: 140px; }
}

/* ============ ROW ACTIONS ============ */
.row-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}

/* ============ EMPTY STATE ============ */
.empty-state {
    padding: 48px 24px;
    text-align: center;
    color: var(--text-muted);
}

.empty-state p {
    font-size: 15px;
    margin-bottom: 16px;
}

/* ============ PAGINATION ============ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px solid var(--border);
}

.pagination-info {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 4px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
}

.page-link:hover:not(.disabled):not(.active) {
    background: var(--hover-bg);
    border-color: var(--accent);
    color: var(--accent-dark);
}

.page-link.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    cursor: default;
}

.page-link.disabled {
    color: var(--text-muted);
    opacity: 0.5;
    cursor: default;
}

@media (max-width: 600px) {
    .pagination { flex-direction: column; align-items: center; }
}

/* ============ MISC ============ */
.text-muted { color: var(--text-muted); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-accent { color: var(--accent-dark); }
.font-bold { font-weight: 700; }
.text-right { text-align: right; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.mt-3 { margin-top: 12px; }
.mt-2 { margin-top: 8px; }

/* ============ LIST TOOLBAR (filter + type button + search) ============ */
.list-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-select {
    min-width: 140px;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    background: var(--input-bg);
    color: var(--text);
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245,158,11,0.12);
}

/* ============ INPUT WITH BUTTON (+ modal trigger) ============ */
.input-with-btn {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.input-with-btn .form-control {
    flex: 1;
}

.input-with-btn .btn {
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 700;
    padding: 0 14px;
}

/* ============ MODAL ============ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay[hidden] { display: none; }

.modal {
    width: 100%;
    max-width: 440px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    animation: modal-in 0.18s ease;
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(-10px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

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

.modal-header h3 { font-size: 15px; font-weight: 700; }

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.modal-close:hover { background: var(--hover-bg); color: var(--red); }

.modal-body { padding: 20px; }

.modal-error {
    color: var(--red);
    font-size: 13px;
    font-weight: 500;
    margin-top: 12px;
    min-height: 18px;
}

.modal-body .form-actions { margin-top: 20px; }

/* ============ CALENDAR (filtre par date) ============ */
.modal-calendar { max-width: 360px; }
.modal-wide {
    max-width: 960px;
    width: calc(100% - 40px);
}

.calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.cal-title {
    font-weight: 700;
    font-size: 14px;
    min-width: 140px;
    text-align: center;
}

.cal-nav { width: 34px; padding: 6px 0; text-align: center; }

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.calendar-table th {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    padding: 4px 0 8px;
    text-align: center;
}

.calendar-table td { text-align: center; padding: 2px; }

.cal-day {
    width: 100%;
    height: 34px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.12s ease;
}

.cal-day:hover { background: var(--hover-bg); }

.cal-day.selected {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 700;
}

.cal-empty { pointer-events: none; }

.calendar-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.calendar-actions .btn:first-child { margin-right: auto; }

/* Responsive sidebar */
@media (max-width: 860px) {
    .sidebar, body.nav-collapsed .sidebar { width: 250px; transform: translateX(-100%); }
    .sidebar.open, body.nav-collapsed .sidebar.open { transform: translateX(0); box-shadow: 4px 0 24px rgba(15,23,42,0.15); }
    .main, body.nav-collapsed .main { margin-left: 0; }
    .nav-section { display: none; }
    body.nav-collapsed .brand-text { opacity: 1; width: auto; }
    body.nav-collapsed .sidebar-brand { justify-content: flex-start; padding: 20px 18px; }
    body.nav-collapsed .nav-link { justify-content: flex-start; padding: 9px 20px; gap: 12px; }
    body.nav-collapsed .nav-link .nav-label { display: inline; }
    body.nav-collapsed .logout-btn .nav-label { display: inline; }
    body.nav-collapsed .logout-btn { justify-content: flex-start; }
}

/* Lecture seule + aide de formulaire */
input[readonly] {
    background-color: var(--bg-muted, #f0f0f0);
    color: var(--text-muted, #888);
    cursor: not-allowed;
}
.form-hint {
    font-size: 12px;
    color: var(--text-muted, #999);
    margin-top: 4px;
}

/* ============ AUTOCOMPLÉTION ============ */
.autocomplete {
    position: relative;
    flex: 1;
    min-width: 0;
}
.autocomplete .ac-input {
    width: 100%;
}
.ac-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 240px;
    overflow-y: auto;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border, #d5d9e0);
    border-radius: var(--radius, 8px);
    box-shadow: var(--shadow-lg, 0 8px 24px rgba(15,23,42,0.12));
    z-index: 1200;
    text-align: left;
}
.ac-dropdown[hidden] { display: none; }
.ac-item {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border, #e8eaef);
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.35;
}
.ac-item:last-child { border-bottom: none; }
.ac-item:hover { background: var(--hover-bg, #f1f3f7); }
.ac-nom { display: block; font-weight: 600; color: var(--text, #1f2937); }
.ac-sub { display: inline-block; font-size: 12px; color: var(--text-muted, #6b7280); margin-right: 10px; }
.ac-extra { display: block; font-size: 12px; color: var(--text-muted, #6b7280); font-style: italic; }
.ac-empty {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-muted, #6b7280);
    cursor: default;
}

/* ============ VENTE FORM LAYOUT (2 colonnes, résumé sticky) ============ */
.vente-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.vente-form-main {
    min-width: 0;
}

.vente-form-summary {
    position: sticky;
    top: 16px;
}

.vente-form-summary .totals-box {
    max-width: none;
    margin-left: 0;
}

.vente-form-summary .form-actions {
    flex-direction: column;
    align-items: stretch;
}

.vente-form-summary .form-actions .btn {
    width: 100%;
    text-align: center;
}

@media (max-width: 1100px) {
    .vente-form-layout {
        grid-template-columns: 1fr;
    }
    .vente-form-summary {
        position: static;
    }
    .vente-form-summary .totals-box {
        max-width: 360px;
        margin-left: auto;
    }
    .vente-form-summary .form-actions {
        flex-direction: row;
        justify-content: flex-end;
    }
    .vente-form-summary .form-actions .btn {
        width: auto;
    }
}

/* ============ VENTE DETAIL (grille info compacte + paiements) ============ */
.detail-grid-mini {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 22px;
}

.detail-grid-mini .detail-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.detail-grid-mini .detail-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.detail-grid-mini .detail-value {
    font-size: 14px;
    color: var(--text);
}

.pay-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.pay-item:first-child { padding-top: 0; }
.pay-item:last-child { border-bottom: none; }

.pay-item-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pay-date { font-size: 12.5px; color: var(--text-muted); }
.pay-amount { margin-left: auto; font-weight: 700; white-space: nowrap; }
.pay-sub { font-size: 12px; color: var(--text-muted); }

.pay-totals {
    margin-top: 10px;
    border-top: 1px dashed var(--border);
    padding-top: 10px;
    display: grid;
    gap: 8px;
}

.pay-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}


/* ============ STOCKS : onglets du module ============ */
.page-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.page-tab {
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--input-bg);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s ease;
}

.page-tab:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.page-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.page-tab.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* ============ ÉTATS JOURNALIERS (bandeau date) ============ */
.date-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 20px;
}
.date-hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.date-hero-value {
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: capitalize;
}
.date-hero-sub {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 13px;
}
.date-hero-form {
    display: inline-flex;
    align-items: center;
    margin: 0;
}
.date-hero-form input[type="date"] {
    width: 150px;
    height: 30px;
    padding: 0 6px;
    font-size: 0.8rem;
}
.date-nav-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all .15s ease;
}
.date-nav-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.produits-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 220px;
}
.produit-puce {
    font-size: 12px;
    color: var(--text);
    white-space: nowrap;
}
.produit-puce b { font-weight: 700; }

.empty-hint {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 4px;
}

.etat-detail-table {
    margin: 0;
}

.etat-detail-table thead th {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    padding: 6px 10px;
    background: var(--table-head-bg);
    border-bottom: 1px solid var(--border);
}

.etat-detail-table tbody td {
    padding: 8px 10px;
    border-bottom: 1px dashed var(--border);
    vertical-align: middle;
}

.etat-detail-table tbody tr:last-child td {
    border-bottom: none;
}

.etat-detail-num {
    font-weight: 700;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.etat-detail-precisions {
    font-size: 13px;
}

.etat-detail-libelle {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
}

.etat-detail-totaux {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
    font-weight: 700;
    padding: 10px;
    background: var(--table-head-bg);
}

.etat-libelle-vert { color: var(--green); }
.etat-libelle-rouge { color: var(--red); }
.etat-libelle-bleu { color: var(--blue); }
.etat-libelle-violet { color: var(--purple); }
.etat-libelle-ambre { color: var(--accent-dark); }
.etat-libelle-gris { color: var(--text-muted); }

/* ============ BILLETAGE (ventes esp�ces) ============ */
.billetage-box {
    margin-top: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    background: var(--card-bg);
}
.billetage-title {
    text-align: center;
    color: #f97316;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 12px;
}
.billetage-head,
.billetage-row {
    display: grid;
    grid-template-columns: 84px 120px 1px 120px;
    gap: 6px;
    justify-content: center;
    align-items: center;
}
.billetage-head {
    margin-bottom: 6px;
    color: #f97316;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
}
.billetage-row {
    margin-bottom: 6px;
}
.billetage-valeur {
    min-width: 84px;
    font-weight: 700;
    text-align: right;
    font-size: 0.9rem;
}
.billetage-side {
    display: grid;
    grid-template-columns: 30px 48px 30px;
    gap: 6px;
    justify-content: center;
}
.billetage-side-sep {
    background: var(--border);
    align-self: stretch;
}
.billet-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    line-height: 1;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.billet-qte {
    width: 48px;
    min-width: 48px;
    height: 30px;
    text-align: center;
    padding: 0 4px;
    font-size: 0.85rem;
    -moz-appearance: textfield;
}
.billet-qte::-webkit-outer-spin-button,
.billet-qte::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.billetage-box .btn { flex: 0 0 auto; }
.billetage-resume {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
    text-align: center;
}
.billetage-resume-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.billetage-resume-row b { color: var(--text); font-size: 1rem; }
.billetage-monnaie-msg { color: var(--red); font-weight: 600; }
.billetage-monnaie-msg b { color: var(--red); font-size: 1.05rem; }
.billetage-status {
    margin-top: 4px;
    font-weight: 700;
    font-size: 0.85rem;
}
.billetage-status.ok { color: #16a34a; }
.billetage-status.warn { color: var(--red); }
