/* What the app adds to the generated prototype kit (gba-mobile-kit.css): real-device sizing, element resets, and the few
   things the prototype wrote as inline styles (not allowed here). */
html, body.gbm-body { margin: 0; height: 100%; background: #F4F7FB; }
body.gbm-body { font-family: "Segoe UI", system-ui, Arial, sans-serif; color: #0F172A; }
body.gbm-body .gbm-phone { width: 100%; max-width: 480px; height: 100vh; height: 100dvh; margin: 0 auto; border-radius: 0; }
.gbm-sprite { display: none; }
.gbm-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
:where(.gbm-body a) { color: inherit; text-decoration: none; }
:where(.gbm-body button) { font: inherit; border: 0; background: none; padding: 0; cursor: pointer; color: inherit; }
.gbm-body h1, .gbm-body h2 { font-size: inherit; margin: 0; }
.gbm-body p { margin: 0; }
.gbm-body :focus-visible { outline: 2px solid #1B72C4; outline-offset: 2px; }

body.gbm-body .gbm-phone .gbm-bar { padding-top: calc(10px + env(safe-area-inset-top)); }
.gbm-stack { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.gbm-tight { gap: 8px; }
.gbm-small { font-size: 11px; }
.gbm-block { width: 100%; box-sizing: border-box; }
body.gbm-body a.gbm-btn, body.gbm-body button.gbm-btn { flex: none; min-height: 48px; box-sizing: border-box; font: inherit; font-weight: 700; font-size: 14px; }
body.gbm-body button.gbm-btn:not(.gbm-p):not(.gbm-wa) { border: 1px solid #CBD5E1; background: #fff; }
body.gbm-body button.gbm-btn.gbm-p, body.gbm-body a.gbm-btn.gbm-p { background: linear-gradient(135deg, #1B72C4, #2F8AD8); color: #fff; border: 0; }
body.gbm-body a.gbm-btn.gbm-wa { color: #fff; }
body.gbm-body .gbm-phone .gbm-tabbar { margin-bottom: calc(12px + env(safe-area-inset-bottom)); flex-shrink: 0; }

/* inputs (the kit styles .gbm-inp; these make real controls sit inside it) */
.gbm-inp input.gbm-gr, .gbm-inp select.gbm-gr { height: 100%; width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; color: inherit; padding: 0; }
.gbm-inp-icon { width: 18px; height: 18px; color: #64748B; }
body.gbm-body button.gbm-gen { font-size: 11px; font-weight: 700; color: #12599E; background: #EAF4FD; border-radius: 99px; padding: 5px 10px; flex-shrink: 0; }
body.gbm-body button.gbm-eye { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 8px; color: #64748B; }
body.gbm-body button.gbm-eye.gbm-on { color: #1B72C4; background: #EAF2FB; }
.gbm-tg { cursor: pointer; flex-shrink: 0; }
.gbm-switch { appearance: none; width: 40px; height: 23px; margin: 0; border-radius: 99px; background: #CBD5E1; position: relative; cursor: pointer; flex-shrink: 0; }
.gbm-switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: left .15s; }
.gbm-switch:checked { background: #1B72C4; }
.gbm-switch:checked::after { left: 20px; }
.gbm-up input { font-size: 12px; max-width: 220px; }
.gbm-logo-preview { max-height: 72px; max-width: 100%; align-self: flex-start; border-radius: 12px; }

/* messages */
.gbm-toast { position: fixed; z-index: 70; left: 50%; bottom: 172px; transform: translateX(-50%); width: max-content; max-width: 88%; text-align: center;
  background: #0F172A; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 13px; animation: gbm-fade 6s forwards; pointer-events: none; }
.gbm-toast-error { background: #B42318; }
@keyframes gbm-fade { 0%, 85% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
.gbm-note-error { background: #FDECEA; border-color: #F3C0BA; color: #B42318; }

/* sign in */
.gbm-login-head { flex-shrink: 0; background: linear-gradient(135deg, #12599E 0%, #1B72C4 55%, #3B9BEA 100%); color: #fff; text-align: center; padding: calc(20px + env(safe-area-inset-top)) 20px 46px; }
.gbm-login-tile { width: 78px; height: 78px; border-radius: 22px; background: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 12px 24px -10px rgba(0,0,0,.5); }
.gbm-login-tile img { width: 60px; height: 60px; }
.gbm-body h1.gbm-login-title { font-size: 24px; font-weight: 700; margin-top: 12px; }
.gbm-login-sub { font-size: 13px; opacity: .9; margin-top: 2px; }
.gbm-login-body { flex: 1; margin-top: -24px; background: #F4F7FB; border-radius: 24px 24px 0 0; padding: 18px 16px 12px; display: flex; flex-direction: column; gap: 11px; position: relative; min-height: 0; overflow-y: auto; }
.gbm-login-card { display: flex; flex-direction: column; gap: 11px; padding: 14px; flex-shrink: 0; }
body.gbm-body button.gbm-btn.gbm-login-button { min-height: 50px; }
.gbm-forgot summary, .gbm-link { list-style: none; text-align: center; color: #1B72C4; font-weight: 600; font-size: 13.5px; cursor: pointer; }
.gbm-forgot summary::-webkit-details-marker { display: none; }
.gbm-forgot p { text-align: center; margin-top: 6px; font-size: 12px; }
.gbm-help-title { text-align: center; font-size: 11.5px; color: #5B6B7F; font-weight: 600; margin-top: auto; }
.gbm-help { flex-shrink: 0; }
.gbm-help > a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: #5B6B7F; }
.gbm-ic-wa { background: #E8F7EE; color: #1FA855; }
.gbm-ic-blue { background: #EAF4FD; color: #1B72C4; }
.gbm-ic img { width: 32px; height: 32px; }
.gbm-qr { width: 200px; height: 200px; align-self: center; }
.gbm-secret { font-family: Consolas, monospace; text-align: center; word-break: break-all; user-select: all; }
.gbm-steps { margin: 0; padding-left: 18px; font-size: 12px; color: #475569; }

/* home */
.gbm-hg { flex-shrink: 0; }
.gbm-hg-space { height: 26px; }
.gbm-hero-line { display: flex; align-items: center; gap: 8px; }

/* lists and cards */
.gbm-person, .gbm-split { display: flex; gap: 10px; align-items: center; }
.gbm-split { justify-content: space-between; }
.gbm-plan { font-size: 15px; }
.gbm-group { font-size: 10.5px; font-weight: 800; margin: 0 0 -6px 4px; text-transform: uppercase; color: #64748B; }
body.gbm-body .gbm-card.gbm-list { padding: 3px 11px; flex-shrink: 0; }
.gbm-chev { width: 18px; height: 18px; color: #94A3B8; }
.gbm-usage { margin: 6px 0; }
.gbm-usage-line { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; }
.gbm-meter { appearance: none; width: 100%; height: 7px; margin-top: 3px; border: 0; border-radius: 7px; overflow: hidden; background: #E6EBF1; display: block; }
.gbm-meter::-webkit-progress-bar { background: #E6EBF1; }
.gbm-meter::-webkit-progress-value { background: #1B72C4; border-radius: 7px; }
.gbm-meter::-moz-progress-bar { background: #1B72C4; }
.gbm-pager { display: flex; justify-content: space-between; align-items: center; }

/* ended and error screens */
.gbm-content.gbm-ended { align-items: center; text-align: center; padding-top: 48px; }
.gbm-ended-icon { width: 64px; height: 64px; border-radius: 20px; background: #FDF3E3; color: #B45309; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; flex-shrink: 0; }
.gbm-body h2.gbm-ended-title { font-size: 17px; }
.gbm-error-code { font-size: 56px; font-weight: 800; color: #1B72C4; line-height: 1; }

/* inventory */
.gbm-content > .gbm-chips { flex-shrink: 0; }
a.gbm-chip, summary.gbm-chip { cursor: pointer; }
.gbm-chip-menu > summary { list-style: none; display: inline-block; }
.gbm-chip-menu > summary::-webkit-details-marker { display: none; }
.gbm-chip-menu[open] { flex-basis: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
body.gbm-body button.gbm-chip { border: 1px solid #CBD5E1; background: #fff; padding: 6px 11px; font-size: 11.5px; font-weight: 600; }
body.gbm-body button.gbm-chip.gbm-on { background: #1B72C4; border-color: #1B72C4; color: #fff; }
body.gbm-body button.gbm-chip-delete { color: #B42318; border-color: #F3C0BA; }
.gbm-add-line { display: flex; gap: 8px; align-items: center; width: 100%; }
.gbm-add-line .gbm-inp { flex: 1; }
.gbm-code-qr { width: 84px; height: 84px; image-rendering: pixelated; }

/* stock */
.gbm-body [hidden] { display: none !important; }
.gbm-area { width: 100%; box-sizing: border-box; border: 1px solid #CBD5E1; border-radius: 12px; background: #fff; padding: 10px 12px; font: inherit; font-size: 13.5px; text-transform: uppercase; resize: vertical; }
.gbm-radios label { flex: 1; display: flex; }
.gbm-radios input { position: absolute; opacity: 0; pointer-events: none; }
.gbm-radios span { flex: 1; text-align: center; padding: 8px 2px; font-weight: 700; font-size: 12px; color: #475569; border-radius: 8px; cursor: pointer; }
.gbm-radios input:checked + span { background: #fff; color: #1B72C4; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.gbm-radios input:focus-visible + span { outline: 2px solid #1B72C4; }
.gbm-radios { flex-shrink: 0; }
.gbm-amount { font-size: 24px; font-weight: 800; }
.gbm-wrap { white-space: normal; word-break: break-word; }
.gbm-row .gbm-r .gbm-badge { display: table; margin-left: auto; }
/* the prototype's dot-and-line stepper, for three steps */
.gbm-stp { flex-shrink: 0; padding: 2px 18px 6px; }
.gbm-stl { display: flex; }
.gbm-stl div { flex: 1; text-align: center; font-size: 11px; font-weight: 600; color: #8795A8; }
.gbm-stl div.gbm-on { color: #5B6B7F; }
.gbm-stl div.gbm-cur { color: #12599E; font-weight: 700; }
.gbm-std { position: relative; height: 22px; margin-top: 5px; }
.gbm-std i { position: absolute; top: 9px; height: 3px; border-radius: 3px; left: 16.667%; }
.gbm-std .gbm-tr { right: 16.667%; background: #DDE5EE; }
.gbm-std .gbm-pr { width: 0; background: #1B72C4; transition: width .2s; }
.gbm-at-1 .gbm-pr { width: 33.333%; }
.gbm-at-2 .gbm-pr { width: 66.667%; }
.gbm-std b { position: absolute; top: 3px; width: 15px; height: 15px; margin-left: -10.5px; border-radius: 50%; background: #DDE5EE; border: 3px solid #F4F7FB; box-sizing: content-box; }
.gbm-std b:nth-of-type(1) { left: 16.667%; }
.gbm-std b:nth-of-type(2) { left: 50%; }
.gbm-std b:nth-of-type(3) { left: 83.333%; }
.gbm-std b.gbm-on { background: #1B72C4; }
.gbm-std b.gbm-cur { box-shadow: 0 0 0 4px rgba(27,114,196,.2); }

/* states the prototype defines but none of its sample screens showed, so the generated kit left them out */
.gbm-b-out { background: #FDECEA; color: #B42318; }
.gbm-b-grey { background: #EEF1F5; color: #64748B; }
body.gbm-body .gbm-inp.gbm-err { border-color: #B42318; background: #FFF8F7; }
body.gbm-body .gbm-hint.gbm-e { color: #B42318; font-weight: 700; font-size: 10.5px; }

/* accounts */
.gbm-seg-links { flex-shrink: 0; }
.gbm-seg-links a { flex: 1; text-align: center; padding: 8px 2px; font-weight: 700; font-size: 12px; color: #475569; border-radius: 8px; }
.gbm-seg-links a.gbm-on { background: #fff; color: #1B72C4; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.gbm-money-ok { color: #12805C; }
.gbm-money-in { color: #C77700; }
.gbm-money-out { color: #B42318; }
.gbm-pick label { display: inline-block; }
.gbm-pick input { position: absolute; opacity: 0; pointer-events: none; }
.gbm-pick .gbm-chip { display: inline-block; cursor: pointer; }
.gbm-pick input:checked + .gbm-chip { background: #1B72C4; border-color: #1B72C4; color: #fff; }
.gbm-pick input:focus-visible + .gbm-chip { outline: 2px solid #1B72C4; }
@media print {
  /* The kit (from the prototype) hides everything but its sample .gbm-paper when printing; here the whole screen prints,
     less the controls listed below. */
  body.gbm-body * { visibility: visible; }
  .gbm-body .gbm-receipt, .gbm-body .gbm-challan, .gbm-body .gbm-card, .gbm-body .gbm-tot { box-shadow: none; }
  html, body.gbm-body, body.gbm-body .gbm-phone, .gbm-body .gbm-content { height: auto !important; overflow: visible !important; background: #fff; }
  body.gbm-body .gbm-bar, .gbm-crumb, .gbm-btnbar, .gbm-tabbar, .gbm-toast, .gbm-noprint, body.gbm-body .gbm-stp { display: none !important; }
}

a.gbm-note-link { display: block; text-decoration: none; }

/* stock count */
.gbm-count-row { border-bottom: 1px solid #EEF1F5; padding-bottom: 6px; }
.gbm-count-row .gbm-take { border-bottom: 0; }
.gbm-count-row summary { cursor: pointer; }
.gbm-diff { width: 34px; text-align: right; flex-shrink: 0; }

/* labels */
.gbm-labels { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.gbm-label { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #CBD5E1; border-radius: 8px; padding: 6px 8px; overflow: hidden; color: #0F172A; font-size: 9px; break-inside: avoid; }
.gbm-label-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gbm-label-text b { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gbm-label-price { font-size: 12px; font-weight: 800; color: #12599E; }
.gbm-label-bar { width: 100%; height: 22px; }
.gbm-label-qr { width: 56px; height: 56px; flex-shrink: 0; }
.gbm-labels.gbm-ls-large .gbm-label { width: 50mm; height: 30mm; }
.gbm-labels.gbm-ls-small .gbm-label { width: 38mm; height: 25mm; font-size: 8px; }
.gbm-labels.gbm-ls-small .gbm-label-qr { width: 40px; height: 40px; }
.gbm-labels.gbm-ls-sheet .gbm-label { width: 63mm; height: 34mm; }
.gbm-labels.gbm-lt-barcode .gbm-label-qr { display: none; }
.gbm-labels.gbm-lt-qr .gbm-label-bar { display: none; }
.gbm-labels.gbm-lt-qr .gbm-label-qr { width: 68px; height: 68px; }
@media print { .gbm-labels { gap: 2mm; justify-content: flex-start; } .gbm-label { border-radius: 0; } }

/* receipts */
.gbm-barcode { width: 70%; height: 38px; align-self: center; }
.gbm-duplicate { font-weight: 800; letter-spacing: .3em; color: #B42318; border: 2px solid #B42318; border-radius: 6px; padding: 2px 0; }
.gbm-split .gbm-chips { margin-left: auto; }
.gbm-split .gbm-chips form { display: contents; }

/* scrap */
.gbm-kg-bar { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; font-weight: 600; }
.gbm-kg-bar div { display: flex; justify-content: space-between; }
.gbm-kg-bar progress { width: 100%; height: 7px; border: 0; border-radius: 7px; background: #E6EBF1; appearance: none; }
.gbm-kg-bar progress::-webkit-progress-bar { background: #E6EBF1; border-radius: 7px; }
.gbm-kg-bar progress::-webkit-progress-value { background: #1B72C4; border-radius: 7px; }
.gbm-kg-bar progress::-moz-progress-bar { background: #1B72C4; border-radius: 7px; }
.gbm-take { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #EEF1F5; }
.gbm-take input[type=checkbox] { width: 20px; height: 20px; accent-color: #1B72C4; flex-shrink: 0; }
.gbm-take .gbm-m { flex: 1; min-width: 0; }
.gbm-take .gbm-n1 { font-weight: 700; font-size: 13px; }
.gbm-take .gbm-n2 { font-size: 11px; color: #64748B; }
.gbm-take .gbm-inp { width: 92px; height: 38px; flex-shrink: 0; }
.gbm-signs { display: flex; justify-content: space-between; gap: 24px; margin-top: 30px; color: #64748B; font-size: 11px; }
.gbm-signs span { flex: 1; border-top: 1px solid #94A3B8; padding-top: 5px; }

/* selling */
.gbm-btnbar form { display: contents; }
/* four or five actions: narrower buttons so they fit a 320px phone */
body.gbm-body .gbm-btnbar.gbm-many { gap: 6px; padding-left: 8px; padding-right: 8px; }
body.gbm-body .gbm-btnbar.gbm-many .gbm-ibw { flex: 1 1 0; min-width: 0; max-width: 68px; }
body.gbm-body .gbm-btnbar.gbm-many .gbm-ibtn { width: 100%; max-width: 56px; }
.gbm-challan { background: #fff; border-radius: 16px; padding: 18px 16px; font-size: 13px; display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.gbm-sign { margin-top: 26px; border-top: 1px solid #94A3B8; padding-top: 6px; color: #64748B; }
dialog.gbm-sheet { position: fixed; inset: auto 0 0 0; width: 100%; max-width: 480px; max-height: 90vh; margin: 0 auto; padding: 18px 16px 12px; border: 0; border-radius: 22px 22px 0 0; background: #fff; color: inherit; overflow: auto; }
dialog.gbm-sheet::backdrop { background: rgba(15, 23, 42, .45); }
dialog.gbm-sheet .gbm-btnbar { padding-bottom: 8px; }
.gbm-row.gbm-static { cursor: default; }
.gbm-return-pick { display: block; cursor: pointer; }
.gbm-return-pick input { position: absolute; opacity: 0; pointer-events: none; }
.gbm-return-pick .gbm-card { display: flex; gap: 10px; align-items: center; border: 1.5px solid transparent; }
.gbm-return-pick .gbm-m { flex: 1; min-width: 0; }
.gbm-return-pick .gbm-n1, .gbm-return-pick .gbm-n2 { display: block; }
.gbm-return-pick .gbm-n1 { font-weight: 700; }
.gbm-return-pick b { white-space: nowrap; }
.gbm-return-pick input:checked + .gbm-card { border-color: #1B72C4; }
.gbm-return-pick input:focus-visible + .gbm-card { outline: 2px solid #1B72C4; }
.gbm-bar-logo { width: 28px; height: 28px; object-fit: contain; }
.gbm-btnbar.gbm-salebar { justify-content: space-between; align-items: center; }
.gbm-salebar .gbm-saleacts { display: flex; gap: 14px; margin-left: auto; margin-right: auto; }
.gbm-salebar.gbm-with-total .gbm-saleacts { margin-right: 0; }
.gbm-saletotal b { display: block; font-size: 18px; }
.gbm-saletotal span { font-size: 11px; color: #64748B; }
.gbm-linehead { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.gbm-linehead b { display: block; font-size: 14px; }
body.gbm-body button.gbm-remove { color: #B42318; font-weight: 700; padding: 2px 6px; font-size: 15px; }
.gbm-stepper { display: flex; align-items: center; border: 1px solid #CBD5E1; border-radius: 12px; overflow: hidden; background: #fff; }
body.gbm-body .gbm-stepper button { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; color: #1B72C4; }
body.gbm-body .gbm-stepper button svg { width: 15px; height: 15px; }
.gbm-stepper input { width: 40px; height: 30px; border: 0; text-align: center; font: inherit; font-weight: 800; font-size: 13px; appearance: textfield; background: transparent; }
.gbm-stepper input::-webkit-inner-spin-button { appearance: none; }
.gbm-linefoot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.gbm-linefoot b { font-size: 16px; }
.gbm-prefix { color: #64748B; }
.gbm-billtotal { text-align: center; }
.gbm-billtotal b { display: block; font-size: 32px; font-weight: 800; }
.gbm-done { text-align: center; padding-top: 14px; }
.gbm-done-mark { width: 80px; height: 80px; border-radius: 50%; background: #E7F6EC; color: #067647; display: inline-flex; align-items: center; justify-content: center; }
.gbm-done-mark svg { width: 44px; height: 44px; }
.gbm-done h2 { font-size: 21px; font-weight: 800; margin: 8px 0 0; }
.gbm-ready { display: flex; gap: 10px; align-items: center; font-size: 12px; color: inherit; text-decoration: none; }
.gbm-ready img { width: 56px; height: 56px; }
body.gbm-body button.gbm-pickrow { width: 100%; text-align: left; border-bottom: 1px solid #EEF1F5; }
.gbm-pickrow .gbm-m, .gbm-pickrow .gbm-n1, .gbm-pickrow .gbm-n2 { display: block; }
.gbm-center { text-align: center; }
body.gbm-body .gbm-tab.gbm-plus { justify-content: center; }
.gbm-receipt { background: #fff; border-radius: 16px; padding: 18px 16px; display: flex; flex-direction: column; gap: 8px; text-align: center; flex-shrink: 0; box-shadow: 0 8px 22px -14px rgba(15,23,42,.5); }
.gbm-receipt-logo { width: 46px; height: 46px; object-fit: contain; align-self: center; }
.gbm-receipt-name { font-size: 15px; text-transform: uppercase; }
.gbm-receipt-title { color: #12599E; font-weight: 800; font-size: 13px; border-top: 1px dashed #CBD5E1; border-bottom: 1px dashed #CBD5E1; padding: 7px 0; }
.gbm-receipt-block { text-align: left; font-size: 12.5px; border-bottom: 1px dashed #CBD5E1; padding-bottom: 8px; }
.gbm-receipt-line { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.gbm-receipt-total { font-size: 17px; font-weight: 800; }
.gbm-receipt .gbm-note { text-align: left; }
.gbm-receipt-foot { display: flex; gap: 12px; align-items: center; text-align: left; }
.gbm-upn { font-size: 12px; font-weight: 700; color: #12805C; }

/* Steps along the top of a longer job: dot and line positions for three or four steps. */
.gbm-phone .gbm-stp { flex-shrink: 0; }
.gbm-stp-3 .gbm-std b:nth-of-type(1) { left: 16.667%; }
.gbm-stp-3 .gbm-std b:nth-of-type(2) { left: 50%; }
.gbm-stp-3 .gbm-std b:nth-of-type(3) { left: 83.333%; }
.gbm-stp-3 .gbm-std .gbm-tr { left: 16.667%; right: 16.667%; }
.gbm-stp-3 .gbm-std .gbm-pr { left: 16.667%; width: 0; }
.gbm-stp-3.gbm-stp-at-2 .gbm-std .gbm-pr { width: 33.333%; }
.gbm-stp-3.gbm-stp-at-3 .gbm-std .gbm-pr { width: 66.667%; }
.gbm-stp-4 .gbm-std b:nth-of-type(1) { left: 12.5%; }
.gbm-stp-4 .gbm-std b:nth-of-type(2) { left: 37.5%; }
.gbm-stp-4 .gbm-std b:nth-of-type(3) { left: 62.5%; }
.gbm-stp-4 .gbm-std b:nth-of-type(4) { left: 87.5%; }
.gbm-stp-4 .gbm-std .gbm-tr { left: 12.5%; right: 12.5%; }
.gbm-stp-4 .gbm-std .gbm-pr { left: 12.5%; width: 0; }
.gbm-stp-4.gbm-stp-at-2 .gbm-std .gbm-pr { width: 25%; }
.gbm-stp-4.gbm-stp-at-3 .gbm-std .gbm-pr { width: 50%; }
.gbm-stp-4.gbm-stp-at-4 .gbm-std .gbm-pr { width: 75%; }
/* The table on a company claim sheet. */
.gbm-claimsheet { width: 100%; border-collapse: collapse; font-size: 12px; }
.gbm-claimsheet th, .gbm-claimsheet td { text-align: left; padding: 5px 4px; border-bottom: 1px solid #E2E8F0; overflow-wrap: anywhere; }
.gbm-claimsheet th { background: #EEF4FB; }
/* Shown only on paper. */
.gbm-printonly { display: none; }
@media print { body.gbm-body .gbm-printonly { display: block; font-size: 14px; } }
/* Very narrow phones: a large figure stays on one line. */
@media (max-width: 360px) { .gbm-phone .gbm-grid2 .gbm-kpi .gbm-v { font-size: 16px; white-space: nowrap; } }
/* Receipt paper: the width the printed receipt takes. A4 keeps the full width. */
@media print {
  body.gbm-body .gbm-receipt.gbm-paper-58 { width: 50mm; margin: 0 auto; padding: 2mm 0; font-size: 10px; }
  body.gbm-body .gbm-receipt.gbm-paper-80 { width: 72mm; margin: 0 auto; padding: 3mm 0; }
  .gbm-receipt.gbm-paper-58 .gbm-receipt-block, .gbm-receipt.gbm-paper-58 .gbm-receipt-total { font-size: 11px; }
}
textarea.gbm-inp { width: 100%; resize: vertical; font: inherit; }
/* A two-way choice whose halves are buttons (each saves at once). */
body.gbm-body .gbm-seg-buttons button { flex: 1; padding: 9px 2px; font-weight: 700; font-size: 12px; color: #475569; border-radius: 11px; }
body.gbm-body .gbm-seg-buttons button.gbm-on { background: #fff; color: #1B72C4; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.gbm-seg-buttons { flex-shrink: 0; }
.gbm-row .gbm-chips form { display: contents; }
/* Large text: the page's content is drawn bigger; the bars stay where the thumb expects them. */
body.gbm-large .gbm-content { zoom: 1.12; }
@media print { body.gbm-large .gbm-content { zoom: 1; } }
/* The bell on Home with how many are new, and a mark on the new ones in the list. */
body.gbm-body a.gbm-bellb { position: relative; margin-left: auto; color: #fff; flex-shrink: 0; }
.gbm-bell-count { position: absolute; top: -5px; right: -5px; min-width: 18px; padding: 0 4px; border-radius: 9px; background: #B42318; color: #fff; font-size: 10.5px; font-weight: 800; line-height: 18px; text-align: center; }
.gbm-list .gbm-row.gbm-new .gbm-n1::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: #B42318; vertical-align: middle; }
/* A figure on Home that opens its report looks like the others. */
body.gbm-body .gbm-mini a { color: inherit; text-decoration: none; min-width: 0; }
body.gbm-body .gbm-mini a { flex: 1; background: rgb(245, 247, 250); border-radius: 10px; padding: 7px 10px; }
@media (max-width: 360px) { body.gbm-body .gbm-mini { gap: 6px; } body.gbm-body .gbm-mini a, body.gbm-body .gbm-mini div { padding: 7px 6px; } body.gbm-body .gbm-mini b { font-size: 12px; white-space: nowrap; } }
body.gbm-body .gbm-seg button { flex: 1; border: 0; background: transparent; font: inherit; font-weight: 700; font-size: 12px; color: rgb(71, 85, 105); padding: 10px 2px; border-radius: 11px; cursor: pointer; }
body.gbm-body .gbm-seg button.gbm-on { background: rgb(255, 255, 255); color: rgb(27, 114, 196); box-shadow: rgba(0, 0, 0, 0.4) 0px 3px 8px -4px; }
body.gbm-body .gbm-act-save { border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 700; color: rgb(27, 114, 196); padding: 8px 0 8px 12px; cursor: pointer; }
body.gbm-body .gbm-help { margin-top: 0; }
body.gbm-body .gbm-ended-icon { width: 76px; height: 76px; border-radius: 50%; }
body.gbm-body .gbm-ended-icon .gbm-icon { width: 36px; height: 36px; }
body.gbm-body h2.gbm-ended-title { font-size: 20px; font-weight: 800; margin: 0; }
body.gbm-body .gbm-ended p { font-size: 12.5px; padding: 0 10px; margin: 0; }
/* the guide's order under the header: steps, then the trail */
.gbm-phone > .gbm-bar { order: -3; }
.gbm-phone > .gbm-stp { order: -2; }
.gbm-phone > .gbm-crumb { order: -1; }
.gbm-scanrow { display: flex; gap: 8px; flex-shrink: 0; }
.gbm-scanrow > .gbm-inp { flex: 1; min-width: 0; }
body.gbm-body button.gbm-scan { flex: none; width: 42px; min-height: 42px; height: auto; border: 0; border-radius: 14px; background: linear-gradient(135deg, #1B72C4, #2E8AD8); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
body.gbm-body button.gbm-scan.gbm-scan-qr { background: #0F766E; }
body.gbm-body .gbm-scan .gbm-icon { width: 19px; height: 19px; }
.gbm-scansheet video.gbm-scanview { width: 100%; max-height: 50vh; border-radius: 16px; background: #000; margin: 10px 0; }
body.gbm-body button.gbm-saletotal { border: 0; background: transparent; font: inherit; color: inherit; text-align: left; padding: 0; cursor: pointer; }
body.gbm-body button.gbm-picked { display: flex; flex-direction: column; gap: 6px; width: 100%; text-align: left; font: inherit; color: inherit; border: 1.5px solid #1B72C4; cursor: pointer; }
.gbm-picked-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.gbm-picked-head .gbm-m { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.gbm-picked .gbm-line { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.gbm-money-got { color: #12805C; }
.gbm-tot .gbm-pays span:last-child { color: #12805C; }
.gbm-suffix { font-weight: 700; margin-left: 4px; }
.gbm-gave-first > [data-gba-when="Now"] { order: -1; }
body.gbm-body .gbm-inp input[type=number] { -moz-appearance: textfield; appearance: textfield; }
body.gbm-body .gbm-inp input[type=number]::-webkit-inner-spin-button, body.gbm-body .gbm-inp input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
body.gbm-body .gbm-picked .gbm-n1 { font-weight: 800; font-size: 14px; }
body.gbm-body .gbm-picked .gbm-n2 { font-weight: 400; font-size: 11.5px; color: #64748B; }
body.gbm-body .gbm-picked .gbm-av { width: 46px; height: 46px; }
.gbm-picked-head .gbm-badge { align-self: flex-start; }
body.gbm-body .gbm-inp.gbm-big:has(.gbm-suffix) { justify-content: center; }
body.gbm-body .gbm-inp.gbm-big:has(.gbm-suffix) input { flex: none; width: 6ch; text-align: right; outline: none; box-shadow: none; border: 0; }
[data-gba-exchange="1"] [data-gba-when="Now"].gbm-tot, [data-gba-exchange="1"] .gbm-note[data-gba-when="Now"] { display: none; }
/* dealer card, and the challan looked at before an order is confirmed */
body.gbm-body .gbm-credit progress { accent-color: #B45309; }
body.gbm-body .gbm-credit progress::-webkit-progress-value { background: #B45309; }
@media print {
  body.gbm-body:has(dialog.gbm-challansheet[open]) [data-gba-screen] { display: none !important; }
  body.gbm-body:has(dialog.gbm-challansheet[open]) dialog.gbm-challansheet { position: static; max-height: none; max-width: none; }
  body.gbm-body:has(dialog.gbm-challansheet[open]) dialog.gbm-challansheet button { display: none; }
}
body.gbm-body [data-gba-dealer] .gbm-money-in { color: #0F766E; }
/* variants and import */
body.gbm-body .gbm-variant-add:not(:has(input[data-gbm-variants]:checked)) .gbm-variant-form { display: none; }
.gbm-fix summary { cursor: pointer; list-style: none; font-weight: 700; color: #1B72C4; }
.gbm-fix[open] summary { margin-bottom: 8px; }
.gbm-pickone { display: inline-flex; }
body.gbm-body .gbm-chip-menu[open] > form.gbm-card { margin-top: 8px; min-width: 260px; }
/* photo box and the kept photos */
body.gbm-body label.gbm-photo { flex-wrap: wrap; height: auto; min-height: 46px; padding: 8px; cursor: pointer; position: relative; }
body.gbm-body label.gbm-photo input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; opacity: 0; cursor: pointer; }
.gbm-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.gbm-photos img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; display: block; }

/* receive / pay: the account card is the chooser */
body.gbm-body label.gbm-partycard { position: relative; display: flex; flex-direction: row; align-items: center; gap: 10px; cursor: pointer; }
.gbm-partycard .gbm-m { flex: 1; min-width: 0; }
.gbm-partycard .gbm-m span { display: block; }
.gbm-partycard .gbm-n2 { font-weight: 700; }
body.gbm-body .gbm-partycard select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.gbm-partycard:focus-within { outline: 2px solid #1B72C4; outline-offset: 2px; }

/* waiting to send */
body.gbm-body a.gbm-waiting { display: block; margin: 6px 14px 0; padding: 7px 12px; border-radius: 12px; background: #FDF3E3; color: #B45309; font-weight: 700; font-size: 12.5px; text-align: center; text-decoration: none; }
body.gbm-body a.gbm-waiting[hidden] { display: none; }

/* a title over chips or a read-only box reads like a field label, as in the guide */
body.gbm-body .gbm-phone .gbm-fld > span.gbm-hint:first-child { font-size: 12px; font-weight: 600; color: #334155; }
/* native choosers drawn with the guide's chevron */
body.gbm-body select.gbm-inp { -webkit-appearance: none; appearance: none; padding-right: 34px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center / 16px 16px; }

/* receive stock: the item's name is its chooser; a total that opens the edit screen */
body.gbm-body select.gbm-title-select { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0; font: inherit; font-weight: 800; font-size: 14px; color: #0F172A; text-overflow: ellipsis; }
body.gbm-body button.gbm-tapcard { display: flex; flex-direction: column; gap: 6px; width: 100%; text-align: left; font: inherit; color: inherit; border: 0; cursor: pointer; }
.gbm-tapcard .gbm-line { display: flex; justify-content: space-between; }
[data-gba-serial-part][hidden], [data-gba-quantity-part][hidden], [data-gba-edit-screen][hidden], [data-e-stepper][hidden] { display: none !important; }

[data-gba-dealer-fields][hidden] { display: none !important; }

/* a job just done: a mark, a line, and what it was */
.gbm-done { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 14px 0 4px; }
.gbm-done b { font-size: 18px; font-weight: 800; }
.gbm-done-mark { width: 68px; height: 68px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.gbm-done-mark .gbm-icon { width: 32px; height: 32px; }
.gbm-done-ok { background: #E7F6EF; color: #067647; }
.gbm-done-wait { background: #FDECEC; color: #B42318; }
body.gbm-body .gbm-card.gbm-done-card { display: flex; flex-direction: row; gap: 12px; align-items: center; }
.gbm-done-card .gbm-code-qr { width: 78px; height: 78px; flex: none; }
.gbm-body .gbm-receipt.gbm-printonly { display: none; }
@media print { body.gbm-body .gbm-receipt.gbm-printonly { display: flex; } body.gbm-body .gbm-done, body.gbm-body .gbm-done-card { display: none !important; } }
[data-gba-replace-step][hidden], [data-gba-charge-step][hidden], [data-gba-other-note][hidden], [data-gba-gets][hidden], [data-gba-hand-back][hidden], [data-gba-hand-cancel][hidden] { display: none !important; }

/* a list whose chosen card the bottom buttons act on */
.gbm-choose { display: block; position: relative; cursor: pointer; }
.gbm-choose input { position: absolute; opacity: 0; pointer-events: none; }
.gbm-choose .gbm-lcard { display: flex; flex-direction: column; border: 1.5px solid transparent; }
.gbm-choose input:checked + .gbm-lcard { border-color: #1B72C4; }
.gbm-choose input:focus-visible + .gbm-lcard { outline: 2px solid #1B72C4; outline-offset: 2px; }
.gbm-choose .gbm-lcard .gbm-a { display: flex; justify-content: space-between; }
[data-gba-new-battery][hidden] { display: none !important; }

/* send receipt: title over its line */
dialog[data-gba-send-sheet] .gbm-m > span { display: block; }

/* a switch that says what on and off mean */
.gbm-tg:has(input:checked) .gbm-when-off, .gbm-tg:not(:has(input:checked)) .gbm-when-on { display: none; }
button.gbm-row { width: 100%; background: transparent; border: 0; font: inherit; text-align: left; cursor: pointer; }
button.gbm-row[hidden] { display: none; }
.gbm-row .gbm-m > .gbm-n1, .gbm-row .gbm-m > .gbm-n2 { display: block; }   /* a row that is a link holds spans */
.gbm-radios b { font-weight: inherit; }

/* Home: the shop chip opens the list of shops */
.gbm-shoppick{position: relative; z-index: 5; display: inline-block;}
.gbm-shoppick > summary{list-style: none; cursor: pointer;}
.gbm-shoppick > summary::-webkit-details-marker{display: none;}
.gbm-shoplist{position: absolute; top: 100%; left: 0; margin-top: 4px; min-width: 200px; max-width: 80vw; background: #fff; border: 1px solid #e3e8ef; border-radius: 12px; box-shadow: 0 10px 26px -8px rgba(15, 23, 42, 0.35); overflow: hidden;}
.gbm-shoplist a{display: block; padding: 11px 14px; color: #0f172a; text-decoration: none; font-size: 13px; font-weight: 600;}
.gbm-shoplist a + a{border-top: 1px solid #eef2f7;}
.gbm-shoplist a.gbm-on{color: #12599e; background: #eff6fd;}
.gbm-earlier{margin-top: -4px;}
/* while the list is open the header must not clip it, and it sits above the figures card */
.gbm-hg:has(> .gbm-shoppick[open]) { overflow: visible; z-index: 10; }   /* the body under the header is at 9 */

/* parts of a shared screen that only the computer shows, and the wrapper only the computer lays out */
.gbm-side { display: contents; }
body.gbm-body:not(.gbw) .gbw-only { display: none !important; }

body.gbm-body a.gbm-forgot-link { display: block; text-align: center; margin-top: 10px; color: #1B72C4; font-weight: 700; font-size: 13px; }

/* an item's barcode and QR side by side: the barcode takes what room is left */
.gbm-codes { flex-wrap: wrap; }
body.gbm-body .gbm-codes > img.gbm-itembar { flex: 1 1 120px; min-width: 0; max-width: 200px; height: 44px; object-fit: contain; }

/* a field with its scan button */
.gbm-codescan { align-items: flex-start; }
.gbm-codescan > .gbm-fld { flex: 1; min-width: 0; }
.gbm-codescan > .gbm-scan { margin-top: 18px; flex: none; }

/* support view: the Super Admin is looking, nothing can be changed */
.gbm-support { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; background: #B42318; color: #fff; font-size: 12.5px; }
.gbm-support form { margin: 0; }
.gbm-support button { border: 1px solid #fff; border-radius: 8px; background: transparent; color: #fff; padding: 4px 12px; font: inherit; font-weight: 700; cursor: pointer; }
