/**
 * Go CSS · apps/counter-app/counter-app.css
 * 
 * Purpose:
 *   This dashboard piece.
 * 
 * Dashboard:
 *   Go · App Store / data-view · counter
 * 
 * This file:
 *   business/dashboard/counter-app/counter-app.css
 * 
 * Depends on:
 *   - business/dashboard/shell/shell.html
 *   - scripts/assemble-dashboards.js
 * 
 * Used by:
 *   - scripts/assemble-dashboards.js → business/dashboard/styles.css
 */

/* In-store till (POS) — modern register layout */
.pos-workspace {
  --pos-search-h: 48px;
  display: grid;
  gap: 1.15rem;
  width: 100%;
  max-width: min(100%, 72rem);
  margin-inline: auto;
  padding: 0;
  box-sizing: border-box;
  background: transparent;
  box-shadow: none;
  border: 0;
}

/* Beat .main > .view > * { max-width: 100% } so Counter stays a centered column */
body.business-account.portal-app .main > .view > .pos-workspace,
.main > .view > .pos-workspace {
  width: 100%;
  max-width: min(100%, 72rem);
  margin-inline: auto;
}

.pos-workspace-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 0.15rem;
}

.pos-eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tumicha-muted, #7a6550);
}

.pos-title {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 1.75rem);
  letter-spacing: -0.03em;
  color: var(--tumicha-ink, #2b1a0d);
}

.pos-lede {
  margin: 0.35rem 0 0;
  max-width: 34rem;
  line-height: 1.45;
}

.pos-workspace-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: flex-end;
}

.pos-search-label {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  flex: 1 1 14rem;
  min-width: min(17rem, 100%);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--tumicha-muted, #7a6550);
}

.pos-search-label input {
  width: 100%;
  height: var(--pos-search-h, 48px);
  min-height: var(--pos-search-h, 48px);
  max-height: var(--pos-search-h, 48px);
  margin: 0;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid var(--tumicha-border, rgba(166, 116, 47, 0.18));
  background: #fff;
  padding: 0 0.85rem;
  appearance: none;
  -webkit-appearance: none;
}

.pos-screen {
  display: grid;
  gap: 1rem;
  width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
}

.pos-screen[data-pos-screen='till'],
.pos-screen[data-pos-screen='checkout'] {
  width: 100%;
  max-width: none;
}

.pos-screen[data-pos-screen='till'] .pos-till-toolbar,
.pos-screen[data-pos-screen='till'] .pos-catalog-grid,
.pos-screen[data-pos-screen='till'] .pos-till-status,
.pos-screen[data-pos-screen='checkout'] .pos-till-status,
.pos-screen[data-pos-screen='till'] .pos-catalog-empty,
.pos-screen[data-pos-screen='machines'] .pos-screen-nav,
.pos-screen[data-pos-screen='machines'] .pos-machines-panel,
.pos-screen[data-pos-screen='invoices'] .pos-screen-nav,
.pos-screen[data-pos-screen='refunds'] .pos-screen-nav,
.pos-screen[data-pos-screen='machines'] > .muted-line,
.pos-screen[data-pos-screen='invoices'] > .muted-line,
.pos-screen[data-pos-screen='refunds'] > .muted-line,
.pos-screen[data-pos-screen='branches'] .pos-screen-nav,
.pos-screen[data-pos-screen='branches'] .pos-home-panel,
.pos-screen[data-pos-screen='branches'] .pos-branch-picker,
.pos-screen[data-pos-screen='branches'] > .muted-line,
.pos-screen[data-pos-screen='branches'] .muted-text {
  width: 100%;
  margin-inline: auto;
}

.pos-screen.hidden {
  display: none !important;
}

.pos-screen-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.pos-screen-nav .pos-clear-link {
  margin-left: auto;
}

.pos-back-btn,
.pos-clear-link {
  width: auto;
  max-width: none;
  padding: 0.45rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 650;
}

.pos-home-head {
  display: grid;
  gap: 0.25rem;
}

.pos-home-head h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.pos-home-head .muted-line {
  margin: 0;
}

.pos-branch-picker {
  display: grid;
  gap: 0.85rem;
}

.pos-branch-picker .catalogue-shop-strip,
.pos-branch-picker .pos-branch-section {
  margin: 0;
  padding: 0.95rem 1rem 0.85rem;
  border: 1px solid rgba(16, 16, 18, 0.1);
  border-radius: 1rem;
  background: #fff;
  box-shadow: none;
  display: grid;
  gap: 0.75rem;
}

.pos-branch-section-hint {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
}

.pos-branch-search-label {
  display: block;
  width: 100%;
  margin: 0;
}

