/* Hawa ERP, basisstijl (donker, Hawa-kleuren) */

:root {
  --nacht: #08131d;
  --paneel: #0f1e2b;
  --paneel-2: #152737;
  --paneel-3: #1d3346;
  --tekst: #eef2f5;
  --gedempt: #95a7b7;
  --zacht: #6c8194;
  --oranje: #e5804f;
  --oranje-hover: #f0956a;
  --oranje-diep: #b8592b;
  --oranje-zacht: rgba(229, 128, 79, 0.14);
  --wol: #d9c8a9;
  --groen: #4fbf8b;
  --groen-zacht: rgba(79, 191, 139, 0.14);
  --rood: #ef6b6b;
  --rood-zacht: rgba(239, 107, 107, 0.14);
  --geel: #e8b44f;
  --geel-zacht: rgba(232, 180, 79, 0.14);
  --ring: rgba(149, 167, 183, 0.22);

  --r-paneel: 18px;
  --r-veld: 11px;
  --r-pill: 999px;
  --sidebar: 252px;
  --font: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --schaduw: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 12px 32px rgba(0, 0, 0, 0.22);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--nacht);
  color: var(--tekst);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--oranje); text-decoration: none; }
a:hover { color: var(--oranje-hover); }

h1, h2, h3 { line-height: 1.2; margin: 0; }

img { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--oranje);
  outline-offset: 2px;
  border-radius: 8px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--oranje); color: #1a0d05; padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.icon { width: 20px; height: 20px; flex: none; }

.muted { color: var(--gedempt); margin: 0 0 16px; }

/* ---------- Merk ---------- */

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--tekst); }
.brand:hover { color: var(--tekst); }
.brand-mark {
  display: inline-grid; grid-template-columns: repeat(3, 8px); align-items: end; gap: 2px;
  width: 30px; height: 26px;
}
.brand-mark i { display: block; background: var(--oranje); border-radius: 2px 2px 1px 1px; }
.brand-mark i:nth-child(1) { height: 9px; opacity: .55; }
.brand-mark i:nth-child(2) { height: 17px; opacity: .8; }
.brand-mark i:nth-child(3) { height: 26px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 21px; font-weight: 800; letter-spacing: .01em; }
.brand-text span { font-size: 13px; color: var(--wol); font-weight: 600; }

.brand-large .brand-mark { grid-template-columns: repeat(3, 11px); gap: 3px; width: 39px; height: 36px; }
.brand-large .brand-mark i:nth-child(1) { height: 12px; }
.brand-large .brand-mark i:nth-child(2) { height: 24px; }
.brand-large .brand-mark i:nth-child(3) { height: 36px; }
.brand-large .brand-text strong { font-size: 27px; }
.brand-large .brand-text span { font-size: 15px; }

/* ---------- Opbouw ---------- */

.shell { display: flex; min-height: 100vh; min-height: 100dvh; }

.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 40;
  display: flex; flex-direction: column; gap: 8px;
  background: var(--paneel);
  padding: 22px 14px calc(16px + env(safe-area-inset-bottom));
}
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 0 10px 18px; }
.sidebar .sidebar-close { display: none; }

.nav { display: flex; flex-direction: column; gap: 4px; flex: 1; overflow-y: auto; }
.nav-group { margin: 22px 12px 6px; color: var(--zacht); font-size: 13px; font-weight: 700; }
.nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 12px;
  color: var(--gedempt); font-weight: 600;
  transition: background-color .15s, color .15s;
}
.nav-link:hover { background: var(--paneel-2); color: var(--tekst); }
.nav-link.is-active { background: var(--oranje-zacht); color: var(--oranje); }

.sidebar-foot {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 6px 0;
}
.me {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px;
  padding: 8px; border-radius: 12px; color: var(--tekst);
}
.me:hover, .me.is-active { background: var(--paneel-2); color: var(--tekst); }
.me-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.me-text strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-text span { font-size: 12px; color: var(--gedempt); }

.main { flex: 1; min-width: 0; margin-left: var(--sidebar); }
.content { max-width: 1180px; margin: 0 auto; padding: 36px 40px 64px; }

.topbar { display: none; }
.scrim { display: none; }

/* ---------- Knoppen ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 18px; border: 0; border-radius: var(--r-veld);
  font: inherit; font-weight: 700; font-size: 15px; line-height: 1.2;
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: background-color .15s, color .15s, box-shadow .15s;
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--oranje); color: #1f0f06; }
.btn-primary:hover { background: var(--oranje-hover); color: #1f0f06; }
.btn-primary:active { background: var(--oranje-diep); }
.btn-ghost { background: var(--paneel-2); color: var(--tekst); }
.btn-ghost:hover { background: var(--paneel-3); color: var(--tekst); }
.btn-danger-ghost { background: transparent; color: var(--rood); }
.btn-danger-ghost:hover { background: var(--rood-zacht); color: var(--rood); }
.btn-block { width: 100%; }
.btn-small { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.btn-small .icon { width: 16px; height: 16px; }

.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none;
  border: 0; border-radius: 11px; background: transparent; color: var(--gedempt); cursor: pointer;
}
.icon-btn:hover { background: var(--paneel-2); color: var(--tekst); }

.small-link { font-size: 14px; font-weight: 700; }

/* ---------- Avatars en pills ---------- */

