/* teams.wrestleflow.com page audit fixes — 2026-11-07.
   Linked last in every page's <head>, so these win over page styles.
   Each rule names the page(s) it was found on. Audit: ~/wf-teams-audit-20261107/. */

/* iPhone zooms the page into any field smaller than 16px (forgot_password,
   calendar, diet_*, weight_plan, upload_weight_plan, scorebook_stats_import, seasons). */
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=submit]):not([type=button]):not([type=hidden]),
select,
textarea {
    font-size: max(16px, 1em) !important;
}

/* Season name pill: teal text on 20% teal over a white card (attendance, attendance_history,
   manage_parents, diet_dashboard, calendar). */
.season-badge,
.calendar-title > span {
    color: #0f766e !important;
    background: #ccfbf1 !important;
}

/* account_settings: title and Back link sit on the navy page, not on a card. */
.settings-container > .nav-header h1 { color: #f8fafc !important; }
.settings-container > .nav-header a { color: #5eead4 !important; }
/* account_settings: Upload Photo ran past the right edge of its card. */
.settings-section form .btn { max-width: 100%; box-sizing: border-box; white-space: normal; }

/* Amber buttons/links with white text (parent "Complete Forms", bus_tracking "Set Home School"). */
a[style*="background: #f59e0b"],
button[style*="background: #f59e0b"] { color: #1f2937 !important; }
/* account_settings "★ Primary Contact" amber on white. */
span[style*="color: #f59e0b"] { color: #b45309 !important; }

/* bus_tracking empty state: grey on the navy page. */
body > .container > .empty-state p { color: #cbd5e1 !important; }

/* diet_*, weight_plan, upload_weight_plan: red Back link on light grey. */
.user-info a { color: #b91c1c !important; }
/* diet_guide: 10px light-grey disclosure. */
.affiliate-disclosure { color: #6b7280 !important; font-size: 12px !important; }
/* diet_foods: 10–11px badges and Hide toggles. */
.food-table .badge.moderate, .action-btns .toggle { color: #92400e !important; }
.food-table .badge.unlimited { color: #166534 !important; }

/* pricing (in-app block): white text on a white card. */
.native-access h1, .native-access p { color: #1f2937 !important; text-shadow: none !important; }

/* scorebook pages "+ New Tournament", wrestler_management "Mark All Present": white on light green. */
.btn-row .btn-success,
button[style*="background: var(--success)"] { background: #047857 !important; color: #fff !important; }

/* seasons / season_setup: white on light-teal gradient ("Create Season", "Configure"). */
.section > form > .btn-primary,
.season-actions .btn-primary { color: #0b1d3a !important; }
/* seasons: "+ Add" row overflowed the Fold cover screen and the button wrapped. */
form > input[name="type_name"], form > input[name="level_name"] { min-width: 0; }
form > input[name="type_name"] + .btn-small, form > input[name="level_name"] + .btn-small { flex: 0 0 auto; white-space: nowrap; }

/* user_management: greyed tab, amber Remove, green "Parent:". */
button.btn[style*="cursor: not-allowed"] { color: #4b5563 !important; }
.user-card .btn-warning { color: #1f2937 !important; }
strong[style*="color: #10b981"] { color: #047857 !important; }
/* user_management: two big buttons side by side wrapped to 3–4 lines on narrow screens. */
@media (max-width: 480px) {
    div[style*="grid-template-columns: 1fr 1fr"]:has(> button.btn) { grid-template-columns: 1fr !important; }
}

/* wrestler_management: "Not set" amber on cream; faded guardian line. */
em[style*="color:#d97706"] { color: #92400e !important; }
.wrestler-parents span[style*="opacity"] { opacity: 1 !important; }

/* seasons: the "Season types" / "Levels" panels sat in a fixed two-column grid that
   could not shrink, pushing "+ Add" off the screen on phones and the Fold cover. */
.section > div[style*="grid-template-columns: 1fr 1fr; gap: 20px"] { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important; }
.section > div[style*="grid-template-columns: 1fr 1fr; gap: 20px"] > div { min-width: 0; }

/* diet_foods: Edit / Hide / Del wrapped onto two lines (the table scrolls sideways instead). */
.action-btns button { white-space: nowrap; }

/* user_management, wrestler_management: light green / grey text on white or pale green. */
.linked-wrestlers { color: #047857 !important; }
.wrestler-parents { color: #065f46 !important; }
em[style="color:#9ca3af;"] { color: #6b7280 !important; }
.attendance-btn:not(.remove):not(.absent-btn) { background: #047857 !important; }

/* diet_foods (Fold cover): Edit / Hide / Del ran past the screen edge; let them stack. */
.action-btns { flex-wrap: wrap; }
/* wrestler_management: Delete was squeezed to one letter per line once the inputs beside it grew to 16px. */
.wrestler-actions form { flex: 0 0 auto; }
.wrestler-actions .btn-danger { white-space: nowrap; }
.wrestler-header { flex-wrap: wrap; gap: 8px; }
.wrestler-header > div[style*="display: flex; gap: 8px"] { flex-shrink: 0; }
.wrestler-header .btn { white-space: nowrap; }
