/* OdhavMobs Telecom — repair booking card + step tracker (assets/js/repairtrack.js).
   Shared by /account (Repairs tab) and /repairbooking. Loaded before account.css on /account. */
.ac-ic{width:24px;height:24px;flex:none}

/* status pills */
.ac-pill{display:inline-block;font-size:.78rem;font-weight:700;line-height:1.3;padding:3px 10px;border-radius:999px;white-space:nowrap}
.st-new{background:#fff4dd;color:#7a4b00}.st-conf{background:#e5efff;color:#1d4e89}.st-work{background:#efe9fd;color:#5b3fa0}
.st-wait{background:#fdeee3;color:#9a3d07}.st-ready{background:#e3f4f5;color:#08636b}.st-done{background:#e6f6ec;color:#0c6b37}.st-cancel{background:#fdecec;color:#b42318}

/* ---------- Repairs: booking cards + step tracker ---------- */
.ac-rlist{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.ac-rc{background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px 16px;box-shadow:var(--sh-1);min-width:0}
.ac-rc-cancel{border-color:#f5c2bd}
.ac-rc-h{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:6px}
.ac-rc-t{display:flex;flex-direction:column;min-width:0}
.ac-rc-t b{font-size:1.06rem;color:var(--ink);overflow-wrap:break-word}
.ac-rc-t span{font-size:.86rem;color:var(--muted)}
.ac-rc-p{display:flex;align-items:flex-start;gap:8px;margin:2px 0;font-size:.93rem;color:var(--text)}
.ac-rc-p .ac-ic{width:18px;height:18px;margin-top:2px;color:var(--teal)}
.ac-steps{list-style:none;margin:14px 0 6px;padding:0;display:flex}
.ac-steps li{flex:1 1 0;position:relative;text-align:center;font-size:.76rem;line-height:1.25;color:var(--muted);padding:24px 0 0;min-width:0;overflow-wrap:break-word}
.ac-steps li.cur{letter-spacing:-.01em}
.ac-steps li:before{content:"";position:absolute;top:4px;left:50%;width:14px;height:14px;margin-left:-7px;border-radius:50%;background:#fff;border:2px solid #8a9bb0;z-index:1;box-sizing:border-box}
.ac-steps li:after{content:"";position:absolute;top:10px;left:-50%;width:100%;height:2px;background:#c8d3e0}
.ac-steps li:first-child:after{display:none}
.ac-steps li.done,.ac-steps li.cur{color:var(--ink)}
.ac-steps li.done:before{background:var(--wa);border-color:var(--wa)}
.ac-steps li.done:after,.ac-steps li.cur:after{background:var(--wa)}
.ac-steps li.cur{font-weight:700}
.ac-steps li.cur:before{width:20px;height:20px;margin-left:-10px;top:1px;border:5px solid var(--wa);background:#fff}
.ac-steps-wait li.cur{color:#9a3d07}
.ac-steps-wait li.cur:before{border-color:#c2570c}
.ac-rc-x{display:flex;align-items:flex-start;gap:8px;margin:12px 0 4px;padding:10px 12px;border-radius:12px;background:#fdecec;color:#b42318;font-weight:600;font-size:.92rem}
.ac-rc-x .ac-ic{width:20px;height:20px}
.ac-rc-m{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 0}
.ac-rc-m div{flex:1 1 120px;padding:8px 12px;border-radius:12px;background:#f5f8fb}
.ac-rc-m dt{font-size:.8rem;color:var(--muted)}
.ac-rc-m dd{margin:0;font-weight:700;color:var(--navy)}
.ac-acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;padding-top:12px;border-top:1px dashed var(--line)}
.ac-acts .btn{flex:1 1 150px;min-height:44px}
.ac-acts .btn .ac-ic{width:18px;height:18px}
@media (min-width:900px){.ac-acts .btn{flex:0 1 230px}.ac-rc-m div{flex:0 1 200px}}

/* ---------- /repairbooking: "Your repair status" card above the wizard (added by JS only for logged-in customers with bookings) ---------- */
.rt-box{margin:0 0 20px;padding:16px;border-radius:18px;background:#eef6f8;border:1px solid #cfe4e7}
.rt-h{margin:0 0 12px;font-size:1.15rem;line-height:1.3;color:var(--navy)}
@media (min-width:900px){.rt-list{grid-template-columns:repeat(auto-fit,minmax(380px,1fr));align-items:start}}
.rt-all{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin-top:8px;padding:0 4px;font-weight:700;color:var(--blue);text-decoration:none;border-radius:8px}
.rt-all:hover{text-decoration:underline}
.rt-all .ac-ic{width:18px;height:18px}
.rt-line{display:flex;align-items:flex-start;gap:10px;margin:0;font-weight:600;color:var(--ink)}
.rt-line .ac-ic{width:22px;height:22px;margin-top:1px;color:#0c6b37}
.rt-box-done{padding:14px 16px}
.rt-box-done .rt-h{font-size:1.02rem;margin-bottom:8px}
.rt-box-done .rt-all{margin-top:4px}
/* Ready: green highlight + shop hours + directions (/repairbooking) */
.rt-rc-ready{border:2px solid #1f9254;box-shadow:0 0 0 4px #e6f6ec}
.rt-ready{margin:8px 0 10px;padding:12px 14px;border-radius:12px;background:#e6f6ec;border:1px solid #b7e1c7}
.rt-ready-t{display:flex;align-items:flex-start;gap:8px;margin:0;font-weight:700;color:#0c5c2f;font-size:1rem}
.rt-ready-t .ac-ic{width:22px;height:22px;margin-top:1px}
.rt-ready-h{margin:4px 0 10px;font-size:.9rem;color:#1d4d33}
.rt-map{min-height:44px;color:#0c5c2f;border-color:#8fcca6;background:#fff}
.rt-map .ac-ic{width:18px;height:18px}
.rt-nw{white-space:nowrap}
/* skeleton while a just-saved booking loads (logged-in only) */
.rt-sk{pointer-events:none}
.rt-skl{display:block;height:12px;width:80%;margin:10px 0;border-radius:8px;background:#e3eaf2;animation:rtpulse 1.1s ease-in-out infinite alternate}
.rt-skl-h{height:18px;width:45%;margin-top:2px}
.rt-skl-s{width:55%}
@keyframes rtpulse{from{opacity:1}to{opacity:.45}}
@media (prefers-reduced-motion:reduce){.rt-skl{animation:none}}
/* step times from repair_status_log (tracking, supabase/tracking_tech_v1.sql) */
.ac-steps .rt-t{display:block;color:var(--muted,#5b6b80);font-size:.78rem;margin-top:1px}
.ac-steps .rt-wait{display:inline-block;margin-top:2px;font-size:.78rem;font-weight:600;color:#8a5a00}
