/* ===== KAPLA — interface ===== */

:root {
  /* Neutres clairs (inspi Skello/Combo) */
  --bg: oklch(0.98 0.003 250);
  --bg-elev: #ffffff;
  --bg-sidebar: #ffffff;
  --bg-sidebar-elev: oklch(0.97 0.005 250);
  --border: oklch(0.93 0.005 250);
  --border-strong: oklch(0.86 0.008 250);
  --text: oklch(0.20 0.012 250);
  --text-muted: oklch(0.48 0.012 250);
  --text-faint: oklch(0.66 0.010 250);
  --text-on-dark: oklch(0.20 0.012 250);
  --text-on-dark-muted: oklch(0.48 0.012 250);

  /* Accent — vert sapin façon Combo */
  --accent: oklch(0.50 0.13 165);
  --accent-soft: oklch(0.95 0.03 165);
  --accent-text: oklch(0.40 0.14 165);
  --accent-hover: oklch(0.45 0.14 165);

  /* Codes EVP — palette plus douce et lisible */
  --c-cp:    oklch(0.92 0.08 145);   /* congé payé : vert */
  --c-cp-fg: oklch(0.32 0.13 145);
  --c-am:    oklch(0.91 0.07 30);    /* arrêt maladie : rouge orangé */
  --c-am-fg: oklch(0.40 0.16 30);
  --c-css:   oklch(0.93 0.07 80);    /* sans solde : ambre */
  --c-css-fg:oklch(0.40 0.13 80);
  --c-cmp:   oklch(0.93 0.06 350);   /* mat/pat : rose */
  --c-cmp-fg:oklch(0.40 0.16 350);
  --c-f:     oklch(0.92 0.06 240);   /* formation : bleu */
  --c-f-fg:  oklch(0.40 0.16 250);
  --c-h:     oklch(0.92 0.05 200);   /* parental : cyan */
  --c-h-fg:  oklch(0.38 0.13 220);
  --c-rec:   oklch(0.95 0.04 350);   /* récup : rose pâle (distinct de l'AM) */
  --c-rec-fg:oklch(0.45 0.18 350);
  --c-pato:  oklch(0.92 0.06 320);   /* pato : violet pâle */
  --c-pato-fg:oklch(0.40 0.14 320);
  --c-rtt:   oklch(0.93 0.04 200);
  --c-rtt-fg:oklch(0.38 0.10 220);
  --c-asa:   oklch(0.93 0.06 60);    /* enfant malade */
  --c-asa-fg:oklch(0.40 0.13 60);
  --c-at:    oklch(0.88 0.10 15);    /* accident travail : rouge */
  --c-at-fg: oklch(0.40 0.18 15);
  --c-ain:   oklch(0.85 0.02 250);   /* injustifiée : gris foncé */
  --c-ain-fg:oklch(0.30 0.012 250);
  --c-cov:   oklch(0.90 0.05 280);
  --c-cov-fg:oklch(0.40 0.14 280);
  --c-fa:    oklch(0.88 0.008 250);  /* fermeture : neutre */
  --c-fa-fg: oklch(0.30 0.012 250);
  --c-jp:    oklch(0.93 0.06 100);   /* journée péda */
  --c-jp-fg: oklch(0.40 0.10 110);
  --c-pp:    oklch(0.92 0.07 165);   /* prise de poste */
  --c-pp-fg: oklch(0.38 0.13 165);
  --c-fin:   oklch(0.85 0.02 30);
  --c-fin-fg:oklch(0.30 0.02 30);
  --c-renf:  oklch(0.93 0.07 60);
  --c-renf-fg: oklch(0.40 0.14 60);

  /* Weekends / fériés */
  --bg-weekend: oklch(0.965 0.004 250);
  --bg-holiday: oklch(0.94 0.04 30);

  /* Spacing/radius */
  --r-sm: 4px;
  --r: 8px;
  --r-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }

/* ===== App shell ===== */
.app {
  display: grid;
  grid-template-columns: 240px 1fr;
  height: 100vh;
  overflow: hidden;
}

/* ----- Sidebar ----- */
.sidebar {
  background: var(--bg-sidebar);
  color: var(--text-on-dark);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--bg-sidebar);
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
}
.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar__brand {
  padding: 18px 20px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sidebar__brand-mark {
  width: 32px; height: 32px;
  border-radius: 7px;
  background: linear-gradient(135deg, oklch(0.62 0.18 265), oklch(0.55 0.18 295));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
  color: white;
  letter-spacing: -0.02em;
}
.sidebar__brand-name {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.sidebar__brand-sub {
  font-size: 11px;
  color: var(--text-on-dark-muted);
  font-weight: 400;
}

.sidebar__section {
  padding: 14px 12px 6px;
}
.sidebar__section-title {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-on-dark-muted);
  padding: 0 8px 6px;
  font-weight: 600;
}
.sidebar__nav {
  display: flex; flex-direction: column;
  gap: 1px;
}
.sidebar__item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--text-on-dark-muted);
  background: transparent;
  border: 0;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.sidebar__item:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text-on-dark);
}
.sidebar__item--active {
  background: rgba(255,255,255,0.08);
  color: var(--text-on-dark);
}
.sidebar__item-icon {
  width: 16px; height: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
}

.sidebar__months {
  flex: 0 0 auto;
  overflow: visible;
  padding: 4px 12px 16px;
}
.sidebar__month {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--text-on-dark-muted);
  font-size: 13px;
  cursor: pointer;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: 'Inter', sans-serif;
}
.sidebar__month:hover { background: rgba(255,255,255,0.04); color: var(--text-on-dark); }
.sidebar__month--active { background: var(--accent); color: white; font-weight: 600; }
.sidebar__month-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-on-dark-muted);
}
.sidebar__month--active .sidebar__month-count { color: rgba(255,255,255,0.7); }

.sidebar__footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 11px;
  color: var(--text-on-dark-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ----- Main ----- */
.main {
  display: flex; flex-direction: column;
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
  flex-shrink: 0;
}
.topbar__title {
  display: flex; align-items: baseline; gap: 12px;
}
.topbar__title h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.topbar__title-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.topbar__actions {
  display: flex; gap: 8px; align-items: center;
}
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.12s;
}
.btn:hover { background: oklch(0.96 0.005 70); border-color: oklch(0.78 0.008 70); }
.btn--primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.btn--primary:hover { background: oklch(0.50 0.18 265); border-color: oklch(0.50 0.18 265); }
.btn--ghost { border-color: transparent; background: transparent; }
.btn--ghost:hover { background: oklch(0.94 0.005 70); }
.btn--icon { padding: 7px; }

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  gap: 12px;
}
.toolbar__left, .toolbar__right { display: flex; gap: 8px; align-items: center; }
.month-nav {
  display: flex; align-items: center; gap: 4px;
  padding: 4px;
  border-radius: 8px;
  background: oklch(0.96 0.005 70);
}
.month-nav__btn {
  width: 28px; height: 28px;
  border: 0;
  background: transparent;
  border-radius: 5px;
  color: var(--text-muted);
}
.month-nav__btn:hover { background: var(--bg-elev); color: var(--text); }
.month-nav__current {
  font-weight: 600;
  font-size: 13px;
  padding: 0 12px;
  min-width: 110px;
  text-align: center;
}

.input {
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  font-size: 13px;
  color: var(--text);
  width: 220px;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px oklch(0.55 0.18 265 / 0.12); }
.search-wrap { position: relative; }
.search-wrap::before {
  content: '⌕';
  position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
  color: var(--text-faint); font-size: 14px;
}
.search-wrap .input { padding-left: 26px; }

.content {
  flex: 1;
  overflow: auto;
  padding: 0;
}

/* ===== EVP grid ===== */
.evp {
  padding: 20px 24px;
}
.evp__header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
}
.evp__stats {
  display: flex; gap: 18px;
}
.stat {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 96px;
}
.stat__label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; white-space: nowrap; }
.stat__value { font-size: 18px; font-weight: 600; font-family: 'JetBrains Mono', monospace; letter-spacing: -0.01em; }
.stat__value--accent { color: var(--accent-text); }
.stat__value--warn { color: var(--c-am-fg); }

.evp__grid-wrap {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.evp__scroll {
  overflow: auto;
  max-height: calc(100vh - 280px);
}

.evp-grid {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  width: 100%;
}
.evp-grid th, .evp-grid td {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
  text-align: center;
  height: 30px;
  background: var(--bg-elev);
  position: relative;
}
.evp-grid th {
  background: oklch(0.97 0.005 70);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 11px;
  position: sticky;
  top: 0;
  z-index: 3;
}
.evp-grid th.evp-grid__day {
  width: 30px;
  min-width: 30px;
}
.evp-grid th.evp-grid__day--weekend { background: var(--bg-weekend); }
.evp-grid th.evp-grid__day--holiday { background: var(--bg-holiday); color: var(--c-am-fg); }
.evp-grid th.evp-grid__day-name {
  font-size: 9px;
  font-weight: 500;
  color: var(--text-faint);
  text-transform: uppercase;
  height: 22px;
}
.evp-grid th.evp-grid__day-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  height: 26px;
  font-family: 'JetBrains Mono', monospace;
}

.evp-grid .col-num {
  width: 36px;
  min-width: 36px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-faint);
  font-weight: 500;
  position: sticky;
  left: 0;
  z-index: 2;
  background: oklch(0.98 0.004 70);
}
.evp-grid .col-name {
  width: 220px;
  min-width: 220px;
  text-align: left;
  padding: 0 12px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  position: sticky;
  left: 36px;
  z-index: 2;
  background: var(--bg-elev);
}
.evp-grid .col-name__sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 1px;
}
.evp-grid th.col-num, .evp-grid th.col-name {
  z-index: 4;
  background: oklch(0.97 0.005 70);
}
.evp-grid .col-total {
  width: 60px;
  min-width: 60px;
  text-align: right;
  padding: 0 10px;
  background: oklch(0.98 0.004 70);
  color: var(--text);
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  position: sticky;
  right: 0;
  z-index: 2;
}
.evp-grid th.col-total { z-index: 4; background: oklch(0.97 0.005 70); }

.evp-grid tr:hover td:not(.col-num):not(.col-name):not(.col-total) { background: oklch(0.985 0.005 265 / 0.5); }
.evp-grid tr.row--out td.col-name { color: var(--text-faint); font-style: italic; }

.evp-grid td.cell--weekend { background: var(--bg-weekend); }
.evp-grid td.cell--holiday { background: var(--bg-holiday); }

.evp-cell {
  display: block;
  width: 100%; height: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: center;
  padding: 4px 2px;
  outline: none;
  color: inherit;
  cursor: cell;
}
.evp-cell:focus {
  box-shadow: inset 0 0 0 2px var(--accent);
  z-index: 1;
}

/* Code colors */
.cell-CP   { background: var(--c-cp);   color: var(--c-cp-fg); font-weight: 600; }
.cell-AM   { background: var(--c-am);   color: var(--c-am-fg); font-weight: 600; }
.cell-CSS  { background: var(--c-css);  color: var(--c-css-fg); font-weight: 600; }
.cell-CMP  { background: var(--c-cmp);  color: var(--c-cmp-fg); font-weight: 600; }
.cell-F    { background: var(--c-f);    color: var(--c-f-fg); font-weight: 600; }
.cell-H    { background: var(--c-h);    color: var(--c-h-fg); font-weight: 600; }
.cell-REC  { background: var(--c-rec);  color: var(--c-rec-fg); font-weight: 600; }
.cell-supp { background: var(--accent-soft); color: var(--accent-text); font-weight: 700; font-family: 'JetBrains Mono', monospace; }
.cell-PATO { background: var(--c-pato); color: var(--c-pato-fg); font-weight: 600; }
.cell-RTT  { background: var(--c-rtt);  color: var(--c-rtt-fg); font-weight: 600; }
.cell-ASA  { background: var(--c-asa);  color: var(--c-asa-fg); font-weight: 600; }
.cell-AT   { background: var(--c-at);   color: var(--c-at-fg); font-weight: 600; }
.cell-AIN  { background: var(--c-ain);  color: var(--c-ain-fg); font-weight: 600; }
.cell-COV  { background: var(--c-cov);  color: var(--c-cov-fg); font-weight: 600; }
.cell-FA   { background: var(--c-fa);   color: var(--c-fa-fg); font-weight: 500; }
.cell-JP   { background: var(--c-jp);   color: var(--c-jp-fg); font-weight: 600; }
.cell-PP   { background: var(--c-pp);   color: var(--c-pp-fg); font-weight: 600; }
.cell-FIN  { background: var(--c-fin);  color: var(--c-fin-fg); font-weight: 600; }
.cell-NUM  { color: var(--text); font-weight: 500; background: oklch(0.99 0.002 70); }

/* Legend */
.legend {
  display: flex;
  gap: 8px 14px;
  flex-wrap: wrap;
  padding: 14px 18px;
  margin-top: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.legend__item {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.legend__chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 22px;
  padding: 0 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
}

/* ===== Code picker popover ===== */
.popover {
  position: absolute;
  z-index: 50;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 8px;
  width: 240px;
}
.popover__title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  padding: 4px 6px 8px;
}
.popover__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.popover__btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 4px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: var(--text);
}
.popover__btn:hover { border-color: var(--accent); }
.popover__btn-label {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 9.5px;
  color: var(--text-muted);
}
.popover__divider { height: 1px; background: var(--border); margin: 8px 0; }
.popover__numeric {
  display: flex; gap: 4px; align-items: center;
  padding: 4px 6px;
}
.popover__numeric input {
  flex: 1;
  padding: 5px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  font: inherit; font-family: 'JetBrains Mono', monospace;
}
.popover__clear {
  width: 100%;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: oklch(0.97 0.005 70);
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
}
.popover__clear:hover { background: oklch(0.94 0.005 70); }

/* ===== Planning hebdo ===== */
.planning {
  padding: 20px 24px;
}
.week-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin: 0 auto 32px;
  max-width: 1280px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.week-card__head {
  padding: 12px 16px;
  background: oklch(0.97 0.005 70);
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.week-card__title {
  font-weight: 600;
  font-size: 14px;
}
.week-card__meta {
  font-size: 12px;
  color: var(--text-muted);
}

.week-grid {
  display: grid;
  grid-template-columns: 220px repeat(5, 1fr) 90px;
  font-size: 13px;
}
.week-grid__cell {
  padding: 10px 12px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  min-height: 56px;
  display: flex; flex-direction: column; justify-content: center;
}
.week-grid__cell:last-child { border-right: 0; }
.week-grid__cell--head {
  background: oklch(0.985 0.004 70);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.week-grid__cell--name {
  font-weight: 500;
  font-size: 13px;
  color: var(--text);
}
.week-grid__cell--name .role {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 2px;
}
.week-grid__hours {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text);
  line-height: 1.45;
}
.week-grid__hours .pause {
  font-size: 10px;
  color: var(--text-muted);
}
.week-grid__cell--total {
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 14px;
  background: oklch(0.985 0.004 70);
  color: var(--accent-text);
}
.week-grid__cell--abs {
  background: oklch(0.97 0.01 30 / 0.4);
  color: var(--c-am-fg);
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-align: center;
}

/* ===== Effectifs ===== */
.effectifs {
  padding: 20px 24px;
}
.effectifs__table-wrap {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow-x: auto;
  overflow-y: visible;
  box-shadow: var(--shadow-sm);
}
.eff-table { width: 100%; min-width: 1240px; border-collapse: collapse; font-size: 13px; }
.eff-table th {
  padding: 10px 10px;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
  background: oklch(0.97 0.005 70);
  border-bottom: 1px solid var(--border);
}
.eff-table td {
  padding: 10px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.eff-table tr:last-child td { border-bottom: 0; }
.eff-table tr:hover td { background: oklch(0.985 0.005 265 / 0.4); }
.eff-table td.num { font-family: 'JetBrains Mono', monospace; color: var(--text-muted); }

.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600;
  font-size: 12px;
  margin-right: 10px;
}
.avatar-row { display: flex; align-items: center; }

.badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}
.badge--active { background: oklch(0.92 0.06 145); color: oklch(0.32 0.10 145); }
.badge--out { background: oklch(0.92 0.005 70); color: var(--text-muted); }

.action-icon-btn {
  width: 28px; height: 28px;
  border-radius: 5px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  display: inline-flex; align-items: center; justify-content: center;
}
.action-icon-btn:hover { background: oklch(0.94 0.005 70); color: var(--text); }

/* ===== Settings / params ===== */
.settings {
  padding: 20px 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-content: start;
}
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card__head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.card__title {
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 2px;
}
.card__sub {
  font-size: 12px;
  color: var(--text-muted);
}
.card__body { padding: 14px 18px; }

.kv-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.kv-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.kv-table tr:last-child td { border-bottom: 0; }
.kv-table td.k { color: var(--text-muted); width: 50%; }
.kv-table td.v { font-family: 'JetBrains Mono', monospace; text-align: right; }

