/* ═══════════════════════════════════════════════════════════════
   dashboard-app.css — CSS complet et autonome de l'espace établissement
   (variables + thème + layout — seul fichier CSS chargé par dashboard.html)
   ═══════════════════════════════════════════════════════════════ */

/* ── Tokens & variables — DA "Crème & Chaleur" ───────────────── */
:root {
  --bg:             #FAF7F2;
  --bg-2:           #F2EDE4;
  --surface:        #ffffff;
  --surface-strong: #ffffff;
  --surface-soft:   rgba(255,255,255,0.92);
  --text:           #1C1208;
  --muted:          #8C7060;
  --border:         rgba(221,208,190,0.7);
  --border-strong:  #DDD0BE;
  --brand:          #1A4530;
  --brand-2:        #2D6A47;
  --brand-soft:     #EBF3EE;
  --caramel:        #B8742A;
  --caramel-lt:     #FBF0E2;
  --success:        #1f7a4d;
  --warning:        #a16207;
  --danger:         #b42318;
  --shadow-lg:      0 20px 60px rgba(28,18,8,0.14);
  --shadow-md:      0 4px 20px rgba(28,18,8,0.09);
  --shadow-soft:    0 2px 8px rgba(28,18,8,0.06);
  --shadow-card:    0 1px 2px rgba(28,18,8,0.04), 0 3px 12px rgba(28,18,8,0.07);
  --radius-xl:      20px;
  --radius-lg:      16px;
  --radius-md:      12px;
  --radius-sm:      8px;

  /* Sidebar */
  --sidebar-w:          240px;
  --sidebar-collapsed:  64px;
  --sidebar-transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
  --sidebar-bg-top:     #1A4530;
  --sidebar-bg-bot:     #152E22;
  --sidebar-text:       rgba(255,255,255,0.58);
  --sidebar-text-hover: rgba(255,255,255,0.88);
  --sidebar-text-active:#ffffff;
  --sidebar-active-bg:  rgba(255,255,255,0.12);
  --sidebar-hover-bg:   rgba(255,255,255,0.07);
  --sidebar-border:     rgba(255,255,255,0.06);
}

/* ── Fonts (mêmes que index.html, auto-hébergées) ────────────── */
@import url('/assets/fonts/fonts.css');

/* ── Base & reset ────────────────────────────────────────────── */
html { color-scheme: light; }
*,*::before,*::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}
h4,h5,h6 { letter-spacing: -0.02em; color: var(--text); margin: 0; }
p           { color: var(--muted); margin: 0; }
a           { color: var(--brand); }
a:hover     { text-decoration: underline; }
button,input,select,textarea { font: inherit; }

input,select,textarea {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  transition: border-color 150ms, box-shadow 150ms;
}
input:focus,select:focus,textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(61,96,76,0.10);
}
button { transition: transform 150ms, box-shadow 150ms, opacity 150ms, background 150ms; }

/* ── Loading screen ──────────────────────────────────────────── */
.loading {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  color: var(--muted); font-size: 14px; font-weight: 500;
  z-index: 9999;
}

/* ══════════════════════════════════════════════════════════════
   APP SHELL  (sidebar + content, flex row)
══════════════════════════════════════════════════════════════ */
#appShell {
  display: block;
  height: 100vh;
  overflow: hidden;
}

/* ══════════════════════════════════════════════════════════════
   SIDEBAR  — collapsed (icon-only) by default, expands on hover
══════════════════════════════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-collapsed);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;                          /* clips text while collapsed */
  background: linear-gradient(160deg, var(--sidebar-bg-top) 0%, var(--sidebar-bg-bot) 100%);
  border-right: 1px solid var(--sidebar-border);
  transition: width var(--sidebar-transition);
  will-change: width;
  position: fixed;
  top: 0; left: 0;
  z-index: 200;
}

.sidebar:hover {
  width: var(--sidebar-w);
}

/* ── Sidebar header ──────────────────────────────────────────── */
.sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 19px 14px;    /* 19*2+26=64px: matches --sidebar-collapsed */
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 4px;
  flex-shrink: 0;
  overflow: hidden;
  white-space: nowrap;
}

.sidebar-logo {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 6px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

.sidebar-brand {
  min-width: 0;
  opacity: 0;
  transition: opacity 150ms ease 80ms;
}

.sidebar:hover .sidebar-brand { opacity: 1; }

.sidebar-brand h1 {
  font-size: 15px; font-weight: 800; color: #fff;
  letter-spacing: -0.03em; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.sidebar-brand p {
  font-size: 10px; color: rgba(255,255,255,0.38);
  margin: 1px 0 0; line-height: 1;
}

/* ── Navigation ──────────────────────────────────────────────── */
.menu {
  flex: 1;
  padding: 4px 0 8px;
  display: flex;
  flex-direction: column;
  overflow-y: auto; overflow-x: hidden;
  scrollbar-width: none;
}
.menu::-webkit-scrollbar { display: none; }

.menu-section-label {
  display: block;
  font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.10em;
  color: rgba(255,255,255,0.28);
  padding: 14px 0 3px 22px;
  white-space: nowrap; overflow: hidden;
  opacity: 0;
  transition: opacity 120ms ease 60ms;
  margin-top: 4px;
}

.sidebar:hover .menu-section-label { opacity: 1; }

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;         /* centered (icon) when collapsed */
  gap: 9px;
  width: calc(100% - 14px);
  margin: 1px 7px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13px; font-weight: 500;
  color: var(--sidebar-text);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  white-space: nowrap; overflow: hidden;
  transition: background 120ms, color 120ms, justify-content 0ms;
  position: relative;
  line-height: 1.3;
}

.sidebar:hover .nav-btn {
  justify-content: flex-start;    /* left-aligned (icon + label) when open */
}

.nav-btn:hover {
  background: var(--sidebar-hover-bg);
  color: var(--sidebar-text-hover);
  transform: none;
  text-decoration: none;
}

.nav-btn.active {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-text-active);
  border-color: rgba(255,255,255,0.08);
  font-weight: 600;
}

.nav-btn-icon {
  width: 16px; height: 16px;
  flex-shrink: 0;
  stroke: currentColor; fill: none;
  opacity: 0.80;
}
.nav-btn.active .nav-btn-icon { opacity: 1; }

.nav-btn-label {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis;
  opacity: 0;
  transition: opacity 130ms ease 70ms;
}
.sidebar:hover .nav-btn-label { opacity: 1; }

.nav-badge {
  background: rgba(239,68,68,.9);
  color: #fff;
  border-radius: 999px;
  font-size: 10px; font-weight: 700;
  padding: 1px 5px; min-width: 16px;
  text-align: center; flex-shrink: 0; line-height: 1.5;
  /* visible even when collapsed — stays clipped by overflow */
  opacity: 0;
  transition: opacity 130ms ease 70ms;
}
.sidebar:hover .nav-badge { opacity: 1; }

.nav-badge.setup { background: rgba(245,158,11,.9); }

/* ── Sidebar footer ──────────────────────────────────────────── */
.sidebar-footer {
  padding: 8px 7px 14px;
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
  overflow: hidden;
}

.sidebar-user {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 6px 8px;
  white-space: nowrap; overflow: hidden;
}

.sidebar-user-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.85);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}

#userInfo {
  font-size: 11px; color: rgba(255,255,255,0.42);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  min-width: 0; flex: 1;
  opacity: 0;
  transition: opacity 130ms ease 70ms;
}
.sidebar:hover #userInfo { opacity: 1; }

.logout {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; width: 100%;
  padding: 7px 11px; border-radius: 9px;
  font-size: 12px; font-weight: 500; cursor: pointer;
  background: transparent;
  color: rgba(255,255,255,0.40);
  border: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap; overflow: hidden;
  transition: background 120ms, color 120ms;
}
.sidebar:hover .logout { justify-content: flex-start; }
.logout:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.72); transform: none; }
.logout-label { opacity:0; transition: opacity 130ms ease 70ms; white-space:nowrap; }
.sidebar:hover .logout-label { opacity:1; }

/* ══════════════════════════════════════════════════════════════
   CONTENT AREA
══════════════════════════════════════════════════════════════ */
.content {
  margin-left: var(--sidebar-collapsed);
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* ── Topbar ──────────────────────────────────────────────────── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 20px 28px 0; flex-shrink: 0;
}

.topbar-title { min-width: 0; }
.topbar-title h2 { font-size: 22px; font-family: "Plus Jakarta Sans", sans-serif; font-weight: 900; color: var(--text); line-height: 1.2; letter-spacing: -0.02em; }
.topbar-title p  { font-size: 12px; margin: 2px 0 0; color: var(--muted); }

/* ── Metric cards ────────────────────────────────────────────── */
.cards {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 14px 28px; flex-shrink: 0;
}

.metric-card {
  flex: 1; min-width: 100px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  position: relative; overflow: hidden;
}
.metric-card::before {
  content: ""; position: absolute;
  top: 0; left: 0; width: 3px; height: 100%;
  background: var(--brand); opacity: 0.35;
  border-radius: 0 2px 2px 0;
}
.metric-card .label {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); margin-bottom: 5px;
}
.metric-card .value {
  font-size: 22px; font-weight: 800;
  color: var(--text); letter-spacing: -0.04em; line-height: 1;
}
.metric-value--text { font-size: 18px !important; }
.metric-value--sm   { font-size: 16px !important; }

/* ── Sections ────────────────────────────────────────────────── */
.section { display: none; padding: 6px 28px 48px; }
.section.active { display: block; }

/* ── Status badge (topbar) ───────────────────────────────────── */
.status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(31,122,77,0.09);
  border: 1px solid rgba(31,122,77,0.14);
  color: var(--success);
}

/* ── Surface components (generic) ───────────────────────────── */
.card,.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.card { border-color: var(--border-strong); }

.metric-card,.feature-card,.step,.customer-card,.table-card,.combo-card,
.summary-card,.empty-state,.placeholder-box,.snippet,.highlight,
.list-item,.security-note {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
}
.highlight,.list-item,.snippet { box-shadow: var(--shadow-soft); }

