/* Painel loja UI v2 — board estilo colunas (só is_teste / xd-loja-ui-v2) */

html.xd-loja-ui-v2,
html.xd-loja-ui-v2 body.loja-painel {
  --xd-v2-rail-w: 64px;
  --xd-v2-header-h: 56px;
  --xd-v2-accent: #22c55e;
  --xd-v2-ink: #1a1a1a;
  --xd-v2-muted: #6b7280;
  --xd-v2-bg: #f5f5f5;
  --xd-v2-card: #ffffff;
  --xd-v2-border: #e5e7eb;
  --header-h: 56px;
  --loja-sidebar-w: 64px;
}

html.xd-loja-ui-v2 body.loja-painel {
  overflow: hidden;
  background: var(--xd-v2-bg);
}

/* Main sob o header fixo e à direita do rail */
html.xd-loja-ui-v2 .loja-main.loja-main,
html.xd-loja-ui-v2 main.loja-main {
  margin-left: var(--xd-v2-rail-w) !important;
  padding: 0 !important;
  padding-left: 0 !important;
  height: 100vh !important;
  max-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  overflow: hidden !important;
}

/*
  Faixa branca de fundo — garante ponta a ponta mesmo se o flex falhar.
*/
html.xd-loja-ui-v2 body.loja-painel::before {
  content: "" !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  min-width: 100% !important;
  height: 56px !important;
  background: #fff !important;
  border-bottom: 1px solid var(--xd-v2-border) !important;
  z-index: 3990 !important;
  pointer-events: none !important;
  display: block !important;
}

/*
  Barra branca PRÓPRIA (#xdV2TopBar) — left+right=0 (sem width fixo).
*/
html.xd-loja-ui-v2 #xdV2TopBar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;
  margin: 0 !important;
  padding: 0 16px 0 8px !important;
  box-sizing: border-box !important;
  background: #fff !important;
  border-bottom: 1px solid var(--xd-v2-border) !important;
  box-shadow: none !important;
  z-index: 4000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  overflow: visible !important;
  border-radius: 0 !important;
  transform: none !important;
  pointer-events: auto !important;
}

/* Header legado some — conteúdo migra para #xdV2TopBar */
html.xd-loja-ui-v2 .painel-header-nav.painel-header-nav,
html.xd-loja-ui-v2 body > .painel-header-nav,
html.xd-loja-ui-v2 .loja-main > .painel-header-nav {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  left: -9999px !important;
}

html.xd-loja-ui-v2 .painel-header-nav .loja-nav,
html.xd-loja-ui-v2 .painel-header-nav .btn-sair-loja-top:not(.btn-install-app-top),
html.xd-loja-ui-v2 .painel-header-nav .header-brand-loja {
  display: none !important;
}

/* Brand v2: foto + nome no canto esquerdo */
html.xd-loja-ui-v2 #xdV2Brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
  max-width: min(320px, 48vw) !important;
  margin: 0 !important;
  padding: 0 !important;
  order: 0 !important;
  z-index: 2 !important;
}

html.xd-loja-ui-v2 #xdV2FotoWrap {
  display: block !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  background: #111827 !important;
  border: 1px solid #e5e7eb !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

html.xd-loja-ui-v2 #xdV2Foto {
  display: block !important;
  width: 40px !important;
  height: 40px !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 50% !important;
  background: #111827 !important;
}

html.xd-loja-ui-v2 #xdV2Nome {
  display: inline-block !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 200px !important;
}

html.xd-loja-ui-v2 #xdV2TopBar #xdLojaUiV2ClockHost {
  display: flex !important;
  position: absolute !important;
  top: 50% !important;
  left: 50vw !important;
  transform: translate(-50%, -50%) !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
}

html.xd-loja-ui-v2 #xdV2TopBar .xd-gv {
  display: block !important;
  visibility: visible !important;
  position: relative !important;
  flex: 0 1 190px !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 190px !important;
  margin: 0 !important;
}

html.xd-loja-ui-v2 #xdV2TopBar .xd-gv__toggle {
  min-height: 28px !important;
  background: #f1f7f4 !important;
}

html.xd-loja-ui-v2 #xdV2TopBar #xdLojaUiV2ClockHost #relogioLoja,
html.xd-loja-ui-v2 #xdV2TopBar #relogioLoja {
  color: var(--xd-v2-accent) !important;
  font-family: "JetBrains Mono", Consolas, monospace !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  display: inline-block !important;
}

html.xd-loja-ui-v2 #xdV2TopBar #xdLojaUiV2TopActions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-left: auto !important;
  flex: 0 0 auto !important;
}

html.xd-loja-ui-v2 #xdV2TopBar .loja-status-toggle-header {
  display: inline-flex !important;
  align-items: center !important;
}

html.xd-loja-ui-v2 #xdLojaUiV2TopBrand,
html.xd-loja-ui-v2 #xdLojaUiV2TopFoto,
html.xd-loja-ui-v2 #xdLojaUiV2TopNome {
  display: none !important;
}

html.xd-loja-ui-v2 #btnAbaChat,
html.xd-loja-ui-v2 #btnAbaChat.loja-chat-fab,
html.xd-loja-ui-v2 .loja-chat-fab,
html.xd-loja-ui-v2 body.loja-aba-pedidos #btnAbaChat.loja-chat-fab,
html.xd-loja-ui-v2 body.loja-aba-pedidos-central #btnAbaChat.loja-chat-fab,
html.xd-loja-ui-v2 body.loja-aba-pedidos .loja-chat-fab,
html.xd-loja-ui-v2 body.loja-aba-pedidos-central .loja-chat-fab {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Chat popup: à direita do rail, acima do menu */
html.xd-loja-ui-v2 #aba-chat:not(.is-motoboy-chat-modal),
html.xd-loja-ui-v2 #aba-chat.wa-chat-section:not(.is-motoboy-chat-modal),
html.xd-loja-ui-v2 body.loja-painel #aba-chat.wa-chat-section:not(.is-motoboy-chat-modal) {
  left: calc(var(--xd-v2-rail-w) + 12px) !important;
  right: auto !important;
  bottom: 16px !important;
  top: auto !important;
  width: min(420px, calc(100vw - var(--xd-v2-rail-w) - 28px)) !important;
  z-index: 1250 !important;
}

html.xd-loja-ui-v2 #aba-chat.active:not(.is-motoboy-chat-modal),
html.xd-loja-ui-v2.xd-loja-ui-v2-chat-open #aba-chat.active:not(.is-motoboy-chat-modal),
html.xd-loja-ui-v2 body:not(.loja-aba-pedidos):not(.loja-aba-pedidos-central) #aba-chat.active:not(.is-motoboy-chat-modal) {
  display: flex !important;
  z-index: 1250 !important;
}

html.xd-loja-ui-v2 #aba-chat:not(.active):not(.is-motoboy-chat-modal) {
  display: none !important;
}

/* Rail por cima do chat (menu não fica tampado) */
html.xd-loja-ui-v2 #xdLojaUiV2Rail {
  z-index: 2000 !important;
}

#xdLojaUiV2TopBrand {
  display: none;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

html.xd-loja-ui-v2 #xdLojaUiV2TopBrand {
  display: flex !important;
  position: relative;
  z-index: 2;
  margin-left: 0;
  padding-left: 4px;
  min-width: 120px;
}

