/* Store Ops 2.0: pages-b styles (walk-ins, WhatsApp orders, invoices, integrations).
   The shell owns the panel box around each page; these rules lay out only what is
   inside each page's <main> (and its own dialogs), so the old outer padding,
   borders and card backgrounds from admin.css are reset here. */

@keyframes pb-shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(2px); } 30%, 50%, 70% { transform: translateX(-3px); } 40%, 60% { transform: translateX(3px); } }
@keyframes pb-in { from { opacity: 0; transform: translate3d(0, 6px, 0); } to { opacity: 1; transform: none; } }

/* Shared bits for every page in this area ---------------------------------- */
.admin-store-shell :is(.admin-walkins-layout, .admin-invoice-printer-layout, .admin-invoice-records-layout, .admin-invoice-detail-layout, .admin-integrations-layout) {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--so-ink);
  font-size: 13.5px;
  line-height: 1.4;
}

.admin-store-shell :is(.admin-walkins-layout, .admin-invoice-printer-layout, .admin-invoice-records-layout, .admin-integrations-layout) .admin-panel {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.admin-store-shell :is(.admin-walkins-layout, .admin-invoice-printer-layout, .admin-invoice-records-layout, .admin-integrations-layout) .admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
  margin: 0;
}

.admin-store-shell :is(.admin-walkins-layout, .admin-invoice-printer-layout, .admin-invoice-records-layout) .admin-panel-head > div:first-child {
  flex: 1;
  min-width: 0;
}

.admin-store-shell :is(.admin-walkins-layout, .admin-invoice-printer-layout, .admin-invoice-records-layout) .admin-panel-head h3 {
  margin: 0;
  color: var(--so-ink);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
}

.admin-store-shell :is(.admin-walkins-layout, .admin-invoice-printer-layout, .admin-invoice-records-layout, .admin-integrations-layout) .admin-panel-meta {
  color: var(--so-ink3);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.admin-store-shell :is(.admin-walkins-layout, .admin-invoice-printer-layout, .admin-invoice-records-layout, .admin-invoice-detail-layout) .admin-form-error {
  margin: 0;
  color: var(--so-red);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  animation: pb-shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.admin-store-shell :is(.admin-walkins-layout, .admin-invoice-printer-layout, .admin-invoice-records-layout, .admin-invoice-detail-layout) :is(input, button, a, textarea):focus-visible {
  outline: 2px solid var(--so-ink2);
  outline-offset: 2px;
}

.admin-store-shell :is(.admin-walkins-layout, .admin-invoice-printer-layout) input::placeholder {
  color: var(--so-ink3);
  opacity: 1;
}

/* Small secondary pill (Clear, New, Search, Print in rows). */
.admin-store-shell :is(.admin-walkins-layout, .admin-invoice-printer-layout, .admin-invoice-records-layout) .admin-ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 0;
  height: 30px;
  padding: 0 13px;
  border: 1px solid var(--so-line2);
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: var(--so-ink);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.35s var(--so-ease), background-color 0.25s, border-color 0.25s, color 0.25s;
}

.admin-store-shell :is(.admin-walkins-layout, .admin-invoice-printer-layout, .admin-invoice-records-layout) .admin-ghost-btn:hover {
  background: var(--so-card2);
  transform: translateY(-1px);
}

.admin-store-shell :is(.admin-walkins-layout, .admin-invoice-printer-layout, .admin-invoice-records-layout) :is(.admin-ghost-btn, .admin-primary-btn):active {
  transform: scale(0.97);
  transition-duration: 0.08s;
}

/* Solid primary pill (Find Order, Print Invoice, SKU Database). */
.admin-store-shell :is(.admin-invoice-printer-layout, .admin-integrations-layout) .admin-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 0;
  height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--so-ink);
  box-shadow: none;
  color: var(--so-panel);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s var(--so-ease), opacity 0.25s;
}

.admin-store-shell :is(.admin-invoice-printer-layout, .admin-integrations-layout) .admin-primary-btn:hover {
  transform: translateY(-1px);
}

.admin-store-shell :is(.admin-walkins-layout, .admin-invoice-printer-layout, .admin-invoice-records-layout, .admin-invoice-detail-layout, .admin-integrations-layout) :is(.admin-ghost-btn, .admin-primary-btn, .admin-invoice-detail-back) svg {
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Field: label above a pill input. */
.admin-store-shell :is(.admin-walkins-layout, .admin-invoice-printer-layout) :is(.admin-walkins-input-shell, .admin-reprint-field) {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  color: var(--so-ink2);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.admin-store-shell :is(.admin-walkins-layout, .admin-invoice-printer-layout) :is(.admin-walkins-input-shell, .admin-reprint-field) > span:first-child {
  color: var(--so-ink2);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

.admin-store-shell :is(.admin-walkins-layout, .admin-invoice-printer-layout) :is(.admin-walkins-input-shell input, .admin-reprint-field input, .admin-walkins-search-shell input) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 38px;
  padding: 0 15px;
  border: 1px solid var(--so-line2);
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: var(--so-ink);
  font-family: var(--so-font);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.admin-store-shell :is(.admin-walkins-layout, .admin-invoice-printer-layout) :is(.admin-walkins-input-shell input, .admin-reprint-field input, .admin-walkins-search-shell input, .admin-walkins-item-discount input):focus {
  border-color: var(--so-ink3);
  box-shadow: 0 0 0 4px var(--so-line);
  outline: none;
}

/* Quiet one-line status used for empty, loading and failed lists. */
.admin-store-shell :is(.admin-walkins-layout, .admin-invoice-printer-layout, .admin-invoice-records-layout, .admin-invoice-detail-layout) .admin-empty {
  margin: 0;
  color: var(--so-ink3);
  font-size: 12.5px;
  font-weight: 400;
}

.admin-store-shell :is(.admin-invoice-printer-layout, .admin-invoice-detail-layout) .admin-empty.is-loading::before {
  content: '';
  flex: none;
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: so-spin 0.9s linear infinite;
}

/* ========================================================================== */
/* Walk Ins and WhatsApp Orders (one POS, two invoice types)                   */
/* ========================================================================== */

.admin-store-shell .admin-walkins-layout {
  gap: 0;
}

.admin-store-shell .admin-walkins-work {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  min-height: 0;
}

.admin-store-shell .admin-walkins-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--so-line2) transparent;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-work > .admin-panel,
.admin-store-shell .admin-walkins-layout .admin-walkins-side > .admin-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: so-rise 0.55s var(--so-ease) backwards;
}

.admin-store-shell .admin-walkins-work > .admin-panel:nth-child(2) { animation-delay: 50ms; }
.admin-store-shell .admin-walkins-work > .admin-panel:nth-child(3) { animation-delay: 100ms; }
.admin-store-shell .admin-walkins-side > .admin-panel:nth-child(1) { animation-delay: 80ms; }
.admin-store-shell .admin-walkins-side > .admin-panel:nth-child(2) { animation-delay: 130ms; }
.admin-store-shell .admin-walkins-side > .admin-panel:nth-child(3) { animation-delay: 180ms; }

.admin-store-shell .admin-walkins-layout .admin-walkins-customer-card {
  gap: 10px;
}

/* Catalog status pill with a status dot. */
.admin-store-shell .admin-walkins-layout [data-walkins-catalog-status] {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 7px;
  height: 26px;
  margin: 0;
  padding: 0 11px;
  border: 1px solid var(--so-line2);
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: var(--so-ink2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
  transition: color 0.3s, border-color 0.3s;
}

.admin-store-shell .admin-walkins-layout [data-walkins-catalog-status]::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--so-mint);
}

.admin-store-shell .admin-walkins-layout [data-walkins-catalog-status].admin-status-badge-warn {
  border-color: var(--so-amber);
  color: var(--so-amber);
}

.admin-store-shell .admin-walkins-layout [data-walkins-catalog-status].admin-status-badge-warn::before {
  background: var(--so-amber);
}

.admin-store-shell .admin-walkins-layout [data-walkins-catalog-status].is-loading::before {
  animation: so-breathe 1.2s ease-in-out infinite;
}

