/* StylesStudio Business -- light only, like the rest of the product (see the
   note at the top of styles.css: dark mode was removed on purpose). */
/* Fonts that come with the app (2026-11-20). An older PC (Windows 7) has no
   ₹ sign and no emoji in its own fonts and showed empty boxes instead of
   ₹2,658 and the icons. These small Noto fonts (SIL Open Font Licence) hold
   only the symbols the app uses; a phone or PC that has its own never
   downloads them (each face loads only when a character in its range is
   missing from every font before it in --font). */
@font-face { font-family: "BH Symbols"; src: url("/static/fonts/bh-symbols-regular.woff") format("woff"); font-weight: 100 599;
  unicode-range: U+2013-2014, U+201C-201D, U+2022, U+2026, U+2039-203A, U+20B9, U+211E, U+2212; font-display: swap; }
@font-face { font-family: "BH Symbols"; src: url("/static/fonts/bh-symbols-bold.woff") format("woff"); font-weight: 600 900;
  unicode-range: U+2013-2014, U+201C-201D, U+2022, U+2026, U+2039-203A, U+20B9, U+211E, U+2212; font-display: swap; }
@font-face { font-family: "BH Symbols"; src: url("/static/fonts/bh-symbols-shapes.woff") format("woff");
  unicode-range: U+25A5, U+25B2, U+25BC, U+25BE, U+2630, U+2713, U+2715, U+2717, U+27A4; font-display: swap; }
@font-face { font-family: "BH Symbols"; src: url("/static/fonts/bh-symbols-arrows.woff") format("woff");
  unicode-range: U+2190-2193, U+21BA, U+2260; font-display: swap; }
@font-face { font-family: "BH Emoji"; src: url("/static/fonts/bh-emoji.woff") format("woff");
  unicode-range: U+21A9, U+2328, U+23ED, U+23F0, U+23F3, U+23F8-23F9, U+25B6, U+2600, U+2695-2696, U+2699, U+26A0-26A1, U+26AA, U+26FD, U+2702, U+2705, U+2708, U+270B, U+270D, U+270F, U+2716, U+2728, U+274C, U+2764, U+2795-2797, U+2B06-2B07, U+2B50, U+FE0F, U+1F17F, U+1F195, U+1F1EE, U+1F1F3, U+1F305, U+1F310, U+1F317, U+1F319, U+1F31F, U+1F327, U+1F331, U+1F33E, U+1F35B, U+1F37D, U+1F381, U+1F384, U+1F386, U+1F389-1F38A, U+1F392, U+1F3A4, U+1F3A8, U+1F3AF, U+1F3C1, U+1F3C6, U+1F3CD, U+1F3D7, U+1F3D9, U+1F3DB, U+1F3E0, U+1F3E5-1F3E6, U+1F3EA, U+1F3ED, U+1F3F7, U+1F422, U+1F440, U+1F447, U+1F449, U+1F44B-1F44F, U+1F454-1F455, U+1F457, U+1F464-1F465, U+1F468, U+1F477, U+1F48A, U+1F48D, U+1F494, U+1F49B-1F49C, U+1F4A1, U+1F4AC, U+1F4AF-1F4B0, U+1F4B3, U+1F4B5, U+1F4B8, U+1F4BB-1F4BC, U+1F4BE, U+1F4C2, U+1F4C4-1F4C5, U+1F4C7-1F4CD, U+1F4CF-1F4D0, U+1F4D2, U+1F4D5, U+1F4DC-1F4DE, U+1F4E4-1F4E6, U+1F4EC, U+1F4F1-1F4F2, U+1F4F4, U+1F4F7-1F4F8, U+1F501, U+1F504, U+1F50C-1F50E, U+1F510-1F515, U+1F517, U+1F525-1F527, U+1F529, U+1F534-1F535, U+1F53B, U+1F550, U+1F552, U+1F575, U+1F5A8, U+1F5BC, U+1F5D1, U+1F5D3, U+1F5FA, U+1F600-1F64F, U+1F680, U+1F68C, U+1F690, U+1F695, U+1F697-1F69B, U+1F6A6, U+1F6A8, U+1F6AB, U+1F6CD-1F6CE, U+1F6D2, U+1F6DE, U+1F6E0-1F6E3, U+1F6F5, U+1F6FA-1F6FB, U+1F7E0, U+1F7E2, U+1F916, U+1F91D, U+1F9D1, U+1F9EA, U+1F9ED, U+1F9F1, U+1F9F5-1F9F6, U+1F9F9-1F9FA, U+1F9FE, U+1FA7A, U+1FA94, U+1FA99, U+1FAAA; font-display: swap; }
:root {
  color-scheme: only light;
  --plum: #4c145c;
  --plum-2: #6b2380;
  --plum-soft: #f4ecf7;
  --marigold: #f59e0b;
  --marigold-soft: #fff4dc;
  --green: #0f9d58;
  --green-soft: #e3f6ec;
  --red: #d93025;
  --red-soft: #fde8e6;
  --blue: #1a73e8;
  --blue-soft: #e8f0fe;
  --ink: #15121a;
  --muted: #6b6476;
  --line: #ebe6ef;
  --bg: #faf7fc;
  --card: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 2px 6px rgba(76, 20, 92, 0.06), 0 10px 30px rgba(76, 20, 92, 0.08);
  --shadow-sm: 0 1px 3px rgba(21, 18, 26, 0.08);
  --nav-h: 68px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", "BH Symbols",
    "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "BH Emoji", sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
  min-height: 100vh;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: var(--plum); }
img, svg { max-width: 100%; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.big-num { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.green { color: var(--green); }
.red { color: var(--red); }
.plum { color: var(--plum); }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.center { text-align: center; }

/* boot */
.boot { min-height: 100vh; display: grid; place-content: center; text-align: center; color: var(--muted); }
.boot-logo {
  width: 72px; height: 72px; border-radius: 22px; margin: 0 auto 12px;
  display: grid; place-items: center; font-size: 38px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--plum), var(--plum-2)); box-shadow: var(--shadow);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(1.06); } }
/* The Business Hub mark (2026-11-16): the Play app's icon + name on sign-in, sign-up and loading. */
.hub-logo { display: block; padding: 0; background: none; object-fit: cover; margin-bottom: 6px; }
.auth-hero .hub-logo { animation: none; }
.hub-word { font-weight: 800; font-size: 15px; letter-spacing: 0.01em; color: var(--plum); margin-bottom: 4px; }

/* layout */
.screen { max-width: 760px; margin: 0 auto; padding: 0 16px calc(var(--nav-h) + 96px); }
.topbar {
  position: sticky; top: 0; z-index: 20; background: rgba(250, 247, 252, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 12px 16px 10px; border-bottom: 1px solid var(--line);
}
.topbar-inner { max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 10px; }
.shop-badge {
  width: 40px; height: 40px; border-radius: 13px; flex: none;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px;
  background: linear-gradient(135deg, var(--hero-a, var(--plum)), var(--hero-b, var(--plum-2)));
}
.topbar h1 { font-size: 17px; margin: 0; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .sub { font-size: 12px; color: var(--muted); }
.icon-btn {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: var(--card); box-shadow: var(--shadow-sm); position: relative; flex: none; font-size: 19px;
}
.icon-btn .dot {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid var(--bg);
}
.lang-toggle { font-weight: 700; font-size: 13px; padding: 0 10px; width: auto; }

/* bottom nav */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--line);
  display: flex; justify-content: center;
}
.nav-inner { display: flex; width: 100%; max-width: 760px; }
.nav button {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 11.5px; font-weight: 600; color: var(--muted);
}
.nav button .ico { font-size: 22px; line-height: 1; transition: transform 0.2s; }
.nav button.active { color: var(--plum); }
.nav button.active .ico { transform: translateY(-2px) scale(1.12); }
.nav button.bill-btn .ico {
  width: 50px; height: 50px; margin-top: -26px; border-radius: 18px; display: grid; place-items: center;
  color: #fff; font-size: 26px; background: linear-gradient(135deg, var(--marigold), #f97316);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.45); border: 4px solid #fff;
}

/* Munim AI floating button */
.munim-fab {
  position: fixed; right: 16px; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); z-index: 31;
  height: 58px; padding: 0 20px 0 14px; border-radius: 29px; display: flex; align-items: center; gap: 8px;
  color: #fff; font-weight: 700; background: linear-gradient(135deg, var(--plum), var(--plum-2));
  box-shadow: 0 10px 28px rgba(76, 20, 92, 0.4);
}
body.fab-hide .munim-fab { display: none; }
.munim-fab { transition: transform 0.25s, opacity 0.25s; }
body.fab-away .munim-fab { transform: translateY(160%); opacity: 0; pointer-events: none; }
body.fab-mini .munim-fab { width: 58px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
body.fab-mini .munim-fab .face { font-size: 19px; }
.munim-fab .face {
  width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--plum);
  display: grid; place-items: center; font-size: 19px; animation: bob 3s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-3px) rotate(-6deg); } }

/* cards */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.card + .card { margin-top: 12px; }
.section-title { display: flex; justify-content: space-between; align-items: center; margin: 22px 2px 10px; }
.section-title h2 { font-size: 17px; margin: 0; }
.section-title button { color: var(--plum); font-weight: 600; font-size: 14px; }

/* hero */
.hero {
  margin-top: 14px; border-radius: 24px; padding: 18px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, var(--hero-a, #8e3aa6) 0%, var(--hero-b, var(--plum)) 55%, var(--hero-c, #2f0b3a) 100%);
  box-shadow: 0 14px 34px var(--hero-shadow, rgba(76, 20, 92, 0.35));
}
/* The shop's own trade, drawn big and faint in the corner of its hero card. */
.hero::before {
  content: var(--type-emoji, ""); position: absolute; right: 10px; top: 4px; font-size: 92px; line-height: 1;
  opacity: 0.16; transform: rotate(-12deg); pointer-events: none; filter: saturate(0.6);
}
.hero::after {
  content: ""; position: absolute; width: 220px; height: 220px; right: -70px; bottom: -110px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.45), transparent 70%);
}
.hero .greet { font-size: 14px; opacity: 0.85; }
.hero .label { font-size: 13px; opacity: 0.8; margin-top: 10px; }
.hero .amount { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.hero-grid { display: flex; gap: 16px; align-items: center; position: relative; z-index: 1; }
.ring { width: 108px; height: 108px; flex: none; position: relative; }
.ring svg { transform: rotate(-90deg); }
.ring .ring-text { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-size: 12px; line-height: 1.15; }
.ring .ring-text b { font-size: 20px; display: block; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; position: relative; z-index: 1; }
.hero-stat { background: rgba(255, 255, 255, 0.12); border-radius: 14px; padding: 9px 10px; }
.hero-stat .k { font-size: 11px; opacity: 0.8; }
.hero-stat .v { font-size: 16px; font-weight: 700; }
.streak {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 20px;
  background: rgba(255, 255, 255, 0.16); font-size: 13px; font-weight: 600; margin-top: 8px;
}
.streak .flame { animation: flicker 1.2s ease-in-out infinite; display: inline-block; }
@keyframes flicker { 50% { transform: scale(1.18) rotate(4deg); } }

/* action tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.tile {
  background: var(--card); border-radius: 18px; box-shadow: var(--shadow-sm); padding: 12px 6px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; text-align: center;
  transition: transform 0.12s;
}
.tile:active { transform: scale(0.95); }
.tile .ti { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; }
.ti.plum { background: var(--plum-soft); }
.ti.green { background: var(--green-soft); }
.ti.red { background: var(--red-soft); }
.ti.gold { background: var(--marigold-soft); }
.ti.blue { background: var(--blue-soft); }

/* live gold rate */
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #dc2626; margin-right: 2px;
  box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6); animation: livepulse 1.6s infinite; vertical-align: middle; }
