/* ============================================================
   SannaStok — thème sombre pro (inspiré Rentman / IntelliEvent)
   ============================================================ */

:root {
    --bg: #0B0B10;
    --bg-elevated: #111118;
    --bg-card: #16161F;
    --bg-hover: #1D1D28;
    --border: #25252F;
    --border-light: #33333F;
    --text: #e6edf3;
    --text-muted: #8b98a5;
    --text-dim: #5b6773;
    --accent: #8C4DFF;
    --accent-hover: #A775FF;
    --accent-dim: rgba(110, 26, 255, 0.18);
    --success: #22c55e;
    --success-dim: rgba(34, 197, 94, 0.15);
    --warning: #f59e0b;
    --warning-dim: rgba(245, 158, 11, 0.15);
    --danger: #ef4444;
    --danger-dim: rgba(239, 68, 68, 0.15);
    --info: #38bdf8;
    --info-dim: rgba(56, 189, 248, 0.15);
    --radius: 8px;
    --radius-lg: 12px;
    --sidebar-w: 240px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html, body {
    margin: 0; padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { margin: 0 0 4px; font-weight: 600; }
p { margin: 0 0 8px; }

/* ---------- layout shell ---------- */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--bg-elevated);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; bottom: 0; left: 0;
    z-index: 40;
    transition: transform .2s ease;
}

.main { margin-left: var(--sidebar-w); flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
    display: none;
    align-items: center; gap: 12px;
    padding: 14px 16px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 30;
}
.topbar .menu-btn {
    background: none; border: 1px solid var(--border-light); color: var(--text);
    border-radius: var(--radius); width: 38px; height: 38px; font-size: 16px; cursor: pointer;
}

.content { padding: 26px 30px 60px; max-width: 1400px; width: 100%; }

.page-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 16px; margin-bottom: 22px; flex-wrap: wrap;
}
.page-header h1 { font-size: 22px; }
.page-header .subtitle { color: var(--text-muted); font-size: 13px; }
.page-header .actions { display: flex; gap: 8px; flex-wrap: wrap; }

.sidebar-backdrop { display: none; }

@media (max-width: 960px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); box-shadow: var(--shadow); }
    .main { margin-left: 0; }
    .topbar { display: flex; }
    .content { padding: 18px 16px 50px; }
    .sidebar-backdrop.open {
        display: block; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 35;
    }
}

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 16px; border-radius: var(--radius);
    font-size: 13.5px; font-weight: 600; cursor: pointer;
    border: 1px solid var(--border-light); background: var(--bg-card); color: var(--text);
    transition: background .15s ease, border-color .15s ease;
    line-height: 1.2;
}
.btn:hover { background: var(--bg-hover); color: var(--text); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #06231a; font-weight: 600; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #06231a; }
.btn-success { background: var(--success); border-color: var(--success); color: #06210f; }
.btn-danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger-dim); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--bg-hover); }
.btn-sm { padding: 6px 11px; font-size: 12.5px; }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- cards / stats ---------- */
.grid { display: grid; gap: 16px; }
.stat-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 22px; }
.card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 18px;
}
.stat-tile { display: flex; flex-direction: column; gap: 6px; }
.stat-tile .stat-icon {
    width: 36px; height: 36px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center; font-size: 15px;
    margin-bottom: 4px;
}
.stat-tile .stat-value { font-size: 26px; font-weight: 700; }
.stat-tile .stat-label { color: var(--text-muted); font-size: 12.5px; }
.tone-accent { background: var(--accent-dim); color: var(--accent); }
.tone-success { background: var(--success-dim); color: var(--success); }
.tone-warning { background: var(--warning-dim); color: var(--warning); }
.tone-danger { background: var(--danger-dim); color: var(--danger); }
.tone-info { background: var(--info-dim); color: var(--info); }

.section-title {
    font-size: 14px; font-weight: 700; margin: 30px 0 12px;
    display: flex; align-items: center; justify-content: space-between;
}

/* ---------- badges ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
    letter-spacing: .01em; white-space: nowrap;
}
.badge-success { background: var(--success-dim); color: var(--success); }
.badge-info { background: var(--info-dim); color: var(--info); }
.badge-warning { background: var(--warning-dim); color: var(--warning); }
.badge-danger { background: var(--danger-dim); color: var(--danger); }
.badge-muted { background: var(--bg-hover); color: var(--text-muted); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
thead th {
    text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
    color: var(--text-dim); padding: 12px 16px; border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
}
tbody td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg-hover); }
.row-link { cursor: pointer; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.mono { font-family: 'SF Mono', Consolas, monospace; font-size: 12.5px; }

/* ---------- forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; color: var(--text-muted); }
.field .hint { font-size: 11.5px; color: var(--text-dim); margin-top: 5px; }
input[type=text], input[type=email], input[type=tel], input[type=password],
input[type=date], input[type=datetime-local], input[type=time], input[type=url], input[type=number], input[type=search], input[type=color],
input[type=file], select, textarea {
    width: 100%; padding: 10px 12px; border-radius: var(--radius);
    border: 1px solid var(--border-light); background: var(--bg-elevated); color: var(--text);
    font-size: 13.5px; font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; min-height: 80px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.checkbox-row { display: flex; align-items: center; gap: 9px; }
.checkbox-row input { width: auto; }
.form-actions { display: flex; gap: 10px; margin-top: 22px; }
.filters-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.filters-bar input, .filters-bar select { width: auto; min-width: 160px; }
.filters-bar input[type=search] { min-width: 220px; }

/* ---------- flash messages ---------- */
.flash { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 13.5px; font-weight: 500; }
.flash-success { background: var(--success-dim); color: var(--success); border: 1px solid rgba(34,197,94,.3); }
.flash-error { background: var(--danger-dim); color: var(--danger); border: 1px solid rgba(239,68,68,.3); }
.flash-warning { background: var(--warning-dim); color: var(--warning); border: 1px solid rgba(245,158,11,.3); }
.flash-info { background: var(--info-dim); color: var(--info); border: 1px solid rgba(56,189,248,.3); }

/* ---------- empty state ---------- */
.empty-state { text-align: center; padding: 50px 20px; color: var(--text-muted); }
.empty-state i { font-size: 30px; color: var(--text-dim); margin-bottom: 12px; display: block; }

/* ---------- misc components ---------- */
.avatar-sm {
    width: 30px; height: 30px; border-radius: 50%; object-fit: cover;
    background: var(--bg-hover); display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.thumb {
    width: 42px; height: 42px; border-radius: 8px; object-fit: cover;
    background: var(--bg-hover); display: inline-flex; align-items: center; justify-content: center;
    color: var(--text-dim); flex-shrink: 0;
}
.cell-with-thumb { display: flex; align-items: center; gap: 12px; }

.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 960px) { .detail-grid { grid-template-columns: 1fr; } }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; font-size: 13.5px; }
.kv dt { color: var(--text-dim); }
.kv dd { margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.timeline li:last-child { border-bottom: none; }
.timeline .t-icon { width: 26px; height: 26px; border-radius: 50%; background: var(--bg-hover); display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; margin-top: 1px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px;
    background: var(--bg-elevated); border: 1px solid var(--border-light); border-radius: 999px; font-size: 12.5px;
}
.chip button { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 13px; padding: 4px; }
.chip button:hover { color: var(--danger); }
.inline-form { display: inline; }

/* ---------- statistiques : barres horizontales ---------- */
.bar-list { display: flex; flex-direction: column; gap: 12px; }
.bar-row .bar-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 5px; font-size: 13px; }
.bar-row .bar-head .bar-name { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .bar-head .bar-num { color: var(--text-muted); font-size: 12.5px; white-space: nowrap; flex-shrink: 0; }
.bar-row .bar-track { height: 8px; border-radius: 5px; background: var(--bg-hover); overflow: hidden; }
.bar-row .bar-fill { height: 100%; border-radius: 5px; background: var(--accent); }
.stats-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 960px) { .stats-grid-2 { grid-template-columns: 1fr; } }
.stats-kpi-row { display: flex; align-items: baseline; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; }
.stats-kpi-row:last-child { border-bottom: none; }
.stats-kpi-row .k { color: var(--text-muted); }
.stats-kpi-row .v { font-weight: 700; }
.month-bars { display: flex; align-items: flex-end; gap: 10px; height: 140px; padding-top: 10px; }
.month-bars .mb-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; height: 100%; }
.month-bars .mb-bar { width: 100%; max-width: 34px; border-radius: 6px 6px 2px 2px; background: var(--accent); min-height: 3px; transition: height .2s; }
.month-bars .mb-count { font-size: 12px; font-weight: 700; color: var(--text); }
.month-bars .mb-label { font-size: 11px; color: var(--text-dim); }

/* ---------- auth page ---------- */
.auth-wrap {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: radial-gradient(ellipse 60% 50% at 50% 30%, rgba(37,235,174,.10), transparent 70%), var(--bg);
    padding: 20px;
}
.auth-card { width: 100%; max-width: 380px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); }

.auth-card h1 { text-align: center; font-size: 19px; }
.auth-card .subtitle { text-align: center; color: var(--text-muted); font-size: 13px; margin-bottom: 24px; }

