@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");:root{--bg:#f5f4ef;--bg-alt:#fff;--ink:#161616;--ink-soft:#4b4b4b;--muted:#7a7a7a;--primary:#1f5bff;--primary-strong:#1543c7;--accent:#ff8a3d;--border:#e3e0d9;--card:#fff;--shadow:0 16px 40px hsla(0,0%,7%,.08)}*{box-sizing:border-box}body{margin:0;font-family:Space Grotesk,IBM Plex Sans,Segoe UI,sans-serif;color:var(--ink);background:radial-gradient(circle at top,#fefcf7 0,#f2f0ea 55%,#eee9dd 100%)}a{color:inherit;text-decoration:none}.app-shell,main{min-height:100vh}.app-shell{display:grid;grid-template-columns:260px 1fr}.app-sidebar{padding:28px 22px;border-right:1px solid var(--border);background:linear-gradient(180deg,#fcfbf8,#f2efe7)}.app-brand{font-size:20px;font-weight:700;margin-bottom:18px}.nav-group{margin-top:24px}.nav-label{text-transform:uppercase;font-size:12px;letter-spacing:.12em;color:var(--muted);margin-bottom:10px}.nav-link{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:12px;color:var(--ink-soft);margin-bottom:8px;background:transparent;transition:all .2s ease}.nav-link.active,.nav-link:hover{background:#fff;color:var(--ink);box-shadow:0 6px 16px rgba(0,0,0,.08)}.app-content{display:flex;flex-direction:column}.app-topbar{display:flex;align-items:center;justify-content:space-between;padding:18px 28px;border-bottom:1px solid var(--border);background:hsla(0,0%,100%,.85);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.topbar-title{font-size:18px;font-weight:600}.topbar-meta{color:var(--muted);font-size:13px}.page{padding:28px 32px 48px;max-width:1200px}.page-header{margin-bottom:24px}.page-title{font-size:28px;margin:0 0 8px}.page-subtitle{color:var(--muted);margin:0}.grid{display:grid;grid-gap:18px;gap:18px}.grid.two{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}.card{background:var(--card);border-radius:18px;padding:18px;border:1px solid var(--border);box-shadow:var(--shadow)}.card.soft{background:#fbfaf7}.card-title{font-size:16px;margin:0 0 12px}.stack{flex-direction:column}.row,.stack{display:flex;gap:12px}.row{flex-wrap:wrap;align-items:center}.input,.select,.textarea{width:100%;padding:10px 12px;border-radius:10px;border:1px solid var(--border);background:#fff;font-size:14px;font-family:inherit}.textarea{min-height:160px;resize:vertical}.label{font-size:13px;color:var(--muted)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;border-radius:10px;border:none;background:var(--primary);color:#fff;font-weight:600;cursor:pointer;transition:all .2s ease}.btn:hover{background:var(--primary-strong)}.btn.secondary{background:#ece9e2;color:var(--ink)}.btn.ghost{background:transparent;border:1px solid var(--border);color:var(--ink)}.btn.compact{padding:7px 10px;border-radius:9px;font-size:13px;white-space:nowrap}.btn.danger{border-color:#e6b8b8;color:#9f2d2d}.btn.danger:hover{background:#fff0f0}.spinner{width:14px;height:14px;border:2px solid hsla(0,0%,100%,.4);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}.btn.ghost .spinner,.btn.secondary .spinner{border-color:hsla(0,0%,9%,.35);border-top-color:var(--ink)}@keyframes spin{to{transform:rotate(1turn)}}.badge{padding:4px 10px;border-radius:999px;font-size:12px;font-weight:600;background:#f0ede7;color:var(--ink)}.badge.status-CREATED{background:#f7efe3;color:#6f5b3c}.badge.status-WAITING_LAB{background:#e7f1ff;color:#2a5aa8}.badge.status-LAB_RECEIVED{background:#e6f9f0;color:#2f7a59}.badge.status-DRAFT_READY{background:#fff3e8;color:#a75722}.badge.status-IN_VALIDATION{background:#f0edff;color:#4a3ba0}.badge.status-FINAL,.badge.status-FINAL_READY{background:#e8fff1;color:#1f6b4f}.badge.status-NEEDS_INFO{background:#ffeef1;color:#a13a56}.badge.status-REJECTED{background:#ffe6e6;color:#b93a3a}.table{width:100%;border-collapse:collapse;font-size:14px}.table th{text-align:left;color:var(--muted);font-weight:600}.table td,.table th{padding:12px 10px;border-bottom:1px solid var(--border)}.admin-users-table{min-width:980px;table-layout:fixed}.admin-orders-table{min-width:1080px;table-layout:fixed}.admin-orders-col-status{width:46px}.admin-orders-col-id{width:330px}.admin-orders-col-actions{width:32%}.admin-orders-col-version{width:90px}.admin-orders-col-info{width:220px}.users-col-status{width:46px}.users-col-name{width:20%}.users-col-email{width:28%}.users-col-clinics,.users-col-roles{width:16%}.users-col-actions{width:190px}.status-cell{text-align:center}.status-dot{display:inline-block;width:10px;height:10px;border-radius:999px;box-shadow:0 0 0 3px rgba(0,0,0,.04)}.status-dot.active{background:#2f9f6a}.status-dot.inactive{background:#c94a4a}.status-dot.approved{background:#2f9f6a}.status-dot.rejected{background:#c94a4a}.status-dot.pending{background:#d9982f}.status-dot.order-neutral{background:#fff;border:1px solid #cfc7b8}.status-dot.order-attention{background:#d9982f}.status-dot.order-approved{background:#2f9f6a}.status-dot.order-rejected{background:#c94a4a}.admin-order-id-cell,.admin-version-cell{white-space:nowrap;color:var(--ink);font-weight:600}.admin-order-id-cell{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:13px}.admin-version-cell{overflow:hidden;text-overflow:ellipsis;color:var(--muted)}.admin-order-actions-cell,.admin-order-info-cell{white-space:nowrap}.admin-order-actions,.admin-order-info-actions{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}.admin-order-info-actions{justify-content:flex-end}.admin-action-select{width:190px;min-width:190px}.admin-modal-subtitle{margin:-2px 0 14px}.admin-comments-list{display:grid;grid-gap:10px;gap:10px;margin-bottom:16px}.admin-comment-item{padding:11px 12px;border:1px solid var(--border);border-radius:12px;background:#fbfaf7}.admin-comment-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:6px;color:var(--ink)}.admin-comment-heading span{color:var(--muted);font-size:12px;white-space:nowrap}.admin-comment-item p{margin:0;color:var(--ink-soft);line-height:1.45}.user-email-cell,.user-name-cell,.user-secondary-cell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-email-cell,.user-name-cell{color:var(--ink);font-weight:600}.user-secondary-cell{color:var(--muted)}.user-actions-cell{white-space:nowrap}.user-actions{gap:8px;flex-wrap:nowrap}.queue-toolbar,.user-actions{display:flex;align-items:center}.queue-toolbar{gap:12px;flex-wrap:wrap;margin:14px 0}.queue-search{max-width:360px}.physician-queue-table{min-width:920px;table-layout:fixed}.queue-col-status{width:46px}.queue-col-order,.queue-col-report{width:27%}.queue-col-actions{width:320px}.queue-primary-cell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink);font-weight:600}.queue-actions-cell{white-space:nowrap}.queue-actions{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}.queue-actions .btn.secondary.compact{padding:8px 14px;font-size:14px}.pill{background:#f8f6f1;border:1px solid var(--border);border-radius:999px;padding:6px 12px;font-size:12px;color:var(--muted)}.dropdown{position:relative;display:inline-block}.dropdown-panel{position:absolute;top:calc(100% + 8px);right:0;min-width:220px;background:#fff;border:1px solid var(--border);border-radius:12px;padding:10px;box-shadow:var(--shadow);z-index:20}.dropdown-option{display:flex;align-items:center;gap:8px;padding:6px 4px;font-size:13px;color:var(--text)}.dropdown-option input{margin:0}.login-shell{min-height:100vh;display:grid;place-items:center;padding:24px}.login-card{width:min(420px,100%);background:#fff;border-radius:22px;padding:28px;box-shadow:var(--shadow);border:1px solid var(--border)}.text-muted{color:var(--muted);margin:0}.report-editor-page{max-width:1080px}.report-editor-header{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}.editor-kicker,.editor-step{color:var(--primary);font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}.editor-notice{margin-bottom:20px;padding:14px 16px;border-left:3px solid var(--accent);background:#fff8ef;color:var(--ink-soft);font-size:14px}.editor-feedback{margin-bottom:16px;padding:12px 14px;border-radius:10px;font-size:14px}.editor-feedback.error{background:#ffeaea;color:#9d2d2d}.editor-feedback.success{background:#e9f8ef;color:#236a49}.editor-section{margin-bottom:20px;padding:24px;border:1px solid var(--border);border-radius:18px;background:hsla(0,0%,100%,.92);box-shadow:var(--shadow)}.editor-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:18px}.editor-section-heading h2{margin:5px 0 0;font-size:21px}.editor-count,.editor-save-state{color:var(--muted);font-size:12px}.editor-summary{min-height:220px;font-size:15px;line-height:1.65}.editor-field-help{margin:-6px 0 14px;color:var(--muted);font-size:13px}.editor-recommendations{min-height:230px;line-height:1.55}.editor-actions{position:-webkit-sticky;position:sticky;bottom:16px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 16px;border:1px solid var(--border);border-radius:14px;background:hsla(0,0%,100%,.94);box-shadow:0 14px 40px hsla(0,0%,7%,.14);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.editor-decision-actions{flex-wrap:wrap}.btn:disabled,button:disabled{cursor:not-allowed;opacity:.55}@media (max-width:760px){.queue-toolbar{align-items:stretch;flex-direction:column}.queue-search{max-width:none}.editor-actions,.report-editor-header{align-items:stretch;flex-direction:column}.editor-actions{position:static}}.comment-cell{display:inline-block;max-width:240px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.comment-cell.expanded{white-space:normal}.modal-backdrop{position:fixed;inset:0;background:hsla(0,0%,6%,.35);display:flex;align-items:center;justify-content:center;padding:24px;z-index:50}.modal{width:min(520px,100%);background:#fff;border-radius:16px;padding:18px;border:1px solid var(--border);box-shadow:var(--shadow)}.modal-title{margin:0 0 8px;font-size:18px}.danger-zone{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:8px;padding:14px;border:1px solid #efd1d1;border-radius:14px;background:#fff8f8}.danger-zone-title{color:#8f2d2d;font-weight:700}.danger-zone-copy{margin:4px 0 0;color:var(--muted);font-size:13px}.modal-question{margin:0 0 12px;color:var(--ink-soft)}.info-history{display:grid;grid-gap:10px;gap:10px;margin-bottom:12px}.info-history-item{padding:10px;border-radius:12px;border:1px solid var(--border);background:#fbfaf7}.table-wrap{overflow-x:auto}.insights-status{margin-bottom:18px}.insights-flow{display:grid;grid-gap:18px;gap:18px;margin-top:18px}.insights-system-title{margin:0;font-size:16px;text-transform:capitalize}.insights-item{padding:14px;border-radius:14px;border:1px solid var(--border);background:#fff;display:flex;flex-direction:column;gap:12px}.insights-item.active{border-color:var(--primary);box-shadow:0 8px 20px rgba(31,91,255,.12)}.insights-item-title{font-weight:600}@media (max-width:960px){.app-shell{grid-template-columns:1fr}.app-sidebar{border-right:none;border-bottom:1px solid var(--border)}.page{padding:24px 18px 36px}}.react-flow{direction:ltr}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1;cursor:-webkit-grab;cursor:grab}.react-flow__pane.selection{cursor:pointer}.react-flow__pane.dragging{cursor:-webkit-grabbing;cursor:grabbing}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow .react-flow__edges{pointer-events:none;overflow:visible}.react-flow__connection-path,.react-flow__edge-path{stroke:#b1b1b7;stroke-width:1;fill:none}.react-flow__edge{pointer-events:visibleStroke;cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge:focus .react-flow__edge-path,.react-flow__edge:focus-visible .react-flow__edge-path{stroke:#555}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge-textbg{fill:#fff}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__connectionline{z-index:1001}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:-webkit-grab;cursor:grab}.react-flow__node.dragging{cursor:-webkit-grabbing;cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:-webkit-grab;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background:#1a192b;border:1px solid #fff;border-radius:100%}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:-4px;transform:translate(-50%)}.react-flow__handle-top{left:50%;top:-4px;transform:translate(-50%)}.react-flow__handle-left{top:50%;left:-4px;transform:translateY(-50%)}.react-flow__handle-right{right:-4px;top:50%;transform:translateY(-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.center{left:50%;transform:translateX(-50%)}.react-flow__attribution{font-size:10px;background:hsla(0,0%,100%,.5);padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-default,.react-flow__node-group,.react-flow__node-input,.react-flow__node-output{padding:10px;border-radius:3px;width:150px;font-size:12px;color:#222;text-align:center;border:1px solid #1a192b;background-color:#fff}.react-flow__node-default.selectable:hover,.react-flow__node-group.selectable:hover,.react-flow__node-input.selectable:hover,.react-flow__node-output.selectable:hover{box-shadow:0 1px 4px 1px rgba(0,0,0,.08)}.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible,.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible{box-shadow:0 0 0 .5px #1a192b}.react-flow__node-group{background-color:hsla(0,0%,94%,.25)}.react-flow__nodesselection-rect,.react-flow__selection{background:rgba(0,89,220,.08);border:1px dotted rgba(0,89,220,.8)}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls{box-shadow:0 0 2px 1px rgba(0,0,0,.08)}.react-flow__controls-button{background:#fefefe;border:none;border-bottom:1px solid #eee;box-sizing:content-box;display:flex;justify-content:center;align-items:center;width:16px;height:16px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:5px}.react-flow__controls-button:hover{background:#f4f4f4}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__minimap{background-color:#fff}.react-flow__minimap svg{display:block}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.bottom,.react-flow__resize-control.top{cursor:ns-resize}.react-flow__resize-control.bottom.right,.react-flow__resize-control.top.left{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:4px;height:4px;border:1px solid #fff;border-radius:1px;background-color:#3367d9;transform:translate(-50%,-50%)}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.bottom.left,.react-flow__resize-control.handle.top.left{left:0}.react-flow__resize-control.handle.bottom.right,.react-flow__resize-control.handle.top.right{left:100%}.react-flow__resize-control.line{border:0 solid #3367d9}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.bottom,.react-flow__resize-control.line.top{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}