/* ── Badges & pills ──────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid rgba(61,96,76,0.14);
  border-radius: 999px; padding: 3px 10px; margin-bottom: 8px;
}
.brand-badge { letter-spacing:.04em; text-transform:uppercase; background:rgba(61,96,76,.08); border:1px solid rgba(61,96,76,.14); color:var(--brand-2); }

.pill,.step-index {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(61,96,76,.08); border: 1px solid rgba(61,96,76,.12); color: var(--brand-2);
}
.pill.success { background:rgba(31,122,77,.09); border-color:rgba(31,122,77,.15); color:var(--success); }
.pill.danger  { background:rgba(180,35,24,.08); border-color:rgba(180,35,24,.14); color:var(--danger);  }
.pill-pro { background:var(--brand-2); color:#fff; font-size:10px; font-weight:700; padding:2px 7px; border-radius:999px; letter-spacing:.04em; text-transform:uppercase; vertical-align:middle; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text);
  text-decoration: none;
  transition: box-shadow 150ms, transform 150ms, background 150ms;
  white-space: nowrap; line-height: 1.4;
}
.btn:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-sm,.btn.sm { padding: 6px 14px; font-size: 12px; }
.btn-ghost,.btn.ghost { background: transparent; border-color: var(--border); color: var(--muted); }

.btn-primary,.btn.primary { background:var(--brand); color:#fff; border-color:transparent; box-shadow:0 2px 8px rgba(36,61,49,.20); }
.btn-primary:hover,.btn.primary:hover { background:var(--brand-2); box-shadow:0 4px 16px rgba(36,61,49,.28); }

.btn-secondary,.btn.secondary { background:var(--surface); color:var(--text); border:1px solid var(--border-strong); }

button[type="submit"]       { background:var(--brand); color:#fff; border-color:transparent; box-shadow:0 2px 8px rgba(36,61,49,.20); }
button[type="submit"]:hover { background:var(--brand-2); }

.login-btn { background:var(--brand); color:#fff; border-color:transparent; }

.tabs button       { border:1px solid var(--border); background:var(--surface); color:var(--text); }
.tabs button.active { background:var(--brand-2); color:#fff; border-color:transparent; }
.menu button       { border:1px solid var(--border); background:var(--surface); color:var(--text); }
.menu button.active { background:var(--brand-soft); color:var(--brand-2); border-color:rgba(61,96,76,.14); }

/* ── Slot ────────────────────────────────────────────────────── */
.slot { border:1px solid rgba(61,96,76,.15); background:var(--surface); color:var(--brand-2); box-shadow:var(--shadow-soft); border-radius:var(--radius-sm); }
.slot.active  { background:var(--brand); color:#fff; border-color:transparent; box-shadow:0 4px 14px rgba(61,96,76,.22); }
.slot.disabled { background:#f2f2f2; color:#a0a0a0; border-color:#e5e5e5; }

/* ── Progress ────────────────────────────────────────────────── */
.progress     { background:rgba(61,96,76,.07); border-radius:999px; border-color:var(--border); }
.progress-bar { background:var(--brand); border-radius:999px; }

/* ── Text helpers ────────────────────────────────────────────── */
.error   { color:var(--danger); }
.success { color:var(--success); }
.info,.helper,.footer-note,.subtitle,.card-subtitle,.panel p,.highlight span,.list-item,
.detail-value,.status,.customer-meta,.table-meta,.combo-meta { color:var(--muted); }
.topbar h2,.brand h1,.card h2,.card h1,.panel h3,.feature-card h4,
.customer-card strong,.table-card strong,.combo-card strong,.metric-card .value { letter-spacing:-0.03em; }
.topbar p,.brand p { color:var(--muted); }
.card-head,.panel,.feature-card,.customer-card,.table-card,.combo-card,.summary-card,.step-body,.card-body { position:relative; }

/* ── Form fields ─────────────────────────────────────────────── */
.field { display:flex; flex-direction:column; gap:5px; }
.field-label { font-size:11px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.05em; }
.field-hint  { font-size:12px; color:var(--muted); line-height:1.5; }
.field-grid  { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.field-row   { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 0; border-bottom:1px solid var(--border); }
.field-row:last-child { border-bottom:none; }

.field input,.field select,.field textarea,
input[type="email"],input[type="password"],input[type="text"],input[type="date"],input[type="tel"],
select,textarea { border-radius:var(--radius-md); }

.form-actions { display:flex; gap:8px; justify-content:flex-end; margin-top:18px; padding-top:14px; border-top:1px solid var(--border); }

/* ── Panel ───────────────────────────────────────────────────── */
.panel { padding:20px 22px; }
.panel h3 { font-size:15px; font-weight:700; letter-spacing:-0.02em; margin-bottom:4px; }
.panel > p { font-size:13px; color:var(--muted); margin-bottom:16px; line-height:1.5; }

/* ── Card head ───────────────────────────────────────────────── */
.card-head       { display:flex; align-items:flex-start; gap:12px; margin-bottom:16px; }
.card-head-icon           { width:36px; height:36px; border-radius:var(--radius-sm); background:var(--brand-soft); display:flex; align-items:center; justify-content:center; flex-shrink:0; color:var(--brand); }
.card-head-icon--caramel  { background:var(--caramel-lt); color:var(--caramel); }
.card-head-icon--brand    { background:var(--brand-soft); color:var(--brand); }
.card-head-right          { margin-left:auto; display:flex; gap:8px; align-items:center; }
.daily-date-picker        { width:160px; font-size:13px; }
.menu-daily-footer        { margin-top:16px; display:flex; gap:10px; justify-content:flex-end; }
.card-head-title { font-size:14px; font-weight:700; color:var(--text); letter-spacing:-0.02em; }
.card-head-sub   { font-size:12px; color:var(--muted); margin:2px 0 0; line-height:1.5; }

/* ── Stack & misc layout ─────────────────────────────────────── */
.stack { display:flex; flex-direction:column; gap:14px; }
.list  { display:flex; flex-direction:column; gap:6px; }
.empty-state { text-align:center; padding:36px 24px; color:var(--muted); font-size:13px; }
.link-inline { color:var(--brand); text-decoration:underline; cursor:pointer; }
.meta { font-size:12px; color:var(--muted); }

/* ── Toggle switch ───────────────────────────────────────────── */
.toggle-switch { position:relative; display:inline-flex; width:38px; height:21px; flex-shrink:0; }
.toggle-switch input { opacity:0; width:0; height:0; border:none; }
.toggle-slider { position:absolute; inset:0; background:rgba(61,96,76,.15); border-radius:999px; cursor:pointer; transition:background 200ms; }
.toggle-slider::before { content:""; position:absolute; top:3px; left:3px; width:15px; height:15px; background:#fff; border-radius:50%; transition:transform 200ms; box-shadow:0 1px 3px rgba(0,0,0,.18); }
.toggle-switch input:checked + .toggle-slider { background:var(--brand); }
.toggle-switch input:checked + .toggle-slider::before { transform:translateX(17px); }

/* ── Setting rows ────────────────────────────────────────────── */
.setting-row { display:flex; align-items:center; gap:14px; padding:12px 0; border-bottom:1px solid var(--border); }
.setting-row:last-child { border-bottom:none; }
.setting-row-info  { margin-right:auto; }
.setting-row-title { font-size:13px; font-weight:600; color:var(--text); }
.setting-row-desc  { font-size:12px; color:var(--muted); margin-top:2px; line-height:1.5; }

.pro-feature-row { display:flex; align-items:center; gap:10px; padding:10px 14px; border-radius:var(--radius-sm); background:rgba(217,119,6,.05); border:1px solid rgba(217,119,6,.12); }
.pro-lock-badge  { font-size:10px; font-weight:700; padding:2px 7px; border-radius:999px; background:rgba(217,119,6,.10); color:#92400e; }
.pro-feature-row.locked          { opacity:.55; pointer-events:none; }
.pro-feature-row.locked-clickable { cursor:pointer; opacity:.65; }
.pro-feature-row.locked-clickable:hover { opacity:.85; }

/* ══════════════════════════════════════════════════════════════
   ACCUEIL / OVERVIEW
══════════════════════════════════════════════════════════════ */

/* Hero banner */
.ov-hero {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  border-radius: var(--radius-xl); padding: 28px 36px;
  margin-bottom: 22px; color: #fff; position: relative; overflow: hidden;
}
.ov-hero::before {
  content:""; position:absolute; top:-70px; right:-50px;
  width:240px; height:240px; border-radius:50%;
  background:rgba(255,255,255,.06); pointer-events:none;
}
.ov-hero::after {
  content:""; position:absolute; bottom:-50px; left:160px;
  width:180px; height:180px; border-radius:50%;
  background:rgba(255,255,255,.04); pointer-events:none;
}

/* JS injecte ces classes dans .ov-hero */
.ws-greeting { display:flex; flex-direction:column; gap:4px; min-width:0; position:relative; z-index:1; }
.ws-day      { font-size:12px; font-weight:600; text-transform:capitalize; opacity:.72; letter-spacing:.03em; }
.ws-hello    { font-size:24px; font-weight:800; letter-spacing:-.03em; line-height:1.2; font-family:"Plus Jakarta Sans",sans-serif; }

.ws-stats       { display:flex; align-items:center; gap:1px; position:relative; z-index:1; }
.ws-stat        { display:flex; flex-direction:column; align-items:center; gap:3px; padding:12px 24px; }
.ws-stat + .ws-stat { border-left:1px solid rgba(255,255,255,.18); }
.ws-stat-val    { font-size:32px; font-weight:800; letter-spacing:-.05em; line-height:1; font-family:"Plus Jakarta Sans",sans-serif; }
.ws-stat-label  { font-size:11px; opacity:.70; font-weight:500; letter-spacing:.02em; text-align:center; white-space:nowrap; }
.ws-stat-next .ws-stat-val { color:var(--caramel-lt); }

.ws-weather     { display:flex; align-items:center; gap:12px; background:rgba(255,255,255,.13); border:1px solid rgba(255,255,255,.15); border-radius:14px; padding:12px 18px; position:relative; z-index:1; }
.ws-wx-icon     { font-size:26px; line-height:1; }
.ws-wx-temp     { font-size:18px; font-weight:800; letter-spacing:-.03em; line-height:1.1; }
.ws-wx-label    { font-size:11px; opacity:.72; margin-top:2px; white-space:nowrap; }

/* KPI row */
.ov-kpi-row { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:22px; }

.overview-quick-card {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:20px 22px;
  box-shadow:var(--shadow-card); position:relative; overflow:hidden;
  display:flex; flex-direction:column; gap:8px;
  transition:box-shadow .18s ease, transform .18s ease;
}
.overview-quick-card:hover { box-shadow:var(--shadow-md); transform:translateY(-2px); }
.overview-quick-card::before {
  content:""; position:absolute; top:0; left:0; width:3px; height:100%;
  background:var(--brand); border-radius:0 2px 2px 0; opacity:.5;
}
.overview-quick-card .detail-label {
  font-size:10px; font-weight:700; text-transform:uppercase;
  letter-spacing:.07em; color:var(--muted);
}
.overview-quick-card strong {
  font-size:30px; font-weight:800; color:var(--text);
  letter-spacing:-.05em; line-height:1;
  font-family:"Plus Jakarta Sans",sans-serif; display:block;
}

/* Main grid */
.ov-main-grid { display:grid; grid-template-columns:1fr 340px; gap:20px; align-items:start; }

/* Activity panel */
.ov-panel {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:24px 26px;
  box-shadow:var(--shadow-card);
}
.ov-panel-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:20px; }
.ov-panel-title { font-size:17px; font-weight:800; color:var(--text); letter-spacing:-.02em; margin:0 0 3px; font-family:"Plus Jakarta Sans",sans-serif; }
.ov-panel-sub   { font-size:12px; color:var(--muted); margin:0; }
.ov-feed        { display:flex; flex-direction:column; gap:10px; }

/* Items activité récente (JS génère .list-item dans #recentActivity) */
#recentActivity .list-item {
  display:grid; grid-template-columns:auto 1fr; gap:0 14px;
  padding:14px 16px; border-radius:var(--radius-md);
  border:1px solid var(--border); background:var(--bg);
  box-shadow:none; position:relative; overflow:hidden;
  transition:border-color .15s, box-shadow .15s;
}
#recentActivity .list-item::before {
  content:""; position:absolute; left:0; top:0; bottom:0; width:3px;
  background:var(--brand-2); border-radius:2px 0 0 2px;
}
#recentActivity .list-item:hover { border-color:var(--border-strong); box-shadow:var(--shadow-soft); }
#recentActivity .list-item strong {
  grid-column:1/-1; font-size:14px; font-weight:700; color:var(--text); display:block; margin-bottom:3px;
}
#recentActivity .list-item > div:not(.list-item-meta) {
  grid-column:1/-1; font-size:12px; color:var(--muted); line-height:1.5; margin-bottom:6px;
}
#recentActivity .list-item-meta  { grid-column:1/-1; display:flex; flex-wrap:wrap; gap:6px; }
#recentActivity .pill-row        { display:flex; align-items:center; gap:5px; }
#recentActivity .pill-row strong { font-size:11px; color:var(--muted); font-weight:600; min-width:0; }

