/* hotel_app — surcharges et thèmes hôteliers
   Charge automatiquement (web_include_css dans hooks.py) sur toutes les pages /www/.
   Réutilise les variables CSS de conciergerie_app/public/css/app.css. */

:root {
	--hotel-primary: #1e3a8a;
	--hotel-accent: #d97706;
	--hotel-success: #059669;
	--hotel-danger: #dc2626;
}

/* Statuts chambres (House Status) */
.room-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
}
.room-status.vacant-clean   { background: #dcfce7; color: #059669; }
.room-status.vacant-dirty   { background: #fef3c7; color: #92400e; }
.room-status.occupied-clean { background: #dbeafe; color: #1e40af; }
.room-status.occupied-dirty { background: #fee2e2; color: #991b1b; }
.room-status.ooo            { background: #f1f5f9; color: #64748b; text-decoration: line-through; }
.room-status.ooi            { background: #1e293b; color: #fff; }

/* ───────────────────────────────────────────────────────────────
   Sidebar SaaS — auto-injecté par hotel.js sur les pages hôtel
   ─────────────────────────────────────────────────────────────── */
:root {
	--hsb-w: 248px;
	--hsb-w-rail: 64px;
	--hsb-bg: #0b1220;
	--hsb-border: #1e293b;
	--hsb-link-fg: #94a3b8;
	--hsb-link-hover-bg: #111c33;
	--hsb-link-hover-fg: #f1f5f9;
	--hsb-active-bg: #1e3a8a;
	--hsb-active-fg: #fff;
	--hsb-cat-fg: #475569;
	--hsb-overlay: rgba(7, 11, 25, 0.55);
}

.hotel-sidebar {
	position: fixed; left: 0; top: 0; bottom: 0; width: var(--hsb-w);
	background: var(--hsb-bg); color: var(--hsb-link-fg);
	display: flex; flex-direction: column;
	border-right: 1px solid var(--hsb-border); z-index: 50;
	transform: translateX(0);
	transition: transform 0.22s ease-out, width 0.18s ease-out, box-shadow 0.18s;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

/* — Brand area — */
.hsb-brand {
	display: flex; align-items: center; gap: 10px;
	padding: 16px 18px 14px; border-bottom: 1px solid var(--hsb-border);
}
.hsb-logo {
	width: 34px; height: 34px; flex-shrink: 0;
	background: linear-gradient(135deg, #1e3a8a, #3b82f6);
	border-radius: 9px; display: grid; place-items: center;
	font-size: 17px; box-shadow: 0 2px 8px rgba(30, 58, 138, 0.4);
}
.hsb-launch {
	border: none; cursor: pointer; padding: 0;
	color: inherit; font: inherit; text-align: left;
	transition: transform 0.12s, opacity 0.12s;
}
.hsb-launch:hover { transform: scale(1.04); }
button.hsb-brand-text { background: transparent; }
.hsb-brand-text { line-height: 1.15; min-width: 0; flex: 1; }
.hsb-name { font-size: 14px; font-weight: 800; color: #fff; }
.hsb-tag  { font-size: 10.5px; color: var(--hsb-cat-fg); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.05em; }

/* ════════════════════════════════════════════════════════════
   App Launcher (modules complémentaires) (popup au click logo)
   ════════════════════════════════════════════════════════════ */
.app-launcher-overlay {
	position: fixed; inset: 0; background: rgba(15,23,42,0.55);
	display: flex; align-items: center; justify-content: center;
	z-index: 300; opacity: 0; transition: opacity 0.2s;
}
.app-launcher-overlay.open { opacity: 1; }
.app-launcher-card {
	background: #fff; border-radius: 14px;
	width: min(720px, 92vw); max-height: 90vh;
	box-shadow: 0 24px 70px rgba(15,23,42,0.32);
	display: flex; flex-direction: column; overflow: hidden;
	transform: scale(0.96); transition: transform 0.2s;
}
.app-launcher-overlay.open .app-launcher-card { transform: scale(1); }
.app-launcher-head {
	display: flex; justify-content: space-between; align-items: center;
	padding: 18px 22px; border-bottom: 1px solid #e2e8f0;
}
.app-launcher-title { font-size: 17px; font-weight: 800; color: #0f172a; }
.app-launcher-close {
	border: none; background: transparent; font-size: 22px;
	cursor: pointer; color: #64748b; padding: 4px 10px; border-radius: 8px;
	transition: background 0.12s;
}
.app-launcher-close:hover { background: #f1f5f9; color: #0f172a; }
.app-launcher-grid {
	display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
	padding: 14px; overflow-y: auto;
}
.app-launcher-app {
	display: flex; gap: 14px; align-items: center;
	padding: 14px 16px; border-radius: 10px;
	text-decoration: none; color: inherit;
	transition: background 0.12s, transform 0.12s;
}
.app-launcher-app:hover { background: #f1f5f9; transform: translateY(-1px); }
.app-launcher-app-disabled { opacity: 0.55; cursor: not-allowed; }
.app-launcher-app-icon {
	width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px;
	display: flex; align-items: center; justify-content: center;
	font-size: 22px;
}
.app-launcher-app-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.app-launcher-app-label {
	font-size: 14px; font-weight: 700; color: #0f172a;
	display: flex; align-items: center; gap: 6px;
}
.app-launcher-app-sub {
	font-size: 12px; color: #64748b; line-height: 1.4;
	overflow: hidden; text-overflow: ellipsis;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
@media (max-width: 600px) {
	.app-launcher-grid { grid-template-columns: 1fr; }
}

/* — Nav — */
.hsb-nav { flex: 1; overflow-y: auto; padding: 10px 8px 6px; }
.hsb-nav::-webkit-scrollbar { width: 4px; }
.hsb-nav::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }

.hsb-section { padding: 6px 0; }
.hsb-section + .hsb-section { border-top: 1px solid var(--hsb-border); margin-top: 4px; padding-top: 10px; }
.hsb-cat {
	font-size: 10px; font-weight: 700; color: var(--hsb-cat-fg);
	letter-spacing: 0.08em; text-transform: uppercase;
	padding: 2px 12px 6px;
}

.hsb-link {
	color: var(--hsb-link-fg); text-decoration: none;
	display: flex; align-items: center; gap: 10px;
	padding: 8px 12px; margin: 1px 0;
	border-radius: 7px; font-size: 13px; font-weight: 500;
	position: relative; transition: background 0.12s, color 0.12s;
}
.hsb-link:hover { background: var(--hsb-link-hover-bg); color: var(--hsb-link-hover-fg); }
.hsb-link.active {
	background: var(--hsb-active-bg); color: var(--hsb-active-fg); font-weight: 700;
}
.hsb-link.active::before {
	content: ""; position: absolute; left: -8px; top: 6px; bottom: 6px;
	width: 3px; background: #60a5fa; border-radius: 0 3px 3px 0;
}
.hsb-link .hsb-ico {
	width: 18px; flex-shrink: 0; font-size: 15px; line-height: 1;
	display: inline-flex; justify-content: center;
}
.hsb-link .hsb-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hsb-link .hsb-badge {
	background: var(--hotel-accent); color: #fff;
	font-size: 10px; font-weight: 700; padding: 1px 6px;
	border-radius: 999px; min-width: 18px; text-align: center;
}
.hsb-link.active .hsb-badge { background: rgba(255,255,255,0.25); }

/* — User card — */
.hsb-user {
	display: flex; align-items: center; gap: 10px;
	padding: 12px 14px; border-top: 1px solid var(--hsb-border);
	background: linear-gradient(180deg, transparent, rgba(0,0,0,0.18));
}
.hsb-avatar {
	width: 34px; height: 34px; flex-shrink: 0;
	background: linear-gradient(135deg, #d97706, #f59e0b);
	color: #fff; font-weight: 800; font-size: 13px;
	border-radius: 50%; display: grid; place-items: center;
}
.hsb-user-info { flex: 1; min-width: 0; line-height: 1.2; }
.hsb-user-name {
	font-size: 12.5px; font-weight: 700; color: #f1f5f9;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hsb-user-role {
	font-size: 10.5px; color: var(--hsb-cat-fg); margin-top: 2px;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hsb-logout {
	flex-shrink: 0; color: var(--hsb-link-fg); font-size: 16px;
	padding: 6px 8px; border-radius: 6px;
	text-decoration: none; line-height: 1;
}
.hsb-logout:hover { background: var(--hsb-link-hover-bg); color: var(--hotel-danger); }

/* — Sélecteur de langue dans la sidebar — */
.hsb-lang {
	border-top: 1px solid var(--hsb-border);
	padding: 10px 10px 6px;
}
.hsb-lang-btn {
	display: flex; align-items: center; gap: 12px;
	width: 100%; padding: 10px 12px;
	background: rgba(255,255,255,0.04);
	border: 1px solid var(--hsb-border);
	color: var(--hsb-link-fg);
	border-radius: 10px; cursor: pointer;
	transition: background 0.15s, border-color 0.15s, transform 0.1s;
	text-align: left; line-height: 1.2;
}
.hsb-lang-btn:hover {
	background: var(--hsb-link-hover-bg);
	border-color: rgba(255,255,255,0.18);
}
.hsb-lang-btn:active { transform: scale(0.98); }
.hsb-lang-flag { font-size: 22px; line-height: 1; flex-shrink: 0; }
.hsb-lang-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.hsb-lang-label {
	font-size: 9.5px; font-weight: 700; color: var(--hsb-cat-fg);
	text-transform: uppercase; letter-spacing: 0.06em;
}
.hsb-lang-name {
	font-size: 13px; font-weight: 700; color: #f1f5f9;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hsb-lang-caret {
	color: var(--hsb-cat-fg); font-size: 14px; flex-shrink: 0; opacity: 0.7;
}
body.hotel-sidebar-collapsed .hotel-sidebar:not(:hover) .hsb-lang-info,
body.hotel-sidebar-collapsed .hotel-sidebar:not(:hover) .hsb-lang-caret { display: none; }
body.hotel-sidebar-collapsed .hotel-sidebar:not(:hover) .hsb-lang-btn { justify-content: center; padding: 8px; }

/* — Modale de choix de langue — */
.hsb-lang-picker-bg {
	position: fixed; inset: 0;
	background: rgba(15,23,42,0);
	display: flex; align-items: center; justify-content: center;
	z-index: 9998;
	opacity: 0;
	transition: opacity 0.18s, background 0.18s;
}
.hsb-lang-picker-bg.show {
	background: rgba(15,23,42,0.55);
	opacity: 1;
}
.hsb-lang-picker-card {
	width: min(420px, calc(100vw - 32px));
	background: #fff; color: #0f172a;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0,0,0,0.35);
	overflow: hidden;
	transform: scale(0.96) translateY(8px);
	transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.hsb-lang-picker-bg.show .hsb-lang-picker-card { transform: scale(1) translateY(0); }
.hsb-lang-picker-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 18px 22px;
	background: linear-gradient(135deg, #1e3a8a, #2563eb);
	color: #fff;
}
.hsb-lang-picker-head h3 {
	margin: 0; font-size: 17px; font-weight: 800; letter-spacing: 0.01em;
}
.hsb-lang-picker-close {
	background: rgba(255,255,255,0.18); border: 0;
	color: #fff; width: 32px; height: 32px; border-radius: 50%;
	font-size: 22px; line-height: 1; cursor: pointer;
	display: grid; place-items: center;
	transition: background 0.12s;
}
.hsb-lang-picker-close:hover { background: rgba(255,255,255,0.32); }
.hsb-lang-picker-list {
	padding: 12px;
	display: flex; flex-direction: column; gap: 6px;
}
.hsb-lang-picker-opt {
	display: flex; align-items: center; gap: 14px;
	padding: 14px 16px;
	background: #fff;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.12s;
	text-align: left;
}
.hsb-lang-picker-opt:hover {
	background: #eff6ff;
	border-color: #93c5fd;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(30,58,138,0.08);
}
.hsb-lang-picker-opt.active {
	background: #dbeafe;
	border-color: #1e3a8a;
}
.hsb-lang-picker-flag { font-size: 28px; line-height: 1; flex-shrink: 0; }
.hsb-lang-picker-name {
	flex: 1; font-size: 15px; font-weight: 700; color: #0f172a;
}
.hsb-lang-picker-check {
	color: #1e3a8a; font-size: 18px; font-weight: 800; flex-shrink: 0;
}

/* — Layout host — */
body.has-hotel-sidebar { padding-left: var(--hsb-w); transition: padding-left 0.22s ease-out; }
.hsb-toggle { display: none; }
.hsb-overlay {
	display: none; position: fixed; inset: 0; background: var(--hsb-overlay);
	z-index: 49; opacity: 0; transition: opacity 0.2s;
}
.hsb-overlay.show { display: block; opacity: 1; }

/* Bouton épingle / pin (desktop) — replie le sidebar sans cacher */
.hsb-pin {
	background: rgba(255,255,255,0.08); border: none;
	color: rgba(255,255,255,0.6); font-size: 16px; line-height: 1;
	width: 30px; height: 30px; border-radius: 7px;
	cursor: pointer; flex-shrink: 0;
	transition: background 0.12s, color 0.12s, transform 0.18s;
}
.hsb-pin:hover { background: rgba(255,255,255,0.18); color: #fff; }
body.hotel-sidebar-collapsed .hsb-pin { transform: rotate(45deg); }

/* ─── Header actions sidebar : 🔔 Notifications + 🚨 Alertes ─── */
.hsb-header-actions {
	display: flex; gap: 8px; padding: 10px 14px 6px;
	border-bottom: 1px solid rgba(255,255,255,0.06);
	margin-bottom: 4px;
}
.hsb-h-act {
	position: relative;
	flex: 1;
	display: flex; align-items: center; justify-content: center;
	background: rgba(255,255,255,0.06);
	border: 1px solid rgba(255,255,255,0.08);
	color: rgba(255,255,255,0.85);
	border-radius: 8px;
	padding: 8px;
	cursor: pointer;
	font-size: 16px;
	transition: background 0.12s, transform 0.12s;
}
.hsb-h-act:hover {
	background: rgba(255,255,255,0.14);
	transform: translateY(-1px);
}
.hsb-h-act.active { background: rgba(255,255,255,0.22); }
.hsb-h-ico { line-height: 1; }
.hsb-h-badge {
	position: absolute; top: 2px; right: 6px;
	min-width: 16px; height: 16px;
	background: #ef4444; color: #fff;
	border: 1.5px solid #1e3a8a;
	border-radius: 99px;
	font-size: 9.5px; font-weight: 800;
	display: flex; align-items: center; justify-content: center;
	padding: 0 4px;
	box-shadow: 0 0 6px rgba(239,68,68,0.5);
	animation: hsbPulse 1.8s ease-in-out infinite;
}
.hsb-h-badge-alert {
	background: #f59e0b; box-shadow: 0 0 6px rgba(245,158,11,0.5);
}
@keyframes hsbPulse {
	0%,100% { transform: scale(1); }
	50% { transform: scale(1.12); }
}
/* En mode rail (collapsed), les 2 boutons restent visibles mais empilés */
body.hotel-sidebar-collapsed .hotel-sidebar:not(:hover) .hsb-header-actions {
	flex-direction: column;
	padding: 6px;
	gap: 4px;
}
body.hotel-sidebar-collapsed .hotel-sidebar:not(:hover) .hsb-h-act {
	padding: 6px;
}

/* Mode replié desktop = "rail" : seules les icônes sont visibles. Le sidebar
   s'expand au survol pour montrer les libellés (overlay au-dessus du contenu,
   le padding du body reste à la largeur du rail pour éviter les sauts).
   Cliquer sur 📌 fige l'état déplié (toggle classe hotel-sidebar-collapsed). */
@media (min-width: 901px) {
	body.has-hotel-sidebar.hotel-sidebar-collapsed { padding-left: var(--hsb-w-rail); }
	body.hotel-sidebar-collapsed .hotel-sidebar {
		width: var(--hsb-w-rail);
		transform: none;
		overflow: hidden;
	}
	/* Hover → expansion temporaire (par-dessus le contenu) */
	body.hotel-sidebar-collapsed .hotel-sidebar:hover {
		width: var(--hsb-w);
		box-shadow: 8px 0 24px rgba(0, 0, 0, 0.32);
	}
	/* Hors hover : libellés/badges/zone user/pin/logout retirés du flux pour
	   que les icônes soient parfaitement centrées dans le rail. */
	body.hotel-sidebar-collapsed .hotel-sidebar:not(:hover) :is(
		.hsb-brand-text, .hsb-cat, .hsb-txt, .hsb-badge,
		.hsb-user-info, .hsb-pin, .hsb-logout
	) {
		display: none;
	}
	/* Centre les containers en mode rail (l'unique enfant restant = icône) */
	body.hotel-sidebar-collapsed .hotel-sidebar:not(:hover) .hsb-brand,
	body.hotel-sidebar-collapsed .hotel-sidebar:not(:hover) .hsb-user {
		padding-left: 0; padding-right: 0; justify-content: center; gap: 0;
	}
	body.hotel-sidebar-collapsed .hotel-sidebar:not(:hover) .hsb-link {
		padding: 10px 0; justify-content: center; gap: 0;
	}
	/* Icônes nav un peu plus grandes en rail pour la lisibilité */
	body.hotel-sidebar-collapsed .hotel-sidebar:not(:hover) .hsb-link .hsb-ico {
		width: 24px; font-size: 18px;
	}
	/* La barre indicative bleue de l'élément actif est cachée en rail
	   (positionnée à left:-8px, hors du conteneur en overflow hidden) */
	body.hotel-sidebar-collapsed .hotel-sidebar:not(:hover) .hsb-link.active {
		background: var(--hsb-active-bg);
	}
	/* Le bouton flottant n'a plus de raison d'être (le rail est toujours visible) */
	body.hotel-sidebar-collapsed .hsb-show { display: none !important; }
	/* Pas de bande blanche : le contenu de page colle au rail. On décale juste
	   le TEXTE du titre (h1) et le bouton hamburger éventuel pour éviter qu'ils
	   ne soient trop près du rail. Les fonds (header bleu, toolbar) restent collés. */
	body.hotel-sidebar-collapsed > header h1 { padding-left: 12px; }
}
.hsb-show { display: none; }

/* — Mobile — */
@media (max-width: 900px) {
	body.has-hotel-sidebar { padding-left: 0; padding-top: 52px; }
	.hotel-sidebar {
		transform: translateX(-100%); width: 280px;
		box-shadow: 6px 0 24px rgba(0,0,0,0.35);
	}
	.hotel-sidebar.open { transform: translateX(0); }
	.hsb-toggle {
		display: flex; align-items: center; gap: 8px;
		position: fixed; top: 0; left: 0; right: 0; height: 52px;
		padding: 0 14px; z-index: 48;
		background: #1e3a8a; color: #fff;
		border: none; font-size: 14px; font-weight: 700;
		cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
	}
	.hsb-toggle .ham {
		display: inline-grid; gap: 4px; width: 22px;
	}
	.hsb-toggle .ham span {
		display: block; height: 2px; background: #fff; border-radius: 2px;
	}
	.hsb-toggle-title { flex: 1; text-align: left; font-weight: 600; opacity: 0.92; }
}

/* ─── Drawer générique (résa, détail, audit…) ──────────────── */
.hd-overlay {
	position: fixed; inset: 0; background: rgba(7, 11, 25, 0.45);
	opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 90;
}
.hd-overlay.open { opacity: 1; pointer-events: auto; }
.hd-drawer {
	position: fixed; top: 0; right: 0; bottom: 0;
	width: 100%; max-width: 520px; background: #fff;
	box-shadow: -6px 0 24px rgba(15, 23, 42, 0.18);
	transform: translateX(100%); transition: transform 0.22s ease-out;
	z-index: 100; display: flex; flex-direction: column;
}
.hd-drawer.open { transform: translateX(0); }
.hd-head {
	display: flex; justify-content: space-between; align-items: center;
	padding: 14px 18px; background: linear-gradient(135deg, #1e3a8a, #3b82f6); color: #fff;
	flex-shrink: 0;
}
.hd-head .hd-title { font-size: 15px; font-weight: 800; line-height: 1.2; }
.hd-head .hd-sub   { font-size: 11.5px; opacity: 0.85; margin-top: 2px; }
.hd-head .hd-close {
	background: rgba(255,255,255,0.15); border: none; color: #fff;
	font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 10px;
	border-radius: 7px; transition: background 0.12s;
}
.hd-head .hd-close:hover { background: rgba(255,255,255,0.28); }
/* Bouton retour (optionnel, à gauche du titre) */
.hd-head .hd-back {
	background: rgba(255,255,255,0.18); border: none; color: #fff;
	cursor: pointer; padding: 6px 11px;
	font-size: 14px; font-weight: 700; line-height: 1;
	border-radius: 8px; transition: background 0.12s, transform 0.1s;
	display: inline-flex; align-items: center; gap: 4px;
	margin-right: 10px; flex-shrink: 0;
}
.hd-head .hd-back:hover { background: rgba(255,255,255,0.30); transform: translateX(-2px); }
.hd-head .hd-back svg { width: 14px; height: 14px; }
.hd-head .hd-head-text { flex: 1; min-width: 0; }
.hd-body {
	flex: 1; overflow-y: auto; padding: 18px 20px;
	background: #f8fafc;
}
.hd-foot {
	flex-shrink: 0; padding: 12px 18px;
	border-top: 1px solid #e2e8f0; background: #fff;
	display: flex; gap: 8px; justify-content: flex-end;
}
.hd-loading,
.hd-empty,
.hd-error { padding: 24px 12px; text-align: center; font-size: 13px; }
.hd-empty { color: #94a3b8; }
.hd-error { color: #991b1b; background: #fee2e2; border-radius: 8px; }

/* — Form (utilisé par le drawer création résa) — */
.hd-form .hd-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.hd-form .hd-row.col1 { grid-template-columns: 1fr; }
.hd-form .hd-field { display: flex; flex-direction: column; gap: 4px; }
.hd-form .hd-field label {
	font-size: 11px; color: #64748b; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.04em;
}
.hd-form .hd-field label .req { color: #c0392b; margin-left: 3px; }
.hd-form .hd-field input,
.hd-form .hd-field select,
.hd-form .hd-field textarea {
	padding: 8px 10px; border: 1.5px solid #e2e8f0; border-radius: 8px;
	font-size: 13px; background: #fff; color: #1e293b;
	transition: border-color 0.12s, box-shadow 0.12s;
	font-family: inherit;
}
.hd-form .hd-field input:focus,
.hd-form .hd-field select:focus,
.hd-form .hd-field textarea:focus {
	outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.hd-form .hd-section-title {
	font-size: 11px; color: #1e3a8a; font-weight: 800;
	text-transform: uppercase; letter-spacing: 0.05em;
	padding-bottom: 6px; border-bottom: 1px solid #e2e8f0;
	margin: 16px 0 10px;
}
.hd-form .hd-section-title:first-child { margin-top: 0; }
.hd-form .hd-pills {
	display: flex; flex-wrap: wrap; gap: 4px;
	background: #f1f5f9; padding: 4px; border-radius: 8px; margin-bottom: 12px;
}
.hd-form .hd-pill {
	flex: 1; min-width: 80px; padding: 7px 10px; border: none; background: transparent;
	cursor: pointer; font-size: 12.5px; font-weight: 700; border-radius: 6px;
	color: #475569; transition: background 0.12s, color 0.12s;
}
.hd-form .hd-pill:hover { background: #e2e8f0; color: #1e293b; }
.hd-form .hd-pill.active { background: #1e3a8a; color: #fff; }
.hd-form .hd-status {
	font-size: 12px; padding: 8px 12px; border-radius: 8px; margin-top: 8px;
}
.hd-form .hd-status.error { background: #fee2e2; color: #991b1b; }
.hd-form .hd-status.success { background: #dcfce7; color: #047857; }

/* — Bouton primaire de drawer — */
.hd-btn {
	padding: 9px 18px; border: none; border-radius: 8px;
	font-size: 13px; font-weight: 700; cursor: pointer;
}
.hd-btn-primary { background: linear-gradient(135deg, #1e3a8a, #3b82f6); color: #fff; }
.hd-btn-primary:hover { filter: brightness(1.05); }
.hd-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }
.hd-btn-secondary { background: #fff; border: 1.5px solid #e2e8f0; color: #475569; }
.hd-btn-secondary:hover { background: #f1f5f9; }
.hd-btn-danger { background: #fff; border: 1.5px solid #fca5a5; color: #c0392b; }
.hd-btn-danger:hover { background: #fee2e2; }
.hd-btn-success { background: #047857; color: #fff; border: none; }

/* ─── Drawer fiche client (partagé /clients + calendrier) ──────────── */
.hd-client-form { display: flex; flex-direction: column; gap: 10px; }
.hd-client-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hd-client-form-row.three { grid-template-columns: 1fr 2fr 1.4fr; }
@media (max-width: 600px) { .hd-client-form-row, .hd-client-form-row.three { grid-template-columns: 1fr; } }
.hd-client-form label { font-size: 11px; color: #64748b; font-weight: 600; display: block; margin-bottom: 3px; }
.hd-client-form input { width: 100%; padding: 9px 11px; border: 1.5px solid #e2e8f0; border-radius: 8px; font-size: 13px; }
.hd-client-form input:focus { border-color: #2563eb; outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,0.12); }
.hd-client-form textarea {
	width: 100%; padding: 9px 11px; border: 1.5px solid #e2e8f0; border-radius: 8px;
	font-size: 13px; font-family: inherit; resize: vertical; min-height: 60px;
}
.hd-client-form textarea:focus { border-color: #2563eb; outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,0.12); }
/* Bloc dépliable "Informations" en haut du drawer client */
.hd-client-info-block { border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; margin-bottom: 14px; }
.hd-client-info-summary {
	display: flex; align-items: center; gap: 8px; padding: 11px 14px;
	cursor: pointer; user-select: none; list-style: none;
	font-size: 12.5px; font-weight: 700; color: #1e293b;
	text-transform: uppercase; letter-spacing: 0.04em; border-radius: 10px;
}
.hd-client-info-summary::-webkit-details-marker { display: none; }
.hd-client-info-summary:hover { background: #f8fafc; }
.hd-client-info-chev {
	display: inline-block; transition: transform 0.18s ease;
	color: #64748b; font-size: 11px; line-height: 1;
}
.hd-client-info-block[open] > .hd-client-info-summary .hd-client-info-chev { transform: rotate(90deg); }
.hd-client-info-block[open] > .hd-client-info-summary {
	border-bottom: 1px solid #e2e8f0; border-radius: 10px 10px 0 0;
}
.hd-client-info-block > .hd-client-form { padding: 14px; }
.hd-client-full-link {
	display: block; margin-top: 14px; padding: 10px 14px;
	background: #f1f5f9; border: 1.5px dashed #cbd5e1; border-radius: 8px;
	color: #1e40af; font-size: 12.5px; font-weight: 700; text-align: center;
	text-decoration: none; transition: all 0.15s;
}
.hd-client-full-link:hover { background: #eff6ff; border-color: #2563eb; color: #1e3a8a; }
.hd-client-full-note {
	margin-top: 6px; padding: 0 4px; font-size: 10.5px; color: #94a3b8; text-align: center;
}
.hd-client-full-note a { color: #64748b; text-decoration: underline; font-weight: 600; }
.hd-client-full-note a:hover { color: #2563eb; }
/* Sous-titres dans un bloc (ex: MRZ, Photos, Métadonnées OCR) */
.hd-client-form .hd-cf-sub {
	font-size: 11px; font-weight: 700; color: #475569; text-transform: uppercase;
	letter-spacing: 0.04em; margin: 14px 0 6px; padding-top: 8px;
	border-top: 1px solid #f1f5f9;
}
.hd-client-form .hd-cf-sub:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.hd-client-form .hd-cf-desc { font-size: 10.5px; color: #94a3b8; margin-top: 3px; line-height: 1.4; }
.hd-client-form .hd-cf-check {
	display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #1e293b;
	cursor: pointer; padding: 6px 0; font-weight: 600;
}
.hd-client-form .hd-cf-check input { width: auto; }
.hd-client-form .hd-cf-photo {
	max-width: 100%; max-height: 140px; border-radius: 8px; border: 1px solid #e2e8f0;
	display: block; margin-bottom: 6px;
}
/* Widget photo : preview cliquable + bouton Upload local + champ URL (fallback) */
.hd-photo-widget { display: flex; flex-direction: column; gap: 6px; }
.hd-photo-widget label {
	font-size: 11px; color: #64748b; font-weight: 600; display: block; margin-bottom: 3px;
}
.hd-photo-preview {
	position: relative; border: 1.5px dashed #cbd5e1; border-radius: 10px;
	background: #f8fafc; min-height: 120px; max-height: 200px;
	display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hd-photo-preview img {
	max-width: 100%; max-height: 200px; display: block; object-fit: contain;
	cursor: zoom-in; transition: transform 0.15s;
}
.hd-photo-preview img:hover { transform: scale(1.02); }
.hd-photo-preview[data-empty="1"] {
	flex-direction: column; gap: 10px; padding: 18px;
}
.hd-photo-empty-txt {
	color: #94a3b8; font-size: 12px; font-weight: 600;
}
.hd-photo-actions {
	position: absolute; bottom: 8px; right: 8px;
	display: flex; gap: 6px;
}
.hd-photo-preview[data-empty="1"] .hd-photo-actions {
	position: static; justify-content: center;
}
.hd-photo-upload-btn, .hd-photo-clear-btn {
	background: rgba(255,255,255,0.95); border: 1px solid #cbd5e1; border-radius: 6px;
	padding: 5px 10px; font-size: 11.5px; font-weight: 700; cursor: pointer;
	color: #1e293b; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
	transition: all 0.12s;
}
.hd-photo-upload-btn:hover { border-color: #2563eb; color: #2563eb; background: #fff; }
.hd-photo-clear-btn:hover { border-color: #dc2626; color: #dc2626; background: #fff; }
.hd-photo-ocr-btn {
	background: linear-gradient(135deg, #7c3aed, #a78bfa) !important;
	color: #fff !important; border: 0 !important; padding: 5px 10px;
	border-radius: 6px; font-size: 11.5px; font-weight: 700; cursor: pointer;
	box-shadow: 0 2px 6px rgba(124,58,237,0.35);
	transition: filter 0.12s, transform 0.05s;
}
.hd-photo-ocr-btn:hover:not(:disabled) { filter: brightness(1.1); }
.hd-photo-ocr-btn:active:not(:disabled) { transform: translateY(1px); }
.hd-photo-ocr-btn:disabled { opacity: 0.7; cursor: wait; }
.hd-photo-ocr-debug-btn:hover {
	border-color: #7c3aed !important;
	color: #7c3aed;
	transform: scale(1.05);
}

/* Panneau debug OCR */
.ocr-dbg-body { padding: 4px; }
.ocr-dbg-section-title {
	font-size: 12px; font-weight: 700; color: #1e293b; text-transform: uppercase;
	letter-spacing: 0.04em; margin: 16px 0 8px; padding-bottom: 4px;
	border-bottom: 2px solid #e2e8f0;
}
.ocr-dbg-section-title:first-child { margin-top: 0; }
.ocr-dbg-fields {
	background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px;
	padding: 10px; max-height: 240px; overflow-y: auto;
}
.ocr-dbg-field {
	display: flex; gap: 10px; padding: 6px 0;
	border-bottom: 1px dashed #e2e8f0; font-size: 12px;
}
.ocr-dbg-field:last-child { border-bottom: 0; }
.ocr-dbg-key {
	flex: 0 0 35%; font-family: monospace; color: #64748b; font-weight: 600;
}
.ocr-dbg-val {
	flex: 1; color: #1e293b; font-weight: 600; word-break: break-word;
}
.ocr-dbg-empty {
	padding: 14px; text-align: center; color: #94a3b8; font-size: 12px;
}
.ocr-dbg-raw {
	background: #1e293b; color: #e2e8f0; padding: 12px; border-radius: 8px;
	font-family: "SF Mono", "Consolas", monospace; font-size: 11px;
	max-height: 280px; overflow: auto; white-space: pre-wrap; word-break: break-all;
	line-height: 1.5;
}
.ocr-dbg-hint {
	margin-top: 14px; padding: 10px 12px;
	background: #fef3c7; border-left: 3px solid #f59e0b; border-radius: 6px;
	font-size: 11.5px; color: #92400e; line-height: 1.5;
}
/* Liste des champs modifiés (ancien → nouveau) */
.ocr-dbg-modlist {
	background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px;
	padding: 10px; max-height: 280px; overflow-y: auto;
}
.ocr-dbg-mod {
	background: #fff; border: 1px solid #d1fae5; border-radius: 6px;
	padding: 8px 10px; margin-bottom: 6px;
}
.ocr-dbg-mod:last-child { margin-bottom: 0; }
.ocr-dbg-mod-head {
	display: flex; justify-content: space-between; align-items: center;
	margin-bottom: 6px;
}
.ocr-dbg-mod-label {
	font-size: 12px; font-weight: 700; color: #065f46;
}
.ocr-dbg-mod-section {
	font-size: 10px; font-weight: 700; color: #047857;
	background: #d1fae5; padding: 2px 8px; border-radius: 99px;
	text-transform: uppercase; letter-spacing: 0.04em;
}
.ocr-dbg-mod-body {
	display: flex; align-items: center; gap: 8px; font-size: 11.5px;
}
.ocr-dbg-mod-old {
	flex: 1; min-width: 0; padding: 5px 9px;
	background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 5px;
	color: #94a3b8; text-decoration: line-through;
	word-break: break-word;
}
.ocr-dbg-mod-arrow {
	flex: 0 0 auto; color: #047857; font-weight: 800; font-size: 14px;
}
.ocr-dbg-mod-new {
	flex: 1; min-width: 0; padding: 5px 9px;
	background: #d1fae5; border: 1px solid #6ee7b7; border-radius: 5px;
	color: #065f46; font-weight: 700;
	word-break: break-word;
}
.ocr-dbg-empty-val {
	color: #cbd5e1; font-style: italic;
}

/* ─── Modal indépendant de review OCR (par-dessus le drawer parent) ── */
.ocr-rv-modal {
	position: fixed; inset: 0; z-index: 12000;
	background: rgba(15, 23, 42, 0.6);
	display: flex; align-items: center; justify-content: center;
	padding: 20px;
	opacity: 0; transition: opacity 0.18s ease;
	backdrop-filter: blur(2px);
}
.ocr-rv-modal.open { opacity: 1; }
.ocr-rv-modal-card {
	background: #fff; border-radius: 14px;
	width: min(680px, 100%); max-height: 90vh;
	display: flex; flex-direction: column;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.4);
	overflow: hidden;
	transform: translateY(8px); transition: transform 0.22s ease;
}
.ocr-rv-modal.open .ocr-rv-modal-card { transform: translateY(0); }
.ocr-rv-modal-head {
	display: flex; justify-content: space-between; align-items: flex-start;
	padding: 16px 20px; border-bottom: 1px solid #e2e8f0;
	background: linear-gradient(135deg, #1e3a8a, #3b82f6); color: #fff;
}
.ocr-rv-modal-title { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.ocr-rv-modal-sub { margin-top: 3px; font-size: 12px; color: rgba(255,255,255,0.86); font-weight: 600; }
.ocr-rv-modal-close {
	background: rgba(255,255,255,0.2); border: 0; color: #fff;
	width: 32px; height: 32px; border-radius: 50%;
	font-size: 22px; line-height: 1; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	transition: background 0.12s, transform 0.05s;
}
.ocr-rv-modal-close:hover { background: rgba(255,255,255,0.32); }
.ocr-rv-modal-close:active { transform: scale(0.95); }
.ocr-rv-modal-body {
	flex: 1; min-height: 0; overflow-y: auto;
	padding: 14px 18px; display: flex; flex-direction: column; gap: 12px;
}
.ocr-rv-modal-foot {
	display: flex; gap: 8px; justify-content: flex-end;
	padding: 12px 18px; border-top: 1px solid #e2e8f0; background: #f8fafc;
}

/* ─── Panneau de review OCR : confirmer champ par champ ───────────── */
.ocr-rv-body { display: flex; flex-direction: column; gap: 12px; }
.ocr-rv-toolbar {
	display: flex; align-items: center; gap: 8px;
	padding: 10px 12px; background: #f8fafc; border: 1px solid #e2e8f0;
	border-radius: 8px;
}
.ocr-rv-btn-small {
	background: #fff; border: 1px solid #cbd5e1; border-radius: 6px;
	padding: 5px 10px; font-size: 11.5px; font-weight: 600; color: #475569;
	cursor: pointer; transition: all 0.12s;
}
.ocr-rv-btn-small:hover { border-color: #2563eb; color: #2563eb; }
.ocr-rv-counter {
	margin-left: auto; font-size: 11.5px; font-weight: 700; color: #1e293b;
}
.ocr-rv-hint {
	padding: 10px 12px; background: #eff6ff; border-left: 3px solid #2563eb;
	border-radius: 6px; font-size: 11.5px; color: #1e40af; line-height: 1.5;
}
.ocr-rv-section {
	background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
	overflow: hidden;
}
.ocr-rv-section-title {
	background: linear-gradient(135deg, #1e3a8a, #3b82f6); color: #fff;
	padding: 8px 14px; font-size: 11.5px; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.04em;
	display: flex; align-items: center; gap: 8px;
}
.ocr-rv-section-count {
	background: rgba(255,255,255,0.22); padding: 1px 8px; border-radius: 99px;
	font-size: 10.5px;
}
.ocr-rv-row {
	display: flex; align-items: flex-start; gap: 10px;
	padding: 10px 14px; cursor: pointer;
	border-bottom: 1px solid #f1f5f9;
	transition: background 0.12s;
}
.ocr-rv-row:last-child { border-bottom: 0; }
.ocr-rv-row:hover { background: #f8fafc; }
.ocr-rv-check {
	margin-top: 3px; width: 18px; height: 18px;
	accent-color: #047857; cursor: pointer; flex: 0 0 auto;
}
.ocr-rv-main { flex: 1; min-width: 0; }
.ocr-rv-label {
	font-size: 12.5px; font-weight: 700; color: #1e293b; margin-bottom: 5px;
	display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.ocr-rv-badge-bg {
	display: inline-block;
	background: #ede9fe; color: #6d28d9; border: 1px solid #c4b5fd;
	padding: 1px 7px; border-radius: 99px;
	font-size: 9.5px; font-weight: 700; text-transform: uppercase;
	letter-spacing: 0.04em; cursor: help;
}
.ocr-rv-row.out-of-drawer {
	background: linear-gradient(90deg, transparent, #faf5ff 80%);
}
.ocr-rv-vals {
	display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
	font-size: 11.5px;
}
.ocr-rv-old {
	padding: 4px 8px; background: #f1f5f9; border: 1px solid #e2e8f0;
	border-radius: 5px; color: #64748b; text-decoration: line-through;
	max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ocr-rv-old.empty {
	color: #cbd5e1; font-style: italic; text-decoration: none;
}
.ocr-rv-arrow {
	color: #047857; font-weight: 800; font-size: 14px; flex: 0 0 auto;
}
.ocr-rv-new {
	padding: 4px 8px; background: #d1fae5; border: 1px solid #6ee7b7;
	border-radius: 5px; color: #065f46; font-weight: 700;
	flex: 1; min-width: 0; word-break: break-word;
}
/* Row décochée : grise visuellement */
.ocr-rv-row:has(.ocr-rv-check:not(:checked)) { opacity: 0.5; }
.ocr-rv-row:has(.ocr-rv-check:not(:checked)) .ocr-rv-new {
	background: #f1f5f9; border-color: #cbd5e1; color: #94a3b8;
}
.hd-photo-url {
	width: 100%; padding: 7px 10px; border: 1px solid #e2e8f0; border-radius: 6px;
	font-size: 11.5px; font-family: monospace; color: #64748b; background: #f8fafc;
}
.hd-photo-url:focus { border-color: #2563eb; outline: none; color: #1e293b; background: #fff; }

/* MRZ parser : bouton + help text */
.hd-mrz-help {
	background: #eff6ff; border-left: 3px solid #2563eb; padding: 8px 12px;
	border-radius: 6px; font-size: 11.5px; color: #1e40af; line-height: 1.5;
	margin-bottom: 6px;
}
.hd-mrz-parse-btn {
	width: 100%; margin-top: 8px; padding: 10px;
	background: linear-gradient(135deg, #1e40af, #2563eb); color: #fff;
	border: 0; border-radius: 8px; font-weight: 700; font-size: 12.5px;
	cursor: pointer; transition: filter 0.12s, transform 0.05s;
}
.hd-mrz-parse-btn:hover:not(:disabled) { filter: brightness(1.08); }
.hd-mrz-parse-btn:active:not(:disabled) { transform: translateY(1px); }
.hd-mrz-parse-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Panneau central "Fiche de police" — un seul sélecteur + bouton pour tous séjours */
.hd-fiche-panel {
	border: 1px solid #e2e8f0; border-radius: 10px; background: #fff;
	margin: 14px 0; overflow: hidden;
}
.hd-fiche-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 10px 14px; background: linear-gradient(135deg, #1e293b, #334155); color: #fff;
}
.hd-fiche-title { font-size: 13px; font-weight: 800; letter-spacing: 0.02em; }
.hd-fiche-legal {
	font-size: 10.5px; font-weight: 600; color: rgba(255,255,255,0.85);
	background: rgba(255,255,255,0.12); padding: 2px 8px; border-radius: 99px;
}
.hd-fiche-body { padding: 12px 14px; }
.hd-fiche-body label {
	display: block; font-size: 11px; color: #64748b; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 5px;
}
.hd-fiche-select {
	width: 100%; padding: 9px 11px; border: 1.5px solid #e2e8f0; border-radius: 8px;
	font-size: 12.5px; color: #1e293b; background: #fff; margin-bottom: 10px;
	font-family: inherit;
}
.hd-fiche-select:focus {
	border-color: #2563eb; outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.hd-fiche-btn {
	width: 100%; padding: 11px;
	background: linear-gradient(135deg, #1e3a8a, #3b82f6); color: #fff;
	border: 0; border-radius: 8px; font-weight: 700; font-size: 13px;
	cursor: pointer; transition: filter 0.12s, transform 0.05s;
}
.hd-fiche-btn:hover:not(:disabled) { filter: brightness(1.08); }
.hd-fiche-btn:active:not(:disabled) { transform: translateY(1px); }
.hd-fiche-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.hd-fiche-hint {
	margin-top: 8px; font-size: 10.5px; color: #94a3b8; line-height: 1.4;
}

/* Lightbox plein-écran pour agrandir les photos (réutilisable partout via
   HOTEL.openImageLightbox(url)). Click sur overlay ou ESC pour fermer. */
.hd-lightbox {
	position: fixed; inset: 0; z-index: 10000;
	background: rgba(0, 0, 0, 0.92);
	display: flex; align-items: center; justify-content: center;
	padding: 40px; cursor: zoom-out;
	opacity: 0; transition: opacity 0.18s ease;
	backdrop-filter: blur(4px);
}
.hd-lightbox.open { opacity: 1; }
.hd-lightbox-img {
	max-width: 100%; max-height: 100%;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0,0,0,0.5);
	cursor: default;
	user-select: none;
}
.hd-lightbox-close {
	position: absolute; top: 18px; right: 22px;
	width: 44px; height: 44px; border-radius: 50%;
	background: rgba(255,255,255,0.95); border: 0;
	color: #1e293b; font-size: 28px; font-weight: 300; line-height: 1;
	cursor: pointer; display: flex; align-items: center; justify-content: center;
	box-shadow: 0 4px 12px rgba(0,0,0,0.3);
	transition: transform 0.12s, background 0.12s;
}
.hd-lightbox-close:hover { background: #fff; transform: scale(1.08); }
/* Liste items (relations, événements) */
.hd-cf-list-item {
	display: flex; align-items: center; gap: 10px;
	padding: 10px 12px; background: #f8fafc; border: 1px solid #e2e8f0;
	border-radius: 8px; margin-bottom: 6px;
}
.hd-cf-list-item:hover { border-color: #94a3b8; background: #fff; }
.hd-cf-li-main { flex: 1; min-width: 0; }
.hd-cf-li-title { font-size: 13px; font-weight: 700; color: #1e293b; }
.hd-cf-li-sub { font-size: 11.5px; color: #64748b; margin-top: 2px; }
.hd-cf-li-date { font-size: 11.5px; color: #475569; font-weight: 600; white-space: nowrap; }
.hd-cf-li-actions { display: flex; gap: 4px; }
.hd-cf-li-edit, .hd-cf-li-del {
	width: 28px; height: 28px; border: 1px solid #e2e8f0; border-radius: 6px;
	background: #fff; cursor: pointer; font-size: 13px; display: flex;
	align-items: center; justify-content: center; color: #475569;
}
.hd-cf-li-edit:hover { border-color: #2563eb; color: #2563eb; }
.hd-cf-li-del:hover { border-color: #dc2626; color: #dc2626; }
.hd-cf-empty {
	padding: 14px; text-align: center; color: #94a3b8; font-size: 12px;
	background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 8px;
}
.hd-cf-add-btn {
	width: 100%; padding: 10px; margin-top: 8px;
	background: #fff; border: 1.5px dashed #2563eb; border-radius: 8px;
	color: #2563eb; font-weight: 700; font-size: 12.5px; cursor: pointer;
}
.hd-cf-add-btn:hover { background: #eff6ff; }
/* Mini-form interne aux modals CRUD relation/event */
.hd-cf-form { display: flex; flex-direction: column; gap: 12px; }
.hd-cf-form select, .hd-cf-form input, .hd-cf-form textarea {
	width: 100%; padding: 9px 11px; border: 1.5px solid #e2e8f0; border-radius: 8px;
	font-size: 13px;
}
.hd-cf-form label { font-size: 11px; color: #64748b; font-weight: 600; display: block; margin-bottom: 3px; }

/* — Detail view (résa existante) — */
.hd-detail-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13px; border-bottom: 1px dashed #e2e8f0; gap: 10px; }
.hd-detail-row:last-child { border-bottom: none; }
.hd-detail-row .l { color: #64748b; font-weight: 600; }
.hd-detail-row .v { color: #1e293b; font-weight: 700; text-align: right; word-break: break-word; }
.hd-detail-block { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; }
.hd-detail-block-title { font-size: 11px; font-weight: 800; color: #1e3a8a; text-transform: uppercase; letter-spacing: 0.05em; padding-bottom: 6px; border-bottom: 1px solid #f1f5f9; margin-bottom: 8px; }
.hd-detail-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.hd-detail-status {
	display: inline-block; padding: 3px 10px; border-radius: 999px;
	font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}

/* — Tabs dans le drawer (scrollables horizontalement) — */
.hd-tabs-wrap {
	position: relative; flex-shrink: 0; background: #fff;
	border-bottom: 1px solid #e2e8f0;
}
.hd-tabs-wrap::before,
.hd-tabs-wrap::after {
	content: ""; position: absolute; top: 0; bottom: 1px; width: 24px;
	pointer-events: none; z-index: 2; transition: opacity 0.15s;
}
.hd-tabs-wrap::before { left: 0; background: linear-gradient(90deg, #fff, transparent); opacity: 0; }
.hd-tabs-wrap::after  { right: 0; background: linear-gradient(-90deg, #fff, transparent); opacity: 1; }
.hd-tabs-wrap.scroll-start::before { opacity: 1; }
.hd-tabs-wrap.scroll-end::after { opacity: 0; }
.hd-tabs-wrap .hd-tabs-arrow {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 26px; height: 26px; border-radius: 50%;
	background: #fff; border: 1px solid #e2e8f0;
	display: none; cursor: pointer; z-index: 3;
	font-size: 14px; line-height: 1;
	box-shadow: 0 2px 6px rgba(15,23,42,0.08);
}
.hd-tabs-wrap .hd-tabs-arrow.left  { left: 4px; }
.hd-tabs-wrap .hd-tabs-arrow.right { right: 4px; }
.hd-tabs-wrap .hd-tabs-arrow:hover { background: #f1f5f9; }
.hd-tabs-wrap.has-overflow .hd-tabs-arrow { display: grid; place-items: center; }
.hd-tabs-wrap.has-overflow.scroll-start .hd-tabs-arrow.left { display: none; }
.hd-tabs-wrap.has-overflow.scroll-end .hd-tabs-arrow.right { display: none; }

.hd-tabs {
	display: flex; gap: 0; overflow-x: auto;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}
.hd-tabs::-webkit-scrollbar { height: 4px; }
.hd-tabs::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 2px; }
.hd-tabs::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
.hd-tab {
	flex: 0 0 auto;  /* taille naturelle du contenu, pas de shrink */
	padding: 12px 16px; border: none; background: transparent;
	cursor: pointer; font-size: 13px; font-weight: 700; color: #64748b;
	border-bottom: 3px solid transparent;
	transition: color 0.12s, border-color 0.12s, background 0.12s;
	white-space: nowrap;
}
.hd-tab:hover { color: #1e293b; background: #f8fafc; }
.hd-tab.active { color: #1e3a8a; border-bottom-color: #1e3a8a; }
.hd-tab-panel { display: none; }
.hd-tab-panel.active { display: block; }

/* Header status badge sous le titre */
.hd-status-strip {
	display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
	padding: 3px 10px; border-radius: 999px;
	font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
}

/* — Cards génériques (info / charge / sharer / remark / audit) — */
.hd-info-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(15,23,42,0.04); }
.hd-info-card-title { font-size: 14px; font-weight: 800; color: #0f172a; padding-bottom: 8px; margin-bottom: 10px; border-bottom: 1px solid #f1f5f9; }
.hd-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.hd-info-grid.col1 { grid-template-columns: 1fr; }
.hd-info-grid > div { min-width: 0; }
.hd-info-label { font-size: 11.5px; color: #64748b; font-weight: 600; display: flex; align-items: center; gap: 5px; margin-bottom: 2px; }
.hd-info-label .ico { font-size: 13px; opacity: 0.7; }
.hd-info-value { font-size: 14px; font-weight: 700; color: #0f172a; word-break: break-word; }
.hd-info-value.muted { color: #94a3b8; font-weight: 500; }

/* Card de charge (un par nuit) */
.hd-charge-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.hd-charge-card .hd-charge-header { font-size: 14px; font-weight: 800; padding-bottom: 8px; margin-bottom: 10px; border-bottom: 1px solid #f1f5f9; }

/* Card folio entry */
.hd-folio-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.hd-folio-card .ff-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.hd-folio-card .ff-title { font-size: 14px; font-weight: 800; color: #0f172a; }
.hd-folio-card .ff-ref { font-size: 12px; color: #64748b; }
.hd-folio-card .ff-ref strong { color: #0f172a; }
.hd-folio-card .ff-meta { display: flex; gap: 12px; font-size: 12px; color: #64748b; margin-top: 6px; flex-wrap: wrap; align-items: center; }
.hd-folio-card .ff-meta .date-with-icon { display: inline-flex; align-items: center; gap: 4px; }
.hd-folio-card .ff-desc { font-size: 12.5px; color: #475569; margin: 6px 0; }
.hd-folio-card .ff-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; margin-top: 8px; border-top: 1px solid #f1f5f9; }
.hd-folio-card .ff-amount { font-size: 15px; font-weight: 800; color: #0f172a; }
.hd-folio-card .ff-amount.credit { color: #047857; }
.hd-folio-card .ff-amount.discount { color: #c0392b; }
.hd-folio-card .ff-user { font-size: 11.5px; color: #64748b; display: flex; align-items: center; gap: 4px; }

/* Bouton "Add" en haut d'un onglet (Remark, Sharer) */
.hd-add-btn {
	display: flex; align-items: center; justify-content: space-between;
	width: 100%; padding: 14px 18px;
	background: #fff; border: 1px dashed #cbd5e1; border-radius: 12px;
	font-size: 14px; font-weight: 700; color: #1e293b; cursor: pointer;
	margin-bottom: 12px; transition: border-color 0.12s, background 0.12s;
}
.hd-add-btn:hover { border-color: #1e3a8a; border-style: solid; background: #eff6ff; }
.hd-add-btn .plus { font-size: 22px; color: #1e3a8a; font-weight: 400; line-height: 1; }

/* Card Remark */
.hd-remark-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.hd-remark-card .rk-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.hd-remark-card .rk-type { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; background: #f1f5f9; color: #475569; }
.hd-remark-card .rk-type.vip { background: #fef3c7; color: #b45309; }
.hd-remark-card .rk-type.allergie { background: #fee2e2; color: #991b1b; }
.hd-remark-card .rk-type.demande { background: #dbeafe; color: #1e40af; }
.hd-remark-card .rk-type.reclamation { background: #fee2e2; color: #c0392b; }
.hd-remark-card .rk-type.note { background: #ede9fe; color: #6d28d9; }
.hd-remark-card .rk-text { font-size: 13.5px; color: #1e293b; margin: 6px 0; line-height: 1.45; word-break: break-word; }
.hd-remark-card .rk-meta { font-size: 11px; color: #94a3b8; display: flex; justify-content: space-between; gap: 10px; padding-top: 6px; border-top: 1px solid #f1f5f9; }
.hd-remark-card .rk-del { background: transparent; border: none; color: #c0392b; cursor: pointer; padding: 2px 6px; border-radius: 4px; font-size: 12px; }
.hd-remark-card .rk-del:hover { background: #fee2e2; }

/* Card Sharer (expandable) */
.hd-sharer-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.hd-sharer-card .sh-head { display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.hd-sharer-card .sh-name { font-size: 15px; font-weight: 800; color: #0f172a; }
.hd-sharer-card .sh-sub { font-size: 12px; color: #64748b; margin-top: 2px; }
.hd-sharer-card .sh-toggle { font-size: 18px; color: #94a3b8; transition: transform 0.15s; }
.hd-sharer-card.open .sh-toggle { transform: rotate(180deg); }
.hd-sharer-card .sh-body { display: none; padding-top: 12px; margin-top: 10px; border-top: 1px solid #f1f5f9; }
.hd-sharer-card.open .sh-body { display: block; }

/* Card Audit */
.hd-audit-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.hd-audit-card .au-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid #f1f5f9; }
.hd-audit-card .au-title { font-size: 14px; font-weight: 800; color: #0f172a; }
.hd-audit-card .au-icon { font-size: 16px; color: #94a3b8; }
.hd-audit-card .au-desc { font-size: 12.5px; color: #475569; margin-bottom: 8px; line-height: 1.5; word-break: break-word; }
.hd-audit-card .au-desc strong { color: #0f172a; }
.hd-audit-card .au-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 11.5px; color: #64748b; }
.hd-audit-card .au-foot > div { display: flex; align-items: center; gap: 5px; min-width: 0; }
.hd-audit-card .au-foot strong { color: #1e293b; font-weight: 700; }

/* Modal → DRAWER cote droite (harmonisation UX avec le reste de l app).
   Toutes les anciennes modales centrees rendues comme un panneau droit
   plein hauteur. Clic sur overlay = ferme le drawer (preserve UX modale). */
.hd-modal-bg {
	position: fixed; inset: 0;
	background: rgba(15,23,42,0.45);
	z-index: 110;
	display: flex; align-items: stretch; justify-content: flex-end;
	opacity: 0; transition: opacity 0.18s;
}
.hd-modal-bg.open { opacity: 1; }
.hd-modal {
	background: #fff;
	width: 100%; max-width: 560px;
	height: 100vh; max-height: 100vh;
	border-radius: 0;
	display: flex; flex-direction: column;
	box-shadow: -8px 0 32px rgba(15,23,42,0.25);
	transform: translateX(20px);
	transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.hd-modal-bg.open .hd-modal { transform: translateX(0); }
.hd-modal-head {
	padding: 18px 22px;
	border-bottom: 1px solid #e2e8f0;
	background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
	color: #fff;
	flex-shrink: 0;
}
.hd-modal-head h3 { margin: 0; font-size: 17px; font-weight: 800; color: #fff; }
.hd-modal-body { padding: 22px; overflow-y: auto; flex: 1; background: #f8fafc; }
.hd-modal-foot {
	padding: 14px 22px;
	border-top: 1px solid #e2e8f0;
	display: flex; justify-content: flex-end; gap: 8px;
	background: #fff;
	flex-shrink: 0;
}
@media (max-width: 600px) {
	.hd-modal { max-width: 100%; }
}

/* — Tableau des charges (legacy, garde pour compat) — */
.hd-charges-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; font-size: 12px; }
.hd-charges-table th, .hd-charges-table td { padding: 7px 10px; text-align: left; border-bottom: 1px solid #f1f5f9; }
.hd-charges-table th { background: #f8fafc; font-size: 10px; color: #64748b; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.hd-charges-table td.r, .hd-charges-table th.r { text-align: right; }
.hd-charges-table tr:last-child td { border-bottom: none; }
.hd-charges-table tr.voided td { color: #94a3b8; text-decoration: line-through; }
.hd-charges-table tr.discount td { color: #c0392b; }
.hd-charges-table tr.payment td  { color: #047857; background: #f0fdf4; }

/* — Actions menu (clic barre) — */
.hd-actions-list { background: #fff; border-radius: 10px; border: 1px solid #e2e8f0; overflow: hidden; }
.hd-action-item {
	display: flex; align-items: center; gap: 12px; padding: 13px 16px;
	border-bottom: 1px solid #f1f5f9; cursor: pointer; background: #fff;
	transition: background 0.1s;
	font-size: 14px; color: #1e293b; font-weight: 600;
	width: 100%; border-left: none; border-right: none; border-top: none;
	text-align: left;
}
.hd-action-item:last-child { border-bottom: none; }
.hd-action-item:hover { background: #f8fafc; }
.hd-action-item:disabled { opacity: 0.45; cursor: not-allowed; }
.hd-action-item.danger { color: #c0392b; }
.hd-action-item.danger:hover { background: #fee2e2; }
.hd-action-item .ai-icon {
	width: 36px; height: 36px; flex-shrink: 0; border-radius: 8px;
	display: grid; place-items: center; font-size: 16px;
	background: #f1f5f9; color: #475569;
}
.hd-action-item.danger .ai-icon { background: #fee2e2; color: #c0392b; }
.hd-action-item .ai-label { flex: 1; }
.hd-action-item .ai-sub { font-size: 11px; color: #94a3b8; font-weight: 500; margin-top: 2px; }

@media (max-width: 600px) {
	.hd-drawer { max-width: 100%; }
	.hd-form .hd-row { grid-template-columns: 1fr; }
}

/* Audit Drawer (HOTEL.openAuditDrawer) */
.audit-drawer-overlay {
	position: fixed; inset: 0; background: rgba(15, 23, 42, 0.4);
	opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 90;
}
.audit-drawer-overlay.open { opacity: 1; pointer-events: auto; }
.audit-drawer {
	position: fixed; top: 0; right: 0; bottom: 0;
	width: 100%; max-width: 480px; background: #fff;
	box-shadow: -4px 0 20px rgba(0,0,0,0.15);
	transform: translateX(100%); transition: transform 0.2s ease-out;
	z-index: 100; display: flex; flex-direction: column;
}
.audit-drawer.open { transform: translateX(0); }
.audit-drawer .ad-head {
	display: flex; justify-content: space-between; align-items: flex-start;
	padding: 14px 16px; background: #1e3a8a; color: #fff;
}
.audit-drawer .ad-title { font-size: 15px; font-weight: 700; }
.audit-drawer .ad-sub { font-size: 12px; opacity: 0.85; margin-top: 2px; }
.audit-drawer .ad-close {
	background: transparent; border: none; color: #fff;
	font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px;
}
.audit-drawer .ad-body { flex: 1; overflow-y: auto; padding: 12px 16px; }
.audit-drawer .ad-loading,
.audit-drawer .ad-empty,
.audit-drawer .ad-error { padding: 20px; text-align: center; font-size: 13px; }
.audit-drawer .ad-empty { color: #94a3b8; }
.audit-drawer .ad-error { color: #991b1b; background: #fee2e2; border-radius: 8px; }
.audit-drawer .ad-count { font-size: 11px; color: #64748b; margin-bottom: 8px; text-transform: uppercase; font-weight: 700; letter-spacing: 0.04em; }
.audit-drawer .ad-list { list-style: none; padding: 0; margin: 0; }
.audit-drawer .ad-entry {
	border-left: 3px solid #1e3a8a; background: #f8fafc;
	padding: 10px 12px; margin-bottom: 8px; border-radius: 0 8px 8px 0;
}
.audit-drawer .ad-entry-head {
	display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
}
.audit-drawer .ad-op { font-weight: 700; font-size: 13px; color: #1e293b; }
.audit-drawer .ad-when { font-size: 11px; color: #94a3b8; font-variant-numeric: tabular-nums; }
.audit-drawer .ad-actor { font-size: 11px; color: #64748b; margin-top: 2px; }
.audit-drawer .ad-role { padding: 1px 5px; background: #dbeafe; color: #1e40af; border-radius: 3px; font-weight: 600; font-size: 10px; }
.audit-drawer .ad-diff { font-size: 12px; margin-top: 6px; word-break: break-word; }
.audit-drawer .ad-field { font-weight: 700; color: #475569; }
.audit-drawer .ad-old { color: #991b1b; text-decoration: line-through; background: #fee2e2; padding: 0 4px; border-radius: 3px; }
.audit-drawer .ad-new { color: #047857; background: #dcfce7; padding: 0 4px; border-radius: 3px; }
.audit-drawer .ad-meta { font-size: 12px; color: #64748b; margin-top: 4px; font-family: ui-monospace, "SF Mono", Consolas, monospace; word-break: break-word; }
.audit-drawer .ad-amount { font-size: 12px; font-weight: 700; color: #d97706; margin-top: 4px; }
.audit-drawer .ad-reason { font-size: 12px; color: #475569; margin-top: 4px; font-style: italic; }

/* KPI cards dashboard */
.kpi-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 14px 16px;
}
.kpi-card .kpi-label { font-size: 11px; color: #64748b; font-weight: 600; text-transform: uppercase; }
.kpi-card .kpi-value { font-size: 22px; font-weight: 700; color: #1e293b; margin-top: 4px; }
.kpi-card .kpi-trend { font-size: 11px; margin-top: 4px; }
.kpi-card .kpi-trend.up   { color: var(--hotel-success); }
.kpi-card .kpi-trend.down { color: var(--hotel-danger); }

/* ─── Action modals (Amend Stay, Room Move, Cancel, Void, etc.) ─── */
.hd-modal-head { display: flex; align-items: center; justify-content: space-between; }
.hd-modal-close {
	background: rgba(255,255,255,0.15); border: none; font-size: 22px; line-height: 1;
	color: #fff; cursor: pointer; padding: 4px 10px; border-radius: 6px;
}
.hd-modal-close:hover { background: rgba(255,255,255,0.28); color: #fff; }

/* Read-only info card (rows label · value) */
.hd-ro-card {
	background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
	padding: 4px 14px; margin-bottom: 14px;
}
.hd-ro-row {
	display: flex; align-items: center; justify-content: space-between;
	padding: 14px 0; border-bottom: 1px solid #f1f5f9;
}
.hd-ro-row:last-child { border-bottom: none; }
.hd-ro-label { color: #475569; font-size: 14px; }
.hd-ro-value { color: #0f172a; font-size: 14px; font-weight: 700; text-align: right; }

/* Editable input cards (with floating label) */
.hd-input-card {
	background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
	padding: 12px 14px; margin-bottom: 12px;
}
.hd-input-label {
	display: block; font-size: 12px; color: #64748b; margin-bottom: 6px; font-weight: 600;
}
.hd-input-label .req { color: #c0392b; margin-left: 3px; }
.hd-input-card input[type=text],
.hd-input-card input[type=email],
.hd-input-card input[type=tel],
.hd-input-card input[type=number],
.hd-input-card input[type=date],
.hd-input-card select,
.hd-input-card textarea {
	width: 100%; border: none; padding: 4px 0; font-size: 16px; font-weight: 700;
	color: #0f172a; outline: none; background: transparent;
	font-family: inherit;
}
.hd-input-card input:focus, .hd-input-card select:focus, .hd-input-card textarea:focus {
	color: #1e3a8a;
}
.hd-input-card textarea { font-weight: 500; resize: vertical; min-height: 50px; }

.hd-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 540px) { .hd-grid-2 { grid-template-columns: 1fr; } }

/* Switch (toggle) card */
.hd-switch-card {
	background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
	padding: 14px 16px; margin-bottom: 12px;
	display: flex; align-items: center; justify-content: space-between;
	font-size: 14px; color: #1f2937;
}
.hd-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.hd-switch input { opacity: 0; width: 0; height: 0; }
.hd-switch-slider {
	position: absolute; cursor: pointer; inset: 0; background: #e2e8f0;
	border-radius: 24px; transition: 0.2s;
}
.hd-switch-slider::before {
	content: ""; position: absolute; height: 18px; width: 18px;
	left: 3px; top: 3px; background: #fff; border-radius: 50%;
	box-shadow: 0 1px 3px rgba(15,23,42,0.18); transition: 0.2s;
}
.hd-switch input:checked + .hd-switch-slider { background: #1e3a8a; }
.hd-switch input:checked + .hd-switch-slider::before { transform: translateX(20px); }

/* Reasons radio list (Stop Room Move, Cancel, Void) */
.hd-reasons-card {
	background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
	padding: 4px 0; margin-bottom: 12px;
}
.hd-reasons-title {
	padding: 12px 16px 6px; font-size: 14px; font-weight: 800; color: #0f172a;
	border-bottom: 1px solid #f1f5f9;
}
.hd-reasons-list { padding: 4px 0; max-height: 260px; overflow-y: auto; }
.hd-reason-row {
	display: flex; align-items: center; justify-content: space-between;
	padding: 12px 16px; cursor: pointer; font-size: 14px; color: #1f2937;
	border-bottom: 1px solid #f8fafc;
}
.hd-reason-row:last-child { border-bottom: none; }
.hd-reason-row:hover { background: #f8fafc; }
.hd-reason-row input[type=radio] { width: 20px; height: 20px; accent-color: #1e3a8a; cursor: pointer; }
.hd-empty-mini { padding: 18px 16px; text-align: center; color: #94a3b8; font-size: 13px; }

.hd-add-reason-btn {
	width: 100%; padding: 14px 16px; margin-bottom: 14px;
	background: #fff; border: 1.5px solid #cbd5e1; border-radius: 12px;
	font-size: 14px; font-weight: 700; color: #0f172a; cursor: pointer;
	display: flex; align-items: center; justify-content: center; gap: 8px;
	transition: all 0.15s;
}
.hd-add-reason-btn:hover { border-color: #1e3a8a; color: #1e3a8a; background: #f8fafc; }

/* Inline radio list (Confirm/Tentative/...) */
.hd-radio-list {
	background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
	padding: 4px 0; margin-bottom: 8px;
}
.hd-radio-row {
	display: flex; align-items: center; gap: 14px;
	padding: 14px 18px; cursor: pointer; font-size: 15px; color: #1f2937;
	border-bottom: 1px solid #f8fafc;
}
.hd-radio-row:last-child { border-bottom: none; }
.hd-radio-row:hover { background: #f8fafc; }
.hd-radio-row input[type=radio] { width: 20px; height: 20px; accent-color: #1e3a8a; cursor: pointer; }

/* Inline radios (Adulte/Enfant, M/F) — affichage horizontal */
.hd-radio-inline { display: flex; gap: 22px; flex-wrap: wrap; padding: 4px 0; }
.hd-radio-inline label {
	display: flex; align-items: center; gap: 6px; cursor: pointer;
	color: #1f2937; font-size: 15px;
}
.hd-radio-inline input[type=radio] { width: 18px; height: 18px; accent-color: #1e3a8a; cursor: pointer; }

/* Edit Guest sections */
.hd-ge-section-title {
	font-size: 15px; font-weight: 800; color: #0f172a;
	margin: 18px 4px 10px; padding-left: 4px;
}
.hd-ge-section-title:first-child { margin-top: 4px; }

/* Edit Guest : nom row (civility + first + last) */
.hd-name-row { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px; align-items: center; }
@media (max-width: 540px) { .hd-name-row { grid-template-columns: 1fr; } }
.hd-name-row select, .hd-name-row input {
	width: 100%; border: none; padding: 4px 0; font-size: 16px; font-weight: 700;
	color: #0f172a; outline: none; background: transparent;
}

/* Print modal sections */
.hd-print-section { margin-bottom: 14px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; }
.hd-print-section-title {
	padding: 12px 16px 6px; font-size: 14px; font-weight: 800; color: #0f172a;
	border-bottom: 1px solid #f1f5f9;
}

/* Boutons text-only style Material (Unassign : CANCEL / OK) */
.hd-btn-text {
	background: transparent; border: none; padding: 8px 14px;
	color: #1e3a8a; font-weight: 700; font-size: 14px;
	letter-spacing: 0.5px; cursor: pointer; border-radius: 6px;
	text-transform: uppercase;
}
.hd-btn-text:hover { background: #eef2ff; }
.hd-btn-text-primary { color: #1e3a8a; }

/* Voucher print preview */
.hd-voucher {
	font-family: Inter, Arial, sans-serif; color: #1f2937;
	background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
	padding: 22px 22px 24px;
}
.hd-voucher .vh-head {
	display: flex; justify-content: space-between; align-items: flex-start;
	border-bottom: 2px solid #1e3a8a; padding-bottom: 12px;
}
.hd-voucher .vh-title { font-weight: 700; font-size: 16px; color: #1e3a8a; }
.hd-voucher .vh-ref { font-size: 12px; color: #475569; margin-top: 4px; }
.hd-voucher .vh-company { text-align: right; }
.hd-voucher .vh-co-name { font-weight: 700; font-size: 13px; }
.hd-voucher .vh-co-meta { font-size: 12px; color: #475569; }
.hd-voucher .vh-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.hd-voucher .vh-table td { padding: 8px 10px; border-bottom: 1px solid #e5e7eb; font-size: 14px; }
.hd-voucher .vh-table td:first-child { color: #6b7280; width: 40%; }

/* Toast — haut-droite, empilable, dismissable */
.hd-toast {
	position: fixed; right: 18px; top: 18px;
	display: flex; align-items: flex-start; gap: 10px;
	background: #0f172a; color: #fff; padding: 12px 14px 12px 14px; border-radius: 10px;
	box-shadow: 0 12px 32px rgba(15,23,42,0.28);
	z-index: 9999; font-size: 14px; font-weight: 600; line-height: 1.35;
	opacity: 0; transform: translateY(-8px) scale(0.98);
	transition: opacity 0.2s ease, transform 0.2s ease;
	max-width: 420px; min-width: 240px;
	border-left: 4px solid rgba(255,255,255,0.45);
}
.hd-toast.show { opacity: 1; transform: translateY(0) scale(1); }
.hd-toast + .hd-toast { top: 86px; }
.hd-toast + .hd-toast + .hd-toast { top: 154px; }
.hd-toast + .hd-toast + .hd-toast + .hd-toast { top: 222px; }
.hd-toast .hd-toast-icon {
	flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
	background: rgba(255,255,255,0.2); display: inline-flex;
	align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}
.hd-toast .hd-toast-msg { flex: 1 1 auto; word-break: break-word; padding-top: 2px; }
.hd-toast .hd-toast-close {
	flex: 0 0 auto; background: transparent; border: 0; color: rgba(255,255,255,0.85);
	cursor: pointer; padding: 0 2px; font-size: 18px; line-height: 1; margin-top: -2px;
}
.hd-toast .hd-toast-close:hover { color: #fff; }
.hd-toast-success { background: #047857; border-left-color: #34d399; }
.hd-toast-error   { background: #b91c1c; border-left-color: #fca5a5; }
.hd-toast-warning { background: #b45309; border-left-color: #fcd34d; }
.hd-toast-info    { background: #1e3a8a; border-left-color: #93c5fd; }

/* ════════════════════════════════════════════════════════════
   Drawer Nouvelle Réservation — refonte 2 colonnes (style SaaS)
   ════════════════════════════════════════════════════════════ */
.hd-drawer.hd-drawer-wide { max-width: 1080px; }
.rf-drawer .hd-body { padding: 0; background: #f8fafc; }
.rf-drawer .hd-head { background: linear-gradient(135deg, #2563eb, #4f46e5); }

.rf-root { position: relative; min-height: 100%; padding-bottom: 12px; }

/* Onglets icônes en haut */
.rf-tabs {
	display: flex; gap: 6px; padding: 12px 18px 0 18px;
	background: #fff; border-bottom: 1px solid #e2e8f0;
	overflow-x: auto;
}
.rf-tab {
	display: flex; align-items: center; gap: 8px;
	padding: 10px 14px; border: none; background: transparent;
	color: #64748b; font-size: 13px; font-weight: 600;
	border-bottom: 2.5px solid transparent;
	cursor: pointer; transition: all 0.15s;
	white-space: nowrap;
}
.rf-tab:hover { color: #1e293b; background: #f1f5f9; }
.rf-tab .rf-tab-ic { font-size: 16px; }
.rf-tab.active {
	color: #2563eb; border-bottom-color: #2563eb;
	background: #eff6ff;
}

/* Layout 2 colonnes */
.rf-cols {
	display: grid; grid-template-columns: 1.1fr 1fr;
	gap: 0; min-height: 480px;
}
.rf-col-left {
	padding: 18px; background: #fff;
	border-right: 1px solid #e2e8f0;
}
.rf-col-right {
	padding: 18px; background: #f8fafc;
}
/* Notes : pas de panneau droit, col gauche pleine largeur */
.rf-cols:has(.rf-col-right-hidden) { grid-template-columns: 1fr; }
.rf-col-right-hidden { display: none; }

.rf-pane { display: none; }
.rf-pane.active { display: block; }

.rf-section { display: flex; flex-direction: column; gap: 14px; }

/* Inputs génériques */
.rf-input {
	padding: 10px 12px; border: 1.5px solid #e2e8f0; border-radius: 8px;
	font-size: 13px; background: #fff; color: #0f172a; font-family: inherit;
	width: 100%; outline: none; transition: border-color 0.12s, box-shadow 0.12s;
}
.rf-input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.12); }
.rf-mini-label {
	font-size: 11px; color: #64748b; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.04em; display: block; margin-bottom: 6px;
}
.rf-textarea { resize: vertical; min-height: 110px; }

.rf-field { display: flex; flex-direction: column; gap: 4px; }
.rf-field label {
	font-size: 11px; color: #64748b; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.04em;
}

/* Pane Stay */
.rf-stay-row {
	display: grid; grid-template-columns: 1fr auto 1fr;
	gap: 14px; align-items: stretch;
}
.rf-date-card {
	background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 10px;
	padding: 12px; display: flex; flex-direction: column; gap: 6px;
}
.rf-date-label {
	font-size: 11px; color: #64748b; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.04em;
}
.rf-date-input { font-weight: 700; font-size: 14px; }
.rf-time-input { font-size: 13px; padding: 6px 10px; }
.rf-date-end {
	font-size: 11.5px; color: #64748b; margin-top: 4px;
	border-top: 1px dashed #e2e8f0; padding-top: 6px;
}
.rf-date-end strong {
	color: #4c1d95; font-size: 13px; font-weight: 800;
	font-family: ui-monospace, Consolas, monospace;
}
.rf-date-arrow {
	display: flex; align-items: center; color: #2563eb;
	font-size: 22px; font-weight: 700;
}

.rf-meta-row { display: flex; gap: 8px; flex-wrap: wrap; }
.rf-meta-tag {
	background: #eff6ff; color: #1e40af; padding: 6px 12px;
	border-radius: 999px; font-size: 12px; font-weight: 600;
}
.rf-meta-ic { margin-right: 4px; }
/* Version inline : badge nuit(s) entre les cards dates et le bloc client.
 * Aligné à droite pour rester discret + compact. */
.rf-meta-row-inline {
	margin-top: 4px;
	justify-content: flex-end;
}
.rf-meta-row-inline .rf-meta-tag {
	background: #fff7ed; color: #9a3412;
	border: 1px solid #fed7aa;
	padding: 4px 10px; font-size: 11.5px;
}

/* Pane Séjour : dates en haut, client en dessous */
.rf-stay-grid {
	display: flex; flex-direction: column; gap: 14px;
}
.rf-stay-dates-wrap { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rf-stay-dates {
	display: grid; grid-template-columns: 1fr auto 1fr;
	gap: 10px; align-items: stretch; min-width: 0;
}
.rf-stay-dates .rf-date-card {
	padding: 10px; gap: 4px; min-width: 0;
}
.rf-stay-dates .rf-date-input,
.rf-stay-dates .rf-time-input {
	font-size: 13px; padding: 6px 8px;
	width: 100%; min-width: 0;
}
.rf-stay-dates .rf-date-input { font-weight: 700; }
.rf-stay-client { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.rf-stay-client .rf-client-input {
	font-size: 13px; padding: 10px 12px;
	text-overflow: ellipsis;
}

/* Liste Chambres ajoutées */
.rf-rooms-added {
	display: flex; flex-direction: column; gap: 6px;
	margin-top: 6px;
}
.rf-rooms-empty {
	display: flex; align-items: center; justify-content: center;
	gap: 10px;
	padding: 22px 16px;
	border: 1.5px dashed #cbd5e1; border-radius: 10px;
	color: #64748b; font-size: 13px; font-weight: 500;
	background: #fafbfc;
}
.rf-rooms-empty-ic, .rf-rooms-foot-ic {
	display: inline-flex; align-items: center; justify-content: center;
	width: 28px; height: 28px; border-radius: 50%;
	background: #2563eb; color: #fff; font-weight: 700; font-size: 16px;
}
.rf-rooms-list {
	display: flex; flex-direction: column; gap: 4px;
	background: #fff; border: 1.5px solid #e2e8f0; border-radius: 10px;
	overflow: hidden;
}
.rf-ra-row {
	display: grid;
	grid-template-columns: 36px 1.2fr 1.4fr 1fr auto 32px;
	gap: 12px; align-items: center;
	padding: 10px 12px;
	border-bottom: 1px solid #f1f5f9;
}
.rf-ra-row:last-child { border-bottom: none; }
.rf-ra-thumb {
	display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; border-radius: 8px;
	background: linear-gradient(135deg, #fb923c, #f97316);
	color: #fff; font-size: 18px;
}
.rf-ra-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rf-ra-num { font-size: 14px; font-weight: 700; color: #0f172a; }
.rf-ra-plan-name { font-size: 13px; font-weight: 600; color: #0f172a; }
.rf-ra-sub {
	font-size: 11px; color: #64748b;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* Chips caractéristiques chambre dans la card .rf-ra-row (fumeur, PMR,
   services connexes, override tarif). Visibles immédiatement à droite du n°. */
.rf-ra-flag {
	display: inline-flex; align-items: center; gap: 2px;
	font-size: 10px; font-weight: 700; line-height: 1.2;
	padding: 1px 5px; border-radius: 4px;
	cursor: help; user-select: none;
}
.rf-ra-price {
	font-size: 14px; font-weight: 800; color: #0f172a; white-space: nowrap;
	display: inline-flex; align-items: center; gap: 6px;
}
.rf-ra-toggle {
	background: #f1f5f9; border: 0; color: #475569;
	width: 22px; height: 22px; border-radius: 6px;
	cursor: pointer; font-size: 12px; line-height: 1;
	display: inline-flex; align-items: center; justify-content: center;
	transition: background 0.12s, color 0.12s, transform 0.12s;
}
.rf-ra-toggle:hover { background: #e0e7ff; color: #1e3a8a; }
.rf-ra-toggle.open { background: #1e3a8a; color: #fff; }
.rf-ra-del {
	width: 32px; height: 32px; border-radius: 8px;
	border: none; background: transparent; color: #94a3b8;
	font-size: 14px; cursor: pointer; transition: all 0.12s;
}
.rf-ra-del:hover { background: #fee2e2; color: #b91c1c; }
/* Détail nuit-par-nuit (accordéon) — wrapper englobe row + breakdown */
.rf-ra-row-wrap { border-bottom: 1px solid #f1f5f9; }
.rf-ra-row-wrap:last-child { border-bottom: none; }
.rf-ra-row-wrap .rf-ra-row { border-bottom: 0; }
.rf-ra-breakdown {
	background: #f8fafc;
	padding: 8px 14px 10px;
	border-top: 1px dashed #e2e8f0;
	font-size: 12px;
}
.rf-ra-brk-head {
	font-size: 10.5px; font-weight: 700; color: #64748b;
	text-transform: uppercase; letter-spacing: 0.04em;
	margin-bottom: 6px;
}
.rf-ra-brk-row {
	display: grid;
	grid-template-columns: 1.4fr auto auto auto;
	gap: 8px; align-items: center;
	padding: 4px 0;
}
.rf-ra-brk-row + .rf-ra-brk-row { border-top: 1px dotted #e2e8f0; }
.rf-ra-brk-date { color: #475569; font-weight: 600; text-transform: capitalize; }
.rf-ra-brk-rate { color: #0f172a; font-weight: 700; text-align: right; }
.rf-ra-promo {
	background: #ddd6fe; color: #5b21b6;
	font-size: 10px; font-weight: 800;
	padding: 2px 6px; border-radius: 999px;
	white-space: nowrap;
}
.rf-ra-delta {
	font-size: 11px; font-weight: 700;
	padding: 2px 6px; border-radius: 999px;
}
.rf-ra-delta.neg { background: #d1fae5; color: #047857; }
.rf-ra-delta.pos { background: #fef3c7; color: #92400e; }

/* Détail cumulatif des règles appliquées par nuit (base → règles → total) */
.rf-ra-steps {
	margin: 4px 0 8px 12px;
	padding: 8px 10px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	display: flex; flex-direction: column; gap: 3px;
}
.rf-ra-step {
	display: grid;
	grid-template-columns: 16px 1fr auto auto;
	gap: 8px; align-items: center;
	font-size: 11.5px;
	color: #475569;
}
.rf-ra-step-bullet { color: #94a3b8; text-align: center; font-weight: 700; }
.rf-ra-step-label { color: #334155; }
.rf-ra-step-delta { font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 999px; }
.rf-ra-step-delta.pos { background: #fef3c7; color: #92400e; }
.rf-ra-step-delta.neg { background: #d1fae5; color: #047857; }
.rf-ra-step-running { color: #0f172a; font-weight: 700; text-align: right; min-width: 70px; }
.rf-ra-step-base .rf-ra-step-label { color: #64748b; font-style: italic; }
.rf-ra-step-grid .rf-ra-step-bullet { color: #7c3aed; }
.rf-ra-step-yield .rf-ra-step-bullet { color: #ec4899; }

/* Total séjour bas du breakdown */
.rf-ra-brk-total {
	display: flex; justify-content: space-between; align-items: center;
	margin-top: 8px; padding: 10px 12px;
	background: linear-gradient(90deg, #f0f9ff 0%, #ffffff 100%);
	border: 1.5px solid #bae6fd; border-radius: 8px;
}
.rf-ra-brk-total-label { font-size: 11.5px; font-weight: 700; color: #075985; text-transform: uppercase; letter-spacing: 0.03em; }
.rf-ra-brk-total-amount { font-size: 14px; font-weight: 800; color: #0c4a6e; }

.rf-rooms-foot {
	display: flex; align-items: center; gap: 10px;
	padding: 10px 14px; margin-top: 4px;
	background: #fafbfc; border: 1.5px dashed #cbd5e1; border-radius: 10px;
	color: #64748b; font-size: 12.5px; font-weight: 500;
}

/* Pane Tags : pills source */
.rf-source-pills { display: flex; flex-wrap: wrap; gap: 6px; }
/* Bloc Source inline dans le pane Séjour (sous dates+client). */
.rf-source-row { margin-top: 14px; }
.rf-source-row .rf-mini-label { margin-bottom: 6px; }
/* Sub-picker OTA : chips plus petits pour distinguer du niveau principal. */
.rf-ota-subpicker .rf-pill-sm { padding: 5px 10px; font-size: 11.5px; }
.rf-ota-subpicker .rf-pill.active { background: #7c3aed; border-color: #7c3aed; }
.rf-pill {
	padding: 7px 14px; border-radius: 999px;
	border: 1.5px solid #e2e8f0; background: #fff; color: #475569;
	font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all 0.12s;
}
.rf-pill:hover { background: #f1f5f9; }
.rf-pill.active { background: #2563eb; color: #fff; border-color: #2563eb; }

/* Pane Client */
.rf-client-search { position: relative; }
.rf-client-input { font-size: 14px; padding: 12px 14px; font-weight: 500; }
.rf-client-results {
	position: absolute; top: calc(100% + 4px); left: 0; right: 0;
	background: #fff; border: 1.5px solid #e2e8f0; border-radius: 10px;
	box-shadow: 0 10px 30px rgba(15,23,42,0.12);
	max-height: 320px; overflow-y: auto; z-index: 10;
}
.rf-cli-create {
	display: flex; align-items: center; gap: 10px;
	width: 100%; padding: 12px 14px;
	border: none; border-bottom: 1px solid #e2e8f0; background: transparent;
	color: #2563eb; font-weight: 700; font-size: 13px;
	cursor: pointer; text-align: left;
}
.rf-cli-create:hover { background: #eff6ff; }
.rf-cli-plus {
	display: inline-flex; align-items: center; justify-content: center;
	width: 22px; height: 22px; border-radius: 50%;
	background: #2563eb; color: #fff; font-weight: 700;
}
.rf-cli-empty {
	padding: 12px 14px; color: #94a3b8; font-size: 12.5px; font-style: italic;
}
.rf-cli-hint, .pas-hint, .pm-hint {
	padding: 6px 12px; color: #64748b; font-size: 11px; font-weight: 600;
	text-transform: uppercase; letter-spacing: 0.04em;
	background: #f8fafc; border-bottom: 1px solid #e2e8f0;
}
.rf-cli-item {
	display: flex; align-items: center; gap: 10px;
	width: 100%; padding: 10px 14px;
	border: none; background: transparent; cursor: pointer;
	border-bottom: 1px solid #f1f5f9; text-align: left;
	transition: background 0.1s;
}
.rf-cli-item:hover { background: #f8fafc; }
.rf-cli-item:last-child { border-bottom: none; }
.rf-cli-ava {
	display: inline-flex; align-items: center; justify-content: center;
	width: 32px; height: 32px; min-width: 32px;
	border-radius: 50%; background: linear-gradient(135deg, #fb923c, #f97316);
	color: #fff; font-weight: 700; font-size: 12px;
}
.rf-cli-ava.lg { width: 44px; height: 44px; min-width: 44px; font-size: 14px; }
.rf-cli-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.rf-cli-name {
	font-size: 13px; font-weight: 600; color: #0f172a;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rf-cli-meta { font-size: 11.5px; color: #64748b; }
.rf-hl { background: #fef9c3; padding: 0 1px; border-radius: 2px; font-weight: 700; }

.rf-client-card { margin-top: 12px; }
.rf-cli-selected {
	display: flex; align-items: center; gap: 12px;
	padding: 12px 14px; background: #eff6ff; border: 1.5px solid #bfdbfe;
	border-radius: 10px;
}
.rf-cli-clear {
	border: none; background: rgba(0,0,0,0.06); color: #64748b;
	width: 28px; height: 28px; border-radius: 50%;
	font-size: 16px; cursor: pointer; transition: background 0.12s;
}
.rf-cli-clear:hover { background: rgba(0,0,0,0.12); color: #0f172a; }

/* Modale création client */
.rf-create-modal {
	position: absolute; inset: 0; background: rgba(15,23,42,0.5);
	display: flex; align-items: center; justify-content: center;
	z-index: 20; opacity: 0; transition: opacity 0.2s;
}
.rf-create-modal.open { opacity: 1; }
.rf-cm-card {
	background: #fff; border-radius: 14px;
	width: min(540px, 92vw); max-height: 88vh; overflow: auto;
	box-shadow: 0 20px 60px rgba(15,23,42,0.32);
	display: flex; flex-direction: column;
}
.rf-cm-head {
	display: flex; justify-content: space-between; align-items: center;
	padding: 16px 18px; border-bottom: 1px solid #e2e8f0;
	font-size: 15px; font-weight: 700; color: #0f172a;
}
.rf-cm-close {
	border: none; background: transparent; font-size: 22px;
	cursor: pointer; color: #64748b; padding: 4px 8px;
}
.rf-cm-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.rf-cm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rf-cm-foot {
	display: flex; gap: 8px; justify-content: flex-end;
	padding: 12px 18px; border-top: 1px solid #e2e8f0; background: #f8fafc;
}

/* Col droite : strip + pax + room types */
.rf-search-head {
	font-size: 13px; font-weight: 700; color: #0f172a;
	margin-bottom: 12px;
}
.rf-stay-strip {
	display: flex; justify-content: space-between; align-items: center;
	padding: 10px 14px; background: #fff; border: 1.5px solid #e2e8f0;
	border-radius: 10px; margin-bottom: 12px;
}
.rf-strip-dates {
	display: flex; gap: 8px; align-items: center; font-size: 12.5px;
	font-weight: 700; color: #0f172a;
}
.rf-d-arrow { color: #2563eb; }
.rf-strip-pax { font-size: 12px; color: #475569; font-weight: 600; }

/* Pax block */
.rf-pax-block {
	background: #fff; border: 1.5px solid #e2e8f0; border-radius: 10px;
	padding: 6px 12px; margin-bottom: 12px;
}
.rf-pax-row {
	display: flex; justify-content: space-between; align-items: center;
	padding: 10px 0; border-bottom: 1px solid #f1f5f9;
}
.rf-pax-row:last-child { border-bottom: none; }
.rf-pax-label { display: flex; align-items: center; gap: 10px; }
.rf-pax-ic { font-size: 18px; }
.rf-pax-lab { display: flex; flex-direction: column; line-height: 1.25; }
.rf-pax-lab strong { font-size: 13px; color: #0f172a; }
.rf-pax-hint { font-size: 11px; color: #94a3b8; }
.rf-pax-ctrl {
	display: flex; align-items: center; gap: 10px;
	background: #f8fafc; border-radius: 999px; padding: 4px;
}
.rf-pax-btn {
	width: 28px; height: 28px; border-radius: 50%;
	border: none; background: #fff; color: #0f172a;
	font-size: 16px; font-weight: 700; cursor: pointer;
	box-shadow: 0 1px 2px rgba(15,23,42,0.06); transition: all 0.12s;
}
.rf-pax-btn:hover { background: #2563eb; color: #fff; }
.rf-pax-val { min-width: 22px; text-align: center; font-weight: 700; font-size: 13px; }

/* Room Type cards */
.rf-rt-list { display: flex; flex-direction: column; gap: 8px; }
.rf-rt-card {
	background: #fff; border: 1.5px solid #e2e8f0; border-radius: 10px;
	overflow: hidden; transition: border-color 0.15s, box-shadow 0.15s;
}
.rf-rt-card:hover { border-color: #cbd5e1; }
.rf-rt-card.rf-rt-disabled { opacity: 0.55; }

.rf-rt-head-wrap {
	display: flex; align-items: center; gap: 6px;
	padding: 4px 10px 4px 0;
}
.rf-rt-head {
	display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0;
	padding: 10px 14px; border: none; background: transparent;
	cursor: pointer; text-align: left; font-family: inherit;
}
.rf-rt-head:hover { background: #f8fafc; }
.rf-rt-head[disabled] { cursor: not-allowed; }
.rf-rt-icon { font-size: 18px; }
.rf-rt-title {
	flex: 1; font-size: 13.5px; font-weight: 700; color: #0f172a;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rf-rt-badge {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 22px; height: 22px; padding: 0 6px;
	border-radius: 11px; background: #2563eb; color: #fff;
	font-size: 11px; font-weight: 700;
}
.rf-rt-avail { font-size: 11px; color: #047857; font-weight: 600; }
.rf-rt-unavail { font-size: 11px; color: #b91c1c; font-weight: 600; }
.rf-rt-toggle { color: #94a3b8; font-size: 13px; }
.rf-rt-toggle-btn {
	border: none; background: transparent; color: #64748b;
	font-size: 14px; cursor: pointer; padding: 6px 8px;
	border-radius: 6px; transition: background 0.12s;
}
.rf-rt-toggle-btn:hover { background: #f1f5f9; color: #0f172a; }

/* Sélecteur quantité dans la card Room Type */
.rf-rt-qty {
	display: inline-flex; align-items: center; gap: 6px;
	background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 999px;
	padding: 2px;
}
.rf-rt-qty-btn {
	width: 24px; height: 24px; border-radius: 50%;
	border: none; background: #fff; color: #0f172a;
	font-size: 13px; font-weight: 700; cursor: pointer;
	box-shadow: 0 1px 2px rgba(15,23,42,0.06); transition: all 0.12s;
}
.rf-rt-qty-btn:hover { background: #2563eb; color: #fff; }
.rf-rt-qty-val { min-width: 18px; text-align: center; font-weight: 700; font-size: 12.5px; }

/* Plans list inside RT */
.rf-plans {
	display: flex; flex-direction: column; gap: 4px;
	padding: 4px 8px 8px 8px;
	border-top: 1px solid #f1f5f9; background: #fafbfc;
}
.rf-plan {
	display: flex; align-items: stretch; gap: 12px;
	padding: 10px 12px; border: 1.5px solid transparent; border-radius: 8px;
	background: #fff; cursor: pointer; text-align: left; font-family: inherit;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.rf-plan:hover:not(:disabled) { border-color: #2563eb; box-shadow: 0 2px 6px rgba(37,99,235,0.08); }
.rf-plan.selected { border-color: #2563eb; background: #eff6ff; }
.rf-plan:disabled { cursor: not-allowed; opacity: 0.55; }
.rf-plan-info { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rf-plan-name { font-size: 13px; font-weight: 700; color: #0f172a; }
.rf-plan-meta { font-size: 11.5px; color: #64748b; }
.rf-plan-warns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.rf-plan-warn {
	font-size: 10.5px; color: #b45309;
	background: #fef3c7; padding: 2px 7px; border-radius: 999px;
	font-weight: 600;
}
.rf-plan-price {
	font-size: 14px; font-weight: 800; color: #0f172a;
	white-space: nowrap; align-self: center;
}
.rf-plan-noprice { font-size: 11px; color: #94a3b8; font-weight: 600; }

/* Flash zone */
.rf-flash {
	margin: 12px 18px; padding: 10px 14px; border-radius: 8px;
	font-size: 13px; font-weight: 600;
}
.rf-flash-success { background: #d1fae5; color: #065f46; }
.rf-flash-error { background: #fee2e2; color: #991b1b; }

.rf-empty {
	padding: 24px; text-align: center;
	color: #94a3b8; font-size: 13px; font-style: italic;
}

/* Onglet Tarifs */
.rf-right-panel { display: none; }
.rf-right-panel.active { display: block; }

.rf-tarifs-recap { margin-bottom: 12px; }
.rf-tr-head {
	background: #fff; border: 1.5px solid #e2e8f0; border-radius: 10px;
	padding: 12px 14px; display: flex; flex-direction: column; gap: 10px;
}
.rf-tr-dates { font-size: 13px; color: #0f172a; }
.rf-tr-cli {
	display: flex; align-items: center; gap: 10px;
	padding: 10px 12px; background: #eff6ff; border-radius: 8px;
}
.rf-tr-cli-empty { background: #fef9c3; color: #92400e; font-size: 12px; padding: 8px 12px; }
.rf-tr-totals {
	display: flex; gap: 14px; flex-wrap: wrap; padding-top: 8px;
	border-top: 1px solid #f1f5f9; font-size: 12.5px; color: #475569;
}
.rf-tr-totals .rf-tr-grand { margin-left: auto; color: #0f172a; font-size: 14px; }

.rf-tarifs-rooms { display: flex; flex-direction: column; gap: 8px; }

/* ─── Early Check-in / Late Check-out quick-action bar ───────────────── */
.rf-eci-lco-bar {
	display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
	margin: 0 0 12px 0;
}
.rf-eci-btn {
	display: flex; align-items: center; gap: 8px;
	padding: 7px 11px; border-radius: 8px;
	background: linear-gradient(135deg, #fef3c7, #fde68a);
	border: 1px solid #f59e0b; color: #78350f;
	cursor: pointer; text-align: left;
	transition: transform 0.12s, box-shadow 0.12s;
	font-family: inherit;
}
.rf-eci-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 3px 8px rgba(245, 158, 11, 0.22);
}
.rf-eci-btn:nth-child(2) {
	background: linear-gradient(135deg, #ddd6fe, #c4b5fd);
	border-color: #7c3aed; color: #4c1d95;
}
.rf-eci-btn:nth-child(2):hover {
	box-shadow: 0 3px 8px rgba(124, 58, 237, 0.22);
}
.rf-eci-ico { font-size: 16px; line-height: 1; flex: 0 0 auto; }
.rf-eci-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rf-eci-info strong { font-size: 11.5px; font-weight: 700; line-height: 1.2; }
.rf-eci-info small { font-size: 10px; opacity: 0.82; line-height: 1.2; }
@media (max-width: 700px) {
	.rf-eci-lco-bar { grid-template-columns: 1fr; }
}

/* ─── ECI/LCO modal content ──────────────────────────────────────────── */
.rf-eci-modal { display: flex; flex-direction: column; }
.rf-eci-neighbor {
	margin-top: 10px; padding: 12px 14px;
	background: #eff6ff; border: 1px solid #93c5fd; border-radius: 10px;
	color: #1e3a8a;
}
.rf-eci-neighbor-title {
	font-size: 12px; font-weight: 700; margin-bottom: 8px;
	text-transform: uppercase; letter-spacing: 0.3px;
}
.rf-eci-neighbor-body { font-size: 13px; line-height: 1.5; }
/* Date+heure de la résa voisine : mise en évidence forte */
.rf-eci-neighbor-when {
	margin: 8px 0;
	padding: 10px 12px;
	background: #fff;
	border: 1.5px solid #1e3a8a;
	border-radius: 8px;
	display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.rf-eci-neighbor-when-label {
	font-size: 11px; font-weight: 700; color: #64748b;
	text-transform: uppercase; letter-spacing: 0.3px;
}
.rf-eci-neighbor-when-date {
	font-size: 16px; font-weight: 800; color: #0f172a;
}
.rf-eci-neighbor-when-time {
	font-size: 18px; font-weight: 900; color: #1e3a8a;
	background: #dbeafe; padding: 2px 8px; border-radius: 6px;
}
.rf-eci-neighbor-buffer {
	font-size: 11px; color: #64748b; margin-top: 4px;
}
.rf-eci-neighbor-empty {
	background: #ecfdf5; border-color: #6ee7b7; color: #065f46;
	font-size: 13px; padding: 10px 14px;
}
.rf-eci-cost {
	margin-top: 14px; padding: 12px 16px;
	background: #f8fafc; border: 1.5px solid #cbd5e1; border-radius: 10px;
	display: flex; justify-content: space-between; align-items: center;
	font-size: 14px;
}
.rf-eci-cost strong { font-size: 18px; color: #0f172a; font-weight: 800; }
.rf-tr-room {
	background: #fff; border: 1.5px solid #e2e8f0; border-radius: 10px;
	overflow: hidden;
}
.rf-tr-room-head {
	display: flex; align-items: center; gap: 10px;
	padding: 10px 14px; background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
}
.rf-tr-room-title { flex: 1; font-size: 13px; color: #0f172a; }
.rf-tr-room-total { font-weight: 800; color: #0f172a; font-size: 13.5px; }

.rf-tr-lines { display: flex; flex-direction: column; }
.rf-tr-line {
	display: grid; grid-template-columns: 22px 1fr auto auto;
	gap: 10px; align-items: center;
	padding: 8px 14px;
	border-bottom: 1px solid #f1f5f9;
	cursor: pointer;
}
.rf-tr-line:last-child { border-bottom: none; }
.rf-tr-line input[type=checkbox] { width: 16px; height: 16px; cursor: pointer; }
.rf-tr-line input[type=checkbox]:disabled { cursor: not-allowed; opacity: 0.6; }
.rf-tr-line-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rf-tr-line-label { font-size: 13px; font-weight: 600; color: #0f172a; }
.rf-tr-line-meta { font-size: 11px; color: #64748b; }
.rf-tr-line-amount { font-weight: 700; color: #0f172a; font-size: 13px; }
.rf-tr-line-del {
	width: 28px; height: 28px; border-radius: 6px;
	border: none; background: transparent; color: #94a3b8;
	cursor: pointer; transition: all 0.12s;
}
.rf-tr-line-del:hover { background: #fee2e2; color: #b91c1c; }

/* Panneau extras (col droite) */
.rf-right-extras { padding-bottom: 8px; }
.rf-extras-head {
	font-size: 13px; font-weight: 700; color: #0f172a; margin-bottom: 12px;
}
.rf-article-search { position: relative; }
.rf-article-input { font-size: 13px; }
.rf-article-results {
	position: absolute; top: calc(100% + 4px); left: 0; right: 0;
	background: #fff; border: 1.5px solid #e2e8f0; border-radius: 10px;
	box-shadow: 0 10px 30px rgba(15,23,42,0.12);
	max-height: 320px; overflow-y: auto; z-index: 10;
}
.rf-art-item {
	display: flex; align-items: center; gap: 10px;
	width: 100%; padding: 10px 14px;
	border: none; background: transparent; cursor: pointer;
	border-bottom: 1px solid #f1f5f9; text-align: left;
}
.rf-art-item:hover { background: #f8fafc; }
.rf-art-item:last-child { border-bottom: none; }
.rf-art-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rf-art-name { font-size: 13px; font-weight: 600; color: #0f172a; }
.rf-art-meta { font-size: 11px; color: #64748b; }
.rf-art-cat {
	display: inline-block;
	background: #eff6ff; color: #1e40af;
	padding: 1px 8px; border-radius: 999px;
	font-size: 10.5px; font-weight: 700;
}
.rf-art-price { font-weight: 700; color: #0f172a; font-size: 13px; white-space: nowrap; }

.rf-extras-config { display: flex; flex-direction: column; gap: 8px; }
.rf-extra-rooms {
	display: flex; flex-direction: column; gap: 4px;
	max-height: 200px; overflow-y: auto;
	background: #fff; border: 1.5px solid #e2e8f0; border-radius: 8px;
	padding: 4px;
}
.rf-extra-room {
	display: grid; grid-template-columns: 18px 32px 1fr;
	gap: 8px; align-items: center;
	padding: 8px 10px; border-radius: 6px; cursor: pointer;
	transition: background 0.1s;
}
.rf-extra-room:hover { background: #f8fafc; }
.rf-extra-room input { width: 16px; height: 16px; cursor: pointer; }
.rf-cli-ava.sm {
	width: 32px; height: 32px; min-width: 32px;
	border-radius: 8px; background: linear-gradient(135deg, #fb923c, #f97316);
	font-size: 14px;
}
.rf-extra-room-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rf-extra-room-num { font-size: 13px; font-weight: 700; color: #0f172a; }
.rf-extra-room-type { font-size: 11px; color: #64748b; }

.rf-extra-dates-controls { display: flex; gap: 6px; flex-wrap: wrap; }
.rf-extra-pill {
	font-size: 11.5px; padding: 5px 10px;
}
.rf-extra-dates-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.rf-date-chip {
	border: 1.5px solid #e2e8f0; background: #fff; color: #475569;
	padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
	cursor: pointer; transition: all 0.12s;
}
.rf-date-chip:hover { border-color: #2563eb; }
.rf-date-chip.on { background: #2563eb; color: #fff; border-color: #2563eb; }

.rf-extra-foot {
	display: flex; gap: 8px; justify-content: flex-end; padding-top: 8px;
}

/* ─── Banner Résa annulée ──────────────────────────────────────────────
   Carte rouge en haut du drawer édition résa quand statut = Annulée.
   Affiche : titre + sous-titre, puis une grille avec Motif / Date / Auteur.
   Design : fond rouge clair, bordure rouge, icônes emoji, dates formatées FR. */
.rf-cancelled-banner {
	background: linear-gradient(135deg, #fef2f2, #fee2e2);
	border: 1.5px solid #fca5a5;
	border-radius: 12px;
	padding: 16px 18px;
	margin: 14px;
	box-shadow: 0 2px 8px rgba(220, 38, 38, 0.08);
}
.rcb-head {
	display: flex; align-items: flex-start; gap: 12px;
	padding-bottom: 12px; margin-bottom: 12px;
	border-bottom: 1px dashed #fca5a5;
}
.rcb-icon {
	font-size: 28px; line-height: 1; flex-shrink: 0;
	background: #fff; padding: 6px 8px; border-radius: 8px;
	border: 1.5px solid #fca5a5;
}
.rcb-head-text { flex: 1; min-width: 0; }
.rcb-title {
	font-size: 17px; font-weight: 800; color: #991b1b;
	line-height: 1.2; margin-bottom: 4px;
}
.rcb-subtitle {
	font-size: 12px; color: #7f1d1d; line-height: 1.45;
}
.rcb-grid {
	display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px;
}
.rcb-field {
	background: #fff; border: 1px solid #fecaca; border-radius: 8px;
	padding: 10px 12px;
}
.rcb-k {
	font-size: 10.5px; font-weight: 700; color: #991b1b;
	text-transform: uppercase; letter-spacing: 0.04em;
	margin-bottom: 4px;
}
.rcb-v {
	font-size: 13px; font-weight: 700; color: #0f172a;
	line-height: 1.35; word-break: break-word;
}
.rcb-v.rcb-empty {
	font-style: italic; font-weight: 500; color: #94a3b8;
}
@media (max-width: 720px) {
	.rcb-grid { grid-template-columns: 1fr; }
}

/* Mode lecture-seule (édition résa) — bloque toutes les zones d'action.
   On laisse interactif : onglets (pour naviguer), footer (boutons Fermer/Modifier),
   bouton de fermeture du drawer, et le drawer lui-même (scroll). Tout le reste est bloqué. */
.rf-drawer.rf-readonly .rf-pane,
.rf-drawer.rf-readonly .rf-col-right {
	pointer-events: none;
	user-select: text;
}
/* Réactive les éléments qui doivent rester cliquables même en lecture
 * IMPORTANT : `.hd-btn` est limité au `.hd-foot` (boutons Modifier/Fermer/
 * Annuler résa). Sinon les `.hd-btn` dans les popovers (Add extra,
 * Réserver créneau, etc.) restent cliquables et permettent des actions
 * de modification interdites en lecture. Pareil pour .rf-cli-clear (×) :
 * il doit être inactif en lecture car il efface la sélection client. */
.rf-drawer.rf-readonly .rf-tabs,
.rf-drawer.rf-readonly .hd-foot,
.rf-drawer.rf-readonly .hd-close,
.rf-drawer.rf-readonly .rf-tab,
.rf-drawer.rf-readonly .hd-foot .hd-btn,
.rf-drawer.rf-readonly .rf-rt-toggle-btn,
.rf-drawer.rf-readonly .rf-rt-head,
/* Carte client doit rester cliquable en lecture (ouvre la fiche client) */
.rf-drawer.rf-readonly .rf-cli-selected,
.rf-drawer.rf-readonly .rf-cli-selected * {
	pointer-events: auto;
}
/* Lockdown explicite des popovers / panneaux d'ajout (Add extra, Réserver
 * un créneau, etc.) qui sont .hd-btn mais HORS .hd-foot. */
.rf-drawer.rf-readonly .rf-extra-add,
.rf-drawer.rf-readonly .rf-extra-cancel,
.rf-drawer.rf-readonly .rf-service-add,
.rf-drawer.rf-readonly .rf-service-cancel,
.rf-drawer.rf-readonly .rf-cli-clear {
	pointer-events: none !important;
	opacity: 0.5 !important;
	cursor: not-allowed !important;
}
/* Le bouton Modifier reste utilisable au footer */
.rf-drawer.rf-readonly #rfEdit { pointer-events: auto; }
/* Bloc paiement TOUJOURS cliquable, quel que soit le mode (lecture OU édition).
   Force !important pour court-circuiter le pointer-events:none parent même si
   un autre style override est appliqué. */
.rf-drawer .rf-pay-block,
.rf-drawer .rf-pay-block *,
.rf-drawer .rf-pay-btn-now,
.rf-drawer .rf-pay-btn-preauth,
.rf-drawer .rf-pay-btn-capture,
.rf-drawer .rf-right-payment,
.rf-drawer .rf-right-payment *,
.rf-drawer .rf-pay-back,
.rf-drawer .rf-pay-submit,
.rf-drawer .rf-pay-consent,
.rf-drawer .rf-pay-stripe-el,
.rf-drawer .rf-pay-stripe-el * {
	pointer-events: auto !important;
}
/* Les boutons paiement ne doivent JAMAIS être disabled, même en readonly */
.rf-drawer.rf-readonly .rf-pay-btn-now:not([data-force-disabled]),
.rf-drawer.rf-readonly .rf-pay-btn-preauth:not([data-force-disabled]),
.rf-drawer.rf-readonly .rf-pay-btn-capture:not([data-force-disabled]) {
	cursor: pointer !important;
	opacity: 1 !important;
}
/* Visuellement : assombrit légèrement les zones grisées */
.rf-drawer.rf-readonly input[disabled],
.rf-drawer.rf-readonly select[disabled],
.rf-drawer.rf-readonly textarea[disabled] {
	background: #f8fafc; cursor: default; color: #475569;
}
.rf-drawer.rf-readonly button[disabled] {
	opacity: 0.55; cursor: not-allowed;
}
.rf-drawer.rf-readonly .rf-rt-list { opacity: 0.55; }
.rf-drawer.rf-readonly .rf-inv-actions { opacity: 0.4; }

/* Lignes désactivées (décochées) — visuel barré + grisé sur TOUTE la ligne.
   Cas d'usage : décocher un extra existant dans le drawer Tarifs déclenche
   un soft delete réversible. La ligne reste visible pour pouvoir la re-cocher. */
.rf-line-inactive {
	background: #f8fafc;
	opacity: 0.72;
}
.rf-line-inactive .rf-tr-line-label,
.rf-line-inactive .rf-fac-line-label,
.rf-line-inactive .rf-tr-line-amount,
.rf-line-inactive .rf-fac-line-amount,
.rf-line-inactive .rf-tr-line-meta,
.rf-line-inactive .rf-fac-line-meta {
	color: #94a3b8 !important;
	text-decoration: line-through;
	text-decoration-color: #cbd5e1;
}
.rf-line-inactive .rf-tr-line-amount,
.rf-line-inactive .rf-fac-line-amount {
	text-decoration-thickness: 2px;
	text-decoration-color: #94a3b8;
}
.rf-line-removed,
.rf-ra-row.rf-line-removed {
	background: #fef2f2;
	opacity: 0.65;
}
.rf-line-removed .rf-tr-line-label,
.rf-line-removed .rf-fac-line-label,
.rf-line-removed .rf-ra-num,
.rf-line-removed .rf-tr-line-amount,
.rf-line-removed .rf-fac-line-amount,
.rf-tr-pending {
	display: inline-block; background: #fef3c7; color: #92400e;
	padding: 1px 7px; border-radius: 999px;
	font-size: 10px; font-weight: 700; margin-left: 6px;
	border: 1px solid #fde68a;
	letter-spacing: 0.02em;
	vertical-align: middle;
}
label.is-pending { background: linear-gradient(90deg, #fffbeb, transparent 30%); border-radius: 6px; }
.rf-line-removed .rf-ra-price {
	text-decoration: line-through;
	color: #b91c1c !important;
}
.rf-line-removed .rf-tr-line-meta em,
.rf-line-removed .rf-fac-line-meta em,
.rf-line-removed .rf-ra-sub em {
	color: #b91c1c; font-weight: 700; font-style: normal;
}
.rf-line-inactive .rf-tr-line-meta em,
.rf-line-inactive .rf-fac-line-meta em {
	color: #f59e0b; font-weight: 700; font-style: normal;
}

/* Onglet Factures */
.rf-fac-section-title {
	font-size: 11px; color: #64748b; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.04em;
	margin: 14px 0 8px;
}
.rf-fac-list {
	display: flex; flex-direction: column;
	background: #fff; border: 1.5px solid #e2e8f0; border-radius: 10px;
	overflow: hidden;
}
.rf-fac-toggle-all {
	display: flex; align-items: center; gap: 10px;
	padding: 10px 14px; background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
	font-size: 12px; font-weight: 700; color: #475569;
	cursor: pointer; user-select: none;
}
.rf-fac-line {
	display: grid; grid-template-columns: 22px 1fr auto;
	gap: 10px; align-items: center;
	padding: 10px 14px;
	border-bottom: 1px solid #f1f5f9;
	cursor: pointer;
}
.rf-fac-line:last-child { border-bottom: none; }
.rf-fac-line input[type=checkbox],
.rf-fac-toggle-all input[type=checkbox] {
	width: 16px; height: 16px; cursor: pointer;
}
.rf-fac-line-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rf-fac-line-label { font-size: 13px; font-weight: 600; color: #0f172a; }
.rf-fac-line-meta { font-size: 11px; color: #64748b; }
.rf-fac-line-amount { font-weight: 700; color: #0f172a; font-size: 13px; }

.rf-fac-client-form {
	background: #fff; border: 1.5px solid #e2e8f0; border-radius: 10px;
	padding: 12px;
}
.rf-fac-client-form .rf-cm-row {
	display: grid; grid-template-columns: 1fr 1fr 1fr;
	gap: 10px; margin-bottom: 8px;
}

/* Panneau preview facture (col droite) */
.rf-right-invoice { padding-bottom: 8px; }
.rf-inv-actions {
	display: flex; gap: 4px;
}
.rf-inv-btn {
	width: 32px; height: 32px; border-radius: 8px;
	border: 1.5px solid #e2e8f0; background: #fff;
	color: #475569; font-size: 14px; cursor: pointer;
	transition: all 0.12s;
}
.rf-inv-btn:hover { background: #2563eb; color: #fff; border-color: #2563eb; }

.rf-inv-preview {
	margin-top: 12px;
	background: #f1f5f9; border-radius: 10px;
	padding: 10px; max-height: 70vh; overflow-y: auto;
}
.rf-inv-paper {
	background: #fff; box-shadow: 0 4px 16px rgba(15,23,42,0.10);
	border-radius: 4px;
	transform-origin: top center;
	transform: scale(0.78);
	width: 128%;
	margin-left: -14%;
}

/* Mobile : empile les colonnes */
@media (max-width: 900px) {
	.hd-drawer.hd-drawer-wide { max-width: 100%; }
	.rf-cols { grid-template-columns: 1fr; }
	.rf-col-left { border-right: none; border-bottom: 1px solid #e2e8f0; }
	.rf-tab .rf-tab-lab { display: none; }
	.rf-tab { padding: 10px 12px; }
	.rf-stay-row, .rf-stay-grid { grid-template-columns: 1fr; }
	.rf-stay-dates { grid-template-columns: 1fr auto 1fr; }
	.rf-date-arrow { display: none; }
	.rf-cm-row { grid-template-columns: 1fr; }
	.rf-ra-row {
		grid-template-columns: 30px 1fr auto 28px;
		row-gap: 4px;
	}
	.rf-ra-row .rf-ra-plan { display: none; }
	.rf-ra-row .rf-ra-pax { grid-column: 2; }
}

/* ─── Onglet "Connection totale" ────────────────────────────── */
.rf-conn-section { padding: 0; }
.rf-conn-head {
	padding: 12px 14px; border-bottom: 1px solid #e2e8f0;
	background: #fafafa;
}
.rf-conn-list { padding: 10px 12px; }
.rf-conn-resa {
	margin-top: 10px; border: 1px solid #e2e8f0;
	border-radius: 8px; overflow: hidden; background: #fff;
}
.rf-conn-resa-head {
	display: grid; grid-template-columns: 1fr auto;
	gap: 4px 12px; padding: 9px 12px;
	background: #f5f3ff; border-bottom: 1px solid #ddd6fe;
}
.rf-conn-resa-title {
	grid-column: 1; grid-row: 1;
	font-size: 13px; color: #0f172a;
	display: flex; align-items: center; gap: 6px;
}
.rf-conn-resa-meta {
	grid-column: 1; grid-row: 2;
	font-size: 11px; color: #64748b;
}
.rf-conn-resa-subtotal {
	grid-column: 2; grid-row: 1 / span 2;
	align-self: center;
	font-size: 14px; font-weight: 800; color: #7c3aed;
}
.rf-conn-charges {
	display: flex; flex-direction: column;
}
.rf-conn-charges .rf-fac-line {
	border-bottom: 1px solid #f1f5f9;
}
.rf-conn-charges .rf-fac-line:last-child { border-bottom: 0; }
.rf-conn-grand {
	margin: 14px 4px 4px;
	padding: 12px 14px;
	background: linear-gradient(135deg, #f5f3ff, #ede9fe);
	border: 1px solid #c4b5fd; border-radius: 10px;
	display: flex; justify-content: space-between; align-items: center;
	font-size: 14px; font-weight: 700; color: #4c1d95;
}
.rf-conn-grand strong {
	font-size: 17px; color: #7c3aed;
}
.rf-conn-preview { padding: 10px; }
.rf-conn-preview .rf-inv-paper {
	background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
	overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

/* Picker "Factures à envoyer/télécharger" — au-dessus de l'aperçu */
.rf-conn-picker {
	padding: 0 10px;
}
.rf-conn-picker:empty { display: none; }
.rf-conn-picker-head {
	margin: 10px 0 6px;
	padding: 6px 10px;
	background: linear-gradient(135deg, #f5f3ff, #fff);
	border: 1.5px solid #c4b5fd; border-radius: 8px;
	font-size: 11.5px; color: #7c3aed; font-weight: 700;
}
.rf-conn-picker-all {
	display: flex; align-items: center; gap: 8px;
	cursor: pointer; user-select: none;
}
.rf-conn-picker-all input[type=checkbox] { accent-color: #7c3aed; }
.rf-conn-picker-list {
	display: flex; flex-direction: column; gap: 6px;
	margin-bottom: 10px;
}
.rf-conn-picker-item {
	display: grid; grid-template-columns: 22px 1fr auto;
	align-items: center; gap: 12px;
	padding: 10px 12px;
	background: #fff; border: 1.5px solid #e2e8f0; border-radius: 10px;
	cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.rf-conn-picker-item:hover { background: #faf5ff; border-color: #c4b5fd; }
.rf-conn-picker-item.is-on {
	background: #fdfaff; border-color: #a855f7;
	box-shadow: 0 1px 3px rgba(168, 85, 247, 0.12);
}
.rf-conn-picker-item input[type=checkbox] {
	width: 17px; height: 17px; accent-color: #7c3aed; cursor: pointer;
}
.rf-conn-picker-info {
	display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.rf-conn-picker-label {
	font-size: 13px; font-weight: 700; color: #0f172a;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rf-conn-picker-sub {
	font-size: 10.5px; color: #64748b;
	font-family: ui-monospace, Consolas, monospace;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rf-conn-picker-amt {
	font-size: 13.5px; font-weight: 800; color: #7c3aed;
	white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════════
 *  PROMOS — drawer admin, modale édition, panneaux folio/résa, /stay
 * ═══════════════════════════════════════════════════════════════════ */

/* Drawer admin (liste promos) */
.promo-admin { padding: 16px; }
/* Vue inline (utilisée par stay-view, remplace le calendrier) — design block */
.view-promos {
	background: #f8fafc; min-height: 600px;
}
.promo-inline {
	max-width: 1400px; margin: 0 auto; padding: 22px 26px 60px;
}
.promo-page-head {
	display: flex; align-items: flex-end; justify-content: space-between;
	gap: 16px; margin-bottom: 18px; flex-wrap: wrap;
}
.pph-titles h1 {
	margin: 0; font-size: 22px; font-weight: 800; color: #0f172a; letter-spacing: -0.01em;
}
.pph-titles p {
	margin: 4px 0 0; font-size: 13px; color: #64748b;
}

/* Stats row */
.promo-stats {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 10px; margin-bottom: 14px;
}
.ps-card {
	background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
	padding: 14px 16px; text-align: left;
	position: relative; overflow: hidden;
}
.ps-card::before {
	content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
}
.ps-card.s-active::before { background: linear-gradient(180deg, #10b981, #047857); }
.ps-card.s-up::before     { background: linear-gradient(180deg, #3b82f6, #1e40af); }
.ps-card.s-exp::before    { background: linear-gradient(180deg, #ef4444, #991b1b); }
.ps-card.s-uses::before   { background: linear-gradient(180deg, #ec4899, #be185d); }
.ps-card.s-save::before   { background: linear-gradient(180deg, #f59e0b, #b45309); }
.ps-card .v {
	font-size: 26px; font-weight: 800; color: #0f172a; line-height: 1; letter-spacing: -0.01em;
}
.ps-card .l {
	font-size: 11px; color: #64748b; font-weight: 700; text-transform: uppercase;
	letter-spacing: 0.04em; margin-top: 6px;
}

/* Toolbar (filters + search) */
.promo-bar {
	display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
	flex-wrap: wrap;
}
.promo-filters {
	display: flex; gap: 4px; padding: 4px; background: #f1f5f9; border-radius: 9px;
}
.pf-pill {
	background: transparent; border: 0; padding: 7px 14px; border-radius: 7px;
	cursor: pointer; font-size: 13px; font-weight: 600; color: #475569;
	display: inline-flex; align-items: center; gap: 6px;
	transition: background 0.12s, color 0.12s;
}
.pf-pill:hover { background: rgba(255,255,255,0.6); }
.pf-pill.active { background: #1e3a8a; color: #fff; }
.pf-pill.active .pf-count { background: rgba(255,255,255,0.20); color: #fff; }
.pf-count {
	font-size: 11px; padding: 1px 7px; border-radius: 10px;
	background: #e2e8f0; color: #475569; font-weight: 700;
}
.promo-search {
	flex: 1; min-width: 220px; padding: 9px 12px; border: 1px solid #e2e8f0;
	border-radius: 9px; font-size: 13px;
}
.promo-search:focus { border-color: #ec4899; outline: none; box-shadow: 0 0 0 3px rgba(236,72,153,0.12); }

/* Grid des cards */
.promo-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 14px;
}
@media (max-width: 600px) { .promo-grid { grid-template-columns: 1fr; } }

.pcard {
	background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
	padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 10px;
	transition: transform 0.12s, box-shadow 0.12s;
	min-height: 220px;
}
.pcard:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15,23,42,0.08); }
.pcard.inactive { opacity: 0.55; }
.pcard-head {
	display: flex; align-items: center; gap: 10px;
}
.pcard-icon {
	width: 40px; height: 40px; border-radius: 10px;
	display: grid; place-items: center; font-size: 20px; color: #fff;
}
.pcard-status { margin-left: auto; }
.pcard-body { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.pcard-code {
	font-size: 16px; font-weight: 800; color: #0f172a;
	font-family: ui-monospace, "SF Mono", Consolas, monospace; letter-spacing: 0.02em;
}
.pcard-label {
	font-size: 13px; color: #475569; line-height: 1.35;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
	overflow: hidden;
}
.pcard-disc {
	font-size: 22px; font-weight: 800; color: #ec4899; letter-spacing: -0.02em;
	margin-top: 4px;
}
.pcard-validity {
	font-size: 11.5px; color: #64748b; margin-top: 2px;
}
.pcard-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.pcard-foot {
	display: flex; justify-content: space-between; align-items: center;
	padding-top: 10px; border-top: 1px solid #f1f5f9;
}
.pcard-uses { font-size: 11.5px; color: #64748b; font-weight: 600; }
.pcard-actions { display: flex; gap: 4px; }

/* ─── Vue ATTRIBUTION (calendrier — pas de CRUD) ──────────────────── */
.promo-attrib { padding: 16px; }
.promo-attrib.promo-inline { max-width: 1100px; margin: 0 auto; padding: 24px 28px 60px; }

.promo-attrib-search {
	background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
	padding: 16px 18px; margin-bottom: 18px; position: relative;
}
.pas-label {
	display: block; font-size: 11px; font-weight: 800; color: #64748b;
	text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px;
}
.pas-input {
	width: 100%; padding: 10px 14px; border: 1px solid #e2e8f0; border-radius: 9px;
	font-size: 14px; box-sizing: border-box;
}
.pas-input:focus { border-color: #ec4899; outline: none; box-shadow: 0 0 0 3px rgba(236,72,153,0.12); }
.pas-results {
	margin-top: 6px; max-height: 320px; overflow-y: auto;
}
.pas-result {
	padding: 10px 14px; cursor: pointer; border-radius: 8px; margin-bottom: 4px;
	transition: background 0.12s;
}
.pas-result:hover { background: #fdf2f8; }
.pas-mute { color: #94a3b8; font-size: 12.5px; }
.pas-empty { padding: 14px; text-align: center; color: #94a3b8; font-size: 13px; }
.pas-selected { margin-top: 8px; }
.pas-sel-card {
	background: #fdf2f8; border: 1px solid #f9a8d4; border-radius: 10px;
	padding: 12px 14px; display: flex; align-items: center; gap: 10px;
}
.pas-sel-info { flex: 1; }
.pas-sel-rm {
	background: transparent; border: 0; font-size: 22px; cursor: pointer;
	color: #be185d; padding: 0 8px;
}
.pas-sel-rm:hover { color: #831843; }

.promo-attrib-list-title {
	display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.promo-attrib-list-title > span {
	font-size: 13px; font-weight: 800; color: #475569; text-transform: uppercase;
	letter-spacing: 0.04em;
}
.promo-attrib-filter {
	flex: 1; padding: 7px 12px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 13px;
}
.promo-attrib-filter:focus { border-color: #ec4899; outline: none; box-shadow: 0 0 0 3px rgba(236,72,153,0.12); }

.promo-attrib-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 12px;
}
.promo-attrib-card {
	background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
	padding: 14px 16px 12px;
	display: flex; flex-direction: column; gap: 8px;
	transition: transform 0.12s, box-shadow 0.12s;
}
.promo-attrib-card:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(15,23,42,0.08); }
.pac-head { display: flex; align-items: center; justify-content: space-between; }
.pac-icon {
	width: 36px; height: 36px; border-radius: 9px;
	display: grid; place-items: center; font-size: 18px; color: #fff;
}
.pac-disc { font-size: 22px; font-weight: 800; color: #ec4899; letter-spacing: -0.02em; }
.pac-code {
	font-size: 14px; font-weight: 800; font-family: ui-monospace, "SF Mono", Consolas, monospace;
	color: #0f172a; letter-spacing: 0.04em;
}
.pac-label { font-size: 12.5px; color: #475569; line-height: 1.35;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pac-attribute {
	margin-top: 4px; padding: 9px;
	background: #ec4899; color: #fff; border: 0; border-radius: 8px;
	font-weight: 700; font-size: 13px; cursor: pointer;
	transition: background 0.12s;
}
.pac-attribute:hover { background: #be185d; }

/* Charge picker (modal d'attribution) */
.cp-resa-info { padding: 10px 12px; background: #f8fafc; border-radius: 8px; margin-bottom: 10px; }
.cp-help { font-size: 12px; color: #64748b; margin-bottom: 12px; font-style: italic; }
.cp-toolbar { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.cp-tb {
	padding: 6px 10px; background: #f1f5f9; border: 0; border-radius: 7px;
	font-size: 12px; font-weight: 600; color: #475569; cursor: pointer;
}
.cp-tb:hover { background: #e2e8f0; }
.cp-list { max-height: 350px; overflow-y: auto; }
.cp-row {
	display: flex; align-items: center; gap: 10px;
	padding: 10px 12px; background: #fff; border: 1px solid #e2e8f0;
	border-radius: 8px; margin-bottom: 6px; cursor: pointer;
	transition: background 0.12s, border-color 0.12s;
}
.cp-row:hover { background: #fdf2f8; border-color: #f9a8d4; }
.cp-check { width: 18px; height: 18px; cursor: pointer; }
.cp-icon { font-size: 18px; }
.cp-info { flex: 1; min-width: 0; }
.cp-desc { display: block; font-size: 13px; font-weight: 600; color: #0f172a; }
.cp-meta { display: block; font-size: 11.5px; color: #64748b; }
.cp-amount { font-weight: 800; color: #ec4899; font-size: 14px; }

/* ─── Section "Réservations avec promo" (vue attribution calendrier) ─ */
.promo-usages-section { margin-top: 32px; padding-top: 22px; border-top: 1px solid #e2e8f0; }
.promo-usages-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; }
.pug-card {
	background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
	padding: 14px 16px 12px;
	transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}
.pug-card:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(15,23,42,0.06); border-color: #f9a8d4; }
.pug-card.pug-card-late { border-color: #fecaca; background: #fef7f7; border-left: 4px solid #b91c1c; }
.pug-card.pug-card-late:hover { border-color: #fca5a5; }
.pug-late-badge {
	display: inline-block; background: #fef2f2; color: #b91c1c;
	border: 1px solid #fecaca; padding: 1px 8px; border-radius: 999px;
	font-size: 11px; font-weight: 700; margin-left: 6px;
}
.promo-usages-late { margin-top: 18px; }
.pug-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.pug-avatar {
	width: 40px; height: 40px; border-radius: 50%;
	background: linear-gradient(135deg, #ec4899, #be185d);
	color: #fff; display: grid; place-items: center;
	font-weight: 800; font-size: 14px; letter-spacing: 0.04em;
	flex-shrink: 0;
}
.pug-info { flex: 1; min-width: 0; }
.pug-name { font-size: 14px; font-weight: 700; color: #0f172a; }
.pug-meta { font-size: 11.5px; color: #64748b; margin-top: 2px;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pug-dates { font-size: 11.5px; color: #475569; margin-top: 2px; }
.pug-totals { text-align: right; flex-shrink: 0; }
.pug-savings { font-size: 16px; font-weight: 800; color: #ec4899; line-height: 1; }
.pug-savings-l { font-size: 10px; color: #94a3b8; text-transform: uppercase; font-weight: 700; margin-top: 3px; letter-spacing: 0.04em; }
.pug-usages { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.pug-usage {
	display: flex; align-items: center; gap: 8px;
	padding: 6px 8px; background: #fdf2f8; border-radius: 7px;
}
.pug-pill {
	color: #fff; padding: 3px 9px; border-radius: 6px;
	font-size: 11.5px; font-weight: 700; font-family: ui-monospace, "SF Mono", Consolas, monospace;
	letter-spacing: 0.02em;
}
.pug-disc { font-weight: 800; opacity: 0.95; }
.pug-saved { margin-left: auto; font-weight: 700; color: #be185d; font-size: 12.5px; }
.pug-detach {
	background: transparent; border: 1px solid transparent; border-radius: 6px;
	color: #94a3b8; font-size: 16px; font-weight: 800; cursor: pointer;
	width: 24px; height: 24px;
}
.pug-detach:hover { background: #fee2e2; border-color: #fca5a5; color: #991b1b; }
.pug-actions { display: flex; gap: 8px; padding-top: 8px; border-top: 1px solid #f1f5f9; }
.pug-link {
	font-size: 11.5px; color: #475569; text-decoration: none; font-weight: 600;
	padding: 4px 9px; border-radius: 6px; background: #f8fafc;
	transition: background 0.12s, color 0.12s;
}
.pug-link:hover { background: #ec4899; color: #fff; }
.promo-bar {
	display: flex; gap: 10px; margin-bottom: 14px; align-items: center;
}
.promo-search {
	flex: 1; padding: 9px 12px; border: 1px solid #e2e8f0; border-radius: 8px;
	font-size: 13px;
}
.promo-search:focus { border-color: #ec4899; outline: none; box-shadow: 0 0 0 3px rgba(236,72,153,0.12); }
.promo-btn-add {
	padding: 9px 14px; background: linear-gradient(135deg, #ec4899, #be185d);
	color: #fff; border: 0; border-radius: 8px; cursor: pointer;
	font-weight: 700; font-size: 13px;
}
.promo-btn-add:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(236,72,153,0.25); }
.promo-list { display: flex; flex-direction: column; gap: 10px; }
.promo-empty {
	padding: 24px 16px; text-align: center; color: #94a3b8;
	background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 10px;
}
.promo-empty.err { color: #b91c1c; background: #fef2f2; border-color: #fca5a5; }
.promo-loading { padding: 24px; text-align: center; color: #94a3b8; }

.promo-card {
	background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
	padding: 12px 14px; transition: border-color 0.12s, box-shadow 0.12s;
}
.promo-card:hover { border-color: #cbd5e1; box-shadow: 0 2px 6px rgba(15,23,42,0.05); }
.pc-head {
	display: flex; align-items: center; gap: 12px; margin-bottom: 8px;
}
.pc-icon {
	width: 36px; height: 36px; border-radius: 8px;
	display: grid; place-items: center; font-size: 18px; color: #fff;
}
.pc-meta { flex: 1; min-width: 0; }
.pc-code { font-size: 13px; font-weight: 800; color: #0f172a; letter-spacing: 0.02em; }
.pc-label { font-size: 12px; color: #64748b; margin-top: 2px; }
.pc-disc { font-size: 17px; font-weight: 800; color: #ec4899; }
.pc-foot {
	display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
	font-size: 11.5px;
}
.pc-status {
	padding: 2px 8px; border-radius: 999px; font-weight: 700;
}
.pc-status.ok { background: #d1fae5; color: #065f46; }
.pc-status.err { background: #fee2e2; color: #991b1b; }
.pc-status.info { background: #dbeafe; color: #1e40af; }
.pc-status.muted { background: #f1f5f9; color: #64748b; }
.pc-uses { color: #64748b; }
.pc-tag {
	background: #fdf2f8; color: #be185d;
	padding: 2px 7px; border-radius: 4px; font-weight: 600; font-size: 11px;
}
.pc-btn {
	background: transparent; border: 1px solid #e2e8f0; border-radius: 6px;
	padding: 4px 8px; cursor: pointer; font-size: 13px;
	transition: background 0.12s, border-color 0.12s;
}
.pc-btn:hover { background: #f8fafc; border-color: #cbd5e1; }
.pc-foot .pc-btn:last-child:hover { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }
.pc-foot { margin-left: auto; }

/* Modale CRUD */
.promo-modal-bg {
	position: fixed; inset: 0; z-index: 9999;
	background: rgba(15,23,42,0.5);
	display: flex; align-items: center; justify-content: center;
	opacity: 0; transition: opacity 0.18s;
	padding: 20px;
}
.promo-modal-bg.show { opacity: 1; }
.promo-modal-card {
	background: #fff; border-radius: 14px;
	max-width: 720px; width: 100%; max-height: 90vh;
	display: flex; flex-direction: column;
	box-shadow: 0 20px 60px rgba(15,23,42,0.3);
	transform: scale(0.95); transition: transform 0.18s;
}
.promo-modal-bg.show .promo-modal-card { transform: scale(1); }
.pm-head {
	padding: 16px 20px; border-bottom: 1px solid #e2e8f0;
	display: flex; align-items: center; gap: 12px;
}
.pm-head h3 { margin: 0; font-size: 16px; font-weight: 800; color: #0f172a; flex: 1; }
.pm-close {
	background: transparent; border: 0; font-size: 22px; cursor: pointer;
	color: #94a3b8; width: 28px; height: 28px; border-radius: 6px;
}
.pm-close:hover { background: #f1f5f9; color: #475569; }
.pm-body {
	padding: 20px; overflow-y: auto; flex: 1;
	display: flex; flex-direction: column; gap: 16px;
}
.pm-section {
	background: #fafafa; border: 1px solid #f1f5f9; border-radius: 10px;
	padding: 14px;
}
.pm-section-title {
	font-size: 12px; font-weight: 800; color: #475569; text-transform: uppercase;
	letter-spacing: 0.05em; margin-bottom: 10px;
}
.pm-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pm-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
@media (max-width: 600px) { .pm-grid-2, .pm-grid-3 { grid-template-columns: 1fr; } }
.pm-field {
	display: flex; flex-direction: column; gap: 4px;
}
.pm-field span { font-size: 11px; font-weight: 700; color: #64748b; }
.pm-field input, .pm-field select, .pm-body textarea {
	padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 7px;
	font-size: 13px; font-family: inherit;
}
.pm-field input:focus, .pm-field select:focus, .pm-body textarea:focus {
	border-color: #ec4899; outline: none; box-shadow: 0 0 0 3px rgba(236,72,153,0.12);
}
.pm-field input[type="color"] { padding: 4px; height: 36px; cursor: pointer; }
.pm-field input:disabled { background: #f8fafc; color: #94a3b8; cursor: not-allowed; }
.pm-check {
	display: flex; align-items: center; gap: 8px; font-size: 13px; color: #475569;
	margin: 6px 0; cursor: pointer;
}
.pm-check input { width: 16px; height: 16px; }
.pm-multi-row { margin: 8px 0; }
.pm-multi { margin-bottom: 10px; }
.pm-multi-label { font-size: 11px; font-weight: 700; color: #64748b; margin-bottom: 6px; }
.pm-multi-opts {
	display: flex; flex-wrap: wrap; gap: 8px; padding: 8px;
	background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
	max-height: 180px; overflow-y: auto;
}
.pm-mcb {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 4px 10px; background: #f8fafc; border-radius: 6px;
	font-size: 12px; cursor: pointer; color: #475569;
}
.pm-mcb:has(input:checked) { background: #fdf2f8; color: #be185d; font-weight: 600; }
.pm-mcb input { margin: 0; }
.pm-help { font-size: 11px; color: #94a3b8; margin: 6px 2px; font-style: italic; }
.pm-empty, .pm-error { font-size: 12px; color: #94a3b8; padding: 4px; }
.pm-error { color: #b91c1c; }
.pm-loading { color: #94a3b8; font-style: italic; }

.pm-target-guests { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #e2e8f0; }
.pm-target-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.pm-target-row {
	display: flex; align-items: center; gap: 8px;
	background: #fff; border: 1px solid #e2e8f0; border-radius: 6px;
	padding: 6px 10px; font-size: 12.5px;
}
.pm-target-name { flex: 1; }
.pm-target-rm {
	background: transparent; border: 0; color: #94a3b8;
	cursor: pointer; font-size: 16px; padding: 0 4px;
}
.pm-target-rm:hover { color: #b91c1c; }
.pm-target-add { position: relative; }
.pm-target-add input {
	width: 100%; padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 7px;
	font-size: 13px;
}
.pm-target-results {
	background: #fff; border: 1px solid #e2e8f0; border-radius: 7px;
	margin-top: 4px; max-height: 200px; overflow-y: auto;
}
.pm-target-result {
	padding: 8px 10px; font-size: 12.5px; cursor: pointer;
	border-bottom: 1px solid #f8fafc;
}
.pm-target-result:hover { background: #fdf2f8; }
.pm-target-result:last-child { border-bottom: 0; }
.pm-mute { color: #94a3b8; font-size: 11.5px; }

.pm-foot {
	padding: 14px 20px; border-top: 1px solid #e2e8f0;
	display: flex; gap: 10px; justify-content: flex-end;
}
.pm-btn {
	padding: 9px 16px; border-radius: 8px; font-weight: 700; cursor: pointer;
	font-size: 13px; border: 1px solid transparent;
}
.pm-btn-cancel {
	background: #fff; border-color: #e2e8f0; color: #475569;
}
.pm-btn-cancel:hover { background: #f8fafc; }
.pm-btn-save {
	background: linear-gradient(135deg, #ec4899, #be185d);
	color: #fff;
}
.pm-btn-save:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(236,72,153,0.3); }

/* Panneau "Promos appliquées" sur Folio admin */
.promo-panel-empty, .promo-panel-loading, .promo-panel-error {
	padding: 12px 14px; background: #fafafa; border: 1px dashed #e2e8f0;
	border-radius: 8px; color: #64748b; font-size: 13px; display: flex;
	align-items: center; justify-content: space-between; gap: 10px;
}
.promo-panel-error { color: #b91c1c; background: #fef2f2; border-color: #fca5a5; }
.promo-panel-add {
	background: #ec4899; color: #fff; border: 0; border-radius: 6px;
	padding: 6px 12px; cursor: pointer; font-weight: 700; font-size: 12px;
}
.promo-panel-add:hover { background: #be185d; }
.promo-panel-head {
	display: flex; align-items: center; gap: 10px;
	padding: 10px 14px; background: linear-gradient(135deg, #fdf2f8, #fce7f3);
	border: 1px solid #f9a8d4; border-radius: 8px 8px 0 0;
}
.pp-title { font-weight: 800; font-size: 13px; color: #831843; flex: 1; }
.pp-total { font-weight: 800; color: #ec4899; font-size: 15px; }
.promo-panel-list {
	background: #fff; border: 1px solid #f9a8d4; border-top: 0;
	border-radius: 0 0 8px 8px; padding: 6px;
}
.pp-row {
	display: flex; align-items: center; gap: 10px;
	padding: 8px 10px; border-bottom: 1px solid #fdf2f8;
}
.pp-row:last-child { border-bottom: 0; }
.pp-icon {
	width: 28px; height: 28px; border-radius: 6px;
	display: grid; place-items: center; font-size: 14px; color: #fff;
}
.pp-info { flex: 1; min-width: 0; }
.pp-code { font-size: 12.5px; font-weight: 800; color: #0f172a; }
.pp-label { font-size: 11.5px; color: #64748b; }
.pp-amount { font-weight: 800; color: #ec4899; font-size: 14px; }
.pp-detach {
	background: transparent; border: 1px solid #fbcfe8; border-radius: 6px;
	width: 26px; height: 26px; cursor: pointer; color: #be185d; font-size: 14px;
	font-weight: 800;
}
.pp-detach:hover { background: #fee2e2; border-color: #fca5a5; color: #991b1b; }

/* Onglet Promos dans drawer Nouvelle Réservation */
.rf-promos-pane { padding: 12px 14px; }
.rf-promo-input-row {
	display: flex; gap: 8px; margin-bottom: 12px;
}
.rf-promo-code-input {
	flex: 1; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 8px;
	font-size: 13px; font-family: monospace; text-transform: uppercase;
	letter-spacing: 0.05em; font-weight: 700;
}
.rf-promo-code-input:focus { border-color: #ec4899; outline: none; box-shadow: 0 0 0 3px rgba(236,72,153,0.12); }
.rf-promo-validate-btn {
	padding: 10px 16px; background: linear-gradient(135deg, #ec4899, #be185d);
	color: #fff; border: 0; border-radius: 8px; cursor: pointer; font-weight: 700;
}
.rf-promo-suggestions { margin-top: 16px; }
.rf-promo-sugg-title {
	font-size: 11px; font-weight: 800; color: #64748b; text-transform: uppercase;
	letter-spacing: 0.05em; margin-bottom: 8px;
}
.rf-promo-sugg-card {
	display: flex; align-items: center; gap: 12px;
	background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
	padding: 10px 12px; margin-bottom: 8px; cursor: pointer;
	transition: border-color 0.12s, transform 0.12s;
}
.rf-promo-sugg-card:hover { border-color: #ec4899; transform: translateX(2px); }
.rf-promo-sugg-card.applied { background: #fdf2f8; border-color: #ec4899; }
.rf-promo-sugg-info { flex: 1; min-width: 0; }
.rf-promo-sugg-code { font-weight: 800; color: #0f172a; font-size: 13px; }
.rf-promo-sugg-label { font-size: 12px; color: #64748b; }
.rf-promo-sugg-saving { font-weight: 800; color: #ec4899; }

/* Toolbar : icône Promos sur stay-view */
.aside-btn .ab-i-promos { background: #fdf2f8; color: #ec4899; }
.aside-btn[data-aside="promos"]:hover .ab-i-promos {
	background: #fbcfe8; color: #be185d;
}

/* Site /stay : champ code promo + carrousel */
.stay-promo-banner {
	background: linear-gradient(135deg, #ec4899, #be185d);
	color: #fff; border-radius: 12px; padding: 14px 18px;
	display: flex; align-items: center; gap: 14px;
	margin-bottom: 20px; box-shadow: 0 4px 14px rgba(236,72,153,0.2);
}
.stay-promo-banner-icon { font-size: 28px; }
.stay-promo-banner-text { flex: 1; }
.stay-promo-banner-title { font-weight: 800; font-size: 15px; }
.stay-promo-banner-sub { font-size: 13px; opacity: 0.9; }

.stay-promo-input-row {
	display: flex; gap: 8px; margin: 14px 0;
}
.stay-promo-input {
	flex: 1; padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 10px;
	font-size: 14px; font-family: monospace; text-transform: uppercase;
}
.stay-promo-btn {
	padding: 12px 18px; background: #ec4899; color: #fff; border: 0;
	border-radius: 10px; cursor: pointer; font-weight: 700;
}
.stay-promo-applied {
	background: #fdf2f8; border: 1px solid #f9a8d4; border-radius: 10px;
	padding: 12px 14px; margin: 14px 0;
	display: flex; align-items: center; gap: 12px;
}
.stay-promo-applied-icon { font-size: 22px; }
.stay-promo-applied-text { flex: 1; }
.stay-promo-applied-code { font-weight: 800; color: #831843; font-size: 14px; }
.stay-promo-applied-label { font-size: 12.5px; color: #be185d; }
.stay-promo-applied-saving { font-weight: 800; color: #ec4899; font-size: 16px; }
.stay-promo-applied-rm {
	background: transparent; border: 1px solid #f9a8d4; border-radius: 6px;
	color: #be185d; cursor: pointer; padding: 4px 10px; font-weight: 700;
}
.stay-promo-applied-rm:hover { background: #fee2e2; }

/* ─── Post-it (notes flottantes globales — toutes pages) ─────────── */
/* Migrated from stay-view.html so notes render with styles on /dashboard,
   /folio, /reservations, etc. — pas seulement /calendar. */
.cal-postit {
	position: fixed; z-index: 80;
	border-radius: 4px;
	box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18), 0 1px 3px rgba(15,23,42,0.08);
	display: flex; flex-direction: column;
	font-family: "Caveat", "Marker Felt", "Comic Sans MS", cursive;
	transition: opacity 0.18s, transform 0.18s;
	border: 1px solid rgba(0,0,0,0.06);
}
.cal-postit::before {
	content: ""; position: absolute; top: 0; left: 0;
	border-style: solid; border-width: 12px 12px 0 0;
	border-color: rgba(255,255,255,0.6) transparent transparent transparent;
	opacity: 0.6;
}
.cal-postit .pn-head {
	display: flex; align-items: center; gap: 8px;
	padding: 8px 10px 6px; cursor: grab;
	border-bottom: 1px dashed rgba(0,0,0,0.12);
	background: rgba(0,0,0,0.03);
}
.cal-postit .pn-head:active { cursor: grabbing; }
.cal-postit .pn-icon { font-size: 14px; }
.cal-postit .pn-meta {
	flex: 1; font-size: 12px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: rgba(0,0,0,0.7); line-height: 1.25; font-weight: 600;
}
.cal-postit .pn-time { font-size: 10px; font-weight: 500; color: rgba(0,0,0,0.5); }
.cal-postit .pn-close {
	border: 0; background: rgba(0,0,0,0.06); width: 22px; height: 22px;
	border-radius: 50%; font-size: 16px; line-height: 1; cursor: pointer;
	color: rgba(0,0,0,0.6); padding: 0; transition: all 0.12s;
	font-family: -apple-system, sans-serif;
}
.cal-postit .pn-close:hover { background: #dc2626; color: #fff; transform: scale(1.1); }
.cal-postit .pn-content {
	flex: 1; padding: 10px 14px; border: 0; background: transparent;
	resize: none; outline: none;
	font-family: "Caveat", "Marker Felt", "Comic Sans MS", cursive;
	font-size: 17px; line-height: 1.4; color: #1f2937;
	overflow-y: auto;
}
.cal-postit .pn-content::placeholder { color: rgba(0,0,0,0.35); font-style: italic; }
.cal-postit .pn-resize {
	position: absolute; bottom: 0; right: 0; width: 14px; height: 14px;
	cursor: nwse-resize; opacity: 0.4;
	background: linear-gradient(135deg, transparent 50%, rgba(0,0,0,0.4) 50%);
}
.cal-postit .pn-resize:hover { opacity: 0.8; }
.cal-postit .pn-img-btn {
	border: 0; background: rgba(0,0,0,0.06); width: 22px; height: 22px;
	border-radius: 50%; font-size: 11px; cursor: pointer; color: rgba(0,0,0,0.6);
	padding: 0; transition: all 0.12s; font-family: -apple-system, sans-serif;
	display: flex; align-items: center; justify-content: center;
}
.cal-postit .pn-img-btn:hover { background: #1e40af; color: #fff; transform: scale(1.1); }
.cal-postit .pn-img-btn:disabled { opacity: 0.5; cursor: wait; }
.cal-postit .pn-images {
	display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 10px 4px;
	max-height: 90px; overflow-y: auto;
}
.cal-postit .pn-img-thumb {
	position: relative; width: 50px; height: 50px; border-radius: 4px;
	overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.2); flex-shrink: 0;
	cursor: pointer;
}
.cal-postit .pn-img-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cal-postit .pn-img-del {
	position: absolute; top: 1px; right: 1px;
	width: 16px; height: 16px; padding: 0; border: 0;
	background: rgba(0,0,0,0.6); color: #fff; border-radius: 50%;
	font-size: 11px; line-height: 1; cursor: pointer;
	display: none;
}
.cal-postit .pn-img-thumb:hover .pn-img-del { display: block; }
.pn-lightbox {
	position: fixed; inset: 0; background: rgba(0,0,0,0.92);
	z-index: 2000; display: flex; align-items: center; justify-content: center;
	cursor: zoom-out;
}
.pn-lightbox img { max-width: 92vw; max-height: 92vh; box-shadow: 0 10px 50px rgba(0,0,0,0.6); }
.pn-lightbox .pn-lb-close {
	position: absolute; top: 18px; right: 18px;
	width: 40px; height: 40px; border: 0; border-radius: 50%;
	background: rgba(255,255,255,0.2); color: #fff; font-size: 22px; cursor: pointer;
}
.pn-lightbox .pn-lb-close:hover { background: rgba(255,255,255,0.4); }

/* ────────────────────────────────────────────────────────────────────────
   Drawer Client — cartes réservation + panneau Fiche de police + section
   titles. Initialement défini uniquement dans stay-view.html → cartes non
   stylées sur services-planning et autres pages utilisant openClientDrawer.
   Maintenant partagé via hotel.css (chargé partout).
   ──────────────────────────────────────────────────────────────────────── */
.hd-client-section-title {
	font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase;
	letter-spacing: 0.04em; margin: 18px 0 8px;
}
.hd-client-resa-card {
	background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
	padding: 10px 12px; margin-bottom: 8px; cursor: pointer;
	transition: border-color 0.12s, box-shadow 0.12s;
}
.hd-client-resa-card:hover { border-color: #2563eb; box-shadow: 0 4px 12px rgba(37,99,235,0.10); }
.hd-client-resa-card.cancelled { background: #fef2f2; border-color: #fca5a5; }
.hd-client-resa-card.cancelled .hd-cr-ref,
.hd-client-resa-card.cancelled .hd-cr-dates,
.hd-client-resa-card.cancelled .hd-cr-meta,
.hd-client-resa-card.cancelled .hd-cr-total { color: #991b1b; }
.hd-client-resa-card.cancelled .hd-cr-dates { text-decoration: line-through; text-decoration-color: rgba(153, 27, 27, 0.5); }
.hd-cr-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hd-cr-ref { font-family: ui-monospace, Consolas, monospace; font-size: 10.5px; color: #94a3b8; }
.hd-cr-status { padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.hd-cr-st-confirmed { background: #dbeafe; color: #1e40af; }
.hd-cr-st-inhouse { background: #d1fae5; color: #065f46; }
.hd-cr-st-departed { background: #f1f5f9; color: #475569; }
.hd-cr-st-cancelled { background: #fee2e2; color: #991b1b; }
.hd-cr-dates { margin-top: 4px; font-size: 12.5px; font-weight: 700; color: #0f172a; }
.hd-cr-dates .arrow { margin: 0 6px; color: #94a3b8; }
.hd-cr-meta { margin-top: 3px; font-size: 11.5px; color: #475569; }
.hd-cr-total { margin-top: 3px; font-size: 11.5px; font-weight: 700; }
.hd-cr-foot {
	margin-top: 6px; padding-top: 6px; border-top: 1px dashed #e2e8f0;
	display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.hd-client-resa-card.cancelled .hd-cr-foot { border-top-color: rgba(252, 165, 165, 0.6); }
.hd-cr-folio-link {
	display: inline-flex; align-items: center; gap: 4px;
	padding: 3px 9px; border-radius: 6px;
	background: #eff6ff; color: #1e40af;
	font-size: 11px; font-weight: 700; text-decoration: none;
	border: 1px solid #bfdbfe; transition: background 0.12s, transform 0.1s;
}
.hd-cr-folio-link:hover { background: #dbeafe; transform: translateY(-1px); }
.hd-client-resa-card.cancelled .hd-cr-folio-link { background: #fff; color: #991b1b; border-color: #fca5a5; }
.hd-client-resa-card.cancelled .hd-cr-folio-link:hover { background: #fee2e2; }

/* Panneau Fiche de police (Cerfa 11-0020) */
.hd-fiche-panel {
	margin: 16px 0; border-radius: 10px; overflow: hidden;
	border: 1px solid #1e3a8a;
	box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}
.hd-fiche-head {
	background: linear-gradient(135deg, #1e3a8a, #1e40af); color: #fff;
	padding: 11px 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.hd-fiche-title { font-size: 13px; font-weight: 800; }
.hd-fiche-legal {
	margin-left: auto; font-size: 10px; font-weight: 600;
	background: rgba(255,255,255,0.18); padding: 3px 8px; border-radius: 99px;
	text-transform: uppercase; letter-spacing: 0.04em;
}
.hd-fiche-body { background: #f8fafc; padding: 14px; }
.hd-fiche-body label {
	display: block; font-size: 11px; font-weight: 700; color: #64748b;
	text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px;
}
.hd-fiche-select {
	width: 100%; padding: 9px 11px; border: 1.5px solid #cbd5e1; border-radius: 8px;
	font-size: 12.5px; background: #fff; color: #1e293b; cursor: pointer;
	margin-bottom: 10px;
}
.hd-fiche-select:focus { border-color: #1e3a8a; outline: none; box-shadow: 0 0 0 3px rgba(30,58,138,0.12); }
.hd-fiche-btn {
	width: 100%; padding: 11px; border: 0; border-radius: 8px;
	background: linear-gradient(135deg, #1e40af, #2563eb); color: #fff;
	font-size: 13px; font-weight: 800; cursor: pointer;
	transition: filter 0.12s, transform 0.1s;
}
.hd-fiche-btn:hover:not(:disabled) { filter: brightness(1.08); }
.hd-fiche-btn:active:not(:disabled) { transform: translateY(1px); }
.hd-fiche-btn:disabled { opacity: 0.7; cursor: wait; }
.hd-fiche-hint {
	margin-top: 10px; font-size: 10.5px; color: #64748b; line-height: 1.5;
}

/* Loading / Error states dans le drawer client */
.hd-loading { padding: 30px; text-align: center; color: #64748b; font-size: 13px; }
.hd-error { padding: 18px; text-align: center; color: #991b1b; background: #fef2f2;
	border: 1px solid #fca5a5; border-radius: 8px; font-size: 12.5px;
}

/* Pulse subtle pour le point rouge des alertes non lues (drawer) */
@keyframes pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.6; transform: scale(1.25); }
}

/* ─── Post-it Manager drawer (HOTEL.openPostitManager) ───────────
   Migré de stay-view.html → global hotel.css le 2026-05-22 pour que
   le drawer fonctionne sur TOUTES les pages (sidebar nav "📌 Post-it"),
   pas seulement /calendar où ces classes étaient initialement définies. */
.hd-drawer-postit .hd-head {
	background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%) !important;
	color: #fff !important;
}
.hd-drawer-postit .hd-head .hd-title,
.hd-drawer-postit .hd-head .hd-sub { color: #fff !important; }
.hd-drawer-postit .hd-body { padding: 0 !important; background: #fafaf9; }
.pm-tabs { display: flex; padding: 12px 18px 0; gap: 8px; border-bottom: 1px solid #e7e5e4; background: #fff; }
.pm-tab { background: transparent; border: 0; padding: 9px 16px; border-radius: 8px 8px 0 0; font-size: 13px; font-weight: 700; color: #64748b; cursor: pointer; }
.pm-tab.active { background: #eab308; color: #fff; }
.pm-toolbar { display: flex; align-items: center; gap: 14px; padding: 10px 18px; background: #fff; border-bottom: 1px solid #e7e5e4; }
.pm-sel-all { font-size: 12.5px; font-weight: 600; color: #475569; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.pm-sel-count { font-size: 11.5px; color: #94a3b8; font-weight: 700; }
.pm-print-btn { margin-left: auto; background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); color: #fff; border: 0; padding: 8px 16px; border-radius: 8px; font-weight: 700; font-size: 12.5px; cursor: pointer; transition: all 0.12s; }
.pm-print-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pm-print-btn:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(30,58,138,0.3); }
.pm-list { padding: 14px 18px; }
.pm-loading, .pm-empty, .pm-err { text-align: center; padding: 30px; color: #94a3b8; }
.pm-err { color: #dc2626; }
.pm-item {
	display: grid; grid-template-columns: 30px 1fr auto; gap: 10px;
	padding: 12px 14px; border-radius: 10px; margin-bottom: 8px;
	box-shadow: 0 2px 6px rgba(15,23,42,0.08);
	border: 1px solid rgba(0,0,0,0.06);
}
.pm-item-check { display: flex; align-items: flex-start; padding-top: 2px; }
.pm-item-check input { width: 17px; height: 17px; cursor: pointer; }
.pm-item-meta { font-size: 11px; color: rgba(0,0,0,0.65); margin-bottom: 6px; font-weight: 600; }
.pm-item-content { font-size: 13.5px; line-height: 1.45; color: #1f2937; white-space: pre-wrap; min-height: 20px; font-family: "Caveat","Marker Felt",cursive; }
.pm-item-imgs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.pm-item-imgs img { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; cursor: zoom-in; }
.pm-item-actions { display: flex; flex-direction: column; gap: 4px; }
.pm-item-actions button {
	width: 28px; height: 28px; padding: 0; border: 1px solid rgba(0,0,0,0.15);
	background: #fff; border-radius: 6px; cursor: pointer; font-size: 13px; transition: all 0.12s;
}
.pm-item-actions button:hover { background: rgba(0,0,0,0.06); }
.pm-act-delete:hover { background: #dc2626; color: #fff; border-color: #dc2626; }

/* ═══════════════════════════════════════════════════════════════════
 * Mission Drawer (msd-*) — extrait de www/stay-view.html
 * Utilisé par /calendar (vue Ménage) ET /team-planning
 * ═══════════════════════════════════════════════════════════════════ */
.msd-drawer .hd-body { padding: 0 !important; }
.msd-tabs {
	display: flex; gap: 4px; padding: 12px 14px 0;
	border-bottom: 1px solid #e2e8f0; background: #f8fafc;
	overflow-x: auto;
}
.msd-tab {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 9px 14px; border: none; background: transparent;
	font-size: 13px; font-weight: 700; color: #64748b;
	cursor: pointer; border-bottom: 2px solid transparent;
	white-space: nowrap;
}
.msd-tab:hover { color: #0f172a; }
.msd-tab.active { color: #7c3aed; border-bottom-color: #7c3aed; background: #fff; }
.msd-tab-ic { font-size: 14px; }
.msd-pane-wrap { padding: 16px 18px; max-height: calc(100vh - 200px); overflow-y: auto; }
.msd-cols {
	display: grid; grid-template-columns: 1.3fr 1fr;
	gap: 0;
	max-height: calc(100vh - 200px);
}
.msd-col-left { border-right: 1px solid #e2e8f0; }
.msd-col-right { background: #f8fafc; }
.msd-col-left .msd-pane-wrap, .msd-col-right .msd-right-wrap {
	padding: 16px 18px; max-height: calc(100vh - 200px); overflow-y: auto;
}
@media (max-width: 1100px) {
	.msd-cols { grid-template-columns: 1fr; }
	.msd-col-left { border-right: none; border-bottom: 1px solid #e2e8f0; }
}

/* Right panel — éléments communs */
.msd-rp-head {
	font-size: 11px; font-weight: 800; color: #475569;
	text-transform: uppercase; letter-spacing: 0.06em;
	margin-bottom: 10px; padding: 0 2px;
}
.msd-rp-card {
	background: #fff; border: 1px solid #e2e8f0;
	border-radius: 10px; padding: 12px; margin-bottom: 4px;
}
.msd-rp-card-head {
	font-size: 11px; font-weight: 800; color: #1e40af;
	text-transform: uppercase; letter-spacing: 0.04em;
	padding: 4px 0 8px; border-bottom: 1px solid #f1f5f9;
	margin-bottom: 8px;
}
.msd-rp-empty { padding: 20px; text-align: center; color: #94a3b8; font-style: italic; font-size: 12.5px; }
.msd-rp-loading { padding: 16px; text-align: center; color: #94a3b8; }
.msd-rp-search { margin-bottom: 8px; }
.msd-rp-search-input {
	width: 100%; padding: 7px 12px; border: 1.5px solid #e2e8f0;
	border-radius: 8px; font-size: 13px;
}
.msd-rp-search-input:focus { outline: none; border-color: #7c3aed; }

/* Sommaire compact (Mission tab) */
.msd-rp-summary { display: flex; flex-direction: column; gap: 6px; }
.msd-rp-line {
	display: flex; justify-content: space-between; gap: 12px;
	font-size: 12.5px; padding: 4px 0;
	border-bottom: 1px dashed #f1f5f9;
}
.msd-rp-line:last-child { border-bottom: none; }
.msd-rp-line span { color: #64748b; }
.msd-rp-line strong { color: #0f172a; font-weight: 700; }
.msd-rp-act { width: 100%; margin-bottom: 6px; }

/* Pills catégorie chambre (Propreté) — alignés avec les filtres .hk-pill */
.msd-rp-cat-pills {
	display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.msd-rp-cat {
	padding: 8px 10px; border-radius: 8px; cursor: pointer;
	background: #fff; border: 1.5px solid #e2e8f0;
	font-size: 12px; font-weight: 700; color: var(--c, #475569);
	transition: all 0.12s;
	display: flex; align-items: center; justify-content: center; gap: 6px;
}
.msd-rp-cat:hover { border-color: var(--c); }
.msd-rp-cat.active {
	background: var(--c); color: #fff; border-color: var(--c);
}
.msd-rp-cat-current {
	margin-top: 8px; padding-top: 8px;
	border-top: 1px dashed #e2e8f0;
	font-size: 12px; color: #64748b;
}
.msd-rp-cat-current strong { color: #0f172a; }

/* Member missions list */
.msd-mm-groups { display: flex; flex-direction: column; gap: 8px; }
.msd-mm-group {
	background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
	overflow: hidden;
}
.msd-mm-head {
	width: 100%; display: flex; align-items: center; gap: 8px;
	padding: 10px 12px; border: none; background: #f8fafc; cursor: pointer;
	font-size: 13px; font-weight: 700; color: #0f172a;
}
.msd-mm-head:hover { background: #f1f5f9; }
.msd-mm-chev { color: #94a3b8; font-size: 11px; min-width: 12px; }
.msd-mm-lab { flex: 1; text-align: left; }
.msd-mm-cnt {
	display: inline-block; min-width: 22px; padding: 2px 8px;
	background: #e2e8f0; color: #475569;
	border-radius: 999px; font-size: 11px; font-weight: 700;
}
.msd-mm-list { padding: 4px; display: flex; flex-direction: column; gap: 4px; }
.msd-mm-row {
	display: grid; grid-template-columns: 1fr auto auto;
	gap: 8px; align-items: center;
	padding: 8px 10px; border-radius: 8px;
	background: #fff; border: 1px solid #f1f5f9;
	cursor: pointer; transition: all 0.1s;
}
.msd-mm-row:hover { border-color: #c4b5fd; background: #faf5ff; }
.msd-mm-row-info { min-width: 0; }
.msd-mm-row-title { font-size: 13px; font-weight: 700; color: #0f172a; }
.msd-mm-row-meta { font-size: 11px; color: #64748b; margin-top: 2px; }
.msd-mm-tr {
	width: 30px; height: 30px; border-radius: 6px;
	border: 1.5px solid #c4b5fd; background: #faf5ff; color: #7c3aed;
	cursor: pointer; font-size: 14px;
}
.msd-mm-tr:hover { background: #7c3aed; color: #fff; }

/* Mini modal de transfert rapide */
.msd-mini-modal-bg {
	position: fixed; inset: 0; background: rgba(15,23,42,0.5);
	display: grid; place-items: center; z-index: 9999;
}
.msd-mini-modal {
	background: #fff; border-radius: 12px; padding: 18px 20px;
	min-width: 360px; max-width: 90vw;
	display: flex; flex-direction: column; gap: 10px;
}
.msd-mini-head { font-size: 14px; font-weight: 800; color: #0f172a; }
.msd-mini-sel, .msd-mini-reason {
	padding: 8px 12px; border: 1.5px solid #e2e8f0; border-radius: 6px;
	font-size: 13px; font-family: inherit;
}
.msd-mini-foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }

/* Checklists attachées */
.msd-cla-row {
	display: grid; grid-template-columns: 1fr auto;
	gap: 10px; align-items: center;
	padding: 8px 10px; border-bottom: 1px solid #f1f5f9;
}
.msd-cla-row:last-of-type { border-bottom: none; }
.msd-cla-info { min-width: 0; }
.msd-cla-title { font-size: 13px; font-weight: 700; color: #0f172a; }
.msd-cla-meta { font-size: 11px; color: #64748b; margin-top: 2px; }
.msd-cla-rm {
	width: 28px; height: 28px; border-radius: 6px;
	border: 1.5px solid #fca5a5; background: #fef2f2; color: #b91c1c;
	cursor: pointer; font-size: 14px; font-weight: 800;
}
.msd-cla-rm:hover { background: #b91c1c; color: #fff; }
.msd-cla-add {
	display: grid; grid-template-columns: 1fr auto;
	gap: 8px; align-items: center;
	padding-top: 10px; margin-top: 8px;
	border-top: 1px dashed #e2e8f0;
}
.msd-cla-sel {
	padding: 7px 10px; border: 1.5px solid #e2e8f0; border-radius: 6px;
	font-size: 12.5px; background: #fff;
}
.msd-cla-prog { padding: 6px 0; }
.msd-cla-prog-head {
	display: flex; justify-content: space-between;
	font-size: 12.5px; font-weight: 700; color: #0f172a; margin-bottom: 4px;
}
.msd-cla-prog-cnt { color: #d97706; font-weight: 800; }
.msd-cla-prog-bar {
	height: 6px; background: #f1f5f9; border-radius: 999px; overflow: hidden;
}
.msd-cla-prog-fill {
	height: 100%; background: linear-gradient(90deg, #f59e0b, #ea580c);
	transition: width 0.3s;
}

/* Reservations row (chambre tab) */
.msd-rv-row {
	display: grid; grid-template-columns: 1fr auto;
	gap: 8px; align-items: center;
	padding: 8px 10px; border-bottom: 1px solid #f1f5f9;
}
.msd-rv-row:last-of-type { border-bottom: none; }
.msd-rv-row.is-current { background: #eff6ff; border-radius: 6px; padding-left: 8px; }
.msd-rv-title { font-size: 12.5px; font-weight: 700; color: #0f172a; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.msd-rv-meta { font-size: 11px; color: #64748b; margin-top: 2px; }

/* Pay summary */
.msd-pay-summary {
	display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
	margin-bottom: 12px;
}
.msd-pay-stat {
	background: #f8fafc; border-radius: 8px; padding: 10px;
	text-align: center;
}
.msd-pay-v { font-size: 18px; font-weight: 800; }
.msd-pay-l { font-size: 11px; color: #64748b; font-weight: 700; }
.msd-pay-list { display: flex; flex-direction: column; gap: 4px; }
.msd-pay-amt {
	font-size: 12.5px; font-weight: 800; color: #047857;
	min-width: 70px; text-align: right;
}

/* ─── Drawer commentaire ménage 2 colonnes ───────────────── */
.hkc-drawer .hd-body { padding: 0 !important; }
.hkc-cols {
	display: grid; grid-template-columns: 1.3fr 1fr;
	gap: 0; max-height: calc(100vh - 200px);
}
.hkc-col-left { padding: 16px 18px; border-right: 1px solid #e2e8f0; }
.hkc-col-right {
	padding: 16px 18px; background: #f8fafc;
	max-height: calc(100vh - 200px); overflow-y: auto;
}
@media (max-width: 1100px) {
	.hkc-cols { grid-template-columns: 1fr; }
	.hkc-col-left { border-right: none; border-bottom: 1px solid #e2e8f0; }
}

.msd-pane { display: flex; flex-direction: column; gap: 14px; }
.msd-card {
	background: #fff; border: 1px solid #e2e8f0;
	border-radius: 10px; padding: 14px 16px;
}
.msd-section-title {
	font-size: 13px; font-weight: 800; color: #0f172a;
	margin-bottom: 12px; display: flex; align-items: center; gap: 6px;
}
.msd-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 10px; }
.msd-field { display: flex; flex-direction: column; gap: 4px; }
.msd-field label, .msd-label {
	font-size: 11px; font-weight: 700; color: #475569;
	text-transform: uppercase; letter-spacing: 0.04em;
	margin-bottom: 4px; display: block;
}
.msd-readonly {
	padding: 8px 12px; background: #f8fafc; border-radius: 6px;
	font-size: 13px; color: #0f172a; font-weight: 600;
}
.msd-input {
	padding: 8px 12px; border: 1.5px solid #e2e8f0; border-radius: 6px;
	font-size: 13px; font-family: inherit; color: #0f172a; background: #fff;
	width: 100%;
}
.msd-input:focus { outline: none; border-color: #7c3aed; }
.msd-notes { resize: vertical; min-height: 80px; }

/* Composant notes structurées : auto (gris) + humaines (rouge encadré) */
.msd-notes-display { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.msd-notes-auto {
	background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 8px;
	padding: 8px 12px;
}
.msd-notes-auto-line {
	font-size: 12px; color: #475569; line-height: 1.5;
}
.msd-notes-auto-line + .msd-notes-auto-line { margin-top: 4px; padding-top: 4px; border-top: 1px solid #e2e8f0; }
/* Section ALERTE (rouge) — notes venant de "l'autre côté" du flux opérationnel
 * (ex: notes d'un manager affichées en rouge dans /team pour l'équipier). */
.msd-notes-human.is-alert {
	background: #fef2f2; border: 2px solid #fca5a5; border-radius: 10px;
	padding: 10px 12px;
	box-shadow: 0 2px 4px rgba(220, 38, 38, 0.12);
}
.msd-notes-human.is-alert .msd-notes-human-title {
	color: #b91c1c;
}
.msd-notes-human.is-alert .msd-notes-count {
	background: #b91c1c; color: #fff;
}
.msd-notes-line.is-alert {
	background: #fff; border-radius: 6px;
	padding: 7px 10px; margin-bottom: 6px;
	border-left: 3px solid #dc2626;
}

/* Section MIENNES (gris doux) — notes venant de la même source que la vue.
 * Affichage moins agressif pour ne pas créer de fausse alerte sur ses
 * propres notes. */
.msd-notes-human.is-mine {
	background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
	padding: 10px 12px;
}
.msd-notes-human.is-mine .msd-notes-human-title {
	color: #475569;
}
.msd-notes-human.is-mine .msd-notes-count {
	background: #64748b; color: #fff;
}
.msd-notes-line {
	background: #fff; border-radius: 6px;
	padding: 7px 10px; margin-bottom: 6px;
	border-left: 3px solid #94a3b8;
}
.msd-notes-line:last-child { margin-bottom: 0; }

/* Badge source dans le meta (ex: "depuis /team" en orange) */
.msd-notes-src-badge {
	display: inline-block; padding: 1px 6px;
	border-radius: 9px; font-size: 9.5px; font-weight: 700;
	background: #fed7aa; color: #9a3412; margin-left: 4px;
}
.msd-notes-src-badge.src-team { background: #dbeafe; color: #1e40af; }
.msd-notes-src-badge.src-main { background: #fed7aa; color: #9a3412; }
.msd-notes-human-title {
	font-size: 12px; font-weight: 800;
	text-transform: uppercase; letter-spacing: 0.03em;
	margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.msd-notes-count {
	padding: 1px 7px; border-radius: 9px;
	font-size: 10px; font-weight: 700;
}
.msd-notes-human + .msd-notes-human { margin-top: 8px; }
.msd-notes-meta {
	font-size: 10.5px; color: #64748b; font-weight: 600;
	margin-bottom: 3px;
}
.msd-notes-text {
	font-size: 13px; color: #1f2937; white-space: pre-wrap; word-wrap: break-word;
}
/* Mini-marque "(legacy)" pour signaler une note sans datation explicite,
 * triée à la date de création de la mission. */
.msd-notes-legacy-mark {
	display: inline-block;
	background: #fef3c7; color: #92400e;
	padding: 0 5px; border-radius: 7px;
	font-size: 9px; font-weight: 700;
	margin-left: 4px; text-transform: uppercase;
}
.msd-notes-line.is-legacy { border-left-color: #f59e0b; }
.msd-notes-empty {
	color: #94a3b8; font-style: italic; padding: 12px;
	text-align: center; background: #f8fafc; border-radius: 8px;
	border: 1px dashed #cbd5e1;
}
.msd-add-note-row { background: #fff; }
.msd-add-note-input { min-height: 60px; resize: vertical; }
.msd-status-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.msd-stat-pill {
	padding: 6px 12px; border: 1.5px solid #e2e8f0; border-radius: 999px;
	background: #fff; font-size: 12px; font-weight: 700; color: #475569;
	cursor: pointer;
}
.msd-stat-pill:hover { border-color: #7c3aed; color: #7c3aed; }
.msd-stat-pill.active { background: #7c3aed; color: #fff; border-color: #7c3aed; }
.msd-btn {
	padding: 9px 14px; border: none; border-radius: 8px; cursor: pointer;
	font-size: 13px; font-weight: 700;
	transition: opacity 0.1s, transform 0.08s;
}
.msd-btn:hover { transform: translateY(-1px); }
.msd-btn-primary { background: #7c3aed; color: #fff; }
.msd-btn-secondary { background: #fff; color: #475569; border: 1.5px solid #e2e8f0; }
.msd-btn-warn { background: #f59e0b; color: #fff; }
.msd-btn-link { background: none; color: #1e40af; border: none; font-weight: 700; cursor: pointer; text-decoration: underline; padding: 0 4px; }
.msd-info-tag {
	padding: 8px 12px; background: #eef2ff; color: #3730a3;
	border-radius: 6px; font-size: 12px; line-height: 1.4;
	display: flex; align-items: center; gap: 8px;
}
.msd-empty {
	padding: 24px; text-align: center; color: #94a3b8;
	font-style: italic; font-size: 13px;
}
.msd-cli-head { display: flex; gap: 12px; align-items: center; }
.msd-cli-ava {
	width: 44px; height: 44px; border-radius: 50%;
	background: #7c3aed; color: #fff;
	display: grid; place-items: center;
	font-weight: 800; font-size: 14px;
}
.msd-cli-name { font-size: 15px; font-weight: 800; color: #0f172a; }
.msd-cli-meta { font-size: 12px; color: #64748b; margin-top: 2px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.msd-pill {
	display: inline-block; padding: 2px 8px; border-radius: 999px;
	font-size: 11px; font-weight: 700;
}
.msd-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.msd-stat-item {
	background: #f8fafc; border-radius: 8px; padding: 10px;
	text-align: center;
}
.msd-stat-v { font-size: 24px; font-weight: 800; color: #0f172a; }
.msd-stat-l { font-size: 11px; color: #64748b; font-weight: 700; }
.msd-transfer-card { background: #fef9c3; border-color: #fde68a; }
.msd-checklist { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; }
.msd-cl-item {
	display: flex; gap: 10px; align-items: center;
	padding: 8px 10px; background: #f8fafc; border-radius: 6px;
	font-size: 13px; color: #0f172a; cursor: pointer;
	transition: background 0.1s;
}
.msd-cl-item:hover { background: #f1f5f9; }
.msd-cl-item input { width: 16px; height: 16px; cursor: pointer; accent-color: #7c3aed; }
.msd-cl-item.is-done .msd-cl-lbl,
.msd-cl-item input:checked ~ .msd-cl-lbl,
.msd-cl-item input:checked + .msd-cl-num + .msd-cl-lbl { text-decoration: line-through; color: #94a3b8; }
.msd-cl-item.is-done { background: #f0fdf4; }
.msd-cl-num { color: #94a3b8; font-weight: 700; }
.msd-cl-prog-tag {
	margin-left: auto; font-size: 11px; font-weight: 700;
	color: #d97706; background: #fef3c7;
	padding: 2px 8px; border-radius: 999px;
}
/* Wrapper item checklist (avec photos en sous-bloc) */
.msd-cl-item-wrap {
	display: flex; flex-direction: column; gap: 4px;
	padding: 8px 10px; background: #f8fafc; border-radius: 6px;
}
.msd-cl-item-wrap.is-done { background: #f0fdf4; }
.msd-cl-item-wrap > .msd-cl-item {
	padding: 0; background: transparent;
}
.msd-cl-item-wrap > .msd-cl-item:hover { background: transparent; }
.msd-cl-photos {
	display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px;
	padding-left: 36px; /* aligné sur le libellé (checkbox + num) */
}
.msd-cl-photo {
	position: relative; width: 64px; height: 64px; border-radius: 8px;
	overflow: hidden; border: 1px solid #e2e8f0; background: #f1f5f9;
}
.msd-cl-photo img {
	width: 100%; height: 100%; object-fit: cover; cursor: pointer; display: block;
}
.msd-cl-photo-del {
	position: absolute; top: 2px; right: 2px; width: 20px; height: 20px;
	border-radius: 50%; background: rgba(0,0,0,0.65); color: #fff;
	border: 0; cursor: pointer; font-size: 14px; line-height: 18px; padding: 0;
	display: flex; align-items: center; justify-content: center;
}
.msd-cl-photo-del:hover { background: #dc2626; }
.msd-cl-photo-add {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 2px; width: 64px; height: 64px; border-radius: 8px;
	border: 1.5px dashed #cbd5e1; background: #fff; color: #1e40af;
	cursor: pointer; font-weight: 600; font-size: 10.5px; text-align: center;
}
.msd-cl-photo-add:hover { background: #eff6ff; border-color: #1e40af; }
.msd-cl-photo-add-ic { font-size: 20px; line-height: 1; }
.msd-cl-photo-add-lbl { font-size: 9.5px; }
.msd-info-banner {
	display: flex; gap: 10px; align-items: flex-start;
	padding: 11px 14px; margin-top: 4px;
	background: linear-gradient(135deg, #eff6ff, #dbeafe);
	border: 1px solid #93c5fd; border-radius: 8px;
	font-size: 12.5px; color: #1e3a8a; line-height: 1.5;
}
.msd-info-banner-ic { font-size: 16px; flex-shrink: 0; line-height: 1.2; }
.msd-info-banner strong { color: #1e3a8a; font-weight: 800; }

/* ─── Banner de transfert mission ─────────────────────────── */
.msd-transfer-banner {
	display: flex; gap: 14px; align-items: center;
	padding: 14px 16px; margin-bottom: 14px;
	background: linear-gradient(135deg, #fef3c7, #fde68a);
	border: 2px solid #f59e0b; border-radius: 10px;
	box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
	position: relative;
}
.msd-transfer-banner::before {
	content: ""; position: absolute; left: 0; top: 0; bottom: 0;
	width: 4px; background: #ea580c; border-radius: 10px 0 0 10px;
}
.msd-tb-icon {
	font-size: 28px; color: #ea580c; line-height: 1;
	width: 44px; height: 44px;
	background: #fff; border-radius: 50%;
	display: grid; place-items: center;
	box-shadow: 0 2px 6px rgba(234, 88, 12, 0.25);
}
.msd-tb-content { flex: 1; min-width: 0; }
.msd-tb-title {
	font-size: 13px; font-weight: 800; color: #92400e;
	text-transform: uppercase; letter-spacing: 0.04em;
	margin-bottom: 4px;
}
.msd-tb-meta { font-size: 12.5px; color: #7c2d12; line-height: 1.5; }
.msd-tb-meta strong { color: #431407; font-weight: 800; }
.msd-tb-meta em { color: #9a3412; font-style: italic; }
.msd-tb-history {
	padding: 6px 12px; border: 1.5px solid #ea580c;
	background: #fff; color: #ea580c; border-radius: 6px;
	font-size: 11px; font-weight: 700; cursor: pointer;
	white-space: nowrap;
}
.msd-tb-history:hover { background: #ea580c; color: #fff; }

/* ─── Historique des transferts ──────────────────────────── */
.msd-transfer-history {
	margin-top: 14px; padding: 12px 14px;
	background: #fff7ed; border: 1px solid #fed7aa;
	border-radius: 8px;
}
.msd-th-head {
	font-size: 11px; font-weight: 800; color: #9a3412;
	text-transform: uppercase; letter-spacing: 0.04em;
	margin-bottom: 10px;
}
.msd-th-list { display: flex; flex-direction: column; gap: 8px; }
.msd-th-item {
	padding: 8px 10px; background: #fff;
	border: 1px solid #fed7aa; border-radius: 6px;
}
.msd-th-line {
	display: flex; gap: 8px; align-items: center;
	font-size: 11px; color: #9a3412; margin-bottom: 4px;
}
.msd-th-num { font-weight: 800; }
.msd-th-time { color: #c2410c; font-family: ui-monospace, monospace; }
.msd-th-flow {
	display: flex; gap: 8px; align-items: center;
	font-size: 13px; font-weight: 700; color: #0f172a;
}
.msd-th-from { background: #fee2e2; color: #b91c1c;
	padding: 3px 9px; border-radius: 999px; font-size: 12px; }
.msd-th-arrow { color: #ea580c; font-weight: 800; }
.msd-th-to { background: #d1fae5; color: #047857;
	padding: 3px 9px; border-radius: 999px; font-size: 12px; }
.msd-th-reason {
	margin-top: 6px; font-size: 11.5px; color: #475569;
	font-style: italic; padding-left: 4px;
}

/* Indicateur ↪ sur les chips dans la grille Ménage */
.hk-m-chip.is-transferred {
	border-color: #ea580c !important;
	box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.15);
}
.hk-m-chip-tr {
	display: inline-block; margin-right: 4px;
	color: #ea580c; font-weight: 800;
}

.msd-rp-transfer-tag {
	display: inline-block; padding: 4px 10px; margin-bottom: 8px;
	background: linear-gradient(135deg, #fef3c7, #fde68a);
	border: 1px solid #f59e0b; color: #92400e;
	border-radius: 999px;
	font-size: 11px; font-weight: 800;
	text-transform: uppercase; letter-spacing: 0.04em;
}

/* Invoice preview card */
.msd-inv-card .msd-section-title {
	display: flex; justify-content: space-between; align-items: center;
}
.msd-inv-actions { display: flex; gap: 4px; }
.msd-inv-btn {
	width: 32px; height: 32px; border-radius: 6px;
	border: 1.5px solid #e2e8f0; background: #fff;
	cursor: pointer; font-size: 14px;
	transition: all 0.1s;
}
.msd-inv-btn:hover { background: #7c3aed; color: #fff; border-color: #7c3aed; }
.msd-inv-preview {
	border: 1px solid #e2e8f0; border-radius: 8px;
	overflow: auto; max-height: 500px;
	background: #fff;
}
.msd-inv-preview > div { transform-origin: top left; }
.msd-section-title { display: flex; align-items: center; gap: 6px; }
.msd-others { display: flex; flex-direction: column; gap: 6px; }
.msd-other-row {
	display: grid; grid-template-columns: 32px 1fr auto auto;
	gap: 10px; align-items: center;
	padding: 9px 12px; background: #f8fafc;
	border: 1px solid #e2e8f0; border-radius: 8px;
	cursor: pointer; transition: all 0.1s;
}
.msd-other-row:hover { border-color: #7c3aed; background: #faf5ff; }
.msd-other-ic { font-size: 18px; }
.msd-other-info { min-width: 0; }
.msd-other-amt { font-size: 12px; font-weight: 700; color: #047857; }
.msd-loading { padding: 30px; text-align: center; color: #94a3b8; }

/* ─── Galerie photos en bas de checklist (admin drawer) ─── */
.msd-cl-gallery {
	margin-top: 12px; padding: 10px 12px;
	background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px;
}
.msd-cl-gallery-head {
	font-size: 12px; font-weight: 700; color: #475569; margin-bottom: 8px;
	display: flex; align-items: center; gap: 6px;
}
.msd-cl-gallery-count { color: #94a3b8; font-weight: 600; }

/* ─── Lightbox globale (toutes les images cliquables) ─── */
.hotel-lightbox {
	position: fixed; inset: 0; z-index: 99999;
	background: rgba(0, 0, 0, 0.92);
	display: flex; align-items: center; justify-content: center;
	animation: hotel-lightbox-fade 0.15s ease-out;
}
@keyframes hotel-lightbox-fade { from { opacity: 0; } to { opacity: 1; } }
.hotel-lightbox-stage {
	position: relative; width: 100%; height: 100%;
	display: flex; align-items: center; justify-content: center;
	padding: 40px;
}
.hotel-lightbox-img {
	max-width: 100%; max-height: 100%; object-fit: contain;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
	border-radius: 4px; user-select: none;
}
.hotel-lightbox-close {
	position: absolute; top: 16px; right: 16px;
	width: 44px; height: 44px; border-radius: 50%;
	background: rgba(0, 0, 0, 0.6); color: #fff;
	border: 0; cursor: pointer; font-size: 28px; line-height: 1;
	display: flex; align-items: center; justify-content: center;
	transition: background 0.15s;
}
.hotel-lightbox-close:hover { background: #dc2626; }
.hotel-lightbox-nav {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 52px; height: 52px; border-radius: 50%;
	background: rgba(0, 0, 0, 0.5); color: #fff;
	border: 0; cursor: pointer; font-size: 38px; line-height: 1; padding: 0;
	display: flex; align-items: center; justify-content: center;
	transition: background 0.15s;
}
.hotel-lightbox-nav:hover { background: rgba(0, 0, 0, 0.85); }
.hotel-lightbox-prev { left: 16px; }
.hotel-lightbox-next { right: 16px; }
.hotel-lightbox-count {
	position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
	color: #fff; background: rgba(0, 0, 0, 0.5);
	padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
}
/* Cursor zoom-in sur toutes les thumbnails zoomables */
.msd-cl-photo img, .cli-photo img, .room-thumb img, .rf-ra-thumb img,
.hd-thumb img, .photo-thumb img, .gallery-thumb img, .hotel-zoomable img,
img[data-zoomable="1"] { cursor: zoom-in; }

/* ─── Drawer Client : onglets Profil / Réservations / Factures ──── */
.hd-cli-tabs {
	display: flex; gap: 0; background: #fff;
	border-bottom: 1.5px solid #e2e8f0;
	padding: 0 16px;
	position: sticky; top: 0; z-index: 5;
}
.hd-cli-tab {
	padding: 11px 16px; background: transparent;
	border: none; border-bottom: 3px solid transparent;
	cursor: pointer; font-family: inherit;
	color: #64748b; font-size: 13px; font-weight: 700;
	transition: color 0.12s, border-color 0.12s;
	display: inline-flex; align-items: center; gap: 6px;
}
.hd-cli-tab:hover { color: #1e3a8a; }
.hd-cli-tab.active { color: #1e3a8a; border-bottom-color: #1e3a8a; }
.hd-cli-tab-count {
	background: #f1f5f9; color: #475569;
	padding: 1px 7px; border-radius: 999px;
	font-size: 11px; font-weight: 700;
}
.hd-cli-tab.active .hd-cli-tab-count { background: #dbeafe; color: #1e3a8a; }
.hd-cli-pane { display: block; }

/* Pane Factures : 3 tiles + tableau */
.hd-cli-inv-summary {
	display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px;
	padding: 14px 16px;
}
.hd-cli-inv-tile {
	background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 10px;
	padding: 11px 13px; display: flex; flex-direction: column; gap: 3px;
}
.hd-cli-inv-tile-label {
	font-size: 10.5px; font-weight: 700; color: #64748b;
	text-transform: uppercase; letter-spacing: 0.04em;
}
.hd-cli-inv-tile-val { font-size: 19px; font-weight: 800; color: #0f172a; }
.hd-cli-inv-tile-sub { font-size: 10.5px; color: #94a3b8; }
.hd-cli-inv-tile-paid { background: #dcfce7; border-color: #6ee7b7; }
.hd-cli-inv-tile-paid .hd-cli-inv-tile-val { color: #047857; }
.hd-cli-inv-tile-unpaid { background: #fef3c7; border-color: #fcd34d; }
.hd-cli-inv-tile-unpaid .hd-cli-inv-tile-val { color: #92400e; }

.hd-cli-inv-list { padding: 0 16px 16px; }
.hd-cli-inv-list-head {
	display: grid; grid-template-columns: 1.2fr 1.4fr 1.2fr 110px 100px;
	gap: 8px; padding: 8px 10px;
	font-size: 10.5px; font-weight: 700; color: #94a3b8;
	text-transform: uppercase; letter-spacing: 0.04em;
	border-bottom: 1.5px solid #e2e8f0;
}
.hd-cli-inv-list-head .hd-cli-inv-amt-h { text-align: right; }
.hd-cli-inv-row {
	display: grid; grid-template-columns: 1.2fr 1.4fr 1.2fr 110px 100px;
	gap: 8px; align-items: center;
	padding: 10px 10px; border-bottom: 1px solid #f1f5f9;
	cursor: pointer; transition: background 0.12s;
}
.hd-cli-inv-row:hover { background: #f8fafc; }
.hd-cli-inv-row:last-child { border-bottom: none; }
.hd-cli-inv-folio-name { font-size: 12.5px; font-weight: 700; color: #0f172a; }
.hd-cli-inv-folio-sub { font-size: 10.5px; color: #94a3b8; margin-top: 1px; }
.hd-cli-inv-resa-ref { font-size: 12.5px; font-weight: 700; color: #1e3a8a; }
.hd-cli-inv-resa-sub { font-size: 11px; color: #64748b; margin-top: 1px; }
.hd-cli-inv-date { font-size: 11.5px; color: #475569; }
.hd-cli-inv-status {
	padding: 3px 9px; border-radius: 999px;
	font-size: 10.5px; font-weight: 800; text-align: center;
	display: inline-block;
}
.hd-cli-inv-status-paid { background: #dcfce7; color: #047857; }
.hd-cli-inv-status-unpaid { background: #fef3c7; color: #92400e; }
.hd-cli-inv-amount {
	font-size: 13.5px; font-weight: 800; color: #0f172a; text-align: right;
}
.hd-cli-inv-amount small {
	display: block; font-size: 10px; color: #dc2626; font-weight: 600;
	margin-top: 2px;
}
.hd-cli-inv-dl {
	margin-top: 6px; padding: 3px 8px;
	background: #fff; color: #047857; border: 1px solid #6ee7b7;
	border-radius: 6px; font-size: 10.5px; font-weight: 700;
	cursor: pointer; font-family: inherit; white-space: nowrap;
	transition: background 0.12s, border-color 0.12s;
}
.hd-cli-inv-dl:hover { background: #f0fdf4; border-color: #047857; }
.hd-cli-inv-dl:disabled { opacity: 0.5; cursor: wait; }
.hd-cli-inv-empty {
	padding: 32px 20px; text-align: center;
	background: #f8fafc; border: 1.5px dashed #cbd5e1; border-radius: 10px;
	margin: 16px;
}
.hd-cli-inv-empty-ico { font-size: 38px; margin-bottom: 6px; opacity: 0.55; }
.hd-cli-inv-empty-title { font-size: 13px; font-weight: 800; color: #475569; margin-bottom: 5px; }
.hd-cli-inv-empty-sub { font-size: 12px; color: #64748b; line-height: 1.5; max-width: 360px; margin: 0 auto; }

@media (max-width: 700px) {
	.hd-cli-inv-summary { grid-template-columns: 1fr; }
	.hd-cli-inv-list-head { display: none; }
	.hd-cli-inv-row { grid-template-columns: 1fr; gap: 4px; }
	.hd-cli-inv-amount { text-align: left; }
}