/* ---------- print label ---------- */
.label-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #eef1f4; padding: 30px; }
.label-toolbar { position: fixed; top: 16px; right: 16px; display: flex; gap: 8px; }
.label-card {
    background: #fff; color: #111; border-radius: 14px; padding: 26px 30px;
    width: 300px; text-align: center; box-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.label-card .label-brand { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #666; margin-bottom: 10px; font-weight: 700; }
.label-card svg { width: 100%; height: auto; }
.label-card .label-name { font-size: 16px; font-weight: 800; margin-top: 12px; color: #111; }
.label-card .label-code { font-family: 'SF Mono', Consolas, monospace; font-size: 13px; color: #555; margin-top: 4px; letter-spacing: .05em; }
.label-card .label-barcode { margin-top: 14px; padding-top: 14px; border-top: 1px dashed #ddd; }
@media print {
    body { background: #fff; }
    .label-toolbar { display: none; }
    .label-page { padding: 0; background: #fff; min-height: auto; }
    .label-card { box-shadow: none; }
}

/* ---------- liste de matériel imprimable ---------- */
.packing-toolbar { position: fixed; top: 16px; right: 16px; display: flex; gap: 8px; }
.packing-page { min-height: 100vh; background: #eef1f4; padding: 30px; color: #111; }
.packing-sheet { max-width: 760px; margin: 0 auto; background: #fff; border-radius: 14px; padding: 34px 38px; box-shadow: 0 8px 30px rgba(0,0,0,.18); }
.packing-sheet h1 { font-size: 20px; margin: 0 0 4px; }
.packing-sheet .packing-sub { color: #666; font-size: 13px; margin-bottom: 22px; }
.packing-sheet table { width: 100%; border-collapse: collapse; font-size: 13px; }
.packing-sheet th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #888; border-bottom: 2px solid #eee; padding: 8px 6px; }
.packing-sheet td { padding: 9px 6px; border-bottom: 1px solid #eee; vertical-align: top; }
.packing-sheet .pk-check { width: 22px; }
.packing-sheet .pk-box { width: 16px; height: 16px; border: 1.5px solid #999; border-radius: 4px; display: inline-block; }
@media print {
    .packing-toolbar { display: none; }
    .packing-page { padding: 0; background: #fff; }
    .packing-sheet { box-shadow: none; border-radius: 0; max-width: none; }
}

/* ---------- calendrier ---------- */
.cal-head-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px; }
.cal-head-row div { text-align: center; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-dim); padding: 4px 0; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-day { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 6px; min-height: 92px; display: flex; flex-direction: column; gap: 4px; }
.cal-day.out { opacity: .35; }
.cal-day.today { border-color: var(--accent); }
.cal-day-num { font-size: 12px; color: var(--text-dim); }
.cal-day.today .cal-day-num { color: var(--accent); font-weight: 700; }
.cal-chip { display: block; font-size: 10.5px; padding: 2px 6px; border-radius: 5px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 720px) {
    .cal-day { min-height: 60px; }
    .cal-chip { font-size: 9.5px; }
}

/* ---------- mobile scan layout ---------- */
.mobile-shell { max-width: 480px; margin: 0 auto; min-height: 100vh; padding-bottom: 40px; }
.mobile-header { padding: 18px 18px 10px; display: flex; align-items: center; gap: 10px; }
.mobile-header .mobile-logo { height: 22px; width: auto; }
.mobile-content { padding: 6px 18px 30px; }
.equip-hero { text-align: center; padding: 10px 0 20px; }
.equip-hero .thumb-lg { width: 100px; height: 100px; border-radius: 16px; margin: 0 auto 14px; object-fit: cover; background: var(--bg-hover); display: flex; align-items: center; justify-content: center; font-size: 34px; color: var(--text-dim); }
.equip-hero h1 { font-size: 19px; }
.status-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 16px 0; }
.status-actions button { padding: 12px 8px; font-size: 12px; }

/* ============================================================
   Ajouts SannaStudio : marque, menu groupé, rôles, messages
   ============================================================ */
@font-face { font-family: "Inter"; src: url("../fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
html, body { font-family: "Inter", "Segoe UI", system-ui, sans-serif; }
.btn-primary { background: #6E1AFF; border-color: #6E1AFF; color: #fff; }
.btn-primary:hover { background: #8C4DFF; border-color: #8C4DFF; color: #fff; }

.admin-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 17px; }
.admin-brand:hover { color: var(--text); }
.admin-brand img { width: 30px; height: 30px; }
.admin-brand b { font-weight: 700; }

.nav-group { margin: 16px 12px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }

.nav-count { margin-left: auto; background: #6E1AFF; color: #fff; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }

.role-badge { background: color-mix(in srgb, var(--rc, #6E1AFF) 18%, transparent); color: color-mix(in srgb, var(--rc, #6E1AFF) 70%, white); border: 1px solid color-mix(in srgb, var(--rc, #6E1AFF) 40%, transparent); }

.perm-list { display: grid; gap: 8px; margin: 18px 0 8px; }
.perm { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: border-color .15s, background .15s; }
.perm:hover { border-color: var(--border-light); background: var(--bg-hover); }
.perm:has(input:checked) { border-color: #6E1AFF; background: var(--accent-dim); }
.perm input { margin-top: 3px; accent-color: #6E1AFF; width: 16px; height: 16px; }
.perm strong { display: block; }
.perm small { color: var(--text-muted); }
.perm.is-locked { opacity: .5; cursor: not-allowed; }

.tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--text-muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--text); border-color: #6E1AFF; }

.inbox { padding: 0; overflow: hidden; }
.inbox-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--text); }
.inbox-row:last-child { border-bottom: 0; }
.inbox-row:hover { background: var(--bg-hover); color: var(--text); }
.inbox-row.is-unread { box-shadow: inset 3px 0 0 #6E1AFF; }
.inbox-row.is-unread strong { color: #fff; }
.inbox-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.inbox-main > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-meta { display: flex; align-items: center; gap: 8px; flex: none; font-size: 12px; }
.inbox-row--compact { padding: 10px 0; }
.card .inbox-row--compact:hover { background: none; }
.inbox-row .chip { margin-left: 6px; font-size: 11px; }

.todo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
@media (max-width: 900px) { .todo-grid { grid-template-columns: 1fr; } }

.chat { display: flex; flex-direction: column; gap: 12px; max-height: 60vh; overflow-y: auto; }
.bubble { max-width: 78%; padding: 10px 14px; border-radius: 14px; background: var(--bg-hover); border: 1px solid var(--border); }
.bubble-them { align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble-me { align-self: flex-end; background: rgba(110, 26, 255, .22); border-color: rgba(140, 77, 255, .45); border-bottom-right-radius: 4px; }
.bubble-head { font-size: 12px; margin-bottom: 4px; display: flex; gap: 8px; align-items: baseline; }
.bubble-body { white-space: normal; word-wrap: break-word; }
.bubble-read { font-size: 11px; text-align: right; margin-top: 4px; }
.chat-reply { margin-top: 12px; }
.chat-reply textarea { width: 100%; resize: vertical; }
.chat-reply-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
tr.is-new td:first-child { box-shadow: inset 3px 0 0 #6E1AFF; }

.field input[type=color] { height: 40px; padding: 4px; cursor: pointer; }

/* Plateformes */
.secret-card { border-color: rgba(140, 77, 255, .55); background: linear-gradient(180deg, rgba(110,26,255,.12), var(--bg-card)); margin-bottom: 18px; }
.secret-row { display: grid; grid-template-columns: 170px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--border); }
.secret-row label { color: var(--text-muted); font-size: 12.5px; }
.secret-row code { font: 13px/1.4 ui-monospace, Consolas, monospace; background: var(--bg); border: 1px solid var(--border); padding: 8px 10px; border-radius: 6px; overflow-x: auto; white-space: nowrap; }
.secret-row code.is-masked { color: transparent; text-shadow: 0 0 8px rgba(255,255,255,.7); user-select: none; }
.cat-field { position: relative; }
.cat-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 10; background: var(--bg-elevated); border: 1px solid var(--border-light); border-radius: 8px; margin-top: 4px; overflow: hidden; box-shadow: var(--shadow); }
.cat-list button { display: block; width: 100%; text-align: left; padding: 9px 12px; background: none; border: 0; color: var(--text); cursor: pointer; font: inherit; }
.cat-list button:hover { background: var(--bg-hover); }
@media (max-width: 700px) { .secret-row { grid-template-columns: 1fr; } }

/* Statut */
.status-top { display: flex; align-items: center; gap: 14px; }
.pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulseG 2s infinite; }
.pulse.is-bad { background: var(--danger); animation-name: pulseR; }
.pulse.is-warn { background: var(--warning); animation: none; }
@keyframes pulseG { 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
@keyframes pulseR { 0% { box-shadow: 0 0 0 0 rgba(239,68,68,.6); } 70% { box-shadow: 0 0 0 10px rgba(239,68,68,0); } 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); } }
.checks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 20px; }
.check-card { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card); transition: border-color .3s; }
.check-card[data-state="ok"] { border-left: 3px solid var(--success); }
.check-card[data-state="warn"] { border-left: 3px solid var(--warning); }
.check-card[data-state="bad"] { border-left: 3px solid var(--danger); }
.check-card[data-state="off"] { border-left: 3px solid var(--text-dim); }
.check-card .ci { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--bg-hover); color: var(--text-muted); flex: none; }
.check-card[data-state="ok"] .ci { color: var(--success); background: var(--success-dim); }
.check-card[data-state="warn"] .ci { color: var(--warning); background: var(--warning-dim); }
.check-card[data-state="bad"] .ci { color: var(--danger); background: var(--danger-dim); }
.check-card strong { display: block; }
.check-card .cv { font-size: 12.5px; color: var(--text-muted); word-break: break-word; }
.check-card .cms { margin-left: auto; font: 12px ui-monospace, Consolas, monospace; color: var(--text-dim); white-space: nowrap; }
.feed { max-height: 460px; overflow-y: auto; padding: 0; }
.feed-row { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 13px; }
.feed-row.is-new { animation: flashIn 1.6s ease; }
@keyframes flashIn { from { background: rgba(110,26,255,.25); } to { background: transparent; } }
.feed-row .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); justify-self: center; }
.feed-row .dot.fail { background: var(--danger); }
.feed-row .dot.out { background: var(--text-dim); }
.feed-row small { color: var(--text-dim); }
.live-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); }
.kpi-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card); }
.kpi b { display: block; font-size: 26px; font-variant-numeric: tabular-nums; }
.kpi span { color: var(--text-muted); font-size: 12.5px; }

/* ============================================================
   Barre latérale v2
   ============================================================ */
:root { --sidebar-w: 252px; --sidebar-mini: 72px; }
.sidebar { width: var(--sidebar-w); background: #0E0E15; border-right: 1px solid rgba(255,255,255,.06); transition: width .22s ease, transform .2s ease; }
.main { transition: margin-left .22s ease; }

.sb-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 68px; padding: 0 14px 0 20px; border-bottom: 1px solid rgba(255,255,255,.06); flex: none; }
.sb-logo { display: flex; align-items: center; min-width: 0; }
.sb-logo-full { height: 26px; width: auto; display: block; }
.sb-logo-mini { width: 30px; height: auto; display: none; }
.sb-collapse { width: 30px; height: 30px; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--text-dim); cursor: pointer; display: grid; place-items: center; flex: none; transition: all .15s; }
.sb-collapse:hover { color: var(--text); background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.08); }

.sb-nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 12px 12px 16px; scrollbar-width: thin; scrollbar-color: transparent transparent; }
.sb-nav:hover { scrollbar-color: rgba(255,255,255,.14) transparent; }
.sb-nav::-webkit-scrollbar { width: 6px; }
.sb-nav::-webkit-scrollbar-track { background: transparent; }
.sb-nav::-webkit-scrollbar-thumb { background: transparent; border-radius: 3px; }
.sb-nav:hover::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); }

.nav-group { margin: 18px 10px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #5C5C72; white-space: nowrap; }
.nav-group:first-of-type { margin-top: 14px; }

.nav-item { position: relative; display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 10px; margin: 1px 0; border-radius: 9px; color: #9A9AB0; font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: background .15s, color .15s; }
.nav-item:hover { background: rgba(255,255,255,.045); color: #EDEDF5; }
.nav-ico { width: 20px; display: grid; place-items: center; flex: none; font-size: 14.5px; }
.nav-label { overflow: hidden; text-overflow: ellipsis; }
.nav-item.active { background: linear-gradient(90deg, rgba(110,26,255,.22), rgba(110,26,255,.06)); color: #fff; }
.nav-item.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: #8C4DFF; box-shadow: 0 0 12px rgba(140,77,255,.8); }
.nav-item.active .nav-ico { color: #A775FF; }
.nav-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #6E1AFF; color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

.sb-foot { flex: none; padding: 10px 12px 12px; border-top: 1px solid rgba(255,255,255,.06); }
.nav-item--site { color: #7A7A90; margin-bottom: 8px; }
.sb-user { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.05); }

.sb-who { min-width: 0; display: grid; line-height: 1.25; }
.sb-who strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-who span { font-size: 11.5px; color: #7A7A90; }
.sb-user form { margin-left: auto; }
.sb-user button { width: 30px; height: 30px; border-radius: 8px; border: 0; background: none; color: #7A7A90; cursor: pointer; }
.sb-user button:hover { color: #FF6B6B; background: rgba(255,59,59,.1); }

/* Mode réduit (icônes seulement) */
.sb-collapsed .sidebar { width: var(--sidebar-mini); }
.sb-collapsed .main { margin-left: var(--sidebar-mini); }
.sb-collapsed .sb-head { padding: 0; justify-content: center; flex-direction: column; gap: 6px; height: 96px; }
.sb-collapsed .sb-logo-full { display: none; }
.sb-collapsed .sb-logo-mini { display: block; }
.sb-collapsed .sb-collapse i { transform: rotate(180deg); }
.sb-collapsed .nav-label, .sb-collapsed .sb-who, .sb-collapsed .sb-user form { display: none; }
.sb-collapsed .nav-group { height: 1px; margin: 12px 8px; background: rgba(255,255,255,.07); font-size: 0; }
.sb-collapsed .nav-item { justify-content: center; padding: 0; }
.sb-collapsed .nav-count { position: absolute; top: 3px; right: 6px; min-width: 16px; height: 16px; font-size: 9.5px; padding: 0 4px; }
.sb-collapsed .sb-user { justify-content: center; padding: 8px 0; background: none; border: 0; }

@media (max-width: 960px) {
    .sb-collapsed .sidebar { width: var(--sidebar-w); }
    .sb-collapsed .main { margin-left: 0; }
    .sb-collapse { display: none; }
}

/* ---------- Temps réel ---------- */
.live-toast { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: #16161F; border: 1px solid rgba(140,77,255,.5); box-shadow: 0 12px 30px rgba(0,0,0,.5); font-size: 13px; color: #EDEDF5; transform: translateY(20px); opacity: 0; transition: all .3s; pointer-events: none; }
.live-toast.show { transform: none; opacity: 1; }
.live-toast i { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 4px rgba(34,197,94,.2); }

@keyframes freshGlow { 0% { box-shadow: 0 0 0 2px rgba(140,77,255,.7); } 100% { box-shadow: 0 0 0 2px rgba(140,77,255,0); } }

/* ============================================================
   Identité SannaStaff (vert) pour l'espace équipe
   ============================================================ */
:root {
    --accent: #25EBAE;
    --accent-hover: #5CF1C4;
    --accent-dim: rgba(37, 235, 174, 0.14);
    --staff: #25EBAE;
}
.btn-primary { background: #25EBAE; border-color: #25EBAE; color: #06231A; font-weight: 700; }
.btn-primary:hover { background: #5CF1C4; border-color: #5CF1C4; color: #06231A; }
.nav-item.active { background: linear-gradient(90deg, rgba(37,235,174,.16), rgba(37,235,174,.04)); }
.nav-item.active::before { background: #25EBAE; box-shadow: 0 0 12px rgba(37,235,174,.7); }
.nav-item.active .nav-ico { color: #25EBAE; }
.nav-count { background: #25EBAE; color: #06231A; }

.tabs a.active { border-color: #25EBAE; }
.perm:has(input:checked) { border-color: #25EBAE; background: rgba(37,235,174,.08); }
.perm input { accent-color: #25EBAE; }
.inbox-row.is-unread { box-shadow: inset 3px 0 0 #25EBAE; }
tr.is-new td:first-child { box-shadow: inset 3px 0 0 #25EBAE; }
.bubble-me { background: rgba(37,235,174,.14); border-color: rgba(37,235,174,.4); }
.secret-card { border-color: rgba(37,235,174,.5); background: linear-gradient(180deg, rgba(37,235,174,.08), var(--bg-card)); }
.live-toast { border-color: rgba(37,235,174,.55); }
.sb-logo-full { height: 24px; }

body { --ui-accent: #25EBAE; --ui-on-accent: #06231a; }

/* ---------- Prix de location (fiche équipement) ---------- */
.rent-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.rent-card__head h3 { margin: 0; }
.rent-card__head h3 i { color: var(--accent, #25EBAE); margin-right: 4px; }
.rent-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.rent-price b { font-size: 34px; font-weight: 800; letter-spacing: -.02em; color: var(--accent, #25EBAE); line-height: 1; }
.rent-price span { color: var(--text-muted, #9aa); }
.rent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.rent-grid div { padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--border); display: grid; gap: 2px; }
.rent-grid span { font-size: 11.5px; color: var(--text-muted, #9aa); }
.rent-grid strong { font-size: 14px; }
.rent-roi { margin-bottom: 14px; }
.rent-roi__top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.rent-roi__bar { height: 8px; border-radius: 8px; background: rgba(255,255,255,.07); overflow: hidden; margin-bottom: 6px; }
.rent-roi__bar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #25EBAE, #6E1AFF); }
.rent-form { display: flex; gap: 8px; }
.rent-input { position: relative; flex: 1; }
.rent-input input { width: 100%; padding-right: 70px !important; }
.rent-input span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--text-muted, #9aa); pointer-events: none; }
.text-success { color: #25EBAE; }
.price-cell { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Fenêtre « Nouveau » (équipement ou kit) ---------- */
.choice { padding: 30px 28px 28px; }
.choice h3 { margin: 0 0 6px; font-size: 20px; }
.choice > p { margin: 0 0 20px; color: #a8a8bc; font-size: 14px; }
.choice__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choice__card { display: grid; gap: 6px; align-content: start; padding: 22px 20px; border-radius: 14px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.02); color: inherit; text-decoration: none; transition: border-color .15s, transform .15s, background .15s; }
.choice__card:hover { border-color: #25EBAE; background: rgba(37,235,174,.05); transform: translateY(-2px); }
.choice__card strong { font-size: 17px; }
.choice__card small { color: #a8a8bc; font-size: 13px; line-height: 1.5; }
.choice__card em { margin-top: 8px; font-style: normal; font-weight: 700; font-size: 13px; color: #25EBAE; }
.choice__ic { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 8px; border-radius: 12px; background: rgba(37,235,174,.12); color: #25EBAE; font-size: 20px; }
.choice__ic--kit { background: rgba(110,26,255,.16); color: #a98bff; }
@media (max-width: 600px) { .choice__grid { grid-template-columns: 1fr; } }
.fleet-kpis { margin-bottom: 18px; }

/* ---------- Création / modification d'un kit ---------- */
.kit-pick__bar { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.kit-search { position: relative; flex: 1; min-width: 200px; }
.kit-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 13px; }
.kit-search input { width: 100%; padding-left: 34px !important; }
.kit-only { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); cursor: pointer; white-space: nowrap; }
.kit-group + .kit-group { margin-top: 16px; }
.kit-group__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.kit-link { background: none; border: 0; color: #25EBAE; font: 600 12px inherit; cursor: pointer; text-transform: none; letter-spacing: 0; }
.kit-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; margin-bottom: 6px; border-radius: 10px; border: 1px solid var(--border); cursor: pointer; transition: border-color .12s, background .12s; }
.kit-item:hover { border-color: rgba(37,235,174,.4); }
.kit-item.is-on { border-color: #25EBAE; background: rgba(37,235,174,.06); }
.kit-item input { position: absolute; opacity: 0; pointer-events: none; }
.kit-item__chk { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--border); font-size: 11px; color: transparent; transition: all .12s; }
.kit-item.is-on .kit-item__chk { background: #25EBAE; border-color: #25EBAE; color: #06231a; }
.kit-item__txt { flex: 1; min-width: 0; display: grid; }
.kit-item__txt small { color: var(--text-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kit-item[hidden], .kit-group[hidden] { display: none; }
.kit-side { position: sticky; top: 84px; }
.kit-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 14px; }
.kit-sum div { padding: 12px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--border); display: grid; }
.kit-sum b { font-size: 22px; color: #25EBAE; }
.kit-sum span { font-size: 12px; color: var(--text-muted); }
.rent-total { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.rent-total div { padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--border); display: grid; }
.rent-total span { font-size: 11.5px; color: var(--text-muted); }
.rent-total strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.rent-total .is-big { border-color: rgba(37,235,174,.4); background: rgba(37,235,174,.06); }
.rent-total .is-big strong { color: #25EBAE; font-size: 18px; }
@media (max-width: 600px) { .rent-total { grid-template-columns: 1fr; } }

/* ==========================================================
   Barre du haut staff : recherche, créer, notifications, messages, profil
   ========================================================== */
.topbar.st-top { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 26px; background: rgba(11,11,16,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 40; }
.st-top .menu-btn { display: none; }
.st-search { position: relative; flex: 1; max-width: 560px; }
.st-search > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-dim); font-size: 13px; pointer-events: none; }
.st-search input { width: 100%; height: 40px; padding: 0 44px 0 38px !important; border-radius: 10px !important; background: var(--bg-card) !important; border: 1px solid var(--border-light) !important; font-size: 13.5px; }
.st-search input:focus { border-color: #25EBAE !important; box-shadow: 0 0 0 3px rgba(37,235,174,.15); outline: none; }
.st-search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); padding: 1px 7px; border-radius: 5px; border: 1px solid var(--border-light); font: 600 11px inherit; color: var(--text-dim); }
.st-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.st-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; min-width: 40px; padding: 0 11px; border-radius: 10px; border: 1px solid var(--border-light); background: var(--bg-card); color: var(--text); font: 600 13px inherit; cursor: pointer; transition: border-color .15s; }
.st-btn:hover, .st-dd.is-open > .st-btn { border-color: #25EBAE; }
.st-btn i { font-size: 15px; }
.st-btn--create { background: #25EBAE; border-color: #25EBAE; color: #06231a; padding: 0 14px; }
.st-btn--create:hover, .st-dd.is-open > .st-btn--create { filter: brightness(1.08); }
.st-dot { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 18px; text-align: center; border: 2px solid var(--bg); box-sizing: content-box; }
.st-dd { position: relative; }
.st-dd__menu { position: absolute; right: 0; top: calc(100% + 10px); width: 260px; border-radius: 14px; background: #13131C; border: 1px solid var(--border-light); box-shadow: 0 24px 60px rgba(0,0,0,.55); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .15s, transform .15s, visibility .15s; overflow: hidden; z-index: 50; }
.st-dd__menu--wide { width: 360px; }
.st-dd.is-open .st-dd__menu { opacity: 1; visibility: visible; transform: none; }
.st-dd__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 14px 16px 11px; border-bottom: 1px solid var(--border); }
.st-dd__head > div { display: grid; }
.st-dd__head small { color: var(--text-muted); font-size: 12px; }
.st-link { background: none; border: 0; padding: 0; color: #25EBAE; font: 700 12.5px inherit; cursor: pointer; }
.st-link:hover { color: #fff; }
.st-dd__stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--border); }
.st-dd__stats div { padding: 10px 4px; text-align: center; }
.st-dd__stats div + div { border-left: 1px solid var(--border); }
.st-dd__stats b { display: block; font-size: 16px; }
.st-dd__stats span { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.st-dd__list { max-height: 360px; overflow-y: auto; }
.st-dd__empty { margin: 0; padding: 20px 16px; color: var(--text-muted); font-size: 13px; }
.st-noti { position: relative; display: flex; gap: 11px; padding: 12px 16px; border-bottom: 1px solid var(--border); color: inherit; }
.st-noti:hover { background: rgba(255,255,255,.03); }
.st-noti.is-new::before { content: ""; position: absolute; left: 6px; top: 22px; width: 6px; height: 6px; border-radius: 50%; background: #25EBAE; }
.st-noti__ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--bg-hover); color: var(--text-muted); font-size: 14px; }
.st-noti__ic--av { border-radius: 50%; background: linear-gradient(135deg, #6E1AFF, #A775FF); color: #fff; font-weight: 800; }
.st-noti--violet .st-noti__ic { background: var(--accent-dim); color: #a98bff; }
.st-noti--green .st-noti__ic { background: rgba(37,235,174,.12); color: #25EBAE; }
.st-noti--amber .st-noti__ic { background: var(--warning-dim); color: var(--warning); }
.st-noti--live .st-noti__ic { background: var(--danger); color: #fff; }
.st-noti__txt { min-width: 0; display: grid; line-height: 1.35; }
.st-noti__txt strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-noti__txt span { font-size: 12.5px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-noti__txt small { margin-top: 2px; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
.st-dd__foot { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 12px; font-size: 13px; font-weight: 700; color: #25EBAE; }
.st-dd__foot:hover { background: rgba(255,255,255,.03); color: #fff; }
.st-dd__nav { display: grid; padding: 7px; }
.st-dd__nav a { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 8px; color: var(--text); font-size: 13.5px; font-weight: 600; }
.st-dd__nav a:hover { background: rgba(37,235,174,.1); color: #fff; }
.st-dd__nav i { width: 16px; text-align: center; color: #25EBAE; }
.st-dd__who { display: flex; align-items: center; gap: 11px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.st-dd__who > div { min-width: 0; display: grid; }
.st-dd__who small { color: var(--text-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.st-dd__out { margin: 0; padding: 8px 11px 11px; border-top: 1px solid var(--border); }
.st-dd__out button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 9px; border: 1px solid rgba(239,68,68,.35); background: rgba(239,68,68,.08); color: #ff7b7b; font: 700 13px inherit; cursor: pointer; }
.st-dd__out button:hover { background: rgba(239,68,68,.16); }
.st-me { display: flex; align-items: center; gap: 9px; padding: 3px 10px 3px 3px; border-radius: 11px; border: 1px solid transparent; background: none; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.st-me:hover, .st-dd.is-open .st-me { border-color: var(--border-light); background: var(--bg-card); }
.st-me__txt { display: grid; line-height: 1.2; max-width: 160px; }
.st-me__txt strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-me__txt small { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.st-av { width: 34px; height: 34px; flex: none; border-radius: 50%; object-fit: cover; border: 2px solid rgba(37,235,174,.35); }
.st-av--ini { display: inline-grid; place-items: center; background: linear-gradient(135deg, #1BB887, #25EBAE); color: #06231a; font-weight: 800; font-size: 12.5px; }
.st-av--lg { width: 44px; height: 44px; font-size: 15px; }
.st-av--xl { width: 96px; height: 96px; font-size: 30px; border-width: 3px; }
.sb-av { width: 34px; height: 34px; border-radius: 10px; }
.sb-avatar-link { display: contents; }
@media (max-width: 960px) {
    .topbar.st-top { padding: 0 14px; }
    .st-top .menu-btn { display: inline-grid; place-items: center; }
}
@media (max-width: 720px) {
    .st-search, .st-me__txt, .st-btn--create span { display: none; }
    .st-dd { position: static; }
    .st-dd__menu, .st-dd__menu--wide { position: fixed; left: 10px; right: 10px; top: 70px; width: auto; }
}

/* pages Activité / Recherche / Profil */
.act-list { list-style: none; margin: 0; padding: 0; }
.act-day { margin: 18px 0 6px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #25EBAE; }
.act-day:first-child { margin-top: 0; }
.act-list .st-noti { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 6px; align-items: center; }
.act-list .st-noti time { margin-left: auto; font-size: 12px; color: var(--text-dim); white-space: nowrap; }
.search-group + .search-group { margin-top: 18px; }
.profile-hero { display: flex; align-items: center; gap: 22px; margin-bottom: 18px; }
.profile-hero__txt { flex: 1; }
.profile-hero__txt h2 { margin: 0; }
.profile-hero__act { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
@media (max-width: 720px) { .profile-hero { flex-direction: column; text-align: center; } }

/* ---------- Soumissions / factures ---------- */
.lines-table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.lines-table th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); padding: 6px; border-bottom: 1px solid var(--border); }
.lines-table td { padding: 6px; vertical-align: top; border-bottom: 1px solid var(--border); }
.lines-table textarea { width: 100%; min-height: 38px; resize: none; overflow: hidden; }
.lines-table input { width: 100%; }
.lines-table.ro td { padding: 9px 6px; }
.quote-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.quote-presets select { font-size: 12.5px; padding: 6px 8px; max-width: 220px; }
.quote-side { position: sticky; top: 84px; }
.quote-tot { margin: 6px 0 14px; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--border); }
.quote-tot div { display: flex; justify-content: space-between; padding: 3px 0; font-size: 13.5px; }
.quote-tot .big { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 8px; font-size: 18px; }
.quote-tot .big strong { color: #25EBAE; }
.inv-row { display: grid; grid-template-columns: 130px 1fr auto auto 110px; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); color: inherit; }
.inv-row:last-child { border-bottom: 0; }
.inv-row strong { text-align: right; }
.inv-big { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.inv-big b { font-size: 32px; color: #25EBAE; }
.inv-big span { color: var(--text-muted); }
.small-supplier { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; font-size: 13.5px; }
.small-supplier i { color: #25EBAE; font-size: 18px; }
.rev-chart { margin-bottom: 18px; }
.bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; height: 170px; align-items: end; }
.bar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.bar i { width: 100%; max-width: 38px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #25EBAE, #1a9f78); }
.bar span { font-size: 11px; color: var(--text-muted); }
.bar em { position: absolute; top: -2px; font-style: normal; font-size: 10.5px; color: var(--text-muted); }
.flash-info { background: var(--info-dim); border: 1px solid rgba(56,189,248,.35); color: #bfe8ff; }
@media (max-width: 700px) { .inv-row { grid-template-columns: 1fr auto; } .inv-row > span:nth-child(2), .inv-row > span:nth-child(3) { display: none; } }
.check-field span { display: flex; gap: 8px; align-items: center; } .check-field input { width: auto !important; }

/* ---------- Checklist départ / retour ---------- */
.ck-top { position: sticky; top: 72px; z-index: 5; margin-bottom: 14px; }
.ck-progress { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.ck-progress__txt { white-space: nowrap; } .ck-progress__txt b { font-size: 26px; color: #25EBAE; } .ck-progress__txt span { color: var(--text-muted); }
.ck-bar { flex: 1; height: 10px; border-radius: 10px; background: rgba(255,255,255,.07); overflow: hidden; }
.ck-bar i { display: block; height: 100%; background: linear-gradient(90deg, #25EBAE, #6E1AFF); transition: width .3s; }
.ck-scan { position: relative; display: flex; gap: 8px; }
.ck-scan > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.ck-scan input { flex: 1; height: 48px; padding-left: 40px !important; font-size: 16px; }
.ck-msg { min-height: 22px; margin-top: 8px; font-weight: 600; font-size: 14px; }
.ck-msg.is-ok { color: #25EBAE; } .ck-msg.is-bad { color: #ff7b7b; }
.ck-list { display: grid; gap: 8px; }
.ck-item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-card); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.ck-item:hover { border-color: rgba(37,235,174,.4); }
.ck-item.is-on { border-color: #25EBAE; background: rgba(37,235,174,.07); }
.ck-item.is-on strong { text-decoration: line-through; text-decoration-color: rgba(255,255,255,.3); color: var(--text-muted); }
.ck-item.flash { animation: ckFlash .7s; }
@keyframes ckFlash { 0% { background: rgba(37,235,174,.4); } }
.ck-item__chk { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; border: 2px solid var(--border-light); color: transparent; }
.ck-item.is-on .ck-item__chk { background: #25EBAE; border-color: #25EBAE; color: #06231a; }
.ck-item__txt { display: grid; min-width: 0; } .ck-item__txt small { color: var(--text-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck-close { margin-top: 16px; }
/* ---------- Feuille de route ---------- */
.rs-hero { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin-bottom: 18px; }
.rs-hero h2 { margin: 8px 0; font-size: 24px; } .rs-hero p { margin: 4px 0; color: var(--text-muted); } .rs-hero p i { width: 18px; color: #25EBAE; }
.rs-times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rs-times div { padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--border); display: grid; font-size: 12px; min-width: 110px; }
.rs-times b { font-size: 15px; color: #25EBAE; } .rs-times span { color: var(--text-muted); }
.rs-row { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.rs-row:last-child { border-bottom: 0; }
.rs-safety { margin-top: 18px; border-color: rgba(245,158,11,.35); } .rs-safety ul { margin: 8px 0 0; padding-left: 18px; color: var(--text-muted); font-size: 13px; }
@media (max-width: 960px) { .rs-hero { grid-template-columns: 1fr; } .rs-times { grid-template-columns: repeat(2, 1fr); } }
@media print { .sidebar, .st-top, .no-print, .sidebar-backdrop { display: none !important; } .main { margin: 0 !important; } body, .card { background: #fff !important; color: #000 !important; } .card { border: 1px solid #ccc !important; } a { color: #000 !important; } }
.hours-row { display: grid; grid-template-columns: 1fr auto 90px 100px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.hours-row .price-cell { text-align: right; }
.exp-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.exp-form { display: grid; grid-template-columns: 1fr 110px 1.3fr 1fr auto; gap: 8px; margin-top: 12px; }
@media (max-width: 700px) { .exp-form { grid-template-columns: 1fr 1fr; } }
.dispo__months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dispo__month h4 { margin: 0 0 8px; font-size: 13px; }
.dispo__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dispo__w { font-size: 10.5px; color: var(--text-dim); text-align: center; }
.dispo__d { aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--border); background: rgba(37,235,174,.06); color: var(--text); font: 600 12px inherit; cursor: pointer; }
.dispo__d:hover:not(:disabled) { border-color: #25EBAE; }
.dispo__d:disabled { opacity: .3; cursor: default; background: none; }
.dispo__d.is-off { background: rgba(239,68,68,.22); border-color: rgba(239,68,68,.5); color: #ffb4b4; text-decoration: line-through; }
.dispo__d.is-busy { box-shadow: inset 0 -3px 0 #8C4DFF; }
.dispo__d.is-today { outline: 2px solid #25EBAE; outline-offset: 1px; }
.dispo__d.is-wait { opacity: .5; }
.dispo__legend { display: flex; gap: 16px; margin-top: 14px; font-size: 12px; color: var(--text-muted); }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; }
.lg--ok { background: rgba(37,235,174,.25); } .lg--off { background: rgba(239,68,68,.4); } .lg--busy { background: #8C4DFF; }
@media (max-width: 900px) { .dispo__months { grid-template-columns: 1fr; } }
.media-row { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.media-row i { color: #25EBAE; }
.media-up { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 8px; margin-top: 12px; }
@media (max-width: 700px) { .media-up { grid-template-columns: 1fr; } }
.stars-ro { color: #FFB547; font-size: 20px; letter-spacing: 2px; }
.mt-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.mt-add { display: grid; grid-template-columns: 1fr 90px auto; gap: 8px; margin-top: 10px; }
.mt-log { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--border); display: grid; gap: 5px; font-size: 13px; }

/* ==========================================================
   Tableau de bord v2
   ========================================================== */
.dash-top { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; margin-bottom: 18px; }
.dash-focus { position: relative; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--pc) 16%, var(--bg-card)), var(--bg-card) 60%); }
.dash-focus::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--pc) 35%, transparent), transparent 70%); pointer-events: none; }
.dash-focus.is-today { border-color: rgba(37,235,174,.5); }
.dash-focus.is-live { border-color: rgba(239,68,68,.6); --pc: #ef4444; }
.dash-focus h2 { margin: 8px 0 6px; font-size: 24px; line-height: 1.2; } .dash-focus h2 a { color: inherit; }
.dash-focus p i { color: var(--text-dim); margin-right: 3px; }
.dash-focus__kicker { font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.live-pill { display: inline-flex; gap: 7px; align-items: center; padding: 4px 10px; border-radius: 99px; background: var(--danger); color: #fff; font-size: 11px; letter-spacing: .1em; }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulseDot 1.2s infinite; }
.live-pill--today { background: #25EBAE; color: #06231a; } .live-pill--today i { background: #06231a; }
@keyframes pulseDot { 50% { opacity: .3; } }
.dash-focus__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; position: relative; z-index: 1; }
.dash-focus__grid > div { padding: 12px 14px; border-radius: 10px; background: rgba(0,0,0,.25); border: 1px solid var(--border); display: grid; gap: 2px; }
.dash-focus__grid span { font-size: 11.5px; color: var(--text-muted); } .dash-focus__grid strong { font-size: 20px; } .dash-focus__grid small { color: var(--text-dim); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-focus__actions { display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.dash-focus__empty { display: flex; gap: 16px; align-items: center; height: 100%; } .dash-focus__empty > i { font-size: 34px; color: var(--text-dim); } .dash-focus__empty p { margin: 4px 0 10px; }
.mini-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 6px; }
.mini-bar i { display: block; height: 100%; background: linear-gradient(90deg, #25EBAE, #6E1AFF); border-radius: 6px; }
.mini-bar--sm { height: 4px; width: 90px; margin: 4px 0 2px; }
.dash-todo { display: flex; flex-direction: column; gap: 6px; }
.dash-todo__zen { flex: 1; display: grid; place-items: center; text-align: center; gap: 4px; padding: 20px; } .dash-todo__zen i { font-size: 30px; color: #25EBAE; }
.todo-item { display: grid; grid-template-columns: 30px 38px 1fr auto; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--border); color: inherit; transition: border-color .15s, background .15s; font-size: 13.5px; }
.todo-item:hover { background: rgba(255,255,255,.03); border-color: var(--border-light); }
.todo-item__ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--bg-hover); color: var(--text-muted); font-size: 13px; }
.todo-item__n { font-size: 18px; font-weight: 800; text-align: center; }
.todo-item--danger .todo-item__ic { background: var(--danger-dim); color: #ff7b7b; } .todo-item--danger .todo-item__n { color: #ff7b7b; }
.todo-item--warning .todo-item__ic { background: var(--warning-dim); color: var(--warning); }
.todo-item--success .todo-item__ic { background: rgba(37,235,174,.12); color: #25EBAE; } .todo-item--success .todo-item__n { color: #25EBAE; }
.todo-item--info .todo-item__ic { background: var(--info-dim); color: var(--info); }
.dash-money { display: grid; grid-template-columns: repeat(4, 1fr) 1.4fr; gap: 12px; margin-bottom: 8px; }
.kpi--money { display: grid; gap: 4px; align-content: start; }
.kpi__lbl { font-size: 12px; color: var(--text-muted); } .kpi__lbl i { width: 14px; }
.kpi--money b { font-size: 24px; }
.kpi--chart { color: inherit; display: grid; gap: 8px; }
.spark { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; height: 64px; align-items: end; }
.spark div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.spark i { width: 100%; max-width: 26px; border-radius: 4px 4px 1px 1px; background: linear-gradient(180deg, #25EBAE, #1a9f78); }
.spark span { font-size: 10px; color: var(--text-dim); }
.fortnight { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
.fn-day { min-height: 104px; padding: 8px 7px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-card); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fn-day.is-we { background: color-mix(in srgb, var(--bg-card) 80%, #000); }
.fn-day.is-today { border-color: #25EBAE; box-shadow: inset 0 2px 0 #25EBAE; }
.fn-day__h { display: flex; justify-content: space-between; align-items: baseline; } .fn-day__h span { font-size: 10.5px; text-transform: uppercase; color: var(--text-dim); letter-spacing: .06em; } .fn-day__h b { font-size: 15px; }
.fn-day.is-today .fn-day__h b { color: #25EBAE; }
.fn-ev { display: block; padding: 3px 6px; border-radius: 5px; background: color-mix(in srgb, var(--pc) 22%, transparent); border-left: 3px solid var(--pc); color: var(--text); font-size: 11px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fn-ev.is-live { background: rgba(239,68,68,.25); border-color: var(--danger); }
.fn-more { font-size: 11px; color: var(--text-muted); }
.fn-off { margin-top: auto; font-size: 10.5px; color: #ff9c9c; }
.dash-mid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; margin-bottom: 8px; }
.dash-inbox { display: grid; gap: 14px; align-content: start; margin-top: 44px; }
.dot-color { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.stat-grid a.stat-tile { color: inherit; transition: border-color .15s, transform .15s; } .stat-grid a.stat-tile:hover { border-color: rgba(37,235,174,.4); transform: translateY(-2px); }
.dash-bottom { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 18px; margin-top: 18px; align-items: start; }
.top-row { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); color: inherit; font-size: 13.5px; }
.top-row:last-of-type { border-bottom: 0; }
.top-row__rank { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--bg-hover); font-weight: 800; font-size: 12px; color: #25EBAE; }
.top-row__name { min-width: 0; display: grid; } .top-row__name .mini-bar { width: 100%; max-width: 160px; }
.mini-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-kpis div { padding: 12px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--border); display: grid; }
.mini-kpis b { font-size: 22px; } .mini-kpis span { font-size: 12px; color: var(--text-muted); }
.timeline--compact li { padding-bottom: 10px; }
@media (max-width: 1280px) { .dash-money { grid-template-columns: repeat(2, 1fr); } .kpi--chart { grid-column: 1 / -1; } .dash-bottom { grid-template-columns: 1fr 1fr; } .dash-bottom > :last-child { grid-column: 1 / -1; } .fortnight { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
@media (max-width: 960px) { .dash-top, .dash-mid, .dash-bottom { grid-template-columns: 1fr; } .dash-inbox { margin-top: 0; } .dash-bottom > :last-child { grid-column: auto; } }
@media (max-width: 600px) { .dash-money { grid-template-columns: 1fr; } .fortnight { grid-template-columns: repeat(4, minmax(0, 1fr)); } .dash-focus__grid { grid-template-columns: 1fr; } }
.content { max-width: 1760px; }
.dash-inbox .inbox-row--compact { padding-left: 12px; border-radius: 8px; }
.unpaid-card { border-color: rgba(239,68,68,.35); }
.unpaid-state { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--danger-dim); display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; }
.unpaid-state strong { width: 100%; color: #ffb4b4; }
.unpaid-form { padding: 28px; display: grid; gap: 8px; text-align: left; }
.unpaid-form h3 { margin: 0; color: #ff7b7b; font-size: 18px; }
.unpaid-form > p { margin: 0 0 6px; color: #a8a8bc; font-size: 13.5px; }
.unpaid-opt { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.1); cursor: pointer; }
.unpaid-opt:has(input:checked) { border-color: rgba(239,68,68,.6); background: rgba(239,68,68,.08); }
.unpaid-opt input { margin-top: 3px; accent-color: #ef4444; width: auto !important; }
.unpaid-opt span { display: grid; gap: 2px; } .unpaid-opt small { color: #a8a8bc; font-size: 12px; }
.unpaid-legal { margin: 6px 0 0; font-size: 11.5px; color: #8b8ba0; }
.unpaid-form textarea { width: 100%; }
.hold-banner { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .hold-banner a { text-decoration: underline; }
.ck.is-held { opacity: .45; pointer-events: none; filter: grayscale(.6); }

/* Réalisations */
.check-row { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; cursor: pointer; }
.check-row input { margin-top: 3px; }
.sc-list { display: grid; gap: 12px; }
.sc-row { display: grid; grid-template-columns: 168px 1fr; gap: 16px; align-items: start; }
.sc-row__img { aspect-ratio: 16 / 9; border-radius: 8px; background: rgba(255,255,255,.04) center / cover no-repeat; display: grid; place-items: center; color: var(--text-dim, #777); font-size: 22px; }
@media (max-width: 640px) { .sc-row { grid-template-columns: 1fr; } }

/* Commandes de forfait */
.po-funnel { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.po-step { display: flex; gap: 12px; align-items: flex-start; padding: 14px; position: relative; }
.po-step > i { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(37,235,174,.12); color: #25EBAE; flex: none; }
.po-step strong { display: block; font-size: 22px; line-height: 1.1; }
.po-step span { display: block; font-size: 12.5px; }
.po-step small { display: block; font-size: 11px; margin-top: 2px; }
.po-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.po-plan { display: block; text-decoration: none; color: inherit; border: 1px solid transparent; }
.po-plan.is-on, .po-plan:hover { border-color: #25EBAE; }
.po-plan strong { margin-right: 6px; }
.po-plan__n { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; margin-top: 8px; color: var(--text-muted, #aaa); }
.po-plan__n b { color: var(--text, #fff); }
.po-warn { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; border-left: 3px solid #FFD166; }
.po-warn > i { color: #FFD166; margin-top: 3px; }
.po-dl { display: grid; grid-template-columns: minmax(150px, 1fr) 2fr; gap: 8px 16px; margin: 0; font-size: 13.5px; }
.po-dl dt { color: var(--text-muted, #999); }
.po-dl dd { margin: 0; overflow-wrap: anywhere; }
.po-file { display: inline-flex; align-items: center; gap: 8px; margin: 0 10px 6px 0; }
.po-file img { width: 48px; height: 48px; object-fit: contain; border-radius: 6px; background: repeating-conic-gradient(#222 0 25%, #2b2b36 0 50%) 0 0 / 12px 12px; }
.po-swatch { display: inline-block; width: 16px; height: 16px; border-radius: 4px; vertical-align: -3px; border: 1px solid rgba(255,255,255,.2); }
.po-mini { display: block; font-size: 12.5px; padding: 3px 0; }
@media (max-width: 1200px) { .po-funnel { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .po-funnel { grid-template-columns: 1fr 1fr; } .po-plans { grid-template-columns: 1fr; } .po-dl { grid-template-columns: 1fr; } }
.prep-admin { display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit; border-left: 3px solid #25EBAE; }
.prep-admin img { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; background: rgba(255,255,255,.05); }
.prep-admin > i { width: 52px; height: 52px; border-radius: 8px; display: grid; place-items: center; background: rgba(37,235,174,.12); color: #25EBAE; font-size: 20px; }
.prep-admin > div { flex: 1; }
/* Codes promo */
.promo-row { display: grid; grid-template-columns: 86px 1fr; gap: 16px; align-items: start; margin-bottom: 12px; }
.promo-row.is-off { opacity: .55; }
.promo-row__val { font-size: 20px; font-weight: 800; text-align: center; padding: 16px 6px; border-radius: 10px; background: rgba(37,235,174,.12); color: #25EBAE; }
.promo-code { font-family: ui-monospace, Menlo, monospace; font-weight: 700; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,.08); border: 1px dashed rgba(255,255,255,.25); }
.po-price { display: flex; justify-content: space-between; align-items: center; gap: 14px; border-left: 3px solid #8C4DFF; }
.po-price strong { font-size: 22px; }
/* Page de liens */
.lk-admin { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.lk-admin__head { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 10px; }
.lk-row { display: grid; grid-template-columns: 28px 42px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; margin-bottom: 8px; padding: 12px 14px; }
.lk-row.is-off { opacity: .55; }
.lk-row.is-edit { border-color: #25EBAE; }
.lk-row__order { display: grid; gap: 2px; }
.lk-row__order form { margin: 0; }
.lk-row__order button { width: 26px; height: 20px; border: 0; border-radius: 5px; background: rgba(255,255,255,.06); color: inherit; cursor: pointer; font-size: 10px; }
.lk-row__order button:disabled { opacity: .25; cursor: default; }
.lk-row__ic { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: rgba(140,77,255,.15); color: #b18cff; }
.lk-row__ic.is-feat { background: linear-gradient(110deg, #6E1AFF, #8C4DFF); color: #fff; }
.lk-row__ic .icon { width: 20px; height: 20px; }
.lk-row__stats { text-align: center; line-height: 1.1; }
.lk-row__stats strong { display: block; font-size: 18px; }
.lk-row__stats small { font-size: 11px; color: var(--text-dim, #888); }
.lk-row__act { display: flex; gap: 6px; }
.lk-icons { display: flex; flex-wrap: wrap; gap: 6px; }
.lk-icons label { cursor: pointer; }
.lk-icons input { position: absolute; opacity: 0; }
.lk-icons span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9px; border: 1px solid rgba(255,255,255,.12); }
.lk-icons span .icon { width: 18px; height: 18px; }
.lk-icons input:checked + span { border-color: #25EBAE; background: rgba(37,235,174,.12); color: #25EBAE; }
.lk-admin__preview { position: sticky; top: 84px; }
.lk-phone { position: relative; width: 320px; height: 640px; margin: 0 auto; border-radius: 42px; padding: 12px; background: #1a1a22; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lk-phone iframe { width: 100%; height: 100%; border: 0; border-radius: 32px; background: #0B0B10; }
.lk-phone__notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 90px; height: 22px; border-radius: 12px; background: #000; z-index: 1; }
@media (max-width: 1100px) { .lk-admin { grid-template-columns: 1fr; } .lk-admin__preview { position: static; } }
@media (max-width: 640px) { .lk-row { grid-template-columns: 28px 36px minmax(0, 1fr); } .lk-row__stats, .lk-row__act { grid-column: 3; justify-self: start; } }
/* Partenaires */
.pt-admin.has-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.pt-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; margin-bottom: 10px; border-left: 3px solid var(--pc); }
.pt-row.is-off { opacity: .55; }
.pt-row.is-edit { border-color: #25EBAE; }
.pt-row__logo { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: #000; display: grid; place-items: center; color: #888; }
.pt-row__logo img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 1100px) { .pt-admin.has-form { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .pt-row { grid-template-columns: 48px minmax(0, 1fr); } .pt-row .lk-row__stats, .pt-row .lk-row__act { grid-column: 2; justify-self: start; } }
/* Listes de matériel */
.gl-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; }
.gl-nav { padding: 10px; position: sticky; top: 80px; }
.gl-nav__h { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim, #888); padding: 10px 10px 6px; }
.gl-nav a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; color: inherit; text-decoration: none; font-size: 13.5px; }
.gl-nav a:hover { background: rgba(255,255,255,.05); }
.gl-nav a.active { background: rgba(37,235,174,.12); color: #25EBAE; }
.gl-nav small { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.08); }
.gear-list { display: grid; gap: 6px; }
.gear-row { display: grid; grid-template-columns: 18px auto 64px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 9px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); }
.gear-row.is-drag { opacity: .6; border-color: #25EBAE; }
.gear-row.is-done { opacity: .6; }
.gear-row.is-done .gear-row__name { text-decoration: line-through; }
.gear-row__drag { cursor: grab; color: var(--text-dim, #777); font-size: 12px; touch-action: none; }
.gear-row__qty { width: 64px !important; text-align: center; }
.gear-row__name input[type=text] { width: 100%; }
.gear-row__done input[type=checkbox] { width: 18px; height: 18px; accent-color: #25EBAE; }
.gear-row:not(:has(.gear-row__done)) { grid-template-columns: 18px 64px minmax(0, 1fr) auto; }
.gear-inv { font-weight: 600; font-size: 13.5px; }
.gear-inv i { color: #25EBAE; margin-right: 4px; }
.gear-add { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.gear-add select { max-width: 320px; }
@media (max-width: 900px) { .gl-layout { grid-template-columns: 1fr; } .gl-nav { position: static; } }
@media (max-width: 600px) {
  .gear-row { grid-template-columns: 12px auto 46px minmax(0, 1fr) 22px; gap: 6px; padding: 5px 6px; }
  .gear-row:not(:has(.gear-row__done)) { grid-template-columns: 12px 46px minmax(0, 1fr) 22px; }
  .gear-row__qty { width: 46px !important; padding-left: 4px !important; padding-right: 4px !important; }
  .gear-row__name input[type=text] { padding-left: 8px; padding-right: 8px; font-size: 13px; }
}

/* ============================================================
   Soumission — constructeur en 4 étapes
   ============================================================ */
.qb { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.qb-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.qb-step__h { display: flex; align-items: center; gap: 10px; font-size: 16px; margin: 0 0 14px; }
.qb-step__h > span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-dim); color: var(--accent); font-size: 13px; font-weight: 800; flex: none; }
.qb-step__h small { font-weight: 500; color: var(--text-dim); font-size: 12.5px; margin-left: 2px; }
.qb-client { display: flex; gap: 8px; } .qb-client select { flex: 1; min-width: 0; }
.qb input[type=date], .qb input[type=time] { color-scheme: dark; }

.qb-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.qb-plan { position: relative; display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 14px; border-radius: 12px; border: 1px solid var(--border-light); background: var(--bg-elevated); color: var(--text); font: inherit; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.qb-plan:hover { border-color: var(--text-dim); transform: translateY(-1px); }
.qb-plan strong { font-size: 15px; }
.qb-plan b { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.qb-plan b small { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.qb-plan span { font-size: 12px; color: var(--text-muted); line-height: 1.35; }
.qb-plan.is-pop::after { content: "Populaire"; position: absolute; top: 10px; right: 10px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.qb-plan.is-on { border-color: var(--accent); background: linear-gradient(180deg, rgba(37,235,174,.12), rgba(37,235,174,.03)); box-shadow: 0 0 0 1px var(--accent) inset; }
.qb-plan.is-on strong::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--accent); margin-right: 6px; font-size: 12px; }
.qb-plan--none b { color: var(--text-dim); }

.qb-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.qb-row__label { font-weight: 600; }
.qb-stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--border-light); border-radius: 9px; overflow: hidden; background: var(--bg); }
.qb-stepper button { width: 36px; border: 0; background: var(--bg-hover); color: var(--text); font-size: 17px; cursor: pointer; }
.qb-stepper button:hover { background: var(--border-light); }
.qb-stepper input { width: 64px; border: 0 !important; border-radius: 0 !important; background: transparent !important; text-align: center; font-weight: 700; padding: 8px 4px !important; -moz-appearance: textfield; }
.qb-stepper input::-webkit-inner-spin-button, .qb-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; }

.qb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qb-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border-light); background: var(--bg-elevated); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.qb-chip i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--text-dim); color: transparent; font-size: 9px; display: grid; place-items: center; }
.qb-chip em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--accent); }
.qb-chip em:empty { display: none; }
.qb-chip:hover { border-color: var(--text-dim); }
.qb-chip.is-on { border-color: var(--accent); background: var(--accent-dim); }
.qb-chip.is-on i { background: var(--accent); border-color: var(--accent); color: #06231A; }
.qb-chip.is-incl { cursor: default; opacity: .8; }
.qb-chip.is-incl em { color: var(--text-muted); }

.qb-fees { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.qb-fee { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 10px; background: var(--bg-elevated); border: 1px solid var(--border); }
.qb-fee label { font-weight: 600; font-size: 13px; } .qb-fee label i { color: var(--text-muted); width: 16px; } .qb-fee label small { font-weight: 400; color: var(--text-dim); }
.qb-fee select { width: 100%; }
.qb-fee .qb-stepper { align-self: flex-start; }
.qb-unit { display: flex; align-items: center; gap: 8px; } .qb-unit input { width: 110px; } .qb-unit span { color: var(--text-muted); }
.qb-fee__calc { margin: 0; font-size: 12px; color: var(--text-muted); line-height: 1.45; }
.qb-fee__calc b { color: var(--text); } .qb-fee__calc .ok { color: var(--success); font-weight: 700; }

.qb-lines__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.qb-auto { display: inline-block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 1px 6px; border-radius: 4px; background: var(--accent-dim); color: var(--accent); }
.qb-table { width: 100%; border-collapse: collapse; min-width: 0; }
.qb-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); font-weight: 600; padding: 0 6px 8px; border-bottom: 1px solid var(--border); }
.qb-table td { padding: 6px; border-bottom: 1px solid var(--border); vertical-align: top; }
.qb-table .n { text-align: right; width: 100px; }
.qb-table th:nth-child(3) { width: 110px; } .qb-table th:last-child { width: 64px; }
.qb-table textarea, .qb-table input { width: 100%; resize: none; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border-light); border-radius: 7px; padding: 7px 9px; overflow: hidden; }
.qb-table input { text-align: right; }
.qb-table textarea:focus, .qb-table input:focus { outline: none; border-color: var(--accent); }
.qb-table tr.is-auto textarea, .qb-table tr.is-auto input { background: transparent; border-color: transparent; cursor: default; }
.qb-auto--row { display: none; margin: 2px 0 1px 9px; font-size: 9px; }
.qb-table tr.is-auto .qb-auto--row { display: inline-block; }
.qb-table textarea { display: block; min-height: 36px; line-height: 1.4; }
.qb input[type=time], .qb input[type=date] { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--border-light); border-radius: 8px; padding: 9px 11px; font: inherit; }
.qb-amt { padding-top: 13px !important; font-weight: 700; white-space: nowrap; }
.qb-act { white-space: nowrap; text-align: right; padding-top: 9px !important; }
.qb-act button { width: 26px; height: 26px; border: 0; border-radius: 6px; background: transparent; color: var(--text-dim); cursor: pointer; }
.qb-act button:hover { background: var(--bg-hover); color: var(--text); }
.qb-table tr:not(.is-auto) [data-edit-line] { visibility: hidden; }
.qb-empty { margin: 14px 0 4px; color: var(--text-dim); text-align: center; }
.qb-lines__add { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.qb-mini-select { width: auto; max-width: 320px; padding: 6px 10px; font-size: 12.5px; }

.qb-more { padding: 0; }
.qb-more > summary { padding: 14px 18px; cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 9px; }
.qb-more > summary::-webkit-details-marker { display: none; }
.qb-more > summary::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 11px; margin-left: auto; color: var(--text-dim); transition: transform .15s; }
.qb-more[open] > summary::after { transform: rotate(180deg); }
.qb-more > summary i { color: var(--text-muted); width: 16px; }
.qb-more > summary small { font-weight: 400; color: var(--text-dim); font-size: 12px; }
.qb-more > :not(summary) { margin: 0 18px 16px; }
.qb-more > textarea { width: calc(100% - 36px); }
.qb-count { font-style: normal; font-size: 11.5px; padding: 1px 7px; border-radius: 10px; background: var(--bg-hover); color: var(--text-muted); }
.qb-count:empty { display: none; }

.qb-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 12px; }
.qb-sum__who { font-weight: 700; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.qb-sum__rows:empty { display: none; }
.qb-sum__rows { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px dashed var(--border); }
.qb-sum__line { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: 13px; color: var(--text-muted); }
.qb-sum__line b { color: var(--text); font-weight: 600; white-space: nowrap; }
.qb-sum__line--item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qb-sum__total { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 4px; }
.qb-sum__total span { font-weight: 600; }
.qb-sum__total strong { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--accent); }
.qb-sum__note { font-size: 11.5px; color: var(--text-dim); margin: 2px 0 0; }
.qb-sum .btn-block { margin-top: 8px; }
.qb-send { margin-top: 14px !important; padding: 12px; font-size: 14.5px; }
.qb-accepted { margin: 12px 0 0; padding: 10px 12px; border-radius: 9px; background: var(--success-dim); color: var(--success); font-size: 13px; }
.qb-track h3 { font-size: 14px; margin: 0 0 10px; display: flex; gap: 8px; align-items: center; } .qb-track h3 i { color: var(--text-muted); }
.qb-track ul { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.qb-track li i { width: 18px; color: var(--text-muted); }
.qb-track li.is-info, .qb-track li.is-info i { color: var(--info); }
.qb-track li.is-warning, .qb-track li.is-warning i { color: var(--warning); }
.qb-track li.is-danger, .qb-track li.is-danger i { color: var(--danger); }
.qb-track li.is-muted { color: var(--text-muted); }
.qb-inv { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--border); color: var(--text); font-size: 13px; }
.qb-inv small { display: block; color: var(--text-dim); font-size: 11px; }
.qb-settings { padding: 0; }
.qb-settings > summary { padding: 13px 16px; cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.qb-settings > summary::-webkit-details-marker { display: none; }
.qb-settings > summary i { color: var(--text-muted); width: 16px; }
.qb-settings > summary small { font-weight: 400; color: var(--text-dim); font-size: 12px; margin-left: auto; }
.qb-settings > :not(summary) { margin: 0 16px 14px; }
.qb-actions { display: flex; flex-direction: column; gap: 6px; }
.qb-actions .btn-block { margin: 0; justify-content: flex-start; }

@media (max-width: 1250px) { .qb-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } .qb-fees { grid-template-columns: 1fr; } }
@media (max-width: 1000px) { .qb { grid-template-columns: 1fr; } .qb-side { position: static; } }
@media (max-width: 760px) {
    .qb-table, .qb-table tbody { display: block; width: 100%; }
    .qb-table thead { display: none; }
    .qb-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 4px 6px; padding: 8px 0; border-bottom: 1px solid var(--border); }
    .qb-table td { border: 0; padding: 0; min-width: 0; }
    .qb-table td:first-child { grid-column: 1 / -1; }
    .qb-table .n { width: auto; }
    .qb-amt { grid-column: 1 / 3; text-align: left !important; padding-top: 2px !important; }
    .qb-act { grid-row: 2; grid-column: 3; }
}

/* ---------- liste des soumissions ---------- */
.ql-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.ql-kpi { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 12px; background: var(--bg-card); border: 1px solid var(--border); color: var(--text); }
a.ql-kpi:hover { border-color: var(--border-light); color: var(--text); }
.ql-kpi span { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 7px; }
.ql-kpi b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.ql-kpi small { font-size: 12px; color: var(--text-dim); }
.ql-kpi--warn b { color: var(--warning); } .ql-kpi--ok b { color: var(--success); }
.ql-list { display: flex; flex-direction: column; gap: 8px; }
.ql-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 150px 130px auto; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 11px; background: var(--bg-card); border: 1px solid var(--border); color: var(--text); }
.ql-row:hover { border-color: var(--border-light); color: var(--text); }
.ql-row__num { font-family: ui-monospace, monospace; font-size: 12px; color: var(--text-muted); }
.ql-row__main strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ql-row__main small { color: var(--text-muted); }
.ql-row__track { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.ql-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: var(--bg-hover); color: var(--text-muted); }
.ql-tag--info { background: var(--info-dim); color: var(--info); } .ql-tag--warning { background: var(--warning-dim); color: var(--warning); } .ql-tag--danger { background: var(--danger-dim); color: var(--danger); }
.ql-row__date { font-size: 13px; color: var(--text-muted); }
.ql-row__tot { text-align: right; font-weight: 800; white-space: nowrap; }
.ql-row__act form { margin: 0; }
.ql-row__act .btn { white-space: nowrap; }
@media (max-width: 1100px) { .ql-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ql-row { grid-template-columns: minmax(0, 1fr) auto; } .ql-row__num, .ql-row__date { display: none; } .ql-row__act { grid-column: 1 / -1; } }

/* ============================================================
   Codes QR
   ============================================================ */
.qr-new { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 24px; margin-bottom: 22px; align-items: start; }
.qr-new[hidden] { display: none; }
.qr-new h3 { margin-bottom: 14px; }
.qr-new__opts { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.qr-new__act { display: flex; gap: 8px; margin-top: 4px; }
.qr-new__prev { text-align: center; }
.qr-new__prev img { width: 100%; border-radius: 12px; display: block; background: #fff; }
.qr-new__prev small { display: block; margin-top: 8px; color: var(--text-dim); font-size: 11.5px; }
.qr-seg { display: inline-flex; border: 1px solid var(--border-light); border-radius: 9px; overflow: hidden; }
.qr-seg label { margin: 0; cursor: pointer; } .qr-seg input { position: absolute; opacity: 0; pointer-events: none; }
.qr-seg span { display: block; padding: 7px 12px; font-size: 13px; color: var(--text-muted); }
.qr-seg input:checked + span { background: var(--accent-dim); color: var(--accent); font-weight: 600; }
.qr-seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }
.qr-colors { display: flex; gap: 8px; } .qr-colors label { margin: 0; cursor: pointer; } .qr-colors input { position: absolute; opacity: 0; pointer-events: none; }
.qr-colors span { display: block; width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255,255,255,.15); }
.qr-colors input:checked + span { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }
.qr-colors input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.qr-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px; border-radius: 12px; background: var(--bg-card); border: 1px solid var(--border); color: var(--text); }
.qr-card:hover { border-color: var(--border-light); color: var(--text); transform: translateY(-1px); }
.qr-card.is-off { opacity: .6; }
.qr-card__img svg { width: 96px; height: 96px; display: block; border-radius: 8px; }
.qr-card__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; align-items: flex-start; }
.qr-card__body strong { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qr-card__body > small { color: var(--text-muted); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qr-card__stats { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--text-muted); margin: 2px 0; }
.qr-card__stats b { color: var(--text); font-size: 14px; }

.qr-show { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.qr-side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 84px; }
.qr-code__img svg { width: 100%; height: auto; display: block; border-radius: 12px; }
.qr-code__link { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 12px 0 10px; padding: 6px 6px 6px 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--border); }
.qr-code__link code { font-size: 12.5px; color: var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qr-code__dl { display: flex; gap: 6px; } .qr-code__dl .btn { flex: 1; justify-content: center; }
.qr-hint { margin: 10px 0 0; font-size: 11.5px; color: var(--text-dim); line-height: 1.45; } .qr-hint i { margin-right: 3px; }
.qr-edit { padding: 0; } .qr-edit > summary { padding: 13px 16px; cursor: pointer; font-weight: 600; list-style: none; } .qr-edit > summary::-webkit-details-marker { display: none; } .qr-edit > summary i { color: var(--text-muted); margin-right: 6px; }
.qr-edit form { padding: 0 16px 16px; } .qr-edit input[type=color] { width: 100%; height: 38px; padding: 3px; border-radius: 8px; border: 1px solid var(--border-light); background: var(--bg); cursor: pointer; }
.qr-misc { display: flex; flex-direction: column; gap: 6px; } .qr-misc form { margin: 0; } .qr-misc .btn-block { margin: 0; justify-content: flex-start; }

.qr-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.qr-tabs { margin: 0; }
.qr-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.qr-kpi { padding: 14px 16px; border-radius: 12px; background: var(--bg-card); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; }
.qr-kpi span { font-size: 12px; color: var(--text-muted); } .qr-kpi span i { margin-right: 3px; }
.qr-kpi b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.qr-kpi small { font-size: 12px; color: var(--text-dim); }
.qr-split { display: flex; gap: 2px; height: 12px; border-radius: 6px; overflow: hidden; margin-top: -2px; }
.qr-split i { display: block; min-width: 4px; cursor: default; }
.qr-split .is-ios, .qr-split__legend .is-ios { background: #3987e5; }
.qr-split .is-and, .qr-split__legend .is-and { background: #d95926; }
.qr-split .is-oth, .qr-split__legend .is-oth { background: #199e70; }
.qr-split__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--text-muted); margin-top: -6px; }
.qr-split__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.qr-chart__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.qr-chart__head h3, .qr-h { font-size: 14px; margin: 0; } .qr-h { margin-bottom: 12px; }
.qr-chart__head small { color: var(--text-dim); font-size: 12px; }
.qr-bars { position: relative; padding-top: 16px; }
.qr-bars__plot { display: flex; align-items: flex-end; gap: 2px; height: 150px; border-bottom: 1px solid var(--border-light); background: repeating-linear-gradient(0deg, transparent 0 49.5px, rgba(255,255,255,.04) 49.5px 50px); }
.qr-bars__col { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; cursor: default; }
.qr-bars__col i { display: block; width: min(100%, 22px); background: var(--accent); border-radius: 4px 4px 0 0; transition: opacity .1s; }
.qr-bars__col:hover i { opacity: .75; }
.qr-bars__col:hover { background: rgba(255,255,255,.03); }
.qr-bars__axis { display: flex; gap: 2px; margin-top: 6px; }
.qr-bars__axis span { flex: 1; font-size: 10.5px; color: var(--text-dim); text-align: center; white-space: nowrap; overflow: visible; }
.qr-bars__max { position: absolute; top: 0; right: 0; font-size: 10.5px; color: var(--text-dim); }
.qr-two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.qr-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.qr-rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.qr-rank li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "l n p" "b b b"; gap: 4px 8px; align-items: center; font-size: 13px; cursor: default; }
.qr-rank__lbl { grid-area: l; overflow-wrap: anywhere; line-height: 1.35; } .qr-rank__lbl i { width: 16px; color: var(--text-muted); margin-right: 5px; }
.qr-rank li b { grid-area: n; } .qr-rank li small { grid-area: p; color: var(--text-dim); font-size: 11.5px; min-width: 34px; text-align: right; }
.qr-rank__bar { grid-area: b; height: 6px; border-radius: 3px; background: var(--bg-hover); overflow: hidden; }
.qr-rank__bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.qr-empty { color: var(--text-dim); font-size: 13px; margin: 6px 0; }
.qr-scans td small { display: block; color: var(--text-dim); font-size: 11.5px; }
.qr-scans tr.is-staff { opacity: .55; }
.qr-tip { position: fixed; z-index: 300; pointer-events: none; padding: 6px 10px; border-radius: 7px; background: #1F1F2B; border: 1px solid var(--border-light); color: var(--text); font-size: 12px; white-space: nowrap; box-shadow: 0 8px 20px rgba(0,0,0,.4); }
@media (max-width: 1200px) { .qr-three { grid-template-columns: repeat(2, minmax(0, 1fr)); } .qr-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .qr-show { grid-template-columns: 1fr; } .qr-side { position: static; } .qr-code { max-width: 360px; } .qr-two { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .qr-new { grid-template-columns: 1fr; } .qr-new__prev { max-width: 220px; } .qr-three { grid-template-columns: 1fr; } }
.qr-3d { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 10px; }
.qr-3d > summary { cursor: pointer; font-weight: 600; font-size: 13px; list-style: none; } .qr-3d > summary::-webkit-details-marker { display: none; } .qr-3d > summary i { color: var(--text-muted); margin-right: 6px; }
.qr-3d__form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.qr-3d__form > label { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-muted); margin: 0; }
.qr-unit { display: inline-flex; align-items: center; gap: 5px; } .qr-unit input { width: 72px; padding: 5px 8px; text-align: right; } .qr-unit em { font-style: normal; font-size: 12px; color: var(--text-dim); }
.qr-3d__check { justify-content: flex-start !important; } .qr-3d__check input { accent-color: var(--accent); }

/* ---------- Codes QR : page de stats ---------- */
.qx { display: flex; flex-direction: column; gap: 16px; }
.qx-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 26px; align-items: center; padding: 22px; border-radius: 16px; border: 1px solid var(--border);
    background: radial-gradient(120% 140% at 0% 0%, rgba(37,235,174,.13), transparent 50%), radial-gradient(90% 120% at 100% 100%, rgba(140,77,255,.16), transparent 55%), var(--bg-card); }
.qx-hero__img svg { width: 100%; height: auto; display: block; border-radius: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.qx-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.qx-dl .btn { justify-content: center; padding: 6px 8px; }
.qx-back { font-size: 12.5px; color: var(--text-muted); } .qx-back:hover { color: var(--text); }
.qx-hero__info h1 { font-size: 26px; margin: 6px 0 8px; line-height: 1.2; overflow-wrap: anywhere; }
.qx-status { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--bg-hover); color: var(--text-muted); }
.qx-status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.qx-status--on { color: var(--success); background: var(--success-dim); }
.qx-status--live { color: var(--accent); background: var(--accent-dim); } .qx-status--live i { animation: qxPulse 1.4s ease-out infinite; }
@keyframes qxPulse { 0% { box-shadow: 0 0 0 0 rgba(37,235,174,.7); } 100% { box-shadow: 0 0 0 9px rgba(37,235,174,0); } }
.qx-target { display: block; margin: 12px 0 10px; color: var(--text); font-weight: 600; overflow-wrap: anywhere; } .qx-target i { color: var(--accent); margin-right: 4px; }
.qx-link { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--border); max-width: 100%; }
.qx-link code { font-size: 12.5px; color: var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qx-link button { width: 28px; height: 28px; border: 0; border-radius: 6px; background: transparent; color: var(--text-muted); cursor: pointer; } .qx-link button:hover { background: var(--bg-hover); color: var(--text); }
.qx-meta { margin: 10px 0 0; font-size: 12px; color: var(--text-dim); }
.qx-hero__big { text-align: right; min-width: 230px; }
.qx-hero__big > small { display: block; font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.qx-hero__big > strong { display: block; font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -.03em; margin: 4px 0 6px; }
.qx-delta { display: inline-flex; gap: 5px; align-items: center; font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.qx-delta.is-up { color: var(--success); background: var(--success-dim); } .qx-delta.is-down { color: var(--danger); background: var(--danger-dim); }
.qx-hero__mini { display: flex; gap: 18px; justify-content: flex-end; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.qx-hero__mini b { display: block; font-size: 20px; font-weight: 800; } .qx-hero__mini span { font-size: 11.5px; color: var(--text-muted); }
.qx-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.qx-kpi { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 12px; background: var(--bg-card); border: 1px solid var(--border); }
.qx-kpi > i { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--bg-hover); color: var(--text-muted); font-size: 16px; }
.qx-kpi b { display: block; font-size: 20px; font-weight: 800; line-height: 1.2; white-space: nowrap; } .qx-kpi span { font-size: 11.5px; color: var(--text-muted); }
.qr-chart__head h3 i, .qr-h i { color: var(--text-muted); margin-right: 6px; width: 16px; }
.qx-geo { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 14px; }
.qx-map { display: flex; flex-direction: column; }
.qx-map__box { position: relative; flex: 1; min-height: 340px; border-radius: 10px; overflow: hidden; background: #0e1116; border: 1px solid var(--border); }
.qx-map__empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; color: var(--text-muted); margin: 0; padding: 20px; }
.qx-map__empty i { font-size: 34px; color: var(--text-dim); } .qx-map__empty small { color: var(--text-dim); }
.qx-tiles { filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.85) saturate(.4); }
.qx-map .leaflet-container { background: #0e1116; font: inherit; }
.qx-map .leaflet-control-attribution { background: rgba(11,11,16,.75); color: var(--text-dim); } .qx-map .leaflet-control-attribution a { color: var(--text-muted); }
.qx-map .leaflet-bar a { background: var(--bg-card); color: var(--text); border-color: var(--border); }
.qx-map .leaflet-tooltip { background: #1F1F2B; color: var(--text); border: 1px solid var(--border-light); box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.qx-map .leaflet-tooltip-top::before { border-top-color: #1F1F2B; }
.qx-flag { margin-right: 6px; } .qr-rank__lbl em { font-style: normal; color: var(--text-dim); font-size: 11.5px; margin-left: 3px; }
.qx-heat__grid { display: grid; grid-template-columns: 34px repeat(24, minmax(0, 1fr)); gap: 3px; align-items: center; }
.qx-heat__grid i { aspect-ratio: 1.6; border-radius: 3px; background: var(--bg-hover); cursor: default; }
.qx-heat__grid i:hover { outline: 1px solid var(--text); }
.qx-heat__h { font-size: 10px; color: var(--text-dim); } .qx-heat__d { font-size: 11px; color: var(--text-muted); }
.qx-heat .l1 { background: rgba(37,235,174,.18); } .qx-heat .l2 { background: rgba(37,235,174,.34); } .qx-heat .l3 { background: rgba(37,235,174,.52); } .qx-heat .l4 { background: rgba(37,235,174,.74); } .qx-heat .l5 { background: #25EBAE; }
.qx-heat__legend { display: flex; align-items: center; justify-content: flex-end; gap: 3px; margin-top: 10px; font-size: 11px; color: var(--text-dim); }
.qx-heat__legend i { width: 14px; height: 10px; border-radius: 2px; background: var(--bg-hover); } .qx-heat__legend span { margin: 0 4px; }
.qx-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.qx-feed li { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto 90px; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); }
.qx-feed li:first-child { border-top: 0; }
.qx-feed li.is-staff { opacity: .5; }
.qx-feed__ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-hover); color: var(--text-muted); font-size: 16px; }
.qx-feed__main strong { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qx-feed__main span { display: block; font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qx-feed__where { font-size: 12.5px; white-space: nowrap; }
.qx-feed time { font-size: 12px; color: var(--text-dim); text-align: right; white-space: nowrap; }
.qx-section { font-size: 16px; margin: 10px 0 -4px; }
.qx-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.qx-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.qx-sum > div { padding: 14px 16px; border-radius: 12px; background: var(--bg-card); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qx-sum span { font-size: 12px; color: var(--text-muted); } .qx-sum span i { margin-right: 4px; }
.qx-sum b { font-size: 24px; font-weight: 800; } .qx-sum small { font-size: 12px; color: var(--text-dim); }
.qx-sum__name { font-size: 16px !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 0 3px; }
.qx-spark { width: 100%; height: 28px; display: block; margin: 2px 0; }
.qx-spark__area { fill: rgba(37,235,174,.12); stroke: none; } .qx-spark__line { fill: none; stroke: #25EBAE; stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
@media (max-width: 1250px) { .qx-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .qx-tools { grid-template-columns: 1fr 1fr; } }
@media (max-width: 1000px) { .qx-hero { grid-template-columns: 150px minmax(0, 1fr); } .qx-hero__big { grid-column: 1 / -1; text-align: left; } .qx-hero__mini { justify-content: flex-start; } .qx-geo { grid-template-columns: 1fr; } .qx-sum { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .qx-hero { grid-template-columns: 1fr; } .qx-hero__qr { max-width: 220px; } .qx-kpis, .qx-tools { grid-template-columns: 1fr; } .qx-feed li { grid-template-columns: 38px minmax(0, 1fr) auto; } .qx-feed__where { display: none; } .qx-heat__grid { grid-template-columns: 28px repeat(24, minmax(0, 1fr)); gap: 2px; } .qx-hero__big > strong { font-size: 48px; } }
.qr-3d__grp { display: flex; flex-direction: column; gap: 7px; padding: 10px 12px; border-radius: 10px; background: var(--bg-elevated); border: 1px solid var(--border); }
.qr-3d__grp strong { font-size: 12.5px; } .qr-3d__grp strong i { color: var(--text-muted); margin-right: 5px; }
.qr-3d__grp label { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-muted); margin: 0; }
.qr-3d__btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .qr-3d__btns .btn { justify-content: center; }

/* ---------- menu : groupes repliables ---------- */
.nav-sec__head { display: flex; align-items: center; gap: 8px; width: calc(100% - 20px); background: none; border: 0; padding: 4px 6px; border-radius: 6px; cursor: pointer; text-align: left; font-family: inherit; }
.nav-sec__head:hover { color: var(--text-muted); background: rgba(255,255,255,.03); }
.nav-sec__head span { flex: 1; }
.nav-sec__head i { font-size: 9px; transition: transform .15s; opacity: .7; }
.nav-sec__dot { display: none; min-width: 18px; height: 16px; padding: 0 5px; border-radius: 8px; background: #25EBAE; color: #06231A; font-size: 9.5px; line-height: 16px; text-align: center; letter-spacing: 0; }
html[data-sb-closed~="ventes"] [data-sec="ventes"]:not(.has-active) .nav-sec__items,
html[data-sb-closed~="clients"] [data-sec="clients"]:not(.has-active) .nav-sec__items,
html[data-sb-closed~="marketing"] [data-sec="marketing"]:not(.has-active) .nav-sec__items,
html[data-sb-closed~="production"] [data-sec="production"]:not(.has-active) .nav-sec__items,
html[data-sb-closed~="equipe"] [data-sec="equipe"]:not(.has-active) .nav-sec__items { display: none; }
html[data-sb-closed~="ventes"] [data-sec="ventes"]:not(.has-active) .nav-sec__head i,
html[data-sb-closed~="clients"] [data-sec="clients"]:not(.has-active) .nav-sec__head i,
html[data-sb-closed~="marketing"] [data-sec="marketing"]:not(.has-active) .nav-sec__head i,
html[data-sb-closed~="production"] [data-sec="production"]:not(.has-active) .nav-sec__head i,
html[data-sb-closed~="equipe"] [data-sec="equipe"]:not(.has-active) .nav-sec__head i { transform: rotate(-90deg); }
/* groupe replié avec quelque chose à voir : petite pastille du total */
html[data-sb-closed~="ventes"] [data-sec="ventes"]:not(.has-active) .nav-sec__dot,
html[data-sb-closed~="clients"] [data-sec="clients"]:not(.has-active) .nav-sec__dot,
html[data-sb-closed~="marketing"] [data-sec="marketing"]:not(.has-active) .nav-sec__dot,
html[data-sb-closed~="production"] [data-sec="production"]:not(.has-active) .nav-sec__dot,
html[data-sb-closed~="equipe"] [data-sec="equipe"]:not(.has-active) .nav-sec__dot { display: inline-block; }
.sb-collapsed .nav-sec__items { display: block !important; }
.sb-collapsed .nav-sec__head { pointer-events: none; height: 1px; margin: 12px 8px; padding: 0; background: rgba(255,255,255,.07); }
.sb-collapsed .nav-sec__head span, .sb-collapsed .nav-sec__head i, .sb-collapsed .nav-sec__head b { display: none !important; }
.qx-feed__main .badge { display: inline-block; width: auto; margin-left: 6px; vertical-align: 1px; font-size: 10px; padding: 1px 6px; }
.qx-map .leaflet-container .leaflet-control-attribution { background: rgba(11,11,16,.75); color: var(--text-dim); }
.qx-map .leaflet-container .leaflet-control-attribution a { color: var(--text-muted); }

/* ---------- Météo du projet ---------- */
.wx-verdict { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 10px; margin-bottom: 12px; }
.wx-verdict i { font-size: 22px; }
.wx-verdict small { display: block; font-size: 12.5px; opacity: .85; }
.wx-green { background: rgba(34,197,94,.12); color: #4ade80; } .wx-yellow { background: rgba(245,165,36,.14); color: #fbbf24; } .wx-red { background: rgba(239,68,68,.14); color: #f87171; }
.wx-sum { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; margin-bottom: 10px; }
.wx-sum i { opacity: .7; margin-right: 4px; }
.wx-hours { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.wx-h { flex: none; min-width: 64px; display: grid; justify-items: center; gap: 3px; padding: 8px 6px; border-radius: 8px; background: rgba(255,255,255,.04); font-size: 12px; }
.wx-h i { font-size: 16px; opacity: .85; }
.wx-h .is-warn { color: #fbbf24; font-weight: 700; } .wx-h .is-bad { color: #f87171; font-weight: 700; }
.wx-links { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; font-size: 12.5px; }

/* ---------- Heures et paie ---------- */
.hrs-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 16px; }
.hrs-filter .field { margin: 0; min-width: 140px; }
.hrs-presets { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.hrs-presets .is-on { border-color: var(--primary, #25EBAE); }
.hrs-sum { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 16px; }
.hrs-person { display: grid; gap: 6px; align-content: start; }
.hrs-person__n b { font-size: 22px; }
.hrs-table td { vertical-align: middle; }
.hrs-table tr.is-paid { opacity: .65; }
.hrs-edit { display: flex; gap: 6px; align-items: center; }
.hrs-edit .hrs-h { width: 64px; text-align: center; }
.hrs-edit .hrs-note { flex: 1; min-width: 140px; }
.hrs-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.d-block { display: block; } .nowrap { white-space: nowrap; } .r { text-align: right; }

/* ---------- Calendrier : dates bloquées ---------- */
.cal-blockform { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-bottom: 14px; font-size: 13px; }
.cal-blockform input[type="text"] { min-width: 180px; }
.cal-block button { width: 100%; text-align: left; border: 0; border-radius: 4px; padding: 2px 6px; font-size: 10.5px; background: rgba(239,68,68,.18); color: #fca5a5; cursor: pointer; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-block button:hover { background: rgba(239,68,68,.32); }

/* ---------- Soumission : certificat de signature ---------- */
.qb-cert { display: flex; gap: 12px; align-items: flex-start; margin-top: 10px; padding: 12px; border-radius: 10px; background: rgba(255,255,255,.04); }
.qb-cert__sig { width: 140px; height: auto; background: #fff; border-radius: 6px; padding: 3px; flex: none; }
.qb-cert > div { display: grid; gap: 4px; min-width: 0; }

/* ---------- Réalisations : galerie ---------- */
.sc-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; margin-top: 8px; }
.sc-gallery__it { display: grid; gap: 4px; font-size: 11.5px; cursor: pointer; }
.sc-gallery__it img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }

/* ---------- Checklist de retour : caméra et manquants ---------- */
.ck-cam { margin-top: 10px; }
.ck-cam__view { position: relative; margin-top: 8px; max-width: 420px; }
.ck-cam__view video { width: 100%; border-radius: 10px; display: block; background: #000; }
.ck-cam__box { position: absolute; inset: 22% 18% auto; height: 40%; border: 2px solid rgba(37,235,174,.8); border-radius: 12px; pointer-events: none; }
.ck-cam__view .btn { margin-top: 6px; }
.ck-missing { margin: 12px 0; border-left: 3px solid #f59e0b; }
.ck-missing ul { margin: 8px 0 0; padding-left: 18px; columns: 2; font-size: 13px; }
.ck-missing.is-done { border-left-color: #22c55e; }
.ck-missing.is-done strong, .ck-missing.is-done ul { display: none; }
.ck-missing__ok { margin: 0; color: #4ade80; font-weight: 600; }
@media (max-width: 600px) { .ck-missing ul { columns: 1; } }

/* ---------- OBS Studio (projet) ---------- */
.btn-split { display: inline-flex; }
.btn-split .btn:first-child { border-start-end-radius: 0; border-end-end-radius: 0; }
.btn-split .btn + .btn { border-start-start-radius: 0; border-end-start-radius: 0; border-inline-start: 1px solid rgba(255,255,255,.18); padding-inline: 10px; }
.btn-obs { background: #2a1458; border-color: #5b2bc4; color: #fff; }
.btn-obs:hover { background: #3a1d78; color: #fff; }
.obs-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
@media (max-width: 900px) { .obs-grid { grid-template-columns: 1fr; } }
.obs-path { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 8px; background: var(--bg-hover); margin-bottom: 12px; }
.obs-path span { font-size: 11.5px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; }
.obs-path code { font-size: 13px; word-break: break-all; }
.obs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.obs-list li { display: flex; gap: 10px; align-items: baseline; font-size: 13.5px; }
.obs-list i { width: 16px; color: #8C4DFF; }
.obs-preview { display: flex; flex-direction: column; gap: 8px; }
.obs-preview__screen { aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; padding: 5% 6% 5%; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center;
    color: #1b1b1b; background: linear-gradient(150deg, var(--h) 0 6%, transparent 6.5%), linear-gradient(330deg, var(--h) 0 5%, transparent 5.5%), #F1F1EF; }
.obs-preview__k { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: #fff; background: var(--h); padding: 3px 14px; transform: skewX(-15deg); }
.obs-preview__screen strong { font-size: 30px; font-weight: 900; text-transform: uppercase; line-height: 1; letter-spacing: -.01em; }
.obs-preview__teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: 100%; gap: 8px; }
.obs-preview__teams > span { font-size: 18px; font-weight: 900; font-style: italic; color: #fff; background: var(--h); padding: 4px 0; transform: skewX(-12deg); }
.obs-preview__teams em { font-style: normal; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; padding: 5px 10px; border-radius: 4px; background: var(--h); color: #fff; }
.obs-preview__teams em b { font-size: 16px; letter-spacing: 0; }
.obs-preview__screen small { font-size: 11px; font-weight: 800; color: #555; text-transform: uppercase; }
.obs-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 6px 0 10px; }
@media (max-width: 900px) { .obs-teams { grid-template-columns: 1fr; } }
.obs-team { border: 1px solid var(--border, rgba(255,255,255,.1)); border-radius: 10px; padding: 12px 14px 2px; margin: 0; }
.obs-team legend { padding: 0 6px; font-weight: 700; font-size: 13px; }
.obs-file { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; color: var(--text-muted); }

/* ---------- Soumission créée depuis une commande : à vérifier ---------- */
.qv-banner { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 16px; border-radius: 12px; background: var(--danger-dim); color: var(--text); border: 1px solid rgba(239,68,68,.35); }
.qv-banner > i:first-child { font-size: 20px; color: var(--danger); }
.qv-banner span { flex: 1; }
.qv { border: 1px solid var(--border, rgba(255,255,255,.1)); border-radius: 14px; padding: 18px 20px; margin-bottom: 18px; background: var(--bg-card, rgba(255,255,255,.02)); }
.qv--todo { border-color: rgba(239,68,68,.45); box-shadow: 0 0 0 3px rgba(239,68,68,.08); }
.qv__head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.qv__head h3 { margin: 6px 0 4px; }
.qv__grid { display: grid; grid-template-columns: 280px 1fr; gap: 18px; }
@media (max-width: 900px) { .qv__grid { grid-template-columns: 1fr; } }
.qv__teams { display: grid; gap: 10px; align-content: start; }
.qv__team { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 10px; background: var(--bg-hover); border-left: 4px solid var(--c); }
.qv__team small { display: block; font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; }
.qv__team strong { display: block; }
.qv__team em { font-size: 12px; font-style: normal; color: var(--warning); }
.qv__logo { width: 52px; height: 52px; flex: none; border-radius: 10px; background: #fff; display: grid; place-items: center; overflow: hidden; color: #999; font-size: 22px; }
.qv__logo img { max-width: 46px; max-height: 46px; object-fit: contain; }
.qv__facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 18px; margin: 0; }
.qv__facts dt { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.qv__facts dd { margin: 0; font-size: 13.5px; }
.qv__check { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--border, rgba(255,255,255,.12)); display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; font-size: 13px; }
@media (max-width: 900px) { .qv__check { grid-template-columns: 1fr; } }
.qv__check i { width: 18px; color: var(--danger); }

/* ---------- Nouveautés et maintenance (Journal) ---------- */
.jr-live { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 14px; border-radius: 12px; border: 1px solid rgba(245,158,11,.4); background: var(--warning-dim); }
.jr-live > i { font-size: 20px; color: var(--warning); }
.jr-live--en_cours { border-color: rgba(239,68,68,.45); background: var(--danger-dim); }
.jr-live--en_cours > i { color: var(--danger); }
.jr-live div { flex: 1; } .jr-live span { display: block; font-size: 12.5px; color: var(--text-muted); }
.jr-list { display: grid; gap: 10px; }
.jr-row { display: grid; grid-template-columns: 42px 1fr auto; gap: 14px; align-items: start; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border, rgba(255,255,255,.08)); border-left: 3px solid var(--k); background: var(--bg-card, rgba(255,255,255,.02)); }
.jr-row.is-hidden { opacity: .55; }
.jr-row__ic { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; color: var(--k); background: var(--bg-hover); font-size: 17px; }
.jr-row__tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 4px; font-size: 12px; }
.jr-tag { padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--k); border: 1px solid var(--k); }
.jr-row__title { display: block; font-weight: 700; font-size: 15px; color: var(--text); }
.jr-row p { margin: 4px 0; color: var(--text-muted); font-size: 13px; }
.jr-row__act { display: flex; gap: 4px; }
.jr-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.jr-kind input { position: absolute; opacity: 0; pointer-events: none; }
.jr-kind span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--border, rgba(255,255,255,.12)); cursor: pointer; font-weight: 600; font-size: 13px; }
.jr-kind span i { color: var(--k); }
.jr-kind input:checked + span { border-color: var(--k); background: var(--bg-hover); box-shadow: 0 0 0 3px rgba(255,255,255,.04), inset 0 0 0 1px var(--k); }
.jr-kind input:focus-visible + span { outline: 2px solid var(--k); outline-offset: 2px; }
.jr-maint { margin-top: 16px; padding: 14px 16px; border-radius: 10px; border: 1px dashed rgba(245,158,11,.5); background: var(--warning-dim); }
.jr-en { margin: 4px 0 8px; padding: 10px 14px; border-radius: 10px; background: var(--bg-hover); }
.jr-en summary { cursor: pointer; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.field-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
@media (max-width: 700px) { .jr-row { grid-template-columns: 1fr; } .jr-row__ic { display: none; } }
input[type=date], input[type=datetime-local], input[type=time] { color-scheme: dark; }


/* Profil : appareils connectés */
.devs { padding: 6px 16px; }
.dev { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.dev:last-of-type { border-bottom: 0; }
.dev > i { font-size: 18px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--bg-hover); color: var(--text-muted); flex: none; }
.dev.dev-cur > i { background: var(--success-dim); color: var(--success); }
.dev > div { flex: 1; min-width: 0; }
.dev .text-dim { font-size: 12.5px; margin-top: 2px; overflow-wrap: anywhere; }
.dev-all { padding: 10px 0 8px; border-top: 1px solid var(--border); }

/* ---------- permissions : lecture seule ---------- */
.perm-hide { display: none !important; }
.perm-banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 16px; border-radius: 10px; background: var(--info-dim); color: var(--info); border: 1px solid rgba(56,189,248,.3); font-size: 13.5px; }
