/* Fontanges CRM — charte graphique */
[hidden] { display: none !important; }
:root {
  --brand: #6366F1;
  --brand-dark: #4F46E5;
  --brand-ink: #1E1B4B;
  --gold: #F59E0B;
  --bg: #F4F6FB;
  --card: #FFFFFF;
  --line: #E4E8F0;
  --line-soft: #EEF2F7;
  --ink: #0F172A;
  --muted: #64748B;
  --ok: #10B981;
  --warn: #F59E0B;
  --bad: #DC2626;
  --info: #3B82F6;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(40, 20, 30, .05), 0 4px 14px rgba(40, 20, 30, .05);
  --side: 248px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--bg); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 17px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 650; }
small, .muted { color: var(--muted); }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Structure ---------- */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--side); background: #0F172A;
  color: #E2E8F0; display: flex; flex-direction: column; z-index: 40; padding-top: var(--safe-t); }
.brand { display: flex; gap: 12px; align-items: center; padding: 20px 18px 16px; color: #fff; text-decoration: none !important; }
.brand-mark { width: 40px; height: 40px; border-radius: 11px; background: var(--gold); color: var(--brand-ink);
  display: grid; place-items: center; font: 800 20px/1 inherit; color:#fff; background: linear-gradient(135deg,#6366F1,#A855F7 55%,#EC4899); flex: none; }
.brand strong { display: block; font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.brand-logo { width: 42px; height: 42px; border-radius: 11px; object-fit: contain; background: #fff; padding: 3px; flex: none; }
.brand small { color: #94A3B8; font-size: 12px; }
.sidebar nav { flex: 1; overflow-y: auto; padding: 4px 10px; }
.nav-group { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #64748B; padding: 14px 10px 6px; }
.sidebar nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; color: #E2E8F0;
  text-decoration: none; font-weight: 500; margin-bottom: 2px; }
.sidebar nav a:hover { background: rgba(255, 255, 255, .08); }
.sidebar nav a.active { background: linear-gradient(90deg, rgba(99,102,241,.35), rgba(168,85,247,.18)); color: #fff; }
.me { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid rgba(255, 255, 255, .1); }
.me > div:nth-child(2) { flex: 1; min-width: 0; }
.me strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me small { color: #94A3B8; }
.me a { color: #E2E8F0; font-size: 17px; padding: 4px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--brand-ink);
  display: grid; place-items: center; font-weight: 700; flex: none; }
.version { font-size: 11px; color: #64748B; padding: 0 16px 12px; }
.main { margin-left: var(--side); padding: 26px 30px 60px; max-width: 1500px; }
.topbar, .tabbar, .scrim { display: none; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); margin-top: 4px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- Composants ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line-soft); }
.card-pad { padding: 18px 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px 0; flex-wrap: wrap; }
.card-body { padding: 14px 20px 18px; }
.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 10px; font: inherit; font-weight: 550;
  cursor: pointer; text-decoration: none !important; white-space: nowrap; min-height: 38px; }
.btn:hover { border-color: #C7D0DD; background: #F8FAFC; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--brand-ink); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.danger { color: var(--bad); border-color: #FECACA; }
.btn.danger:hover { background: #FEF2F2; }
.btn.sm { padding: 5px 10px; min-height: 30px; font-size: 13px; border-radius: 8px; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn .ic { width: 17px; height: 17px; }
.link-btn { background: none; border: 0; color: var(--brand); padding: 0; font: inherit; cursor: pointer; }
.link-btn.danger { color: var(--bad); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px;
  font-weight: 600; white-space: nowrap; background: color-mix(in srgb, var(--c, #64748B) 14%, white); color: color-mix(in srgb, var(--c, #64748B) 80%, black); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, #64748B); }
.pill.plain::before { display: none; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: #EEF2F7; color: #475569; }
.tag.ok { background: #DCFCE7; color: #166534; }
.tag.warn { background: #FEF3C7; color: #92400E; }
.tag.bad { background: #FEE2E2; color: #991B1B; }
.tag.info { background: #DBEAFE; color: #1E40AF; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); vertical-align: middle; }

.flashes { margin-bottom: 16px; display: grid; gap: 8px; }
.flash { padding: 11px 14px; border-radius: 10px; background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.flash.error { background: #FEF2F2; color: #991B1B; border-color: #FECACA; }

/* Formulaires */
label { display: block; font-size: 13px; font-weight: 600; color: #475569; margin-bottom: 5px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time],
input[type=search], input[type=tel], input[type=file], select, textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 9px 11px; border: 1px solid #D5DCE7; border-radius: 10px;
  background: #fff; color: var(--ink); min-height: 40px; }
@media (min-width: 900px) { input, select, textarea { font-size: 15px !important; } }
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 35%, transparent); border-color: var(--brand); }
input[type=color] { width: 46px; height: 38px; padding: 2px; border: 1px solid #D5DCE7; border-radius: 8px; background: #fff; }
.field { margin-bottom: 14px; }
.fields { display: grid; gap: 0 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.fields .wide { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); font-size: 14px; }
.check input { width: 18px; height: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips label { margin: 0; }
.chips input { display: none; }
.chips span { display: inline-block; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-weight: 550; cursor: pointer; font-size: 13.5px; }
.chips input:checked + span { background: var(--brand); color: #fff; border-color: var(--brand); }
.chips span.busy { opacity: .45; text-decoration: line-through; }
.form-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; }
.inline-form { display: inline; }
details.add { border: 1px dashed #CBD5E1; border-radius: 12px; padding: 0; background: #F8FAFF; margin-top: 12px; }
details.add > summary { cursor: pointer; padding: 10px 14px; font-weight: 600; color: var(--brand); list-style: none; }
details.add > summary::-webkit-details-marker { display: none; }
details.add[open] > summary { border-bottom: 1px dashed #CBD5E1; }
details.add > div { padding: 14px; }

/* Tableaux */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
  font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #F8FAFC; }
.t td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tr.clickable { cursor: pointer; }
.t tr.clickable:hover td { background: #F5F7FF; }
.t .num, .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t td.actions-cell { text-align: right; white-space: nowrap; }
.empty { padding: 26px; text-align: center; color: var(--muted); }

/* KPI */
.kpi { padding: 16px 18px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line-soft);
  position: relative; overflow: hidden; }
.kpi::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--c, var(--brand)); }
.kpi .label { font-size: 12.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.kpi .value { font-size: 26px; font-weight: 700; margin-top: 4px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.kpi .hint { font-size: 13px; color: var(--muted); margin-top: 2px; }
a.kpi { color: inherit; text-decoration: none !important; display: block; }
a.kpi:hover { transform: translateY(-1px); }

.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; }
.bar-track { display: block; height: 10px; background: #EEF2F7; border-radius: 99px; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 99px; background: var(--c, var(--brand)); }

.list-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.list-item:last-child { border-bottom: 0; }
.list-item .grow { flex: 1; min-width: 0; }
.date-box { width: 46px; flex: none; text-align: center; border-radius: 10px; background: #EEF0FF; color: var(--brand); padding: 5px 0; line-height: 1.1; }
.date-box b { display: block; font-size: 18px; }
.date-box small { font-size: 11px; text-transform: uppercase; color: var(--brand); }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Pipeline ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.seg { display: inline-flex; background: #E8EDF5; border-radius: 10px; padding: 3px; }
.seg a { padding: 6px 13px; border-radius: 8px; color: #475569; font-weight: 600; font-size: 14px; text-decoration: none !important; }
.seg a.on { background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.toolbar select { width: auto; min-width: 170px; }
.board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: flex-start; scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch; }
.col { flex: 0 0 272px; background: #EDF1F7; border-radius: 14px; scroll-snap-align: start; display: flex; flex-direction: column;
  max-height: calc(100vh - 190px); }
.col-head { padding: 12px 12px 10px; border-top: 4px solid var(--c); border-radius: 14px 14px 0 0; }
.col-head .row { justify-content: space-between; }
.col-head h3 { font-size: 14px; }
.col-head .count { background: #fff; border-radius: 99px; padding: 1px 9px; font-size: 12.5px; font-weight: 700; color: var(--c); }
.col-head .total { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.col-body { padding: 4px 8px 10px; overflow-y: auto; min-height: 60px; flex: 1; }
.col.drop-hover { outline: 2px dashed var(--c); outline-offset: -3px; }
.ecard { background: #fff; border-radius: 11px; padding: 11px 12px 10px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
  border-left: 4px solid var(--tc, #ccc); cursor: grab; position: relative; }
.ecard:hover { box-shadow: 0 3px 10px rgba(0, 0, 0, .1); }
.ecard.dragging { opacity: .45; }
.ecard .t1 { font-weight: 650; font-size: 14px; line-height: 1.3; color: var(--ink); display: block; }
.ecard .t2 { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.ecard .meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; font-size: 12.5px; }
.ecard .meta .amt { font-weight: 700; color: var(--ink); margin-left: auto; }
.ecard .stage-select { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; min-height: 0; opacity: 0;
  padding: 0; cursor: pointer; }
.ecard .stage-dot { position: absolute; top: 9px; right: 9px; width: 20px; height: 20px; border-radius: 6px; display: grid;
  place-items: center; color: var(--muted); font-size: 14px; pointer-events: none; }
.ecard .stage-dot::after { content: "⇄"; }
.ecard:hover .stage-dot { background: #EEF2F7; }
.pay { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; font-size: 12px; padding: 1px 7px; border-radius: 6px; background: #EEF2F7; color: #475569; }
.pay.done { background: #DCFCE7; color: #166534; }
.pay.late { background: #FEE2E2; color: #991B1B; }
.pay i { display: inline-block; width: 22px; height: 5px; border-radius: 3px; background: #E2E8F0; overflow: hidden; position: relative; }
.pay i b { position: absolute; inset: 0 auto 0 0; background: currentColor; }

/* Frise */
.tl { position: relative; min-width: 920px; }
.tl-head { display: flex; position: relative; height: 34px; border-bottom: 1px solid var(--line); margin-left: 230px; }
.tl-month { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--line); padding: 8px 8px; font-size: 12.5px;
  font-weight: 650; color: #475569; text-transform: capitalize; }
.tl-body { position: relative; }
.tl-grid { position: absolute; top: 0; bottom: 0; left: 230px; right: 0; pointer-events: none; }
.tl-grid span { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--line-soft); }
.tl-today { position: absolute; top: -34px; bottom: 0; border-left: 2px dashed var(--bad); z-index: 2; }
.tl-today::before { content: "Aujourd'hui"; position: absolute; top: 2px; left: 4px; font-size: 11px; color: var(--bad); font-weight: 700; white-space: nowrap; }
.tl-row { display: flex; align-items: center; height: 42px; border-bottom: 1px solid var(--line-soft); position: relative; }
.tl-label { width: 230px; flex: none; padding: 0 12px; font-size: 13.5px; line-height: 1.2; }
.tl-label a { color: var(--ink); font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-label small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-track { position: relative; flex: 1; height: 100%; }
.tl-bar { position: absolute; top: 9px; height: 24px; border-radius: 7px; background: var(--c); color: #fff; font-size: 12px; font-weight: 650;
  padding: 3px 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
  min-width: 10px; text-decoration: none !important; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Fiche affaire ---------- */
.hero { padding: 20px 22px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line-soft);
  border-top: 5px solid var(--tc, var(--brand)); margin-bottom: 16px; }
.hero h1 { font-size: 23px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; color: #334155; font-size: 14px; }
.hero .facts b { color: var(--ink); }
.stepper { display: flex; gap: 4px; margin-top: 16px; overflow-x: auto; padding-bottom: 2px; }
.stepper form { flex: 1; min-width: 98px; }
.stepper button { width: 100%; border: 0; padding: 8px 6px; font: inherit; font-size: 12.5px; font-weight: 650; cursor: pointer;
  background: #EEF2F7; color: #64748B; border-radius: 8px; white-space: nowrap; }
.stepper button.done { background: color-mix(in srgb, var(--c) 18%, white); color: color-mix(in srgb, var(--c) 75%, black); }
.stepper button.current { background: var(--c); color: #fff; box-shadow: 0 2px 6px color-mix(in srgb, var(--c) 40%, transparent); }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 16px; position: sticky;
  top: 0; background: var(--bg); z-index: 5; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 11px 14px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap;
  text-decoration: none !important; font-size: 14.5px; }
.tabs a.on { color: var(--brand); border-bottom-color: var(--brand); }
.tabs a .n { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 99px; background: #E8EDF5; color: #475569;
  font-size: 11.5px; margin-left: 4px; text-align: center; }
.tab-panel { display: none; }
.tab-panel.on { display: block; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.log-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.log-item .when { color: var(--muted); font-size: 12.5px; width: 120px; flex: none; }
.log-item.note { background: #FFFBEB; margin: 0 -10px; padding: 9px 10px; border-radius: 8px; }
.res-list { display: grid; gap: 8px; }
.res { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: #F8FAFC; border: 1px solid var(--line-soft); }
.res .sw { width: 10px; align-self: stretch; border-radius: 5px; background: var(--c, #CBD5E1); flex: none; }
.res .grow { flex: 1; min-width: 0; }
.res.option { background: repeating-linear-gradient(135deg, #FFFBEB, #FFFBEB 8px, #FEF3C7 8px, #FEF3C7 16px); }
.room-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.room-chip { padding: 4px 9px; border-radius: 8px; background: #E0F2FE; color: #075985; font-weight: 650; font-size: 13px; }
.room-chip.option { background: #FEF3C7; color: #92400E; }

/* ---------- Devis ---------- */
.lines { width: 100%; border-collapse: collapse; }
.lines th { font-size: 12px; text-transform: uppercase; color: var(--muted); text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.lines td { padding: 6px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.lines input, .lines select { min-height: 36px; padding: 6px 8px; }
.lines .c-label { min-width: 240px; }
.lines .c-qty { width: 80px; } .lines .c-unit { width: 90px; } .lines .c-price { width: 110px; }
.lines .c-vat { width: 84px; } .lines .c-disc { width: 76px; } .lines .c-total { width: 110px; text-align: right; font-weight: 650; padding-top: 14px; }
.lines .desc { margin-top: 4px; font-size: 13px !important; min-height: 32px; }
.totals { margin-left: auto; width: min(360px, 100%); font-size: 14.5px; }
.totals div { display: flex; justify-content: space-between; padding: 5px 0; }
.totals .grand { border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 9px; font-size: 18px; font-weight: 750; }

/* ---------- Planning ---------- */
.plan-wrap { overflow: auto; -webkit-overflow-scrolling: touch; max-height: calc(100vh - 210px); border-radius: var(--radius); }
table.plan { border-collapse: separate; border-spacing: 0; font-size: 12.5px; min-width: 100%; }
.plan th, .plan td { border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.plan thead th { position: sticky; top: 0; background: #F8FAFC; z-index: 3; padding: 7px 4px; min-width: 92px; font-weight: 600; text-align: center; }
.plan thead th.we { background: #F1F4FA; }
.plan thead th.td { background: #EEF0FF; color: var(--brand); }
.plan th.res-h { position: sticky; left: 0; z-index: 4; background: #fff; text-align: left; padding: 8px 10px; min-width: 150px; max-width: 190px; }
.plan tbody th.res-h { z-index: 2; font-weight: 600; }
.plan tbody th.res-h small { display: block; font-weight: 400; }
.plan td { height: 46px; padding: 3px; vertical-align: top; background: #fff; }
.plan td.we { background: #FAFBFE; }
.plan tr.grp th { position: sticky; left: 0; background: #EEF2F8; text-align: left; padding: 5px 10px; font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .05em; color: var(--muted); }
.plan tr.grp td { background: #EEF2F8; height: auto; }
.blk { display: block; border-radius: 6px; padding: 3px 6px; color: #fff; background: var(--c); font-weight: 600; font-size: 11.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; text-decoration: none !important; line-height: 1.35; }
.blk.option { background: repeating-linear-gradient(135deg, var(--c), var(--c) 6px, color-mix(in srgb, var(--c) 70%, white) 6px, color-mix(in srgb, var(--c) 70%, white) 12px); }
.occ { font-size: 11px; font-weight: 700; color: var(--muted); }
.occ b { color: var(--ink); }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.st-prete { background: var(--ok); } .st-a_faire { background: var(--warn); } .st-hors_service { background: var(--bad); }

/* Équipes */
.shift { display: block; border-radius: 6px; padding: 3px 6px; background: color-mix(in srgb, var(--c) 15%, white); border-left: 3px solid var(--c);
  font-size: 11.5px; margin-bottom: 3px; color: var(--ink); text-decoration: none !important; line-height: 1.3; }
.shift b { display: block; }

/* Cuisine / ménage */
.day-card { margin-bottom: 14px; }
.day-card .day-h { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.day-card .day-h h2::first-letter { text-transform: uppercase; }
.meal { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); align-items: start; }
.meal:last-child { border-bottom: 0; }
.meal .time { font-weight: 750; font-size: 17px; color: var(--brand); }
.meal .covers { text-align: center; background: #FFF7ED; color: #9A3412; border-radius: 10px; padding: 6px 10px; font-weight: 750; font-size: 20px; line-height: 1; }
.meal .covers small { display: block; font-size: 10.5px; font-weight: 600; color: #C2410C; }
.diet { margin-top: 6px; padding: 6px 9px; border-radius: 8px; background: #FEF2F2; color: #991B1B; font-size: 13px; font-weight: 600; }
.rooms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.room-tile { border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 10px; }
.room-tile .no { font-size: 19px; font-weight: 750; }
.room-tile form { margin-top: 6px; display: flex; gap: 4px; }
.room-tile form button { flex: 1; border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 5px 0; font-size: 12px; cursor: pointer; font-weight: 600; }
.room-tile form button.on { background: var(--c); border-color: var(--c); color: #fff; }

/* Connexion */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(circle at 15% 15%, #EC4899 0, transparent 40%), radial-gradient(circle at 85% 80%, #06B6D4 0, transparent 40%), linear-gradient(135deg, #4F46E5, #7C3AED); }
.auth .card { width: min(420px, 100%); padding: 28px; }
.auth .brand-mark { margin: 0 auto 12px; width: 54px; height: 54px; font-size: 30px; }
.auth h1 { text-align: center; font-weight: 750; letter-spacing: -.02em; }
.auth .auth-logo { display: block; max-width: 150px; max-height: 90px; margin: 0 auto 14px; object-fit: contain; }
.auth p.sub { text-align: center; color: var(--muted); margin: 6px 0 22px; }
body.bare .main { margin: 0; padding: 0; max-width: none; }

/* ---------- Mobile ---------- */
@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --side: 0px; }
  body { padding-bottom: calc(64px + var(--safe-b)); }
  .sidebar { width: 280px; transform: translateX(-100%); transition: transform .22s ease; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
  body.menu-open .sidebar { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(20, 5, 10, .45); z-index: 35; opacity: 0; pointer-events: none; transition: opacity .2s; }
  body.menu-open .scrim { opacity: 1; pointer-events: auto; }
  .topbar { display: flex; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 30; background: linear-gradient(90deg, #4F46E5, #7C3AED); color: #fff;
    padding: calc(8px + var(--safe-t)) 10px 8px; }
  .topbar-title { flex: 1; font-weight: 650; font-size: 16.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .icon-btn { background: none; border: 0; color: #fff; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; }
  .icon-btn .ic { width: 24px; height: 24px; }
  .topbar .btn { min-height: 34px; padding: 6px 11px; background: var(--gold); border-color: var(--gold); color: var(--brand-ink); }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line);
    padding-bottom: var(--safe-b); box-shadow: 0 -2px 12px rgba(0, 0, 0, .05); }
  .tabbar a, .tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 7px; color: #94A3B8;
    font-size: 11px; font-weight: 600; background: none; border: 0; font-family: inherit; text-decoration: none !important; }
  .tabbar a.active { color: var(--brand); }
  .tabbar .ic { width: 23px; height: 23px; }
  .main { padding: 14px 12px 30px; }
  .page-head h1 { font-size: 21px; }
  .page-head.hide-m h1 { display: none; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 12px 14px; }
  .kpi .value { font-size: 21px; }
  .card-head, .card-body { padding-left: 14px; padding-right: 14px; }
  .card-pad { padding: 14px; }
  .col { flex-basis: 84vw; max-height: none; }
  .board { margin: 0 -12px; padding: 0 12px 12px; scroll-snap-type: x mandatory; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .hero { padding: 16px; }
  .hero h1 { font-size: 20px; }
  .tabs { margin: 0 -12px 14px; padding: 0 6px; top: calc(56px + var(--safe-t)); }
  .t.responsive thead { display: none; }
  .t.responsive tr { display: block; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
  .t.responsive td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 3px 0; }
  .t.responsive td[data-l]::before { content: attr(data-l); color: var(--muted); font-size: 13px; }
  .t.responsive td.first { font-weight: 650; font-size: 15px; display: block; }
  .t.responsive td.actions-cell { justify-content: flex-start; }
  .lines thead { display: none; }
  .lines tr { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .lines td { border: 0; padding: 0; }
  .lines .c-label { grid-column: 1 / -1; min-width: 0; }
  .lines .c-qty, .lines .c-unit, .lines .c-price { grid-column: span 2; width: auto; }
  .lines .c-vat, .lines .c-disc { grid-column: span 2; width: auto; }
  .lines .c-total { grid-column: span 2; width: auto; padding-top: 8px; }
  .lines td[data-l]::before { content: attr(data-l); display: block; font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; }
  .bar-row { grid-template-columns: 96px 1fr auto; }
  .log-item .when { width: 92px; }
  .meal { grid-template-columns: 54px 1fr auto; padding: 12px; }
  .hide-mobile { display: none !important; }
  .plan-wrap { max-height: none; margin: 0 -12px; border-radius: 0; }
}
@media (min-width: 901px) { .only-mobile { display: none !important; } }

/* ---------- Impression (devis, bon de commande, fiche de mission) ---------- */
.doc { background: #fff; max-width: 880px; margin: 0 auto; padding: 40px 46px; box-shadow: var(--shadow); font-size: 13.5px; }
.doc-head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 3px solid var(--brand); padding-bottom: 18px; margin-bottom: 22px; }
.doc-head .venue strong { font-weight: 750; font-size: 20px; color: var(--ink); display: block; }
.doc-logo { max-height: 64px; max-width: 180px; object-fit: contain; display: block; margin-bottom: 8px; }
.doc-head .ref { text-align: right; }
.doc-head .ref h1 { font-size: 22px; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; }
.doc .parties { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 18px; }
.doc .box { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.doc .box h3 { font-size: 11.5px; text-transform: uppercase; color: var(--muted); letter-spacing: .06em; margin-bottom: 6px; }
.doc table.t th { background: #EEF0FF; color: var(--brand); }
.doc .cond { white-space: pre-line; font-size: 12px; color: #334155; margin-top: 20px; border-top: 1px solid var(--line); padding-top: 12px; }
.doc .sign { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 26px; }
.doc .sign div { border: 1px dashed #CBD5E1; border-radius: 10px; height: 110px; padding: 10px; font-size: 12px; color: var(--muted); }
.doc .section { margin-top: 20px; }
.doc .section h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); border-bottom: 1px solid var(--line); padding-bottom: 5px; margin-bottom: 8px; }
.print-bar { max-width: 880px; margin: 0 auto 14px; display: flex; gap: 8px; flex-wrap: wrap; }
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; padding: 0 !important; font-size: 12px; }
  .sidebar, .topbar, .tabbar, .scrim, .print-bar, .flashes, .no-print { display: none !important; }
  .main { margin: 0 !important; padding: 0 !important; max-width: none; }
  .doc { box-shadow: none; padding: 0; max-width: none; }
  .t tr, .meal, .box { break-inside: avoid; }
  a { color: inherit; }
}
@media (max-width: 700px) {
  .doc { padding: 18px 14px; }
  .doc-head, .doc .parties, .doc .sign { display: block; }
  .doc-head .ref { text-align: left; margin-top: 12px; }
  .doc .parties .box { margin-bottom: 10px; }
}

/* ===================== Thème moderne (v1.1) ===================== */
:root { --radius: 16px; --shadow: 0 1px 2px rgba(15,23,42,.04), 0 6px 20px rgba(15,23,42,.06); }
body { font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
h1 { font-weight: 800; letter-spacing: -.02em; }
.sidebar { border-right: 1px solid rgba(255,255,255,.04); }
.sidebar nav a { color: #CBD5E1; }
.sidebar nav a .nav-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--ic) 18%, transparent); color: var(--ic); }
.sidebar nav a .nav-ic .ic { width: 18px; height: 18px; }
.sidebar nav a.active .nav-ic { background: var(--ic); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--ic) 45%, transparent); }
.avatar { background: linear-gradient(135deg, #6366F1, #EC4899); color: #fff; }
.btn.primary { background: linear-gradient(135deg, #6366F1, #8B5CF6); border-color: transparent; box-shadow: 0 4px 12px rgba(99,102,241,.25); }
.btn.primary:hover { background: linear-gradient(135deg, #4F46E5, #7C3AED); }
.btn.gold { background: linear-gradient(135deg, #F59E0B, #F97316); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(249,115,22,.25); }
.btn.ok { background: linear-gradient(135deg, #10B981, #059669); border-color: transparent; }
.kpi { background: linear-gradient(135deg, color-mix(in srgb, var(--c, #6366F1) 13%, white), #fff 70%); border-color: color-mix(in srgb, var(--c, #6366F1) 18%, white); }
.kpi::before { width: 0; }
.kpi .label { color: color-mix(in srgb, var(--c, #6366F1) 75%, #0F172A); }
.kpi .value { font-weight: 800; }
.card-head h2 { font-weight: 700; }
.tabs a.on { color: #4F46E5; border-bottom-color: #6366F1; }
.seg a.on { color: #4F46E5; }
.date-box { background: linear-gradient(135deg, #EEF2FF, #FCE7F3); color: #4F46E5; }
.date-box small { color: #7C3AED; }
.col { background: #EEF2F7; }
.col-head { border-top-width: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 16%, transparent), transparent); }
.col-head h3 { color: color-mix(in srgb, var(--c) 70%, #0F172A); }
.hero { border-top: 0; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--tc, #6366F1), #A855F7, #EC4899); }
.doc-head { border-bottom-color: #6366F1; }
.doc .section h2, .doc-head .ref h1 { color: #4F46E5; }
.doc table.t th { background: #EEF2FF; color: #4F46E5; }
@media (max-width: 900px) { .topbar .btn { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.35); color: #fff; box-shadow: none; } .tabbar a.active { color: #6366F1; } }
.nav-badge { margin-left: auto; background: #EF4444; color: #fff; border-radius: 99px; font-size: 11.5px; font-weight: 700; padding: 1px 8px; }
/* Maintenance */
.mt-card { display: flex; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); color: inherit; text-decoration: none !important; align-items: flex-start; }
.mt-card:hover { background: #F8FAFF; }
.mt-card:last-child { border-bottom: 0; }
.mt-urg { width: 6px; align-self: stretch; border-radius: 4px; background: var(--c); flex: none; }
.mt-card .grow { flex: 1; min-width: 0; }
.mt-card .t1 { font-weight: 650; font-size: 15px; }
.mt-card .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; font-size: 12.5px; color: var(--muted); }
.mt-side { text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.status-steps { display: flex; gap: 6px; flex-wrap: wrap; }
.status-steps button { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 650; font-size: 13.5px; cursor: pointer; color: #475569; }
.status-steps button.on { background: var(--c); border-color: var(--c); color: #fff; box-shadow: 0 4px 10px color-mix(in srgb, var(--c) 35%, transparent); }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.photos a { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #EEF2F7; }
.photos img { width: 100%; height: 100%; object-fit: cover; }
.msg { display: flex; gap: 10px; margin-bottom: 12px; }
.msg .bubble { background: #F1F5F9; border-radius: 4px 14px 14px 14px; padding: 9px 12px; max-width: 85%; }
.msg.mine { flex-direction: row-reverse; }
.msg.mine .bubble { background: linear-gradient(135deg, #EEF2FF, #F5F3FF); border-radius: 14px 4px 14px 14px; }
.msg .who { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.msg.sys { justify-content: center; font-size: 12.5px; color: var(--muted); }
.radio-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.radio-chips label { margin: 0; }
.radio-chips input { display: none; }
.radio-chips span { display: inline-block; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; cursor: pointer; font-size: 13.5px; color: #334155; }
.radio-chips input:checked + span { background: var(--c, #6366F1); border-color: var(--c, #6366F1); color: #fff; }
.plan td .blk, .plan td .shift { max-width: 150px; }
.sidebar nav a { padding: 6px 10px; }
.nav-group { padding: 10px 10px 4px; }
.status-steps button.done { background: color-mix(in srgb, var(--c) 16%, white); border-color: color-mix(in srgb, var(--c) 35%, white); color: color-mix(in srgb, var(--c) 75%, #0F172A); }
.brand-big { flex-direction: column; align-items: center; gap: 6px; padding: 18px 18px 12px; text-align: center; }
.brand-big img { width: 150px; height: auto; display: block; }
.brand-big small { color: #94A3B8; font-size: 11.5px; letter-spacing: .04em; }
.auth .auth-logo { max-width: 230px; max-height: none; }
.doc-logo { max-height: 80px; }
/* Planning maintenance : une ligne par jour */
.mday { display: grid; grid-template-columns: 120px 1fr; border-bottom: 1px solid var(--line-soft); }
.mday:last-child { border-bottom: 0; }
.mday .dlabel { padding: 12px 14px; background: #F8FAFC; border-right: 1px solid var(--line-soft); line-height: 1.2; }
.mday .dlabel b { display: block; font-size: 22px; font-weight: 800; color: #0F172A; }
.mday .dlabel small { text-transform: capitalize; }
.mday.today .dlabel { background: linear-gradient(135deg, #EEF2FF, #F5F3FF); }
.mday.today .dlabel b { color: #4F46E5; }
.mday.we .dlabel { background: #F1F4FA; }
.mday .tasks { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px; align-items: flex-start; min-height: 54px; }
.mday .none { color: #CBD5E1; font-size: 13px; padding-top: 6px; }
.mtask { display: block; width: 250px; border-radius: 12px; padding: 9px 11px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--c);
  color: inherit; text-decoration: none !important; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.mtask:hover { box-shadow: 0 4px 12px rgba(15,23,42,.08); }
.mtask .tt { font-weight: 650; font-size: 14px; line-height: 1.25; }
.mtask .tm { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.mtask .row { gap: 4px; margin-top: 6px; }
.mtask.done { opacity: .6; }
@media (max-width: 900px) { .mday { grid-template-columns: 70px 1fr; } .mday .dlabel { padding: 10px 8px; } .mtask { width: 100%; } }
.mday.empty .dlabel { padding-top: 6px; padding-bottom: 6px; display: flex; gap: 6px; align-items: baseline; }
.mday.empty .dlabel b { font-size: 15px; }
.mday.empty .tasks { min-height: 0; padding: 6px 12px; }
.flash.warn { background: #FFFBEB; color: #92400E; border-color: #FDE68A; }
.opt-rank { display: inline-block; font-size: 11px; font-weight: 800; padding: 0 6px; border-radius: 6px; background: #FEF3C7; color: #92400E; }
.opt-rank.r2 { background: #FEE2E2; color: #991B1B; }
/* Planning général : jours en lignes, espaces en colonnes */
table.gplan { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 12.5px; }
.gplan th, .gplan td { border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.gplan thead th { position: sticky; top: 0; z-index: 3; background: #fff; padding: 10px 8px 8px; text-align: left; min-width: 132px;
  border-top: 4px solid var(--c, #CBD5E1); vertical-align: bottom; }
.gplan thead th .gh { display: block; font-weight: 700; font-size: 12.5px; color: #0F172A; }
.gplan thead th small { font-weight: 500; }
.gplan thead th.resto-h { --c: #F97316; background: #FFF7ED; min-width: 170px; }
.gplan .gday { position: sticky; left: 0; z-index: 2; background: #F8FAFC; width: 64px; min-width: 64px; text-align: center; padding: 6px 4px; line-height: 1.1; }
.gplan thead .gday { z-index: 4; border-top-color: transparent; text-align: center; }
.gplan .gday b { display: block; font-size: 19px; font-weight: 800; color: #0F172A; }
.gplan .gday small { text-transform: capitalize; font-size: 11px; }
.gplan tr.we .gday, .gplan tr.we td { background: #FAFBFE; }
.gplan tr.td .gday { background: linear-gradient(135deg, #EEF2FF, #F5F3FF); }
.gplan tr.td .gday b { color: #4F46E5; }
.gplan td { vertical-align: top; padding: 4px; height: 58px; background: #fff; }
.gplan td.resto { background: #FFFBF5; }
.slot.can { cursor: pointer; position: relative; }
.slot.can:hover { background: #F5F7FF !important; box-shadow: inset 0 0 0 2px #C7D2FE; }
.slot.can:empty::after, .slot.can:hover::after { content: "+"; position: absolute; right: 6px; bottom: 2px; color: #A5B4FC; font-weight: 700; font-size: 15px; }
.gblk, .meal-chip, .plan .blk { display: block; width: 100%; text-align: left; font: inherit; border: 0; cursor: pointer; margin-bottom: 3px; }
.gblk { border-radius: 8px; padding: 5px 7px; background: color-mix(in srgb, var(--c) 14%, white); border-left: 4px solid var(--c); color: #0F172A; line-height: 1.25; }
.gblk b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.gblk span { font-size: 11px; color: #475569; }
.gblk.option { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 10%, white), color-mix(in srgb, var(--c) 10%, white) 6px, #fff 6px, #fff 12px); border-left-style: dashed; }
.gblk em { font-style: normal; margin-left: 4px; }
.gblk:hover, .meal-chip:hover { filter: brightness(.97); box-shadow: 0 2px 8px rgba(15,23,42,.1); }
.meal-chip { border-radius: 8px; padding: 4px 7px; background: #fff; border: 1px solid color-mix(in srgb, var(--c) 35%, white); border-left: 4px solid var(--c); line-height: 1.25; }
.meal-chip b { display: block; font-size: 11.5px; color: color-mix(in srgb, var(--c) 75%, #0F172A); }
.meal-chip span { font-size: 11px; color: #475569; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
dialog.dlg { border: 0; border-radius: 18px; padding: 20px 22px; width: min(620px, 94vw); box-shadow: 0 20px 60px rgba(15,23,42,.3); }
dialog.dlg::backdrop { background: rgba(15, 23, 42, .45); }
.dlg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.dlg-head .link-btn { font-size: 20px; color: var(--muted); }
/* Listing repas */
.doc.listing { max-width: 1100px; }
.lday { margin-top: 18px; }
.lday h2 { font-size: 15px; text-transform: capitalize; color: #4F46E5; border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 4px; }
.lday h2 small { text-transform: none; color: var(--muted); font-weight: 600; }
.ltrack-head { position: relative; height: 18px; margin-left: 46%; font-size: 10.5px; color: var(--muted); }
.ltrack-head span { position: absolute; transform: translateX(-50%); }
.lrow { display: grid; grid-template-columns: 46% 1fr; gap: 0; align-items: center; border-bottom: 1px solid var(--line-soft); padding: 8px 0; break-inside: avoid; }
.linfo { padding-right: 14px; font-size: 13px; }
.ltime { font-size: 16px; color: #0F172A; }
.lmenu { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; font-size: 12.5px; }
.lmenu i { font-style: normal; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.ltrack { position: relative; height: 34px; background: #F8FAFC; border-radius: 8px; }
.ltrack i { position: absolute; top: 0; bottom: 0; border-left: 1px dashed #E2E8F0; }
.lblock { position: absolute; top: 4px; bottom: 4px; border-radius: 7px; background: var(--c); color: #fff; font-weight: 700; font-size: 12px;
  display: grid; place-items: center; box-shadow: 0 2px 6px rgba(15,23,42,.15); user-select: none; touch-action: none; }
.lblock.movable { cursor: grab; }
.lblock.drag { cursor: grabbing; box-shadow: 0 6px 16px rgba(15,23,42,.3); transform: scale(1.05); }
.lblock.saved { outline: 3px solid #10B981; }
@media print { .lrow { grid-template-columns: 1fr; } .doc.listing { max-width: none; } }
@media (max-width: 700px) { .lrow { grid-template-columns: 1fr; gap: 6px; } .ltrack-head { margin-left: 0; } }
.rtable input, .rtable select { min-height: 34px; padding: 5px 8px; font-size: 14px !important; }
.rtable td { padding: 6px; }
.rtable small { display: block; color: var(--muted); }
.rtable tr.new-row input[name=guest_name] { border-style: dashed; }
.dish-row { padding: 3px 0; flex-wrap: nowrap; }
/* Espace client */
body.portal { background: linear-gradient(180deg, #F5F3FF, #F4F6FB 300px); }
.portal-wrap { max-width: 860px; margin: 0 auto; padding: 24px 14px 40px; }
.portal-head { display: flex; gap: 20px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.portal-head img { width: 150px; }
.portal-head h1 { font-size: 24px; }
.portal-steps { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.portal-steps a { background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; font-weight: 600; color: #4F46E5; }
.pmeal { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.pmeal h3 { font-size: 16px; margin-bottom: 10px; }
.pcourse { background: #F8FAFC; border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.pcourse-h { display: flex; justify-content: space-between; margin-bottom: 6px; }
.psum { font-weight: 700; color: #92400E; }
.psum.ok { color: #059669; } .psum.over { color: #DC2626; }
.pdish { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; border-top: 1px solid #EEF2F7; margin: 0; color: var(--ink); font-weight: 500; }
.pdish small { display: block; color: var(--muted); font-weight: 400; }
.pdish input { width: 90px; flex: none; }
.btn.big { min-height: 46px; padding: 10px 22px; font-size: 16px; }
.prtable input { min-height: 36px; }
table.gplan { table-layout: fixed; min-width: 1080px; }
.gplan thead th { min-width: 0; padding: 8px 6px 6px; }
.gplan thead th .gh { font-size: 12px; line-height: 1.2; }
.gplan .gday { width: 58px; }
.gplan thead th.resto-h { width: 150px; min-width: 0; }
.gplan td { height: 46px; }
.gblk b, .meal-chip span { max-width: none; }
.gplan td.resto { border-right: 2px solid #FED7AA; }
body.portal .topbar, body.portal .tabbar, body.portal .sidebar, body.portal .scrim { display: none !important; }
body.portal { padding-bottom: 0 !important; }
.lday h2 { text-transform: none; }
.lday h2::first-letter { text-transform: uppercase; }
.gblk b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.2; }
.gblk span { display: block; }

/* Bandeau version d'essai */
.trial-band { margin: 0 0 16px; padding: 9px 14px; border-radius: 12px; font-size: 13.5px;
  background: linear-gradient(90deg, #FEF3C7, #FCE7F3); color: #78350F; border: 1px solid #FCD34D; }
.trial-band a { color: #9D174D; font-weight: 600; margin-left: 6px; }
.test-accounts { width: 100%; border-collapse: collapse; font-size: 14px; }
.test-accounts td { padding: 7px 6px; border-bottom: 1px solid #E2E8F0; }
.danger-zone { border: 1px solid #FCA5A5; background: #FEF2F2; border-radius: 14px; padding: 16px; }
.setup-choice { display: grid; gap: 10px; margin: 8px 0 18px; padding: 12px; border-radius: 14px; background: #EEF2FF; }
.setup-choice .check { align-items: flex-start; gap: 10px; }
.setup-choice small { font-size: 12.5px; line-height: 1.35; }