/* Setup / Onboarding panel */
.ov-setup {
  border-radius:var(--radius-lg); overflow:hidden;
  border:1px solid var(--border); box-shadow:var(--shadow-card);
}
.ov-setup-banner {
  background:linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  padding:22px 24px; color:#fff; position:relative; overflow:hidden;
}
.ov-setup-banner::after {
  content:""; position:absolute; top:-35px; right:-35px;
  width:110px; height:110px; border-radius:50%; background:rgba(255,255,255,.07);
}
.ov-setup-banner .eyebrow { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.09em; opacity:.68; }
.ov-setup-banner h3       { font-size:18px; font-weight:800; margin:6px 0 7px; letter-spacing:-.02em; font-family:"Plus Jakarta Sans",sans-serif; }
.ov-setup-banner p        { font-size:12px; opacity:.75; line-height:1.55; margin:0; }

.ov-setup-body { background:var(--surface); padding:20px 22px; display:flex; flex-direction:column; gap:14px; }

.ov-progress-row  { display:flex; align-items:center; gap:10px; }
.ov-progress-label{ font-size:12px; font-weight:600; color:var(--muted); white-space:nowrap; }

.onboarding-progress-track { flex:1; height:5px; background:rgba(26,69,48,.10); border-radius:999px; overflow:hidden; }
.onboarding-progress-fill  { height:100%; background:var(--brand); border-radius:999px; transition:width 500ms cubic-bezier(.4,0,.2,1); }

/* Items checklist (JS génère .onboarding-check-row) */
.ov-checklist { display:flex; flex-direction:column; gap:8px; }

.onboarding-check-row {
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:11px 13px; border-radius:var(--radius-md);
  border:1px solid var(--border); background:var(--bg);
  transition:border-color .15s;
}
.onboarding-check-row strong {
  font-size:12px; font-weight:600; flex:1; min-width:0;
  line-height:1.4; color:var(--text);
}

.ov-setup-actions { display:flex; flex-direction:column; gap:8px; }
.ov-setup-actions .btn { width:100%; justify-content:center; text-align:center; }

/* ── Section layout helpers ──────────────────────────────────── */
.section-grid  { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.compact-2     { display:grid; grid-template-columns:1fr 1fr; gap:18px; max-width:920px; }
.section-header { margin-bottom:18px; }
.section-title  { font-size:21px; font-family:"Plus Jakarta Sans",sans-serif; font-weight:900; color:var(--text); letter-spacing:-0.02em; margin:0 0 4px; }
.section-sub    { font-size:13px; color:var(--muted); line-height:1.5; }

/* ══════════════════════════════════════════════════════════════
   FLOORPLAN
══════════════════════════════════════════════════════════════ */
.floorplan-layout { display:flex; gap:16px; height:calc(100vh - 190px); min-height:500px; }
.floorplan-sidebar { width:240px; flex-shrink:0; overflow-y:auto; height:100%; padding:16px 18px !important; }
.floorplan-stage  { flex:1; min-width:0; display:flex; flex-direction:column; height:100%; overflow:hidden; padding:16px 18px !important; }
.floorplan-stage-header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding-bottom:10px; flex-shrink:0; }
.floorplan-stage-meta   { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.floorplan-room-tabs    { display:flex; gap:6px; margin-bottom:10px; flex-wrap:wrap; flex-shrink:0; }

.floorplan-canvas { flex:1; overflow:auto; border:1px solid var(--border); border-radius:var(--radius-md); background:var(--bg-2); min-height:0; position:relative; }
.floorplan-canvas-scene  { position:relative; min-width:800px; min-height:600px; }
.floorplan-floor         { position:absolute; inset:20px; border-radius:var(--radius-sm); border:1px dashed rgba(61,96,76,.18); }
.floorplan-wall          { position:absolute; background:rgba(61,96,76,.10); }
.floorplan-wall.top,.floorplan-wall.bottom { left:0; right:0; height:7px; }
.floorplan-wall.left,.floorplan-wall.right { top:0; bottom:0; width:7px; }
.floorplan-wall.top    { top:0; }
.floorplan-wall.bottom { bottom:0; }
.floorplan-wall.left   { left:0; }
.floorplan-wall.right  { right:0; }
.floorplan-canvas-zone,.floorplan-rooms-layer,.floorplan-tables-layer { position:absolute; inset:0; }
.floorplan-tables-layer { z-index:2; }
.floorplan-rooms-layer  { z-index:1; }
.floorplan-note { font-size:11px; color:var(--muted); margin:8px 0 0; flex-shrink:0; }

.floorplan-zoom-bar { display:flex; align-items:center; gap:2px; border:1px solid var(--border); border-radius:9px; padding:2px; background:var(--surface); }
.floorplan-zoom-btn { width:26px; height:26px; border-radius:7px; border:none; background:transparent; cursor:pointer; font-size:13px; font-weight:600; display:flex; align-items:center; justify-content:center; color:var(--text); }
.floorplan-zoom-btn:hover { background:var(--brand-soft); }
.floorplan-zoom-level { font-size:11px; font-weight:600; color:var(--muted); min-width:32px; text-align:center; }
.floorplan-toggle-lock { font-size:11px; font-weight:600; padding:5px 11px; border-radius:7px; border:1px solid var(--border-strong); background:var(--surface); cursor:pointer; color:var(--text); }

.floorplan-inspector,.floorplan-room-editor { border:1px solid var(--border); border-radius:var(--radius-md); background:var(--surface); padding:12px 14px; margin-bottom:10px; flex-shrink:0; }

/* ══════════════════════════════════════════════════════════════
   WIDGET HUB
══════════════════════════════════════════════════════════════ */

/* Layout principal */
.widget-layout     { display:grid; grid-template-columns:1fr 290px; gap:20px; align-items:start; }
.widget-hub-main   { min-width:0; }
.widget-rail       { display:flex; flex-direction:column; gap:14px; min-width:0; }

/* Colonne principale : guide d'intégration (JS-rendu) */
.widget-hub-status { display:flex; flex-direction:column; gap:16px; }

/* Panneau lien public */
.widget-access-panel { padding:18px 20px; }
.widget-access-head  { display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.widget-access-icon-wrap {
  width:36px; height:36px; border-radius:var(--radius-sm);
  background:var(--brand-soft); color:var(--brand);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.widget-access-title { font-size:13px; font-weight:700; color:var(--text); }
.widget-access-sub   { font-size:11px; color:var(--muted); margin-top:1px; }
.widget-access-link-content {
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
  font-size:12px; color:var(--muted);
}
.widget-access-link-content .inline-link {
  font-size:12px; color:var(--brand); font-weight:600;
  word-break:break-all; text-decoration:none;
}
.widget-access-link-content .inline-link:hover { text-decoration:underline; }

/* ── Panneau paramètres pleine largeur ──────────────────────────── */
.widget-settings-full { margin-top:20px; padding:0; overflow:hidden; }
.widget-settings-full-head {
  display:flex; align-items:center; gap:14px;
  padding:18px 22px 16px; border-bottom:1px solid var(--border);
}
.widget-settings-full-head-icon {
  width:38px; height:38px; border-radius:var(--radius-md);
  background:var(--brand-soft); color:var(--brand);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.widget-settings-full-head h3 {
  font-size:15px; font-weight:800; letter-spacing:-.02em; margin:0 0 2px;
  font-family:"Plus Jakarta Sans",sans-serif; color:var(--text);
}
.widget-settings-full-head p { font-size:12px; color:var(--muted); margin:0; }
.widget-settings-body { padding:22px; }
/* businessWidgetContent: flex column by default, 2-col grid when preview exists */
#businessWidgetContent {
  display:flex; flex-direction:column; gap:12px;
}
#businessWidgetContent:has(.widget-preview-section) {
  display:grid;
  grid-template-columns:1fr 420px; row-gap:0; column-gap:28px; align-items:start;
}
#businessWidgetContent:has(.widget-preview-section) > * { grid-column:1; }
/* Preview section (class added by JS) — right column, full height, sticky */
#businessWidgetContent .widget-preview-section {
  grid-column:2; grid-row:1 / 100;
  position:sticky; top:80px;
  border:1px solid var(--border); border-radius:var(--radius-lg);
  overflow:hidden; background:var(--surface);
}
#businessWidgetContent .widget-preview-section iframe {
  width:100% !important; display:block !important;
  height:500px !important; max-height:500px !important;
}
/* Preview header row */
#businessWidgetContent .widget-preview-section > div:first-child {
  display:flex; align-items:center; justify-content:space-between;
  padding:11px 16px; border-bottom:1px solid var(--border);
  background:var(--surface);
}

/* Prérequis */
.widget-prereqs-panel { }
.widget-prereqs { display:flex; flex-direction:column; gap:6px; margin-top:12px; }

.widget-prereq-btn {
  display:flex; align-items:center; gap:10px;
  width:100%; text-align:left; cursor:pointer;
  padding:10px 12px; border-radius:var(--radius-md);
  border:1px solid var(--border); background:var(--bg);
  transition:border-color .15s, box-shadow .15s, background .15s;
}
.widget-prereq-btn:hover {
  border-color:var(--border-strong); box-shadow:var(--shadow-soft);
  background:var(--surface); transform:none;
}
.widget-prereq-icon {
  width:32px; height:32px; border-radius:var(--radius-sm);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0; font-size:15px;
  background:var(--brand-soft); border:1px solid rgba(26,69,48,.08);
}
.widget-prereq-body { flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; }
.widget-prereq-label { font-size:12px; font-weight:700; color:var(--text); }
.widget-prereq-desc  { font-size:11px; color:var(--muted); line-height:1.4; }
.widget-prereq-arrow { color:var(--muted); flex-shrink:0; }

/* Après publication */
.widget-after-panel { }
.widget-after-links { display:flex; flex-direction:column; gap:8px; margin-top:12px; }
.widget-after-btn {
  display:flex; align-items:center; gap:10px;
  width:100%; text-align:left; cursor:pointer;
  padding:10px 14px; border-radius:var(--radius-md);
  border:1px solid var(--border); background:var(--bg);
  font-size:13px; font-weight:600; color:var(--text);
  transition:border-color .15s, background .15s;
}
.widget-after-btn:hover { background:var(--surface); border-color:var(--border-strong); transform:none; box-shadow:none; }
.widget-after-btn svg { color:var(--brand); flex-shrink:0; }

/* JS-generated classes dans widgetStatusContent */
.widget-embed-tabs {
  display:flex; gap:6px; flex-wrap:wrap;
}
.widget-embed-tab {
  display:flex; align-items:center; gap:7px;
  padding:8px 14px; border-radius:999px; cursor:pointer;
  border:1px solid var(--border); background:var(--bg);
  font-size:13px; font-weight:600; color:var(--muted);
  transition:background .15s, color .15s, border-color .15s;
}
.widget-embed-tab:hover { background:var(--surface); color:var(--text); border-color:var(--border-strong); }
.widget-embed-tab.is-active {
  background:var(--brand); color:#fff; border-color:transparent;
  box-shadow:0 2px 8px rgba(26,69,48,.25);
}

