/* Backend — sobre, aux couleurs du client (variables injectées dans views/admin/layout.php). Police système. */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --ink-900: #12233D; --ink-700: #34425A; --ink-500: #51607A; --line: #DCE3EE; --line-soft: #EDF1F6; --field: #C9D3E1;
  --ground: #F4F7FB; --white: #FFF; --nav: #12233D; --nav-active: #24395A;
  --ok-bg: #E4F4EA; --ok-ink: #17602F; --warn-bg: #FFF6E5; --warn-ink: #6B4A00; --err-bg: #FDECEC; --err-ink: #9B1C1C;
}
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink-900); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--ink); }
a:hover { color: var(--ink-900); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
h2 { margin: 0; font-size: 16px; font-weight: 800; }
p { margin: 0; }
.muted { color: var(--ink-500); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }

/* Structure : menu latéral fixe à gauche (≥ 900 px), tiroir sur mobile et tablette. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.main { min-width: 0; display: flex; flex-direction: column; }
.head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 28px; background: var(--white); border-bottom: 1px solid var(--line); }
.head .sub { font-size: 14px; color: var(--ink-500); margin-top: 2px; }
.content { padding: 22px 28px 40px; display: flex; flex-direction: column; gap: 18px; }
.mtop, .scrim, .side-close { display: none; }

.side {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--nav); color: #C9D4E3; padding: 18px 12px 12px;
}
.side .ico { flex-shrink: 0; }
.side-top { display: flex; flex-direction: column; gap: 8px; padding: 0 8px; position: relative; }
.side .org { display: flex; align-items: center; gap: 10px; min-width: 0; }
.side .org > div { min-width: 0; }
.side .org .ini { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; background: var(--nav-active); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.side .org b { display: block; color: #fff; font-size: 14px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .org span { display: block; font-size: 12px; color: #93A3BA; }
.side .org-logo { display: flex; align-items: center; justify-content: flex-start; min-height: 0; }
.side .org-logo img { display: block; max-height: 56px; max-width: 100%; width: auto; object-fit: contain; background: transparent; }
.side .org-under { margin-top: 0; }

/* Navigation */
.backend-nav { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 14px; margin: 0 -4px; padding: 0 4px 8px; scrollbar-width: thin; scrollbar-color: #2C4366 transparent; }
.menu-tools { position: sticky; top: 0; z-index: 2; background: var(--nav); padding-bottom: 2px; }
.menu-search-wrap { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; border: 1px solid #2A3F60; border-radius: 10px; background: #182C49; color: #93A3BA; cursor: text; transition: border-color .15s ease, background-color .15s ease; }
.menu-search-wrap:focus-within { border-color: #5F7DA8; background: #1D3354; }
.menu-search-wrap input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: #fff; font-size: 14px; }
.menu-search-wrap input::placeholder { color: #93A3BA; }
.menu-search-wrap input::-webkit-search-cancel-button { filter: invert(1); opacity: .6; }
.menu-search-wrap kbd { font: 600 10px/1 system-ui, sans-serif; color: #93A3BA; border: 1px solid #2E4466; border-radius: 5px; padding: 3px 5px; white-space: nowrap; }
.menu-search-wrap:focus-within kbd { display: none; }
.menu-group, .menu-pinned { display: flex; flex-direction: column; gap: 1px; }
.menu-pinned-items { display: flex; flex-direction: column; gap: 1px; }
.menu-group-title { padding: 0 10px 5px; color: #7F91AB; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.menu-entry { position: relative; display: flex; align-items: center; border-radius: 9px; }
.menu-entry > a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 11px; min-height: 36px; padding: 0 34px 0 10px; border-radius: 9px; color: #C9D4E3; text-decoration: none; font-size: 14px; font-weight: 600; transition: background-color .12s ease, color .12s ease; }
.menu-entry > a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-entry > a .ico { color: #8296B2; transition: color .12s ease; }
.menu-entry > a:hover { background: #1B304F; color: #fff; }
.menu-entry > a:hover .ico { color: #C9D4E3; }
.menu-entry > a[aria-current="page"] { background: var(--nav-active); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.menu-entry > a[aria-current="page"] .ico { color: #fff; }
.menu-entry > a:focus-visible { outline: 2px solid #8FB0E0; outline-offset: -2px; }
/* Épingle : discrète, n'apparaît qu'au survol ou au clavier (toujours visible si l'élément est épinglé). */
.menu-pin { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: #8296B2; font-size: 14px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .12s ease; }
.menu-entry:hover .menu-pin, .menu-pin:focus-visible, .global-search-result .menu-pin { opacity: 1; }
.menu-pin:hover { background: #24395A; color: #fff; }
.menu-pin[aria-pressed="true"] { color: #FFD36B; }
.menu-group .menu-pin[aria-pressed="true"] { opacity: .9; }
.menu-pinned { padding-bottom: 12px; border-bottom: 1px solid #22385A; }
.menu-search-empty { padding: 8px 10px; color: #93A3BA; font-size: 13px; }
.global-search-results { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.global-search-result { position: relative; display: flex; align-items: center; border-radius: 9px; }
.global-search-result:hover { background: #1B304F; }
.global-search-result > a { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 1px; padding: 7px 36px 7px 10px; color: #F2F6FB; text-decoration: none; font-size: 13px; }
.global-search-result > a strong { font-weight: 650; }
.global-search-result small { color: #8296B2; font-size: 11px; }
.menu-entry[hidden], .menu-group[hidden], .global-search-results[hidden], .menu-search-empty[hidden], .menu-pinned[hidden] { display: none !important; }

/* Utilisateur connecté */
.me { display: flex; align-items: center; gap: 10px; padding: 10px 8px 2px; border-top: 1px solid #22385A; }
.me-avatar { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 16px; display: grid; place-items: center; background: #24395A; color: #fff; font-weight: 800; font-size: 13px; }
.me-id { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.me-id b { color: #E6ECF5; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-id span { color: #7F91AB; font-size: 11px; }
.me-actions { display: flex; gap: 2px; }
.me-actions form { margin: 0; }
.me-btn { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #93A3BA; cursor: pointer; padding: 0; }
.me-btn:hover { background: #1B304F; color: #fff; }

/* Mobile et tablette : barre du haut + menu en tiroir */
@media (max-width: 899px) {
  .shell { display: block; }
  .mtop { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 8px; background: var(--nav); color: #fff; }
  .mtop-name { flex: 1; min-width: 0; font-weight: 800; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mtop-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: #fff; cursor: pointer; }
  .mtop-btn:hover { background: #1B304F; color: #fff; }
  .side { position: fixed; z-index: 50; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); height: 100%; transform: translateX(-102%); transition: transform .22s ease; box-shadow: 0 0 40px rgba(0,0,0,.25); }
  body.nav-open .side { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(10,20,36,.45); }
  .scrim[hidden] { display: none; }
  body.nav-open { overflow: hidden; }
  .side-close { display: grid; place-items: center; position: absolute; right: -2px; top: -4px; width: 36px; height: 36px; border: 0; border-radius: 9px; background: transparent; color: #C9D4E3; cursor: pointer; }
  .side-close:hover { background: #1B304F; }
  .menu-entry > a { min-height: 42px; }
  .menu-pin { opacity: .6; }
  .head, .content { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) { .side { transition: none; } }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--field); background: var(--white); color: var(--ink-900); font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--ink-500); color: var(--ink-900); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { filter: brightness(.95); color: var(--on-accent); }
.btn.danger { color: var(--err-ink); border-color: #E8B4B4; }
.btn.danger:hover { border-color: var(--err-ink); color: var(--err-ink); }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn.icon { width: 42px; padding: 0; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.linkish { background: none; border: none; padding: 0; color: var(--ink); font-weight: 700; cursor: pointer; text-decoration: none; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.spread { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }

/* Cartes et formulaires */
.card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.card.flush { padding: 0; gap: 0; overflow: hidden; }
.cols { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.cols > .grow { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.cols > .aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 16px; }
label.field, .field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.field .hint, .hint { font-weight: 500; font-size: 13px; color: var(--ink-500); }
.input, select.input, textarea.input { min-height: 42px; padding: 0 12px; border: 1px solid var(--field); border-radius: 10px; background: var(--white); font-size: 15px; font-weight: 400; width: 100%; }
textarea.input { padding: 10px 12px; resize: vertical; min-height: 80px; }
.input[aria-invalid="true"] { border-color: var(--err-ink); }
.field-error { font-size: 13px; font-weight: 600; color: var(--err-ink); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.check .hint { display: block; margin-top: 2px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: #E6ECF4; }
.seg a, .seg button, .seg label { min-height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 9px; border: none; background: transparent; color: var(--ink-700); font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; }
.seg [aria-current="page"], .seg [aria-pressed="true"], .seg input:checked + span { background: var(--white); color: var(--ink-900); box-shadow: 0 1px 3px rgba(18,35,61,.12); }
.seg label { padding: 0; }
.seg label span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 9px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:focus-visible) span { outline: 3px solid var(--accent); }

/* Messages */
.notice { padding: 12px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; line-height: 1.45; }
.notice.ok { background: var(--ok-bg); color: var(--ok-ink); }
.notice.warn { background: var(--warn-bg); color: var(--warn-ink); }
.notice.err { background: var(--err-bg); color: var(--err-ink); }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok-ink); }
.badge.warn { background: var(--warn-bg); color: var(--warn-ink); }
.badge.err { background: var(--err-bg); color: var(--err-ink); }
.badge.muted { background: #EEF2F7; color: var(--ink-700); }

/* Tableaux / listes */
.table-wrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-500); font-weight: 700; padding: 12px 16px; white-space: nowrap; }
table.list td { padding: 12px 16px; border-top: 1px solid var(--line-soft); vertical-align: middle; }
table.list tr.sel td { background: #F2F6FD; }
.rows > * { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 16px; border-top: 1px solid var(--line-soft); }
.rows > *:first-child { border-top: none; }
.rows .t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rows .t b { font-size: 15px; }
.rows .t span { font-size: 13px; color: var(--ink-500); }
.empty { padding: 22px; text-align: center; color: var(--ink-500); font-size: 14px; }

/* Agenda — semaine */
.cal { min-width: 620px; }
.cal-head, .cal-body { display: grid; grid-template-columns: 54px repeat(7, minmax(0, 1fr)); }
.cal-head { border-bottom: 1px solid var(--line); }
.cal-head .d { padding: 10px 8px; border-left: 1px solid var(--line-soft); display: flex; flex-direction: column; }
.cal-head .d span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-500); }
.cal-head .d b { font-size: 18px; }
.cal-head .d.today b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 15px; background: var(--accent); color: var(--on-accent); font-size: 15px; }
.cal-head .d .hol { font-size: 11px; font-weight: 700; color: var(--warn-ink); text-transform: none; letter-spacing: 0; }
.hours { position: relative; }
.hours span { position: absolute; right: 8px; font-size: 11px; font-weight: 600; color: var(--ink-500); transform: translateY(-50%); }
.col { position: relative; border-left: 1px solid var(--line-soft); background-image: repeating-linear-gradient(to bottom, var(--line-soft) 0, var(--line-soft) 1px, transparent 1px, transparent 60px); }
.col .open { position: absolute; left: 0; right: 0; background: rgba(23, 96, 47, .06); }
.ev { position: absolute; display: block; box-sizing: border-box; padding: 3px 7px; border-radius: 8px; font-size: 12px; line-height: 1.3; overflow: hidden; text-decoration: none; color: var(--ink-900); border: 1px solid; }
.ev:hover { color: var(--ink-900); z-index: 2; box-shadow: 0 2px 8px rgba(18,35,61,.18); }
.ev b { display: block; font-weight: 800; }
.ev.pending { background: #fff !important; border: 1.5px dashed var(--ink-500) !important; }
.ev.sel { box-shadow: 0 0 0 2px var(--ink-900); z-index: 3; }
.ev.block { z-index: 0; opacity: .85; background-image: repeating-linear-gradient(135deg, #EEF2F7 0, #EEF2F7 6px, #D9E0EA 6px, #D9E0EA 12px); border: none; color: var(--ink-700); }
.ev.block.ext { background: #ECEFF4; background-image: none; border: 1px dotted #8A96AA; color: var(--ink-700); opacity: .95; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--ink-500); }
.legend i { display: inline-block; width: 13px; height: 13px; border-radius: 4px; border: 1px solid; vertical-align: -2px; margin-right: 6px; }

/* Panneau de détail */
.panel { gap: 12px; }
.panel .who { font-size: 20px; font-weight: 800; }
.kv { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); font-size: 14px; word-break: break-word; }
details.box { border: 1px solid var(--line); border-radius: 10px; }
details.box > summary { padding: 11px 14px; font-weight: 700; cursor: pointer; list-style: none; }
details.box > summary::-webkit-details-marker { display: none; }
details.box > summary::after { content: '+'; float: right; color: var(--ink-500); }
details.box[open] > summary::after { content: '−'; }
details.box > div { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.history { font-size: 13px; color: var(--ink-500); display: flex; flex-direction: column; gap: 4px; }

/* Disponibilités */
.week-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line-soft); }
.week-row:first-child { border-top: none; }
.week-row .day { width: 130px; padding-top: 9px; }
.week-row .ranges { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 240px; }
.range { display: flex; align-items: center; gap: 8px; }
.range input { width: 120px; }
.week-row.closed .ranges { display: none; }
.week-row .closed-label { display: none; padding-top: 9px; color: var(--ink-500); font-size: 14px; }
.week-row.closed .closed-label { display: block; }

/* Personnalisation */
.preview { width: 300px; max-width: 100%; border-radius: 26px; border: 8px solid var(--ink-900); overflow: hidden; background: var(--ground); }
.preview .ph { display: flex; align-items: center; gap: 10px; padding: 14px; background: #fff; border-bottom: 1px solid var(--line); }
.preview .ph { flex-direction: column; align-items: flex-start; }
.preview .ph img { height: 44px; width: auto; max-width: 200px; object-fit: contain; }
.preview .pb { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.swatch { width: 52px; height: 42px; padding: 2px; border: 1px solid var(--field); border-radius: 10px; background: #fff; cursor: pointer; }
.logo-box { width: 220px; max-width: 100%; height: 96px; padding: 10px; border-radius: 14px; border: 1px dashed var(--field); display: grid; place-items: center; background: #fff; overflow: hidden; }
.logo-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
pre.code { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--ink-900); color: #E6ECF5; font-size: 13px; line-height: 1.5; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }

/* Connexion */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login .card { width: 100%; max-width: 420px; gap: 16px; padding: 28px; }
.code-input { text-align: center; font-size: 26px !important; font-weight: 700 !important; letter-spacing: .4em; padding-left: .4em !important; min-height: 54px !important; }

/* Tableau de bord plateforme SaaS */
.platform-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:18px; }
.platform-stat { background:var(--white); border:1px solid var(--line); border-radius:14px; padding:18px; display:flex; flex-direction:column; gap:7px; min-width:0; }
.platform-stat span { color:var(--ink-500); font-size:13px; font-weight:700; }
.platform-stat strong { color:var(--ink-900); font-size:clamp(24px,3vw,32px); line-height:1.15; letter-spacing:-.03em; }
.platform-stat small,.platform-muted { color:var(--ink-500); font-size:12px; }
.platform-columns { display:grid; grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr); gap:18px; align-items:start; margin-bottom:18px; }
.platform-section-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:18px; }
.platform-section-head h2,.platform-side-card h2 { margin:0; font-size:17px; }
.platform-section-head p,.platform-side-card > div:first-child p { margin:4px 0 0; color:var(--ink-500); font-size:13px; }
.platform-table td { min-width:72px; }
.platform-table td:first-child { min-width:160px; }
.platform-table td:first-child small { display:block; margin-top:3px; }
.platform-inline { display:inline; }
.platform-side-card { gap:16px; }
.platform-kpi { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-bottom:12px; border-bottom:1px solid var(--line-soft); font-size:13px; color:var(--ink-700); }
.platform-kpi b { color:var(--ink-900); font-size:20px; }
.platform-note { padding:12px; border-radius:10px; background:var(--ground); color:var(--ink-500); font-size:12px; line-height:1.5; }
.platform-plans { margin-bottom:20px; }
@media (max-width:900px) { .platform-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .platform-columns { grid-template-columns:1fr; } }
@media (max-width:520px) { .platform-grid { gap:9px; } .platform-stat { padding:13px; } .platform-stat strong { font-size:24px; } .platform-section-head { align-items:flex-start; flex-direction:column; } }

/* Formulaire des offres SaaS */
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 18px; }
.form-grid > label { display:flex; flex-direction:column; gap:6px; font-size:14px; font-weight:700; }
.form-grid input:not([type=checkbox]), .form-grid textarea { width:100%; min-height:42px; border:1px solid var(--field); border-radius:10px; padding:9px 12px; background:var(--white); font-weight:400; }
.form-grid textarea { resize:vertical; }
.form-grid .full { grid-column:1 / -1; }
.check-label { display:flex; align-items:center; gap:9px; font-size:14px; font-weight:600; }
.check-label input { width:18px; height:18px; accent-color:var(--accent); }
@media(max-width:620px) { .form-grid { grid-template-columns:1fr; } .form-grid .full { grid-column:auto; } }


/* Logo Oneclic : PNG transparent directement sur le fond bleu nuit, sans cartouche blanc. */
.side .org-logo.platform-logo, .side .org-logo.tenant-logo { background: transparent; border: 0; box-shadow: none; border-radius: 0; padding: 0; min-height: 0; justify-content: flex-start; }

.platform-branding-form { display:flex; align-items:flex-end; gap:16px; flex-wrap:wrap; }
.platform-branding-form .field { flex:1 1 320px; margin:0; }

/* Mode monochrome blanc : traitement CSS direct, indépendant de JavaScript/CSP. */
.side .org-logo img[data-logo-mode="white"] {
  filter: brightness(0) invert(1) !important;
}
.side .org-logo img[data-logo-mode="color"],
.side .org-logo img[data-logo-mode="original"] {
  filter: none !important;
}

/* Liste des clients (super-administrateur) */
.tenant-list .tenant-row { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border-top: 1px solid var(--line-soft); }
.tenant-list .tenant-row:first-child { border-top: 0; }
.tenant-main { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.tenant-main .t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tenant-main .t b { font-size: 15px; }
.tenant-main .t span { font-size: 13px; color: var(--ink-500); }
.tenant-delete > summary { display: inline-block; font-size: 13px; font-weight: 700; color: var(--err-ink); cursor: pointer; list-style: none; }
.tenant-delete > summary::-webkit-details-marker { display: none; }
.tenant-delete > summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.tenant-delete[open] > summary { margin-bottom: 10px; }
.tenant-delete-form { display: flex; flex-direction: column; gap: 12px; max-width: 560px; padding: 14px; border: 1px solid #E8B4B4; border-radius: 12px; background: #FFF8F8; }
.tenant-delete-form .btn { align-self: flex-start; }

/* Propositions de dates */
.slot-rows { display: flex; flex-direction: column; gap: 10px; }
.slot-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 160px) 42px; gap: 10px; align-items: end; }
.slot-row .slot-err { grid-column: 1 / -1; }
@media (max-width: 520px) { .slot-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 42px; } }
