/* LAMOI Portal v0.46.7 - action spacing, polished login, safe PDF/TSV maintenance */

/* Kết quả xét nghiệm: tách rõ các nút hành động ở mọi kích thước. */
.reports-page-head .header-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
}
.reports-page-head .header-actions > * {
  margin: 0 !important;
  flex: 0 0 auto;
}
.reports-page-head .header-actions .inline-form {
  display: inline-flex !important;
  margin: 0 !important;
}
.reports-page-head .header-actions .admin-button {
  min-height: 40px;
  padding-inline: 16px;
  white-space: nowrap;
}
.admin-table-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px !important;
}
.admin-table-actions > * { margin: 0 !important; }

/* Login: gọn, rõ, chữ CTA đồng nhất. */
.home-login-button span,
.auth-submit-uppercase span {
  letter-spacing: .055em;
  font-weight: 800;
}
.home-login-button { min-width: 168px; justify-content: center; }
.managed-account-note { max-width: 300px; font-size: 11px; line-height: 1.45; }
.auth-card-head h2 { letter-spacing: .025em; }
.auth-card-head p { max-width: 420px; }
.auth-submit-uppercase { letter-spacing: .025em; }

/* Cập nhật PDF / TSV của đúng hồ sơ đang mở. */
.report-file-maintenance-card { overflow: visible; }
.report-file-maintenance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.report-file-maintenance-block {
  min-width: 0;
  padding: 16px;
  border: 1px solid #dce7da;
  border-radius: 14px;
  background: #fbfdfb;
}
.report-file-maintenance-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}
.report-file-maintenance-title > div { min-width: 0; display: grid; gap: 4px; }
.report-file-maintenance-title span { color: #657268; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.report-file-maintenance-title strong { overflow-wrap: anywhere; color: #18331f; font-size: 13px; }
.report-file-update-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.report-file-update-form input[type=file] { min-width: 0; width: 100%; }
.report-file-update-form .admin-button { min-height: 40px; white-space: nowrap; }
.file-update-note {
  margin-top: 12px;
  padding: 11px 13px;
  border: 1px solid #e1e9df;
  border-radius: 10px;
  background: #f6faf5;
  color: #58675a;
  font-size: 11px;
  line-height: 1.55;
}
.file-update-note strong { color: #244b2b; }

@media (max-width: 1000px) {
  .reports-page-head .header-actions { justify-content: flex-start !important; width: 100%; }
  .report-file-maintenance-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .reports-page-head .header-actions { display: grid !important; grid-template-columns: 1fr !important; gap: 10px !important; }
  .reports-page-head .header-actions > *,
  .reports-page-head .header-actions .inline-form,
  .reports-page-head .header-actions .admin-button { width: 100% !important; }
  .report-file-update-form { grid-template-columns: 1fr; }
  .report-file-update-form .admin-button { width: 100%; }
  .report-file-maintenance-title { flex-direction: column; }
}
