*{box-sizing:border-box}body{margin:0;background:#f5f7fa;color:#192940;font:16px Inter,"Segoe UI",Arial,sans-serif}.wrap{width:min(1240px,92%);margin:auto}header{background:#14263c;color:white}.mast,.brand,.nav,.heading,.sectiontop,.toolbar,.actions,.search{display:flex;align-items:center}.mast{height:68px;gap:16px}.brand{font-weight:730;font-size:21px;gap:11px;letter-spacing:-.65px}.brand i{background:#ffc44d;color:#14263c;padding:7px;border-radius:9px}.company{margin-left:auto;font-size:14px;color:#d6dfe7}.avatar{font-size:13px;border:1px solid #5b6a79;background:#304055;padding:8px;border-radius:50%}i{display:inline-flex}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}nav{background:white;border-bottom:1px solid #d9e0e5}.nav{gap:30px}.nav button{border:0;border-radius:0;padding:17px 0;background:none;color:#596676;border-bottom:3px solid transparent}.nav button.active{color:#15283e;border-color:#e9ac28}.heading,.sectiontop{justify-content:space-between;gap:15px}.heading{margin:42px 0 26px}.eyebrow{font:700 11px/1.4 "Segoe UI",sans-serif;letter-spacing:1.8px;color:#667484}.eyebrow b{display:inline-block;width:18px;height:3px;background:#e9ac28;vertical-align:middle;margin-right:5px}h1{font-size:clamp(32px,3vw,44px);margin:7px 0;letter-spacing:-1.8px}p{color:#637182;margin:0;line-height:1.5}button,input,select{font:inherit}button,select{cursor:pointer}button,select,input{border:1px solid #d4dce3;background:#fff;border-radius:6px;color:#26374b;font-size:14px;padding:10px 13px}button{font-weight:600}button:hover{filter:brightness(.96)}button.primary{background:#ffc449;border-color:#ecb33c;color:#1b2838;display:inline-flex;align-items:center;justify-content:center;gap:8px}.primary strong{font-size:20px;line-height:1}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:25px}.card,section{border:1px solid #dce2e8;border-radius:11px;background:white;box-shadow:0 2px 5px #17253c05}.card{padding:18px 20px;position:relative}.icon{width:36px;height:36px;display:grid;place-items:center;border-radius:9px}.blue{background:#e9eff8;color:#49658a}.green{background:#e2f3e9;color:#25805b}.orange{background:#fff0d9;color:#a66913}.violet{background:#efebfb;color:#7355a7}.card small{display:block;color:#546376;margin:14px 0 4px;font-weight:600;font-size:14px}.num{font-size:33px;font-weight:700;letter-spacing:-1px}.card .spark{position:absolute;bottom:20px;right:17px;width:72px;height:25px}.sectiontop{padding:21px 22px 12px}h2{margin:4px 0;font-size:23px;letter-spacing:-.8px}.toolbar{gap:10px;padding:8px 22px 18px}.search{border:1px solid #d4dce3;border-radius:6px;padding-left:11px;color:#788494}.search input{border:0;background:transparent;width:245px}.search svg{width:17px}#workspace{margin-left:auto}select{appearance:none;padding-right:31px;background:white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m2 4 4 4 4-4' fill='none' stroke='%23566473'/%3E%3C/svg%3E") no-repeat right 11px center}.scroll{overflow:auto}table{border-collapse:collapse;width:100%;white-space:nowrap;font-size:14px}th,td{text-align:left;padding:13px 12px;border-bottom:1px solid #e5e9ee}th:first-child,td:first-child{padding-left:22px}th{font-size:12px;color:#566577;background:#f6f8fa}td{color:#445267}.mat{display:flex;align-items:center;gap:10px;color:#203148;font-weight:650}.mat i{width:32px;height:32px;border-radius:7px;display:grid;place-items:center}.badge{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:650;padding:4px 8px;border-radius:5px}.ref{font-family:monospace}.q{font-weight:650}footer{padding:13px 22px;color:#647182;font-size:13px}dialog{width:min(460px,94vw);border:0;border-radius:12px;padding:24px;color:#192940}dialog::backdrop{background:#14263c77}.fields{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin:16px 0}.fields label{display:grid;gap:5px;font-size:14px;font-weight:600}.fields input,.fields select{width:100%}.wide{grid-column:span 2}.actions{justify-content:flex-end;gap:8px}#error{color:#a12f22}.empty{text-align:center;padding:36px}.nav button{font-size:15px}@media(max-width:800px){.cards{grid-template-columns:1fr 1fr}.toolbar{flex-wrap:wrap}.card .spark{width:50px}}@media(max-width:600px){.wrap{width:94%}.heading{align-items:flex-start;flex-direction:column;margin-top:26px}.company{display:none}.avatar{margin-left:auto}.cards{gap:8px}.card{padding:14px}.nav{gap:18px}.toolbar,.sectiontop{padding-left:13px;padding-right:13px}.search,.search input{width:100%}#workspace{margin-left:0}.nav button{font-size:14px}}
#teamtools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px;color:#42566a;font-size:14px}#teamtools a{margin-left:auto;color:#244c76;font-weight:600}#role{font-weight:650}#notice:not(:empty){margin:10px 0 18px}button:disabled{opacity:.55;cursor:default}
.mat{white-space:normal;min-width:240px;line-height:1.45}.mat i{flex-shrink:0}

.delivery-actions{display:flex;gap:10px;align-items:center}.nav{overflow-x:auto}.nav button{white-space:nowrap}@media(max-width:600px){.nav{gap:14px}.nav button{font-size:13px}}
@media(max-width:700px){.mast .brand{font-size:17px;line-height:1.2}.mast .company{display:none}}
.brand .company-logo{height:52px;width:auto;flex:none;background:white;border-radius:4px}.mast{min-height:72px;height:auto;padding:8px 0}.mast .brand{gap:16px}@media(max-width:600px){.brand .company-logo{width:102px;height:auto}.mast .brand{gap:10px}}
.profile-top{display:flex;align-items:center;justify-content:space-between;gap:12px}#profile-dialog{max-height:88vh;overflow:auto}#profile-dialog h3{margin:16px 0 4px;font-size:17px}#profile-dialog form{border-top:1px solid #dce2e8;margin-top:14px}#profile-dialog [role=status]:not(:empty){margin-top:8px}
[hidden]#category-field{display:none}

.fields [data-registration][hidden]{display:none}

/* Shared palette and controls */
:root{--navy:#132b46;--teal:#00766d;--blue:#245aaa;--amber:#915100;--violet:#6a46a0;--line:#d8e2eb;--muted:#50657a;--accent:var(--teal);--tint:#e0f4ee}
body{color:var(--navy);background:#f2f6fa;font-family:Inter,"Segoe UI",Arial,sans-serif}
body[data-section=blue]{--accent:var(--blue);--tint:#e5effe}
body[data-section=amber]{--accent:var(--amber);--tint:#fff1d7}
body[data-section=violet]{--accent:var(--violet);--tint:#efe9ff}
body[data-section=slate]{--accent:#485d79;--tint:#e7edf5}
[hidden]{display:none!important}
:focus-visible{outline:3px solid #287cc3;outline-offset:3px}
button,input,select,summary{border-radius:8px}
button{transition:background-color .15s,border-color .15s}
button.primary,#register-item{background:var(--accent);color:white;border:1px solid var(--accent)}
header{background:linear-gradient(108deg,#10243b,#173954 70%,#13494f);border-bottom:4px solid #40b8ab}
.mast{width:min(96%,1800px);min-height:78px;justify-content:space-between}
.mast .brand{font-size:1.3rem;letter-spacing:-.035em}.brand .company-logo{height:46px;padding:3px 5px;border-radius:6px}
.account-tools{display:flex;align-items:center;gap:18px;font-size:.875rem}.account-tools #role{color:#e1f1f3}
.account-tools details{position:relative}.account-tools summary{cursor:pointer;background:#ffffff12;border:1px solid #ffffff55;padding:9px 13px;color:white}
#teamtools{position:absolute;right:0;top:calc(100% + 8px);z-index:12;display:grid;width:235px;margin:0;padding:8px;background:white;border:1px solid var(--line);border-radius:12px;gap:3px;box-shadow:0 8px 30px #132b4626}
#teamtools button,#teamtools a{background:white;border:0;text-align:left;margin:0;padding:10px;color:var(--navy);font-size:.875rem}#teamtools button:hover,#teamtools a:hover{background:#edf4f8}
.app-layout{max-width:1840px;margin:auto;display:grid;grid-template-columns:210px minmax(0,1fr);min-height:calc(100vh - 78px)}
nav{background:#fff;border:0;border-right:1px solid var(--line)}.nav{position:sticky;top:0;display:grid;gap:5px;width:auto;margin:0;padding:26px 10px;overflow:visible}
.nav button{--link:var(--teal);--wash:#e0f4ee;display:flex;align-items:center;gap:10px;border:0;border-radius:8px;padding:12px;color:#394e62;font-size:.9rem;text-align:left}
.nav button[data-page*="elivery"]{--link:var(--blue);--wash:#e5effe}
.nav button[data-page="Fabrication usage"]{--link:var(--violet);--wash:#efe9ff}
.nav button[data-page="Quarantine Material"]{--link:var(--amber);--wash:#fff1d7}
.nav button[data-page="Movement log"]{--link:#485d79;--wash:#e7edf5}
.nav i{color:var(--link)}.nav button:hover,.nav button.active{background:var(--wash);color:var(--link)}.nav button.active{box-shadow:inset 3px 0 var(--link)}
main.wrap{width:100%;min-width:0;padding:0 clamp(16px,2vw,36px) 36px}.heading{margin:28px 0 22px;align-items:center}.heading h1{font-size:clamp(1.8rem,2.6vw,2.5rem);line-height:1.15;margin:0 0 7px}.heading p{max-width:70ch;color:var(--muted)}
section,.card{border-color:var(--line);box-shadow:0 3px 14px #213d5510;border-radius:13px}
.cards{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin-bottom:20px}
.card{border-top:4px solid #008175;background:#f2fcf8}.card:nth-child(2){border-top-color:#3375b9;background:#f1f7ff}.card:nth-child(3){border-top-color:#c3882a;background:#fff9ef}.card:nth-child(4){border-top-color:#835bb5;background:#faf6ff}.card small{margin:0 0 8px}.num,.q{font-variant-numeric:tabular-nums}
.sectiontop{padding:18px 18px 14px}.sectiontop h2{font-size:1.2rem}.toolbar{flex-wrap:wrap;padding:0 18px 16px;gap:8px}.toolbar select{max-width:100%}.search{flex:1 1 200px}.search input{width:100%;min-width:0}.search:focus-within{outline:2px solid var(--accent)}
.scroll{border-block:1px solid var(--line)}th{background:#e9eff5;color:#364f65;font-size:.83rem}tbody tr:nth-child(even){background:#f9fbfd}tbody tr:hover{background:#eef7f8}td{line-height:1.45}td button{padding:6px 10px;margin:2px}
[data-delete-entry],[data-remove]{color:#9c3033;border-color:#e9c9c9;background:#fff8f8}.badge{border-radius:20px}.green{color:#176747}.orange{color:#80500c}
dialog{width:min(560px,94vw);max-height:90dvh;overflow:auto;border:1px solid var(--line);border-top:5px solid var(--accent);box-shadow:0 20px 70px #10243b33}.fields{gap:15px}.fields label{min-width:0}.fields input,.fields select{min-width:0;min-height:40px}.actions{padding-top:12px;border-top:1px solid var(--line)}
body[data-stage]{min-height:100vh;background:radial-gradient(ellipse at 16% 18%,#d1efe8,transparent 52%),radial-gradient(ellipse at 90% 86%,#dfe7fc,transparent 55%),#f2f7fa}
body[data-stage] main{width:min(440px,92%);margin:clamp(38px,10vh,110px) auto}.login-card{padding:clamp(22px,4vw,36px);border-top:5px solid var(--teal)}.login-card h1{font-size:2rem;margin:0 0 22px}.login-card form,.login-card label{display:grid;gap:8px}.login-card form{gap:17px}.login-card label{font-weight:600;font-size:.9rem}.login-card input,.login-card button{min-height:44px}.error{color:#9c3033}.login-card .error:empty{display:none}#access-help{margin-top:20px;padding-top:15px;border-top:1px solid var(--line);font-size:.9rem}
@media(max-width:900px){.app-layout{display:block}.nav{position:static;display:flex;overflow:auto;padding:9px 3%;gap:5px}.nav button{flex:none;padding:9px}.nav button.active{box-shadow:inset 0 -3px var(--link)}nav{border:0;border-bottom:1px solid var(--line)}.account-tools #role{max-width:160px;font-size:.8rem}}
@media(max-width:620px){.mast{flex-wrap:wrap;padding:10px 0;gap:10px}.mast .brand{font-size:1.05rem;gap:8px}.mast .company-logo{width:auto;height:35px}.account-tools #role{display:none}.account-tools summary{font-size:.8rem;padding:7px}.heading{align-items:flex-start;margin:20px 0 16px}.cards{grid-template-columns:1fr 1fr}.delivery-actions{flex-wrap:wrap}.fields{grid-template-columns:1fr}.fields .wide{grid-column:auto}.toolbar select{flex:1 1 145px;min-width:0}.toolbar .search{flex-basis:100%}.sectiontop,.toolbar{padding-inline:12px}#teamtools{max-width:85vw}.nav button{font-size:.875rem}}
main.wrap{margin:0 auto}
body[data-section=teal] .card:nth-child(4){border-top-color:#c3882a;background:#fff9ef}
body[data-section=teal] .card:nth-child(3){border-top-color:#77889a;background:#f5f7fa}
#notifications summary{display:flex;align-items:center;gap:7px;list-style:none}
#notifications summary::-webkit-details-marker{display:none}
#notification-count{background:#ffe2a6;color:#553500;border-radius:16px;min-width:20px;padding:2px 5px;text-align:center}
.notification-panel{position:absolute;z-index:15;top:calc(100% + 9px);right:0;width:min(380px,92vw);padding:16px;color:var(--navy);box-shadow:0 12px 36px #132b4630}
.notification-title{display:flex;justify-content:space-between;align-items:center;gap:8px}
.notification-title h2{font-size:1.2rem}.notification-title button,.notification-item button{padding:6px 10px}
#notification-list{max-height:55vh;overflow:auto;overflow-wrap:anywhere}
.notification-item{border-top:1px solid var(--line);padding:12px 0}.notification-item>span{display:block;color:#584282;font-weight:650;margin:4px 0}.notification-item small{color:#12655c;background:#e0f4ee;padding:2px 6px;border-radius:9px}
.notification-item button{margin-top:7px}.notification-empty,#notification-status:not(:empty){margin-top:12px}
@media(max-width:650px){#notifications{position:static}.mast{position:relative}#notifications summary>span{display:none}.notification-panel{top:100%;right:0}}