.widget-help-card {
  background:var(--bg-2); border:1px solid var(--border);
  border-radius:var(--radius-lg); overflow:hidden;
}
.widget-help-toggle {
  display:flex; align-items:center; gap:12px;
  width:100%; padding:14px 16px; cursor:pointer;
  background:transparent; border:none; text-align:left;
}
.widget-help-toggle-text { flex:1; }
.widget-help-toggle-text strong { display:block; font-size:13px; font-weight:700; color:var(--text); }
.widget-help-toggle-text span   { display:block; font-size:12px; color:var(--muted); margin-top:2px; }
.widget-help-chevron { font-size:11px; color:var(--muted); flex-shrink:0; }
.widget-help-form { padding:0 16px 16px; }

/* ── detail-row global (JS generateDetailRow) ────────────────── */
.detail-row {
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding:10px 0;
  border-bottom:1px solid var(--border); font-size:13px;
}
.detail-row:last-of-type { border-bottom:none; }
.detail-label { font-size:12px; font-weight:600; color:var(--muted); flex-shrink:0; }
/* .detail-value already has color:var(--muted) via global rule */

/* ── Widget hub main panel header ────────────────────────────── */
.widget-main-header {
  display:flex; align-items:center; gap:14px;
  padding-bottom:18px; margin-bottom:18px;
  border-bottom:1px solid var(--border);
}
.widget-main-header-icon {
  width:40px; height:40px; border-radius:var(--radius-md);
  background:var(--brand-soft); color:var(--brand);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.widget-main-header h3 { font-size:16px; font-weight:800; letter-spacing:-.02em; margin:0 0 2px; font-family:"Plus Jakarta Sans",sans-serif; }
.widget-main-header p  { font-size:12px; color:var(--muted); margin:0; line-height:1.4; }

/* ── Widget status: state row (1er detail-row dans widgetStatusContent) */
.widget-hub-status > .detail-row:first-child {
  background:var(--brand-soft); border:1px solid rgba(26,69,48,.1);
  border-radius:var(--radius-md); padding:10px 14px; margin-bottom:4px;
}
.widget-hub-status > .detail-row:first-child .detail-label { color:var(--brand-2); }
.widget-hub-status > .detail-row:first-child .detail-value { color:var(--brand); font-weight:700; font-size:14px; }

/* ── Platform tabs content area ──────────────────────────────── */
.widget-embed-content {
  background:var(--bg); border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:18px 20px;
  display:flex; flex-direction:column; gap:12px;
}
.widget-embed-steps {
  margin:0; padding-left:18px;
  display:flex; flex-direction:column; gap:7px;
}
.widget-embed-steps li { font-size:13px; color:var(--text); line-height:1.55; }
.widget-embed-code-label {
  font-size:10px; font-weight:700; text-transform:uppercase;
  letter-spacing:.07em; color:var(--muted);
}
.widget-embed-content .snippet {
  font-family:"SFMono-Regular",Consolas,monospace;
  font-size:12px; word-break:break-all;
  background:var(--text); color:rgba(255,255,255,.88);
  border:none; box-shadow:none; border-radius:var(--radius-md);
  padding:12px 14px; max-height:72px; overflow-y:auto;
}
.widget-embed-content .snippet code { font-family:inherit; }
.widget-embed-copy-btn { align-self:flex-start; }

/* ── Paramètres body: overrides empty-state, snippet, form ──────── */
#businessWidgetContent .empty-state {
  text-align:left; padding:12px 16px;
  background:var(--brand-soft); border-color:rgba(26,69,48,.10);
  box-shadow:none; border-radius:var(--radius-md);
  font-size:12px; color:var(--brand-2); margin-bottom:0;
}
#businessWidgetContent .empty-state strong {
  color:var(--brand); font-size:12px; display:block; margin-bottom:3px;
}
/* Checklist snippet: clean card */
#businessWidgetContent .snippet {
  box-shadow:none; padding:16px; font-size:13px;
  background:var(--bg); border:1px solid var(--border); border-radius:var(--radius-md);
}
#businessWidgetContent .snippet strong { font-size:13px; font-weight:700; color:var(--text); display:block; margin-bottom:10px; }
/* Checklist detail-rows inside snippet: keep horizontal */
#businessWidgetContent .snippet .detail-row { padding:8px 0; border-bottom:1px solid var(--border); }
#businessWidgetContent .snippet .detail-row:last-child { border-bottom:none; }
#businessWidgetContent .snippet .detail-label { font-size:12px; font-weight:500; color:var(--text); }

/* Form (description textarea): give it a section look */
#businessWidgetContent > form {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius-md); padding:16px; gap:12px;
}
/* Labeled textarea: vertical layout */
#businessWidgetContent form .detail-row {
  flex-direction:column; align-items:flex-start;
  gap:6px; padding:0; border-bottom:none;
}
#businessWidgetContent form .detail-label {
  font-size:12px; font-weight:700; color:var(--text); letter-spacing:.01em;
}
#businessWidgetContent form .detail-value { width:100%; }
#businessWidgetContent form .detail-value textarea {
  width:100%; max-width:100%;
}
/* Remove divider from save button row inside the form card */
#businessWidgetContent form .form-actions {
  margin-top:4px; padding-top:0; border-top:none;
  justify-content:flex-start;
}

/* Info rows (direct children after form): clean with section gap */
#businessWidgetContent > .detail-row {
  padding:11px 0; border-bottom:1px solid var(--border);
}
#businessWidgetContent > .detail-row .detail-label { font-size:12px; font-weight:600; color:var(--muted); }
#businessWidgetContent > .detail-row .detail-value  { font-size:13px; color:var(--text); }

/* Bottom action bar */
#businessWidgetContent > .form-actions {
  padding-top:14px; border-top:1px solid var(--border);
  justify-content:flex-start; gap:10px; flex-wrap:wrap;
  margin-top:0;
}

/* ══════════════════════════════════════════════════════════════
   MENU / CARTE
══════════════════════════════════════════════════════════════ */
.menu-publish-bar {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:11px 16px; border-radius:var(--radius-md);
  background:var(--surface); border:1px solid var(--border);
  margin-bottom:16px; max-width:900px; box-shadow:var(--shadow-soft);
}
.menu-publish-status { display:flex; align-items:center; gap:8px; font-size:13px; font-weight:600; }
.menu-publish-dot    { width:7px; height:7px; border-radius:50%; background:var(--success); }
.menu-url-card       { max-width:900px; margin-bottom:16px; padding:14px 18px; }
.menu-url-field      { margin-top:14px; }
.menu-url-row        { display:flex; gap:8px; align-items:center; }
.menu-url-input      { flex:1; }
.menu-url-feedback   { margin-top:6px; }
.menu-card           { margin-top:16px; }
.daily-feedback      { margin-top:8px; text-align:right; }
.menu-daily-grid     { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; max-width:900px; }
.menu-daily-col      { display:flex; flex-direction:column; gap:6px; }
.menu-daily-col-head { font-size:11px; font-weight:700; color:var(--muted); text-align:center; padding-bottom:6px; border-bottom:1px solid var(--border); text-transform:uppercase; letter-spacing:.05em; display:flex; align-items:center; justify-content:center; gap:5px; }
.menu-daily-items    { display:flex; flex-direction:column; gap:4px; }
.menu-add-btn { width:100%; padding:6px; border-radius:7px; border:1px dashed var(--border-strong); background:transparent; color:var(--muted); font-size:12px; cursor:pointer; transition:border-color 120ms, color 120ms; }
.menu-add-btn:hover { border-color:var(--brand); color:var(--brand); }

/* ══════════════════════════════════════════════════════════════
   SUPPORT / MESSAGES
══════════════════════════════════════════════════════════════ */
.msg-shell {
  display:flex; gap:0;
  height:calc(100vh - 190px); min-height:400px;
  border:1px solid var(--border); border-radius:var(--radius-lg);
  overflow:hidden; background:var(--surface); box-shadow:var(--shadow-card);
}
.msg-sidebar {
  width:280px; flex-shrink:0;
  border-right:1px solid var(--border);
  display:flex; flex-direction:column; overflow:hidden; background:var(--bg);
}
.msg-sidebar-head   { padding:14px 16px 11px; border-bottom:1px solid var(--border); flex-shrink:0; background:var(--surface); display:flex; align-items:center; justify-content:space-between; }
.msg-sidebar-title  { font-size:14px; font-weight:800; color:var(--text); letter-spacing:-0.02em; }
.msg-sidebar-sub    { font-size:11px; color:var(--muted); margin:2px 0 0; }
.msg-filter-bar     { padding:8px 10px; border-bottom:1px solid var(--border); flex-shrink:0; background:var(--surface); }
.msg-filter-select  { width:100%; font-size:12px; padding:5px 9px; border-radius:7px; }
.msg-list           { flex:1; overflow-y:auto; }
.msg-main           { flex:1; min-width:0; display:flex; flex-direction:column; overflow:hidden; }
.msg-conversation-wrap { flex:1; overflow-y:auto; padding:16px 20px; }
.msg-new-btn { margin:8px 10px; flex-shrink:0; }
.msg-empty-state { display:flex; flex-direction:column; align-items:center; justify-content:center; height:100%; padding:32px; text-align:center; }
.msg-empty-icon  { font-size:28px; margin-bottom:10px; opacity:.6; }
.msg-empty-title { font-size:14px; font-weight:700; color:var(--text); margin:0 0 4px; }
.msg-empty-sub   { font-size:13px; color:var(--muted); }

/* Compose overlay */
.msg-compose-overlay { position:fixed; inset:0; background:rgba(0,0,0,.40); z-index:9000; display:none; align-items:flex-end; justify-content:center; padding:0; }
.msg-compose-overlay.is-open,.msg-compose-overlay[aria-hidden="false"] { display:flex; }
.msg-compose-panel   { width:100%; max-width:600px; background:#fff; border-radius:18px 18px 0 0; padding:22px 24px 28px; max-height:80vh; overflow-y:auto; }
.msg-compose-head    { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.msg-compose-title   { font-size:16px; font-weight:800; color:var(--text); letter-spacing:-0.03em; }
.msg-compose-close   { width:28px; height:28px; border-radius:50%; border:1px solid var(--border); background:var(--surface); cursor:pointer; font-size:14px; display:flex; align-items:center; justify-content:center; }
.msg-compose-body    { display:flex; flex-direction:column; gap:10px; }
.msg-compose-field   { display:flex; flex-direction:column; gap:4px; }
.msg-compose-row     { display:flex; align-items:center; gap:8px; }
.msg-compose-actions { display:flex; gap:8px; justify-content:flex-end; margin-top:14px; }
.msg-compose-status  { font-size:12px; color:var(--muted); }

/* ══════════════════════════════════════════════════════════════
   CLIENTS
══════════════════════════════════════════════════════════════ */
.clients-page    { display:grid; grid-template-columns:1fr 300px; gap:20px; align-items:start; max-width:1020px; }
.clients-main,.clients-rail { min-width:0; }
.clients-hero    { margin-bottom:16px; }
.clients-hero-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:10px; }
.clients-hero-copy { min-width:0; }
.clients-hero-actions { display:flex; gap:8px; flex-shrink:0; flex-wrap:wrap; }
.clients-hero-stats   { display:flex; gap:8px; flex-wrap:wrap; }

.clients-stat-card      { flex:1; min-width:90px; padding:10px 14px; border-radius:var(--radius-md); background:var(--surface); border:1px solid var(--border); box-shadow:var(--shadow-soft); }
.clients-stat-card--wide { flex:2; }
.clients-stat-val        { display:block; font-size:20px; font-weight:800; letter-spacing:-0.04em; color:var(--text); line-height:1; }
.clients-stat-val--name  { font-size:15px; }
.clients-stat-label      { display:block; font-size:10px; color:var(--muted); font-weight:700; text-transform:uppercase; letter-spacing:.05em; margin-top:3px; }

.clients-grid      { display:flex; flex-direction:column; gap:8px; }
.clients-card      { padding:12px 16px; border-radius:var(--radius-md); cursor:pointer; transition:box-shadow 150ms, transform 150ms; }
.clients-card:hover { box-shadow:var(--shadow-md); transform:translateY(-1px); }
.clients-card-head { display:flex; align-items:center; gap:8px; }
.clients-card-kicker { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.07em; color:var(--muted); margin-bottom:4px; }
.clients-search-card { padding:14px 16px; margin-bottom:10px; }
.clients-side-card   { padding:14px 16px; margin-bottom:10px; }
.clients-side-list   { display:flex; flex-direction:column; gap:5px; }
.clients-results-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; font-size:12px; color:var(--muted); }
.client-results-shell,.clients-results-shell { min-height:80px; }

