:root {
  --ink: #111827;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #f97316;
  --brand-dark: #ea580c;
  --danger: #dc2626;
  --warning: #f59e0b;
  --success: #16a34a;
  --bg: #f8fafc;
  --card: #ffffff;
  --nav: #121c25;
  --nav-soft: #1d2a35;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 5px 16px rgba(15, 23, 42, .04);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

button,
.link,
.ghost-button,
.icon-button,
.add-button {
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(255, 90, 0, .22);
}

.add-button {
  min-width: 98px;
  white-space: nowrap;
}

.danger {
  background: var(--danger);
  box-shadow: 0 10px 20px rgba(229, 31, 50, .18);
}

/* Relatório financeiro de entregas — acesso MASTER */
.delivery-financial-kpis {
  margin-bottom: 18px;
}

.delivery-financial-report {
  display: grid;
  gap: 16px;
}

.delivery-financial-report > header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.delivery-financial-report > header h2,
.delivery-financial-report > header p {
  margin: 0;
}

.delivery-financial-report > header p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.delivery-financial-report table {
  min-width: 980px;
}

.delivery-financial-report td:nth-last-child(-n + 3),
.delivery-financial-report th:nth-last-child(-n + 3) {
  text-align: right;
}

.delivery-financial-receivable strong {
  color: #15803d;
  font-size: 16px;
}

@media (max-width: 760px) {
  .delivery-financial-report > header {
    display: grid;
  }
}

/* Resumo moderno da listagem de pedidos. */
body.page-pedidos .card.orders-payment-summary {
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  padding: 20px;
  box-shadow: 0 14px 34px rgba(15, 29, 54, .08);
}

body.page-pedidos .orders-payment-summary > header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.page-pedidos .orders-payment-summary > header > i {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  background: #fff1e8;
  color: #f26522;
  font-style: normal;
}

body.page-pedidos .orders-payment-summary > header > i .icon {
  width: 22px;
  height: 22px;
}

body.page-pedidos .orders-payment-summary header h2,
body.page-pedidos .orders-payment-summary header p {
  margin: 0;
}

body.page-pedidos .orders-payment-summary header h2 {
  color: #101d32;
  font-size: 18px;
  line-height: 1.2;
}

body.page-pedidos .orders-payment-summary header p {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

body.page-pedidos .orders-payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

body.page-pedidos .orders-payment-grid article {
  --payment-color: #64748b;
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e4eaf2;
  border-radius: 13px;
  background: #fff;
  padding: 16px 16px 15px 19px;
  box-shadow: 0 7px 18px rgba(15, 29, 54, .045);
}

body.page-pedidos .orders-payment-grid article::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--payment-color);
  content: '';
}

body.page-pedidos .orders-payment-grid .payment-pix-online {
  --payment-color: #16a34a;
}

body.page-pedidos .orders-payment-grid .payment-pix-normal {
  --payment-color: #0284c7;
}

body.page-pedidos .orders-payment-grid .payment-dinheiro {
  --payment-color: #d97706;
}

body.page-pedidos .orders-payment-grid .payment-cartao-credito,
body.page-pedidos .orders-payment-grid .payment-cartao-debito {
  --payment-color: #7c3aed;
}

body.page-pedidos .orders-payment-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.page-pedidos .orders-payment-title span {
  overflow: hidden;
  color: #536176;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

body.page-pedidos .orders-payment-title b {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #f1f5f9;
  padding: 4px 8px;
  color: var(--payment-color);
  font-size: 11px;
  line-height: 1;
}

body.page-pedidos .orders-payment-grid article > strong {
  display: block;
  margin: 10px 0 0;
  color: #101d32;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1;
  letter-spacing: -.035em;
}

body.page-pedidos .orders-payment-progress {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f6;
  margin: 13px 0 9px;
}

body.page-pedidos .orders-payment-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--payment-color);
}

body.page-pedidos .orders-payment-grid article > small {
  display: block;
  color: #718096;
  font-size: 11px;
  font-weight: 700;
}

body.page-pedidos .order-payment-label {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  border-radius: 999px;
  padding: 4px 10px;
  background: #eef2f7;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

body.page-pedidos .order-payment-label.pix_online {
  background: #dcfce7;
  color: #15803d;
}

body.page-pedidos .order-payment-label.pix_normal {
  background: #e0f2fe;
  color: #0369a1;
}

@media (max-width: 680px) {
  body.page-pedidos .orders-payment-summary {
    padding: 16px;
  }

  body.page-pedidos .orders-payment-grid {
    grid-template-columns: 1fr;
  }
}

/* Diálogo de recarga PIX com consulta automática */
.pix-recharge-continue {
  margin: 0 0 16px;
}

.pix-recharge-dialog {
  width: min(680px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  border: 0;
  border-radius: 20px;
  padding: 0;
  background: transparent;
  overflow: visible;
}

.pix-recharge-dialog::backdrop {
  background: rgba(15, 23, 42, .72);
  backdrop-filter: blur(4px);
}

.pix-recharge-dialog .asaas-pix-card {
  position: relative;
  max-height: calc(100vh - 24px);
  margin: 0;
  overflow-y: auto;
  border: 0;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .32);
}

.pix-recharge-dialog .pix-dialog-close {
  width: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #334155;
  box-shadow: none;
}

.pix-recharge-dialog .pix-copy-button {
  width: 100%;
  margin-top: 8px;
}

.pix-payment-check {
  display: grid;
  gap: 10px;
  margin: 14px 0 18px;
  border-radius: 14px;
  padding: 14px;
  background: #f8fafc;
}

.pix-payment-check div {
  display: grid;
  gap: 3px;
}

.pix-payment-check small {
  color: #64748b;
}

.pix-payment-check progress {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  accent-color: #16a34a;
}

.pix-payment-check progress::-webkit-progress-bar {
  border-radius: 999px;
  background: #dbe4ef;
}

.pix-payment-check progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, #16a34a, #22c55e);
  transition: width .12s linear;
}

@media (max-width: 600px) {
  .pix-recharge-dialog .asaas-pix-card {
    padding: 16px;
  }

  .pix-recharge-dialog .asaas-pix-card header,
  .pix-recharge-dialog .asaas-pix-card footer,
  .pix-recharge-dialog .asaas-pix-body {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pix-recharge-dialog .pix-dialog-close {
    position: absolute;
    top: 12px;
    right: 12px;
  }

  .pix-recharge-dialog .asaas-pix-body img {
    width: min(240px, 100%);
    height: auto;
    aspect-ratio: 1;
    justify-self: center;
  }
}

.pdv-sound-setting {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 10px 14px;
  align-items: end;
  padding: 14px;
  border: 1px solid #dbe4ee;
  border-radius: 14px;
  background: #f8fafc;
}

.pdv-sound-setting label { margin: 0; }
.pdv-sound-setting button { min-height: 44px; white-space: nowrap; }
.pdv-sound-setting > small { grid-column: 1 / -1; color: #64748b; }

@media (max-width: 640px) {
  .pdv-sound-setting { grid-template-columns: 1fr; }
  .pdv-sound-setting > small { grid-column: auto; }
}

.duplicate {
  background: #0ea5a8;
  box-shadow: 0 10px 20px rgba(14, 165, 168, .2);
}

.ghost-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  box-shadow: none;
}

.admin-layout {
  display: grid;
  grid-template-columns: 278px minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns .22s ease;
}

aside {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  padding: 18px 12px 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), transparent 34%),
    var(--nav);
  color: #fff;
  box-shadow: 18px 0 48px rgba(15, 29, 54, .13);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}

.brand-toggle {
  min-width: 48px;
  width: 48px;
  height: 48px;
  min-height: 48px;
  flex: 0 0 48px;
  border: 0;
  border-radius: 14px;
  padding: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
}

.brand-toggle:hover,
.brand-toggle:focus-visible {
  background: rgba(255,255,255,.08);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, .2);
}

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

.brand-mark {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #ff5a00, #ff8a00);
  box-shadow: 0 16px 28px rgba(255, 90, 0, .22);
}

.brand-mark img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.app-brand-mark {
  background: transparent;
  box-shadow: none;
}

.app-brand-mark img {
  width: 44px;
  height: 44px;
}

.brand strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
}

.brand small,
.admin-profile small {
  display: block;
  margin-top: 4px;
  color: #aab6ca;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

aside nav {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 0;
  margin-top: 4px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding-right: 2px;
  scrollbar-width: thin;
}

aside a {
  min-height: 44px;
  border-radius: 8px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #f2f4f7;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}

aside a.active,
aside a:hover {
  background: linear-gradient(135deg, #ff5a00, #ff7a00);
  color: #fff;
  box-shadow: 0 14px 26px rgba(255, 90, 0, .28);
}

.sidebar-menu-group {
  display: grid;
  gap: 4px;
}

.sidebar-submenu-toggle {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  background: transparent;
  color: #f2f4f7;
  font-size: 15px;
  font-weight: 700;
  box-shadow: none;
}

.sidebar-submenu-toggle:hover,
.sidebar-menu-group.active > .sidebar-submenu-toggle {
  background: rgba(255,255,255,.08);
  color: #fff;
  box-shadow: none;
}

.sidebar-submenu-toggle .icon:last-child {
  width: 16px;
  height: 16px;
  margin-left: auto;
  transition: transform .18s ease;
}

.sidebar-menu-group.open > .sidebar-submenu-toggle .icon:last-child {
  transform: rotate(90deg);
}

.sidebar-submenu {
  display: none;
  gap: 3px;
  margin: 0 0 3px 18px;
  padding-left: 10px;
  border-left: 1px solid rgba(255,255,255,.13);
}

.sidebar-menu-group.open > .sidebar-submenu {
  display: grid;
}

aside .sidebar-submenu a {
  min-height: 38px;
  padding: 0 10px;
  gap: 9px;
  font-size: 13px;
}

aside .sidebar-submenu a .icon {
  width: 17px;
  height: 17px;
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 10px;
  padding: 14px;
  margin: 0 6px;
  background: rgba(255,255,255,.08);
}

.sidebar-company {
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 4px;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 10px 6px 0;
}

.sidebar-company img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(255,255,255,.18);
}

.sidebar-company span {
  min-width: 0;
}

.sidebar-company strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-company small {
  display: block;
  margin-top: 4px;
  color: #aab6ca;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-profile b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, #ff5a00, #ff8a00);
}

main {
  width: min(100% - 56px, 1320px);
  margin: 0 auto;
  padding: 26px 0 48px;
}

.topbar {
  min-height: 64px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
}

.company-switcher {
  position: relative;
  margin-right: auto;
}

.company-switcher select,
.company-search-picker select {
  width: min(280px, 34vw);
  min-height: 46px;
  border-color: #eaecf0;
  border-radius: 999px;
  background: #fff;
  font-weight: 800;
}

.company-search-picker {
  position: relative;
  min-width: 0;
}

.company-search-select-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 8px;
  align-items: center;
}

.company-search-toggle {
  width: 46px !important;
  min-width: 46px;
  min-height: 46px !important;
  padding: 0 !important;
  border-radius: 50% !important;
}

.company-search-panel {
  position: absolute;
  z-index: 1200;
  top: calc(100% + 8px);
  left: 0;
  width: min(380px, calc(100vw - 32px));
  border: 1px solid #dbe3ec;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(15, 23, 42, .18);
}

.company-search-field {
  min-height: 44px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 0 11px;
  color: #64748b;
}

.company-search-field input {
  min-height: 42px;
  border: 0;
  padding: 0;
  box-shadow: none;
}

.company-search-results {
  max-height: 300px;
  display: grid;
  gap: 4px;
  margin-top: 8px;
  overflow-y: auto;
}

.company-search-result {
  width: 100% !important;
  min-height: 40px !important;
  justify-content: flex-start !important;
  border: 0 !important;
  border-radius: 8px !important;
  padding: 8px 11px !important;
  background: transparent !important;
  color: var(--ink) !important;
  text-align: left;
  box-shadow: none !important;
}

.company-search-result:hover,
.company-search-result.active {
  background: #fff3e8 !important;
  color: #c84b00 !important;
}

.company-search-empty {
  margin: 10px 4px 2px;
  color: var(--muted);
  font-size: 13px;
}

.login-company-label .company-search-picker select {
  width: 100%;
}

.login-company-label > span {
  display: block;
  margin-bottom: 8px;
  color: #40506b;
  font-size: 13px;
  font-weight: 800;
}

.login-company-label .company-search-panel {
  width: 100%;
}

.topbar button {
  width: 48px;
  min-height: 48px;
  border: 1px solid #eaecf0;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 24px rgba(16, 24, 40, .06);
}

.topbar-bell {
  position: relative;
  width: 48px;
  min-height: 48px;
  border: 1px solid #eaecf0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(16, 24, 40, .06);
}

.topbar-bell b {
  position: absolute;
  right: -6px;
  top: -7px;
  min-width: 22px;
  height: 22px;
  border: 2px solid #fff;
  border-radius: 999px;
  padding: 0 5px;
  background: #ff5a00;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 52px;
  color: inherit;
  text-decoration: none;
}

.topbar-user:hover strong {
  color: #ff5a00;
}

.topbar-user b {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid #eaecf0;
  border-radius: 50%;
  background: #fff;
  color: #ff5a00;
  font-size: 18px;
  box-shadow: 0 12px 24px rgba(16, 24, 40, .06);
}

.topbar-user strong {
  display: block;
  color: #111827;
  font-size: 14px;
}

.topbar-user small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.page-title {
  margin: 0 0 24px;
}

.company-form {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.company-form .full {
  grid-column: span 6;
}

.company-form .company-small-toggle {
  grid-column: span 3;
  min-height: 48px;
  align-self: end;
}

.company-form .form-section-title {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 900;
}

.company-form > label,
.company-form > .image-preview,
.company-form > .company-table-qr {
  grid-column: span 3;
}

.company-form > label:has(textarea) {
  grid-column: span 5;
}

.company-form > label input,
.company-form > label textarea {
  width: 100%;
}

.company-form > label span {
  min-height: 18px;
  display: block;
  line-height: 1.15;
}

.company-logo-preview img {
  width: 82px;
  height: 82px;
  border-radius: 14px;
}

.company-table-qr {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(88px, 1fr) minmax(160px, auto);
  gap: 8px;
  align-items: end;
}

.company-table-qr > label {
  min-width: 0;
}

.company-table-qr-button,
.company-table-qr-disabled {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(15, 122, 131, .22);
  border-radius: 8px;
  padding: 0 14px;
  background: #e9fbfc;
  color: var(--teal);
  font-weight: 900;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.company-whatsapp {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #dbe7f3;
  border-radius: 14px;
  background: #f8fbff;
}

.company-whatsapp header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.company-whatsapp header strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
}

.company-whatsapp header span,
.company-whatsapp-help {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.toggle-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
}

.toggle-line input {
  width: 18px;
  height: 18px;
  accent-color: var(--orange);
}

.company-payment-settings {
  min-width: 0;
  margin: 4px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff8f3;
}

.company-payment-settings legend {
  padding: 0 6px;
  font-weight: 900;
}

.company-payment-settings > p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.company-payment-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.company-payment-options .toggle-line {
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}

.company-whatsapp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.company-whatsapp-grid label {
  min-width: 0;
}

.company-whatsapp-grid .full {
  grid-column: span 2;
}

.company-whatsapp-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.company-whatsapp-status article {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) 88px;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid #dbe7f3;
  border-radius: 10px;
  background: #fff;
}

.company-whatsapp-status b,
.company-whatsapp-status small {
  display: block;
}

.company-whatsapp-status small {
  color: var(--muted);
  font-size: 11px;
}

.company-table-qr-button .icon {
  width: 18px;
  height: 18px;
}

.company-table-qr-disabled {
  border-color: var(--line);
  background: #f1f5f9;
  color: var(--muted);
}

.qr-print-page {
  display: grid;
  gap: 18px;
}

.qr-print-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.qr-print-toolbar button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
}

.qr-print-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.qr-print-card {
  min-height: 360px;
  display: grid;
  gap: 8px;
  justify-items: center;
  align-content: start;
  border: 1px dashed #94a3b8;
  border-radius: 10px;
  padding: 14px;
  background: #fff;
  text-align: center;
  break-inside: avoid;
  page-break-inside: avoid;
}

.qr-print-logo {
  width: 86px;
  height: 62px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.qr-print-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.qr-print-card small {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.qr-print-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 30px;
}

.qr-print-card > img,
.qr-print-card > canvas {
  width: 180px;
  height: 180px;
  object-fit: contain;
}

.qr-print-card p {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
}

.qr-print-card p mark {
  background: #3568d4;
  color: #fff;
  padding: 0 2px;
}

.qr-print-app-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
  color: var(--ink);
  font-weight: 900;
}

.qr-print-app-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.qr-print-app-brand div {
  display: grid;
  gap: 1px;
  text-align: left;
}

.qr-print-app-brand strong,
.qr-print-app-brand span {
  line-height: 1.05;
}

.qr-print-app-brand span {
  font-size: 13px;
}

.qr-print-card code {
  width: 100%;
  color: #475569;
  font-size: 10px;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media print {
  @page {
    size: A4;
    margin: 10mm;
  }

  body {
    background: #fff !important;
  }

  .admin-layout {
    display: block;
  }

  .admin-layout > aside,
  .topbar,
  .qr-print-toolbar,
  .page-title p {
    display: none !important;
  }

  .admin-layout > main {
    padding: 0 !important;
  }

  .page-title {
    margin: 0 0 8mm !important;
  }

  .page-title h1 {
    font-size: 20pt;
  }

  .qr-print-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8mm;
  }

  .qr-print-card {
    min-height: 128mm;
    border: 1px dashed #555;
    border-radius: 0;
    padding: 8mm;
  }

  .qr-print-logo {
    width: 30mm;
    height: 18mm;
  }

  .qr-print-card > img,
  .qr-print-card > canvas {
    width: 48mm;
    height: 48mm;
  }

  .qr-print-app-brand img {
    width: 11mm;
    height: 11mm;
  }
}

.company-types {
  grid-column: span 5;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.company-types legend {
  padding: 0 8px;
  color: #40506b;
  font-size: 13px;
  font-weight: 900;
}

.company-types p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.company-types .company-type-help {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
}

.company-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.company-type-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  border: 1px solid rgba(219, 227, 239, .9);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
}

.company-type-option input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--teal);
}

.company-type-option img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  object-fit: cover;
}

.company-type-option span {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
}

.save-company {
  grid-column: span 3;
  min-height: 48px;
  align-self: end;
}

.page-title h1 {
  margin: 0;
  font-size: 32px;
  letter-spacing: 0;
}

.page-title p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.card {
  border: 1px solid rgba(219, 227, 239, .8);
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 42px rgba(15, 29, 54, .07);
}

.form-grid,
.filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px 24px;
  margin-bottom: 24px;
  padding: 24px;
}

.product-form {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.filter-grid {
  grid-template-columns: 2fr repeat(4, minmax(150px, 1fr)) auto auto;
  align-items: end;
  padding: 18px 24px;
}

label {
  display: grid;
  gap: 8px;
}

label span {
  color: #40506b;
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(7, 133, 141, .55);
  box-shadow: 0 0 0 4px rgba(7, 133, 141, .09);
}

input[type="file"] {
  padding: 8px;
}

textarea {
  min-height: 76px;
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.save-product {
  grid-column: span 3;
  min-height: 56px;
  align-self: end;
  font-size: 17px;
}

.image-preview {
  display: grid;
  gap: 8px;
}

.image-preview span {
  color: #40506b;
  font-size: 13px;
  font-weight: 800;
}

.image-preview img {
  width: 118px;
  height: 88px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
}

.product-current-preview {
  min-width: 0;
}

.product-current-preview img {
  width: 88px;
  height: 88px;
  object-fit: cover;
}

.product-current-preview small {
  max-width: 160px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(219, 227, 239, .8);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 29, 54, .07);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
  vertical-align: middle;
}

th {
  background: #fbfdff;
  color: #08717b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

td {
  color: #10203a;
}

td strong {
  display: block;
}

td small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.deliveries-filter {
  align-items: end;
}

.deliveries-report {
  display: grid;
  gap: 10px;
}

.delivery-report-row {
  display: grid;
  grid-template-columns: 90px minmax(220px, 1.4fr) minmax(140px, auto) minmax(120px, auto) minmax(120px, auto) minmax(105px, auto);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(219, 227, 239, .9);
  border-radius: 12px;
  background: #fff;
  padding: 14px 16px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
}

.delivery-report-row > strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.delivery-report-row span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.delivery-report-row span b {
  color: var(--ink);
  font-weight: 900;
}

.delivery-report-row span small,
.delivery-report-row > small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.delivery-report-row > b {
  justify-self: end;
  border-radius: 999px;
  background: #e8f4f6;
  color: #0f6670;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 900;
}

.delivery-report-row em {
  justify-self: start;
  border-radius: 999px;
  padding: 6px 10px;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  background: #64748b;
}

.delivery-report-row em.status-novo {
  background: #2563eb;
}

.delivery-report-row em.status-recebido,
.delivery-report-row em.status-em_preparo,
.delivery-report-row em.status-pronto {
  background: #f97316;
}

.delivery-report-row em.status-entregador_aceitou,
.delivery-report-row em.status-chegou_loja,
.delivery-report-row em.status-saiu_entrega {
  background: #0f7b83;
}

.delivery-report-row em.status-entregue,
.delivery-report-row em.status-finalizado {
  background: #111827;
}

.delivery-report-row em.status-cancelado {
  background: #b91c1c;
}

@media (max-width: 900px) {
  .delivery-report-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .delivery-report-row > b {
    justify-self: start;
  }
}

.product-thumb {
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
}

.actions,
.inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.actions form {
  margin: 0;
}

.inline select {
  min-width: 145px;
}

.icon-button {
  width: 48px;
  min-height: 44px;
  padding: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
}

.badge.yes {
  background: #d7f8f5;
  color: #047078;
}

.badge.no {
  background: #eef2f7;
  color: #697589;
}

.empty {
  color: var(--muted);
  text-align: center;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 29, 54, .07);
}

.metric span {
  color: var(--muted);
  font-weight: 800;
}

.metric strong {
  display: block;
  margin-top: 8px;
  color: var(--brand);
  font-size: 36px;
}

.notification-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.notification-summary .metric small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
}

.notification-form {
  grid-template-columns: minmax(260px, 1.3fr) minmax(160px, .4fr) auto auto;
  align-items: end;
}

.notification-form .full {
  grid-column: 1 / 3;
}

.notification-actions {
  min-width: 300px;
  flex-wrap: wrap;
}

.notification-actions button:not(.icon-button) {
  min-height: 44px;
}

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.dash-kpi,
.dash-panel {
  border: 1px solid rgba(219, 227, 239, .86);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(14, 26, 46, .98), rgba(20, 36, 61, .96)),
    var(--nav);
  color: #fff;
  box-shadow: 0 18px 42px rgba(15, 29, 54, .12);
}

.dash-kpi {
  position: relative;
  overflow: hidden;
  min-height: 120px;
  padding: 22px;
}

.dash-kpi::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -42px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  opacity: .25;
  background: currentColor;
}

.dash-kpi span {
  display: block;
  color: #b9c5d7;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dash-kpi strong {
  display: block;
  margin-top: 12px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
}

.dash-kpi small {
  display: block;
  margin-top: 12px;
  color: #aab6ca;
  font-weight: 800;
}

.dash-kpi.green {
  color: #19d17f;
}

.dash-kpi.blue {
  color: #4b86ff;
}

.dash-kpi.purple {
  color: #9368ff;
}

.dash-kpi.orange {
  color: #ffad32;
}

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, .8fr);
  gap: 16px;
}

.dash-panel {
  min-height: 320px;
  padding: 20px;
}

.dash-wide {
  min-height: 390px;
}

.dash-panel header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.dash-panel h2 {
  margin: 0;
  font-size: 18px;
}

.dash-panel header span {
  display: block;
  margin-top: 5px;
  color: #aab6ca;
  font-size: 13px;
  font-weight: 700;
}

.dash-chart {
  height: 300px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18px, 1fr));
  align-items: end;
  gap: 7px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.dash-bar {
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: end;
  gap: 7px;
}

.dash-bar span {
  width: 100%;
  min-height: 5px;
  border-radius: 7px 7px 2px 2px;
  background: linear-gradient(180deg, #18dc8d, #0c8d6e);
  box-shadow: 0 10px 22px rgba(24, 220, 141, .18);
}

.dash-bar small {
  color: #9aa8bc;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.account-password-card {
  margin-bottom: 16px;
  overflow: hidden;
}

.account-password-card > summary {
  min-height: 72px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
}

.account-password-card > summary::-webkit-details-marker {
  display: none;
}

.account-password-card > summary > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff3eb;
  color: var(--accent);
}

.account-password-card > summary svg {
  width: 22px;
  height: 22px;
}

.account-password-card > summary > svg:last-child {
  color: var(--muted);
  transition: transform .2s ease;
}

.account-password-card[open] > summary > svg:last-child {
  transform: rotate(90deg);
}

.account-password-card > summary strong,
.account-password-card > summary small {
  display: block;
}

.account-password-card > summary strong {
  color: var(--ink);
  font-size: 16px;
}

.account-password-card > summary small {
  margin-top: 4px;
  color: var(--muted);
}

.account-password-form {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  margin: 0;
  border-top: 1px solid var(--line);
  box-shadow: none;
}

.account-password-form button {
  min-height: 48px;
  white-space: nowrap;
}

.account-password-help {
  grid-column: 1 / -1;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 900px) {
  .account-password-form {
    grid-template-columns: 1fr 1fr;
  }

  .account-password-form button {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .account-password-form {
    grid-template-columns: 1fr;
  }

  .account-password-card > summary {
    padding-inline: 14px;
  }
}

.master-month-chart .dash-bar {
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 4px;
}

.master-month-chart .dash-bar b {
  color: #dce7f7;
  font-size: 11px;
  line-height: 1;
  text-align: center;
}

.master-company-panel {
  min-height: 390px;
}

.master-company-ranking {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.master-company-ranking li {
  display: grid;
  gap: 5px;
}

.master-company-ranking li > div {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.master-company-ranking em {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(24, 220, 141, .12);
  color: #20dc91;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.master-company-ranking strong {
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.master-company-ranking b {
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
}

.master-company-ranking i {
  height: 7px;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
}

.master-company-ranking i span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #20dc91, #4b86ff);
}

.master-company-ranking small {
  color: #aab6ca;
  font-size: 11px;
  font-weight: 700;
}

.master-dashboard-heading {
  margin: 28px 0 14px;
  color: var(--ink);
  font-size: 21px;
}

.master-delivery-grid {
  grid-template-columns: 1fr;
}

.master-delivery-panel {
  min-height: 360px;
}

.master-delivery-ranking {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}

.dash-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dash-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 0 0 10px;
}

.dash-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.dash-list em {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(24, 220, 141, .12);
  color: #20dc91;
  font-style: normal;
  font-weight: 900;
}

.dash-list strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-list small,
.dash-payments small {
  color: #aab6ca;
  font-size: 12px;
  font-weight: 700;
}

.dash-list b {
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
}

.dash-payments {
  display: grid;
  gap: 18px;
}

.dash-payments p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
}

.dash-payments strong {
  color: #fff;
}

.dash-payments p span {
  color: #20dc91;
  font-weight: 900;
}

.dash-payments i {
  height: 9px;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
}

.dash-payments i span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #1fdb91, #4b86ff);
}

.dash-empty {
  margin: 0;
  border: 1px dashed rgba(255,255,255,.2);
  border-radius: 8px;
  padding: 18px;
  color: #b9c5d7;
  text-align: center;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .dash-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dash-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .notification-form {
    grid-template-columns: 1fr;
  }

  .notification-form .full {
    grid-column: 1;
  }

  .notification-actions {
    min-width: 0;
  }

  .dash-kpis {
    grid-template-columns: 1fr;
  }

  .dash-kpi {
    min-height: 104px;
    padding: 18px;
  }

  .dash-panel {
    min-height: 0;
    padding: 16px;
  }

  .dash-chart {
    height: 230px;
    grid-template-columns: repeat(auto-fit, minmax(13px, 1fr));
    gap: 4px;
  }

  .dash-bar small {
    font-size: 9px;
  }

  .dash-list li {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .dash-list b {
    grid-column: 2;
  }

  .master-delivery-ranking {
    grid-template-columns: 1fr;
  }
}

.pdv-toolbar {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px 18px;
}

.pdv-toolbar small {
  color: var(--muted);
  margin-right: auto;
}

.live-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #20c997;
  box-shadow: 0 0 0 6px rgba(32, 201, 151, .14);
}

.pdv-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 16px;
}

.pdv-card {
  padding: 18px;
  display: grid;
  gap: 14px;
  border-left: 5px solid var(--brand);
}

.pdv-card.status-novo {
  border-left-color: var(--warning);
}

.pdv-card.status-recebido {
  border-left-color: var(--brand);
}

.pdv-card header,
.pdv-card footer,
.print-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pdv-card header small {
  display: block;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.pdv-card header strong {
  font-size: 24px;
}

.pdv-customer {
  display: grid;
  gap: 4px;
}

.pdv-customer span,
.print-panel span {
  color: var(--muted);
}

.pdv-card dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
}

.pdv-card dl div {
  border-radius: 8px;
  padding: 10px;
  background: #f5f8fc;
}

.pdv-card dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.pdv-card dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.pdv-items {
  display: grid;
  gap: 7px;
  max-height: 150px;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.pdv-items li {
  display: flex;
  gap: 8px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 7px;
}

.pdv-card footer {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.pdv-empty {
  padding: 22px;
  color: var(--muted);
  font-weight: 800;
}

.print-panel {
  margin-bottom: 18px;
  padding: 16px 18px;
}

.print-only {
  display: none;
}

.receipt {
  width: 300px;
  padding: 12px;
  background: #fff;
  color: #000;
  font-family: "Courier New", monospace;
  font-size: 12px;
}

.receipt h2,
.receipt h3,
.receipt p {
  margin: 0 0 8px;
}

.receipt h2,
.receipt h3,
.receipt .center {
  text-align: center;
}

.receipt hr {
  border: 0;
  border-top: 1px dashed #000;
  margin: 8px 0;
}

.receipt table {
  min-width: 0;
  width: 100%;
  font-size: 12px;
}

.receipt td {
  border: 0;
  padding: 2px 0;
  vertical-align: top;
}

.receipt td:last-child {
  text-align: right;
  white-space: nowrap;
}

.receipt .muted {
  color: #333;
  font-size: 11px;
}

.status-badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  background: #536179;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.status-badge.novo {
  background: #d97706;
  color: #fff;
}

.status-badge.recebido {
  background: #047078;
  color: #fff;
}

.status-badge.em_preparo {
  background: #4056a8;
  color: #fff;
}

.order-detail {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
  padding: 20px;
}

.order-detail p {
  margin: 0;
}

.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}

.page-login {
  min-height: 100vh;
  background: #061018 url("../assets/admin-login-bg.png") center / cover fixed no-repeat;
}

.page-login::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .38), rgba(0, 0, 0, .18) 46%, rgba(0, 8, 16, .48)),
    radial-gradient(circle at center, rgba(10, 20, 28, .06), rgba(0, 0, 0, .55));
  pointer-events: none;
}

.page-login .login {
  position: relative;
  z-index: 1;
}

.login-card {
  width: min(100%, 430px);
  display: grid;
  gap: 14px;
  padding: 24px;
}

.page-login .login-card {
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 18px;
  background: rgba(18, 20, 22, .58);
  color: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .42);
  backdrop-filter: blur(18px);
}

.login-logo {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 12px;
  margin: 0 auto 18px;
  line-height: 1;
  width: max-content;
  max-width: 100%;
}

.login-logo span {
  width: 54px;
  height: 54px;
  border: 2px solid #f28b2a;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(8, 17, 31, .55);
}

.login-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .28));
}

.login-logo strong {
  color: #fff;
  display: block;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  letter-spacing: 0;
}

