*{box-sizing:border-box} :root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#173c2d;background:#edf2ed;font-synthesis:none;--green:#087f50;--muted:#728177;--line:#e3eae3}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}[hidden]{display:none!important}.app{max-width:640px;margin:auto;min-height:100dvh;background:#f7f9f5}header{padding:calc(22px + env(safe-area-inset-top)) 24px 22px;display:flex;align-items:center;gap:12px;background:#064e35;color:white}.brand-icon{width:43px;height:43px;border:1px solid #69a286;border-radius:13px;display:grid;place-items:center;font-size:16px;font-weight:800;color:#d1e969}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.7px;margin:0 0 7px}header .eyebrow{color:#bad4c5;font-size:9px}h1{font-size:21px;margin:0;font-weight:650}.icon-button{margin-left:auto;color:#fff;background:#ffffff12;border:1px solid #ffffff23;width:38px;height:38px;border-radius:12px;font-size:25px}main{padding:25px 22px 115px}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.section-title .eyebrow{color:var(--muted)}h2{font-size:29px;letter-spacing:-.8px;margin:0;font-weight:700}h3{font-size:16px;margin:0}.tag{font-size:11px;background:#e8f0e5;border:1px solid #dce7d7;padding:7px 10px;border-radius:20px;color:#397140}.metrics{display:grid;grid-template-columns:1fr 1fr;gap:12px}.metrics>div{padding:18px;border:1px solid var(--line);background:#fff;border-radius:16px}.metrics span{font-size:12px;color:var(--muted);display:block;min-height:30px}.metrics strong{font-size:30px;font-weight:650;display:block;margin-top:5px}.quick{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0 22px}.quick button{min-height:49px;border-radius:12px;font-weight:600;border:1px solid #d8e3d7;background:#fff;color:#185339;font-size:12px}.quick button:first-child{background:var(--green);color:white;border-color:var(--green)}.quick span{font-size:19px;margin-right:8px}.search{display:flex;align-items:center;gap:10px;background:white;border:1px solid var(--line);padding:0 14px;border-radius:12px}.search span{font-size:25px;color:#6f8477}.search input{border:0;padding:15px 0;min-width:0;flex:1;outline:none;background:none}.date-filter{display:flex;align-items:end;gap:8px;margin:13px 0 25px}.date-filter label{flex:1;font-size:11px;color:var(--muted)}label{display:block;font-size:12px;font-weight:550;color:#4d6656}input,select,textarea{width:100%;padding:12px;border:1px solid #dce5d9;border-radius:10px;color:#1d3e2b;background:#fff;min-height:46px;margin-top:7px;outline-color:#087f50}input[type=date]{min-width:0}textarea{resize:vertical;min-height:75px}.search input{margin:0}.secondary{border:1px solid #d6e2d3;background:white;padding:13px 10px;border-radius:10px;color:#215539;font-size:12px;min-height:46px}.text-button{border:0;background:none;color:var(--green);padding:10px 4px;font-size:12px;font-weight:650}.list-heading{display:flex;justify-content:space-between;align-items:center;margin:23px 0 12px}.list-heading span{font-size:11px;color:var(--muted)}.list{border:1px solid var(--line);border-radius:15px;background:white;overflow:hidden}.stock-row,.doc-row,.report-row{padding:17px;border-bottom:1px solid var(--line)}.stock-row:last-child,.doc-row:last-child,.report-row:last-child{border-bottom:0}.stock-row{display:flex;gap:15px;justify-content:space-between;align-items:center}.stock-row strong,.doc-row strong,.report-row strong{font-size:14px;line-height:1.4;font-weight:600}.stock-row small,.doc-row small{display:block;color:var(--muted);font-size:11px;line-height:1.6;margin-top:4px}.quantity{white-space:nowrap;font-size:18px;font-weight:650;color:#087f50}.quantity small{display:inline;font-size:11px;font-weight:400}.zero{color:#a3afa5}.empty{font-size:13px;text-align:center;line-height:1.6;padding:22px 15px;color:var(--muted)}.card{background:#fff;border:1px solid var(--line);padding:18px;border-radius:16px;display:grid;gap:18px}.primary{border:0;border-radius:11px;background:var(--green);color:#fff;min-height:50px;padding:13px;font-weight:650;font-size:14px}.add-line{background:none;border:1px dashed #b9d0bd;border-radius:10px;padding:12px;color:var(--green);font-size:13px}.lines{display:grid;gap:14px}.line{border-bottom:1px solid var(--line);padding-bottom:15px;display:grid;grid-template-columns:1fr 42px;gap:10px}.line>label:first-child{grid-column:1/-1}.remove{align-self:end;height:46px;border:1px solid var(--line);border-radius:10px;background:white;font-size:20px;color:#7f8d80}.available{grid-column:1/-1;font-size:11px;color:var(--muted)}.route{display:flex;align-items:center;justify-content:space-between;padding:12px 10px;border-radius:10px;background:#f0f5ed;font-size:12px}.route b{color:#79a25f;font-size:20px}.section-symbol{color:#71a279;font-size:30px}.period{display:grid;grid-template-columns:1fr 1fr;gap:12px}.report-numbers{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:12px;font-size:12px}.report-numbers small{display:block;color:var(--muted);font-size:10px;margin-bottom:5px}#notice{padding:12px;border:1px solid #cfe1cc;background:#eaf3e5;color:#245935;border-radius:10px;margin-bottom:18px;font-size:13px}#notice.error{background:#fff1ed;border-color:#efd2c9;color:#923e28}.doc-head{display:flex;justify-content:space-between;align-items:center}.doc-status{font-size:10px;color:#9a7525;background:#fbf3df;padding:4px 7px;border-radius:6px}.doc-status.done{background:#e9f3e5;color:#3f7949}nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:640px;display:grid;grid-template-columns:repeat(4,1fr);background:#fffffff5;border-top:1px solid var(--line);padding:9px 9px calc(10px + env(safe-area-inset-bottom));backdrop-filter:blur(12px);z-index:5}nav button{border:0;background:none;color:#7a897d;font-size:10px;min-height:51px;border-radius:11px;font-weight:550}nav button span{display:block;font-size:23px;line-height:1.1;margin-bottom:5px}nav button.active{background:#edf4e8;color:#087f50;font-weight:750}button:focus-visible,a:focus-visible{outline:3px solid #b5d334;outline-offset:2px}@media(min-width:700px){.app{box-shadow:0 0 70px #234b2b0c}main{padding-left:28px;padding-right:28px}}@media(max-width:360px){main{padding-left:14px;padding-right:14px}.date-filter{flex-wrap:wrap}.date-filter label{min-width:140px}.quick button{font-size:11px}.quantity{font-size:16px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.new-item{margin-top:16px}.new-item summary{padding:14px 0;color:var(--green);font-size:13px;font-weight:650;cursor:pointer}.new-item .card{margin-top:8px}
.vehicle-fields{margin:0;padding:14px;border:1px solid var(--line);border-radius:12px;display:grid;gap:12px;min-width:0}.vehicle-fields legend{font-size:13px;font-weight:650;padding:0 6px;color:#31563e}
.production-check{display:flex;align-items:center;gap:10px;font-size:14px}.production-check input{width:20px;height:20px;min-height:20px;margin:0;accent-color:var(--green)}

/* Compact mobile workspace. */
header{padding:calc(13px + env(safe-area-inset-top)) 20px 13px;gap:10px}header .brand-icon{width:35px;height:35px;border-radius:10px;font-size:13px}header h1{font-size:18px}header .eyebrow{font-size:8px;margin-bottom:4px}main{padding-top:18px}.section-title{margin-bottom:15px}h2{font-size:25px}.metrics>div{padding:12px 15px}.metrics span{min-height:0;font-size:11px}.metrics strong{font-size:24px;margin-top:8px}.quick{margin:12px 0 16px}.stock-row{width:100%;border:0;border-bottom:1px solid var(--line);background:white;color:inherit;text-align:left;padding:14px 16px;font:inherit}.stock-row:hover{background:#f4f8f1}.stock-row:focus-visible{outline-offset:-3px}.card{padding:15px;gap:13px}.card label{font-size:12px}input,select,textarea{padding:10px 11px;min-height:44px;margin-top:5px}textarea{min-height:62px}.lines{gap:10px}.line{gap:8px;padding-bottom:11px}.remove{height:44px;min-width:42px}.available{font-size:11px}.over-stock{color:#a13d24;font-weight:650}.today-button{justify-self:start;border:0;padding:0 0 3px;background:none;color:var(--green);font-size:11px;margin-top:-7px;min-height:24px}.primary{min-height:47px}.presets{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.presets button{border:1px solid var(--line);border-radius:9px;background:#f5f8f2;color:#607767;font-size:11px;min-height:38px;padding:6px 3px}.presets button.selected{color:#087f50;background:#e6f1e5;border-color:#bed6bb}.report-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:17px}.report-summary>div{border:1px solid var(--line);border-radius:12px;padding:13px 10px;background:#fff}.report-summary small{display:block;font-size:10px;color:var(--muted);margin-bottom:8px}.report-summary strong{font-size:16px;font-weight:650;line-height:1.5}.report-numbers{gap:8px;grid-template-columns:repeat(2,1fr);font-size:13px}.report-row{padding:14px 16px}.report-numbers small{font-size:10px}.empty{padding:15px;font-size:12px}.list-heading{margin-top:19px}nav{padding:7px 8px calc(7px + env(safe-area-inset-bottom));border-radius:18px 18px 0 0;gap:3px}nav button{min-height:56px;border-radius:14px;font-size:10px;color:#738a7d;font-weight:400}nav button.active{background:#e7f3e8;color:#008653;font-weight:500}nav svg{display:block;width:23px;height:23px;margin:2px auto 5px}#receipt-form>.primary,#dispatch-form>.primary{position:sticky;bottom:calc(78px + env(safe-area-inset-bottom));z-index:2;box-shadow:0 4px 15px #0d532227}dialog{width:calc(100% - 28px);max-width:590px;max-height:82dvh;border:1px solid var(--line);border-radius:18px;padding:0;color:#173c2d;background:#fff}dialog::backdrop{background:#153a2b66}.history-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff}.history-head button{border:0;background:#edf3e8;border-radius:9px;width:34px;height:34px;font-size:22px;color:#486b52}.history-balance{margin:0;padding:15px;background:#f4f8f0;font-size:13px}#history-content>.doc-row{padding:14px 16px}@media(max-width:360px){.report-summary strong{font-size:13px}.presets button{font-size:10px}}

/* Shared visual treatment for the four warehouse screens. */
:root{background:#eaf0eb;color:#182f24;--green:#078447;--muted:#77857b;--line:#e2e9e2}.app{background:#f5f7f4}header{background:linear-gradient(115deg,#063f2d,#075537);padding-bottom:26px}header .brand-icon{background:#21834b;border:0;color:#b8e454;box-shadow:inset 0 1px 0 #ffffff15}header .icon-button{border:0;background:#ffffff0c;width:36px;height:36px}header .eyebrow{font-size:9px;letter-spacing:1px;color:#e2eee7}header h1{font-size:20px}main{position:relative;margin-top:-12px;background:#f5f7f4;border-radius:22px 22px 0 0;padding-top:23px}.section-title{gap:12px;margin-bottom:20px}.section-title .eyebrow{font-size:9px;letter-spacing:1.1px;color:#7b8c80}h2{font-size:26px;letter-spacing:-.7px}.section-symbol{width:43px;height:43px;display:grid;place-items:center;background:#eaf3e6;color:#216d36;border-radius:14px}.section-symbol svg{width:28px;height:28px}.card{border-color:#e5eae3;border-radius:18px;padding:18px 16px;gap:17px;box-shadow:0 3px 16px #12382103}label{color:#203f2c;font-weight:600}input,select,textarea{border-color:#d9e1d8;border-radius:12px;background:#fdfefd;padding:12px;font-weight:450;box-shadow:inset 0 1px 2px #173c2d03}input:focus,select:focus,textarea:focus{outline:2px solid #9ccba4;outline-offset:1px}input::placeholder,textarea::placeholder{color:#89948b}.document-date{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:end}.document-date .today-button{margin:0 0 1px;padding:0 15px;min-height:44px;border-radius:12px;background:#edf3e9;color:#28612d;font-size:12px;font-weight:650}.document-date input{margin-bottom:0}.quantity-field{display:flex;align-items:center;margin-top:5px;border:1px solid #d9e1d8;border-radius:12px;background:#fdfefd;overflow:hidden}.quantity-field:focus-within{outline:2px solid #9ccba4;outline-offset:1px}.quantity-field input{min-width:0;margin:0;border:0;border-radius:0;background:transparent;font-size:18px;font-weight:600;box-shadow:none;outline:none!important}.quantity-unit{align-self:stretch;min-width:47px;display:grid;place-items:center;border-left:1px solid #e4e9e2;font-size:12px;font-weight:450;color:#6b7a70;background:#f9fbf7}.line{grid-template-columns:minmax(0,1fr) 40px;gap:8px 10px;padding-bottom:16px}.remove{height:47px;min-width:40px;color:#89968b;background:#fafbf8;border-radius:12px;border-color:#e4e9e1;font-size:19px}.add-line{border-color:#c8d9c7;background:#fbfdf9;color:#286a30;min-height:45px;font-weight:600;border-radius:12px}.available{font-size:12px;color:#47664e}.available.over-stock{color:#a13d24}.primary{background:#147d36;border-radius:13px;font-weight:650;box-shadow:0 3px 8px #174d2710;min-height:49px}.primary:hover:not(:disabled){background:#106d2e}.metrics>div{box-shadow:0 2px 7px #173c2d02;border-radius:14px}.list{border-radius:16px;border-color:#dfe7de}.stock-row{gap:12px;padding:14px 16px}.product-icon{flex:0 0 38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#f0f5ec;font-size:23px}.product-info{flex:1;min-width:0}.stock-row strong{font-size:14px}.stock-row .quantity{margin-left:auto;font-size:19px}.stock-row small{font-size:10px}.stock-row .quantity small{font-size:11px}.report-summary{display:grid;grid-template-columns:1fr;gap:8px;margin-top:20px}.report-summary>div{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:10px;border-radius:13px;padding:12px 13px;box-shadow:0 2px 7px #173c2d02}.summary-icon{width:29px;height:29px;display:grid;place-items:center;background:#eaf5e3;border-radius:9px;color:#259337;font-size:23px}.report-summary small{margin:0;color:#284333;font-size:12px;font-weight:600}.report-summary strong{color:#1c7133;font-size:18px;text-align:right;line-height:1.35}.summary-outgoing .summary-icon{color:#b95240;background:#fbefeb}.summary-outgoing strong{color:#a94c36}.summary-closing strong{color:#183c29}.presets{gap:6px}.presets button{background:#f5f7f3;border-color:#e0e7de;font-size:11px;border-radius:11px}.presets button.selected{background:#168132;color:#fff;border-color:#168132;box-shadow:0 2px 6px #1a662e15}.list-heading h3{font-size:14px}.text-button{font-size:11px}.production-check{padding:12px;background:#f5f8f0;border:1px solid #e4ebdd;border-radius:12px}nav{background:#fffffff5;box-shadow:0 -4px 16px #163d2705;border-color:#e2e9df}nav button{border-radius:12px}nav button.active{background:#e9f3e4;color:#176e32}.quick button{border-radius:12px}.quick button:first-child{background:#168132;border-color:#168132}.doc-row strong{font-size:13px}.doc-row small{font-size:11px;line-height:1.65}@media(max-width:360px){.card{padding:15px 12px}.document-date{gap:6px}.document-date .today-button{padding:0 10px}.report-summary strong{font-size:16px}.report-summary small{font-size:11px}.product-icon{flex-basis:31px;height:34px;font-size:20px}.stock-row{padding:12px;gap:8px}.stock-row .quantity{font-size:16px}}

.stock-date-tag{display:inline-block;margin-top:8px;padding:4px 8px;font-size:10px}

/* Tighter spacing between the header and section titles. */
main{padding-top:13px}.section-title{margin-bottom:14px}

.pdf-export{width:100%;margin:17px 0 0;min-height:45px;border:1px solid #cbdcc8;border-radius:12px;background:#eaf2e5;color:#22622f;font-weight:650;font-size:13px}

/* Animated banner-inspired header; controls remain native and usable. */
header{position:relative;isolation:isolate;overflow:hidden;background:#0a2028;min-height:96px;padding:calc(18px + env(safe-area-inset-top)) 21px 29px;gap:13px}header::before{content:"";position:absolute;z-index:0;inset:-45% -50%;background:radial-gradient(ellipse at 22% 40%,#86c62e 0,#237f48 17%,transparent 44%),radial-gradient(ellipse at 74% 65%,#00aeb5 0,#00659b 22%,transparent 50%),linear-gradient(115deg,#102a2c,#093643 60%,#09357a);animation:aurora-drift 6s ease-in-out infinite alternate;will-change:transform;pointer-events:none}header::after{content:"";position:absolute;z-index:1;inset:-25%;background:linear-gradient(151deg,transparent 47%,#5affd52b 47.3%,#0799c329 63%,transparent 63.3%),linear-gradient(158deg,transparent 61%,#01e1bf30 61.3%,transparent 83%);animation:aurora-ribbon 8s ease-in-out infinite alternate;pointer-events:none}header .brand-icon{flex:0 0 42px;height:44px;width:42px;border-radius:13px;background:linear-gradient(145deg,#4e703d55,#10262eaa);border:1px solid #a3e76280;color:#b2e821;box-shadow:0 0 15px #8cde3825,inset 0 1px 2px #d9ffb04d;font-size:20px;font-weight:800;letter-spacing:-1px}header>div:nth-child(2){border-left:1px solid #b6c9c957;padding-left:13px;min-width:0}header .eyebrow{font-size:9px;letter-spacing:.9px;color:#c4d3d5;white-space:nowrap}header h1{font-size:22px;letter-spacing:-.5px;color:#f3f9f8;line-height:1.15;text-shadow:0 1px 1px #001a1f55}header .icon-button{flex:0 0 37px;width:37px;height:39px;border-radius:12px;color:#f0f8ff;background:linear-gradient(145deg,#3184bf36,#9fbcc512);border:1px solid #b6d9e454;box-shadow:inset 0 1px 0 #d7f3ff22}header .icon-button svg{display:block;width:24px;height:24px;margin:auto}header .icon-button:disabled{opacity:.6}header .icon-button:hover:not(:disabled){background:#68c2df28}@media(max-width:360px){header{padding-left:15px;padding-right:15px;gap:10px}header h1{font-size:20px}header .eyebrow{font-size:8px;letter-spacing:.6px}header>div:nth-child(2){padding-left:10px}header .brand-icon{flex-basis:38px;width:38px;height:40px;font-size:18px}}@media(prefers-reduced-motion:reduce){header::before{content:"";position:absolute;z-index:0;inset:-45% -50%;background:radial-gradient(ellipse at 22% 40%,#86c62e 0,#237f48 17%,transparent 44%),radial-gradient(ellipse at 74% 65%,#00aeb5 0,#00659b 22%,transparent 50%),linear-gradient(115deg,#102a2c,#093643 60%,#09357a);animation:aurora-drift 6s ease-in-out infinite alternate;will-change:transform;pointer-events:none}}


/* Visible autonomous motion: no hover is required. */
header>*{position:relative;z-index:2}header::before{animation-delay:-2s}header .brand-icon{box-shadow:0 0 16px #96e5365c,inset 0 1px 2px #e0ffc26b;text-shadow:0 0 13px #a6ed5e66}
@keyframes aurora-drift{from{transform:translate3d(-14%,-5%,0) scale(1.02)}to{transform:translate3d(17%,9%,0) scale(1.08)}}
@keyframes aurora-ribbon{from{transform:translate3d(-4%,0,0);opacity:.45}to{transform:translate3d(9%,-7%,0);opacity:.95}}
button{transition:background-color .15s ease,border-color .15s ease,box-shadow .15s ease,transform .15s ease}
.primary,.quick button,.secondary,.pdf-export,.add-line{position:relative;isolation:isolate;overflow:hidden}
.primary:not(:disabled),.quick button:first-child:not(:disabled){background:linear-gradient(115deg,#0d7035,#119451 65%,#168754);animation:button-halo 3.6s ease-in-out infinite}
.primary::after,.quick button::after,.secondary::after,.pdf-export::after,.add-line::after{content:"";position:absolute;pointer-events:none;left:-55%;top:-50%;width:45%;height:200%;background:linear-gradient(90deg,transparent,#d5ffdf55,transparent);transform:translateX(0) skewX(-20deg);animation:button-sheen 3.6s ease-in-out infinite}
.quick button:nth-child(2)::after,.secondary::after,.pdf-export::after,.add-line::after{background:linear-gradient(90deg,transparent,#72cf8b38,transparent);animation-duration:4.5s;animation-delay:-1.8s}
#receipt-form>.primary::after{animation-delay:-.8s}#dispatch-form>.primary::after{animation-delay:-1.7s}#report-form>.primary::after{animation-delay:-2.4s}
.primary:disabled,.quick button:disabled{animation:none}.primary:disabled::after,.quick button:disabled::after,.secondary:disabled::after,.pdf-export:disabled::after,.add-line:disabled::after{animation:none;content:none}
@keyframes button-sheen{0%{transform:translateX(0) skewX(-20deg);opacity:0}12%{opacity:.85}68%{transform:translateX(400%) skewX(-20deg);opacity:.75}78%,100%{transform:translateX(400%) skewX(-20deg);opacity:0}}
@keyframes button-halo{0%,100%{box-shadow:0 3px 10px #16834725}50%{box-shadow:0 0 0 1px #9ce4ad60,0 0 17px #39b36f5c,0 4px 11px #146c3b30}}
nav button.active{animation:active-tab-glow 3.4s ease-in-out infinite}
@keyframes active-tab-glow{0%,100%{box-shadow:inset 0 0 0 1px #63b47c10}50%{box-shadow:inset 0 0 18px #62cd7926,inset 0 0 0 1px #75bd7f40}}
@media(hover:hover){.primary:hover:not(:disabled),.quick button:hover:not(:disabled){transform:translateY(-1px);border-color:#4faa69}.secondary:hover:not(:disabled),.pdf-export:hover:not(:disabled),.add-line:hover:not(:disabled){background-color:#e0efda}}
button:active:not(:disabled){transform:translateY(1px)}
@media(prefers-reduced-motion:reduce){header::before,header::after,.primary:not(:disabled),.quick button:first-child:not(:disabled),nav button.active,.primary::after,.quick button::after,.secondary::after,.pdf-export::after,.add-line::after{animation:none;will-change:auto}.primary::after,.quick button::after,.secondary::after,.pdf-export::after,.add-line::after{content:none}button{transition:none}}

/* Equal treatment for both quick warehouse actions. */
.quick{gap:11px}.quick button{display:flex;align-items:center;justify-content:center;gap:9px;min-height:53px;border-radius:14px;border:1px solid #ffffff26;font-size:13px;font-weight:650;color:#fff;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}.quick button span{font-size:inherit;margin:0;position:relative;z-index:1}.quick button svg{width:22px;height:22px;flex:0 0 22px;position:relative;z-index:1}.quick button:first-child:not(:disabled){background:linear-gradient(115deg,#08763c,#11a257 65%,#138c4b);border-color:#3aaa6a88}.quick button:nth-child(2):not(:disabled){background:linear-gradient(115deg,#074f57,#07878a 65%,#086b79);border-color:#41b5b088;animation:dispatch-halo 3.6s ease-in-out infinite}.quick button:nth-child(2)::after{background:linear-gradient(90deg,transparent,#c6fffa85,transparent);animation:button-sheen 3.6s ease-in-out -.9s infinite}.quick button:first-child::after{background:linear-gradient(90deg,transparent,#d5ffdf80,transparent);animation-delay:-.1s}@keyframes dispatch-halo{0%,100%{box-shadow:0 3px 10px #087b8425}50%{box-shadow:0 0 0 1px #8ae0db60,0 0 17px #36b5c05c,0 4px 11px #0e647b30}}@media(hover:hover){.quick button:first-child:hover:not(:disabled){box-shadow:0 0 22px #36bd7066;border-color:#a6e9bc}.quick button:nth-child(2):hover:not(:disabled){box-shadow:0 0 22px #27bec066;border-color:#a2e9e6}}@media(max-width:360px){.quick{gap:8px}.quick button{font-size:11px;gap:6px}.quick button svg{width:19px;height:19px;flex-basis:19px}}@media(prefers-reduced-motion:reduce){.quick button:nth-child(2):not(:disabled),.quick button:nth-child(2)::after{animation:none}}

/* Only the main green actions shimmer; navigation and other controls stay still. */
nav button.active,.quick button:nth-child(2):not(:disabled){animation:none}.quick button:nth-child(2):not(:disabled){box-shadow:0 3px 8px #164d5314}.quick button:nth-child(2)::after,.secondary::after,.pdf-export::after,.add-line::after{content:none;animation:none}.quick button:nth-child(2):hover:not(:disabled){box-shadow:0 3px 9px #164d5320}

/* The main dispatch action shares the primary shimmer. */
.quick button:nth-child(2):not(:disabled){animation:dispatch-halo 3.6s ease-in-out infinite}.quick button:nth-child(2)::after{content:"";background:linear-gradient(90deg,transparent,#c6fffa85,transparent);animation:button-sheen 3.6s ease-in-out -.9s infinite}.quick button:nth-child(2):disabled::after{content:none;animation:none}@media(prefers-reduced-motion:reduce){.quick button:nth-child(2):not(:disabled),.quick button:nth-child(2)::after{animation:none}.quick button:nth-child(2)::after{content:none}}

/* Progressive settling: attention belongs to the warehouse work. */
html[data-motion="calm"] header::before{animation-duration:12s}html[data-motion="calm"] header::after{animation-duration:16s;opacity:.5}
html[data-motion="calm"] .primary:not(:disabled),html[data-motion="calm"] .quick button:not(:disabled),html[data-motion="calm"] .primary::after,html[data-motion="calm"] .quick button::after{animation-duration:8s}
html[data-motion="quiet"] header::before{animation-duration:22s}html[data-motion="quiet"] header::after{animation-duration:26s}
html[data-motion="quiet"] .primary:not(:disabled),html[data-motion="quiet"] .quick button:not(:disabled){animation:none;box-shadow:0 3px 8px #174d2710}
html[data-motion="quiet"] .primary::after,html[data-motion="quiet"] .quick button::after{animation-duration:18s;background:linear-gradient(90deg,transparent,#d5ffdf26,transparent)}
html[data-motion="still"] header::before,html[data-motion="still"] header::after{animation-play-state:paused;will-change:auto}
html[data-motion="still"] .primary:not(:disabled),html[data-motion="still"] .quick button:not(:disabled){animation:none;box-shadow:0 3px 8px #174d2710}
html[data-motion="still"] .primary::after,html[data-motion="still"] .quick button::after{animation:none;content:none}

/* Low-frequency motion from the first moment. */
html[data-motion="intro"] header::before{animation-duration:12s}html[data-motion="intro"] header::after{animation-duration:16s}
html[data-motion="intro"] .primary:not(:disabled),html[data-motion="intro"] .quick button:not(:disabled),html[data-motion="intro"] .primary::after,html[data-motion="intro"] .quick button::after{animation-duration:10s}
html[data-motion="calm"] header::before{animation-duration:18s}html[data-motion="calm"] header::after{animation-duration:22s}
html[data-motion="calm"] .primary:not(:disabled),html[data-motion="calm"] .quick button:not(:disabled),html[data-motion="calm"] .primary::after,html[data-motion="calm"] .quick button::after{animation-duration:15s}
html[data-motion="quiet"] .primary::after,html[data-motion="quiet"] .quick button::after{animation-duration:25s}

/* Unified controls: emerald actions, teal dispatch, quiet supporting controls. */
:root{--control-radius:12px;--surface-border:#dce6df;--emerald:#0d7249;--teal:#086b75}
nav{padding:8px 9px calc(8px + env(safe-area-inset-bottom));gap:5px;border:1px solid #dce6e1;border-bottom:0;border-radius:20px 20px 0 0;background:#fbfdfcf5;box-shadow:0 -5px 22px #163c2c09}
nav button{min-height:60px;padding:8px 3px;border-radius:13px;color:#6d837a;background:transparent;border:1px solid transparent;font-size:10px;font-weight:550;animation:none!important;transition:background-color .15s ease,color .15s ease,box-shadow .15s ease,transform .15s ease}
nav svg{width:23px;height:23px;margin:0 auto 6px;stroke-width:1.7}
nav button.active{color:#fff;background:linear-gradient(125deg,#075038,#0b7950);border-color:#2c906e;box-shadow:inset 0 1px 0 #ffffff20,0 3px 8px #075a3626;font-weight:600;animation:none!important}
nav button.active[data-go="dispatch"]{background:linear-gradient(125deg,#074e59,#087e88);border-color:#379b9f;box-shadow:inset 0 1px 0 #ffffff20,0 3px 8px #065c6b26}
nav button.active svg{filter:drop-shadow(0 1px 2px #00281925)}nav button:active{transform:scale(.98)}
.card,.list,.report-summary>div{border-color:var(--surface-border);box-shadow:0 3px 12px #163d2704}
input,select,textarea,.quantity-field{border-radius:var(--control-radius);border-color:#d9e4dd;background:#fcfefc}
input:focus,select:focus,textarea:focus{outline:2px solid #59ab854f;border-color:#66a889;outline-offset:1px}
.quantity-field:focus-within{outline:2px solid #59ab854f;border-color:#66a889;outline-offset:1px}.quantity-field input{border:0;border-radius:0;outline:none}
.secondary,.pdf-export,.add-line,.today-button,.text-button{border:1px solid #cfdfd5;border-radius:var(--control-radius);color:#246448;background:#f1f7f2;font-weight:600;box-shadow:inset 0 1px 0 #ffffff99;animation:none}
.secondary{padding:12px 13px;min-height:44px}.text-button{padding:9px 10px;min-height:36px;font-size:10px;white-space:nowrap}.pdf-export{min-height:46px;background:linear-gradient(125deg,#eef5ee,#e4efe9);color:#18553c}.add-line{border-style:dashed;background:#f8fbf8;font-size:12px}.document-date .today-button{background:#edf5ef;color:#246448;border:1px solid #d5e4d8;min-height:44px}
.presets{gap:6px}.presets button{border:1px solid #dce5df;background:#f6f9f6;color:#5f786b;border-radius:10px;min-height:39px;font-weight:550;animation:none}.presets button.selected{border-color:#2c906e;background:linear-gradient(125deg,#075038,#0b7950);color:white;box-shadow:inset 0 1px 0 #ffffff20,0 2px 5px #075a361c}
.remove{background:#f6f9f6;color:#729080;border-color:#dce6df;border-radius:var(--control-radius)}
.production-check{border-color:#d5e5da;background:#f0f6f1;color:#2a5940;border-radius:var(--control-radius)}.production-check input{accent-color:#08764c}
.section-symbol{background:linear-gradient(135deg,#e6f1e8,#edf7f1);border:1px solid #dceade;color:#1f6c49;border-radius:13px}[data-page="dispatch"] .section-symbol{background:linear-gradient(135deg,#e6f1ee,#edf7f7);border-color:#d9e9e6;color:#086b75}
.product-icon{background:#eff6ed;border:1px solid #e5eddf}.stock-row:hover{background:#f3f8f3}.new-item summary{color:#236348;border:1px dashed #d1e1d5;border-radius:12px;padding:13px 14px;background:#f7faf6;font-size:12px}.new-item[open] summary{margin-bottom:10px}.history-head button{background:#edf5ef;border:1px solid #d9e7dd;color:#2d6d4b;border-radius:10px}
.list-heading{gap:8px}.list-heading h3{min-width:0}.list-heading .text-button{flex:0 0 auto}
@media(hover:hover){nav button:not(.active):hover{background:#eaf2ee;color:#245a40}.secondary:hover:not(:disabled),.text-button:hover:not(:disabled),.document-date .today-button:hover:not(:disabled),.add-line:hover:not(:disabled),.pdf-export:hover:not(:disabled){background:#e7f1e9;border-color:#abcab4}.remove:hover:not(:disabled){background:#eaf1ec;color:#2c6046}}
@media(max-width:360px){nav{gap:3px;padding-left:6px;padding-right:6px}nav button{font-size:9px;min-height:57px}nav svg{width:21px;height:21px}.text-button{font-size:9px;padding:8px}.date-filter{gap:6px}.list-heading h3{font-size:13px}}
@media(prefers-reduced-motion:reduce){nav button{transition:none}}

/* Report totals use the same emerald/teal/slate visual language. */
.report-summary{gap:9px}.report-summary>div{position:relative;grid-template-columns:37px minmax(0,1fr) auto;padding:13px 15px;border-radius:15px;background:linear-gradient(110deg,#f7fbf8,#ffffff 60%);border:1px solid #dce7e0;box-shadow:0 3px 10px #133d2705;overflow:hidden}.report-summary>div::before{content:"";position:absolute;inset:13px auto 13px 0;width:3px;background:#0b7950;border-radius:0 3px 3px 0}.report-summary .summary-icon{width:34px;height:35px;border-radius:10px;background:linear-gradient(125deg,#075038,#0b7950);border:1px solid #318d6c;color:#fff;box-shadow:inset 0 1px 0 #ffffff26,0 2px 5px #075a361c}.summary-icon svg{width:21px;height:21px}.report-summary small{color:#315444;font-size:12px;font-weight:600}.report-summary strong{color:#0d6844;font-size:19px;font-weight:650;letter-spacing:-.3px;font-variant-numeric:tabular-nums}.report-summary .summary-outgoing{background:linear-gradient(110deg,#f4fafa,#fff 60%)}.report-summary .summary-outgoing::before{background:#087985}.report-summary .summary-outgoing .summary-icon{background:linear-gradient(125deg,#074e59,#087e88);border-color:#39969a;box-shadow:inset 0 1px 0 #ffffff26,0 2px 5px #065c6b1c}.report-summary .summary-outgoing strong{color:#086b75}.report-summary .summary-closing::before{background:#284e47}.report-summary .summary-closing .summary-icon{background:linear-gradient(125deg,#16362f,#2f5f50);border-color:#547a64;box-shadow:inset 0 1px 0 #ffffff26,0 2px 5px #153c291c}.report-summary .summary-closing strong{color:#224b3a}@media(max-width:360px){.report-summary>div{padding:12px;gap:8px;grid-template-columns:33px minmax(0,1fr) auto}.report-summary strong{font-size:16px}.report-summary small{font-size:11px}.report-summary .summary-icon{width:31px;height:32px}}

/* Quiet report totals: information, not action buttons. */
.report-summary>div,.report-summary .summary-outgoing{background:#fff;box-shadow:none;border-color:#e2e9e3}.report-summary>div::before{content:none}.report-summary .summary-icon,.report-summary .summary-outgoing .summary-icon,.report-summary .summary-closing .summary-icon{background:#f0f5f1;border:0;box-shadow:none;color:#628273}.report-summary .summary-outgoing .summary-icon{background:#f0f5f5;color:#668387}.report-summary .summary-closing .summary-icon{background:#f1f4f2;color:#6d8075}.summary-icon svg{width:19px;height:19px}.report-summary small{color:#52695b;font-weight:550}.report-summary strong,.report-summary .summary-outgoing strong,.report-summary .summary-closing strong{color:#355746;font-size:17px;font-weight:550;letter-spacing:0}

body.awaiting-auth main>[data-page],body.awaiting-auth nav{display:none!important}#access-screen{margin-top:8px}#access-screen h2{font-size:23px}.access-caption{font-size:13px;color:var(--muted);line-height:1.6;margin:0}#access-form{display:grid;gap:16px}

/* Local vector vegetables render independently of OS emoji fonts. */
.product-icon svg{display:block;width:30px;height:32px;flex:none}.product-inline-icon{display:inline-flex;vertical-align:middle;align-items:center}.product-inline-icon svg{display:block;width:19px;height:21px}.product-select{position:relative;display:block;margin-top:7px}.product-select select{margin-top:0;padding-left:45px}.product-select-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);display:flex;pointer-events:none}.product-select-icon svg{width:24px;height:26px}
