/* SULIT LAUNDRY — clean white + green */
:root{
  --bg:#f5f7f6; --surface:#ffffff; --surface-2:#f6f9f7; --line:#e8eeea; --line-2:#dbe4de;
  --fg:#1b2a21; --fg-2:#3d4c43; --muted:#6b7a71; --brand:#1e9e47; --brand-strong:#14833a; --brand-soft:#e9f7ee; --brand-tint:#d9f2e1;
  --navy:#15385c; --blue:#2f7fe0; --blue-soft:#e8f1fd; --amber:#f39c12; --amber-soft:#fff4e0;
  --red:#e0463a; --red-soft:#fdecea; --violet:#7c5ce0; --violet-soft:#f1edfd; --yellow:#f5c518;
  --shadow:0 1px 2px rgba(27,42,33,.04),0 8px 24px rgba(27,42,33,.06);
  --shadow-sm:0 1px 2px rgba(27,42,33,.05),0 2px 8px rgba(27,42,33,.04);
  --display:"Poppins","Segoe UI",system-ui,sans-serif;
  --body:"Figtree",system-ui,-apple-system,"Segoe UI",sans-serif;
  color-scheme:light;
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--fg);font-family:var(--body);font-size:14px;line-height:1.45;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
a{color:var(--brand-strong)}
:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
[hidden]{display:none!important}
.num{font-variant-numeric:tabular-nums}
h1,h2,h3{font-family:var(--display);font-weight:600;margin:0;text-wrap:balance;letter-spacing:-.01em}
h2{font-size:22px} h3{font-size:16px}
.muted{color:var(--muted)} .small{font-size:12px} .bold{font-weight:700}
.row{display:flex;align-items:center;gap:10px} .wrap{flex-wrap:wrap} .between{justify-content:space-between} .end{justify-content:flex-end}
.stack{display:flex;flex-direction:column;gap:12px} .grow{flex:1;min-width:0}
.mt{margin-top:14px} .mb{margin-bottom:14px}