/* ══════════════════════════════════════════════════════════════
   TEAM
══════════════════════════════════════════════════════════════ */
.team-layout     { max-width:680px; display:flex; flex-direction:column; gap:18px; }
.team-header     { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:4px; }
.team-members-list { display:flex; flex-direction:column; gap:10px; }

/* Team member card (JS-rendered) */
.team-member-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  transition: box-shadow 120ms;
}
.team-member-card:hover { box-shadow: var(--shadow-md); }

.team-member-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; font-family: "Plus Jakarta Sans", sans-serif;
  border: 1.5px solid rgba(26,69,48,.12);
}
.team-member-info { flex: 1; min-width: 0; }
.team-member-name {
  font-size: 14px; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.team-member-email { font-size: 12px; color: var(--muted); margin-top: 1px; }
.team-member-pending { font-size: 11px; color: var(--caramel); margin-top: 2px; }

.team-member-role { flex-shrink: 0; text-align: right; }
.team-role-pill {
  display: inline-block; padding: 3px 10px;
  border-radius: 999px; font-size: 11px; font-weight: 700;
}
.team-role-desc { font-size: 11px; color: var(--muted); margin-top: 3px; max-width: 200px; line-height: 1.4; }

.team-member-actions { display: flex; gap: 6px; flex-shrink: 0; margin-left: 4px; }
.btn-icon-sm {
  width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid var(--border-strong); background: var(--surface);
  cursor: pointer; display: inline-flex; align-items: center;
  justify-content: center; font-size: 13px;
  transition: background 120ms, border-color 120ms;
}
.btn-icon-sm:hover { background: var(--bg-2); }
.btn-icon-danger:hover { background: #fef2f2; border-color: #fca5a5; }

.team-self-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  padding: 1px 6px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
  vertical-align: middle; margin-left: 5px;
}
.team-empty {
  text-align: center; padding: 32px;
  color: var(--muted); font-size: 13px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg); background: var(--surface);
}

/* ══════════════════════════════════════════════════════════════
   BILLING
══════════════════════════════════════════════════════════════ */
.billing-plan-card   { padding:18px 22px; max-width:480px; }
.billing-plan-name   { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.07em; color:var(--muted); }
.billing-plan-price  { font-size:28px; font-weight:900; letter-spacing:-0.04em; color:var(--text); margin:5px 0; }
.billing-plan-actions { display:flex; gap:8px; margin-top:14px; }
.billing-plan-btn    { flex:1; }
.billing-mandate-row { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--border); }
.billing-mandate-row:last-child { border-bottom:none; }
.billing-mandate-label { flex:1; font-size:13px; color:var(--text); }
.billing-mandate-val   { font-size:13px; font-weight:600; color:var(--text); }
.billing-mandate-badge { font-size:11px; font-weight:700; padding:2px 8px; border-radius:999px; }
.invoice-row    { display:flex; align-items:center; gap:10px; padding:9px 0; border-bottom:1px solid var(--border); font-size:13px; }
.invoice-row:last-child { border-bottom:none; }
.invoice-num    { font-weight:600; color:var(--text); min-width:0; }
.invoice-period { flex:1; color:var(--muted); }
.invoice-amount { font-weight:700; color:var(--text); }

/* ══════════════════════════════════════════════════════════════
   IMPORT
══════════════════════════════════════════════════════════════ */
.import-dropzone { border:1.5px dashed var(--border-strong); border-radius:var(--radius-lg); padding:28px 22px; text-align:center; cursor:pointer; transition:border-color 150ms, background 150ms; }
.import-dropzone:hover { border-color:var(--brand); background:var(--brand-soft); }
.import-dropzone-label { font-size:14px; font-weight:700; color:var(--text); margin-bottom:4px; }
.import-dropzone-sub   { font-size:13px; color:var(--muted); }
.import-dropzone-formats { font-size:11px; color:var(--muted); margin-top:8px; }
.import-error  { color:var(--danger); font-size:13px; margin-top:6px; }
.import-mapping-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.import-mapping-row  { display:flex; align-items:center; gap:8px; padding:4px 0; }
.import-mapping-label { font-size:12px; color:var(--muted); min-width:100px; }
.import-preview-title { font-size:13px; font-weight:700; margin-bottom:8px; }
.import-preview-wrap  { overflow:auto; max-height:200px; border-radius:var(--radius-sm); border:1px solid var(--border); }
.import-preview-table { width:100%; font-size:12px; border-collapse:collapse; }
.import-preview-table th,.import-preview-table td { padding:5px 9px; border:1px solid var(--border); text-align:left; }
.import-preview-table th { background:var(--bg-2); font-weight:700; }
.import-step      { margin-bottom:14px; }
.import-step-hint { font-size:12px; color:var(--muted); margin-top:5px; }
.import-required  { color:var(--danger); font-size:12px; }
.import-result    { font-size:13px; margin-top:8px; }

/* ══════════════════════════════════════════════════════════════
   MODALS
══════════════════════════════════════════════════════════════ */
.reservation-modal {
  position:fixed; inset:0; z-index:8000;
  display:none; align-items:flex-end; justify-content:center; padding:0;
}
.reservation-modal.is-open { display:flex; }

.reservation-modal-backdrop {
  position:absolute; inset:0;
  background:rgba(0,0,0,.38);
  backdrop-filter:blur(2px);
}
.reservation-modal-dialog {
  position:relative; width:100%; max-width:560px; background:#fff;
  border-radius:20px 20px 0 0; padding:22px 22px 32px;
  max-height:92vh; overflow-y:auto; z-index:1;
}
.reservation-modal-dialog--wide { max-width:720px; }
.reservation-modal-header { display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:18px; gap:12px; }
.reservation-modal-close  { width:28px; height:28px; border-radius:50%; border:1px solid var(--border); background:var(--surface); cursor:pointer; font-size:15px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.reservation-modal-body   { display:flex; flex-direction:column; gap:12px; }

/* Upgrade modal */
.upgrade-modal {
  position:fixed; inset:0; z-index:9000;
  display:none; align-items:center; justify-content:center; padding:16px;
}
.upgrade-modal.is-open { display:flex; }
.upgrade-modal-backdrop { position:absolute; inset:0; background:rgba(0,0,0,.42); backdrop-filter:blur(3px); }
.upgrade-modal-header { text-align:center; margin-bottom:18px; }
.upgrade-modal-crown  { font-size:34px; margin-bottom:10px; }
.upgrade-modal-title  { font-size:21px; font-weight:900; color:var(--text); letter-spacing:-0.03em; margin:0 0 5px; }
.upgrade-modal-sub    { font-size:13px; color:var(--muted); }
.upgrade-features     { display:flex; flex-direction:column; gap:8px; margin-bottom:18px; }
.upgrade-price        { font-size:13px; color:var(--muted); text-align:center; margin-bottom:12px; }
.upgrade-actions      { display:flex; gap:8px; }

/* Account suspended */
.account-suspended-modal {
  position:fixed; inset:0; z-index:9999;
  display:none; align-items:center; justify-content:center;
  background:var(--bg); padding:24px;
}
.account-suspended-modal.is-open { display:flex; }
.account-suspended-actions { display:flex; gap:8px; margin-top:14px; flex-wrap:wrap; }

/* ══════════════════════════════════════════════════════════════
   MISC CHIPS & STATUS
══════════════════════════════════════════════════════════════ */
.day-chip { width:32px; height:32px; border-radius:50%; border:1px solid var(--border-strong); background:var(--surface); font-size:11px; font-weight:600; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; color:var(--muted); transition:background 150ms, color 150ms; }
.day-chip.day-chip-on,.day-chip.active,.chip.chip-day.day-chip-on { background:var(--brand); color:#fff; border-color:var(--brand); }

.waitlist-table    { width:100%; border-collapse:collapse; font-size:13px; }
.waitlist-table th { text-align:left; padding:7px 10px; border-bottom:2px solid var(--border); font-weight:700; color:var(--muted); font-size:10px; text-transform:uppercase; letter-spacing:.05em; }
.waitlist-table td { padding:9px 10px; border-bottom:1px solid var(--border); }
.waitlist-status   { font-size:13px; font-weight:600; }

/* Reservations */
.reservations-panel { padding:0; overflow:hidden; }

/* Analytics */
.analytics-layout { display:grid; grid-template-columns:1fr 260px; gap:18px; max-width:1020px; }

/* ══════════════════════════════════════════════════════════════
   PAGE CONTAINERS & SECTION HEADERS
══════════════════════════════════════════════════════════════ */
.section-page { max-width: 1100px; margin-left: auto; margin-right: auto; }

.section-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 16px;
  margin-bottom: 24px; flex-wrap: wrap;
}

.section-header-actions {
  display: flex; gap: 8px;
  align-items: center; flex-shrink: 0; flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════════
   BANNERS (trial / impersonation)
══════════════════════════════════════════════════════════════ */
.trial-banner {
  display: none;
  background: var(--brand-2); color: #fff;
  padding: 9px 24px;
  align-items: center; justify-content: space-between; gap: 12px;
  font-size: 13px; font-weight: 500;
}

.trial-banner a {
  background: #c47f2a; color: #fff;
  border-radius: 999px; padding: 5px 16px;
  font-size: 12px; font-weight: 700;
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
}

.impersonation-banner {
  display: none;
  background: #1e293b; color: #fff;
  padding: 9px 24px;
  align-items: center; justify-content: space-between; gap: 12px;
  font-size: 13px; font-weight: 500;
  border-bottom: 2px solid #f59e0b;
}

.impersonation-banner a {
  background: #f59e0b; color: #1e293b;
  border-radius: 999px; padding: 5px 14px;
  font-size: 12px; font-weight: 800;
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   APP MODAL  (centered overlay — standard for forms)
══════════════════════════════════════════════════════════════ */
.app-modal {
  position: fixed; inset: 0; z-index: 9000;
  display: none;
  align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(4px);
}
.app-modal.is-open,
.app-modal[data-open="true"] { display: flex; }

.app-modal-dialog {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 28px 28px 24px;
  width: 100%; max-width: 540px;
  box-shadow: var(--shadow-lg);
  max-height: 92vh; overflow-y: auto;
  position: relative;
}
.app-modal-dialog--lg { max-width: 640px; }

.app-modal-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 10px;
  margin-bottom: 20px;
}

.app-modal-title {
  font-size: 18px; font-weight: 800;
  color: var(--text); letter-spacing: -0.03em;
  margin: 0 0 3px;
}

.app-modal-sub {
  font-size: 13px; color: var(--muted);
  margin: 0; line-height: 1.5;
}

.app-modal-close {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg); cursor: pointer;
  font-size: 14px; display: flex;
  align-items: center; justify-content: center;
  color: var(--muted); flex-shrink: 0;
}

.app-modal-section {
  border-top: 1px solid var(--border);
  padding-top: 16px; margin-top: 4px;
}

.app-modal-section-label {
  display: block;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); margin-bottom: 12px;
}

