/* LAMOI Portal v0.46.6 - responsive login, report history and button spacing */

/* Public login: fit common laptop heights at 100% zoom without hiding submit. */
.auth-page {
  min-height: calc(100dvh - 78px);
  padding-top: clamp(22px, 5vh, 56px);
  padding-bottom: clamp(28px, 5vh, 56px);
}
.auth-layout { align-items: center; }
.auth-managed-note { line-height: 1.5; }
.managed-account-note {
  display: inline-flex;
  max-width: 360px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
@media (max-height: 780px) and (min-width: 901px) {
  .auth-page { padding-top: 18px; padding-bottom: 24px; }
  .auth-layout { gap: 38px; }
  .auth-welcome { padding: 8px 0; }
  .auth-welcome h1 { margin: 9px 0 10px; font-size: clamp(30px, 3.3vw, 42px); }
  .auth-welcome > p { font-size: 13px; }
  .auth-benefits { margin-top: 16px; gap: 7px; }
  .auth-card { padding: 24px 28px; }
  .auth-card-head h2 { font-size: 26px; }
  .auth-card-head p { margin-bottom: 10px; }
  .auth-card label { margin-top: 9px; }
  .auth-card input { min-height: 42px; padding-top: 8px; padding-bottom: 8px; }
  .auth-check { margin: 10px 0 !important; }
  .auth-submit { min-height: 46px; margin-top: 10px; }
  .auth-switch { margin-top: 12px; }
}
@media (max-width: 900px) {
  .auth-page { padding-top: 22px; }
}

/* Report actions: never let controls sit on top of each other. */
.admin-form-actions,
.header-actions,
.admin-table-actions,
.report-ai-suggestions,
.report-history-nav-actions {
  column-gap: 12px !important;
  row-gap: 10px !important;
}
.header-actions > *,
.admin-table-actions > * { margin: 0 !important; }
.report-history-actions { display: flex; flex-wrap: wrap; align-items: center; }

.report-history-nav-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 0;
  margin-bottom: 16px;
  padding: 16px 18px;
}
.report-history-nav-copy { display: grid; gap: 3px; min-width: 0; }
.report-history-nav-copy .eyebrow { margin: 0; font-size: 9px; }
.report-history-nav-copy strong { font-size: 14px; overflow-wrap: anywhere; }
.report-history-nav-copy small { color: #6c786d; line-height: 1.45; }
.report-history-nav-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; }

.tsv-update-note {
  margin-top: 12px;
  padding: 11px 13px;
  border: 1px solid #dce7da;
  border-radius: 10px;
  background: #f7faf6;
  color: #58675a;
  font-size: 11px;
  line-height: 1.55;
}
.tsv-update-note strong { color: #244b2b; }

.file-state {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.file-state.ok { background: #e9f6e8; color: #2c6f35; }
.file-state.missing { background: #f3f3f3; color: #6e756f; }

.customer-report-history-nav { padding: 14px 0 0; background: var(--mint); }
.customer-report-history-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.88);
}
.customer-report-history-inner > div { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.customer-file-context { display: block; margin: -4px 0 14px; color: var(--muted); line-height: 1.5; }

@media (max-width: 760px) {
  .report-history-nav-card,
  .customer-report-history-inner { align-items: stretch; flex-direction: column; }
  .report-history-nav-actions,
  .customer-report-history-inner > div { justify-content: flex-start; }
  .report-history-nav-actions .admin-button,
  .customer-report-history-inner .button { flex: 1 1 140px; text-align: center; }
  .report-history-actions .admin-button { flex: 1 1 110px; }
}
