/* ============ Polices ============ */
@font-face { font-family: 'Fraunces'; src: url('fonts/fraunces-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

/* ============ Jetons ============ */
:root {
  --bg: #f4f1ea;
  --surface: #ffffff;
  --surface-2: #faf8f3;
  --ink: #1c2620;
  --ink-2: #59645d;
  --ink-3: #8a948d;
  --line: #e4e0d6;
  --line-2: #efece4;
  --brand: #2f5d46;
  --brand-hover: #254b38;
  --brand-soft: #e6eee8;
  --brand-ink: #f4efe4;
  --sidebar: #1e3a2c;
  --sidebar-2: #28493a;
  --good: #0aac23; --good-bg: #e2f4e5;
  --warning: #fbb315; --warning-bg: #fff2d3;
  --serious: #f18a59; --serious-bg: #fde5d8;
  --critical: #dc3c3d; --critical-bg: #fbe1e1;
  --s1: #257de0; --s2: #f47230;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(28, 38, 32, .06), 0 2px 8px rgba(28, 38, 32, .04);
  --shadow-lg: 0 12px 40px rgba(28, 38, 32, .18);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 var(--font); font-feature-settings: 'cv11', 'ss01'; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; }
h1 { font-family: var(--serif); font-size: 28px; letter-spacing: -.01em; line-height: 1.15; font-variation-settings: 'SOFT' 50, 'opsz' 72; }
h2 { font-size: 15px; letter-spacing: -.005em; }
h3 { font-size: 13px; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; }
.muted { color: var(--ink-2); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.spacer { flex: 1; }
.txt-warn { color: #a65f00; font-weight: 600; }
.txt-bad { color: var(--critical); font-weight: 600; }
.txt-good { color: #0b7a1d; }
.icon { flex: none; display: block; }

/* ============ Structure ============ */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.sidebar { background: var(--sidebar); color: var(--brand-ink); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 18px 12px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 20px; font-family: var(--serif); font-size: 17px; font-weight: 600; line-height: 1.2; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sidebar nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px; color: rgba(244, 239, 228, .78); font-weight: 500; }
.sidebar nav a:hover { background: rgba(255, 255, 255, .06); color: var(--brand-ink); }
.sidebar nav a.active { background: var(--brand-ink); color: var(--sidebar); }
.nav-count { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; background: var(--critical); color: #fff; border-radius: 99px; min-width: 19px; height: 19px; display: grid; place-items: center; padding: 0 5px; }
.sidebar-foot { display: flex; align-items: center; gap: 6px; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 12px; }
.me { flex: 1; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 9px; min-width: 0; }
.me:hover, .me.active { background: rgba(255, 255, 255, .08); }
.me > span:not(.avatar) { display: flex; flex-direction: column; min-width: 0; }
.me strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me small { color: rgba(244, 239, 228, .6); font-size: 12px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.scrim { display: none; }
.topbar { display: none; }
.content { flex: 1; }
.page { max-width: 1320px; margin: 0 auto; padding: 28px 32px 64px; display: flex; flex-direction: column; gap: 18px; }
.page.narrow { max-width: 860px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head .muted { margin-top: 4px; }
.dicton { margin-top: 7px; font-size: 12.5px; font-style: italic; line-height: 1.45; color: var(--ink-3); max-width: 92ch; }
.dicton-trad { font-style: normal; }
.dicton-src { font-style: normal; font-size: 11.5px; white-space: nowrap; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); font-weight: 500; margin-bottom: -8px; width: fit-content; }
.back:hover { color: var(--ink); }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 600; font-size: 13px; margin-bottom: 4px; flex-wrap: wrap; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-2); margin-top: 6px; }
.meta > span { display: inline-flex; align-items: center; gap: 6px; }

/* ============ Boutons & champs ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); font-weight: 550; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--surface-2); border-color: #d6d1c4; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-hover); }
.btn.danger { background: var(--critical); border-color: var(--critical); color: #fff; }
.btn.danger.ghost { background: transparent; color: var(--critical); border-color: transparent; }
.btn.danger.ghost:hover { background: var(--critical-bg); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: rgba(28, 38, 32, .05); color: var(--ink); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; height: 42px; }
.btn-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; flex: none; }
.btn-icon:hover { background: rgba(28, 38, 32, .06); color: var(--ink); }
.btn-icon:disabled { opacity: .35; cursor: default; }
.btn-icon.sm { width: 28px; height: 28px; }
.btn-icon.xs { width: 22px; height: 22px; border-radius: 6px; }
.btn-icon.light { color: rgba(244, 239, 228, .7); }
.btn-icon.light:hover { background: rgba(255, 255, 255, .08); color: var(--brand-ink); }
.btn-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.btn-row.between { justify-content: space-between; }
.link { color: var(--brand); font-weight: 600; font-size: 13px; }
.link:hover { text-decoration: underline; }

input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]), select, textarea {
  width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); outline: none; transition: border-color .12s, box-shadow .12s;
}
textarea { height: auto; padding: 8px 10px; resize: vertical; }
select { padding-right: 28px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2359645d' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 93, 70, .14); }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--brand); margin: 0; flex: none; }
input[type=range] { width: 100%; accent-color: var(--brand); }
input[type=color] { width: 34px; height: 30px; border: 1px solid var(--line); border-radius: 6px; padding: 2px; background: #fff; }
label { display: flex; flex-direction: column; gap: 5px; font-weight: 550; font-size: 13px; color: var(--ink); }
label small { font-weight: 400; }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
label.check.sm { font-size: 13px; color: var(--ink-2); }
label.align-end { align-self: end; min-height: 36px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .span2 { grid-column: span 2; }
.form-error { color: var(--critical); font-weight: 550; }
.num-input { position: relative; display: flex; align-items: center; }
.num-input input { text-align: right; font-variant-numeric: tabular-nums; }
.num-input .suffix { position: absolute; right: 10px; color: var(--ink-3); font-size: 12.5px; pointer-events: none; }
.num-input.narrow { width: 96px; margin-left: auto; }
.narrow-txt { max-width: 120px; }
.month-input { display: flex; gap: 6px; align-items: center; }
.month-input select:first-child { flex: 1.4; }
.month-input select:nth-child(2) { flex: 1; }
.sm-select { width: auto !important; min-width: 170px; }
.search { position: relative; flex: 1; min-width: 200px; max-width: 360px; }
.search .icon { position: absolute; left: 10px; top: 9px; color: var(--ink-3); }
.search input { padding-left: 34px !important; }
.segmented { display: inline-flex; background: #e9e5db; border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.segmented button { border: 0; background: transparent; padding: 6px 11px; border-radius: 8px; font-weight: 550; color: var(--ink-2); cursor: pointer; font-size: 13px; }
.segmented button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.segmented em { font-style: normal; color: var(--ink-3); font-size: 12px; margin-left: 3px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper strong { min-width: 120px; text-align: center; font-weight: 600; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 12px; font-weight: 600; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-color: var(--brand); }
.tabs em { font-style: normal; font-size: 11.5px; background: var(--line-2); border-radius: 99px; padding: 1px 7px; margin-left: 4px; color: var(--ink-2); }
.tabs em.warn { background: var(--warning-bg); color: #8a5300; }
.tabs.big { margin-bottom: 0; }

/* ============ Cartes ============ */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head.pad, .pad { padding: 16px 20px; }
.card-head.pad { margin: 0; border-bottom: 1px solid var(--line-2); }
.card-head.mt { margin-top: 26px; }
.card-head p { margin-top: 3px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-2.tight { gap: 24px; margin-bottom: 8px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; box-shadow: var(--shadow); }
a.kpi:hover { border-color: #cfc9ba; }
.kpi-label { color: var(--ink-2); font-size: 12.5px; font-weight: 550; }
.kpi-value { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums lining-nums; line-height: 1.2; }
.kpi-sub { color: var(--ink-3); font-size: 12px; }
.empty { text-align: center; padding: 40px 20px; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty-ico { font-size: 28px; color: #b9c4b2; }
.empty strong { color: var(--ink); font-size: 15px; }
.empty p { max-width: 420px; }
.danger-banner { background: var(--critical-bg); border: 1px solid #f1b9b9; border-radius: 10px; padding: 12px 16px; line-height: 1.55; }
.danger-banner strong { display: block; color: #8f2324; }
.danger-banner code { background: rgba(255,255,255,.6); padding: 0 4px; border-radius: 4px; }
.note { background: var(--warning-bg); border-radius: 8px; padding: 8px 12px; font-size: 13px; }
.help-box { background: var(--brand-soft); border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; }
.help-box ol { margin: 8px 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.legend-note { color: var(--ink-2); font-size: 12.5px; line-height: 1.7; }
.notes { white-space: pre-line; }

/* ============ Badges, tags ============ */
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--line-2); color: var(--ink-2); }
.badge.st-en_cours { background: var(--brand-soft); color: var(--brand); }
.badge.st-prospect { background: #e8f0fb; color: #1d5fae; }
.badge.st-a_venir { background: #f1efe9; color: var(--ink-2); }
.badge.st-suspendue { background: var(--warning-bg); color: #8a5300; }
.badge.st-terminee { background: #ecebe8; color: #6b6f6c; }
.badge.st-perdue { background: var(--critical-bg); color: #a12a2b; }
.tag { font-style: normal; font-size: 11.5px; background: var(--line-2); color: var(--ink-2); border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.tag.ok { background: var(--good-bg); color: #0b6c1b; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.prob-tag { font-style: normal; font-size: 11px; color: #1d5fae; background: #e8f0fb; padding: 1px 6px; border-radius: 5px; margin-left: 6px; white-space: nowrap; }
.over-tag { color: #a12a2b; background: var(--critical-bg); border-radius: 5px; padding: 1px 6px; font-weight: 600; white-space: nowrap; }
.level { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 650; padding: 2px 8px 2px 4px; border-radius: 99px; white-space: nowrap; color: var(--ink); height: 22px; }
.level-ico { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; color: #fff; font-weight: 800; }
.level.critical { background: var(--critical-bg); } .level.critical .level-ico { background: var(--critical); }
.level.serious { background: var(--serious-bg); } .level.serious .level-ico { background: var(--serious); }
.level.warning { background: var(--warning-bg); } .level.warning .level-ico { background: var(--warning); color: var(--ink); }
.level.info { background: #eceff0; } .level.info .level-ico { background: #7c8a91; font-style: italic; font-family: Georgia, serif; font-size: 11px; }
.load-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 650; padding: 2px 8px; border-radius: 99px; background: var(--line-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.load-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.load-pill.good { background: var(--good-bg); } .load-pill.good::before { background: var(--good); }
.load-pill.warning { background: var(--warning-bg); } .load-pill.warning::before { background: var(--warning); }
.load-pill.critical { background: var(--critical-bg); } .load-pill.critical::before { background: var(--critical); }
.avatar { display: inline-grid; place-items: center; line-height: 1; border-radius: 50%; color: #fff; font-weight: 700; flex: none; letter-spacing: .02em; box-shadow: 0 0 0 2px var(--surface); }
.who { display: inline-flex; align-items: center; gap: 7px; }
.who.big { gap: 14px; }
.code-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; display: inline-block; }
.alert-dot { margin-left: auto; background: var(--critical); color: #fff; font-size: 11px; font-weight: 700; border-radius: 99px; min-width: 20px; height: 20px; display: grid; place-items: center; }

/* ============ Jauges ============ */
.gauge { display: flex; flex-direction: column; gap: 4px; min-width: 120px; }
.gauge-track { height: 6px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.gauge-fill { height: 100%; background: var(--brand); border-radius: 99px; }
.gauge.warning .gauge-fill { background: var(--warning); }
.gauge.critical .gauge-fill { background: var(--critical); }
.gauge-txt { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gauge-txt b { color: var(--ink); }
.gauge.compact { flex-direction: row; align-items: center; gap: 8px; }
.gauge.compact .gauge-track { flex: 1; min-width: 50px; }
.mini-bar { height: 4px; background: var(--line-2); border-radius: 99px; overflow: hidden; margin-top: 4px; width: 70px; }
.mini-bar i { display: block; height: 100%; background: var(--ink-2); }

/* ============ Tableaux ============ */
.table-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table-scroll { overflow-x: auto; }
.table { width: 100%; font-variant-numeric: tabular-nums; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-2); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tfoot td { border-top: 1px solid var(--line); font-weight: 600; padding: 11px 14px; background: var(--surface-2); }
.table.compact th, .table.compact td { padding: 7px 10px; }
.table .num { text-align: right; white-space: nowrap; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: #fbfaf6; }
.table tr.selected td { background: var(--brand-soft); }
.table tr.dim td { opacity: .55; }
.card .table th { background: transparent; }
.card .table tfoot td { background: transparent; }
.aff-cell { display: flex; align-items: center; gap: 10px; }
.aff-name { font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.aff-name:hover { color: var(--brand); }
.mini-load { width: 100%; font-variant-numeric: tabular-nums; }
.mini-load th { font-size: 12px; color: var(--ink-2); font-weight: 600; text-align: center; padding: 4px; }
.mini-load td { padding: 6px 4px; text-align: center; border-top: 1px solid var(--line-2); }
.mini-load td:first-child { text-align: left; display: flex; align-items: center; gap: 8px; font-weight: 550; }
.plain { margin: 0; padding-left: 18px; }
.plain a { color: var(--brand); }

/* Feuilles (prévisionnel, charge) */
.grid-scroll { overflow: auto; max-height: 72vh; }
.sheet { width: 100%; font-variant-numeric: tabular-nums; font-size: 13px; }
.sheet th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); font-size: 12px; font-weight: 600; color: var(--ink-2); padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; text-align: center; }
.sheet th.num { text-align: right; }
.sheet td { padding: 7px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.sheet .num { text-align: right; }
.sheet .sticky-col { position: sticky; left: 0; z-index: 1; background: var(--surface); text-align: left; min-width: 280px; max-width: 380px; overflow: hidden; text-overflow: ellipsis; box-shadow: 1px 0 0 var(--line-2); }
.sheet th.sticky-col { z-index: 3; background: var(--surface-2); }
.sheet .now { background: #f6f9f6; }
.sheet th.now { color: var(--brand); background: #eef4ef; }
.sheet .strong { font-weight: 650; }
.sheet tr.group td { background: var(--surface); font-weight: 550; cursor: pointer; }
.sheet tr.group:hover td { background: #fbfaf6; }
.sheet tr.group .sticky-col { display: table-cell; }
.sheet tr.sub td { color: var(--ink-2); background: #fdfcf9; }
.sheet tr.sub .sticky-col { background: #fdfcf9; }
.sheet .code-dot { margin-right: 6px; vertical-align: 0; }
.sheet .indent { padding-left: 26px; display: inline-flex; align-items: center; gap: 6px; }
.sheet tfoot td { background: var(--surface-2); font-weight: 600; border-top: 1px solid var(--line-2); border-bottom: 0; }
.sheet tfoot .sticky-col { background: var(--surface-2); z-index: 2; }
.sheet tfoot tr.grand td { color: var(--brand); }
.caret { display: inline-block; width: 14px; color: var(--ink-3); transition: transform .15s; }
.caret.open { transform: rotate(90deg); }
.sheet td.cell.editable { cursor: text; }
.sheet td.cell.editable:hover { background: var(--brand-soft); }
.sheet td.cell.avalider { color: #1a5fb4; } /* montant pas encore validé comme facturé */
.sheet td.cell.fact { color: #0b6c1b; background: var(--good-bg); } /* facturé : surligné en vert clair */
.sheet tr.group td.avalider { color: #1a5fb4; } /* ligne d'affaire : mois pas entièrement facturé */
.sheet tr.group td.fact { color: #0b6c1b; background: var(--good-bg); } /* ligne d'affaire : mois entièrement facturé */
.sheet td.cell.late { color: #a65f00; background: var(--warning-bg); }
.cell-edit input { height: 26px !important; width: 84px !important; text-align: right; padding: 0 6px !important; }
.cell-legend { display: inline-block; padding: 0 5px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.cell-legend.fact { color: #0b6c1b; background: var(--good-bg); }
.cell-legend.avalider { color: #1a5fb4; }
.cell-legend.late { color: #a65f00; background: var(--warning-bg); }
.load-sheet td.load-cell { text-align: center; padding: 6px 8px; min-width: 78px; }
.load-cell b { display: block; font-size: 13px; }
.load-cell small { display: block; font-size: 11px; color: var(--ink-2); }
.sheet td.load-cell.good { background: var(--good-bg); }
.sheet td.load-cell.warning { background: var(--warning-bg); }
.sheet td.load-cell.critical { background: var(--critical-bg); }
.load-cell.critical b::before { content: '▲ '; font-size: 9px; color: var(--critical); vertical-align: 1px; }
.load-sheet td.load-cell { box-shadow: inset 0 0 0 1px var(--surface); }

/* ============ Graphiques ============ */
.chart { position: relative; width: 100%; }
.chart svg { display: block; overflow: visible; }
.chart-area { position: relative; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); margin-bottom: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.grid line { stroke: var(--line-2); stroke-width: 1; }
.grid text, .xlabels text { fill: var(--ink-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.hover-col { fill: rgba(28, 38, 32, .04); }
.ref-line line { stroke: var(--ink-2); stroke-dasharray: 4 4; stroke-width: 1.2; }
.ref-line text, .ref-band text { fill: var(--ink-2); font-size: 11px; }
.ref-band line { stroke: var(--critical); stroke-dasharray: 2 3; stroke-width: 1.2; }
.ref-band text { fill: #a12a2b; }
.marker { stroke: var(--surface); stroke-width: 2; }
.direct-label { fill: var(--ink); font-size: 11.5px; font-weight: 600; }
.chart-title { font-size: 12.5px; color: var(--ink-2); font-weight: 600; margin-bottom: 4px; }
.tooltip { position: absolute; top: 0; transform: translateX(-50%); background: var(--ink); color: #fff; border-radius: 8px; padding: 8px 10px; font-size: 12px; pointer-events: none; min-width: 150px; box-shadow: var(--shadow-lg); z-index: 5; }
.tooltip strong { display: block; margin-bottom: 4px; }
.tip-row { display: flex; align-items: center; gap: 6px; }
.tip-row i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.tip-row b { margin-left: auto; padding-left: 12px; font-variant-numeric: tabular-nums; }
.tip-row.muted { color: rgba(255, 255, 255, .7); }

/* ============ Tableau de bord ============ */
.alerts { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; }
.alerts li { display: grid; grid-template-columns: 108px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); align-items: start; }
.alerts li:last-child { border-bottom: 0; }
.alert-title { font-weight: 600; font-size: 13px; }
.alert-title:hover { color: var(--brand); }
.alerts p { color: var(--ink-2); font-size: 13px; }
.mission-list { list-style: none; margin: 0; padding: 0; }
.mission-list li { display: grid; grid-template-columns: 1fr 190px; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.mission-list li:last-child { border-bottom: 0; }
.mission-list a { display: grid; grid-template-columns: 14px 1fr; column-gap: 4px; align-items: center; min-width: 0; }
.mission-list a strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.mission-list a .muted { grid-column: 2; font-size: 12.5px; }
.mission-list a:hover strong { color: var(--brand); }

/* ============ Fiche affaire ============ */
.missions { display: flex; flex-direction: column; gap: 10px; }
.mission { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); }
.mission.clickable { cursor: pointer; }
.mission.clickable:hover { border-color: #cbc5b6; background: #fdfcf9; }
.mission.done { background: var(--surface-2); }
.mission-main { display: flex; align-items: center; gap: 12px; }
.phase-chip { min-width: 46px; height: 28px; padding: 0 8px; border-radius: 7px; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 12px; display: grid; place-items: center; letter-spacing: .03em; }
.mission.done .phase-chip { background: #ecebe8; color: #6b6f6c; }
.mission-title { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.mission-stats { display: grid; grid-template-columns: 155px minmax(190px, 1.3fr) 110px 80px minmax(160px, 1fr); gap: 18px; padding-left: 58px; align-items: start; }
.mission-stats.no-money { grid-template-columns: minmax(190px, 1.3fr) 110px 80px minmax(160px, 1fr); }
.stat { display: flex; flex-direction: column; gap: 2px; font-variant-numeric: tabular-nums; }
.stat > span { font-size: 11.5px; color: var(--ink-3); font-weight: 550; text-transform: uppercase; letter-spacing: .04em; }
.stat small { color: var(--ink-2); font-size: 12px; }
.stat.wide { min-width: 200px; }
.avatars { display: flex; gap: 8px; flex-wrap: wrap; }
.av-pct { display: inline-flex; align-items: center; gap: 3px; }
.av-pct small { font-size: 11.5px; color: var(--ink-2); }
.fact-cell { display: flex; align-items: center; gap: 4px; }
.ech-table .num-input { min-width: 110px; }
.add-month { display: inline-flex; gap: 6px; align-items: center; }
.add-month .month-input { width: 230px; }

/* ============ Équipe ============ */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; grid-template-columns: 44px 1fr; gap: 14px; box-shadow: var(--shadow); }
.person.clickable { cursor: pointer; }
.person.clickable:hover { border-color: #cbc5b6; }
.person.inactive { opacity: .6; }
.person-main { display: flex; flex-direction: column; min-width: 0; }
.person-load { grid-column: 2; display: flex; align-items: center; gap: 8px; }
.color-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.color-row .lbl { font-weight: 550; font-size: 13px; margin-right: 4px; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.swatch.on { box-shadow: 0 0 0 2px var(--ink); }

/* ============ Calendrier ============ */
.cal-toolbar .week-total { margin-left: auto; font-variant-numeric: tabular-nums; }
.calendar { user-select: none; -webkit-user-select: none; }
.calendar.loading { opacity: .6; }
.cal-head, .cal-allday, .cal-grid { display: grid; }
.cal-head { border-bottom: 1px solid var(--line); background: var(--surface-2); }
.cal-day-head { padding: 8px 10px; display: flex; align-items: center; gap: 6px; border-left: 1px solid var(--line-2); font-size: 13px; }
.cal-day-head span { color: var(--ink-2); text-transform: capitalize; }
.cal-day-head b { color: var(--ink); font-size: 15px; }
.cal-day-head small { color: var(--ink-3); font-size: 12px; margin-left: auto; font-variant-numeric: tabular-nums; }
.cal-day-head.today b { background: var(--brand); color: #fff; border-radius: 99px; padding: 1px 7px; }
.cal-day-head.ferie small { color: #a65f00; }
.cal-allday { border-bottom: 1px solid var(--line); }
.allday-col { border-left: 1px solid var(--line-2); padding: 4px; display: flex; flex-direction: column; gap: 3px; min-height: 30px; }
.chip-entry { --c: #8a948d; border: 0; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 14%, white); border-radius: 5px; padding: 3px 6px; font-size: 12px; font-weight: 600; text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-gutter { position: relative; font-size: 11px; color: var(--ink-3); padding: 6px; }
.cal-scroll { max-height: calc(100vh - 300px); min-height: 380px; overflow-y: auto; }
.cal-grid { position: relative; }
.hour-label { position: absolute; right: 8px; transform: translateY(-50%); font-variant-numeric: tabular-nums; }
.hour-label:first-child { display: none; }
.cal-col { position: relative; border-left: 1px solid var(--line-2); cursor: crosshair; }
.cal-col.readonly { cursor: default; }
.cal-col.today { background: #fbfdf9; }
.cal-col.ferie { background: repeating-linear-gradient(135deg, #faf7ef 0 8px, #f5f1e6 8px 16px); }
.hour-line { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line-2); pointer-events: none; }
.hour-line::after { content: ''; position: absolute; left: 0; right: 0; top: 26px; border-top: 1px dashed #f3f0e8; }
.now-line { position: absolute; left: 0; right: 0; border-top: 2px solid var(--critical); z-index: 3; pointer-events: none; }
.now-line::before { content: ''; position: absolute; left: -5px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--critical); }
.drag-ghost { position: absolute; left: 3px; right: 3px; background: rgba(47, 93, 70, .16); border: 1px dashed var(--brand); border-radius: 6px; pointer-events: none; z-index: 4; }
.cal-block { --c: #8a948d; position: absolute; z-index: 2; border: 0; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 16%, white); border-radius: 6px; padding: 3px 6px; text-align: left; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; font-size: 12px; line-height: 1.3; box-shadow: 0 0 0 1px var(--surface); }
.cal-block:hover { background: color-mix(in srgb, var(--c) 26%, white); z-index: 3; }
.cal-block strong { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-block .reu { color: var(--ink-2); font-weight: 500; font-size: 11px; }
.block-time { color: var(--ink-2); font-size: 11px; font-variant-numeric: tabular-nums; }
.block-sub { color: var(--ink-2); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day-tabs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.day-tabs button { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 6px 0; display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.day-tabs button span { font-size: 11px; color: var(--ink-3); }
.day-tabs button b { font-size: 15px; }
.day-tabs button small { font-size: 10.5px; color: var(--ink-2); min-height: 14px; }
.day-tabs button.today b { color: var(--brand); }
.day-tabs button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.day-tabs button.on span, .day-tabs button.on small { color: rgba(255, 255, 255, .8); }
.recap { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.recap li { display: grid; grid-template-columns: 14px 1fr auto; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line-2); break-inside: avoid; }
.recap li span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.recap small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recap b { font-variant-numeric: tabular-nums; }
.ics-list { max-height: 44vh; overflow: auto; margin-top: 8px; border: 1px solid var(--line-2); border-radius: 8px; }
.ics-list select { min-width: 260px; }

/* ============ Réglages ============ */
.data-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-bottom: 16px; }
.data-actions > div { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.data-actions .btn-row { margin-top: 0; }
.data-actions p { margin: 0; }
.table.sauvegardes { margin-bottom: 12px; }
.table.sauvegardes .tag { margin-left: 6px; }
.card > .danger-banner { margin-bottom: 14px; }
.data-actions input[type=date] { width: 140px !important; }
.phases-table input { height: 32px !important; }

/* ============ Modales ============ */
.modal-backdrop { position: fixed; inset: 0; background: rgba(20, 30, 24, .42); display: grid; place-items: center; z-index: 50; padding: 20px; animation: fade .15s; }
.modal { background: var(--surface); border-radius: 16px; width: 100%; max-width: 520px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: pop .18s ease-out; }
.modal.wide { max-width: 720px; }
.modal.xwide { max-width: 920px; }
.modal.confirm { max-width: 440px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 10px; gap: 12px; }
.modal-head h2 { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.modal-body { padding: 6px 20px 18px; overflow-y: auto; }
.modal-foot { display: flex; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line-2); align-items: center; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

/* ============ Toasts ============ */
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 80; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 550; box-shadow: var(--shadow-lg); animation: pop .2s; max-width: 90vw; }
.toast.error { background: #8f2324; }

/* ============ Connexion ============ */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(1200px 600px at 10% -10%, #dfe8de 0, transparent 60%), radial-gradient(900px 500px at 110% 110%, #ebe0cb 0, transparent 55%), var(--bg); }
.login-card { width: 100%; max-width: 420px; background: var(--surface); border-radius: 18px; padding: 32px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 14px; }
.login-card h1 { font-size: 30px; }
.login-mark { margin-bottom: 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.splash { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 12px; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .grid-2 { grid-template-columns: 1fr; }
  .page { padding: 24px 22px 56px; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 264px; z-index: 40; transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--shadow-lg); }
  .shell.menu-open .sidebar { transform: none; }
  .shell.menu-open .scrim { display: block; position: fixed; inset: 0; background: rgba(20, 30, 24, .35); z-index: 39; }
  .topbar { display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 8px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
  .topbar-title { flex: 1; font-family: var(--serif); font-weight: 600; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .page { padding: 16px 14px 48px; gap: 14px; }
  h1 { font-size: 24px; }
  .hide-sm { display: none !important; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span2 { grid-column: auto; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kpi { padding: 12px; }
  .kpi-value { font-size: 21px; }
  .card { padding: 14px; }
  .card-head.pad, .pad { padding: 12px 14px; }
  .mission-stats, .mission-stats.no-money { padding-left: 0; gap: 14px; display: flex; flex-wrap: wrap; }
  .stat.wide { min-width: 100%; }
  .alerts li { grid-template-columns: 1fr; gap: 4px; }
  .mission-list li { grid-template-columns: 1fr; gap: 6px; }
  .recap { columns: 1; }
  .modal-backdrop { padding: 0; align-items: end; }
  .modal, .modal.wide, .modal.xwide { max-width: 100%; border-radius: 16px 16px 0 0; max-height: 92vh; }
  .cal-scroll { max-height: calc(100vh - 330px); }
  .cal-toolbar .week-total { margin-left: 0; width: 100%; }
  .search { max-width: none; }
  .sheet .sticky-col { min-width: 170px; max-width: 200px; }
  .toolbar .sm-select { flex: 1; }
  .people { grid-template-columns: 1fr; }
  .stepper strong { min-width: 0; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ============ Saisie rapide (calendrier) ============ */
.calendar { -webkit-touch-callout: none; }
.calendar.is-moving, .calendar.is-moving * { cursor: grabbing !important; }
.drag-ghost { display: flex; align-items: flex-start; overflow: hidden; }
.drag-ghost span { font-size: 11.5px; font-weight: 650; color: var(--brand); padding: 3px 7px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.drag-ghost.pinned { background: color-mix(in srgb, var(--brand) 22%, white); border: 0; border-left: 3px solid var(--brand); box-shadow: 0 4px 14px rgba(28, 38, 32, .18); }
.cal-block { cursor: grab; }
.cal-block.dragging { opacity: .92; box-shadow: 0 8px 22px rgba(28, 38, 32, .25); z-index: 6; }
.cal-block.pending { opacity: .6; }
.resize-handle { position: absolute; left: 0; right: 0; bottom: 0; height: 7px; cursor: ns-resize; }
.resize-handle::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 18px; height: 3px; margin-left: -9px; border-radius: 2px; background: color-mix(in srgb, var(--c) 55%, white); opacity: 0; transition: opacity .1s; }
.cal-block:hover .resize-handle::after { opacity: 1; }

.qe-pop { position: fixed; z-index: 60; width: 360px; max-width: calc(100vw - 20px); background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(28, 38, 32, .06); display: flex; flex-direction: column; animation: pop .14s ease-out; }
.qe-pop.sheet { left: 0; right: 0; bottom: 0; top: auto; width: 100%; max-width: none; border-radius: 18px 18px 0 0; max-height: 82vh; padding-bottom: env(safe-area-inset-bottom); }
.qe-backdrop { position: fixed; inset: 0; background: rgba(20, 30, 24, .3); z-index: 59; }
.qe-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 14px 14px 8px 16px; }
.qe-head strong { font-family: var(--serif); font-size: 17px; font-weight: 600; display: inline-block; }
.qe-head strong::first-letter { text-transform: uppercase; }
.qe-time { color: var(--ink-2); font-variant-numeric: tabular-nums; margin-top: 2px; }
.qe-times { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.qe-times select { width: 92px !important; height: 34px !important; }
.qe-search { position: relative; margin: 0 14px; }
.qe-search .icon { position: absolute; left: 10px; top: 10px; color: var(--ink-3); }
.qe-search input { padding-left: 32px !important; height: 38px !important; }
.qe-reu { flex-direction: row; align-items: center; gap: 7px; font-weight: 500; padding: 9px 16px 4px; cursor: pointer; }
.qe-list { overflow-y: auto; max-height: 320px; padding: 4px 6px 6px; }
.qe-pop.sheet .qe-list { max-height: none; flex: 1; }
.qe-group { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); padding: 9px 10px 4px; }
.qe-item { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; text-align: left; padding: 7px 10px; border-radius: 8px; cursor: pointer; }
.qe-item.active { background: var(--brand-soft); }
.qe-item .code-dot { width: 11px; height: 11px; }
.qe-txt { display: flex; flex-direction: column; min-width: 0; }
.qe-txt b { font-weight: 600; font-size: 13.5px; }
.qe-txt small { color: var(--ink-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qe-more-list { border: 0; background: none; color: var(--brand); font-weight: 600; padding: 8px 10px; cursor: pointer; }
.qe-empty { padding: 10px; }
.qe-foot { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-top: 1px solid var(--line-2); }
@media (max-width: 760px) {
  .qe-item { padding: 10px; }
  .qe-txt b { font-size: 14.5px; }
}

/* Temps passés par salarié : comparaison au temps théorique */
.temps-table .prevu-row td { background: var(--surface-2); color: var(--ink-2); font-weight: 600; border-bottom: 1px solid var(--line); }
.temps-table .prevu-row td:first-child { font-style: italic; white-space: nowrap; }
.tp { display: inline-block; padding: 1px 7px; border-radius: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tp.ok { color: #0b6c1b; background: #e7f5e9; }
.tp.over { color: #a12a2b; background: var(--critical-bg); font-weight: 600; }
.tp small { font-size: 11.5px; font-weight: 600; }
.tp.strong { font-weight: 700; }
.sheet tr.sub.hors td { color: var(--ink-2); font-style: normal; }
.sheet tr.sub.hors.deduit td { color: var(--ink-3); }
.prob-tag.neutral { color: var(--ink-2); background: var(--line-2); }
.sheet .mission-cell { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; line-height: 1.3; }
.sheet .charge-de { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-2); }
.sheet .charge-de .avatar { font-size: 7px !important; box-shadow: none; }

/* Temps : salariés affichés, couleurs, réunions */
.plain-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.cal-filters { display: flex; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; align-items: center; }
.user-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.user-chips .lbl, .inline-field { font-size: 13px; color: var(--ink-2); font-weight: 550; }
.u-chip { --c: #8a948d; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px 0 8px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-weight: 550; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.u-chip .u-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--c); background: transparent; }
.u-chip.on { border-color: color-mix(in srgb, var(--c) 45%, white); background: color-mix(in srgb, var(--c) 12%, white); color: var(--ink); }
.u-chip.on .u-dot { background: var(--c); }
.u-chip small { color: var(--ink-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.cal-options { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inline-field { flex-direction: row; align-items: center; gap: 8px; }
.inline-field select { min-width: 150px !important; }
.segmented.sm button { padding: 4px 9px; font-size: 12.5px; }
.r-badge { position: absolute; top: 3px; right: 3px; width: 17px; height: 17px; border-radius: 4px; background: var(--ink); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; line-height: 1; font-style: normal; }
.r-badge.inline { position: static; display: inline-grid; margin-left: 5px; vertical-align: -3px; }
.cal-block.reunion { padding-right: 23px; }
.cal-block.locked { cursor: pointer; }
.blk-who { display: inline-block; font-size: 10px; font-weight: 800; color: #fff; background: var(--c); border-radius: 4px; padding: 0 4px; margin-right: 4px; line-height: 15px; vertical-align: 1px; }
.recap .blk-who { background: var(--ink-2); }
.chip-entry { position: relative; }
@media (max-width: 760px) {
  .cal-filters { flex-direction: column; align-items: stretch; }
  .user-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; min-width: 0; max-width: 100%; }
  .cal-filters { min-width: 0; max-width: 100%; }
  .u-chip { flex: none; }
}

/* ============ Planning des réunions ============ */
.cap { display: inline-block; }
.cap::first-letter { text-transform: uppercase; }
.planning-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.month-card.loading { opacity: .6; }
.month-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) repeat(2, minmax(0, .65fr)); }
.month-grid.head div { padding: 8px 10px; font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border-bottom: 1px solid var(--line); text-transform: capitalize; }
.month-cell { min-height: 112px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 5px 5px 8px; display: flex; flex-direction: column; gap: 3px; cursor: cell; min-width: 0; }
.month-cell:nth-child(7n) { border-right: 0; }
.month-cell.out { background: #fbfaf7; }
.month-cell.out .month-day { color: var(--ink-3); }
.month-cell.ferie { background: repeating-linear-gradient(135deg, #faf7ef 0 8px, #f5f1e6 8px 16px); }
.month-day { font-size: 12.5px; font-weight: 600; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; }
.month-cell.today .month-day { background: var(--brand); color: #fff; }
.reu-chip { --c: #8a948d; display: flex; align-items: center; gap: 5px; width: 100%; border: 0; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 13%, white); border-radius: 5px; padding: 3px 5px; font-size: 11.5px; text-align: left; cursor: pointer; min-width: 0; }
.reu-chip:hover { background: color-mix(in srgb, var(--c) 24%, white); }
.reu-time { font-weight: 700; font-variant-numeric: tabular-nums; flex: none; }
.reu-lbl { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 550; }
.reu-avs { display: inline-flex; align-items: center; flex: none; }
.reu-avs .avatar { margin-left: -4px; font-size: 7px !important; }
.reu-avs small { font-size: 10.5px; color: var(--ink-2); margin-left: 2px; }
.upcoming { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 16px; }
.agenda-item { --c: #8a948d; display: flex; gap: 10px; align-items: center; width: 100%; border: 0; background: none; text-align: left; padding: 9px 8px; border-radius: 8px; cursor: pointer; border-left: 3px solid var(--c); margin-bottom: 4px; }
.agenda-item:hover { background: var(--surface-2); }
.agenda-time { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; font-weight: 650; font-size: 13px; min-width: 70px; text-transform: capitalize; }
.agenda-time small { color: var(--ink-2); font-weight: 500; text-transform: none; }
.agenda-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.agenda-txt small { color: var(--ink-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agenda-txt .reu-avs { margin-top: 3px; padding-left: 4px; }
.agenda-day h3 { font-size: 13px; color: var(--ink-2); margin: 12px 0 6px; }
.agenda-day h3::first-letter { text-transform: uppercase; }
.agenda-day h3.today { color: var(--brand); }
.agenda-day:first-child h3 { margin-top: 0; }
.field-lbl { display: block; font-weight: 550; font-size: 13px; margin-bottom: 6px; }
.participants { display: flex; flex-wrap: wrap; gap: 6px; }
.participants .u-chip:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 1100px) {
  .planning-layout { grid-template-columns: 1fr; }
  .upcoming { position: static; }
}

/* Objectif de facturation */
.target-line { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 5 3; }
.legend-target, .tip-target { width: 14px !important; height: 0 !important; border-top: 2px dashed var(--ink); border-radius: 0 !important; background: none !important; }
.tip-target { border-top-color: #fff; }
.objectif-box { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.objectif-box b { color: var(--ink); font-variant-numeric: tabular-nums; }
.objectif-box .num-input { width: 130px; }
.sheet tr.obj-row td { background: #f7f5ef; }
.sheet tr.obj-row td.cell-obj.editable { cursor: text; }
.sheet tr.obj-row td.cell-obj.editable:hover { background: var(--brand-soft); }
.sheet td.cell-obj.propre { font-style: italic; }
.sheet td.cell-obj.propre::after { content: '•'; color: var(--brand); margin-left: 3px; font-style: normal; }
.sheet .ecart-pos { color: #0b6c1b; }
.sheet .ecart-neg { color: #a12a2b; }
.reu-chip { flex-wrap: wrap; row-gap: 2px; }
.reu-chip .reu-avs { flex-basis: 100%; padding-left: 4px; }
.up-date { font-size: 12px; font-weight: 650; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.droits-table td.center, .droits-table th.center { text-align: center; width: 150px; }
.droits-table tr.droits-group td { background: var(--surface-2); font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); padding-top: 10px; }
.droits-table input[type=checkbox] { width: 18px; height: 18px; }

/* Caractéristiques, groupement, lots */
.carac { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.carac-facts { display: flex; gap: 28px; flex-wrap: wrap; }
.carac-facts > div { display: flex; flex-direction: column; gap: 1px; }
.carac-facts span { font-size: 11.5px; color: var(--ink-3); font-weight: 550; text-transform: uppercase; letter-spacing: .04em; }
.carac-facts b { font-size: 16px; font-variant-numeric: tabular-nums; }
.carac-facts small { color: var(--ink-2); font-size: 12px; }
.mission-note { margin: 0 0 0 58px; padding: 7px 10px; background: #f7f5ef; border-left: 3px solid #d9cfb8; border-radius: 6px; font-size: 13px; color: var(--ink-2); white-space: pre-line; }
.note-ico { margin-right: 6px; color: #a08a5b; }
.cot-table input:not([type=checkbox]) { height: 32px !important; }
.reu-input { width: 70px !important; height: 32px !important; text-align: right; }
.lots-box { border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.lots-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lots-head .field-lbl { margin: 0; flex: 1; }
.lots-title { margin-top: 18px; }
.lot-delta { display: block; font-size: 11px; font-weight: 600; }
.lot-delta.up { color: #a12a2b; }
.lot-delta.down { color: #0b6c1b; }
@media (max-width: 760px) { .mission-note { margin-left: 0; } }
.import-apercu { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; padding: 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface-2); }

/* Échéancier : coche « facturé » et cumuls */
.fact-toggle { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 6px; border-radius: 50%; border: 1.5px solid #c9cfca; background: var(--surface); color: transparent; font-size: 11px; font-weight: 800; line-height: 1; cursor: pointer; vertical-align: -3px; padding: 0; }
.fact-toggle:hover { border-color: var(--good); color: var(--good); }
.fact-toggle.on { background: var(--good); border-color: var(--good); color: #fff; }
.fact-toggle.demo { cursor: default; color: var(--good); border-color: var(--good); }
.sheet tr.cumul-row td { background: #f3f6f3; }
.sheet tr.cumul-row.first td { border-top: 2px solid var(--line); }
.sheet tr.cumul-row .sticky-col { background: #f3f6f3; }
.ech-table tr.anterieur-row td { background: #f7f5ef; }
.import-list { max-height: 46vh; overflow: auto; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); }
.import-ok { background: var(--good-bg); border-radius: 10px; padding: 12px 16px; }
.import-ok ul { margin: 6px 0 0; padding-left: 18px; }

/* Trésorerie */
.callout { background: var(--warning-bg); border-radius: 12px; padding: 12px 16px; font-size: 13.5px; color: var(--ink); }
.hyp-row { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: flex-end; margin-bottom: 8px; }
.hyp-row label:not(.check) { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.hyp-row select { min-width: 210px; }
.hyp-row .num-input { width: 150px; }
.profil-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px 10px; }
.profil-grid label { font-size: 12px; }
@media (max-width: 720px) { .profil-grid { grid-template-columns: repeat(3, 1fr); } .hyp-row select { min-width: 0; } }
.treso-sheet tr.section-row td { background: var(--surface-2); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); padding-top: 10px; }
.treso-sheet tr.section-row .sticky-col { background: var(--surface-2); }
.treso-sheet tr.total-row td { font-weight: 650; border-top: 1px solid var(--line); background: #f7f5ef; }
.treso-sheet tr.total-row .sticky-col { background: #f7f5ef; }
.treso-sheet tr.sub.detail td { font-size: 12.5px; color: var(--ink-3); }
.treso-sheet tr.sub.detail a { color: var(--ink-2); }
.treso-sheet tr.sub.detail a:hover { color: var(--brand); }
.treso-sheet td.cell.propre { font-style: italic; }
.treso-sheet td.cell.propre::after { content: '•'; color: var(--brand); margin-left: 3px; font-style: normal; }
.treso-sheet .ligne-cell { width: calc(100% - 26px); }
.treso-sheet .ligne-lib { cursor: pointer; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.treso-sheet .ligne-lib:hover { color: var(--brand); text-decoration: underline; }
.treso-sheet .move { margin-left: auto; display: inline-flex; gap: 2px; opacity: 0; transition: opacity .15s; }
.treso-sheet tr:hover .move { opacity: 1; }
.treso-sheet .move button { border: 0; background: var(--line-2); border-radius: 4px; width: 20px; height: 20px; cursor: pointer; color: var(--ink-2); font-size: 12px; line-height: 1; }
.treso-sheet .move button:hover { background: var(--brand-soft); color: var(--brand); }
.btn-mini { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; padding: 1px 7px; margin-left: 8px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; vertical-align: 1px; }
.btn-mini:hover { color: var(--brand); border-color: var(--brand); }
.treso-sheet tfoot tr.solde-row td, .treso-sheet tfoot tr.banque-row td { font-weight: 550; }
.treso-sheet tfoot tr.banque-row td { background: #fff8ee; }
.treso-sheet tfoot tr.banque-row .sticky-col { background: #fff8ee; }
.treso-sheet tfoot td.cell.editable { cursor: text; }
.treso-sheet tfoot td.cell.editable:hover { background: var(--brand-soft); }
.treso-sheet td.solde-bas { color: #8a5300; background: var(--warning-bg); }
.treso-sheet td.solde-neg { color: #a12a2b; background: var(--critical-bg); }
.zero-line { stroke: var(--ink-3); stroke-width: 1; }
.legend-ring, .tip-ring { width: 9px !important; height: 9px !important; border-radius: 50% !important; border: 2.5px solid #f47230; background: var(--surface) !important; box-sizing: border-box; }
.tip-ring { background: transparent !important; }

/* Tri des colonnes (liste des affaires) */
.th-sort { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.th-sort:hover { color: var(--brand); }
.th-sort i { font-style: normal; font-size: 10px; color: var(--brand); min-width: 8px; }
th.num .th-sort { flex-direction: row-reverse; }
th[aria-sort="ascending"] .th-sort, th[aria-sort="descending"] .th-sort { color: var(--ink); }
.affaires-table td.code-col { white-space: nowrap; font-variant-numeric: tabular-nums; width: 1%; }
.affaires-table td.code-col .code-dot { margin-right: 8px; }
.affaires-table thead th { vertical-align: middle; }
@media (max-width: 720px) { .affaires-table td.code-col { padding-right: 4px; } .affaires-table td.code-col .code-dot { margin-right: 5px; } }

/* Premier démarrage avec données de reprise */
.reprise-box { background: var(--good-bg); border-radius: 10px; padding: 10px 12px; }
.reprise-box label.check { align-items: flex-start; font-size: 13.5px; }
.reprise-box input { margin-top: 3px; }
.reprise-box p { margin: 0 0 6px; font-size: 13.5px; line-height: 1.5; }
.reprise-box p:last-child { margin-bottom: 0; }
.reprise-box code { background: rgba(255,255,255,.65); padding: 0 4px; border-radius: 4px; }
.qui { display: flex; flex-direction: column; gap: 6px; }
.qui-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.qui-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.qui-list button { border: 1px solid var(--line); background: var(--surface); border-radius: 9px; padding: 9px 10px; font: inherit; font-weight: 550; cursor: pointer; color: var(--ink); text-align: left; }
.qui-list button:hover { border-color: var(--brand); }
.qui-list button.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.nonplanif { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; margin-top: 10px; }
.nonplanif-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 9px; color: var(--ink); text-decoration: none; font-size: 13.5px; }
.nonplanif-item:hover { border-color: var(--brand); }
.nonplanif-item > span { flex-basis: 100%; }
.nonplanif-item.dim { opacity: .65; }

/* ============ Planning par affaire (Gantt) ============ */
.segmented a { padding: 6px 11px; border-radius: 8px; font-weight: 550; color: var(--ink-2); font-size: 13px; text-decoration: none; }
.segmented a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.segmented button:disabled { opacity: .45; cursor: not-allowed; }
.plan-toolbar { margin-bottom: 12px; }
.plan-affaire { min-width: 260px; max-width: 420px; font-weight: 600; }
.plan-actions { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.plan-aide { margin-left: auto; }
.tag.bad { background: var(--critical-bg); color: #a12a2b; }
.field-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.row-input { display: flex; gap: 6px; }
.row-input input { flex: 1; min-width: 0; }
.row-input select { width: auto; }
.plan-resume { background: var(--surface-2); border-radius: 9px; padding: 9px 12px; font-size: 13.5px; margin: 0; }
.fact-mode { background: var(--surface-2); border-radius: 9px; padding: 8px 12px; margin: 6px 0 10px; }

.gantt { display: flex; position: relative; --rowline: #efece4; }
.gantt-left { flex: none; width: 250px; border-right: 1px solid var(--line); background: var(--surface); z-index: 2; }
.gantt-head-left { height: 46px; display: flex; align-items: flex-end; padding: 0 12px 7px; font-size: 12px; font-weight: 600; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.gl-row { display: flex; align-items: center; gap: 6px; padding: 0 10px 0 12px; border-bottom: 1px solid var(--rowline); font-size: 13px; min-width: 0; }
.gl-phase { font-weight: 600; }
.gl-titre { background: var(--surface-2); }
.gl-lib { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-info { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-3); font-weight: 500; }
.gl-info .add-j { opacity: 0; transition: opacity .15s; margin-left: 2px; }
.gl-row:hover .add-j { opacity: 1; }
.gl-jlib { padding-left: 14px; font-weight: 450; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); }
.gl-jlib.fait { color: var(--ink-3); text-decoration: line-through; }
.gantt-right { flex: 1; overflow-x: auto; overflow-y: hidden; position: relative; }
.gantt-canvas { position: relative; }
.gantt-head { position: relative; height: 46px; border-bottom: 1px solid var(--line); background: var(--surface); }
.gh-mois span, .gh-sem span { position: absolute; white-space: nowrap; }
.gh-mois span { top: 0; height: 26px; line-height: 26px; padding-left: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); border-left: 1px solid var(--line-2); box-sizing: border-box; overflow: hidden; }
.gh-mois span.annee { border-left-color: var(--ink-3); }
.gh-sem span { top: 27px; font-size: 10.5px; color: var(--ink-3); padding-left: 3px; border-left: 1px solid var(--rowline); height: 18px; line-height: 18px; }
.gantt-body { position: relative; }
.gb-row { position: absolute; left: 0; right: 0; border-bottom: 1px solid var(--rowline); pointer-events: none; }
.gb-row.gbr-titre { background: var(--surface-2); }
.gb-mois { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--rowline); }
.gb-mois.annee { border-left: 1px solid var(--line); }
.gb-today { position: absolute; top: 0; bottom: 0; border-left: 2px solid #ec4647; z-index: 1; pointer-events: none; }
.gh-today { position: absolute; bottom: -5px; width: 10px; height: 10px; margin-left: -4px; border-radius: 50%; background: #ec4647; box-shadow: 0 0 0 2px var(--surface); z-index: 3; }
.gb-liens { position: absolute; top: 0; left: 0; pointer-events: none; color: #8d8a80; z-index: 1; overflow: visible; }
.gb-liens path { fill: none; stroke: currentColor; stroke-width: 1.4; }
.gb-barre { position: absolute; height: 22px; border-radius: 6px; background: #9cc3f0; display: flex; align-items: center; overflow: hidden; z-index: 2; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.gb-barre.edit { cursor: grab; touch-action: none; }
.gantt.dragging .gb-barre, .gantt.dragging .gb-jalon { cursor: grabbing; }
.gb-barre.st-en_cours { background: #257de0; }
.gb-barre.st-a_venir { background: #a9cdf4; }
.gb-barre.st-terminee { background: #c9c5ba; }
.gb-barre.approx { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.55) 0 5px, transparent 5px 10px); box-shadow: inset 0 0 0 1.5px rgba(37,125,224,.55); }
.gb-barre.retard { box-shadow: inset 0 0 0 2px #ec4647; }
.gb-avance { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(0,0,0,.16); pointer-events: none; }
.gb-texte { position: relative; padding: 0 8px; font-size: 11.5px; font-weight: 650; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 1px rgba(0,0,0,.18); pointer-events: none; }
.gb-barre.st-a_venir .gb-texte, .gb-barre.st-terminee .gb-texte, .gb-barre.approx .gb-texte { color: #173b63; text-shadow: none; }
.gb-poignee { position: absolute; right: 0; top: 0; bottom: 0; width: 8px; cursor: ew-resize; }
.gb-poignee::after { content: ''; position: absolute; right: 2px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: rgba(255,255,255,.75); }
.gb-jalon { position: absolute; display: flex; align-items: center; gap: 6px; z-index: 3; white-space: nowrap; font-size: 12px; color: var(--ink-2); transform: translateX(-6px); }
.gb-jalon.edit { cursor: grab; touch-action: none; }
.gb-jalon.fait span { text-decoration: line-through; color: var(--ink-3); }
.losange { display: inline-block; flex: none; width: 11px; height: 11px; transform: rotate(45deg); background: var(--c, #6b6b6b); border-radius: 2px; box-shadow: 0 0 0 2px var(--surface); }
.gb-jalon.fait .losange, .losange.fait { background: var(--surface); box-shadow: inset 0 0 0 2px var(--c), 0 0 0 2px var(--surface); }
.gb-info-drag { position: sticky; left: 50%; top: 4px; display: inline-block; background: var(--ink); color: #fff; font-size: 12px; font-weight: 650; padding: 3px 9px; border-radius: 7px; z-index: 5; }
.plan-legende { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--ink-3); border-top: 1px solid var(--line-2); }
.plan-legende span { display: inline-flex; align-items: center; gap: 6px; }
.lg-barre { display: inline-block; width: 22px; height: 10px; border-radius: 3px; background: #9cc3f0; }
.lg-barre.st-en_cours { background: #257de0; } .lg-barre.st-a_venir { background: #a9cdf4; } .lg-barre.st-terminee { background: #c9c5ba; }
.lg-barre.approx { background: #a9cdf4 repeating-linear-gradient(135deg, rgba(255,255,255,.6) 0 3px, transparent 3px 6px); }
.lg-barre.retard { background: #fff; box-shadow: inset 0 0 0 2px #ec4647; }
.jalon-types { display: flex; flex-wrap: wrap; gap: 6px; }
.jalon-types button { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.jalon-types button.on { border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); color: var(--ink); background: color-mix(in srgb, var(--c) 9%, var(--surface)); }
/* vue d'ensemble */
.gantt.ensemble .gl-row { height: 34px; }
.gl-affaire { color: var(--ink); text-decoration: none; gap: 7px; }
.gl-affaire:hover { background: var(--surface-2); }
.gl-affaire strong { flex: none; font-variant-numeric: tabular-nums; }
.gl-affaire .gl-lib { font-weight: 450; color: var(--ink-2); }
.gb-ligne { position: absolute; left: 0; right: 0; height: 34px; display: block; border-bottom: 1px solid var(--rowline); }
.gb-ligne:hover { background: rgba(37,125,224,.05); }
.gb-seg { position: absolute; top: 9px; height: 16px; border-radius: 4px; background: #a9cdf4; font-size: 10.5px; font-weight: 650; line-height: 16px; padding: 0 5px; overflow: hidden; white-space: nowrap; color: #173b63; box-sizing: border-box; }
.gb-seg.st-en_cours { background: #257de0; color: #fff; }
.gb-seg.st-terminee { background: #c9c5ba; }
.gb-seg.approx { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.5) 0 4px, transparent 4px 8px); }
.gb-seg.retard { box-shadow: inset 0 0 0 2px #ec4647; }
.losange.mini { position: absolute; top: 12px; width: 9px; height: 9px; margin-left: -4px; z-index: 2; }
@media (max-width: 760px) {
  .gantt-left { width: 150px; }
  .plan-affaire { min-width: 0; width: 100%; max-width: none; }
  .plan-aide { display: none; }
  .gl-info .add-j { display: none; }
  .gl-row.gl-jalon .gl-info { display: none; }
}
@media print {
  .sidebar, .topbar, .no-print, .plan-actions, .toast-wrap { display: none !important; }
  .shell { display: block !important; }
  .main, .page { margin: 0 !important; padding: 0 !important; max-width: none !important; }
  .planning-page .card { box-shadow: none; border: 0; }
  .gantt-right { overflow: visible; }
  body { background: #fff; }
}
.jalons-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.jalons-list a { display: grid; grid-template-columns: 14px 92px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 7px 4px; border-bottom: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font-size: 13.5px; }
.jalons-list a:hover { background: var(--surface-2); }
.jalons-list .losange { grid-row: 1 / span 2; }
.jalons-list .jl-date { font-weight: 600; font-size: 12.5px; color: var(--ink-2); }
.jalons-list .jl-date.retard { color: #a12a2b; }
.jalons-list .jl-lib { font-weight: 550; }
.jalons-list .muted { grid-column: 3; }

.gb-jalon.retard span, .jl-retard { color: #a12a2b !important; }
.th-reel { display: block; font-style: normal; font-size: 9.5px; font-weight: 600; color: var(--ink-3); letter-spacing: .03em; text-transform: uppercase; }
th.passe { background: var(--surface-2); }
.avancement-auto { display: flex; flex-direction: column; gap: 5px; }
.avancement-auto .mini-bar { height: 6px; }
ol.steps { margin: 8px 0 0; padding-left: 20px; line-height: 1.65; }
