/* Site père (super administrateur) : tableau de bord, sociétés, options, catalogue des véhicules.
  Règles déplacées de booking.css (étape 7 de l’audit), dans leur ordre d’origine ; chargé juste après booking.css. */

:root {
  /* Palette du fichier : couleurs écrites en dur remplacées par ces variables (mêmes valeurs). */
  --c-amber-52: #d7a334;
  --c-amber-7: #18130a;
  --c-amber-78: #ead4a5;
  --c-amber-92-h40: #fff1d6;
  --c-amber-97: #fffaf0;
  --c-black-a25: rgba(0, 0, 0, 0.25);
  --c-blue-87: #d5dde7;
  --c-gray-50-a12: rgba(127, 127, 127, 0.12);
  --c-gray-50-a18: rgba(127, 127, 127, 0.18);
  --c-gray-64: #9aa3ae;
  --c-gray-96: #f4f5f7;
  --c-green-29: #15803d;
  --c-green-39: #25a05a;
  --c-orange-37: #b45309;
  --c-red-42: #b91c1c;
  --c-red-58: #d9534f;
  --c-red-95: #fdecea;
  --c-white: #fff;
}
/* Section d’origine : Vols suivis (alertes retard / annulation) */
.sa-kpis {
  display: grid;
  gap: 10px;
}
.sa-kpis .ob-card {
  display: grid;
  gap: 2px;
}
.sa-row {
  cursor: pointer;
}
.sa-opt {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--theme-border, #ddd);
  padding: 8px 0;
}
.sa-opt .name {
  display: grid;
  min-width: 0;
  flex: 1 1 180px;
}
.sa-inline {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
}
.sa-amt {
  width: 80px;
  margin-left: 8px;
}
.sa-msg {
  color: var(--theme-text);
  font-weight: 600;
  min-height: 1.2em;
  flex-basis: 100%;
  margin: 0;
}
.sa-pay {
  margin: 4px 0;
}
.sa-dialog .ob-card {
  margin-top: 10px;
}
.sa-cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}
.sa-card.is-off {
  opacity: 0.85;
}
.sa-head > div {
  min-width: 0;
  flex: 1;
}
.sa-avatar {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--theme-accent);
  color: var(--theme-on-accent);
  font-weight: 700;
  font-size: 15px;
}
.sa-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 0;
}
.sa-stats dt {
  font-size: 12px;
  color: var(--theme-muted);
}
.sa-stats dd {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 700;
}
.sa-contactline {
  margin: 0;
  font-size: 13px;
  color: var(--theme-muted);
  overflow-wrap: anywhere;
}
.sa-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sa-act {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--theme-border);
  background: transparent;
  color: var(--theme-text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.sa-act:hover:not(:disabled) {
  border-color: var(--theme-accent);
}
.sa-act:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.sa-act.admin {
  border-style: dashed;
  flex: 1 1 100%;
}
.sa-actions .sa-act:not(.primary):not(.admin) {
  flex: 1 1 0;
}
.sa-kpis {
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)) !important;
}
.sa-kpis .ob-card {
  padding: 12px;
}
.sa-req {
  display: grid;
  gap: 0.2rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--theme-border, #d0d5dd);
  margin: 0.5rem 0;
}
.sa-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.6rem 0;
}