#xdLojaUiV2TopBrand .xd-v2-xmark {
  display: none !important;
}

#xdLojaUiV2TopBrand .xd-v2-top-foto {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--xd-v2-border);
  background: #f3f4f6;
  flex-shrink: 0;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#xdLojaUiV2TopBrand .xd-v2-top-meta {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

#xdLojaUiV2TopBrand .xd-v2-top-nome {
  font-size: 14px;
  font-weight: 700;
  color: var(--xd-v2-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

#xdLojaUiV2TopBrand .xd-v2-top-status {
  display: none !important;
}

#xdLojaUiV2TopActions {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

html.xd-loja-ui-v2 #xdLojaUiV2TopActions {
  display: inline-flex;
}

/* Saldo no topo (loja teste) — id saldoCredito usado por atualizarSaldoTela */
#xdV2SaldoChip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d1fae5;
  background: linear-gradient(180deg, #ecfdf5, #d1fae5);
  color: #065f46;
  border-radius: 999px;
  padding: 6px 12px 6px 10px;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 1px 2px rgba(16, 185, 129, 0.12);
}
#xdV2SaldoChip:hover {
  border-color: #6ee7b7;
  background: #d1fae5;
}
#xdV2SaldoChip i {
  color: #059669;
  font-size: 13px;
}
#xdV2SaldoChip .xd-v2-saldo__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}
#xdV2SaldoChip .xd-v2-saldo__meta small {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #047857;
  opacity: 0.85;
}
#xdV2SaldoChip #saldoCredito {
  font-size: 14px;
  font-weight: 800;
  color: #064e3b;
}

#xdLojaUiV2TopActions .loja-status-toggle-header label,
#xdLojaUiV2TopActions #labelStatusLoja {
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 12px !important;
  font-size: 11px !important;
  border-radius: 999px !important;
  gap: 6px !important;
  cursor: pointer !important;
}

#xdLojaUiV2ChatBtn,
#xdLojaUiV2ChatBadge {
  display: none !important;
}

#xdLojaUiV2ClockHost {
  display: none;
  align-items: center;
  justify-content: center;
}

html.xd-loja-ui-v2 #xdLojaUiV2ClockHost {
  display: flex;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

html.xd-loja-ui-v2 #xdLojaUiV2ClockHost #relogioLoja {
  color: var(--xd-v2-accent) !important;
  font-family: "JetBrains Mono", Consolas, monospace !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
}

/* Mapa — vence loja-painel.css (body:not(.loja-aba-operacional) display:none) */
html.xd-loja-ui-v2 body.loja-painel .loja-main > .mapa-wrapper.global-map,
html.xd-loja-ui-v2 body .loja-main > .mapa-wrapper.global-map,
html.xd-loja-ui-v2 .mapa-wrapper.global-map {
  display: block !important;
  position: absolute !important;
  top: var(--xd-v2-header-h) !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  z-index: 1 !important;
  margin: 0 !important;
  pointer-events: auto !important;
}

html.xd-loja-ui-v2.xd-loja-ui-v2-board-open body.loja-painel .loja-main > .mapa-wrapper.global-map,
html.xd-loja-ui-v2.xd-loja-ui-v2-board-open body .loja-main > .mapa-wrapper.global-map,
html.xd-loja-ui-v2.xd-loja-ui-v2-board-open .mapa-wrapper.global-map {
  visibility: hidden !important;
  pointer-events: none !important;
}

html.xd-loja-ui-v2.xd-loja-ui-v2-map-home body.loja-painel .loja-main > .mapa-wrapper.global-map,
html.xd-loja-ui-v2.xd-loja-ui-v2-map-home body .loja-main > .mapa-wrapper.global-map,
html.xd-loja-ui-v2.xd-loja-ui-v2-map-home .mapa-wrapper.global-map {
  display: block !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 5 !important;
}

html.xd-loja-ui-v2 .badge-motos-online {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  left: auto !important;
  right: 12px !important;
  bottom: 12px !important;
  z-index: 500 !important;
  pointer-events: none !important;
}

/* Contador de motoboys permanece visível mesmo com board aberto */
html.xd-loja-ui-v2.xd-loja-ui-v2-board-open .badge-motos-online {
  position: fixed !important;
  visibility: visible !important;
  opacity: 1 !important;
  right: 16px !important;
  bottom: 16px !important;
  z-index: 1200 !important;
}

html.xd-loja-ui-v2 .loja-main > .painel-section {
  position: absolute !important;
  top: var(--xd-v2-header-h) !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 40 !important;
  margin: 0 !important;
  background: rgba(248, 250, 252, 0.98) !important;
  overflow: auto !important;
  display: none !important;
}

html.xd-loja-ui-v2 .loja-main > .painel-section.active {
  display: block !important;
}

html.xd-loja-ui-v2 #aba-operacional.active,
html.xd-loja-ui-v2 #aba-pedidos.active {
  display: none !important;
}

/* Gestor de Pedidos (kanban) — visível na loja teste; board Aceitar removido */
html.xd-loja-ui-v2 #aba-montar-entrega.active,
html.xd-loja-ui-v2-gestor-host #aba-montar-entrega.painel-section.active {
  display: flex !important;
  flex-direction: column !important;
}

html.xd-loja-ui-v2.xd-loja-ui-v2-map-home #aba-operacional.active {
  display: none !important;
}

/* Rail: começa ABAIXO da barra branca e vai até o fundo */
#xdLojaUiV2Rail {
  position: fixed !important;
  top: var(--xd-v2-header-h) !important;
  left: 0 !important;
  right: auto !important;
  bottom: 0 !important;
  width: var(--xd-v2-rail-w) !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  z-index: 2000 !important;
  display: none;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  background: #111827;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
  padding: 0 !important;
  margin: 0 !important;
  transform: none !important;
}

html.xd-loja-ui-v2 #xdLojaUiV2Rail {
  display: flex !important;
}

#xdLojaUiV2Rail .xd-v2-rail__scroll {
  flex: 1 1 auto;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 0;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge legado */
}

#xdLojaUiV2Rail .xd-v2-rail__scroll::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
  background: transparent !important;
}

#xdLojaUiV2Rail .xd-v2-rail__foot {
  margin-top: auto !important;
  flex: 0 0 auto !important;
  padding: 10px 8px calc(16px + env(safe-area-inset-bottom, 0px));
  width: 100%;
  display: flex;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #111827;
}

#xdLojaUiV2Rail .xd-v2-rail__top,
#xdLojaUiV2Rail .xd-v2-rail__group,
#xdLojaUiV2Rail .xd-v2-rail__toggle,
#xdLojaUiV2Rail .xd-v2-rail__loja-meta,
#xdLojaUiV2Rail .xd-v2-rail__brand {
  display: none !important;
}

#xdLojaUiV2Rail .xd-v2-rail__scroll {
  flex: 1 1 auto;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#xdLojaUiV2Rail,
#xdLojaUiV2Rail * {
  scrollbar-width: none;
}

#xdLojaUiV2Rail::-webkit-scrollbar,
#xdLojaUiV2Rail *::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

#xdLojaUiV2Rail .xd-v2-rail__btn {
  position: relative;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  transition: width .18s ease, padding .18s ease, justify-content .18s ease;
  white-space: nowrap;
  overflow: hidden;
}

#xdLojaUiV2Rail .xd-v2-rail__btn span.label {
  display: none !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