.pos-branch-search {
  width: 100%;
  min-height: 2.45rem;
  margin: 0;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(16, 16, 18, 0.12);
  border-radius: 0.9rem;
  background: #fff;
  color: var(--ink, #121212);
  font: inherit;
  box-sizing: border-box;
}

.pos-branch-search:focus {
  outline: 2px solid color-mix(in srgb, var(--ink, #121212) 35%, transparent);
  outline-offset: 1px;
}

.pos-branch-picker .catalogue-shop-rail-shell {
  margin: 0;
  padding: 0;
  display: block;
}

.pos-branch-picker .catalogue-shop-rail-arrow {
  display: none !important;
}

.pos-branch-picker .catalogue-shop-rail,
.pos-list,
.pos-invoices-list,
.pos-refunds-list,
.pos-terminals-list {
  display: grid;
  gap: 0.65rem;
  overflow: visible;
  padding: 0;
}

.pos-list-card,
.pos-invoices-card,
.pos-refunds-card,
.pos-machines-card,
.pos-branch-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0.85rem 0.9rem;
  border-radius: 1rem;
  border: 1px solid rgba(16, 16, 18, 0.1);
  background: #fff;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.pos-refunds-card {
  cursor: pointer;
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
  background: #fff;
}

.pos-list-card:hover,
.pos-invoices-card:hover,
.pos-refunds-card:hover,
.pos-machines-card:hover,
.pos-branch-card:hover {
  transform: translateY(-1px);
  border-color: rgba(16, 16, 18, 0.18);
  box-shadow: 0 10px 22px rgba(16, 16, 18, 0.05);
}

.pos-list-card.is-selected,
.pos-invoices-card.is-selected,
.pos-refunds-card.is-focused,
.pos-refunds-card.is-open,
.pos-refunds-card.is-active,
.pos-branch-card.is-active {
  border-color: #121212;
  box-shadow: 0 0 0 1px #121212;
}

.pos-branch-card.is-locked {
  opacity: 0.72;
}

.pos-list-mark,
.pos-invoices-card-qr,
.pos-refunds-qr,
.pos-branch-card-mark {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 0.78rem;
  background: #f4f4f5;
  box-shadow: 0 1px 2px rgba(16, 16, 18, 0.12);
  flex-shrink: 0;
}

.pos-invoices-card-qr,
.pos-refunds-qr {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  background: #fff;
}

.pos-branch-card-mark img,
.pos-list-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pos-branch-card-initial {
  font-size: 0.95rem;
  font-weight: 750;
  color: #101012;
}

.pos-list-copy,
.pos-branch-card-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.pos-list-copy strong,
.pos-branch-card-copy strong,
.pos-invoices-code,
.pos-refunds-code {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.pos-invoices-code,
.pos-refunds-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.06em;
}

.pos-list-copy p,
.pos-branch-card-copy p,
.pos-invoices-card .muted-line,
.pos-refunds-card .muted-line {
  margin: 0;
  color: #667085;
  font-size: 0.82rem;
  line-height: 1.35;
}

.pos-list-pill,
.pos-branch-card-pill {
  display: inline-flex;
  width: fit-content;
  justify-self: end;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #f4f4f5;
  color: #101012;
}

.pos-list-pill.is-good,
.pos-branch-card-pill.is-live {
  background: rgba(4, 120, 87, 0.12);
  color: #047857;
}

.pos-list-pill.is-warn,
.pos-branch-card-pill.is-locked {
  background: rgba(181, 71, 8, 0.12);
  color: #b54708;
}

.pos-refunds-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
}

.pos-till-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
}

.pos-till-identity {
  flex: 1 1 10rem;
  min-width: 0;
  text-align: center;
}

.pos-till-branch-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tumicha-muted, #7a6550);
}

.pos-till-identity h2,
#pos-till-branch-name {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--tumicha-ink, #2b1a0d);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-till-status {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0.7rem 0.9rem 0.8rem;
  border: 1px solid rgba(16, 16, 18, 0.12);
  border-radius: 14px;
  background: #fff;
}

.pos-till-status-top {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  min-width: 0;
}

.pos-till-status-eyebrow {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tumicha-muted, #7a6550);
}

.pos-till-status-note {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--tumicha-ink, #2b1a0d);
}

.pos-till-status-track {
  position: relative;
  height: 0.3rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(16, 16, 18, 0.08);
}

.pos-till-status-fill {
  height: 100%;
  width: 33%;
  border-radius: inherit;
  background: #101012;
  transition: width 0.35s ease;
}

