/* =====================================================================
   SMART HOME SERVICE — mobile app design system
   Shared by the Customer app and the Mistri app.
   Brand: Trust Blue #2563EB · Font: Manrope
   ===================================================================== */

:root{
  /* brand */
  --blue:#2563EB;
  --blue-600:#1D4ED8;
  --blue-700:#1E40AF;
  --blue-50:#EFF6FF;
  --blue-100:#DBEAFE;

  /* neutrals */
  --ink:#0B1220;
  --ink-2:#1E293B;
  --muted:#64748B;
  --muted-2:#94A3B8;
  --line:#E7EBF0;
  --bg:#F5F7FA;
  --card:#FFFFFF;

  /* status */
  --green:#059669;
  --green-bg:#ECFDF5;
  --amber:#D97706;
  --amber-bg:#FFFBEB;
  --red:#DC2626;
  --red-bg:#FEF2F2;
  --purple:#7C3AED;

  /* shape */
  --r-sm:10px;
  --r:16px;
  --r-lg:22px;
  --r-xl:28px;

  --shadow-sm:0 1px 2px rgba(11,18,32,.05);
  --shadow:0 4px 16px rgba(11,18,32,.07);
  --shadow-lg:0 12px 34px rgba(11,18,32,.13);
  --shadow-blue:0 8px 22px rgba(37,99,235,.28);

  --nav-h:66px;
  --safe-b:env(safe-area-inset-bottom, 0px);
  --safe-t:env(safe-area-inset-top, 0px);
}

*,*::before,*::after{box-sizing:border-box}

html,body{height:100%}

body{
  margin:0;
  font-family:'Manrope',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  background:var(--bg);
  color:var(--ink);
  font-size:15px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  -webkit-tap-highlight-color:transparent;
  overscroll-behavior-y:none;
  overflow-x:hidden;
}

/* app frame: on desktop the app sits in a phone-width column */
#app{
  max-width:520px;
  margin:0 auto;
  min-height:100vh;
  min-height:100dvh;
  background:var(--bg);
  position:relative;
  box-shadow:0 0 60px rgba(11,18,32,.07);
  overflow:hidden;
}

h1,h2,h3,h4{margin:0;letter-spacing:-.022em;font-weight:800;line-height:1.22}
h1{font-size:26px}
h2{font-size:21px}
h3{font-size:17px}
p{margin:0 0 12px}
a{color:var(--blue);text-decoration:none}
img{max-width:100%;display:block}

.muted{color:var(--muted)}
.small{font-size:13px}
.tiny{font-size:11.5px}
.bold{font-weight:700}
.center{text-align:center}
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}
.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}
.row{display:flex;align-items:center;gap:12px}
.row-between{display:flex;align-items:center;justify-content:space-between;gap:12px}
.grow{flex:1;min-width:0}
.hidden{display:none !important}
.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* =====================================================================
   SCREENS + PAGE TRANSITIONS
   ===================================================================== */

.screen{
  display:none;
  padding:calc(var(--safe-t) + 0px) 0 calc(var(--nav-h) + var(--safe-b) + 28px);
  min-height:100vh;
  min-height:100dvh;
}
.screen.active{display:block}

.screen.enter-right{animation:slideInRight .28s cubic-bezier(.32,.72,.27,1) both}
.screen.enter-left{animation:slideInLeft .28s cubic-bezier(.32,.72,.27,1) both}
.screen.enter-fade{animation:fadeUp .25s ease both}

@keyframes slideInRight{from{opacity:.4;transform:translate3d(28px,0,0)}to{opacity:1;transform:none}}
@keyframes slideInLeft{from{opacity:.4;transform:translate3d(-28px,0,0)}to{opacity:1;transform:none}}
@keyframes fadeUp{from{opacity:0;transform:translate3d(0,12px,0)}to{opacity:1;transform:none}}
@keyframes pop{0%{transform:scale(.9);opacity:0}60%{transform:scale(1.02)}100%{transform:scale(1);opacity:1}}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms !important;transition-duration:.01ms !important}
}

