:root {
  --field: #e7dcc8;
  --paper: #f4efe4;
  --sheet: #fffcf8;
  --rail: #1b3d32;
  --radius: 8px;
  --ink: #1c2420;
  --ink-soft: #5c675f;
  --line: #ddd4c4;
  --line-strong: #c9bfae;
  --brand: #1b3d32;
  --brand-ink: #f6f1e6;
  --brass: #8a6730;
  --ok: #1d5c3c;
  --warn: #8a5a12;
  --bad: #8c322b;
  --info: #234e72;
  --free: #6e9a82;
  --reserved: #c4963a;
  --paid: #3f6f96;
  --occupied: #6d6962;
  --font-text: Aptos, "Segoe UI", system-ui, sans-serif;
  --font-title: Aptos, "Segoe UI", system-ui, sans-serif;
  --font-figure: Consolas, "Cascadia Mono", ui-monospace, monospace;
  --space: 4px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  background: var(--field);
  color: var(--ink);
  font: clamp(15px, 14px + 0.2vw, 16px)/1.5 var(--font-text);
}
h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 600;
  margin: 0;
  line-height: 1.15;
}
h1 { font-size: clamp(1.7rem, 1.15rem + 1.6vw, 2.5rem); }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
a { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
.mono { font-family: var(--font-figure); font-size: 0.92em; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.86rem; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--sheet);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { border-color: var(--ink); }
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}
.btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
}
.btn.primary:hover { background: #244a3e; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { border-color: var(--line); }
.btn.sm { min-height: 34px; padding: 0 10px; font-size: 0.86rem; }
.btn.iconly { width: 36px; padding: 0; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn svg, .ico { width: 18px; height: 18px; flex: none; }

label.f {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 400px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}
label.f:has(textarea) { max-width: min(640px, 100%); }
label.f > span.req::after { content: " *"; color: var(--brass); }
input, select, textarea {
  width: 100%;
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--sheet);
}
textarea { min-height: 68px; resize: vertical; }
input[type="checkbox"] { width: auto; min-height: auto; }
.select2-container { width: 100% !important; font-size: 0.9rem; }
.select2-container--default .select2-selection--single {
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--sheet);
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0 32px 0 10px;
  color: var(--ink);
  line-height: 30px;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--ink-soft); }
.select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 1px;
  right: 6px;
  height: 30px;
}
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--brand);
  outline: 2px solid rgba(23, 78, 63, 0.14);
  outline-offset: 1px;
}
.select2-dropdown {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--sheet);
  box-shadow: 0 12px 30px rgba(17, 36, 30, 0.14);
}
.select2-container--default .select2-search--dropdown .select2-search__field {
  min-height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--field);
}
.select2-results__option { padding: 9px 12px; }
.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: var(--brand);
  color: var(--brand-ink);
}
.select2-container--default .select2-results__option[aria-selected="true"]:not(.select2-results__option--highlighted) {
  background: var(--paper);
  color: var(--ink);
}

.err, .note, .flash { margin: 0 0 16px; padding: 10px 12px; }
.err {
  border-left: 3px solid var(--bad);
  color: var(--bad);
  background: var(--sheet);
}
.note {
  border-left: 3px solid var(--brass);
  background: var(--sheet);
}