#xdLojaUiV2Rail .xd-v2-em-breve {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  font-size: 10px;
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
}

/* Chip “em breve” visível mesmo com o menu fechado (só ícones) */
#xdLojaUiV2Rail .xd-v2-rail__btn--em-breve {
  overflow: visible;
}

#xdLojaUiV2Rail .xd-v2-rail__btn--em-breve::after {
  content: 'em breve';
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  padding: 0 4px;
  border-radius: 4px;
  background: #92400e;
  color: #fef3c7;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.35;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}

html.xd-loja-ui-v2 #xdLojaUiV2Rail:hover .xd-v2-rail__btn--em-breve::after,
html.xd-loja-ui-v2.xd-loja-ui-v2-rail-open #xdLojaUiV2Rail .xd-v2-rail__btn--em-breve::after {
  display: none;
}

#xdLojaUiV2Rail .xd-v2-rail__btn i {
  width: auto;
  font-size: 16px;
  flex: 0 0 auto;
}

/* Menu lateral expande no hover (e com classe rail-open) */
html.xd-loja-ui-v2 #xdLojaUiV2Rail:hover,
html.xd-loja-ui-v2.xd-loja-ui-v2-rail-open #xdLojaUiV2Rail {
  width: 212px !important;
  box-shadow: 8px 0 28px rgba(15, 23, 42, 0.28);
}

html.xd-loja-ui-v2 #xdLojaUiV2Rail:hover .xd-v2-rail__scroll,
html.xd-loja-ui-v2.xd-loja-ui-v2-rail-open #xdLojaUiV2Rail .xd-v2-rail__scroll,
html.xd-loja-ui-v2 #xdLojaUiV2Rail:hover .xd-v2-rail__foot,
html.xd-loja-ui-v2.xd-loja-ui-v2-rail-open #xdLojaUiV2Rail .xd-v2-rail__foot {
  align-items: stretch;
  padding-left: 10px;
  padding-right: 10px;
}

html.xd-loja-ui-v2 #xdLojaUiV2Rail:hover .xd-v2-rail__btn,
html.xd-loja-ui-v2.xd-loja-ui-v2-rail-open #xdLojaUiV2Rail .xd-v2-rail__btn {
  width: 100%;
  justify-content: flex-start;
  padding: 0 12px;
  gap: 12px;
}

html.xd-loja-ui-v2 #xdLojaUiV2Rail:hover .xd-v2-rail__btn span.label,
html.xd-loja-ui-v2.xd-loja-ui-v2-rail-open #xdLojaUiV2Rail .xd-v2-rail__btn span.label {
  display: inline !important;
}

html.xd-loja-ui-v2 #xdLojaUiV2Rail:hover .xd-v2-rail__badge,
html.xd-loja-ui-v2.xd-loja-ui-v2-rail-open #xdLojaUiV2Rail .xd-v2-rail__badge {
  right: 10px;
  left: auto;
  top: 50%;
  transform: translateY(-50%);
}

#xdLojaUiV2Rail .xd-v2-rail__btn:hover,
#xdLojaUiV2Rail .xd-v2-rail__btn.is-active {
  background: rgba(34, 197, 94, 0.16);
  color: #bbf7d0;
}

#xdLojaUiV2Rail .xd-v2-rail__btn--novo {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #052e16;
  margin-bottom: 4px;
}

#xdLojaUiV2Rail .xd-v2-rail__badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #111827, 0 0 10px rgba(239, 68, 68, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  z-index: 6;
  pointer-events: none;
}

#xdLojaUiV2Rail .xd-v2-rail__badge.is-on {
  display: inline-flex !important;
  animation: xd-chat-badge-pulse 1.4s ease-in-out infinite;
}

@keyframes xd-chat-badge-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 2px #111827, 0 0 8px rgba(239, 68, 68, 0.45); }
  50% { transform: scale(1.12); box-shadow: 0 0 0 2px #111827, 0 0 14px rgba(239, 68, 68, 0.75); }
}

@media (prefers-reduced-motion: reduce) {
  #xdLojaUiV2Rail .xd-v2-rail__badge.is-on {
    animation: none !important;
  }
}

#xdLojaUiV2Rail .xd-v2-rail__btn--sair {
  color: #fca5a5;
}

/* Board de pedidos */
/* Board acima das seções (Perfil/Financeiro) para Pedidos voltar a abrir */
#xdLojaUiV2Board {
  display: none;
  position: absolute;
  top: var(--xd-v2-header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: var(--xd-v2-bg);
  padding: 12px 14px 14px;
  overflow: auto;
}

html.xd-loja-ui-v2.xd-loja-ui-v2-board-open #xdLojaUiV2Board {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#xdLojaUiV2Board .xd-v2-board__toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

#xdLojaUiV2Board .xd-v2-board__search {
  flex: 0 1 280px;
  height: 40px;
  border: 1px solid var(--xd-v2-border);
  border-radius: 10px;
  padding: 0 12px 0 36px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E") 12px center no-repeat;
  font-size: 14px;
  color: var(--xd-v2-ink);
}

#xdLojaUiV2Board .xd-v2-board__toolbar-spacer {
  flex: 1 1 auto;
}

#xdLojaUiV2Board .xd-v2-board__refresh {
  flex: 0 0 auto;
  height: 36px;
  min-width: 36px;
  padding: 0 12px;
  border: 1px solid var(--xd-v2-border);
  border-radius: 10px;
  background: #fff;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#xdLojaUiV2Board .xd-v2-board__refresh:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

#xdLojaUiV2Board .xd-v2-board__refresh.is-busy {
  opacity: 0.65;
  pointer-events: none;
}

#xdLojaUiV2Board .xd-v2-auto-aceite {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #bbf7d0;
  background: #ecfdf5;
  color: #166534;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  margin-left: auto;
  flex: 0 0 auto;
  white-space: nowrap;
}

#xdLojaUiV2Board .xd-v2-auto-aceite input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #16a34a;
}

#xdLojaUiV2Board .xd-v2-auto-aceite i {
  font-size: 11px;
}

#xdLojaUiV2Board .xd-v2-auto-aceite.is-on {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

#xdLojaUiV2Board .xd-v2-board__grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
}

#xdLojaUiV2Board .xd-v2-board__right {
  display: contents;
}

#xdLojaUiV2Board .xd-v2-col {
  background: #fff;
  border: 1px solid var(--xd-v2-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease;
}

#xdLojaUiV2Board .xd-v2-col.is-collapsed {
  flex: 0 0 auto !important;
  align-self: start;
  max-height: 48px !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

#xdLojaUiV2Board .xd-v2-col.is-collapsed .xd-v2-col__body {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

#xdLojaUiV2Board .xd-v2-col:not(.is-collapsed) .xd-v2-col__body {
  flex: 1 1 auto;
  min-height: 220px;
}

#xdLojaUiV2Board .xd-v2-col__empty {
  width: 100%;
  flex: 1 1 100%;
  min-height: 200px;
  height: 100%;
  padding: 18px 12px;
  text-align: center;
  color: var(--xd-v2-muted);
  font-size: 12px;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
}

#xdLojaUiV2Board .xd-v2-col--preparo {
  min-height: 0;
}

#xdLojaUiV2Board .xd-v2-col__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 6px;
  border-bottom: 0;
  gap: 8px;
}