.pad{padding:0 18px}

/* =====================================================================
   TOP BAR
   ===================================================================== */

.topbar{
  position:sticky;top:0;z-index:40;
  background:rgba(245,247,250,.88);
  backdrop-filter:saturate(180%) blur(14px);
  -webkit-backdrop-filter:saturate(180%) blur(14px);
  padding:calc(var(--safe-t) + 14px) 18px 14px;
  display:flex;align-items:center;gap:12px;
  border-bottom:1px solid transparent;
  transition:border-color .2s;
}
.topbar.stuck{border-bottom-color:var(--line)}
.topbar h2{flex:1;font-size:19px}

.icon-btn{
  width:40px;height:40px;flex:0 0 40px;
  display:grid;place-items:center;
  border-radius:13px;border:0;
  background:var(--card);
  box-shadow:var(--shadow-sm);
  color:var(--ink);cursor:pointer;
  transition:transform .12s,background .15s;
}
.icon-btn:active{transform:scale(.92)}
.icon-btn svg{width:20px;height:20px}

/* hero header used on Home */
.hero{
  background:linear-gradient(158deg,var(--blue) 0%,#3B6FF5 48%,#1E40AF 100%);
  color:#fff;
  padding:calc(var(--safe-t) + 20px) 18px 46px;
  border-radius:0 0 var(--r-xl) var(--r-xl);
  position:relative;overflow:hidden;
}
.hero::after{
  content:'';position:absolute;right:-56px;top:-70px;
  width:220px;height:220px;border-radius:50%;
  background:rgba(255,255,255,.09);
}
.hero::before{
  content:'';position:absolute;left:-40px;bottom:-90px;
  width:170px;height:170px;border-radius:50%;
  background:rgba(255,255,255,.07);
}
.hero *{position:relative;z-index:1}
.hero h1{font-size:24px;color:#fff}
.hero .sub{color:rgba(255,255,255,.85);font-size:13.5px;margin:0}

.pull-up{margin-top:-30px;position:relative;z-index:2}

/* =====================================================================
   CARDS
   ===================================================================== */

.card{
  background:var(--card);
  border-radius:var(--r);
  padding:16px;
  box-shadow:var(--shadow);
}
.card + .card{margin-top:12px}
.card-flat{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:16px}
.card-tap{cursor:pointer;transition:transform .13s ease, box-shadow .13s ease}
.card-tap:active{transform:scale(.977);box-shadow:var(--shadow-sm)}

.section-title{
  font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;
  color:var(--muted-2);margin:26px 18px 12px;
}

/* service grid */
.svc-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:0 18px}
.svc{
  background:var(--card);border-radius:var(--r-lg);padding:18px 15px;
  box-shadow:var(--shadow);cursor:pointer;border:0;text-align:left;
  font:inherit;color:inherit;
  transition:transform .13s ease,box-shadow .13s ease;
  animation:pop .34s cubic-bezier(.2,.9,.3,1.2) both;
}
.svc:active{transform:scale(.965)}
.svc-ico{
  width:50px;height:50px;border-radius:16px;display:grid;place-items:center;
  margin-bottom:12px;color:#fff;
}
.svc-ico svg{width:26px;height:26px}
.svc-name{font-weight:800;font-size:14.5px;letter-spacing:-.01em;line-height:1.3}
.svc-fee{font-size:12px;color:var(--muted);margin-top:5px;font-weight:600}

/* =====================================================================
   BUTTONS
   ===================================================================== */

.btn{
  display:flex;align-items:center;justify-content:center;gap:9px;
  width:100%;padding:16px 20px;border:0;border-radius:15px;
  background:var(--blue);color:#fff;
  font:inherit;font-size:16px;font-weight:800;letter-spacing:-.01em;
  cursor:pointer;box-shadow:var(--shadow-blue);
  transition:transform .12s ease,background .16s ease,opacity .16s;
}
.btn:active{transform:scale(.977)}
.btn:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}
.btn svg{width:19px;height:19px}
.btn-ghost{background:var(--card);color:var(--ink);box-shadow:var(--shadow-sm);border:1.5px solid var(--line)}
.btn-soft{background:var(--blue-50);color:var(--blue);box-shadow:none}
.btn-danger{background:var(--red);box-shadow:0 8px 22px rgba(220,38,38,.25)}
.btn-green{background:var(--green);box-shadow:0 8px 22px rgba(5,150,105,.25)}
.btn-sm{padding:11px 15px;font-size:14px;border-radius:12px;width:auto}
.btn-row{display:flex;gap:10px}
.btn-row .btn{flex:1}

