/* Van Quote Hub — one stylesheet for the public site, company area and admin CRM. */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); }

:root {
  --ink: #14213D;
  --ink-2: #26365A;
  --ink-3: #5B6A8A;
  --on-ink: #FFFFFF;
  --on-ink-2: #D5DAE4;
  --on-ink-3: #AEB6C6;
  --text: #1B2433;
  --text-2: #3E4757;
  --muted: #5A6474;
  --line: #E3E4DE;
  --line-2: #C9CCC4;
  --ground: #F7F6F2;
  --ground-2: #F3F4F1;
  --surface: #FFFFFF;
  --chip: #EEF0F4;
  --amber: #F5A524;
  --amber-2: #E0901A;
  --amber-text: #F5C46A;
  --amber-soft: #FFF6E5;
  --amber-line: #F1D49A;
  --amber-ink: #3B2A0C;
  --link: #9A4F05;
  --link-hover: #6E3803;
  --ok: #1E7A4C;
  --ok-soft: #DDF0E5;
  --ok-text: #165C39;
  --bad: #B42318;
  --bad-soft: #FDE7E4;
  --bad-text: #9B1C12;
  --radius: 14px;
  --radius-sm: 10px;
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--text); font: 400 16px/1.55 var(--body); }
img { max-width: 100%; height: auto; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.15; margin: 0; }
h1 { font-weight: 800; }
h2, h3 { font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.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 { position: absolute; left: -9999px; top: 8px; background: var(--amber); color: var(--ink); padding: 10px 14px; border-radius: 8px; z-index: 50; font-weight: 700; }
.skip:focus { left: 8px; }

/* Layout */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.wrap-form { max-width: 640px; margin: 0 auto; padding: 0 16px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row-between { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.split > .main { flex: 999 1 560px; min-width: 0; }
.split > .side { flex: 1 1 280px; min-width: 0; }
.section { padding: 72px 0; }
.section-white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.page { padding: 28px 0 56px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.strong { font-weight: 700; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 48px 0; }
  .wrap, .wrap-narrow { padding: 0 16px; }
}

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--on-ink); }
.brand-tag { padding: 3px 8px; border-radius: 8px; background: var(--ink-2); color: var(--amber-text); font-size: 12px; font-weight: 700; }

@media (max-width: 480px) { .site-header .brand-tag { display: none; } }
/* Header + nav */
.site-header { background: var(--ink); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.nav a, .nav button.linkish { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--on-ink-2); font-size: 15px; font-weight: 500; text-decoration: none; background: none; border: 0; font-family: inherit; cursor: pointer; }
.nav a:hover, .nav button.linkish:hover { color: var(--on-ink); }
.nav a[aria-current="page"] { background: var(--ink-2); color: var(--on-ink); font-weight: 600; }
.nav .count { margin-left: 6px; padding: 1px 7px; border-radius: 10px; background: var(--amber); color: var(--ink); font-size: 12px; font-weight: 700; }
.nav form { margin: 0; display: flex; }
.nav button.linkish { line-height: 1.2; }
.nav a.btn-primary { background: var(--amber); color: var(--ink); font-weight: 700; margin-left: 6px; padding: 0 18px; }
.nav a.btn-primary:hover { background: var(--amber-2); color: var(--ink); }

/* Phone menu (button shows below 860px; without JavaScript the links simply wrap) */
.nav-toggle { display: none; align-items: center; justify-content: center; width: 46px; height: 44px; border-radius: 10px; border: 1.5px solid var(--ink-3); background: transparent; color: var(--on-ink); cursor: pointer; padding: 0; }
.nav-toggle:hover { border-color: var(--on-ink-2); }
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-open, .nav-open > .nav-toggle .i-open { display: none; }
.nav-open .nav-toggle .i-close { display: inline; }
@media (max-width: 860px) {
  .js .site-header .nav-toggle { display: inline-flex; }
  .js .site-header .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 6px 0 4px; }
  .js .site-header.nav-open .nav { display: flex; }
  .js .site-header .nav > a, .js .site-header .nav > form { border-top: 1px solid var(--ink-2); }
  .js .site-header .nav a, .js .site-header .nav button.linkish { min-height: 50px; padding: 0 4px; border-radius: 0; width: 100%; font-size: 16px; }
  .js .site-header .nav a[aria-current="page"] { background: transparent; color: var(--amber-text); }
  .js .site-header .nav a.btn-primary { margin: 12px 0 4px; border-radius: 10px; justify-content: center; border-top: 0; }
  .js .admin-side { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .js .admin-side .brand { flex: 1 1 auto; padding: 0 8px; }
  .js .admin-side .admin-toggle { display: inline-flex; }
  .js .admin-side > a:not(.brand), .js .admin-side > form, .js .admin-side > .sep { display: none; }
  .js .admin-side.nav-open > a:not(.brand), .js .admin-side.nav-open > form { display: flex; flex-basis: 100%; width: 100%; }
  .js .admin-side.nav-open > a:not(.brand) { min-height: 48px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: var(--radius-sm); border: 1.5px solid transparent; font: 700 15px var(--body); text-decoration: none; cursor: pointer; line-height: 1.2; text-align: center; }
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: var(--amber-2); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--on-ink); }
.btn-dark:hover { background: var(--ink-2); color: var(--on-ink); }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--ink); font-weight: 600; }
.btn-outline:hover { background: var(--ground); color: var(--ink); }
.btn-quiet { background: var(--surface); color: var(--text); border-color: var(--line-2); font-weight: 600; }
.btn-quiet:hover { border-color: var(--ink-3); color: var(--text); }
.btn-danger { background: var(--surface); color: var(--bad-text); border-color: #E7A49C; font-weight: 600; }
.btn-danger:hover { background: var(--bad-soft); color: var(--bad-text); }
.btn-on-ink { background: transparent; color: var(--on-ink); border-color: var(--ink-3); font-weight: 600; }
.btn-on-ink:hover { color: var(--on-ink); border-color: var(--on-ink-2); }
.btn-lg { min-height: 56px; font-size: 17px; padding: 0 26px; border-radius: 12px; }
.btn-sm { min-height: 38px; padding: 0 12px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--link); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card-tight { padding: 14px 16px; }
.card h2 { font-size: 19px; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.notice { background: var(--amber-soft); border: 1px solid var(--amber-line); border-radius: var(--radius); padding: 14px 16px; color: var(--amber-ink); }
.notice a { color: var(--link-hover); }
.ok-box { background: var(--ok-soft); color: var(--ok-text); border-radius: 12px; padding: 12px 16px; }
.bad-box { background: var(--bad-soft); color: var(--bad-text); border-radius: 12px; padding: 12px 16px; }
.info-box { background: var(--ground-2); color: var(--text-2); border-radius: 10px; padding: 12px 14px; font-size: 14px; }

/* Flash messages */
.flashes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.flash { border-radius: 12px; padding: 12px 16px; font-size: 15px; }
.flash-success { background: var(--ok-soft); color: var(--ok-text); }
.flash-error { background: var(--bad-soft); color: var(--bad-text); }
.flash-info { background: var(--amber-soft); color: var(--amber-ink); border: 1px solid var(--amber-line); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: 13px; font-weight: 600; color: var(--ink); }
.req { color: var(--bad); }
.input, .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="password"], .field input[type="date"], .field input[type="number"], .field input[type="search"], .field input[type="url"], .field select, .field textarea, select.input, textarea.input {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); font: 400 16px var(--body); color: var(--text);
}
.field textarea, textarea.input { min-height: 112px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--ink); outline: 3px solid rgba(245, 165, 36, .45); outline-offset: 0; }
.field .hint, .hint { font-size: 12px; color: var(--muted); }
.field .error, .error-text { font-size: 13px; color: var(--bad-text); font-weight: 600; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--bad); }
.check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; font-size: 15px; line-height: 1.5; cursor: pointer; }
.check input { flex: 0 0 auto; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); }
.check-inline { align-items: center; }
.fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.fieldset legend { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 4px; padding: 0; }
.chips-input { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-check span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1.5px solid var(--line-2); background: var(--surface); font-size: 14px; font-weight: 500; cursor: pointer; }
.chip-check input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.chip-check input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.form-card h2 { font-size: 19px; }