#xdLojaUiV2Board .xd-v2-col__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--xd-v2-ink);
}

#xdLojaUiV2Board .xd-v2-col__count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #374151;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#xdLojaUiV2Board .xd-v2-col__collapse {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: #f3f4f6;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  pointer-events: auto;
  z-index: 2;
  position: relative;
}

#xdLojaUiV2Board .xd-v2-col__collapse i {
  pointer-events: none;
  transition: transform 0.18s ease;
}

#xdLojaUiV2Board .xd-v2-col__collapse:hover {
  background: #e5e7eb;
  color: #111827;
}

#xdLojaUiV2Board .xd-v2-col.is-collapsed .xd-v2-col__collapse i {
  transform: rotate(180deg);
}

#xdLojaUiV2Board .xd-v2-col__body {
  overflow: auto;
  padding: 8px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
  align-items: flex-start;
}

/* Empty: body em coluna p/ X no centro vertical da aba */
#xdLojaUiV2Board .xd-v2-col__body:has(.xd-v2-col__empty) {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  align-content: stretch;
  justify-content: center;
}

#xdLojaUiV2Board .xd-v2-col__empty-x {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #111827;
  color: #22c55e;
  font-weight: 900;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: xdV2EmptyX 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

#xdLojaUiV2Board .xd-v2-col__empty p {
  margin: 0;
  max-width: 180px;
}

@keyframes xdV2EmptyX {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* Micro chips — pedido / cliente / status */
#xdLojaUiV2Board .xd-v2-chip-wrap {
  width: 148px;
  min-width: 148px;
  max-width: 148px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#xdLojaUiV2Board .xd-v2-chip {
  position: relative;
  width: 148px;
  min-width: 148px;
  max-width: 148px;
  min-height: 78px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 8px 7px;
  background: #fff;
  color: #111827;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

#xdLojaUiV2Board .xd-v2-chip.has-chat-unread {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, .14);
}

#xdLojaUiV2Board .xd-v2-chip .xd-chat-pedido-unread {
  position: absolute;
  top: -7px;
  right: -7px;
  margin: 0;
  box-shadow: 0 2px 6px rgba(127, 29, 29, .3);
}

#xdLojaUiV2Board .xd-v2-chip:hover,
#xdLojaUiV2Board .xd-v2-chip-wrap:hover .xd-v2-chip,
#xdLojaUiV2Board .xd-v2-chip-wrap:focus-within .xd-v2-chip {
  border-color: #cbd5e1;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.1);
}

#xdLojaUiV2Board .xd-v2-chip__quick {
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

#xdLojaUiV2Board .xd-v2-chip-wrap:hover .xd-v2-chip__quick,
#xdLojaUiV2Board .xd-v2-chip-wrap:focus-within .xd-v2-chip__quick {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#xdLojaUiV2Board .xd-v2-chip__quick-btn {
  width: 100%;
  min-height: 30px;
  border: 0;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

#xdLojaUiV2Board .xd-v2-chip__quick-btn:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
}

#xdLojaUiV2Board .xd-v2-chip__quick-btn--pronto {
  background: #22c55e;
  color: #052e16;
}

#xdLojaUiV2Board .xd-v2-chip__quick-btn--despachar {
  background: #3b82f6;
  color: #fff;
}

#xdLojaUiV2Board .xd-v2-chip__line {
  display: block;
  font-size: 11px;
  line-height: 1.25;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#xdLojaUiV2Board .xd-v2-chip__line em {
  font-style: normal;
  font-weight: 500;
  color: #94a3b8;
}

#xdLojaUiV2Board .xd-v2-chip__line strong {
  font-weight: 800;
  color: #0f172a;
}

#xdLojaUiV2Board .xd-v2-chip__status--red { color: #ef4444 !important; }
#xdLojaUiV2Board .xd-v2-chip__status--yellow { color: #d97706 !important; }
#xdLojaUiV2Board .xd-v2-chip__status--green { color: #16a34a !important; }
#xdLojaUiV2Board .xd-v2-chip__status--blue { color: #2563eb !important; }

#xdLojaUiV2Board .xd-v2-chip--red { border-color: #fecaca; }
#xdLojaUiV2Board .xd-v2-chip--yellow { border-color: #fde68a; }
#xdLojaUiV2Board .xd-v2-chip--green { border-color: #bbf7d0; }
#xdLojaUiV2Board .xd-v2-chip--blue { border-color: #bfdbfe; }

/* Chat aba no v2 — regras consolidadas acima */

#xdLojaUiV2Board .xd-v2-col.is-focus {
  box-shadow: inset 0 0 0 2px rgba(34, 197, 94, 0.35);
  background: #ecfdf5;
}

/* Detalhe ao clicar (1º print) */
#xdLojaUiV2ChipDetail {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 4500;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.45);
}
#xdLojaUiV2ChipDetail.is-open { display: flex; }
#xdLojaUiV2ChipDetail .xd-v2-detail {
  width: min(360px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.35);
}
#xdLojaUiV2ChipDetail .xd-v2-detail__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
#xdLojaUiV2ChipDetail .xd-v2-detail__moto {
  font-size: 13px;
  font-weight: 700;
  color: #b91c1c;
}
#xdLojaUiV2ChipDetail .xd-v2-detail__moto.is-ok { color: #15803d; }
#xdLojaUiV2ChipDetail .xd-v2-detail__close {
  border: 0;
  background: #f3f4f6;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  cursor: pointer;
}
#xdLojaUiV2ChipDetail .xd-v2-detail__cod {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  color: #111827;
}
#xdLojaUiV2ChipDetail .xd-v2-detail__cli {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
}
#xdLojaUiV2ChipDetail .xd-v2-detail__meta {
  margin-top: 10px;
  font-size: 12px;
  color: #64748b;
  display: grid;
  gap: 4px;
}
#xdLojaUiV2ChipDetail .xd-v2-detail__codigo-entrega,
#xdLojaUiV2ChipDetail .xd-v2-detail__complemento {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid #e8edf2;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  overflow-wrap: anywhere;
}
#xdLojaUiV2ChipDetail .xd-v2-detail__complemento strong {
  color: #64748b;
  font-size: 10px;
  text-transform: uppercase;
}
#xdLojaUiV2ChipDetail .xd-v2-detail__retorno {
  min-width: 0;
}
#xdLojaUiV2ChipDetail .xd-gestor-painel__retorno {
  margin: 4px 0;
  padding: 7px 8px;
  border-radius: 8px;
}
#xdLojaUiV2ChipDetail .xd-gestor-painel__retorno-mensagem {
  gap: 6px;
}
#xdLojaUiV2ChipDetail .xd-gestor-painel__retorno-mensagem h4 {
  margin-bottom: 3px;
  font-size: 10px;
}
#xdLojaUiV2ChipDetail .xd-gestor-painel__retorno-mensagem p {
  margin-top: 2px;
  font-size: 9px;
}
#xdLojaUiV2ChipDetail .xd-gestor-painel__retorno-acoes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin-top: 6px;
}
#xdLojaUiV2ChipDetail .xd-gestor-painel__retorno-acoes > button {
  min-height: 32px;
  padding: 5px 6px;
  font-size: 10px;
}
#xdLojaUiV2ChipDetail .xd-gestor-painel__retorno-acoes > button:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
#xdLojaUiV2ChipDetail .xd-v2-detail__actions {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}
#xdLojaUiV2ChipDetail .xd-v2-detail__actions button {
  border: 0;
  border-radius: 10px;
  min-height: 42px;
  font-weight: 800;
  cursor: pointer;
}
#xdLojaUiV2ChipDetail .xd-v2-detail__btn-red { background: #ef4444; color: #fff; }
#xdLojaUiV2ChipDetail .xd-v2-detail__btn-yellow { background: #f59e0b; color: #111827; }
#xdLojaUiV2ChipDetail .xd-v2-detail__btn-green { background: #22c55e; color: #052e16; }
#xdLojaUiV2ChipDetail .xd-v2-detail__btn-blue { background: #3b82f6; color: #fff; }
#xdLojaUiV2ChipDetail .xd-v2-detail__btn-purple { background: #8b5cf6; color: #fff; }
#xdLojaUiV2ChipDetail .xd-v2-detail__btn-chat { background: #dbeafe; color: #1d4ed8; }
#xdLojaUiV2ChipDetail .xd-v2-detail__btn-motoboy { background: #e0e7ff; color: #3730a3; }
#xdLojaUiV2ChipDetail .xd-v2-detail__btn-cancel {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

