/* Schutz Advisory client portal. Colors and type follow the firm website (firm-website/css/site.css). */
@font-face {
  font-family: "Manrope";
  src: url("/static/manrope-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --spruce: #1F3B34;
  --spruce-hover: #2A4C43;
  --ink: #14181A;
  --slate: #5E6B68;
  --brass: #A8844E;
  --mist: #DCE3DE;
  --paper: #F7F7F4;
  --ground: #ECEEEA;
  --white: #FFFFFF;
  --focus: #8A6A35;
  --error: #9B2C2C;
  --error-bg: #FBEDEC;
  --ok: #2F6B4F;
  --ok-bg: #E8F2EC;

  --bg: var(--paper);
  --surface: var(--white);
  --text: var(--ink);
  --head: var(--spruce);
  --muted: var(--slate);
  --line: var(--mist);
  --field: var(--white);
  --accent: var(--spruce);
  --accent-text: var(--paper);
  --logo-a: #173D35;
  --logo-b: #342B29;

  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 6px;
  --radius-lg: 8px;
  --shadow: 0 8px 24px rgba(20, 24, 26, .08);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #152A24;
    --surface: #1F3B34;
    --text: #DCE3DE;
    --head: #F7F7F4;
    --muted: #A9B8B2;
    --line: rgba(220, 227, 222, .16);
    --field: rgba(247, 247, 244, .06);
    --accent: #C9A770;
    --accent-text: #14181A;
    --focus: #C9A770;
    --error: #F2B8B5;
    --error-bg: rgba(242, 184, 181, .1);
    --ok: #A8D5BA;
    --ok-bg: rgba(168, 213, 186, .1);
    --logo-a: #F7F7F4;
    --logo-b: #DCE3DE;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--sans);
  font-variant-numeric: tabular-nums;
}
h1, h2, h3 { color: var(--head); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: 1.6rem; font-weight: 700; }
h2 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--head); text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* Header */
.top { border-bottom: 1px solid var(--line); background: var(--surface); }
/* The header lines up with the page below it: the same max width and side padding as main. */
.top-inner {
  max-width: 1160px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: block; line-height: 0; }
.logo { width: 150px; height: auto; aspect-ratio: 881 / 261; }
.top-label { color: var(--muted); font-size: .9rem; font-weight: 600; letter-spacing: .02em; }

main { margin: 0 auto; padding: 32px 16px 64px; }
main.narrow, body:has(main.narrow) .top-inner { max-width: 460px; }
main.wide { max-width: 1160px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 20px; }
@media (max-width: 480px) { .card { padding: 20px; } }

/* Forms */
label { display: block; font-weight: 600; margin: 0 0 6px; color: var(--head); }
input[type="email"], input[type="text"], input:not([type]), select {
  width: 100%; font: inherit; color: var(--text);
  background: var(--field); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 12px; margin: 0 0 16px;
}
textarea {
  width: 100%; font: inherit; color: var(--text); resize: vertical;
  background: var(--field); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 12px; margin: 0 0 16px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
input#code { font-size: 1.6rem; letter-spacing: .3em; text-align: center; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text); margin-bottom: 20px; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--head); }

button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
  background: var(--accent); color: var(--accent-text);
  border: 0; border-radius: var(--radius); padding: 12px 20px; min-height: 44px;
}
form > button[type="submit"] { width: 100%; }
button:hover, .button:hover { filter: brightness(1.08); }
button:disabled { opacity: .55; cursor: default; filter: none; }
button.secondary {
  background: transparent; color: var(--head); border: 1px solid var(--line);
}
.link-button {
  background: none; color: var(--head); padding: 0; min-height: 0; font-weight: 600;
  text-decoration: underline; text-underline-offset: 2px;
}
.secondary-form { margin-top: 16px; text-align: center; }
.secondary-form button { width: auto; }

.error, .info {
  border-radius: var(--radius); padding: 10px 12px; font-weight: 500;
}
.error { background: var(--error-bg); color: var(--error); }
.info { background: var(--ok-bg); color: var(--ok); }
.detail code { overflow-wrap: anywhere; font-size: 12px; }
.detail .error, .detail .info { overflow-wrap: anywhere; }

/* Portal */
.page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { margin: 0; }
.page-head form { margin: 0; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tabs button {
  background: transparent; color: var(--head); border: 1px solid var(--line); font-weight: 600; min-height: 40px; padding: 8px 14px;
}
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-text); border-color: var(--head); }