.avatar {
  display: inline-grid; place-items: center; flex: none;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--paneel-3); color: var(--wol);
  font-size: 14px; font-weight: 800; letter-spacing: .02em;
}
.avatar-soft { background: var(--oranje-zacht); color: var(--oranje); }
.avatar-lg { width: 56px; height: 56px; font-size: 19px; }

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: var(--r-pill);
  background: var(--paneel-3); color: var(--gedempt);
  font-size: 12px; font-weight: 700; line-height: 1.5; vertical-align: middle;
}
.pill .icon { width: 13px; height: 13px; }
.pill-accent { background: var(--oranje-zacht); color: var(--oranje); }
.pill-muted { background: var(--rood-zacht); color: var(--rood); }

/* ---------- Paginakop ---------- */

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.page-head-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.page-title { font-size: 32px; font-weight: 800; letter-spacing: -.01em; }
.page-sub { margin: 6px 0 0; color: var(--gedempt); max-width: 64ch; }
.page-date { margin: 0 0 6px; color: var(--wol); font-weight: 600; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.back-link {
  display: inline-flex; align-items: center; gap: 4px;
  margin: 0 0 14px -4px; color: var(--gedempt); font-weight: 600; font-size: 15px;
}
.back-link:hover { color: var(--tekst); }
.back-link .icon { width: 18px; height: 18px; }

/* ---------- Panelen ---------- */

.panel {
  background: var(--paneel);
  border-radius: var(--r-paneel);
  padding: 24px;
  box-shadow: var(--schaduw);
}
.panel + .panel, .grid-2 + .panel, .panel + .danger-zone, .grid-2 + .danger-zone { margin-top: 20px; }
.grid-2 > .panel, .grid-2 > form.panel { margin-top: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.panel-head h2 { font-size: 18px; font-weight: 800; }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.grid-2 + .grid-2 { margin-top: 20px; }

/* ---------- Statistieken ---------- */

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat {
  display: flex; align-items: baseline; gap: 12px;
  padding: 20px 22px; border-radius: var(--r-paneel);
  background: var(--paneel-2); color: var(--tekst);
}
a.stat:hover { background: var(--paneel-3); color: var(--tekst); }
.stat-value { font-size: 34px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--gedempt); font-weight: 600; }

/* ---------- Lijsten ---------- */

.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.list-item {
  display: flex; align-items: center; gap: 14px;
  padding: 10px; margin: 0 -10px; border-radius: 12px; color: var(--tekst);
}
a.list-item:hover { background: var(--paneel-2); color: var(--tekst); }
.list-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.list-main strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-main span { color: var(--gedempt); font-size: 14px; }
.list-meta { color: var(--zacht); font-size: 13px; white-space: nowrap; }

/* ---------- Tabelrijen ---------- */

.rows { display: flex; flex-direction: column; gap: 6px; }
.row {
  display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr) minmax(0, 1.6fr) 110px;
  align-items: center; gap: 16px;
  padding: 12px 18px; border-radius: 14px;
  background: var(--paneel); color: var(--tekst);
}
a.row:hover { background: var(--paneel-2); color: var(--tekst); }
.row-head {
  background: transparent; padding-top: 0; padding-bottom: 4px;
  color: var(--zacht); font-size: 13px; font-weight: 700;
}
.row-name { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--tekst); }
.row-name:hover { color: var(--tekst); }
.row-name > span:last-child { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.row-name strong { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { color: var(--gedempt); font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-muted { color: var(--gedempt); font-size: 15px; min-width: 0; }
.row-contact { display: flex; flex-direction: column; line-height: 1.35; }
.row-contact span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row.is-inactive { opacity: .55; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }

.rows-users .row { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.2fr) minmax(0, 1.2fr) auto; }

.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; color: var(--gedempt); }

/* ---------- Zoeken ---------- */

.search {
  position: relative; display: flex; align-items: center;
  margin-bottom: 18px; max-width: 560px;
}
.search > .icon { position: absolute; left: 16px; color: var(--zacht); pointer-events: none; }
.search input[type="search"] { padding-left: 48px; padding-right: 48px; background: var(--paneel); }
.search-clear { position: absolute; right: 8px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--gedempt); }
.search-clear:hover { background: var(--paneel-2); color: var(--tekst); }

/* ---------- Formulieren ---------- */