#xdLojaUiV2ChipDetail .xd-moto-id,
#xdGestorPainelAba .xd-moto-id {
  margin: 8px 0 0;
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 8px 9px;
  border-radius: 9px;
  background: #f8fafc;
  border: 1px solid #e8edf2;
}

#xdLojaUiV2ChipDetail .xd-moto-id.is-pulse,
#xdGestorPainelAba .xd-moto-id.is-pulse {
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.35);
}

#xdLojaUiV2ChipDetail .xd-moto-id__foto-wrap,
#xdGestorPainelAba .xd-moto-id__foto-wrap {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  background: #e2e8f0;
  flex: 0 0 40px !important;
  align-self: center !important;
  position: relative !important;
  display: block !important;
  aspect-ratio: 1 / 1 !important;
  box-sizing: border-box !important;
  border: 1px solid #d1dbe5 !important;
  box-shadow: none !important;
}

#xdLojaUiV2ChipDetail .xd-moto-id__foto,
#xdGestorPainelAba .xd-moto-id__foto {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 50% !important;
  aspect-ratio: 1 / 1 !important;
  display: block !important;
}

#xdLojaUiV2ChipDetail .xd-moto-id__foto.is-hidden,
#xdGestorPainelAba .xd-moto-id__foto.is-hidden {
  display: none !important;
}

#xdLojaUiV2ChipDetail .xd-moto-id__foto-ph,
#xdGestorPainelAba .xd-moto-id__foto-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #64748b;
  font-size: 19px;
}

#xdLojaUiV2ChipDetail .xd-moto-id__foto,
#xdGestorPainelAba .xd-moto-id__foto {
  z-index: 1;
}

#xdLojaUiV2ChipDetail .xd-moto-id__txt,
#xdGestorPainelAba .xd-moto-id__txt {
  min-width: 0;
  display: grid;
  gap: 2px;
}

#xdLojaUiV2ChipDetail .xd-moto-id__txt > span,
#xdGestorPainelAba .xd-moto-id__txt > span {
  font-size: 9px;
  color: #64748b;
}

#xdLojaUiV2ChipDetail .xd-moto-id__txt > strong,
#xdGestorPainelAba .xd-moto-id__txt > strong {
  overflow-wrap: anywhere;
  font-size: 12px;
  color: #0f172a;
}

#xdLojaUiV2ChipDetail .xd-moto-id__metas,
#xdGestorPainelAba .xd-moto-id__metas {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  margin-top: 1px;
  font-size: 10px;
  color: #475569;
}

#xdGestorPainelAba .xd-gestor-painel__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin-top: 6px;
}

#xdGestorPainelAba .xd-gestor-drawer__field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
  padding: 5px 8px;
  border: 1px solid #e8edf2;
  border-radius: 8px;
  background: #f8fafc;
}

#xdGestorPainelAba .xd-gestor-drawer__field > span {
  color: #64748b;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .045em;
  text-transform: uppercase;
}

#xdGestorPainelAba .xd-gestor-drawer__field > strong {
  min-width: 0;
  color: #1e293b;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

#xdGestorPainelAba .xd-gestor-drawer__field--full {
  grid-column: 1 / -1;
}

#xdGestorPainelAba .xd-gestor-painel__endereco,
#xdGestorPainelAba .xd-gestor-painel__endereco--retirada {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0;
  padding: 9px 10px;
  border: 1px solid #ccebd8;
  border-radius: 8px;
  background: #effaf3;
  color: #12643a;
  font-size: 10px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

#xdGestorPainelAba .xd-gestor-painel__endereco > i {
  flex: 0 0 auto;
  margin-top: 2px;
}

#xdGestorPainelAba .xd-gestor-painel__endereco strong {
  margin-right: 3px;
}

#xdGestorPainelAba .xd-gestor-painel__obs-box {
  margin-top: 8px;
  padding: 8px 9px;
  border: 1px solid #e8edf2;
  border-radius: 8px;
  background: #fff;
}

#xdGestorPainelAba .xd-gestor-painel__retorno {
  margin: 6px 0;
  padding: 7px 8px;
  border-radius: 8px;
}

#xdGestorPainelAba .xd-gestor-painel__retorno-mensagem {
  gap: 6px;
}

#xdGestorPainelAba .xd-gestor-painel__retorno-mensagem h4 {
  margin-bottom: 3px;
  font-size: 10px;
}

#xdGestorPainelAba .xd-gestor-painel__retorno-mensagem p {
  margin-top: 2px;
  font-size: 9px;
}

#xdGestorPainelAba .xd-gestor-painel__retorno-acoes {
  margin-top: 6px;
  gap: 6px;
}

#xdGestorPainelAba .xd-gestor-painel__retorno-acoes > button {
  min-height: 32px !important;
  padding: 5px 7px !important;
  font-size: 10px !important;
}

#xdGestorPainelAba .xd-gestor-painel__retorno-acoes > button:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

#xdGestorPainelAba .xd-gestor-painel__obs-box h4 {
  margin: 0 0 5px;
  color: #475569;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

#xdGestorPainelAba .xd-gestor-painel__obs-box p {
  margin: 0;
  color: #1e293b;
  font-size: 10px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

#xdGestorPainelAba .xd-gestor-painel-aba__head {
  position: relative;
  min-height: 0;
  padding: 7px 32px 6px 9px !important;
  border-bottom: 1px solid #e8edf2;
}

#xdGestorPainelAba .xd-gestor-painel-aba__head-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 6px;
  min-width: 0;
}

#xdGestorPainelAba .xd-gestor-painel-aba__meta {
  grid-column: 1;
  grid-row: 1;
  width: max-content;
  padding: 3px 6px;
  border-radius: 5px;
  font-size: 9px;
  line-height: 1;
}

#xdGestorPainelAba .xd-gestor-painel-aba__codigo {
  grid-column: 2 / 4;
  grid-row: 1;
  min-width: 0;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

#xdGestorPainelAba .xd-gestor-painel-aba__head-grid--sem-meta .xd-gestor-painel-aba__codigo {
  grid-column: 1 / 3;
}