.login-logo small {
  grid-column: 2;
  margin-top: -2px;
  color: rgba(255, 255, 255, .84);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.page-login .login-card label span,
.page-login .login-card p,
.page-login .login-card .register-choice legend,
.page-login .login-card .company-types legend {
  color: rgba(255, 255, 255, .86);
}

.page-login .login-card input,
.page-login .login-card select {
  border-color: rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.page-login .login-card select option {
  color: #0f1d36;
}

.page-login .login-card input::placeholder {
  color: rgba(255, 255, 255, .56);
}

.page-login .company-types {
  border-color: rgba(255, 255, 255, .24);
}

.page-login .company-type-option {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
}

.page-login .company-type-option span {
  color: #fff;
}

/* O cadastro usa fundo escuro. Mantem pagamentos no mesmo contexto visual
   para que os rotulos dos switches continuem legiveis. */
.page-login .login-card .company-payment-settings {
  border-color: rgba(255, 255, 255, .24);
  background: rgba(8, 17, 31, .58);
  color: #fff;
}

.page-login .login-card .company-payment-settings legend,
.page-login .login-card .company-payment-settings > p {
  color: rgba(255, 255, 255, .9);
}

.page-login .login-card .company-payment-options .toggle-line {
  border-color: rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.page-login .login-card .company-payment-options .toggle-line:hover {
  border-color: rgba(22, 199, 189, .72);
  background: rgba(22, 199, 189, .14);
}

.page-login .login-card .company-payment-options .toggle-line:has(input:checked) {
  border-color: rgba(22, 199, 189, .8);
  background: rgba(22, 199, 189, .18);
}

.page-login .login-card button {
  min-height: 54px;
  border-radius: 10px;
  background: #16c7bd;
  font-size: 18px;
}

.page-login .ghost-button {
  border-color: rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.page-login .flash {
  border-color: rgba(242, 139, 42, .45);
  background: rgba(242, 139, 42, .18);
  color: #fff;
}

.register-card {
  width: min(100%, 760px);
}

.register-card .register-company,
.register-card .register-link-company {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0;
}

.register-choice {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 10px 12px;
}

.register-choice legend {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  padding: 0 6px;
}

.register-choice label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-weight: 800;
}

.register-choice input {
  width: auto;
  min-height: auto;
}

.register-link {
  justify-content: center;
}

@media (max-width: 620px) {
  .register-card .register-company,
  .register-card .register-link-company {
    grid-template-columns: 1fr;
  }
}

.login-card h1 {
  margin: 0 0 6px;
}

.login-card p,
.flash {
  color: var(--muted);
  font-size: 13px;
}

.flash {
  margin-bottom: 14px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 12px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 800;
}

@media (max-width: 1080px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-layout.sidebar-collapsed .brand {
    justify-content: center;
  }

  .admin-layout.sidebar-collapsed .brand-copy,
  .admin-layout.sidebar-collapsed > aside nav > a > span,
  .admin-layout.sidebar-collapsed .sidebar-submenu-toggle > span,
  .admin-layout.sidebar-collapsed .sidebar-company {
    display: none;
  }

  .admin-layout.sidebar-collapsed > aside nav {
    grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
  }

  .admin-layout.sidebar-collapsed > aside nav > a {
    min-width: 48px;
    padding-inline: 0;
    justify-content: center;
  }

  .admin-layout.sidebar-collapsed .sidebar-submenu-toggle {
    min-width: 48px;
    padding-inline: 0;
    justify-content: center;
  }

  .admin-layout.sidebar-collapsed .sidebar-submenu-toggle .icon:last-child,
  .admin-layout.sidebar-collapsed .sidebar-submenu {
    display: none;
  }

  aside {
    position: static;
    height: auto;
  }

  aside nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-profile {
    display: none;
  }

  .sidebar-company {
    margin-top: 6px;
  }

  main {
    width: min(100% - 24px, 1240px);
  }

  .form-grid,
  .product-form,
  .filter-grid,
  .company-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-form > label,
  .company-form > .image-preview,
  .company-form > .company-table-qr,
  .company-form > label:has(textarea),
  .company-form .company-whatsapp,
  .company-form .company-types,
  .company-form .save-company {
    grid-column: span 1;
  }

  .company-whatsapp-grid,
  .company-whatsapp-status {
    grid-template-columns: 1fr;
  }

  .save-product {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  aside nav,
  .form-grid,
  .product-form,
  .filter-grid,
  .company-form {
    grid-template-columns: 1fr;
  }

  .company-form .full {
    grid-column: 1;
  }

  .company-form > label,
  .company-form > .image-preview,
  .company-form > .company-table-qr,
  .company-form > label:has(textarea),
  .company-form .company-whatsapp,
  .company-form .company-types,
  .company-form .save-company {
    grid-column: 1;
  }

  .company-whatsapp {
    padding: 12px;
  }

  .company-whatsapp header,
  .company-whatsapp-status article {
    grid-template-columns: 1fr;
  }

  .company-whatsapp header {
    display: grid;
  }

  .company-whatsapp-grid,
  .company-whatsapp-grid .full,
  .company-whatsapp-status {
    grid-template-columns: 1fr;
    grid-column: 1;
  }

  .company-table-qr {
    grid-template-columns: 1fr;
  }

  .company-table-qr-button,
  .company-table-qr-disabled {
    width: 100%;
  }

  .page-title h1 {
    font-size: 30px;
  }

  .topbar {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
  }

  .company-switcher {
    width: 100%;
    order: 3;
  }

  .company-switcher select {
    width: 100%;
  }

  .company-switcher .company-search-select-row {
    grid-template-columns: minmax(0, 1fr) 46px;
  }

  .topbar-user span {
    display: none;
  }

  .brand {
    padding-inline: 10px;
  }

  .sidebar-company {
    margin-inline: 0;
  }
}

@media print {
  @page {
    size: 80mm auto;
    margin: 3mm;
  }

  body {
    background: #fff;
  }

  body * {
    visibility: hidden !important;
  }

  .receipt-print,
  .receipt-print * {
    visibility: visible !important;
  }

  .receipt-print {
    display: block !important;
    position: absolute;
    inset: 0 auto auto 0;
    margin: 0;
    padding: 0;
  }

  .receipt {
    width: 76mm;
    box-shadow: none;
  }
}

/* PDV floating action menu */
.pdv-screen {
  grid-template-rows: 50px minmax(0, 1fr);
}

.pdv-side,
.pdv-work,
.pdv-received {
  grid-row: 2;
}

.pdv-mini-board {
  height: calc(100vh - 50px - 28px - 30px);
}

.pdv-footer {
  position: fixed !important;
  right: 18px;
  bottom: calc(82px + env(safe-area-inset-bottom));
  z-index: 35;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-height: auto;
  padding: 10px;
  border-radius: 12px;
  background: rgba(49, 91, 134, .97);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .28);
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.pdv-actions-open .pdv-footer {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.pdv-footer button,
.pdv-footer a {
  justify-content: flex-start;
  min-width: 190px;
  min-height: 38px;
  border-radius: 8px;
}

.pdv-fab {
  position: fixed !important;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 36;
  width: auto;
  min-height: 56px;
  gap: 8px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #f28b2a;
  color: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .30);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
}

.pdv-fab .icon {
  width: 24px;
  height: 24px;
}

.pdv-actions-open .pdv-fab {
  background: #197b83;
}

/* Restaurant PDV visual theme - desktop final cascade */
.page-pdv,
.page-pdv main {
  background: #eef3f8 !important;
}

.pdv-screen {
  min-height: 100vh !important;
  grid-template-columns: 240px minmax(720px, 1fr) 330px !important;
  grid-template-rows: 78px minmax(0, 1fr) !important;
  background: #eef3f8 !important;
  color: #12234a;
}

.pdv-top {
  grid-column: 1 / -1 !important;
  grid-template-columns: 240px 1fr 220px !important;
  min-height: 78px;
  border: 0 !important;
  background: linear-gradient(100deg, #071b3b 0%, #0f2f68 100%) !important;
  box-shadow: 0 2px 14px rgba(7, 27, 59, .16);
}

.pdv-top strong {
  padding-left: 28px !important;
  color: #fff;
  font-size: 22px !important;
  font-weight: 900 !important;
}

.pdv-top h1 {
  color: #fff !important;
  font-size: 25px !important;
  font-weight: 900 !important;
}

.pdv-side {
  grid-row: 2 !important;
  display: grid !important;
  grid-template-rows: auto auto auto 1fr auto;
  align-content: stretch !important;
  justify-items: stretch !important;
  gap: 0 !important;
  padding: 18px 16px 26px !important;
  background: linear-gradient(180deg, #0d2a55 0%, #132f57 100%) !important;
  color: #fff;
}

.pdv-logo-box {
  width: 100% !important;
  height: 150px !important;
  margin: 0 0 14px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: rgba(0, 0, 0, .24) !important;
}

.pdv-side-menu {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.pdv-side-menu a {
  min-height: 46px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 12px;
  border-radius: 9px;
  padding: 0 16px;
  color: #eff6ff;
  font-size: 15px;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
}

.pdv-side-menu a.active,
.pdv-side-menu a:hover {
  background: linear-gradient(90deg, #315ae8, #335bd3);
  color: #fff;
}

.pdv-work {
  grid-column: 2 !important;
  grid-row: 2 !important;
  margin: 10px 10px 10px 12px !important;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  background: #fff !important;
  box-shadow: 0 10px 28px rgba(15, 35, 74, .06);
}

.pdv-tabs {
  min-height: 52px !important;
  border: 0 !important;
  border-bottom: 1px solid #e5ebf3 !important;
  border-radius: 10px 10px 0 0 !important;
  box-shadow: none !important;
  padding: 9px 22px !important;
}

.pdv-tabs .active {
  border-color: #c7d8ff !important;
  background: #eef4ff !important;
  color: #244fdb !important;
  box-shadow: inset 0 0 0 1px #d9e5ff !important;
}

.pdv-tablebar {
  min-height: 70px;
  border: 0 !important;
  border-bottom: 1px solid #e5ebf3 !important;
  border-radius: 0 !important;
  background: #fff !important;
  padding: 12px 22px !important;
}

.pdv-tables-panel {
  height: calc(100vh - 78px - 20px - 124px);
  overflow: auto;
  border: 0 !important;
  background: #fff !important;
  padding: 14px 22px 24px !important;
}

.pdv-tables-grid {
  grid-template-columns: repeat(5, minmax(150px, 1fr)) !important;
  grid-auto-rows: 170px !important;
  gap: 12px !important;
}

.pdv-table-card {
  height: 170px !important;
  grid-template-rows: 28px 58px 20px 18px 28px !important;
  gap: 4px !important;
  border: 1px solid #dce5ef !important;
  border-left: 1px solid #dce5ef !important;
  border-radius: 9px !important;
  background: #fff !important;
  padding: 10px 12px !important;
  box-shadow: none !important;
}

.pdv-table-card.ocupado {
  border-color: #264be0 !important;
  box-shadow: inset 0 0 0 1px #264be0 !important;
}

.pdv-table-card header {
  grid-template-columns: 1fr auto !important;
}

.pdv-table-card header strong {
  color: #001b7a !important;
  font-size: 22px !important;
}

.pdv-table-card em {
  background: #e9f9ed !important;
  color: #16803a !important;
  text-transform: none !important;
}

.pdv-table-card.ocupado em {
  background: #e9142a !important;
  color: #fff !important;
}

.pdv-table-body {
  min-height: 50px !important;
  grid-template-columns: 1fr !important;
  place-items: center !important;
  border-radius: 7px !important;
  padding: 0 !important;
  background: linear-gradient(135deg, #008378, #009c91) !important;
}

.pdv-table-card.ocupado .pdv-table-body {
  grid-template-columns: 52px 1fr !important;
  background: linear-gradient(135deg, #ff4022, #ff6938) !important;
}

.pdv-table-body .pdv-table-icon {
  background: transparent !important;
  color: #fff !important;
}

.pdv-table-client {
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  text-transform: uppercase;
}

.pdv-table-total {
  color: #008a2e !important;
}

.pdv-table-card footer button,
.pdv-table-card footer a {
  width: 100% !important;
  min-height: 26px !important;
  border: 1px solid #dce5ef !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #34466a !important;
  font-size: 11px !important;
}

.pdv-table-card.ocupado footer a {
  border-color: #102b91 !important;
  background: #102b91 !important;
  color: #fff !important;
}

.pdv-received {
  grid-column: 3 !important;
  grid-row: 2 !important;
  margin: 10px 12px 10px 0 !important;
  border: 1px solid #dbe4f0 !important;
  border-radius: 10px;
  background: #fff !important;
  padding: 12px !important;
}

.pdv-received h2 {
  min-height: 36px !important;
  display: grid;
  place-items: center;
  margin: 0 0 16px !important;
  border-radius: 7px !important;
  background: linear-gradient(90deg, #2f54dc, #315fe0) !important;
  color: #fff !important;
  font-size: 17px !important;
}

.pdv-selected-empty {
  min-height: 250px !important;
  place-items: center;
  align-content: center;
  text-align: center;
}

.pdv-empty-box {
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(135deg, #f3f6ff, #dfe8ff);
  color: #b4c4ef;
}

.pdv-fab {
  right: 22px !important;
  bottom: 22px !important;
  min-height: 52px !important;
  background: #315fe0 !important;
}

@media (max-width: 980px) {
  .pdv-screen {
    grid-template-rows: 46px auto auto;
  }

  .pdv-received {
    grid-row: 3;
  }
}

@media (max-width: 680px) {
  .pdv-footer {
    right: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom));
    max-width: calc(100vw - 24px);
  }

  .pdv-footer button,
  .pdv-footer a {
    min-width: min(210px, calc(100vw - 44px));
  }

  .pdv-fab {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
  }
}

/* Delivery receiving screen - final override */
.pdv-delivery-receiving {
  grid-template-columns: 240px minmax(300px, 370px) minmax(430px, 1fr) minmax(300px, 340px) !important;
  grid-template-rows: 72px minmax(0, 1fr) !important;
  gap: 0 !important;
}

.pdv-delivery-receiving .pdv-top {
  grid-column: 2 / 5 !important;
}

.pdv-delivery-receiving .pdv-work {
  grid-column: 2 !important;
  grid-row: 2 !important;
  margin: 10px 10px 10px 12px !important;
}

.pdv-delivery-receiving .pdv-deliverybar {
  min-height: auto !important;
  padding: 10px 12px !important;
  gap: 10px !important;
}

.pdv-delivery-receiving .pdv-status-menu {
  min-width: 0 !important;
}

.pdv-delivery-receiving .pdv-mini-board {
  grid-template-columns: 1fr !important;
  align-content: start !important;
  gap: 10px !important;
  height: calc(100vh - 216px) !important;
  max-height: none !important;
  padding: 10px !important;
  overflow: auto !important;
}

.pdv-delivery-receiving .pdv-mini-card {
  min-height: 128px !important;
  border-radius: 12px !important;
  border-color: #dbe4f0 !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08) !important;
}

.pdv-delivery-receiving .pdv-mini-card strong {
  padding-right: 88px !important;
}

.pdv-delivery-receiving .pdv-mini-card.selected {
  border-color: #315fe0 !important;
  box-shadow: 0 0 0 2px rgba(49, 95, 224, .16), 0 18px 34px rgba(15, 23, 42, .12) !important;
}

.pdv-order-live-detail,
.pdv-customer-panel {
  min-width: 0;
  min-height: 0;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, .09);
}

.pdv-order-live-detail {
  grid-column: 3;
  grid-row: 2;
  margin: 10px 10px 10px 0;
  padding: 16px;
  overflow: auto;
}

.pdv-order-live-detail.empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
  color: #64748b;
}

.pdv-order-live-detail.empty h2,
.pdv-live-detail-top h2,
.pdv-customer-card h2,
.pdv-new-order-card h2 {
  margin: 2px 0 0;
  color: #0f2d5c;
  font-size: 22px;
  letter-spacing: 0;
}

.pdv-live-detail-top,
.pdv-customer-card header,
.pdv-new-order-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.pdv-live-detail-top small,
.pdv-customer-card small,
.pdv-new-order-card small {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.pdv-live-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eaf1ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.pdv-live-status.status-cancelado {
  background: #fee2e2;
  color: #b91c1c;
}

.pdv-live-status.status-finalizado,
.pdv-live-status.status-entregue {
  background: #dcfce7;
  color: #047857;
}

.pdv-live-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.pdv-live-metrics p {
  margin: 0;
  min-width: 0;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.pdv-live-metrics span,
.pdv-live-metrics small {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.pdv-live-metrics b {
  display: block;
  margin-top: 3px;
  color: #0f2d5c;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.pdv-order-live-detail .pdv-detail-tabs {
  margin-top: 12px;
  box-shadow: none;
}

.pdv-order-live-detail .pdv-detail-tab-nav {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  border-radius: 12px;
}

.pdv-live-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.pdv-live-actions form,
.pdv-live-actions a {
  flex: 1 1 150px;
}

.pdv-live-actions button,
.pdv-live-actions a {
  width: 100%;
  min-height: 42px;
  justify-content: center;
}

.pdv-customer-panel {
  grid-column: 4;
  grid-row: 2;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 10px 12px 10px 0;
  padding: 12px;
  overflow: auto;
}

.pdv-customer-card,
.pdv-new-order-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

.pdv-customer-card header > svg,
.pdv-new-order-card header > svg {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 10px;
  background: #eef4ff;
  color: #315fe0;
}

.pdv-customer-name {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #12325f, #315fe0);
  color: #fff;
}

.pdv-customer-name strong {
  font-size: 17px;
}

.pdv-customer-name span {
  color: rgba(255, 255, 255, .82);
  font-weight: 700;
}

.pdv-customer-info {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}

.pdv-customer-info dt {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.pdv-customer-info dd {
  margin: -4px 0 2px;
  color: #0f2d5c;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.pdv-customer-note,
.pdv-customer-empty,
.pdv-auto-help {
  margin: 12px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.pdv-customer-note {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 12px;
  background: #fff7ed;
  color: #9a3412;
}

.pdv-new-order-alert {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 12px;
  background: #fff7ed;
  color: #9a3412;
}

.pdv-new-order-alert strong {
  color: #7c2d12;
  font-size: 16px;
}

.pdv-new-order-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 22px 10px;
  color: #64748b;
  text-align: center;
}

.pdv-new-order-empty svg {
  width: 54px;
  height: 54px;
  color: #b8c7e8;
}

.pdv-new-order-empty strong {
  color: #0f2d5c;
}

.pdv-auto-accept {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: #0f2d5c;
  font-size: 13px;
  font-weight: 900;
}

.pdv-auto-accept input {
  width: 16px;
  height: 16px;
  accent-color: #315fe0;
}

@media (max-width: 1500px) {
  .pdv-delivery-receiving {
    grid-template-columns: 220px minmax(280px, 330px) minmax(390px, 1fr) 300px !important;
  }

  .pdv-live-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .pdv-delivery-receiving {
    grid-template-columns: 1fr !important;
    grid-template-rows: 64px auto auto auto auto !important;
  }

  .pdv-delivery-receiving .pdv-top {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .pdv-delivery-receiving .pdv-side {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }

  .pdv-delivery-receiving .pdv-work {
    grid-column: 1 !important;
    grid-row: 3 !important;
    margin: 10px !important;
  }

  .pdv-delivery-receiving .pdv-mini-board {
    height: auto !important;
    max-height: none !important;
  }

  .pdv-order-live-detail {
    grid-column: 1 !important;
    grid-row: 4 !important;
    margin: 0 10px 10px !important;
  }

  .pdv-customer-panel {
    grid-column: 1 !important;
    grid-row: 5 !important;
    grid-template-rows: auto auto;
    margin: 0 10px 10px !important;
  }
}

@media (max-width: 720px) {
  .pdv-delivery-receiving .pdv-deliverybar {
    grid-template-columns: 1fr !important;
  }

  .pdv-live-metrics {
    grid-template-columns: 1fr;
  }

  .pdv-live-detail-top,
  .pdv-customer-card header,
  .pdv-new-order-card header,
  .pdv-live-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .pdv-live-status,
  .pdv-live-actions form,
  .pdv-live-actions a {
    width: 100%;
  }
}

/* Delivery receiving screen */
.pdv-delivery-receiving {
  grid-template-columns: 240px minmax(300px, 370px) minmax(430px, 1fr) minmax(300px, 340px) !important;
  grid-template-rows: 72px minmax(0, 1fr) !important;
  gap: 0 !important;
}

.pdv-delivery-receiving .pdv-top {
  grid-column: 2 / 5 !important;
}

.pdv-delivery-receiving .pdv-work {
  grid-column: 2 !important;
  grid-row: 2 !important;
  margin: 10px 10px 10px 12px !important;
}

.pdv-delivery-receiving .pdv-deliverybar {
  min-height: auto !important;
  padding: 10px 12px !important;
  gap: 10px !important;
}

.pdv-delivery-receiving .pdv-deliverybar > strong {
  font-size: 15px !important;
}

.pdv-delivery-receiving .pdv-status-menu {
  min-width: 0 !important;
}

.pdv-delivery-receiving .pdv-mini-board {
  grid-template-columns: 1fr !important;
  align-content: start !important;
  gap: 10px !important;
  height: calc(100vh - 216px) !important;
  max-height: none !important;
  padding: 10px !important;
  overflow: auto !important;
}

.pdv-delivery-receiving .pdv-mini-card {
  min-height: 128px !important;
  border-radius: 12px !important;
  border-color: #dbe4f0 !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08) !important;
}

.pdv-delivery-receiving .pdv-mini-card strong {
  padding-right: 88px !important;
}

.pdv-delivery-receiving .pdv-mini-card.selected {
  border-color: #315fe0 !important;
  box-shadow: 0 0 0 2px rgba(49, 95, 224, .16), 0 18px 34px rgba(15, 23, 42, .12) !important;
}

.pdv-order-live-detail,
.pdv-customer-panel {
  min-width: 0;
  min-height: 0;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, .09);
}

.pdv-order-live-detail {
  grid-column: 3;
  grid-row: 2;
  margin: 10px 10px 10px 0;
  padding: 16px;
  overflow: auto;
}

.pdv-order-live-detail.empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
  color: #64748b;
}

.pdv-order-live-detail.empty h2 {
  margin: 0;
  color: #0f2d5c;
}

.pdv-live-detail-top,
.pdv-customer-card header,
.pdv-new-order-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.pdv-live-detail-top small,
.pdv-customer-card small,
.pdv-new-order-card small {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.pdv-live-detail-top h2,
.pdv-customer-card h2,
.pdv-new-order-card h2 {
  margin: 2px 0 0;
  color: #0f2d5c;
  font-size: 22px;
  letter-spacing: 0;
}

.pdv-live-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eaf1ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.pdv-live-status.status-cancelado {
  background: #fee2e2;
  color: #b91c1c;
}

.pdv-live-status.status-finalizado,
.pdv-live-status.status-entregue {
  background: #dcfce7;
  color: #047857;
}

.pdv-live-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.pdv-live-metrics p {
  margin: 0;
  min-width: 0;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.pdv-live-metrics span,
.pdv-live-metrics small {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.pdv-live-metrics b {
  display: block;
  margin-top: 3px;
  color: #0f2d5c;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.pdv-order-live-detail .pdv-detail-tabs {
  margin-top: 12px;
  box-shadow: none;
}

.pdv-order-live-detail .pdv-detail-tab-nav {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  border-radius: 12px;
}

.pdv-live-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.pdv-live-actions form,
.pdv-live-actions a {
  flex: 1 1 150px;
}

.pdv-live-actions button,
.pdv-live-actions a {
  width: 100%;
  min-height: 42px;
  justify-content: center;
}

.pdv-customer-panel {
  grid-column: 4;
  grid-row: 2;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 10px 12px 10px 0;
  padding: 12px;
  overflow: auto;
}

.pdv-customer-card,
.pdv-new-order-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
}

.pdv-customer-card header > svg,
.pdv-new-order-card header > svg {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 10px;
  background: #eef4ff;
  color: #315fe0;
}

.pdv-customer-name {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #12325f, #315fe0);
  color: #fff;
}

.pdv-customer-name strong {
  font-size: 17px;
}

.pdv-customer-name span {
  color: rgba(255, 255, 255, .82);
  font-weight: 700;
}

.pdv-customer-info {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}

.pdv-customer-info dt {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.pdv-customer-info dd {
  margin: -4px 0 2px;
  color: #0f2d5c;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.pdv-customer-note,
.pdv-customer-empty,
.pdv-auto-help {
  margin: 12px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.pdv-customer-note {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 12px;
  background: #fff7ed;
  color: #9a3412;
}

.pdv-new-order-alert {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 12px;
  background: #fff7ed;
  color: #9a3412;
}

.pdv-new-order-alert strong {
  color: #7c2d12;
  font-size: 16px;
}

.pdv-new-order-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 22px 10px;
  color: #64748b;
  text-align: center;
}

.pdv-new-order-empty svg {
  width: 54px;
  height: 54px;
  color: #b8c7e8;
}

.pdv-new-order-empty strong {
  color: #0f2d5c;
}

.pdv-auto-accept {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: #0f2d5c;
  font-size: 13px;
  font-weight: 900;
}

.pdv-auto-accept input {
  width: 16px;
  height: 16px;
  accent-color: #315fe0;
}

@media (max-width: 1500px) {
  .pdv-delivery-receiving {
    grid-template-columns: 220px minmax(280px, 330px) minmax(390px, 1fr) 300px !important;
  }

  .pdv-live-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .pdv-delivery-receiving {
    grid-template-columns: 1fr !important;
    grid-template-rows: 64px auto auto auto auto !important;
  }

  .pdv-delivery-receiving .pdv-top {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .pdv-delivery-receiving .pdv-side {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }

  .pdv-delivery-receiving .pdv-work {
    grid-column: 1 !important;
    grid-row: 3 !important;
    margin: 10px !important;
  }

  .pdv-delivery-receiving .pdv-mini-board {
    height: auto !important;
    max-height: none !important;
  }

  .pdv-order-live-detail {
    grid-column: 1 !important;
    grid-row: 4 !important;
    margin: 0 10px 10px !important;
  }

  .pdv-customer-panel {
    grid-column: 1 !important;
    grid-row: 5 !important;
    grid-template-rows: auto auto;
    margin: 0 10px 10px !important;
  }
}

@media (max-width: 720px) {
  .pdv-delivery-receiving .pdv-deliverybar {
    grid-template-columns: 1fr !important;
  }

  .pdv-live-metrics {
    grid-template-columns: 1fr;
  }

  .pdv-live-detail-top,
  .pdv-customer-card header,
  .pdv-new-order-card header,
  .pdv-live-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .pdv-live-status,
  .pdv-live-actions form,
  .pdv-live-actions a {
    width: 100%;
  }
}

/* Restaurant PDV visual theme - final cascade */
.page-pdv,
.page-pdv main {
  background: #eef3f8 !important;
}

.pdv-screen {
  min-height: 100vh !important;
  grid-template-columns: 240px minmax(720px, 1fr) 330px !important;
  grid-template-rows: 78px minmax(0, 1fr) !important;
  background: #eef3f8 !important;
  color: #12234a;
}

.pdv-top {
  grid-column: 1 / -1 !important;
  grid-template-columns: 240px 1fr 220px !important;
  min-height: 78px;
  border: 0 !important;
  background: linear-gradient(100deg, #071b3b 0%, #0f2f68 100%) !important;
  box-shadow: 0 2px 14px rgba(7, 27, 59, .16);
}

.pdv-top strong {
  padding-left: 76px !important;
  color: #fff;
  font-size: 22px !important;
  font-weight: 900 !important;
}

.pdv-top h1 {
  color: #fff !important;
  font-size: 25px !important;
  font-weight: 900 !important;
}

.pdv-side {
  grid-row: 2 !important;
  display: grid !important;
  grid-template-rows: auto auto auto 1fr auto;
  align-content: stretch !important;
  justify-items: stretch !important;
  gap: 0 !important;
  padding: 18px 16px 26px !important;
  background: linear-gradient(180deg, #0d2a55 0%, #132f57 100%) !important;
  color: #fff;
}

.pdv-logo-box {
  width: 100% !important;
  height: 150px !important;
  margin: 0 0 14px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: rgba(0, 0, 0, .24) !important;
}

.pdv-side > strong,
.pdv-side > small {
  color: #fff !important;
  text-transform: uppercase;
}

.pdv-side-menu {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.pdv-side-menu a {
  min-height: 46px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 12px;
  border-radius: 9px;
  padding: 0 16px;
  color: #eff6ff;
  font-size: 15px;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
}

.pdv-side-menu a.active,
.pdv-side-menu a:hover {
  background: linear-gradient(90deg, #315ae8, #335bd3);
  color: #fff;
}

.pdv-work {
  grid-column: 2 !important;
  grid-row: 2 !important;
  margin: 10px 10px 10px 12px !important;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  background: #fff !important;
  box-shadow: 0 10px 28px rgba(15, 35, 74, .06);
}

.pdv-tabs {
  min-height: 52px !important;
  border: 0 !important;
  border-bottom: 1px solid #e5ebf3 !important;
  border-radius: 10px 10px 0 0 !important;
  box-shadow: none !important;
  padding: 9px 22px !important;
}

.pdv-tabs a {
  min-width: 132px;
  min-height: 34px !important;
  border-radius: 999px !important;
  color: #293b5f !important;
  background: transparent !important;
}

.pdv-tabs .active {
  border-color: #c7d8ff !important;
  background: #eef4ff !important;
  color: #244fdb !important;
  box-shadow: inset 0 0 0 1px #d9e5ff !important;
}

.pdv-tablebar {
  min-height: 70px;
  align-items: center !important;
  border: 0 !important;
  border-bottom: 1px solid #e5ebf3 !important;
  border-radius: 0 !important;
  background: #fff !important;
  padding: 12px 22px !important;
}

.pdv-tables-panel {
  height: calc(100vh - 78px - 20px - 124px);
  overflow: auto;
  border: 0 !important;
  background: #fff !important;
  padding: 14px 22px 24px !important;
}

.pdv-tables-grid {
  grid-template-columns: repeat(5, minmax(150px, 1fr)) !important;
  grid-auto-rows: 170px !important;
  gap: 12px !important;
}

.pdv-table-card {
  height: 170px !important;
  grid-template-rows: 28px 58px 20px 18px 28px !important;
  gap: 4px !important;
  border: 1px solid #dce5ef !important;
  border-left: 1px solid #dce5ef !important;
  border-radius: 9px !important;
  background: #fff !important;
  padding: 10px 12px !important;
  box-shadow: none !important;
}

.pdv-table-card.ocupado {
  border-color: #264be0 !important;
  box-shadow: inset 0 0 0 1px #264be0 !important;
}

.pdv-table-card header {
  grid-template-columns: 1fr auto !important;
}

.pdv-table-card header strong {
  color: #001b7a !important;
  font-size: 22px !important;
}

.pdv-table-card em {
  border-radius: 999px !important;
  background: #e9f9ed !important;
  color: #16803a !important;
  text-transform: none !important;
}

.pdv-table-card.ocupado em {
  background: #e9142a !important;
  color: #fff !important;
}

.pdv-table-body {
  min-height: 50px !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  place-items: center !important;
  border-radius: 7px !important;
  padding: 0 !important;
  background: linear-gradient(135deg, #008378, #009c91) !important;
}

.pdv-table-card.ocupado .pdv-table-body {
  grid-template-columns: 52px 1fr !important;
  background: linear-gradient(135deg, #ff4022, #ff6938) !important;
}

.pdv-table-body .pdv-table-icon {
  background: transparent !important;
  color: #fff !important;
}

.pdv-table-body .pdv-table-icon .icon {
  width: 32px !important;
  height: 32px !important;
}

.pdv-table-client {
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  text-transform: uppercase;
}

.pdv-table-total {
  color: #008a2e !important;
  font-size: 14px !important;
}

.pdv-table-card footer button,
.pdv-table-card footer a {
  width: 100% !important;
  min-height: 26px !important;
  border: 1px solid #dce5ef !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #34466a !important;
  font-size: 11px !important;
}

.pdv-table-card.ocupado footer a {
  border-color: #102b91 !important;
  background: #102b91 !important;
  color: #fff !important;
}

.pdv-received {
  grid-column: 3 !important;
  grid-row: 2 !important;
  margin: 10px 12px 10px 0 !important;
  border: 1px solid #dbe4f0 !important;
  border-radius: 10px;
  background: #fff !important;
  padding: 12px !important;
  box-shadow: 0 10px 28px rgba(15, 35, 74, .06);
}

.pdv-received h2 {
  min-height: 36px !important;
  display: grid;
  place-items: center;
  margin: 0 0 16px !important;
  border-radius: 7px !important;
  background: linear-gradient(90deg, #2f54dc, #315fe0) !important;
  color: #fff !important;
  font-size: 17px !important;
}

.pdv-selected-empty {
  min-height: 250px !important;
  place-items: center;
  align-content: center;
  text-align: center;
}

.pdv-empty-box {
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(135deg, #f3f6ff, #dfe8ff);
  color: #b4c4ef;
}

.pdv-fab {
  right: 22px !important;
  bottom: 22px !important;
  min-height: 52px !important;
  border-radius: 999px !important;
  background: #315fe0 !important;
}

/* Restaurant PDV visual theme */
.page-pdv {
  background: #eef3f8 !important;
}

.page-pdv main {
  background: #eef3f8 !important;
}

.pdv-screen {
  min-height: 100vh !important;
  grid-template-columns: 240px minmax(720px, 1fr) 330px !important;
  grid-template-rows: 78px minmax(0, 1fr) !important;
  gap: 0 !important;
  background: #eef3f8 !important;
  color: #12234a;
}

.pdv-top {
  grid-column: 1 / -1 !important;
  grid-template-columns: 240px 1fr 220px !important;
  min-height: 78px;
  border: 0 !important;
  background: linear-gradient(100deg, #071b3b 0%, #0f2f68 100%) !important;
  box-shadow: 0 2px 14px rgba(7, 27, 59, .16);
}

.pdv-top strong {
  padding-left: 76px !important;
  color: #fff;
  font-size: 22px !important;
  font-weight: 900 !important;
  letter-spacing: .02em;
}

.pdv-top strong::before {
  content: none;
}

.pdv-top h1 {
  color: #fff !important;
  font-size: 25px !important;
  font-weight: 900 !important;
  letter-spacing: .01em;
}

.pdv-top a {
  justify-self: end;
  margin-right: 28px;
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  color: #fff !important;
  font-size: 0 !important;
}

.pdv-top a::before {
  content: "Admin\A Caixa";
  white-space: pre;
  display: inline-grid;
  place-items: center start;
  min-height: 40px;
  padding-left: 50px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  background:
    radial-gradient(circle at 20px 20px, #fff 0 6px, transparent 7px),
    radial-gradient(circle at 20px 20px, #dce9ff 0 20px, transparent 21px);
}

.pdv-side {
  grid-row: 2 !important;
  display: grid !important;
  grid-template-rows: auto auto auto 1fr auto;
  align-content: stretch !important;
  justify-items: stretch !important;
  gap: 0 !important;
  padding: 18px 16px 26px !important;
  background: linear-gradient(180deg, #0d2a55 0%, #132f57 100%) !important;
  color: #fff;
  text-align: center;
}

.pdv-logo-box {
  width: 100% !important;
  height: 150px !important;
  margin: 0 0 14px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: rgba(0, 0, 0, .24) !important;
}

.pdv-logo-box img,
.pdv-side img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 10px;
  object-fit: contain !important;
  background: transparent !important;
}

.pdv-side > strong {
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1.35;
  text-transform: uppercase;
}

.pdv-side > small {
  margin-bottom: 24px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.pdv-side-menu {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.pdv-side-menu a {
  min-height: 46px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 12px;
  border-radius: 9px;
  padding: 0 16px;
  color: #eff6ff;
  font-size: 15px;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
}

.pdv-side-menu a.active,
.pdv-side-menu a:hover {
  background: linear-gradient(90deg, #315ae8, #335bd3);
  color: #fff;
}

.pdv-side-menu .icon {
  width: 22px;
  height: 22px;
}

.pdv-side > b {
  align-self: end;
  margin: 0 !important;
  color: rgba(255, 255, 255, .86);
  font-size: 13px !important;
  line-height: 1.7;
}

.pdv-work {
  grid-column: 2 !important;
  grid-row: 2 !important;
  margin: 10px 10px 10px 12px !important;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  background: #fff !important;
  box-shadow: 0 10px 28px rgba(15, 35, 74, .06);
}

.pdv-tabs {
  min-height: 52px !important;
  border: 0 !important;
  border-bottom: 1px solid #e5ebf3 !important;
  border-radius: 10px 10px 0 0 !important;
  box-shadow: none !important;
  padding: 9px 22px !important;
}

.pdv-tabs a {
  min-width: 132px;
  min-height: 34px !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  color: #293b5f !important;
  background: transparent !important;
}

.pdv-tabs .active {
  border-color: #c7d8ff !important;
  background: #eef4ff !important;
  color: #244fdb !important;
  box-shadow: inset 0 0 0 1px #d9e5ff !important;
}

.pdv-tablebar {
  min-height: 70px;
  align-items: center !important;
  border: 0 !important;
  border-bottom: 1px solid #e5ebf3 !important;
  border-radius: 0 !important;
  background: #fff !important;
  padding: 12px 22px !important;
}

.pdv-tablebar form {
  align-items: center !important;
}

.pdv-tablebar label {
  position: relative;
  min-width: 250px;
  color: transparent !important;
}

.pdv-tablebar label::before {
  content: "Numero da Mesa";
  position: absolute;
  left: 13px;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  color: #6b7894;
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
}

.pdv-tablebar input {
  min-height: 42px !important;
  border: 1px solid #dce4ef !important;
  border-radius: 7px !important;
  padding-left: 14px !important;
  color: transparent;
}

.pdv-tablebar input:focus,
.pdv-tablebar input:not(:placeholder-shown) {
  color: #12234a;
}

.pdv-tablebar button,
.pdv-refresh,
.pdv-all-status,
.pdv-table-legend {
  min-height: 32px !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

.pdv-table-legend {
  padding: 7px 14px !important;
  border: 1px solid #cfead7;
  background: #edfff3;
  color: #15803d;
  font-weight: 900;
}

.pdv-table-legend:has(.ocupado) {
  border-color: #ffd2d2;
  background: #fff2f2;
  color: #dc2626;
}

.pdv-tables-panel {
  height: calc(100vh - 78px - 20px - 124px);
  overflow: auto;
  border: 0 !important;
  background: #fff !important;
  padding: 14px 22px 24px !important;
}

.pdv-tables-grid {
  grid-template-columns: repeat(5, minmax(150px, 1fr)) !important;
  grid-auto-rows: 170px !important;
  gap: 12px !important;
}

.pdv-table-card {
  height: 170px !important;
  display: grid !important;
  grid-template-rows: 28px 58px 20px 18px 28px !important;
  gap: 4px !important;
  border: 1px solid #dce5ef !important;
  border-left: 1px solid #dce5ef !important;
  border-radius: 9px !important;
  background: #fff !important;
  padding: 10px 12px !important;
  box-shadow: none !important;
}

.pdv-table-card.ocupado {
  border-color: #264be0 !important;
  box-shadow: inset 0 0 0 1px #264be0 !important;
}

.pdv-table-card header {
  grid-template-columns: 1fr auto !important;
}

.pdv-table-card header strong {
  color: #001b7a !important;
  font-size: 22px !important;
  font-weight: 900;
}

.pdv-table-card em {
  min-height: 23px !important;
  border-radius: 999px !important;
  padding: 4px 10px !important;
  background: #e9f9ed !important;
  color: #16803a !important;
  font-size: 11px !important;
  text-transform: none !important;
}

.pdv-table-card.ocupado em {
  background: #e9142a !important;
  color: #fff !important;
}

.pdv-table-body {
  min-height: 50px !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  place-items: center !important;
  border-radius: 7px !important;
  padding: 0 !important;
  background: linear-gradient(135deg, #008378, #009c91) !important;
}

.pdv-table-card.ocupado .pdv-table-body {
  grid-template-columns: 52px 1fr !important;
  background: linear-gradient(135deg, #ff4022, #ff6938) !important;
  color: #fff;
}

.pdv-table-body .pdv-table-icon {
  width: auto !important;
  height: auto !important;
  grid-column: auto !important;
  background: transparent !important;
  color: #fff !important;
}

.pdv-table-body .pdv-table-icon .icon {
  width: 32px !important;
  height: 32px !important;
  stroke-width: 1.8 !important;
}

.pdv-table-client {
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  text-transform: uppercase;
}

.pdv-table-total {
  color: #008a2e !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}

.pdv-table-card small {
  color: #1f2d4d !important;
  font-size: 11px !important;
}

.pdv-table-card footer {
  display: block !important;
  overflow: visible !important;
}

.pdv-table-card footer form,
.pdv-table-card footer a {
  display: block !important;
}

.pdv-table-card footer button,
.pdv-table-card footer a {
  width: 100% !important;
  min-height: 26px !important;
  border: 1px solid #dce5ef !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #34466a !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

.pdv-table-card.ocupado footer a {
  border-color: #102b91 !important;
  background: #102b91 !important;
  color: #fff !important;
}

.pdv-received {
  grid-column: 3 !important;
  grid-row: 2 !important;
  margin: 10px 12px 10px 0 !important;
  border: 1px solid #dbe4f0 !important;
  border-radius: 10px;
  background: #fff !important;
  padding: 12px !important;
  box-shadow: 0 10px 28px rgba(15, 35, 74, .06);
}

.pdv-received h2 {
  min-height: 36px !important;
  display: grid;
  place-items: center;
  margin: 0 0 16px !important;
  border-radius: 7px !important;
  background: linear-gradient(90deg, #2f54dc, #315fe0) !important;
  color: #fff !important;
  font-size: 17px !important;
  line-height: 1 !important;
}

.pdv-selected-empty {
  min-height: 250px !important;
  place-items: center;
  align-content: center;
  color: #36435f;
  text-align: center;
}

.pdv-empty-box {
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(135deg, #f3f6ff, #dfe8ff);
  color: #b4c4ef;
}

.pdv-empty-box .icon {
  width: 62px;
  height: 62px;
}

.pdv-selected-empty span {
  font-weight: 900;
}

.pdv-auto {
  align-self: start !important;
  margin-top: 18px;
  color: #465570;
  font-weight: 800;
}

.pdv-fab {
  right: 22px !important;
  bottom: 22px !important;
  min-height: 52px !important;
  border-radius: 999px !important;
  background: #315fe0 !important;
  box-shadow: 0 12px 30px rgba(49, 95, 224, .28) !important;
}

/* Final PDV customer-focused cards and compact status menu override */
.pdv-filterbar {
  gap: 10px !important;
}

.pdv-status-menu {
  display: inline-grid !important;
  grid-template-columns: minmax(190px, 260px) 40px;
  align-items: end;
  gap: 6px;
  margin: 0;
}

.pdv-status-menu label {
  display: grid;
  gap: 3px;
  margin: 0;
}

.pdv-status-menu label span {
  color: #315b86;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.pdv-status-menu select {
  width: 100%;
  min-height: 36px;
  border: 1px solid #9fb1c5;
  border-radius: 6px;
  background: #fff;
  color: #0f1d36;
  font-size: 13px;
  font-weight: 900;
}

.pdv-status-menu button {
  width: 40px;
  min-width: 40px;
  min-height: 36px;
  padding: 0;
  border-radius: 6px;
}

.pdv-mini-board {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important;
  grid-auto-rows: 126px !important;
}

.pdv-mini-card {
  grid-template-rows: auto auto auto 1fr !important;
  gap: 4px !important;
  padding: 10px 10px 7px !important;
}

.pdv-mini-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: #111827 !important;
  font-size: 17px !important;
  font-weight: 900;
  line-height: 1.1;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pdv-mini-card > span {
  margin-top: 0 !important;
  color: #536179;
  font-size: 11px;
  font-weight: 900;
}

.pdv-mini-card b {
  color: #047857 !important;
  font-size: 15px !important;
}

.pdv-mini-card .pdv-delivery-badge {
  right: 9px !important;
  top: 48px !important;
  align-items: center;
  gap: 3px;
  max-width: 86px;
  font-size: 12px !important;
}

.pdv-mini-card .pdv-delivery-badge .icon {
  width: 22px !important;
  height: 22px !important;
}

.pdv-mini-card small {
  display: block;
  min-height: 28px;
  border-top: 1px solid #e5e7eb;
  color: #4b5563;
  font-size: 10px !important;
  line-height: 1.2;
}

.pdv-mini-card small mark {
  display: inline-block;
  margin-right: 4px;
  border-radius: 4px;
  padding: 2px 4px;
  background: #eaf2ff;
  color: #123f73;
  font-weight: 900;
}

/* Final PDV customer-focused cards and compact status menu override */
.pdv-filterbar {
  gap: 10px !important;
}

.pdv-status-menu {
  display: inline-grid !important;
  grid-template-columns: minmax(190px, 260px) 40px;
  align-items: end;
  gap: 6px;
  margin: 0;
}

.pdv-status-menu label {
  display: grid;
  gap: 3px;
  margin: 0;
}

.pdv-status-menu label span {
  color: #315b86;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.pdv-status-menu select {
  width: 100%;
  min-height: 36px;
  border: 1px solid #9fb1c5;
  border-radius: 6px;
  background: #fff;
  color: #0f1d36;
  font-size: 13px;
  font-weight: 900;
}

.pdv-status-menu button {
  width: 40px;
  min-width: 40px;
  min-height: 36px;
  padding: 0;
  border-radius: 6px;
}

.pdv-mini-board {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important;
  grid-auto-rows: 126px !important;
}

.pdv-mini-card {
  grid-template-rows: auto auto auto 1fr !important;
  gap: 4px !important;
  padding: 10px 10px 7px !important;
}

.pdv-mini-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: #111827 !important;
  font-size: 17px !important;
  font-weight: 900;
  line-height: 1.1;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pdv-mini-card > span {
  margin-top: 0 !important;
  color: #536179;
  font-size: 11px;
  font-weight: 900;
}

.pdv-mini-card b {
  color: #047857 !important;
  font-size: 15px !important;
}

.pdv-mini-card .pdv-delivery-badge {
  right: 9px !important;
  top: 48px !important;
  align-items: center;
  gap: 3px;
  max-width: 86px;
  font-size: 12px !important;
}

.pdv-mini-card .pdv-delivery-badge .icon {
  width: 22px !important;
  height: 22px !important;
}

.pdv-mini-card small {
  display: block;
  min-height: 28px;
  border-top: 1px solid #e5e7eb;
  color: #4b5563;
  font-size: 10px !important;
  line-height: 1.2;
}

.pdv-mini-card small mark {
  display: inline-block;
  margin-right: 4px;
  border-radius: 4px;
  padding: 2px 4px;
  background: #eaf2ff;
  color: #123f73;
  font-weight: 900;
}

/* PDV order cards focused on customer name and compact status menu */
.pdv-filterbar {
  gap: 10px !important;
}

.pdv-status-menu {
  display: inline-grid;
  grid-template-columns: minmax(190px, 260px) 40px;
  align-items: end;
  gap: 6px;
  margin: 0;
}

.pdv-status-menu label {
  display: grid;
  gap: 3px;
  margin: 0;
}

.pdv-status-menu label span {
  color: #315b86;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.pdv-status-menu select {
  width: 100%;
  min-height: 36px;
  border: 1px solid #9fb1c5;
  border-radius: 6px;
  background: #fff;
  color: #0f1d36;
  font-size: 13px;
  font-weight: 900;
}

.pdv-status-menu button {
  width: 40px;
  min-width: 40px;
  min-height: 36px;
  padding: 0;
  border-radius: 6px;
}

.pdv-mini-board {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important;
  grid-auto-rows: 126px !important;
}

.pdv-mini-card {
  grid-template-rows: auto auto auto 1fr !important;
  gap: 4px;
  padding: 10px 10px 7px !important;
}

.pdv-mini-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: #111827 !important;
  font-size: 17px !important;
  font-weight: 900;
  line-height: 1.1;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pdv-mini-card > span {
  margin-top: 0 !important;
  color: #536179;
  font-size: 11px;
  font-weight: 900;
}

.pdv-mini-card b {
  color: #047857 !important;
  font-size: 15px !important;
}

.pdv-mini-card .pdv-delivery-badge {
  right: 9px;
  top: 48px;
  align-items: center;
  gap: 3px;
  max-width: 86px;
  font-size: 12px !important;
}

.pdv-mini-card .pdv-delivery-badge .icon {
  width: 22px !important;
  height: 22px !important;
}

.pdv-mini-card small {
  display: block;
  min-height: 28px;
  border-top: 1px solid #e5e7eb;
  color: #4b5563;
  font-size: 10px !important;
  line-height: 1.2;
}

.pdv-mini-card small mark {
  display: inline-block;
  margin-right: 4px;
  border-radius: 4px;
  padding: 2px 4px;
  background: #eaf2ff;
  color: #123f73;
  font-weight: 900;
}

.deliveryman-form {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.deliveryman-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin: 14px 0 18px;
}

.deliveryman-summary article,
.pdv-deliveryman-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(16, 24, 40, .05);
}

.deliveryman-summary article {
  padding: 16px;
}

.deliveryman-summary span,
.deliveryman-summary small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.deliveryman-summary strong {
  display: block;
  margin: 7px 0;
  color: var(--ink);
  font-size: 22px;
}

.pdv-deliveryman-box {
  margin-top: 12px;
  padding: 12px;
}

.pdv-deliveryman-box header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.pdv-deliveryman-box header small,
.pdv-deliveryman-box p {
  display: block;
  color: rgba(255, 255, 255, .86);
  font-size: 12px;
  font-weight: 800;
}

.pdv-deliveryman-box header b {
  color: #fff;
}

.pdv-deliveryman-box header a {
  min-height: 34px;
  border-radius: 8px;
  padding: 0 10px;
  background: #0f7b83;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pdv-deliveryman-box header a .icon {
  width: 16px;
  height: 16px;
}

.pdv-deliveryman-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.pdv-deliveryman-actions form {
  display: flex;
  gap: 8px;
  min-width: 0;
}

.pdv-deliveryman-actions select {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  font-weight: 800;
}

.pdv-deliveryman-actions button {
  white-space: nowrap;
}

.pdv-deliveryman-manager {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, .20);
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  padding: 10px;
}

.pdv-deliveryman-manager header {
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.pdv-deliveryman-manager header b,
.pdv-deliveryman-manager header small {
  color: #fff;
}

.pdv-deliveryman-routes {
  display: grid;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.pdv-deliveryman-routes article {
  display: grid;
  grid-template-columns: minmax(100px, auto) minmax(140px, 1fr) minmax(120px, auto) auto;
  gap: 8px;
  align-items: center;
  border-radius: 8px;
  background: #fff;
  color: #0b1526;
  padding: 9px 10px;
}

.pdv-deliveryman-routes strong,
.pdv-deliveryman-routes span,
.pdv-deliveryman-routes small,
.pdv-deliveryman-routes b {
  color: #0b1526;
  font-weight: 900;
}

.pdv-deliveryman-routes small {
  color: #64748b;
  font-size: 12px;
}

.pdv-deliveryman-message {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 8px;
  align-items: end;
  margin: 0;
}

.pdv-deliveryman-message label {
  display: grid;
  gap: 5px;
  margin: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.pdv-deliveryman-message textarea {
  min-height: 58px;
  border: 1px solid #cbd8e6;
  border-radius: 8px;
  padding: 8px 10px;
  resize: vertical;
  color: #0b1526;
  font-weight: 800;
}

.pdv-deliveryman-message button {
  min-height: 58px;
  border: 0;
  border-radius: 8px;
  background: #f97316;
  color: #fff;
  font-weight: 900;
  padding: 0 12px;
}

/* Quadro de mesas no estilo PDV classico. */
.pdv-tablebar {
  height: 32px !important;
  min-height: 32px;
  padding: 0 10px !important;
  background: #f3f3f3 !important;
  border-color: #bfc4cc !important;
  color: #111 !important;
  overflow-x: auto;
}

.pdv-tablebar form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pdv-tablebar label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.pdv-tablebar input {
  width: 78px;
  height: 23px;
  border: 1px solid #d6d6d6;
  background: #fff;
  padding: 0 5px;
}

.pdv-tablebar button {
  min-width: 28px;
  min-height: 23px;
  border: 0;
  background: transparent;
  padding: 0;
}

.pdv-table-legend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 800;
  white-space: nowrap;
}

.pdv-table-legend i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
}

.pdv-table-legend .livre {
  background: #258d2d;
}

.pdv-table-legend .reservado {
  background: #ff8a00;
}

.pdv-table-legend .ocupado {
  background: #bd1717;
}

.pdv-refresh {
  margin-left: auto;
  gap: 6px;
  font-size: 12px;
  white-space: nowrap;
}

.pdv-tables-panel {
  height: calc(100vh - 50px - 44px - 32px - 10px);
  min-height: 0;
  overflow: auto;
  display: block !important;
  padding: 12px !important;
  border: 1px solid #aeb6c2 !important;
  border-top: 0 !important;
  background: #eeeeee !important;
}

.pdv-tables-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(202px, 1fr)) !important;
  grid-auto-rows: 154px;
  gap: 10px 20px !important;
}

.pdv-table-card {
  position: relative;
  min-height: 0 !important;
  height: 154px;
  display: grid !important;
  grid-template-rows: 34px 62px 22px 20px 16px;
  gap: 0 !important;
  padding: 4px !important;
  border: 1px solid #9fa7b2 !important;
  border-left: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  overflow: hidden;
}

.pdv-table-card.ocupado {
  outline: 7px solid #006ec8;
  outline-offset: -7px;
}

.pdv-table-card header {
  display: grid !important;
  grid-template-columns: 1fr 88px !important;
  align-items: start !important;
  gap: 6px !important;
}

.pdv-table-card header strong {
  font-size: 29px !important;
  line-height: 1;
  color: navy !important;
  padding-left: 4px;
}

.pdv-table-card em {
  min-height: 24px;
  display: grid;
  place-items: center;
  border-radius: 0 !important;
  padding: 0 !important;
  background: #008000 !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  text-transform: none !important;
}

.pdv-table-card.reservado em {
  background: #ff8a00 !important;
}

.pdv-table-card.ocupado em {
  background: #f30d0d !important;
}

.pdv-table-body {
  display: grid;
  grid-template-columns: 1fr 84px;
  align-items: center;
  min-height: 62px;
  color: #111;
  text-decoration: none;
  padding: 0 6px;
}

.pdv-table-open-form {
  border: 0;
  background: transparent;
  margin: 0;
  padding: 0;
}

.pdv-table-open-form button {
  display: grid;
  grid-template-columns: 1fr 84px;
  align-items: center;
  width: 100%;
  min-height: 62px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0 6px;
}

.pdv-table-action {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: -8px;
  color: #006b78;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.pdv-table-body .pdv-table-icon {
  grid-column: 2;
  justify-self: center;
  color: #075f1c;
}

.pdv-table-body .pdv-table-icon .icon {
  width: 66px;
  height: 66px;
  stroke-width: 3;
}

.pdv-table-body .pdv-table-icon.occupied {
  color: #b96520;
}

.pdv-table-client {
  grid-column: 1;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  word-break: break-word;
}

.pdv-table-total {
  align-self: end;
  padding-left: 8px;
  color: #008000 !important;
  font-size: 14px;
  font-weight: 900;
}

.pdv-table-card small {
  display: block;
  align-self: center;
  border-top: 1px solid #bfc4cc;
  padding: 2px 4px 0;
  color: #000 !important;
  font-size: 11px;
  font-weight: 900 !important;
}

.pdv-table-card footer {
  display: flex !important;
  align-items: center;
  gap: 4px !important;
  align-self: stretch !important;
  padding: 0 4px;
}

.pdv-table-card footer form,
.pdv-table-card footer a {
  display: inline-flex;
}

.pdv-table-card footer button,
.pdv-table-card footer a {
  min-height: 18px !important;
  width: auto !important;
  border-radius: 0 !important;
  padding: 0 6px !important;
  font-size: 10px;
}

.pdv-table-card.ocupado footer a {
  background: #006ec8 !important;
}

.pdv-table-card.reservado footer button {
  background: #ff8a00 !important;
}

.pdv-work:has(.pdv-tables-panel) .pdv-mini-board {
  display: none;
}

@media (max-width: 980px) {
  .pdv-tables-panel {
    height: auto;
    min-height: 360px;
  }

  .pdv-tables-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
    gap: 10px !important;
  }
}

@media (max-width: 560px) {
  .pdv-tablebar {
    height: auto !important;
    padding: 6px !important;
    flex-wrap: wrap;
  }

  .pdv-refresh {
    margin-left: 0;
  }

  .pdv-tables-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)) !important;
  }

  .pdv-table-card {
    height: 144px;
    grid-template-rows: 30px 58px 20px 20px 16px;
  }

  .pdv-table-card header strong {
    font-size: 24px !important;
  }

  .pdv-table-card em {
    font-size: 11px !important;
  }

  .pdv-table-body .pdv-table-icon .icon {
    width: 52px;
    height: 52px;
  }
}

/* Ajuste fino: conteudo sempre dentro do card da mesa. */
.pdv-tables-grid {
  grid-auto-rows: 166px !important;
}

.pdv-table-card {
  height: 166px !important;
  grid-template-rows: 30px 68px 22px 18px 22px !important;
  padding: 6px !important;
  box-sizing: border-box;
}

.pdv-table-card header {
  min-width: 0;
  grid-template-columns: minmax(34px, 1fr) 82px !important;
  align-items: center !important;
}

.pdv-table-card header strong {
  padding-left: 2px;
  overflow: hidden;
}

.pdv-table-card em {
  min-width: 0;
  min-height: 23px;
  overflow: hidden;
  white-space: nowrap;
}

.pdv-table-body {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 72px;
  padding: 0 4px;
  overflow: hidden;
}

.pdv-table-body .pdv-table-icon {
  grid-column: 1 / -1;
}

.pdv-table-card.ocupado .pdv-table-body .pdv-table-icon {
  grid-column: 2;
}

.pdv-table-body .pdv-table-icon .icon {
  max-width: 62px;
  max-height: 62px;
}

.pdv-table-client {
  max-height: 38px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.pdv-table-total {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding-left: 4px;
}

.pdv-table-card small {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pdv-table-card footer {
  min-width: 0;
  overflow: hidden;
  flex-wrap: nowrap !important;
}

.pdv-table-card footer form,
.pdv-table-card footer a {
  min-width: 0;
  flex: 1 1 auto;
}

.pdv-table-card footer button,
.pdv-table-card footer a {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 10px;
}

.pdv-table-card footer .icon {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
}

@media (max-width: 560px) {
  .pdv-tables-grid {
    grid-auto-rows: 156px !important;
  }

  .pdv-table-card {
    height: 156px !important;
    grid-template-rows: 28px 62px 20px 18px 22px !important;
    padding: 5px !important;
  }

  .pdv-table-card header {
    grid-template-columns: minmax(30px, 1fr) 72px !important;
  }

  .pdv-table-card em {
    font-size: 10px !important;
  }

  .pdv-table-body {
    grid-template-columns: minmax(0, 1fr) 58px;
  }

  .pdv-table-body .pdv-table-icon .icon {
    max-width: 50px;
    max-height: 50px;
  }
}

/* Admin menu responsivo para celulares */
@media (max-width: 760px) {
  .admin-layout {
    display: block;
  }

  .admin-layout > aside {
    position: sticky;
    top: 0;
    z-index: 30;
    height: auto;
    min-height: 0;
    display: block;
    padding: 10px 10px 8px;
    border-radius: 0 0 12px 12px;
  }

  .brand {
    gap: 9px;
    padding: 0 4px 8px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 9px;
  }

  .brand strong {
    font-size: 18px;
  }

  .brand small {
    max-width: 68vw;
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.25;
  }

  aside nav {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    padding-bottom: 2px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  aside nav a {
    flex: 0 0 auto;
    min-height: 42px;
    min-width: 92px;
    border-radius: 9px;
    padding: 0 12px;
    gap: 8px;
    font-size: 13px;
  }

  aside nav a .icon {
    width: 18px;
    height: 18px;
  }

  .admin-profile {
    display: none;
  }

  .sidebar-company {
    display: none;
  }

  main {
    width: min(100% - 16px, 1240px);
    margin: 12px auto;
    padding: 0 0 18px;
  }

  .topbar {
    min-height: 48px;
    margin-bottom: 14px;
  }
}

@media (max-width: 430px) {
  aside nav a {
    min-width: 76px;
    padding: 0 10px;
    font-size: 12px;
  }

  aside nav a span {
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Produtos admin moderno */
.add-button {
  min-width: 148px;
  min-height: 48px;
  border-radius: 9px;
  background: linear-gradient(135deg, #ff5a00, #ff7a00);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(255, 90, 0, .24);
}

.product-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.product-metrics article {
  min-height: 124px;
  border: 1px solid #eaecf0;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  box-shadow: 0 18px 40px rgba(16, 24, 40, .05);
}

.metric-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
}

.metric-icon.orange {
  background: linear-gradient(135deg, #ff5a00, #ff7a00);
}

.metric-icon.green {
  background: linear-gradient(135deg, #16b364, #32d583);
}

.metric-icon.yellow {
  background: linear-gradient(135deg, #f5b700, #ffd84d);
}

.metric-icon.purple {
  background: linear-gradient(135deg, #7047eb, #9b7cf6);
}

.product-metrics small {
  color: var(--muted);
  font-size: 13px;
}

.product-metrics strong {
  display: block;
  margin: 6px 0;
  font-size: 25px;
  color: #101828;
}

.product-metrics em {
  color: #087443;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.product-form,
.filter-grid {
  gap: 14px 18px;
  margin-bottom: 16px;
  padding: 22px;
  border-color: #eaecf0;
  box-shadow: 0 18px 40px rgba(16, 24, 40, .05);
}

.product-form label span,
.filter-grid label span {
  font-size: 11px;
}

.product-form input,
.product-form select,
.product-form textarea,
.filter-grid input,
.filter-grid select {
  min-height: 48px;
  padding: 10px 14px;
  font-size: 14px;
}

.product-form textarea {
  min-height: 58px;
}

.product-form .image-preview img {
  width: 72px;
  height: 72px;
}

.save-product,
.product-cancel {
  min-height: 40px;
}

.products-wrap {
  border-color: #eaecf0;
  box-shadow: 0 18px 42px rgba(16, 24, 40, .06);
}

.products-table {
  min-width: 980px;
}

.products-table th,
.products-table td {
  padding: 16px 18px;
  font-size: 14px;
}

.products-table td strong {
  font-size: 15px;
  color: #101828;
}

.products-table td small {
  font-size: 13px;
}

.product-thumb {
  width: 74px;
  height: 74px;
  border-radius: 9px;
  object-fit: contain;
}

.product-cell {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 330px;
}

.category-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff7ed;
  color: #f15b00;
  font-weight: 800;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: #506078;
  font-size: 12px;
  font-weight: 800;
}

.pagination a,
.pagination b {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #0f1d36;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  text-decoration: none;
}

.pagination a:hover,
.pagination b {
  border-color: #ff5a00;
  background: #ff5a00;
  color: #fff;
}

@media (max-width: 900px) {
  .product-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-grid {
    grid-template-columns: 1fr 1fr;
  }

  .add-button {
    width: auto;
  }
}

@media (max-width: 620px) {
  .product-metrics {
    grid-template-columns: 1fr;
  }

  .filter-grid,
  .product-form {
    grid-template-columns: 1fr;
  }

  .pagination {
    justify-content: flex-start;
  }
}

/* Final: PDV sem menu pegajoso. */
.pdv-fab,
.pdv-footer {
  display: grid !important;
}

.pdv-screen {
  grid-template-rows: 50px minmax(0, 1fr) !important;
}

.pdv-mini-board {
  height: calc(100vh - 50px - 28px - 30px) !important;
}

/* Final: PDV sem menu pegajoso. */
.pdv-fab,
.pdv-footer {
  display: none !important;
}

.pdv-screen {
  grid-template-rows: 50px minmax(0, 1fr) !important;
}

.pdv-mini-board {
  height: calc(100vh - 50px - 28px - 30px) !important;
}

/* PDV sem menu pegajoso: as acoes ficam no painel do pedido novo. */
.pdv-fab,
.pdv-footer {
  display: none !important;
}

.pdv-screen {
  grid-template-rows: 50px minmax(0, 1fr) !important;
}

.pdv-mini-board {
  height: calc(100vh - 50px - 28px - 30px) !important;
}

.page-pdv {
  background: #315b86;
}

.page-pdv .admin-layout {
  display: block;
  min-height: 100vh;
}

.page-pdv .admin-layout > aside,
.page-pdv .topbar {
  display: none;
}

.page-pdv main {
  width: 100%;
  margin: 0;
  padding: 0;
}

.pdv-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 340px;
  grid-template-rows: 50px minmax(0, 1fr) 54px;
  background: #315b86;
  color: #0b1526;
  font-family: Arial, Helvetica, sans-serif;
}

.pdv-top {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 230px 1fr 34px;
  align-items: center;
  border-bottom: 2px solid #d7e7f8;
  background: #315b86;
  color: #fff;
}

.pdv-top strong {
  padding-left: 92px;
  font-size: 26px;
  font-weight: 500;
}

.pdv-top h1 {
  margin: 0;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
}

.pdv-top a {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
}

.pdv-side {
  grid-row: 2 / 4;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 12px;
  padding: 12px;
  background: #315b86;
  color: #fff;
  text-align: center;
}

.pdv-side img {
  width: 210px;
  height: 150px;
  object-fit: contain;
  background: #3b1d04;
}

.pdv-side strong {
  margin-top: 8px;
  font-size: 13px;
}

.pdv-side small {
  font-weight: 900;
}

.pdv-side b {
  margin-top: 20px;
  font-size: 17px;
}

.pdv-work {
  grid-column: 2;
  grid-row: 2;
  width: auto;
  margin: 0;
  padding: 0;
  background: #efefef;
  overflow: hidden;
}

.pdv-tabs {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d8e0ea;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, #ffffff, #f3f7fb);
  padding: 7px 10px;
  font-size: 13px;
  box-shadow: 0 8px 18px rgba(15, 29, 54, .08);
}

.pdv-tabs a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 14px;
  color: #40526b;
  font-weight: 900;
  text-decoration: none;
  transition: background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.pdv-tabs a:hover {
  border-color: #ffd4b8;
  background: #fff6ef;
  color: #f05a28;
}

.pdv-tabs .active {
  border-color: rgba(15, 122, 131, .18);
  background: linear-gradient(180deg, #159aa1, #0f7a83);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 122, 131, .22);
}

@media (max-width: 680px) {
  .pdv-tabs {
    overflow-x: auto;
    border-radius: 10px;
  }

  .pdv-tabs a {
    flex: 0 0 auto;
  }
}

.pdv-tables-panel {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid #d8e0ea;
  border-top: 0;
  background: #f7fafc;
}

.pdv-tables-control {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px;
  border: 1px solid #dce5ef;
  border-radius: 10px;
  background: #fff;
}

.pdv-tables-control label,
.pdv-table-payment label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 900;
  color: #33445c;
}

.pdv-tables-control input,
.pdv-table-payment input,
.pdv-table-payment select {
  min-height: 36px;
  border: 1px solid #cfd9e6;
  border-radius: 8px;
  padding: 0 10px;
  font-weight: 800;
  color: #10213b;
  background: #fff;
}

.pdv-tables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}

.pdv-table-card {
  display: grid;
  gap: 9px;
  min-height: 150px;
  padding: 12px;
  border: 1px solid #d8e0ea;
  border-left: 5px solid #28a86b;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(16, 33, 59, .06);
}

.pdv-table-card.ocupado {
  border-left-color: #f05a28;
}

.pdv-table-card.reservado {
  border-left-color: #f5a524;
}

.pdv-table-card header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
}

.pdv-table-card header > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #0f7a83;
  background: #e7f4f5;
}

.pdv-table-card small,
.pdv-table-card p span {
  color: #5e6d83;
  font-weight: 800;
}

.pdv-table-card strong {
  color: #10213b;
}

.pdv-table-card header strong {
  font-size: 24px;
}

.pdv-table-card em {
  padding: 5px 8px;
  border-radius: 999px;
  background: #ecf7f0;
  color: #147a45;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.pdv-table-card.ocupado em {
  background: #fff1ea;
  color: #d64a1c;
}

.pdv-table-card.reservado em {
  background: #fff6dc;
  color: #9c6900;
}

.pdv-table-card p {
  display: grid;
  gap: 3px;
  margin: 0;
}

.pdv-table-card footer {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-self: end;
}

.pdv-table-card button,
.pdv-table-card a,
.pdv-tables-control button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  background: #0f7a83;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.pdv-table-card a {
  background: #f05a28;
}

.pdv-table-payment {
  display: flex;
  align-items: end;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 680px) {
  .pdv-tables-grid {
    grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
  }

  .pdv-table-card {
    min-height: 138px;
    padding: 10px;
  }

  .pdv-table-card header strong {
    font-size: 20px;
  }

  .pdv-table-card button,
  .pdv-table-card a {
    width: 100%;
  }
}

.pdv-filterbar {
  height: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #c6c6c6;
  background: #f7f7f7;
  padding: 0 10px;
  font-size: 12px;
}

.pdv-filterbar b,
.pdv-filterbar strong {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
}

.pdv-filterbar a,
.pdv-filterbar button {
  display: inline-flex;
  align-items: center;
  color: #111;
  text-decoration: none;
  font-weight: 800;
  line-height: 1;
}

.pdv-online-form {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
}

.pdv-filterbar .pdv-online {
  gap: 5px;
  min-height: 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 12px;
  cursor: pointer;
}

.pdv-filterbar .pdv-online.online {
  background: #dff7df;
  color: #176d1d;
  border-color: #8bd28d;
}

.pdv-filterbar .pdv-online.offline {
  background: #ffe3e3;
  color: #a01414;
  border-color: #f2a0a0;
}

.legend {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.legend.green {
  background: #278d2d;
}

.legend.orange {
  background: #ff8a00;
}

.legend.red {
  background: #b41414;
}

.pdv-mini-board {
  height: calc(100vh - 50px - 28px - 30px - 54px);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  grid-auto-rows: 132px;
  align-content: start;
  gap: 18px;
  overflow: auto;
  padding: 10px 14px;
  background: #eee;
}

.pdv-mini-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  border: 1px solid #aaa;
  border-left: 3px solid #18933c;
  background: #fff;
  padding: 13px 10px 4px;
  color: #111;
  text-decoration: none;
  font-size: 11px;
  box-shadow: 0 1px 0 rgba(0,0,0,.16);
}

.pdv-mini-card.status-novo {
  border-left-color: #006ec8;
  outline: 3px solid #006ec8;
}

.pdv-mini-card.status-recebido {
  border-left-color: #168c31;
  outline: 3px solid #168c31;
}

.pdv-mini-card.status-em_preparo {
  border-left-color: #ff8a00;
  outline: 3px solid #ff8a00;
}

.pdv-mini-card.status-pronto {
  border-left-color: #7a3fd1;
  outline: 3px solid #7a3fd1;
}

.pdv-mini-card.status-entregador_aceitou {
  border-left-color: #0f8c8c;
  outline: 3px solid #0f8c8c;
}

.pdv-mini-card.status-chegou_loja {
  border-left-color: #2563eb;
  outline: 3px solid #2563eb;
}

.pdv-mini-card.status-saiu_entrega {
  border-left-color: #e16d00;
  outline: 3px solid #e16d00;
}

.pdv-mini-card.status-entregue {
  border-left-color: #0f7b83;
  outline: 3px solid #0f7b83;
}

.pdv-mini-card.status-finalizado {
  border-left-color: #222;
  outline: 3px solid #222;
}

.pdv-mini-card.status-cancelado {
  border-left-color: #b41414;
  outline: 3px solid #b41414;
}

.pdv-mini-card strong {
  font-size: 13px;
  color: #4d4d4d;
}

.pdv-mini-card span {
  margin-top: 14px;
}

.pdv-mini-card b {
  color: #008000;
  font-size: 14px;
}

.pdv-mini-card em {
  position: absolute;
  right: 12px;
  top: 42px;
  color: #f05a28;
  font-size: 16px;
  font-weight: 900;
  font-style: italic;
}

.pdv-mini-card .pdv-delivery-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-style: normal;
  line-height: 1;
}

.pdv-mini-card .pdv-delivery-badge .icon {
  width: 32px;
  height: 32px;
  stroke-width: 2.6;
}

.pdv-mini-card .pdv-delivery-badge.retirada {
  color: #315b86;
}

.pdv-mini-card .pdv-delivery-badge.mesa {
  color: #0f7a83;
}

.pdv-mini-card .pdv-delivery-badge span {
  margin-top: 0;
  font-size: 12px;
}

.pdv-mini-card small {
  border-top: 1px solid #ddd;
  padding-top: 4px;
  font-size: 10px;
  font-weight: 800;
}

.pdv-received {
  grid-column: 3;
  grid-row: 2;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  border-left: 1px solid #b7b7b7;
  border-right: 1px solid #b7b7b7;
  background: #fff;
  padding: 8px 12px;
}

.pdv-received h2 {
  margin: 0 0 10px;
  background: #006fb0;
  color: #fff;
  text-align: center;
  font-size: 20px;
  line-height: 30px;
}

.pdv-selected {
  display: grid;
  gap: 7px;
  min-height: 118px;
}

.pdv-selected h3 {
  margin: 0;
  font-size: 16px;
}

.pdv-selected strong {
  font-size: 18px;
}

.pdv-selected b {
  align-self: end;
  margin-top: 26px;
  font-size: 16px;
}

.pdv-confirm-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 8px;
}

.pdv-auto-timer {
  margin-top: 8px;
  border: 1px solid #f2c28b;
  border-radius: 4px;
  background: #fff6eb;
  color: #93500f;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 8px;
  text-align: center;
}

.pdv-confirm-row form {
  margin: 0;
}

.pdv-reject,
.pdv-confirm {
  width: 100%;
  min-height: 38px;
  border-radius: 0;
  box-shadow: none;
  font-size: 16px;
}

.pdv-reject {
  background: #f00;
}

.pdv-confirm {
  background: #238315;
}

.pdv-print-link {
  margin-top: 10px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #006fb0;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.pdv-auto {
  align-self: end;
  display: flex;
  gap: 6px;
  font-size: 12px;
}

.pdv-auto input {
  width: auto;
  min-height: auto;
}

.pdv-footer {
  grid-column: 2 / -1;
  grid-row: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #315b86;
}

.pdv-footer button {
  min-height: 36px;
  border-radius: 2px;
  border: 1px solid #a7b0bf;
  background: #f2f2f2;
  color: #1a2d46;
  box-shadow: none;
  font-size: 13px;
}

.pdv-screen .receipt-print {
  display: none;
}

@media (max-width: 1100px) {
  .pdv-screen {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .pdv-received {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .pdv-side img {
    width: 160px;
  }
}

/* PDV responsive refinements */
.pdv-screen {
  grid-template-columns: clamp(150px, 14vw, 230px) minmax(360px, 1fr) clamp(280px, 22vw, 340px);
}

.pdv-top {
  grid-template-columns: clamp(150px, 14vw, 230px) 1fr 34px;
}

.pdv-top strong {
  padding-left: clamp(12px, 5vw, 92px);
  font-size: clamp(18px, 1.8vw, 26px);
}

.pdv-top h1 {
  font-size: clamp(22px, 2vw, 28px);
}

.pdv-logo-box {
  width: min(100%, 205px);
  height: clamp(128px, 15vw, 168px);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  background: #234e78;
  overflow: hidden;
  padding: 8px;
}

.pdv-logo-box img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  padding: 0;
  background: transparent;
}

.pdv-side {
  padding: clamp(8px, 1vw, 14px);
}

.pdv-side img {
  width: auto;
  height: auto;
  background: transparent;
}

.pdv-mini-board {
  grid-template-columns: repeat(auto-fill, minmax(clamp(145px, 12vw, 178px), 1fr));
  gap: clamp(8px, 1.1vw, 18px);
  padding: clamp(8px, 1vw, 14px);
}

.pdv-mini-card {
  min-width: 0;
}

.pdv-received {
  min-width: 0;
  background: #eaf3fb;
  color: #0b1526;
}

.pdv-selected {
  border: 1px solid #c8d9ea;
  border-radius: 4px;
  background: #fff;
  color: #0b1526;
  padding: 10px;
}

.pdv-selected h3,
.pdv-selected strong,
.pdv-selected span,
.pdv-selected b,
.pdv-received h3,
.pdv-received strong,
.pdv-received span,
.pdv-received b,
.pdv-auto {
  color: #0b1526;
  font-weight: 800;
}

.pdv-side strong,
.pdv-side small,
.pdv-side b {
  color: #fff;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(0,0,0,.28);
}

@media (max-width: 1280px) {
  .pdv-screen {
    grid-template-columns: 170px minmax(360px, 1fr) 300px;
  }

  .pdv-side strong {
    font-size: 12px;
  }

  .pdv-footer button {
    padding: 0 8px;
    font-size: 12px;
  }
}

@media (max-width: 980px) {
  .pdv-screen {
    min-height: auto;
    grid-template-columns: 150px minmax(0, 1fr);
    grid-template-rows: 46px auto auto auto;
  }

  .pdv-top {
    grid-template-columns: 150px 1fr 32px;
  }

  .pdv-side {
    grid-row: 2;
  }

  .pdv-work {
    grid-column: 2;
    grid-row: 2;
  }

  .pdv-mini-board {
    height: 58vh;
  }

  .pdv-received {
    grid-column: 1 / -1;
    grid-row: 3;
    min-height: 190px;
  }

  .pdv-footer {
    grid-column: 1 / -1;
    grid-row: 4;
    flex-wrap: wrap;
    min-height: 54px;
    padding: 6px;
  }
}

@media (max-width: 680px) {
  .pdv-screen {
    display: block;
  }

  .pdv-top {
    min-height: 48px;
    grid-template-columns: 1fr auto;
    padding: 0 8px;
  }

  .pdv-top strong {
    display: none;
  }

  .pdv-top h1 {
    text-align: left;
  }

  .pdv-side {
    display: grid;
    grid-template-columns: 86px 1fr;
    justify-items: start;
    align-items: center;
    gap: 6px 12px;
    text-align: left;
  }

  .pdv-logo-box {
    grid-row: span 3;
    width: 86px;
    height: 72px;
  }

  .pdv-side b {
    margin-top: 0;
  }

  .pdv-filterbar {
    height: auto;
    flex-wrap: wrap;
    padding: 6px 8px;
  }

  .pdv-mini-board {
    height: auto;
    min-height: 260px;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  }

  .pdv-received {
    min-height: 220px;
  }
}

.pdv-screen {
  grid-template-rows: 50px minmax(0, 1fr) 84px;
}

.pdv-mini-board {
  height: calc(100vh - 50px - 28px - 30px - 84px);
}

.pdv-footer {
  min-height: 84px;
  align-items: flex-start;
  padding-top: 12px;
}

.pdv-footer button,
.pdv-footer a {
  min-height: 34px;
  border-radius: 2px;
  border: 1px solid #a7b0bf;
  background: #f2f2f2;
  color: #1a2d46;
  box-shadow: none;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  text-decoration: none;
  font-weight: 800;
}

.pdv-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(8, 22, 39, .62);
  padding: 18px;
}

.pdv-detail {
  width: min(980px, 100%);
  height: min(94vh, 800px);
  max-height: min(94vh, 800px);
  display: grid;
  grid-template-rows: auto auto minmax(96px, 1fr) auto;
  border: 1px solid #d9e6f3;
  border-radius: 8px;
  background: #f6faff;
  color: #0b1526;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,.36);
}

.pdv-detail > header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, #0a3158, #113f70);
  color: #fff;
  padding: 10px 14px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .16);
}

.pdv-detail > header > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pdv-detail > header > div > i {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #ff6b18;
  color: #fff;
  display: inline-grid;
  place-items: center;
}

.pdv-detail > header > div > i .icon {
  width: 22px;
  height: 22px;
}

.pdv-detail > header small {
  display: block;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .02em;
}

.pdv-detail > header h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
}

.pdv-detail > header a {
  min-height: 38px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 6px;
  color: #fff;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 900;
  background: rgba(255,255,255,.08);
}

.pdv-detail > header a .icon {
  width: 16px;
  height: 16px;
}

.pdv-detail-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 14px 10px;
}

.pdv-detail-card {
  grid-column: span 2;
  margin: 0;
  min-height: 68px;
  border: 1px solid #e0e9f2;
  border-radius: 7px;
  background: #fff;
  padding: 12px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  box-shadow: 0 5px 14px rgba(15, 23, 42, .05);
}

.pdv-detail-grid .wide {
  grid-column: 1 / -1;
  min-height: 50px;
}

.pdv-detail-grid .half {
  grid-column: span 3;
  min-height: 58px;
}

.pdv-detail-card i {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #eef5ff;
  color: #2563eb;
}

.pdv-detail-card i .icon {
  width: 21px;
  height: 21px;
}

.pdv-detail-card span,
.pdv-detail-card b,
.pdv-detail-card em {
  display: block;
  min-width: 0;
  color: #0b1526;
}

.pdv-detail-card b {
  margin-bottom: 3px;
  color: #64748b;
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
}

.pdv-detail-card em {
  font-style: normal;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.pdv-detail-card.accent-orange i {
  background: #fff1e8;
  color: #ff6b18;
}

.pdv-detail-card.accent-green i {
  background: #e8fbef;
  color: #16a34a;
}

.pdv-detail-card.accent-purple i {
  background: #f3e8ff;
  color: #7c3aed;
}

.pdv-detail-card.accent-blue i {
  background: #eaf3ff;
  color: #1d72d2;
}

.pdv-detail-card.status-card em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  border-radius: 6px;
  background: #17a34a;
  color: #fff;
  padding: 4px 10px;
  font-size: 12px;
}

.pdv-detail-card.total-card em {
  color: #087347;
  font-size: 20px;
}

.pdv-payment-editor {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid #123f6f;
  border-radius: 7px;
  background: linear-gradient(135deg, #0a3158, #113f70);
  color: #fff;
  overflow: hidden;
}

.pdv-payment-editor > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0;
  background: transparent;
  color: #fff;
}

.pdv-payment-editor > header div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 900;
  min-width: 0;
}

.pdv-payment-editor > header .icon {
  color: #f97316;
  flex: 0 0 auto;
}

.pdv-payment-editor > header strong {
  color: #fff;
  font-size: 16px;
  white-space: nowrap;
}

.pdv-payment-toggle {
  min-height: 34px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 6px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  padding: 0 12px;
  cursor: pointer;
}

.pdv-payment-body {
  display: grid;
  gap: 10px;
  min-height: 0;
}

.pdv-payment-editor.is-collapsed {
  padding-block: 10px;
}

.pdv-payment-editor.is-collapsed .pdv-payment-body {
  display: none !important;
}

.pdv-payment-body[hidden] {
  display: none !important;
}

.pdv-payment-entry-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(120px, .8fr) minmax(120px, .8fr) auto;
  gap: 8px;
  align-items: end;
  min-width: 0;
}

.pdv-payment-entry-grid label {
  display: grid;
  gap: 4px;
  margin: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.pdv-payment-entry-grid select,
.pdv-payment-entry-grid input {
  min-height: 42px;
  border: 1px solid #cbd8e6;
  border-radius: 6px;
  background: #fff;
  color: #0b1526;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 800;
}

.pdv-payment-add,
.pdv-payment-save {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: #0f7b83;
  color: #fff;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 14px;
  cursor: pointer;
}

.pdv-payment-save {
  justify-self: end;
  min-width: 190px;
  background: #f97316;
  box-shadow: 0 8px 18px rgba(249, 115, 22, .24);
}

.pdv-payment-list {
  display: grid;
  gap: 6px;
  max-height: 112px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 3px;
  overscroll-behavior: contain;
}

.pdv-payment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #dce8f2;
  border-radius: 7px;
  background: #fff;
  padding: 10px 12px;
}

.pdv-payment-row span,
.pdv-payment-row small {
  display: block;
}

.pdv-payment-row b {
  color: #0b1526;
  font-size: 13px;
}

.pdv-payment-row small {
  margin-top: 2px;
  color: #53657f;
  font-weight: 800;
}

.pdv-payment-row button {
  width: 34px;
  height: 34px;
  border: 1px solid #fecaca;
  border-radius: 5px;
  background: #fff5f5;
  color: #b91c1c;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.pdv-payment-balance {
  margin: 0;
  border-radius: 5px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 900;
}

.pdv-payment-balance.ok {
  background: #dcfce7;
  color: #166534;
}

.pdv-payment-balance.warn {
  background: #fff7ed;
  color: #c2410c;
}

.pdv-detail-tabs {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.pdv-detail-tabs.single {
  display: block;
  overflow-y: auto;
  padding: 0 14px 14px;
}

.pdv-detail-tabs > input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  appearance: none;
  -webkit-appearance: none;
  pointer-events: none;
}

.pdv-detail-tab-nav {
  display: flex;
  gap: 8px;
  padding: 0 14px 10px;
  overflow-x: auto;
}

.pdv-detail-tab-nav label {
  min-height: 38px;
  border: 1px solid #c8d8e8;
  border-radius: 8px;
  background: #fff;
  color: #17324f;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(15, 23, 42, .05);
}

.pdv-detail-tab-nav label .icon {
  width: 17px;
  height: 17px;
}

.pdv-detail-tabs > input:nth-of-type(1):checked ~ .pdv-detail-tab-nav label:nth-child(1),
.pdv-detail-tabs > input:nth-of-type(2):checked ~ .pdv-detail-tab-nav label:nth-child(2),
.pdv-detail-tabs > input:nth-of-type(3):checked ~ .pdv-detail-tab-nav label:nth-child(3),
.pdv-detail-tabs > input:nth-of-type(4):checked ~ .pdv-detail-tab-nav label:nth-child(4) {
  border-color: #0f7b83;
  background: #0f7b83;
  color: #fff;
}

.pdv-tab-panel {
  display: none;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 14px 14px;
  overscroll-behavior: contain;
}

.pdv-detail-tabs > input:nth-of-type(1):checked ~ .pdv-tab-items,
.pdv-detail-tabs > input:nth-of-type(2):checked ~ .pdv-tab-payment,
.pdv-detail-tabs > input:nth-of-type(3):checked ~ .pdv-tab-deliveryman,
.pdv-detail-tabs > input:nth-of-type(4):checked ~ .pdv-tab-deliveryman-orders {
  display: block;
}

.pdv-tab-panel .pdv-detail-items,
.pdv-detail-tabs.single .pdv-detail-items {
  padding: 0;
  overflow: visible;
}

.pdv-detail-items {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 14px 14px;
  overscroll-behavior: contain;
}

.pdv-detail-items h3 {
  margin: 0 0 8px;
}

.pdv-table-item-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 96px minmax(160px, .8fr) auto;
  gap: 8px;
  align-items: end;
  border: 1px solid #c8d8e8;
  border-radius: 4px;
  background: #edf8fa;
  padding: 10px;
  margin-bottom: 10px;
}

.pdv-table-item-form label {
  display: grid;
  gap: 4px;
  margin: 0;
  font-size: 12px;
  font-weight: 900;
  color: #334155;
  text-transform: uppercase;
}

.pdv-table-item-form input,
.pdv-table-item-form select {
  min-height: 38px;
  border: 1px solid #cbd8e6;
  border-radius: 4px;
  background: #fff;
  padding: 0 10px;
  font-size: 14px;
  color: #0b1526;
}

.pdv-table-item-form button {
  min-height: 38px;
  border: 0;
  border-radius: 4px;
  background: #0f8f9a;
  color: #fff;
  font-weight: 900;
  padding: 0 14px;
}

.pdv-detail-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  border: 1px solid #d1dfed;
  border-radius: 4px;
  background: #fff;
  padding: 10px;
  margin-bottom: 8px;
}

.pdv-detail-item small {
  grid-column: 1 / -1;
  color: #40506b;
  font-weight: 700;
}

.pdv-item-delete {
  grid-column: 1 / -1;
  justify-self: end;
  margin: 0;
}

.pdv-item-delete button {
  min-height: 28px;
  border: 1px solid #fecaca;
  border-radius: 4px;
  background: #fff5f5;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 900;
  padding: 0 10px;
}

.pdv-empty-items {
  border: 1px dashed #b9cadb;
  border-radius: 4px;
  background: #fff;
  color: #53657f;
  font-weight: 800;
  padding: 14px;
}

.pdv-deliveryman-status-board {
  display: grid;
  gap: 10px;
}

.pdv-order-history {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  border: 1px solid #c8d8e8;
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .06);
}

.pdv-order-history > header {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: #0a3158;
  color: #fff;
  box-shadow: none;
}

.pdv-order-history > header b,
.pdv-order-history > header small,
.pdv-order-history > header span {
  color: #fff;
}

.pdv-order-history > header small {
  display: block;
  opacity: .85;
  font-size: 11px;
}

.pdv-order-history-list {
  display: grid;
  gap: 0;
}

.pdv-order-history-row {
  display: grid;
  grid-template-columns: minmax(130px, auto) minmax(120px, 1fr) minmax(140px, 1fr) minmax(78px, auto);
  gap: 8px;
  align-items: center;
  border-top: 1px solid #e0e9f2;
  padding: 9px 12px;
  color: #0b1526;
}

.pdv-order-history-row span,
.pdv-order-history-row small,
.pdv-order-history-row b {
  color: #0b1526;
  font-weight: 900;
}

.pdv-order-history-row small {
  color: #64748b;
  font-size: 12px;
}

.pdv-order-history-row b {
  justify-self: end;
  border-radius: 999px;
  background: #e8f4f6;
  color: #0f6670;
  padding: 5px 9px;
  font-size: 12px;
}

.pdv-order-history-row em {
  justify-self: start;
  border-radius: 999px;
  padding: 5px 9px;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  background: #64748b;
}

.pdv-order-history-row em.status-novo {
  background: #2563eb;
}

.pdv-order-history-row em.status-recebido,
.pdv-order-history-row em.status-em_preparo,
.pdv-order-history-row em.status-pronto {
  background: #f97316;
}

.pdv-order-history-row em.status-entregador_aceitou,
.pdv-order-history-row em.status-chegou_loja,
.pdv-order-history-row em.status-saiu_entrega {
  background: #0f7b83;
}

.pdv-order-history-row em.status-entregue,
.pdv-order-history-row em.status-finalizado {
  background: #111827;
}

.pdv-order-history-row em.status-cancelado {
  background: #b91c1c;
}

.pdv-deliveryman-status-group {
  border: 1px solid #c8d8e8;
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .06);
}

.pdv-deliveryman-status-group header {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: #123b63;
  color: #fff;
  box-shadow: none;
}

.pdv-deliveryman-status-group header b,
.pdv-deliveryman-status-group header small,
.pdv-deliveryman-status-group header span {
  color: #fff;
}

.pdv-deliveryman-status-group header small {
  opacity: .9;
}

.pdv-deliveryman-status-row {
  display: grid;
  grid-template-columns: 92px minmax(140px, 1fr) minmax(130px, auto) minmax(128px, auto) auto;
  gap: 8px;
  align-items: center;
  border-top: 1px solid #e0e9f2;
  padding: 9px 12px;
  color: #0b1526;
}

.pdv-deliveryman-status-row strong,
.pdv-deliveryman-status-row span,
.pdv-deliveryman-status-row small,
.pdv-deliveryman-status-row b {
  color: #0b1526;
  font-weight: 900;
}

.pdv-deliveryman-status-row small {
  color: #64748b;
  font-size: 12px;
}

.pdv-deliveryman-status-row em {
  justify-self: start;
  border-radius: 999px;
  padding: 5px 9px;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  background: #64748b;
}

.pdv-deliveryman-status-row em.status-pronto {
  background: #f59e0b;
}

.pdv-deliveryman-status-row em.status-entregador_aceitou {
  background: #0f8c8c;
}

.pdv-deliveryman-status-row em.status-chegou_loja {
  background: #2563eb;
}

.pdv-deliveryman-status-row em.status-saiu_entrega {
  background: #2563eb;
}

.pdv-deliveryman-status-row em.status-entregue {
  background: #0f7b83;
}

.pdv-deliveryman-status-row em.status-finalizado {
  background: #111827;
}

.pdv-deliveryman-status-row em.status-cancelado {
  background: #b91c1c;
}

.pdv-detail footer {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid #d1dfed;
  background: #eef5fb;
  padding: 12px 14px;
  box-shadow: 0 -10px 22px rgba(15, 23, 42, .12);
}

.pdv-detail footer form {
  margin: 0;
}

.pdv-detail footer button,
.pdv-detail footer a {
  min-height: 42px;
  border-radius: 3px;
}

.pdv-detail footer .pdv-print-link {
  margin-top: 0;
  min-height: 42px;
}

.pdv-flow {
  background: #f28b2a;
  color: #fff;
}

.pdv-cash {
  max-width: 620px;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.pdv-cash table {
  min-width: 0;
  width: 100%;
}

.pdv-cash th,
.pdv-cash td {
  color: #0b1526;
  font-weight: 800;
}

.pdv-all-status,
.pdv-status-link {
  gap: 4px;
  white-space: nowrap;
}

.pdv-status-link em {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.pdv-status-link.active {
  text-decoration: underline;
}

.pdv-status-link.novo em {
  background: #006ec8;
}

.pdv-status-link.recebido em {
  background: #278d2d;
}

.pdv-status-link.pronto em {
  background: #ff8a00;
}

.pdv-status-link.entregador_aceitou em {
  background: #0f8c8c;
}

.pdv-status-link.chegou_loja em {
  background: #2563eb;
}

.pdv-status-link.saiu_entrega em {
  background: #ff8a00;
}

.pdv-status-link.entregue em {
  background: #0f7b83;
}

.pdv-status-link.finalizado em {
  background: #111827;
}

.pdv-status-link.cancelado em {
  background: #b41414;
}

.pdv-cash-filter {
  display: flex;
  align-items: end;
  gap: 10px;
  border-bottom: 1px solid #d1dfed;
  background: #eef5fb;
  padding: 12px 14px;
}

.pdv-cash-filter label {
  max-width: 190px;
}

.pdv-cash-filter button {
  min-height: 42px;
}

@media (max-width: 760px) {
  .pdv-modal {
    padding: 8px;
  }

  .pdv-detail {
    width: 100%;
    height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
    grid-template-rows: auto auto auto minmax(120px, 1fr) auto;
  }

  .pdv-detail-grid {
    grid-template-columns: 1fr;
  }

  .pdv-detail-card,
  .pdv-detail-grid .half {
    grid-column: 1 / -1;
  }

  .pdv-payment-editor > header,
  .pdv-payment-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .pdv-payment-entry-grid {
    grid-template-columns: 1fr;
  }

  .pdv-payment-add,
  .pdv-payment-save {
    width: 100%;
  }

  .pdv-payment-list {
    max-height: 96px;
  }

  .pdv-detail footer {
    justify-content: stretch;
  }

  .pdv-detail footer form,
  .pdv-detail footer a {
    flex: 1 1 150px;
  }

  .pdv-detail footer button,
  .pdv-detail footer a {
    width: 100%;
  }

  .pdv-detail-tab-nav {
    padding-inline: 10px;
  }

  .pdv-detail-tab-nav label {
    min-height: 36px;
    font-size: 12px;
    padding: 0 10px;
  }

  .pdv-tab-panel {
    padding-inline: 10px;
  }

  .pdv-deliveryman-routes article,
  .pdv-deliveryman-message,
  .pdv-deliveryman-status-row,
  .pdv-order-history-row {
    grid-template-columns: 1fr;
  }

  .pdv-deliveryman-message button {
    width: 100%;
  }

  .pdv-table-item-form {
    grid-template-columns: 1fr 88px;
  }

  .pdv-table-item-form .wide,
  .pdv-table-item-form button {
    grid-column: 1 / -1;
  }

  .pdv-detail-item {
    grid-template-columns: 1fr;
  }
}

/* Tela de lancamento de pedido de mesa, estilo PDV desktop. */
.pdv-order-entry-modal {
  place-items: stretch;
  padding: 0;
  background: rgba(8, 22, 39, .72);
}

.pdv-order-entry {
  width: 100%;
  height: 100vh;
  display: grid;
  grid-template-rows: 68px minmax(0, 1fr);
  background: #f6f8fb;
  color: #0b2142;
  overflow: hidden;
}

.pdv-order-entry-top {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto auto auto 44px;
  align-items: center;
  gap: 26px;
  background: linear-gradient(180deg, #073354, #06243e);
  color: #fff;
  padding: 0 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,.28);
}

.pdv-order-entry-top div,
.pdv-order-entry-top p,
.pdv-order-entry-top a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.pdv-order-entry-top b {
  color: #ffd43b;
}

.pdv-order-entry-top .icon {
  width: 28px;
  height: 28px;
}

.pdv-order-entry-body {
  display: grid;
  grid-template-columns: 116px minmax(540px, 1fr) minmax(360px, 39vw);
  gap: 8px;
  min-height: 0;
  padding: 8px;
}

.pdv-order-steps {
  display: grid;
  grid-auto-rows: 92px;
  align-content: start;
  gap: 8px;
}

.pdv-order-steps span {
  display: grid;
  place-items: center;
  gap: 6px;
  border: 1px solid #ccd5df;
  border-radius: 4px;
  background: linear-gradient(180deg, #fff, #eef2f6);
  color: #123154;
  font-weight: 900;
}

.pdv-order-steps .icon {
  width: 34px;
  height: 34px;
  color: #3093dd;
}

.pdv-order-work,
.pdv-order-products {
  min-height: 0;
  border: 1px solid #c8d3dd;
  background: #fff;
}

.pdv-order-work {
  display: grid;
  grid-template-rows: auto auto minmax(180px, 1fr) auto auto;
}

.pdv-order-client-grid {
  display: grid;
  grid-template-columns: 1fr 170px 238px;
  gap: 8px 14px;
  padding: 10px;
}

.pdv-order-client-grid label,
.pdv-order-split,
.pdv-order-bottom label {
  display: grid;
  gap: 4px;
  margin: 0;
  color: #102d50;
  font-size: 13px;
  font-weight: 900;
}

.pdv-order-client-grid .wide {
  grid-column: 1 / 3;
}

.pdv-order-client-grid input,
.pdv-order-bottom textarea,
.pdv-order-split input,
.pdv-order-split output,
.pdv-order-actions select,
.pdv-order-actions input {
  min-height: 36px;
  border: 1px solid #c8d3df;
  border-radius: 2px;
  background: #fff;
  color: #111827;
  font-size: 16px;
  padding: 0 8px;
}

.pdv-order-command {
  grid-column: 3;
  grid-row: 1 / 4;
  border: 1px solid #c8d3df;
  background: #fff;
  overflow: hidden;
}

.pdv-order-command b {
  display: block;
  padding: 8px;
}

.pdv-order-command span {
  display: flex;
  gap: 16px;
  background: #0869bd;
  color: #fff;
  padding: 8px 12px;
  font-weight: 900;
}

.pdv-order-entry .pdv-table-item-form {
  grid-template-columns: minmax(220px, 1fr) 118px 140px;
  margin: 0 10px 10px;
  border-radius: 2px;
  background: #fff;
}

.pdv-order-entry .pdv-table-item-form .wide {
  display: none;
}

.pdv-order-entry .pdv-table-item-form button {
  background: #f5f7fa;
  color: #123154;
  border: 1px solid #ccd5df;
  font-size: 16px;
}

.pdv-order-entry .pdv-table-item-form button .icon {
  width: 36px;
  height: 36px;
  padding: 7px;
  background: #2990dd;
  color: #fff;
}

.pdv-order-items {
  min-height: 0;
  overflow: auto;
  border-top: 1px solid #c8d3df;
  border-bottom: 1px solid #c8d3df;
}

.pdv-order-items-title {
  display: grid;
  grid-template-columns: 1fr 220px 260px;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid #c8d3df;
  background: #fff;
}

.pdv-order-items-title span {
  color: #e11d2e;
}

.pdv-order-items table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.pdv-order-items th,
.pdv-order-items td {
  border-right: 1px solid #d7e0ea;
  border-bottom: 1px solid #d7e0ea;
  padding: 9px 10px;
  color: #102d50;
  text-align: left;
  vertical-align: top;
}

.pdv-order-items th {
  background: linear-gradient(180deg, #fff, #edf2f8);
  font-weight: 900;
}

.pdv-order-items td small {
  display: block;
  color: #64748b;
}

.pdv-order-items td form {
  margin: 0;
}

.pdv-order-items td button {
  min-height: 30px;
  border: 1px solid #fecaca;
  background: #fff5f5;
  color: #b91c1c;
}

.pdv-order-bottom {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 320px;
  gap: 14px;
  padding: 10px 14px;
}

.pdv-order-bottom textarea {
  min-height: 110px;
  padding: 8px;
}

.pdv-order-split {
  align-content: start;
}

.pdv-order-split output {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.pdv-order-totals {
  display: grid;
  gap: 8px;
  align-content: end;
}

.pdv-order-totals p {
  display: flex;
  justify-content: space-between;
  margin: 0;
  color: #102d50;
  font-weight: 900;
}

.pdv-order-totals strong {
  display: flex;
  justify-content: flex-end;
  border: 1px solid #c8e4c5;
  border-radius: 2px;
  background: #e4f7de;
  color: #15803d;
  padding: 8px 12px;
  font-size: 18px;
}

.pdv-order-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #c8d3df;
  background: #fff;
}

.pdv-order-actions form {
  display: inline-flex;
  gap: 8px;
  margin: 0;
}

.pdv-order-actions button,
.pdv-order-actions a {
  min-height: 44px;
  border-radius: 4px;
}

.pdv-order-actions .pdv-table-payment {
  margin-left: auto;
}

.pdv-order-products {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  background: #edf7ff;
}

.pdv-order-search {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 6px;
  padding: 6px;
  margin: 0;
  border-bottom: 1px solid #d7e0ea;
  background: #fff;
}

.pdv-order-search input {
  min-height: 34px;
  border: 1px solid #c8d3df;
  border-radius: 4px;
  padding: 0 10px;
  font-size: 14px;
}

.pdv-order-search button {
  min-height: 34px;
  border: 0;
  border-radius: 4px;
  background: #0d7fd1;
  color: #fff;
}

.pdv-order-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-height: 112px;
  overflow: auto;
  padding: 6px;
  align-content: flex-start;
}

.pdv-order-groups a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 4px;
  background: linear-gradient(135deg, #777, #4b5563);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  padding: 0 9px;
  white-space: nowrap;
}

.pdv-order-groups a.active {
  background: linear-gradient(135deg, #0d7fd1, #005fae);
}

.pdv-order-product-list {
  min-height: 0;
  overflow: auto;
  padding: 6px;
}

.pdv-order-product-card {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 9px;
  align-items: center;
  min-height: 88px;
  border-bottom: 1px solid #d7e0ea;
  background: #f4fbff;
  padding: 7px;
}

.pdv-order-product-card img {
  width: 66px;
  height: 66px;
  object-fit: cover;
  background: #fff;
  border: 1px solid #d7e0ea;
}

.pdv-order-product-card div {
  display: grid;
  gap: 3px;
}

.pdv-order-product-card strong {
  color: #111827;
  font-size: 14px;
  text-transform: uppercase;
}

.pdv-order-product-card span {
  color: #334155;
  font-size: 12px;
}

.pdv-order-product-card b {
  color: #111827;
  font-size: 16px;
}

.pdv-order-product-card form {
  margin: 0;
}

.pdv-order-product-card button {
  min-height: 32px;
  background: #0d7fd1;
  color: #fff;
  font-size: 12px;
  padding: 0 9px;
}

.pdv-order-no-products {
  margin: 8px;
  border: 1px dashed #b9cadb;
  border-radius: 4px;
  background: #fff;
  color: #53657f;
  font-weight: 900;
  padding: 12px;
}

/* Versao compacta da tela de lancamento. */
.pdv-order-entry {
  grid-template-rows: 48px minmax(0, 1fr);
  font-size: 12px;
}

.pdv-order-entry-top {
  grid-template-columns: minmax(210px, 1fr) auto auto auto 34px;
  gap: 16px;
  padding: 0 12px;
}

.pdv-order-entry-top div,
.pdv-order-entry-top p,
.pdv-order-entry-top a {
  gap: 7px;
  font-size: 15px;
}

.pdv-order-entry-top p:nth-of-type(4) {
  display: none;
}

.pdv-order-entry-top .icon {
  width: 22px;
  height: 22px;
}

.pdv-order-entry-body {
  grid-template-columns: 82px minmax(430px, 1fr) minmax(310px, 34vw);
  gap: 5px;
  padding: 5px;
}

.pdv-order-steps {
  grid-auto-rows: 64px;
  gap: 5px;
}

.pdv-order-steps span {
  gap: 3px;
  font-size: 11px;
}

.pdv-order-steps .icon {
  width: 25px;
  height: 25px;
}

.pdv-order-work {
  grid-template-rows: auto auto minmax(120px, 1fr) auto auto;
}

.pdv-order-client-grid {
  grid-template-columns: 1fr 138px 190px;
  gap: 5px 8px;
  padding: 6px;
}

.pdv-order-client-grid label,
.pdv-order-split,
.pdv-order-bottom label {
  gap: 2px;
  font-size: 11px;
}

.pdv-order-client-grid input,
.pdv-order-bottom textarea,
.pdv-order-split input,
.pdv-order-split output,
.pdv-order-actions select,
.pdv-order-actions input {
  min-height: 28px;
  font-size: 13px;
  padding: 0 6px;
}

.pdv-order-command b {
  padding: 5px 7px;
}

.pdv-order-command span {
  gap: 10px;
  padding: 6px 8px;
  font-size: 12px;
}

.pdv-order-entry .pdv-table-item-form {
  grid-template-columns: minmax(180px, 1fr) 82px 105px;
  gap: 5px;
  margin: 0 6px 6px;
  padding: 6px;
}

.pdv-order-entry .pdv-table-item-form label {
  font-size: 10px;
}

.pdv-order-entry .pdv-table-item-form input,
.pdv-order-entry .pdv-table-item-form select {
  min-height: 28px;
  font-size: 12px;
  padding: 0 6px;
}

.pdv-order-entry .pdv-table-item-form button {
  min-height: 30px;
  font-size: 12px;
  padding: 0 8px;
}

.pdv-order-entry .pdv-table-item-form button .icon {
  width: 25px;
  height: 25px;
  padding: 5px;
}

.pdv-order-items-title {
  grid-template-columns: 1fr 140px 190px;
  gap: 6px;
  padding: 5px 8px;
  font-size: 11px;
}

.pdv-order-items table {
  min-width: 650px;
}

.pdv-order-items th,
.pdv-order-items td {
  padding: 5px 7px;
  font-size: 11px;
}

.pdv-order-items td button {
  min-height: 24px;
  padding: 0 7px;
}

.pdv-order-bottom {
  grid-template-columns: minmax(190px, 1fr) 140px 250px;
  gap: 8px;
  padding: 6px 8px;
}

.pdv-order-bottom textarea {
  min-height: 72px;
  padding: 6px;
}

.pdv-order-totals {
  gap: 4px;
}

.pdv-order-totals p {
  font-size: 11px;
}

.pdv-order-totals strong {
  padding: 5px 8px;
  font-size: 15px;
}

.pdv-order-actions {
  gap: 5px;
  padding: 6px;
}

.pdv-order-actions button,
.pdv-order-actions a {
  min-height: 34px;
  font-size: 12px;
  padding-inline: 9px;
}

.pdv-order-actions form {
  gap: 5px;
}

.pdv-order-search {
  grid-template-columns: 1fr 34px;
  gap: 4px;
  padding: 4px;
}

.pdv-order-search input,
.pdv-order-search button {
  min-height: 28px;
  font-size: 12px;
}

.pdv-order-groups {
  gap: 4px;
  max-height: 78px;
  padding: 4px;
}

.pdv-order-groups a {
  min-height: 24px;
  border-radius: 3px;
  font-size: 10px;
  padding: 0 7px;
}

.pdv-order-product-list {
  padding: 4px;
}

.pdv-order-product-card {
  grid-template-columns: 56px 1fr auto;
  gap: 6px;
  min-height: 64px;
  padding: 5px;
}

.pdv-order-product-card img {
  width: 50px;
  height: 50px;
}

.pdv-order-product-card div {
  gap: 1px;
}

.pdv-order-product-card strong {
  font-size: 11px;
  line-height: 1.15;
}

.pdv-order-product-card span {
  font-size: 10px;
}

.pdv-order-product-card b {
  font-size: 13px;
}

.pdv-order-product-card button {
  min-height: 27px;
  font-size: 10px;
  padding: 0 7px;
}

@media (max-width: 1100px) {
  .pdv-order-entry-body {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .pdv-order-products {
    grid-column: 1 / -1;
    min-height: 240px;
  }

  .pdv-order-entry-top {
    grid-template-columns: 1fr auto auto;
    gap: 8px;
  }

  .pdv-order-entry-top p:nth-of-type(2),
  .pdv-order-entry-top p:nth-of-type(4) {
    display: none;
  }
}

@media (max-width: 720px) {
  .pdv-order-entry {
    height: 100dvh;
  }

  .pdv-order-entry-top {
    grid-template-columns: 1fr 38px;
    height: auto;
    min-height: 58px;
  }

  .pdv-order-entry-top p {
    display: none;
  }

  .pdv-order-entry-body {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .pdv-order-steps {
    display: none;
  }

  .pdv-order-work {
    min-height: 680px;
  }

  .pdv-order-client-grid,
  .pdv-order-bottom {
    grid-template-columns: 1fr;
  }

  .pdv-order-client-grid .wide,
  .pdv-order-command {
    grid-column: auto;
    grid-row: auto;
  }

  .pdv-order-groups {
    max-height: 92px;
  }

  .pdv-order-product-card {
    grid-template-columns: 68px 1fr;
  }

  .pdv-order-product-card form {
    grid-column: 1 / -1;
  }
}

/* Janela menor de lancamento sobre o quadro de mesas. */
.pdv-order-entry-modal {
  inset: 0 0 78px;
  align-items: start;
  justify-items: center;
  padding: 10px 18px;
  background: rgba(8, 22, 39, .42);
  overflow: hidden;
}

.pdv-order-entry {
  width: min(1340px, calc(100vw - 72px));
  height: 100%;
  max-height: calc(100vh - 98px);
  min-height: 0;
  border: 1px solid #9fb1c4;
  box-shadow: 0 18px 56px rgba(0, 0, 0, .34);
}

.pdv-order-entry-top {
  min-height: 44px;
}

.pdv-order-entry-body {
  grid-template-columns: 66px minmax(500px, 1fr) minmax(310px, 38%);
  min-height: 0;
  overflow: hidden;
  padding: 4px;
}

.pdv-order-steps {
  grid-auto-rows: 54px;
  gap: 5px;
  padding: 4px;
  background: #10253a;
}

.pdv-order-steps span {
  min-width: 0;
  overflow: hidden;
  gap: 2px;
  padding: 4px 2px;
  font-size: 10px;
  line-height: 1.05;
  text-align: center;
}

.pdv-order-steps .icon {
  width: 21px;
  height: 21px;
}

.pdv-order-work {
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: auto;
  align-content: start;
  grid-template-rows: auto auto auto auto auto;
}

.pdv-order-client-grid {
  grid-template-columns: 1fr 136px 210px;
  padding: 5px;
}

.pdv-order-command {
  max-height: 114px;
}

.pdv-order-bottom {
  grid-template-columns: minmax(180px, 1fr) 150px 260px;
  min-height: 0;
  gap: 5px;
  padding: 8px 10px;
  overflow: hidden;
}

.pdv-order-bottom textarea {
  min-height: 76px;
  max-height: 92px;
}

.pdv-order-items {
  min-height: 0;
  max-height: clamp(160px, 34vh, 320px);
  overflow: auto;
}

.pdv-order-actions {
  min-height: 52px;
  position: relative;
  z-index: 2;
  flex-wrap: nowrap;
  overflow: visible;
  background: #fff;
  box-shadow: 0 -1px 0 #d7e0ea;
}

.pdv-order-actions button,
.pdv-order-actions a {
  min-height: 38px;
}

.pdv-order-actions .pdv-table-payment {
  min-width: 0;
}

.pdv-order-products {
  min-width: 0;
}

.pdv-order-groups {
  max-height: 72px;
}

.pdv-order-product-card {
  min-height: 58px;
}

.pdv-order-product-card img {
  width: 46px;
  height: 46px;
}

@media (max-width: 1220px) {
  .pdv-order-entry {
    width: calc(100vw - 28px);
    height: 100%;
    max-height: calc(100vh - 96px);
  }

  .pdv-order-entry-body {
    grid-template-columns: 62px minmax(420px, 1fr) minmax(280px, 36%);
  }
}

@media (max-width: 920px) {
  .pdv-order-entry-modal {
    inset: 0;
    padding: 0;
  }

  .pdv-order-entry {
    width: 100vw;
    height: 100dvh;
    min-height: 0;
    border: 0;
  }

  .pdv-order-entry-body {
    grid-template-columns: 1fr;
    overflow: auto;
  }
}

/* Receipt 80mm thermal printer setup */
.receipt-print {
  page: receipt;
}

.receipt {
  width: 72mm;
  max-width: 72mm;
  padding: 0;
  color: #000;
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.receipt h2 {
  color: #000;
  font-size: 20px;
  font-weight: 900;
}

.receipt h3 {
  color: #000;
  font-size: 17px;
  font-weight: 900;
}

.receipt table,
.receipt p,
.receipt td,
.receipt th,
.receipt .muted {
  color: #000;
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 900;
}

.receipt .muted {
  color: #000;
  font-size: 13px;
}

.receipt b,
.receipt strong,
.receipt td:first-child,
.receipt td:last-child {
  color: #000;
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-weight: 900;
}

.receipt table {
  table-layout: fixed;
}

.receipt td:first-child {
  width: 52mm;
  word-break: break-word;
}

.receipt td:last-child {
  width: 20mm;
}

.receipt td.receipt-item-note {
  width: 72mm !important;
  max-width: 72mm !important;
  height: auto !important;
  padding: 3px 0 5px;
  overflow: visible !important;
  text-align: left !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  line-height: 1.3;
}

.receipt .receipt-item-note span {
  display: inline;
  white-space: pre-wrap !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

.receipt .receipt-item-note-row {
  height: auto !important;
  break-inside: auto !important;
  page-break-inside: auto !important;
}

@media print {
  @page receipt {
    size: 80mm 200mm;
    margin: 0;
  }

  html,
  body {
    width: 80mm;
    min-width: 80mm;
    max-width: 80mm;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    display: block !important;
    overflow: visible !important;
  }

  @page {
    size: 80mm 200mm;
    margin: 0;
  }

  body.printing * {
    visibility: hidden !important;
  }

  body.printing .pdv-screen {
    display: block !important;
    position: static !important;
    width: 80mm !important;
    min-width: 80mm !important;
    max-width: 80mm !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    overflow: visible !important;
  }

  body.printing .receipt-print {
    visibility: visible !important;
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    right: auto !important;
    bottom: auto !important;
    width: 80mm !important;
    max-width: 80mm !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 2mm 3mm 0 !important;
    background: #fff !important;
    box-sizing: border-box !important;
    break-after: avoid !important;
    page-break-after: avoid !important;
  }

  body.printing .receipt-print * {
    visibility: visible !important;
  }

  body.printing .receipt {
    width: 74mm !important;
    max-width: 74mm !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #000 !important;
    font-family: "Arial Black", Arial, Helvetica, sans-serif !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body.printing .receipt h2 {
    color: #000 !important;
    font-size: 20px !important;
    font-weight: 900 !important;
  }

  body.printing .receipt h3 {
    color: #000 !important;
    font-size: 17px !important;
    font-weight: 900 !important;
  }

  body.printing .receipt table,
  body.printing .receipt p,
  body.printing .receipt td,
  body.printing .receipt th,
  body.printing .receipt .muted {
    color: #000 !important;
    font-family: "Arial Black", Arial, Helvetica, sans-serif !important;
    font-size: 14px !important;
    font-weight: 900 !important;
  }

  body.printing .receipt .muted {
    color: #000 !important;
    font-size: 13px !important;
  }

  body.printing .receipt b,
  body.printing .receipt strong,
  body.printing .receipt td:first-child,
  body.printing .receipt td:last-child {
    color: #000 !important;
    font-family: "Arial Black", Arial, Helvetica, sans-serif !important;
    font-weight: 900 !important;
  }

  body.printing .receipt td.receipt-item-note {
    width: 74mm !important;
    max-width: 74mm !important;
    height: auto !important;
    overflow: visible !important;
    text-align: left !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }
}

/* Final PDV customer-focused cards and compact status menu override */
.pdv-filterbar {
  gap: 10px !important;
}

.pdv-status-menu {
  display: inline-grid !important;
  grid-template-columns: minmax(190px, 260px) 40px;
  align-items: end;
  gap: 6px;
  margin: 0;
}

.pdv-status-menu label {
  display: grid;
  gap: 3px;
  margin: 0;
}

.pdv-status-menu label span {
  color: #315b86;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.pdv-status-menu select {
  width: 100%;
  min-height: 36px;
  border: 1px solid #9fb1c5;
  border-radius: 6px;
  background: #fff;
  color: #0f1d36;
  font-size: 13px;
  font-weight: 900;
}

.pdv-status-menu button {
  width: 40px;
  min-width: 40px;
  min-height: 36px;
  padding: 0;
  border-radius: 6px;
}

.pdv-mini-board {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important;
  grid-auto-rows: 126px !important;
}

.pdv-mini-card {
  grid-template-rows: auto auto auto 1fr !important;
  gap: 4px !important;
  padding: 10px 10px 7px !important;
}

.pdv-mini-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: #111827 !important;
  font-size: 17px !important;
  font-weight: 900;
  line-height: 1.1;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pdv-mini-card > span {
  margin-top: 0 !important;
  color: #536179;
  font-size: 11px;
  font-weight: 900;
}

.pdv-mini-card b {
  color: #047857 !important;
  font-size: 15px !important;
}

.pdv-mini-card .pdv-delivery-badge {
  right: 9px !important;
  top: 48px !important;
  align-items: center;
  gap: 3px;
  max-width: 86px;
  font-size: 12px !important;
}

.pdv-mini-card .pdv-delivery-badge .icon {
  width: 22px !important;
  height: 22px !important;
}

.pdv-mini-card small {
  display: block;
  min-height: 28px;
  border-top: 1px solid #e5e7eb;
  color: #4b5563;
  font-size: 10px !important;
  line-height: 1.2;
}

.pdv-mini-card small mark {
  display: inline-block;
  margin-right: 4px;
  border-radius: 4px;
  padding: 2px 4px;
  background: #eaf2ff;
  color: #123f73;
  font-weight: 900;
}

/* Final PDV floating action menu override */
.pdv-screen {
  grid-template-rows: 50px minmax(0, 1fr) !important;
}

.pdv-side,
.pdv-work,
.pdv-received {
  grid-row: 2;
}

.pdv-mini-board {
  height: calc(100vh - 50px - 28px - 30px) !important;
}

.pdv-footer {
  position: fixed !important;
  right: 18px;
  bottom: calc(82px + env(safe-area-inset-bottom));
  z-index: 35;
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 8px;
  min-height: auto;
  padding: 10px;
  border-radius: 12px;
  background: rgba(49, 91, 134, .97);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .28);
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.pdv-actions-open .pdv-footer {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.pdv-footer button,
.pdv-footer a {
  justify-content: flex-start;
  min-width: 190px;
  min-height: 38px;
  border-radius: 8px;
}

.pdv-fab {
  position: fixed !important;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 36;
  width: auto;
  min-height: 56px;
  gap: 8px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #f28b2a;
  color: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .30);
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
}

.pdv-fab .icon {
  width: 24px;
  height: 24px;
}

.pdv-actions-open .pdv-fab {
  background: #197b83;
}

/* Restaurant PDV reference style - final override */
.page-pdv,
.page-pdv main {
  background: #eef3f8 !important;
}

.pdv-screen {
  grid-template-columns: 240px minmax(720px, 1fr) 330px !important;
  grid-template-rows: 78px minmax(0, 1fr) !important;
  background: #eef3f8 !important;
}

.pdv-top {
  grid-template-columns: 240px 1fr 220px !important;
  min-height: 78px !important;
  border: 0 !important;
  background: linear-gradient(100deg, #071b3b, #0f2f68) !important;
}

.pdv-side {
  grid-row: 2 !important;
  grid-template-rows: auto auto auto 1fr auto !important;
  justify-items: stretch !important;
  padding: 18px 16px 26px !important;
  background: linear-gradient(180deg, #0d2a55, #132f57) !important;
}

.pdv-side-menu {
  display: grid !important;
  gap: 10px;
  margin-top: 24px;
}

.pdv-side-menu a {
  min-height: 46px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 12px;
  border-radius: 9px;
  padding: 0 16px;
  color: #eff6ff;
  font-size: 15px;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
}

.pdv-side-menu a.active,
.pdv-side-menu a:hover {
  background: linear-gradient(90deg, #315ae8, #335bd3);
}

.pdv-work {
  grid-column: 2 !important;
  grid-row: 2 !important;
  margin: 10px 10px 10px 12px !important;
  border: 1px solid #dbe4f0 !important;
  border-radius: 10px !important;
  background: #fff !important;
}

.pdv-received {
  grid-column: 3 !important;
  grid-row: 2 !important;
  margin: 10px 12px 10px 0 !important;
  border: 1px solid #dbe4f0 !important;
  border-radius: 10px !important;
  background: #fff !important;
  padding: 12px !important;
}

.pdv-received h2 {
  border-radius: 7px !important;
  background: linear-gradient(90deg, #2f54dc, #315fe0) !important;
}

.pdv-tabs,
.pdv-tablebar {
  background: #fff !important;
  box-shadow: none !important;
}

.pdv-tabs .active {
  background: #eef4ff !important;
  color: #244fdb !important;
}

.pdv-tables-panel {
  height: calc(100vh - 222px) !important;
  overflow: auto !important;
  border: 0 !important;
  background: #fff !important;
}

.pdv-tables-grid {
  grid-template-columns: repeat(5, minmax(150px, 1fr)) !important;
  grid-auto-rows: 170px !important;
  gap: 12px !important;
}

.pdv-table-card {
  height: 170px !important;
  grid-template-rows: 28px 58px 20px 18px 28px !important;
  border: 1px solid #dce5ef !important;
  border-left: 1px solid #dce5ef !important;
  border-radius: 9px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.pdv-table-card.ocupado {
  border-color: #264be0 !important;
  box-shadow: inset 0 0 0 1px #264be0 !important;
}

.pdv-table-body {
  border-radius: 7px !important;
  background: linear-gradient(135deg, #008378, #009c91) !important;
}

.pdv-table-card.ocupado .pdv-table-body {
  background: linear-gradient(135deg, #ff4022, #ff6938) !important;
}

.pdv-table-body .pdv-table-icon {
  background: transparent !important;
  color: #fff !important;
}

.pdv-table-card.ocupado em {
  background: #e9142a !important;
  color: #fff !important;
}

.pdv-table-card.ocupado footer a {
  background: #102b91 !important;
  color: #fff !important;
}

.pdv-deliverybar {
  min-height: 70px;
  align-items: center !important;
  border: 0 !important;
  border-bottom: 1px solid #e5ebf3 !important;
  border-radius: 0 !important;
  background: #fff !important;
  padding: 12px 22px !important;
}

.pdv-deliverybar > strong {
  color: #12234a;
  font-size: 15px;
  font-weight: 900;
}

.pdv-deliverybar > span {
  color: #52627d;
  font-size: 13px;
  font-weight: 800;
}

.pdv-status-menu {
  grid-template-columns: minmax(190px, 260px) 40px !important;
}

.pdv-status-menu label span {
  color: #52627d !important;
}

.pdv-mini-board {
  height: calc(100vh - 222px) !important;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important;
  grid-auto-rows: 154px !important;
  gap: 12px !important;
  overflow: auto !important;
  padding: 14px 22px 24px !important;
  background: #fff !important;
}

.pdv-mini-card {
  display: grid !important;
  grid-template-rows: auto auto auto 1fr !important;
  gap: 5px !important;
  border: 1px solid #dce5ef !important;
  border-left: 1px solid #dce5ef !important;
  border-radius: 9px !important;
  background: #fff !important;
  padding: 12px !important;
  box-shadow: none !important;
  outline: none !important;
}

.pdv-mini-card strong {
  color: #001b7a !important;
  font-size: 18px !important;
  line-height: 1.12 !important;
}

.pdv-mini-card > span {
  color: #52627d !important;
}

.pdv-mini-card b {
  color: #008a2e !important;
}

.pdv-mini-card .pdv-delivery-badge {
  top: 44px !important;
  right: 12px !important;
  border-radius: 8px;
  padding: 6px 8px;
  background: linear-gradient(135deg, #008378, #009c91);
  color: #fff !important;
}

.pdv-mini-card small mark {
  background: #e9f9ed !important;
  color: #16803a !important;
}

.pdv-mini-card.status-pronto small mark,
.pdv-mini-card.status-saiu_entrega small mark {
  background: #fff4e6 !important;
  color: #d97706 !important;
}

.pdv-mini-card.status-cancelado small mark {
  background: #fff1f2 !important;
  color: #e11d48 !important;
}

.pdv-mini-card.status-finalizado small mark,
.pdv-mini-card.status-entregue small mark {
  background: #eef2ff !important;
  color: #3730a3 !important;
}

@media (min-width: 1700px) {
  .pdv-screen {
    grid-template-columns: 260px minmax(900px, 1fr) 360px !important;
  }

  .pdv-tables-grid {
    grid-template-columns: repeat(5, minmax(180px, 1fr)) !important;
  }

  .pdv-mini-board {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  }
}

@media (max-width: 1280px) {
  .pdv-screen {
    grid-template-columns: 210px minmax(560px, 1fr) 300px !important;
  }

  .pdv-tables-grid {
    grid-template-columns: repeat(4, minmax(145px, 1fr)) !important;
  }

  .pdv-side-menu a {
    padding-inline: 12px;
    font-size: 14px;
  }
}

@media (max-width: 980px) {
  .pdv-screen {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: 64px auto auto auto !important;
  }

  .pdv-top {
    grid-template-columns: 1fr auto !important;
  }

  .pdv-top strong {
    padding-left: 18px !important;
  }

  .pdv-top h1 {
    display: none;
  }

  .pdv-side {
    grid-row: 2 !important;
    min-height: auto;
  }

  .pdv-side-menu {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pdv-side-menu a {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 4px;
    padding: 8px 4px;
    text-align: center;
  }

  .pdv-work {
    grid-column: 1 !important;
    grid-row: 3 !important;
    margin: 10px !important;
  }

  .pdv-received {
    grid-column: 1 !important;
    grid-row: 4 !important;
    margin: 0 10px 10px !important;
  }

  .pdv-tables-panel,
  .pdv-mini-board {
    height: auto !important;
    max-height: none !important;
  }

  .pdv-tables-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr)) !important;
  }
}

@media (max-width: 680px) {
  .pdv-side-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pdv-tabs,
  .pdv-tablebar,
  .pdv-deliverybar {
    padding: 10px !important;
  }

  .pdv-deliverybar,
  .pdv-tablebar {
    display: grid !important;
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .pdv-status-menu {
    grid-template-columns: 1fr 40px !important;
  }

  .pdv-tables-grid,
  .pdv-mini-board {
    grid-template-columns: 1fr !important;
  }

  .pdv-footer {
    right: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom));
    max-width: calc(100vw - 24px);
  }

  .pdv-footer button,
  .pdv-footer a {
    min-width: min(210px, calc(100vw - 44px));
  }

  .pdv-fab {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
  }
}
/* Delivery receiving screen - final end-of-file override */
.pdv-delivery-receiving {
  grid-template-columns: 240px minmax(300px, 370px) minmax(430px, 1fr) minmax(300px, 340px) !important;
  grid-template-rows: 72px minmax(0, 1fr) !important;
}

.pdv-delivery-receiving .pdv-top {
  grid-column: 2 / 5 !important;
}

.pdv-delivery-receiving .pdv-work {
  grid-column: 2 !important;
  grid-row: 2 !important;
  margin: 10px 10px 10px 12px !important;
}

.pdv-delivery-receiving .pdv-mini-board {
  grid-template-columns: 1fr !important;
  grid-auto-rows: auto !important;
  height: calc(100vh - 216px) !important;
  max-height: none !important;
  padding: 10px !important;
  overflow: auto !important;
}

.pdv-delivery-receiving .pdv-mini-card {
  min-height: 128px !important;
  border-radius: 12px !important;
  border-color: #dbe4f0 !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08) !important;
}

.pdv-delivery-receiving .pdv-mini-card.selected {
  border-color: #315fe0 !important;
  box-shadow: 0 0 0 2px rgba(49, 95, 224, .16), 0 18px 34px rgba(15, 23, 42, .12) !important;
}

.pdv-order-live-detail,
.pdv-customer-panel {
  min-width: 0;
  min-height: 0;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, .09);
}

.pdv-order-live-detail {
  grid-column: 3;
  grid-row: 2;
  margin: 10px 10px 10px 0;
  padding: 16px;
  overflow: auto;
}

.pdv-customer-panel {
  grid-column: 4;
  grid-row: 2;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 10px 12px 10px 0;
  padding: 12px;
  overflow: auto;
}

.pdv-order-live-detail.empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
  color: #64748b;
}

.pdv-live-detail-top,
.pdv-customer-card header,
.pdv-new-order-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.pdv-live-detail-top h2,
.pdv-customer-card h2,
.pdv-new-order-card h2,
.pdv-order-live-detail.empty h2 {
  margin: 2px 0 0;
  color: #0f2d5c;
  font-size: 22px;
  letter-spacing: 0;
}

.pdv-live-detail-top small,
.pdv-customer-card small,
.pdv-new-order-card small {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.pdv-live-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eaf1ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.pdv-live-status.status-cancelado {
  background: #fee2e2;
  color: #b91c1c;
}

.pdv-live-status.status-finalizado,
.pdv-live-status.status-entregue {
  background: #dcfce7;
  color: #047857;
}

.pdv-live-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.pdv-live-metrics p,
.pdv-customer-card,
.pdv-new-order-card {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

.pdv-live-metrics p {
  background: #f8fafc;
}

.pdv-live-metrics span,
.pdv-live-metrics small {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.pdv-live-metrics b {
  display: block;
  margin-top: 3px;
  color: #0f2d5c;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.pdv-order-live-detail .pdv-detail-tabs {
  margin-top: 12px;
  box-shadow: none;
}

.pdv-order-live-detail .pdv-detail-tab-nav {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  border-radius: 12px;
}

.pdv-live-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.pdv-live-actions form,
.pdv-live-actions a {
  flex: 1 1 150px;
}

.pdv-live-actions button,
.pdv-live-actions a {
  width: 100%;
  min-height: 42px;
  justify-content: center;
}

.pdv-customer-card header > svg,
.pdv-new-order-card header > svg {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 10px;
  background: #eef4ff;
  color: #315fe0;
}

.pdv-customer-name {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #12325f, #315fe0);
  color: #fff;
}

.pdv-customer-name strong {
  font-size: 17px;
}

.pdv-customer-name span {
  color: rgba(255, 255, 255, .82);
  font-weight: 700;
}

.pdv-customer-info {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}

.pdv-customer-info dt {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.pdv-customer-info dd {
  margin: -4px 0 2px;
  color: #0f2d5c;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.pdv-customer-note,
.pdv-customer-empty,
.pdv-auto-help {
  margin: 12px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.pdv-customer-note,
.pdv-new-order-alert {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 12px;
  background: #fff7ed;
  color: #9a3412;
}

.pdv-new-order-alert strong {
  color: #7c2d12;
  font-size: 16px;
}

.pdv-new-order-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 22px 10px;
  color: #64748b;
  text-align: center;
}

.pdv-new-order-empty svg {
  width: 54px;
  height: 54px;
  color: #b8c7e8;
}

.pdv-new-order-empty strong {
  color: #0f2d5c;
}

.pdv-auto-accept {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: #0f2d5c;
  font-size: 13px;
  font-weight: 900;
}

.pdv-auto-accept input {
  width: 16px;
  height: 16px;
  accent-color: #315fe0;
}

@media (max-width: 1500px) {
  .pdv-delivery-receiving {
    grid-template-columns: 220px minmax(280px, 330px) minmax(390px, 1fr) 300px !important;
  }

  .pdv-live-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .pdv-delivery-receiving {
    grid-template-columns: 1fr !important;
    grid-template-rows: 64px auto auto auto auto !important;
  }

  .pdv-delivery-receiving .pdv-top {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .pdv-delivery-receiving .pdv-side {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }

  .pdv-delivery-receiving .pdv-work {
    grid-column: 1 !important;
    grid-row: 3 !important;
    margin: 10px !important;
  }

  .pdv-delivery-receiving .pdv-mini-board {
    height: auto !important;
  }

  .pdv-order-live-detail {
    grid-column: 1 !important;
    grid-row: 4 !important;
    margin: 0 10px 10px !important;
  }

  .pdv-customer-panel {
    grid-column: 1 !important;
    grid-row: 5 !important;
    grid-template-rows: auto auto;
    margin: 0 10px 10px !important;
  }
}

@media (max-width: 720px) {
  .pdv-delivery-receiving .pdv-deliverybar {
    grid-template-columns: 1fr !important;
  }

  .pdv-live-metrics {
    grid-template-columns: 1fr;
  }

  .pdv-live-detail-top,
  .pdv-customer-card header,
  .pdv-new-order-card header,
  .pdv-live-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .pdv-live-status,
  .pdv-live-actions form,
  .pdv-live-actions a {
    width: 100%;
  }
}
/* Delivery reference layout - final requested override */
.pdv-delivery-receiving {
  grid-template-columns: 260px minmax(330px, 390px) minmax(520px, 1fr) minmax(300px, 340px) !important;
  grid-template-rows: 86px 58px minmax(0, 1fr) !important;
  gap: 0 !important;
  background: #f8fafc !important;
  color: #111827;
}

.pdv-delivery-receiving .pdv-top {
  grid-column: 2 / 5 !important;
  grid-row: 1 !important;
  min-height: 86px !important;
  display: grid !important;
  grid-template-columns: 1fr auto auto !important;
  align-items: center !important;
  gap: 18px !important;
  padding: 0 28px 0 40px !important;
  border-bottom: 1px solid #e5e7eb !important;
  background: #fff !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .05) !important;
}

.pdv-delivery-receiving .pdv-top strong {
  justify-self: start !important;
  padding: 0 !important;
  color: #111827 !important;
  font-size: 30px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.pdv-delivery-receiving .pdv-top h1 {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 8px 16px !important;
  border-radius: 999px !important;
  background: #eaf9ef !important;
  color: #07964b !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}

.pdv-online-dot,
.pdv-offline-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #16a34a;
}

.pdv-offline-dot {
  background: #ef4444;
}

.pdv-delivery-receiving .pdv-top > a {
  width: auto !important;
  min-width: 164px !important;
  height: 44px !important;
  border: 1px solid #d7dee8 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #111827 !important;
  font-size: 0 !important;
  text-decoration: none !important;
}

.pdv-delivery-receiving .pdv-top > a::before {
  content: "Filtrar pedidos";
  font-size: 15px;
  font-weight: 900;
}

.pdv-delivery-receiving .pdv-side {
  grid-column: 1 !important;
  grid-row: 1 / 4 !important;
  display: grid !important;
  grid-template-rows: auto auto auto 1fr auto auto !important;
  gap: 0 !important;
  padding: 24px 12px 18px !important;
  background: linear-gradient(180deg, #111b28, #162335) !important;
  color: #fff !important;
}

.pdv-delivery-receiving .pdv-logo-box {
  width: 58px !important;
  height: 58px !important;
  margin: 0 0 0 20px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: #ff6b19 !important;
}

.pdv-delivery-receiving .pdv-logo-box img {
  display: none !important;
}

.pdv-delivery-receiving .pdv-logo-box::before {
  content: "D";
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
  font-size: 32px;
  font-weight: 1000;
}

.pdv-delivery-receiving .pdv-side > strong {
  margin: -52px 0 0 90px !important;
  color: #fff !important;
  font-size: 23px !important;
  line-height: 1.1 !important;
  text-align: left !important;
}

.pdv-delivery-receiving .pdv-side > small {
  margin: 0 0 42px 90px !important;
  color: #cbd5e1 !important;
  text-align: left !important;
}

.pdv-delivery-receiving .pdv-side-menu {
  display: grid !important;
  gap: 8px !important;
  margin: 0 !important;
}

.pdv-delivery-receiving .pdv-side-menu a {
  min-height: 52px !important;
  grid-template-columns: 32px 1fr auto !important;
  border-radius: 8px !important;
  padding: 0 16px !important;
  color: #e5edf7 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
}

.pdv-delivery-receiving .pdv-side-menu a.active {
  background: linear-gradient(135deg, #ff7417, #ff5419) !important;
  box-shadow: 0 12px 26px rgba(255, 91, 20, .28) !important;
}

.pdv-delivery-receiving .pdv-side > b {
  display: grid !important;
  gap: 10px !important;
  margin: 22px 8px 18px !important;
  padding: 18px !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, .06) !important;
  color: #fff !important;
  font-size: 14px !important;
  text-align: left !important;
}

.pdv-delivery-receiving .pdv-side > b::before {
  content: "Resumo do dia";
  font-size: 15px;
  font-weight: 900;
}

.pdv-delivery-receiving .pdv-work {
  grid-column: 2 !important;
  grid-row: 2 / 4 !important;
  display: grid !important;
  grid-template-rows: 58px auto minmax(0, 1fr) !important;
  min-width: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.pdv-delivery-receiving .pdv-tabs {
  display: none !important;
}

.pdv-delivery-receiving .pdv-deliverybar {
  grid-row: 1 / 3 !important;
  display: contents !important;
}

.pdv-delivery-receiving .pdv-status-tabs {
  grid-column: 2 / 5 !important;
  grid-row: 2 !important;
  display: grid !important;
  grid-template-columns: repeat(8, minmax(120px, 1fr)) !important;
  align-items: stretch !important;
  margin: 22px 28px 0 !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px 8px 0 0 !important;
  background: #fff !important;
  overflow-x: auto !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .05) !important;
}

.pdv-delivery-receiving .pdv-status-tabs a {
  position: relative;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 54px !important;
  padding: 0 14px !important;
  border-right: 1px solid #e5e7eb !important;
  color: #111827 !important;
  text-decoration: none !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

.pdv-delivery-receiving .pdv-status-tabs a.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: #ff6b1a;
}

.pdv-delivery-receiving .pdv-status-tabs b {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #ff6b1a;
  color: #fff;
  font-size: 12px;
}

.pdv-delivery-receiving .pdv-status-tabs .status-novo b,
.pdv-delivery-receiving .pdv-status-tabs .status-cancelado b {
  background: #ef4444;
}

.pdv-delivery-receiving .pdv-status-tabs .status-recebido b {
  background: #3b82f6;
}

.pdv-delivery-receiving .pdv-status-tabs .status-em_preparo b {
  background: #f59e0b;
}

.pdv-delivery-receiving .pdv-status-tabs .status-pronto b {
  background: #a855f7;
}

.pdv-delivery-receiving .pdv-status-tabs .status-saiu_entrega b {
  background: #14b8a6;
}

.pdv-delivery-receiving .pdv-status-tabs .status-entregue b {
  background: #65a30d;
}

.pdv-delivery-receiving .pdv-search-wrap {
  grid-column: 1 !important;
  grid-row: 2 !important;
  display: grid !important;
  grid-template-columns: 1fr 44px !important;
  gap: 10px !important;
  padding: 20px 16px 10px 28px !important;
}

.pdv-delivery-receiving .pdv-search-wrap label {
  display: grid !important;
  grid-template-columns: 24px 1fr !important;
  align-items: center !important;
  min-height: 44px !important;
  padding: 0 12px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #94a3b8 !important;
}

.pdv-delivery-receiving .pdv-search-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #111827;
  font-size: 14px;
}

.pdv-delivery-receiving .pdv-search-wrap .pdv-refresh {
  display: grid !important;
  place-items: center !important;
  min-width: 44px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #475569 !important;
}

.pdv-delivery-receiving .pdv-online-form {
  display: none !important;
}

.pdv-delivery-receiving .pdv-mini-board {
  grid-row: 3 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-auto-rows: auto !important;
  align-content: start !important;
  gap: 12px !important;
  height: calc(100vh - 220px) !important;
  padding: 8px 16px 26px 28px !important;
  overflow: auto !important;
  background: transparent !important;
}

.pdv-delivery-receiving .pdv-mini-card {
  position: relative !important;
  display: grid !important;
  grid-template-rows: auto auto auto auto !important;
  gap: 10px !important;
  min-height: 120px !important;
  padding: 16px !important;
  border: 1px solid #e5e7eb !important;
  border-left: 4px solid #3b82f6 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #111827 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

.pdv-delivery-receiving .pdv-mini-card.selected {
  border-left-color: #ff6b1a !important;
  background: #fff7ed !important;
  box-shadow: 0 14px 34px rgba(249, 115, 22, .12) !important;
}

.pdv-delivery-receiving .pdv-mini-card.status-novo {
  border-left-color: #ef4444 !important;
}

.pdv-delivery-receiving .pdv-mini-card.status-em_preparo {
  border-left-color: #f59e0b !important;
}

.pdv-delivery-receiving .pdv-mini-card.status-pronto {
  border-left-color: #a855f7 !important;
}

.pdv-delivery-receiving .pdv-mini-card.status-saiu_entrega {
  border-left-color: #14b8a6 !important;
}

.pdv-card-head {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 10px;
}

.pdv-card-head b {
  color: #111827 !important;
  font-size: 16px !important;
}

.pdv-card-head mark {
  border-radius: 6px;
  padding: 3px 8px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.pdv-card-head time {
  justify-self: end;
  color: #475569;
  font-size: 13px;
}

.pdv-delivery-receiving .pdv-mini-card strong {
  color: #111827 !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
}

.pdv-delivery-receiving .pdv-mini-card > span,
.pdv-delivery-receiving .pdv-mini-card small {
  color: #475569 !important;
  font-size: 13px !important;
}

.pdv-delivery-receiving .pdv-mini-card .pdv-delivery-badge {
  position: absolute !important;
  right: 16px !important;
  bottom: 18px !important;
  top: auto !important;
  display: inline-flex !important;
  gap: 6px !important;
  background: transparent !important;
  color: #ff5b14 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.pdv-order-live-detail {
  grid-column: 3 !important;
  grid-row: 3 !important;
  height: calc(100vh - 176px) !important;
  margin: 20px 16px 24px 0 !important;
  padding: 26px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
  overflow: auto !important;
}

.pdv-live-detail-top {
  display: grid !important;
  grid-template-columns: 1fr auto auto !important;
  align-items: center !important;
  gap: 12px !important;
  padding-bottom: 24px !important;
  border-bottom: 1px solid #e5e7eb !important;
}

.pdv-live-detail-top h2 {
  margin: 0 0 8px !important;
  color: #111827 !important;
  font-size: 26px !important;
  font-weight: 900 !important;
}

.pdv-live-detail-top small {
  color: #64748b !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  text-transform: none !important;
}

.pdv-live-detail-top .pdv-flow {
  min-width: 180px !important;
  min-height: 44px !important;
  border-radius: 6px !important;
  background: #16a34a !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}

.pdv-live-status {
  min-height: 32px !important;
  border-radius: 6px !important;
  background: #ef4444 !important;
  color: #fff !important;
}

.pdv-live-metrics {
  display: none !important;
}

.pdv-order-live-detail .pdv-detail-items {
  margin-top: 22px !important;
}

.pdv-order-live-detail .pdv-detail-items h3,
.pdv-order-note h3,
.pdv-order-history-wrap h3 {
  margin: 0 0 14px !important;
  color: #111827 !important;
  font-size: 17px !important;
  font-weight: 900 !important;
}

.pdv-order-live-detail .pdv-detail-item {
  position: relative;
  min-height: 66px;
  padding: 14px 0 14px 92px !important;
  border-bottom: 1px solid #e5e7eb !important;
  background: transparent !important;
}

.pdv-order-live-detail .pdv-detail-item::before {
  content: "1";
  position: absolute;
  left: 0;
  top: 22px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 13px;
  font-weight: 900;
}

.pdv-order-live-detail .pdv-detail-item::after {
  content: "";
  position: absolute;
  left: 36px;
  top: 12px;
  width: 44px;
  height: 44px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff7ed, #fee2e2);
}

.pdv-order-live-detail .pdv-detail-item strong {
  color: #111827 !important;
  font-size: 15px !important;
}

.pdv-order-live-detail .pdv-detail-item span {
  color: #111827 !important;
  font-size: 16px !important;
  font-weight: 900 !important;
}

.pdv-order-total-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 26px;
  border-bottom: 1px solid #e5e7eb;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
}

.pdv-order-total-line b {
  color: #16a34a;
}

.pdv-order-note,
.pdv-order-history-wrap {
  margin-top: 22px;
}

.pdv-order-note p {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid #fde68a;
  border-radius: 8px;
  background: #fffbeb;
  color: #111827;
}

.pdv-order-history-wrap .pdv-history {
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  background: #fff !important;
}

.pdv-live-actions {
  display: none !important;
}

.pdv-customer-panel {
  grid-column: 4 !important;
  grid-row: 3 !important;
  display: grid !important;
  grid-template-rows: auto auto auto auto !important;
  gap: 18px !important;
  height: calc(100vh - 176px) !important;
  margin: 20px 28px 24px 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: auto !important;
}

.pdv-customer-card,
.pdv-estimate-card,
.pdv-quick-actions,
.pdv-new-order-card {
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.pdv-customer-card,
.pdv-quick-actions,
.pdv-new-order-card {
  padding: 18px !important;
}

.pdv-customer-card header,
.pdv-quick-actions header,
.pdv-new-order-card header {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 0 18px !important;
}

.pdv-customer-card h2,
.pdv-quick-actions h2,
.pdv-new-order-card h2 {
  margin: 0 !important;
  color: #111827 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
}

.pdv-customer-name {
  display: grid !important;
  gap: 14px !important;
  padding: 0 0 18px !important;
  border-radius: 0 !important;
  border-bottom: 1px solid #e5e7eb !important;
  background: transparent !important;
  color: #111827 !important;
}

.pdv-customer-name strong,
.pdv-customer-name span {
  color: #111827 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.pdv-customer-info {
  gap: 10px !important;
  margin-top: 18px !important;
}

.pdv-customer-info dt {
  color: #111827 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  text-transform: none !important;
}

.pdv-customer-info dd {
  margin: 0 0 8px !important;
  color: #111827 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.6 !important;
}

.pdv-estimate-card {
  display: grid !important;
  grid-template-columns: 28px 1fr !important;
  gap: 6px 12px !important;
  padding: 20px !important;
  background: #ecfdf3 !important;
  color: #15803d !important;
}

.pdv-estimate-card svg {
  grid-row: 1 / 3;
}

.pdv-estimate-card span {
  color: #111827;
  font-weight: 700;
}

.pdv-estimate-card b {
  color: #16a34a;
  font-size: 23px;
  font-weight: 900;
}

.pdv-quick-actions {
  display: grid;
  gap: 12px;
}

.pdv-quick-actions a,
.pdv-quick-actions button {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #dbe4ef;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.pdv-quick-actions button.danger {
  border-color: #fecaca;
  color: #ef4444;
}

.pdv-new-order-card {
  display: none;
}

.pdv-fab,
.pdv-footer {
  display: none !important;
}

@media (max-width: 1400px) {
  .pdv-delivery-receiving {
    grid-template-columns: 230px minmax(300px, 340px) minmax(460px, 1fr) 300px !important;
  }

  .pdv-delivery-receiving .pdv-status-tabs {
    grid-template-columns: repeat(8, minmax(110px, 1fr)) !important;
  }
}

@media (max-width: 1180px) {
  .pdv-delivery-receiving {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto auto auto !important;
  }

  .pdv-delivery-receiving .pdv-side,
  .pdv-delivery-receiving .pdv-top,
  .pdv-delivery-receiving .pdv-work,
  .pdv-delivery-receiving .pdv-status-tabs,
  .pdv-delivery-receiving .pdv-search-wrap,
  .pdv-order-live-detail,
  .pdv-customer-panel {
    grid-column: 1 !important;
  }

  .pdv-delivery-receiving .pdv-side {
    grid-row: 1 !important;
    grid-template-rows: auto auto auto !important;
    min-height: auto !important;
  }

  .pdv-delivery-receiving .pdv-side-menu {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .pdv-delivery-receiving .pdv-side > b {
    display: none !important;
  }

  .pdv-delivery-receiving .pdv-top {
    grid-row: 2 !important;
  }

  .pdv-delivery-receiving .pdv-status-tabs {
    grid-row: 3 !important;
    margin: 12px 12px 0 !important;
  }

  .pdv-delivery-receiving .pdv-work {
    grid-row: 4 !important;
    grid-template-rows: auto auto !important;
  }

  .pdv-delivery-receiving .pdv-search-wrap {
    grid-row: 1 !important;
    padding: 12px !important;
  }

  .pdv-delivery-receiving .pdv-mini-board,
  .pdv-order-live-detail,
  .pdv-customer-panel {
    height: auto !important;
  }

  .pdv-delivery-receiving .pdv-mini-board {
    grid-row: 2 !important;
    padding: 0 12px 12px !important;
  }

  .pdv-order-live-detail {
    grid-row: 5 !important;
    margin: 0 12px 12px !important;
  }

  .pdv-customer-panel {
    grid-row: 6 !important;
    margin: 0 12px 12px !important;
  }
}

@media (max-width: 720px) {
  .pdv-delivery-receiving .pdv-top {
    grid-template-columns: 1fr !important;
    padding: 18px !important;
  }

  .pdv-delivery-receiving .pdv-top > a,
  .pdv-delivery-receiving .pdv-top h1 {
    justify-self: start !important;
  }

  .pdv-delivery-receiving .pdv-side-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .pdv-live-detail-top {
    grid-template-columns: 1fr !important;
  }

  .pdv-live-detail-top .pdv-flow {
    width: 100% !important;
  }

  .pdv-order-live-detail {
    padding: 18px !important;
  }
}
/* Delivery status top correction */
.pdv-delivery-receiving .pdv-status-top {
  grid-column: 2 / 5 !important;
  grid-row: 2 !important;
  min-width: 0 !important;
  margin: 22px 28px 0 !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px 8px 0 0 !important;
  background: #fff !important;
  overflow-x: auto !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .05) !important;
}

.pdv-delivery-receiving .pdv-status-top .pdv-status-tabs {
  grid-column: auto !important;
  grid-row: auto !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.pdv-delivery-receiving .pdv-work {
  grid-row: 3 !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
}

.pdv-delivery-receiving .pdv-deliverybar {
  display: block !important;
  grid-row: auto !important;
}

.pdv-delivery-receiving .pdv-search-wrap {
  grid-column: auto !important;
  grid-row: auto !important;
  padding: 20px 16px 10px 28px !important;
}

.pdv-delivery-receiving .pdv-mini-board {
  grid-row: auto !important;
}

@media (max-width: 1180px) {
  .pdv-delivery-receiving .pdv-status-top {
    grid-column: 1 !important;
    grid-row: 3 !important;
    margin: 12px 12px 0 !important;
  }

  .pdv-delivery-receiving .pdv-work {
    grid-row: 4 !important;
  }
}
/* PDV as main index without sidebars */
.page-pdv {
  overflow: hidden !important;
  background: #f8fafc !important;
}

.page-pdv .admin-layout {
  display: block !important;
  min-height: 100vh !important;
  background: #f8fafc !important;
}

.page-pdv .admin-layout > aside,
.page-pdv .topbar,
.pdv-screen > .pdv-side {
  display: none !important;
}

.page-pdv .admin-layout > main,
.page-pdv main {
  width: 100% !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #f8fafc !important;
}

.pdv-screen {
  width: 100% !important;
  min-height: 100vh !important;
  height: 100vh !important;
  grid-template-columns: minmax(0, 1fr) 330px !important;
  grid-template-rows: 78px minmax(0, 1fr) !important;
}

.pdv-screen .pdv-top {
  grid-column: 1 / 3 !important;
  grid-row: 1 !important;
}

.pdv-screen .pdv-work {
  grid-column: 1 !important;
  grid-row: 2 !important;
  margin: 10px !important;
}

.pdv-screen .pdv-received {
  grid-column: 2 !important;
  grid-row: 2 !important;
  margin: 10px 10px 10px 0 !important;
}

.pdv-delivery-receiving {
  grid-template-columns: minmax(330px, 390px) minmax(520px, 1fr) minmax(300px, 340px) !important;
  grid-template-rows: 86px 58px minmax(0, 1fr) !important;
}

.pdv-delivery-receiving .pdv-top,
.pdv-delivery-receiving .pdv-status-top {
  grid-column: 1 / 4 !important;
}

.pdv-delivery-receiving .pdv-top {
  grid-row: 1 !important;
}

.pdv-delivery-receiving .pdv-status-top {
  grid-row: 2 !important;
  margin: 22px 28px 0 !important;
}

.pdv-delivery-receiving .pdv-work {
  grid-column: 1 !important;
  grid-row: 3 !important;
  margin: 0 !important;
}

.pdv-delivery-receiving .pdv-search-wrap {
  padding-left: 28px !important;
}

.pdv-delivery-receiving .pdv-mini-board {
  height: calc(100vh - 220px) !important;
  padding-left: 28px !important;
}

.pdv-delivery-receiving .pdv-order-live-detail,
.pdv-order-live-detail {
  grid-column: 2 !important;
  grid-row: 3 !important;
}

.pdv-delivery-receiving .pdv-customer-panel,
.pdv-customer-panel {
  grid-column: 3 !important;
  grid-row: 3 !important;
}

@media (max-width: 1180px) {
  .page-pdv {
    overflow: auto !important;
  }

  .page-pdv .admin-layout > main,
  .page-pdv main {
    overflow: visible !important;
  }

  .pdv-screen,
  .pdv-delivery-receiving {
    height: auto !important;
    min-height: 100vh !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto auto auto !important;
  }

  .pdv-delivery-receiving .pdv-top,
  .pdv-delivery-receiving .pdv-status-top,
  .pdv-delivery-receiving .pdv-work,
  .pdv-delivery-receiving .pdv-order-live-detail,
  .pdv-delivery-receiving .pdv-customer-panel,
  .pdv-screen .pdv-top,
  .pdv-screen .pdv-work,
  .pdv-screen .pdv-received {
    grid-column: 1 !important;
  }

  .pdv-delivery-receiving .pdv-top,
  .pdv-screen .pdv-top {
    grid-row: 1 !important;
  }

  .pdv-delivery-receiving .pdv-status-top {
    grid-row: 2 !important;
    margin: 12px 12px 0 !important;
  }

  .pdv-delivery-receiving .pdv-work,
  .pdv-screen .pdv-work {
    grid-row: 3 !important;
  }

  .pdv-delivery-receiving .pdv-order-live-detail {
    grid-row: 4 !important;
  }

  .pdv-delivery-receiving .pdv-customer-panel,
  .pdv-screen .pdv-received {
    grid-row: 5 !important;
  }
}
/* PDV opens inside the regular admin home layout */
.page-pdv {
  overflow: auto !important;
  background: #f7f8fb !important;
}

.page-pdv .admin-layout {
  display: grid !important;
  grid-template-columns: 278px minmax(0, 1fr) !important;
  min-height: 100vh !important;
  background: #f7f8fb !important;
}

.page-pdv .admin-layout > aside {
  display: grid !important;
}

.page-pdv .topbar {
  display: flex !important;
}

.page-pdv .admin-layout > main,
.page-pdv main {
  width: min(100% - 28px, 1640px) !important;
  min-height: auto !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: 14px 0 28px !important;
  overflow: visible !important;
  background: transparent !important;
}

.page-pdv .pdv-screen > .pdv-side {
  display: none !important;
}

.page-pdv .pdv-screen {
  width: 100% !important;
  min-height: calc(100vh - 106px) !important;
  height: calc(100vh - 106px) !important;
}

.page-pdv .pdv-screen.pdv-delivery-receiving {
  grid-template-columns: minmax(310px, 370px) minmax(460px, 1fr) minmax(280px, 320px) !important;
  grid-template-rows: 76px 58px minmax(0, 1fr) !important;
}

.page-pdv .pdv-delivery-receiving .pdv-top,
.page-pdv .pdv-delivery-receiving .pdv-status-top {
  grid-column: 1 / 4 !important;
}

.page-pdv .pdv-delivery-receiving .pdv-work {
  grid-column: 1 !important;
  grid-row: 3 !important;
}

.page-pdv .pdv-delivery-receiving .pdv-order-live-detail {
  grid-column: 2 !important;
  grid-row: 3 !important;
}

.page-pdv .pdv-delivery-receiving .pdv-customer-panel {
  grid-column: 3 !important;
  grid-row: 3 !important;
}

.page-pdv .pdv-delivery-receiving .pdv-mini-board,
.page-pdv .pdv-order-live-detail,
.page-pdv .pdv-customer-panel {
  height: calc(100vh - 250px) !important;
}

@media (max-width: 1180px) {
  .page-pdv .admin-layout {
    grid-template-columns: 1fr !important;
  }

  .page-pdv .admin-layout > aside,
  .page-pdv .topbar {
    display: none !important;
  }

  .page-pdv .admin-layout > main,
  .page-pdv main {
    width: 100% !important;
    padding: 0 !important;
  }

  .page-pdv .pdv-screen.pdv-delivery-receiving {
    height: auto !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto auto auto !important;
  }

  .page-pdv .pdv-delivery-receiving .pdv-top,
  .page-pdv .pdv-delivery-receiving .pdv-status-top,
  .page-pdv .pdv-delivery-receiving .pdv-work,
  .page-pdv .pdv-delivery-receiving .pdv-order-live-detail,
  .page-pdv .pdv-delivery-receiving .pdv-customer-panel {
    grid-column: 1 !important;
  }

  .page-pdv .pdv-delivery-receiving .pdv-work {
    grid-row: 3 !important;
  }

  .page-pdv .pdv-delivery-receiving .pdv-order-live-detail {
    grid-row: 4 !important;
  }

  .page-pdv .pdv-delivery-receiving .pdv-customer-panel {
    grid-row: 5 !important;
  }

  .page-pdv .pdv-delivery-receiving .pdv-mini-board,
  .page-pdv .pdv-order-live-detail,
  .page-pdv .pdv-customer-panel {
    height: auto !important;
  }
}
/* PDV status buttons spacing and no overlap */
.page-pdv .pdv-delivery-receiving .pdv-status-top {
  height: auto !important;
  min-height: 58px !important;
  margin: 16px 20px 0 !important;
  padding: 8px !important;
  border-radius: 8px !important;
  overflow: visible !important;
}

.page-pdv .pdv-delivery-receiving .pdv-status-top .pdv-status-tabs,
.pdv-delivery-receiving .pdv-status-top .pdv-status-tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
  gap: 8px !important;
  width: 100% !important;
  grid-template-columns: none !important;
  overflow: visible !important;
}

.page-pdv .pdv-delivery-receiving .pdv-status-tabs a,
.pdv-delivery-receiving .pdv-status-top .pdv-status-tabs a {
  flex: 1 1 132px !important;
  min-width: 118px !important;
  max-width: none !important;
  min-height: 44px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  padding: 0 10px !important;
  background: #fff !important;
  white-space: normal !important;
  text-align: center !important;
  line-height: 1.15 !important;
}

.page-pdv .pdv-delivery-receiving .pdv-status-tabs a.active,
.pdv-delivery-receiving .pdv-status-top .pdv-status-tabs a.active {
  border-color: #ff7a1a !important;
  background: #fff7ed !important;
}

.page-pdv .pdv-screen.pdv-delivery-receiving {
  grid-template-rows: 76px auto minmax(0, 1fr) !important;
}

.page-pdv .pdv-delivery-receiving .pdv-work,
.page-pdv .pdv-delivery-receiving .pdv-order-live-detail,
.page-pdv .pdv-delivery-receiving .pdv-customer-panel {
  margin-top: 12px !important;
}

.page-pdv .pdv-delivery-receiving .pdv-mini-board,
.page-pdv .pdv-order-live-detail,
.page-pdv .pdv-customer-panel {
  height: calc(100vh - 272px) !important;
}

@media (max-width: 1500px) {
  .page-pdv .pdv-delivery-receiving .pdv-status-tabs a,
  .pdv-delivery-receiving .pdv-status-top .pdv-status-tabs a {
    flex-basis: 126px !important;
    min-width: 112px !important;
  }
}

@media (max-width: 720px) {
  .page-pdv .pdv-delivery-receiving .pdv-status-tabs a,
  .pdv-delivery-receiving .pdv-status-top .pdv-status-tabs a {
    flex-basis: calc(50% - 8px) !important;
    min-width: 0 !important;
  }
}

/* PDV period filter */
.page-pdv .pdv-screen.pdv-delivery-receiving {
  grid-template-rows: auto auto minmax(0, 1fr) !important;
}

.page-pdv .pdv-delivery-receiving .pdv-top {
  display: grid !important;
  grid-template-columns: minmax(220px, auto) minmax(380px, 1fr) auto auto !important;
  align-items: center !important;
  gap: 14px !important;
  min-height: 76px !important;
  height: auto !important;
}

.page-pdv .pdv-delivery-receiving .pdv-top strong {
  white-space: nowrap !important;
}

.page-pdv .pdv-delivery-receiving .pdv-status-top {
  display: block !important;
  gap: 10px !important;
}

.page-pdv .pdv-delivery-receiving .pdv-work {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.page-pdv .pdv-delivery-receiving .pdv-mini-board {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
}

.pdv-delivery-receiving .pdv-deliverybar {
  flex-wrap: wrap !important;
  align-items: center !important;
}

.pdv-period-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.pdv-period-form label {
  display: grid;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.pdv-period-form input {
  width: 138px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  height: 38px;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  padding: 0 10px;
  font: inherit;
}

.pdv-period-form button,
.pdv-period-form .pdv-today,
.pdv-top-today {
  width: auto !important;
  min-width: 84px !important;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  white-space: nowrap;
}

.pdv-period-form .pdv-today,
.pdv-top-today {
  border: 1px solid #dbe4f0;
  background: #fff;
  color: #315fe0;
  padding: 0 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px !important;
}

.pdv-top-today {
  justify-self: end;
}

.page-pdv .pdv-delivery-receiving .pdv-top > .pdv-top-today {
  width: auto !important;
  min-width: 84px !important;
  height: 38px !important;
  border: 1px solid #dbe4f0 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #315fe0 !important;
  font-size: 14px !important;
  text-decoration: none !important;
}

.pdv-top-today::before {
  content: none !important;
}

.pdv-store-toggle-form {
  margin: 0;
  justify-self: end;
}

.pdv-store-toggle {
  min-width: 112px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  font-weight: 900;
  cursor: pointer;
}

.pdv-store-toggle .icon {
  width: 16px;
  height: 16px;
}

.pdv-store-toggle.online {
  background: #eaf9ef;
  color: #07964b;
}

.pdv-store-toggle.offline {
  background: #fee2e2;
  color: #dc2626;
}

@media (max-width: 720px) {
  .page-pdv .pdv-delivery-receiving .pdv-top {
    grid-template-columns: 1fr !important;
    justify-items: stretch !important;
  }

  .page-pdv .pdv-delivery-receiving .pdv-status-top {
    grid-template-columns: 1fr !important;
  }

  .pdv-period-form,
  .pdv-period-form label,
  .pdv-period-form input,
  .pdv-period-form button,
  .pdv-period-form .pdv-today,
  .pdv-top-today,
  .pdv-store-toggle-form,
  .pdv-store-toggle {
    width: 100%;
  }
}

/* PDV item rows: real sequence, catalog photo and adaptive columns */
.page-pdv .pdv-order-live-detail .pdv-detail-item {
  display: grid !important;
  grid-template-columns: 24px 44px minmax(0, 1fr) auto !important;
  grid-template-rows: auto !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 58px !important;
  margin: 0 0 7px !important;
  padding: 7px !important;
  border: 1px solid #dbe4ef !important;
  border-radius: 7px !important;
  background: #fff !important;
}

.page-pdv .pdv-order-live-detail .pdv-detail-item::before,
.page-pdv .pdv-order-live-detail .pdv-detail-item::after {
  content: none !important;
  display: none !important;
}

.page-pdv .pdv-item-sequence {
  width: 24px !important;
  height: 24px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #334155 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

.page-pdv .pdv-item-photo {
  width: 44px !important;
  height: 44px !important;
  display: block !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 7px !important;
  background: #f8fafc !important;
  object-fit: cover !important;
}

.page-pdv .pdv-item-description {
  min-width: 0 !important;
  display: grid !important;
  gap: 3px !important;
}

.page-pdv .pdv-item-description strong {
  overflow-wrap: anywhere !important;
  font-size: 12px !important;
}

.page-pdv .pdv-item-description small {
  grid-column: auto !important;
  color: #64748b !important;
  font-size: 10px !important;
  font-weight: 600 !important;
}

.page-pdv .pdv-item-total {
  justify-self: end !important;
  white-space: nowrap !important;
  color: #0f172a !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.page-pdv .pdv-detail-item .pdv-item-delete {
  grid-column: 3 / -1 !important;
}

@media (min-width: 1280px) {
  .page-pdv .pdv-order-live-detail .pdv-detail-items {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-content: start !important;
    gap: 8px !important;
  }

  .page-pdv .pdv-order-live-detail .pdv-detail-items > h3,
  .page-pdv .pdv-order-live-detail .pdv-detail-items > .pdv-table-item-form,
  .page-pdv .pdv-order-live-detail .pdv-detail-items > .pdv-empty-items {
    grid-column: 1 / -1 !important;
  }

  .page-pdv .pdv-order-live-detail .pdv-detail-item {
    margin-bottom: 0 !important;
  }
}

@media (max-width: 520px) {
  .page-pdv .pdv-order-live-detail .pdv-detail-item {
    grid-template-columns: 24px 40px minmax(0, 1fr) !important;
  }

  .page-pdv .pdv-item-photo {
    width: 40px !important;
    height: 40px !important;
  }

  .page-pdv .pdv-item-total {
    grid-column: 3 !important;
    justify-self: start !important;
  }
}

/* Financeiro */
.finance-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
  scrollbar-width: thin;
}

.finance-tabs button {
  min-height: 42px;
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 18px;
  background: transparent;
  color: #475569;
  box-shadow: none;
  white-space: nowrap;
}

.finance-tabs button:hover {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
  box-shadow: none;
}

.finance-tabs button.active {
  border-color: #ff6a00;
  background: linear-gradient(135deg, #ff5a00, #ff7a00);
  color: #fff;
  box-shadow: 0 10px 20px rgba(255, 90, 0, .22);
}

.finance-tab-panel[hidden] {
  display: none !important;
}

.finance-tab-panel {
  min-width: 0;
}

.finance-overview-panel {
  display: grid;
  gap: 18px;
}

.finance-overview-title h2,
.finance-overview-title p,
.finance-overview-payments h2,
.finance-overview-payments p {
  margin: 0;
}

.finance-overview-title p,
.finance-overview-payments header p {
  margin-top: 5px;
  color: #64748b;
}

.finance-month-filter {
  display: grid;
  grid-template-columns: minmax(220px, 300px) auto minmax(240px, 1fr);
  align-items: end;
  gap: 14px;
  margin: 0;
  padding: 20px;
}

.finance-month-filter label {
  display: grid;
  gap: 7px;
}

.finance-month-filter label span {
  color: #334155;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.finance-month-filter input {
  min-height: 44px;
}

.finance-month-filter > strong {
  align-self: center;
  justify-self: end;
  color: #475569;
  font-size: 13px;
  text-align: right;
}

.finance-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.finance-overview-card {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 24px;
}

.finance-overview-card > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.finance-overview-card > header span {
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
}

.finance-overview-card > header small {
  color: #64748b;
}

.finance-overview-value {
  color: #0f172a;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1;
}

.finance-overview-sales .finance-overview-value {
  color: #16a34a;
}

.finance-overview-lines {
  display: grid;
  gap: 10px;
}

.finance-overview-lines p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef2f7;
}

.finance-overview-lines p:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.finance-overview-lines span {
  color: #475569;
}

.finance-overview-lines b {
  color: #0f172a;
  white-space: nowrap;
}

.finance-overview-lines .finance-overview-commission {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid #cbd5e1;
}

.finance-overview-payments {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 24px;
}

.finance-overview-payments > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.finance-overview-payments article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.finance-overview-payments article span {
  display: grid;
  gap: 4px;
}

.finance-overview-payments article small {
  color: #64748b;
}

.finance-overview-payments article strong {
  color: #0f172a;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .finance-month-filter,
  .finance-overview-grid,
  .finance-overview-payments > div {
    grid-template-columns: 1fr;
  }

  .finance-month-filter > strong {
    justify-self: start;
    text-align: left;
  }

  .finance-overview-card,
  .finance-overview-payments {
    padding: 18px;
  }
}

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

.credit-wallet article {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .06);
}

.credit-wallet span,
.credit-statement h2 {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

@media (min-width: 1081px) {
  .admin-layout.sidebar-collapsed {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .page-pdv .admin-layout.sidebar-collapsed {
    grid-template-columns: 76px minmax(0, 1fr) !important;
  }

  .admin-layout.sidebar-collapsed > aside {
    gap: 14px;
    padding-inline: 10px;
  }

  .admin-layout.sidebar-collapsed .brand {
    justify-content: center;
    gap: 0;
    padding-inline: 0;
  }

  .admin-layout.sidebar-collapsed .brand-copy,
  .admin-layout.sidebar-collapsed > aside nav > a > span,
  .admin-layout.sidebar-collapsed .sidebar-submenu-toggle > span,
  .admin-layout.sidebar-collapsed .sidebar-company > span {
    display: none;
  }

  .admin-layout.sidebar-collapsed > aside nav {
    padding-right: 0;
    overflow-x: hidden;
  }

  .admin-layout.sidebar-collapsed > aside nav > a {
    width: 52px;
    min-width: 52px;
    padding: 0;
    justify-content: center;
    gap: 0;
  }

  .admin-layout.sidebar-collapsed .sidebar-submenu-toggle {
    width: 52px;
    min-width: 52px;
    padding: 0;
    justify-content: center;
    gap: 0;
  }

  .admin-layout.sidebar-collapsed .sidebar-submenu-toggle .icon:last-child,
  .admin-layout.sidebar-collapsed .sidebar-submenu {
    display: none;
  }

  .admin-layout.sidebar-collapsed > aside nav > a .icon {
    width: 22px;
    height: 22px;
  }

  .admin-layout.sidebar-collapsed .sidebar-company {
    justify-content: center;
    margin-inline: 0;
    padding-inline: 0;
  }

  .admin-layout.sidebar-collapsed .sidebar-company img {
    width: 44px;
    height: 44px;
  }
}

.credit-wallet strong {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 26px;
}

.credit-wallet small,
.credit-statement small {
  display: block;
  margin-top: 5px;
  color: #64748b;
}

.credit-recharge-form,
.manual-withdraw-form,
.asaas-config-form,
.asaas-pix-card,
.credit-statement {
  margin-bottom: 16px;
}

.manual-withdraw-balance {
  align-self: end;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  background: #fff7ed;
  padding: 10px 14px;
}

.manual-withdraw-balance span {
  display: block;
  color: #9a3412;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.manual-withdraw-balance strong {
  display: block;
  margin-top: 3px;
  color: #7c2d12;
  font-size: 20px;
}

.manual-withdraw-history {
  overflow-x: auto;
}

.manual-withdraw-history header h2,
.manual-withdraw-history header p {
  margin: 0;
}

.manual-withdraw-history header p {
  margin-top: 5px;
  color: #64748b;
}

.manual-withdraw-history table {
  width: 100%;
  margin-top: 14px;
  border-collapse: collapse;
}

.manual-withdraw-history th,
.manual-withdraw-history td {
  border-bottom: 1px solid #e5e7eb;
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.manual-withdraw-history td:nth-child(2) strong {
  color: #b91c1c;
}

.asaas-pix-card header,
.asaas-pix-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.asaas-pix-card header h2 {
  margin: 0 0 4px;
}

.asaas-pix-card header span {
  color: #64748b;
  font-weight: 800;
}

.asaas-pix-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin: 16px 0;
}

.asaas-pix-body img {
  width: 220px;
  height: 220px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.asaas-pix-body textarea {
  width: 100%;
  min-height: 160px;
  resize: vertical;
}

.asaas-pix-card footer form {
  margin: 0;
}

.credit-statement {
  overflow-x: auto;
}

.credit-statement table {
  width: 100%;
  border-collapse: collapse;
}

.credit-statement th,
.credit-statement td {
  border-bottom: 1px solid #e5e7eb;
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.credit-type {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 900;
}

.credit-type.credito,
.credit-type.estorno {
  background: #dcfce7;
  color: #15803d;
}

.credit-type.debito {
  background: #fee2e2;
  color: #b91c1c;
}

.credit-type.ajuste {
  background: #e0f2fe;
  color: #0369a1;
}

.finance-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 16px;
}

.finance-summary article {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .06);
}

.finance-summary span,
.finance-payments h2,
.finance-sales h2 {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.finance-summary strong {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 28px;
}

.finance-summary small {
  color: #64748b;
}

.finance-payments,
.finance-sales {
  margin-top: 16px;
}

.finance-daily-commission {
  margin: 16px 0;
}

.finance-daily-commission header h2 {
  margin: 0 0 5px;
}

.finance-daily-commission header p {
  margin: 0 0 14px;
  color: #64748b;
}

.finance-daily-commission table {
  width: 100%;
  border-collapse: collapse;
}

.finance-daily-commission th,
.finance-daily-commission td {
  border-bottom: 1px solid #e5e7eb;
  padding: 12px;
  text-align: left;
  vertical-align: middle;
}

.finance-daily-commission td small {
  display: block;
  margin-top: 4px;
  color: #64748b;
}

.finance-daily-commission tfoot th {
  background: #fff7ed;
  color: #9a3412;
  font-weight: 800;
}

.daily-commission-form {
  display: grid;
  grid-template-columns: minmax(125px, 170px) minmax(100px, auto) auto;
  align-items: end;
  gap: 10px;
  margin: 0;
}

.admin-ratings {
  margin-top: 18px;
}

.admin-ratings > header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-ratings > header > div {
  flex: 1 1 280px;
}

.admin-ratings > header h2,
.admin-ratings > header p {
  margin: 0;
}

.admin-ratings > header p {
  color: #64748b;
  margin-top: 4px;
}

.admin-ratings > header > strong {
  color: #b45309;
  font-size: 1.35rem;
}

.admin-ratings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 18px;
  margin-top: 18px;
}

.admin-ratings-grid h3 {
  margin: 0 0 10px;
}

.admin-ratings-grid article {
  padding: 12px 0;
  border-top: 1px solid #e5e7eb;
}

.admin-ratings-grid article > b,
.admin-ratings-grid article > span {
  display: block;
}

.admin-ratings-grid article > b {
  color: #b45309;
}

.admin-ratings-grid article > span {
  margin-top: 3px;
  color: #64748b;
  font-size: .82rem;
}

.admin-ratings-grid article p {
  margin: 7px 0 0;
}

.admin-rating-delivery {
  display: block;
  margin-top: 8px;
  color: #15803d;
  font-weight: 700;
}

.admin-rating-items {
  display: grid;
  gap: 5px;
  margin: 9px 0 0;
  padding: 9px 0 0;
  border-top: 1px dashed #cbd5e1;
  list-style: none;
}

.admin-rating-items li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #475569;
  font-size: .84rem;
}

.admin-rating-items li span {
  color: #b45309;
  text-align: right;
}

@media (max-width: 760px) {
  .admin-ratings-grid {
    grid-template-columns: 1fr;
  }
}

.admin-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
}

.admin-loading-overlay[hidden] {
  display: none;
}

.admin-loading-card {
  width: min(440px, 100%);
  padding: 32px 28px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.32);
  color: #0f172a;
  text-align: center;
}

.admin-loading-card strong,
.admin-loading-card p {
  display: block;
}

.admin-loading-card strong {
  margin-top: 18px;
  font-size: 19px;
}

.admin-loading-card p {
  margin: 8px 0 0;
  color: #64748b;
  line-height: 1.5;
}

.admin-loading-spinner {
  display: inline-block;
  width: 48px;
  height: 48px;
  border: 5px solid #fed7aa;
  border-top-color: #f97316;
  border-radius: 50%;
  animation: admin-loading-spin 0.8s linear infinite;
}

body.admin-import-loading {
  overflow: hidden;
}

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

.additional-admin-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.additional-admin-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 16px;
  border-radius: 11px;
  color: #475569;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.additional-admin-tabs a:hover {
  background: #fff7ed;
  color: #c2410c;
}

.additional-admin-tabs a.active {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  box-shadow: 0 8px 18px rgba(234, 88, 12, 0.22);
}

.additional-admin-tabs a span {
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 12px;
  text-align: center;
}

.additional-admin-tabs a.active span {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.additional-admin-panel > .card {
  margin-top: 0;
}

.additional-list-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.additional-list-search {
  display: flex;
  align-items: end;
  gap: 10px;
  margin: 18px 0;
}

.additional-list-search label {
  flex: 1 1 360px;
}

.additional-list-search input {
  width: 100%;
}

.neighborhood-filter {
  grid-template-columns: minmax(260px, 2fr) minmax(150px, .7fr) minmax(130px, .55fr) auto auto;
}

.neighborhood-bulk-form {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(260px, 1.2fr) minmax(280px, 1.3fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 16px;
  padding: 18px;
}

.neighborhood-bulk-form > div {
  align-self: center;
}

.neighborhood-bulk-form > div strong,
.neighborhood-bulk-form > div small {
  display: block;
}

.neighborhood-bulk-form > div small {
  margin-top: 4px;
  color: var(--muted);
}

.neighborhood-bulk-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 8px;
  align-items: center;
}

.neighborhood-bulk-option > input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.neighborhood-bulk-option > input:not([type="checkbox"]) {
  grid-column: 1 / -1;
  width: 100%;
}

.neighborhood-select {
  width: 48px;
  min-width: 48px;
  text-align: center;
}

.neighborhood-select input {
  width: 18px;
  height: 18px;
  accent-color: #ff5a00;
}

@media (max-width: 1050px) {
  .neighborhood-filter,
  .neighborhood-bulk-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .additional-admin-tabs a {
    flex: 1 0 auto;
  }

  .additional-list-card > header,
  .additional-list-search {
    align-items: stretch;
    flex-direction: column;
  }

  .additional-list-search label {
    flex-basis: auto;
  }

  .neighborhood-filter,
  .neighborhood-bulk-form {
    grid-template-columns: 1fr;
  }
}

.ratings-filter {
  align-items: end;
}

.ratings-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.ratings-kpis article {
  display: grid;
  gap: 5px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 15px;
  background: #fff;
}

.ratings-kpis span,
.ratings-kpis small {
  color: #64748b;
}

.ratings-kpis strong {
  color: #b45309;
  font-size: 1.65rem;
}

.ratings-distribution {
  display: grid;
  gap: 10px;
}

.ratings-distribution header h2,
.ratings-distribution header p {
  margin: 0;
}

.ratings-distribution header p {
  margin-top: 3px;
  color: #64748b;
}

.ratings-distribution > div {
  display: grid;
  grid-template-columns: 45px minmax(120px, 1fr) 44px;
  align-items: center;
  gap: 10px;
}

.ratings-distribution > div > i {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.ratings-distribution > div > i span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b, #ff7900);
}

.ratings-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.rating-review-card {
  display: grid;
  gap: 13px;
}

.rating-review-card > header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.rating-review-card > header strong,
.rating-review-card > header span {
  display: block;
}

.rating-review-card > header span {
  margin-top: 4px;
  color: #64748b;
  font-size: .84rem;
}

.rating-review-card > section {
  display: grid;
  grid-template-columns: minmax(150px, .35fr) 55px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.rating-review-card h3,
.rating-review-card p {
  margin: 0;
}

.rating-review-card > section > strong {
  color: #b45309;
}

.rating-review-card > section > p {
  color: #334155;
}

.rating-review-items {
  grid-template-columns: 1fr !important;
  padding-top: 12px;
  border-top: 1px dashed #cbd5e1;
}

.rating-review-items > div {
  display: grid;
  gap: 7px;
}

.rating-review-items p {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto;
  gap: 6px 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
}

.rating-review-items p > span {
  color: #b45309;
  font-weight: 700;
}

.rating-review-items p small {
  grid-column: 1 / -1;
  color: #64748b;
}

.admin-stars {
  display: inline-flex !important;
  letter-spacing: 1px;
  white-space: nowrap;
}

.admin-stars b {
  color: #f59e0b;
}

.admin-stars i {
  color: #d7dce2;
  font-style: normal;
}

@media (max-width: 760px) {
  .ratings-kpis {
    grid-template-columns: 1fr;
  }

  .rating-review-card > section {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

.ratings-toolbar {
  margin-bottom: 16px;
  border: 1px solid #e7eaf0;
  box-shadow: 0 8px 25px rgba(15, 23, 42, .04);
}

.ratings-overview {
  display: grid;
  grid-template-columns: minmax(190px, .65fr) minmax(320px, 1.35fr) minmax(190px, .7fr);
  gap: 24px;
  align-items: stretch;
  padding: 22px;
  border: 1px solid #e7eaf0;
  box-shadow: 0 12px 35px rgba(15, 23, 42, .06);
}

.ratings-main-score {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 22px;
  border-right: 1px solid #eef0f4;
}

.ratings-main-score > span,
.ratings-main-score > small {
  color: #64748b;
}

.ratings-main-score > strong {
  margin: 5px 0;
  color: #111827;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.ratings-main-score .admin-stars {
  margin-bottom: 8px;
  font-size: 1.12rem;
}

.ratings-distribution-modern {
  display: grid;
  align-content: center;
  gap: 9px;
}

.ratings-distribution-modern > div {
  display: grid;
  grid-template-columns: 18px 16px minmax(120px, 1fr) 90px;
  align-items: center;
  gap: 7px;
}

.ratings-distribution-modern > div > span {
  color: #f59e0b;
}

.ratings-distribution-modern i {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef0f3;
}

.ratings-distribution-modern i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff6b00, #ff8a33);
}

.ratings-distribution-modern em {
  color: #475569;
  font-size: .78rem;
  font-style: normal;
  text-align: right;
}

.ratings-sentiment {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 160px;
  padding: 18px;
  border-radius: 17px;
  text-align: center;
}

.ratings-sentiment > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .75);
}

.ratings-sentiment svg {
  width: 27px;
  height: 27px;
}

.ratings-sentiment strong {
  font-size: 1.05rem;
}

.ratings-sentiment p {
  margin: 7px 0 0;
  color: #64748b;
  font-size: .8rem;
}

.ratings-sentiment.excellent,
.ratings-sentiment.good {
  background: linear-gradient(145deg, #fff7ed, #fffbeb);
  color: #ea580c;
}

.ratings-sentiment.regular,
.ratings-sentiment.attention {
  background: linear-gradient(145deg, #fff7ed, #fef2f2);
  color: #dc2626;
}

.ratings-sentiment.new {
  background: linear-gradient(145deg, #eff6ff, #f8fafc);
  color: #2563eb;
}

.ratings-kpis-modern {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 16px 0;
}

.ratings-kpis-modern article {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  min-height: 125px;
  border-color: #e7eaf0;
  box-shadow: 0 8px 25px rgba(15, 23, 42, .04);
}

.ratings-kpis-modern article > div {
  display: grid;
  gap: 2px;
}

.ratings-kpis-modern article small {
  color: #475569;
  font-weight: 700;
}

.ratings-kpis-modern article strong {
  color: #111827;
  font-size: 1.9rem;
}

.ratings-kpis-modern article em {
  color: #94a3b8;
  font-size: .72rem;
  font-style: normal;
}

.rating-kpi-icon {
  display: grid !important;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 13px;
}

.rating-kpi-icon svg {
  width: 21px;
  height: 21px;
}

.rating-kpi-icon.green { background: #dcfce7; color: #16a34a; }
.rating-kpi-icon.blue { background: #dbeafe; color: #2563eb; }
.rating-kpi-icon.purple { background: #f3e8ff; color: #9333ea; }
.rating-kpi-icon.orange { background: #ffedd5; color: #f97316; }

.ratings-analytics {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr);
  gap: 16px;
}

.ratings-analytics > article {
  border: 1px solid #e7eaf0;
  box-shadow: 0 8px 25px rgba(15, 23, 42, .04);
}

.ratings-analytics header h2,
.ratings-analytics header p {
  margin: 0;
}

.ratings-analytics header p {
  margin-top: 3px;
  color: #64748b;
}

.ratings-evolution-chart {
  display: flex;
  align-items: end;
  gap: 8px;
  min-height: 220px;
  margin-top: 18px;
  padding-top: 10px;
  overflow-x: auto;
}

.ratings-evolution-chart > div {
  display: grid;
  grid-template-rows: 160px auto auto;
  gap: 3px;
  min-width: 36px;
  text-align: center;
}

.ratings-evolution-chart > div > span {
  display: flex;
  align-items: end;
  justify-content: center;
  height: 160px;
  padding: 0 7px;
  border-bottom: 1px solid #e2e8f0;
}

.ratings-evolution-chart > div > span i {
  width: 100%;
  min-height: 8px;
  border-radius: 7px 7px 2px 2px;
  background: linear-gradient(180deg, #ff7900, #ffb37a);
  box-shadow: 0 5px 12px rgba(255, 121, 0, .2);
}

.ratings-evolution-chart strong {
  color: #b45309;
  font-size: .72rem;
}

.ratings-evolution-chart small {
  color: #94a3b8;
  font-size: .68rem;
}

.rating-categories > div {
  display: grid;
  gap: 13px;
  margin-top: 18px;
}

.rating-categories > div > div {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border: 1px solid #eef0f4;
  border-radius: 13px;
}

.rating-category-ring {
  --ring-color: #22c55e;
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  color: var(--ring-color);
  background: radial-gradient(circle at center, #fff 58%, transparent 60%), conic-gradient(var(--ring-color) var(--rating-progress), #e7eaf0 0);
}

.rating-category-ring.blue { --ring-color: #3b82f6; }
.rating-category-ring.purple { --ring-color: #9333ea; }

.rating-category-ring svg {
  width: 19px;
  height: 19px;
}

.rating-categories p,
.rating-categories p strong,
.rating-categories p small {
  display: block;
  margin: 0;
}

.rating-categories p small {
  margin-top: 3px;
  color: #94a3b8;
}

.rating-categories > div > div > b {
  color: #111827;
  font-size: 1.15rem;
}

.ratings-feed {
  margin-top: 16px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e7eaf0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
}

.ratings-feed > header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid #eef0f4;
}

.ratings-feed > header h2,
.ratings-feed > header p {
  margin: 0;
}

.ratings-feed > header p,
.ratings-feed > header > span {
  margin-top: 3px;
  color: #64748b;
  font-size: .8rem;
}

.rating-feed-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 13px;
  padding: 18px 20px;
  border-bottom: 1px solid #eef0f4;
}

.rating-feed-item:last-child {
  border-bottom: 0;
}

.rating-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff7900, #fb923c);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 5px 12px rgba(255, 121, 0, .22);
}

.rating-feed-content {
  min-width: 0;
}

.rating-feed-content > header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.rating-feed-content > header strong,
.rating-feed-content > header small {
  display: block;
}

.rating-feed-content > header small {
  margin-top: 3px;
  color: #94a3b8;
}

.rating-feed-content > p {
  margin: 9px 0;
  color: #334155;
}

.rating-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rating-tags span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #15803d;
  font-size: .7rem;
  font-weight: 700;
}

.rating-feed-content blockquote {
  margin: 10px 0 0;
  padding: 9px 11px;
  border-left: 3px solid #60a5fa;
  border-radius: 0 8px 8px 0;
  background: #eff6ff;
  color: #475569;
  font-size: .82rem;
}

.rating-feed-content details {
  margin-top: 10px;
}

.rating-feed-content summary {
  color: #ea580c;
  font-size: .8rem;
  font-weight: 800;
  cursor: pointer;
}

.rating-feed-items {
  display: grid;
  gap: 7px;
  margin-top: 9px;
}

.rating-feed-items > p {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto;
  gap: 5px 10px;
  margin: 0;
  padding: 9px 11px;
  border-radius: 10px;
  background: #f8fafc;
}

.rating-feed-items > p > span {
  color: #b45309;
  font-size: .78rem;
  font-weight: 700;
}

.rating-feed-items > p small {
  grid-column: 1 / -1;
  color: #64748b;
}

@media (max-width: 1050px) {
  .ratings-overview {
    grid-template-columns: 190px minmax(280px, 1fr);
  }

  .ratings-sentiment {
    grid-column: 1 / -1;
    min-height: 120px;
  }

  .ratings-kpis-modern {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ratings-overview,
  .ratings-analytics {
    grid-template-columns: 1fr;
  }

  .ratings-main-score {
    padding: 0 0 18px;
    border-right: 0;
    border-bottom: 1px solid #eef0f4;
    text-align: center;
    align-items: center;
  }

  .ratings-kpis-modern {
    grid-template-columns: 1fr;
  }

  .ratings-distribution-modern > div {
    grid-template-columns: 18px 16px minmax(80px, 1fr) 75px;
  }

  .rating-feed-item {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 15px 13px;
  }

  .rating-avatar {
    width: 35px;
    height: 35px;
  }

  .rating-feed-content > header {
    display: grid;
  }
}

.daily-commission-form label {
  display: grid;
  gap: 4px;
}

.daily-commission-form label span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.daily-commission-form input {
  min-height: 42px;
}

.daily-commission-form output {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  color: #b91c1c;
  font-weight: 900;
}

.daily-commission-form button {
  min-height: 42px;
  white-space: nowrap;
}

.finance-payments > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.finance-payments p {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  background: #f8fafc;
}

.finance-sales table {
  width: 100%;
  border-collapse: collapse;
}

.finance-sales th,
.finance-sales td {
  border-bottom: 1px solid #e5e7eb;
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.finance-sales td small {
  display: block;
  margin-top: 4px;
  color: #64748b;
}

@media (max-width: 900px) {
  .finance-tabs {
    padding: 5px;
  }

  .finance-tabs button {
    min-height: 40px;
    padding-inline: 14px;
  }

  .credit-wallet {
    grid-template-columns: 1fr;
  }

  .finance-summary {
    grid-template-columns: 1fr;
  }

  .credit-statement,
  .finance-sales,
  .finance-daily-commission,
  .manual-withdraw-history {
    overflow-x: auto;
  }

  .daily-commission-form {
    min-width: 500px;
  }

  .asaas-pix-card header,
  .asaas-pix-card footer,
  .asaas-pix-body {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }
}

/* Ajuste final do admin compacto. Mantem o PDV separado. */
body:not(.page-pdv) main {
  width: min(100% - 36px, 1260px);
  padding: 18px 0 36px;
}

body:not(.page-pdv) .topbar {
  min-height: 54px;
  margin-bottom: 10px;
}

body:not(.page-pdv) .page-title {
  margin-bottom: 14px;
}

body:not(.page-pdv) .page-title h1 {
  font-size: 26px;
}

body:not(.page-pdv) .page-title p {
  margin-top: 6px;
  font-size: 14px;
}

body:not(.page-pdv) .card {
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(15, 29, 54, .06);
}

body:not(.page-pdv) .form-grid,
body:not(.page-pdv) .filter-grid {
  gap: 12px 14px;
  margin-bottom: 16px;
  padding: 16px;
}

body:not(.page-pdv) label {
  gap: 6px;
}

body:not(.page-pdv) label span,
body:not(.page-pdv) .image-preview span {
  font-size: 12px;
}

body:not(.page-pdv) input,
body:not(.page-pdv) select,
body:not(.page-pdv) textarea {
  min-height: 40px;
  border-radius: 7px;
  padding: 8px 11px;
  font-size: 13px;
}

body:not(.page-pdv) textarea {
  min-height: 62px;
}

body:not(.page-pdv) button,
body:not(.page-pdv) .link,
body:not(.page-pdv) .ghost-button,
body:not(.page-pdv) .icon-button,
body:not(.page-pdv) .add-button {
  min-height: 38px;
  border-radius: 8px;
  padding-inline: 12px;
  font-size: 13px;
}

body:not(.page-pdv) .company-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

body:not(.page-pdv) .company-form > label,
body:not(.page-pdv) .company-form > .image-preview,
body:not(.page-pdv) .company-form > .company-table-qr,
body:not(.page-pdv) .company-form .company-whatsapp,
body:not(.page-pdv) .company-form .company-types {
  grid-column: auto;
}

body:not(.page-pdv) .admin-form-tab {
  grid-column: 1 / -1;
  border: 1px solid #dbe7f3;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

body:not(.page-pdv) .admin-form-tab summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  background: #f8fbff;
  color: #111827;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  list-style: none;
}

body:not(.page-pdv) .admin-form-tab summary::-webkit-details-marker {
  display: none;
}

body:not(.page-pdv) .admin-form-tab summary::after {
  content: "+";
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #eef5ff;
  color: #2457d6;
}

body:not(.page-pdv) .admin-form-tab[open] summary::after {
  content: "-";
}

body:not(.page-pdv) .admin-tab-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

body:not(.page-pdv) .admin-tab-grid > .full,
body:not(.page-pdv) .admin-tab-grid > .company-whatsapp,
body:not(.page-pdv) .admin-tab-grid > .company-types,
body:not(.page-pdv) .admin-tab-grid > .form-section-title {
  grid-column: 1 / -1;
}

body:not(.page-pdv) .admin-tab-grid > .image-preview,
body:not(.page-pdv) .admin-tab-grid > .company-table-qr {
  grid-column: span 2;
}

body:not(.page-pdv) .company-form .save-company {
  grid-column: 1 / -1;
  justify-self: end;
  min-width: 190px;
  min-height: 42px;
}

body:not(.page-pdv) .company-form .company-small-toggle {
  min-height: 40px;
  align-self: end;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
}

body:not(.page-pdv) .company-whatsapp,
body:not(.page-pdv) .company-types {
  padding: 12px;
  border-radius: 10px;
}

body:not(.page-pdv) .company-whatsapp-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body:not(.page-pdv) .company-whatsapp-status {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body:not(.page-pdv) .company-whatsapp-status article {
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) 68px;
  padding: 8px;
}

@media (max-width: 1100px) {
  body:not(.page-pdv) .admin-tab-grid,
  body:not(.page-pdv) .company-whatsapp-grid,
  body:not(.page-pdv) .company-whatsapp-status {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:not(.page-pdv) .company-whatsapp-status article {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body:not(.page-pdv) main {
    width: min(100% - 20px, 100%);
  }

  body:not(.page-pdv) .admin-tab-grid,
  body:not(.page-pdv) .company-whatsapp-grid,
  body:not(.page-pdv) .company-whatsapp-status {
    grid-template-columns: 1fr;
  }

  body:not(.page-pdv) .admin-tab-grid > .image-preview,
  body:not(.page-pdv) .admin-tab-grid > .company-table-qr,
  body:not(.page-pdv) .company-form .save-company {
    grid-column: 1;
  }

  body:not(.page-pdv) .company-form .save-company {
    justify-self: stretch;
  }
}

/* Cadastro MASTER de entregadores e mapa operacional */
.deliveryman-form h3 {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  padding: 12px 0 6px;
  border-bottom: 1px solid #e5e7eb;
  color: #172033;
}

.delivery-days {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.delivery-days label { display: flex; align-items: center; gap: 5px; font-size: 12px; }
.delivery-review, .delivery-status-control { margin-top: 16px; }
.delivery-review > article { display: grid; grid-template-columns: minmax(220px,1fr) minmax(300px,1.5fr); gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid #e5e7eb; }
.delivery-review article div, .delivery-history p { display: grid; gap: 4px; }
.delivery-review form, .delivery-status-control form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.delivery-review form input { flex: 1; min-width: 150px; }
.delivery-history { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 8px; margin-top: 14px; }
.delivery-history p { margin: 0; padding: 10px; border-radius: 8px; background: #f8fafc; }
.delivery-approval-data { margin-top: 16px; }
.delivery-approval-data > header { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; }
.delivery-approval-data h3 { margin:3px 0; }
.delivery-approval-data p { margin:0; color:#f97316; font-weight:800; font-size:12px; }
.delivery-approval-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:10px; margin-top:14px; }
.delivery-approval-grid article { display:grid; gap:4px; padding:11px; border:1px solid #e5e7eb; border-radius:9px; background:#f8fafc; }
.delivery-approval-grid span { color:#64748b; font-size:11px; text-transform:uppercase; }
.delivery-approval-grid strong { overflow-wrap:anywhere; font-size:13px; }

.deliverymen-admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px;
  border: 1px solid #dbe3ec;
  border-radius: 12px;
  background: #fff;
}

.deliverymen-admin-tabs a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 9px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.deliverymen-admin-tabs a svg {
  width: 18px;
  height: 18px;
}

.deliverymen-admin-tabs a:hover {
  background: #f8fafc;
  color: #0f172a;
}

.deliverymen-admin-tabs a.active {
  background: #0f7a83;
  color: #fff;
  box-shadow: 0 5px 14px rgba(15,122,131,.2);
}

.deliverymen-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(280px, .8fr);
  gap: 16px;
}

.deliverymen-map-card {
  padding: 0;
  overflow: hidden;
}

.deliverymen-map-card > header,
.deliverymen-online-list-card > header {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
}

.deliverymen-map-card > header > div,
.deliverymen-online-list-card > header {
  display: grid;
  gap: 3px;
}

.deliverymen-map-card header small,
.deliverymen-online-list-card header small {
  color: #64748b;
  font-size: 11px;
}

#deliverymenOnlineMap {
  height: 560px;
  min-height: 400px;
  background: #e2e8f0;
}

.deliverymen-online-icon {
  border: 0 !important;
  background: transparent !important;
}

.deliverymen-online-marker {
  display: flex;
  align-items: center;
  width: max-content;
  max-width: 190px;
  filter: drop-shadow(0 4px 8px rgba(15,23,42,.24));
}

.deliverymen-online-marker i {
  position: relative;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #16a34a;
  font-size: 19px;
  font-style: normal;
}

.deliverymen-online-marker i::after {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #22c55e;
  content: "";
}

.deliverymen-online-marker b {
  overflow: hidden;
  max-width: 148px;
  margin-left: -5px;
  padding: 7px 10px 7px 13px;
  border: 1px solid #dbe3ec;
  border-radius: 0 9px 9px 0;
  background: rgba(255,255,255,.97);
  color: #0f172a;
  font-size: 11px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deliverymen-online-list-card {
  max-height: 628px;
  padding: 0;
  overflow: hidden;
}

.deliverymen-online-list-card h3 {
  margin: 0;
  font-size: 15px;
}

#deliverymenOnlineList {
  max-height: 560px;
  overflow-y: auto;
  border-top: 1px solid #e5e7eb;
}

.deliverymen-online-list-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 11px 14px;
  border-bottom: 1px solid #eef2f7;
  cursor: pointer;
}

.deliverymen-online-list-item:hover {
  background: #f8fafc;
}

.deliverymen-online-list-item > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dcfce7;
  font-size: 17px;
}

.deliverymen-online-list-item > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.deliverymen-online-list-item strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deliverymen-online-list-item small,
.deliverymen-online-list-item em {
  overflow: hidden;
  color: #64748b;
  font-size: 10px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deliverymen-online-list-item.no-location {
  cursor: default;
  opacity: .68;
}

.deliverymen-online-list-item.no-location > span {
  background: #f1f5f9;
  filter: grayscale(1);
}

.delivery-live-layout { display: grid; grid-template-columns: minmax(0,2fr) minmax(280px,1fr); gap: 16px; margin-bottom: 16px; }
.delivery-live-map-card { padding: 0; overflow: hidden; }
.delivery-live-map-card > header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; }
.delivery-live-map-card header div { display: grid; gap: 2px; }
.delivery-live-map-card .delivery-map-actions { display: flex; grid-auto-flow: column; align-items: center; gap: 8px; }
.delivery-map-actions button { min-height: 30px; padding: 6px 10px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: #334155; font-size: 11px; font-weight: 700; }
.delivery-map-actions button:hover { background: #f8fafc; border-color: #94a3b8; }
.delivery-live-dot { padding: 5px 9px; border-radius: 999px; background: #dcfce7; color: #166534; font-weight: 800; font-size: 11px; }
#deliveryLiveMap { height: 470px; min-height: 360px; background: #e2e8f0; }
.delivery-map-icon { background: transparent; border: 0; }
.delivery-map-icon span { display: grid; place-items: center; width: 34px; height: 34px; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 4px 14px rgba(15,23,42,.3); font-size: 17px; }
.delivery-destination-icon span { background: #fff7ed; border-color: #f97316; color: #9a3412; }
.delivery-driver-icon { background: transparent !important; border: 0 !important; }
.delivery-driver-marker { display: flex; align-items: center; width: max-content; max-width: 190px; filter: drop-shadow(0 4px 8px rgba(15,23,42,.22)); }
.delivery-driver-marker i { position: relative; z-index: 2; display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; overflow: hidden; border: 4px solid #16a34a; border-radius: 50%; background: #fff; font-size: 20px; font-style: normal; }
.delivery-driver-marker i img { width: 100%; height: 100%; object-fit: cover; }
.delivery-driver-marker b { overflow: hidden; max-width: 145px; margin-left: -5px; padding: 7px 10px 7px 13px; border: 1px solid #dbe3ec; border-radius: 0 9px 9px 0; background: rgba(255,255,255,.96); color: #0f172a; font-size: 11px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.delivery-driver-marker.is-live i::after { position: absolute; right: 0; bottom: 0; width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; background: #22c55e; content: ""; }
.delivery-driver-marker.is-warning { opacity: .72; }
.delivery-driver-marker.is-warning i::after { position: absolute; right: 0; bottom: 0; width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; background: #f59e0b; content: ""; }
.delivery-driver-popup { display: flex; align-items: center; gap: 9px; min-width: 210px; }
.delivery-driver-popup > img, .delivery-driver-popup > span { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: #f1f5f9; object-fit: cover; font-size: 20px; }
.delivery-driver-popup > div { display: grid; gap: 2px; }
.delivery-driver-popup small { display: block; color: #64748b; font-size: 10px; }
.delivery-live-orders { max-height: 540px; overflow: auto; }
.delivery-live-orders h3 { margin-top: 0; }
.delivery-live-order { display: grid; grid-template-columns: 9px 1fr; gap: 10px; padding: 11px 0; border-top: 1px solid #e5e7eb; cursor: pointer; }
.delivery-live-order:hover { background: #f8fafc; }
.delivery-live-order > i { border-radius: 999px; }
.delivery-live-order-body { display: grid; gap: 3px; min-width: 0; }
.delivery-live-driver { display: flex; align-items: center; gap: 6px; }
.delivery-live-driver > img, .delivery-live-driver > span { display: grid; place-items: center; flex: 0 0 25px; width: 25px; height: 25px; border-radius: 50%; background: #f1f5f9; object-fit: cover; font-size: 13px; }
.delivery-live-order small, .delivery-live-order em { color: #64748b; font-size: 11px; font-style: normal; }
.delivery-live-order .delivery-sector { margin: 3px 0; padding: 6px 8px; border-radius: 7px; background: #fff7ed; color: #9a3412; line-height: 1.45; }
.delivery-live-order .delivery-sector b { color: #7c2d12; }
.delivery-live-order .delivery-address { color: #334155; font-weight: 700; }

@media (max-width: 900px) {
  .delivery-live-layout,
  .deliverymen-map-layout { grid-template-columns: 1fr; }
  .delivery-review > article { grid-template-columns: 1fr; }
  #deliveryLiveMap,
  #deliverymenOnlineMap { height: 420px; }
  .deliverymen-online-list-card { max-height: 420px; }
  #deliverymenOnlineList { max-height: 350px; }
}

@media (max-width: 560px) {
  .deliverymen-admin-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .deliverymen-admin-tabs a {
    justify-content: center;
    padding-inline: 8px;
    text-align: center;
  }

  #deliverymenOnlineMap {
    min-height: 340px;
    height: 360px;
  }
}

/* PDV delivery: compact receiving workspace for small desktop screens */
.page-pdv .admin-layout > main,
.page-pdv main {
  width: min(100% - 16px, 1760px) !important;
  padding-top: 8px !important;
}

.page-pdv .pdv-screen.pdv-delivery-receiving {
  grid-template-columns: minmax(260px, 300px) minmax(430px, 1fr) minmax(248px, 280px) !important;
  grid-template-rows: 62px auto minmax(0, 1fr) !important;
  min-height: calc(100vh - 88px) !important;
  height: calc(100vh - 88px) !important;
  font-size: 12px !important;
}

.page-pdv .pdv-delivery-receiving .pdv-top {
  grid-template-columns: minmax(220px, auto) minmax(360px, 1fr) auto auto !important;
  gap: 10px !important;
  min-height: 62px !important;
  padding: 6px 16px !important;
}

.page-pdv .pdv-delivery-receiving .pdv-top strong {
  font-size: 22px !important;
}

.page-pdv .pdv-delivery-receiving .pdv-status-top {
  min-height: 48px !important;
  margin: 8px 8px 0 !important;
  padding: 5px !important;
}

.page-pdv .pdv-delivery-receiving .pdv-status-top .pdv-status-tabs {
  flex-wrap: nowrap !important;
  gap: 5px !important;
}

.page-pdv .pdv-delivery-receiving .pdv-status-tabs a {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  min-height: 38px !important;
  padding: 3px 6px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
}

.page-pdv .pdv-delivery-receiving .pdv-status-tabs b {
  min-width: 19px !important;
  width: 19px !important;
  height: 19px !important;
  font-size: 10px !important;
}

.page-pdv .pdv-delivery-receiving .pdv-work,
.page-pdv .pdv-delivery-receiving .pdv-order-live-detail,
.page-pdv .pdv-delivery-receiving .pdv-customer-panel {
  margin-top: 6px !important;
}

.page-pdv .pdv-delivery-receiving .pdv-search-wrap {
  grid-template-columns: 1fr 36px !important;
  gap: 6px !important;
  padding: 6px 8px !important;
}

.page-pdv .pdv-delivery-receiving .pdv-search-wrap label,
.page-pdv .pdv-delivery-receiving .pdv-search-wrap .pdv-refresh {
  min-height: 34px !important;
  min-width: 34px !important;
}

.page-pdv .pdv-delivery-receiving .pdv-mini-board,
.page-pdv .pdv-order-live-detail,
.page-pdv .pdv-customer-panel {
  height: calc(100vh - 211px) !important;
}

.page-pdv .pdv-delivery-receiving .pdv-mini-board {
  gap: 7px !important;
  padding: 2px 8px 12px !important;
}

.page-pdv .pdv-delivery-receiving .pdv-mini-card {
  gap: 5px !important;
  min-height: 88px !important;
  padding: 10px 11px !important;
}

.page-pdv .pdv-card-head {
  gap: 6px !important;
}

.page-pdv .pdv-card-head b,
.page-pdv .pdv-delivery-receiving .pdv-mini-card strong {
  font-size: 13px !important;
}

.page-pdv .pdv-card-head time,
.page-pdv .pdv-delivery-receiving .pdv-mini-card > span,
.page-pdv .pdv-delivery-receiving .pdv-mini-card small,
.page-pdv .pdv-delivery-receiving .pdv-mini-card .pdv-delivery-badge {
  font-size: 11px !important;
}

.page-pdv .pdv-delivery-receiving .pdv-mini-card .pdv-delivery-badge {
  right: 11px !important;
  bottom: 10px !important;
}

.page-pdv .pdv-delivery-receiving .pdv-order-live-detail {
  margin-right: 6px !important;
  padding: 16px !important;
}

.page-pdv .pdv-delivery-receiving .pdv-live-detail-top {
  gap: 8px !important;
  padding-bottom: 12px !important;
}

.page-pdv .pdv-delivery-receiving .pdv-live-detail-top h2 {
  margin-bottom: 3px !important;
  font-size: 20px !important;
}

.page-pdv .pdv-delivery-receiving .pdv-live-detail-top small {
  font-size: 12px !important;
}

.page-pdv .pdv-delivery-receiving .pdv-live-detail-top .pdv-flow {
  min-width: 142px !important;
  min-height: 36px !important;
  padding: 6px 10px !important;
  font-size: 12px !important;
}

.page-pdv .pdv-delivery-receiving .pdv-live-status {
  min-height: 28px !important;
  padding: 5px 8px !important;
  font-size: 11px !important;
}

.page-pdv .pdv-order-live-detail .pdv-detail-items {
  margin-top: 13px !important;
}

.page-pdv .pdv-order-live-detail .pdv-detail-items h3,
.page-pdv .pdv-order-note h3,
.page-pdv .pdv-order-history-wrap h3 {
  margin-bottom: 8px !important;
  font-size: 14px !important;
}

.page-pdv .pdv-order-live-detail .pdv-detail-item {
  min-height: 48px !important;
  padding: 9px 0 9px 68px !important;
}

.page-pdv .pdv-order-live-detail .pdv-detail-item::before {
  top: 14px !important;
  width: 22px !important;
  height: 22px !important;
  font-size: 11px !important;
}

.page-pdv .pdv-order-live-detail .pdv-detail-item::after {
  left: 30px !important;
  top: 8px !important;
  width: 34px !important;
  height: 34px !important;
}

.page-pdv .pdv-order-live-detail .pdv-detail-item strong,
.page-pdv .pdv-order-live-detail .pdv-detail-item span {
  font-size: 12px !important;
}

.page-pdv .pdv-order-total-line {
  padding: 12px 0 !important;
  font-size: 14px !important;
}

.page-pdv .pdv-order-note,
.page-pdv .pdv-order-history-wrap {
  margin-top: 13px !important;
}

.page-pdv .pdv-order-note p {
  padding: 9px !important;
  font-size: 12px !important;
}

.page-pdv .pdv-order-history-wrap .pdv-history {
  font-size: 11px !important;
}

.page-pdv .pdv-delivery-receiving .pdv-customer-panel {
  gap: 8px !important;
  margin-right: 8px !important;
}

.page-pdv .pdv-customer-card,
.page-pdv .pdv-quick-actions,
.page-pdv .pdv-new-order-card {
  padding: 12px !important;
}

.page-pdv .pdv-customer-card header,
.page-pdv .pdv-quick-actions header,
.page-pdv .pdv-new-order-card header {
  margin-bottom: 10px !important;
}

.page-pdv .pdv-customer-card h2,
.page-pdv .pdv-quick-actions h2,
.page-pdv .pdv-new-order-card h2,
.page-pdv .pdv-customer-info dt {
  font-size: 12px !important;
}

.page-pdv .pdv-customer-name {
  gap: 6px !important;
  padding-bottom: 10px !important;
}

.page-pdv .pdv-customer-name strong,
.page-pdv .pdv-customer-name span,
.page-pdv .pdv-customer-info dd {
  font-size: 11px !important;
  line-height: 1.35 !important;
}

.page-pdv .pdv-customer-info {
  gap: 5px !important;
  margin-top: 10px !important;
}

.page-pdv .pdv-customer-info dd {
  margin-bottom: 5px !important;
}

.page-pdv .pdv-estimate-card {
  padding: 12px !important;
  grid-template-columns: 22px 1fr !important;
}

.page-pdv .pdv-estimate-card b {
  grid-column: 2 !important;
  font-size: 18px !important;
}

.page-pdv .pdv-estimate-card span {
  grid-column: 2 !important;
}

.page-pdv .pdv-quick-actions {
  gap: 7px !important;
}

.page-pdv .pdv-quick-actions a,
.page-pdv .pdv-quick-actions button {
  min-height: 36px !important;
  padding: 0 9px !important;
  font-size: 11px !important;
}

.page-pdv .pdv-period-form {
  gap: 5px !important;
}

.page-pdv .pdv-period-form label {
  gap: 2px !important;
  font-size: 9px !important;
}

.page-pdv .pdv-period-form input,
.page-pdv .pdv-period-form button,
.page-pdv .pdv-period-form .pdv-today,
.page-pdv .pdv-top-today,
.page-pdv .pdv-store-toggle {
  height: 34px !important;
  font-size: 11px !important;
}

.page-pdv .pdv-period-form input {
  width: 112px !important;
  padding: 0 5px !important;
}

.page-pdv .pdv-period-form button,
.page-pdv .pdv-top-today {
  min-width: 70px !important;
}

.page-pdv .pdv-store-toggle {
  min-width: 104px !important;
  padding: 0 11px !important;
}

@media (max-width: 1260px) {
  .page-pdv .pdv-screen.pdv-delivery-receiving {
    grid-template-columns: 242px minmax(390px, 1fr) 232px !important;
    grid-template-rows: 62px auto minmax(0, 1fr) !important;
    height: calc(100vh - 88px) !important;
  }

  .page-pdv .pdv-delivery-receiving .pdv-top,
  .page-pdv .pdv-delivery-receiving .pdv-status-top {
    grid-column: 1 / 4 !important;
  }

  .page-pdv .pdv-delivery-receiving .pdv-top {
    grid-row: 1 !important;
  }

  .page-pdv .pdv-delivery-receiving .pdv-status-top {
    grid-row: 2 !important;
  }

  .page-pdv .pdv-delivery-receiving .pdv-work {
    grid-column: 1 !important;
    grid-row: 3 !important;
  }

  .page-pdv .pdv-delivery-receiving .pdv-order-live-detail {
    grid-column: 2 !important;
    grid-row: 3 !important;
  }

  .page-pdv .pdv-delivery-receiving .pdv-customer-panel {
    grid-column: 3 !important;
    grid-row: 3 !important;
  }

  .page-pdv .pdv-delivery-receiving .pdv-top {
    grid-template-columns: 190px minmax(350px, 1fr) auto auto !important;
  }

  .page-pdv .pdv-delivery-receiving .pdv-top strong {
    font-size: 18px !important;
  }
}

@media (max-width: 980px) {
  .page-pdv .pdv-screen.pdv-delivery-receiving {
    height: auto !important;
    grid-template-columns: 242px minmax(0, 1fr) !important;
    grid-template-rows: auto auto minmax(560px, calc(100vh - 190px)) auto !important;
  }

  .page-pdv .pdv-delivery-receiving .pdv-top,
  .page-pdv .pdv-delivery-receiving .pdv-status-top {
    grid-column: 1 / 3 !important;
  }

  .page-pdv .pdv-delivery-receiving .pdv-work {
    grid-column: 1 !important;
    grid-row: 3 !important;
  }

  .page-pdv .pdv-delivery-receiving .pdv-order-live-detail {
    grid-column: 2 !important;
    grid-row: 3 !important;
  }

  .page-pdv .pdv-delivery-receiving .pdv-customer-panel {
    grid-column: 1 / 3 !important;
    grid-row: 4 !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    height: auto !important;
    margin: 8px !important;
    overflow: visible !important;
  }

  .page-pdv .pdv-delivery-receiving .pdv-top {
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    grid-template-rows: auto auto !important;
    padding: 6px 10px !important;
  }

  .page-pdv .pdv-delivery-receiving .pdv-period-form {
    grid-column: 1 / 4 !important;
    grid-row: 2 !important;
    justify-content: flex-start !important;
  }

  .page-pdv .pdv-delivery-receiving .pdv-top-today {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  .page-pdv .pdv-delivery-receiving .pdv-store-toggle-form,
  .page-pdv .pdv-delivery-receiving > .pdv-top > .pdv-store-toggle {
    grid-column: 3 !important;
    grid-row: 1 !important;
  }

  .page-pdv .pdv-delivery-receiving .pdv-order-live-detail {
    min-width: 0 !important;
    width: auto !important;
    overflow-x: hidden !important;
  }

  .page-pdv .pdv-delivery-receiving .pdv-mini-board,
  .page-pdv .pdv-order-live-detail {
    height: calc(100vh - 190px) !important;
  }
}

@media (max-width: 720px) {
  .page-pdv .pdv-screen.pdv-delivery-receiving {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto auto auto !important;
  }

  .page-pdv .pdv-delivery-receiving .pdv-top,
  .page-pdv .pdv-delivery-receiving .pdv-status-top,
  .page-pdv .pdv-delivery-receiving .pdv-work,
  .page-pdv .pdv-delivery-receiving .pdv-order-live-detail,
  .page-pdv .pdv-delivery-receiving .pdv-customer-panel {
    grid-column: 1 !important;
  }

  .page-pdv .pdv-delivery-receiving .pdv-order-live-detail {
    grid-row: 4 !important;
    margin: 6px 8px !important;
  }

  .page-pdv .pdv-delivery-receiving .pdv-customer-panel {
    grid-row: 5 !important;
    grid-template-columns: 1fr !important;
  }

  .page-pdv .pdv-delivery-receiving .pdv-mini-board,
  .page-pdv .pdv-order-live-detail {
    height: auto !important;
    max-height: none !important;
  }

  .page-pdv .pdv-delivery-receiving .pdv-status-top .pdv-status-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Final PDV item presentation override */
.page-pdv .pdv-order-live-detail .pdv-detail-item { display:grid !important; grid-template-columns:24px 44px minmax(0,1fr) auto !important; grid-template-rows:auto !important; align-items:center !important; gap:8px !important; min-height:58px !important; margin:0 0 7px !important; padding:7px !important; border:1px solid #dbe4ef !important; border-radius:7px !important; background:#fff !important; }
.page-pdv .pdv-order-live-detail .pdv-detail-item::before,
.page-pdv .pdv-order-live-detail .pdv-detail-item::after { content:none !important; display:none !important; }
.page-pdv .pdv-item-sequence { width:24px !important; height:24px !important; display:grid !important; place-items:center !important; border:1px solid #cbd5e1 !important; border-radius:999px !important; background:#fff !important; color:#334155 !important; font-size:11px !important; font-weight:900 !important; }
.page-pdv .pdv-item-photo { width:44px !important; height:44px !important; display:block !important; border:1px solid #e2e8f0 !important; border-radius:7px !important; background:#f8fafc !important; object-fit:cover !important; }
.page-pdv .pdv-item-description { min-width:0 !important; display:grid !important; gap:3px !important; }
.page-pdv .pdv-item-description strong { overflow-wrap:anywhere !important; font-size:12px !important; }
.page-pdv .pdv-item-description small { grid-column:auto !important; color:#64748b !important; font-size:10px !important; font-weight:600 !important; }
.page-pdv .pdv-item-total { justify-self:end !important; white-space:nowrap !important; color:#0f172a !important; font-size:12px !important; font-weight:900 !important; }
.page-pdv .pdv-detail-item .pdv-item-delete { grid-column:3 / -1 !important; }
@media (min-width:1280px) {
  .page-pdv .pdv-order-live-detail .pdv-detail-items { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; align-content:start !important; gap:8px !important; }
  .page-pdv .pdv-order-live-detail .pdv-detail-items > h3,
  .page-pdv .pdv-order-live-detail .pdv-detail-items > .pdv-table-item-form,
  .page-pdv .pdv-order-live-detail .pdv-detail-items > .pdv-empty-items { grid-column:1 / -1 !important; }
  .page-pdv .pdv-order-live-detail .pdv-detail-item { margin-bottom:0 !important; }
}
@media (max-width:520px) {
  .page-pdv .pdv-order-live-detail .pdv-detail-item { grid-template-columns:24px 40px minmax(0,1fr) !important; }
  .page-pdv .pdv-item-photo { width:40px !important; height:40px !important; }
  .page-pdv .pdv-item-total { grid-column:3 !important; justify-self:start !important; }
}

/* Mantem a busca do PDV em uma faixa propria, sem sobreposicao dos cards. */
.page-pdv .pdv-delivery-receiving .pdv-work {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.page-pdv .pdv-delivery-receiving .pdv-deliverybar,
.page-pdv .pdv-delivery-receiving .pdv-search-wrap {
  position: relative !important;
  z-index: 3 !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  background: #f8fafc !important;
}

.page-pdv .pdv-delivery-receiving .pdv-deliverybar {
  height: auto !important;
  min-height: 76px !important;
  overflow: visible !important;
}

.page-pdv .pdv-delivery-receiving .pdv-mini-board {
  position: relative !important;
  z-index: 1 !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow-y: auto !important;
}

/* Novo pedido manual no PDV */
.page-pdv .pdv-new-order-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  border-radius: 11px;
  padding: 0 16px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 9px 20px rgba(234, 88, 12, .24);
}

.page-pdv .pdv-new-order-button .icon {
  width: 18px;
  height: 18px;
}

.page-pdv .pdv-online-deliverymen-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 0 12px;
  border: 1px solid #bae6d2;
  border-radius: 11px;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: #065f46;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(5, 150, 105, .12);
}

.page-pdv .pdv-online-deliverymen-button > span:first-child {
  font-size: 20px;
  line-height: 1;
}

.page-pdv .pdv-online-deliverymen-button strong {
  padding: 4px 7px;
  border-radius: 999px;
  background: #059669;
  color: #fff;
  font-size: 11px;
  white-space: nowrap;
}

.page-pdv .pdv-online-deliverymen-button:hover {
  border-color: #34d399;
  transform: translateY(-1px);
}

.page-pdv .pdv-deliverybar {
  display: flex !important;
  align-items: center !important;
  gap: 12px;
}

.page-pdv .pdv-deliverybar .pdv-search-wrap {
  width: auto !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

.pdv-deliveryman-arrival-toast {
  position: fixed;
  z-index: 10000;
  top: 18px;
  left: 50%;
  width: min(460px, calc(100vw - 28px));
  display: grid;
  gap: 3px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 15px;
  background: linear-gradient(135deg, #047857, #059669);
  color: #fff;
  box-shadow: 0 18px 45px rgba(6, 78, 59, .35);
  opacity: 0;
  transform: translate(-50%, -18px);
  transition: opacity .25s ease, transform .25s ease;
}

.pdv-deliveryman-arrival-toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.pdv-deliveryman-arrival-toast strong {
  font-size: 15px;
}

.pdv-deliveryman-arrival-toast span {
  color: #d1fae5;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 820px) {
  .page-pdv .pdv-deliverybar {
    flex-wrap: wrap;
  }

  .page-pdv .pdv-deliverybar .pdv-search-wrap {
    flex-basis: 100% !important;
  }
}

.pdv-new-sale-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  padding: 12px;
  background: rgba(15, 23, 42, .72);
  backdrop-filter: blur(8px);
}

.pdv-new-sale {
  width: min(1540px, 100%);
  height: calc(100vh - 24px);
  margin: 0 auto;
  overflow: hidden;
  display: grid;
  grid-template-rows: 68px minmax(0, 1fr);
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 22px;
  background: #f5f7fb;
  box-shadow: 0 30px 80px rgba(15, 23, 42, .34);
}

.pdv-new-sale-header {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 42px;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  background: linear-gradient(120deg, #111827, #1e293b);
  color: #fff;
}

.pdv-new-sale-header > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.pdv-new-sale-header > div > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  background: linear-gradient(135deg, #fb923c, #ea580c);
}

.pdv-new-sale-header .icon {
  width: 21px;
  height: 21px;
}

.pdv-new-sale-header p,
.pdv-new-sale-header small,
.pdv-new-sale-header strong {
  display: block;
  margin: 0;
}

.pdv-new-sale-header small {
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.pdv-new-sale-header strong {
  margin-top: 2px;
  font-size: 21px;
}

.pdv-new-sale-header time {
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 800;
}

.pdv-new-sale-header > a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.pdv-new-sale > form {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.pdv-new-sale-layout {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 190px minmax(380px, 1fr) minmax(330px, 390px);
  grid-template-rows: minmax(0, 1fr);
}

.pdv-new-categories,
.pdv-new-catalog,
.pdv-new-cart {
  min-width: 0;
  min-height: 0;
}

.pdv-new-categories {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e2e8f0;
  background: #fff;
}

.pdv-new-categories > header,
.pdv-new-cart > header {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #e8edf3;
}

.pdv-new-categories > header .icon,
.pdv-new-cart > header .icon {
  width: 22px;
  height: 22px;
  color: #f97316;
}

.pdv-new-categories > header span,
.pdv-new-cart > header span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.pdv-new-categories > header strong,
.pdv-new-cart > header strong {
  color: #0f172a;
  font-size: 14px;
}

.pdv-new-categories > header small,
.pdv-new-cart > header small {
  color: #64748b;
  font-size: 10px;
}

.pdv-new-categories nav {
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 10px;
}

.pdv-new-categories nav button {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  background: transparent;
  color: #475569;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.pdv-new-categories nav button b {
  min-width: 24px;
  border-radius: 999px;
  padding: 3px 6px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 9px;
  text-align: center;
}

.pdv-new-categories nav button.active {
  background: #fff2e8;
  color: #c2410c;
}

.pdv-new-categories nav button.active b {
  background: #f97316;
  color: #fff;
}

.pdv-new-catalog {
  overflow: hidden;
  display: grid;
  grid-template-rows: 66px minmax(0, 1fr);
  background: #f5f7fb;
}

.pdv-new-search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, .9);
}

.pdv-new-search label {
  min-width: 0;
  flex: 1;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  border: 1px solid #d7e0ea;
  border-radius: 13px;
  padding: 0 11px;
  background: #f8fafc;
}

.pdv-new-search label:focus-within {
  border-color: #fb923c;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, .12);
}

.pdv-new-search .icon {
  width: 19px;
  height: 19px;
  color: #64748b;
}

.pdv-new-search input {
  min-width: 0;
  height: 40px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0f172a;
  font-size: 13px;
}

.pdv-new-search kbd {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 3px 6px;
  background: #fff;
  color: #64748b;
  font: 800 9px Arial, sans-serif;
}

.pdv-new-search > span {
  white-space: nowrap;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.pdv-new-products {
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  align-content: start;
  gap: 11px;
  padding: 14px;
}

.pdv-new-product {
  min-width: 0;
  min-height: 122px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 9px;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  padding: 9px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(15, 23, 42, .055);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.pdv-new-product:hover {
  border-color: #fdba74;
  transform: translateY(-2px);
  box-shadow: 0 13px 26px rgba(15, 23, 42, .09);
}

.pdv-new-product[hidden] {
  display: none !important;
}

.pdv-new-product > img {
  width: 72px;
  height: 72px;
  border-radius: 11px;
  background: #f1f5f9;
  object-fit: cover;
}

.pdv-new-product > div {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pdv-new-product small {
  overflow: hidden;
  color: #f97316;
  font-size: 9px;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.pdv-new-product strong {
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.2;
}

.pdv-new-product p {
  display: -webkit-box;
  margin: 4px 0 7px;
  overflow: hidden;
  color: #64748b;
  font-size: 10px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pdv-new-product footer {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.pdv-new-product footer > b {
  min-width: 0;
  color: #15803d;
  font-size: 12px;
  white-space: nowrap;
}

.pdv-new-product footer button {
  max-width: 100%;
  box-sizing: border-box;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  border: 0;
  border-radius: 9px;
  padding: 0 8px;
  background: #fff2e8;
  color: #c2410c;
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.pdv-new-product footer button .icon {
  width: 14px;
  height: 14px;
}

.pdv-new-products-empty,
.pdv-new-no-results {
  grid-column: 1 / -1;
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: #64748b;
  text-align: center;
}

.pdv-new-no-results[hidden] {
  display: none !important;
}

.pdv-new-products-empty .icon,
.pdv-new-no-results .icon {
  width: 42px;
  height: 42px;
  color: #cbd5e1;
}

.pdv-new-products-empty strong,
.pdv-new-no-results strong {
  color: #334155;
}

.pdv-new-products-empty span,
.pdv-new-no-results span {
  font-size: 11px;
}

.pdv-new-cart {
  overflow: hidden;
  display: grid;
  grid-template-rows: 66px minmax(110px, 1fr) auto auto;
  border-left: 1px solid #e2e8f0;
  background: #fff;
}

.pdv-new-cart > header {
  justify-content: space-between;
}

.pdv-new-cart > header > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.pdv-new-cart > header > button {
  border: 0;
  background: transparent;
  color: #dc2626;
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
}

.pdv-new-cart > header > button:disabled {
  color: #cbd5e1;
  cursor: default;
}

.pdv-new-cart-list {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 10px 12px;
}

#pdvCartHidden {
  display: none !important;
}

.pdv-new-cart-empty {
  min-height: 145px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: #94a3b8;
  text-align: center;
}

.pdv-new-cart-empty .icon {
  width: 36px;
  height: 36px;
}

.pdv-new-cart-empty strong {
  color: #475569;
  font-size: 12px;
}

.pdv-new-cart-empty span {
  font-size: 10px;
}

.pdv-new-cart-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto 24px;
  align-items: center;
  gap: 7px;
  border: 1px solid #e5eaf0;
  border-radius: 11px;
  padding: 9px;
  background: #fbfdff;
}

.pdv-new-cart-row > div:first-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.pdv-new-cart-row > div:first-child strong {
  overflow: hidden;
  color: #172033;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdv-new-cart-row > div:first-child small {
  color: #64748b;
  font-size: 9px;
}

.pdv-new-cart-row > b {
  white-space: nowrap;
  color: #15803d;
  font-size: 11px;
}

.pdv-new-qty {
  display: grid;
  grid-template-columns: 25px 22px 25px;
  align-items: center;
  text-align: center;
}

.pdv-new-qty button,
.pdv-new-remove {
  width: 25px;
  height: 25px;
  border: 0;
  border-radius: 7px;
  background: #eef2f7;
  color: #334155;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
}

.pdv-new-qty b {
  color: #0f172a;
  font-size: 10px;
}

.pdv-new-remove {
  width: 24px;
  color: #dc2626;
  background: #fff1f2;
}

.pdv-new-cart-row > input {
  grid-column: 1 / -1;
  min-width: 0;
  height: 31px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0 9px;
  background: #fff;
  color: #334155;
  font-size: 10px;
}

.pdv-new-customer {
  display: grid;
  gap: 8px;
  border-top: 1px solid #e5eaf0;
  padding: 10px 12px;
  background: #f8fafc;
}

.pdv-new-customer h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #334155;
  font-size: 11px;
}

.pdv-new-customer h3 .icon {
  width: 15px;
  height: 15px;
  color: #f97316;
}

.pdv-new-fields,
.pdv-new-delivery-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.pdv-new-delivery-fields {
  grid-template-columns: minmax(0, 1fr) 105px;
}

.pdv-new-delivery-fields > label:first-child {
  grid-column: 1 / -1;
}

.pdv-new-customer label {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.pdv-new-customer label > span {
  color: #64748b;
  font-size: 9px;
  font-weight: 800;
}

.pdv-new-customer input,
.pdv-new-customer select,
.pdv-new-customer textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #d8e0e9;
  border-radius: 8px;
  padding: 8px 9px;
  outline: 0;
  background: #fff;
  color: #172033;
  font-size: 10px;
}

.pdv-new-customer input,
.pdv-new-customer select {
  height: 35px;
}

.pdv-new-customer input[readonly] {
  background: #f1f5f9;
  color: #0f766e;
  font-weight: 800;
}

.pdv-neighborhood-control {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
}

.pdv-new-customer .pdv-neighborhood-control select {
  border-radius: 8px 0 0 8px;
}

.pdv-neighborhood-search-open {
  width: 38px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid #f97316;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  padding: 0;
  background: linear-gradient(135deg, #fb923c, #f97316);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(249, 115, 22, .2);
}

.pdv-neighborhood-search-open:hover,
.pdv-neighborhood-search-open:focus-visible {
  background: #ea580c;
}

.pdv-neighborhood-search-open .icon {
  width: 16px;
  height: 16px;
}

.pdv-neighborhood-search {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, .68);
  backdrop-filter: blur(3px);
}

.pdv-neighborhood-search[hidden] {
  display: none;
}

.pdv-neighborhood-search > article {
  width: min(580px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  display: grid;
  grid-template-rows: auto auto minmax(120px, 1fr) auto;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .32);
}

.pdv-neighborhood-search > article > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e2e8f0;
  padding: 15px 17px;
}

.pdv-neighborhood-search > article > header > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.pdv-neighborhood-search > article > header > div > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: #fff2e8;
  color: #f97316;
}

.pdv-neighborhood-search > article > header p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.pdv-neighborhood-search > article > header small {
  color: #64748b;
  font-size: 10px;
}

.pdv-neighborhood-search > article > header strong {
  color: #172033;
  font-size: 16px;
}

.pdv-neighborhood-search > article > header button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  cursor: pointer;
}

.pdv-neighborhood-search-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  background: #f8fafc;
}

.pdv-neighborhood-search-filter label {
  min-width: 0;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d8e0e9;
  border-radius: 10px;
  padding: 0 11px;
  background: #fff;
}

.pdv-neighborhood-search-filter label:focus-within {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, .1);
}

.pdv-neighborhood-search-filter .icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: #f97316;
}

.pdv-neighborhood-search-filter input {
  width: 100%;
  min-width: 0;
  height: 40px;
  border: 0;
  padding: 0;
  outline: 0;
  background: transparent;
  color: #172033;
  font-size: 13px;
}

.pdv-neighborhood-search-filter > span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.pdv-neighborhood-search-list {
  display: grid;
  align-content: start;
  gap: 7px;
  overflow-y: auto;
  padding: 4px 15px 15px;
  background: #f8fafc;
}

.pdv-neighborhood-search-list > button {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #dbe3ec;
  border-radius: 11px;
  padding: 11px 13px;
  background: #fff;
  color: #172033;
  text-align: left;
  cursor: pointer;
}

.pdv-neighborhood-search-list > button:hover,
.pdv-neighborhood-search-list > button:focus-visible {
  border-color: #fb923c;
  background: #fffaf5;
}

.pdv-neighborhood-search-list > button.active {
  border-color: #f97316;
  background: #fff7ed;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, .1);
}

.pdv-neighborhood-search-list > button span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.pdv-neighborhood-search-list > button strong {
  overflow: hidden;
  color: #172033;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdv-neighborhood-search-list > button small {
  color: #64748b;
  font-size: 10px;
}

.pdv-neighborhood-search-list > button b {
  flex: 0 0 auto;
  color: #0f766e;
  font-size: 12px;
}

.pdv-neighborhood-search-empty {
  display: grid;
  gap: 5px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 30px 16px;
  color: #64748b;
  text-align: center;
}

.pdv-neighborhood-search-empty strong {
  color: #334155;
  font-size: 13px;
}

.pdv-neighborhood-search > article > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #e2e8f0;
  padding: 12px 15px;
  background: #fff;
}

.pdv-neighborhood-search > article > footer small {
  color: #64748b;
  font-size: 10px;
}

.pdv-neighborhood-search > article > footer button {
  min-height: 36px;
  border: 1px solid #d8e0e9;
  border-radius: 9px;
  padding: 0 14px;
  background: #fff;
  color: #334155;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 560px) {
  .pdv-neighborhood-search {
    align-items: end;
    padding: 0;
  }

  .pdv-neighborhood-search > article {
    width: 100%;
    max-height: 86vh;
    border-radius: 18px 18px 0 0;
  }

  .pdv-neighborhood-search-filter {
    grid-template-columns: 1fr;
  }

  .pdv-neighborhood-search-filter > span {
    display: none;
  }
}

.company-status-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
  padding: 18px;
}

.company-status-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.company-status-panel > header h2,
.company-status-panel > header p {
  margin: 0;
}

.company-status-panel > header p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.company-status-panel > header > strong {
  border-radius: 999px;
  padding: 7px 11px;
  background: #ecfdf3;
  color: #047857;
  font-size: 12px;
  white-space: nowrap;
}

.company-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 382px;
  padding-right: 4px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.company-status-grid > article[hidden] {
  display: none;
}

.company-status-controls {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 170px 112px;
  gap: 10px;
}

.company-status-filter-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 10px;
  padding: 0 14px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(234, 88, 12, .2);
}

.company-status-filter-button .icon {
  width: 17px;
  height: 17px;
}

.company-status-controls label {
  min-height: 42px;
  border: 1px solid #dbe3ec;
  border-radius: 10px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #64748b;
}

.company-status-controls label .icon {
  width: 18px;
  height: 18px;
}

.company-status-controls input,
.company-status-controls select {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 1px solid #dbe3ec;
  border-radius: 10px;
  padding: 0 11px;
  background: #fff;
  color: var(--ink);
  outline: 0;
}

.company-status-controls label input {
  height: 40px;
  border: 0;
  padding: 0;
}

.company-status-controls input:focus,
.company-status-controls select:focus {
  border-color: #fb923c;
}

.company-status-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
}

.company-status-pagination {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.company-status-pagination[hidden] {
  display: none;
}

.company-status-pagination > div {
  display: flex;
  gap: 8px;
}

.company-status-pagination button {
  min-height: 36px;
  padding-inline: 11px;
}

.company-status-pagination button:disabled {
  opacity: .42;
  cursor: not-allowed;
}

.company-status-grid > article {
  min-width: 0;
  border: 1px solid #dbe3ec;
  border-radius: 12px;
  padding: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
}

.company-status-grid > article.is-inactive {
  border-color: #fecaca;
  background: #fff7f7;
}

.company-status-grid > article > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.company-status-grid > article strong,
.company-status-grid > article small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-status-grid > article small {
  color: var(--muted);
}

.company-status-badge {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #047857;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.is-inactive .company-status-badge {
  color: #b91c1c;
}

.company-status-badge .icon {
  width: 14px;
  height: 14px;
}

.company-status-grid form,
.company-status-grid form button {
  flex: 0 0 auto;
}

.company-activate {
  background: linear-gradient(135deg, #059669, #16a34a);
  box-shadow: 0 10px 20px rgba(5, 150, 105, .2);
}

@media (max-width: 760px) {
  .company-status-controls {
    grid-template-columns: 1fr;
  }

  .company-status-grid {
    grid-template-columns: 1fr;
    max-height: 430px;
  }

  .company-status-panel > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .company-status-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .company-status-pagination > div,
  .company-status-pagination button {
    width: 100%;
  }
}

.pdv-new-customer textarea {
  resize: vertical;
}

.pdv-new-customer input:focus,
.pdv-new-customer select:focus,
.pdv-new-customer textarea:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, .1);
}

.pdv-new-change {
  max-width: 120px;
}

.pdv-new-cart-total {
  display: grid;
  gap: 6px;
  border-top: 1px solid #dfe6ee;
  border-bottom: 5px solid #111827;
  padding: 11px 12px 12px;
  background: #fff;
}

.pdv-new-cart-total p,
.pdv-new-cart-total > strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
}

.pdv-new-cart-total p {
  color: #64748b;
  font-size: 10px;
}

.pdv-new-cart-total > strong {
  border-top: 1px dashed #cbd5e1;
  padding-top: 7px;
  color: #0f172a;
  font-size: 14px;
}

.pdv-new-cart-total > strong b {
  color: #15803d;
  font-size: 19px;
}

.pdv-new-cart-total > button {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 9px 20px rgba(22, 163, 74, .2);
}

.pdv-new-cart-total > button:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
  box-shadow: none;
}

.pdv-new-cart-total > button .icon {
  width: 18px;
  height: 18px;
}

@media (max-width: 1180px) {
  .pdv-new-sale-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 370px);
    grid-template-rows: auto minmax(0, 1fr);
  }

  .pdv-new-categories {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
  }

  .pdv-new-categories > header {
    display: none;
  }

  .pdv-new-categories nav {
    overflow-x: auto;
    display: flex;
    padding: 8px 10px;
  }

  .pdv-new-categories nav button {
    min-height: 36px;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .pdv-new-catalog {
    grid-row: 2;
  }

  .pdv-new-cart {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (max-width: 760px) {
  .pdv-new-sale-modal {
    padding: 0;
  }

  .pdv-new-sale {
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    display: block;
    border: 0;
    border-radius: 0;
  }

  .pdv-new-sale-header {
    position: sticky;
    top: 0;
    z-index: 8;
    min-height: 62px;
    grid-template-columns: minmax(0, 1fr) 38px;
  }

  .pdv-new-sale-header time {
    display: none;
  }

  .pdv-new-sale-header > div > span {
    width: 38px;
    height: 38px;
  }

  .pdv-new-sale-header strong {
    font-size: 18px;
  }

  .pdv-new-sale-layout {
    height: auto;
    display: flex;
    flex-direction: column;
  }

  .pdv-new-categories {
    position: sticky;
    top: 62px;
    z-index: 7;
    order: 1;
  }

  .pdv-new-catalog {
    order: 2;
    overflow: visible;
    display: block;
  }

  .pdv-new-search {
    position: sticky;
    top: 114px;
    z-index: 6;
  }

  .pdv-new-search kbd,
  .pdv-new-search > span {
    display: none;
  }

  .pdv-new-products {
    overflow: visible;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px;
  }

  .pdv-new-product {
    grid-template-columns: 62px minmax(0, 1fr);
    min-height: 108px;
    padding: 7px;
  }

  .pdv-new-product > img {
    width: 62px;
    height: 62px;
  }

  .pdv-new-product footer button span {
    display: none;
  }

  .pdv-new-cart {
    order: 3;
    overflow: visible;
    display: block;
    border-top: 8px solid #eef2f7;
    border-left: 0;
  }

  .pdv-new-cart-list {
    max-height: min(360px, 42vh);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .pdv-new-cart > header,
  .pdv-new-customer,
  .pdv-new-cart-total {
    padding-inline: 14px;
  }
}

@media (max-width: 430px) {
  .pdv-new-products {
    grid-template-columns: 1fr;
  }

  .pdv-new-product {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .pdv-new-product > img {
    width: 72px;
    height: 72px;
  }

  .pdv-new-fields {
    grid-template-columns: 1fr;
  }

  .pdv-new-delivery-fields {
    grid-template-columns: minmax(0, 1fr) 92px;
  }
}

.pdv-new-save-hint {
  display: block;
  color: #64748b;
  font-size: 9px;
  line-height: 1.35;
  text-align: center;
}

.pdv-product-customizer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, .62);
  backdrop-filter: blur(3px);
}

.pdv-product-customizer[hidden] {
  display: none;
}

.pdv-product-customizer > article {
  width: min(720px, 100%);
  max-height: min(820px, calc(100vh - 40px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .3);
}

.pdv-product-customizer > article > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #e2e8f0;
}

.pdv-product-customizer > article > header > div {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.pdv-product-customizer > article > header > div > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: #fff2e8;
  color: #f97316;
}

.pdv-product-customizer > article > header p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.pdv-product-customizer > article > header small,
.pdv-custom-group header small {
  color: #64748b;
  font-size: 10px;
}

.pdv-product-customizer > article > header strong {
  color: #172033;
  font-size: 17px;
}

.pdv-product-customizer > article > header button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  cursor: pointer;
}

.pdv-customize-body {
  overflow-y: auto;
  padding: 17px 18px;
  background: #f8fafc;
}

.pdv-customize-body > p {
  margin: 0 0 13px;
  color: #64748b;
  font-size: 12px;
}

.pdv-custom-group {
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
}

.pdv-custom-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-bottom: 1px solid #eef2f7;
}

.pdv-custom-group > header > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.pdv-custom-group > header > div > span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff2e8;
  color: #ea580c;
  font-size: 11px;
  font-weight: 900;
}

.pdv-custom-group > header p {
  display: grid;
  margin: 0;
}

.pdv-custom-group > header strong {
  color: #172033;
  font-size: 12px;
}

.pdv-custom-group > header > b {
  border-radius: 999px;
  padding: 5px 8px;
  background: #fff7ed;
  color: #ea580c;
  font-size: 9px;
}

.pdv-custom-size-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
  padding: 12px;
}

.pdv-custom-size-grid button,
.pdv-custom-flavor,
.pdv-custom-single {
  border: 1px solid #dbe3ec;
  border-radius: 10px;
  background: #fff;
  color: #172033;
  cursor: pointer;
}

.pdv-custom-size-grid button {
  display: grid;
  gap: 3px;
  padding: 10px;
  text-align: left;
}

.pdv-custom-size-grid button.selected,
.pdv-custom-flavor.selected,
.pdv-custom-single.selected {
  border-color: #f97316;
  background: #fff7ed;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, .12);
}

.pdv-custom-size-grid small,
.pdv-custom-option small,
.pdv-custom-flavor small,
.pdv-custom-single small {
  color: #64748b;
  font-size: 10px;
}

.pdv-custom-options {
  display: grid;
}

.pdv-custom-option,
.pdv-custom-flavor,
.pdv-custom-single {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
}

.pdv-custom-option + .pdv-custom-option,
.pdv-custom-flavor + .pdv-custom-flavor,
.pdv-custom-single + .pdv-custom-single {
  border-top: 1px solid #eef2f7;
}

.pdv-custom-option > span,
.pdv-custom-flavor > span,
.pdv-custom-single > span {
  display: grid;
  gap: 2px;
  text-align: left;
}

.pdv-custom-option > span strong,
.pdv-custom-flavor > span strong,
.pdv-custom-single > span strong {
  font-size: 11px;
}

.pdv-custom-option > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdv-custom-option > div button {
  width: 29px;
  height: 29px;
  border: 1px solid #fdba74;
  border-radius: 8px;
  background: #fff7ed;
  color: #ea580c;
  cursor: pointer;
  font-size: 17px;
}

.pdv-custom-flavor i {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  color: #fff;
  font-style: normal;
}

.pdv-custom-flavor.selected i {
  border-color: #f97316;
  background: #f97316;
}

.pdv-custom-single i {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 4px #fff;
}

.pdv-custom-single.selected i {
  border-color: #f97316;
  background: #f97316;
}

.pdv-custom-wait {
  margin-bottom: 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 18px;
  color: #64748b;
  background: #fff;
  text-align: center;
  font-size: 11px;
}

.pdv-customize-note {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 10px;
  font-weight: 800;
}

.pdv-customize-note input {
  width: 100%;
  height: 40px;
  border: 1px solid #d8e0e9;
  border-radius: 10px;
  padding: 0 11px;
  outline: 0;
}

.pdv-product-customizer > article > footer {
  display: grid;
  grid-template-columns: auto minmax(110px, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.pdv-product-customizer > article > footer > div {
  display: grid;
  justify-content: end;
  text-align: right;
}

.pdv-product-customizer > article > footer > div span {
  color: #64748b;
  font-size: 9px;
}

.pdv-product-customizer > article > footer > div strong {
  color: #15803d;
  font-size: 18px;
}

.pdv-product-customizer > article > footer button {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  padding: 0 15px;
  cursor: pointer;
  font-weight: 900;
}

#pdvCustomizeCancel {
  background: #eef2f7;
  color: #475569;
}

#pdvCustomizeAdd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
}

@media (max-width: 760px) {
  .pdv-new-cart-total {
    position: sticky;
    bottom: 0;
    z-index: 10;
    box-shadow: 0 -10px 30px rgba(15, 23, 42, .1);
  }

  .pdv-product-customizer {
    align-items: end;
    padding: 0;
  }

  .pdv-product-customizer > article {
    width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
  }

  .pdv-product-customizer > article > footer {
    grid-template-columns: 1fr 1fr;
  }

  .pdv-product-customizer > article > footer > div {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-content: stretch;
    text-align: center;
  }
}

@media (min-width: 761px) {
  .pdv-new-sale-modal {
    padding: 12px 12px 24px;
  }

  .pdv-new-sale {
    height: calc(100vh - 36px);
  }

  .pdv-new-cart {
    position: relative;
    height: 100%;
    max-height: 100%;
    grid-template-rows: 66px auto auto auto;
    align-content: start;
    padding-bottom: 0;
  }

  .pdv-new-cart-list {
    min-height: 92px;
    max-height: min(240px, 28vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }

  .pdv-new-customer {
    min-height: 0;
    max-height: min(260px, 34vh);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .pdv-new-cart-total {
    position: static;
    z-index: 12;
    padding-bottom: 13px;
    box-shadow: 0 -10px 26px rgba(15, 23, 42, .09);
  }
}

/* PDV Mesas — padrão visual 2026 */
.page-pdv .pdv-top-mesas {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 14px rgba(249, 115, 22, .18);
  font-size: 13px;
  font-weight: 800;
}

.page-pdv .pdv-top-mesas:hover {
  background: var(--brand-dark);
  color: #fff;
  transform: translateY(-1px);
}

.page-pdv .pdv-tablebar {
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.page-pdv .pdv-tablebar form {
  min-width: 180px;
}

.page-pdv .pdv-tablebar label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.page-pdv .pdv-tablebar input {
  min-height: 38px;
  border-color: var(--line);
  border-radius: 9px;
  font-size: 14px;
}

.page-pdv .pdv-table-status-filters {
  gap: 4px;
  padding: 4px;
  border-radius: 11px;
  background: #f1f5f9;
}

.page-pdv .pdv-table-status-filter {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: #475569;
  font-size: 12px;
  font-weight: 750;
}

.page-pdv .pdv-table-status-filter.active {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 1px 4px rgba(15, 23, 42, .12);
}

.page-pdv .pdv-tables-panel {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #f8fafc;
}

.page-pdv .pdv-tables-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.page-pdv .pdv-table-summary {
  min-height: 70px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

.page-pdv .pdv-table-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.page-pdv .pdv-table-summary strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: 20px;
  letter-spacing: -.02em;
}

.page-pdv .pdv-table-summary.livre { border-bottom: 3px solid #22c55e; }
.page-pdv .pdv-table-summary.ocupado { border-bottom: 3px solid #f97316; }
.page-pdv .pdv-table-summary.reservado { border-bottom: 3px solid #f59e0b; }
.page-pdv .pdv-table-summary.valor { border-bottom: 3px solid #0f766e; }

.page-pdv .pdv-tables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-auto-rows: auto !important;
  gap: 12px;
  align-items: stretch;
}

.page-pdv .pdv-table-card {
  --table-accent: #22c55e;
  position: relative;
  display: grid !important;
  grid-template-rows: auto minmax(52px, 1fr) auto auto auto;
  gap: 8px;
  height: auto !important;
  min-height: 184px;
  padding: 13px !important;
  overflow: hidden;
  border: 1px solid var(--line) !important;
  border-left: 4px solid var(--table-accent) !important;
  border-radius: 14px !important;
  outline: 0 !important;
  background: #fff !important;
  box-shadow: var(--shadow-sm) !important;
  color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.page-pdv .pdv-table-card:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08) !important;
  transform: translateY(-2px);
}

.page-pdv .pdv-table-card.ocupado { --table-accent: #f97316; }
.page-pdv .pdv-table-card.reservado { --table-accent: #f59e0b; }

.page-pdv .pdv-table-card > header {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
}

.page-pdv .pdv-table-card > header strong {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: #0f172a !important;
  font-size: 24px !important;
  line-height: 1;
  letter-spacing: -.04em;
}

.page-pdv .pdv-table-card > header strong small {
  color: var(--muted) !important;
  font-size: 10px !important;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.page-pdv .pdv-table-card em {
  min-width: 0 !important;
  padding: 5px 9px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #dcfce7 !important;
  color: #15803d !important;
  font-size: 10px !important;
  font-style: normal;
  font-weight: 850;
}

.page-pdv .pdv-table-card.ocupado em {
  background: #ffedd5 !important;
  color: #c2410c !important;
}

.page-pdv .pdv-table-card.reservado em {
  background: #fef3c7 !important;
  color: #a16207 !important;
}

.page-pdv .pdv-table-body {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 52px !important;
  margin: 0 !important;
  padding: 9px 11px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
  color: #334155 !important;
  text-decoration: none;
}

.page-pdv form.pdv-table-body {
  display: block !important;
}

.page-pdv form.pdv-table-body > button {
  width: 100%;
  min-height: 32px;
  padding: 0;
  background: transparent;
  color: #334155;
  box-shadow: none;
}

.page-pdv .pdv-table-icon,
.page-pdv .pdv-table-card.ocupado .pdv-table-body .pdv-table-icon {
  display: inline-flex;
  width: 28px !important;
  height: 28px !important;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  border-radius: 8px;
  background: #ecfdf5 !important;
  color: #059669 !important;
}

.page-pdv .pdv-table-card.ocupado .pdv-table-icon {
  background: #fff7ed !important;
  color: #ea580c !important;
}

.page-pdv .pdv-table-icon .icon {
  width: 18px;
  height: 18px;
}

.page-pdv .pdv-table-action,
.page-pdv .pdv-table-client {
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.page-pdv .pdv-table-total {
  color: #0f172a !important;
  font-size: 17px !important;
  line-height: 1.2;
}

.page-pdv .pdv-table-meta {
  min-height: 16px;
  color: var(--muted) !important;
  font-size: 11px !important;
  line-height: 1.35;
}

.page-pdv .pdv-table-card > footer {
  display: flex !important;
  gap: 7px !important;
  margin: 1px 0 0 !important;
  padding: 9px 0 0 !important;
  border-top: 1px solid #eef2f7 !important;
}

.page-pdv .pdv-table-card > footer form,
.page-pdv .pdv-table-card > footer a {
  flex: 1 1 0 !important;
  min-width: 0 !important;
}

.page-pdv .pdv-table-card > footer button,
.page-pdv .pdv-table-card > footer a {
  width: 100%;
  min-height: 34px !important;
  padding: 0 8px !important;
  border: 1px solid #dbe3ec !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: #334155 !important;
  box-shadow: none !important;
  font-size: 11px !important;
  font-weight: 800;
}

.page-pdv .pdv-table-card > footer button:hover,
.page-pdv .pdv-table-card > footer a:hover {
  border-color: #fdba74 !important;
  background: #fff7ed !important;
  color: #c2410c !important;
}

.page-pdv .pdv-table-card > footer .pdv-table-reserve {
  border-color: #fde68a !important;
  background: #fffbeb !important;
  color: #a16207 !important;
}

.page-pdv .pdv-table-empty {
  grid-column: 1 / -1;
  min-height: 180px;
  place-items: center;
  text-align: center;
}

/* Comanda usa o mesmo catálogo e personalizador do novo pedido delivery. */
.pdv-table-sale-modal .pdv-new-sale-header > div > span {
  background: #fff7ed;
  color: var(--brand-dark);
}

.pdv-table-checkout {
  gap: 12px;
}

.pdv-table-checkout-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.pdv-table-checkout-info > span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}

.pdv-table-checkout-info small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.pdv-table-checkout-info strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdv-table-close-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(100px, .55fr);
  gap: 8px;
}

.pdv-table-close-fields label,
.pdv-table-checkout .pdv-new-note {
  display: grid;
  gap: 5px;
}

.pdv-table-close-fields label > span,
.pdv-table-checkout .pdv-new-note > span {
  color: #475569;
  font-size: 10px;
  font-weight: 800;
}

.pdv-table-secondary-actions {
  display: grid;
  grid-template-columns: .75fr 1.25fr .8fr;
  gap: 7px;
}

.pdv-table-secondary-actions > a,
.pdv-table-secondary-actions > button {
  min-width: 0;
  min-height: 40px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: #334155;
  box-shadow: none;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

.pdv-table-secondary-actions .pdv-table-finalize {
  border-color: #16a34a;
  background: #16a34a;
  color: #fff;
}

.pdv-table-secondary-actions .pdv-table-cancel {
  border-color: #fecaca;
  color: #dc2626;
}

.pdv-table-save-first {
  color: #92400e;
  font-size: 10px;
  line-height: 1.35;
}

@media (max-width: 1100px) {
  .page-pdv .pdv-tables-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-pdv .pdv-tables-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 760px) {
  .page-pdv .pdv-tablebar,
  .page-pdv .pdv-tablebar form,
  .page-pdv .pdv-table-status-filters {
    width: 100%;
  }

  .page-pdv .pdv-table-status-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
  }

  .page-pdv .pdv-table-status-filter {
    padding-inline: 5px;
    text-align: center;
  }

  .page-pdv .pdv-tables-panel {
    padding: 10px;
  }

  .page-pdv .pdv-tables-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-pdv .pdv-table-summary:last-child {
    grid-column: 1 / -1;
  }

  .page-pdv .pdv-tables-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .page-pdv .pdv-table-card {
    min-height: 174px;
    padding: 11px !important;
  }

  .pdv-table-close-fields,
  .pdv-table-secondary-actions {
    grid-template-columns: 1fr;
  }

  .pdv-table-secondary-actions > a,
  .pdv-table-secondary-actions > button {
    min-height: 44px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .page-pdv .pdv-tables-grid {
    grid-template-columns: 1fr;
  }

  .page-pdv .pdv-table-card {
    min-height: 168px;
  }

  .pdv-table-checkout-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pdv-table-checkout-info > span:last-child {
    grid-column: 1 / -1;
  }
}

/* PDV Mesas: painel de gerenciamento, resumo e filtros. */
.page-pdv .pdv-delivery-receiving .pdv-top > strong {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap;
  gap: 10px !important;
}

.page-pdv .pdv-top-mesas {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #fdba74;
  border-radius: 9px;
  background: #fff7ed;
  padding: 0 12px;
  color: #c2410c;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.page-pdv .pdv-top-mesas:hover {
  border-color: #f97316;
  background: #ffedd5;
  transform: translateY(-1px);
}

.page-pdv .pdv-top-mesas .icon {
  width: 17px;
  height: 17px;
}

@media (max-width: 720px) {
  .page-pdv .pdv-delivery-receiving .pdv-top > strong {
    justify-content: space-between;
  }
}

.pdv-tabs a { gap: 7px; }
.pdv-tabs a .icon { width: 17px; height: 17px; }

.pdv-table-status-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}

.pdv-table-status-filter {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dce5ef;
  border-radius: 999px;
  background: #fff;
  padding: 7px 12px;
  color: #52627d;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.pdv-table-status-filter:hover,
.pdv-table-status-filter.active {
  border-color: #315fe0;
  background: #eef4ff;
  color: #244fdb;
}

.pdv-tables-panel {
  height: calc(100vh - 222px) !important;
  padding-top: 14px !important;
}

.pdv-tables-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.pdv-table-summary {
  min-height: 66px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #dce5ef;
  border-left: 4px solid #64748b;
  border-radius: 10px;
  background: #fff;
  padding: 10px 13px;
}

.pdv-table-summary span {
  color: #66748d;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.pdv-table-summary strong {
  color: #17233d;
  font-size: 20px;
  line-height: 1.2;
}

.pdv-table-summary.livre { border-left-color: #16a34a; }
.pdv-table-summary.ocupado { border-left-color: #e9142a; }
.pdv-table-summary.reservado { border-left-color: #f59e0b; }
.pdv-table-summary.valor { border-left-color: #244fdb; }

.pdv-tables-grid { grid-auto-rows: 194px !important; }

.pdv-table-card {
  height: 194px !important;
  grid-template-rows: 30px 58px 22px 20px 36px !important;
}

.pdv-table-card header strong small {
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 800;
  text-transform: uppercase;
}

.pdv-table-card.reservado {
  border-color: #f59e0b !important;
  box-shadow: inset 0 0 0 1px #fbbf24 !important;
}

.pdv-table-card.reservado em {
  background: #fff7dd !important;
  color: #a16207 !important;
}

.pdv-table-card.reservado .pdv-table-body {
  background: linear-gradient(135deg, #d88a00, #f5a900) !important;
}

.pdv-table-card footer { display: flex !important; gap: 6px; }

.pdv-table-card footer form,
.pdv-table-card footer a { min-width: 0; flex: 1 1 0; }

.pdv-table-card footer button,
.pdv-table-card footer a { min-height: 34px !important; padding-inline: 7px !important; }

.pdv-table-card footer .pdv-table-reserve {
  border-color: #f4c35c !important;
  background: #fff8e7 !important;
  color: #9a6500 !important;
}

.pdv-table-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdv-table-empty { grid-column: 1 / -1; min-height: 150px; }
.pdv-table-empty > div {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
}

@media (max-width: 1280px) {
  .pdv-tables-summary { grid-template-columns: repeat(3, minmax(120px, 1fr)); }
  .pdv-table-status-filters { width: 100%; order: 5; margin-left: 0; }
}

@media (max-width: 680px) {
  .pdv-tablebar form,
  .pdv-tablebar label { width: 100%; min-width: 0; }
  .pdv-table-status-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pdv-tables-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pdv-table-summary.valor { grid-column: 1 / -1; }
  .pdv-tables-panel { padding: 12px !important; }
}

.topbar .admin-install-button {
  width: auto;
  min-width: 48px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 0 15px;
  background: #fff7ed;
  color: #c2410c;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(234, 88, 12, .1);
}

.topbar .admin-install-button:hover {
  border-color: #fb923c;
  background: #ffedd5;
  color: #9a3412;
}

.topbar .admin-install-button[hidden] {
  display: none !important;
}

.admin-install-button .icon {
  width: 17px;
  height: 17px;
}

.admin-install-dialog {
  width: min(500px, calc(100% - 28px));
  max-width: none;
  border: 0;
  border-radius: 20px;
  padding: 0;
  color: #172033;
  background: transparent;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .3);
}

.admin-install-dialog::backdrop {
  background: rgba(15, 23, 42, .64);
  backdrop-filter: blur(3px);
}

.admin-install-dialog > article {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #fff;
}

.admin-install-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 18px;
  border-bottom: 1px solid #e2e8f0;
}

.admin-install-dialog header > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.admin-install-dialog header img {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 12px;
}

.admin-install-dialog header span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.admin-install-dialog header small {
  color: #f97316;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.admin-install-dialog header strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-install-dialog header button {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  cursor: pointer;
  font-size: 24px;
}

.admin-install-content {
  padding: 19px 20px;
  color: #475569;
  font-size: 13px;
  line-height: 1.6;
}

.admin-install-content > b {
  color: #172033;
}

.admin-install-content p {
  margin: 8px 0 0;
}

.admin-install-content ol {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 22px;
}

.admin-install-dialog footer {
  display: flex;
  justify-content: flex-end;
  padding: 12px 18px 17px;
}

.admin-install-dialog footer button {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  padding: 0 18px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

@media (max-width: 760px) {
  .topbar .admin-install-button {
    width: 46px;
    min-width: 46px;
    padding: 0;
  }

  .admin-install-button span {
    display: none;
  }
}

@media (display-mode: standalone) {
  body {
    padding-top: env(safe-area-inset-top);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
  }
}

.pdv-mini-card {
  cursor: pointer;
}

.pdv-mini-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .14);
}

.order-detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.order-detail-heading > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.order-detail-heading small,
.order-detail-heading span {
  color: #64748b;
}

.order-detail-heading strong {
  color: #172033;
  font-size: 20px;
}

.order-detail-heading nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-detail-heading nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.order-detail-heading .icon,
.order-detail-status .icon,
.order-detail + h2 + .table-wrap + p .icon {
  width: 17px;
  height: 17px;
}

.order-detail-status {
  display: grid;
  grid-template-columns: minmax(220px, 380px) auto;
  align-items: end;
  justify-content: start;
  gap: 12px;
  margin: 8px 0;
  border-radius: 12px;
  padding: 14px;
  background: #f8fafc;
}

.order-detail-status select {
  min-height: 44px;
}

.order-detail-status button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 10px;
  padding: 0 18px;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.order-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.order-detail-grid p {
  display: grid;
  gap: 5px;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  padding: 12px;
  background: #fff;
}

.order-detail-grid p.wide {
  grid-column: span 2;
}

.order-detail-grid p strong {
  color: #64748b;
  font-size: 10px;
  text-transform: uppercase;
}

.order-detail-grid p span {
  overflow-wrap: anywhere;
  color: #172033;
  font-weight: 800;
}

@media (max-width: 760px) {
  .order-detail-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .order-detail-heading nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .order-detail-heading nav a {
    justify-content: center;
  }

  .order-detail-status {
    grid-template-columns: 1fr;
  }

  .order-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-detail-grid p.wide {
    grid-column: 1 / -1;
  }
}

/* Acao explicita de alteracao nos cards de pedidos do delivery. */
.page-pdv .pdv-delivery-receiving .pdv-mini-board {
  grid-auto-rows: max-content !important;
  align-content: start !important;
  align-items: start !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.page-pdv .pdv-delivery-receiving .pdv-mini-card {
  grid-template-rows: auto auto !important;
  width: 100%;
  height: auto !important;
  min-height: max-content !important;
  max-height: none !important;
  min-width: 0;
  align-self: start;
  overflow: visible !important;
  box-sizing: border-box;
  cursor: default;
}

.page-pdv .pdv-delivery-receiving .pdv-mini-card:hover {
  transform: none;
}

.page-pdv .pdv-delivery-receiving .pdv-mini-card-view {
  min-width: 0;
  display: grid;
  grid-template-rows: repeat(5, minmax(min-content, auto));
  gap: 5px;
  height: auto;
  overflow: visible;
  color: inherit;
  text-decoration: none;
}

.page-pdv .pdv-delivery-receiving .pdv-mini-card-view:hover .pdv-card-customer strong,
.page-pdv .pdv-delivery-receiving .pdv-mini-card-view:focus-visible .pdv-card-customer strong {
  color: #c2410c !important;
}

.page-pdv .pdv-delivery-receiving .pdv-card-customer {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-pdv .pdv-delivery-receiving .pdv-card-customer > .icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: #f97316;
}

.page-pdv .pdv-delivery-receiving .pdv-card-customer > span {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.page-pdv .pdv-delivery-receiving .pdv-card-customer i {
  color: #64748b;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.page-pdv .pdv-delivery-receiving .pdv-card-customer strong {
  min-width: 0;
  padding-right: 0 !important;
  overflow-wrap: anywhere;
}

.page-pdv .pdv-delivery-receiving .pdv-mini-card-view > span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #475569 !important;
  font-size: 11px !important;
}

.page-pdv .pdv-delivery-receiving .pdv-mini-card .pdv-delivery-badge {
  position: static !important;
  inset: auto !important;
  justify-self: start;
  max-width: 100%;
  min-height: 26px;
  box-sizing: border-box;
  margin: 0;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 4px 8px !important;
  background: #fff7ed !important;
  color: #c2410c !important;
}

.page-pdv .pdv-delivery-receiving .pdv-mini-card .pdv-delivery-badge.retirada {
  border-color: #bfdbfe;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
}

.page-pdv .pdv-delivery-receiving .pdv-mini-card .pdv-delivery-badge.mesa {
  border-color: #99f6e4;
  background: #f0fdfa !important;
  color: #0f766e !important;
}

.page-pdv .pdv-delivery-receiving .pdv-mini-card .pdv-delivery-badge .icon {
  width: 16px !important;
  height: 16px !important;
}

.page-pdv .pdv-delivery-receiving .pdv-mini-card-actions {
  min-width: 0;
  display: flex;
  margin-top: 0;
  padding-top: 7px;
  border-top: 1px solid #e5e7eb;
}

.page-pdv .pdv-delivery-receiving .pdv-mini-card-actions a {
  width: 100%;
  max-width: 100%;
  min-height: 32px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 5px 10px;
  background: #fff7ed;
  color: #c2410c;
  text-decoration: none;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.page-pdv .pdv-delivery-receiving .pdv-mini-card-actions a:hover,
.page-pdv .pdv-delivery-receiving .pdv-mini-card-actions a:focus-visible {
  border-color: #fb923c;
  background: #ffedd5;
  color: #9a3412;
}

.page-pdv .pdv-delivery-receiving .pdv-mini-card-actions .icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  .page-pdv .pdv-delivery-receiving .pdv-mini-board {
    min-width: 0 !important;
    padding-inline: 6px !important;
  }

  .page-pdv .pdv-delivery-receiving .pdv-mini-card {
    padding: 9px !important;
  }

  .page-pdv .pdv-delivery-receiving .pdv-mini-card-actions a {
    min-height: 36px;
    white-space: normal;
  }
}


/* Novo pedido do PDV: layout móvel sem cortes e com áreas próprias para toque. */
@media (max-width: 760px) {
  .pdv-new-sale-modal {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    padding: 0;
  }

  .pdv-new-sale {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    border: 0;
    border-radius: 0;
  }

  .pdv-new-sale-header {
    position: relative;
    top: auto;
    min-height: 58px;
    padding: max(8px, env(safe-area-inset-top)) 10px 8px;
    gap: 8px;
  }

  .pdv-new-sale-header > a {
    width: 44px;
    height: 44px;
  }

  .pdv-new-sale > form {
    height: auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .pdv-new-sale-layout {
    width: 100%;
    height: auto;
    min-height: 100%;
    display: flex;
    flex-direction: column;
  }

  .pdv-new-categories {
    position: sticky;
    top: 0;
    z-index: 7;
    width: 100%;
    flex: 0 0 auto;
  }

  .pdv-new-categories nav {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    scrollbar-width: thin;
    overscroll-behavior-x: contain;
  }

  .pdv-new-categories nav button {
    min-height: 44px;
  }

  .pdv-new-catalog {
    width: 100%;
    min-height: 0;
    overflow: visible;
    display: block;
    flex: 0 0 auto;
  }

  .pdv-new-search {
    position: sticky;
    top: 60px;
    z-index: 6;
    min-width: 0;
    padding: 8px 10px;
  }

  .pdv-new-search label {
    min-height: 46px;
  }

  .pdv-new-search input,
  .pdv-new-customer input,
  .pdv-new-customer select,
  .pdv-new-customer textarea,
  .pdv-customize-note input {
    font-size: 16px;
  }

  .pdv-new-products {
    width: 100%;
    overflow: visible;
  }

  .pdv-new-product footer button,
  .pdv-new-qty button,
  .pdv-new-remove {
    min-width: 40px;
    min-height: 40px;
  }

  .pdv-new-cart {
    width: 100%;
    min-height: 0;
    overflow: visible;
    flex: 0 0 auto;
  }

  .pdv-new-cart-list {
    width: 100%;
    max-height: none;
    overflow: visible;
  }

  .pdv-new-customer input,
  .pdv-new-customer select {
    min-height: 44px;
    height: 44px;
  }

  .pdv-new-customer textarea {
    min-height: 72px;
  }

  .pdv-new-cart-total {
    bottom: env(safe-area-inset-bottom);
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .pdv-new-cart-total > button {
    min-height: 50px;
    font-size: 14px;
  }

  .pdv-product-customizer {
    height: 100vh;
    height: 100dvh;
  }

  .pdv-product-customizer > article {
    max-height: calc(100dvh - max(8px, env(safe-area-inset-top)));
  }

  .pdv-product-customizer > article > footer {
    padding-bottom: max(13px, env(safe-area-inset-bottom));
  }

  .pdv-product-customizer > article > footer button {
    min-height: 46px;
  }
}

@media (max-width: 520px) {
  .pdv-new-products,
  .pdv-new-fields,
  .pdv-new-delivery-fields {
    grid-template-columns: 1fr;
  }

  .pdv-new-delivery-fields > label:first-child {
    grid-column: auto;
  }

  .pdv-new-change {
    max-width: none;
  }
}

@media (max-width: 380px) {
  .pdv-new-sale-header small {
    display: none;
  }

  .pdv-new-sale-header strong {
    font-size: 16px;
  }

  .pdv-new-product {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .pdv-new-product > img {
    width: 64px;
    height: 64px;
  }

  .pdv-new-cart-row {
    grid-template-columns: minmax(0, 1fr) auto 40px;
  }

  .pdv-new-cart-row > div:first-child {
    grid-column: 1 / -1;
  }
}

/* Novo pedido: distribui melhor a coluna reservada ao carrinho e aos dados. */
@media (min-width: 761px) {
  .pdv-new-cart {
    grid-template-rows: 66px minmax(96px, 22vh) minmax(0, 1fr) auto;
    align-content: stretch;
  }

  .pdv-new-cart:has(.pdv-new-cart-empty) {
    grid-template-rows: 66px 112px minmax(0, 1fr) auto;
  }

  .pdv-new-cart-list {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
  }

  .pdv-new-cart-empty {
    min-height: 100%;
    padding: 12px;
  }

  .pdv-new-customer {
    height: 100%;
    min-height: 0;
    max-height: none;
    align-content: start;
    overflow-y: auto;
    padding-block: 12px;
  }
}

/* Mantém a versão moderna acima de personalizações legadas do PDV. */
.page-pdv .pdv-top-mesas,
.page-pdv .pdv-top-mesas:hover {
  border: 0 !important;
  background: var(--brand) !important;
  color: #fff !important;
}

.page-pdv .pdv-table-card.reservado .pdv-table-body {
  border-color: #fde68a !important;
  background: #fffbeb !important;
  color: #854d0e !important;
}

.page-pdv .pdv-table-card.reservado {
  border-color: var(--line) !important;
  border-left-color: #f59e0b !important;
  box-shadow: var(--shadow-sm) !important;
}

/* Cabeçalho do PDV: ícones reais no lugar dos círculos decorativos antigos. */
.page-pdv .pdv-delivery-receiving .pdv-top .pdv-top-mesas {
  min-width: 96px !important;
  min-height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  margin: 0 !important;
  padding: 0 13px !important;
  border-radius: 10px !important;
  background: var(--brand) !important;
  color: #fff !important;
  font-size: 12px !important;
  line-height: 1 !important;
}

.page-pdv .pdv-delivery-receiving .pdv-top .pdv-top-mesas::before {
  content: none !important;
  display: none !important;
  background: none !important;
}

.page-pdv .pdv-delivery-receiving .pdv-top .pdv-top-mesas .icon,
.page-pdv .pdv-delivery-receiving .pdv-top .pdv-top-today .icon,
.page-pdv .pdv-delivery-receiving .pdv-store-toggle .icon {
  width: 17px !important;
  height: 17px !important;
  flex: 0 0 17px;
}

.page-pdv .pdv-delivery-receiving .pdv-top .pdv-top-today {
  gap: 7px !important;
  min-width: 78px !important;
  padding: 0 11px !important;
  color: #334155 !important;
}

.page-pdv .pdv-delivery-receiving .pdv-top .pdv-top-today::before {
  content: none !important;
  display: none !important;
  background: none !important;
}

.page-pdv .pdv-delivery-receiving .pdv-top .pdv-top-today span,
.page-pdv .pdv-delivery-receiving .pdv-store-toggle-label {
  width: auto !important;
  height: auto !important;
  display: inline !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  color: inherit !important;
  font-size: inherit !important;
  line-height: 1 !important;
}

.page-pdv .pdv-delivery-receiving .pdv-store-toggle {
  min-width: 116px !important;
  gap: 7px !important;
  border-radius: 10px !important;
}

.page-pdv .pdv-delivery-receiving .pdv-store-toggle.online {
  background: #dcfce7 !important;
  color: #15803d !important;
}

.page-pdv .pdv-delivery-receiving .pdv-store-toggle.offline {
  background: #fee2e2 !important;
  color: #b91c1c !important;
}

@media (max-width: 760px) {
  .page-pdv .pdv-tables-panel {
    height: auto !important;
    min-height: calc(100dvh - 250px);
    overflow: visible !important;
  }
}
.order-origin-badge{display:inline-flex;align-items:center;max-width:100%;padding:3px 8px;margin:3px 0;border:1px solid #cbd5e1;border-radius:6px;background:#f1f5f9;color:#475569;font-size:11px;font-weight:600;line-height:1.4;white-space:normal;vertical-align:middle}
.order-origin-badge.origin-online{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}
.order-origin-badge.origin-pdv_manual{background:#fff7ed;border-color:#fed7aa;color:#9a3412}
.order-origin-badge.origin-pdv_mesa{background:#f5f3ff;border-color:#ddd6fe;color:#6d28d9}
.pdv-order-origin-summary{padding:8px 18px;color:#64748b;font-size:12px}
.page-pdv .pdv-delivery-receiving .pdv-mini-card-view > .order-origin-badge{justify-self:start;text-decoration:none;line-height:1.4}
.page-pdv .pdv-delivery-receiving .pdv-mini-card-view > .origin-online{color:#1d4ed8!important}
.page-pdv .pdv-delivery-receiving .pdv-mini-card-view > .origin-pdv_manual{color:#9a3412!important}
.page-pdv .pdv-delivery-receiving .pdv-mini-card-view > .origin-pdv_mesa{color:#6d28d9!important}
.user-settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  margin: 0 0 20px;
  background: #fff;
  border: 1px solid #dce5ef;
  border-radius: 14px;
}
.user-settings-tabs a {
  display: block;
  padding: 12px 18px;
  border-radius: 9px;
  color: #42536b;
  font-weight: 700;
  text-decoration: none;
}
.user-settings-tabs a:hover { background: #fff3e9; color: #bc4906; }
.user-settings-tabs a.active { background: #f97316; color: #fff; }
.user-settings-tabs a:focus-visible { outline: 3px solid #263b56; outline-offset: 2px; }
@media (max-width: 600px) {
  .user-settings-tabs a { flex: 1 1 42%; padding: 11px 8px; text-align: center; font-size: 13px; }
}