/* Modal (employee edit) */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(20, 16, 12, 0.4);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
}
.modal {
  width: 480px;
  max-width: 92vw;
  max-height: 90vh;
  background: var(--bg-elev);
  border-radius: var(--r-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.modal__head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex: 0 0 auto;
}
.modal__title { font-weight: 600; font-size: 15px; margin: 0; }
.modal__close {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: white;
  font-size: 18px;
  line-height: 1;
  color: var(--text-soft);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.12s;
}
.modal__close:hover { background: var(--bg-soft); color: var(--text); border-color: var(--border-strong); }
.modal__eyebrow {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.modal__body {
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 12px;
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
}
.modal__foot {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 8px;
  flex: 0 0 auto;
  background: var(--bg-elev);
}
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.field input, .field select {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  font-size: 13px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Empty / status */
.empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
}

/* Scrollbar nicety */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: oklch(0.85 0.008 70); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: oklch(0.75 0.008 70); }


/* ===== V2 ADDITIONS ===== */

/* Sidebar select (profil + crèche) */
.sidebar__select {
  width: 100%;
  padding: 7px 9px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  font-size: 12px;
  font-family: inherit;
  color: var(--text);
  margin-top: 4px;
}
.sidebar__select:focus { outline: none; border-color: var(--accent); }

/* Crèche tag in topbar */
.creche-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* EVP supp/recup columns */
.evp-grid .col-supp {
  width: 60px;
  min-width: 60px;
  text-align: center;
  padding: 0 4px;
  background: oklch(0.97 0.005 70);
  position: sticky;
  z-index: 2;
}
.evp-grid th.col-supp { z-index: 4; }
.evp-grid .col-supp:nth-last-of-type(3) { right: 120px; }
.evp-grid .col-supp:nth-last-of-type(2) { right: 60px; }
.evp-grid .col-total { right: 0; }
.evp-grid .col-supp,
.evp-grid .col-total { right: auto; position: static; } /* drop sticky for supp/total - simpler */
.num-input {
  width: 100%;
  border: 0;
  background: transparent;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  text-align: center;
  padding: 4px 2px;
  color: var(--text);
  border-radius: 3px;
}
.num-input:focus { outline: none; background: white; box-shadow: 0 0 0 2px var(--accent); }

/* Stats accent variant */
.stat__value--accent { color: oklch(0.55 0.18 265); }

/* Drag-fill handle */
.evp-cell { position: relative; }
.fill-handle {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 7px; height: 7px;
  background: var(--accent);
  border: 1px solid white;
  cursor: crosshair;
  opacity: 0;
  transition: opacity 0.1s;
  z-index: 1;
}
.evp-cell:hover .fill-handle { opacity: 1; }
.cell--drag-target { box-shadow: inset 0 0 0 2px var(--accent); }

/* === Validation congés ≥ 3j (CP/RECUP) === */
.evp-cell.cell--lv-pending {
  outline: 2px dashed oklch(0.65 0.18 75);
  outline-offset: -3px;
}
.evp-cell.cell--lv-rejected {
  outline: 2px solid oklch(0.55 0.22 25);
  outline-offset: -3px;
  text-decoration: line-through;
}
.evp-cell.cell--lv-counter {
  outline: 2px dotted oklch(0.55 0.20 250);
  outline-offset: -3px;
}
.lv-badge {
  position: absolute;
  top: 1px;
  right: 2px;
  font-size: 9px;
  line-height: 1;
  pointer-events: none;
  font-weight: 700;
}
.lv-badge--pending { color: oklch(0.45 0.18 75); }
.lv-badge--rejected { color: oklch(0.45 0.22 25); }
.lv-badge--counter { color: oklch(0.45 0.20 250); }

/* Renforts banner */
.evp__header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.renfort-banner {
  background: oklch(0.96 0.04 95);
  border: 1px solid oklch(0.85 0.08 95);
  color: oklch(0.45 0.10 80);
  padding: 8px 14px;
  border-radius: var(--r);
  font-size: 13px;
}
.renfort-list {
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.renfort-list h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 10px 0;
  font-weight: 600;
}
.renfort-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.renfort-item:last-child { border-bottom: 0; }

/* RENF code color */
:root {
  --c-renf: oklch(0.92 0.10 60);
  --c-renf-fg: oklch(0.40 0.14 60);
  --c-mob:  oklch(0.93 0.08 165);
  --c-mob-fg: oklch(0.38 0.14 165);
}
.cell-RENF { background: var(--c-renf); color: var(--c-renf-fg); font-weight: 700; }
.cell-MOB { background: var(--c-mob); color: var(--c-mob-fg); font-weight: 700; }

/* Popover renfort section */
.popover__renf-btn {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  border-radius: 4px;
  border: 1px dashed var(--border-strong);
  background: oklch(0.98 0.01 60);
  color: oklch(0.45 0.14 60);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.popover__renf-btn:hover { background: oklch(0.95 0.04 60); }
.popover__renf-emp {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 7px 10px;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 12px;
  cursor: pointer;
  border-radius: 4px;
  font-family: inherit;
}
.popover__renf-emp:hover { background: oklch(0.96 0.005 70); }

/* Hint tip */
.hint-tip {
  margin-top: 12px;
  padding: 10px 14px;
  background: oklch(0.97 0.012 265);
  border: 1px solid oklch(0.88 0.025 265);
  border-radius: var(--r);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.hint-tip strong { color: var(--text); }

/* ===== Planning v2 — colors by rang + opener ===== */
.planning__legend {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.rang-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}
.rang-chip--1 { background: oklch(0.93 0.05 265); color: oklch(0.40 0.14 265); }
.rang-chip--2 { background: oklch(0.93 0.05 165); color: oklch(0.40 0.12 165); }
.rang-chip--3 { background: oklch(0.94 0.05 35);  color: oklch(0.45 0.14 35); }
.rang-chip--4 { background: oklch(0.93 0.05 320); color: oklch(0.42 0.14 320); }

.rang-bg-1 { background: oklch(0.985 0.018 265); }
.rang-bg-2 { background: oklch(0.985 0.018 165); }
.rang-bg-3 { background: oklch(0.985 0.018 35); }
.rang-bg-4 { background: oklch(0.985 0.018 320); }
.rang-bg-5 { background: oklch(0.985 0.018 200); }
.rang-bg-6 { background: oklch(0.985 0.018 100); }
.rang-bg-7 { background: oklch(0.985 0.018 60); }
.rang-bg-8 { background: oklch(0.985 0.018 15); }
.rang-bg-9 { background: oklch(0.985 0.018 130); }
.rang-bg-10 { background: oklch(0.985 0.018 290); }

.week-grid__cell.rang-bg-1, .week-grid__cell.rang-bg-2, .week-grid__cell.rang-bg-3, .week-grid__cell.rang-bg-4,
.week-grid__cell.rang-bg-5, .week-grid__cell.rang-bg-6, .week-grid__cell.rang-bg-7, .week-grid__cell.rang-bg-8,
.week-grid__cell.rang-bg-9, .week-grid__cell.rang-bg-10 {
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* Header Coverage */
.week-grid__cell--head.head-cov-tier-2 { background: oklch(0.93 0.08 25); color: oklch(0.36 0.18 25); font-weight: 700; }
.week-grid__cell--head.head-cov-tier-3 { background: oklch(0.94 0.06 75); color: oklch(0.38 0.14 75); font-weight: 600; }
.week-grid__cell--head.head-cov-tier-4 { background: oklch(0.94 0.04 220); color: oklch(0.35 0.10 220); }
.week-grid__cell--head.head-cov-tier-5 { background: oklch(0.94 0.06 145); color: oklch(0.35 0.12 145); }

.week-grid__cell.rang-bg-1,
.week-grid__cell.rang-bg-2,
.week-grid__cell.rang-bg-3,
.week-grid__cell.rang-bg-4 {
  position: relative;
}

.week-grid__cell.is-opener {
  box-shadow: inset 4px 0 0 0 oklch(0.55 0.18 90);
  background: oklch(0.97 0.05 90);
}
.opener-pill {
  display: inline-block;
  padding: 2px 8px;
  background: oklch(0.55 0.18 90);
  color: white;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.opener-badge {
  position: absolute;
  top: 2px;
  right: 4px;
  font-size: 9px;
  font-weight: 700;
  color: oklch(0.45 0.18 90);
  letter-spacing: 0.04em;
}

.week-grid__cell--out {
  background: var(--bg-weekend) !important;
  color: var(--text-faint);
  text-align: center;
}

.renf-tag {
  margin-top: 4px;
  font-size: 9.5px;
  font-weight: 600;
  color: oklch(0.45 0.14 60);
  background: oklch(0.96 0.04 60);
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: 0.02em;
}

/* Cell--weekend / cell--holiday subtle bg in EVP */
.cell--weekend { background: var(--bg-weekend); }
.cell--holiday { background: oklch(0.94 0.04 30); }


/* ===== V3 ADDITIONS ===== */

/* Sidebar adjustments for light theme */
.sidebar { border-right: 1px solid var(--border); }
.sidebar__brand { border-bottom: 1px solid var(--border); }
.sidebar__brand-name { color: var(--text); }
.sidebar__brand-sub { color: var(--text-muted); font-size: 11px; }
.sidebar__section-title { color: var(--text-muted); font-size: 10px; }
.sidebar__item { color: var(--text); }
.sidebar__item:hover { background: var(--bg-sidebar-elev); }
.sidebar__item--active { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.sidebar__month { color: var(--text-muted); }
.sidebar__month:hover { background: var(--bg-sidebar-elev); color: var(--text); }
.sidebar__month--active { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.sidebar__month-count {
  background: oklch(0.92 0.005 250);
  color: var(--text-muted);
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
}
.sidebar__month--active .sidebar__month-count { background: oklch(0.85 0.05 165); color: var(--accent-text); }
.sidebar__footer { color: var(--text-faint); border-top: 1px solid var(--border); }

/* Buttons palette */
.btn--primary { background: var(--accent); border-color: var(--accent); color: white; }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--danger {
  background: oklch(0.55 0.18 25);
  border-color: oklch(0.55 0.18 25);
  color: white;
}
.btn--danger:hover { background: oklch(0.50 0.20 25); border-color: oklch(0.50 0.20 25); }

/* Selected cell + selection bar */
.cell--selected {
  box-shadow: inset 0 0 0 2px var(--accent);
  background: var(--accent-soft) !important;
}
.cell--selected .evp-cell { background: transparent !important; }
.selection-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 14px;
  background: var(--accent-soft);
  border: 1px solid oklch(0.85 0.06 165);
  color: var(--accent-text);
  border-radius: var(--r);
  font-size: 13px;
}
.selection-bar strong { font-weight: 700; }

/* Read-only supp columns */
.col-supp--read {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-align: center;
  font-weight: 500;
  color: var(--text);
  background: oklch(0.97 0.005 250);
}
.col-supp--majore {
  background: oklch(0.96 0.04 165);
  color: var(--accent-text);
  font-weight: 600;
}

/* Stat warn fixes */
.stat__value--warn { color: oklch(0.55 0.16 30); }

/* Keyboard shortcut style */
kbd {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  background: oklch(0.94 0.005 250);
  border: 1px solid var(--border-strong);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text);
}

/* ===== Effectif Enfants panel ===== */
.enfants-panel {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.enfants-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.enfants-panel__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.enfants-panel__sub {
  margin: 2px 0 0 0;
  font-size: 12px;
  color: var(--text-muted);
}
.enfants-panel__legend {
  font-size: 12px;
  color: var(--text-muted);
}
.enfants-panel__rule strong { color: var(--text); font-weight: 600; }

.rules-card {
  background: oklch(0.98 0.01 250);
  border: 1px solid var(--border);
  border-left: 3px solid oklch(0.55 0.18 265);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
}
.rules-card__title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 6px;
}
.rules-card__list {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text);
}
.rules-card__list li { margin-bottom: 2px; }
.rules-card__list strong { font-weight: 600; }

.enfants-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.enfants-table th {
  text-align: center;
  padding: 8px 6px;
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.enfants-table th.moy {
  background: oklch(0.97 0.005 250);
  border-radius: 4px 4px 0 0;
  color: var(--text-muted);
}
.enfants-table td {
  padding: 8px 6px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  border-bottom: 1px solid var(--border);
}
.enfants-table td.lab {
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  padding-left: 0;
}
.enfants-table td.num { font-weight: 500; }
.enfants-table td.moy { background: oklch(0.97 0.005 250); color: var(--text-muted); }
.enfants-table tr.enfants-table__sep td {
  border-top: 2px solid var(--border-strong);
  background: oklch(0.97 0.04 165);
  padding-top: 12px;
}
.enfants-table tr.enfants-table__sep td.lab strong { color: var(--accent-text); }
.enfants-table td.required strong { color: var(--accent-text); font-size: 14px; }
.enfants-table td.required .ceil { color: var(--text-faint); font-size: 11px; margin-left: 3px; }
.enfants-table td.pros-status {
  font-weight: 600;
  position: relative;
}
.enfants-table .pros-icon { margin-left: 6px; font-size: 11px; }
.pros-status--ok { color: oklch(0.45 0.14 145); background: oklch(0.96 0.05 145); }
.pros-status--warn { color: oklch(0.45 0.14 75); background: oklch(0.96 0.06 75); }
.pros-status--bad { color: oklch(0.45 0.18 25); background: oklch(0.96 0.06 25); }

.dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}
.dot--m  { background: oklch(0.55 0.16 165); }
.dot--nm { background: oklch(0.55 0.16 35); }

.enfants-panel__foot {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.status-pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}
.status-pill--ok {
  background: oklch(0.96 0.05 145);
  color: oklch(0.40 0.13 145);
  border: 1px solid oklch(0.85 0.08 145);
}
.status-pill--warn {
  background: oklch(0.96 0.06 75);
  color: oklch(0.40 0.13 75);
  border: 1px solid oklch(0.85 0.08 75);
}
.status-pill--bad {
  background: oklch(0.96 0.06 25);
  color: oklch(0.40 0.18 25);
  border: 1px solid oklch(0.85 0.10 25);
}

/* Topbar tweaks */
.topbar { background: var(--bg-elev); border-bottom: 1px solid var(--border); }

/* Dim sticky col-total/col-supp - drop sticky to keep clean alignment */
.evp-grid .col-supp,
.evp-grid .col-total { position: static !important; }

/* The renfort-banner uses softer color now */
.renfort-banner {
  background: oklch(0.97 0.04 75);
  border-color: oklch(0.88 0.07 75);
  color: oklch(0.40 0.12 75);
}

/* === Renforts : cellules à chips === */
.toggle-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px 3px 8px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-elev);
  font-size: 11px; font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.toggle-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint); }
.toggle-pill--on { background: var(--c-mob); color: var(--c-mob-fg); border-color: var(--c-mob-fg); }
.toggle-pill--on .toggle-pill__dot { background: var(--c-mob-fg); }
.toggle-pill--off:hover { border-color: var(--c-mob-fg); color: var(--c-mob-fg); }

.evp-cell--mob {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 2px !important;
  min-height: 32px;
}
/* Quand on est sur la vue Renforts, élargir les colonnes jour */
.evp-grid--mobile-view th.evp-grid__day {
  width: 110px;
  min-width: 110px;
}
.evp-grid--mobile-view tbody td:not(.col-num):not(.col-name):not(.col-supp):not(.col-total) {
  width: 110px;
  min-width: 110px;
}
.mob-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.mob-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0;
  line-height: 1;
}
.mob-chip--full {
  width: 100%;
  min-height: 26px;
  padding: 2px 4px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 5px;
  row-gap: 0;
  border-radius: 4px;
  text-align: left;
  font-family: var(--font-sans);
  letter-spacing: 0;
}
.mob-chip__site {
  grid-row: 1 / span 2;
  align-self: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  background: rgba(255,255,255,0.22);
  border-radius: 3px;
  padding: 2px 4px;
  line-height: 1;
}
.mob-chip__name {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mob-chip__time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.1;
  opacity: 0.92;
}
.evp-cell.cell-empty {
  background: transparent;
  color: var(--text-faint);
}
.evp-cell--mob:hover { box-shadow: inset 0 0 0 2px var(--accent); }

/* Bandeau renforts */
.mobile-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--c-mob);
  color: var(--c-mob-fg);
  border: 1px solid var(--c-mob-fg);
  border-radius: 8px;
  font-size: 12px;
  margin: 8px 0;
}
.mobile-banner strong { font-weight: 700; }
.mobile-banner .badge {
  display: inline-flex;
  width: 18px; height: 18px;
  border-radius: 4px;
  background: var(--c-mob-fg);
  color: var(--c-mob);
  align-items: center; justify-content: center;
  font-weight: 700; font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
}

/* Planning : ligne Renforts */
.week-grid__cell--mob-row {
  background: var(--c-mob) !important;
  border-top: 2px solid var(--c-mob-fg) !important;
}
.week-grid__cell--mob-row strong { color: var(--c-mob-fg); }
.week-grid__cell--mob {
  border-top: 2px solid var(--c-mob-fg) !important;
  background: oklch(0.99 0.02 165) !important;
  padding: 4px 5px !important;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mob-row {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 4px;
  align-items: center;
  font-size: 10px;
  line-height: 1.15;
  background: #fff;
  border: 1px solid var(--c-mob-fg);
  border-radius: 3px;
  padding: 2px 4px;
}
.mob-row__chip {
  width: 14px; height: 14px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 9px;
  font-family: 'JetBrains Mono', monospace;
}
.mob-row__name { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mob-row__time { font-family: 'JetBrains Mono', monospace; color: var(--text-muted); font-size: 9px; }




/* ===== DASHBOARD ===== */
.dash {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dash-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
  overflow-x: auto;
}
.dash-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-sans);
  white-space: nowrap;
  position: relative;
  transition: all 0.15s;
}
.dash-tab:hover { color: var(--text); background: var(--bg-soft); }
.dash-tab--active {
  color: var(--accent-text);
  border-bottom-color: var(--accent);
}
.dash-tab__icon { font-size: 14px; }
.dash-tab__badge {
  display: inline-flex;
  min-width: 18px; height: 18px;
  padding: 0 6px;
  border-radius: 9px;
  background: var(--c-am-fg);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
}
.dash-tab--active .dash-tab__badge { background: var(--accent); }

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.clickable-row {
  cursor: pointer;
  transition: background 0.15s;
}
.clickable-row:hover {
  background: var(--bg-soft) !important;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
}

.pilotage-rh-v2 {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 40px;
}

