/* KNS CARGO — soft, light look built on the logo colours
   blue  #00639c (logo)  → main colour: links, selections, progress
   red   #b92129 (logo)  → alerts: cancelled, amounts due, delete
   orange #f08a24        → the main action on each screen
   green  #1e9e5a        → success: delivered, paid, WhatsApp */
:root{
  --blue:#00639c; --blue-d:#004d7a; --blue-50:#eaf3f9; --blue-100:#d6e8f4;
  --red:#b92129; --red-d:#9a1a21; --red-50:#fbeeee;
  --orange:#f08a24; --orange-d:#d9720f; --orange-50:#fff4e8;
  --green:#1e9e5a; --green-d:#16804a; --green-50:#e9f6ef; --wa:#1fa855;
  --ink:#1b2a3d; --ink-2:#3c4b5e; --muted:#7a8696; --line:#e9edf2; --bg:#f6f8fb; --card:#fff;
  --r:18px; --shadow:0 1px 2px rgba(16,42,72,.04),0 6px 18px rgba(16,42,72,.05);
  font-family:"IBM Plex Sans Arabic","Noto Sans Arabic","Segoe UI",Tahoma,system-ui,sans-serif;
}
*{box-sizing:border-box;min-width:0}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-size:15.5px;line-height:1.65;overflow-x:clip}
#app{max-width:560px;margin:0 auto;min-height:100vh;background:var(--bg)}
h1,h2,h3,h4{margin:0;line-height:1.4;font-weight:600}
p{margin:0}
a{color:var(--blue);text-decoration:none}
b,strong{font-weight:600}
button,input,select,textarea{font:inherit;color:inherit}
.ic{width:22px;height:22px;flex:none}
.muted{color:var(--muted);font-size:14px}
.opt{color:var(--muted);font-weight:400;font-size:13px}
.center{text-align:center}
[hidden]{display:none!important}

/* ---------- top bar ---------- */
.top{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:10px;padding:10px 16px;background:rgba(255,255,255,.94);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);min-height:62px}
.top h1{font-size:17px}
.top-space{flex:1}
.top.center-logo{justify-content:center}
.logo{height:30px;width:auto;display:block}
.icon-btn{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:12px;border:0;background:var(--blue-50);color:var(--blue);cursor:pointer}
.icon-btn .ic{width:20px;height:20px}
.icon-btn.wa{background:var(--green-50);color:var(--wa)}
.role-tag{font-size:12.5px;font-weight:600;background:var(--blue-50);color:var(--blue);padding:2px 10px;border-radius:99px}

