.history-timeline{flex:0 0 calc(var(--history-box-height) * 2 + 20px);height:calc(var(--history-box-height) * 2 + 20px);overflow:auto;border:1px solid #dce6df;border-radius:8px;background:#f5f8f6}.timeline-grid{display:grid;width:max-content;min-width:100%;justify-content:start;grid-template-rows:24px calc(var(--history-box-height) - 24px) 24px calc(var(--history-box-height) - 24px)}.history-timeline.prescription-only{flex-basis:calc(var(--history-box-height) + 20px);height:calc(var(--history-box-height) + 20px)}.prescription-only .timeline-grid{grid-template-rows:24px calc(var(--history-box-height) - 24px)}.timeline-grid>header{grid-column:1 / -1;color:#53675b;font-size:var(--font-small)}.timeline-grid>header>span{position:sticky;left:6px;display:inline-block;padding:2px 0}.timeline-grid>header strong{margin-right:6px;color:#435b4d;font-size:var(--font-label)}.timeline-prescription-heading{grid-row:1}.timeline-otc-heading{grid-row:3;border-top:1px solid #dce6df}.timeline-slot{min-width:0;padding:0 4px 6px;border-right:1px solid #dce6df;overflow-y:auto}.timeline-slot:nth-child(2n){background:#dce6e026}.prescription-slot{display:flex;flex-direction:column;gap:4px}.timeline-slot .prescription-history-option{flex:0 0 100%}.timeline-empty{grid-column:1 / -1;z-index:1;align-self:center;position:sticky;left:6px;width:fit-content;margin:0 6px;color:#53675b;font-size:var(--font-label)}.otc-history-card{display:flex;flex-shrink:0;width:var(--history-card-width);min-width:var(--history-card-width);height:100%;flex-direction:column;justify-content:center;gap:3px;padding:4px 6px;border:1px solid #c9d9e5;border-radius:6px;background:#edf5fc;text-align:left;cursor:pointer;color:#263f50}.otc-history-card:hover{background:#dcecf8;border-color:#7299b8}.otc-history-card time,.otc-history-card strong{font-size:var(--font-data);font-variant-numeric:tabular-nums}.otc-history-card>span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--font-label)}.otc-history-card small{color:#9b4032;font-size:var(--font-small)}.otc-history-card.refund-candidate{background:#fff0ec;border-color:#e6c7be}.otc-dialog{width:min(850px,calc(100vw - 32px));max-height:calc(100dvh - 48px);margin:auto;padding:0;overflow:hidden;border:1px solid #b8cbbf;border-radius:10px;color:#263f31;background:#fff;box-shadow:0 16px 60px #0f23194d}.otc-dialog[open]{display:flex;flex-direction:column}.otc-dialog::backdrop{background:#0f1e167a}.otc-dialog>header{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:#edf4ef;border-bottom:1px solid #dce6df}.otc-dialog h2{margin:0;font-size:18px}.otc-dialog>header button{padding:5px 10px;border:1px solid #bdcec3;border-radius:5px;background:#fff;cursor:pointer}.otc-dialog-body{display:flex;flex-direction:column;min-height:0}.otc-dialog-message{margin:0;padding:20px 12px;font-size:var(--font-body)}.otc-detail-table-scroll{min-height:0;overflow:auto}.otc-purchase-table{width:100%;min-width:600px;border-spacing:0;table-layout:fixed;font-size:var(--font-body)}.otc-purchase-table th{position:sticky;top:0;z-index:1;color:#53675b;text-align:left;background:#f5f8f6;font-size:var(--font-label)}.otc-purchase-table th,.otc-purchase-table td{padding:8px 12px;border-bottom:1px solid #e5ebe7}.otc-purchase-table .numeric{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.otc-product{overflow-wrap:anywhere}.otc-product strong{display:block;font-weight:600}.otc-product small{display:block;margin-top:2px;color:#637268;font-size:var(--font-small)}.otc-purchase-table .refund-candidate{background:#fff3ef}.otc-refund-label{display:inline-block;margin-top:3px;color:#9b4032;font-size:var(--font-small)}.otc-line-amount{font-weight:600}.otc-purchase-total{flex:0 0 auto;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px;border-top:1px solid #dce6df;background:#edf4ef;font-size:var(--font-label)}.otc-purchase-total small{display:block;color:#9b4032;font-size:var(--font-small)}.otc-purchase-total>div{display:flex;align-items:baseline;gap:14px}.otc-purchase-total strong{color:#24583c;font-size:22px;font-variant-numeric:tabular-nums}.otc-summary-panel{padding-top:8px;min-height:0;overflow:auto}.otc-summary-panel>header{margin-bottom:6px;font-size:var(--font-label)}.otc-summary-cards{display:grid;grid-template-columns:repeat(5,var(--history-card-width));justify-content:start;gap:4px;overflow:auto}.otc-summary-cards .otc-history-card{min-height:104px}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.prescription-comparison-workspace{display:flex;flex:1;flex-direction:column;gap:var(--space-gap);min-height:0;padding-top:5px}.aligned-table-scroll{flex:1;min-height:0;overflow:auto;border:1px solid #dfe7e2;border-radius:7px;background:#fff}.aligned-table-scroll:focus-visible{outline:2px solid #46846a;outline-offset:2px}.aligned-medication-table{--prescription-heading-height: 64px;width:100%;min-width:760px;border-spacing:0;table-layout:fixed;color:#263f31;font-size:var(--font-data)}.aligned-medication-table th{position:sticky;z-index:2;padding:4px 2px;border-bottom:1px solid #d5e1d9;text-align:left;white-space:nowrap}.prescription-group-headings th{top:0;height:var(--prescription-heading-height);background:#f7faf8;font-size:var(--font-small)}.prescription-group-headings strong{color:#294737}.prescription-group-headings span{margin-left:6px;color:#51685a;font-size:var(--font-small);font-weight:500}.prescription-heading-meta{display:flex;align-items:center;gap:6px;line-height:20px}.prescription-heading-meta span,.prescription-heading-meta .different-institution-label{margin-left:0}.prescription-group-headings .prescription-elapsed{display:block;margin:2px 0 0;color:#243f64;font-size:22px;font-weight:800;line-height:1.2;font-variant-numeric:tabular-nums}.medication-column-headings th{top:var(--prescription-heading-height);height:30px;color:#536c5e;background:#edf4ef;font-size:var(--font-small)}.aligned-medication-table td{height:76px;padding:4px 2px;border-bottom:1px solid #e1e7e3;vertical-align:middle;overflow-wrap:anywhere;line-height:1.35}.aligned-medication-table tr>:first-child{padding-left:6px}.aligned-medication-table tr>:last-child{padding-right:6px}.aligned-medication-table .numeric{text-align:right;font-variant-numeric:tabular-nums}.sequence-cell,.drug-code-cell{font-variant-numeric:tabular-nums}.sequence-cell{color:#748079}.drug-code-cell{white-space:nowrap;font-size:var(--font-small)}.drug-name-cell>span{color:#1f382b;font-size:var(--font-data);font-weight:600}.drug-name-cell>small{display:block;margin-top:3px;color:#8a6833;font-size:var(--font-small)}.aligned-medication-table .current-end{padding-right:8px}.aligned-medication-table .previous-start{border-left:8px solid #e8eeea;padding-left:8px}.aligned-medication-table .current-unchanged{background:#e1edff}.aligned-medication-table .current-changed{background:#def2e3}.aligned-medication-table .current-added{background:#ffe3e3}.aligned-medication-table .past-only{color:#66716b;background:#e7e9eb}.aligned-medication-table .past-only .drug-name-cell,.aligned-medication-table .past-only>span{color:#66716b}.aligned-medication-table .alignment-blank{color:#829087;background:#fafcfb;font-size:var(--font-small);text-align:center}.prescription-change-notice{display:flex;align-items:center;justify-content:center;gap:8px;padding:0 6px;color:#59675f;font-size:var(--font-data);font-weight:600;word-break:keep-all}.prescription-change-notice.added{color:#a24545}.prescription-change-notice .change-arrow{flex:0 0 auto;font-size:22px;line-height:1}.different-institution .previous-side{background:#fff8e8}.different-institution .medication-column-headings .previous-side{background:#f6e9c9}.different-institution .prescription-group-headings .previous-side{background:#fff3d6}.different-institution .past-only{background:#e7e9eb}.different-institution-label{margin-left:5px;padding:2px 4px;border-radius:4px;color:#84571f;background:#f6dfaa;font-size:var(--font-small)}.aligned-table-empty{padding:12px;color:#7a8c81;text-align:center}.prescription-history-box{flex:0 0 var(--history-box-height);height:var(--history-box-height);min-width:0;padding:6px;border:1px solid #dce6df;border-radius:8px;background:#f5f8f6}.prescription-history-box>header{display:flex;align-items:center;gap:6px;height:20px;margin-bottom:4px;font-size:var(--font-small)}.prescription-history-box>header strong{color:#435b4d}.prescription-history-box>header span{color:#7a8a80}.prescription-history-options{display:grid;grid-template-columns:repeat(5,var(--history-card-width));gap:4px;height:94px;overflow:auto;padding-bottom:3px}.prescription-history-option{display:flex;flex-shrink:0;flex-direction:column;justify-content:center;gap:4px;width:var(--history-card-width);min-width:var(--history-card-width);padding:4px;border:1px solid #d9e2dc;border-radius:6px;background:#fff;text-align:left;cursor:pointer}.prescription-history-option:hover{border-color:#8cb29d}.prescription-history-option[aria-pressed=true]{border:2px solid #438262;padding:3px;background:#eaf5ee;box-shadow:0 0 0 1px #43826214}.prescription-history-option:focus-visible{outline:2px solid #438262;outline-offset:-4px}.prescription-history-option time{color:#263f31;font-size:var(--font-data);font-weight:700;font-variant-numeric:tabular-nums}.prescription-history-option>strong{overflow:hidden;color:#334e3e;font-size:var(--font-label);text-overflow:ellipsis;white-space:nowrap}.prescription-history-option>span{display:flex;justify-content:space-between;gap:4px;color:#53675b;font-size:var(--font-small);white-space:nowrap}.prescription-history-option b{color:#435b4d;font-weight:600}.history-empty{align-self:center;color:#829087;font-size:var(--font-small)}.aligned-medication-table td.numeric{white-space:nowrap;overflow-wrap:normal}.prescription-group-headings th{font-size:var(--font-label)}.prescription-history-box>header{font-size:var(--font-label)}.aligned-medication-table .drug-image-cell{padding-inline:4px;text-align:center}.drug-image-frame{position:relative;display:grid;place-items:center;width:112px;height:64px;margin:auto;overflow:hidden;border-radius:4px;background:#ffffffbf;color:#637268;font-size:var(--font-small)}.drug-image-frame img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#fff}.drug-image-retry{padding:4px;border:1px solid #bdcec3;border-radius:4px;background:#fff;color:#435b4d;font-size:var(--font-small);cursor:pointer}.prescription-label-trigger{border:0;background:transparent;color:inherit;font:inherit;text-align:left;width:100%;padding:0;cursor:pointer;display:grid;gap:3px}.prescription-label-trigger small{font-size:13px;color:#496456;font-weight:400}.prescription-label-trigger:hover{text-decoration:underline}.prescription-label-trigger:focus-visible{outline:2px solid #29744f;outline-offset:3px}.prescription-label-status{display:flex;align-items:center;gap:8px;font-size:13px;padding:3px 6px;background:#eef5f0}.prescription-label-status button{font:inherit}.aligned-medication-table .label-check-cell{text-align:center;padding:4px}.label-check-cell input{width:18px;height:18px;margin:0;vertical-align:middle;cursor:pointer;accent-color:#29744f}.selected-label-print{margin-left:10px;padding:5px 9px;border:1px solid #29744f;border-radius:5px;background:#29744f;color:#fff;font-size:var(--font-label);cursor:pointer}.selected-label-print:disabled{opacity:.5;cursor:default}:root{font-family:Inter,Pretendard,Noto Sans KR,Segoe UI,sans-serif;--font-body: 16px;--font-data: 15px;--font-label: 14px;--font-small: 13px;--font-title: 20px;--space-page: 8px;--space-panel: 6px;--space-gap: 6px;--history-box-height: 132px;--history-card-width: 207px;font-size:var(--font-body);line-height:1.4;color:#17211d;background:#eef2ef;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}html,body,#root{min-width:100%;min-height:100%;margin:0}button{font:inherit}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;z-index:30;display:flex;width:250px;flex-direction:column;gap:18px;padding:14px 10px;color:#f5fbf7;background:#193a2d;box-shadow:18px 0 45px #12271e38;transform:translate(-105%);transition:transform .18s ease}.sidebar.open{transform:translate(0)}.menu-backdrop{position:fixed;inset:0;z-index:20;padding:0;border:0;background:#0c1c156b;opacity:0;pointer-events:none;transition:opacity .18s ease}.menu-backdrop.visible{opacity:1;pointer-events:auto}.brand{display:flex;align-items:center;gap:12px;padding:0 8px}.brand-mark{display:grid;width:44px;height:44px;place-items:center;border-radius:13px;color:#193a2d;background:#bde8ce;font-weight:800}.brand div{display:grid;gap:2px}.brand strong{font-size:18px}.brand div span{color:#a9c1b5;font-size:var(--font-small)}.menu-close{display:grid;width:34px;height:34px;margin-left:auto;padding:0;place-items:center;border:0;border-radius:9px;color:#c9d8d1;background:#ffffff12;font-size:24px;line-height:1;cursor:pointer}.menu-close:hover{color:#fff;background:#ffffff1f}nav{display:grid;gap:6px}.nav-item{display:grid;grid-template-columns:44px 1fr;align-items:center;gap:10px;width:100%;padding:9px 10px;border:0;border-radius:11px;color:#c9d8d1;background:transparent;text-align:left;cursor:pointer}.nav-item:hover{background:#ffffff12}.nav-item.active{color:#17392c;background:#d9f3e3;font-weight:700}.nav-abbreviation{font-size:var(--font-small);opacity:.8}.privacy-note{display:grid;gap:5px;margin-top:auto;padding:14px;border:1px solid rgb(216 243 226 / 16%);border-radius:12px;background:#ffffff0d}.privacy-note strong{font-size:var(--font-small)}.privacy-note span{color:#a9c1b5;font-size:var(--font-small);line-height:1.5}.workspace{min-width:0;min-height:100vh;padding:var(--space-page);background:radial-gradient(circle at 95% 0%,rgb(189 232 206 / 32%),transparent 28%),#eef2ef}.topbar{display:flex;height:36px;align-items:center;justify-content:space-between;gap:12px;margin-bottom:var(--space-gap)}.topbar-title{display:flex;min-width:0;align-items:center;gap:10px}.topbar-title-line{display:flex;min-width:0;align-items:center;gap:10px;white-space:nowrap}.topbar-brand{color:#53675b;font-size:var(--font-label);font-weight:700;line-height:24px}.topbar-title-line h1{overflow:hidden;margin:0;font-size:var(--font-title);line-height:26px;text-overflow:ellipsis}.menu-trigger{display:grid;flex:0 0 auto;width:34px;height:34px;padding:8px;place-content:center;gap:4px;border:1px solid #d2dcd6;border-radius:9px;background:#ffffffc7;box-shadow:0 4px 14px #263a310d;cursor:pointer}.menu-trigger span{display:block;width:18px;height:2px;border-radius:999px;background:#315343}.menu-trigger:hover{border-color:#a9cbb6;background:#fff}.eyebrow{color:#6b7b73;font-size:var(--font-small);font-weight:700;letter-spacing:.08em;text-transform:uppercase}h1,h2,h3,p{margin-top:0}h1{margin:5px 0 0;font-size:29px;letter-spacing:-.04em}h2{margin:5px 0 0;font-size:19px;letter-spacing:-.025em}.connection-state{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:0;border-radius:50%;background:transparent}.connection-state{cursor:pointer}.connection-state:disabled{cursor:wait;opacity:.75}.connection-state:focus-visible{outline:2px solid #46846a;outline-offset:2px}.status-dot{width:7px;height:7px;border-radius:50%;background:#df9e36;box-shadow:0 0 0 3px #df9e3629}.connection-state.connected .status-dot{background:#3a9b67;box-shadow:0 0 0 3px #3a9b6729}.connection-state.failed .status-dot{background:#cc6654;box-shadow:0 0 0 3px #cc665429}.dashboard{min-width:0}.panel{border:1px solid rgb(27 58 45 / 10%);border-radius:8px;background:#fff;box-shadow:0 2px 8px #263a3108}.counter-grid{display:grid;grid-template-columns:160px minmax(0,1fr);gap:var(--space-gap);min-width:0}.patient-workspace{display:grid;grid-template-rows:42px minmax(340px,1fr);gap:var(--space-gap);min-width:0;height:calc(100dvh - 58px)}.panel{padding:var(--space-panel)}.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;padding-bottom:6px;border-bottom:1px solid #e5ebe7}.detail-heading{gap:6px}.prescription-toolbar{display:grid;grid-template-columns:minmax(0,1fr);gap:5px;padding-bottom:6px}.queue-heading{display:flex;align-items:baseline;justify-content:space-between;gap:7px}.queue-heading>span{color:#315343;font-size:var(--font-small);font-weight:700}.date-controls{display:grid;grid-template-columns:minmax(0,1fr);gap:4px}.date-controls input{width:100%;min-width:0;padding:4px;border:1px solid #cbdcd2;border-radius:8px;color:#284537;background:#fff;font:inherit;font-size:var(--font-data)}.date-controls button{justify-self:stretch;width:100%;padding:4px 10px;border:1px solid #cbdcd2;border-radius:8px;color:#315343;background:#f0f7f3;font-size:var(--font-small);cursor:pointer}.date-controls button:hover{background:#e3f1e8}.simple-drug-names-option{display:inline-flex;min-height:26px;align-items:center;gap:6px;width:fit-content;color:#40564a;font-size:var(--font-label);cursor:pointer}.simple-drug-names-option input{width:16px;height:16px;margin:0;accent-color:#438262;cursor:pointer}.empty-state,.comparison-placeholder,.feature-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:390px;color:#75827b;text-align:center}.empty-state h3{margin:15px 0 7px;color:#273a31;font-size:17px}.empty-state p,.feature-placeholder p{max-width:460px;line-height:1.7}.empty-state.compact{min-height:350px}.empty-symbol{display:grid;width:58px;height:58px;place-items:center;border-radius:18px;color:#296347;background:#dcefe3;font-size:18px;font-weight:800}.prescription-panel{display:flex;height:calc(100dvh - 58px);min-height:388px;flex-direction:column;padding:var(--space-panel)}.prescription-panel .panel-heading{padding-inline:0}.prescription-panel .empty-state{flex:1;min-height:0}.prescription-list{display:grid;min-height:0;overflow:auto}.prescription-row{display:flex;align-items:center;justify-content:center;width:100%;min-height:34px;padding:5px 6px;border:0;border-top:1px solid #edf1ee;color:#4d5b54;background:transparent;text-align:center;cursor:pointer}.prescription-row:hover{background:#f4faf6}.prescription-row.selected{background:#e8f5ed;box-shadow:inset 3px 0 #46966b}.prescription-row strong{flex:0 0 5.5em;width:5.5em;overflow:hidden;color:#25362e;font-size:var(--font-body);letter-spacing:.05em;white-space:nowrap}.comparison-placeholder{gap:8px;min-height:360px;padding:24px}.patient-summary-panel{display:flex;align-items:center;min-width:0;min-height:0;padding:4px 6px;overflow-x:auto}.patient-summary-line{display:flex;align-items:center;width:max-content;min-width:100%;margin:0}.patient-summary-line>div{display:flex;flex:0 0 auto;align-items:baseline;gap:4px;padding:0 5px;border-left:1px solid #dfe7e2}.patient-summary-line>div:first-child{padding-left:0;border-left:0}.patient-summary-line>div:last-child{padding-right:0}.patient-summary-line dt{color:#596e61;font-size:var(--font-small);font-weight:700;white-space:nowrap}.patient-summary-line dd{margin:0;color:#263f31;font-size:var(--font-label);font-weight:700;white-space:nowrap}.patient-summary-line .name-fact dd{max-width:140px;overflow:hidden;color:#1f392d;font-size:18px;text-overflow:ellipsis}.patient-summary-line .institution-fact{flex:1 0 auto}.patient-summary-line .institution-fact dd{max-width:165px;overflow:hidden;text-overflow:ellipsis}.patient-summary-placeholder{color:#596e61;font-size:var(--font-small);white-space:nowrap}.comparison-placeholder strong{color:#314139;font-size:16px}.comparison-placeholder span:last-child{max-width:280px;line-height:1.7}.detail-panel{display:flex;flex-direction:column;min-height:0;overflow:hidden;padding:var(--space-panel)}.detail-heading{align-items:center;padding-bottom:5px}.detail-heading .eyebrow{display:none}.detail-heading h2{margin:0;font-size:var(--font-body)}.detail-panel>.panel-heading{flex:0 0 auto}.detail-placeholder{display:grid;min-height:300px;place-items:center;color:#829087;font-size:13px}.otc-history{display:grid;gap:6px;min-height:0;overflow:auto;padding:8px 0 0}.otc-history-title{display:flex;align-items:end;justify-content:space-between}.otc-history-title div{display:grid;gap:3px}.otc-history-title span{color:#7c8982;font-size:var(--font-small);font-weight:700}.otc-history-title strong{color:#20362c;font-size:22px}.otc-purchase-list{display:grid;gap:6px;max-height:none;padding-right:3px;overflow:auto}.otc-purchase{overflow:hidden;border:1px solid #e2e9e5;border-radius:11px;background:#fff}.otc-purchase.refund-candidate{border-color:#eccdc7;background:#fff9f7}.otc-purchase header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:5px 6px;background:#f3f7f4}.otc-purchase header time{color:#56665e;font-size:var(--font-small);font-weight:800}.otc-purchase header div{display:flex;align-items:center;gap:6px}.otc-purchase header strong{color:#284537;font-size:var(--font-small)}.refund-label{padding:3px 6px;border-radius:999px;color:#a34e40;background:#f7dfda;font-size:var(--font-small);font-weight:800}.otc-items{display:grid}.otc-item{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:9px;padding:5px 6px;border-top:1px solid #edf1ee;color:#6a7870;font-size:var(--font-small)}.otc-item:first-child{border-top:0}.otc-item strong{overflow:hidden;color:#35473e;font-size:var(--font-small);text-overflow:ellipsis;white-space:nowrap}.refund-note{color:#8b6b65;font-size:var(--font-small);line-height:1.5}.feature-placeholder{min-height:600px}.feature-placeholder h2{margin:10px 0 8px;font-size:25px}@media(max-width:760px){.workspace{padding:var(--space-page)}.counter-grid{grid-template-columns:1fr}.prescription-panel{height:300px;min-height:300px}.patient-workspace{height:680px}}@media(prefers-reduced-motion:reduce){.sidebar,.menu-backdrop{transition:none}}button:focus-visible,input:focus-visible{outline:2px solid #357452;outline-offset:2px}.prescription-detail-stack{display:flex;flex:1;flex-direction:column;gap:var(--space-gap);min-height:0}.prescription-detail-stack>.empty-state{flex:1;min-height:0;overflow:auto}.otc-history-panel{display:flex;flex:0 0 var(--history-box-height);height:var(--history-box-height);min-height:0;flex-direction:column;padding:6px;border:1px solid #dce6df;border-radius:8px;background:#f5f8f6}.otc-history-panel>header{display:flex;align-items:center;gap:6px;height:20px;flex:0 0 auto;margin-bottom:4px;font-size:var(--font-label);color:#435b4d}.otc-history-panel>header span{color:#53675b;font-size:var(--font-small)}.otc-history-panel>p{margin:auto 0;color:#53675b;font-size:var(--font-label)}.otc-history-panel-scroll{flex:1;min-height:0;overflow:auto}.otc-history-panel table{width:100%;min-width:530px;border-spacing:0;table-layout:fixed;font-size:var(--font-data);color:#263f31}.otc-history-panel .otc-date-column{width:125px}.otc-history-panel .otc-quantity-column{width:90px}.otc-history-panel .otc-amount-column{width:100px}.otc-history-panel th{position:sticky;top:0;z-index:1;padding:2px 4px;color:#53675b;background:#eaf1ec;text-align:left;font-size:var(--font-small)}.otc-history-panel td{padding:3px 4px;border-bottom:1px solid #e1e7e3;background:#fff;overflow-wrap:anywhere}.otc-history-panel .numeric{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.otc-history-panel time{white-space:nowrap;font-variant-numeric:tabular-nums;font-size:var(--font-label)}.otc-history-panel small{display:block;font-size:var(--font-small);color:#9b4032}.otc-history-panel .refund-candidate td{background:#fff0ec}.label-settings,.medicine-settings-page{height:calc(100dvh - 58px);display:flex;flex-direction:column;gap:6px;min-height:0}.medicine-return button{padding:5px 8px;border:1px solid #bdcec3;border-radius:5px;background:#fff;color:#17624f;font:inherit;font-size:var(--font-label);cursor:pointer}.medicine-return button:disabled{opacity:.5;cursor:default}.label-settings-heading{display:flex;gap:12px;align-items:center;flex-shrink:0}.label-settings-heading h2{margin:0;font-size:var(--font-body)}.settings-lock-notice{margin:0;flex-shrink:0;font-size:var(--font-small);color:#475569}.label-settings>.label-workspace{height:auto;flex:1;min-height:0;grid-template-rows:minmax(0,1fr)}.medicine-settings{display:grid;grid-template-columns:290px minmax(0,1fr);gap:6px;flex:1;min-height:0}.medicine-packaging{margin-top:10px;padding-top:8px;border-top:1px solid #dce3e9}.medicine-packaging h3{margin:0;font-size:var(--font-body)}.medicine-package-row{display:grid;grid-template-columns:70px minmax(100px,1fr) 50px auto;gap:8px;align-items:center;margin:6px 0}.medicine-package-row>label{display:grid;gap:3px;font-size:var(--font-small)}.medicine-package-row .medicine-package-primary{display:flex;align-items:center;align-self:center;gap:5px}.medicine-package-row .medicine-package-primary input{width:16px;height:16px;margin:0;padding:0;accent-color:#17624f}.medicine-package-row input:not([type=radio]){width:100%;min-width:0}.medicine-library-list,.medicine-detail{border:1px solid #dce3e9;border-radius:8px;background:#fff;padding:10px;min-height:0;overflow:auto}.medicine-library-list{display:flex;flex-direction:column;gap:8px}.medicine-lookup{display:grid;gap:8px}.medicine-lookup p{margin:0}.medicine-settings h2{font-size:18px;margin:0}.medicine-settings h2 small{font-size:14px;font-weight:400}.medicine-settings p{font-size:14px;line-height:1.5;margin:8px 0;color:#475569;white-space:pre-wrap;overflow-wrap:anywhere}.medicine-settings input,.medicine-settings textarea{font:inherit;width:100%;padding:7px;border:1px solid #b9c5d1;border-radius:5px;box-sizing:border-box}.medicine-settings label{font-size:15px;display:grid;gap:4px}.medicine-settings button{background:#f8fafc;padding:7px 10px;border:1px solid #cbd5df;border-radius:5px;font-size:14px;cursor:pointer}.medicine-settings button:disabled{opacity:.5;cursor:not-allowed}.medicine-saved-list{overflow:auto;display:flex;flex-direction:column;gap:4px;flex:1}.medicine-saved-list button{flex-shrink:0;text-align:left;background:#fff;padding:8px}.medicine-saved-list button.selected{border-color:#17624f;background:#edf7f3}.medicine-saved-list strong{display:block;font-size:16px;overflow-wrap:anywhere}.medicine-saved-list span{font-size:13px;color:#64748b}.medicine-detail-heading{display:flex;gap:8px;justify-content:space-between;align-items:flex-start}.medicine-detail-heading button{flex-shrink:0}.medicine-detail fieldset{border:0;padding:0;margin:0}.medicine-field{margin:12px 0}.medicine-conditions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.medicine-conditions .medicine-field{margin-top:0;min-width:0}.medicine-conditions .medicine-field-heading{flex-wrap:wrap;gap:6px}.medicine-field-heading{display:flex;align-items:center;gap:8px;margin-bottom:5px}.medicine-field-heading label{font-weight:700;font-size:16px}.medicine-field-heading span,.medicine-field details{font-size:13px;color:#64748b}.medicine-field-heading button{margin-left:auto}.medicine-field textarea,.medicine-detail textarea{resize:vertical;min-height:80px}.medicine-field details p{color:#334155;background:#f4f7fa;padding:6px}.medicine-custom-label{font-weight:700;margin-bottom:5px}.medicine-actions{display:flex;gap:6px;margin:10px 0}.medicine-actions .primary{color:#fff;background:#17624f}.medicine-status{display:flex;align-items:center;gap:8px;color:#17624f;min-height:24px;font-size:14px}.medicine-status:empty{display:none}.medicine-detail .medicine-error{color:#a52626}.medicine-empty{margin:24px 0}.medicine-settings-page .medicine-detail{padding:8px 10px}.medicine-settings-page .medicine-detail p{margin:3px 0;font-size:var(--font-small);line-height:1.35}.medicine-settings-page .medicine-detail-heading{align-items:center;gap:6px}.medicine-settings-page .medicine-detail-heading h2{line-height:1.3}.medicine-settings-page .medicine-detail-heading p{margin:2px 0 0}.medicine-settings-page .medicine-source-meta{margin:2px 0 6px}.medicine-settings-page .medicine-field{margin:6px 0}.medicine-settings-page .medicine-conditions{gap:8px}.medicine-settings-page .medicine-conditions .medicine-field{margin-top:0}.medicine-settings-page .medicine-field-heading{gap:6px;margin-bottom:3px}.medicine-settings-page .medicine-detail label{gap:3px}.medicine-settings-page .medicine-detail input:not([type=radio]){padding:5px 7px}.medicine-settings-page .medicine-detail textarea{display:block;height:62px;min-height:62px;padding:5px 7px}.medicine-settings-page .medicine-detail button{padding:5px 8px}.medicine-settings-page .medicine-detail .rx-label-fields{margin-top:5px;gap:8px}.medicine-settings-page .medicine-custom-label{margin-bottom:3px}.medicine-settings-page .medicine-packaging{margin-top:6px;padding-top:5px}.medicine-settings-page .medicine-package-list{max-height:152px;overflow-y:auto}.medicine-settings-page .medicine-package-row{grid-template-columns:64px minmax(140px,1fr) 50px auto;gap:6px;align-items:center;margin:4px 0}.medicine-settings-page .medicine-package-row>label{display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:var(--font-small)}.medicine-settings-page .medicine-package-row input:not([type=radio]){flex:1;width:0}.medicine-settings-page .medicine-actions{margin:6px 0 4px}.medicine-search-dialog{width:920px;max-width:calc(100vw - 40px);height:850px;max-height:calc(100dvh - 40px);box-sizing:border-box;border:1px solid #b9c5d1;border-radius:8px;padding:12px;color:#172b26}.medicine-search-dialog[open]{display:flex;flex-direction:column;gap:8px}.medicine-search-dialog::backdrop{background:#122b2759}.medicine-search-dialog header,.medicine-search-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-shrink:0}.medicine-search-dialog h2{font-size:20px;margin:0}.medicine-search-dialog p{margin:4px 0;font-size:14px}.medicine-search-dialog button,.medicine-search-dialog input{font:inherit;padding:7px 10px;border:1px solid #b9c5d1;border-radius:5px;background:#fff}.medicine-search-dialog button{cursor:pointer}.medicine-search-dialog button:disabled{opacity:.5;cursor:not-allowed}.medicine-search-dialog .primary{background:#17624f;color:#fff}.medicine-search-form{display:flex;align-items:center;gap:8px}.medicine-search-form input{flex:1;min-width:0}.medicine-search-results{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:6px}.medicine-search-results>button{display:flex;gap:12px;align-items:center;text-align:left;flex-shrink:0;min-height:86px}.medicine-search-results img,.medicine-search-no-image{width:112px;height:64px;object-fit:contain;flex-shrink:0;font-size:13px}.medicine-search-results strong,.medicine-search-results span span,.medicine-search-results small{display:block}.medicine-search-results strong{font-size:16px}.medicine-search-results span span{font-size:14px}.medicine-search-results small{font-size:13px;color:#475569}.medicine-search-detail{display:flex;overflow:hidden}.medicine-search-detail>.medicine-detail{width:100%}.medicine-search-dialog .medicine-error{color:#a52626}.medicine-link-target{padding:8px;background:#fff6df}.medicine-incomplete-heading{display:flex;gap:6px}.label-template-controls{border-top:1px solid #dce3e9;padding-top:10px;margin-top:12px;display:grid;gap:5px}.label-template-controls p{margin:0}.template-save-actions{display:flex;gap:5px}.label-settings .label-editor,.label-settings .label-preview-panel{overflow-y:auto;min-height:0}@media(max-width:800px){.medicine-settings{grid-template-columns:1fr;overflow:auto}.medicine-library-list{min-height:250px}.medicine-detail{min-height:600px}}@media(max-width:600px){.medicine-conditions{grid-template-columns:1fr}}.label-designer{flex:1;min-height:0;display:flex;flex-direction:column;gap:6px;outline:none}.label-designer button,.label-designer input,.label-designer select,.label-designer textarea{font:inherit;font-size:14px}.label-designer button{padding:5px 9px;border:1px solid #cbd5df;border-radius:5px;background:#fff;color:#243548;cursor:pointer}.label-designer button:disabled{opacity:.45;cursor:default}.label-designer button:hover:not(:disabled),.label-designer button[aria-pressed=true]{background:#e6f0fc;border-color:#5a8cc5}.label-designer input:not([type=checkbox]),.label-designer select,.label-designer textarea{min-width:0;padding:5px 6px;border:1px solid #cbd5df;border-radius:4px;background:#fff;color:#152a3b}.design-filebar,.design-toolbar{display:flex;gap:5px;align-items:center;flex-wrap:wrap}.design-variablebar{display:flex;align-items:center;flex-wrap:wrap;gap:5px;padding:5px 6px;border:1px solid #bdd1df;border-radius:5px;background:#edf5fa;font-size:14px}.design-variablebar>strong{margin-right:5px}.design-variablebar button{border-color:#b8cddc}.design-variable-source,.design-sample-note{font-size:13px;color:#526477;margin:4px 0;line-height:1.45}.design-filebar>input{width:200px;flex:1}.design-toolbar>label{display:flex;align-items:center;gap:4px;font-size:14px;margin-left:auto}.design-body{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:8px;flex:1;min-height:0}.design-main{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:auto;border:1px solid #d9e1e9;border-radius:6px;background:#fff}.design-canvas-header{display:flex;justify-content:space-between;gap:12px;padding:8px;font-size:14px}.design-canvas-header span{color:#596b7c}.design-canvas-scroll{background:#eef1f5;overflow:auto;padding:25px;flex:1;min-height:370px;display:grid;align-items:center}.design-paper{margin:auto;background:#fff;box-shadow:0 1px 6px #6785;outline:1px solid #9aa8b5;flex-shrink:0}.design-hint{padding:6px 8px;font-size:13px;color:#526477}.design-print{display:grid;grid-template-columns:minmax(220px,.9fr) minmax(250px,1fr);gap:12px;border-top:1px solid #d9e1e9;padding:10px}.design-print-preview{min-width:0;font-size:14px}.design-print-preview img{display:block;width:100%;max-width:340px;height:auto;border:1px solid #aebdcc;margin-top:8px}.design-print-controls{display:flex;flex-direction:column;gap:7px;font-size:14px;min-width:0}.design-print-controls>label:not(.design-confirm){display:grid;gap:3px}.design-confirm,.design-check{display:flex!important;align-items:center;gap:5px}.design-print-controls>button{background:#e6f0fc}.design-properties{min-height:0;overflow:auto;padding:8px;border:1px solid #d9e1e9;border-radius:6px;background:#fff;font-size:14px}.design-properties>strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:8px}.design-properties fieldset{margin:0;padding:0;border:0;min-width:0;display:flex;flex-direction:column;gap:7px}.design-properties label{display:grid;gap:3px}.design-properties textarea{resize:vertical;width:100%;box-sizing:border-box}.design-numbers{display:grid;grid-template-columns:1fr 1fr;gap:6px}.design-numbers input{width:100%;box-sizing:border-box}.design-actions{display:grid;grid-template-columns:1fr 1fr;gap:5px}.design-object-list{display:flex;flex-direction:column;gap:4px;margin-top:12px;border-top:1px solid #d9e1e9;padding-top:8px}.design-object-list button{text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.design-error,.design-notice{margin:0;padding:5px 8px;font-size:14px;overflow-wrap:anywhere}.design-error{color:#a52d2d;background:#fff0ef}.design-notice{color:#18582b;background:#ecf7ef}.design-template-manager{display:grid;grid-template-columns:300px minmax(0,1fr);gap:8px;align-items:start;flex-shrink:0}.design-template-box{min-width:0;border:1px solid #cbd5df;border-radius:6px;overflow:hidden;background:#fff}.design-template-box h2{display:flex;justify-content:space-between;margin:0;padding:6px 9px;font-size:14px;color:#243548;background:#edf3f8}.design-template-box h2 span{font-size:13px;font-weight:400}.design-template-list{height:180px;overflow-y:auto}.design-template-list>button{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;height:36px;border:0;border-bottom:1px solid #e4eaf0;border-radius:0;text-align:left}.design-template-list>button>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.design-template-list small{flex-shrink:0;font-size:13px;color:#526477}.design-template-controls{min-width:0;display:flex;flex-direction:column;gap:6px;padding:8px;border:1px solid #cbd5df;border-radius:6px;background:#fff}.design-template-controls>.design-sample-note{margin:0}.design-template-controls .design-toolbar{padding-top:6px;border-top:1px solid #e4eaf0}.design-delete-confirm{margin-top:8px;padding:8px;border:1px solid #d4acac;border-radius:5px;background:#fff8f8;font-size:14px}.design-delete-confirm p{margin:0 0 8px}.design-delete-confirm button+button{margin-left:6px}.design-dosage{border:1px solid #cbd5df;border-radius:4px;padding:6px}.design-dosage summary{cursor:pointer}.design-dosage fieldset{display:grid;gap:6px;border:0;padding:6px 0 0;margin:0;min-width:0}.design-dosage label{display:grid;gap:3px}.design-dosage textarea{resize:vertical;width:100%;box-sizing:border-box}.design-dosage p,.design-dosage label>span{font-size:13px;margin:0;color:#526477}.design-dosage output{white-space:pre-wrap;overflow-wrap:anywhere}.design-dosage-buttons{display:flex;flex-wrap:wrap;gap:4px}@media(max-width:760px){.design-template-manager{grid-template-columns:1fr}}.rx-label-dialog{width:min(1100px,calc(100vw - 32px));max-height:calc(100vh - 32px);padding:0;border:1px solid #b4c7bc;border-radius:8px;color:#19382c;background:#fff;box-shadow:0 12px 40px #17382b40;font-size:16px;overflow:hidden}.rx-label-dialog::backdrop{background:#10251c77}.rx-label-dialog>header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;border-bottom:1px solid #d4e0d9;background:#eff6f2}.rx-label-dialog h2,.label-print-settings h2{margin:0;font-size:20px}.rx-label-dialog header p{margin:3px 0 0;font-size:14px}.rx-label-body{display:grid;grid-template-columns:1.1fr 1fr;gap:14px;padding:12px;max-height:calc(100vh - 134px);overflow:auto}.rx-label-dialog fieldset,.label-print-settings fieldset{border:0;margin:0;padding:0;min-width:0;display:grid;gap:8px}.rx-label-dialog label,.label-print-settings label{display:grid;gap:4px;font-size:14px;min-width:0}.rx-label-dialog input:not([type=checkbox]),.rx-label-dialog select,.rx-label-dialog textarea,.label-print-settings input,.label-print-settings select{width:100%;min-width:0;box-sizing:border-box;border:1px solid #b8c9c0;border-radius:4px;padding:6px 8px;font:inherit;color:#172f24;background:#fff}.rx-label-dialog input[readonly]{background:#f1f5f2}.rx-label-dialog input:not([type=checkbox]),.rx-label-dialog textarea{font-size:15px}.rx-label-dialog textarea{resize:vertical}.rx-label-dialog button,.label-print-settings button{font:inherit;font-size:14px;cursor:pointer;padding:6px 10px;border:1px solid #b8c9c0;border-radius:4px;background:#fff;color:#194633}.rx-label-dialog button:disabled,.label-print-settings button:disabled{opacity:.5;cursor:default}.rx-label-dialog button[aria-pressed=true]{background:#dbeee3;border-color:#3c8560}.rx-label-dialog p{font-size:13px;line-height:1.45;margin:3px 0}.rx-label-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px}.rx-label-wide{grid-column:1 / -1}.rx-label-quantities{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.rx-label-quantities output{padding:6px;font-size:16px;font-variant-numeric:tabular-nums;background:#edf5f0;border-radius:4px;overflow-wrap:anywhere}.rx-label-preview{width:min(100%,380px);justify-self:center;aspect-ratio:50 / 29;border:1px solid #b7c7bd;display:grid;align-items:center;background:#fff}.rx-label-preview img{width:100%;display:block}.rx-label-preview p{font-size:14px;padding:12px}.rx-label-check{display:flex!important;align-items:flex-start;gap:6px!important}.rx-label-check input{margin:3px 0}.rx-label-actions{display:flex;gap:6px;flex-wrap:wrap}.rx-label-save{justify-self:start;min-width:80px}.rx-label-dialog .rx-label-print{padding:12px;font-size:18px;font-weight:700;background:#1b6345;color:#fff;border-color:#1b6345}.rx-label-error{background:#fff0ee;color:#a52d2d;padding:8px}.rx-label-notice{background:#e5f3eb;padding:8px}.rx-label-message{padding:18px}.rx-label-message button{margin:8px 6px 0 0}.label-print-settings{padding:16px;max-width:720px;overflow:auto}.label-print-settings fieldset{margin:16px 0}@media(max-width:760px){.rx-label-body{grid-template-columns:1fr}}.rx-label-drug-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}.usage-page{display:flex;flex-direction:column;gap:var(--space-gap);height:calc(100dvh - 58px);min-height:0;padding:var(--space-panel);border:1px solid #dce6df;border-radius:8px;background:#fff}.usage-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.usage-toolbar label{display:flex;align-items:center;gap:8px;font-size:var(--font-label);font-weight:600}.usage-toolbar input:not([type=checkbox]),.usage-page button{min-height:34px;padding:5px 9px;border:1px solid #bdcec3;border-radius:5px;color:#263f31;background:#fff;font:inherit}.usage-toolbar .usage-simple-names{gap:5px;margin-left:6px;cursor:pointer;white-space:nowrap}.usage-simple-names input{width:16px;height:16px;margin:0;accent-color:#17624f}.usage-page button{cursor:pointer;font-size:var(--font-label)}.usage-page button:disabled{cursor:default;opacity:.5}.usage-toolbar .usage-search{margin-left:auto}.usage-search input{width:280px;font-weight:400}.usage-summary{display:flex;justify-content:space-between;gap:8px;padding:4px 2px;color:#53675b;font-size:var(--font-small)}.usage-summary strong{white-space:nowrap;color:#263f31}.usage-table-scroll{flex:1;min-height:0;overflow:auto;border:1px solid #dce6df;border-radius:6px}.usage-table{width:100%;min-width:1050px;border-spacing:0;table-layout:fixed;font-size:var(--font-data)}.usage-table .usage-code{width:115px}.usage-table .usage-count{width:100px}.usage-table .usage-quantity{width:190px}.usage-table .usage-unit{width:70px}.usage-table .usage-package{width:150px}.usage-table .usage-package-count{width:130px}.usage-table th{position:sticky;top:0;background:#edf4ef;text-align:left;font-size:var(--font-small);color:#435b4d}.usage-table th,.usage-table td{padding:8px 12px;border-bottom:1px solid #e5ebe7}.usage-table th{padding:4px 8px}.usage-table .usage-sort-button{display:flex;align-items:center;gap:4px;width:100%;padding:4px;border:0;color:inherit;background:transparent;font-size:var(--font-small);font-weight:700;white-space:nowrap}.usage-table .numeric .usage-sort-button{justify-content:flex-end}.usage-sort-button span{color:#687d71}.usage-table th[aria-sort=ascending],.usage-table th[aria-sort=descending]{color:#17624f}.usage-table .usage-sort-button:hover{background:#dcebe1}.usage-sort-button:focus-visible{outline:2px solid #17624f;outline-offset:-2px}.usage-table tbody tr{height:76px}.usage-table tbody tr:hover{background:#f5f8f6}.usage-table .numeric{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.usage-code-cell{font-size:var(--font-small);overflow-wrap:anywhere}.usage-drug-name{overflow-wrap:anywhere;font-weight:600}.usage-table .usage-medicine-link{border:0;padding:0;background:transparent;color:#17624f;font:inherit;text-align:left;overflow-wrap:anywhere}.usage-medicine-link:hover{text-decoration:underline}.usage-medicine-link:focus-visible{outline:2px solid #17624f;outline-offset:3px}.usage-table .usage-incomplete{color:#9b4032}.usage-table small{display:block;font-size:var(--font-small);font-weight:400}.usage-message{margin:auto;padding:20px;text-align:center}@media(max-width:760px){.usage-toolbar .usage-search{margin-left:0}.usage-summary{flex-wrap:wrap}}.demo-badge{font-size:13px;font-weight:700;color:#1d6245;background:#dceee3;border:1px solid #bddbc9;border-radius:20px;padding:4px 10px;white-space:nowrap}.demo-note{display:flex;align-items:center;gap:10px;min-height:32px;margin:0 0 6px;padding:5px 10px;background:#f9fbfa;border:1px solid #dce5df;border-radius:6px;color:#51675b;font-size:13px}.demo-note strong{color:#234b36}.demo-scenario{margin-left:auto;font-weight:600;color:#35624b}.date-controls select,.usage-toolbar select{width:100%;min-height:34px;font:inherit;border:1px solid #cbd8cf;border-radius:5px;background:#fff;padding:4px}.demo-dialog{width:min(700px,calc(100vw - 24px));max-height:88dvh;overflow:auto;border:1px solid #bbd0c2;border-radius:12px;padding:20px;color:#172b20;box-shadow:0 24px 100px #102c3040;font:inherit;background:#f8faf9}.demo-dialog::backdrop{background:#102c3066}.demo-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.demo-dialog h2{margin:0;font-size:20px}.demo-dialog button{padding:7px 14px;border:1px solid #b6cbbf;border-radius:6px;background:#fff;color:#234b36;cursor:pointer}.demo-dialog .demo-primary{color:#fff;background:#246349}.demo-guide li{margin-bottom:12px}.demo-label-list{display:grid;gap:18px}.demo-label-list figure{margin:0;border:1px solid #d6ded9;border-radius:8px;background:#e9eeeb;padding:14px}.demo-label-list figcaption{font-size:14px;font-weight:600;margin-bottom:12px}.demo-label-list img{display:block;width:100%;max-width:580px;height:auto;margin:auto;box-shadow:0 2px 7px #253d251f}.demo-dialog a{color:#286547}.demo-storage-notice{position:fixed;bottom:14px;left:50%;transform:translate(-50%);z-index:1000;background:#fff7d9;border:1px solid #dcc986;padding:12px;border-radius:8px;max-width:90vw;font-size:14px}.demo-storage-notice button{margin-left:10px}.demo-settings-info{padding:24px;max-width:880px;line-height:1.8}.demo-settings-info h2{margin:0 0 16px;font-size:20px}.demo-settings-info p{margin:0 0 16px}.demo-settings-info li{margin:8px 0}.patient-workspace,.prescription-panel,.label-settings,.medicine-settings-page,.usage-page{height:calc(100dvh - 96px)}.drug-code-cell{white-space:normal;overflow-wrap:anywhere;word-break:break-all}.server-status-actions{display:flex;align-items:center;gap:6px}.server-config-shortcut{font-size:14px;padding:5px 9px;border:1px solid #cad8cf;border-radius:6px;background:#fff;color:#315543;cursor:pointer}.demo-install{display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:7px 15px;border:1px solid #1c5c41;border-radius:7px;background:#216b4b;color:#fff;font-size:14px;font-weight:700;text-decoration:none;white-space:nowrap;box-shadow:0 2px 5px #173f241a}.demo-install:hover{background:#164f36}.demo-install:focus-visible,.demo-start:focus-visible{outline:3px solid #7aa890;outline-offset:3px}.program-guide{max-width:980px;margin:24px auto;padding:32px 36px}.program-guide-heading{max-width:760px}.program-guide-brand{color:#246547;font-size:18px;font-weight:800}.program-guide-heading h2{font-size:28px;line-height:1.45;margin:8px 0 12px;letter-spacing:-.03em}.program-guide-heading p{color:#52675b;line-height:1.75;margin-bottom:26px}.program-requirements h3,.program-steps h3{font-size:18px;margin:0 0 14px}.program-requirement-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.program-requirement-grid>div{padding:18px 20px;border:1px solid #c6dacc;background:#f1f7f3;border-radius:8px}.program-requirement-label{display:block;color:#4e6d5a;font-size:14px;margin-bottom:5px}.program-requirement-grid strong{display:block;color:#193e2b;font-size:22px}.program-requirement-grid p{margin:10px 0 0;line-height:1.75}.program-steps{margin-top:28px}.program-steps ol{padding:0;list-style:none;counter-reset:guide-step;display:grid;gap:12px}.program-steps li{counter-increment:guide-step;display:grid;grid-template-columns:28px 100px 1fr;gap:10px;align-items:start;line-height:1.6}.program-steps li:before{content:counter(guide-step);display:grid;place-items:center;background:#e5eee8;color:#315e44;border-radius:50%;width:26px;height:26px;font-size:14px;font-weight:700}.program-steps li span{color:#52675b}.program-demo-note{font-size:14px;color:#5b6e62;line-height:1.7;margin:20px 0 0}.program-guide-actions{display:flex;align-items:flex-start;gap:18px;border-top:1px solid #e0e8e3;margin-top:24px;padding-top:24px}.program-guide-actions .demo-install,.demo-start{padding:11px 22px;font-size:16px;min-height:48px}.demo-start{display:inline-flex;align-items:center;gap:18px;border:1px solid #7da18a;border-radius:7px;color:#205c3c;background:#fff;font-weight:700;cursor:pointer}.demo-start:hover{background:#f0f6f2}.program-store-caption{display:block;font-size:13px;color:#607367;margin-top:6px}@media(max-width:760px){.program-guide{margin:12px auto;padding:22px 18px}.program-guide-heading h2{font-size:24px}.program-requirement-grid{grid-template-columns:1fr}.program-steps li{grid-template-columns:26px 1fr}.program-steps li span{grid-column:2}.program-guide-actions{flex-wrap:wrap}.program-guide-actions>div,.program-guide-actions .demo-install,.demo-start{width:100%}}@media(max-width:760px){.topbar{height:auto;flex-wrap:wrap}.server-status-actions,.demo-note{flex-wrap:wrap}.prescription-panel{height:340px;min-height:0}.patient-workspace{height:700px;min-height:700px}.demo-dialog{padding:14px}.demo-badge{padding:3px 7px}}
