/* Hôtelia — feuille de style (bleu nuit et sable doré) */
@font-face { font-family: Cairo; font-weight: 400; font-display: swap; src: url(../fonts/cairo-arabic-400-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Cairo; font-weight: 600; font-display: swap; src: url(../fonts/cairo-arabic-600-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Cairo; font-weight: 700; font-display: swap; src: url(../fonts/cairo-arabic-700-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Cairo; font-weight: 400; font-display: swap; src: url(../fonts/cairo-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212; }
@font-face { font-family: Cairo; font-weight: 600; font-display: swap; src: url(../fonts/cairo-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212; }
@font-face { font-family: Cairo; font-weight: 700; font-display: swap; src: url(../fonts/cairo-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212; }
@font-face { font-family: Cairo; font-weight: 400; font-display: swap; src: url(../fonts/cairo-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+1E00-1EFF; }
@font-face { font-family: Cairo; font-weight: 600; font-display: swap; src: url(../fonts/cairo-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+1E00-1EFF; }
@font-face { font-family: Cairo; font-weight: 700; font-display: swap; src: url(../fonts/cairo-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+1E00-1EFF; }
@font-face { font-family: Playfair; font-weight: 600; font-display: swap; src: url(../fonts/playfair-display-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Playfair; font-weight: 700; font-display: swap; src: url(../fonts/playfair-display-latin-700-normal.woff2) format('woff2'); }


/* ===================================================================
   Hôtelia 1.2 — interface calme : fond clair, une seule couleur d'accent,
   couleurs d'état réservées aux points et aux liserés. Vrai mode sombre.
   =================================================================== */
:root {
  --bg: #f5f6f8; --card: #ffffff; --soft: #f8f9fb; --hover: #f2f4f7; --sunk: #eef0f3;
  --ink: #1f2430; --ink-2: #414856; --muted: #6b7280; --faint: #9aa1ad; --line: #e5e7eb; --line-2: #f0f1f4;
  --accent: #1f3a5f; --accent-2: #2b4d7a; --accent-soft: #e8eef6; --on-accent: #ffffff;
  --gold: #b8924a; --gold-2: #e9d8ae; --gold-ink: #8a6a2c; --navy: #1f3a5f;
  --ok: #2f9e66; --info: #3b73d9; --violet: #7c5cd6; --orange: #e08a2b; --red: #d9534f; --yellow: #c99a12; --teal: #1a9e9e; --grey: #8b93a1;
  --tint: 8%;
  --radius: 12px; --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .14), 0 2px 6px rgba(16, 24, 40, .06);
  --scrim: rgba(17, 24, 39, .45);
  --sidebar: 240px; --topbar: 60px; --bottombar: 64px;
  color-scheme: light;
}
[data-theme=dark] {
  --bg: #0f1216; --card: #171b21; --soft: #1b2027; --hover: #21262e; --sunk: #12161b;
  --ink: #e4e7eb; --ink-2: #c3c9d2; --muted: #8f98a6; --faint: #6b7482; --line: #2a3039; --line-2: #222831;
  --accent: #8db4e8; --accent-2: #a9c7ef; --accent-soft: rgba(141, 180, 232, .13); --on-accent: #0f1216;
  --gold: #d6b26e; --gold-2: #e9d8ae; --gold-ink: #e2c27f; --navy: #c9d6ea;
  --ok: #4cc38a; --info: #6ea2f0; --violet: #a68cf0; --orange: #f0a45a; --red: #f07a75; --yellow: #e5c24f; --teal: #4fc7c7; --grey: #8f98a6;
  --tint: 14%;
  --shadow: none;
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, .55), 0 0 0 1px var(--line);
  --scrim: rgba(0, 0, 0, .6);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: Cairo, system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.3; font-weight: 700; color: var(--ink); }
h1 { font-size: 1.4rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; font-weight: 600; }
.muted { color: var(--muted); } .small { font-size: .86em; } .nowrap { white-space: nowrap; } .right { text-align: end; } .center { text-align: center; }
.num { font-variant-numeric: tabular-nums; } .b { font-weight: 700; } .mt { margin-top: 1rem; } .mb { margin-bottom: 1rem; } .gap { gap: .5rem; }
.row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; } .row.between { justify-content: space-between; } .grow { flex: 1; }
.hide { display: none !important; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.ic.lg { width: 1.45em; height: 1.45em; }
[dir=rtl] .flip { transform: scaleX(-1); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }

/* ---------- Mise en page ---------- */
.app { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--card); border-inline-end: 1px solid var(--line); position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; z-index: 40; }
.brand { display: flex; align-items: center; gap: .65rem; padding: 1rem 1rem .9rem; min-height: var(--topbar); }
.brand .logo { width: 34px; height: 34px; border-radius: 9px; background: var(--gold); display: grid; place-items: center; color: #fff; overflow: hidden; flex: none; }
.brand .logo .ic { width: 1.2em; height: 1.2em; }
.brand .logo img { width: 100%; height: 100%; object-fit: cover; }
.brand .name { font-weight: 700; font-size: 1.02rem; line-height: 1.2; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[dir=ltr] .brand .name { font-family: Playfair, Georgia, serif; font-size: 1.08rem; }
.brand .sub { font-size: .74rem; color: var(--muted); }
.brand .x { margin-inline-start: auto; display: none; }
.nav { flex: 1; overflow-y: auto; padding: .3rem .6rem 1rem; overscroll-behavior: contain; }
.nav .sep { height: 1px; background: var(--line); margin: .7rem .55rem; }
.nav a { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 9px; color: var(--ink-2); font-weight: 500; font-size: .95rem; margin-bottom: 1px; }
.nav a .ic { color: var(--faint); }
.nav a:hover { background: var(--hover); color: var(--ink); }
.nav a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav a.active .ic { color: var(--accent); }
.nav a .count { margin-inline-start: auto; background: var(--red); color: #fff; font-size: .7rem; border-radius: 20px; padding: 0 .45rem; min-width: 1.3rem; text-align: center; }
.side-foot { padding: .75rem 1rem; border-top: 1px solid var(--line); font-size: .78rem; color: var(--faint); display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.side-foot a { color: var(--muted); display: inline-flex; gap: .35rem; align-items: center; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: .75rem; height: var(--topbar); padding: 0 1.5rem; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid transparent; }
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar .burger, .topbar .search-btn, .topbar .t-title { display: none; }
.search { position: relative; flex: 1; max-width: 420px; }
.search input { width: 100%; margin: 0; padding: .5rem .9rem .5rem 2.3rem; border-radius: 10px; border: 1px solid var(--line); background: var(--card); }
[dir=rtl] .search input { padding: .5rem 2.3rem .5rem .9rem; }
.search > .ic { position: absolute; inset-inline-start: .8rem; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search .results { position: absolute; top: calc(100% + 6px); inset-inline: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); max-height: 420px; overflow: auto; z-index: 50; }
.search .results a { display: flex; gap: .6rem; align-items: center; padding: .55rem .9rem; color: var(--ink); border-bottom: 1px solid var(--line-2); }
.search .results a:hover, .search .results a.sel { background: var(--hover); }
.search .results .grp { font-size: .75rem; color: var(--muted); padding: .55rem .9rem .2rem; font-weight: 600; }
.top-right { margin-inline-start: auto; display: flex; align-items: center; gap: .5rem; }
.chip-date { white-space: nowrap; display: flex; align-items: center; gap: .4rem; color: var(--ink-2); font-weight: 600; font-size: .88rem; padding: .3rem .4rem; }
.chip-date .ic { color: var(--faint); }
.live { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; color: var(--muted); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.live.off { color: var(--red); } .live.off i { background: var(--red); }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); flex: none; }
.icon-btn:hover { background: var(--hover); color: var(--ink); }
.user-btn { display: flex; align-items: center; gap: .5rem; border: 0; background: transparent; border-radius: 30px; padding: .2rem .7rem .2rem .2rem; cursor: pointer; color: var(--ink); font: inherit; font-weight: 600; }
[dir=rtl] .user-btn { padding: .2rem .2rem .2rem .7rem; }
.user-btn:hover { background: var(--hover); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: .8rem; font-weight: 700; flex: none; }
.menu { position: absolute; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); min-width: 230px; max-width: calc(100vw - 16px); padding: .35rem; z-index: 300; animation: pop .12s ease-out; }
.menu button, .menu a { display: flex; width: 100%; gap: .6rem; align-items: center; border: 0; background: none; padding: .55rem .7rem; border-radius: 8px; color: var(--ink); cursor: pointer; font: inherit; text-align: start; }
.menu button .ic { color: var(--muted); }
.menu button:hover, .menu a:hover { background: var(--hover); }
.menu button.on { color: var(--accent); font-weight: 600; } .menu button.on .ic { color: var(--accent); }
.menu .lbl { color: var(--muted); font-size: .78rem; padding: .45rem .7rem .15rem; font-weight: 600; }
.menu .hr { height: 1px; background: var(--line); margin: .3rem .2rem; }
.menu .seg { display: flex; gap: .25rem; padding: .2rem .4rem .45rem; }
.menu .seg button { justify-content: center; flex: 1; border: 1px solid var(--line); padding: .4rem .3rem; font-size: .85rem; }
.menu .seg button.on { border-color: var(--accent); background: var(--accent-soft); }
.menu .who { padding: .55rem .7rem .4rem; }
.menu .who b { display: block; }
.content { padding: 1.4rem 1.5rem 3rem; max-width: 1480px; width: 100%; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.page-title { margin: 0; }
.page-head .sub { color: var(--muted); font-size: .92rem; }
.page-head .row { gap: .5rem; }

/* Barre du bas (téléphone) et voile du menu */
.bottombar { display: none; }
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 35; opacity: 0; pointer-events: none; transition: opacity .25s; }

/* ---------- Composants ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.05rem 1.15rem; }
.card + .card { margin-top: 1rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .85rem; flex-wrap: wrap; }
.card-head h3 { margin: 0; display: flex; gap: .5rem; align-items: center; }
.card-head h3 .ic { color: var(--faint); }
.grid { display: grid; gap: 1rem; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1rem; align-items: start; }
.split-l { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 1rem; align-items: start; }
.stack > * + * { margin-top: 1rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .52rem .95rem; border-radius: 9px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 600; font-size: .93rem; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; text-decoration: none; min-height: 38px; }
.btn .ic { color: inherit; opacity: .85; }
.btn:hover { background: var(--hover); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.gold { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.gold:hover { background: var(--accent-2); }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
[data-theme=dark] .btn.danger, [data-theme=dark] .btn.ok { color: #0f1216; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--hover); color: var(--ink); }
.btn.sm { padding: .3rem .6rem; font-size: .86rem; border-radius: 8px; min-height: 32px; }
.btn.lg { padding: .85rem 1.2rem; font-size: 1.02rem; border-radius: 11px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.only-ic { padding-inline: .55rem; }
.btn-group { display: inline-flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
/* Pastilles d'état : un point de couleur et du texte, sans fond */
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: 0; border: 0; background: none; font-size: .86rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--grey)); flex: none; }
.chip:has(> .ic)::before { display: none; }
.chip > .ic { color: var(--c, var(--grey)); }
.chip .dot { display: none; }
.chip.click { cursor: pointer; }
.chip.off { opacity: .4; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 1.4rem; height: 1.4rem; padding: 0 .4rem; border-radius: 20px; font-size: .75rem; font-weight: 700; background: var(--sunk); color: var(--ink-2); }
.badge.red { background: var(--red); color: #fff; }
.st-libre, .c-ok { --c: var(--ok); } .st-reservee, .c-info { --c: var(--info); } .st-occupee, .c-violet { --c: var(--violet); } .st-depart, .c-orange { --c: var(--orange); }
.st-sale, .c-red { --c: var(--red); } .st-nettoyage, .c-yellow { --c: var(--yellow); } .st-controle, .c-teal { --c: var(--teal); } .st-hs, .c-grey { --c: var(--grey); } .c-gold { --c: var(--gold); }
.r-option { --c: var(--yellow); } .r-confirmee { --c: var(--info); } .r-en_sejour { --c: var(--violet); } .r-partie { --c: var(--grey); } .r-annulee { --c: var(--red); } .r-no_show { --c: var(--orange); }
.alert { border-radius: 10px; padding: .65rem .85rem; border: 1px solid var(--line); display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .5rem; background: var(--card); color: var(--ink); }
.alert > .ic { margin-top: .15rem; }
.alert.danger { background: color-mix(in srgb, var(--red) var(--tint), var(--card)); border-color: color-mix(in srgb, var(--red) 30%, var(--line)); } .alert.danger > .ic { color: var(--red); }
.alert.warn { background: color-mix(in srgb, var(--orange) var(--tint), var(--card)); border-color: color-mix(in srgb, var(--orange) 30%, var(--line)); } .alert.warn > .ic { color: var(--orange); }
.alert.info { background: color-mix(in srgb, var(--info) var(--tint), var(--card)); border-color: color-mix(in srgb, var(--info) 25%, var(--line)); } .alert.info > .ic { color: var(--info); }
.alert.ok { background: color-mix(in srgb, var(--ok) var(--tint), var(--card)); border-color: color-mix(in srgb, var(--ok) 25%, var(--line)); } .alert.ok > .ic { color: var(--ok); }
.note { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: .7rem .9rem; font-size: .92rem; color: var(--ink-2); }
.empty { text-align: center; color: var(--muted); padding: 2rem 1rem; }
.empty .ic { width: 2.2rem; height: 2.2rem; opacity: .3; display: block; margin: 0 auto .6rem; }
.tabs { display: flex; gap: .2rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: none; padding: .6rem .85rem; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: flex; gap: .45rem; align-items: center; }
.tabs button .ic { display: none; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); border-color: var(--accent); }
.tabs .n { background: var(--sunk); border-radius: 20px; padding: 0 .45rem; font-size: .75rem; color: var(--ink-2); min-width: 1.3rem; text-align: center; }
.tabs button.on .n { background: var(--accent-soft); color: var(--accent); }
details.more { border-top: 1px solid var(--line); margin-top: .9rem; padding-top: .6rem; }
details.more > summary { cursor: pointer; color: var(--accent); font-weight: 600; list-style: none; display: inline-flex; gap: .35rem; align-items: center; padding: .2rem 0; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary .ic { transition: transform .15s; }
details.more[open] > summary .ic { transform: rotate(180deg); }
details.more > .fgrid { margin-top: .75rem; }

/* KPI : chiffres clés, sobres */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .8rem; margin-bottom: 1.1rem; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem 1rem; box-shadow: var(--shadow); min-width: 0; }
.kpi.click { cursor: pointer; } .kpi.click:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.kpi .lbl { color: var(--muted); font-size: .84rem; font-weight: 600; display: flex; gap: .45rem; align-items: center; }
.kpi .lbl .ic { display: none; }
.kpi .lbl::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--accent)); flex: none; }
.kpi .val { font-size: 1.55rem; font-weight: 700; margin-top: .1rem; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.kpi .val.m { font-size: 1.2rem; padding-top: .3rem; }
.kpi .ksub { font-size: .8rem; color: var(--muted); margin-top: .05rem; }
.kpi .val small { font-size: .95rem; color: var(--faint); font-weight: 600; }
.kpi .kbar { display: none; }

/* Tableaux */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.card .tbl-wrap { border-radius: 8px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tbl th { text-align: start; font-size: .8rem; font-weight: 600; color: var(--muted); background: var(--soft); padding: .55rem .8rem; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; }
.tbl th.sort { cursor: pointer; } .tbl th.sort:hover { color: var(--ink); }
.tbl th.sorted::after { content: ' ↓'; } .tbl th.sorted.asc::after { content: ' ↑'; }
.tbl td { padding: .62rem .8rem; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr:hover { background: var(--hover); }
.tbl td.act { white-space: nowrap; text-align: end; }
.tbl .tot td { font-weight: 700; background: var(--soft); }
.tbl-tools { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: .75rem; }
.tbl-tools .q { flex: 1; min-width: 160px; max-width: 300px; margin: 0; }
.tbl-foot { font-size: .8rem; color: var(--faint); margin-top: .45rem; }

/* Formulaires */
label { display: block; font-weight: 600; font-size: .86rem; color: var(--ink-2); }
input, select, textarea { font: inherit; font-size: .95rem; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 9px; padding: .52rem .7rem; width: 100%; margin-top: .3rem; transition: border-color .15s, box-shadow .15s; min-height: 40px; }
select { cursor: pointer; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
input.bad, select.bad, textarea.bad { border-color: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 15%, transparent); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--accent); }
input[type=date], input[type=time] { min-width: 0; }
textarea { min-height: 72px; resize: vertical; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .85rem 1rem; }
.fgrid .full { grid-column: 1 / -1; }
.fgrid .w2 { grid-column: span 2; }
label.check { display: flex; gap: .55rem; align-items: center; color: var(--ink); font-weight: 500; cursor: pointer; margin-top: .3rem; min-height: 40px; }
.req::after { content: ' *'; color: var(--red); }
.help { font-weight: 400; font-size: .8rem; color: var(--muted); margin-top: .2rem; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem 1rem; margin: 0 0 1rem; }
legend { font-weight: 600; padding: 0 .4rem; color: var(--ink-2); }
.form-sec { font-weight: 600; color: var(--ink); margin: .9rem 0 .2rem; font-size: .95rem; }
.form-sec:first-child { margin-top: 0; }

/* Fenêtres */
.overlay { position: fixed; inset: 0; background: var(--scrim); z-index: 100; display: grid; place-items: center; padding: 1rem; animation: fade .15s; }
.modal { background: var(--card); border-radius: 16px; box-shadow: var(--shadow-lg); width: min(560px, 100%); max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); display: flex; flex-direction: column; animation: pop .18s ease-out; }
.modal.lg { width: min(820px, 100%); } .modal.xl { width: min(1040px, 100%); }
.modal-h { padding: .95rem 1.2rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: .6rem; }
.modal-h > .ic { color: var(--faint); }
.modal-h h2 { margin: 0; font-size: 1.08rem; flex: 1; }
.modal-b { padding: 1.1rem 1.2rem; overflow-y: auto; overscroll-behavior: contain; }
.modal-f { padding: .8rem 1.2rem; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: .5rem; flex-wrap: wrap; border-radius: 0 0 16px 16px; }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { transform: translateY(8px); opacity: 0; } }
.toasts { position: fixed; bottom: 1.2rem; inset-inline-end: 1.2rem; z-index: 400; display: flex; flex-direction: column; gap: .5rem; max-width: 380px; }
.toast { background: var(--ink); color: var(--card); padding: .7rem .95rem; border-radius: 11px; box-shadow: var(--shadow-lg); display: flex; gap: .6rem; align-items: flex-start; animation: pop .2s; font-weight: 500; }
.toast > .ic { margin-top: .15rem; }
.toast.danger > .ic { color: var(--red); } .toast.ok > .ic { color: var(--ok); } .toast.info > .ic { color: var(--info); }
[data-theme=dark] .toast { background: #2a313b; color: var(--ink); }
.toast.out { opacity: 0; transform: translateY(6px); transition: .3s; }

/* Tableau de bord : plan des chambres */
.legend { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.legend .chip { border: 1px solid var(--line); border-radius: 20px; padding: .25rem .7rem; font-size: .82rem; background: var(--card); }
.legend .chip:hover { background: var(--hover); }
.legend.plain { gap: .9rem; } .legend.plain .chip { border: 0; padding: 0; background: none; }
.legend .chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.legend .chip.off { opacity: 1; color: var(--muted); }
.floor { margin-bottom: 1rem; }
.floor:last-child { margin-bottom: 0; }
.floor-h { font-size: .8rem; color: var(--muted); font-weight: 600; margin-bottom: .45rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: .6rem; }
.tile { position: relative; border-radius: 10px; padding: .6rem .7rem; background: var(--card); border: 1px solid var(--line); border-inline-start: 4px solid var(--c); cursor: pointer; transition: border-color .12s, background .12s; min-height: 84px; display: flex; flex-direction: column; gap: .1rem; }
.tile:hover { background: var(--hover); }
.tile .top { display: flex; align-items: baseline; gap: .3rem; }
.tile .num { font-size: 1.15rem; font-weight: 700; line-height: 1.1; }
.tile .type { font-size: .72rem; color: var(--faint); margin-inline-start: auto; }
.tile .state { font-size: .8rem; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: .35rem; }
.tile .state::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
.tile .guest { font-size: .82rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: auto; }
.tile .meta { font-size: .75rem; color: var(--muted); display: flex; gap: .3rem; align-items: center; flex-wrap: wrap; }
.tile .icons { display: inline-flex; gap: .2rem; color: var(--faint); }
.tile .icons .ic { width: .9em; height: .9em; }
.ic.vip { color: var(--gold); fill: var(--gold); }
.tile.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0% { background: color-mix(in srgb, var(--c) 22%, var(--card)); } 100% { background: var(--card); } }
.tile.dim { opacity: .22; }
.feed { list-style: none; margin: 0; padding: 0; max-height: 460px; overflow-y: auto; }
.feed li { display: flex; gap: .65rem; padding: .5rem 0; border-bottom: 1px solid var(--line-2); font-size: .9rem; align-items: flex-start; }
.feed li:last-child { border: 0; }
.feed .t { color: var(--faint); font-size: .78rem; white-space: nowrap; min-width: 40px; text-align: end; }
.feed .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--c, var(--grey)); margin-top: .5rem; }
.feed .dot .ic { display: none; }
.feed li.new { animation: newfeed 2s; }
@keyframes newfeed { from { background: var(--accent-soft); } }
.alert-list a { color: inherit; }
.alert-list a.alert:hover { filter: brightness(.98); }
.attention { border: 1px solid color-mix(in srgb, var(--orange) 35%, var(--line)); background: color-mix(in srgb, var(--orange) var(--tint), var(--card)); border-radius: var(--radius); margin-bottom: 1rem; }
.attention > summary { list-style: none; cursor: pointer; padding: .7rem 1rem; display: flex; gap: .6rem; align-items: center; font-weight: 600; }
.attention > summary::-webkit-details-marker { display: none; }
.attention > summary > .ic:first-child { color: var(--orange); }
.attention > summary .chev { margin-inline-start: auto; color: var(--muted); transition: transform .15s; }
.attention[open] > summary .chev { transform: rotate(180deg); }
.attention .alert-list { padding: 0 .8rem .6rem; }
.attention .alert { background: var(--card); }

/* Planning */
.plan-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--card); max-height: calc(100vh - 220px); position: relative; }
.plan { display: grid; position: relative; min-width: max-content; }
.plan .ph { position: sticky; top: 0; z-index: 3; background: var(--soft); border-bottom: 1px solid var(--line); font-size: .72rem; text-align: center; padding: .35rem 0; color: var(--muted); font-weight: 600; line-height: 1.2; }
.plan .ph b { display: block; font-size: .95rem; color: var(--ink); }
.plan .ph.today { background: var(--accent-soft); color: var(--accent); }
.plan .ph.we, .plan .pc.we { background-color: color-mix(in srgb, var(--ink) 3%, transparent); }
.plan .corner { position: sticky; inset-inline-start: 0; top: 0; z-index: 5; background: var(--soft); border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); }
.plan .pr { position: sticky; inset-inline-start: 0; z-index: 2; background: var(--card); border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line-2); padding: 0 .6rem; display: flex; align-items: center; gap: .45rem; font-weight: 700; height: 44px; }
.plan .pr small { color: var(--muted); font-weight: 500; font-size: .72rem; }
.plan .pr .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.plan .pc { border-bottom: 1px solid var(--line-2); border-inline-end: 1px solid var(--line-2); height: 44px; cursor: cell; }
.plan .pc:hover { background: var(--hover); }
.plan .pc.today { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.plan .hs { background: repeating-linear-gradient(45deg, transparent 0 6px, color-mix(in srgb, var(--grey) 16%, transparent) 6px 12px); }
.bar { position: absolute; height: 32px; border-radius: 8px; padding: 0 .55rem; display: flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600; color: var(--ink); background: color-mix(in srgb, var(--c) 18%, var(--card)); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); border-inline-start: 4px solid var(--c); cursor: grab; overflow: hidden; white-space: nowrap; z-index: 1; user-select: none; touch-action: none; }
.bar.r-option { background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--yellow) 16%, var(--card)) 0 8px, var(--card) 8px 16px); }
.bar.r-partie { background: var(--soft); color: var(--muted); cursor: pointer; }
.bar .ic { width: .9em; height: .9em; }
.bar.drag { opacity: .9; box-shadow: var(--shadow-lg); cursor: grabbing; z-index: 10; }
.bar.cut-start { border-start-start-radius: 0; border-end-start-radius: 0; }
.bar.cut-end { border-start-end-radius: 0; border-end-end-radius: 0; }

