*{box-sizing:border-box}body{margin:0;background:#f5f6f3;color:#22382f;font:15px 'Segoe UI',Arial,sans-serif}aside{width:235px;background:#183c32;color:#fff;position:fixed;inset:0 auto 0 0;padding:34px 22px}.brand{font-size:27px;font-weight:700;letter-spacing:-1px}aside small{display:block;color:#9fb9ae;font-size:10px;letter-spacing:2px;margin:15px 0 40px}nav button{display:block;width:100%;text-align:left;background:none;color:#c1d3cb;border:0;margin:7px 0;padding:14px}nav button.active{background:#31574b;color:white}button,.button{cursor:pointer;border:1px solid #d8dfd8;border-radius:7px;background:white;color:#284639;font:inherit;padding:10px 15px;display:inline-block}button:hover,.button:hover{filter:brightness(.96)}.asidefoot{position:absolute;bottom:30px;font-size:12px;line-height:1.8;color:#c2d3cb}.asidefoot span{font-size:10px;color:#95ada2}main{margin-left:235px;padding:0 42px 24px;max-width:1700px}header{height:93px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dce2da;color:#78877d;font-size:13px}.title{display:flex;justify-content:space-between;align-items:center;margin:35px 0 25px}h1{font-size:32px;margin:5px 0 10px;letter-spacing:-1px}h2{font-size:19px;margin:0 0 20px}p{line-height:1.6}.muted{color:#7a877e;font-size:13px}.eyebrow{font-size:11px;letter-spacing:2px;color:#7c897c;text-transform:uppercase}.primary{background:#235b46;color:white;border-color:#235b46}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin:25px 0}.stat,.panel{background:#fff;border:1px solid #e0e5dd;border-radius:12px;padding:24px}.stat small{color:#778579}.stat strong{font-size:31px;display:block;margin:13px 0 6px}.stat em{font-size:12px;font-style:normal;color:#8b968c}.accent{background:#eaf0dc}.grid{display:grid;grid-template-columns:1.5fr 1fr;gap:22px}.panel{margin-bottom:22px}.row{display:flex;justify-content:space-between;align-items:center;gap:16px}.product{border-top:1px solid #edf0e9;padding:22px 0 5px}.pill{font-size:11px;padding:5px 9px;border-radius:20px;background:#eff2e8;color:#5f7155}.warn{color:#ae682d;background:#fff3e2}.bar{background:#ecf0e7;border-radius:9px;height:7px;margin:15px 0 10px;overflow:hidden}.bar i{display:block;height:100%;background:#6c9361}.numbers{font-size:12px;color:#7c887d}.material{padding:18px 0;border-top:1px solid #edf0e9}.material strong{font-size:23px}table{width:100%;border-collapse:collapse;font-size:13px;text-align:left}th{color:#7b887d;font-size:11px;font-weight:500;background:#f7f9f4}td,th{padding:14px 10px;border-bottom:1px solid #e8ede3}label{display:block;font-size:12px;color:#66796c;margin-bottom:16px}input,select{display:block;width:100%;border:1px solid #d6ded3;border-radius:6px;padding:11px;font:inherit;color:#253d30;background:#fff;margin-top:6px}.formgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:0 20px}.actions{display:flex;justify-content:flex-end;gap:10px}dialog{width:470px;max-width:95vw;border:0;border-radius:14px;padding:30px;color:#22382f}dialog::backdrop{background:#14372970}footer{color:#8a958b;font-size:11px;margin-top:25px;line-height:1.8}#toast{position:fixed;bottom:25px;right:25px;background:#183c32;color:white;border-radius:9px;padding:16px;display:none}.button{margin:0}.empty{padding:25px;color:#7a877e}.note{background:#eef2e4;padding:16px;border-radius:8px;font-size:12px;line-height:1.7}a{color:inherit}@media(max-width:1050px){aside{width:190px;padding:25px 12px}main{margin-left:190px;padding:0 22px}.stats{grid-template-columns:repeat(2,1fr)}.grid{grid-template-columns:1fr}}@media(max-width:650px){aside{position:static;width:100%;padding:18px}.brand{font-size:22px}aside small,.asidefoot{display:none}nav{display:flex;overflow:auto;margin-top:12px}nav button{white-space:nowrap;padding:9px;font-size:12px}main{margin:0;padding:0 16px}.title{align-items:flex-start;gap:10px}h1{font-size:26px}.stats{gap:10px}.stat{padding:16px}.stat strong{font-size:25px}.formgrid{grid-template-columns:1fr}.panel{padding:18px;overflow:auto}header{height:80px;gap:8px}header button,.button{font-size:12px;padding:8px}.title button{font-size:12px}}
main{max-width:none}nav button{font-size:14px}.tablewrap{overflow-x:auto;max-width:100%;margin:8px 0 16px}table{min-width:700px}th{white-space:nowrap}td{vertical-align:top;min-width:88px}td:first-child{min-width:140px}td small{font-size:11px;color:#7a877e;line-height:1.8}.short{color:#a65d25;background:#fff8ed}.voided{opacity:.55}.voided td:first-child::after{content:' · tühistatud';font-size:10px}input:focus,select:focus{outline:2px solid #8cab75;outline-offset:1px}.formgrid{margin-top:16px}.note{margin-top:18px}.panel>h2{margin-top:2px}.row h2{margin:0}#usagePreview,#stockPreview{line-height:1.8}.tablewrap button{font-size:12px;padding:7px 10px}.actions{margin-top:20px}.formgrid label{font-size:13px}.title{margin-top:30px}.stats strong{font-variant-numeric:tabular-nums}main footer{padding-bottom:15px}@media(min-width:1600px){.formgrid{grid-template-columns:repeat(4,1fr)}}@media(max-width:650px){.row{align-items:flex-start;flex-wrap:wrap}.tablewrap{margin-right:-3px}nav button{font-size:12px}.stats strong{font-size:23px}}
[hidden]{display:none!important}aside{overflow-y:auto}.asidefoot{position:static;margin-top:36px;padding-bottom:10px}header>div{display:flex;align-items:center;gap:8px;flex-shrink:0}.button{white-space:nowrap}@media(max-width:1050px){.formgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.formgrid{grid-template-columns:1fr}.asidefoot{display:none}}

/* Top navigation: full-width workspace. */
aside{position:sticky;top:0;inset:auto;width:100%;height:auto;overflow:visible;z-index:20;display:flex;align-items:center;flex-wrap:wrap;gap:12px 30px;padding:16px 28px;box-shadow:0 2px 12px #17382c15}.brand{font-size:25px;white-space:nowrap}aside>small{display:none}aside nav{display:flex;flex-wrap:wrap;gap:6px;flex:1}nav button{display:inline-flex;width:auto;align-items:center;white-space:nowrap;margin:0;padding:11px 13px;font-size:14px}.asidefoot{display:none}main{margin-left:0;padding:0 28px 28px;max-width:1800px;margin-right:auto;margin-left:auto}header{height:75px}.stock-actions{display:flex;gap:6px;flex-wrap:wrap}.stock-actions button{white-space:nowrap}.tablewrap{overflow-x:auto}th{white-space:normal}label input,label select{min-width:0}.formgrid label{min-width:0}#toast{z-index:40}@media(max-width:1050px){aside{width:100%;padding:14px 20px;gap:12px}main{margin:0;padding:0 20px 24px}nav button{font-size:13px;padding:9px 10px}aside nav{flex-basis:100%;margin:0}.formgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){aside{position:static;padding:15px 12px}.brand{font-size:23px}aside nav{overflow-x:auto;flex-wrap:nowrap;padding-bottom:3px}nav button{font-size:12px;flex-shrink:0}main{padding:0 12px 20px}.formgrid{grid-template-columns:1fr}header{height:75px}.actions{flex-wrap:wrap}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

button.danger{background:#fff1ed;color:#a13927;border-color:#efcfc6}nav button{padding:10px 11px}aside{gap:10px 20px}

.new-stock-fields{display:contents}.new-stock-fields[hidden]{display:none!important}

.extra-recipe-row{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:14px;align-items:end;border-bottom:1px solid #e0e5dd;padding:10px 0}.extra-recipe-row>button{margin-bottom:16px}@media(max-width:700px){.extra-recipe-row{grid-template-columns:1fr 1fr}}

.receipt-photo-field{grid-column:1/-1}.receipt-photo-field small{display:block;margin:8px 0;color:#78877d}.receipt-photo-previews{display:flex;flex-wrap:wrap;gap:12px}.receipt-photo-previews>div{width:150px;border:1px solid #d8dfd8;padding:8px;border-radius:8px}.receipt-photo-previews img{width:100%;height:130px;object-fit:contain}.receipt-photo-previews small{overflow-wrap:anywhere}.receipt-image-dialog{width:min(1000px,95vw);max-height:94vh;overflow:auto}.receipt-image-dialog>img,.receipt-image-dialog video{display:block;max-width:100%;max-height:70vh;margin:18px auto}.receipt-photo-field .button{font-size:14px}

.ean-scan-panel{background:#edf3e5;border:1px solid #d2dec5;padding:20px;border-radius:10px;margin-bottom:24px}.ean-scan-panel>label{font-size:16px;font-weight:600}.ean-scan-panel input{font-size:21px;letter-spacing:2px}.ean-scan-panel p{font-size:13px;margin-bottom:0;line-height:1.7}

.excel-check{display:flex;align-items:center;gap:10px;font-size:14px}.excel-check input{width:18px;height:18px;margin:0}button:disabled{cursor:default;opacity:.45}#excelPreview{margin-top:24px}nav{min-width:0}

.shipping-pack-panel{border:1px solid #cfdcc2;background:#f5f8ee;padding:20px;border-radius:10px;margin:20px 0}.shipping-pack-panel small{display:block;line-height:1.7;color:#6a7c68}input[readonly]{background:#eef2e9;font-weight:600}

.delivery-client-panel{border:1px solid #d5dfd0;border-radius:10px;padding:20px;margin-bottom:20px;background:#f7faf4}

.auth-panel{max-width:540px;margin:55px auto}.permissions-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 22px;margin:20px 0}#accountBadge{font-size:12px;display:flex;gap:10px;align-items:center}#accountBadge:empty{display:none}header{height:auto;min-height:75px;flex-wrap:wrap;padding:12px 0;gap:12px}@media(max-width:650px){.permissions-grid{grid-template-columns:1fr}}

.food-recipe-line{border-bottom:1px solid #d5ddd3;padding:12px 0}.food-recipe-line button{align-self:end}.food-recipe-line input,.food-recipe-line select{min-width:0}#foodProductionUsage input{min-width:90px;width:110px}#foodProductionUsage select{max-width:290px}#foodImportPreviewForm td select{max-width:260px}#foodImportPreviewForm td input{width:110px}
/* Compact production overview; material detail is expanded only on request. */
.production-plan-wrap{overflow-x:auto;max-width:100%}.production-plan{width:100%;min-width:0;table-layout:fixed;font-size:12px}.production-plan th,.production-plan td{min-width:0!important;white-space:normal;overflow-wrap:anywhere;padding:10px 6px;line-height:1.45}.production-plan th{font-size:11px;vertical-align:bottom}.production-plan td small{font-size:11px;line-height:1.45}.production-plan .stock-actions{display:flex;flex-direction:column;align-items:stretch;gap:5px}.production-plan .stock-actions button{font-size:12px;padding:7px 5px;white-space:normal;min-width:0;width:100%}.production-plan th:last-child,.production-plan td:last-child{position:sticky;right:0;background:#fff;z-index:1;box-shadow:-3px 0 5px #1835280a}.production-plan th:last-child{background:#f3f6ef;z-index:2}.plan-materials summary{cursor:pointer;font-weight:600;line-height:1.5}.plan-materials summary::marker{color:#6f8b5e}.plan-materials .plan-shortage{display:block;color:#a65d25;font-weight:400}.plan-material-list{max-height:280px;overflow:auto;margin-top:8px}.plan-material-list>div{padding:6px 4px;border-bottom:1px solid #e4eadd}.plan-material-list b{font-size:11px;font-weight:500}.plan-material-list small{display:block}.production-plan .plan-material-list .short{background:#fff8ed}
@media(max-width:1100px){.production-plan{min-width:940px}.production-plan th:last-child,.production-plan td:last-child{width:110px}}
