:root{--ink:#17251f;--muted:#748078;--green:#173d34;--green2:#245d4a;--lime:#d5e887;--cream:#f7f7f1;--line:#e6e9e1;--white:#fff;--red:#b84a3a;--shadow:0 15px 42px #20362d12;font-family:'DM Sans','Noto Sans SC',sans-serif;color:var(--ink);background:#f8f9f5}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 8% 0,#edf4e6 0,transparent 32%),#f8f9f5}.topbar{height:78px;padding:0 max(5vw,22px);display:flex;align-items:center;gap:55px;background:#fff;border-bottom:1px solid #e8ebe4;position:sticky;top:0;z-index:5}.brand{display:flex;align-items:center;gap:11px;color:var(--green);text-decoration:none;min-width:180px}.brand-mark{height:41px;width:41px;display:grid;place-items:center;border-radius:14px;background:var(--green);color:var(--lime);font-size:22px;font-weight:800}.brand b{font-size:18px;display:block;letter-spacing:1px}.brand small{font-size:8px;letter-spacing:1.7px;color:#8a958d}.topbar nav{display:flex;align-items:center;gap:30px;height:100%}.nav-link{height:100%;border:0;background:none;color:#77827a;font-family:inherit;font-size:14px;font-weight:500;cursor:pointer;position:relative;padding:0 2px}.nav-link.active{color:var(--green);font-weight:700}.nav-link.active:after{content:'';position:absolute;bottom:0;left:0;right:0;height:3px;background:#83a75c;border-radius:5px 5px 0 0}.top-note{margin-left:auto;font-size:12px;color:#647269;display:flex;align-items:center;gap:8px}.live-dot{width:8px;height:8px;border-radius:50%;background:#62a176;box-shadow:0 0 0 4px #e8f2e5}.page{max-width:1220px;margin:0 auto;padding:45px 25px 75px}.hero{display:grid;grid-template-columns:1fr .78fr;gap:35px;align-items:center;margin:0 0 36px;padding:42px 48px;border-radius:28px;background:var(--green);color:#fff;overflow:hidden;position:relative;min-height:240px}.hero:after{content:'';width:370px;height:370px;border-radius:50%;background:#ffffff0b;position:absolute;right:13%;top:-140px}.eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:10px;color:#bad38c;font-weight:700}.hero h1{font-size:38px;line-height:1.3;letter-spacing:-1px;margin:12px 0 10px;max-width:470px}.hero p{color:#d0ded4;margin:0;font-size:14px}.hero-art{position:relative;z-index:1;display:flex;justify-content:center;align-items:center;font-size:90px;filter:drop-shadow(0 22px 16px #10261f55);transform:rotate(-8deg)}.hero-art span:nth-child(2){font-size:49px;margin-left:-22px;margin-top:85px;transform:rotate(25deg)}.hero-art span:nth-child(3){font-size:56px;margin-left:-28px;margin-top:-75px;transform:rotate(18deg)}.toolbar{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:24px 0 20px}.section-title{font-size:21px;margin:0 0 5px;letter-spacing:-.3px}.section-sub{color:var(--muted);font-size:12px;margin:0}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field label{font-size:11px;font-weight:700;color:#627067}.field input,.field select,.field textarea,.search,.select{width:100%;min-height:43px;padding:10px 12px;border-radius:10px;border:1px solid var(--line);background:white;color:var(--ink);font-family:inherit;font-size:13px;outline:none}.field textarea{min-height:78px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus,.search:focus{border-color:#8dad75;box-shadow:0 0 0 3px #a2bf7720}.city-select{width:190px}.products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.product-card{background:#fff;border:1px solid #eaede6;border-radius:17px;overflow:hidden;box-shadow:0 6px 20px #25392b06;transition:.2s}.product-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.product-image{height:175px;background:linear-gradient(145deg,#e3edda,#f6f3e7);display:grid;place-items:center;position:relative;overflow:hidden}.product-image img{width:100%;height:100%;object-fit:cover}.food-emoji{font-size:75px;filter:drop-shadow(0 10px 10px #384c2830)}.category-tag{position:absolute;top:13px;left:13px;background:#ffffffdf;border-radius:30px;padding:6px 10px;font-size:10px;color:#4e6851}.product-info{padding:17px 17px 14px}.product-head{display:flex;justify-content:space-between;align-items:start;gap:8px}.product-head h3{margin:0;font-size:16px}.stock{font-size:10px;color:#78857a;white-space:nowrap}.product-info p{font-size:12px;line-height:1.7;color:#78827b;min-height:39px;margin:8px 0 13px}.product-foot{display:flex;justify-content:space-between;align-items:center}.price{font-size:18px;color:var(--green);font-weight:800}.price small{font-size:10px;font-weight:500;color:#849087}.add-btn,.primary{border:0;border-radius:10px;background:var(--green);color:#fff;font-weight:700;padding:10px 15px;cursor:pointer;transition:.18s}.add-btn{width:37px;height:37px;font-size:21px;line-height:1;padding:0;border-radius:12px}.add-btn:hover,.primary:hover{background:#28634e;transform:translateY(-1px)}.secondary{border:1px solid #dce3d8;background:#fff;color:var(--green);border-radius:10px;padding:10px 14px;font-weight:700;cursor:pointer}.danger{color:var(--red)!important}.delivery-banner{display:flex;gap:14px;align-items:center;padding:16px 20px;background:#edf4e6;border:1px solid #e3edd9;border-radius:15px;margin:0 0 27px;color:#345343}.delivery-icon{font-size:22px}.delivery-banner strong{font-size:13px}.delivery-banner small{display:block;color:#728278;margin-top:3px;font-size:11px}.cart-float{position:fixed;bottom:24px;right:32px;z-index:4;border:0;border-radius:18px;background:var(--green);color:white;padding:14px 19px;box-shadow:0 12px 35px #173d3440;cursor:pointer;display:flex;align-items:center;gap:12px;font-size:13px;font-weight:700}.cart-count{border-radius:50%;background:var(--lime);color:var(--green);width:25px;height:25px;display:grid;place-items:center}.panel{background:#fff;border:1px solid #e8ebe4;border-radius:18px;padding:22px;box-shadow:0 5px 22px #263a2b07}.checkout-grid{display:grid;grid-template-columns:1.18fr .82fr;gap:20px;align-items:start}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.span2{grid-column:span 2}.form-section-title{font-size:15px;margin:0 0 18px}.radio-row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.radio-card{padding:13px;border:1px solid var(--line);border-radius:12px;cursor:pointer}.radio-card:has(input:checked){border-color:#668d64;background:#f2f7ec}.radio-card input{accent-color:#315f46}.radio-card b{font-size:12px;display:block;margin-top:7px}.radio-card small{font-size:10px;color:#839087;display:block;margin-top:4px;line-height:1.5}.summary-row{display:flex;justify-content:space-between;font-size:12px;color:#707c73;padding:8px 0}.summary-total{display:flex;justify-content:space-between;padding-top:14px;margin-top:6px;border-top:1px solid var(--line);font-weight:800}.summary-total strong{font-size:19px;color:var(--green)}.cart-row{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #eff1ec;font-size:12px}.qty{display:flex;align-items:center;gap:9px}.qty button{width:25px;height:25px;border-radius:8px;border:1px solid var(--line);background:#fff;cursor:pointer}.notice{padding:12px 14px;border-radius:10px;background:#f2f5ee;color:#526957;font-size:11px;line-height:1.6;margin:12px 0}.notice.amber{background:#fff6e6;color:#8b682f}.photo-upload{padding:15px;border:1px dashed #b7c6b1;background:#f8faf5;border-radius:12px}.photo-upload input{font-size:11px}.photo-upload img{max-width:100%;max-height:160px;border-radius:8px;margin-top:10px}.success{text-align:center;padding:48px 24px}.success-mark{width:62px;height:62px;border-radius:50%;background:#e8f2df;color:#4b794e;margin:0 auto 15px;display:grid;place-items:center;font-size:30px}.order-code{font-weight:800;color:var(--green);font-size:18px;letter-spacing:1px}.track-box{max-width:650px;margin:0 auto}.track-result{margin-top:20px}.timeline{margin-top:18px;border-left:2px solid #d9e4d4;padding-left:18px}.timeline-item{position:relative;padding:0 0 17px}.timeline-item:before{content:'';position:absolute;width:8px;height:8px;border-radius:50%;background:#75a065;left:-23px;top:4px}.timeline-item b{font-size:12px}.timeline-item small{display:block;color:#859087;margin-top:4px}.admin-shell{display:grid;grid-template-columns:218px 1fr;gap:20px;align-items:start}.side-nav{background:var(--green);border-radius:17px;padding:17px;color:#d5e2d5;position:sticky;top:98px}.side-nav h3{font-size:11px;letter-spacing:1.5px;text-transform:uppercase;color:#9fbea1;margin:5px 10px 15px}.side-nav button{display:block;width:100%;text-align:left;padding:12px 11px;border:0;border-radius:9px;background:none;color:#d4dfd4;font-family:inherit;font-size:12px;font-weight:500;cursor:pointer}.side-nav button.active,.side-nav button:hover{background:#ffffff17;color:white}.admin-main{min-width:0}.admin-head{display:flex;justify-content:space-between;align-items:center;margin:2px 0 19px}.admin-head h1{font-size:23px;margin:0}.admin-head p{font-size:11px;color:var(--muted);margin:5px 0 0}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:17px}.metric{background:#fff;border:1px solid #e8ebe4;border-radius:14px;padding:16px}.metric span{font-size:10px;color:#748078}.metric strong{display:block;font-size:23px;margin-top:10px;color:var(--green)}.metric small{font-size:10px;color:#829087}.filters{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:10px;margin:14px 0}.filters .field label{font-size:10px}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;min-width:760px}.data-table th{text-align:left;color:#7b877d;font-size:10px;font-weight:600;padding:12px 10px;border-bottom:1px solid var(--line);white-space:nowrap}.data-table td{padding:13px 10px;border-bottom:1px solid #eff1ed;font-size:11px;vertical-align:middle}.data-table tr:last-child td{border-bottom:0}.pill{display:inline-flex;padding:5px 8px;border-radius:20px;background:#eff3ec;color:#547052;font-size:9px;white-space:nowrap}.pill.orange{background:#fff3dd;color:#936b2b}.pill.red{background:#fbebe9;color:#a85143}.pill.blue{background:#eaf1f5;color:#4a6c7a}.table-action{color:#47754f;font-size:10px;border:0;background:none;cursor:pointer;font-weight:700;padding:4px}.empty{text-align:center;padding:40px;color:#89938b;font-size:13px}.login-card{max-width:380px;margin:65px auto;padding:30px}.login-card h1{font-size:22px}.login-card p{font-size:12px;color:var(--muted);line-height:1.7}.login-card .field{margin:20px 0}.inline{display:flex;gap:9px;align-items:center}.inline .field{flex:1}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.detail-box{background:#fafbf8;padding:13px;border-radius:10px}.detail-box label{display:block;color:#879188;font-size:10px;margin-bottom:5px}.detail-box b{font-size:12px;word-break:break-word}.order-detail{display:grid;grid-template-columns:1fr 1fr;gap:15px}.order-detail .wide{grid-column:span 2}.detail-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}.detail-actions .primary,.detail-actions .secondary{font-size:11px;padding:9px 11px}.toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,20px);padding:12px 19px;border-radius:12px;background:#1e332b;color:#fff;font-size:12px;opacity:0;pointer-events:none;transition:.2s;z-index:20;box-shadow:var(--shadow)}.toast.show{opacity:1;transform:translate(-50%,0)}footer{padding:25px 6vw;color:#8b968d;font-size:10px;border-top:1px solid #e8ebe4;display:flex;justify-content:space-between}button:disabled{opacity:.45;cursor:not-allowed}.checkline{display:flex;gap:8px;align-items:center;font-size:11px;color:#657269}.checkline input{accent-color:var(--green)}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.muted{color:var(--muted);font-size:11px}.link{color:#557852;cursor:pointer;text-decoration:underline}.close{float:right;border:0;background:none;font-size:20px;cursor:pointer;color:#7e8880}.hr{height:1px;background:var(--line);margin:16px 0}
.modal-backdrop{position:fixed;inset:0;background:#10241f80;z-index:12;display:grid;place-items:center;padding:18px;overflow:auto}.modal{width:min(760px,100%);max-height:92vh;overflow:auto;position:relative}.modal-backdrop .modal{box-shadow:0 24px 90px #07100c55}.proof-img{max-width:190px;max-height:150px;object-fit:cover;border-radius:10px;margin:8px 12px 8px 0;border:1px solid var(--line)}
.product-thumb,.product-thumb-placeholder{width:38px;height:38px;object-fit:cover;border-radius:8px;float:left;margin:0 9px 6px 0;background:#edf3e8}.product-thumb-placeholder{display:inline-grid;place-items:center;color:#728674;font-size:9px}
.cancel-form{height:auto!important;background:transparent!important;margin-top:20px!important;padding-top:16px;border-top:1px solid var(--line);display:grid;gap:10px}.cancel-form .field{margin:0!important}.cancel-form .secondary{justify-self:start}.cancel-form .muted{line-height:1.6}
.delivery-step-strip{display:flex;align-items:center;justify-content:center;gap:14px;padding:15px 18px;margin:18px 0 22px;border:1px solid #e6ebe1;border-radius:14px;background:#fff;color:#4f6655;font-size:12px;font-weight:700}.delivery-step-strip i{font-style:normal;color:#aab5a9;font-size:18px}.delivery-orders{display:grid;grid-template-columns:1fr 1fr;gap:16px}.delivery-card{display:flex;flex-direction:column;gap:14px}.delivery-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.delivery-card-head h2{font-size:17px;margin:6px 0 0}.delivery-card .detail-grid{grid-template-columns:1fr}.delivery-card .detail-box{padding:11px}.delivery-card .detail-box b a{color:var(--green);text-decoration:none}.delivery-items{padding:11px 13px;border-radius:10px;background:#f7f8f4;font-size:12px;line-height:1.8}.delivery-items>b{display:block;margin-bottom:4px}.delivery-task-actions{display:flex;align-items:end;flex-wrap:wrap;gap:10px;padding-top:12px;border-top:1px solid var(--line)}.delivery-task-actions .field{flex:1;min-width:180px}.delivery-task-actions .primary{white-space:nowrap}.delivery-card .proof-img{max-width:150px;max-height:130px}
.danger-button{border-color:#ecd2ce!important;color:#a34d42!important;background:#fff8f7!important}.danger-button:hover{background:#fdf0ee!important}
.store-qr-thumb{width:58px;height:58px;object-fit:contain;border:1px solid var(--line);border-radius:8px;background:#fff;padding:3px}.store-qr-preview{width:min(230px,100%);height:auto;max-height:230px;object-fit:contain;background:#fff;border:1px solid var(--line);padding:8px}.payment-qr{display:block;width:min(220px,100%);max-height:220px;object-fit:contain;border:1px solid var(--line);background:#fff;border-radius:10px;padding:8px;margin:10px auto}
@media(max-width:850px){.delivery-orders{grid-template-columns:1fr}.delivery-step-strip{gap:7px;font-size:10px;padding:12px 7px}.delivery-step-strip i{font-size:15px}}
@media(max-width:850px){.topbar{gap:18px;padding:0 16px;height:68px}.brand{min-width:auto}.brand small,.top-note{display:none}.topbar nav{margin-left:auto;gap:17px}.nav-link{font-size:12px}.page{padding:24px 15px 75px}.hero{padding:28px 25px;min-height:195px;grid-template-columns:1.2fr .6fr}.hero h1{font-size:27px}.hero-art{font-size:65px}.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.product-image{height:145px}.product-info{padding:13px}.checkout-grid{grid-template-columns:1fr}.admin-shell{grid-template-columns:1fr}.side-nav{position:static;display:flex;overflow:auto;padding:9px;gap:3px}.side-nav h3{display:none}.side-nav button{white-space:nowrap;width:auto}.metrics{grid-template-columns:repeat(2,1fr)}.filters{grid-template-columns:repeat(2,1fr)}.cart-float{right:15px;bottom:15px}.order-detail{grid-template-columns:1fr}.order-detail .wide{grid-column:auto}}
@media(max-width:520px){.hero{grid-template-columns:1fr;padding:24px 20px}.hero-art{display:none}.hero h1{font-size:25px}.toolbar{align-items:start;flex-direction:column}.city-select{width:100%}.products{grid-template-columns:1fr 1fr}.product-image{height:120px}.food-emoji{font-size:57px}.product-head h3{font-size:14px}.product-info p{font-size:10px;min-height:49px}.price{font-size:16px}.stock{font-size:9px}.form-grid{grid-template-columns:1fr}.span2{grid-column:auto}.radio-row{grid-template-columns:1fr}.filters{grid-template-columns:1fr 1fr}.admin-head h1{font-size:19px}.metric{padding:12px}.metric strong{font-size:19px}.panel{padding:15px}.topbar nav{gap:12px}.nav-link{font-size:11px}footer{display:block;line-height:2}footer span{display:block}}
.product-prices{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin:8px 0 12px}.price-cny{font-size:13px;font-weight:700;color:#9a6a37}.price-cny small,.cart-cny{font-size:9px;font-weight:500;color:#899188}.product-order-controls{display:flex;align-items:center;justify-content:space-between;gap:8px}.product-qty{gap:7px}.product-qty button{width:32px;height:32px;border-radius:10px;font-size:17px;color:var(--green)}.product-qty b{min-width:18px;text-align:center}.add-cart-btn{border:0;border-radius:10px;padding:9px 12px;background:var(--green);color:#fff;font-size:11px;font-weight:700;cursor:pointer}.cart-cny{display:block;margin-top:3px;text-align:right;color:#9a6a37}.own-orders{display:grid;gap:9px}.own-order-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:12px;border:1px solid var(--line);border-radius:11px;background:#fff}.own-order-row>div{min-width:0}.own-order-row>div>b{font-size:12px;word-break:break-all}.own-order-row small{display:block;color:#899188;font-size:10px;margin-top:4px}
@media(max-width:520px){.own-order-row{grid-template-columns:minmax(0,1fr) auto;gap:5px}.own-order-row .pill{grid-column:1;grid-row:2;justify-self:start}}
.currency-pair{display:inline-flex;flex-direction:column;gap:3px;line-height:1.35}.currency-pair>span{display:block}.product-prices .currency-pair{font-size:16px;font-weight:800;color:var(--green)}.cart-row>.currency-pair{font-size:11px;text-align:right}.metric .currency-pair{font-size:15px}

.delivery-more-actions{flex:0 0 100%;display:flex;flex-direction:column;align-items:flex-end;margin-top:-3px}.delivery-more-actions summary{cursor:pointer;color:#879188;font-size:10px;list-style-position:inside;padding:4px 2px}.driver-decline-quiet{border:0;background:transparent;color:#9b7773;font-size:10px;padding:5px 7px;cursor:pointer}.driver-decline-quiet:hover{color:#a34d42;text-decoration:underline}
.currency-pair .currency-kzt{font-size:1em;color:var(--green);font-weight:700}.currency-pair .currency-cny{font-size:.78em;color:#a16b3c;font-weight:500}
.cancel-form .form-section-title{font-size:13px;margin:0 0 4px}.cancel-form .field label,.cancel-form .muted{font-size:10px}.cancel-form textarea{min-height:58px;padding:8px 10px;font-size:12px}.cancel-form button.secondary{font-size:10px;padding:7px 10px;border-radius:8px}
.customer-messages{margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}.customer-messages .form-section-title{margin-bottom:7px}.customer-messages form{display:grid;gap:10px;margin-top:13px}.customer-messages textarea{min-height:76px}.customer-messages input[type=file]{font-size:11px}.customer-messages .primary{justify-self:start}.customer-message-list{display:grid;gap:9px;margin-top:12px}.customer-message{padding:11px 13px;border:1px solid var(--line);border-radius:11px;background:#fafbf8}.customer-message-meta{color:#7c887e;font-size:10px}.customer-message p{font-size:12px;line-height:1.65;margin:7px 0 0;white-space:normal;overflow-wrap:anywhere}.customer-message img{display:block;max-width:min(260px,100%);max-height:220px;object-fit:contain;border-radius:8px;margin-top:9px}.customer-more-actions{margin-top:18px;padding-top:10px;border-top:1px solid var(--line)}.customer-more-actions>summary{cursor:pointer;color:#77837a;font-size:11px}.customer-more-actions[open]>summary{margin-bottom:7px}.customer-more-actions .cancel-form{margin-top:8px!important}
.product-qty-input{width:48px;min-height:32px;padding:3px 5px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font-family:inherit;font-size:13px;font-weight:600;text-align:center;outline:none}.product-qty-input:focus{border-color:#8dad75;box-shadow:0 0 0 3px #a2bf7720}

.cart-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.cart-heading .form-section-title{margin:0}.cart-clear-btn{border:1px solid #ead8d5;background:#fff;color:#a35a50;border-radius:8px;padding:6px 9px;font-size:10px;cursor:pointer;white-space:nowrap}.cart-clear-btn:hover{background:#fff5f3}
.cart-float .currency-pair{font-size:11px;text-align:left}.cart-float .currency-kzt{color:#fff}.cart-float .currency-cny{color:#d5e887}

.primary .currency-kzt{color:#fff}.primary .currency-cny{color:#e3edbc}

.staff-reply-form{display:grid;gap:9px;margin:12px 0;padding:12px;border:1px solid var(--line);border-radius:11px;background:#fbfcf9}.staff-reply-form .field{margin:0}.staff-reply-form textarea{min-height:64px}.staff-reply-form input[type=file]{font-size:11px}.staff-reply-form .secondary{justify-self:start;font-size:11px;padding:8px 12px}.driver-order-timeline{padding:8px 0}.driver-order-timeline>summary{cursor:pointer;color:#6e7c71;font-size:11px}.driver-order-timeline .timeline{margin-top:14px}
.customer-row-actions{display:flex;flex-direction:column;align-items:flex-start;gap:9px;min-width:74px}.customer-edit-action{padding:6px 9px;border:1px solid #dce6dc;border-radius:6px;background:#f6faf5}.customer-delete-action{margin-top:4px;padding:7px 4px 2px;border:0;border-top:1px solid #eceeea;background:transparent;color:#9a7772;font-size:9px;cursor:pointer}
.address-field{position:relative}.address-suggestions{position:absolute;z-index:10;top:100%;left:0;right:0;max-height:210px;overflow:auto;margin-top:4px;padding:5px;background:#fff;border:1px solid #dfe6dc;border-radius:9px;box-shadow:0 8px 24px #20362d1a}.address-suggestions[hidden]{display:none}.address-suggestions button{display:block;width:100%;padding:10px;text-align:left;border:0;border-radius:6px;background:#fff;color:var(--ink);font:inherit;font-size:12px;cursor:pointer}.address-suggestions button:hover,.address-suggestions button:focus{background:#f0f5ed;outline:none}
#credit-payment-option[hidden]{display:none}
.customer-credit-ledger{margin:18px 0;padding:16px;border:1px solid #e3eadd;border-radius:12px;background:#fbfcf8}.customer-credit-row{display:grid;grid-template-columns:minmax(150px,1.1fr) minmax(130px,.8fr) minmax(170px,1fr);gap:14px;align-items:center;padding:12px 4px;border-top:1px solid #e9ede6}.customer-credit-row>div{min-width:0}.customer-credit-row b,.customer-credit-row small{display:block}.customer-credit-row small{margin-top:5px;color:var(--muted);font-size:10px;line-height:1.5}.customer-credit-row .currency-pair{align-items:flex-start}@media(max-width:650px){.customer-credit-row{grid-template-columns:1fr 1fr}.customer-credit-row>div:last-child{grid-column:1/-1}}
.ledger-filter-buttons{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 16px}.ledger-filter-buttons button{padding:7px 12px;border:1px solid #dfe6dc;border-radius:18px;background:#fff;color:#65736a;font-size:11px;cursor:pointer}.ledger-filter-buttons button.active{border-color:#245d4a;background:#eaf2e7;color:#173d34;font-weight:700}
@media(max-width:650px){body{overflow-x:hidden}.page{width:100%;padding:16px 12px 86px}.topbar{padding:0 12px;height:62px;gap:10px}.brand-mark{width:36px;height:36px}.topbar nav{gap:10px}.admin-shell,.admin-main,.panel{min-width:0}.admin-shell{gap:12px}.side-nav{position:sticky;top:62px;z-index:4;display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;background:#f8f9f5;padding:7px 2px}.side-nav button{flex:0 0 auto;min-height:40px;padding:9px 12px;font-size:11px}.side-nav button[data-action="logout"]{margin:0!important}.admin-main{width:100%;overflow:hidden}.filters{grid-template-columns:1fr}.filters>.field:first-child{grid-column:auto}.table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.data-table{min-width:760px}.delivery-orders{grid-template-columns:1fr}.delivery-card{padding:14px}.delivery-task-actions{display:grid;grid-template-columns:1fr;align-items:stretch}.delivery-task-actions .field{min-width:0;width:100%}.delivery-task-actions button,.delivery-task-actions .primary{width:100%;min-height:46px;white-space:normal}.delivery-task-actions .checkline{min-height:42px}.delivery-step-strip{overflow-x:auto;justify-content:flex-start;white-space:nowrap}.checkout-grid{gap:12px}.checkout-grid>.panel{padding:14px}.form-grid{gap:12px}.field input,.field select,.field textarea{font-size:16px;min-height:46px}.radio-card{min-height:68px}.qty button,.qty input{min-width:42px;min-height:42px}.cart-float{left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));width:auto;justify-content:center}.modal-backdrop{align-items:flex-start;overflow-y:auto;padding:12px}.modal{width:100%;max-width:100%;max-height:calc(100dvh - 24px);overflow-y:auto;padding:17px}.detail-actions{flex-wrap:wrap}.detail-actions>button{min-height:44px}.customer-credit-ledger{padding:12px}.customer-credit-row{grid-template-columns:1fr 1fr;gap:10px}.customer-credit-row>div:last-child{grid-column:1/-1}.admin-head{gap:10px;flex-wrap:wrap}.admin-head>.inline{width:100%;flex-wrap:wrap}.admin-head>.inline button{flex:1}}
@media(max-width:390px){.products{gap:8px}.product-info{padding:10px}.product-order-controls{gap:6px}.product-order-controls .qty button{min-width:34px}.product-order-controls .add-cart-btn{padding:8px 5px;font-size:10px}.section-title{font-size:19px}.metrics{gap:8px}.metric{padding:10px}.metric strong{font-size:17px}}
@media(max-width:650px){.city-select select{font-size:13px!important;min-height:40px;padding:8px 10px}.product-prices{margin:6px 0 9px}.product-prices .currency-pair{font-size:12px;gap:2px;line-height:1.25}.product-order-controls{display:grid;grid-template-columns:1fr;gap:16px;justify-content:stretch}.product-qty{justify-content:center;gap:5px}.product-order-controls .add-cart-btn{margin-top:2px}.product-qty button{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;padding:0;font-size:15px}.product-qty-input{width:44px;min-width:44px!important;min-height:30px!important;padding:2px;font-size:14px!important}.product-order-controls .add-cart-btn{display:block;width:100%;min-height:36px;padding:8px 6px;font-size:11px;white-space:nowrap}}
@media(max-width:650px){.checkout-grid>aside .cart-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 10px;padding:12px 0}.checkout-grid>aside .cart-row>div:first-child{grid-column:1;grid-row:1;min-width:0}.checkout-grid>aside .cart-row>.qty{grid-column:1;grid-row:2;justify-self:start;gap:7px}.checkout-grid>aside .cart-row>b:last-child{grid-column:2;grid-row:1/3;justify-self:end;align-self:center;text-align:right}.checkout-grid>aside .cart-row .muted{font-size:10px}.payment-info-panel{display:block;position:static;clear:both;width:100%;margin:12px 0 0;grid-column:1/-1}.radio-row+.payment-info-panel{margin-top:12px}}
@media(max-width:650px){#proof-wrap{padding:10px}#proof-wrap .field{gap:5px}#proof-wrap .field span{font-size:11px;line-height:1.45}#proof-wrap input[type="file"]{font-size:11px!important;min-height:36px;padding:5px 7px}#proof-wrap img{max-height:120px;margin-top:7px}}
@media(max-width:650px){.city-select select,.city-select option{font-size:12px!important}.track-box input::placeholder,#phone-orders-form input::placeholder,#track-form input::placeholder{font-size:11px!important}}
.city-select .store-picker{position:relative;z-index:6;width:100%}.store-picker-button{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:40px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font-size:12px!important;text-align:left}.store-picker-button>span:first-child{font-size:12px!important;line-height:1.3}.store-picker-arrow{flex:0 0 auto;color:#718076;font-size:12px}.store-picker-options{position:absolute;z-index:30;top:calc(100% + 4px);left:0;right:0;max-height:260px;overflow-y:auto;padding:4px;border:1px solid #dfe6dc;border-radius:10px;background:#fff;box-shadow:0 10px 26px #20362d20}.store-picker-options[hidden]{display:none}.store-picker-options>button{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:9px 8px;border:0;border-radius:6px;background:#fff;color:var(--ink);font-size:12px!important;text-align:left}.store-picker-options>button b,.store-picker-options>button small{font-size:12px!important;font-weight:500;white-space:nowrap}.store-picker-options>button.active,.store-picker-options>button:hover{background:#eef4e9;color:var(--green)}
@media(max-width:650px){.side-nav{background:#eef3eb;border:1px solid #dce6d9;border-radius:13px;padding:7px;gap:5px;box-shadow:0 3px 12px #233c2c0a}.side-nav button{color:#455b4b;background:transparent;border:1px solid transparent;border-radius:9px;padding:10px 13px;font-size:13px;font-weight:600;line-height:1.2;transition:background-color .15s,color .15s}.side-nav button.active{background:#173d34;color:#fff;border-color:#173d34;box-shadow:0 2px 7px #173d3430}.side-nav button:hover:not(.active){background:#fff;color:#173d34;border-color:#dce6d9}.side-nav button[data-action="logout"]{color:#805c55!important;background:#fff8f5;border:1px solid #eadbd6}.side-nav button[data-action="logout"]:hover{background:#f8e9e4;color:#67443e!important}}

/* Typography pass: improve legibility across the customer, admin and driver portals. */
body{font-size:14px;line-height:1.5}
.field label,.filters .field label{font-size:12px}
.data-table th{font-size:11px}
.data-table td{font-size:12px;line-height:1.45}
.pill{font-size:10px}
.table-action{font-size:11px}
.detail-box label,.admin-head p,.muted,.checkline{font-size:12px}
.metric span,.metric small,.own-order-row small,.customer-message-meta,.customer-credit-row small{font-size:11px}
.delivery-step-strip{font-size:11px}
.product-info p{font-size:12px;min-height:39px}
.stock{font-size:10px}
.price-cny small,.cart-cny{font-size:10px}
.driver-decline-quiet,.customer-delete-action{font-size:10px}
@media(max-width:850px){.nav-link{font-size:13px}.page{padding-top:28px}.hero h1{font-size:32px}}
@media(max-width:650px){
  body{font-size:14px}
  .brand small{font-size:9px}
  .hero h1{font-size:27px;line-height:1.35}
  .hero p,.section-sub{font-size:13px;line-height:1.55}
  .section-title{font-size:20px}
  .field label,.filters .field label{font-size:12px}
  .product-head h3{font-size:14px;line-height:1.4}
  .product-info p{font-size:11px;line-height:1.55;min-height:42px}
  .stock{font-size:10px}
  .add-cart-btn{font-size:12px}
  .data-table th{font-size:11px}
  .data-table td{font-size:12px}
  .delivery-step-strip{font-size:11px}
  .muted,.checkline,.customer-message-meta{font-size:12px}
  .metric span,.metric small{font-size:11px}
  .track-box input::placeholder,#phone-orders-form input::placeholder,#track-form input::placeholder{font-size:12px!important}
  #proof-wrap .field span{font-size:12px}
  #proof-wrap input[type="file"]{font-size:12px!important}
  .cart-clear-btn{font-size:11px}
}
/* Keep placeholder hints consistent across all portals and screen sizes. */
input::placeholder,textarea::placeholder{font-size:12px!important}

/* Give action controls clearer separation and larger hit areas. */
.primary,.secondary,.danger,.admin-head button,.inline button,.detail-actions button,.ledger-filter-buttons button{min-height:40px;padding:10px 14px}
.table-action{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 10px;margin:2px 3px;border-radius:8px;line-height:1.35;white-space:normal}
.customer-row-actions{gap:12px}
.customer-row-actions .customer-edit-action,.customer-row-actions .customer-delete-action{min-height:38px;padding:8px 10px}
.inline,.detail-actions,.ledger-filter-buttons,.delivery-task-actions{gap:12px}
.delivery-task-actions button,.delivery-task-actions .primary,.delivery-task-actions .secondary{min-height:48px;padding:11px 15px}
button:focus-visible,[role="button"]:focus-visible{outline:3px solid #8dad75;outline-offset:2px}
@media(max-width:650px){
  .primary,.secondary,.danger,.admin-head button,.inline button,.detail-actions button,.ledger-filter-buttons button{min-height:44px;padding:11px 14px}
  .table-action{min-height:40px;padding:9px 11px;margin:3px}
  .customer-row-actions .customer-edit-action,.customer-row-actions .customer-delete-action{min-height:40px;padding:9px 11px}
  .detail-actions,.inline,.ledger-filter-buttons,.delivery-task-actions{gap:12px}
  .delivery-task-actions button,.delivery-task-actions .primary,.delivery-task-actions .secondary{min-height:48px}
}
.add-cart-btn{min-height:42px;padding:10px 14px}
@media(max-width:650px){
  .product-order-controls{gap:18px}
  .product-qty{gap:9px}
  .product-order-controls .product-qty button{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important}
  .product-qty-input{min-height:38px!important}
  .product-order-controls .add-cart-btn{min-height:44px;padding:10px 8px;font-size:12px}
}
@media(max-width:390px){
  .product-order-controls{gap:14px}
  .product-qty{gap:6px}
  .product-order-controls .product-qty button{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important}
  .product-qty-input{width:40px;min-width:40px!important;min-height:34px!important}
}
.product-order-controls .add-cart-btn{min-height:42px}
.data-table button[data-action="detail"]{display:inline-flex;align-items:center;justify-content:center;width:max-content;min-width:max-content;min-height:42px;padding:10px 14px;font-size:13px;font-weight:700;white-space:nowrap;line-height:1.25}
@media(max-width:650px){.data-table button[data-action="detail"]{min-height:44px;padding:11px 15px;font-size:13px}}
.admin-main .table-action,.admin-main .customer-delete-action{font-size:13px}

.address-input-row{display:flex;align-items:stretch;gap:8px}.address-input-row input{flex:1;min-width:0}.address-locate-btn{flex:0 0 auto;white-space:nowrap;padding:10px 12px;font-size:12px}.address-locate-btn:disabled{opacity:.65;cursor:wait}.address-location-status{display:block;min-height:16px;margin-top:5px;color:var(--muted);font-size:11px;line-height:1.45}@media(max-width:520px){.address-input-row{gap:6px}.address-locate-btn{padding:8px 9px;font-size:11px}}