/* Section d’origine : Site père : plein écran, menu latéral, formulaires soignés */
.superadmin {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0 0 40px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.superadmin[hidden] {
  display: none !important;
}
.sa-side {
  position: sticky;
  top: 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--theme-border);
  border-radius: 16px;
  background: var(--theme-surface);
  color: var(--theme-text);
}
.sa-side-brand {
  display: grid;
  gap: 2px;
}
.sa-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sa-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.sa-backbtn {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--theme-border);
  background: var(--theme-surface);
  color: var(--theme-text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  margin: 0 0 12px;
}
.sa-top .sa-backbtn {
  margin: 0;
}
.sa-view {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  align-items: start;
}
.sa-view > .ob-card {
  grid-column: auto;
  max-width: 860px;
}
.sa-view .sa-cards {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
}
.superadmin input:not([type='checkbox']):not([type='radio']) {
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--theme-border);
  border-radius: 12px;
  background: var(--theme-input);
  color: var(--theme-text);
  font: inherit;
  box-sizing: border-box;
  max-width: 100%;
}
.superadmin .fiche-form {
  display: grid;
  gap: 14px;
}
.superadmin .fiche-save,
.superadmin .site-secondary {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.superadmin .fiche-save {
  border: 0;
  background: var(--theme-accent);
  color: var(--theme-on-accent);
}
.superadmin .site-secondary {
  border: 1px solid var(--theme-border);
  background: var(--theme-surface);
  color: var(--theme-text);
}
.sa-switch {
  flex: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.sa-sw-track {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: var(--c-gray-64);
  transition: background 0.15s;
}
.sa-switch input:checked + .sa-sw-track {
  background: var(--c-green-39);
}
.sa-switch input:checked + .sa-sw-track::after {
  transform: translateX(20px);
}
.sa-switch input:focus-visible + .sa-sw-track {
  outline: 3px solid var(--theme-accent);
  outline-offset: 2px;
}
.sa-sw-txt.off {
  color: var(--c-red-58);
}
.sa-optrow {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 8px 0;
  border-bottom: 1px solid var(--theme-border);
}
.sa-optname {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 1 1 220px;
  min-width: 0;
  cursor: pointer;
}
@media (max-width: 900px) {
  .superadmin {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .sa-side,
  .sa-nav {
    min-width: 0;
  }
  .sa-side {
    position: static;
    padding: 8px;
  }
  .sa-side-brand {
    display: none;
  }
  .sa-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
  }
}

/* Section d’origine : Fenêtres du site père : le contenu défile toujours (rien n'est coupé) */
.sa-dialog {
  max-width: min(720px, calc(100% - 20px));
  max-height: 92dvh;
}
.sa-dialog .sa-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 12px 16px;
  -webkit-overflow-scrolling: touch;
}
.sa-dialog > .sa-msg {
  flex: none;
  padding: 0 16px 10px;
  min-height: 0;
}
.sa-view .partner-pagination {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}
.sa-view .partner-pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.sa-view > p:has(#sa-new) {
  margin: 0;
}
.sa-opt .fiche-save {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--theme-border);
  background: var(--theme-surface);
  color: var(--theme-text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.superadmin .sa-kpis {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)) !important;
}
.superadmin .sa-kpis .ob-card {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Section d’origine : V0168-44 : cartes abonnés alignées */
.sa-card .sa-head p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal;
}
.sa-card .sa-contactline {
  min-height: 1.5em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal;
}
.sa-card .sa-actions {
  margin-top: auto;
}
.sa-card .sa-stats {
  margin: 0;
}

/* Section d’origine : V0168-44 : Options et tarifs en tableau */
.ot-base {
  width: 100%;
}
.ot {
  border: 1px solid var(--theme-border);
  border-radius: 14px;
  background: var(--theme-surface);
  overflow: hidden;
  margin-top: 12px;
}
.ot-row {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.2fr) 80px 120px 80px 130px;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-top: 1px solid var(--theme-border);
  margin: 0;
}
.ot-head {
  border-top: 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--theme-muted);
  background: var(--theme-surface-2, transparent);
}
.ot-group {
  margin: 0;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--c-gray-50-a12);
  border-top: 1px solid var(--theme-border);
}
.ot-n {
  font-variant-numeric: tabular-nums;
}
.ot-sale {
  display: flex;
  justify-content: center;
}
.ot-save {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 0;
  background: var(--c-amber-52);
  color: var(--c-amber-7);
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}
.ot-fixed {
  grid-column: 4/7;
}
.ot-row .sa-msg {
  grid-column: 1/-1;
  margin: 0;
  font-size: 13px;
}
.ot-row .sa-msg:empty {
  display: none;
}
@media (max-width: 760px) {
  .ot-head {
    display: none;
  }
  .ot-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .ot-name {
    grid-column: 1/-1;
  }
  .ot-save {
    grid-column: 1/-1;
  }
  .ot-fixed {
    grid-column: 1/-1;
  }
  .ot-sale {
    justify-content: flex-start;
    gap: 6px;
    align-items: center;
  }
}