.pilot-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.kpi-card-v2 {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kpi-card-v2__icon {
  font-size: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.kpi-card-v2__val {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.pilot-grid-v2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* --- TABLE CONTAINERS & STICKY HEADERS --- */
.table-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 520px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.table-container table {
  min-width: 900px;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table-container thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-soft);
  border-bottom: 2px solid var(--border-strong);
}

.table-container td, .table-container th {
  border-bottom: 1px solid var(--border);
}

.pilot-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: 1px solid var(--border);
  overflow: hidden;
}

.pilot-card__head {
  padding: 16px 24px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.pilot-card__title h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.pilot-card__title p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.pilot-card__body {
  padding: 24px;
  flex: 1;
}

/* --- TENSION BARS --- */
.tension-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.tension-bar-bg {
  height: 12px;
  background: var(--bg-soft);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.tension-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.4s ease-out;
}

.tension-target-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--text-muted);
  opacity: 0.5;
  z-index: 2;
}

/* --- PROJECTION GRID --- */
.projection-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.projection-cell {
  background: #fff;
  padding: 12px 8px;
  text-align: center;
}

.projection-cell--head {
  background: var(--bg-soft);
  font-weight: 700;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.projection-cell--low {
  background: oklch(0.95 0.07 30);
}

.projection-val {
  font-size: 16px;
  font-weight: 700;
}

.projection-impact {
  font-size: 10px;
  margin-top: 4px;
}

@media (max-width: 1200px) {
  .pilot-grid-v2 { grid-template-columns: 1fr; }
}

.eff-table--simple {
  font-size: 13px;
}
.eff-table--simple th { padding: 8px 10px; background: var(--bg-soft); }
.eff-table--simple td { padding: 10px; }

.pilot-abs-layout {
  display: flex;
  gap: 30px;
}

@media (max-width: 1400px) {
  .pilot-abs-layout { flex-direction: column; }
}

.pilot-abs-charts {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pilot-abs-chart-box {
  background: var(--bg-soft);
  padding: 16px;
  border-radius: 10px;
}

.pilot-abs-chart-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.pilot-abs-table {
  flex: 1.5;
}

.badge--warn {
  background: oklch(0.95 0.10 80);
  color: oklch(0.40 0.15 80);
  border: 1px solid oklch(0.80 0.15 80);
}

/* --- LEGACY DASHBOARD STYLES --- */
.alert-banner {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-banner--bad {
  background: oklch(0.95 0.05 30);
  border: 1px solid oklch(0.85 0.10 30);
  color: oklch(0.40 0.15 30);
}

.alert-banner--warn {
  background: oklch(0.97 0.05 80);
  border: 1px solid oklch(0.85 0.10 80);
  color: oklch(0.40 0.15 80);
}

.qvt-news-card {
  padding: 12px;
  background: var(--bg-soft);
  border-radius: 8px;
  border-left: 4px solid var(--accent);
}

.tab-pane {
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* KPIs row */
.dash__kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.dash-kpi {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
}
.dash-kpi::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
}
.dash-kpi--alert::before { background: var(--c-am-fg); }
.dash-kpi--warn::before { background: oklch(0.7 0.15 65); }
.dash-kpi__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.dash-kpi__value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.1;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.dash-kpi__sub {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Cards row */
.dash__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.dash-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.dash-card__head {
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.dash-card__head h3 {
  margin: 0 0 2px 0;
  font-size: 13px;
  font-weight: 600;
}
.dash-card__sub {
  font-size: 11px;
  color: var(--text-muted);
}
.dash-card__body {
  padding: 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dash-empty {
  text-align: center;
  color: var(--text-faint);
  padding: 20px 10px;
  font-size: 12px;
  font-style: italic;
}

/* Top soldes */
.solde-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 6px;
  border-bottom: 1px solid var(--border);
}
.solde-row:last-child { border-bottom: none; }
.solde-row--compact { padding: 4px 6px; }
.solde-row__head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.solde-row__avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.solde-row__name {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.solde-row__name strong { font-size: 13px; font-weight: 500; }
.solde-row__creche { font-size: 11px; font-weight: 500; }
.solde-row__solde {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-am-fg);
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
}
.solde-row__bar {
  position: relative;
  height: 14px;
  background: var(--bg-soft);
  border-radius: 3px;
  overflow: hidden;
  margin-left: 38px;
}
.solde-row__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), oklch(0.65 0.13 165));
}
.solde-row__bar-label {
  position: absolute;
  inset: 0;
  display: flex; align-items: center;
  padding-left: 6px;
  font-size: 10px;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}

/* Todo rows */
.todo-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 6px;
  border-bottom: 1px solid var(--border);
}
.todo-row:last-child { border-bottom: none; }
.todo-row__pill {
  display: inline-flex;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  margin-top: 2px;
  font-family: 'JetBrains Mono', monospace;
}
.todo-row__pill--pending {
  background: oklch(0.95 0.05 65);
  color: oklch(0.45 0.13 65);
}
.todo-row__pill--missing {
  background: oklch(0.95 0.05 25);
  color: var(--c-am-fg);
}
.todo-row__main { flex: 1; font-size: 12px; line-height: 1.4; min-width: 0; }
.todo-row__main strong { font-weight: 600; }
.todo-row__sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* Exit rows */
.exit-row, .creche-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border-bottom: 1px solid var(--border);
}
.exit-row:last-child, .creche-row:last-child { border-bottom: none; }
.exit-row__avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.exit-row__main, .creche-row__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.exit-row__main strong, .creche-row__main strong { font-size: 13px; font-weight: 500; }
.exit-row__sub, .creche-row__sub { font-size: 11px; color: var(--text-muted); }
.exit-row__date {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex-shrink: 0;
  min-width: 105px;
}
.exit-row__date strong {
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-sans);
  white-space: nowrap;
}
.exit-row__date span {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}
.creche-row__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.creche-row--bad { background: oklch(0.99 0.01 25); }
.creche-row--warn { background: oklch(0.99 0.01 65); }

/* Filters */
.dash-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dash-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text);
  font-family: var(--font-sans);
  transition: all 0.15s;
}
.dash-filter:hover { background: var(--bg-soft); }
.dash-filter--active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 500;
}
.dash-filter__count {
  display: inline-flex;
  min-width: 18px; height: 16px;
  padding: 0 5px;
  border-radius: 3px;
  background: var(--bg-soft);
  font-size: 10px;
  font-weight: 700;
  align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
}
.dash-filter--active .dash-filter__count { background: var(--accent); color: #fff; }
.dash-filter--red.dash-filter--active { border-color: var(--c-am-fg); background: oklch(0.97 0.03 25); color: var(--c-am-fg); }
.dash-filter--red.dash-filter--active .dash-filter__count { background: var(--c-am-fg); }
.dash-filter--orange.dash-filter--active { border-color: oklch(0.6 0.16 65); background: oklch(0.97 0.04 65); color: oklch(0.45 0.16 65); }
.dash-filter--orange.dash-filter--active .dash-filter__count { background: oklch(0.6 0.16 65); }
.dash-filter--green.dash-filter--active { border-color: var(--c-mob-fg); background: var(--c-mob); color: var(--c-mob-fg); }
.dash-filter--green.dash-filter--active .dash-filter__count { background: var(--c-mob-fg); }

/* Callout */
.dash-callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  background: oklch(0.97 0.02 230);
  border: 1px solid oklch(0.85 0.05 230);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
}
.dash-callout--accent {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.dash-callout__icon { font-size: 18px; flex-shrink: 0; }
.dash-callout .auto-ok {
  display: inline-block;
  padding: 1px 6px;
  background: var(--c-mob);
  color: var(--c-mob-fg);
  border-radius: 3px;
  font-weight: 600;
  font-size: 11px;
}

/* Dashboard table */
.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.dash-table th {
  text-align: left;
  padding: 8px 12px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dash-table th.num { text-align: right; }
.dash-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.dash-table td.num {
  text-align: right;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
}
.dash-table tbody tr:hover { background: var(--bg-soft); }
.dash-table .empty { text-align: center; color: var(--text-faint); padding: 20px; font-style: italic; }

/* HS status pills */
.hs-status {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.hs-status--missing { background: oklch(0.95 0.05 25); color: var(--c-am-fg); }
.hs-status--pending { background: oklch(0.95 0.05 65); color: oklch(0.45 0.16 65); }
.hs-status--auto    { background: var(--c-mob); color: var(--c-mob-fg); }
.hs-status--approved{ background: var(--accent-soft); color: var(--accent-text); }
.hs-status--rejected{ background: oklch(0.94 0.005 250); color: var(--text-muted); text-decoration: line-through; }
.hs-status--ok      { color: var(--text-faint); font-style: italic; }

.team-pill {
  display: inline-flex;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
}
.team-pill--full { background: oklch(0.95 0.04 145); color: var(--c-mob-fg); }
.team-pill--reduced { background: oklch(0.94 0.005 250); color: var(--text-muted); }

/* Buttons xs */
.btn--xs { padding: 3px 7px !important; font-size: 11px !important; }
.btn--success { background: var(--c-mob-fg); color: #fff !important; border-color: var(--c-mob-fg) !important; }
.btn--success:hover { background: oklch(0.45 0.13 145); }
.btn--danger { background: #fff; color: var(--c-am-fg) !important; border-color: var(--c-am-fg) !important; }
.btn--danger:hover { background: oklch(0.97 0.03 25); }

/* Cov bar */
.cov-bar {
  display: inline-block;
  width: 60px;
  height: 6px;
  background: var(--bg-soft);
  border-radius: 3px;
  overflow: hidden;
  vertical-align: middle;
  margin-right: 6px;
}
.cov-bar__fill {
  height: 100%;
  background: var(--accent);
}

/* Repart bar (mobile dashboard) */
.repart-bar {
  display: flex;
  height: 18px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-soft);
  width: 220px;
}
.repart-bar__seg {
  display: inline-flex;
  align-items: center; justify-content: center;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

@media (max-width: 1100px) {
  .dash__row { grid-template-columns: 1fr; }
}


/* ===== DASHBOARD DIRECTION ===== */
.site-dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: baseline;
}
.dash-table--compare th:first-child,
.dash-table--compare td:first-child { padding-left: 16px; }
.dash-table--compare td:last-child,
.dash-table--compare th:last-child { padding-right: 16px; }

/* Sparkline */
.spark-legend {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-muted);
}
.spark-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.spark-dot {
  display: inline-block;
  width: 10px; height: 3px;
  border-radius: 2px;
}

/* Pyramide */
.pyr-row {
  display: grid;
  grid-template-columns: 80px 1fr 30px;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
}
.pyr-row__label {
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
  text-align: right;
}
.pyr-row__bar {
  display: flex;
  height: 22px;
  background: var(--bg-soft);
  border-radius: 4px;
  overflow: hidden;
}
.pyr-row__seg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  min-width: 18px;
  border-right: 1px solid rgba(255,255,255,0.3);
}
.pyr-row__seg:last-child { border-right: none; }
.pyr-row__total {
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--text);
  text-align: right;
}
.pyr-insight {
  margin-top: 8px;
  padding: 8px 10px;
  background: var(--bg-soft);
  border-radius: 4px;
  font-size: 12px;
}

/* Conformité row */
.conf-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 6px;
  border-bottom: 1px solid var(--border);
}
.conf-row:last-child { border-bottom: none; }
.conf-row__values {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
  min-width: 105px;
}
.conf-row__values strong {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   Mon équipe (vue RT)
   ========================================================= */
.myteam {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4px 4px 32px;
}

/* === Hero (bandeau crèche + stats du jour) === */
.myteam__hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, var(--bg-elev), var(--accent-soft));
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
}
.myteam__hero-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}
.myteam__hero-creche {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.myteam__creche-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.myteam__hero-stats {
  display: flex;
  gap: 10px;
}
.myteam__stat {
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  text-align: center;
  min-width: 64px;
}
.myteam__stat--ok    { border-color: oklch(0.85 0.06 165); }
.myteam__stat--warn  { border-color: oklch(0.85 0.10 25);  background: oklch(0.98 0.02 25); }
.myteam__stat--info  { border-color: oklch(0.85 0.08 220); background: oklch(0.98 0.02 220); }
.myteam__stat-value {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.myteam__stat--ok .myteam__stat-value   { color: var(--accent-text); }
.myteam__stat--warn .myteam__stat-value { color: var(--c-am-fg); }
.myteam__stat--info .myteam__stat-value { color: oklch(0.45 0.18 220); }
.myteam__stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 3px;
}

/* === Sélecteur de semaine === */
.myteam__weekbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}
.myteam__weeknav {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
}
.myteam__weeknav:hover { background: var(--bg-soft); border-color: var(--accent); }
.myteam__weeklabel { font-weight: 500; }
.myteam__weekdates { color: var(--text-faint); }

/* === Onglets jours === */
.myteam__daytabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.myteam__daytab {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 0 0 0;
  cursor: pointer;
  text-align: center;
  transition: all 0.12s;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  overflow: hidden;
}
.myteam__daytab:hover { border-color: var(--accent); }
.myteam__daytab--sel {
  background: var(--accent-soft);
  border-color: var(--accent);
  border-width: 2px;
  padding: 7px 0 0 0;
}
.myteam__daytab--today { box-shadow: 0 0 0 1px var(--accent) inset; }
.myteam__daytab--hol  { background: oklch(0.97 0.01 250); color: var(--text-faint); }
.myteam__daytab-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 0 6px;
}
.myteam__daytab-dow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--text-muted);
}
.myteam__daytab--sel .myteam__daytab-dow { color: var(--accent-text); }
.myteam__daytab-num {
  font-size: 22px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text);
  line-height: 1.1;
}
.myteam__daytab--sel .myteam__daytab-num { color: var(--accent-text); }
.myteam__daytab-bandeau {
  margin-top: auto;
  background: oklch(0.96 0.005 250);
  border-top: 1px solid var(--border);
  padding: 4px 4px 5px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 10px;
  line-height: 1.2;
}
.myteam__daytab--sel .myteam__daytab-bandeau {
  background: oklch(0.94 0.02 250);
  border-top-color: var(--accent);
}
.myteam__daytab-pros {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
}
.myteam__daytab-enf {
  font-size: 11px;
  color: var(--text);
  font-weight: 600;
}
.myteam__daytab-enf strong { font-family: 'JetBrains Mono', monospace; }
.myteam__daytab-mn {
  font-size: 9px;
  font-weight: 500;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}
.myteam__daytab-bandeau--warn {
  background: oklch(0.95 0.06 80);
}
.myteam__daytab-bandeau--warn .myteam__daytab-enf { color: oklch(0.45 0.15 60); }
.myteam__daytab-bandeau--over {
  background: oklch(0.94 0.10 25);
}
.myteam__daytab-bandeau--over .myteam__daytab-enf { color: oklch(0.45 0.18 25); }
.myteam__daytab-bandeau--hol {
  background: oklch(0.95 0.02 250);
  color: var(--text-faint);
  font-style: italic;
  font-size: 11px;
  text-align: center;
  padding: 6px 4px;
  margin-top: auto;
  border-top: 1px solid var(--border);
}

/* === Bannière férié === */
.myteam__holiday-banner {
  background: oklch(0.97 0.04 60);
  border: 1px solid oklch(0.85 0.10 60);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  font-size: 15px;
  color: oklch(0.40 0.10 60);
  font-weight: 500;
}

/* === Liste cartes pro === */
.myteam__cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.procard {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.procard:hover { border-color: var(--border-strong); }
.procard--editing {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.procard--absent { background: oklch(0.985 0.005 250); }
.procard--retard { border-left: 3px solid oklch(0.62 0.18 30); }
.procard--depart { border-left: 3px solid oklch(0.62 0.14 60); }
.procard--renfort { background: oklch(0.98 0.015 220); border-color: oklch(0.85 0.05 220); }

.procard__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
}
.procard__avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: oklch(0.92 0.005 250);
  color: var(--text);
  display: inline-flex;
  align-items: center; justify-content: center;
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}
.procard__avatar--rt {
  background: var(--accent);
  color: white;
}
.procard__avatar--mob {
  background: var(--c-mob);
  color: var(--c-mob-fg);
}
.procard__avatar--rnf {
  background: oklch(0.85 0.10 220);
  color: oklch(0.30 0.15 220);
}

.procard__main {
  flex: 1;
  min-width: 0;
}
.procard__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.procard__lastname {
  font-weight: 400;
  color: var(--text-muted);
}
.procard__tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
}
.procard__tag--rt  { background: var(--accent-soft); color: var(--accent-text); }
.procard__tag--mob { background: var(--c-mob); color: var(--c-mob-fg); }
.procard__tag--rnf { background: oklch(0.92 0.05 220); color: oklch(0.30 0.15 220); }
.procard__edited { color: var(--accent); font-size: 10px; }
.procard__week-total {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.procard__week-total-suffix { font-weight: 500; color: var(--text-faint); font-size: 10px; }
.procard__week-total-rnf { color: oklch(0.55 0.13 220); font-weight: 600; }
.procard--rnf-out { background: oklch(0.985 0.02 220); border-color: oklch(0.85 0.06 220); }
.procard--rnf-out .procard__row { cursor: default; }
.procard__sub--rnf-out { color: oklch(0.40 0.13 220); }
.procard__abspill--rnf-out { background: oklch(0.92 0.06 220); color: oklch(0.30 0.15 220); }
.procard__rnf-inline {
  font-size: 11px;
  font-weight: 600;
  color: oklch(0.40 0.15 220);
  background: oklch(0.95 0.04 220);
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 8px;
  white-space: nowrap;
  border: 1px solid oklch(0.85 0.06 220);
}

.procard__horaire {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text);
  margin-top: 3px;
  flex-wrap: wrap;
}
.procard__time {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.procard__sep { color: var(--text-faint); }
.procard__pause {
  color: var(--text-muted);
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}
.procard__total {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  background: var(--bg-soft);
  padding: 2px 8px;
  border-radius: 10px;
}
.procard__status-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.procard__status-pill--retard { background: oklch(0.95 0.05 30); color: oklch(0.45 0.18 30); }
.procard__status-pill--depart { background: oklch(0.95 0.05 60); color: oklch(0.45 0.16 60); }

.procard__sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  display: flex;
  align-items: center;
}
.procard__abspill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 3px;
  font-family: 'JetBrains Mono', monospace;
}

