/* Camada comercial: mesma linguagem de superfícies do caixa, com foco em estoque. */
.commerce-intro { display: flex; align-items: end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); }
.commerce-intro h3 { margin: 5px 0 0; font-size: 22px; letter-spacing: -.035em; }
.commerce-intro p:not(.section-kicker) { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.commerce-tabs { display: flex; gap: 2px; overflow-x: auto; margin-bottom: var(--s5); padding-bottom: 1px; border-bottom: 1px solid var(--line); }
.commerce-tab { min-height: 38px; padding: 0 13px; border: 1px solid transparent; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 650; white-space: nowrap; }
.commerce-tab:hover { color: var(--text); }
.commerce-tab.is-active { border-bottom-color: var(--cyan); color: var(--cyan); }
.commerce-content { display: grid; gap: var(--s4); }
.commerce-section-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s4); }
.commerce-section-head h4 { margin: 5px 0 0; font-size: 18px; letter-spacing: -.025em; }
.commerce-section-head p:not(.section-kicker) { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.commerce-actions { display: flex; gap: var(--s2); }
.commerce-filter-bar { display: flex; align-items: end; flex-wrap: wrap; gap: var(--s3); padding: var(--s4); border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--surface); }
.commerce-filter-bar .commerce-field { min-width: 150px; }
.commerce-pagination { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding-top: var(--s2); }
.commerce-customer-orders { display: grid; gap: var(--s2); }
.commerce-customer-orders h4 { margin: 0; font-size: 14px; }
.commerce-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-panel); overflow: hidden; background: var(--surface); }
.commerce-metrics > div { display: grid; gap: 7px; padding: var(--s4); border-right: 1px solid var(--line-soft); }
.commerce-metrics > div:last-child { border-right: 0; }
.commerce-metrics span { color: var(--muted); font-size: 12px; }
.commerce-metrics strong { color: var(--green); font: 650 18px/1.1 "SFMono-Regular", Consolas, monospace; }
.commerce-panel { overflow: hidden; }
.commerce-table-panel { overflow: hidden; }
.commerce-table { min-width: 680px; }
.commerce-table td, .commerce-table th { padding-left: var(--s3); padding-right: var(--s3); }
.commerce-table .commerce-private { color: var(--amber); }
.commerce-state { display: grid; place-items: center; min-height: 160px; padding: var(--s6); border: 1px dashed var(--line); border-radius: var(--radius-panel); color: var(--muted); text-align: center; }
.commerce-state strong { color: var(--text-soft); font-size: 14px; }
.commerce-state p { max-width: 520px; margin: 6px 0 0; font-size: 13px; }
.commerce-state.is-error { border-color: rgba(238, 133, 133, .35); }
.commerce-state.is-error strong { color: var(--red); }
.commerce-loader { width: 12px; height: 12px; margin-bottom: 9px; border: 2px solid rgba(40, 203, 210, .25); border-top-color: var(--cyan); border-radius: 50%; animation: commerce-spin .8s linear infinite; }
@keyframes commerce-spin { to { transform: rotate(360deg); } }
.commerce-form { display: grid; gap: var(--s4); }
.commerce-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.commerce-field { display: grid; gap: 6px; color: var(--text-soft); font-size: 12px; font-weight: 650; }
.commerce-field input, .commerce-field select, .commerce-field textarea { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--control); color: var(--text); }
.commerce-field textarea { resize: vertical; }
.commerce-field input:focus, .commerce-field select:focus, .commerce-field textarea:focus { border-color: var(--line-strong); outline: 2px solid rgba(40, 203, 210, .18); outline-offset: 1px; }
.commerce-form-note { margin: 0; padding: 10px 12px; border-left: 2px solid var(--cyan); background: rgba(40, 203, 210, .06); color: var(--muted); font-size: 12px; }
/* Botão Buscar: só aparece no celular, onde a barra de filtros começa recolhida */
.commerce-filter-toggle { display: none; }
/* Grupo espelho do WooCommerce: borda na cor da marca para dizer "isso o Woo atualiza sozinho" */
.commerce-woo-group { gap: var(--s3); padding: var(--s4); border: 1px solid rgba(127, 84, 179, .55); border-radius: var(--radius-panel); background: rgba(127, 84, 179, .07); }
.commerce-woo-group .form-field input { border-color: rgba(127, 84, 179, .45); }
.commerce-woo-group-caption { grid-column: 1 / -1; margin: 0; color: #b698dd; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.commerce-inline-list { display: grid; gap: 0; padding: 0 var(--s5); }
.commerce-inline-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: 11px 0; border-bottom: 1px solid var(--line-soft); color: var(--text-soft); font-size: 13px; }
.commerce-inline-row:last-child { border-bottom: 0; }
.commerce-modal-backdrop { position: fixed; z-index: 40; inset: 0; display: grid; place-items: center; padding: var(--s5); background: rgba(3, 8, 11, .82); }
.commerce-modal { width: min(100%, 680px); max-height: min(90vh, 760px); overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--raised); }
.commerce-modal-head { display: flex; align-items: start; justify-content: space-between; gap: var(--s3); padding: var(--s5); border-bottom: 1px solid var(--line); }
.commerce-modal-head h3 { margin: 5px 0 0; font-size: 18px; }
.commerce-modal-head p:last-child { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.commerce-modal-body { padding: var(--s5); }
.commerce-modal-foot { display: flex; justify-content: end; gap: var(--s2); padding: var(--s4) var(--s5); border-top: 1px solid var(--line); }
.commerce-detail-list { display: grid; gap: 0; margin: 0; padding: 0; border: 1px solid var(--line-soft); border-radius: var(--radius-control); }
.commerce-detail-list > div { display: flex; justify-content: space-between; gap: var(--s3); padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
.commerce-detail-list > div:last-child { border-bottom: 0; }
.commerce-detail-list dt { color: var(--muted); font-size: 12px; }.commerce-detail-list dd { margin: 0; color: var(--text); font-size: 13px; }
@media (max-width: 700px) {
  .commerce-intro, .commerce-section-head { align-items: center; flex-direction: row; flex-wrap: wrap; gap: 8px var(--s3); }
  .commerce-section-head > div:first-child { flex: 1 1 0; min-width: 0; }
  .commerce-section-head .commerce-actions { width: auto; }
  .commerce-section-head .commerce-actions .button { width: auto; }
  .commerce-actions, .commerce-actions .button { width: 100%; }
  .commerce-actions .button { justify-content: center; }
  .commerce-filter-bar { align-items: stretch; flex-direction: column; }
  .commerce-filter-bar .commerce-field, .commerce-filter-bar .button { width: 100%; }
  .commerce-pagination { align-items: center; justify-content: center; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .commerce-pagination .button { flex: 0 1 auto; min-height: 44px; padding: 0 12px; font-size: 12px; margin: 0; }
  .commerce-pagination .form-help { flex: 1 1 auto; min-width: 0; text-align: center; font-size: 11px; }
  .commerce-form-grid { grid-template-columns: 1fr; }
  .commerce-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .commerce-metrics > div { border-bottom: 0; }
  .commerce-metrics > div:nth-child(3) { border-right: 0; }
  .commerce-modal-backdrop { padding: var(--s3); }
  .commerce-modal-head, .commerce-modal-body, .commerce-modal-foot { padding: var(--s4); }
}
.catalog-thumb { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; object-fit: cover; margin-right: 10px; vertical-align: middle; background: var(--control); flex: none; }
.faint { color: var(--muted); }
.pay-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 6px; border: 1px solid var(--line); border-radius: 99px; background: var(--control); line-height: 1.1; }
.pay-chip .pay-icon { display: inline-flex; }
.pay-chip strong { font-size: 12.5px; font-weight: 700; letter-spacing: .01em; }
.pay-chip small { display: block; color: var(--muted); font-size: 10.5px; }
.pay-pix { border-color: rgba(50, 188, 169, .45); background: rgba(50, 188, 169, .10); }
.pay-pix strong { color: #4fd1c0; }
.pay-card { border-color: rgba(91, 141, 239, .45); background: rgba(91, 141, 239, .10); }
.pay-card strong { color: #8fb0ff; }
.pay-cod { border-color: rgba(55, 178, 108, .45); background: rgba(55, 178, 108, .10); }
.pay-cod strong { color: #5fd592; }
.customer-order-row { display: grid; grid-template-columns: 76px auto 1fr auto; gap: 12px; align-items: center; }
.customer-order-id { color: var(--text); }
.customer-order-date { text-align: right; }
.commerce-metrics.fee-cards { grid-template-columns: minmax(0, 1fr); }
.commerce-metrics.fee-cards > div { display: flex; align-items: center; gap: 12px; }
.commerce-metrics.fee-cards > div:last-child { border-right: 0; }
.fee-icon { display: inline-flex; flex: none; }
.fee-card-text { display: grid; gap: 3px; }
.fee-card-text strong { color: var(--green); font: 650 18px/1.1 "SFMono-Regular", Consolas, monospace; }
.fee-card-text small { color: var(--muted); font-size: 11px; }
.mini-icon { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: var(--raised); color: var(--text-soft); cursor: pointer; transition: border-color .12s ease, color .12s ease, background-color .12s ease; }
.mini-icon:hover { border-color: rgba(40, 203, 210, .55); color: var(--cyan); background: rgba(40, 203, 210, .07); }
.mini-icon.is-danger { color: #e08a8a; }
.mini-icon.is-danger:hover { border-color: rgba(224, 138, 138, .55); color: #ff9f9f; background: rgba(224, 138, 138, .07); }
.mini-icon:disabled { opacity: .38; cursor: default; }
.mini-icon:disabled:hover { border-color: var(--line); color: var(--text-soft); background: var(--raised); }
.commerce-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); }
.commerce-head .commerce-tabs { flex-wrap: wrap; }
.cell-sub { color: var(--muted); font-size: 11px; margin-top: 2px; }
.cell-sub.is-bad { color: var(--red); }
.stock-cell-strong { font-weight: 650; }
.sale-photos { display: flex; flex-wrap: wrap; gap: 6px; }
.sale-photo { width: 56px; height: 56px; border-radius: 8px; border: 1px solid var(--line); background: var(--control); display: grid; place-items: center; overflow: hidden; font-weight: 700; color: var(--muted); }
.sale-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sale-photo-more { color: var(--cyan); font-size: 13px; }
.table-actions { flex-wrap: nowrap; }
@media (max-width: 760px) {
  .commerce-head { flex-direction: column-reverse; align-items: stretch; }
  .commerce-head .commerce-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .commerce-table { min-width: 0; }
  .commerce-metrics > div { padding: 10px 8px; }
  .commerce-metrics span { font-size: 10px; }
  .commerce-metrics strong { font-size: 14px; }
  /* Topo compacto: busca vira botão, frase some, botões na mesma linha */
  .commerce-filter-toggle { display: inline-flex; }
  .commerce-filter-bar.is-collapsed { display: none; }
  .commerce-catalog-head { margin-bottom: var(--s3); }
  .commerce-catalog-head h4 { font-size: 16px; }
  .commerce-catalog-head p:not(.section-kicker) { display: none; }
  .commerce-catalog-head .commerce-actions { width: 100%; flex-direction: row; }
  .commerce-catalog-head .commerce-actions .button { flex: 1; width: auto; }
  .commerce-catalog-head .commerce-actions .commerce-filter-toggle { flex: 0 0 44px; padding: 0; justify-content: center; }
  .commerce-metrics.fee-cards { grid-template-columns: 1fr; }
  .commerce-metrics.fee-cards > div { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .commerce-metrics.fee-cards > div:last-child { border-bottom: 0; }
}
@media print {
  .sidebar, .topbar, .filterbar, .global-message, .commerce-tabs, .commerce-actions,
  .view-actions, .button, .mini-icon, .mini-button, .nav-item, .logout-button { display: none !important; }
  body, .main-area { background: #fff; color: #000; }
}
.abc-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--surface); margin-bottom: var(--s4); }
.abc-legend-item { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; text-align: center; gap: 6px; color: var(--text-soft); font-size: 12.5px; }
.abc-wrap { position: relative; display: inline-flex; }
.abc-pill { display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--raised); color: var(--text); font: 700 12px/1 inherit; cursor: help; }
.abc-A { border-color: rgba(55, 178, 108, .55); color: #5fd592; background: rgba(55, 178, 108, .12); }
.abc-B { border-color: rgba(232, 184, 90, .55); color: var(--amber); background: rgba(232, 184, 90, .10); }
.abc-C { border-color: var(--line-strong); color: var(--muted); }
.abc-tip { display: none; position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 30; width: 240px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--raised); color: var(--text); font-size: 12px; line-height: 1.45; text-align: left; white-space: normal; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.abc-tip::after { content: ''; position: absolute; top: 100%; right: 10px; border: 6px solid transparent; border-top-color: var(--line-strong); }
.abc-pill:hover .abc-tip, .abc-pill:focus .abc-tip { display: block; }
.abc-pill:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }

@media (max-width: 760px) { .commerce-catalog-table td[data-label="Estoque"] { flex-wrap: wrap; justify-content: flex-end; white-space: normal; gap: 2px 6px; } .commerce-catalog-table td[data-label="Estoque"] .cell-sub { flex-basis: 100%; overflow-wrap: anywhere; } }

.commerce-crm-search-toggle { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; min-height: 44px; padding: 0; }

.commerce-head.commerce-tabs-nav { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px; }
.commerce-tabs-nav .commerce-tabs { min-width: 0; max-width: 100%; flex-wrap: nowrap; overflow-x: auto; margin-bottom: 0; scrollbar-width: none; }
.commerce-tabs-nav .commerce-tabs::-webkit-scrollbar { display: none; }
.commerce-tabs-nav .commerce-tabs-arrow { width: 44px; height: 44px; padding: 0; font-size: 28px; }
.commerce-crm-table { min-width: 0; width: 100%; table-layout: fixed; }
.commerce-crm-table th, .commerce-crm-table td { white-space: normal; overflow-wrap: anywhere; }
.commerce-crm-table th:nth-child(2) { width: 40%; }
.commerce-crm-table td.cell-sub { font-size: 12px; }
@media (max-width: 760px) {
  .commerce-integration-head { flex-direction: column; align-items: stretch; gap: 14px; }
  .commerce-integration-head .commerce-actions { flex-wrap: wrap; }
  .commerce-integration-head .commerce-actions .button { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 700px) {
  .commerce-crm-table tbody tr { gap: 12px; padding: 14px; }
  .commerce-crm-table tbody tr > td:first-child { grid-column: 1 / -1; grid-row: 1; display: block; text-align: left; font-size: 15px; }
  .commerce-crm-table tbody tr > td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; display: block; text-align: left; line-height: 1.5; }
  .commerce-crm-table tbody tr > td:nth-child(3) { grid-column: 1; grid-row: 3; display: block; text-align: left; }
  .commerce-crm-table tbody tr > td:last-child { grid-column: 2; grid-row: 3; align-self: end; justify-content: flex-end; }
  .commerce-crm-table tbody tr > td:not(:last-child)::before { display: block; max-width: none; margin-bottom: 4px; }
}

.orders-financial-details { margin-top: var(--s4); }
.orders-financial-details > summary { padding: 16px; cursor: pointer; font-weight: 700; }
.orders-financial-details > section { padding: 0 16px 16px; }
@media (min-width: 701px) {
  #orders-commercial .commerce-sales-table { display: block; min-width: 0; width: 100%; }
  #orders-commercial .commerce-sales-table thead { display: none; }
  #orders-commercial .commerce-sales-table tbody { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 14px; padding: 16px; }
  #orders-commercial .commerce-sales-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--raised); align-content: start; }
  #orders-commercial .commerce-sales-table td { display: flex; min-width: 0; padding: 1px 0; border: 0; gap: 8px; align-items: baseline; font-family: inherit; white-space: normal; }
  #orders-commercial .commerce-sales-table td[data-label="Data"] { white-space: nowrap; }
  #orders-commercial .commerce-sales-table tr:has(.is-warn) { background: rgba(232, 184, 90, .07); border-color: rgba(232, 184, 90, .25); }
  #orders-commercial .commerce-sales-table tr:has(.is-good) { background: rgba(114, 220, 162, .07); border-color: rgba(114, 220, 162, .25); }
  #orders-commercial .commerce-sales-table tr:has(.is-bad) { background: rgba(238, 133, 133, .07); border-color: rgba(238, 133, 133, .25); }
  /* Vendas: pedido/data no topo; item ocupa o cartão; quant./valor e vendedor/status abaixo. */
  #orders-commercial .commerce-sales-table tbody tr td[data-label="Pedido"] { grid-column: 1; grid-row: 1; justify-content: flex-start; font-size: 14px; font-weight: 700; }
  #orders-commercial .commerce-sales-table tbody tr td[data-label="Data"] { grid-column: 2; grid-row: 1; justify-content: flex-end; color: var(--muted); font-size: 12px; }
  #orders-commercial .commerce-sales-table tbody tr td[data-label="Item"] { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; align-items: center; overflow: visible; min-width: 0; text-align: left; }
  #orders-commercial .commerce-sales-table .sale-item-content { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; overflow: visible; }
  #orders-commercial .commerce-sales-table .sale-item-label { min-width: 0; overflow-wrap: anywhere; text-align: left; }
  #orders-commercial .commerce-sales-table .sale-photo { flex: 0 0 56px; overflow: hidden; }
  #orders-commercial .commerce-sales-table tbody tr td[data-label="Quantidade"] { grid-column: 1; grid-row: 3; justify-content: flex-start; }
  #orders-commercial .commerce-sales-table tbody tr td[data-label="Valor da linha"] { grid-column: 2; grid-row: 3; justify-content: flex-end; }
  #orders-commercial .commerce-sales-table tbody tr td[data-label="Vendedor"] { grid-column: 1; grid-row: 4; justify-content: flex-start; font-weight: 650; }
  #orders-commercial .commerce-sales-table tbody tr td[data-label="Status"] { grid-column: 2; grid-row: 4; justify-content: flex-end; margin-top: 4px; }
  #orders-commercial .commerce-sales-table.is-employee tbody tr td[data-label="Status"] { grid-column: 1; justify-content: flex-start; }
  #orders-commercial .commerce-sales-table tbody tr td[data-label="Comissão"] { grid-column: 2; grid-row: 4; justify-content: flex-end; margin-top: 4px; }
  #orders-commercial .commerce-sales-table tbody tr td::before { content: none; }
  #orders-commercial .commerce-sales-table tbody tr td[data-label="Ação"] { grid-column: 1 / -1; grid-row: 5; justify-content: flex-end; }
  #orders-commercial .commerce-sales-table tbody tr td[data-label="Ação"]::before { content: none; }
  #orders-commercial .commerce-sales-table tbody tr td[data-label="Ação"] .table-actions { width: 100%; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
  /* Dados da venda: identificação forte e pares com rótulos visíveis. */
  #orders-commercial .commerce-sales-table tbody tr { gap: 10px 14px; padding: 14px; }
  #orders-commercial .commerce-sales-table tbody tr td[data-label="Pedido"] { color: var(--text); font-size: 16px; font-weight: 750; }
  #orders-commercial .commerce-sales-table tbody tr td[data-label="Pedido"]::before { content: '#'; display: inline; color: var(--muted); font-size: 14px; }
  #orders-commercial .commerce-sales-table .sale-item-label { color: var(--text); font-size: 14px; font-weight: 700; line-height: 1.4; }
  #orders-commercial .commerce-sales-table tbody tr td:is([data-label="Quantidade"], [data-label="Valor da linha"], [data-label="Vendedor"], [data-label="Comissão"]) { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 14px; font-weight: 650; }
  #orders-commercial .commerce-sales-table tbody tr td:is([data-label="Valor da linha"], [data-label="Comissão"]) { align-items: flex-end; color: var(--text); font-size: 17px; font-weight: 750; }
  #orders-commercial .commerce-sales-table tbody tr td:is([data-label="Quantidade"], [data-label="Valor da linha"], [data-label="Vendedor"], [data-label="Comissão"])::before { display: block; content: attr(data-label); max-width: none; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .05em; line-height: 1.3; }
  #orders-commercial .commerce-sales-table tbody tr td[data-label="Valor da linha"]::before { content: 'Valor'; }
  #orders-commercial .commerce-sales-table tbody tr td[data-label="Status"] { align-self: center; }
}

.commerce-section-head.commerce-fees-head { align-items: center; flex-wrap: nowrap; gap: 12px; }
.commerce-section-head.commerce-fees-head > div:first-child { flex: 1 1 0; min-width: 0; }
.commerce-fees-actions { flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.commerce-fees-actions .button { min-height: 36px; padding: 6px 9px; font-size: 11px; white-space: nowrap; justify-content: center; }
.commerce-fees-presets { width: max-content; max-width: 100%; margin-bottom: 12px; }
@media (max-width: 760px) {
  .commerce-section-head .commerce-fees-actions { flex: 0 0 auto; max-width: 55%; width: auto; }
  .commerce-fees-head .section-kicker { font-size: 10px; }
  .commerce-fees-presets { width: 100%; overflow-x: auto; }
}

.pay-chip.pay-card { padding: 3px 7px; gap: 5px; white-space: nowrap; flex-shrink: 0; }
.pay-chip.pay-card strong { font-size: 11px; }
.pay-chip.pay-card .pay-icon svg { width: 12px; height: 12px; }

@media (max-width: 760px) {
  .commerce-section-head.commerce-catalog-head { flex-wrap: nowrap; align-items: center; gap: 10px; }
  .commerce-catalog-head .commerce-actions { width: auto; flex: 0 0 auto; gap: 6px; }
  .commerce-catalog-head .commerce-actions .button { flex: none; width: auto; padding-inline: 10px; font-size: 11px; }
  .commerce-catalog-head .commerce-actions .commerce-filter-toggle { width: 36px; flex: 0 0 36px; padding: 0; }
}

@media (max-width: 700px) {
  .commerce-fees-table td[data-label="Origem"] { grid-column: 1 / -1; align-items: center; }
  .commerce-fees-table td[data-label="Origem"] .status-pill { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; line-height: 1.4; padding: 4px 6px; }
}

.commerce-automation-panel { padding: var(--s4); }
.commerce-automation-panel h4 { margin: 0; }
.commerce-customer-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.commerce-customer-head strong, .commerce-detail-list dd { min-width: 0; overflow-wrap: anywhere; }
.commerce-customer-fields { display: grid; gap: var(--s4); }
.commerce-customer-fields[hidden] { display: none; }
