/* TeamTotals: on top of Roundly's app.css. Football green instead of Roundly blue. */
:root { --blue: #1f7a45; --blue-dark: #14532d; --blue-light: #e7f5ec; }
.auth-body { background: linear-gradient(180deg, #14532d 0, #1f7a45 320px, var(--bg, #f3f6f9) 320px); }
.brand img { background: none; padding: 0; }

/* Number tiles on the home page */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.tile .n { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.tile .l { color: var(--muted); font-size: .85rem; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .cols2 { grid-template-columns: 1fr; } }
.card h2 { padding: 14px 16px 0; }
.list { list-style: none; margin: 0; padding: 4px 0; }
.list li { display: flex; gap: 10px; align-items: center; padding: 9px 16px; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list li .grow { flex: 1; min-width: 0; }
.list a { text-decoration: none; color: inherit; }
.list a:hover .nm { color: var(--blue); text-decoration: underline; }

/* The register */
.reg { width: 100%; }
.reg td { padding: 7px 10px; }
.reg tr.here { background: var(--blue-light); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.seg button { border: 0; border-radius: 0; padding: 7px 11px; font-size: .86rem; font-weight: 600; background: none; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--blue); color: #fff; }
.seg button.on.none { background: #e3e8ee; color: var(--ink); }
.seg button.on.coach { background: #6b4fa0; }
.seg button.on.free { background: #7a8794; }
.paybox { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; white-space: nowrap; }
.paybox input { width: 18px; height: 18px; }
.reg-foot { position: sticky; top: 52px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; z-index: 5; }
.reg-foot .grow { flex: 1; }
@media (max-width: 700px) {
  .reg .hide-sm { display: none; }
  .seg button { padding: 8px 9px; }
}

/* Session list */
.sess-row td:first-child { white-space: nowrap; }
.tag.planned { background: #eef2f6; color: var(--muted); }
.tag.done { background: var(--green-light); color: var(--green); }
.tag.cancelled { background: var(--red-light); color: var(--red); }
.tag.exempt { background: #efe9f8; color: #6b4fa0; }
.tag.dd { background: #e8f0f9; color: #1d5a99; }
.month { background: var(--bg); font-weight: 700; color: var(--blue-dark); }
.month td { padding: 12px 12px 6px; border-bottom: 0; }

/* Player account */
.acct td.amt { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.acct td.in { color: var(--green); }
.reminder { white-space: pre-wrap; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px; font-size: .9rem; max-height: 260px; overflow: auto; }
.warn-list { max-height: 220px; overflow: auto; font-size: .88rem; margin: 6px 0; padding-left: 18px; }
.diff { color: var(--red); font-weight: 700; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.reg select { width: auto; padding: 4px 6px; font-size: .82rem; margin-left: 4px; }
/* Phones: one player per block, buttons full width under the name */
@media (max-width: 700px) {
  .reg thead { display: none; }
  .reg tr { display: grid; grid-template-columns: 1fr; padding: 8px 12px; border-bottom: 1px solid var(--line); }
  .reg td { border: 0; padding: 3px 0; }
  .reg td.hide-sm { display: none; }
  .reg .seg { display: flex; width: 100%; }
  .reg .seg button { flex: 1; padding: 9px 2px; font-size: .8rem; }
  .reg td:nth-child(3):empty, .reg td:nth-child(3):has(> span.muted:empty) { display: none; }
}

/* Calendar (like Roundly's planner) */
.cal-week { margin-bottom: 16px; }
.cal .week-head { display: flex; gap: 14px; align-items: baseline; margin: 0 0 6px; font-size: .9rem; color: var(--muted); }
.cal .week-head b { color: var(--blue-dark); font-size: 1rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-day { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); min-height: 110px; padding: 6px; display: flex; flex-direction: column; gap: 5px; }
.cal-day.past { background: #fafbfc; }
.cal-day.today { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-light); }
.cal-day.over { background: var(--blue-light); border-style: dashed; border-color: var(--blue); }
.cal-dname { display: flex; align-items: center; justify-content: space-between; font-size: .82rem; color: var(--muted); }
.cal-day.today .cal-dname { color: var(--blue); font-weight: 700; }
.cal-add { opacity: 0; font-size: 1.1rem; line-height: 1; padding: 0 6px; }
.cal-day:hover .cal-add, .cal-day.empty .cal-add { opacity: .7; }
.scard { display: block; text-decoration: none; color: var(--ink); border-radius: 8px; padding: 6px 8px; border-left: 4px solid var(--blue); background: var(--blue-light); font-size: .82rem; line-height: 1.3; }
.scard:hover { filter: brightness(.97); }
.scard[draggable=true] { cursor: grab; }
.scard.match { border-left-color: #b9770e; background: #fef5e7; }
.scard.other { border-left-color: #6b4fa0; background: #f3eefa; }
.scard.cancelled { opacity: .6; border-left-color: var(--red); background: #f6f2f1; }
.scard.cancelled .stop b { text-decoration: line-through; }
.scard.planned { background: #fff; border: 1px dashed var(--line); border-left: 4px solid; border-left-color: inherit; }
.scard.match.planned { border-left-color: #b9770e; }
.scard.training.planned { border-left-color: var(--blue); }
.stop { display: flex; justify-content: space-between; gap: 4px; }
.stop .ha { font-size: .7rem; font-weight: 800; background: rgba(0,0,0,.08); border-radius: 4px; padding: 0 5px; }
.sopp { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.ssub { font-size: .74rem; color: var(--muted); }
/* Phones: one day per row, empty days shrink to a thin line */
@media (max-width: 700px) {
  .cal-grid { grid-template-columns: 1fr !important; gap: 4px; }
  .cal-day { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .cal-day .cal-dname { flex: 0 0 104px; white-space: nowrap; }
  .cal-day .scard { flex: 1 1 200px; }
  .cal-day.empty { padding: 3px 6px; opacity: .75; }
  .cal-add { opacity: .7; margin-left: 4px; }
}
.cal.busy { opacity: .45; pointer-events: none; transition: opacity .15s; }
/* Names on calendar cards (like Roundly's job lists) */
.who { list-style: none; margin: 4px 0 2px; padding: 0; font-size: .74rem; line-height: 1.35; }
.who li { display: flex; gap: 4px; justify-content: space-between; border-top: 1px solid rgba(0,0,0,.06); padding: 1px 0; }
.who .wn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.who i { font-style: normal; font-size: .66rem; color: var(--muted); }
.who .wp { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; }

/* The admin page has only two links: always show them (no Menu button) */
@media (max-width: 1099px) { .topnav.simple .inner > a, .topnav.simple .inner > .spacer { display: block; } .topnav.simple .inner > .spacer { flex: 1; } }

/* Badges and logos */
.crest { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; object-fit: contain; flex: none; vertical-align: middle; }
img.crest { background: #fff; border: 1px solid var(--line); padding: 2px; }
.crest.none { color: #fff; font-weight: 800; letter-spacing: -.02em; }
.fixture { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; }
.fixture i { font-style: normal; font-size: .72rem; font-weight: 800; color: var(--muted); }
.brand .crest { border: 0; }
.pic-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 6px 0 14px; }
.team-row td { vertical-align: middle; }
.cardmark { font-size: .8em; margin-left: 2px; }
.quick-fines { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.sfix { margin-bottom: 3px; }

/* Connections and payments */
.conn { margin-bottom: 16px; }
.conn-head { display: flex; align-items: center; gap: 10px; }
.conn-head h2 { padding: 0 !important; margin: 0; }
.steps-list { padding-left: 20px; }
.steps-list li { margin-bottom: 6px; }
tr.gc-done td { opacity: .55; }
.pick { display: inline-flex; gap: 6px; align-items: center; }
.pick select { max-width: 220px; }

/* Register: who's there at the top */
tr.reg-sec td { background: #f6f8fa; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted, #667); padding: 8px 12px; }
tr.reg-sec.there td { background: #e7f4ec; color: #14532d; }
.reg .bal-sm { display: none; }
@media (max-width: 700px) { .reg .bal-sm { display: block; } }
.reg .pmore { width: 30px; height: 30px; padding: 0; border-radius: 50%; font-size: 1rem; font-weight: 800; margin-right: 8px; color: #14532d; border: 1.5px solid #9cc9ad; vertical-align: middle; }
.reg .pmore.on { background: #14532d; color: #fff; border-color: #14532d; }
tr.reg-detail td { background: transparent; padding: 4px 10px 14px; }
.reg-card { border: 2px solid #14532d; border-radius: 12px; background: #fff; box-shadow: 0 4px 14px rgba(20,83,45,.12); overflow: hidden; }
.reg-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 14px; background: #e7f4ec; border-bottom: 1px solid #b6dcc4; }
.reg-card-head .grow { flex: 1; }
.reg-card-fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; padding: 12px 14px; }
.reg-card-fields label { display: flex; flex-direction: column; gap: 4px; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #667); flex: 1 1 170px; }
.reg-card-fields label.narrow { flex: 0 1 80px; }
.reg-card-fields input { font: inherit; font-size: .92rem; text-transform: none; letter-spacing: 0; color: var(--ink, #1d2733); padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; width: 100%; }
@media (max-width: 700px) { .reg tr.reg-detail { display: block; padding: 0 0 10px; } .reg-card-fields label { flex-basis: 100%; } }
/* Player photos */
.face { border-radius: 50%; object-fit: cover; flex: none; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; vertical-align: middle; background: #eef2f5; }
.pwho { display: inline-flex; align-items: center; gap: 10px; }
.face-edit { position: relative; cursor: pointer; display: inline-flex; flex-direction: column; align-items: center; gap: 4px; font-size: .74rem; font-weight: 700; color: var(--muted, #667); }
.face-edit:hover .face { box-shadow: 0 0 0 3px #b6dcc4; }
/* League registration */
.league-tog { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; padding: 3px 10px 3px 6px; border-radius: 999px; background: #fdf3e1; color: #8a5a00; cursor: pointer; white-space: nowrap; }
.league-tog.on { background: #e3f3e8; color: #14532d; }
.league-tog input { width: 16px; height: 16px; margin: 0; }
/* Birthdays on the calendar */
.bday { display: block; font-size: .78rem; font-weight: 700; background: #fff0f6; color: #a3195b; border: 1px solid #f6c6dc; border-radius: 8px; padding: 3px 7px; margin: 0 0 5px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bday i { font-style: normal; font-weight: 600; opacity: .75; }
/* Officials */
.off-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.off-card { padding: 14px 16px; }
.off-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.off-head b { font-size: 1.05rem; }
.off-role { font-size: .82rem; font-weight: 700; color: #14532d; text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
.off-contact { margin-top: 6px; }
.off-quals { list-style: none; margin: 12px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.off-quals li { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; border-left-width: 4px; }
.off-quals li.ok { border-left-color: #1f8a4c; } .off-quals li.soon { border-left-color: #d99a00; } .off-quals li.expired { border-left-color: #c62828; background: #fff5f5; } .off-quals li.none { border-left-color: #b7c0ca; }
.off-quals .grow { flex: 1; min-width: 0; }
.off-alert { margin-bottom: 14px; border-left: 4px solid #d99a00; } .off-alert p { margin: 4px 0; }
.off-quals li { flex-wrap: wrap; row-gap: 4px; }
.off-quals .grow { flex: 1 1 100%; }
.off-quals li > .tag { margin-right: auto; }
.bday { white-space: normal; line-height: 1.25; }
/* Expenses and reports */
.period { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.quick-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.rep-break { margin-bottom: 16px; }
.rep-break h3 { margin: 0 0 10px; font-size: 1rem; }
.rep-break ul { list-style: none; margin: 0; padding: 0; }
.rep-break li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.rep-break li .grow { flex: 1; }
.rep-break li i { flex: 0 0 auto; height: 4px; border-radius: 2px; order: 3; min-width: 2px; }
.rep-break li i.in { background: #2e9e5b; } .rep-break li i.out { background: #c0392b; }
.rep-break li::after { content: ""; flex-basis: 100%; order: 2; }
.money-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 16px 10px; }
.money-strip div { display: flex; flex-direction: column; }
.money-strip b { font-size: 1.25rem; }
.money-strip span { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
tfoot th { border-top: 2px solid var(--line); }
.print-only { display: none; }
@media print { .print-only { display: block; } .rep-months { display: block !important; } .toolbar, .page-head .actions { display: none !important; } }