.login-wrap {
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
}
.login-side {
  background: var(--brand);
  color: var(--brand-ink);
  padding: clamp(28px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.login-side h1 { max-width: 14ch; font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); }
.login-side p { max-width: 36ch; margin: 0; }
.login-side .rule { width: 48px; height: 2px; background: var(--brass); margin: 20px 0; }
.login-main { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.login-card { width: 100%; max-width: 380px; }
.login-card form { display: grid; gap: 14px; margin-top: 20px; }
.login-card .err { margin-top: 16px; }
.theme-row { margin-top: 16px; }

.staff-login {
  min-height: 100vh;
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: clamp(36px, 8vh, 88px) clamp(24px, 4vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 470px);
  gap: clamp(64px, 9vw, 128px);
  align-items: center;
}
.staff-login__intro {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 0 20px;
}
.staff-login__kicker {
  margin: 0;
  color: #8d5e25;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.staff-login__intro h1 {
  margin: 18px 0 12px;
  max-width: 16ch;
  font-family: var(--font-text);
  font-size: clamp(2rem, 2.8vw, 2.75rem);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -0.025em;
}
.staff-login__lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.staff-login__rule {
  width: min(100%, 420px);
  height: 1px;
  margin: 30px 0 24px;
  background: #8c8d7b;
}
.staff-login__features {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
  list-style: none;
}
.staff-login__features li {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--ink);
  font-size: 1rem;
}
.staff-login__features .ico {
  width: 34px;
  height: 34px;
  color: var(--brand);
  stroke-width: 1.35;
}
.staff-login__site {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.staff-login__site > span {
  width: 9px;
  height: 9px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.staff-login__site p { margin: 0; }
.staff-login__site b,
.staff-login__site small { display: block; }
.staff-login__site b { font-size: 0.9rem; }
.staff-login__site small { margin-top: 4px; color: var(--ink-soft); font-size: 0.76rem; }
.staff-login__access { display: grid; justify-items: center; gap: 20px; }
.staff-login__card {
  width: 100%;
  padding: 34px 36px 28px;
  border: 1px solid #8c8d7b;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.36);
}
.staff-login__card h2 {
  margin: 10px 0 2px;
  font-family: var(--font-text);
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.staff-login__card-lead {
  margin: 0 0 28px;
  color: var(--ink);
  font-size: 0.9rem;
}
.staff-login__error {
  margin: 0 0 18px;
  padding: 10px 12px;
  border-left: 3px solid var(--bad);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
  color: var(--bad);
  font-size: 0.86rem;
}
.staff-login__card form { display: grid; gap: 18px; }
.staff-login__card label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}
.staff-login__card input {
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid #7e857e;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.34);
  color: var(--ink);
}
.staff-login__card input:focus-visible {
  outline: 2px solid rgba(23, 78, 63, 0.2);
  outline-offset: 1px;
  border-color: var(--brand);
}
.staff-login__password { position: relative; display: block; }
.staff-login__password input { padding-right: 48px; }
.staff-login__password button {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 34px;
  height: 34px;
  padding: 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
  transform: translateY(-50%);
}
.staff-login__password button:hover { background: rgba(23, 78, 63, 0.08); }
.staff-login__password svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.staff-login__hint {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 400;
  line-height: 1.35;
}
.staff-login__submit {
  min-height: 48px;
  margin-top: 4px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border: 0;
  border-radius: var(--radius);
  background: var(--brand);
  color: var(--brand-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.staff-login__submit span:first-child { grid-column: 2; }
.staff-login__submit span:last-child { grid-column: 3; justify-self: end; font-size: 1.35rem; }
.staff-login__submit:hover { background: #244a3e; }
.staff-login__secure {
  margin: 22px 0 0;
  padding-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #8c8d7b;
  color: var(--ink-soft);
  font-size: 0.76rem;
}
.staff-login__secure .ico { width: 17px; height: 17px; color: var(--brand); }
.staff-login__links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.82rem;
}
.staff-login__links a { color: var(--ink-soft); text-underline-offset: 3px; }
.staff-login__links a:hover { color: var(--brand); }

.gate-login {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: clamp(28px, 6vh, 72px) 24px;
}
.gate-login__col {
  width: min(400px, 100%);
  padding-left: 22px;
  border-left: 1px solid var(--brass);
}
.gate-login__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 1.05rem;
  text-decoration: none;
}
.gate-login__brand .mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--brass);
  color: var(--brass);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}
.gate-login__kicker {
  margin: 0;
  color: var(--brass);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.gate-login h1 {
  margin: 8px 0 10px;
  font-weight: 600;
  letter-spacing: 0;
}
.gate-login__lead {
  margin: 0 0 28px;
  max-width: 34ch;
  color: var(--ink-soft);
}
.gate-login__err { margin: 0 0 18px; color: var(--bad); }
.gate-login form { display: grid; gap: 22px; }
.gate-login label.f {
  gap: 2px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.gate-login label.f > span.req::after { color: var(--brass); }
.gate-login label.f .hint {
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.gate-login input {
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  padding: 10px 0 12px;
  min-height: 46px;
  font-size: 1.05rem;
}
.gate-login input:focus-visible {
  outline: none;
  border-bottom-color: var(--brass);
}
.gate-login__submit {
  margin-top: 6px;
  width: 100%;
  min-height: 48px;
  border: 0;
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.gate-login__submit:hover { background: #244a3e; }
.gate-login__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}
.gate-login__links form { display: inline; }
.gate-login__links button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  cursor: pointer;
}
.gate-login__links button:hover { color: var(--ink); }
:root[data-theme] .gate-login a.gate-login__brand,
.gate-login a.gate-login__brand { color: var(--ink); }
:root[data-theme] .gate-login__links a,
.gate-login__links a { color: var(--ink-soft); text-decoration: none; }
:root[data-theme] .gate-login__links a:hover,
.gate-login__links a:hover { color: var(--ink); }
.secret {
  font-family: var(--font-figure);
  font-size: 1.25rem;
  text-align: center;
  letter-spacing: 0.04em;
  padding: 12px;
  border: 1px dashed var(--line-strong);
  background: var(--sheet);
  user-select: all;
}

.shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100%; }
.side {
  background: var(--rail);
  color: var(--brand-ink);
  border-right: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brandbox {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px 16px 6px;
  border-bottom: 0;
  color: inherit;
  text-decoration: none;
}
a.brandbox, a.brandbox b { color: var(--ink); }
.brandbox .mark {
  width: 28px;
  height: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  flex: none;
  background: none;
  color: var(--brand-ink);
}
.brandbox .mark i { display: block; background: currentColor; border-radius: 1px; }
.brandbox b { display: block; font-family: var(--font-title); line-height: 1.1; }
.brandbox small {
  color: var(--ink-soft);
  font-size: 0.75rem;
}
nav.menu {
  padding: 4px 10px 12px;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(196, 161, 90, 0.82) rgba(255, 255, 255, 0.06);
}
nav.menu::-webkit-scrollbar { width: 9px; }
nav.menu::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.06); }
nav.menu::-webkit-scrollbar-thumb {
  background: rgba(196, 161, 90, 0.82);
  border: 2px solid var(--rail);
  border-radius: 999px;
}
nav.menu::-webkit-scrollbar-thumb:hover { background: #d0ad66; }
nav.menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  margin: 2px 0;
  padding: 7px 10px;
  border-radius: var(--radius);
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
}
nav.menu a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
nav.menu a.on { background: var(--brand-ink); color: var(--rail); }
nav.menu a.on .ico { color: var(--rail); }
.menu-kicker {
  margin: 16px 18px 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c4a15a;
}
.wordmark {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.98rem;
  font-weight: 700;
}
.nav-badge {
  margin-left: auto;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #8c322b;
  color: #fff;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
}
.side .brandbox,
.side .side-foot { border-color: rgba(246, 241, 230, 0.16); }
.side .muted,
.side small,
.side .brandbox small { color: rgba(246, 241, 230, 0.72); }
:root[data-theme] .side a,
.side a,
:root[data-theme] nav.menu a,
nav.menu a { color: rgba(246, 241, 230, 0.82); }
:root[data-theme] nav.menu a:hover,
nav.menu a:hover { color: #fff; }
:root[data-theme] nav.menu a.on,
nav.menu a.on,
.side nav.menu a.on { color: var(--rail); background: var(--brand-ink); }
.side .avatar { background: transparent; color: var(--brand-ink); }
.side .btn { background: transparent; color: var(--brand-ink); border-color: transparent; }
.side .btn:hover { border-color: rgba(246, 241, 230, 0.35); color: #fff; }
.side-foot { padding: 12px; border-top: 1px solid rgba(246, 241, 230, 0.16); }
.side .brandbox { border-bottom: 0; padding-bottom: 4px; }
.side a.brandbox,
.side a.brandbox b,
:root[data-theme] .side a.brandbox,
:root[data-theme] .side a.brandbox b { color: var(--brand-ink); }
.side .brandbox .mark { background: none; color: var(--brand-ink); }
.side .brandbox small { color: rgba(246, 241, 230, 0.72); text-transform: none; letter-spacing: 0; }
.who { display: flex; align-items: center; gap: 10px; }
.who-text { min-width: 0; flex: 1; }
.who-text b {
  display: block;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.who-text small { display: block; font-size: 0.78rem; }
.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(246, 241, 230, 0.45);
  color: var(--brand-ink);
  flex: none;
}
.side .avatar .ico { width: 16px; height: 16px; }
.side .who .btn.iconly { color: rgba(246, 241, 230, 0.8); }
.main { min-width: 0; display: flex; flex-direction: column; }
.top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--field);
  position: sticky;
  top: 0;
  z-index: 5;
}
.crumb { margin: 0; flex: 1; min-width: 0; color: var(--ink-soft); font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb span { margin: 0 6px; color: var(--line-strong); }
.crumb b { color: var(--ink); font-weight: 700; }
.crumb a { color: var(--ink-soft); text-decoration: none; }
.crumb a:hover { color: var(--ink); }
.top-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.top-alert { position: relative; overflow: visible; }
.top-badge {
  position: absolute;
  top: -4px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border: 2px solid var(--field);
  border-radius: 999px;
  background: #8c322b;
  color: #fff;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 750;
  line-height: 1;
}
.account-menu { position: relative; }
.account-trigger {
  min-height: 42px;
  max-width: 280px;
  padding: 4px 10px 4px 4px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--sheet);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.account-trigger:hover, .account-trigger[aria-expanded="true"] { border-color: var(--brand); }
.account-trigger .avatar {
  width: 32px;
  height: 32px;
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
  font-size: 0.68rem;
  font-weight: 750;
}
.account-identity { min-width: 0; text-align: left; }
.account-identity b, .account-identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-identity b { max-width: 170px; font-size: 0.86rem; }
.account-identity small { color: var(--ink-soft); font-size: 0.72rem; }
.account-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  width: 230px;
  padding: 6px;
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sheet);
  box-shadow: 0 14px 34px rgba(17, 36, 30, 0.16);
}
.account-panel[hidden] { display: none; }
.account-panel a, .account-panel button {
  min-height: 38px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.account-panel a:hover, .account-panel button:hover { background: var(--paper); }
.account-panel form { margin: 0; }
.account-panel .ico { width: 16px; height: 16px; color: var(--brand); }
.profile-card { padding: 22px; }
.profile-identity { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.profile-identity .avatar {
  width: 52px;
  height: 52px;
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
  font-weight: 750;
}
.profile-identity h2 { margin: 0; font-size: 1.25rem; }
.profile-identity p { margin: 3px 0 0; color: var(--ink-soft); }
.site-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  max-width: 240px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--sheet);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-chip span { margin-left: 8px; font-size: 0.72rem; }
.burger { display: none; }
.content { padding: 22px 28px 36px; max-width: none; width: 100%; }
.pagehead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.pagehead h1 { font-size: 1.85rem; font-weight: 700; letter-spacing: -0.02em; }
.pagehead p { margin: 4px 0 0; color: var(--ink-soft); }
.bottomnav { display: none; }

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.kpi {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.kpi.accent { border-top-color: var(--brass); }
.kpi.brand { border-top-color: var(--brand); }
.kpi.warn { border-top-color: var(--warn); }
.kpi .l {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}
.kpi .v {
  font-family: var(--font-title);
  font-size: 1.6rem;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.kpi .s { font-size: 0.82rem; color: var(--ink-soft); margin-top: 4px; }
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.card { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; overflow: hidden; }
.card > .hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.card > .bd { padding: 16px; }
.hd-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.card > .bd.flush { padding: 0; }
.tablewrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.t th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  white-space: nowrap;
}
table.t td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tbody tr:nth-child(even) { background: var(--field); }
table.t tr:last-child td { border-bottom: 0; }
table.t td.r, table.t th.r { text-align: right; }
.who2 b { display: block; font-weight: 600; }
.who2 small { color: var(--ink-soft); }
.empty { padding: 32px 16px; text-align: center; color: var(--ink-soft); }
.pill {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pill.OPEN, .pill.IN_PROGRESS { color: var(--info); border-color: var(--info); }
.pill.PAYMENT_PENDING, .pill.RESERVED, .pill.PLANNED, .pill.NOUVELLE, .pill.EN_ATTENTE { color: var(--warn); border-color: var(--warn); }
.pill.PAID, .pill.ASSIGNED, .pill.AUTHORIZED, .pill.DONE, .pill.VALIDÉE { color: var(--ok); border-color: var(--ok); }
.pill.EXPIRED, .pill.CANCELLED, .pill.ÉCHEC { color: var(--bad); border-color: var(--bad); }

@media (max-width: 1100px) {
  .cols { grid-template-columns: 1fr; }
  .staff-login {
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
    gap: 48px;
  }
}

@media (max-width: 820px) {
  .staff-login {
    width: min(520px, 100%);
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .staff-login__intro { min-height: auto; padding: 0; }
  .staff-login__features,
  .staff-login__rule { display: none; }
  .staff-login__site { margin-top: 22px; }
}

@media (max-width: 760px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-side { padding: 24px 20px; }
  .login-side h1 { font-size: 1.7rem; }
  .login-side .long { display: none; }
  .staff-login { padding: 28px 18px 40px; }
  .staff-login__intro h1 { font-size: 1.8rem; }
  .staff-login__card { padding: 28px 22px 24px; }
  .shell { grid-template-columns: 1fr; }
  .side {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    z-index: 20;
    transform: translateX(-105%);
  }
  .side.open { transform: none; }
  .scrim { position: fixed; inset: 0; background: rgba(16, 20, 18, 0.45); z-index: 15; }
  .burger { display: inline-flex; }
  .top { padding: 8px 12px; }
  .account-identity small { display: none; }
  .account-identity b { max-width: 108px; }
  .content { padding: 16px 12px 88px; }
  .bottomnav {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--sheet);
    border-top: 1px solid var(--line);
    z-index: 10;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .bottomnav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 0 10px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--ink-soft);
    text-decoration: none;
  }
  .bottomnav a.on { color: var(--brand); }
  .hide-m { display: none; }
}

a.btn { color: var(--ink); }
a.btn.primary { color: var(--brand-ink); }

.gate { min-height: 100%; }
.gate-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--paper);
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding-top: 22px;
  padding-bottom: 22px;
}
a.gate-brand {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.gate-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.gate-nav a,
.gate-nav button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}
.gate-nav a:hover,
.gate-nav button:hover { color: var(--ink); }
.gate-nav a:last-of-type { color: var(--brand); }

.frame,
.opening,
.chapter,
.statement-inner,
.gate-foot {
  width: min(980px, calc(100% - clamp(32px, 6vw, 80px)));
  margin-left: auto;
  margin-right: auto;
}
.opening { padding: clamp(56px, 9vh, 96px) 0 0; text-align: center; }
.opening h1 {
  max-width: 16ch;
  margin: 0 auto;
  font-weight: 500;
  font-size: clamp(2.5rem, 1.3rem + 3vw, 4.15rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.gate .kicker {
  margin: 0 0 16px;
  color: var(--brass);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lede {
  max-width: 34em;
  margin: 20px auto 0;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.45;
  color: var(--ink-soft);
}
.acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px 0 0; }
.acts a.btn { color: var(--ink); text-decoration: none; }
.acts a.btn.primary { color: var(--brand-ink); background: var(--brand); border-color: var(--brand); }

.shot {
  width: min(1120px, calc(100% - clamp(24px, 4vw, 48px)));
  margin: clamp(36px, 6vh, 64px) auto 0;
}
.shot-fit {
  container-type: inline-size;
  height: calc(100cqw * 680 / 1120);
  max-height: 680px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--paper);
}
.shot-screen {
  width: 1120px;
  height: 680px;
  transform-origin: top left;
  transform: scale(calc(100cqw / 1120px));
  pointer-events: none;
}
.shot .shell {
  height: 680px;
  min-height: 680px;
  grid-template-columns: 220px minmax(0, 1fr);
}
.shot .side { position: relative; top: auto; height: 100%; width: auto; transform: none; }
.shot .burger { display: none; }
.shot .content { padding: 22px 24px 28px; }
.shot h1 { font-size: 1.45rem; font-weight: 600; letter-spacing: 0; line-height: 1.2; }
.shot .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.shot .menu span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 6px 10px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9rem;
}
.shot .menu span.on {
  background: var(--paper);
  color: var(--brand);
  border-left: 2px solid var(--brass);
}
.shot figcaption {
  margin-top: 12px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.chapter { padding-top: clamp(72px, 12vh, 132px); scroll-margin-top: 72px; }
.chapter h2 {
  max-width: 16ch;
  margin: 0;
  font-weight: 500;
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.15rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.chapter > p:last-child {
  max-width: 38em;
  margin: 20px 0 0;
  font-size: 1.05rem;
  color: var(--ink-soft);
}
.spec {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.spec li {
  display: grid;
  grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr);
  gap: 16px 32px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.spec b { font-weight: 600; }
.spec span { color: var(--ink-soft); }

.statement {
  margin-top: clamp(72px, 12vh, 132px);
  background: var(--brand);
  color: var(--brand-ink);
}
.statement-inner { padding: clamp(64px, 10vh, 112px) 0; }
.statement h2 {
  max-width: 14ch;
  margin: 0;
  color: var(--brand-ink);
  font-weight: 500;
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.15rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.statement p {
  max-width: 32em;
  margin: 18px 0 0;
  color: var(--brass);
  font-size: 1.05rem;
}
.gate-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px 32px;
  flex-wrap: wrap;
  padding: 28px 0 36px;
  color: var(--ink-soft);
  font-size: 0.86rem;
}
.kpi .v small { font-size: 0.55em; font-weight: 600; }

@media (max-width: 640px) {
  .gate-nav a:not(:last-of-type) { display: none; }
  .spec li { grid-template-columns: 1fr; gap: 4px; padding: 20px 0; }
}

.family-portal { min-height: 100vh; display: flex; flex-direction: column; background: var(--field); }
.family-portal__top {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  gap: 26px;
  padding: 10px 32px;
  background: var(--brand);
  color: var(--brand-ink);
}
.family-portal__brand { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.family-portal__brand .mark { width: 28px; height: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; color: var(--brand-ink); }
.family-portal__brand .mark i { background: currentColor; }
.family-portal__brand b, .family-portal__brand small { display: block; color: inherit; }
.family-portal__brand b { font-size: 1.2rem; letter-spacing: 0.06em; }
.family-portal__brand small { font-size: 0.78rem; }
.family-portal__top > strong { justify-self: start; padding-left: 26px; border-left: 1px solid rgba(255,255,255,.7); color: #c4963a; }
.family-portal__who { justify-self: end; display: flex; align-items: center; gap: 22px; }
.family-portal__who form { padding-left: 22px; border-left: 1px solid rgba(255,255,255,.7); }
.family-portal__who button { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.family-portal__tabs { min-height: 54px; display: flex; align-items: stretch; gap: 0; padding-left: 32px; background: var(--sheet); border-bottom: 1px solid var(--line); }
.family-portal__tabs a { min-width: 190px; display: flex; justify-content: center; align-items: center; gap: 10px; padding: 0 24px; color: var(--ink); text-decoration: none; font-weight: 650; border-right: 1px solid var(--line-strong); }
.family-portal__tabs a.on { color: var(--brass); box-shadow: inset 0 -4px 0 var(--brass); }
.family-portal__tabs b { min-width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--brass); color: #fff; font-size: .78rem; }
.family-portal__main { width: min(1324px, calc(100% - 64px)); margin: 24px auto 20px; flex: 1; }
.family-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin: 0 8px 18px; }
.family-title h1 { font-size: 2rem; font-weight: 700; }
.family-title p { margin: 2px 0 0; }
.family-reference { min-height: 56px; display: grid; grid-template-columns: 220px 180px 1fr; align-items: center; gap: 24px; margin-bottom: 18px; padding: 8px 26px; border-radius: var(--radius); background: var(--sheet); }
.family-reference b { color: var(--brand); font: 700 1.25rem var(--font-figure); }
.family-reference span { width: max-content; padding: 5px 18px; background: var(--brass); color: #fff; border-radius: 4px; }
.family-reference em { padding-left: 26px; border-left: 1px solid var(--line-strong); font-style: normal; }
.family-dossier-grid { display: grid; grid-template-columns: 1.55fr .95fr; gap: 16px; margin-bottom: 18px; }
.family-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sheet); }
.family-card > h2, .family-card__head { margin: 0; padding: 12px 18px; background: var(--paper); border-bottom: 1px solid var(--line); }
.family-card h2 { font-size: 1.3rem; font-weight: 700; }
.family-card dl { display: grid; grid-template-columns: 180px 1fr; margin: 0; padding: 8px 20px 0; }
.family-card dt, .family-card dd { margin: 0; padding: 5px 0; border-bottom: 1px solid var(--line); }
.family-card dt { font-weight: 700; }
.family-alert { margin: 12px 20px; color: var(--warn); font-weight: 600; }
.family-contact { margin: 0 20px 14px; padding: 10px 0 0; border-top: 1px solid var(--line-strong); }
.family-contact h3, .family-contact p { margin: 0; }
.family-contact p { line-height: 1.45; }
.family-finance dl { grid-template-columns: 1fr auto; }
.family-finance dd { text-align: right; font-family: var(--font-figure); }
.family-balance { display: flex; justify-content: space-between; gap: 16px; margin: 0 20px; padding: 12px 0; border-top: 2px solid var(--brass); color: var(--warn); font-weight: 700; }
.family-balance b { font: 700 1.45rem var(--font-figure); }
.family-lock { display: flex; align-items: center; gap: 14px; margin: 10px 20px; }
.family-lock .ico { color: var(--brass); }
.family-finance > .muted { margin: 18px 20px; }
.family-card__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.family-request-tools { display: grid; grid-template-columns: minmax(240px, 420px) 180px; gap: 22px; padding: 12px 18px; }
.family-request-tools label { position: relative; }
.family-request-tools label span { position: absolute; left: 12px; top: 8px; }
.family-request-tools input { padding-left: 36px; }
.family-requests table { margin: 0 12px; width: calc(100% - 24px); }
.family-requests table.t th { color: var(--brass); }
.family-requests table.t tbody tr:nth-child(even) { background: transparent; }
.family-requests a { color: var(--brand); font-weight: 650; }
.family-status { color: var(--warn); }
.family-request-count { margin: 4px 18px 10px; }
.family-info { margin: 0 18px; padding: 10px 0 14px; border-top: 1px solid var(--line); }
.family-request-form { margin-top: 18px; }
.family-request-form form, .family-password form { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); justify-content: start; gap: 14px; padding: 18px; }
.family-request-form form .f:has(textarea), .family-request-form form .btn { grid-column: 1 / -1; }
.family-password { margin-top: 14px; padding: 12px 18px; background: var(--sheet); border: 1px solid var(--line); }
.family-portal__foot { min-height: 50px; display: flex; justify-content: space-between; align-items: center; padding: 8px 32px; border-top: 1px solid var(--line); background: var(--sheet); font-size: .9rem; }

.bureau-grid,
.bureau-split {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}
.bureau-grid { grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.9fr); }
.bureau-split { grid-template-columns: 1fr 1fr; }
.content:has(.bureau) { max-width: none; }
.bureau .pagehead h1 { font-size: 1.7rem; font-weight: 600; margin: 0; }
.bureau .kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bureau .kpi { border-top-width: 1px; border-top-color: var(--line); border-radius: 8px; padding: 16px 16px 14px; }
.bureau .kpi .v { letter-spacing: 0; font-size: 1.7rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.bureau .card { border-radius: 8px; }
.bureau .card > .hd h3 { font-size: 1rem; font-weight: 600; }
.bureau .card > .hd .small,
.bureau .card > .hd a { color: var(--brass); font-weight: 600; text-decoration: none; }
.bureau table.t tbody tr:nth-child(even) { background: transparent; }
.bureau table.t th { background: transparent; }
.bureau table.t td.r, .bureau table.t th.r { font-variant-numeric: tabular-nums; }
.chart { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; }
.chart-y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 168px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 168px;
}
.bars .bar {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}
.bars .bar b {
  min-height: 1em;
  margin-bottom: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.bars .bar i {
  display: block;
  width: min(100%, 36px);
  height: var(--h);
  min-height: 0;
  background: var(--brand);
}
.bars .bar.is-today i { background: var(--brass); }
.bars.is-empty .bar i { min-height: 0; height: 0; background: var(--line); }
.bars .bar span {
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--ink-soft);
}
.ring-wrap { display: flex; align-items: center; gap: 16px; }
.ring-wrap p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }
.ring { width: 128px; height: 128px; flex: none; }
.ring text {
  fill: var(--ink);
  font-family: var(--font-title);
  font-size: 7px;
  font-weight: 600;
}
.meter { margin-top: 14px; }
.meter-top { display: flex; justify-content: space-between; gap: 12px; font-size: 0.88rem; }
.meter-track { height: 4px; margin-top: 6px; background: var(--line); }
.meter-track i { display: block; height: 100%; width: var(--w); background: var(--brass); }
.h-bars { display: grid; gap: 12px; }
.h-bar {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: center;
  font-size: 0.88rem;
}
.h-bar > i { display: block; height: 6px; background: var(--line); }
.h-bar > i > b { display: block; height: 100%; width: var(--w); background: var(--brand); }
@media (max-width: 900px) {
  .bureau-grid,
  .bureau-split { grid-template-columns: 1fr; }
  .h-bar { grid-template-columns: 92px minmax(0, 1fr) 24px; }
}
.outils {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
  margin-bottom: 16px;
}
.outils .f { min-width: min(220px, 100%); }
.grille {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 400px));
  justify-content: start;
  gap: 14px 16px;
  align-items: end;
}
.grille .large,
.grille .btn,
.grille .muted,
.grille .err,
.grille .groupe { grid-column: 1 / -1; }
.grille .groupe {
  margin: 4px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--brass);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.grille .groupe:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
@media (max-width: 760px) {
  .grille { grid-template-columns: 1fr; }
}
div.dt-container {
  color: var(--ink);
  --dt-html-background: var(--sheet);
  --dt-row-hover: 138, 103, 48;
}
div.dt-container .dt-search input,
div.dt-container .dt-length select {
  background: var(--sheet);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  min-height: 36px;
  padding: 4px 8px;
  border-radius: var(--radius);
}
div.dt-container .dt-paging .dt-paging-button { color: var(--ink) !important; }
div.dt-container .dt-paging .dt-paging-button.current,
div.dt-container .dt-paging .dt-paging-button.current:hover {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: var(--brand-ink) !important;
}
table.dataTable thead > tr > th,
table.dataTable thead > tr > td { background: var(--paper) !important; color: var(--ink-soft); }
table.dataTable tbody tr { background: var(--sheet); }
table.dataTable tbody tr:nth-child(even) { background: var(--field); }
.chart-y { height: 146px; }
.identites { flex: 1; display: grid; gap: 0; min-width: 0; }
.identites div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.identites span { color: var(--ink-soft); }
.identites b { font-weight: 600; font-variant-numeric: tabular-nums; }
.identite-note { margin: 14px 0 0; }
.stack {
  display: flex;
  height: 28px;
  overflow: hidden;
  background: var(--line);
  margin-bottom: 12px;
}
.stack b {
  flex: var(--n) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  color: #f6f1e6;
  font-size: 0.75rem;
  font-weight: 600;
}
.stack b.seg-a, .legend i.seg-a { background: #1b3d32; }
.stack b.seg-b, .legend i.seg-b { background: #8a6730; }
.stack b.seg-c, .legend i.seg-c { background: #8ea396; }
.stack b.seg-d, .legend i.seg-d { background: #d7c4a3; }
.stack b.seg-e, .legend i.seg-e { background: #8c322b; }
.stack b.seg-c, .stack b.seg-d { color: #1c2420; }
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: 0.82rem;
}
.legend i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; }
.vigilance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.vigilance b { font-weight: 600; }
.vigilance span { color: var(--ink-soft); }
.vigilance span.is-on { color: var(--warn); font-weight: 600; }
.regles { margin: 12px 0 0; color: var(--ink-soft); font-size: 0.8rem; }
.bureau .pill { border: 0; border-radius: 4px; text-transform: none; letter-spacing: 0; padding: 3px 8px; }
.bureau .pill.OCCUPIED, .bureau .pill.RESERVED { background: #dce8df; color: #1b3d32; }
.bureau .pill.OPEN, .bureau .pill.PAYMENT_PENDING { background: #f3e4c4; color: #7a5a20; }
.bureau .pill.PAID, .bureau .pill.ASSIGNED { background: #eceae4; color: #5c675f; }
.bureau .pill.EXPIRED, .bureau .pill.CANCELLED { background: #f3d9d6; color: #8c322b; }
@media (max-width: 1100px) {
  .bureau .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.content:has(.registre),
.content:has(.creation) { max-width: none; }
.creation .retour { display: inline-block; margin-bottom: 8px; color: var(--brass); font-weight: 600; text-decoration: none; }
.creation .pagehead h1 { margin: 0; }
.creation .pagehead .muted { margin: 6px 0 0; font-size: 0.86rem; }
.creation .req::after,
.creation label.f > span.req::after { content: " *"; color: var(--brass); }
.creation-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(380px, 0.85fr); gap: 16px; align-items: start; }
.etape, .recap {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 16px;
  overflow: hidden;
}
.etape h2, .recap h2 {
  margin: 0;
  padding: 13px 18px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  font-weight: 700;
}
.etape h2 span { color: var(--brass); margin-right: 8px; }
.etape-corps, .recap-corps { padding: 16px 18px 8px; }
.etape-label { margin: 0 0 8px; color: var(--ink); font-weight: 600; }
.etape-aide { max-width: 68ch; margin: 0 0 14px; color: var(--ink-soft); }
.modal {
  width: min(440px, calc(100% - 32px));
  margin: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--sheet);
  color: var(--ink);
}
.modal::backdrop { background: rgba(28, 36, 32, 0.46); }
.modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.modal-bar h2 { margin: 0; font-size: 1rem; }
.modal-bar button[data-modal-fermer] {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.modal form { display: grid; gap: 12px; padding: 16px; }
.modal .f, .modal .btn { max-width: none; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.etape h3 { margin: 8px 0 12px; font-size: 0.95rem; }
.etape h3:not(:first-of-type) { margin-top: 18px; }
.config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 280px));
  gap: 14px 16px;
  align-items: start;
}
.config-grid .plein { grid-column: 1 / -1; }
.config-grid .f,
.creation .config-grid .f,
.creation .config-grid label.f { width: auto; max-width: none; margin-bottom: 0; }
.choix-ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.config-grid .choix-ligne { grid-column: 1 / -1; margin-bottom: 0; }
.choix {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--sheet);
  font-weight: 600;
  cursor: pointer;
}
.choix input {
  appearance: none;
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: var(--sheet);
  display: grid;
  place-content: center;
  flex: none;
}
.choix input:checked { border-color: var(--brass); }
.choix input:checked::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brass);
}
.choix:has(input:checked) {
  border-color: var(--brass);
  background: color-mix(in srgb, var(--brass) 10%, var(--sheet));
  box-shadow: inset 0 0 0 1px var(--brass);
}
.choix > span { display: grid; min-width: 0; }
.choix small { margin: 1px 0 0; color: var(--ink-soft); font-size: 0.75rem; font-weight: 500; line-height: 1.3; }
.creation-deux { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); justify-content: start; gap: 12px; max-width: 100%; }
.creation .f { display: grid; gap: 6px; width: 100%; max-width: 400px; margin-bottom: 12px; }
.creation label.f:has(textarea),
.creation label.f:has([name="adresse"]) { max-width: min(640px, 100%); }
.creation .f span { color: var(--ink); font-weight: 600; font-size: 0.92rem; }
.creation input, .creation select {
  width: 100%;
  min-height: 32px;
  padding: 0 10px;
  background: var(--sheet);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font: inherit;
}
.creation .choix input[type="radio"] {
  width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  flex: 0 0 16px;
}
.creation small { display: block; margin-top: 6px; color: var(--ink-soft); }
.choix small { margin-top: 1px; font-size: 0.75rem; font-weight: 500; line-height: 1.3; }
.pas {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  min-height: 32px;
  background: var(--sheet);
  overflow: hidden;
}
.pas button {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.15rem;
  cursor: pointer;
}
.pas input {
  border: 0;
  border-radius: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  min-height: 30px;
  width: 48px;
  text-align: center;
  flex: 1;
}
.creation a.btn { color: var(--ink); }
.creation-cote { position: sticky; top: 72px; }
.recap-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
}
.recap-montant {
  margin: 2px 0 14px;
  font-size: 2.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.recap dl { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; margin: 0; }
.recap dt { color: var(--ink-soft); font-weight: 500; }
.recap dd { margin: 0; text-align: right; font-weight: 600; }
.recap-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 14px 0 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--brass);
  font-weight: 700;
}
.recap-total b { font-size: 1.15rem; }
.recap-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 6px 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}
.recap-note .ico { width: 15px; height: 15px; margin-top: 3px; }
.recap-note em { font-style: italic; }
.creation-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 0;
  padding: 14px 16px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.creation-bar p { flex: 1; margin: 0; color: var(--ink-soft); min-width: 180px; }