/* Ménage */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; align-items: start; }
.kcol { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem; min-height: 180px; }
.kcol h3 { font-size: .92rem; display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.kcard { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .65rem .7rem; margin-bottom: .5rem; border-inline-start: 4px solid var(--c, var(--line)); }
.kcard .h { display: flex; justify-content: space-between; align-items: center; gap: .4rem; }
.kcard .n { font-size: 1.12rem; font-weight: 700; }
.kcard select { padding: .3rem .5rem; font-size: .86rem; margin-top: .4rem; min-height: 34px; }
.kcard .acts { display: flex; gap: .35rem; margin-top: .5rem; flex-wrap: wrap; }
.mobile-task { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; margin-bottom: .8rem; border-inline-start: 5px solid var(--c); }
.mobile-task .n { font-size: 1.7rem; font-weight: 700; line-height: 1; }
.mobile-task .btn { width: 100%; margin-top: .7rem; padding: .9rem; font-size: 1.05rem; }

/* Pages de connexion et borne */
.page-center { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 1.5rem; background: var(--bg); }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 2rem; width: min(420px, 100%); }
.auth-card.wide { width: min(760px, 100%); }
.brand-lg { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.45rem; color: var(--ink); margin-bottom: 1.2rem; }
[dir=ltr] .brand-lg, .brand-lg:lang(fr), .brand-lg:lang(en) { font-family: Playfair, Georgia, serif; }
.brand-lg .ic { color: var(--gold); width: 1.5em; height: 1.5em; }
.form-grid fieldset { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .7rem 1rem; }
.form-grid > * + * { margin-top: 1rem; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: 1rem; }
.keypad button { font: inherit; font-size: 1.5rem; font-weight: 600; padding: .85rem 0; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); cursor: pointer; color: var(--ink); }
.keypad button:active { background: var(--accent-soft); }
.pin-dots { display: flex; gap: .8rem; justify-content: center; margin: 1rem 0 .3rem; }
.pin-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--accent); }
.pin-dots i.on { background: var(--accent); }
.lang-switch { display: flex; gap: .3rem; justify-content: center; margin-top: 1.2rem; flex-wrap: wrap; }
.lang-switch button { border: 1px solid var(--line); background: none; border-radius: 20px; padding: .25rem .75rem; cursor: pointer; font: inherit; color: var(--muted); }
.lang-switch button.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* Espaces et activités */
.esp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; align-items: start; }
.esp-grid .card + .card { margin-top: 0; }
.esp .card-head h3 .ic { color: var(--accent); }
.esr { display: flex; align-items: center; gap: .75rem; padding: .55rem .65rem; border: 1px solid var(--line); border-inline-start: 3px solid var(--c, var(--line)); border-radius: 9px; margin-bottom: .45rem; cursor: pointer; background: var(--card); }
.esr:hover { background: var(--hover); }
.esr.off { opacity: .55; }
.esr .h { font-weight: 700; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; line-height: 1.15; min-width: 3.2rem; }
.esr .h small { font-weight: 500; color: var(--muted); font-size: .78rem; }
.esr .who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.esr .who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Droits d'accès */
.rights td, .rights th { text-align: center; }
.rights td:first-child, .rights th:first-child { text-align: start; }
.rights select { margin: 0; min-width: 120px; padding: .35rem .5rem; min-height: 34px; font-size: .88rem; }
.rights select[data-v=""] { color: var(--faint); }
.rights select[data-v="rwd"] { color: var(--accent); font-weight: 600; }
.rights .fixed { color: var(--muted); font-size: .86rem; }