.page{padding:16px 16px 110px}
.page>*+*{margin-top:14px}
.lead{color:var(--muted)}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:0 20px;border-radius:14px;border:0;background:var(--blue);color:#fff;font-weight:600;font-size:15.5px;cursor:pointer;text-align:center;transition:background .15s,transform .1s}
.btn:active{transform:scale(.985)}
.btn .ic{width:20px;height:20px}
.btn.primary{background:var(--orange);box-shadow:0 6px 16px rgba(240,138,36,.25)}
.btn.primary:active{background:var(--orange-d)}
.btn.ghost{background:#fff;color:var(--blue);border:1px solid var(--blue-100);box-shadow:none}
.btn.wa{background:var(--wa)}
.btn.block{display:flex;width:100%}
.btn:disabled{opacity:.55}
.linkish{background:none;border:0;color:var(--blue);font-weight:600;cursor:pointer;padding:4px}
.linkish.danger{color:var(--red);display:inline-flex;align-items:center;gap:4px;font-size:13.5px}
.linkish.danger .ic{width:16px;height:16px}
.link-center{display:flex;align-items:center;justify-content:center;gap:6px;margin:18px 0;font-weight:600;font-size:14.5px}
.link-center .ic{width:18px;height:18px}

/* ---------- cards & forms ---------- */
.card{display:block;background:var(--card);border-radius:var(--r);padding:16px;box-shadow:var(--shadow);border:1px solid var(--line);color:inherit;width:100%;text-align:inherit;font:inherit}
.card h3{font-size:15.5px;margin-bottom:8px}
.form{display:grid;gap:14px}
.form h2{font-size:19px}
label{display:grid;gap:6px;align-content:start;font-weight:600;font-size:14.5px;color:var(--ink-2)}
.lbl{font-weight:600;font-size:14.5px;color:var(--ink-2);margin-bottom:-6px}
input,select,textarea{width:100%;min-height:50px;padding:12px 14px;border:1px solid #dde3ea;border-radius:13px;background:#fff;font-size:16px;font-weight:400;color:var(--ink);transition:border-color .15s,box-shadow .15s}
input::placeholder,textarea::placeholder{color:#a3adba}
textarea{min-height:auto;resize:vertical}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px rgba(0,99,156,.12)}
input[dir=ltr]{text-align:right}
input[dir=ltr]:not(:placeholder-shown){text-align:left}
.err{display:none;background:var(--red-50);color:var(--red);padding:10px 14px;border-radius:12px;font-weight:600;font-size:14.5px}
.err.show{display:block}
.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.tel{display:flex;direction:ltr;border:1px solid #dde3ea;border-radius:13px;background:#fff;overflow:hidden}
.tel:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px rgba(0,99,156,.12)}
.tel span{display:grid;place-items:center;padding:0 12px;background:#f5f7fa;color:var(--ink-2);font-weight:600;border-inline-end:1px solid #dde3ea;direction:ltr;font-size:15px}
.tel input{border:0;box-shadow:none!important;direction:ltr;text-align:left!important;border-radius:0}

/* ---------- soft hero (home / register / staff login) ---------- */
.hero3{position:relative;overflow:hidden;margin:12px 16px 0;border-radius:24px;padding:20px 18px 16px;
  background:radial-gradient(120% 80% at 100% 0%,#ffffff 0%,rgba(255,255,255,0) 60%),linear-gradient(160deg,#eef5fb 0%,#e3eff8 55%,#fdf1e4 100%);border:1px solid #e3ecf4}
.hero3 .hello{color:var(--blue);font-weight:600;font-size:14px;margin-bottom:2px}
.hero3 h1{font-size:22px;line-height:1.45;color:#0e3557;font-weight:600;text-wrap:balance}
.hero3 p.sub{color:var(--ink-2);font-size:14.5px;margin-top:4px}
.route{display:block;width:100%;max-width:320px;height:auto;margin:6px auto 6px}
.track3{display:flex;align-items:center;gap:6px;background:#fff;border-radius:15px;padding:5px;border:1px solid #e1e9f1;box-shadow:0 4px 14px rgba(0,60,110,.06)}
.track3 .ic{width:20px;height:20px;color:#9aa6b5;margin-inline-start:8px}
.track3 input{border:0;min-height:44px;padding:0 4px;box-shadow:none!important}
.track3 .btn{min-height:44px;padding:0 18px;border-radius:11px}

/* ---------- home ---------- */
.home3{padding-top:16px}
.home3>*+*{margin-top:22px}
.cta3{display:flex;align-items:center;gap:14px;padding:16px;border-radius:20px;color:#fff;min-height:84px;
  background:linear-gradient(120deg,#f59b3e 0%,#f08a24 55%,#ea7a14 100%);box-shadow:0 10px 22px rgba(240,138,36,.25)}
.cta3-ic{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;background:rgba(255,255,255,.2);flex:none}
.cta3-ic .ic{width:28px;height:28px}
.cta3 span:nth-child(2){display:grid;flex:1}
.cta3 b{font-size:18px}
.cta3 small{font-size:13.5px;color:rgba(255,255,255,.9)}
.cta3>.ic{width:20px;height:20px;opacity:.85}
.tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px!important}
.tiles a{display:grid;justify-items:center;gap:8px;padding:14px 6px 12px;background:#fff;border:1px solid var(--line);border-radius:18px;color:var(--ink);box-shadow:var(--shadow);text-align:center}
.tiles b{font-size:14px}
.tile-ic{display:grid;place-items:center;width:46px;height:46px;border-radius:15px}
.tile-ic .ic{width:22px;height:22px}
.t-blue{background:var(--blue-50);color:var(--blue)}
.t-green{background:var(--green-50);color:var(--green)}
.t-red{background:var(--red-50);color:var(--red)}
.t-orange{background:var(--orange-50);color:var(--orange-d)}
.sec-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:10px}
.sec-head h2{font-size:16.5px;color:var(--ink)}
.sec-head a{font-size:13px;font-weight:600}
.last{display:grid;gap:8px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px 16px;color:var(--ink);box-shadow:var(--shadow)}
.last b[dir=ltr]{font-size:15.5px}
.rates3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}
.rates3 div{display:grid;justify-items:center;text-align:center;gap:2px;padding:14px 6px}
.rates3 div+div{border-inline-start:1px solid var(--line)}
.rates3 .tile-ic{width:38px;height:38px;border-radius:12px;margin-bottom:4px}
.rates3 .tile-ic .ic{width:19px;height:19px}
.rates3 b{font-size:15px;white-space:nowrap}
.rates3 small{font-size:11.5px;color:var(--muted);line-height:1.4}
.steps3{list-style:none;margin:0;padding:4px 16px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}
.steps3 li{position:relative;display:flex;align-items:center;gap:12px;padding:12px 0}
.steps3 li:not(:last-child)::after{content:"";position:absolute;right:19px;top:54px;bottom:-10px;border-right:2px dotted #d5dee8}
.steps3 .tile-ic{width:40px;height:40px;border-radius:50%}
.steps3 .tile-ic .ic{width:19px;height:19px}
.steps3 div{display:grid}
.steps3 b{font-size:14.5px}
.steps3 small{font-size:13px;color:var(--muted)}
.faq2{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);overflow:hidden}
.faq2 details+details{border-top:1px solid var(--line)}
.faq2 summary{list-style:none;display:flex;align-items:center;gap:10px;padding:14px 16px;font-weight:500;cursor:pointer;font-size:14.5px}
.faq2 summary::-webkit-details-marker{display:none}
.faq2 summary span{flex:1}
.faq2 summary .ic{width:18px;height:18px;color:#a3adba;transition:transform .2s}
.faq2 details[open] summary{color:var(--blue)}
.faq2 details[open] summary .ic{transform:rotate(180deg);color:var(--blue)}
.faq2 details p{padding:0 16px 14px;color:var(--muted);font-size:14px}
.help3{display:flex;align-items:center;gap:12px;background:var(--green-50);border:1px solid #d3eedf;border-radius:18px;padding:14px 16px}
.help3 div{display:grid;flex:1}
.help3 b{color:#145c37}
.help3 small{color:#3d7a5a;font-size:13px}
.help3 bdi{display:block;text-align:right;white-space:nowrap}
.help3 .btn{min-height:42px;padding:0 16px;font-size:14.5px}
.foot{display:grid;justify-items:center;gap:2px;text-align:center;padding:8px 0 4px;color:var(--muted)}
.foot img{height:24px;width:auto;margin-bottom:6px;mix-blend-mode:multiply}
.foot small{font-size:12px}

/* ---------- register ---------- */
.reg{padding:0 0 40px}
.reg .hero3{padding-bottom:20px}
.reg .lift,.reg .perks,.reg .link-center{margin-inline:16px}
.lift{position:relative;z-index:2;margin-top:14px}
.reg .lift{width:auto}
.reg .card{padding:20px}
.perks{list-style:none;padding:0;margin-top:14px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.perks li{display:grid;justify-items:center;gap:6px;text-align:center;font-size:12.5px;font-weight:500;color:var(--ink-2);background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px 6px}
.perks .tile-ic{width:36px;height:36px;border-radius:12px}
.perks .tile-ic .ic{width:18px;height:18px}

/* ---------- bottom nav ---------- */
.bottom{position:fixed;bottom:0;left:0;right:0;z-index:6;display:flex;max-width:560px;margin:0 auto;background:rgba(255,255,255,.97);backdrop-filter:blur(10px);border-top:1px solid var(--line);padding:6px 8px calc(6px + env(safe-area-inset-bottom))}
.bottom a{flex:1;display:grid;justify-items:center;gap:1px;padding:6px 0;color:#8b96a5;font-size:11.5px;font-weight:500;position:relative;border-radius:12px}
.bottom a .ic{width:21px;height:21px}
.bottom a.on{color:var(--blue);font-weight:600}
.bottom a.on::before{content:"";position:absolute;top:-7px;width:26px;height:3px;border-radius:0 0 3px 3px;background:var(--blue)}
.badge{position:absolute;top:1px;inset-inline-end:calc(50% - 22px);background:var(--orange);color:#fff;font-size:10.5px;min-width:18px;height:18px;border-radius:9px;display:grid;place-items:center;padding:0 4px;font-weight:600}
.sticky-cta{position:sticky;bottom:74px;z-index:4;padding-top:8px}
.page.office .sticky-cta{bottom:12px}

/* ---------- item picker ---------- */
.picker{display:grid;gap:8px}
.group{background:#fff;border:1px solid var(--line);border-radius:15px;overflow:hidden}
.group summary{list-style:none;display:flex;align-items:center;gap:8px;padding:13px 16px;font-weight:600;font-size:15px;cursor:pointer;min-height:52px}
.group summary::-webkit-details-marker{display:none}
.group summary span{flex:1}
.group summary em{font-style:normal;font-size:12.5px;font-weight:600;color:var(--blue);background:var(--blue-50);padding:1px 10px;border-radius:99px}
.group summary em:empty{display:none}
.group summary .ic{transition:transform .2s;color:#a3adba;width:18px;height:18px}
.group[open] summary .ic{transform:rotate(-90deg)}
.item{display:flex;align-items:center;gap:10px;padding:9px 16px;border-top:1px solid var(--line)}
.item.has{background:#f7fbfe}
.item-name{flex:1;display:grid}
.item-name b{font-weight:500}
.item-name small{color:var(--muted);font-size:12.5px}
.step{display:flex;align-items:center;gap:4px}
.step button{width:38px;height:38px;border-radius:12px;border:1px solid var(--blue-100);background:#fff;color:var(--blue);display:grid;place-items:center;cursor:pointer}
.step button .ic{width:18px;height:18px}
.step button[data-act=inc]{background:var(--blue);border-color:var(--blue);color:#fff}
.step button:disabled{opacity:.35}
.step output{min-width:28px;text-align:center;font-weight:600;font-size:16px}
.kg{padding:4px 16px 16px;display:grid;gap:8px}
.kg label{font-size:14px}
.kg small{color:var(--muted);font-size:12.5px}
.kg .btn.ghost{min-height:44px}
.tv-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 40px;gap:8px;align-items:end;padding-bottom:10px;border-bottom:1px dashed var(--line);margin-bottom:4px}
.tv-row label{font-size:13.5px}
.tv-row select{min-height:46px;padding:8px 10px}
.total ul{list-style:none;margin:0 0 10px;padding:0;display:grid;gap:6px}
.total li,.plain li{display:flex;justify-content:space-between;gap:10px;font-size:14.5px}
.total li span,.plain li span{display:grid}
.total li b,.plain li b{white-space:nowrap;font-weight:600}
.total li small,.plain li small{color:var(--muted);font-size:12.5px;font-weight:400}
.sum{display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px dashed #dbe2ea;padding-top:10px}
.sum span{display:grid;font-weight:500;font-size:14px}
.sum span small{color:var(--muted);font-weight:400}
.sum strong{font-size:21px;color:var(--blue);white-space:nowrap;font-weight:600}
.empty-total{color:var(--muted);text-align:center;font-size:14.5px}
.plain{list-style:none;margin:0 0 8px;padding:0;display:grid;gap:6px}

/* ---------- request ---------- */
.block h2{display:flex;align-items:center;gap:10px;font-size:17px;margin-bottom:10px}
.block+.block{margin-top:22px}
.num{width:28px;height:28px;border-radius:50%;background:var(--blue);color:#fff;display:grid;place-items:center;font-size:14px;font-weight:600;flex:none}
.dchips{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 6px;margin:0 -2px;scrollbar-width:none}
.dchip{flex:none;display:block;font-weight:400}
.dchip input,.seg input{position:absolute;opacity:0;width:1px;height:1px;min-height:0}
.dchip span{display:grid;justify-items:center;min-width:80px;padding:8px 10px;border:1px solid #dde3ea;border-radius:14px;cursor:pointer;background:#fff}
.dchip b{font-size:14.5px;font-weight:600}
.dchip small{color:var(--muted);font-size:12px}
.dchip input:checked+span{border-color:var(--blue);background:var(--blue);color:#fff}
.dchip input:checked+span small{color:rgba(255,255,255,.85)}
.dchip input:focus-visible+span,.seg input:focus-visible+span{box-shadow:0 0 0 3px rgba(0,99,156,.25)}
.seg{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.seg label{font-weight:400}
.seg span{display:grid;place-items:center;min-height:46px;border:1px solid #dde3ea;border-radius:12px;font-weight:600;cursor:pointer;background:#fff;color:var(--ink-2)}
.seg input:checked+span{border-color:var(--blue);background:var(--blue-50);color:var(--blue)}
.seg.small span{min-height:46px;font-size:14px}
.parcels{display:grid;gap:14px}
.parcel{display:grid;gap:12px}
.parcel-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.parcel-head h3{display:flex;align-items:center;gap:8px;font-size:16px;margin:0}
.parcel-head .num{width:24px;height:24px;font-size:13px}
.parcel h4{margin:4px 0 0;font-size:15px}
.saved{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.saved .muted{width:100%;font-size:13px}
.saved .fchip{font-size:13px;padding:5px 12px}
.sub-total{background:#f9fbfd;border:1px dashed #dbe2ea;border-radius:13px;padding:12px}
.add-parcel{margin-top:14px;background:#fff;color:var(--blue);border:1.5px dashed var(--blue-100)}
.block>.muted.center{margin-top:6px;font-size:13px}
.grand{background:var(--blue-50);border-color:var(--blue-100)}
.grand .sum{border:0;padding:0}

/* ---------- done ---------- */
.done-page{text-align:center;padding-top:32px}
.done-mark{width:80px;height:80px;margin:0 auto 6px;border-radius:50%;background:var(--green-50);color:var(--green);display:grid;place-items:center}
.done-mark .ic{width:40px;height:40px;stroke-width:2.5}
.done-page h1{font-size:23px}
.codes{display:grid;justify-items:center;gap:6px;margin:6px 0 10px}
.code{display:inline-flex;align-items:center;gap:8px;font-size:24px;font-weight:600;letter-spacing:1px;color:var(--blue-d);background:#fff;border:1.5px dashed var(--blue-100);border-radius:14px;padding:6px 18px;cursor:pointer;direction:ltr}
.code .ic{width:17px;height:17px;color:var(--muted)}

/* ---------- shipments ---------- */
.ship{display:grid;gap:7px;cursor:pointer}
.ship b[dir=ltr]{font-size:15.5px}
.chip{display:inline-block;font-size:12.5px;font-weight:600;padding:3px 10px;border-radius:99px;white-space:nowrap;background:var(--blue-50);color:var(--blue)}
.chip.st0{background:var(--orange-50);color:var(--orange-d)}
.chip.st3{background:#eef0fb;color:#3b4aa8}
.chip.st5,.chip.st6,.chip.st7{background:var(--green-50);color:var(--green-d)}
.chip.stx{background:var(--red-50);color:var(--red)}
.bar{height:6px;border-radius:6px;background:#edf1f5;overflow:hidden}
.bar i{display:block;height:100%;background:linear-gradient(90deg,var(--blue),#2a8bc7);border-radius:6px}
.bar.cancel i{background:var(--red)}
.bar.full i{background:var(--green)}
.money{display:flex;justify-content:space-between;gap:10px;font-size:13.5px;color:var(--muted)}
.due{color:var(--red);font-weight:600}
.paid{color:var(--green);font-weight:600}
.empty{text-align:center;padding:40px 10px;color:var(--muted);display:grid;justify-items:center;gap:12px}
.empty .ic{width:44px;height:44px;color:#b8c2ce}
.info p+p{margin-top:2px}
.note{background:var(--orange-50);border-color:#f8e0c4}
.note-inline{margin-top:8px;background:var(--orange-50);padding:8px 12px;border-radius:10px;font-size:13.5px}
.timeline{list-style:none;margin:10px 0 0;padding:0}
.timeline li{display:flex;gap:12px;position:relative;padding-bottom:14px;color:#9aa5b3}
.timeline li:not(:last-child)::after{content:"";position:absolute;right:12px;top:26px;bottom:0;width:2px;background:var(--line)}
.timeline li.done::after{background:var(--blue)}
.timeline .dot{width:26px;height:26px;border-radius:50%;border:2px solid #dbe2ea;background:#fff;flex:none;display:grid;place-items:center;color:#fff}
.timeline .dot .ic{width:14px;height:14px;stroke-width:3}
.timeline li.done .dot{background:var(--blue);border-color:var(--blue)}
.timeline li.now .dot{background:var(--orange);border-color:var(--orange);box-shadow:0 0 0 5px rgba(240,138,36,.15)}
.timeline.complete li .dot{background:var(--green);border-color:var(--green);box-shadow:none}
.timeline.complete li::after{background:var(--green)!important}
.timeline li.done,.timeline li.now{color:var(--ink)}
.timeline li div{display:grid;padding-top:1px}
.timeline b{font-weight:500}
.timeline small{color:var(--muted);font-size:12.5px}
.loading{padding:40px;text-align:center;color:var(--muted)}
.loading.full{padding-top:40vh}
.batch{display:flex;flex-wrap:wrap;gap:8px;align-items:center;background:var(--blue-50);border-color:var(--blue-100)}
.batch small{width:100%}
.tag{display:inline-block;font-size:11.5px;font-weight:600;background:var(--blue-50);color:var(--blue);border-radius:6px;padding:0 6px}

/* ---------- photos & receipt ---------- */
.photo-box{display:grid;gap:8px;background:#f9fbfd;border:1px dashed #dbe2ea;border-radius:13px;padding:12px}
.photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(86px,1fr));gap:8px}
.photos figure{position:relative;margin:0}
.photos img{display:block;width:100%;aspect-ratio:1;object-fit:cover;border-radius:11px;background:#e9edf3}
.photos .ph{display:block;padding:0;border:0;background:none;width:100%;cursor:zoom-in}
.photos figcaption{font-size:11px;color:var(--muted);text-align:center;margin-top:2px}
.ph-del{position:absolute;top:4px;inset-inline-start:4px;width:30px;height:30px;border-radius:9px;border:0;background:rgba(255,255,255,.94);color:var(--red);display:grid;place-items:center;cursor:pointer}
.ph-del .ic{width:16px;height:16px}
.ph-del.sure{background:var(--red);color:#fff}
.pick-photo{cursor:pointer;border-style:dashed;min-height:46px}
.lightbox{position:fixed;inset:0;z-index:50;background:rgba(6,18,32,.92);display:grid;place-items:center;padding:16px}
.lightbox img{max-width:100%;max-height:88vh;border-radius:10px}
.lb-close{position:absolute;top:14px;inset-inline-end:14px;width:44px;height:44px;border-radius:50%;border:0;background:#fff;font-size:18px;cursor:pointer}
.receipt h3,.receipt-form h3,.usage h3{display:flex;align-items:center;gap:6px}
.receipt h3 .ic,.receipt-form h3 .ic,.usage h3 .ic{color:var(--blue);width:20px;height:20px}
.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:8px;margin-bottom:8px}
.facts div{background:var(--blue-50);border-radius:11px;padding:8px 10px;display:grid}
.facts small{color:var(--muted);font-size:12px}
.facts b{font-size:16px;color:var(--blue-d)}
.usage{display:grid;gap:8px}

/* ---------- office ---------- */
.otabs{display:flex;gap:6px;padding:10px 16px;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:62px;z-index:4;overflow-x:auto}
.otabs button{flex:none;border:0;background:none;padding:7px 14px;border-radius:10px;font-weight:600;color:var(--muted);cursor:pointer;font-size:14.5px}
.otabs button.on{background:var(--blue-50);color:var(--blue)}
.page.office{padding-bottom:40px}
.agent-title{font-size:18px}
.chips-row{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.fchip{flex:none;border:1px solid #dde3ea;background:#fff;border-radius:99px;padding:6px 14px;font-weight:500;cursor:pointer;font-size:13.5px;color:var(--ink-2)}
.fchip b{color:var(--muted);font-weight:600;margin-inline-start:2px}
.fchip.on{background:var(--blue);border-color:var(--blue);color:#fff}
.fchip.on b{color:rgba(255,255,255,.85)}
.fchip.danger{color:var(--red);border-color:#f0c9cc}
.search-row{display:flex;gap:8px;align-items:center}
.search-row .search{flex:1}
.status-card{display:grid;gap:10px}
.now-stage{font-size:18px;font-weight:600;color:var(--blue-d)}
.more summary{cursor:pointer;color:var(--blue);font-weight:600;font-size:13.5px;padding:4px 0}
.stage-list{display:flex;flex-wrap:wrap;gap:8px;padding-top:8px}
.cust{display:flex;align-items:center;gap:12px;justify-content:space-between}
.stack{display:grid;gap:14px}
.price-row{display:grid;grid-template-columns:1fr 100px 40px;gap:8px;align-items:center}
.price-row input{min-height:44px;padding:8px 10px}
.mini{display:flex;align-items:center;gap:4px;flex-wrap:wrap;font-size:12.5px;color:var(--muted)}
.mini .ic{width:15px;height:15px}
.wa-o{color:var(--wa)!important;border-color:#cdeedb!important}
.receipt-form{border-top:3px solid var(--blue)}

#toast{position:fixed;left:50%;bottom:92px;transform:translate(-50%,20px);background:#17324d;color:#fff;padding:10px 18px;border-radius:12px;font-weight:500;font-size:14.5px;opacity:0;pointer-events:none;transition:.25s;z-index:60;max-width:90vw;text-align:center}
#toast.show{opacity:1;transform:translate(-50%,0)}
#toast.bad{background:var(--red)}
.preview-bar{background:#fff7e6;color:#7a5200;font-size:12.5px;text-align:center;padding:6px 10px;border-bottom:1px solid #f3e1b8}
.preview-bar a{font-weight:600;margin-inline-start:6px}

@media (min-width:600px){
  body{background:#eef2f6}
  #app{box-shadow:0 0 40px rgba(16,42,72,.06)}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
.track-box{display:flex;align-items:center;gap:6px;background:#fff;border-radius:15px;padding:5px;border:1px solid var(--line);box-shadow:var(--shadow)}
.track-box input{border:0;min-height:44px;box-shadow:none!important}
.track-box .btn{min-height:44px;padding:0 20px;border-radius:11px}
.dchip,.seg label{position:relative}
.step button[data-act=inc]{background:var(--blue-50);border-color:var(--blue-50);color:var(--blue)}
.item.has .step button[data-act=inc]{background:var(--blue);border-color:var(--blue);color:#fff}
.bottom a.on::before{display:none}
.bottom a.on{background:var(--blue-50)}
.phone2{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:14px;color:var(--ink-2);margin-top:8px}
.phone2 .ic{width:16px;height:16px;color:var(--muted)}
.phone2 a{font-weight:600}
.staff-link{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:10px;font-size:12.5px;color:var(--muted);font-weight:500}
.staff-link .ic{width:15px;height:15px}
/* ---- KNS5: category tiles + bottom sheet ---- */
.cats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.cat{display:grid;justify-items:center;gap:5px;padding:12px 4px 10px;background:#fff;border:1px solid var(--line);border-radius:16px;font:inherit;color:var(--ink);cursor:pointer;text-align:center;box-shadow:var(--shadow);min-height:104px}
.cat b{font-size:13.5px;font-weight:600;line-height:1.3}
.cat small{font-size:11.5px;color:var(--muted)}
.cat small em{font-style:normal;font-weight:700;color:var(--blue);background:var(--blue-50);padding:1px 8px;border-radius:99px}
.cat .tile-ic{width:40px;height:40px;border-radius:13px}
.cat .tile-ic .ic{width:20px;height:20px}
.cat.has{border-color:var(--blue);box-shadow:0 0 0 1px var(--blue) inset}
.cats.invalid{outline:2px solid var(--red);outline-offset:4px;border-radius:16px}
body.sheet-open{overflow:hidden}
.sheet-bg{position:fixed;inset:0;background:rgba(16,30,50,.42);z-index:40;animation:fade .2s}
.sheet{position:fixed;left:0;right:0;bottom:0;margin:0 auto;max-width:560px;max-height:86vh;display:flex;flex-direction:column;background:var(--bg);border-radius:22px 22px 0 0;z-index:41;box-shadow:0 -10px 40px rgba(16,42,72,.18);animation:up .22s ease-out}
.sheet-head{display:flex;align-items:center;gap:10px;padding:14px 16px 10px;border-bottom:1px solid var(--line);background:#fff;border-radius:22px 22px 0 0}
.sheet-head h3{flex:1;margin:0;font-size:17px}
.sheet-head .tile-ic{width:38px;height:38px;border-radius:12px}
.sheet-body{overflow-y:auto;padding:12px 12px 4px;-webkit-overflow-scrolling:touch}
.sheet-body .items{background:#fff;border:1px solid var(--line);border-radius:15px;overflow:hidden}
.sheet-body .items .item:first-child{border-top:0}
.sheet-body .kg{background:#fff;border:1px solid var(--line);border-radius:15px;padding:14px 16px}
.sheet-foot{padding:10px 16px calc(12px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line)}
.tv-box{background:#fff;border:1px solid var(--line);border-radius:15px;padding:12px 14px;margin-bottom:10px;display:grid;gap:8px}
.tv-head{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.tv-head small{color:var(--muted);font-size:12px;flex-basis:100%}
.tv-head .ic{width:18px;height:18px;color:var(--blue)}
@keyframes up{from{transform:translateY(40px);opacity:.4}to{transform:none;opacity:1}}
@keyframes fade{from{opacity:0}}
/* collapsed parcel */
.parcel.mini{padding:12px 16px}
.parcel.mini .parcel-head{margin:0}
.parcel.mini p{margin:4px 0 0;font-size:13.5px}
.btn.sm{min-height:38px;padding:0 14px;font-size:14px;border-radius:11px}
details.photo-box summary{list-style:none;display:flex;align-items:center;justify-content:space-between;cursor:pointer}
details.photo-box summary::-webkit-details-marker{display:none}
details.photo-box summary b{display:flex;align-items:center;gap:6px}
details.photo-box summary .ic{width:18px;height:18px}
/* date: other day */
.dchip.more input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;z-index:2;min-height:0}
.dchip.more span{border-style:dashed;border-color:#b9c6d4}
.dchip.more.on span{border-style:solid;border-color:var(--blue);background:var(--blue);color:#fff}
.dchip.more.on span small{color:rgba(255,255,255,.85)}
.time-pick select{font-weight:600}
.loc{display:flex;gap:8px;align-items:center}
.loc input{flex:1;min-width:0}
.loc .btn{flex:none;white-space:nowrap}
/* field errors */
.invalid input,.invalid select,.invalid textarea,input.invalid,select.invalid{border-color:var(--red)!important;box-shadow:0 0 0 3px rgba(185,33,41,.13)!important}
.invalid .tel{border-color:var(--red)!important}
.dchips.invalid .dchip span,.seg.invalid span{border-color:var(--red)}
.ferr{display:block;color:var(--red);font-size:13px;font-weight:600;margin-top:6px}
/* office extras */
.push-card{display:flex;align-items:center;gap:12px;text-align:start;cursor:pointer;margin-bottom:12px;border-color:#f3c999;background:#fffaf3}
.push-card .tile-ic{font-size:20px;flex:none}
.push-card span{display:grid}
.push-card small{color:var(--muted);font-size:12.5px}
.push-on{font-size:12.5px;color:var(--green);margin:0 0 10px;text-align:center}
.map-btn{margin-top:10px}
.map-link{display:inline-block;margin-top:6px;font-weight:600}
.agent-card select{font-weight:600}
.agent-card .btn{margin-top:4px}
.agent-row{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) 40px!important}
.agent-row .tel{min-width:0}
.tv-prices{display:grid;gap:8px;padding:12px;border-radius:14px;background:var(--blue-50);margin-bottom:6px}
.tv-prices b{display:flex;align-items:center;gap:6px}
.tv-prices .ic{width:18px;height:18px}
.switch{display:flex!important;align-items:center;gap:12px;cursor:pointer;flex-direction:row!important}
.switch input{position:absolute;opacity:0;width:1px;height:1px}
.switch span{flex:none;width:50px;height:30px;border-radius:99px;background:#cfd6df;position:relative;transition:background .2s}
.switch span::after{content:'';position:absolute;top:3px;inset-inline-start:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:inset-inline-start .2s}
.switch input:checked+span{background:var(--green)}
.switch input:checked+span::after{inset-inline-start:23px}
.switch input:focus-visible+span{box-shadow:0 0 0 3px rgba(0,99,156,.25)}
.switch b{font-weight:600}
/* ---- KNS5: dark brand screens (register + home), like the ad ---- */
body.dark-bg{background:#071a3a}
body.dark-bg #app{background:radial-gradient(130% 55% at 50% 0%,#14427f 0%,#0b2a58 40%,#071a3a 78%);color:#eaf2ff;box-shadow:none}
.dark-page{--dl:rgba(255,255,255,.12);--dm:#9fb3d1;padding:0 18px 100px;color:#eaf2ff}
.dreg{padding-bottom:36px}
.dtop{display:flex;align-items:center;justify-content:space-between;padding:14px 0 4px}
.dtop.center{justify-content:center;padding-top:20px}
.dlogo{height:36px;width:auto;filter:drop-shadow(0 0 14px rgba(70,160,255,.35))}
.dwa{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:rgba(37,211,102,.14);border:1px solid rgba(37,211,102,.35);color:#3ddc84}
.dwa .ic{width:22px;height:22px}
.dhello{color:var(--dm);font-size:15px;margin:10px 4px 0}
.dh1{font-size:23px;line-height:1.4;font-weight:700;margin:2px 4px 0;color:#fff}
.dh1.c{text-align:center;font-size:25px;margin-top:10px}
.dh1 em{font-style:normal;color:#f39223;position:relative;display:inline-block}
.dh1 em::after{content:'';position:absolute;right:0;left:0;bottom:-3px;height:4px;border-radius:9px;background:linear-gradient(90deg,transparent,#f39223)}
.dsub{text-align:center;color:var(--dm);margin:6px 0 0;font-size:14.5px}
.dart{display:block;width:100%;margin-top:4px}
.dart text,.live text{font-family:inherit}
.dcard{display:block;margin-top:14px;padding:16px;border-radius:26px;color:inherit;background:linear-gradient(180deg,rgba(30,90,170,.5),rgba(10,36,80,.6));border:1px solid rgba(120,180,255,.26);box-shadow:0 18px 44px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.1)}
.dcard svg{display:block;width:100%}
.dform{display:grid;gap:12px;background:rgba(255,255,255,.07)}
.dform h2{font-size:19px;color:#fff}
.dmut{color:var(--dm);font-size:13.5px;margin-top:-8px}
.dform label{display:grid;gap:6px;font-size:14px;font-weight:600;color:#eaf2ff;min-width:0}
.dform label small{color:var(--dm);font-weight:400}
.dform input{height:50px;border-radius:14px;border:1px solid rgba(255,255,255,.16);background:rgba(4,16,40,.55);color:#fff;font-size:15.5px;padding:0 14px;width:100%;min-width:0;box-shadow:none}
.dform input::placeholder{color:#7f97ba}
.dform input:focus{border-color:#4fb0ff;outline:0;box-shadow:0 0 0 3px rgba(79,176,255,.2)}
.dform .tel{border:1px solid rgba(255,255,255,.16);background:rgba(4,16,40,.55)}
.dform .tel span{background:rgba(255,255,255,.08);color:#fff;border-color:rgba(255,255,255,.12)}
.dform .tel input{border:0;background:transparent;height:48px}
.dform .err{background:rgba(185,33,41,.2);color:#ffb3b3}
.dgo{height:54px;border:0;border-radius:999px;font:inherit;font-size:17px;font-weight:700;color:#fff;background:linear-gradient(90deg,#ff7a1a,#f39223);box-shadow:0 10px 26px rgba(255,122,26,.42);cursor:pointer;width:100%}
.dgo:disabled{opacity:.7}
.dperks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:14px}
.dperks span{display:grid;justify-items:center;gap:6px;text-align:center;font-size:12px;font-weight:600;background:rgba(255,255,255,.06);border:1px solid var(--dl);border-radius:16px;padding:10px 4px}
.dperks b{font-size:18px}
.dlink{display:block;text-align:center;margin-top:16px;color:#6fbaff;font-weight:600;font-size:14px}
.dstaff{display:block;text-align:center;margin-top:12px;color:#7f97ba;font-size:12.5px}
/* live shipment card */
.live{text-decoration:none}
.lv-head{display:flex;justify-content:space-between;align-items:center;font-size:12.5px}
.lv-tag{display:flex;align-items:center;gap:6px;color:#9fd0ff;font-weight:600}
.lv-tag i{width:8px;height:8px;border-radius:50%;background:#3ddc84;box-shadow:0 0 0 4px rgba(61,220,132,.2)}
.lv-more{color:#ffb35c;font-weight:600;cursor:pointer}
.lv-code{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:8px 2px 0}
.lv-code b{font-size:20px;letter-spacing:.5px;color:#fff}
.lchip{font-size:12px;font-weight:600;padding:3px 10px;border-radius:99px;background:rgba(243,146,35,.18);color:#ffb35c}
.lchip.ok{background:rgba(61,220,132,.18);color:#7ff0b0}
.lsteps{display:flex;align-items:center;width:80%;margin:0 auto 4px}
.lsteps .ln{flex:1;height:3px;background:rgba(255,255,255,.22)}
.lsteps .s-done+.ln{background:#fff}
.lsteps b{flex:none;width:24px;height:24px;border-radius:50%;display:grid;place-items:center}
.lsteps .s-done{background:#fff;color:#0b3a78}.lsteps .s-done .ic{width:14px;height:14px;stroke-width:3}
.lsteps .s-now{border:3px solid #f39223;box-shadow:0 0 12px rgba(243,146,35,.7)}
.lsteps .s-now::after{content:'';width:8px;height:8px;border-radius:50%;background:#fff}
.lsteps .s-next{width:15px;height:15px;background:#5d7fae}
.llabels{display:flex;justify-content:space-between;width:94%;margin:0 auto;font-size:11px;color:var(--dm)}
.lv-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:10px;padding-top:10px;border-top:1px solid var(--dl);font-size:12.5px;color:var(--dm)}
.lv-foot b{color:#fff;font-size:13px;flex:none}
.first{text-align:center}
.f-t{display:block;font-size:17px;margin:2px 0 10px;color:#fff}
.f-steps{display:grid;gap:6px;text-align:start}
.f-steps span{display:flex;align-items:center;gap:10px;font-size:13.5px;background:rgba(255,255,255,.06);border-radius:12px;padding:8px 10px}
.f-steps i{font-style:normal;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#f39223;font-size:12px;font-weight:700;color:#fff;flex:none}
/* home controls */
.dtrack{display:flex;gap:6px;margin-top:14px;padding:6px;border-radius:18px;background:rgba(255,255,255,.1);border:1px solid var(--dl)}
.dtrack input{flex:1;min-width:0;background:transparent;border:0;color:#fff;font-size:15px;padding:0 10px;min-height:46px;box-shadow:none}
.dtrack input::placeholder{color:#a9bddb}
.dtrack input:focus{outline:0;box-shadow:none}
.dtrack button{border:0;border-radius:13px;padding:0 20px;min-height:46px;font:inherit;font-weight:700;color:#fff;background:#1f8fe5;cursor:pointer}
.dcta{display:flex;align-items:center;gap:12px;margin-top:14px;padding:14px 18px;border-radius:999px;background:linear-gradient(90deg,#ff7a1a,#f39223);box-shadow:0 10px 30px rgba(255,122,26,.42),inset 0 1px 0 rgba(255,255,255,.35);color:#fff}
.dcta .ci{width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.2);display:grid;place-items:center;flex:none}
.dcta .ci .ic{width:24px;height:24px}
.dcta b{display:block;font-size:18px}.dcta small{font-size:13px;opacity:.92}
.dcta .arr{margin-inline-start:auto;font-size:20px}
.dtiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}
.dtiles a{background:rgba(255,255,255,.07);border:1px solid var(--dl);border-radius:20px;padding:14px 6px;display:grid;justify-items:center;gap:8px;font-weight:600;font-size:14px;color:#fff;text-align:center}
.dtiles a span{width:44px;height:44px;border-radius:14px;display:grid;place-items:center}
.dtiles .t1 span{background:rgba(31,143,229,.2);color:#5fb6ff}.dtiles .t2 span{background:rgba(30,158,90,.22);color:#4fd18c}.dtiles .t3 span{background:rgba(243,146,35,.2);color:#f39223}
.dsec{display:flex;justify-content:space-between;align-items:baseline;margin:24px 2px 10px}
.dsec h2{font-size:17px;color:#fff}.dsec a{color:#6fbaff;font-size:13px;font-weight:600}
.drates{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:rgba(255,255,255,.07);border:1px solid var(--dl);border-radius:20px}
.drates div{padding:14px 6px;text-align:center;display:grid;gap:2px}.drates div+div{border-inline-start:1px solid var(--dl)}
.drates b{font-size:15.5px;color:#fff;white-space:nowrap}.drates small{color:var(--dm);font-size:11.5px}
.dfaq{background:rgba(255,255,255,.06);border:1px solid var(--dl);border-radius:20px;overflow:hidden}
.dfaq details+details{border-top:1px solid var(--dl)}
.dfaq summary{list-style:none;display:flex;align-items:center;gap:10px;padding:14px 16px;font-weight:500;cursor:pointer;font-size:14.5px}
.dfaq summary::-webkit-details-marker{display:none}
.dfaq summary span{flex:1}.dfaq summary .ic{width:18px;height:18px;color:#7f97ba;transition:transform .2s}
.dfaq details[open] summary{color:#6fbaff}.dfaq details[open] summary .ic{transform:rotate(180deg)}
.dfaq details p{padding:0 16px 14px;color:var(--dm);font-size:14px}
.dhelp{display:flex;align-items:center;gap:12px;margin-top:16px;background:rgba(37,211,102,.1);border:1px solid rgba(37,211,102,.28);border-radius:20px;padding:14px 16px}
.dhelp div{display:grid;flex:1}.dhelp small{color:var(--dm);font-size:13px}
.dhelp bdi{display:block;text-align:right;white-space:nowrap}
.dhelp .btn{min-height:42px;padding:0 16px;font-size:14.5px}
.dfoot{display:grid;justify-items:center;gap:2px;text-align:center;padding:20px 0 4px;color:var(--dm)}
.dfoot small{font-size:12px}.dfoot .linkish{color:#6fbaff}
/* bottom bar: dark everywhere */
.bottom{background:rgba(7,22,50,.94)!important;border-top:1px solid rgba(255,255,255,.1)!important;box-shadow:0 -6px 20px rgba(0,0,0,.18)}
.bottom a{color:#8ea6c9}
.bottom a.on{color:#fff;background:rgba(31,143,229,.25)}