/* Customer fields. */
.admin-store-shell .admin-walkins-layout .admin-walkins-panel-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-customer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-customer-grid-wa {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-store-shell .admin-walkins-layout .admin-walkins-money-input {
  position: relative;
  display: flex;
  align-items: center;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-money-input b {
  position: absolute;
  left: 14px;
  top: 50%;
  z-index: 1;
  color: var(--so-ink3);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
}

.admin-store-shell .admin-walkins-layout .admin-walkins-money-input input {
  padding-left: 38px;
  font-family: var(--so-mono);
}

/* Scanner button (WhatsApp Orders). */
.admin-store-shell .admin-walkins-layout .admin-walkins-scan-row {
  display: flex;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-scanner-action {
  display: flex;
  align-items: center;
  gap: 12px;
  width: auto;
  min-width: 260px;
  min-height: 0;
  height: 46px;
  padding: 0 20px 0 16px;
  border: 1px solid var(--so-line2);
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: var(--so-ink);
  text-align: left;
  cursor: default;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-scanner-icon {
  display: contents;
  color: var(--so-ink2);
}

.admin-store-shell .admin-walkins-layout .admin-walkins-scanner-icon svg {
  flex: none;
  width: 19px;
  height: 19px;
  color: var(--so-ink2);
  stroke-width: 2;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-scanner-action span:last-child {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  line-height: 1.25;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-scanner-action strong {
  color: var(--so-ink);
  font-size: 13px;
  font-weight: 600;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-scanner-action small {
  margin: 0;
  color: var(--so-ink3);
  font-size: 11.5px;
  font-weight: 400;
}

/* Cart. */
.admin-store-shell .admin-walkins-layout .admin-walkins-cart-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow: visible;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-cart-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-height: 0;
  padding: 0;
  border-top: 1px solid var(--so-line);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--so-line2) transparent;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-empty {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 220px;
  padding: 24px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--so-ink3);
  text-align: center;
  animation: so-rise 0.5s var(--so-ease) backwards;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-empty span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 0 6px;
  border: 1px solid var(--so-line2);
  border-radius: 50%;
  background: transparent;
  color: var(--so-ink2);
}

.admin-store-shell .admin-walkins-layout :is(.admin-walkins-empty, .admin-walkins-row-icon, .admin-walkins-skip-item, .admin-walkins-remove, .admin-walkins-qty, .admin-walkins-field-icon, .admin-walkins-print) svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-empty svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-empty strong {
  color: var(--so-ink);
  font-family: var(--so-font);
  font-size: 14px;
  font-weight: 600;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-empty small {
  margin: 0;
  color: var(--so-ink3);
  font-size: 12.5px;
  font-weight: 400;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-cart-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 80px 104px 90px 30px;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 6px 2px;
  border: 0;
  border-bottom: 1px solid var(--so-line);
  border-radius: 0;
  background: transparent;
  animation: pb-in 0.45s var(--so-ease) both;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-row-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--so-line2);
  border-radius: 50%;
  background: transparent;
  color: var(--so-ink2);
}

.admin-store-shell .admin-walkins-layout .admin-walkins-row-icon.is-scanned {
  background: transparent;
  color: var(--so-ink);
}

.admin-store-shell .admin-walkins-layout .admin-walkins-row-icon svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.1;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-row-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-row-main strong {
  display: block;
  overflow: visible;
  color: var(--so-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-row-main small {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  min-width: 0;
  margin: 0;
  overflow: visible;
  color: var(--so-ink3);
  font-size: 11px;
  font-weight: 400;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-row-main code {
  overflow: visible;
  color: var(--so-ink3);
  font-family: var(--so-mono);
  font-size: 11px;
  white-space: nowrap;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-row-main :is(i, b) {
  display: inline-flex;
  flex: none;
  align-items: center;
  height: 17px;
  padding: 0 6px;
  border: 1px solid var(--so-line2);
  border-radius: 5px;
  background: transparent;
  color: var(--so-ink2);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  line-height: 1;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-row-main i[data-cart-discount-badge] {
  color: var(--so-ink);
  font-family: var(--so-mono);
}

.admin-store-shell .admin-walkins-layout .admin-walkins-row-main i[hidden] {
  display: none;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-row-main b {
  height: auto;
  padding: 0;
  border: 0;
  color: var(--so-amber);
  font-weight: 700;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-item-discount {
  display: flex;
  align-items: center;
  gap: 3px;
  box-sizing: border-box;
  width: 100%;
  height: 32px;
  padding: 0 11px 0 12px;
  border: 1px solid var(--so-line2);
  border-radius: 999px;
  background: transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-item-discount:focus-within {
  border-color: var(--so-ink3);
  box-shadow: 0 0 0 4px var(--so-line);
}

.admin-store-shell .admin-walkins-layout .admin-walkins-item-discount input {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--so-ink);
  font-family: var(--so-mono);
  font-size: 12px;
  font-weight: 400;
  text-align: right;
  outline: none;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-item-discount input:focus {
  border: 0;
  box-shadow: none;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-item-discount input:focus-visible {
  outline: none;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-item-discount span {
  padding: 0;
  color: var(--so-ink3);
  font-size: 12px;
  font-weight: 400;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-row-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  min-width: 0;
  font-family: var(--so-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-row-price strong {
  margin: 0;
  color: var(--so-ink);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-row-price small {
  margin: 0;
  color: var(--so-ink3);
  font-size: 11.5px;
  font-weight: 400;
  white-space: nowrap;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-qty {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-qty button {
  display: grid;
  flex: none;
  place-items: center;
  width: 27px;
  height: 27px;
  padding: 0;
  border: 1px solid var(--so-line2);
  border-radius: 50%;
  background: transparent;
  color: var(--so-ink);
  cursor: pointer;
  transition: transform 0.35s var(--so-ease), background-color 0.25s;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-qty button svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.6;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-qty strong {
  min-width: 20px;
  color: var(--so-ink);
  font-family: var(--so-mono);
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-remove {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--so-ink3);
  cursor: pointer;
  transition: transform 0.35s var(--so-ease), background-color 0.25s, color 0.25s;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-remove svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.admin-store-shell .admin-walkins-layout :is(.admin-walkins-qty button, .admin-walkins-remove):hover {
  background: var(--so-card2);
  color: var(--so-ink);
  transform: translateY(-1px);
}

.admin-store-shell .admin-walkins-layout :is(.admin-walkins-qty button, .admin-walkins-remove):active {
  transform: scale(0.94);
  transition-duration: 0.08s;
}

/* Skip-scan quick add. */
.admin-store-shell .admin-walkins-layout .admin-walkins-skip-card {
  gap: 10px;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-search-shell {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-search-shell input {
  height: 36px;
  padding: 0 14px 0 38px;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  color: var(--so-ink3);
  pointer-events: none;
  transform: translateY(-50%);
}

.admin-store-shell .admin-walkins-layout .admin-walkins-field-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-skip-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: none;
  overflow: visible;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-skip-list > .admin-empty,
.admin-store-shell .admin-walkins-layout .admin-walkins-recent-list > .admin-empty {
  padding: 14px 2px;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-skip-item {
  flex: none;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  grid-template-areas:
    "icon name price"
    "icon sku price";
  align-items: center;
  gap: 1px 10px;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 5px 6px;
  border: 0;
  border-bottom: 1px solid var(--so-line);
  border-radius: 0;
  background: transparent;
  color: var(--so-ink);
  font-family: var(--so-font);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-skip-item:hover {
  border-color: var(--so-line);
  background: var(--so-card2);
}

.admin-store-shell .admin-walkins-layout .admin-walkins-skip-item:active span {
  transform: scale(0.9);
}

.admin-store-shell .admin-walkins-layout .admin-walkins-skip-item span {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--so-line2);
  border-radius: 50%;
  background: transparent;
  color: var(--so-ink2);
  transition: transform 0.3s var(--so-spring);
}

.admin-store-shell .admin-walkins-layout .admin-walkins-skip-item span svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.6;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-skip-item strong {
  grid-area: name;
  min-width: 0;
  overflow: visible;
  color: var(--so-ink);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: clip;
  white-space: normal;
  text-wrap: balance;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-skip-item small {
  grid-area: sku;
  min-width: 0;
  overflow: visible;
  color: var(--so-ink3);
  font-family: var(--so-mono);
  font-size: 10.5px;
  font-weight: 400;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-skip-item b {
  grid-area: price;
  color: var(--so-ink);
  font-family: var(--so-mono);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* Invoice summary. */
.admin-store-shell .admin-walkins-layout .admin-walkins-summary-card {
  gap: 12px;
  overflow: visible;
  padding-top: 14px;
  border-top: 1px solid var(--so-line);
  color: var(--so-ink);
}

.admin-store-shell .admin-walkins-layout .admin-walkins-summary-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-summary-head div {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-store-shell .admin-walkins-layout :is(.admin-walkins-summary-head span, .admin-walkins-customer-summary > span) {
  flex: none;
  width: 64px;
  color: var(--so-ink3);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 18px;
  text-transform: none;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-summary-head strong {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--so-ink);
  font-family: var(--so-mono);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-customer-summary {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-areas:
    "label name"
    "label contact";
  column-gap: 10px;
  row-gap: 1px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-customer-summary > span {
  grid-area: label;
  align-self: start;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-customer-summary strong {
  grid-area: name;
  overflow: visible;
  color: var(--so-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-customer-summary small {
  grid-area: contact;
  overflow: visible;
  color: var(--so-ink3);
  font-size: 12px;
  font-weight: 400;
  white-space: normal;
  overflow-wrap: anywhere;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-total-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  border: 0;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-total-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 22px;
  color: var(--so-ink2);
  font-size: 12.5px;
  font-weight: 400;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-total-list dt {
  margin: 0;
  color: var(--so-ink2);
}

.admin-store-shell .admin-walkins-layout .admin-walkins-total-list dd {
  margin: 0;
  color: var(--so-ink);
  font-family: var(--so-mono);
  font-variant-numeric: tabular-nums;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-grand-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding-top: 10px;
  border-top: 1px dashed var(--so-line);
}

.admin-store-shell .admin-walkins-layout .admin-walkins-grand-total span {
  color: var(--so-ink);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-grand-total strong {
  color: var(--so-ink);
  font-family: var(--so-mono);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Payment: a segmented control whose filled pill glides to the chosen method. */
.admin-store-shell .admin-walkins-layout .admin-walkins-payment-grid {
  --pb-pay: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  box-sizing: border-box;
  height: 38px;
  padding: 3px;
  border: 1px solid var(--so-line2);
  border-radius: 999px;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-payment-grid:has(> [data-walkins-payment="Card"].is-active) { --pb-pay: 1; }
.admin-store-shell .admin-walkins-layout .admin-walkins-payment-grid:has(> [data-walkins-payment="QRIS"].is-active) { --pb-pay: 2; }
.admin-store-shell .admin-walkins-layout .admin-walkins-payment-grid:has(> [data-walkins-payment="Transfer"].is-active) { --pb-pay: 3; }

.admin-store-shell .admin-walkins-layout .admin-walkins-payment-grid::before {
  content: '';
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc((100% - 6px) / 4);
  border-radius: 999px;
  background: var(--so-ink);
  transform: translateX(calc(var(--pb-pay) * 100%));
  transition: transform 0.5s var(--so-ease);
}

.admin-store-shell .admin-walkins-layout .admin-walkins-payment-grid button {
  position: relative;
  z-index: 1;
  min-height: 0;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: var(--so-ink2);
  font-family: var(--so-font);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.3s;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-payment-grid button.is-active {
  background: transparent;
  color: var(--so-panel);
  font-weight: 650;
}

/* Print and complete. */
.admin-store-shell .admin-walkins-layout .admin-walkins-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-action-row :is(.admin-walkins-print, .admin-walkins-complete) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--so-line2);
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: var(--so-ink);
  font-family: var(--so-font);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  opacity: 1;
  cursor: pointer;
  transition: transform 0.35s var(--so-ease), background-color 0.45s, color 0.45s, border-color 0.45s;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-action-row .admin-walkins-print svg {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-action-row .admin-walkins-complete {
  border-color: var(--so-ink);
  background: var(--so-ink);
  color: var(--so-panel);
  font-weight: 650;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-action-row :is(.admin-walkins-print, .admin-walkins-complete):not(:disabled):hover {
  transform: translateY(-1px);
}

.admin-store-shell .admin-walkins-layout .admin-walkins-action-row :is(.admin-walkins-print, .admin-walkins-complete):not(:disabled):active {
  transform: scale(0.97);
  transition-duration: 0.08s;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-action-row :is(.admin-walkins-print, .admin-walkins-complete):disabled {
  border-color: var(--so-line);
  background: transparent;
  color: var(--so-ink3);
  opacity: 1;
  cursor: not-allowed;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-complete.is-locked:disabled::before,
.admin-store-shell .admin-walkins-layout .admin-walkins-complete.is-busy::before {
  content: '';
  flex: none;
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: var(--pb-lock) center / contain no-repeat;
  mask: var(--pb-lock) center / contain no-repeat;
  --pb-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 11h10v9H7zM9 11V8a3 3 0 0 1 6 0v3'/%3E%3C/svg%3E");
}

.admin-store-shell .admin-walkins-layout .admin-walkins-complete.is-busy::before {
  --pb-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M21 12a9 9 0 1 1-6.2-8.6'/%3E%3C/svg%3E");
  animation: so-spin 0.9s linear infinite;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-action-row .admin-walkins-complete.is-busy:disabled {
  border-color: var(--so-ink);
  background: var(--so-ink);
  color: var(--so-panel);
  cursor: progress;
}

/* Recent invoices. */
.admin-store-shell .admin-walkins-layout .admin-walkins-recent-card {
  display: flex;
  gap: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--so-line);
}

.admin-store-shell .admin-walkins-layout .admin-walkins-recent-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: none;
  overflow: visible;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-recent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--so-line);
  border-radius: 0;
  background: transparent;
  animation: pb-in 0.45s var(--so-ease) both;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-recent-row span {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-recent-row strong {
  overflow: visible;
  color: var(--so-ink);
  font-family: var(--so-mono);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-recent-row small {
  margin: 0;
  overflow: visible;
  color: var(--so-ink3);
  font-size: 11.5px;
  font-weight: 400;
  white-space: normal;
}

.admin-store-shell .admin-walkins-layout .admin-walkins-recent-row b {
  color: var(--so-ink);
  font-family: var(--so-mono);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

/* Two columns on a computer: work on the left, a scrolling summary rail on the right. */
@media (min-width: 1100px) {
  html[data-device="computer"] .admin-store-shell .admin-walkins-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 384px;
    grid-template-rows: minmax(0, 1fr);
    height: calc(100dvh - 116px);
    min-height: 600px;
    overflow: hidden;
  }

  html[data-device="computer"] .admin-store-shell .admin-walkins-work {
    padding: 2px 22px 0 2px;
    overflow: hidden;
  }

  html[data-device="computer"] .admin-store-shell .admin-walkins-side {
    padding: 2px 6px 0 22px;
    border-left: 1px solid var(--so-line);
    overflow-x: hidden;
    overflow-y: auto;
  }
}

@media (min-width: 1100px) and (max-width: 1380px) {
  html[data-device="computer"] .admin-store-shell .admin-walkins-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  /* A narrower rail: the SKU line runs under the name and the price. */
  html[data-device="computer"] .admin-store-shell .admin-walkins-layout .admin-walkins-skip-item {
    grid-template-areas:
      "icon name price"
      "icon sku sku";
  }

  html[data-device="computer"] .admin-store-shell .admin-walkins-layout .admin-walkins-cart-row {
    grid-template-columns: 32px minmax(0, 1fr) 72px 98px 88px 30px;
    gap: 10px;
  }
}

/* WhatsApp Orders: the same POS, laid out as its own board (sections ruled apart,
   filled fields, bare row icons, a 2 x 2 payment choice). */
.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-work {
  gap: 0;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-work > .admin-panel {
  gap: 10px;
  padding: 0 0 16px;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-work > .admin-panel + .admin-panel {
  padding-top: 14px;
  border-top: 1px solid var(--so-line);
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-work > .admin-walkins-cart-card {
  gap: 4px;
  padding-bottom: 0;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-side {
  gap: 0;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-side > .admin-panel {
  gap: 10px;
  padding: 0 0 16px;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-side > .admin-panel + .admin-panel {
  padding-top: 14px;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-side > .admin-walkins-recent-card {
  gap: 6px;
  padding-bottom: 12px;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-panel-head h3 {
  font-size: 15px;
  letter-spacing: -0.01em;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout [data-walkins-catalog-status] {
  height: auto;
  padding: 0;
  border: 0;
  font-weight: 500;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout :is(.admin-walkins-input-shell input, .admin-walkins-search-shell input, .admin-walkins-item-discount) {
  background: var(--so-card);
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-input-shell:not(.admin-walkins-search-shell) > input {
  padding: 0 14px;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-money-input input {
  padding-left: 38px;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-search-shell input {
  height: 38px;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-cart-list {
  border-top: 0;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-empty span {
  width: auto;
  height: auto;
  margin-bottom: 4px;
  border: 0;
  color: var(--so-ink3);
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-empty svg {
  width: 26px;
  height: 26px;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-cart-row {
  grid-template-columns: 22px minmax(0, 1fr) 84px 108px 100px 32px;
  padding: 7px 4px;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-row-icon {
  width: 22px;
  height: 22px;
  border: 0;
  color: var(--so-ink3);
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-row-icon.is-scanned {
  color: var(--so-ink);
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-row-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-row-main strong {
  font-size: 13.5px;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-row-main small {
  gap: 4px 8px;
  font-size: 11.5px;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-row-main code {
  color: var(--so-ink2);
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-row-main i:not([data-cart-discount-badge]) {
  height: auto;
  padding: 0;
  border: 0;
  color: var(--so-ink3);
  font-size: 11.5px;
  font-weight: 400;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-row-main i[data-cart-discount-badge] {
  font-size: 10.5px;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-item-discount input {
  font-size: 12.5px;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-row-price {
  gap: 2px;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-row-price strong {
  font-size: 13px;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-qty {
  gap: 8px;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-qty button {
  width: 28px;
  height: 28px;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-qty button svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.4;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-qty strong {
  min-width: 18px;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-skip-list {
  max-height: 186px;
  margin: 0 -4px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--so-line2) transparent;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-skip-item {
  grid-template-columns: 18px minmax(0, 1fr) auto;
  padding: 5px 8px;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-skip-item span {
  width: 18px;
  height: 18px;
  border: 0;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-skip-item span svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-skip-item strong {
  font-size: 13px;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-skip-item b {
  font-size: 12.5px;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-summary-card {
  border-top: 1px solid var(--so-line);
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout :is(.admin-walkins-summary-head span, .admin-walkins-customer-summary > span) {
  width: auto;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-summary-head strong {
  font-size: 13.5px;
  text-align: right;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-customer-summary {
  grid-template-columns: auto minmax(0, 1fr);
  text-align: right;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-customer-summary small {
  font-size: 11.5px;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-total-list {
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--so-line);
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-total-list div {
  height: auto;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-total-list dd {
  font-weight: 500;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-grand-total {
  border-top-style: solid;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-payment-grid {
  --pb-pay-x: 0;
  --pb-pay-y: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  height: auto;
  padding: 0;
  border: 0;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-payment-grid:has(> [data-walkins-payment="Card"].is-active) { --pb-pay-x: 1; }
.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-payment-grid:has(> [data-walkins-payment="QRIS"].is-active) { --pb-pay-y: 1; }
.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-payment-grid:has(> [data-walkins-payment="Transfer"].is-active) { --pb-pay-x: 1; --pb-pay-y: 1; }

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-payment-grid::before {
  top: 0;
  bottom: auto;
  left: 0;
  width: calc(50% - 3px);
  height: 36px;
  transform: translate(calc(var(--pb-pay-x) * (100% + 6px)), calc(var(--pb-pay-y) * (100% + 6px)));
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-payment-grid button {
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--so-line2);
  color: var(--so-ink);
  font-size: 13px;
  font-weight: 600;
  transition: color 0.3s, border-color 0.3s;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-payment-grid button.is-active {
  border-color: transparent;
  color: var(--so-panel);
  font-weight: 600;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-action-row :is(.admin-walkins-print, .admin-walkins-complete) {
  height: 42px;
  font-weight: 600;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-action-row .admin-walkins-print svg {
  width: 16px;
  height: 16px;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-recent-row {
  min-height: 44px;
}

.admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-recent-row strong {
  font-size: 12.5px;
}

@media (min-width: 1100px) {
  html[data-device="computer"] .admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout {
    grid-template-columns: minmax(0, 1fr) 368px;
  }

  html[data-device="computer"] .admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-work {
    padding: 2px 22px 0 6px;
  }
}

@media (min-width: 1100px) and (max-width: 1380px) {
  html[data-device="computer"] .admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  html[data-device="computer"] .admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-cart-row {
    grid-template-columns: 22px minmax(0, 1fr) 76px 100px 92px 30px;
    gap: 10px;
  }

  /* Four fields do not fit their placeholders here: two by two. */
  html[data-device="computer"] .admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-customer-grid-wa {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Narrow screens (and phones): fields stack, and each cart line takes two rows. */
@media (max-width: 980px) {
  .admin-store-shell .admin-walkins-layout {
    gap: 22px;
  }

  .admin-store-shell .admin-walkins-layout :is(.admin-walkins-customer-grid, .admin-walkins-customer-grid-wa) {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-store-shell .admin-walkins-layout .admin-walkins-panel-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .admin-store-shell .admin-walkins-layout .admin-walkins-scanner-action {
    min-width: 0;
    width: 100%;
  }

  .admin-store-shell .admin-walkins-layout .admin-walkins-cart-row,
  .admin-store-shell[data-walk-ins-invoice-type="whatsapp"] .admin-walkins-layout .admin-walkins-cart-row {
    grid-template-columns: 32px minmax(0, 1fr) auto auto;
    grid-template-areas:
      "icon main main remove"
      "price price discount qty";
    gap: 8px 10px;
    padding: 10px 2px;
  }

  .admin-store-shell .admin-walkins-layout .admin-walkins-item-discount {
    width: 84px;
  }

  .admin-store-shell .admin-walkins-layout .admin-walkins-row-price {
    align-items: flex-start;
    text-align: left;
  }

  .admin-store-shell .admin-walkins-layout .admin-walkins-cart-list {
    max-height: none;
    overflow: visible;
  }
}

/* POS dialogs: sale complete, and the new-invoice question. */
.admin-store-shell .admin-walkins-complete-modal,
.admin-store-shell .admin-walkins-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  box-sizing: border-box;
  background: var(--so-scrim);
  animation: so-fade 0.4s var(--so-ease) both;
}

.admin-store-shell .admin-walkins-complete-modal[hidden],
.admin-store-shell .admin-walkins-confirm-modal[hidden] {
  display: none;
}

.admin-store-shell .admin-walkins-complete-modal .admin-modal-backdrop {
  background: transparent;
}

.admin-store-shell .admin-walkins-complete-modal .admin-walkins-complete-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(380px, 100%);
  box-sizing: border-box;
  padding: 28px 26px 24px;
  border: 0;
  border-radius: 30px;
  background: var(--so-panel);
  box-shadow: var(--so-sh2);
  color: var(--so-ink);
  text-align: center;
  animation: so-rise 0.55s var(--so-ease) both;
}

.admin-store-shell .admin-walkins-complete-modal .admin-walkins-complete-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
  box-sizing: border-box;
  border: 1.5px solid var(--so-mint);
  border-radius: 50%;
  background: transparent;
  color: var(--so-mint);
  animation: so-pop 0.5s var(--so-spring) 0.15s both;
}

.admin-store-shell .admin-walkins-complete-modal .admin-walkins-complete-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-store-shell .admin-walkins-complete-modal .admin-walkins-complete-card h3 {
  margin: 0;
  color: var(--so-ink);
  font-family: var(--so-font);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.admin-store-shell .admin-walkins-complete-modal .admin-walkins-complete-card p {
  margin: 0;
  color: var(--so-ink2);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.45;
}

.admin-store-shell .admin-walkins-complete-modal .admin-walkins-complete-card > strong {
  margin-top: 6px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--so-ink);
  font-family: var(--so-mono);
  font-size: 14px;
  font-weight: 600;
}

.admin-store-shell .admin-walkins-confirm-scrim {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: default;
}

.admin-store-shell .admin-walkins-confirm-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(380px, 100%);
  box-sizing: border-box;
  padding: 22px 22px 18px;
  border-radius: 30px;
  background: var(--so-panel);
  box-shadow: var(--so-sh2);
  color: var(--so-ink);
  animation: so-rise 0.5s var(--so-ease) both;
}

.admin-store-shell .admin-walkins-confirm-card p {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
}

.admin-store-shell .admin-walkins-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.admin-store-shell .admin-walkins-confirm-actions :is(.admin-ghost-btn, .admin-primary-btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--so-line2);
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: var(--so-ink);
  font-family: var(--so-font);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.35s var(--so-ease), background-color 0.25s;
}

.admin-store-shell .admin-walkins-confirm-actions .admin-primary-btn {
  min-width: 76px;
  border-color: var(--so-ink);
  background: var(--so-ink);
  color: var(--so-panel);
  font-weight: 650;
}

.admin-store-shell .admin-walkins-confirm-actions :is(.admin-ghost-btn, .admin-primary-btn):hover {
  transform: translateY(-1px);
}

.admin-store-shell .admin-walkins-confirm-actions .admin-ghost-btn:hover {
  background: var(--so-card2);
}

/* The printed invoice keeps its own type: base.css switches the app to Geist,
   so put the invoice sheet back on the fonts admin.css gives it. */
.admin-walkins-print-stage .admin-walkins-invoice-page,
.admin-walkins-print-stage .admin-walkins-invoice-total,
.admin-walkins-print-stage .admin-walkins-invoice-shipping-cost {
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
}

.admin-walkins-print-stage :is(
  .admin-walkins-invoice-promise,
  .admin-walkins-invoice-title-main > strong,
  .admin-walkins-invoice-number h2,
  .admin-walkins-invoice-dates span,
  .admin-walkins-invoice-dates strong,
  .admin-walkins-invoice-table-head,
  .admin-walkins-invoice-customer,
  .admin-walkins-invoice-row,
  .admin-walkins-invoice-total small,
  .admin-walkins-invoice-terms
) {
  font-family: 'Space Grotesk', sans-serif;
}

/* ========================================================================== */
/* Invoice Printer                                                            */
/* ========================================================================== */

.admin-store-shell .admin-invoice-printer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: stretch;
  gap: 0;
}

.admin-store-shell .admin-invoice-printer-layout > .admin-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 360px;
  animation: so-rise 0.55s var(--so-ease) both;
}

.admin-store-shell .admin-invoice-printer-layout > .admin-invoice-printer-panel {
  padding: 2px 24px 0 6px;
}

.admin-store-shell .admin-invoice-printer-layout > .admin-invoice-profile-panel {
  padding: 2px 6px 0 24px;
  border-left: 1px solid var(--so-line);
  animation-delay: 60ms;
}

.admin-store-shell .admin-invoice-printer-layout .admin-invoice-profile-panel .admin-panel-head h3 {
  font-size: 15px;
  letter-spacing: -0.01em;
}

.admin-store-shell .admin-invoice-printer-layout .admin-invoice-printer-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 0;
}

.admin-store-shell .admin-invoice-printer-layout .admin-invoice-printer-form .admin-reprint-field {
  flex: 1;
}

.admin-store-shell .admin-invoice-printer-layout .admin-reprint-field input {
  height: 40px;
  padding: 0 16px;
  background: var(--so-card);
}

.admin-store-shell .admin-invoice-printer-layout [data-invoice-order-form] input {
  font-family: var(--so-mono);
}

.admin-store-shell .admin-invoice-printer-layout .admin-invoice-printer-form .admin-ghost-btn {
  height: 40px;
  padding: 0 18px;
  font-size: 13px;
}

.admin-store-shell .admin-invoice-printer-layout :is(.admin-invoice-order-preview, .admin-profile-search-results) {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  margin: 0;
}

.admin-store-shell .admin-invoice-printer-layout :is(.admin-invoice-order-preview, .admin-profile-search-results) > .admin-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 56px 0;
  border-top: 1px solid var(--so-line);
  color: var(--so-ink3);
  font-size: 13px;
  text-align: center;
}

.admin-store-shell .admin-invoice-printer-layout .admin-invoice-order-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid var(--so-line);
  border-radius: 0;
  background: transparent;
  animation: so-rise 0.55s var(--so-ease) both;
}

.admin-store-shell .admin-invoice-printer-layout .admin-invoice-order-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.admin-store-shell .admin-invoice-printer-layout .admin-invoice-order-card header > div {
  display: flex;
  flex: 1;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 3px;
  min-width: 0;
}

.admin-store-shell .admin-invoice-printer-layout .admin-invoice-order-card header h3 {
  margin: 0;
  color: var(--so-ink);
  font-family: var(--so-mono);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.admin-store-shell .admin-invoice-printer-layout .admin-invoice-order-card header > div > span {
  color: var(--so-ink2);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.admin-store-shell .admin-invoice-printer-layout .admin-invoice-order-card header .admin-primary-btn {
  flex: none;
  padding: 0 18px;
}

.admin-store-shell .admin-invoice-printer-layout .admin-invoice-order-card header .admin-primary-btn span {
  display: inline;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.admin-store-shell .admin-invoice-printer-layout .admin-invoice-order-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--so-line);
  border-bottom: 1px solid var(--so-line);
}

.admin-store-shell .admin-invoice-printer-layout .admin-invoice-order-meta div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 10px 12px;
  border: 0;
  border-left: 1px solid var(--so-line);
  border-radius: 0;
  background: transparent;
}

.admin-store-shell .admin-invoice-printer-layout .admin-invoice-order-meta div:first-child {
  padding-left: 2px;
  border-left: 0;
}

.admin-store-shell .admin-invoice-printer-layout .admin-invoice-order-meta span {
  color: var(--so-ink3);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.admin-store-shell .admin-invoice-printer-layout .admin-invoice-order-meta strong {
  color: var(--so-ink);
  font-size: 13.5px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.admin-store-shell .admin-invoice-printer-layout .admin-invoice-order-meta div:nth-child(n + 2) strong {
  font-family: var(--so-mono);
  font-size: 13px;
}

.admin-store-shell .admin-invoice-printer-layout .admin-table-wrap {
  margin: 0;
  overflow-x: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.admin-store-shell .admin-invoice-printer-layout .admin-invoice-order-items {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  table-layout: fixed;
}

.admin-store-shell .admin-invoice-printer-layout .admin-invoice-order-items th {
  height: 32px;
  padding: 0 4px;
  border-bottom: 1px solid var(--so-line);
  background: transparent;
  color: var(--so-ink3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: right;
  text-transform: uppercase;
}

.admin-store-shell .admin-invoice-printer-layout .admin-invoice-order-items :is(th, td):first-child {
  text-align: left;
}

.admin-store-shell .admin-invoice-printer-layout .admin-invoice-order-items th:nth-child(2) { width: 60px; }
.admin-store-shell .admin-invoice-printer-layout .admin-invoice-order-items th:nth-child(3),
.admin-store-shell .admin-invoice-printer-layout .admin-invoice-order-items th:nth-child(4) { width: 118px; }

.admin-store-shell .admin-invoice-printer-layout .admin-invoice-order-items td {
  height: 46px;
  padding: 4px;
  border-bottom: 1px solid var(--so-line);
  color: var(--so-ink);
  font-family: var(--so-mono);
  font-size: 13px;
  text-align: right;
  vertical-align: middle;
  animation: pb-in 0.45s var(--so-ease) both;
}

.admin-store-shell .admin-invoice-printer-layout .admin-invoice-order-items td:first-child {
  font-family: var(--so-font);
}

.admin-store-shell .admin-invoice-printer-layout .admin-invoice-order-items td:last-child {
  font-weight: 600;
}

.admin-store-shell .admin-invoice-printer-layout .admin-invoice-order-items td strong {
  display: block;
  color: var(--so-ink);
  font-family: var(--so-font);
  font-size: 13px;
  font-weight: 600;
}

.admin-store-shell .admin-invoice-printer-layout .admin-invoice-order-items td small {
  display: block;
  margin: 0;
  color: var(--so-ink3);
  font-family: var(--so-mono);
  font-size: 11px;
  font-weight: 400;
}

.admin-store-shell .admin-invoice-printer-layout .admin-invoice-order-items td.admin-empty {
  height: auto;
  padding: 18px 4px;
  font-family: var(--so-font);
  font-size: 13px;
  text-align: left;
}

/* Customer order history. */
.admin-store-shell .admin-invoice-printer-layout .admin-profile-search-results {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--so-line2) transparent;
}

.admin-store-shell .admin-invoice-printer-layout .admin-profile-result {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--so-line);
  border-radius: 0;
  background: transparent;
  animation: so-rise 0.5s var(--so-ease) both;
}

.admin-store-shell .admin-invoice-printer-layout .admin-profile-result + .admin-profile-result {
  animation-delay: 60ms;
}

.admin-store-shell .admin-invoice-printer-layout .admin-profile-result header {
  display: block;
  padding: 12px 0 6px;
}

.admin-store-shell .admin-invoice-printer-layout .admin-profile-result header > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.admin-store-shell .admin-invoice-printer-layout .admin-profile-result header strong {
  flex: 1;
  min-width: 0;
  color: var(--so-ink);
  font-family: var(--so-font);
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.admin-store-shell .admin-invoice-printer-layout .admin-profile-result header span {
  flex: none;
  color: var(--so-ink3);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.admin-store-shell .admin-invoice-printer-layout .admin-profile-order-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.admin-store-shell .admin-invoice-printer-layout .admin-profile-order-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 5px 8px;
  border: 0;
  border-bottom: 1px solid var(--so-line);
  border-radius: 0;
  background: transparent;
  color: var(--so-ink);
  font-family: var(--so-font);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.25s;
}

.admin-store-shell .admin-invoice-printer-layout .admin-profile-order-row:hover {
  background: var(--so-card2);
}

.admin-store-shell .admin-invoice-printer-layout .admin-profile-order-row > span:first-child {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.admin-store-shell .admin-invoice-printer-layout .admin-profile-order-row strong {
  color: var(--so-ink);
  font-family: var(--so-mono);
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.admin-store-shell .admin-invoice-printer-layout .admin-profile-order-row small {
  color: var(--so-ink3);
  font-size: 11.5px;
  font-weight: 400;
}

.admin-store-shell .admin-invoice-printer-layout .admin-profile-order-row > span:last-child {
  flex: none;
  color: var(--so-ink);
  font-family: var(--so-mono);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

@media (min-width: 1100px) {
  html[data-device="computer"] .admin-store-shell .admin-invoice-printer-layout {
    min-height: calc(100dvh - 116px);
  }
}

@media (max-width: 1099px) {
  .admin-store-shell .admin-invoice-printer-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .admin-store-shell .admin-invoice-printer-layout > .admin-panel {
    min-height: 0;
  }

  .admin-store-shell .admin-invoice-printer-layout > .admin-invoice-printer-panel,
  .admin-store-shell .admin-invoice-printer-layout > .admin-invoice-profile-panel {
    padding: 0;
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .admin-store-shell .admin-invoice-printer-layout .admin-invoice-printer-form {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-store-shell .admin-invoice-printer-layout .admin-invoice-order-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-store-shell .admin-invoice-printer-layout .admin-invoice-order-meta div:nth-child(3) {
    padding-left: 2px;
    border-left: 0;
  }

  .admin-store-shell .admin-invoice-printer-layout .admin-invoice-order-meta div:nth-child(n + 3) {
    border-top: 1px solid var(--so-line);
  }
}

/* ========================================================================== */
/* Invoice Records                                                            */
/* ========================================================================== */

.admin-store-shell .admin-invoice-records-layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.admin-store-shell .admin-invoice-records-layout .admin-invoice-records-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--so-line);
  border-bottom: 1px solid var(--so-line);
}

.admin-store-shell .admin-invoice-records-layout .admin-invoice-record-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1px;
  min-width: 0;
  min-height: 0;
  height: auto;
  text-align: left;
  padding: 11px 16px 12px;
  border: 0;
  border-left: 1px solid var(--so-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: so-rise 0.55s var(--so-ease) both;
}

.admin-store-shell .admin-invoice-records-layout .admin-invoice-record-stat:first-child {
  padding-left: 4px;
  border-left: 0;
}

.admin-store-shell .admin-invoice-records-layout .admin-invoice-record-stat:nth-child(2) { animation-delay: 45ms; }
.admin-store-shell .admin-invoice-records-layout .admin-invoice-record-stat:nth-child(3) { animation-delay: 90ms; }
.admin-store-shell .admin-invoice-records-layout .admin-invoice-record-stat:nth-child(4) { animation-delay: 135ms; }

.admin-store-shell .admin-invoice-records-layout .admin-invoice-record-stat span {
  display: block;
  color: var(--so-ink2);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.admin-store-shell .admin-invoice-records-layout .admin-invoice-record-stat strong {
  margin: 0;
  color: var(--so-ink);
  font-family: var(--so-mono);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.admin-store-shell .admin-invoice-records-layout .admin-invoice-record-stat small {
  display: block;
  color: var(--so-ink3);
  font-size: 11.5px;
  font-weight: 400;
}

.admin-store-shell .admin-invoice-records-layout .admin-invoice-records-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  padding-top: 6px;
}

.admin-store-shell .admin-invoice-records-layout .admin-invoice-records-panel .admin-panel-head {
  padding: 0 2px;
}

.admin-store-shell .admin-invoice-records-layout [data-invoice-records-status] {
  flex: 1;
  color: var(--so-ink3);
  font-size: 12.5px;
}

.admin-store-shell .admin-invoice-records-layout .admin-form-error {
  padding: 0 2px;
}

.admin-store-shell .admin-invoice-records-layout .admin-invoice-records-table-wrap {
  max-height: calc(100dvh - 276px);
  margin: 0;
  overflow: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  scrollbar-width: thin;
  scrollbar-color: var(--so-line2) transparent;
}

.admin-store-shell .admin-invoice-records-layout .admin-invoice-records-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  table-layout: fixed;
}

.admin-store-shell .admin-invoice-records-layout .admin-invoice-records-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 34px;
  padding: 0 10px;
  border-bottom: 1px solid var(--so-line);
  background: var(--so-panel);
  color: var(--so-ink3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-store-shell .admin-invoice-records-layout .admin-invoice-records-table th:nth-child(1) { width: 88px; }
.admin-store-shell .admin-invoice-records-layout .admin-invoice-records-table th:nth-child(2) { width: 264px; }
.admin-store-shell .admin-invoice-records-layout .admin-invoice-records-table th:nth-child(4) { width: 168px; }
.admin-store-shell .admin-invoice-records-layout .admin-invoice-records-table th:nth-child(5) { width: 60px; }
.admin-store-shell .admin-invoice-records-layout .admin-invoice-records-table th:nth-child(6) { width: 116px; }
.admin-store-shell .admin-invoice-records-layout .admin-invoice-records-table th:nth-child(7) { width: 160px; }
.admin-store-shell .admin-invoice-records-layout .admin-invoice-records-table th:nth-child(8) { width: 96px; }

.admin-store-shell .admin-invoice-records-layout .admin-invoice-records-table :is(th, td):is(:nth-child(5), :nth-child(6)) {
  text-align: right;
}

.admin-store-shell .admin-invoice-records-layout .admin-invoice-records-table td {
  height: 48px;
  padding: 4px 10px;
  border-bottom: 1px solid var(--so-line);
  color: inherit;
  font-size: 12.5px;
  vertical-align: middle;
}

.admin-store-shell .admin-invoice-records-layout .admin-invoice-record-row {
  color: var(--so-ink);
  cursor: pointer;
  transition: opacity 0.45s var(--so-ease), background-color 0.25s, color 0.3s;
  animation: pb-in 0.5s var(--so-ease) both;
}

.admin-store-shell .admin-invoice-records-layout .admin-invoice-record-row:hover {
  background: var(--so-card2);
}

.admin-store-shell .admin-invoice-records-layout .admin-invoice-record-row:focus-visible {
  outline: 2px solid var(--so-ink2);
  outline-offset: -2px;
}

.admin-store-shell .admin-invoice-records-layout .admin-invoice-records-table tr.is-analytics-hidden {
  opacity: 0.52;
}

.admin-store-shell .admin-invoice-records-layout .admin-invoice-records-table tr.is-analytics-excluded {
  color: var(--so-ink3);
}

.admin-store-shell .admin-invoice-records-layout .admin-invoice-records-table td:nth-child(2) {
  white-space: nowrap;
}

.admin-store-shell .admin-invoice-records-layout .admin-invoice-record-link {
  color: inherit;
  text-decoration: none;
}

.admin-store-shell .admin-invoice-records-layout .admin-invoice-record-link:hover {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--so-line2);
  text-underline-offset: 3px;
}

.admin-store-shell .admin-invoice-records-layout .admin-invoice-record-link strong {
  font-family: var(--so-mono);
  font-size: 13px;
  font-weight: 600;
}

.admin-store-shell .admin-invoice-records-layout .admin-invoice-records-table .admin-status-badge {
  display: inline-flex;
  align-items: center;
  height: 18px;
  margin-left: 8px;
  padding: 0 6px;
  border: 1px solid var(--so-line2);
  border-radius: 5px;
  background: transparent;
  box-shadow: none;
  color: var(--so-ink2);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  vertical-align: 1px;
  white-space: nowrap;
}

.admin-store-shell .admin-invoice-records-layout .admin-invoice-records-table .admin-status-badge-warn {
  border-color: var(--so-amber);
  color: var(--so-amber);
}

.admin-store-shell .admin-invoice-records-layout .admin-invoice-records-table .admin-status-badge-muted {
  color: var(--so-ink3);
}

.admin-store-shell .admin-invoice-records-layout .admin-invoice-records-table td:nth-child(3) span {
  display: block;
  color: inherit;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.admin-store-shell .admin-invoice-records-layout .admin-invoice-records-table td:nth-child(3) small {
  display: block;
  margin: 0;
  color: var(--so-ink3);
  font-size: 11.5px;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.admin-store-shell .admin-invoice-records-layout .admin-invoice-records-table td:is(:nth-child(5), :nth-child(6), :nth-child(7)) {
  font-family: var(--so-mono);
  font-size: 13px;
  white-space: nowrap;
}

.admin-store-shell .admin-invoice-records-layout .admin-invoice-records-table td:nth-child(6) strong {
  font-weight: 600;
}

.admin-store-shell .admin-invoice-records-layout .admin-invoice-records-table td:nth-child(7) {
  color: var(--so-ink2);
  font-size: 12px;
}

.admin-store-shell .admin-invoice-records-layout .admin-invoice-records-table td.admin-empty {
  height: auto;
  padding: 22px 12px;
  color: var(--so-ink3);
  font-family: var(--so-font);
  font-size: 13px;
  text-align: left;
}

.admin-store-shell .admin-invoice-records-layout .admin-invoice-eye-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--so-line2);
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  color: var(--so-ink);
  cursor: pointer;
  transition: transform 0.35s var(--so-ease), border-color 0.3s, color 0.3s, background-color 0.25s;
}

.admin-store-shell .admin-invoice-records-layout .admin-invoice-eye-btn.is-hidden {
  border-color: var(--so-line);
  background: transparent;
  color: var(--so-ink3);
}

.admin-store-shell .admin-invoice-records-layout .admin-invoice-eye-btn:hover {
  background: var(--so-card2);
  transform: translateY(-1px);
}

.admin-store-shell .admin-invoice-records-layout .admin-invoice-eye-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-store-shell .admin-invoice-records-layout .admin-invoice-eye-slash {
  stroke-dasharray: 22;
  stroke-dashoffset: 22;
  transition: stroke-dashoffset 0.45s var(--so-ease);
}

.admin-store-shell .admin-invoice-records-layout .admin-invoice-eye-btn.is-hidden .admin-invoice-eye-slash {
  stroke-dashoffset: 0;
}

.admin-store-shell .admin-invoice-records-layout .admin-invoice-print-btn {
  padding: 0 12px 0 10px;
}

.admin-store-shell .admin-invoice-records-layout .admin-invoice-print-btn svg {
  width: 15px;
  height: 15px;
}

/* Narrower screens: the status badge sits under the invoice number, and the
   sale type and created time may wrap, so all eight columns still fit. */
@media (max-width: 1380px) {
  .admin-store-shell .admin-invoice-records-layout .admin-invoice-records-table {
    min-width: 900px;
  }

  .admin-store-shell .admin-invoice-records-layout .admin-invoice-records-table th:nth-child(1) { width: 96px; }
  .admin-store-shell .admin-invoice-records-layout .admin-invoice-records-table th:nth-child(2) { width: 176px; }
  .admin-store-shell .admin-invoice-records-layout .admin-invoice-records-table th:nth-child(4) { width: 140px; }
  .admin-store-shell .admin-invoice-records-layout .admin-invoice-records-table th:nth-child(5) { width: 56px; }
  .admin-store-shell .admin-invoice-records-layout .admin-invoice-records-table th:nth-child(6) { width: 112px; }
  .admin-store-shell .admin-invoice-records-layout .admin-invoice-records-table th:nth-child(7) { width: 104px; }

  .admin-store-shell .admin-invoice-records-layout .admin-invoice-records-table td {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .admin-store-shell .admin-invoice-records-layout .admin-invoice-records-table .admin-status-badge {
    display: flex;
    width: fit-content;
    margin: 3px 0 0;
  }

  .admin-store-shell .admin-invoice-records-layout .admin-invoice-records-table td:is(:nth-child(4), :nth-child(7)) {
    white-space: normal;
  }
}

@media (max-width: 980px) {
  .admin-store-shell .admin-invoice-records-layout .admin-invoice-records-table {
    min-width: 960px;
  }
}

@media (max-width: 1180px) {
  .admin-store-shell .admin-invoice-records-layout .admin-invoice-records-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-store-shell .admin-invoice-records-layout .admin-invoice-record-stat:nth-child(3) {
    padding-left: 4px;
    border-left: 0;
  }

  .admin-store-shell .admin-invoice-records-layout .admin-invoice-record-stat:nth-child(n + 3) {
    border-top: 1px solid var(--so-line);
  }

  .admin-store-shell .admin-invoice-records-layout .admin-invoice-records-table-wrap {
    max-height: none;
  }
}

/* ========================================================================== */
/* Invoice Detail                                                             */
/* ========================================================================== */

.admin-store-shell .admin-invoice-detail-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
  width: 100%;
  max-width: 1080px;
  min-width: 0;
  padding: 2px 6px 0;
}

.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-back {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 16px 0 12px;
  border: 1px solid var(--so-line2);
  border-radius: 999px;
  background: transparent;
  color: var(--so-ink);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  animation: so-rise 0.5s var(--so-ease) both;
  transition: transform 0.35s var(--so-ease), background-color 0.25s;
}

.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-back:hover {
  background: var(--so-card2);
  color: var(--so-ink);
  transform: translateY(-1px);
}

.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-back svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
}

.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-card > .admin-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 72px 0;
  border-top: 1px solid var(--so-line);
  border-bottom: 1px solid var(--so-line);
  color: var(--so-ink3);
  font-size: 13px;
}

.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 0;
  border: 0;
  animation: so-rise 0.55s var(--so-ease) 40ms both;
}

.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-head > div {
  flex: 1;
  min-width: 0;
}

.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-head h2 {
  margin: 0;
  color: var(--so-ink);
  font-family: var(--so-mono);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-head .admin-status-badge {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--so-line2);
  border-radius: 7px;
  background: transparent;
  box-shadow: none;
  color: var(--so-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
}

.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-head .admin-status-badge::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--so-mint);
}

.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-head .admin-status-badge-warn {
  border-color: var(--so-amber);
  color: var(--so-amber);
}

.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-head .admin-status-badge-warn::before {
  background: var(--so-amber);
}

.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-head .admin-status-badge-muted {
  color: var(--so-ink3);
}

.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-head .admin-status-badge-muted::before {
  background: var(--so-ink3);
}

.admin-store-shell .admin-invoice-detail-layout :is(.admin-invoice-detail-meta, .admin-invoice-detail-totals) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--so-line);
  border-radius: 0;
  background: transparent;
  animation: so-rise 0.55s var(--so-ease) 80ms both;
}

.admin-store-shell .admin-invoice-detail-layout :is(.admin-invoice-detail-meta, .admin-invoice-detail-totals) article {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 10px 14px 11px;
  border: 0;
  border-bottom: 1px solid var(--so-line);
  border-left: 1px solid var(--so-line);
  border-radius: 0;
  background: transparent;
}

.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-meta article:nth-child(4n + 1) {
  padding-left: 2px;
  border-left: 0;
}

.admin-store-shell .admin-invoice-detail-layout :is(.admin-invoice-detail-meta, .admin-invoice-detail-totals) span {
  margin: 0;
  color: var(--so-ink3);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-meta strong {
  color: var(--so-ink);
  font-family: var(--so-font);
  font-size: 13.5px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-meta article:is(:nth-child(2), :nth-child(8)) strong {
  font-family: var(--so-mono);
  font-size: 13px;
}

.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-meta article strong.is-empty {
  color: var(--so-ink3);
  font-family: var(--so-font);
  font-weight: 400;
}

.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  animation: so-rise 0.55s var(--so-ease) 120ms both;
}

.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-section > h3 {
  margin: 0;
  color: var(--so-ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
}

.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-items {
  margin: 0;
  overflow-x: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-items table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  table-layout: fixed;
}

.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-items th {
  height: 34px;
  padding: 0 6px;
  border-bottom: 1px solid var(--so-line);
  background: transparent;
  color: var(--so-ink3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-items :is(th, td):is(:first-child, :last-child) {
  text-align: left;
}

.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-items th:nth-child(2) { width: 56px; }
.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-items th:nth-child(3),
.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-items th:nth-child(4) { width: 112px; }
.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-items th:nth-child(5) { width: 150px; }
.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-items th:nth-child(6) { width: 118px; }
.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-items th:nth-child(7) { width: 156px; padding-left: 18px; }

.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-items td {
  height: 48px;
  padding: 4px 6px;
  border-bottom: 1px solid var(--so-line);
  background: transparent;
  color: var(--so-ink);
  font-family: var(--so-mono);
  font-size: 13px;
  text-align: right;
  vertical-align: middle;
  white-space: nowrap;
  transition: background-color 0.25s;
}

.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-items tr:last-child td {
  border-bottom: 1px solid var(--so-line);
}

.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-items tbody tr:hover td {
  background: var(--so-card2);
}

.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-items td:nth-child(5) {
  color: var(--so-ink2);
  font-size: 12.5px;
}

.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-items td:nth-child(6) {
  font-weight: 600;
}

.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-items td.admin-invoice-detail-product {
  font-family: var(--so-font);
  white-space: normal;
}

.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-product strong {
  display: block;
  color: var(--so-ink);
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-product small {
  display: block;
  margin: 0;
  color: var(--so-ink3);
  font-family: var(--so-mono);
  font-size: 11px;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.admin-store-shell .admin-invoice-detail-layout td.admin-invoice-detail-fulfillment {
  padding-left: 18px;
  color: var(--so-ink2);
  font-family: var(--so-font);
  font-size: 12.5px;
}

.admin-store-shell .admin-invoice-detail-layout td.admin-invoice-detail-fulfillment::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--so-ink3);
  vertical-align: 1px;
}

.admin-store-shell .admin-invoice-detail-layout td.admin-invoice-detail-fulfillment.is-scanned::before {
  background: var(--so-mint);
}

.admin-store-shell .admin-invoice-detail-layout td.admin-invoice-detail-fulfillment.is-unscanned::before {
  background: var(--so-amber);
}

.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-items td.admin-empty {
  height: auto;
  padding: 18px 6px;
  color: var(--so-ink3);
  font-family: var(--so-font);
  text-align: left;
  white-space: normal;
}

.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-totals {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 0;
  animation-delay: 160ms;
}

.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-totals article {
  padding: 11px 14px 12px;
}

.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-totals article:first-child {
  padding-left: 2px;
  border-left: 0;
}

.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-totals strong {
  color: var(--so-ink);
  font-family: var(--so-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-total article:last-child {
  border-color: var(--so-line);
  background: transparent;
}

.admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-total article:last-child strong {
  font-size: 19px;
  line-height: 1.15;
}

@media (max-width: 900px) {
  .admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-items table {
    min-width: 1000px;
  }

  .admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-meta article:nth-child(odd) {
    padding-left: 2px;
    border-left: 0;
  }

  .admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-meta article:nth-child(even) {
    padding-left: 14px;
    border-left: 1px solid var(--so-line);
  }

  .admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-totals article:nth-child(odd) {
    padding-left: 2px;
    border-left: 0;
  }

  .admin-store-shell .admin-invoice-detail-layout .admin-invoice-detail-totals article:last-child {
    grid-column: 1 / -1;
  }
}

/* ========================================================================== */
/* Integrations                                                               */
/* ========================================================================== */

.admin-store-shell .admin-integrations-layout {
  display: block;
  padding: 8px 12px 6px;
}

.admin-store-shell .admin-integrations-layout > .admin-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 620px;
}

.admin-store-shell .admin-integrations-layout .admin-panel-head {
  justify-content: flex-start;
  min-height: 0;
  animation: so-rise 0.55s var(--so-ease) backwards;
}

.admin-store-shell .admin-integrations-layout .admin-panel-meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.admin-store-shell .admin-integrations-layout .admin-panel-meta::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--so-ink3);
}

.admin-store-shell .admin-integrations-layout .admin-integrations-link {
  display: flex;
  align-items: center;
  gap: 14px;
  box-sizing: border-box;
  width: 100%;
  max-width: 520px;
  min-height: 72px;
  padding: 13px 16px 13px 14px;
  border: 1px solid var(--so-line);
  border-radius: 16px;
  background: var(--so-card);
  color: var(--so-ink);
  text-decoration: none;
  animation: so-rise 0.55s var(--so-ease) 0.08s backwards;
  transition: transform 0.5s var(--so-ease), border-color 0.3s, background-color 0.3s;
}

.admin-store-shell .admin-integrations-layout .admin-integrations-link:hover {
  border-color: var(--so-line2);
  color: var(--so-ink);
  transform: translateY(-3px);
}

.admin-store-shell .admin-integrations-layout .admin-integrations-link:active {
  transform: translateY(0) scale(0.99);
  transition-duration: 0.08s;
}

.admin-store-shell .admin-integrations-layout .admin-integrations-link:focus-visible {
  outline: 2px solid var(--so-ink2);
  outline-offset: 2px;
}

.admin-store-shell .admin-integrations-layout .admin-integrations-link-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--so-line);
  border-radius: 12px;
  background: var(--so-card2);
  color: var(--so-ink);
}

.admin-store-shell .admin-integrations-layout .admin-integrations-link svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-store-shell .admin-integrations-layout .admin-integrations-link-icon svg {
  width: 20px;
  height: 20px;
}

.admin-store-shell .admin-integrations-layout .admin-integrations-link-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.admin-store-shell .admin-integrations-layout .admin-integrations-link-copy strong {
  color: var(--so-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.admin-store-shell .admin-integrations-layout .admin-integrations-link-copy small {
  color: var(--so-ink3);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.35;
}

.admin-store-shell .admin-integrations-layout .admin-integrations-link-chevron {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--so-ink3);
  transition: transform 0.4s var(--so-ease), color 0.3s;
}

.admin-store-shell .admin-integrations-layout .admin-integrations-link:hover .admin-integrations-link-chevron {
  color: var(--so-ink);
  transform: translateX(3px);
}

/* Phones: section heads sit left-aligned above the form, title and action on one row. */
html[data-device="phone"] .admin-walkins-layout .admin-panel-head {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  text-align: left;
}