.procard__actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.procard__btn {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  font-weight: 500;
  white-space: nowrap;
}
.procard__btn:hover { background: var(--bg-elev); border-color: var(--accent); color: var(--accent-text); }
.procard__rm {
  background: transparent;
  border: none;
  font-size: 18px;
  color: var(--text-faint);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
.procard__rm:hover { color: var(--c-am-fg); }

/* === Éditeur inline === */
.procard__editor {
  background: oklch(0.985 0.005 250);
  border-top: 1px solid var(--border);
  padding: 14px 14px 12px;
}
.procard__editor-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 10px;
}
.procard__editor-row--actions { grid-template-columns: 1fr; }
.procard__editor-row--note { grid-template-columns: 1fr; }
.procard__editor-row--actions {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  margin-top: 4px;
  align-items: center;
  gap: 18px;
}
.procard__editor-row--note { margin-bottom: 6px; }
.procard__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.procard__field label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--text-muted);
}
.procard__field input[type="time"] {
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 6px 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: white;
  color: var(--text);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.procard__field { min-width: 0; }
.procard__field--pause { display: flex; flex-direction: column; }
.procard__field--pause-inputs { display: flex; align-items: center; gap: 4px; }
.procard__field input[type="time"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.procard__field-sep { color: var(--text-faint); padding: 0 4px; align-self: center; font-size: 12px; }
.procard__field--total .procard__total-big {
  font-size: 18px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  color: var(--accent-text);
  padding: 4px 0;
  white-space: nowrap;
}

.procard__quick-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.procard__quick-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  margin-right: 2px;
}
.procard__chip {
  background: white;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}
.procard__chip:hover { border-color: var(--accent); }
.procard__chip--on {
  background: oklch(0.95 0.05 30);
  color: oklch(0.45 0.18 30);
  border-color: oklch(0.65 0.18 30);
  font-weight: 600;
}
.procard__abs-btn {
  width: 36px; height: 28px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.procard__abs-btn:hover { transform: scale(1.05); }

.procard__note {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 8px 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  resize: vertical;
  min-height: 36px;
  background: white;
  color: var(--text);
}
.procard__note:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.procard__editor-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}
.procard__reset {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  padding: 6px 0;
  font-weight: 500;
}
.procard__reset:hover { color: var(--accent-text); text-decoration: underline; }
.procard__done {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.procard__done:hover { background: var(--accent-hover); }

/* === Bouton + renfort === */
.myteam__add-renfort {
  background: var(--bg-soft);
  border: 1.5px dashed var(--border-strong);
  border-radius: 10px;
  padding: 14px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.12s;
}
.myteam__add-renfort:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-text);
}

/* === Mes demandes RH === */
.myteam__requests {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
}
.myteam__requests-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.myteam__request {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.myteam__request:last-child { border-bottom: none; }
.myteam__request-pill {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}
.myteam__request-pill--pending  { background: oklch(0.95 0.05 65);  color: oklch(0.45 0.16 65); }
.myteam__request-pill--approved { background: var(--accent-soft); color: var(--accent-text); }
.myteam__request-pill--auto-ok  { background: var(--accent-soft); color: var(--accent-text); }
.myteam__request-pill--rejected { background: oklch(0.94 0.04 25); color: oklch(0.50 0.20 25); }
.myteam__request-label { flex: 1; color: var(--text); }
.myteam__request-status { font-size: 11px; color: var(--text-muted); }

/* === Dialogue Renfort === */
.myteam__overlay {
  position: fixed; inset: 0;
  background: rgba(20,20,30,0.40);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  padding: 20px;
  backdrop-filter: blur(2px);
}
.myteam__dialog {
  background: var(--bg-elev);
  border-radius: 12px;
  width: 100%;
  max-width: 540px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.20);
  overflow: hidden;
}
.myteam__dialog-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.myteam__dialog-title { font-size: 15px; font-weight: 600; }
.myteam__dialog-close {
  background: transparent; border: none;
  font-size: 22px; cursor: pointer; color: var(--text-muted);
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.myteam__dialog-close:hover { background: var(--bg-soft); color: var(--text); }
.myteam__dialog-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 14px 0;
  border-bottom: 1px solid var(--border);
}
.myteam__dialog-tab {
  background: transparent;
  border: none;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-weight: 500;
}
.myteam__dialog-tab--on {
  color: var(--accent-text);
  border-bottom-color: var(--accent);
  font-weight: 600;
}
.myteam__dialog-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  min-height: 100px;
  max-height: 300px;
}
.myteam__dialog-emp {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
}
.myteam__dialog-emp:hover { background: var(--bg-soft); }
.myteam__dialog-emp--on {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.myteam__dialog-emp-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: oklch(0.90 0.005 250);
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 600;
}
.myteam__dialog-emp--on .myteam__dialog-emp-avatar {
  background: var(--accent);
  color: white;
}
.myteam__dialog-emp-name { font-weight: 600; flex: 1; }
.myteam__dialog-emp-meta { color: var(--text-muted); font-size: 11px; }

.myteam__dialog-times {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.myteam__dialog-times label { font-size: 11px; color: var(--text-muted); }
.myteam__dialog-times input[type="time"] {
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 4px 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}
.myteam__dialog-presets { display: flex; gap: 4px; margin-left: auto; }
.myteam__dialog-presets .btn { padding: 4px 8px; font-size: 11px; }

.myteam__dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: oklch(0.985 0.005 250);
}

/* === Responsive (téléphone, < 720px) === */
@media (max-width: 720px) {
  .procard__editor-row { grid-template-columns: 1fr 1fr; }
  .procard__field--total { grid-column: span 2; }
  .myteam {
    padding: 0 0 24px;
    gap: 10px;
  }
  .myteam__hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
  }
  .myteam__hero-stats { width: 100%; }
  .myteam__stat { flex: 1; }
  .myteam__daytab { padding: 8px 4px; }
  .myteam__daytab-num { font-size: 18px; }
  .procard__row { padding: 10px 12px; gap: 10px; }
  .procard__avatar { width: 34px; height: 34px; font-size: 12px; }
  .procard__total { font-size: 11px; }
  .procard__editor-row { gap: 10px; }
  .procard__field input[type="time"] { min-width: 85px; font-size: 12px; }
  .procard__editor-row--actions { gap: 12px; }
  .procard__quick-label { width: 100%; }
}


/* === Sidebar 4 axes (RH · Pilotage · Familles · Réglementaire) === */
.sidebar__axes {
  flex: 0 0 auto;
  display: flex; flex-direction: column;
  gap: 2px;
  padding: 8px 8px 4px;
  overflow-y: auto;
}
.axe {
  border-radius: 8px;
  overflow: hidden;
}
.axe__header {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  transition: background 0.12s;
}
.axe__header:hover { background: var(--bg-sidebar-elev); }
.axe--has-active .axe__header { background: var(--bg-sidebar-elev); }
.axe__icon {
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 7px;
  flex-shrink: 0;
}
.axe--has-active .axe__icon {
  background: var(--accent-soft);
  border-color: oklch(0.82 0.06 165);
}
.axe__label {
  display: flex; flex-direction: column;
  flex: 1; min-width: 0;
  line-height: 1.15;
}
.axe__title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
}
.axe__desc {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 1px;
}
.axe__chevron {
  font-size: 10px;
  color: var(--text-faint);
  transition: transform 0.15s;
}
.axe__items {
  display: flex; flex-direction: column;
  gap: 1px;
  padding: 2px 0 4px 6px;
  margin-left: 16px;
  border-left: 2px solid var(--border);
  margin-top: 2px;
  margin-bottom: 4px;
}
.axe__item {
  border-radius: 6px;
  padding-left: 12px !important;
  font-size: 12.5px !important;
}
.axe--has-active .axe__items { border-left-color: oklch(0.82 0.06 165); }
.axe--open .axe__chevron { transform: rotate(0deg); }

/* Sidebar months — affichage compact (la sidebar entière scrolle) */
.sidebar__months { flex: 0 0 auto; }


/* === Pôle Familles : Inscriptions === */
.insc { padding: 16px 20px 24px; display: flex; flex-direction: column; gap: 14px; height: 100%; min-height: 0; }
.insc__head {
  display: flex; flex-direction: column; gap: 12px;
  padding: 14px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.insc__head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.insc__yearpicker { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.insc__yearpicker label { color: var(--text-muted); font-weight: 500; }
.insc__yearpicker select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* KPIs */
.insc__kpis {
  display: grid;
  grid-template-columns: repeat(5, 1fr) 2fr;
  gap: 10px;
}
.insc__kpi {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 2px;
}
.insc__kpi--accent { border-color: oklch(0.75 0.12 165); background: oklch(0.97 0.025 165); }
.insc__kpi-num { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.insc__kpi-sub { font-size: 13px; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }
.insc__kpi-lbl { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.insc__kpi--days { padding: 10px 12px; }
.insc__days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.insc__day {
  background: oklch(0.97 0.005 250);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 6px 4px;
  text-align: center;
}
.insc__day--warn { background: oklch(0.95 0.07 60); border-color: oklch(0.75 0.12 60); }
.insc__day--over { background: oklch(0.92 0.10 25); border-color: oklch(0.65 0.18 25); color: white; }
.insc__day-label { font-size: 10px; color: var(--text-muted); font-weight: 600; }
.insc__day-num { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin-top: 2px; }
.insc__day-cap { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.insc__day--over .insc__day-cap, .insc__day--over .insc__day-label, .insc__day--over .insc__day-detail { color: rgba(255,255,255,0.85); }
.insc__day-detail { font-size: 10px; color: var(--text-muted); margin-top: 1px; font-family: 'JetBrains Mono', monospace; }

/* Filtres */
.insc__filters { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.12s;
}
.chip:hover { background: var(--bg-elev); color: var(--text); }
.chip--on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
.chip__dot { width: 8px; height: 8px; border-radius: 50%; }
.chip__n { font-family: 'JetBrains Mono', monospace; font-weight: 600; padding: 0 4px; background: rgba(0,0,0,0.06); border-radius: 4px; font-size: 11px; }
.insc__search { width: 240px; }

/* Tableau */
.insc__tablewrap {
  flex: 1; min-height: 0;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}
.insc__table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-family: 'Inter', sans-serif; }
.insc__table thead th {
  position: sticky; top: 0; z-index: 2;
  background: oklch(0.97 0.005 250);
  border-bottom: 1px solid var(--border);
  padding: 9px 8px;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-weight: 600;
}
.insc__table tbody td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.insc__table tbody tr:hover { background: oklch(0.985 0.005 250); }
.insc__row--soft td { color: var(--text-muted); background: oklch(0.99 0.003 250); }
.insc__num { font-family: 'JetBrains Mono', monospace; color: var(--text-muted); }
.insc__namebtn { background: none; border: 0; padding: 0; font-size: 12.5px; font-family: inherit; color: var(--text); font-weight: 600; cursor: pointer; text-align: left; }
.insc__namebtn:hover { color: var(--accent); text-decoration: underline; }
.insc__muted { color: var(--text-muted); }
.insc__date { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; }
.insc__type { display: inline-block; padding: 2px 7px; border-radius: 4px; font-weight: 600; font-size: 11px; }
.insc__type--m { background: oklch(0.92 0.07 165); color: oklch(0.40 0.10 165); }
.insc__type--nm { background: oklch(0.92 0.08 35); color: oklch(0.40 0.12 35); }
.insc__type--none { background: var(--border); color: var(--text-faint); }
.insc__statut {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 500;
  border: 1px solid transparent;
  white-space: nowrap;
}
.insc__jcell { text-align: center; padding: 0; }
.insc__jbtn {
  width: 28px; height: 28px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-faint);
  transition: all 0.12s;
}
.insc__jbtn:hover { border-color: var(--accent); }
.insc__jbtn--on { background: var(--accent); color: white; border-color: var(--accent); font-weight: 700; }
.insc__nbj { text-align: center; font-family: 'JetBrains Mono', monospace; font-weight: 600; }
.insc__del {
  background: none; border: 0; cursor: pointer;
  width: 24px; height: 24px;
  border-radius: 4px;
  color: var(--text-faint);
}
.insc__del:hover { background: oklch(0.95 0.10 25); color: oklch(0.55 0.18 25); }
.insc__empty { text-align: center; padding: 32px; color: var(--text-muted); font-style: italic; }

/* Sheet (modale détail enfant) */
.sheet-overlay {
  position: fixed; inset: 0;
  background: rgba(20,25,35,0.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  padding: 20px;
}
.sheet {
  background: var(--bg);
  border-radius: 14px;
  width: 100%; max-width: 540px;
  max-height: 90vh;
  display: flex; flex-direction: column;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
}
.sheet__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.sheet__head h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.sheet__close { background: none; border: 0; cursor: pointer; font-size: 18px; color: var(--text-muted); width: 28px; height: 28px; border-radius: 6px; }
.sheet__close:hover { background: var(--bg-elev); }
.sheet__body { padding: 16px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.sheet__row { display: flex; flex-direction: column; gap: 4px; }
.sheet__row label, .sheet__grid2 label { font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.sheet__grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sheet__jours { display: flex; gap: 6px; }
.sheet__jbtn {
  flex: 1;
  padding: 8px 6px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
}
.sheet__jbtn--on { background: var(--accent); border-color: var(--accent); color: white; }
.sheet__foot {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 8px;
}
.sheet textarea.input { font-family: inherit; resize: vertical; }

/* === Présences enfants === */
.presences { padding: 16px 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.presences__intro { color: var(--text-muted); font-size: 13px; max-width: 720px; line-height: 1.5; }
.presences__intro p { margin: 0; }
.presences__grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
}
.presences__col {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; flex-direction: column;
  overflow: hidden;
  min-height: 320px;
}
.presences__col--warn { border-color: oklch(0.75 0.13 60); }
.presences__col--over { border-color: oklch(0.65 0.18 25); }
.presences__col-head {
  padding: 10px 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.presences__col--warn .presences__col-head { background: oklch(0.96 0.06 60); }
.presences__col--over .presences__col-head { background: oklch(0.94 0.10 25); }
.presences__col-day { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; color: var(--text-muted); }
.presences__col-count { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; margin-top: 2px; }
.presences__col-count span { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.presences__col-detail { display: flex; gap: 6px; margin-top: 6px; }
.badge { display: inline-block; padding: 2px 7px; border-radius: 4px; font-size: 10.5px; font-weight: 600; }
.badge--m  { background: oklch(0.92 0.07 165); color: oklch(0.35 0.10 165); }
.badge--nm { background: oklch(0.92 0.08 35); color: oklch(0.40 0.12 35); }
.presences__list { list-style: none; padding: 8px; margin: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.presences__list li {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
}
.presences__chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--border);
}
.presences__child--m .presences__chip { background: oklch(0.85 0.10 165); color: oklch(0.30 0.12 165); }
.presences__child--nm .presences__chip { background: oklch(0.85 0.10 35); color: oklch(0.35 0.14 35); }
.presences__empty { color: var(--text-faint); font-style: italic; justify-content: center; }

/* === Ratios === */
.ratios { padding: 16px 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.ratios__rules { display: flex; gap: 10px; flex-wrap: wrap; }
.ratios__rule {
  display: flex; flex-direction: column;
  padding: 10px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
}
.ratios__formula { font-family: 'JetBrains Mono', monospace; font-size: 17px; font-weight: 700; color: var(--accent-text); }
.ratios__table {
  width: 100%; border-collapse: collapse;
  background: var(--bg-elev); border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border);
  font-size: 13px;
}
.ratios__table th, .ratios__table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.ratios__table th { background: var(--bg); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); font-weight: 600; }
.ratios__calc { font-family: 'JetBrains Mono', monospace; color: var(--text-muted); }
.ratios__ceil { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 15px; color: var(--accent-text); }

/* === Conformité === */
.conformite { padding: 16px 20px 24px; }
.conformite__ok {
  text-align: center; padding: 48px 20px;
  background: oklch(0.97 0.05 165);
  border: 1px solid oklch(0.85 0.10 165);
  border-radius: 14px;
  color: oklch(0.35 0.12 165);
}
.conformite__ok h3 { margin: 8px 0 4px; }
.conformite__ok p { margin: 0; color: var(--text-muted); }
.conformite__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.conformite__alert {
  display: flex; gap: 14px; align-items: center;
  padding: 12px 16px;
  border: 1px solid;
  border-radius: 10px;
}
.conformite__alert--warn { background: oklch(0.97 0.05 60); border-color: oklch(0.80 0.10 60); color: oklch(0.35 0.10 60); }
.conformite__alert--crit { background: oklch(0.95 0.08 25); border-color: oklch(0.65 0.18 25); color: oklch(0.40 0.16 25); }
.conformite__day { font-weight: 700; min-width: 90px; }
.conformite__msg { flex: 1; }

/* ============================================================
   PÔLE FAMILLES — Dashboard global tous sites
   ============================================================ */

/* unité petite à côté d'une grande valeur (ex: "75/140") */
.fd-unit { font-size: 14px; color: var(--text-muted); font-weight: 500; margin-left: 2px; letter-spacing: 0; }

/* === Cards génériques === */
.fd-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 14px;
  overflow: hidden;
}
.fd-card__head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.fd-card__head h3 {
  margin: 0 0 2px 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.fd-card__sub {
  font-size: 11px;
  color: var(--text-muted);
}
.fd-card__body {
  padding: 14px 16px;
}
.fd-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 1100px) { .fd-row { grid-template-columns: 1fr; } }

/* === Légende === */
.fd-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; color: var(--text-muted); }
.fd-leg-item { display: inline-flex; align-items: center; gap: 5px; }
.fd-leg-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.fd-leg-dot--plein   { background: oklch(0.60 0.16 165); }
.fd-leg-dot--sain    { background: oklch(0.75 0.13 145); }
.fd-leg-dot--moyen   { background: oklch(0.75 0.13 75); }
.fd-leg-dot--faible  { background: oklch(0.70 0.18 30); }
.fd-leg-dot--inactif { background: oklch(0.85 0.01 250); }

/* === Grille des cartes site === */
.fd-sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  padding: 14px 16px;
}
.fd-site-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  border-left-width: 4px;
}
.fd-site-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.fd-site--plein   { border-left-color: oklch(0.60 0.16 165); }
.fd-site--sain    { border-left-color: oklch(0.75 0.13 145); }
.fd-site--moyen   { border-left-color: oklch(0.75 0.13 75); }
.fd-site--faible  { border-left-color: oklch(0.70 0.18 30); }
.fd-site--inactif { border-left-color: oklch(0.85 0.01 250); background: oklch(0.99 0.005 250); }

.fd-site-card__head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
}
.fd-site-card__name { font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }
.fd-site-card__city { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.fd-status-pill {
  font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px;
  white-space: nowrap;
}
.fd-status-pill--plein   { background: oklch(0.95 0.06 165); color: oklch(0.40 0.10 165); }
.fd-status-pill--sain    { background: oklch(0.95 0.06 145); color: oklch(0.40 0.10 145); }
.fd-status-pill--moyen   { background: oklch(0.95 0.06 75);  color: oklch(0.40 0.10 75); }
.fd-status-pill--faible  { background: oklch(0.95 0.07 30);  color: oklch(0.40 0.13 30); }
.fd-status-pill--inactif { background: oklch(0.94 0 0);      color: oklch(0.55 0.01 250); }

.fd-site-card__bar { display: flex; flex-direction: column; gap: 4px; }
.fd-site-card__bar-track {
  height: 8px;
  background: oklch(0.94 0.005 250);
  border-radius: 4px;
  position: relative;
  overflow: visible;
}
.fd-site-card__bar-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, oklch(0.65 0.13 165), oklch(0.55 0.16 165));
  max-width: 115%;
}
.fd-site--moyen .fd-site-card__bar-fill { background: linear-gradient(90deg, oklch(0.75 0.13 75), oklch(0.65 0.16 75)); }
.fd-site--faible .fd-site-card__bar-fill { background: linear-gradient(90deg, oklch(0.75 0.16 30), oklch(0.65 0.20 30)); }
.fd-site--inactif .fd-site-card__bar-fill { background: oklch(0.85 0.01 250); }
.fd-site-card__bar-mark {
  position: absolute; top: -2px; bottom: -2px; width: 2px;
  background: oklch(0.45 0.02 250);
  border-radius: 1px;
  transform: translateX(-1px);
}
.fd-site-card__bar-labels {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--text-muted);
}
.fd-site-card__bar-labels strong { color: var(--text); }