@keyframes livepulse { 70% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); } 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); } }
.jw-rates small.green { color: #16a34a; font-weight: 700; }
.jw-rates small.red { color: #dc2626; font-weight: 700; }

/* Simple mode: four big buttons, two per row, on every screen size */
.tiles.simple-tiles { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
.simple-tiles .tile { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 18px 14px; font-size: 16px; text-align: left; border-radius: 20px; }
.simple-tiles .tile .ti { width: 54px; height: 54px; font-size: 28px; flex: none; }

/* insight cards */
.insight {
  display: flex; gap: 12px; padding: 14px; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border-left: 5px solid var(--plum); animation: rise 0.35s ease both;
}
.insight + .insight { margin-top: 10px; }
.insight.udhaar, .insight.credit_limit, .insight.loss, .insight.jobs_overdue { border-left-color: var(--red); }
.insight.reorder, .insight.dead_stock, .insight.payable { border-left-color: var(--marigold); }
.insight.winback, .insight.trend, .insight.slow_day { border-left-color: var(--blue); }
.insight.jobs_ready, .insight.setup_items, .insight.setup_upi { border-left-color: var(--green); }
.insight .ii { font-size: 26px; line-height: 1; }
.insight h3 { margin: 0 0 3px; font-size: 15px; }
.insight p { margin: 0; color: var(--muted); font-size: 13.5px; }
.insight .act { margin-top: 10px; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px;
  border-radius: 14px; font-weight: 700; font-size: 15.5px; background: var(--plum); color: #fff;
  transition: transform 0.1s, opacity 0.2s; text-decoration: none;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; }
.btn.block { width: 100%; }
.btn.big { min-height: 58px; font-size: 18px; border-radius: 18px; }
.btn.ghost { background: var(--plum-soft); color: var(--plum); }
.btn.green { background: var(--green); color: #fff; }
.btn.red { background: var(--red); color: #fff; }
.btn.gold { background: var(--marigold); color: #241600; }
.btn.white { background: #fff; color: var(--plum); box-shadow: var(--shadow-sm); }
.btn.wa { background: #25d366; color: #06301a; }
.btn.sm { min-height: 38px; padding: 0 13px; font-size: 14px; border-radius: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px; font-size: 14px;
  background: #fff; border: 1.5px solid var(--line); font-weight: 600;
}
.chip.on { background: var(--plum); color: #fff; border-color: var(--plum); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chips.scroll .chip, .stage-strip .chip, .suggestions .chip { white-space: nowrap; flex: none; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill.red { background: var(--red-soft); color: var(--red); }
.pill.green { background: var(--green-soft); color: var(--green); }
.pill.gold { background: var(--marigold-soft); color: #9a5b00; }
.pill.plum { background: var(--plum-soft); color: var(--plum); }
.pill.blue { background: var(--blue-soft); color: var(--blue); }

/* forms */
.field { display: block; }
.field > span { display: block; font-size: 13.5px; font-weight: 600; color: var(--muted); margin: 0 0 6px 2px; }
.input, select.input, textarea.input {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line);
  background: #fff; font-size: 17px; outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
textarea.input { min-height: 96px; resize: vertical; }
.input:focus { border-color: var(--plum); box-shadow: 0 0 0 4px rgba(76, 20, 92, 0.1); }
.input.amount { font-size: 28px; font-weight: 800; text-align: center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--plum); }

/* switch */
.switch { position: relative; width: 52px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch .track { position: absolute; inset: 0; border-radius: 15px; background: #d9d3de; transition: background 0.2s; }
.switch .track::after {
  content: ""; position: absolute; width: 24px; height: 24px; top: 3px; left: 3px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-sm); transition: transform 0.2s;
}
.switch input:checked + .track { background: var(--green); }
.switch input:checked + .track::after { transform: translateX(22px); }
.switch input:disabled + .track { opacity: 0.6; }

/* lists */
.list { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.li { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; }
.li:last-child { border-bottom: 0; }
.li:active { background: #faf6fb; }
.avatar {
  width: 42px; height: 42px; border-radius: 14px; flex: none; display: grid; place-items: center;
  font-weight: 800; color: var(--plum); background: var(--plum-soft); font-size: 16px;
}
.avatar.sup { color: #9a5b00; background: var(--marigold-soft); }
.li .t { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .s { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .amt { font-weight: 800; text-align: right; white-space: nowrap; }
.li .amt small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty .em { font-size: 46px; display: block; margin-bottom: 8px; }

/* summary pair */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.pair .card { padding: 14px; margin: 0; }
.pair { align-items: stretch; }
.pair .k { font-size: 13px; color: var(--muted); font-weight: 600; }
.pair .v { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }

/* search */
.search { position: relative; margin-top: 12px; }
.search input { padding-left: 44px; }
.search .si { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-size: 18px; opacity: 0.6; }

/* tabs */
.tabs { display: flex; background: #efe8f2; border-radius: 14px; padding: 4px; margin-top: 14px; }
.tabs button { flex: 1; min-height: 42px; border-radius: 11px; font-weight: 700; font-size: 14.5px; color: var(--muted); }
.tabs button.on { background: #fff; color: var(--plum); box-shadow: var(--shadow-sm); }

/* bill builder */
.bill-lines .bl { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.bill-lines .bl:last-child { border-bottom: 0; }
.stepper { display: flex; align-items: center; background: var(--plum-soft); border-radius: 12px; flex: none; }
.stepper button { width: 36px; height: 38px; font-size: 20px; font-weight: 800; color: var(--plum); }
.stepper input { width: 52px; text-align: center; border: 0; background: transparent; font-weight: 800; font-size: 16px; outline: none; }
.rate-input { width: 86px; min-height: 40px; padding: 6px 8px; border: 1.5px solid var(--line); border-radius: 10px; text-align: right; font-weight: 700; }
.pay-modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pay-modes.five { grid-template-columns: repeat(5, 1fr); }
.pay-modes.five .pay-mode { font-size: 12.5px; padding-left: 2px; padding-right: 2px; }
.split-box .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.points-row { background: var(--marigold-soft); border-radius: 12px; padding: 8px 10px; }
.held-bar { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; margin-bottom: 10px; background: var(--marigold-soft); }
.hold-btn { flex: none; min-width: 56px; }
#s-loy-box { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pay-mode {
  min-height: 64px; border-radius: 16px; background: #fff; border: 2px solid var(--line); font-weight: 700;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 13px;
}
.pay-mode .pi { font-size: 22px; }
.pay-mode.on { border-color: var(--plum); background: var(--plum-soft); color: var(--plum); }
.pay-mode.on.credit { border-color: var(--red); background: var(--red-soft); color: var(--red); }
.total-bar {
  position: sticky; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 8px); z-index: 10; margin-top: 16px;
  background: #1d1024; color: #fff; border-radius: 20px; padding: 12px 12px 12px 18px; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 12px 30px rgba(29, 16, 36, 0.35);
}
.total-bar .tl { font-size: 12px; opacity: 0.7; }
.total-bar .tv { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.suggest { margin-top: 8px; }
.suggest .li .price { font-weight: 700; color: var(--plum); }

/* receipt */
.receipt { background: #fff; border-radius: 18px; padding: 20px 18px; box-shadow: var(--shadow); font-size: 14px; position: relative; }
.receipt::before, .receipt::after {
  content: ""; position: absolute; left: 0; right: 0; height: 10px;
  background: radial-gradient(circle at 8px -2px, transparent 8px, #fff 9px) repeat-x; background-size: 16px 10px;
}
.receipt::before { top: -9px; transform: rotate(180deg); }
.receipt::after { bottom: -9px; }
.receipt h3 { text-align: center; margin: 0; font-size: 19px; }
.receipt .rc { text-align: center; color: var(--muted); font-size: 12.5px; }
.receipt table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.receipt td, .receipt th { padding: 5px 0; text-align: left; vertical-align: top; }
.receipt th { font-size: 12px; color: var(--muted); border-bottom: 1px dashed #ccc; }
.receipt td.r, .receipt th.r { text-align: right; padding-left: 10px; white-space: nowrap; } /* big amounts must not run together */
.receipt .tot { border-top: 1px dashed #ccc; padding-top: 8px; }
.receipt .tot .row { justify-content: space-between; }
.receipt .grand { font-size: 20px; font-weight: 800; }
.stamp {
  position: absolute; right: 14px; top: 54px; transform: rotate(-12deg); border: 3px solid var(--green); color: var(--green);
  padding: 2px 10px; border-radius: 8px; font-weight: 900; letter-spacing: 0.1em; opacity: 0.85;
}
.stamp.due { border-color: var(--red); color: var(--red); }
.stamp.void { border-color: #888; color: #888; }
.void-note { margin-top: 10px; padding: 8px 10px; border: 2px solid var(--red); border-radius: 10px; color: var(--red); font-size: 13px; text-align: center; }
.success-burst { text-align: center; margin: 18px 0 10px; }
.success-burst .tick {
  width: 76px; height: 76px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; font-size: 40px;
  color: #fff; background: var(--green); animation: pop 0.45s cubic-bezier(0.2, 1.6, 0.4, 1) both;
  box-shadow: 0 0 0 10px var(--green-soft);
}
@keyframes pop { from { transform: scale(0.3); opacity: 0; } }

/* sheets (bottom modals) */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 50; background: rgba(21, 12, 26, 0.45); display: flex; align-items: flex-end;
  justify-content: center; animation: fade 0.2s ease;
}
.sheet {
  width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto; background: var(--bg); border-radius: 26px 26px 0 0;
  padding: 10px 16px calc(24px + env(safe-area-inset-bottom)); animation: up 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: #d6cfdb; margin: 0 auto 12px; }
.sheet h2 { margin: 0 0 14px; font-size: 20px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sheet-head h2 { margin: 0; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0.4; } }

/* Munim chat */
.chat { display: flex; flex-direction: column; gap: 10px; min-height: 200px; max-height: 52vh; overflow-y: auto; padding: 4px 2px 10px; }
.bubble { max-width: 86%; padding: 11px 14px; border-radius: 18px; font-size: 15px; white-space: pre-wrap; animation: rise 0.25s ease both; }
.bubble.me { align-self: flex-end; background: var(--plum); color: #fff; border-bottom-right-radius: 6px; }
.bubble.ai { align-self: flex-start; background: #fff; box-shadow: var(--shadow-sm); border-bottom-left-radius: 6px; }
.bubble.ai.typing { color: var(--muted); }
.typing-dots span { display: inline-block; width: 7px; height: 7px; margin: 0 2px; border-radius: 50%; background: var(--plum-2); animation: dots 1s infinite; }
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dots { 50% { transform: translateY(-5px); opacity: 0.5; } }
.action-card { align-self: stretch; background: #fff; border: 2px dashed var(--marigold); border-radius: 16px; padding: 12px; animation: rise 0.3s ease both; }
.action-card.done { border-style: solid; border-color: var(--green); background: var(--green-soft); }
.action-card.cancelled { opacity: 0.55; border-style: solid; border-color: var(--line); }
.action-card .ah { font-size: 12px; font-weight: 800; color: #9a5b00; letter-spacing: 0.04em; text-transform: uppercase; }
.action-card.done .ah { color: var(--green); }
.action-card .ab { font-weight: 650; margin: 4px 0 10px; }
.chat-input { display: flex; gap: 8px; align-items: flex-end; }
.chat-input textarea { flex: 1; min-height: 52px; max-height: 120px; resize: none; }
.mic {
  width: 56px; height: 56px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 24px;
  background: linear-gradient(135deg, var(--marigold), #f97316); color: #fff; box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}
.mic.listening { animation: listen 1s ease-in-out infinite; background: var(--red); }
@keyframes listen { 50% { box-shadow: 0 0 0 14px rgba(217, 48, 37, 0.15); } }
.send { width: 52px; height: 52px; border-radius: 16px; background: var(--plum); color: #fff; font-size: 20px; flex: none; }
.suggestions { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; }
.suggestions::-webkit-scrollbar { display: none; }
.suggestions .chip { white-space: nowrap; font-size: 13px; }

/* setup wizard */
.wizard { max-width: 640px; margin: 0 auto; padding: 18px 16px 120px; }
.wizard-hero { text-align: center; padding: 18px 0 8px; }
.wizard-hero .boot-logo { animation: none; }
.wizard-hero h1 { font-size: 26px; margin: 8px 0 4px; letter-spacing: -0.02em; }
.wizard-hero p { color: var(--muted); margin: 0; }
.steps { display: flex; gap: 6px; justify-content: center; margin: 14px 0 6px; }
.steps i { width: 30px; height: 6px; border-radius: 3px; background: #e4dbe9; }
.steps i.on { background: var(--plum); }
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
/* "Choose your business" (one login, several businesses) */
.pk-list { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.pk-card { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: #fff; border: 2px solid var(--line, #e7e2ec);
  border-radius: 18px; padding: 16px; font: inherit; color: inherit; cursor: pointer; box-shadow: 0 2px 8px rgba(40, 10, 60, .06); }
.pk-card:active { transform: scale(.99); }
.pk-card.on { border-color: var(--plum); }
.pk-card.busy { opacity: .6; pointer-events: none; }
.pk-card .grow { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pk-emoji { font-size: 34px; width: 56px; height: 56px; border-radius: 16px; background: var(--plum-soft); display: flex; align-items: center; justify-content: center; flex: none; }
.pk-name { font-size: 18px; font-weight: 800; }
.pk-type, .pk-plan { font-size: 13px; color: var(--muted, #6b6475); }
.pk-today { font-size: 14px; }
.pk-go { font-size: 22px; font-weight: 800; color: var(--plum); }
.pk-add { border-style: dashed; box-shadow: none; background: transparent; }
.pk-add .pk-emoji { color: var(--plum); font-weight: 800; }
.type-tile {
  background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 14px 6px; text-align: center;
  font-size: 12.5px; font-weight: 650; display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 104px;
  transition: transform 0.12s, border-color 0.15s;
}
.type-tile .te { font-size: 30px; }
.type-tile.on { border-color: var(--plum); background: var(--plum-soft); color: var(--plum); transform: translateY(-2px); }
.module-row { display: flex; gap: 12px; align-items: center; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.module-row:last-child { border-bottom: 0; }
.module-row .me { font-size: 24px; width: 34px; text-align: center; }
.module-row .mt { font-weight: 700; }
.module-row .mw { font-size: 13px; color: var(--muted); }
.ai-bubble {
  display: flex; gap: 10px; background: linear-gradient(135deg, #fff, var(--plum-soft)); border: 1px solid #ead9f0;
  border-radius: 18px; padding: 14px; margin: 14px 0;
}
.ai-bubble .face { width: 40px; height: 40px; border-radius: 50%; background: var(--plum); color: #fff; display: grid; place-items: center; font-size: 20px; flex: none; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 30%); z-index: 20; }
.sticky-cta .btn { max-width: 608px; margin: 0 auto; display: flex; }

/* auth */
.auth { max-width: 460px; margin: 0 auto; padding: 24px 16px 60px; }
.auth-hero { text-align: center; margin: 18px 0 22px; }
.auth-hero h1 { font-size: 27px; margin: 10px 0 6px; letter-spacing: -0.02em; }
.auth-hero p { color: var(--muted); margin: 0; }
/* Continue with WhatsApp (2026-11-03): WhatsApp's own green, so it reads as WhatsApp at a glance. */
.btn.wa-btn { background: #1a9e4b; border-color: #1a9e4b; color: #fff; display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; }
.btn.wa-btn:hover, .btn.wa-btn:focus-visible { background: #158a40; }
.wa-ico { flex: none; }
.boot-logo.wa-logo { background: #1a9e4b; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.boot-logo.wa-logo .wa-ico { width: 34px; height: 34px; }
.wa-bubble-card { background: #efeae2; border: none; padding: 14px 16px; margin-bottom: 14px; }
.wa-to { margin-bottom: 8px; }
.wa-bubble { display: inline-block; background: #d9fdd3; color: #111; border-radius: 10px 0 10px 10px; padding: 10px 14px; font-size: 22px; font-weight: 700; letter-spacing: 0.06em; float: right; box-shadow: 0 1px 1px rgba(0,0,0,0.12); }
.wa-bubble-card::after { content: ""; display: block; clear: both; }
.wa-qr { margin-bottom: 14px; }
.wa-qr img { display: block; margin: 0 auto 8px; image-rendering: pixelated; }
.wa-state { margin: 16px 0 4px; font-size: 17px; font-weight: 600; }
.input.wa-name { font-size: 20px; padding: 14px; }
.feature-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0; }
.feature-strip div { background: #fff; border-radius: 14px; padding: 10px 6px; text-align: center; font-size: 12px; font-weight: 600; box-shadow: var(--shadow-sm); }
.feature-strip b { display: block; font-size: 22px; }
.error { color: var(--red); font-size: 14px; font-weight: 600; min-height: 20px; }

/* jobs board */
.stage-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.stage-strip::-webkit-scrollbar { display: none; }
.job-card { background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm); padding: 13px 14px; }
.job-card + .job-card { margin-top: 10px; }
.job-card.overdue { box-shadow: inset 4px 0 0 var(--red), var(--shadow-sm); }
.progress { height: 6px; border-radius: 3px; background: #eee6f1; overflow: hidden; margin: 10px 0 8px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--plum), var(--marigold)); border-radius: 3px; transition: width 0.4s; }

/* charts */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 90px; margin-top: 10px; }
.bars div { flex: 1; background: linear-gradient(180deg, var(--plum-2), var(--plum)); border-radius: 5px 5px 2px 2px; min-height: 3px; position: relative; transition: height 0.5s; }
.bars div.today { background: linear-gradient(180deg, var(--marigold), #f97316); }
.bars-labels { display: flex; gap: 4px; font-size: 10px; color: var(--muted); margin-top: 4px; }
.bars-labels span { flex: 1; text-align: center; }
.hbar { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: 14px; }
.hbar .hb { flex: 1; height: 10px; background: #f1ebf4; border-radius: 5px; overflow: hidden; }
.hbar .hb i { display: block; height: 100%; background: var(--plum); border-radius: 5px; }

/* festival */
.fest {
  min-width: 230px; border-radius: 20px; padding: 14px; color: #3b1b00; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #ffe9b8, #ffc56b); box-shadow: var(--shadow-sm);
}
.fest .fd { font-size: 12px; font-weight: 700; opacity: 0.75; }
.fest .fn { font-size: 19px; font-weight: 800; margin: 2px 0 6px; }
.fest .fe { position: absolute; right: 10px; top: 8px; font-size: 34px; opacity: 0.9; }
.fest-strip { display: flex; gap: 10px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.fest-strip::-webkit-scrollbar { display: none; }
.idea { background: #fff; border-radius: 16px; padding: 14px; box-shadow: var(--shadow-sm); }
.idea + .idea { margin-top: 10px; }
.wa-preview { background: #e7ffdb; border-radius: 14px 14px 14px 4px; padding: 12px 14px; white-space: pre-wrap; font-size: 14.5px; box-shadow: var(--shadow-sm); }

/* toast + confetti */
#toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 90px); transform: translateX(-50%) translateY(20px); z-index: 80;
  background: #1d1024; color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 14.5px;
  opacity: 0; pointer-events: none; transition: all 0.25s; max-width: calc(100% - 32px); text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.err { background: var(--red); }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; width: 100%; height: 100%; }

/* settings */
.settings-group { margin-top: 18px; }
.settings-group h3 { font-size: 14px; color: var(--muted); margin: 0 4px 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.qr-box { text-align: center; }
.qr-box img { width: 200px; height: 200px; border-radius: 12px; background: #fff; padding: 8px; box-shadow: var(--shadow-sm); }

@media (max-width: 380px) {
  .tiles { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .tile { font-size: 11px; }
  .tile .ti { width: 42px; height: 42px; font-size: 21px; }
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .hero .amount { font-size: 32px; }
  .pay-modes { grid-template-columns: repeat(2, 1fr); }
  .pay-modes.five { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 720px) {
  .tiles { grid-template-columns: repeat(8, 1fr); }
}

/* Voice bill: say the whole bill */
.voice-bill { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 10px; padding: 12px 14px; text-align: left;
  border-radius: var(--radius); background: linear-gradient(135deg, var(--plum), #7a3d8f); color: #fff; box-shadow: var(--shadow); }
.voice-bill .vb-mic { font-size: 26px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; flex: none; }
.voice-bill .vb-t b { display: block; font-size: 16px; }
.voice-bill .vb-t small { display: block; opacity: .85; font-size: 12.5px; margin-top: 2px; }
.voice-bill.small { padding: 8px 12px; }
.voice-bill.small .vb-mic { width: 34px; height: 34px; font-size: 20px; }
.voice-bill.listening .vb-mic { animation: vbpulse 1s ease-in-out infinite; background: #e53935; }
@keyframes vbpulse { 50% { transform: scale(1.12); box-shadow: 0 0 0 8px rgba(229,57,53,.25); } }
.vb-heard { margin-top: 6px; font-size: 13px; color: var(--muted); font-style: italic; }

/* print: thermal-receipt friendly */
@media print {
  body { background: #fff; }
  body * { visibility: hidden; }
  .receipt, .receipt * { visibility: visible; }
  .receipt { position: absolute; left: 0; top: 0; width: 72mm; box-shadow: none; padding: 0; font-size: 12px; }
  .receipt::before, .receipt::after, .stamp { display: none; }
  @page { margin: 4mm; }
  /* The full-page invoice brings its own print styles (a4InvoiceCSS in business.js). */
}
.a4inv { display: none; }

/* Munim Autopilot: today's plan card + run screen */
.plan-card {
  margin-top: 14px; padding: 14px; border-radius: var(--radius); background: linear-gradient(135deg, #fff8e8, #fff 60%);
  box-shadow: var(--shadow); border: 1px solid #f6e3b8; animation: rise 0.35s ease both;
}
.plan-card.done { background: linear-gradient(135deg, var(--green-soft), #fff 70%); border-color: #cdeedb; }
.plan-ring { width: 64px; height: 64px; position: relative; flex: none; }
.plan-ring-t { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.plan-k { font-size: 12px; font-weight: 700; color: #9a5b00; letter-spacing: 0.02em; text-transform: uppercase; }
.plan-card.done .plan-k { color: var(--green); }
.plan-h { font-size: 16px; font-weight: 700; margin-top: 2px; }
.plan-list { margin-top: 10px; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.plan-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.plan-row:last-child { border-bottom: 0; }
.plan-row .pi { font-size: 22px; flex: none; }
.plan-row b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-row small { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chev { color: var(--muted); font-size: 22px; flex: none; }
.plan-more { width: 100%; padding: 10px; font-weight: 700; color: var(--plum); font-size: 14px; }
.run-progress { height: 6px; border-radius: 3px; background: var(--plum-soft); margin: 8px 0 14px; overflow: hidden; }
.run-progress > div { height: 100%; background: linear-gradient(90deg, var(--marigold), var(--green)); transition: width 0.4s ease; }
.run-card { text-align: center; animation: rise 0.3s ease both; }
.run-card h2 { margin: 6px 0 4px; font-size: 21px; }
.run-card p { margin: 0; }
.run-group { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--plum-soft); color: var(--plum); }
.run-icon { font-size: 46px; margin-top: 10px; }
.wa-preview {
  margin-top: 12px; text-align: left; white-space: pre-wrap; font-size: 14px; background: #e7fbe9; border-radius: 4px 14px 14px 14px;
  padding: 10px 12px; border: 1px solid #c9efcf; max-height: 210px; overflow: auto; word-break: break-word;
}
.run-finish { text-align: center; padding: 18px 0 4px; }
.run-finish .tick { font-size: 58px; }
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

/* staff login + security */
.pin-input { letter-spacing: 0.4em; font-size: 22px; text-align: center; }
.role-list { display: grid; gap: 8px; }
.role { text-align: left; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--line); background: #fff; }
.role b { display: block; }
.role small { color: var(--muted); font-size: 12.5px; }
.role.on { border-color: var(--plum); background: var(--plum-soft); }
.perm-box summary { cursor: pointer; font-weight: 600; color: var(--plum); padding: 4px 0; }
.perm { display: flex; gap: 10px; align-items: center; padding: 8px 2px; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.perm input { width: 20px; height: 20px; accent-color: var(--plum); }
.li.audit .t { white-space: normal; font-weight: 600; font-size: 14.5px; }
.li.audit .s { white-space: normal; }
.li.audit.flagged { box-shadow: inset 4px 0 0 var(--red); background: #fffafa; }

/* barcode scanning */
.search-row { display: flex; gap: 8px; align-items: stretch; margin-top: 12px; }
.search-row .search { margin-top: 0; }
.scan-btn {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-width: 64px; padding: 4px 10px; border-radius: var(--radius-sm); background: var(--plum); color: #fff;
  font-size: 12px; font-weight: 700; box-shadow: var(--shadow-sm);
}
.scan-btn span { font-size: 22px; line-height: 1; letter-spacing: -1px; }
.scan-btn:active { transform: scale(0.96); }
.code-big { font-weight: 800; font-size: 20px; letter-spacing: 0.08em; margin-top: 2px; word-break: break-all; }
body.scan-open { overflow: hidden; }
.scan-wrap { position: fixed; inset: 0; z-index: 1000; background: #000; color: #fff; }
.scan-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-shade { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.scan-box {
  position: relative; width: min(78vw, 360px); height: min(44vw, 200px); border-radius: 16px;
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.55); transition: box-shadow 0.2s ease;
}
.scan-box span { position: absolute; width: 28px; height: 28px; border: 4px solid var(--marigold); }
.scan-box .c1 { top: -2px; left: -2px; border-right: 0; border-bottom: 0; border-radius: 14px 0 0 0; }
.scan-box .c2 { top: -2px; right: -2px; border-left: 0; border-bottom: 0; border-radius: 0 14px 0 0; }
.scan-box .c3 { bottom: -2px; left: -2px; border-right: 0; border-top: 0; border-radius: 0 0 0 14px; }
.scan-box .c4 { bottom: -2px; right: -2px; border-left: 0; border-top: 0; border-radius: 0 0 14px 0; }
.scan-line { position: absolute; left: 8%; right: 8%; height: 2px; background: #ff3b30; box-shadow: 0 0 10px #ff3b30; animation: scanline 1.8s ease-in-out infinite; }
@keyframes scanline { 0%, 100% { top: 12%; } 50% { top: 86%; } }
.scan-wrap.hit .scan-box { box-shadow: 0 0 0 100vmax rgba(15, 157, 88, 0.45); }
.scan-wrap.hit .scan-box span { border-color: #34d399; }
.scan-top {
  position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 10px;
  padding: calc(12px + env(safe-area-inset-top)) 14px 12px; background: linear-gradient(rgba(0, 0, 0, 0.6), transparent);
}
.scan-top b { flex: 1; font-size: 17px; text-align: center; }
.scan-x, .scan-torch { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 20px; }
.scan-torch.on { background: var(--marigold); }
.scan-top .scan-torch[hidden] { display: block; visibility: hidden; }
.scan-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 16px calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75) 30%);
}
.scan-msg { text-align: center; font-size: 15.5px; font-weight: 600; margin-bottom: 10px; text-shadow: 0 1px 3px #000; }
.scan-results { display: grid; gap: 6px; margin-bottom: 12px; }
.scan-result { background: rgba(15, 157, 88, 0.92); padding: 9px 12px; border-radius: 12px; font-weight: 700; animation: rise 0.25s ease both; }
.scan-result.bad { background: rgba(217, 48, 37, 0.92); }
.scan-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* printer setup */
.printer-kinds { display: grid; gap: 8px; }
.pk {
  display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border-radius: 16px;
  border: 2px solid var(--line); background: #fff;
}
.pk.on { border-color: var(--plum); background: var(--plum-soft); }
.pk-i { font-size: 30px; flex: none; }
.pk b { display: block; font-size: 15.5px; }
.pk small { display: block; color: var(--muted); font-size: 13px; }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg2 button { padding: 10px; border-radius: 14px; border: 2px solid var(--line); background: #fff; }
.seg2 button b { display: block; font-size: 16px; }
.seg2 button small { color: var(--muted); }
.seg2 button.on { border-color: var(--plum); background: var(--plum-soft); }
.how-steps { margin: 14px 0 12px; padding-left: 22px; display: grid; gap: 6px; font-size: 15px; }
.card.hint { margin-top: 12px; background: var(--marigold-soft); box-shadow: none; font-size: 14.5px; }
.card.hint.warn { background: var(--red-soft); }
.card.ok-card { margin: 4px 0 10px; background: var(--green-soft); box-shadow: none; }
.pr-help { margin-top: 12px; }
.pr-help summary { cursor: pointer; font-weight: 600; color: var(--plum); padding: 4px 0; }
.link-btn { display: block; margin: 12px auto 0; color: var(--plum); font-weight: 600; font-size: 14px; padding: 6px 10px; }
.label-preview { display: grid; place-items: center; padding: 12px; background: var(--bg); border-radius: 14px; }
.label-canvas { width: 100%; max-width: 250px; height: auto; background: #fff; box-shadow: var(--shadow-sm); border-radius: 6px; }

/* printing a drawn receipt / label through the normal print window */
.hw-print { display: none; }
@media print {
  body.hw-printing > *:not(.hw-print) { display: none !important; }
  body.hw-printing .hw-print, body.hw-printing .hw-print * { visibility: visible !important; }
  body.hw-printing .hw-print { display: block !important; }
  body.hw-printing .hw-print img { display: block; margin: 0 auto 3mm; break-inside: avoid; }
  body.hw-printing .hw-print.labels { display: flex !important; flex-wrap: wrap; gap: 3mm; align-content: flex-start; }
  body.hw-printing .hw-print.labels img { margin: 0; }
}

/* stock by size: a colour x size grid */
.lt-matrix table { border-collapse: separate; border-spacing: 6px; }
.lt-matrix th { font-size: 13px; font-weight: 800; color: var(--muted); text-align: center; }
.lt-matrix tbody th { text-align: left; white-space: nowrap; }
.lt-matrix .input { width: 62px; padding: 8px 6px; text-align: center; }
.lt-q { text-align: center; }

/* returns */
.stamp.ret { border-color: var(--blue); color: var(--blue); }
.rt-line.done { opacity: 0.55; }
.stmt-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.stmt-sum > div { background: var(--card, #fff); border-radius: 12px; padding: 8px 10px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.stmt-sum span { display: block; font-size: 12.5px; color: var(--muted, #6b6470); }
.stmt-sum b { font-size: 15.5px; }
.stmt-sum b small { font-size: 11px; font-weight: 600; }
.stmt-sum .close { grid-column: 1 / -1; background: var(--marigold-soft, #fff4dc); }
.stmt-sum .close b { font-size: 22px; }
.stmt-list .li { align-items: flex-start; }
.stmt-list .t { white-space: normal; }
.stmt-list .s { white-space: normal; }
.stmt-date { min-width: 44px; font-weight: 700; font-size: 14px; line-height: 1.1; text-align: center; }
.stmt-date small { display: block; font-weight: 500; font-size: 11px; color: var(--muted, #6b6470); }
.stmt-ask { margin-top: 12px; border: 2px solid var(--marigold, #f5a623); }
.rf-card { margin-top: 12px; }
.rf-head { font-size: 16px; margin-bottom: 2px; }
.rf-found:empty { display: none; }
.rf-bill { border-top: 1px solid var(--line, #e5e0d6); padding: 10px 0 4px; margin-top: 8px; }
.rf-line { display: flex; align-items: center; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.rf-line .grow { min-width: 140px; }
.rf-hit { font-weight: 700; }
.rt-line .t { white-space: normal; }
.rt-shelf { margin-top: 6px; font-size: 12.5px; padding: 5px 10px; }
.rt-shelf.bad { background: var(--red-soft); color: var(--red); border-color: #f5c6c2; }
.seg3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg3 button { padding: 10px 6px; border-radius: 14px; border: 2px solid var(--line); background: #fff; text-align: center; }
.seg3 button span { display: block; font-size: 22px; }
.seg3 button b { display: block; font-size: 14.5px; }
.seg3 button small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.25; margin-top: 2px; }
.seg3 button.on { border-color: var(--plum); background: var(--plum-soft); }
.return-sum { margin: 14px 0 10px; padding: 12px 14px; border-radius: 14px; background: var(--blue-soft); }
.return-sum .row b { font-size: 19px; }
.return-how { margin-top: 4px; font-weight: 600; color: var(--plum); }

/* daily cash close */
.cash-should { text-align: center; background: linear-gradient(135deg, var(--green-soft), #fff 70%); }
.cash-should .k { font-size: 13px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 0.02em; }
.cash-should .v { font-size: 36px; font-weight: 800; margin-top: 4px; }
.cash-break { margin-top: 10px; text-align: left; }
.cash-break summary { cursor: pointer; font-weight: 600; color: var(--plum); text-align: center; padding: 4px 0; }
.cash-break .row { padding: 5px 0; border-bottom: 1px dashed var(--line); }
.small-v { font-size: 20px !important; }
.note-grid { display: grid; gap: 8px; }
.note-row { display: grid; grid-template-columns: 74px 1fr 84px; align-items: center; gap: 8px; }
.note { display: inline-block; text-align: center; font-weight: 800; padding: 7px 4px; border-radius: 8px; font-size: 14.5px; border: 1px solid rgba(0, 0, 0, 0.08); }
.note.n500 { background: #e5e3d8; } .note.n200 { background: #fde2a8; } .note.n100 { background: #d9d3f0; }
.note.n50 { background: #cfe9ee; } .note.n20 { background: #e3efc4; } .note.n10 { background: #ead8c4; }
.note.coins { background: #eee; font-weight: 700; }
.note-sum { text-align: right; font-weight: 700; color: var(--muted); font-size: 14px; }
.counted-row { margin-top: 6px; padding-top: 10px; border-top: 2px solid var(--line); font-size: 18px; }
.counted-row b { font-size: 24px; }
.diff { display: inline-block; padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 15px; }
.diff.ok { background: var(--green-soft); color: var(--green); }
.diff.short { background: var(--red-soft); color: var(--red); }
.diff.extra { background: var(--marigold-soft); color: #9a5b00; }
#c-diff { margin-top: 8px; min-height: 8px; }
.cash-closed { text-align: center; }
.cash-closed .row { padding: 6px 0; border-bottom: 1px dashed var(--line); text-align: left; }
.cash-closed.short { box-shadow: inset 0 4px 0 var(--red), var(--shadow); }
.cash-closed.ok { box-shadow: inset 0 4px 0 var(--green), var(--shadow); }
.cash-closed.extra { box-shadow: inset 0 4px 0 var(--marigold), var(--shadow); }
.big-input { font-size: 26px; text-align: center; font-weight: 700; }
.note-row .stepper { max-width: 170px; }

/* regular dues */
.dues-empty { margin-top: 12px; text-align: center; }
.dues-empty .em { font-size: 40px; }
.dues-empty p { margin: 6px 0 0; }

/* batch & expiry */
.bill-lines .bl { flex-wrap: wrap; }
/* Expiry + batch get their own full-width row under the item, so long medicine names cannot squash them. */
.exp-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 1 0 100%; }
.exp-inputs .input { padding: 7px 10px; font-size: 14px; }
.exp-row.expired { box-shadow: inset 4px 0 0 var(--red); }
.exp-row.soon { box-shadow: inset 4px 0 0 var(--marigold); }
.exp-row .t { white-space: normal; }
.gold-t { color: #9a5b00; }
.batch-box { margin-bottom: 12px; background: var(--marigold-soft); box-shadow: none; }
.batch-box .row { padding: 4px 0; }
.price-warn { margin: 0 0 12px; }
.price-warn b { display: block; }

/* jewellery: today's rate, price by weight, old gold */
.jw-rate-card { margin-top: 14px; background: linear-gradient(135deg, #fff4dc, #fff); }
.jw-rate-card.stale { box-shadow: inset 4px 0 0 var(--marigold), var(--shadow); }
.jw-rates { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 15px; }
.jw-rates b { font-size: 18px; }
.jw-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.jw-actions .btn { font-size: 16px; min-height: 52px; }
.jw-actions .btn:only-child { grid-column: 1 / -1; }
.jw-label { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.jw-break { background: var(--marigold-soft); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 15px; }
.jw-break.jw-minus { background: var(--green-soft); }
.jw-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 5px 0; }
.jw-row small { display: block; color: var(--muted); font-size: 13px; }
.jw-row b { white-space: nowrap; font-size: 16px; }
.jw-total { border-top: 1.5px dashed rgba(154, 91, 0, 0.35); margin-top: 4px; padding-top: 8px; font-weight: 800; font-size: 17px; }
.jw-total b { font-size: 22px; }
.jw-sentence { margin-top: 10px; font-size: 13.5px; line-height: 1.45; color: #5c3b00; }
.jw-edit { display: inline-block; margin: 4px 0 0; padding: 4px 0; font-size: 13.5px; text-align: left; }
.jw-oldgold { margin-top: 10px; }
.jw-oldgold .bl { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--green-soft); }
.jw-oldgold .bl b { font-size: 17px; white-space: nowrap; }
#jc-weight, #jc-rate, #og-weight, #og-rate { font-size: 24px; }
.bl.jw-line { align-items: flex-start; }
.jw-line-amt { font-size: 18px; white-space: nowrap; padding-top: 2px; }

/* diary scan (business-scan.js) */
.dscan-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 12px; }
.dscan-thumb { position: relative; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.dscan-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dscan-thumb .n { position: absolute; left: 4px; bottom: 4px; background: var(--plum); color: #fff; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 0 6px; }
.dscan-thumb .x { position: absolute; right: 2px; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: rgba(21, 18, 26, 0.65); color: #fff; font-size: 12px; }
.dscan-reading { text-align: center; padding: 40px 8px; }
.dscan-reading h2 { margin: 18px 0 4px; }
.dscan-stack { position: relative; width: 140px; height: 180px; margin: 0 auto; }
.dscan-stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow);
  transform: rotate(calc((var(--i) - 1) * 5deg)) translateX(calc(var(--i) * 6px)); }
.dscan-bar { height: 8px; border-radius: 4px; background: var(--plum-soft); overflow: hidden; margin: 16px auto 10px; max-width: 280px; }
.dscan-bar span { display: block; height: 100%; width: 40%; background: var(--marigold); border-radius: 4px; animation: scanbar 1.4s ease-in-out infinite; }
@keyframes scanbar { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.dscan-summary { position: sticky; top: 0; z-index: 5; background: var(--card); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  padding: 10px 12px; font-size: 14px; line-height: 1.7; }
.dscan-pages { display: grid; gap: 8px; margin-top: 12px; }
.dscan-page { display: flex; gap: 10px; align-items: flex-start; text-align: left; background: var(--card); border-radius: var(--radius-sm); padding: 8px; box-shadow: var(--shadow-sm); width: 100%; }
.dscan-page img, .dscan-page .ph { flex: none; width: 54px; height: 72px; border-radius: 8px; object-fit: cover; background: var(--plum-soft); display: grid; place-items: center; font-size: 26px; }
.dscan-page .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dscan-party, .dscan-item, .dscan-bill { margin-top: 10px; padding: 12px; border-left: 4px solid transparent; }
.dscan-party.needs-check, .dscan-item.needs-check { border-left-color: var(--marigold); }
.dscan-party.off, .dscan-item.off { opacity: 0.55; }
.dscan-party .input, .dscan-item .input { padding: 8px 10px; font-size: 15px; min-width: 0; }
.dscan-party .right { text-align: right; }
.dscan-cb { width: 22px; height: 22px; flex: none; accent-color: var(--plum); }
.dscan-pg { flex: none; font-size: 12px; font-weight: 700; color: var(--plum); background: var(--plum-soft); border-radius: 999px; padding: 4px 8px; }
.dscan-open .input { flex: 1 1 0; }
.dscan-lines { margin-top: 6px; }
.dscan-line { display: grid; grid-template-columns: 22px minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.85fr) 22px; gap: 5px; align-items: center; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.dscan-line.off { opacity: 0.5; }
.dscan-line .input { padding: 7px 4px; font-size: 14px; }
.dscan-line select.input { font-size: 13px; padding-right: 0; }
.dscan-line .dir.udhaar { color: var(--red); font-weight: 700; }
.dscan-line .dir.jama { color: var(--green); font-weight: 700; }
.dscan-line .amt { text-align: right; font-weight: 700; }
.dscan-line .x { color: var(--muted); font-size: 14px; }
.dscan-line .dscan-note { grid-column: 2 / -1; margin-top: -2px; }
.input.unsure { background: var(--marigold-soft); border-color: var(--marigold); }
.dscan-warn { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--marigold-soft); color: #7a4a00; font-size: 13px; }
.dscan-actions { position: sticky; bottom: calc(var(--nav-h) + 8px); display: flex; gap: 10px; margin-top: 16px; padding: 8px; background: var(--bg); border-radius: 16px; z-index: 5; }
.dscan-actions .grow { flex: 1; }
.dscan-full { max-height: 75vh; overflow: auto; }
.dscan-full img { width: 100%; display: block; border-radius: 8px; }

/* Plan & billing (14-day trial -> Rs 499/month UPI Autopay) */
.plan-hero { background: linear-gradient(135deg, var(--plum), var(--plum-2)); color: #fff; border: 0; }
.plan-card { cursor: pointer; }
.plan-card.nudge { background: linear-gradient(135deg, var(--marigold-soft), #fff); border: 1px solid #f6d58b; }
.plan-card.lock { background: var(--plum-soft); border: 1px solid #e4d2ec; }
.plan-card.warn { background: var(--marigold-soft); }
.plan-chip { background: var(--plum-soft); color: var(--plum); border: 0; font-weight: 600; }

/* Per-trade colours (body[data-biz]): each shop's hero card, badge and plan
   card wear its own trade's colours. Buttons stay the brand plum. */
body[data-biz="kirana"]            { --hero-a: #f5a524; --hero-b: #b45309; --hero-c: #4a2204; --hero-shadow: rgba(180, 83, 9, .35); }
body[data-biz="pharmacy"]          { --hero-a: #34d399; --hero-b: #047857; --hero-c: #022c22; --hero-shadow: rgba(4, 120, 87, .35); }
body[data-biz="jewellery"]         { --hero-a: #e8c35a; --hero-b: #9a7410; --hero-c: #3b2a05; --hero-shadow: rgba(154, 116, 16, .38); }
body[data-biz="mobile_shop"],
body[data-biz="computer_services"] { --hero-a: #60a5fa; --hero-b: #1d4ed8; --hero-c: #0b1b4d; --hero-shadow: rgba(29, 78, 216, .35); }
body[data-biz="hardware"],
body[data-biz="spare_parts"],
body[data-biz="mechanic"],
body[data-biz="manufacturing"]     { --hero-a: #94a3b8; --hero-b: #334155; --hero-c: #0f172a; --hero-shadow: rgba(51, 65, 85, .35); }
body[data-biz="builders"]          { --hero-a: #fb923c; --hero-b: #c2410c; --hero-c: #431407; --hero-shadow: rgba(194, 65, 12, .35); }
body[data-biz="garments"],
body[data-biz="tailor"]            { --hero-a: #f472b6; --hero-b: #be185d; --hero-c: #4a0a26; --hero-shadow: rgba(190, 24, 93, .33); }
body[data-biz="restaurant"]        { --hero-a: #f87171; --hero-b: #b91c1c; --hero-c: #450a0a; --hero-shadow: rgba(185, 28, 28, .33); }
body[data-biz="printing"]          { --hero-a: #22d3ee; --hero-b: #0e7490; --hero-c: #083344; --hero-shadow: rgba(14, 116, 144, .35); }
body[data-biz="laundry"]           { --hero-a: #7dd3fc; --hero-b: #0369a1; --hero-c: #082f49; --hero-shadow: rgba(3, 105, 161, .33); }
body[data-biz="wholesale"]         { --hero-a: #a78bfa; --hero-b: #6d28d9; --hero-c: #2e1065; --hero-shadow: rgba(109, 40, 217, .35); }
body[data-biz="agri_inputs"]       { --hero-a: #a3e635; --hero-b: #4d7c0f; --hero-c: #1a2e05; --hero-shadow: rgba(77, 124, 15, .35); }
body[data-biz="services"]          { --hero-a: #2dd4bf; --hero-b: #0f766e; --hero-c: #042f2e; --hero-shadow: rgba(15, 118, 110, .35); }
body[data-biz] .plan-hero { background: linear-gradient(135deg, var(--hero-b, var(--plum)), var(--hero-c, var(--plum-2))); }

/* Two big buttons side by side on a phone must stay on one line each. */
#plan-start, #plan-approve, #pp-approve { white-space: nowrap; font-size: 16px; padding-left: 10px; padding-right: 10px; }

/* Plan packages (2026-11-01) */
.pk-toggle { display: flex; background: var(--plum-soft); border-radius: 999px; padding: 4px; margin: 16px auto 10px; max-width: 360px; }
.pk-toggle button { flex: 1; border: 0; background: transparent; border-radius: 999px; padding: 10px 8px; font: inherit; font-weight: 700; color: var(--plum); cursor: pointer; }
.pk-toggle button.on { background: #fff; box-shadow: 0 2px 8px rgba(76, 20, 92, .18); }
.pk-toggle em { font-style: normal; font-size: 11px; background: var(--green); color: #fff; border-radius: 999px; padding: 2px 7px; margin-left: 4px; white-space: nowrap; }
.pk-banner { background: linear-gradient(135deg, #fff6d9, #fffdf5); border: 1px solid #f3d27a; color: #7a5200; border-radius: 14px; padding: 10px 12px; font-size: 13px; font-weight: 600; margin: 4px 0 6px; }
.card.pkg-card { position: relative; margin-top: 12px; padding: 16px; overflow: hidden; border: 1px solid #eee3f1; }
.card.pkg-card.pk-pro { border: 2px solid var(--plum); box-shadow: 0 8px 24px rgba(76, 20, 92, .14); }
.card.pkg-card.pk-mine { outline: 3px solid var(--green-soft); }
.pk-ribbon { position: absolute; top: 14px; right: -36px; transform: rotate(35deg); background: var(--plum); color: #fff; font-size: 11px; font-weight: 800; padding: 4px 40px; letter-spacing: .3px; }
.pk-head { display: flex; align-items: center; gap: 10px; padding-right: 56px; }
.pk-head b { font-size: 19px; }
.pk-head .small { color: #6b6b6b; }
.pk-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--plum-soft); flex: none; }
.pk-starter .pk-ico { background: #e6f1ff; }
.pk-free .pk-ico { background: #fff3e0; }
.pk-price { margin: 12px 0 2px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pk-price b { font-size: 32px; font-weight: 800; letter-spacing: -.5px; }
.pk-price s { color: #9a8f9e; font-size: 16px; }
.pk-price span { color: #6b6b6b; }
.pk-sub { font-size: 13px; color: #6b6b6b; }
.pk-save { display: inline-block; margin-top: 6px; background: var(--green-soft); color: #0b6b3c; font-weight: 700; font-size: 13px; border-radius: 10px; padding: 5px 10px; }
.pk-list { list-style: none; padding: 0; margin: 12px 0 14px; font-size: 14px; }
.pk-list li { padding: 6px 0 6px 28px; position: relative; border-top: 1px dashed #f0e8f2; }
.pk-list li:first-child { border-top: 0; }
.pk-list li::before { content: "✓"; position: absolute; left: 2px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.pk-list li.no { color: #a39aa6; }
.pk-list li.no::before { content: "✕"; background: #f3eff4; color: #b3a9b6; }
.pk-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; }
.pk-steps div { background: #fff; border: 1px solid #eee3f1; border-radius: 14px; padding: 10px 4px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.pk-steps b { font-size: 18px; color: var(--plum); }
.pk-steps span { font-size: 11.5px; font-weight: 600; line-height: 1.25; }

/* Transport (business-fleet.js, 2026-11-02). Colours mean the same thing
   everywhere: green = free, blue = on a trip, orange = workshop, red = act now. */
.pill.amber { background: var(--marigold-soft); color: #9a5b00; }
.pill.muted { background: #f1eef3; color: var(--muted); }

/* Number plates that look like number plates */
.np { display: inline-flex; align-items: stretch; border: 2px solid #111; border-radius: 6px; background: #ffd400; color: #111;
  font: 800 14px/1 "Roboto Mono", ui-monospace, Menlo, Consolas, monospace; letter-spacing: .5px; overflow: hidden; vertical-align: middle; }
.np i { font-style: normal; font-size: 8px; background: #1d4ed8; color: #fff; padding: 0 3px; display: flex; align-items: center; letter-spacing: 0; }
.np b { padding: 4px 7px; white-space: nowrap; }
.np-white { background: #fff; }
.np-big { font-size: 22px; border-width: 3px; border-radius: 8px; }
.np-big i { font-size: 10px; padding: 0 5px; }
.np-big b { padding: 7px 12px; }

.fl-hello { text-align: center; margin-top: 14px; }
.fl-hello-art { font-size: 40px; letter-spacing: 6px; margin-bottom: 6px; }

.fl-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.fl-stat { border: 0; border-radius: 16px; padding: 10px 4px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: #fff; box-shadow: var(--shadow-sm); font: inherit; cursor: pointer; color: var(--ink); min-width: 0; }
.fl-stat span { font-size: 18px; }
.fl-stat b { font-size: 20px; line-height: 1.1; word-break: break-word; }
.fl-stat small { font-size: 11.5px; font-weight: 600; color: var(--muted); line-height: 1.2; }
.fl-stat.g { background: var(--green-soft); } .fl-stat.g b { color: var(--green); }
.fl-stat.b { background: var(--blue-soft); } .fl-stat.b b { color: var(--blue); }
.fl-stat.o { background: var(--marigold-soft); } .fl-stat.o b { color: #9a5b00; }
.fl-stat.p { background: var(--plum-soft); } .fl-stat.p b { color: var(--plum); }
.fl-stat.r { background: var(--red-soft); } .fl-stat.r b { color: var(--red); }

.fl-alerts { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.fl-alert { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; border-radius: 12px; padding: 10px 12px; text-align: left; font: inherit;
  background: var(--marigold-soft); color: #6b3f00; cursor: pointer; }
.fl-alert.red { background: var(--red-soft); color: #8a1c14; }
.fl-alert .w { font-weight: 800; white-space: nowrap; }

.fl-book { font-size: 18px; margin: 4px 0 6px; }
.fl-chips { margin: 8px 0; flex-wrap: wrap; }
.fl-trip { align-items: center; }
.fl-trip.cancelled { opacity: .55; }
.fl-trip .t { font-weight: 700; margin-top: 3px; }
.fl-when { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fl-when b { font-size: 16px; }
.fl-ico { font-size: 20px; }
.fl-act { min-width: 64px; line-height: 1.15; padding: 8px 6px; font-size: 13px; }

.fl-days { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 6px; scrollbar-width: none; }
.fl-days::-webkit-scrollbar { display: none; }
.fl-days button { flex: none; width: 56px; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 6px 2px; display: flex; flex-direction: column;
  align-items: center; font: inherit; cursor: pointer; color: var(--ink); }
.fl-days button b { font-size: 20px; }
.fl-days button small { font-size: 11px; color: var(--muted); min-height: 13px; }
.fl-days button.on { background: var(--plum); color: #fff; border-color: var(--plum); }
.fl-days button.on small { color: #f3e8f7; }

.fl-step { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; margin: 16px 0 8px; }
.fl-step span { width: 26px; height: 26px; border-radius: 50%; background: var(--plum); color: #fff; display: grid; place-items: center; font-size: 13px; flex: none; }
.fl-kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fl-kinds button { border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center;
  gap: 4px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--ink); }
.fl-kinds button span { font-size: 28px; }
.fl-kinds button.on { border-color: var(--plum); background: var(--plum-soft); }
.fl-kinds-sm { grid-template-columns: repeat(4, 1fr); margin-bottom: 10px; }
.fl-kinds-sm button span { font-size: 24px; }
.fl-datechip { display: inline-flex; align-items: center; gap: 4px; }
.fl-datechip input { border: 0; background: transparent; font: inherit; max-width: 130px; color: inherit; }
.fl-big { font-size: 18px; padding: 14px; }
.fl-plate-in { font: 800 22px/1.2 "Roboto Mono", ui-monospace, Menlo, Consolas, monospace; text-transform: uppercase; text-align: center; background: #fffbe0;
  border: 2px solid #111; letter-spacing: 1px; }
.fl-meter { font: 800 30px/1.2 "Roboto Mono", ui-monospace, Menlo, Consolas, monospace; text-align: center; letter-spacing: 2px; padding: 14px; }

.fl-vpick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.fl-vcard { border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  font: inherit; cursor: pointer; color: var(--ink); min-width: 0; }
.fl-vcard small { font-size: 12px; text-align: center; }
.fl-vcard.on { border-color: var(--green); background: var(--green-soft); box-shadow: 0 0 0 2px var(--green) inset; }
.fl-vcard.on_trip, .fl-vcard.workshop { opacity: .7; }
.fl-vi { font-size: 30px; line-height: 1; }

.fl-route { margin: 0 0 10px; }
.fl-when-big { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.fl-place { display: block; padding: 8px 10px; margin-top: 6px; background: var(--bg); border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 700; }
.fl-people .li { padding: 10px 4px; }
.fl-fare { margin-top: 10px; }
.fl-actions { margin-top: 12px; }

.fl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 8px; }
@media (max-width: 360px) { .fl-grid, .fl-vpick { grid-template-columns: 1fr; } .fl-stats { grid-template-columns: repeat(2, 1fr); } }
.fl-vbig { border: 0; background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm); padding: 0 0 10px; text-align: left; font: inherit; cursor: pointer;
  color: var(--ink); overflow: hidden; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fl-vbig > div:not(.fl-vband) { padding: 0 10px; }
.fl-vband { padding: 5px 10px; font-size: 12px; font-weight: 800; background: var(--green-soft); color: var(--green); }
.fl-vbig.on_trip .fl-vband { background: var(--blue-soft); color: var(--blue); }
.fl-vbig.workshop .fl-vband { background: var(--marigold-soft); color: #9a5b00; }
.fl-vbig.sold .fl-vband { background: #f1eef3; color: var(--muted); }
.fl-vrow { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.fl-vrow .np { font-size: 12px; }
.fl-badge { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: #f1eef3; color: var(--muted); margin: 2px 4px 0 0; }
.fl-badge.red { background: var(--red-soft); color: var(--red); }
.fl-badge.amber { background: var(--marigold-soft); color: #9a5b00; }
.fl-badge.green { background: var(--green-soft); color: var(--green); }

.fl-more { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: #fff; }
.fl-more summary { font-weight: 700; cursor: pointer; padding: 4px 0; }
.fl-vhead { padding: 16px 10px; }
.fl-vhead.on_trip { background: linear-gradient(135deg, var(--blue-soft), #fff); }
.fl-vhead.workshop { background: linear-gradient(135deg, var(--marigold-soft), #fff); }
.fl-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.fl-quick button { border: 0; background: #fff; box-shadow: var(--shadow-sm); border-radius: 14px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center;
  gap: 3px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--ink); }
.fl-quick button span { font-size: 26px; }
.fl-paper.expired { background: var(--red-soft); }
.fl-paper.soon { background: var(--marigold-soft); }
.fl-paper.missing .s { color: var(--muted); }
.fl-svc { margin-top: 10px; font-weight: 700; }
.fl-svc.red { background: var(--red-soft); color: var(--red); }
.fl-svc.amber { background: var(--marigold-soft); color: #9a5b00; }
.fl-rep { align-items: center; }
.fl-bar { height: 8px; background: var(--line); border-radius: 6px; margin: 6px 0 4px; overflow: hidden; }
.fl-bar i { display: block; height: 100%; border-radius: 6px; background: var(--green); }
.fl-bar i.r { background: var(--red); }
.fl-dtrip { margin-top: 12px; }
.fl-dtrip.on_trip { border: 2px solid var(--blue); }
.fl-dtrip.done { opacity: .6; }
.fl-collect { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--green-soft); color: #0b6b3c; font-weight: 800; }

/* Medical stores (business-medical.js) */
.med-line { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.med-line .chip.sm { padding: 4px 10px; font-size: 13px; min-height: 30px; }
.med-free { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.med-free .input { width: 64px; padding: 6px 8px; min-height: 34px; text-align: center; }
.pill.red { background: #fde8e8; color: #b42318; }
.med-rc { margin-top: 6px; text-align: left; }
.med-home .li { width: 100%; }
#md-sch .li.on { border-color: var(--plum, #4c145c); background: #f6eefa; }
.med-item-btn { text-align: left; margin-bottom: 6px; }

/* Add product with photo (online shop / Bazaar) */
.pr-photo { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; border: 2px dashed #d9cfe0; border-radius: 18px;
  background: #faf6fc; text-align: center; font-size: 34px; cursor: pointer; overflow: hidden; }
.pr-photo b { font-size: 16px; }
.pr-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Jewellery online shop (shop.js): a piece shows its own weight + price and
   an "Enquire on WhatsApp" button; tapping the photo or name opens it big. */
/* an item's photos in the item sheet */
.it-photos { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.it-ph, .it-ph-add { position: relative; flex: none; width: 72px; height: 90px; border-radius: 12px; overflow: hidden; border: 0; padding: 0;
  background: var(--plum-soft); display: grid; place-items: center; font-size: 22px; color: var(--plum); font-weight: 700; }
.it-ph img { width: 100%; height: 100%; object-fit: cover; }
.it-ph.main { outline: 3px solid var(--plum); outline-offset: -3px; }
.it-ph span { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(79, 22, 88, .85); color: #fff; font-size: 11px; padding: 2px 0; }
/* product photos on the shop page (2026-11-17) */
.pgal { position: relative; margin: 0 -2px; }
.pgal-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; border-radius: 16px; scrollbar-width: none; }
.pgal-track::-webkit-scrollbar { display: none; }
.pgal-track img { flex: 0 0 100%; width: 100%; max-height: 62vh; aspect-ratio: 4 / 5; object-fit: contain; background: #f4eef6; border-radius: 16px; scroll-snap-align: center; }
.pgal-dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.pgal-dots i { width: 7px; height: 7px; border-radius: 50%; background: #d8c7dc; }
.pgal-dots i.on { background: var(--plum); width: 18px; border-radius: 4px; }
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
@media (min-width: 640px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pcard { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 3px rgba(60, 20, 70, .08); min-width: 0; }
.pcard-photo { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; background: #f4eef6; cursor: pointer; }
.pcard-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard-photo > span:first-child { font-size: 40px; }
.pcard-n { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.pcard-text { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px 12px; font: inherit; color: inherit; cursor: pointer; }
.pcard-text .t { font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.pcard-text .s { font-size: 13px; color: var(--muted); margin-top: 3px; }
.pcard-text .s b { color: var(--ink); font-size: 15px; }
.li.piece .piece-photo { width: 64px; height: 64px; padding: 0; border: 0; overflow: hidden; cursor: pointer; flex: none; }
.li.piece .piece-photo img { width: 100%; height: 100%; object-fit: cover; }
.li.piece .piece-text { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; min-width: 0; }
.li.piece .btn.wa { flex: none; }

/* typed bill line: also save it to the item list */
.keep-item { flex-basis: 100%; display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; color: var(--muted, #666); }
.keep-item input { width: 18px; height: 18px; accent-color: var(--gold, #b8860b); }
/* "Sell for ₹50" on loose goods: a money box, not a checkbox */
.keep-item input.amt-input { width: 86px; height: auto; min-height: 36px; }
.open-name { min-height: 40px; font-weight: 650; }
/* Phones: the item name gets its own row, qty / price / delete sit under it
   (at 375px the name column was squeezed to ~40px and wrapped letter by letter). */
@media (max-width: 480px) {
  .bill-lines .bl > .grow { flex: 1 1 100%; }
  .bill-lines .bl > .stepper { margin-left: auto; }
}
#b-repeat { margin-top: 10px; }

/* Quick start (2026-11-18): the first bill in three taps, one next step. */
.fb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fb-item { position: relative; text-align: left; padding: 12px; border-radius: 14px; background: var(--plum-soft); min-height: 64px; display: flex; flex-direction: column; justify-content: space-between; gap: 4px; }
.fb-item .n { font-weight: 700; font-size: 14px; line-height: 1.25; }
.fb-item .p { font-weight: 800; color: var(--plum); font-size: 15px; }
.fb-item .p em { font-style: normal; font-weight: 600; font-size: 11px; color: var(--muted, #6b6475); background: #fff; border-radius: 6px; padding: 1px 5px; margin-left: 4px; }
.fb-item .q { position: absolute; top: 6px; right: 6px; background: var(--plum); color: #fff; border-radius: 999px; font-size: 12px; font-weight: 800; padding: 2px 7px; }
.fb-line { gap: 8px; flex-wrap: wrap; }
.fb-rate { width: 90px; text-align: right; font-size: 17px; }
.fb-pay { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fb-pay .btn { padding-left: 6px; padding-right: 6px; }
.next-step { border: 2px solid var(--plum-soft); }
.next-step .dots { display: inline-flex; gap: 5px; }
.next-step .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--plum-soft); display: inline-block; }
.next-step .dots i.on { background: var(--plum); }
.next-step .dots i.now { background: var(--marigold, #f59e0b); }

/* Customer shop page (shop.js): how ordering works, in three steps (2026-11-18). */
.how-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.how-strip > div { background: #fff; border-radius: 14px; padding: 10px 8px; font-size: 12.5px; line-height: 1.3; text-align: center; box-shadow: var(--shadow-sm); color: var(--ink); }
.how-strip b { display: grid; place-items: center; width: 24px; height: 24px; margin: 0 auto 6px; border-radius: 50%; background: var(--plum-soft); color: var(--plum); font-size: 13px; }
/* loans (2026-11-21): interest-only box, picture preview */
.loan-byaj { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0 4px; }
.loan-byaj > div { background: var(--bg, #f7f4fa); border-radius: 10px; padding: 6px 8px; }
.loan-byaj span { display: block; font-size: 12px; color: var(--muted, #6b6470); }
.loan-byaj b { font-size: 15px; }
.loan-pic { max-height: 340px; overflow: auto; border: 1px solid var(--line, #e5e0d6); border-radius: 12px; margin-bottom: 10px; background: #fff; }
.loan-pic img { width: 100%; display: block; }
.loan-kind small { font-size: 11px; }
.loan-more summary { cursor: pointer; font-weight: 650; padding: 6px 0; }
/* loan calendar + collectors' cash (2026-11-21) */
.loan-cal { background: #fff; border-radius: 14px; padding: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 6px; }
.cal-head div { text-align: center; font-size: 11px; color: var(--muted, #6b6470); }
.cal-d { position: relative; aspect-ratio: 1; border: 0; border-radius: 10px; background: #f4f1f6; font-size: 13px; font-weight: 600; color: #888; padding: 0; }
.cal-d i { position: absolute; right: 3px; top: 1px; font-style: normal; font-size: 10px; }
.cal-d:disabled { background: transparent; color: #bbb; }
.cal-paid { background: #dcf3e5 !important; color: #136c3a !important; }
.cal-late { background: #e9f3c9 !important; color: #5d6b0d !important; }
.cal-part { background: #fdefc9 !important; color: #8a5a00 !important; }
.cal-miss { background: #fbdcda !important; color: #a12622 !important; }
.cal-today { background: #fff !important; color: var(--plum, #4c145c) !important; box-shadow: inset 0 0 0 2px var(--plum, #4c145c); }
.cal-up { background: #f4f1f6; color: #555; }
.cal-off { background: repeating-linear-gradient(45deg, #f4f1f6, #f4f1f6 4px, #fff 4px, #fff 8px) !important; color: #aaa !important; }
.cal-now { outline: 2px dashed var(--marigold, #f5a623); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; font-size: 12px; }
.cal-legend span { padding: 2px 8px; border-radius: 10px; }
.bag-card { margin-top: 12px; }
.loan-notes .note-b { background: #eef6ff; }
.loan-notes .note-out { background: #f3eef7; }
.input.bad { border-color: var(--red) !important; box-shadow: 0 0 0 3px var(--red-soft); }

/* Online shop: sizes in each colour (garments, 2026-11-27) */
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); vertical-align: -2px; margin-right: 6px; flex: none; }
.vgroups { display: grid; gap: 8px; margin-top: 6px; }
.vgroup { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vgroup .vname { min-width: 84px; font-weight: 700; font-size: 13px; display: flex; align-items: center; }
.chip.gone { text-decoration: line-through; opacity: .45; }

/* The colour name is a button: tap to see that colour's photo (2026-11-28). */
button.vname { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.vgroup.picked { background: #f6eefa; border-radius: 10px; box-shadow: 0 0 0 6px #f6eefa; }
.vgroup.picked .vname { color: var(--plum, #5b2a6e); }

/* Automatic WhatsApp bill sent from Business Hub's number (2026-12-01) */
.wa-auto-sent{margin-top:8px;display:inline-block;background:#e8f8ee;color:#16733b;border-radius:999px;padding:6px 14px;font-size:14px;font-weight:600}

/* ---------- laundry & dry cleaning (business-laundry.js) ----------
   Big picture tiles, one tap = one piece, colours that mean something. */
.ln-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ln-cloth { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px 8px;
  border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--card); font: inherit; color: var(--ink);
  min-height: 96px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ln-cloth:active { transform: scale(.96); }
.ln-cloth.on { border-color: var(--plum); background: var(--plum-soft); }
.ln-cloth .ln-ico { font-size: 34px; line-height: 1.1; }
.ln-cloth .ln-nm { font-size: 13px; font-weight: 600; text-align: center; line-height: 1.15; }
.ln-cloth b { font-size: 13px; color: var(--muted); }
.ln-badge { position: absolute; top: -6px; right: -6px; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 14px;
  background: var(--plum); color: #fff; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.ln-tagno { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; border-radius: 8px;
  background: var(--blue-soft); color: var(--blue); font-weight: 800; margin-right: 6px; }
.ln-tagno.book { padding: 0 6px; font-size: 13px; }
.ln-tagno.out { background: var(--plum-soft); color: var(--plum); text-decoration: line-through; }
.ln-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--line); vertical-align: -1px; margin-right: 3px; }
.ln-colours { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 6px; }
.ln-colour { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border: 2px solid var(--line);
  border-radius: var(--radius-sm); background: var(--card); font: inherit; font-size: 12px; color: var(--ink); cursor: pointer; }
.ln-colour i { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.ln-colour.on { border-color: var(--plum); background: var(--plum-soft); font-weight: 700; }
.ln-racks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.ln-racks .chip { justify-content: center; }
.ln-total { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px; margin: 4px -4px 0; background: var(--card); border-top: 2px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.ln-total b { display: block; font-size: 26px; }
.ln-total .small { display: block; color: var(--muted); }
.ln-total .btn { min-width: 140px; }
.ln-card.ln-ready { border-left: 6px solid var(--green); }
.ln-big b { color: var(--ink); }
.ln-svc .chip { white-space: nowrap; }
.ln-bars { display: flex; align-items: flex-end; gap: 2px; height: 110px; margin-top: 10px; }
.ln-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.ln-bar i { display: block; width: 100%; min-height: 2px; background: var(--plum); border-radius: 4px 4px 0 0; }
.ln-bar span { font-size: 9px; color: var(--muted); margin-top: 2px; }
/* Veg / non-veg / egg mark (2026-12-02): the square-and-dot on Indian food packs. */
.food-dot { display: inline-block; position: relative; width: 12px; height: 12px; border: 2px solid currentColor; border-radius: 2px;
  margin-right: 6px; vertical-align: -1px; box-sizing: border-box; flex: none; }
.food-dot::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: currentColor; }
.food-dot.veg { color: #1a8a3a; }
.food-dot.nonveg { color: #8b3a1a; }
.food-dot.egg { color: #c47f00; }

/* Restaurant (2026-12-02): tables as colours, dishes as pictures, a kitchen
   screen readable from across the room. Big targets for any hand. */
.rt-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 8px; margin: 8px 0 10px; }
.rt-act { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: var(--radius-sm);
  background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink); }
.rt-act span { font-size: 24px; }
.rt-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; font-size: 12px; }
.rt-legend span { padding: 3px 8px; border-radius: 99px; border: 1px solid var(--line); }
.rt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rt-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 4px 12px; min-height: 112px;
  border-radius: var(--radius); border: 2px solid var(--line); background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.rt-ico { font-size: 26px; line-height: 1.1; }
.rt-no { font-size: 26px; line-height: 1.1; }
.rt-word { font-size: 13px; font-weight: 700; }
.rt-amt { font-size: 12px; opacity: .85; }
.rt-tile .pill { position: absolute; top: 4px; right: 4px; }
.rt-legend .free, .rt-tile.free { background: var(--card); }
.rt-legend .new, .rt-tile.new { background: var(--blue-soft); border-color: var(--blue); }
.rt-legend .cooking, .rt-tile.cooking { background: var(--marigold-soft); border-color: var(--marigold); }
.rt-legend .ready, .rt-tile.ready { background: var(--green-soft); border-color: var(--green); }
.rt-legend .eating, .rt-tile.eating { background: var(--plum-soft); border-color: var(--plum); }
.rt-tile.ready { animation: rt-pulse 1.2s ease-in-out infinite; }
@keyframes rt-pulse { 50% { box-shadow: 0 0 0 6px rgba(22, 163, 74, .25); } }
@media (prefers-reduced-motion: reduce) { .rt-tile.ready { animation: none; } }
.rt-ready { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--green-soft);
  border: 2px solid var(--green); margin-bottom: 8px; }
.rt-bar { position: sticky; bottom: 0; display: flex; gap: 8px; align-items: center; padding: 10px 0 4px; margin-top: 10px; background: var(--bg); z-index: 2; }
.rt-total { display: flex; flex-direction: column; min-width: 84px; }
.rt-total b { font-size: 20px; }
.rt-total small { font-size: 11px; color: var(--muted); }
.rt-bar .btn { flex: 1; min-height: 52px; font-size: 16px; }
.rt-kot { background: var(--marigold); color: #241300; }
.dish-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dish { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; min-height: 108px;
  border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--card); color: var(--ink); text-align: center; }
.dish.on { border: 2px solid var(--plum); background: var(--plum-soft); }
.dish.out { opacity: .45; }
.dish-pic { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 32px; overflow: hidden; background: var(--bg); }
.dish-pic img { width: 100%; height: 100%; object-fit: cover; }
.dish-name { font-size: 13px; font-weight: 650; line-height: 1.2; }
.dish-price { font-size: 12px; color: var(--muted); }
.dish-count { position: absolute; top: 4px; right: 4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--plum);
  color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.kt-make { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 12px; }
.kt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.kt-card { padding: 12px; border-radius: var(--radius); border: 3px solid var(--line); background: var(--card); display: flex; flex-direction: column; gap: 6px; }
.kt-card.slow { border-color: var(--marigold); }
.kt-card.late { border-color: var(--red); }
.kt-card.ready { opacity: .7; border-color: var(--green); }
.kt-head { display: flex; justify-content: space-between; align-items: center; }
.kt-no { font-size: 26px; }
.kt-min { font-weight: 700; }
.kt-card.late .kt-min { color: var(--red); }
.kt-line { font-size: 20px; line-height: 1.3; }
.kt-note { font-size: 17px; font-weight: 700; background: #fff3c4; color: #5a4300; border-radius: 6px; padding: 2px 8px; }
.kt-cancel { font-size: 17px; font-weight: 700; color: var(--red); background: var(--red-soft); border-radius: 6px; padding: 4px 8px; }

/* Tiles & sanitary / building material (business-tiles.js) */
.tl-measure { margin-top: 10px; font-size: 17px; border: 2px dashed var(--green, #15803d); }
.tl-line { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.tl-line .tl-sq { flex-basis: 100%; }
.tl-line .tl-lots { flex-basis: 100%; margin: 0; }
.tl-shade-in { flex-basis: 100%; margin-top: 2px; }
.tl-result { text-align: center; background: #ecfdf5; border: 2px solid #34d399; }
.tl-res-row + .tl-res-row { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #a7f3d0; }
.tl-big { font-size: 30px; font-weight: 800; color: #065f46; line-height: 1.2; }
.big-in { font-size: 20px; text-align: center; }
.tl-tiles .tl-tile { padding: 14px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.tl-tiles .tl-tile b { font-size: 16px; }
.tl-sec-head { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; padding: 4px 0; font: inherit; font-size: 17px; cursor: pointer; text-align: left; }
.tl-row { gap: 10px; align-items: center; }
.tl-rate { gap: 8px; align-items: center; }
.tl-rate .tl-in { display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; color: var(--muted, #6b7280); }
.tl-rate .tl-in .input { width: 92px; text-align: right; font-size: 18px; padding: 8px; }
.tl-typical { background: #fef9c3; }
.tl-typical .tl-in .input { border-color: #eab308; }

/* POS item grid on the bill (2026-12-03): big tiles instead of one sideways row. */
.pos { margin-top: 12px; }
.pos-head { display: flex; gap: 6px; align-items: center; }
.pos-tabs { flex: 1; min-width: 0; }
.pos-hide { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 16px; }
.pos-toggle { margin-top: 10px; }
.pos-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
@media (min-width: 480px) { .pos-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) { .pos-grid { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); } }
.pos-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px; min-height: 118px;
  padding: 10px 6px 8px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--card); color: var(--ink);
  text-align: center; box-shadow: var(--shadow-sm); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .08s; }
.pos-tile:active { transform: scale(.96); background: var(--plum-soft); }
.pos-tile.on { border: 2px solid var(--plum); background: var(--plum-soft); }
.pos-tile.out { opacity: .6; }
.pos-pic { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 30px; overflow: hidden; background: var(--bg); flex: none; }
.pos-pic img { width: 100%; height: 100%; object-fit: cover; }
.pos-name { font-size: 13px; font-weight: 650; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.pos-price { font-size: 13px; font-weight: 700; color: var(--plum); }
.pos-sub { font-size: 11px; color: var(--muted); }
.pos-sub.red { color: var(--red); font-weight: 650; }
.pos-sub.amber { color: #b45309; }
.pos-count { position: absolute; top: 4px; right: 4px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--plum);
  color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.pos-more { margin-top: 8px; }
.pos-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 12px; }
.pos-size { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; min-height: 72px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.pos-size b { font-size: 18px; }
.pos-size span { font-size: 13px; color: var(--plum); font-weight: 650; }
.pos-size small { font-size: 11px; color: var(--muted); }
.pos-size small.red { color: var(--red); }
.pos-size.out { opacity: .55; }
/* Ready list entry on the Items screen and the bill tiles (2026-12-03). */
.ready-card { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; text-align: left; background: var(--blue-soft); border: 1px solid #c6dafc; color: var(--ink); }
.ready-card .rc-ico { font-size: 30px; }
.ready-card small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.ready-card.slim { padding: 10px 14px; }
.ready-card.slim .rc-ico { font-size: 22px; }
.pos-addmore { border-style: dashed; background: var(--blue-soft); }

/* Effortless billing (2026-12-03): the bill in view above the tiles, the
   "saved, next bill ready" note, the one-line invite, making in words. */
.bill-strip { margin-top: 10px; background: var(--card); border: 1.5px solid var(--plum-soft); border-radius: 16px; padding: 8px 10px; }
.bill-strip .bs-head { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; padding: 0 2px 4px; }
.bill-strip .bs-rows { max-height: 196px; overflow-y: auto; }
.bs-row { display: flex; align-items: center; gap: 8px; padding: 6px 2px; border-top: 1px solid var(--line); }
.bs-row:first-child { border-top: 0; }
.bs-name { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 0; font: inherit; font-weight: 650; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-name small { margin-left: 6px; font-weight: 500; color: var(--muted); }
.bs-step { display: inline-flex; align-items: center; gap: 2px; background: var(--plum-soft); border-radius: 999px; }
.bs-step button { width: 34px; height: 34px; border: 0; background: none; font-size: 20px; font-weight: 700; color: var(--plum); }
.bs-step b { min-width: 26px; text-align: center; font-size: 15px; }
.bs-step b small { font-size: 11px; font-weight: 500; margin-left: 2px; color: var(--muted); }
.bs-amt { width: 58px; height: 34px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 6px; font: inherit; font-size: 15px; }
.bs-total { min-width: 64px; text-align: right; font-size: 15px; }
.bill-lines > .bl.flash { box-shadow: 0 0 0 3px var(--marigold, #f5a524); transition: box-shadow 0.3s; }
.saved-note, .invite-note { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; }
.saved-note { background: var(--green-soft, #e6f6ee); }
.saved-note .sn-tick { width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 800; }
.invite-note { background: var(--plum-soft); font-size: 14px; }
.jw-mk-note { font-size: 13.5px; margin-top: 6px; color: var(--ink); }
.jw-mk-warn { margin-top: 8px; padding: 8px 10px; border-radius: 12px; background: #fff4e5; color: #8a4b00; font-size: 14px; font-weight: 600; }
.jw-mk-warn .chip { margin-left: 6px; }
