:root { font-family: "Segoe UI", system-ui, sans-serif; font-size: 16px; color: #142d49; background: #f4f7fb; --admin-primary: #1267a5; --admin-primary-dark: #0c548b; --admin-muted: #53677c; --admin-border: #dbe5ee; --admin-text: #142d49; --admin-surface-soft: #f4f7fb; --admin-green: #236c50; --admin-amber: #80520c; --admin-red: #a13f36; --admin-radius: 8px; --admin-shadow: none; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; padding: 0; background: #f4f7fb; color: #142d49; font-family: "Segoe UI", system-ui, sans-serif; line-height: 1.5; }
body.admin-page { padding: 0; background: #f4f7fb; }
a { color: #0c548b; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button, .admin-button, .recon-button, .download-link { min-height: 44px; padding: 10px 16px; font-size: 16px; font-weight: 600; border: 1px solid #1267a5; border-radius: 8px; background: #1267a5; color: white; cursor: pointer; text-decoration: none; box-shadow: none; line-height: 1.4; }
button:hover, .admin-button:hover { background: #0c548b; }
button:disabled { opacity: .65; cursor: wait; }
.secondary-action, .admin-button.secondary, button.secondary, .recon-button.secondary { background: #fff; color: #0c548b; border-color: #91a8bb; box-shadow: none; }
.secondary-action:hover, .admin-button.secondary:hover, button.secondary:hover { background: #edf5fb; color: #0c548b; }
input, select, textarea { min-height: 46px; min-width: 0; max-width: 100%; border: 1px solid #91a8bb; border-radius: 6px; padding: 10px 12px; background: #fff; color: #142d49; }
input:focus, textarea:focus, select:focus { outline: 3px solid #1267a5; outline-offset: 2px; box-shadow: none; }
:focus-visible { outline: 3px solid #1267a5; outline-offset: 3px; }
.admin-sidebar :focus-visible { outline-color: #fff; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; transform: translateY(-180%); padding: 12px 18px; background: white; border: 2px solid #1267a5; border-radius: 6px; }
.skip-link:focus { transform: none; }
.admin-shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100vh; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; padding: 24px 16px; background: #142d49; color: white; display: flex; flex-direction: column; gap: 30px; }
.admin-brand { display: block; padding: 0 12px; text-decoration: none; color: white; font-size: 28px; font-weight: 750; line-height: 1.2; }
.admin-brand span { display: block; color: #c5d7e9; font-size: 15px; font-weight: 400; margin-top: 6px; }
.admin-nav { display: grid; gap: 6px; }
.admin-nav a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px; color: #e5edf5; text-decoration: none; border-radius: 6px; font-size: 15px; font-weight: 600; }
.admin-nav a:hover { background: #203e5f; }
.admin-nav a[aria-current="page"] { color: white; background: #215882; box-shadow: inset 3px 0 #79c3f7; }
.admin-nav svg, .admin-signout svg { width: 20px; height: 20px; flex: 0 0 20px; }
.admin-signout { display: flex; gap: 12px; align-items: center; margin-top: auto; width: 100%; color: white; border-color: #6f8ca6; background: transparent; }
.admin-signout:hover { background: #203e5f; }
.admin-content { min-width: 0; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 65px; padding: 12px 32px; background: #fff; border-bottom: 1px solid #dbe5ee; font-size: 14px; color: #53677c; }
.staff-identity { font-weight: 600; color: #142d49; overflow-wrap: anywhere; }
.admin-page main { width: 100%; max-width: 1440px; margin: 0 auto; padding: 32px; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-heading h1, .login-card h1 { font-size: clamp(26px, 3vw, 32px); line-height: 1.2; letter-spacing: -.025em; margin: 0 0 8px; font-weight: 750; }
.page-heading p { margin: 0; color: #53677c; }
.page-heading button { flex: 0 0 auto; }
.status, .recon-notice { color: #80520c; min-height: 0; font-weight: 500; line-height: 1.5; }
.status:empty { display: none; }
.status:not(:empty) { margin: 0 0 20px; padding: 12px 16px; border: 1px solid #dbe5ee; border-radius: 6px; background: #fff; }
.status.success { color: #236c50; }
.summary-panel { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding: 20px 8px; margin-bottom: 24px; border: 1px solid #dbe5ee; border-radius: 6px; background: white; box-shadow: none; }
.summary-item { padding: 0 16px; border: 0; border-right: 1px solid #dbe5ee; border-radius: 0; background: white; }
.summary-item:last-child { border-right: 0; }
.summary-value { display: block; font-size: 28px; color: #1267a5; font-weight: 700; line-height: 1.2; }
.summary-label { display: block; font-size: 14px; margin-top: 4px; color: #53677c; font-weight: 400; }
.request-filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr); gap: 20px; margin-bottom: 16px; }
.request-filters input, .request-filters select { width: 100%; }
.result-count { color: #53677c; margin: 0 0 16px; font-size: 14px; }
.request-list { display: grid; gap: 12px; }
.request-card { background: #fff; border: 1px solid #dbe5ee; border-radius: 6px; box-shadow: none; overflow: clip; }
.request-card > summary { list-style: none; cursor: pointer; }
.request-card > summary::-webkit-details-marker { display: none; }
.request-header { padding: 18px 20px; background: white; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; border-bottom: 0; }
.request-card[open] > summary { border-bottom: 1px solid #dbe5ee; }
.request-title { font-size: 18px; margin: 0; font-weight: 650; line-height: 1.4; }
.request-title::before { content: ""; display: inline-block; height: 8px; width: 8px; margin: 0 14px 3px 2px; border-right: 2px solid #142d49; border-bottom: 2px solid #142d49; transform: rotate(-45deg); }
.request-card[open] .request-title::before { transform: rotate(45deg); }
.request-subtitle { font-size: 14px; color: #53677c; margin: 4px 0 0; overflow-wrap: anywhere; }
.chip-row { align-content: center; align-items: center; }
.chip { white-space: normal; font-size: 13px; min-height: 28px; }
.request-date { color: #53677c; font-size: 14px; }
.request-body { padding: 24px; gap: 24px; }
.request-primary-actions { margin: 0; }
.patient-portal-action { min-height: 44px; }
.detail-grid { gap: 16px; }
.detail-item { border: 0; border-radius: 0; padding: 0; background: white; }
.detail-label, .cryo-field-label { font-size: 13px; text-transform: none; font-weight: 600; }
.detail-value { font-size: 15px; font-weight: 400; }
.doc-group, .notes-panel, .cryo-panel { box-shadow: none; background: #f8fafc; }
.section-heading h2, .section-heading h3 { margin: 0; font-size: 16px; font-weight: 650; }
.section-meta, .document-meta, .cryo-reason { font-size: 14px; }
.download-link { white-space: normal; }
.notes-panel textarea { min-height: 130px; }
.empty { padding: 24px; background: white; border: 1px solid #dbe5ee; border-radius: 6px; font-style: normal; }
.hub-intro { color: #53677c; margin-bottom: 32px; }
.hub-tools { border-top: 1px solid #dbe5ee; }
.hub-tool { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 28px 0; border-bottom: 1px solid #dbe5ee; }
.hub-tool h2 { font-size: 22px; margin: 0 0 8px; }
.hub-tool p { color: #53677c; margin: 0; max-width: 680px; }
.session-note { margin-top: 32px; color: #53677c; font-size: 14px; }
.login-header { display: flex; align-items: center; gap: 24px; padding: 18px 40px; background: white; border-bottom: 1px solid #dbe5ee; }
.login-header strong { font-size: 28px; }
.login-header span { border-left: 1px solid #b5c8da; padding-left: 24px; color: #53677c; font-weight: 600; }
.login-main { display: grid; place-items: center; min-height: calc(100vh - 80px); padding: 40px 20px; }
.login-card { width: min(100%, 480px); padding: 40px; border: 1px solid #c5d7e9; border-radius: 8px; background: white; }
.login-card > p { color: #53677c; margin: 0 0 28px; }
.login-card .field { margin-bottom: 22px; }
.login-card input { width: 100%; }
.password-field { display: flex; align-items: stretch; gap: 10px; }
.password-field input { flex: 1; width: 0; }
.password-field button { font-size: 14px; padding: 10px; }
.login-card button[type="submit"] { width: 100%; }
.login-card .login-help { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid #dbe5ee; text-align: center; font-size: 14px; }
.login-error { color: #a13f36; line-height: 1.5; }
.login-error:empty { display: none; }
.recon-toolbar { flex-wrap: wrap; }
.review-filters { flex-wrap: wrap; }
.filter { min-height: 44px; font-size: 15px; color: #53677c; }
.filter.active { color: #0c548b; }
.recon-guidance p, .recon-notice, .payment-explanation, .recovery-panel p, .muted, dialog p { font-size: 15px; }
.list-note, .payment-source, .payment-status, .payment-details summary, .payment-details dd, dt, dt span { font-size: 14px; }
.recovery-panel label, dialog label { font-size: 15px; }
.recovery-controls input { font-size: 16px; }
@media (max-width: 1100px) { .detail-grid, .cryo-field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .request-header { grid-template-columns: 1fr; } .chip-row { justify-content: flex-start; } .doc-groups { grid-template-columns: 1fr; } }
@media (max-width: 800px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; padding: 16px; gap: 16px; display: grid; grid-template-columns: 1fr auto; }
  .admin-brand { font-size: 24px; padding: 0; }
  .admin-brand span { font-size: 14px; }
  .admin-nav { grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 4px; }
  .admin-nav a { flex: 1 1 auto; padding: 10px; font-size: 14px; }
  .admin-signout { margin: 0; width: auto; font-size: 14px; }
  .admin-topbar { padding: 12px 20px; }
  .admin-page main { padding: 24px 20px; }
  .summary-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 20px; }
  .summary-item { border: 0; }
}
@media (max-width: 480px) {
  .admin-page main { padding: 24px 16px; }
  .admin-nav a { gap: 8px; }
  .admin-nav svg { display: none; }
  .page-heading { flex-wrap: wrap; }
  .request-filters, .detail-grid, .cryo-field-grid, .hub-tool { grid-template-columns: 1fr; }
  .summary-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .request-header, .request-body { padding: 16px; }
  .summary-item { padding: 0 12px; }
  .document-item { grid-template-columns: 1fr; }
  .hub-tool .admin-button { justify-self: start; }
  .login-header { padding: 16px 20px; gap: 16px; }
  .login-header span { padding-left: 16px; }
  .login-main { padding: 24px 16px; }
  .login-card { padding: 28px 22px; }
  .password-field { flex-wrap: wrap; }
  .password-field input { flex-basis: 150px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
