:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #0f172a;
  background: #f1f5f9;
  font-synthesis: none;
}

.mfa-card {
  display: grid;
  gap: 14px;
}

.mfa-card > h2,
.mfa-card > p {
  margin: 0;
}

.mfa-steps {
  margin: 0;
  padding-left: 22px;
  color: #64748b;
}

.mfa-qr {
  width: min(240px, 100%);
  aspect-ratio: 1;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  background: #fff;
  padding: 10px;
}

.mfa-manual-key {
  display: block;
  overflow-wrap: anywhere;
  padding: 12px;
  border-radius: 10px;
  background: #f8fafc;
  letter-spacing: .08em;
}

.recovery-code-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.recovery-code-grid code {
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #f8fafc;
  text-align: center;
  letter-spacing: .05em;
}

.mfa-confirm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mfa-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 680px) {
  .mfa-confirm-grid {
    grid-template-columns: 1fr;
  }
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }
body { background: #f1f5f9; }

button, input { font: inherit; }

button {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
  background: #e2e8f0;
  color: #0f172a;
}

button:disabled { cursor: wait; opacity: .65; }
button.primary { background: #16a34a; color: white; }
button.primary:hover:not(:disabled) { background: #15803d; }

input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 11px 12px;
  background: white;
  color: #0f172a;
  outline: none;
}

input:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .16);
}

label {
  display: block;
  margin: 14px 0 6px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  height: 100vh;
  overflow: hidden;
}

.side {
  background: #0f172a;
  color: white;
  padding: 18px;
  overflow: auto;
}

.side h1 {
  margin: 0 0 22px;
  font-size: 22px;
  letter-spacing: -.02em;
}

.side button {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  text-align: left;
  background: transparent;
  color: #cbd5e1;
  border: 1px solid transparent;
}

.side button:hover,
.side button.active {
  background: #1e293b;
  color: white;
  border-color: #334155;
}

.main {
  height: 100vh;
  overflow: hidden;
  padding: 14px;
}

.notice,
.card,
.compact-product,
.compact-card,
.orders-header,
.pick-card,
.empty-scan {
  background: white;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}

.notice {
  padding: 11px 14px;
  margin-bottom: 10px;
  border-left: 4px solid #22c55e;
}