/* Section d’origine : V0168-44 : écran Stripe */
.sa-view .ot-base {
  grid-column: 1/-1;
  max-width: none;
}
.ot-base .sa-inline {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

/* Section d’origine : V0168-45 : code société */
.sa-card .sa-head p.sa-code {
  margin: 2px 0 0;
  font-size: 13px;
}
.sa-code strong {
  letter-spacing: 0.02em;
}
.sa-copy {
  border: 1px solid var(--theme-border, #d8dde6);
  background: transparent;
  color: inherit;
  border-radius: 8px;
  padding: 2px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-left: 6px;
  width: auto;
}
.sa-code-fiche {
  margin: 0 0 6px;
  font-size: 15px;
}

/* Section d’origine : V0168-46 : utilisateurs en onglets + menu ⋯ */
.sa-utabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 4px 0 8px;
  border-bottom: 1px solid var(--theme-border, #d8dde6);
}
.sa-utab {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  padding: 8px 12px;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  width: auto;
  min-height: 40px;
}
.sa-utab.on {
  border-bottom-color: var(--theme-accent, #d7a334);
}
.sa-user {
  border-top: 1px solid var(--theme-border, #d8dde6);
  padding: 10px 0;
}
.sa-utabs + .sa-user {
  border-top: 0;
}
.sa-urow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.sa-uinfo {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.sa-menu {
  position: relative;
  flex: none;
}
.sa-dots {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--theme-border, #d8dde6);
  background: transparent;
  color: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.sa-menu-list {
  position: absolute;
  right: 0;
  top: 44px;
  z-index: 40;
  min-width: 220px;
  display: grid;
  background: var(--theme-surface, #fff);
  color: var(--theme-text, #101828);
  border: 1px solid var(--theme-border, #d8dde6);
  border-radius: 12px;
  box-shadow: 0 12px 30px var(--c-black-a25);
  overflow: hidden;
}
.sa-menu-list button + button {
  border-top: 1px solid var(--theme-border, #d8dde6);
}
.sa-menu-list .danger {
  color: var(--c-danger-3);
  font-weight: 700;
}
html .sa-dialog .sa-utab.on {
  border-bottom-color: var(--theme-accent, #d7a334);
  font-weight: 800;
}
html .sa-dialog .sa-utab span {
  background: rgba(127, 127, 127, 0.2);
  color: inherit;
}
html .sa-dialog .sa-menu-list button {
  background: transparent;
  color: inherit;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
html .sa-dialog .sa-menu-list .danger {
  color: var(--c-danger-3);
}

/* Section d’origine : V0168-53 : bouton Dispatch automatique */
.ot-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ot-gname {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: transparent;
  border: 1px dashed transparent;
  border-radius: 8px;
  padding: 4px 8px;
  color: inherit;
}
.ot-gname:hover,
.ot-gname:focus {
  border-color: var(--theme-border, #999);
  background: var(--theme-surface, #fff);
}
.ot-ctl {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  margin-left: 8px;
  vertical-align: middle;
}
.ot-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
}
.ot-mv {
  font: inherit;
  line-height: 1;
  width: 32px;
  height: 32px;
  border: 1px solid var(--theme-border, #999);
  border-radius: 8px;
  background: var(--theme-surface, #fff);
  color: inherit;
  cursor: pointer;
}
.ot-mv:disabled {
  opacity: 0.35;
  cursor: default;
}
.ot-cat {
  font: inherit;
  font-size: 0.8rem;
  max-width: 140px;
  height: 32px;
  border: 1px solid var(--theme-border, #999);
  border-radius: 8px;
  background: var(--theme-surface, #fff);
  color: inherit;
}

/* Section d’origine : Catalogue compact (site père) */
.cg-bh {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  min-height: 44px;
}
.cg-bt {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  font: inherit;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 4px 0;
  min-width: 0;
}
.cg-bt strong {
  letter-spacing: 0.02em;
}
.cg-arrow {
  display: inline-block;
  transition: transform 0.15s;
}
.car-brand.is-open .cg-arrow {
  transform: rotate(90deg);
}
.cg-ren {
  font: inherit;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line, #b9b2a6);
  border-radius: 8px;
  background: var(--surface, #fff);
  color: inherit;
  cursor: pointer;
}
.cg-body {
  display: none;
  border-top: 1px solid var(--line, #d9d3ca);
  overflow-x: auto;
}
.car-brand.is-open .cg-body {
  display: block;
}
.cg-head,
.cg-row {
  display: grid;
  grid-template-columns:
    24px minmax(150px, 1.6fr) 112px 54px 54px repeat(4, 40px)
    30px 48px 24px;
  gap: 8px;
  align-items: center;
  padding: 5px 14px;
  min-width: 760px;
}
.cg-head {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted, #777);
  text-align: center;
  padding-top: 8px;
}
.cg-head span:nth-child(2) {
  text-align: left;
}
.cg-row {
  border-top: 1px solid var(--c-gray-50-a18);
}
.cg-row .cg-n {
  text-align: center;
  padding: 0 4px;
}
.cg-c,
.cg-lock {
  display: flex;
  justify-content: center;
  align-items: center;
}
.cg-lock input:checked + span {
  opacity: 1;
}
.cg-row.is-off input:not([data-f='active']):not(.cg-sel),
.cg-row.is-off select {
  opacity: 0.5;
}
.cg-row.is-off [data-f='model'] {
  text-decoration: line-through;
}
.cg-sw {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.cg-knob {
  width: 36px;
  height: 20px;
  border-radius: 12px;
  background: #b9b2a6;
  position: relative;
  transition: background 0.15s;
}
.cg-sw input:checked + .cg-knob {
  background: var(--accent, #b8743a);
}
.cg-sw input:checked + .cg-knob::after {
  transform: translateX(16px);
}
.cg-sw input:focus-visible + .cg-knob {
  outline: 2px solid var(--accent, #b8743a);
  outline-offset: 2px;
}
.cg-ok {
  font-size: 13px;
  color: #2a8a4a;
}
.cg-ok.is-bad,
.cg-msg.is-bad {
  color: var(--c-danger-3);
}
.cg-bulk {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line, #d9d3ca);
  border-radius: 12px;
  background: var(--surface, #fff);
  position: sticky;
  top: 0;
  z-index: 5;
}
.cg-all {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.cg-count {
  opacity: 0.75;
  margin-right: auto;
}
.cg-msg {
  font-size: 0.85rem;
  color: #2a8a4a;
}

/* Section d’origine : Catalogue vu par la société */
.cg-chk {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.88rem;
}
.cc-dialog .cg-bt {
  background: none !important;
  border: 0 !important;
  color: inherit !important;
  width: auto !important;
  min-height: 0 !important;
  flex: 1;
  justify-content: flex-start;
  text-align: left;
  box-shadow: none !important;
  padding: 4px 0 !important;
}
.cc-dialog .cc-cats .cg-chk {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 6px;
  font-weight: 400;
}
.cg-row {
  align-items: center;
}

/* V173 : Santé, Interrupteurs, Consommation IA (superadmin-ai.js) */
.sai-list {
  display: grid;
  gap: 10px;
}
.sai-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.sai-check p {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}
.sai-badge {
  flex-shrink: 0;
  min-width: 96px;
  text-align: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.sai-ok {
  background: #e3f4ea;
  color: var(--c-success);
}
.sai-ko {
  background: var(--c-red-95);
  color: var(--c-danger);
}
.sai-off {
  background: var(--theme-soft, #f1f3f5);
  color: var(--theme-muted, #687686);
}
/* V201 : service en panne mais secours actif (orange). */
.sai-warnb {
  background: #fff1e0;
  color: #9a4d00;
}
.sai-scroll {
  overflow-x: auto;
  max-width: 100%;
}
.sai-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.sai-table th,
.sai-table td {
  text-align: left;
  padding: 8px 10px;
  border-top: 1px solid var(--theme-border);
  white-space: nowrap;
}
.sai-table input {
  width: 80px;
}
.sai-click {
  cursor: pointer;
}
.sai-click:hover {
  background: var(--theme-soft, #f1f3f5);
}
.sai-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin: 12px 0;
}
.sai-feature {
  margin-top: 12px;
}
.sai-switch {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
}
.sai-prices {
  margin-top: 16px;
}

/* V195 : supervision des conversations de l'assistant */
.sai-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.4rem 0;
}
.sai-thread {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sai-m {
  max-width: 46rem;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  background: var(--c-gray-96);
}
.sai-pic {
  display: inline-block;
  max-width: 220px;
  max-height: 220px;
  margin: 6px 6px 0 0;
  border-radius: 8px;
  border: 1px solid var(--c-blue-87);
}
.sai-m p {
  margin: 0.2rem 0 0;
  white-space: pre-wrap;
}
.sai-m.sai-utilisateur {
  align-self: flex-end;
  background: #fff6e5;
}
.sai-m.sai-incident {
  background: #fdecec;
}
.sai-m.sai-ko {
  outline: 2px solid #f0b4b4;
}
.sai-issue label {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
  margin-right: 0.6rem;
}
.sai-tab {
  border: 1px solid var(--c-amber-78);
  background: var(--c-amber-97);
  border-radius: 10px;
  padding: 8px 14px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.sai-tab[aria-selected='true'] {
  background: #c2855a;
  border-color: #c2855a;
  color: var(--c-white);
  font-weight: 600;
}
.sai-warn {
  color: var(--c-orange-37);
}
.sai-ok-txt {
  color: var(--c-green-29);
}
strong.sai-ko {
  color: var(--c-red-42);
}
/* V199 : SAV (priorité, délai cible, historique). */
.sup-prio {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.sup-prio-bloquant {
  background: #fde2e1;
  color: #9b1c1c;
}
.sup-prio-genant {
  background: var(--c-amber-92-h40);
  color: #8a5300;
}
.sup-prio-question {
  background: #e6eefb;
  color: #1f4f8e;
}
.sup-sla {
  font-size: 0.8rem;
  color: #5b6b7d;
}
.sup-late {
  color: #9b1c1c;
  font-weight: 700;
}
.sup-hist {
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 0.85rem;
}
.sup-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sa-card[data-tid] .sa-contactline {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
/* V200 : Bugs et idées. */
.bl-item {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.bl-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.bl-head small {
  display: block;
  color: #5b6b7d;
}
.bl-sel input {
  width: 20px;
  height: 20px;
}
.bl-edit {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
}
.bl-edit label {
  display: grid;
  gap: 2px;
  font-size: 0.85rem;
}
.bl-edit label[hidden] {
  display: none;
}
.bl-gen {
  margin: 10px 0;
}
.bl-prompt {
  display: grid;
  gap: 4px;
}
.bl-prompt textarea {
  width: 100%;
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
}
.bl-members ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.88rem;
}
.bl-edit .bl-title {
  flex-basis: 100%;
}
.bl-edit .bl-title input {
  width: 100%;
}
