:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#24392f;background:#f6f7f3;font-synthesis:none;font-size:14px;--green:#286454;--ink:#24392f;--muted:#68736b;--line:#e3e8df;--cream:#f6f7f3;--red:#a33131}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:3px solid var(--green);outline-offset:3px}button{border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:10px;padding:11px 16px;font-weight:600;min-height:42px}button:hover:not(:disabled){background:#f0f5ec}.primary{background:var(--green);color:#fff;border-color:var(--green)}.primary:hover:not(:disabled){background:#1d5143}.danger{color:var(--red);border-color:#e6c9c3}.ghost{background:transparent;border-color:transparent}a{color:var(--green)}.muted{color:var(--muted)}.small{font-size:12px}.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:1.8px;font-weight:750;color:var(--muted)}h1,h2,h3,p{margin-top:0}h1{font-size:40px;letter-spacing:-1px;line-height:1.25;margin-bottom:7px}h2{font-size:18px;letter-spacing:-.3px}h3{font-size:15px}svg{width:20px;height:20px;vertical-align:middle;flex-shrink:0}button svg{margin-right:6px}.shell{display:grid;grid-template-columns:214px minmax(0,1fr);min-height:100vh}.sidebar{background:#fff;border-right:1px solid var(--line);padding:28px 16px;display:flex;flex-direction:column;gap:32px;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:11px;padding:0 8px;font-size:21px;letter-spacing:-.7px;font-weight:800}.brand img{width:38px;height:38px}.brand small{font-size:10px;letter-spacing:2px;display:block;color:var(--muted);text-transform:uppercase;margin-top:2px}.nav{display:grid;gap:8px}.nav button{display:flex;align-items:center;text-align:left;gap:12px;border:0;color:var(--muted);background:transparent;padding:13px 16px;min-height:48px}.nav button svg{margin:0}.nav button.active{background:#edf4eb;color:var(--green)}.sidebar-foot{margin-top:auto;padding:16px 8px;border-top:1px solid var(--line);line-height:1.7}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#4f8964;margin-right:7px}.workspace{min-width:0}.topbar{height:76px;border-bottom:1px solid var(--line);padding:0 34px;display:flex;align-items:center;justify-content:space-between;background:#fff;gap:12px}.shop-label{display:flex;align-items:center;gap:12px;font-weight:650}.shop-letter{width:34px;height:34px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;background:#faf9f1}.badge{display:inline-flex;align-items:center;border-radius:7px;padding:5px 9px;font-size:11px;font-weight:700;background:#f1f3eb;color:#58704b}.badge.demo{background:#fbefd8;color:#825d20}.badge.red{background:#fff0eb;color:#a4472d}.main{padding:30px 34px 40px;max-width:1700px;margin:auto}.page-head{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:28px}.page-head p{margin:0;color:var(--muted);line-height:1.5}.head-actions{display:flex;gap:8px;flex-wrap:wrap}.sales-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:26px;align-items:start}input,select,textarea{border:1px solid #d8e0d5;border-radius:9px;padding:12px;background:#fff;color:var(--ink);width:100%;min-width:0;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px #28645416}textarea{min-height:72px;resize:vertical}input[type=checkbox]{width:18px;height:18px}.menu-layout{display:grid;grid-template-columns:128px minmax(0,1fr);gap:20px;align-items:start;min-width:0}
.categories{display:flex;flex-direction:column;gap:8px;position:sticky;top:24px;max-height:calc(100dvh - 48px);overflow:auto}
.category-button{width:100%;min-height:46px;text-align:left;white-space:normal;overflow-wrap:anywhere;font-size:12px;line-height:1.4;padding:12px;border-radius:10px}
.category-button.active,.category-button.active:hover:not(:disabled){background:var(--ink);color:#fff;border-color:var(--ink)}
.products{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:16px}
.product{display:flex;flex-direction:column;overflow:hidden;min-width:0;border:1px solid var(--line);border-radius:15px;background:#fff;transition:border-color .15s,box-shadow .15s}
.product.in-order{border-color:#8aac98;box-shadow:0 0 0 1px #28645412}
.product-summary{display:flex;flex-direction:column;flex:1;width:100%;padding:0;border:0;border-radius:0;background:transparent;text-align:center;min-height:0;font-weight:400}
.product-summary:hover:not(:disabled){background:#fafcf7}
.product-summary:focus-visible{outline-offset:-4px}
.product-art{display:block;height:135px;width:100%;overflow:hidden;flex-shrink:0}
.product-art img{display:block;width:100%;height:100%;object-fit:cover}
.product-image-placeholder{display:grid;place-items:center;width:100%;height:100%;background:var(--cream);color:var(--muted);font-size:14px}
.product-info{display:flex;flex-direction:column;justify-content:center;flex:1;padding:18px 12px 14px;min-height:110px;width:100%}
.product-name{font-weight:650;font-size:14px;line-height:1.4;display:block;margin-bottom:5px;overflow-wrap:anywhere}
.product-price{display:block;margin-top:12px;color:var(--green);font-weight:750}
.product-controls{display:flex;justify-content:center;align-items:center;min-height:60px;padding:0 12px 16px}
.product-add{display:grid;place-items:center;width:42px;min-height:42px;padding:0;border-radius:10px;font-size:22px;font-weight:400;color:var(--green);background:#f2f6ed}
.panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:23px;min-width:0}.order-panel{position:sticky;top:24px;padding:0;overflow:hidden}.order-head{display:flex;align-items:center;justify-content:space-between;padding:22px;border-bottom:1px solid var(--line)}.order-head h2{margin:0}.order-items{min-height:245px;max-height:48vh;overflow:auto;padding:8px 22px}.order-item{display:flex;justify-content:space-between;gap:12px;padding:18px 0;border-bottom:1px solid #edf0e9}.order-item:last-child{border:0}.order-item strong{font-size:13px;display:block;margin-bottom:6px}.order-price{text-align:right;white-space:nowrap}.stepper{display:flex;align-items:center;gap:6px;margin-top:10px}
.quantity-control button{padding:0;width:40px;min-height:40px;flex-shrink:0;border-radius:8px;font-size:18px;font-weight:400}
.quantity-input{width:44px;min-width:0;height:40px;padding:5px 2px;text-align:center;font-weight:650;font-size:14px;appearance:textfield;-moz-appearance:textfield}
.quantity-input::-webkit-inner-spin-button,.quantity-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.product-controls .quantity-control{margin-top:0}.order-foot{padding:20px 22px;background:#fcfdf9;border-top:1px solid var(--line)}.total-row{display:flex;align-items:center;justify-content:space-between;font-size:20px;font-weight:750;padding:14px 0 20px}.full{width:100%}.empty{text-align:center;padding:46px 16px;color:var(--muted);line-height:1.6}.empty svg{width:38px;height:38px;display:block;margin:0 auto 12px;color:#98a68f}.empty h3{color:var(--ink);margin-bottom:7px}.order-empty{padding:60px 10px}.inline-note{font-size:12px;line-height:1.6;color:var(--muted);margin:12px 0 0}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:24px}.stat{background:#fff;border:1px solid var(--line);border-radius:15px;padding:23px}.stat.featured{background:var(--green);color:#fff}.stat-label{font-size:12px;color:var(--muted);display:block;margin-bottom:15px}.featured .stat-label{color:#e0eddb}.stat-value{font-size:27px;letter-spacing:-1px;font-weight:750;display:block;margin-bottom:8px}.stat-note{font-size:11px;color:var(--muted)}.featured .stat-note{color:#d4e6cf}.dashboard-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:23px}.panel-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:22px}.panel-head h2{margin:0}.bar-chart{height:205px;display:flex;align-items:flex-end;gap:14px;padding-top:25px}.bar-column{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;flex:1;height:100%;min-width:0;gap:8px}.bar{width:100%;max-width:40px;background:#cfe0c2;border-radius:6px 6px 2px 2px;min-height:3px}.bar-column:last-child .bar{background:var(--green)}.bar-column small{font-size:10px;color:var(--muted)}.bar-value{font-size:10px;white-space:nowrap;color:var(--muted)}.rank-row{display:flex;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid #edf0e9}.rank-row:last-child{border:0}.rank-no{border-radius:9px;background:var(--cream);width:32px;height:32px;display:grid;place-items:center;color:var(--muted);font-size:12px}.rank-name{flex:1}.rank-name strong{display:block;font-size:12px;margin-bottom:4px}.rank-count{font-weight:700}.list-total{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid #edf0e9;gap:14px}.list-total:last-child{border:0}.list-total strong{white-space:nowrap}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}th{color:var(--muted);font-size:11px;font-weight:600;border-bottom:1px solid var(--line);padding:13px 10px;white-space:nowrap}td{padding:17px 10px;border-bottom:1px solid #edf0e9}tr:last-child td{border:0}td:first-child,th:first-child{padding-left:0}td:last-child,th:last-child{padding-right:0}.cell-title{font-weight:650;display:block;margin-bottom:4px}.table-action{padding:6px 10px;min-height:34px;font-size:11px;margin:3px}.stock-num{font-variant-numeric:tabular-nums;font-weight:700}.positive{color:var(--green)}.negative{color:var(--red)}.two-column{display:grid;grid-template-columns:1fr 1fr;gap:23px;margin-bottom:23px}.settings-intro{background:#eaf0e4;padding:24px;border-radius:15px;display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.settings-intro h2{margin-bottom:6px}.settings-intro p{margin:0;color:var(--muted);font-size:13px}.stack{display:flex;gap:10px;flex-wrap:wrap}.settings-section{margin-bottom:24px}.settings-section p{line-height:1.65}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600;min-width:0}.field.wide{grid-column:1/-1}.field small{font-weight:400;color:var(--muted);line-height:1.5}.check-field{display:flex;gap:10px;align-items:center;font-size:12px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding-top:23px;margin-top:5px}.form-error{color:var(--red);background:#fff0eb;padding:12px;border-radius:9px;font-size:13px;line-height:1.5;margin-top:15px}.form-error:empty{display:none}dialog{border:1px solid var(--line);border-radius:20px;padding:28px;width:min(620px,calc(100% - 28px));max-height:90dvh;overflow:auto;box-shadow:0 30px 90px #10251b33;color:var(--ink)}dialog::backdrop{background:#142c2255;backdrop-filter:blur(3px)}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:25px}.modal-head h2{margin:0;font-size:22px}.close{padding:0;min-height:32px;width:32px;background:var(--cream);font-size:20px}.recipe-row{display:grid;grid-template-columns:minmax(0,1fr) 90px 34px;gap:8px;margin:10px 0}.recipe-row button{padding:0;min-height:40px}.recipe-label{margin-top:20px;font-size:12px;font-weight:600}.cost-box{padding:16px;background:#edf4eb;border-radius:10px;margin-top:18px;font-size:12px;line-height:1.7}.cost-box .stack{align-items:center;margin-top:10px}.cost-box input{width:80px;padding:8px}.cost-box button{font-size:12px;padding:8px 12px;min-height:36px}.payment-options{display:flex;gap:8px;margin:20px 0}.payment-options button{flex:1;font-size:12px}.payment-options .selected{background:#eaf2e6;border:1px solid var(--green);color:var(--green)}.checkout-total{text-align:center;padding:20px;background:var(--cream);border-radius:12px}.checkout-total span{display:block;font-size:12px;color:var(--muted);margin-bottom:8px}.checkout-total strong{font-size:38px;letter-spacing:-1.5px}.banner{padding:13px 18px;margin-bottom:20px;border:1px solid #ecd4a5;background:#fff5df;border-radius:10px;font-size:13px;line-height:1.6}.welcome{min-height:100vh;display:grid;place-items:center;padding:30px;background:radial-gradient(ellipse at top,#dde9d5,transparent 65%),#f6f7f3}.welcome-card{max-width:600px;text-align:center}.welcome-card>img{width:70px;margin-bottom:30px}.welcome h1{font-size:48px;letter-spacing:-2px;line-height:1.12}.welcome p{font-size:16px;color:var(--muted);line-height:1.7;max-width:440px;margin:20px auto 30px}.welcome .stack{justify-content:center}.welcome small{display:block;color:var(--muted);margin-top:25px;line-height:1.7}.loading{padding:40px}#toast{opacity:0;position:fixed;bottom:25px;left:50%;transform:translateX(-50%) translateY(100px);background:#24392f;color:#fff;padding:14px 22px;border-radius:12px;z-index:10;box-shadow:0 8px 25px #0002;max-width:calc(100% - 30px);width:max-content;font-size:13px;transition:transform .2s;pointer-events:none}#toast.visible{opacity:1;transform:translateX(-50%) translateY(0)}.mobile-cart-link{display:none}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.date-filter{max-width:160px;padding:10px}.spaced{margin-top:23px}.receipt-lines{margin-top:15px}.receipt-lines .list-total{font-size:13px}
@media(min-width:1500px){.sales-layout{grid-template-columns:minmax(0,1fr) 360px}}
@media(max-width:1190px){.shell{grid-template-columns:180px minmax(0,1fr)}.sidebar{padding:26px 10px}.brand{font-size:19px;gap:8px}.main{padding:25px 24px}.topbar{padding:0 24px}.sales-layout{grid-template-columns:minmax(0,1fr) 290px;gap:18px}.stats{gap:12px}.stat{padding:18px}.stat-value{font-size:23px}.dashboard-grid{grid-template-columns:1fr 1fr}}
@media(max-width:900px){.shell{grid-template-columns:76px minmax(0,1fr)}.sidebar{align-items:center;padding:22px 8px}.brand{padding:0}.brand>span,.nav button>span,.sidebar-foot{display:none}.nav button{justify-content:center;padding:14px;width:50px}.main{padding:24px 20px}.topbar{padding:0 20px}.sales-layout{grid-template-columns:minmax(0,1fr) 270px;gap:16px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:1fr}.two-column{grid-template-columns:1fr}.page-head{align-items:flex-start}.page-head h1{font-size:36px}}
@media(max-width:1000px){.sales-layout{grid-template-columns:minmax(0,1fr)}.menu-layout{grid-template-columns:120px minmax(0,1fr);gap:16px}.order-panel{position:static;scroll-margin-top:20px}.order-items{max-height:none;min-height:100px}.mobile-cart-link{display:block;position:fixed;bottom:24px;right:24px;z-index:3;border-radius:30px;box-shadow:0 5px 20px #1a4e4033}}
@media(max-width:680px){.shell{display:block}.sidebar{position:fixed;z-index:4;top:auto;bottom:0;left:0;right:0;height:auto;padding:5px 5px max(5px,env(safe-area-inset-bottom));border-right:0;border-top:1px solid var(--line);background:#fffffffa;display:block}.sidebar .brand{display:none}.nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px}.nav button{width:100%;min-height:56px;display:flex;flex-direction:column;gap:5px;padding:7px 2px;border-radius:9px}.nav button>span{display:block;font-size:10px}.nav button svg{width:19px;height:19px}.topbar{height:64px;padding:0 18px}.shop-label{font-size:13px;gap:8px}.main{padding:23px 16px 110px}.page-head{margin-bottom:23px;gap:12px}.page-head h1{font-size:34px}.page-head p{font-size:12px}.head-actions button{font-size:12px;padding:9px 11px}.sales-layout{grid-template-columns:1fr}.order-panel{position:static;margin-top:8px;scroll-margin-top:15px}.order-items{min-height:100px;max-height:none}.order-empty{padding:28px 10px}.mobile-cart-link{display:block;position:fixed;bottom:79px;right:16px;z-index:3;border-radius:30px;box-shadow:0 5px 20px #1a4e4033}.stats{gap:11px;margin-bottom:18px}.stat{padding:17px}.stat-value{font-size:23px}.stat-label{font-size:11px;margin-bottom:12px}.stat-note{font-size:10px}.panel{padding:19px}.order-panel{padding:0}.dashboard-grid{gap:18px}.panel-head{gap:8px}.panel-head h2{font-size:16px}.bar-chart{gap:9px}.bar-value{font-size:9px}.settings-intro{padding:20px;flex-direction:column;align-items:flex-start}.settings-intro button{width:100%}.form-grid{grid-template-columns:1fr}.field.wide{grid-column:auto}dialog{padding:22px}.payment-options{gap:6px}.payment-options button{padding:10px 8px}.welcome h1{font-size:39px}.welcome p{font-size:14px}.welcome .stack{flex-direction:column}.welcome-card{width:100%}.date-filter{width:120px;font-size:12px}.table-action{margin:3px 0;display:block}#toast{bottom:150px}.recipe-row{grid-template-columns:minmax(0,1fr) 75px 30px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media(max-width:680px){.menu-layout{grid-template-columns:86px minmax(0,1fr);gap:10px}.categories{top:16px;gap:7px;max-height:calc(100dvh - 110px)}.category-button{font-size:11px;padding:11px 8px;min-height:44px}.products{grid-template-columns:minmax(0,1fr);gap:12px}.product-info{padding:16px 10px 12px}.product-controls{padding:0 10px 14px}.product-art{height:130px}}
.page-head h1{margin:0;line-height:1.15}
.sales-header{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:26px}
.sales-menu-heading{display:grid;grid-template-columns:128px minmax(0,1fr);gap:20px;align-items:center;min-width:0}
.sales-group{margin:0;font-size:24px;line-height:1.3;font-weight:650;text-align:center;overflow-wrap:anywhere}
.sales-header .head-actions{justify-content:flex-end}
.order-number{padding:16px 22px 12px}
.order-number .field{margin-bottom:8px}
.order-number input{font-size:16px}
@media(min-width:1500px){.sales-header{grid-template-columns:minmax(0,1fr) 360px}}
@media(max-width:1190px){.sales-header{grid-template-columns:minmax(0,1fr) 290px;gap:18px}}
@media(max-width:1000px){.sales-header{grid-template-columns:120px minmax(0,1fr);column-gap:16px;row-gap:16px;margin-bottom:20px}.sales-menu-heading{display:contents}.sales-header h1{grid-column:1;grid-row:1}.sales-group{grid-column:2;grid-row:2}.sales-header .head-actions{grid-column:2;grid-row:1;justify-self:end}}
@media(max-width:680px){.sales-header{grid-template-columns:86px minmax(0,1fr);column-gap:10px;row-gap:14px;margin-bottom:16px}.sales-group{font-size:23px}}
.topbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr) minmax(0,1fr);height:auto;min-height:92px;padding-top:14px;padding-bottom:14px;gap:16px}
.shop-avatar{display:grid;place-items:center;width:64px;height:64px;min-height:64px;padding:0;border-radius:50%;overflow:hidden;justify-self:start;background:var(--cream);font-size:24px}
.shop-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.shop-name{text-align:center;font-size:20px;font-weight:700;line-height:1.3;overflow-wrap:anywhere;min-width:0}


.setup-header{flex-wrap:wrap;align-items:center;gap:20px}



.setup-header .head-actions{margin-left:auto}
.setup-header .head-actions button{font-size:13px;padding:10px 12px}
.shop-image-editor{display:flex;align-items:center;gap:18px;margin-bottom:20px}
.shop-image-preview,.shop-image-empty{width:88px;height:88px;border-radius:50%;object-fit:cover;flex-shrink:0}
.shop-image-empty{display:grid;place-items:center;background:var(--cream);color:var(--muted);font-size:12px}

@media(max-width:680px){.topbar{grid-template-columns:72px minmax(0,1fr) 72px;min-height:82px;gap:10px;padding-top:12px;padding-bottom:12px}.shop-avatar{width:56px;height:56px;min-height:56px;font-size:22px}.shop-name{font-size:17px}.setup-header{gap:16px}.setup-header .head-actions{width:100%;gap:8px}.setup-header .head-actions button{flex:1;padding:10px 8px}.setup-header .head-actions button svg{width:16px;margin-right:3px}}
.period-filters{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:24px}
.period-filters .field{width:180px;max-width:100%}
.period-filters button{min-height:44px}
.period-filters .form-error{width:100%;margin:0}
.period-label{font-size:12px;color:var(--muted);text-align:right;overflow-wrap:anywhere}
@media(max-width:680px){.period-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:20px}.period-filters .field{width:auto}.period-filters .field:first-child,.period-filters button,.period-filters .form-error{grid-column:1/-1}.period-filters input{padding:11px 8px}.period-label{max-width:50%}}
.dashboard-chart-scroll{overflow-x:auto;padding-bottom:6px}
.dashboard-chart-scroll .bar-column small{white-space:normal;text-align:center;line-height:1.3;min-height:26px}
.dashboard-chart-scroll .bar-column{min-width:50px}
dialog.orders-dialog{width:min(820px,calc(100% - 28px))}
.history-summary{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:12px;font-size:13px}
.history-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:20px;font-size:12px}
.history-pagination button{font-size:12px}
.orders-dialog td:first-child{overflow-wrap:anywhere;max-width:180px}
.orders-dialog .table-action{min-width:44px;max-width:160px;padding:6px 8px}
@media(max-width:680px){.orders-dialog .period-filters .field:first-child{grid-column:1/-1}.orders-dialog td,.orders-dialog th{padding-left:6px;padding-right:6px}.orders-dialog td:first-child,.orders-dialog th:first-child{padding-left:0}.orders-dialog td:last-child,.orders-dialog th:last-child{padding-right:0}.history-pagination{gap:8px}.history-pagination button{padding:9px 12px}}
