.sheet-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(160px, .8fr));
  gap: .85rem;
  margin-bottom: 1rem;
}
.spreadsheet-shell {
  overflow: auto;
  max-height: 68vh;
  padding: 0;
  border-radius: 18px;
}
.spreadsheet {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 1280px;
  font-size: .88rem;
}
.spreadsheet thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  color: #fff;
  background: linear-gradient(180deg, var(--gi-blue-800), var(--gi-blue-900));
  text-align: left;
  padding: .72rem .65rem;
  border-right: 1px solid rgba(255,255,255,.16);
  white-space: nowrap;
}
.spreadsheet tbody td {
  border-right: 1px solid var(--gi-line);
  border-bottom: 1px solid var(--gi-line);
  background: #fff;
  padding: .55rem .58rem;
  vertical-align: top;
}
.spreadsheet tbody tr:nth-child(even) td { background: #f9fcff; }
.spreadsheet tbody tr:hover td { background: #eef8ff; }
.spreadsheet .frozen { position: sticky; left: 0; z-index: 4; box-shadow: 5px 0 10px rgba(6,35,74,.06); }
.spreadsheet thead .frozen { z-index: 8; }
.spreadsheet .editable { min-width: 80px; border-radius: 7px; outline: 1px solid transparent; }
.spreadsheet .editable:focus { outline-color: var(--gi-sky-500); background: #fff !important; box-shadow: inset 0 0 0 2px rgba(36,182,238,.18); }
.spreadsheet select, .spreadsheet input { min-height: 34px; padding: .35rem .45rem; border-radius: 9px; font-size: .84rem; }
.spreadsheet .money { font-weight: 900; color: var(--gi-blue-950); white-space: nowrap; }
.spreadsheet .cell-actions { display: flex; gap: .35rem; flex-wrap: wrap; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--gi-line);
  border-radius: 10px;
  background: #fff;
  color: var(--gi-blue-800);
  font-weight: 900;
}
.icon-btn:hover { background: var(--gi-blue-100); }
.cell-note { max-width: 220px; min-width: 160px; }
.cell-long { min-width: 210px; }
.cell-medium { min-width: 150px; }
.cell-small { min-width: 90px; }
.empty-state { padding: 2rem; text-align: center; color: var(--gi-muted); }

.sheet-toolbar { grid-template-columns: minmax(220px, 1.4fr) repeat(6, minmax(145px, .8fr)); }
.spreadsheet { min-width: 1680px; }
.icon-btn .icon { width: 18px; height: 18px; }
.spreadsheet td small { display: block; margin-top: .18rem; color: var(--gi-muted); }

.spreadsheet tbody tr.program-row td { background: linear-gradient(90deg, var(--program-bg), #fff 18%); }
.spreadsheet tbody tr.program-row:nth-child(even) td { background: linear-gradient(90deg, var(--program-bg), #f9fcff 18%); }
.spreadsheet tbody tr.program-row:hover td { background: linear-gradient(90deg, var(--program-bg), #eef8ff 18%); }
.spreadsheet tbody tr.program-row td:first-child { box-shadow: inset 5px 0 0 var(--program-accent), 5px 0 10px rgba(6,35,74,.06); }


/* v1.1 spreadsheet usability */
.sheet-top-scrollbar { overflow-x:auto; overflow-y:hidden; min-height:18px; height:18px; padding:0; margin:.8rem 0 .35rem; }
.sheet-top-scrollbar > div { height:1px; min-width:1680px; }
.spreadsheet { border-collapse: separate; border-spacing:0; }
.spreadsheet th, .spreadsheet td { border-right:1px solid #dbe7f3; border-bottom:1px solid #dbe7f3; }
.spreadsheet th:first-child, .spreadsheet td:first-child { border-left:1px solid #dbe7f3; }
.spreadsheet thead th { border-top:1px solid #dbe7f3; }
.spreadsheet tbody tr:nth-child(odd) td { background:#ffffff; }
.spreadsheet tbody tr:nth-child(even) td { background:#f6faff; }
.spreadsheet tbody tr:hover td, .spreadsheet td.cell-focus-row { background:#eef8ff !important; }
.spreadsheet td.cell-focus-col, .spreadsheet th.cell-focus-col { box-shadow: inset 0 0 0 2px rgba(14,165,233,.20); }
.spreadsheet td.cell-focus-row.cell-focus-col { box-shadow: inset 0 0 0 2px rgba(37,99,235,.35); }
.spreadsheet tbody tr.program-row:nth-child(odd) td { background: linear-gradient(90deg, var(--program-bg), #fff 18%); }
.spreadsheet tbody tr.program-row:nth-child(even) td { background: linear-gradient(90deg, var(--program-bg), #f6faff 18%); }

/* v1.2 table navigation and visibility */
.table-top-scrollbar {
  overflow-x: auto;
  overflow-y: hidden;
  min-height: 20px;
  height: 20px;
  padding: 0;
  margin: .7rem 0 .35rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(14,165,233,.14), rgba(37,99,235,.08));
}
.table-top-scrollbar > div { height: 1px; min-width: 1200px; }
.spreadsheet-shell, .table-top-scrollbar {
  scrollbar-color: var(--gi-sky-500) #eaf4ff;
  scrollbar-width: thin;
}
.spreadsheet-shell::-webkit-scrollbar,
.table-top-scrollbar::-webkit-scrollbar { height: 14px; width: 14px; }
.spreadsheet-shell::-webkit-scrollbar-track,
.table-top-scrollbar::-webkit-scrollbar-track { background: #eaf4ff; border-radius: 999px; }
.spreadsheet-shell::-webkit-scrollbar-thumb,
.table-top-scrollbar::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--gi-sky-500), var(--gi-blue-700));
  border-radius: 999px;
  border: 3px solid #eaf4ff;
}
.spreadsheet-shell::-webkit-scrollbar-thumb:hover,
.table-top-scrollbar::-webkit-scrollbar-thumb:hover { background: linear-gradient(135deg, var(--gi-blue-500), var(--gi-blue-900)); }
.spreadsheet-shell { border: 1px solid rgba(14,165,233,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); }
.spreadsheet-shell::after { content: ''; position: sticky; right: 0; display: block; width: 32px; height: 1px; }
.sheet-top-scrollbar {
  background: linear-gradient(90deg, rgba(14,165,233,.14), rgba(37,99,235,.08));
  border-radius: 999px;
  scrollbar-color: var(--gi-sky-500) #eaf4ff;
  scrollbar-width: thin;
}
.sheet-top-scrollbar::-webkit-scrollbar { height: 14px; }
.sheet-top-scrollbar::-webkit-scrollbar-track { background:#eaf4ff; border-radius:999px; }
.sheet-top-scrollbar::-webkit-scrollbar-thumb { background:linear-gradient(135deg, var(--gi-sky-500), var(--gi-blue-700)); border-radius:999px; border:3px solid #eaf4ff; }

/* v1.6: scroll nativo mas visible */
.spreadsheet-shell::-webkit-scrollbar { height: 18px; width: 18px; }
.spreadsheet-shell::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 4px solid #eaf7ff;
  background: linear-gradient(135deg, var(--gi-blue-700), var(--gi-sky-500));
}
.spreadsheet-shell::-webkit-scrollbar-track { background: #eaf7ff; border-radius: 999px; }
.spreadsheet-shell { scrollbar-color: var(--gi-blue-600) #eaf7ff; scrollbar-width: auto; }

/* v2.2.6: tablas modernas tipo referencia, con filtros superiores, columnas fijas y controles limpios */
.spreadsheet-shell.card {
  padding: 0;
  overflow: auto;
  max-height: 70vh;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15,23,42,.10);
}
.spreadsheet-shell::-webkit-scrollbar,
.table-top-scrollbar::-webkit-scrollbar,
.sheet-top-scrollbar::-webkit-scrollbar { width: 12px; height: 12px; }
.spreadsheet-shell::-webkit-scrollbar-track,
.table-top-scrollbar::-webkit-scrollbar-track,
.sheet-top-scrollbar::-webkit-scrollbar-track { background: #f8fafc; border-radius: 999px; margin: 3px; }
.spreadsheet-shell::-webkit-scrollbar-thumb,
.table-top-scrollbar::-webkit-scrollbar-thumb,
.sheet-top-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border: 3px solid #f8fafc;
  border-radius: 999px;
}
.spreadsheet-shell::-webkit-scrollbar-thumb:hover,
.table-top-scrollbar::-webkit-scrollbar-thumb:hover,
.sheet-top-scrollbar::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
.modern-top-scrollbar {
  height: 16px;
  min-height: 16px;
  margin: .65rem 0 .35rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #eef2ff;
  overflow-x: auto;
  overflow-y: hidden;
}
.modern-spreadsheet {
  width: 100%;
  min-width: 1780px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .84rem;
  color: #334155;
}
.modern-spreadsheet thead th {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: .85rem .72rem;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  background: rgba(248,250,252,.96);
  color: #64748b;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
  backdrop-filter: blur(12px);
}
.modern-spreadsheet tbody tr { transition: background .16s ease; }
.modern-spreadsheet tbody tr:nth-child(odd) { background: #ffffff; }
.modern-spreadsheet tbody tr:nth-child(even) { background: #f8fafc; }
.modern-spreadsheet tbody tr:hover { background: #f1f5f9; }
.modern-spreadsheet tbody td {
  padding: .48rem .55rem;
  border-bottom: 1px solid #edf2f7;
  border-right: 1px solid #edf2f7;
  background: inherit;
  vertical-align: middle;
}
.modern-spreadsheet th.sticky-left-1,
.modern-spreadsheet td.sticky-left-1 {
  position: sticky;
  left: 0;
  z-index: 12;
  min-width: 118px;
  box-shadow: 4px 0 16px -8px rgba(15,23,42,.2);
}
.modern-spreadsheet th.sticky-left-2,
.modern-spreadsheet td.sticky-left-2 {
  position: sticky;
  left: 118px;
  z-index: 12;
  min-width: 230px;
  box-shadow: 4px 0 18px -10px rgba(15,23,42,.2);
}
.modern-spreadsheet thead th.sticky-left-1,
.modern-spreadsheet thead th.sticky-left-2 { z-index: 30; background: rgba(248,250,252,.98); }
.modern-spreadsheet th.sticky-right-1,
.modern-spreadsheet td.sticky-right-1 {
  position: sticky;
  right: 0;
  z-index: 13;
  min-width: 150px;
  box-shadow: -4px 0 18px -10px rgba(15,23,42,.25);
}
.modern-spreadsheet thead th.sticky-right-1 { z-index: 30; background: rgba(248,250,252,.98); }
.modern-spreadsheet .text-center { text-align: center; }
.modern-spreadsheet .money-head { color: #047857; background: rgba(236,253,245,.95); }
.modern-spreadsheet .req-head { color: #4338ca; background: rgba(238,242,255,.96); }
.modern-spreadsheet .excel-input,
.modern-spreadsheet .modern-table-select {
  width: 100%;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  padding: .42rem .55rem;
  color: #334155;
  font: inherit;
  outline: 0;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.modern-spreadsheet .excel-input:hover,
.modern-spreadsheet .modern-table-select:hover { background: rgba(255,255,255,.82); border-color: #e2e8f0; }
.modern-spreadsheet .excel-input:focus,
.modern-spreadsheet .modern-table-select:focus {
  background: #fff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.modern-spreadsheet .mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 850; }
.modern-spreadsheet .strong { font-weight: 900; color: #0f172a; }
.modern-spreadsheet .phone-input { min-width: 115px; text-align: center; font-size: .78rem; }
.modern-spreadsheet .email-input { min-width: 210px; color: #2563eb; font-weight: 750; }
.modern-spreadsheet .note-input { min-width: 190px; resize: none; line-height: 1.35; }
.modern-spreadsheet .table-main-text { display: block; margin: .25rem 0 .1rem; color: #0f172a; }
.modern-spreadsheet small { display: block; margin-top: .12rem; color: #64748b; line-height: 1.25; }
.contact-wrap { display: flex; align-items: center; justify-content: center; gap: .35rem; }
.wa-button {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  min-height: 32px;
  padding: .35rem .55rem;
  border-radius: 11px;
  border: 1px solid #bbf7d0;
  background: #ecfdf5;
  color: #047857;
  text-decoration: none;
  font-weight: 900;
  white-space: nowrap;
}
.wa-button:hover { background: #d1fae5; color: #065f46; }
.group-pill {
  display: inline-flex;
  justify-content: center;
  min-width: 44px;
  padding: .28rem .48rem;
  border-radius: 9px;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
  color: #334155;
  font-weight: 950;
}
.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-width: 126px;
  padding: .42rem .55rem;
  border: 1px solid #e0e7ff;
  border-radius: 12px;
  background: #eef2ff;
  color: #3730a3;
  text-align: left;
}
.platform-pill strong { display: block; font-size: .78rem; }
.platform-pill small { color: #6366f1; }
.modern-status-select {
  min-width: 118px;
  border-radius: 999px !important;
  font-weight: 900;
  text-align: center;
}
.req-cell { min-width: 160px; background: rgba(238,242,255,.5) !important; }
.requirement-dropdown { position: relative; }
.req-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .35rem;
  width: 100%;
  min-height: 34px;
  padding: .42rem .55rem;
  border: 1px solid #c7d2fe;
  border-radius: 10px;
  background: #fff;
  color: #3730a3;
  font-size: .76rem;
  font-weight: 900;
}
.req-toggle .icon { transform: rotate(90deg); color: #818cf8; }
.req-menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + 6px);
  left: 0;
  display: grid;
  gap: .25rem;
  min-width: 168px;
  padding: .45rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15,23,42,.16);
}
.req-menu[hidden] { display: none; }
.req-menu label {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem;
  border-radius: 10px;
  color: #475569;
  font-size: .78rem;
  cursor: pointer;
}
.req-menu label:hover { background: #f8fafc; color: #3730a3; }
.payment-chip-row { display: flex; align-items: center; justify-content: space-between; gap: .4rem; margin-bottom: .18rem; }
.modern-payment-cell { min-width: 150px; }
.money-zone { min-width: 112px; text-align: center; background: rgba(236,253,245,.56) !important; color: #064e3b; }
.money-zone.paid { color: #047857; }
.money-zone.debt { color: #dc2626; }
.money-zone.clear { color: #64748b; }
.modern-spreadsheet .cell-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .35rem;
}
.modern-spreadsheet .icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #2563eb;
  background: #eff6ff;
  border-color: #bfdbfe;
}
.modern-spreadsheet .icon-btn:hover { color: #fff; background: #2563eb; border-color: #2563eb; }
.modern-spreadsheet .icon-btn.wa-action { color: #047857; background: #ecfdf5; border-color: #bbf7d0; }
.modern-spreadsheet .icon-btn.wa-action:hover { color: #fff; background: #059669; border-color: #059669; }
.modern-spreadsheet .icon-btn.danger { color: #e11d48; background: #fff1f2; border-color: #fecdd3; }
.modern-spreadsheet .icon-btn.danger:hover { color: #fff; background: #e11d48; border-color: #e11d48; }
.modern-spreadsheet .cell-focus-row { background: #eef6ff !important; }
.modern-spreadsheet .cell-focus-col { box-shadow: inset 0 0 0 2px rgba(59,130,246,.14); }

@media (max-width: 900px) {
  .spreadsheet-shell.card { max-height: 64vh; }
  .modern-spreadsheet { min-width: 1500px; }
}
.spreadsheet.modern-spreadsheet tbody tr.program-row td,
.spreadsheet.modern-spreadsheet tbody tr.program-row:nth-child(odd) td,
.spreadsheet.modern-spreadsheet tbody tr.program-row:nth-child(even) td,
.spreadsheet.modern-spreadsheet tbody tr.program-row:hover td {
  background: inherit !important;
}
.spreadsheet.modern-spreadsheet tbody tr.program-row .req-cell { background: rgba(238,242,255,.55) !important; }
.spreadsheet.modern-spreadsheet tbody tr.program-row .money-zone { background: rgba(236,253,245,.62) !important; }
.spreadsheet.modern-spreadsheet tbody tr.program-row td.sticky-left-1,
.spreadsheet.modern-spreadsheet tbody tr.program-row td.sticky-left-2,
.spreadsheet.modern-spreadsheet tbody tr.program-row td.sticky-right-1 { background: inherit !important; }


/* v2.2.7: refuerzo de columnas fijas en tablas modernas */
.modern-spreadsheet th.sticky-left-1,
.modern-spreadsheet td.sticky-left-1 { position: sticky !important; left: 0 !important; z-index: 24; background-clip: padding-box; }
.modern-spreadsheet th.sticky-left-2,
.modern-spreadsheet td.sticky-left-2 { position: sticky !important; left: 118px !important; z-index: 24; background-clip: padding-box; }
.modern-spreadsheet thead th.sticky-left-1,
.modern-spreadsheet thead th.sticky-left-2 { z-index: 44; }
.modern-spreadsheet th.sticky-right-1,
.modern-spreadsheet td.sticky-right-1 { position: sticky !important; right: 0 !important; z-index: 25; background-clip: padding-box; }
.modern-spreadsheet thead th.sticky-right-1 { z-index: 45; }

/* v2.2.19 - Tabla de pagos compacta para cobranzas */
.payments-mode tbody tr:nth-child(odd) td { background-color: rgba(255,255,255,.98); }
.payments-mode tbody tr:nth-child(even) td { background-color: rgba(248,250,252,.98); }
.payments-mode tbody tr:hover td { background-color: rgba(239,246,255,.92); }
.payments-mode .sticky-left-1,
.payments-mode .sticky-left-2,
.payments-mode .sticky-right-1 { background: inherit; }
.cell-program-narrow { max-width: 210px; min-width: 170px; }
.wrap-2 { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; line-height:1.25; font-weight:500; }
.contact-cell small { display:block; margin-top:.22rem; color:var(--muted); font-size:.72rem; }
.compact-icon-row .icon-btn,
.student-folder-row .icon-btn,
.payment-actions .icon-btn { width: 1.95rem; height: 1.95rem; min-width: 1.95rem; padding:0; border-radius:.65rem; }
.icon-btn.is-disabled { opacity:.35; filter: grayscale(1); }
.student-folder-row { margin-top:.35rem; }
.payment-url-cell { min-width: 150px; }
.payment-url-cell .payment-chip-row strong { font-weight: 650; }
.receipt-url-field { display:block; margin-top:.35rem; }
.receipt-url-field span { display:block; font-size:.66rem; color:var(--muted); margin-bottom:.15rem; }
.receipt-url-field input { width:100%; border:1px solid rgba(203,213,225,.8); border-radius:.55rem; padding:.32rem .42rem; font-size:.72rem; background:rgba(255,255,255,.85); }
.payment-actions { margin-top:.35rem; }
.req-folder-actions { margin-top:.35rem; justify-content:center; }
.email-input { min-width: 145px; }
.modal-payment-item { display:grid; grid-template-columns: minmax(120px,1.1fr) auto minmax(150px,1fr); gap:.55rem; align-items:center; }
.modal-payment-item strong { font-weight:650; }
.modal-payment-item small { color:var(--muted); }
.modal-payment-item input { grid-column:1 / -1; border:1px solid var(--border); border-radius:.7rem; padding:.45rem .6rem; }
@media (max-width: 760px) { .modal-payment-item { grid-template-columns:1fr; } }

/* v2.2.24 - Fase 2 cobranzas: tabla principal + ficha con pestañas */
.payments-filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) repeat(6, minmax(138px, .8fr));
  gap: .75rem;
  align-items: end;
}
.payments-filter-panel .field { min-width: 0; }
.payments-filter-panel .search-field { min-width: 220px; }
.payments-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
  margin: .9rem 0;
}
.payments-overview-card {
  display: grid;
  gap: .25rem;
  min-height: 118px;
  padding: 1rem;
  border: 1px solid rgba(203,213,225,.9);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  box-shadow: 0 12px 28px rgba(15,23,42,.06);
}
.payments-overview-card .overview-icon {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 14px;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}
.payments-overview-card .overview-icon.success { color: #047857; background: #ecfdf5; border-color: #bbf7d0; }
.payments-overview-card .overview-icon.warning { color: #b45309; background: #fffbeb; border-color: #fde68a; }
.payments-overview-card small {
  color: #64748b;
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 650;
}
.payments-overview-card strong {
  color: #0f172a;
  font-size: 1.35rem;
  line-height: 1.1;
  font-weight: 760;
}
.payments-overview-card em {
  color: #64748b;
  font-size: .78rem;
  font-style: normal;
}
.payments-overview-card.primary { border-color: rgba(59,130,246,.22); background: linear-gradient(180deg, #eff6ff, #fff); }
.payments-overview-card.warning { border-color: rgba(245,158,11,.26); background: linear-gradient(180deg, #fffbeb, #fff); }
.payments-overview-card.next-list {
  gap: .45rem;
}
.payments-overview-card.next-list div {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) auto;
  gap: .25rem .55rem;
  padding: .42rem .5rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: rgba(255,255,255,.76);
}
.payments-overview-card.next-list div span { color: #334155; font-size: .78rem; }
.payments-overview-card.next-list div strong { color: #dc2626; font-size: .82rem; font-weight: 760; }
.payments-overview-card.next-list div em { grid-column: 1 / -1; font-size: .72rem; }
.payments-table-shell { max-height: 64vh; }
.student-finance-modal .modern-modal__panel { width: min(1080px, 96vw); }
.student-modal-head { background: linear-gradient(180deg, #f8fafc, #fff); }
.student-modal-identity { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.student-modal-avatar {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  font-weight: 760;
  box-shadow: 0 12px 22px rgba(37,99,235,.18);
}
.student-modal-identity .eyebrow { margin: 0 0 .1rem; }
.student-modal-identity h3 { font-size: 1.08rem; font-weight: 740; margin: 0; }
.student-modal-identity span { display: block; color: #64748b; font-size: .82rem; margin-top: .16rem; }
.student-modal-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
  margin-bottom: .9rem;
}
.student-modal-summary article {
  padding: .75rem;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #f8fafc;
}
.student-modal-summary small { display: block; color: #64748b; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 640; }
.student-modal-summary strong { display: block; color: #0f172a; margin-top: .2rem; font-size: 1.05rem; font-weight: 760; }
.student-modal-tabs {
  display: flex;
  gap: .45rem;
  padding: .4rem;
  margin-bottom: .9rem;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #f1f5f9;
  overflow-x: auto;
}
.student-modal-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 2.35rem;
  padding: .55rem .8rem;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #475569;
  background: transparent;
  font-size: .82rem;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}
.student-modal-tabs button.is-active {
  color: #2563eb;
  background: #fff;
  border-color: #dbeafe;
  box-shadow: 0 8px 18px rgba(15,23,42,.06);
}
.student-modal-panels {
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  padding: 1rem;
}
.student-modal-panel[hidden] { display: none !important; }
.student-form-grid { display: grid; gap: .85rem; }
.student-form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.student-form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.student-form-grid .span-2 { grid-column: 1 / -1; }
.student-modal-actions { margin-top: .85rem; }
.student-status-note {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-top: .85rem;
  padding: .7rem .8rem;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  color: #1e3a8a;
  background: #eff6ff;
  font-size: .82rem;
}
.student-modal-payment-summary { margin-bottom: .9rem; }
.student-payment-list {
  display: grid;
  gap: .75rem;
  max-height: 48vh;
  overflow: auto;
  padding-right: .15rem;
}
.student-payment-card {
  display: grid;
  gap: .65rem;
  padding: .85rem;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15,23,42,.04);
}
.student-payment-card header,
.student-payment-url-row {
  display: flex;
  align-items: center;
  gap: .65rem;
  justify-content: space-between;
}
.student-payment-card header span { display: block; color: #0f172a; font-size: .92rem; font-weight: 720; }
.student-payment-card header small { display: block; color: #64748b; font-size: .75rem; margin-top: .1rem; }
.student-payment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
}
.student-payment-url-row .field { flex: 1; }
.student-payment-url-row .icon-btn { flex: 0 0 auto; }
@media (max-width: 1120px) {
  .payments-filter-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .payments-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .payments-filter-panel,
  .payments-overview-grid,
  .student-modal-summary,
  .student-form-grid.two,
  .student-form-grid.three,
  .student-payment-grid { grid-template-columns: 1fr; }
  .student-payment-card header,
  .student-payment-url-row { align-items: stretch; flex-direction: column; }
}
