:root {
  --primary: #0B7A75;
  --primary-2: #13A89E;
  --primary-soft: #E3F5F2;
  --bg: #F3F8F8;
  --card: #FFFFFF;
  --ink: #0F2A2E;
  --muted: #5F7A7D;
  --line: #DCE9EA;
  --ok: #16A34A;
  --ok-soft: #E6F6EC;
  --warn: #D97706;
  --warn-soft: #FEF3C7;
  --bad: #DC2626;
  --bad-soft: #FEE2E2;

  --c-temp: #2563EB;
  --c-oil: #D4A017;
  --c-marinade: #E4572E;
  --c-label: #0B7A75;
  --c-cleaning: #10B981;
  --c-reception: #6366F1;
  --c-cooling: #06B6D4;
  --c-nc: #DC2626;
  --c-photo: #8B5CF6;

  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(15, 42, 46, .05), 0 4px 16px rgba(15, 42, 46, .05);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --side: 248px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--primary); }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; font-weight: 700; }
h2 { font-size: 1.1rem; font-weight: 650; }
h3 { font-size: 1rem; font-weight: 650; }
small, .muted { color: var(--muted); }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico.sm { width: 16px; height: 16px; }
.ico.lg { width: 24px; height: 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- layout */
.shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--side);
  background: var(--card); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 20px 14px; gap: 6px; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff;
}
.brand b { display: block; font-size: 1rem; }
.brand small { display: block; font-size: .78rem; margin-top: -2px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px;
  color: var(--muted); text-decoration: none; font-weight: 550;
}
.nav a:hover { background: var(--bg); color: var(--ink); }
.nav a.active { background: var(--primary-soft); color: var(--primary); }
.side-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; display: flex; align-items: center; gap: 10px; }
.side-foot .who { flex: 1; min-width: 0; }
.side-foot .who b, .side-foot .who small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar { display: none; }
.main { margin-left: var(--side); padding: 32px 36px 48px; max-width: 1280px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 899px) {
  .sidebar { display: none; }
  .topbar {
    display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 20;
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line); padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  }
  .topbar .brand { padding: 0; flex: 1; }
  .topbar .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
  .bottomnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(62px, 1fr);
    overflow-x: auto; scrollbar-width: none;
    background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  }
  .bottomnav::-webkit-scrollbar { display: none; }
  .bottomnav a {
    white-space: nowrap;
    display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 9px;
    color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 600;
  }
  .bottomnav a.active { color: var(--primary); }
  .main { margin-left: 0; padding: 20px 16px 96px; }
  h1 { font-size: 1.35rem; }
}
@media (min-width: 900px) { .bottomnav { display: none; } }

