﻿:root{--bg:#f7f9f6;--surface:#fff;--soft:#eef4ee;--line:#e4ebe3;--ink:#17261d;--muted:#758278;--green:#16834b;--green-dark:#106b3c;--mint:#e2f4e8;--orange:#f29c38;--red:#d84a4a;--shadow:0 10px 28px rgba(27,54,35,.07);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:var(--ink)}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}body{margin:0;background:var(--bg);font-size:14px;line-height:1.45;padding-bottom:calc(82px + env(safe-area-inset-bottom))}button,input,select{font:inherit}button{cursor:pointer}h1,h2,h3,p{margin:0}.topbar{height:74px;padding:calc(12px + env(safe-area-inset-top)) 18px 10px;display:flex;align-items:center;gap:11px;background:var(--bg);position:sticky;top:0;z-index:5}.brand-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(145deg,#20a45f,#08723d);color:white;font-weight:900;letter-spacing:-1px;box-shadow:0 7px 15px #13814830}.brand-copy{display:grid;gap:1px;flex:1;min-width:0}.brand-copy strong{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.brand-copy small{color:var(--muted);font-size:11px}.icon-button{width:40px;height:40px;border:1px solid var(--line);border-radius:13px;background:var(--surface);color:var(--ink);font-size:19px}main{max-width:680px;margin:auto;padding:8px 17px 24px}.hello{font-size:13px;color:var(--muted);margin:7px 0 12px}.hero-actions{display:flex;gap:9px;margin-top:17px}.primary-button,.ghost-button{border:0;border-radius:12px;padding:11px 15px;font-weight:750}.primary-button{background:#fff;color:var(--green-dark)}.ghost-button{background:#ffffff20;color:#fff;border:1px solid #ffffff48}.stat label{display:block;color:var(--muted);font-size:11px}.section{margin:18px 0}.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px}.section-head h2{font-size:16px;letter-spacing:-.3px}.text-button{border:0;background:none;color:var(--green);font-size:12px;font-weight:750;padding:6px 0}.list{display:grid;gap:9px}.row-card,.product-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:13px;box-shadow:var(--shadow)}.row-card{display:flex;align-items:center;gap:11px}.round-icon{width:40px;height:40px;border-radius:13px;background:var(--soft);display:grid;place-items:center;font-size:19px;flex:0 0 auto}.row-main{min-width:0;flex:1}.row-main strong,.row-main small{display:block}.row-main strong{font-size:13px}.row-main small{color:var(--muted);font-size:11px;margin-top:3px}.row-end{text-align:right;white-space:nowrap}.row-end strong{display:block;font-size:13px}.row-end small{color:var(--muted);font-size:10px}.toolbar{display:flex;gap:9px;margin:5px 0 14px}.search{width:100%;border:1px solid var(--line);border-radius:13px;background:#fff;padding:12px 13px;outline:none;color:var(--ink)}.search:focus,.field input:focus,.field select:focus{border-color:#5bb27e;box-shadow:0 0 0 3px #16834b17}.add-button{border:0;background:var(--green);color:white;border-radius:13px;padding:0 14px;font-weight:800;white-space:nowrap}.chips{display:flex;gap:7px;overflow:auto;padding:1px 0 13px;scrollbar-width:none}.chips::-webkit-scrollbar{display:none}.chip{border:1px solid var(--line);border-radius:30px;background:#fff;color:var(--muted);padding:7px 12px;white-space:nowrap;font-size:11px;font-weight:700}.chip.active{background:var(--green);border-color:var(--green);color:#fff}.product-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.product-card{padding:12px;min-width:0}.product-top{display:flex;justify-content:space-between;align-items:flex-start;gap:6px}.product-emoji{font-size:24px}.stock-pill{background:var(--soft);color:var(--green-dark);border-radius:20px;padding:4px 7px;font-size:9px;font-weight:750;white-space:nowrap}.stock-pill.low{background:#fff0dc;color:#a45a06}.product-card h3{font-size:13px;margin:9px 0 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-cat{font-size:10px;color:var(--muted)}.product-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:10px}.price{font-weight:850;color:var(--green-dark);font-size:14px}.tiny-action{border:1px solid var(--line);background:#fff;border-radius:9px;padding:6px 9px;color:var(--green);font-weight:800}.sell-head{background:#fff;border:1px solid var(--line);border-radius:17px;padding:13px;margin:3px 0 12px}.sell-head strong{font-size:14px}.sell-head small{display:block;color:var(--muted);margin-top:3px;font-size:11px}.sell-product{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:11px;text-align:left;color:var(--ink);min-width:0}.sell-product .round-icon{width:36px;height:36px}.sell-product .row-main strong{font-size:12px}.sell-product .row-main small{font-size:10px}.sell-product .plus{font-size:20px;color:var(--green);font-weight:700}.sell-product-card .product-variants{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.mini-cart-button{display:inline-flex;align-items:baseline;gap:6px;padding:8px 11px;border:1px solid var(--line);border-radius:12px;background:#f4f8f4;color:var(--ink);font:inherit;font-size:12px;text-align:left;cursor:pointer}
.mini-cart-button span{font-weight:700}
.mini-cart-button strong{font-size:11px;color:var(--green);font-weight:800}
.mini-cart-button small{font-size:10px;color:var(--muted)}
.mini-cart-button:active{background:#e3f1e8;border-color:#bfdcc9}
.save-dock{position:fixed;left:0;right:0;bottom:calc(68px + env(safe-area-inset-bottom));z-index:11;padding:8px 17px;background:#fff;border-top:1px solid var(--line);box-shadow:0 -8px 22px #193b2514;display:flex;align-items:stretch;gap:9px;max-width:680px;margin:0 auto}
.save-dock button{font:inherit;cursor:pointer}
.save-dock .dock-cart{display:flex;flex-direction:column;justify-content:center;gap:1px;flex:0 0 auto;min-width:86px;padding:0 11px;border:1px solid #cfe4d6;border-radius:14px;background:#f2f9f4;color:var(--green-dark);text-align:left}
.save-dock .dock-cart b{font-size:13px;font-weight:800}
.save-dock .dock-cart small{font-size:10px;color:#5d7a67}
.save-dock .dock-cart:active{background:#e3f1e8}
.save-dock .dock-save{display:flex;flex:1;min-width:0;align-items:center;justify-content:space-between;gap:8px;height:48px;padding:0 13px;border:0;border-radius:14px;background:linear-gradient(135deg,#20a45f,#0f7a44);color:#fff;font-weight:800;font-size:14px;box-shadow:0 8px 18px #0f7a4440}
.save-dock .dock-save span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.save-dock .dock-save strong{font-size:13px;padding:5px 9px;border-radius:9px;background:#ffffff2e;font-weight:800;white-space:nowrap}
.save-dock .dock-save:active{transform:translateY(1px)}
.save-dock .dock-save:disabled{background:#e8ede9;color:#93a298;box-shadow:none}
.save-dock .dock-save:disabled strong{background:#ffffffb3;color:#93a298}
.cart-title{width:100%;border:0;background:none;padding:0;text-align:left;align-items:center;color:var(--ink);font-size:14px;cursor:pointer}
.cart-title>span:last-child{display:flex;align-items:center;gap:8px}
.cart-open-hint{font-size:11px;font-weight:700;color:var(--green);background:var(--mint);padding:4px 8px;border-radius:8px}
.cart-modal-lines{max-height:46vh;overflow-y:auto;-webkit-overflow-scrolling:touch;margin-bottom:4px}
.cart-modal-lines .cart-line{padding:10px 0;border-bottom:1px solid var(--line)}
.save-dock-spacer{height:64px}
.cart-lines{max-height:32vh;overflow-y:auto;-webkit-overflow-scrolling:touch;margin:0 -3px 4px;padding:0 3px}
.cart-box{position:relative;background:#fff;border:1px solid var(--line);border-radius:18px;padding:13px;margin-top:16px;box-shadow:0 10px 28px #193b2517;z-index:3}.cart-title{display:flex;justify-content:space-between;font-weight:800;margin-bottom:9px}.cart-line{display:flex;align-items:center;gap:8px;padding:8px 0;border-top:1px solid var(--line)}.cart-line .row-main strong{font-size:12px}.qty-control{display:flex;align-items:center;gap:8px}.qty-control button{border:1px solid var(--line);background:#fff;border-radius:8px;width:27px;height:27px;color:var(--green);font-weight:900}.cart-total{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:10px;margin-top:4px;font-weight:850}.checkout{width:100%;margin-top:10px;border:0;background:var(--green);color:#fff;border-radius:12px;padding:12px;font-weight:800}.empty{padding:31px 18px;text-align:center;background:#fff;border:1px dashed #d6e0d5;border-radius:16px;color:var(--muted)}.empty b{display:block;color:var(--ink);margin:7px 0 3px}.empty span{font-size:25px}.badge{display:inline-block;background:var(--mint);color:var(--green-dark);border-radius:20px;padding:4px 8px;font-size:9px;font-weight:800}.badge.cancel{background:#ffeded;color:var(--red)}.report-card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:14px;margin-bottom:10px}.report-card strong{display:block;font-size:18px;margin-top:5px}.report-card small{color:var(--muted)}.bar-list{display:grid;gap:12px}
.bar-row{display:grid;gap:6px;font-size:11px}
.bar-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.bar-name{font-weight:700;overflow-wrap:anywhere}
.bar-row b{flex:0 0 auto;font-weight:800;color:var(--green-dark);background:#eef7f0;border-radius:999px;padding:2px 8px;font-size:10px}
.bar-track{height:7px;border-radius:8px;background:var(--soft);overflow:hidden;display:block}
.bar-fill{height:100%;background:var(--green);border-radius:8px}.settings-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px;margin-bottom:11px}.field{display:grid;gap:6px;margin:11px 0}.field label{font-size:11px;color:var(--muted);font-weight:700}.field input,.field select{width:100%;border:1px solid var(--line);border-radius:11px;padding:11px;background:#fff;color:var(--ink);outline:none}.danger-button{border:1px solid #f1d5d5;color:var(--red);background:#fff;border-radius:11px;padding:10px 12px;font-weight:700}.bottom-nav{position:fixed;z-index:10;bottom:0;left:0;right:0;height:calc(68px + env(safe-area-inset-bottom));padding:5px 8px calc(5px + env(safe-area-inset-bottom));display:flex;justify-content:space-around;align-items:center;background:#ffffffed;border-top:1px solid var(--line);backdrop-filter:blur(16px)}.bottom-nav button{flex:1;border:0;background:transparent;color:#929b94;display:grid;justify-items:center;gap:2px;font-size:10px;font-weight:650}.bottom-nav button span{font-size:20px;line-height:24px}.bottom-nav button.active{color:var(--green)}.bottom-nav .sell-tab span{width:34px;height:34px;border-radius:12px;background:var(--green);color:#fff;display:grid;place-items:center;font-size:22px;box-shadow:0 5px 12px #16834b35}.bottom-nav .sell-tab small{color:var(--green);font-weight:800}.modal-backdrop{position:fixed;inset:0 0 calc(68px + env(safe-area-inset-bottom)) 0;background:#101b15a6;z-index:20;display:flex;align-items:flex-end;justify-content:center}.modal{width:100%;max-width:640px;max-height:88vh;overflow:auto;background:var(--bg);border-radius:23px 23px 0 0;padding:19px 18px calc(22px + env(safe-area-inset-bottom));animation:rise .2s ease}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.modal-head h2{font-size:17px}.close{border:0;background:#e8eee8;border-radius:50%;width:32px;height:32px;font-size:19px}.modal-actions{display:flex;gap:9px;margin-top:15px;position:sticky;bottom:0;z-index:2;padding:10px 0 4px;background:linear-gradient(180deg,rgba(247,249,246,0),var(--bg) 14px)}.modal-actions button{flex:1}.secondary{border:1px solid var(--line);background:white;color:var(--ink);border-radius:12px;padding:12px;font-weight:750}.toast{position:fixed;z-index:30;bottom:calc(82px + env(safe-area-inset-bottom));left:50%;transform:translate(-50%,15px);opacity:0;background:#15251b;color:white;padding:10px 16px;border-radius:30px;font-size:12px;pointer-events:none;transition:.18s;white-space:nowrap}.toast.show{opacity:1;transform:translate(-50%,0)}@keyframes rise{from{transform:translateY(25px);opacity:.5}to{transform:translateY(0);opacity:1}}@media(min-width:560px){main{padding-top:14px}.product-grid{grid-template-columns:repeat(3,1fr)}.modal-backdrop{align-items:center}.modal{border-radius:22px}}



.order-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:13px;box-shadow:var(--shadow)}
.order-customer{display:block;width:100%;text-align:left;border:0;background:none;color:var(--green-dark);font-size:14px;font-weight:800;padding:0}
.order-meta{color:var(--muted);font-size:11px;margin-top:3px}
.order-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px}
.order-foot strong{font-size:14px}
.order-foot .badge.unpaid{background:#fff0dc;color:#9a5a08}
.order-foot .badge.cancel{background:#ffeded;color:var(--red)}
.order-actions{display:grid;gap:8px;margin-top:10px}
.order-actions button{width:100%}
.order-card-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:8px}
.order-card-actions button{width:100%;min-width:0;height:44px;min-height:44px;margin:0;padding:7px 6px;display:flex;align-items:center;justify-content:center;font-size:11px;line-height:1.2;white-space:normal}
.order-card-actions .checkout{margin-top:0}
.transaction-detail-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:14px}
.transaction-detail-actions button{width:100%;min-width:0;min-height:42px;padding:8px 7px;font-size:12px;line-height:1.25;white-space:normal}
.transaction-detail-actions .badge{grid-column:1 / -1;justify-self:start}
.cancel-confirm-card p{margin-top:10px;color:var(--muted);font-size:12px}
.cancel-confirm-actions{margin-top:12px}
.cancel-confirm-actions .text-button{min-height:36px;color:var(--muted)}
.modal.sale-confirm-modal{width:calc(100% - 28px);max-width:390px;max-height:82vh;padding:0;overflow:hidden;border:1px solid rgba(255,255,255,.8);border-radius:26px;background:#fff;box-shadow:0 24px 70px rgba(10,28,17,.28);animation:sale-confirm-enter .28s cubic-bezier(.2,.8,.2,1)}
.sale-confirm-modal .modal-head{display:none}
.sale-confirmation{position:relative;padding:23px 20px 17px;background:radial-gradient(circle at 100% 0,rgba(251,190,88,.13),transparent 34%),#fff}
.sale-confirm-close{position:absolute;top:15px;right:15px;width:34px;height:34px;display:grid;place-items:center;border:1px solid #e8eee9;border-radius:12px;background:#f8faf8;color:#738078;font-size:21px;line-height:1}
.sale-confirm-icon{width:54px;height:54px;display:grid;place-items:center;margin-bottom:15px;border:1px solid #f5e3bd;border-radius:19px;background:linear-gradient(145deg,#fff8e9,#fff0cf);color:#bf8120;box-shadow:0 7px 17px rgba(203,147,48,.12)}
.sale-confirm-icon svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sale-edit-confirm-icon{border-color:#dbece0;background:linear-gradient(145deg,#eff9f1,#dff2e4);color:#16834b;box-shadow:0 7px 17px rgba(29,105,56,.1)}
.sale-payment-confirm-icon{border-color:#dbece0;background:linear-gradient(145deg,#eff9f1,#dff2e4);color:#16834b;box-shadow:0 7px 17px rgba(29,105,56,.1)}
.sale-confirm-eyebrow{display:block;color:#a87825;font-size:10px;font-weight:850;letter-spacing:1.25px}
.sale-edit-eyebrow,.sale-payment-eyebrow{color:#16834b}
.sale-confirmation h3{margin-top:5px;color:#1b2b20;font-size:21px;line-height:1.2;letter-spacing:-.35px}
.sale-confirm-description{margin-top:7px;color:#758278;font-size:12px;line-height:1.5}
.sale-confirm-summary{display:flex;align-items:center;gap:10px;margin:17px 0 14px;padding:12px;border:1px solid #e8eee9;border-radius:16px;background:linear-gradient(120deg,#f8fbf8,#fff)}
.sale-confirm-avatar{flex:0 0 38px;width:38px;height:38px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(145deg,#dff3e5,#ccebd5);color:#147442;font-size:15px;font-weight:850}
.sale-confirm-customer{display:grid;gap:2px;min-width:0;flex:1}
.sale-confirm-customer strong{overflow:hidden;color:#24342a;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.sale-confirm-customer small{color:#7b887e;font-size:10px}
.sale-confirm-total{color:#176c3e;font-size:13px;white-space:nowrap}
.sale-confirm-actions{display:grid;gap:9px}
.sale-choice{width:100%;min-height:62px;display:flex;align-items:center;gap:11px;padding:10px 12px;border:1px solid #e4ece5;border-radius:16px;background:#fff;text-align:left;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}
.sale-choice:active{transform:scale(.985)}
.sale-choice-edit{border-color:#dbece0;background:linear-gradient(100deg,#f5fbf6,#fff)}
.sale-choice-edit:hover{border-color:#a9d2b4;box-shadow:0 7px 18px rgba(29,105,56,.08)}
.sale-choice-paid{border-color:#cfe7d5;background:linear-gradient(100deg,#f1faf3,#fff)}
.sale-choice-paid .sale-choice-icon{background:linear-gradient(145deg,#dff3e5,#ccebd5);color:#16834b}
.sale-choice-paid .sale-choice-copy strong{color:#146b3b}
.sale-choice-paid:hover{border-color:#a9d2b4;box-shadow:0 7px 18px rgba(29,105,56,.08)}
.sale-choice-cancel{border-color:#f0dedd;background:linear-gradient(100deg,#fff8f7,#fff)}
.sale-choice-cancel:hover{border-color:#e4b7b3;box-shadow:0 7px 18px rgba(166,57,48,.07)}
.sale-choice-icon{flex:0 0 38px;width:38px;height:38px;display:grid;place-items:center;border-radius:13px;background:#e8f5eb;color:#16834b}
.sale-choice-cancel .sale-choice-icon{background:#ffeded;color:#c64e46}
.sale-choice-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sale-choice-copy{display:grid;gap:3px;min-width:0;flex:1}
.sale-choice-copy strong{color:#233329;font-size:12px;font-weight:800}
.sale-choice-copy small{color:#7d8981;font-size:10px;line-height:1.35}
.sale-choice-cancel .sale-choice-copy strong{color:#a63e38}
.sale-choice-chevron{color:#8e9a91;font-size:23px;line-height:1}
.sale-confirm-back{width:100%;min-height:40px;margin-top:8px;border:0;border-radius:12px;background:transparent;color:#738078;font-size:11px;font-weight:750}
.sale-confirm-back:hover{background:#f5f8f5;color:#435249}
@keyframes sale-confirm-enter{from{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(prefers-reduced-motion:reduce){.modal.sale-confirm-modal{animation:none}.sale-choice{transition:none}}
.edit-sale-items-head{display:grid;gap:2px;margin:12px 0 8px}
.edit-sale-item{padding:10px;margin:8px 0;background:#f8faf8;border:1px solid var(--line);border-radius:13px}
.edit-sale-item .field{margin:4px 0 7px}
.edit-sale-item select,.edit-sale-add-row select{width:100%;min-height:40px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink)}
.edit-sale-item-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 40px;align-items:end;gap:8px}
.edit-sale-item-controls .field{min-width:0;margin-bottom:0}
.edit-sale-item-controls input{width:100%;min-height:40px;padding:8px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink)}
.edit-sale-remove{width:40px;height:40px;min-width:40px;padding:0;display:grid;place-items:center;font-size:20px}
.edit-sale-add-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;margin:9px 0}
.edit-sale-add-row .secondary{min-height:40px;padding:8px 11px;white-space:nowrap}
.edit-sale-total-card{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:12px}
.edit-sale-total-card strong{font-size:18px;color:var(--green-dark)}
.order-edit-list{margin:6px 0}
.order-edit-line{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--line)}
.order-edit-line .row-main{flex:1;min-width:0}
.qty-input{width:66px;border:1px solid var(--line);border-radius:10px;padding:9px;text-align:center;background:#fff;color:var(--ink)}
.order-add{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.order-add .field{margin:7px 0}
.product-count-list{display:grid;gap:2px}
.product-count-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 10px;padding:9px 0;border-bottom:1px solid var(--line)}
.product-count-row:last-child{border-bottom:0}
.product-count-name{font-size:13px;font-weight:700;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.product-count-value{font-size:12px;font-weight:800;color:var(--green-dark);background:#eef7f0;border-radius:999px;padding:4px 10px;white-space:nowrap}
.product-count-locations{flex:1 0 100%;font-size:11px;line-height:1.5;color:#a45a06}
.location-product-card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:12px 14px;margin-bottom:10px;box-shadow:0 8px 22px #193b2510}
.location-product-head{display:flex;align-items:center;gap:10px;padding-bottom:6px;border-bottom:1px solid var(--line)}
.location-product-head .round-icon{width:34px;height:34px;font-size:17px}
.location-product-head strong{font-size:13px}
.location-product-head small{display:block;color:var(--muted);font-size:11px;margin-top:2px}
.order-date-range{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 40px;align-items:end;gap:0 8px;background:transparent;border:0;border-radius:0;padding:5px 0 4px;margin:6px 0 12px}
.order-date-range .field{min-width:0;margin:4px 0 5px}
.order-date-range .field label{font-size:10.5px;margin-bottom:3px}
.order-date-range input{width:100%;min-width:0;min-height:40px;padding:7px 6px;font-size:12px;border-radius:10px}
.date-range-actions{grid-column:1 / -1;display:flex;align-items:center;justify-content:flex-start;min-height:20px}
.order-date-range .text-button{padding:1px 0;font-size:10.5px;line-height:1.3}
.date-range-search{grid-column:3;grid-row:1;width:40px;height:40px;display:grid;place-items:center;align-self:end;margin-bottom:5px;border:0;border-radius:11px;background:var(--green);color:#fff;box-shadow:0 3px 8px rgba(22,131,75,.18)}
.date-range-search svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.date-range-search:active{transform:scale(.96)}
.date-range-search:focus-visible{outline:2px solid var(--green-dark);outline-offset:2px}

/* Keep the Pesanan screen compact while preserving comfortable touch targets. */
.order-card{border-radius:14px;padding:10px 12px;box-shadow:0 4px 14px rgba(27,54,35,.045)}
.order-customer{font-size:13px}
.order-meta{font-size:10.5px;line-height:1.35;margin-top:2px}
.order-foot{margin-top:6px}
.order-foot strong{font-size:13px}
.order-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:7px}
.order-actions button{width:auto;min-height:36px;padding:7px 11px;font-size:12px}
.order-date-range{padding:5px 0 4px;margin:4px 0 9px;gap:0 8px}
.order-date-range .field{margin:4px 0 5px}
.order-date-range .field label{font-size:11px;margin-bottom:3px}
.order-date-range input{min-height:40px;padding:7px 6px;font-size:12px;border-radius:10px}

.chat-order-card{background:linear-gradient(145deg,#fff,#f4fbf6);border:1px solid #dcebe0;border-radius:18px;padding:14px;box-shadow:var(--shadow)}
.chat-order-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:11px;background:var(--mint);color:var(--green);font-size:18px}
.chat-order-head-actions{display:flex;align-items:center;gap:8px}
.chat-order-toggle{width:38px;height:38px;display:grid;place-items:center;padding:0;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--green-dark)}
.chat-order-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.chat-order-toggle:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.chat-order-card textarea{width:100%;resize:vertical;border:1px solid var(--line);border-radius:11px;padding:11px;background:#fff;color:var(--ink);font:inherit;outline:none}
.chat-order-card textarea:focus{border-color:#5bb27e;box-shadow:0 0 0 3px #16834b17}
.chat-order-preview{margin-top:13px;padding:12px;background:#fff;border:1px solid var(--line);border-radius:13px}
.chat-order-line{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;padding:8px 0;border-bottom:1px solid var(--line);font-size:12px}
.chat-order-line b{white-space:nowrap;color:var(--green-dark)}
.chat-order-total{font-weight:800;border-bottom:0}
.chat-order-preview>small{display:block;color:var(--muted);overflow-wrap:anywhere;margin-top:3px}
.chat-order-actions{display:flex;gap:8px;margin-top:10px}
.chat-order-actions button{flex:1;margin-top:0}
.chat-order-note{display:block;margin-top:8px;overflow-wrap:anywhere;color:var(--muted)}
.order-date-range .text-button{font-size:11px;padding:3px 0}

.date-group{margin:12px 0 17px}
.date-group-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 2px 8px;padding:0 0 7px;border-bottom:1px solid var(--line);font-size:12px;font-weight:800;color:var(--green-dark)}
.date-group-title span{font-size:10px;font-weight:650;color:var(--muted);white-space:nowrap}
#app{will-change:transform}
#app.page-forward{animation:page-forward .24s cubic-bezier(.22,.68,.32,1) both}
#app.page-back{animation:page-back .24s cubic-bezier(.22,.68,.32,1) both}
@keyframes page-forward{from{opacity:.55;transform:translateX(100%)}to{opacity:1;transform:translateX(0)}}
@keyframes page-back{from{opacity:.55;transform:translateX(-32%)}to{opacity:1;transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){#app.page-forward,#app.page-back{animation:none}}



.stat 


.customer-order-filter{margin:8px 0 10px;padding:9px 11px;background:#fff;border:1px solid var(--line);border-radius:12px;color:var(--muted);font-size:11px}
.customer-order-filter .text-button{padding:0 3px;font-size:11px}

@media(max-width:340px){
	.order-date-range{grid-template-columns:minmax(0,1fr) 40px;align-items:end}
	.order-date-range .field:first-child{grid-column:1 / -1}
	.order-date-range .field:nth-child(2){grid-column:1;grid-row:2}
	.date-range-search{grid-column:2;grid-row:2}
	.date-range-actions{grid-column:1 / -1;grid-row:3}
}

/* Result toasts: modern light card with a soft entrance and timed progress line. */
.toast{position:fixed;left:50%;bottom:calc(82px + env(safe-area-inset-bottom));z-index:30;display:flex;align-items:center;gap:12px;max-width:calc(100vw - 32px);min-height:62px;padding:12px 16px 14px;border:1px solid #e6eee7;border-radius:18px;background:rgba(255,255,255,.97);box-shadow:0 14px 36px rgba(23,48,31,.18),0 3px 9px rgba(23,48,31,.08);color:var(--ink);font-size:13px;line-height:1.35;text-align:left;white-space:normal;pointer-events:none;opacity:0;transform:translate(-50%,18px) scale(.96);transition:opacity .2s ease,transform .34s cubic-bezier(.2,.8,.2,1);overflow:hidden;backdrop-filter:blur(12px)}
.toast.show{opacity:1;transform:translate(-50%,0) scale(1)}
.search-result-toast{width:max-content;min-width:min(292px,calc(100vw - 32px));}
.toast-icon{flex:0 0 38px;width:38px;height:38px;display:grid;place-items:center;border-radius:14px;background:#eef7f0;color:var(--green);font-size:19px;font-weight:800}
.toast-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.search-result-success .toast-icon{background:linear-gradient(145deg,#e5f7eb,#d6f0df);color:#138246}
.search-result-empty .toast-icon{background:linear-gradient(145deg,#fff5de,#ffedc5);color:#aa6c0b}
.toast-copy{display:grid;gap:3px;min-width:0}
.toast-copy strong{font-size:13px;font-weight:800;letter-spacing:.05px;color:#1b2b20}
.toast-copy small{font-size:11px;color:#738078}
.toast-progress{position:absolute;left:0;bottom:0;width:100%;height:3px;background:#e9f1eb;transform-origin:left center}
.toast-progress:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#2caa65,#16834b);transform-origin:left center;animation:toast-progress 2.8s linear both}
.search-result-empty .toast-progress:after{background:linear-gradient(90deg,#f2bd52,#d89124)}
.toast.cancelled-toast{top:50%;bottom:auto;width:max-content;min-width:min(300px,calc(100vw - 32px));min-height:74px;padding:16px 18px;transform:translate(-50%,calc(-50% + 16px)) scale(.95);box-shadow:0 22px 60px rgba(18,43,26,.22),0 0 0 100vmax rgba(18,31,22,.12);pointer-events:none}
.toast.cancelled-toast.show{transform:translate(-50%,-50%) scale(1)}
.toast.cancelled-toast .toast-icon{width:44px;height:44px;flex-basis:44px;border-radius:16px}
.toast.cancelled-toast .toast-copy strong{font-size:14px}
.toast.cancelled-toast .toast-copy small{font-size:11px}
.toast.show .toast-icon{animation:toast-icon-pop .42s cubic-bezier(.2,.8,.2,1) both}
@keyframes toast-icon-pop{0%{opacity:0;transform:scale(.7) rotate(-8deg)}70%{opacity:1;transform:scale(1.08) rotate(2deg)}100%{opacity:1;transform:scale(1) rotate(0)}}
@keyframes toast-progress{from{transform:scaleX(1)}to{transform:scaleX(0)}}
@media(prefers-reduced-motion:reduce){.toast,.toast.show{transition:none;transform:translate(-50%,0) scale(1)}.toast.cancelled-toast,.toast.cancelled-toast.show{transform:translate(-50%,-50%) scale(1)}.toast.show .toast-icon,.toast-progress:after{animation:none}}

.modal .transaction-detail-actions button{min-height:42px}
.report-export-actions{display:flex;gap:8px;margin-top:10px}
.report-export-actions button{flex:1}
.report-export-actions .preview-report-button{flex-basis:100%}
.report-detail-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}
.report-detail-row:last-child{border-bottom:0}
.report-detail-row .row-end{text-align:right;white-space:nowrap}
.report-detail-row .row-end small{display:block}


.receipt-paper{background:#fff;border:1px dashed #cfd6cf;border-radius:8px;padding:14px;font-family:'Courier New',monospace;font-size:12px;line-height:1.6;color:#1f2937;white-space:pre-wrap;word-break:break-word;box-shadow:0 2px 6px rgba(0,0,0,.07);max-height:46vh;overflow:auto;margin-bottom:4px}
.receipt-paper::before{content:'';display:block;height:5px;margin:0 -14px 10px;background:repeating-linear-gradient(90deg,#e4e9e4 0 7px,transparent 7px 14px)}
.receipt-paper::after{content:'';display:block;height:5px;margin:10px -14px -10px;background:repeating-linear-gradient(90deg,#e4e9e4 0 7px,transparent 7px 14px)}
.bottom-nav button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;display:block}
.bottom-nav .sell-tab svg{width:34px;height:34px;padding:7px;border-radius:12px;background:var(--green);color:#fff;stroke-width:2.4;box-shadow:0 5px 12px #16834b35}

.brand-mark{cursor:pointer;overflow:hidden}
.brand-mark img{width:100%;height:100%;object-fit:cover;display:block}
.profile-head{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;margin-bottom:11px}
.profile-avatar{width:76px;height:76px;flex:0 0 auto;border-radius:22px;background:linear-gradient(145deg,#20a45f,#08723d);color:#fff;display:grid;place-items:center;font-weight:900;font-size:24px;letter-spacing:-1px;overflow:hidden;box-shadow:0 8px 18px #13814830}
.profile-avatar img{width:100%;height:100%;object-fit:cover}
.profile-info{display:grid;gap:3px;min-width:0}
.profile-info b{font-size:17px;overflow-wrap:anywhere}
.profile-info small{color:var(--muted);font-size:12px;overflow-wrap:anywhere}
.settings-row{width:100%;text-align:left;color:inherit;margin-top:9px}
.settings-card .settings-row:first-of-type{margin-top:10px}

.profile-status{display:flex;align-items:center;gap:8px;background:var(--mint);color:var(--green-dark);border:1px solid #bfe6cd;border-radius:13px;padding:10px 13px;font-size:12px;font-weight:700;margin-bottom:11px}

.brand-app-name{margin-left:auto;flex:0 0 auto;font-size:15px;font-weight:900;letter-spacing:.6px;color:var(--green);white-space:nowrap}
.receivable-card{margin-top:4px}
.receivable-summary strong{color:var(--green-dark)}
.receivable-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:11px}
.receivable-actions .checkout,.receivable-actions .secondary{margin-top:0;width:100%}
.receivable-pending-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;padding-top:11px;border-top:1px solid var(--line);text-align:left}
.receivable-pending-row span{display:flex;flex-direction:column;gap:2px;min-width:0}
.receivable-pending-row strong{color:var(--ink);font-size:13px}
.receivable-pending-row .text-button{flex:none}
.report-presets{padding-bottom:11px}
html,body{overflow-x:clip}

/* Kartu produk minimalis (hanya halaman Produk) */
.product-tile{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:12px;border-radius:16px;text-align:left;font:inherit;color:var(--ink);box-shadow:0 1px 2px #10261a0a;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}
.product-tile:active{transform:scale(.985);box-shadow:0 6px 16px #10261a12}
.product-tile.is-low{border-color:#f1dcc0}
.product-name{font-size:12.5px;font-weight:750;line-height:1.3;color:var(--ink);white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.6em}
.product-foot{display:flex;align-items:baseline;justify-content:space-between;gap:6px;width:100%;margin-top:auto}
.product-foot .price{font-size:12.5px;font-weight:800;color:var(--ink);letter-spacing:-.2px;white-space:nowrap;display:inline-flex;align-items:baseline;gap:2px}
.product-foot .price small{font-size:9px;font-weight:700;color:var(--muted);letter-spacing:0}
.product-stock{font-size:9.5px;font-weight:700;color:var(--muted);background:var(--soft);border-radius:6px;padding:2px 5px;white-space:nowrap}
.product-stock.low{color:#a45a06;background:#fff2e0}
.stock-pill{display:inline-flex;align-items:center;gap:4px;background:var(--soft);color:var(--green-dark);border-radius:20px;padding:4px 8px;font-size:9.5px;font-weight:750;white-space:nowrap}
.stock-pill .dot{width:5px;height:5px;border-radius:50%;background:var(--green);flex:0 0 auto}
.stock-pill.low{background:#fff0dc;color:#a45a06}
.stock-pill.low .dot{background:var(--orange)}
.stock-pill.off{background:#f1f3f1;color:var(--muted)}
.stock-pill.off .dot{background:#c3cbc4}
.chip-alert{border-color:#f3ddc0;color:#a45a06;background:#fff8ee}
.chip-alert.active{background:var(--orange);border-color:var(--orange);color:#fff}

/* Halaman detail produk */
.product-detail-hero{display:flex;align-items:center;gap:12px;padding:14px;margin-bottom:12px;border:1px solid var(--line);border-radius:18px;background:var(--surface);box-shadow:var(--shadow)}
.detail-copy{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0}
.detail-copy strong{font-size:15px;line-height:1.25;letter-spacing:-.2px;color:var(--ink)}
.detail-copy small{font-size:11px;color:var(--muted)}
.detail-copy .stock-pill{margin-top:3px}
.detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:14px}
.detail-actions .secondary,.detail-actions .danger-button{min-height:42px;margin:0;font-size:12px;border-radius:12px;padding:8px 10px}
.detail-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px dashed var(--line)}
.detail-row:last-child{border-bottom:0}
.detail-row .row-main{display:flex;flex-direction:column;gap:2px;min-width:0}
.detail-row .row-main strong{font-size:12px;font-weight:700;color:var(--ink);line-height:1.3}
.detail-row .row-main small{font-size:10px;color:var(--muted)}
.detail-row .row-end{display:flex;flex-direction:column;align-items:flex-end;gap:2px;text-align:right;white-space:nowrap}
.detail-row .row-end strong{font-size:12px;font-weight:800;color:var(--ink)}
.detail-row .row-end small{font-size:10px;color:var(--muted)}
.detail-row .row-end.danger-text strong{color:var(--red)}
@media(max-width:359px){.product-grid{grid-template-columns:1fr}}

/* Ringkasan beranda: pola Seller Center (angka besar, label kecil) */
.summary-card{margin:13px 0 12px;padding:2px 4px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 8px 22px rgba(27,54,35,.06)}
.summary-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.summary-row+.summary-row{border-top:1px solid #eef2ec}
.summary-metric{display:grid;min-width:0;justify-items:center;gap:3px;padding:12px 3px 11px;border:0;border-radius:13px;background:none;font:inherit;color:var(--ink);text-align:center;transition:background .12s ease}
.summary-metric:active{background:#f4f8f4}
.summary-metric .metric-value{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:clamp(13px,4.1vw,15.5px);font-weight:850;letter-spacing:-.5px;line-height:1.15;font-variant-numeric:tabular-nums}
.summary-metric .metric-label{font-size:10.5px;font-weight:600;line-height:1.2;color:var(--muted)}
.summary-metric.is-paid .metric-value{color:var(--ink)}
.summary-metric.is-due .metric-value,.summary-metric.is-open .metric-value{color:#d13b32}
.summary-metric.is-clear .metric-value{color:#9aa79d}
.quick-grid{display:flex;gap:2px;margin:4px 0 20px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding-bottom:2px;scroll-snap-type:x proximity}
.quick-grid::-webkit-scrollbar{display:none}
.quick-tile{flex:0 0 calc((100% - 8px)/5);min-width:0;scroll-snap-align:start;display:grid;justify-items:center;gap:7px;padding:4px 2px;border:0;border-radius:14px;background:none;font:inherit;color:var(--ink);transition:transform .12s ease}
.quick-tile:active{transform:scale(.95)}
.quick-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:14px;color:#fff;box-shadow:0 7px 14px rgba(20,40,26,.16)}
.quick-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.quick-label{font-size:10.5px;font-weight:650;color:#3d4d42;white-space:nowrap}
.quick-orders .quick-icon{background:linear-gradient(140deg,#ff7a6b,#e2453c)}
.quick-products .quick-icon{background:linear-gradient(140deg,#ffa235,#f2711c)}
.quick-customers .quick-icon{background:linear-gradient(140deg,#5aa7f5,#2f7de1)}
.quick-expenses .quick-icon{background:linear-gradient(140deg,#ffd259,#f0b429);color:#6b4a03}
.quick-bills .quick-icon{background:linear-gradient(140deg,#9a8bf5,#6f5ce0)}
.quick-kasir .quick-icon{background:linear-gradient(140deg,#35c98c,#0e8a52)}
/* Kasir (POS) */
.kasir-head{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-bottom:9px}
.kasir-head h2{font-size:16px;letter-spacing:-.3px}
.kasir-who{max-width:54%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid var(--line);border-radius:11px;background:#fff;padding:8px 10px;font:inherit;font-size:11px;font-weight:750;color:var(--green-dark)}
.kasir-grid-produk{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:14px}
.kasir-card{display:grid;gap:4px;align-content:start;padding:10px;border:1px solid var(--line);border-radius:14px;background:#fff;text-align:left;font:inherit;color:var(--ink);box-shadow:var(--shadow);transition:transform .12s ease}
.kasir-card:active{transform:scale(.97)}
.kasir-emoji{font-size:17px;line-height:1}
.kasir-name{font-size:12px;font-weight:750;line-height:1.25}
.kasir-stock{font-size:9.5px;font-weight:700;color:var(--muted)}
.kasir-stock.low{color:#a45a06}
.kasir-price{font-size:12.5px;font-weight:850;color:var(--green-dark)}
.kasir-variants{display:grid;gap:4px;margin-top:2px}
.kasir-variants button{display:flex;justify-content:space-between;gap:6px;border:1px solid #cfe5d4;border-radius:9px;background:#f4f8f4;color:var(--ink);font:inherit;font-size:10.5px;font-weight:650;padding:5px 7px}
.kasir-variants button b{font-size:10px;font-weight:800;color:var(--green-dark)}
.kasir-pay-dock{display:grid;gap:7px}
.kasir-pay-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:9px;align-items:center}
.kasir-pay-row small{display:block;font-size:9.5px;font-weight:700;color:var(--muted)}
.kasir-pay-total strong{font-size:16px;font-weight:850;letter-spacing:-.4px;font-variant-numeric:tabular-nums;white-space:nowrap}
.kasir-cash input{width:100%;border:1px solid var(--line);border-radius:10px;padding:7px 9px;font:inherit;font-size:12px;font-weight:750;text-align:right;font-variant-numeric:tabular-nums}
.kasir-pay-change{text-align:right}
.kasir-pay-change strong{display:block;font-size:13px;font-weight:850;color:var(--green-dark);white-space:nowrap}
.kasir-pay-change strong.is-short{color:#c0392b;font-size:10.5px}
.kasir-pay-actions{display:flex;align-items:stretch;gap:9px}
.kasir-pay-spacer{height:124px}
.summary-cta{margin:-6px 0 18px}

.chat-order-qty{display:inline-flex;align-items:center;gap:6px}
.chat-draft-qty{width:52px;padding:4px 6px;border:1px solid var(--line);border-radius:8px;background:#fff;font:inherit;font-size:12px;text-align:center}

/* Pratinjau laporan: rincian per pelanggan */
.report-day-card{margin-bottom:12px}
.report-customer{margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}
.report-customer-head{display:flex;align-items:baseline;gap:7px;margin-bottom:4px}
.report-customer-head strong{font-size:12.5px;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.report-customer-head small{font-size:9.5px;color:var(--muted);white-space:nowrap}
.report-customer-head b{font-size:12.5px;color:var(--green-dark);white-space:nowrap}
.report-customer-item{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:3px 0 3px 8px;font-size:11px}
.report-customer-item span{min-width:0;color:#3d4d42}
.report-customer-item span small{color:var(--muted);font-size:9.5px}
.report-customer-item b{white-space:nowrap;font-weight:700;color:var(--ink)}
.change-credit-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:12px;padding:15px;text-align:left}
.change-credit-summary>span:first-child{display:grid;gap:3px}
.change-credit-summary>span:first-child small{color:var(--muted);font-size:11px}
.change-credit-summary>span:first-child strong{font-size:23px;color:var(--green-dark);letter-spacing:-.4px}
.change-credit-preview{display:grid;gap:5px;border-left:1px solid var(--line);padding-left:12px}
.change-credit-preview-row{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:10px}
.change-credit-preview-row span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink)}
.change-credit-preview-row strong{white-space:nowrap;color:var(--green-dark);font-size:10px}
.change-credit-preview>small,.change-credit-empty{grid-column:1/-1;color:var(--muted);font-size:10px}
@media(max-width:360px){.change-credit-summary{grid-template-columns:1fr;gap:9px}.change-credit-preview{border-left:0;border-top:1px solid var(--line);padding:8px 0 0}}

/* POS Kasir + pemindai barcode */
body.pos-mode .topbar{display:none}
body.pos-mode main{padding-top:12px}
.pos-customer-row{display:flex;justify-content:flex-end;margin-bottom:8px}
.pos-head{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-bottom:10px}
.pos-head h2{font-size:16px;letter-spacing:-.3px}
.pos-scan-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:10px;box-shadow:0 10px 28px #193b2517}
.pos-camera{position:relative;width:100%;aspect-ratio:4/3;max-height:46vh;border-radius:14px;overflow:hidden;background:#0d1712}
.pos-camera video{display:block;width:100%;height:100%;object-fit:cover;background:#0d1712}
.pos-scan-frame{position:absolute;left:50%;top:50%;width:76%;height:34%;transform:translate(-50%,-50%);border:2px solid #ffffffcc;border-radius:10px;box-shadow:0 0 0 100vmax #00000038;pointer-events:none}
.pos-camera-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:18px;background:#0d1712e6;color:#e9f3ec;text-align:center}
.pos-camera-empty span{font-size:30px}
.pos-camera-empty b{font-size:13px}
.pos-camera-empty small{max-width:230px;font-size:10.5px;color:#b9cdc0}
.pos-camera-status{position:absolute;left:8px;right:8px;bottom:8px;padding:6px 9px;border-radius:9px;background:#0b1510c7;color:#dff0e5;font-size:10.5px;font-weight:650;text-align:center;pointer-events:none}
.pos-camera-status:empty{display:none}
.pos-camera-status.is-error{background:#7f1d1de0;color:#fff}
.pos-scan-actions{display:grid;gap:8px;margin-top:9px}
.pos-camera-btn{margin:0}
.pos-barcode-row{display:flex;gap:7px}
.pos-barcode-input{flex:1;min-width:0}
.pos-barcode-btn{flex:0 0 auto;padding:0 14px}
.order-completed-card{display:grid;gap:2px}
.order-completed-card .text-button{justify-self:start;padding:6px 0 0}
.pos-scanned{margin-top:12px}
.pos-items-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.pos-items-count{font-size:11px;font-weight:800;color:var(--muted)}
.pos-items-list{display:grid}
.pos-items-list .cart-line:first-child{border-top:0}
.pos-cart-empty{display:flex;flex-direction:column;align-items:center;gap:2px;padding:18px 10px;text-align:center;color:var(--muted)}
.pos-cart-empty span{font-size:24px}
.pos-cart-empty b{color:var(--ink);font-size:12.5px}
.pos-cart-empty small{font-size:10.5px}
.pos-scan-note{display:block;min-height:15px;margin-top:7px;font-size:10.5px;font-weight:700;color:var(--green-dark)}
.pos-scan-note.is-error{color:#c0392b}
.pos-manual{margin-top:12px}
.barcode-generate{width:100%;margin-top:7px;padding:9px 12px;font-size:11px}
.variant-editor{display:grid;gap:8px}.variant-editor-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.variant-row{border:1px solid var(--line);border-radius:12px;padding:10px;background:#fbfdfb;display:grid;gap:8px}.variant-row-main{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}.variant-field{margin:0}.variant-field span{font-size:11px;color:var(--muted);font-weight:700}.variant-unit-chip{min-height:42px;display:flex;align-items:center;padding:10px 11px;border:1px solid var(--line);border-radius:11px;background:#f4f8f4;font-weight:700;color:var(--ink)}.variant-remove{justify-self:end;padding:0;color:var(--red);font-size:12px}@media(max-width:520px){.variant-row-main,.variant-editor-actions{grid-template-columns:1fr 1fr}.variant-row-main .variant-field:first-child{grid-column:1/-1}}
@media(min-width:560px){
  .pos-camera{aspect-ratio:16/9;max-height:320px}
  .pos-scan-actions{grid-template-columns:auto minmax(0,1fr);align-items:center}
  .pos-camera-btn{width:auto;padding:12px 18px}
}

/* Header ringkas untuk halaman selain Beranda */
body:not(.home-mode) .topbar{display:none}
.pagebar{display:none;align-items:center;gap:10px;width:100%;max-width:680px;margin:0 auto;position:sticky;top:0;z-index:6;height:calc(56px + env(safe-area-inset-top));padding:calc(8px + env(safe-area-inset-top)) 15px 8px;background:#f7f9f6f5;border-bottom:1px solid #e4ebe3b8;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
body:not(.home-mode) .pagebar{display:flex}
.pagebar-back{flex:0 0 auto;width:35px;height:35px;display:grid;place-items:center;padding:0;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);box-shadow:0 2px 7px #1b36230d}
.pagebar-back:active{transform:scale(.96);background:#f1f6f2}
.pagebar-back svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pagebar-title{min-width:0;flex:1;font-size:15px;font-weight:850;letter-spacing:-.25px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body:not(.home-mode) main{padding-top:12px}
@media(prefers-reduced-motion:reduce){.pagebar-back{transition:none}}

/* Status jual produk */
.product-tile{position:relative}
.product-open{display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:100%;flex:1;min-width:0;padding:0;border:0;background:none;text-align:left;font:inherit;color:inherit}
.product-open .product-name{padding-right:48px}
.product-tile.is-inactive{opacity:.72;background:#fafbfa;border-style:dashed}
.product-active-toggle{position:absolute;top:8px;right:8px;border:0;border-radius:20px;padding:4px 7px;background:#e2f4e8;color:#106b3c;font-size:8.5px;font-weight:850;line-height:1.2;letter-spacing:.1px}
.product-active-toggle.is-off{background:#eef0ee;color:#758278}
.product-status-chips{padding-top:0;padding-bottom:10px}
.product-status-chips .chip{font-size:10px;padding:5px 10px}
.detail-badges{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin-top:3px}
.detail-badges .stock-pill{margin-top:0}
.detail-actions .product-status-action{grid-column:1/-1}
.mini-cart-button:disabled,.kasir-card:disabled,.kasir-variants button:disabled{opacity:.45;cursor:not-allowed}

/* ===== Menu Produk: daftar, tab status, foto produk ===== */
.seller-status-tabs{display:flex;gap:7px;background:#eef4ee;border:1px solid var(--line);border-radius:15px;padding:4px;margin:4px 0 12px}
.seller-status-tab{flex:1;display:flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:12px;background:transparent;color:var(--muted);font-size:12px;font-weight:750;padding:9px 8px}
.seller-status-tab b{min-width:23px;border-radius:20px;background:#ffffffb8;color:var(--muted);font-size:11px;font-weight:800;padding:1px 7px}
.seller-status-tab.active{background:#fff;color:var(--green-dark);box-shadow:0 4px 12px #1b362312}
.seller-status-tab.active b{background:var(--mint);color:var(--green-dark)}
.seller-product-list{display:grid;gap:9px}
.seller-product-card{display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:10px;box-shadow:var(--shadow)}
.seller-product-card.is-inactive{background:#fafbfa}
.seller-product-card.is-inactive .seller-product-thumb,.seller-product-card.is-inactive .seller-product-copy strong{opacity:.6}
.seller-product-open{flex:1;min-width:0;display:flex;align-items:center;gap:11px;border:0;background:none;padding:0;text-align:left;color:var(--ink)}
.seller-product-thumb{flex:0 0 auto;width:48px;height:48px;border-radius:14px;background:var(--soft);display:grid;place-items:center;overflow:hidden}
.seller-product-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.seller-product-emoji{font-size:22px;line-height:1}
.seller-product-copy{min-width:0;flex:1;display:grid;gap:2px}
.seller-product-copy strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.seller-product-copy small{color:var(--muted);font-size:10.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0}
.seller-product-price{display:block;margin-top:2px;color:var(--green-dark);font-size:12.5px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.seller-product-side{flex:0 0 auto;display:grid;justify-items:end;gap:5px}
.seller-status{display:inline-flex;align-items:center;gap:4px;border-radius:20px;padding:3px 8px;font-size:9.5px;font-weight:800;background:#f1f3f1;color:var(--muted);white-space:nowrap}
.seller-status.is-active{background:var(--mint);color:var(--green-dark)}
.seller-status.is-off{background:#f1f3f1;color:var(--muted)}
.seller-status-toggle{border:1px solid var(--line);background:#fff;border-radius:9px;padding:5px 8px;font-size:10px;font-weight:800;color:var(--green);white-space:nowrap}
.seller-status-toggle:active{background:#eef4ee}
.seller-product-card.is-inactive .seller-status-toggle{color:var(--muted)}
.product-photo-editor{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px;margin:4px 0 6px}
.product-photo-preview{flex:0 0 auto;width:64px;height:64px;border-radius:16px;background:var(--soft);display:grid;place-items:center;overflow:hidden;font-size:24px}
.product-photo-preview img{width:100%;height:100%;object-fit:cover;display:block}
.product-photo-copy{min-width:0;flex:1;display:grid;gap:2px}
.product-photo-copy strong{font-size:12.5px}
.product-photo-actions{display:flex;align-items:center;gap:8px;margin-top:7px;flex-wrap:wrap}
.product-photo-actions button{padding:7px 11px;font-size:11px;border-radius:10px}
@media(max-width:370px){.seller-product-side{gap:4px}.seller-status-toggle{font-size:9px;padding:4px 7px}.seller-product-thumb{width:42px;height:42px}}
.detail-photo{flex:0 0 auto;width:58px;height:58px;border-radius:15px;background:var(--soft);overflow:hidden;display:grid;place-items:center}
.detail-photo img{width:100%;height:100%;object-fit:cover;display:block}
.detail-copy{min-width:0;flex:1}
.product-detail-hero strong{display:block;font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.history-tools{display:flex;flex-direction:column;gap:8px;margin:2px 0 11px}
.history-tools .order-date-range{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 34px;margin:0;padding:0;gap:0 6px;align-items:end}
.history-tools .order-date-range .field{margin:0;min-width:0}
.history-tools .order-date-range .field label{font-size:10px;margin-bottom:2px;color:var(--muted)}
.history-tools .order-date-range input{min-height:34px;padding:5px 7px;font-size:11.5px;border-radius:9px}
.history-tools .date-range-search{grid-column:3;grid-row:1;width:34px;height:34px;margin:0;border-radius:9px;align-self:end}
.history-tools .date-range-search svg{width:16px;height:16px}
.history-tools .date-range-actions{grid-column:1 / -1;grid-row:2;margin-top:2px;min-height:0}
.history-tools .order-date-range .text-button{font-size:10px;padding:0;line-height:1.3}
.history-tools .location-filter{display:flex;align-items:center;gap:7px;margin:0}
.history-tools .location-filter>label{font-size:10px;color:var(--muted);flex:0 0 auto}
.history-tools .location-filter select{min-height:32px;padding:4px 8px;font-size:11.5px;border-radius:9px;flex:1;min-width:0}
.history-tools .chips{padding:0;gap:6px;margin:0}
.history-tools .chip{padding:5px 10px;font-size:10.5px;border-radius:20px}
.history-tools .history-search{margin:0}
.history-tools .history-search .search{min-height:34px;font-size:11.5px;border-radius:9px}
@media (max-width:370px){
  .history-tools .order-date-range{grid-template-columns:minmax(0,1fr) 34px}
  .history-tools .order-date-range .field:first-child{grid-column:1 / -1}
  .history-tools .order-date-range .field:nth-child(2){grid-column:1;grid-row:2}
  .history-tools .date-range-search{grid-column:2;grid-row:2}
  .history-tools .date-range-actions{grid-row:3}
}
.report-tools{margin:0 0 11px}
.report-tools .chips{padding:0;gap:6px;margin:0}
.report-tools .chip{padding:5px 10px;font-size:10.5px;border-radius:20px}
.report-tools .order-date-range{margin:0;padding:0}
.report-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:9px}
.report-stat{background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 11px}
.report-stat small{display:block;font-size:10px;font-weight:700;color:var(--muted)}
.report-stat strong{display:block;font-size:15px;line-height:1.25;margin-top:4px}
.report-stat.is-muted strong{font-size:11px;font-weight:700;color:var(--muted)}
.report-note{display:block;margin:0 0 11px;font-size:10.5px;color:var(--muted)}
.debt-tools .chips{padding:0;gap:6px;margin:0}
.debt-tools .chip{padding:5px 10px;font-size:10.5px;border-radius:20px}
.debt-tools .toolbar{margin:0}
.debt-tools .search{min-height:34px;font-size:11.5px;border-radius:9px}
.debt-row .row-main{display:grid;gap:2px;min-width:0}
.debt-row .row-main strong{font-size:12.5px}
.debt-row .row-main small{font-size:10.5px;color:var(--muted)}
.debt-row .badge{justify-self:start;margin-top:2px}
.debt-detail small{display:block;margin-top:2px}
.debt-numbers{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:9px 0}
.debt-numbers span{display:grid;gap:2px;background:var(--soft);border-radius:11px;padding:7px 9px}
.debt-numbers small{font-size:9.5px;font-weight:700;color:var(--muted)}
.debt-numbers strong{display:block;font-size:12.5px;margin:0}
.debt-payment{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:13px;padding:9px 11px;margin-bottom:7px}
.debt-payment .row-main{display:grid;gap:1px;min-width:0}
.debt-payment .row-main strong{font-size:12.5px}
.debt-payment .row-main small{font-size:10.5px;color:var(--muted)}
.debt-payment-empty{padding:20px 14px}
.debt-actions{margin-top:4px}
.debt-pay-chips{margin:0 0 8px;padding:0;gap:6px}
.debt-pay-chips .chip{padding:5px 10px;font-size:10.5px;border-radius:20px}
.debt-party-link{display:flex;align-items:center;gap:11px;flex:1;min-width:0;background:none;border:0;padding:0;text-align:left;color:inherit}
.debt-party-name{color:var(--green-dark);font-size:12.5px;text-decoration:underline;text-decoration-color:#bcd9c8;text-underline-offset:2px}
.debt-row-end{display:grid;gap:2px;text-align:right;flex:0 0 auto;background:none;border:0;padding:0;color:inherit}
.debt-row-end strong{font-size:12.5px}
.debt-row-end small{font-size:10px;color:var(--muted)}
.debt-detail-name{display:block;border:0;background:none;padding:0;margin-top:4px;text-align:left;color:var(--ink);font-size:18px;font-weight:800}
.debt-detail-hint{margin-top:1px!important}
.debt-btn{flex:1;min-width:110px;border-radius:12px;padding:11px 12px;font-weight:800;border:1px solid transparent}
.debt-btn.give{background:#fdecec;color:#c53b3b;border-color:#f3cfcf}
.debt-btn.receive{background:var(--green);color:#fff;border-color:var(--green)}
.field input[data-money="true"]{font-variant-numeric:tabular-nums}
.field input.money-input{color:var(--green-dark);font-weight:800;font-size:18px}
.field input.money-input-out{color:#c53b3b;font-weight:800;font-size:18px}
.field input.money-input-in{color:var(--green-dark);font-weight:800;font-size:18px}
.money-in{color:var(--green-dark)}
.money-out{color:#c53b3b}
.debt-history-row{width:100%;text-align:left;color:inherit}
.debt-history-end{font-size:10px;color:var(--muted);flex:0 0 auto;text-align:right}
.field[hidden]{display:none!important}
.debt-schedule{display:grid;gap:6px;margin-bottom:12px;max-height:260px;overflow:auto}
.debt-schedule-row{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:9px 11px;border:1px solid var(--line);border-radius:12px;background:#fff;color:inherit;text-align:left}
.debt-schedule-row strong{font-size:12.5px}
.debt-schedule-row small{display:block;color:var(--muted);font-size:10px}
.debt-schedule-row .row-end{text-align:right;flex:0 0 auto}
.debt-schedule-row .row-end strong{color:var(--red)}
.debt-schedule-row.done{background:#f2faf4;border-color:#cfe8d7}
.debt-schedule-row.done .row-end strong{color:var(--green-dark)}
.debt-schedule-row.overdue{border-color:#f3cfcf;background:#fff8f8}
.debt-installment-card{margin-bottom:10px;border-color:#f3cfcf;background:#fff8f8}
.debt-installment-card strong{color:#c53b3b}
.debt-row-wrap+.debt-row-wrap{margin-top:10px}
.debt-history-row .row-main{flex:1;min-width:0;text-align:left;background:none;border:0;padding:0;color:inherit}
.debt-history-row.deleted{opacity:.72;background:#f8f8f8;border-style:dashed}
.restore-text{color:var(--green-dark);font-weight:700;flex:0 0 auto}
.delete-text{color:#c53b3b;font-weight:700;flex:0 0 auto}
.debt-delete-link{margin:6px 0 0;padding:2px 0}
.debt-quick-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:8px}
.debt-quick-actions .debt-btn{min-width:0;padding:9px 6px;font-size:11.5px;border-radius:11px}
.debt-quick-actions .debt-btn.payoff{background:var(--green-dark);color:#fff;border-color:var(--green-dark)}
@media(max-width:420px){.debt-quick-actions .debt-btn{font-size:10.5px;padding:8px 4px}}
.dashboard-menu-actions{display:flex;gap:8px;margin:12px 0 8px}
.dashboard-menu-actions .checkout{flex:1;width:auto;margin-top:0;min-height:42px;padding:11px 14px;font-size:12.5px;white-space:nowrap}
.dashboard-menu-actions .menu-share-button{flex:0 0 auto;width:auto;margin-top:0;min-height:42px;padding:11px 16px;font-size:12.5px;white-space:nowrap}
.dashboard-summary-slider{margin:0 0 14px}
.dashboard-summary-viewport{overflow:hidden;padding:2px 1px 6px}
.dashboard-summary-track{display:flex;transition:transform .45s cubic-bezier(.2,.8,.2,1);will-change:transform}
.dashboard-summary-slide{flex:0 0 100%;display:grid;gap:6px;text-align:left;border:1px solid #d7e7db;border-radius:16px;background:linear-gradient(145deg,#f4fbf6,#fff);padding:14px;color:inherit;box-shadow:0 6px 18px rgba(20,80,45,.06)}
.dashboard-summary-slide.tone-debt{border-color:#eadbbd;background:linear-gradient(145deg,#fffaf0,#fff)}
.dashboard-summary-slide.tone-change{border-color:#d9dcf1;background:linear-gradient(145deg,#f6f7ff,#fff)}
.dashboard-summary-slide-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.dashboard-summary-slide-top small,.dashboard-summary-slide-top span{font-size:10px;color:var(--muted)}
.dashboard-summary-slide-label{font-size:13px;font-weight:800}
.dashboard-summary-slide-value{font-size:24px;font-weight:900;letter-spacing:-.5px;color:var(--green-dark)}
.dashboard-summary-slide.tone-debt .dashboard-summary-slide-value{color:#a46a18}
.dashboard-summary-slide.tone-change .dashboard-summary-slide-value{color:#4f5bb7}
.dashboard-summary-slide-meta{font-size:10.5px;color:var(--muted)}
.dashboard-summary-slide-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px dashed var(--line);padding-top:7px;margin-top:2px;font-size:11px;color:var(--green)}
.dashboard-summary-dots{display:flex;justify-content:center;gap:5px;margin-top:2px}
.dashboard-summary-dot{width:6px;height:6px;padding:0;border:0;border-radius:999px;background:#d4e1d6;transition:width .2s ease,background .2s ease}
.dashboard-summary-dot.active{width:18px;background:var(--green)}
@media(prefers-reduced-motion:reduce){.dashboard-summary-track,.dashboard-summary-dot{transition:none}}
.menu-chip-row{display:flex;gap:7px;overflow:auto;padding:0 0 10px;scrollbar-width:none}
.menu-chip-row::-webkit-scrollbar{display:none}
.menu-chip{flex:0 0 auto;display:grid;gap:1px;text-align:left;border:1px solid #cfe4d6;background:#f2f9f4;border-radius:12px;padding:7px 11px;color:var(--green-dark)}
.menu-chip strong{font-size:11.5px;font-weight:800;white-space:nowrap}
.menu-chip small{font-size:10px;color:var(--muted);white-space:nowrap}
.menu-notice{display:flex;align-items:center;gap:10px;background:#f2f9f4;border:1px solid #d6e9dc;border-radius:14px;padding:9px 11px;margin-bottom:10px}
.menu-notice .row-main{flex:1;min-width:0;display:grid;gap:1px}
.menu-notice .row-main strong{font-size:12px}
.menu-notice .row-main small{font-size:10px;color:var(--muted);overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.menu-notice-icon{font-size:18px;line-height:1}
.menu-notice .text-button{flex:0 0 auto}
.menu-modal-hint{font-size:11px;color:var(--muted);margin:0 0 10px}
.menu-pick-list{display:flex;flex-direction:column;gap:7px;margin-top:10px}
.menu-pick{display:flex;align-items:center;gap:10px;width:100%;text-align:left;border:1px solid var(--line);background:#fff;border-radius:13px;padding:9px 11px;color:inherit}
.menu-pick.selected{border-color:#a9d8bb;background:#f1faf3}
.menu-pick .row-main{flex:1;min-width:0;display:grid;gap:1px}
.menu-share-button{width:100%;margin-top:8px;min-height:40px;font-size:12px;display:inline-flex;align-items:center;justify-content:center;gap:7px}
.menu-share-button svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.menu-share-button[disabled]{opacity:.45}
.menu-pick .row-main strong{font-size:12.5px}
.menu-pick .row-main small{font-size:10.5px;color:var(--muted)}
.menu-pick-mark{width:26px;height:26px;flex:0 0 auto;border-radius:9px;display:grid;place-items:center;background:#eef4ee;color:var(--green-dark);font-weight:900;font-size:14px}
.menu-pick.selected .menu-pick-mark{background:var(--green);color:#fff}
.menu-modal-actions{display:flex;align-items:center;gap:10px;margin-top:14px;position:sticky;bottom:0;padding:10px 0 4px;background:linear-gradient(180deg,rgba(247,249,246,0),var(--bg) 14px)}
.menu-modal-actions .menu-count{font-size:11px;color:var(--muted);flex:1}
.menu-modal-actions .checkout{width:auto;min-width:120px;margin-top:0;padding:10px 18px}
.menu-modal-actions .checkout:disabled{opacity:.45}
.detail-actions .share-product-action{grid-column:1/-1}

/* Catering + urutan menu cepat */
.quick-catering .quick-icon{background:linear-gradient(140deg,#43cdb3,#0f8f73)}
.quick-grid-tools{display:flex;justify-content:flex-end;margin:-14px 0 14px}
.quick-grid-tools .text-button{font-size:10.5px;color:var(--muted)}
.dashboard-order-modal{max-width:430px}
.quick-order-list{display:grid;gap:7px;margin-top:10px}
.quick-order-item{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid var(--line);border-radius:13px;padding:8px 10px;transition:background .12s ease,border-color .12s ease}
.quick-order-item.dragging{opacity:.7;border-color:#a9d8bb;background:#f2faf4;box-shadow:0 8px 20px #193b2517}
.quick-order-item>strong{flex:1;min-width:0;font-size:12.5px}
.quick-order-icon{width:34px;height:34px;flex:0 0 auto;border-radius:11px;display:grid;place-items:center;background:linear-gradient(140deg,#43cdb3,#0f8f73);color:#fff}
.quick-order-icon.quick-products{background:linear-gradient(140deg,#ffa235,#f2711c)}
.quick-order-icon.quick-orders{background:linear-gradient(140deg,#ff7a6b,#e2453c)}
.quick-order-icon.quick-customers{background:linear-gradient(140deg,#5aa7f5,#2f7de1)}
.quick-order-icon.quick-expenses{background:linear-gradient(140deg,#ffd259,#f0b429);color:#6b4a03}
.quick-order-icon.quick-bills{background:linear-gradient(140deg,#9a8bf5,#6f5ce0)}
.quick-order-icon.quick-kasir{background:linear-gradient(140deg,#35c98c,#0e8a52)}
.quick-order-icon.quick-debts{background:linear-gradient(140deg,#7a8bff,#4d5fd8)}
.quick-order-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.quick-order-buttons{display:flex;gap:4px}
.quick-order-buttons button{width:27px;height:27px;border:1px solid var(--line);border-radius:8px;background:#f6f9f6;color:var(--ink);font-size:11px;font-weight:900;padding:0}
.quick-order-buttons button:disabled{opacity:.3}
.quick-order-handle{margin-left:2px;padding:8px 4px;color:var(--muted);touch-action:none;cursor:grab;font-weight:900;letter-spacing:1px;font-size:13px;user-select:none}
.catering-period{display:flex;justify-content:flex-end;margin:0 0 10px}
.catering-period label{display:flex;align-items:center;gap:8px;font-size:10px;color:var(--muted);font-weight:700}
.catering-period input{border:1px solid var(--line);border-radius:10px;background:#fff;padding:7px 9px;font:inherit;font-size:11px;color:var(--ink)}
.catering-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 10px}
.catering-summary>div{background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px;box-shadow:0 6px 18px #193b2508}
.catering-summary small{display:block;color:var(--muted);font-size:10px;font-weight:650}
.catering-summary strong{display:block;margin-top:2px;font-size:15px;letter-spacing:-.3px;font-variant-numeric:tabular-nums}
.catering-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.catering-actions .checkout,.catering-actions .secondary{width:auto;flex:1 1 120px;margin:0;min-height:38px;padding:9px 12px;font-size:11px;border-radius:11px}
.catering-list{display:grid;gap:9px}
.catering-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 10px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px;box-shadow:0 7px 20px #193b2508}
.catering-row-main{display:grid;gap:2px;min-width:0}
.catering-row-main strong{font-size:12.5px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.catering-row-main small{font-size:10px;color:var(--muted);line-height:1.35}
.catering-row-end{display:grid;gap:2px;align-content:start;text-align:right;white-space:nowrap}
.catering-row-end strong{font-size:12.5px;color:var(--green-dark);font-variant-numeric:tabular-nums}
.catering-row-end small{font-size:9.5px;color:var(--muted);font-weight:650}
.catering-row-actions{grid-column:1/-1;display:flex;align-items:center;gap:8px;flex-wrap:wrap;border-top:1px dashed var(--line);padding-top:8px}
.catering-row-actions button{width:auto;min-height:34px;padding:7px 10px;font-size:11px;margin:0;border-radius:10px}
.catering-row-actions .text-button{min-height:auto;padding:4px 2px}
.catering-done{font-size:10px;color:var(--muted);font-weight:700}
.catering-report{display:grid;gap:0;background:#fff;border:1px solid var(--line);border-radius:16px;padding:2px 12px;box-shadow:0 7px 20px #193b2508}
.catering-report-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}
.catering-report-row:last-child{border-bottom:0}
.catering-report-row .catering-row-main{flex:1}
.catering-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.catering-form-grid .field{min-width:0}
.catering-menu-row{display:grid;grid-template-columns:minmax(0,1fr) 78px auto;gap:8px;align-items:end;margin-bottom:8px}
.catering-menu-row .field{min-width:0;margin:0}
.catering-menu-row .text-button{align-self:end;padding:8px 2px;min-height:34px}
.catering-menu-add{width:auto;min-height:34px;padding:6px 2px;font-size:11px}
.catering-days{display:flex;flex-wrap:wrap;gap:5px}
.catering-day{display:inline-flex;align-items:center;gap:4px;border:1px solid var(--line);border-radius:9px;padding:5px 7px;background:#f7faf7;font-size:10px;font-weight:700}
.catering-day input{width:auto;margin:0}
@media(max-width:360px){.catering-form-grid{grid-template-columns:1fr}.catering-summary{grid-template-columns:1fr 1fr}.catering-row-end strong{font-size:11.5px}.catering-menu-row{grid-template-columns:1fr 64px}.catering-menu-row .text-button{grid-column:1/-1;justify-self:start;padding:2px 0}}

/* Detail pemberi hutang: header polos (tanpa warna), kartu total, tabel, bar bawah */
.debt-party-head{display:flex;align-items:center;gap:11px;padding:2px 0 12px;background:none}
.debt-party-avatar{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--soft);border:1px solid var(--line);color:var(--ink);font-weight:900;font-size:17px}
.debt-party-id{display:grid;gap:1px;min-width:0}
.debt-party-id strong{font-size:17px;letter-spacing:-.2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.debt-party-id small{font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.debt-party-total{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border:1px solid var(--line);border-radius:17px;padding:14px}
.debt-party-total-copy{display:grid;gap:5px;min-width:0}
.debt-party-total-copy small{font-size:12px;color:var(--muted)}
.debt-party-total-copy strong{font-size:22px;font-weight:800;color:var(--green-dark);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.debt-party-payoff{border:0;border-radius:11px;background:#f5b301;color:#241a00;font-weight:800;font-size:13px;padding:11px 20px;flex:0 0 auto}
.debt-party-payoff:active{background:#e0a400}
.debt-party-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px;background:#fff;border:1px solid var(--line);border-radius:17px;padding:12px}
.debt-party-shortcut{display:grid;justify-items:center;gap:6px;border:0;background:none;color:var(--ink);font-size:11.5px;font-weight:700;padding:4px 2px}
.debt-party-shortcut svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.debt-table{background:#fff;border:1px solid var(--line);border-radius:17px;overflow:hidden;margin-top:12px}
.debt-table-head,.debt-table-row{display:grid;grid-template-columns:minmax(0,1.6fr) 1fr 1fr;align-items:stretch}
.debt-table-head{background:var(--soft);font-size:11px;font-weight:800;color:var(--ink)}
.debt-th{padding:9px 8px;display:flex;align-items:center;gap:5px}
.debt-th-date{color:var(--muted);justify-content:flex-start}
.debt-th-in{justify-content:flex-end;background:#eaf8ef}
.debt-th-out{justify-content:flex-end}
.debt-info{width:16px;height:16px;border:0;border-radius:50%;background:#1877c9;color:#fff;font-size:10px;font-weight:800;line-height:16px;padding:0;flex:0 0 auto}
.debt-table-row{border-top:1px solid var(--line);background:#fff}
.debt-table-row.deleted{opacity:.55}
.debt-table-row .debt-td{border:0;border-radius:0;font:inherit;color:inherit;text-align:left;cursor:pointer;background:#fff}
.debt-table-row .debt-td-in{background:#eaf8ef}
.debt-td{padding:10px 8px;display:grid;align-content:center;gap:1px;min-width:0}
.debt-td-date strong{font-size:12.5px;font-weight:650}
.debt-td-date small{font-size:10px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.debt-td-in{justify-items:end;background:#eaf8ef;color:var(--green-dark);font-size:12.5px;font-weight:650;font-variant-numeric:tabular-nums;text-align:right}
.debt-td-out{justify-items:end;color:#c53b3b;font-size:12.5px;font-weight:800;font-variant-numeric:tabular-nums;text-align:right}
.debt-dash{font-style:normal;color:var(--muted);font-weight:600}
.debt-table-empty{padding:22px 14px;text-align:center;color:var(--muted);font-size:12px;border-top:1px solid var(--line)}
.debt-party-spacer{height:88px}
.debt-party-bar{position:fixed;left:0;right:0;bottom:calc(68px + env(safe-area-inset-bottom));z-index:12;display:flex;gap:10px;padding:9px 17px;max-width:680px;margin:0 auto;background:#fff;border-top:1px solid var(--line)}
.debt-party-bar-btn{flex:1;border:0;border-radius:12px;padding:13px 12px;font-size:14px;font-weight:800;color:#fff}
.debt-party-bar-btn.give{background:#e01b1b}
.debt-party-bar-btn.receive{background:#16a37a}

/* Halaman Buku: ubah nominal satu catatan */
.buku-card{display:flex;align-items:center;gap:11px;background:#fff;border:1px solid var(--line);border-radius:17px;padding:14px}
.buku-avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--soft);border:1px solid var(--line);font-weight:900;font-size:16px}
.buku-copy{display:grid;gap:2px;min-width:0}
.buku-copy strong{font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.buku-copy small{font-size:11.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.buku-form{background:#fff;border:1px solid var(--line);border-radius:17px;padding:16px;margin-top:12px;display:grid;gap:12px}
.buku-field{display:grid;gap:6px}
.buku-field span{font-size:12px;color:var(--muted);font-weight:700}
.buku-amount{width:100%;font-size:24px;font-weight:800;color:var(--green-dark);background:transparent;border:0;border-bottom:2px solid var(--line);border-radius:0;padding:6px 0;font-variant-numeric:tabular-nums}
.buku-amount:focus{outline:none;border-bottom-color:var(--green)}
.buku-summary{display:grid;gap:7px;border-top:1px dashed var(--line);padding-top:11px}
.buku-summary div{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:var(--muted)}
.buku-summary strong{color:var(--ink);font-variant-numeric:tabular-nums}
.buku-save{width:100%;border:0;border-radius:12px}
.buku-back{width:100%;margin-top:12px}