.card { padding: 16px; margin-bottom: 10px; }
.card h2, .card h3 { margin-top: 0; }
.muted { color: #64748b; }

.settings-card { max-width: 720px; }
.settings-card .primary { margin-top: 16px; }

.scan-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.scan-top input {
  flex: 1;
  height: 44px;
  border: 2px solid #22c55e;
  font-size: 18px;
}

.scan-top button { height: 44px; white-space: nowrap; }

.compact-product {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  margin-bottom: 10px;
}

.compact-image {
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  background: #f1f5f9;
}

.compact-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.image-placeholder { color: #94a3b8; font-size: 13px; }

.compact-info h2 { margin: 0 0 6px; font-size: 22px; line-height: 1.15; }

.pill,
.location-pill,
.order-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
}

.pill { padding: 4px 9px; background: #dcfce7; color: #166534; font-size: 12px; }

.compact-details {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.compact-details div { min-width: 0; padding: 8px; border-radius: 10px; background: #f8fafc; }
.compact-details span { display: block; margin-bottom: 3px; color: #64748b; font-size: 11px; }
.compact-details b { display: block; overflow-wrap: anywhere; font-size: 15px; }

.compact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.compact-card { align-self: start; padding: 12px; }
.compact-card h3 { margin: 0 0 8px; font-size: 16px; }
.compact-list { max-height: 240px; overflow: auto; padding-right: 4px; }

.compact-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
}

.compact-row:last-child { border-bottom: 0; }
.compact-row span { min-width: 0; overflow-wrap: anywhere; }
.compact-row small { display: block; margin-top: 2px; color: #64748b; }
.compact-row b { white-space: nowrap; }

.empty-scan,
.empty-orders { padding: 24px; color: #64748b; text-align: center; }

.orders-nav { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; }
.order-badge { min-width: 24px; height: 24px; padding: 0 7px; background: #22c55e; color: white; font-size: 13px; }
.settings-nav { text-align: center !important; font-size: 22px; line-height: 1; }

.orders-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.orders-header h2 { margin: 0; }
.orders-header p { margin: 3px 0 0; color: #64748b; font-size: 13px; }
.orders-list { height: calc(100vh - 104px); overflow: auto; padding-right: 4px; }

.pick-card { padding: 12px; margin-bottom: 10px; }
.pick-card.expanded { outline: 2px solid rgba(34, 197, 94, .3); }

.pick-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.order-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.order-title-row h3 { margin: 0; }
.location-pill { padding: 5px 9px; background: #e0f2fe; color: #075985; font-size: 12px; }

.pick-meta { display: flex; gap: 8px 14px; flex-wrap: wrap; margin-top: 6px; color: #475569; font-size: 13px; }
.assigned-location { display: block; margin-top: 4px; color: #64748b; }
.pick-button { min-width: 74px; }

.pick-expanded { margin-top: 10px; padding-top: 10px; border-top: 1px solid #e2e8f0; }
.pick-expanded > input { height: 44px; margin-bottom: 8px; border: 2px solid #22c55e; }
.pick-items { max-height: 300px; overflow: auto; }

.pick-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #e2e8f0;
}

.pick-item:last-child { border-bottom: 0; }
.pick-item small { display: block; margin-top: 3px; color: #64748b; }
.pick-item.done b,
.pick-item.done strong { color: #16a34a; }

.pick-quantity { display: flex; align-items: center; gap: 8px; }
.unpick-button { padding: 6px 10px; background: #fee2e2; color: #991b1b; font-size: 12px; }
.fulfill-button { width: 100%; margin-top: 10px; }

@media (max-width: 800px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }

  .side {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    overflow-x: auto;
  }

  .side h1 { margin: 0 8px 0 0; font-size: 16px; white-space: nowrap; }
  .side button { width: auto; margin: 0; padding: 8px 10px; white-space: nowrap; }
  .settings-nav { min-width: 42px; }

  .main { height: calc(100vh - 60px); padding: 10px; }
  .scan-top { gap: 6px; margin-bottom: 8px; }
  .scan-top input { height: 40px; font-size: 16px; }
  .scan-top button { height: 40px; padding: 8px 10px; }

  .compact-product { grid-template-columns: 82px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .compact-image { width: 82px; height: 82px; }
  .compact-info h2 { font-size: 17px; }
  .compact-details { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .compact-details div { padding: 6px; }
  .compact-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .compact-card { padding: 10px; }
  .compact-list { max-height: 170px; }
  .orders-list { height: calc(100vh - 132px); }
}

@media (max-width: 540px) {
  .compact-grid { grid-template-columns: 1fr; }
  .compact-list { max-height: 150px; }
  .pick-summary { flex-direction: column; }
  .pick-button { width: 100%; }
  .pick-item { align-items: flex-start; }
}

/* Production account and OAuth UI */
.loading-screen,
.auth-shell,
.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.loading-screen {
  color: #475569;
  font-weight: 700;
}

.auth-shell,
.auth-page {
  width: 100%;
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, .16), transparent 34%),
    #0f172a;
}

.auth-card {
  width: min(440px, 100%);
  padding: 28px;
  border-radius: 18px;
  background: white;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.auth-brand {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-weight: 900;
  letter-spacing: -.01em;
}

.auth-card h1 {
  margin: 0 0 7px;
  font-size: 28px;
}

.auth-notice {
  margin-top: 14px;
  box-shadow: none;
  background: #f8fafc;
}

.auth-primary {
  width: 100%;
  margin-top: 16px;
}

.auth-switch {
  width: 100%;
  margin-top: 9px;
  background: transparent;
  color: #2563eb;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  font-weight: 600;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.account-email {
  margin: -14px 0 18px;
  overflow: hidden;
  color: #94a3b8;
  font-size: 12px;
  text-overflow: ellipsis;
}

.side .logout-button {
  margin-top: 24px;
  color: #fca5a5;
}

.connection-status {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.connection-status.connected {
  background: #dcfce7;
  color: #166534;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 14px;
}

.settings-grid > div {
  min-width: 0;
  padding: 11px;
  border-radius: 11px;
  background: #f8fafc;
}

.settings-grid span,
.settings-grid b {
  display: block;
}

.settings-grid span {
  margin-bottom: 4px;
  color: #64748b;
  font-size: 11px;
}

.settings-grid b {
  overflow-wrap: anywhere;
  font-size: 14px;
}

.settings-note {
  padding: 11px;
  border-left: 3px solid #22c55e;
  background: #f8fafc;
}

.danger-button {
  background: #fee2e2;
  color: #991b1b;
}

@media (max-width: 800px) {
  .account-email {
    display: none;
  }

  .side .logout-button {
    margin-top: 0;
  }
}

@media (max-width: 540px) {
  .auth-card {
    padding: 20px;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }
}

/* Account settings and session update */
.settings-stack {
  height: 100%;
  max-width: 820px;
  overflow: auto;
  padding-right: 4px;
}

.settings-stack .settings-card {
  max-width: none;
}

.shopify-locations-card {
  display: grid;
  gap: 14px;
}

.location-review-callout {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid #fdba74;
  border-radius: 12px;
  background: #fff7ed;
  color: #9a3412;
}

.location-review-callout span {
  font-size: 13px;
}

.location-empty-warning {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid #fca5a5;
  border-radius: 12px;
  background: #fef2f2;
  color: #991b1b;
}

.location-empty-warning span {
  font-size: 13px;
}

.location-settings-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.25fr) repeat(2, minmax(175px, 1fr));
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #dbe5df;
  border-radius: 12px;
  background: #fbfefc;
}

.location-settings-row.inactive {
  background: #f8fafc;
  opacity: .76;
}

.location-identity {
  min-width: 0;
}

.location-identity > b,
.location-identity > small {
  display: block;
  overflow-wrap: anywhere;
}

.location-identity > small {
  margin-top: 3px;
  color: #64748b;
}

.shopify-location-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.shopify-location-badges .connection-status,
.shopify-location-badges .role-pill {
  margin: 0;
  padding: 4px 8px;
  font-size: 11px;
}

.role-pill.attention {
  background: #fef3c7;
  color: #92400e;
}

.location-role-toggle {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
  margin: 0;
  padding: 10px;
  border-radius: 10px;
  background: white;
  cursor: pointer;
}

.location-role-toggle input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: #16a34a;
}

.location-role-toggle span,
.location-role-toggle b,
.location-role-toggle small {
  display: block;
  min-width: 0;
}

.location-role-toggle small {
  margin-top: 3px;
  color: #64748b;
  font-weight: 500;
  line-height: 1.35;
}

.location-settings-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.location-settings-footer small {
  color: #64748b;
}

.settings-card .location-settings-footer .primary {
  margin-top: 0;
}

.account-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.account-setting-section {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.account-setting-section h3 {
  margin: 0 0 4px;
}

.small-copy {
  margin: 0 0 8px;
  font-size: 13px;
}

.account-action-button {
  width: 100%;
  margin-top: 14px;
}

@media (max-width: 700px) {
  .account-settings-grid {
    grid-template-columns: 1fr;
  }

  .location-settings-row {
    grid-template-columns: 1fr;
  }

  .location-settings-footer {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Operations update */
.user-chip {
  display: grid;
  gap: 2px;
  margin: 0 0 14px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  color: #cbd5e1;
  font-size: 12px;
  overflow: hidden;
}
.user-chip span { overflow: hidden; text-overflow: ellipsis; }
.user-chip b { color: #86efac; font-size: 11px; }
.order-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px auto;
  gap: 8px;
  margin-bottom: 10px;
}
.batch-check { display:flex; align-items:center; padding-right:8px; }
.batch-check input { width:18px; height:18px; }
.pick-main { flex:1; min-width:0; }
.pick-card-buttons { display:flex; gap:8px; align-items:flex-start; }
.pick-scanner { border:2px solid #22c55e; margin-bottom:10px; }
.pick-item {
  align-items:center;
  display:grid;
  grid-template-columns:48px minmax(0,1fr) auto;
}
.pick-item-image {
  width:42px;
  height:42px;
  border-radius:8px;
  background:#f1f5f9;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.pick-item-image img { width:100%; height:100%; object-fit:contain; }
.pick-item-info { min-width:0; }
.pick-item-actions { display:flex; align-items:center; gap:6px; }
.pick-item.unable { background:#fff7ed; }
.bin-label { color:#166534 !important; font-weight:700; }
.unable-reason { color:#b45309 !important; font-weight:700; }
.small-button { padding:6px 8px; font-size:12px; }
.small-button.warning { background:#ffedd5; color:#9a3412; }
.batch-panel { margin-bottom:10px; }
.batch-header,
.settings-title-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.batch-header h2,
.settings-title-row h2 { margin:0; }
.batch-header p,
.settings-title-row p { margin:3px 0 0; }
.batch-fulfill-buttons { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.invite-grid {
  display:grid;
  grid-template-columns:minmax(220px,1fr) 160px auto;
  gap:8px;
}
.team-list { display:grid; gap:8px; }
.team-member-card,
.device-assignment-card {
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
}
.team-member-card .team-row,
.device-assignment-card .session-row {
  padding: 0;
  border-bottom: 0;
}
.pick-location-scope {
  display: grid;
  gap: 7px;
  margin-top: 11px;
  padding: 12px;
  border: 1px solid #dbe5df;
  border-radius: 12px;
  background: #f8fbf9;
}
.pick-location-scope > small {
  color: #64748b;
}
.pick-location-scope .checkbox-row {
  margin-top: 2px;
}
.pick-location-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 7px;
}
.pick-location-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 9px;
  background: white;
  font-weight: 600;
}
.pick-location-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #16a34a;
}
.location-assignment-save {
  margin-top: 9px;
}
.team-row,
.session-row {
  display:grid;
  grid-template-columns:minmax(220px,1fr) auto auto auto;
  gap:10px;
  align-items:center;
  padding:10px 0;
  border-bottom:1px solid #e2e8f0;
}
.team-row small,
.session-row small { display:block; color:#64748b; margin-top:3px; }
.role-pill {
  display:inline-flex;
  padding:5px 9px;
  border-radius:999px;
  background:#e0f2fe;
  color:#075985;
  font-size:12px;
  font-weight:800;
}
.warning-status { background:#ffedd5; color:#9a3412; }
.report-row { display:grid; gap:3px; padding:8px 0; border-bottom:1px solid #e2e8f0; }
.report-row span { color:#64748b; font-size:12px; }

@media (max-width: 800px) {
  .order-toolbar,
  .invite-grid { grid-template-columns:1fr; }
  .team-row,
  .session-row { grid-template-columns:1fr; }
  .pick-summary { flex-wrap:wrap; }
  .pick-card-buttons { width:100%; }
  .pick-card-buttons button { flex:1; }
  .pick-item { grid-template-columns:42px minmax(0,1fr); }
  .pick-item-actions { grid-column:1 / -1; justify-content:flex-end; }
}
.legal-page { max-width:850px; margin:40px auto; padding:24px; background:#fff; border-radius:14px; box-shadow:0 8px 24px rgba(15,23,42,.08); line-height:1.6; }
.legal-page h1,.legal-page h2 { color:#0f172a; }

/* Snap Retail native Android / Zebra layout */
html.snapretail-native,
html.snapretail-native body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: #eef2f7;
}

.snapretail-native body {
  -webkit-tap-highlight-color: transparent;
}

.native-shell {
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(34, 197, 94, .10), transparent 30%),
    #eef2f7;
}

.native-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 11px;
  min-height: 68px;
  padding: max(10px, env(safe-area-inset-top)) 14px 10px;
  color: white;
  background: linear-gradient(135deg, #0f172a 0%, #172554 100%);
  box-shadow: 0 5px 20px rgba(15, 23, 42, .24);
}

.native-brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 13px;
  color: #052e16;
  background: linear-gradient(145deg, #86efac, #22c55e);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 5px 15px rgba(34, 197, 94, .25);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: -.04em;
}

.native-brand-copy {
  min-width: 0;
}

.native-brand-copy strong,
.native-brand-copy span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.native-brand-copy strong {
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.native-brand-copy span {
  margin-top: 3px;
  color: #cbd5e1;
  font-size: 11px;
}

.native-connection {
  width: 11px;
  height: 11px;
  border: 2px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, .12);
}

.native-connection.online {
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, .14);
}

.native-main {
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 12px 18px;
}

.native-notice {
  position: relative;
  z-index: 8;
  margin-bottom: 9px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .09);
}

.native-bottom-nav {
  position: relative;
  z-index: 30;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 7px 10px max(8px, env(safe-area-inset-bottom));
  border-top: 1px solid #dbe3ec;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 -8px 25px rgba(15, 23, 42, .10);
}

.native-nav-button {
  position: relative;
  min-width: 0;
  min-height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 5px 8px;
  border-radius: 13px;
  color: #64748b;
  background: transparent;
  font-size: 11px;
  font-weight: 850;
  transition: transform .12s ease, color .12s ease, background .12s ease;
}

.native-nav-button:active {
  transform: scale(.96);
}

.native-nav-button.active {
  color: #166534;
  background: #dcfce7;
}

.native-nav-icon {
  position: relative;
  width: 28px;
  height: 26px;
  display: grid;
  place-items: center;
}

.native-nav-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.native-order-badge {
  position: absolute;
  top: -5px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border: 2px solid white;
  border-radius: 999px;
  color: white;
  background: #ef4444;
  font-size: 9px;
  line-height: 1;
}

.snapretail-native .scan-top {
  position: sticky;
  top: 0;
  z-index: 12;
  gap: 7px;
  margin: 0 0 10px;
  padding: 9px;
  border: 1px solid #dbe3ec;
  border-radius: 14px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .10);
}

.snapretail-native .scan-top input,
.snapretail-native .pick-scanner {
  min-height: 48px;
  border-width: 2px;
  border-radius: 11px;
  font-size: 16px;
}

.snapretail-native .scan-top button {
  min-height: 48px;
  padding-inline: 14px;
}

.snapretail-native .compact-product {
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 11px;
  padding: 11px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 7px 22px rgba(15, 23, 42, .08);
}

.snapretail-native .compact-image {
  width: 92px;
  height: 92px;
}

.snapretail-native .compact-info h2 {
  font-size: 18px;
}

.snapretail-native .compact-details {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.snapretail-native .compact-grid,
.snapretail-native .settings-grid,
.snapretail-native .account-settings-grid {
  grid-template-columns: 1fr;
}

.snapretail-native .compact-card,
.snapretail-native .card,
.snapretail-native .orders-header,
.snapretail-native .pick-card {
  border: 1px solid #e2e8f0;
  box-shadow: 0 7px 20px rgba(15, 23, 42, .07);
}

.snapretail-native .orders-header {
  position: sticky;
  top: 0;
  z-index: 11;
  gap: 8px;
  margin-bottom: 9px;
  border-radius: 14px;
}

.snapretail-native .orders-header h2 {
  font-size: 19px;
}

.snapretail-native .orders-list {
  height: auto;
  overflow: visible;
  padding-right: 0;
}

.snapretail-native .order-tools,
.snapretail-native .pick-summary,
.snapretail-native .pick-card-buttons {
  gap: 8px;
}

.snapretail-native .pick-summary {
  align-items: stretch;
}

.snapretail-native .pick-card-buttons {
  display: flex;
  flex-direction: column;
  min-width: 82px;
}

.snapretail-native .pick-card-buttons button {
  min-height: 42px;
}

.snapretail-native .pick-items {
  max-height: none;
  overflow: visible;
}

.snapretail-native .pick-item {
  min-height: 66px;
  padding: 10px 0;
}

.snapretail-native .pick-quantity button,
.snapretail-native .unpick-button,
.snapretail-native .unable-button {
  min-height: 38px;
}

.snapretail-native .settings-stack {
  display: grid;
  gap: 10px;
}

.snapretail-native .settings-card {
  max-width: none;
  margin: 0;
}

.snapretail-native .settings-card + .settings-card {
  margin-top: 0;
}

.native-signout-card {
  padding: 10px;
  background: #fff7f7;
}

.native-signout-button {
  width: 100%;
  min-height: 48px;
}

@media (max-width: 420px) {
  .native-main {
    padding-inline: 9px;
  }

  .native-header {
    padding-inline: 11px;
  }

  .snapretail-native .compact-product {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .snapretail-native .compact-image {
    width: 76px;
    height: 76px;
  }

  .snapretail-native .pick-summary {
    flex-direction: column;
  }

  .snapretail-native .pick-card-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
}

/* Snap Retail Metrics branding */
.loading-screen {
  flex-direction: column;
  gap: 12px;
}

.loading-screen img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 50%;
}

.auth-logo {
  display: flex;
  justify-content: center;
  margin: -4px 0 18px;
}

.auth-logo img {
  display: block;
  width: min(360px, 100%);
  height: auto;
  object-fit: contain;
}

.side-brand {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, .22);
}

.side-brand-mark {
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 50%;
  background: white;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
}

.side-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transform: scale(1.08);
}

.side-brand-copy {
  min-width: 0;
}

.side-brand-copy strong,
.side-brand-copy span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.side-brand-copy strong {
  color: white;
  font-size: 17px;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.side-brand-copy span {
  margin-top: 4px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.native-header {
  grid-template-columns: minmax(0, 1fr) 14px;
}

.native-brand {
  min-width: 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
}

.native-brand-mark {
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .24);
}

.native-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transform: scale(1.08);
}

.native-brand-copy {
  min-width: 0;
}

.native-brand-copy strong,
.native-brand-copy span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.native-brand-copy strong {
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.native-brand-copy span {
  margin-top: 3px;
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .025em;
  text-transform: uppercase;
}

@media (max-width: 800px) {
  html:not(.snapretail-native) .side-brand {
    min-width: 215px;
    margin: 0 8px 0 0;
    padding: 0 12px 0 0;
    border-right: 1px solid rgba(148, 163, 184, .22);
    border-bottom: 0;
  }

  html:not(.snapretail-native) .side-brand-mark {
    width: 38px;
    height: 38px;
  }

  html:not(.snapretail-native) .side-brand-copy strong {
    font-size: 14px;
  }

  html:not(.snapretail-native) .side-brand-copy span {
    font-size: 8px;
  }
}

@media (max-width: 520px) {
  .auth-card {
    padding: 22px 18px;
  }

  .auth-logo img {
    width: min(300px, 100%);
  }
}

/* Scan reliability + restored SR home mark */
.brand-home-link {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.brand-home-link:focus-visible {
  outline: 3px solid rgba(74, 222, 128, .65);
  outline-offset: 3px;
  border-radius: 12px;
}

.brand-home-link:hover {
  filter: brightness(1.06);
}

.side-brand-mark,
.native-brand-mark {
  display: grid;
  place-items: center;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 13px;
  color: #052e16;
  background: linear-gradient(145deg, #86efac, #22c55e);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 5px 15px rgba(34, 197, 94, .25);
  font-size: 16px;
  font-weight: 950;
  letter-spacing: -.04em;
}

.side-brand-mark img,
.native-brand-mark img {
  display: none;
}

/* Billing, licensing, device activation, and account data controls */
.billing-banner {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  text-align: center;
}
.billing-banner.warning { background: #fff7d6; border: 1px solid #f2c94c; color: #704f00; }
.billing-banner.blocked { background: #fee2e2; border: 1px solid #ef4444; color: #991b1b; }
.activation-panel {
  padding: 16px;
  margin: 12px 0;
  border: 2px solid #22c55e;
  border-radius: 14px;
  background: #f0fdf4;
}
.activation-panel h3 { margin: 0 0 5px; }
.activation-panel p { margin: 0 0 12px; color: #475569; }
.activation-panel input { margin-bottom: 9px; text-transform: uppercase; letter-spacing: .12em; }
.license-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  margin: 10px 0;
  border-radius: 12px;
  background: #f1f5f9;
}
.device-list { margin: 8px 0 14px; }
.data-actions { display: flex; gap: 8px; margin: 12px 0; }
.update-callout {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: #ecfdf5;
  border: 1px solid #86efac;
}
.update-callout p { margin: 5px 0 12px; }
.button-link { display: inline-block; text-decoration: none; }
.connection-status.error-status { background: #fee2e2; color: #991b1b; }

@media (max-width: 800px) {
  .billing-banner { flex-direction: column; gap: 3px; padding: 9px 12px; }
  .license-summary { font-size: 13px; }
  .activation-panel { padding: 13px; }
  .data-actions { flex-direction: column; }
}

/* 2.2.4 device-license activation clarity */
.pending-activation-list { margin: 14px 0; }
.pending-activation-list h3 { margin: 0 0 8px; }
.pending-activation-list .session-row { align-items: center; }
.pending-activation-list .primary { white-space: nowrap; }

/* Picking details and automatic order alerts (2.2.7) */
.order-auto-refresh {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.order-alert {
  margin-bottom: 10px;
  border-left: 4px solid #16a34a;
  font-weight: 700;
}

.pick-variant-details {
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: #334155 !important;
}

.pick-variant-details span {
  white-space: nowrap;
}

.pick-variant-details b {
  color: #0f172a;
}

.pick-variant-title {
  color: #475569 !important;
}

.snapretail-native .order-auto-refresh {
  max-width: 245px;
  font-size: 11px;
}

.snapretail-native .pick-variant-details {
  gap: 4px 10px;
}

.orders-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.snapretail-native .orders-header-actions {
  flex-direction: column;
  align-items: stretch;
  min-width: 88px;
}

.snapretail-native .orders-header-actions button {
  min-height: 40px;
}


/* Browser sign-in centering and green executive sales dashboard */
.auth-page {
  display: grid;
  place-items: center;
  overflow-y: auto;
}

.auth-page .auth-card {
  margin: auto;
}

.side {
  background:
    radial-gradient(circle at 18% 18%, rgba(74, 222, 128, .10), transparent 28%),
    linear-gradient(180deg, #063c2f 0%, #022d25 58%, #04281f 100%);
}

.side button:hover {
  border-color: rgba(134, 239, 172, .18);
  background: rgba(255, 255, 255, .06);
}

.side button.active {
  border-color: rgba(134, 239, 172, .32);
  background: linear-gradient(135deg, #0d7a3b, #159947);
  box-shadow: 0 8px 20px rgba(4, 120, 50, .24);
}

.side-nav {
  display: grid;
  gap: 4px;
}

.side .side-nav-button {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
  padding: 11px 12px;
}

.side-nav-button > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-nav-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
}

.side-nav-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.side .logout-button {
  margin-top: 20px;
  color: #fca5a5;
}

.side-footer {
  display: grid;
  gap: 5px;
  margin-top: 28px;
  padding: 18px 2px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #b8cfc4;
  font-size: 11px;
}

.side-footer b {
  color: #ecfdf5;
  font-size: 12px;
}

.main {
  background: #f5f8f6;
}

.today-dashboard {
  height: 100%;
  overflow-y: auto;
  padding: 0 5px 22px 0;
  color: #13231b;
}

.dashboard-context-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  min-height: 54px;
  margin: -14px -14px 18px;
  padding: 8px 20px;
  border-bottom: 1px solid #dfe8e2;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 2px 10px rgba(15, 23, 42, .03);
}

.dashboard-store-context,
.dashboard-user-context {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-store-context > span:last-child,
.dashboard-user-context > span:last-child {
  display: grid;
  gap: 2px;
}

.dashboard-store-context b,
.dashboard-user-context b {
  max-width: 230px;
  overflow: hidden;
  color: #17251d;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-store-context small,
.dashboard-user-context small {
  color: #66756c;
  font-size: 11px;
}

.dashboard-context-icon,
.dashboard-user-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #eaf7e8;
  color: #18843b;
}

.dashboard-context-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.dashboard-user-avatar {
  font-size: 13px;
  font-weight: 900;
}

.dashboard-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 0 4px;
}

.dashboard-title-row h1 {
  margin: 0 0 5px;
  color: #122019;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.dashboard-title-row p {
  margin: 0;
  color: #53635a;
  font-size: 13px;
}

.dashboard-refresh-block {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.dashboard-refresh-block small {
  color: #53635a;
  font-size: 12px;
}

.dashboard-refresh-block button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 106px;
  justify-content: center;
  border: 1px solid #2aa14c;
  background: white;
  color: #117a34;
}

.dashboard-refresh-block button:hover:not(:disabled) {
  background: #effbef;
}

.dashboard-refresh-block svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.dashboard-range-panel {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid #dfe7e1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(18, 51, 32, .05);
}

.dashboard-range-presets {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 7px;
}

.dashboard-preset-button {
  border: 1px solid #d6e3d9;
  background: #f7faf8;
  color: #33463a;
  white-space: nowrap;
}

.dashboard-preset-button:hover:not(:disabled),
.dashboard-preset-button.active {
  border-color: #159342;
  background: #eaf8ed;
  color: #0f7733;
}

.dashboard-custom-range {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.dashboard-custom-range label {
  display: grid;
  gap: 4px;
  margin: 0;
}

.dashboard-custom-range label span {
  color: #53635a;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-custom-range input {
  width: auto;
  min-width: 148px;
  margin: 0;
  padding: 9px 10px;
  border-color: #d7e2da;
  background: #fbfdfb;
}

.dashboard-custom-range button {
  min-height: 40px;
  white-space: nowrap;
}

.dashboard-custom-range > small {
  flex-basis: 100%;
  color: #65736a;
  font-size: 10px;
  text-align: right;
}

.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.dashboard-kpi-card {
  position: relative;
  min-width: 0;
  min-height: 142px;
  padding: 20px;
  border: 1px solid #dfe7e1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(18, 51, 32, .06);
}

.dashboard-kpi-primary {
  border-color: #cae7d1;
  background: linear-gradient(145deg, #fff, #f5fcf6);
}

.dashboard-kpi-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  color: #26372d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.dashboard-kpi-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #eaf7ea;
  color: #15813a;
}

.dashboard-kpi-card:nth-child(2) .dashboard-kpi-icon { background: #edf8ee; color: #269745; }
.dashboard-kpi-card:nth-child(3) .dashboard-kpi-icon { background: #eef8e4; color: #4b9d35; }
.dashboard-kpi-card:nth-child(4) .dashboard-kpi-icon { background: #f3f8df; color: #568c1e; }

.dashboard-kpi-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.dashboard-kpi-card > strong {
  display: block;
  margin: 13px 0 10px;
  overflow: hidden;
  color: #0d7431;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
  letter-spacing: -.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-kpi-change {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5e6b63;
  font-size: 11px;
}

.dashboard-kpi-change b {
  font-size: 12px;
}

.dashboard-kpi-change .positive { color: #13913b; }
.dashboard-kpi-change .negative { color: #c33d3d; }
.dashboard-kpi-change .neutral { color: #718078; }

.dashboard-middle-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(330px, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.dashboard-bottom-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.25fr) repeat(3, minmax(220px, .8fr));
  gap: 14px;
}

.dashboard-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dfe7e1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(18, 51, 32, .06);
}

.dashboard-panel > header {
  min-height: 50px;
  display: flex;
  align-items: center;
  padding: 13px 17px;
  border-bottom: 1px solid #e5ebe7;
}

.dashboard-panel h2 {
  margin: 0;
  color: #18271e;
  font-size: 15px;
  letter-spacing: -.01em;
}

.today-location-table-wrap {
  overflow-x: auto;
}

.today-location-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.today-location-table th,
.today-location-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e5ebe7;
  color: #1e2d24;
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}

.today-location-table th:first-child,
.today-location-table td:first-child {
  width: 36%;
  text-align: left;
}

.today-location-table th {
  background: #eef7f0;
  color: #33443a;
  font-size: 11px;
  font-weight: 850;
}

.today-location-table tbody tr:hover {
  background: #f8fbf9;
}

.today-location-table tfoot td {
  border-bottom: 0;
  background: #eef7f0;
  color: #183f24;
  font-weight: 900;
}

.dashboard-location-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
}

.dashboard-location-name i {
  width: 4px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 999px;
}

.dashboard-color-0 { background: #08783e; }
.dashboard-color-1 { background: #49a92f; }
.dashboard-color-2 { background: #8bc53f; }
.dashboard-color-3 { background: #c1cb19; }
.dashboard-color-4 { background: #62bd73; }
.dashboard-color-5 { background: #0f9f6e; }
.dashboard-color-6 { background: #7cad37; }
.dashboard-color-7 { background: #a8d56a; }

.dashboard-donut-layout {
  display: grid;
  grid-template-columns: minmax(190px, .9fr) minmax(180px, 1.1fr);
  align-items: center;
  gap: 20px;
  min-height: 286px;
  padding: 22px;
}

.dashboard-donut {
  position: relative;
  width: min(230px, 100%);
  aspect-ratio: 1;
  margin: auto;
  border-radius: 50%;
}

.dashboard-donut > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dashboard-donut-background {
  fill: none;
  stroke: #e8f3eb;
  stroke-width: 18;
}

.dashboard-donut > div {
  position: absolute;
  z-index: 1;
  inset: 31%;
  display: grid;
  place-content: center;
  text-align: center;
}

.dashboard-donut strong {
  color: #17251d;
  font-size: clamp(15px, 1.7vw, 21px);
  letter-spacing: -.03em;
  white-space: nowrap;
}

.dashboard-donut span {
  margin-top: 3px;
  color: #66756c;
  font-size: 12px;
}

.dashboard-donut-legend {
  display: grid;
  gap: 13px;
}

.dashboard-donut-legend-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.dashboard-donut-legend-row > i {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 50%;
}

.dashboard-donut-legend-row span {
  min-width: 0;
}

.dashboard-donut-legend-row b,
.dashboard-donut-legend-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-donut-legend-row b {
  color: #26352c;
  font-size: 12px;
}

.dashboard-donut-legend-row small {
  margin-top: 3px;
  color: #617067;
  font-size: 11px;
}

.dashboard-donut-empty,
.dashboard-chart-empty {
  display: grid;
  min-height: 180px;
  place-items: center;
  padding: 20px;
  color: #718078;
  text-align: center;
}

.dashboard-trend-panel {
  min-height: 325px;
}

.dashboard-trend-svg {
  display: block;
  width: 100%;
  min-height: 236px;
  padding: 8px 10px 4px 0;
  overflow: visible;
}

.dashboard-trend-grid line {
  stroke: #e4ebe6;
  stroke-width: 1;
}

.dashboard-trend-grid text {
  fill: #627168;
  font-size: 10px;
}

.dashboard-trend-area {
  fill: url(#none);
  fill: rgba(44, 160, 74, .10);
}

.dashboard-trend-line {
  fill: none;
  stroke: #15913d;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.dashboard-trend-points circle {
  fill: #0f7d34;
  stroke: #fff;
  stroke-width: 2;
}

.dashboard-bar-list {
  display: grid;
  gap: 13px;
  padding: 17px;
}

.dashboard-bar-row {
  min-width: 0;
}

.dashboard-bar-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.dashboard-bar-label span {
  min-width: 0;
  overflow: hidden;
  color: #26352c;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-bar-label b {
  flex: 0 0 auto;
  color: #44534a;
  font-size: 10px;
  font-weight: 750;
}

.dashboard-bar-label small {
  color: #718078;
  font-size: 9px;
  font-weight: 650;
}

.dashboard-bar-progress {
  display: block;
  width: 100%;
  height: 6px;
  overflow: hidden;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #e7efe9;
}

.dashboard-bar-progress::-webkit-progress-bar {
  border-radius: 999px;
  background: #e7efe9;
}

.dashboard-bar-progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, #0e8337, #59b33e);
}

.dashboard-bar-progress::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, #0e8337, #59b33e);
}

.dashboard-glance-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 43px;
  padding: 10px 16px;
  border-bottom: 1px solid #e5ebe7;
  color: #26352c;
  font-size: 12px;
}

.dashboard-glance-list > div:last-child {
  border-bottom: 0;
}

.dashboard-glance-list b {
  color: #17251d;
  white-space: nowrap;
}

.dashboard-footnote,
.dashboard-detail-note {
  margin: 14px 2px 0;
  color: #66756c;
  font-size: 10px;
}

.dashboard-detail-note {
  padding: 9px 12px;
  border: 1px solid #dce7de;
  border-radius: 9px;
  background: #f7fbf8;
  color: #526159;
}

.today-no-sales,
.today-dashboard-empty,
.today-dashboard-loading {
  text-align: center;
}

.today-no-sales {
  display: grid;
  gap: 6px;
  padding: 58px 18px;
  color: #53635a;
}

.today-no-sales span {
  color: #718078;
  font-size: 12px;
}

.today-dashboard-empty,
.today-dashboard-loading {
  max-width: 660px;
  margin: 12vh auto 0;
  padding: 34px;
}

.dashboard-warning {
  border-left-color: #d69b1d;
}

.dashboard-spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto 14px;
  border: 4px solid #dff2e3;
  border-top-color: #198c3b;
  border-radius: 50%;
  animation: dashboard-spin .8s linear infinite;
}

@keyframes dashboard-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1280px) {
  .dashboard-bottom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-trend-panel {
    grid-column: span 2;
  }
}

@media (max-width: 1200px) {
  .dashboard-range-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-custom-range {
    justify-content: flex-start;
  }

  .dashboard-custom-range > small {
    text-align: left;
  }
}

@media (max-width: 1040px) {
  .dashboard-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-middle-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .side-nav {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
  }

  .side .side-nav-button {
    flex: 0 0 auto;
    width: auto;
    grid-template-columns: 20px auto auto;
    margin: 0;
    padding: 8px 10px;
    white-space: nowrap;
  }

  .side-footer,
  .user-chip {
    display: none;
  }

  .side .logout-button {
    margin: 0;
    white-space: nowrap;
  }

  .dashboard-context-bar {
    display: none;
  }

  .dashboard-title-row {
    align-items: flex-start;
    margin-top: 4px;
  }

  .dashboard-refresh-block {
    align-items: flex-end;
    flex-direction: column;
    gap: 8px;
  }

  .dashboard-donut-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-donut {
    width: min(210px, 72vw);
  }
}

@media (max-width: 620px) {
  .auth-page {
    padding: 14px;
  }

  html:not(.snapretail-native) .side-brand {
    width: 44px;
    min-width: 44px;
    margin-right: 2px;
    padding-right: 6px;
  }

  html:not(.snapretail-native) .side-brand-copy {
    display: none;
  }

  .auth-page .auth-card {
    margin-top: max(18px, env(safe-area-inset-top));
    margin-bottom: max(18px, env(safe-area-inset-bottom));
  }

  .dashboard-title-row {
    flex-direction: column;
    gap: 12px;
  }

  .dashboard-refresh-block {
    align-items: flex-start;
  }

  .dashboard-range-presets {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
  }

  .dashboard-preset-button {
    width: 100%;
    padding: 9px 6px;
    font-size: 13px;
    text-align: center;
  }

  .dashboard-custom-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-custom-range input {
    width: 100%;
    min-width: 0;
  }

  .dashboard-custom-range button,
  .dashboard-custom-range > small {
    grid-column: 1 / -1;
  }

  .dashboard-kpi-grid,
  .dashboard-bottom-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-trend-panel {
    grid-column: auto;
  }

  .dashboard-kpi-card {
    min-height: 126px;
  }

  .dashboard-bar-label b {
    display: none;
  }
}

@media (max-width: 380px) {
  .dashboard-range-presets {
    display: flex;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .dashboard-preset-button {
    flex: 0 0 auto;
    width: auto;
    font-size: 12px;
  }
}