.pos-till-status-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pos-till-status-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  margin: 0;
  padding: 0.38rem 0.25rem;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  background: transparent;
  color: var(--tumicha-muted, #7a6550);
  font: inherit;
  cursor: pointer;
}

.pos-till-status-btn:hover,
.pos-till-status-btn:focus {
  outline: none;
  background: rgba(16, 16, 18, 0.04);
}

.pos-till-status-num {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(43, 26, 13, 0.16);
  font-size: 0.75rem;
  font-weight: 700;
  color: inherit;
}

.pos-till-status-label {
  font-size: 0.8rem;
  font-weight: 650;
  text-align: center;
}

.pos-till-status-btn.is-current {
  color: var(--tumicha-ink, #2b1a0d);
  border-color: rgba(16, 16, 18, 0.14);
  background: #fff;
}

.pos-till-status-btn.is-current .pos-till-status-num {
  border-color: #101012;
  background: #101012;
  color: #fff;
}

.pos-till-status-btn.is-done:not(.is-current) {
  color: var(--tumicha-ink, #2b1a0d);
}

.pos-till-status-btn.is-done:not(.is-current) .pos-till-status-num {
  border-color: rgba(4, 120, 87, 0.45);
  background: rgba(4, 120, 87, 0.12);
  color: #047857;
}

.pos-till-toolbar {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.65rem 0.75rem;
  align-items: center;
  justify-content: center;
}

.pos-screen[data-pos-screen='till'] .pos-search-label {
  flex: 0 1 22rem;
  min-width: 0;
  width: min(22rem, calc(100% - 22rem));
}

.secondary-btn.pos-scan-btn,
#pos-scan-btn.secondary-btn,
#pos-phone-scan-btn.secondary-btn,
#pos-invoices-phone-scan-btn.secondary-btn,
#pos-refunds-phone-scan-btn.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: auto;
  height: var(--pos-search-h, 48px) !important;
  min-height: var(--pos-search-h, 48px) !important;
  max-height: var(--pos-search-h, 48px) !important;
  margin: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-radius: 12px;
  font-weight: 650;
  line-height: 1;
  box-sizing: border-box;
}

.pos-phone-scan-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(16, 16, 18, 0.46);
}

.pos-phone-scan-overlay.hidden {
  display: none !important;
}

.pos-phone-scan-dialog {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  width: min(18.5rem, calc(100vw - 2rem));
  padding: 1.15rem 1.05rem 1.2rem;
  border: 1px solid rgba(16, 16, 18, 0.12);
  border-radius: 16px;
  background: #fff;
  text-align: center;
  box-shadow: 0 18px 40px rgba(16, 16, 18, 0.18);
}

.pos-phone-scan-dialog h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.pos-phone-scan-dialog .muted-line {
  margin: 0;
  max-width: 16rem;
}

.pos-phone-scan-close {
  position: absolute;
  top: 0.4rem;
  right: 0.45rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #101012;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.pos-phone-scan-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tumicha-muted, #7a6550);
}

.pos-phone-scan-qr {
  display: grid;
  place-items: center;
  width: 11.5rem;
  min-height: 11.5rem;
  margin: 0.2rem 0 0.15rem;
  padding: 0.4rem;
  border-radius: 12px;
  background: #fff;
}

.pos-phone-scan-qr-pending {
  color: var(--tumicha-muted, #7a6550);
  font-size: 0.82rem;
}

.pos-phone-scan-qr canvas,
.pos-phone-scan-qr img {
  display: block;
  width: 10.5rem;
  height: 10.5rem;
}

.pos-phone-scan-fallback {
  display: grid;
  gap: 0.3rem;
  width: 100%;
  justify-items: center;
}

.pos-phone-scan-fallback.hidden {
  display: none !important;
}

.pos-phone-scan-fallback-label {
  margin: 0;
}

.pos-phone-scan-url {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-all;
  font-size: 0.72rem;
  line-height: 1.35;
  color: inherit;
}

.pos-phone-scan-copy {
  min-height: 2.2rem;
}

.pos-phone-scan-reconnect {
  margin-top: 0.2rem;
}

.pos-phone-scan-reconnect.hidden {
  display: none !important;
}

.pos-phone-scan-dialog.is-paired .pos-phone-scan-qr,
.pos-phone-scan-dialog.is-paired .pos-phone-scan-fallback {
  display: none !important;
}

.pos-scanner-status-wrap,
.catalogue-barcode-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
}

.pos-home-panel.hidden {
  display: none !important;
}

.pos-scanners-panel {
  display: grid;
  gap: 1rem;
  padding: 1rem 0 0.25rem;
}

.pos-scanners-panel-head {
  display: grid;
  gap: 0.35rem;
}

