/* Production sheet, calendar, board and new forms. */
/* Inputs not covered by the base styles */
input[type=number], input[type=time], input[type=url] {   font: 500 16px var(--sans); color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; min-height: 46px; width: 100%; }
.seat input { width: 64px; min-height: 40px; text-align: center; padding: 6px; }

/* Collapsible form sections: closed sections keep long forms short. */
.fold { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.fold > summary { list-style: none; text-align: left; align-items: flex-start; cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 14px 44px 14px 16px; position: relative; min-height: 44px; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary span { font-weight: 700; }
.fold > summary small { color: var(--muted); font-size: 13px; }
.fold > summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--brass-text); transition: transform .2s ease; }
.fold[open] > summary::after { transform: translateY(-50%) rotate(45deg); }
.fold-body { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.card-fold { margin-bottom: 16px; }
.danger-fold > summary::after { color: var(--danger); }

/* Calendar rows in the form */
.ev-head, .ev-row { display: grid; grid-template-columns: 1.2fr 1.3fr .9fr .9fr 2fr; gap: 6px; }
.ev-head { font-size: 12px; color: var(--muted); font-weight: 600; }
.ev-rows { display: flex; flex-direction: column; gap: 6px; }
.ev-row select, .ev-row input { min-height: 40px; padding: 6px 8px; font-size: 14px; }
@media (max-width: 640px) {
  .ev-head { display: none; }
  .ev-row { grid-template-columns: 1fr 1fr; padding: 8px; border: 1px solid var(--line); border-radius: 10px; }
  .ev-row input[name^="ev_p_"] { grid-column: 1 / -1; }
}
.three { display: grid; gap: 6px; grid-template-columns: 1fr 1.2fr 1fr; margin-bottom: 6px; }
@media (max-width: 640px) { .three { grid-template-columns: 1fr; padding-bottom: 8px; border-bottom: 1px solid var(--line); } }

/* Sheet */
.sheet h3 { font-size: 16px; margin: 20px 0 8px; }
.money { background: var(--ink); color: #fff; border-radius: 14px; padding: 16px; margin: 0 0 12px; }
.money-main { font-family: var(--serif); font-size: 32px; margin: 0; color: var(--brass); }
.money .muted { color: var(--soft-on-dark); margin: 2px 0 0; }
.refunds { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }
.cal { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.cal li { display: grid; grid-template-columns: 7.5em 7em 1fr; gap: 4px 10px; padding: 10px 12px; border-top: 1px solid #ECEDF2; align-items: baseline; font-size: 14px; }
.cal li:first-child { border-top: 0; }
.cal-day { font-weight: 700; }
.cal-time { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.cal-kind { color: var(--muted); }
.cal-place { grid-column: 2 / -1; font-size: 13px; }
.cal-concert { background: #FBF6E8; }
.cal-concert .cal-kind { color: var(--brass-text); font-weight: 700; }
.cal-dress .cal-kind { color: var(--ink); font-weight: 600; }
@media (max-width: 480px) { .cal li { grid-template-columns: 1fr 1fr; } .cal-kind { grid-column: 1 / -1; } .cal-place { grid-column: 1 / -1; } }
.map { margin: 14px 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--line); aspect-ratio: 16 / 9; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.box { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 12px 0; background: var(--surface); }
.box h3 { margin: 0 0 6px; }
.box .row { margin-top: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.tags span { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.more { font-weight: 600; color: var(--brass-text); }
.chip-urgent { background: #FBE3DC; color: #8C2F13; align-items: center; gap: 6px; }
.chip-urgent::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #C2410C; animation: pulseDotDark 1.4s ease-out infinite; }
.sticky-actions { position: sticky; bottom: 0; background: var(--bg); padding: 10px 0; z-index: 2; box-shadow: 0 -8px 16px -12px rgba(20,26,51,.25); }
.sticky-actions .btn-line { background: var(--surface); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; width: 100%; }
.backups .three:last-child { margin-bottom: 0; }


/* ---------- Legal, reports, map consent ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check-legal { align-items: flex-start; font-size: 14px; line-height: 1.45; }
.check-legal a { color: var(--brass-text); }
.legal h2 { font-family: var(--serif); font-weight: 500; font-size: 22px; margin: 28px 0 6px; }
.legal p { margin: 0 0 12px; }
.report-link { text-align: right; font-size: 13px; margin-top: 20px; }
.report-link a { color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
a.map-link { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: linear-gradient(135deg, #EEF0F6, #F8F4E8); text-decoration: none; margin: 12px 0; aspect-ratio: auto; height: auto; }
a.map-link:hover { border-color: var(--brass); }
.map-pin { width: 32px; height: 32px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--ink); box-shadow: inset 0 0 0 10px var(--ink), inset 0 0 0 16px var(--brass); }
.map-big iframe { height: 60vh; min-height: 320px; }
.map-consent p:first-child { margin-top: 0; }

/* ---------- Admin ---------- */
.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.admin-tabs a { text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: 14px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); }
.admin-tabs a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.admin-search { margin: 0 0 14px; gap: 8px; }
.admin-search .grow { flex: 1; min-width: 180px; }
.admin table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin th, .admin td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.admin tr.muted td { opacity: .55; }
.admin .table-box { overflow-x: auto; }
.admin .facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px 16px; margin: 0 0 12px; }
.admin .facts dt { font-size: 12px; color: var(--muted); }
.admin .facts dd { margin: 0; font-weight: 500; word-break: break-word; }
.admin .card .form { margin-top: 12px; }
.chip-danger { background: #F8E3DC; color: var(--danger); }
.admin .checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 14px; }
.admin h1 .chip { font-family: var(--sans); font-size: 13px; vertical-align: middle; }

/* ---------- Header: log in + sign up ---------- */
.nav .nav-login { color: #fff; }
.nav .nav-signup { margin-left: 4px; }
@media (max-width: 560px) { .nav .nav-wide { display: none; } }

/* ---------- Log in / sign up page ---------- */
.auth-switch { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin: 0 0 18px; }
.auth-switch a { padding: 8px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.auth-switch a[aria-current="page"] { background: var(--ink); color: #fff; }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 6px; }
.role-card { display: grid; gap: 2px; padding: 14px; border-radius: 14px; background: var(--surface); border: 2px solid var(--line); text-decoration: none; transition: border-color .2s, transform .2s; }
.role-card span { font-size: 26px; }
.role-card small { color: var(--muted); }
.role-card:hover { border-color: var(--brass); transform: translateY(-2px); }
.role-card.on { border-color: var(--brass); background: #FFFBEF; }
.center { text-align: center; }

/* ---------- How to use it (CSS-only tabs) ---------- */
.guide .gtab-in { position: absolute; opacity: 0; pointer-events: none; }
.gtabs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); margin: 6px 0 20px; }
.gtab { cursor: pointer; padding: 10px 18px; border-radius: 12px; font-weight: 600; color: var(--ink-2); transition: background .2s, color .2s; user-select: none; }
.gtab:hover { background: var(--bg); }
.gin-o:checked ~ .gtabs .gt-o, .gin-m:checked ~ .gtabs .gt-m { background: var(--ink); color: #fff; }
.gin-o:focus-visible ~ .gtabs .gt-o, .gin-m:focus-visible ~ .gtabs .gt-m { outline: 3px solid var(--brass); outline-offset: 2px; }
.gpanel { display: none; }
.gin-o:checked ~ .gp-o, .gin-m:checked ~ .gp-m { display: block; animation: fadeUp .45s ease both; }
.gsteps { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; counter-reset: none; }
.gstep { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: start; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.gin-o:checked ~ .gp-o .gstep, .gin-m:checked ~ .gp-m .gstep { animation: fadeUp .5s ease both; }
.gstep:nth-child(2) { animation-delay: .05s !important; } .gstep:nth-child(3) { animation-delay: .1s !important; } .gstep:nth-child(4) { animation-delay: .15s !important; }
.gstep:nth-child(5) { animation-delay: .2s !important; } .gstep:nth-child(6) { animation-delay: .25s !important; } .gstep:nth-child(7) { animation-delay: .3s !important; } .gstep:nth-child(8) { animation-delay: .35s !important; }
.gnum { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: linear-gradient(135deg, #FFF6DD, #F1EEE4); border: 1px solid #EBDDB3; }
.gstep h3 { margin: 2px 0 4px; font-size: 16px; }
.gidx { color: var(--brass-text); }
.gstep p { margin: 0; color: var(--ink-2); font-size: 15px; }
.gtips { border-left: 4px solid var(--brass); }
.gtips h3 { margin: 0 0 6px; }
.gtips ul { margin: 0; padding-left: 20px; }
.gtips li { margin: 4px 0; }
/* Logged out on a phone: logo, "Log in" and "Sign up" on one line. */
@media (max-width: 420px) {
  .top-inner:has(.nav-signup) { flex-wrap: nowrap; gap: 6px; }
  .top-inner:has(.nav-signup) .brand { font-size: 19px; gap: 6px; }
  .top-inner:has(.nav-signup) .brand svg { width: 24px; height: 24px; }
  .top-inner:has(.nav-signup) .nav { flex-wrap: nowrap; }
  .top-inner:has(.nav-signup) .nav a { padding: 8px 6px; font-size: 14px; white-space: nowrap; }
  .nav .btn.nav-signup { padding: 8px 12px; }
}
