/* STB: family accounts, program registration, sign in / create account and the site forms.
   Content pages stay navy; every other page (body.stb-app) renders on a white panel (.stb-panel).
   The module views use the shared V-Track class names (vt-form, fam-*, btn ...), styled here in STB colors.
   Works with the "Program Mosaic" stb.css: the --stb-* names below map onto its tokens. */

body.stb {
  --stb-navy: var(--navy, #01092D); --stb-ink: #212121; --stb-white: #FFFFFF;
  --stb-head: var(--display, Oswald, sans-serif); --stb-body: var(--body, "Source Sans 3", Arial, sans-serif);
}
/* Light tokens for everything on the white panel (stb.css sets dark ones for the navy pages). */
.stb-panel {
  --vt-primary: #01092D; --vt-accent: #C8102E; --vt-text: #212121; --vt-bg: #FFFFFF;
  --vt-surface: #F2F4F8; --vt-muted: #5B6170; --vt-line: #DDE1EA; --vt-radius: 4px;
}

/* Account menu, top right of the header */
.stb-acct { position: relative; flex: 0 0 auto; }
.stb-acct > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; }
.stb-acct > summary::-webkit-details-marker { display: none; }
.stb-acct > summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .8; }
.stb-acct[open] > summary { background: rgba(255,255,255,.12); border-color: #fff; }
.stb-acct-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 70; min-width: 15rem; padding: 8px; background: #fff; border-radius: 8px; box-shadow: 0 14px 34px rgba(0,0,0,.35); display: grid; }
.stb-acct-menu a, .stb-acct-menu button { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 9px 12px; border-radius: 4px; font: 600 .98rem var(--stb-body); color: var(--ink, #0d1530); text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left; width: 100%; }
.stb-acct-menu a:hover, .stb-acct-menu button:hover { background: #eef1f8; color: var(--red, #C8102E); }
.stb-acct-menu form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid #e3e6ef; }
.stb-acct-head { padding: 10px 12px 4px; margin-top: 4px; border-top: 1px solid #e3e6ef; font: 600 .72rem var(--stb-head); letter-spacing: .14em; text-transform: uppercase; color: #6b7287; }
.stb-acct-badge { display: inline-block; min-width: 1.35rem; padding: 0 .35rem; border-radius: 999px; background: var(--red, #C8102E); color: #fff; font: 700 .75rem/1.35rem var(--stb-body); text-align: center; letter-spacing: 0; }
/* Collapsible manager sections in the account menu (Manage, Organization Info, Integrations, Communication, Security). */
.stb-acct-group { border-top: 1px solid #e3e6ef; margin-top: 4px; padding-top: 2px; }
.stb-acct-group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 6px; border-radius: 4px; font: 600 .72rem var(--stb-head); letter-spacing: .14em; text-transform: uppercase; color: #6b7287; }
.stb-acct-group > summary::-webkit-details-marker { display: none; }
.stb-acct-group > summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.stb-acct-group[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.stb-acct-group > summary:hover { background: #eef1f8; color: var(--ink, #0d1530); }
.stb-acct-group > a { padding-left: 20px; }
@media (max-width: 480px) { .stb-acct-menu { right: -8px; min-width: 13.5rem; } }

/* Home page call to action */
.stb-btn-cta { font-weight: 600; font-size: 1rem; padding: .6rem 1rem; margin: 0 auto 1.75rem; }

/* White panel for app pages */
.stb-app .stb-banner { height: clamp(70px, 7vw, 160px); }
.stb-panel {
  width: min(64rem, 100% - 32px); max-width: 64rem; margin: 2rem auto 2.5rem; background: var(--stb-white); color: var(--stb-ink);
  border-radius: 4px; padding: clamp(1.25rem, 4vw, 2.5rem); box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.stb-panel a { color: var(--stb-navy); }
.stb-panel h1, .stb-panel h2, .stb-panel h3 { font-family: var(--stb-head); font-weight: 700; color: var(--stb-navy); line-height: 1.2; }
.stb-panel h1 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); margin: 0 0 .75rem; }
.stb-panel h2 { font-size: 1.4rem; margin: 0 0 .5rem; }
.stb-panel .sec, .stb-panel .wrap { padding: 0; margin: 0; max-width: none; }
.stb-panel .prose p { margin: 0 0 .9rem; }
.stb-panel .empty { color: var(--vt-muted); }

/* Buttons (V-Track and Orchard/Bootstrap names) */
.stb-panel .btn {
  display: inline-block; font: 600 1rem var(--stb-body); text-decoration: none; text-align: center; cursor: pointer;
  padding: .6rem 1.15rem; border-radius: 4px; border: 1px solid var(--stb-navy); background: var(--stb-white); color: var(--stb-navy);
}
.stb-panel .btn-accent, .stb-panel .btn-primary { background: var(--stb-navy); color: var(--stb-white); }
.stb-panel .btn-accent:hover, .stb-panel .btn-primary:hover { background: #1B2A5C; }
.stb-panel .btn-secondary:hover, .stb-panel .btn:not(.btn-accent):not(.btn-primary):hover { background: #E8EAF2; }
.stb-panel .w-100 { width: 100%; }

/* V-Track forms */
.form-wrap { max-width: 44rem; }
.vt-form { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
.vt-form .field { display: grid; gap: .35rem; }
.vt-form label, .vt-form legend { font-weight: 600; }
.vt-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: .4rem; }
.vt-form .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.vt-form .check input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--vt-primary); }
.vt-form .help { margin: 0; font-size: .9rem; color: var(--vt-muted); }
.vt-form .error { margin: 0; font-size: .9rem; color: #B42318; font-weight: 600; }
.vt-form .has-error input, .vt-form .has-error select, .vt-form .has-error textarea { border-color: #B42318; }
.vt-form button { justify-self: start; }
.form-heading { margin: 1rem 0 0; font-size: 1.3rem; padding-bottom: .35rem; border-bottom: 2px solid var(--vt-line); }
.form-subheading { margin: .9rem 0 0; font-size: 1.05rem; }
.secret-status { font-family: ui-monospace, monospace; }
.form-errors { background: #FEF3F2; color: #912018; border-radius: var(--vt-radius); padding: .75rem 1rem; margin-top: 1rem; }
.form-done { background: var(--vt-surface); border-left: 4px solid var(--vt-primary); padding: 1rem 1.25rem; border-radius: var(--vt-radius); }
.form-done p { margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.callout-inline { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; justify-content: space-between;
  background: var(--vt-surface); border-radius: var(--vt-radius); padding: 1.25rem 1.5rem; margin-top: 1.5rem; }
.callout-inline p { margin: 0; max-width: 46ch; }

/* Text fields: V-Track forms and Orchard's sign in / create account pages */
.stb-panel input[type=text], .stb-panel input[type=email], .stb-panel input[type=tel], .stb-panel input[type=number],
.stb-panel input[type=date], .stb-panel input[type=password], .stb-panel select, .stb-panel textarea, .stb-panel .form-control {
  font: inherit; color: var(--vt-text); background: var(--vt-bg); width: 100%;
  border: 1px solid #B8BECC; border-radius: var(--vt-radius); padding: .65rem .75rem;
}
.stb-panel input:focus, .stb-panel select:focus, .stb-panel textarea:focus {
  outline: 3px solid rgba(1, 9, 45, .25); border-color: var(--vt-primary);
}

/* The few Bootstrap names Orchard's account pages use */
.stb-panel .form-label, .stb-panel .control-label { display: block; font-weight: 600; margin-bottom: .35rem; }
.stb-panel .mb-3, .stb-panel .form-group { margin-bottom: 1rem; }
.stb-panel .form-check { display: flex; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.stb-panel .form-check-input { width: 1.05rem; height: 1.05rem; accent-color: var(--vt-primary); }
.stb-panel .text-danger, .stb-panel .field-validation-error { color: #B42318; font-size: .9rem; }
.stb-panel .validation-summary-errors ul { margin: 0 0 1rem; padding: .75rem 1rem .75rem 2rem; background: #FEF3F2; color: #912018; border-radius: var(--vt-radius); }
.stb-panel .alert { padding: .75rem 1rem; border-radius: var(--vt-radius); margin-bottom: 1rem; background: var(--vt-surface); }
.stb-panel .alert-danger { background: #FEF3F2; color: #912018; }
.stb-panel .text-muted { color: var(--vt-muted); }
.stb-panel .row { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.stb-panel .row > [class*="col"] { flex: 1 1 18rem; min-width: 0; }
.stb-panel hr { border: 0; border-top: 1px solid var(--vt-line); margin: 1.5rem 0; }

/* Family accounts and program registration */
.fam-wrap { display: grid; gap: 1.25rem; }
.fam-head, .fam-card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.fam-head h1, .fam-card h2 { margin: 0; }
.fam-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; }
.fam-card { background: var(--vt-surface); border-radius: var(--vt-radius); padding: 1.25rem 1.5rem; display: grid; gap: .75rem; align-content: start; }
.fam-card p { margin: 0; }
.fam-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.muted { color: var(--vt-muted); }
.fam-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.fam-table th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--vt-muted); padding: .5rem .4rem; border-bottom: 2px solid var(--vt-line); }
.fam-table td { padding: .6rem .4rem; border-bottom: 1px solid var(--vt-line); vertical-align: top; }
.status { display: inline-block; font-size: .8rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; background: var(--vt-line); }
.status-1 { background: #FEF0C7; color: #93370D; }
.status-2 { background: #D1FADF; color: #05603A; }
.status-3, .status-4 { background: #F2F4F7; color: #475467; }
.field-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.field-row-3 { grid-template-columns: 2fr 1fr 1fr; }
.form-actions { display: flex; align-items: center; gap: 1.25rem; }
.link-button { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--vt-primary); cursor: pointer; text-decoration: underline; }
.reg-child { border: 1px solid var(--vt-line); border-radius: var(--vt-radius); padding: .9rem 1rem; display: grid; gap: .5rem; }
.reg-child.is-blocked { opacity: .65; }
.program-card .program-fee { display: flex; align-items: center; gap: 1rem; }
.program-card .program-fee strong { font-size: 1.25rem; }
.pay-box { background: var(--vt-surface); border-left: 4px solid var(--vt-primary); border-radius: var(--vt-radius); padding: 1.25rem 1.5rem; margin-top: 1.25rem; }
.pay-total { font-size: 1.2rem; }
.pay-steps { padding-left: 1.25rem; display: grid; gap: .4rem; }
@media (max-width: 640px) {
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
  .fam-table th:nth-child(3), .fam-table td:nth-child(3) { display: none; }
}

/* My account: account type choice, address copy, remove contact */
.account-type { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 0; }
.label-spacer { display: block; font-weight: 600; }
.address-fields { display: grid; gap: 1.1rem; }
.address-fields[hidden] { display: none; }
.remove-form { margin-top: 1.5rem; }

/* Log in <-> create account switch above Orchard's account pages */
.stb-auth-switch { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1.25rem;
  background: var(--vt-surface); border-left: 4px solid var(--vt-primary); border-radius: var(--vt-radius); padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.stb-auth-switch p { margin: 0; }

/* Home page buttons */
.stb-cta-row { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem 1rem; margin: 0 auto 1.75rem; }
.stb-cta-row .stb-btn { margin: 0; }
.stb-btn-ghost { background: transparent; color: var(--stb-white); border: 1px solid var(--stb-white); }
.stb-btn-ghost:hover { background: rgba(255, 255, 255, .12); }

/* Email is the login: hide Orchard's Username field on the Create account form (the module fills it with the email). */
form:has(input[name$="Email"]):has(input[name$="ConfirmPassword"]) .mb-3:has(input[name$="UserName"]) { display: none; }

/* Manage programs: step bar, grid, division cards, email preview */
.pm-head { display: grid; gap: .35rem; }
.pm-crumbs { margin: 0; font-size: .9rem; color: var(--vt-muted); }
.pm-title { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .75rem; }
.pm-title h1 { margin: 0; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: .15rem .6rem; border-radius: 999px; background: var(--vt-surface); color: var(--vt-text); border: 1px solid var(--vt-line); white-space: nowrap; }
.badge-on { background: #D1FADF; color: #05603A; border-color: #A6F4C5; }
.badge-off { background: #F2F4F7; color: #475467; }
.pm-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; counter-reset: none; }
.pm-steps a { display: flex; align-items: center; gap: .55rem; padding: .55rem .6rem; border-radius: var(--vt-radius); text-decoration: none; color: var(--vt-muted); border: 1px solid var(--vt-line); background: var(--vt-bg); height: 100%; }
.pm-steps a:hover { border-color: var(--vt-primary); }
.pm-step-num { flex: 0 0 auto; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; border: 2px solid currentColor; }
.pm-step-title { font-size: .88rem; font-weight: 600; line-height: 1.2; }
.pm-step-title small { display: block; font-weight: 400; font-size: .72rem; }
.pm-steps .is-current a { background: var(--vt-primary); border-color: var(--vt-primary); color: #fff; }
.pm-steps .is-soon a { opacity: .7; }
@media (max-width: 900px) { .pm-steps ol { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pm-steps ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pm-table-wrap { overflow-x: auto; }
.pm-grid td, .pm-grid th { white-space: nowrap; }
.pm-grid td:first-child { white-space: normal; min-width: 14rem; }
.pm-actions { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.inline-form { display: inline; margin: 0; }
.pm-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .5rem 1.25rem; margin: 0; }
.pm-facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--vt-muted); }
.pm-facts dd { margin: 0; font-weight: 600; }
.pm-teams { border-top: 1px solid var(--vt-line); padding-top: .75rem; display: grid; gap: .5rem; }
.pm-teams h3, .pm-avail h3 { margin: 0; font-size: 1.1rem; }
.pm-avail { border-top: 1px solid var(--vt-line); padding-top: .9rem; display: grid; gap: .5rem; }
.pm-two { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.25rem; align-items: start; }
@media (max-width: 900px) { .pm-two { grid-template-columns: minmax(0, 1fr); } }
.pm-email { background: var(--vt-bg); border: 1px solid var(--vt-line); border-radius: var(--vt-radius); padding: 1rem 1.25rem; }
.pm-email p { margin: 0 0 .75rem; }
.vt-form textarea { font: inherit; color: var(--vt-text); background: var(--vt-bg); border: 1px solid #B8BECC; border-radius: var(--vt-radius); padding: .65rem .75rem; width: 100%; }
.vt-form code, .fam-table code { font-size: .88rem; }
.stb-panel input[type=datetime-local], .stb-panel input[type=url] { font: inherit; color: var(--vt-text); background: var(--vt-bg); width: 100%; border: 1px solid #B8BECC; border-radius: var(--vt-radius); padding: .65rem .75rem; }
.pm-empty { text-align: center; padding: 1.5rem 1rem; }
.pm-empty h2 { margin: 0 0 .5rem; }
.pm-type-help { margin: -.25rem 0 0; padding-left: 1.2rem; font-size: .9rem; color: var(--vt-muted); display: grid; gap: .25rem; }

/* Cart */
.cart-table .num { text-align: right; white-space: nowrap; }
.cart-table tfoot th { padding: .6rem .4rem; border-top: 2px solid var(--vt-line); font-size: 1rem; text-transform: none; letter-spacing: 0; color: var(--vt-text); }
.cart-checkout { display: grid; gap: .75rem; justify-items: end; margin-top: 1rem; }
.cart-checkout .help { text-align: right; max-width: 40rem; margin: 0; }
.stb-cart-count { display: inline-block; min-width: 1.3rem; padding: 0 .35rem; margin-left: .2rem; border-radius: 999px; background: var(--stb-navy); color: #fff; font-size: .75rem; font-weight: 700; text-align: center; line-height: 1.3rem; }

/* Registrations grid (/programs/manage/registrations) — AG Grid Community, quartz theme */
.stb-panel:has(.rg-page) { width: calc(100% - 32px); max-width: none; }   /* grid pages (Players, Teams, Registrations …) use the whole window */
.stb-panel:has(.vp) { width: min(1360px, 100% - 32px); max-width: none; background: #F6F7F9; padding: clamp(.5rem, 2vw, 1.25rem); }   /* profile pages (player, team, coach, organizations): the V-Track app look, white cards on light grey */
.fam-wrap.rg-page { max-width: none; width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rg-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.rg-toolbar .rg-search { flex: 1 1 18rem; }
.rg-toolbar .rg-search input { width: 100%; font: inherit; padding: .5rem .65rem; border: 1px solid var(--vt-line); border-radius: var(--vt-radius); }
.rg-cols { position: relative; }
.rg-cols summary { list-style: none; cursor: pointer; }
.rg-cols summary::-webkit-details-marker { display: none; }
.rg-cols-menu { position: absolute; right: 0; top: calc(100% + .35rem); z-index: 20; background: #fff; border: 1px solid var(--vt-line); border-radius: var(--vt-radius); box-shadow: 0 8px 24px rgba(0, 0, 0, .15); padding: .5rem .75rem; display: grid; gap: .3rem; min-width: 14rem; max-height: 60vh; overflow: auto; }
.rg-cols-menu label { display: flex; gap: .5rem; align-items: center; font-size: .92rem; white-space: nowrap; cursor: pointer; }
.rg-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: .6rem .85rem; border-radius: var(--vt-radius); background: var(--vt-surface, #F2F4F8); border: 1px solid var(--vt-line); }
.rg-bulk[hidden], .rg-msg[hidden] { display: none; }
.rg-msg { padding: .55rem .85rem; border-radius: var(--vt-radius); background: #ECFDF3; color: #05603A; font-size: .92rem; }
.rg-msg.is-error { background: #FEF3F2; color: #B42318; }

.rg-grid { height: 72vh; min-height: 420px; width: 100%; }
.rg-grid.ag-theme-quartz {
  --ag-font-family: inherit;
  --ag-font-size: 14px;
  --ag-foreground-color: #212121;
  --ag-header-foreground-color: #01092D;
  --ag-header-background-color: #E9EDF5;
  --ag-odd-row-background-color: #F4F6FA;          /* alternating rows */
  --ag-row-hover-color: #E3E9F6;
  --ag-selected-row-background-color: #D6DFF2;
  --ag-active-color: #01092D;
  --ag-range-selection-border-color: #01092D;
  --ag-border-color: #CDD3DF;
  --ag-row-border-color: #E1E5EE;
  --ag-header-column-separator-display: block;
  --ag-header-column-separator-color: #CDD3DF;
  --ag-cell-horizontal-border: solid #E1E5EE;      /* vertical lines between cells */
  --ag-wrapper-border-radius: 4px;
  --ag-input-focus-border-color: #01092D;
}
.rg-grid .ag-header-cell-text { font-weight: 700; }
.rg-grid .ag-row { cursor: pointer; }
.rg-grid .rg-st-await { color: #93370D; font-weight: 600; }
.rg-grid .rg-st-paid { color: #05603A; font-weight: 600; }
.rg-grid .rg-st-off { color: #667085; }
.rg-grid .rg-sf-float { width: 100%; }
.rg-grid .rg-sf-float select, .rg-sf select { width: 100%; font: inherit; font-size: 13px; padding: 3px 4px; border: 1px solid #CDD3DF; border-radius: 3px; background: #fff; color: #212121; }
.rg-sf { padding: .6rem; display: grid; gap: .3rem; min-width: 12rem; }
.rg-sf label { display: grid; gap: .3rem; font-size: 12px; font-weight: 600; }
.rg-none { color: #5B6170; }

.rg-backdrop { position: fixed; inset: 0; background: rgba(1, 9, 45, .35); z-index: 50; }
.rg-backdrop[hidden], .rg-drawer[hidden] { display: none; }
.rg-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(28rem, 100vw); z-index: 51; background: #fff; color: var(--vt-text); box-shadow: -10px 0 30px rgba(0, 0, 0, .2); padding: 1.25rem 1.4rem; overflow-y: auto; display: grid; align-content: start; gap: 1rem; }
.rg-d-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.rg-d-head h2 { margin: 0; font-size: 1.4rem; }
.rg-d-head p { margin: .15rem 0 0; }
.rg-close { font: inherit; font-size: 1.6rem; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--vt-muted); padding: .1rem .4rem; }
.rg-d-list { display: grid; grid-template-columns: 9rem 1fr; gap: 0; margin: 0; font-size: .95rem; border: 1px solid var(--vt-line); border-radius: var(--vt-radius); }
.rg-d-list dt, .rg-d-list dd { padding: .45rem .65rem; border-bottom: 1px solid var(--vt-line); margin: 0; }
.rg-d-list dt:nth-of-type(odd), .rg-d-list dt:nth-of-type(odd) + dd { background: #F4F6FA; }
.rg-d-list dt { color: var(--vt-muted); font-size: .82rem; font-weight: 600; }
.rg-d-list dd { overflow-wrap: anywhere; }
.rg-d-list select { font: inherit; padding: .3rem .4rem; border: 1px solid var(--vt-line); border-radius: var(--vt-radius); max-width: 100%; }
.rg-d-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.rg-d-actions [hidden] { display: none; }
.link-button.link-danger { color: #B42318; }
.rg-program-bar { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; padding: .7rem .9rem; background: var(--vt-surface, #F2F4F8); border: 1px solid var(--vt-line); border-radius: var(--vt-radius); }
.rg-program-bar label { display: inline; margin: 0; font-weight: 700; color: var(--vt-primary); }
.rg-program-bar select { width: auto; flex: 0 1 26rem; margin: 0; font: inherit; font-size: 1rem; font-weight: 600; padding: .45rem .6rem; min-width: min(18rem, 100%); border: 1px solid var(--vt-line); border-radius: var(--vt-radius); background: #fff; }

.zf-pay .zf-email { overflow-wrap: anywhere; }
.zf-setup { margin: .25rem 0 .75rem; }
.zf-setup summary { cursor: pointer; font-weight: 600; }
.zf-setup ol { margin: .5rem 0 0; padding-left: 1.25rem; display: grid; gap: .35rem; }

/* Import from Zeffy preview table */
.zi-wrap { overflow: auto; border: 1px solid var(--vt-line); border-radius: var(--vt-radius); }
.zi-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.zi-table th { position: sticky; top: 0; background: #E9EDF5; color: #01092D; text-align: left; font-weight: 700; padding: .55rem .6rem; border-bottom: 1px solid #CDD3DF; border-right: 1px solid #CDD3DF; white-space: nowrap; }
.zi-table td { padding: .45rem .6rem; border-bottom: 1px solid #E1E5EE; border-right: 1px solid #E1E5EE; white-space: nowrap; }
.zi-table tbody tr:nth-child(even) td { background: #F4F6FA; }
.zi-table .num { text-align: right; }
.zi-table tr.zi-new td:first-child { color: #05603A; font-weight: 600; }
.zi-table tr.zi-skipped td { color: #667085; }
.zi-table tr.zi-skipped td:first-child { color: #B42318; white-space: normal; min-width: 14rem; }

.zi-diag { border: 1px solid var(--vt-line); border-radius: var(--vt-radius); padding: .6rem .9rem; background: #fff; }
.zi-diag summary { cursor: pointer; font-weight: 700; }
.zi-diag-card { margin-top: .9rem; }
.zi-diag-card h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.zi-diag .zi-table th { position: static; width: 14rem; }
.zi-diag .zi-table td { white-space: normal; }
