:root{
  color-scheme:dark;
  --bg:#0b1821;--panel:#122632;--panel-2:#172f3d;--panel-3:#1b3746;
  --line:#274554;--line-soft:#203c49;--text:#edf5f7;--muted:#91aab4;
  --teal:#2dd4bf;--teal-dark:#0f766e;--blue:#60a5fa;--green:#6ee7b7;
  --orange:#fbbf77;--red:#fb8793;--purple:#c4a7ff;--shadow:0 18px 55px #02091055;
  --radius:18px;--tap:44px;
}
*{box-sizing:border-box}
html{min-width:320px;background:var(--bg)}
body{margin:0;background:radial-gradient(ellipse at 18% -10%,#173b4a 0,transparent 42%),var(--bg);color:var(--text);font:14px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;min-height:100vh}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
button:disabled{opacity:.55;cursor:not-allowed}
input,select,textarea{width:100%;background:#0d202b;border:1px solid var(--line);border-radius:11px;padding:11px 12px;min-height:var(--tap);outline:none;color:var(--text)}
textarea{resize:vertical;min-height:72px}
input:focus,select:focus,textarea:focus{border-color:var(--teal);box-shadow:0 0 0 3px #2dd4bf20}
label{display:grid;gap:7px;color:#c4d6dc;font-size:12px;font-weight:700}
[hidden]{display:none!important}
button:focus-visible{outline:3px solid #2dd4bf77;outline-offset:2px}
/* Authentication */
.auth-shell{min-height:100vh;display:grid;place-items:center;padding:22px}
.auth-card{width:100%;max-width:450px;border:1px solid #2c4b59;border-radius:25px;padding:30px;background:linear-gradient(160deg,#17313f,#10232e);box-shadow:var(--shadow)}
.brand{display:flex;align-items:center;gap:11px;font-weight:900;font-size:20px;letter-spacing:-.4px}
.brand-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:linear-gradient(140deg,#2dd4bf,#0e7490);font-size:23px;color:#06252b}
.brand-subtitle{margin:6px 0 24px 47px;color:var(--muted);font-size:12px}
.auth-card h1{font-size:25px;line-height:1.2;margin:16px 0 6px;letter-spacing:-.6px}
.auth-card p{margin:0 0 16px}
.auth-card form{display:grid;gap:13px;margin-top:17px}
.primary-btn{border:0;border-radius:11px;padding:11px 16px;min-height:var(--tap);background:linear-gradient(135deg,#2dd4bf,#0f9d91);color:#062a2d;font-weight:850;box-shadow:0 7px 20px #0f9d9130}
.primary-btn:hover{filter:brightness(1.06)}
.outline-btn,.subtle-btn,.text-btn{border:1px solid var(--line);background:transparent;color:#c9d9de;border-radius:10px;padding:9px 12px;min-height:38px;font-weight:700}
.text-btn{width:100%;border:0;color:#61d9cb;margin-top:12px;min-height:36px}
.text-btn.muted-link{color:#91aab4;font-size:12px;margin-top:2px}
.auth-foot{border-top:1px solid var(--line-soft);margin-top:23px;padding-top:16px;color:#78939e;font-size:11px;text-align:center}
/* Main shell */
.app-shell{min-height:100vh}
.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 25px;background:#0d202bf2;border-bottom:1px solid var(--line);backdrop-filter:blur(14px)}
.topbar-brand{display:flex;align-items:center;gap:15px;min-width:220px}
.topbar-brand .brand{font-size:18px}
.topbar-brand .brand-mark{width:32px;height:32px;font-size:20px}
.topbar-caption{font-size:9px;letter-spacing:1.4px;font-weight:900;color:#688893;border-left:1px solid var(--line);padding-left:15px}
.topbar-tools{display:flex;align-items:center;gap:19px;min-width:0}
.site-picker{display:flex;align-items:center;gap:9px;color:var(--muted);white-space:nowrap}
.site-picker select{min-width:190px;max-width:260px;min-height:38px;padding:7px 30px 7px 10px}
.user-tools{display:flex;align-items:center;gap:12px;min-width:0}
#user-label{color:#aac0c8;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}
.outline-btn{font-size:11px;white-space:nowrap}
.app-layout{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:calc(100vh - 59px)}
.sidebar{display:flex;flex-direction:column;gap:12px;padding:23px 13px 20px 15px;border-right:1px solid var(--line-soft);background:#0e202a}
.nav-caption{font-size:9px;letter-spacing:1.5px;color:#67838e;font-weight:900;padding:4px 10px 9px}
#nav{display:grid;gap:5px}
#nav button{display:flex;align-items:center;gap:11px;text-align:left;border:1px solid transparent;border-radius:11px;background:transparent;color:#9eb4bc;padding:10px 11px;min-height:43px;font-size:12px;font-weight:700}
#nav button:hover{background:#183441;color:#eaf6f7}
#nav button.active{background:linear-gradient(100deg,#164c50,#183b48);border-color:#286e6b;color:#dffbf6;box-shadow:inset 3px 0 #2dd4bf}
.nav-icon{display:grid;place-items:center;width:20px;height:20px;font-size:16px;color:#71cfc3;flex:0 0 auto}
.sidebar-note{display:flex;align-items:flex-start;gap:10px;margin-top:auto;padding:12px 10px;border:1px solid #264a50;background:#122d32;border-radius:13px}
.shield{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#1e625b;color:#88f4d7;font-weight:900;font-size:12px;flex:0 0 auto}
.sidebar-note strong,.sidebar-note small{display:block}
.sidebar-note strong{font-size:10px;color:#c2e8de}
.sidebar-note small{font-size:9px;color:#85a7a6;line-height:1.4;margin-top:2px}
.workspace{min-width:0;max-width:1600px;width:100%;margin:0 auto;padding:28px clamp(16px,3vw,42px) 55px}
.panel{display:none;animation:fade-in .18s ease}
.panel.active{display:block}
@keyframes fade-in{from{opacity:.65;transform:translateY(4px)}to{opacity:1;transform:none}}
.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap;margin:0 0 22px}
.page-heading h1{font-size:clamp(24px,3vw,32px);line-height:1.12;letter-spacing:-.8px;margin:5px 0 6px}
.page-heading p{margin:0;font-size:12px}
.eyebrow{font-size:9px;letter-spacing:1.8px;color:#62cfc0;font-weight:900}
.muted{color:var(--muted)}
.micro-copy{font-size:11px;margin-top:10px}
.small-copy{font-size:11px;line-height:1.45;margin:6px 0 14px}
/* Surfaces, dashboard */
.surface{background:linear-gradient(155deg,#142b37,#112630);border:1px solid var(--line-soft);border-radius:var(--radius);padding:19px;box-shadow:0 7px 22px #020b1025;min-width:0}
.surface h2{font-size:15px;letter-spacing:-.2px;margin:0}
.surface h3{font-size:13px;margin:0}
.surface p{margin:4px 0 0}
.section-gap{margin-top:17px}
.section-title{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:15px;min-width:0}
.section-title p{font-size:10.5px;color:var(--muted)}
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:11px;margin-bottom:17px}
.kpi{position:relative;padding:15px 16px;background:linear-gradient(145deg,#183644,#142d39);border:1px solid #294957;border-radius:15px;min-width:0;overflow:hidden}
.kpi:after{content:"";position:absolute;width:66px;height:66px;border-radius:50%;right:-20px;top:-26px;background:#2dd4bf0c}
.kpi small{display:block;color:#92adb7;font-size:10px;font-weight:700}
.kpi strong{display:block;font-size:clamp(19px,2vw,24px);letter-spacing:-.6px;margin-top:5px;color:#e8f8f6;overflow-wrap:anywhere}
.kpi .kpi-foot{font-size:9px;color:#76959e;margin-top:3px}
.kpi.teal strong{color:#6ce4d1}.kpi.blue strong{color:#89bdff}.kpi.orange strong{color:#ffc48b}.kpi.purple strong{color:#cfb9ff}.kpi.green strong{color:#83e7b8}
.dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.small-count{display:grid;place-items:center;min-width:27px;height:27px;border-radius:9px;background:#21404b;color:#8fe7d7;font-size:11px;font-weight:900;padding:0 8px}
.compact-list{display:grid;gap:8px;min-width:0}
.compact-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 11px;border:1px solid #23404d;border-radius:11px;background:#102530;min-width:0}
.compact-row>div{min-width:0}
.compact-row strong{display:block;font-size:11.5px;overflow-wrap:anywhere}
.compact-row small{display:block;color:#8ca6af;font-size:10px;margin-top:2px;overflow-wrap:anywhere}
.compact-row .right-meta{text-align:right;flex:0 0 auto}
.progress-track{height:11px;background:#0a1d27;border-radius:999px;overflow:hidden;border:1px solid #23404d}
.progress-fill{height:100%;width:0;background:linear-gradient(90deg,#14b8a6,#7ee7d5);border-radius:inherit;transition:width .3s ease}
.occupancy-number{color:#79e2d1;font-size:17px}
.tag{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:9px;font-weight:900;letter-spacing:.5px}
.tag-blue{background:#173e56;color:#a0d5ff;border:1px solid #295c78}
/* Tables and reservations */
.table-wrap{width:100%;overflow:auto}
.data-table{width:100%;border-collapse:collapse;min-width:680px;text-align:left}
.data-table th{color:#7f9ba5;text-transform:uppercase;letter-spacing:.8px;font-size:9px;font-weight:900;padding:10px;border-bottom:1px solid var(--line)}
.data-table td{padding:11px 10px;border-bottom:1px solid #203b47;color:#c4d6dc;font-size:11px;vertical-align:middle}
.data-table tr:last-child td{border-bottom:0}
.data-table td strong{display:block;color:#e4eff2;font-size:11.5px}
.data-table td small{display:block;color:#78949e;font-size:9.5px;margin-top:2px}
.status{display:inline-flex;align-items:center;border-radius:99px;padding:4px 8px;font-size:9px;font-weight:850;white-space:nowrap;border:1px solid transparent}
.status.confirmee{background:#193b55;color:#9ccfff;border-color:#2c5a7c}
.status.en_cours{background:#17463b;color:#8de9c1;border-color:#286b55}
.status.terminee{background:#263642;color:#a9bbc4;border-color:#3a515c}
.status.annulee,.status.no_show{background:#4b2931;color:#ffb0b8;border-color:#75414b}
.status.propre{background:#154337;color:#8fe7bd;border-color:#276e58}
.status.a_nettoyer{background:#4b3726;color:#ffd09a;border-color:#79552d}
.status.en_cours_menage{background:#193f58;color:#9ad7ff;border-color:#2e6889}
.status.occupee{background:#362d51;color:#d1c0ff;border-color:#59467c}
.reservation-list{display:grid;gap:9px}
.reservation-card{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(150px,.9fr) auto;align-items:center;gap:15px;padding:13px 14px;border:1px solid #264653;border-radius:13px;background:#112934;min-width:0}
.reservation-card h3{font-size:12px;margin:0 0 3px}
.reservation-card small{display:block;color:#89a4ad;font-size:10px;overflow-wrap:anywhere}
.reservation-dates{font-size:10px;color:#c0d3d9;line-height:1.5}
.reservation-money{text-align:right}
.reservation-money strong{display:block;font-size:12px;color:#dff6f2}
.reservation-money small{font-size:9px;color:#8ca7ae}
.reservation-actions{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end;grid-column:1/-1}
.mini-btn{border:1px solid #315261;background:#183541;color:#c8d9de;padding:6px 9px;border-radius:8px;font-size:9.5px;font-weight:800;min-height:30px}
.mini-btn.good{color:#8ae5c2;border-color:#2c6b55;background:#153d35}
.mini-btn.warn{color:#ffd09a;border-color:#765630;background:#3e3022}
.mini-btn.danger{color:#ffabb3;border-color:#74414b;background:#3d252c}
.toolbar{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.inline-field{display:flex;align-items:center;gap:10px;max-width:310px}.inline-field input{min-width:155px}
.search-input{max-width:270px;min-height:38px;padding:8px 11px;font-size:11px}
/* Forms */
.form-surface{margin-bottom:16px}
.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.form-grid .wide-field{grid-column:1/-1}
.form-grid .submit-span{grid-column:1/-1}
.form-grid.compact-form{grid-template-columns:repeat(3,minmax(0,1fr))}
.booking-estimate{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 13px;border:1px solid #28545a;border-radius:11px;background:#102f35;color:#9fc2c3;font-size:10px}
.booking-estimate strong{display:block;color:#7fe4d1;font-size:14px;margin-top:2px}
.two-column{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.two-column form{display:grid;gap:12px}
.divider{height:1px;background:#284550;margin:18px 0}
/* Rooms & clients */
.room-grid,.client-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(225px,1fr));gap:12px;margin-top:16px}
.room-card,.client-card{background:linear-gradient(150deg,#17323f,#142b36);border:1px solid #294957;border-radius:15px;padding:15px;min-width:0}
.room-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.room-code{font-size:9px;color:#81cfc6;letter-spacing:1px;font-weight:900}
.room-card h3{font-size:14px;margin:3px 0 1px}
.room-price{font-size:18px;font-weight:900;color:#e2f5f0;margin:10px 0 3px}
.room-detail{font-size:10px;color:#88a4ad}
.room-controls{display:flex;gap:7px;margin-top:13px;align-items:center}
.room-controls select{font-size:10px;min-height:34px;padding:6px 8px}
.room-controls .status-select{flex:1}
.room-legend{display:flex;gap:16px;flex-wrap:wrap;margin:4px 0 9px;color:#91aab4;font-size:10px}
.room-legend span{display:flex;align-items:center;gap:6px}
.dot{width:7px;height:7px;border-radius:50%;display:inline-block}.dot-green{background:#55d6a2}.dot-orange{background:#ffbd72}.dot-blue{background:#67c5f4}.dot-purple{background:#bb9bff}
.client-card h3{font-size:13px;margin:0 0 5px}.client-card p{font-size:10px;color:#90aab3;margin:2px 0}.client-stats{display:flex;justify-content:space-between;gap:8px;padding-top:10px;margin-top:10px;border-top:1px solid #294552}.client-stats strong{display:block;font-size:13px;color:#d4ebe6}.client-stats small{display:block;font-size:9px;color:#86a2ab}
/* Backup, misc */
.backup-surface{display:flex;align-items:flex-start;gap:17px;padding:24px}
.backup-surface h2{margin:0 0 5px}.backup-surface p{max-width:650px;font-size:11px;margin:0 0 15px}
.backup-icon{display:grid;place-items:center;flex:0 0 auto;width:52px;height:52px;border-radius:15px;background:#174a4b;color:#83e8d7;font-size:25px}
.info-surface{font-size:11px}.info-surface p{max-width:750px}
.empty{padding:20px;text-align:center;border:1px dashed #31505c;border-radius:11px;color:#7996a0;font-size:11px}
/* Dialog and toast */
dialog{border:0;background:transparent;color:var(--text);width:calc(100% - 24px);max-width:560px;padding:0}
dialog::backdrop{background:#031018cc;backdrop-filter:blur(3px)}
.dialog-card{position:relative;padding:22px;background:#15303d;border:1px solid #3b5c69;border-radius:17px;box-shadow:var(--shadow)}
.dialog-x{position:absolute;right:10px;top:7px;border:0;background:transparent;color:#9fb5bd;font-size:23px;min-height:30px;padding:0 8px}
.dialog-card h2{font-size:17px;margin:0 30px 13px 0}
.dialog-card p{font-size:11px;color:#a4bbc3}
.toast{position:fixed;left:50%;bottom:22px;z-index:99;transform:translate(-50%,150%);transition:transform .22s ease;max-width:min(550px,calc(100% - 28px));padding:12px 16px;border:1px solid #35605e;border-radius:12px;background:#153a3a;color:#d6fff5;box-shadow:var(--shadow);font-size:12px;text-align:center}
.toast.show{transform:translate(-50%,0)}.toast.error{background:#482b32;border-color:#92515c;color:#ffe0e3}
/* Role-specific visibility */
.owner-only,.admin-only,.frontdesk-only{display:none!important}
body.role-proprietaire .owner-only{display:block!important}
body.role-proprietaire .owner-only.inline-flex{display:inline-flex!important}
body.role-superadmin .admin-only{display:block!important}
body.role-reception .frontdesk-only,body.role-proprietaire .frontdesk-only{display:flex!important}
body.role-menage #nav [data-panel="reservations"],body.role-menage #nav [data-panel="planning"],body.role-menage #nav [data-panel="clients"]{display:none!important}
body.role-menage #booking-create-surface{display:none!important}
@media(max-width:1050px){.app-layout{grid-template-columns:195px minmax(0,1fr)}.sidebar{padding-left:9px;padding-right:9px}.workspace{padding:22px 18px 40px}.reservation-card{grid-template-columns:1fr 1fr}.reservation-actions{grid-column:1/-1}}
@media(max-width:780px){.topbar{align-items:flex-start;flex-direction:column;padding:10px 14px;gap:8px}.topbar-brand{width:100%;justify-content:space-between}.topbar-caption{margin-left:auto}.topbar-tools{width:100%;justify-content:space-between;gap:8px}.site-picker{flex:1;min-width:0}.site-picker span{display:none}.site-picker select{max-width:none;min-width:0}.user-tools{flex:0 0 auto}.app-layout{display:block}.sidebar{position:sticky;top:94px;z-index:15;border-right:0;border-bottom:1px solid var(--line);padding:7px 8px;background:#0e202af2;overflow-x:auto}.nav-caption,.sidebar-note{display:none}#nav{display:flex;gap:5px;min-width:max-content}#nav button{font-size:10px;min-height:39px;padding:7px 10px;gap:6px}#nav button.active{box-shadow:inset 0 -2px #2dd4bf}.nav-icon{width:17px;font-size:14px}.workspace{padding:20px 13px 40px}.dashboard-grid,.two-column{grid-template-columns:1fr}.form-grid,.form-grid.compact-form{grid-template-columns:repeat(2,minmax(0,1fr))}.reservation-card{grid-template-columns:minmax(0,1fr) minmax(120px,.8fr)}.reservation-actions{justify-content:flex-start}.section-title{align-items:flex-start}.section-title .search-input{max-width:180px}}
@media(max-width:500px){.auth-card{padding:22px}.page-heading{align-items:flex-start}.page-heading>.primary-btn{width:100%}.kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.kpi{padding:12px}.kpi strong{font-size:18px}.dashboard-grid{gap:10px}.surface{padding:14px;border-radius:15px}.form-grid,.form-grid.compact-form{grid-template-columns:1fr}.form-grid .wide-field,.form-grid .submit-span,.booking-estimate{grid-column:1}.booking-estimate{align-items:flex-start;flex-direction:column}.reservation-card{grid-template-columns:1fr;gap:7px}.reservation-money{text-align:left}.reservation-actions{grid-column:1;justify-content:flex-start}.room-grid,.client-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:8px}.room-card,.client-card{padding:12px}.backup-surface{flex-direction:column}.toolbar{align-items:stretch}.inline-field{max-width:none;justify-content:space-between}.inline-field input{max-width:190px}.page-heading .search-input{max-width:100%;width:100%}.section-title{flex-wrap:wrap}.section-title .search-input{max-width:100%;width:100%}#user-label{max-width:130px}}
#nav .owner-only{display:none!important}
body.role-proprietaire #nav .owner-only{display:flex!important}
body.role-superadmin #nav .admin-only{display:flex!important}

body.role-menage [data-go="reservations"]{display:none!important}

body.role-superadmin #nav button:not(.admin-only){display:none!important}

/* V2: readable, mobile-first client history */
#detail-dialog{width:min(620px,calc(100vw - 24px));max-width:620px;max-height:min(90dvh,900px);margin:auto;overflow-y:auto;overscroll-behavior:contain;border-radius:20px}
#detail-dialog .dialog-card{padding:clamp(18px,4vw,28px);min-width:0}
#detail-dialog .dialog-x{position:sticky;float:right;top:0;z-index:2;background:#294957;border:1px solid #51707c;border-radius:50%;width:40px;height:40px;color:#fff;font-size:25px;line-height:1}
.history-heading{min-width:0;padding-right:8px}
.history-eyebrow{font-size:11px;font-weight:800;letter-spacing:1.4px;color:#6ee7d3}
.history-heading h2{font-size:clamp(20px,4.5vw,26px);margin:7px 0 10px;line-height:1.25;overflow-wrap:anywhere}
.history-heading p{font-size:13px!important;color:#c3d5db!important;line-height:1.6;margin:3px 0;overflow-wrap:anywhere}
.history-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0 22px}
.history-summary>div{border:1px solid #355666;border-radius:13px;background:#1a3a47;padding:13px;min-width:0}
.history-summary strong{display:block;font-size:18px;color:#f3fcfd;overflow-wrap:anywhere}
.history-summary small{display:block;font-size:12px;color:#b0c8d0;margin-top:3px}
.history-title{font-size:16px;margin:0 0 12px;color:#f3fcfd}
.history-list{display:grid;gap:12px}
.history-item{border:1px solid #3b5b69;background:#112b37;border-radius:15px;padding:15px;min-width:0}
.history-top{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
.history-top>strong{font-size:13px;color:#f3fcfd;overflow-wrap:anywhere}
.history-room{font-size:15px;font-weight:800;margin:10px 0 13px;color:#fff;overflow-wrap:anywhere}
.history-dates{display:grid;grid-template-columns:1fr 1fr;gap:10px;border-top:1px solid #31515e;padding-top:12px}
.history-dates span,.history-money span{display:flex;flex-direction:column;gap:4px;font-size:11px;color:#b2cbd3;min-width:0}
.history-dates strong,.history-money strong{font-size:13px;font-weight:750;color:#eff9fb;overflow-wrap:anywhere}
.history-money{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:13px;padding-top:12px;border-top:1px solid #31515e}
.client-card h3{font-size:16px;line-height:1.35;overflow-wrap:anywhere}
.client-card p{font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.client-stats strong{font-size:16px}.client-stats small{font-size:11px}
.client-card .mini-btn{min-height:42px;font-size:12px}
.data-table td{font-size:12px}.data-table td strong{font-size:12px}.data-table td small{font-size:11px}.data-table th{font-size:10px}
@media(max-width:500px){.room-grid,.client-grid{grid-template-columns:1fr}.client-card{padding:16px}.history-money{grid-template-columns:repeat(3,minmax(0,1fr))}#detail-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 30px)}#detail-dialog .dialog-card{padding:17px}.history-item{padding:12px}}

/* SéjourFlow V3 — calendrier mobile */
.calendar-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:20px 0 12px}.calendar-head strong{font-size:15px;color:#f4fbfd}.calendar-head button{min-height:42px}.calendar-legend{display:flex;flex-wrap:wrap;gap:14px;font-size:12px;color:#d5e7eb;margin-bottom:12px}.calendar-scroll{width:100%;overflow-x:auto;overscroll-behavior-x:contain;border:1px solid #355563;border-radius:14px;background:#102c38}.cal-table{width:100%;min-width:690px;border-collapse:separate;border-spacing:0;text-align:center}.cal-table th,.cal-table td{border-bottom:1px solid #2b4a57;padding:9px 5px}.cal-table thead th{background:#1b3b48;color:#eaf7fa;font-size:12px}.cal-table thead th span,.cal-table thead th strong{display:block}.cal-table .cal-room{position:sticky;left:0;z-index:1;min-width:135px;max-width:160px;text-align:left;background:#1b3b48;color:#f3fafb;font-size:12px;overflow-wrap:anywhere;padding:12px}.cal-cell{display:block;width:100%;min-width:50px;min-height:44px;border:1px solid transparent;border-radius:9px;font-size:20px;font-weight:700;cursor:pointer}.cal-cell.free{background:#145646;color:#c8ffe7}.cal-cell.booked{background:#65353c;color:#ffe3e4}.cal-cell.blocked{background:#344550;color:#a9bdc4;cursor:not-allowed}.cal-cell:focus-visible{outline:3px solid #fff;outline-offset:2px}.calendar-subtitle{font-size:16px;margin:24px 0 12px;color:#f4fbfd}@media(max-width:600px){.calendar-head{gap:8px}.calendar-head button{padding:9px;font-size:12px}.cal-table{min-width:650px}.calendar-legend{gap:9px}}

/* V4: planning adaptable desktop / tablette / mobile */
.calendar-controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-top:18px}
.calendar-period{width:170px;font-size:12px}
.calendar-controls #cal-today{min-height:44px}
.calendar-head{display:grid;grid-template-columns:minmax(105px,1fr) minmax(0,2fr) minmax(105px,1fr);align-items:center;gap:12px;margin:16px 0}
.calendar-head strong{text-align:center;font-size:clamp(13px,1.35vw,17px);overflow-wrap:anywhere}
.calendar-head #cal-next{justify-self:end}
.calendar-head #cal-prev{justify-self:start}
.calendar-scroll{max-width:100%;overflow:auto;scrollbar-width:thin;scrollbar-color:#3a7880 #102c38}
.cal-table{width:100%;min-width:max(690px,calc(170px + var(--calendar-days)*73px));table-layout:fixed}
.cal-table th,.cal-table td{padding:8px 5px}
.cal-table .cal-room{width:170px;min-width:170px;max-width:170px;z-index:2;box-shadow:2px 0 5px #071c2670}
.cal-table thead th:first-child{position:sticky;left:0;z-index:4}
.cal-table thead th{position:sticky;top:0;z-index:3}
.cal-table .cal-cell{min-width:0;min-height:48px;font-size:21px;transition:filter .15s,transform .15s}
.cal-table .cal-cell:hover:not(:disabled){filter:brightness(1.23)}
.cal-table .cal-cell:active:not(:disabled){transform:scale(.96)}
@media(min-width:1100px){.calendar-scroll{border-radius:16px}.cal-table{min-width:max(780px,calc(170px + var(--calendar-days)*78px))}.cal-table .cal-cell{min-height:54px}.calendar-legend{font-size:13px}}
@media(max-width:700px){.calendar-head{grid-template-columns:1fr 1fr;gap:8px}.calendar-head strong{grid-column:1/-1;grid-row:1;text-align:center;font-size:14px}.calendar-head #cal-prev{grid-column:1;grid-row:2}.calendar-head #cal-next{grid-column:2;grid-row:2}.calendar-head button{width:100%;font-size:12px;min-height:44px}.cal-table{min-width:calc(118px + var(--calendar-days)*75px)}.cal-table .cal-room{width:118px;min-width:118px;max-width:118px;font-size:11px;padding:9px 6px}.cal-table thead th{font-size:11px}.calendar-controls{gap:8px}.calendar-period{flex:1;min-width:135px}.calendar-legend{font-size:12px}.cal-table .cal-cell{min-height:46px}}

/* SéjourFlow V6 — thème clair haute lisibilité. CSS uniquement. */
:root{color-scheme:light;--bg:#f3f7fa;--panel:#fff;--panel-2:#f8fafc;--panel-3:#eef5f8;--line:#d5e1e8;--line-soft:#e1e9ef;--text:#152d3a;--muted:#506878;--teal:#0d9488;--teal-dark:#0f766e;--blue:#1d65b5;--green:#087c58;--orange:#a9500c;--red:#b42336;--purple:#7142b0;--shadow:0 12px 32px #173d5012}
html{background:var(--bg)}body{background:var(--bg);color:var(--text);font-size:15px}
input,select,textarea{background:#fff;border-color:#b9cdd8;color:#173443;font-size:14px}
input::placeholder,textarea::placeholder{color:#627c8c;opacity:1}
label{color:#304d5c;font-size:13px}
input:focus,select:focus,textarea:focus{border-color:#0d9488;box-shadow:0 0 0 3px #0d94882a}
.topbar{background:#fffefefa;border-bottom-color:#dce6eb;color:#152d3a;box-shadow:0 2px 12px #0c26320b}
.topbar-caption{color:#56707d}.site-picker{color:#365564}#user-label{color:#405e6c;font-size:12px}
.sidebar{background:#102b38;border-right-color:#183c49}.nav-caption{color:#a6c4cf;font-size:10px}#nav button{color:#d4e5ea;font-size:13px}#nav button:hover{background:#214352;color:#fff}#nav button.active{background:#1d5158;border-color:#27867f;color:#fff}.nav-icon{color:#70e1d3}.sidebar-note{background:#173a41;border-color:#2b6466}.sidebar-note strong{color:#ecfffb}.sidebar-note small{color:#c1e3e0}
.page-heading h1{color:#152d3a}.page-heading p{font-size:13px}.eyebrow{color:#087f76;font-size:10px}
.surface{background:#fff;border:1px solid #dce6eb;box-shadow:0 5px 18px #1c45530c}.surface h2{font-size:17px}.surface h3{font-size:15px}.section-title p{font-size:12px}
.kpi{background:#fff;border:1px solid #d6e4ea;box-shadow:0 3px 10px #183c4d09}.kpi:after{background:#0d94880d}.kpi small{color:#4a6473;font-size:12px}.kpi strong{color:#173443;font-size:clamp(23px,2vw,29px)}.kpi .kpi-foot{color:#5c7380;font-size:11px}.kpi.teal strong{color:#087d74}.kpi.blue strong{color:#1e63a4}.kpi.orange strong{color:#a85013}.kpi.purple strong{color:#7142b0}.kpi.green strong{color:#0c805a}
.small-count{background:#e1f4ef;color:#086b61}.compact-row{background:#f8fbfc;border-color:#dce7ed}.compact-row strong{font-size:13px}.compact-row small{color:#526c7a;font-size:12px}.progress-track{background:#e3eef2;border-color:#d1e0e7}.occupancy-number{color:#087c74}.tag-blue{background:#e6f1ff;color:#205c99;border-color:#bcd8f5}
.data-table th{color:#3e5a69;font-size:11px;background:#f4f8fa}.data-table td{color:#2e4b59;font-size:13px;border-bottom-color:#e2eaf0}.data-table td strong{color:#152e3c;font-size:13px}.data-table td small{color:#536d7b;font-size:11px}
.status{font-size:11px}.status.confirmee{background:#e8f2ff;color:#195e9c;border-color:#b8d5f3}.status.en_cours,.status.propre{background:#e3f6ed;color:#116747;border-color:#b2dfc9}.status.terminee{background:#edf2f5;color:#465d6a;border-color:#d4e0e6}.status.annulee,.status.no_show{background:#ffedf0;color:#a52537;border-color:#f3c5cc}.status.a_nettoyer{background:#fff2e3;color:#8c4b11;border-color:#f0d4ad}.status.en_cours_menage{background:#e8f3ff;color:#1e6099;border-color:#bedbf5}.status.occupee{background:#f2eaff;color:#6942a0;border-color:#d9c8f4}
.reservation-card,.room-card,.client-card{background:#fff;border-color:#d7e4eb;box-shadow:0 2px 10px #193d4b0a}.reservation-card h3{font-size:14px}.reservation-card small,.room-detail{color:#526c7a;font-size:12px}.reservation-dates{color:#345362;font-size:12px}.reservation-money strong,.room-price,.client-stats strong{color:#173443}.reservation-money small{color:#546f7e;font-size:11px}.room-code{color:#087e75}.client-card h3{font-size:15px}.client-card p{color:#4e6978;font-size:12px}.client-stats{border-top-color:#dce6eb}.client-stats small{color:#5c7480;font-size:11px}
.mini-btn,.outline-btn,.subtle-btn{background:#fff;color:#234756;border-color:#b8ced9;font-size:12px}.mini-btn.good{background:#e9f7f0;color:#126747;border-color:#b5ddc9}.mini-btn.warn{background:#fff2e6;color:#895019;border-color:#edcda9}.mini-btn.danger{background:#ffeff1;color:#a52b3b;border-color:#efc1c8}.text-btn{color:#087e74}.text-btn.muted-link{color:#4c6979}.primary-btn{background:linear-gradient(135deg,#0fb9ab,#0d9488);color:#062e30;box-shadow:0 6px 16px #0d948829}
.booking-estimate{background:#edf8f6;border-color:#b9dcd6;color:#365f5d;font-size:12px}.booking-estimate strong{color:#08786d}.divider{background:#d9e6eb}.room-legend{color:#526c7b;font-size:12px}.backup-icon{background:#e0f5f1;color:#0c8075}.backup-surface p,.info-surface{font-size:13px}.empty{border-color:#c5d7df;color:#5b7480;font-size:13px;background:#fbfdfe}
dialog{color:#173443}dialog::backdrop{background:#10242c99}.dialog-card{background:#fff;border-color:#d6e4ea}.dialog-x{color:#3e5e6e}.dialog-card h2{font-size:19px}.dialog-card p{color:#4d6978;font-size:13px}
.auth-card{background:#fff;border-color:#d7e5eb}.auth-card h1{color:#173443}.auth-foot{color:#536f7e}.brand-subtitle{color:#4c6978}.topbar .brand-mark{color:#06252b}
.calendar-head strong,.calendar-subtitle{color:#173443}.calendar-legend{color:#3e5b69}.calendar-scroll{background:#fff;border-color:#c9dce5;scrollbar-color:#9dbdc5 #eef5f8}.cal-table th,.cal-table td{border-bottom-color:#e1eaf0}.cal-table thead th,.cal-table .cal-room{background:#edf4f7;color:#1e3e4d}.cal-cell.free{background:#d7f4e8;color:#08724e}.cal-cell.booked{background:#fbe2e5;color:#a22b3d}.cal-cell.blocked{background:#e5eaee;color:#536673}.cal-cell:focus-visible{outline-color:#087f76}
/* Éléments spécifiques à l'historique des clients */
.history-item,.history-card{background:#f8fbfc;border-color:#dce6ec;color:#173443}.history-money{color:#173443}
@media(max-width:780px){.sidebar{background:#102b38f5}.topbar{background:#fff}.workspace{padding-top:20px}}
@media(max-width:500px){.kpi small{font-size:11px}.kpi .kpi-foot{font-size:10px}.kpi strong{font-size:21px}.surface{padding:16px}.page-heading h1{font-size:26px}}

/* SéjourFlow V7 — thème ardoise équilibré, séparation visuelle des grilles */
:root{--bg:#dfe9ed;--panel:#f0f6f7;--panel-2:#e9f2f4;--panel-3:#d6e7eb;--line:#9fbcc6;--line-soft:#b5cbd2;--text:#143344;--muted:#486573;--shadow:0 5px 16px #193e4d16}
html,body{background:#dfe9ed;color:var(--text)}
.topbar{background:#102f40!important;color:#eefbfc!important;border-bottom:3px solid #21b7ac!important;box-shadow:0 4px 15px #08232f38!important}
.topbar .brand,.topbar .topbar-caption,.topbar .site-picker,.topbar #user-label{color:#e8f5f7!important}
.topbar .topbar-caption{border-left-color:#547483}.topbar .site-picker{padding:5px 8px 5px 12px;background:#1b4a58;border:1px solid #3a7b83;border-radius:12px}
.topbar .site-picker select{background:#e6f2f3;color:#143c48;border:1px solid #7ab3ba;font-weight:800}
.topbar .outline-btn{background:#214c5a;color:#fff;border-color:#64919c}
.sidebar{background:#112e3d;border-right:2px solid #2c6772}.workspace{background:linear-gradient(160deg,#e3edf1,#dbe7ec);min-height:calc(100vh - 63px)}
.page-heading{padding:15px 18px;border:1px solid #a6c5cf;border-left:5px solid #16a89d;border-radius:15px;background:#d4e6eb;box-shadow:0 3px 12px #173b4910}
.page-heading h1{color:#102f40}.page-heading p{color:#4c6977}
.kpis{gap:14px}.kpi{background:#eaf4f6!important;border:1.5px solid #8ebac2!important;border-top:4px solid #168f8b!important;box-shadow:0 4px 12px #193e4d16!important;padding:17px!important}
.kpi:nth-child(2),.kpi.blue{background:#eaf1fb!important;border-color:#9db9dc!important;border-top-color:#3876b9!important}
.kpi:nth-child(3),.kpi.purple{background:#f0eafa!important;border-color:#c4b2df!important;border-top-color:#815bb7!important}
.kpi:nth-child(4),.kpi.green{background:#e8f5ef!important;border-color:#9fcdb7!important;border-top-color:#23895e!important}
.kpi:nth-child(5),.kpi.orange{background:#fff2e7!important;border-color:#e2bb9c!important;border-top-color:#c47732!important}
.kpi:nth-child(6){background:#f9ebeb!important;border-color:#dbb0b0!important;border-top-color:#b15b5b!important}
.kpi small{font-size:13px;color:#2c5364}.kpi strong{font-size:clamp(23px,2vw,30px)}.kpi .kpi-foot{font-size:11px;color:#456674}
.surface{background:#edf5f7!important;border:1.5px solid #9ebdc8!important;border-top:4px solid #3a8791!important;box-shadow:0 5px 16px #193e4d16!important}
.dashboard-grid>.surface:nth-child(2){border-top-color:#3779ad!important;background:#eaf2f8!important}
.dashboard-grid>.surface:nth-child(3){border-top-color:#269479!important;background:#eaf5f1!important}
.surface.section-gap:nth-of-type(even){border-top-color:#6685ad!important}
.surface h2,.surface h3{color:#153b4b}.section-title{border-bottom:1px solid #b9cdd4;padding-bottom:12px}
.compact-row,.reservation-card,.room-card,.client-card,.history-item,.history-card{background:#f6fafb!important;border:1.5px solid #abc6cf!important;box-shadow:0 2px 7px #193e4d0b}
.compact-row:nth-child(even),.reservation-card:nth-child(even),.room-card:nth-child(even),.client-card:nth-child(even){background:#e8f2f5!important}
.room-card{border-left:4px solid #258c8b!important}.client-card{border-left:4px solid #4b83b5!important}.reservation-card{border-left:4px solid #279a79!important}
.data-table{border:1px solid #a5c3cc}.data-table th{background:#ccdee6!important;color:#193c4b!important;font-size:12px}.data-table tbody tr:nth-child(odd){background:#f3f9fa}.data-table tbody tr:nth-child(even){background:#e3eef2}.data-table tbody tr:hover{background:#d3e8eb}.data-table td{border-bottom:1px solid #b5cbd3;font-size:13px}
.calendar-scroll{border:2px solid #88b4c0!important;background:#edf5f7!important}.cal-table thead th{background:#c6dce4!important;color:#153947!important}.cal-table .cal-room{background:#d1e3e9!important;border-right:2px solid #8db1bd;color:#173e4b!important}.cal-table tbody tr:nth-child(even) td{background:#e4eff3}.cal-table td{border-right:1px solid #bed2d9;border-bottom:1px solid #bed2d9}.cal-cell.free{background:#c5ebd9;color:#116e4c}.cal-cell.booked{background:#f5d0d4;color:#922f3d}.cal-cell.blocked{background:#d2dce2;color:#526674}
.form-surface{background:#edf5f7!important}input,select,textarea{background:#f9fcfd;border:1.5px solid #9dbbc6;color:#143344}label{color:#254c5d}.empty{background:#e8f2f5;border:1px dashed #a4c0ca;color:#466776}
.dialog-card{background:#eaf3f6;border:2px solid #8eb5c0}.history-item{border-left:4px solid #3e8ca1!important}
@media(max-width:780px){.topbar{background:#102f40!important}.sidebar{background:#112e3df5!important}.workspace{padding-top:16px}.topbar .site-picker{flex:1}.page-heading{padding:13px}.surface{padding:15px}.kpi{padding:14px!important}}
@media(max-width:500px){.kpi small{font-size:12px}.kpi strong{font-size:21px}.kpi .kpi-foot{font-size:11px}}

/* V8 : Bleu professionnel et gris */
:root{--bg:#e7edf3;--panel:#f4f7fb;--panel-2:#e9eff6;--line:#b8c9d9;--line-soft:#c8d5e1;--text:#183854;--muted:#52677c;--teal:#286fbc;--teal-dark:#1e568e}
html,body{background:#e7edf3!important;color:#183854!important}
.topbar{background:#193c67!important;border-bottom:3px solid #3c82c5!important}.topbar .site-picker{background:#244d78!important;border-color:#628ab1!important}.topbar .site-picker select{background:#eaf2f9!important;color:#173b60!important}
.sidebar{background:#244d78!important;border-right:2px solid #537aa0!important}#nav button.active{background:#356999!important;border-color:#81acd2!important;box-shadow:inset 3px 0 #b5d7f5!important}#nav button:hover{background:#315e89!important}.nav-icon{color:#c1e3ff!important}.sidebar-note{background:#1c4269!important;border-color:#618bb3!important}
.workspace{background:#e7edf3!important}.page-heading{background:#dbe6f1!important;border:1px solid #b3c7db!important;border-left:5px solid #286fbc!important}.page-heading h1,.surface h2,.surface h3{color:#183854!important}.eyebrow{color:#245f9e!important}
.kpi,.kpi:nth-child(n),.kpi.blue,.kpi.green,.kpi.orange,.kpi.purple,.kpi.teal{background:#f6f8fb!important;border:1px solid #b9cbdc!important;border-top:3px solid #3978b4!important;box-shadow:0 3px 10px #1c426015!important}.kpi:nth-child(even){background:#eaf1f8!important}.kpi small,.kpi .kpi-foot{color:#4d657b!important}.kpi strong,.kpi.blue strong,.kpi.purple strong,.kpi.green strong,.kpi.orange strong,.kpi.teal strong{color:#1b5288!important}
.surface,.surface.section-gap:nth-of-type(even),.dashboard-grid>.surface:nth-child(n){background:#f4f7fb!important;border:1px solid #b5c9dc!important;border-top:3px solid #6d99bf!important;box-shadow:0 4px 15px #183e5d14!important}.section-title{border-bottom:1px solid #c7d6e4!important}
.compact-row,.reservation-card,.room-card,.client-card,.history-item,.history-card{background:#f9fbfd!important;border:1px solid #b9cbdc!important;box-shadow:none!important}.compact-row:nth-child(even),.reservation-card:nth-child(even),.room-card:nth-child(even),.client-card:nth-child(even){background:#edf3f9!important}.reservation-card,.room-card,.client-card,.history-item{border-left:3px solid #477eaf!important}
.data-table{border:1px solid #afc4d7!important}.data-table th{background:#d4e2ef!important;color:#183854!important}.data-table tbody tr:nth-child(odd){background:#f8fafc!important}.data-table tbody tr:nth-child(even){background:#eaf1f7!important}.data-table td{border-bottom-color:#c6d5e2!important}
.calendar-scroll{background:#f5f8fb!important;border:1px solid #a9c1d6!important}.cal-table thead th{background:#d4e2ef!important}.cal-table .cal-room{background:#dce8f3!important}.cal-cell.free{background:#d8efe6!important;color:#176348!important}.cal-cell.booked{background:#f5e1e3!important;color:#8c3542!important}
input,select,textarea{background:#fff!important;border:1px solid #9eb8cf!important;color:#183854!important}label{color:#294a68!important}.primary-btn{background:#286fbc!important;color:#fff!important}.booking-estimate{background:#e4eef8!important;border-color:#b6cce0!important}.dialog-card{background:#f5f8fb!important;border:1px solid #a8bfd5!important}
@media(max-width:780px){.topbar{background:#193c67!important}.sidebar{background:#244d78!important}}

/* V8.1 : séparation visible, couleurs métier, sélecteur mobile accessible */
.kpis{gap:16px!important}
.kpis .kpi{border:2px solid #a5bdd3!important;border-top:5px solid #3b78b0!important;background:#f8fbff!important;box-shadow:0 5px 12px #143b6220!important;border-radius:13px!important}
.kpis .kpi:nth-child(even){background:#e7f0f9!important}
.kpis .kpi.green{background:#e4f3e9!important;border-color:#8dbfa0!important;border-top-color:#14643d!important}
.kpis .kpi.green strong{color:#115b36!important}
.kpis .kpi.debt,.kpis .kpi.expense{background:#f8e9e9!important;border-color:#d2a0a0!important;border-top-color:#8e2630!important}
.kpis .kpi.debt strong,.kpis .kpi.expense strong{color:#84202a!important}
.kpis .kpi:after{background:#386a9a0a!important}
.surface{border:2px solid #b1c7dc!important;border-top:4px solid #4e89be!important;box-shadow:0 5px 16px #1b45621a!important}
.dashboard-grid{gap:16px!important}
.status.confirmee{background:#d9f2e2!important;color:#145d37!important;border:1px solid #80bd98!important}
.status.terminee{background:#e4e8ed!important;color:#4a5663!important;border:1px solid #aeb9c4!important}
.status.annulee,.status.no_show{background:#f9dfe2!important;color:#922332!important;border:1px solid #d7979f!important}
.status.en_cours{background:#d6ecfb!important;color:#185b8c!important;border:1px solid #8cb8d6!important}
@media(max-width:780px){
 .topbar-tools{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;width:100%!important}
 .topbar .site-picker{display:flex!important;width:100%!important;min-width:0!important;gap:8px!important;padding:6px 9px!important;box-sizing:border-box!important}
 .topbar .site-picker span{display:inline!important;flex:0 0 auto!important;font-size:11px!important;font-weight:750!important;color:#fff!important}
 .topbar .site-picker select{display:block!important;flex:1 1 auto!important;width:100%!important;min-width:0!important;max-width:none!important;font-size:12px!important}
 .topbar .user-tools{width:100%!important;justify-content:space-between!important}
 .topbar #user-label{max-width:calc(100vw - 160px)!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
 .sidebar{top:0!important}
}
@media(max-width:380px){.topbar .site-picker span{font-size:10px!important}.topbar .site-picker select{font-size:11px!important}.kpis{gap:10px!important}}

/* V9 — clients, règlements et impayés */
.finance-panel{margin-bottom:20px!important}.debt-total,.debt-amount{color:#84202a!important}
.debt-list{display:grid;gap:9px}.debt-row{display:flex;align-items:center;gap:12px;justify-content:space-between;background:#f8fbff;border:1px solid #b3c7da;border-left:4px solid #a53a42;border-radius:10px;padding:12px}
.debt-row>div{flex:1;min-width:0}.debt-row small{display:block;color:#52677c;margin-top:4px}
.payment-history{margin-top:13px;border-top:1px solid #bacbdc;padding-top:10px}.payment-history summary{font-weight:700;cursor:pointer;color:#1c5286}
.payment-row{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #d6e1ea;font-size:13px}.payment-row strong{white-space:nowrap}
@media(max-width:540px){.debt-row{flex-wrap:wrap}.debt-row .mini-btn{width:100%}}

/* V9.1 — Connexion bleu nuit inspirée du style StockFlow Pro */
#auth.auth-shell{background:radial-gradient(ellipse at 30% 0%,#284e83 0%,#1a355d 42%,#10223d 100%)!important;min-height:100dvh;padding:24px 16px!important}
#auth .auth-card{max-width:510px!important;background:linear-gradient(160deg,#1d3454 0%,#14243d 100%)!important;border:1px solid #496589!important;border-radius:28px!important;padding:clamp(24px,5vw,44px)!important;box-shadow:0 24px 70px #07152766!important;color:#f6f9ff!important}
#auth .brand{font-size:25px!important;color:#fff!important}
#auth .brand-mark{width:44px;height:44px;border-radius:12px;background:linear-gradient(135deg,#56c5ff,#3e70e7)!important;color:white!important;box-shadow:0 8px 24px #397de455!important}
#auth .brand-subtitle{color:#d3e1f5!important;margin:10px 0 26px 0!important;font-size:13px!important}
#auth .auth-card h1{font-size:30px!important;color:#fff!important;margin:18px 0 8px!important}
#auth .auth-card p.muted{color:#d3e1f5!important;font-size:16px!important}
#auth .auth-card label{color:#d9e6fa!important;font-size:14px!important;gap:8px!important}
#auth .auth-card input{background:#e8f0ff!important;border:1px solid #a4bcdf!important;color:#102c51!important;font-size:16px!important;font-weight:550!important;min-height:54px!important;border-radius:13px!important;padding:13px 17px!important}
#auth .auth-card input:focus{outline:3px solid #5ca6ff88!important;border-color:#5ca6ff!important}
#auth .primary-btn{width:100%;min-height:58px;background:linear-gradient(110deg,#4c87fa,#2b5ecb)!important;color:#fff!important;border-radius:13px!important;font-size:16px!important;box-shadow:0 8px 20px #0a234650!important}
#auth .text-btn{color:#5bd3ff!important;font-size:14px!important}
#auth .text-btn.muted-link{color:#c7d7ef!important;font-size:13px!important}
#auth .auth-foot{color:#b6c9e4!important;border-color:#476080!important;margin-top:26px!important}
@media(max-width:480px){#auth .auth-card{border-radius:20px!important;padding:24px 20px!important}#auth .brand{font-size:22px!important}#auth .auth-card h1{font-size:27px!important}}

/* V10 — annuaire SuperAdmin */
.directory-summary{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}.directory-summary span{background:#dbe8f5;border:1px solid #adc4dc;padding:9px 13px;border-radius:10px;font-weight:700;color:#1c4874}
.directory-list{display:grid;gap:16px}.directory-company{border:2px solid #b4c9dc;border-top:4px solid #286fbc;background:#f8fbff;border-radius:13px;padding:18px}.directory-company-head,.directory-site-title{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.directory-company h2{margin:0;color:#193c67}.directory-section{margin-top:15px}.directory-section h3{font-size:14px;margin-bottom:10px}.directory-site{background:#e9f1f8;border:1px solid #b8cddd;border-radius:10px;padding:12px;margin:9px 0}.directory-members{margin-top:9px;display:grid;gap:7px}.directory-person{padding:8px 10px;border-left:3px solid #5385b4;background:white;border-radius:6px}.directory-person small{display:block;color:#52677c;margin-top:3px;overflow-wrap:anywhere}
@media(max-width:600px){.directory-company{padding:12px}.directory-summary span{flex:1 1 42%}}

/* V11 : récupération des mots de passe */
#auth .recovery-note{margin-top:15px!important;line-height:1.55!important;font-size:13px!important}
#auth #show-forgot{display:block;text-align:left;margin-top:10px}

/* V11.2 — encaissement bleu et fenêtre intégrée */
.mini-btn.pay-btn{background:#286fbc!important;color:#fff!important;border:1px solid #1e5d9f!important;font-weight:750!important}
.mini-btn.pay-btn:hover{background:#1d5b9e!important}
.mini-btn.pay-btn:disabled{opacity:.55}
#payment-dialog{border:0;border-radius:18px;padding:0;max-width:min(460px,calc(100vw - 28px));width:100%;box-shadow:0 24px 80px #091d3b70;color:#173858}
#payment-dialog::backdrop{background:#081c36a6}
.payment-dialog-card{padding:26px;display:grid;gap:17px;background:#f8fbff}
.payment-dialog-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.payment-dialog-header h2{margin:0 0 5px;font-size:21px;color:#153d68}
.payment-dialog-header p{margin:0;font-size:13px}
.payment-close{border:0;background:#e8f0fa;color:#244c75;border-radius:9px;font-size:24px;width:36px;height:36px;cursor:pointer}
.payment-balance{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;background:#e5f0fc;border:1px solid #b9d3f0;border-radius:10px;padding:13px;color:#1b4777}
.payment-dialog-card label{display:grid;gap:7px;font-size:13px;font-weight:700;color:#254c74}
.payment-dialog-card input,.payment-dialog-card select{width:100%;min-height:46px;border:1px solid #b7cbe1;border-radius:9px;padding:10px 12px;background:#fff;color:#173858;font-size:16px}
.payment-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:5px;flex-wrap:wrap}
.payment-actions button{min-height:44px;padding:10px 15px;border-radius:9px;cursor:pointer}
.payment-actions .primary-btn{background:#286fbc!important;color:#fff!important}
@media(max-width:480px){.payment-dialog-card{padding:18px}.payment-actions button{flex:1}}

/* V11.3 — confirmations intégrées */
#confirm-dialog{border:0;border-radius:18px;padding:0;width:min(450px,calc(100vw - 28px));max-width:100%;box-shadow:0 24px 80px #091d3b70;color:#173858}
#confirm-dialog::backdrop{background:#081c36a6}
.confirm-dialog-card{padding:26px;background:#f8fbff;display:grid;gap:16px}
.confirm-dialog-card h2{margin:0;font-size:21px;color:#153d68}
.confirm-dialog-card p{margin:0;line-height:1.6;overflow-wrap:anywhere}
.confirm-dialog-card .primary-btn{background:#286fbc!important;color:white!important}
@media(max-width:480px){.confirm-dialog-card{padding:19px}}

/* V11.6 — fiche client : contraste lisible sur fond clair.
   Sélecteurs limités au dialogue client pour ne pas modifier les autres écrans. */
#detail-dialog .dialog-card{background:#f5f8fb!important;color:#183854!important}
#detail-dialog .history-heading h2{color:#173858!important}
#detail-dialog .history-eyebrow{color:#087c79!important}
#detail-dialog .history-heading p{color:#405d72!important}
#detail-dialog .history-title{color:#183854!important}
#detail-dialog .history-item{background:#fff!important;color:#183854!important;border:1px solid #b9cbdc!important;border-left:3px solid #477eaf!important}
#detail-dialog .history-top>strong{color:#153d68!important}
#detail-dialog .history-room{color:#183854!important}
#detail-dialog .history-dates,#detail-dialog .history-money{border-top-color:#bfd0df!important}
#detail-dialog .history-dates span,#detail-dialog .history-money span{color:#50677a!important}
#detail-dialog .history-dates strong,#detail-dialog .history-money strong{color:#183854!important}
#detail-dialog .history-money span:last-child strong{color:#a52b3b!important}
#detail-dialog .payment-history{color:#183854!important;border-top-color:#bfd0df!important}
#detail-dialog .payment-history summary{color:#1c5286!important}
#detail-dialog .payment-row{color:#29465c!important}
#detail-dialog .payment-row strong{color:#183854!important}
#detail-dialog .history-summary small{color:#c8dce7!important}

/* V12 — locations mensuelles */
.monthly-nav{display:none!important}body.role-proprietaire .monthly-nav,body.role-reception .monthly-nav{display:flex!important}
.monthly-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}.monthly-kpi{background:#fff;border:1px solid #ccd9e6;border-radius:12px;padding:18px;display:grid;gap:8px;color:#163653}.monthly-kpi small{color:#536b81}.monthly-kpi strong{font-size:22px}.monthly-kpi .positive{color:#176b42}.monthly-kpi .negative{color:#a42839}.monthly-contract{background:#f7fafd;border:1px solid #b9ccdf;border-radius:12px;padding:16px;margin:12px 0;color:#173553}.monthly-head,.monthly-due{display:flex;justify-content:space-between;gap:12px;align-items:center}.monthly-head small,.monthly-due small{display:block;color:#526b83;margin-top:4px}.monthly-summary,.monthly-actions{display:flex;gap:9px;flex-wrap:wrap;margin:12px 0}.monthly-due{border-top:1px solid #ccd8e4;padding:11px 0}.monthly-blue{background:#286fbc!important;color:white!important;border-color:#286fbc!important}.monthly-contract summary{cursor:pointer;color:#205a98;font-weight:700;padding:9px 0}@media(max-width:750px){.monthly-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.monthly-head,.monthly-due{align-items:flex-start;flex-direction:column}}
/* V14 : Magasin & Économat */
.eco-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:14px;align-items:end}.eco-form label{display:flex;flex-direction:column;gap:6px}.eco-form button{min-height:43px}.eco-table-wrap{overflow-x:auto}.eco-table{width:100%;border-collapse:collapse;min-width:660px}.eco-table th,.eco-table td{padding:12px 10px;border-bottom:1px solid var(--border,#e2e8f0);text-align:left;vertical-align:middle}.eco-table td small{display:block;color:#64748b;margin-top:3px}.eco-table td button{margin:3px 1px}.eco-alert{color:#b42318}

/* V14.1 : filtres de l'économat */
.eco-tools{display:flex;align-items:end;gap:16px;flex-wrap:wrap;margin:12px 0 16px}.eco-tools label{font-weight:600;font-size:.86rem}.eco-tools input[type=search]{display:block;width:min(320px,85vw);margin-top:6px;padding:10px 12px;border:1px solid #bdcddd;border-radius:9px;background:#fff;color:#123657}.eco-tools .eco-check{display:flex;align-items:center;gap:8px;padding-bottom:10px;cursor:pointer}.eco-tools input[type=checkbox]{width:17px;height:17px;accent-color:#2572b9}.eco-table td strong.eco-alert{color:#bd3030}

/* SéjourFlow V14.3 NextGen — refonte visuelle du tableau de bord uniquement */
.nextgen-dashboard{color:#14294a;font-size:15px}
.nextgen-dashboard .nextgen-hero{padding:28px 30px!important;border:1px solid #d6dff5!important;border-radius:20px!important;background:linear-gradient(105deg,#ffffff 0%,#f1f5ff 68%,#e5e9ff 100%)!important;box-shadow:0 12px 28px #2237690c!important;min-height:138px;align-items:center}
.nextgen-dashboard .nextgen-hero .eyebrow{font-size:11px!important;letter-spacing:1.6px;color:#6352cb!important}
.nextgen-dashboard .nextgen-hero h1{font-size:clamp(29px,3vw,39px)!important;letter-spacing:-1.2px;color:#14254a!important}
.nextgen-dashboard .nextgen-hero p{font-size:15px!important;color:#566685!important}
.nextgen-dashboard .primary-btn{background:linear-gradient(115deg,#6651df,#3b6edc)!important;color:#fff!important;box-shadow:0 7px 18px #6055c436!important;font-size:14px}
.nextgen-dashboard .kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px!important;margin:18px 0!important}
.nextgen-dashboard .kpis .kpi,.nextgen-dashboard .kpis .kpi:nth-child(n){position:relative;min-height:130px;padding:21px!important;border:1px solid #c9dfff!important;border-radius:18px!important;border-top:1px solid #c9dfff!important;background:linear-gradient(130deg,#f2f8ff,#e3f0ff)!important;box-shadow:0 7px 16px #234a8a13!important}
.nextgen-dashboard .kpis .kpi:nth-child(2){background:linear-gradient(130deg,#edf9ff,#d9f1ff)!important;border-color:#b8e5fa!important}
.nextgen-dashboard .kpis .kpi:nth-child(3){background:linear-gradient(130deg,#edfff4,#d9f8e7)!important;border-color:#b6e9cc!important}
.nextgen-dashboard .kpis .kpi:nth-child(4){background:linear-gradient(130deg,#fff6ec,#ffead6)!important;border-color:#f8dcc0!important}
.nextgen-dashboard .kpis .kpi:nth-child(5){background:linear-gradient(130deg,#f4efff,#e9dfff)!important;border-color:#d9c9fa!important}
.nextgen-dashboard .kpis .kpi:nth-child(6){background:linear-gradient(130deg,#fff0f2,#ffe3e8)!important;border-color:#f4c9d2!important}
.nextgen-dashboard .kpi small{font-size:14px!important;font-weight:750!important;color:#253b5c!important;padding-right:42px}
.nextgen-dashboard .kpi strong,.nextgen-dashboard .kpi:nth-child(n) strong{font-size:clamp(25px,2.4vw,34px)!important;color:#142f66!important;margin-top:9px!important;letter-spacing:-.8px}
.nextgen-dashboard .kpi:nth-child(3) strong{color:#0b7b48!important}.nextgen-dashboard .kpi:nth-child(6) strong{color:#9b2440!important}
.nextgen-dashboard .kpi .kpi-foot{font-size:12px!important;color:#536583!important;margin-top:5px!important}
.nextgen-dashboard .ng-kpi-icon{position:absolute;right:18px;top:16px;width:37px;height:37px;border-radius:11px;display:grid;place-items:center;background:#ffffffb8;color:#4e5ed2;font-size:22px;font-weight:900}
.nextgen-overview{display:grid;grid-template-columns:minmax(300px,.95fr) minmax(350px,1.2fr);gap:17px;margin:17px 0}
.nextgen-bottom{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,.85fr);gap:17px;margin:17px 0}
.nextgen-dashboard .surface,.nextgen-dashboard .surface:nth-of-type(n),.nextgen-dashboard .dashboard-grid>.surface:nth-child(n){padding:24px!important;background:#fff!important;border:1px solid #d9e1f1!important;border-top:1px solid #d9e1f1!important;border-radius:19px!important;box-shadow:0 8px 20px #263b6410!important}
.nextgen-dashboard .surface h2{font-size:19px!important;color:#18294d!important;letter-spacing:-.4px!important}
.nextgen-dashboard .section-title{padding-bottom:14px!important;border-color:#e4e9f4!important}
.nextgen-dashboard .section-title p{font-size:13px!important;color:#61718e!important}
.nextgen-occupancy-body{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:center;margin-top:18px}
.nextgen-donut{--ng-pct:0%;width:min(100%,215px);aspect-ratio:1;margin:auto;border-radius:50%;background:conic-gradient(#18bd80 0 var(--ng-pct),#8bc9ff var(--ng-pct) 100%);display:grid;place-items:center;position:relative}
.nextgen-donut:before{content:"";position:absolute;inset:17%;border-radius:50%;background:#fff}
.nextgen-donut>div{z-index:1;text-align:center}.nextgen-donut strong{font-size:clamp(28px,3vw,39px);display:block;color:#1b2c4e}.nextgen-donut small{font-size:12px;color:#63728d}
.nextgen-occupancy-legend{display:grid;gap:0}.nextgen-occupancy-legend>div{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid #e8edf6;font-size:14px}.nextgen-occupancy-legend strong{font-size:19px;color:#14294a}.nextgen-occupancy-legend span{display:flex;align-items:center;gap:9px}.ng-dot{width:11px;height:11px;border-radius:4px;display:inline-block}.ng-occupied{background:#18bd80}.ng-free{background:#8bc9ff}.ng-legend-total{font-weight:800}.ng-hidden-progress{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0}
.nextgen-dashboard #occupancy-meta{font-size:12px!important;margin-top:14px!important;color:#63728d!important}
.ng-period{border:1px solid #d8e1f4;border-radius:12px;padding:8px 12px;font-size:12px;font-weight:700;color:#526484;background:#f9fbff}
.ng-revenue-chart{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px;height:220px;margin:18px 0 0;align-items:end;border-bottom:1px solid #dce4f3;background:repeating-linear-gradient(to top,transparent 0,transparent calc(25% - 1px),#e9edf5 calc(25% - 1px),#e9edf5 25%)}
.ng-chart-day{height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;min-width:0;gap:7px}.ng-chart-value{font-size:10px;color:#526385;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}.ng-chart-track{height:75%;width:min(70%,55px);display:flex;align-items:flex-end}.ng-chart-bar{width:100%;background:linear-gradient(#9775ef,#5d52dc);border-radius:8px 8px 0 0;min-height:0;transition:height .25s}.ng-chart-day small{font-size:11px;white-space:nowrap;color:#5b6b87;margin-bottom:-21px}.ng-revenue-summary{margin-top:33px;color:#52658a;font-size:13px;font-weight:750}
.nextgen-dashboard .table-wrap{overflow-x:auto}.nextgen-dashboard table{font-size:14px!important}.nextgen-dashboard th{font-size:12px!important}.nextgen-dashboard td{padding-top:14px!important;padding-bottom:14px!important}
.ng-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px}.ng-action{border:0;border-radius:15px;min-height:112px;padding:14px 10px;font-weight:800;font-size:13px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;line-height:1.3}.ng-action span{font-size:28px}.ng-action-green{background:#e0f8eb;color:#096a43}.ng-action-blue{background:#e0f1ff;color:#195c9e}.ng-action-orange{background:#fff0de;color:#a15b16}.ng-action-purple{background:#eee7ff;color:#6242ae}.ng-action:hover{filter:brightness(.96);transform:translateY(-1px)}
.nextgen-daily{margin-top:17px}.nextgen-dashboard .compact-row{background:#f8fbff!important}.nextgen-dashboard .small-count{font-size:13px!important}
/* Shell : navigation claire et confortable, sans modifier les écrans métier */
.app-shell .sidebar{background:#111e3c!important;border-right:1px solid #27365a!important}.app-shell .sidebar #nav button{font-size:13px!important;min-height:46px!important;color:#d4ddf3!important}.app-shell .sidebar #nav button.active{background:linear-gradient(100deg,#6c55db,#7658d6)!important;border-color:#8b74f4!important;color:white!important;box-shadow:0 4px 14px #050f3d40!important}.app-shell .sidebar .nav-icon{color:#c5d6ff!important}.app-shell .sidebar .nav-caption{color:#a9b6d7!important}.app-shell .sidebar .sidebar-note{background:#1b2a4e!important;border-color:#34476d!important}.app-shell .topbar{background:#132449!important;border-color:#2a4068!important}.app-shell .topbar .brand-mark{background:linear-gradient(135deg,#49baff,#6857ed)!important}.app-shell .workspace{background:#f3f6fc!important}
@media(max-width:1100px){.nextgen-dashboard .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.nextgen-overview,.nextgen-bottom{grid-template-columns:1fr}}
@media(max-width:780px){.app-shell .sidebar{background:#111e3cf5!important}.nextgen-dashboard .nextgen-hero{padding:20px!important}.nextgen-occupancy-body{grid-template-columns:1fr 1fr}.nextgen-dashboard .kpi strong{font-size:25px!important}}
@media(max-width:520px){.nextgen-dashboard .kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px!important}.nextgen-dashboard .kpis .kpi{min-height:126px;padding:14px!important}.nextgen-dashboard .kpi small{font-size:12px!important}.nextgen-dashboard .kpi strong{font-size:21px!important}.nextgen-dashboard .ng-kpi-icon{width:26px;height:26px;font-size:17px;right:9px;top:9px}.nextgen-dashboard .surface{padding:16px!important}.nextgen-occupancy-body{grid-template-columns:1fr}.nextgen-donut{max-width:180px}.ng-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ng-action{min-height:94px;font-size:12px}.ng-revenue-chart{gap:5px}.ng-chart-day small{font-size:9px}.nextgen-dashboard .nextgen-hero h1{font-size:28px!important}}

/* NextGen V14.3 fidélité visuelle */
.nextgen-dashboard .nextgen-hero{background:linear-gradient(100deg,#f6f8ff 0%,#e6efff 65%,#d9edff 100%)!important}
.nextgen-dashboard .nextgen-daily{margin-top:20px}
.nextgen-dashboard .ng-hidden-progress{height:0;overflow:hidden;margin:0;border:0}
.nextgen-dashboard .nextgen-occupancy #occupancy-meta{margin-top:15px}
.nextgen-dashboard .nextgen-recent .table-wrap{overflow-x:auto}
.nextgen-dashboard .nextgen-recent table{font-size:13px}
.nextgen-dashboard .nextgen-recent td,.nextgen-dashboard .nextgen-recent th{padding:11px 12px}
.nextgen-dashboard .nextgen-actions .ng-action-grid button{cursor:pointer}
@media(min-width:1250px){.nextgen-dashboard .kpis{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:10px!important}.nextgen-dashboard .kpis .kpi{min-width:0;padding:15px 12px!important;min-height:132px}.nextgen-dashboard .kpi small{font-size:12px!important;display:block;padding-right:0;margin-top:39px}.nextgen-dashboard .kpi strong{font-size:clamp(20px,1.6vw,28px)!important}.nextgen-dashboard .ng-kpi-icon{left:12px;right:auto;top:11px;width:34px;height:34px}.nextgen-dashboard .kpi .kpi-foot{font-size:10px!important}}
@media(max-width:850px){.nextgen-overview,.nextgen-bottom{grid-template-columns:1fr!important}.nextgen-dashboard .kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:480px){.nextgen-dashboard .kpis{grid-template-columns:1fr!important}.nextgen-occupancy-body{grid-template-columns:1fr!important}}

/* V15 NextGen Premium — finitions visuelles */
.nextgen-dashboard .nextgen-hero{background:linear-gradient(90deg,rgba(247,249,255,.98) 0%,rgba(244,248,255,.93) 48%,rgba(225,236,255,.32) 75%),url('./../assets/hotel-hero.svg') right center/auto 100% no-repeat!important;border:0!important;border-radius:19px!important;box-shadow:0 12px 32px #263b7c13!important;min-height:144px!important}
.nextgen-dashboard .nextgen-hero h1{font-size:clamp(29px,2.5vw,39px)!important;letter-spacing:-1.1px!important}
.nextgen-dashboard .kpi{border-radius:15px!important;box-shadow:0 5px 15px #13295a12!important}
.nextgen-dashboard .nextgen-overview .surface,.nextgen-dashboard .nextgen-bottom .surface{border-radius:19px!important;background:#fff!important;box-shadow:0 7px 23px #122c5a10!important}
.nextgen-dashboard .ng-kpi-icon{border-radius:11px!important;background:#eef1ff!important;color:#6846df!important;font-size:23px!important}
.nextgen-dashboard .ng-action{border-radius:13px!important}
.directory-company-head button,.directory-site-title button,.compact-row button[data-v15-employee]{min-width:100px;flex-shrink:0}
@media(max-width:700px){.nextgen-dashboard .nextgen-hero{background:#eef4ff!important}.directory-company-head button,.directory-site-title button{width:auto}}


/* V15.2 — bannière épurée, sans illustration de maison */
.nextgen-dashboard .nextgen-hero{background:linear-gradient(105deg,#f8faff 0%,#eef3ff 55%,#e3eaff 100%)!important;min-height:144px!important}
/* Fenêtres modales cohérentes avec l'interface NextGen */
dialog{margin:auto!important;max-height:calc(100dvh - 32px);overflow-y:auto;border:0!important;border-radius:20px!important;box-shadow:0 28px 85px rgba(9,28,65,.28)!important}
dialog::backdrop{background:rgba(10,23,53,.56)!important;backdrop-filter:blur(5px)!important}
#confirm-dialog{width:min(450px,calc(100vw - 28px))!important;max-width:450px!important;background:#fff!important;color:#162e55!important}
#confirm-dialog .confirm-dialog-card{position:relative;background:#fff!important;padding:30px!important;display:flex;flex-direction:column;gap:14px;border:0!important;border-radius:20px!important}
#confirm-dialog h2{font-size:21px!important;line-height:1.3!important;font-weight:800!important;color:#142b50!important;margin:0 30px 0 0!important}
#confirm-dialog p{font-size:14px!important;line-height:1.65!important;color:#586985!important;margin:0 0 8px!important}
#confirm-dialog .payment-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:5px}
#confirm-dialog .payment-actions button{min-width:115px;min-height:43px;border-radius:11px!important;font-size:13px!important;font-weight:700!important}
#confirm-dialog .outline-btn{background:#f5f7fc!important;border:1px solid #d7e0f0!important;color:#233c63!important}
#confirm-dialog .primary-btn{background:#6754dc!important;color:#fff!important;border:1px solid #6754dc!important}
#confirm-dialog .dialog-x{position:absolute;top:15px;right:15px;width:32px;height:32px;border-radius:9px;background:#f2f5fb!important;color:#526582!important;font-size:21px;line-height:1}
#confirm-dialog button:focus-visible{outline:3px solid #a99bff;outline-offset:2px}
@media(max-width:520px){#confirm-dialog .confirm-dialog-card{padding:22px!important}#confirm-dialog .payment-actions{display:grid;grid-template-columns:1fr 1fr}#confirm-dialog .payment-actions button{min-width:0}}

/* V15.3 — Bannière premium contrastée, sans illustration */
.nextgen-dashboard .nextgen-hero{
  background:linear-gradient(112deg,#123a7a 0%,#284fa5 46%,#6142b9 100%)!important;
  background-image:linear-gradient(112deg,#123a7a 0%,#284fa5 46%,#6142b9 100%)!important;
  border:1px solid rgba(255,255,255,.16)!important;
  box-shadow:0 14px 32px rgba(28,53,128,.24)!important;
  min-height:144px!important;
}
.nextgen-dashboard .nextgen-hero .eyebrow{color:#d5e8ff!important}
.nextgen-dashboard .nextgen-hero h1{color:#fff!important;text-shadow:0 1px 2px rgba(0,0,0,.13)}
.nextgen-dashboard .nextgen-hero p{color:#e2ecff!important}
.nextgen-dashboard .nextgen-hero .primary-btn{
  background:#fff!important;color:#263d91!important;
  border:2px solid #fff!important;
  box-shadow:0 8px 20px rgba(8,22,70,.25)!important;
  font-weight:800!important;white-space:nowrap;
}
.nextgen-dashboard .nextgen-hero .primary-btn:hover{background:#e8f5ff!important;color:#152d73!important;transform:translateY(-1px)}
.nextgen-dashboard .nextgen-hero .primary-btn:focus-visible{outline:3px solid #a9eaff!important;outline-offset:3px}
@media(max-width:700px){.nextgen-dashboard .nextgen-hero{gap:18px!important}.nextgen-dashboard .nextgen-hero .primary-btn{white-space:normal;max-width:100%}}

/* V16.2 — Synthèse commerciale */
.sf-stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin:15px 0}
.sf-stat{appearance:none;border:1px solid var(--line);background:var(--surface,#fff);border-radius:14px;padding:14px;text-align:left;display:flex;flex-direction:column;gap:7px;cursor:pointer;color:inherit;min-height:76px}
.sf-stat span{font-size:12px;font-weight:700;opacity:.8}.sf-stat strong{font-size:24px;line-height:1.1}
.sf-stat-selected{outline:2px solid #5276de;outline-offset:0;background:rgba(82,118,222,.08)}
.sf-stat:focus-visible{outline:3px solid #5276de;outline-offset:2px}
.sf-alerts{border:1px solid var(--line);border-radius:13px;padding:12px 14px}
.sf-alert-title{font-weight:800;margin-bottom:8px}.sf-alert-line{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:8px 0;border-top:1px solid var(--line);font-size:13px}.sf-alert-line span{color:#a76013;font-weight:700}.sf-alert-empty{font-size:13px;opacity:.75}
.sf-status{font-weight:800}.sf-status-alerte{color:#a76013}.sf-status-expire,.sf-status-suspendu{color:#c14545}.sf-status-actif{color:#13815a}
@media(max-width:520px){.sf-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* V16.3 — Abonnement propriétaire */
.sf-owner-sub-top{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}.sf-owner-days{border:1px solid var(--line);border-radius:18px;padding:16px 22px;text-align:center;min-width:135px}.sf-owner-days strong{display:block;font-size:32px;line-height:1.1}.sf-owner-days span{font-size:12px;opacity:.75}.sf-owner-notice{padding:13px 16px;border-radius:12px;border:1px solid var(--line);margin:16px 0;font-weight:650}.sf-owner-warning{background:rgba(217,147,39,.1);border-color:rgba(217,147,39,.35)}.sf-owner-danger{background:rgba(206,65,65,.09);border-color:rgba(206,65,65,.35)}.sf-owner-ok{background:rgba(32,153,104,.08);border-color:rgba(32,153,104,.3)}.sf-owner-quotas{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin:14px 0 20px}.sf-owner-quota{border:1px solid var(--line);border-radius:14px;padding:14px}.sf-owner-quota-head{display:flex;justify-content:space-between;gap:8px;font-size:13px}.sf-owner-track{height:8px;border-radius:99px;background:rgba(130,140,160,.16);overflow:hidden;margin:12px 0 8px}.sf-owner-track span{display:block;height:100%;border-radius:99px;background:#5475d9}.sf-owner-quota small{font-size:12px;font-weight:650}.sf-owner-quota-high{color:#c14545}.sf-owner-quota-medium{color:#a76013}.sf-owner-quota-ok{color:#13815a}.sf-owner-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.sf-owner-footnote{font-size:12px;margin-top:12px}

/* SéjourFlow V16.4 — demandes de renouvellement */
.sf-request-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.sf-request-history{margin-top:24px}.sf-request-card{border:1px solid var(--line);border-radius:14px;padding:14px 16px;margin:10px 0;background:rgba(126,145,180,.035)}
.sf-request-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}.sf-request-card-head small{display:block;opacity:.7;margin-top:5px}
.sf-request-card p{white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0 0}.sf-request-reply{padding:10px 12px;border-radius:10px;background:rgba(65,120,205,.08)}

/* V16.5 — centre de notifications */
.sf-notif-center{margin:18px 0 22px;padding:18px;border:1px solid var(--line);border-radius:16px;background:rgba(69,119,198,.035)}
.sf-notif-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.sf-notif-heading h3{margin:0 0 5px}.sf-notif-heading p{margin:0}
.sf-notif-count{font-size:.75em;font-weight:600;color:#315fbd;margin-left:6px}
.sf-notif-item{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding:12px 4px}
.sf-notif-item strong{font-size:.94em}.sf-notif-item small{display:block;opacity:.72;margin-top:4px}
.sf-notif-item p{margin:8px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.sf-notif-unread{background:rgba(57,110,218,.07);border-radius:9px;padding-left:10px;padding-right:10px}
.sf-notif-dot{width:9px;height:9px;border-radius:50%;background:#3479df;flex:none;margin-top:6px}

/* V17.8 — action de prolongation distincte et formulaire intégré */
.mini-btn.sf-extend-button{background:#fff0d5!important;border:1px solid #e8ad3e!important;color:#8a4b00!important;font-weight:800!important;box-shadow:0 1px 4px #a96d1422}
.mini-btn.sf-extend-button:hover{background:#ffe2a8!important}
#extend-dialog{width:min(590px,calc(100vw - 22px));max-width:590px;max-height:calc(100dvh - 28px);margin:auto;border:0;border-radius:19px;padding:0;background:#fff;color:#17345b;box-shadow:0 24px 80px #061b3b70;overflow-y:auto}
#extend-dialog::backdrop{background:#0a1d3d9c}
.sf-extend-card{padding:clamp(18px,4vw,30px);background:#fff;color:#17345b}
.sf-extend-heading{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.sf-extend-heading h2{margin:5px 0 8px;font-size:23px;color:#14376a}.sf-extend-kicker{font-size:11px;letter-spacing:.12em;color:#266cc0;font-weight:900}.sf-extend-close{border:0;background:#eaf1fa;color:#244b75;border-radius:10px;font-size:24px;width:38px;height:38px;cursor:pointer}.sf-extend-description{color:#5b718e;margin:0 0 20px}.sf-extend-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.sf-extend-fields label{display:grid;gap:7px;font-weight:750;font-size:12px}.sf-extend-fields input{width:100%;min-height:43px;border-radius:10px;padding:10px}.sf-extend-summary{margin:19px 0;background:#eff5fd;border:1px solid #cddff2;border-radius:13px;padding:16px;display:grid;gap:12px}.sf-extend-summary>div{display:flex;justify-content:space-between;gap:14px;align-items:center}.sf-extend-summary span{color:#47617e;font-size:12px}.sf-extend-summary strong{font-size:16px;color:#153d73}.sf-extend-note{font-size:12px;line-height:1.6;color:#5c718a}.sf-extend-error{background:#ffebed;border:1px solid #efb8c0;padding:10px;border-radius:8px;color:#9b2237}.sf-extend-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:20px}.sf-extend-confirm{background:#db8c16;border:1px solid #c47c11;color:#fff;font-weight:800;border-radius:10px;padding:12px 16px;cursor:pointer}.sf-extend-confirm:disabled{opacity:.45;cursor:not-allowed}@media(max-width:480px){.sf-extend-fields{grid-template-columns:1fr}.sf-extend-actions>button{flex:1}}

.sf-v179-input{display:grid!important;gap:7px!important;align-items:stretch!important;color:#47617e;font-size:12px;font-weight:700}.sf-v179-input input,.sf-v179-input textarea{width:100%;border:1px solid #b5cbe6;border-radius:9px;padding:10px;color:#153d73;background:#fff;font:inherit}.sf-v179-input textarea{resize:vertical}.sf-v179-input span{font-size:12px}.sf-v179-input input:focus,.sf-v179-input textarea:focus{outline:2px solid #84b7ff}

/* V17.10 Rate history */
.sf-history-button{background:#e9efff!important;color:#244da6!important;border:1px solid #afc5f4!important}.sf-rate-history-dialog{border:0;border-radius:18px;width:min(720px,95vw);max-height:85vh;box-shadow:0 25px 80px #091a3e77;padding:0}.sf-rate-history-dialog::backdrop{background:#091b3a99}.sf-rate-history-wrap{padding:24px;overflow:auto;max-height:85vh}.sf-rate-history-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;border-bottom:1px solid #d6e0ef;padding-bottom:12px;margin-bottom:16px}.sf-rate-history-head h2{margin:0;color:#15366a}.sf-rate-history-head p{margin:6px 0;color:#55708e}.sf-rate-history-head button{border:0;border-radius:8px;padding:8px 12px;cursor:pointer}.sf-rate-record{padding:15px;border:1px solid #d8e3f3;background:#f6f9ff;border-radius:12px;margin:12px 0}.sf-rate-record strong{color:#153d78}.sf-rate-record small{display:block;color:#647b96;margin-top:5px}.sf-rate-record p{margin:8px 0;line-height:1.5;font-size:13px}

/* V17.11: paiement pendant la prolongation */
.sf-v1711-payment{display:grid;gap:12px;padding:16px;border:1px solid #b8d5e9;border-radius:13px;background:#eff8fd;margin-top:14px;color:#16365e}
.sf-v1711-payment h3{margin:0;font-size:16px;color:#14537c}
.sf-v1711-payment select{width:100%;border:1px solid #a5bdd8;border-radius:9px;background:#fff;padding:10px;color:#173d68}
.sf-v1711-payment .sf-v1711-balance{display:flex;justify-content:space-between;gap:8px;border-top:1px solid #cadfea;padding-top:10px}
.sf-v1711-payment small{font-size:12px;line-height:1.5;color:#526e88}

/* V17.12 — reservations list-first navigation */
#booking-create-surface[hidden]{display:none!important}
.sf-booking-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.sf-booking-heading .primary-btn{white-space:nowrap}
@media(max-width:640px){.sf-booking-heading .primary-btn{width:100%}}

/* V17.36 — team actions, scoped visual refinement */
.nda-role-dialog{box-sizing:border-box;width:min(92vw,540px);max-height:85dvh;overflow:auto;border:1px solid #d5e2f1;border-radius:22px;padding:26px;color:#173650;background:#fff;box-shadow:0 24px 80px #10284b45}
.nda-role-dialog::backdrop{background:#172d5080;backdrop-filter:blur(3px)}
.nda-role-form{display:grid;gap:14px;margin:0}
.nda-role-form h2{font-size:23px;line-height:1.25;margin:0 0 4px;font-weight:750}
.nda-role-form p{margin:0;padding:12px 14px;border-radius:12px;background:#eff5fc;color:#23486c;line-height:1.45}
.nda-role-form select{width:100%;min-height:46px;border:1px solid #b6cbe2;border-radius:12px;padding:10px 14px;background:#fff;color:#173650;font:inherit}
.nda-role-form [hidden]{display:none!important}
.nda-role-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-top:8px}
.nda-role-actions button,#team-list .mini-btn,#staff-form .primary-btn,#staff-create [data-module-close]{font:inherit;font-size:14px;font-weight:700;min-height:44px;border-radius:12px;padding:10px 17px;cursor:pointer;transition:filter .15s,box-shadow .15s;line-height:1.3;white-space:normal}
.nda-role-actions .nda-confirm,#staff-form .primary-btn{background:#2365b0!important;color:#fff!important;border:1px solid #2365b0;box-shadow:0 4px 12px #2365b025}
.nda-role-actions .nda-cancel,#staff-create [data-module-close]{background:#f0f4f8!important;color:#294661!important;border:1px solid #d4dfeb!important}
#team-list .mini-btn.danger{background:#fff0f0!important;color:#a32232!important;border:1px solid #efc3c8!important}
#team-list .mini-btn.good{background:#e8f6ee!important;color:#17653d!important;border:1px solid #b8dfc9!important}
#team-list .compact-row{gap:12px;align-items:center}
.nda-role-actions button:hover,#team-list .mini-btn:hover,#staff-form .primary-btn:hover{filter:brightness(.95)}
.nda-role-actions button:focus-visible,#team-list .mini-btn:focus-visible{outline:3px solid #75a9df;outline-offset:3px}
.nda-role-actions button:disabled{opacity:.55;cursor:wait}
@media(max-width:560px){.nda-role-dialog{padding:20px}.nda-role-actions{flex-direction:column-reverse}.nda-role-actions button{width:100%}#team-list .compact-row{gap:8px}#team-list .mini-btn{flex:1 1 130px}}