/* sticky action bar at the bottom of a flow screen */
.action-bar{
  position:fixed;left:50%;transform:translateX(-50%);
  bottom:0;width:100%;max-width:520px;z-index:45;
  padding:14px 18px calc(14px + var(--safe-b));
  background:linear-gradient(to top,var(--bg) 62%,rgba(245,247,250,0));
}
.action-bar.with-nav{bottom:calc(var(--nav-h) + var(--safe-b))}

/* =====================================================================
   FORMS
   ===================================================================== */

.field{margin-bottom:15px}
.field label{display:block;font-size:13px;font-weight:800;margin-bottom:7px;color:var(--ink-2)}
.input,textarea.input,select.input{
  width:100%;padding:14px 15px;
  border:1.5px solid var(--line);border-radius:14px;
  background:var(--card);font:inherit;font-size:15.5px;color:var(--ink);
  outline:none;transition:border-color .16s,box-shadow .16s;
  -webkit-appearance:none;appearance:none;
}
.input::placeholder{color:var(--muted-2)}
.input:focus{border-color:var(--blue);box-shadow:0 0 0 4px rgba(37,99,235,.11)}
textarea.input{min-height:92px;resize:vertical;line-height:1.5}
select.input{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 15px center;padding-right:42px;
}
.input-prefix{display:flex;align-items:center;border:1.5px solid var(--line);border-radius:14px;background:var(--card);overflow:hidden}
.input-prefix:focus-within{border-color:var(--blue);box-shadow:0 0 0 4px rgba(37,99,235,.11)}
.input-prefix span{padding:0 4px 0 15px;font-weight:800;color:var(--muted)}
.input-prefix .input{border:0;box-shadow:none;padding-left:6px}
.input-prefix .input:focus{box-shadow:none}

/* OTP boxes */
.otp-row{display:flex;gap:9px;justify-content:space-between}
.otp-row input{
  flex:1;min-width:0;height:56px;text-align:center;
  font-size:22px;font-weight:800;
  border:1.5px solid var(--line);border-radius:14px;background:var(--card);
  outline:none;transition:border-color .15s,box-shadow .15s;
}
.otp-row input:focus{border-color:var(--blue);box-shadow:0 0 0 4px rgba(37,99,235,.11)}

