/* Reservas MLO 2026 — paleta LPJ Sports (fundo escuro, cobre) */
:root {
  --bg: #0e1115;
  --surface: #161a20;
  --surface-2: #1e242c;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f3efe9;
  --muted: #a29b92;
  --copper: #c8895a;
  --copper-2: #e2ad80;
  --copper-ink: #1a1009;
  --ok: #3fa66b;
  --ok-ink: #9be3b9;
  --full: #c45050;
  --full-ink: #f3aaaa;
  --match: #3f72d6;
  --match-ink: #b3c9ff;
  --closed: #5d636c;
  --radius: 12px;
  --gap: 12px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Montserrat, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: var(--copper-2); }
:focus-visible { outline: 2px solid var(--copper-2); outline-offset: 2px; }

.wrap { max-width: 720px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.wrap--wide { max-width: 980px; }
.main { padding: 12px 16px 24px; display: grid; gap: var(--gap); flex: 1; align-content: start; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.center { text-align: center; }
.pad { padding: 40px 16px; }
.h1 { margin: 8px 0 0; font-size: 22px; text-align: center; }
.h3 { margin: 0 0 8px; font-size: 15px; letter-spacing: 0.02em; }

/* Cabeçalho */
.top { padding: 10px 16px 6px; border-bottom: 1px solid var(--line); background: var(--bg); }
.top__bar { display: flex; align-items: center; gap: 10px; }
.top__logo { width: 64px; height: auto; display: block; }
.top__ev { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
.top__ev strong { font-size: 14px; letter-spacing: 0.02em; }
.top__ev span { font-size: 12px; color: var(--muted); }
.top__who { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; flex-wrap: wrap; }
.top__name { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button { background: none; border: 0; padding: 6px 10px; font-size: 12px; font-weight: 700; color: var(--muted); min-height: 32px; }
.lang button.on { background: var(--copper); color: var(--copper-ink); }

/* Fotografia */
.hero { position: relative; height: 120px; overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; display: block; }
.hero__txt { position: absolute; inset: auto 0 0 0; padding: 26px 16px 10px; background: linear-gradient(to top, rgba(14, 17, 21, 0.92), rgba(14, 17, 21, 0)); }
.hero h1 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: 0.02em; }

/* Cartões e chips */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; font-weight: 600; }
.chip--profile { border-color: rgba(200, 137, 90, 0.5); color: var(--copper-2); }
.chip--center { justify-self: center; margin: 0; }
.chip--on { background: rgba(63, 166, 107, 0.18); border-color: var(--ok); color: var(--ok-ink); }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; border-radius: 999px; background: var(--copper); color: var(--copper-ink); font-size: 11px; }

/* Entrada */
.login { display: grid; gap: 10px; }
.login label { font-weight: 700; }
.login input { font-size: 22px; letter-spacing: 0.25em; text-align: center; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); text-transform: uppercase; }

