/* Supprimer les flèches des champs numériques */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --rv-accent: #2563eb;
  --rv-border: #e2e8f0;
  --rv-surface: #f8fafc;
  --rv-card: #ffffff;
  --rv-text: #1e293b;
  --rv-muted: #64748b;
  --rv-nav-h: 48px;
}

/* ── Base ──────────────────────────────────────────────────────────────────── */
body { font-family: system-ui, -apple-system, sans-serif; background: var(--rv-surface); color: var(--rv-text); }

/* ── Nav ───────────────────────────────────────────────────────────────────── */
.rv-nav { background: #fff; border-bottom: 1px solid var(--rv-border); height: var(--rv-nav-h); padding: 0 1rem; }
.rv-brand { font-weight: 600; font-size: 14px; color: var(--rv-text) !important; }
.rv-nav .nav-link { font-size: 12px; color: var(--rv-muted); padding: 0 10px; height: var(--rv-nav-h); display: flex; align-items: center; border-bottom: 2px solid transparent; }
.rv-nav .nav-link.active { color: var(--rv-accent); border-bottom-color: var(--rv-accent); }
.rv-username { font-size: 12px; color: var(--rv-muted); }

/* ── Main content ──────────────────────────────────────────────────────────── */
.rv-main { min-height: calc(100vh - var(--rv-nav-h)); }

/* ── Cards ─────────────────────────────────────────────────────────────────── */
.rv-card { border: 1px solid var(--rv-border); border-radius: 12px; overflow: hidden; }
.rv-card-head { font-size: 12px; font-weight: 600; background: var(--rv-surface); border-bottom: 1px solid var(--rv-border); padding: 10px 14px; }

/* ── Tables ─────────────────────────────────────────────────────────────────── */
.rv-table th { font-size: 11px; color: var(--rv-muted); font-weight: 500; background: var(--rv-surface); white-space: nowrap; }
.rv-table td { font-size: 12px; vertical-align: middle; }

/* ── KPIs ───────────────────────────────────────────────────────────────────── */
.rv-kpi { background: #fff; border: 1px solid var(--rv-border); border-radius: 12px; padding: 1rem; text-align: center; }
.rv-kpi-val { font-size: 22px; font-weight: 600; }
.rv-kpi-lbl { font-size: 11px; color: var(--rv-muted); margin-top: 3px; }

/* ── Badges & status ────────────────────────────────────────────────────────── */
.rv-badge { display: inline-block; padding: 2px 7px; border-radius: 4px; font-size: 11px; font-weight: 500; }
.rv-badge-admin { display: inline-block; padding: 2px 7px; border-radius: 4px; font-size: 10px; font-weight: 600; background: #dbeafe; color: #1d4ed8; }
.rv-status { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 4px; font-size: 10px; font-weight: 500; }
.rv-ok   { background: #dcfce7; color: #15803d; }
.rv-wait { background: #fef9c3; color: #854d0e; }
.rv-err  { background: #fee2e2; color: #b91c1c; }
.rv-chip { font-size: 11px; font-weight: 400; color: var(--rv-muted); background: var(--rv-surface); border: 1px solid var(--rv-border); border-radius: 10px; padding: 1px 8px; }

/* ── Buttons (xs) ───────────────────────────────────────────────────────────── */
.btn-xs { font-size: 10px; padding: 2px 7px; border-radius: 4px; white-space: nowrap; cursor: pointer; }

/* ── Avatar ─────────────────────────────────────────────────────────────────── */
.rv-avatar   { width: 32px; height: 32px; border-radius: 50%; background: #dbeafe; color: #1d4ed8; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.rv-avatar-sm{ width: 26px; height: 26px; border-radius: 50%; background: #dbeafe; color: #1d4ed8; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; flex-shrink: 0; }
.rv-email    { font-size: 11px; color: var(--rv-muted); }

/* ── Calendar ───────────────────────────────────────────────────────────────── */
.rv-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--rv-border); border-radius: 12px; overflow: hidden; }
.rv-cal-head { background: var(--rv-surface); text-align: center; font-size: 11px; font-weight: 600; color: var(--rv-muted); padding: 8px 0; border-right: 1px solid var(--rv-border); border-bottom: 1px solid var(--rv-border); }
.rv-cal-cell { min-height: 90px; padding: 6px; border-right: 1px solid var(--rv-border); border-bottom: 1px solid var(--rv-border); background: #fff; }
.rv-cal-empty{ background: var(--rv-surface); }
.rv-cal-daynum { font-size: 12px; font-weight: 500; margin-bottom: 4px; height: 22px; display: flex; align-items: center; }
.rv-today-num { display: inline-flex; align-items: center; justify-content: center; background: var(--rv-accent); color: #fff; border-radius: 50%; width: 22px; height: 22px; }
.rv-cal-event { font-size: 10px; padding: 1px 5px; border-radius: 3px; margin-top: 10px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-ev-ok   { background: #dcfce7; color: #15803d; }
.rv-ev-wait { background: #fef9c3; color: #854d0e; }

/* ── Reservation form preview ───────────────────────────────────────────────── */
.rv-preview { background: var(--rv-surface); border: 1px solid var(--rv-border); border-radius: 8px; padding: 12px 16px; margin-top: 12px; }
.rv-preview-title { font-size: 12px; font-weight: 600; color: var(--rv-muted); margin-bottom: 8px; }
.rv-preview-row { display: flex; justify-content: space-between; font-size: 12px; }

/* ── Blog & Tasks ───────────────────────────────────────────────────────────── */
.rv-blog-post { padding: 16px; }
.rv-blog-meta { font-size: 11px; color: var(--rv-muted); margin-bottom: 4px; }
.rv-blog-title{ font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.rv-blog-body { font-size: 12px; color: var(--rv-muted); }
.rv-link-edit { font-size: 11px; color: var(--rv-accent); background: none; border: none; cursor: pointer; padding: 0; text-decoration: none; }
.rv-link-del  { font-size: 11px; color: #dc2626; background: none; border: none; cursor: pointer; padding: 0; }

.rv-task { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; }
.rv-task-done { opacity: .7; }
.rv-task-desc { font-size: 12px; flex: 1; }
.rv-checkbox { width: 18px; height: 18px; border: 1.5px solid var(--rv-border); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 11px; cursor: pointer; background: none; flex-shrink: 0; }
.rv-checked { background: var(--rv-accent); border-color: var(--rv-accent); color: #fff; }

/* ── Bar chart ──────────────────────────────────────────────────────────────── */
.rv-bar-month { width: 100%; min-height: 2px; border-radius: 3px 3px 0 0; transition: height .2s; }
.rv-bar-label { font-size: 9px; color: var(--rv-muted); margin-top: 2px; }

/* ── Login ──────────────────────────────────────────────────────────────────── */
.rv-login-bg { background: #f1f5f9; }
.rv-login-card { border-radius: 16px; border: 1px solid var(--rv-border); }
.rv-login-icon { width: 56px; height: 56px; border-radius: 14px; background: #dbeafe; display: flex; align-items: center; justify-content: center; font-size: 28px; }

/* ── Alignement nav : menus collés au titre ──────────────────────────────── */
.rv-nav .navbar-brand { margin-right: 0; padding-right: 12px; border-right: 1px solid var(--rv-border); }
.rv-nav .navbar-nav   { margin-left: 4px; }

/* ── Alignement nav : menus collés au titre ──────────────────────────────── */
.rv-nav .navbar-brand { margin-right: 0; padding-right: 12px; border-right: 1px solid var(--rv-border); }
.rv-nav .navbar-nav   { margin-left: 4px; }

/* ── Nav v2 ─────────────────────────────────────────────────────────────── */
.rv-nav-link { font-size:12px; color:var(--rv-muted); padding:0 10px; height:var(--rv-nav-h); display:inline-flex; align-items:center; border-bottom:2px solid transparent; text-decoration:none; white-space:nowrap; }
.rv-nav-link:hover { color:var(--rv-text); }
.rv-nav-link.rv-active { color:var(--rv-accent); border-bottom-color:var(--rv-accent); }

/* ── Nav — sans survol, espacement augmenté ──────────────────────────────── */
.rv-nav-link { padding: 0 16px !important; }
.rv-nav-link:hover { color: var(--rv-muted) !important; }
.rv-brand:hover { color: var(--rv-text) !important; }
