/******************************************************************************
 * SportsPilot BackOffice - shared UI styles
 * Location: /isis/utils/css/sportspilot-ui.css
 * Load AFTER default.css. Bump ?v= in the <link> when this file changes.
 * Classes are prefixed "sp-" so they don't clash with default.css.
 ******************************************************************************/
/* ---------- Theme (change colors here) ---------- */
:root {
    --sp-primary: #1f4e79;
    --sp-primary-light: #e8f0f8;
    --sp-primary-dark: #173d60;
    --sp-border: #dde3ea;
    --sp-muted: #6b7785;
    --sp-bg: #f5f7fa;
    --sp-green: #1e7e34;
    --sp-green-bg: #e6f4ea;
    --sp-red: #c0392b;
    --sp-red-bg: #fdecea;
    --sp-gray-bg: #eceff3;
}
/* Wrap a page's content in <div class="sp-page"> */
.sp-page {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 13px;
    color: #222;
    text-align: left;
    max-width: 1100px;      /* keep content readable when the site frame is full width */
    margin: 0 auto;
}
/* default.css styles td/th/a/input directly (Verdana, small, bold links).
   Reset those inside .sp-page so the page font and sizes carry through.
   :where() keeps these as weak as default.css's own element rules, so they win
   only because this file loads later, and sp- classes still override them. */