.fd-site-card__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding-top: 8px; border-top: 1px dashed var(--border);
}
.fd-site-card__stats > div { display: flex; flex-direction: column; }
.fd-mini-lbl { font-size: 9px; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.05em; font-weight: 600; }
.fd-mini-val { font-size: 13px; font-weight: 600; }

/* === Alertes & opportunités === */
.fd-alert {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 6px 10px;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  align-items: center;
  font-size: 12px;
}
.fd-alert:last-child { margin-bottom: 0; }
.fd-alert strong { font-weight: 600; }
.fd-alert__val { font-weight: 600; font-variant-numeric: tabular-nums; }
.fd-alert__sub { grid-column: 1 / -1; font-size: 11px; color: var(--text-muted); }
.fd-alert--warn { background: oklch(0.97 0.05 60); border: 1px solid oklch(0.85 0.08 60); }
.fd-alert--info { background: oklch(0.97 0.04 250); border: 1px solid oklch(0.88 0.05 250); }
.fd-alert--ok   { background: oklch(0.97 0.05 165); border: 1px solid oklch(0.85 0.08 165); }
.fd-rank {
  width: 22px; height: 22px; border-radius: 50%;
  background: oklch(0.55 0.18 165); color: white; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px;
}
.fd-rank-mini {
  display: inline-block; min-width: 22px; height: 22px; line-height: 22px;
  text-align: center; background: var(--bg-soft); border-radius: 50%;
  font-size: 10px; font-weight: 600; color: var(--text-muted);
  margin-right: 8px;
}

/* === Tables Pôle Familles === */
.fd-table-wrap { overflow-x: auto; }
.fd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.fd-table thead th {
  position: sticky; top: 0;
  background: var(--bg-soft);
  font-weight: 600;
  text-align: left;
  padding: 9px 10px;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.fd-table tbody td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
}
.fd-table tbody tr:hover { background: oklch(0.98 0.01 250); }
.fd-table .fd-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fd-muted { color: var(--text-muted); }
.fd-row--total {
  background: oklch(0.97 0.02 165);
  border-top: 2px solid oklch(0.55 0.18 165);
}
.fd-row--total td { background: oklch(0.97 0.02 165) !important; font-weight: 600; }
.fd-row--inactif td { opacity: 0.55; font-style: italic; }
.fd-row--muted td { background: oklch(0.99 0.003 250); }
.fd-table--sortable thead th { cursor: pointer; user-select: none; }
.fd-table--sortable thead th:hover { background: oklch(0.93 0.02 250); }
.fd-sort { color: var(--text-muted); margin-left: 4px; font-size: 10px; }
.fd-sort--active { color: oklch(0.55 0.18 165); font-weight: 700; }

.fd-tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 4px;
}
.fd-tag--warn { background: oklch(0.92 0.08 60); color: oklch(0.40 0.13 60); }
.fd-tag--ent { background: oklch(0.93 0.07 265); color: oklch(0.40 0.15 265); }

/* Barre d'occupation inline (dans tableau) */
.fd-occ-bar { display: flex; align-items: center; gap: 8px; min-width: 180px; }
.fd-occ-bar__track {
  flex: 1;
  height: 8px;
  background: oklch(0.94 0.005 250);
  border-radius: 4px;
  position: relative;
  overflow: visible;
  min-width: 80px;
}
.fd-occ-bar__fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  border-radius: 4px;
  background: oklch(0.55 0.16 165);
  max-width: 115%;
}
.fd-occ-bar__fill--plein   { background: linear-gradient(90deg, oklch(0.65 0.14 165), oklch(0.50 0.18 165)); }
.fd-occ-bar__fill--sain    { background: linear-gradient(90deg, oklch(0.70 0.13 145), oklch(0.55 0.16 145)); }
.fd-occ-bar__fill--moyen   { background: linear-gradient(90deg, oklch(0.78 0.13 75), oklch(0.65 0.16 75)); }
.fd-occ-bar__fill--faible  { background: linear-gradient(90deg, oklch(0.75 0.16 30), oklch(0.62 0.20 30)); }
.fd-occ-bar__fill--inactif { background: oklch(0.85 0.01 250); }
.fd-occ-bar__mark {
  position: absolute; top: -2px; bottom: -2px; width: 2px;
  background: oklch(0.45 0.02 250); border-radius: 1px;
  left: calc(100% / 1.15); transform: translateX(-1px);
}
.fd-occ-bar__val { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 40px; text-align: right; }

/* Mini bar (pour "% temps plein") */
.fd-mini-bar {
  position: relative;
  height: 18px;
  background: oklch(0.94 0.005 250);
  border-radius: 4px;
  min-width: 80px;
  overflow: hidden;
}
.fd-mini-bar__fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: oklch(0.65 0.13 165);
  opacity: 0.55;
}
.fd-mini-bar span {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
}

/* === Bar chart CA mensuel === */
.fd-bars {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px;
  height: 240px;
  align-items: end;
  padding: 0 4px;
}
.fd-bar-col {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  height: 100%;
  justify-content: flex-end;
}
.fd-bar-col__val { font-size: 10px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.fd-bar-col__bar-wrap { width: 100%; height: 180px; display: flex; align-items: flex-end; }
.fd-bar-col__bar {
  width: 100%;
  background: linear-gradient(180deg, oklch(0.65 0.13 165), oklch(0.50 0.18 165));
  border-radius: 4px 4px 0 0;
  min-height: 2px;
  transition: opacity .15s;
}
.fd-bar-col__bar:hover { opacity: 0.85; }
.fd-bar-col__bar--future {
  background: repeating-linear-gradient(45deg, oklch(0.92 0.005 250), oklch(0.92 0.005 250) 4px, oklch(0.96 0.005 250) 4px, oklch(0.96 0.005 250) 8px);
  border: 1px dashed var(--border);
}
.fd-bar-col__label {
  font-size: 10px; color: var(--text-muted); font-weight: 500;
}

/* === Heatmap === */
.fd-heatmap thead th { text-align: center; font-size: 10px; }
.fd-heatmap thead th:first-child { text-align: left; }
.fd-heat-cell {
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  padding: 8px 6px !important;
  transition: transform .1s;
}
.fd-heat-cell:hover { transform: scale(1.05); z-index: 1; position: relative; }

/* === Opportunités === */
.fd-opps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
.fd-opp {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  background: oklch(0.99 0.005 265);
}
.fd-opp__head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 4px;
}
.fd-opp__metrics { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.fd-opp__pot {
  font-size: 11px; font-weight: 600;
  color: oklch(0.40 0.15 265);
  background: oklch(0.93 0.07 265);
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
}

/* ============================================================
   EFFECTIFS — colonnes Transport / Mutuelle / Leeto / Enfants / ASA
   ============================================================ */
.eff-soft { font-size: 12px; color: var(--text-muted); }
.eff-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.eff-pill--ok  { background: oklch(0.95 0.06 165); color: oklch(0.38 0.10 165); }
.eff-pill--bad { background: oklch(0.95 0.04 30);  color: oklch(0.50 0.13 30); }
.eff-pill--off { background: oklch(0.96 0 0);     color: oklch(0.55 0.01 250); }

.eff-tag {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: middle;
}
.eff-tag--baby { background: oklch(0.93 0.08 200); color: oklch(0.38 0.13 220); }
.eff-tag--many { background: oklch(0.94 0.08 95);  color: oklch(0.38 0.13 90); }

.asa-pill {
  display: inline-flex;
  align-items: baseline;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  white-space: nowrap;
}
.asa-pill strong { font-weight: 700; font-size: 13px; }
.asa-pill small { font-size: 10px; opacity: 0.65; margin-left: 2px; font-weight: 500; }
.asa-pill__sep { opacity: 0.5; margin: 0 1px; font-weight: 500; }
.asa-pill--ok   { background: oklch(0.95 0.05 165); color: oklch(0.35 0.10 165); }
.asa-pill--warn { background: oklch(0.95 0.07 70);  color: oklch(0.42 0.13 70); }
.asa-pill--out  { background: oklch(0.94 0.07 30);  color: oklch(0.45 0.16 30); }

/* ATD — saisie sur salaire (pill compact) */
.eff-pill--atd {
  background: oklch(0.95 0.05 285);
  color: oklch(0.35 0.13 285);
  font-weight: 600;
}

/* Enfants — chips de dates de naissance */
.enfants-dobs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-left: 6px;
  vertical-align: middle;
}
.enfants-dob {
  display: inline-block;
  padding: 1px 6px;
  background: oklch(0.96 0.01 250);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.enfants-dob--baby {
  background: oklch(0.94 0.06 95);
  border-color: oklch(0.85 0.10 95);
  color: oklch(0.38 0.13 90);
  font-weight: 600;
}

/* Modal — séparateur de section */
.modal__sep {
  margin: 14px 0 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.modal__sep:first-child { margin-top: 0; border-top: 0; padding-top: 0; }

/* Enfants edit */
.enfants-edit {
  display: flex; flex-direction: column; gap: 8px;
}
.enfants-edit__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
}
.enfants-edit__row input[type="date"] {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
}
.enfants-edit__age { font-size: 12px; }

/* ASA dialog — résumé + calendrier */
.asa-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 8px;
}
.asa-summary__item {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 2px;
}
.asa-summary__lbl {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-muted); font-weight: 600;
}
.asa-summary__val { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.asa-summary__val--ok   { color: oklch(0.45 0.13 165); }
.asa-summary__val--warn { color: oklch(0.55 0.16 70); }
.asa-summary__val--bad  { color: oklch(0.55 0.20 30); }

.asa-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.asa-day {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 6px 2px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  transition: all .1s;
  min-height: 38px;
}
.asa-day:hover:not(:disabled) {
  background: oklch(0.96 0.04 165);
  border-color: oklch(0.65 0.13 165);
}
.asa-day__num { font-size: 13px; font-weight: 600; }
.asa-day__wd { font-size: 9px; color: var(--text-muted); text-transform: uppercase; }
.asa-day--off {
  background: oklch(0.97 0 0);
  color: oklch(0.65 0.01 250);
  cursor: not-allowed;
}
.asa-day--off .asa-day__wd { opacity: 0.6; }
.asa-day--deja {
  background: oklch(0.92 0.06 60);
  border-color: oklch(0.75 0.12 60);
  color: oklch(0.40 0.13 60);
  cursor: not-allowed;
  font-weight: 700;
}
.asa-day--sel {
  background: oklch(0.55 0.18 165);
  border-color: oklch(0.45 0.20 165);
  color: white;
  font-weight: 700;
}
.asa-day--sel .asa-day__wd { color: rgba(255,255,255,0.8); }
.asa-day:disabled { opacity: 0.55; }

/* === Safety banner (Planning hebdo) === */
.safety-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 16px 12px 16px;
  padding: 10px 14px;
  background: oklch(0.97 0.04 60);
  border: 1px solid oklch(0.85 0.10 60);
  border-left: 3px solid oklch(0.65 0.18 50);
  border-radius: 8px;
  color: oklch(0.35 0.10 50);
  font-size: 12.5px;
}
.safety-banner__icon {
  font-size: 18px;
  line-height: 1;
  margin-top: 1px;
  color: oklch(0.55 0.20 50);
}
.safety-banner strong { color: oklch(0.30 0.12 50); font-weight: 700; }
.safety-banner__list {
  margin: 4px 0 0;
  padding-left: 18px;
  line-height: 1.6;
}
.safety-banner__list li { margin-bottom: 1px; }



/* ===== ATD column dans EVP ===== */
.evp-grid .col-atd {
  min-width: 80px;
  width: 80px;
  text-align: center;
  background: oklch(0.97 0.02 285);
  border-left: 1px solid var(--border);
  font-size: 11px;
  padding: 2px 4px !important;
}
.evp-grid th.col-atd {
  background: oklch(0.93 0.04 285);
  color: oklch(0.35 0.13 285);
  font-weight: 600;
}
.atd-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  height: 100%;
  min-height: 28px;
  padding: 4px 6px;
  border: 1px dashed transparent;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  color: var(--text-muted);
  transition: all 0.12s;
}
.atd-cell:hover {
  background: oklch(0.95 0.05 285);
  border-color: oklch(0.75 0.10 285);
}
.atd-cell--off {
  color: oklch(0.55 0.10 285);
  background: oklch(0.98 0.01 285);
  border-color: oklch(0.85 0.05 285);
}
.atd-cell--off .atd-cell__plus { font-size: 16px; font-weight: 600; }
.atd-cell--off:hover { color: oklch(0.35 0.13 285); }
.atd-cell--active {
  background: oklch(0.95 0.05 285);
  color: oklch(0.35 0.13 285);
  font-weight: 600;
  border-color: oklch(0.80 0.08 285);
}
.atd-cell__icon { font-size: 12px; }
.atd-cell__amount { font-weight: 600; }
.atd-cell__badge {
  background: oklch(0.45 0.16 285);
  color: white;
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 6px;
  font-weight: 600;
}




/* Pied couverture — version discrète */
.week-grid__foot-name { background: oklch(0.985 0.003 250); border-top: 1px solid var(--border); display:flex; align-items:center; justify-content:space-between; padding:1px 10px; font-size:10px; line-height:1.2; min-height:0; color: var(--text-muted); text-transform:uppercase; letter-spacing:0.4px; }
.week-grid__foot-name .foot-title { font-weight: 600; }
.week-grid__foot-name .foot-hide { background:none; border:none; color: var(--text-faint); font-size:14px; cursor:pointer; padding:0 4px; line-height:1; border-radius:4px; }
.week-grid__foot-name .foot-hide:hover { background: var(--bg); color: var(--text); }
.week-grid__foot { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 1px 6px; border-top: 1px solid var(--border); font-size: 10px; line-height: 1.2; min-height: 0; }
.week-grid__foot .foot-pros strong { font-size: 11px; font-weight: 700; }
/* Code couleur sur le compteur de pros prévus au planning */
.week-grid__foot .foot-pros.tier-2 { background: oklch(0.93 0.08 25); color: oklch(0.36 0.18 25); border-radius: 4px; padding: 0 5px; font-weight: 600; }
.week-grid__foot .foot-pros.tier-3 { background: oklch(0.94 0.06 75); color: oklch(0.38 0.14 75); border-radius: 4px; padding: 0 5px; font-weight: 600; }
.week-grid__foot .foot-pros.tier-4 { background: oklch(0.93 0.05 165); color: oklch(0.32 0.10 165); border-radius: 4px; padding: 0 5px; font-weight: 600; }
.week-grid__foot .foot-sep { color: var(--text-faint); }
.week-grid__foot .foot-kids { color: var(--text-muted); }
.week-grid__foot.foot-ok { color: oklch(0.40 0.10 165); }
.week-grid__foot.foot-warn { color: oklch(0.45 0.12 75); }
.week-grid__foot.foot-bad { color: oklch(0.45 0.18 25); font-weight: 600; }
.week-grid__foot-total { background: oklch(0.985 0.003 250); border-top: 1px solid var(--border); }
.week-grid__foot-show { display:flex; justify-content:center; padding:6px; border-top: 1px dashed var(--border); background: oklch(0.99 0.002 250); }
.week-grid__foot-show .foot-show-btn { background:none; border:none; color: var(--text-faint); font-size:11px; cursor:pointer; padding:2px 8px; }
.week-grid__foot-show .foot-show-btn:hover { color: var(--accent-text); }

