/* Same fonts and formats as HQ's ShortLets admin, in dark blue and yellow. */
:root {
  --blue: #0D2B52;        /* dark blue: top bar, titles, primary buttons */
  --blue-2: #1A4078;      /* hover */
  --yellow: #F5B700;      /* accent: brand, active tab, focus, main call to action */
  --yellow-soft: #FFF6D6;
  --tint: #EEF2F8;        /* table heads, light panels */
  --line: #C9D6EA;        /* input and table borders */
  --bg: #F0F3F8;
  --ink: #1a1a1a;
  --muted: #666;
  --red: #c62828;
  --green: #2e7d32;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', sans-serif; background: var(--bg); color: var(--ink); min-height: 100vh; line-height: 1.5; }
a { color: var(--blue); }
p { margin-bottom: .6rem; }
ul, ol { margin: 0 0 .6rem 1.2rem; }

/* top bar, as HQ */
.topbar { background: var(--blue); color: #fff; padding: 1rem 2rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,.2); position: sticky; top: 0; z-index: 100; }
.topbar-brand { color: #fff; text-decoration: none; font-size: 1.2rem; font-weight: 700; }
.topbar-brand em { color: var(--yellow); font-style: normal; }
.topbar-sub { display: block; font-size: .8rem; font-weight: 400; color: rgba(255,255,255,.75); }
.topbar-nav { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.topbar-nav a { color: rgba(255,255,255,.75); font-size: .85rem; text-decoration: none; padding: .3rem 0; border-bottom: 2px solid transparent; transition: color .2s; }
.topbar-nav a:hover, .topbar-nav a.active { color: #fff; border-bottom-color: var(--yellow); }
.logout-btn { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.8); border-radius: 6px; padding: .3rem .75rem; font-size: .8rem; cursor: pointer; font-family: inherit; }
.logout-btn:hover { background: rgba(255,255,255,.2); color: #fff; }
@media (max-width: 640px) { .topbar { padding: .8rem 16px; position: static; } }

.container { max-width: 1100px; margin: 2rem auto; padding: 0 1.5rem; }
body.guest .container { max-width: 560px; }
@media (max-width: 640px) { .container { margin: 1rem auto; padding: 0 16px; } }
h1 { font-size: 1.5rem; font-weight: 700; color: var(--blue); margin-bottom: .3rem; line-height: 1.25; }
h2 { font-size: 1.05rem; font-weight: 700; color: var(--blue); margin-bottom: .7rem; }
h3 { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 1.1rem 0 .4rem; }
.page-sub, .muted { color: var(--muted); }
.page-sub { font-size: .9rem; margin-bottom: 1.25rem; }
.small { font-size: .8rem; }
.mono { font-family: Consolas, ui-monospace, monospace; word-break: break-all; }

/* cards, as HQ's white panels */
.card { background: #fff; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.08); padding: 1.1rem 1.25rem; margin-bottom: 1.25rem; }
.card.narrow { max-width: 420px; margin: 2rem auto; }
.card.paid { border-left: 4px solid var(--green); }
details.card > summary { cursor: pointer; color: var(--blue); }
details.card[open] > summary { margin-bottom: .8rem; }

/* fields: small uppercase labels above the input, as HQ */
label { display: flex; flex-direction: column; gap: .25rem; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; margin-bottom: .8rem; }
label.check { flex-direction: row; align-items: center; gap: .5rem; text-transform: none; letter-spacing: 0; font-size: .88rem; color: var(--ink); font-weight: 400; }
input, select, textarea { padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 6px; font-size: .88rem; background: #fff; font-family: inherit; color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 400; width: 100%; }
label.check input { width: auto; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--yellow); outline-offset: -1px; }
body.guest input, body.guest select { font-size: 1rem; padding: .6rem .7rem; }   /* bigger on phones */
td input { padding: .35rem .5rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
@media (max-width: 640px) { .row2, .grid2 { grid-template-columns: 1fr; } }
fieldset { border: 1px dashed var(--line); border-radius: 6px; padding: .75rem .9rem 0; margin-bottom: .9rem; }
legend { font-weight: 700; color: var(--blue); padding: 0 .4rem; font-size: .85rem; }

/* buttons, as HQ */
.btn { display: inline-block; padding: .45rem .9rem; border: none; border-radius: 6px; font-size: .82rem; font-weight: 600; cursor: pointer; font-family: inherit; transition: background .15s; background: var(--blue); color: #fff; text-decoration: none; }
.btn:hover { background: var(--blue-2); }
.btn.cta { background: var(--yellow); color: var(--blue); }
.btn.cta:hover { background: #E0A800; }
body.guest .btn { font-size: .95rem; padding: .65rem 1.2rem; }
.btn.ghost { background: #e0e0e0; color: #333; }
.btn.ghost:hover { background: #bdbdbd; }
.btn.small { padding: .3rem .7rem; font-size: .78rem; }
form.inline { display: inline; }

.notice { padding: .5rem .8rem; font-size: .85rem; border-radius: 6px; margin-bottom: .8rem; }
.notice.ok { background: #e8f5e9; color: #1b5e20; }
.notice.err { background: #ffebee; color: var(--red); }

/* key/value lists */
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; font-size: .9rem; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; }

/* guest amount */
.amount { font-size: 2.4rem; font-weight: 700; color: var(--blue); line-height: 1.1; }
.amount-bar { border-left: 4px solid var(--yellow); padding-left: .8rem; margin-bottom: .6rem; }
.calc { color: var(--muted); font-size: .9rem; }
details.explain { margin-top: .6rem; background: var(--tint); border-radius: 6px; padding: .6rem .8rem; font-size: .9rem; }
details.explain summary { cursor: pointer; font-weight: 600; color: var(--blue); }
details.explain[open] summary { margin-bottom: .4rem; }
.foot { max-width: 560px; margin: 0 auto 2rem; padding: 0 16px; font-size: .82rem; }

/* toolbar + tabs */
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.tabs a { padding: .3rem .8rem; border-radius: 6px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.08); text-decoration: none; font-size: .82rem; color: var(--muted); font-weight: 600; }
.tabs a.on { background: var(--blue); color: #fff; box-shadow: inset 0 -3px 0 var(--yellow); }

/* tables, as HQ */
.tablewrap { background: #fff; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.08); overflow-x: auto; margin-bottom: 1.25rem; }
.card .tablewrap { box-shadow: none; border-radius: 0; margin-bottom: 0; }
table.list { width: 100%; border-collapse: collapse; font-size: .84rem; }
table.list thead th { background: var(--tint); color: var(--blue); font-weight: 600; padding: .6rem .65rem; text-align: left; border-bottom: 2px solid var(--line); white-space: nowrap; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; }
table.list tbody td { padding: .55rem .65rem; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
table.list tbody tr:hover { background: #fafbfd; }
table.list .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.cx td { color: #999; }
tr.cx td a { color: #999; }

/* badges, as HQ */
.tag { display: inline-block; padding: .1rem .5rem; border-radius: 10px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.tag.green { background: #e8f5e9; color: #1b5e20; }
.tag.amber { background: var(--yellow-soft); color: #8d6e00; }
.tag.red { background: #ffebee; color: var(--red); }
.tag.grey { background: #f0f0f0; color: #777; }
.tag.blue { background: #e3f2fd; color: #1565c0; }

.qr svg { width: 200px; height: 200px; }
ul.events { list-style: none; margin: 0; font-size: .82rem; }
ul.events li { padding: .25rem 0; border-bottom: 1px solid #f0f0f0; }

/* upload result counters, as HQ's summary numbers */
.stats { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.stat { background: #fff; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.08); padding: .6rem 1rem; font-size: .8rem; color: var(--muted); min-width: 110px; }
.stat .num { display: block; font-size: 1.3rem; font-weight: 700; color: var(--blue); }
.stat.warn { border-left: 4px solid var(--red); }
.stat.warn .num { color: var(--red); }

.notice.preview { background: var(--yellow-soft); color: #6b5200; border-left: 4px solid var(--yellow); font-weight: 600; }
.notice.note { background: #fff; color: var(--blue); border-left: 4px solid var(--yellow); box-shadow: 0 1px 4px rgba(0,0,0,.08); font-size: .92rem; padding: .7rem .9rem; }