.form { display: flex; flex-direction: column; gap: 18px; }
.form-wide { gap: 20px; }
.form-wide .panel + .panel { margin-top: 0; }
.form-narrow { max-width: 680px; gap: 20px; }
.form-narrow .panel + .panel { margin-top: 0; }
.panel.form { gap: 16px; }
.panel.form .panel-head { margin-bottom: 2px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid-adres { grid-template-columns: 1fr 1fr 1fr; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; margin: 0; padding: 0; border: 0; }
.panel > .field + .field, .panel > .field + fieldset, .panel > fieldset + .check, .panel > .field + .check { margin-top: 16px; }
.field label, .field legend { font-weight: 700; font-size: 15px; padding: 0; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.optional { color: var(--zacht); font-weight: 600; font-size: 13px; margin-left: 4px; }
.hint { margin: 6px 0 0; color: var(--gedempt); font-size: 14px; }

input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="search"], input[type="number"], input:not([type]), textarea, select {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 0; border-radius: var(--r-veld);
  background: var(--paneel-2); color: var(--tekst);
  box-shadow: inset 0 0 0 1px var(--ring);
  font: inherit; font-size: 16px;
  transition: box-shadow .15s, background-color .15s;
  -webkit-appearance: none; appearance: none;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--zacht); }
input:hover, textarea:hover { box-shadow: inset 0 0 0 1px rgba(149, 167, 183, 0.4); }
input:focus, textarea:focus, select:focus {
  outline: none; background: var(--paneel-3);
  box-shadow: inset 0 0 0 2px var(--oranje);
}
input:disabled { opacity: .6; }
[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--rood) !important; }
.field-error { margin: 0; color: var(--rood); font-size: 14px; font-weight: 600; }

input:-webkit-autofill {
  -webkit-text-fill-color: var(--tekst);
  -webkit-box-shadow: 0 0 0 100px var(--paneel-2) inset, inset 0 0 0 1px var(--ring);
  caret-color: var(--tekst);
}

.password { position: relative; }
.password input { padding-right: 52px; }
.reveal {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 42px; height: 40px;
  border: 0; border-radius: 9px; background: transparent; color: var(--zacht); cursor: pointer;
}
.reveal:hover { color: var(--tekst); }

.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-weight: 600; }
.check small { display: block; color: var(--gedempt); font-weight: 400; font-size: 14px; margin-top: 2px; }
.check input, .choice input {
  flex: none; width: 22px; height: 22px; margin: 1px 0 0;
  accent-color: var(--oranje); cursor: pointer;
}

.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  padding: 14px; border-radius: 13px; background: var(--paneel-2);
  box-shadow: inset 0 0 0 1px var(--ring);
}
.choice span { display: flex; flex-direction: column; gap: 2px; }
.choice small { color: var(--gedempt); font-size: 14px; line-height: 1.35; }
.choice:has(input:checked) { background: var(--oranje-zacht); box-shadow: inset 0 0 0 2px var(--oranje); }
.choice:has(input:disabled) { cursor: not-allowed; opacity: .7; }

.form-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.panel.form .form-actions { margin-top: 4px; justify-content: flex-start; }

/* ---------- Meldingen ---------- */

.flashes { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.flash {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px 13px 16px; border-radius: 13px;
  background: var(--paneel-2); color: var(--tekst); font-weight: 600;
}
.flash > span { flex: 1; }
.flash-success { background: var(--groen-zacht); }
.flash-success > .icon { color: var(--groen); }
.flash-error { background: var(--rood-zacht); }
.flash-error > .icon { color: var(--rood); }
.flash-warning { background: var(--geel-zacht); }
.flash-warning > .icon { color: var(--geel); }
.flash-close {
  display: grid; place-items: center; width: 32px; height: 32px; flex: none;
  border: 0; border-radius: 8px; background: transparent; color: var(--gedempt); cursor: pointer;
}
.flash-close:hover { background: rgba(255, 255, 255, 0.06); color: var(--tekst); }
.flash-close .icon { width: 16px; height: 16px; }
.content > .flash { margin-bottom: 20px; }

/* ---------- Lege staat ---------- */

.empty-state {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  padding: 36px 20px;
}
.empty-state p { margin: 0; color: var(--gedempt); max-width: 46ch; }
.empty-icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  background: var(--oranje-zacht); color: var(--oranje);
}
.empty-icon .icon { width: 26px; height: 26px; }
.empty-page { min-height: 60vh; justify-content: center; }
.empty-page h1 { font-size: 28px; font-weight: 800; }

/* ---------- Klantdetail ---------- */

.quick-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: -8px 0 24px; }
.quick {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 46px; padding: 10px 18px; border-radius: var(--r-pill);
  background: var(--paneel-2); color: var(--tekst); font-weight: 700;
}
.quick .icon { color: var(--oranje); width: 19px; height: 19px; }
.quick:hover { background: var(--paneel-3); color: var(--tekst); }