#xdGestorPainelAba .xd-gestor-painel-aba__cliente {
  grid-column: 1 / 3;
  grid-row: 2;
  min-width: 0;
  font-size: 10px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#xdGestorPainelAba .xd-gestor-painel-aba__hora {
  grid-column: 3;
  grid-row: 2;
  justify-self: end;
  font-size: 9px;
  line-height: 1.2;
}

#xdGestorPainelAba .xd-gestor-painel-aba__fechar {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 21px;
  height: 21px;
  min-width: 21px;
  padding: 0;
  border-radius: 6px;
}

#xdGestorPainelAba .xd-gestor-modal-dialog__body {
  padding: 7px 8px 9px;
}

#xdGestorPainelAba.xd-gestor-dock.is-open {
  overflow: hidden;
}

#xdGestorPainelAba .xd-gifood-status-alert {
  min-height: 0;
  gap: 6px;
  margin: 0 0 6px;
  padding: 6px 8px;
  border-radius: 7px;
  font-size: 10px;
  line-height: 1.25;
}

#xdGestorPainelAba .xd-gestor-painel__itens-wrap {
  margin-top: 9px;
}

#xdGestorPainelAba .xd-gestor-painel__itens-titulo {
  margin: 0 0 5px;
  color: #334155;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

#xdGestorPainelAba .xd-gestor-painel__itens {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 7px 8px;
  border: 1px solid #e5eaf0;
  border-radius: 8px;
  background: #fff;
  list-style: none;
}

#xdGestorPainelAba .xd-gestor-painel__itens li {
  color: #475569;
  font-size: 10px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

#xdGestorPainelAba .xd-gestor-painel__itens li > span {
  color: #64748b;
  font-weight: 700;
}

#xdGestorPainelAba .xd-gestor-seg--delivery {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 8px 9px;
  border: 1px solid #ccebd8;
  border-radius: 8px;
  background: #effaf3;
  color: #12643a;
  font-size: 10px;
  line-height: 1.25;
}

#xdGestorPainelAba .xd-gestor-modal-dialog__foot {
  padding: 8px 9px;
  border-top: 1px solid #e8edf2;
}

#xdGestorPainelAba .xd-gestor-painel__acoes {
  display: flex;
  gap: 6px;
  width: 100%;
}

#xdGestorPainelAba .xd-gestor-painel__acoes > button,
#xdGestorPainelAba .xd-gestor-painel__acoes .xd-gestor-print-wrap {
  flex: 1 1 0;
  min-width: 0;
}

#xdGestorPainelAba .xd-gestor-painel__acoes > button {
  min-height: 34px;
  justify-content: center;
  border-radius: 8px;
  font-size: 10px;
}

#xdGestorPainelAba .xd-gestor-painel__acoes .xd-gestor-print-wrap > button {
  width: 100%;
  min-height: 34px;
  justify-content: center;
  border-radius: 8px;
  font-size: 10px;
}

@media (max-width: 420px) {
  #xdGestorPainelAba .xd-gestor-painel__grid {
    gap: 4px;
  }

  #xdGestorPainelAba .xd-gestor-drawer__field {
    padding: 8px 9px;
  }
}

@media (max-width: 1100px) {
  #xdLojaUiV2Board .xd-v2-board__grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }
}
@media (max-width: 760px) {
  #xdLojaUiV2Board .xd-v2-board__grid {
    grid-template-columns: 1fr 1fr;
  }

  html.xd-loja-ui-v2 #xdV2Brand {
    max-width: min(230px, 38vw) !important;
  }

  html.xd-loja-ui-v2 #xdV2TopBar .xd-gv {
    flex-basis: 150px !important;
    max-width: 150px !important;
  }

  html.xd-loja-ui-v2 #xdV2TopBar .xd-gv__toggle-count {
    display: none !important;
  }

  html.xd-loja-ui-v2 #xdV2TopBar #xdLojaUiV2ClockHost #relogioLoja {
    font-size: 13px !important;
    letter-spacing: 0 !important;
  }
}

@media (max-width: 520px) {
  html.xd-loja-ui-v2 #xdV2Brand {
    max-width: min(165px, 38vw) !important;
    gap: 6px !important;
  }

  html.xd-loja-ui-v2 #xdV2FotoWrap,
  html.xd-loja-ui-v2 #xdV2Foto {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
  }

  html.xd-loja-ui-v2 #xdV2TopBar .xd-gv {
    flex: 0 0 42px !important;
    max-width: 42px !important;
  }

  html.xd-loja-ui-v2 #xdV2TopBar .xd-gv__toggle {
    width: 42px !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 3px !important;
  }

  html.xd-loja-ui-v2 #xdV2TopBar .xd-gv__toggle-title,
  html.xd-loja-ui-v2 #xdV2TopBar .xd-gv__toggle-count {
    display: none !important;
  }

  html.xd-loja-ui-v2 #xdV2TopBar .xd-gv__panel {
    left: 0 !important;
    width: min(320px, calc(100vw - 20px)) !important;
  }
}

/* Modal aceite */
#xdLojaUiV2AcceptModal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 6, 23, 0.55);
}

#xdLojaUiV2AcceptModal.is-open { display: flex; }

#xdLojaUiV2AcceptModal .xd-v2-accept {
  width: min(440px, calc(100vw - 40px));
  max-height: min(90vh, 640px);
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.35);
}

#xdLojaUiV2AcceptModal .xd-v2-accept__head {
  padding: 18px 20px 10px;
  display: flex;
  gap: 12px;
}

#xdLojaUiV2AcceptModal .xd-v2-accept__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #052e16;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#xdLojaUiV2AcceptModal .xd-v2-accept__head h3 { margin: 0; font-size: 18px; }
#xdLojaUiV2AcceptModal .xd-v2-accept__head p { margin: 4px 0 0; color: #64748b; font-size: 13px; }
#xdLojaUiV2AcceptModal .xd-v2-accept__body { padding: 8px 20px 16px; display: grid; gap: 8px; font-size: 14px; }
#xdLojaUiV2AcceptModal .xd-v2-accept__row { display: flex; justify-content: space-between; gap: 12px; }
#xdLojaUiV2AcceptModal .xd-v2-accept__origem {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 700;
  width: fit-content;
}
#xdLojaUiV2AcceptModal .xd-v2-accept__foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 20px 20px;
}
#xdLojaUiV2AcceptModal .xd-v2-accept__foot button {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 0;
  border-radius: 12px;
  min-height: 46px;
  font-weight: 800;
  cursor: pointer;
}
#xdLojaUiV2AcceptModal .xd-v2-accept__reject { background: #fee2e2; color: #b91c1c; }
#xdLojaUiV2AcceptModal .xd-v2-accept__accept { background: linear-gradient(135deg, #22c55e, #16a34a); color: #052e16; }

#xdLojaUiV2MapChips { display: none !important; }
#xdLojaUiV2DrawerTitle { display: none !important; }


@media (max-width: 980px) {
  #xdLojaUiV2Board .xd-v2-board__grid {
    grid-template-columns: 1fr;
  }
  #xdLojaUiV2Board .xd-v2-col--preparo {
    min-height: 280px;
  }
}

/* Loja teste: esconde board Aceitar legado; Gestor clássico + dock lateral */
html.xd-loja-ui-v2 #xdLojaUiV2Board,
html.xd-loja-ui-v2-gestor-host #xdLojaUiV2Board {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
html.xd-loja-ui-v2-gestor-host #aba-montar-entrega.painel-section.active {
  display: flex !important;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
