/* Pendaftaran ToT — /pendaftaran-tot (scoped) */

.page-shell--pendaftaran-tot {
  --tot-focus-ring: 0 0 0 3px rgba(200, 16, 46, 0.28);
  --tot-border: #d8d8d8;
  --tot-label-bg: #fafafa;
  --tot-row-alt: #f9f9f9;
}

.page-shell--pendaftaran-tot .container--narrow {
  width: min(100% - 1.5rem, 47.5rem);
}

.page-shell--pendaftaran-tot .pp-page-head__logo {
  border-color: var(--color-primary);
  box-shadow: none;
}

.page-shell--pendaftaran-tot .pp-form.form-card.tot-form {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--tot-border);
  border-radius: 8px;
  box-shadow: 0 2px 14px rgba(10, 10, 10, 0.07);
}

.page-shell--pendaftaran-tot .pp-error-summary {
  margin: 0;
  padding: 0.85rem 1.15rem;
  border: none;
  border-bottom: 1px solid rgba(200, 16, 46, 0.25);
  border-radius: 0;
  background: var(--color-primary-soft);
  color: var(--color-text, #1a1a1a);
  box-shadow: inset 4px 0 0 var(--color-primary);
}

.page-shell--pendaftaran-tot .pp-error-summary__title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.page-shell--pendaftaran-tot .pp-error-summary p:last-child {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
}

.page-shell--pendaftaran-tot .tot-sheet-card {
  padding: 0 0 0.25rem;
}

.page-shell--pendaftaran-tot .tot-sheet-heading {
  margin: 0;
  padding: 1rem 1.15rem 0.75rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  border-bottom: 2px solid var(--color-primary);
  background: #fff;
}

.page-shell--pendaftaran-tot .tot-sheet-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  table-layout: fixed;
}

.page-shell--pendaftaran-tot .tot-sheet-table th,
.page-shell--pendaftaran-tot .tot-sheet-table td {
  border: 1px solid var(--tot-border);
  padding: 0.65rem 0.85rem;
  vertical-align: middle;
  font-size: 0.95rem;
  line-height: 1.4;
}

.page-shell--pendaftaran-tot .tot-sheet-table th {
  width: 35%;
  font-weight: 700;
  text-align: left;
  background: var(--tot-label-bg);
  color: var(--color-text, #1a1a1a);
}

.page-shell--pendaftaran-tot .tot-sheet-table th label {
  margin: 0;
  font-weight: inherit;
  cursor: pointer;
}

.page-shell--pendaftaran-tot .tot-sheet-table tbody tr:nth-child(even) th {
  background: var(--tot-row-alt);
}

.page-shell--pendaftaran-tot .tot-sheet-table tbody tr:nth-child(even) td {
  background: #fff;
}

.page-shell--pendaftaran-tot .tot-sheet-table td .form-input,
.page-shell--pendaftaran-tot .tot-sheet-table td input[type="file"],
.page-shell--pendaftaran-tot .tot-sheet-table td input[type="date"],
.page-shell--pendaftaran-tot .tot-sheet-table td textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 16px;
  line-height: 1.35;
  border: 1px solid var(--tot-border);
  border-radius: 6px;
  background: #fff;
  font-family: inherit;
}

.page-shell--pendaftaran-tot .tot-sheet-table td textarea {
  min-height: 4.5rem;
  resize: vertical;
}

.page-shell--pendaftaran-tot .tot-sheet-table td input[type="file"] {
  padding: 0.4rem 0.65rem;
}

.page-shell--pendaftaran-tot .tot-sheet-table td .form-input:focus-visible,
.page-shell--pendaftaran-tot .tot-sheet-table td input[type="file"]:focus-visible,
.page-shell--pendaftaran-tot .tot-sheet-table td input[type="date"]:focus-visible,
.page-shell--pendaftaran-tot .tot-sheet-table td textarea:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--tot-focus-ring);
}

.page-shell--pendaftaran-tot .tot-sheet-table td .form-input--error,
.page-shell--pendaftaran-tot .tot-sheet-table td .form-input.form-input--error {
  border-color: var(--color-primary);
  background: #fff8f9;
}

.page-shell--pendaftaran-tot .tot-sheet-table .pp-field-error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.page-shell--pendaftaran-tot .pp-form-actions {
  padding: 1.1rem 1.15rem 1.25rem;
  background: #fff;
  border-top: 1px solid var(--tot-border);
  display: flex;
  justify-content: flex-end;
}

.page-shell--pendaftaran-tot .pp-submit {
  min-width: 11rem;
  margin: 0;
  border: none;
  border-radius: 6px;
  box-shadow: none;
  font-size: 1rem;
  font-weight: 700;
}

.page-shell--pendaftaran-tot .pp-privacy-note {
  margin: 0;
  padding: 0 1.15rem 1.15rem;
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: center;
}

.page-shell--pendaftaran-tot .pp-privacy-note a {
  color: var(--color-primary-dark);
  font-weight: 600;
}

.page-shell--pendaftaran-tot .back-link {
  font-size: 0.92rem;
  text-align: center;
}