/* buttons & inputs */
.btn{border:0;border-radius:10px;padding:10px 16px;font-weight:700;background:var(--brand);color:#fff;box-shadow:0 2px 6px rgba(30,158,71,.25);display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;text-decoration:none}
.btn:hover{background:var(--brand-strong)}
.btn.ghost{background:var(--surface);color:var(--fg);border:1px solid var(--line-2);box-shadow:none}
.btn.ghost:hover{background:var(--surface-2)}
.btn.danger{background:var(--red);box-shadow:none}
.btn.blue{background:var(--blue);box-shadow:none}
.btn.sm{padding:6px 11px;font-size:12px;border-radius:8px}
.btn.block{width:100%}
.btn:disabled{opacity:.45;cursor:not-allowed}
.icon-btn{background:var(--surface);border:1px solid var(--line-2);border-radius:8px;padding:5px 10px;font-size:12px;font-weight:600;white-space:nowrap}
.icon-btn:hover{background:var(--surface-2)}
.icon-btn.del{color:var(--red)}
.linkbtn{background:none;border:0;color:var(--brand-strong);font-weight:600;padding:0;text-decoration:underline;text-underline-offset:2px}
label.f{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:600;color:var(--fg-2)}
.input{border:1px solid var(--line-2);background:var(--surface);border-radius:10px;padding:9px 11px;font-size:14px;width:100%;min-width:0}
.input:focus{border-color:var(--brand);outline:none;box-shadow:0 0 0 3px var(--brand-soft)}
textarea.input{resize:vertical;min-height:70px}
.check{display:flex;align-items:center;gap:8px;font-weight:600;font-size:13px}
.check input{width:18px;height:18px;accent-color:var(--brand)}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.form-grid .full{grid-column:1/-1}

/* cards, pills, chips */
.card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:16px;box-shadow:var(--shadow-sm)}
.pill{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border-radius:999px;font-size:11.5px;font-weight:700;white-space:nowrap}
.pill::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.pill.plain::before{display:none}
.s-Booked{background:var(--violet-soft);color:var(--violet)}
.s-Received{background:#eef1f4;color:#4a5a6a}
.s-Washing{background:var(--blue-soft);color:var(--blue)}
.s-Drying{background:var(--amber-soft);color:#c47a00}
.s-Folding{background:#fff8d6;color:#a07d00}
.s-Ready{background:#dff5e6;color:var(--brand-strong)}
.s-Released{background:var(--brand-soft);color:var(--brand-strong)}
.s-Cancelled{background:var(--red-soft);color:var(--red)}
.pay-paid{background:var(--brand-soft);color:var(--brand-strong)}
.pay-part{background:var(--amber-soft);color:#c47a00}
.pay-unpaid{background:var(--red-soft);color:var(--red)}
.chips{display:flex;gap:6px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}
.chip{border:1px solid var(--line-2);background:var(--surface);border-radius:999px;padding:6px 12px;font-size:12px;font-weight:600;white-space:nowrap;color:var(--fg-2)}
.chip[aria-pressed="true"]{background:var(--brand);border-color:var(--brand);color:#fff}
.empty{text-align:center;color:var(--muted);padding:36px 16px}
.empty b{display:block;color:var(--fg);font-size:15px;margin-bottom:4px}
.loading{color:var(--muted);padding:30px;text-align:center}
.alert{border-radius:12px;padding:10px 14px;font-weight:600;font-size:13px}
.alert.warn{background:var(--amber-soft);color:#9a5b00}
.alert.err{background:var(--red-soft);color:var(--red)}
.alert.ok{background:var(--brand-soft);color:var(--brand-strong)}

/* brand */
.logo-mark{width:40px;height:40px;border-radius:12px;background:linear-gradient(145deg,#2fbf5a,var(--brand-strong));color:#fff;display:grid;place-items:center;font-family:var(--display);font-weight:700;font-size:23px;box-shadow:0 4px 10px rgba(30,158,71,.3);flex:none}
.wordmark{font-family:var(--display);font-weight:700;font-size:19px;color:var(--brand);line-height:1;letter-spacing:.01em}
.wordmark span{color:var(--navy)}
.avatar{width:38px;height:38px;border-radius:50%;background:var(--brand-soft);color:var(--brand-strong);display:grid;place-items:center;font-weight:800;font-size:13px;flex:none;border:2px solid #fff;box-shadow:var(--shadow-sm)}

.logo-img{width:40px;height:40px;flex:none;display:block;object-fit:contain}
.side .brand .logo-img{width:36px;height:36px}
.login-logo{display:block;width:200px;max-width:70%;height:auto;margin-bottom:22px}
.login-art .logo-img{width:46px;height:46px;filter:drop-shadow(0 4px 10px rgba(0,0,0,.18))}
/* ===== login ===== */
.login{min-height:100vh;min-height:100dvh;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.login-art{background:linear-gradient(150deg,#25ad50,var(--brand-strong));color:#fff;padding:48px;display:flex;flex-direction:column;justify-content:space-between;gap:24px}
.login-art h1{font-size:40px;line-height:1.1;max-width:13ch}
.login-art p{font-size:16px;opacity:.92;max-width:40ch}
.login-art .wordmark{color:#fff;font-size:22px} .login-art .wordmark span{color:#d6f5e0}
.login-art .logo-mark{background:#fff;color:var(--brand)}
.login-art ul{list-style:none;padding:0;margin:0;display:grid;gap:10px;font-weight:600}
.login-art li::before{content:"✓";display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:rgba(255,255,255,.2);margin-right:10px;font-size:12px}
.login-form{display:grid;place-items:center;padding-block:32px;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
.login-box{width:100%;max-width:400px}
.seg{display:grid;grid-template-columns:1fr 1fr;background:var(--surface-2);border:1px solid var(--line);border-radius:12px;padding:4px;margin:18px 0}
.seg button{border:0;background:none;border-radius:9px;padding:9px;font-weight:700;color:var(--muted)}
.seg button[aria-pressed="true"]{background:var(--surface);color:var(--brand-strong);box-shadow:var(--shadow-sm)}

/* ===== shop app shell (owner / staff / rider / platform) ===== */
.shell{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:100%}
.side{background:var(--surface);border-right:1px solid var(--line);padding:18px 12px;display:flex;flex-direction:column;gap:2px;position:sticky;top:0;height:100vh;overflow-y:auto}
.side .brand{display:flex;align-items:center;gap:10px;padding:0 8px 18px}
.side .brand .logo-mark{width:34px;height:34px;font-size:19px;border-radius:10px}
.side .brand .wordmark{font-size:17px;white-space:nowrap}
.side .nav-label{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);padding:12px 12px 4px}
.side a{display:flex;align-items:center;gap:12px;text-decoration:none;padding:10px 12px;border-radius:12px;font-weight:600;color:var(--fg-2)}
.side a svg{width:18px;height:18px;flex:none;color:var(--muted)}
.side a:hover{background:var(--surface-2)}
.side a[aria-current="page"]{background:var(--brand-soft);color:var(--brand-strong)}
.side a[aria-current="page"] svg{color:var(--brand)}
.side a .count{margin-left:auto;background:var(--red);color:#fff;border-radius:999px;font-size:11px;padding:1px 7px}
.side .who{margin-top:auto;padding:12px;border-top:1px solid var(--line);display:flex;align-items:center;gap:10px}
.main{min-width:0;padding-block:20px 40px;padding-left:max(24px,env(safe-area-inset-left,0px));padding-right:max(24px,env(safe-area-inset-right,0px))}
.topbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:18px}
.topbar h2{margin-right:auto}
.selchip{border:1px solid var(--line);background:var(--surface);border-radius:10px;padding:8px 12px;font-weight:600;font-size:13px;box-shadow:var(--shadow-sm)}
.bottomnav{display:none}

/* dashboard */
.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:14px}
.kpi{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:16px;display:flex;gap:14px;align-items:center;box-shadow:var(--shadow-sm);text-align:left}
button.kpi:hover{border-color:var(--brand)}
.kpi .k-ic{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;flex:none;color:#fff}
.kpi .k-ic svg{width:22px;height:22px}
.kpi b{font-size:23px;font-family:var(--display);font-weight:600;display:block;line-height:1.2}
.kpi .sub{font-size:12px;color:var(--muted)} .kpi .up{color:var(--brand-strong);font-weight:600} .kpi .down{color:var(--red);font-weight:600}
.grid2{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:14px}
.grid2.even{grid-template-columns:repeat(2,minmax(0,1fr))}
.legend{display:flex;flex-direction:column;gap:7px;font-size:13px}
.legend .li{display:flex;align-items:center;gap:8px}
.legend .sw{width:9px;height:9px;border-radius:50%}
.legend .li span:last-child{margin-left:auto;font-weight:700}

/* tables */
.tbl-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:var(--shadow-sm)}
table{width:100%;border-collapse:collapse;font-size:13px}
th{text-align:left;font-size:12px;font-weight:600;color:var(--fg-2);background:var(--surface-2);padding:10px 12px;white-space:nowrap}
td{padding:10px 12px;border-top:1px solid var(--line);white-space:nowrap;vertical-align:middle}
td.wrap-cell{white-space:normal;min-width:180px}
td.r,th.r{text-align:right}
tr.click{cursor:pointer} tr.click:hover td{background:var(--surface-2)}

/* tasks */
.task-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px}
.task{display:flex;gap:12px;align-items:flex-start}
.washer{width:46px;height:46px;border-radius:12px;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center;flex:none}
.washer svg{width:28px;height:28px}
.due-late{color:var(--red);font-weight:700}

/* POS */
.pos{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:14px}
.svc-pick{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px}
.svc{border:1px solid var(--line);background:var(--surface);border-radius:14px;padding:14px 6px 12px;text-align:center;font-size:12px;font-weight:600;display:flex;flex-direction:column;align-items:center;gap:6px;box-shadow:var(--shadow-sm)}
.svc:hover{border-color:var(--brand)}
.svc[aria-pressed="true"]{border-color:var(--brand);background:var(--brand-soft)}
.svc .ic{width:40px;height:40px;color:var(--blue);display:grid;place-items:center}
.svc .ic svg{width:34px;height:34px}
.svc small{color:var(--muted);font-weight:500}
.line-item{display:grid;grid-template-columns:minmax(0,1fr) 90px 90px 32px;gap:8px;align-items:center}
.paybtns{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.paybtns button{padding:10px 4px;border-radius:10px;border:1px solid var(--line-2);background:var(--surface);font-weight:700}
.paybtns button[aria-pressed="true"]{background:var(--brand);color:#fff;border-color:var(--brand)}
.stub{border:1px dashed var(--muted);border-radius:12px;padding:16px;font-size:13px;background:var(--surface)}
.stub .big{font-family:var(--display);font-size:30px;font-weight:700;letter-spacing:.04em}

/* order detail */
.timeline{display:flex;flex-direction:column}
.timeline .t{display:flex;gap:12px;position:relative;padding-bottom:12px}
.timeline .t:not(:last-child)::after{content:"";position:absolute;left:9px;top:20px;bottom:0;width:2px;background:var(--line-2)}
.timeline .t.done:not(:last-child)::after{background:var(--brand)}
.timeline .dot{width:20px;height:20px;border-radius:50%;border:2px solid var(--line-2);background:var(--surface);flex:none}
.timeline .t.done .dot{background:var(--brand);border-color:var(--brand)}
.timeline .t.now .dot{box-shadow:0 0 0 4px var(--brand-soft)}
.kv{display:flex;flex-direction:column;gap:6px}
.kv>div{display:flex;justify-content:space-between;gap:12px}
.kv>div>span:first-child{color:var(--muted)}
.lane-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.lane{background:var(--surface-2);border:1px solid var(--line);border-radius:16px;padding:12px;display:flex;flex-direction:column;gap:10px}

/* modal & drawer & toast */
.overlay{position:fixed;inset:0;background:rgba(10,20,14,.45);display:grid;place-items:center;z-index:50;padding:16px;overflow-y:auto}
.modal{background:var(--surface);border-radius:18px;padding:22px;max-width:440px;width:100%;box-shadow:0 20px 50px rgba(0,0,0,.2);max-height:calc(100vh - 32px);overflow-y:auto}
.modal.wide{max-width:640px}
.modal h3{font-size:19px;margin-bottom:8px}
.modal .sum{background:var(--surface-2);border-radius:12px;padding:10px 12px;margin:12px 0;font-size:13px}
.modal .sum div{display:flex;justify-content:space-between;gap:12px;padding:3px 0}
.modal .sum div b{text-align:right}
.modal .actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px;flex-wrap:wrap}
.toasts{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(20px + env(safe-area-inset-bottom,0px));z-index:60;display:flex;flex-direction:column;gap:6px;align-items:center;pointer-events:none;width:max-content;max-width:calc(100vw - 32px)}
.toast{background:var(--brand-strong);color:#fff;padding:10px 16px;border-radius:10px;font-weight:600;box-shadow:var(--shadow)}
.toast.err{background:var(--red)}

/* ===== customer app ===== */
.capp{max-width:480px;margin:0 auto;min-height:100%;background:var(--surface);display:flex;flex-direction:column;box-shadow:var(--shadow)}
.cbody{flex:1;padding-block:18px 90px;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
.cbody.tint{background:linear-gradient(180deg,var(--brand-tint) 0,#f1faf4 170px,var(--surface) 320px)}
.ctab{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:480px;display:flex;border-top:1px solid var(--line);background:var(--surface);box-shadow:0 -4px 14px rgba(27,42,33,.05);padding-bottom:env(safe-area-inset-bottom,0px);z-index:20}
.ctab a{flex:1;text-decoration:none;padding:9px 4px 11px;font-size:11px;color:var(--muted);display:flex;flex-direction:column;align-items:center;gap:3px}
.ctab a[aria-current="page"]{color:var(--brand);font-weight:700}
.ctab svg{width:21px;height:21px}
.hello{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.hero-cta{width:100%;text-align:left;border:0;border-radius:18px;padding:18px 16px;background:linear-gradient(120deg,#25ad50,var(--brand-strong));color:#fff;display:flex;align-items:center;gap:12px;box-shadow:0 8px 18px rgba(30,158,71,.28);text-decoration:none}
.hero-cta b{font-family:var(--display);font-weight:600;font-size:17px;display:block}
.hero-cta .go{width:30px;height:30px;border-radius:50%;background:#fff;color:var(--brand);display:grid;place-items:center;font-weight:700;font-size:18px;flex:none}
.hero-cta svg{width:30px;height:30px;flex:none}
.svc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.promo{border-radius:16px;padding:16px;background:linear-gradient(110deg,var(--brand-tint),#f0faf3);color:var(--brand-strong);font-weight:600;display:flex;align-items:center;gap:12px}
.promo b{display:block;font-family:var(--display);font-size:15px}
.promo svg{width:30px;height:30px}
.steps{display:flex;align-items:center;margin:4px 0 6px}
.steps .dot{width:22px;height:22px;border-radius:50%;border:2px solid var(--line-2);display:grid;place-items:center;font-size:11px;font-weight:700;color:var(--muted);background:var(--surface);flex:none}
.steps .dot.on{background:var(--brand);border-color:var(--brand);color:#fff}
.steps .bar{flex:1;height:2px;background:var(--line-2)}
.steps .bar.on{background:var(--brand)}
.steplbl{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin-bottom:16px}
.qty{display:flex;align-items:center;border:1px solid var(--line-2);border-radius:10px;overflow:hidden}
.qty button{border:0;background:var(--surface-2);width:38px;height:38px;font-size:18px;font-weight:700}
.qty input{border:0;width:64px;text-align:center;font-weight:700;padding:8px 0}
.bell{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;color:var(--fg);background:none;border:0}
.bell svg{width:22px;height:22px}

/* responsive */
@media (max-width:1100px){.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:900px){
  .shell{grid-template-columns:1fr}
  .side{display:none}
  .main{padding-block:14px 96px;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
  .bottomnav{display:flex;position:fixed;bottom:0;left:0;right:0;background:var(--surface);border-top:1px solid var(--line);z-index:20;overflow-x:auto;padding-bottom:env(safe-area-inset-bottom,0px);padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px);box-shadow:0 -4px 14px rgba(27,42,33,.05)}
  .bottomnav a{flex:1 0 64px;text-decoration:none;padding:8px 4px 10px;font-size:10.5px;color:var(--muted);display:flex;flex-direction:column;align-items:center;gap:3px;white-space:nowrap}
  .bottomnav a svg{width:20px;height:20px}
  .bottomnav a[aria-current="page"]{color:var(--brand);font-weight:700}
  .grid2,.grid2.even,.pos,.lane-grid{grid-template-columns:1fr}
  .login{grid-template-columns:1fr}
  .login-art{padding:28px 20px}
  .login-art h1{font-size:28px}
  .login-art ul{display:none}
}
@media (max-width:520px){
  .kpis{gap:10px}
  .kpi{flex-direction:column;align-items:flex-start;gap:8px;padding:14px}
  .kpi .k-ic{width:38px;height:38px;border-radius:12px}
  .kpi b{font-size:20px}
  .topbar .selchip,.topbar>.row:last-child{display:none}
  .form-grid{grid-template-columns:1fr}
  .line-item{grid-template-columns:minmax(0,1fr) 72px 30px}
  .line-item .amt{display:none}
  .paybtns{grid-template-columns:repeat(2,1fr)}
  .capp{box-shadow:none}
}
@media (prefers-reduced-motion:no-preference){.btn,.chip,.side a{transition:background .15s,color .15s}}