/* Couleur de l'en-tête du jour selon nombre de pros prévus au planning */
.week-grid__cell--head.head-cov-tier-2 { background: oklch(0.93 0.08 25); color: oklch(0.36 0.18 25); font-weight: 700; }
.week-grid__cell--head.head-cov-tier-3 { background: oklch(0.94 0.06 75); color: oklch(0.38 0.14 75); font-weight: 600; }
.week-grid__cell--head.head-cov-tier-4 { /* 4+ pros : pas de fond, en-tête neutre */ }

/* Chips de légende pour le code couleur jour */
.head-tier-chip { display:inline-flex; align-items:center; justify-content:center; min-width: 26px; padding: 1px 6px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.head-tier-chip--2 { background: oklch(0.93 0.08 25); color: oklch(0.36 0.18 25); }
.head-tier-chip--3 { background: oklch(0.94 0.06 75); color: oklch(0.38 0.14 75); }
.head-tier-chip--4 { background: oklch(0.94 0.04 220); color: oklch(0.35 0.10 220); border: 1px solid var(--border); }
.head-tier-chip--5 { background: oklch(0.94 0.06 145); color: oklch(0.35 0.12 145); }

.renf-empty--btn, .renf-tag--btn {
  display: inline-block; cursor: pointer; border: none; font: inherit;
  padding: 2px 6px; border-radius: 4px; transition: background 0.12s;
}
.renf-empty--btn { background: transparent; color: var(--text-muted); border: 1px dashed var(--border); font-size: 11px; margin-top: 2px; }
.renf-empty--btn:hover { background: var(--accent-soft); color: var(--accent-text); border-color: var(--accent); }
.renf-tag--btn { background: var(--accent-soft); color: var(--accent-text); font-size: 11px; font-weight: 500; margin-top: 2px; }
.renf-tag--btn:hover { background: var(--accent); color: white; }
.abs-sched--struck { text-decoration: line-through; opacity: 0.55; }

.week-grid__cell--renfort-out {
  background: oklch(0.96 0.04 60);
  border: 1px dashed oklch(0.7 0.15 60);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 6px;
  font-size: 11px;
  color: oklch(0.35 0.1 60);
}
.renfort-out__tag {
  font-weight: 700;
  font-size: 11px;
  color: oklch(0.4 0.15 60);
}
.renfort-out__hours {
  font-weight: 600;
  font-size: 12px;
}
.renfort-out__return {
  margin-top: 2px;
  padding-top: 3px;
  border-top: 1px dashed oklch(0.85 0.05 60);
  font-size: 10px;
  font-weight: 600;
  color: var(--text);
}
.renfort-out__return-sub {
  font-weight: 400;
  font-size: 9px;
  color: var(--text-muted);
}

.renfort-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: oklch(0.85 0.10 60);
  color: oklch(0.30 0.18 60);
  font-size: 12px;
  font-weight: 700;
  cursor: help;
  margin-left: 4px;
  line-height: 1;
}
.renfort-info:hover { background: oklch(0.78 0.14 60); }

.renf-sched {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-text);
  margin-top: 2px;
}

.abs-sched--struck {
  text-decoration: line-through;
  opacity: 0.55;
}

.abs-sched { font-size: 12px; }
.abs-sched--pause { font-size: 10px; }


/* Notes button on ProCard */
.procard__btn--notes {
  position: relative;
  padding: 4px 8px !important;
  font-size: 14px !important;
}
.procard__btn--clarif {
  background: #fef2c7;
  border-color: #d97706;
  color: #92400e;
  animation: pulseClarif 1.6s ease-in-out infinite;
}
@keyframes pulseClarif {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.4); }
  50% { box-shadow: 0 0 0 4px rgba(217, 119, 6, 0); }
}
.procard__btn-count {
  display: inline-block;
  margin-left: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-soft);
}
.procard__btn-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #dc2626;
  color: white;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  width: 14px;
  height: 14px;
  line-height: 14px;
  text-align: center;
}



/* ===== Disciplinary v2 — calmer, more human ===== */
.disc2 {
  padding: 28px 36px 60px;
  max-width: 1280px;
  margin: 0 auto;
  background: var(--bg);
}

/* Hero */
.disc2__hero {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.disc2__hero-left { flex: 1; min-width: 0; }
.disc2__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-soft);
  margin-bottom: 8px;
}
.disc2__eyebrow--confid {
  color: #b91c1c;
  background: #fef2f2;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #fecaca;
}
.disc2__creche-dot {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
}
.disc2__title {
  font-size: 30px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px 0;
  letter-spacing: -0.3px;
}
.disc2__sub {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.5;
  max-width: 560px;
}
.disc2__alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 18px;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  max-width: 320px;
}
.disc2__alert-icon { font-size: 22px; line-height: 1; }
.disc2__alert strong { color: #92400e; }
.disc2__alert-sub {
  font-size: 12px;
  color: #92400e;
  opacity: 0.85;
  margin-top: 2px;
}

/* Tabs */
.disc2__tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: var(--bg-soft);
  padding: 4px;
  border-radius: 10px;
  width: fit-content;
}
.disc2__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: none;
  background: transparent;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.15s;
}
.disc2__tab:hover { color: var(--text); }
.disc2__tab--active {
  background: white;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.disc2__tab-icon { font-size: 15px; }
.disc2__tab-count {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-soft);
}
.disc2__tab--active .disc2__tab-count {
  background: var(--accent-soft);
  color: var(--accent-text);
}

/* Pile */
.disc2__pile {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.disc2__empty {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border: 1px dashed var(--line);
  border-radius: 12px;
}
.disc2__empty-icon { font-size: 40px; margin-bottom: 12px; }
.disc2__empty-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.disc2__empty-sub { font-size: 13px; color: var(--text-soft); }

/* Card */
.disc2-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 18px;
  align-items: stretch;
  padding: 18px 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.disc2-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border-color: var(--line-soft, #e5e7eb);
}
.disc2-card--late {
  border-left: 3px solid #dc2626;
  padding-left: 18px;
}
.disc2-card--recidive {
  border-left: 3px solid #d97706;
  padding-left: 18px;
}
.disc2-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  color: #4338ca;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  align-self: flex-start;
}
.disc2-card__body { min-width: 0; }
.disc2-card__top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.disc2-card__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.disc2-card__creche {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  background: white;
  border: 1px solid;
  border-radius: 999px;
}
.disc2-card__creche-dot {
  width: 6px; height: 6px; border-radius: 50%;
}
.disc2-card__cat {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}
.disc2-card__flag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}
.disc2-card__flag--red { background: #fef2f2; color: #b91c1c; }
.disc2-card__flag--amber { background: #fef3c7; color: #92400e; }
.disc2-card__text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  margin: 0 0 8px;
  text-wrap: pretty;
}
.disc2-card__foot {
  font-size: 12px;
  color: var(--text-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.disc2-card__age { font-weight: 600; color: var(--text-soft); }
.disc2-card__cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  align-self: center;
  min-width: 130px;
}
.disc2-status {
  display: inline-block;
  padding: 6px 12px;
  background: var(--bg-soft);
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-soft);
  text-align: center;
}

/* Buttons */
.disc2-btn {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
  font-family: inherit;
}
.disc2-btn--primary {
  background: var(--accent);
  color: white;
}
.disc2-btn--primary:hover { background: var(--accent-hover); }
.disc2-btn--ghost {
  background: white;
  color: var(--text);
  border-color: var(--line);
}
.disc2-btn--ghost:hover { background: var(--bg-soft); }
.disc2-btn--sm { padding: 5px 10px; font-size: 12.5px; }

/* Settings — Fermetures éditables */
.closures-table td { vertical-align: middle; }
.closures-add {
  margin-top: 14px;
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: oklch(0.985 0.003 70);
}
.closures-add__title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.closures-add__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.closures-add__row input[type="date"],
.closures-add__row input[type="text"],
.closures-add__row select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  background: white;
}
.closures-add__row input[type="text"] { flex: 1; min-width: 180px; }

/* Filters */
.disc2__filters {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.disc2__filter {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 13px;
  background: white;
  color: var(--text);
  font-family: inherit;
}
.disc2__filter-info {
  font-size: 12.5px;
  color: var(--text-soft);
  margin-left: auto;
}

/* Table */
.disc2__table-wrap {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.disc2__table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.disc2__table th {
  background: var(--bg-soft);
  padding: 11px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--text-soft);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 1px solid var(--line);
}
.disc2__table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.disc2__table tr:last-child td { border-bottom: none; }
.disc2__table tr:hover td { background: rgba(0,0,0,0.015); }
.disc2__td-date { white-space: nowrap; color: var(--text-soft); font-feature-settings: "tnum"; }
.disc2__td-text { max-width: 240px; color: var(--text-soft); }
.disc2__sanction-pill { white-space: normal; line-height: 1.25; max-width: 200px; }
.disc2__table th:last-child, .disc2__table td:last-child { width: 1%; white-space: nowrap; }

/* Toutes les notes — scroll horizontal explicite */
.disc2__table-wrap { overflow-x: auto; }
.disc2__table { min-width: 980px; }
.disc2__table-wrap::-webkit-scrollbar { height: 12px; }
.disc2__table-wrap::-webkit-scrollbar-track { background: var(--bg-soft); border-radius: 0 0 10px 10px; }
.disc2__table-wrap::-webkit-scrollbar-thumb { background: oklch(0.78 0.02 250); border-radius: 8px; border: 2px solid var(--bg-soft); }
.disc2__table-wrap::-webkit-scrollbar-thumb:hover { background: oklch(0.65 0.04 250); }

/* Modal Notes & évolution — mise en forme */
.modal--notes-pro {
  width: 760px;
  max-width: 96vw;
  max-height: 90vh;
}
.modal--notes-pro .modal__head {
  padding: 18px 24px 16px;
  background: linear-gradient(180deg, oklch(0.985 0.005 250), var(--bg-elev));
}
.modal--notes-pro .modal__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.modal--notes-pro .modal__title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}
.modal__sub-emp {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-soft);
  margin-left: 4px;
}
.notes-pro__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px 24px 4px;
  background: var(--bg-elev);
}
.notes-pro__stat {
  padding: 12px 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.notes-pro__stat-val {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  font-feature-settings: "tnum";
  line-height: 1;
}
.notes-pro__stat-lbl {
  font-size: 11.5px;
  color: var(--text-soft);
  line-height: 1.3;
}
.notes-pro__stat--pos { background: oklch(0.97 0.04 145); border-color: oklch(0.85 0.08 145); }
.notes-pro__stat--pos .notes-pro__stat-val { color: oklch(0.42 0.14 145); }
.notes-pro__stat--neg { background: oklch(0.97 0.03 25); border-color: oklch(0.88 0.08 25); }
.notes-pro__stat--neg .notes-pro__stat-val { color: oklch(0.5 0.15 25); }

.modal__body--notes {
  padding: 16px 24px 20px;
  background: var(--bg-elev);
}
.modal__foot--notes {
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}
.modal__foot-info {
  font-size: 11.5px;
  color: var(--text-soft);
  line-height: 1.4;
  flex: 1;
  min-width: 0;
}

.note-banner {
  margin: 14px 24px 0;
  padding: 11px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.note-banner--warn {
  background: oklch(0.96 0.05 75);
  border: 1px solid oklch(0.85 0.1 75);
  color: oklch(0.4 0.12 60);
}
.note-banner > span:first-child {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: oklch(0.7 0.15 60);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.note-banner > div { flex: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }

/* =========================================================================
   Notes Timeline — historique chronologique (RT & RH)
   ========================================================================= */
.notes-tl {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.notes-tl--empty {
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  background: white;
  border: 1px dashed var(--border);
  border-radius: 10px;
}
.notes-tl__empty-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--text-faint);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 12px;
}
.notes-tl__empty-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.notes-tl__empty-sub {
  font-size: 12.5px;
  color: var(--text-soft);
  line-height: 1.5;
  max-width: 360px;
}

.notes-tl__item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  position: relative;
}
.notes-tl__item:not(:last-child) .notes-tl__rail::after {
  content: '';
  position: absolute;
  top: 28px;
  bottom: -14px;
  left: 13px;
  width: 2px;
  background: var(--border);
}
.notes-tl__item--prescribed { opacity: 0.55; }
.notes-tl__rail {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 4px;
}
.notes-tl__dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 13px;
  flex-shrink: 0;
  z-index: 1;
  box-shadow: 0 0 0 3px var(--bg-elev);
}
.notes-tl__card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.notes-tl__card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.notes-tl__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.notes-tl__head-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.notes-tl__cat {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.notes-tl__date {
  font-size: 11.5px;
  color: var(--text-faint);
  font-feature-settings: "tnum";
}
.notes-tl__badge {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.notes-tl__badge--prescribed { background: var(--bg-soft); color: var(--text-faint); }
.notes-tl__badge--late { background: oklch(0.93 0.08 25); color: oklch(0.4 0.18 25); }
.notes-tl__status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.notes-tl__body {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
  white-space: pre-wrap;
}
.notes-tl__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--text-soft);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}
.notes-tl__rh-ask {
  margin-top: 10px;
  padding: 8px 12px;
  background: oklch(0.97 0.04 75);
  border-left: 3px solid oklch(0.7 0.15 60);
  border-radius: 4px;
  font-size: 12.5px;
  color: oklch(0.4 0.14 60);
}
.notes-tl__sanction {
  margin-top: 10px;
  padding: 10px 12px;
  background: oklch(0.985 0.005 25);
  border: 1px solid oklch(0.9 0.04 25);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sanction-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
  width: fit-content;
}
.notes-tl__sanction-date {
  font-size: 11px;
  color: var(--text-faint);
}
.notes-tl__sanction-comment {
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.5;
  white-space: pre-wrap;
}
.notes-tl__rh-internal {
  margin-top: 4px;
  padding: 6px 10px;
  background: oklch(0.97 0.025 25);
  border-radius: 6px;
  font-size: 11.5px;
  color: oklch(0.4 0.12 25);
  line-height: 1.4;
}
.disc2__row--prescribed { opacity: 0.5; }
.disc2__cat-pill, .disc2__status-pill, .disc2__sanction-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.disc2__creche-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: white;
}

/* Par pro */
.disc2__pros {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.disc2__pro-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
  font-family: inherit;
}
.disc2__pro-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.disc2__pro-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}
.disc2__pro-info { min-width: 0; }
.disc2__pro-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.disc2__pro-stats {
  grid-column: 1 / -1;
  display: flex;
  gap: 14px;
  padding-top: 10px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-soft);
}
.disc2__pro-stats strong { color: var(--text); font-size: 14px; }
.disc2__pro-last { grid-column: 1 / -1; }

/* === Validation congés (Siège / RO) === */
.lv { padding: 24px 32px; max-width: 1400px; }
.lv__hero {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line);
}
.lv__eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  background: oklch(0.96 0.04 75); color: oklch(0.40 0.18 75);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 8px;
}
.lv__title { font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.lv__sub { font-size: 13px; color: var(--text-soft); }
.lv__alert {
  display: flex; gap: 12px; align-items: flex-start;
  background: oklch(0.96 0.06 30); border: 1px solid oklch(0.85 0.10 30);
  padding: 12px 16px; border-radius: 10px; max-width: 380px;
}
.lv__alert-icon { font-size: 18px; }
.lv__alert-sub { font-size: 12px; color: var(--text-soft); margin-top: 2px; }

.lv__toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 16px; flex-wrap: wrap; }
.lv__tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-weekend); border-radius: 10px; }
.lv__tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 7px; border: none; background: transparent;
  font-size: 13px; font-weight: 500; color: var(--text-soft); cursor: pointer;
}
.lv__tab--active { background: white; color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.lv__tab-count {
  padding: 1px 8px; border-radius: 999px; background: var(--bg-weekend);
  font-size: 11px; font-weight: 600; color: var(--text-soft);
}
.lv__tab--active .lv__tab-count { background: var(--accent-soft); color: var(--accent-text); }
.lv__filter { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-soft); }
.lv__filter select { border: 1px solid var(--line); padding: 5px 8px; border-radius: 6px; }

.lv__empty { text-align: center; padding: 60px 20px; color: var(--text-soft); }
.lv__empty-icon { font-size: 36px; margin-bottom: 8px; }

