/* MEBS Driver app */
body{background:#E9ECF2}
.login{padding:70px 22px 30px;min-height:100%;display:flex;flex-direction:column}
.login img{height:40px;align-self:flex-start;margin-bottom:34px}
.login h1{font-size:28px;font-weight:600;letter-spacing:-.02em;line-height:1.15}
.login h1 span{color:var(--royal);display:block}
.login p.sub{color:var(--muted);margin:8px 0 20px}
.login .fm input{background:#fff;border:0;box-shadow:0 4px 14px rgba(20,32,70,.06);padding:14px 16px;border-radius:16px;font-size:16px}
.login .alt{margin-top:auto;padding-top:24px;text-align:center;color:var(--muted);font-size:13.5px}
.phone .scr{padding-bottom:30px}
.pad{padding:0 16px}
.hh{padding:58px 20px 14px}
.ph{border:0;cursor:pointer}
.sec{font-size:15px;font-weight:600;margin:18px 2px 10px}
.dhero .big{font-size:32px}
.hstats{display:flex;gap:8px;margin:10px 0 4px;position:relative}
.hstats span{background:rgba(255,255,255,.12);border-radius:14px;padding:8px 12px;font-size:11.5px;color:#D5DEF3;display:flex;flex-direction:column;flex:1}
.hstats b{font-size:18px;color:#fff;font-weight:700}
.dhero .loc{margin:12px 0 12px}
.qnote{display:flex;gap:8px;align-items:center;background:var(--warnbg);color:var(--warn);border-radius:14px;padding:10px 12px;font-size:12.5px;font-weight:600}
.qnote svg{width:16px;height:16px;flex:none}
.tcard{width:100%;text-align:left;background:#fff;border-radius:22px;padding:14px;margin-bottom:10px;border:0;font:inherit;color:inherit;box-shadow:0 4px 14px rgba(20,32,70,.05);cursor:pointer;display:block}
.tcard.started{box-shadow:0 0 0 2px #2F5BEA,0 8px 20px rgba(47,91,234,.15)}
.tcard.completed{opacity:.75}
.tc1{display:flex;justify-content:space-between;align-items:flex-start}
.tm b{font-size:22px;font-weight:700;letter-spacing:-.02em;display:block;line-height:1.1}
.tm small{color:var(--muted);font-size:12px}
.tcs{display:flex;gap:12px;flex-wrap:wrap;margin:10px 0;font-size:12.5px;font-weight:500}
.tcs span{display:inline-flex;gap:5px;align-items:center}
.tcs svg{width:14px;height:14px;color:var(--royal)}
.tcr{display:flex;flex-wrap:wrap;gap:4px;align-items:center;font-size:12px;color:var(--muted)}
.tcr span{background:#F1F3F7;border-radius:99px;padding:3px 9px}
.tcr span.done{background:var(--okbg);color:var(--ok)}
.tcr svg{width:12px;height:12px}
.tcv{display:flex;gap:8px;align-items:center;margin-top:12px;padding-top:10px;border-top:1px solid var(--line);font-size:12.5px;font-weight:600}
.tcv svg{width:16px;height:16px;color:var(--royal)}
.tcv .go{margin-left:auto;display:inline-flex;gap:4px;align-items:center;color:var(--acc)}
.card.empty{display:flex;flex-direction:column;align-items:center;gap:4px;padding:26px;text-align:center;background:#fff;border-radius:22px}
.card.empty svg{color:var(--royal);margin-bottom:4px}.card.empty small{color:var(--muted)}
.refresh{display:flex;gap:6px;align-items:center;justify-content:center;margin:14px auto 0;color:var(--royal);font-weight:600;font-size:13px;background:none;border:0}
.refresh svg{width:15px;height:15px}
/* trip screen */
.tbar{display:flex;gap:12px;align-items:center;padding:52px 16px 12px}
.tbar b{display:block;font-size:16px;font-weight:600}.tbar small{color:var(--muted);font-size:12px}
.tbar .cbtn{background:#fff;width:40px;height:40px;flex:none}
.tmapw{position:relative;height:290px;margin:0 16px;border-radius:24px;overflow:hidden;box-shadow:0 8px 20px rgba(20,32,70,.1)}
#tmap{position:absolute;inset:0}
.spd{position:absolute;left:10px;top:10px;z-index:500;width:62px;height:62px;border-radius:50%;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 4px 14px rgba(20,32,70,.2);border:3px solid #12805C}
.spd b{font-size:20px;font-weight:800;line-height:1}.spd small{font-size:9.5px;color:var(--muted);font-weight:600}
.spd.over{border-color:#D7263D;background:#FDECEC}.spd.over b{color:#D7263D}
.recenter{position:absolute;right:10px;bottom:10px;z-index:500;width:42px;height:42px;border-radius:50%;background:#fff;border:0;display:grid;place-items:center;color:var(--navy);box-shadow:0 4px 14px rgba(20,32,70,.2)}
.tp{margin-top:14px}
.slow{display:flex;gap:8px;align-items:center;background:#D7263D;color:#fff;border-radius:16px;padding:12px 14px;font-weight:700;font-size:14px;margin-bottom:12px}
.nextc{border-radius:24px;padding:16px;margin-bottom:12px;color:#fff;background:linear-gradient(135deg,#0B5E43,#12805C);box-shadow:0 14px 30px rgba(18,128,92,.28)}
.nextc.late{background:linear-gradient(135deg,#9E1B2E,#D7263D);box-shadow:0 14px 30px rgba(215,38,61,.28)}
.nl{display:flex;gap:12px;align-items:center}
.nl .ic{width:44px;height:44px;border-radius:14px;background:rgba(255,255,255,.18);display:grid;place-items:center;flex:none}
.nl small{font-size:12px;opacity:.85}.nl b{display:block;font-size:18px;font-weight:700;line-height:1.2}
.ng{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0 12px}
.ng div{background:rgba(255,255,255,.14);border-radius:14px;padding:10px}
.ng b{display:block;font-size:19px;font-weight:700}.ng small{font-size:11px;opacity:.85}
.cov{display:flex;gap:8px;align-items:center;font-size:13.5px;background:rgba(0,0,0,.14);border-radius:12px;padding:9px 12px}
.cov svg{width:16px;height:16px;flex:none}
.donec{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;background:var(--okbg);color:var(--ok);border-radius:22px;padding:18px;margin-bottom:12px}
.donec small{color:var(--ink)}
.acts2{display:flex;flex-direction:column;gap:10px}
a.cta{text-decoration:none}
.dstops{background:#fff;border-radius:22px;padding:6px 14px}
.ds{display:flex;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}
.ds:last-child{border:0}
.ds .n{width:30px;height:30px;border-radius:50%;background:#EEF1F6;color:var(--muted);display:grid;place-items:center;font-weight:700;font-size:13px;flex:none}
.ds .n svg{width:16px;height:16px}
.ds.done .n{background:var(--ok);color:#fff}.ds.next .n{background:#2F5BEA;color:#fff;box-shadow:0 0 0 4px rgba(47,91,234,.18)}
.ds .t{flex:1;min-width:0}.ds .t b{display:block;font-size:14px;font-weight:600}
.ds .t small{display:flex;gap:4px;align-items:center;color:var(--muted);font-size:12px}
.ds .t small svg{width:13px;height:13px}
.ds .r{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.ds .r b{font-size:14px}
.mini-nav{width:38px;height:38px;border-radius:50%;background:var(--sky);color:var(--royal);display:grid;place-items:center}
.mini-nav svg{width:17px;height:17px}
.keep{display:flex;gap:8px;align-items:flex-start;color:var(--muted);font-size:12px;margin:16px 4px 0;line-height:1.4}
.keep svg{width:15px;height:15px;flex:none;margin-top:1px}
.snum{width:28px;height:28px;border-radius:50%;background:#fff;color:#2F5BEA;border:3px solid #2F5BEA;display:grid;place-items:center;font-size:12px;font-weight:800;box-shadow:0 2px 8px rgba(14,22,48,.3)}
.snum.pickup{border-color:#B76E00;color:#B76E00}
.snum.done{background:#12805C;border-color:#12805C;color:#fff}
.mebus{width:36px;height:36px;border-radius:50%;background:#16306B;color:#fff;display:grid;place-items:center;border:3px solid #fff;box-shadow:0 0 0 6px rgba(47,91,234,.25),0 4px 12px rgba(14,22,48,.4)}
.mebus svg{width:18px;height:18px}
@media (max-width:480px){ .hh,.tbar{padding-top:calc(env(safe-area-inset-top) + 20px)} .login{padding-top:calc(env(safe-area-inset-top) + 40px)} }
/* v2: road limit sign, tabs, expenses */
.phone .scr{padding-bottom:110px}
.lsign{position:absolute;left:78px;top:14px;z-index:500;width:52px;height:52px;border-radius:50%;background:#fff;border:6px solid #D7263D;display:grid;place-items:center;box-shadow:0 4px 14px rgba(20,32,70,.2)}
.lsign b{font-size:17px;font-weight:800;color:#111}
.road{position:absolute;left:10px;bottom:10px;z-index:500;background:rgba(11,26,63,.88);color:#fff;font-size:11.5px;font-weight:600;padding:5px 10px;border-radius:99px;max-width:70%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.xcard{display:flex;gap:12px;align-items:center;background:#fff;border-radius:18px;padding:12px;margin-bottom:8px}
.xcard .t{flex:1;min-width:0}.xcard b{display:block;font-size:14px}.xcard small{display:block;color:var(--muted);font-size:12px}
.xcard .rj{color:var(--bad)}
.xi{width:40px;height:40px;border-radius:12px;background:var(--sky);color:var(--royal);display:grid;place-items:center;flex:none}
.xi svg{width:18px;height:18px}
.xk{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.xk button{border:2px solid transparent;background:#fff;border-radius:14px;padding:10px 4px;font:inherit;font-size:11.5px;font-weight:600;display:flex;flex-direction:column;align-items:center;gap:4px;color:var(--ink);box-shadow:0 2px 8px rgba(20,32,70,.05)}
.xk button svg{width:18px;height:18px;color:var(--royal)}
.xk button.on{border-color:#16306B;background:#EEF3FC}
.xform input{background:#fff;border:0;box-shadow:0 2px 8px rgba(20,32,70,.05);border-radius:14px;padding:13px 14px;font-size:16px}
.xphoto{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:120px;background:#fff;border:2px dashed #C4D4F1;border-radius:18px;color:var(--royal)!important;font-size:13px!important;cursor:pointer;margin-bottom:12px!important;overflow:hidden}
.xphoto img{width:100%;max-height:240px;object-fit:contain}
.xform .cta{margin-top:6px}
