:root{--blue:#0759d7;--dark:#10213d;--ink:#172033;--muted:#6b7890;--line:#e2e8f2;--bg:#f3f6fb;--green:#138a55;--red:#c43d4d;--shadow:0 14px 35px rgba(31,57,103,.09);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:var(--bg)}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}.loading{min-height:100vh;display:grid;place-content:center;text-align:center;gap:10px}.drop,.logo-mark{display:grid;place-items:center;background:var(--blue);color:#fff;font-weight:800}.drop{width:62px;height:62px;margin:auto;border-radius:19px 19px 28px 28px;font-size:28px}.loading b{font-size:25px}.loading small,.muted{color:var(--muted)}.signin{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at top right,#cfe1ff,transparent 42%),linear-gradient(145deg,#f8fbff,#eef4ff)}.signin-card{width:min(100%,430px);padding:34px;background:#fff;border:1px solid var(--line);border-radius:28px;box-shadow:var(--shadow)}.logo{display:flex;align-items:center;gap:12px;font-size:25px;font-weight:800}.logo-mark{width:45px;height:45px;border-radius:14px 14px 21px 21px}.signin h1{font-size:30px;line-height:1.12;margin:34px 0 12px}.signin p{line-height:1.55;color:var(--muted)}.primary,.signin a{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:13px;background:var(--blue);color:#fff;text-decoration:none;padding:13px 18px;font-weight:700;min-height:46px}.signin a{width:100%;margin-top:18px}.signin small{display:block;margin-top:18px;color:var(--muted);line-height:1.45}.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px max(18px,calc((100vw - 1280px)/2));background:rgba(255,255,255,.95);border-bottom:1px solid var(--line);backdrop-filter:blur(16px)}.brand{display:flex;align-items:center;gap:10px;font-size:21px;font-weight:800}.brand small{display:block;font-size:11px;color:var(--muted);letter-spacing:.06em}.account{display:flex;align-items:center;gap:12px}.account span{text-align:right}.account b,.account small{display:block}.account small{color:var(--muted);font-size:12px}.account a{color:var(--muted);font-size:14px}.page{width:min(1280px,100%);margin:auto;padding:24px 18px 100px}.hero-row{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:8px 0 22px}.hero-row h1{font-size:30px;margin:3px 0}.eyebrow{font-size:12px;letter-spacing:.1em;font-weight:800;color:var(--blue)}.tabs{display:flex;gap:7px;overflow:auto;padding-bottom:4px}.tabs button{white-space:nowrap;border:1px solid var(--line);background:#fff;color:var(--muted);padding:10px 14px;border-radius:12px;font-weight:700}.tabs button.active{background:var(--dark);border-color:var(--dark);color:#fff}.grid{display:grid;gap:16px}.stats{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:16px}.stat,.card{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 6px 22px rgba(39,61,105,.05)}.stat{padding:18px}.stat span,.stat b{display:block}.stat span{font-size:13px;color:var(--muted)}.stat b{font-size:25px;margin-top:8px}.card{padding:20px}.card h2,.card h3{margin:0 0 14px}.card-head,.order-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.card-head{margin-bottom:14px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.field{display:grid;gap:7px}.field.full{grid-column:1/-1}.field span{font-size:13px;font-weight:700;color:#46536b}.field input,.field select,.field textarea,.toolbar input,.toolbar select{width:100%;border:1px solid #cfd8e7;background:#fff;border-radius:12px;padding:12px 13px;min-height:46px;color:var(--ink)}.field textarea{min-height:84px;resize:vertical}.actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:16px}.actions button,.secondary,.danger{border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:12px;padding:11px 14px;font-weight:700}.danger{color:var(--red)}.toolbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-bottom:14px}.toolbar>*{max-width:240px}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;min-width:830px}.table th{text-align:left;padding:11px 10px;font-size:12px;color:var(--muted);border-bottom:1px solid var(--line)}.table td{padding:14px 10px;border-bottom:1px solid #edf1f6;vertical-align:top}.table td strong{display:block;margin-bottom:4px}.badge{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;background:#eef3fb;color:#42516b;font-size:12px;font-weight:800}.badge.new{background:#fff0dc;color:#9a5612}.badge.assigned{background:#e3efff;color:#0759d7}.badge.done{background:#def5e8;color:#167447}.badge.cancelled{background:#fbe4e8;color:#a02e42}.order-list{display:grid;gap:12px}.order-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;box-shadow:0 6px 22px rgba(39,61,105,.05)}.order-card h3{margin:4px 0 6px;font-size:19px}.order-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:15px 0}.order-meta div{background:#f5f7fb;border-radius:12px;padding:10px}.order-meta span,.order-meta b{display:block}.order-meta span{font-size:12px;color:var(--muted)}.order-meta b{margin-top:4px}.address{border:1px solid var(--line);border-radius:14px;padding:14px;margin-top:10px}.address .row{display:flex;justify-content:space-between;gap:10px}.empty{text-align:center;padding:38px 18px;color:var(--muted)}.notice{padding:12px 14px;border-radius:12px;background:#e9f2ff;color:#28517f;font-size:14px;margin-bottom:16px}.error{background:#fff0f2;color:#9e3344}.mobile-nav{display:none}dialog{width:min(520px,calc(100% - 28px));border:0;border-radius:20px;padding:0;box-shadow:0 24px 70px rgba(16,33,61,.28)}dialog::backdrop{background:rgba(16,33,61,.44)}.dialog-inner{padding:22px}.dialog-inner h2{margin:0 0 18px}#toast{position:fixed;z-index:100;left:50%;bottom:24px;transform:translateX(-50%) translateY(30px);opacity:0;background:#14233d;color:#fff;border-radius:13px;padding:12px 18px;transition:.2s;pointer-events:none;max-width:calc(100% - 30px);text-align:center}#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
@media(max-width:760px){body{background:#fff}.topbar{padding:12px 16px}.brand small,.account span{display:none}.page{padding:18px 14px 92px}.hero-row{display:block;margin-top:4px}.hero-row h1{font-size:25px}.hero-row .tabs{margin-top:15px}.stats{grid-template-columns:repeat(2,1fr)}.stat{padding:14px}.stat b{font-size:21px}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.card{padding:16px;border-radius:15px;box-shadow:none}.order-meta{grid-template-columns:1fr 1fr}.order-meta div:last-child{grid-column:1/-1}.mobile-nav{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:30;padding:8px 10px calc(8px + env(safe-area-inset-bottom));background:rgba(255,255,255,.97);border-top:1px solid var(--line);justify-content:flex-start;overflow-x:auto;scrollbar-width:none}.mobile-nav::-webkit-scrollbar{display:none}.mobile-nav button{flex:0 0 auto;white-space:nowrap;border:0;background:transparent;color:var(--muted);font-size:12px;font-weight:700;padding:7px 12px}.mobile-nav button.active{color:var(--blue)}.tabs.desktop{display:none}.table{min-width:760px}.signin-card{padding:26px 22px}.toolbar>*{max-width:none;flex:1 1 150px}}

[hidden]{display:none!important}details>summary{cursor:pointer;font-weight:650;padding:12px 0}details[open]>summary{margin-bottom:12px}

/* Client quantity and live total */
#order-form .quantity-price-card{grid-column:1/-1;display:grid;grid-template-columns:minmax(120px,1fr) minmax(150px,1.3fr);gap:18px;align-items:center;padding:20px;border:1px solid #b5deda;border-radius:20px;background:#effaf8;margin:4px 0 10px}#order-form .quantity-price-card .field{margin:0;min-width:0}#order-form .quantity-price-card input{font-size:26px;font-weight:700;min-height:54px;width:100%;background:#fff;border:1px solid #8fc9c3;border-radius:12px}#order-form .quantity-price-card small{display:block;color:#476863;font-size:12px;line-height:1.5;margin-top:6px}#order-form .quantity-price-result{display:flex;flex-direction:column;gap:4px;min-width:0}#order-form .price-caption{font-size:13px;color:#476863}#order-form .price-total{font-size:32px;line-height:1.15;color:#075b54;letter-spacing:-.7px}#order-form .price-calculation{font-size:15px;color:#174e48}@media(max-width:380px){#order-form .quantity-price-card{padding:14px;gap:12px;grid-template-columns:minmax(100px,1fr) minmax(130px,1.2fr)}#order-form .price-total{font-size:28px}}

#order-form .saving-badge{display:block;color:#07634d;background:#d9f3e7;padding:8px 10px;border-radius:10px;font-size:13px;font-weight:600;line-height:1.4;margin-top:8px}#order-form .saving-tip{display:block;font-size:14px;color:#075b54;margin-top:6px;line-height:1.4}#order-form .return-stepper{display:flex;align-items:center;gap:8px}#order-form .return-stepper button{flex:0 0 48px;min-height:48px;border-radius:12px;border:1px solid #b5deda;background:#effaf8;color:#075b54;font-size:26px;padding:4px}#order-form .return-stepper input{min-width:0;width:100%;text-align:center;font-size:22px;font-weight:600;min-height:48px}#order-form .empty-return small{font-size:12px;color:#64748b}#order-form .empty-return label{font-weight:600}

#order-form .return-stepper,#order-form .return-stepper button,#order-form .return-stepper input{touch-action:manipulation}#order-form .return-stepper button{user-select:none;-webkit-user-select:none}#order-form .return-stepper input{height:56px;padding:8px;font-size:22px;border-radius:12px}#order-form .return-stepper button{height:56px}#order-form .return-stepper input[type=number]{appearance:textfield;-moz-appearance:textfield}#order-form .return-stepper input::-webkit-inner-spin-button,#order-form .return-stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}#order-form .quantity-price-card .field>label{font-weight:600}

#order-form .date-stepper{display:flex;align-items:center;gap:8px}#order-form .date-stepper input{min-width:0;width:100%;height:56px;font-size:18px;padding:8px;text-align:center}#order-form .date-stepper button{flex:0 0 48px;height:56px;font-size:26px;padding:4px}#order-form .date-stepper button,#order-form .date-shortcuts button{border:1px solid #b5deda;border-radius:12px;background:#effaf8;color:#075b54;touch-action:manipulation;user-select:none;-webkit-user-select:none}#order-form .date-shortcuts{display:flex;gap:8px;margin-bottom:8px}#order-form .date-shortcuts button{min-height:44px;padding:8px 12px;font-size:16px}#order-form .date-stepper{touch-action:manipulation}

#order-form .return-stepper{display:grid;grid-template-columns:48px minmax(72px,1fr) 48px;gap:8px;min-width:0}#order-form .return-stepper input{box-sizing:border-box;min-width:72px;width:100%;padding:8px 4px;font-size:22px}#order-form .return-stepper button{width:48px}#order-form .date-wheel-open{min-height:56px;width:100%;font-size:18px;border:1px solid #b5deda;border-radius:12px;background:#effaf8;color:#075b54;touch-action:manipulation}@media(max-width:600px){#order-form .quantity-price-card{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;padding:18px}#order-form .quantity-price-card>.field{width:100%;min-width:0}#order-form .quantity-price-result{min-width:0}}
.delivery-wheel-dialog{width:min(420px,calc(100vw - 24px));box-sizing:border-box;border:0;border-radius:24px;padding:20px;background:#fff;color:#143d39}.delivery-wheel-dialog::backdrop{background:#102a4366}.delivery-wheel-dialog h2{margin:0 0 8px;font-size:22px}.delivery-wheel-dialog p{font-size:14px}.date-wheels,.wheel-labels{display:grid;grid-template-columns:1fr 1.5fr 1fr;gap:4px;text-align:center}.date-wheels{position:relative;background:linear-gradient(to bottom,transparent 88px,#e6f4f1 88px,#e6f4f1 132px,transparent 132px);border-radius:16px}.date-wheel{height:220px;overflow-y:auto;scroll-snap-type:y mandatory;overscroll-behavior:contain;scrollbar-width:none;padding:88px 0;box-sizing:border-box;touch-action:pan-y;mask-image:linear-gradient(transparent,#000 35%,#000 65%,transparent)}.date-wheel::-webkit-scrollbar{display:none}.date-wheel button{display:block;width:100%;height:44px;min-height:44px;padding:0;border:0;background:transparent;color:#738781;font-size:20px;scroll-snap-align:center;touch-action:manipulation;font-variant-numeric:tabular-nums}.date-wheel button.chosen{color:#075b54;font-weight:700}.wheel-actions{display:flex;gap:12px}.wheel-actions button{flex:1;min-height:48px;border-radius:12px;border:0;background:#e6f4f1;color:#075b54;font-size:17px;touch-action:manipulation}.wheel-actions button[data-done]{background:#075b54;color:white}.wheel-actions button:disabled{opacity:.4}.wheel-error{min-height:20px;color:#b42318}

.delivery-wheel-dialog .date-wheel button{margin:0;box-sizing:border-box;line-height:44px;display:block;border-radius:0;max-height:44px}

.delivery-wheel-dialog .date-wheel{padding:0;scroll-behavior:auto}.delivery-wheel-dialog .date-wheel::before,.delivery-wheel-dialog .date-wheel::after{content:"";display:block;height:88px;min-height:88px;pointer-events:none}