.details { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.details > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
.details dt { color: var(--gedempt); font-weight: 600; }
.details dd { margin: 0; overflow-wrap: anywhere; }

.notes { white-space: normal; line-height: 1.65; overflow-wrap: anywhere; }

.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.timeline li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.timeline-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--oranje); }
.timeline time { color: var(--zacht); font-size: 14px; white-space: nowrap; }

.danger-zone { display: flex; justify-content: flex-end; }

/* ---------- Inlogscherm ---------- */

.guest-wrap { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.guest-panel {
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  padding: 48px clamp(24px, 6vw, 72px);
  background: var(--paneel);
}
.guest-panel .brand { margin-bottom: 26px; }
.guest-title { font-size: 30px; font-weight: 800; letter-spacing: -.01em; }
.guest-sub { margin: -8px 0 6px; color: var(--gedempt); max-width: 40ch; }
.guest-panel .form { gap: 18px; }
.guest-panel .btn-block + .btn-block { margin-top: -6px; }

.guest-art {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 56px;
  background:
    radial-gradient(1200px 600px at 100% 0%, rgba(229, 128, 79, 0.10), transparent 60%),
    var(--nacht);
}
.stairs {
  position: absolute; right: 0; bottom: 0;
  display: flex; align-items: flex-end; gap: 0;
  width: min(76%, 720px); height: 78%;
}
.stairs span {
  flex: 1;
  height: calc(var(--i) * 11.1%);
  background: var(--oranje);
  opacity: calc(.18 + var(--i) * .09);
  transform-origin: bottom;
  margin-left: -1px;
  animation: trede .7s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(var(--i) * 60ms);
}
.stairs span:nth-child(odd) { filter: brightness(.94); }
@keyframes trede { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.guest-quote {
  position: relative; margin: 0; max-width: 18ch;
  font-size: clamp(26px, 3vw, 40px); font-weight: 800; line-height: 1.15; letter-spacing: -.01em;
  color: var(--tekst);
  align-self: flex-start; margin-bottom: auto; margin-top: 8vh;
}

/* ---------- Responsief ---------- */

@media (max-width: 1100px) {
  .row { grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) minmax(0, 1.6fr); }
  .row > :nth-child(4) { display: none; }
  .rows-users .row { grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) auto; }
  .rows-users .row > :nth-child(3) { display: none; }
  .rows-users .row > :nth-child(4) { display: flex; }
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%); visibility: hidden;
    transition: transform .25s ease, visibility 0s linear .25s;
    box-shadow: 24px 0 48px rgba(0, 0, 0, 0.4);
  }
  .sidebar .sidebar-close { display: inline-grid; }
  body.nav-open .sidebar { transform: none; visibility: visible; transition: transform .25s ease; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 30; background: rgba(4, 10, 16, 0.6); }
  body.nav-open { overflow: hidden; }

  .main { margin-left: 0; }
  .topbar {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; gap: 8px;
    padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
    background: rgba(8, 19, 29, 0.92);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .topbar .brand { flex: 1; }
  .brand-small .brand-text strong { font-size: 19px; }
  .avatar-link { width: 36px; height: 36px; font-size: 13px; color: var(--wol); }
  .avatar-link:hover { color: var(--tekst); }
  .content { padding: 20px 16px 48px; }

  .grid-2, .stats { grid-template-columns: minmax(0, 1fr); }
  .stats { gap: 10px; }
  .stat { padding: 16px 18px; }
  .stat-value { font-size: 28px; }
  .page-title { font-size: 26px; }
  .page-head { align-items: flex-start; margin-bottom: 22px; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1; }
  .panel { padding: 18px; border-radius: 16px; }

  .guest-wrap { grid-template-columns: 1fr; }
  .guest-art { display: none; }
  .guest-panel { justify-content: flex-start; padding-top: calc(48px + env(safe-area-inset-top)); }
}

@media (max-width: 640px) {
  .row-head { display: none; }
  .row, .rows-users .row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 16px; }
  .row > :nth-child(2) { padding-left: 50px; }
  .row > :nth-child(3) { padding-left: 50px; font-size: 14px; }
  .rows-users .row > :nth-child(4) { padding-left: 50px; justify-content: flex-start; margin-top: 6px; }
  .form-grid, .form-grid-adres, .choice-row { grid-template-columns: 1fr; }
  .span-2, .span-3 { grid-column: auto; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; }
  .details > div { grid-template-columns: 1fr; gap: 2px; }
  .timeline li { grid-template-columns: 12px minmax(0, 1fr); }
  .timeline time { grid-column: 2; }
  .quick { flex: 1; justify-content: center; padding: 10px 12px; }
  .danger-zone { justify-content: stretch; }
  .danger-zone .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
