:root{color-scheme:light;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;--ink: #211922;--muted: #665c68;--soft-ink: #544753;--canvas: #f8f7fa;--line: #e9e4ea;--brand: #aa1535;--brand-dark: #8d1030;--brand-text: #901733;--pink: #faeaf0;--surface: #fff;--surface-subtle: #f8f5f8;--hover: #f8f1f6;--accent-line: #e8d0dd;--control-line: #d7ccd9;--focus: #116c9d;font-size:16px}:root[data-theme=dark]{color-scheme:dark;--ink: #f4edf4;--muted: #c4b5c3;--soft-ink: #ded0dd;--canvas: #171419;--surface: #211c23;--surface-subtle: #29222b;--hover: #322832;--line: #3d323e;--brand: #b8254a;--brand-dark: #a31b3d;--brand-text: #ffa9c0;--pink: #3c2430;--accent-line: #674653;--control-line: #726070;--focus: #8fd2ff}*,*:before,*:after{box-sizing:border-box}body{margin:0;min-width:320px;background:var(--canvas);color:var(--ink)}button,input,select,textarea{font:inherit}button{cursor:pointer}button,input,select,textarea,a{-webkit-tap-highlight-color:transparent}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid var(--focus);outline-offset:3px}main:focus{outline:none}button:disabled{cursor:not-allowed;opacity:.58}svg{flex:none;vertical-align:middle}h1,h2,h3,p{margin:0}.sr-only,.skip:not(:focus){position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip:focus{position:fixed;z-index:30;top:.75rem;left:.75rem;padding:.75rem;background:var(--surface);color:var(--brand-text)}.shell{display:grid;grid-template-columns:245px minmax(0,1fr);grid-template-rows:auto 1fr;min-height:100vh}.shell.public-shell{grid-template-columns:minmax(0,1fr)}.public-shell .sidebar{display:none}.public-shell .workspace,.public-shell .topbar{grid-column:1}.public-shell .topbar{padding-inline:max(1rem,calc((100vw - 1132px)/2))}.public-shell main{max-width:1212px}.public-brand,.public-nav{display:flex;align-items:center;gap:.68rem}.public-brand{color:var(--ink);font-size:1.24rem;text-decoration:none;letter-spacing:-.045em}.public-nav{flex-wrap:wrap;justify-content:end}.public-nav .appearance-option{width:auto}.public-nav>.button{min-height:42px}.public-hero{display:grid;min-height:260px;align-items:center;border-radius:16px;padding:clamp(1.5rem,4.1vw,3.1rem);isolation:isolate;background:linear-gradient(90deg,#3b1428 10%,#521934ed 56%,#52193478),url(assets/manufacturing.jpg) center 44% / cover;color:#fff;margin-bottom:1.3rem}.public-hero img{display:block;object-fit:contain;width:158px;height:31px;background:#fff;box-sizing:content-box;padding:.34rem .55rem;border-radius:5px}.public-hero h1{font-size:clamp(2rem,5.1vw,3.65rem);margin:.85rem 0 .5rem}.public-hero p{max-width:34rem;color:#fff2f8;line-height:1.58}.verify-actions{display:flex;flex-wrap:wrap;gap:.55rem}.verify-actions .button{min-height:44px}.public-verification .verification-card,.public-verification .verification-help{padding:clamp(1.12rem,2.1vw,1.65rem)}.public-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1rem}.public-info-card{padding:clamp(1.12rem,2.1vw,1.65rem)}.public-info-card h2{margin:.72rem 0 .48rem;font-size:1.25rem;letter-spacing:-.025em}.public-info-card p,.public-info-card ul{color:var(--muted);line-height:1.55}.public-info-card ul{margin:.65rem 0 0;padding-inline-start:1.2rem}.public-info-card li+li{margin-top:.2rem}.public-info-links{display:flex;gap:.5rem 1rem;flex-wrap:wrap;margin-top:.8rem}.public-info-links a{color:var(--brand-text);font-weight:650;text-underline-offset:.18em}.camera-body p{color:var(--muted);line-height:1.5}.camera-body video{display:block;background:#171419;width:100%;max-height:48vh;margin:.8rem 0;border-radius:9px}.camera-body video[hidden]{display:none}.camera-body [role=status]{margin-top:.6rem}.audit-fields{margin-top:.55rem;border:1px solid var(--line);border-radius:8px;overflow:hidden}.audit-fields summary{padding:.66rem .8rem;cursor:pointer;overflow-wrap:anywhere}.audit-fields td{white-space:normal;overflow-wrap:anywhere}.audit-explainer{margin:0 0 1rem}.audit-explainer summary{cursor:pointer;padding:.8rem 1rem;font-weight:680}.audit-explainer ol{margin:0 0 .7rem;padding-inline-start:1.25rem;color:var(--soft-ink)}.audit-explainer li+li{margin-top:.45rem}@media(max-width:480px){.public-shell .topbar{gap:.5rem;padding-inline:.78rem}.public-nav{gap:.36rem}.public-nav .appearance-option{padding-inline:.25rem}.public-nav .appearance-option>svg{display:none}.public-nav .appearance-option>span:first-of-type{position:absolute;clip-path:inset(50%)}.public-hero{min-height:0}}.sidebar{grid-area:1 / 1 / 3 / 2;background:var(--surface);display:flex;flex-direction:column;border-right:1px solid var(--line);padding:1.64rem 1rem .95rem}.brand{display:flex;flex-direction:column;gap:.87rem;border:0;background:transparent;text-align:left;margin:0 .48rem 1.9rem;padding:0 .4rem .98rem;border-bottom:1px solid var(--line);color:var(--ink)}.brand img{object-fit:contain;object-position:left center;max-width:100%}.brand-name{display:flex;align-items:center;gap:.55rem;font-size:1.35rem;font-weight:760;letter-spacing:-.045em}.brand-mark{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:var(--brand);color:#fff}.nav-group+.nav-group{margin-top:1.47rem}.nav-group h2{margin:0 0 .47rem .79rem;text-transform:uppercase;letter-spacing:.08em;font-size:.69rem;font-weight:750;color:var(--muted)}.nav-link{display:flex;gap:.66rem;align-items:center;width:100%;min-height:43px;background:transparent;border:1px solid transparent;border-radius:8px;text-align:left;color:var(--soft-ink);font-size:.875rem;font-weight:580;padding:.55rem .69rem;margin:.12rem 0}.nav-link svg{color:var(--muted)}.nav-link:hover{background:var(--hover);color:var(--ink)}.nav-link.selected{background:var(--pink);color:var(--brand-text);font-weight:720}.nav-link.selected svg{color:var(--brand-text)}.sidebar-bottom{padding-top:1rem}.workspace{grid-area:2 / 2;min-width:0;display:flex;flex-direction:column}.topbar{grid-area:1 / 2;position:relative;z-index:6;min-height:70px;background:var(--surface);border-bottom:1px solid var(--line);padding:.6rem clamp(1rem,2.68vw,2.6rem);display:flex;align-items:center;justify-content:space-between;gap:1rem}.breadcrumbs,.top-actions{display:flex;align-items:center;gap:.72rem;min-width:0}.top-actions{flex:0 0 auto}.breadcrumbs{color:var(--muted);font-size:.89rem}.breadcrumbs strong{color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:690}.role-select{display:flex;align-items:center;position:relative;color:var(--brand-text);min-width:0;background:var(--pink);border:1px solid var(--accent-line);border-radius:8px}.role-select>svg:first-child{position:absolute;left:.62rem;pointer-events:none}.role-select>svg:last-child{position:absolute;right:.55rem;pointer-events:none}.role-select select{appearance:none;border:0;background:transparent;width:100%;padding:.52rem 1.71rem .52rem 2rem;color:inherit;border-radius:inherit;font-size:.84rem;font-weight:690;cursor:pointer}.profile-divider{margin:0 .05rem 0 .2rem;height:30px;border-left:1px solid var(--line)}.avatar{width:36px;height:36px;flex:0 0 36px;display:grid;place-items:center;border-radius:50%;background:#eee3ef;color:#633450;font-size:.75rem;font-weight:780}.profile-text{max-width:10.5rem;line-height:1.22;margin-left:-.32rem;white-space:nowrap}.profile-text strong,.profile-text small{display:block;overflow:hidden;text-overflow:ellipsis}.profile-text strong{font-size:.82rem}.profile-text small{margin-top:.18rem;color:var(--muted);font-size:.72rem}.profile-control{position:relative}.profile-button{display:flex;align-items:center;gap:.65rem;min-height:44px;background:transparent;border:0;border-radius:8px;color:var(--ink);text-align:left;padding:.2rem .38rem}.profile-button:hover,.profile-button[aria-expanded=true]{background:var(--hover)}.profile-button>svg{color:var(--muted)}.profile-menu{position:absolute;top:calc(100% + .62rem);inset-inline-end:0;width:min(17.5rem,calc(100vw - 2rem));padding:.34rem;background:var(--surface);border:1px solid var(--line);border-radius:11px;box-shadow:0 12px 35px #24112433}.profile-menu-head{padding:.53rem .62rem .63rem;margin-bottom:.28rem;border-bottom:1px solid var(--line)}.profile-menu-head strong,.profile-menu-head small,.profile-summary strong,.profile-summary small{display:block}.profile-menu-head strong{font-size:.96rem}.profile-menu-head small,.profile-summary small{margin-top:.18rem;color:var(--muted);font-size:.79rem}.profile-option,.appearance-option{display:flex;align-items:center;gap:.59rem;min-height:42px;width:100%;border:0;border-radius:7px;padding:.45rem .62rem;color:var(--ink);background:transparent;text-align:left;font-size:.88rem;font-weight:650}.profile-option:not(:disabled):hover,.appearance-option:hover{background:var(--hover)}.profile-option>svg,.appearance-option>svg{color:var(--muted)}.profile-menu-footer{border-top:1px solid var(--line);margin-top:.28rem;padding-top:.27rem}.appearance-select{position:relative;margin-inline-start:auto}.appearance-select select{appearance:none;min-height:31px;color:var(--ink);background:var(--surface-subtle);border:1px solid var(--control-line);border-radius:6px;padding:.26rem 1.38rem .26rem .47rem;font-size:.8rem;font-weight:620;cursor:pointer}.appearance-select svg{position:absolute;right:.42rem;top:50%;transform:translateY(-50%);pointer-events:none;color:var(--muted)}.profile-summary{display:flex;align-items:center;gap:.72rem;margin-bottom:.85rem}.profile-summary .avatar{width:46px;height:46px;flex-basis:46px;font-size:.92rem}.mobile-menu{display:none!important}main{width:100%;max-width:1670px;margin:0 auto;padding:1.75rem clamp(1rem,2.68vw,2.6rem) 2.7rem;flex:1}.page-heading,.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem}.page-heading{margin-bottom:1.28rem}h1{font-size:clamp(1.65rem,2.5vw,2.4rem);line-height:1.16;letter-spacing:-.049em;font-weight:780}.page-heading p{color:var(--muted);margin-top:.34rem;line-height:1.5}.date-tag{white-space:nowrap;border:1px solid var(--line);border-radius:8px;display:flex;align-items:center;gap:.51rem;padding:.52rem .68rem;background:var(--surface);color:var(--soft-ink);font-size:.83rem;font-weight:620}.button{display:inline-flex;justify-content:center;align-items:center;gap:.46rem;min-height:39px;padding:.55rem .77rem;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);white-space:nowrap;text-decoration:none;font-size:.85rem;font-weight:670;line-height:1.25}.button:hover{background:var(--hover);border-color:var(--accent-line)}.button.primary{background:var(--brand);color:#fff;border-color:var(--brand)}.button.primary:hover{background:var(--brand-dark);border-color:var(--brand-text)}.button.light{background:#fff;color:#771936;border-color:#fff}.button.light:hover{background:#fce9f0}.button.hero-outline{color:#fff;background:#64304b5e;border-color:#ffffff63}.button.hero-outline:hover{background:#ffffff26;border-color:#fff}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.9rem;margin-top:1.02rem}.metric{min-width:0;text-align:left;display:flex;flex-direction:column;align-items:flex-start;border:1px solid var(--line);background:var(--surface);border-radius:11px;padding:.75rem .85rem .79rem;color:var(--ink)}.metric:hover{border-color:var(--accent-line);box-shadow:0 3px 12px #43102c0b}.metric-top{display:flex;align-items:center;gap:.53rem;font-weight:660;font-size:.87rem;color:#544755}.tile-icon{display:grid;place-items:center;width:35px;height:35px;border-radius:8px;flex:0 0 35px;background:#f1edf3;color:#604968}.rose{color:#a21535;background:#fae8ee}.blue{color:#186284;background:#e5f2f8}.green{color:#1c694d;background:#e7f4ed}.amber{color:#905319;background:#fcf0df}.violet{color:#704798;background:#f2e9fa}.metric>strong{line-height:1.04;font-size:1.85rem;letter-spacing:-.045em;margin:.46rem 0 .24rem}.metric>small{color:var(--muted);font-size:.77rem;line-height:1.4}.panel{background:var(--surface);border:1px solid var(--line);border-radius:11px;min-width:0;overflow:hidden}.panel-heading{padding:1rem 1.06rem .87rem}.panel-heading h2,.verification-grid h2{font-size:1.13rem;letter-spacing:-.028em;font-weight:760;line-height:1.3}.panel-heading p{margin-top:.27rem;color:var(--muted);font-size:.84rem;line-height:1.4}.table-scroll{position:relative;width:100%;overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:.85rem}th{color:var(--muted);background:var(--surface-subtle);font-weight:690;font-size:.76rem;white-space:nowrap}th,td{padding:.57rem .72rem;border-top:1px solid var(--line)}th:first-child,td:first-child{padding-left:1.06rem}th:last-child,td:last-child{padding-right:1.06rem}td{height:52px;color:var(--soft-ink)}tr:hover td{background:var(--hover)}.row-name{display:flex;flex-direction:column;align-items:flex-start;gap:.11rem;min-width:0}.row-name strong{color:var(--ink);font-size:.87rem;font-weight:700}.row-name small{color:var(--muted);font-size:.74rem}.medicine-cell{align-items:center;display:flex;gap:.55rem;min-width:122px}.product-icon{display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;border-radius:7px;background:#f6edf3;color:#95536c}.serial{font-family:SFMono-Regular,Consolas,monospace;font-size:.79rem;white-space:nowrap}.nowrap{white-space:nowrap}.text-button{display:inline;color:var(--brand-text);background:none;border:0;border-radius:4px;padding:.11rem 0;text-align:left;white-space:nowrap;font-weight:710}.text-button:hover{text-decoration:underline}.medicine-cell .text-button{color:var(--ink);font-size:.87rem}.row-actions{display:flex;gap:.7rem}.badge{display:inline-flex;align-items:center;gap:.34rem;border-radius:20px;white-space:nowrap;padding:.23rem .46rem;background:#f0ebf2;color:#66556b;font-size:.73rem;line-height:1.1;font-weight:690}.badge>span{display:inline-block;width:5px;height:5px;flex:0 0 5px;border-radius:50%;background:currentColor}.badge.active,.badge.received,.badge.dispensed,.badge.fulfilled{background:#e7f4ec;color:#266346}.badge.in_transit,.badge.allocated,.badge.placed{background:#e6f1fb;color:#215a93}.badge.recalled,.badge.revoked{background:#fae8ee;color:#9d203d}.badge.expired,.badge.quarantine,.badge.discrepancy,.badge.suspended{background:#fcf0de;color:#89551d}.tag{display:inline-block;padding:.23rem .45rem;border-radius:5px;background:#f4edf4;color:#5d4763;font-weight:680;font-size:.76rem}.footer{display:flex;justify-content:space-between;gap:.5rem;padding:.9rem clamp(1rem,2.68vw,2.6rem);color:var(--muted);border-top:1px solid var(--line);font-size:.76rem}.tabs{display:flex;gap:.35rem;border-bottom:1px solid var(--line);margin-bottom:1rem;overflow-x:auto}.tabs button{flex:none;background:transparent;border:0;border-bottom:2px solid transparent;color:var(--muted);padding:.64rem .9rem .66rem;font-size:.89rem;font-weight:650}.tabs button:hover{color:var(--brand-text)}.tabs .active{border-color:var(--brand);color:var(--brand-text)}.secondary-panel{margin-top:1rem}.module-panel .panel-heading{padding-top:1.13rem}.controls{padding:.13rem 1.06rem .94rem;display:flex;align-items:center;gap:.58rem;flex-wrap:wrap}.search-box,.select-box{position:relative;display:flex;align-items:center;color:var(--muted)}.search-box{flex:0 1 320px}.search-box svg{left:.65rem;position:absolute;pointer-events:none}.search-box input,.select-box select{width:100%;min-height:41px;border:1px solid var(--control-line);border-radius:8px;padding:.51rem .65rem .51rem 2rem;color:var(--ink);background:var(--surface);font-size:.9rem}.select-box select{appearance:none;padding:.51rem 2rem .51rem .63rem;min-width:144px;cursor:pointer}.select-box svg,.field-select svg{position:absolute;right:.63rem;pointer-events:none}.results-count{margin-left:auto;color:var(--muted);font-size:.82rem}.empty{text-align:center;padding:2.1rem 1rem;color:var(--muted);border-top:1px solid var(--line)}.empty .tile-icon{margin:0 auto .55rem}.empty h3{color:var(--ink);font-size:1rem}.empty p{margin-top:.35rem;font-size:.9rem}.verification-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(235px,1fr);gap:1rem;align-items:start}.verification-card,.verification-help{padding:1.2rem}.verification-card .tile-icon{width:43px;height:43px;margin-bottom:.65rem}.verification-grid p{color:var(--muted);line-height:1.5;margin:.37rem 0 .9rem}.verification-card form{margin-top:.65rem}.verification-card .button{margin-top:.15rem}.help-guide{display:flex;gap:.66rem;align-items:center;padding:.75rem;border-radius:8px;background:#f9f1f6;color:#833e61}.help-guide small{display:block;font-family:SFMono-Regular,Consolas,monospace;margin-top:.16rem;font-size:.75rem;overflow-wrap:anywhere}.verify-result{grid-column:1/-1}.verify-result-body{padding:0 1rem 1rem}.audit-summary{display:flex;gap:.65rem;align-items:center;background:#f0f8f3;border:1px solid #dcebe1;border-radius:10px;padding:.75rem .9rem;margin-bottom:1rem}.audit-summary p{margin-top:.18rem;color:var(--muted);font-size:.85rem}.icon-button{display:inline-grid;place-items:center;flex:none;width:36px;height:36px;border-radius:8px;color:var(--muted);border:1px solid var(--line);background:var(--surface)}.icon-button:hover{background:var(--hover);color:var(--brand-text)}.dialog{position:fixed;width:min(95vw,570px);padding:0;border:1px solid var(--control-line);border-radius:13px;background:var(--surface);color:var(--ink);max-height:88dvh;overflow:auto;box-shadow:0 12px 58px #2e122c3d}.dialog::backdrop{background:#21102175}.dialog-head{display:flex;justify-content:space-between;gap:.6rem;align-items:center;padding:.9rem 1.15rem;border-bottom:1px solid var(--line)}.dialog-head h2{font-size:1.32rem;font-weight:790;letter-spacing:-.035em}.dialog-eyebrow{color:var(--brand-text);display:block;font-weight:720;font-size:.73rem;margin-bottom:.2rem}.dialog-body{padding:.96rem 1.15rem 1.07rem}.dialog-body h3,.verify-result-body h3{font-size:1rem;margin-top:.94rem;margin-bottom:.5rem}.dialog-footer{border-top:1px solid var(--line);padding:.77rem 1.15rem;display:flex;gap:.5rem;justify-content:flex-end}.form-description,.muted{color:var(--muted);line-height:1.5;font-size:.92rem}.form-description{margin-bottom:.8rem}.field{display:flex;flex-direction:column;gap:.35rem;color:var(--soft-ink);font-size:.89rem;font-weight:680;margin-bottom:.72rem;width:100%}.field input,.field select,.field textarea{width:100%;min-height:42px;display:block;color:var(--ink);background:var(--surface);border:1px solid var(--control-line);border-radius:8px;padding:.54rem .62rem;font-weight:470;font-size:1rem}.field select{appearance:none;padding-right:2rem;cursor:pointer}.field-select{position:relative;display:flex;align-items:center}.field textarea{resize:vertical}.field input::placeholder,.search-box input::placeholder{color:var(--muted)}.check-list{margin:0 0 .58rem;padding:.47rem .65rem .3rem;border:1px solid var(--line);border-radius:8px}.check-list legend{font-size:.88rem;font-weight:690;padding:0 .32rem}.check-row{display:flex;align-items:center;gap:.62rem;padding:.38rem .39rem;border-radius:7px;cursor:pointer}.check-row:hover{background:var(--hover)}.check-row input{accent-color:var(--brand);width:17px;height:17px;flex:0 0 17px}.check-row strong,.check-row small{display:block}.check-row strong{font-size:.86rem}.check-row small{font-size:.78rem;color:var(--muted);margin-top:.12rem}.receipt-confirm{margin-top:.6rem}.inline-error{display:flex;align-items:center;gap:.5rem;padding:.56rem .68rem;color:#7e1832;background:#fcecf0;border:1px solid #f3d3de;border-radius:7px;font-size:.87rem;line-height:1.4;margin:.5rem 0 .1rem}.details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;margin:.55rem 0 .8rem}.details div{padding:.54rem .6rem;border-radius:7px;background:var(--surface-subtle)}.details dt{font-weight:680;color:var(--muted);font-size:.76rem}.details dd{margin:.22rem 0 0;overflow-wrap:anywhere;font-size:.92rem}.detail-intro,.detail-buttons{display:flex;align-items:center;flex-wrap:wrap;gap:.48rem;margin-bottom:.6rem}.detail-intro{justify-content:space-between}.detail-buttons{margin-top:.8rem}.timeline{list-style:none;margin:0;padding:0 .3rem}.timeline li{position:relative;display:flex;align-items:flex-start;gap:.68rem;padding:.29rem 0 .59rem}.timeline li:not(:last-child):after{content:"";border-left:1px solid var(--accent-line);position:absolute;left:4px;top:12px;bottom:-8px}.timeline li>span{border-radius:20px;width:9px;height:9px;margin-top:5px;background:var(--brand);position:relative;z-index:1}.timeline li strong,.timeline li small{display:block}.timeline li strong{font-size:.88rem}.timeline li small{color:var(--muted);font-size:.77rem;margin-top:.17rem}.toast{position:fixed;bottom:1.05rem;right:1.15rem;z-index:12;display:none;gap:.51rem;align-items:center;padding:.65rem .83rem;background:#28202a;color:#fff;border-radius:8px;max-width:calc(100vw - 2.3rem);box-shadow:0 6px 24px #35193240;font-size:.88rem}.toast.show{display:flex}.toast svg{color:#a9e2c1}:root[data-theme=dark] .brand img{background:#fff;box-sizing:content-box;padding:.32rem .38rem;border-radius:5px}:root[data-theme=dark] .avatar,:root[data-theme=dark] .product-icon{background:#432c40;color:#f3bfdc}:root[data-theme=dark] .tile-icon:not(.rose,.blue,.green,.amber,.violet),:root[data-theme=dark] .badge,:root[data-theme=dark] .tag{background:#342b39;color:#e2c8e7}:root[data-theme=dark] .rose,:root[data-theme=dark] .badge.recalled,:root[data-theme=dark] .badge.revoked,:root[data-theme=dark] .help-guide,:root[data-theme=dark] .inline-error{background:#432637;color:#ffbdd1}:root[data-theme=dark] .blue,:root[data-theme=dark] .badge.in_transit,:root[data-theme=dark] .badge.allocated,:root[data-theme=dark] .badge.placed{background:#233648;color:#acd5f8}:root[data-theme=dark] .green,:root[data-theme=dark] .badge.active,:root[data-theme=dark] .badge.received,:root[data-theme=dark] .badge.dispensed,:root[data-theme=dark] .badge.fulfilled{background:#233b32;color:#a5e2c1}:root[data-theme=dark] .amber,:root[data-theme=dark] .badge.expired,:root[data-theme=dark] .badge.quarantine,:root[data-theme=dark] .badge.discrepancy,:root[data-theme=dark] .badge.suspended{background:#453625;color:#ffd09a}:root[data-theme=dark] .violet{background:#392b49;color:#dbbafb}:root[data-theme=dark] .audit-summary{background:#1f312a;border-color:#3b594b}:root[data-theme=dark] .inline-error{border-color:var(--accent-line)}:root[data-theme=dark] .dialog::backdrop{background:#08060ac7}:root[data-theme=dark] .toast{background:#3b2e3e;border:1px solid var(--control-line)}@media(max-width:1180px){.shell{grid-template-columns:211px minmax(0,1fr)}.recent-panel th,.recent-panel td{padding-left:.48rem;padding-right:.48rem}.recent-panel th:first-child,.recent-panel td:first-child{padding-left:.75rem}.recent-panel th:last-child,.recent-panel td:last-child{padding-right:.75rem}}@media(max-width:1010px){.verification-grid,.public-info-grid{grid-template-columns:minmax(0,1fr)}}@media(max-width:760px){.shell{display:flex;flex-direction:column}.workspace{flex:1}.sidebar{display:none;padding-top:1rem;border-right:0;border-bottom:1px solid var(--line)}.nav-open .sidebar{display:flex}.topbar{position:sticky;top:0;min-height:59px;height:59px}.mobile-menu{display:inline-grid!important}.profile-text,.profile-divider{display:none}.top-actions{gap:.39rem}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:500px){.breadcrumbs>span,.breadcrumbs>svg,.profile-button>svg{display:none}.profile-button{padding:.25rem}.breadcrumbs{gap:.47rem}.role-select select{max-width:145px;padding-left:1.79rem;padding-right:1.51rem;font-size:.79rem}.page-heading{align-items:flex-start;gap:.5rem}.page-heading .button{white-space:normal}.page-heading .date-tag{font-size:.75rem;gap:.29rem;padding:.42rem .5rem}.page-heading p{font-size:.92rem}.metrics{gap:.55rem}.metric{padding:.62rem .52rem}.metric-top{gap:.33rem}.metric .tile-icon{width:29px;height:29px;flex-basis:29px}.search-box{flex:1 0 100%}.footer{flex-wrap:wrap}}@media(max-width:360px){.breadcrumbs strong{display:none}}@media(prefers-reduced-motion:no-preference){button{transition:background-color .12s ease,border-color .12s ease,color .12s ease}}.sidebar-bottom .button{width:100%;justify-content:flex-start;min-height:42px}.role-select select{max-width:246px;text-overflow:ellipsis}.notice-trigger{position:relative;width:39px;height:39px}.notice-trigger>span{position:absolute;width:7px;height:7px;border-radius:50%;top:7px;right:8px;background:var(--brand);box-shadow:0 0 0 2px var(--surface)}.dashboard-actions,.page-actions{display:flex;gap:.48rem;align-items:center;flex-wrap:wrap;justify-content:flex-end}.dashboard-brief{min-height:168px;display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;padding:1.25rem 1.45rem;border-radius:13px;overflow:hidden;color:#fff;background:linear-gradient(90deg,#5b1530,#5b1530e9 36%,#5b1530ad 57%,#36172d54),url(assets/manufacturing.jpg) right 45% / cover}.brief-kicker{display:flex;align-items:center;gap:.39rem;color:#ffdae8;font-weight:680;font-size:.83rem}.dashboard-brief h2{margin:.4rem 0;font-size:clamp(1.55rem,2.8vw,2.4rem);line-height:1.13;letter-spacing:-.04em}.dashboard-brief p{font-size:.93rem;line-height:1.45;color:#ffe8f1}.dashboard-metrics{margin-bottom:.9rem}.dashboard-metric{min-height:115px}.dashboard-metric>strong{font-variant-numeric:tabular-nums;font-size:2rem}.attention-panel{margin-top:.3rem}.attention-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:0 .75rem .82rem;gap:.45rem}.attention-row{width:100%;min-width:0;display:flex;gap:.49rem;align-items:center;text-align:left;min-height:68px;border:1px solid var(--line);border-radius:8px;background:var(--surface-subtle);color:var(--ink);padding:.52rem}.attention-row:hover{background:var(--hover);border-color:var(--accent-line)}.attention-row>span:nth-child(2){min-width:0;flex:1}.attention-row strong,.attention-row small{display:block}.attention-row strong{font-size:.82rem;margin-bottom:.2rem}.attention-row small{font-size:.75rem;color:var(--muted);line-height:1.3}.attention-row b{font-size:.95rem;font-variant-numeric:tabular-nums}.insight-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:.9rem;margin-top:.9rem;align-items:start}.insights-secondary{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}.chart-panel{min-height:275px}.chart-legend{display:flex;flex-wrap:wrap;gap:.7rem;padding:.02rem 1rem .45rem;color:var(--muted);font-weight:650;font-size:.78rem}.chart-legend>span{display:inline-flex;align-items:center;gap:.33rem}.legend-mark{display:inline-block;width:10px;height:10px;border-radius:3px}.primary-series{background-color:#a62349}.secondary-series{background-color:#2887ab}:root[data-theme=dark] .primary-series{background-color:#e56c91}:root[data-theme=dark] .secondary-series{background-color:#6bbbd6}.bar-chart{display:grid;height:134px;align-items:stretch;grid-template-columns:31px minmax(0,1fr);gap:.45rem;padding:0 .95rem}.chart-axis{height:115px;display:flex;justify-content:space-between;flex-direction:column;text-align:right;color:var(--muted);font-size:.72rem;font-variant-numeric:tabular-nums}.chart-columns{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:.17rem;background:repeating-linear-gradient(to top,var(--line) 0 1px,transparent 1px 50px) 0 0 / 100% 115px no-repeat}.bar-day{display:flex;min-width:0;flex-direction:column;align-items:center;gap:.21rem}.bar-pair{height:115px;width:90%;display:flex;justify-content:center;align-items:flex-end;gap:2px}.bar{height:var(--bar-height);min-width:3px;width:28%;max-width:18px;border-radius:3px 3px 0 0}.bar-day>small,.chart-range{font-size:.72rem;color:var(--muted)}.chart-range{display:flex;justify-content:space-between;padding:.27rem 1rem .7rem 2.75rem}.custody-bars{display:grid;gap:.47rem;padding:.22rem .95rem .7rem}.custody-row{display:grid;align-items:center;grid-template-columns:30px minmax(0,1fr) 3rem;gap:.55rem;font-size:.81rem}.custody-row>.tile-icon{width:30px;height:30px}.custody-row>strong{text-align:right;font-variant-numeric:tabular-nums}.custody-meter{margin-top:.22rem;height:5px;overflow:hidden;border-radius:4px;background:var(--surface-subtle)}.custody-meter i{display:block;height:100%;border-radius:inherit}.meter-rose{background:#a62349}.meter-blue{background:#2887ab}.meter-violet{background:#876ab1}.meter-green{background:#348366}.chart-footer{padding:0 .95rem .82rem}.network-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.48rem;padding:0 1rem 1rem;margin:0}.network-stats>div{background:var(--surface-subtle);padding:.45rem .55rem;border-radius:6px}.network-stats dt{font-size:.78rem;color:var(--muted)}.network-stats dd{margin:.18rem 0 0;font-size:1rem;font-weight:750;font-variant-numeric:tabular-nums}.workspace-context{min-height:57px;display:flex;flex-wrap:wrap;align-items:center;gap:.56rem;border:1px solid var(--line);border-radius:9px;padding:.45rem .78rem;background:var(--surface);color:var(--soft-ink);margin-bottom:.7rem}.workspace-context>svg{color:var(--brand-text)}.workspace-context>.button{margin-inline-start:auto}.workspace-context>span{font-size:.84rem}.panel-body{padding:0 1rem 1rem}.report-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.2rem .52rem;align-items:end;padding:.35rem 1rem .9rem}.report-filters>.button{align-self:end;margin-bottom:.65rem}#report-error{grid-column:1 / -1}.pagination{display:flex;gap:.45rem;align-items:center;justify-content:flex-end;padding:.61rem .8rem;border-top:1px solid var(--line);font-size:.79rem;color:var(--muted)}.selectable-packs{max-height:290px;overflow:auto}#scan-status{font-size:.85rem;color:var(--soft-ink);margin-bottom:.4rem}.verify-upload{margin:.95rem 0 0}.verify-upload input{min-width:0}.sample-codes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.35rem;margin-top:.8rem}.sample-code{min-width:0;display:flex;flex-direction:column;align-items:flex-start;background:var(--surface-subtle);color:var(--ink);border:1px solid var(--line);border-radius:7px;padding:.42rem .5rem}.sample-code:hover{background:var(--hover)}.sample-code span{color:var(--muted);font-size:.74rem;margin-top:.08rem}.pack-qr{display:grid;justify-content:start}.pack-qr svg{background:#fff;height:auto;max-width:100%}.label-print{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:.7rem}.label-print h3{margin:0}.preview-link{color:var(--brand-text);font-weight:650}.badge.open,.badge.submitted{background:#fcf0de;color:#89551d}.badge.review,.badge.partial{background:#e6f1fb;color:#215a93}.badge.resolved,.badge.approved{background:#e7f4ec;color:#266346}.badge.damaged,.badge.lost,.badge.stolen,.badge.rejected{background:#fae8ee;color:#9d203d}:root[data-theme=dark] .badge.open,:root[data-theme=dark] .badge.submitted{background:#453625;color:#ffd09a}:root[data-theme=dark] .badge.review,:root[data-theme=dark] .badge.partial{background:#233648;color:#acd5f8}:root[data-theme=dark] .badge.resolved,:root[data-theme=dark] .badge.approved{background:#233b32;color:#a5e2c1}:root[data-theme=dark] .badge.damaged,:root[data-theme=dark] .badge.lost,:root[data-theme=dark] .badge.stolen,:root[data-theme=dark] .badge.rejected{background:#432637;color:#ffbdd1}.guided-tour{position:fixed;right:max(1rem,env(safe-area-inset-right));bottom:max(1rem,env(safe-area-inset-bottom));z-index:22;width:min(27rem,calc(100vw - 2rem));max-height:min(29rem,65dvh);overflow-y:auto;padding:.9rem 1rem 1rem;border:1px solid var(--accent-line);border-top:4px solid var(--brand);border-radius:11px;background:var(--surface);box-shadow:0 12px 45px #1d0a2590}.guided-tour.tour-positioned{right:auto;bottom:auto}.tour-top,.tour-controls{display:flex;align-items:center;justify-content:space-between;gap:.45rem}.tour-top{margin-bottom:.35rem}.tour-handle{display:flex;flex:1;align-items:center;gap:.45rem;min-height:36px;padding:.18rem .3rem;border-radius:5px;cursor:grab;touch-action:none;user-select:none}.tour-handle:hover,.tour-handle:focus-visible{background:var(--hover)}.tour-handle:active{cursor:grabbing}.tour-grip{flex:none;width:10px;height:15px;color:var(--soft-ink);background:radial-gradient(circle,currentColor 1px,transparent 1.3px) 0 0 / 5px 5px}.tour-counter{color:var(--brand-text);font-size:.8rem;font-weight:730}.guided-tour h2{font-size:1.25rem;letter-spacing:-.03em}.tour-copy{margin:.42rem 0 .63rem;color:var(--soft-ink);font-size:.93rem;line-height:1.5}.tour-changes{display:grid;gap:.15rem;margin:0 0 .7rem;padding:.4rem .6rem;border:1px solid var(--line);border-radius:8px;background:var(--surface-subtle);font-size:.83rem}.tour-changes>div{display:grid;grid-template-columns:minmax(6.75rem,.9fr) minmax(0,1.5fr);gap:.35rem;align-items:baseline}.tour-changes dt,.tour-before{color:var(--soft-ink)}.tour-changes dd{margin:0;overflow-wrap:anywhere}.tour-before{margin-inline-end:.28rem}.tour-value-changed strong{color:var(--brand-text)}.tour-jump select{min-width:0;margin:0}.guided-tour progress{width:100%;height:7px;display:block;accent-color:var(--brand);margin:0 0 .8rem}.tour-controls{justify-content:flex-start}.tour-controls .primary{margin-left:auto}.tour-highlight{outline:2px solid var(--focus);outline-offset:-2px;scroll-margin:80px 0 min(29rem,65dvh)}.tour-highlight>td{background:var(--hover)}.transaction-trace{padding:.65rem .75rem;border:1px solid var(--line);border-radius:8px;background:var(--surface-subtle)}.transaction-trace h3{margin:0;font-size:.98rem}.transaction-meta{margin:.2rem 0 .45rem;font-size:.83rem;color:var(--soft-ink)}.transaction-phases{display:flex;flex-wrap:wrap;gap:.35rem;padding:0;margin:0;list-style:none}.transaction-phases li{display:grid;gap:.14rem;padding:.3rem .4rem;border:1px solid var(--line);border-radius:5px;background:var(--surface);font-size:.83rem}.transaction-phases small{color:var(--soft-ink)}.transaction-trace[data-outcome="Invalid at commit"] .transaction-phases li:nth-last-child(-n+2),.transaction-trace[data-outcome="Rejected before ordering"] .transaction-phases li:last-child{border-color:var(--accent-line);color:var(--brand-text)}.tour-transaction:not(:empty){margin-bottom:.65rem}.transaction-phases.compact li{font-size:.76rem}@media(prefers-reduced-motion:no-preference){.tour-value-changed strong{animation:tour-field-change .8s ease-out;border-radius:3px}.guided-tour:has(.transaction-trace[data-outcome=Committed]) .tour-value-changed strong{animation-delay:.92s}.transaction-phases.compact li{animation:tour-phase-in .24s ease-out var(--phase-delay) both}@keyframes tour-field-change{0%{background:var(--hover);box-shadow:0 0 0 4px var(--hover)}to{background:transparent;box-shadow:0 0 0 0 transparent}}@keyframes tour-phase-in{0%{opacity:.25;transform:translateY(.2rem)}to{opacity:1;transform:translateY(0)}}}@media(max-width:1200px){.attention-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:1010px){.insight-grid{grid-template-columns:minmax(0,1fr)}.role-select select{max-width:200px}}@media(max-width:720px){.role-select select{max-width:154px}.report-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.page-heading:has(.page-actions){flex-wrap:wrap}.page-actions{justify-content:flex-start}}@media(max-width:500px){.role-select select{max-width:137px}.notice-trigger{width:34px;height:34px}.topbar{gap:.5rem}.dashboard-brief{flex-direction:column;align-items:flex-start;justify-content:flex-end;padding:1.05rem;min-height:170px}.page-heading:has(.dashboard-actions){flex-wrap:wrap}.dashboard-actions{justify-content:flex-start}.attention-grid{padding-inline:.6rem;gap:.33rem}.attention-row{flex-wrap:wrap;align-content:start}.attention-row .tile-icon{display:none}.report-filters{padding-inline:.65rem}.label-print{grid-template-columns:minmax(0,1fr)}}@media print{.sidebar,.topbar,.footer,.guided-tour,.toast,.button,.icon-button,.report-filters,.pagination{display:none!important}:root,body{background:#fff!important;color:#000!important;color-scheme:light}.shell{display:block}main{padding:0}.panel{border:0}body:has(.dialog[open]) .shell{display:none}.dialog[open]{position:static;max-height:none;width:100%;margin:0;box-shadow:none;background:#fff!important;color:#000!important}.dialog[open] *{color:#000!important}.dialog::backdrop{background:transparent}}.inventory-filters{margin:0 .95rem .82rem;border:1px solid var(--line);border-radius:8px;background:var(--surface-subtle)}.inventory-filters summary{cursor:pointer;padding:.55rem .68rem;font-size:.87rem;font-weight:670}.inventory-filters>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.1rem .58rem;padding:.25rem .68rem .42rem}@media(max-width:680px){.inventory-filters>div{grid-template-columns:repeat(2,minmax(0,1fr))}}.storage-notice{margin:0 0 .9rem}.badge.restricted{background:#fcf0de;color:#89551d}:root[data-theme=dark] .badge.restricted{background:#453625;color:#ffd09a}@media print{.dialog[open],.print-report .table-scroll{overflow:visible}.print-report tr{break-inside:avoid}.print-report thead{display:table-header-group}.print-report td,.print-report th{white-space:normal}}.tour-jump{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.55rem;align-items:center;margin:.55rem 0 .7rem;font-size:.84rem}.tour-jump select{width:100%;min-height:34px;border:1px solid var(--control-line);border-radius:6px;background:var(--surface);color:var(--ink)}