/* Impor XLSX (publik) */
.page-shell--pendaftaran-tot-impor .tot-import-card {
  padding: 1rem 1.15rem;
  border: 1px solid var(--tot-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(10, 10, 10, 0.05);
}

.page-shell--pendaftaran-tot-impor .tot-import-alert {
  margin: 0 0 1rem;
}

.page-shell--pendaftaran-tot-impor .tot-import-label {
  display: block;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.page-shell--pendaftaran-tot-impor .tot-import-form .form-input {
  width: 100%;
  margin-bottom: 0.85rem;
}

.page-shell--pendaftaran-tot-impor .tot-import-submit {
  min-width: 8rem;
}

.page-shell--pendaftaran-tot-impor .tot-import-links {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  text-align: center;
}

.page-shell--pendaftaran-tot-impor .tot-import-links a {
  color: var(--color-primary-dark);
  font-weight: 600;
}

.page-shell--pendaftaran-tot-impor .tot-import-meta {
  margin: 0.35rem 0 0;
  text-align: center;
}

.page-shell--pendaftaran-tot-impor .tot-import-preview-wrap {
  overflow-x: auto;
  margin: 0 0 1rem;
  border: 1px solid var(--tot-border);
  border-radius: 8px;
  background: #fff;
}

.page-shell--pendaftaran-tot-impor .tot-import-preview-table,
.page-shell--pendaftaran-tot-impor .tot-import-summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.page-shell--pendaftaran-tot-impor .tot-import-preview-table th,
.page-shell--pendaftaran-tot-impor .tot-import-preview-table td,
.page-shell--pendaftaran-tot-impor .tot-import-summary-table th,
.page-shell--pendaftaran-tot-impor .tot-import-summary-table td {
  border: 1px solid var(--tot-border);
  padding: 0.45rem 0.55rem;
  vertical-align: top;
}

.page-shell--pendaftaran-tot-impor .tot-import-preview__row--bad {
  background: #fff8f8;
}

.page-shell--pendaftaran-tot-impor .tot-import-preview__cell--error {
  background: rgba(200, 16, 46, 0.06);
}

.page-shell--pendaftaran-tot-impor .tot-import-preview__err-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.page-shell--pendaftaran-tot-impor .tot-import-preview__notes {
  margin: 0;
  padding-left: 1.1rem;
}

.page-shell--pendaftaran-tot-impor .tot-import-subhead {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

/* Toolbar impor (semua pengunjung; ekspor khusus admin) */
.page-shell--pendaftaran-tot .tot-admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  align-items: center;
  justify-content: flex-start;
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--tot-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(10, 10, 10, 0.05);
}

.page-shell--pendaftaran-tot .tot-admin-toolbar form {
  margin: 0;
  display: inline;
}

.page-shell--pendaftaran-tot .tot-admin-toolbar .tot-admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.25;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.page-shell--pendaftaran-tot .tot-admin-toolbar .tot-admin-btn--primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.page-shell--pendaftaran-tot .tot-admin-toolbar .tot-admin-btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.page-shell--pendaftaran-tot .tot-admin-toolbar .tot-admin-btn--secondary {
  background: #fff;
  color: var(--color-text, #1a1a1a);
  border-color: var(--tot-border);
}

.page-shell--pendaftaran-tot .tot-admin-toolbar .tot-admin-btn--secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.page-shell--pendaftaran-tot .tot-admin-toolbar .tot-admin-btn:focus-visible {
  outline: none;
  box-shadow: var(--tot-focus-ring);
}

@media (max-width: 599px) {
  .page-shell--pendaftaran-tot .tot-sheet-table thead {
    display: none;
  }

  .page-shell--pendaftaran-tot .tot-sheet-table,
  .page-shell--pendaftaran-tot .tot-sheet-table tbody,
  .page-shell--pendaftaran-tot .tot-sheet-table tr,
  .page-shell--pendaftaran-tot .tot-sheet-table th,
  .page-shell--pendaftaran-tot .tot-sheet-table td {
    display: block;
    width: 100%;
  }

  .page-shell--pendaftaran-tot .tot-sheet-table tr {
    border-bottom: 1px solid var(--tot-border);
    padding: 0.15rem 0;
  }

  .page-shell--pendaftaran-tot .tot-sheet-table tr:last-child {
    border-bottom: none;
  }

  .page-shell--pendaftaran-tot .tot-sheet-table th,
  .page-shell--pendaftaran-tot .tot-sheet-table td {
    border: none;
    padding: 0.5rem 1rem;
  }

  .page-shell--pendaftaran-tot .tot-sheet-table th {
    width: auto;
    padding-bottom: 0.35rem;
    background: transparent;
    font-size: 0.88rem;
  }

  .page-shell--pendaftaran-tot .tot-sheet-table tbody tr:nth-child(even) th {
    background: transparent;
  }

  .page-shell--pendaftaran-tot .tot-sheet-table td {
    padding-top: 0;
    padding-bottom: 0.85rem;
  }

  .page-shell--pendaftaran-tot .pp-form-actions {
    justify-content: stretch;
    padding: 1rem;
  }

  .page-shell--pendaftaran-tot .pp-submit {
    width: 100%;
    min-width: 0;
  }

  .page-shell--pendaftaran-tot .tot-admin-toolbar .tot-admin-btn {
    flex: 1 1 auto;
    min-width: calc(50% - 0.35rem);
  }

  .page-shell--pendaftaran-tot .tot-admin-toolbar form {
    flex: 1 1 100%;
  }

  .page-shell--pendaftaran-tot .tot-admin-toolbar form .tot-admin-btn {
    width: 100%;
  }
}