.pos-scanners-panel-head h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.pos-scanners-manage-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem 1rem;
}

.scanners-manage-card .pos-scanners-manage-row {
  margin-top: 0.75rem;
}

.pos-scanner-connect-btn,
.catalogue-barcode-status-row .secondary-btn {
  font-size: 0.78rem;
  font-weight: 650;
  width: auto;
  max-width: none;
  padding: 0.4rem 0.75rem;
}

.pos-staff-session {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.2rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(18, 18, 18, 0.1);
  background: rgba(255, 255, 255, 0.78);
  color: var(--tumicha-ink, #2b1a0d);
  font-size: 0.78rem;
  font-weight: 650;
  max-width: 100%;
}

.pos-staff-session small {
  font-weight: 500;
  color: var(--tumicha-muted, #7a6550);
}

.pos-catalog-toolbar {
  display: inline-flex;
  gap: 0.3rem;
  padding: 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--tumicha-border, rgba(166, 116, 47, 0.16));
  width: fit-content;
  max-width: 100%;
}

.pos-filter-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--tumicha-muted, #7a6550);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}

.pos-filter-btn.is-active {
  background: var(--tumicha-brown, #2e2420);
  color: #fff;
}

.pos-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.55rem;
}

.pos-catalog-tile {
  display: grid;
  gap: 0;
  text-align: left;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(166, 116, 47, 0.14);
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(43, 26, 13, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.pos-catalog-tile:hover {
  border-color: rgba(201, 146, 63, 0.55);
  box-shadow: 0 6px 16px rgba(43, 26, 13, 0.08);
  transform: translateY(-1px);
}

.pos-catalog-tile:focus-visible {
  outline: 2px solid var(--tumicha-gold, #c9923f);
  outline-offset: 2px;
}

.pos-catalog-tile-media {
  display: block;
  aspect-ratio: 1 / 1;
  width: 100%;
  background: linear-gradient(160deg, #f4efe7, #e8e0d4);
  overflow: hidden;
}

.pos-catalog-tile-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pos-catalog-tile-media--empty {
  position: relative;
}

.pos-catalog-tile-media--empty::after {
  content: '';
  position: absolute;
  inset: 30%;
  border-radius: 0.35rem;
  border: 1.5px solid rgba(122, 101, 80, 0.35);
}

.pos-catalog-tile-media--empty[data-kind='service']::after {
  border-radius: 999px;
}

.pos-catalog-tile-copy {
  display: grid;
  gap: 0.12rem;
  padding: 0.5rem 0.55rem 0.6rem;
}

.pos-catalog-tile-copy strong {
  font-size: 0.8rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--tumicha-ink, #2b1a0d);
}

.pos-catalog-tile-price {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--tumicha-brown, #2e2420);
}

.pos-catalog-tile-meta {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  color: var(--tumicha-muted, #7a6550);
}

.pos-till-checkout-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.8rem 0.95rem;
  border-radius: 16px;
  border: 1px solid rgba(166, 116, 47, 0.16);
  background: #fff;
  box-shadow: 0 8px 22px rgba(43, 26, 13, 0.08);
}

.pos-till-checkout-bar.is-ready {
  border-color: rgba(16, 16, 18, 0.18);
  box-shadow: 0 8px 22px rgba(16, 16, 18, 0.08);
}

.pos-till-cart-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex: 0 1 auto;
  align-self: center;
  min-width: 0;
  max-width: 16rem;
  height: var(--pos-search-h, 48px);
  min-height: var(--pos-search-h, 48px);
  max-height: var(--pos-search-h, 48px);
  margin: 0;
  padding: 0 0.85rem 0 0.7rem;
  border: 1px solid #101012;
  border-radius: 12px;
  background: #101012;
  color: #fff;
  font: inherit;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  box-sizing: border-box;
}

.pos-till-cart-btn:hover {
  background: #1c1c20;
}

.pos-till-cart-btn:focus-visible {
  outline: 2px solid #101012;
  outline-offset: 2px;
}

.pos-till-cart-btn.hidden,
#pos-till-add-summary.hidden {
  display: none !important;
}

.pos-till-cart-mark {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
}

.pos-till-cart-mark svg {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
}

.pos-till-cart-count {
  position: absolute;
  top: -0.38rem;
  right: -0.48rem;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.22rem;
  border-radius: 999px;
  background: #fff;
  color: #101012;
  font-size: 0.62rem;
  font-weight: 750;
  line-height: 1.05rem;
  text-align: center;
}

.pos-till-cart-copy {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.86rem;
}

[data-pos-till-panel].hidden,
#pos-catalog-empty.hidden {
  display: none !important;
}

.pos-till-checkout-copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.pos-till-checkout-copy strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.pos-branch-cart-badge {
  position: absolute;
  top: 0.28rem;
  right: 0.28rem;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: var(--tumicha-brown, #2e2420);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.2rem;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

.pos-checkout-stack {
  display: grid;
  gap: 0.85rem;
  width: 100%;
}

.pos-checkout-page {
  display: grid;
  gap: 0.85rem;
  width: 100%;
  max-width: 32rem;
  margin-inline: auto;
  padding: 1rem 1.05rem 1.15rem;
  border: 1px solid rgba(166, 116, 47, 0.16);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(43, 26, 13, 0.06);
}

.pos-checkout-sale,
.pos-sale-slip {
  display: grid;
  gap: 0.85rem;
}

.pos-checkout-sale.hidden,
.pos-sale-slip.hidden {
  display: none !important;
}

.pos-sale-slip h3 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.pos-sale-slip-ref {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.85rem;
}

.pos-sale-slip-ref.hidden {
  display: none !important;
}

.pos-sale-slip-qr {
  width: 8.25rem;
  height: 8.25rem;
  display: block;
  background: #fff;
  border-radius: 0.45rem;
}

.pos-sale-slip-code {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.pos-sale-slip-lines {
  display: grid;
  gap: 0.35rem;
}

.pos-sale-slip-line {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.92rem;
}

.pos-sale-slip-totals {
  display: grid;
  gap: 0.28rem;
}

.pos-sale-slip-totals p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.pos-sale-slip-totals p.hidden {
  display: none !important;
}

.pos-sale-slip-total {
  margin: 0;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(166, 116, 47, 0.12);
  font-size: 1.05rem;
  font-weight: 700;
}

.pos-sale-slip-actions {
  display: grid;
  gap: 0.55rem;
}

.pos-sale-slip-refunded,
.pos-sale-slip-net {
  color: #5c4630;
}

.pos-sale-slip-refunded.hidden,
.pos-sale-slip-net.hidden {
  display: none !important;
}

.pos-sale-slip-line-note {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: #7a684f;
}

.pos-invoices-panel {
  display: grid;
  gap: 0.85rem;
}

#pos-screen-invoices [data-invoice-panel][hidden] {
  display: none !important;
}

.pos-invoices-flow {
  margin: 0;
}

.pos-invoices-flow-steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pos-invoices-flow .pos-till-status-eyebrow,
.pos-invoices-flow .pos-till-status-btn {
  color: #6b7280;
}

.pos-invoices-flow .pos-till-status-note,
.pos-invoices-flow .pos-till-status-btn.is-current,
.pos-invoices-flow .pos-till-status-btn.is-done:not(.is-current) {
  color: #111827;
}

.pos-invoices-tools,
.pos-refunds-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  align-items: end;
}

.pos-slip-find {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
}

.pos-slip-find-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--tumicha-muted, #7a6550);
}

.pos-slip-find-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.65rem 0.75rem;
  min-width: 0;
}

.pos-slip-find-row .pos-search-label {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

.pos-slip-find-row .secondary-btn.pos-scan-btn {
  flex: 0 0 auto;
  align-self: center;
}

.pos-invoices-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}

.pos-invoices-layout.is-open {
  grid-template-columns: minmax(0, 1fr);
}

.pos-invoices-col {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
}

.pos-page-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.pos-page-nav[hidden] {
  display: none !important;
}

.pos-page-arrow {
  appearance: none;
  width: 2.25rem;
  height: 2.15rem;
  border: 1px solid rgba(16, 16, 18, 0.12);
  border-radius: 0.65rem;
  background: #fff;
  color: #101012;
  font: inherit;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}

.pos-page-arrow:hover:not(:disabled) {
  background: #f4f4f5;
}

.pos-page-arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pos-page-label {
  margin: 0;
  flex: 1 1 auto;
  text-align: center;
  font-size: 0.82rem;
  color: #667085;
}

.pos-invoice-detail {
  display: grid;
  gap: 0.7rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(16, 16, 18, 0.1);
  background: #fff;
}

.pos-invoice-detail.hidden {
  display: none;
}

.pos-invoice-detail-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: center;
}

