/* ============================================================
   Nestor Assist — Dashboard Client (Restaurants)
   Design system premium · thème dynamique (couleurs entreprise)
   ============================================================ */

:root {
  /* Couleurs de marque — surchargées par theme.js au login */
  --primary: #00b4a6;
  --primary-hover: #009d96;
  --primary-light: #e0f7f5;
  --primary-rgb: 0, 180, 166;
  --secondary: #1e3280;

  --sidebar-bg: #0c1424;
  --sidebar-hover: rgba(255,255,255,0.06);
  --sidebar-active-bg: rgba(var(--primary-rgb), 0.18);
  --sidebar-text: #94a3b8;
  --sidebar-text-active: #f1f5f9;
  --sidebar-border: rgba(255,255,255,0.07);
  --sidebar-w: 256px;

  --bg: #f4f6fa;
  --card: #ffffff;
  --border: #e2e8f0;
  --border-light: #eef2f7;

  --success: #10b981; --success-light: #d1fae5; --success-text: #065f46;
  --warning: #f59e0b; --warning-light: #fef3c7; --warning-text: #92400e;
  --danger: #ef4444;  --danger-light: #fee2e2;  --danger-text: #991b1b;
  --info: #3b82f6;    --info-light: #dbeafe;    --info-text: #1e40af;
  --purple: #8b5cf6;  --purple-light: #ede9fe;  --purple-text: #5b21b6;

  --text: #1e293b; --text-secondary: #64748b; --text-muted: #94a3b8;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -1px rgba(0,0,0,.04);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,.08);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,.1);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,.18);

  --radius-sm: 6px; --radius: 9px; --radius-md: 11px; --radius-lg: 14px; --radius-full: 9999px;
  --header-h: 64px;
  --transition: .18s ease;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.55; }
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }
input, textarea, select, button { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
ul { list-style: none; }
h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: 1.2rem; font-weight: 650; }
h3 { font-size: 1rem; font-weight: 600; }
p { color: var(--text-secondary); }

/* ── Login ─────────────────────────────────────────────────── */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--sidebar-bg) 0%, var(--secondary) 60%, var(--sidebar-bg) 100%);
  padding: 1.5rem; position: relative; overflow: hidden;
}
.login-page::before, .login-page::after {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(var(--primary-rgb),.18) 0%, transparent 70%);
}
.login-page::before { width: 600px; height: 600px; top: -200px; right: -180px; }
.login-page::after { width: 420px; height: 420px; bottom: -160px; left: -120px; }
.login-card {
  width: 100%; max-width: 410px; background: rgba(255,255,255,.98);
  border-radius: var(--radius-lg); padding: 2.5rem 2.25rem; box-shadow: var(--shadow-xl);
  position: relative; z-index: 1;
}
.login-logo { display: flex; flex-direction: column; align-items: center; gap: .85rem; margin-bottom: 1.75rem; }
.login-logo-icon {
  width: 54px; height: 54px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 6px 18px rgba(var(--primary-rgb),.45);
}
.login-brand { text-align: center; }
.login-brand h1 { font-size: 1.3rem; }
.login-brand span { color: var(--text-muted); font-size: .85rem; }

/* ── Forms ─────────────────────────────────────────────────── */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .4rem; color: var(--text); }
.input, input:not([type=checkbox]):not([type=radio]), select, textarea {
  width: 100%; padding: .65rem .8rem; border: 1.5px solid var(--border); border-radius: var(--radius);
  background: #fff; transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb),.15);
}
textarea { resize: vertical; min-height: 84px; }
input[type=color] { height: 42px; padding: 4px; cursor: pointer; }
.field-row { display: flex; gap: .9rem; flex-wrap: wrap; }
.field-row > .field { flex: 1; min-width: 150px; }
.hint { font-size: .78rem; color: var(--text-muted); margin-top: .3rem; }

.password-field { position: relative; }
.password-field input { padding-right: 2.5rem; }
.password-toggle {
  position: absolute; right: .35rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; padding: .35rem; margin: 0; width: auto;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  color: var(--text-muted); border-radius: var(--radius-sm);
}
.password-toggle:hover { color: var(--text); }
.input-link-wrap { position: relative; }
.input-link-wrap input { padding-right: 2.6rem; }
.input-link-btn {
  position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: var(--radius-sm);
  color: var(--text-muted); transition: color .13s, background .13s;
}
.input-link-btn:hover { color: var(--primary); background: var(--primary-light); }
.input-link-btn svg { width: 15px; height: 15px; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .6rem 1.1rem; border-radius: var(--radius); font-weight: 600; font-size: .9rem;
  transition: var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--btn-primary-bg, var(--primary)); color: #fff; border: 1.5px solid var(--btn-primary-bg, var(--primary)); border-radius: var(--radius); }