/* Chips, badges */
.chip { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 8px; background: var(--chip); color: var(--ink-2); font-size: 13px; }
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge-pending { background: var(--chip); color: var(--ink-2); }
.badge-active, .badge-approved, .badge-paid, .badge-sent, .badge-refunded-ok { background: var(--ok-soft); color: var(--ok-text); }
.badge-sold { background: var(--ink); color: var(--on-ink); }
.badge-expired, .badge-cancelled, .badge-failed-quiet { background: var(--ground-2); color: var(--muted); border: 1px solid var(--line); }
.badge-withdrawn, .badge-rejected, .badge-suspended, .badge-failed, .badge-refund_pending, .badge-open, .badge-urgent { background: var(--bad-soft); color: var(--bad-text); }
.badge-paused, .badge-refunded { background: var(--amber-soft); color: var(--amber-ink); border: 1px solid var(--amber-line); }
.badge-new, .badge-contacted, .badge-quoted, .badge-booked { background: var(--chip); color: var(--ink-2); }
.badge-completed { background: var(--ok-soft); color: var(--ok-text); }
.badge-not_won { background: var(--ground-2); color: var(--muted); }

/* Hero (public) */
.hero { background: var(--ink); padding: 40px 0 64px; }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero-copy { flex: 1 1 420px; display: flex; flex-direction: column; gap: 20px; }
.hero h1 { color: var(--on-ink); font-size: clamp(34px, 5vw, 58px); line-height: 1.04; letter-spacing: -0.5px; }
.hero p.lede { color: var(--on-ink-2); font-size: 18px; max-width: 540px; }
.eyebrow { align-self: flex-start; padding: 6px 12px; border-radius: 16px; background: var(--ink-2); color: var(--amber-text); font-size: 14px; font-weight: 600; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.hero .ticks li { color: var(--on-ink); }
.ticks svg { flex: 0 0 auto; margin-top: 3px; }
.hero-card { flex: 1 1 360px; max-width: 460px; background: var(--surface); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.hero-card h2 { font-size: 22px; }
.section-title { font-size: clamp(28px, 3.4vw, 36px); }
.step-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.step-num { font-family: var(--display); font-weight: 800; font-size: 40px; color: var(--amber); line-height: 1; }
.step-card h3 { font-size: 19px; }
.step-card p { color: var(--text-2); }
.service-card { background: var(--ground); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.service-card h3 { font-size: 18px; }
.service-card p { color: var(--text-2); font-size: 15px; }
.pill { display: inline-flex; padding: 6px 12px; border-radius: 16px; border: 1px solid var(--line-2); font-size: 14px; background: var(--surface); }
.band-amber { background: var(--amber); padding: 56px 0; }
.band-amber h2 { font-size: 32px; }
.band-amber p { color: var(--ink); font-size: 17px; margin-top: 8px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.faq summary { cursor: pointer; font-size: 17px; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 700; color: var(--link); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--text-2); }
.price-tile { border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 6px; background: var(--ground); }
.price-tile .big { font-family: var(--display); font-weight: 800; font-size: 44px; color: var(--ink); line-height: 1.05; }
.price-tile.dark { background: var(--ink); }
.price-tile.dark .big { color: var(--amber); }
.price-tile.dark span { color: var(--on-ink-2); }
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin: 28px 0 10px; }
.prose h3 { font-size: 19px; margin: 22px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; color: var(--text-2); }
.prose li { margin-bottom: 6px; }
.draft-banner { background: var(--amber-soft); border: 1px dashed var(--amber-2); color: var(--amber-ink); border-radius: 10px; padding: 10px 14px; font-size: 14px; margin-bottom: 20px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-ink-3); padding: 40px 0; font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.site-footer a { color: var(--on-ink-2); }
.site-footer .brand-name { font-size: 18px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }

/* Quote form page */
.quote-page { padding: 24px 0 48px; }
.quote-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.quote-head h1 { font-size: clamp(28px, 4vw, 38px); }
.quote-head p { color: var(--text-2); }
.submit-note { font-size: 13px; color: var(--muted); text-align: center; }

/* Lead cards (marketplace) */
.lead-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.lead-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 16px; }
.lead-card:target { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245, 165, 36, .35); }
.lead-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.route { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--ink); line-height: 1.1; }
.route small { font-family: var(--body); font-weight: 500; font-size: 13px; color: var(--muted); }
.lead-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lead-summary { font-size: 15px; color: var(--text); }
.progress { display: flex; flex-direction: column; gap: 6px; }
.progress-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.progress-bar { height: 6px; border-radius: 3px; background: var(--chip); overflow: hidden; }
.progress-bar span { display: block; height: 6px; border-radius: 3px; background: var(--ink); }
.progress-bar.low span { background: var(--bad); }
.locked { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.filters .field { gap: 4px; }
.filters .field > label { font-size: 12px; color: var(--text-2); }
.filters select, .filters input { min-height: 44px !important; padding: 9px 12px !important; font-size: 14px !important; font-weight: 500; }
.empty { background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 36px 20px; text-align: center; color: var(--muted); }

/* Detail rows */
.dl { margin: 0; }
.dl-row { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid #EEEFEA; }
.dl-row:last-child { border-bottom: 0; }
.dl dt { flex: 0 0 160px; color: var(--muted); }
.dl dd { flex: 1 1 240px; margin: 0; color: var(--text); white-space: pre-line; overflow-wrap: anywhere; }
.side-list { display: flex; flex-direction: column; gap: 8px; }
.side-item { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.side-item:hover { border-color: var(--ink-3); color: var(--text); }
.side-item[aria-current="page"] { border: 2px solid var(--ink); }
.side-item .t { font-weight: 700; color: var(--ink); }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #FBFBF9; }
.table td { padding: 12px 14px; border-bottom: 1px solid #EEEFEA; vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; }
.table .ref { font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.table .ref:hover { text-decoration: underline; }
.table-toolbar { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); align-items: flex-end; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 12px 16px; font-size: 14px; }

/* Company + admin shells */
.app-page { padding: 28px 0 56px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.page-head h1 { font-size: clamp(26px, 3vw, 32px); }
.page-head p { color: var(--muted); margin-top: 6px; }
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--surface); border-bottom: 1px solid var(--line); }
.stat-list { display: flex; flex-direction: column; gap: 10px; }
.stat-list div { display: flex; justify-content: space-between; font-size: 14px; }
.stat-list span { color: var(--muted); }

.admin-body { background: var(--ground-2); }
.admin-shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.admin-side { flex: 1 1 220px; max-width: 100%; background: var(--ink); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; }
.admin-side .brand { padding: 0 8px 16px; }
.admin-side .brand-name { font-size: 16px; display: block; }
.admin-side .sub { display: block; font-size: 12px; color: var(--on-ink-3); }
.admin-side a, .admin-side button.linkish { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 0 12px; border-radius: 8px; color: var(--on-ink-2); font-size: 14px; font-weight: 500; text-decoration: none; background: none; border: 0; font-family: inherit; cursor: pointer; width: 100%; text-align: left; }
.admin-side a:hover, .admin-side button.linkish:hover { color: var(--on-ink); background: rgba(255, 255, 255, .04); }
.admin-side a[aria-current="page"] { background: var(--ink-2); color: var(--on-ink); font-weight: 600; }
.admin-side .count { padding: 1px 7px; border-radius: 10px; background: var(--amber); color: var(--ink); font-size: 12px; font-weight: 700; }
.admin-side .sep { height: 1px; background: var(--ink-2); margin: 10px 4px; }
.admin-main { flex: 999 1 640px; min-width: 0; padding: 24px 28px 48px; }
@media (max-width: 860px) { .admin-side { flex-basis: 100%; flex-direction: row; flex-wrap: wrap; } .admin-side a, .admin-side button.linkish { width: auto; } .admin-side .brand { flex-basis: 100%; } .admin-side .sep { display: none; } .admin-main { padding: 20px 16px 40px; } }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.kpi .k { font-size: 13px; color: var(--muted); }
.kpi .v { font-family: var(--display); font-weight: 700; font-size: 32px; color: var(--ink); line-height: 1.2; }
.attention { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.subnav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.subnav a { padding: 8px 14px; border-radius: 20px; border: 1.5px solid var(--line-2); background: var(--surface); text-decoration: none; color: var(--text); font-size: 14px; font-weight: 500; }
.subnav a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions form { margin: 0; }
.timeline { display: flex; flex-direction: column; gap: 0; font-size: 13px; }
.timeline div { padding: 8px 0; border-bottom: 1px solid #EEEFEA; }
.timeline div:last-child { border-bottom: 0; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; background: var(--ground-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px; white-space: pre-wrap; word-break: break-all; }
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: var(--ink); }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.auth-card h1 { font-size: 26px; }
.qr { width: 200px; height: 200px; background: var(--surface); }
.qr svg, .qr img { width: 200px; height: 200px; }

/* Embedded form (inside other sites) */
.embed-body { background: transparent; }
.embed-body .wrap-form { padding: 0; max-width: none; }

/* Receipt / print */
.receipt { max-width: 640px; margin: 24px auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
@media print {
  .site-header, .site-footer, .no-print, .admin-side { display: none !important; }
  body { background: #fff; }
  .receipt { border: 0; margin: 0; }
}