.pos-invoice-detail-qr img {
  display: block;
  width: 7.5rem;
  height: 7.5rem;
  background: #fff;
}

.pos-invoice-detail-lines {
  display: grid;
  gap: 0.35rem;
}

.pos-invoice-detail-line,
.pos-invoice-detail-total {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.pos-invoice-detail-total {
  font-weight: 700;
}

.pos-invoice-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

@media (max-width: 820px) {
  .pos-invoices-tools,
  .pos-refunds-tools,
  .pos-invoices-layout,
  .pos-invoices-layout.is-open {
    grid-template-columns: 1fr;
  }
}

.pos-refunds-panel {
  display: grid;
  gap: 0.85rem;
}

.pos-refunds-focus {
  display: none;
}

.pos-refunds-card p {
  margin: 0;
}

.pos-refunds-flow {
  margin: 0;
}

.pos-refunds-flow-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pos-refunds-flow .pos-till-status-eyebrow,
.pos-refunds-flow .pos-till-status-btn {
  color: #6b7280;
}

.pos-refunds-flow .pos-till-status-note,
.pos-refunds-flow .pos-till-status-btn.is-current,
.pos-refunds-flow .pos-till-status-btn.is-done:not(.is-current) {
  color: #111827;
}

.pos-refunds-step {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
}

.pos-refunds-step[hidden],
#pos-screen-refunds [data-refund-panel="search"][hidden] {
  display: none !important;
}