html.xd-loja-ui-v2-gestor-host #aba-montar-entrega .xd-gestor-premium-board {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
html.xd-loja-ui-v2-gestor-host #aba-montar-entrega .xd-gestor-body,
html.xd-gestor-dock-open #aba-montar-entrega .xd-gestor-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 0;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}
html.xd-gestor-oficial.xd-gestor-dock-open #aba-montar-entrega .xd-gestor-body,
html.xd-loja-ui-v2-gestor-host.xd-gestor-oficial.xd-gestor-dock-open #aba-montar-entrega .xd-gestor-body {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px) !important;
  gap: 8px;
}
html.xd-gestor-dock-open #xdGestorBoard {
  min-width: 0;
}
#xdGestorPainelAba.xd-gestor-dock {
  position: relative;
  z-index: 5;
  background: #fff;
  border-left: 1px solid #e2e8f0;
  box-shadow: -8px 0 24px rgba(15, 23, 42, 0.06);
  overflow: auto;
  max-height: none;
  height: 100%;
  min-height: 0;
}
#xdGestorPainelAba.xd-gestor-dock[hidden] {
  display: none !important;
}
#xdGestorPainelAba.xd-gestor-dock.is-open {
  display: block;
}
#xdGestorPainelAba.xd-gestor-dock .xd-gestor-modal-dialog__inner {
  display: flex;
  flex-direction: column;
  border-radius: 0;
  box-shadow: none;
  height: 100%;
  min-height: 0;
}
#xdGestorPainelAba.xd-gestor-dock .xd-gestor-modal-dialog__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}
#xdGestorPainelAba.xd-gestor-dock .xd-gestor-modal-dialog__foot {
  flex: 0 0 auto;
}
@media (max-width: 900px) {
  html.xd-loja-ui-v2-gestor-host #aba-montar-entrega .xd-gestor-body,
  html.xd-gestor-dock-open #aba-montar-entrega .xd-gestor-body {
    grid-template-columns: 1fr;
  }
  #xdGestorPainelAba.xd-gestor-dock.is-open {
    position: fixed;
    inset: 56px 0 0 auto;
    width: min(100vw, 420px);
    z-index: 80;
    border-left: 1px solid #e2e8f0;
  }
}

html.xd-loja-ui-v2.xd-loja-home-open body .loja-main > :not(#xdLojaHome) {
  display: none !important;
}

#xdLojaHome {
  display: none;
}

html.xd-loja-ui-v2.xd-loja-home-open #xdLojaHome {
  display: block !important;
  position: absolute !important;
  inset: var(--xd-v2-header-h, 56px) 0 0 !important;
  z-index: 45 !important;
  overflow: auto !important;
  box-sizing: border-box !important;
  padding: clamp(20px, 3vw, 40px) clamp(16px, 3vw, 40px) 40px !important;
  background: #f5f7fa !important;
  color: #17212b !important;
  font-family: inherit !important;
}

#xdLojaClientes[hidden] {
  display: none !important;
}

html.xd-loja-ui-v2 #xdLojaClientes:not([hidden]) {
  display: block !important;
  position: absolute !important;
  inset: var(--xd-v2-header-h, 56px) 0 0 !important;
  z-index: 45 !important;
  overflow: auto !important;
  box-sizing: border-box !important;
  padding: clamp(20px, 3vw, 40px) clamp(16px, 3vw, 40px) 40px !important;
  background: #f5f7fa !important;
  color: #17212b !important;
  font-family: inherit !important;
}

.xd-loja-clientes__wrap {
  max-width: 1180px;
  margin: 0 auto;
}

.xd-loja-clientes__header,
.xd-loja-clientes__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.xd-loja-clientes__header {
  margin-bottom: 24px;
}

.xd-loja-clientes__header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.xd-loja-clientes__eyebrow {
  color: #0c8b59;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
}

.xd-loja-clientes__header h1 {
  margin: 5px 0 0;
  color: #17212b;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 850;
  letter-spacing: -.035em;
}

.xd-loja-clientes__header p {
  margin: 6px 0 0;
  color: #687789;
  font-size: 14px;
}

.xd-loja-clientes__refresh,
.xd-loja-clientes__contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #dce5eb;
  border-radius: 9px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.xd-loja-clientes__refresh {
  min-height: 40px;
  padding: 0 14px;
  cursor: pointer;
}

.xd-loja-clientes__refresh:disabled {
  cursor: wait;
  opacity: .6;
}

.xd-loja-clientes__toolbar {
  margin-bottom: 14px;
}

.xd-loja-clientes__search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 520px);
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid #dfe6ec;
  border-radius: 10px;
  background: #fff;
  color: #778596;
}

.xd-loja-clientes__search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #17212b;
  font: inherit;
  font-size: 14px;
}

.xd-loja-clientes__toolbar > strong {
  color: #64748b;
  font-size: 13px;
}

.xd-loja-clientes__status {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #ccebd8;
  border-radius: 8px;
  background: #effaf3;
  color: #12643a;
  font-size: 13px;
}

.xd-loja-clientes__status.is-error {
  border-color: #fecaca;
  background: #fff1f2;
  color: #b91c1c;
}

.xd-loja-clientes__list {
  display: grid;
  gap: 10px;
}

.xd-loja-clientes__card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid #e4e9ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .035);
}

.xd-loja-clientes__avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: #e8f7ef;
  color: #0c8b59;
  font-size: 17px;
}

.xd-loja-clientes__identity {
  min-width: 0;
}

.xd-loja-clientes__identity h2 {
  margin: 0;
  overflow: hidden;
  color: #17212b;
  font-size: 15px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xd-loja-clientes__identity > span {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 13px;
}

.xd-loja-clientes__identity p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 12px;
}

.xd-loja-clientes__identity p i {
  margin-right: 4px;
  color: #0c8b59;
}

.xd-loja-clientes__orders {
  display: grid;
  justify-items: center;
  min-width: 76px;
  color: #64748b;
  font-size: 11px;
}

.xd-loja-clientes__orders strong {
  color: #17212b;
  font-size: 17px;
}

.xd-loja-clientes__orders small {
  margin-top: 4px;
  white-space: nowrap;
}

.xd-loja-clientes__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.xd-loja-clientes__contact {
  min-height: 34px;
  padding: 0 10px;
  color: #087b50;
  font-size: 12px;
}

.xd-loja-clientes__contact--danger {
  border-color: #fecaca;
  background: #fff7f7;
  color: #b42318;
  cursor: pointer;
}

.xd-loja-clientes__contact--danger:hover {
  border-color: #fca5a5;
  background: #fee2e2;
}

.xd-loja-clientes__contact--danger:disabled {
  cursor: wait;
  opacity: .6;
}

.xd-loja-clientes__empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 48px 20px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: rgba(255, 255, 255, .75);
  color: #64748b;
  text-align: center;
}

.xd-loja-clientes__empty > i {
  margin-bottom: 4px;
  color: #94a3b8;
  font-size: 24px;
}

.xd-loja-clientes__empty strong {
  color: #334155;
  font-size: 15px;
}

.xd-loja-clientes__empty span,
.xd-loja-clientes__note {
  font-size: 13px;
}

