/* The corporate organiser portal. It sits on top of /booking.css (same tokens,
   same buttons, same fields) and only adds what a page with tabs, a quote table
   and a printable invoice needs. Mobile first, like everything else here. */

.wrap { max-width: 820px; }

.btn {
  background: var(--brand); color: #fff; border: 0; border-radius: var(--radius);
  padding: 12px 18px; font: inherit; font-weight: 600; cursor: pointer;
}
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.quiet { background: var(--card); color: var(--ink); border: 1px solid var(--line); }

.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin: 0 0 16px;
}

.tabs { display: flex; gap: 6px; overflow-x: auto; margin: 16px 0 14px; padding-bottom: 4px; }
.tab {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; font: inherit; cursor: pointer; white-space: nowrap; color: var(--ink);
}
.tab[aria-current="true"] { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

table.lines { width: 100%; border-collapse: collapse; font-size: 15px; }
table.lines th { text-align: left; color: var(--muted); font-weight: 600; font-size: 13px; padding: 6px 8px 6px 0; }
table.lines td { padding: 7px 8px 7px 0; border-top: 1px solid var(--line); vertical-align: top; }
table.lines td.num, table.lines th.num { text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; }
table.lines tr.total td { font-weight: 700; border-top: 2px solid var(--line); }

.pill {
  display: inline-block; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 700;
  background: #ecebf0; color: var(--muted);
}
.pill.ok { background: #e3f5ea; color: var(--ok); }
.pill.warn { background: #fdeee4; color: var(--warn); }

.guests { width: 100%; border-collapse: collapse; font-size: 15px; }
.guests th { text-align: left; color: var(--muted); font-weight: 600; font-size: 13px; padding: 6px 8px 6px 0; }
.guests td { padding: 5px 8px 5px 0; border-top: 1px solid var(--line); }
.guests input { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }

.stack { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gallery figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery img, .gallery video { width: 100%; display: block; aspect-ratio: 4 / 3; object-fit: cover; background: #ecebf0; }
.gallery figcaption { padding: 6px 8px; font-size: 13px; color: var(--muted); }

.board { width: 100%; border-collapse: collapse; font-size: 15px; }
.board th { text-align: left; color: var(--muted); font-weight: 600; font-size: 13px; padding: 6px 8px 6px 0; }
.board td { padding: 7px 8px 7px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.board td.name { font-variant-numeric: normal; font-weight: 600; }

.invoice .head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 0 0 18px; }
.invoice .head h2 { margin: 0 0 4px; }

/* Print: the invoice only, on white, with nothing a printer cannot use. */
@media print {
  body { background: #fff; }
  .topbar, .foot, .noprint, .tabs { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  .panel { border: 0; padding: 0; }
}

@media (min-width: 640px) {
  .stack { gap: 14px; }
}