/* Divers */
.dispo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .6rem; max-height: 300px; overflow-y: auto; padding: .2rem; }
.dispo { border: 1.5px solid var(--line); border-radius: 10px; padding: .6rem .75rem; cursor: pointer; background: var(--card); }
.dispo:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.dispo.sel { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); background: var(--accent-soft); }
.dispo .n { font-weight: 700; font-size: 1.05rem; }
.dispo .p { font-weight: 700; color: var(--accent); }
.ac { position: relative; }
.ac-list { position: absolute; z-index: 10; inset-inline: 0; top: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); max-height: 240px; overflow-y: auto; }
.ac-list div { padding: .5rem .75rem; cursor: pointer; border-bottom: 1px solid var(--line-2); }
.ac-list div:hover { background: var(--hover); }
.sum-box { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; }
.sum-box .l { display: flex; justify-content: space-between; padding: .15rem 0; gap: 1rem; }
.sum-box .l.big { font-size: 1.12rem; font-weight: 700; border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .45rem; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.2rem; font-size: .93rem; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.resa-head { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.resa-head .roomnum { width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; font-weight: 700; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-inline-start: 4px solid var(--c, var(--line)); flex: none; }
.shift { display: inline-block; min-width: 2.1rem; text-align: center; border-radius: 7px; padding: .1rem .3rem; font-weight: 700; font-size: .8rem; background: color-mix(in srgb, var(--c) 16%, var(--card)); color: color-mix(in srgb, var(--c) 70%, var(--ink)); }
.sh-M { --c: var(--yellow); } .sh-S { --c: var(--info); } .sh-N { --c: var(--violet); } .sh-J { --c: var(--ok); } .sh-R { --c: var(--grey); } .sh-C { --c: var(--red); }
.plan-staff select { padding: .25rem; font-size: .84rem; margin: 0; min-width: 72px; min-height: 32px; }
.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.chart-box { position: relative; height: 270px; }
.drop { border: 2px dashed var(--line); border-radius: 12px; padding: 1.4rem; text-align: center; color: var(--muted); cursor: pointer; transition: .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.imp-card { display: flex; flex-direction: column; gap: .5rem; }
.imp-card .ic.lg { color: var(--accent); }
.logo-prev { width: 96px; height: 96px; border-radius: 14px; border: 1px solid var(--line); object-fit: cover; background: var(--soft); }
.ok-t { color: var(--ok); } .bad-t { color: var(--red); } .warn-t { color: var(--orange); }
.sec-list { display: grid; gap: .5rem; }

/* ---------- Écrans moyens ---------- */
@media (max-width: 1180px) { .split, .split-l { grid-template-columns: 1fr; } .kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); } .charts { grid-template-columns: 1fr; } .g4 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Téléphone et petite tablette : menu en tiroir + barre du bas ---------- */
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; height: auto; width: min(300px, 86vw); transform: translateX(-100%); visibility: hidden; transition: transform .26s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .26s; box-shadow: none; border-inline-end: 0; }
  [dir=rtl] .sidebar { transform: translateX(100%); }
  .app.open .sidebar { transform: none; visibility: visible; transition: transform .26s cubic-bezier(.2, .8, .2, 1); box-shadow: var(--shadow-lg); }
  .sidebar.dragging { transition: none !important; }
  .app.open .scrim { opacity: 1; pointer-events: auto; }
  .brand .x { display: grid; }
  .nav a { padding: .7rem .75rem; font-size: 1rem; }
  .topbar { padding: 0 .5rem; gap: .25rem; }
  .topbar .burger, .topbar .search-btn { display: grid; }
  .topbar .t-title { display: block; font-weight: 700; font-size: 1.02rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-inline-start: .2rem; }
  .topbar .search { display: none; }
  .topbar.searching .search { display: block; position: absolute; inset: 0; max-width: none; background: var(--bg); padding: .6rem .6rem; z-index: 5; }
  .topbar.searching .search > .ic { inset-inline-start: 1.4rem; }
  .topbar.searching .search .results { inset-inline: .6rem; }
  .chip-date { font-size: .82rem; padding: .2rem; }
  .chip-date .ic { display: none; }
  .user-btn { padding: .2rem; } [dir=rtl] .user-btn { padding: .2rem; }
  .user-btn .nm { display: none; }
  .content { padding: 1rem .8rem calc(var(--bottombar) + 1.5rem + env(safe-area-inset-bottom)); }
  .page-head { margin-bottom: 1rem; }
  .page-head h1.page-title { font-size: 1.2rem; }
  .page-head .page-title:not(.keep) { display: none; }
  .legend { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -.85rem; padding-inline: .85rem; }
  .legend::-webkit-scrollbar { display: none; }
  .legend .chip { flex: none; }
  .page-head > .row { width: 100%; }
  .page-head > .row > .btn.primary { flex: 1; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; } .kanban { grid-template-columns: 1fr; }
  .bottombar { display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 30; background: var(--card); border-top: 1px solid var(--line); height: calc(var(--bottombar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }
  .bottombar a, .bottombar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; font: inherit; font-size: .72rem; font-weight: 600; color: var(--muted); background: none; border: 0; cursor: pointer; padding: .3rem 0; min-width: 0; }
  .bottombar span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 .2rem; }
  .bottombar .ic { width: 1.4rem; height: 1.4rem; }
  .bottombar a.active { color: var(--accent); }
  .toasts { inset-inline: .8rem; bottom: calc(var(--bottombar) + .8rem + env(safe-area-inset-bottom)); max-width: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .esp-grid { grid-template-columns: 1fr; gap: .8rem; }
  .kpi { padding: .7rem .8rem; } .kpi .val { font-size: 1.35rem; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: .5rem; }
  .tile { min-height: 74px; padding: .5rem .55rem; } .tile .type, .tile .meta { display: none; }
  .card { padding: .9rem .85rem; }
  .tbl-tools .q { max-width: none; }
  /* Fenêtres en plein écran, boutons toujours visibles en bas */
  .overlay { padding: 0; place-items: end stretch; }
  .modal, .modal.lg, .modal.xl { width: 100%; max-height: 94vh; max-height: 94dvh; border-radius: 16px 16px 0 0; animation: sheet .22s ease-out; }
  .modal-f { border-radius: 0; padding-bottom: calc(.8rem + env(safe-area-inset-bottom)); }
  .modal-f .btn { flex: 1; }
  .fgrid { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .fgrid .w2 { grid-column: 1 / -1; }
  .split-l, .split { gap: .8rem; }
  .plan-wrap { max-height: calc(100vh - 260px); }
}
@keyframes sheet { from { transform: translateY(40px); opacity: .6; } }
/* Tableaux en fiches sur téléphone */
@media (max-width: 640px) {
  .fgrid { grid-template-columns: 1fr; }
  .tbl-wrap.cards { border: 0; background: none; overflow: visible; }
  .tbl-wrap.cards table, .tbl-wrap.cards tbody { display: block; }
  .tbl-wrap.cards thead { display: none; }
  .tbl-wrap.cards tr { display: grid; grid-template-columns: 1fr auto; gap: .1rem .8rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .7rem .85rem; margin-bottom: .55rem; }
  .tbl-wrap.cards tr:hover { background: var(--card); }
  .tbl-wrap.cards td { display: block; padding: 0; border: 0; min-width: 0; grid-column: 1 / -1; font-size: .9rem; }
  .tbl-wrap.cards td:first-child { grid-column: 1; font-weight: 600; font-size: .98rem; }
  .tbl-wrap.cards td.act { grid-column: 2; grid-row: 1; align-self: start; }
  .tbl-wrap.cards td[data-l]:not(:first-child):not(.act)::before { content: attr(data-l) ' : '; color: var(--muted); font-weight: 500; }
  .tbl-wrap.cards td.right { text-align: start; }
  .tbl-wrap.cards td[colspan] { grid-column: 1 / -1; }
  .tbl-wrap.cards td:empty { display: none; }
  .kv { grid-template-columns: 1fr; gap: 0; } .kv dt { margin-top: .45rem; font-size: .85rem; }
  .resa-head .roomnum { width: 52px; height: 52px; font-size: 1.15rem; }
  .btn { min-height: 42px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print {
  .sidebar, .topbar, .bottombar, .scrim, .no-print, .toasts { display: none !important; }
  .app { display: block; } body { background: #fff; color: #111; } .card { box-shadow: none; }
}
