@import url("../classic/style.css");

:root {
  --bg: linear-gradient(135deg, #f0f6ff 0%, #d6e6ff 100%);
  --card: rgba(255, 255, 255, 0.9);
  --primary: #0057d9;
  --accent: #ffc72c;
  --text: #0f172a;
  --muted: #5f6c85;
  --success: #1f9d63;
  --danger: #d62839;
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
}

body {
  background: #e6f0ff;
  color: var(--text);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: -1;
}

.topbar {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 1000;
}

.logo-inline img {
  height: 48px;
  width: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
}

.dashboard {
  background:
    linear-gradient(120deg, rgba(0, 87, 217, 0.08), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(255, 199, 44, 0.15), transparent 45%);
}

.card {
  background: var(--card);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.1);
}

.btn {
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
}

a.btn.btn-primary,
a.btn.btn-primary:visited,
button.btn.btn-primary,
input[type="submit"].btn.btn-primary,
.btn.btn-primary,
.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  border: none;
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 12px 25px rgba(2, 132, 199, 0.35);
  text-decoration: none;
  -webkit-appearance: none;
  appearance: none;
}

a.btn.btn-primary:hover,
button.btn.btn-primary:hover,
input[type="submit"].btn.btn-primary:hover,
.btn.btn-primary:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(37, 99, 235, 0.35);
}

.btn-soft {
  background: rgba(0, 87, 217, 0.08);
  border: 1px solid rgba(0, 87, 217, 0.15);
  color: var(--primary);
}

input,
select,
textarea {
  font: inherit;
  font-family: inherit !important;
  line-height: inherit;
  font-weight: 400;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.15);
  color: var(--text);
  min-height: 52px;
  border-radius: 16px;
  padding: 0 1rem;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 87, 217, 0.15);
}

button {
  font: inherit;
  font-family: inherit !important;
  line-height: inherit;
}

input[type=date]::-webkit-calendar-picker-indicator,
input[type=search]::-webkit-search-decoration {
  height: 100%;
}

.tpu-force-uppercase {
  text-transform: uppercase;
}

.login-card {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
}

.logo-large {
  background: #fff;
}

.wave-bg {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: -2;
}