.xd-loja-clientes__note {
  margin: 14px 0 0;
  color: #94a3b8;
}

.xd-loja-clientes__modal {
  position: fixed;
  z-index: 10050;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(15, 23, 42, .52);
}

.xd-loja-clientes__modal[hidden] {
  display: none;
}

.xd-loja-clientes__dialog {
  width: min(100%, 680px);
  max-height: min(90vh, 820px);
  overflow: auto;
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .25);
}

.xd-loja-clientes__dialog > header,
.xd-loja-clientes__dialog > form > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.xd-loja-clientes__dialog > header {
  margin-bottom: 16px;
}

.xd-loja-clientes__dialog h2 {
  margin: 0;
  color: #17212b;
  font-size: 20px;
}

.xd-loja-clientes__dialog > header > button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 9px;
  background: #f1f5f9;
  color: #475569;
  font-size: 24px;
  cursor: pointer;
}

.xd-loja-clientes__form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.xd-loja-clientes__form-grid label {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.xd-loja-clientes__form-grid input {
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid #dbe3eb;
  border-radius: 8px;
  outline: none;
  color: #17212b;
  font: inherit;
  font-size: 14px;
}

.xd-loja-clientes__form-grid input:focus {
  border-color: #0c8b59;
  box-shadow: 0 0 0 3px rgba(12, 139, 89, .12);
}

.xd-loja-clientes__form-wide {
  grid-column: 1 / -1;
}

.xd-loja-clientes__dialog > form > footer {
  justify-content: flex-end;
  margin-top: 20px;
}

.xd-loja-clientes__save {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #087b50;
  border-radius: 9px;
  background: #0c8b59;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.xd-loja-clientes__save:disabled {
  cursor: wait;
  opacity: .65;
}

@media (max-width: 720px) {
  .xd-loja-clientes__header {
    align-items: flex-start;
  }

  .xd-loja-clientes__header-actions {
    justify-content: flex-end;
  }

  .xd-loja-clientes__header p {
    max-width: 34ch;
    font-size: 13px;
  }

  .xd-loja-clientes__refresh {
    flex-shrink: 0;
    padding: 0 10px;
  }

  .xd-loja-clientes__toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .xd-loja-clientes__search {
    box-sizing: border-box;
  }

  .xd-loja-clientes__card {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
  }

  .xd-loja-clientes__avatar {
    width: 40px;
    height: 40px;
  }

  .xd-loja-clientes__orders {
    grid-column: 2;
    justify-items: start;
  }

  .xd-loja-clientes__actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (max-width: 520px) {
  .xd-loja-clientes__header {
    flex-direction: column;
  }

  .xd-loja-clientes__header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .xd-loja-clientes__form-grid {
    grid-template-columns: 1fr;
  }

  .xd-loja-clientes__form-wide {
    grid-column: auto;
  }

  .xd-loja-clientes__dialog {
    padding: 16px;
  }
}

.xd-loja-home {
  --xd-loja-ink: #17212b;
  --xd-loja-muted: #687789;
  --xd-loja-border: #e4e9ef;
  --xd-loja-green: #0c8b59;
  max-width: 1440px;
  margin: 0 auto;
}

.xd-loja-home__header,
.xd-loja-home__section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.xd-loja-home__header {
  margin-bottom: 24px;
}

.xd-loja-home__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
  color: var(--xd-loja-green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
}

.xd-loja-home__header h1 {
  margin: 0;
  color: var(--xd-loja-ink);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 850;
  letter-spacing: -.035em;
}

.xd-loja-home__header p,
.xd-loja-home__section-heading p {
  margin: 6px 0 0;
  color: var(--xd-loja-muted);
  font-size: 14px;
}

.xd-loja-home__orders {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 15px;
  border: 0;
  border-radius: 10px;
  background: #0c8b59;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}

.xd-loja-home__orders:hover {
  background: #08754b;
  transform: translateY(-1px);
}

.xd-loja-home__notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  padding: 15px 17px;
  border: 1px solid #f4d28c;
  border-radius: 13px;
  background: #fff9e9;
  color: #80530c;
}

.xd-loja-home__notice > i {
  margin-top: 2px;
  font-size: 17px;
}

.xd-loja-home__notice div,
.xd-loja-home__metric,
.xd-loja-home__channel div {
  display: flex;
  flex-direction: column;
}

.xd-loja-home__notice strong {
  font-size: 13px;
  font-weight: 800;
}

.xd-loja-home__notice span {
  margin-top: 3px;
  color: #8a641c;
  font-size: 12px;
  line-height: 1.5;
}

.xd-loja-home__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

.xd-loja-home__metric {
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--xd-loja-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(15, 23, 42, .035);
}

.xd-loja-home__metric > span {
  color: var(--xd-loja-muted);
  font-size: 12px;
  font-weight: 650;
}

.xd-loja-home__metric strong {
  margin-top: 7px;
  color: #334155;
  font-size: 26px;
  font-weight: 850;
  letter-spacing: -.03em;
}

.xd-loja-home__metric small {
  margin-top: 5px;
  color: #8a96a5;
  font-size: 11px;
}

.xd-loja-home__channels,
.xd-loja-home__orders-list {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--xd-loja-border);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(15, 23, 42, .035);
}

.xd-loja-home__section-heading {
  margin-bottom: 16px;
}

.xd-loja-home__section-heading h2 {
  margin: 0;
  color: var(--xd-loja-ink);
  font-size: 17px;
  font-weight: 800;
}

.xd-loja-home__section-heading p {
  font-size: 12px;
}

.xd-loja-home__pending {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

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

.xd-loja-home__channel {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 13px;
  border: 1px solid #edf0f4;
  border-radius: 11px;
  background: #fff;
}

.xd-loja-home__channel > i {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 10px;
  background: #eff8f3;
  color: var(--xd-loja-green);
  font-size: 15px;
}

.xd-loja-home__channel div {
  min-width: 0;
  gap: 4px;
}

.xd-loja-home__channel strong {
  overflow: hidden;
  color: #263445;
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xd-loja-home__channel span {
  color: #8a96a5;
  font-size: 11px;
}

.xd-loja-home__channel b {
  margin-left: auto;
  color: #94a3b8;
  font-size: 19px;
}

.xd-loja-home__empty {
  display: flex;
  min-height: 110px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px dashed #d7dee7;
  border-radius: 11px;
  color: #8390a0;
  font-size: 12px;
  text-align: center;
}

.xd-loja-home__empty i {
  color: #a4afbd;
  font-size: 22px;
}

@media (max-width: 760px) {
  html.xd-loja-ui-v2.xd-loja-home-open #xdLojaHome {
    padding: 18px 13px 28px !important;
  }

  .xd-loja-home__header {
    align-items: flex-start;
  }

  .xd-loja-home__orders {
    min-width: 42px;
    padding: 0 12px;
  }

  .xd-loja-home__orders span {
    display: none;
  }

  .xd-loja-home__metrics {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .xd-loja-home__metric {
    min-height: auto;
    padding: 14px;
  }

  .xd-loja-home__metric strong {
    font-size: 23px;
  }

  .xd-loja-home__channels,
  .xd-loja-home__orders-list {
    padding: 15px;
  }

  .xd-loja-home__section-heading {
    align-items: flex-start;
  }

  .xd-loja-home__channel-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .xd-loja-home__section-heading {
    flex-direction: column;
  }
}
