/*! CPRT Futsal · Área Família — © 2026 Ricardo Ferreira. Software proprietário licenciado. */
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url(../fonts/barlow-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url(../fonts/barlow-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url(../fonts/barlow-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url(../fonts/barlow-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(../fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url(../fonts/barlow-condensed-latin-800-normal.woff2) format("woff2"); }

:root {
  --brand: #234C98; --brand-700: #16336B; --navy: #0E2A5C; --sky: #EAF1FB; --sky-2: #D8E5F8; --gold: #E9B949;
  --bg: #F3F6FB; --surface: #FFFFFF; --surface-2: #F7F9FD; --surface-3: #EEF3FA;
  --border: #E1E8F3; --border-strong: #CBD6E8; --text: #0D1B33; --text-2: #43516B; --muted: #5E6C84;
  --ok: #15803D; --ok-soft: #E3F6EA; --warn: #8A5A00; --warn-soft: #FDF1DE; --bad: #B91C1C; --bad-soft: #FDE7E7; --violet: #6D28D9; --violet-soft: #EEE7FD;
  --r: 16px; --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --display: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  --nav-h: 68px; --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid #3B82F6; outline-offset: 2px; border-radius: 8px; }

/* ----- shell ----- */
.f-shell { min-height: 100dvh; display: flex; flex-direction: column; }
.f-head { position: sticky; top: 0; z-index: 20; background: var(--navy); color: #fff; padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 14px; }
.f-head-in, .f-main-in, .f-nav-in { max-width: 720px; margin: 0 auto; width: 100%; }
.f-top { display: flex; align-items: center; gap: 10px; }
.f-top img { width: 28px; height: 37px; object-fit: contain; }
.f-top .grow { flex: 1; min-width: 0; }
.f-eyebrow { font-size: 11.5px; letter-spacing: .8px; text-transform: uppercase; color: #A9C3F5; font-weight: 600; }
.f-title { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: .3px; text-transform: uppercase; line-height: 1.1; }
.f-iconbtn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; position: relative; flex: none; }
.f-iconbtn .dot { position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); border: 2px solid var(--navy); }
.f-kids { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; }
.f-kids::-webkit-scrollbar { display: none; }
.f-kid { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 14px 4px 4px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 600; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.2); white-space: nowrap; }
.f-kid[aria-selected="true"] { background: #fff; color: var(--navy); border-color: #fff; }
.f-av { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; background: rgba(255,255,255,.16); color: #fff; overflow: hidden; flex: none; }
.f-av img { width: 100%; height: 100%; object-fit: cover; }
.f-kid[aria-selected="true"] .f-av { background: var(--brand); }

.f-main { flex: 1; padding: 16px 16px calc(var(--nav-h) + var(--safe-b) + 28px); }
.f-main-in { display: flex; flex-direction: column; gap: 14px; }
.f-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--border); padding: 6px 6px calc(8px + var(--safe-b)); }
.f-nav-in { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; }
.f-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; border-radius: 12px; color: var(--muted); font-size: 11.5px; font-weight: 600; text-decoration: none; position: relative; }
.f-nav a[aria-current="page"] { color: var(--brand); background: var(--sky); }
.f-nav .badge-dot { position: absolute; top: 6px; right: calc(50% - 18px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #D52B1E; color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-sm { width: 18px; height: 18px; }

/* ----- componentes ----- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 16px; box-shadow: 0 1px 2px rgba(13,27,51,.05); }
.card.tone-warn { border-color: var(--gold); background: #FFFBF0; }
.card.tone-sky { background: var(--sky); border-color: var(--sky-2); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-sm { display: flex; flex-direction: column; gap: 6px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.h2 { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: .3px; text-transform: uppercase; color: var(--navy); }
.lbl { font-size: 11.5px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.strong { font-weight: 700; }
.big { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; color: var(--navy); }
.sep { height: 1px; background: var(--border); }
.list-row { display: flex; align-items: center; gap: 12px; min-height: 50px; border-top: 1px solid var(--surface-3); }
.list-row:first-of-type { border-top: 0; }
.ico { width: 40px; height: 40px; border-radius: 12px; background: var(--sky); color: var(--brand); display: flex; align-items: center; justify-content: center; flex: none; }
.ico.warn { background: var(--warn-soft); color: #B45309; }

.chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--surface-3); color: var(--text-2); }
.chip.ok { background: var(--ok-soft); color: var(--ok); } .chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); } .chip.info { background: var(--sky); color: #1C3F82; } .chip.violet { background: var(--violet-soft); color: var(--violet); }

.btn { min-height: 44px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-weight: 600; font-size: 14.5px; padding: 0 16px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn:disabled { opacity: .55; cursor: default; }
.btn-p { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-p:hover:not(:disabled) { background: var(--brand-700); }
.btn-link { display: inline-flex; align-items: center; text-decoration: none; border: 0; background: none; color: var(--brand); font-weight: 600; min-height: 44px; padding: 0 4px; cursor: pointer; }
.btn-block { width: 100%; }
.btn.is-busy { pointer-events: none; opacity: .7; }

.bar { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--brand); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.bar.ok > i { background: #16A34A; }

/* convocatória */
.resp { min-height: 46px; border-radius: 11px; font-size: 13px; font-weight: 700; line-height: 1.15; padding: 4px 6px; cursor: pointer; background: #fff; color: var(--text); border: 1px solid var(--border-strong); }
.resp[aria-pressed="true"].yes { background: var(--ok-soft); color: var(--ok); border: 1.5px solid #16A34A; }
.resp[aria-pressed="true"].no { background: var(--bad-soft); color: var(--bad); border: 1.5px solid #DC2626; }
.resp[aria-pressed="true"].maybe { background: var(--warn-soft); color: var(--warn); border: 1.5px solid #D97706; }
.resp:disabled { cursor: default; opacity: .6; }

/* filtros e segmentos */
.pills { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pill { min-height: 38px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap; background: #fff; border: 1px solid var(--border-strong); }
.pill[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }

/* gráfico mensal */
.months { display: flex; gap: 10px; align-items: flex-end; height: 140px; }
.months > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.months .col { width: 28px; border-radius: 7px 7px 3px 3px; background: var(--brand); min-height: 3px; transition: height .6s cubic-bezier(.2,.8,.2,1); }
.months small { font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; }

/* formulários */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--text-2); }
.input, .field input, .field select, .field textarea { min-height: 46px; border: 1px solid var(--border-strong); border-radius: 12px; padding: 10px 12px; background: #fff; width: 100%; }
.field textarea { resize: vertical; min-height: 90px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14.5px; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); }
.alert { border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.4; }
.alert.warn { background: var(--warn-soft); color: var(--warn); } .alert.ok { background: var(--ok-soft); color: var(--ok); } .alert.info { background: var(--sky); color: #1C3F82; }

/* folha (modal) */
.scrim { position: fixed; inset: 0; background: rgba(8,26,61,.45); z-index: 40; opacity: 0; transition: opacity .2s; }
.scrim.open { opacity: 1; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; background: #fff; border-radius: 22px 22px 0 0; max-height: 90dvh; overflow-y: auto; padding: 10px 16px calc(20px + var(--safe-b)); transform: translateY(100%); transition: transform .28s cubic-bezier(.32,.72,0,1); max-width: 720px; margin: 0 auto; }
.sheet.open { transform: none; }
.sheet .grab { width: 40px; height: 5px; border-radius: 999px; background: var(--border-strong); margin: 0 auto 10px; }
.opt { min-height: 46px; border-radius: 12px; text-align: left; padding: 0 14px; font-size: 14.5px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid var(--border-strong); gap: 8px; }
.opt[aria-pressed="true"] { background: var(--sky); color: #1C3F82; border: 1.5px solid var(--brand); }

/* toast */
.toasts { position: fixed; left: 16px; right: 16px; bottom: calc(var(--nav-h) + var(--safe-b) + 16px); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { max-width: 560px; width: 100%; background: var(--navy); color: #fff; border-radius: 14px; padding: 13px 16px; font-size: 14px; font-weight: 600; box-shadow: 0 12px 30px -8px rgba(8,26,61,.45); display: flex; gap: 10px; align-items: center; animation: tin .25s ease-out; }
.toast.err { background: #7F1D1D; }
@keyframes tin { from { transform: translateY(10px); opacity: 0; } }

/* estados */
.empty { text-align: center; padding: 28px 16px; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.skel { border-radius: var(--r); background: linear-gradient(90deg, #E8EEF7 0%, #F3F6FB 50%, #E8EEF7 100%); background-size: 200% 100%; animation: sk 1.2s infinite linear; }
@keyframes sk { to { background-position: -200% 0; } }
.view-enter > * { animation: up .32s cubic-bezier(.2,.8,.2,1) both; }
.view-enter > *:nth-child(2) { animation-delay: .03s; } .view-enter > *:nth-child(3) { animation-delay: .06s; } .view-enter > *:nth-child(4) { animation-delay: .09s; }
@keyframes up { from { transform: translateY(6px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ----- páginas de entrada ----- */
.auth-body { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: var(--navy); background-image: radial-gradient(900px 500px at 80% -10%, rgba(35,76,152,.55) 0%, transparent 60%); }
.auth { width: 100%; max-width: 420px; background: #fff; border-radius: 24px; padding: 28px 22px 24px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); display: flex; flex-direction: column; gap: 16px; }
.auth-brand { display: flex; align-items: center; gap: 12px; }
.auth-brand img { width: 44px; height: 58px; object-fit: contain; }
.auth h1 { font-family: var(--display); font-weight: 800; font-size: 28px; text-transform: uppercase; color: var(--navy); line-height: 1.05; }
.auth-foot { text-align: center; font-size: 13px; color: #A9C3F5; margin-top: 18px; }
.auth-foot a { color: #fff; }
.auth-wrap { width: 100%; max-width: 420px; }

@media (min-width: 900px) {
  .f-main { padding-top: 24px; }
  .grid2.wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