.app-modal-actions {
  display: flex; gap: 10px;
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--border);
}
.app-modal-desc { font-size: 13px; color: var(--muted); margin: -4px 0 16px; line-height: 1.5; }

/* ══════════════════════════════════════════════════════════════
   FORM COMPONENTS  (inside modals & panels)
══════════════════════════════════════════════════════════════ */
.form-field   { display: flex; flex-direction: column; gap: 4px; }
.form-grid    { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid--3 { grid-template-columns: 1fr 1fr 1fr; }

.form-label {
  display: block;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); margin-bottom: 5px;
}
.form-label em { font-style: normal; color: var(--danger); }

.form-input {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 14px; font-family: inherit;
  background: var(--surface); color: var(--text);
  transition: border-color 150ms, box-shadow 150ms;
}
.form-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(61,96,76,.08);
}
textarea.form-input { resize: none; line-height: 1.5; }
select.form-input   { cursor: pointer; }

.form-hint {
  font-size: 11px; color: var(--muted);
  line-height: 1.5; margin-top: 2px;
}

/* ── Chip groups (applies + day choosers) ────────────────────── */
.chip-group {
  display: flex; flex-wrap: wrap; gap: 7px;
}

.chip {
  padding: 7px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  border: 1px solid var(--border-strong);
  background: var(--surface); cursor: pointer;
  color: var(--muted);
  transition: background 120ms, color 120ms, border-color 120ms;
}
.chip.active, .chip-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.chip-sm { padding: 5px 12px; font-size: 12px; }

.chip-day {
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 11px; font-weight: 700; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ── Time range picker ───────────────────────────────────────── */
.time-range { display: flex; align-items: center; gap: 10px; }
.time-range-sep { color: var(--muted); opacity: .5; flex-shrink: 0; }

.time-box {
  flex: 1; background: var(--bg);
  border-radius: var(--radius-md); padding: 12px 14px; text-align: center;
  border: 1px solid var(--border);
}
.time-box-label {
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--muted); margin-bottom: 5px; display: block;
}
.time-box input[type="time"] {
  border: none; background: transparent;
  font-size: 20px; font-weight: 800;
  color: var(--text); width: 100%; text-align: center;
  outline: none; font-family: inherit;
}

/* ── Cover/count stepper ─────────────────────────────────────── */
.cover-stepper {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg); border-radius: var(--radius-md);
  padding: 12px 18px; border: 1px solid var(--border);
}
.cover-stepper-btn {
  width: 36px; height: 36px; background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 50%;
  font-size: 18px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-2); flex-shrink: 0;
  transition: background 120ms;
}
.cover-stepper-btn:hover { background: var(--brand-soft); }
.cover-stepper-center { flex: 1; text-align: center; }
.cover-stepper-center input {
  border: none; background: transparent;
  font-size: 28px; font-weight: 900; color: var(--text);
  width: 80px; text-align: center; outline: none;
}
.cover-stepper-center small { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }

/* ── Price preview ───────────────────────────────────────────── */
.price-preview {
  background: var(--brand-soft); border-radius: var(--radius-md);
  padding: 14px 16px; margin-top: 12px;
  border: 1px solid rgba(61,96,76,.12);
}
.price-preview-title {
  font-size: 10px; font-weight: 800; color: var(--brand);
  letter-spacing: .05em; text-transform: uppercase; margin-bottom: 8px; display: block;
}

/* ── Tags input ──────────────────────────────────────────────── */
.tags-display { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; min-height: 20px; }
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--brand-soft); border: 1px solid rgba(61,96,76,.15);
  font-size: 12px; font-weight: 600; color: var(--brand-2);
}
.tag-remove { cursor: pointer; opacity: .6; font-size: 11px; line-height: 1; }
.tag-remove:hover { opacity: 1; }
.tag-input-row { display: flex; gap: 6px; }
.tag-suggestions { font-size: 11px; color: var(--muted); margin-top: 5px; line-height: 1.8; }
.tag-suggestions span { color: var(--brand); cursor: pointer; text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════
   EXPERIENCES SECTION
══════════════════════════════════════════════════════════════ */
.exp-legal-warning {
  display: none;
  background: rgba(245,158,11,.07);
  border: 1px solid rgba(245,158,11,.22);
  border-radius: var(--radius-md);
  padding: 14px 18px; margin-bottom: 16px;
  font-size: 13px; color: #92400e; line-height: 1.5;
}

.exp-list { display: flex; flex-direction: column; gap: 12px; }

.exp-loading {
  text-align: center; padding: 48px 24px;
  color: var(--muted); font-size: 14px;
}

/* ══════════════════════════════════════════════════════════════
   BREWLINK SECTION
══════════════════════════════════════════════════════════════ */
.brewlink-layout { display: flex; gap: 28px; align-items: flex-start; }
.brewlink-main   { flex: 1; max-width: 640px; min-width: 0; }

.brewlink-url-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  margin-bottom: 14px;
}
.brewlink-url-icon { flex-shrink: 0; color: var(--brand); }
.brewlink-url-text { flex: 1; font-size: 14px; font-weight: 700; color: var(--brand); word-break: break-all; }

.brewlink-bio-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  padding: 16px 18px; margin-bottom: 14px;
}
.brewlink-bio-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted);
  display: block; margin-bottom: 8px;
}
.brewlink-bio-textarea {
  width: 100%; border: none; outline: none; resize: none;
  font-size: 14px; color: var(--text); line-height: 1.5;
  background: transparent; font-family: inherit;
}
.brewlink-bio-footer {
  display: flex; align-items: center; justify-content: space-between; margin-top: 8px;
}
.brewlink-bio-count { font-size: 11px; color: var(--muted); }

.brewlink-links-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.brewlink-links-title { font-size: 14px; font-weight: 800; color: var(--text); }
.brewlink-links-list  { display: flex; flex-direction: column; gap: 8px; min-height: 60px; }

/* Preview panel */
.brewlink-preview-panel {
  position: sticky; top: 24px;
  width: 280px; flex-shrink: 0;
  display: none;  /* JS makes it visible */
}
.brewlink-preview-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--muted);
  text-align: center; margin-bottom: 8px;
}
.brewlink-preview-frame {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-md); background: var(--bg);
}
.brewlink-preview-bar {
  background: #e4e4e4; padding: 7px 12px;
  display: flex; align-items: center; gap: 5px;
}
.brewlink-preview-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.brewlink-preview-urlbar {
  flex: 1; background: #fff; border-radius: 4px;
  padding: 2px 8px; font-size: 10px; color: var(--muted);
  font-family: monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.brewlink-preview-refresh {
  margin-top: 10px; width: 100%; padding: 8px;
  background: var(--brand-soft); border: 1px solid rgba(61,96,76,.15);
  border-radius: var(--radius-sm); font-size: 12px; font-weight: 700;
  color: var(--brand); cursor: pointer;
}

/* Stats modal */
.stats-kpi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.stats-chart    { height: 80px; display: flex; align-items: flex-end; gap: 3px; }
.stats-recent   { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow-y: auto; }

/* Emoji picker grid */
.emoji-grid { display: grid; grid-template-columns: repeat(8,1fr); gap: 6px; }

/* Small empty state */
.empty-state-sm { text-align: center; padding: 20px; color: var(--muted); font-size: 13px; }

/* ══════════════════════════════════════════════════════════════
   GOCARDLESS SETUP SCREEN
══════════════════════════════════════════════════════════════ */
.gc-screen {
  position: fixed; inset: 0; background: var(--bg);
  z-index: 9999; overflow-y: auto;
  display: none;
  font-family: "Aptos","Segoe UI","Inter",Arial,sans-serif;
}
.gc-screen-inner {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 32px 16px;
}
.gc-logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 40px;
}
.gc-logo-text {
  font-size: 22px; font-weight: 900;
  color: var(--brand-2); letter-spacing: -0.02em;
}
.gc-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 36px 32px; max-width: 480px; width: 100%;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.gc-card-icon {
  width: 52px; height: 52px;
  background: var(--brand-soft);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: var(--brand);
}
.gc-card-title {
  font-size: 22px; font-weight: 900; color: var(--brand-2);
  letter-spacing: -0.03em; margin: 0 0 10px;
}
.gc-card-desc {
  font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0 0 16px;
}
.gc-steps {
  background: var(--brand-soft);
  border-radius: var(--radius-md); padding: 14px 16px;
  margin-bottom: 22px; font-size: 13px; color: var(--brand-2); line-height: 1.9;
  border: 1px solid rgba(61,96,76,.10);
}
.gc-plan-badge {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  border-radius: var(--radius-md); padding: 18px 20px;
  margin-bottom: 22px; color: #fff;
}
.gc-plan-badge-eyebrow {
  font-size: 11px; font-weight: 700; opacity: .7;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px;
}
.gc-plan-badge-name  { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.gc-plan-badge-price { font-size: 28px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.gc-plan-badge-price span { font-size: 14px; font-weight: 400; opacity: .75; }
.gc-plan-badge-ttc   { font-size: 12px; opacity: .65; margin-top: 3px; }
.gc-notice { display: none; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; margin-bottom: 18px; line-height: 1.5; }
.gc-cta {
  width: 100%; padding: 15px;
  background: var(--brand); color: #fff;
  border: none; border-radius: var(--radius-md);
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: background 150ms; letter-spacing: -0.01em;
}
.gc-cta:hover { background: var(--brand-2); }
.gc-security { text-align: center; font-size: 11px; color: var(--muted); margin: 12px 0 0; }
.gc-contact  { text-align: center; font-size: 12px; color: var(--muted); margin: 10px 0 0; }

/* ══════════════════════════════════════════════════════════════
   FORM UTILITIES — range, checkbox, radio-card, confirm
══════════════════════════════════════════════════════════════ */
.form-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
.stack-sm     { display: flex; flex-direction: column; gap: 6px; }

.range-row   { display: flex; align-items: center; gap: 12px; }
.range-input { flex: 1; accent-color: var(--brand); }
.range-value { min-width: 36px; text-align: center; font-size: 16px; font-weight: 800; color: var(--text); }

.checkbox-row { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; color: var(--text); }
.checkbox-row input { width: 16px; height: 16px; accent-color: var(--brand); }

.radio-card-group { display: flex; flex-direction: column; gap: 8px; }
.radio-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius-md);
  border: 2px solid var(--border-strong);
  cursor: pointer; background: var(--bg);
  transition: border-color 120ms, background 120ms;
}
.radio-card--active { border-color: var(--brand); background: var(--brand-soft); }
.radio-card input   { margin-top: 2px; accent-color: var(--brand); }
.radio-card-title   { font-size: 13px; font-weight: 700; color: var(--text); }
.radio-card-sub     { font-size: 12px; color: var(--muted); margin-top: 2px; }