.wave-dashboard {
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.wave-dashboard.wave-dashboard--form {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.wave-header {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 1.4rem 2rem;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(0, 87, 217, 0.12);
}

.wave-brand {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.brand-pill {
  display: inline-flex;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 199, 44, 0.2);
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-circle {
  width: 90px;
  height: 90px;
  border-radius: 999px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 35px rgba(14, 165, 233, 0.2);
}

.logo-circle img {
  width: 60px;
}
.topbar-links .user-menu .user-menu-dropdown {
  z-index: 999;
}
.topbar-links .user-menu .user-menu-dropdown {
  z-index: 999;
}

.wave-user {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}

.panel {
  border-radius: 24px;
}

.wave-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.wave-table td {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(2, 28, 173, 0.1);
}

.panel {
  background: rgba(255, 255, 255, 0.96);
  padding: 1.4rem 1.6rem;
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.panel h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.panel p {
  margin: 0;
}

.panel-stats--arena {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.04);
  box-shadow: 0 25px 55px rgba(15, 23, 42, 0.08);
}

.panel-stats p {
  color: var(--muted);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel-head--arena {
  align-items: flex-start;
}

.panel-wide {
  grid-column: 1 / -1;
}

.arena-tag-lite {
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(8, 18, 41, 0.08);
  color: #163463;
  border: 1px solid rgba(8, 18, 41, 0.2);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.arena-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.stat-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
  padding: 1rem 1.2rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  min-height: 140px;
  font: inherit;
  color: inherit;
}

.stat-card:focus-visible,
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(0, 87, 217, 0.18);
  outline: none;
}

.stat-card:focus {
  outline: none;
}

.arena-stat-card {
  border-radius: 22px;
  padding: 1.2rem 1.4rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: linear-gradient(135deg, rgba(8, 18, 41, 0.95), rgba(16, 38, 85, 0.92));
  color: #f8fafc;
  border: none;
  box-shadow: 0 25px 45px rgba(9, 12, 31, 0.25);
  cursor: pointer;
  font: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
}

.arena-stat-card small {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: rgba(173, 199, 255, 0.9);
}

.arena-stat-card__value {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}

.arena-stat-card p {
  margin: 0;
  color: rgba(226, 232, 240, 0.85);
  font-size: 0.9rem;
}

.arena-stat-card:focus-visible,
.arena-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 35px 55px rgba(9, 12, 31, 0.35);
}

.arena-stat-card--docs {
  background: linear-gradient(135deg, rgba(8, 18, 41, 0.95), rgba(16, 38, 85, 0.92));
  color: #f8fafc;
}

.stat-card strong {
  font-size: 2rem;
  line-height: 1;
  color: var(--primary);
}

.stat-card small,
.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: none;
}

.stat-card small {
  display: block;
  margin-top: auto;
}

.stat-grid--docs .stat-card strong {
  color: #b45309;
}

.panel-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.btn-soft {
  background: rgba(0, 87, 217, 0.08);
  border: 1px solid rgba(0, 87, 217, 0.15);
  color: var(--primary);
}

.btn-soft:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.badge.orange {
  background: rgba(255, 199, 44, 0.25);
  color: #c27800;
}

.badge.blue {
  background: rgba(0, 87, 217, 0.18);
  color: #003f9e;
}

.badge.gray {
  background: rgba(15, 23, 42, 0.1);
  color: var(--muted);
}

.wave-table thead tr {
  border-bottom: 1px solid rgba(2, 28, 173, 0.15);
}

.wave-table th {
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 0.5rem;
  color: var(--muted);
}

.wave-table--full td {
  padding: 0.9rem 0;
}

.messages-block {
  grid-column: 1 / -1;
}

.messages-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.wave-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 1000;
}

.wave-modal.is-visible {
  display: flex;
}

.modal-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 24px;
  padding: 1.8rem 1.6rem;
  width: 100%;
  max-width: 960px;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
  position: relative;
}

.modal-card h4 {
  margin: 0 0 1rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.08);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.modal-close:hover {
  background: rgba(15, 23, 42, 0.15);
}

body.modal-open {
  overflow: hidden;
}

.btn-small {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

.empty-state {
  margin: 0;
  padding: 1rem 0;
  color: var(--muted);
}

.component-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(15, 23, 42, 0.05);
  box-shadow: 0 12px 35px rgba(0, 87, 217, 0.08);
  display: flex;
  flex-direction: column;
  flex: 1 1 220px;
  max-width: 260px;
}
.component-card--link {
  text-decoration: none;
  color: inherit;
}
.component-card--link:hover {
  box-shadow: 0 18px 45px rgba(0, 87, 217, 0.15);
  transform: translateY(-2px);
}

.component-card__header {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.component-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  line-height: 1.2;
}

.component-card__code {
  color: var(--muted);
  font-size: 0.9rem;
}

.component-card__code--socio {
  color: #166534;
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.35);
  font-weight: 600;
}

.component-card__code--nonsocio {
  color: #7f1d1d;
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.35);
  font-weight: 600;
}

.component-card__code--admission {
  color: #9a3412;
  background: rgba(249, 115, 22, 0.16);
  border-color: rgba(249, 115, 22, 0.35);
  font-weight: 600;
}