/* ---------------------------------------------------------------- composants */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.pad { padding: 20px; }
.grid { display: grid; gap: 16px; }
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
@media (max-width: 420px) { .grid.cards { grid-template-columns: 1fr; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 16px; border-radius: 8px; border: 1px solid transparent;
  background: var(--primary); color: #fff; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { background: #09696A; }
.btn:focus-visible, .nav a:focus-visible, .tab:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .chip:focus-within {
  outline: 3px solid rgba(19, 168, 158, .35); outline-offset: 1px;
}
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--bg); }
.btn.soft { background: var(--primary-soft); color: var(--primary); }
.btn.soft:hover { background: #d3eeea; }
.btn.danger { background: var(--card); color: var(--bad); border-color: #f5c2c2; }
.btn.danger:hover { background: var(--bad-soft); }
.btn.sm { min-height: 34px; padding: 5px 12px; font-size: .88rem; border-radius: 9px; }
.btn.icon { padding: 0; width: 38px; min-height: 38px; }
.btn.icon.sm { width: 34px; min-height: 34px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 5px;
  font-size: .76rem; font-weight: 650; background: var(--bg); color: var(--muted); white-space: nowrap;
}
.badge.ok { background: var(--ok-soft); color: #13803C; }
.badge.warn { background: var(--warn-soft); color: #B45309; }
.badge.bad { background: var(--bad-soft); color: #B91C1C; }
.badge.primary { background: var(--primary-soft); color: var(--primary); }
.badge.solid-bad { background: var(--bad); color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none;
  color: #fff; font-weight: 700; font-size: .95rem;
}

.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .ico { width: 40px; height: 40px; color: var(--primary-2); margin-bottom: 8px; }

/* ---------------------------------------------------------------- formulaires */
label.field { display: flex; flex-direction: column; gap: 5px; font-size: .85rem; font-weight: 600; color: var(--muted); min-width: 0; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=search], select, textarea {
  width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); font-weight: 500; font-size: .95rem;
}
textarea { min-height: 90px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #c4d8da; }
input:focus, select:focus, textarea:focus { border-color: var(--primary-2); outline: none; box-shadow: 0 0 0 3px rgba(19, 168, 158, .18); }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 550; color: var(--ink); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.hint { font-size: .82rem; color: var(--muted); font-weight: 400; }
.error-msg { color: var(--bad); background: var(--bad-soft); padding: 10px 12px; border-radius: 10px; font-size: .9rem; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 4px 11px; border-radius: 5px; border: 1px solid var(--line);
  font-size: .8rem; font-weight: 600; color: var(--muted); background: #fff; user-select: none;
}
.chip input:checked + span { background: var(--primary); color: #fff; border-color: var(--primary); }

.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.swatch span { display: block; width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.swatch input:checked + span { box-shadow: 0 0 0 2px var(--ink); }

/* ---------------------------------------------------------------- connexion */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background:
  radial-gradient(1200px 500px at 10% -10%, #d6f0ec 0%, transparent 60%), var(--bg); }
.login { width: 100%; max-width: 400px; padding: 32px 28px; }
.login .brand { padding: 0 0 22px; }
.login form { display: grid; gap: 14px; }
.login .btn { width: 100%; min-height: 46px; margin-top: 4px; }

/* ---------------------------------------------------------------- tableau de bord */
.summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.summary .card { padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.summary .num { font-size: 1.45rem; font-weight: 750; line-height: 1.1; }
.summary small { display: block; font-size: .8rem; }
.summary .tile-ico { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; flex: none; }
@media (max-width: 899px) { .summary { grid-template-columns: repeat(2, 1fr); } }

.est-card { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 14px; border-top: 4px solid var(--line); }
.est-card.s-ok { border-top-color: var(--ok); }
.est-card.s-warn { border-top-color: var(--warn); }
.est-card.s-bad { border-top-color: var(--bad); }
.est-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.est-card header small { display: block; }
.progress-row { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 4px 10px; font-size: .9rem; }
.progress-row .label { font-weight: 600; }
.progress-row .val { font-variant-numeric: tabular-nums; font-weight: 650; }
.progress-row .bar { grid-column: 2 / 4; height: 7px; border-radius: 3px; background: var(--bg); overflow: hidden; }
.progress-row .bar i { display: block; height: 100%; border-radius: 5px; }
.est-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; font-size: .85rem; }
.est-foot .grow { flex: 1; }

/* ---------------------------------------------------------------- listes */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.list-item .main-col { flex: 1; min-width: 0; }
.list-item .main-col b { display: block; }
.list-item .main-col small { display: block; overflow-wrap: anywhere; }
.list-item .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.list-item.inactive { opacity: .6; }
.list-item .lead-ico { width: 42px; height: 42px; border-radius: 8px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
@media (max-width: 640px) {
  .list-item { flex-wrap: wrap; }
  .list-item .acts { width: 100%; justify-content: flex-start; padding-left: 56px; }
}

/* ---------------------------------------------------------------- onglets */
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; padding: 10px 14px; border: 0; background: none; cursor: pointer; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; display: flex; align-items: center; gap: 7px; text-decoration: none;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab .count { font-size: .72rem; background: var(--bg); padding: 0 7px; border-radius: 5px; color: var(--muted); }

.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.back:hover { color: var(--primary); }

/* éditeur de config */
.items { display: flex; flex-direction: column; gap: 10px; }
.item-row { display: grid; gap: 10px 12px; padding: 14px 14px 14px 16px; align-items: end; border-left: 4px solid var(--accent, var(--line)); }
.item-row .del { align-self: end; }
.item-row .span-all { grid-column: 1 / -1; }
.item-row label.field { font-size: .78rem; }
.item-row input, .item-row select { min-height: 38px; padding: 6px 10px; font-size: .92rem; }
.editor-foot { display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.savebar {
  position: sticky; bottom: 16px; z-index: 10; margin-top: 20px; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 8px; background: var(--ink); color: #fff; box-shadow: 0 10px 30px rgba(15, 42, 46, .25);
}
.savebar .grow { flex: 1; font-weight: 600; font-size: .92rem; }
.savebar .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
@media (max-width: 899px) { .savebar { bottom: 76px; } }

.pair-code {
  font-size: clamp(2.4rem, 11vw, 4rem); font-weight: 800; letter-spacing: .12em; color: var(--primary);
  font-variant-numeric: tabular-nums; text-align: center; padding: 18px 12px; border-radius: 8px;
  background: var(--primary-soft); border: 2px dashed #9ED9D1; margin: 8px 0 12px;
}

/* ---------------------------------------------------------------- registre */
.filters { padding: 16px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr auto; gap: 12px; align-items: end; margin-bottom: 16px; }
@media (max-width: 1000px) { .filters { grid-template-columns: 1fr 1fr; } .filters .f-actions { grid-column: 1 / -1; } }
@media (max-width: 420px) { .filters { grid-template-columns: 1fr; } }
.f-actions { display: flex; gap: 8px; }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }

.table-wrap { overflow: hidden; }
table.reg { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.reg th {
  text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
  padding: 12px 14px; background: #F8FBFB; border-bottom: 1px solid var(--line); font-weight: 700;
}
table.reg td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.reg tr:last-child td { border-bottom: 0; }
table.reg tr.ko td { background: #FFF7F7; }
table.reg td.when { white-space: nowrap; font-variant-numeric: tabular-nums; }
table.reg td.detail { min-width: 220px; }
table.reg td.detail .action { display: block; margin-top: 3px; font-size: .82rem; color: var(--muted); }
.type-pill { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: .82rem; white-space: nowrap; color: var(--c, var(--muted)); }
.type-pill .dot { background: var(--c, var(--muted)); }
.conf-no { color: #fff; background: var(--bad); padding: 2px 9px; border-radius: 6px; font-weight: 800; font-size: .78rem; }
.conf-yes { color: var(--ok); font-weight: 600; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; }
.thumbs button { padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; width: 46px; height: 46px; cursor: zoom-in; background: var(--bg); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 760px) {
  table.reg thead { display: none; }
  table.reg, table.reg tbody, table.reg tr, table.reg td { display: block; width: 100%; }
  table.reg tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  table.reg tr:last-child { border-bottom: 0; }
  table.reg tr.ko { background: #FFF7F7; }
  table.reg td { border: 0; padding: 3px 0; background: none !important; }
  table.reg td[data-l]::before { content: attr(data-l) " : "; color: var(--muted); font-size: .8rem; font-weight: 600; }
  table.reg td.detail { min-width: 0; font-weight: 550; }
  table.reg td.detail::before { display: none; }
}

.print-head { display: none; }

/* ---------------------------------------------------------------- dialogues */
dialog { border: 0; padding: 0; color: var(--ink); }
.modal { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); border-radius: 8px; box-shadow: 0 20px 60px rgba(15, 42, 46, .3); }
.modal::backdrop, .lightbox::backdrop { background: rgba(15, 42, 46, .5); }
.modal form { display: flex; flex-direction: column; max-height: calc(100vh - 48px); }
.modal .m-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 20px 12px; }
.modal .m-body { padding: 4px 20px 16px; overflow-y: auto; display: grid; gap: 14px; }
.modal .m-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); background: #FAFCFC; flex-wrap: wrap; }
.lightbox { background: transparent; max-width: 94vw; max-height: 94vh; }
.lightbox img { display: block; max-width: 94vw; max-height: 86vh; border-radius: 8px; }
.lightbox .btn { position: fixed; top: 16px; right: 16px; }

.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: calc(100% - 32px); }
.toast { background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 8px; font-weight: 600; font-size: .92rem; box-shadow: 0 10px 30px rgba(15, 42, 46, .25); max-width: 480px; display: flex; gap: 10px; align-items: center; }
.toast.bad { background: var(--bad); }
.toast.ok .ico { color: #6EE7B7; }
@media (max-width: 899px) { .toasts { bottom: 84px; } }

.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 60px 0; color: var(--muted); }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- impression */
@media print {
  @page { size: A4 landscape; margin: 12mm; }
  body { background: #fff; font-size: 10.5pt; }
  .sidebar, .topbar, .bottomnav, .no-print, .filters, .toasts, .page-head .actions { display: none !important; }
  .main { margin: 0; padding: 0; max-width: none; }
  .card { box-shadow: none; border: 0; }
  .print-head { display: block; margin-bottom: 10px; }
  .print-head h1 { font-size: 16pt; }
  .page-head { display: none; }
  table.reg { font-size: 9pt; }
  table.reg th, table.reg td { padding: 5px 6px; border-bottom: 1px solid #ccc; }
  table.reg thead { display: table-header-group; }
  table.reg tr { break-inside: avoid; }
  table.reg tr.ko td { background: #fff !important; }
  .conf-no { color: #000; background: none; border: 1.5px solid #000; }
  .thumbs button { width: 34px; height: 34px; }
}

/* ---------------------------------------------------------------- modules (cartes à icône en dégradé) */
.g-froid { --g1: #3B82F6; --g2: #1D4ED8; } .g-huile { --g1: #F59E0B; --g2: #EA580C; } .g-marinade { --g1: #F87171; --g2: #DC2626; }
.g-etiquette { --g1: #14B8A6; --g2: #0B7A75; } .g-nettoyage { --g1: #34D399; --g2: #059669; } .g-refroid { --g1: #22D3EE; --g2: #0891B2; }
.g-rappel { --g1: #FBBF24; --g2: #D97706; } .g-regle { --g1: #64748B; --g2: #334155; } .g-photo { --g1: #A855F7; --g2: #6D28D9; }
.g-reception { --g1: #818CF8; --g2: #4F46E5; } .g-etab { --g1: #2DD4BF; --g2: #0D9488; } .g-equipe { --g1: #3B82F6; --g2: #06B6D4; }
.hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.hcard { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px; min-height: 190px; text-decoration: none; color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--g1) 14%, white); border-radius: 8px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--g1) 8%, white) 0%, #fff 75%); transition: transform .15s, box-shadow .15s; }
.hcard:hover { transform: translateY(-2px); box-shadow: 0 10px 24px color-mix(in srgb, var(--g1) 18%, transparent); }
.hcard:active { transform: none; }
.h-ico { width: 56px; height: 56px; border-radius: 10px; display: grid; place-items: center; color: #fff; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--g1), var(--g2)); box-shadow: 0 6px 14px color-mix(in srgb, var(--g2) 35%, transparent); }
.h-ico .ico { width: 28px; height: 28px; }
.h-arrow { position: absolute; top: 24px; right: 22px; color: #94A3B8; transform: rotate(180deg); }
.hcard b { font-size: 1.2rem; }
.h-desc { color: var(--muted); line-height: 1.45; }
.h-count { margin-top: auto; padding-top: 10px; font-size: .8rem; font-weight: 700; color: var(--g2); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px; margin-top: 24px; }
.stat { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.stat small { display: block; color: var(--muted); font-weight: 600; }
.stat b { font-size: 1.9rem; font-weight: 800; }
.s-ico { color: var(--g2); } .s-ico .ico { width: 30px; height: 30px; }

/* ---------------------------------------------------------------- flux matin / soir */
.flow-h { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.flow-h > div { flex: 1; }
.h-ico.sm { width: 44px; height: 44px; margin: 0; }
.steps-list { display: grid; gap: 6px; }
.steps-list .check.fixed { color: var(--muted); }
.chk-rows { display: grid; gap: 8px; margin-bottom: 10px; }
.chk-row { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 8px; align-items: center; }
@media (max-width: 560px) { .chk-row { grid-template-columns: 1fr auto; } .chk-row input:nth-child(2) { grid-column: 1; } }

/* ---------------------------------------------------------------- V2 : franchises, modules, scores, traçabilité */
.flabel { font-size: .85rem; font-weight: 600; color: var(--muted); }
.grow { flex: 1; min-width: 0; }
.ico.rot90 { transform: rotate(90deg); }
.g-module { --g1: #94A3B8; --g2: #475569; } .g-audit { --g1: #2DD4BF; --g2: #0F766E; } .g-entretien { --g1: #A8A29E; --g2: #57534E; }
.g-formation { --g1: #60A5FA; --g2: #2563EB; } .g-allergene { --g1: #FBBF24; --g2: #B45309; } .g-doc { --g1: #818CF8; --g2: #4338CA; }
.g-score { --g1: #4ADE80; --g2: #15803D; } .g-trace { --g1: #F472B6; --g2: #BE185D; }
.hcard.off { opacity: .62; }
.hcard .off-badge { align-self: flex-start; margin-top: 6px; }
.fra-badge { background: color-mix(in srgb, var(--fc) 12%, white); color: color-mix(in srgb, var(--fc) 80%, black); }
.fra-badge .dot { background: var(--fc); }
.fra-dot { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 10px; vertical-align: middle; position: relative; top: -2px; }
.count-pill { font-size: .72rem; background: var(--bg); padding: 1px 8px; border-radius: 5px; color: var(--muted); font-weight: 700; vertical-align: middle; }
.btn.disabled { opacity: .45; pointer-events: none; }
.modal.wide { width: min(760px, calc(100vw - 32px)); }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 8px; margin: 0 0 14px; font-size: .9rem; }
.note.warn-note { background: var(--warn-soft); color: #92400E; }
.summary .num small { font-size: .8rem; color: var(--muted); font-weight: 600; margin-left: 2px; }

/* choix d'activité */
.act-list { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); margin-top: 4px; }
.act-opt { position: relative; cursor: pointer; }
.act-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.act-opt > span { display: block; height: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.act-opt b { display: block; color: var(--ink); font-size: .92rem; }
.act-opt small { display: block; font-weight: 450; line-height: 1.35; margin-top: 2px; }
.act-opt input:checked + span { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(11, 122, 117, .25); background: var(--primary-soft); }
.act-opt input:focus-visible + span { outline: 3px solid rgba(19, 168, 158, .35); }

/* documents */
.docs-grid { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .docs-grid { grid-template-columns: 1fr; } }
.doc-ico { background: #EEF0FF !important; color: #4338CA !important; }
input[type=file] { font-size: .88rem; max-width: 100%; }

/* modules : interrupteurs */
.mod-row { cursor: pointer; }
.mod-row.locked { cursor: default; }
.mod-row.locked .lead-ico { background: var(--bg); color: var(--muted); }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 13px; background: #CBD5E1; transition: background .15s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .15s; }
.switch input:checked + i { background: var(--primary); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:disabled + i { opacity: .55; }
.switch input:focus-visible + i { outline: 3px solid rgba(19, 168, 158, .35); outline-offset: 2px; }

/* audit */
.sec-card { border-left: 4px solid #0D9488; }
.sec-head { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.sec-head .sec-name { font-weight: 700; font-size: 1rem; }
.chk-row.one { grid-template-columns: 1fr auto; }

/* formations */
.trn-card { display: grid; gap: 10px; border-left: 4px solid #2563EB; }
.trn-head { display: flex; gap: 14px; align-items: flex-start; }
.trn-head .h-ico { flex: none; }
.slides { display: grid; gap: 8px; }
.slide-row { display: flex; gap: 10px; align-items: flex-start; }
.slide-row .grow { display: grid; gap: 6px; }
.slide-row textarea { min-height: 60px; }
.slide-n { width: 28px; height: 28px; border-radius: 6px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 800; font-size: .85rem; flex: none; margin-top: 7px; }
.quiz-opts { display: grid; gap: 8px; margin-top: 8px; }
.chk-row.quiz-row { grid-template-columns: auto 1fr auto; }
@media (max-width: 560px) { .trn-head { flex-wrap: wrap; } .chk-row.quiz-row { grid-template-columns: auto 1fr auto; } .chk-row.quiz-row input:nth-child(2) { grid-column: auto; } }

/* allergènes publics */
.copy-row { display: flex; gap: 6px; flex-wrap: wrap; }
.copy-row input { flex: 1 1 220px; }
.qr-card { text-align: center; }
.qr-box { display: grid; place-items: center; padding: 12px; background: #fff; border: 1px dashed var(--line); border-radius: 8px; }
.qr-box svg { max-width: 100%; height: auto; }

/* certificats */
.cert-list { display: grid; gap: 8px; }
.cert-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.cert-row .lead-ico { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; background: var(--warn-soft); color: #B45309; flex: none; }
.cert-row .main-col { flex: 1; min-width: 0; display: grid; gap: 3px; }
.cert-row .badge { margin-right: 4px; }

/* scores */
.week-pick { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.week-pick input { width: auto; min-height: 40px; }
.score-card { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 12px; border-top: 4px solid var(--lc, var(--line)); }
.score-card header { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.ring-wrap { position: relative; width: 84px; height: 84px; flex: none; display: grid; place-items: center; }
.ring-wrap .ring { position: absolute; inset: 0; width: 84px; height: 84px; }
.ring-wrap b { font-size: 1.6rem; font-weight: 800; line-height: 1; position: relative; top: -4px; }
.ring-wrap small { position: absolute; bottom: 20px; font-size: .7rem; color: var(--muted); font-weight: 700; }
.badge.lvl { font-size: .8rem; padding: 3px 10px; }

/* rapport */
.report { display: grid; gap: 4px; }
.rep-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 2px solid var(--line); }
.rep-head h1 { margin-top: 2px; }
.rep-score { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rep-sec { padding: 16px 0; border-bottom: 1px solid var(--line); }
.rep-sec h2 { margin-bottom: 10px; }
.rep-sec h3 { margin: 10px 0 6px; font-size: .95rem; }
.rep-sec ul { margin: 0; padding-left: 20px; }
.rep-sec li { margin: 3px 0; }
.rep-table { border: 1px solid var(--line); border-radius: 8px; }
.rep-foot { margin: 14px 0 0; }
.missed { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.miss-day { background: #FFF9EE; border: 1px solid #F6E3BF; border-radius: 8px; padding: 10px 12px; font-size: .9rem; }
.miss-day b { text-transform: capitalize; }

/* traçabilité */
.filters.trace-form { grid-template-columns: 2fr 1fr auto; }
@media (max-width: 700px) { .filters.trace-form { grid-template-columns: 1fr; } }
.trace { display: grid; gap: 14px; }
.trace-group { padding: 16px 18px; border-left: 4px solid var(--c); }
.trace-group h2 { display: flex; align-items: center; gap: 8px; color: var(--c); margin-bottom: 8px; }
.trace-group ol { list-style: none; margin: 0; padding: 0; }
.trace-group li { display: grid; grid-template-columns: 130px 1fr auto; gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.trace-group li.ko { background: #FFF7F7; }
.t-when { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .88rem; }
.t-main b { display: block; font-weight: 600; }
.t-main small { display: block; }
@media (max-width: 640px) { .trace-group li { grid-template-columns: 1fr; gap: 4px; } }

@media print {
  body.printing-report .main > :not(.report) { display: none !important; }
  .report { page: report; border: 0; padding: 0; }
  .rep-sec { break-inside: avoid-page; }
  .rep-table { font-size: 9pt; border: 0; }
  .score-card, .trace-group { break-inside: avoid; }
  .ring-wrap .ring circle { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .badge { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
@page report { size: A4 portrait; margin: 14mm; }

/* ---------------------------------------------------------------- documents : dépôt, renommage, lien public */
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 30px 20px; margin-bottom: 14px; border: 2px dashed color-mix(in srgb, var(--primary) 35%, white); border-radius: 8px; background: color-mix(in srgb, var(--primary) 4%, white); color: var(--primary); cursor: pointer; transition: background .15s, border-color .15s; }
.dropzone b { font-size: 1.08rem; color: var(--ink); }
.dropzone.over { background: var(--primary-soft); border-color: var(--primary); }
.dropzone:focus-visible { outline: 3px solid var(--primary-2); outline-offset: 2px; }
.dz-cat { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--muted); font-size: .88rem; }
.dz-cat select { width: auto; min-height: 36px; }
.dz-progress { display: grid; gap: 6px; margin-bottom: 14px; }
.dz-progress div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; font-size: .9rem; }
.dz-progress i { font-style: normal; color: var(--muted); } .dz-progress i.ok { color: var(--ok); font-weight: 700; } .dz-progress i.bad { color: var(--bad); font-weight: 700; }
.doc-row .acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.doc-row .cat-sel { width: auto; min-height: 34px; font-size: .85rem; padding: 4px 8px; }
.share-line { display: flex; gap: 6px; margin-top: 8px; align-items: center; }
.share-line input { flex: 1; min-width: 0; min-height: 34px; font-size: .82rem; background: var(--bg); }
.rename { display: inline-flex; gap: 6px; align-items: center; width: 100%; }
.rename input { flex: 1; min-height: 36px; }
.allerg-doc { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 14px; }
.allerg-doc .main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.qr-mini svg { display: block; }
@media (max-width: 640px) { .allerg-doc { flex-wrap: wrap; } .doc-row { flex-wrap: wrap; } .doc-row .acts { justify-content: flex-start; width: 100%; } }

/* ---------------------------------------------------------------- assistant de configuration, copie d'éléments */
.g-assist { --g1: #A78BFA; --g2: #0B7A75; }
.asst-card { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 18px; text-decoration: none; color: var(--ink);
  background: linear-gradient(135deg, #F1ECFF 0%, #fff 70%); border-color: #E2D9FB; }
.asst-card:hover { box-shadow: 0 8px 20px rgba(109, 40, 217, .12); }
.asst-card b { display: block; }
.asst-card small { display: block; }
.asst-card > .ico { color: #94A3B8; }
.asst { max-width: 980px; }
.asst-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.asst-top .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.asst-progress { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-bottom: 10px; }
.asst-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-2)); transition: width .25s; }
.asst-steps { list-style: none; margin: 0 0 16px; padding: 0 0 4px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.asst-steps::-webkit-scrollbar { display: none; }
.asst-steps li { flex: none; }
.asst-steps li > button, .asst-steps li > span { display: flex; align-items: center; gap: 6px; padding: 6px 10px 6px 6px; border-radius: 8px; border: 1px solid transparent; background: none; font: inherit; font-size: .82rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.asst-steps li > span { cursor: default; opacity: .6; }
.asst-steps .n { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: var(--bg); font-size: .75rem; font-weight: 800; }
.asst-steps li.ok .n { background: var(--ok-soft); color: var(--ok); }
.asst-steps li.cur > button { background: var(--primary-soft); color: var(--primary); border-color: #BFE5DF; }
.asst-steps li.cur .n { background: var(--primary); color: #fff; }
.asst-body { min-height: 260px; }
.asst-sub { margin-top: 14px; display: grid; gap: 14px; }
.asst-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }
.asst-nav .btn { min-height: 46px; padding-inline: 20px; }
#asst-err { margin-top: 12px; }

.tour { display: grid; grid-template-columns: auto 1fr; gap: 18px 20px; align-items: center; }
.tour .h-ico { width: 72px; height: 72px; margin: 0; }
.tour .h-ico .ico { width: 34px; height: 34px; }
.tour h2 { font-size: 1.3rem; margin: 2px 0 8px; }
.tour p { margin: 0; line-height: 1.55; }
.tour-dots { display: flex; gap: 6px; }
.tour-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.tour-dots i.on { background: var(--primary); width: 22px; border-radius: 4px; }
.tour #tour-skip { justify-self: end; }
@media (max-width: 560px) { .tour { grid-template-columns: 1fr; } }

.unit-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 8px; }
.unit-tile { display: grid; justify-items: start; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(135deg, #EEF4FF 0%, #fff 80%); color: var(--ink); cursor: pointer; text-align: left; font: inherit; }
.unit-tile .ico { color: var(--c-temp); margin-bottom: 4px; }
.unit-tile b { font-size: .9rem; line-height: 1.25; }
.unit-tile small { color: var(--muted); font-size: .78rem; }
.unit-tile:hover { border-color: #BFD3FB; box-shadow: 0 4px 12px rgba(37, 99, 235, .1); }
.unit-tile:active { transform: scale(.98); }
.unit-rows { display: grid; gap: 8px; }
.unit-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px 96px auto; gap: 8px; align-items: end; }
.unit-row.one { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
.unit-row .mini { display: flex; flex-direction: column; font-size: .72rem; font-weight: 600; color: var(--muted); }
@media (max-width: 520px) { .unit-row { grid-template-columns: 1fr 1fr auto; } .unit-row > input { grid-column: 1 / -1; } }

.stepper { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.stepper .btn { font-size: 1.4rem; font-weight: 700; width: 48px; min-height: 48px; }
.stepper b { font-size: 2rem; min-width: 2ch; text-align: center; }

.prod-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: #fff; padding: 7px 12px; font: inherit; font-size: .85rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--primary); color: #fff; }
.seg button[data-clear].on { background: var(--bad); }
.prod-chips .chip span { cursor: default; }

.team-add { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr auto; gap: 10px; align-items: end; margin-bottom: 14px; }
.pin-row { display: flex; gap: 6px; }
.pin-row input { min-width: 0; }
@media (max-width: 700px) { .team-add { grid-template-columns: 1fr 1fr; } .team-add .btn[type=submit] { grid-column: 1 / -1; } }
@media (max-width: 420px) { .team-add { grid-template-columns: 1fr; } }
.team-list { border: 1px solid var(--line); border-radius: 8px; }

.pair-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.pair-steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; }
.pair-steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 800; }
.done-head { display: flex; gap: 16px; align-items: center; }
.done-head .h-ico { margin: 0; flex: none; }

.copy-groups { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); margin-top: 6px; }
.copy-group { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px 12px; margin: 0; min-width: 0; }
.copy-group legend { padding: 0 4px; font-size: .88rem; }
.copy-sum { margin: 10px 0 0; font-weight: 600; color: var(--primary); font-size: .9rem; }
.base-opts b .ico { vertical-align: -3px; }
.rep-list { margin: 10px 0; padding-left: 20px; }
.rep-list li { margin: 3px 0; }

/* ---------------------------------------------------------------- V3 : stock, rappels, rapport, RGPD, langue */
.g-stock { --g1: #A78BFA; --g2: #6D28D9; } .g-rappelp { --g1: #F87171; --g2: #B91C1C; } .g-mail { --g1: #38BDF8; --g2: #0369A1; } .g-privacy { --g1: #94A3B8; --g2: #0F766E; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; flex: none; background: #fff; }
.lang-switch button { border: 0; background: none; padding: 5px 9px; font: inherit; font-size: .78rem; font-weight: 700; color: var(--muted); cursor: pointer; min-height: 30px; }
.lang-switch button + button { border-left: 1px solid var(--line); }
.lang-switch button.on { background: var(--primary); color: #fff; }
.side-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.side-top .brand { padding-right: 0; min-width: 0; }
.side-top .lang-switch { margin-top: 8px; }
.topbar .lang-switch { margin-right: 4px; }
.login-wrap { position: relative; }
.login-lang { position: absolute; top: 16px; right: 16px; }
.consent-line { display: flex !important; align-items: center; gap: 5px; margin-top: 2px; }
.note.info-note { background: var(--primary-soft); color: #0B5F5B; }
input.invalid { border-color: var(--bad) !important; background: #FFF7F7; }
.notice-prev h3 { margin: 12px 0 4px; font-size: .92rem; }
.notice-prev p { margin: 0; font-size: .9rem; line-height: 1.5; color: #334E52; }
.stock-filters { grid-template-columns: 1.4fr 1fr 1fr 1fr auto; }
.rc-filters { grid-template-columns: 1.5fr 1fr auto; }
@media (max-width: 1000px) { .stock-filters, .rc-filters { grid-template-columns: 1fr 1fr; } .stock-filters .f-actions, .rc-filters .f-actions { grid-column: 1 / -1; } }
@media (max-width: 420px) { .stock-filters, .rc-filters { grid-template-columns: 1fr; } }
.stock-alerts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .9rem; }
.recalls { display: grid; gap: 14px; }
.recall { padding: 16px 18px; display: grid; gap: 10px; border-left: 4px solid var(--line); }
.recall.r-lot { border-left-color: var(--bad); }
.recall.r-prod { border-left-color: var(--warn); }
.recall.r-done { opacity: .75; }
.recall header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.recall h2 { margin-top: 6px; text-transform: capitalize; }
.recall p { margin: 0; font-size: .92rem; }
.r-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.r-img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); flex: none; }
.r-rec { display: flex; gap: 6px; align-items: flex-start; background: var(--bg); padding: 8px 10px; border-radius: 8px; }
.rp-log .list-item { padding: 10px 0; }
a.badge { text-decoration: none; }
.recall { grid-template-columns: minmax(0, 1fr); overflow-wrap: anywhere; }
.recall header > div { min-width: 0; }
.hint a, .copy-row input { overflow-wrap: anywhere; word-break: break-word; }
/* Saafio */
.brand-logo { width: 40px; height: 40px; border-radius: 10px; flex: none; display: block; }
.topbar .brand-logo { width: 32px; height: 32px; border-radius: 8px; }
.brand-mark { color: #fff; font-weight: 800; font-size: .95rem; }

.lead-row { display: flex; gap: 18px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }

/* Tri par glisser-déposer */
.sort-hint { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; }
.sort-row { position: relative; padding-left: 40px !important; transition: box-shadow .15s; }
.grip { position: absolute; left: 6px; top: 50%; translate: 0 -50%; width: 28px; height: 44px; display: grid; place-content: center; gap: 4px; border: 0; border-radius: 6px; background: transparent; cursor: grab; touch-action: none; }
.grip i { display: block; width: 14px; height: 2px; border-radius: 2px; background: #9AA9B5; }
.grip:hover, .grip:focus-visible { background: rgba(11, 122, 117, .1); } .grip:hover i, .grip:focus-visible i { background: var(--primary, #0B7A75); }
.sort-row.dragging { z-index: 5; box-shadow: 0 18px 36px -14px rgba(9, 30, 32, .45); opacity: .96; cursor: grabbing; }
.sort-row.dragging .grip { cursor: grabbing; }
.sortable.sorting { user-select: none; }
.sort-row.drop-before::before { content: ''; position: absolute; left: 0; right: 0; top: -7px; height: 4px; border-radius: 2px; background: var(--primary, #0B7A75); }
.sortable.drop-end::after { content: ''; display: block; height: 4px; border-radius: 2px; background: var(--primary, #0B7A75); margin-top: -4px; }
@media (max-width: 760px) { .sort-row > .grip { grid-column: auto; } }

.late-why { margin: -4px 0 12px; padding: 8px 12px 8px 28px; border-radius: 8px; background: #FFF7E6; border: 1px solid #F3DDA8; color: #7A4B00; font-size: .88rem; display: grid; gap: 2px; }

/* équipe par boutique, registres séparés, vue d'une boutique */
.team-group { margin-bottom: 26px; }
.team-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.team-head h2 { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; margin: 0; }
.team-head .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.hub-title { font-size: 1.05rem; margin: 6px 0 12px; }
.hub + .hub-title { margin-top: 28px; }
.shop-pick { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chipbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.chipbtn:hover { border-color: var(--primary-2); }
.chipbtn.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.filters.reg-filters { grid-template-columns: 1fr 1fr auto; }
.reg-filters .f-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.reg-tabs .tab { background: none; border-top: 0; border-left: 0; border-right: 0; font: inherit; cursor: pointer; }
.reg-tabs .tab.none { opacity: .55; }
.reg-tabs .tab .count.bad { background: var(--bad-soft); color: var(--bad); }
@media (max-width: 760px) { .filters.reg-filters { grid-template-columns: 1fr 1fr; } .reg-filters .f-actions { grid-column: 1 / -1; } }
@media print { .tabs, .back, .shop-pick, .savebar, .hub-title { display: none !important; } }
.empty.slim { padding: 18px 20px; }
.team-group .list-item .acts { flex: none; max-width: 60%; }
