/* crm/assets/crm.css — thème de la maquette validée (sombre, accents dorés)
   Optimisé 1920×1080 paysage ; se replie en une colonne sous 1400 px. */

:root {
  --bg: #111113;
  --bg-top: #17171A;
  --surface: #1B1B1F;
  --surface-2: #232329;
  --surface-3: #2A2A31;
  --line: #2E2E35;
  --line-2: #3A3A42;
  --text: #ECE8E0;
  --text-2: #CFCAC0;
  --muted: #A19D95;
  --faint: #8E8A82;
  --gold: #D6AE55;
  --gold-hover: #E6C06A;
  --gold-ink: #1A1508;
  --ok: #7FD3A2;   --ok-bg: #1E3328;
  --warn: #F5C26B; --warn-bg: #3A2E16;
  --info: #9CC3F0; --info-bg: #1C2A3A;
  --bad: #F2A197;  --bad-bg: #3A1F1C; --bad-line: #7A3A33;
  --radius: 14px;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: Fraunces, Georgia, serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
}
a { color: var(--gold); }
a:hover { color: var(--gold-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.muted { color: var(--muted); }
.small { font-size: 13px; }
.strong { font-weight: 600; }
.ta-r { text-align: right; }
.crm-grow { flex-grow: 1; }

/* ─── Structure ──────────────────────────────────────────────────────── */
.crm-app { min-height: 100vh; display: flex; flex-direction: column; }

.crm-top {
  height: 68px; flex-shrink: 0;
  padding: 0 24px;
  display: flex; align-items: center; gap: 18px;
  background: var(--bg-top);
  border-bottom: 1px solid var(--line);
}
.crm-brand {
  font-family: var(--display); font-size: 21px; font-weight: 600;
  letter-spacing: 0.04em; color: var(--gold); text-decoration: none;
}
.crm-sep { width: 1px; height: 30px; background: var(--line); }
.crm-nav { display: flex; gap: 6px; }
.crm-nav a {
  height: 40px; padding: 0 16px; display: flex; align-items: center;
  border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600;
}
.crm-nav a.is-active, .crm-nav a:hover { background: var(--surface-3); color: var(--text); }
.crm-top-info { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.crm-user { color: var(--text-2); font-size: 14px; }

.crm-body { flex-grow: 1; min-height: 0; padding: 20px 24px; }
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 20px;
  height: calc(100vh - 68px);
}

/* ─── Panneaux ───────────────────────────────────────────────────────── */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.panel-scroll { padding: 0; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.panel-head {
  padding: 18px 22px; display: flex; align-items: center; gap: 14px;
  border-bottom: 1px solid var(--line);
}
.panel-content { flex-grow: 1; min-height: 0; overflow-y: auto; padding: 4px 22px 16px; }
.side-col { display: flex; flex-direction: column; gap: 16px; min-height: 0; overflow-y: auto; }

.h-display { font-family: var(--display); font-size: 22px; font-weight: 600; margin: 0; }
.h-card { font-family: var(--display); font-size: 19px; font-weight: 600; margin: 0 0 14px; }

.empty { padding: 48px 8px; color: var(--muted); }
.import-banner {
  display: flex; align-items: center; gap: 14px; margin: 14px 0 6px;
  padding: 12px 14px; background: var(--info-bg); border: 1px solid #2C4560;
  border-radius: 10px; color: var(--info); font-size: 14px;
}
.import-banner span { flex-grow: 1; }

/* ─── Formulaires ────────────────────────────────────────────────────── */
.stack { display: flex; flex-direction: column; gap: 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid-cp { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > span { font-size: 12px; color: var(--muted); }
.field input, .field select, .field textarea, .search-form select {
  height: 42px; padding: 0 12px;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 9px;
  color: var(--text);
}
.field textarea { height: auto; padding: 10px 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); outline: none; }

.seg { display: flex; gap: 8px; border: 0; padding: 0; margin: 0; }
.seg label { flex-grow: 1; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span {
  display: flex; align-items: center; justify-content: center; height: 38px;
  border: 1px solid var(--line-2); border-radius: 9px; color: var(--text-2); font-size: 13px;
}
.seg input:checked + span { background: var(--surface-3); border-color: var(--gold); color: var(--text); font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

details.more summary { cursor: pointer; color: var(--gold); font-size: 13px; font-weight: 600; padding: 4px 0; }
details.more[open] summary { margin-bottom: 10px; }

.search-form { display: flex; gap: 10px; align-items: center; }
.search-box {
  display: flex; align-items: center; gap: 10px; width: 380px; height: 44px;
  padding: 0 14px; background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: 10px; color: var(--muted);
}
.search-box:focus-within { border-color: var(--gold); }
.search-box input { flex-grow: 1; background: transparent; border: 0; outline: none; color: var(--text); }
.search-form select { height: 44px; }

/* ─── Boutons ────────────────────────────────────────────────────────── */
.btn {
  height: 42px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; border: 1px solid transparent; font-size: 14px; font-weight: 600;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--gold-ink); }
.btn-primary:hover { background: var(--gold-hover); color: var(--gold-ink); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); font-weight: 500; }
.btn-ghost:hover { border-color: var(--gold); color: var(--text); }
.btn-sm { height: 36px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; height: 46px; font-size: 15px; }
.btn:disabled { opacity: 0.6; cursor: wait; }

/* ─── Tableau clients ────────────────────────────────────────────────── */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th {
  text-align: left; padding: 12px 10px 12px 0; font-size: 12px; font-weight: 500;
  color: var(--muted); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--surface); z-index: 1;
}
.tbl td { padding: 14px 10px 14px 0; border-bottom: 1px solid #26262C; vertical-align: middle; }
.tbl tbody tr:hover td { background: #1F1F24; }

.status { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.st-ok   { color: var(--ok);   background: var(--ok-bg); }
.st-warn { color: var(--warn); background: var(--warn-bg); }
.st-info { color: var(--info); background: var(--info-bg); }
.st-bad  { color: var(--bad);  background: var(--bad-bg); }
.st-mute { color: var(--text-2); background: #26262C; }

.pill { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.pill-alert { color: var(--bad); background: var(--bad-bg); border: 1px solid var(--bad-line); }
.pill-sm { font-size: 11px; padding: 1px 8px; margin-left: 6px; }

.mini-progress { display: flex; align-items: center; gap: 8px; }
.mini-progress .bar { width: 80px; height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.mini-progress .bar div { height: 6px; background: var(--gold); }

/* ─── Prochains événements ───────────────────────────────────────────── */
.upcoming { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.upcoming a {
  display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px;
  color: var(--text); text-decoration: none;
}
.upcoming a:hover { background: var(--surface-2); }
.date-chip {
  width: 52px; flex-shrink: 0; text-align: center; background: var(--surface-2);
  border-radius: 9px; padding: 6px 0; display: flex; flex-direction: column;
}
.date-chip strong { font-size: 18px; }
.date-chip small { font-size: 11px; color: var(--muted); }
.up-text { display: flex; flex-direction: column; min-width: 0; }

/* ─── Fiche événement ────────────────────────────────────────────────── */
.fiche-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 20px;
  height: calc(100vh - 68px);
}
.panel-head > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.panel-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.panel-row .h-card { margin: 0; }
.stack-tight { display: flex; flex-direction: column; gap: 3px; }
.event-form { padding-top: 16px; max-width: 1180px; }

.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-size: 12px; color: var(--muted); margin-bottom: 8px; padding: 0; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span {
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-2);
  font-size: 13px; font-weight: 600;
}
.chips input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.chips input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.grid-type  { display: grid; grid-template-columns: 240px minmax(0, 1fr) 170px; gap: 12px; }
.grid-times { display: grid; grid-template-columns: 190px repeat(4, minmax(0, 1fr)); gap: 10px; }
.grid-lieu  { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 120px 200px; gap: 10px; margin-bottom: 10px; }
.grid-3     { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

.box { padding: 16px; background: #202025; border: 1px solid #33333B; border-radius: 12px; }
.box-title { font-size: 12px; font-weight: 600; color: var(--gold); letter-spacing: 0.04em; margin-bottom: 12px; }

.form-actions { display: flex; align-items: center; gap: 10px; padding-top: 6px; }

.top-stat strong { color: var(--text); }

.ev-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ev-list a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: var(--surface-2); border: 1px solid #33333B; border-radius: 10px;
  color: var(--text); text-decoration: none;
}
.ev-list a:hover { border-color: var(--line-2); }
.ev-list a.is-current { border-color: var(--gold); }
.ev-text { flex-grow: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.lieu-map { height: 240px; border-radius: 10px; border: 1px solid var(--line-2); overflow: hidden; background: var(--surface-2); margin-bottom: 12px; }
.lieu-map .leaflet-control-attribution { font-size: 10px; }
.trajet-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.trajet-stats > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: var(--surface-2); border-radius: 10px; }
.trajet-stats strong { font-family: var(--display); font-size: 20px; color: var(--gold); font-weight: 600; }
.geo-label { margin: 0 0 10px; }
.warn-note { color: var(--warn); background: var(--warn-bg); padding: 8px 10px; border-radius: 8px; margin: 0 0 10px; }
.nav-links { display: flex; gap: 8px; margin-bottom: 10px; }
.panel-row form { margin: 0; }


/* ═══ Tableau de bord de l'événement ═══════════════════════════════════ */
.dash-grid {
  display: grid;
  grid-template-columns: 560px minmax(0, 1fr) 360px;
  gap: 20px;
  height: calc(100vh - 68px);
}
.create-wrap { max-width: 1240px; }
.create-wrap .panel-row { margin-bottom: 4px; }

/* Barre du haut : sélecteurs */
.crm-top-info { gap: 14px; }
.sel { position: relative; display: flex; align-items: center; gap: 8px; }
.sel-lbl { font-size: 12px; color: var(--muted); }
.split { display: flex; height: 42px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.split-main {
  display: flex; align-items: center; gap: 8px; padding: 0 12px; background: transparent; border: 0;
  color: var(--text); font-size: 14px; cursor: pointer; max-width: 280px;
}
.split-main svg { color: var(--gold); flex-shrink: 0; }
.split-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: underline; text-decoration-color: #5C4B25; text-underline-offset: 4px; }
.split-main:hover .split-text { text-decoration-color: var(--gold); }
.split-caret {
  display: flex; align-items: center; gap: 6px; padding: 0 10px; background: transparent;
  border: 0; border-left: 1px solid var(--line-2); color: var(--muted); cursor: pointer;
}
.split-caret:hover { color: var(--text); }
.count-badge { font-size: 11px; font-weight: 600; color: var(--gold-ink); background: var(--gold); padding: 1px 7px; border-radius: 999px; }
.menu {
  position: absolute; top: 50px; left: 40px; z-index: 30; width: 380px; max-height: 70vh;
  display: flex; flex-direction: column; background: #1F1F24; border: 1px solid var(--line-2);
  border-radius: 12px; padding: 8px; box-shadow: 0 16px 40px rgba(0,0,0,.5);
}
.menu[hidden] { display: none; }
.menu-search input {
  width: 100%; height: 40px; padding: 0 12px; background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: 8px; color: var(--text); margin-bottom: 6px;
}
.menu-head { padding: 4px 8px 8px; }
.menu-list { overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.menu-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 14px;
}
.menu-list a:hover, .menu-list a.is-current { background: var(--surface-3); }
.menu-list a[hidden] { display: none; }
.menu-add { display: block; padding: 10px 12px; margin-top: 4px; border-top: 1px solid var(--line); color: var(--gold); font-weight: 600; font-size: 14px; text-decoration: none; }

/* Planning */
.pl-head-bar { flex-direction: column; align-items: stretch; gap: 12px; }
.panel-head.pl-head-bar > .pl-head-top { display: flex; flex-direction: row; align-items: center; gap: 12px; }
.pl-progress { display: flex; align-items: center; gap: 12px; }
.pl-progress .bar { flex-grow: 1; height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.pl-progress .bar div { height: 8px; width: 0; background: var(--gold); border-radius: 999px; transition: width .3s; }
.pl-progress strong { min-width: 48px; text-align: right; }
#pl-list { padding-top: 10px; }
.pl-empty { padding: 30px 8px 10px; color: var(--muted); }
.pl-row { display: grid; grid-template-columns: 50px 28px minmax(0, 1fr); gap: 10px; }
.pl-time { padding-top: 16px; text-align: right; font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.pl-axis { display: flex; flex-direction: column; align-items: center; position: relative; }
.pl-axis::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--line); }
.pl-axis.is-first::before { top: 20px; }
.pl-axis.is-last::before { bottom: auto; height: 20px; }
.pl-axis.is-first.is-last::before { display: none; }
.pl-dot {
  position: relative; margin-top: 12px; width: 24px; height: 24px; border-radius: 50%; padding: 0;
  border: 2px solid #55555E; background: var(--surface); color: #111113; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.pl-dot.pl-done { background: #4CAF7A; border-color: #4CAF7A; }
.pl-dot.pl-live { background: #F0913A; border-color: #F0913A; }
.pl-body { padding-top: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pl-card { padding: 12px 14px; background: #202025; border: 1px solid #33333B; border-radius: 10px; display: flex; flex-direction: column; gap: 6px; }
.pl-card-done { background: #18241D; border-color: #2F5A44; }
.pl-card-live { background: #2B2016; border-color: #8A5A2A; }
.pl-card.is-masked { border-style: dashed; border-color: #7A5CB8; }
.pl-card-head { display: flex; align-items: center; gap: 8px; }
.pl-title { font-weight: 600; font-size: 15px; }
.pl-desc { font-size: 13px; color: #B7B2A9; }
.pl-card-foot, .pl-card-tools { display: flex; align-items: center; gap: 12px; font-size: 12px; }
.pl-card-tools { padding-top: 6px; border-top: 1px solid rgba(255,255,255,.06); }
.pl-state { font-weight: 600; color: #B7B2A9; }
.pl-state-done { color: var(--ok); }
.pl-state-live { color: #F5A65B; }
.pl-mask { display: flex; align-items: center; gap: 5px; color: #C7B0F2; cursor: pointer; }
.pl-mask input { accent-color: #7A5CB8; }
.chip { font-size: 12px; color: var(--text-2); background: var(--surface-3); padding: 2px 9px; border-radius: 999px; }
.badge-surprise { font-size: 10px; font-weight: 700; letter-spacing: .06em; color: #D2B8FF; background: #2C2240; padding: 2px 7px; border-radius: 999px; }
.pl-insert {
  align-self: flex-start; background: transparent; border: 1px dashed var(--line-2); border-radius: 7px;
  color: var(--faint); font-size: 11px; padding: 2px 10px; margin-bottom: 4px; cursor: pointer;
}
.pl-insert:hover { color: var(--gold); border-color: var(--gold); }
.pl-insert-top { margin: 0 0 8px 88px; }
.link-btn { background: transparent; border: 0; padding: 4px 0; color: var(--muted); font-size: 12px; cursor: pointer; text-align: left; }
.link-btn:hover { color: var(--gold); }

/* Onglets */
.tabs { display: flex; gap: 2px; padding: 8px 12px 0; border-bottom: 1px solid var(--line); overflow-x: auto; flex-shrink: 0; }
.tabs button {
  height: 46px; padding: 0 14px; background: transparent; border: 0; border-bottom: 3px solid transparent;
  color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer;
}
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--gold); }
.tabs .tab-surprise { color: #C7B0F2; }
.tabs .tab-surprise[aria-selected="true"] { border-bottom-color: #A98BE8; }
.tab-count { font-size: 11px; color: #D2B8FF; }
.tab-panels { padding-top: 0; }
.tab-panels > [data-panel] { padding-top: 18px; }
.soon { display: flex; flex-direction: column; gap: 6px; padding: 22px; border: 1px dashed var(--line-2); border-radius: 12px; color: var(--muted); max-width: 720px; }
.soon strong { color: var(--text); font-size: 16px; }
.soon-warn { border-color: #6A4B1F; }
.surprise-banner {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 14px;
  background: #2C2240; border: 1px solid #5B4690; border-radius: 12px; color: #E2D4FF; font-size: 14px;
}
.surprise-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin-bottom: 8px;
  background: #202025; border: 1px dashed #7A5CB8; border-radius: 12px;
}
.sp-time { width: 52px; }
.sp-text { flex-grow: 1; }
.btn-surprise { background: #7A5CB8; color: #fff; margin-top: 6px; }
.btn-surprise:hover { background: #8C6DCC; color: #fff; }
#ct-table .ct-role { font-weight: 600; color: var(--gold); }
#ct-table tr.is-empty td:not(.ct-role):not(.ta-r) { color: var(--faint); }
#ct-table .ct-on { color: var(--ok); font-weight: 600; font-size: 12px; }

/* Colonne droite */
.facts { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.facts > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 8px; font-size: 14px; }
.facts dt { color: var(--muted); font-size: 12px; padding-top: 2px; }
.facts dd { margin: 0; }
.facts .link-btn { font-size: 14px; color: var(--gold); padding: 0; }
.panel-alert { border-color: var(--bad-line); }
.pending-list { margin: 0; padding-left: 18px; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }

/* Modales */
.dlg {
  padding: 0; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); color: var(--text);
  max-height: 92vh; width: min(94vw, 760px); box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.dlg[open] { display: flex; flex-direction: column; }
.dlg::backdrop { background: rgba(8,8,10,.72); }
.dlg-md { width: min(94vw, 620px); }
.dlg-lg { width: min(94vw, 980px); }
.dlg-xl { width: min(94vw, 1240px); }
.dlg-form { display: flex; flex-direction: column; min-height: 0; max-height: 92vh; }
.dlg-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.dlg-head .h-card { margin: 0; }
.dlg-body { padding: 18px 22px; overflow-y: auto; min-height: 0; }
.dlg-foot { display: flex; align-items: center; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); flex-shrink: 0; }
.tabs-dlg { padding: 0 22px; }
.icon-btn {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-2); border-radius: 10px; color: var(--text-2); cursor: pointer;
}
.icon-btn:hover { border-color: var(--gold); color: var(--text); }
.dlg .event-form { padding-top: 0; max-width: none; }
.seg-inline { max-width: 360px; }
.grid-lieu-cli { display: grid; grid-template-columns: minmax(0, 1fr) 130px 220px; gap: 10px; }
.grid-point { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; }
.check-line { display: flex; align-items: center; gap: 8px; font-size: 14px; padding-top: 22px; cursor: pointer; }
.form-error { color: var(--bad); background: var(--bad-bg); padding: 8px 12px; border-radius: 8px; margin: 0; font-size: 14px; }
.btn-danger-ghost { background: transparent; border-color: var(--bad-line); color: var(--bad); font-weight: 500; }
.btn-danger-ghost:hover { border-color: var(--bad); color: var(--bad); }
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
.lieu-map-lg { height: 480px; margin: 0; }
.trajet-col { grid-template-columns: minmax(0, 1fr); }


/* Grille de prestations */
.ta-c { text-align: center; }
.pr-table th { font-size: 12px; white-space: nowrap; top: 0; }
.tbl th.ta-r { text-align: right; }
.tbl th.ta-c { text-align: center; }
.pr-table td { padding: 10px 10px 10px 0; vertical-align: top; }
.pr-table tr.pr-section td {
  padding: 18px 0 8px; font-family: var(--display); font-size: 16px; font-weight: 600; color: var(--gold);
  border-bottom: 1px solid var(--line-2); background: transparent;
}
.pr-table tr.pr-cat td { padding: 10px 0 4px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 0; }
.pr-table tbody tr.pr-section:hover td, .pr-table tbody tr.pr-cat:hover td { background: transparent; }
.pr-num { width: 36px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 16px !important; }
.pr-name { min-width: 0; }
.pr-lbl { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-weight: 500; padding-top: 6px; }
.pr-desc { font-size: 12px; color: var(--muted); margin-top: 3px; max-width: 560px; }
.pr-hint { display: block; font-size: 12px; color: var(--info); margin-top: 3px; }
.tr-off, .pr-table tr.is-off .pr-lbl, .pr-table tr.is-off .price-btn span:first-child { color: var(--muted); }
.pr-table tr.is-on .pr-lbl { color: var(--text); }
.pr-table tr.is-on td { background: rgba(214,174,85,.05); }
.tag-module { font-size: 10px; font-weight: 700; letter-spacing: .06em; color: var(--gold); border: 1px solid #5C4B25; padding: 1px 7px; border-radius: 999px; }
.tag-modif { font-size: 11px; font-weight: 600; color: #F0B37A; background: #3A2A1A; padding: 1px 8px; border-radius: 999px; }
.price-btn {
  background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 6px 8px; color: var(--text);
  font-size: 14px; cursor: pointer; text-align: right; font-variant-numeric: tabular-nums;
}
.price-btn:hover { border-color: var(--line-2); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; background: var(--surface-2); }
.qty-btn { width: 32px; height: 36px; background: transparent; border: 0; color: var(--text-2); font-size: 16px; cursor: pointer; }
.qty-btn:hover { color: var(--gold); background: var(--surface-3); }
.qty-input {
  width: 48px; height: 36px; border: 0; border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2);
  background: transparent; color: var(--text); text-align: center; font-weight: 600; -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pr-table tr.is-off .qty-input { color: var(--muted); font-weight: 400; }
.pr-total { font-weight: 600; font-variant-numeric: tabular-nums; padding-top: 16px !important; }
.pr-totals {
  display: flex; align-items: flex-end; gap: 20px; margin: 18px 0 20px; padding: 16px 18px;
  background: #26262C; border: 1px solid var(--line-2); border-radius: 12px;
  position: sticky; bottom: 0; z-index: 2; box-shadow: 0 -10px 24px rgba(17,17,19,.85);
}
.pr-mention { font-size: 13px; color: var(--text-2); display: flex; flex-direction: column; gap: 4px; }
.pr-sums { margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 340px; }
.pr-sums > div { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; }
.pr-sums dt { color: var(--muted); font-size: 13px; }
.pr-sums dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.pr-sums .pr-grand { font-family: var(--display); font-size: 28px; color: var(--gold); }
.soon-inline { max-width: none; }
.ro-value { height: 42px; display: flex; align-items: center; padding: 0 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; color: var(--muted); }
.hist-list { margin: 0; padding-left: 18px; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }


/* Verrouillage (contrat émis) */
.lock-banner { padding: 12px 14px; margin-bottom: 12px; background: var(--info-bg); border: 1px solid #2C4560; border-radius: 10px; color: var(--info); font-size: 14px; }
.pr-table tr.is-locked .qty, .pr-table tr.is-locked .price-btn { opacity: .55; }
.pr-table tr.is-locked .price-btn { cursor: default; }
.pr-table tr.is-locked .price-btn:hover { border-color: transparent; }
.qty-btn:disabled { cursor: default; }

/* Roue dentée : catalogue et tarifs */
.gear-btn { flex-shrink: 0; }
.dlg-cat { width: min(96vw, 1400px); height: min(92vh, 900px); }
.cat-layout { flex-grow: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 480px; }
.cat-list { overflow-y: auto; padding: 6px 18px 18px; border-right: 1px solid var(--line); }
.cat-detail { overflow-y: auto; padding: 18px 22px; background: #19191D; display: flex; flex-direction: column; gap: 16px; }
.cat-sec { font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--gold); padding: 16px 4px 6px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.cat-row { display: flex; align-items: center; gap: 6px; border-radius: 9px; border: 1px solid transparent; }
.cat-row:hover { background: #1F1F24; }
.cat-row.is-current { background: var(--surface-3); border-color: #5C4B25; }
.cat-row.is-inactive .cat-lbl > span:first-child { color: var(--faint); text-decoration: line-through; }
.cat-main { flex-grow: 1; min-width: 0; display: grid; grid-template-columns: 32px minmax(0, 1fr) 150px; gap: 8px; align-items: start;
  padding: 9px 8px; background: transparent; border: 0; color: var(--text); text-align: left; cursor: pointer; font-size: 14px; }
.cat-num { color: var(--muted); font-variant-numeric: tabular-nums; }
.cat-lbl { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cat-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cat-prog { font-size: 11px; font-weight: 600; color: var(--warn); }
.cat-off { font-size: 11px; font-weight: 500; color: var(--faint); }
.cat-move { display: flex; flex-direction: column; gap: 2px; padding-right: 4px; }
.mini-btn { width: 26px; height: 20px; padding: 0; background: transparent; border: 1px solid var(--line-2); border-radius: 5px; color: var(--muted); font-size: 11px; cursor: pointer; line-height: 1; }
.mini-btn:hover:not(:disabled) { color: var(--gold); border-color: var(--gold); }
.mini-btn:disabled { opacity: .3; cursor: default; }
.cat-detail-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cat-detail-head .h-card { margin: 0; }
.cat-grid { display: grid; grid-template-columns: minmax(0, 1fr) 140px 90px; gap: 10px; }
.cat-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: end; }
.cat-grid2 .check-line { padding-top: 0; padding-bottom: 10px; }
.cat-tarif { gap: 12px; }
.cat-price-now { display: flex; align-items: baseline; gap: 10px; }
.cat-price-now strong { font-family: var(--display); font-size: 30px; font-weight: 600; color: var(--gold); }
.cat-prog-note { margin: 0; color: var(--warn); background: var(--warn-bg); padding: 8px 10px; border-radius: 8px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line-2); display: flex; flex-direction: column; gap: 12px; }
.timeline li { position: relative; font-size: 14px; display: flex; flex-direction: column; gap: 2px; }
.timeline li::before { content: ''; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.timeline li.is-prog::before { background: var(--warn); }
.timeline li:not(:first-child)::before { background: #55555E; }
.timeline li.is-prog::before { background: var(--warn); }
@media (max-width: 1100px) { .cat-layout { grid-template-columns: minmax(0, 1fr); } .cat-list { border-right: 0; border-bottom: 1px solid var(--line); max-height: 40vh; } }


/* Annexe, remise, acompte */
.pr-chk { width: 54px; text-align: center; padding-top: 16px !important; }
th.pr-chk { padding-top: 12px !important; }
.annexe-chk { width: 18px; height: 18px; accent-color: var(--gold); cursor: pointer; }
.annexe-chk:disabled { cursor: default; opacity: .7; }
.pr-table tr.is-off.in-annexe .pr-lbl { color: var(--text-2); }
.pr-table tr.is-off.in-annexe td { background: rgba(156,195,240,.04); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sec-bulk { font-family: var(--font); font-size: 12px; font-weight: 500; color: var(--muted); }
.pr-left { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1 1 auto; max-width: 560px; }
.pr-left .box-title { margin: 0; }
.remise-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mini-input, .mini-select {
  height: 36px; padding: 0 10px; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 8px; color: var(--text); font-size: 14px;
}
.mini-input { width: 90px; }
.mini-wide { width: auto; flex: 1 1 200px; min-width: 160px; }
.mini-pct { width: 56px; height: 30px; text-align: center; padding: 0 4px; }
.mini-input:focus, .mini-select:focus { border-color: var(--gold); outline: none; }
.mini-input:disabled, .mini-select:disabled { opacity: .6; }
.pr-remise dd { color: var(--ok); }
.pr-acompte dt { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pr-acompte .link-btn { font-size: 12px; padding: 0 0 0 4px; }
.pr-totals { align-items: stretch; }
.pr-sums { min-width: 380px; }


/* Contrat d'engagement */
.contrat-zone { margin: 8px 0 24px; padding: 18px; border: 1px solid var(--line-2); border-radius: 12px; background: #1F1F24; }
.ctr-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin-top: 8px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; }
.ctr-row.ctr-remplace, .ctr-row.ctr-refuse { background: transparent; opacity: .75; }
.ctr-row.ctr-accepte { border-color: #2F5A44; }
.ctr-row.ctr-envoye { border-color: #6A4B1F; }
.ctr-v { font-size: 15px; width: 32px; }
.ctr-info { display: flex; flex-direction: column; gap: 2px; }
.ctr-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }


/* Accordéon de la grille */
.grid-bar { display: flex; align-items: center; gap: 14px; margin: 4px 0 6px; }
.sec-toggle {
  display: flex; align-items: baseline; gap: 10px; background: transparent; border: 0; padding: 0; cursor: pointer;
  font-family: var(--display); font-size: 16px; font-weight: 600; color: var(--gold); text-align: left;
}
.sec-toggle .chev { display: inline-block; font-size: 12px; transition: transform .15s; }
.sec-toggle[aria-expanded="false"] .chev { transform: rotate(-90deg); }
.sec-sum { font-family: var(--font); font-size: 12px; font-weight: 500; color: var(--muted); }
/* Bandeau « modifications depuis la dernière version » */
.modif-banner { padding: 10px 14px; margin: 4px 0 8px; background: var(--warn-bg); border: 1px solid #6A4B1F; border-radius: 10px; color: var(--warn); font-size: 14px; }
.modif-info { background: var(--info-bg); border-color: #2C4560; color: var(--info); }


/* Options et notes */
.notes-grid { display: flex; flex-direction: column; gap: 16px; padding-bottom: 20px; }
.note-card { padding: 16px; background: #1F1F24; border: 1px solid var(--line-2); border-radius: 12px; display: flex; flex-direction: column; gap: 10px; }
.note-private { border-style: dashed; border-color: #5C4B25; }
.note-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.note-head .h-card { margin: 0; font-size: 17px; }
.note-state { font-size: 12px; color: var(--muted); white-space: nowrap; }
.note-state.is-ok { color: var(--ok); }
.note-state.is-pending, .note-state.is-saving { color: var(--warn); }
.note-state.is-error { color: var(--bad); }
.note-editor { width: 100%; min-height: 200px; padding: 12px; background: #202025; border: 1px solid var(--line-2); border-radius: 9px; color: var(--text); font: inherit; resize: vertical; }
.note-card .tox-tinymce { border-radius: 9px !important; border-color: var(--line-2) !important; }
.note-card .warn-note { margin: 0; }


/* En-tête : lieu et invités */
.top-fact { display: flex; flex-direction: column; justify-content: center; gap: 1px; background: transparent; border: 0; padding: 0 2px; color: var(--text); text-align: left; min-width: 0; }
button.top-fact { cursor: pointer; }
button.top-fact:hover .top-fact-val { color: var(--gold); }
.top-fact-lbl { font-size: 11px; color: var(--muted); line-height: 1.2; }
.top-fact-val { font-size: 14px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.crm-top-info .status, .crm-top-info .pill { white-space: nowrap; }

/* Musique */
.mu-table td { vertical-align: middle; }
.mu-moment { font-weight: 600; color: var(--gold); }
.mu-link { color: var(--text-2); }
.mu-link .badge-surprise { margin-left: 8px; }
.mu-actions { white-space: nowrap; }
.mu-actions > * { margin-left: 6px; vertical-align: middle; }
.mu-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 22px 0 20px; }
.mu-list { padding: 16px; border-radius: 12px; display: flex; flex-direction: column; gap: 10px; }
.mu-list h3 { margin: 0; font-size: 15px; }
.mu-blanche { background: #1A2A22; border: 1px solid #2F5A44; }
.mu-blanche h3 { color: var(--ok); }
.mu-noire { background: #2E1B1A; border: 1px solid #6A332E; }
.mu-noire h3 { color: var(--bad); }
.mu-list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mu-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.mu-l-text { min-width: 0; }
.mu-del { width: 26px; height: 24px; }
.mu-add-form { display: flex; gap: 6px; }
.mu-add-form input { flex: 1 1 0; min-width: 0; height: 36px; padding: 0 10px; background: rgba(0,0,0,.25); border: 1px solid var(--line-2); border-radius: 8px; color: var(--text); }
.mu-add-form input:focus { border-color: var(--gold); outline: none; }
.tag-client { font-size: 10px; font-weight: 700; color: var(--info); border: 1px solid #2C4560; padding: 0 6px; border-radius: 999px; margin-left: 6px; }
.pl-musics { display: flex; flex-direction: column; gap: 2px; }
.pl-music { font-size: 12px; color: var(--gold); }


/* Liens d'écoute */
.play-link {
  border: 0; padding: 0; cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-left: 6px;
  border-radius: 50%; background: #3A1616; color: #FF6B6B; font-size: 9px; text-decoration: none; vertical-align: middle; flex-shrink: 0;
}
.play-link:hover { background: #FF4E45; color: #fff; }
.mu-add-form input[name="lien"] { flex: 1.2 1 0; }


/* Planning en direct */
#pl-list { position: relative; }
.live-clock { display: flex; align-items: center; gap: 8px; padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; white-space: nowrap; }
.live-clock.is-off { cursor: default; }
.live-time { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 14px; }
.live-clock.is-off .live-time { display: none; }
.live-gap { font-size: 12px; font-weight: 700; color: var(--muted); }
.live-gap.gap-ok, .live-gap.gap-early { color: var(--ok); }
.live-gap.gap-late { color: var(--bad); }
.pl-now { position: absolute; pointer-events: none; z-index: 1; }
.pl-dot { z-index: 2; box-shadow: 0 0 0 4px var(--surface); }
.pl-card { position: relative; z-index: 1; }
.pl-now-line { z-index: 0; }
.pl-now-dot, .pl-now-lbl { z-index: 3; }
#pl-count { white-space: nowrap; }
.pl-now-fill { width: 4px; border-radius: 2px; background: #4CAF7A; transition: height .6s; }
.pl-now-fill.gap-late { background: #E5645A; }
.pl-now-line { right: 0; height: 0; border-top: 2px dashed #4CAF7A; opacity: .75; }
.pl-now-line.gap-late { border-top-color: #E5645A; }
.pl-now-dot { width: 14px; height: 14px; border-radius: 50%; background: #4CAF7A; box-shadow: 0 0 0 4px rgba(76,175,122,.25); }
.pl-now-dot.gap-late { background: #E5645A; box-shadow: 0 0 0 4px rgba(229,100,90,.25); }
.pl-now-lbl { left: 4px; padding: 1px 6px; border-radius: 999px; background: #1E3328; color: var(--ok); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pl-now-lbl.gap-late { background: var(--bad-bg); color: var(--bad); }
@media (prefers-reduced-motion: reduce) { .pl-now-fill { transition: none; } }


.play-link.is-playing { background: #FF4E45; color: #fff; }
/* Moments clés : fiches */
.mu-moments { display: flex; flex-direction: column; gap: 10px; }
.mu-card { padding: 12px 14px; background: #202025; border: 1px solid #33333B; border-radius: 12px; display: flex; flex-direction: column; gap: 8px; }
.mu-card.is-surprise { border-style: dashed; border-color: #7A5CB8; }
.mu-card-head { display: flex; align-items: center; gap: 12px; }
.mu-time { width: 44px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-2); }
.mu-card-title { flex-grow: 1; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mu-titres { list-style: none; margin: 0 0 0 56px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mu-titres li, .mu-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.mu-t-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.mu-add-titre { margin-left: 56px; }
.pl-music-mom { font-weight: 600; }
/* Lecteur intégré */
.player-card { border-color: #5A2A2A; }
.player-head { display: flex; flex-direction: column; min-width: 0; }
.player-head .h-card { margin: 0; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-frame iframe { display: block; width: 100%; border: 0; border-radius: 10px; background: #000; }
.player-youtube iframe { aspect-ratio: 16 / 9; height: auto; }
.player-spotify iframe { height: 152px; }
.player-deezer iframe { height: 150px; }
.player-none { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }


/* Listes de choix */
.choix-row { display: flex; align-items: flex-end; gap: 12px; }
.choix-row .field { flex-grow: 1; }
.choix-row .link-btn { padding-bottom: 12px; white-space: nowrap; color: var(--gold); }
.dlg-cat [data-gpanel][hidden] { display: none !important; }
.choix-pane { flex-grow: 1; min-height: 0; overflow-y: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 16px; }
.choix-filter { display: flex; align-items: flex-end; gap: 20px; }
.choix-filter .field { min-width: 300px; }
.choix-filter p { margin: 0 0 8px; max-width: 620px; }
.choix-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.choix-col { padding: 16px; background: #1F1F24; border: 1px solid var(--line-2); border-radius: 12px; display: flex; flex-direction: column; gap: 10px; }
.choix-col h3 { margin: 0; font-size: 15px; color: var(--gold); }
.choix-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.choix-col li { display: flex; align-items: center; gap: 6px; }
.choix-col li input { flex-grow: 1; min-width: 0; height: 34px; padding: 0 10px; background: var(--surface-2); border: 1px solid transparent; border-radius: 8px; color: var(--text); }
.choix-col li input:hover { border-color: var(--line-2); }
.choix-col li input:focus { border-color: var(--gold); outline: none; }
.choix-add { display: flex; gap: 6px; margin-top: 4px; }
.choix-add input { flex-grow: 1; min-width: 0; height: 36px; padding: 0 10px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 8px; color: var(--text); }


/* Fichiers */
.drop-zone {
  display: flex; align-items: center; gap: 16px; padding: 18px; margin-bottom: 10px; cursor: pointer;
  border: 2px dashed var(--line-2); border-radius: 12px; background: #1F1F24; color: var(--gold);
}
.drop-zone:hover, .drop-zone.is-drag { border-color: var(--gold); background: #24211A; }
.drop-zone:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.drop-text { display: flex; flex-direction: column; gap: 2px; color: var(--text); flex-grow: 1; }
.drop-folder { min-width: 170px; cursor: default; }
.drop-folder select { height: 36px; }
.quota { width: 210px; display: flex; flex-direction: column; gap: 6px; cursor: default; }
.quota .bar { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.quota .bar div { height: 6px; background: var(--gold); }
.fi-progress { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.fi-up { display: grid; grid-template-columns: minmax(0, 1fr) 200px 60px; gap: 10px; align-items: center; font-size: 13px; }
.fi-up .bar { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.fi-up .bar div { height: 6px; width: 0; background: var(--gold); transition: width .2s; }
.fi-up.is-error { color: var(--bad); grid-template-columns: minmax(0, 1fr) 200px 60px minmax(0, 1fr); }
.fi-up-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fi-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.chip-filter { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font-size: 12px; cursor: pointer; }
.chip-filter.is-on { background: var(--surface-3); border-color: var(--gold); color: var(--text); }
.fi-table td { vertical-align: middle; }
.fi-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fi-open { font-size: 14px; color: var(--text); text-align: left; overflow: hidden; text-overflow: ellipsis; }
.fi-open:hover { color: var(--gold); }
.fi-actions { white-space: nowrap; }
.fi-actions > * { margin-left: 4px; }
a.mini-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.preview-body { display: flex; justify-content: center; align-items: center; background: #0C0C0E; min-height: 300px; }
.preview-body img { max-width: 100%; max-height: 75vh; object-fit: contain; }
.preview-body iframe { width: 100%; height: 75vh; border: 0; background: #fff; }
.preview-body video { max-width: 100%; max-height: 75vh; }
.preview-body audio { width: 100%; max-width: 600px; }

/* Chat */
.chat-card { display: flex; flex-direction: column; min-height: 420px; flex: 1 0 420px; }
.chat-card .panel-row { margin-bottom: 8px; }
.chat-with { margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.pill-gold { color: var(--gold-ink); background: var(--gold); font-size: 11px; padding: 1px 8px; border: 0; }
.chat-list { flex: 1 1 auto; min-height: 200px; max-height: 460px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 2px 8px; }
.chat-empty { margin: auto 0; text-align: center; }
.chat-msg { display: flex; flex-direction: column; max-width: 86%; }
.chat-admin { align-self: flex-end; align-items: flex-end; }
.chat-client { align-self: flex-start; align-items: flex-start; }
.chat-bubble { padding: 8px 11px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; display: flex; flex-direction: column; gap: 6px; }
.chat-admin .chat-bubble { background: #3A3120; color: #F3E7C8; border-bottom-right-radius: 4px; }
.chat-client .chat-bubble { background: #26262C; color: var(--text); border-bottom-left-radius: 4px; }
.chat-text { white-space: pre-wrap; word-break: break-word; }
.chat-meta { font-size: 11px; color: var(--faint); margin-top: 2px; }
.chat-sys { align-self: center; font-size: 11px; color: var(--bad); background: #2A1C1B; border: 1px solid #5A2E29; padding: 3px 10px; border-radius: 999px; }
.chat-file { background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 6px 8px; color: inherit; font-size: 12.5px; text-align: left; cursor: pointer; }
.chat-file:hover { border-color: var(--gold); }
.chat-file.is-gone { opacity: .6; cursor: default; }
.chat-form { display: flex; gap: 6px; align-items: flex-end; border-top: 1px solid var(--line); padding-top: 10px; }
.chat-form textarea { flex-grow: 1; min-width: 0; min-height: 38px; max-height: 140px; padding: 8px 10px; resize: none; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 9px; color: var(--text); font: inherit; font-size: 14px; }
.chat-form textarea:focus { border-color: var(--gold); outline: none; }
.chat-attach { width: 38px; height: 38px; flex-shrink: 0; }
.chat-pending { margin-top: 6px; color: var(--warn); }
.chat-pending.is-error { color: var(--bad); }


/* Bulles d'aide */
.crm-tip {
  position: fixed; z-index: 1000; max-width: 280px; padding: 5px 9px; border-radius: 7px; pointer-events: none;
  background: #ECE8E0; color: #151517; font-size: 12px; font-weight: 500; line-height: 1.35; box-shadow: 0 6px 18px rgba(0,0,0,.45);
}
.crm-tip[hidden] { display: none; }
/* Cases de validation */
.valid-chk { position: relative; display: inline-flex; width: 22px; height: 22px; flex-shrink: 0; cursor: pointer; }
.valid-chk input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.valid-chk span {
  width: 22px; height: 22px; border-radius: 6px; border: 2px solid #55555E; color: transparent;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800;
}
.valid-chk:hover span { border-color: #4CAF7A; }
.valid-chk.is-ok span { background: #4CAF7A; border-color: #4CAF7A; color: #0E1A12; }
.valid-chk.by-client span { background: #5B8DEF; border-color: #5B8DEF; color: #fff; }
.valid-chk input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.pl-valid { display: inline-flex; align-items: center; gap: 6px; }
.pl-valid-ok { color: var(--ok); font-weight: 600; }
.player-audio audio { width: 100%; }
.player-video video { width: 100%; border-radius: 10px; background: #000; max-height: 260px; }


/* « À valider » */
.top-avalider { cursor: pointer; }
.pill-ok { color: var(--ok); background: var(--ok-bg); border: 1px solid #2F5A44; }
.avalider-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.avalider-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; background: var(--surface-2); }
.avalider-list li.is-done { opacity: .7; }
.av-count { min-width: 26px; height: 26px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; background: var(--bad-bg); color: var(--bad); border: 1px solid var(--bad-line); }
.is-done .av-count { background: var(--ok-bg); color: var(--ok); border-color: #2F5A44; }
.av-label { flex-grow: 1; display: flex; flex-direction: column; font-size: 14px; }
.av-go { color: var(--gold); white-space: nowrap; }
.avalider-sub { margin-top: 12px; }
.flash { animation: crm-flash 1.6s ease-out; }
@keyframes crm-flash { 0% { box-shadow: 0 0 0 3px var(--gold); } 100% { box-shadow: 0 0 0 3px transparent; } }
@media (prefers-reduced-motion: reduce) { .flash { animation: none; outline: 2px solid var(--gold); } }
.ct-mail { color: var(--gold); }
.chat-pending.is-ok { color: var(--ok); }


/* Indicateur des messages non lus (barre du haut) */
.msg-ind { position: relative; }
.msg-btn { position: relative; }
.msg-btn.has-unread { color: var(--text); border-color: #7A3A33; }
.msg-badge {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: #E5484D; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--bg-top);
}
.msg-menu { top: 50px; right: 0; left: auto; width: 360px; }
.menu-list a.msg-item { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; text-align: left; gap: 2px; padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; }
.msg-item:hover { background: var(--surface-3); }
.msg-item-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.msg-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #E5484D; color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.msg-extrait { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-empty { padding: 10px 12px; margin: 0; }
/* Coches façon WhatsApp */
.chat-meta { display: flex; align-items: center; gap: 5px; }
.chat-ticks { font-size: 12px; font-weight: 700; letter-spacing: -3px; color: #8E8A82; padding-right: 3px; cursor: default; }
.chat-ticks.is-read { color: #53BDEB; }


/* Mode « à valider » */
.hl-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 20px 8px; padding: 8px 12px;
  background: #3A2A12; border: 1px solid #8A5A1E; border-radius: 10px; color: #F4B860; font-size: 13px; font-weight: 600;
}
[data-panel="musique"] .hl-banner { margin: 0 0 12px; }
.hl-banner .link-btn { color: #F4B860; text-decoration: underline; }
.pl-row.hl-todo .pl-card { box-shadow: 0 0 0 2px #F4A23C; }
.pl-row.hl-dim { opacity: .38; }
.pl-row.hl-dim:hover { opacity: .8; }
li.hl-todo { box-shadow: 0 0 0 2px #F4A23C; border-radius: 8px; padding: 4px 6px; margin: 0 -6px; background: rgba(244,162,60,.08); }
li.hl-dim { opacity: .4; }

.ct-line { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; white-space: nowrap; }
.ct-sent { font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.ctr-mail { font-size: 12px; color: var(--ok); }
.cmail-recap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 12px; background: var(--surface-2); border-radius: 10px; }
.cmail-recap div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cmail-recap strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.drop-share { cursor: default; color: var(--text); font-size: 13px; white-space: nowrap; }
.fi-share { display: block; font-size: 11px; color: var(--faint); }
.fi-share.is-on { color: var(--ok); }

/* Adultes / enfants */
.persons { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; }
.persons label { display: flex; flex-direction: column; gap: 4px; }
.persons-total { display: flex; flex-direction: column; gap: 4px; padding: 0 6px 10px; min-width: 60px; }
.persons-total strong { font-size: 18px; color: var(--gold); }
.top-kids { font-size: 11px; font-weight: 500; color: var(--muted); }
/* Interrupteur de l'espace client */
.espace-switch { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px 0 4px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  font-size: 12px; font-weight: 600; border: 1px solid; background: transparent; }
.espace-switch.is-on { color: var(--ok); border-color: #2F5A44; background: var(--ok-bg); }
.espace-switch.is-off { color: var(--bad); border-color: #6A332E; background: var(--bad-bg); }
.sw-track { position: relative; width: 34px; height: 20px; border-radius: 999px; transition: background .15s; }
.is-on .sw-track { background: #3E9A6A; } .is-off .sw-track { background: #B24A42; }
.sw-knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.is-on .sw-knob { left: 16px; }
.top-storage { font-size: 12px; font-weight: 600; color: var(--text-2); white-space: nowrap; padding: 4px 8px; border: 1px solid var(--line-2); border-radius: 999px; }
/* Messages du client non lus */
.chat-msg.is-unread .chat-bubble { box-shadow: 0 0 0 2px #E5484D; }
.chat-msg.is-unread .chat-meta::after { content: ' · nouveau'; color: #E5484D; font-weight: 700; }
.crm-tip { white-space: pre-line; }

/* En-tête compact */
.crm-brand { white-space: nowrap; }
.user-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px 0 4px; border-radius: 999px; border: 1px solid var(--line-2);
  color: var(--text-2); text-decoration: none; flex-shrink: 0; }
.user-btn:hover { border-color: var(--bad); color: var(--bad); }
.user-ini { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-3); color: var(--gold); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.crm-top .split-main { max-width: 230px; }
.crm-top .split-main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1700px) { .top-kids { display: none; } .crm-top .split-main { max-width: 190px; } }

/* Paliers de l'en-tête (écrans plus étroits) */
.nav-ico { display: none; }
@media (max-width: 1999px) { .sw-lbl { display: none; } .espace-switch { padding: 0 4px; } }
@media (max-width: 1750px) {
  .brand-long, .nav-txt { display: none; } .nav-ico { display: inline; }
  .crm-top .split-main { max-width: 170px; }
  .top-fact-val { max-width: 130px; }
}
@media (max-width: 1550px) { .top-fact:not(button) { display: none; } .crm-top .split-main { max-width: 130px; } .crm-top-info .top-fact-lbl { display: none; } .top-fact-val { max-width: 110px; } }

/* Poubelle */
.nowrap { white-space: nowrap; }
.trash-btn { width: 30px; height: 30px; margin-left: 6px; border-radius: 8px; border: 1px solid transparent; background: transparent; cursor: pointer; font-size: 14px;
  opacity: .55; vertical-align: middle; filter: grayscale(1); }
.trash-btn:hover, .trash-btn:focus-visible { opacity: 1; filter: none; border-color: #6A332E; background: var(--bad-bg); }
/* Carte Line'up */
.lu-logo { font-family: var(--display); font-weight: 700; color: var(--gold); }
.lu-by { font-family: 'Dancing Script', 'Brush Script MT', cursive; font-size: 1.15em; color: var(--text-2); margin: 0 1px; }
.lu-lne { font-size: 13px; color: var(--muted); font-family: var(--font); font-weight: 500; }
.lu-url { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; }
.lu-url code { flex-grow: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 8px 10px; background: var(--surface-2); border-radius: 8px; font-size: 12px; color: var(--text-2); }
.lu-facts { margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.lu-facts div { display: flex; justify-content: space-between; gap: 10px; }
.lu-facts dt { color: var(--muted); } .lu-facts dd { margin: 0; text-align: right; }
.lu-on { color: var(--ok); font-weight: 600; } .lu-off { color: var(--bad); font-weight: 600; }
/* Modules SaaS liés */
.mod-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.mod-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mod-list a { color: var(--gold); font-weight: 600; }
.mod-list .mod-non > span:first-child { color: var(--muted); }
.mod-tag { font-size: 11px; font-weight: 700; color: var(--warn); border: 1px solid #6A5520; padding: 1px 8px; border-radius: 999px; }
/* Suppression (roue dentée) */
.suppr-pane { flex-grow: 1; overflow-y: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; }
.dlg-cat [data-gpanel="suppr"][hidden] { display: none !important; }
.suppr-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.suppr-card { padding: 18px; border: 1px solid #6A332E; border-radius: 12px; background: #1F1616; display: flex; flex-direction: column; gap: 12px; }
.suppr-card[hidden] { display: none; }
.suppr-card h3 { margin: 0; color: var(--bad); }
.suppr-name { margin: 0; font-weight: 700; font-size: 16px; }
.suppr-list { margin: 0; padding-left: 18px; color: var(--text-2); }
.ok-note { margin: 0; color: var(--ok); } .bad-note { margin: 0; color: var(--bad); }
.btn-danger { background: #B23A33; border-color: #B23A33; color: #fff; }
.btn-danger:hover:not(:disabled) { background: #D0453D; }
.btn-danger:disabled { opacity: .45; }

/* Modules SaaS : instance, états, écarts */
.mod-inst { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 13px; }
.mod-inst code { padding: 2px 8px; background: var(--surface-2); border-radius: 6px; font-size: 12px; }
.mod-unlink { margin-left: auto; font-size: 12px; color: var(--muted); }
.mod-state { font-size: 12px; font-weight: 600; }
.mod-on .mod-state { color: var(--ok); } .mod-todo .mod-state { color: var(--warn); } .mod-off .mod-state, .mod-off > span:first-child { color: var(--muted); }
.mod-warn { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #2E1D12; border: 1px solid #8A5A1E; color: #F4B860; font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.mod-warn ul { margin: 0; padding-left: 18px; }
.mod-open { margin-top: 12px; }
.mod-link-row { display: flex; gap: 6px; margin-top: 8px; }
.mod-link-row select { flex-grow: 1; min-width: 0; }
.mod-created { margin-bottom: 12px; padding: 10px 12px; border-radius: 10px; background: var(--ok-bg); border: 1px solid #2F5A44; color: var(--ok); font-size: 13px; display: flex; flex-direction: column; gap: 3px; }
.mod-created code { color: #fff; background: rgba(0,0,0,.3); padding: 1px 6px; border-radius: 5px; letter-spacing: 1px; }
.btn-block { width: 100%; justify-content: center; }

.chat-author { font-weight: 600; color: var(--text-2); }

/* Marque Line'up dans l'en-tête */
.crm-brand { display: inline-flex; align-items: baseline; gap: 0; text-decoration: none; }
.crm-brand .lu-logo { font-size: 22px; }
.crm-brand .lu-by { font-size: 18px; margin: 0 5px 0 6px; }
.crm-brand .lu-lne { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; }

/* Prestataire : logo + nom à gauche, signature Line'up à droite */
.presta-brand { display: inline-flex; align-items: center; gap: 10px; }
.presta-logo { height: 36px; width: auto; max-width: 120px; object-fit: contain; }
.presta-nom { font-family: var(--display); font-size: 18px; font-weight: 600; color: var(--gold); white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.lu-sign { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; padding-left: 12px; margin-left: 4px; border-left: 1px solid var(--line-2); }
.lu-sign .lu-logo { font-size: 15px; } .lu-sign .lu-by { font-size: 14px; } .lu-sign .lu-lne { font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase; }
@media (max-width: 1750px) { .lu-sign .lu-lne, .lu-sign .lu-by { display: none; } }
.console-btn { text-decoration: none; font-size: 17px; }
.console-btn.is-active { border-color: var(--gold); }
/* Pied de page légal */
.crm-legal { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 10px 24px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
.crm-legal nav { display: flex; gap: 16px; flex-wrap: wrap; }
.crm-legal a { color: var(--muted); text-decoration: none; } .crm-legal a:hover { color: var(--gold); }
.crm-legal .lu-logo { font-size: 13px; } .crm-legal .lu-by { font-size: 13px; }
/* Console et Mon entreprise */
.console-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.console-tbl tr.is-off td { opacity: .6; }
.inline-form { display: inline-flex; gap: 6px; }
.crm-narrow { max-width: 640px; margin: 30px auto; }
.dlg-cat [data-gpanel="entreprise"][hidden] { display: none !important; }
.ent-pane { flex-grow: 1; overflow-y: auto; padding: 18px 22px; }
.ent-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.ent-col { display: flex; flex-direction: column; gap: 12px; }
.ent-col h3 { margin: 0; color: var(--gold); font-size: 15px; }
.ent-logo { display: flex; align-items: center; gap: 14px; }
.ent-logo-img { width: 150px; height: 80px; border: 1px dashed var(--line-2); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); background: var(--surface-2); overflow: hidden; }
.ent-logo-img img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Espace d'un prestataire ouvert depuis la console */
.imp-banner { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; padding: 8px 16px; background: #B8741A; color: #1A1206; font-size: 13px; font-weight: 600; }
.imp-banner .btn { background: #1A1206; color: #F4B860; border-color: #1A1206; }

/* Mon contrat */
.dlg-cat [data-gpanel="contrat"][hidden] { display: none !important; }
.cm-pane { flex-grow: 1; overflow-y: auto; padding: 16px 22px; display: flex; flex-direction: column; gap: 12px; }
.cm-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.cm-col { display: flex; flex-direction: column; gap: 10px; }
.cm-col h3 { margin: 0; color: var(--gold); font-size: 15px; }
.cm-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cm-list { display: flex; flex-direction: column; gap: 10px; }
.cm-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: var(--surface-2); display: flex; flex-direction: column; gap: 8px; }
.cm-item-head { display: flex; align-items: center; gap: 6px; }
.cm-num { font-weight: 700; color: var(--gold); font-size: 13px; min-width: 44px; }
.cm-titre { flex-grow: 1; min-width: 0; height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; }
.cm-contenu { width: 100%; resize: vertical; min-height: 80px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13.5px; line-height: 1.5; }
#cm-import { border: 1px solid #6A5520; background: #221C0E; border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
#cm-import[hidden] { display: none; }
.cm-imp-item { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; cursor: pointer; }
.cm-imp-item input { margin-top: 3px; }
.tag-dup { margin-left: 6px; font-size: 10.5px; font-weight: 700; color: var(--warn); border: 1px solid #6A5520; padding: 0 6px; border-radius: 999px; }
.cm-side { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.cm-cgv-file { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; border-radius: 8px; background: var(--surface); font-size: 13.5px; }

/* Lignes cliquables et pastilles d'événements */
tr.row-link { cursor: pointer; }
tr.row-link:hover td { background: rgba(212,175,55,.05); }
tr.row-link:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.ev-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.ev-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 500;
  color: var(--text-2); background: var(--surface-3); border: 1px solid var(--line-2); text-decoration: none; white-space: nowrap; }
.ev-chip:hover { border-color: var(--gold); color: var(--gold); }
.ev-chip.is-main { border-color: #6A5520; color: var(--gold); }

.choix-groupe { list-style: none; margin: 10px 0 2px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }
.choix-groupe:first-child { margin-top: 0; }

.choix-add { display: flex; gap: 6px; }
.choix-add input { flex-grow: 1; min-width: 0; }
.choix-cat { max-width: 170px; height: 34px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); padding: 0 6px; font-size: 13px; }

/* Console : facturation */
.console-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.console-tabs { display: flex; gap: 6px; } .console-tabs .is-on { border-color: var(--gold); color: var(--gold); }
.fact-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; }
.kpi span { font-size: 12px; color: var(--muted); } .kpi strong { font-size: 22px; font-family: var(--display); }
.fact-mois { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.fact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
tr.is-sel td { background: rgba(212,175,55,.08); }
.fact-groupe { margin: 16px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }
.fact-ligne { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.fact-ligne.is-off { opacity: .5; }
.fact-total { font-weight: 700; border-top: 2px solid var(--line-2); }
.fact-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 6px 0; }
.fact-form .field { min-width: 0; }
/* Tarifs Line'up */
.dlg-cat [data-gpanel="lineup"][hidden] { display: none !important; }
.lu-pane { flex-grow: 1; overflow-y: auto; padding: 16px 22px; display: flex; flex-direction: column; gap: 12px; }
.lu-tarifs { display: flex; flex-direction: column; gap: 6px; }
.lu-row { display: grid; grid-template-columns: auto minmax(0, 1fr) 100px auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.lu-row.is-off { opacity: .55; }
.lu-main { display: flex; flex-direction: column; gap: 4px; }
.lu-lib, .lu-prix, .lu-heb input { height: 34px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); }
.lu-prix { text-align: right; font-weight: 600; }
.lu-params { display: flex; gap: 12px; flex-wrap: wrap; }
.lu-add { display: flex; gap: 6px; flex-wrap: wrap; }
.lu-add input, .lu-add select { height: 34px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); }

.nav-back { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2);
  background: transparent; color: var(--text-2); font-weight: 600; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.nav-back:hover { border-color: var(--gold); color: var(--gold); }
.nav-back[hidden] { display: none; }
@media (max-width: 1750px) { .nav-back-txt { display: none; } }

/* Documents Line'up */
.fact-ligne.is-billed { opacity: .6; }
.fact-actions { margin: 10px 0 0; }
.doc-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.doc-actions { display: flex; gap: 5px; flex-wrap: wrap; }
.st-sent { background: #2A2210; color: var(--warn); } .st-bad { background: var(--bad-bg); color: var(--bad); }
.devis-new { margin-top: 12px; } .devis-new summary { list-style: none; display: inline-flex; }
.devis-lignes { display: flex; flex-direction: column; gap: 6px; }
.devis-ligne { display: grid; grid-template-columns: minmax(0, 1fr) 70px 100px; gap: 6px; }
.devis-ligne input { height: 34px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); }
#lu-rib { width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); resize: vertical; }

/* Plan de salle */
.salle-head { flex-wrap: wrap; gap: 10px; }
.salle-dims { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.salle-dims input { width: 76px; height: 32px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); text-align: center; }
.salle-wrap { display: grid; grid-template-columns: 190px minmax(0, 1fr) 220px; gap: 12px; align-items: start; margin-top: 10px; }
.salle-palette, .salle-props { display: flex; flex-direction: column; gap: 4px; max-height: 70vh; overflow-y: auto; }
.sp-titre { margin: 8px 0 2px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }
.sp-titre:first-child { margin-top: 0; }
.sp-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; font-size: 13px; text-align: left; }
.sp-item:hover { border-color: var(--gold); }
.sp-presta { border-color: #6A5520; } .sp-presta.is-done { opacity: .55; }
.sp-dot { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.sp-nom { flex-grow: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-qte { font-size: 11px; font-weight: 700; color: var(--gold); }
.sp-ligne { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; padding: 3px 0; border-top: 1px solid var(--line); }
.salle-canvas { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
#salle-svg { display: block; width: 100%; height: auto; max-height: 66vh; touch-action: none; user-select: none; }
/* Plan façon « papier » (comme les plans de mariage) */
.salle-canvas { background: #FFFFFF; }
#salle-svg .papier { fill: #FFFFFF; } #salle-svg .salle-sol { fill: #FFFFFF; }
#salle-svg .grille .g1 { stroke: #E3E1EA; stroke-width: 0.012; } #salle-svg .grille .g05 { stroke: #F1F0F5; stroke-width: 0.008; }
#salle-svg .murs { fill: url(#hachures); stroke: #6E6A7A; stroke-width: 0.03; }
#salle-svg .hachure { stroke: #9A96A6; stroke-width: 0.03; }
#salle-svg .cote line { stroke: #9B7BD1; stroke-width: 0.02; }
#salle-svg .cote text { fill: #6B4FA3; font-family: 'IBM Plex Sans', Arial, sans-serif; }
#salle-svg .cote-fond { fill: #FFFFFF; }
#salle-svg .el { cursor: grab; outline: none; } #salle-svg .el:active { cursor: grabbing; }
#salle-svg .el-forme { fill: color-mix(in srgb, var(--c, #8C84A0) 16%, #FFFFFF); stroke: var(--c, #8C84A0); stroke-width: 0.035; }
#salle-svg .el-forme.is-table { fill: #EFECF3; stroke: #9A94A8; }
#salle-svg .el-forme.is-piste { fill: repeating-linear-gradient(0deg, #F7F4FB, #F7F4FB 1px, #EDE8F5 1px); fill: #F4F0FA; stroke-dasharray: 0.15 0.1; }
#salle-svg .el-forme.is-prise { fill: #E7F6EC; stroke: #27AE60; }
#salle-svg .el-texte-zone { stroke: #B8B3C4; stroke-dasharray: 0.1 0.08; }
#salle-svg .el.is-sel .el-forme, #salle-svg .el:focus .el-forme { stroke: #D4AF37; stroke-width: 0.07; }
#salle-svg .chaise { fill: #FFFFFF; stroke: #8E889C; stroke-width: 0.025; }
#salle-svg .dossier { fill: #B7B1C4; }
#salle-svg .invite { fill: #3E3A4A; font-family: 'IBM Plex Sans', Arial, sans-serif; font-weight: 500; }
#salle-svg .ico { fill: none; stroke: #4E4A5C; stroke-width: 0.025; stroke-linecap: round; }
#salle-svg .el-texte { fill: #2E2A38; font-weight: 600; pointer-events: none; font-family: 'IBM Plex Sans', Arial, sans-serif; }
#salle-svg .el-texte.is-dessous { font-weight: 500; fill: #4E4A5C; }
#salle-svg .el-places { fill: #7A7488; pointer-events: none; font-family: 'IBM Plex Sans', Arial, sans-serif; }
#salle-svg .lien-prise { stroke: #27AE60; } #salle-svg .lien-prise.is-loin { stroke: #E67E22; }
.salle-aide { margin: 6px 2px 0; }
.salle-props .field input { height: 32px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); width: 100%; }
.salle-props .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.salle-rot { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 4px; }
.salle-rot .is-on { border-color: var(--gold); color: var(--gold); }
.inv-liste { width: 100%; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font-size: 13px; resize: vertical; }
.rot-champ { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; color: var(--muted); }
.rot-libre { width: 52px; height: 28px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); text-align: right; }
.salle-dist { font-size: 13px; color: var(--ok); margin: 8px 0 4px; } .salle-dist.is-loin { color: var(--warn); }
.salle-btns { display: flex; gap: 6px; }
@media (max-width: 1500px) { .salle-wrap { grid-template-columns: 160px minmax(0, 1fr); } .salle-props { grid-column: 1 / -1; max-height: none; } }
.salle-plein { position: fixed; inset: 0; z-index: 90; background: var(--bg); padding: 16px 20px; overflow: auto; }
.salle-plein .salle-wrap { grid-template-columns: 210px minmax(0, 1fr) 250px; }
.salle-plein .salle-props { grid-column: auto; max-height: calc(100vh - 110px); }
.salle-plein .salle-palette { max-height: calc(100vh - 110px); }
.salle-plein #salle-svg { max-height: calc(100vh - 150px); }
#salle-svg .el-mur { fill: url(#hachures); stroke: #6E6A7A; stroke-width: 0.03; }
#salle-svg .el-seuil { fill: #FFFFFF; }
#salle-svg .el-battant { stroke: #4E4A5C; stroke-width: 0.04; }
#salle-svg .el-arc { fill: none; stroke: #8E889C; stroke-width: 0.02; stroke-dasharray: 0.08 0.06; }
#salle-svg .el-fenetre { fill: #FFFFFF; stroke: #6E6A7A; stroke-width: 0.025; } #salle-svg .el-fenetre-l { stroke: #8FB3D9; stroke-width: 0.03; }
#salle-svg .el.is-sel .el-mur, #salle-svg .el.is-sel .el-fenetre { stroke: #D4AF37; stroke-width: 0.06; }
/* Onglet Tables */
.tb-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; align-items: start; }
.tb-carte { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 8px; }
.tb-carte.is-alerte { border-color: var(--warn); }
.tb-tete { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tb-num { width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: #1A1206; font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.tb-nom { flex-grow: 1; min-width: 140px; height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-weight: 600; }
.tb-inv { width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-size: 13px; resize: vertical; }
.tb-pied { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tb-etat { font-size: 12px; font-weight: 600; } .tb-etat.is-ok { color: var(--ok); } .tb-etat.is-presta { color: var(--warn); } .tb-etat.is-client { color: var(--muted); }
.top-places.is-ok .top-fact-val { color: var(--ok); } .top-places.is-manque .top-fact-val { color: var(--warn); }
.salle-canvas { position: relative; }
.salle-pos { position: absolute; top: 14px; right: 16px; z-index: 2; padding: 5px 12px; border-radius: 999px; background: rgba(46, 42, 56, .88); color: #fff;
  font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; pointer-events: none; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.salle-pos[hidden] { display: none; }
.salle-histo { display: inline-flex; gap: 4px; }
.salle-histo .btn { min-width: 36px; font-size: 16px; padding: 0 8px; }
.salle-histo .btn:disabled { opacity: .35; cursor: default; }
.tb-places { display: grid; grid-template-columns: 1fr; gap: 4px; }
.tb-places.is-2col { grid-template-columns: 1fr 1fr; }
.tb-place { display: flex; align-items: center; gap: 6px; }
.tb-place span { width: 18px; flex-shrink: 0; text-align: right; font-size: 11px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.tb-place input { flex-grow: 1; min-width: 0; height: 28px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-size: 13px; }
.tb-place input:placeholder-shown { background: transparent; }
.tb-histo { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 6px; }
.tb-histo summary { cursor: pointer; color: var(--text-2); font-weight: 600; }
.tb-histo-l { display: flex; flex-direction: column; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.tb-histo-q { font-weight: 600; color: var(--text-2); }
.plan-alerte-crm, .plan-info-crm { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: 10px; margin: 8px 0; font-size: 14px; }
.plan-alerte-crm { border: 1px solid var(--warn); background: #2A2210; color: var(--warn); } .plan-info-crm { border: 1px solid var(--line-2); color: var(--muted); }
.plan-suivi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 14px; }
.plan-bloc { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 6px; }
.plan-bloc h3 { margin: 0; font-size: 15px; }
.pv-ligne { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; font-size: 13.5px; }
.pv-ligne.is-ref strong { color: var(--gold); } .pv-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.plan-journal { max-height: 320px; overflow-y: auto; font-size: 12.5px; }
.pj-ligne { display: flex; flex-direction: column; padding: 5px 0; border-bottom: 1px dashed var(--line); color: var(--text-2); }
.pj-q { font-weight: 600; color: var(--muted); }
@media (max-width: 1500px) { .plan-suivi { grid-template-columns: 1fr; } }
/* Fiche client : logo et société */
.cli-ident { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.cli-logo { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cli-logo-img { width: 110px; height: 70px; border: 1px dashed var(--line-2); border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); overflow: hidden; font-size: 12px; color: var(--muted); }
.cli-logo-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cli-soc { flex-grow: 1; min-width: 260px; }
/* Catalogue de jeux (roue dentée) */
.dlg-cat [data-gpanel="jeux"][hidden] { display: none !important; }
.jc-pane { flex-grow: 1; overflow: hidden; padding: 14px 18px; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; }
.jc-cote { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.jc-cote input { height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); }
.jc-liste { list-style: none; margin: 0; padding: 0; overflow-y: auto; max-height: 60vh; display: flex; flex-direction: column; gap: 2px; }
.jc-liste li { display: flex; align-items: center; gap: 6px; border-radius: 8px; padding: 0 6px; }
.jc-liste li.is-sel { background: rgba(212, 175, 55, .14); } .jc-liste li.is-off button { opacity: .5; text-decoration: line-through; }
.jc-liste button { flex-grow: 1; text-align: left; background: none; border: 0; color: var(--text); padding: 6px 0; cursor: pointer; font: inherit; font-size: 13.5px; }
.jc-form { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; max-height: 70vh; padding-right: 4px; }
.jc-form textarea { width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); resize: vertical; }
.jc-l1 { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
/* Liste matériel */
.mat-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mat-table tr.is-charge td:first-child { color: var(--ok); }
.mat-table tr.is-retour td { opacity: .6; }
.mat-src { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.mat-src.auto { background: #2A2210; color: var(--gold); } .mat-src.manuel { background: var(--surface-3); color: var(--text-2); }
.mat-qte { width: 60px; height: 30px; text-align: right; padding: 0 6px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); }
.mat-table input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--ok); }
.mat-plan { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.mat-plan.is-ok { background: var(--ok-bg); color: var(--ok); } .mat-plan.is-part { background: #2A2210; color: var(--warn); } .mat-plan.is-zero { color: var(--muted); }
.mat-hors { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.mat-hors-ligne { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 10px; border: 1px dashed #6A5520; border-radius: 8px; font-size: 13px; color: var(--warn); }
.mat-add { display: flex; gap: 6px; margin-top: 10px; }
.mat-add input { height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); }
.mat-add input[name=libelle] { flex-grow: 1; } .mat-add input[name=quantite] { width: 70px; }

/* Tailles par défaut du plan (roue dentée) */
.dlg-cat [data-gpanel="plan"][hidden] { display: none !important; }
.pt-pane { flex-grow: 1; overflow-y: auto; padding: 16px 22px; display: flex; flex-direction: column; gap: 10px; }
.pt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 6px 18px; }
.pt-row { display: grid; grid-template-columns: minmax(0, 1fr) 70px 70px 28px; gap: 6px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.pt-row input { height: 30px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); text-align: right; }
.pt-row.is-mod span:first-child { color: var(--gold); }

/* ─── Messages ───────────────────────────────────────────────────────── */
.crm-flash-zone { padding: 12px 24px 0; display: flex; flex-direction: column; gap: 8px; }
.crm-flash { padding: 10px 14px; border-radius: 10px; font-size: 14px; border: 1px solid; }
.crm-flash-ok    { color: var(--ok);   background: var(--ok-bg);   border-color: #2F5A44; }
.crm-flash-error { color: var(--bad);  background: var(--bad-bg);  border-color: var(--bad-line); }
.crm-flash-info  { color: var(--info); background: var(--info-bg); border-color: #2C4560; }

/* ─── Pages de connexion ─────────────────────────────────────────────── */
.crm-auth { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }
.auth-card {
  width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 16px;
}
.auth-card h1 { font-family: var(--display); font-size: 24px; font-weight: 600; margin: 0; }

/* ─── Écrans plus petits ─────────────────────────────────────────────── */
@media (max-width: 1400px) {
  .home-grid, .fiche-grid, .dash-grid { grid-template-columns: minmax(0, 1fr); height: auto; }
  .panel-scroll .panel-content { max-height: none; }
  .map-layout { grid-template-columns: minmax(0, 1fr); }
  .lieu-map-lg { height: 320px; }
  .grid-times { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-lieu  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel-scroll { max-height: none; }
  .panel-head { flex-wrap: wrap; }
  .search-box { width: 100%; max-width: 380px; }
  .crm-top { flex-wrap: wrap; height: auto; min-height: 68px; padding: 10px 16px; }
}
@media (max-width: 760px) {
  .crm-top-info { display: none; }
  .grid-2, .grid-type, .grid-times, .grid-lieu, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .tbl th:nth-child(4), .tbl td:nth-child(4),
  .tbl th:nth-child(5), .tbl td:nth-child(5) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
.already { display: flex; flex-direction: column; gap: 14px; padding: 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface-2); }
.already p { margin: 0; }
.already-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.compta-total td { font-weight: 700; border-top: 2px solid var(--line-2); }
.txt-bad { color: var(--bad) !important; }
tr.is-off td { opacity: .5; }
.cli-panel { margin-top: 16px; } .cli-panel summary { cursor: pointer; list-style: none; } .cli-panel[open] summary { margin-bottom: 12px; }
.taches-btn { position: relative; flex-shrink: 0; font-size: 17px; }
.mat-table tr.mat-rub td { padding-top: 14px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid var(--line-2); }
.mat-src.jeu { background: #1C2A20; color: var(--ok); }
/* Sous-onglets (Animation, Plan) */
.subtabs { display: flex; gap: 4px; padding: 8px 4px 0; border-bottom: 1px solid var(--line); margin-bottom: 12px; flex-wrap: wrap; }
.subtabs[hidden] { display: none; }
.subtabs [role=tab] { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 600; padding: 6px 12px; cursor: pointer; }
.subtabs [role=tab][aria-selected=true] { color: var(--gold); border-bottom-color: var(--gold); }
.subtabs [role=tab]:hover { color: var(--text); }
.tabs [data-group] { font: inherit; }
.presta-notes { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.presta-notes-titre { margin: 0 0 12px; }
#sp-count { display: none !important; }   /* pas de compteur sur le sous-onglet Surprises */
/* Impression du planning : choix de la version */
.pl-print { position: relative; } .pl-print summary { list-style: none; cursor: pointer; } .pl-print summary::-webkit-details-marker { display: none; }
.pl-print-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 280px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.45); display: flex; flex-direction: column; }
.pl-print-menu a { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 13.5px; }
.pl-print-menu a:hover { background: var(--surface-2); }
/* Équipe (roue dentée) */
.dlg-cat [data-gpanel="equipe"][hidden] { display: none !important; }
.eq-pane { flex-grow: 1; overflow-y: auto; padding: 14px 18px; }
.eq-table td { vertical-align: middle; } .eq-table select { height: 32px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); padding: 0 8px; }
.eq-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.eq-ajout { display: grid; grid-template-columns: 1fr 1fr 1.4fr 170px auto; gap: 6px; margin-top: 14px; }
.eq-ajout input, .eq-ajout select { height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); }
.fi-quota-btns { display: flex; gap: 6px; margin-top: 6px; }
#fi-quota-bar.is-haut { background: var(--warn) !important; } #fi-quota-bar.is-plein { background: var(--bad) !important; }
/* Type de compte : bandeau ; en démonstration, les envois aux clients sont floutés */
.mode-bandeau { padding: 7px 18px; font-size: 13px; text-align: center; }
.mode-demo { background: #1F2A3A; color: #A9C8F0; } .mode-limite { background: #2A2210; color: #E5C46A; }
html.is-demo #dlg-cmail form button[type=submit], html.is-demo .ct-send { filter: blur(1.5px); opacity: .45; pointer-events: none; }
html.is-demo #dlg-cmail .dlg-body::after { content: 'Disponible avec un compte complet'; display: block; margin-top: 10px; color: #A9C8F0; font-size: 13px; text-align: center; }
/* Avenant de stockage */
.av-dlg { width: min(520px, 92vw); } .av-dlg .dlg-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.av-code { height: 48px; font-size: 26px; letter-spacing: 10px; text-align: center; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font-family: Consolas, monospace; }
/* ⚠ dépassements de stockage (barre du haut) */
.sto-alerte { position: relative; } .sto-alerte summary { list-style: none; cursor: pointer; } .sto-alerte summary::-webkit-details-marker { display: none; }
.sto-alerte .icon-btn { color: #F4A23C; font-size: 17px; } .sto-alerte.is-rouge .icon-btn { color: #FF5A52; }
.sto-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 320px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.sto-menu a { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 13.5px; }
.sto-menu a:hover { background: var(--surface-2); } .sto-menu .is-plein { color: #FF6B6B; } .sto-menu .is-haut { color: #F4A23C; }
.sto-cell.is-plein { color: #FF6B6B; font-weight: 700; } .sto-cell.is-haut { color: #F4A23C; }
.mode-bloque { background: #3A1616; color: #FFB4AE; }
.sto-info { cursor: help; border-bottom: 1px dotted var(--muted); }