/* "table" is listed because pages without a doctype (quirks mode) reset font size on tables */
:where(.sp-page, #msgPopup, .sp-header, .sp-footer, .sp-sys-notice, .sp-statusbar) table,
:where(.sp-page, #msgPopup, .sp-header, .sp-footer, .sp-sys-notice, .sp-statusbar) td, :where(.sp-page, #msgPopup, .sp-header, .sp-footer, .sp-sys-notice, .sp-statusbar) th,
:where(.sp-page, #msgPopup, .sp-header, .sp-footer, .sp-sys-notice, .sp-statusbar) div, :where(.sp-page, #msgPopup, .sp-header, .sp-footer, .sp-sys-notice, .sp-statusbar) span,
:where(.sp-page, #msgPopup, .sp-header, .sp-footer, .sp-sys-notice, .sp-statusbar) li, :where(.sp-page, #msgPopup, .sp-header, .sp-footer, .sp-sys-notice, .sp-statusbar) p,
:where(.sp-page, #msgPopup, .sp-header, .sp-footer, .sp-sys-notice, .sp-statusbar) a, :where(.sp-page, #msgPopup, .sp-header, .sp-footer, .sp-sys-notice, .sp-statusbar) b,
:where(.sp-page, #msgPopup, .sp-header, .sp-footer, .sp-sys-notice, .sp-statusbar) input, :where(.sp-page, #msgPopup, .sp-header, .sp-footer, .sp-sys-notice, .sp-statusbar) select, :where(.sp-page, #msgPopup, .sp-header, .sp-footer, .sp-sys-notice, .sp-statusbar) label {
    font-family: inherit;
    font-size: inherit;
    line-height: 1.4;
}
/* default.css styles a:link / a:visited (color, weight, underline); match its
   strength so these win by loading later. */
:where(.sp-page, #msgPopup, .sp-header, .sp-footer, .sp-sys-notice, .sp-statusbar) a,
:where(.sp-page, #msgPopup, .sp-header, .sp-footer, .sp-sys-notice, .sp-statusbar) a:link,
:where(.sp-page, #msgPopup, .sp-header, .sp-footer, .sp-sys-notice, .sp-statusbar) a:visited,
:where(.sp-page, #msgPopup, .sp-header, .sp-footer, .sp-sys-notice, .sp-statusbar) a:active {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    font-style: normal;
    color: var(--sp-primary);
    text-decoration: none;
}
:where(.sp-page, #msgPopup, .sp-header, .sp-footer, .sp-sys-notice, .sp-statusbar) a:hover { text-decoration: underline; }
:where(.sp-page) .sp-alert a:link, :where(.sp-page) .sp-alert a:visited { color: var(--sp-red); }
:where(.sp-page) a.sp-btn:link, :where(.sp-page) a.sp-btn:visited {
    color: var(--sp-primary); font-size: 12px; font-weight: 600; text-decoration: none;
}
#msgPopup { font-size: 13px; color: #222; }
.sp-page a { color: var(--sp-primary); text-decoration: none; }
.sp-page a:hover { text-decoration: underline; }

/* Layout */
/* Main column + right sidebar stay side by side; main column shrinks to fit
   the site frame. Only stacks on narrow screens. */
.sp-layout { display: flex; flex-wrap: nowrap; gap: 16px; align-items: flex-start; padding: 8px 4px; }
.sp-main   { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.sp-side   { flex: 0 0 280px; }
@media (max-width: 900px) {
    .sp-layout { flex-wrap: wrap; }
    .sp-main, .sp-side { flex: 1 1 100%; }
}
.sp-row    { display: flex; flex-wrap: wrap; gap: 16px; }

/* Cards */
.sp-card { background: #fff; border: 1px solid var(--sp-border); border-radius: 8px;
           box-shadow: 0 1px 3px rgba(16,24,40,.06); overflow: hidden; }
.sp-card-head { display: flex; justify-content: space-between; align-items: center;
                padding: 10px 14px; background: var(--sp-primary); color: #fff;
                font-weight: 600; font-size: 14px; }
.sp-card-head select { font-size: 12px; padding: 3px 6px; border-radius: 4px; border: 1px solid #c9d3de; }
.sp-card-body { padding: 14px; }
.sp-count { display: inline-block; min-width: 20px; padding: 1px 7px; margin-left: 6px;
            background: rgba(255,255,255,.2); border-radius: 10px; font-size: 12px; text-align: center; }

/* Alert banners */
.sp-alert { display: block; margin: 6px 4px; padding: 10px 14px; border-radius: 6px;
            background: var(--sp-red-bg); border: 1px solid #f5c6c0; border-left: 4px solid var(--sp-red);
            font-weight: 600; }
.sp-page .sp-alert a { color: var(--sp-red); }

/* Programs table */
.sp-table-wrap { max-height: 220px; overflow: auto; }
.sp-table { width: 100%; border-collapse: collapse; }
.sp-table th { position: sticky; top: 0; background: #f0f3f7; color: var(--sp-muted);
               font-size: 11px; text-transform: uppercase; letter-spacing: .03em;
               padding: 8px 10px; border-bottom: 1px solid var(--sp-border); text-align: left; }
.sp-table td { padding: 8px 10px; border-bottom: 1px solid #eef1f4; }
.sp-table tr:hover td { background: #f8fafc; }
.sp-table .num { text-align: center; width: 10%; }
.sp-empty { text-align: center; color: var(--sp-red); padding: 20px !important; }

.sp-btn { display: inline-block; padding: 4px 12px; border-radius: 4px; font-size: 12px; font-weight: 600;
          background: var(--sp-primary-light); color: var(--sp-primary) !important; border: 1px solid #c6d7ea;
          cursor: pointer; }
.sp-btn:hover { background: #d6e4f3; text-decoration: none !important; }
.sp-btn-primary { background: var(--sp-primary); color: #fff !important; border-color: var(--sp-primary); padding: 6px 14px; }
.sp-btn-primary:hover { background: var(--sp-primary-dark); }

.sp-badge { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.sp-badge-green { background: var(--sp-green-bg); color: var(--sp-green); }
.sp-badge-red   { background: var(--sp-red-bg);   color: var(--sp-red); }
.sp-badge-gray  { background: var(--sp-gray-bg); color: var(--sp-muted); }

.sp-totals { display: flex; justify-content: space-between; align-items: center;
             padding: 10px 14px; background: #fafbfc; border-top: 1px solid var(--sp-border); }
.sp-stats { display: flex; gap: 18px; }
.sp-stat { text-align: center; }
.sp-stat b { display: block; font-size: 18px; color: var(--sp-primary); }
.sp-stat span { font-size: 11px; color: var(--sp-muted); text-transform: uppercase; }

/* Forms & surveys */
.sp-welcome { display: flex; gap: 14px; align-items: flex-start; }
.sp-welcome img { max-width: 90px; border-radius: 6px; }
.sp-links { list-style: none; margin: 12px 0 0; padding: 0; }
.sp-links li { padding: 7px 0; border-top: 1px solid #eef1f4; }
.sp-links li:before { content: "\203A"; color: var(--sp-primary); font-weight: bold; margin-right: 8px; }

/* Quick links */
.sp-quick { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sp-quick img { height: 45px; border: 0; transition: transform .1s; }
.sp-quick img:hover { transform: translateY(-1px); }

/* Updates sidebar */
.sp-updates { max-height: 560px; overflow: auto; }
.sp-update { padding: 12px 14px; border-bottom: 1px solid #eef1f4; }
.sp-update:last-child { border-bottom: 0; }
.sp-update-date { font-size: 11px; color: var(--sp-muted); font-weight: 600; }
.sp-new { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 8px;
          background: #ffb020; color: #fff; font-size: 10px; font-weight: 700; vertical-align: 1px; }
.sp-update-title { margin: 4px 0; font-weight: 600; font-size: 13px; }
.sp-update-text { color: #444; line-height: 1.4; }
.sp-update-more { text-align: right; margin-top: 4px; font-size: 12px; }

/* Message popup */
#msgBackground { position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 1000; }
#msgContainer  { position: fixed; inset: 0; z-index: 1001; display: flex; align-items: flex-start;
                 justify-content: center; padding-top: 110px; }
#msgPopup { width: 560px; max-width: 92vw; background: #fff; border-radius: 10px; overflow: hidden;
            box-shadow: 0 20px 50px rgba(0,0,0,.3); font-family: "Segoe UI", Roboto, Arial, sans-serif; }
#msgPopup .sp-pop-head { padding: 12px 18px; background: var(--sp-primary); color: #fff; font-size: 15px; font-weight: 600; }
#msgPopup .sp-pop-body { max-height: 450px; overflow: auto; padding: 18px; text-align: left; line-height: 1.5; }
#msgPopup .sp-pop-foot { padding: 12px 18px; text-align: right; background: #fafbfc; border-top: 1px solid #dde3ea; }
#msgPopup .sp-pop-foot input { padding: 7px 20px; border-radius: 5px; border: 0; background: var(--sp-primary);
                               color: #fff; font-weight: 600; cursor: pointer; }


/* Report / form pages */
.sp-form-table td { padding: 6px 10px; }
.sp-form-table input[type=text], .sp-form-table input[type=date], .sp-form-table select {
    padding: 5px 8px; border: 1px solid #c9d3de; border-radius: 4px; font-size: 13px; min-width: 220px; }
.sp-note  { padding: 8px 12px; margin: 10px 0; border-radius: 6px; background: var(--sp-primary-light);
            border: 1px solid #c5d6ea; border-left: 4px solid var(--sp-primary); font-size: 12px; text-align: left; }
.sp-error { color: var(--sp-red); font-weight: 600; margin: 10px 0; }

/* ---------------------------------------------------------------------------
   Site header, menu and footer (Borders.asp + sitemap.xslt)
   --------------------------------------------------------------------------- */
.sp-header, .sp-footer, .sp-page-title, .sp-sys-notice {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
}
.sp-header { padding: 8px 25px 0; text-align: left; font-size: 13px; color: #222; }

.sp-userbar { text-align: right; font-size: 12px; color: var(--sp-muted); padding: 2px 0 6px; }
.sp-userbar b { color: #222; font-weight: 600; }
.sp-userbar-sep { margin: 0 6px; color: #c9d3de; }

.sp-header-top { display: flex; align-items: center; gap: 16px; padding-bottom: 10px; }
.sp-header-logo img { display: block; max-height: 80px; max-width: 260px; }
.sp-header .sp-header-org { flex: 1; margin: 0; font-family: inherit; text-align: center; font-size: 22px; font-weight: 600;
                            color: var(--sp-primary); }
.sp-header-brand { display: block; max-height: 60px; }

/* Menu bar */
.sp-nav { background: var(--sp-primary); border-radius: 6px; }
.sp-nav ul { list-style: none; margin: 0; padding: 0; }
.sp-nav > ul { display: flex; flex-wrap: wrap; justify-content: center; }
.sp-nav > ul > li { position: relative; margin: 0; padding: 0; }
.sp-nav > ul > li > a:link, .sp-nav > ul > li > a:visited {
    display: block; padding: 11px 20px; color: #fff; font-size: 13px; font-weight: 600;
    text-decoration: none; white-space: nowrap;
}
.sp-nav > ul > li.sp-has-sub > a:after { content: " \25BE"; font-size: 10px; opacity: .8; }
.sp-nav > ul > li:hover > a, .sp-nav > ul > li:focus-within > a { background: var(--sp-primary-dark); }
.sp-nav > ul > li:first-child > a { border-radius: 6px 0 0 6px; }
.sp-nav > ul > li.sp-active > a { background: var(--sp-primary-dark); box-shadow: inset 0 -3px 0 #ffb020; }

/* Dropdowns */
.sp-nav .sp-sub {
    display: none; position: absolute; top: 100%; left: 0; z-index: 900; min-width: 230px;
    padding: 6px 0; background: #fff; border: 1px solid var(--sp-border); border-top: 0;
    border-radius: 0 0 6px 6px; box-shadow: 0 8px 24px rgba(16,24,40,.15); text-align: left;
}
.sp-nav > ul > li:hover > .sp-sub, .sp-nav > ul > li:focus-within > .sp-sub { display: block; }
/* reset any old .MenuDynamicItem styling from ADMIN.CSS / Common.CSS
   (no display rule here: Borders.asp hides some items with an inline style) */
.sp-nav .sp-sub li.MenuDynamicItem {
    margin: 0; padding: 0; border: 0; background: none; width: auto; height: auto;
    color: inherit; font-weight: normal; cursor: default;
}
.sp-nav .sp-sub a:link, .sp-nav .sp-sub a:visited {
    display: block; padding: 8px 16px; color: #222; font-size: 13px; font-weight: 400;
    text-decoration: none; white-space: nowrap;
}
.sp-nav .sp-sub a:hover, .sp-nav .sp-sub a:focus { background: var(--sp-primary-light); color: var(--sp-primary); }

/* Page title + system notice */
.sp-page-title { margin: 16px 0 8px; text-align: center; font-size: 18px; font-weight: 600; color: var(--sp-primary); }
.sp-sys-notice { margin: 10px 25px 0; padding: 10px 14px; border-radius: 6px; background: #fff4e5;
                 border: 1px solid #ffd8a8; border-left: 4px solid #ffb020; font-weight: 600; color: #8a4b00; }

/* Footer */
.sp-footer { margin: 24px 25px 0; padding: 14px 0 18px; border-top: 1px solid var(--sp-border);
             text-align: center; font-size: 11px; line-height: 1.7; color: var(--sp-muted); }
.sp-footer a:link, .sp-footer a:visited { color: var(--sp-primary); font-style: normal; text-decoration: none; }
.sp-footer a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------------------
   Forms, buttons and page parts shared by work pages (Teams, reports, ...)
   --------------------------------------------------------------------------- */
/* Form controls inside .sp-page (overrides old 8pt inline/default.css sizes) */
.sp-page input[type=text], .sp-page input[type=date], .sp-page input[type=number],
.sp-page select, .sp-page textarea {
    font-family: inherit; font-size: 13px; color: #222; background: #fff;
    padding: 5px 8px; border: 1px solid #c9d3de; border-radius: 4px; box-sizing: border-box;
}
.sp-page input[type=text]:focus, .sp-page input[type=date]:focus,
.sp-page select:focus, .sp-page textarea:focus {
    outline: none; border-color: var(--sp-primary); box-shadow: 0 0 0 3px rgba(31,78,121,.15);
}

/* Buttons: <input type=button class="sp-btn"> as well as <a class="sp-btn"> */
.sp-page input.sp-btn, .sp-page button.sp-btn {
    font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1.3;
    padding: 6px 12px; border-radius: 4px; cursor: pointer; width: auto; height: auto;
    background: #fff; background-image: none; color: #222; border: 1px solid #c9d3de;
}
.sp-page input.sp-btn:hover, .sp-page button.sp-btn:hover { background: #f0f3f7; }
.sp-page input.sp-btn-primary { background: var(--sp-primary); color: #fff; border-color: var(--sp-primary); }
.sp-page input.sp-btn-primary:hover { background: var(--sp-primary-dark); }
.sp-page input.sp-btn-danger { color: var(--sp-red) !important; border-color: #f0b8b1; }
.sp-page input.sp-btn-danger:hover { background: var(--sp-red-bg); }
.sp-page input.sp-btn-block { display: block; width: 100%; text-align: left; margin-bottom: 6px; }
.sp-btn-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sp-push-right { margin-left: auto; }
.sp-card-head .sp-btn { font-size: 11px; padding: 3px 10px; }

.sp-card-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
                padding: 12px 14px; background: #fafbfc; border-top: 1px solid var(--sp-border); }
.sp-empty-state { text-align: center; color: var(--sp-muted); padding: 40px 14px; font-size: 14px; }

/* Section tabs (Teams / Coaches / Players / Reports / Tools / Advanced) */
.sp-tabs { display: flex; gap: 2px; border-bottom: 2px solid var(--sp-primary); margin: 0 0 16px; }
.sp-tabs .sp-tab, .sp-tabs a.sp-tab:link, .sp-tabs a.sp-tab:visited {
    display: inline-block; padding: 8px 18px; border-radius: 6px 6px 0 0; font-weight: 600; font-size: 13px;
    background: var(--sp-gray-bg); color: var(--sp-muted); text-decoration: none;
}
.sp-tabs a.sp-tab:hover { background: var(--sp-primary-light); color: var(--sp-primary); text-decoration: none; }
.sp-tabs .sp-tab-active { background: var(--sp-primary); color: #fff; }

/* Toolbar row (selectors + status chips) */
.sp-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 12px 14px; }
.sp-toolbar-item { display: inline-flex; align-items: center; gap: 6px; }
.sp-toolbar-item > span:first-child { font-weight: 600; color: var(--sp-muted); }
.sp-toolbar-right { margin-left: auto; }
.sp-chip { padding: 4px 10px; border-radius: 12px; background: var(--sp-gray-bg); }

/* Label / field grid */
.sp-field-grid { display: grid; grid-template-columns: 200px 1fr; gap: 10px 14px; align-items: center; }
.sp-field-grid > label { text-align: right; font-weight: 600; color: #444; }
.sp-field-grid input[type=text] { width: 320px; max-width: 100%; }
.sp-field-grid textarea { width: 420px; max-width: 100%; }
.sp-field-grid .sp-input-short { width: 100px; }
.sp-hint { margin-left: 8px; color: var(--sp-muted); font-size: 11px; }

/* Simple label/value table (report filters) */
.sp-form-table { border-collapse: collapse; }
.sp-form-table td:first-child { text-align: right; font-weight: 600; color: #444; width: 150px; }

/* Teams page */
.sp-teams-grid { display: grid; grid-template-columns: 1fr 1fr 250px; gap: 16px; margin: 16px 0; align-items: start; }
.sp-teams > .sp-card { margin-bottom: 16px; }
.sp-listbox { width: 100%; min-height: 220px; }
.sp-tool-list { padding: 12px; }
.sp-group-label { margin: 12px 0 6px; font-size: 11px; font-weight: 700; text-transform: uppercase;
                  letter-spacing: .04em; color: var(--sp-muted); }
.sp-select-block { width: 100%; }

/* Reports */
.sp-report > .sp-card, .sp-report > form > .sp-card { margin-bottom: 16px; }
.sp-report-stats { display: flex; gap: 28px; padding: 14px; border-bottom: 1px solid var(--sp-border); }
.sp-report-table td { vertical-align: top; }
.sp-report-table .num { white-space: nowrap; }
.sp-report-table .sp-group-row td { background: #f7f9fb; border-top: 1px solid var(--sp-border); padding-top: 10px; }
.sp-group-sub { display: block; font-size: 12px; color: var(--sp-muted); }
.sp-report-table tr.sp-refund td { color: var(--sp-red); }
.sp-report-back { margin: 0 0 16px; }
.sp-report .sp-error { margin: 0 0 0 8px; }
.sp-report .sp-note { margin-top: 0; }
@media (max-width: 900px) { .sp-teams-grid { grid-template-columns: 1fr; } }

/* Status bar (utils/StatusBarInc.asp): Sport / Program / message / checkout */
.sp-statusbar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
    max-width: 1100px; margin: 0 auto 14px; padding: 10px 14px; box-sizing: border-box;
    background: #fff; border: 1px solid var(--sp-border); border-radius: 8px;
    box-shadow: 0 1px 3px rgba(16,24,40,.06);
    font-family: "Segoe UI", Roboto, Arial, sans-serif; font-size: 13px; color: #222; text-align: left;
}
.sp-statusbar .sp-toolbar-item > span:first-child { font-weight: 600; color: var(--sp-muted); }
.sp-statusbar select {
    font-family: inherit; font-size: 13px; color: #222; background: #fff;
    padding: 5px 8px; border: 1px solid #c9d3de; border-radius: 4px;
}
.sp-statusbar-msg { padding: 4px 10px; border-radius: 12px; background: var(--sp-green-bg);
                    color: var(--sp-green); font-weight: 600; }
.sp-statusbar-cart { margin-left: auto; color: var(--sp-muted); }
.sp-statusbar-cart b { color: #222; }
.sp-statusbar a.sp-btn:link, .sp-statusbar a.sp-btn:visited {
    display: inline-block; padding: 4px 12px; border-radius: 4px; font-size: 12px; font-weight: 600;
    background: var(--sp-primary); color: #fff; text-decoration: none;
}

/* ---------------------------------------------------------------------------
   Participant pages (CoachMain.asp, later Players)
   --------------------------------------------------------------------------- */
.sp-coach > .sp-card, .sp-coach > .sp-detail-grid { margin-bottom: 16px; }
.sp-person-name { font-size: 18px; font-weight: 600; color: var(--sp-primary); }
.sp-toolbar-sub { border-top: 1px solid var(--sp-border); background: #fafbfc; }
.sp-toolbar-flat { padding: 0; }
.sp-badge-amber { background: #fff4e5; color: #8a4b00; }
.sp-muted { color: var(--sp-muted); }
.sp-check { font-weight: 400; }
.sp-check input { margin: 0 4px 0 0; }

.sp-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sp-dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; margin: 0; }
.sp-dl dt { font-weight: 600; color: var(--sp-muted); }
.sp-dl dd { margin: 0; }
:where(.sp-page) a.sp-small-link:link, :where(.sp-page) a.sp-small-link:visited { margin-left: 8px; font-size: 12px; }
:where(.sp-page) a.sp-danger-link:link, :where(.sp-page) a.sp-danger-link:visited { color: var(--sp-red); }

.sp-photo-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sp-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 1px solid var(--sp-border); }
.sp-avatar-empty { display: inline-flex; align-items: center; justify-content: center;
                   background: var(--sp-gray-bg); color: var(--sp-muted); font-size: 10px; }
.sp-link-list { list-style: none; margin: 0; padding: 0; }
.sp-link-list li { padding: 6px 0; border-top: 1px solid #eef1f4; }
.sp-link-list li:first-child { border-top: 0; }

.sp-page input.sp-btn:disabled { opacity: .45; cursor: not-allowed; }
.sp-page input.sp-btn:disabled:hover { background: #fff; }
.sp-page input.sp-btn-primary:disabled:hover { background: var(--sp-primary); }

/* Fields drawn by older include files (inc_ParticForm.asp etc.): neutralize old
   fixed backgrounds/borders so they sit cleanly inside the card. */
.sp-legacy-form table, .sp-legacy-form td, .sp-legacy-form th { background-color: transparent; }
.sp-legacy-form table { max-width: 100%; }
.sp-legacy-form fieldset { border: 1px solid var(--sp-border); border-radius: 6px; margin: 10px 0; padding: 10px; max-width: 100%; box-sizing: border-box; }
.sp-legacy-form legend { padding: 0 6px; font-weight: 600; color: var(--sp-muted); }

@media (max-width: 900px) { .sp-detail-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------
   Shared participant includes: inc_ParticForm.asp (showBasicInfo),
   inc_CoachParticForm.asp (Role/Notes), inc_OptFields.asp (Additional Info),
   inc_PlayerParticForm.asp (Guardians)
   --------------------------------------------------------------------------- */
.sp-form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; align-items: start; }
.sp-field-grid-tight { grid-template-columns: 110px 1fr; gap: 8px 10px; }
.sp-field-grid-tight input[type=text] { width: 100%; max-width: 320px; }
.sp-field-grid-tight textarea { width: 100%; max-width: 420px; }
.sp-inline-fields { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sp-inline-label { font-weight: 600; color: #444; margin-left: 4px; }
.sp-field-grid input.sp-input-xs { width: 60px; }
.sp-field-grid input.sp-input-sm { width: 100px; }
.sp-field-grid input.sp-input-md { width: 150px; }
.sp-dob input[type=text] { width: 56px; text-align: center; }
.sp-dob input[name^=BDteYear] { width: 72px; }
.sp-role-notes { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--sp-border); }

/* Additional Info (optional fields) */
.sp-opt-table { width: 100%; border-collapse: collapse; }
.sp-opt-table th.sp-opt-section { text-align: left; padding: 8px 10px; background: var(--sp-primary-light);
                                  color: var(--sp-primary); font-weight: 600; border-radius: 4px; }
.sp-opt-table td { padding: 5px 6px; vertical-align: top; }
.sp-opt-table td.sp-opt-label { width: 220px; text-align: right; font-weight: 600; color: #444; padding-top: 10px; }
.sp-required { color: var(--sp-red); margin-right: 3px; }
.sp-optfields { border: 0; padding: 0; margin: 0 0 10px; }

/* Guardians */
.sp-plain-fieldset { border: 1px solid var(--sp-border); border-radius: 6px; padding: 10px; margin: 10px 0; }
.sp-guardian-table { width: 100%; border-collapse: collapse; }
.sp-guardian-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .03em;
                        color: var(--sp-muted); padding: 6px; border-bottom: 1px solid var(--sp-border); }
.sp-guardian-table td { padding: 5px 6px; }
table.sp-guardian-extra { width: 100%; background: #f7f9fb; border-radius: 4px; margin: 2px 0 8px; }
table.sp-guardian-extra td { padding: 4px 8px; }

@media (max-width: 900px) { .sp-form-2col { grid-template-columns: 1fr; } }

/* Players page */
.sp-toolbar-gap { margin-top: 12px; }
.sp-guardian-summary td { padding: 4px 8px; vertical-align: top; }
.sp-guardian-summary td p { margin: 6px 0 0; font-weight: 600; color: #444; }
.sp-guardian-summary select { min-width: 220px; }
/* Old markup often writes <input> with no type (= text): style those too */
.sp-page input:not([type]) {
    font-family: inherit; font-size: 13px; color: #222; background: #fff;
    padding: 5px 8px; border: 1px solid #c9d3de; border-radius: 4px; box-sizing: border-box;
}
.sp-page input:not([type]):focus { outline: none; border-color: var(--sp-primary); box-shadow: 0 0 0 3px rgba(31,78,121,.15); }

/* "Additional Info (Custom Fields)" toggle: make it stand out so admins notice custom fields */
.sp-addinfo-row { align-items: center; padding: 10px 12px; margin-top: 14px; border-radius: 6px;
                  background: #fff8eb; border: 1px dashed #f5b544; }
.sp-page input.sp-btn-accent { background: #f59f00; color: #fff !important; border-color: #f59f00; font-size: 13px; padding: 7px 14px; }
.sp-page input.sp-btn-accent:hover { background: #d98b00; border-color: #d98b00; }
.sp-addinfo-hint { color: #8a5a00; font-size: 12px; }
/* hide the hint once the custom fields are open (the toggle script hides btnParticOn) */
.sp-addinfo-row:has(input[name=btnParticOn][style*="none"]) .sp-addinfo-hint { display: none; }
.sp-addinfo-row:has(input[name=btnParticOn][style*="none"]) { background: transparent; border-style: solid; border-color: var(--sp-border); }

/* Registration Reports tab */
.sp-reports > .sp-card { margin-bottom: 16px; }
.sp-reports-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.sp-reports-col { display: flex; flex-direction: column; gap: 16px; }
.sp-report-links { list-style: none; margin: 0; padding: 6px 0; }
.sp-report-links li { padding: 8px 14px; border-top: 1px solid #eef1f4; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sp-report-links li:first-child { border-top: 0; }
.sp-report-links li:hover { background: #f8fafc; }
.sp-report-links li:before { content: "\203A"; color: var(--sp-primary); font-weight: bold; }
.sp-report-links .sp-badge { margin-left: auto; font-weight: 500; }
.sp-ext { font-size: 11px; color: var(--sp-muted); }
.sp-head-sub { font-size: 12px; font-weight: 400; opacity: .85; }
.sp-note-flush { margin: 0; border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; }
.sp-foot-note { font-size: 12px; color: var(--sp-muted); display: block; }
@media (max-width: 900px) { .sp-reports-grid { grid-template-columns: 1fr; } }

/* Registration Tools tab */
.sp-chip-links { display: inline-flex; gap: 6px; margin-left: auto; }
:where(.sp-page) .sp-chip-links a:link, :where(.sp-page) .sp-chip-links a:visited {
    padding: 2px 10px; border-radius: 12px; background: var(--sp-primary-light); font-size: 12px; font-weight: 600;
}
:where(.sp-page) .sp-chip-links a:hover { background: #d6e4f3; text-decoration: none; }
.sp-empty-action { display: inline-block; margin-top: 14px; }

/* Registration Advanced tab */
.sp-intro-card .sp-card-body { color: var(--sp-muted); padding: 10px 14px; }
.sp-advanced > .sp-card { margin-bottom: 16px; }

/* Popup windows (TeamPopUp.asp and similar) */
.sp-popup { max-width: none; padding: 12px; }
.sp-popup > .sp-card, .sp-popup form > .sp-card { margin-bottom: 12px; }
.sp-popup .sp-person-name { font-size: 16px; margin-bottom: 4px; }
.sp-popup .sp-person-name .sp-badge { vertical-align: 2px; margin-left: 4px; }
.sp-popup-who .sp-card-body { padding: 12px 14px; line-height: 1.5; }
.sp-popup-intro { margin: 0 0 12px; color: #444; }
.sp-action-list { list-style: none; margin: 0; padding: 0; }
.sp-action-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px;
                     padding: 7px 14px; border-top: 1px solid #eef1f4; }
.sp-action-list li.sp-action-group { padding: 10px 14px 6px; border-top: 0; background: #f7f9fb;
                     font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--sp-muted); }
.sp-action-list li.sp-action-group + li { border-top: 0; }
.sp-action-list .sp-btn { min-width: 96px; }
.sp-popup-msg { text-align: center; padding: 24px 14px; }
.sp-popup-msg-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.sp-msg-success .sp-popup-msg-title { color: var(--sp-green); }
.sp-msg-error .sp-popup-msg-title { color: var(--sp-red); }
.sp-popup .sp-card-foot { justify-content: flex-end; }

/* Find Existing Player or Coach (registrationfind.asp) */
.sp-find > .sp-card, .sp-find form > .sp-card { margin-bottom: 16px; }
.sp-find-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; align-items: start; }
.sp-find-filters { padding-left: 24px; border-left: 1px solid var(--sp-border); }
.sp-span-2 { grid-column: 1 / -1; margin-top: 0; }
.sp-or { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--sp-muted); }
.sp-nowrap { white-space: nowrap; }
.sp-chip-links-wrap { flex-wrap: wrap; margin-left: 0; }
.sp-find-table td { vertical-align: middle; }
.sp-find-name a { font-weight: 600; }
.sp-find-name { white-space: nowrap; }
@media (max-width: 900px) { .sp-find-cols { grid-template-columns: 1fr; } .sp-find-filters { padding-left: 0; border-left: 0; } }

/* Family lookup (admin/users/groups/default.asp) */
.sp-family > .sp-card, .sp-family > .sp-alert, .sp-family > .sp-note { margin-bottom: 14px; }
.sp-head-actions { display: inline-flex; gap: 6px; }
.sp-page input.sp-btn-light { background: rgba(255,255,255,.15); color: #fff !important; border-color: rgba(255,255,255,.4); }
.sp-page input.sp-btn-light:hover { background: rgba(255,255,255,.28); }
.sp-alpha { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; padding: 10px 14px; }
.sp-alpha-label { font-weight: 600; color: var(--sp-muted); margin-right: 6px; }
:where(.sp-page) .sp-alpha a:link, :where(.sp-page) .sp-alpha a:visited, .sp-alpha-on {
    display: inline-block; min-width: 26px; padding: 3px 0; text-align: center; border-radius: 4px; font-weight: 600; }
:where(.sp-page) .sp-alpha a:hover { background: var(--sp-primary-light); text-decoration: none; }
.sp-alpha-on { background: var(--sp-primary); color: #fff; }
.sp-note-ok { background: var(--sp-green-bg); border-color: #b7dfc2; border-left-color: var(--sp-green); color: var(--sp-green); }
.sp-fam-table td { vertical-align: middle; }
.sp-fam-name { font-weight: 600; white-space: nowrap; }
.sp-fam-count { display: block; font-size: 11px; font-weight: 400; color: var(--sp-muted); }
.sp-fam-members { line-height: 1.6; }
.sp-sep { color: #b6c0cc; margin: 0 6px; }
.sp-member-match { background: #fff3a0; font-weight: 600; padding: 0 3px; border-radius: 3px; }
.sp-fam-actions { white-space: nowrap; text-align: right; }
:where(.sp-page) a.sp-btn-danger-link:link, :where(.sp-page) a.sp-btn-danger-link:visited {
    color: var(--sp-red) !important; background: #fff; border: 1px solid #f0b8b1; }
:where(.sp-page) a.sp-btn-danger-link:hover { background: var(--sp-red-bg); }
.sp-family .sp-toolbar input[type=text] { width: 140px; }
.sp-table th.sp-fam-actions { text-align: right; }

/* Roster Move (RosterMove.asp) */
.sp-move > .sp-note, .sp-move > .sp-alert { margin-bottom: 14px; }
.sp-move-grid { display: grid; grid-template-columns: 1fr 220px 1fr; gap: 16px; align-items: start; }
.sp-dl-tight { grid-template-columns: 70px 1fr; gap: 4px 10px; margin-bottom: 6px; }
.sp-listbox-sm { min-height: 70px; }
.sp-hint-block { display: block; margin: 6px 0 0; }
.sp-move-actions .sp-card-body { display: flex; flex-direction: column; gap: 4px; }
.sp-radio { display: flex; align-items: center; gap: 6px; padding: 4px 0; cursor: pointer; }
.sp-page input.sp-btn-wide { width: 100%; margin-top: 8px; padding: 8px 12px; }
.sp-move-pick { margin-bottom: 4px; }
.sp-move-pick select { max-width: 100%; }
.sp-empty-sm { padding: 30px 10px; font-size: 13px; }
@media (max-width: 900px) { .sp-move-grid { grid-template-columns: 1fr; } }

/* Email Receipt popup (TeamEmail.asp) - pick list of people */
.sp-popup-intro-wrap { padding-bottom: 8px; }
.sp-select-all { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.sp-pick-list { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow: auto; border-top: 1px solid var(--sp-border); }
.sp-pick-list li { border-bottom: 1px solid #eef1f4; }
.sp-pick-list li label { display: grid; grid-template-columns: 22px 1fr; gap: 0 6px; padding: 8px 14px; cursor: pointer; }
.sp-pick-list li label:hover { background: #f8fafc; }
.sp-pick-list li input { grid-row: 1 / span 2; margin-top: 3px; }
.sp-pick-name { font-weight: 600; }
.sp-pick-name .sp-badge { margin-left: 6px; font-weight: 500; }
.sp-pick-email { font-size: 12px; color: var(--sp-muted); }
.sp-pick-off label { cursor: default; opacity: .6; }
.sp-pick-off .sp-pick-email { color: var(--sp-red); }

/* Registration Links (admin/RegLinks.asp) */
.sp-reglinks > .sp-note { margin: 0 0 14px; font-size: 13px; line-height: 1.5; }
.sp-reglinks-frame { display: block; width: 100%; height: 500px; border: 0; background: #fff; }

/* Program & League Registration Settings Summary (admin/RegSettings) */
.sp-regsum > .sp-note, .sp-regsum > .sp-card { margin: 0 0 14px; }
.sp-regsum > .sp-note { font-size: 13px; line-height: 1.5; }
.sp-c { text-align: center; }
.sp-table th.sp-c { text-align: center; }
.sp-col-toggle { width: 28px; text-align: center; }
.sp-toggle { display: inline-block; width: 22px; height: 22px; line-height: 22px; border-radius: 4px; cursor: pointer;
             color: var(--sp-primary); background: var(--sp-primary-light); font-size: 12px; user-select: none; }
.sp-toggle:hover { background: #d6e4f3; }
.sp-prog-row td { vertical-align: middle; }
.sp-prog-row td input[type=checkbox] { width: 16px; height: 16px; }
.sp-prog-link { font-weight: 600; }
.sp-page input.sp-date-input { width: 96px; padding: 4px 6px; font-size: 12px; text-align: center; }
.sp-league-row > td { padding: 0 0 12px 36px !important; background: #f7f9fb; }
.sp-league-wrap { overflow-x: auto; border: 1px solid var(--sp-border); border-radius: 6px; background: #fff; }
.sp-league-table { border-collapse: collapse; width: 100%; min-width: 1100px; }
.sp-league-table th { padding: 6px 8px; font-size: 11px; font-weight: 600; color: var(--sp-muted); background: #f0f3f7;
                      border-bottom: 1px solid var(--sp-border); white-space: nowrap; }
.sp-league-table th a { color: var(--sp-primary); }
.sp-league-table td { padding: 5px 8px; border-bottom: 1px solid #eef1f4; vertical-align: middle; }
.sp-league-table tr:last-child td { border-bottom: 0; }
.sp-no { display: inline-block; padding: 1px 7px; border-radius: 8px; background: var(--sp-red-bg); color: var(--sp-red);
         font-size: 11px; font-weight: 700; }
/* keep the program table at page width; the league list scrolls inside its own box */
.sp-prog-table { table-layout: fixed; }
.sp-prog-table > thead > tr > th:nth-child(1) { width: 40px; }
.sp-prog-table > thead > tr > th:nth-child(n+3) { width: 108px; }
.sp-league-table th:first-child, .sp-league-table td:first-child { min-width: 210px; }

/* Small save-status message (bottom-right), used by background saves */
.sp-toast { position: fixed; right: 20px; bottom: 20px; z-index: 2000; display: none; max-width: 360px;
            padding: 10px 16px; border-radius: 6px; background: #334155; color: #fff;
            font-family: "Segoe UI", Roboto, Arial, sans-serif; font-size: 13px; font-weight: 600;
            box-shadow: 0 8px 24px rgba(16,24,40,.25); }
.sp-toast-ok { background: var(--sp-green); }
.sp-toast-error { background: var(--sp-red); }

/* Programs list (admin/Programs/Programs.asp) */
.sp-programs > form > .sp-card { margin-bottom: 16px; }
.sp-programs .sp-stats { gap: 26px; }
.sp-programs-table td { vertical-align: middle; }
.sp-programs-table a.sp-prog-name { font-weight: 600; font-size: 13px; }
.sp-programs-table tr.sp-row-current td { background: #fff8e6; }
.sp-programs-table tr.sp-row-current td:first-child { box-shadow: inset 3px 0 0 var(--sp-accent, #e8833a); }
.sp-page a.sp-btn-sm:link, .sp-page a.sp-btn-sm:visited { padding: 2px 10px; font-size: 12px; min-width: 34px; text-align: center; }
.sp-prog-actions a { margin-right: 10px; font-size: 12px; }
.sp-prog-actions a:last-child { margin-right: 0; }
.sp-programs .sp-totals { font-size: 12px; }

/* Program edit (admin/Programs/ProgramEdit.asp) */
.sp-progedit .sp-pe-tab > .sp-card, .sp-progedit > form > .sp-card { margin-bottom: 16px; }
.sp-progedit .sp-tabs { margin-bottom: 14px; }
.sp-pe-namelabel { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase;
                   letter-spacing: .04em; color: var(--sp-muted); margin-bottom: 4px; }
.sp-page input.sp-pe-name { width: 460px; max-width: 100%; font-size: 16px; font-weight: 600; padding: 6px 10px; }
.sp-pe-meta { margin-top: 6px; font-size: 12px; color: var(--sp-muted); }
.sp-pe-general { display: flex; gap: 20px; align-items: flex-start; }
.sp-pe-fields { flex: 1 1 auto; min-width: 0; grid-template-columns: 170px 1fr; }
.sp-pe-suggest { flex: 0 0 250px; padding: 12px 14px; border: 1px dashed #c6d7ea; border-radius: 8px; background: #f7faff; }
.sp-pe-suggest .sp-group-label { margin-top: 0; }
.sp-pe-suggest-name { min-height: 20px; margin: 4px 0 10px; font-size: 14px; font-weight: 600; color: var(--sp-primary);
                      word-break: break-word; }
.sp-pe-suggest-hint { margin-top: 8px; font-size: 11px; }
.sp-field-grid > label.sp-top { align-self: start; padding-top: 4px; }
.sp-page input.sp-input-date { width: 160px; }
.sp-inline-fields .sp-check { margin-right: 14px; }
.sp-pe-pay { gap: 6px 22px; }
.sp-pe-online { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 16px; margin-bottom: 16px; align-items: start; }
.sp-pe-switches { border-collapse: collapse; width: 100%; }
.sp-pe-switches td { padding: 4px 0; border-bottom: 1px solid #eef1f4; }
.sp-pe-switches tr:last-child td { border-bottom: 0; }
.sp-pe-switches td:first-child { padding-right: 10px; }
.sp-pe-switches td:last-child { text-align: right; }
.sp-pe-sync-dates { margin-top: 10px; gap: 16px; }
.sp-pe-sync-dates label { font-weight: 600; color: #444; }
.sp-pe-consent { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sp-pe-consent textarea { width: 100%; box-sizing: border-box; }
.sp-pe-consent-view { height: 380px; overflow: auto; padding: 10px 12px; border: 1px solid var(--sp-border);
                      border-radius: 6px; background: #fafbfc; }
.sp-pe-actions .sp-card-foot { border-top: 0; }
.sp-page input.sp-pe-save { min-width: 120px; }
@media (max-width: 900px) { .sp-pe-online, .sp-pe-consent { grid-template-columns: 1fr; } .sp-pe-general { flex-wrap: wrap; } }
/* tabs that are links (ProgramEdit) - active state must beat a.sp-tab:link */
.sp-tabs a.sp-tab-active:link, .sp-tabs a.sp-tab-active:visited, .sp-tabs a.sp-tab-active:hover { background: var(--sp-primary); color: #fff; }

/* Formatted text editor (ProgramEdit Documents tab - legal consent) */
.sp-rte-intro { margin: 0 0 10px; font-size: 12px; }
.sp-rte { border: 1px solid #c9d3de; border-radius: 6px; overflow: hidden; background: #fff; }
.sp-rte-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px 8px;
                  background: #f0f3f7; border-bottom: 1px solid var(--sp-border); }
.sp-rte-toolbar select { font-size: 12px; padding: 3px 4px; border: 1px solid #c9d3de; border-radius: 4px; }
.sp-page .sp-rte-btn { min-width: 28px; height: 26px; padding: 0 8px; font-size: 12px; color: #333; cursor: pointer;
                       background: #fff; border: 1px solid #c9d3de; border-radius: 4px; }
.sp-page .sp-rte-btn:hover { background: var(--sp-primary-light); border-color: #9fbbd9; }
.sp-rte-swatch span { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: middle; }
.sp-rte-sep { width: 1px; height: 20px; margin: 0 4px; background: #c9d3de; }
.sp-page .sp-rte-code-btn { margin-left: auto; font-weight: 600; color: var(--sp-primary); }
.sp-rte-code .sp-rte-toolbar > *:not(.sp-rte-code-btn) { opacity: .35; pointer-events: none; }
.sp-rte-body { min-height: 340px; max-height: 560px; overflow: auto; padding: 12px 16px; outline: none;
               font-size: 13px; line-height: 1.5; color: #222; resize: vertical; }
.sp-rte-body:empty:before { content: attr(data-placeholder); color: #9aa5b1; }
.sp-rte-body p { margin: 0 0 10px; }
.sp-rte-body h3, .sp-rte-body h4 { margin: 4px 0 8px; }
.sp-page textarea.sp-rte-source { display: block; width: 100%; min-height: 340px; box-sizing: border-box; border: 0;
                                  padding: 12px; font-family: Consolas, "Courier New", monospace; font-size: 12px; }

/* Team Information (admin/Teams/TeamInfo.asp) */
.sp-teaminfo > form > .sp-card, .sp-teaminfo > form > .sp-alert, .sp-teaminfo .sp-legacy-statusbar { margin-bottom: 16px; }
.sp-teaminfo-table td { vertical-align: middle; }
.sp-teaminfo-table .sp-badge { margin-left: 6px; }
.sp-page input.sp-input-jersey { width: 56px; }
.sp-page input.sp-input-member { width: 130px; }
.sp-teaminfo-legend .sp-badge { margin-left: 4px; }
.sp-teaminfo .sp-field-grid { grid-template-columns: 140px 1fr; }

/* Manage Roster Status tool (Registration/Advanced/RosterHistory.asp) */
.sp-rosterstatus > .sp-card, .sp-rosterstatus > .sp-note, .sp-rosterstatus > .sp-alert { margin-bottom: 16px; }
.sp-rosterstatus .sp-field-grid { grid-template-columns: 150px 1fr; }
.sp-rosterstatus-table td { vertical-align: middle; }
.sp-rosterstatus-table tr.sp-rh-newperson td { border-top: 2px solid var(--sp-border); }

/* Email Generator wrapper (isis/Emailer.asp) */
.sp-emailer > .sp-card { margin-bottom: 16px; }
.sp-emailer-frame { display: block; width: 100%; height: 1000px; border: 0; background: #fff; }

/* Finance home (isis/Finance/AccountingHome.asp) */
.sp-finance > .sp-reports-grid, .sp-finance > .sp-card, .sp-finance > .sp-alert { margin-bottom: 16px; }
.sp-finance .sp-report-links .sp-group-sub { flex-basis: 100%; margin-left: 14px; }
.sp-finance-actions .sp-card-body { overflow-x: auto; }
.sp-finance-gap { height: 20px; }

/* Finance report options (Finance/Reports/ReportSubmit.asp) */
.sp-finreport .sp-form-table td { padding: 6px 8px; }
.sp-finreport .sp-form-table input.sp-input-time { width: 80px; min-width: 0; }
.sp-finreport .sp-form-table input.sp-date-pick { width: 160px; min-width: 0; }
.sp-finreport .sp-card { max-width: 760px; }

/* Finance report results (Finance/Reports/*Report.asp) - tables drawn by reporthelpers.asp */
.sp-transreport > .sp-card, .sp-transreport > .sp-alert, .sp-transreport > .sp-legacy-report { margin-bottom: 16px; }
.sp-legacy-report { overflow-x: auto; }
.sp-legacy-report table { width: 100% !important; border-collapse: collapse; background: #fff;
                          border: 1px solid var(--sp-border) !important; border-radius: 8px; }
.sp-legacy-report tr.newHeader th, .sp-legacy-report tr.newHeader td,
.sp-legacy-report th.newHeader, .sp-legacy-report td.newHeader { background: var(--sp-primary); color: #fff; padding: 8px 10px; }
.sp-legacy-report td { padding: 5px 8px; border-bottom: 1px solid #eef1f4; }
.sp-legacy-report font { font-family: inherit; }
.sp-report-gap { height: 16px; }
.sp-trans-total .sp-report-stats { display: flex; gap: 40px; padding: 14px 18px; }
.sp-stat-main b { color: #8a1c1c; }

/* Team Moneys Report (Finance/Reports/TeamMoneysReport.asp) */
.sp-teammoneys > .sp-card, .sp-teammoneys > .sp-alert, .sp-teammoneys > form > .sp-card, .sp-teammoneys > form > .sp-alert { margin-bottom: 16px; }
.sp-teammoneys .sp-form-table td.sp-tm-label { width: auto; padding-left: 18px; }
.sp-teammoneys .sp-form-table input[type=date] { min-width: 0; width: 160px; }
.sp-tm-checks { gap: 6px 18px; }
.sp-table-scroll { overflow-x: auto; }
.sp-tm-table th.num, .sp-tm-table td.num { text-align: right; width: 11%; }
.sp-tm-table td.num { white-space: nowrap; }
.sp-tm-table td:nth-child(3) { min-width: 170px; }
.sp-tm-table tr.sp-tm-person td:nth-child(3), .sp-tm-table tr.sp-tm-team td:nth-child(3) a { white-space: nowrap; }
.sp-tm-table td.sp-c, .sp-tm-table th.sp-c { width: 50px; }
.sp-tm-table tr.sp-tm-person td { padding-top: 4px; padding-bottom: 4px; font-size: 12px; }
.sp-tm-table tr.sp-tm-total td { border-bottom: 2px solid var(--sp-border); background: #fafbfc; }
.sp-tm-table tr.sp-tm-grand td { background: #f0f3f7; border-top: 2px solid var(--sp-border); padding: 10px; }
.sp-tm-due { color: var(--sp-red); font-weight: 600; }
.sp-card-head .sp-head-sub { font-weight: 400; font-size: 12px; opacity: .85; }

/* League directory (admin/Leagues/LeagueDir.asp) */
.sp-leaguedir > form > .sp-card, .sp-leaguedir .sp-legacy-statusbar { margin-bottom: 16px; }
.sp-leaguedir-table td { vertical-align: middle; }
.sp-leaguedir .sp-stats { gap: 26px; }

/* Divisions (admin/Divisions/Divisions.asp) */
.sp-divisions > form > .sp-card, .sp-divisions > form > .sp-alert, .sp-divisions .sp-legacy-statusbar { margin-bottom: 16px; }
.sp-div-table td { vertical-align: middle; }
.sp-div-toggle { display: inline-block; width: 16px; text-decoration: none !important; color: var(--sp-primary); }
.sp-div-actions a { margin-right: 12px; font-size: 12px; }
.sp-div-actions a.sp-btn { margin-right: 4px; }
.sp-page a.sp-danger-link:link, .sp-page a.sp-danger-link:visited { color: var(--sp-red); }
.sp-div-table tr.sp-div-teams td { background: #fafbfc; padding-top: 2px; }
.sp-div-table tr.sp-div-teams:hover td { background: #fafbfc; }
.sp-div-teamlist { list-style: none; margin: 0; padding: 0 0 4px 16px; columns: 2; column-gap: 24px; }
.sp-div-teamlist li { padding: 3px 0; break-inside: avoid; }
.sp-div-table tr.sp-div-edit td { background: #fff8e6; }

/* Admin teams list (admin/Teams/Teams.asp) */
.sp-adminteams > form > .sp-card, .sp-adminteams > form > .sp-alert, .sp-adminteams .sp-legacy-statusbar { margin-bottom: 16px; }
.sp-adminteams-table td { vertical-align: middle; }
.sp-adminteams-table .sp-badge { margin-left: 6px; }
.sp-adminteams-table tr.sp-div-edit td { background: #fff8e6; }

/* Products list (admin/Products/Products.asp) */
.sp-products > form > .sp-card { margin-bottom: 16px; }
.sp-products-table td { vertical-align: middle; }
.sp-products-table th.num, .sp-products-table td.num { text-align: right; white-space: nowrap; }

/* ---- ProductEdit.asp ---- */
.sp-productedit > form > .sp-card, .sp-productedit > form > .sp-alert, .sp-productedit > form > .sp-note { margin-bottom: 16px; }
.sp-productedit .sp-field-grid input.sp-pe-name { width: 420px; font-weight: 600; }
.sp-productedit .sp-field-grid select { min-width: 260px; }
.sp-prod-pics { display: flex; flex-wrap: wrap; gap: 28px; }
.sp-prod-pic img { display: block; width: 60px; height: 60px; object-fit: contain; border: 1px solid var(--sp-border, #d9dee5); border-radius: 6px; background: #fff; }
.sp-prod-pic .sp-group-label { margin-top: 0; }
.sp-prod-features td { vertical-align: top; }
.sp-prod-features input[type=text] { width: 100%; max-width: 320px; }
.sp-prod-features textarea { width: 100%; max-width: 420px; }
.sp-prod-features tr.sp-div-edit td { background: #fff8e6; }
.sp-prod-features tr.sp-prod-newfeature td { background: #f7f9fc; }
.sp-pe-actions .sp-card-foot { display: flex; gap: 8px; align-items: center; }

/* ---- TeamMove.asp ---- */
.sp-teammove > form > .sp-alert, .sp-teammove > form > .sp-note { margin: 0 0 12px; }
.sp-tmv-grid { display: grid; grid-template-columns: minmax(240px, 1fr) auto minmax(240px, 1fr); gap: 16px; align-items: stretch; margin-bottom: 16px; }
.sp-tmv-side { margin: 0; }
.sp-tmv-side .sp-card-body { display: flex; flex-direction: column; }
.sp-tmv-label { display: block; margin: 8px 0 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--sp-muted, #6b7785); }
.sp-tmv-label:first-child { margin-top: 0; }
.sp-tmv-side select { width: 100%; box-sizing: border-box; font-size: 13px; padding: 5px 6px; border: 1px solid #c9d3de; border-radius: 6px; background: #fff; }
.sp-tmv-side select.sp-tmv-list { padding: 4px; min-height: 260px; }
.sp-tmv-list option { padding: 3px 6px; border-radius: 4px; }
.sp-tmv-mid { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.sp-tmv-mid .sp-btn { min-width: 96px; }
.sp-tmv-actions .sp-card-foot { display: flex; gap: 8px; }

/* ---- Finance/Functions/Invoices.asp ---- */
.sp-invoices > form > .sp-card, .sp-invoices > form > .sp-alert, .sp-invoices > form > .sp-note { margin-bottom: 16px; }
.sp-invoices .sp-inv-del { display: inline-flex; gap: 8px; }
.sp-invoices .sp-inv-filters select { font-size: 12px; padding: 4px 6px; border: 1px solid #c9d3de; border-radius: 4px; max-width: 280px; }
.sp-invoices .sp-inv-filters input[type=text] { font-size: 12px; padding: 4px 6px; border: 1px solid #c9d3de; border-radius: 4px; }
.sp-invoices input.sp-inv-search { width: 220px; }
.sp-invoices input.sp-btn-sm { padding: 3px 10px; font-size: 12px; }
.sp-invoices input.sp-btn[disabled] { opacity: .45; cursor: default; }
.sp-inv-exports { display: inline-flex; gap: 6px; }
.sp-inv-stats { border-bottom: 1px solid var(--sp-border); }
.sp-inv-table td { vertical-align: middle; }
.sp-inv-table th.num, .sp-inv-table td.num { text-align: right; white-space: nowrap; }
.sp-inv-table th a:link, .sp-inv-table th a:visited { color: var(--sp-primary); text-decoration: underline; }
.sp-inv-table tr.sp-group-row td { background: #eef3f8; font-weight: 700; color: var(--sp-primary); border-top: 1px solid var(--sp-border); }
.sp-inv-table tr.sp-inv-total td { background: #f0f3f7; font-weight: 600; border-top: 2px solid var(--sp-border); }
input.sp-th-sort { border: 0; background: transparent; padding: 0; cursor: pointer; font: inherit; font-size: 11px; font-weight: 700;
                   text-transform: uppercase; letter-spacing: .03em; color: var(--sp-primary); text-decoration: underline; }
.sp-inv-table td:nth-child(3) { min-width: 240px; }
.sp-inv-table td:nth-child(4), .sp-inv-table td:nth-child(7), .sp-inv-table th:nth-child(4) { white-space: nowrap; }

/* ---- Finance/Functions/AddInvoice.asp ---- */
.sp-addinvoice > form > .sp-card, .sp-addinvoice > form > .sp-alert { margin-bottom: 16px; }
.sp-ai-payee { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--sp-border); }
.sp-ai-payee-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--sp-muted); }
.sp-ai-payee-name { font-size: 16px; font-weight: 700; color: var(--sp-primary); }
.sp-ai-created { margin-left: auto; font-size: 12px; }
.sp-ai-grid { display: grid; grid-template-columns: 120px minmax(0, 1fr) 120px minmax(0, 1fr); gap: 10px 14px; align-items: center; }
.sp-ai-grid > label { text-align: right; font-weight: 600; color: #444; }
.sp-ai-grid input[type=text], .sp-ai-grid select { padding: 5px 8px; border: 1px solid #c9d3de; border-radius: 6px; font-size: 13px; }
.sp-ai-grid input.sp-ai-wide { width: 100%; max-width: 380px; box-sizing: border-box; }
.sp-ai-note { margin: 14px 0 0; }
.sp-ai-actions { display: flex; gap: 8px; align-items: center; }
.sp-ai-table td { vertical-align: middle; }
.sp-ai-table th.num, .sp-ai-table td.num { text-align: right; white-space: nowrap; }
.sp-ai-table tr.sp-ai-detail td { background: #fff8e6; font-size: 12px; color: #444; padding-top: 4px; padding-bottom: 6px; }
.sp-ai-table tr.sp-ai-hit td { background: #fff3b0; }
.sp-ai-table tr.sp-ai-editrow td { background: #eef5fc; }
.sp-ai-table tr.sp-ai-editrow.sp-ai-detail td { background: #fff8e6; }
.sp-ai-table input[type=text], .sp-ai-table select { padding: 4px 6px; border: 1px solid #c9d3de; border-radius: 4px; font-size: 12px; }
.sp-ai-table input.sp-ai-qty { width: 44px; text-align: center; }
.sp-ai-table input.sp-ai-price { width: 80px; text-align: right; }
.sp-ai-table input.sp-ai-desc { width: 100%; min-width: 160px; box-sizing: border-box; }
.sp-ai-table select.sp-ai-owner { max-width: 260px; }
.sp-ai-table select#ProductId { max-width: 200px; }
.sp-page a.sp-ai-info:link, .sp-page a.sp-ai-info:visited { text-decoration: none; margin-left: 4px; color: var(--sp-primary); }
.sp-ai-matches { font-weight: 600; color: var(--sp-primary); }
.sp-ai-paybar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sp-ai-balance { margin-left: auto; font-size: 14px; color: #444; }
.sp-ai-balance b { font-size: 18px; color: var(--sp-primary); margin-left: 6px; }
.sp-ai-trans { margin-bottom: 16px; }
.sp-ai-trans .sp-card-body { padding: 14px; }
.sp-ai-trans-note { font-size: 12px; }
.sp-ai-trans-foot { display: flex; align-items: center; gap: 10px; }
.sp-ai-trans-foot .sp-muted { font-size: 12px; }
.sp-ai-itemtable { width: 100%; border-collapse: collapse; font-size: 12px; }
.sp-ai-itemtable th { text-align: left; font-size: 10px; text-transform: uppercase; color: var(--sp-muted); padding: 2px 8px; border-bottom: 1px solid #ecd9a8; }
.sp-ai-itemtable td { padding: 3px 8px; background: transparent !important; }
.sp-ai-itemtable th.num, .sp-ai-itemtable td.num { text-align: right; }

/* ---- Registration/ItemDetails.asp ---- */
.sp-itemdetails > form > .sp-card, .sp-itemdetails > .sp-alert { margin-bottom: 16px; }
.sp-itemdetails fieldset.sp-idt-box { min-width: 0; padding: 0; margin: 0 0 16px; border: 1px solid var(--sp-border); }
.sp-idt-items { width: 100%; border-collapse: collapse; }
.sp-idt-items td, .sp-idt-items th { padding: 7px 10px; border-bottom: 1px solid #eef1f5; font-size: 13px; }
.sp-idt-items .newHeader, .sp-idt-items tr.newHeader td, .sp-idt-items tr.newHeader th { background: #f0f3f7; color: var(--sp-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .03em; }
.sp-idt-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sp-idt-note { margin: 0 0 12px; }
.sp-idt-pay { border-collapse: collapse; }
.sp-idt-pay td { padding: 6px 10px; vertical-align: middle; }
.sp-idt-pay td:first-child, .sp-idt-pay td.sp-idt-label { text-align: right; font-weight: 600; color: #444; white-space: nowrap; }
.sp-idt-pay input[type=text], .sp-idt-pay input[type=password], .sp-idt-pay select { padding: 5px 8px; border: 1px solid #c9d3de; border-radius: 6px; font-size: 13px; }
.sp-idt-amount { font-size: 18px; font-weight: 700; color: var(--sp-primary); margin-right: 10px; }
.sp-page a.sp-idt-device { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.sp-idt-device img { height: 16px; }
.sp-idt-purchase td { vertical-align: middle; }
.sp-idt-purchase th.num, .sp-idt-purchase td.num { text-align: right; white-space: nowrap; }
.sp-idt-purchase input[type=text], .sp-idt-purchase select { padding: 4px 6px; border: 1px solid #c9d3de; border-radius: 4px; font-size: 12px; }
.sp-idt-purchase input.sp-idt-qty { width: 44px; text-align: center; }
.sp-idt-purchase input.sp-idt-price { width: 80px; text-align: right; }
.sp-idt-purchase input.sp-idt-desc { width: 100%; min-width: 140px; box-sizing: border-box; }
.sp-idt-actions .sp-card-foot { padding: 12px 14px; }
.sp-idt-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; width: 100%; }

/* ---- Registration/RegistrationReceiptList.asp ---- */
.sp-rr-table td { vertical-align: middle; }
.sp-rr-table th.num, .sp-rr-table td.num { text-align: right; white-space: nowrap; }
.sp-rr-table tr.sp-rr-total td { background: #f0f3f7; font-weight: 700; border-top: 2px solid var(--sp-border); }
.sp-rr-foot { display: flex; align-items: center; gap: 10px; }
.sp-rr-foot .sp-muted { font-size: 12px; }

/* ---- Finance/Functions/MakePartialPay.aspx (pop-up) ---- */
body.sp-pp-body { margin: 0; padding: 14px; background: #f4f6f9; }
.sp-partialpay { max-width: none; }
.sp-pp-intro { padding-bottom: 4px; }
.sp-pp-intro .sp-note { margin: 0 0 10px; }
.sp-pp-intro .sp-alert { display: block; margin: 0 0 10px; }
.sp-pp-table { width: 100%; }
.sp-pp-table td { vertical-align: middle; }
.sp-pp-table th.num, .sp-pp-table td.num { text-align: right; white-space: nowrap; }
.sp-pp-table tr.sp-pp-off td { color: #9aa4b0; background: #fafbfc; }
.sp-pp-table tr.sp-pp-on td { background: #eef5fc; }
.sp-pp-table input.sp-pp-amount { width: 90px; text-align: right; padding: 4px 6px; border: 1px solid #c9d3de; border-radius: 4px; font-size: 13px; }
.sp-pp-table input.sp-pp-amount[readonly] { background: #f0f3f7; color: #555; }
.sp-pp-foot { display: flex; align-items: center; gap: 8px; }
.sp-pp-total { margin-left: auto; font-size: 14px; color: #444; }
.sp-pp-total span { font-size: 18px; font-weight: 700; color: var(--sp-primary); margin-left: 6px; }

/* ---- admin/admin.asp (Administration home) ---- */
.sp-adminhome > .sp-card, .sp-adminhome > .sp-note { margin-bottom: 16px; }
.sp-ah-find input[type=text] { width: 260px; padding: 6px 10px; border: 1px solid #c9d3de; border-radius: 6px; font-size: 13px; }
.sp-ah-grid { column-width: 340px; column-gap: 16px; }
.sp-ah-grid > .sp-card { display: inline-block; width: 100%; margin: 0 0 16px; break-inside: avoid; -webkit-column-break-inside: avoid; vertical-align: top; }
.sp-ah-list { list-style: none; margin: 0; padding: 4px 0; }
.sp-ah-item { display: block; padding: 8px 14px; border-bottom: 1px solid #eef1f5; }
.sp-ah-item:last-child { border-bottom: 0; }
.sp-ah-item:hover { background: #f7f9fc; }
.sp-page a.sp-ah-link:link, .sp-page a.sp-ah-link:visited, .sp-ah-service a:link, .sp-ah-service a:visited { font-weight: 600; color: var(--sp-primary); text-decoration: none; }
.sp-page a.sp-ah-link:hover, .sp-ah-service a:hover { text-decoration: underline; }
.sp-ah-link { display: block; font-size: 14px; }
.sp-ah-service span { float: none !important; }
.sp-ah-desc { display: block; margin-top: 2px; font-size: 12px; color: var(--sp-muted); }
.sp-ah-spadmin .sp-card-head { background: #5b3b7a; }

/* ---- admin/ASOinformation/ASOinformation.asp ---- */
.sp-asoinfo > .sp-note, .sp-asoinfo > .sp-alert { margin: 0 0 14px; }
.sp-ai-fields { grid-template-columns: 180px 1fr; }
.sp-ai-fields .sp-ai-span { grid-column: 1 / -1; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid #eef1f5; }
.sp-ai-fields .sp-ai-span:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.sp-ai-fields input.sp-ai-wide { width: 420px; }
.sp-ai-fields select { padding: 5px 8px; border: 1px solid #c9d3de; border-radius: 6px; font-size: 13px; max-width: 320px; }
.sp-ai-text { max-width: 640px; line-height: 1.5; }
.sp-ai-foot { display: flex; gap: 8px; }

/* ---- admin/ASOinformation: News / Dates / Hours lists, Settings ---- */
.sp-asolist > .sp-alert { margin: 0 0 14px; }
.sp-ao-table td { vertical-align: top; }
.sp-ao-table tr.sp-ao-edit td { background: #eef5fc; }
.sp-ao-table input[type=text], .sp-ao-table textarea { padding: 5px 8px; border: 1px solid #c9d3de; border-radius: 6px; font-size: 13px; font-family: inherit; }
.sp-ao-table .sp-ao-wide { display: block; width: 100%; max-width: 640px; box-sizing: border-box; margin-bottom: 6px; }
.sp-ao-table input.sp-ao-date { width: 100px; }
.sp-ao-text { margin-top: 4px; color: #444; line-height: 1.45; }
.sp-ao-foot { display: flex; gap: 8px; }
.sp-asosettings > .sp-card, .sp-asosettings > .sp-note, .sp-asosettings form > .sp-card { margin-bottom: 16px; }
.sp-as-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.sp-as-grid .sp-card { margin: 0 0 16px; }
.sp-as-grid > .sp-card { margin: 0; }
.sp-as-choices { display: flex; flex-direction: column; gap: 8px; }
.sp-as-choices .sp-check { display: inline-flex; align-items: center; }
.sp-as-choices select.sp-as-team { margin-left: 22px; max-width: 280px; padding: 4px 6px; border: 1px solid #c9d3de; border-radius: 4px; }
.sp-as-radios td { vertical-align: middle; }
.sp-as-actions .sp-card-foot { display: flex; gap: 8px; align-items: center; }

/* ---- admin/users/isisusers.asp ---- */
.sp-users form > .sp-card { margin-bottom: 16px; }
.sp-users .sp-toolbar select, .sp-users .sp-toolbar input[type=text] { padding: 4px 6px; border: 1px solid #c9d3de; border-radius: 4px; font-size: 12px; }
.sp-us-filter { display: inline-flex; align-items: center; gap: 8px; }
.sp-us-filter input { padding: 4px 8px; border: 0; border-radius: 4px; font-size: 12px; width: 180px; }
.sp-us-table td { vertical-align: middle; }
.sp-page a.sp-us-name:link, .sp-page a.sp-us-name:visited { font-weight: 600; }

/* ---- admin/users/isisusersearch.asp ---- */
.sp-usersearch > .sp-card { margin-bottom: 16px; }
.sp-usersearch .sp-toolbar input[type=text] { padding: 4px 8px; border: 1px solid #c9d3de; border-radius: 4px; font-size: 13px; }
.sp-us-results tr.sp-us-pick { cursor: pointer; }
.sp-us-results tr.sp-us-pick:hover td { background: #eef5fc; }

/* ---- admin/users/isisuseredit.asp ---- */
.sp-useredit > .sp-alert { margin: 0 0 14px; }
.sp-ue-grid { grid-template-columns: 160px 1fr; }
.sp-ue-grid .sp-ue-span { grid-column: 1 / -1; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid #eef1f5; }
.sp-ue-grid .sp-ue-span:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.sp-ue-grid input.sp-ue-wide { width: 420px; }
.sp-ue-grid select { padding: 5px 8px; border: 1px solid #c9d3de; border-radius: 6px; font-size: 13px; }
.sp-ue-grid input[type=password] { width: 320px; max-width: 100%; padding: 5px 8px; border: 1px solid #c9d3de; border-radius: 6px; }
.sp-ue-foot { display: flex; gap: 8px; align-items: center; }

/* ---- admin/users/Officials ---- */
.sp-officials form > .sp-card, .sp-officials form > .sp-note { margin-bottom: 16px; }
.sp-officials .sp-toolbar select { padding: 4px 6px; border: 1px solid #c9d3de; border-radius: 4px; font-size: 12px; }
.sp-of-links .sp-btn-sm, .sp-of-links a.sp-btn-sm:link, .sp-of-links a.sp-btn-sm:visited { font-size: 12px; padding: 4px 10px; }
.sp-of-table td { vertical-align: middle; }
.sp-page a.sp-of-name:link, .sp-page a.sp-of-name:visited { font-weight: 600; }
.sp-officialedit form > .sp-card { margin-bottom: 16px; }
.sp-oe-partic > table { width: 100%; }
.sp-oe-details { display: flex; flex-wrap: wrap; gap: 24px; }
.sp-oe-col { flex: 1 1 320px; min-width: 0; }
.sp-oe-label { display: block; margin: 0 0 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--sp-muted); }
.sp-oe-col textarea { width: 100%; box-sizing: border-box; padding: 6px 8px; border: 1px solid #c9d3de; border-radius: 6px; font-family: inherit; font-size: 13px; margin-bottom: 12px; }
.sp-oe-checks { display: flex; gap: 20px; }
.sp-oe-assign { display: flex; gap: 8px; align-items: center; }
.sp-oe-assign select { flex: 1 1 0; min-width: 120px; padding: 4px; border: 1px solid #c9d3de; border-radius: 6px; font-size: 12px; }
.sp-oe-move { display: flex; flex-direction: column; gap: 6px; }
.sp-oe-hint { display: block; margin: 8px 0 0; }
.sp-oe-grid { grid-template-columns: 140px 1fr; }
.sp-oe-actions .sp-card-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sp-or-table tr.sp-group-row td { background: #eef3f8; font-weight: 700; color: var(--sp-primary); }
.sp-or-table tr.sp-inv-total td { background: #f0f3f7; font-weight: 600; }
.sp-or-table th.num, .sp-or-table td.num { text-align: right; }

/* ---- Registration/Tools/SendEmailForm.asp ---- */
.sp-sendemail > .sp-alert { margin: 0 0 14px; }
.sp-se-grid { grid-template-columns: 130px 1fr; }
.sp-se-grid textarea { width: 100%; max-width: 760px; box-sizing: border-box; padding: 6px 8px; border: 1px solid #c9d3de; border-radius: 6px; font-family: inherit; font-size: 13px; }
.sp-se-grid input.sp-se-wide { width: 100%; max-width: 520px; box-sizing: border-box; }
.sp-se-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sp-se-results td { vertical-align: middle; }
.sp-of-sportstats { background: #f4f8fc; }
.sp-of-sportname { font-weight: 700; color: var(--sp-primary); font-size: 14px; padding-right: 6px; border-right: 2px solid #d6e2ee; margin-right: 4px; }
.sp-of-types { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.sp-of-type { display: inline-block; padding: 3px 10px; border-radius: 12px; background: #fff; border: 1px solid #d6e2ee; font-size: 12px; }

/* ---- nobgc.asp (Background Check Administration) ---- */
.sp-bgc { max-width: 760px; margin: 0 auto; }
.sp-bgc .sp-card-body p { margin: 0 0 12px; font-size: 13px; line-height: 1.6; color: #333; }
.sp-bgc .sp-card-body p.sp-bgc-lead { font-size: 14px; color: var(--sp-primary); font-weight: 600; }
.sp-bgc-who { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.sp-bgc-pill { padding: 3px 12px; border-radius: 12px; background: var(--sp-primary-light); border: 1px solid #d6e2ee; font-size: 12px; font-weight: 600; color: var(--sp-primary); }
.sp-bgc-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sp-bgc-foot .sp-bgc-video { margin-left: auto; }

/* ---- ReceiptHeader.asp (Registration Receipt Header) ---- */
.sp-rhead { max-width: 760px; margin: 0 auto; }
.sp-rhead > .sp-note, .sp-rhead > .sp-alert { margin: 0 0 14px; }
.sp-rh-help { margin: 0 0 10px; font-size: 13px; line-height: 1.5; color: #444; }
.sp-page textarea.sp-rh-text { width: 100%; box-sizing: border-box; font-family: Consolas, "Courier New", monospace; font-size: 13px; line-height: 1.5; padding: 8px 10px; border: 1px solid #c9d6e3; border-radius: 4px; resize: vertical; }
.sp-rh-count { text-align: right; font-size: 12px; color: var(--sp-muted); margin-top: 4px; }
.sp-rh-count.sp-rh-full { color: #b42318; font-weight: 600; }
.sp-rh-foot { display: flex; gap: 8px; }

/* ---- Receipt header at program / league level (ReceiptHeaderUtils.asp) ---- */
.sp-rhu { margin-top: 14px; text-align: left; }
.sp-rhu-status { margin-bottom: 8px; }
.sp-rhu-inh { margin-top: 10px; font-size: 13px; }
.sp-rhu-inh summary { cursor: pointer; color: var(--sp-primary); font-weight: 600; }
.sp-rhu-inh pre { white-space: pre-wrap; margin: 8px 0; padding: 8px 10px; background: #f7f9fb; border: 1px solid #e2e8ef; border-radius: 4px; font-family: Consolas, "Courier New", monospace; font-size: 12px; }
.sp-rhu-league { width: auto; max-width: 720px; margin: 6px auto 14px; padding: 0; text-align: left; }
.sp-rhu-league .sp-rhu { margin-top: 0; }
.sp-rh-levels { margin-top: 14px; font-size: 13px; line-height: 1.5; }

/* ---- ReceiptHeader.asp: formatted editor + plain-text preview ---- */
.sp-rhead .sp-rh-editor { min-height: 220px; max-height: 420px; }
.sp-rhead textarea.sp-rh-source { min-height: 220px; }
.sp-rh-preview-label { margin: 14px 0 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--sp-muted); }
.sp-rh-preview { margin: 0; padding: 10px 12px; max-height: 260px; overflow: auto; white-space: pre-wrap; background: #f7f9fb;
	border: 1px dashed #c9d6e3; border-radius: 4px; font-family: Consolas, "Courier New", monospace; font-size: 12px; line-height: 1.5; color: #333; }
.sp-rh-preview-empty { color: #9aa5b1; font-style: italic; }

/* ---- LeagueEdit.asp ---- */
.sp-leagueedit .sp-le-tab > .sp-card, .sp-leagueedit > form > .sp-card { margin-bottom: 16px; }
.sp-le-namerow { display: flex; align-items: flex-start; gap: 16px; }
.sp-le-namecol { flex: 1 1 auto; min-width: 0; }
.sp-le-program { margin-bottom: 6px; font-size: 13px; color: var(--sp-muted); }
.sp-le-program a { font-weight: 600; }
.sp-le-prevnext { display: flex; gap: 6px; flex: 0 0 auto; }
.sp-le-cal { display: inline-block; margin-left: 4px; vertical-align: middle; }
.sp-le-to { margin: 0 6px; color: var(--sp-muted); }
.sp-le-daterange { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.sp-le-checks, .sp-le-radios { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 14px; }
.sp-le-checklist { display: flex; flex-direction: column; gap: 8px; }
.sp-le-btnrow { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-le-inline { margin-left: 10px; }
.sp-le-fees { width: 100%; table-layout: fixed; }
.sp-le-fees th:first-child, .sp-le-fees td.sp-le-rowlabel { width: 210px; }
.sp-le-fees td { vertical-align: top; }
.sp-le-fees td.sp-le-rowlabel { font-weight: 600; color: #444; vertical-align: middle; }
.sp-le-fees .sp-le-regular { background: #f4f8fc; }
.sp-le-fees tr.sp-le-dates td { padding-top: 10px; padding-bottom: 12px; }
.sp-le-fees tr.sp-le-dates input.sp-input-date { width: 150px; font-size: 12px; }
.sp-le-datelabel { margin: 2px 0 3px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--sp-muted); }
.sp-le-datelabel ~ .sp-le-datelabel { margin-top: 8px; }
.sp-le-datenote { margin-top: 6px; font-size: 11px; color: var(--sp-muted); font-style: italic; }
.sp-le-datenote-top { margin: 2px 0 8px; }
.sp-le-money { display: inline-flex; align-items: center; gap: 3px; color: var(--sp-muted); }
.sp-page input.sp-le-fee { width: 80px; text-align: right; }
.sp-le-feenote { margin: 8px 0 14px; font-size: 12px; }
.sp-le-feedesc { margin-top: 4px; }
.sp-le-eligbox { grid-column: 2; padding: 10px 12px; border: 1px dashed #c9d6e3; border-radius: 6px; background: #fafcfe; }
.sp-le-eligbox .sp-field-grid-tight { grid-template-columns: 150px 1fr; }
.sp-le-radios { margin-bottom: 0; }
.sp-le-agewin { grid-column: 1 / -1; margin-top: 4px; padding: 8px 10px; border-radius: 4px; background: #fff; border: 1px solid #e2e8ef; font-size: 13px; line-height: 1.6; }
.sp-le-agewin:empty { display: none; }
.sp-le-agewarn { color: var(--sp-red); font-weight: 600; }
.sp-le-eligmsg { margin: 12px 16px 0; }
/* browser date pickers (LeagueEdit) */
.sp-page input[type=datetime-local] {
    font-family: inherit; font-size: 13px; color: #222; background: #fff;
    padding: 5px 8px; border: 1px solid #c9d3de; border-radius: 4px; box-sizing: border-box;
}
.sp-page input[type=datetime-local]:focus { outline: none; border-color: var(--sp-primary); box-shadow: 0 0 0 3px rgba(31,78,121,.15); }
.sp-page input.sp-input-datetime { width: 215px; }
.sp-page input[type=date].sp-input-date { width: 150px; }
.sp-le-fees tr.sp-le-dates input.sp-input-datetime { width: 100%; max-width: 215px; font-size: 12px; }
.sp-le-tz { margin-top: 4px; font-size: 11px; font-weight: 400; color: var(--sp-muted); }

/* ---- ManageLeagueAccess.asp (pop-up) ---- */
.sp-popup-body { margin: 0; padding: 14px; background: #f3f5f8; }
.sp-mla { max-width: 1000px; margin: 0 auto; }
.sp-mla > .sp-note, .sp-mla > .sp-alert { margin: 0 0 12px; }
.sp-mla-help { margin-left: auto; font-size: 12px; max-width: 420px; text-align: right; }
.sp-mla-table td { vertical-align: top; }
.sp-mla-table td.sp-mla-league { font-weight: 600; color: var(--sp-primary); width: 200px; }
.sp-mla-users { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.sp-mla-user { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px 3px 6px; border: 1px solid #d6e2ee; border-radius: 14px; background: #fff; font-size: 12px; cursor: pointer; white-space: nowrap; }
.sp-mla-user:has(input:checked) { background: var(--sp-primary-light); border-color: #9fbbd9; color: var(--sp-primary); font-weight: 600; }
.sp-mla-user input { margin: 0; }
.sp-mla-allcol { width: 90px; white-space: nowrap; font-size: 12px; }
.sp-mla-peruser { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 16px; border-top: 1px solid #e6ebf1; font-size: 12px; }
.sp-mla-peruser .sp-group-label { margin: 0; }
.sp-mla-person { white-space: nowrap; }
.sp-mla-foot { display: flex; gap: 8px; }
/* ManageLeagueAccess: grid (people x leagues) */
.sp-mla { max-width: none; }
.sp-mla-filter { display: flex; align-items: center; gap: 16px; padding: 10px 16px; border-bottom: 1px solid #e6ebf1; }
.sp-page .sp-mla-filter input[type=text] { width: 260px; }
.sp-mla-scroll { overflow: auto; max-height: calc(100vh - 260px); }
.sp-mla-grid { border-collapse: separate; border-spacing: 0; }
.sp-mla-grid thead th { position: sticky; top: 0; z-index: 2; background: #eef2f7; vertical-align: bottom; }
.sp-mla-grid th.sp-mla-lcol { min-width: 90px; text-transform: none; letter-spacing: 0; }
.sp-mla-lname { font-weight: 700; color: var(--sp-primary); font-size: 12px; white-space: nowrap; }
.sp-mla-lsel { font-weight: 400; font-size: 11px; margin-top: 2px; white-space: nowrap; }
.sp-mla-grid td.sp-mla-namecol, .sp-mla-grid th.sp-mla-namecol { position: sticky; left: 0; background: #fff; z-index: 1; white-space: nowrap; min-width: 220px; }
.sp-mla-grid thead th.sp-mla-namecol { z-index: 3; background: #eef2f7; }
.sp-mla-grid td.sp-mla-namecol { font-weight: 600; color: #333; }
.sp-mla-grid tbody tr:hover td { background: #f7faff; }
.sp-mla-cell { padding: 4px 6px; }
.sp-mla-cell input { width: 16px; height: 16px; cursor: pointer; margin: 0; }
.sp-mla-grid td.sp-mla-on { background: var(--sp-primary-light); }
.sp-mla-n { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--sp-primary); color: #fff; font-size: 10px; font-weight: 700; text-align: center; }
.sp-mla-n:empty { display: none; }
.sp-mla-grid .sp-mla-allcol { font-size: 12px; }
.sp-mla-view { margin-left: auto; font-size: 12px; color: var(--sp-muted); }
.sp-mla-byleague th.sp-mla-lcol { min-width: 84px; max-width: 120px; }
.sp-mla-byleague .sp-mla-lname { white-space: normal; line-height: 1.25; }

/* ---- ProgramProduct.asp (pop-up) ---- */
.sp-pprod { max-width: 760px; margin: 0 auto; }
.sp-pprod > .sp-note, .sp-pprod > .sp-alert { margin: 0 0 12px; }
.sp-pprod-grid { grid-template-columns: 140px 1fr; }
.sp-pprod-grid select { max-width: 100%; }
.sp-pprod-roles { display: flex; gap: 18px; }
.sp-pprod-dates { display: flex; align-items: center; gap: 8px; }
.sp-pprod-foot { display: flex; gap: 8px; }
.sp-pprod-name { font-weight: 600; }
.sp-pprod-sub { font-size: 11px; margin-top: 2px; }
.sp-pprod-list td { vertical-align: middle; }

/* ---- OnlineSwitchSetup.asp (Form Settings) ---- */
.sp-oss > .sp-note, .sp-oss > .sp-alert { margin: 0 0 14px; }
.sp-oss .sp-toolbar label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #444; margin-right: 14px; }
.sp-oss-legend { gap: 8px; font-size: 12px; flex-wrap: wrap; }
.sp-oss-scroll { max-height: 65vh; overflow: auto; }
.sp-oss-table thead th { position: sticky; top: 0; z-index: 1; background: #eef2f7; }
.sp-oss-table td { vertical-align: middle; }
.sp-oss-name { font-weight: 600; color: #333; }
.sp-oss-desc { font-size: 11px; margin-top: 2px; }
.sp-oss-src { display: inline-block; padding: 1px 7px; border-radius: 9px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; border: 1px solid transparent; }
.sp-oss-src-p { background: var(--sp-primary); color: #fff; }
.sp-oss-src-o { background: var(--sp-primary-light); color: var(--sp-primary); border-color: #c6d7ea; }
.sp-oss-src-d { background: #f1f3f5; color: #6b7785; border-color: #dde3ea; }
.sp-oss-src-l { background: #fff4e5; color: #8a4b00; border-color: #f5d9a8; }
.sp-oss-table td .sp-oss-src { margin-left: 4px; }
.sp-oss-locked td { color: #8a94a0; background: #fafbfc; }
.sp-oss-changed td { background: #fffbe8; }
.sp-page input.sp-oss-label { width: 100%; }
.sp-oss-foot { display: flex; align-items: center; gap: 12px; }

/* ---- Accounts.asp / AccountEdit.asp ---- */
.sp-accounts .sp-acc-filter label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #444; margin-left: 16px; }
.sp-acc-help { font-size: 12px; }
.sp-acc-name { font-weight: 600; }
.sp-acc-table td { vertical-align: middle; }
.sp-accedit { max-width: 760px; }
.sp-accedit > .sp-alert { margin: 0 0 14px; }
.sp-acc-typenote { margin: 0; font-size: 12px; }
.sp-acc-foot { display: flex; gap: 8px; align-items: center; }

/* ---- TeamViewReport.asp ---- */
.sp-teamview-box { background: #fff; border: 1px solid #dde3ea; border-radius: 8px; overflow: hidden; }
.sp-teamview-frame { display: block; width: 100%; height: 800px; border: 0; background: #fff; }

/* ---- admin.asp: SportsPilot invoices banner ---- */
.sp-ah-pay { margin: 0 0 16px; border: 1px solid #f5c26b; background: linear-gradient(90deg, #fff6e5, #fff); }
.sp-ah-pay-body { display: flex; align-items: center; gap: 16px; padding: 14px 18px; }
.sp-ah-pay-icon { flex: 0 0 44px; height: 44px; border-radius: 50%; background: #f59f00; color: #fff; font-size: 22px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.sp-ah-pay-text { flex: 1 1 auto; }
.sp-ah-pay-text b { display: block; font-size: 16px; color: #7a4a00; }
.sp-ah-pay-text span { font-size: 13px; color: #5b4a2e; }
.sp-ah-pay-action { flex: 0 0 auto; text-align: right; }
.sp-ah-pay .sp-ah-pay-action a:link, .sp-ah-pay .sp-ah-pay-action a:visited {
    display: inline-block; padding: 9px 20px; border-radius: 6px; background: #f59f00; color: #fff !important;
    font-size: 14px; font-weight: 700; text-decoration: none !important; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.sp-ah-pay .sp-ah-pay-action a:hover { background: #d98b00; }

/* ---- CopyLeague.asp ---- */
.sp-copyleague > .sp-note, .sp-copyleague > .sp-alert { margin: 0 0 14px; }
.sp-cl-grid { display: grid; grid-template-columns: 1fr 150px 1fr; gap: 16px; align-items: start; }
.sp-cl-grid > .sp-card { margin: 0; }
.sp-cl-grid select { width: 100%; }
.sp-cl-label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--sp-muted); margin: 0 0 4px; }
.sp-cl-listhead { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 4px; font-size: 12px; }
.sp-cl-listhead .sp-cl-label { margin: 0; }
.sp-cl-list { max-height: 420px; overflow: auto; border: 1px solid #dde3ea; border-radius: 6px; background: #fff; }
.sp-cl-item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-bottom: 1px solid #eef1f5; font-size: 13px; cursor: pointer; }
.sp-cl-item:last-child { border-bottom: 0; }
.sp-cl-item:hover { background: #f7f9fc; }
.sp-cl-item input { margin: 0; }
.sp-cl-item .sp-badge { margin-left: auto; }
.sp-cl-dest .sp-cl-item { cursor: default; color: #444; }
.sp-cl-arrow { align-self: center; text-align: center; }
.sp-cl-arrow .sp-btn { width: 100%; padding: 10px 8px; }
.sp-cl-arrow .sp-muted { margin-top: 6px; font-size: 12px; }
.sp-teamcopy .sp-tcp-roster { display: block; margin-top: 10px; font-size: 12px; text-align: center; }

/* ---- Users/Merge/FamilySearch.aspx (Family Merge) ---- */
.sp-fmerge { max-width: 1150px; margin: 0 auto; }
.sp-fmerge > .sp-card, .sp-fmerge > .sp-alert, .sp-fmerge > .sp-note { margin: 0 0 14px; }
.sp-fm-help { font-size: 13px; line-height: 1.5; color: #444; }
.sp-fm-startover { display: flex; gap: 8px; margin: 0 0 14px; }
.sp-fm-wizard { width: 100%; border-collapse: collapse; }
.sp-fm-wizard > tbody > tr > td { padding: 0; }
.sp-fm-steps { display: flex; gap: 8px; margin: 0 0 14px; }
.sp-fm-step { flex: 1 1 0; padding: 9px 12px; border-radius: 6px; background: #eef2f7; color: var(--sp-muted); font-weight: 600; font-size: 13px; }
.sp-fm-step b { display: inline-block; width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 50%; background: #c9d6e3; color: #fff; margin-right: 6px; }
.sp-fm-step-on { background: var(--sp-primary); color: #fff; }
.sp-fm-step-on b { background: #fff; color: var(--sp-primary); }
.sp-fm-step-done b { background: var(--sp-green); }
.sp-fm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.sp-fm-cols > .sp-card { margin: 0; }
.sp-fm-master .sp-card-head { background: var(--sp-primary); }
.sp-fm-second .sp-card-head { background: #8a4b00; }
.sp-fm-hint { font-size: 12px; margin-top: 8px; }
.sp-fm-grid { width: 100%; }
.sp-fm-grid td { vertical-align: middle; }
.sp-fm-grid tr.sp-fm-selected td { background: #e6f4ea; font-weight: 600; }
.sp-fm-grid tr.sp-fm-selected td:first-child a { color: var(--sp-green); }
.sp-fm-grid td.sp-fm-email { max-width: 200px; word-break: break-all; font-size: 12px; }
.sp-fm-members { font-size: 12px; color: #555; }
.sp-fm-empty td { padding: 18px 12px; color: var(--sp-muted); text-align: center; }
.sp-fm-info { font-size: 13px; line-height: 1.6; }
.sp-fm-name { font-size: 16px; font-weight: 700; color: var(--sp-primary); }
.sp-fm-second .sp-fm-name { color: #8a4b00; }
.sp-fm-sub { padding: 8px 14px 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--sp-muted); border-top: 1px solid #eef1f5; }
.sp-page select.sp-fm-option { min-width: 170px; }
.sp-fm-warn { margin: 14px 0 0; }
.sp-fm-nav { padding-top: 14px; text-align: right; }
.sp-fm-nav input.sp-btn { margin-left: 8px; }

/* ---- Programs/PriorTeamValidation.asp (pop-up) ---- */
.sp-ptv { max-width: 560px; margin: 0 auto; }
.sp-ptv-help { margin: 0 0 10px; font-size: 13px; line-height: 1.5; color: #444; }
.sp-ptv-any { display: block; padding: 8px 10px; border: 1px solid #c6d7ea; border-radius: 6px; background: var(--sp-primary-light); margin-bottom: 10px; cursor: pointer; }
.sp-ptv-any input { margin-right: 6px; }
.sp-ptv-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 12px; }
.sp-page .sp-ptv-tools input[type=text] { width: 220px; }
.sp-ptv-list { max-height: 330px; overflow: auto; border: 1px solid #dde3ea; border-radius: 6px; }
.sp-ptv-item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-bottom: 1px solid #eef1f5; font-size: 13px; cursor: pointer; }
.sp-ptv-item:last-child { border-bottom: 0; }
.sp-ptv-item:hover { background: #f7f9fc; }
.sp-ptv-item input { margin: 0; }
.sp-ptv-foot { display: flex; gap: 8px; align-items: center; }
.sp-ptv-foot .sp-muted { margin-left: auto; font-size: 12px; }

/* ---- Users/Merge/SearchDuplicates.asp, SearchDuplicatesBySpid.asp ---- */
.sp-dup > .sp-note, .sp-dup > .sp-alert { margin: 0 0 14px; }
.sp-dup-help { font-size: 12px; line-height: 1.6; display: block; }
.sp-dup .sp-toolbar label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #444; }
.sp-dup-tabs { margin: 0 0 0 auto; border-bottom: 0; }
.sp-dup-table td { vertical-align: middle; }
.sp-dup-info { font-size: 12px; line-height: 1.5; }
.sp-page a.sp-dup-name { font-size: 13px; font-weight: 600; }
.sp-dup-master { display: none; color: var(--sp-green); font-weight: 700; }
.sp-dup-is-master td { background: #e6f4ea; }
.sp-dup-is-master .sp-dup-master { display: inline; }
.sp-dup-is-master select.sp-dup-opt { display: none; }
.sp-dup-other td { color: #9aa5b1; }
.sp-dup-foot { display: flex; align-items: center; gap: 10px; }
.sp-dup-cols { display: grid; grid-template-columns: 260px 1fr; gap: 16px; align-items: start; }
.sp-dup-cols > .sp-card { margin: 0; }
.sp-dup-proglist { max-height: 420px; overflow: auto; border: 1px solid #dde3ea; border-radius: 6px; margin-bottom: 10px; }
.sp-dup-prog { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-bottom: 1px solid #eef1f5; font-size: 12px; cursor: pointer; }
.sp-dup-prog:last-child { border-bottom: 0; }
.sp-page input.sp-dup-show { width: 100%; }
.sp-dup-groupsub { font-weight: 400; color: var(--sp-muted); margin-left: 8px; font-size: 12px; }
.sp-dup-table tr.sp-group-row td { background: #eef2f7; font-weight: 700; color: var(--sp-primary); padding: 6px 12px; font-size: 12px; }

/* ParticipantMerge.asp (search + merge; result table reuses .sp-dup-*) */
.sp-pmerge > .sp-note, .sp-pmerge > .sp-alert { margin: 0 0 14px; }
.sp-pm-grid { display: grid; grid-template-columns: 120px minmax(200px, 320px) 170px; gap: 10px 12px; align-items: center; }
.sp-pm-lbl { font-weight: 600; color: #444; }
.sp-pm-grid input[type=text], .sp-pm-grid select { width: 100%; box-sizing: border-box; }
.sp-pm-tip { font-size: 11px; }
.sp-req { color: #c0392b; }
.sp-pmerge .sp-pm-more { margin: 10px 12px; }

/* Family registration pages: Summary, EditFamily, EditParticipant, AddFamily, AddParticipant (.sp-fam) */
.sp-fam > .sp-card, .sp-fam > form > .sp-card { margin-bottom: 14px; }
.sp-fam > .sp-alert, .sp-fam > .sp-note { margin: 0 0 14px; }
.sp-fam .sp-r, .sp-fam .sp-table th.sp-r { text-align: right; }
.sp-page input[type=password] { font-family: inherit; font-size: 13px; padding: 5px 8px; border: 1px solid #c9d3de; border-radius: 4px; box-sizing: border-box; width: 320px; max-width: 100%; }
.sp-fam-top { display: grid; grid-template-columns: 1fr 260px; gap: 16px; padding: 14px; align-items: start; }
.sp-fam-details { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; margin: 0; }
.sp-fam-details dt { font-weight: 600; color: var(--sp-muted); }
.sp-fam-details dd { margin: 0; }
.sp-fam-regs { border: 1px solid var(--sp-border); border-radius: 6px; background: #fafbfc; padding: 4px 0 8px; }
.sp-fam-regs-head { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--sp-muted); padding: 8px 12px 4px; }
.sp-fam-regs ul { list-style: none; margin: 0; padding: 0; }
.sp-fam-regs li { padding: 4px 12px; }
.sp-fam-regs li.sp-fam-sel { background: var(--sp-green-bg); }
.sp-fam-none { padding: 4px 12px; }
.sp-fam-member { padding: 12px 14px; border-top: 1px solid var(--sp-border); }
.sp-fam-member:first-of-type { border-top: 0; }
.sp-fam-member-row { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.sp-page a.sp-fmem-name { font-size: 14px; font-weight: 700; }
.sp-fam-who .sp-muted { font-size: 12px; margin-top: 2px; }
.sp-fmem-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 14px; font-size: 12px; max-width: 60%; }
.sp-page a.sp-fam-remove { color: var(--sp-red); }
.sp-fam-rosters { margin-top: 10px; border: 1px solid var(--sp-border); }
.sp-fam-rosters th { font-size: 11px; }
.sp-fam-cart tfoot td { border-top: 2px solid var(--sp-border); background: #fafbfc; }
.sp-fam-form .sp-field-grid { grid-template-columns: 170px 1fr; }
.sp-fam-section { margin: 18px 0 10px; padding-top: 12px; border-top: 1px solid var(--sp-border); font-size: 11px; font-weight: 700;
                  text-transform: uppercase; letter-spacing: .04em; color: var(--sp-muted); }
.sp-field-grid input.sp-fam-wide { width: 420px; }
.sp-field-grid input.sp-fam-phone { width: 150px; }
.sp-field-grid input.sp-fam-ext { width: 70px; }
.sp-page .sp-fam-bad, .sp-page input.sp-fam-bad, .sp-page select.sp-fam-bad { border-color: var(--sp-red); background: var(--sp-red-bg); }
.sp-fam-radios { display: flex; gap: 18px; }
.sp-fam-radios label, .sp-fam-check { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; color: #222; cursor: pointer; }
.sp-fam-form .sp-field-grid > label { align-self: center; }
.sp-fam-search { margin-left: 12px; font-size: 12px; }
@media (max-width: 800px) { .sp-fam-top { grid-template-columns: 1fr; } .sp-fam-member-row { flex-direction: column; } .sp-fmem-actions { max-width: none; justify-content: flex-start; } }
.sp-fam-form .sp-field-grid input.sp-input-short { width: 110px; }

/* Player Positions (.sp-pos), Option Fields (.sp-optf), Option Field Section popup (.sp-ofs-*) */
.sp-pos > .sp-card, .sp-pos > form > .sp-card, .sp-optf > .sp-card, .sp-optf > form > .sp-card { margin-bottom: 14px; }
.sp-pos > .sp-alert, .sp-optf > .sp-alert, .sp-optf > .sp-note { margin: 0 0 14px; }
.sp-pos-form .sp-field-grid, .sp-optf-form .sp-field-grid { grid-template-columns: 170px 1fr; }
.sp-field-grid input.sp-optf-wide { width: 420px; }
.sp-optf-pair { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.sp-optf-pair .sp-hint { max-width: 460px; }
.sp-optf-section { margin: 18px 0 10px; padding-top: 12px; border-top: 1px solid var(--sp-border); font-size: 11px; font-weight: 700;
                   text-transform: uppercase; letter-spacing: .04em; color: var(--sp-muted); }
.sp-field-grid textarea.sp-optf-code { width: 560px; font-family: Consolas, monospace; font-size: 12px; }
.sp-optf-form .sp-field-grid input.sp-input-short, .sp-pos-form .sp-field-grid input.sp-input-short { width: 90px; }
body.sp-popup-body { margin: 0; background: #f4f6f9; }
.sp-ofs-grid { grid-template-columns: 130px 1fr; }
.sp-ofs-grid textarea { width: 100%; }
.sp-field-grid .sp-ofs-color input.sp-input-short { width: 110px; }
.sp-ofs-color { display: flex; align-items: center; gap: 8px; }
.sp-ofs-color input[type=color] { width: 40px; height: 30px; padding: 2px; border: 1px solid #c9d3de; border-radius: 4px; background: #fff; cursor: pointer; }
.sp-ofs-preview { padding: 6px 10px; border: 1px solid var(--sp-border); border-radius: 4px; font-weight: 700; min-height: 18px; }

/* Schools / School Edit (reuse .sp-pos cards) */
.sp-field-grid input.sp-sch-wide { width: 420px; }
.sp-field-grid input.sp-sch-phone { width: 150px; }
.sp-sch-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sp-field-grid .sp-sch-row input[type=text] { width: 200px; }
.sp-field-grid .sp-sch-row input.sp-input-short { width: 90px; }

/* Alternate Payments (reuse .sp-pos cards) */
.sp-field-grid textarea.sp-ape-text { width: 560px; max-width: 100%; }
.sp-field-grid > label.sp-ape-top { align-self: start; padding-top: 6px; }

/* Add Payment (.sp-apm) */
.sp-apm > .sp-card, .sp-apm > form .sp-card { margin-bottom: 14px; }
.sp-apm > .sp-alert { margin: 0 0 14px; }
.sp-apm-errs { margin: 6px 0 0 18px; padding: 0; }
.sp-apm-table th.num, .sp-apm-table td.num, .sp-apm-buy th.num, .sp-apm-buy td.num { text-align: right; white-space: nowrap; }
.sp-apm-table tr.sp-apm-sub td { color: var(--sp-muted); border-top-style: dashed; }
.sp-apm-table tr.sp-apm-total td { background: #f0f3f7; font-weight: 700; border-top: 2px solid var(--sp-border); }
.sp-apm-red { color: var(--sp-red); }
.sp-apm .sp-field-grid { grid-template-columns: 150px 1fr; }
.sp-apm-amt { display: flex; align-items: center; gap: 6px; }
.sp-apm-dollar { font-weight: 700; color: var(--sp-muted); }
.sp-apm-invs { display: flex; flex-direction: column; gap: 4px; }
.sp-page a.sp-apm-inv { font-weight: 600; }
.sp-page input.sp-apm-qty { width: 56px; text-align: center; }
.sp-page input.sp-apm-price { width: 90px; text-align: right; }
.sp-apm-fields { width: 100%; border-collapse: collapse; }
.sp-apm-fields td { padding: 7px 14px; vertical-align: middle; }
.sp-apm-fields td:first-child { width: 150px; text-align: right; font-weight: 600; color: #444; }
.sp-apm-fields td[colspan] { text-align: left; font-weight: 400; }
.sp-apm-fields input[type=text], .sp-apm-fields input[type=password], .sp-apm-fields select {
    font-family: inherit; font-size: 13px; padding: 5px 8px; border: 1px solid #c9d3de; border-radius: 4px; }
.sp-apm-btns { display: flex; gap: 8px; padding: 6px 0 4px 164px; }

/* Transaction Edit (.sp-te) */
.sp-te > .sp-card, .sp-te > form > .sp-card { margin-bottom: 14px; }
.sp-te > .sp-alert { margin: 0 0 14px; }
.sp-te .sp-field-grid { grid-template-columns: 170px 1fr; }
.sp-te-row { display: flex; align-items: center; gap: 8px; }
.sp-te-section { margin: 18px 0 10px; padding-top: 12px; border-top: 1px solid var(--sp-border); font-size: 11px; font-weight: 700;
                 text-transform: uppercase; letter-spacing: .04em; color: var(--sp-muted); }
.sp-field-grid input.sp-te-init { width: 56px; text-align: center; }
.sp-field-grid input.sp-te-wide { width: 420px; }
.sp-te input[type=datetime-local] { font-family: inherit; font-size: 13px; padding: 4px 8px; border: 1px solid #c9d3de; border-radius: 4px; }
.sp-te-items td, .sp-te-items th { font-size: 12px; }

/* Refund (.sp-rf) */
.sp-rf > .sp-card, .sp-rf > form > .sp-card { margin-bottom: 14px; }
.sp-rf-errs > div { color: var(--sp-red); padding: 3px 0; }
.sp-rf-details { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 18px; }
.sp-rf-details > div > span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--sp-muted); }
.sp-rf-items th.num, .sp-rf-items td.num, .sp-rf-confirm th.num, .sp-rf-confirm td.num { text-align: right; white-space: nowrap; }
.sp-page input.sp-rf-amt { width: 100px; text-align: right; }
.sp-page input.sp-rf-amt[readonly] { background: #f4f6f9; color: var(--sp-muted); }
.sp-page input.sp-rf-sum { font-weight: 700; color: #222; }
.sp-rf-ft-head { padding: 12px 14px 6px; border-top: 1px solid var(--sp-border); }
.sp-rf-ft-head .sp-muted { font-size: 12px; margin-left: 8px; }
.sp-rf-ft td { background: #fffaf0; }
.sp-rf-warn { color: #a4441c; font-size: 12px; }
.sp-rf-total { text-align: right; padding: 12px 14px; border-top: 1px solid var(--sp-border); font-size: 14px; }
.sp-rf-confirm-wrap { padding: 0 14px 4px; }
.sp-rf-confirm { margin: 12px 0; border: 1px solid var(--sp-border); }
.sp-rf-method { display: flex; flex-wrap: wrap; gap: 16px; padding: 10px 0; }
.sp-rf-fields { border-collapse: collapse; }
.sp-rf-fields td { padding: 6px 14px; vertical-align: middle; }
.sp-rf-fields td:first-child { text-align: right; font-weight: 600; color: #444; }
.sp-rf-fields input[type=text], .sp-rf-fields select { font-family: inherit; font-size: 13px; padding: 5px 8px; border: 1px solid #c9d3de; border-radius: 4px; }
.sp-rf-check { border: 1px solid var(--sp-border); border-radius: 6px; padding: 10px 14px; margin: 0 14px; }
.sp-rf-check .sp-field-grid { grid-template-columns: 90px 1fr; }
.sp-page input.sp-rf-state { width: 50px; }
.sp-rf-btns { display: flex; gap: 8px; }
.sp-rf-hint { margin-top: 10px; padding: 8px 12px; background: var(--sp-primary-light); border-radius: 6px; color: #333; }
.sp-rf-errs > div.sp-rf-hint { color: #333; }
.sp-rf-errs > div.sp-muted { color: var(--sp-muted); }

/* Transaction Search / Results (.sp-ts) */
.sp-ts > .sp-card, .sp-ts > form > .sp-card { margin-bottom: 14px; }
.sp-ts > .sp-alert { margin: 0 0 14px; }
.sp-ts-card .sp-field-grid { grid-template-columns: 160px 1fr; }
.sp-ts-card .sp-field-grid input.sp-input-short { width: 130px; }
.sp-ts-or { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--sp-muted); }
.sp-ts-table th.num, .sp-ts-table td.num { text-align: right; white-space: nowrap; }
.sp-ts .sp-ts-more { margin: 10px 14px; }

/* Check Refund (.sp-rco), Card Error / Check Printing (.sp-cce) */
.sp-rco > .sp-card, .sp-rco > .sp-note { margin-bottom: 14px; }
.sp-rco .sp-field-grid { grid-template-columns: 140px 1fr; }
.sp-rco-addr { line-height: 1.5; }
.sp-cce { max-width: 720px; margin: 16px auto; }
.sp-cce-main { margin-top: 0; }
.sp-cce-hint { padding: 8px 12px; background: var(--sp-primary-light); border-radius: 6px; }

/* Report filter (.sp-rrs) and Registration Report by Type (.sp-rbt) */
.sp-rrs > .sp-card, .sp-rrs > form > .sp-card, .sp-rrs > .sp-alert { margin-bottom: 14px; }
.sp-rrs-card { max-width: 560px; }
.sp-rrs-card .sp-field-grid { grid-template-columns: 80px 1fr; }
.sp-rrs-row { display: flex; gap: 8px; }
.sp-page input[type=time] { font-family: inherit; font-size: 13px; padding: 4px 8px; border: 1px solid #c9d3de; border-radius: 4px; }
.sp-rbt-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; padding: 12px 14px; }
.sp-rbt-filters label { display: flex; flex-direction: column; gap: 4px; }
.sp-rbt-filters label > span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--sp-muted); }
.sp-rbt-filters select { max-width: 260px; }
.sp-rbt-table th.num, .sp-rbt-table td.num { text-align: right; white-space: nowrap; }
.sp-rbt-opts img { cursor: pointer; margin-right: 8px; vertical-align: middle; }
.sp-rbt-table tr.sp-rbt-total td { background: #f0f3f7; font-weight: 600; border-top: 2px solid var(--sp-border); }
.sp-rbt-legend img { vertical-align: middle; }

/* Board Reports (.sp-board) */
.sp-board > .sp-card { margin-bottom: 14px; }
.sp-board .sp-r { text-align: right; }
.sp-board-table td { vertical-align: middle; }

/* Admin Help (.sp-help) */
.sp-help-top { margin-bottom: 16px; }
.sp-help-search { padding: 14px; }
.sp-help-searchlabel { display: block; font-weight: 700; color: var(--sp-primary); margin-bottom: 6px; font-size: 14px; }
.sp-help-searchbox { display: flex; gap: 8px; }
.sp-page .sp-help-searchbox input[type=search] { flex: 1; font-family: inherit; font-size: 15px; padding: 9px 12px; border: 1px solid #c9d3de; border-radius: 6px; }
.sp-page .sp-help-searchbox input[type=search]:focus { outline: none; border-color: var(--sp-primary); box-shadow: 0 0 0 3px rgba(31,78,121,.15); }
.sp-help-count { margin-top: 6px; font-size: 12px; color: var(--sp-muted); }
.sp-help-chips { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--sp-border); background: #fafbfc; }
.sp-page .sp-help-chips a { padding: 3px 10px; border-radius: 12px; background: var(--sp-primary-light); text-decoration: none; font-size: 12px; font-weight: 600; }
.sp-page .sp-help-chips a:hover { background: var(--sp-primary); color: #fff; }
.sp-help-layout { display: grid; grid-template-columns: 250px 1fr; gap: 20px; align-items: start; }
.sp-help-toc { position: sticky; top: 10px; max-height: calc(100vh - 20px); overflow: auto; background: #fff; border: 1px solid var(--sp-border); border-radius: 8px; padding: 8px 0; font-size: 12px; }
.sp-help-toccat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--sp-muted); padding: 10px 14px 4px; }
.sp-help-toc ul { list-style: none; margin: 0; padding: 0; }
.sp-page .sp-help-toc li a { display: block; padding: 4px 14px; text-decoration: none; color: #333; border-left: 3px solid transparent; }
.sp-page .sp-help-toc li a:hover { background: #f4f7fa; color: var(--sp-primary); }
.sp-page .sp-help-toc li.sp-help-cur a { border-left-color: var(--sp-primary); color: var(--sp-primary); font-weight: 600; background: var(--sp-primary-light); }
.sp-help-body { min-width: 0; }
.sp-help-cat { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--sp-muted); margin: 22px 0 8px; padding-bottom: 4px; border-bottom: 2px solid var(--sp-primary); }
.sp-help-cat:first-of-type { margin-top: 0; }
.sp-help-sec { background: #fff; border: 1px solid var(--sp-border); border-radius: 8px; padding: 14px 18px; margin-bottom: 12px; line-height: 1.55; scroll-margin-top: 10px; transition: box-shadow .3s; }
.sp-help-sec h2 { font-size: 16px; margin: 0 0 8px; color: var(--sp-primary); }
.sp-help-sec ul, .sp-help-sec ol { margin: 6px 0; padding-left: 22px; }
.sp-help-sec li { margin: 3px 0; }
.sp-help-sec p { margin: 6px 0; }
.sp-help-where { font-size: 12px; color: var(--sp-muted); }
.sp-help-path { display: inline-block; padding: 0 6px; border-radius: 4px; background: #eef2f7; color: #333; font-size: 12px; font-weight: 600; white-space: nowrap; }
.sp-help-steps > li { margin: 5px 0; }
.sp-help-tip { margin-top: 10px; padding: 8px 12px; border-radius: 6px; background: var(--sp-primary-light); }
.sp-help-warn { margin-top: 10px; padding: 8px 12px; border-radius: 6px; background: #fff4e5; border-left: 4px solid #e08a00; }
.sp-help-table { margin: 8px 0; border: 1px solid var(--sp-border); }
.sp-help-table td { vertical-align: top; }
.sp-help-dl { display: grid; grid-template-columns: 190px 1fr; gap: 6px 14px; margin: 0; }
.sp-help-dl dt { font-weight: 700; }
.sp-help-dl dd { margin: 0; }
.sp-help-none { padding: 16px; margin-bottom: 12px; background: #fff; border: 1px dashed var(--sp-border); border-radius: 8px; }
mark.sp-help-hit { background: #ffe58a; padding: 0 1px; border-radius: 2px; }
.sp-help-flash { box-shadow: 0 0 0 3px rgba(31,78,121,.35); }
@media (max-width: 900px) { .sp-help-layout { grid-template-columns: 1fr; } .sp-help-toc { position: static; max-height: none; } }
@media print { .sp-help-top, .sp-help-toc, .sp-header, .sp-nav, .sp-footer { display: none !important; } .sp-help-layout { display: block; } .sp-help-sec { break-inside: avoid; border: 0; padding: 6px 0; } }
.sp-help-sec h2 { font-family: inherit; }
.sp-page .sp-help-toc li.sp-help-best a { font-weight: 700; color: var(--sp-primary); }

/* Home page: Admin Help quick link */
.sp-page a.sp-quick-help { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 230px; box-sizing: border-box; margin-top: 6px;
    padding: 9px 12px; border: 1px solid var(--sp-border); border-radius: 8px; background: var(--sp-primary-light); text-decoration: none; color: #222; }
.sp-page a.sp-quick-help:hover { border-color: var(--sp-primary); background: #fff; }
.sp-quick-help-icon { flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--sp-primary); color: #fff; font-weight: 700; font-size: 17px;
    display: flex; align-items: center; justify-content: center; }
.sp-quick-help-text { display: flex; flex-direction: column; line-height: 1.3; }
.sp-quick-help-text b { color: var(--sp-primary); }
.sp-quick-help-text span { font-size: 11px; color: var(--sp-muted); }

/* Admin Help: Who lines and permission tables */
.sp-help-who { margin: 0 0 8px; padding: 4px 10px; border-radius: 4px; background: #f4f6f9; font-size: 12px; color: #444; }
.sp-help-h3 { font-size: 13px; margin: 14px 0 4px; color: #333; }
.sp-help-scroll { overflow-x: auto; }
.sp-help-perm { font-size: 12px; min-width: 760px; }
.sp-help-perm th { font-size: 10px; white-space: normal; line-height: 1.2; }
.sp-help-perm td:first-child { min-width: 230px; }
.sp-help-yes { color: var(--sp-green); font-weight: 700; }
.sp-help-no { color: #b0b8c2; }
.sp-help-view { color: #8a4b00; font-weight: 600; font-size: 11px; }

/* ---------- Login pages (login/GETUSER.asp, VERIFYUSER.asp) ---------- */
body.sp-login-body { margin: 0; background: var(--sp-bg); }
/* Full-height layout: logo bar on top, login card centered, footer at the bottom */
.sp-login-shell { min-height: 100vh; display: flex; flex-direction: column; }
.sp-login-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
                padding: 10px 32px; background: #fff; border-bottom: 3px solid var(--sp-primary);
                box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.sp-login-top img { display: block; max-height: 90px; max-width: 45%; height: auto; }
.sp-login.sp-page { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center;
                    box-sizing: border-box; width: 100%; max-width: 460px; padding: 40px 16px; }
.sp-login-foot { flex: 0 0 auto; background: #fff; border-top: 1px solid var(--sp-border); }
@media (max-width: 600px) {
    .sp-login-top { padding: 8px 12px; }
    .sp-login-top-right { display: none !important; }
    .sp-login-top img { max-width: 100%; }
}
.sp-login-card .sp-card-head { background: var(--sp-primary); color: #fff; font-size: 15px; font-weight: 600;
                               padding: 12px 16px; border-radius: 8px 8px 0 0; }
.sp-login-card .sp-card-body { padding: 18px 20px 20px; }
.sp-login-card .sp-alert { margin: 0 0 14px; font-weight: 500; }
.sp-login-hint { margin: 0 0 14px; color: var(--sp-muted); }
.sp-login-field { display: block; margin-bottom: 12px; }
.sp-login-field span { display: block; font-weight: 600; margin-bottom: 4px; color: #333; }
.sp-login .sp-login-field input { box-sizing: border-box; width: 100% !important; max-width: none !important; padding: 8px 10px; font-size: 14px !important;
                        border: 1px solid #c9d3de; border-radius: 6px; background: #fff; }
.sp-login .sp-login-field input:focus { outline: none; border-color: var(--sp-primary); box-shadow: 0 0 0 3px rgba(31,78,121,.15); }
.sp-login-actions { margin-top: 18px; }
.sp-login .sp-login-actions .sp-btn-primary { display: block; width: 100% !important; padding: 10px 14px; font-size: 14px; }
.sp-login-actions .sp-btn-primary:disabled { opacity: .7; cursor: default; }
.sp-login-test { text-align: center; }
.sp-login-phone { font-weight: 600; }
.sp-login-legal { margin: 22px 0 0; font-size: 9px; line-height: 1.5; color: #8a94a0; text-align: justify; }

/* ---------- League Edit: Apply to Other Leagues ---------- */
.sp-le-applied { margin: 0 0 14px; padding: 10px 14px; border-radius: 6px; background: var(--sp-green-bg);
                 border: 1px solid #b7dfc2; border-left: 4px solid var(--sp-green); color: #1b4d2a; }
.sp-le-apply-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(20,30,45,.45);
                     display: flex; align-items: center; justify-content: center; padding: 16px; }
.sp-le-apply { width: 720px; max-width: 100%; max-height: 90vh; display: flex; flex-direction: column;
               margin: 0 !important; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.sp-le-apply .sp-card-head { background: var(--sp-primary); color: #fff; font-weight: 600; font-size: 14px; }
.sp-le-apply .sp-card-body { overflow: auto; }
.sp-le-apply-x { background: none; border: 0; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px; }
.sp-le-apply-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sp-le-apply-h { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600;
                 padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px solid var(--sp-border); }
.sp-le-apply-sel { font-weight: 400; font-size: 12px; }
.sp-le-apply-group { margin: 10px 0 4px; font-size: 11px; font-weight: 600; text-transform: uppercase;
                     letter-spacing: .03em; color: var(--sp-muted); }
.sp-le-apply .sp-check { display: flex; align-items: center; gap: 6px; padding: 3px 0; }
.sp-le-apply-list { max-height: 340px; overflow: auto; }
@media (max-width: 640px) { .sp-le-apply-cols { grid-template-columns: 1fr; } }

/* ---------- League Edit: fee grid - member rows, info button, "which fee" cue ---------- */
.sp-le-fees tr.sp-le-feerow-main td { border-top: 1px solid var(--sp-border); }
.sp-le-fees tr.sp-le-feerow-member td { border-top: 0; padding-top: 2px; }
.sp-le-fees tr.sp-le-feerow-member td.sp-le-rowlabel { padding-left: 24px; font-weight: 500; color: var(--sp-muted); position: relative; }
.sp-le-memberlabel { vertical-align: middle; }
.sp-le-info { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px;
              margin-left: 4px; padding: 0; border-radius: 50%; border: 1px solid #b9c7d6; background: #fff;
              color: var(--sp-primary); font: italic 700 11px/1 Georgia, "Times New Roman", serif; cursor: pointer; vertical-align: middle; }
.sp-le-info:hover, .sp-le-info[aria-expanded="true"] { background: var(--sp-primary); border-color: var(--sp-primary); color: #fff; }
.sp-le-fees td.sp-le-rowlabel { position: relative; }
.sp-le-infotip { position: absolute; left: 24px; top: calc(100% - 4px); width: 250px; z-index: 6;
                 box-shadow: 0 4px 14px rgba(0,0,0,.15); padding: 7px 9px; border-radius: 6px; background: var(--sp-primary-light);
                 border: 1px solid #c6d7ea; color: #333; font-size: 12px; font-weight: 400; line-height: 1.4; white-space: normal; }
/* the row and column being edited */
.sp-le-fees tr.sp-le-feerow:focus-within td { background: #fff8e1; }
.sp-le-fees tr.sp-le-feerow:focus-within td.sp-le-rowlabel { color: #222; box-shadow: inset 3px 0 0 #f0b429; }
.sp-le-fees th.sp-le-colon { background: #fff1c2; color: #7a5a00; }
.sp-le-money:focus-within input { border-color: #f0b429 !important; box-shadow: 0 0 0 3px rgba(240,180,41,.25); }
/* "Editing: Early Member Player Fee" in the grid's top-left cell */
.sp-le-fees th.sp-le-editing { text-transform: none; letter-spacing: 0; font-size: 12px; color: #7a5a00;
                               background: #fff1c2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-le-fees th.sp-le-editing b { color: #222; }

/* ---------- League Edit: Registration Fields tab (form preview) ---------- */
.sp-le-rf-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 12px; }
.sp-le-rf-intro { margin: 0; flex: 1 1 320px; }
.sp-le-rf-toggle { display: inline-flex; border: 1px solid var(--sp-primary); border-radius: 6px; overflow: hidden; }
.sp-le-rf-tbtn { border: 0; background: #fff; color: var(--sp-primary); font: inherit; font-weight: 600;
                 padding: 7px 18px; cursor: pointer; }
.sp-le-rf-tbtn + .sp-le-rf-tbtn { border-left: 1px solid var(--sp-primary); }
.sp-le-rf-tbtn:hover { background: var(--sp-primary-light); }
.sp-le-rf-tbtn.sp-le-rf-on { background: var(--sp-primary); color: #fff; }
.sp-le-rf { max-width: 860px; }
.sp-le-rf-count { font-size: 12px; font-weight: 400; opacity: .8; }
.sp-le-rf-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 11px; color: var(--sp-muted); margin-bottom: 6px; }
.sp-le-rf-sec { margin: 16px 0 8px; padding: 6px 10px; background: #f0f3f7; border-left: 3px solid var(--sp-primary);
                font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: #3a4a5c; }
.sp-le-rf-std { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-le-rf-chip { display: inline-block; padding: 3px 9px; border-radius: 12px; background: #f4f6f9;
                 border: 1px solid var(--sp-border); font-size: 12px; color: #444; }
.sp-le-rf-stdnote { margin: 6px 0 0; font-size: 11px; }
.sp-le-rf-fields { display: grid; grid-template-columns: 220px 1fr; gap: 8px 14px; align-items: center; padding: 0 4px; }
.sp-le-rf-row { display: contents; }
.sp-le-rf-label { text-align: right; font-weight: 600; color: #333; }
.sp-le-rf-label .sp-required { color: var(--sp-red); margin-right: 2px; }
.sp-le-rf-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.sp-page .sp-le-rf-ctl input.sp-le-rf-in, .sp-page .sp-le-rf-ctl select.sp-le-rf-in { max-width: 320px; }
.sp-le-rf-ctl select.sp-le-rf-in { min-width: 180px; }
.sp-le-rf-ctl textarea.sp-le-rf-in { width: 320px; max-width: 100%; }
.sp-le-rf-checks { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.sp-le-rf-tags { display: inline-flex; gap: 4px; }
.sp-le-rf-tags .sp-badge { white-space: nowrap; font-size: 10px; }
.sp-le-rf-type { font-size: 11px; }
@media (max-width: 700px) {
    .sp-le-rf-fields { grid-template-columns: 1fr; gap: 2px; }
    .sp-le-rf-label { text-align: left; margin-top: 8px; }
}

/* ---------- Participant search results (Utils/Search.asp) ---------- */
.sp-search { max-width: 760px; }
.sp-page select.sp-search-list { width: 100%; min-height: 360px; padding: 4px; font-size: 13px;
                                 border: 1px solid #c9d3de; border-radius: 6px; background: #fff; }
.sp-search-list option { padding: 5px 8px; border-radius: 4px; }
.sp-search-list option:checked { background: var(--sp-primary-light); color: #111; }

/* ---------- Income vs. Expenses (Finance/Reports/ProfitAndLossReport.asp) ---------- */
.sp-plreport { max-width: 900px; }
.sp-pl-stats { border-bottom: 0; gap: 48px; padding: 16px 18px; }
.sp-pl-net b { color: var(--sp-green); }
.sp-pl-net.sp-pl-neg b, .sp-pl-grand.sp-pl-neg td { color: var(--sp-red) !important; }
.sp-pl-table th.sp-pl-amt, .sp-pl-table td.sp-pl-amt { text-align: right; width: 150px; white-space: nowrap; }
.sp-pl-table th.sp-pl-cnt, .sp-pl-table td.sp-pl-cnt { text-align: right; width: 110px; color: var(--sp-muted); }
.sp-pl-table tr.sp-pl-sport td { background: #eef3f8; font-weight: 700; color: #1b3550; border-top: 1px solid var(--sp-border); }
.sp-pl-table tr.sp-pl-acct td { font-weight: 600; }
.sp-pl-table tr.sp-pl-acct td:first-child { padding-left: 26px; }
.sp-pl-table tr.sp-pl-pay td:first-child { padding-left: 46px; }
.sp-pl-table tr.sp-pl-pay td.sp-pl-amt { color: #444; }
.sp-pl-table tr.sp-pl-total td { font-weight: 700; border-top: 2px solid #c9d3de; background: #f8fafc; }
.sp-pl-table tr.sp-pl-grand td { font-weight: 700; font-size: 15px; border-top: 2px solid #1f2d3d; color: var(--sp-green); }
.sp-pl-netcard .sp-pl-table tr.sp-pl-total td { border-top: 1px solid #eef1f4; background: #fff; font-weight: 600; }
@media print {
    .sp-plreport .sp-toolbar-right, .sp-plreport .sp-report-back { display: none !important; }
    .sp-plreport .sp-card { box-shadow: none; break-inside: avoid; }
}
.sp-pl-time { margin: -6px 0 10px; font-size: 11px; }
.sp-pl-table tr.sp-as-out td:first-child { color: #7a2a20; }
.sp-pl-table tr.sp-pl-acct .sp-badge { font-size: 10px; margin-left: 6px; }