/* Client and admin pages: side menu of sections */
.portal-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 28px; align-items: start; }
.side-nav { position: sticky; top: 16px; }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav li + li { margin-top: 4px; }
.side-nav button {
  width: 100%; justify-content: space-between; text-align: left; min-height: 44px; padding: 10px 14px;
  background: none; color: var(--muted); font-weight: 700; border-radius: var(--radius);
}
.side-nav button:hover { filter: none; color: var(--head); background: var(--surface); }
.side-nav button[aria-current="page"] { color: var(--head); background: var(--surface); box-shadow: inset 3px 0 0 var(--brass), var(--shadow); }
@media (max-width: 760px) {
  .portal-layout { grid-template-columns: 1fr; gap: 16px; }
  .side-nav { position: static; margin: 0 -16px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
  .side-nav ul { display: flex; gap: 4px; }
  .side-nav li + li { margin-top: 0; }
  .side-nav button { width: auto; white-space: nowrap; gap: 8px; border-radius: var(--radius) var(--radius) 0 0; }
  .side-nav button[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--brass); }
}

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.grid > .card + .card, .admin-forms > .card + .card { margin-top: 0; }
@media (max-width: 760px) { .grid { grid-template-columns: 1fr; } }

.drop {
  border: 2px dashed var(--line); border-radius: var(--radius-lg);
  padding: 28px 16px; text-align: center; margin-bottom: 16px; transition: border-color .15s, background .15s;
}
.drop.over { border-color: var(--accent); background: var(--field); }
.drop p { margin: 0 0 12px; }
.drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.row { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.row > div { flex: 1 1 160px; }
.row select { margin-bottom: 0; }

.files { list-style: none; margin: 0; padding: 0; }
.files li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-top: 1px solid var(--line);
}
.files li:first-child { border-top: 0; }
.files .name { font-weight: 600; overflow-wrap: anywhere; color: var(--text); }
.files .meta { font-size: .85rem; color: var(--muted); }
.files a.dl { flex: none; font-weight: 700; }
.empty { color: var(--muted); margin: 0; }

.progress { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.progress > span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.queue li { display: block; }
.queue .status { font-size: .85rem; color: var(--muted); }
.queue .status.bad { color: var(--error); }
.queue .status.good { color: var(--ok); }

/* Admin */
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 8px 6px; border-top: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .85rem; border-top: 0; }
td .link-button + .link-button { margin-left: 12px; }
.table-wrap { overflow-x: auto; }
/* Activity: keep When, Event, Who and Client on one line; Detail takes the rest and wraps. The admin page is wider so it fits. */
main.wide:has(#admin), body:has(#admin) .top-inner { max-width: 1480px; }
table.audit { min-width: 960px; }
table.audit th, table.audit td:not(:last-child) { white-space: nowrap; padding-right: 16px; }
table.audit td:last-child { min-width: 260px; overflow-wrap: anywhere; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: .8rem; font-weight: 600; background: var(--field); border: 1px solid var(--line); }
.pill.off { color: var(--error); }
.admin-forms { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; align-items: start; }
@media (max-width: 760px) { .admin-forms { grid-template-columns: 1fr; } }
.toast { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius); font-weight: 600; max-width: calc(100% - 32px); }

