* { box-sizing: border-box; }
:root { font-family: Arial, sans-serif; color: #30383d; background: #f7f8f8; }
body { margin: 0; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.app-header { height: 78px; display: flex; align-items: center; justify-content: center; gap: 60px; background: #0c3043; color: white; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 23px; font-weight: 800; letter-spacing: -.8px; }
.brand-mark { color: #13a6cd; font-size: 38px; }
.brand-light { color: #25bdd9; font-weight: 400; }
.top-nav { display: flex; gap: 38px; font-size: 13px; font-weight: 700; }
.demo-tag { color: #b3e2e5; font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.workspace { max-width: 1010px; min-height: calc(100vh - 78px); margin: 0 auto; padding: 12px 20px 80px; background: #fff; box-shadow: 0 0 30px #24425416; }
.patient-strip { display: flex; align-items: end; gap: 26px; padding: 10px 13px; border: 1px solid #a7b3b9; border-radius: 4px; background: #f8f9f9; }
.patient-strip > div { min-width: 60px; }
.patient-strip .patient-name { flex: 1; min-width: 120px; }
.patient-strip span, .patient-strip strong { display: block; }
.patient-strip span { font-size: 10px; font-weight: 700; margin-bottom: 4px; }
.patient-strip strong { background: #e6e9eb; padding: 5px 7px; min-height: 28px; font-size: 13px; white-space: nowrap; }
.strip-note { color: #7d9099; font-size: 10px !important; font-weight: 400 !important; max-width: 120px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 14px 4px 12px; }
.page-heading p { color: #677a83; font-size: 12px; margin: 0; }
.toolbar { display: flex; gap: 7px; flex-shrink: 0; }
.button { padding: 7px 11px; border-radius: 3px; border: 1px solid #b6c5c9; font-size: 12px; font-weight: 700; }
.button-primary { background: #087e9c; border-color: #087e9c; color: white; }
.button-secondary { background: white; color: #3a5663; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #087eaa; outline-offset: 2px; }
.workspace-grid { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 18px; align-items: start; }
.sidebar { padding: 4px 0 0 8px; }
.side-label { margin: 0 0 14px; color: #73838c; font-size: 10px; font-weight: 700; letter-spacing: .6px; }
.exam-choice { width: 100%; display: flex; align-items: center; gap: 7px; text-align: left; border: 0; background: transparent; padding: 7px 4px; color: #30383d; }
.exam-choice span { border: 1px solid #87949a; background: white; font: 700 12px 'Courier New', monospace; padding: 2px 5px; }
.exam-choice small { color: #73838c; font-size: 10px; }
.exam-choice[aria-pressed="true"] { background: #e7f4f6; border-left: 3px solid #0889a6; }
.exam-choice[aria-pressed="true"] span { color: #087e9c; border-color: #087e9c; }
.sidebar-note { margin-top: 25px; font-size: 11px; line-height: 1.5; color: #84949c; }
.paper { width: 100%; padding: 3px 0 24px; background: white; font: 12px/1.65 'Courier New', Courier, monospace; }
.paper-topline { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font: 700 13px Arial, sans-serif; margin-bottom: 16px; }
.paper-topline span:last-child { color: #8799a0; font-size: 11px; font-weight: 400; }
.method { margin: 0 0 17px; font-size: 11px; line-height: 2; }
.report-section { margin: 0 0 23px; }
.section-heading { display: flex; justify-content: space-between; border-top: 1px dashed #394950; border-bottom: 1px dashed #394950; margin: 12px 0 9px; padding: 8px 12px; }
.section-heading h2 { margin: 0; font-size: 12px; letter-spacing: 4px; text-transform: uppercase; }
.section-heading span { font-size: 11px; }
.field + .field table thead { display: none; }
.field.narrative-field { margin: 16px 0 10px; }
.narrative-field label { display: block; margin-bottom: 5px; font-size: 11px; font-weight: 700; }
table { width: 100%; border-collapse: collapse; text-align: left; table-layout: fixed; font-size: 11px; }
th:first-child { width: 31%; }
th:nth-child(2) { width: 17%; }
th:nth-child(3) { width: 23%; }
thead th { font-weight: 700; color: #667982; padding: 1px 4px 6px; }
tbody tr { height: 28px; }
tbody th, tbody td { padding: 2px 4px; font-weight: 400; }
tbody th { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
tbody th label::after { content: ' ·········'; color: #87969c; letter-spacing: -1px; }
tbody input { width: 72px; max-width: 100%; height: 22px; padding: 2px 5px; border: 1px solid #c9d1d5; border-radius: 4px; background: #fff; color: #263d4a; font: 12px 'Courier New', monospace; }
tbody input[aria-invalid="true"], .paper input[aria-invalid="true"] { border-color: #bf3434; background: #fff4f4; }
tbody input::placeholder { color: #b6c0c4; }
.calculated output { font-weight: 700; }
.notes-label { display: block; margin: 17px 0 5px; font-size: 11px; font-weight: 700; }
textarea { width: 100%; min-height: 30px; resize: vertical; padding: 6px 8px; border: 1px solid #cdd5d8; border-radius: 4px; color: #30383d; font: 12px/1.6 'Courier New', monospace; }
textarea::placeholder { color: #aeb9bd; }
.footnote { color: #70818a; font-size: 10px; line-height: 1.5; margin: 10px 0 0; }
.paper-footer { margin-top: 22px; border-top: 1px solid #dce3e6; padding-top: 10px; color: #83939b; font-size: 10px; }
@media (max-width: 700px) { .app-header { height: 60px; gap: 20px; } .top-nav { display: none; } .workspace { padding: 12px; } .patient-strip { flex-wrap: wrap; gap: 8px; } .strip-note { max-width: none; } .page-heading { align-items: flex-start; flex-direction: column; } .workspace-grid { grid-template-columns: 1fr; } .sidebar { display: flex; flex-wrap: wrap; gap: 4px; padding: 0; } .side-label, .sidebar-note { width: 100%; margin: 2px 0; } .exam-choice { width: auto; } .exam-choice small { display: none; } .paper { overflow-x: auto; } table { min-width: 550px; } }
@media print { @page { size: A4; margin: 15mm; } :root { background: white; } .app-header, .page-heading, .sidebar, .strip-note { display: none; } .workspace { max-width: none; padding: 0; box-shadow: none; } .patient-strip { margin-bottom: 20px; background: white; border-color: #bbb; } .patient-strip strong { background: white; padding-left: 0; } .workspace-grid { display: block; } .paper { padding: 0; overflow: visible; } .report-section { break-inside: avoid; } table { min-width: 0; } tbody input, textarea { border: 0; padding: 0; resize: none; } input::placeholder, textarea::placeholder { color: transparent; } textarea { min-height: 0; } }