/* checkbox list (problem selection) */
.check{
  display:flex;align-items:center;gap:13px;
  background:var(--card);border:1.5px solid var(--line);
  border-radius:var(--r);padding:15px;margin-bottom:10px;
  cursor:pointer;transition:border-color .15s,background .15s,transform .12s;
}
.check:active{transform:scale(.985)}
.check.on{border-color:var(--blue);background:var(--blue-50)}
.check input{position:absolute;opacity:0;pointer-events:none}
.check .box{
  width:24px;height:24px;flex:0 0 24px;border-radius:8px;
  border:2px solid var(--line);background:#fff;
  display:grid;place-items:center;transition:all .16s;
}
.check.on .box{background:var(--blue);border-color:var(--blue)}
.check .box svg{width:14px;height:14px;color:#fff;opacity:0;transform:scale(.5);transition:all .16s}
.check.on .box svg{opacity:1;transform:scale(1)}
.check .label{font-weight:700;font-size:14.5px;line-height:1.35}

/* toggle switch */
.switch{position:relative;display:inline-block;width:58px;height:32px;flex:0 0 58px}
.switch input{opacity:0;width:0;height:0}
.switch .track{
  position:absolute;inset:0;background:#CBD5E1;border-radius:99px;
  transition:background .22s;cursor:pointer;
}
.switch .track::before{
  content:'';position:absolute;height:26px;width:26px;left:3px;top:3px;
  background:#fff;border-radius:50%;transition:transform .22s cubic-bezier(.3,1.4,.5,1);
  box-shadow:0 2px 5px rgba(0,0,0,.2);
}
.switch input:checked + .track{background:var(--green)}
.switch input:checked + .track::before{transform:translateX(26px)}

/* =====================================================================
   BADGES / STATUS
   ===================================================================== */

.badge{
  display:inline-flex;align-items:center;gap:6px;
  padding:5px 11px;border-radius:99px;
  font-size:11.5px;font-weight:800;letter-spacing:.01em;
  white-space:nowrap;
}
.badge svg{width:13px;height:13px;flex:0 0 13px}
.b-blue{background:var(--blue-50);color:var(--blue)}
.b-green{background:var(--green-bg);color:var(--green)}
.b-amber{background:var(--amber-bg);color:var(--amber)}
.b-red{background:var(--red-bg);color:var(--red)}
.b-grey{background:#F1F5F9;color:var(--muted)}
.dot{width:7px;height:7px;border-radius:50%;background:currentColor}
.dot.live{animation:pulse 1.5s infinite}
@keyframes pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.35;transform:scale(.75)}}

/* =====================================================================
   TIMELINE (live tracking)
   ===================================================================== */