.lv__table-wrap { background: white; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.lv__table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lv__table thead th {
  text-align: left; padding: 10px 12px; background: var(--bg-weekend);
  font-weight: 600; color: var(--text-soft); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
}
.lv__table tbody td { padding: 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.lv__table tbody tr:hover { background: oklch(0.99 0.01 75); }
.lv__row--urgent { background: oklch(0.985 0.025 30); }
.lv__row--urgent:hover { background: oklch(0.97 0.04 30); }

.lv__creche-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.lv__chip-rt { display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: var(--accent-soft); color: var(--accent-text); }
.lv__code-chip {
  display: inline-block; padding: 2px 8px; border-radius: 5px;
  font-weight: 700; font-size: 11px;
}
.lv__badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 5px; font-size: 12px; font-weight: 600;
}
.lv__badge--pending { background: oklch(0.95 0.06 75); color: oklch(0.40 0.18 75); }
.lv__badge--ok { background: oklch(0.94 0.06 145); color: oklch(0.36 0.16 145); }
.lv__badge--ko { background: oklch(0.94 0.06 25); color: oklch(0.40 0.20 25); }
.lv__badge--counter { background: oklch(0.94 0.06 250); color: oklch(0.40 0.18 250); }
.lv__badge-urgent { font-weight: 700; color: oklch(0.45 0.22 25); }

.lv__open-btn {
  border: 1px solid var(--line); background: white; padding: 5px 12px; border-radius: 6px;
  font-size: 12px; font-weight: 600; cursor: pointer;
}
.lv__open-btn:hover { background: var(--bg-weekend); }

.lv__modal-bg {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center; z-index: 100;
}
.lv__modal { background: white; border-radius: 12px; width: 600px; max-width: 95vw; max-height: 90vh; overflow: auto; }
.lv__modal-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.lv__modal-eyebrow { font-size: 11px; font-weight: 600; color: var(--text-soft); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 4px; }
.lv__modal-head h2 { margin: 0 0 6px; font-size: 19px; }
.lv__modal-sub { font-size: 13px; color: var(--text-soft); }
.lv__close { background: transparent; border: none; font-size: 18px; cursor: pointer; color: var(--text-soft); padding: 4px 8px; }
.lv__modal-body { padding: 18px 24px; display: flex; flex-direction: column; gap: 10px; }
.lv__field { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; }
.lv__field-k { color: var(--text-soft); }
.lv__motif { padding: 10px 12px; border-radius: 8px; font-size: 13px; }
.lv__motif--ko { background: oklch(0.96 0.04 25); color: oklch(0.30 0.18 25); }
.lv__motif--counter { background: oklch(0.96 0.04 250); color: oklch(0.30 0.16 250); }
.lv__history { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.lv__history-title { font-size: 11px; font-weight: 600; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.lv__history-line { display: flex; gap: 8px; font-size: 12px; padding: 4px 0; align-items: baseline; }
.lv__history-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-soft); flex-shrink: 0; transform: translateY(-2px); }
.lv__history-when { color: var(--text-soft); min-width: 60px; }
.lv__history-who { font-weight: 600; }
.lv__history-act { color: var(--text-soft); }
.lv__history-note { font-style: italic; color: var(--text-soft); }
.lv__history-toggle { margin-top: 10px; }
.lv__history-toggle > summary { cursor: pointer; font-size: 11px; font-weight: 600; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.04em; padding: 4px 0; user-select: none; list-style: none; }
.lv__history-toggle > summary::-webkit-details-marker { display: none; }
.lv__history-toggle > summary::before { content: '▸ '; display: inline-block; transition: transform 0.15s; }
.lv__history-toggle[open] > summary::before { transform: rotate(90deg); }
.lv__history-toggle .lv__history { margin-top: 4px; padding-top: 8px; }
.lv__code-mix { display: inline-flex; gap: 4px; align-items: center; }
.lv__cp-monthrow { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.lv__cp-monthrow select { padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; }
.lv__cp-count { font-size: 12px; color: var(--text-soft); }
.lv__cp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 12px; }
.lv__cp-head { font-size: 11px; font-weight: 600; color: var(--text-muted); text-align: center; padding: 4px 0 2px; letter-spacing: 0.04em; }
.lv__cp-pad { background: transparent; }
.lv__cp-day { padding: 6px 4px 4px; border: 1px solid var(--line); border-radius: 4px; background: white; cursor: pointer; font-size: 13px; transition: all 0.1s; display: flex; flex-direction: column; align-items: center; gap: 1px; line-height: 1.1; }
.lv__cp-day-n { font-weight: 600; }
.lv__cp-day-dow { font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.lv__cp-day--sel .lv__cp-day-dow { color: oklch(0.92 0.04 250); }
.lv__cp-day:hover:not(:disabled) { background: oklch(0.96 0.04 250); border-color: oklch(0.70 0.14 250); }
.lv__cp-day--sel { background: oklch(0.55 0.18 250) !important; color: white; border-color: oklch(0.45 0.18 250) !important; font-weight: 600; }
.lv__cp-day--off { background: var(--bg-weekend); color: var(--text-soft); cursor: not-allowed; opacity: 0.5; }

.lv__modal-foot { padding: 16px 24px; border-top: 1px solid var(--line); background: var(--bg-weekend); }
.lv__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.lv__btn { padding: 8px 14px; border-radius: 7px; border: none; font-weight: 600; font-size: 13px; cursor: pointer; }
.lv__btn--ok { background: oklch(0.45 0.16 145); color: white; }
.lv__btn--ko { background: oklch(0.50 0.20 25); color: white; }
.lv__btn--counter { background: oklch(0.45 0.18 250); color: white; }
.lv__btn:disabled { opacity: 0.5; cursor: not-allowed; }
.lv__btn-ghost { background: transparent; border: 1px solid var(--line); padding: 8px 14px; border-radius: 7px; font-weight: 500; font-size: 13px; cursor: pointer; }
.lv__decision { display: flex; flex-direction: column; gap: 8px; }
.lv__decision label { font-size: 12px; font-weight: 600; color: var(--text-soft); }
.lv__decision textarea, .lv__decision input[type="text"] {
  border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px;
  font-family: inherit; font-size: 13px; resize: vertical;
}
.lv__decision-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.lv__req { color: oklch(0.50 0.20 25); }

/* Stats row + cards (Mes demandes RT) */
.lv__stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.lv__stat { background: white; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.lv__stat-n { font-size: 24px; font-weight: 700; }
.lv__stat span:last-child { font-size: 12px; color: var(--text-soft); }
.lv__stat--counter { border-left: 3px solid oklch(0.50 0.18 250); }
.lv__stat--ko { border-left: 3px solid oklch(0.55 0.20 25); }
.lv__stat--pending { border-left: 3px solid oklch(0.55 0.18 75); }
.lv__stat--ok { border-left: 3px solid oklch(0.50 0.16 145); }

.lv__cards { display: flex; flex-direction: column; gap: 12px; }
.lv__card { background: white; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.lv__card--counter-proposed { border-left: 4px solid oklch(0.50 0.18 250); }
.lv__card--rejected { border-left: 4px solid oklch(0.55 0.20 25); }
.lv__card--pending { border-left: 4px solid oklch(0.55 0.18 75); }
.lv__card--validated { border-left: 4px solid oklch(0.50 0.16 145); opacity: 0.85; }
.lv__card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.lv__card-title { font-size: 15px; }
.lv__card-meta { font-size: 13px; color: var(--text-soft); margin-top: 2px; }
.lv__card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.lv__card-when { font-size: 11px; color: var(--text-faint); }

/* Sidebar item badge (counter-proposed alert pour RT) */
.sidebar__year-nav { display: inline-flex; align-items: center; gap: 4px; }
.sidebar__year-btn {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-on-dark, #fff); width: 18px; height: 18px; border-radius: 4px;
  font-size: 11px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  padding: 0; line-height: 1;
}
.sidebar__year-btn:hover:not(:disabled) { background: rgba(255,255,255,0.12); }
.sidebar__year-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.month-nav__btn:disabled { opacity: 0.3; cursor: not-allowed; }
.month-nav__btn:disabled:hover { background: transparent; color: var(--text-muted); }
.sidebar__year-cur { font-size: 11px; font-weight: 600; color: var(--text-on-dark, #fff); min-width: 30px; text-align: center; }
.sidebar__item-badge {
  margin-left: auto;
  background: oklch(0.50 0.18 250);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
}

}

/* =========================================================================
   Note Modal v2 — détail de la note (RT et RH)
   ========================================================================= */
.modal--note-v2 { width: 720px; max-width: 94vw; }
.modal--note-wide { width: 1080px; max-width: 96vw; }
.modal--note-v2 .note2__head {
  position: relative;
  padding: 18px 22px 16px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  background: linear-gradient(180deg, oklch(0.985 0.005 250), var(--bg-elev));
}
.modal--note-rh .note2__head {
  background: linear-gradient(180deg, oklch(0.97 0.015 25), var(--bg-elev));
}
.note2__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.modal--note-rh .note2__eyebrow { color: oklch(0.5 0.15 25); }
.note2__emp { display: flex; gap: 12px; align-items: center; }
.note2__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}
.note2__emp-name { font-weight: 600; font-size: 16px; color: var(--text); }
.note2__emp-meta { font-size: 12px; color: var(--text-soft); margin-top: 2px; }
.note2__head-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  padding-right: 28px;
}
.note2__status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.note2__head-meta {
  font-size: 11px;
  color: var(--text-faint);
  display: flex;
  gap: 4px;
}
.note2__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: white;
  font-size: 18px;
  line-height: 1;
  color: var(--text-soft);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.12s;
}
.note2__close:hover { background: var(--bg-soft); color: var(--text); border-color: var(--border-strong); }

/* Catégorie : grille de chips polie */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.cat-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  line-height: 1.2;
  transition: all 0.12s;
}
.cat-chip:hover { border-color: var(--border-strong); background: var(--bg-soft); }
.cat-chip--active { box-shadow: 0 0 0 2px var(--accent) inset; }
.cat-chip__icon {
  font-size: 14px;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
  line-height: 1;
}
.cat-chip__label { flex: 1; min-width: 0; }

/* Sanction grid : même look */
.sanction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.sanction-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  line-height: 1.2;
  transition: all 0.12s;
}
.sanction-chip:hover { border-color: var(--border-strong); background: var(--bg-soft); }
.sanction-chip--active { box-shadow: 0 0 0 2px var(--accent) inset; }
.sanction-chip__sev {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--bg-soft);
  color: var(--text-soft);
}
.sanction-chip__sev[data-sev="0"] { background: oklch(0.93 0.03 145); color: oklch(0.4 0.12 145); }
.sanction-chip__sev[data-sev="1"] { background: oklch(0.92 0.05 230); color: oklch(0.4 0.14 230); }
.sanction-chip__sev[data-sev="2"] { background: oklch(0.92 0.06 60);  color: oklch(0.42 0.14 60); }
.sanction-chip__sev[data-sev="3"] { background: oklch(0.9 0.08 30);   color: oklch(0.42 0.16 30); }
.sanction-chip__sev[data-sev="4"] { background: oklch(0.85 0.12 25);  color: white; }
.sanction-chip__sev[data-sev="5"] { background: oklch(0.7 0.18 22);   color: white; }

/* Forms */
.form-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 2px;
}
.form-textarea, .form-input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: white;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--text);
  line-height: 1.5;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.form-textarea { min-height: 110px; resize: vertical; }
.form-textarea:focus, .form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px oklch(0.92 0.04 250);
}

.form-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Attachments */
.attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 38px;
  align-items: center;
}
.attachment-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text);
}
.attachment-pill--readonly { background: oklch(0.97 0.012 250); }
.attachment-pill__close {
  margin-left: 2px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  color: var(--text-faint);
  padding: 0 2px;
}
.attachment-pill__close:hover { color: oklch(0.5 0.18 25); }
.attachment-pill__tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-left: 2px;
}
.attachments__empty {
  font-size: 12px;
  color: var(--text-faint);
  font-style: italic;
}

.note2__body {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.note2__body--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
}
.note2__body--split .note2__col:first-child {
  padding: 18px 22px;
  border-right: 1px solid var(--border);
  background: var(--bg-elev);
}
.note2__body--split .note2__col--rh {
  padding: 18px 22px;
  background: oklch(0.985 0.012 25);
}

.note2__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.note2__col-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
  white-space: nowrap;
}
.note2__col-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: oklch(0.92 0.01 250);
  color: var(--text-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.note2__col-num--rh {
  background: oklch(0.85 0.12 25);
  color: white;
}
.note2__col-title--rh { color: oklch(0.4 0.15 25); }
.note2__lock {
  margin-left: auto;
  font-size: 10px;
  font-weight: 500;
  color: oklch(0.5 0.15 25);
  background: oklch(0.95 0.04 25);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid oklch(0.85 0.08 25);
}

.note2__field { display: flex; flex-direction: column; gap: 6px; }
.note2__field--row { display: flex; flex-direction: row; gap: 10px; align-items: flex-end; }
.form-label__hint {
  font-weight: 400;
  font-size: 10px;
  color: var(--text-faint);
  margin-left: 6px;
}

.note2__readonly-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  width: fit-content;
}
.note2__readonly-text {
  padding: 12px 14px;
  background: oklch(0.985 0.003 250);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
  white-space: pre-wrap;
}
.note2__autolink {
  padding: 8px 12px;
  background: oklch(0.96 0.025 250);
  border-left: 3px solid oklch(0.6 0.15 250);
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-soft);
}
.note2__autolink--mep {
  background: oklch(0.96 0.04 25);
  border-left-color: oklch(0.55 0.18 25);
}

.note2__clarif-box {
  background: oklch(0.97 0.03 80);
  border: 1px solid oklch(0.88 0.06 80);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Decision card (RH-view) */
.note2__decision-card {
  border: 2px solid;
  border-radius: 10px;
  overflow: hidden;
}
.note2__decision-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: white;
}
.note2__decision-sev {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 13px;
}
.note2__decision-label { font-weight: 600; font-size: 14px; }
.note2__decision-date { font-size: 11px; opacity: 0.9; }
.note2__decision-body {
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  background: var(--bg-elev);
}
.note2__decision-meta {
  padding: 8px 14px;
  font-size: 12px;
  color: var(--text-soft);
  background: oklch(0.985 0.003 250);
  border-top: 1px solid var(--border);
}
.note2__decision-internal {
  padding: 10px 14px;
  background: oklch(0.96 0.025 25);
  border-top: 1px dashed oklch(0.85 0.06 25);
  font-size: 12px;
  color: oklch(0.4 0.12 25);
  line-height: 1.5;
}
.note2__decision-foot {
  padding: 6px 14px;
  font-size: 10px;
  color: var(--text-faint);
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  text-align: right;
}

/* Etat côté RT (lecture seule) */
.note2__state-card {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.note2__state-card--wait { background: oklch(0.97 0.025 250); border-color: oklch(0.85 0.05 250); }
.note2__state-card--ask { background: oklch(0.97 0.04 80); border-color: oklch(0.85 0.08 80); }
.note2__state-card--done { background: oklch(0.96 0.04 145); border-color: oklch(0.82 0.08 145); }
.note2__state-icon { font-size: 24px; line-height: 1; }
.note2__state-title { font-weight: 600; font-size: 14px; color: var(--text); margin-bottom: 4px; }
.note2__state-sub { font-size: 12px; color: var(--text-soft); line-height: 1.5; }
.note2__state-body {
  margin-top: 6px;
  padding: 8px 10px;
  background: var(--bg-elev);
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text);
  border: 1px solid var(--border);
}

.note2__foot {
  background: var(--bg-elev);
  padding: 12px 22px;
}

@media (max-width: 900px) {
  .note2__body--split { grid-template-columns: 1fr; }
  .note2__body--split .note2__col:first-child { border-right: none; border-bottom: 1px solid var(--border); }
  .note2__head { grid-template-columns: 1fr; }
  .note2__head-aside { align-items: flex-start; padding-right: 0; }
}


/* ===== Statistiques RH (onglet Suivi professionnel) ===== */
.stats-rh {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 4px 2px 24px;
}

.stats-rh__scope {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.stats-rh__scope-lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 4px;
}
.stats-rh__scope-btn {
  padding: 6px 12px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-soft);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.stats-rh__scope-btn:hover { background: var(--bg-soft); }
.stats-rh__scope-btn--active {
  background: var(--text);
  color: white;
  border-color: var(--text);
}

/* === KPIs === */
.stats-rh__kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1100px) {
  .stats-rh__kpis { grid-template-columns: repeat(2, 1fr); }
}
.stats-rh__kpi {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 18px 16px;
  position: relative;
  overflow: hidden;
}
.stats-rh__kpi::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent, oklch(0.55 0.18 265));
}
.stats-rh__kpi--pres::before { background: oklch(0.65 0.16 145); }
.stats-rh__kpi--abs::before { background: oklch(0.65 0.18 30); }
.stats-rh__kpi--turn::before { background: oklch(0.60 0.16 280); }
.stats-rh__kpi--notes::before { background: oklch(0.60 0.16 60); }

.stats-rh__kpi-icon {
  position: absolute;
  top: 14px; right: 16px;
  font-size: 22px;
  opacity: 0.20;
}
.stats-rh__kpi-val {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  font-feature-settings: "tnum";
  line-height: 1.1;
  margin-bottom: 4px;
}
.stats-rh__kpi--pres .stats-rh__kpi-val { color: oklch(0.50 0.16 145); }
.stats-rh__kpi--abs .stats-rh__kpi-val { color: oklch(0.55 0.18 30); }
.stats-rh__kpi--turn .stats-rh__kpi-val { color: oklch(0.50 0.16 280); }
.stats-rh__kpi--notes .stats-rh__kpi-val { color: oklch(0.50 0.16 60); }
.stats-rh__kpi-lbl {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 6px;
}
.stats-rh__kpi-sub {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* === Chart card === */
.stats-rh__chart-card,
.stats-rh__creche-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px 22px;
}
.stats-rh__chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.stats-rh__chart-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
.stats-rh__chart-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.stats-rh__leg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-soft);
}
.stats-rh__leg-dot {
  width: 10px; height: 10px;
  border-radius: 2px;
}
.stats-rh__leg-dot--abs { background: oklch(0.65 0.18 30); }
.stats-rh__leg-dot--pres { background: oklch(0.65 0.16 145); }

