:root{
  --bg:#f7f5f0;--panel:#fff;--panel-soft:#fbfaf7;--ink:#20322c;--muted:#718078;--line:#e3e1da;
  --green:#173d34;--green-2:#245749;--leaf:#6f9e72;--leaf-soft:#e6efe4;--lime:#dce9bb;
  --peach:#f7dfce;--peach-ink:#8d5639;--sand:#f2eee4;--red:#b84d4d;--red-soft:#f7e0df;--amber:#a66b21;--amber-soft:#f8ebd6;
  --purple:#705e88;--purple-soft:#ebe5f1;--shadow:0 16px 42px rgba(26,50,42,.08);--radius:22px;--radius-sm:14px;
  --sidebar:272px;
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}a{color:inherit}img{display:block;max-width:100%}[hidden]{display:none!important}
.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:linear-gradient(180deg,#fff 0%,#fbfaf6 100%);border-right:1px solid #e7e2d9;display:flex;flex-direction:column;z-index:40;box-shadow:8px 0 34px rgba(24,51,44,.035)}.brand-wrap{min-height:104px;display:flex;align-items:center;justify-content:space-between;padding:20px 22px;border-bottom:1px solid #eee9e1;position:relative}.brand-logo{width:158px;max-height:57px;object-fit:contain;object-position:left center}.side-nav{padding:17px 13px 22px;display:flex;flex-direction:column;gap:4px;overflow-y:auto}.nav-group-title{font-size:9px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:#a7a095;padding:17px 12px 7px}.nav-item{position:relative;border:0;background:transparent;color:#65726b;display:flex;align-items:center;gap:11px;width:100%;min-height:48px;padding:7px 10px;border-radius:14px;font-weight:700;text-align:left;transition:background .18s,color .18s,transform .18s}.nav-item:hover{background:#f2f4ef;color:var(--ink);transform:translateX(2px)}.nav-item.active{background:#e7efe9;color:#173d34;box-shadow:inset 0 0 0 1px #d6e3d9}.nav-item.active:before{content:'';position:absolute;left:-13px;width:3px;height:25px;border-radius:0 6px 6px 0;background:#c77742}.nav-icon{width:34px;height:34px;flex:0 0 34px;border-radius:10px;background:#f3f3ee;display:grid;place-items:center;transition:.18s}.nav-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.nav-item.active .nav-icon{background:#173d34;color:#fff;box-shadow:0 6px 16px rgba(23,61,52,.14)}.nav-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}.nav-badge{margin-left:auto;min-width:24px;height:22px;padding:0 7px;border-radius:999px;background:#efece5;color:#6e766f;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:800}.nav-item.active .nav-badge{background:#fff;color:#173d34}.side-foot{margin-top:auto;border-top:1px solid #eee9e1;padding:16px 16px 20px}.owner-chip{display:flex;align-items:center;gap:10px}.owner-avatar{width:36px;height:36px;border-radius:11px;background:#e6efe4;display:grid;place-items:center;font-weight:800;color:var(--green)}.owner-chip div{display:flex;flex-direction:column;min-width:0}.owner-chip strong{font:700 12px/1.2 'Manrope','DM Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}.owner-chip span:not(.owner-avatar){font-size:10px;color:var(--muted);margin-top:3px}.side-logout{width:100%;margin-top:12px}.main-area{margin-left:var(--sidebar);min-height:100vh}.topbar{height:92px;background:rgba(247,246,241,.9);backdrop-filter:blur(14px);position:sticky;top:0;z-index:25;border-bottom:1px solid rgba(226,222,214,.9);display:flex;align-items:center;padding:0 clamp(24px,4vw,58px);gap:12px}.topbar-copy{display:flex;flex-direction:column}.topbar-copy span{font-size:10px;text-transform:uppercase;letter-spacing:.12em;color:#8b958f;font-weight:700}.topbar-copy strong{font:800 22px/1.15 'Manrope','DM Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;margin-top:3px}.topbar-actions{margin-left:auto;display:flex;gap:10px}.content{padding:34px clamp(24px,4vw,58px) 72px;max-width:1600px;margin:auto}.menu-btn,.mobile-close{display:none}.menu-btn svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}.menu-btn span{font-size:12px;font-weight:800}
.primary-btn,.secondary-btn,.ghost-btn,.danger-btn,.soft-btn{border:0;border-radius:12px;padding:10px 15px;font-weight:750;transition:.18s;display:inline-flex;align-items:center;justify-content:center;gap:8px}.primary-btn{background:var(--green);color:#fff}.primary-btn:hover{background:#0f3028;transform:translateY(-1px)}.secondary-btn{background:var(--leaf-soft);color:var(--green)}.secondary-btn:hover{background:#dce9da}.ghost-btn{background:#fff;border:1px solid var(--line);color:#56665e}.ghost-btn:hover{border-color:#b7c2ba;color:var(--ink)}.soft-btn{background:#f1f3ef;color:#536158}.danger-btn{background:var(--red-soft);color:#8f3939}.icon-btn{width:40px;height:40px;border-radius:12px;border:1px solid var(--line);background:#fff;color:var(--ink);display:grid;place-items:center;font-size:20px}.text-btn{border:0;background:transparent;color:var(--green);font-weight:750;padding:4px 0}.text-btn:hover{text-decoration:underline}
.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:27px}.eyebrow{margin:0 0 8px;color:#7c8b83;text-transform:uppercase;letter-spacing:.12em;font-size:10px;font-weight:800}.page-head h1{font:800 clamp(28px,3vw,42px)/1.06 'Manrope','DM Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;margin:0;letter-spacing:-.035em}.page-head p{margin:10px 0 0;color:var(--muted);max-width:740px;line-height:1.6}.page-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}.section{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:0 6px 22px rgba(37,57,47,.035);margin-bottom:22px}.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.section-head h2{font:800 19px/1.2 'Manrope','DM Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;margin:0}.section-head p{margin:5px 0 0;color:var(--muted);font-size:13px;line-height:1.5}.section-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.muted{color:var(--muted)}.subtle{font-size:12px;color:#87928c}.divider{height:1px;background:var(--line);margin:20px 0}
.metrics-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}.metric-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;min-width:0}.metric-top{display:flex;align-items:center;justify-content:space-between}.metric-icon{width:38px;height:38px;border-radius:12px;background:var(--leaf-soft);display:grid;place-items:center;font-size:18px}.metric-delta{font-size:11px;font-weight:800;color:var(--leaf)}.metric-card strong{font:800 29px/1 'Manrope','DM Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;display:block;margin:18px 0 5px;letter-spacing:-.03em}.metric-card>span:last-child{font-size:12px;color:var(--muted)}.metric-card.alert .metric-icon{background:var(--red-soft)}.metric-card.warn .metric-icon{background:var(--amber-soft)}.metric-card.purple .metric-icon{background:var(--purple-soft)}
.grid-2{display:grid;grid-template-columns:1.15fr .85fr;gap:22px}.grid-equal{display:grid;grid-template-columns:1fr 1fr;gap:22px}.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.info-card{border:1px solid var(--line);border-radius:17px;padding:17px;background:#fff}.info-card h3{font:800 15px/1.2 'Manrope','DM Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;margin:0 0 5px}.info-card p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}.info-card .big{font:800 24px/1 'Manrope','DM Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;margin-top:15px;display:block}.stage-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.stage-card{border-radius:16px;padding:15px;background:#f7f8f5;border:1px solid #edf0eb}.stage-card span{display:block;font-size:11px;color:var(--muted)}.stage-card strong{font:800 25px/1 'Manrope','DM Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;margin-top:9px;display:block}.stage-card[data-status="draft"]{background:#fff7ef}.stage-card[data-status="production"]{background:#f1edf6}.stage-card[data-status="ready"]{background:#edf5ee}.stage-card[data-status="delivered"]{background:#e9f3e7}
.toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}.toolbar>*{min-width:0}.control,.input,.select,.textarea{border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:11px;padding:10px 12px;outline:none;transition:.15s}.input:focus,.select:focus,.textarea:focus{border-color:#83a38e;box-shadow:0 0 0 3px rgba(111,158,114,.12)}.toolbar .input{flex:1;min-width:190px}.toolbar .select{min-width:150px}.field{display:flex;flex-direction:column;gap:7px}.field>span{font-size:11px;font-weight:800;color:#5e6d65}.field small{color:#8c9791}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.field.full{grid-column:1/-1}.textarea{min-height:100px;resize:vertical}.form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:18px}
.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:16px}.data-table{width:100%;border-collapse:collapse;min-width:760px}.data-table th{text-align:left;padding:11px 13px;font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#8a958f;background:#f8f9f6;border-bottom:1px solid var(--line)}.data-table td{padding:13px;font-size:12.5px;border-bottom:1px solid #edf0ec;vertical-align:middle}.data-table tr:last-child td{border-bottom:0}.table-actions{display:flex;gap:6px;justify-content:flex-end}.table-actions button{padding:7px 9px;border-radius:9px}.cell-main{font-weight:750}.cell-sub{display:block;color:var(--muted);font-size:11px;margin-top:3px}.money{font-weight:800;white-space:nowrap}.code-pill{display:inline-flex;border-radius:999px;background:#f0f3ef;padding:5px 9px;font:800 11px/1 'Manrope','DM Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#506158}.status{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:6px 9px;font-size:10.5px;font-weight:800;white-space:nowrap}.status:before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}.status-draft{background:#fff1e5;color:#9b653d}.status-confirmed{background:#e6efe4;color:#4c7651}.status-production{background:#ebe5f1;color:#705e88}.status-ready{background:#e4f1ea;color:#387158}.status-delivered{background:#e5f0df;color:#527b4e}.status-cancelled{background:#ecefec;color:#7a837e}.type-badge{display:inline-flex;border-radius:999px;padding:5px 8px;font-size:10px;font-weight:800}.type-packaging{background:#e4f0e8;color:#3e6c54}.type-ingredient{background:#fff0dd;color:#946329}
.empty{border:1px dashed #cfd8d1;border-radius:16px;padding:30px;text-align:center;color:var(--muted);background:#fbfcfa}.empty strong{display:block;color:var(--ink);font:800 15px 'Manrope','DM Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;margin-bottom:6px}.notice{padding:13px 15px;border-radius:13px;background:#eff4ed;color:#4b6455;font-size:12px;line-height:1.5;border:1px solid #dce6d9}.notice.warn{background:#fff7e9;color:#825f31;border-color:#f0dfc3}.notice.danger{background:#fff0ef;color:#8d4646;border-color:#efd0cd}
.order-layout{display:grid;grid-template-columns:1fr 390px;gap:20px}.order-card{border:1px solid var(--line);border-radius:18px;background:#fff;overflow:hidden}.order-card-head{padding:16px 18px;background:#fafbf8;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;align-items:center}.order-card-body{padding:18px}.order-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.mini-meta{background:#f7f8f5;border-radius:12px;padding:10px}.mini-meta span{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:#8a948f;display:block}.mini-meta strong{font-size:12px;margin-top:3px;display:block}.order-items{margin-top:14px;display:flex;flex-direction:column;gap:8px}.order-item{display:grid;grid-template-columns:1fr auto;gap:10px;padding:10px 0;border-bottom:1px solid #eef1ed}.order-item:last-child{border-bottom:0}.order-item strong{font-size:12.5px}.order-item span{font-size:11px;color:var(--muted)}.order-total{display:flex;justify-content:space-between;align-items:center;padding-top:13px;margin-top:11px;border-top:1px solid var(--line)}.order-total strong{font:800 20px 'Manrope','DM Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}.status-flow{display:flex;gap:6px;flex-wrap:wrap;margin-top:16px}.status-flow button{border:1px solid var(--line);background:#fff;border-radius:10px;padding:8px 10px;font-size:11px;font-weight:750}.status-flow button.current{background:var(--green);color:#fff;border-color:var(--green)}
.donut-wrap{display:grid;grid-template-columns:210px 1fr;gap:25px;align-items:center}.donut{width:190px;height:190px;border-radius:50%;position:relative;margin:auto;background:#e8ece7}.donut:after{content:'';position:absolute;inset:37px;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 1px var(--line)}.donut-center{position:absolute;inset:0;z-index:2;display:grid;place-content:center;text-align:center;pointer-events:none}.donut-center strong{font:800 26px 'Manrope','DM Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}.donut-center span{font-size:10px;color:var(--muted)}.legend{display:flex;flex-direction:column;gap:9px}.legend-row{display:grid;grid-template-columns:11px 1fr auto;gap:9px;align-items:center;font-size:12px}.legend-dot{width:9px;height:9px;border-radius:50%}.legend-row strong{font-size:11px}
.stock-layout{display:grid;grid-template-columns:360px 1fr;gap:22px}.stock-form{align-self:start;position:sticky;top:114px}.stock-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.stock-number{background:#f7f8f5;border-radius:12px;padding:12px}.stock-number span{font-size:10px;color:var(--muted);display:block}.stock-number strong{font:800 16px 'Manrope','DM Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;margin-top:4px;display:block}.stock-number.negative{background:var(--red-soft);color:#8d4343}.stock-row-critical{background:#fff8f7!important}.forecast-bar{height:7px;border-radius:99px;background:#edf0ec;overflow:hidden;margin-top:8px}.forecast-bar>span{display:block;height:100%;background:var(--leaf);border-radius:inherit}.forecast-bar.danger>span{background:var(--red)}
.product-card{border:1px solid var(--line);border-radius:18px;background:#fff;padding:17px;display:flex;flex-direction:column;gap:13px}.product-card-top{display:flex;justify-content:space-between;gap:12px}.product-card h3{font:800 16px 'Manrope','DM Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;margin:0}.product-price{font:800 17px 'Manrope','DM Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--green)}.product-links{display:flex;gap:6px;flex-wrap:wrap}.chip{display:inline-flex;align-items:center;border-radius:999px;padding:6px 9px;background:#f1f4f0;color:#647169;font-size:10px;font-weight:700}.product-card-actions{display:flex;gap:7px;margin-top:auto}.product-card-actions button{flex:1}
.recipe-hero{display:flex;align-items:center;gap:15px;padding:17px 19px;border-radius:18px;background:linear-gradient(135deg,#183d34,#285e4e);color:#fff;margin-bottom:16px;box-shadow:0 12px 30px rgba(23,61,52,.12)}.recipe-hero-icon{width:46px;height:46px;border-radius:14px;background:rgba(255,255,255,.12);display:grid;place-items:center;flex:0 0 auto}.recipe-hero-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.recipe-hero strong{display:block;font:800 14px 'Manrope','DM Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}.recipe-hero span{display:block;font-size:12px;color:#d9e6e0;margin-top:4px;line-height:1.45}.recipe-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:20px}.recipe-metrics article{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px 17px}.recipe-metrics span{font-size:11px;color:var(--muted)}.recipe-metrics strong{display:block;font:800 24px 'Manrope','DM Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;margin-top:7px;color:var(--green)}.recipe-section{overflow:hidden}.recipe-toolbar{padding:13px;background:#f8f7f2;border-radius:14px}.recipe-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.recipe-card{border:1px solid var(--line);border-radius:18px;padding:18px;background:#fff;transition:.18s;box-shadow:0 7px 22px rgba(30,52,43,.035)}.recipe-card:hover{transform:translateY(-2px);border-color:#ccd9cf;box-shadow:0 13px 30px rgba(30,52,43,.07)}.recipe-empty-card{background:#fdfcf9;border-style:dashed}.recipe-card-head{display:grid;grid-template-columns:42px 1fr auto;gap:11px;align-items:center}.recipe-symbol{width:42px;height:42px;border-radius:13px;background:#e7efe9;color:#285e4e;display:grid;place-items:center}.recipe-symbol svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.recipe-title{min-width:0}.recipe-title h3{margin:0;font:800 16px 'Manrope','DM Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}.recipe-action{border:1px solid #d9e1da;background:#fff;color:#315c4d;border-radius:10px;padding:8px 11px;font-size:11px;font-weight:800}.recipe-action:hover{background:#edf3ee}.recipe-meta{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 2px}.recipe-meta span{padding:6px 9px;border-radius:999px;background:#f2f3ee;color:#68756e;font-size:10px}.recipe-meta b{color:#344c43}.recipe-list{margin:12px 0 0;padding:0;list-style:none}.recipe-list li{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #eef1ed;font-size:11.5px}.recipe-list li:last-child{border-bottom:0}.recipe-notes{margin-top:12px;padding:11px 12px;background:#f8f7f3;border-radius:12px;color:#627069;font-size:11px;line-height:1.5;white-space:pre-line;max-height:70px;overflow:hidden}.recipe-empty-state{padding:20px 6px 4px;color:var(--muted)}.recipe-empty-state strong{display:block;color:var(--ink);font-size:12px}.recipe-empty-state span{display:block;font-size:11px;margin-top:4px}.missing-recipes{display:flex;flex-direction:column;gap:3px}.missing-recipes>div{display:flex;align-items:center;justify-content:space-between;padding:11px 3px;border-bottom:1px solid #eee}.missing-recipes>div:last-child{border-bottom:0}.missing-recipes span{font-weight:700;font-size:12px}.linked-product{height:42px;border:1px solid var(--line);border-radius:11px;background:#f8f7f3;padding:0 12px;display:flex;align-items:center;gap:8px}.linked-product svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.linked-product strong{font-size:12px}.recipe-form-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}.recipe-form-heading strong{display:block;font:800 14px 'Manrope','DM Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}.recipe-form-heading span:not(.manual-badge){display:block;font-size:10px;color:var(--muted);margin-top:3px}.manual-badge{font-size:9px!important;text-transform:uppercase;letter-spacing:.08em;font-weight:800;color:#8b632d!important;background:#f8ebd6;border-radius:999px;padding:6px 8px}.recipe-picker{margin-top:10px}.recipe-picker-row{background:#fdfdfb}.ingredient-qty{display:grid;grid-template-columns:105px 50px;gap:6px;align-items:center}.ingredient-qty>span{height:39px;border-radius:10px;background:#f1f3ee;display:grid;place-items:center;font-size:10px;font-weight:800;color:#66736c}.recipe-form-note{display:flex;gap:10px;align-items:flex-start;margin-top:15px;padding:12px 13px;border-radius:13px;background:#eff4ed;color:#53685d;font-size:11px;line-height:1.45}.recipe-form-note svg{width:18px;height:18px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.recipe-form-note strong{color:#29493d}.product-card-actions-3{display:grid;grid-template-columns:1fr 1fr 1fr}.product-card-actions-3 button{min-width:0;padding-left:8px;padding-right:8px;font-size:10px}
.subscription-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.subscription-card{border:1px solid var(--line);border-radius:18px;background:#fff;padding:18px}.subscription-card.inactive{opacity:.65}.subscription-top{display:flex;justify-content:space-between;gap:12px}.subscription-top h3{font:800 16px 'Manrope','DM Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;margin:0}.subscription-date{background:var(--leaf-soft);border-radius:12px;padding:8px 10px;text-align:center;min-width:84px}.subscription-date span{font-size:9px;color:#65766c;text-transform:uppercase;display:block}.subscription-date strong{font-size:12px}.subscription-items{margin:15px 0;display:flex;flex-direction:column;gap:6px}.subscription-item{display:flex;justify-content:space-between;font-size:12px}.subscription-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:13px;border-top:1px solid var(--line)}
.repurchase-list{display:flex;flex-direction:column;gap:12px}.repurchase-card{border:1px solid var(--line);border-radius:17px;padding:16px;display:grid;grid-template-columns:1.2fr 1fr auto;gap:20px;align-items:center}.repurchase-card.due{border-color:#e5c6a6;background:#fffaf5}.repurchase-card h3{margin:0;font:800 14px 'Manrope','DM Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}.repurchase-card p{margin:4px 0 0;color:var(--muted);font-size:11px}.last-order-items{font-size:11px;color:#5f6c65}.due-pill{font-size:10px;font-weight:800;border-radius:999px;padding:6px 9px;background:#edf2ea;color:#56705e}.due-pill.late{background:#fff0e4;color:#9a6138}
.billing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:20px}.billing-card{padding:18px;border-radius:18px;border:1px solid var(--line);background:#fff}.billing-card span{font-size:11px;color:var(--muted)}.billing-card strong{font:800 25px 'Manrope','DM Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;display:block;margin-top:10px}.billing-card.primary{background:var(--green);color:#fff;border-color:var(--green)}.billing-card.primary span{color:#cddbd5}
.modal-backdrop{position:fixed;inset:0;background:rgba(15,29,25,.48);backdrop-filter:blur(3px);z-index:90;display:grid;place-items:center;padding:20px}.modal{background:#fff;width:min(760px,100%);max-height:92vh;overflow:auto;border-radius:24px;box-shadow:0 30px 80px rgba(8,24,19,.25)}.modal.wide{width:min(980px,100%)}.modal-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;padding:22px 24px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:3}.modal-head h2{font:800 21px 'Manrope','DM Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;margin:0}.modal-head p{margin:5px 0 0;color:var(--muted);font-size:12px}.modal-body{padding:22px 24px 26px}.close-btn{border:0;background:#f1f3ef;width:34px;height:34px;border-radius:10px;font-size:19px;color:#5e6a64}.picker-list{display:flex;flex-direction:column;gap:9px;margin-top:14px}.picker-row{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;border:1px solid var(--line);border-radius:13px;padding:10px 12px}.picker-row-info strong{display:block;font-size:12px}.picker-row-info span{font-size:10px;color:var(--muted)}.qty-stepper{display:flex;align-items:center;gap:8px}.qty-stepper button{width:30px;height:30px;border:1px solid var(--line);border-radius:9px;background:#fff;font-weight:800}.qty-stepper strong{min-width:24px;text-align:center}.bundle-progress{display:flex;align-items:center;gap:12px;margin:14px 0}.bundle-progress-track{height:9px;background:#edf0ec;border-radius:99px;flex:1;overflow:hidden}.bundle-progress-track span{display:block;height:100%;background:var(--leaf);transition:.2s}.bundle-progress strong{font:800 12px 'Manrope','DM Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;white-space:nowrap}.bundle-progress.invalid strong{color:var(--red)}
.login-shell{min-height:100vh;display:grid;place-items:center;padding:26px;background:radial-gradient(circle at 20% 20%,#eff3e4 0,transparent 36%),linear-gradient(135deg,#f5f6f1,#eef2eb)}.login-card{width:min(430px,100%);background:#fff;border:1px solid var(--line);border-radius:28px;padding:30px;box-shadow:var(--shadow)}.login-card img{width:190px;margin:0 auto 28px}.login-card h1{font:800 28px/1.08 'Manrope','DM Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;margin:0;text-align:center}.login-card>p{text-align:center;color:var(--muted);font-size:13px;line-height:1.55;margin:10px 0 24px}.login-card .notice{margin-top:16px}.login-submit{width:100%;margin-top:16px;padding:12px}
.toast-root{position:fixed;right:22px;bottom:22px;z-index:120;display:flex;flex-direction:column;gap:9px}.toast{background:#173d34;color:#fff;padding:12px 15px;border-radius:13px;box-shadow:0 14px 32px rgba(20,50,42,.2);font-size:12px;max-width:380px;animation:toastIn .25s ease}.toast.error{background:#8c4141}.toast.warn{background:#8b632d}@keyframes toastIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(max-width:1180px){.metrics-grid{grid-template-columns:repeat(2,1fr)}.card-grid{grid-template-columns:repeat(2,1fr)}.recipe-grid{grid-template-columns:1fr}.grid-2,.order-layout,.stock-layout{grid-template-columns:1fr}.stock-form{position:static}.stage-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:640px){:root{--sidebar:290px}.sidebar{transform:translateX(-105%);transition:.24s;box-shadow:20px 0 55px rgba(23,50,42,.2)}body.menu-open .sidebar{transform:none}.mobile-backdrop{display:none;position:fixed;inset:0;background:rgba(10,25,21,.35);z-index:35}body.menu-open .mobile-backdrop{display:block}.main-area{margin-left:0}.menu-btn{display:flex;width:auto;padding:0 12px;gap:7px}.mobile-close{display:grid}.topbar{height:76px;padding:0 16px}.topbar-actions .ghost-btn{display:none}.content{padding:24px 16px 60px}.page-head{align-items:flex-start;flex-direction:column}.page-actions{justify-content:flex-start}.grid-equal,.subscription-grid{grid-template-columns:1fr}.repurchase-card{grid-template-columns:1fr}.donut-wrap{grid-template-columns:1fr}.form-grid,.form-grid.cols-3{grid-template-columns:1fr}.field.full{grid-column:auto}.billing-grid{grid-template-columns:1fr}.stage-grid{grid-template-columns:repeat(2,1fr)}.order-meta{grid-template-columns:1fr 1fr}.modal-backdrop{padding:10px}.modal{border-radius:20px}.modal-head,.modal-body{padding-left:17px;padding-right:17px}}
@media(max-width:520px){.metrics-grid,.card-grid,.recipe-metrics{grid-template-columns:1fr}.stage-grid{grid-template-columns:1fr 1fr}.topbar-copy span{display:none}.topbar-copy strong{font-size:18px}.topbar-actions .primary-btn{padding:9px 11px;font-size:12px}.page-head h1{font-size:30px}.section{padding:17px;border-radius:18px}.toolbar{flex-direction:column}.toolbar .input,.toolbar .select{width:100%}.stock-summary{grid-template-columns:1fr}.order-meta{grid-template-columns:1fr}.login-card{padding:24px 20px}}

/* ===== Visual refresh v4 ===== */
body{
  background:
    radial-gradient(circle at 92% 6%, rgba(111,158,114,.16), transparent 18%),
    radial-gradient(circle at 8% 18%, rgba(199,119,66,.10), transparent 16%),
    linear-gradient(180deg,#f4f1ea 0%,#eff3ed 100%);
}
.sidebar{
  background:linear-gradient(180deg,#fcfbf8 0%,#f6f4ee 100%);
  box-shadow:10px 0 36px rgba(24,51,44,.05);
}
.topbar{
  background:rgba(248,246,241,.88);
  box-shadow:0 10px 28px rgba(22,45,39,.04);
}
.content{padding-top:28px}
.page-head{
  position:relative;
  overflow:hidden;
  background:linear-gradient(135deg,rgba(228,237,228,.98) 0%, rgba(247,244,236,.98) 62%, rgba(243,234,225,.95) 100%);
  border:1px solid #dfe5dd;
  border-radius:28px;
  padding:28px 30px;
  box-shadow:0 18px 44px rgba(23,61,52,.08);
  margin-bottom:24px;
}
.page-head::before,
.page-head::after{
  content:'';
  position:absolute;
  border-radius:999px;
  pointer-events:none;
}
.page-head::before{
  width:240px;height:240px;right:-80px;top:-90px;
  background:radial-gradient(circle, rgba(111,158,114,.18), rgba(111,158,114,0) 68%);
}
.page-head::after{
  width:180px;height:180px;left:-60px;bottom:-90px;
  background:radial-gradient(circle, rgba(199,119,66,.10), rgba(199,119,66,0) 70%);
}
.page-head > *{position:relative;z-index:1}
.page-head h1{max-width:860px;font-size:clamp(30px,3vw,48px)}
.page-head p:not(.eyebrow){max-width:820px;color:#60716a}
.page-actions{align-self:center}
.section{
  background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(250,248,244,.96));
  border:1px solid #e4e0d8;
  box-shadow:0 14px 34px rgba(31,49,43,.045);
}
.section-head{margin-bottom:16px}
.section-head h2{position:relative;padding-left:14px}
.section-head h2::before{
  content:'';
  position:absolute;
  left:0;top:3px;bottom:3px;width:4px;border-radius:99px;
  background:linear-gradient(180deg,#2f6c5a,#88ae79);
}
.metrics-grid{gap:16px;margin-bottom:24px}
.metric-card{
  position:relative;
  overflow:hidden;
  border:1px solid #e2ddd5;
  border-radius:20px;
  padding:18px 18px 20px;
  box-shadow:0 10px 24px rgba(25,46,40,.05);
}
.metric-card::after{
  content:'';
  position:absolute;
  right:-20px;top:-24px;width:96px;height:96px;border-radius:50%;
  background:rgba(255,255,255,.5);
}
.metrics-grid .metric-card:nth-child(1){background:linear-gradient(135deg,#e8f0ea 0%,#fbfcfb 100%)}
.metrics-grid .metric-card:nth-child(2){background:linear-gradient(135deg,#faefe3 0%,#fffdfb 100%)}
.metrics-grid .metric-card:nth-child(3){background:linear-gradient(135deg,#eee8f7 0%,#fcfbff 100%)}
.metrics-grid .metric-card:nth-child(4){background:linear-gradient(135deg,#eef4e5 0%,#fbfdf7 100%)}
.metric-top{
  align-items:flex-start;
  gap:12px;
  justify-content:flex-start;
}
.metric-icon{
  width:42px;height:42px;border-radius:14px;
  background:rgba(255,255,255,.7);
  border:1px solid rgba(36,87,73,.08);
  font-weight:900;color:#1e463c;
  box-shadow:0 6px 14px rgba(20,42,36,.05);
}
.metric-eyebrow{
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#61736c;
  margin-top:4px;
}
.metric-card strong{font-size:36px;letter-spacing:-.045em;margin:20px 0 8px;position:relative;z-index:1}
.metric-note{display:block;font-size:12px;color:#55665f;line-height:1.45;position:relative;z-index:1}
.dashboard-section.section-orders{background:linear-gradient(180deg,#fffdf9 0%,#fbf9f4 100%)}
.dashboard-section.section-forecast{background:linear-gradient(180deg,#fcfcff 0%,#f6f7fb 100%)}
.dashboard-section.section-movements{background:linear-gradient(180deg,#fbfcfa 0%,#f5f8f3 100%)}
.grid-2{gap:18px}
.stage-grid{gap:12px}
.stage-card{
  border-radius:18px;
  border:1px solid rgba(44,65,57,.07);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55);
  min-height:88px;
}
.stage-card span{font-weight:700;color:#718078}
.stage-card strong{font-size:28px}
.stage-card[data-status="draft"]{background:linear-gradient(180deg,#fff4ea 0%,#fff9f4 100%)}
.stage-card[data-status="confirmed"]{background:linear-gradient(180deg,#f5f3ed 0%,#fbfaf7 100%)}
.stage-card[data-status="production"]{background:linear-gradient(180deg,#f1ebf8 0%,#faf8fd 100%)}
.stage-card[data-status="ready"]{background:linear-gradient(180deg,#edf5ee 0%,#f8fcf8 100%)}
.stage-card[data-status="delivered"]{background:linear-gradient(180deg,#e9f2e6 0%,#f7fbf5 100%)}
.table-wrap{
  background:rgba(255,255,255,.75);
  border:1px solid #e4dfd6;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.5);
}
.data-table th{background:#f1f4ef;color:#7c8a83}
/* Highlight the current row without implying that the whole row is clickable. */
.data-table tbody tr{transition:background-color .16s ease}
.data-table tbody tr:focus-within{background:#edf4e2}
@media(hover:hover){
  .data-table tbody tr:hover{background:#edf4e2}
  .nav-item:not(.active):hover{background:#edf4e2;color:var(--ink)}
}

.empty{
  background:rgba(255,255,255,.55);
  border:1px dashed #d8ded5;
}
.primary-btn{
  box-shadow:0 10px 24px rgba(23,61,52,.18);
}
.ghost-btn{
  background:rgba(255,255,255,.78);
}
@media (min-width:641px){
  .menu-btn,.mobile-close{display:none !important}
}
@media (max-width:640px){
  .page-head{padding:22px 20px;border-radius:22px}
  .metric-card strong{font-size:30px}
}

/* Operational forms and authentication */
[hidden]{display:none!important}
body{font-size:16px}
.password-wrap{display:flex;gap:8px}.password-wrap .input{min-width:0;flex:1}
/* Keep the login grid and form controls within the phone viewport. */
.login-shell{width:100%;min-width:0;grid-template-columns:minmax(0,1fr)}
.login-card{width:100%;max-width:430px;min-width:0}
.login-card .field,.login-card .password-wrap{min-width:0}
.login-card .input{width:100%;max-width:100%}
@media(max-width:520px){.login-shell{padding:24px 16px}}
.finance-box{margin-top:20px;padding:18px;border:1px solid #d7e3dd;border-radius:16px;background:#f5f9f6}
.finance-box h3{margin:0 0 16px;font-size:16px}
.finance-box .subtle{font-size:14px;line-height:1.6;margin-bottom:0}
.sync-label{font-size:14px;color:#285e47}.sync-warning{color:#91521a}
.connection-banner{padding:12px 20px;background:#fff0cc;color:#623f0b;font-size:14px;line-height:1.5;text-align:center}
.whatsapp-btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid #1b7045;color:#126237;background:#eef9f2;padding:9px 12px;border-radius:10px;font-size:14px;font-weight:700;text-decoration:none;margin:6px 0 0 6px}
.is-saving{cursor:progress}.is-saving button,.is-saving a,.is-saving input,.is-saving select,.is-saving textarea{pointer-events:none}
.is-saving button{opacity:.6}
.import-counts{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:18px 0;list-style:none}
.modal:focus{outline:none}.modal :focus-visible,.main-area :focus-visible,.login-card :focus-visible{outline:3px solid #337957;outline-offset:3px}
.recipe-card-head{flex-wrap:wrap}.recipe-card-head .table-actions{flex-wrap:wrap}
.field>span,.cell-sub,.subtle,.nav-group-title,.metric-note,.picker-row-info span,.recipe-meta,.recipe-form-note,.product-links,.chip{font-size:14px!important}
.login-card p,.notice{font-size:15px;line-height:1.6}
.topbar-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px}
.owner-chip #session-email{max-width:175px;overflow:hidden;text-overflow:ellipsis;display:block}
@media(max-width:760px){.topbar{height:auto;min-height:76px;padding:14px 16px;flex-wrap:wrap;gap:12px}.topbar-actions{width:100%;justify-content:flex-start}.topbar-actions .sync-label{width:100%}.finance-box{padding:14px}.form-grid.cols-3{grid-template-columns:1fr}.whatsapp-btn{margin-left:0}.repurchase-card>div:last-child{text-align:left!important}.subscription-foot,.subscription-top{flex-wrap:wrap}.subscription-foot .table-actions{flex-wrap:wrap}.import-counts{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Organics: desktop tables and compact phone lists. */
:root{--sidebar:246px;--bg:#f8f7f1;--ink:#162f23;--green:#477b17;--green-2:#3b6712;--line:#dfdfd5;--leaf-soft:#eaf2df;--shadow:0 3px 10px rgba(22,47,35,.05)}
body{background:var(--bg)}
.main-area,.content,.grid-2>*,.section,.page-head>div{min-width:0}
.sidebar{background:#142f20;border-right:0;box-shadow:none}
.brand-wrap{margin:16px 10px 10px;padding:14px;min-height:88px;justify-content:center;background:#fff;border:0;border-radius:18px}
.brand-logo{width:110px;max-height:64px;object-position:center}
.brand-wrap .mobile-close{position:absolute;right:5px;top:4px;background:transparent;color:#324e3d;width:32px;height:32px}
.side-nav{padding:6px 10px 18px;gap:3px}
.nav-group-title{display:none}
.nav-item{min-height:42px;border-radius:12px;color:#e5ecdf;padding:8px 12px;transform:none}
.nav-icon{background:transparent!important;color:inherit!important;width:22px;height:22px;box-shadow:none!important}
.nav-item.active{background:#84b737;color:#10200b;box-shadow:none}
.nav-item.active:before{display:none}
.nav-badge{background:#294b35;color:#eaf2df}
.nav-item.active .nav-badge{background:#a6cc6d;color:#142b17}
.side-foot{border-color:#2c4936;padding:16px 12px}
.owner-chip strong{color:#fff}
.owner-chip span,.owner-chip #session-email{color:#d0decf}
.owner-avatar{background:#294b35;color:#e5ecdf}
.side-logout{background:#244730;color:#fff;border-color:#365c40}
.topbar{height:auto;min-height:68px;padding:12px 32px;background:var(--bg);box-shadow:none;backdrop-filter:none;border-color:#e4e4db;flex-wrap:wrap}
.topbar-copy strong{font-size:16px}
.topbar-copy span{font-size:11px;text-transform:none;letter-spacing:0}
.topbar-actions{min-width:0;flex-wrap:wrap}
.mobile-brand,.mobile-data-actions{display:none}
.content{max-width:1440px;padding:30px 32px 64px}
.page-head{padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;overflow:visible;margin-bottom:24px;gap:20px}
.page-head:before,.page-head:after{display:none}
.page-head h1{font-size:28px;line-height:1.2;letter-spacing:-.02em}
.page-head p{font-size:14px;line-height:1.55;color:#647167;max-width:720px}
.page-actions{flex-shrink:0}
.primary-btn,.secondary-btn,.ghost-btn,.soft-btn,.danger-btn{border-radius:10px;min-height:36px;font-size:13px}
.primary-btn{background:#477b17;box-shadow:0 2px 4px rgba(30,59,11,.12)}
.primary-btn:hover{background:#3b6712;transform:none}
.section{padding:20px;border-radius:18px;box-shadow:var(--shadow)}
.section-head{gap:12px}
.section-head h2{font-size:15px}
.section-head p{font-size:13px;line-height:1.5}
.metric-card{padding:18px;border-radius:17px;background:#fff;box-shadow:var(--shadow)}
.metric-card strong{font-size:26px;line-height:1.25;margin:10px 0 4px}
.metric-top{gap:8px}
.metric-icon{display:none}
.metric-eyebrow{font-size:11px;color:#65736a}
.metric-note{font-size:12px!important}
.toolbar{gap:10px;flex-wrap:wrap}
.toolbar .input,.toolbar .select{max-width:100%;min-width:0}
.data-table th{background:#f7f7f1;color:#647167;font-size:11px;letter-spacing:0;padding:12px}
.data-table td{font-size:13px;padding:14px 12px;border-color:#dfdfd5;overflow-wrap:anywhere}
.data-table .cell-sub{font-size:12px!important;line-height:1.5}
.cell-main{font-weight:700}
.table-actions{flex-wrap:wrap;gap:6px}
.product-links{gap:5px}
.chip{font-size:12px!important;white-space:normal}
.recipe-hero{background:#edf4e2;color:#203d2c;border:1px solid #d4e1c7;border-radius:12px;box-shadow:none}
.recipe-hero strong{color:#203d2c}
.recipe-hero span{color:#465c48}
.recipe-hero-icon{background:#d9e6cb;color:#365923}
.recipe-card{box-shadow:var(--shadow);border-radius:18px;padding:18px}
.recipe-card:hover{transform:none;border-color:#c9d4c1}
.recipe-symbol{display:none}
.recipe-card-head{grid-template-columns:minmax(0,1fr) auto}
.recipe-card h3{font-size:15px;line-height:1.4;overflow-wrap:anywhere}
.recipe-meta{gap:12px;font-size:13px!important}
.recipe-quantity-table{border-collapse:collapse;width:100%;table-layout:fixed;margin-top:12px}
.recipe-quantity-table th,.recipe-quantity-table td{padding:11px 5px;border-bottom:1px solid var(--line);font-size:12px;text-align:right;overflow-wrap:anywhere;vertical-align:middle}
.recipe-quantity-table th{font-size:10px;text-transform:uppercase;font-weight:600;color:#65736a}
.recipe-quantity-table th:first-child,.recipe-quantity-table td:first-child{width:52%;text-align:left}
.recipe-quantity-table td:last-child{color:#477b17}
.recipe-quantity-table tbody tr:last-child td{border-bottom:0}
.subscription-card{background:#fff;border-radius:18px;box-shadow:var(--shadow)}
.subscription-date{background:#f4f5ee}
.subscription-foot .primary-btn{flex:1}
.monthly-period{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:22px;padding:18px 20px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:var(--shadow)}
.monthly-period h2{font-size:17px;margin:0 0 6px;text-transform:capitalize}
.monthly-period p{font-size:13px;color:#647167;margin:0}
.monthly-period .field{min-width:200px}
.monthly-period input{min-width:0;width:100%;min-height:44px}
.stock-row-critical{background:#fff7f3!important}
@media(hover:hover){
  .sidebar .nav-item:not(.active):hover{background:#294c35;color:#fff;transform:none}
  .data-table tbody tr:hover{background:#edf4e2!important}
  .recipe-quantity-table tbody tr:hover{background:#edf4e2}
}
@media(max-width:1000px){
  .content{padding:24px 22px 56px}
  .topbar{padding:12px 22px}
  .metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .grid-2{grid-template-columns:1fr}
}
@media(max-width:760px){
  .recipe-grid{grid-template-columns:1fr}
  .topbar-actions{width:auto;margin-left:auto}
  .topbar-actions .sync-label{width:auto}
  .monthly-period{align-items:flex-start;flex-wrap:wrap;gap:14px}
  .monthly-period .field{flex:1}
}
@media(max-width:640px){
  .sidebar{width:min(290px,calc(100vw - 44px));height:100dvh}
  .side-nav{flex:1;min-height:0}
  .side-foot{flex-shrink:0;padding:12px}
  .mobile-data-actions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:8px}
  .mobile-data-actions button{flex:1;font-size:12px;min-width:0}
  .mobile-brand{display:block;width:40px;height:40px;object-fit:contain}
  .topbar{min-height:56px;gap:10px;padding:8px 14px;align-items:center;background:#fff}
  .menu-btn{border:0;padding:8px;width:36px;min-height:36px;background:transparent}
  .menu-btn span{display:none}
  .topbar-copy{margin-left:auto}
  .topbar-copy strong{font-size:13px;margin:0}
  .topbar-copy span{display:none}
  .topbar-actions{flex-basis:100%;margin:0;justify-content:space-between;gap:8px;align-items:center}
  .topbar-actions .sync-label{font-size:11px;overflow-wrap:anywhere;flex:1}
  .topbar-actions [data-action=import-data],.topbar-actions [data-action=export-data]{display:none}
  .topbar-actions #install-button:not([hidden]){display:inline-flex;font-size:11px;min-height:28px;padding:4px 8px}
  .content{padding:22px 14px 48px}
  .page-head{padding:0;border-radius:0;gap:14px;margin-bottom:22px}
  .page-head h1{font-size:25px}
  .page-head p{font-size:14px;margin-top:8px}
  .page-actions{justify-content:flex-start}
  .section{padding:16px 12px;border-radius:17px}
  .metrics-grid{gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}
  .metric-card{padding:14px}
  .metric-card strong{font-size:23px;overflow-wrap:anywhere}
  .metric-eyebrow{font-size:10px}
  .metric-note{font-size:11px!important;line-height:1.5}
  .table-wrap{overflow:visible}
  .responsive-table{display:block;min-width:0!important;width:100%}
  .responsive-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .responsive-table tbody{display:block}
  .responsive-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 14px;padding:16px 4px;border-bottom:1px solid var(--line);background:transparent;min-width:0}
  .responsive-table tbody tr:last-child{border-bottom:0}
  .responsive-table td{display:block;padding:0;border:0;min-width:0;font-size:13px;overflow-wrap:anywhere}
  .responsive-table td:before{content:attr(data-label);display:block;font-size:10px;color:#647167;margin-bottom:4px;font-weight:500}
  .responsive-table td:first-child{grid-column:1/-1;font-size:15px;font-weight:700}
  .responsive-table td:first-child:before{display:none}
  .responsive-table td[data-label=""]{grid-column:1/-1;padding-top:4px}
  .responsive-table td[data-label=""]:before{display:none}
  .responsive-table .table-actions{gap:7px}
  .responsive-table .table-actions button{min-height:36px}
  .responsive-table .product-links{font-size:12px!important}
  .recipe-card{padding:16px 12px}
  .recipe-card-head{gap:10px;grid-template-columns:1fr}
  .recipe-card-head .table-actions{justify-content:flex-start}
  .recipe-title{min-width:0}
  .recipe-meta{gap:10px}
  .recipe-quantity-table{margin-top:8px}
  .recipe-quantity-table th,.recipe-quantity-table td{font-size:12px;padding:11px 4px}
  .recipe-quantity-table th{font-size:10px}
  .recipe-hero{padding:14px}
  .recipe-hero-icon{display:none}
  .recipe-hero strong{font-size:13px}
  .recipe-hero span{font-size:12px;line-height:1.5}
  .recipe-metrics{gap:10px;grid-template-columns:repeat(3,minmax(0,1fr))}
  .recipe-metrics article{padding:12px 8px}
  .recipe-metrics article span{font-size:10px;line-height:1.5}
  .recipe-metrics article strong{font-size:22px}
  .subscription-grid{grid-template-columns:1fr}
  .subscription-foot{align-items:stretch}
  .subscription-foot>.table-actions{width:100%}
  .subscription-foot .primary-btn{flex-basis:100%}
  .monthly-period{padding:16px;gap:16px}
  .monthly-period>div,.monthly-period .field{width:100%}
  .monthly-period h2{font-size:16px}
  .monthly-period .field{min-width:0}
  .toolbar input[type=month]{flex-basis:auto!important}
  .modal-backdrop{padding:8px}
  .modal{max-width:100%;max-height:calc(100dvh - 16px)}
  }
@media(max-width:360px){.metric-card strong{font-size:20px}.content{padding-left:10px;padding-right:10px}.responsive-table tbody tr{gap:10px}}

@media(max-width:640px){.main-area,.sidebar{touch-action:pan-y pinch-zoom}}

/* Production printing preserves ordinary table rows on every screen size. */
.production-sheet h2{font-size:20px;margin:20px 0 8px}.production-sheet h3{margin:24px 0 10px}.order-audit{margin:16px 0;padding:12px;border:1px solid var(--line);border-radius:12px}.order-audit p{font-size:12px}
@media print{
 @page{size:A4;margin:15mm}
 body{background:#fff!important;color:#111!important;font-size:11pt}
 .sidebar,.topbar,.mobile-backdrop,.toast-root,#toast-root,#connection-banner,.no-print,.form-actions,.close-btn,.page-actions,.toolbar{display:none!important}
 .main-area{margin:0!important}.content{padding:0!important}.section{box-shadow:none!important;border:0!important}
 body.printing-production>#app,body.printing-production>#login-root{display:none!important}
 body.printing-production .modal-backdrop{position:static!important;display:block!important;padding:0!important;background:none!important;backdrop-filter:none!important}
 body.printing-production .modal{width:100%!important;max-height:none!important;overflow:visible!important;border-radius:0!important;box-shadow:none!important}
 body.printing-production .modal-head{display:none!important}.modal-body{padding:0!important}
 .data-table,.responsive-table{min-width:0!important;width:100%!important;display:table!important;border-collapse:collapse!important}
 .data-table thead{display:table-header-group!important}.data-table tbody{display:table-row-group!important}.data-table tr{display:table-row!important;break-inside:avoid;border:0!important;box-shadow:none!important;background:none!important}
 .data-table th,.data-table td{display:table-cell!important;padding:7px!important;border-bottom:1px solid #bbb!important;white-space:normal!important}.data-table td:before{display:none!important}
 h2,h3{break-after:avoid}.notice{background:none!important;border:1px solid #aaa!important;color:#111!important}
}