/* Tax organizer */
.visually-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.organizer-list { margin-bottom: 20px; }
.organizer-list li button { flex: none; }
.organizer-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.organizer-title { font-size: 1.4rem; }
.save-state { color: var(--muted); font-size: .9rem; }
.organizer .card { margin-top: 20px; }
.organizer .info { margin-bottom: 0; }
.firm-note { border-left: 4px solid var(--brass); }
.firm-note p { margin: 0; white-space: pre-line; }
.firm-note .note-from { font-weight: 700; color: var(--head); margin-bottom: 4px; }
.question { border: 0; padding: 16px 0 0; margin: 0; border-top: 1px solid var(--line); min-width: 0; }
.question:first-of-type { border-top: 0; padding-top: 0; }
.question legend, .question > label { font-weight: 600; color: var(--text); padding: 0; margin: 0 0 8px; float: left; width: 100%; }
.question legend + * { clear: both; }
.question .help { font-size: .9rem; color: var(--muted); margin: 0 0 8px; }
.choices { display: flex; gap: 24px; margin: 0 0 16px; }
.choice { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--text); margin: 0; cursor: pointer; }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--head); }
.details { padding-left: 16px; border-left: 2px solid var(--line); }
.details label { font-weight: 500; color: var(--muted); font-size: .95rem; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist .item { padding: 14px 0 14px 32px; border-top: 1px solid var(--line); position: relative; }
.checklist .item:first-child { border-top: 0; }
.checklist .item::before {
  content: ""; position: absolute; left: 0; top: 16px; width: 18px; height: 18px;
  border: 2px solid var(--line); border-radius: 50%;
}
.checklist .item.done::before { content: "\2713"; border-color: var(--ok); background: var(--ok); color: var(--surface); font-size: 12px; font-weight: 800; line-height: 14px; text-align: center; }
.item-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.item-head .name { font-weight: 600; overflow-wrap: anywhere; }
.item-head .meta, .checklist .meta { font-size: .85rem; color: var(--muted); margin: 4px 0 0; }
.item-head button { flex: none; min-height: 38px; padding: 8px 14px; }
.item-files { list-style: none; margin: 8px 0 0; padding: 0; font-size: .9rem; color: var(--ok); }
.item-files li::before { content: "\2713  "; }
.na { margin-top: 10px; }
.na .check { margin-bottom: 8px; }
.na input[type="text"] { margin-bottom: 0; }

/* Tax organizer: step-by-step view */
.wizard { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.step-nav { position: sticky; top: 16px; }
.step-list { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step-list li { counter-increment: step; }
.step-list button {
  width: 100%; justify-content: flex-start; text-align: left; gap: 10px; min-height: 0; padding: 8px 10px;
  background: none; color: var(--muted); font-weight: 600; border-radius: var(--radius);
}
.step-list button::before {
  content: counter(step); flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 800;
}
.step-list .done button::before { content: "\2713"; border-color: var(--ok); background: var(--ok); color: var(--surface); }
.step-list .current button { color: var(--head); background: var(--surface); box-shadow: inset 3px 0 0 var(--brass); }
.step-list .current button::before { border-color: var(--head); }
.step-list button:hover { filter: none; color: var(--head); }
.step-count { color: var(--muted); font-size: .9rem; font-weight: 600; margin: 0; }
.step-progress { margin: 8px 0 0; }
.organizer .step { margin-top: 16px; }
.step-title { font-size: 1.25rem; margin-bottom: 16px; }
.step-title:focus { outline: none; }
.step > p { margin-top: 0; }
.step-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.step-actions > :only-child { margin-left: auto; }
.checklist.inline { margin: 4px 0 8px; padding-left: 16px; border-left: 2px solid var(--brass); }
.checklist.inline .item:first-child { padding-top: 4px; }
.checklist.inline .item:first-child::before { top: 6px; }
.review-list { list-style: none; margin: 0 0 20px; padding: 0; }
.review-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0 12px 32px; border-top: 1px solid var(--line); position: relative; }
.review-list li:first-child { border-top: 0; }
.review-list li::before { content: ""; position: absolute; left: 0; top: 50%; margin-top: -11px; width: 18px; height: 18px; border: 2px solid var(--line); border-radius: 50%; }
.review-list li.done::before { content: "\2713"; border-color: var(--ok); background: var(--ok); color: var(--surface); font-size: 12px; font-weight: 800; line-height: 18px; text-align: center; }
.review-list .name { font-weight: 600; }
.review-list .meta { font-size: .85rem; color: var(--muted); }
.review-list button { flex: none; }
/* Beside the side menu there's no room for the step list on smaller screens; the step count and bar remain. */
@media (max-width: 1000px) {
  .wizard { grid-template-columns: 1fr; }
  .step-nav { display: none; }
}

/* Admin: tax organizers */
.organizer-form { margin-bottom: 20px; }
.organizer-form .narrow-field { flex: 0 1 140px; }
.organizer-form button { width: 100%; }
table.organizers td:nth-child(4) { font-size: .85rem; color: var(--muted); }
table.organizers td:last-child { white-space: nowrap; }
tr.selected td { font-weight: 600; }
tr.selected td:first-child { box-shadow: inset 3px 0 0 var(--brass); padding-left: 10px; }
.pill.sent { color: var(--brass); }
.pill.submitted { color: var(--ok); background: var(--ok-bg); }
.organizer-detail { margin-top: 20px; padding-top: 20px; border-top: 2px solid var(--line); }
.organizer-detail h3 { margin-top: 20px; }
.detail-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.detail-head h3 { margin: 0 0 4px; }
.detail-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 20px 0; }
.edit-list { margin-bottom: 8px; }
.edit-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.edit-row input, .edit-row select { margin: 0; flex: 1 1 200px; width: auto; }
.edit-row input.grow { flex: 2 1 280px; }
.edit-row select { flex: 0 1 150px; }
.edit-row select.when { flex: 1 1 260px; min-width: 0; }
.link-button.danger { color: var(--error); margin-left: auto; }
.answers dl { margin: 0 0 8px; }
.answers dt { font-weight: 600; margin-top: 10px; }
.answers dd { margin: 2px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.answers dd.details { color: var(--muted); }
.doc-status { padding-left: 18px; margin: 0; }
.doc-status li { margin-bottom: 4px; overflow-wrap: anywhere; }

/* Admin tabs */
#admin .admin-forms:has(> :only-child) { grid-template-columns: minmax(0, 560px); }
#admin-panel > .error { margin-bottom: 20px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.section-head h2 { margin: 0; }

/* Proposals and billing */
.small { font-size: .85rem; }
.error-text { color: var(--error); font-weight: 500; margin: 8px 0 0; }
.error-text:empty { display: none; }
.pill.ok { color: var(--ok); background: var(--ok-bg); }
.letter-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .letter-layout { grid-template-columns: 1fr; } }
.letter h3 { margin: 20px 0 6px; }
.letter p, .letter li { line-height: 1.55; }
.sign-box { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 8px; }
.sign-box h3 { margin: 12px 0 0; }
.sign-box label { font-weight: 600; }
.sign-box input[type="text"], .sign-box textarea, .sign-box select { margin-bottom: 0; }
.sign-box .check { margin-bottom: 0; }
.signers { list-style: none; margin: 0; padding: 0; font-size: .9rem; color: var(--muted); }
.signers li::before { content: "○ "; }
.signers li.done { color: var(--ok); }
.signers li.done::before { content: "✓ "; }
.check.consent { align-items: flex-start; font-weight: 400; font-size: .9rem; line-height: 1.45; }
.check.consent input { flex: none; margin-top: 2px; }
.decline { display: flex; flex-direction: column; gap: 8px; }
/* Proposal page: the services lead, then the letter and its terms. */
.proposal .eyebrow { margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--head); }
.proposal h2 { margin: 4px 0 2px; }
.proposal h3.proposal-section { margin: 28px 0 10px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 1.05rem; color: var(--head); }
.services { display: flex; flex-direction: column; gap: 10px; }
.service { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 16px; }
.service-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.service-name { font-weight: 700; color: var(--text); }
.service-price { font-weight: 700; white-space: nowrap; }
.service-details { margin: 6px 0 0; color: var(--muted); font-size: .92rem; white-space: pre-line; }
.totals { margin-top: 12px; padding: 12px 16px; border-radius: var(--radius-lg); background: var(--bg); }
.total-row { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; color: var(--muted); }
.total-row.due { font-weight: 700; color: var(--text); font-size: 1.05rem; }
.totals p { margin: 6px 0 0; }
.letter-text h3 { font-size: 1rem; }
.terms-list { padding-left: 20px; }
.terms-list li { margin: 4px 0; }
.terms-list a { font-weight: 600; }
/* Admin: a fee or service row with its "what's included" text below. */
.fee-line { margin-bottom: 12px; }
.fee-line .edit-row { margin-bottom: 4px; }
textarea.line-details { width: 100%; margin: 0; font-size: .9rem; }
.terms-picker .terms-option { gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.terms-picker .terms-option > label.check { margin: 0; }
.invoices li { display: block; }
.inv-main { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.inv-main > div:first-child { flex: 1 1 200px; }
.inv-main .amount { font-weight: 700; font-variant-numeric: tabular-nums; }
.files .actions { display: flex; align-items: center; gap: 12px; flex: none; }
.pay { margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); max-width: 420px; }
.pay select { margin-bottom: 8px; }
.quote dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; margin: 8px 0 12px; font-variant-numeric: tabular-nums; }
.quote dt, .quote dd { margin: 0; }
.quote dd { text-align: right; }
.quote .total { font-weight: 700; border-top: 1px solid var(--line); padding-top: 4px; }
.row-buttons { display: flex; align-items: center; gap: 16px; }
.method .consent-slot:not(:empty) { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.add-method { margin-top: 16px; }
.add-method .check { margin-bottom: 8px; }

/* Admin: engagement letters, invoices and billing */
input[type="number"], input[type="date"] {
  font: inherit; color: var(--text); background: var(--field); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 12px; margin: 0 0 16px; width: 100%;
}
.field { margin-bottom: 4px; }
.field > p.small { margin: -10px 0 16px; }
.card.detail { margin-top: 20px; }
.detail h3 { margin: 20px 0 8px; }
.detail ul { margin: 0 0 8px; padding-left: 18px; }
textarea.letter-body { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9rem; line-height: 1.5; }
.edit-row input.money { flex: 0 1 120px; text-align: right; }
.edit-row input.qty, input.qty { flex: 0 1 90px; max-width: 140px; }
.edit-row .check { margin: 0; flex: none; white-space: nowrap; }
.edit-row .check input { flex: none; }
.edit-row > button { flex: none; }
form.edit-row > button[type="submit"] { width: auto; }
.lines .row-buttons select { width: auto; margin: 0; }
.row.filters { margin-bottom: 12px; }
.row.filters > div { flex: 0 1 240px; }
.row-buttons { flex-wrap: wrap; margin-top: 16px; }
table.invoices th.num, table.invoices td.num, .detail td.num, .detail th.num { text-align: right; font-variant-numeric: tabular-nums; }
.detail tr.total td { font-weight: 700; }
table.letters td:last-child, table.invoices td:last-child { white-space: nowrap; }
.record-payment > div { flex: 1 1 140px; }
.record-payment .check { margin-bottom: 8px; }
.record-payment button { width: 100%; }
.pill.open, .pill.processing { color: var(--brass); }
.pill.paid, .pill.signed { color: var(--ok); background: var(--ok-bg); }
.pill.declined { color: var(--error); }
.pill.void, .pill.refunded, .pill.partially_refunded, .pill.draft { color: var(--muted); }

/* Meeting booking: the public page (meet.schutzadvisory.com) and the portal's Meetings section (booking.js) */
.grid.meetings { grid-template-columns: 1fr; }
.booking-intro { margin-top: -8px; }
.booking h2 { font-size: 1.1rem; }
.booking h3 { font-size: 1rem; margin-bottom: 12px; }
.booking-types { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.booking-type {
  width: 100%; display: grid; grid-template-columns: 1fr; gap: 4px; justify-content: stretch; justify-items: start;
  text-align: left; padding: 16px 18px;
  background: var(--field); color: var(--text); border: 1px solid var(--line); font-weight: 500;
}
.booking-type:hover { filter: none; border-color: var(--head); }
.booking-type .name { font-weight: 700; color: var(--head); }
.booking-type .meta { font-size: .85rem; color: var(--muted); font-weight: 600; }
.booking-type .desc { font-size: .95rem; font-weight: 500; }
.booking-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 16px; }
.booking-head h2 { margin-bottom: 2px; }
.booking-head p { margin: 0; font-size: .9rem; }
.booking-pick { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 28px; align-items: start; }
.booking-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.booking-nav button { min-height: 36px; padding: 4px 12px; font-size: 1.1rem; }
.booking-month { font-weight: 700; color: var(--head); }
.booking-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.booking-cal .dow { text-align: center; font-size: .75rem; font-weight: 700; color: var(--muted); padding: 4px 0; }
.booking-cal .day {
  min-height: 40px; padding: 0; border-radius: 50%; aspect-ratio: 1; background: var(--field); color: var(--head);
  border: 1px solid var(--accent); font-weight: 700;
}
.booking-cal .day:disabled { background: none; border-color: transparent; color: var(--muted); font-weight: 500; opacity: .6; }
.booking-cal .day[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); }
.booking-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.booking-slots button { min-height: 40px; padding: 8px; }
.booking-slots button:hover { filter: none; border-color: var(--head); }
.booking-zone { font-size: .85rem; margin: 16px 0 0; }
.booking-chosen { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 12px 14px; margin-bottom: 20px; background: var(--field); border: 1px solid var(--line); border-radius: var(--radius); }
.booking-chosen strong { color: var(--head); }
.booking-form input[type="tel"] {
  width: 100%; font: inherit; color: var(--text);
  background: var(--field); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 12px; margin: 0 0 16px;
}
.booking-form .help { font-size: .9rem; color: var(--muted); margin: -2px 0 6px; }
.booking-form .req { color: var(--error); }
.booking-form textarea { min-height: 0; }
/* Admin: Booking tab */
.booking-item { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.booking-item:first-of-type { border-top: 0; padding-top: 0; }
.edit-row input.page-key { flex: 0 1 180px; }
.booking-offers { border: 0; padding: 0; margin: 0 0 8px; }
.booking-offers legend { font-weight: 600; color: var(--head); margin-bottom: 8px; }
.booking-offers .check { margin-bottom: 8px; font-weight: 500; }
.booking-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.booking-done .booking-when { font-size: 1.2rem; font-weight: 700; color: var(--head); }
.booking-done a { overflow-wrap: anywhere; }
@media (max-width: 760px) { .booking-pick { grid-template-columns: 1fr; } }