.stats-rh__chart {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
  height: 220px;
  align-items: end;
  padding-top: 20px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.stats-rh__bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  gap: 6px;
}
.stats-rh__bar-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  position: relative;
}
.stats-rh__bar {
  flex: 1;
  max-width: 18px;
  border-radius: 4px 4px 0 0;
  position: relative;
  min-height: 2px;
  transition: opacity 0.15s;
  cursor: pointer;
}
.stats-rh__bar:hover { opacity: 0.8; }
.stats-rh__bar--abs { background: oklch(0.65 0.18 30); }
.stats-rh__bar--pres { background: oklch(0.78 0.12 145); }
.stats-rh__bar-val {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 600;
  color: oklch(0.50 0.16 30);
  font-feature-settings: "tnum";
  white-space: nowrap;
}
.stats-rh__bar-lbl {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
}

/* === Comparatif par crèche === */
.stats-rh__creche-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.stats-rh__creche {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--bg-soft, oklch(0.99 0 0));
}
.stats-rh__creche-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
}
.stats-rh__creche-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.stats-rh__creche-eff {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}
.stats-rh__creche-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
.stats-rh__creche-row {
  display: grid;
  grid-template-columns: 90px 1fr 50px;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-soft);
}
.stats-rh__creche-row strong {
  text-align: right;
  color: var(--text);
  font-feature-settings: "tnum";
  font-size: 12px;
}
.stats-rh__mini-bar {
  height: 6px;
  background: oklch(0.95 0 0);
  border-radius: 3px;
  overflow: hidden;
}
.stats-rh__mini-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s;
}
.stats-rh__mini-bar-fill--pres { background: oklch(0.65 0.16 145); }
.stats-rh__mini-bar-fill--abs { background: oklch(0.65 0.18 30); }
.stats-rh__mini-bar-fill--turn { background: oklch(0.60 0.16 280); }
.stats-rh__creche-foot {
  font-size: 10px;
  color: var(--text-muted);
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}

.stats-rh__note {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  padding: 10px 14px;
  background: var(--bg-soft, oklch(0.98 0 0));
  border-left: 3px solid var(--border-strong, var(--border));
  border-radius: 4px;
  line-height: 1.5;
}
.stats-rh__note strong {
  font-style: normal;
  color: var(--text-soft);
}

/* === Cloche d'alertes === */
.bell {
  position: relative;
  display: inline-block;
}
.bell__btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: white;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background 0.15s, border-color 0.15s;
}
.bell__btn:hover {
  background: var(--bg-soft, oklch(0.97 0 0));
  border-color: var(--border-strong, var(--border));
}
.bell__btn--has-unread {
  border-color: oklch(0.65 0.18 25);
  background: oklch(0.98 0.04 25);
}
.bell__btn--has-unread:hover {
  background: oklch(0.96 0.06 25);
}
.bell__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: oklch(0.55 0.20 25);
  color: white;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid white;
}
.bell__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 440px;
  max-height: 70vh;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px -8px oklch(0 0 0 / 0.18), 0 4px 12px -4px oklch(0 0 0 / 0.08);
  display: flex;
  flex-direction: column;
  z-index: 100;
  animation: bellSlideIn 0.18s ease-out;
}
@keyframes bellSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.bell__head {
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.bell__head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.bell__sub {
  font-size: 12px;
  color: var(--text-soft);
}
.bell__head-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}
.bell__filter {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  font-size: 11px;
}
.bell__filter button {
  border: none;
  background: white;
  padding: 4px 10px;
  cursor: pointer;
  color: var(--text-soft);
  font-weight: 500;
}
.bell__filter button.is-on {
  background: var(--text);
  color: white;
}
.bell__mark {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 11px;
  color: var(--text-soft);
  padding: 2px 4px;
}
.bell__mark:hover {
  color: var(--text);
  text-decoration: underline;
}
.bell__list {
  flex: 1;
  overflow-y: auto;
  padding: 6px 0;
}
.bell__empty {
  padding: 32px 20px;
  text-align: center;
  color: var(--text-soft);
  font-size: 13px;
}
.bell__empty-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: oklch(0.95 0.06 165);
  color: oklch(0.45 0.15 165);
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.bell__group {
  padding: 4px 0;
}
.bell__group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.bell__group-icon {
  font-size: 14px;
}
.bell__group-label {
  flex: 1;
}
.bell__group-count {
  background: oklch(0.95 0 0);
  color: var(--text-soft);
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 10px;
}
.bell__items {
  display: flex;
  flex-direction: column;
}
.bell-item {
  border-left: 3px solid transparent;
  padding: 0;
  transition: background 0.12s;
}
.bell-item.is-read {
  opacity: 0.6;
}
.bell-item--medium {
  border-left-color: oklch(0.70 0.14 60);
}
.bell-item--high {
  border-left-color: oklch(0.55 0.20 25);
  background: oklch(0.99 0.02 25);
}
.bell-item:hover {
  background: var(--bg-soft, oklch(0.98 0 0));
}
.bell-item__main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 18px;
  cursor: pointer;
}
.bell-item__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}
.bell-item__body {
  flex: 1;
  min-width: 0;
}
.bell-item__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.bell-item__creche {
  font-size: 11px;
  font-weight: 600;
  margin-left: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.bell-item__sub {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.4;
  margin-top: 2px;
}
.bell-item__actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.bell-item__read {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: white;
  cursor: pointer;
  font-size: 11px;
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bell-item__read:hover {
  background: oklch(0.92 0.08 165);
  color: oklch(0.40 0.15 165);
  border-color: oklch(0.70 0.10 165);
}
.bell-item__cta {
  padding: 0 18px 10px 31px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.bell-item__cta-btn {
  border: 1px solid oklch(0.65 0.15 165);
  background: oklch(0.96 0.06 165);
  color: oklch(0.35 0.15 165);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.bell-item__cta-btn:hover {
  background: oklch(0.92 0.10 165);
}
.bell-item__cta-link {
  border: none;
  background: none;
  color: var(--text-soft);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 6px;
}
.bell-item__cta-link:hover {
  color: var(--text);
  text-decoration: underline;
}
.bell-item__expand {
  padding: 4px 18px 12px 31px;
  background: oklch(0.99 0 0);
}
.bell-item__expand-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-soft);
  margin: 8px 0 6px;
}
.bell-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  border-bottom: 1px dashed var(--border);
}
.bell-check:last-child {
  border-bottom: none;
}
.bell-check input {
  display: none;
}
.bell-check__box {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--border-strong, var(--border));
  background: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  margin-top: 1px;
}
.bell-check.is-done .bell-check__box {
  background: oklch(0.55 0.16 165);
  border-color: oklch(0.55 0.16 165);
}
.bell-check__body {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.bell-check__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.bell-check.is-done .bell-check__label {
  text-decoration: line-through;
  color: var(--text-soft);
}
.bell-check__sub {
  font-size: 11px;
  color: var(--text-soft);
}

/* === On / Off-boarding === */
.onoff {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1200px;
}
.onoff__tabs {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.onoff__tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px 14px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}
.onoff__tab:hover {
  border-color: var(--border-strong, var(--text-soft));
}
.onoff__tab.is-on {
  border-color: var(--text);
  background: var(--text);
  color: white;
}
.onoff__tab-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}
.onoff__tab.is-on .onoff__tab-icon {
  background: white !important;
  color: var(--text);
}
.onoff__tab-label {
  font-size: 14px;
  font-weight: 600;
}
.onoff__tab-sub {
  font-size: 11px;
  opacity: 0.75;
  margin-top: 1px;
}
.onoff__scope {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.onoff__scope label {
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 500;
}
.onoff__scope select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  background: white;
  cursor: pointer;
}
.onoff__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.onoff__kpi {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  border-left: 4px solid oklch(0.75 0.05 240);
}
.onoff__kpi--warn { border-left-color: oklch(0.65 0.18 60); }
.onoff__kpi--ok { border-left-color: oklch(0.55 0.16 165); }
.onoff__kpi-val {
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.onoff__kpi-val small {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-soft);
}
.onoff__kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.onoff__kpi-sub {
  font-size: 11px;
  color: var(--text-soft);
  margin-top: 2px;
}
.onoff__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.onoff__empty {
  background: white;
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 32px;
  text-align: center;
  color: var(--text-soft);
  font-size: 13px;
}
.onoff-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.onoff-card.is-done {
  background: oklch(0.99 0.02 165);
  border-color: oklch(0.85 0.06 165);
}
.onoff-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  cursor: pointer;
}
.onoff-card__head:hover {
  background: var(--bg-soft, oklch(0.98 0 0));
}
.onoff-card__pro {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.onoff-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.onoff-card__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.onoff-card__suffix {
  font-size: 11px;
  color: var(--text-soft);
  font-weight: 500;
  margin-left: 4px;
}
.onoff-card__meta {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 2px;
}
.onoff-card__right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.onoff-card__status {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: oklch(0.95 0.02 240);
  color: oklch(0.40 0.10 240);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.onoff-card__status--soon { background: oklch(0.94 0.10 60); color: oklch(0.38 0.18 60); }
.onoff-card__status--today { background: oklch(0.92 0.14 25); color: oklch(0.40 0.20 25); }
.onoff-card__status--active { background: oklch(0.92 0.10 285); color: oklch(0.40 0.18 285); }
.onoff-card__status--essai { background: oklch(0.94 0.06 165); color: oklch(0.38 0.14 165); }
.onoff-card__status--past { background: oklch(0.95 0.02 240); color: var(--text-soft); }
.onoff-card__progress {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 100px;
}
.onoff-card__progress-bar {
  width: 100%;
  height: 6px;
  background: oklch(0.94 0 0);
  border-radius: 3px;
  overflow: hidden;
}
.onoff-card__progress-fill {
  height: 100%;
  transition: width 0.2s;
}
.onoff-card__progress-txt {
  font-size: 11px;
  color: var(--text-soft);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.onoff-card__chev {
  color: var(--text-soft);
  font-size: 12px;
}
.onoff-card__body {
  padding: 4px 18px 18px 70px;
  background: oklch(0.99 0 0);
  border-top: 1px solid var(--border);
}
.onoff-card__checklist-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-soft);
  margin: 14px 0 10px;
}
.onoff-card__checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.onoff-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  padding: 4px 0;
}
.onoff-check input { display: none; }
.onoff-check__box {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--border-strong, var(--border));
  background: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.12s;
}
.onoff-check.is-done .onoff-check__box {
  background: oklch(0.55 0.16 165);
  border-color: oklch(0.55 0.16 165);
}
.onoff-check__body { flex: 1; min-width: 0; }
.onoff-check__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.onoff-check.is-done .onoff-check__label {
  text-decoration: line-through;
  color: var(--text-soft);
}
.onoff-check__sub {
  font-size: 11px;
  color: var(--text-soft);
  margin-top: 1px;
}
@media (max-width: 900px) {
  .onoff__kpis { grid-template-columns: 1fr; }
  .onoff-card__checklist { grid-template-columns: 1fr; }
  .onoff-card__body { padding-left: 18px; }
}

/* Offboarding checklist — variante avec moins d'items, lignes plus présentes */
.onoff-card__checklist--off {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.onoff-check--off {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--surface, #fff);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.15s;
}
.onoff-check--off:hover {
  border-color: oklch(0.55 0.18 25 / 0.4);
  background: oklch(0.99 0.01 25);
}
.onoff-check--off.is-done {
  background: oklch(0.97 0.03 165);
  border-color: oklch(0.55 0.16 165 / 0.3);
}
.onoff-check--off .onoff-check__step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: oklch(0.95 0.02 25);
  color: oklch(0.55 0.18 25);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.onoff-check--off.is-done .onoff-check__step {
  background: oklch(0.55 0.16 165);
  color: white;
}
.onoff-check--off .onoff-check__label {
  font-size: 14px;
  font-weight: 600;
}
.onoff-check--off .onoff-check__sub {
  font-size: 12px;
  margin-top: 2px;
}
.onoff-check--off .onoff-check__box {
  width: 22px;
  height: 22px;
  margin-top: 0;
  border-radius: 6px;
}

/* Bandeau de relance auto */
.onoff-card.has-reminder { border-color: oklch(0.55 0.18 60 / 0.5); }
.onoff-card__reminder {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: oklch(0.96 0.06 75);
  border-top: 1px solid oklch(0.55 0.18 60 / 0.25);
  border-bottom: 1px solid oklch(0.55 0.18 60 / 0.25);
  color: oklch(0.35 0.15 60);
  font-size: 13px;
}
.onoff-card__reminder--off {
  background: oklch(0.96 0.05 25);
  border-top-color: oklch(0.55 0.18 25 / 0.25);
  border-bottom-color: oklch(0.55 0.18 25 / 0.25);
  color: oklch(0.35 0.15 25);
}
.onoff-card__reminder--med {
  background: oklch(0.96 0.04 235);
  border-top-color: oklch(0.55 0.16 235 / 0.25);
  border-bottom-color: oklch(0.55 0.16 235 / 0.25);
  color: oklch(0.35 0.13 235);
}
.onoff-card__reminder--leeto {
  background: oklch(0.96 0.05 295);
  border-top-color: oklch(0.55 0.18 295 / 0.25);
  border-bottom-color: oklch(0.55 0.18 295 / 0.25);
  color: oklch(0.35 0.15 295);
}
.onoff-card__reminder-icon { font-size: 14px; flex-shrink: 0; }
.onoff-card__reminder-text { flex: 1; font-weight: 500; }
.onoff-card__reminder-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 10px;
  background: white;
  border: 1px solid currentColor;
  flex-shrink: 0;
}

/* === Renforts inter-crèches === */
.stats-rh__renforts {
  margin-top: 16px;
}
.stats-rh__renforts-total {
  font-size: 12px;
  color: var(--text-soft);
  background: var(--bg-soft, oklch(0.97 0.01 240));
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.stats-rh__renforts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 14px;
}
.stats-rh__renforts-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stats-rh__renforts-subtitle {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--text);
}
.stats-rh__renforts-subtitle span {
  font-weight: 400;
  font-size: 11px;
  color: var(--text-soft);
  margin-left: 4px;
}
.stats-rh__renforts-row {
  display: grid;
  grid-template-columns: 130px 1fr 50px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.stats-rh__renforts-label {
  padding-left: 8px;
  color: var(--text);
  font-weight: 500;
}
.stats-rh__renforts-row strong {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}
.stats-rh__renforts-flow {
  display: grid;
  grid-template-columns: minmax(0,1fr) 16px minmax(0,1fr) 50px;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}
.stats-rh__renforts-flow:last-child {
  border-bottom: none;
}
.stats-rh__renforts-flow-from {
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stats-rh__renforts-flow-arrow {
  text-align: center;
  color: var(--text-soft);
  font-weight: 600;
}
.stats-rh__renforts-flow-to {
  padding: 3px 8px;
  border-radius: 4px;
  border: 2px solid;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  background: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stats-rh__renforts-flow-n {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.stats-rh__renforts-pro {
  display: grid;
  grid-template-columns: 1fr auto 40px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}
.stats-rh__renforts-pro:last-child {
  border-bottom: none;
}
.stats-rh__renforts-pro-name {
  font-weight: 500;
}
.stats-rh__renforts-pro-creche {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.stats-rh__renforts-pro strong {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.stats-rh__renforts-empty {
  font-size: 12px;
  color: var(--text-soft);
  font-style: italic;
  padding: 8px 0;
}
@media (max-width: 900px) {
  .stats-rh__renforts-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* Custom Planning Extensions */
.week-grid__cell--editable {
  cursor: pointer;
  transition: background 0.1s;
}
.week-grid__cell--editable:hover {
  background: oklch(0.96 0.02 165) !important;
}
.is-custom-plan {
  position: relative;
}
.is-custom-plan::after {
  content: '';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 2px white;
}

.monthly-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.monthly-option {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r);
  text-align: left;
  transition: all 0.2s;
  cursor: pointer;
}
.monthly-option:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.monthly-option__icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: 50%;
}
.monthly-option__text {
  display: flex;
  flex-direction: column;
}
.monthly-option__text strong {
  font-size: 15px;
  margin-bottom: 4px;
}
.monthly-option__text span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== Modale Gérer les Modèles de Planning ===== */
.template-tabs {
  display: flex;
  gap: 4px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  flex-shrink: 0;
  flex-wrap: nowrap;
}
.template-tab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-sans);
  white-space: nowrap;
  transition: all 0.15s;
}
.template-tab:hover { color: var(--text); background: var(--bg-soft); }
.template-tab--active {
  color: var(--accent-text);
  border-bottom-color: var(--accent);
}
.template-tab__chip {
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.template-tab--active .template-tab__chip { background: var(--accent); color: #fff; }

/* Tables internes à la modale (ne pas hériter du min-width:1240px de .eff-table) */
.tpl-modal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}
.tpl-modal-table th {
  padding: 8px 6px;
  background: var(--bg-soft);
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}
.tpl-modal-table td {
  padding: 6px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  vertical-align: middle;
}
.tpl-modal-table tr:last-child td { border-bottom: 0; }
.tpl-modal-table .tpl-input-time {
  width: 92px;
  padding: 5px 6px;
  font-size: 12px;
  text-align: center;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  color: var(--text);
}
.tpl-modal-table .tpl-input-num {
  width: 64px;
  padding: 5px 6px;
  font-size: 12px;
  text-align: right;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  color: var(--text);
}

.tpl-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin: 14px 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tpl-section-title:first-child { margin-top: 0; }

.tpl-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.tpl-pill--system { background: var(--bg-soft); color: var(--text-muted); }
.tpl-pill--custom { background: oklch(0.93 0.08 145); color: oklch(0.35 0.16 145); }

.tpl-procount {
  display: inline-flex;
  gap: 4px;
}
.tpl-procount button {
  width: 36px; height: 30px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
}
.tpl-procount button.tpl-procount--active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
