/* Adapted from the user-provided white / grey / blue reference screens. */
:root{--ink:#202124;--muted:#5f6368;--line:#e3e5e8;--surface:#fff;--ground:#fff;--blue:#0b57d0;--blue-dark:#0842a0;--blue-light:#d3e3fd;--danger:#b3261e;--warning:#795500;--success:#146c2e;--group:#f4f5f6;--soft-blue:#edf3fe;--radius:28px;color-scheme:light}
body{background:#fff;color:var(--ink);font-family:Arial,"Noto Sans SC","Microsoft YaHei",sans-serif;font-size:16px;line-height:1.55;-webkit-font-smoothing:antialiased}
button,input,select{font:inherit}button,a,input,select,summary{touch-action:manipulation}button:disabled{cursor:not-allowed}a{text-underline-offset:4px}h1,h2,h3{color:var(--ink);letter-spacing:-.025em;font-weight:500}[hidden]{display:none!important}
button,.button{min-height:48px;border-radius:999px;border:0;box-shadow:none;line-height:1.35;font-weight:500;transition:background-color .14s,color .14s;cursor:pointer}
button,.button.primary{background:var(--blue);color:#fff;padding:12px 22px}button:hover:not(:disabled),.button.primary:hover:not(:disabled){background:var(--blue-dark)}
button:disabled,.button.primary:disabled{background:#e3e5e8;color:#6b7075}.plain,.button.plain{background:transparent;color:var(--blue);padding:10px 16px}.plain:hover:not(:disabled),.button.plain:hover:not(:disabled){background:var(--soft-blue)}.secondary,.button.secondary{background:var(--blue-light);color:#0842a0}.secondary:hover:not(:disabled){background:#c2d7fc}
input:not([type=checkbox]):not([type=radio]),select{background:var(--group);border:1px solid transparent;border-radius:16px;color:var(--ink);min-width:0;min-height:52px;padding:12px 16px;font-size:16px;box-shadow:none}input::placeholder{color:#73777d}input:not([type=checkbox]):hover,select:hover{border-color:#c4c7cc}input:focus-visible,select:focus-visible,button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #a8c7fa;outline-offset:3px}input[aria-invalid=true]{border-color:var(--danger)!important}
.help,.note,small{color:var(--muted)}.notice{border:0;background:#fef3d6;color:#654b00;border-radius:20px}.field-error{color:var(--danger)}.danger{background:#fce8e6;color:var(--danger)}.danger:hover:not(:disabled){background:#fad2cf}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

*{box-sizing:border-box}body{margin:0}body>header,body>main{width:min(1280px,calc(100% - 64px));margin-inline:auto}body>header{padding:36px 0 32px;display:flex;justify-content:space-between;align-items:center;gap:20px;border:0;margin-bottom:0}h1{margin:8px 0 0;font-size:30px;font-weight:500}h2{font-size:24px;font-weight:500;margin:0}.eyebrow{font-size:13px;color:var(--muted);letter-spacing:0;margin:0}.toolbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.toolbar-actions button{white-space:nowrap}.toolbar-actions .plain{background:var(--group);color:var(--ink)}.login{max-width:480px;margin:64px auto;background:var(--group);padding:40px;border-radius:32px;border:0;box-shadow:none}.login h2{font-size:28px}.login p{font-size:14px;color:var(--muted)}.login form{display:grid;gap:10px;margin-top:28px}.login label{font-size:14px;color:#444746}.login input{background:#fff!important;width:100%}.login button{margin-top:12px;min-height:52px}.ledger-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 24px}.format-chip{padding:8px 14px;border-radius:999px;background:var(--soft-blue);color:var(--blue);font-size:13px}.toolbar{padding:24px;border-radius:28px;background:var(--group);border:0;display:block}.filters{display:grid;grid-template-columns:1fr 1.5fr 1fr 1.1fr 1.1fr 1.4fr;gap:16px;align-items:end}.filter-field{min-width:0;display:flex;flex-direction:column;gap:8px}.filters label{font-size:12px;font-weight:500;color:var(--muted)}.filters input,.filters select{width:100%;height:52px;background:#fff!important;border-radius:16px!important}.filters .query-field input{border-radius:999px!important}.filters>button{justify-self:start}.filters>button[type=submit]{grid-column:5}.toolbar>.toolbar-actions{margin-top:20px;padding-top:20px;border-top:1px solid var(--line);justify-content:flex-end}.toolbar>.toolbar-actions .plain{background:#fff}.note{font-size:13px;line-height:1.7;color:var(--muted)}#source-status{padding:16px 4px 0;margin:0}#totals{font-size:14px;color:#3c4043;font-weight:400;margin:16px 4px}#message{font-size:13px;color:var(--muted);margin:12px 4px 20px}.table-wrap{border:0;border-radius:24px;overflow-x:auto;background:var(--group)}table{width:100%;border-collapse:collapse;min-width:1050px}thead{background:#edf0f3;color:#444746}th{font-size:12px;text-align:left;font-weight:500;padding:18px 16px;white-space:nowrap;border:0}td{padding:20px 16px;border:0;border-bottom:1px solid var(--line);font-size:14px;vertical-align:top;overflow-wrap:anywhere}td:first-child{font-weight:500;color:var(--blue);font-variant-numeric:tabular-nums}td:nth-child(2){font-weight:500;font-variant-numeric:tabular-nums}td small{display:block;font-size:11px;line-height:1.6;margin-top:6px;font-weight:400}td .plain{font-size:12px;min-height:44px;padding:8px 12px;white-space:nowrap;background:#e7edf7;color:var(--blue)}tr.review{background:#fff8e9}tr.voided td{color:var(--muted)}#more{display:block;margin:20px auto;background:var(--soft-blue);color:var(--blue)}#workspace>.note:last-child{padding:8px 4px 32px;max-width:900px}
dialog{border:0;border-radius:28px;background:#fff;color:var(--ink);padding:32px;width:min(780px,calc(100vw - 48px));max-height:90vh;box-shadow:0 12px 48px #20212426}dialog::backdrop{background:#20212466}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.dialog-head h2{font-size:24px}.dialog-head .plain{background:var(--group);color:var(--ink)}dialog h3{font-size:18px;font-weight:500;margin:28px 0 16px}.edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}dialog label{font-size:13px;color:var(--muted);display:flex;flex-direction:column;gap:8px}dialog input,dialog select{width:100%;min-height:52px}dialog .check{flex-direction:row;align-items:center;margin:24px 0 16px}dialog .check input{width:20px;height:20px;min-height:20px}#save-edit{width:100%;min-height:52px;margin-top:20px}#edit-message{font-size:13px}.user-row{border-bottom:1px solid var(--line);padding:16px 0;gap:12px}.user-row .plain{background:var(--group);font-size:13px}.user-row select{width:auto}#edit-history,#audit-events{padding:16px 24px 16px 40px;background:var(--group);border-radius:20px;font-size:13px}#edit-history:empty{display:none}#audit-events li{padding:8px 0}#original-label,#record-times{background:var(--group);padding:12px 16px;border-radius:16px}#edit-form>.note{font-size:12px}#refresh-source{background:var(--soft-blue);font-size:13px}
@media(max-width:1100px){.filters{grid-template-columns:repeat(3,minmax(0,1fr))}.filters>button[type=submit]{grid-column:auto}}
@media(max-width:700px){body>header,body>main{width:calc(100% - 32px)}body>header{align-items:flex-start;padding:24px 0;gap:8px}h1{font-size:24px}.eyebrow{font-size:11px}body>header>.toolbar-actions{gap:0;justify-content:flex-end;max-width:140px}body>header .plain{padding:8px 12px;min-height:40px;font-size:12px;background:transparent}.ledger-section-heading{margin:8px 0 20px}.ledger-section-heading h2{font-size:22px}.format-chip{font-size:11px}.toolbar{padding:20px 16px;border-radius:26px}.filters{grid-template-columns:1fr 1fr;gap:14px 12px}.query-field{grid-column:1/-1;grid-row:1}.filters input,.filters select{font-size:14px;padding:10px 12px}.filters label{font-size:12px}.filters>button{width:100%;justify-self:stretch;padding-inline:12px}.toolbar>.toolbar-actions{justify-content:space-between;margin-top:16px;padding-top:16px}.toolbar>.toolbar-actions button{font-size:14px}#totals{font-size:13px;line-height:1.9}.table-wrap{background:transparent;overflow:visible;border-radius:0}table,tbody{display:block;min-width:0;width:100%}thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px;padding:20px;margin-bottom:16px;background:var(--group);border-radius:24px}td{display:block;min-width:0;padding:0;border:0;font-size:15px}td::before{display:block;margin-bottom:6px;font-size:11px;font-weight:400;color:var(--muted)}td:nth-child(1)::before{content:'编号'}td:nth-child(2)::before{content:'住院号'}td:nth-child(3)::before{content:'诊断'}td:nth-child(4)::before{content:'侧别'}td:nth-child(5)::before{content:'病程'}td:nth-child(6)::before{content:'年龄'}td:nth-child(7)::before{content:'疼痛部位'}td:nth-child(8)::before{content:'标签时间'}td:nth-child(9)::before{content:'联系信息'}td:nth-child(10)::before{content:'记录操作'}td:nth-child(3),td:nth-child(7),td:nth-child(8){grid-column:1/-1}td:nth-child(1),td:nth-child(2){font-size:18px}td .plain{width:100%;min-height:48px;background:#e3ebf8}td small{font-size:12px}.login{padding:28px 24px;margin:36px auto;border-radius:28px}.login h2{font-size:26px}dialog{margin:auto 0 0;width:100%;max-width:100%;max-height:92vh;max-height:92dvh;padding:24px 20px;border-radius:28px 28px 0 0}.dialog-head h2{font-size:22px}.edit-grid{grid-template-columns:1fr}.user-row{flex-wrap:wrap}.user-row select{max-width:100%}}

/* One product shell, shared dimensions and navigation with the print workspace. */
body>.topbar{height:104px;padding:0;align-items:center;margin-bottom:0}.brand{display:flex;align-items:center;gap:14px}.brand>svg{box-sizing:content-box;width:26px;height:26px;padding:12px;background:var(--soft-blue);border-radius:18px;color:var(--blue)}.brand h1{margin:0;font-size:28px;font-weight:500}.product-layout{display:grid;grid-template-columns:172px minmax(0,1fr);gap:32px;align-items:start}.product-content{min-width:0}.workspace-nav{position:sticky;top:24px;display:flex;flex-direction:column;gap:8px;padding-top:6px}.nav-item{display:flex;align-items:center;gap:14px;min-height:56px;padding:12px 18px;border-radius:999px;color:#444746;text-decoration:none;font-size:15px;font-weight:500}.nav-item svg{width:22px;height:22px;flex:none}.nav-item:hover{background:var(--group)}.nav-item[aria-current=page]{background:var(--blue-light);color:#0842a0}
@media(max-width:1150px){.product-layout{grid-template-columns:1fr;gap:20px}.workspace-nav{position:static;flex-direction:row;gap:8px;padding:0}.nav-item{min-height:48px;padding:10px 20px}}
@media(max-width:700px){body>.topbar{height:88px;padding:0;align-items:center}.brand{gap:10px}.brand>svg{padding:10px;width:22px;height:22px;border-radius:16px}.brand h1{font-size:23px}.product-layout{padding-bottom:104px}.workspace-nav{position:fixed;z-index:30;left:0;right:0;top:auto;bottom:0;height:calc(80px + env(safe-area-inset-bottom));min-height:80px;padding:8px 16px max(8px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid #edf0f2;justify-content:space-around;gap:0}.nav-item{flex:1;flex-direction:column;justify-content:center;gap:4px;min-height:64px;border-radius:20px;padding:8px 4px;font-size:12px}.nav-item svg{width:23px;height:23px}.nav-item[aria-current=page]{background:var(--soft-blue)}}

.danger{color:#b3261e!important}.toolbar-actions a{display:inline-flex;align-items:center;padding:12px 20px;border-radius:999px;text-decoration:none}.check input{width:auto!important;height:auto!important}

/* Phones and small tablets share the App's bottom navigation. */
@media(max-width:1150px){.product-layout{padding-bottom:104px}.workspace-nav{position:fixed;z-index:30;left:0;right:0;top:auto;bottom:0;height:calc(80px + env(safe-area-inset-bottom));min-height:80px;padding:8px 16px max(8px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid #edf0f2;justify-content:space-around;gap:0}.nav-item{flex:1;flex-direction:column;justify-content:center;gap:4px;min-height:64px;border-radius:20px;padding:8px 4px;font-size:12px}.nav-item svg{width:23px;height:23px}.nav-item[aria-current=page]{background:var(--soft-blue)}}
