/* Barokasir dashboard styles. Original work for this project (see ATTRIBUTION.md). */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #1d2330;
  --muted: #5d6677;
  --line: #dde1e8;
  --accent: #1f6f5c;
  --ok: #1f7a3d;
  --bad: #b3261e;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151b;
    --surface: #1b2029;
    --text: #e7eaf0;
    --muted: #a0a8b8;
    --line: #2c3340;
    --accent: #5cc3a6;
    --ok: #6bd18f;
    --bad: #ff8a80;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
.shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--line); padding: 16px; }
.brand { font-weight: 700; font-size: 1.25rem; color: var(--accent); margin: 0 0 16px; }
.nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--text); text-decoration: none; }
.nav a:hover, .nav a.active { background: var(--bg); }
.main { padding: 24px; max-width: 1100px; min-width: 0; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tagline { color: var(--muted); margin: 4px 0 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-top: 20px; }
.card h2 { margin: 0 0 12px; font-size: 1.05rem; }
.ok { color: var(--ok); }
.bad { color: var(--bad); }
.muted { color: var(--muted); }
select, button { font: inherit; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); }
button { cursor: pointer; }
@media (max-width: 720px) {
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .side { border-right: none; border-bottom: 1px solid var(--line); min-width: 0; padding-bottom: 8px; }
  .nav { grid-auto-flow: column; overflow-x: auto; }
  .main { padding: 16px; }
}
.boot { padding: 24px; }
.tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.top h1 { margin: 0; }
input { font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); width: 100%; }
.field { display: grid; gap: 4px; margin: 0 0 12px; }
.primary { background: var(--accent); border-color: var(--accent); color: var(--surface); width: 100%; margin-bottom: 12px; }
button:disabled { opacity: 0.6; cursor: default; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card { width: min(380px, 100%); margin: 0; }
.login-card h1 { font-size: 1.3rem; margin: 16px 0; }
.login-card .brand { margin: 0; }
.tabs { display: flex; gap: 6px; margin-top: 20px; flex-wrap: wrap; }
.tabs button.active { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row input[type="search"], .row input.grow { flex: 1 1 220px; width: auto; }
.row input.short { flex: 0 1 12em; width: auto; }
.check { display: inline-flex; gap: 6px; align-items: center; }
.check input { width: auto; }
.table-wrap { overflow-x: auto; margin-top: 12px; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.archived td { color: var(--muted); }
.pager { margin-top: 12px; justify-content: flex-end; }
.form-grid .field { max-width: 420px; }
.form-grid select { width: 100%; max-width: 420px; }
.primary.narrow { width: auto; margin-bottom: 0; }
.form-grid .check { margin-bottom: 12px; }
.report-head { justify-content: space-between; align-items: flex-start; }
.report-head h2 { margin: 0 0 4px; }
tr.total td { font-weight: 700; border-top: 2px solid var(--line); }
.report-form { align-items: flex-end; }
.report-form label { display: flex; flex-direction: column; gap: 4px; }
.report-form input, .report-form select { width: auto; }
.report-form input[type="search"] { flex: none; width: 16em; }
.report-form label.check { flex-direction: row; align-items: center; padding-bottom: 8px; }
.nowrap { white-space: nowrap; }
td.summary { max-width: 360px; }
td.summary code { display: block; font-size: 12px; color: var(--muted); white-space: normal; overflow-wrap: anywhere; }
button.link { border: none; background: none; padding: 0; color: var(--accent); text-decoration: underline; }
tr.picked td { background: var(--bg); }
.flag { color: var(--bad); }
.standing { color: var(--muted); font-size: 0.85rem; font-weight: normal; }
.standing.bad { color: var(--bad); }
input.limit { width: 8em; }
.small { font-size: 0.85rem; }
h3.sub { font-size: 1rem; margin: 16px 0 8px; }
ul.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sub-form { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 4px; }
.sub-form .field { max-width: 420px; margin-top: 12px; }
.primary.danger { background: var(--bad); border-color: var(--bad); }
input.qty { width: 7em; }
.row.spread { justify-content: space-between; }
fieldset.scope { border: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.pair-code code { font-size: 2rem; letter-spacing: 0.2em; }
button.danger { color: var(--bad); border-color: var(--bad); }
td.nowrap > button + button { margin-left: 8px; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 12px; }
fieldset.perm-group { border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; margin: 0; }
fieldset.perm-group legend { font-weight: 600; padding: 0 4px; }
fieldset.perm-group .check { margin: 2px 0; }
input.seats { width: 6em; }