.form-status { font-size: 13px; min-height: 18px; color: var(--muted); }

/* Confirm dialog */
.app-modal-dialog--sm     { max-width: 380px; }
.app-modal-dialog--center { text-align: center; }
.confirm-icon    { font-size: 36px; margin-bottom: 10px; }
.confirm-title   { font-size: 16px; font-weight: 800; color: var(--text); margin: 0 0 8px; }
.confirm-sub     { font-size: 13px; color: var(--muted); margin-bottom: 14px; line-height: 1.5; }
.confirm-warning { font-size: 12px; color: #dc2626; font-weight: 600; margin-bottom: 18px; }

/* Danger button */
.btn-danger { background: #dc2626; color: #fff; border-color: transparent; }
.btn-danger:hover { background: #b91c1c; }

/* ══════════════════════════════════════════════════════════════
   BILLING
══════════════════════════════════════════════════════════════ */
.billing-plan-card { background: linear-gradient(135deg, var(--brand-2), var(--brand)); border-radius: var(--radius-lg); padding: 20px; color: #fff; margin-bottom: 14px; }
.billing-plan-name { font-size: 18px; font-weight: 900; letter-spacing: -.03em; margin-bottom: 4px; }
.billing-plan-price { font-size: 28px; font-weight: 900; letter-spacing: -.05em; }
.billing-plan-price span { font-size: 14px; font-weight: 400; opacity: .75; }
.billing-plan-actions { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.billing-plan-btn { padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; cursor: pointer; border: none; }
.billing-plan-btn-upgrade { background: #fff; color: var(--brand-2); }
.billing-plan-btn-manage  { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.3); }

.billing-mandate-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.billing-mandate-row:last-child { border-bottom: none; }
.billing-mandate-label { color: var(--muted); font-weight: 600; }
.billing-mandate-val   { color: var(--text); font-weight: 700; }
.billing-mandate-badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.billing-mandate-badge.signed   { background: #d1fae5; color: #065f46; }
.billing-mandate-badge.unsigned { background: #fef3c7; color: #92400e; }

.invoice-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.invoice-row:last-child { border-bottom: none; }
.invoice-num    { font-weight: 700; color: var(--text); min-width: 90px; }
.invoice-period { color: var(--muted); flex: 1; }
.invoice-amount { font-weight: 800; color: var(--text); }
.invoice-status { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.invoice-status.paid   { background: #d1fae5; color: #065f46; }
.invoice-status.issued { background: #fef3c7; color: #92400e; }
.invoice-pdf { font-size: 12px; color: var(--brand); font-weight: 700; text-decoration: none; }
.invoice-pdf:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════
   PRO FEATURE GATES
══════════════════════════════════════════════════════════════ */
.pill-pro { background: var(--brand); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 700; vertical-align: middle; margin-left: 6px; }
.pro-lock-badge { display: inline-block; background: #f59e0b; color: #fff; font-size: 10px; padding: 2px 7px; border-radius: 999px; font-weight: 700; margin-left: 6px; vertical-align: middle; }
.pro-feature-row.locked { opacity: .55; pointer-events: none; }
.pro-feature-row.locked-clickable { cursor: pointer; opacity: .65; }
.pro-feature-row.locked-clickable:hover { opacity: .85; background: rgba(245,158,11,.06); border-radius: var(--radius-sm); }

/* ══════════════════════════════════════════════════════════════
   UPGRADE MODAL
══════════════════════════════════════════════════════════════ */
.upgrade-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.upgrade-modal { background: var(--surface); border-radius: var(--radius-xl); max-width: 480px; width: 100%; box-shadow: var(--shadow-lg); overflow: hidden; }
.upgrade-modal-header { background: linear-gradient(135deg, var(--brand-2), var(--brand)); padding: 28px 28px 24px; color: #fff; }
.upgrade-modal-crown { font-size: 32px; margin-bottom: 10px; }
.upgrade-modal-title { font-size: 22px; font-weight: 900; letter-spacing: -.03em; margin-bottom: 6px; }
.upgrade-modal-sub  { font-size: 14px; opacity: .85; line-height: 1.5; }
.upgrade-modal-body { padding: 24px 28px; }
.upgrade-features { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.upgrade-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--brand-2); font-weight: 600; }
.upgrade-features li::before { content: '✓'; font-size: 13px; font-weight: 800; color: var(--brand); width: 20px; height: 20px; background: var(--brand-soft); border-radius: 50%; display: grid; place-items: center; flex: none; }
.upgrade-price        { text-align: center; padding: 14px; background: var(--bg); border-radius: var(--radius-md); margin-bottom: 20px; }
.upgrade-price strong { font-size: 28px; font-weight: 900; color: var(--brand-2); }
.upgrade-price span   { font-size: 14px; color: var(--muted); }
.upgrade-actions { display: flex; flex-direction: column; gap: 8px; }
.upgrade-btn-primary   { display: block; text-align: center; padding: 14px; border-radius: var(--radius-md); background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; border: none; cursor: pointer; }
.upgrade-btn-secondary { display: block; text-align: center; padding: 12px; border-radius: var(--radius-md); background: none; border: 1.5px solid var(--border-strong); color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; }

/* ══════════════════════════════════════════════════════════════
   SETTINGS — toggle switch
══════════════════════════════════════════════════════════════ */
.setting-row { display: flex; align-items: flex-start; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.setting-row:last-child { border-bottom: none; }
.setting-row-info  { flex: 1; }
.setting-row-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.setting-row-desc  { font-size: 13px; color: var(--muted); line-height: 1.5; }
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: none; margin-top: 2px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; inset: 0; background: #d1d5db; border-radius: 999px; transition: background .2s; }
.toggle-slider::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.toggle-switch input:checked + .toggle-slider { background: var(--brand); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ══════════════════════════════════════════════════════════════
   WAITLIST TABLE
══════════════════════════════════════════════════════════════ */
.waitlist-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.waitlist-table th { text-align: left; padding: 8px 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-bottom: 1px solid var(--border); }
.waitlist-table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.waitlist-table tr:last-child td { border-bottom: none; }
.waitlist-status           { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.waitlist-status-waiting   { background: #fef3c7; color: #92400e; }
.waitlist-status-notified  { background: #dbeafe; color: #1e40af; }
.waitlist-status-confirmed { background: #d1fae5; color: #065f46; }
.waitlist-status-cancelled { background: #f3f4f6; color: #6b7280; }

/* ══════════════════════════════════════════════════════════════
   RESERVATION CARDS  (JS-rendered, onglet Réservations)
══════════════════════════════════════════════════════════════ */
.res-card {
  display: flex; position: relative;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 120ms, transform 120ms;
  cursor: pointer;
}
.res-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.res-card-stripe { width: 4px; flex-shrink: 0; background: var(--border-strong); }
.res-card.is-pending  .res-card-stripe { background: #f59e0b; }
.res-card.is-confirmed .res-card-stripe { background: var(--brand-2); }
.res-card.is-cancelled .res-card-stripe { background: #e5e7eb; }
.res-card.is-widget-pending .res-card-stripe { background: #6366f1; }

.res-card-inner  { flex: 1; padding: 12px 16px; min-width: 0; }
.res-card-head   { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.res-card-num    { font-size: 11px; font-weight: 700; color: var(--muted); min-width: 30px; }
.res-card-time   { font-size: 15px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.res-card-body   { display: flex; gap: 16px; flex-wrap: wrap; }
.res-card-client { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 3px; }
.res-card-client strong { font-size: 14px; font-weight: 700; color: var(--text); }
.res-card-contact-link { font-size: 12px; color: var(--muted); text-decoration: none; }
.res-card-contact-link:hover { color: var(--brand); }
.res-card-right  { flex-shrink: 0; display: flex; flex-direction: column; gap: 3px; }
.res-card-right-row { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.res-card-tags   { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.res-card-actions { display: flex; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.rca-icon        { font-size: 13px; }

/* Simpler reservation-card (liste d'attente / accueil) */
.reservation-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 12px 16px;
  box-shadow: var(--shadow-card); cursor: pointer;
}
.reservation-card strong { font-size: 14px; color: var(--text); }
.reservation-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; font-size: 12px; color: var(--muted); }

/* ══════════════════════════════════════════════════════════════
   ANALYTICS CARDS  (JS-rendered)
══════════════════════════════════════════════════════════════ */
.analytics-kpi-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px 20px;
  box-shadow: var(--shadow-card); text-align: center;
}
.analytics-kpi-card .kpi-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 6px; display: block; }
.analytics-kpi-card .kpi-value { font-size: 26px; font-weight: 900; color: var(--text); letter-spacing: -0.04em; line-height: 1; }
.analytics-kpi-card .kpi-sub   { font-size: 11px; color: var(--muted); margin-top: 4px; }
.analytics-period-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* ══════════════════════════════════════════════════════════════
   HORAIRES CARDS  (JS-rendered)
══════════════════════════════════════════════════════════════ */
.opening-day-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 14px 18px;
  box-shadow: var(--shadow-card); display: flex; align-items: center; gap: 14px;
}
.booking-window-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 12px 16px;
  box-shadow: var(--shadow-card);
}
.exception-card, .opening-exception-card {
  background: var(--caramel-lt); border: 1px solid rgba(184,116,42,.2);
  border-radius: var(--radius-md); padding: 12px 16px;
}

/* ══════════════════════════════════════════════════════════════
   SUPPORT CARDS  (JS-rendered)
══════════════════════════════════════════════════════════════ */
.support-topic-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px 20px;
  box-shadow: var(--shadow-card); cursor: pointer;
  transition: box-shadow 120ms;
}
.support-topic-card:hover { box-shadow: var(--shadow-md); }

/* ══════════════════════════════════════════════════════════════
   JS MODAL BOX  (overlay.innerHTML = modal-box)
══════════════════════════════════════════════════════════════ */
.modal-box {
  background: var(--surface); border-radius: var(--radius-xl);
  padding: 28px; width: 100%;
  box-shadow: var(--shadow-lg);
  max-height: 90vh; overflow-y: auto;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — narrow screen collapses sidebar permanently
══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .sidebar { width: var(--sidebar-collapsed) !important; }
  .sidebar:hover { width: var(--sidebar-collapsed) !important; }
  .sidebar-brand,.nav-btn-label,.menu-section-label,#userInfo { display:none !important; }
  .nav-btn { justify-content:center !important; }
  .logout  { justify-content:center !important; }
  .cards   { padding:10px 14px; }
  .topbar  { padding:14px 14px 0; }
  .section { padding:4px 14px 32px; }
  .onboarding-layout,.clients-page { grid-template-columns:1fr; }
  .ov-main-grid { grid-template-columns:1fr; }
  .ov-kpi-row   { grid-template-columns:repeat(2,1fr); }
  .ov-hero      { padding:20px 22px; gap:16px; }
  .ws-stats     { gap:0; }
  .ws-stat      { padding:10px 16px; }
  .analytics-layout,.widget-layout { grid-template-columns:1fr !important; }
  #businessWidgetContent:has(.widget-preview-section) { grid-template-columns:1fr !important; }
  #businessWidgetContent .widget-preview-section { grid-column:1; grid-row:auto; position:static; }
  .section-grid,.compact-2,.section-page-wide .compact-2 { grid-template-columns:1fr; }
  .field-grid { grid-template-columns:1fr; }
  .reservations-topbar { flex-direction:column; gap:12px; }
  .reservations-topbar-actions { flex-wrap:wrap; }
}

/* ══════════════════════════════════════════════════════════════
   SECTION PAGE CONTAINERS
══════════════════════════════════════════════════════════════ */
.section-page-wide { max-width:none; }

/* ──────────────────────────────────────────────────────────────
   Forçage pleine largeur des sections "data" / opérationnelles
   (Accueil, Réservations, Plan de salle, etc.)
   .section-page reste narrow centré (réglages) ; tout le reste = full width.
   ────────────────────────────────────────────────────────────── */
.section > .ov-hero,
.section > .ov-kpi-row,
.section > .ov-main-grid {
  width: 100%;
  box-sizing: border-box;
}

/* ══════════════════════════════════════════════════════════════
   NOTIFICATIONS
══════════════════════════════════════════════════════════════ */
/* .notif-panel : pas de max-width propre — la largeur est dictée par .section-page (1100px centré) */
.notif-panel .setting-row { padding:16px 0; }

/* ══════════════════════════════════════════════════════════════
   ENTREPRISE / BUSINESS
══════════════════════════════════════════════════════════════ */
.biz-password-panel  { max-width:480px; margin-top:24px; }
.biz-password-form   { margin-top:16px; }
.biz-password-submit { align-self:flex-start; }
.pw-message {
  font-size:13px; border-radius:var(--radius-sm); padding:10px 14px;
  display:none; line-height:1.5;
}
.pw-message:not(:empty) { display:block; }

/* ══════════════════════════════════════════════════════════════
   HORAIRES
══════════════════════════════════════════════════════════════ */
.hours-capacity-panel { max-width:760px; margin-top:24px; }
.hours-capacity-list  { margin-top:16px; display:flex; flex-direction:column; gap:8px; }
.hours-capacity-add   { margin-top:14px; }

/* ══════════════════════════════════════════════════════════════
   ANALYTICS — correction sélecteurs JS (classes standalone)
══════════════════════════════════════════════════════════════ */
.analytics-kpi-grid  {
  display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
  gap:12px; margin-bottom:16px;
}
.analytics-kpi-label {
  font-size:10px; font-weight:700; text-transform:uppercase;
  letter-spacing:.07em; color:var(--muted); margin-bottom:6px; display:block;
}
.analytics-kpi-value {
  font-size:26px; font-weight:900; color:var(--text);
  letter-spacing:-0.04em; line-height:1;
  font-family:"Plus Jakarta Sans",sans-serif; display:block;
}
.analytics-kpi-sub {
  font-size:11px; color:var(--muted); margin-top:4px; display:block;
}

/* ══════════════════════════════════════════════════════════════
   RÉSERVATIONS — board complet (tout JS-rendu)
══════════════════════════════════════════════════════════════ */
.reservations-board {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius-lg); box-shadow:var(--shadow-card);
  overflow:hidden;
}

.reservations-topbar {
  display:flex; align-items:flex-start; justify-content:space-between; gap:16px;
  padding:20px 24px 18px; border-bottom:1px solid var(--border);
  background:var(--surface); flex-wrap:wrap;
}
.reservations-topbar-title { display:flex; align-items:flex-start; gap:12px; flex:1; min-width:0; }
.reservations-topbar-icon  { font-size:22px; line-height:1; flex-shrink:0; margin-top:2px; }
.reservations-topbar-title strong {
  font-size:17px; font-weight:800; color:var(--text);
  letter-spacing:-.02em; display:block; font-family:"Plus Jakarta Sans",sans-serif;
}
.reservations-topbar-title span:not(.reservations-topbar-icon) {
  font-size:12px; color:var(--muted); display:block; margin:2px 0 8px;
}
.reservations-topbar-stats { display:flex; gap:6px; flex-wrap:wrap; }

.reservations-topbar-actions {
  display:flex; align-items:center; gap:8px; flex-shrink:0;
}
.reservations-view-switcher { display:flex; gap:3px; background:var(--bg-2); border-radius:999px; padding:3px; }
.reservations-view-switcher .btn {
  padding:5px 14px; border-radius:999px; border:none;
  background:transparent; color:var(--muted);
  font-size:12px; font-weight:700;
  box-shadow:none; transition:background .15s, color .15s;
}
.reservations-view-switcher .btn:hover { background:var(--surface); color:var(--text); transform:none; box-shadow:none; }
.reservations-view-switcher .btn.is-active { background:var(--surface); color:var(--brand); box-shadow:var(--shadow-soft); }

.reservations-date-control {
  display:flex; align-items:center; gap:8px;
  font-size:12px; font-weight:600; color:var(--muted);
}
.reservations-date-control .field-input { width:148px; padding:6px 10px; font-size:13px; }

.reservations-table-shell { padding:16px 20px; }
.reservations-table       { display:flex; flex-direction:column; gap:6px; }

.reservation-row {
  display:grid;
  grid-template-columns:28px 76px 1fr 56px 90px 1fr;
  gap:10px; align-items:center;
  padding:11px 16px; border-radius:var(--radius-md);
  background:var(--bg); border:1px solid var(--border);
  font-size:13px; cursor:pointer;
  transition:border-color .15s, box-shadow .15s;
}
.reservation-row:hover:not(.reservation-row-header) {
  border-color:var(--border-strong); box-shadow:var(--shadow-soft);
  background:var(--surface);
}
.reservation-row-header {
  background:transparent; border-color:transparent;
  cursor:default; pointer-events:none;
  padding:4px 16px 6px;
  font-size:10px; font-weight:700; text-transform:uppercase;
  letter-spacing:.07em; color:var(--muted);
}
.reservation-row-meta {
  font-size:11px; color:var(--muted); line-height:1.4;
}
.reservation-row .res-card-num { font-size:11px; color:var(--muted); font-weight:700; }

/* Pill "is-active" pour le view-switcher (déjà défini via .btn.is-active) */

/* ── Space Editor (Plan de salle) ────────────────────────────── */
/* Remove section padding so the editor fills the full content area */
#floorplan.section,
#floorplan.section.active {
  padding: 0 !important;
  overflow: hidden;
}
#space-editor-root {
  height: 100vh;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   BB-KIT — composants canoniques DA "Crème & Chaleur"
   Préfixe .bb-* pour éviter tout conflit avec l'existant.
   À utiliser à la place des style="" / cssText / element.style.
   ═══════════════════════════════════════════════════════════════ */

/* ── Card ────────────────────────────────────────────────────── */
.bb-card {
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .15s;
}
.bb-card.is-active { border-color: var(--brand); }
.bb-card.is-muted  { opacity: .75; }

.bb-card__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
}

.bb-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.bb-card__body {
  flex: 1;
  min-width: 0;
}

.bb-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.bb-card__desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.bb-card__extra {
  padding: 14px 18px 16px;
  border-top: 1px solid var(--border);
}
.bb-card__extra[hidden] { display: none; }

/* ── Toggle (switch CSS-only, piloté par <input type=checkbox>) ─ */
.bb-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
  cursor: pointer;
}
.bb-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.bb-toggle__track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--border-strong);
  transition: background .15s;
}
.bb-toggle__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  transition: transform .15s;
}
.bb-toggle input:checked ~ .bb-toggle__track {
  background: var(--brand);
}
.bb-toggle input:checked ~ .bb-toggle__track .bb-toggle__knob {
  transform: translateX(22px);
}

/* ── Category label (eyebrow majuscule) ──────────────────────── */
.bb-category-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin: 18px 0 8px;
}
.bb-category-label:first-child { margin-top: 0; }

/* ── Form helpers ────────────────────────────────────────────── */
.bb-form-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bb-form-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bb-label-sm {
  font-size: 12px;
  color: var(--muted);
}
.bb-label-sm--inline {
  font-size: 13px;
}

/* ── Badge (pill) ────────────────────────────────────────────── */
.bb-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}
.bb-badge--success { background: rgba(31,122,77,.10); color: var(--success); border-color: rgba(31,122,77,.20); }
.bb-badge--warning { background: var(--caramel-lt);   color: var(--caramel); border-color: rgba(184,116,42,.25); }
.bb-badge--danger  { background: rgba(180,35,24,.08); color: var(--danger);  border-color: rgba(180,35,24,.20); }
.bb-badge--brand   { background: var(--brand-soft);   color: var(--brand);   border-color: rgba(26,69,48,.20); }

/* ── Stack (espacement vertical homogène) ─────────────────────── */
.bb-stack > * + *      { margin-top: 12px; }
.bb-stack--sm > * + *  { margin-top: 6px; }
.bb-stack--lg > * + *  { margin-top: 20px; }

/* ── Bouton inline compact ───────────────────────────────────── */
.bb-btn-inline-sm {
  padding: 6px 14px;
  font-size: 12px;
  align-self: flex-start;
  margin-top: 4px;
}

/* ══════════════════════════════════════════════════════════════
   RÉSERVATIONS — refonte visuelle DA "Crème & Chaleur"
   Classes .res-card-tag / .res-card-action-btn / .rca-* qui
   étaient déclarées en JS mais n'avaient AUCUN style. C'est ce qui
   donnait l'aspect "boutons système gris" + "mur d'allergies brut".
   ══════════════════════════════════════════════════════════════ */

/* ── Allergies & régimes : chips caramel ─────────────────────── */
.res-card-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--caramel-lt);
  color: var(--caramel);
  border: 1px solid rgba(184,116,42,.22);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* ── Boutons d'action carte réservation ──────────────────────── */
.res-card-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 120ms, background-color 120ms, color 120ms, box-shadow 120ms, transform 120ms;
  line-height: 1;
  white-space: nowrap;
}
.res-card-action-btn:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
  transform: translateY(-1px);
}
.res-card-action-btn svg,
.res-card-action-btn .rca-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke-width: 1.8;
}

/* Variantes par sémantique ─ tone subtil au repos, prononcé au hover */
.res-card-action-btn.rca-neutral { /* défaut, hérite */ }

.res-card-action-btn.rca-success {
  border-color: rgba(31,122,77,.30);
  color: var(--success);
}
.res-card-action-btn.rca-success:hover {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.res-card-action-btn.rca-warning {
  border-color: rgba(184,116,42,.30);
  color: var(--caramel);
}
.res-card-action-btn.rca-warning:hover {
  background: var(--caramel);
  border-color: var(--caramel);
  color: #fff;
}

.res-card-action-btn.rca-danger {
  border-color: rgba(180,35,24,.28);
  color: var(--danger);
}
.res-card-action-btn.rca-danger:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

/* ── Compact dans la dernière ligne (le CTA principal Valider/Accepter
      pousse les actions à se serrer un peu) ───────────────────── */
.res-card-actions .btn.btn-primary {
  margin-left: auto;
  padding: 7px 16px;
  font-size: 12px;
  border-radius: 10px;
}

/* ── Métadonnées source / email — discrètes, à droite du status pill ── */
.res-card-source-meta {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.01em;
}