.season-page.wave-dashboard {
  display: block !important;
  padding: 0 !important;
}
.settings-company-page.wave-dashboard {
  padding-top: 1.25rem !important;
}
.season-page.wave-dashboard > section,
.season-page.wave-dashboard > .panel {
  width: 100% !important;
}
.season-page .settings-panel-row,
.season-page .panel.panel-wide {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto;
}
.season-page .panel + .panel {
  margin-top: 1.5rem;
}
.season-page .settings-company-panel {
  margin-top: 1.25rem !important;
}
.season-page .season-list-table {
  width: 100%;
  border-collapse: collapse;
}
.season-page .season-list-table th,
.season-page .season-list-table td {
  padding: 0.8rem 0.6rem;
}
.season-page .season-list-table .season-row {
  cursor: pointer;
}
.season-page .season-list-table .season-row:hover {
  background-color: rgba(37, 99, 235, 0.08);
}
.season-page .season-form-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}
.season-page .season-form-grid .field {
  flex: 1 1 180px;
  min-width: 150px;
}
.season-page .season-form-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-left: auto;
}
.season-page .panel-form.season-panel-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.season-page .panel {
  min-height: unset;
}
.season-page .season-form-grid .field:last-child {
  flex: 0 0 auto;
}
.season-page .season-form-actions {
  margin-top: 0.5rem;
}
.season-page .season-row__link {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}
.season-page .season-row__link:hover {
  text-decoration: underline;
}

.component-card__admission-note {
  display: block;
  font-size: 0.75rem;
  text-transform: none;
  margin-top: 0.15rem;
  color: #c05621;
  font-weight: 600;
}

.component-card__name,
.component-card__surname {
  display: block;
  line-height: 1.2;
}
.component-card__name {
  font-size: 1rem;
  font-weight: 700;
}
.component-card__surname {
  font-size: 0.95rem;
  color: var(--muted);
}
.component-card__socio-label {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: auto;
  max-width: 100%;
  padding: 0.22rem 0.64rem;
  border-radius: 999px;
  font-size: 0.8rem;
  text-transform: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}
.component-card__nonsocio-note {
  display: block;
  font-size: 0.75rem;
  text-transform: none;
  margin-top: 0.15rem;
  color: #b91c1c;
}
.component-card__code--pending {
  color: #8d8d93;
  font-weight: 600;
}

.component-avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 87, 217, 0.15), rgba(10, 137, 255, 0.25));
  box-shadow: 0 6px 15px rgba(15, 23, 42, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.8);
  background-size: cover;
  background-position: center;
}
.component-avatar--filled {
  background-color: transparent;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.12);
}

.component-card__meta,
.component-card__status {
  font-size: 0.85rem;
  color: var(--muted);
}

.component-card__status--pending {
  color: #b91c1c;
  font-weight: 600;
  margin-top: 0.5rem;
}

.components-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
}

.component-card {
  flex: 0 0 260px;
}

.component-panel {
  grid-column: 1 / -1;
}

.component-panel__head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.component-panel__head img,
.component-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: contain;
  background: #fff;
  padding: 6px;
  flex-shrink: 0;
}

.wave-auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.wave-auth-card {
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 30px 70px rgba(0, 87, 217, 0.2);
}
.photo-upload-area {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.photo-upload-status {
  font-size: 0.85rem;
  color: var(--muted);
}
.document-upload-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
}
.document-upload-toggle {
  align-self: flex-start;
}
.document-upload-form {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}
.document-upload-form.visible {
  display: flex;
}
.document-upload-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.document-upload-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.95rem;
  color: var(--muted, #475569);
}
.document-upload-grid input,
.document-upload-grid select,
.document-upload-grid textarea {
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  padding: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
}
.document-upload-grid textarea {
  resize: vertical;
  min-height: 70px;
}
.document-upload-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.document-upload-status {
  font-size: 0.9rem;
}
.document-label-field {
  display: none;
}
.document-upload-files {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.status-pending-label {
  display: block;
  margin-top: 0.25rem;
  color: #b91c1c;
  font-weight: 600;
  font-size: 0.95rem;
}
.photo-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.photo-card {
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  padding: 0.75rem;
  background-color: #fff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  display: flex;
  gap: 0.8rem;
  align-items: center;
}
.photo-card img {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
}
.photo-card--new {
  border-color: #0b8b5e;
}

.wave-form-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.75rem;
}

.login-submit-button {
  width: 100%;
  min-height: 58px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.login-quick-actions__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
}

.login-quick-actions__label {
  font-size: 1rem;
  color: var(--text);
}

