/*
 * Styles for the shared payments dashboard (`/js/se-payments-dashboard.js`, PX1).
 *
 * The first block is the payment-table / tile CSS lifted VERBATIM from
 * live/SouthEnd_Admin_League_Payments.html (the Events payments page carries the
 * same rules inline). Same class names on purpose: once a page links this file
 * its inline copy can be deleted with no visual change. Everything new lives
 * under the `sepay-` prefix.
 *
 * Dark-surface admin pages only. Reads the host page's `--neon`, `--red`,
 * `--muted` and `--rule` tokens, exactly as the lifted rules do.
 */

/* ---- lifted verbatim: SouthEnd_Admin_League_Payments.html :58-81 ---- */
/* Payment-tracking tables (teams + solos) */
.lp-scroll{overflow-x:auto;}
.lp-table{width:100%;border-collapse:collapse;font-size:13px;}
.lp-table th{font-family:'Oswald',sans-serif;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.6);text-align:left;padding:8px 10px;border-bottom:1px solid rgba(255,255,255,.14);}
.lp-table td{padding:9px 10px;border-bottom:1px solid rgba(255,255,255,.07);vertical-align:middle;}
.lp-dim{color:rgba(255,255,255,.5);font-size:11px;}
.lp-cap{display:block;}
.lp-badge{display:inline-block;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:600;background:rgba(255,255,255,.08);color:rgba(255,255,255,.65);}
.lp-badge--ok{background:rgba(0,255,136,.14);color:var(--neon);}
.lp-badge--due{background:rgba(255,107,107,.14);color:var(--red);}
.lp-actions{white-space:nowrap;}
.lp-check{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#fff;cursor:pointer;margin-right:12px;}
.lp-check input{width:15px;height:15px;accent-color:var(--neon);cursor:pointer;}
.lp-check--waive{color:rgba(245,166,35,.9);}
.lp-check--waive input{accent-color:#f5a623;}
/* Past-season (archived) read-only view — task 045 */
.lp-past-division{font-family:'Oswald',sans-serif;font-size:12px;color:var(--neon);text-transform:uppercase;letter-spacing:.1em;margin:16px 0 6px;}
/* Dashboard sub-module (task 051) — tile/filter styles mirror the League Play
   Player dashboard so the rehomed presentation reads identically. */
.dash-summary{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:14px;}
.dash-card{flex:1 1 150px;min-width:140px;padding:12px 14px;border-radius:10px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.04);}
.dash-card--ok{border-color:rgba(0,255,136,.3);background:rgba(0,255,136,.06);}
.dash-card--warn{border-color:rgba(232,160,32,.35);background:rgba(232,160,32,.08);}
.dash-card-label{font-size:9px;text-transform:uppercase;letter-spacing:1px;color:var(--muted);margin-bottom:4px;}
.dash-card-value{font-family:'Oswald',sans-serif;font-size:22px;color:#fff;line-height:1.1;font-variant-numeric:tabular-nums;}
/* ---- end lifted block ---- */

.dash-card-sub{font-size:10px;color:var(--muted);margin-top:4px;}

/* ---- new: the shared component (`sepay-`) ---- */
.sepay{display:block;}

/* State chips (the six filters) */
.sepay-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px;}
.sepay-chip{padding:8px 14px;border-radius:8px;border:1px solid rgba(255,255,255,.2);background:transparent;color:rgba(255,255,255,.85);cursor:pointer;font-family:'Oswald',sans-serif;font-size:11px;letter-spacing:.06em;text-transform:uppercase;min-height:36px;}
.sepay-chip.on{background:rgba(0,255,136,.15);border-color:var(--neon);color:var(--neon);}
.sepay-chip:focus-visible{outline:2px solid var(--neon);outline-offset:2px;}

/* Search + group select + export */
.sepay-controls{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:10px 0;}
.sepay-search,.sepay-group{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.18);border-radius:8px;color:#fff;font-family:inherit;font-size:13px;padding:9px 12px;min-height:40px;}
.sepay-search{flex:1 1 200px;min-width:0;}
.sepay-group{flex:0 1 220px;min-width:160px;}
select.sepay-group{color-scheme:dark;}
select.sepay-group option{color:#111;background:#fff;}
.sepay-search:focus-visible,.sepay-group:focus-visible{outline:2px solid var(--neon);outline-offset:1px;border-color:var(--neon);}
.sepay-export{padding:9px 14px;border-radius:8px;border:1px solid rgba(255,255,255,.2);background:transparent;color:rgba(255,255,255,.85);cursor:pointer;font-family:'Oswald',sans-serif;font-size:11px;letter-spacing:.06em;text-transform:uppercase;min-height:40px;}
.sepay-export:focus-visible{outline:2px solid var(--neon);outline-offset:2px;}

/* Message slot (action errors) */
.sepay-msg{margin:8px 0;font-size:12px;color:rgba(255,255,255,.75);}
.sepay-msg--err{color:var(--red);}
.sepay-empty{margin:14px 0;font-size:13px;color:rgba(255,255,255,.55);}

/* Table rows */
.sepay-row--dim{opacity:.55;}
.sepay-names{display:inline;}
.sepay-amp{color:rgba(255,255,255,.45);}
.sepay-name{font:inherit;font-size:13px;color:#fff;}
button.sepay-name{background:transparent;border:0;padding:0;cursor:pointer;text-decoration:underline;text-decoration-color:rgba(0,255,136,.45);text-underline-offset:3px;}
button.sepay-name:focus-visible{outline:2px solid var(--neon);outline-offset:2px;border-radius:3px;}
.sepay-name--plain{color:rgba(255,255,255,.85);}
.sepay-detail{display:block;font-size:12px;line-height:1.45;color:var(--muted);margin-top:3px;}
.lp-check input:disabled{cursor:default;opacity:.5;}

/* Record Payment form: swaps into the row's actions cell (park-and-restore) */
.sepay-record{display:flex;flex-direction:column;gap:8px;padding:10px 12px;border:1px solid rgba(0,255,136,.35);border-radius:10px;background:rgba(0,255,136,.05);white-space:normal;max-width:520px;}
.sepay-record-title{font-family:'Oswald',sans-serif;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--neon);}
.sepay-record-fields{display:flex;flex-wrap:wrap;gap:8px 12px;}
.sepay-record-field{display:flex;flex-direction:column;gap:3px;font-size:11px;color:rgba(255,255,255,.65);flex:1 1 110px;min-width:100px;}
.sepay-record-field input,.sepay-record-field select{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.18);border-radius:6px;color:#fff;font-family:inherit;font-size:13px;padding:7px 9px;min-height:36px;width:100%;box-sizing:border-box;}
.sepay-record-field input:focus-visible,.sepay-record-field select:focus-visible{outline:2px solid var(--neon);outline-offset:1px;border-color:var(--neon);}
.sepay-record-err{margin:0;font-size:12px;font-weight:600;color:var(--red);}
.sepay-record-acts{display:flex;gap:8px;flex-wrap:wrap;}
.sepay-mini{background:transparent;border:1px solid rgba(255,255,255,.25);border-radius:5px;color:#fff;padding:6px 10px;font-size:11px;font-family:inherit;cursor:pointer;min-height:32px;}
.sepay-mini--yes{border-color:var(--neon);color:var(--neon);}
.sepay-mini:focus-visible{outline:2px solid var(--neon);outline-offset:2px;}

/* Refund two-step (Amendment 3): same park-and-restore swap as the form */
.sepay-confirm{display:inline-flex;flex-wrap:wrap;align-items:center;gap:8px 10px;padding:8px 10px;border:1px solid rgba(255,107,107,.45);border-radius:10px;background:rgba(255,107,107,.08);white-space:normal;max-width:520px;}
.sepay-confirm-q{font-size:12px;font-weight:600;line-height:1.4;color:#fff;}
.sepay-confirm-acts{display:inline-flex;gap:8px;flex-wrap:wrap;}
.sepay-mini--danger{border-color:var(--red);color:var(--red);}
.sepay-mini--danger:focus-visible{background:var(--red);color:var(--ink);outline:none;}

/* SP11a: card-paid rows (source 'stripe') — the Card badge after the state
   chip, the note under the Refunded toggle, and the in-row Refund control.
   No hover rule of its own: the button is a .sepay-mini--danger, covered by
   the pointer-guard block below. */
.lp-badge--card{background:rgba(232,160,32,.16);color:var(--gold,#e8a020);margin-left:6px;}
.sepay-card-note{display:block;font-size:11px;line-height:1.4;color:var(--muted);margin:2px 0 6px;white-space:normal;max-width:360px;}
.sepay-cardrefund{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;}
.sepay-cardrefund-amt{display:inline-flex;align-items:center;gap:4px;font-size:13px;color:rgba(255,255,255,.75);}
.sepay-cardrefund input{width:96px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.18);border-radius:6px;color:#fff;color-scheme:dark;font-family:inherit;font-size:13px;padding:6px 8px;min-height:32px;box-sizing:border-box;}
.sepay-cardrefund input:focus-visible{outline:2px solid var(--neon);outline-offset:1px;border-color:var(--neon);}
.sepay-cardrefund input:disabled,.sepay-mini:disabled{opacity:.5;cursor:default;}

@media (hover: hover) and (pointer: fine) {
  .sepay-chip:hover{border-color:var(--neon);color:var(--neon);}
  .sepay-export:hover{border-color:var(--neon);color:var(--neon);}
  button.sepay-name:hover{color:var(--neon);text-decoration-color:var(--neon);}
  .sepay-mini:hover{border-color:var(--neon);}
  .sepay-mini--yes:hover{background:var(--neon);color:var(--ink);}
  .sepay-mini--danger:hover{background:var(--red);color:var(--ink);}
}

@media (max-width: 680px) {
  .sepay-group{flex:1 1 100%;}
  .lp-check{margin-right:8px;}
}
