/* GSCC premium - List of Institutions + List of Banks (Views/Home/InstituteList.cshtml, BankList.cshtml) */
.gpi-stack { display: grid; gap: var(--gp-s5); }

/* notice */
.gpi-notice {
  display: flex; gap: var(--gp-s4); align-items: flex-start;
  padding: var(--gp-s4) var(--gp-s5);
  background: var(--gp-accent-tint); border: 1px solid #f6cf9f; border-left: 4px solid var(--gp-accent);
  border-radius: var(--gp-radius);
}
.gpi-notice__mark { flex: none; display: inline-flex; align-items: center; gap: var(--gp-s2); font-weight: 800; color: var(--gp-secondary); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; }
.gpi-notice p { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--gp-ink-2); overflow-wrap: anywhere; }
.gpi-notice a { color: var(--gp-tertiary); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.gpi-notice a:hover { color: var(--gp-primary); }
@media (max-width: 639px) { .gpi-notice { flex-direction: column; gap: var(--gp-s2); } }

/* panel + filters */
.gpi-panel { background: var(--gp-card); border: 1px solid var(--gp-line); border-radius: var(--gp-radius); box-shadow: var(--gp-shadow); padding: var(--gp-s5); }
.gpi-filters { display: grid; gap: var(--gp-s4); align-items: end; }
@media (min-width: 768px) { .gpi-filters { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .gpi-filters { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; } }
.gpi-actions { display: flex; flex-wrap: wrap; gap: var(--gp-s2); }
@media (min-width: 768px) and (max-width: 1099px) { .gpi-actions { grid-column: 1 / -1; } }
.gpi-filters .select2-container { width: 100% !important; }
.gpi-filters .select2-container .select2-selection--single { height: 2.875rem; border: 1px solid var(--gp-line-strong); border-radius: var(--gp-radius-sm); }
.gpi-filters .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 2.75rem; padding-left: 0.875rem; color: var(--gp-ink); }
.gpi-filters .select2-container--default .select2-selection--single .select2-selection__arrow { height: 2.75rem; }
.gpi-filters select.gp-input { appearance: auto; }
.gpi-exports { display: flex; flex-wrap: wrap; gap: var(--gp-s2); margin-left: auto; }
.gpi-note { margin: var(--gp-s3) 0 var(--gp-s4); font-size: 0.8125rem; color: var(--gp-muted); }

/* table */
.gpi-table-wrap { overflow-x: auto; border: 1px solid var(--gp-line); border-radius: var(--gp-radius); background: #fff; }
.gpi-table-wrap:focus-visible { outline: 3px solid var(--gp-accent); outline-offset: 2px; }
.gpi-table { width: 100%; margin: 0; border-collapse: collapse; font-size: 0.9375rem; color: var(--gp-ink-2); }
.gpi-table th {
  padding: 0.75rem 1rem; text-align: left; white-space: nowrap;
  background: var(--gp-surface-low); border-bottom: 1px solid var(--gp-line);
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gp-primary);
}
.gpi-table td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--gp-line); vertical-align: top; }
.gpi-table tbody tr:last-child td { border-bottom: 0; }
.gpi-table tbody tr:hover td { background: var(--gp-surface); }
.gpi-sr { width: 4rem; color: var(--gp-muted); font-variant-numeric: tabular-nums; }
.gpi-name { font-weight: 700; color: var(--gp-ink); min-width: 14rem; }
.gpi-state { white-space: nowrap; }
.gpi-state .gp-chip { white-space: nowrap; }

@media (max-width: 639px) {
  .gpi-panel { padding: var(--gp-s4); }
  .gpi-table-wrap { border: 0; background: transparent; overflow: visible; }
  .gpi-table, .gpi-table tbody, .gpi-table tr, .gpi-table td { display: block; width: 100%; }
  .gpi-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .gpi-table tbody tr { margin-bottom: var(--gp-s3); background: #fff; border: 1px solid var(--gp-line); border-radius: var(--gp-radius); box-shadow: var(--gp-shadow-sm); padding: var(--gp-s2) var(--gp-s4); }
  .gpi-table td { padding: 0.5rem 0; border-bottom: 1px dashed var(--gp-line); display: grid; grid-template-columns: 7rem 1fr; gap: var(--gp-s3); }
  .gpi-table td:last-child { border-bottom: 0; }
  .gpi-table td[data-label]::before { content: attr(data-label); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gp-muted); }
  .gpi-table td[colspan] { display: block; }
  .gpi-table td[colspan]::before { content: none; }
  .gpi-table .gpi-sr { width: auto; }
  .gpi-name { min-width: 0; }
}

/* empty-state partial inside the table */
.gpi-table .gscc-table-status { text-align: center; padding: var(--gp-s6) var(--gp-s4); color: var(--gp-muted); }
.gpi-table .gscc-table-status h2 { font-size: 1rem; font-weight: 800; color: var(--gp-ink); margin: var(--gp-s3) 0 var(--gp-s1); }
.gpi-table .gscc-table-status p { margin: 0; }
.gpi-table .al-empty-img { max-width: 7rem; height: auto; opacity: 0.85; }

/* ---------- Bank list ---------- */
.gpb-count { margin: 0 0 var(--gp-s4); font-size: 0.875rem; color: var(--gp-muted); }
.gpb-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gp-s4); grid-template-columns: 1fr; }
@media (min-width: 480px) { .gpb-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .gpb-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .gpb-grid { grid-template-columns: repeat(4, 1fr); } }
.gpb-item {
  display: flex; flex-direction: column; align-items: center; gap: var(--gp-s3); height: 100%;
  padding: var(--gp-s5) var(--gp-s4); text-align: center;
  background: var(--gp-card); border: 1px solid var(--gp-line); border-radius: var(--gp-radius); box-shadow: var(--gp-shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.gpb-item:hover { transform: translateY(-2px); box-shadow: var(--gp-shadow); border-color: var(--gp-primary-2); }
.gpb-logo-wrap {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 5rem; padding: var(--gp-s2);
  background: var(--gp-surface); border-radius: var(--gp-radius-sm);
}
.gpb-logo { max-width: 100%; max-height: 100%; object-fit: contain; }
.gpb-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--gp-primary-tint); color: var(--gp-primary);
  font-family: var(--gp-font-head); font-weight: 800; font-size: 1.5rem;
}
.gpb-name { margin: 0; font-family: var(--gp-font-head); font-size: 1rem; font-weight: 700; line-height: 1.35; color: var(--gp-ink); overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  .gpb-item { transition: none; }
  .gpb-item:hover { transform: none; }
}