/* Botões */
.btn { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 700; font-size: 14px; }
.btn--main { background: var(--copper); border-color: var(--copper); color: var(--copper-ink); }
.btn--danger { border-color: rgba(196, 80, 80, 0.6); color: var(--full-ink); }
.btn--small { min-height: 36px; padding: 0 12px; font-size: 12.5px; }
.btn:disabled { opacity: 0.45; }
.link { background: none; border: 0; padding: 4px; color: var(--copper-2); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row--tight { gap: 6px; }
.row--between { justify-content: space-between; }
.row .btn { flex: 1 1 auto; }
.row--tight .btn { flex: 0 0 auto; }

/* Separadores */
.tabs { display: flex; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.tabs button { flex: 1; border: 0; background: none; padding: 9px 8px; border-radius: 999px; font-weight: 700; font-size: 13.5px; color: var(--muted); min-height: 40px; }
.tabs button.on { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px rgba(200, 137, 90, 0.5); }

/* Dias */
.days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { position: relative; flex: 0 0 auto; display: grid; justify-items: center; min-width: 50px; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.day__wd { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.day__d { font-size: 17px; font-weight: 800; }
.day.on { border-color: var(--copper); background: rgba(200, 137, 90, 0.14); }
.dot { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--closed); }
.dot--on { background: var(--ok); }

.status { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; font-size: 13px; color: var(--muted); }
.status strong { color: var(--text); }
.status .warn { color: var(--copper-2); }

/* Legenda */
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--muted); }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg--note { flex-basis: 100%; }
.lg i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1px solid; }
.lg--open i { background: rgba(63, 166, 107, 0.25); border-color: var(--ok); }
.lg--first i { background: rgba(200, 137, 90, 0.18); border: 1px dashed var(--copper); }
.lg--full i { background: rgba(196, 80, 80, 0.22); border-color: var(--full); }
.lg--match i { background: rgba(63, 114, 214, 0.3); border-color: var(--match); }
.lg--closed i { background: repeating-linear-gradient(45deg, #2a2f36 0 3px, #1b1f25 3px 6px); border-color: #3a4048; }
.lg--mine i { background: var(--copper); border-color: var(--copper); }

/* Grelha */
.grid { display: grid; gap: 4px; }
.grid__row { display: grid; grid-template-columns: 46px repeat(var(--cols), minmax(0, 1fr)); gap: 4px; }
.grid__row--head { position: sticky; top: 0; z-index: 2; background: var(--bg); padding: 4px 0; }
.grid__time { display: grid; align-items: center; font-size: 12.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.grid__court { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.gc { min-height: 46px; border-radius: 8px; border: 1px solid; padding: 3px 2px; display: grid; align-content: center; justify-items: center; gap: 1px; text-align: center; line-height: 1.15; }
.gc__l { font-size: 11.5px; font-weight: 700; }
.gc__s { font-size: 10.5px; opacity: 0.9; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc--open { background: rgba(63, 166, 107, 0.16); border-color: rgba(63, 166, 107, 0.7); color: var(--ok-ink); }
.gc--first { background: rgba(200, 137, 90, 0.12); border: 1px dashed var(--copper); color: var(--copper-2); }
.gc--full { background: rgba(196, 80, 80, 0.14); border-color: rgba(196, 80, 80, 0.55); color: var(--full-ink); }
.gc--match { background: rgba(63, 114, 214, 0.2); border-color: rgba(63, 114, 214, 0.7); color: var(--match-ink); }
.gc--closed { background: repeating-linear-gradient(45deg, #20252c 0 5px, #181c22 5px 10px); border-color: #2c3239; color: #7b828b; }
.gc--mine { background: var(--copper); border-color: var(--copper); color: var(--copper-ink); }
.gc--past { opacity: 0.35; }
.gc:not(:disabled):active { transform: scale(0.97); }

/* As minhas reservas */
.mine__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.mine__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mine__list li { display: grid; gap: 2px; padding: 10px; border-radius: 10px; background: var(--surface-2); border-left: 3px solid var(--copper); }
.mine__when { font-weight: 700; }

/* Avisos */
.notice { margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; }
.notice--err { background: rgba(196, 80, 80, 0.14); border: 1px solid rgba(196, 80, 80, 0.5); color: var(--full-ink); }
.notice--info { background: rgba(200, 137, 90, 0.12); border: 1px solid rgba(200, 137, 90, 0.45); color: var(--copper-2); }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ok); color: #06150d; font-weight: 700; padding: 10px 18px; border-radius: 999px; z-index: 30; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4); }

/* Janela de baixo */
.sheet { position: fixed; inset: 0; z-index: 20; display: grid; align-items: end; }
.sheet__bg { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); }
.sheet__box { position: relative; background: var(--surface); border-top: 1px solid var(--line); border-radius: 16px 16px 0 0; max-height: 88vh; overflow: auto; padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); width: 100%; max-width: 720px; margin: 0 auto; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.sheet__head h2 { margin: 0; font-size: 17px; }
.sheet__body { display: grid; gap: 12px; }
.sheet__what { margin: 0; }
.x { background: var(--surface-2); border: 1px solid var(--line); border-radius: 50%; width: 36px; height: 36px; font-size: 22px; line-height: 1; }
@media (min-width: 760px) { .sheet { align-items: center; } .sheet__box { border-radius: 16px; border: 1px solid var(--line); max-width: 560px; } }

/* Formulários */
.field { display: grid; gap: 5px; font-size: 13px; }
.field > span { color: var(--muted); font-weight: 600; }
.field select, .field input, textarea, .search, .plist input { width: 100%; min-height: 44px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); font-size: 15px; }
.field--inline { display: inline-grid; min-width: 120px; }
textarea { min-height: 90px; resize: vertical; }
.seg { border: 0; padding: 0; margin: 0; display: flex; gap: 8px; }
.seg legend { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 5px; padding: 0; }
.seg button { flex: 1; min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 700; }
.seg button.on { background: var(--copper); color: var(--copper-ink); border-color: var(--copper); }
.seg button:disabled { opacity: 0.4; }

/* Staff */
.daystatus { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.daystatus p { margin: 4px 0 0; }
.daystatus--on { border-color: rgba(63, 166, 107, 0.5); }
.tools { display: grid; gap: 10px; }
.tools summary { font-weight: 700; cursor: pointer; }
.tools[open] summary { margin-bottom: 4px; }
.tools__row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; }
.tools__lab { font-size: 13px; color: var(--muted); font-weight: 600; width: 100%; }
.tools__copy { border-top: 1px solid var(--line); padding-top: 10px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { min-height: 38px; min-width: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 700; font-size: 13px; }
.pill.on { background: var(--copper); border-color: var(--copper); color: var(--copper-ink); }
.pill--open.on { background: var(--ok); border-color: var(--ok); color: #06150d; }
.pill--match.on { background: var(--match); border-color: var(--match); color: #fff; }
.pill--closed.on, .pill--remove.on { background: #5d636c; border-color: #5d636c; color: #fff; }
.blist, .plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bline { display: grid; gap: 8px; padding: 10px; border-radius: 10px; background: var(--surface-2); }
.bline > div:first-child { display: grid; gap: 2px; }
.edit { display: grid; gap: 10px; background: var(--surface-2); }
.plist li { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.plist li.off { opacity: 0.55; }
.plist__name { text-align: left; color: var(--text); text-decoration: none; font-weight: 700; padding: 0; }
.plist__code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; letter-spacing: 0.12em; color: var(--copper-2); }
.plist li > .row { grid-column: 1 / -1; }

/* Rodapé */
.foot { padding: 16px; text-align: center; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); letter-spacing: 0.04em; }
.foot a { color: var(--copper-2); font-weight: 700; text-decoration: none; }
.foot .foot__staff { display: block; width: fit-content; margin: 10px auto 0; font-size: 11px; font-weight: 400; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; opacity: 0.8; }

@media (max-width: 360px) {
  .main { padding-inline: 10px; }
  .grid__row { grid-template-columns: 40px repeat(var(--cols), minmax(0, 1fr)); gap: 3px; }
  .gc__l { font-size: 10.5px; }
}

@media print {
  body { background: #fff; color: #000; }
  body * { visibility: hidden; }
  .print-area, .print-area * { visibility: visible; color: #000 !important; background: #fff !important; }
  .print-area { position: absolute; inset: 0 auto auto 0; width: 100%; border: 0; }
  .no-print { display: none !important; }
  .plist li { break-inside: avoid; border-bottom: 1px solid #ccc; border-radius: 0; }
}

/* Shuttle */
.sh-info__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.sh-info__name { display: block; font-size: 16px; margin-top: 2px; }
.sh-info__call { display: inline-flex; align-items: center; text-decoration: none; }
.sh-info__note { margin: 10px 0 0; font-size: 13.5px; white-space: pre-line; }
.sh-trip { grid-template-columns: 54px 1fr; column-gap: 10px; align-items: baseline; }
.sh-trip__time { font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.sh-trip__route { font-weight: 600; }
.sh-trip__note, .sh-trip__acts { grid-column: 2; }
.sh-trip__acts { margin-top: 6px; }
.sh-trip--past { opacity: 0.5; }
.sh-trip--next { border-left-color: var(--ok); box-shadow: inset 0 0 0 1px rgba(63, 166, 107, 0.45); }

.mine__list li.sh-trip--tap { display: block; padding: 0; }
.sh-trip__btn { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 54px 1fr auto; column-gap: 10px; align-items: baseline; padding: 10px; cursor: pointer; border-radius: 10px; }
.sh-trip__btn:disabled { cursor: default; }
.sh-trip__btn:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
.sh-trip__btn .sh-trip__note { grid-column: 2 / -1; }
.sh-trip:not(.sh-trip--tap) { grid-template-columns: 54px 1fr auto; }
.sh-trip:not(.sh-trip--tap) .sh-trip__note, .sh-trip:not(.sh-trip--tap) .sh-trip__acts, .sh-pass { grid-column: 2 / -1; }
.sh-seat { justify-self: end; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(63, 166, 107, 0.18); color: var(--ok-ink); white-space: nowrap; }
.sh-seat--full { background: rgba(196, 80, 80, 0.18); color: var(--full-ink); }
.sh-seat--mine { background: var(--copper); color: var(--copper-ink); }
.sh-trip--mine { border-left-color: var(--copper); }
.sh-info__rule { margin: 8px 0 0; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14.5px; }
.check input { width: 20px; height: 20px; accent-color: var(--copper); }
.sh-pass { margin-top: 6px; font-size: 13px; }
.sh-pass summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.sh-pass__list { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 4px; }
.mine__list .sh-pass__list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: none; border-left: 0; padding: 3px 0; border-radius: 0; }
.sh-pass__add { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sh-pass__add select { flex: 1 1 160px; min-height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); padding: 4px 8px; }

.sh-ask { width: 100%; }
.sh-st--pending { background: rgba(200, 137, 90, 0.18); color: var(--copper-2); }
.sh-st--accepted { background: rgba(63, 166, 107, 0.18); color: var(--ok-ink); }
.sh-st--declined { background: rgba(196, 80, 80, 0.18); color: var(--full-ink); }
.sh-req--declined { opacity: 0.75; }
.sh-reqs--on { border-color: rgba(200, 137, 90, 0.6); }
.sh-req__reply { flex: 1 1 100%; min-height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); padding: 4px 8px; }
.sh-req .field--inline { min-width: 90px; }
.sh-day-btn { margin-bottom: 10px; }
.mine__cancel { display: grid; gap: 6px; margin-top: 6px; }
.mine__cancel.row { display: flex; }
