/* Compléments propres à la supervision AI Receptionist (le socle reste dans ui/, copie non modifiable). */
/* Police de marque : chaque app la déclare elle-même (ui/README.md, étape 4). */
@font-face { font-family: 'Google Sans Flex'; src: url('/ui/fonts/google-sans-flex.woff2') format('woff2'); font-weight: 100 1000; font-display: swap; }
:root { --font-brand: 'Google Sans Flex'; }
.tenant-pick { display: grid; gap: 6px; padding: 8px 8px 0; }
.tenant-row { display: flex; gap: 6px; }
.tenant-row .input { height: 30px; min-width: 0; }
.side-link.is-active { background: var(--hover); }
.btn-reset { width: 100%; background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }

.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { padding: 9px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-faint); }
.tbl thead th { font-size: 12px; font-weight: 500; color: var(--ink-3); border-bottom-color: var(--line); white-space: nowrap; }
.tbl tbody th { font-weight: 500; color: var(--ink-2); width: 30%; }
.tbl tr:last-child td, .tbl tr:last-child th { border-bottom: 0; }
.tbl tr.late td { background: color-mix(in oklab, var(--fail) 5%, transparent); }
.tbl a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 2px; }
.panel { overflow-x: auto; }

.pill { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 500; white-space: nowrap; color: var(--ink-2); background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); }
.pill-confirmed, .pill-done, .pill-synced, .pill-sent, .pill-superseded { color: var(--ok-ink); background: color-mix(in oklab, var(--ok) 10%, transparent); }
.pill-open, .pill-pending, .pill-transfer_pending, .pill-queued, .pill-high, .pill-accepting, .pill-transferring { color: var(--warn-ink); background: color-mix(in oklab, var(--warn) 10%, transparent); }
.pill-failed, .pill-conflict, .pill-rejected { color: var(--fail-ink); background: color-mix(in oklab, var(--fail) 10%, transparent); }
.pill-in_progress, .pill-acknowledged, .pill-running { color: var(--progress-ink); background: color-mix(in oklab, var(--progress) 12%, transparent); }

.kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kpi-cell { display: grid; gap: 4px; padding: 12px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.kpi-cell:hover { background: var(--hover); }
.kpi-cell b { font-size: 24px; font-weight: 450; font-variant-numeric: tabular-nums; }
.kpi-cell span { font-size: 12px; }

.list { display: grid; gap: 6px; padding: 12px 16px; font-size: 13px; line-height: 1.45; list-style: none; margin: 0; }
.transcript { display: grid; gap: 8px; padding: 12px 16px; margin: 0; list-style: none; font-size: 13.5px; line-height: 1.5; }
.transcript li b { display: inline-block; min-width: 82px; font-weight: 500; color: var(--ink-3); }
.transcript li.agent b { color: var(--ink-2); }

.flash { margin-bottom: 16px; padding: 10px 14px; border-radius: var(--r-md); font-size: 13px; box-shadow: inset 0 0 0 1px var(--line); }
.flash.error { color: var(--fail-ink); background: color-mix(in oklab, var(--fail) 7%, transparent); }
.flash.ok { color: var(--ok-ink); background: color-mix(in oklab, var(--ok) 7%, transparent); }
.field-error { color: var(--fail-ink); font-size: 13px; }
.actions-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.inline-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-form .input { height: 28px; min-width: 240px; }
.code-area { height: auto; min-height: 420px; padding: 12px; font-family: var(--mono); font-size: 12.5px; line-height: 1.5; resize: vertical; }
.empty-state { padding: 32px 16px; text-align: left; }
.empty-state h2 { font-size: 14px; font-weight: 560; margin-bottom: 4px; }
.stack h3 { font-size: 13px; font-weight: 560; }

@media (max-width: 860px) {
  .side-group { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
  .side-group .side-link { height: 30px; padding: 0 10px; box-shadow: inset 0 0 0 1px var(--line); }
  .side-group .side-link > svg { display: none; }
  .side-foot { position: static; border-top: 0; }
  .side-head { height: 44px; }
}
@media (max-width: 760px) {
  .content { padding: 16px; }
  .grid > .c-6 { grid-column: span 12; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .inline-form .input { min-width: 0; width: 100%; }
}
