/* Coach Tools pages (INSIGHT/Coach_Tools*.aspx) - shared header on phones (2026-11-14).
   The header dropdowns (page picker, club, team, season, type, meet, session) were 32-34px tall with
   14-15.6px text: too small to tap, and iPhones zoom the page when a field under 16px gets focus. */
@media (max-width: 767px) {
    select[id^="MainContent_DD_"] {
        font-size: 16px !important;          /* the markup sets Font-Size inline (120-180%) */
        min-height: 44px;
        height: auto;
        padding-top: 8px;
        padding-bottom: 8px;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
    }

    /* The page picker stays the biggest control, just not oversized */
    #MainContent_DD_Panel_Selector {
        font-size: 18px !important;
        width: 100%;
        max-width: 100%;
    }

    /* Stacked header rows: a little air between the full-width controls */
    select[id^="MainContent_DD_"],
    .clubpick { margin-bottom: 4px; }

    /* ---- Event Order (By #) and Meet Event Order grids: one card per athlete ----
       The grid is athletes x events of position dropdowns; on a phone the 6 MAG columns overflowed and the
       dropdowns were 22px / 12px. Each row becomes a card: name (+ level) on top, events in a labelled grid. */
    .eo-grid,
    .eo-grid > tbody { display: block; width: 100%; }
    .eo-grid { margin-bottom: 80px !important; }   /* room to scroll the last card clear of the FreshDesk "?" bubble */
    .eo-grid > tbody > tr:first-child:has(th) { display: none; }          /* header row: labels move into the cells */
    .eo-grid > tbody > tr > th { display: none; }                         /* fallback for browsers without :has() */
    .eo-grid > tbody > tr {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px 8px;
        padding: 10px 8px;
        margin: 0 0 10px 0;
        border: 1px solid #ddd;
        border-radius: 10px;
        background: #fff !important;
    }
    .eo-grid > tbody > tr > td { display: block; border: 0 !important; padding: 0 !important; min-width: 0; }
    .eo-grid > tbody > tr > td.eo-name  { grid-column: 1 / -1; font-size: 17px; }
    .eo-grid > tbody > tr > td.eo-name span { font-size: 17px !important; }
    .eo-grid > tbody > tr > td.eo-level { grid-column: 1 / -1; margin-top: -4px; color: #666; }
    .eo-grid > tbody > tr > td.eo-level span { font-size: 14px !important; font-weight: 600 !important; }
    .eo-grid > tbody > tr > td.eo-event::before {
        content: attr(data-label);
        display: block;
        font-size: 13px;
        font-weight: 700;
        color: #555;
        margin-bottom: 2px;
    }
    .eo-grid > tbody > tr > td.eo-event select {
        width: 100%;
        min-height: 44px;
        font-size: 16px !important;
        padding: 6px 8px;
    }
    /* Empty-data row keeps its normal layout */
    .eo-grid > tbody > tr > td[colspan] { grid-column: 1 / -1; }

    /* Event Order: per-event Reset / Randomize buttons collapse */
    details.eo-more { margin: 4px 8px 8px; text-align: center; }
    details.eo-more > summary { cursor: pointer; font-weight: 700; padding: 10px; min-height: 44px; color: #333; }
}

/* Desktop: the per-event panel opens by default (script on the page); keep the summary low-key */
details.eo-more > summary { cursor: pointer; font-weight: 600; color: #555; }


/* =====================================================================================================
   Coach Tools look (2026-11-15) - same tokens as the house report cards (.sf-report-card in
   ScoreFlippers_2026.css): white cards, light border, soft shadow, purple eyebrow over a dark title.
   ===================================================================================================== */
.ct-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 14px rgba(15, 23, 42, .08);
    padding: 16px 16px 10px;
    margin: 8px 0 16px;
    text-align: left;
}
.ct-card-head { margin-bottom: 12px; }
.ct-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--sf-primary, #4a1d96);
}
.ct-title { margin: 2px 0 0; font-size: 20px; font-weight: 700; color: #1e293b; }
.ct-sub { margin: 2px 0 0; font-size: 13px; color: #64748b; }
.ct-notice { display: block; margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; font-weight: 600; }
.ct-notice-warn { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.ct-empty { padding: 18px 6px; text-align: center; color: #64748b; }
.ct-empty b { color: #1e293b; }

/* Person row: avatar, name + meta, action on the right */
.ct-person { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.ct-person-body { flex: 1 1 auto; min-width: 0; }
.ct-person-name { font-size: 16px; font-weight: 700; color: #1e293b; overflow-wrap: anywhere; line-height: 1.25; }
.ct-person-name.ct-missing { font-weight: 600; font-style: italic; color: #b91c1c; }
.ct-person-meta { font-size: 13px; color: #64748b; margin-top: 2px; }
.ct-person-meta .ct-dot { margin: 0 6px; color: #cbd5e1; }
.ct-chip {
    display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 999px;
    font-size: 12px; font-weight: 700; background: #fef2f2; color: #b91c1c;
}
.ct-chip-ok { background: #ecfdf5; color: #047857; }
.ct-person-action { flex: 0 0 auto; }

/* Avatar: real photo, or initials in brand purple (replaces the "PHOTO COMING SOON" placeholder) */
.ct-avatar {
    flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--sf-primary-light, #f4effc); color: var(--sf-primary, #4a1d96);
    font-weight: 700; font-size: 16px; letter-spacing: .02em; overflow: hidden;
}
.ct-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Buttons */
.ct-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 38px; padding: 6px 14px; border-radius: 999px;
    font-size: 14px !important; font-weight: 700; line-height: 1.1; white-space: nowrap;
    border: 1.5px solid transparent; text-decoration: none !important; cursor: pointer;
}
.ct-btn-remove { background: #fff !important; color: #b91c1c !important; border-color: #fca5a5 !important; }
.ct-btn-remove:hover { background: #fef2f2 !important; }
.ct-btn-add { background: var(--sf-primary, #4a1d96) !important; color: #fff !important; border-color: var(--sf-primary, #4a1d96) !important; }
.ct-btn-add:hover { background: var(--sf-primary-hover, #381573) !important; }

/* DevExpress Bootstrap grids used as plain lists inside a .ct-list wrapper */
.ct-list table { border: 0 !important; }
.ct-list td { border-left: 0 !important; border-right: 0 !important; padding: 10px 4px !important; background: #fff !important; }
.ct-list tr + tr td { border-top: 1px solid #eef2f7 !important; }
.ct-list .dxbs-gridview { border: 0 !important; box-shadow: none !important; }
.ct-list input[type="text"] { font-size: 16px !important; height: 40px; }
.ct-list .dxbs-search-panel, .ct-list .dxgvSearchPanel { padding: 0 0 8px !important; }

/* Plain list tables (dashboard teams / meets) */
.ct-table { width: 100%; border-collapse: collapse; }
.ct-table th {
    font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: #64748b; padding: 4px 6px 8px; border-bottom: 1px solid #e2e8f0; text-align: left;
}
.ct-table td { padding: 10px 6px; border-top: 1px solid #eef2f7; vertical-align: middle; }
.ct-table tr:first-child td { border-top: 0; }
.ct-table .ct-num { text-align: center; width: 72px; font-size: 18px; font-weight: 700; color: #1e293b; }
.ct-table th.ct-num { font-size: 11px; color: #64748b; }
.ct-table .ct-date { text-align: right; white-space: nowrap; color: #475569; font-weight: 600; }
.ct-link { color: var(--sf-primary, #4a1d96) !important; font-weight: 700; font-size: 16px; text-decoration: none !important; }
.ct-link:hover { text-decoration: underline !important; }
.ct-link svg, .ct-link i { width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; }
.ct-steps .ct-link { font-size: inherit; }
.ct-row + .ct-row { border-top: 1px solid #eef2f7; padding-top: 8px; margin-top: 8px; }
.ct-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.ct-btn-outline { background: #fff !important; color: var(--sf-primary, #4a1d96) !important; border-color: #d8ccf0 !important; }

/* Event Order action panel and ScoreCards print buttons */
.ct-actions { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px 8px; margin: 4px 0 14px; text-align: center; }
.ct-print-buttons { display: grid; gap: 8px; }
.ct-print-buttons .ct-btn { width: 100%; min-height: 44px; font-size: 16px !important; }
/* Bootstrap .row inside a padded .ct-card would poke out sideways */
.ct-card > .row { margin-left: 0; margin-right: 0; }

/* Dashboard bits */
.ct-stat { font-size: 18px; font-weight: 700; color: #1e293b; text-align: center; }
.ct-stat-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #64748b; }
.ct-steps { margin: 0; padding: 0; list-style: none; counter-reset: ct-step; }
.ct-steps li { position: relative; padding: 8px 0 8px 40px; border-top: 1px solid #eef2f7; color: #334155; }
.ct-steps li:first-child { border-top: 0; }
.ct-steps li::before {
    counter-increment: ct-step; content: counter(ct-step);
    position: absolute; left: 0; top: 8px; width: 28px; height: 28px; border-radius: 50%;
    background: var(--sf-primary-light, #f4effc); color: var(--sf-primary, #4a1d96);
    font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.ct-steps li.ct-optional::after { content: "optional"; margin-left: 6px; font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase; }

@media (max-width: 767px) {
    .ct-card { padding: 14px 12px 8px; border-radius: 12px; }
    .ct-btn { min-height: 44px; padding: 8px 16px; }
    .ct-title { font-size: 18px; }
}

/* ---- 2nd vault advisor (Coach_Tools_Vault.aspx, CHG-0655) ---- */
.cva { max-width: 760px; margin: 12px auto 0; padding: 0 16px; }
.cva-card { background: #fff; border-radius: 14px; padding: 18px 20px; margin: 12px auto; max-width: 760px;
            box-shadow: 0 1px 3px rgba(15, 23, 42, .12); color: #1e293b; }
.cva-title { margin: 0 0 4px; font-size: 22px; font-weight: 700; }
.cva-sub { margin: 0 0 14px; color: #475569; }
.cva-beta { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 8px; border-radius: 999px;
            background: #1e293b; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cva-fields { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.cva-field { display: flex; flex-direction: column; flex: 1 1 200px; margin: 0; font-weight: 600; font-size: 13px; color: #475569; }
.cva-field > span { margin-bottom: 4px; }
.cva-field .form-control { font-size: 16px; height: 44px; }
.cva-score { flex: 0 1 140px; }
.cva-btn { min-height: 44px; padding: 8px 22px; background: #1e293b; color: #fff; font-weight: 700; border-radius: 10px; }
.cva-btn:hover, .cva-btn:focus { background: #334155; color: #fff; }
.cva-msg { display: block; margin-top: 10px; color: #9a3412; font-weight: 600; }
.cva-who { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.cva-nums { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.cva-num { flex: 1 1 120px; background: #f1f5f9; border-radius: 10px; padding: 8px 12px; }
.cva-num span { display: block; font-size: 12px; color: #64748b; }
.cva-num strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.cva-band { font-size: 16px; }
.cva-big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 6px 0; }
.cva-pct { font-size: 44px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.cva-pctlbl { color: #475569; }
.cva-bar { height: 10px; background: #e2e8f0; border-radius: 5px; overflow: hidden; margin: 4px 0 12px; }
.cva-bar span { display: block; height: 100%; background: #2563eb; border-radius: 5px; }
.cva-facts { margin: 0 0 10px; padding-left: 20px; }
.cva-small { font-size: 12px; color: #64748b; margin: 0; }
.cva-note { font-size: 13px; color: #475569; background: #f8fafc; }
.cva-result { border-left: 6px solid #94a3b8; }
.cva-b1, .cva-b2 { border-left-color: #2563eb; }
.cva-b3 { border-left-color: #60a5fa; }
@media (max-width: 767px) {
    .cva { padding: 0 8px; }
    .cva-card { padding: 14px 12px; }
    .cva-score, .cva-btn { flex: 1 1 100%; }
    .cva-pct { font-size: 36px; }
}

/* =====================================================================================================
   Team Scorecards (Coach_Tools_ScoreCards.aspx) restyle, 2026-11-21. Everything is scoped to .sc-*
   wrappers on that page. Filters: one labelled card, screen order Season, Club, Team, Type (CSS order;
   the markup order stays Club, Team, Season, Type for the data binding). Event tabs: segmented pill bar.
   Line-up grid: each DevExpress row reads as a card (border-spacing), the editors stay as they are.
   ===================================================================================================== */
.sc-pagebar { background-color: var(--sf-primary, #4a1d96) !important; }
.sc-pagebar #MainContent_DD_Panel_Selector {
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a1d96' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px !important;
    -webkit-appearance: none; appearance: none;
    color: #1e1147 !important; border: 0 !important; border-radius: 999px !important;
    padding: 7px 44px 7px 22px !important; font-size: 20px !important; font-weight: 800; letter-spacing: .02em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25) !important; max-width: 100%; text-overflow: ellipsis;
}

/* Filter card */
.sc-filters {
    display: flex; align-items: center; gap: 16px;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 14px rgba(15, 23, 42, .08);
    padding: 12px 16px 14px; margin: 12px 0 4px;
}
.sc-logo { flex: 0 0 auto; }
.sc-logo table { width: auto !important; }
.sc-logo img { height: 52px; width: auto; display: block; }
.sc-grid {
    flex: 1 1 auto; min-width: 0; display: grid; gap: 10px 12px;
    grid-template-columns: minmax(130px, 1fr) minmax(0, 2fr) minmax(0, 1.5fr) minmax(150px, 1.2fr);
}
.sc-field { min-width: 0; text-align: left; }
.sc-f-season { order: 1; }
.sc-f-club   { order: 2; }
.sc-f-team   { order: 3; }
.sc-f-type   { order: 4; }
.sc-label {
    display: block; margin: 0 0 4px 2px; font-size: 11px; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase; color: #64748b; white-space: nowrap;
}
.sc-field select {
    -webkit-appearance: none; appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px !important;
    width: 100% !important; height: 42px; min-height: 42px; margin: 0 !important;
    padding: 6px 32px 6px 12px !important; font-size: 15px !important; font-weight: 600; line-height: 1.3;
    color: #1e293b !important; text-align: left; text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
    border: 1px solid #cbd5e1 !important; border-radius: 10px !important; box-shadow: none !important;
}
.sc-field select:hover { border-color: #94a3b8 !important; }
.sc-field select:focus { border-color: var(--sf-primary, #4a1d96) !important; outline: 3px solid rgba(74, 29, 150, .18); outline-offset: 0; }
.sc-field .clubpick { margin: 0; }
.sc-field .clubpick-input {
    height: 42px; min-height: 42px; border: 1px solid #cbd5e1; border-radius: 10px; font-size: 15px; font-weight: 600; color: #1e293b;
    padding-right: 34px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat right 10px center / 16px;
}
.sc-field .clubpick-input:focus { border-color: var(--sf-primary, #4a1d96); outline: 3px solid rgba(74, 29, 150, .18); }
@media (min-width: 1002px) {
    .sc-lineup { width: calc(58.33333% - 14px); margin-right: 14px; }   /* gap between the Step 1 and Step 2 cards */
}
/* Meet Event Order (Coach_Tools_OrderInMeet): 5 filters, Season / Club / Meet on row 1, Team / Session on row 2 */
.sc-grid-meet { grid-template-columns: minmax(130px, 1fr) minmax(0, 2fr) minmax(0, 2.2fr); }
.sc-grid-meet .sc-f-meet    { order: 3; }
.sc-grid-meet .sc-f-team    { order: 4; }
.sc-grid-meet .sc-f-session { order: 5; grid-column: span 2; }
.sc-hint { margin-left: 4px; font-weight: 600; letter-spacing: 0; text-transform: none; color: #94a3b8; }
@media (min-width: 768px) and (max-width: 1001px) {
    .sc-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .sc-grid-meet .sc-f-meet, .sc-grid-meet .sc-f-session { grid-column: 1 / -1; }
}
@media (max-width: 1001px) {
    /* below col-lg the site drops column padding to 2px: give the cards a gutter and keep the grid inside them */
    .sc-filters { margin-left: 6px; margin-right: 6px; }
    .sc-lineup, .sc-print, .sc-signin { margin-left: 8px !important; margin-right: 8px !important; padding-left: 12px !important; padding-right: 12px !important; }
    .sc-lineup .dxgvControl, .sc-lineup .dxgvTable { width: 100% !important; }
}

/* Step 1 head: title left, gymnastics-type pill right */
.sc-lineup-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px; }
.sc-lineup-head .ct-card-head { margin-bottom: 0; }
.sc-lineup .sc-lineup-head::before, .sc-lineup .sc-lineup-head::after { display: none !important; }   /* Bootstrap .row clearfix would become flex items */
.sc-lineup-type { display: block; }
.sc-lineup-type b { color: #334155; }
#MainContent_DD_ScoreCardsGymnasticsType.sc-hidden { display: none !important; }   /* CHG-0758: the filter Type drives Step 1 */
#MainContent_DD_ScoreCardsGymnasticsType {
    -webkit-appearance: none; appearance: none;
    background: var(--sf-primary, #4a1d96) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 14px !important;
    color: #fff !important; border: 0 !important; border-radius: 999px !important; box-shadow: none !important;
    padding: 7px 34px 7px 16px !important; font-size: 14px !important; font-weight: 700; height: auto;
}

/* Event tabs: segmented pill bar (AJAX TabContainer, xp theme images switched off) */
.sc-lineup .ajax__tab_header {
    display: flex; flex-wrap: wrap; gap: 4px; height: auto !important;
    background: #f1f5f9 !important; border: 0 !important; border-radius: 22px; padding: 4px; margin: 0 0 12px;
}
.sc-lineup .ajax__tab_header > .ajax__tab { flex: 1 1 auto; min-width: 0; margin: 0 !important; }
.sc-lineup .ajax__tab_header > .ajax__tab[style*="none"] { display: none !important; }
.sc-lineup .ajax__tab_outer,
.sc-lineup .ajax__tab_inner,
.sc-lineup .ajax__tab_tab {
    display: block !important; height: auto !important; margin: 0 !important; padding: 0 !important;
    background: none !important; border: 0 !important;
}
.sc-lineup .ajax__tab_tab {
    padding: 8px 12px !important; border-radius: 999px; text-align: center; white-space: nowrap;
    color: #334155 !important; cursor: pointer;
}
.sc-lineup .ajax__tab_tab span { font-size: 14px !important; font-weight: 700 !important; color: inherit; }
.sc-lineup .ajax__tab_tab .divTab { display: inline; padding: 0; margin: 0; background: none; border: 0; }
.sc-lineup .ajax__tab:not(.ajax__tab_active) .ajax__tab_tab:hover { background: #e2e8f0 !important; }
.sc-lineup .ajax__tab_active .ajax__tab_tab { background: var(--sf-primary, #4a1d96) !important; color: #fff !important; }
.sc-lineup .ajax__tab_active .ajax__tab_tab span { color: #fff !important; }
.sc-lineup .ajax__tab_body { border: 0 !important; padding: 0 !important; background: transparent !important; height: auto !important; }
.sc-lineup .ajax__tab_panel > h3 { display: none; }   /* the event name is already on the active tab */

/* Line-up grid: rows as cards */
.sc-lineup .dxgvControl,
.sc-lineup .dxgvControl > tbody > tr > td { border: 0 !important; background: transparent !important; padding: 0 !important; }
.sc-lineup .dxgvTable { border: 0 !important; background: transparent !important; border-collapse: separate !important; border-spacing: 0 6px !important; }
.sc-lineup .dxgvHeader {
    background: transparent !important; border: 0 !important; padding: 2px 10px 0 !important;
    color: #64748b !important; font-size: 11px !important; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.sc-lineup .dxgvDataRow > td.dxgv {
    border: 0 !important; border-top: 1px solid #e2e8f0 !important; border-bottom: 1px solid #e2e8f0 !important;
    padding: 9px 10px !important; font-size: 15px; color: #1e293b; vertical-align: middle;
}
.sc-lineup .dxgvDataRow > td.dxgv:first-child { border-left: 1px solid #e2e8f0 !important; border-radius: 10px 0 0 10px; }
.sc-lineup .dxgvDataRow > td.dxgv:last-child  { border-right: 1px solid #e2e8f0 !important; border-radius: 0 10px 10px 0; }
.sc-lineup .dxgvDataRow > td.dxgv:nth-child(2) { font-weight: 600; }
/* Order number in a light purple circle (background-image only, so DevExpress's "changed cell" colour still shows) */
.sc-lineup .dxgvDataRow > td.dxgv:first-child {
    text-align: center; font-weight: 800; color: var(--sf-primary, #4a1d96);
    background-image: radial-gradient(circle at 50% 50%, #f4effc 0 14px, transparent 15px);
}
.sc-lineup .dxgvDataRow > td.dxgv:first-child:has(input) { background-image: none; }
.sc-lineup .dxgvDataRow:has(.dxWeb_edtCheckBoxUnchecked) > td.dxgv { color: #94a3b8; }
.sc-lineup .dxgvDataRow:has(.dxWeb_edtCheckBoxUnchecked) > td.dxgv:first-child { background-image: radial-gradient(circle at 50% 50%, #f1f5f9 0 14px, transparent 15px); }
.sc-lineup .dxICheckBox { transform: scale(1.4); }
.sc-lineup .dxgvEmptyDataRow > td { border: 1px dashed #cbd5e1 !important; border-radius: 10px; padding: 18px !important; text-align: center; color: #64748b; }
/* Batch-edit Preview / Save / Cancel bar */
.sc-lineup .dxgvStatusBar,
.sc-lineup .dxgvStatusBar td { background: transparent !important; border: 0 !important; }
.sc-lineup .dxgvStatusBar .dxbButton {
    border-radius: 999px !important; border: 1.5px solid #d8ccf0 !important; background: #fff !important;
    color: var(--sf-primary, #4a1d96) !important; font-weight: 700; margin-left: 6px;
}
.sc-lineup .dxgvStatusBar .dxbButton .dxb { padding: 6px 14px !important; }
.sc-lineup .dxgvStatusBar .dxbButton.dxbDisabled { opacity: .5; }

.sc-lineup > .row > .ct-sub { padding: 6px 4px 0; }

/* Not signed in */
.sc-signin p { margin: 4px 0 6px; font-size: 15px; color: #334155; }

@media (max-width: 767px) {
    .sc-filters { display: block; padding: 12px; margin: 10px 6px 4px; }
    .sc-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .sc-grid-meet .sc-f-session { grid-column: auto; }
    .sc-field select, .sc-field .clubpick-input { height: 46px; min-height: 46px; font-size: 16px !important; }   /* 16px: no iPhone zoom */
    .sc-pagebar #MainContent_DD_Panel_Selector { width: 100%; font-size: 17px !important; }
    .sc-lineup .ajax__tab_tab { padding: 9px 10px !important; }
    .sc-lineup .dxgvDataRow > td.dxgv { padding: 11px 8px !important; font-size: 16px; }
    .sc-lineup .dxgvControl, .sc-lineup .dxgvTable { table-layout: fixed; width: 100% !important; }
    .sc-lineup .dxgvStatusBar td > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
    .sc-lineup .dxgvStatusBar .dxbButton { margin-left: 0; }
    .sc-lineup .dxgvHeader, .sc-lineup .dxgvHeader td { white-space: normal !important; line-height: 1.2; }
    .sc-lineup .dxgvHeader:nth-child(1) { width: 56px !important; }
    .sc-lineup .dxgvHeader:nth-child(2) { width: auto !important; }
    .sc-lineup .dxgvHeader:nth-child(3) { width: 74px !important; }
    .sc-lineup .dxgvHeader:nth-child(4) { width: 30px !important; }
    .sc-lineup .dxgvDataRow > td.dxgv:nth-child(2) { overflow-wrap: anywhere; }
    .sc-page { padding-bottom: 96px !important; }   /* last row clears the FreshDesk "?" bubble */
}

/* ===== Fair Score for coaches (Coach_Tools_FairScore.aspx, CHG-0805 I-3) - reuses the .cva-* card/field look ===== */
.cfs { max-width: 1000px; margin: 12px auto 0; padding: 0 16px 96px; }   /* bottom padding clears the FreshDesk "?" bubble */
.cfs .cva-card { max-width: none; }
.cfs-h { margin: 0 0 10px; font-size: 17px; font-weight: 700; color: #1e293b; }
.cfs-h span { font-weight: 500; color: #64748b; font-size: 14px; margin-left: 4px; }
.cfs-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cfs-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.cfs-table th, .cfs-table td { padding: 7px 8px; border-top: 1px solid #e2e8f0; text-align: right; white-space: nowrap; }
.cfs-table thead th { border-top: 0; color: #64748b; font-size: 12px; font-weight: 600; }
.cfs-table th:first-child { text-align: left; font-weight: 600; }
.cfs-table tbody th a { color: #1e293b; }
.cfs-table tbody th span { color: #94a3b8; font-weight: 400; font-size: 12px; margin-left: 4px; }
.cfs-rating { display: inline-block; min-width: 40px; padding: 1px 8px; border-radius: 999px; background: rgba(74, 29, 150, .10); color: #4a1d96; font-weight: 700; font-size: 12px; text-align: center; }
.cfs-quiet { color: #94a3b8; font-size: 12px; }
.cfs-grow { border-left: 4px solid #ea8a2e; }
.cfs-growlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 18px; }
.cfs-growlist li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid #f1f5f9; font-size: 14px; }
.cfs-growlist li a { color: #1e293b; font-weight: 600; }
.cfs-growlist li span { color: #9a3412; }
.cfs-growlist li span b { color: #c2410c; }
.cfs-clim td { text-align: center; font-size: 13px; }
.cfs-clim td small { display: block; font-size: 11px; color: #64748b; }
.cfs-clim td.c1 { background: #fff4e6; color: #9a3412; }
.cfs-clim td.c3 { background: #ecfdf3; color: #166534; }
.cfs-qwrap { padding: 0; }
.cfs-qwrap .sf-qcard { margin: 0; border: 0; box-shadow: none; }
@media (max-width: 600px) {
    .cfs { padding: 0 8px 96px; }
    .cfs-table th, .cfs-table td { padding: 6px 5px; }
}