.pos-refunds-step > .primary-btn {
  width: 100%;
  max-width: 100%;
}

.pos-refunds-block,
.pos-refunds-step-card,
.pos-refunds-item-card {
  display: grid;
  gap: 0.65rem;
  cursor: default;
}

.pos-refunds-card.pos-refunds-step-card,
.pos-refunds-card.pos-refunds-item-card {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.pos-refunds-card.pos-refunds-step-card:hover,
.pos-refunds-card.pos-refunds-item-card:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(16, 16, 18, 0.1);
}

.pos-refunds-card-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.pos-refunds-items {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pos-refunds-item-pick,
.pos-refunds-item-top {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
}

.pos-refunds-item-store,
.pos-refunds-item-photo {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  object-fit: cover;
  border-radius: 0.78rem;
  border: 1px solid rgba(16, 16, 18, 0.1);
  background: #f4f4f5;
  box-shadow: 0 1px 2px rgba(16, 16, 18, 0.12);
  font-size: 1.05rem;
  font-weight: 750;
  color: #101012;
}

.pos-refunds-item-store.is-empty,
.pos-refunds-item-photo.is-empty {
  box-shadow: none;
}

.pos-refunds-item-details {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.pos-refunds-item-label {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 650;
  color: #111827;
}

.pos-refunds-item-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.pos-refunds-item-note {
  margin: 0;
  color: #374151;
  font-size: 0.9rem;
  line-height: 1.4;
}

.pos-refunds-kv-list {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}

.pos-refunds-kv {
  display: grid;
  grid-template-columns: 7.2rem minmax(0, 1fr);
  gap: 0.45rem 0.65rem;
  align-items: baseline;
}

.pos-refunds-kv dt {
  margin: 0;
  color: #6b7280;
  font-size: 0.78rem;
}

.pos-refunds-kv dd {
  margin: 0;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.pos-refunds-letter-file {
  margin: 0;
}

.pos-refunds-review-host {
  display: grid;
  gap: 0.65rem;
}

.pos-refunds-review-host.hidden,
.pos-refunds-review-host[hidden] {
  display: none;
}

.pos-refunds-review {
  margin: 0;
  color: #374151;
  font-size: 0.9rem;
}

.pos-refunds-verify-status {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.pos-refunds-verify-status[data-verify-status='verified'] {
  color: #166534;
}

.pos-refunds-verify-status[data-verify-status='mismatch'],
.pos-refunds-verify-status[data-verify-status='error'] {
  color: #991b1b;
}

.pos-refunds-verify-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pos-refunds-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pos-refunds-photos {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.1rem 0;
}

.pos-refunds-items-summary {
  display: grid;
  gap: 0.7rem;
}

.pos-refunds-item-photos {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
}

.pos-refunds-item-photos .muted-line {
  flex: 0 0 auto;
  margin: 0;
}

.pos-refunds-photo {
  flex: 0 0 auto;
  display: block;
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(16, 16, 18, 0.12);
  background: #fff;
}

.pos-refunds-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pos-refunds-letter {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.pos-refunds-letter img {
  width: 4.6rem;
  height: 4.6rem;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(16, 16, 18, 0.12);
  background: #fff;
}

.pos-refunds-workspace {
  display: grid;
  gap: 0.85rem;
}

.pos-refunds-workspace.hidden {
  display: none;
}

.pos-refunds-invoice {
  display: grid;
  gap: 0.7rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(16, 16, 18, 0.12);
  background: #fff;
}

.pos-refunds-invoice.hidden {
  display: none;
}

.pos-refunds-invoice-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: center;
}

.pos-refunds-invoice-qr img {
  display: block;
  width: 5.5rem;
  height: 5.5rem;
  background: #fff;
}

.pos-refunds-result {
  margin: 0;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  background: rgba(4, 120, 87, 0.1);
  color: #047857;
  font-weight: 650;
}

.pos-refunds-result.hidden {
  display: none;
}

.pos-refunds-create {
  position: fixed;
  inset: 0;
  z-index: 92;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(16, 16, 18, 0.46);
}

.pos-refunds-create.hidden {
  display: none !important;
}

.pos-refunds-create-dialog {
  position: relative;
  display: grid;
  gap: 0.55rem;
  width: min(42rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 1.15rem 1.05rem 1.05rem;
  border: 1px solid rgba(16, 16, 18, 0.12);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(16, 16, 18, 0.18);
}

.pos-refunds-create-kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
}

.pos-refunds-create-dialog h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.pos-refunds-create-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: #f4f4f5;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.pos-refunds-create-frame {
  display: block;
  width: 100%;
  height: min(70vh, 44rem);
  border: 1px solid rgba(16, 16, 18, 0.1);
  border-radius: 12px;
  background: #fff;
}

.pos-refunds-create-frame[hidden] {
  display: none;
}

.pos-refunds-method {
  display: grid;
  gap: 0.28rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.pos-clear-link {
  margin-left: auto;
}

.pos-cart-empty {
  margin: 0;
  padding: 1.1rem 0.35rem;
  text-align: center;
  border: 1px dashed rgba(166, 116, 47, 0.22);
  border-radius: 12px;
  background: rgba(240, 230, 212, 0.35);
}

.pos-cart-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  max-height: none;
  overflow: visible;
}

.pos-cart-line {
  display: grid;
  grid-template-columns: 2.7rem minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.45rem;
  border-radius: 12px;
  background: #faf7f2;
}

.pos-cart-line-media {
  display: block;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.55rem;
  overflow: hidden;
  background: #ebe4da;
  flex-shrink: 0;
}

.pos-cart-line-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pos-cart-line-media--empty {
  position: relative;
}

.pos-cart-line-media--empty::after {
  content: '';
  position: absolute;
  inset: 28%;
  border-radius: 0.25rem;
  border: 1.5px solid rgba(122, 101, 80, 0.35);
}

.pos-cart-line-media--empty[data-kind='service']::after {
  border-radius: 999px;
}

.pos-cart-line-copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.pos-cart-line-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
}

.pos-cart-qty {
  display: inline-flex;
  gap: 0.28rem;
  align-items: center;
}

.pos-cart-qty button {
  min-width: 2rem;
  height: 2rem;
  border-radius: 10px;
  border: 1px solid rgba(18, 18, 18, 0.12);
  background: #fff;
  color: var(--tumicha-ink, #2b1a0d);
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(18, 18, 18, 0.03);
  transition: background 0.14s ease, transform 0.14s ease;
}

.pos-cart-qty button:hover {
  background: #f7f7f8;
}

.pos-cart-qty button:active {
  transform: scale(0.96);
}

.pos-cart-summary {
  display: grid;
  gap: 0.65rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(166, 116, 47, 0.12);
}

.pos-cart-totals {
  display: grid;
  gap: 0.35rem;
}

.pos-cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--tumicha-muted, #7a6550);
}

.pos-cart-total-row.hidden {
  display: none !important;
}

.pos-cart-total-row strong {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--tumicha-ink, #2b1a0d);
}

.pos-cart-total-row--due {
  margin-top: 0.15rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(166, 116, 47, 0.12);
  font-weight: 650;
  color: var(--tumicha-ink, #2b1a0d);
}

.pos-cart-total-row--due strong {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.pos-field {
  display: grid;
  gap: 0.28rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--tumicha-muted, #7a6550);
}

.pos-field input,
.pos-field select {
  min-height: 2.4rem;
  border-radius: 10px;
  border: 1px solid rgba(166, 116, 47, 0.18);
  background: #fff;
  padding: 0.45rem 0.7rem;
  font: inherit;
  color: var(--tumicha-ink, #2b1a0d);
}

.pos-pay-actions {
  display: grid;
  gap: 0.55rem;
}

.pos-pay-btn {
  min-height: 3rem;
  border-radius: 16px !important;
  font-weight: 700 !important;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  padding: 0.85rem 1.1rem !important;
  box-shadow: 0 1px 2px rgba(18, 18, 18, 0.04);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

.pos-pay-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(18, 18, 18, 0.08);
}

.pos-pay-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.985);
}

.pos-pay-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.pos-pay-btn--cash {
  min-height: 3.15rem;
}

.pos-pay-btn--card {
  border-radius: 16px !important;
}

.pos-cash-calc {
  display: grid;
  gap: 0.7rem;
  padding: 0.9rem 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(166, 116, 47, 0.16);
  background: linear-gradient(180deg, #fffdf9 0%, #f7f1e8 100%);
}

.pos-cash-calc-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--tumicha-muted, #7a6550);
}

.pos-cash-calc-head strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--tumicha-ink, #2b1a0d);
}

.pos-cash-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pos-cash-chip {
  appearance: none;
  border: 1px solid rgba(18, 18, 18, 0.12);
  background: #fff;
  color: var(--tumicha-ink, #2b1a0d);
  border-radius: 999px;
  min-height: 2.15rem;
  padding: 0.35rem 0.8rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(18, 18, 18, 0.03);
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.14s ease;
}

.pos-cash-chip:hover {
  border-color: rgba(18, 18, 18, 0.2);
  background: #f7f7f8;
}

.pos-cash-chip:active {
  transform: scale(0.97);
}

.pos-cash-change-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(166, 116, 47, 0.12);
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--tumicha-muted, #7a6550);
}

.pos-cash-change-row strong {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--tumicha-ink, #2b1a0d);
}

.pos-cash-change-row[data-state='ready'] {
  border-color: rgba(46, 125, 50, 0.28);
  background: rgba(232, 245, 233, 0.85);
}

.pos-cash-change-row[data-state='ready'] strong {
  color: #1b5e20;
}

.pos-cash-change-row[data-state='exact'] {
  border-color: rgba(18, 18, 18, 0.12);
  background: #fff;
}

.pos-cash-change-row[data-state='short'] {
  border-color: rgba(183, 28, 28, 0.22);
  background: rgba(255, 235, 238, 0.9);
}

.pos-cash-change-row[data-state='short'] strong {
  color: #b71c1c;
  font-size: 1.05rem;
}

.pos-cash-hint {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
}

.pos-till-checkout-bar .primary-btn {
  border-radius: 14px !important;
  min-height: 2.7rem;
  font-weight: 700;
  padding: 0.65rem 1rem !important;
}

.pos-field .portal-select {
  width: 100%;
}

.pos-field .portal-select-trigger,
.pos-terminal-form .portal-select-trigger {
  min-height: 2.4rem;
  border-radius: 12px;
  background: #fff;
}

.pos-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.82rem;
}

.pos-dialog {
  border: 1px solid rgba(166, 116, 47, 0.18);
  border-radius: 16px;
  padding: 1.25rem;
  max-width: 28rem;
  width: calc(100% - 2rem);
}

.pos-machines-flow {
  margin: 0 0 0.85rem;
}

.pos-machines-flow-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pos-machines-flow .pos-till-status-eyebrow,
.pos-machines-flow .pos-till-status-btn {
  color: #6b7280;
}

.pos-machines-flow .pos-till-status-note,
.pos-machines-flow .pos-till-status-btn.is-current,
.pos-machines-flow .pos-till-status-btn.is-done:not(.is-current) {
  color: #111827;
}

.pos-machines-panel {
  display: grid;
  gap: 0.85rem;
}

.pos-machines-step {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

#pos-screen-machines [data-machine-panel][hidden] {
  display: none !important;
}

.pos-machines-types {
  display: grid;
  gap: 0.65rem;
}

.pos-machines-type.is-selected {
  border-color: #121212;
  box-shadow: 0 0 0 1px #121212;
}

.pos-machines-step > .primary-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pos-machines-connect-bridge {
  display: grid;
  gap: 0.85rem;
}

.pos-machines-connect-bridge[hidden] {
  display: none !important;
}

.pos-terminal-form {
  display: grid;
  gap: 0.75rem;
}

.pos-machines-setup-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
  align-items: stretch;
  cursor: default;
}

.pos-machines-setup-card:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(16, 16, 18, 0.1);
}

.pos-machines-setup-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #111827;
}

.pos-machines-setup-card .pos-field {
  font-size: 0.82rem;
  color: #374151;
}

.pos-machines-setup-card .pos-field input {
  width: 100%;
  min-height: 2.75rem;
  box-sizing: border-box;
  border-color: rgba(16, 16, 18, 0.12);
  color: #111827;
}

.pos-machines-setup-card .pos-field input:focus {
  outline: none;
  border-color: #121212;
  box-shadow: 0 0 0 1px #121212;
}

.pos-machines-setup-card .primary-btn {
  width: 100%;
}

.pos-terminals-list {
  margin: 0;
}

.pos-machines-card .pos-list-pill {
  border: 0;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.pos-machines-type .pos-list-mark,
.pos-machines-card .pos-list-mark {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: 0;
}
