/* Status board mockups — 3 layouts. Shell nav reused from inventory-mockups.css */

@media (min-width: 769px) {
  .app-container:has(#view-status-board-mockups.active) {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }
  .main-content:has(#view-status-board-mockups.active) {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
  }
  .main-content > #view-status-board-mockups.active {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
}

.sb-mk-bar {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  padding: 0.65rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}
.sb-mk-bar-search { flex: 1 1 220px; min-width: 180px; }
.sb-mk-bar-search input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font: inherit;
  font-size: 0.875rem;
  background: #f8fafc;
  outline: none;
}
.sb-mk-bar-search input:focus { border-color: #94a3b8; background: #fff; }
.sb-mk-bar-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.sb-mk-chip {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #475569;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}
.sb-mk-chip.is-on { background: #0f172a; color: #fff; border-color: #0f172a; }
.sb-mk-arch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: #64748b;
  margin-left: 0.4rem;
  cursor: pointer;
}
.sb-mk-hint {
  flex: 1 0 100%;
  margin: 0;
  font-size: 0.75rem;
  color: #94a3b8;
}
.sb-mk-empty {
  color: #94a3b8;
  font-size: 0.8rem;
  text-align: center;
  padding: 1.25rem 0.5rem;
}
.sb-mk-btn {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #334155;
  border-radius: 6px;
  padding: 0.22rem 0.5rem;
  font: inherit;
  font-size: 0.72rem;
  cursor: pointer;
  white-space: nowrap;
}
.sb-mk-btn--pri { background: #0f172a; color: #fff; border-color: #0f172a; }
.sb-mk-acts { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.45rem; }

/* ── 1. File d’action ── */
.sb1 {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #f4f5f7;
  color: #0f172a;
  overflow: hidden;
}
.sb1__head {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding: 1.1rem 1.25rem 0.85rem;
}
.sb1__head h1 { margin: 0; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.sb1__head p { margin: 0.3rem 0 0; font-size: 0.85rem; color: #64748b; max-width: 36rem; }
.sb1__kpis { display: flex; gap: 0.5rem; }
.sb1__kpi {
  min-width: 7.5rem;
  text-align: left;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
}
.sb1__kpi strong { display: block; font-size: 1.35rem; line-height: 1.1; }
.sb1__kpi span { font-size: 0.72rem; color: #64748b; }
.sb1__kpi--warn { border-color: #f9a8d4; }
.sb1__kpi--cash { border-color: #c4b5fd; background: #faf5ff; }
.sb1__board {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem 1rem;
  overflow-x: auto;
}
.sb1__group {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0.55rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.55);
}
.sb1__group--cash { background: #faf5ff; }
.sb1__group.is-active {
  outline: 2px solid #0f172a;
  outline-offset: 1px;
}
.sb1__group h2 {
  margin: 0 0 0.45rem 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}
.sb1__cols { display: flex; gap: 0.55rem; min-height: 0; flex: 1; }
.sb1__col {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  border-top: 3px solid var(--c, #cbd5e1);
}
.sb1__col.is-hot { box-shadow: inset 0 0 0 1px rgba(15,23,42,0.04); }
.sb1__col.is-dim { opacity: 0.38; }
.sb1__colh {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.65rem 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
}
.sb1__colh em {
  font-style: normal;
  font-size: 0.72rem;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 0.05rem 0.4rem;
}
.sb1__col > .sb-mk-btn { margin: 0 0.55rem 0.35rem; }
.sb1__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.35rem 0.5rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.sb1__card {
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-left: 3px solid #3b82f6;
  border-radius: 8px;
  padding: 0.55rem 0.6rem;
  cursor: grab;
}
.sb1__card.is-svc { border-left-color: #059669; }
.sb1__row { display: flex; justify-content: space-between; gap: 0.4rem; }
.sb1__row strong { font-size: 0.78rem; }
.sb1__row b {
  font-size: 0.62rem;
  color: #b91c1c;
  background: #fee2e2;
  border-radius: 999px;
  padding: 0.05rem 0.35rem;
  font-weight: 700;
}
.sb1__client { font-size: 0.8rem; color: #1e293b; margin-top: 0.12rem; }
.sb1__meta, .sb1__age { font-size: 0.7rem; color: #64748b; margin-top: 0.15rem; }
.sb1__age.is-late { color: #b91c1c; font-weight: 600; }
.sb1__card .sb-mk-acts { opacity: 0; }
.sb1__card:hover .sb-mk-acts, .sb1__card:focus-within .sb-mk-acts { opacity: 1; }

/* ── 2. Registre ── */
.sb2 {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #0f172a;
  overflow: hidden;
}
.sb2__head {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding: 1.1rem 1.25rem 0.7rem;
}
.sb2__head h1 { margin: 0; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.sb2__head p { margin: 0.3rem 0 0; font-size: 0.85rem; color: #64748b; }
.sb2__todo { display: flex; gap: 0.75rem; font-size: 0.8rem; color: #475569; }
.sb2__todo .is-cash { color: #6d28d9; font-weight: 700; }
.sb2__split {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 220px 1fr;
  overflow: hidden;
}
.sb2__rail {
  border-right: 1px solid #eef2f7;
  overflow-y: auto;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  background: #f8fafc;
}
.sb2__rail-all, .sb2__rail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  border-radius: 8px;
  padding: 0.42rem 0.5rem;
  font: inherit;
  font-size: 0.8rem;
  color: #334155;
  cursor: pointer;
}
.sb2__rail-all em, .sb2__rail-item em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.72rem;
  color: #94a3b8;
}
.sb2__rail-item i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 8px;
}
.sb2__rail-all.is-on, .sb2__rail-item.is-on { background: #fff; box-shadow: 0 0 0 1px #e5e7eb; font-weight: 600; }
.sb2__rail-item.is-hot span { font-weight: 600; }
.sb2__table-wrap { overflow: auto; min-width: 0; }
.sb2__table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.sb2__table th {
  position: sticky;
  top: 0;
  background: #fff;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid #e5e7eb;
}
.sb2__table td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}
.sb2__table td small { display: block; color: #94a3b8; font-size: 0.72rem; margin-top: 0.1rem; }
.sb2__table tr.is-late { background: #faf5ff; }
.sb2__table td.is-late { color: #b91c1c; font-weight: 600; }
.sb2__table tr { cursor: context-menu; }
.sb2__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: #0f172a;
  background: #f1f5f9;
  box-shadow: inset 3px 0 0 var(--c);
  border-radius: 999px;
  padding: 0.15rem 0.5rem 0.15rem 0.55rem;
}
.sb2__table .sb-mk-acts { margin-top: 0; }

/* ── 3. Encaisser d’abord ── */
.sb3 {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  color: #0f172a;
  overflow: hidden;
}
.sb3__head { padding: 1.1rem 1.25rem 0.35rem; flex: 0 0 auto; }
.sb3__head h1 { margin: 0; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.sb3__head p { margin: 0.3rem 0 0; font-size: 0.85rem; color: #64748b; }
.sb3__cash, .sb3__flow {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0.5rem 1.25rem 0.75rem;
}
.sb3__cash { flex: 1.35 1 0; }
.sb3__flow { flex: 1 1 0; border-top: 1px solid #e5e7eb; background: #fff; }
.sb3 h2 {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}
.sb3__cash-cols, .sb3__flow-cols {
  display: flex;
  gap: 0.65rem;
  min-height: 0;
  flex: 1;
  overflow-x: auto;
}
.sb3__col {
  flex: 1 1 160px;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  border-top: 3px solid var(--c, #cbd5e1);
}
.sb3__col.is-lg { background: #faf5ff; min-width: 240px; }
.sb3__colh {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
}
.sb3__colh em { font-style: normal; color: #64748b; font-size: 0.72rem; }
.sb3__col > .sb-mk-btn { margin: 0 0.55rem 0.35rem; }
.sb3__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.35rem 0.5rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.sb3__card {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.5rem;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  cursor: grab;
  font-size: 0.78rem;
}
.sb3__card strong { grid-column: 1; }
.sb3__card span { grid-column: 2; color: #334155; }
.sb3__card small { grid-column: 1 / -1; color: #94a3b8; font-size: 0.7rem; }
.sb3__card .sb-mk-acts { grid-column: 1 / -1; }
.sb3__card.is-lg {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.7rem;
  background: #fff;
}
.sb3__card.is-late { outline: 1px solid #c4b5fd; }
.sb3__flow .sb-mk-acts { display: none; }
.sb3__flow .sb3__card:hover .sb-mk-acts,
.sb3__flow .sb3__card:focus-within .sb-mk-acts { display: flex; }

/* ── 4. Entonnoir ── */
.sb4 {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  color: #0f172a;
  overflow: hidden;
}
.sb4__head { flex: 0 0 auto; padding: 1.1rem 1.25rem 0.3rem; }
.sb4__head h1 { margin: 0; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.sb4__head p { margin: 0.3rem 0 0; font-size: 0.85rem; color: #64748b; }
.sb4__funnel {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem 0.5rem;
  height: 180px;
  overflow-x: auto;
}
.sb4__step {
  flex: 1 1 0;
  min-width: 84px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 0.35rem;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.sb4__bar {
  width: 100%;
  border-radius: 8px 8px 0 0;
  background: color-mix(in srgb, var(--c) 30%, #fff);
  border: 1px solid color-mix(in srgb, var(--c) 45%, #fff);
  border-bottom: 3px solid var(--c);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 26px;
  transition: background 0.12s;
}
.sb4__bar b { font-size: 1.05rem; font-weight: 700; color: #0f172a; margin-top: 0.2rem; }
.sb4__step.is-on .sb4__bar { background: color-mix(in srgb, var(--c) 55%, #fff); }
.sb4__step.is-cash .sb4__bar b::after { content: ' $'; color: #6d28d9; font-size: 0.75rem; }
.sb4__step-lbl {
  font-size: 0.66rem;
  color: #475569;
  text-align: center;
  line-height: 1.15;
  max-width: 100%;
}
.sb4__step.is-on .sb4__step-lbl { font-weight: 700; color: #0f172a; }
.sb4__list-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 1.25rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
}
.sb4__grid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.65rem 1.25rem 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.6rem;
  align-content: start;
}
.sb4__card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-left: 4px solid var(--c);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  cursor: grab;
}
.sb4__card.is-late { background: #faf5ff; border-color: #c4b5fd; }
.sb4__card-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.sb4__card-top strong { font-size: 0.85rem; }
.sb4__tag { font-size: 0.68rem; color: #475569; }
.sb4__card-client { font-size: 0.85rem; color: #1e293b; margin-top: 0.15rem; }
.sb4__card-addr { font-size: 0.72rem; color: #94a3b8; margin-top: 0.05rem; }
.sb4__card-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.7rem; color: #64748b; margin-top: 0.35rem; }
.sb4__card-meta .is-late { color: #b91c1c; font-weight: 600; }
.sb4__urgent { color: #b91c1c; font-weight: 700; }

/* ── 5. Aujourd’hui ── */
.sb5 {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #f4f5f7;
  color: #0f172a;
  overflow: hidden;
}
.sb5__head { flex: 0 0 auto; padding: 1.1rem 1.25rem 0.3rem; }
.sb5__head h1 { margin: 0; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.sb5__head p { margin: 0.3rem 0 0; font-size: 0.85rem; color: #64748b; max-width: 40rem; }
.sb5__panels {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding: 0.75rem 1.25rem 0.5rem;
}
.sb5__panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-top: 4px solid var(--c);
  border-radius: 12px;
}
.sb5__panel-h {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.75rem 0.85rem 0.5rem;
}
.sb5__panel-icon { font-size: 1.1rem; }
.sb5__panel-h h2 { margin: 0.1rem 0 0; font-size: 1rem; font-weight: 700; }
.sb5__panel-h small { font-size: 0.72rem; color: #94a3b8; }
.sb5__panel-n {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--c);
  line-height: 1;
}
.sb5__panel > .sb-mk-btn { margin: 0 0.85rem 0.4rem; align-self: flex-start; }
.sb5__panel-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.35rem 0.6rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.sb5__task {
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  cursor: grab;
}
.sb5__task.is-late { background: #fef2f2; border-color: #fecaca; }
.sb5__task-main { display: flex; flex-direction: column; }
.sb5__task-main strong { font-size: 0.8rem; }
.sb5__task-main span { font-size: 0.8rem; color: #334155; }
.sb5__task-side { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.2rem; font-size: 0.7rem; color: #64748b; }
.sb5__task-side em { font-style: normal; }
.sb5__task-side em.is-late { color: #b91c1c; font-weight: 700; }
.sb5__task-side b { font-size: 0.62rem; color: #b91c1c; background: #fee2e2; border-radius: 999px; padding: 0.05rem 0.35rem; }
.sb5__rest {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem 0.85rem;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}
.sb5__rest-lbl { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #94a3b8; margin-right: 0.35rem; }
.sb5__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
  font: inherit;
  font-size: 0.76rem;
  color: #334155;
  cursor: pointer;
}
.sb5__pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.sb5__pill em { font-style: normal; font-weight: 700; color: var(--c); margin-left: 0.15rem; }

/* ── 6. Liste continue ── */
.sb6 {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #0f172a;
  overflow: hidden;
}
.sb6__head { flex: 0 0 auto; padding: 1.1rem 1.25rem 0.3rem; }
.sb6__head h1 { margin: 0; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.sb6__head p { margin: 0.3rem 0 0; font-size: 0.85rem; color: #64748b; }
.sb6__scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 0.5rem 1.25rem 1.25rem; }
.sb6__sec { margin-bottom: 0.85rem; }
.sb6__sec-h {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.35rem;
  background: #fff;
  border-bottom: 2px solid var(--c);
}
.sb6__dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; }
.sb6__sec-h h2 { margin: 0; font-size: 0.9rem; font-weight: 700; }
.sb6__sec-h em { font-style: normal; font-size: 0.75rem; color: #64748b; background: #f1f5f9; border-radius: 999px; padding: 0.05rem 0.5rem; }
.sb6__sec-act { margin-left: auto; }
.sb6__sec.is-cash .sb6__sec-h h2::after { content: ' · à encaisser'; font-weight: 500; font-size: 0.72rem; color: #6d28d9; }
.sb6__rows { display: flex; flex-direction: column; }
.sb6__row {
  display: grid;
  grid-template-columns: 130px 1fr 150px 60px auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.35rem;
  border-bottom: 1px solid #f1f5f9;
  cursor: context-menu;
}
.sb6__row.is-late { background: #faf5ff; }
.sb6__row-id strong { font-size: 0.82rem; }
.sb6__row-id small, .sb6__row-client small { display: block; color: #94a3b8; font-size: 0.7rem; margin-top: 0.05rem; }
.sb6__row-client { font-size: 0.84rem; color: #1e293b; min-width: 0; }
.sb6__row-next { font-size: 0.76rem; color: #64748b; }
.sb6__row-age { font-size: 0.78rem; color: #64748b; text-align: right; }
.sb6__row-age.is-late { color: #b91c1c; font-weight: 700; }
.sb6__row-acts .sb-mk-acts { margin-top: 0; justify-content: flex-end; }
.sb6__row .sb-mk-acts { opacity: 0; }
.sb6__row:hover .sb-mk-acts, .sb6__row:focus-within .sb-mk-acts { opacity: 1; }

/* ── 7. Mix 1 + 3 ── */
.sb7 {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #f4f5f7;
  color: #0f172a;
  overflow: hidden;
}
.sb7__head {
  flex: 0 0 auto;
  padding: 1rem 1.25rem 0.35rem;
}
.sb7__head h1 { margin: 0; font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; }
.sb7__head p { margin: 0.25rem 0 0; font-size: 0.82rem; color: #64748b; max-width: 40rem; }
.sb7__group-h {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  margin: 0 0 0.45rem;
  padding: 0.2rem 0.25rem;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  text-align: left;
  cursor: pointer;
  border-radius: 6px;
}
.sb7__group-h:hover { background: rgba(15, 23, 42, 0.06); color: #0f172a; }
.sb7__group-h em {
  font-style: normal;
  font-size: 0.68rem;
  color: #94a3b8;
  background: #fff;
  border-radius: 999px;
  padding: 0.02rem 0.4rem;
}
.sb1__group.is-active .sb7__group-h { color: #0f172a; }
.sb7__focus {
  flex: 1.25 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0.35rem 1.25rem 0.55rem;
}
.sb7.is-acc-closed .sb7__focus {
  flex: 0 0 auto;
  padding-bottom: 0.35rem;
}
.sb7.is-acc-closed .sb7__rest { flex: 1 1 auto; }
.sb7__focus--cash { background: #faf5ff; }
.sb7__focus--wait { background: #f8fafc; }
.sb7__focus--field { background: #f0fdf4; }
.sb7__focus--done { background: #f1f5f9; }
.sb7__acc {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  margin: 0 0 0.4rem;
  padding: 0.45rem 0.15rem;
  border: none;
  background: transparent;
  font: inherit;
  cursor: pointer;
  text-align: left;
  color: inherit;
}
.sb7__acc-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #334155;
}
.sb7__acc-chev {
  margin-left: auto;
  font-size: 0.85rem;
  color: #64748b;
}
.sb7__stale { font-size: 0.75rem; color: #b91c1c; font-weight: 600; }
.sb7__focus-cols {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
}
.sb7__col {
  flex: 1 1 0;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-top: 3px solid var(--c);
  border-radius: 10px;
}
.sb7__colh {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
}
.sb7__colh em { font-style: normal; color: #64748b; font-size: 0.75rem; }
.sb7__col > .sb-mk-btn { margin: 0 0.6rem 0.35rem; align-self: flex-start; }
.sb7__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.35rem 0.55rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.sb7__card {
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-left: 3px solid #3b82f6;
  border-radius: 8px;
  padding: 0.6rem 0.65rem;
  cursor: grab;
}
.sb7__card.is-svc { border-left-color: #059669; }
.sb7__card.is-late { background: #fef2f2; border-color: #fecaca; }
.sb7__card-top { display: flex; justify-content: space-between; gap: 0.4rem; }
.sb7__card-top strong { font-size: 0.85rem; }
.sb7__card-top b {
  font-size: 0.62rem;
  color: #b91c1c;
  background: #fee2e2;
  border-radius: 999px;
  padding: 0.05rem 0.35rem;
}
.sb7__client { font-size: 0.84rem; color: #1e293b; margin-top: 0.12rem; }
.sb7__addr, .sb7__next { font-size: 0.72rem; color: #64748b; margin-top: 0.08rem; }
.sb7__age {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  background: #eef2f7;
  border-radius: 6px;
  padding: 0.15rem 0.4rem;
  display: inline-block;
}
.sb7__age.is-late { color: #b91c1c; background: #fee2e2; }
.sb7__rest {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0.45rem 1.25rem 0.85rem;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}
.sb7__rest > h2 {
  flex: 0 0 auto;
  margin: 0 0 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}
.sb7__board {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
}
.sb7__board .sb1__group { flex: 0 0 auto; min-height: 0; }
.sb7__board .sb1__cols { height: 100%; }
.sb7__board .sb1__col { min-height: 0; }

@media (max-width: 900px) {
  .sb2__split { grid-template-columns: 1fr; }
  .sb2__rail { flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid #eef2f7; }
  .sb2__rail-item, .sb2__rail-all { flex: 0 0 auto; }
  .sb5__panels { grid-template-columns: 1fr; overflow-y: auto; }
  .sb6__row { grid-template-columns: 1fr auto; }
  .sb6__row-next, .sb6__row-age { display: none; }
  .sb7__head { flex-direction: column; align-items: flex-start; }
}

/* ── 8. Tuiles proposées ── */
.sb8 {
  height: 100%;
  overflow: auto;
  padding: 1rem 1.25rem 2rem;
  background: #f4f5f7;
  color: #0f172a;
}
.sb8__head h1 { margin: 0; font-size: 1.3rem; font-weight: 700; }
.sb8__head p { margin: 0.3rem 0 0; font-size: 0.85rem; color: #64748b; max-width: 40rem; }
.sb8__group { margin-top: 1.25rem; }
.sb8__group h2 {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}
.sb8__pair {
  display: grid;
  grid-template-columns: 360px 360px;
  gap: 1.25rem;
  align-items: start;
}
.sb8__colh {
  font-size: 0.7rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 0.45rem;
}
.sb8__card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 5px solid #3b82f6;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.7rem;
  cursor: default;
}
.sb8__card.is-svc { border-left-color: #059669; }
.sb8__card.is-late { background: #fef2f2; border-color: #fecaca; }
.sb8__card[onclick] { cursor: pointer; }
.sb8__top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sb8__top strong { font-size: 0.85rem; }
.sb8__top b {
  font-size: 0.68rem;
  color: #b91c1c;
  background: #fee2e2;
  border-radius: 999px;
  padding: 0.05rem 0.45rem;
}
.sb8__caret {
  margin-left: auto;
  font-size: 0.7rem;
  color: #9ca3af;
}
.sb8__card.is-open .sb8__caret { transform: rotate(90deg); display: inline-block; }
.sb8__name {
  font-size: 0.84rem;
  font-weight: 650;
  margin-top: 0.15rem;
}
.sb8__client { font-size: 0.9rem; color: #1e293b; margin-top: 0.15rem; }
.sb8__signal {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  background: #eef2f7;
  border-radius: 6px;
  padding: 0.15rem 0.4rem;
  display: inline-block;
}
.sb8__signal.is-late { color: #b91c1c; background: #fee2e2; }
.sb8__acc {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px dashed rgba(15, 23, 42, 0.12);
}
.sb8__addr, .sb8__meta { font-size: 0.75rem; color: #64748b; margin-top: 0.1rem; }

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