.btn-primary:hover { background: var(--btn-primary-hover, var(--primary-hover)); border-color: var(--btn-primary-hover, var(--primary-hover)); }
.btn-block { width: 100%; }
.btn-ghost { background: var(--bg); color: var(--text); border: 1.5px solid var(--border); }
.btn-ghost:hover { background: #fff; border-color: var(--text-muted); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-sm { padding: .4rem .7rem; font-size: .82rem; }
.btn-icon { padding: .45rem; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--border); }
.btn-icon:hover { background: #fff; border-color: var(--text-muted); }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ── Layout ────────────────────────────────────────────────── */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); background: var(--sidebar-bg); color: var(--sidebar-text);
  display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; z-index: 40;
  transition: transform .25s ease;
}
.sidebar-head { padding: 1.25rem 1.25rem 1rem; border-bottom: 1px solid var(--sidebar-border); }
.sidebar-resto { display: flex; align-items: center; gap: .7rem; }
.sidebar-resto .avatar {
  width: 38px; height: 38px; border-radius: var(--radius); flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .95rem;
  overflow: hidden;
}
.sidebar-resto .avatar img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.sidebar-resto-info { min-width: 0; }
.sidebar-resto-info strong { color: var(--sidebar-text-active); font-size: .92rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-resto-info span { font-size: .74rem; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: .75rem .65rem; }
.nav-item {
  display: flex; align-items: center; gap: .7rem; padding: .6rem .75rem; border-radius: var(--radius);
  color: var(--sidebar-text); font-size: .9rem; font-weight: 500; cursor: pointer;
  border-left: 3px solid transparent; margin-bottom: 2px; transition: var(--transition);
}
.nav-item:hover { background: var(--sidebar-hover); color: var(--sidebar-text-active); }
.nav-item.active { background: var(--sidebar-active-bg); color: var(--sidebar-text-active); border-left-color: var(--primary); }
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-badge { margin-left: auto; background: var(--primary); color: #fff; font-size: .68rem; font-weight: 700; padding: 1px 7px; border-radius: var(--radius-full); }
.sidebar-foot { padding: .85rem 1rem; border-top: 1px solid var(--sidebar-border); font-size: .72rem; color: var(--text-muted); }

.main { flex: 1; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: var(--header-h); background: #fff; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 1rem; padding: 0 1.5rem; position: sticky; top: 0; z-index: 30;
  transition: transform .25s ease;
}
.topbar--hidden { transform: translateY(-110%); }
.topbar h1 { font-size: 1.15rem; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: .65rem; }
.burger { display: none; }
.user-chip { display: flex; align-items: center; gap: .6rem; padding: .35rem .55rem; border-radius: var(--radius); }
.user-chip .avatar { width: 34px; height: 34px; border-radius: var(--radius-full); background: var(--primary-light); color: var(--text); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; }
.user-chip-info { line-height: 1.2; }
.user-chip-info strong { font-size: .85rem; display: block; }
.user-chip-info span { font-size: .72rem; color: var(--text-muted); }
.content { padding: 1.5rem; flex: 1; }

/* ── Cards / KPI ───────────────────────────────────────────── */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card-pad { padding: 1.25rem; }
.section-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.section-head h2 { margin-right: auto; }
.section-head-btns { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
/* ── Actions rapides (tableau de bord) ──────────────────────── */
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.qa-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .5rem; padding: 1.1rem .75rem;
  background: var(--card); border-radius: var(--radius-lg);
  border: 1.5px solid var(--border); box-shadow: var(--shadow-sm);
  text-align: center; position: relative; color: var(--text);
  transition: border-color .15s, box-shadow .15s, transform .12s;
  touch-action: manipulation;
}
.qa-btn:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.qa-btn:active { transform: translateY(0); }
.qa-icon {
  width: 46px; height: 46px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
}
.qa-icon svg { width: 22px; height: 22px; }
.qa-icon--teal   { background: var(--primary-light);  color: var(--primary); }
.qa-icon--blue   { background: var(--info-light);     color: var(--info); }
.qa-icon--amber  { background: var(--warning-light);  color: var(--warning); }
.qa-icon--orange { background: #fff7ed; color: #f97316; }
.qa-label { font-size: .78rem; font-weight: 600; line-height: 1.25; }
.qa-badge {
  position: absolute; top: .45rem; right: .5rem;
  background: var(--danger); color: #fff;
  font-size: .62rem; font-weight: 700; line-height: 1;
  padding: .18rem .38rem; border-radius: 20px; min-width: 18px; text-align: center;
}
@media (max-width: 640px) { .quick-actions { grid-template-columns: repeat(2, 1fr); } }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.kpi {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: .75rem 1.1rem 1rem; box-shadow: var(--shadow-sm); position: relative;
}
.kpi-label { font-size: .8rem; color: var(--text-secondary); font-weight: 500; display: flex; align-items: center; gap: .5rem; }
.kpi-label svg { width: 17px; height: 17px; color: var(--primary); }
.kpi-value { font-size: 1.9rem; font-weight: 750; letter-spacing: -.02em; margin-top: .35rem; }
.kpi-sub { font-size: .78rem; color: var(--text-muted); margin-top: .15rem; }

.kpi-link { text-decoration: none; color: inherit; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; display: block; }
.kpi-link:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.09); border-color: var(--primary); }
.kpi-link:hover .kpi-value { color: var(--primary); }

.kpi-pill { display: inline-flex; align-items: center; font-size: .64rem; font-weight: 700; padding: .15rem .5rem; border-radius: var(--radius-full); letter-spacing: .03em; line-height: 1.4; margin-bottom: .3rem; }
.kpi-pill--blue   { background: #dbeafe; color: #1d4ed8; }
.kpi-pill--teal   { background: #ccfbf1; color: #0f766e; }
.kpi-pill--green  { background: #dcfce7; color: #15803d; }
.kpi-pill--amber  { background: #fef3c7; color: #b45309; }
.kpi-pill--red    { background: #fee2e2; color: #b91c1c; }
.kpi-pill--rose   { background: #ffe4e6; color: #be123c; }
.kpi-pill--sky    { background: #e0f2fe; color: #0369a1; }
.kpi-pill--purple { background: #ede9fe; color: #6d28d9; }
.kpi-pill--indigo { background: #e0e7ff; color: #3730a3; }
.kpi-pill--slate  { background: #f1f5f9; color: #475569; }

/* ── Badges ────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem; border-radius: var(--radius-full); font-size: .76rem; font-weight: 600; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge-en_attente { background: var(--warning-light); color: var(--warning-text); }
.badge-confirmee { background: var(--success-light); color: var(--success-text); }
.badge-present   { background: var(--primary-light); color: var(--primary); }
.badge-annulee   { background: var(--danger-light);  color: var(--danger-text); }
.badge-refusee   { background: var(--danger-light);  color: var(--danger-text); }
.badge-deplacee  { background: var(--info-light);    color: var(--info-text); }
.badge-terminee  { background: #e2e8f0;              color: #475569; }
.badge-no_show   { background: var(--purple-light);  color: var(--purple-text); }
.badge-nouveau   { background: var(--info-light);    color: var(--info-text); }
.badge-lu        { background: #e2e8f0;              color: #475569; }
.badge-traite    { background: var(--success-light); color: var(--success-text); }
.badge-archive   { background: #f1f5f9;              color: #94a3b8; }
.tag { background: var(--primary-light); color: var(--primary-hover); padding: .15rem .55rem; border-radius: var(--radius-full); font-size: .72rem; font-weight: 600; }

/* ── Tables ────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; }
table.data th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); font-weight: 600; padding: .7rem .9rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.data td { padding: .8rem .9rem; border-bottom: 1px solid var(--border-light); font-size: .9rem; vertical-align: middle; }
table.data tbody tr:hover { background: var(--bg); }
table.data tbody tr { cursor: default; }
table.data tr.clickable { cursor: pointer; }

/* ── Filters bar ───────────────────────────────────────────── */
.filters { display: flex; gap: .65rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.1rem; }
.filters input, .filters select { width: auto; min-width: 130px; padding: .5rem .7rem; }
.search-box { position: relative; }
.search-box input { padding-left: 2.1rem; min-width: 220px; }
.search-box svg { position: absolute; left: .65rem; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-muted); }

/* ── Modal / Drawer ────────────────────────────────────────── */
.overlay { position: fixed; inset: 0; background: rgba(15,23,42,.5); display: none; align-items: center; justify-content: center; z-index: 60; padding: 1.25rem; }
.overlay.show { display: flex; }
.modal { background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; box-shadow: var(--shadow-xl); }
.modal-lg { max-width: 760px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1; background: #fff; }
.modal-head h3 { font-size: 1.1rem; }
.modal-body { padding: 1.4rem; }
.modal-foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .65rem; padding: 1rem 1.4rem; border-top: 1px solid var(--border); position: sticky; bottom: 0; z-index: 1; background: #fff; }

/* ── Mobile : modal en bottom sheet ───────────────────────── */
@media (max-width: 640px) {
  .overlay { align-items: flex-end; padding: 0; }
  .modal {
    max-width: 100%;
    max-height: 92dvh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
  .modal-foot { padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
}
.close-x { width: 32px; height: 32px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.close-x:hover { background: var(--bg); color: var(--text); }

/* ── Toasts ────────────────────────────────────────────────── */
.toasts { position: fixed; top: 1rem; right: 1rem; z-index: 100; display: flex; flex-direction: column; gap: .6rem; }
.toast { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: var(--radius); padding: .8rem 1rem; box-shadow: var(--shadow-lg); min-width: 260px; max-width: 360px; animation: slideIn .25s ease; font-size: .9rem; }
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── States ────────────────────────────────────────────────── */
.empty { text-align: center; padding: 3rem 1.5rem; color: var(--text-muted); }
.empty svg { width: 48px; height: 48px; margin: 0 auto 1rem; color: var(--border); }
.empty h3 { color: var(--text-secondary); margin-bottom: .35rem; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.loader { display: flex; justify-content: center; padding: 3rem; }
.loader .spinner { width: 32px; height: 32px; border-color: var(--border); border-top-color: var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }

.alert { padding: .7rem .9rem; border-radius: var(--radius); font-size: .85rem; margin-bottom: 1rem; display: none; }
.alert.show { display: block; }
.alert-error { background: var(--danger-light); color: var(--danger-text); }

/* ── Planning ──────────────────────────────────────────────── */
.planning-grid { display: grid; gap: .6rem; }
.planning-week { grid-template-columns: repeat(7, 1fr); }

.day-col {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  min-height: 120px; padding: .5rem; transition: border-color .15s, background .15s, box-shadow .15s;
}
.day-col--past { opacity: .5; }
.day-col--past h4 { cursor: pointer; user-select: none; }
.day-col--past h4:hover { opacity: .8; }
.day-col--today { border-color: var(--primary); }
.day-col--heat-low  { background: rgba(16,185,129,.04); }
.day-col--heat-med  { background: rgba(245,158,11,.07); }
.day-col--heat-high { background: rgba(239,68,68,.09); }

/* Collapse jours passés */
.day-col--collapsed { min-height: 0; }
.day-col--collapsed .day-col-body { display: none; }
.day-col--collapsed h4 {
  flex-direction: column; gap: .1rem;
  border-bottom: none; margin-bottom: 0; padding-bottom: .2rem;
}
.day-col--collapsed h4 span { font-size: .88rem; }
.day-col-chevron { display: block; font-size: .65rem; color: var(--text-muted); transition: transform .18s ease; text-align: center; }
.day-col-chevron::after { content: '›'; }
.day-col--collapsed .day-col-chevron { transform: none; }
.day-col:not(.day-col--collapsed) .day-col-chevron { transform: rotate(90deg); }
.day-col-badge,
.day-col h4 .day-col-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--text-muted); color: #fff; font-size: .6rem; font-weight: 700;
  min-width: 15px; height: 15px; padding: 0 3px; border-radius: 99px;
}
.day-col h4 .day-col-chevron { font-size: .65rem; color: var(--text-muted); }

.day-meta { font-size: .64rem; font-weight: 600; color: var(--text-muted); text-align: center; margin: .2rem 0 .3rem; }
.day-fill-bar { height: 3px; background: var(--border-light); border-radius: 2px; margin-top: .15rem; overflow: hidden; }
.day-fill-bar span { display: block; height: 100%; border-radius: 2px; transition: width .4s ease; }

.day-salle-fill { margin-bottom: .3rem; }
.day-salle-fill:last-child { margin-bottom: .45rem; }
.day-salle-head {
  display: flex; align-items: center; gap: .3rem;
  font-size: .62rem; line-height: 1.2;
}
.day-salle-dot {
  flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%;
}
.day-salle-nom { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day-salle-cvt { font-size: .58rem; white-space: nowrap; }
.day-salle-pct { font-weight: 700; font-size: .62rem; white-space: nowrap; margin-left: auto; }
.day-col.drop-over { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 0 0 2px var(--primary); }
.day-col.drop-reject { border-color: var(--danger); background: var(--danger-light); }

.day-col h4 { font-size: .8rem; text-align: center; padding-bottom: .4rem; border-bottom: 1px solid var(--border-light); margin-bottom: .5rem; display: flex; flex-direction: column; align-items: center; gap: .15rem; position: relative; }
.day-col h4 span { display: block; font-size: 1.1rem; color: var(--text); }
.day-num--today { color: var(--primary) !important; font-weight: 800; }
.pl-day-add {
  position: absolute; top: 0; right: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(var(--primary-rgb), .12); color: var(--primary);
  font-size: 1rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .12s, color .12s;
  flex-shrink: 0; font-weight: 700;
}
.pl-day-add:hover, .pl-day-add:active { background: var(--primary); color: #fff; }
.day-chips { display: flex; flex-direction: column; gap: 0; }
.time-group-chips { display: flex; flex-wrap: wrap; gap: .25rem; align-items: flex-start; }
.time-group-chips .resa-chip { flex: 1 1 128px; min-width: 116px; max-width: 260px; border-radius: var(--radius-sm) !important; margin-bottom: 0 !important; }
.day-empty { font-size: .75rem; text-align: center; padding: .4rem 0; pointer-events: none; }

.time-group { margin-bottom: .45rem; }
.time-group:last-child { margin-bottom: 0; }
.time-group .resa-chip { margin-bottom: .25rem; border-radius: 0; }
.time-group .resa-chip:first-of-type { border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.time-group .resa-chip:last-of-type  { border-radius: 0 0 var(--radius-sm) var(--radius-sm); margin-bottom: 0; }
.time-group .resa-chip:only-of-type  { border-radius: var(--radius-sm); }

.time-group-label {
  font-size: .63rem; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: .35rem;
  margin-bottom: .2rem; letter-spacing: .03em;
}
.time-group-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.time-group-count { font-size: .62rem; font-weight: 500; color: var(--text-muted); margin-left: .1rem; }

.time-group--jour { margin-bottom: 1rem; }
.time-group--jour .time-group-label { font-size: .75rem; margin-bottom: .4rem; }
.time-group--jour .resa-chip { border-radius: var(--radius-sm); margin-bottom: .3rem; }

/* ── 2-colonnes chips dans un même créneau (≥ 4 rés.) ───────── */
.chips-cols { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; }
.chips-col  { display: flex; flex-direction: column; gap: .25rem; }
.chips-col .resa-chip { margin-bottom: 0; border-radius: var(--radius-sm) !important; }

.resa-chip {
  font-size: .76rem; padding: .35rem .5rem; border-radius: var(--radius-sm);
  cursor: pointer; border-left: 3px solid var(--primary); background: var(--bg);
  transition: background .12s, transform .12s, opacity .12s;
  user-select: none;
}
.resa-chip:hover { background: var(--primary-light); }
.resa-chip.st-confirmee  { border-left-color: var(--success); }
.resa-chip.st-present    { border-left-color: var(--primary); }
.resa-chip.st-en_attente { border-left-color: var(--warning); }
.resa-chip.st-annulee, .resa-chip.st-refusee { border-left-color: var(--danger); opacity: .6; }
.resa-chip.st-deplacee  { border-left-color: var(--info); }
.resa-chip.st-no_show   { border-left-color: var(--purple); }
.resa-chip.st-terminee  { border-left-color: #94a3b8; opacity: .7; }
.resa-chip strong { font-weight: 600; }

.chip-draggable { cursor: grab; }
.chip-draggable:active { cursor: grabbing; }
.chip-dragging  { opacity: .25 !important; transform: scale(.95); }
.chip-locked    { cursor: not-allowed; }

.chip-top  { display: flex; align-items: center; gap: .3rem; }
.chip-service { font-size: .6rem; font-weight: 700; padding: .1rem .38rem; border-radius: var(--radius-full); letter-spacing: .03em; flex-shrink: 0; background: #e0e7ef; color: #374151; }
.chip-service--midi { background: #fef3c7; color: #b45309; }
.chip-service--soir { background: #ede9fe; color: #6d28d9; }
.chip-nom  { font-weight: 500; margin-top: .1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-salle { font-size: .68rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: .3rem; }
.chip-salle::before { content: ''; flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--sc, #94a3b8); }
.chip-cvt  { font-size: .68rem; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; margin-left: auto; }
.chip-foot { display: flex; align-items: center; gap: .35rem; margin-top: .2rem; flex-wrap: wrap; }
.chip-badge { padding: .1rem .38rem !important; font-size: .6rem !important; gap: .2rem !important; }
.chip-badge::before { width: 5px !important; height: 5px !important; }

.resa-chip--row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .55rem .75rem; margin-bottom: .35rem; }
.chip-heure { font-size: .88rem; flex-shrink: 0; }
.chip-nom-full { font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── À valider (dashboard) ─────────────────────────────────── */
.pv-card { border-left: 3px solid var(--warning); }
.pv-card--ok { border-left-color: var(--success); }
.mb-2 { margin-bottom: 1.25rem; }

.pv-row {
  display: flex; align-items: center; gap: .75rem; padding: .65rem 0;
  border-bottom: 1px solid var(--border-light);
  transition: opacity .3s ease, transform .3s ease;
}
.pv-row:last-child { border-bottom: none; }
.pv-row--exit { opacity: 0; transform: translateX(16px); pointer-events: none; }

.pv-info  { display: flex; align-items: center; gap: .45rem .6rem; flex: 1; min-width: 0; flex-wrap: wrap; }
.pv-date  { font-size: .75rem; color: var(--text-muted); width: 100%; }
.pv-heure { font-size: .88rem; font-weight: 700; flex-shrink: 0; }
.pv-nom   { font-weight: 600; font-size: .9rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-meta  { font-size: .78rem; width: 100%; }

.pv-actions { display: flex; gap: .4rem; flex-shrink: 0; }
.pv-btn--refuse { color: var(--danger) !important; border-color: var(--danger) !important; }
.pv-btn--refuse:hover { background: var(--danger-light) !important; }

@media (max-width: 640px) {
  .pv-row { flex-direction: column; align-items: stretch; gap: .5rem; padding: .8rem 0; }
  .pv-info { gap: .2rem .5rem; }
  .pv-date { margin-bottom: .1rem; }
  .pv-nom  { white-space: normal; }
  .pv-actions { gap: .5rem; }
  .pv-actions .pv-btn { flex: 1 !important; justify-content: center; text-align: center; }
}

.pv-count { font-size: .7rem; vertical-align: middle; }
.pv-extra { font-size: .78rem; padding-top: .5rem; text-align: center; }

.pv-ok { display: flex; align-items: center; gap: 1rem; padding: .25rem 0; }
.pv-ok svg { width: 28px; height: 28px; flex-shrink: 0; color: var(--success); }
.pv-ok strong { font-size: .95rem; }

/* ── Bulk actions (reservations) ───────────────────────────── */
.bulk-bar { display: none; align-items: center; gap: .75rem; flex-wrap: wrap;
  padding: .55rem .85rem; margin-bottom: .6rem;
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  border-radius: var(--radius, 8px);
  animation: bulk-in .18s ease; }
.bulk-bar--visible { display: flex; }
@keyframes bulk-in { from { opacity:0; transform:translateY(-5px); } to { opacity:1; transform:none; } }
.bulk-count { font-weight: 600; font-size: .85rem; color: var(--primary); white-space: nowrap; }
.bulk-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.bulk-actions .btn { font-size: .8rem; padding: .3rem .75rem; }
.bulk-refuse { color: var(--danger) !important; border-color: var(--danger) !important; }
.bulk-refuse:hover { background: color-mix(in srgb, var(--danger) 10%, transparent) !important; }
.bulk-cancel  { color: var(--warning-text, #92400e) !important; border-color: var(--warning, #f59e0b) !important; }
.bulk-cancel:hover  { background: color-mix(in srgb, var(--warning, #f59e0b) 10%, transparent) !important; }
.bulk-danger { color: var(--danger) !important; border-color: var(--danger) !important; }
.bulk-danger:hover { background: var(--danger) !important; color: #fff !important; }

/* Actions rapides par ligne */
.td-actions { display: flex; align-items: center; gap: .25rem; white-space: nowrap; }
.btn-qa {
  display: inline-flex; align-items: center;
  font-size: .8rem; font-weight: 500; padding: .38rem .65rem;
  border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--border);
  cursor: pointer; transition: background .13s, border-color .13s;
  white-space: nowrap;
}
.btn-qa--ok     { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; }
.btn-qa--ok:hover { opacity: .85; }
.btn-qa--present { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; }
.btn-qa--present:hover { opacity: .85; }
.btn-qa--refuse { color: var(--danger, #dc2626); border-color: var(--danger, #dc2626); }
.btn-qa--refuse:hover { background: color-mix(in srgb, var(--danger, #dc2626) 10%, transparent); }
.btn-qa--ns     { color: var(--text-muted); }
.btn-qa--ns:hover { background: #fff; border-color: var(--text-muted); }
.btn-qa--done   { color: var(--primary); }
.btn-qa--done:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); border-color: var(--primary); }
.res-card-qa  { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: .4rem; }
.chip-actions { display: flex; gap: .3rem; margin-top: .45rem; flex-wrap: wrap; }
.chip-qa-btn  { font-size: .72rem !important; padding: .2rem .5rem !important; flex: 1; justify-content: center; }
.col-check { width: 38px; padding-left: .6rem !important; padding-right: .3rem !important; }
.col-check input[type=checkbox] { width: 15px; height: 15px; cursor: pointer; accent-color: var(--primary); }

/* ── Misc helpers ──────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

/* ── Historique — filtres ───────────────────────────────────── */
.h-filters-row {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
}
.h-filters-dates {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; flex: 1;
}
.h-date-label {
  display: flex; align-items: center; gap: .35rem;
  font-size: .85rem; color: var(--text-secondary);
}
.h-date-label input[type="date"] { font-size: .85rem; }
.h-group-select { font-size: .85rem; }
.h-section-title { font-size: .95rem; font-weight: 600; }

/* Détail — table desktop / cartes mobile */
.h-detail-cards { display: none; }
.h-detail-card {
  padding: .85rem 1rem; border-bottom: 1px solid var(--border-light);
}
.h-detail-card:last-child { border-bottom: none; }
.h-detail-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .22rem;
}
.h-detail-card-cle { font-weight: 600; font-size: .88rem; }
.h-detail-card-total { font-size: .82rem; color: var(--text-secondary); }
.h-detail-card-stats {
  display: flex; align-items: center; gap: .35rem; flex-wrap: wrap;
  font-size: .8rem; margin-bottom: .3rem;
}
.h-detail-card-foot { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }

/* ── History journal ────────────────────────────────────────── */
.h-action-row { display: flex; align-items: flex-start; gap: .65rem; padding: .5rem 0; border-bottom: 1px solid var(--border-light); }
.h-action-row:last-child { border-bottom: none; }
.h-action-icon { font-size: 1rem; line-height: 1.4; flex-shrink: 0; width: 22px; text-align: center; }
.h-action-dot {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.h-action-dot--success { background: var(--success-light); color: var(--success); }
.h-action-dot--danger  { background: var(--danger-light);  color: var(--danger); }
.h-action-dot--primary { background: var(--primary-light); color: var(--primary); }
.h-action-dot--info    { background: var(--info-light);    color: var(--info-text); }
.h-action-dot--warning { background: var(--warning-light); color: var(--warning-text); }
.h-action-dot--purple  { background: var(--purple-light);  color: var(--purple); }
.h-action-dot--slate   { background: #f1f5f9; color: #64748b; }
.flex { display: flex; align-items: center; gap: .6rem; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.muted { color: var(--text-muted); }
.mb-1 { margin-bottom: .75rem; } .mb-2 { margin-bottom: 1.25rem; }
.row-actions { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.switch { position: relative; display: inline-block; width: 42px; height: 24px; }
.switch input { display: none; }
.switch .slider { position: absolute; inset: 0; background: var(--border); border-radius: 999px; transition: var(--transition); }
.switch .slider::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: var(--transition); box-shadow: var(--shadow-sm); }
.switch input:checked + .slider { background: var(--primary); }
.switch input:checked + .slider::before { transform: translateX(18px); }
.bar { height: 8px; background: var(--border-light); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--primary); border-radius: 999px; }

/* ── Entreprise ─────────────────────────────────────────────── */
.co-logo-img { width: 100%; max-height: 140px; object-fit: contain; border-radius: var(--radius); border: 1px solid var(--border); margin: .5rem 0; display: block; }
.co-save-row { display: flex; justify-content: flex-end; margin-top: 1rem; }

.upload-field { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: .35rem; }
.upload-name { font-size: .8rem; color: var(--text-muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Carte salle */
.co-salle-card { border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1rem; margin-bottom: .6rem; }
.co-salle-header { margin-bottom: 0; }
.co-salle-nom { flex: 2 1 160px; }
.co-salle-num { flex: 1 1 70px; min-width: 70px !important; }
.co-salle-opts { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .5rem; }
.co-salle-check { display: flex; align-items: center; gap: .35rem; font-size: .84rem; cursor: pointer; }
.co-salle-check input { width: auto !important; }

/* ── Horaires ───────────────────────────────────────────────── */
.h-jour-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: .85rem 1rem; margin-bottom: .6rem;
}
.h-jour-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }

/* Ligne de service : nom | → début → fin | ✕ */
.hj-srv { display: flex; align-items: center; gap: .5rem; margin-bottom: .45rem; flex-wrap: wrap; }
.hj-srv-nom { flex: 1 1 120px; min-width: 0; }
.hj-srv-times { display: flex; align-items: center; gap: .35rem; flex: 0 0 auto; }
.hj-srv-times input[type="time"] { width: 100px; }
.hj-arrow { color: var(--text-muted); font-size: .82rem; flex-shrink: 0; }

/* Salle timings */
.h-salle-row { display: flex; align-items: center; gap: .75rem; margin-bottom: .6rem; flex-wrap: wrap; }
.h-salle-label { flex: 1; min-width: 110px; display: flex; flex-direction: column; gap: .1rem; }
.h-salle-input { flex: 0 0 auto; }
.h-salle-input label { font-size: .78rem; font-weight: 600; display: block; margin-bottom: .25rem; }
.h-salle-input input { width: 110px; }

/* Simulation */
.h-sim-service { margin-bottom: 1rem; }
.h-sim-service-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); padding-bottom: .3rem; margin-bottom: .5rem; }
.h-sim-slots { display: flex; gap: .3rem; flex-wrap: wrap; }
.h-sim-slot { background: var(--bg); border-radius: 4px; padding: .15rem .45rem; font-size: .78rem; font-variant-numeric: tabular-nums; }

/* Fermetures */
.h-ferm-form { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.h-ferm-form input[type="date"] { flex: 0 0 auto; }
.h-ferm-form #h-ferm-raison { flex: 1; min-width: 140px; }
.h-ferm-row { display: flex; align-items: center; justify-content: space-between; padding: .4rem 0; border-bottom: 1px solid var(--border-light); font-size: .88rem; }
.h-ferm-row:last-child { border-bottom: none; }

/* ── Membres & Staff ───────────────────────────────────────── */
.mb-identity { display: flex; align-items: center; gap: .65rem; }
.mb-avatar {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .8rem; letter-spacing: .03em;
}
.mb-avatar--sm { width: 32px; height: 32px; font-size: .72rem; }
.mb-you {
  display: inline-block; font-size: .65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; background: var(--primary-light); color: var(--primary);
  padding: .1rem .45rem; border-radius: 99px; vertical-align: middle; margin-left: .35rem;
}
.mb-btn-del { color: var(--danger) !important; }
.mb-btn-del:hover { background: var(--danger-light) !important; }

/* Colonne actions — largeur minimum pour éviter l'écrasement */
.mb-table-desktop table.data th:last-child,
.mb-table-desktop table.data td:last-child { min-width: 210px; text-align: right; }

/* Desktop table only */
.mb-table-desktop { display: block; }

/* Mobile card list — hidden on desktop */
.mb-cards { display: none; }
.mb-card {
  display: flex; align-items: flex-start; gap: .85rem;
  padding: .95rem 1rem; border-bottom: 1px solid var(--border-light);
}
.mb-card:last-child { border-bottom: none; }
.mb-card .mb-avatar { width: 42px; height: 42px; font-size: .82rem; flex-shrink: 0; }
.mb-card-body { flex: 1; min-width: 0; }
.mb-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem; margin-bottom: .2rem; flex-wrap: wrap;
}
.mb-card-nom { font-weight: 600; font-size: .88rem; }
.mb-card-sub { font-size: .78rem; margin-bottom: .45rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-card-footer { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.mb-card-actions { display: flex; gap: .35rem; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }

.hint-inline { font-size: .78rem; font-weight: 400; }
.required { color: var(--danger); }

/* ── Filter chips (réutilisable) ────────────────────────────── */
.filter-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .38rem .75rem; border-radius: var(--radius-full);
  border: 1.5px solid var(--border); background: var(--surface);
  font-size: .8rem; font-weight: 500; color: var(--text-muted);
  cursor: pointer; transition: border-color .13s, background .13s, color .13s;
  white-space: nowrap;
}
.filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-chip--on {
  border-color: var(--primary); background: var(--primary-light);
  color: var(--primary-hover); font-weight: 600;
}

/* ── Clients ────────────────────────────────────────────────── */
.cl-table-desktop { display: block; }
.cl-cards { display: none; }
.cl-th-sort { cursor: pointer; user-select: none; white-space: nowrap; }
.cl-th-sort:hover { color: var(--primary); }
.cl-sort-icon { font-size: .7rem; opacity: .35; margin-left: .2rem; }
.cl-sort-icon--on { opacity: 1; color: var(--primary); }

.cl-card {
  display: flex; align-items: center; gap: .85rem;
  padding: .9rem 1rem; border-bottom: 1px solid var(--border-light);
  cursor: pointer; transition: background var(--transition);
}
.cl-card:last-child { border-bottom: none; }
.cl-card:active, .cl-card:hover { background: var(--bg); }
.cl-card .mb-avatar { flex-shrink: 0; }
.cl-card-body { flex: 1; min-width: 0; }
.cl-card-head { display: flex; align-items: center; gap: .4rem; margin-bottom: .15rem; flex-wrap: wrap; }
.cl-card-nom { font-weight: 600; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-card-contact { font-size: .76rem; margin-bottom: .25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-card-stats { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; font-size: .78rem; }

/* Fiche client — modal */
.cl-fiche-kpis {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: .75rem; margin-bottom: 1rem;
}
.cl-fiche-kpi {
  background: var(--bg); border-radius: var(--radius); padding: .65rem .75rem; text-align: center;
}
.cl-fiche-kpi-val { font-size: 1.35rem; font-weight: 700; line-height: 1; }
.cl-fiche-kpi-lbl { font-size: .72rem; color: var(--text-muted); margin-top: .25rem; }
.cl-fiche-contact { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .85rem; }
.cl-fiche-contact-row { display: flex; align-items: center; gap: .45rem; font-size: .83rem; }
.cl-fiche-history-title { font-size: .88rem; font-weight: 600; margin: 1rem 0 .5rem; }

/* ── Réservations — cartes mobiles ────────────────────────── */
.res-list { display: none; }
.res-card {
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1rem; border-bottom: 1px solid var(--border-light);
  cursor: pointer; transition: background var(--transition);
}
.res-card:last-child { border-bottom: none; }
.res-card:active, .res-card:hover { background: var(--bg); }
.res-card-body { flex: 1; min-width: 0; }
.res-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem; margin-bottom: .22rem;
}
.res-card-nom {
  font-weight: 600; font-size: .88rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.res-card-meta { font-size: .78rem; color: var(--text-muted); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none; }
  .main { margin-left: 0; }
  .burger { display: inline-flex; }
  .grid-2 { grid-template-columns: 1fr; }
  .planning-week { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .sidebar-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 39; display: none; }
  .sidebar-backdrop.show { display: block; }

  /* Réservations — masquer le tableau, afficher les cartes */
  .res-table-desktop { display: none !important; }
  .bulk-bar { display: none !important; }
  .res-list { display: block; }

  /* Membres — masquer le tableau, afficher les cartes */
  .mb-table-desktop { display: none !important; }
  .mb-cards { display: block; }

  /* Historique — masquer le tableau, afficher les cartes */
  #h-detail-desktop { display: none !important; }
  .h-detail-cards { display: block; }
  .h-filters-dates { flex-direction: column; align-items: flex-start; }
  .h-group-select { width: 100%; }

  /* Clients — masquer le tableau, afficher les cartes */
  .cl-table-desktop { display: none !important; }
  .cl-cards { display: block; }
  .cl-fiche-kpis { grid-template-columns: repeat(2, 1fr); }

  /* Topbar — masquer nom/rôle pour éviter le scroll horizontal */
  .user-chip-info { display: none; }
  .topbar h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
  .topbar-right { gap: .4rem; }

  /* Entreprise — salle : nom pleine largeur, couverts+ordre côte à côte */
  .co-salle-nom { flex: 1 1 100%; }
  .co-salle-num { flex: 1 1 80px; }

  /* Horaires — service row en 2 lignes */
  .hj-srv { flex-wrap: wrap; }
  .hj-srv-nom { flex: 1 1 100%; }
  .hj-srv-times { flex: 1 1 100%; }
  .hj-srv-times input[type="time"] { flex: 1; width: auto; min-width: 80px; }
  .h-ferm-form { flex-direction: column; align-items: stretch; }
  .h-ferm-form input { width: 100%; }
  .h-salle-input input { width: 100%; }

  /* Support — masquer le tableau, afficher les cartes */
  .s-table-desktop { display: none !important; }
  .s-cards { display: block !important; }
  .s-ticket-date { margin-left: 0; }

  /* Filtres — s'empiler proprement */
  .filters { flex-wrap: wrap; }
  .search-box { flex: 1 1 100%; }
  .search-box input { width: 100%; }
  .filters select, .filters input[type="date"] { flex: 1 1 calc(50% - .5rem); min-width: 0; }
}

/* ── Badges tickets ────────────────────────────────────────── */
.badge-ouvert   { background: var(--info-light);    color: var(--info-text); }
.badge-en_cours { background: var(--warning-light); color: var(--warning-text); }
.badge-resolu   { background: var(--success-light); color: var(--success-text); }

.badge-prio-normale  { background: #e2e8f0; color: #475569; }
.badge-prio-haute    { background: var(--warning-light); color: var(--warning-text); }
.badge-prio-urgente  { background: var(--danger-light);  color: var(--danger-text); }

/* ── Support urgence card ──────────────────────────────────── */
.support-urgence {
  display: flex; align-items: center; gap: 1.25rem;
  border-left: 4px solid var(--danger); background: linear-gradient(135deg, #fff 60%, var(--danger-light));
}
.support-urgence-icon {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: var(--radius-md);
  background: var(--danger-light); display: flex; align-items: center; justify-content: center;
  color: var(--danger);
}
.support-urgence-icon svg { width: 26px; height: 26px; }
.support-urgence-body { min-width: 0; }
.support-urgence-title { font-weight: 700; font-size: 1rem; color: var(--danger-text); margin-bottom: .2rem; }
.support-urgence-sub   { font-size: .82rem; color: var(--text-muted); }
.support-urgence-tel   {
  display: inline-block; font-size: 1.35rem; font-weight: 750; letter-spacing: .04em;
  color: var(--danger); margin-top: .35rem; text-decoration: none;
}
.support-urgence-tel:hover { text-decoration: underline; }

/* ── Support — pill réponse reçue & section headers ───────── */
.badge-reponse {
  display: inline-block; margin-left: .45rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  background: #d1fae5; color: #065f46;
  padding: .15rem .5rem; border-radius: 99px; vertical-align: middle;
}

.s-section-head {
  display: flex; align-items: center; gap: .4rem;
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: #065f46; padding: .6rem .25rem .4rem;
}
.s-section-head--muted { color: var(--text-muted); }

/* ── Support — tableau desktop / cartes mobile ─────────────── */
.s-table-desktop { overflow-x: auto; }
.s-table-desktop .s-sujet-cell { max-width: 260px; }

.s-cards { display: none; }

.s-ticket-card {
  display: flex; flex-direction: column; gap: .35rem;
  padding: .85rem 1rem; border-bottom: 1px solid var(--border-light);
  cursor: pointer; transition: background var(--transition);
}
.s-ticket-card:last-child { border-bottom: none; }
.s-ticket-card:hover { background: var(--bg); }
.s-ticket-card-head {
  display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap;
}
.s-ticket-sujet {
  font-weight: 600; font-size: .88rem;
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.s-ticket-card-meta {
  display: flex; align-items: center; gap: .4rem; flex-wrap: wrap;
}
.s-ticket-date { font-size: .75rem; margin-left: auto; }

/* ── Support — modal détail ticket ────────────────────────── */
.s-ticket-badges {
  display: flex; align-items: center; gap: .4rem; flex-wrap: wrap;
  margin-bottom: 1rem;
}
.s-ticket-msg {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .75rem 1rem;
  font-size: .88rem; line-height: 1.6; white-space: pre-wrap;
  margin-bottom: .75rem;
}
.s-ticket-reponse {
  margin-top: 1rem; border-top: 2px solid var(--success-light); padding-top: .75rem;
}
.s-ticket-reponse-body {
  background: var(--success-light); border: 1px solid #a7f3d0;
  border-radius: var(--radius); padding: .75rem 1rem;
  font-size: .88rem; line-height: 1.6; white-space: pre-wrap;
  color: var(--success-text);
}

/* ── Admin booking modal (nouvelle réservation flow visuel) ── */
.abk-topbar { display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; margin-bottom:.85rem; }
.abk-date-input {
  padding:.36rem .65rem; border:1px solid var(--border); border-radius:8px;
  font-size:.88rem; background:var(--input-bg,#fff); color:var(--text);
}
.abk-filters { display:flex; gap:.28rem; flex-wrap:wrap; }
.abk-filter-btn {
  font-size:.72rem; font-weight:700; letter-spacing:.01em;
  padding:.22rem .6rem; border-radius:20px; border:2px solid var(--primary,#f97316);
  color:var(--primary,#f97316); background:transparent; white-space:nowrap;
  transition:background .13s, color .13s;
}
.abk-filter-btn:hover { background:rgba(249,115,22,.1); }
.abk-filter-btn.active { background:var(--primary,#f97316); color:#fff; }

.abk-slots-grid { display:grid; grid-template-columns:1fr 1fr; gap:.4rem; }
.abk-empty { text-align:center; padding:.75rem; }
.abk-pill {
  background:var(--card-bg,#fff); border:2px solid var(--border); border-radius:10px;
  padding:.55rem .5rem; text-align:center; transition:border-color .13s, background .13s;
}
.abk-pill:not([disabled]):hover { border-color:var(--primary,#f97316); background:rgba(249,115,22,.06); }
.abk-pill.full { opacity:.4; }
.abk-pill-h { display:block; font-size:.92rem; font-weight:700; }
.abk-pill-sub { display:block; font-size:.67em; margin-top:.1em; color:var(--text-muted); }
.abk-pill-sub i { font-style:normal; opacity:.5; }

.abk-salle-grid { display:flex; flex-direction:column; gap:.45rem; }
.abk-salle-card {
  display:flex; align-items:center; justify-content:space-between;
  padding:.65rem .85rem; border:2px solid var(--border); border-radius:10px;
  background:var(--card-bg,#fff); text-align:left; transition:border-color .13s;
}
.abk-salle-card:not([disabled]):hover { border-color:var(--primary,#f97316); }
.abk-salle-card.full { opacity:.45; }
.abk-salle-info strong { display:block; font-size:.93rem; }
.abk-salle-info span { font-size:.78rem; }
.abk-txt-danger { color:var(--danger,#dc2626); }

.abk-back {
  font-size:.82rem; color:var(--text-muted); font-weight:500;
  padding:.18rem .45rem; border-radius:6px; background:none;
}
.abk-back:hover { background:var(--bg-alt,#f3f4f6); }

.abk-cov-widget { display:flex; align-items:center; justify-content:center; gap:1.5rem; margin:0 auto; }
.abk-cov-btn {
  width:52px; height:52px; border-radius:50%; border:2px solid var(--border);
  display:flex; align-items:center; justify-content:center; background:#fff;
  color:var(--text,#1e293b);
  transition:border-color .13s, background .13s; flex-shrink:0;
  -webkit-tap-highlight-color:transparent;
}
.abk-cov-btn:not([disabled]):hover,
.abk-cov-btn:not([disabled]):active { border-color:var(--primary); background:rgba(var(--primary-rgb),.07); }
.abk-cov-btn[disabled] { opacity:.28; cursor:not-allowed; }
.abk-cov-btn svg { pointer-events:none; width:22px; height:22px; display:block; flex-shrink:0; }
.abk-cov-count { text-align:center; min-width:60px; user-select:none; -webkit-user-select:none; }
.abk-cov-count span { display:block; font-size:2.4rem; font-weight:800; line-height:1; color:var(--primary); }
.abk-cov-count label { font-size:.78rem; color:var(--text-muted); pointer-events:none; }
.abk-cnt-editable { cursor:pointer; border-bottom:2px solid var(--primary); padding-bottom:2px; }
.abk-cnt-editable:hover { opacity:.75; }
#abk-cnt-input {
  display:none; width:90px;
  font-size:2.4rem; font-weight:800; line-height:1;
  color:var(--primary); text-align:center;
  border:none; border-bottom:2px solid var(--primary);
  background:transparent; outline:none; padding:0;
  -moz-appearance:textfield;
}
#abk-cnt-input::-webkit-outer-spin-button,
#abk-cnt-input::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }

/* Tags chips (réservations + admin booking) */
.abk-tags-area { display:flex; flex-wrap:wrap; gap:.3rem; min-height:1.6rem; }
.abk-tag {
  font-size:.75rem; font-weight:600; padding:.18rem .62rem; border-radius:20px;
  border:2px solid var(--border); color:var(--text-muted); background:none;
  transition:border-color .13s, color .13s, background .13s; cursor:pointer;
}
.abk-tag:hover { border-color:var(--primary,#f97316); color:var(--primary,#f97316); }
.abk-tag.active { background:var(--primary,#f97316); border-color:var(--primary,#f97316); color:#fff; }
.abk-tag-del { margin-left:.28rem; opacity:.75; font-style:normal; }
.abk-tag-del:hover { opacity:1; }

/* ── admin booking : arrow nav + mini calendar ── */
.abk-nav-date { display:flex; align-items:center; gap:.25rem; }
.abk-nav-arr {
  display:flex; align-items:center; justify-content:center;
  width:2rem; height:2rem; border-radius:50%; border:1px solid var(--border,#e5e7eb);
  background:var(--bg-card,#fff); cursor:pointer; flex-shrink:0;
}
.abk-nav-arr:hover { border-color:var(--primary,#f97316); color:var(--primary,#f97316); }
.abk-date-wrap { position:relative; }
.abk-date-lbl {
  display:flex; align-items:center; gap:.2rem;
  background:none; border:none; cursor:pointer;
  font-size:.93rem; font-weight:600; color:var(--text,#111); padding:.2rem .35rem;
  border-radius:.35rem; white-space:nowrap;
}
.abk-date-lbl:hover { background:var(--bg-alt,#f3f4f6); }

/* mini calendar popup */
.abk-cal-popup {
  position:absolute; top:calc(100% + .4rem); left:50%; transform:translateX(-50%);
  background:var(--bg-card,#fff); border:1px solid var(--border,#e5e7eb);
  border-radius:.75rem; box-shadow:0 6px 24px rgba(0,0,0,.12);
  padding:.7rem; z-index:3000; width:220px;
}
.abk-mini-cal { font-size:.8rem; }
.abk-cal-nav { display:flex; align-items:center; justify-content:space-between; margin-bottom:.5rem; }
.abk-cal-nav span { font-weight:700; font-size:.85rem; }
.abk-cal-nav button {
  background:none; border:none; cursor:pointer; font-size:1.1rem;
  line-height:1; padding:.1rem .35rem; border-radius:.25rem; color:var(--text,#111);
}
.abk-cal-nav button:hover { background:var(--bg-alt,#f3f4f6); }
.abk-cal-nav button[disabled] { opacity:.25; pointer-events:none; }
.abk-cal-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:2px; }
.abk-cal-dh { text-align:center; font-weight:600; color:var(--text-muted,#6b7280); padding:.18rem 0; }
.abk-cal-day {
  text-align:center; padding:.22rem 0; border-radius:.3rem;
  background:none; border:none; cursor:pointer; font-size:.78rem; color:var(--text,#111);
}
.abk-cal-day:hover:not([disabled]) { background:var(--bg-alt,#f3f4f6); }
.abk-cal-day.tod { font-weight:700; color:var(--primary,#f97316); }
.abk-cal-day.sel { background:var(--primary,#f97316); color:#fff; border-radius:.3rem; }
.abk-cal-day.past { opacity:.3; pointer-events:none; }

/* service shortcuts row */
.abk-svc-row { display:flex; gap:.28rem; flex-wrap:wrap; margin-bottom:.55rem; min-height:0; }

/* ── Mobile — comportement application ──────────────────────── */

/* Supprime le highlight bleu/gris au tap (iOS + Android) */
*, *::before, *::after { -webkit-tap-highlight-color: transparent; }

/* Supprime le délai 300 ms et le zoom au double-tap sur les éléments interactifs */
a, button, [role="button"], label,
.btn, .nav-item, .card, .res-card, .kpi-card,
.clickable, .abk-pill, .abk-salle-card, .abk-filter-btn { touch-action: manipulation; }

/* Inputs iOS : font-size < 16px déclenche un zoom automatique — on le force à 16px sur mobile */
@media (max-width: 768px) {
  input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]),
  select,
  textarea { font-size: 16px !important; }
}

/* Pas de rebond iOS + pas de scroll horizontal */
body { overscroll-behavior: none; overflow-x: clip; }
/* Double-tap zoom désactivé sur toute la page */
html { touch-action: manipulation; }

/* Défilement natif fluide sur les zones scrollables */
.content, .sidebar-nav, .modal, .table-wrap { -webkit-overflow-scrolling: touch; }

/* Encoche / Dynamic Island (iPhone 12+) — viewport-fit=cover requis */
.topbar {
  padding-top: env(safe-area-inset-top);
  padding-left: calc(1rem + env(safe-area-inset-left));
  padding-right: calc(1rem + env(safe-area-inset-right));
}
.sidebar {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}
.modal-foot { padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }

/* ────────────────────────────────────────────────────────────
   Blocage modal redesign
   ─────────────────────────────────────────────────────────── */

/* Segment control (Journée / Service / Heure) */
.b-seg {
  display: flex; background: var(--bg); border-radius: var(--radius-md);
  padding: 3px; gap: 3px;
}
.b-seg-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
  padding: .42rem .5rem; border-radius: calc(var(--radius-md) - 2px); border: none;
  background: transparent; color: var(--text-muted); font-size: .8rem; font-weight: 600;
  cursor: pointer; transition: background .15s, color .15s, box-shadow .15s;
  white-space: nowrap; -webkit-tap-highlight-color: transparent;
}
.b-seg-btn.active {
  background: #fff; color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.b-seg-btn svg { flex-shrink: 0; }

/* Panel fade-in */
.b-panel { animation: bFade .15s ease; }
@keyframes bFade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; } }

/* Salle chips multiselect */
.b-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .35rem; }
.b-chip {
  padding: .28rem .75rem; border-radius: var(--radius-full);
  border: 2px solid var(--border); background: transparent;
  font-size: .78rem; font-weight: 600; color: var(--text-muted);
  cursor: pointer; transition: all .13s; -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.b-chip:hover { border-color: var(--primary); color: var(--primary); }
.b-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.b-chip-all { border-style: dashed; }
.b-chip-all.active { background: var(--danger); border-color: var(--danger); border-style: solid; color: #fff; }

/* Suggestion chips (raisons rapides) */
.b-suggest { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .4rem; }
.b-sug-chip {
  padding: .2rem .6rem; border-radius: var(--radius-full);
  border: 1.5px solid var(--border); background: transparent;
  font-size: .73rem; font-weight: 600; color: var(--text-muted);
  cursor: pointer; transition: all .13s; -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.b-sug-chip:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* Optionnel label */
.b-opt { font-size: .71rem; color: var(--text-muted); font-weight: 400; margin-left: .3rem; }

/* Récapitulatif dynamique */
.b-recap[hidden] { display: none; }
.b-recap {
  display: flex; flex-wrap: wrap; gap: .35rem;
  background: var(--primary-light); border: 1.5px solid var(--primary);
  border-radius: var(--radius); padding: .6rem .75rem; margin-top: .75rem;
  font-size: .8rem; color: var(--primary);
}
.b-recap span {
  display: inline-flex; align-items: center;
  padding: .1rem .5rem; background: rgba(255,255,255,.6);
  border-radius: var(--radius-full); font-weight: 600;
}

/* Liste blocages */
.b-list-section {
  margin-top: 1.25rem;
  background: var(--bg); border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  padding: .75rem;
}
.b-list-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: .6rem; margin-bottom: .6rem;
  border-bottom: 1.5px solid var(--border);
}
.b-list-title {
  display: flex; align-items: center; gap: .35rem;
  font-weight: 700; font-size: .88rem; color: var(--text);
}
.b-date-filter {
  font-size: .78rem; padding: .22rem .45rem;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  background: #fff; color: var(--text); width: auto;
}
.b-empty { padding: .5rem 0; color: var(--text-muted); }

/* Cartes blocages — fond blanc dans la section grise */
.b-block-card { background: #fff; }

/* Cartes blocages */
.b-block-card {
  border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: .65rem .75rem; margin-bottom: .5rem;
  background: var(--card); transition: border-color .15s;
}
.b-block-card:last-child { margin-bottom: 0; }
.b-block-card:hover { border-color: var(--text-muted); }
.b-block-card-top {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  margin-bottom: .3rem; flex-wrap: wrap;
}
.b-block-card-actions { display: flex; gap: .3rem; }
.b-block-primary { font-size: .88rem; margin-bottom: .15rem; }
.b-block-secondary { font-size: .78rem; color: var(--text-muted); }
.b-block-raison {
  font-size: .75rem; color: var(--text-muted); font-style: italic;
  margin-top: .2rem;
}
/* Highlight left border par type */
.b-block-card:has(.b-tag--journee) { border-left: 3px solid #ef4444; }
.b-block-card:has(.b-tag--service) { border-left: 3px solid #f59e0b; }
.b-block-card:has(.b-tag--heure)   { border-left: 3px solid var(--purple); }

/* Badges type dans la liste */
.b-tag {
  display: inline-block; font-size: .68rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  padding: .15rem .55rem; border-radius: var(--radius-full);
}
.b-tag--journee { background: #fee2e2; color: #991b1b; }
.b-tag--service { background: #fef3c7; color: #92400e; }
.b-tag--heure   { background: var(--purple-light); color: var(--purple-text); }
.b-tag--other   { background: var(--bg); color: var(--text-muted); }

/* ────────────────────────────────────────────────────────────
   Planning — Mobile UX Redesign
   ─────────────────────────────────────────────────────────── */

/* Bouton "Filtres" : masqué sur desktop */
.pl-filter-toggle { display: none; }

/* ── Planning header desktop ───────────────────────────────── */
/* La nav (prev/date/next) doit être en flex et le select vue
   ne doit pas hériter du width:100% des styles de formulaire. */
.pl-nav { display: flex; align-items: center; gap: .45rem; flex-shrink: 0; }
.pl-nav input[type="date"] { width: auto; min-width: 130px; }
#pl-vue.pl-vue-select { width: auto; min-width: 110px; }

/* Wrapper scroll horizontal pour la vue semaine/mois */
.pl-scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pl-scroll-wrap::-webkit-scrollbar { display: none; }

@media (max-width: 900px) {
  /* Afficher le toggle Filtres sur mobile */
  .pl-filter-toggle {
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .78rem; padding: .28rem .6rem;
  }
  .pl-filter-toggle.active {
    background: rgba(249,115,22,.1);
    color: var(--primary); border-color: var(--primary);
  }

  /* Filtres : panel caché par défaut sur mobile, affiché si ouvert */
  .pl-filters { display: none !important; }
  .pl-filters.pl-filters--open { display: flex !important; }

  /* Vue semaine : empilement vertical des jours */
  .planning-week { display: grid !important; grid-template-columns: 1fr !important; }
  .planning-week .day-col { min-width: 0; }
  .planning-week .resa-chip { font-size: .79rem; padding: .4rem .55rem; }
}

@media (max-width: 640px) {
  /* Section-head planning : mise en page 2 lignes via grille CSS */
  .pl-head {
    display: grid;
    grid-template-columns: 1fr auto auto;
    row-gap: .45rem; column-gap: .45rem;
    align-items: center;
  }
  /* Ligne 1 : titre + bouton nouvelle réservation */
  .pl-head h2                 { grid-column: 1 / 3; grid-row: 1; margin-right: 0; font-size: 1rem; }
  .pl-head #pl-new            { grid-column: 3; grid-row: 1; font-size: .74rem; padding: .3rem .6rem; white-space: nowrap; }
  /* Ligne 2 : nav date + sélecteur vue + filtres */
  .pl-head .pl-nav            { grid-column: 1; grid-row: 2; display: flex; gap: .3rem; align-items: center; }
  .pl-head #pl-vue            { grid-column: 2; grid-row: 2; font-size: .8rem; min-width: 0; max-width: 88px; }
  .pl-head #pl-filter-toggle  { grid-column: 3; grid-row: 2; }
  .pl-nav input[type="date"]  { font-size: .8rem; padding: .28rem .4rem; min-width: 0; }
}

/* ── Fiche Google ──────────────────────────────────────────── */
.badge-google-connected    { background: var(--success-light); color: var(--success-text); }
.badge-google-disconnected { background: #f1f5f9; color: #64748b; }
.badge-google-pending      { background: var(--warning-light); color: var(--warning-text); }

.g-notice {
  padding: .7rem .9rem; border-radius: var(--radius); font-size: .85rem; margin-top: .75rem;
}
.g-notice--pending { background: var(--warning-light); color: var(--warning-text); }
.g-notice--error   { background: var(--danger-light);  color: var(--danger-text); }

.g-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.g-tab-btn {
  padding: .5rem .9rem; border-radius: var(--radius-full); border: 1.5px solid var(--border);
  background: #fff; color: var(--text); cursor: pointer; font-size: .85rem; font-weight: 600;
  transition: background .15s, color .15s, border-color .15s;
}
.g-tab-btn:hover { border-color: var(--text-muted); }
.g-tab-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.g-location-list { display: flex; flex-direction: column; gap: .6rem; }
.g-location-card {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: .75rem .9rem;
}

.g-review-card {
  border: 1.5px solid var(--border); border-radius: var(--radius); padding: .75rem .9rem; margin-bottom: .6rem;
}
.g-review-card:last-child { margin-bottom: 0; }
