:root{font:16px/1.5 system-ui,Microsoft JhengHei,sans-serif;color:#1b3039;background:#f2f5f7;--ink: #1b3039;--muted: #52646e;--line: #d6e0e5;--brand: #126657;--sidebar: #162f38}*{box-sizing:border-box}body,h1,h2,h3,p{margin:0}h1{font-size:clamp(1.55rem,3vw,2rem);line-height:1.2}h2{font-size:1.2rem}h3{font-size:1.05rem}label{display:block;margin:0 0 .35rem;font-weight:650}input,button,select{font:inherit}input,select{max-width:100%;min-width:0}input:not([type=file],[type=checkbox]),select{min-height:2.65rem;padding:.5rem .7rem;border:1px solid #9eafb7;border-radius:.45rem;background:#fff;color:var(--ink)}input[type=file]::file-selector-button{margin-right:.5rem;padding:.45rem .65rem;border:1px solid #9eafb7;border-radius:.4rem;color:var(--ink);background:#fff;cursor:pointer}button{min-height:2.65rem;padding:.45rem .85rem;color:#fff;background:var(--brand);border:1px solid transparent;border-radius:.45rem;font-weight:650;cursor:pointer}button:hover:not(:disabled){filter:brightness(.91)}button:disabled{color:#53636b;background:#e4e9ec;cursor:default}:focus-visible{outline:2px solid #178f7b;outline-offset:3px}.secondary{color:#184b47;background:#e8f2ef}.subtle{color:var(--muted)}.form-row{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem}.workspace{display:grid;grid-template-columns:14.5rem minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;display:flex;flex-direction:column;height:100vh;padding:1.5rem 1rem 1rem;color:#f3f9fa;background:var(--sidebar)}.brand{display:flex;gap:.75rem;align-items:center;margin:.15rem .35rem 2rem}.brand-mark{display:grid;place-items:center;width:2.5rem;height:2.5rem;border-radius:.6rem;background:#caefe4;color:#164a43;font-size:1.25rem;font-weight:760}.brand strong,.brand div span{display:block}.brand strong{font-size:1.12rem}.brand div span,.account-role{color:#bfd1d7;font-size:.82rem}.sidebar nav{display:grid;gap:.4rem}.sidebar nav button,.sidebar-account button{color:#eaf4f6;background:transparent;text-align:left}.sidebar nav button[aria-current=page]{border-color:#527f83;color:#fff;background:#255052}.sidebar button:hover:not(:disabled){background:#255052;filter:none}.sidebar button:disabled{opacity:.65}.nav-icon{margin-right:.35rem;font-size:1.1rem}.sidebar-account{display:grid;gap:.25rem;padding:1rem .35rem 0;margin-top:auto;border-top:1px solid #42606a;overflow-wrap:anywhere}.sidebar-account button{width:fit-content;margin-top:.45rem;border-color:#52747d}.workspace-main{width:min(100%,96rem);padding:clamp(1.1rem,3vw,2.25rem);margin:0 auto}.workspace-header,.review-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.65rem 1rem;margin-bottom:1.5rem}.erp-status{color:var(--muted);font-size:.85rem}.notice{padding:.75rem 1rem;margin-bottom:1rem;border:1px solid #a6c6bc;border-radius:.55rem;background:#eaf5f1}.status-filters{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.8rem;margin-bottom:1.1rem}.status-filter{text-align:left;padding:.75rem 1rem;color:var(--ink);background:#fff;border-color:var(--line);border-radius:.65rem}.status-filter span{display:block;color:var(--muted);font-size:.88rem}.status-filter strong{display:block;font-size:1.55rem;font-variant-numeric:tabular-nums}.status-filter[aria-pressed=true]{border-color:var(--brand);background:#e6f4f0}.surface,.operators{min-width:0;border:1px solid var(--line);border-radius:.75rem;background:#fff}.list-heading,.list-filters,.upload-panel{padding:.95rem 1.2rem}.list-heading,.upload-panel{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.75rem}.upload-panel{align-items:end;background:#eef7f4;border-block:1px solid var(--line)}.upload-panel .subtle{margin-top:.4rem;font-size:.88rem}.list-filters{display:grid;grid-template-columns:minmax(0,24rem) minmax(0,11rem);gap:.65rem;padding-top:.25rem}.list-filters input,.list-filters select{width:100%}.table-scroll{overflow-x:auto}table{width:100%;border-spacing:0;text-align:left}th,td{padding:.75rem 1rem;overflow-wrap:anywhere}thead{color:#435965;background:#f4f7f8}tbody td{border-top:1px solid #e0e8eb}tbody tr:hover{background:#f8fbfb}.document-table th:first-child,.document-table th:nth-child(3),.document-table th:last-child{width:1%;white-space:nowrap}.document-table td:last-child button{white-space:nowrap}.document-actions{display:flex;align-items:center;gap:.4rem}.danger{color:#8c2832;background:#fff;border-color:#e5aeb4}.danger:hover:not(:disabled){background:#fbe9ec}.document-number{color:var(--muted);font-variant-numeric:tabular-nums}.filename{font-weight:630}.state-badge{display:inline-block;white-space:nowrap;padding:.25rem .55rem;border-radius:.35rem;color:#3c5360;background:#eaf0f3;font-size:.83rem;font-weight:650}.state-badge[data-state=needs_review]{color:#744807;background:#fff1d5}.state-badge[data-state=processing]{color:#245586;background:#e7f1fb}.state-badge[data-state=failed]{color:#8c2832;background:#fbe9ec}.empty-state{padding:1.35rem 1rem;color:var(--muted);text-align:center}.review-heading{justify-content:flex-start}.review-heading h2{min-width:0;overflow-wrap:anywhere}.review{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:1rem;align-items:start}.review-column{padding:1rem}.review-toolbar h3{margin-right:auto}.review-column .subtle{margin-top:.35rem}.pdf{position:relative;line-height:0;margin-top:.75rem;background:#eef2f4}.pdf canvas{width:100%;height:auto}.pdf.selecting canvas{touch-action:none;cursor:crosshair}.selection{position:absolute;pointer-events:none;border:2px solid #ab520b;background:#df7f232b}.quantity-guide{position:absolute;pointer-events:none;border:2px dashed #97600b;background:#ffcb6026}.annotation-form{margin-top:.7rem;padding:.85rem;border:1px solid #b8d7cf;border-radius:.55rem;background:#edf7f4}.annotation-form label{margin-top:.65rem}.annotation-form input:not([type=checkbox]){display:block;width:100%}.annotation-form .annotation-choice{display:flex;align-items:center;gap:.55rem;width:fit-content;cursor:pointer}.annotation-choice input{width:1.1rem;height:1.1rem;margin:0;accent-color:var(--brand)}.annotation-form button{margin-top:.75rem}.review-item{display:grid;gap:.65rem;padding:.85rem;margin-top:.65rem;border:1px solid var(--line);border-radius:.6rem;overflow-wrap:anywhere}.review-item:first-of-type{margin-top:.8rem}.review-item.is-active{border-color:#78a89c;background:#f8fcfa}.review-item-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem}.state-badge[data-state=reviewed],.state-badge[data-state=quantity_reviewed],.state-badge[data-state=quantity_blank]{color:#165b49;background:#e1f2ea}.recognition-fields,.quantity-panel dl{margin:0;display:grid;gap:.35rem}.recognition-fields>div,.quantity-panel dl>div{display:grid;grid-template-columns:minmax(5.5rem,28%) minmax(0,1fr);gap:.5rem}.recognition-fields dt,.quantity-panel dt{color:var(--muted);font-size:.9rem}.recognition-fields dd,.quantity-panel dd{margin:0}.quantity-panel{padding:.65rem .75rem;border-radius:.45rem;background:#eef4f6}.quantity-panel.needs-attention{background:#fff3d9}.quantity-panel dd{font-weight:700;font-variant-numeric:tabular-nums}.quantity-panel p{margin-top:.3rem;color:#69440b;font-size:.88rem}.raw-recognition{color:var(--muted);font-size:.86rem}.raw-recognition summary{cursor:pointer;width:fit-content}.raw-recognition p{margin-top:.35rem}.review-action{justify-self:start}.operators{padding:1.1rem}.operators .table-scroll{margin-top:1rem}.section-heading h2{margin-right:auto}.panel{padding:1rem;margin:.85rem 0;background:#f6faf9;border:1px solid var(--line);border-radius:.65rem}.panel p{margin-bottom:.65rem}.operator-form{max-width:38rem}.operator-form input:not([type=checkbox]),.operator-form select{width:100%;margin-bottom:.85rem}.active-field{margin-bottom:.85rem}.login-page{display:grid;min-height:100vh;padding:1.25rem;place-items:center}.login-card{width:min(100%,29rem);padding:clamp(1.4rem,5vw,2.4rem);background:#fff;border:1px solid var(--line);border-top:.3rem solid var(--brand);border-radius:.9rem;box-shadow:0 12px 32px #243f4b15}.login-card p{color:var(--muted);margin:.55rem 0 1.45rem}.login-card input,.login-card button{width:100%;margin-bottom:1rem}.login-card button{margin-bottom:0}.login-card [role=alert]{color:#a22326;margin:1rem 0 0}@media(max-width:70rem){.review{grid-template-columns:1fr}}@media(max-width:48rem){.workspace{grid-template-columns:minmax(0,1fr)}.sidebar{position:static;height:auto;padding:.8rem}.brand{margin:0 .2rem .6rem}.sidebar nav{display:flex;flex-wrap:wrap}.sidebar-account{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;margin-top:.6rem;padding-top:.5rem}.sidebar-account button{margin:0 0 0 auto}.status-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}.list-heading,.list-filters,.upload-panel{padding-inline:.75rem}th,td{padding:.6rem .5rem}}@media(max-width:29rem){.document-table th:first-child,.document-table td:first-child{display:none}.list-filters{grid-template-columns:1fr}}