.creation-bar .btn { min-width: 128px; }
@media (max-width: 900px) {
  .creation-grid, .creation-deux, .choix-ligne, .config-grid { grid-template-columns: 1fr; }
  .creation-cote { position: static; }
}
.registre .pagehead h1 { font-size: 1.7rem; font-weight: 600; margin: 0; }
.pagehead-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sommaire { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0; margin: 0 0 14px; }
.sommaire-texte > span,
.sommaire-texte > button {
  padding: 0 14px;
  border-left: 1px solid var(--line-strong);
}
.sommaire-texte > :first-child { padding-left: 0; border-left: 0; }
.sommaire button {
  background: none;
  border: 0;
  border-left: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font: inherit;
  cursor: pointer;
  padding: 0 14px;
}
.sommaire button:first-child { padding-left: 0; border-left: 0; }
.sommaire b { color: var(--ink); font-weight: 700; margin-right: 4px; font-variant-numeric: tabular-nums; }
.sommaire button.is-on b { color: var(--brand); }
.filtres { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 14px 16px 0; }
.filtres-barre { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; }
.filtres-barre input, .filtres-barre select {
  width: auto;
  flex: 1 1 200px;
  max-width: 260px;
  min-height: 32px;
  padding: 0 12px;
  background: var(--sheet);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font: inherit;
}
.filtres-barre a { color: var(--brass); font-weight: 650; text-decoration: none; }
.registre table.t tfoot th { border-top: 1px solid var(--line-strong); }
.filtre-q { position: relative; flex: 1 1 240px; }
.filtre-q input, .filtres select {
  width: 100%;
  min-height: 32px;
  padding: 0 12px;
  background: var(--sheet);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  font: inherit;
}
.filtre-q input { padding-left: 34px; }
.loupe { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); }
.filtres select { width: auto; min-width: 160px; }
.liste-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px 8px;
  color: var(--ink-soft);
  font-size: 0.86rem;
}
.liste-meta button {
  background: none;
  border: 0;
  color: var(--brass);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.registre td b { display: block; font-weight: 600; }
.registre td small { display: block; color: var(--ink-soft); }
.cherche {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.ouvrir {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 1.3rem;
  line-height: 1;
}
.registre .pill { border: 0; border-radius: 4px; text-transform: none; letter-spacing: 0; padding: 3px 8px; }
.registre .pill.reglement { background: #f0e2c4; color: #6e5420; }
.registre .pill.reserve { background: #e4d3b4; color: #5c4630; }
.registre .pill.solde { background: #1b3d32; color: #f6f1e6; }
.registre .pill.occupe { background: #3e4f47; color: #f6f1e6; }
.registre .pill.expire, .registre .pill.annule { background: #f3d9d6; color: #8c322b; }
.registre table.t tbody tr:nth-child(even) { background: transparent; }
.registre table.t th { background: transparent; }
.registre table.t td.r, .registre table.t th.r { font-variant-numeric: tabular-nums; }
.registre .dt-layout-row:last-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}
.registre .dt-paging .dt-paging-button.current {
  background: var(--brand) !important;
  color: var(--brand-ink) !important;
  border-color: var(--brand) !important;
}
.regles-barre {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 0.86rem;
}
.regles-date { margin-left: auto; }
.is-hidden { display: none; }
.sommaire .k { color: var(--brass); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.sommaire-texte span b:not(.k) { color: var(--ink); }
.split-page { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.78fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.split-page aside { display: grid; gap: 16px; align-content: start; }
.onglets { display: flex; gap: 8px 22px; flex-wrap: wrap; margin: 0 0 16px; border-bottom: 1px solid var(--line); }
.onglets a { padding: 8px 2px 10px; color: var(--ink-soft); text-decoration: none; font-weight: 650; }
.onglets a.on { color: var(--brass); box-shadow: inset 0 -2px 0 var(--brass); }
.registre .pill.disponible, .registre .pill.planifier { background: #e5f0e4; color: #1b3d32; }
.registre .pill.attribue, .registre .pill.termine, .registre .pill.soldee, .registre .pill.traitee { background: #1b3d32; color: #f6f1e6; }
.registre .pill.encours, .registre .pill.partielle { background: #8a6730; color: #f6f1e6; }
.registre .pill.aregler, .registre .pill.nouvelle { background: #c4a15a; color: #1c2420; }
.registre .pill.nonlue, .registre .pill.lue { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); cursor: pointer; font: inherit; }
.registre tr.is-new { background: #f8f1e2; }
.registre tr.is-on td { background: #f4efe4; }
.puce { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #c4a15a; }
.type-label { color: var(--brass); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.print-documents, .print-document { display: none; }
.total-ligne { display: flex; justify-content: flex-end; gap: 28px; margin: 0; padding: 12px 16px; border-top: 1px solid var(--line); font-weight: 700; }
.calcul-tarif h4 { margin: 0 0 10px; font-size: 1rem; }
.calcul-tarif p { display: flex; justify-content: space-between; gap: 16px; margin: 0; padding: 7px 0; border-bottom: 1px solid var(--line); }
.calcul-tarif p.recap-total { margin-top: 0; border-top: 2px solid var(--brass); border-bottom: 0; }
.alerte-jour { margin: 0 0 12px; color: var(--brass); font-weight: 650; }
.intro-carte { margin: 0; padding: 0 16px 4px; color: var(--ink-soft); }
.badge-format { display: inline-block; min-width: 42px; padding: 2px 8px; border: 1px solid var(--line-strong); border-radius: 4px; text-align: center; font-size: 0.75rem; }
.acts-ligne { display: flex; gap: 14px; white-space: nowrap; }
.acts-icones { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.acts-icones form { margin: 0; }
.acts-icones .btn.iconly { width: 32px; min-height: 32px; color: var(--ink); }
.acts-icones .btn.iconly:hover { color: var(--brand); border-color: var(--brand); }
.ordre-statut { display: inline-flex; gap: 6px; align-items: center; margin-right: 8px; vertical-align: middle; }
.ordre-statut select { width: auto; min-width: 8.5rem; }
.acts-ligne a { color: var(--brand); font-weight: 600; }
.inhumations { display: grid; gap: 14px; margin: 0 0 16px; }
.inhumation { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: start; }
.inhumation img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--field); }
.fiche-dl { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr); gap: 8px 16px; margin: 0 0 12px; }
.fiche-dl dt { color: var(--ink-soft); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.fiche-dl dd { margin: 0; font-weight: 600; }
.etape h2 { display: flex; align-items: center; gap: 12px; }
.lien-action { margin-left: auto; background: var(--sheet); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 6px 10px; font: inherit; font-weight: 600; cursor: pointer; }
.signe-aide {
  margin-left: auto;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--brass);
  border-radius: 50%;
  background: transparent;
  color: var(--brass);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  anchor-name: --aide-apurement;
}
.bulle-aide {
  width: min(340px, calc(100vw - 32px));
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--sheet);
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.45;
  position-anchor: --aide-apurement;
  inset: auto;
  top: calc(anchor(bottom) + 8px);
  right: anchor(right);
  left: auto;
}
.req-star, .creation .req::after { color: var(--brass); }
.liste-simple { margin: 8px 0 0; padding-left: 18px; }
.encaissement-prestations { margin: 0 0 12px; }
.encaissement-prestations .liste-simple { margin-top: 4px; }
.qui b, .qui small { display: block; }
.qui small { color: var(--ink-soft); font-weight: 500; }
table.t .ico { width: 16px; height: 16px; vertical-align: -3px; }
@media (max-width: 980px) { .split-page { grid-template-columns: 1fr; } }
.modal.modal-compte { width: min(460px, calc(100% - 32px)); max-height: calc(100vh - 32px); overflow: auto; }
.modal-compte form + form { border-top: 1px solid var(--line); }
.creation form[data-compte] .choix-ligne { grid-template-columns: 1fr; margin-bottom: 14px; }
.creation form[data-compte] .identifiant-genere {
  display: flex;
  align-items: center;
  min-height: 32px;
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.creation form[data-compte] .identifiant-genere.is-vide { color: var(--ink-soft); font-weight: 600; letter-spacing: 0; }
.creation form[data-compte] .recap-personne {
  margin: 2px 0 14px;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.creation form[data-compte] .recap-personne.is-vide { color: var(--ink-soft); font-size: 1.05rem; font-weight: 600; }
.creation form[data-compte] .recap dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
.creation form[data-compte] .recap dt {
  margin-top: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.creation form[data-compte] .recap dd { overflow-wrap: anywhere; text-align: left; font-size: 1rem; }
.creation form[data-compte] .recap-note { display: block; margin-top: 8px; }
.papier { width: min(170mm, 100%); color: #111; font: 11pt/1.45 var(--font-text); }
.papier h2 { margin: 0 0 2mm; font-size: 16pt; }
.papier h3 { margin: 6mm 0 2mm; font-size: 11pt; letter-spacing: 0.04em; text-transform: uppercase; }
.papier p { margin: 0 0 3mm; }
.cloture-ecart { margin: 8px 0 0; }
@page { size: A4 portrait; margin: 12mm; }
@page recu { size: 58mm 120mm; margin: 1.5mm; }
.receipt { width: 54mm; color: #000; font: 9pt/1.25 var(--font-text); background: #fff; }
.receipt-head, .receipt section, .receipt footer { margin: 0; }
.receipt-head { padding-bottom: 1.5mm; text-align: center; }
.receipt-head p { margin: 0; }
.receipt-site { font-size: 11pt; font-weight: 700; line-height: 1.15; }
.receipt-titre { margin-top: 1.5mm; font-size: 8pt; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.receipt-ref { font: 700 11pt var(--font-figure); }
.receipt h2 {
  margin: 1.5mm 0 1mm;
  padding-top: 1.5mm;
  border-top: 1px dashed #000;
  font-size: 8pt;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.receipt-ligne, .receipt-amount {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2mm;
  margin: 0;
}
.receipt-ligne span { flex: none; }
.receipt-ligne b, .receipt-amount b {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
}
.receipt-vide { margin: 0; }
.receipt-prestations { margin: 0; padding: 0; list-style: none; }
.receipt-prestations li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 2mm;
  margin: 0 0 1.2mm;
}
.receipt-prestations b { grid-column: 1 / -1; font-weight: 700; overflow-wrap: anywhere; }
.receipt-prestations span { font-size: 8pt; }
.receipt-prestations strong { font-weight: 700; text-align: right; }
.receipt-amount { margin-top: 1.2mm; padding-top: 1.2mm; border-top: 1px solid #000; font-size: 11pt; }
.receipt footer { margin-top: 1.5mm; padding-top: 1.5mm; border-top: 1px dashed #000; text-align: center; font-size: 8pt; }
@media print {
  html, body {
    width: auto;
    height: auto;
    background: #fff !important;
    color: #111 !important;
    font-size: 10pt;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .side, .top, .bottomnav, .pagehead-actions, .filtres, .liste-meta, .regles-barre,
  .dt-layout-row:not(.dt-layout-table), .ouvrir, [data-print], .modal, .signe-aide, .bulle-aide,
  .family-portal__top, .family-portal__tabs, .family-portal__foot, .family-title .btn,
  .family-requests, .family-password, .family-request-form { display: none !important; }
  .shell, .main, .content, .registre, .bureau, .creation {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 0;
    padding: 0;
    margin: 0;
  }
  .pagehead { margin: 0 0 8mm; }
  .pagehead h1 { font-size: 20pt; }
  .pagehead p { color: #444 !important; }
  .sommaire { margin-bottom: 5mm; }
  .card, .etape, .recap, .vigilance, .family-card, .family-reference {
    background: #fff !important;
    border-color: #aaa !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
  .card > .hd, .etape h2, .recap h2, table.t th {
    background: #f2eee5 !important;
    color: #111 !important;
  }
  .tablewrap, div.dt-container, .dt-layout-row.dt-layout-table, .dt-layout-cell {
    display: block !important;
    width: 100% !important;
    overflow: visible !important;
  }
  table.t, table.dataTable {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 8.5pt;
  }
  .dt-column-order { display: none !important; }
  table.t thead { display: table-header-group; }
  table.t tr { break-inside: avoid; }
  table.t th, table.t td { padding: 4px 5px; border-color: #bbb !important; }
  table.t tbody tr, table.t tbody tr:nth-child(even) { background: #fff !important; }
  a { color: #111 !important; text-decoration: none !important; }
  .pill { border: 1px solid #777 !important; background: transparent !important; color: #111 !important; }
  .split-page, .bureau-grid, .bureau-split, .creation-grid, .family-dossier-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5mm;
  }
  .creation-cote { position: static; }
  .family-portal, .family-portal__main { display: block; width: 100%; margin: 0; background: #fff !important; }
  .family-title { margin: 0 0 5mm; }
  .family-reference { grid-template-columns: 1fr 1fr 2fr; }
  body.print-row .registre > *:not(.pagehead):not(:has(.print-focus)) { display: none !important; }
  body.print-row section.card:not(:has(.print-focus)) { display: none !important; }
  body.print-row tbody tr:not(.print-focus) { display: none !important; }
  body.print-row .print-focus { display: table-row !important; }
  body.print-target .registre { display: none !important; }
  body.print-target .print-documents { display: block !important; }
  body.print-target { page: recu; }
  body.print-target .flash,
  body.print-target .shell,
  body.print-target .main,
  body.print-target .content { width: auto; max-width: none; }
  body.print-target .print-document { display: none !important; }
  body.print-target .print-document.print-focus {
    display: block !important;
    width: 54mm;
    max-width: 54mm;
    margin: 0;
    padding: 0;
    border: 0;
  }
}
@media (max-width: 640px) {
  .bureau .kpis, .ring-wrap { grid-template-columns: 1fr; }
  .ring-wrap { display: grid; justify-items: center; }
  .vigilance { display: grid; gap: 8px; }
  .site-chip { display: none; }
  .family-portal__top { grid-template-columns: 1fr auto; padding: 10px 16px; }
  .family-portal__top > strong, .family-portal__who > span { display: none; }
  .family-portal__who form { padding-left: 0; border-left: 0; }
  .family-portal__tabs { padding-left: 0; }
  .family-portal__tabs a { min-width: 0; flex: 1; padding: 0 10px; }
  .family-portal__main { width: min(100% - 24px, 720px); margin-top: 16px; }
  .family-title, .family-portal__foot { align-items: flex-start; }
  .family-title { flex-direction: column; }
  .family-reference { grid-template-columns: 1fr auto; gap: 10px; padding: 12px 16px; }
  .family-reference em { grid-column: 1 / -1; padding: 8px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .family-dossier-grid { grid-template-columns: 1fr; }
  .family-request-tools, .family-request-form form, .family-password form { grid-template-columns: 1fr; }
  .family-request-form form .f:has(textarea), .family-request-form form .btn { grid-column: auto; }
  .family-card dl { grid-template-columns: 120px 1fr; }
  .family-portal__foot { gap: 12px; padding: 12px 16px; flex-direction: column; }
}
