/* Customer portal styles. Builds on ../styles.css (site tokens and components). */

body.portal {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.portal-badge {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sky);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
}

.portal-main { flex: 1 0 auto; position: relative; z-index: 2; }

.portal-section { padding: 56px 0 72px; }

.portal-narrow { max-width: 480px; }

.portal-title {
  font-size: clamp(1.7rem, 4.2vw, 2.4rem);
  margin-bottom: 24px;
}

.portal-panel { padding: 28px; }

.portal-panel .btn-submit { width: 100%; justify-content: center; }

.field-hint {
  font-size: 0.85rem;
  color: var(--muted);
}

.portal-error {
  margin: 12px 0 0;
  color: var(--amber);
  font-size: 0.95rem;
}

.portal-error[hidden] { display: none; }

.portal-note {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--muted);
}

.portal-signout { white-space: nowrap; }

.portal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.portal-search { flex: 1 1 280px; max-width: 420px; }

.portal-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.portal-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.portal-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.95rem;
}

.portal-table th,
.portal-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.portal-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sky);
  font-weight: 600;
  background: rgba(11, 74, 99, 0.25);
}

.portal-table td { color: var(--text); }

.portal-table tbody tr:last-child td { border-bottom: 0; }

.portal-table tbody tr:hover { background: rgba(31, 120, 173, 0.12); }

.portal-empty-row td {
  text-align: center;
  color: var(--muted);
  padding: 28px 16px;
}

.portal-table .status-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--steel);
}

.portal-table a { white-space: nowrap; }

.portal-footer { position: relative; z-index: 2; }

.portal-disclaimer {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 760px;
}

@media (max-width: 639px) {
  .portal-section { padding: 36px 0 56px; }
  .portal-panel { padding: 20px; }
  .portal-toolbar { flex-direction: column; align-items: stretch; }
  .portal-search { max-width: none; }
  .portal-badge { display: none; }
}