.login-quick-actions__row--register {
  margin-top: 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.login-quick-actions__button {
  min-width: 220px;
}

.login-quick-actions__button--secondary,
.login-quick-actions__button--secondary:visited {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(227, 240, 255, 0.98));
  color: #0f4fbf;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.1);
  text-decoration: none;
  font-weight: 600;
}

.login-quick-actions__button--secondary:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(218, 235, 255, 1));
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.14);
}

.messages-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.messages-block {
  grid-column: 1 / -1;
}

@media (max-width: 768px) {
  .wave-dashboard {
    grid-template-columns: 1fr;
  }

  .wave-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .wave-user {
    width: 100%;
    align-items: flex-start;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .arena-stat-grid {
    grid-template-columns: 1fr;
  }

  .wave-auth-card {
    padding: 2rem 1.5rem;
  }

  .login-quick-actions__row {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .login-quick-actions__button {
    width: 100%;
    min-width: 0;
  }

  .components-cards {
    flex-direction: column;
    overflow: visible;
  }

  .wave-modal {
    padding: 1rem;
  }
}

.tpu-page-footer {
  margin-top: 3rem;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.tpu-page-footer__links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.tpu-page-footer__links a {
  color: var(--primary);
  text-decoration: none;
}

.tpu-page-footer__links a:hover {
  text-decoration: underline;
}

.tpu-page-footer__actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.tpu-page-footer__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 150px;
  gap: 0.25rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  background: #fff;
  color: var(--text);
  padding: 0 1.2rem;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: none;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.9));
  appearance: none;
}

.tpu-page-footer__button:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
  transform: translateY(-1px);
}

.tpu-page-footer__button:focus-visible {
  outline: 2px solid rgba(0, 87, 217, 0.35);
  outline-offset: 2px;
}

.tpu-page-footer__note {
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .tpu-page-footer {
    flex-direction: column;
    text-align: center;
  }

  .tpu-page-footer__links,
  .tpu-page-footer__actions {
    justify-content: center;
  }
}

