/* AuraLiving — alignement sur la charte (p. 11 « Tableau de bord web », p. 12 « Kit d'interface »).
   Chargé après theme-soft.css : menu sombre Encre, contenu Nuage, cartes bordées Brume,
   boutons 44 px / rayon 12 px, pastilles de statut, cartes logement, planning. */

:root {
  --page: #F6F8FB;
  --card-r: 16px;
  --soft: 0 1px 2px rgba(38, 42, 54, .04);
  --soft-lg: 0 24px 60px -20px rgba(38, 42, 54, .28);
  --sidebar: 236px;
  --ok: #14A06F; --warn-c: #B7791F; --err: #D93036; --info: #1963A6;
}
[data-theme="dark"] { --page: #0E141B; --soft: none; }

/* ------------------------------------------------------------- Mise en page : menu sombre plein hauteur */
.shell { gap: 0; padding: 0; }
.sidebar { position: sticky; top: 0; height: 100dvh; border-radius: 0; box-shadow: none; background: var(--h-ink); color: #fff; padding: max(26px, env(safe-area-inset-top)) 16px 16px max(16px, env(safe-area-inset-left)); }
[data-theme="dark"] .sidebar { background: #111923; border-right: 1px solid var(--line); }
.brand { padding: 0 10px 26px; }
.brand .h-logo { --logo-blue: #fff; }
.nav-label { color: #8A90A0; padding: 14px 12px 6px; }
.nav-item { height: 42px; border-radius: 10px; color: #C5CAD6; padding: 0 12px; }
.nav-item .ic { color: #AEB4C2; }
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-item.active { background: rgba(255, 255, 255, .10); color: #fff; box-shadow: none; font-weight: 600; }
.nav-item.active .ic { color: #fff; }
.nav-count { background: rgba(255, 255, 255, .12); color: #fff; }
.nav-count.red { background: var(--err); color: #fff; } .nav-count.amber { background: #E3A43C; color: #1B2531; } .nav-count.green { background: #D9A273; color: #3B2614; }
.nav-item.active .nav-count { background: rgba(255, 255, 255, .2); }
.side-card { background: rgba(255, 255, 255, .06); border-radius: 14px; }
.side-card::after { opacity: .55; }
.side-card p { color: #AEB4C2; }
.side-card .btn { min-height: 32px !important; }
.sidebar .me { background: rgba(255, 255, 255, .06); border-radius: 12px; }
.sidebar .me-name { color: #fff; } .sidebar .me-role { color: #AEB4C2; }
.sidebar .avatar { background: linear-gradient(135deg, #A9C8E6, #F3DCC6); color: var(--h-ink); }
.sidebar .icon-btn { color: #AEB4C2; } .sidebar .icon-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.main-wrap { padding: 0 max(28px, env(safe-area-inset-right)) 0 28px; }

/* ------------------------------------------------------------- Barre du haut : date au-dessus du titre */
.topbar { top: 0; min-height: 0; padding: max(22px, env(safe-area-inset-top)) 0 14px; margin: 0; }
.topbar.scrolled { border-radius: 0 0 16px 16px; padding-top: 12px; margin: 0 -12px; padding-left: 12px; padding-right: 12px; }
.title-block { display: flex; flex-direction: column-reverse; }
.page-sub { font-size: 13px; color: #5B6170; margin: 0 0 2px; }
.page-sub::first-letter { text-transform: uppercase; }
.page-title { font: 700 28px/1.1 var(--font-display); letter-spacing: -.03em; }
.search-field { height: 44px; border-radius: 12px; box-shadow: none; border: 1px solid var(--line); width: 260px; }
.round-btn { width: 44px; height: 44px; border-radius: 12px; box-shadow: none; border: 1px solid var(--line); }
.round-btn .badge-n { top: -6px; right: -6px; box-shadow: 0 0 0 2px var(--page); }
.avatar-btn { width: 44px; height: 44px; box-shadow: none; }
.topbar .btn-primary { height: 44px; border-radius: 12px; box-shadow: none; padding: 0 18px; }
.local-banner { margin: 0 0 4px; border-radius: 12px; }
.view { padding: 6px 0 40px; }

/* ------------------------------------------------------------- Kit : boutons 44 px, rayon 12 px */
.btn { min-height: 44px; border-radius: 12px; font-weight: 600; padding: 0 18px; }
.btn:not(.btn-primary):not(.btn-danger):not(.btn-whatsapp):not(.btn-danger-ghost) { background: var(--surface); border: 1px solid var(--line); box-shadow: none; color: var(--ink); }
.btn:not(.btn-primary):not(.btn-danger):not(.btn-whatsapp):not(.btn-danger-ghost):hover { border-color: var(--line-strong); background: var(--surface-2); }
.btn-primary { background: #1963A6; border-color: #1963A6; }
.btn-primary:hover { background: #134D82; border-color: #134D82; }
[data-theme="dark"] .btn-primary { background: #2A7BC4; border-color: #2A7BC4; color: #fff; }
.btn-danger { background: #FDE7E7; border-color: #FDE7E7; color: var(--err); }
.btn:disabled, .btn[disabled] { background: var(--line) !important; border-color: var(--line) !important; color: #8A90A0 !important; opacity: 1; }
.btn.btn-sm { min-height: 34px; border-radius: 10px; padding: 0 12px; }
.btn.btn-lg { min-height: 50px; }
.btn-ghost, .btn.link { background: transparent !important; border-color: transparent !important; color: var(--brand) !important; }

/* Champs de saisie */
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), select, textarea { border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), select { min-height: 44px; }
input:focus, select:focus, textarea:focus { outline: none; border: 1.5px solid #2A7BC4 !important; box-shadow: 0 0 0 4px color-mix(in srgb, #2A7BC4 18%, transparent); }
input:user-invalid, input[aria-invalid=true] { border: 1.5px solid var(--err) !important; }
.field-label { color: var(--ink); font-weight: 600; }
.field-hint { color: #5B6170; }
input[type=checkbox] { accent-color: #1963A6; width: 18px; height: 18px; }

/* Statuts : pastilles avec point */
.badge { padding: 4px 10px; font-size: 12px; font-weight: 600; border-radius: 999px; }
.badge::before { opacity: 1; }
.badge-green { background: #E2F6EE; color: #14A06F; } .badge-amber { background: #FBF0DD; color: #B7791F; }
.badge-red { background: #FDE7E7; color: #D93036; } .badge-blue { background: #E7F0F9; color: #1963A6; }
.badge-gray, .badge-slate { background: #EEF1F6; color: #1B2531; }
[data-theme="dark"] .badge-green { background: #133A2C; color: #5FD3A2; } [data-theme="dark"] .badge-amber { background: #3A2E17; color: #E9B65E; }
[data-theme="dark"] .badge-red { background: #3D1C1E; color: #F3A3A6; } [data-theme="dark"] .badge-blue { background: #1A2A3D; color: #8CC4FF; }
[data-theme="dark"] .badge-gray, [data-theme="dark"] .badge-slate { background: #2B303D; color: #D7DBE4; }

/* Contrôle segmenté (Jour / Semaine / Mois) */
.tabs { background: var(--page); border: 1px solid var(--line); box-shadow: none; border-radius: 12px; padding: 4px; }
.tab { border-radius: 9px; padding: 7px 14px; color: #5B6170; font-weight: 500; }
.tab.on, [data-theme="dark"] .tab.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(38, 42, 54, .12); }
.search-inline, .select-sm { box-shadow: none; border: 1px solid var(--line); border-radius: 12px; }

/* Notification (toast) : Encre, coche verte */
.toast { background: #1B2531; color: #fff; border-radius: 14px; padding: 14px 18px; gap: 12px; font-weight: 600; box-shadow: 0 18px 40px -16px rgba(38, 42, 54, .5); }
.toast-success .ic { background: #D9A273; color: #3B2614; border-radius: 50%; padding: 4px; width: 26px; height: 26px; }
.toast-info .ic { background: #2A7BC4; color: #fff; border-radius: 50%; padding: 4px; width: 26px; height: 26px; }
.toast-error { background: #1B2531; } .toast-error .ic { background: var(--err); color: #fff; border-radius: 50%; padding: 4px; width: 26px; height: 26px; }
.toast .toast-act { margin-left: 10px; color: #A9C8E6; font-weight: 600; text-decoration: none; }

/* ------------------------------------------------------------- Cartes */
.card, .kpi, .pcard, .state-tile, .table-wrap { border: 1px solid var(--line) !important; box-shadow: none !important; border-radius: var(--card-r); }
.card { padding: 20px 20px; }
.card-head h3 { font: 600 18px var(--font-display); letter-spacing: -.015em; }
.modal { border-radius: 18px; }
.notice { border-radius: 12px; }
.notif-panel { border-radius: 16px; border: 1px solid var(--line); }

/* KPI : sobres, évolution en texte coloré */
.kpis { gap: 14px; }
.kpi { padding: 18px 20px; }
.kpi .kpi-ic { display: none; }
.kpi-label { font-size: 14px; color: #5B6170; font-weight: 500; }
[data-theme="dark"] .kpi-label { color: var(--ink-2); }
.kpi-value { font: 600 30px/1.1 var(--font-display); letter-spacing: -.02em; margin-top: 10px; }
.kpi-sub { margin-top: 10px; font-size: 12.5px; font-weight: 600; color: #5B6170; }
.kpi-sub .info { color: var(--info); }
.delta { padding: 0; background: none !important; font-size: 12.5px; }
.delta.up { color: #14A06F; } .delta.down { color: #D93036; } .delta.flat { color: #5B6170; }
.kpi.hero { background: var(--surface); color: var(--ink); }
.kpi.hero::after { display: none; }

/* ------------------------------------------------------------- Planning des logements */
.plan-card { padding: 20px 20px 10px; }
.plan-legend { display: flex; gap: 6px; flex-wrap: wrap; }
.lg { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.lg::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lg-airbnb { background: #E7F0F9; color: #2A7BC4; } .lg-booking { background: #E3EAF7; color: #1963A6; }
.lg-direct { background: #E2F6EE; color: #14A06F; } .lg-pending { background: #FBF0DD; color: #B7791F; } .lg-block { background: #EEF1F6; color: #5B6170; }
.plan-scroll { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
.plan { min-width: 760px; }
.plan-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; border-bottom: 1px solid var(--line); min-height: 57px; }
.plan-row:last-child { border-bottom: 0; }
.plan-days { min-height: 30px; }
.plan-name { font-weight: 600; font-size: 14px; color: var(--ink); text-decoration: none !important; padding-right: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-track { display: grid; grid-template-columns: repeat(var(--days), minmax(0, 1fr)); align-items: center; position: relative; height: 100%; min-height: inherit; }
.plan-track > i { grid-row: 1; align-self: stretch; border-left: 1px solid var(--line); }
.plan-days .plan-track span { text-align: center; font-size: 12px; color: #5B6170; }
.plan-days .plan-track span.is-today { color: #fff; background: #1963A6; border-radius: 999px; font-weight: 700; justify-self: center; padding: 2px 8px; }
.plan-bar { grid-row: 1; z-index: 1; height: 30px; margin: 0 3px; border-radius: 8px; display: flex; align-items: center; padding: 0 10px; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none !important; cursor: pointer; transition: filter .15s, transform .15s; }
.plan-bar:hover { filter: brightness(.95); transform: translateY(-1px); }
.plan-bar.k-airbnb { background: #2A7BC4; color: #fff; }
.plan-bar.k-booking { background: #1963A6; color: #fff; }
.plan-bar.k-direct { background: #F3DCC6; color: #1B2531; }
.plan-bar.k-pending { background: #FBF0DD; color: #8A5A12; border: 1px dashed #E3A43C; }
.plan-bar.k-block { background: repeating-linear-gradient(135deg, #EEF1F6 0 6px, #E3E7EE 6px 12px); color: #5B6170; }
.plan-bar.imp { background: #fff; border: 1.5px dashed currentColor; }
.plan-bar.k-airbnb.imp { color: #2A7BC4; } .plan-bar.k-booking.imp { color: #1963A6; }
.plan-bar.cut-l { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: 0; }
.plan-bar.cut-r { border-top-right-radius: 0; border-bottom-right-radius: 0; margin-right: 0; }
[data-theme="dark"] .plan-bar.k-direct { background: #2E6B44; color: #E6FBEA; }
[data-theme="dark"] .plan-bar.imp { background: transparent; }
[data-theme="dark"] .plan-bar.k-block { background: repeating-linear-gradient(135deg, #2B303D 0 6px, #1B2531 6px 12px); color: #AEB4C2; }
.dash > .plan-card { margin: 0; }

/* Revenus mensuels : barres Ciel, mois en cours en dégradé */
.bars .bar { fill: #A9C8E6; opacity: .75; }
.bars .bar-g:hover .bar { fill: #2A7BC4; opacity: 1; }
.bars .bar.cur { opacity: 1; }

/* Aujourd'hui */
.ti-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--page); color: var(--ink); flex: none; }
.ti-ic .ic { width: 17px; height: 17px; }
.ti-ic.imp { color: var(--err); background: #FDE7E7; border-color: #FDE7E7; }
.ti-main b { font-size: 14px; }

/* ------------------------------------------------------------- Cartes logement */
.cards { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.pcard { padding: 0; overflow: hidden; gap: 0; }
.pcard:hover { transform: translateY(-2px); border-color: var(--line-strong) !important; }
.pcard-photo { position: relative; height: 130px; background: linear-gradient(135deg, #A9C8E6 0%, #F3DCC6 100%); display: grid; place-items: center; }
.pcard-photo.ph-1 { background: linear-gradient(135deg, #F3DCC6 0%, #CDEBFF 100%); }
.pcard-photo.ph-2 { background: linear-gradient(135deg, #CDEBFF 0%, #E5B38A 140%); }
.pcard-mark { opacity: .9; }
.pcard-state { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #fff !important; color: #1B2531; font-size: 12px; font-weight: 600; }
.pcard-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #5B6170; }
.pcard-state.st-free { color: #14A06F; } .pcard-state.st-free::before { background: #14A06F; }
.pcard-state.st-green, .pcard-state.st-blue { color: #1963A6; } .pcard-state.st-green::before, .pcard-state.st-blue::before { background: #1963A6; }
.pcard-state.st-amber, .pcard-state.st-violet { color: #B7791F; } .pcard-state.st-amber::before, .pcard-state.st-violet::before { background: #B7791F; }
.pcard-state.st-orange, .pcard-state.st-pink, .pcard-state.st-cyan { color: #5B6170; }
.pcard-flag { position: absolute; top: 12px; right: 12px; }
.pcard-body { padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 4px; }
.pcard-name { font: 700 18px var(--font-display); margin: 0; letter-spacing: -.01em; }
.pcard-foot { border-top: 0; padding-top: 6px; margin-top: 6px; }
[data-theme="dark"] .pcard-photo { filter: saturate(.85) brightness(.8); }

/* ------------------------------------------------------------- Tablette / téléphone */
@media (max-width: 1100px) {
  .shell { padding: 0; }
  .sidebar { position: fixed; top: 0; bottom: 0; left: 0; height: 100dvh; border-radius: 0 18px 18px 0; width: 270px; }
  .main-wrap { padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
  .topbar.scrolled { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .tabbar { border: 1px solid var(--line); box-shadow: 0 12px 30px -14px rgba(38, 42, 54, .25); }
}
@media (max-width: 600px) {
  .page-title { font-size: 22px; }
  .page-sub { display: block; font-size: 12px; }
  .kpi-value { font-size: 24px; }
  .plan-row { grid-template-columns: 110px minmax(0, 1fr); }
}
@media print { .sidebar { display: none; } .main-wrap { padding: 0; } }
.plan-scroll { overflow-y: hidden; }
.dash-grid { align-items: start; }
[data-theme="dark"] .lg-airbnb { background: #1A2A3D; color: #8CC4FF; } [data-theme="dark"] .lg-booking { background: #182A4A; color: #A9C2EE; }
[data-theme="dark"] .lg-direct { background: #133A2C; color: #5FD3A2; } [data-theme="dark"] .lg-pending { background: #3A2E17; color: #E9B65E; } [data-theme="dark"] .lg-block { background: #2B303D; color: #AEB4C2; }

/* ------------------------------------------------------------- Check-in en ligne (fiche réservation) */
.ck-staff .card-head h3 { display: flex; align-items: center; gap: 8px; }
.ck-staff .card-head h3 .ic { width: 18px; height: 18px; color: var(--brand); }
.ck-link { display: flex; gap: 8px; margin-bottom: 10px; }
.ck-link input { flex: 1; min-width: 0; font-size: 13px; color: var(--ink-2); background: var(--page); }
.ck-signed { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 12px; flex-wrap: wrap; }
.ck-sig { width: 180px; height: 70px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.ck-signed .notice { margin-top: 8px; }
.ck-access-line { display: flex; gap: 8px; align-items: center; margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: var(--page); font-size: 13px; color: var(--ink-2); }
.ck-access-line .ic { width: 16px; height: 16px; flex: none; }
.ck-access-line.ok { background: #E2F6EE; color: #0F7F57; }
[data-theme="dark"] .ck-access-line.ok { background: #133A2C; color: #5FD3A2; }
.ck-code-row { display: flex; gap: 8px; align-items: flex-end; margin-top: 12px; }
.ck-code-row .field { flex: 1; }

/* ------------------------------------------------------------- Inventaire (fiche logement) */
.notice.info { background: #E7F0F9; color: #134D82; }
[data-theme="dark"] .notice.info { background: #1A2A3D; color: #8CC4FF; }
.inv-card { margin-top: 16px; }
.inv-card .card-head h3 { display: flex; align-items: center; gap: 8px; } .inv-card .card-head h3 .ic { width: 18px; height: 18px; color: var(--brand); }
.inv-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.inv-wrap { border: 1px solid var(--line) !important; overflow-x: auto; }
.inv-table { min-width: 620px; }
.inv-table td { vertical-align: middle; }
.inv-room td { background: var(--page); font: 600 14px var(--font-display); padding-top: 12px !important; }
.inv-in { min-height: 38px !important; border: 1px solid transparent !important; background: transparent !important; padding: 6px 8px !important; border-radius: 8px !important; width: 100%; font: inherit; color: var(--ink); }
.inv-in:hover { border-color: var(--line) !important; }
.inv-in:focus { background: var(--surface) !important; }
.inv-in.num { text-align: right; max-width: 130px; margin-left: auto; display: block; }
td.num .inv-in.num[data-f="qty"] { max-width: 76px; }
.inv-name .inv-in { font-weight: 600; }
.inv-meta { font-size: 11.5px; color: var(--ink-3); padding: 0 8px; }
.inv-ai { display: inline-block; padding: 0 6px; margin-right: 6px; border-radius: 6px; background: linear-gradient(135deg, #2A7BC4, #E5B38A); color: #fff; font-weight: 700; font-size: 10.5px; }
.inv-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.inv-thumb { position: relative; width: 110px; height: 82px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.inv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.inv-thumb .icon-btn { position: absolute; top: 4px; right: 4px; background: rgba(38, 42, 54, .7); color: #fff; width: 26px; height: 26px; }
.inv-wait { display: flex; gap: 14px; align-items: center; padding: 30px 10px; }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--brand); animation: inv-sp .8s linear infinite; flex: none; }
@keyframes inv-sp { to { transform: rotate(360deg); } }
.inv-review td:first-child, .inv-review th:first-child { width: 36px; }
.inv-sources { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); } .inv-sources ul { margin: 6px 0 0; padding-left: 18px; }

/* ------------------------------------------------------------- Illustrations de marque */
.illu { display: block; }
.empty .empty-illu { margin: 4px auto 14px; }
.empty { padding: 40px 20px; text-align: center; }
.mini-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 14px 10px 10px; }
.mini-empty p { margin: 0; max-width: 460px; font-size: 13.5px; }
.onboarding { display: grid; grid-template-columns: auto 1fr; column-gap: 22px; align-items: center; }
.onboarding .onb-illu { grid-row: span 3; }
@media (max-width: 600px) { .onboarding { grid-template-columns: 1fr; } .onboarding .onb-illu { grid-row: auto; margin: 0 auto; } }
.notif-empty .illu { margin: 0 auto 6px; }

/* ------------------------------------------------------------- Notification flottante (charte p. 8) */
#push-host { position: fixed; z-index: 90; top: max(14px, env(safe-area-inset-top)); right: 14px; display: flex; flex-direction: column; gap: 10px; width: min(360px, calc(100vw - 28px)); pointer-events: none; }
.push-card { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 18px; text-decoration: none !important; color: #1B2531;
  background: rgba(236, 238, 242, .86); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 18px 40px -18px rgba(38, 42, 54, .45), 0 0 0 1px rgba(255, 255, 255, .5) inset; opacity: 0; transform: translateY(-14px) scale(.98); transition: opacity .25s, transform .3s cubic-bezier(.2, .8, .2, 1); cursor: pointer; }
.push-card.in { opacity: 1; transform: none; }
.push-card img { width: 38px; height: 38px; border-radius: 10px; flex: none; }
.push-card > div { flex: 1; min-width: 0; }
.pc-top { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .03em; color: #5B6170; font-weight: 600; }
.push-card b { display: block; font-size: 14px; margin-top: 1px; }
.push-card p { margin: 1px 0 0; font-size: 13px; color: #3A3F4C; line-height: 1.35; }
[data-theme="dark"] .push-card { background: rgba(43, 47, 58, .88); color: #fff; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6); }
[data-theme="dark"] .push-card p { color: #D7DBE4; } [data-theme="dark"] .pc-top { color: #AEB4C2; }
@media (max-width: 1100px) { #push-host { left: 50%; right: auto; transform: translateX(-50%); } }
.push-types { display: grid; gap: 6px; }
.check-row { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; cursor: pointer; }
.push-devices { list-style: none; margin: 0; padding: 0; } .push-devices li { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); } .push-devices li span:first-child { flex: 1; font-weight: 600; }
.push-set .row-gap { margin-bottom: 6px; }

/* ------------------------------------------------------------- Espaces (multi-entreprises) */
.org-chip { display: flex; align-items: center; gap: 8px; margin: -14px 10px 14px; padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, .06); color: #C5CAD6; font-size: 13px; font-weight: 600; text-decoration: none !important; }
.org-chip span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-chip .ic { width: 15px; height: 15px; flex: none; }
.org-chip:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.org-list { list-style: none; margin: 0 0 12px; padding: 0; }
.org-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.org-list li span:first-child { flex: 1; font-weight: 600; }
.org-new summary { list-style: none; display: inline-flex; } .org-new summary::-webkit-details-marker { display: none; }
.org-new form { margin-top: 12px; }

/* ------------------------------------------------------------- Abonnement */
.bill-banner { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; padding: 10px 14px; border-radius: 12px; font-size: 14px; }
.bill-banner span { flex: 1; } .bill-banner .ic { width: 18px; height: 18px; flex: none; }
.bill-banner.info { background: #E7F0F9; color: #134D82; } .bill-banner.warn { background: #FBF0DD; color: #8A5A12; } .bill-banner.err { background: #FDE7E7; color: #A3242A; }
[data-theme="dark"] .bill-banner.info { background: #1A2A3D; color: #8CC4FF; } [data-theme="dark"] .bill-banner.warn { background: #3A2E17; color: #E9B65E; } [data-theme="dark"] .bill-banner.err { background: #3D1C1E; color: #F3A3A6; }
body.readonly [data-action="new-booking"], body.readonly [data-book], body.readonly [data-edit], body.readonly .inv-actions .btn-primary { opacity: .45; pointer-events: none; }
.bill-hero { display: flex; gap: 22px; align-items: center; }
.bill-hero h2 { font: 700 26px var(--font-display); margin: 2px 0 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bill-hero-txt { flex: 1; }
.bill-usage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.bill-usage div { background: var(--page); border-radius: 12px; padding: 10px 12px; } .bill-usage span { display: block; font-size: 12px; color: var(--ink-3); } .bill-usage b { font: 600 17px var(--font-display); }
.billing > .card-head { margin: 22px 0 10px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.plan { display: flex; flex-direction: column; gap: 8px; }
.plan.on { border-color: #2A7BC4 !important; box-shadow: 0 0 0 3px color-mix(in srgb, #2A7BC4 15%, transparent) !important; }
.plan-name { font: 700 18px var(--font-display); }
.plan-price b { font: 700 28px var(--font-display); letter-spacing: -.02em; } .plan-price span { color: var(--ink-3); margin-left: 4px; }
.plan-feat { list-style: none; margin: 4px 0; padding: 0; font-size: 13.5px; display: grid; gap: 6px; flex: 1; }
.plan-feat li { display: flex; gap: 8px; align-items: flex-start; } .plan-feat .ic { width: 15px; height: 15px; color: var(--ok); flex: none; margin-top: 2px; }
.platform .pl-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.platform td input, .platform td select { min-height: 36px !important; max-width: 160px; }
@media (max-width: 700px) { .bill-hero { flex-direction: column; align-items: flex-start; } .bill-usage { grid-template-columns: 1fr; } }
.plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan { min-width: 0; } .plan .btn { width: 100%; white-space: normal; } .plan-feat li { white-space: normal; min-width: 0; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- Ménage */
.cleaning .toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.cl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.cl-card { display: flex; flex-direction: column; gap: 12px; }
.cl-card.late { border-color: #F3A3A6 !important; }
.cl-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.cl-prop { font: 700 18px var(--font-display); }
.cl-bar { height: 6px; border-radius: 99px; background: var(--page); overflow: hidden; } .cl-bar span { display: block; height: 100%; background: linear-gradient(90deg, #E5B38A, #D9A273); }
.cl-foot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cl-foot .btn-lg { min-height: 48px; }
.cl-check { display: grid; gap: 8px; margin-bottom: 12px; }
.check-row.big { padding: 12px 14px; font-size: 15px; } .check-row.big input { width: 22px; height: 22px; }
.check-row:has(input:checked) { background: #E2F6EE; border-color: #F3DCC6; }
[data-theme="dark"] .check-row:has(input:checked) { background: #133A2C; border-color: #2E6B44; }
.txt-err { color: var(--err); }
@media (max-width: 600px) { .cl-grid { grid-template-columns: 1fr; } .cl-foot .btn-lg { flex: 1; } }

/* ------------------------------------------------------------- AuraLiving : partenaires, filtres, relevés */
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip .chip-n { opacity: .65; font-weight: 500; }
.chip.on .chip-n { opacity: .85; }
.pcard-partner { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 3px 9px; border-radius: 999px; background: var(--gold-soft); color: #8A5A2B; font-size: 12px; font-weight: 600; }
.pcard-partner .ic { width: 14px; height: 14px; }
[data-theme="dark"] .pcard-partner { color: #E5B38A; }
.table tfoot th { border-top: 2px solid var(--line-strong); font-weight: 700; }
.ps-hero { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: 16px; background: linear-gradient(135deg, #1B2531, #1963A6); color: #fff; }
.ps-hero h2 { font: 600 24px/1.2 var(--font-display); margin: 0; color: #fff; }
.ps-hero p { margin: 4px 0 0; color: #C9D6E4; }
.ps-hero .h-symbol { flex: none; }
.occ-row { display: grid; grid-template-columns: minmax(120px, 1fr) 2.2fr; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.occ-row:last-child { border-bottom: 0; }
.occ-dates { display: flex; flex-wrap: wrap; gap: 6px; }
.occ-dates span { font-size: 12.5px; padding: 3px 9px; border-radius: 999px; background: var(--c-blue); color: var(--i-blue); }
.occ-dates span.owner { background: var(--c-pink); color: var(--i-pink); } .occ-dates span.blocked { background: var(--c-gray); color: var(--i-gray); }
/* Relevé A4 (peut tenir sur plusieurs pages) */
.a4.a4-flow { min-height: 297mm; height: auto; padding-bottom: 14mm; }
.st-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8mm; }
.st-head h1 { font: 600 9mm/1 Outfit, sans-serif; color: var(--b); margin: 0; letter-spacing: -.02em; text-align: right; }
.st-head .st-sub { text-align: right; color: var(--t2); margin-top: 1.5mm; }
.st-owner { font: 500 2.6mm/1.3 Montserrat, sans-serif; letter-spacing: .2em; color: var(--b); margin-top: 1.5mm; }
.st-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 8mm; margin-top: 9mm; }
.st-parties .lbl { color: var(--t2); font-size: 3mm; text-transform: uppercase; letter-spacing: .08em; }
.st-parties b { display: block; font-size: 3.8mm; margin: .8mm 0; }
.st-table { width: 100%; border-collapse: collapse; margin-top: 7mm; }
.st-table th { text-align: left; font-size: 2.9mm; text-transform: uppercase; letter-spacing: .05em; color: var(--t2); border-bottom: .4mm solid var(--b); padding: 2mm 1.5mm; }
.st-table td { border-bottom: .2mm solid var(--l); padding: 2.2mm 1.5mm; }
.st-table .num { text-align: right; white-space: nowrap; }
.st-table tfoot td { font-weight: 700; border-bottom: 0; border-top: .4mm solid var(--t); }
.st-total { margin: 7mm 0 0 auto; width: 85mm; }
.st-total div { display: flex; justify-content: space-between; padding: 1.6mm 0; border-bottom: .2mm solid var(--l); }
.st-total .big { font: 700 5mm Outfit, sans-serif; color: var(--b); border-bottom: 0; padding-top: 3mm; }
.st-h2 { font: 600 4.2mm Outfit, sans-serif; margin: 9mm 0 0; color: var(--t); }
.st-foot { margin-top: 12mm; padding-top: 4mm; border-top: .2mm solid var(--l); color: var(--t2); font-size: 2.9mm; display: flex; justify-content: space-between; gap: 6mm; }
.st-draft { position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%) rotate(-24deg); font: 700 22mm Outfit, sans-serif; color: rgba(217, 48, 54, .1); pointer-events: none; white-space: nowrap; }
@media print {
  .a4.a4-flow { height: auto !important; min-height: 0; overflow: visible !important; page-break-after: auto; break-inside: auto; }
  .st-table tr { break-inside: avoid; }
}
.ps-hero { --logo-blue: #A9C8E6; --logo-sand: #E5B38A; }
.st-total div span:last-child, .st-total div b { white-space: nowrap; padding-left: 4mm; }
/* Version gratuite : import manuel des calendriers */
.warn-txt { color: var(--warn-c, #B7791F); }
.feed-actions .btn { white-space: nowrap; }
.bill-req { display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; padding:12px 14px; border-radius:12px; background:var(--surface-2, rgba(0,0,0,.03)); }
.bill-req b { font-size:1.35rem; }

/* ------------------------------------------------------------ Espace photo */
.ph-card { margin-top: 16px; }
.ph-card .card-head h3 { display: flex; align-items: center; gap: 8px; } .ph-card .card-head h3 .ic { width: 18px; height: 18px; color: var(--brand); }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; padding: 4px 0 2px; }
.ph-item { position: relative; aspect-ratio: 4 / 3; border: 0; padding: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--surface-2, #eef2f7); }
.ph-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.ph-item:hover img { transform: scale(1.04); }
.ph-cover { position: absolute; top: 6px; left: 6px; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: 999px; background: rgba(0,0,0,.62); color: #fff; }
.ph-cover .ic { width: 12px; height: 12px; }
.ph-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 6px; font-size: 12px; color: #fff; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.65)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-view { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; }
.ph-stage { position: relative; display: grid; place-items: center; min-height: 240px; background: #0d1018; border-radius: 12px; overflow: hidden; }
.ph-stage img { max-width: 100%; max-height: 68vh; display: block; }
.ph-stage [data-wait] { position: absolute; bottom: 8px; right: 10px; color: #cbd3e1; }
.ph-meta { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.ph-caption { flex: 1; }
label.btn.is-busy { opacity: .6; pointer-events: none; }
.pcard-photo.has-cover { background-size: cover !important; background-position: center !important; }
.pcard-photo.has-cover .pcard-mark { display: none; }
@media (max-width: 640px) { .ph-grid { grid-template-columns: repeat(2, 1fr); } .ph-view { grid-template-columns: 1fr; } .ph-nav { display: none; } }

/* ------------------------------------------------ Versements au bailleur */
.pay-card { margin-top: 16px; }
.pay-card .card-head h3 { display: flex; align-items: center; gap: 8px; } .pay-card .card-head h3 .ic { width: 18px; height: 18px; color: var(--brand); }
.pay-table td, .pay-table th { white-space: nowrap; }
.pay-table tr.pp-late td { background: color-mix(in srgb, #e5484d 7%, transparent); }
.pay-table tr.pp-upcoming td, .pay-table tr.pp-none td { color: var(--muted, #7a8597); }
.pay-table tr.pay-sep td { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #7a8597); padding-top: 14px; }
.ph-pre { margin-top: 12px; }
.ph-pre .ph-item { cursor: default; }
.ph-x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; cursor: pointer; }
.ph-x .ic { width: 14px; height: 14px; }
.kpis-tight .kpi-value { font-size: clamp(17px, 1.7vw, 22px); white-space: nowrap; }