.timeline{padding-left:6px}
.tl-step{display:flex;gap:15px;position:relative;padding-bottom:22px}
.tl-step:last-child{padding-bottom:0}
.tl-step::before{
  content:'';position:absolute;left:12px;top:26px;bottom:0;
  width:2px;background:var(--line);
}
.tl-step:last-child::before{display:none}
.tl-dot{
  width:26px;height:26px;flex:0 0 26px;border-radius:50%;
  background:#fff;border:2px solid var(--line);
  display:grid;place-items:center;z-index:1;color:var(--muted-2);
}
.tl-dot svg{width:13px;height:13px}
.tl-step.done .tl-dot{background:var(--green);border-color:var(--green);color:#fff}
.tl-step.done::before{background:var(--green)}
.tl-step.now .tl-dot{background:var(--blue);border-color:var(--blue);color:#fff;
  box-shadow:0 0 0 5px rgba(37,99,235,.16);animation:pulse 1.8s infinite}
.tl-body{padding-top:2px}
.tl-title{font-weight:800;font-size:14.5px}
.tl-sub{font-size:12.5px;color:var(--muted)}

/* =====================================================================
   BOTTOM NAVIGATION
   ===================================================================== */

.bottom-nav{
  position:fixed;bottom:0;left:50%;transform:translateX(-50%);
  width:100%;max-width:520px;height:calc(var(--nav-h) + var(--safe-b));
  padding-bottom:var(--safe-b);
  background:rgba(255,255,255,.94);
  backdrop-filter:saturate(180%) blur(18px);
  -webkit-backdrop-filter:saturate(180%) blur(18px);
  border-top:1px solid var(--line);
  display:flex;z-index:50;
}
/* `display:flex` above beats the browser default for [hidden], so say it again */
.bottom-nav[hidden]{display:none}
.nav-item{
  flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:3px;border:0;background:none;font:inherit;cursor:pointer;
  color:var(--muted-2);padding:8px 0 6px;position:relative;
  transition:color .16s;
}
.nav-item svg{width:23px;height:23px;transition:transform .2s cubic-bezier(.3,1.5,.5,1)}
.nav-item span{font-size:10.5px;font-weight:800;letter-spacing:.01em}
.nav-item.active{color:var(--blue)}
.nav-item.active svg{transform:translateY(-2px) scale(1.06)}
.nav-item.active::after{
  content:'';position:absolute;top:0;left:50%;transform:translateX(-50%);
  width:26px;height:3px;border-radius:0 0 4px 4px;background:var(--blue);
}
.nav-badge{
  position:absolute;top:5px;right:calc(50% - 20px);
  min-width:17px;height:17px;padding:0 4px;border-radius:99px;
  background:var(--red);color:#fff;font-size:10px;font-weight:800;
  display:grid;place-items:center;
}

/* =====================================================================
   FLOATING HELPLINE BUTTON
   ===================================================================== */

.fab-help{
  position:fixed;right:calc(50% - 260px + 18px);
  bottom:calc(var(--nav-h) + var(--safe-b) + 18px);
  z-index:55;
  display:flex;align-items:center;gap:8px;
  padding:13px 17px;border-radius:99px;border:0;
  background:var(--green);color:#fff;font:inherit;font-weight:800;font-size:14px;
  box-shadow:0 10px 26px rgba(5,150,105,.36);
  cursor:pointer;text-decoration:none;
  animation:fabIn .4s cubic-bezier(.2,.9,.3,1.3) .5s both;
}
.fab-help:active{transform:scale(.94)}
.fab-help svg{width:18px;height:18px}
@keyframes fabIn{from{opacity:0;transform:translateY(20px) scale(.7)}to{opacity:1;transform:none}}
@media (max-width:560px){.fab-help{right:18px}}

/* =====================================================================
   SPLASH
   ===================================================================== */

#splash{
  position:fixed;inset:0;z-index:9000;
  background:linear-gradient(160deg,var(--blue) 0%,#1E40AF 100%);
  display:grid;place-items:center;
  transition:opacity .45s ease,visibility .45s;
}
#splash.gone{opacity:0;visibility:hidden;pointer-events:none}
.splash-inner{text-align:center;color:#fff}
.splash-logo{
  width:96px;height:96px;margin:0 auto 20px;border-radius:28px;
  background:rgba(255,255,255,.15);border:1.5px solid rgba(255,255,255,.28);
  display:grid;place-items:center;
  animation:logoIn .7s cubic-bezier(.2,.9,.3,1.35) both;
  backdrop-filter:blur(6px);
}
.splash-logo svg{width:50px;height:50px;color:#fff}
@keyframes logoIn{0%{opacity:0;transform:scale(.55) translateY(24px)}100%{opacity:1;transform:none}}
.splash-inner h1{font-size:25px;letter-spacing:-.03em;animation:fadeUp .5s .22s both}
.splash-inner p{color:rgba(255,255,255,.78);font-size:13.5px;font-weight:600;animation:fadeUp .5s .34s both}
.splash-bar{
  width:120px;height:3px;border-radius:99px;background:rgba(255,255,255,.25);
  margin:26px auto 0;overflow:hidden;animation:fadeUp .5s .45s both;
}
.splash-bar i{display:block;height:100%;width:40%;border-radius:99px;background:#fff;
  animation:loadBar 1.1s ease-in-out infinite}
@keyframes loadBar{0%{transform:translateX(-100%)}100%{transform:translateX(320%)}}

/* =====================================================================
   ONBOARDING SLIDER
   ===================================================================== */

#onboard{
  position:fixed;inset:0;z-index:8500;background:var(--card);
  display:flex;flex-direction:column;
  max-width:520px;margin:0 auto;
}
#onboard.gone{display:none}
.ob-track{flex:1;display:flex;overflow-x:auto;scroll-snap-type:x mandatory;
  scrollbar-width:none;-webkit-overflow-scrolling:touch}
.ob-track::-webkit-scrollbar{display:none}
.ob-slide{
  flex:0 0 100%;scroll-snap-align:center;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:40px 34px;text-align:center;
}
.ob-art{
  width:190px;height:190px;border-radius:50%;
  background:var(--blue-50);display:grid;place-items:center;margin-bottom:34px;
  position:relative;
}
.ob-art::after{content:'';position:absolute;inset:-14px;border-radius:50%;
  border:1.5px dashed var(--blue-100)}
.ob-art svg{width:84px;height:84px;color:var(--blue)}
.ob-slide h2{font-size:24px;margin-bottom:11px}
.ob-slide p{color:var(--muted);font-size:15px;line-height:1.6;max-width:300px}
.ob-foot{padding:22px 26px calc(30px + var(--safe-b))}
.ob-dots{display:flex;gap:7px;justify-content:center;margin-bottom:20px}
.ob-dots i{width:7px;height:7px;border-radius:99px;background:var(--line);transition:all .28s}
.ob-dots i.on{width:24px;background:var(--blue)}
.ob-skip{
  position:absolute;top:calc(var(--safe-t) + 16px);right:20px;z-index:2;
  border:0;background:none;font:inherit;font-weight:800;font-size:14px;
  color:var(--muted);cursor:pointer;
}

/* =====================================================================
   SKELETON LOADERS
   ===================================================================== */

.sk{
  background:linear-gradient(100deg,#E9EDF2 30%,#F4F7FA 50%,#E9EDF2 70%);
  background-size:220% 100%;
  animation:shimmer 1.25s linear infinite;
  border-radius:10px;
}
@keyframes shimmer{0%{background-position:150% 0}100%{background-position:-50% 0}}
.sk-line{height:12px;margin-bottom:9px}
.sk-line.w40{width:40%}.sk-line.w60{width:60%}.sk-line.w80{width:80%}
.sk-card{height:112px;border-radius:var(--r-lg)}
.sk-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:0 18px}

/* =====================================================================
   SHEETS / MODALS
   ===================================================================== */

.sheet-bg{
  position:fixed;inset:0;z-index:7000;background:rgba(11,18,32,.5);
  opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s;
  backdrop-filter:blur(2px);
}
.sheet-bg.open{opacity:1;visibility:visible}
.sheet{
  position:fixed;left:50%;transform:translateX(-50%) translateY(100%);
  bottom:0;width:100%;max-width:520px;z-index:7001;
  background:var(--card);border-radius:var(--r-xl) var(--r-xl) 0 0;
  padding:10px 20px calc(26px + var(--safe-b));
  transition:transform .32s cubic-bezier(.32,.72,.27,1);
  max-height:88vh;overflow-y:auto;
}
.sheet.open{transform:translateX(-50%) translateY(0)}
.sheet-grab{width:42px;height:4.5px;border-radius:99px;background:var(--line);margin:0 auto 18px}

/* centred modal (safety disclaimer) */
.modal{
  position:fixed;inset:0;z-index:7500;display:none;
  align-items:center;justify-content:center;padding:22px;
  background:rgba(11,18,32,.6);backdrop-filter:blur(3px);
}
.modal.open{display:flex;animation:fadeUp .26s ease both}
.modal-card{
  background:var(--card);border-radius:var(--r-lg);
  padding:26px 22px;max-width:420px;width:100%;
  box-shadow:var(--shadow-lg);
  animation:pop .32s cubic-bezier(.2,.9,.3,1.25) both;
  max-height:86vh;overflow-y:auto;
}

/* =====================================================================
   TOASTS
   ===================================================================== */

#toasts{
  position:fixed;top:calc(var(--safe-t) + 14px);left:50%;transform:translateX(-50%);
  z-index:9500;width:100%;max-width:440px;padding:0 16px;
  display:flex;flex-direction:column;gap:9px;pointer-events:none;
}
.toast{
  background:var(--ink);color:#fff;padding:13px 17px;border-radius:14px;
  font-size:14px;font-weight:700;box-shadow:var(--shadow-lg);
  animation:toastIn .3s cubic-bezier(.2,.9,.3,1.3) both;
  display:flex;align-items:center;gap:10px;
}
.toast.ok{background:var(--green)}
.toast.err{background:var(--red)}
.toast svg{width:18px;height:18px;flex:0 0 18px}
@keyframes toastIn{from{opacity:0;transform:translateY(-18px)}to{opacity:1;transform:none}}
.toast.out{animation:toastOut .25s ease forwards}
@keyframes toastOut{to{opacity:0;transform:translateY(-14px)}}

/* =====================================================================
   LISTS / ROWS
   ===================================================================== */

.list-row{
  display:flex;align-items:center;gap:14px;
  background:var(--card);border-radius:var(--r);padding:15px;
  box-shadow:var(--shadow-sm);margin-bottom:10px;
  animation:fadeUp .3s ease both;
}
.list-ico{
  width:44px;height:44px;flex:0 0 44px;border-radius:14px;
  display:grid;place-items:center;background:var(--blue-50);color:var(--blue);
}
.list-ico svg{width:21px;height:21px}

.kv{display:flex;justify-content:space-between;gap:14px;padding:9px 0;font-size:14.5px}
.kv + .kv{border-top:1px dashed var(--line)}
.kv .k{color:var(--muted);font-weight:600}
.kv .v{font-weight:800;text-align:right}
.kv.total{border-top:2px solid var(--ink);margin-top:6px;padding-top:13px;font-size:17px}
.kv.total .k{color:var(--ink);font-weight:800}

.empty{text-align:center;padding:54px 30px;animation:fadeUp .3s ease both}
.empty-ico{
  width:78px;height:78px;margin:0 auto 18px;border-radius:26px;
  background:var(--card);box-shadow:var(--shadow);display:grid;place-items:center;color:var(--muted-2);
}
.empty-ico svg{width:34px;height:34px}
.empty h3{margin-bottom:7px}
.empty p{color:var(--muted);font-size:14px}

/* map */
.map{width:100%;height:230px;border-radius:var(--r);overflow:hidden;background:#E6EBF1;
  border:1px solid var(--line)}
.map iframe{width:100%;height:100%;border:0}

/* amount stepper rows in invoice builder */
.line-item{display:flex;gap:9px;align-items:flex-start;margin-bottom:10px}
.line-item .input{font-size:14.5px;padding:12px 13px}
.line-item .amt{flex:0 0 108px}
.line-item .del{
  flex:0 0 44px;height:46px;border-radius:12px;border:1.5px solid var(--line);
  background:var(--card);color:var(--red);display:grid;place-items:center;cursor:pointer;
}
.line-item .del svg{width:17px;height:17px}

/* summary strip */
.strip{
  display:flex;gap:10px;padding:0 18px;overflow-x:auto;scrollbar-width:none;
}
.strip::-webkit-scrollbar{display:none}
.stat{
  flex:1 0 auto;min-width:118px;background:var(--card);border-radius:var(--r);
  padding:15px;box-shadow:var(--shadow-sm);
}
.stat .n{font-size:22px;font-weight:800;letter-spacing:-.03em}
.stat .l{font-size:11.5px;color:var(--muted);font-weight:700;margin-top:2px}

/* loading spinner inside buttons */
.spin{
  width:18px;height:18px;border-radius:50%;
  border:2.2px solid rgba(255,255,255,.35);border-top-color:#fff;
  animation:spin .7s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}
.btn-ghost .spin{border-color:rgba(37,99,235,.3);border-top-color:var(--blue)}

/* =====================================================================
   PRINT — used by "Save / print this bill"
   ===================================================================== */

@media print{
  .topbar,.bottom-nav,.fab-help,.action-bar,.btn,#splash,#onboard,
  #toasts,.sheet,.sheet-bg,#offline-bar{display:none !important}
  body{background:#fff;font-size:12pt}
  #app{max-width:none;box-shadow:none;min-height:0}
  .screen{display:none !important;padding:0}
  .screen.active{display:block !important}
  .card{box-shadow:none;border:1px solid #D9E0E8;break-inside:avoid;page-break-inside:avoid}
  .map{display:none}
  .pad{padding:0}
  a{color:inherit;text-decoration:none}
}

/* offline banner */
#offline-bar{
  position:fixed;top:0;left:0;right:0;z-index:9600;
  background:var(--ink);color:#fff;text-align:center;
  font-size:12.5px;font-weight:700;padding:8px;
  transform:translateY(-100%);transition:transform .3s;
}
#offline-bar.show{transform:none}