/* Payment report cards */
.payment-report .btn-primary + .btn-primary {
  margin-top: 0.35rem;
}
.payment-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.payment-report-transactions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 210px;
}
.payment-report-action-buttons {
  display: flex;
  flex-direction: row;
  gap: 0.35rem;
  margin-left: auto;
  justify-content: flex-end;
}
.payment-report-action-buttons .btn {
  min-width: 110px;
  padding: 0.45rem 1.2rem;
  height: 44px;
  line-height: 1;
}
.payment-report-table--admission .payment-report-action-buttons .btn,
.payment-report-table--course .payment-report-action-buttons .btn {
  font-family: Inter, "Helvetica Neue", sans-serif;
  font-size: 0.85rem;
  line-height: 1;
  box-shadow: 0 15px 30px rgba(15, 98, 254, 0.25);
}
.manual-payment-form__actions .btn {
  height: 44px;
  min-width: 120px;
  padding: 0 1.4rem;
  line-height: 1;
  border-radius: 999px;
  border: none;
  font-family: Inter, "Helvetica Neue", sans-serif;
  font-size: 0.85rem;
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.35);
}
.manual-payment-form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}
.manual-payment-form__actions-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.manual-payment-form__actions .manual-payment-delete {
  margin-left: auto;
}
.payment-report-table--course .payment-report-action-buttons .btn {
  min-width: 95px;
  padding: 0.35rem 1rem;
}
.payment-report-actions .btn-primary {
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #0a67f2, #2574ff);
  color: #fff;
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.35);
  text-transform: none;
  font-weight: 600;
}
.payment-report-action-buttons .btn {
  font-family: Inter, "Helvetica Neue", sans-serif;
  font-size: 0.85rem;
  line-height: 1;
  appearance: none;
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.35);
}
.payment-report-action-buttons .btn + .btn {
  margin-top: 0;
}
.payment-report-action-buttons .btn-primary + .btn-primary {
  margin-top: 0 !important;
}
.payment-report-actions .btn {
  text-decoration: none;
}
.manual-payment-form__actions .btn-primary {
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #0a67f2, #2574ff);
  color: #fff;
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.35);
  text-transform: none;
  font-weight: 600;
}
.manual-payment-form__actions .btn-outline {
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: #0f172a;
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.12);
}
.manual-payment-toggle {
  height: 44px;
  min-width: 120px;
  padding: 0 1.4rem;
  border-radius: 999px;
  font-family: Inter, "Helvetica Neue", sans-serif;
  font-size: 0.85rem;
  line-height: 1;
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.35);
  border: none;
  background: linear-gradient(135deg, #0a67f2, #2574ff);
  color: #fff;
  text-transform: none;
  font-weight: 600;
  text-align: center;
  white-space: normal;
  word-break: break-word;
}
.payment-records-table__action .payment-records-btn {
  height: 44px;
  padding: 0 0.9rem;
  min-width: 98px;
  border-radius: 999px;
  font-family: Inter, "Helvetica Neue", sans-serif;
  font-size: 0.78rem;
  line-height: 1;
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.35);
  border: none;
  background: linear-gradient(135deg, #0a67f2, #2574ff);
  color: #fff;
  text-transform: none;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  word-break: normal;
}
.payment-records-table__action .payment-records-btn .btn-line {
  display: inline;
}
.payment-records-table__action .payment-records-btn .btn-line + .btn-line::before {
  content: ' ';
}
.payment-records,
.course-transactions,
.admission-transactions {
  margin-top: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 1rem;
  gap: 0.75rem;
  display: flex;
  flex-direction: column;
}
.payment-records h5,
.course-transactions h5,
.admission-transactions h5 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: #0f172a;
}
.payment-records-list,
.course-transactions-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.payment-record,
.course-transaction {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid rgba(15, 23, 42, 0.12);
  flex-wrap: wrap;
}
.payment-record__details,
.course-transaction__details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 220px;
}
.payment-record__details span,
.course-transaction__details span {
  font-weight: 600;
  color: #0f172a;
}
.payment-record__details small,
.course-transaction__details small {
  color: #475569;
}
.payment-record__actions,
.course-transaction__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-left: auto;
  align-self: flex-start;
}
.payment-record__actions .btn,
.course-transaction__actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-width: 150px;
  min-height: 44px;
  height: 44px;
  padding: 0 1.4rem;
  text-transform: none;
  font-size: 0.95rem;
  line-height: 1;
  box-sizing: border-box;
  white-space: nowrap;
  margin: 0;
}
.payment-record__actions .btn + .btn,
.course-transaction__actions .btn + .btn {
  margin-top: 0;
}
.payment-records--table {
  margin-top: 1rem;
}
.payment-records-table-wrapper {
  overflow-x: auto;
}
.payment-records-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 0.95rem;
  background: #fff;
  table-layout: fixed;
}
.payment-records-table thead {
  background: #f5f6fa;
}
.payment-records-table th,
.payment-records-table td {
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  vertical-align: middle;
}
.payment-records-table tr:last-child td {
  border-bottom: none;
}
.payment-records-table th {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.75rem;
  text-align: left;
}
.payment-records-table th:nth-child(1),
.payment-records-table td:nth-child(1) {
  width: 30%;
  word-break: break-word;
}
.payment-records-table th:nth-child(2),
.payment-records-table td:nth-child(2) {
  width: 16%;
  text-align: center;
}
.payment-records-table th:nth-child(3),
.payment-records-table td:nth-child(3) {
  width: 11%;
  text-align: right;
}
.payment-records-table th:nth-child(4),
.payment-records-table td:nth-child(4) {
  width: 21%;
  text-align: left;
}
.payment-records-table th:nth-child(5),
.payment-records-table td:nth-child(5) {
  width: 22%;
  text-align: right;
}
.payment-records-table__value {
  text-align: right;
}
.payment-records-table__action {
  display: table-cell;
  text-align: right;
  white-space: nowrap;
}
.payment-records-table__action .payment-records-btn {
  min-width: 88px;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.8rem;
  vertical-align: middle;
  align-self: center;
  line-height: 1;
  margin: 0 !important;
  border-radius: 999px;
  border: none;
  background: #0f62fe;
  color: #fff;
  box-shadow: 0 15px 30px rgba(15, 98, 254, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.payment-records-table__action .payment-records-btn + .payment-records-btn {
  margin-left: 0.5rem !important;
}
.manual-payment-form-row {
  display: none;
}
.manual-payment-form-row:not([hidden]) {
  display: table-row;
}
.manual-payment-form-row td {
  border: none;
  background: rgba(15, 23, 42, 0.02);
  padding: 0;
}
.manual-payment-form-row td .manual-payment-form {
  padding: 0.5rem 1rem 1rem;
}
.manual-payment-modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1100;
}
.manual-payment-modal:not([hidden]) {
  display: flex;
}
.manual-payment-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(3px);
}
.manual-payment-modal__dialog {
  position: relative;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.4);
  padding: 1.5rem;
  max-width: 520px;
  width: min(92%, 520px);
  z-index: 1;
}
.manual-payment-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.manual-payment-modal__close {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  border: none;
  background: rgba(15, 23, 42, 0.05);
  color: #0f172a;
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 700;
  position: relative;
  padding: 0;
}
.manual-payment-modal__close::before,
.manual-payment-modal__close::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60%;
  height: 2px;
  background: currentColor;
  transform-origin: center;
}
.manual-payment-modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.manual-payment-modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.manual-payment-modal[data-mode="rate"] .manual-payment-form__actions .manual-payment-delete {
  display: none;
}
.manual-payment-modal__transaction-fields,
.manual-payment-modal__rate-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.manual-payment-modal__rate-fields {
  display: none;
}
.manual-payment-modal[data-mode="rate"] .manual-payment-modal__transaction-fields {
  display: none;
}
.manual-payment-modal[data-mode="rate"] .manual-payment-modal__rate-fields {
  display: flex;
}
.manual-payment-modal__due-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.manual-payment-modal[data-skip-due="1"] .manual-payment-modal__due-field {
  display: none;
}
.payment-records-table--admission .payment-records-table__action .payment-records-btn {
  min-width: 88px;
  padding: 0.35rem 0.8rem;
}
.payment-records-table__action .payment-records-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 40px rgba(15, 98, 254, 0.35);
}
.payment-records-table--admission .payment-records-table__action .payment-records-btn {
  background: linear-gradient(135deg, #0a67f2, #2574ff);
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.35);
}
.payment-records-table--course .payment-records-table__action .payment-records-btn {
  min-width: 88px;
  padding: 0.35rem 0.8rem;
  background: linear-gradient(135deg, #0a67f2, #2574ff);
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.35);
}
/* Payment quote table */
.payment-report {
  margin-top: 1rem;
}
.payment-report-section__header strong {
  font-size: 1.4rem;
  color: #0f172a;
}
.payment-report-table {
  margin-top: 1rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.payment-report-row {
  display: table;
  width: 100%;
  table-layout: fixed;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.payment-report-row > span {
  display: table-cell;
  padding: 0.75rem 1rem;
  vertical-align: middle;
}
.payment-report-row:last-child {
  border-bottom: none;
}
.payment-report-row > span:nth-child(1) {
  width: 24%;
}
.payment-report-row > span:nth-child(2) {
  width: 16%;
}
.payment-report-row > span:nth-child(3),
.payment-report-row > span:nth-child(4),
.payment-report-row > span:nth-child(5) {
  width: 12%;
  text-align: right;
}
.payment-report-row > span:nth-child(6) {
  width: 220px;
  text-align: right;
}
.payment-report-row--head {
  font-weight: 600;
  background: #f5f6fa;
  color: #0f172a;
}
.payment-report-row--totals {
  font-weight: 600;
  background: rgba(15, 23, 42, 0.04);
}
.payment-report-row--due-soon {
  background: #fef9c3;
}
.payment-report-row--overdue {
  background: #fee2e2;
}
