:root{font-family:DM Sans,Inter,system-ui,sans-serif;font-synthesis:none;color:#24332d;background:#f7f8f4;font-weight:400;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.58;cursor:not-allowed}h1,h2,h3,p{margin-top:0}h1,h2{letter-spacing:-.025em}h1{font-size:36px;line-height:1.15}h2{font-size:21px}p{line-height:1.62}a{color:inherit}.auth-page{display:grid;grid-template-columns:47% 53%;min-height:100vh}.auth-aside{background:linear-gradient(135deg,#143d34,#255e4e 72%,#447864);color:#fff;padding:10vh 10%;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;position:relative}.brand-mark{width:64px;height:64px;border:1px solid #ffffff60;background:#ffffff1a;border-radius:18px;display:grid;place-items:center;color:#fff}.brand-mark.small{width:36px;height:36px;border-radius:11px;background:#23634f;border:0;flex-shrink:0}.auth-aside h1{font:600 clamp(45px,5vw,80px)/1.12 "Playfair Display",Georgia,serif;margin:34px 0 14px}.auth-aside em{color:#c0d9a5;font-style:normal}.auth-aside p{font-size:18px;color:#d9e8dd}.brand-footer{position:absolute;bottom:8%;font-size:10px;letter-spacing:.23em;color:#c2d6c9}.auth-panel{display:grid;place-items:center;padding:50px 20px;background:#fafbf8}.auth-form{width:min(410px,100%)}.auth-form h2{font:600 32px Playfair Display,serif;margin:14px 0}.auth-form>p{color:#6b796f;margin-bottom:27px}.auth-form small{color:#8b968f;display:block;margin-top:25px;line-height:1.5}.eyebrow{font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#638876;font-size:10px}.form-stack{display:grid;gap:16px}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field>span{color:#3d5146;font-size:12px;font-weight:700}.field input,.field select,.field textarea,.tools select{background:#fff;border:1px solid #dce5dc;border-radius:8px;padding:12px 13px;outline:0;width:100%;color:#283d33}.field textarea{resize:vertical}.field input:focus,.field select:focus,.field textarea:focus,.search input:focus{border-color:#4a9574;box-shadow:0 0 0 3px #bcdccb66}.primary-btn{background:#22674e;color:#fff;border:1px solid #22674e;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:12px 18px;border-radius:9px;font-size:13px;font-weight:700;min-height:43px;white-space:nowrap}.primary-btn:hover{background:#174f3b}.secondary-btn{color:#215f49;background:#ecf5ee;border:1px solid #cce2d1;border-radius:8px;display:inline-flex;align-items:center;gap:9px;padding:11px 16px;font-weight:700;font-size:13px;justify-content:center}.secondary-btn:hover{background:#e0f0e4}.icon-btn{border:0;background:transparent;color:inherit;display:inline-flex;align-items:center;justify-content:center;min-width:29px;min-height:29px;border-radius:7px}.icon-btn:hover{background:#e7eee9}.app-shell{display:grid;grid-template-columns:242px minmax(0,1fr);min-height:100vh}.sidebar{background:#153c32;color:#f8fcf9;display:flex;flex-direction:column;min-height:100vh;padding:25px 12px 13px;position:sticky;top:0;height:100vh}.logo{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:600;padding:0 13px 30px;cursor:pointer}.logo strong{display:block;letter-spacing:.02em;font-size:11px;color:#b8d4c0}.sidebar-label,.sidebar-section>span{font-size:10px;letter-spacing:.13em;color:#9db6a8;font-weight:700;padding:11px 14px}.nav-link{display:flex;align-items:center;gap:11px;padding:11px 13px;border:0;border-radius:8px;background:transparent;text-align:left;color:#bdd2c5;width:100%;font-weight:600;font-size:13px;margin:2px 0}.nav-link:hover{background:#ffffff12;color:#fff}.nav-link.active{background:#ffffff1d;color:#fff}.sidebar-section{border-top:1px solid #ffffff20;margin:19px 0 8px;padding-top:12px}.sidebar-section>span{display:block;padding-bottom:6px}.sidebar-section>strong{font-size:14px;font-weight:600;display:block;padding:0 14px 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-grow{flex:1}.sidebar-bottom{border-top:1px solid #ffffff28;padding:15px 8px 1px;display:flex;align-items:center;gap:9px}.avatar{display:grid;place-items:center;background:#558f6d;color:#fff;width:32px;height:32px;border-radius:50%;font-weight:700;flex-shrink:0}.account{overflow:hidden;flex:1}.account strong,.account small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.account strong{font-size:12px}.account small{font-size:10px;color:#a9c4b3}.main-area{min-width:0}.topbar{height:69px;background:#fff;border-bottom:1px solid #e6ebe5;display:flex;justify-content:space-between;align-items:center;padding:0 40px;gap:20px}.crumb{display:flex;align-items:center;gap:12px;font-size:12px;color:#748277;min-width:0}.crumb strong{color:#274634;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.slash{color:#b3beb5}.top-right{display:flex;align-items:center;gap:9px;font-size:11px;color:#77877b}.status-dot{background:#46aa76;width:7px;height:7px;border-radius:50%;display:inline-block;flex-shrink:0}.user-chip{border-left:1px solid #e2e8e2;margin-left:13px;padding-left:16px;color:#385746;font-weight:700}.content{max-width:1450px;margin:0 auto;padding:37px 39px 65px}.page-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:25px;margin-bottom:27px}.page-intro h1{font:600 35px Playfair Display,Georgia,serif;margin:9px 0 7px;color:#1d3c30}.page-intro p{color:#7d8a80;margin:0}.restaurant-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:18px;align-items:stretch}.restaurant-card{background:#fff;border:1px solid #e3e9e2;border-radius:15px;text-align:left;padding:26px;transition:transform .15s,box-shadow .15s;display:flex;flex-direction:column;min-height:265px;position:relative;color:#24332d}.restaurant-card:hover{transform:translateY(-2px);box-shadow:0 12px 30px #173e2717;border-color:#bad4c3}.restaurant-emblem{width:52px;height:52px;display:grid;place-items:center;border-radius:14px;background:#e6f0e6;color:#2c7953}.restaurant-status{position:absolute;right:22px;top:29px;display:flex;align-items:center;gap:6px;color:#689b7b;letter-spacing:.09em;font-size:10px;font-weight:700}.restaurant-card h2{margin:17px 0 3px;font:600 26px Playfair Display,Georgia,serif}.restaurant-card p{font-size:12px;color:#859085;margin-bottom:15px}.restaurant-meta{display:flex;gap:10px;flex-wrap:wrap;color:#678373;font-size:11px;margin-top:auto}.restaurant-meta span{background:#f2f6f2;border-radius:5px;padding:5px 8px}.restaurant-action{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #edf0eb;margin-top:18px;padding-top:16px;font-weight:700;color:#216d4c}.information-banner{background:#eff5ed;border:1px solid #dceadc;color:#4b755d;padding:16px 20px;display:flex;gap:11px;align-items:center;margin-top:27px;border-radius:10px;font-size:12px}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}.stat-card{background:#fff;border:1px solid #e4eae3;border-radius:12px;padding:19px 20px;position:relative;min-height:160px}.stat-icon{width:37px;height:37px;background:#edf4ee;border-radius:9px;display:grid;place-items:center;color:#387958;margin-bottom:14px}.stat-card small{display:block;color:#7a897d;font-weight:600;font-size:11px}.stat-card strong{display:block;font-size:29px;color:#234e3b;margin:4px 0}.stat-card>span{font-size:10px;color:#97a298}.dashboard-cards{display:grid;grid-template-columns:1.3fr 1fr;gap:17px;margin-top:20px}.panel{background:#fff;border:1px solid #e3ebe2;border-radius:12px;padding:24px;min-width:0}.panel h2{font-size:17px;margin:0 0 4px;color:#294838}.muted{color:#87948a!important;font-size:12px}.level-line{display:grid;grid-template-columns:65px 1fr 25px;gap:14px;align-items:center;margin:22px 0;font-size:12px;color:#526e58}.level-line .bar{height:7px;border-radius:99px;background:#ecf0ec;overflow:hidden}.level-line .bar i{display:block;height:100%;background:#659b76;border-radius:99px}.level-line strong{text-align:right}.panel-feature{background:linear-gradient(140deg,#eef5ee,#fcfcf8)}.feature-icon{color:#3f8c60;margin:10px 0 20px}.panel-feature h2{font:600 24px Playfair Display,Georgia,serif}.panel-feature p{color:#788979;margin:12px 0 26px}.table-panel{padding:0;overflow:hidden}.tools{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:19px 22px;border-bottom:1px solid #e9eee8}.search{position:relative;flex:1;max-width:400px;color:#92a397}.search svg{position:absolute;top:12px;left:12px}.search input{height:40px;padding:0 13px 0 38px;width:100%;border:1px solid #e0e8e0;border-radius:7px;outline:0;font-size:12px}.tools select{width:auto;font-size:12px;padding:10px 12px;max-width:270px}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:12px;text-align:left}th{padding:14px 20px;font-weight:700;color:#7f9285;background:#fafbf9;font-size:10px;letter-spacing:.065em;text-transform:uppercase;white-space:nowrap}td{padding:15px 20px;border-top:1px solid #edf1eb;color:#647569;white-space:nowrap}td strong{color:#2b4537;font-weight:700}.mono{font-family:ui-monospace,monospace;font-size:11px;color:#879a8b}.type-chip{display:inline-block;background:#edf1ed;color:#617765;border-radius:6px;padding:6px 9px;font-size:10px;font-weight:700}.type-chip.olive{color:#3b7f59;background:#e8f4ec}.table-action{background:none;border:0;color:#288057;font-size:11px;font-weight:700;display:inline-flex;gap:7px;align-items:center;padding:6px}.table-action:hover{text-decoration:underline}.table-footer{padding:14px 20px;border-top:1px solid #edf0eb;color:#8a9b8d;font-size:11px;display:flex;gap:9px;align-items:center}.empty{text-align:center;color:#8b988d;padding:50px 20px;font-size:13px}.alert{border-radius:9px;padding:13px 15px;font-size:12px;margin-bottom:19px;display:flex;align-items:center;justify-content:space-between;gap:10px}.alert.error{background:#fff1ef;border:1px solid #efcac3;color:#994f40}.alert.success{background:#eaf7ee;border:1px solid #b5debf;color:#28744b}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;background:#10251bcc;display:flex;justify-content:center;align-items:center;padding:22px}.modal{background:#fff;border-radius:15px;padding:24px;width:min(490px,100%);max-height:92vh;overflow-y:auto;box-shadow:0 30px 60px #0d2b1d44}.modal header{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.modal h2{margin:0;font:600 23px Playfair Display,serif}.modal .primary-btn{margin-top:6px}.modal .muted{margin-bottom:19px}.form-hint{border-left:3px solid #8abc9b;padding:11px 13px;color:#688776;background:#f1f7f0;font-size:11px;line-height:1.5}.back-btn{border:0;background:none;color:#4a795e;display:inline-flex;align-items:center;gap:8px;margin-bottom:20px;font-size:12px;font-weight:700}.recipe-top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 24px}.recipe-top h2{font:600 29px Playfair Display,Georgia,serif;margin:7px 0}.recipe-top p{margin:0;color:#849288}.recipe-layout{display:grid;grid-template-columns:1.25fr 1fr;gap:17px;align-items:start}.recipe-layout .panel{overflow:hidden}.recipe-layout .panel .table-scroll{margin:18px -24px}.recipe-layout .panel td,.recipe-layout .panel th{padding:13px}.component-form{border-top:1px solid #e7ede6;margin-top:19px;padding-top:20px;display:grid;grid-template-columns:1fr 1fr;gap:13px}.component-form .field:first-child,.component-form .secondary-btn{grid-column:1/-1}.cost-panel{min-height:330px}.big-money{font-size:33px;font-weight:700;color:#2c7750;letter-spacing:-.035em;margin-top:8px}.section-rule{height:1px;background:#e9f0e8;margin:19px 0}.cost-panel h3{font-size:12px;margin-bottom:12px;color:#465d4f}.cost-placeholder{display:grid;justify-items:center;text-align:center;padding:55px 12px;color:#7e9b88}.cost-placeholder h3{font-size:15px;margin:17px 0 2px}.cost-placeholder p{font-size:11px;line-height:1.6}.cost-tree-node{margin:10px 0;border-left:2px solid #deeee0;padding-left:10px;font-size:11px}.cost-tree-row{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:5px 0}.cost-tree-row strong{color:#2d6f50;text-align:right;white-space:nowrap;font-size:10px}.cost-tree-name{color:#344d3d;font-weight:600}.mini-type{display:inline-block;font-weight:700;font-size:9px;border-radius:4px;background:#ecf2ec;padding:3px 5px;margin-right:4px}.tree-child{margin:5px 0 5px 7px}.tree-child-label{font-size:10px;color:#94a399}.danger-btn{color:#b75e52}.full-loading{min-height:100vh;display:flex;flex-direction:column;gap:20px;align-items:center;justify-content:center;color:#29654c}@media(max-width:1050px){.stat-grid{grid-template-columns:repeat(2,1fr)}.dashboard-cards,.recipe-layout{grid-template-columns:1fr}.topbar{padding:0 24px}.content{padding:28px 25px}}@media(max-width:700px){.auth-page{grid-template-columns:1fr}.auth-aside{min-height:240px;padding:36px}.auth-aside h1{font-size:37px;margin:16px 0 5px}.brand-footer{display:none}.auth-panel{padding:40px 20px}.app-shell{grid-template-columns:1fr}.sidebar{position:relative;height:auto;min-height:auto;padding:10px;flex-direction:row;gap:5px;overflow-x:auto;align-items:center}.logo{padding:5px;margin-right:10px}.logo>div:last-child{display:none}.sidebar-label,.sidebar-section,.sidebar-bottom,.sidebar-grow{display:none}.nav-link{width:auto;white-space:nowrap;padding:11px}.topbar{height:52px;padding:0 15px}.top-right{display:none}.content{padding:25px 16px}.page-intro{align-items:stretch;flex-direction:column}.page-intro h1{font-size:30px}.page-intro .primary-btn{align-self:flex-start}.stat-grid{gap:10px}.stat-card{padding:15px;min-height:145px}.tools{padding:15px;align-items:stretch;flex-direction:column}.tools select,.search{max-width:none;width:100%}.recipe-top{align-items:start;flex-direction:column}.restaurant-grid,.component-form{grid-template-columns:1fr}.component-form .field:first-child,.component-form .secondary-btn{grid-column:auto}}.import-panel{max-width:1150px;margin:0 auto;padding:30px}.import-panel h2{margin:7px 0 12px}.import-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0}.import-steps>div{border:1px solid #dce5dc;border-radius:12px;padding:18px;background:#f8faf7}.import-steps strong{font-weight:700;color:#214c3c}.import-steps p{line-height:1.55;margin:8px 0 14px;color:#657569;font-size:13px}.import-steps a{display:inline-flex;text-decoration:none;font-size:13px}.import-file{max-width:510px;margin-top:12px}.import-file input{padding:14px;border:1px dashed #a7bdad;border-radius:8px;background:#fff;width:100%}.import-preview-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 12px;flex-wrap:wrap}.import-errors{display:block;margin:16px 0}.import-errors p{margin:5px 0}.selected-unit{margin:10px 0;background:#eef5ec;border:1px solid #c8dbce;color:#245842;border-radius:10px;padding:13px 15px;display:flex;gap:9px;align-items:center;flex-wrap:wrap;font-size:13px}.selected-unit strong{font-weight:750}.selected-unit.compact{padding:8px 12px}@media(max-width:850px){.import-steps{grid-template-columns:1fr}.import-panel{padding:18px}}.production-hint{padding:16px 20px;background:#f2f7f0;color:#456b55;font-size:12px;line-height:1.7;border-bottom:1px solid #e0e9df}.production-detail{display:grid;gap:18px}.production-detail h3{font-size:14px;color:#315640;margin:0}.production-quantities{display:grid;grid-template-columns:1fr 1fr;gap:10px}.production-quantities>div{background:#eef5ed;border-radius:10px;padding:14px}.production-quantities small,.production-quantities strong{display:block}.production-quantities small{color:#698772;font-size:11px}.production-quantities strong{font-size:18px;color:#285d43;margin-top:4px}.production-actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center}.production-actions .secondary-btn{min-height:43px}.danger-action{color:#a44941!important;background:#fff3ef!important;border-color:#eac6bf!important}.production-history{border-top:1px solid #e1e9e0;padding-top:16px}.production-event{border-left:3px solid #94bd99;background:#f7faf7;margin:12px 0;padding:12px 14px;border-radius:0 8px 8px 0}.production-event strong,.production-event small{display:block}.production-event small{color:#849486;margin-top:3px}.production-event p{font-size:12px;color:#506a58;margin:8px 0 0;white-space:pre-wrap}.type-chip.stock-alert{color:#a0302e;background:#fbe9e5}.type-chip.stock-warning{color:#9a6b10;background:#fff5d8}.stock-history{padding:10px 0;border-bottom:1px solid #edf0eb;display:grid;gap:3px;font-size:12px}.stock-history strong{color:#236546}.stock-history span,.stock-history small{color:#87948a}.sidebar-version{color:#aac9b4;font-size:11px;padding:10px 14px;border-top:1px solid #ffffff1a;letter-spacing:.035em}.recipe-edit-form{margin-bottom:18px}.recipe-edit-form h3{margin:0 0 12px;font-size:14px;color:#315640}.recipe-edit-row{display:grid;grid-template-columns:minmax(110px,.6fr) 1.6fr auto;align-items:end;gap:12px}.stocktake-new{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:20px 0 24px}.stocktake-new .field{min-width:150px;flex:1}.stocktake-card{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f7fbf6;border:1px solid #d9e8d9;border-radius:10px;width:100%;text-align:left;margin:10px 0;padding:15px}.stocktake-card span,.stocktake-line small{font-size:11px;color:#688573}.mobile-stocktake{max-width:1050px}.stocktake-lines{display:grid;gap:10px;margin:20px 0}.stocktake-line{display:grid;grid-template-columns:minmax(180px,2fr) minmax(120px,1fr) auto;gap:12px;align-items:center;background:#f8faf8;border:1px solid #e1eae1;padding:12px;border-radius:10px}.stocktake-line>div:first-child{display:grid;gap:5px}.stocktake-line>span{grid-column:1/-1;color:#60836e;font-size:11px}.stocktake-line input{min-width:100px;font-size:16px}.procurement-demand{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;margin:15px 0 22px}.procurement-row{background:#f8faf8;border:1px solid #dce9dd;border-radius:10px;padding:12px;display:grid;grid-template-columns:1fr minmax(110px,.65fr);gap:12px;align-items:end}.procurement-row strong{font-size:12px;color:#24573a}.procurement-panel h3{margin:25px 0 12px;color:#275940}.procurement-panel>.secondary-btn{margin-top:12px}.panel-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.permissions-grid{border:1px solid #e0e8e0;border-radius:10px;overflow:hidden}.permissions-grid>div{display:grid;grid-template-columns:minmax(150px,1fr) 60px 60px;align-items:center;gap:7px;padding:9px 12px;border-bottom:1px solid #edf1ed;font-size:12px}.permissions-grid>div:first-child{background:#edf5ee;color:#29583a}.permissions-grid>div:last-child{border-bottom:0}.permissions-grid input{width:20px;height:20px;justify-self:center;accent-color:#22674e}@media(max-width:700px){.recipe-edit-row{grid-template-columns:1fr}.stocktake-line{grid-template-columns:1fr auto}.stocktake-line>div:first-child{grid-column:1/-1}.stocktake-new{flex-direction:column;align-items:stretch}.stocktake-new .field{width:100%}.mobile-stocktake{padding:15px}.sidebar-version{white-space:nowrap;font-size:10px;padding:8px}.procurement-row{grid-template-columns:1fr 1fr}}html{min-width:0;scroll-behavior:auto}body{min-width:0}button,select,input,textarea{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #6eaf87;outline-offset:3px}.sidebar{overflow-y:auto;overscroll-behavior:contain}.mobile-menu-trigger,.mobile-close,.mobile-bottom-nav,.mobile-drawer-backdrop{display:none}.form-actions{display:flex;justify-content:flex-end;gap:12px;align-items:center;flex-wrap:wrap}.form-actions>button{min-height:44px}.table-action{min-height:36px;white-space:normal}.table-scroll{min-width:0}@media(max-width:900px){html,body,#root{width:100%;max-width:100%;min-width:0}.app-shell{display:block;min-height:100dvh;width:100%;overflow:clip}.main-area,.content{width:100%;min-width:0;max-width:100%;overflow:visible}.sidebar{position:fixed;z-index:230;inset:0 auto 0 0;width:min(86vw,340px);height:100dvh;min-height:0;max-height:100dvh;display:flex;flex-direction:column;flex-wrap:nowrap;gap:0;align-items:stretch;padding:24px 12px calc(18px + env(safe-area-inset-bottom,0px));overflow-y:auto;overscroll-behavior:contain;box-shadow:8px 0 30px #0e261d4f;transform:translate(-105%);visibility:hidden;transition:transform .2s ease,visibility .2s}.sidebar.sidebar-open{transform:translate(0);visibility:visible}.sidebar-label,.sidebar-section,.sidebar-bottom,.sidebar-grow{display:block}.sidebar-bottom{display:flex}.sidebar .logo{padding:3px 38px 18px 8px;margin:0}.sidebar .logo>div:last-child{display:block}.sidebar .nav-link{display:flex;width:100%;min-height:48px;font-size:14px;white-space:normal;padding:13px 14px;margin:2px 0;flex-shrink:0}.sidebar-version{font-size:12px;white-space:normal;padding:12px}.mobile-drawer-backdrop{display:block;position:fixed;z-index:220;top:0;right:0;bottom:0;left:0;background:#0c211891;border:0;width:100%;height:100dvh;padding:0}.mobile-close{display:flex;position:absolute;right:14px;top:13px;width:44px;height:44px;min-width:44px;min-height:44px;border-radius:12px;z-index:1;color:#fff}.mobile-menu-trigger{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:0 0 auto;min-width:48px;min-height:46px;padding:8px 10px;border:1px solid #d9e8dd;background:#f2f7f2;border-radius:10px;color:#285d44;font-size:13px;font-weight:700}.mobile-bottom-nav{display:grid;position:fixed;z-index:120;bottom:0;left:0;right:0;grid-template-columns:repeat(5,minmax(0,1fr));background:#fffffffa;border-top:1px solid #dfe7de;box-shadow:0 -6px 24px #172c1814;padding:6px max(4px,env(safe-area-inset-right,0px)) calc(6px + env(safe-area-inset-bottom,0px)) max(4px,env(safe-area-inset-left,0px));height:calc(64px + env(safe-area-inset-bottom,0px));gap:1px}.mobile-bottom-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:0;background:none;color:#678274;font-size:10px;font-weight:700;min-height:50px;min-width:0;border-radius:10px;padding:3px 0}.mobile-bottom-nav button.active{background:#e8f5ed;color:#1e6545}.mobile-bottom-nav button span{white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}.topbar{position:sticky;top:0;z-index:80;min-height:58px;height:auto;padding:6px 13px;gap:10px;background:#fff}.crumb{flex:1;overflow:hidden;font-size:12px;gap:5px;min-width:0}.crumb>span:first-child,.crumb>.slash,.crumb>span:last-child{display:none}.crumb strong{font-size:14px;max-width:100%;text-overflow:ellipsis}.top-right{display:none}.content{padding:18px 14px calc(92px + env(safe-area-inset-bottom,0px));margin:0}.page-intro{gap:12px;margin-bottom:18px;flex-direction:column;align-items:stretch}.page-intro h1{font-size:clamp(24px,7vw,30px);line-height:1.18;margin:6px 0}.page-intro p{font-size:13px;line-height:1.5}.page-intro .primary-btn,.page-intro .secondary-btn{width:100%;min-height:48px;white-space:normal;align-self:stretch}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.stat-card{min-height:118px;padding:15px}.stat-card .stat-icon{margin-bottom:7px;width:32px;height:32px}.stat-card strong{font-size:25px}.dashboard-cards{grid-template-columns:1fr;gap:12px;margin-top:12px}.panel{padding:16px;border-radius:12px}.table-panel{padding:0;overflow:visible;background:transparent;border:0}.tools{background:#fff;border:1px solid #e2ece1;border-radius:12px;display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:12px;margin-bottom:12px}.tools select,.tools .search,.search{width:100%;max-width:100%}.tools .search input,.search input{height:48px;font-size:16px}.search svg{top:15px}.field input,.field select,.field textarea,.tools select{font-size:16px;min-height:48px;padding:12px}.field>span{font-size:13px}input[type=file]{max-width:100%;min-width:0}.primary-btn,.secondary-btn{min-height:48px;font-size:14px;white-space:normal}.table-action{font-size:13px;min-height:44px;padding:10px 11px;background:#edf5ed;border:1px solid #d3e7d6;border-radius:9px;margin:4px 6px 4px 0}.table-footer,.table-panel>.production-hint{background:#fff;border-radius:10px;margin:12px 0;line-height:1.5}.table-scroll.mobile-card-scroll{overflow:visible;width:100%}table.mobile-card-table,table.mobile-card-table tbody{display:block;width:100%;min-width:0}table.mobile-card-table thead{display:none}table.mobile-card-table tbody{display:grid;gap:12px}table.mobile-card-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px 12px;background:#fff;border:1px solid #dce7dc;border-radius:13px;box-shadow:0 2px 7px #1740290c;padding:15px;min-width:0}table.mobile-card-table td{display:block;min-width:0;white-space:normal;overflow-wrap:anywhere;border:0;padding:0;color:#526b5b;font-size:13px;line-height:1.4}table.mobile-card-table td:before{content:attr(data-label);display:block;color:#789080;font-size:10px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;margin-bottom:3px}table.mobile-card-table td:first-child{grid-column:1/-1;order:-2}table.mobile-card-table td:first-child strong{font-size:17px;line-height:1.3}table.mobile-card-table td:last-child{grid-column:1/-1;border-top:1px solid #edf2ed;padding-top:10px;display:flex;flex-wrap:wrap;align-items:center;gap:5px}table.mobile-card-table td:last-child:before{width:100%;margin-bottom:0}table.mobile-card-table td .mono{font-size:12px}table.mobile-card-table.catalog-table td:nth-child(2){grid-column:1/-1;order:-1}table.mobile-card-table.catalog-table td:nth-child(2) strong{font-size:18px;color:#203f2e}.modal-backdrop{padding:0;align-items:stretch;z-index:300}.modal{width:100%;height:100dvh;min-height:100dvh;max-height:100dvh;border-radius:0;padding:0 18px calc(24px + env(safe-area-inset-bottom,0px));overflow-y:auto;overscroll-behavior:contain;box-shadow:none}.modal header{position:sticky;top:0;z-index:2;background:#fff;padding:calc(12px + env(safe-area-inset-top,0px)) 0 15px;margin-bottom:15px;border-bottom:1px solid #e6eee5;gap:12px}.modal h2{font-size:23px;line-height:1.22}.modal .icon-btn{min-width:44px;min-height:44px;flex-shrink:0;background:#edf5ee;color:#1d5b40}.modal form{padding-bottom:20px}.modal form>.primary-btn:last-child,.modal form>.form-actions:last-child{position:sticky;bottom:0;background:#fff;padding:12px 0 calc(6px + env(safe-area-inset-bottom,0px));margin-top:12px;z-index:1}.modal form>.form-actions:last-child{display:grid;grid-template-columns:1fr 1fr}.modal form>.form-actions button{width:100%}.recipe-layout{display:grid;grid-template-columns:1fr;gap:13px}.recipe-top{display:flex;flex-direction:column;align-items:stretch;gap:12px}.recipe-top h2{font-size:25px}.recipe-top .primary-btn{width:100%}.recipe-layout .panel .table-scroll{margin:12px 0}.recipe-edit-row,.component-form{display:grid;grid-template-columns:1fr;gap:12px}.component-form .field:first-child,.component-form .secondary-btn{grid-column:1}.stocktake-line{display:grid;grid-template-columns:1fr;gap:10px;padding:15px}.stocktake-line>div:first-child,.stocktake-line>span{grid-column:1}.stocktake-line>button{width:100%;min-height:48px}.stocktake-line input{font-size:18px;min-height:52px}.stocktake-new{display:grid;grid-template-columns:1fr;gap:12px}.stocktake-new .field{width:100%}.mobile-stocktake{padding:16px}.procurement-row,.procurement-demand{grid-template-columns:1fr}.production-actions{display:grid;grid-template-columns:1fr;gap:8px}.production-actions button{width:100%;min-height:48px}.production-quantities{gap:9px}.big-money{font-size:28px;overflow-wrap:anywhere}.cost-tree-row{display:grid;gap:5px}.cost-tree-row strong{text-align:left;white-space:normal}.permissions-grid>div{grid-template-columns:minmax(0,1fr) 49px 49px;padding:12px 8px;gap:4px}.permissions-grid input{width:24px;height:24px}.alert{font-size:13px;line-height:1.4}.import-panel{padding:16px}.import-steps,.restaurant-grid{grid-template-columns:1fr}}@media(max-width:359px){.content{padding-left:10px;padding-right:10px}.mobile-bottom-nav button{font-size:9px}.stat-grid{gap:7px}.stat-card{padding:10px}.modal{padding-left:12px;padding-right:12px}}@media(prefers-reduced-motion:reduce){.sidebar,.restaurant-card{transition:none!important}}.recipe-edit-product{margin-top:11px;min-height:43px}@media(max-width:900px){.recipe-edit-product{width:100%}}.load-more-btn{width:100%;min-height:48px;margin:10px 0;padding:12px;border:1px solid #cadecd;background:#eff6ef;border-radius:10px;color:#286647;font-weight:700;font-size:14px;cursor:pointer}@media(max-width:900px){.load-more-btn{margin:12px 0 2px;font-size:15px}.sidebar{-webkit-overflow-scrolling:touch}.mobile-bottom-nav.mobile-home{grid-template-columns:repeat(2,minmax(0,1fr))}}.nav-group{margin:5px 0 9px;flex-shrink:0}.nav-group-toggle{display:flex;align-items:center;gap:11px;background:transparent;color:#e0eee3;border:1px solid #ffffff24;border-radius:8px;padding:11px 12px;width:100%;text-align:left;font-size:13px;font-weight:750;min-height:43px}.nav-group-toggle:hover,.nav-group-toggle:focus-visible{background:#ffffff16;color:#fff}.nav-group-toggle svg:last-child{margin-left:auto;transform:rotate(-90deg);transition:transform .15s ease}.nav-group-toggle svg:last-child.chevron-open{transform:rotate(0)}.nav-group-children{margin:4px 0 0 12px;padding-left:10px;border-left:1px solid #ffffff30}.nav-group-children .nav-link{padding-left:10px;font-size:12px}.batch-import-panel{max-width:1050px}.batch-import-panel h2{margin:10px 0}.batch-toolbar{display:flex;align-items:end;gap:18px;justify-content:space-between;margin:20px 0 16px}.batch-toolbar .field{width:240px;max-width:100%}.batch-sheet-scroll{max-height:65vh;overflow:auto;overscroll-behavior:contain;border:1px solid #dce5dc;border-radius:8px;background:#fff}.batch-sheet{table-layout:fixed;min-width:570px;font-size:12px;border-collapse:separate;border-spacing:0}.batch-sheet th{position:sticky;top:0;z-index:2;padding:9px 6px;background:#edf4ee;border-bottom:1px solid #cfddce}.batch-sheet th:nth-child(1){width:44px}.batch-sheet th:nth-child(2){width:170px}.batch-sheet th:nth-child(3){width:auto}.batch-sheet th:nth-child(4){width:92px}.batch-sheet th:nth-child(5){width:38px}.batch-sheet td{padding:1px 2px;border:1px solid #edf0ed;white-space:normal;height:36px}.batch-sheet td.batch-row-number{text-align:center;font-size:11px;color:#607268;background:#f5f8f4;white-space:nowrap}.batch-sheet input,.batch-sheet select{border:1px solid transparent;border-radius:3px;background:transparent;width:100%;height:33px;padding:3px 7px;min-width:0;color:#26382c;outline:0;font-size:13px}.batch-sheet input:focus,.batch-sheet select:focus{border-color:#31986c;background:#f7fff8;box-shadow:inset 0 0 0 1px #31986c}.batch-sheet tr:hover td{background:#f8fbf8}.batch-delete{display:grid;place-items:center;padding:2px;border:0;background:none;color:#879b8e;width:30px;height:30px}.batch-delete:hover{color:#bf3f3f;background:#ffeceb}.batch-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:20px}.batch-actions>.primary-btn{margin-left:auto}.batch-errors{margin-top:18px}.batch-errors p{margin:5px 0}.sr-only{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}@media(max-width:700px){.nav-group-toggle{font-size:14px;min-height:47px}.nav-group-children .nav-link{font-size:14px}.batch-import-panel{padding:16px 12px}.batch-toolbar{align-items:stretch;flex-direction:column;gap:8px}.batch-toolbar .field{width:100%}.batch-sheet-scroll{width:100%;max-height:55dvh}.batch-sheet{min-width:0;width:100%}.batch-sheet th:nth-child(1){width:26px}.batch-sheet th:nth-child(2){width:27%}.batch-sheet th:nth-child(3){width:auto}.batch-sheet th:nth-child(4){width:68px}.batch-sheet th:nth-child(5){width:28px}.batch-sheet input,.batch-sheet select{font-size:16px;padding:3px 4px}.batch-delete{width:28px;height:36px}.batch-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.batch-actions>.primary-btn{grid-column:1/-1;margin:0}.batch-actions .secondary-btn{min-width:0;white-space:normal;font-size:12px}}@media(prefers-reduced-motion:reduce){.nav-group-toggle svg:last-child{transition:none}}
