:root {
  --azul: #000B8C;
  --amarelo: #FFC629;
  --crema: #FEF0C7;
  --laranja: #FF6100;
  --cinza-bg: #F5F6FA;
  --cinza-texto: #6B7280;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Inter, Arial, sans-serif;
}


body {
  display: flex;
  height: 100vh;
  background: var(--cinza-bg);
}

/* SIDEBAR */
.sidebar {
  width: 90px;
  background: #fff;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
}

.sidebar .logo {
  width: 56px;
  height: 56px;
  border-radius: 0;
  background: url('/assets/img/logo1.png') center center / contain no-repeat;
  border: 0;
  box-shadow: none;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
}

.menu a {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cinza-texto);
  text-decoration: none;
  transition: all .2s ease;
  position: relative;
}

.menu-delivery-badge{
  position:absolute;
  top:-6px;
  right:-6px;

  min-width:20px;
  height:20px;
  padding:0 6px;

  border-radius:999px;
  background:#ef4444;
  color:#fff;

  font-size:11px;
  font-weight:800;
  line-height:20px;
  text-align:center;

  border:2px solid #fff;

  display:flex;
  align-items:center;
  justify-content:center;

  box-shadow:
    0 6px 16px rgba(239,68,68,.35),
    0 0 0 0 rgba(239,68,68,.5);

  animation: deliveryBadgePulse 2s infinite;
}

@keyframes deliveryBadgePulse{
  0%{
    transform:scale(1);
    box-shadow:
      0 6px 16px rgba(239,68,68,.35),
      0 0 0 0 rgba(239,68,68,.4);
  }

  70%{
    transform:scale(1.05);
    box-shadow:
      0 6px 16px rgba(239,68,68,.35),
      0 0 0 10px rgba(239,68,68,0);
  }

  100%{
    transform:scale(1);
    box-shadow:
      0 6px 16px rgba(239,68,68,.35),
      0 0 0 0 rgba(239,68,68,0);
  }
}
.menu a.active,
.menu a:hover {
  background: var(--azul);
  color: #fff;
}



.menu-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.menu-bottom a {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--azul);
  text-decoration: none;
  transition: all .2s ease;
}

.menu-bottom a:hover {
  background: var(--azul);
  color: #fff;
}


/* MAIN */
 .main {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}


/* TOPBAR */
.topbar {
  height: 70px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  border-bottom: 1px solid #e5e7eb;
}

.search {
  background: var(--cinza-bg);
  padding: 10px 15px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 320px;
  color: var(--cinza-texto);
}

.search input {
  border: none;
  background: none;
  outline: none;
  width: 100%;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--cinza-texto);
}


.top-actions i {
  font-size: 18px;
  cursor: pointer;
}

/* CONTENT */
.content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 10px 25px rgba(0,0,0,.04);
}

h1 {
  font-size: 22px;
  margin-bottom: 10px;
}

p {
  color: var(--cinza-texto);
}

/* ===============================
   AJUSTES / CONFIGURAÇÕES
================================ */
.btn-support{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:12px;
  background:var(--cinza-bg);
  color:#111827;
  text-decoration:none;
  font-size:13px;
  transition:all .2s ease;
}
.btn-support:hover{ transform: translateY(-1px); }

.settings-wrap{ display:flex; flex-direction:column; gap:22px; }

.settings-section{
  background:#fff;
  border-radius:16px;
  padding:18px 18px 22px;
  box-shadow: 0 10px 25px rgba(0,0,0,.04);
}

.settings-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:14px;
}
.settings-section-head h2{
  font-size:16px;
  font-weight:700;
  color:#111827;
}

.settings-badge{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background:#FFE7EC;
  color:#C2185B;
  font-weight:600;
}


.settings-grid{
  display:grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap:14px;
}

.settings-tile{
  background:#fff;
  border:1px solid #eef0f4;
  border-radius:14px;
  min-height:140px;
  padding:16px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-decoration:none;
  color:#111827;
  box-shadow: 0 10px 25px rgba(0,0,0,.04);
  transition: transform .15s ease, box-shadow .15s ease;
}
.settings-tile:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,.06);
}

.settings-ico{
  width:62px;
  height:62px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--azul);
  background: #F2F6FF;
}
.settings-ico i{ font-size:28px; }

.settings-label{
  font-size:13px;
  font-weight:600;
  color:#111827;
}

@media (max-width: 1200px){
  .settings-grid{ grid-template-columns: repeat(4, minmax(140px, 1fr)); }
}
@media (max-width: 900px){
  .settings-grid{ grid-template-columns: repeat(2, minmax(140px, 1fr)); }
}

/* ===============================
   PDV
================================ */

.pdv {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  height: calc(100vh - 90px);
}

/* COLUNA PRODUTOS */
.pdv-produtos {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  overflow-y: auto;
}

.pdv-topo {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 15px;
}

.pdv-topo h1 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 2px;
}



.pdv-filtros {
  display: flex;
  gap: 13px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 8px;
  padding-top: 8px;
}

.filtro {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 92px;
  padding: 0;
}

.filtro.ativo {
  color: #111827;
}

.filtro .cat-img {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid #23B763;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #111827;
}

.filtro.ativo .cat-img {
  border-color: #2563EB;
  box-shadow: 0 10px 22px rgba(37,99,235,0.22);
}

.filtro .cat-nome {
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #111827;
  opacity: 0.9;
}
.cat-img--all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: inherit;
  overflow: hidden;
}

.cat-img--all img {
  width: 68%;
  height: 68%;
  object-fit: contain;
  display: block;
}

.cat-img--placeholder {
  background: #F3F4F6;
}

/* GRID DE PRODUTOS */
.produtos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  align-content: start;
  align-items: start;
  grid-auto-rows: max-content;
}

.produto {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: 0.2s;
  align-self: start;
}

.produto:hover {
  background: #EFF6FF;
  border-color: #2563EB;
}

.produto .nome {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

.produto-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
  background: #F3F4F6;
}

.produto-thumb--placeholder {
  width: 100%;
  height: 120px;
  border-radius: 10px;
  margin-bottom: 10px;
  background: #F3F4F6;
  position: relative;
}

.produto-thumb--placeholder:after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(243,244,246,1) 0%, rgba(229,231,235,1) 50%, rgba(243,244,246,1) 100%);
  opacity: .5;
}

.produto .preco {
  font-weight: 600;
  color: #2563EB;
  display: block;
  margin-top: 8px;
}

.page-pdv .produto .nome {
  min-height: 34px;
}

/* ===============================
   PDV - POLIMENTO VISUAL (CATEGORIAS / PRODUTOS / DETALHES)
   (mantém compatível com o layout atual)
================================ */

/* Categorias (ícones maiores + hover mais "premium") */


/* ===============================
   PDV - TELA CAIXA FECHADO
================================ */
.page-pdv .cx-closed-screen{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.page-pdv .cx-closed-text h3{
  margin:0 0 6px;
  font-size:18px;
  color:#111827;
}

.page-pdv .cx-closed-text p{
  margin:0;
  color:var(--cinza-texto);
}

.page-pdv .cx-closed-hint{
  display:block;
  margin-top:10px;
  color:#9CA3AF;
  font-size:12px;
}

.page-pdv .cx-closed-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.page-pdv .cx-money{
  display:flex;
  align-items:center;
  gap:10px;
  height:42px;
  border:1px solid #E5E7EB;
  background:#fff;
  border-radius:12px;
  padding:0 12px;
  min-width:220px;
}

.page-pdv .cx-money-prefix{
  font-weight:900;
  color:#111827;
}

.page-pdv .cx-open-input{
  border:0;
  outline:none;
  width:100%;
  font-weight:800;
  background:transparent;
}

.page-pdv .cx-open-btn{
  min-width:220px;
  height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:0 14px;
  border-radius:12px;
}

@media (max-width: 820px){
  .page-pdv .cx-closed-screen{ flex-direction:column; align-items:flex-start; }
  .page-pdv .cx-closed-actions{ width:100%; justify-content:flex-start; }
  .page-pdv .cx-money, .page-pdv .cx-open-btn{ width:100%; min-width:0; }
}

.page-pdv .pdv-filtros .filtro:hover{ transform: translateY(-1px); }

.page-pdv .pdv-filtros .filtro{
  transition: transform .15s ease;
}

.page-pdv .pdv-filtros .filtro .cat-img{
  width: 82px;
  height: 82px;
  border-width: 3px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.page-pdv .pdv-filtros .filtro:hover .cat-img{
  transform: translateY(-4px) scale(1.07);
  box-shadow: 0 14px 28px rgba(17,24,39,.10);
}

.page-pdv .pdv-filtros .filtro:hover .cat-nome{
  opacity: 1;
}

/* Produtos (hover com elevação + sombra suave) */
.page-pdv .produtos-grid .produto{
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
  will-change: transform;
}

.page-pdv .produtos-grid .produto:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 35px rgba(17,24,39,.08);
  background: #F8FAFF;
}

.page-pdv .produtos-grid .produto:active{
  transform: translateY(-1px);
}

/* Detalhes do pedido (alinhamento e acabamento) */
.page-pdv .pdv-carrinho{
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 18px 40px rgba(17,24,39,.06);
}

.page-pdv .pdv-carrinho h2{
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .2px;
  margin: 2px 0 12px;
}

.page-pdv .pdv-pessoa{
  background: #F8FAFC;
  border: 1px solid #EEF2F7;
  border-radius: 16px;
  padding: 6px;
}

.page-pdv .linha-pessoa{
  display: grid;
  grid-template-columns: 92px 1fr 34px;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
}

.page-pdv .linha-pessoa + .linha-pessoa{
  margin-top: 4px;
}

.page-pdv .linha-pessoa:hover{
  background: #EEF2FF;
}

.page-pdv .linha-pessoa .label{
  font-weight: 800;
  color: #6B7280;
}

.page-pdv .linha-pessoa strong{
  justify-self: end;
  text-align: right;
  font-weight: 900;
  color: #111827;
}

.page-pdv .linha-pessoa i{
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  color: #111827;
}

/* COLUNA CARRINHO */
.pdv-carrinho {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.pdv-carrinho h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

.itens {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 15px;
}

/* RESUMO */
.resumo {
  border-top: 1px solid #E5E7EB;
  padding-top: 10px;
  
}

.resumo .linha {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
}

/* FINALIZAR */
.btn-finalizar {
  background: #22C55E;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
}


/* ===============================
   PDV - Itens do Carrinho (PROFISSIONAL)
================================ */


.page-pdv .item{
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 2px 1px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease, border-color .14s ease;
}

.page-pdv .item:hover{
  background: #F8FAFF;
  border-color: #E6EAF5;
  box-shadow: 0 14px 26px rgba(17,24,39,.06);
  transform: translateY(-1px);
}

.page-pdv .item .item-nome{
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.page-pdv .item .item-nome .item-titulo{
  font-weight: 700;
  color: #111827;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-pdv .item .item-sub{
  font-size: 12px;
  color: #6B7280;
  margin-top: 2px;
}

.page-pdv .item-controles{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F8FAFC;
  border: 1px solid #EEF2F7;
  padding: 6px;
  border-radius: 14px;
}

.page-pdv .item-subtotal{
  text-align: right;
  font-weight: 900;
  color: #111827;
  font-variant-numeric: tabular-nums;
  min-width: 96px;
}

/* Controles menores (mais alinhado) */
.page-pdv .item-controles.item-controles--mini{
  padding: 4px;
  gap: 5px;
  border-radius: 12px;
}

/* Botões ainda menores no carrinho (mais alinhado) */
.page-pdv .item-controles.item-controles--mini .btn-qtd{
  width: 24px;
  height: 24px;
  border-radius: 9px;
}

.page-pdv .item-controles.item-controles--mini .item-qtd{
  width: 18px;
  font-size: 13px;
}

.page-pdv .item-controles .btn-qtd{
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid #E5E7EB;
  background: #FFFFFF;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.page-pdv .item-controles .btn-qtd:hover{
  background: #EEF2FF;
  box-shadow: 0 10px 18px rgba(17,24,39,.08);
  transform: translateY(-1px);
}

.page-pdv .item-controles .item-qtd{
  width: 20px;
  text-align: center;
  font-weight: 900;
  color: #111827;
  font-variant-numeric: tabular-nums;
}

.page-pdv .item-controles .item-qtd-input{
  width: 42px;
  height: 24px;
  padding: 0 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  text-align: center;
  font-weight: 900;
  color: #111827;
  font-variant-numeric: tabular-nums;
  outline: none;
  cursor: text;
}

.page-pdv .item-controles .item-qtd-input:focus{
  background: #FFFFFF;
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.page-pdv .item-controles.item-controles--mini .item-qtd-input{
  width: 42px;
  font-size: 13px;
}

.page-pdv .item-qtd-input::-webkit-outer-spin-button,
.page-pdv .item-qtd-input::-webkit-inner-spin-button{
  -webkit-appearance: none;
  margin: 0;
}

.page-pdv .item-qtd-input{
  -moz-appearance: textfield;
}

.page-pdv .item-controles .btn-remover{
  width: 30px;
  height: 30px;
  border-radius: 12px;
  border: 1px solid rgba(239,68,68,.35);
  background: rgba(239,68,68,.10);
  color: #B91C1C;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.page-pdv .item-controles .btn-remover:hover{
  background: rgba(239,68,68,.16);
  box-shadow: 0 12px 22px rgba(239,68,68,.18);
  transform: translateY(-1px);
}

/* Empty state do carrinho */
.page-pdv .itens .carrinho-vazio{
  color: #6B7280;
  padding: 8px 4px;
}
/* ===============================
   MODAL
================================ */

/* ===== MODAIS (corrige compatibilidade com o HTML atual: <div class="modal"><div class="modal-box">...) ===== */
.modal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;                 /* fechado por padrão */
  align-items: center;
  justify-content: center;
  padding: 20px;                 /* evita cortar nas bordas */
  z-index: 999;
}

.modal .modal-box{
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.modal .modal-box-lg{
  max-width: 920px;
}

/* (opcional, mas ajuda em telas pequenas) */
@media (max-width: 520px){
  .modal{ padding: 12px; }
  .modal .modal-box{ border-radius: 14px; padding: 16px; }
}
.modal h3 {
  margin-bottom: 10px;
}

.modal input {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #E5E7EB;
  margin-bottom: 15px;
}

.modal-acoes {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.btn-cancelar,
.btn-confirmar {
  flex: 1;
  padding: 8px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
}

.btn-cancelar {
  background: #E5E7EB;
}

.btn-confirmar {
  background: #000B8C;
  color: #fff;
}

/* ===============================
   MODAL - PERCENTUAIS
================================ */

.percentuais {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.percentuais button {
  padding: 8px;
  border-radius: 10px;
  border: none;
  background: #F3F4F6;
  cursor: pointer;
  font-size: 13px;
}

.percentuais button:hover {
  background: #000B8C;
  color: #fff;
}

/* ===============================
   RESUMO PDV
================================ */

.resumo .linha {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 14px;
}

.resumo .desconto {
  color: #DC2626;
}

.resumo .acrescimo {
  color: #16A34A;
}


/* ===============================
   CLIENTE / VENDEDOR NO PDV
================================ */

.pdv-pessoa {
  background: #F9FAFB;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 15px;
}

.linha-pessoa {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 8px 6px;
  border-radius: 10px;
}

.linha-pessoa:hover {
  background: #E5E7EB;
}

.linha-pessoa .label {
  font-size: 12px;
  color: #6B7280;
}

.linha-pessoa strong {
  font-size: 14px;
}

.linha-pessoa i {
  color: #6B7280;
}

/* ===============================
   MODAL CLIENTE / VENDEDOR
================================ */

.lista-pessoas {
  max-height: 220px;
  overflow-y: auto;
  margin: 10px 0;
  border-radius: 10px;
  background: #F9FAFB;
  padding: 6px;
}


.pessoa-item {
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.pessoa-item:hover,
.pessoa-item.ativo {
  background: #000B8C;
  color: #fff;
}

.btn-secundario {
  background: #F3F4F6;
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
}

.btn-secundario:hover {
  background: #E5E7EB;
}

/* ===============================
   CADASTRO CLIENTE
================================ */

.modal-cliente {
  max-width: 520px;
}

.modal-cliente h4 {
  font-size: 14px;
  margin: 10px 0 6px;
  color: #374151;
}

.grupo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.grupo input {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #E5E7EB;
  font-size: 14px;
}

.btn-salvar{
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 14px 16px;
  font-weight: 800;
  cursor: pointer;
  background: var(--amarelo);
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
}


/* ===== PDV sem scroll da página ===== */
html, body {
  height: 100%;
}

body { overflow: auto; } /* padrão do sistema */
.page-pdv { overflow: hidden; } /* só PDV sem scroll */
/* Vendas em aberto: trava o scroll do body e deixa só o miolo rolar */
.page-vendas { overflow: hidden; }


/* Ajuste o main para ocupar a tela toda ao lado da sidebar */
.main { min-height: 100vh; }           /* padrão */
.page-pdv .main { height: 100vh; overflow: hidden; /* só PDV */
  display: flex;
  flex-direction: column;
}

.page-vendas .main {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Topbar fixa e conteúdo ocupa o resto */
.topbar {
  flex: 0 0 auto;
}

.content {
  flex: 1 1 auto;
  overflow: auto; /* padrão: rola o miolo */
}

.page-pdv .content {
  overflow: hidden; /* só PDV: scroll fica nos painéis internos */
}

/* PDV ocupa 100% do espaço útil */
.pdv {
  height: 100%;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 460px; /* ajuste a largura do carrinho se quiser */
  gap: 16px;
}

/* Coluna de produtos: topo fixo + grid rolável */
.pdv-produtos {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pdv-topo {
  flex: 0 0 auto;
}


/* Coluna carrinho: cabeçalho + itens rolável + resumo/botões fixos */
.pdv-carrinho {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#listaItens,
.itens {
  flex: 1 1 auto;
  overflow: auto; /* rola só itens do carrinho */
  padding-right: 6px;
}

/* Resumo e botões sempre visíveis */
#resumoVenda,
.resumo {
  flex: 0 0 auto;
}

/* Botões (Salvar + Finalizar) sempre “colados” no rodapé do card */
.btn-salvar,
.btn-finalizar {
  flex: 0 0 auto;
}

/* ===== TOAST MENSAGENS PROFISSIONAIS ===== */

.toast-container{
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast{
  min-width: 260px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  animation: slideIn 0.25s ease forwards;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.toast-success{ background: #16a34a; }
.toast-error{ background: #dc2626; }
.toast-warning{ background: #f59e0b; color: #111827; }

.toast button{
  background: transparent;
  border: none;
  color: inherit;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
}

@keyframes slideIn{
  from{ transform: translateX(120%); opacity:0; }
  to{ transform: translateX(0); opacity:1; }
}

@keyframes fadeOut{
  to{ opacity:0; transform: translateX(120%); }
}

/* ===== Drawer Pagamento ===== */
#pgOverlay.drawer-overlay{
  position: fixed;
  inset: 0;
  background: rgba(17,24,39,.45);
  backdrop-filter: blur(2px);
  z-index: 9998;
}

#pgDrawer.drawer{
  position: fixed;
  top: 12px;
  right: 12px;
  height: calc(100vh - 24px);
  width: min(520px, 92vw);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0,0,0,.22);
  z-index: 9999;
  transform: translateX(120%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  will-change: transform;
}

#pgDrawer.drawer.open{
  transform: translateX(0);
}

#pgDrawer .drawer-header{
  padding: 18px 18px 12px;
  border-bottom: 1px solid #eef2f7;
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 12px;
}

#pgDrawer .drawer-header h3{
  margin:0;
  font-size: 20px;
  color:#111827;
}

#pgDrawer .drawer-header small{
  color:#6b7280;
  font-weight: 600;
}

#pgDrawer .drawer-close{
  border:0;
  background:#f3f4f6;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;
}

#pgDrawer .drawer-body{
  padding: 16px 18px;
  flex: 1 1 auto;
  overflow: auto;
}

.pg-forma-label{
  margin: 2px 0 8px;
  color:#6b7280;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.pg-forma-label--segunda{
  margin-top:14px;
}

.pg-dividir-wrap{
  margin-top:12px;
}

.pg-dividir-toggle{
  width:100%;
  border:1px solid #dbeafe;
  background:#eff6ff;
  color:#1d4ed8;
  padding:11px 12px;
  border-radius:14px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-weight:900;
  text-align:left;
}

.pg-dividir-toggle small{
  font-size:12px;
  color:#2563eb;
  font-weight:900;
}

.pg-dividir-toggle.ativo{
  background:#ecfdf5;
  border-color:#bbf7d0;
  color:#047857;
}

.pg-dividir-toggle.ativo small{
  color:#059669;
}

.pg-dividir-box{
  margin-top:10px;
  border:1px solid #eef2f7;
  background:#fafafa;
  border-radius:14px;
  padding:12px;
}

.pg-dividir-topo{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  align-items:stretch;
}

.pg-dividir-campo{
  min-width:0;
}

.pg-dividir-campo > label{
  display:block;
  font-size:13px;
  color:#6b7280;
  font-weight:800;
  margin-bottom:6px;
}

.pg-dividir-campo input{
  width:100%;
}

.pg-dividir-restante{
  height:100%;
  min-height:48px;
  margin-top:19px;
}

.pg-metodos-secundario{
  grid-template-columns:repeat(4, minmax(0, 1fr)) !important;
  gap:8px !important;
}

.pg-metodos-secundario .pg-metodo{
  min-height:40px;
  padding:10px 8px;
  border-radius:12px;
  font-size:14px;
}

@media (max-width: 640px){
  .pg-dividir-topo{
    grid-template-columns:1fr;
  }

  .pg-dividir-restante{
    margin-top:0;
  }

  .pg-metodos-secundario{
    grid-template-columns:1fr 1fr !important;
  }
}

.pg-dividir-box label{
  display:block;
  font-size:13px;
  color:#6b7280;
  font-weight:800;
  margin-bottom:6px;
}

.pg-dividir-box input{
  width:100%;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:12px 12px;
  font-size:16px;
  font-weight:800;
  outline:none;
  background:#fff;
}

.pg-dividir-restante{
  margin-top:10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  background:#fff;
  border:1px solid #eef2f7;
  border-radius:12px;
  padding:10px 12px;
}

.pg-dividir-restante span{
  color:#6b7280;
  font-weight:850;
  font-size:13px;
}

.pg-dividir-restante strong{
  color:#111827;
  font-weight:1000;
}

.pg-metodo{
  border: 1px solid #e5e7eb;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;
  background: #f3f4f6;
  color: #374151;
  letter-spacing: .2px;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .05s ease;
}

.pg-metodo:hover{
  background:#e5e7eb;
}

.pg-metodo:active{
  transform: translateY(1px);
}

.pg-metodo.ativo{
  background: #10b981;
  border-color:#10b981;
  color:#fff;
}

.pg-resumo{
  margin-top: 16px;
  border-top: 1px solid #eef2f7;
  padding-top: 14px;
}

.pg-linha{
  display:flex;
  justify-content: space-between;
  align-items:center;
  padding: 8px 0;
  color:#111827;
  font-weight: 700;
}

.pg-dinheiro{
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  background: #fafafa;
}

.pg-dinheiro label{
  display:block;
  font-size: 13px;
  color:#6b7280;
  font-weight: 800;
  margin-bottom: 6px;
}

.pg-dinheiro input{
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 12px;
  font-size: 16px;
  font-weight: 800;
  outline: none;
}

.pg-atalhos{
  margin-top: 10px;
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pg-chip{
  border: 0;
  background: #111827;
  color:#fff;
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
}

.drawer-footer{
  padding: 14px 18px;
  border-top: 1px solid #eef2f7;
  display:flex;
  gap: 10px;
}

.pg-btn{
  flex: 1;
  border: 0;
  border-radius: 14px;
  padding: 14px 14px;
  font-weight: 900;
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

.pg-btn-secondary{
  background: #e5e7eb;
  color:#111827;
}

.pg-btn-primary{
  background: #10b981;
  color:#fff;
}

.pdv-venda-header {
  background: var(--azul);
  color: #fff;
  padding: 14px 14px;
  border-radius: 14px;
  margin-bottom: 12px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, .18);
}

.pdv-venda-titulo {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .2px;
}

.pdv-venda-sub {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, .75);
  font-weight: 700;
}

/* ===== PDV: botões de ação (desconto/acréscimo/limpar) como ícones bonitos ===== */
.page-pdv .acoes{
  display: flex;
  gap: 10px;
  align-items: center;
}

.page-pdv .acoes .btn-acao{
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  outline: none;
  background: #F3F4F6;
  color: #111827;
  width: 42px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.15s ease;
  margin-bottom: 10px;
}

.page-pdv .acoes .btn-acao i{
  font-size: 16px;
  line-height: 1;
}

.page-pdv .acoes .btn-acao:hover{
  filter: brightness(0.97);
  transform: translateY(-1px);
}

.page-pdv .acoes .btn-acao:active{
  transform: translateY(0);
}

.page-pdv .acoes .btn-limpar{
  background: #FEE2E2;
  color: #991B1B;
}

/* ==============================
   PAGAMENTO - PAINEL LATERAL
============================== */

/* overlay (fundo escuro) */
.pg-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 99998;
}

/* painel direito */
.pg-drawer{
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;

  width: min(520px, 92vw);   /* ajuste se quiser mais largo */
  background: #fff;

  border-radius: 18px 0 0 18px;
  box-shadow: -10px 0 30px rgba(0,0,0,.18);

  transform: translateX(110%);
  transition: transform .22s ease;

  display: flex;
  flex-direction: column;

  z-index: 99999;
}

/* cabeçalho/rodapé fixos no painel */
.pg-drawer .drawer-header{
  flex: 0 0 auto;
  padding: 18px 18px 10px;
  border-bottom: 1px solid #e5e7eb;
}

.pg-drawer .drawer-body{
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px 18px;
}

.pg-drawer .drawer-footer{
  flex: 0 0 auto;
  padding: 12px 18px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

/* estado aberto */
.pg-overlay.open{
  opacity: 1;
  pointer-events: auto;
}
.pg-drawer.open{
  transform: translateX(0);
}

/* ================================
   PRODUTOS - Estilo da página
   ================================ */

.page-produtos .card {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.page-produtos .row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
}

.page-produtos .row>* {
  flex: 1;
  min-width: 180px;
}

.page-produtos label.muted {
  display: block;
  font-size: 12px;
  opacity: .75;
  margin-bottom: 6px;
}

.page-produtos input,
.page-produtos select,
.page-produtos textarea {
  width: 100%;
  height: 40px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, .12);
  background: #fff;
  outline: none;
}

.page-produtos textarea {
  height: auto;
  min-height: 90px;
  resize: vertical;
}

.page-produtos .btn {
  cursor: pointer;
  border: 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: #000B8C;
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1;
}

.page-produtos .btn2 {
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, .15);
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: #111;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1;
}

.page-produtos .top-actions .btn2 {
  gap: 8px;
  height: 40px;
}

.page-produtos .top-actions .btn2 i {
  font-size: 13px;
  line-height: 1;
}

.page-produtos .btnSmall {
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 13px;
}

.page-produtos .btnDanger {
  background: #ff5c5c;
  color: #111;
  border: 0;
}

.page-produtos table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 12px;
}

.page-produtos th,
.page-produtos td {
  padding: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.page-produtos th {
  font-size: 12px;
  opacity: .75;
  font-weight: 800;
}

.page-produtos .pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(0, 0, 0, .12);
}

.page-produtos .ok {
  border-color: rgba(0, 180, 90, .35);
  color: #0a7a43;
}

.page-produtos .off {
  border-color: rgba(255, 92, 92, .35);
  color: #b21c1c;
}

.page-produtos details {
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 14px;
  padding: 10px 12px;
  background: #f7f8fb;
}

.page-produtos summary {
  cursor: pointer;
  font-weight: 900;
}

.page-produtos .grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media(max-width:900px) {
  .page-produtos .grid2 {
    grid-template-columns: 1fr;
  }
}

/* Toast */
.page-produtos .toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: #111;
  color: #fff;
  padding: 12px 14px;
  border-radius: 12px;
  display: none;
  max-width: 360px;
  z-index: 9999;
}

.page-produtos .toast.show {
  display: block;
}

/* Modal */
.page-produtos .modal-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  padding: 18px;
  overflow: auto;
  z-index: 9999;
}

.page-produtos .modal-bg.is-open {
  display: block;
}

.page-produtos .modal-card {
  max-width: 760px;
  margin: 40px auto;
}

/* =========================================================
   PRODUTOS PAGE
========================================================= */

.page-produtos .page-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
}

.page-produtos .page-header h2{
  margin:0;
}

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

.page-produtos .filtros{
  margin-bottom:14px;
}

.page-produtos .filtros .row{
  align-items:end;
}

.page-produtos table td{
  vertical-align:top;
}

.page-produtos .produto-nome{
  font-weight:800;
}

.page-produtos .produto-desc{
  font-size:13px;
  opacity:.7;
}

.page-produtos .status-pill{
  padding:4px 10px;
  border-radius:20px;
  font-size:12px;
  font-weight:700;
}

.page-produtos .status-pill.ok{
  background:#e6f6ee;
  color:#0f7a4f;
}

.page-produtos .status-pill.off{
  background:#ffecec;
  color:#b42318;
}

/* =========================================================
   MODAIS
========================================================= */

.modal-card{
  max-width:980px;
}

.modal-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}

.modal-tabs{
  display:flex;
  gap:18px;
  margin-top:14px;
  border-bottom:1px solid rgba(0,0,0,.08);
  padding-bottom:10px;
}

.modal-tabs a{
  font-weight:800;
  text-decoration:none;
}

.modal-tabs span{
  opacity:.6;
  font-weight:700;
}

.modal-grid{
  margin-top:16px;
  display:grid;
  grid-template-columns:1.2fr 0.8fr;
  gap:18px;
}

.modal-footer{
  display:flex;
  gap:12px;
  justify-content:flex-end;
  margin-top:18px;
}

.modal-foto-box{
  border:2px dashed rgba(0,0,0,.12);
  border-radius:14px;
  padding:16px;
  text-align:center;
}

.modal-preview{
  height:160px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:10px;
}

.produtos-table {
  width:100%;
  border-collapse:collapse;
  font-size:14px;
}

.produtos-table thead tr{
  background:#eef1f5;
  text-transform:uppercase;
  font-size:12px;
  color:#6b7280;
}

.produtos-table th,
.produtos-table td{
  padding:12px 10px;
  border-bottom:1px solid #f0f0f0;
}

.produtos-table tbody tr:hover{
  background:#fafafa;
}

.produtos-table strong{
  font-weight:700;
}

/* ===============================
   CHECKBOX PRODUTOS - TAMANHO MENOR
==================================*/

.produtos-table input[type="checkbox"]{
  width:14px;
  height:14px;
  cursor:pointer;
}

/* centralizar melhor na célula */
.produtos-table td:first-child,
.produtos-table th:first-child{
  text-align:center;
  vertical-align:middle;
}

/* ===============================
   FAVORITO HEART
==================================*/

.heart-toggle{
  cursor:pointer;
  font-size:16px;
  transition:0.2s ease;
  color:#bbb;
}

.heart-toggle.active{
  color:var(--azul);
}

.heart-toggle:hover{
  transform:scale(1.15);
}

/* ===============================
   MENU ⋮ (Editar / Excluir / Duplicar)
==================================*/

.kebab-wrap{
  position:relative;
  display:inline-flex;
  justify-content:flex-end;
}

.kebab-menu{
  position:absolute;
  top:36px;
  right:0;
  min-width:150px;
  background:#2f2f35;
  border-radius:10px;
  padding:6px;
  box-shadow:0 10px 24px rgba(0,0,0,.18);
  display:none;
  z-index:50;
}

.kebab-wrap.is-open .kebab-menu{ display:block; }

.kebab-item{
  width:100%;
  text-align:left;
  background:transparent;
  border:0;
  color:#fff;
  padding:10px 12px;
  border-radius:8px;
  cursor:pointer;
  font-weight:700;
}

.kebab-item:hover{
  background:rgba(255,255,255,.08);
}
/* ================================
   CATEGORIAS (tela categorias.php)
================================ */
.page-categorias .cat-grid{
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  gap:18px;
}

.page-categorias .cat-card{
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 2px 10px rgba(0,0,0,.08);
  cursor:pointer;
  transition:.2s;
}

.page-categorias .cat-card:hover{
  transform:translateY(-3px);
  box-shadow:0 6px 14px rgba(0,0,0,.12);
}

.page-categorias .cat-img{
  height:150px;
  background:#f0f2f6;
  display:flex;
  align-items:center;
  justify-content:center;
}

.page-categorias .cat-img img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.page-categorias .cat-placeholder{
  opacity:.6;
  font-size:12px;
}

.page-categorias .cat-name{
  padding:14px;
  text-align:center;
  font-weight:700;
  color:#2b2f38;
}

@media (max-width:1400px){
  .page-categorias .cat-grid{ grid-template-columns:repeat(4, minmax(0, 1fr)); }
}
@media (max-width:1100px){
  .page-categorias .cat-grid{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
}
@media (max-width:768px){
  .page-categorias .cat-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
@media (max-width:480px){
  .page-categorias .cat-grid{ grid-template-columns:1fr; }
}

/* ================================
   MODAL (OVERLAY) - PADRÃO
   (usado por produtos e categorias)
================================ */
.modal-bg{
  position:fixed !important;
  inset:0 !important;
  background:rgba(0,0,0,.55) !important;
  display:none;
  align-items:center !important;
  justify-content:center !important;
  padding:18px !important;
  z-index:9999 !important;
}

.modal-bg.show{ display:flex !important; }

.modal-bg .modal-card{
  max-height:calc(100vh - 36px);
  overflow:auto;
}

/* ================================
   CATEGORIAS - MODAL (COMPLETAR ESTILO)
================================ */
.page-categorias #modalCategoria .modal-card{
  background:#fff;
  border-radius:14px;
  box-shadow:0 12px 30px rgba(0,0,0,.20);
}

.page-categorias #modalCategoria .modal-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  border-bottom:1px solid rgba(0,0,0,.06);
}

.page-categorias #modalCategoria .modal-footer{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding:14px 16px;
  border-top:1px solid rgba(0,0,0,.06);
  margin-top:14px;
}

.page-categorias #modalCategoria input,
.page-categorias #modalCategoria select,
.page-categorias #modalCategoria textarea{
  width:100%;
}

.page-categorias #modalCategoria .btn,
.page-categorias #modalCategoria .btn2{
  min-width:110px;
}
/* ================================
   CATEGORIAS - PADRÃO PRODUTOS (HEADER + FILTROS + BOTÕES)
   (aplica só dentro da página de categorias)
================================ */

/* Header igual Produtos */
.page-categorias .page-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin: 0 0 14px 0;
}

.page-categorias .page-header h2{
  margin:0;
  font-size:22px;
  font-weight:800;
}

.page-categorias .page-header .muted{
  margin-top:4px;
}

/* Área de ações do header */
.page-categorias .page-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

/* Card filtros igual Produtos */
.page-categorias .card.filtros{
  padding: 14px;
  margin-bottom: 14px;
}

.page-categorias .card.filtros .row{
  display:flex;
  gap:12px;
  align-items:end;
  flex-wrap:wrap;
}

.page-categorias .card.filtros label.muted{
  display: block;
  font-size: 12px;
  opacity: .75;
  margin-bottom: 6px;
}

.page-categorias .card.filtros input,
.page-categorias .card.filtros select{
  width: 100%;
  height: 40px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, .12);
  background: #fff;
  outline: none;
}

/* Botões (não força cor, só forma/consistência) */
.page-categorias .btn,
.page-categorias .btn2{
  cursor: pointer;
  border: 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: #0b2cff;
  color: #fff;
  font-weight: 700;
}

.page-categorias .btnSmall{
  height:34px;
  padding:0 10px;
  border-radius:10px;
}

/* Responsivo: filtros ficam bons */
@media (max-width: 680px){
  .page-categorias .page-header{
    flex-direction:column;
    align-items:flex-start;
  }
  .page-categorias .page-actions{
    width:100%;
  }
  .page-categorias .page-actions .btn,
  .page-categorias .page-actions .btn2{
    width:100%;
  }
  .page-categorias .card.filtros .row > div{
    width:100%;
  }
}

/* ================================
   CATEGORIAS - HERDAR VISUAL DO PRODUTOS (inputs/botoes/modal)
================================ */
.page-categorias label.muted {
  display: block;
  font-size: 12px;
  opacity: .75;
  margin-bottom: 6px;
  
}

.page-categorias input,
.page-categorias select,
.page-categorias textarea {
  width: 100%;
  height: 40px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, .12);
  background: #fff;
  outline: none;
}

.page-categorias textarea {
  height: auto;
  min-height: 90px;
  resize: vertical;
}

.page-categorias .btn {
  cursor: pointer;
  border: 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: #000B8C;
  color: #fff;
  font-weight: 700;
}

.page-categorias .btn2 {
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, .15);
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: #111;
  font-weight: 700;
}

.page-categorias .btnSmall {
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 13px;
}

/* Caixa da foto (igual Produtos) */
.page-categorias .modal-foto-box {
  border: 1px dashed rgba(0, 0, 0, .18);
  border-radius: 14px;
  background: #fafbfe;
}

.page-categorias .modal-preview {
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-width: 520px;
}

/* Footer do modal (igual Produtos) */
.page-categorias .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

/* ================================
   CATEGORIAS - MESMA PROPORÇÃO DO PRODUTOS
================================ */

/* largura do modal igual Produtos */
.page-categorias #modalNovoCategoria .modal-card {
  width: 100%;
  padding: 22px;
  border-radius: 18px;
}

/* header igual produtos */
.page-categorias #modalNovoCategoria .modal-header {
  padding-bottom: 18px;
}

/* aumentar espaçamento interno */
.page-categorias #modalNovoCategoria input {
  height: 46px;
  font-size: 14px;
}

/* caixa da foto maior (igual produtos) */
.page-categorias #modalNovoCategoria .modal-preview {
  min-height: 220px;
}

/* área da caixa */
.page-categorias #modalNovoCategoria .modal-foto-box {
  padding: 22px;
}

/* botões maiores como produtos */
.page-categorias #modalNovoCategoria .btn,
.page-categorias #modalNovoCategoria .btn2 {
  height: 44px;
  font-size: 14px;
}

/* TOAST PROFISSIONAL (slide-in) */
#toast.toast{
  position: fixed !important;
  right: 18px !important;
  bottom: 18px !important;

  max-width: 360px !important;
  width: max-content !important;
  min-width: 220px !important;

  padding: 12px 14px !important;
  border-radius: 12px !important;

  background: #111 !important;
  color: #fff !important;

  opacity: 0 !important;
  transform: translateX(18px) !important;  /* entra da direita */
  transition: transform .22s ease, opacity .22s ease !important;

  z-index: 10000 !important;
  pointer-events: none !important;

  display: none !important;               /* <- some totalmente quando não está em uso */
}

#toast.toast.show{
  display: block !important;
  opacity: 1 !important;
  transform: translateX(0) !important;
}

#toast.toast.success{ background:#1b7f3a !important; }
#toast.toast.error{ background:#c62828 !important; }
#toast.toast.info{ background:#111 !important; }

/* ===============================
   Modal Peso (produto pesável)
=============================== */
#modalPeso.modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.45);
  z-index: 9999;
}

#modalPeso .modal-box--peso{
  width: min(520px, calc(100vw - 28px));
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
  overflow: hidden;
}

#modalPeso .modal-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

#modalPeso .modal-head h3{
  margin: 0;
  font-size: 16px;
}

#modalPeso .modal-close{
  border: 0;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  opacity: .75;
}

#modalPeso .modal-body{
  padding: 14px 16px 6px;
  display: grid;
  gap: 12px;
}

#modalPeso .field span{
  display:block;
  font-size: 12px;
  opacity: .7;
  margin-bottom: 6px;
}

#modalPeso .field input{
  width: 100%;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 10px;
  padding: 12px 12px;
  outline: none;
  margin-bottom: 3px;
}

#modalPeso .field input:focus{
  border-color: rgba(0,0,0,.35);
}

#modalPeso .help{
  display:block;
  font-size: 11px;
  opacity: .65;
  margin-bottom: 5px;
}

#modalPeso .modal-actions{
  display:flex;
  gap: 10px;
  padding: 12px 16px 16px;
}

#modalPeso .btn{
  border: 0;
  border-radius: 10px;
  padding: 11px 12px;
  cursor: pointer;
  font-weight: 600;
}

#modalPeso .btn-sec{
  background: rgba(0,0,0,.08);
}

#modalPeso .btn-pri{
  background: var(--azul, #2563eb);
  color: #fff;
  flex: 1;
}

.btn-peso{ margin-right: 6px; }

/* ===============================
   PDV - AJUSTE CATEGORIAS COM SETAS SÓ EM TELAS MENORES
================================ */
.page-pdv .pdv-filtros-area{
  position: relative;
}

.page-pdv .pdv-filtros{
  flex-wrap: wrap;
  overflow: visible;
  gap: 10px;
  row-gap: 10px;
  padding-bottom: 0;
}

.page-pdv .pdv-filtros .filtro{
  min-width: 74px;
}

.page-pdv .pdv-filtros .filtro .cat-img{
  width: 80px;
  height: 80px;
  border-width: 2px;
}

.page-pdv .pdv-filtros .filtro .cat-nome{
  font-size: 11px;
  line-height: 1.1;
  max-width: 74px;
  text-align: center;
}

.page-pdv .pdv-filtros-nav{
  display: none;
}

@media (max-width: 1366px), (max-height: 768px){
  .page-pdv .pdv-filtros-area{
    padding: 0 18px;
  }

  .page-pdv .pdv-filtros{
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    row-gap: 0;
    padding-bottom: 4px;
    scroll-behavior: smooth;
    scrollbar-width: none;
  }

  .page-pdv .pdv-filtros::-webkit-scrollbar{
    display: none;
  }

  .page-pdv .pdv-filtros .filtro{
    flex: 0 0 auto;
    min-width: 64px;
  }

  .page-pdv .pdv-filtros .filtro .cat-img{
    width: 58px;
    height: 58px;
  }

  .page-pdv .pdv-filtros .filtro .cat-nome{
    max-width: 64px;
    font-size: 10px;
  }

  .page-pdv .pdv-filtros-nav{
    display: inline-flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.92);
    color: #4B5563;
    box-shadow: 0 2px 6px rgba(0,0,0,.16);
    cursor: pointer;
    z-index: 3;
    padding: 0;
  }

  .page-pdv .pdv-filtros-nav--prev{
    left: -2px;
  }

  .page-pdv .pdv-filtros-nav--next{
    right: -2px;
  }

  .page-pdv .pdv-filtros-nav:hover{
    background: rgba(255,255,255,.98);
    color: #1F2937;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
  }

  .page-pdv .pdv-filtros-nav:disabled{
    opacity: .22;
    cursor: default;
  }

  .page-pdv .pdv-filtros-nav i{
    font-size: 10px;
    line-height: 1;
  }
}

@media (max-width: 1280px), (max-height: 700px){
  .page-pdv .pdv-filtros-area{
    padding: 0 16px;
  }

  .page-pdv .pdv-filtros .filtro{
    min-width: 60px;
  }

  .page-pdv .pdv-filtros .filtro .cat-img{
    width: 54px;
    height: 54px;
  }

  .page-pdv .pdv-filtros .filtro .cat-nome{
    max-width: 60px;
    font-size: 10px;
  }

  .page-pdv .pdv-filtros-nav{
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
  }

  .page-pdv .pdv-filtros-nav i{
    font-size: 9px;
  }
}
/* ================================
   HISTÓRICO (estilo Yooga)
================================ */
.page-historico .hist-wrap{ display:flex; flex-direction:column; gap:22px; }

.page-historico .hist-card{ padding:18px 18px 22px; }
.page-historico .hist-head{
  display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap;
}
.page-historico .hist-title{ display:flex; align-items:center; gap:10px; }
.page-historico .hist-title h2{ margin:0; font-size:16px; font-weight:800; color:#111827; }

.page-historico .hist-badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:7px 12px; border-radius:999px; font-size:12px; font-weight:800;
}
.page-historico .hist-badge .dot{ width:8px; height:8px; border-radius:50%; background:#9ca3af; }
.page-historico .hist-badge--open{ background:#eafaf2; color:#10b981; }
.page-historico .hist-badge--open .dot{ background:#10b981; }
.page-historico .hist-badge--closed{ background:#fff3f4; color:#ef4444; }
.page-historico .hist-badge--closed .dot{ background:#ef4444; }

.page-historico .hist-actions{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.page-historico .hist-link{
  border:0; background:transparent; color:#0ea5e9; font-weight:800; cursor:pointer;
  display:inline-flex; align-items:center; gap:8px; padding:10px 10px; border-radius:12px;
}
.page-historico .hist-link:hover{ background:#f3f4f6; }

.page-historico .hist-btn{
  border:0; cursor:pointer; border-radius:12px; padding:10px 14px; font-weight:900;
  display:inline-flex; align-items:center; gap:8px;
}
.page-historico .hist-btn:disabled{ opacity:.55; cursor:not-allowed; }
.page-historico .hist-btn--primary{ background:#0b2cff; color:#fff; }
.page-historico .hist-btn--green{ background:#eafaf2; color:#10b981; }
.page-historico .hist-btn--red{ background:#fff3f4; color:#ef4444; }
.page-historico .hist-btn--ghost{ background:#f3f4f6; color:#111827; }
.page-historico .hist-btn--danger{ background:#ef4444; color:#fff; }

.page-historico .hist-metrics{
  margin-top:14px;
  display:grid;
  grid-template-columns: repeat(4, minmax(200px, 1fr));
  gap:14px;
}
@media (max-width:1100px){
  .page-historico .hist-metrics{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width:560px){
  .page-historico .hist-metrics{ grid-template-columns: 1fr; }
}

.page-historico .hist-metric{
  background:#fff; border:1px solid #eef2f7; border-radius:14px; padding:14px 14px;
}
.page-historico .hist-metric .t{
  display:flex; align-items:center; gap:8px;
  font-size:13px; font-weight:800; color:#111827;
}
.page-historico .hist-metric .t i{ opacity:.7; }
.page-historico .hist-metric .v{ margin-top:6px; font-size:15px; font-weight:900; color:#111827; }

.page-historico .hist-close-btn{
  margin-top:16px;
  width:100%;
  border:0;
  background:#ff4b4b;
  color:#fff;
  font-weight:1000;
  padding:14px 16px;
  border-radius:12px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}
.page-historico .hist-close-btn:hover{ filter:brightness(.98); }

.page-historico .hist-closed{ margin-top:16px; }
.page-historico .hist-closed-box{
  background:#fff;
  border:1px solid #eef2f7;
  border-radius:14px;
  padding:16px;
  max-width:520px;
}
.page-historico .hist-closed-box h3{ margin:0 0 6px; color:#111827; }
.page-historico .hist-closed-box p{ margin:0 0 12px; color:#6b7280; }

.page-historico .hist-label{
  display:block; font-size:12px; font-weight:800; color:#6b7280; margin-bottom:6px;
}
.page-historico .hist-money{
  display:flex; align-items:center; gap:8px;
  background:#fff;
  border:1px solid rgba(0,0,0,.12);
  border-radius:12px;
  padding:10px 12px;
  margin-bottom: 7px;
}
.page-historico .hist-money span{ font-weight:900; color:#6b7280; }
.page-historico .hist-money input{
  border:0; outline:none; width:100%; font-weight:900; color:#111827; background:transparent;
}

.page-historico .hist-report{ padding:18px 18px 16px; }
.page-historico .hist-report-head h2{ margin:0; font-size:16px; font-weight:900; color:#111827; }

.page-historico .hist-tabs{
  margin-top:12px;
  display:flex; gap:26px; border-bottom:1px solid #eef2f7; padding-bottom:10px;
}
.page-historico .hist-tab{
  border:0; background:transparent; cursor:pointer;
  font-weight:900; color:#6b7280; padding:10px 0;
  position:relative;
}
.page-historico .hist-tab.active{ color:#0ea5e9; }
.page-historico .hist-tab.active:after{
  content:""; position:absolute; left:0; right:0; bottom:-11px; height:3px;
  background:#0ea5e9; border-radius:999px;
}

.page-historico .hist-filter{
  margin-top:12px;
  display:flex; align-items:center; gap:12px;
}
.page-historico .hist-search{
  flex:1;
  display:flex; align-items:center; gap:10px;
  background:#fff;
  border:1px solid #eef2f7;
  border-radius:12px;
  padding:10px 12px;
}
.page-historico .hist-search input{
  border:0; outline:none; width:100%; background:transparent;
  font-weight:700; color:#111827;
}
.page-historico .hist-filter-btn{
  border:1px solid rgba(0,0,0,.18);
  background:#fff;
  border-radius:12px;
  padding:10px 12px;
  font-weight:900;
  cursor:pointer;
  display:flex; align-items:center; gap:8px;
}
.page-historico .hist-filter-btn:disabled{ opacity:.55; cursor:not-allowed; }

.page-historico .hist-tabpane{ display:none; margin-top:12px; }
.page-historico .hist-tabpane.show{ display:block; }

.page-historico .hist-table-wrap{ overflow:auto; }
.page-historico .hist-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width: 880px;
}
.page-historico .hist-table thead th{
  text-align:left;
  font-size:12px;
  color:#6b7280;
  font-weight:900;
  padding:12px 10px;
  border-bottom:1px solid #eef2f7;
}
.page-historico .hist-table tbody td{
  padding:14px 10px;
  border-bottom:1px solid #f1f5f9;
  font-weight:700;
  color:#111827;
  vertical-align:middle;
}
.page-historico .hist-table tbody td small{ color:#6b7280; font-weight:800; }

.page-historico .hist-empty{
  text-align:center;
  color:#6b7280;
  padding:22px 10px !important;
  font-weight:900;
}

.page-historico .hist-icon-btn{
  border:0; background:#f3f4f6;
  width:36px; height:36px;
  border-radius:10px;
  cursor:pointer;
}
.page-historico .hist-icon-btn:hover{ filter:brightness(.98); }

.page-historico .hist-chip{
  display:inline-flex; align-items:center; justify-content:center;
  padding:6px 10px; border-radius:999px; font-weight:900; font-size:12px;
}
.page-historico .hist-chip.ok{ background:#eafaf2; color:#10b981; }
.page-historico .hist-chip.bad{ background:#fff3f4; color:#ef4444; }

/* Modal do histórico */
.page-historico .hist-modal{
  background:#fff;
  border-radius:14px;
  box-shadow:0 12px 30px rgba(0,0,0,.20);
  width:min(520px, 100%);
}
.page-historico .hist-modal-head{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:14px 16px;
  border-bottom:1px solid rgba(0,0,0,.06);
}
.page-historico .hist-modal-head h3{ margin:0; font-size:16px; font-weight:1000; color:#111827; }
.page-historico .hist-x{
  border:0; background:#f3f4f6;
  width:40px; height:40px;
  border-radius:12px;
  cursor:pointer;
  font-size:18px;
}
.page-historico .hist-modal-body{ padding:14px 16px; }
.page-historico .hist-input{
  width:100%;
  height:40px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.12);
  outline:none;
}
.page-historico .hist-modal-foot{
  display:flex; justify-content:flex-end; gap:10px;
  padding-top:12px;
}
/* =========================================================
 * HISTÓRICO - DRAWER DE FILTROS (estilo Yooga)
 * =======================================================*/
.page-historico .hist-filters{ position:fixed; inset:0; z-index:9999; display:none; }
.page-historico .hist-filters.open{ display:block; }
.page-historico .hist-filters-overlay{ position:absolute; inset:0; background: rgba(17,24,39,.55); }
.page-historico .hist-filters-drawer{ position:absolute; top:0; right:0; height:100%; width:min(520px, 92vw);
  background:#fff; box-shadow: -24px 0 48px rgba(0,0,0,.20);
  display:flex; flex-direction:column; border-left:1px solid rgba(0,0,0,.06);
}
.page-historico .hist-filters-head{ display:flex; align-items:center; justify-content:space-between; padding:18px 18px; border-bottom:1px solid rgba(0,0,0,.06); }
.page-historico .hist-filters-title{ display:flex; align-items:center; gap:10px; font-weight:800; color:#0f172a; }
.page-historico .hist-filters-title i{ color: var(--azul); }
.page-historico .hist-filters-x{ width:40px; height:40px; border-radius:12px; border:1px solid rgba(0,0,0,.06); background:#f8fafc; cursor:pointer; font-size:18px; }
.page-historico .hist-filters-body{ padding:16px 18px; overflow:auto; }
.page-historico .hist-filters-note{ background: rgba(14,165,233,.08); border:1px solid rgba(14,165,233,.14);
  padding:12px 12px; border-radius:12px; color:#0f172a; font-weight:700; font-size:13px; line-height:1.35;
}
.page-historico .hist-filters-quick{ display:flex; gap:8px; margin:14px 0 8px; flex-wrap:wrap; }
.page-historico .hist-filters-quick .qbtn{ border:1px solid rgba(0,0,0,.08); background:#f8fafc; color:#0f172a;
  padding:8px 12px; border-radius:10px; cursor:pointer; font-weight:800; min-width:56px;
}
.page-historico .hist-filters-quick .qbtn.active{ background: var(--azul); color:#fff; border-color: rgba(0,0,0,0); }
.page-historico .hist-filters-block{ margin-top:14px; }
.page-historico .hist-filters-block .h{ font-weight:900; color:#0f172a; margin-bottom:8px; }
.page-historico .hist-filters-block label{ display:flex; flex-direction:column; gap:6px; font-weight:800; color:#0f172a; }
.page-historico .hist-filters-block label span{ font-weight:800; color:#334155; font-size:13px; }
.page-historico .hist-filters-block input,
.page-historico .hist-filters-block select{ height:44px; border-radius:12px; border:1px solid rgba(0,0,0,.10);
  padding:0 12px; font-weight:700; background:#fff;
}
.page-historico .hist-filters-block .grid2{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.page-historico .hist-filters-block .seg{ display:flex; gap:10px; }
.page-historico .hist-filters-block .segbtn{ flex:1; height:42px; border-radius:12px; border:1px solid rgba(0,0,0,.10);
  background:#f8fafc; cursor:pointer; font-weight:900; color:#334155;
}
.page-historico .hist-filters-block .segbtn.active{ background: var(--azul); color:#fff; border-color: rgba(0,0,0,0); }
.page-historico .hist-filters-foot{ padding:14px 18px; border-top:1px solid rgba(0,0,0,.06); display:flex; gap:12px; }
.page-historico .hist-filters-foot .btn-clear{ flex:1; height:46px; border-radius:12px; border:1px solid rgba(0,0,0,.10);
  background:#f8fafc; cursor:pointer; font-weight:900;
}
.page-historico .hist-filters-foot .btn-apply{ flex:1; height:46px; border-radius:12px; border:1px solid rgba(0,0,0,0);
  background: var(--azul); color:#fff; cursor:pointer; font-weight:900;
}

@media (max-width: 520px){
  .page-historico .hist-filters-block .grid2{ grid-template-columns:1fr; }
}

/* ===== Fechamento de Caixa (modais) ===== */
.page-historico .hist-modal.hist-fechamento {
  width: min(1240px, 97vw);
  max-width: 1240px;
}
.fc-top3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 8px;
}

.fc-box {
  margin-top: 18px;
  background: rgba(0, 0, 0, .03);
  border-radius: 14px;
  padding: 20px;
}

.fc-field .fc-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fc-req {
    color: #3b82f6;
    font-weight: 700;
}

.fc-input {
    width: 100%;
    height: 44px;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 8px;
    padding: 0 12px;
    font-weight: 600;
    background: #fff;
}

.hist-fechamento .modal-body {
  padding: 28px 30px 26px;
}

.hist-fechamento .modal-title {
  font-size: 20px;
}

.hist-fechamento .modal-subtitle {
  font-size: 15px;
}

.hist-fechamento .fc-actions {
  margin-top: 22px;
}

.hist-fechamento .fc-actions .btn,
.hist-fechamento .fc-actions button {
  height: 48px;
  font-size: 15px;
  font-weight: 800;
  border-radius: 10px;
}

.fc-box-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.fc-box-title {
    font-weight: 700;
    color: #111827;
    font-size: 16px;
}

.fc-toggle {
    border: 0;
    background: transparent;
    color: #0ea5e9;
    font-weight: 700;
    display: flex;
    gap: 10px;
    align-items: center;
    cursor: pointer;
}

.fc-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.fc-grid.is-hidden {
    display: none;
}

.fc-item label {
    display: block;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 6px;
}

.fc-qtd {
    width: 100%;
    height: 40px;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 8px;
    padding: 0 10px;
    font-weight: 700;
}

.fc-submit {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 10px;
    margin-top: 16px;
    font-weight: 700;
    color: #fff;
    background: #0ea5e9;
    cursor: pointer;
}

.fc-cancelados-box{
  margin-top:14px;
}

.fc-cancelados-toggle{
  width:100%;
  border:1px solid rgba(239,68,68,.16);
  background:rgba(239,68,68,.045);
  color:#991b1b;
  border-radius:12px;
  padding:10px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  cursor:pointer;
  font-weight:850;
}

.fc-cancelados-toggle span{
  display:flex;
  align-items:center;
  gap:8px;
}

.fc-cancelados-toggle i{
  font-size:13px;
  opacity:.9;
}

.fc-cancelados-toggle small{
  color:#ef4444;
  font-weight:900;
  white-space:nowrap;
}

.fc-cancelados-toggle:hover{
  background:rgba(239,68,68,.075);
}

.fc-canceladas-modal{
  width:min(980px, 96vw);
  max-width:980px;
}

.fc-canceladas-resumo{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background:#f8fafc;
  border:1px solid #eef2f7;
  border-radius:12px;
  padding:12px 14px;
  margin-bottom:12px;
}

.fc-canceladas-resumo span{
  color:#6b7280;
  font-weight:850;
}

.fc-canceladas-resumo strong{
  color:#991b1b;
  font-weight:1000;
}

.fc-canceladas-lista{
  display:flex;
  flex-direction:column;
  gap:12px;
  max-height:62vh;
  overflow:auto;
  padding-right:4px;
}

.fc-cancelada-card{
  border:1px solid #eef2f7;
  background:#fff;
  border-radius:14px;
  padding:14px;
}

.fc-cancelada-topo{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding-bottom:10px;
  border-bottom:1px solid #f1f5f9;
}

.fc-cancelada-topo strong{
  display:block;
  color:#111827;
  font-weight:1000;
}

.fc-cancelada-topo span{
  display:block;
  margin-top:3px;
  color:#6b7280;
  font-size:13px;
  font-weight:750;
}

.fc-cancelada-valor{
  color:#991b1b;
  font-weight:1000;
  white-space:nowrap;
}

.fc-cancelada-info{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
  margin-top:12px;
}

.fc-cancelada-info small,
.fc-cancelada-motivo small{
  display:block;
  color:#6b7280;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.03em;
  margin-bottom:4px;
}

.fc-cancelada-info strong{
  color:#111827;
  font-size:13px;
  font-weight:900;
}

.fc-cancelada-motivo{
  margin-top:12px;
  background:#f8fafc;
  border-radius:12px;
  padding:10px 12px;
}

.fc-cancelada-motivo p{
  margin:0;
  color:#374151;
  font-size:13px;
  font-weight:750;
  line-height:1.4;
}

@media (max-width: 720px){
  .fc-cancelada-info{
    grid-template-columns:1fr;
  }

  .fc-cancelada-topo{
    flex-direction:column;
  }
}

.fc-mini {
    max-width: 520px;
    width: min(520px, 92vw);
}

.fc-primary {
    height: 44px;
    border: 0;
    border-radius: 10px;
    font-weight: 700;
    color: #fff;
    background: #0ea5e9;
    cursor: pointer;
}

.fc-link {
    border: 0;
    background: transparent;
    font-weight: 700;
    color: #374151;
    cursor: pointer;
}

.fc-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    left: auto;
    transform: translateX(18px);
    z-index: 99999;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 700;
    color: #fff;
    background: #16a34a;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.fc-toast.err {
    background: #dc2626;
}

.fc-toast.show {
    opacity: 1;
    transform: translateX(0);
}

/* responsivo */
@media (max-width: 900px) {
    .fc-top3 {
        grid-template-columns: 1fr;
    }

    .fc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Modal Detalhes da Venda (layout vd-*) ===== */
#vendaModal .hist-modal {
    max-width: 980px;
    width: min(980px, 96vw);
}

#vendaModal .hist-modal-body {
    padding-top: 14px;
}

.vd-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vd-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.vd-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vd-print-btn {
    border: 1px solid rgba(0, 0, 0, .12);
    background: #fff;
    height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

.vd-print-btn i {
    margin-right: 8px;
    opacity: .85;
}

.vd-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.vd-field {
    border: 1px solid rgba(0, 0, 0, .10);
    border-radius: 12px;
    padding: 12px;
    background: #fff;
}

.vd-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 6px;
}

.vd-value {
    font-size: 14px;
    color: #111827;
    font-weight: 700;
}

.vd-muted {
    color: #6b7280;
    font-weight: 600;
    margin-left: 6px;
    font-size: 12px;
}

.vd-table {
    border: 1px solid rgba(0, 0, 0, .10);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.vd-table-head {
    display: grid;
    grid-template-columns: 70px 1fr 120px 140px;
    gap: 10px;
    padding: 12px;
    background: rgba(0, 0, 0, .03);
    font-weight: 700;
    color: #374151;
}

.vd-table-body {
    padding: 6px 12px 12px;
}

.vd-row {
    display: grid;
    grid-template-columns: 70px 1fr 120px 140px;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, .10);
}

.vd-row:last-child {
    border-bottom: 0;
}

.vd-row .q {
    font-weight: 700;
    color: #111827;
}

.vd-row .p {
    font-weight: 600;
    color: #111827;
}

.vd-row .v {
    font-weight: 700;
    color: #374151;
}

.vd-row .s {
    font-weight: 700;
    color: #111827;
}

.vd-empty {
    padding: 12px 0;
    color: #6b7280;
    font-weight: 700;
}

.vd-totals {
    border: 1px solid rgba(0, 0, 0, .10);
    border-radius: 12px;
    padding: 12px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vd-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: #374151;
}

.vd-total-strong {
    font-size: 16px;
    color: #111827;
}

.vd-note {
    border: 1px solid rgba(0, 0, 0, .10);
    border-radius: 12px;
    padding: 12px;
    background: #fff;
}

.vd-note-text {
    font-weight: 600;
    color: #111827;
}

.r {
    text-align: right;
}

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

    .vd-table-head {
        grid-template-columns: 60px 1fr;
    }

    .vd-row {
        grid-template-columns: 60px 1fr;
    }

    .vd-row .v,
    .vd-row .s,
    .vd-table-head>div:nth-child(3),
    .vd-table-head>div:nth-child(4) {
        display: none;
    }
}

/* =========================================================
   DELIVERY CLIENTE
=========================================================*/

.page-delivery-cliente{
  margin:0;
  color:#0f172a;
  font-family:inherit;
  background:#f8fafc;
}

.page-delivery-cliente::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at top left, rgba(249,115,22,.10), transparent 28%),
    radial-gradient(circle at top right, rgba(59,130,246,.08), transparent 24%);
}

.delivery-cliente-wrap{
  position:relative;
  z-index:1;
  max-width:1180px;
  margin:0 auto;
  padding:14px 14px 110px;
}

.delivery-cliente-topo{
  margin-bottom:14px;
}

.delivery-cliente-topbar{
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:14px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:24px;
  background:rgba(255,255,255,.94);
  box-shadow:0 18px 34px rgba(15,23,42,.06);
}

.delivery-cliente-logo-area{
  min-width:0;
}

.delivery-cliente-logo img{
  height: 70px;
  width:auto;
  display:block;
}

.delivery-cliente-logo-mark{
  width:48px;
  height:48px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, #fb923c 0%, #f97316 58%, #ea580c 100%);
  color:#fff;
  font-size:20px;
  box-shadow:0 12px 26px rgba(249,115,22,.28);
  flex:0 0 48px;
}

.delivery-cliente-logo-textos{
  display:flex;
  flex-direction:column;
  gap:4px;
  line-height:1;
}

.delivery-cliente-logo-kicker{
  font-size:10px;
  font-weight:800;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#f97316;
}

.delivery-cliente-logo-textos strong{
  font-size:28px;
  font-weight:900;
  color:#0f172a;
}

.delivery-cliente-topo-info{
  margin-top:10px;
}

.delivery-cliente-topo-info h1{
  margin:0;
  font-size:20px;
  line-height:1.15;
  font-weight:900;
  color:#0f172a;
}

.delivery-cliente-topo-info p{
  margin:6px 0 0;
  font-size:13px;
  line-height:1.45;
  color:#64748b;
  font-weight:600;
}

.delivery-cliente-topo-right{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}

.delivery-cliente-usuario-box{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.delivery-cliente-top-btn,
.delivery-cliente-btn-carrinho{
  height:46px;
  border-radius:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-weight:800;
  font-size:14px;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.delivery-cliente-top-btn{
  width:100%;
  border:1px solid rgba(15,23,42,.10);
  padding:0 14px;
  background:#fff;
  color:#0f172a;
  box-shadow:0 10px 22px rgba(15,23,42,.05);
}

.delivery-cliente-top-btn:hover{
  transform:translateY(-1px);
  border-color:rgba(249,115,22,.20);
  box-shadow:0 14px 28px rgba(15,23,42,.08);
}

.delivery-cliente-top-btn--ghost{
  background:#fff;
}

.delivery-cliente-top-btn--icon{
  width:46px;
}

.delivery-cliente-btn-carrinho{
  width:100%;
  border:0;
  padding:0 16px;
  background:linear-gradient(135deg, #000a99 0%, #0300c9 100%);
  color:#fff;
}

.delivery-cliente-btn-carrinho:hover{
  transform:translateY(-1px);
}

.delivery-cliente-btn-carrinho strong{
  min-width:24px;
  height:24px;
  padding:0 7px;
  border-radius:999px;
  background:rgba(255,255,255,.18);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
}

.delivery-cliente-busca-area{
  margin-bottom:14px;
}

.delivery-cliente-busca-box{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:54px;
  padding:0 16px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:18px;
  background:#fff;
  box-shadow:0 12px 28px rgba(15,23,42,.05);
}

.delivery-cliente-busca-box i{
  color:#94a3b8;
  font-size:16px;
}

.delivery-cliente-busca{
  width:100%;
  min-width:0;
  border:0;
  outline:none;
  background:transparent;
  color:#0f172a;
  font-size:15px;
  font-weight:600;
}

.delivery-cliente-busca::placeholder{
  color:#94a3b8;
}

.delivery-cliente-categorias{
  display:flex;
  gap:10px;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  padding:2px 2px 8px;
  margin-bottom:16px;
  scrollbar-width:none;
}

.delivery-cliente-categorias::-webkit-scrollbar{
  display:none;
}

.delivery-cliente-cat-btn{
  flex:0 0 auto;
  min-height:42px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:999px;
  padding:0 16px;
  background:#fff;
  color:#334155;
  font-weight:800;
  font-size:14px;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(15,23,42,.04);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
}

.delivery-cliente-cat-btn:hover{
  transform:translateY(-1px);
  border-color:rgba(249,115,22,.24);
  box-shadow:0 12px 22px rgba(15,23,42,.07);
}

.delivery-cliente-cat-btn.is-active{
  background:linear-gradient(135deg, #000a99 0%,#0300c9 100%);
  color:#fff;
  border-color:transparent;
}

.delivery-cliente-produtos{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.delivery-cliente-bloco-categoria{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.delivery-cliente-bloco-titulo{
  font-size:24px;
  line-height:1.1;
  font-weight:900;
  color:#0f172a;
  padding:0 2px;
}

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

.delivery-cliente-prod-card{
  overflow:hidden;
  border:1px solid rgba(15,23,42,.08);
  border-radius:22px;
  background:#fff;
  box-shadow:0 14px 32px rgba(15,23,42,.06);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.delivery-cliente-prod-card:hover{
  transform:translateY(-2px);
  border-color:rgba(249,115,22,.16);
  box-shadow:0 18px 38px rgba(15,23,42,.10);
}

.delivery-cliente-prod-foto{
  position:relative;
  aspect-ratio:1 / 1;
  background:#f8fafc;
  overflow:hidden;
}

.delivery-cliente-prod-foto img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}


.delivery-cliente-sem-foto{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(180deg, #f3f6fc 0%, #e7ebff 100%);
  color:#3c42fb;
  font-size:34px;
}


.delivery-cliente-prod-conteudo{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:14px;
}

.delivery-cliente-prod-nome{
  font-size:18px;
  line-height:1.2;
  font-weight:900;
  color:#0f172a;
  min-height:42px;
}

.delivery-cliente-prod-desc{
  min-height:36px;
  color:#64748b;
  font-size:13px;
  line-height:1.4;
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}

.delivery-cliente-prod-rodape{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:10px;
  margin-top:4px;
}

.delivery-cliente-prod-rodape strong{
  font-size:18px;
  line-height:1;
  font-weight:900;
  color:#0f172a;
}

.delivery-cliente-btn-add,
.delivery-cliente-btn-finalizar{
  min-height:46px;
  padding:10px;
  border:0;
  border-radius:14px;
  background:linear-gradient(135deg, #000a99 0%, #0300c9 100%);
  color:#fff;
  font-weight:800;
  cursor:pointer;
  
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    filter .18s ease,
    background .18s ease,
    opacity .18s ease;
}

.delivery-cliente-btn-add.is-added{
  animation:deliveryBtnAdded .85s ease;
}

.delivery-cliente-btn-carrinho.is-bump{
  animation:deliveryCarrinhoBump .65s ease;
}

@keyframes deliveryBtnAdded{
  0%{
    transform:scale(1);

  }
  35%{
    transform:scale(1.06);
   
  }
  100%{
    transform:scale(1);
  
  }
}

@keyframes deliveryCarrinhoBump{
  0%{ transform:scale(1); }
  25%{ transform:scale(1.04); }
  45%{ transform:scale(.98); }
  70%{ transform:scale(1.03); }
  100%{ transform:scale(1); }
}

.delivery-cliente-btn-add:hover,
.delivery-cliente-btn-finalizar:hover{
  transform:translateY(-1px);
  filter:saturate(1.03);
}

.delivery-cliente-carrinho{
  position:fixed;
  top:0;
  right:0;
  bottom:0;
  width:min(420px, 100vw);
  padding:18px;
  border-left:1px solid rgba(15,23,42,.08);
  background:rgba(255,255,255,.98);
  box-shadow:-18px 0 36px rgba(15,23,42,.10);
  z-index:60;
  display:flex;
  flex-direction:column;
}

.delivery-cliente-carrinho-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding-bottom:14px;
  border-bottom:1px solid rgba(15,23,42,.08);
}

.delivery-cliente-carrinho-head h2,
.delivery-cliente-modal-head h2{
  margin:0;
  font-size:22px;
  line-height:1.1;
  font-weight:900;
  color:#0f172a;
}

.delivery-cliente-carrinho-fechar{
  width:40px;
  height:40px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:12px;
  background:#fff;
  color:#334155;
  cursor:pointer;
}

.delivery-cliente-carrinho-itens{
  flex:1;
  overflow:auto;
  padding:14px 0;
}

.delivery-cliente-carrinho-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 0;
  border-bottom:1px solid rgba(15,23,42,.06);
}

.delivery-cliente-carrinho-item-info{
  min-width:0;
}

.delivery-cliente-carrinho-item-nome{
  font-size:15px;
  font-weight:800;
  color:#0f172a;
}

.delivery-cliente-carrinho-item-preco{
  margin-top:4px;
  font-size:13px;
  font-weight:700;
  color:#64748b;
}

.delivery-cliente-carrinho-item-acoes{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px;
  border-radius:999px;
  background:#f8fafc;
  border:1px solid rgba(15,23,42,.06);
}

.delivery-cliente-carrinho-item-acoes button{
  width:28px;
  height:28px;
  border:0;
  border-radius:50%;
  background:#fff;
  color:#0f172a;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 4px 10px rgba(15,23,42,.08);
}

.delivery-cliente-carrinho-item-acoes span{
  min-width:18px;
  text-align:center;
  font-size:14px;
  font-weight:900;
  color:#0f172a;
}

.delivery-cliente-carrinho-footer{
  padding-top:14px;
  border-top:1px solid rgba(15,23,42,.08);
}

.delivery-cliente-total-linha{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:14px;
  font-size:15px;
  font-weight:700;
  color:#334155;
}

.delivery-cliente-total-linha strong{
  font-size:22px;
  font-weight:900;
  color:#0f172a;
}

.delivery-cliente-btn-finalizar:disabled{
  opacity:.55;
  cursor:not-allowed;
  box-shadow:none;
}

.delivery-cliente-vazio{
  padding:18px;
  border:1px dashed rgba(15,23,42,.12);
  border-radius:18px;
  background:#fff;
  text-align:center;
  color:#64748b;
  font-weight:700;
}

.delivery-cliente-modal{
  position:fixed;
  inset:0;
  z-index:80;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(15,23,42,.45);
  backdrop-filter:blur(4px);
}

.delivery-cliente-modal-box{
  width:min(760px, 100%);
  max-height:calc(100vh - 36px);
  overflow:auto;
  border-radius:24px;
  background:#fff;
  box-shadow:0 24px 60px rgba(15,23,42,.22);
}

.delivery-cliente-modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:18px 18px 14px;
  border-bottom:1px solid rgba(15,23,42,.08);
}

.delivery-cliente-modal-body{
  padding:18px;
}

.delivery-cliente-form-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}

.delivery-cliente-form-col{
  display:flex;
  flex-direction:column;
  gap:7px;
}

.delivery-cliente-form-col.is-full{
  grid-column:auto;
}

.delivery-cliente-form-col label{
  font-size:13px;
  font-weight:800;
  color:#334155;
}

.delivery-cliente-form-col input,
.delivery-cliente-form-col select,
.delivery-cliente-form-col textarea{
  width:100%;
  min-height:48px;
  border:1px solid rgba(15,23,42,.10);
  border-radius:14px;
  padding:0 14px;
  background:#fff;
  color:#0f172a;
  font-size:15px;
  font-weight:600;
  outline:none;
}

.delivery-cliente-form-col textarea{
  min-height:110px;
  padding:14px;
  resize:vertical;
}

.delivery-cliente-form-col input:focus,
.delivery-cliente-form-col select:focus,
.delivery-cliente-form-col textarea:focus{
  border-color:#2563eb;
  box-shadow:0 0 0 4px rgba(37,99,235,.10);
}

.delivery-cliente-avatar-btn{
  width:46px;
  height:46px;
  border:0;
  border-radius:50%;
  background:linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 12px 24px rgba(15,23,42,.18);
}

.delivery-cliente-avatar-btn:hover{
  transform:translateY(-1px);
}

@media (min-width: 640px){
  .delivery-cliente-wrap{
    padding:18px 18px 120px;
  }

  .delivery-cliente-topo-right{
    grid-template-columns:auto auto;
    justify-content:end;
    align-items:center;
  }

  .delivery-cliente-top-btn{
    width:auto;
  }

  .delivery-cliente-btn-carrinho{
    width:auto;
  }

  .delivery-cliente-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:14px;
  }

  .delivery-cliente-prod-rodape{
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
  }

  .delivery-cliente-btn-add{
    min-width:120px;
    padding:0 18px;
  }

  .delivery-cliente-form-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .delivery-cliente-form-col.is-full{
    grid-column:1 / -1;
  }
}

@media (min-width: 900px){
  .delivery-cliente-wrap{
    padding:24px 24px 56px;
  }

  .delivery-cliente-topbar{
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:18px 20px;
  }

  .delivery-cliente-logo-area{
    display:flex;
    align-items:center;
    gap:18px;
  }

  .delivery-cliente-topo-info{
    margin-top:0;
  }

  .delivery-cliente-topo-info h1{
    font-size:28px;
  }

  .delivery-cliente-topo-info p{
    font-size:14px;
  }

  .delivery-cliente-grid{
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:16px;
  }
}

@media (max-width: 639px){
  .delivery-cliente-carrinho{
    width:100vw;
    border-left:0;
  }

  .delivery-cliente-btn-carrinho{
    position:fixed;
    left:50%;
    transform:translateX(-50%);
    width:calc(100vw - 24px);
    max-width:calc(100vw - 24px);
    bottom:calc(12px + env(safe-area-inset-bottom));
    z-index:55;
    justify-content:center;
    box-sizing:border-box;
  }

  .delivery-cliente-wrap{
    padding-bottom:120px;
  }

  .delivery-cliente-btn-carrinho.is-bump{
  animation:none !important;
}
}

.delivery-fly-cart-item{
  border-radius:16px;
  overflow:hidden;
  object-fit:cover;
  box-shadow:0 18px 42px rgba(15,23,42,.22);
  transition:
    transform .68s cubic-bezier(.22,.8,.24,1),
    opacity .68s ease;
  will-change:transform, opacity;
  background:#fff;
}

.delivery-fly-cart-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.delivery-fly-cart-item .delivery-cliente-sem-foto,
.delivery-fly-cart-item i{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
}


/* =========================================================
   DELIVERY - ACOMPANHAMENTO DO PEDIDO
========================================================= */
.page-delivery-acompanhar{
  background:
    radial-gradient(circle at top, rgba(255,198,41,.16), transparent 28%),
    linear-gradient(180deg, #fffdf7 0%, #f8fafc 48%, #eef2ff 100%);
}

.delivery-ac-wrap{
  width:min(100%, 720px);
  margin:0 auto;
  padding:14px 12px 28px;
}

.delivery-ac-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  margin-bottom:14px;
  border-radius:20px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(15,23,42,.06);
  box-shadow:0 12px 28px rgba(15,23,42,.06);
}

.delivery-ac-brand{
  min-width:0;
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
}

.delivery-ac-logo{
  width:48px;
  height:48px;
  object-fit:contain;
  display:block;
  border-radius:14px;
  background:#fff;
  border:1px solid rgba(15,23,42,.06);
  box-shadow:0 8px 20px rgba(15,23,42,.05);
  padding:4px;
  flex:0 0 auto;
}

.delivery-ac-brand-text{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}

.delivery-ac-brand-text strong{
  font-size:16px;
  line-height:1.1;
  color:#0f172a;
  font-weight:900;
}

.delivery-ac-brand-text span{
  font-size:12px;
  line-height:1.3;
  color:#64748b;
  font-weight:700;
}

.delivery-ac-header-btn{
  min-height:42px;
  padding:0 14px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.08);
  background:#fff;
  color:#0f172a;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-size:13px;
  font-weight:800;
  white-space:nowrap;
  box-shadow:0 8px 20px rgba(15,23,42,.04);
}

.delivery-ac-main{
  display:grid;
  gap:12px;
}

.delivery-ac-card{
  padding:16px;
  border-radius:22px;
  background:rgba(255,255,255,.96);
  border:1px solid rgba(15,23,42,.06);
  box-shadow:0 14px 32px rgba(15,23,42,.05);
}

.delivery-ac-card--hero{
  padding:18px;
}

.delivery-ac-card--total{
  background:linear-gradient(135deg, #000a99 0%, #1827c9 100%);
  border-color:transparent;
  color:#fff;
  box-shadow:0 18px 36px rgba(0,11,140,.22);
}

.delivery-ac-topline{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}

.delivery-ac-pedido-numero{
  font-size:24px;
  line-height:1;
  color:#0f172a;
  font-weight:900;
  letter-spacing:-.02em;
}

.delivery-ac-pedido-data{
  margin-top:8px;
  font-size:13px;
  line-height:1.4;
  color:#64748b;
  font-weight:700;
}

.delivery-ac-total-label{
  font-size:12px;
  line-height:1.2;
  text-transform:uppercase;
  letter-spacing:.05em;
  font-weight:900;
  color:rgba(255,255,255,.72);
}

.delivery-ac-total-valor{
  margin-top:6px;
  font-size:30px;
  line-height:1;
  font-weight:900;
  letter-spacing:-.03em;
  color:#fff;
}

.delivery-ac-total-status{
  margin-top:8px;
  font-size:13px;
  line-height:1.4;
  color:rgba(255,255,255,.82);
  font-weight:700;
}

.delivery-ac-section-title{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:12px;
  font-size:13px;
  line-height:1.2;
  text-transform:uppercase;
  letter-spacing:.03em;
  color:#0f172a;
  font-weight:900;
}

.delivery-ac-info-text{
  color:#334155;
  font-size:14px;
  line-height:1.6;
  font-weight:700;
}

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

.ac-step{
  padding:14px 10px;
  border-radius:18px;
  background:#f8fafc;
  border:1px solid rgba(15,23,42,.06);
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:86px;
}

.ac-step-dot{
  width:16px;
  height:16px;
  border-radius:999px;
  background:#cbd5e1;
  box-shadow:0 0 0 5px #fff;
}

.ac-step-label{
  font-size:12px;
  line-height:1.35;
  color:#475569;
  font-weight:800;
}

.ac-step.is-on{
  background:linear-gradient(180deg, rgba(136,231,136) 0%, #fff 100%);
  border-color:rgba(136,231,136,.42);
  box-shadow:0 10px 22px rgba(255,198,41,.14);
}

.ac-step.is-on .ac-step-dot{
  background:linear-gradient(135deg, #00FF00 0%, #008000 100%);
}

.ac-step.is-on .ac-step-label{
  color:#0f172a;
}

.delivery-ac-item{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:12px 0;
  border-bottom:1px solid rgba(15,23,42,.06);
}

.delivery-ac-item:first-child{
  padding-top:0;
}

.delivery-ac-item:last-child{
  padding-bottom:0;
  border-bottom:0;
}

.delivery-ac-item-main{
  flex:1;
  min-width:0;
}

.delivery-ac-item-name{
  font-size:14px;
  line-height:1.45;
  color:#0f172a;
  font-weight:900;
}

.delivery-ac-item-meta{
  margin-top:4px;
  font-size:12px;
  line-height:1.45;
  color:#64748b;
  font-weight:700;
}

.delivery-ac-item-price{
  flex:0 0 auto;
  padding:6px 10px;
  border-radius:12px;
  background:#f8fafc;
  border:1px solid rgba(15,23,42,.06);
  color:#0f172a;
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}

.delivery-ac-resumo{
  display:grid;
  gap:10px;
}

.delivery-ac-resumo-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-size:14px;
  line-height:1.4;
  color:#475569;
  font-weight:700;
}

.delivery-ac-resumo-row strong{
  color:#0f172a;
  font-weight:900;
}

.delivery-ac-resumo-row--total{
  padding-top:10px;
  border-top:1px solid rgba(15,23,42,.08);
}

.delivery-ac-resumo-row--total,
.delivery-ac-resumo-row--total strong{
  color:#0f172a;
  font-size:17px;
}

.page-delivery-acompanhar .delivery-badge{
  border-radius:999px;
  padding:9px 14px;
  font-size:12px;
  font-weight:900;
  border:1px solid rgba(59,130,246,.14);
  background:linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
  color:#1d4ed8;
  white-space:nowrap;
}

@media (min-width: 768px){
  .delivery-ac-wrap{
    width:min(100% - 24px, 880px);
    padding:18px 0 34px;
  }

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

  .delivery-ac-card--hero,
  .delivery-ac-card--total,
  .delivery-ac-card:last-child{
    grid-column:1 / -1;
  }

  .delivery-ac-timeline{
    grid-template-columns:repeat(4, minmax(0,1fr));
  }

  .delivery-ac-pedido-numero{
    font-size:28px;
  }
}

@media (max-width: 520px){
  .delivery-ac-header{
    padding:12px;
  }

  .delivery-ac-header-btn span{
    display:none;
  }

  .delivery-ac-topline{
    flex-direction:column;
    align-items:flex-start;
  }

  .delivery-ac-pedido-numero{
    font-size:22px;
  }

  .delivery-ac-total-valor{
    font-size:26px;
  }
}

.delivery-cliente-checkout-etapas{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:8px;
  margin-bottom:14px;
}

.delivery-cliente-checkout-step{
  min-height:38px;
  padding:0 8px;
  border:1px solid rgba(15,23,42,.10);
  border-radius:14px;
  background:#fff;
  color:#64748b;
  font-size:12px;
  font-weight:800;
  cursor:default;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.delivery-cliente-checkout-step.is-active{
  background:linear-gradient(135deg, #000a99 0%, #0300c9 100%);
  color:#fff;
  border-color:transparent;
}

@media (max-width: 639px){
  .delivery-cliente-checkout-step{
    font-size:11px;
    min-height:36px;
    padding:0 6px;
  }
}

.delivery-cliente-checkout-bloco{
  display:block;
}

.delivery-cliente-resumo-topo{
  display:grid;
  grid-template-columns:1.35fr .95fr;
  gap:12px;
  margin-bottom:12px;
}

.delivery-cliente-resumo-card{
  padding:14px 16px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:16px;
  background:#fff;
}

.delivery-cliente-resumo-card-titulo{
  margin-bottom:8px;
  font-size:12px;
  font-weight:800;
  color:#64748b;
  text-transform:uppercase;
  letter-spacing:.03em;
}

.delivery-cliente-resumo-card-subtitulo{
  margin-bottom:4px;
  font-size:11px;
  font-weight:800;
  color:#94a3b8;
  text-transform:uppercase;
  letter-spacing:.03em;
}

.delivery-cliente-resumo-card-texto{
  font-size:14px;
  line-height:1.55;
  color:#0f172a;
  font-weight:700;
}

.delivery-cliente-resumo-card-extra{
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid rgba(15,23,42,.06);
}

.delivery-cliente-resumo-lista{
  display:grid;
  gap:10px;
  margin-top:6px;
}

.delivery-cliente-resumo-item{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  gap:12px;
  align-items:start;
  padding:12px 14px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:14px;
  background:#f8fafc;
}

.delivery-cliente-resumo-total-linha{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:16px;
  padding:2px 2px 0;
}

.delivery-cliente-resumo-total-linha span{
  font-size:15px;
  font-weight:700;
  color:#334155;
}

.delivery-cliente-resumo-total-linha strong{
  font-size:22px;
  font-weight:900;
  color:#0f172a;
}

@media (max-width: 760px){
  .delivery-cliente-resumo-topo{
    grid-template-columns:1fr;
  }

  .delivery-cliente-resumo-total-linha strong{
    font-size:20px;
  }
}

.delivery-cliente-endereco-resumo{
  margin-bottom:16px;
  padding:16px 18px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:18px;
  background:#f8fafc;
}

.delivery-cliente-endereco-resumo-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}

.delivery-cliente-endereco-resumo-info{
  min-width:0;
  flex:1;
}

.delivery-cliente-endereco-resumo-cliente{
  font-size:14px;
  font-weight:800;
  color:#0f172a;
  margin-bottom:6px;
}

.delivery-cliente-endereco-resumo-texto{
  font-size:13px;
  line-height:1.55;
  color:#475569;
}

.delivery-cliente-endereco-resumo-btn{
  width:40px;
  height:40px;
  border:1px solid rgba(15,23,42,.10);
  border-radius:12px;
  background:#fff;
  color:#334155;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  flex:0 0 40px;
}

.delivery-cliente-endereco-resumo-btn:hover{
  background:#f1f5f9;
}

.delivery-cliente-endereco-acoes{
  margin-top:16px;
  width:100%;
  display:flex;
  justify-content:flex-end;
}

#checkoutEnderecoResumoAcoes .delivery-cliente-btn-finalizar,
#checkoutEnderecoFormularioWrap .delivery-cliente-btn-finalizar{
  margin-left:auto;
}
/* =========================================================
   DELIVERY
=========================================================*/

.page-delivery {
  overflow: hidden;
}

.page-delivery .content {
  height: calc(100vh - 70px);
  overflow: hidden;
}

.delivery-wrap {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  height: 100%;
  min-height: 0;
}

.delivery-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
  overflow: hidden;
  min-height: 0;
}

.delivery-card-sidebar,
.delivery-card-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.delivery-card-head {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(15, 23, 42, .06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 0 0 auto;
}

.delivery-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.delivery-card-sub {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

.delivery-body {
  padding: 13px 18px 18px;
}

.delivery-sidebar-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1 1 auto;
  min-height: 0;
}

.delivery-main-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.delivery-top-filtros {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 0 0 auto;
}

.delivery-resumo-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.delivery-resumo-card {
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
  text-align: left;
  cursor: pointer;
  transition: .18s ease;
}

.delivery-resumo-card:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, .20);
}

.delivery-resumo-card.is-active {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .10);
  background: #f8fbff;
}

.delivery-resumo-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.delivery-resumo-card strong {
  display: block;
  font-size: 24px;
  line-height: 1;
  color: #0f172a;
  font-weight: 800;
}

.delivery-search {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(0, 0, 0, .10);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.delivery-search:focus {
  border-color: rgba(37, 99, 235, .40);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .10);
}

.delivery-list-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.delivery-list {
  height: 100%;
  overflow-y: auto;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.delivery-list::-webkit-scrollbar {
  width: 8px;
}

.delivery-list::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, .55);
  border-radius: 999px;
}

.delivery-empty-list {
  border: 1px dashed rgba(15, 23, 42, .12);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  color: #64748b;
  background: #fff;
}

.delivery-order {
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
  cursor: pointer;
  transition: .18s ease;
}

.delivery-order:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, .06);
}

.delivery-order.is-selected {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .10);
}

.delivery-order.is-novo{
  border-color:rgba(34,197,94,.55);
  background:linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
  box-shadow:
    0 0 0 1px rgba(34,197,94,.10),
    0 12px 24px rgba(34,197,94,.12);
  animation:deliveryNovoPulseGreen 1.25s ease-in-out infinite;
}

.delivery-order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.delivery-order-id {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.delivery-order-id--hero {
  font-size: 16px;
}

.delivery-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
  border: 1px solid transparent;
}

.delivery-status-badge.is-novo {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.delivery-status-badge.is-preparo {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fed7aa;
}

.delivery-status-badge.is-rota {
  background: #f5f3ff;
  color: #7c3aed;
  border-color: #ddd6fe;
}

.delivery-status-badge.is-entregue {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.delivery-status-badge.is-cancelado {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.delivery-order-name {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.delivery-order-meta {
  margin-top: 6px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
}

.delivery-order-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.delivery-order-time {
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
}

.delivery-order-price {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
}

.delivery-center-empty {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #64748b;
  padding: 30px;
  min-height: 0;
}

.delivery-center-empty-inner i {
  font-size: 44px;
  color: #94a3b8;
  margin-bottom: 14px;
}

.delivery-center-empty-inner h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 18px;
  font-weight: 700;
}

.delivery-center-empty-inner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.delivery-detail-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.delivery-detail-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

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

.delivery-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.delivery-detail-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
}

.delivery-detail-card--spaced {
  margin-top: 0;
}

.delivery-detail-card-title {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.delivery-detail-subline {
  margin-bottom: 12px;
  font-size: 12px;
  color: #64748b;
}

.delivery-detail-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.delivery-detail-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(15, 23, 42, .06);
}

.delivery-detail-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.delivery-detail-label {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.delivery-detail-value {
  color: #334155;
  font-size: 13px;
  font-weight: 500;
  text-align: right;
  line-height: 1.5;
}

.delivery-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.delivery-item-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:14px;
  background:#f8fafc;
}

.delivery-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.delivery-item-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 56px;
  background: #e5e7eb;
  border: 1px solid rgba(15, 23, 42, .08);
}

.delivery-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.delivery-item-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 16px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}


.delivery-item-main {
  flex: 1;
  min-width: 0;
}

.delivery-item-name {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.delivery-item-meta {
  margin-top: 5px;
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.delivery-item-obs {
  margin-top: 6px;
  font-size: 12px;
  color: #475569;
  line-height: 1.5;
}

.delivery-item-price {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.delivery-detail-observacao {
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
  font-weight: 400;
}

.delivery-empty-itens {
  font-size: 13px;
  color: #64748b;
}

.btn-delivery {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.btn-delivery:hover {
  transform: translateY(-1px);
}

.btn-delivery-primary {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 10px 18px rgba(37, 99, 235, .18);
}

.btn-delivery-soft {
  background: #eef2ff;
  color: #1e3a8a;
}

.btn-delivery-success {
  background: #ecfdf5;
  color: #047857;
}

.btn-delivery-warn {
  background: #fff7ed;
  color: #c2410c;
}

.btn-delivery-disabled {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}

@media (max-width: 1200px) {
  .delivery-wrap {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .delivery-card {
    min-height: 0;
  }

  .delivery-card-sidebar {
    height: auto;
  }

  .delivery-list-wrap {
    max-height: 420px;
  }
}

@media (max-width: 900px) {
  .delivery-resumo-cards {
    grid-template-columns: 1fr;
  }

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

  .delivery-detail-actions {
    flex-direction: column;
  }

  .btn-delivery {
    width: 100%;
  }

  .delivery-item-row {
    flex-direction: column;
  }

  .delivery-order-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@keyframes deliveryNovoPulseGreen{
  0%{
    transform:translateY(0);
    box-shadow:
      0 0 0 0 rgba(34,197,94,.28),
      0 12px 24px rgba(34,197,94,.10);
  }
  50%{
    transform:translateY(-1px);
    box-shadow:
      0 0 0 8px rgba(34,197,94,0),
      0 16px 30px rgba(34,197,94,.16);
  }
  100%{
    transform:translateY(0);
    box-shadow:
      0 0 0 0 rgba(34,197,94,0),
      0 12px 24px rgba(34,197,94,.10);
  }
}

.delivery-order.is-novo.is-selected{
  border-color:#22c55e;
  box-shadow:
    0 0 0 2px rgba(34,197,94,.18),
    0 14px 28px rgba(34,197,94,.14);
}

.delivery-item-obs{
  margin-top:6px;
  font-size:12px;
  line-height:1.4;
  color:#6b7280;
}
.page-categorias .cat-card{
  position: relative;
}

.page-categorias .cat-card.is-dragging{
  opacity: .55;
  transform: scale(.98);
}

.page-categorias .cat-drag-handle{
  position:absolute;
  top:10px;
  right:10px;
  z-index:3;
  width:34px;
  height:34px;
  border:0;
  border-radius:10px;
  background:rgba(255,255,255,.92);
  box-shadow:0 2px 10px rgba(0,0,0,.12);
  cursor:grab;
  font-size:16px;
  font-weight:800;
  color:#2b2f38;
}

.page-categorias .cat-drag-handle:active{
  cursor:grabbing;
}

/* =========================================
   PRODUTO SEM ESTOQUE (visual desativado)
========================================= */

.produto-sem-estoque{
    opacity: .45;
    filter: grayscale(80%);
}

.produto-sem-estoque:hover{
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

.modal-bg.is-open{
  display:flex !important;
}

  
  @media (max-width: 980px) {
    .fin-grid { grid-template-columns: 1fr; }
  }

  .fin-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 16px 14px;
    box-shadow: 0 10px 22px rgba(0,0,0,0.08);
    min-height: 320px;
    overflow: hidden;
  }
  .fin-card-head {
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
  }
  .fin-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    color: #111827;
  }
  .fin-card-sub {
    margin: 0;
    color: #6B7280;
    font-size: 13px;
    font-weight: 600;
  }
  .fin-card-body {
    margin-top: 12px;
  }

  .fin-placeholder {
    background: #F3F4F6;
    border-radius: 14px;
    height: 220px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#6B7280;
    font-weight: 700;
    text-align:center;
    padding: 14px;
  }

  .fin-list {
    display:flex;
    flex-direction:column;
    gap: 12px;
    margin-top: 10px;
  }

  .fin-item {
    position: relative;
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 14px 16px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    overflow: hidden;
  }

  .fin-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2ea3f2 0%, #60a5fa 100%);
  }

  .fin-item:hover {
    transform: translateY(-3px);
    border-color:#D1D5DB;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
  }

  .fin-item-left {
    display:flex;
    align-items:center;
    gap: 12px;
    min-width: 0;
  }

  .fin-dot {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(46,163,242,0.08);
    color:#2ea3f2;
    flex: 0 0 auto;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size: 18px;
  }

  .fin-name {
    font-weight: 900;
    color:#111827;
    white-space: nowrap;
    overflow:hidden;
    text-overflow: ellipsis;
    max-width: 260px;
    font-size: 15px;
  }

  .fin-values {
    display:flex;
    align-items:center;
    gap: 14px;
    flex: 0 0 auto;
    font-weight: 800;
  }

  .fin-col {
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap: 4px;
    min-width: 128px;
    padding: 8px 10px;
    background:#F9FAFB;
    border:1px solid #EEF2F7;
    border-radius: 12px;
  }

  .fin-col small {
    color:#6B7280;
    font-weight:700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .03em;
  }

  .fin-col strong {
    color:#111827;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
  }

  .fin-total {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid #EEF2F7;
    display:flex;
    align-items:center;
    justify-content: space-between;
    font-weight: 900;
    color:#111827;
  }

  .fin-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 140px));
    gap: 18px;
    margin-top: 18px;
  }

  .fin-mini-card {
    position: relative;
    width: 140px;
    min-height: 160px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 14px;
    gap: 14px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    overflow: hidden;
  }

  .fin-mini-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2ea3f2 0%, #60a5fa 100%);
  }

  .fin-mini-card:hover {
    transform: translateY(-4px);
    border-color: #D1D5DB;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
  }

  .fin-mini-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(46,163,242,0.08);
    line-height: 1;
  }

  .fin-mini-label {
    font-size: 20px;
    font-weight: 700;
    color: #1f2a44;
    text-align: center;
    line-height: 1.2;
  }

    .fin-wrap { padding: 20px; }

    .cad-grid{ display:grid; grid-template-columns: 280px 1fr; gap: 18px; align-items:start; }
    @media (max-width: 980px){ .cad-grid{ grid-template-columns: 1fr; } }

    .cad-card{ background:#fff; border-radius:16px; padding: 14px; box-shadow: 0 10px 22px rgba(0,0,0,0.08); overflow:hidden; }

    .cad-title{ margin:0 0 10px; font-size:16px; font-weight:900; color:#111827; display:flex; align-items:center; justify-content:space-between; gap:10px; }

    .cad-menu{ display:flex; flex-direction:column; gap:10px; margin-top:10px; }

    .cad-item{
      display:flex; align-items:center; justify-content:space-between; gap:10px;
      padding: 10px 12px; border-radius: 14px; background:#F9FAFB; border:1px solid #EEF2F7;
      text-decoration:none; color:#111827; font-weight:800;
    }
    .cad-item small{ color:#6B7280; font-weight:800; }
    .cad-item.active{ background:#111827; border-color:#111827; color:#fff; }
    .cad-item.active small{ color:#E5E7EB; }

    .cad-panel-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
    .cad-panel-head h3{ margin:0; font-size:18px; font-weight:900; color:#111827; }

    .btn-add{
      border:0; border-radius: 12px; padding: 10px 12px; cursor:pointer; font-weight:900;
      background:#111827; color:#fff; display:flex; align-items:center; gap:8px;
    }

    .placeholder{
      background:#F3F4F6; border-radius: 14px; padding: 16px; color:#6B7280; font-weight:800;
      min-height: 260px; display:flex; align-items:center; justify-content:center; text-align:center;
    }

    .msg{ border-radius: 14px; padding: 10px 12px; font-weight: 800; margin-bottom: 12px; }
    .msg.ok{ background:#ECFDF5; color:#065F46; border:1px solid #A7F3D0; }
    .msg.err{ background:#FEF2F2; color:#991B1B; border:1px solid #FECACA; }

    .list{ display:flex; flex-direction:column; gap: 10px; }

    .row{
      display:flex; align-items:center; justify-content:space-between; gap: 12px;
      padding: 12px 12px; border-radius: 16px; border:1px solid #EEF2F7; background:#fff;
    }
    .left{ display:flex; flex-direction:column; gap: 4px; min-width:0; }
    .name{ font-weight: 900; color:#111827; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width: 520px; }
    .meta{ color:#6B7280; font-weight: 800; font-size: 12px; }
    .actions{ display:flex; align-items:center; gap: 8px; flex:0 0 auto; }
    .btn-sm{ border:0; border-radius: 12px; padding: 9px 10px; cursor:pointer; font-weight: 900; background:#F3F4F6; color:#111827; }
    .btn-sm.danger{ background:#fee2e2; color:#991b1b; }

    .section-title{
      font-size: 14px; font-weight: 900; color:#6B7280;
      text-transform: uppercase; letter-spacing: .04em;
      margin: 6px 0 0;
      display:flex; align-items:center; gap:10px;
    }
    .badge{
      background:#F3F4F6; border:1px solid #E5E7EB; color:#111827;
      border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 900;
    }

    /* Modal */
    .modal-overlay{
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.35);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 18px;
      z-index: 9999;
    }

.fin-wrap

    .cad-modal-box{
      width: 100%;
      max-width: 720px;
      background: #fff;
      border-radius: 16px;
      box-shadow: 0 20px 40px rgba(0,0,0,0.2);
      padding: 14px;
      max-height: 86vh;
      overflow: auto;
      display: block !important;
    }

    #tagModal{
      z-index: 99999;
    }

    .cad-modal-box h4{
      margin: 0 0 10px;
      font-size: 16px;
      font-weight: 900;
      color: #111827;
    }

    .grid2{ display:grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    @media (max-width: 620px){ .grid2{ grid-template-columns: 1fr; } }

    .field{ display:flex; flex-direction:column; gap: 6px; margin-top: 8px; }
    .field label{ font-size: 12px; font-weight: 900; color:#6B7280; }
    .field input, .field select{
      border:1px solid #E5E7EB; border-radius: 12px; padding: 10px 10px; font-weight: 800; outline:none;
    }

    .radio-line{ display:flex; align-items:center; gap: 14px; margin-top: 10px; font-weight: 900; color:#111827; }
    .radio-line label{ font-weight: 900; color:#111827; display:flex; align-items:center; gap: 6px; }

    .modal-actions{ display:flex; align-items:center; justify-content:flex-end; gap: 10px; margin-top: 12px; }
    .btn-cancel{ border:0; border-radius: 12px; padding: 10px 12px; cursor:pointer; font-weight: 900; background:#F3F4F6; color:#111827; }
    .btn-save{ border:0; border-radius: 12px; padding: 10px 12px; cursor:pointer; font-weight: 900; background:#111827; color:#fff; }

    /* --- estilos de categorias (mantidos) --- */
    .cat-wrap{ display:flex; flex-direction:column; gap: 14px; }
    .cat-section-title{
      font-size: 14px; font-weight: 900; color:#6B7280;
      text-transform: uppercase; letter-spacing: .04em;
      margin: 4px 0 0;
    }
    .cat-block{ border:1px solid #EEF2F7; border-radius: 16px; overflow:hidden; }
    .cat-row{
      display:flex; align-items:center; justify-content:space-between; gap: 12px;
      padding: 12px 12px; background:#fff;
    }
    .cat-row + .cat-row{ border-top:1px solid #EEF2F7; }
    .cat-left{ display:flex; flex-direction:column; gap: 4px; min-width: 0; }
    .cat-name{ font-weight: 900; color:#111827; white-space: nowrap; overflow:hidden; text-overflow: ellipsis; max-width: 520px; }
    .cat-meta{ color:#6B7280; font-weight: 800; font-size: 12px; }
    .cat-actions{ display:flex; align-items:center; gap: 8px; flex: 0 0 auto; }

    /* --- Tags (novo) --- */
    .tag-dot{
      width: 12px; height: 12px; border-radius: 999px;
      display:inline-block; margin-right: 10px;
      border: 1px solid rgba(0,0,0,0.08);
      flex: 0 0 auto;
    }
    .tag-name-line{ display:flex; align-items:center; min-width:0; }
    .palette{ display:flex; flex-wrap:wrap; gap: 8px; margin-top: 8px; }
    .swatch{
      width: 28px; height: 28px; border-radius: 10px;
      border: 2px solid rgba(0,0,0,0.08);
      cursor:pointer;
      display:inline-flex; align-items:center; justify-content:center;
      background: #fff;
    }
    .swatch.active{ border-color:#111827; box-shadow: 0 0 0 2px rgba(17,24,39,0.12); }
    .swatch > span{
      width: 18px; height: 18px; border-radius: 8px; display:block;
      border: 1px solid rgba(0,0,0,0.10);
    }
    .tag-preview{
      display:flex; align-items:center; gap:10px;
      margin-top:10px; padding:10px; border-radius:14px;
      border:1px solid #EEF2F7; background:#F9FAFB;
      font-weight: 900; color:#111827;
    }
	
	/* --- Ícones de conta --- */
.icon-line{
  display:flex; align-items:center; gap:10px;
  margin-top:6px;
}

.icon-preview{
  display:flex; align-items:center; gap:10px;
  border:1px solid #E5E7EB;
  background:#F9FAFB;
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 900;
  color:#111827;
  min-height: 42px;
}

.icon-preview img{
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 6px;
}

.icon-hint{
  display:block;
  margin-top:6px;
  color:#6B7280;
  font-weight:800;
  font-size:12px;
}

/* modal ícones */
.icon-tabs{
  display:flex; gap:10px;
  margin: 12px 0 10px;
}

.icon-tab{
  border:1px solid #E5E7EB;
  background:#F3F4F6;
  color:#111827;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 900;
  cursor:pointer;
}

.icon-tab.active{
  background:#111827;
  color:#fff;
  border-color:#111827;
}

.icon-search{
  display:flex; align-items:center; gap:10px;
  border:1px solid #E5E7EB;
  background:#fff;
  border-radius: 14px;
  padding: 10px 12px;
}

.icon-search input{
  border:0;
  outline:none;
  width:100%;
  font-weight:800;
}

.icon-grid{
  margin-top: 10px;
  display:grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
}

@media (max-width: 760px){
  .icon-grid{ grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 520px){
  .icon-grid{ grid-template-columns: repeat(4, 1fr); }
}

.icon-item{
  border:1px solid #E5E7EB;
  background:#fff;
  border-radius: 14px;
  padding: 10px;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  min-height: 92px;
}

.icon-item.active{
  border-color:#111827;
  box-shadow: 0 0 0 2px rgba(17,24,39,.12);
}

.icon-item img{
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
}

.icon-item small{
  font-weight:900;
  color:#6B7280;
  text-align:center;
  width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* =========================================================
   FINANCEIRO > CONTA
   Escopado para evitar conflito com outras telas
   =======================================================*/

.page-financeiro .page-grid{
  display:grid;
  grid-template-columns: 340px 1fr;
  gap:18px;
  align-items:start;
}

.page-financeiro .left-block{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.page-financeiro .page-grid > .card,
.page-financeiro .left-block > .card{
  background:#fff;
  border-radius:16px;
  padding:16px;
  box-shadow:0 10px 22px rgba(0,0,0,.08);
  overflow:visible;
}

.page-financeiro .card-period{
  overflow:visible;
}

.page-financeiro .acc-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

.page-financeiro .acc-title{
  font-size:18px;
  font-weight:900;
  color:#111827;
}

.page-financeiro .acc-select{
  width:100%;
  border:1px solid #E5E7EB;
  border-radius:12px;
  padding:10px 12px;
  font-weight:800;
  color:#111827;
  background:#fff;
  outline:none;
}

.page-financeiro .period-row{
  margin-top:10px;
}

.page-financeiro .period-menu{
  position:relative;
}

.page-financeiro .period-btn{
  width:100%;
  border:1px solid #E5E7EB;
  border-radius:12px;
  padding:10px 12px;
  background:#fff;
  color:#111827;
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  cursor:pointer;
}

.page-financeiro .period-dropdown{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  right:0;
  z-index:50;
  display:none;
  background:#fff;
  border:1px solid #E5E7EB;
  border-radius:14px;
  box-shadow:0 16px 32px rgba(0,0,0,.12);
  overflow:hidden;
}

.page-financeiro .period-item{
  padding:11px 12px;
  font-weight:800;
  color:#111827;
  cursor:pointer;
  background:#fff;
}

.page-financeiro .period-item + .period-item{
  border-top:1px solid #EEF2F7;
}

.page-financeiro .period-item:hover{
  background:#F9FAFB;
}

.page-financeiro .period-item.active{
  background:#111827;
  color:#fff;
}

.page-financeiro .situacao-title{
  margin:0 0 14px;
  font-size:16px;
  font-weight:900;
  color:#111827;
}

.page-financeiro .sit-grid{
  display:grid;
  grid-template-columns: 1fr auto;
  gap:10px 14px;
  align-items:center;
}

.page-financeiro .sit-grid .lbl{
  color:#6B7280;
  font-weight:800;
  font-size:13px;
}

.page-financeiro .sit-grid .v1{
  color:#111827;
  font-weight:900;
  font-size:14px;
  text-align:right;
}

.page-financeiro .sit-grid .v1.pos{
  color:#10B981;
}

.page-financeiro .sit-grid .v1.neg{
  color:#EF4444;
}

.page-financeiro .right-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:14px;
}

.page-financeiro .right-head h3{
  margin:0;
  font-size:18px;
  font-weight:900;
  color:#111827;
}

.page-financeiro .btn-novo{
  border:0;
  border-radius:12px;
  padding:10px 12px;
  cursor:pointer;
  font-weight:900;
  background:#111827;
  color:#fff;
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.page-financeiro .filters{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.page-financeiro .chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid #E5E7EB;
  background:#F9FAFB;
  color:#111827;
  font-weight:800;
  font-size:12px;
}

.page-financeiro .dot{
  width:10px;
  height:10px;
  border-radius:999px;
  display:inline-block;
}

.page-financeiro .page-grid > .card > .row{
  position:relative;
  display:grid;
  grid-template-columns: 110px 1fr auto auto;
  align-items:center;
  gap:12px;
  padding:12px 0;
  border-top:1px solid #EEF2F7;
}

.page-financeiro .page-grid > .card > .row:first-of-type{
  border-top:0;
}

.page-financeiro .date-wrap{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.page-financeiro .st-dot{
  width:10px;
  height:10px;
  border-radius:999px;
  display:inline-block;
  flex:0 0 auto;
}

.page-financeiro .date{
  font-weight:900;
  color:#111827;
  white-space:nowrap;
}

.page-financeiro .desc{
  color:#111827;
  font-weight:800;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.page-financeiro .val{
  font-weight:900;
  white-space:nowrap;
  text-align:right;
}

.page-financeiro .val.pos{
  color:#10B981;
}

.page-financeiro .val.neg{
  color:#EF4444;
}

.page-financeiro .val.trans{
  color:#3B82F6;
}

.page-financeiro .row-actions{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:flex-end;
}

.page-financeiro .btn-more{
  border:1px solid #E5E7EB;
  background:#fff;
  color:#111827;
  border-radius:12px;
  width:36px;
  height:36px;
  font-size:18px;
  line-height:1;
  cursor:pointer;
}

.page-financeiro .more-menu{
  position:absolute;
  top:42px;
  right:0;
  z-index:80;
  min-width:200px;
  display:none;
  background:#fff;
  border:1px solid #E5E7EB;
  border-radius:14px;
  box-shadow:0 20px 38px rgba(0,0,0,.14);
  overflow:hidden;
}

.page-financeiro .more-item{
  padding:11px 12px;
  font-weight:800;
  color:#111827;
  cursor:pointer;
  background:#fff;
}

.page-financeiro .more-item + .more-item{
  border-top:1px solid #EEF2F7;
}

.page-financeiro .more-item:hover{
  background:#F9FAFB;
}

.page-financeiro .more-item.danger{
  color:#991B1B;
  background:#FFF7F7;
}

.page-financeiro .more-item.danger:hover{
  background:#FEE2E2;
}

/* =========================================================
   MODAL NOVO LANÇAMENTO / CONFIRMAR LANÇAMENTO
   =======================================================*/

.page-financeiro .nl-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.38);
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
  z-index:100000;
}

.page-financeiro .nl-modal{
  width:100%;
  max-width:1040px;
  max-height:90vh;
  overflow:auto;
  background:#fff;
  border-radius:18px;
  box-shadow:0 24px 50px rgba(0,0,0,.22);
}

.page-financeiro .nl-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:16px 16px 12px;
  border-bottom:1px solid #EEF2F7;
}

.page-financeiro .nl-head-left{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.page-financeiro .nl-title{
  margin:0;
  font-size:18px;
  font-weight:900;
  color:#111827;
}

.page-financeiro .nl-close{
  border:0;
  background:#F3F4F6;
  color:#111827;
  width:38px;
  height:38px;
  border-radius:12px;
  cursor:pointer;
  font-weight:900;
}

.page-financeiro .nl-typebar{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.page-financeiro .nl-chip{
  border:1px solid #E5E7EB;
  background:#F9FAFB;
  color:#111827;
  border-radius:999px;
  padding:9px 12px;
  font-weight:900;
  cursor:pointer;
}

.page-financeiro .nl-chip.active{
  background:#111827;
  border-color:#111827;
  color:#fff;
}

.page-financeiro .nl-body{
  padding:16px;
}

.page-financeiro .nl-row{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:12px;
  margin-bottom:12px;
}

.page-financeiro .nl-field{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
}

.page-financeiro .nl-field label{
  font-size:12px;
  font-weight:900;
  color:#6B7280;
}

.page-financeiro .nl-field input,
.page-financeiro .nl-field select,
.page-financeiro .nl-field textarea{
  width:100%;
  border:1px solid #E5E7EB;
  border-radius:12px;
  padding:10px 12px;
  font-weight:800;
  color:#111827;
  background:#fff;
  outline:none;
}

.page-financeiro .nl-field textarea{
  min-height:96px;
  resize:vertical;
}

.page-financeiro .nl-help{
  display:none;
  color:#991B1B;
  font-size:12px;
  font-weight:800;
}

.page-financeiro .nl-subbox{
  margin-top:8px;
  border:1px solid #EEF2F7;
  background:#F9FAFB;
  border-radius:16px;
  padding:12px;
}

.page-financeiro .nl-inline{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.page-financeiro .nl-radio-line{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}

.page-financeiro .nl-divider{
  height:1px;
  background:#EEF2F7;
  margin:14px 0;
}

.page-financeiro .nl-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px 16px;
  border-top:1px solid #EEF2F7;
  flex-wrap:wrap;
}

.page-financeiro .nl-foot-left{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.page-financeiro .nl-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.page-financeiro .nl-save,
.page-financeiro .nl-saveplus{
  border:0;
  border-radius:12px;
  cursor:pointer;
  font-weight:900;
  background:#111827;
  color:#fff;
}

.page-financeiro .nl-save{
  padding:10px 14px;
}

.page-financeiro .nl-saveplus{
  width:42px;
  height:42px;
  font-size:20px;
  line-height:1;
}

.page-financeiro .nl-attach{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.page-financeiro .nl-attach input[type="file"]{
  display:none;
}

.page-financeiro .nl-attach-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid #E5E7EB;
  background:#F9FAFB;
  color:#111827;
  font-weight:900;
  cursor:pointer;
}

/* =========================================================
   MODAL FECHAR FATURA
   =======================================================*/

.page-financeiro .ff-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.38);
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
  z-index:100002;
}

.page-financeiro .ff-modal{
  width:100%;
  max-width:560px;
  background:#fff;
  border-radius:18px;
  box-shadow:0 24px 50px rgba(0,0,0,.22);
  overflow:hidden;
}

.page-financeiro .ff-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px;
  border-bottom:1px solid #EEF2F7;
}

.page-financeiro .ff-title{
  margin:0;
  font-size:18px;
  font-weight:900;
  color:#111827;
}

.page-financeiro .ff-close{
  border:0;
  background:#F3F4F6;
  color:#111827;
  width:38px;
  height:38px;
  border-radius:12px;
  cursor:pointer;
  font-weight:900;
}

.page-financeiro .ff-body{
  padding:16px;
}

.page-financeiro .ff-total{
  background:#F9FAFB;
  border:1px solid #EEF2F7;
  border-radius:16px;
  padding:14px;
  margin-bottom:14px;
}

.page-financeiro .ff-total-valor{
  font-size:26px;
  font-weight:900;
  color:#111827;
  line-height:1.1;
}

.page-financeiro .ff-total-data{
  margin-top:6px;
  color:#6B7280;
  font-weight:800;
  font-size:13px;
}

.page-financeiro .ff-alert{
  display:flex;
  gap:10px;
  padding:12px 14px;
  border-radius:14px;
  background:#FFF7ED;
  border:1px solid #FED7AA;
  color:#9A3412;
  font-weight:800;
  margin-bottom:14px;
}

.page-financeiro .ff-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}

.page-financeiro .ff-field{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.page-financeiro .ff-field label{
  font-size:12px;
  font-weight:900;
  color:#6B7280;
}

.page-financeiro .ff-field input,
.page-financeiro .ff-field select{
  width:100%;
  border:1px solid #E5E7EB;
  border-radius:12px;
  padding:10px 12px;
  font-weight:800;
  color:#111827;
  background:#fff;
  outline:none;
}

.page-financeiro .ff-foot{
  padding:0 16px 16px;
}

.page-financeiro .ff-btn{
  width:100%;
  border:0;
  border-radius:12px;
  padding:12px 14px;
  cursor:pointer;
  font-weight:900;
  background:#111827;
  color:#fff;
}

/* =========================================================
   RESPONSIVO
   =======================================================*/

@media (max-width: 1100px){
  .page-financeiro .page-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 820px){
  .page-financeiro .nl-row{
    grid-template-columns:1fr 1fr;
  }

  .page-financeiro .page-grid > .card > .row{
    grid-template-columns: 95px 1fr auto;
  }

  .page-financeiro .row-actions{
    grid-column: 1 / -1;
    justify-content:flex-end;
  }
}

@media (max-width: 620px){
  .page-financeiro .nl-row,
  .page-financeiro .ff-grid{
    grid-template-columns:1fr;
  }

  .page-financeiro .right-head{
    align-items:flex-start;
  }

  .page-financeiro .page-grid > .card > .row{
    grid-template-columns:1fr;
    gap:8px;
  }

  .page-financeiro .date-wrap,
  .page-financeiro .desc,
  .page-financeiro .val{
    text-align:left;
  }

  .page-financeiro .row-actions{
    justify-content:flex-start;
  }

  .page-financeiro .nl-foot{
    flex-direction:column;
    align-items:stretch;
  }

  .page-financeiro .nl-actions{
    width:100%;
  }

  .page-financeiro .nl-save{
    flex:1;
  }
}


    .rel-wrap { padding: 20px; }

    .rel-section-title {
      margin: 0 0 6px;
      font-size: 20px;
      font-weight: 900;
      color: #111827;
    }

    .rel-section-sub {
      margin: 0 0 18px;
      font-size: 13px;
      font-weight: 600;
      color: #6B7280;
    }

    .rel-grid-top {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 18px;
      margin-bottom: 26px;
    }

    @media (max-width: 980px) {
      .rel-grid-top {
        grid-template-columns: 1fr;
      }
    }

    .rel-card {
      background: #ffffff;
      border-radius: 16px;
      padding: 16px 16px 14px;
      box-shadow: 0 10px 22px rgba(0,0,0,0.08);
      overflow: hidden;
      min-height: 300px;
    }

    .rel-card-head {
      display:flex;
      align-items:center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 10px;
    }

    .rel-card-title {
      margin: 0;
      font-size: 18px;
      font-weight: 900;
      color: #111827;
    }

    .rel-card-sub {
      margin: 0;
      color: #6B7280;
      font-size: 13px;
      font-weight: 600;
    }

    .rel-card-body {
      margin-top: 12px;
    }

    .rel-placeholder {
      background: #F3F4F6;
      border-radius: 14px;
      min-height: 210px;
      display:flex;
      align-items:center;
      justify-content:center;
      color:#6B7280;
      font-weight: 700;
      text-align:center;
      padding: 14px;
    }

    .rel-total {
      margin-top: 14px;
      padding-top: 10px;
      border-top: 1px solid #EEF2F7;
      display:flex;
      align-items:center;
      justify-content: space-between;
      font-weight: 900;
      color:#111827;
    }

    .rel-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

    .rel-mini-card {
  position: relative;
  width: 100%;
  min-height: 140px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 18px 16px;
  gap: 12px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow: hidden;
}

.rel-mini-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2ea3f2 0%, #60a5fa 100%);
}

    .rel-mini-card:hover {
      transform: translateY(-4px);
      border-color: #D1D5DB;
      box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
    }

    .rel-mini-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 26px;
      width: 56px;
      height: 56px;
      border-radius: 14px;
      background: rgba(46,163,242,0.08);
      line-height: 1;
      flex: 0 0 auto;
    }

    .rel-mini-label {
      font-size: 16px;
      font-weight: 800;
      color: #1f2a44;
      line-height: 1.25;
    }

    .rel-mini-desc {
      font-size: 12px;
      font-weight: 600;
      color: #6B7280;
      line-height: 1.4;
      margin-top: -4px;
    }

/* =========================================================
   FINANCEIRO > NFE IMPORTAR
   =======================================================*/

.page-financeiro .nfe-import-wrap{
  max-width:1180px;
}

.page-financeiro .nfe-import-card{
  background:#fff;
  border-radius:18px;
  box-shadow:0 10px 30px rgba(0,0,0,.06);
  padding:24px;
}

.page-financeiro .nfe-import-card + .nfe-import-card{
  margin-top:22px;
}

.page-financeiro .nfe-import-title{
  margin:0 0 10px;
  font-size:28px;
  color:#111827;
}

.page-financeiro .nfe-import-subtitle{
  margin:0 0 8px;
  font-size:22px;
  color:#111827;
}

.page-financeiro .nfe-import-sub{
  color:#6b7280;
  margin-bottom:22px;
  line-height:1.5;
}

.page-financeiro .nfe-import-field{
  margin-bottom:18px;
}

.page-financeiro .nfe-import-label{
  display:block;
  font-weight:700;
  margin-bottom:8px;
  color:#111827;
}

.page-financeiro .nfe-import-input-file{
  width:100%;
  border:1px solid #d1d5db;
  border-radius:12px;
  padding:14px;
  background:#fff;
  box-sizing:border-box;
}

.page-financeiro .nfe-import-acoes{
  display:flex;
  gap:10px;
}

.page-financeiro .nfe-import-btn{
  border:0;
  height:46px;
  padding:0 18px;
  border-radius:12px;
  font-weight:700;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
}

.page-financeiro .nfe-import-btn-pri{
  background:#000b8c;
  color:#fff;
}

.page-financeiro .nfe-import-btn-sec{
  background:#fff;
  color:#111827;
  border:1px solid #d1d5db;
}

.page-financeiro .nfe-import-retorno{
  margin-top:18px;
  padding:14px 16px;
  border-radius:12px;
  display:none;
  font-weight:600;
}

.page-financeiro .nfe-import-retorno.ok{
  display:block;
  background:#ecfdf3;
  color:#027a48;
  border:1px solid #abefc6;
}

.page-financeiro .nfe-import-retorno.erro{
  display:block;
  background:#fff4ed;
  color:#c4320a;
  border:1px solid #ffd6ae;
}

.page-financeiro .nfe-import-link-conf{
  display:inline-block;
  margin-top:12px;
  font-weight:700;
  color:#111827;
  text-decoration:none;
}

.page-financeiro .nfe-import-lista-topo{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.page-financeiro .nfe-import-lista-topo .nfe-import-sub{
  margin:0;
}

.page-financeiro .nfe-import-vazia{
  border:1px dashed #d1d5db;
  border-radius:14px;
  padding:18px;
  color:#6b7280;
  background:#fafafa;
}

.page-financeiro .nfe-import-tabela-wrap{
  overflow:auto;
  border:1px solid #e5e7eb;
  border-radius:14px;
}

.page-financeiro .nfe-import-tabela{
  width:100%;
  border-collapse:collapse;
  min-width:860px;
  background:#fff;
}

.page-financeiro .nfe-import-tabela th,
.page-financeiro .nfe-import-tabela td{
  padding:14px 16px;
  border-bottom:1px solid #e5e7eb;
  text-align:left;
  vertical-align:middle;
  font-size:14px;
}

.page-financeiro .nfe-import-tabela th{
  background:#f9fafb;
  font-size:13px;
  color:#6b7280;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.page-financeiro .nfe-import-tabela tr:last-child td{
  border-bottom:0;
}

.page-financeiro .nfe-import-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:92px;
  height:30px;
  padding:0 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.03em;
}

.page-financeiro .nfe-import-badge-pendente{
  background:#fff7ed;
  color:#c2410c;
  border:1px solid #fdba74;
}

.page-financeiro .nfe-import-badge-conferido{
  background:#eff6ff;
  color:#1d4ed8;
  border:1px solid #93c5fd;
}

.page-financeiro .nfe-import-acoes-linha{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

@media (max-width:768px){
  .page-financeiro .nfe-import-card{
    padding:18px;
  }

  .page-financeiro .nfe-import-title{
    font-size:24px;
  }

  .page-financeiro .nfe-import-subtitle{
    font-size:20px;
  }

  .page-financeiro .nfe-import-lista-topo{
    flex-direction:column;
  }
}
/* =========================================================
   FINANCEIRO > NFE CONFERENCIA
   =======================================================*/

.page-financeiro .nfe-conf-wrap {
  max-width: 1600px;
  margin: 24px auto;
  padding: 0 18px 40px;
}

.page-financeiro .nfe-conf-topo {
  background: #fff;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
  margin-bottom: 18px;
}

.page-financeiro .nfe-conf-topo h1 {
  margin: 0 0 10px;
  font-size: 24px;
}

.page-financeiro .nfe-conf-topo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 12px;
}

.page-financeiro .nfe-conf-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px;
}

.page-financeiro .nfe-conf-box small {
  display: block;
  color: #6b7280;
  margin-bottom: 4px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.page-financeiro .nfe-conf-box strong {
  font-size: 14px;
  display: block;
}

.page-financeiro .nfe-conf-box .nfe-conf-inp,
.page-financeiro .nfe-conf-box .nfe-conf-sel {
  margin-top: 4px;
}

.page-financeiro .nfe-conf-fin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.page-financeiro .nfe-conf-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #111827;
  cursor: pointer;
  user-select: none;
}

.page-financeiro .nfe-conf-check input {
  width: 18px;
  height: 18px;
  accent-color: #111827;
}

.page-financeiro .nfe-conf-fin-grid {
  grid-template-columns: repeat(4, minmax(180px, 1fr)) !important;
}

.page-financeiro .nfe-conf-btn-full {
  width: 100%;
}

.page-financeiro .nfe-conf-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.page-financeiro .nfe-conf-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .45);
}

.page-financeiro .nfe-conf-modal-box {
  position: relative;
  width: min(860px, 94vw);
  max-height: 88vh;
  overflow: auto;
  margin: 40px auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, .22);
  z-index: 2;
}

.page-financeiro .nfe-conf-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #eef0f4;
}

.page-financeiro .nfe-conf-modal-head h3 {
  margin: 0 0 4px;
  font-size: 22px;
}

.page-financeiro .nfe-conf-modal-close {
  border: 0;
  background: #f3f4f6;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.page-financeiro .nfe-conf-modal-body {
  padding: 18px 20px;
}

.page-financeiro .nfe-conf-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 20px;
  border-top: 1px solid #eef0f4;
  background: #fff;
  position: sticky;
  bottom: 0;
}

.page-financeiro .nfe-conf-parcela-row {
  display: grid;
  grid-template-columns: 100px 1fr 220px;
  gap: 12px;
  align-items: end;
  padding: 12px 0;
  border-bottom: 1px solid #eef0f4;
}

.page-financeiro .nfe-conf-parcela-row:last-child {
  border-bottom: 0;
}

.page-financeiro .nfe-conf-parcela-num {
  font-weight: 800;
  color: #111827;
}

.page-financeiro .nfe-conf-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
  overflow: hidden;
}

.page-financeiro .nfe-conf-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #eef0f4;
}

.page-financeiro .nfe-conf-card-head h2 {
  margin: 0;
  font-size: 20px;
}

.page-financeiro .nfe-conf-hint {
  color: #6b7280;
  font-size: 13px;
}

.page-financeiro .nfe-conf-table-wrap {
  overflow: auto;
  padding: 0 16px;
}

.page-financeiro .nfe-conf-table {
  width: 100%;
  min-width: 1280px;
  border-collapse: separate;
  border-spacing: 0;
}

.page-financeiro .nfe-conf-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f9fafb;
  color: #374151;
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .4px;
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.page-financeiro .nfe-conf-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid #eef0f4;
  vertical-align: top;
  background: #fff;
}

.page-financeiro .nfe-conf-table thead th:first-child,
.page-financeiro .nfe-conf-table tbody td:first-child {
  width: 64px;
  padding-left: 10px;
}

.page-financeiro .nfe-conf-table thead th:last-child,
.page-financeiro .nfe-conf-table tbody td:last-child {
  width: 220px;
  padding-right: 18px;
}

.page-financeiro .nfe-conf-table tbody tr:hover td {
  background: #fcfcfd;
}

.page-financeiro .nfe-conf-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  padding: 7px 12px;
  border-radius: 999px;
  white-space: nowrap;
  min-width: 88px;
  color: #fff;
  border: 0;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .08);
}

.page-financeiro .nfe-conf-status-associado {
  background: linear-gradient(135deg, #0b1fb8 0%, #2438d8 45%, #4f5dff 100%);
  color: #fff;
  border: 0;
}

.page-financeiro .nfe-conf-status-novo {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #fff;
  border: 0;
}

.page-financeiro .nfe-conf-mini {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
  line-height: 1.35;
}

.page-financeiro .nfe-conf-xml-nome {
  font-weight: 700;
  color: #111827;
  min-width: 260px;
}

.page-financeiro .nfe-conf-inp,
.page-financeiro .nfe-conf-sel {
  width: 100%;
  min-width: 120px;
  height: 40px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 0 10px;
  background: #fff;
  color: #111827;
  box-sizing: border-box;
}

.page-financeiro .nfe-conf-inp[type="number"] {
  min-width: 100px;
}

.page-financeiro .nfe-conf-nome-interno {
  min-width: 220px;
}

.page-financeiro .nfe-conf-stack-field {
  margin-bottom: 8px;
}

.page-financeiro .nfe-conf-stack-field:last-child {
  margin-bottom: 0;
}

.page-financeiro .nfe-conf-stack-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.page-financeiro .nfe-conf-inp-readonly {
  background: #f3f4f6;
  color: #374151;
}

.page-financeiro .nfe-conf-produto-select {
  min-width: 250px;
}

.page-financeiro .nfe-conf-btn.nfe-conf-btn-sec.nfe-conf-btn-novo-produto {
  height: 36px;
  padding: 0 12px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 10px;
  width: auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  border: 1px solid #d1d5db;
  background: #000b8c;
  color: #ffffff;
  box-shadow: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}


.page-financeiro .nfe-conf-btn.nfe-conf-btn-sec.nfe-conf-btn-novo-produto:active {
  transform: scale(0.98);
}


.page-financeiro .nfe-conf-btn-novo-produto:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(20, 34, 170, .28);
  filter: brightness(1.03);
}

.page-financeiro .nfe-conf-btn-novo-produto:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(20, 34, 170, .18);
}

.page-financeiro .nfe-conf-acoes {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 18px 20px;
  border-top: 1px solid #eef0f4;
  background: #fff;
}

.page-financeiro .nfe-conf-btn {
  border: 0;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

.page-financeiro .nfe-conf-btn-sec {
  background: #eef2ff;
  color: #3730a3;
}

.page-financeiro .nfe-conf-btn-pri {
  background: #111827;
  color: #fff;
}

@media (max-width:1200px) {
  .page-financeiro .nfe-conf-topo-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width:700px) {
  .page-financeiro .nfe-conf-topo-grid {
    grid-template-columns: 1fr;
  }

  .page-financeiro .nfe-conf-wrap {
    padding: 0 10px 28px;
  }
}


.nfe-import-btn-conf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  width: 100%;
  margin-top: 14px;
  padding: 14px 16px;

  border-radius: 10px;
  text-decoration: none;

  font-weight: 600;
  font-size: 14px;

  background: linear-gradient(135deg, #000b8c, #6366F1);
  color: #fff;

  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.25);

  transition: all 0.2s ease;
}

.nfe-import-btn-conf i:first-child {
  font-size: 16px;
  opacity: 0.9;
}

.nfe-import-btn-conf i:last-child {
  font-size: 13px;
  opacity: 0.8;
  transition: transform 0.2s ease;
}

.nfe-import-btn-conf:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(79, 70, 229, 0.35);
}

.nfe-import-btn-conf:hover i:last-child {
  transform: translateX(4px);
}

.nfe-import-btn-conf:active {
  transform: scale(0.98);
}

.nfe-import-wrap{
  max-width: 1180px;
  margin: 0 auto;
}



.nfe-import-card{
  max-width: 1080px;
  margin: 0 auto 22px auto;
}

.nfe-import-upload-row{
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.nfe-import-upload-row .nfe-import-input-file{
  flex: 1 1 640px;
  min-width: 280px;
}

.nfe-import-btn-upload{
  height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.nfe-import-btn-pri.nfe-import-btn-upload{
  background: linear-gradient(135deg, #0b1fb8 0%, #2438d8 45%, #4f5dff 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(20, 34, 170, .22);
}

.nfe-import-btn-pri.nfe-import-btn-upload:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(20, 34, 170, .30);
  filter: brightness(1.03);
}

.nfe-import-btn-pri.nfe-import-btn-upload:active{
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(20, 34, 170, .20);
}

.nfe-import-btn-pri.nfe-import-btn-upload i{
  font-size: 14px;
}

@media (max-width: 768px){
  .nfe-import-upload-row{
    flex-direction: column;
    align-items: stretch;
  }

  .nfe-import-upload-row .nfe-import-input-file{
    width: 100%;
    min-width: 100%;
  }

  .nfe-import-btn-upload{
    width: 100%;
  }
}

/* ===== Responsivo global do layout ===== */
html, body { max-width: 100%; overflow-x: hidden; }

.sidebar-overlay{
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 1098;
}

.sidebar-toggle{
  display: none;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 12px;
  background: var(--azul);
  color: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 11, 140, .18);
}

.sidebar-toggle i{ font-size: 18px; }

.topbar-left-wrap{
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.topbar-left-wrap > :not(.sidebar-toggle){
  min-width: 0;
}

@media (max-width: 900px){
  body{ display: block; height: auto; }

  .sidebar{
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 88px;
    z-index: 1099;
    transform: translateX(-115%);
    transition: transform .22s ease;
    box-shadow: 12px 0 30px rgba(15, 23, 42, .18);
  }

  body.sidebar-open .sidebar{
    transform: translateX(0);
  }

  body.sidebar-open .sidebar-overlay{
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar-toggle{
    display: inline-flex;
    flex: 0 0 auto;
  }

  .main,
  .page-pdv .main,
  .page-vendas .main{
    width: 100%;
    margin-left: 0;
    min-height: 100vh;
    height: auto;
    overflow: visible;
  }

  .topbar{
    height: auto;
    min-height: 70px;
    padding: 14px 16px;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
  }

  .top-actions{
    gap: 12px;
    margin-left: auto;
  }

  .content{
    padding: 16px;
    overflow-x: hidden;
  }

  .card{
    padding: 16px;
  }
}

@media (max-width: 640px){
  .topbar{
    padding: 12px 14px;
    display:grid;
    grid-template-columns:auto 1fr auto;
    align-items:start;
    column-gap:12px;
    row-gap:8px;
  }

  .content{
    padding: 14px;
  }

  .topbar-left-wrap{
    width:auto;
    display:grid;
    grid-template-columns:auto 1fr;
    align-items:start;
    gap:12px;
    min-width:0;
  }

  .topbar-left-wrap > :not(.sidebar-toggle){
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    justify-content:center !important;
    gap:2px !important;
    min-width:0;
  }

  .topbar-left-wrap h1,
  .topbar-left-wrap h2,
  .topbar-left-wrap h3{
    margin:0 !important;
    line-height:1.08;
  }

  .topbar-left-wrap small,
  .topbar-left-wrap span{
    display:block;
    margin-top:2px;
    font-size:13px;
    line-height:1.2;
    color:var(--cinza-texto) !important;
    font-weight:600;
  }

  .top-actions{
    width:auto;
    justify-content:flex-end;
    margin-left:0;
    align-self:start;
    padding-top:4px;
  }
}

/* ===== ETAPA 2 REVISADA - PDV EM MONITORES MENORES ===== */
@media (max-width: 1366px), (max-height: 768px) {
  .page-pdv .pdv-filtros{
    display: flex;
    flex-wrap: wrap;

    column-gap: 7px;
    row-gap: 8px;

    overflow: hidden;

    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .page-pdv .pdv-filtros::-webkit-scrollbar{
    display: none;
  }

  .page-pdv .pdv-filtros .filtro{
    width: 68px;
    min-width: 68px;
    max-width: 68px;
    gap: 5px;
  }

  .page-pdv .pdv-filtros .filtro .cat-img{
    width: 64px;
    height: 64px;
  }

  .page-pdv .pdv-filtros .filtro .cat-nome{
    width: 66px;
    max-width: 66px;
    font-size: 10px;
    line-height: 1.15;
    text-align: center;
  }

  .page-pdv .produtos-grid{
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    align-content: start;
    padding-right: 4px;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 10px;
  }

  .page-pdv .produto{
    padding: 10px;
    border-radius: 10px;
  }

  .page-pdv .produto-thumb,
  .page-pdv .produto-thumb--placeholder{
    height: 96px;
    margin-bottom: 8px;
    border-radius: 8px;
  }

  .page-pdv .produto .nome{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.2;
    min-height: 33px;
    max-height: 33px;
    font-size: 13px;
    margin-bottom: 6px;
  }

  .page-pdv .produto .preco{
    font-size: 13px;
  }

  .page-pdv .pdv-pessoa{
    padding: 4px;
    border-radius: 14px;
  }

  .page-pdv .linha-pessoa{
    grid-template-columns: 74px 1fr 30px;
    gap: 8px;
    padding: 8px 8px;
  }

  .page-pdv .linha-pessoa .label{
    font-size: 12px;
  }

  .page-pdv .linha-pessoa strong{
    font-size: 14px;
  }

  .page-pdv .linha-pessoa i{
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 13px;
  }

  .page-pdv .acoes{
    gap: 8px;
  }

  .page-pdv .acoes .btn-acao{
    width: 36px;
    height: 34px;
    border-radius: 9px;
    margin-bottom: 8px;
  }

  .page-pdv .acoes .btn-acao i{
    font-size: 14px;
  }

  .page-pdv .btn-salvar,
  .page-pdv .btn-finalizar{
    padding: 11px 14px;
    font-size: 15px;
    border-radius: 10px;
  }
}

@media (max-width: 1280px), (max-height: 700px) {
  .page-pdv .pdv-filtros .filtro{
    min-width: 62px;
  }

  .page-pdv .pdv-filtros .filtro .cat-img{
    width: 68px;
    height: 68px;
  }

  .page-pdv .pdv-filtros .filtro .cat-nome{
    max-width: 62px;
    font-size: 10px;
  }

  .page-pdv .produtos-grid{
    grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
    gap: 8px;
  }

  .page-pdv .produto{
    padding: 9px;
  }

  .page-pdv .produto-thumb,
  .page-pdv .produto-thumb--placeholder{
    height: 88px;
  }

  .page-pdv .produto .nome{
    min-height: 31px;
    max-height: 31px;
    font-size: 12px;
  }

  .page-pdv .linha-pessoa .label{
    font-size: 11px;
  }

  .page-pdv .linha-pessoa strong{
    font-size: 13px;
  }

  .page-pdv .btn-salvar,
  .page-pdv .btn-finalizar{
    padding: 10px 12px;
    font-size: 14px;
  }
}


.delivery-cliente-status-bar{
  margin: 14px 0 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #991b1b;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.delivery-cliente-status-bar i{
  font-size: 18px;
  margin-top: 2px;
}

.delivery-cliente-status-bar strong{
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.delivery-cliente-status-bar span{
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.5;
}

.delivery-cliente-btn-add[disabled],
.delivery-cliente-btn-finalizar[disabled]{
  opacity: .65;
  cursor: not-allowed;
}

.delivery-cliente-btn-add.is-closed{
  background: #E5E7EB !important;
  color: #6B7280 !important;
}

.delivery-cliente-resumo-grid{
  display:grid;
  gap:12px;
}

.delivery-cliente-resumo-box{
  padding:14px 16px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:16px;
  background:#f8fafc;
}

.delivery-cliente-resumo-label{
  margin-bottom:6px;
  font-size:12px;
  font-weight:800;
  color:#64748b;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.delivery-cliente-resumo-valor{
  font-size:14px;
  line-height:1.6;
  color:#0f172a;
  font-weight:600;
}

.delivery-cliente-resumo-itens{
  display:grid;
  gap:10px;
  margin-top:10px;
}

.delivery-cliente-resumo-item{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:14px;
  background:#fff;
}

/* =========================================================
   INCLUDES - COMPACTAÇÃO GLOBAL EM MONITORES MENORES
   Aplica em telas de notebook/monitores menores sem afetar desktop grande
=========================================================*/
@media (min-width:901px) and (max-width:1366px), (min-width:901px) and (max-height:820px){

  .sidebar{
    width:76px;
    padding:14px 0;
  }

  .sidebar .logo{
    width:46px;
    height:46px;
  }

  .menu{
    gap:12px;
    margin-top:16px;
  }

  .menu a,
  .menu-bottom a{
    width:42px;
    height:42px;
    border-radius:13px;
  }

  .menu a i,
  .menu-bottom a i{
    font-size:15px;
  }

  .menu-bottom{
    gap:9px;
  }

  .topbar{
    height:60px;
    min-height:60px;
    padding:0 24px;
  }

  .topbar-left-wrap{
    gap:10px;
  }

  .topbar-left-wrap h1{
    font-size:16px !important;
    line-height:1.1 !important;
  }

  .topbar-left-wrap small{
    font-size:12px !important;
    line-height:1.15 !important;
  }

  .top-actions{
    gap:12px;
  }

  .top-actions i{
    font-size:16px;
  }

  .content{
    padding:16px 16px;
  }

  .search{
    width:min(300px, 28vw);
    height:38px;
    padding:0 13px;
    border-radius:11px;
    gap:9px;
  }

  .search input{
    font-size:13px;
  }

  .btn-support{
    min-height:36px;
    padding:8px 12px;
    border-radius:12px;
    font-size:12px;
    gap:8px;
  }

  .btn-support i{
    font-size:13px;
  }

  .impersonacao-floating{
    top:8px !important;
    min-height:44px !important;
    padding:6px 8px 6px 12px !important;
    gap:9px !important;
    max-width:min(680px, calc(100vw - 260px)) !important;
  }

  .impersonacao-floating__icon{
    width:28px !important;
    height:28px !important;
  }

  .impersonacao-floating__icon i{
    font-size:13px !important;
  }

  .impersonacao-floating__title{
    font-size:12px !important;
    line-height:1.1 !important;
  }

  .impersonacao-floating__sub{
    font-size:11px !important;
    line-height:1.15 !important;
  }

  .impersonacao-floating__btn{
    height:32px !important;
    padding:0 12px !important;
    font-size:12px !important;
    gap:7px !important;
  }
}

/* Correção: manter tamanho original dos botões de forma de pagamento */
.page-pdv .pg-metodos{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:10px !important;
}

/* ===============================
   PDV - PAGAMENTO RESPONSIVO CORRETO
   Usa #pgDrawer, que é o painel real do pdv.php
================================ */

@media (min-width:901px) and (max-width:1366px), (min-width:901px) and (max-height:820px){
  .page-pdv #pgDrawer.drawer{
    width: min(500px, 92vw) !important;
    height: calc(100vh - 20px) !important;
    top: 10px !important;
    right: 10px !important;
    border-radius: 18px !important;
  }

  .page-pdv #pgDrawer .drawer-header{
    padding: 14px 16px 9px !important;
  }

  .page-pdv #pgDrawer .drawer-header h3{
    font-size: 20px !important;
    line-height: 1.1 !important;
  }

  .page-pdv #pgDrawer .drawer-header small{
    font-size: 13px !important;
  }

  .page-pdv #pgDrawer .drawer-close{
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
    font-size: 18px !important;
  }

  .page-pdv #pgDrawer .drawer-body{
    padding: 12px 16px !important;
  }

  .page-pdv #pgDrawer .pg-forma-label{
    margin: 0 0 7px !important;
    font-size: 12px !important;
  }

  .page-pdv #pgDrawer #pgMetodos{
    gap: 9px !important;
  }

  .page-pdv #pgDrawer .pg-metodo{
    min-height: 40px !important;
    padding: 9px 10px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
  }

  .page-pdv #pgDrawer .pg-dividir-wrap{
    margin-top: 9px !important;
  }

  .page-pdv #pgDrawer .pg-dividir-toggle{
    min-height: 40px !important;
    padding: 9px 10px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
  }

  .page-pdv #pgDrawer .pg-dividir-box{
    margin-top: 8px !important;
    padding: 10px !important;
    border-radius: 12px !important;
  }

  .page-pdv #pgDrawer .pg-dividir-topo{
    gap: 8px !important;
  }

  .page-pdv #pgDrawer .pg-dividir-campo > label{
    font-size: 12px !important;
    margin-bottom: 5px !important;
  }

  .page-pdv #pgDrawer .pg-dividir-campo input,
  .page-pdv #pgDrawer .pg-dividir-valor2,
  .page-pdv #pgDrawer .pg-dividir-restante{
    height: 40px !important;
    min-height: 40px !important;
    font-size: 14px !important;
  }

  .page-pdv #pgDrawer .pg-forma-label--segunda{
    margin-top: 10px !important;
  }

  .page-pdv #pgDrawer #pgMetodos2.pg-metodos-secundario{
    gap: 7px !important;
  }

  .page-pdv #pgDrawer #pgMetodos2.pg-metodos-secundario .pg-metodo{
    min-height: 38px !important;
    padding: 8px 6px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
  }

  .page-pdv #pgDrawer .pg-resumo{
    margin-top: 10px !important;
    padding-top: 10px !important;
  }

  .page-pdv #pgDrawer .pg-linha{
    padding: 5px 0 !important;
    font-size: 15px !important;
  }

  .page-pdv #pgDrawer .drawer-footer{
    padding: 10px 16px 12px !important;
    gap: 9px !important;
  }

  .page-pdv #pgDrawer .pg-btn{
    min-height: 42px !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
  }
}

.page-pdv .pg-metodo{
  width:100% !important;
  min-height:44px;
  border:1px solid #e5e7eb;
  padding:12px 14px;
  border-radius:14px;
  font-weight:900;
  cursor:pointer;
  background:#f3f4f6;
  color:#374151;
  letter-spacing:.2px;
  transition:background .2s ease, color .2s ease, border-color .2s ease, transform .05s ease;
}



.page-pdv .pg-metodo:active{
  transform:translateY(1px);
}

.page-pdv .pg-metodo.ativo{
  background:#10b981;
  border-color:#10b981;
  color:#fff;
}

/* Correção final: pagamento dividido no PDV */
.page-pdv .pg-dividir-topo{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:10px !important;
  align-items:end !important;
}

.page-pdv .pg-dividir-campo{
  min-width:0 !important;
}

.page-pdv .pg-dividir-campo > label{
  display:block !important;
  margin:0 0 6px !important;
  color:#6b7280 !important;
  font-size:13px !important;
  font-weight:900 !important;
  line-height:1.15 !important;
}

.page-pdv .pg-dividir-campo input{
  height:46px !important;
  margin:0 !important;
}

.page-pdv .pg-dividir-valor2{
  height:46px !important;
  border:1px solid #eef2f7 !important;
  border-radius:12px !important;
  background:#fff !important;
  padding:0 12px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
}

.page-pdv .pg-dividir-valor2 strong{
  color:#111827 !important;
  font-weight:1000 !important;
  font-size:16px !important;
  white-space:nowrap !important;
}

/* Mantém a forma principal em 2 colunas */
.page-pdv #pgMetodos{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:10px !important;
}

/* Segunda forma em uma linha com 4 botões menores */
.page-pdv #pgMetodos2.pg-metodos-secundario{
  display:grid !important;
  grid-template-columns:repeat(4, minmax(0, 1fr)) !important;
  gap:8px !important;
}

.page-pdv #pgMetodos2.pg-metodos-secundario .pg-metodo{
  min-height:40px !important;
  padding:9px 6px !important;
  border-radius:12px !important;
  font-size:13px !important;
  width:100% !important;
}

@media (max-width: 520px){
  .page-pdv #pgMetodos2.pg-metodos-secundario{
    grid-template-columns:1fr 1fr !important;
  }
}

/* =========================================================
   ORGANIZAR PDV
========================================================= */

.page-organizar-pdv .opdv-page{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.page-organizar-pdv .opdv-head-card{
  background:#fff;
  border:1px solid #e8edf7;
  border-radius:22px;
  padding:22px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  box-shadow:0 14px 34px rgba(15,23,42,.045);
}

.page-organizar-pdv .opdv-head-card h2{
  margin:0;
  font-size:20px;
  font-weight:900;
  color:#0f172a;
}

.page-organizar-pdv .opdv-head-card p{
  margin:6px 0 0;
  color:#64748b;
  font-size:13px;
  font-weight:650;
}

.page-organizar-pdv .opdv-head-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.page-organizar-pdv .opdv-layout{
  display:grid;
  grid-template-columns:420px minmax(0, 1fr);
  gap:18px;
  align-items:start;
}

.page-organizar-pdv .opdv-panel{
  background:#fff;
  border:1px solid #e8edf7;
  border-radius:22px;
  padding:18px;
  box-shadow:0 14px 34px rgba(15,23,42,.045);
  min-height:520px;
}

.page-organizar-pdv .opdv-panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}

.page-organizar-pdv .opdv-panel-head h3{
  margin:0;
  font-size:16px;
  font-weight:950;
  color:#0f172a;
}

.page-organizar-pdv .opdv-panel-head small{
  display:block;
  margin-top:4px;
  color:#64748b;
  font-size:12px;
  font-weight:750;
}

.page-organizar-pdv .opdv-btn{
  border:0;
  border-radius:13px;
  padding:10px 13px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  cursor:pointer;
  font-weight:900;
  text-decoration:none;
  white-space:nowrap;
}

.page-organizar-pdv .opdv-btn-primary{
  background:#10b981;
  color:#fff;
}

.page-organizar-pdv .opdv-btn-primary:hover{
  background:#059669;
}

.page-organizar-pdv .opdv-btn-primary:disabled{
  opacity:.65;
  cursor:not-allowed;
}

.page-organizar-pdv .opdv-btn-ghost{
  background:#f8fafc;
  color:#0f172a;
  border:1px solid #e8edf7;
}

.page-organizar-pdv .opdv-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.page-organizar-pdv .opdv-list-categorias{
  max-height:calc(100vh - 250px);
  overflow:auto;
  padding-right:4px;
}

.page-organizar-pdv .opdv-produtos-wrap{
  position:relative;
}

.page-organizar-pdv .opdv-produtos-lista{
  display:none;
  max-height:calc(100vh - 250px);
  overflow:auto;
  padding-right:4px;
}

.page-organizar-pdv .opdv-produtos-lista.is-active{
  display:flex;
}

.page-organizar-pdv .opdv-cat-card,
.page-organizar-pdv .opdv-prod-card{
  border:1px solid #eef2f7;
  background:#fff;
  border-radius:16px;
  padding:12px;
  display:flex;
  align-items:center;
  gap:12px;
  cursor:pointer;
  transition:background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .12s ease;
}

.page-organizar-pdv .opdv-cat-card:hover,
.page-organizar-pdv .opdv-prod-card:hover{
  background:#f8fafc;
  border-color:#dbe4f0;
  box-shadow:0 14px 26px rgba(15,23,42,.06);
}

.page-organizar-pdv .opdv-cat-card.is-active{
  background:#eef6ff;
  border-color:#bfdbfe;
}

.page-organizar-pdv .opdv-cat-card.is-dragging,
.page-organizar-pdv .opdv-prod-card.is-dragging{
  opacity:.55;
  transform:scale(.99);
}

.page-organizar-pdv .opdv-drag{
  width:32px;
  height:36px;
  border:0;
  border-radius:12px;
  background:#f3f4f6;
  color:#64748b;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:grab;
  flex:0 0 auto;
}

.page-organizar-pdv .opdv-drag:active{
  cursor:grabbing;
}

.page-organizar-pdv .opdv-cat-img,
.page-organizar-pdv .opdv-prod-img{
  width:52px;
  height:52px;
  border-radius:14px;
  background:#f3f4f6;
  color:#0f172a;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:950;
  flex:0 0 auto;
}

.page-organizar-pdv .opdv-cat-img img,
.page-organizar-pdv .opdv-prod-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.page-organizar-pdv .opdv-prod-img i{
  color:#94a3b8;
}

.page-organizar-pdv .opdv-cat-info,
.page-organizar-pdv .opdv-prod-info{
  min-width:0;
  flex:1;
}

.page-organizar-pdv .opdv-cat-info strong,
.page-organizar-pdv .opdv-prod-info strong{
  display:block;
  color:#0f172a;
  font-size:14px;
  font-weight:950;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.page-organizar-pdv .opdv-cat-info small,
.page-organizar-pdv .opdv-prod-info small{
  display:block;
  margin-top:3px;
  color:#64748b;
  font-size:12px;
  font-weight:800;
}

.page-organizar-pdv .opdv-cat-arrow{
  color:#94a3b8;
  font-size:12px;
}

.page-organizar-pdv .opdv-empty{
  border:1px dashed #cbd5e1;
  border-radius:16px;
  background:#f8fafc;
  padding:20px;
  color:#64748b;
  font-weight:800;
  text-align:center;
}

@media (max-width:1100px){
  .page-organizar-pdv .opdv-layout{
    grid-template-columns:1fr;
  }

  .page-organizar-pdv .opdv-panel{
    min-height:auto;
  }

  .page-organizar-pdv .opdv-list-categorias,
  .page-organizar-pdv .opdv-produtos-lista{
    max-height:none;
  }
}

@media (max-width:720px){
  .page-organizar-pdv .opdv-head-card,
  .page-organizar-pdv .opdv-panel-head{
    flex-direction:column;
    align-items:flex-start;
  }

  .page-organizar-pdv .opdv-btn{
    width:100%;
  }
}

/* Correção menu ⋮ da tela Produtos */
.page-produtos .card,
.page-produtos table,
.page-produtos .produtos-table,
.page-produtos .produtos-table tbody,
.page-produtos .produtos-table tr,
.page-produtos .produtos-table td{
  overflow: visible !important;
}

.page-produtos .kebab-wrap{
  position: relative;
  z-index: 20;
}

.page-produtos .kebab-wrap.is-open{
  z-index: 9999;
}

.page-produtos .kebab-menu{
  top: 42px;
  right: 0;
  z-index: 10000;
}

/* Nas últimas linhas, abre para cima para não cortar */
.page-produtos .produtos-table tbody tr:nth-last-child(-n+2) .kebab-menu{
  top: auto;
  bottom: 42px;
}

#modalModeloOpcao.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, .45);
  align-items: center;
  justify-content: center;
  padding: 22px;
}

#modalModeloOpcao .modal-card {
  width: min(760px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .28);
}

#modalModeloOpcao .modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
}

#modalModeloOpcao .modal-head h3 {
  font-size: 18px;
  font-weight: 900;
}

#modalModeloOpcao .modelo-item-row {
  background: #F8FAFC;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 14px;
  padding: 10px;
}

#modalModeloOpcao input[type="checkbox"] {
  accent-color: #0b2cff;
}

@media (max-width: 720px) {
  #modalModeloOpcao.modal-backdrop {
    padding: 12px;
    align-items: flex-start;
  }

  #modalModeloOpcao .modal-card {
    margin-top: 12px;
    padding: 16px;
    border-radius: 16px;
  }

  #modalModeloOpcao .modal-head {
    flex-direction: column;
  }

  #modalModeloOpcao .modelo-item-row {
    grid-template-columns: 1fr !important;
  }
}
.page-produtos .produtos-filtros-row {
  display: flex;
  align-items: flex-end;
  gap: clamp(6px, .65vw, 12px);
  width: 100%;
  flex-wrap: nowrap;
}

.page-produtos .produtos-filtro-campo {
  min-width: 0;
}

.page-produtos .produtos-filtro-busca {
  flex: 1 1 260px;
}

.page-produtos .produtos-filtro-categoria {
  flex: .7 1 180px;
}

.page-produtos .produtos-filtro-ativo {
  flex: .45 1 120px;
}

.page-produtos .produtos-actions-filtros {
  flex: 0 1 auto;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: clamp(5px, .55vw, 10px);
  flex-wrap: nowrap;
}

.page-produtos .produtos-actions-filtros .btn,
.page-produtos .produtos-actions-filtros .btn2 {
  height: clamp(34px, 2.6vw, 42px);
  min-height: clamp(34px, 2.6vw, 42px);
  padding: 0 clamp(8px, .8vw, 14px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, .45vw, 8px);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: clamp(11px, .82vw, 14px);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  box-sizing: border-box;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.page-produtos .produtos-actions-filtros .btn i,
.page-produtos .produtos-actions-filtros .btn2 i {
  width: clamp(10px, .75vw, 14px);
  min-width: clamp(10px, .75vw, 14px);
  height: clamp(10px, .75vw, 14px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(10px, .7vw, 13px);
  line-height: 1;
  margin: 0;
}

.page-produtos .produtos-actions-filtros .btn span,
.page-produtos .produtos-actions-filtros .btn2 span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.page-produtos .produtos-actions-filtros .btn:hover,
.page-produtos .produtos-actions-filtros .btn2:hover {
  transform: translateY(-1px);
}

.page-produtos .produtos-actions-filtros .btn2:hover {
  border-color: rgba(11, 44, 255, .35);
  color: #000B8C;
  background: #f8faff;
}

.page-produtos .produtos-actions-filtros .btn:hover {
  background: #000B8C;
}

@media (max-width: 1300px) {
  .page-produtos .produtos-filtro-busca {
    flex-basis: 200px;
  }

  .page-produtos .produtos-filtro-categoria {
    flex-basis: 145px;
  }

  .page-produtos .produtos-filtro-ativo {
    flex-basis: 95px;
  }

  .page-produtos .produtos-actions-filtros .btn,
  .page-produtos .produtos-actions-filtros .btn2 {
    padding: 0 8px;
    font-size: 11px;
  }
}

@media (max-width: 1080px) {
  .page-produtos .produtos-filtro-busca {
    flex-basis: 150px;
  }

  .page-produtos .produtos-filtro-categoria {
    flex-basis: 110px;
  }

  .page-produtos .produtos-filtro-ativo {
    flex-basis: 80px;
  }

  .page-produtos .produtos-actions-filtros {
    gap: 5px;
  }

  .page-produtos .produtos-actions-filtros .btn,
  .page-produtos .produtos-actions-filtros .btn2 {
    height: 34px;
    min-height: 34px;
    padding: 0 7px;
    font-size: 10.5px;
    border-radius: 9px;
  }

  .page-produtos .produtos-actions-filtros .btn i,
  .page-produtos .produtos-actions-filtros .btn2 i {
    width: 10px;
    min-width: 10px;
    height: 10px;
    font-size: 10px;
  }
}

@media (max-width: 1450px) {
  .page-produtos .produtos-filtros-row {
    gap: 8px;
  }

  .page-produtos .produtos-filtro-busca {
    flex: 0 1 305px !important;
  }

  .page-produtos .produtos-filtro-categoria {
    flex: 0 1 210px !important;
  }

  .page-produtos .produtos-filtro-ativo {
    flex: 0 1 140px !important;
  }

  .page-produtos .produtos-filtro-campo input,
  .page-produtos .produtos-filtro-campo select {
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 11px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
  }

  .page-produtos .produtos-actions-filtros .btn,
  .page-produtos .produtos-actions-filtros .btn2 {
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 11px !important;
    font-size: 12px !important;
    border-radius: 10px !important;
  }
}

@media (max-width: 1250px) {
  .page-produtos .produtos-filtros-row {
    gap: 6px;
  }

  .page-produtos .produtos-filtro-busca {
    flex: 0 1 250px !important;
  }

  .page-produtos .produtos-filtro-categoria {
    flex: 0 1 170px !important;
  }

  .page-produtos .produtos-filtro-ativo {
    flex: 0 1 110px !important;
  }

  .page-produtos .produtos-filtro-campo input,
  .page-produtos .produtos-filtro-campo select {
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 9px !important;
    font-size: 12px !important;
    border-radius: 9px !important;
  }

  .page-produtos .produtos-actions-filtros .btn,
  .page-produtos .produtos-actions-filtros .btn2 {
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 8px !important;
    font-size: 11px !important;
    border-radius: 9px !important;
  }

  .page-produtos .produtos-actions-filtros .btn i,
  .page-produtos .produtos-actions-filtros .btn2 i {
    width: 11px !important;
    min-width: 11px !important;
    height: 11px !important;
    font-size: 10px !important;
  }
}

/* ===============================
   PRODUTOS - MODAIS FIXOS + SCROLL INTERNO
================================ */

body.produto-modal-open {
  overflow: hidden !important;
}

body.page-produtos.produto-modal-open .main,
body.page-produtos.produto-modal-open .content {
  overflow: hidden !important;
}

.page-produtos #modalNovoProduto.modal-bg.show,
.page-produtos #modalNovoProduto.modal-bg.is-open,
.page-produtos #modal.modal-bg.show,
.page-produtos #modal.modal-bg.is-open {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  overscroll-behavior: contain;
}

.page-produtos #modalNovoProduto .produto-modal-card,
.page-produtos #modal .produto-modal-card {
  width: min(1100px, 96vw) !important;
  max-width: 1100px !important;
  height: min(820px, calc(100vh - 36px)) !important;
  max-height: calc(100vh - 36px) !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.page-produtos #modalNovoProduto .modal-header,
.page-produtos #modalNovoProduto .modal-tabs,
.page-produtos #modalNovoProduto .modal-footer,
.page-produtos #modal .modal-header,
.page-produtos #modal .modal-footer {
  flex: 0 0 auto;
}

.page-produtos #modalNovoProduto .modal-novo-produto-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto !important;
  padding-right: 6px;
  overscroll-behavior: contain;
}

.page-produtos #modal #m_body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto !important;
  overscroll-behavior: contain;
}

.page-produtos #modalNovoProduto .modal-footer,
.page-produtos #modal .modal-footer {
  padding-top: 14px;
  border-top: 1px solid rgba(15, 23, 42, .08);
  background: #fff;
}

/* ===============================
   PRODUTOS - DETALHES DOS MODAIS
   Novo Produto + Editar Produto
================================ */

.page-produtos #modalNovoProduto .produto-modal-card,
.page-produtos #modal .produto-modal-card {
  height: min(720px, calc(100vh - 36px)) !important;
}

/* Layout principal */
.page-produtos .np-detalhes-layout-v2,
.page-produtos .ep-detalhes-layout-v2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: stretch;
}

/* Coluna principal */
.page-produtos .np-detalhes-main,
.page-produtos .ep-detalhes-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

/* Cards internos */
.page-produtos .np-form-card,
.page-produtos .ep-form-card {
  border: 1px solid #eef2f7;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
}

/* Grids dos campos */
.page-produtos .np-form-grid,
.page-produtos .ep-form-grid {
  display: grid;
  gap: 12px;
  align-items: end;
}

.page-produtos .np-form-grid-1,
.page-produtos .ep-form-grid-1 {
  grid-template-columns: 1fr;
}

.page-produtos .np-form-grid-2,
.page-produtos .ep-form-grid-2 {
  grid-template-columns: minmax(0, 1fr) 230px;
}

.page-produtos .np-form-grid-4,
.page-produtos .ep-form-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.page-produtos .np-grid-spaced,
.page-produtos .ep-grid-spaced {
  margin-top: 12px;
}

/* Descrição + checks */
.page-produtos .np-form-bottom-v2,
.page-produtos .ep-form-bottom-v2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 12px;
  align-items: stretch;
}

.page-produtos .np-desc-card,
.page-produtos .ep-desc-card {
  display: flex;
  flex-direction: column;
}

.page-produtos .np-desc-card textarea,
.page-produtos .ep-desc-card textarea {
  flex: 1;
  min-height: 150px;
  height: 150px;
  resize: vertical;
}

.page-produtos .np-checks-card,
.page-produtos .ep-checks-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.page-produtos .np-checks-card-v2,
.page-produtos .ep-checks-card-v2 {
  justify-content: center;
  gap: 16px;
}

.page-produtos .np-checks-card label,
.page-produtos .ep-checks-card label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.page-produtos .np-checks-card input[type="checkbox"],
.page-produtos .ep-checks-card input[type="checkbox"] {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

/* Foto */
.page-produtos .np-foto-side,
.page-produtos .ep-foto-side {
  min-width: 0;
}

.page-produtos .np-foto-box,
.page-produtos .ep-foto-box {
  padding: 14px;
}

.page-produtos .np-foto-box-v2,
.page-produtos .ep-foto-box-v2 {
  height: calc(100% - 30px);
  min-height: 330px;
  display: flex;
  flex-direction: column;
}

.page-produtos .np-foto-preview,
.page-produtos .ep-foto-preview {
  height: 190px;
  min-height: 190px;
  margin-bottom: 12px;
}

.page-produtos .np-foto-box-v2 .np-foto-preview,
.page-produtos .ep-foto-box-v2 .ep-foto-preview {
  flex: 1;
  min-height: 230px;
  height: auto;
}

.page-produtos .np-foto-box .btn2,
.page-produtos .ep-foto-box .btn2 {
  width: 100%;
  height: 38px;
}

.page-produtos .np-foto-help,
.page-produtos .ep-foto-help {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

/* Monitores menores */
@media (max-width: 1280px), (max-height: 760px) {
  .page-produtos #modalNovoProduto .produto-modal-card,
  .page-produtos #modal .produto-modal-card {
    height: min(650px, calc(100vh - 28px)) !important;
  }

  .page-produtos .np-detalhes-layout-v2,
  .page-produtos .ep-detalhes-layout-v2 {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 14px;
  }

  .page-produtos .np-form-card,
  .page-produtos .ep-form-card {
    padding: 10px;
  }

  .page-produtos .np-form-grid,
  .page-produtos .ep-form-grid {
    gap: 10px;
  }

  .page-produtos .np-form-grid-2,
  .page-produtos .ep-form-grid-2 {
    grid-template-columns: minmax(0, 1fr) 180px;
  }

  .page-produtos .np-form-bottom-v2,
  .page-produtos .ep-form-bottom-v2 {
    grid-template-columns: minmax(0, 1fr) 220px;
  }

  .page-produtos .np-desc-card textarea,
  .page-produtos .ep-desc-card textarea {
    min-height: 120px;
    height: 120px;
  }

  .page-produtos .np-foto-box-v2,
  .page-produtos .ep-foto-box-v2 {
    min-height: 280px;
  }

  .page-produtos .np-foto-box-v2 .np-foto-preview,
  .page-produtos .ep-foto-box-v2 .ep-foto-preview {
    min-height: 180px;
  }

  .page-produtos .np-checks-card,
  .page-produtos .ep-checks-card {
    gap: 9px;
  }
}

/* Telas menores */
@media (max-width: 980px) {
  .page-produtos .np-detalhes-layout-v2,
  .page-produtos .ep-detalhes-layout-v2 {
    grid-template-columns: 1fr;
  }

  .page-produtos .np-form-grid-2,
  .page-produtos .np-form-grid-4,
  .page-produtos .np-form-bottom-v2,
  .page-produtos .ep-form-grid-2,
  .page-produtos .ep-form-grid-4,
  .page-produtos .ep-form-bottom-v2 {
    grid-template-columns: 1fr 1fr;
  }

  .page-produtos .np-foto-side,
  .page-produtos .ep-foto-side {
    max-width: 420px;
  }

  .page-produtos .np-foto-box-v2,
  .page-produtos .ep-foto-box-v2 {
    max-width: 420px;
    min-height: 260px;
  }
}

@media (max-width: 620px) {
  .page-produtos .np-form-grid-2,
  .page-produtos .np-form-grid-4,
  .page-produtos .np-form-bottom-v2,
  .page-produtos .ep-form-grid-2,
  .page-produtos .ep-form-grid-4,
  .page-produtos .ep-form-bottom-v2 {
    grid-template-columns: 1fr;
  }

  .page-produtos #modalNovoProduto .produto-modal-card,
  .page-produtos #modal .produto-modal-card {
    width: calc(100vw - 20px) !important;
    height: calc(100vh - 20px) !important;
  }
}

.page-produtos .ep-form-grid-3 {
  grid-template-columns: minmax(0, 1fr) 180px 110px;
}

@media (max-width: 1280px), (max-height: 760px) {
  .page-produtos .ep-form-grid-3 {
    grid-template-columns: minmax(0, 1fr) 150px 95px;
  }
}

@media (max-width: 980px) {
  .page-produtos .ep-form-grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .page-produtos .ep-form-grid-3 {
    grid-template-columns: 1fr;
  }
}

.page-produtos #modal .ep-modal-footer-actions {
  flex: 0 0 auto;
  margin-top: auto !important;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 23, 42, .08);
  background: #fff;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.page-produtos #modal .ep-modal-footer-actions .btn,
.page-produtos #modal .ep-modal-footer-actions .btn2 {
  height: 38px;
  min-height: 38px;
  padding: 0 16px;
}

/* Correção final do rodapé do modal Editar Produto */
.page-produtos #modal #m_body {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

.page-produtos #modal #m_body > .modal-tabs {
  flex: 0 0 auto !important;
}

.page-produtos #modal #m_body > .ep-tab-content {
  flex: 0 0 auto !important;
}

.page-produtos #modal #m_body > .ep-modal-footer-actions {
  margin-top: auto !important;
  padding-top: 16px !important;
  border-top: 1px solid rgba(15, 23, 42, .08) !important;
  background: #fff !important;
}

/* ===============================
   PRODUTOS - HOVER LEVANTAR BOTÕES DOS MODAIS
================================ */

.page-produtos #modal #m_body .btn,
.page-produtos #modal #m_body .btn2,
.page-produtos #modal .ep-modal-footer-actions .btn,
.page-produtos #modal .ep-modal-footer-actions .btn2,
.page-produtos #modalNovoProduto .modal-novo-produto-body .btn,
.page-produtos #modalNovoProduto .modal-novo-produto-body .btn2,
.page-produtos #modalNovoProduto .modal-footer .btn,
.page-produtos #modalNovoProduto .modal-footer .btn2,
.page-produtos #modalModelosOpcoesProduto .modal-footer .btn,
.page-produtos #modalModelosOpcoesProduto .modal-footer .btn2 {
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease !important;
  box-shadow: none !important;
}

.page-produtos #modal #m_body .btn:hover,
.page-produtos #modal #m_body .btn2:hover,
.page-produtos #modal .ep-modal-footer-actions .btn:hover,
.page-produtos #modal .ep-modal-footer-actions .btn2:hover,
.page-produtos #modalNovoProduto .modal-novo-produto-body .btn:hover,
.page-produtos #modalNovoProduto .modal-novo-produto-body .btn2:hover,
.page-produtos #modalNovoProduto .modal-footer .btn:hover,
.page-produtos #modalNovoProduto .modal-footer .btn2:hover,
.page-produtos #modalModelosOpcoesProduto .modal-footer .btn:hover,
.page-produtos #modalModelosOpcoesProduto .modal-footer .btn2:hover {
  transform: translateY(-2px) !important;
  box-shadow: none !important;
}

.page-produtos #modal #m_body .btn:active,
.page-produtos #modal #m_body .btn2:active,
.page-produtos #modal .ep-modal-footer-actions .btn:active,
.page-produtos #modal .ep-modal-footer-actions .btn2:active,
.page-produtos #modalNovoProduto .modal-novo-produto-body .btn:active,
.page-produtos #modalNovoProduto .modal-novo-produto-body .btn2:active,
.page-produtos #modalNovoProduto .modal-footer .btn:active,
.page-produtos #modalNovoProduto .modal-footer .btn2:active,
.page-produtos #modalModelosOpcoesProduto .modal-footer .btn:active,
.page-produtos #modalModelosOpcoesProduto .modal-footer .btn2:active {
  transform: translateY(0) !important;
  box-shadow: none !important;
}

/* ===============================
   PRODUTOS - HOVER LEVANTAR FECHAR MODAIS E 3 PONTOS
================================ */

/* Fechar do modal editar, X do novo produto e fechar dos modais auxiliares */
.page-produtos #modal .modal-header .btn,
.page-produtos #modal .modal-header .btn2,
.page-produtos #modalNovoProduto .modal-header .btn,
.page-produtos #modalNovoProduto .modal-header .btn2,
.page-produtos #modalModelosOpcoesProduto .modal-header .btn,
.page-produtos #modalModelosOpcoesProduto .modal-header .btn2,
.page-produtos #modalNovoCategoria .modal-header .btn,
.page-produtos #modalNovoCategoria .modal-header .btn2,

/* Botão dos 3 pontos da lista de produtos */
.page-produtos .kebab-btn {
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease !important;
  box-shadow: none !important;
}

.page-produtos #modal .modal-header .btn:hover,
.page-produtos #modal .modal-header .btn2:hover,
.page-produtos #modalNovoProduto .modal-header .btn:hover,
.page-produtos #modalNovoProduto .modal-header .btn2:hover,
.page-produtos #modalModelosOpcoesProduto .modal-header .btn:hover,
.page-produtos #modalModelosOpcoesProduto .modal-header .btn2:hover,
.page-produtos #modalNovoCategoria .modal-header .btn:hover,
.page-produtos #modalNovoCategoria .modal-header .btn2:hover,
.page-produtos .kebab-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: none !important;
}

.page-produtos #modal .modal-header .btn:active,
.page-produtos #modal .modal-header .btn2:active,
.page-produtos #modalNovoProduto .modal-header .btn:active,
.page-produtos #modalNovoProduto .modal-header .btn2:active,
.page-produtos #modalModelosOpcoesProduto .modal-header .btn:active,
.page-produtos #modalModelosOpcoesProduto .modal-header .btn2:active,
.page-produtos #modalNovoCategoria .modal-header .btn:active,
.page-produtos #modalNovoCategoria .modal-header .btn2:active,
.page-produtos .kebab-btn:active {
  transform: translateY(0) !important;
  box-shadow: none !important;
}

/* ===============================
   CORREÇÃO TOAST PRODUTOS
================================ */

body .toast-container {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  bottom: auto !important;
  z-index: 2147483647 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  pointer-events: none !important;
}

body .toast-container .toast,
body.page-produtos .toast-container .toast,
.page-produtos .toast-container .toast {
  position: relative !important;
  right: auto !important;
  bottom: auto !important;
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  min-width: 260px !important;
  max-width: 380px !important;
  padding: 14px 16px !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  color: #fff !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

body .toast-success {
  background: #16a34a !important;
}

body .toast-error {
  background: #dc2626 !important;
}

body .toast-warning {
  background: #f59e0b !important;
  color: #111827 !important;
}

/* ===============================
   PRODUTOS - CAMPO OBRIGATÓRIO COM ERRO
================================ */

.page-produtos .produto-campo-erro {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .12) !important;
  background: #fffafa !important;
}

/* ===============================
   CATEGORIAS - FILTRO + AÇÕES
================================ */

.page-categorias .categorias-filtros-card {
  margin-bottom: 14px;
}

.page-categorias .categorias-filtros-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  width: 100%;
}

.page-categorias .categorias-filtro-busca {
  flex: 1 1 auto;
  min-width: 0;
}

.page-categorias .categorias-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
}

.page-categorias .categorias-actions .btn,
.page-categorias .categorias-actions .btn2 {
  height: 42px;
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: none !important;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease !important;
}

.page-categorias .categorias-actions .btn:hover,
.page-categorias .categorias-actions .btn2:hover {
  transform: translateY(-2px);
  box-shadow: none !important;
}

.page-categorias .categorias-actions .btn:active,
.page-categorias .categorias-actions .btn2:active {
  transform: translateY(0);
  box-shadow: none !important;
}

.page-categorias .categorias-actions .btn2:hover {
  border-color: rgba(11, 44, 255, .35);
  color: #000B8C;
  background: #f8faff;
}

/* Monitores menores */
@media (max-width: 900px) {
  .page-categorias .categorias-filtros-row {
    gap: 8px;
  }

  .page-categorias .categorias-actions .btn,
  .page-categorias .categorias-actions .btn2 {
    height: 38px;
    min-height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }
}

@media (max-width: 620px) {
  .page-categorias .categorias-filtros-row {
    flex-direction: column;
    align-items: stretch;
  }

  .page-categorias .categorias-actions {
    width: 100%;
  }

  .page-categorias .categorias-actions .btn,
  .page-categorias .categorias-actions .btn2 {
    flex: 1;
  }
}

/* ===============================
   CATEGORIAS - HOVER BOTÕES DO MODAL
================================ */

.page-categorias #modalNovoCategoria .btn,
.page-categorias #modalNovoCategoria .btn2,
.page-produtos #modalNovoCategoria .btn,
.page-produtos #modalNovoCategoria .btn2 {
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease !important;
  box-shadow: none !important;
}

.page-categorias #modalNovoCategoria .btn:hover,
.page-categorias #modalNovoCategoria .btn2:hover,
.page-produtos #modalNovoCategoria .btn:hover,
.page-produtos #modalNovoCategoria .btn2:hover {
  transform: translateY(-2px) !important;
  box-shadow: none !important;
}

.page-categorias #modalNovoCategoria .btn:active,
.page-categorias #modalNovoCategoria .btn2:active,
.page-produtos #modalNovoCategoria .btn:active,
.page-produtos #modalNovoCategoria .btn2:active {
  transform: translateY(0) !important;
  box-shadow: none !important;
}

/* ===============================
   PDV - MIOLO RESPONSIVO PARA MONITORES MENORES
   Mantém produtos + carrinho lado a lado
================================ */

@media (max-width: 1366px), (max-height: 768px) {
  .page-pdv .content {
    padding: 18px !important;
  }

  .page-pdv .pdv {
    grid-template-columns: minmax(0, 1fr) 410px !important;
    gap: 14px !important;
    height: 100% !important;
    min-height: 0 !important;
  }

  .page-pdv .pdv-produtos,
  .page-pdv .pdv-carrinho {
    padding: 16px !important;
    border-radius: 14px !important;
  }

  .page-pdv .pdv-topo {
    gap: 8px !important;
    margin-bottom: 10px !important;
  }

  .page-pdv .pdv-topo h1 {
    font-size: 20px !important;
    margin-bottom: 0 !important;
  }

  .page-pdv .produtos-grid {
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)) !important;
    gap: 10px !important;
  }

  .page-pdv .produto {
    padding: 10px !important;
    border-radius: 11px !important;
    min-height: 176px !important;
  }

  .page-pdv .produto-thumb,
  .page-pdv .produto-thumb--placeholder {
    height: 92px !important;
    margin-bottom: 8px !important;
    border-radius: 9px !important;
  }

  .page-pdv .produto .nome {
    font-size: 13px !important;
    line-height: 1.15 !important;
    min-height: 30px !important;
    margin-bottom: 5px !important;
  }

  .page-pdv .produto .preco {
    font-size: 14px !important;
  }

  .page-pdv .pdv-carrinho h2 {
    font-size: 15px !important;
    margin-bottom: 10px !important;
  }

  .page-pdv .pdv-pessoa {
    padding: 9px !important;
    border-radius: 14px !important;
    margin-bottom: 12px !important;
  }

  .page-pdv .linha-pessoa {
    grid-template-columns: 78px minmax(0, 1fr) 32px !important;
    gap: 8px !important;
    padding: 7px 8px !important;
  }

  .page-pdv .linha-pessoa .label {
    font-size: 12px !important;
  }

  .page-pdv .linha-pessoa strong {
    font-size: 13px !important;
  }

  .page-pdv .linha-pessoa i {
    width: 32px !important;
    height: 32px !important;
    border-radius: 10px !important;
  }

  .page-pdv .acoes {
    gap: 8px !important;
  }

  .page-pdv .acoes .btn-acao {
    width: 38px !important;
    height: 34px !important;
    margin-bottom: 8px !important;
  }

  .page-pdv .resumo .linha {
    font-size: 14px !important;
  }

  .page-pdv .btn-salvar,
  .page-pdv .btn-finalizar {
    min-height: 40px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    border-radius: 10px !important;
  }
}

@media (max-width: 1280px), (max-height: 700px) {
  .page-pdv .content {
    padding: 14px !important;
  }

  .page-pdv .pdv {
    grid-template-columns: minmax(0, 1fr) 380px !important;
    gap: 12px !important;
  }

  .page-pdv .pdv-produtos,
  .page-pdv .pdv-carrinho {
    padding: 14px !important;
  }

  .page-pdv .produtos-grid {
    grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)) !important;
    gap: 9px !important;
  }

  .page-pdv .produto {
    padding: 9px !important;
    min-height: 158px !important;
  }

  .page-pdv .produto-thumb,
  .page-pdv .produto-thumb--placeholder {
    height: 78px !important;
  }

  .page-pdv .produto .nome {
    font-size: 12px !important;
    min-height: 28px !important;
  }

  .page-pdv .produto .preco {
    font-size: 13px !important;
  }

  .page-pdv .pdv-carrinho h2 {
    font-size: 14px !important;
  }

  .page-pdv .linha-pessoa {
    grid-template-columns: 70px minmax(0, 1fr) 30px !important;
    padding: 6px 7px !important;
  }

  .page-pdv .linha-pessoa i {
    width: 30px !important;
    height: 30px !important;
  }
}

/* ===============================
   PDV - PRODUTO SOBREPOR CATEGORIAS NO HOVER
================================ */

.page-pdv .pdv-topo,
.page-pdv .pdv-filtros-area,
.page-pdv .pdv-filtros {
  position: relative;
  z-index: 1;
}

.page-pdv .produtos-grid {
  position: relative;
  z-index: 5;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-top: 2px !important;
  margin-top: 0 !important;
}

.page-pdv .produtos-grid .produto {
  position: relative;
  z-index: 5;
  transform-origin: center center;
}

.page-pdv .produtos-grid .produto:hover {
  z-index: 30;
  transform: translateY(-2px) !important;
}
/* ===============================
   PDV - DETALHES DO PEDIDO RESPONSIVO
   Ajuste consolidado para monitores menores
================================ */

@media (max-width: 1366px), (max-height: 768px) {
  .page-pdv .pdv {
    grid-template-columns: minmax(0, 1fr) 390px !important;
  }

  .page-pdv .pdv-carrinho {
    padding: 15px !important;
    border-radius: 14px !important;
  }

  .page-pdv .pdv-carrinho h2 {
    font-size: 15px !important;
    margin-bottom: 9px !important;
  }

  .page-pdv .pdv-pessoa {
    padding: 5px !important;
    border-radius: 14px !important;
    margin-bottom: 11px !important;
  }

  .page-pdv .linha-pessoa {
    grid-template-columns: 76px minmax(0, 1fr) 32px !important;
    gap: 7px !important;
    padding: 7px 8px !important;
  }

  .page-pdv .linha-pessoa .label {
    font-size: 12px !important;
  }

  .page-pdv .linha-pessoa strong {
    font-size: 13px !important;
    line-height: 1.2 !important;
  }

  .page-pdv .linha-pessoa i {
    width: 32px !important;
    height: 32px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
  }

  .page-pdv .itens {
    margin-bottom: 10px !important;
    padding-right: 4px !important;
  }

  .page-pdv .item {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    gap: 9px !important;
  }

  .page-pdv .item-controles.item-controles--mini {
    padding: 4px !important;
    gap: 5px !important;
    border-radius: 12px !important;
  }

  .page-pdv .item-controles.item-controles--mini .btn-qtd {
    width: 24px !important;
    height: 24px !important;
    border-radius: 9px !important;
    font-size: 12px !important;
  }

  .page-pdv .item-controles.item-controles--mini .item-qtd,
  .page-pdv .item-controles.item-controles--mini .item-qtd-input {
    width: 32px !important;
    height: 24px !important;
    font-size: 13px !important;
  }

  .page-pdv .item .item-nome .item-titulo {
    font-size: 14px !important;
    line-height: 1.18 !important;
    -webkit-line-clamp: 2;
  }

  .page-pdv .item-sub {
    font-size: 11px !important;
  }

  .page-pdv .item-subtotal {
    min-width: 70px !important;
    font-size: 14px !important;
  }

  .page-pdv .acoes {
    gap: 8px !important;
  }

  .page-pdv .acoes .btn-acao {
    width: 38px !important;
    height: 34px !important;
    border-radius: 9px !important;
    margin-bottom: 8px !important;
  }

  .page-pdv .acoes .btn-acao i {
    font-size: 13px !important;
  }

  .page-pdv .resumo {
    padding-top: 8px !important;
  }

  .page-pdv .resumo .linha {
    font-size: 14px !important;
    margin-bottom: 4px !important;
  }

  .page-pdv .btn-salvar,
  .page-pdv .btn-finalizar {
    height: 40px !important;
    min-height: 40px !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    border-radius: 10px !important;
    margin-top: 6px !important;
    margin-bottom: 0 !important;
  }
}

@media (max-width: 1280px), (max-height: 700px) {
  .page-pdv .pdv {
    grid-template-columns: minmax(0, 1fr) 365px !important;
  }

  .page-pdv .pdv-carrinho {
    padding: 13px !important;
  }

  .page-pdv .pdv-carrinho h2 {
    font-size: 14px !important;
  }

  .page-pdv .linha-pessoa {
    grid-template-columns: 72px minmax(0, 1fr) 30px !important;
    padding: 6px 7px !important;
  }

  .page-pdv .linha-pessoa i {
    width: 30px !important;
    height: 30px !important;
  }

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

  .page-pdv .item-subtotal {
    min-width: 64px !important;
  }


  .page-pdv .btn-salvar,
  .page-pdv .btn-finalizar {
    height: 38px !important;
    min-height: 38px !important;
    font-size: 13px !important;
  }
}

/* ===============================
   PDV - CONTADOR DO CARRINHO MAIS PROPORCIONAL
================================ */

.page-pdv .item-controles.item-controles--mini {
  padding: 3px !important;
  gap: 4px !important;
  border-radius: 11px !important;
}

.page-pdv .item-controles.item-controles--mini .btn-qtd {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  border-radius: 8px !important;
  font-size: 11px !important;
  line-height: 1 !important;
}

.page-pdv .item-controles.item-controles--mini .item-qtd,
.page-pdv .item-controles.item-controles--mini .item-qtd-input {
  width: 26px !important;
  height: 22px !important;
  min-width: 26px !important;
  line-height: 22px !important;
  padding: 0 !important;
}

/* ===============================
   PDV - ITENS DO CARRINHO COM SCROLL INTERNO
   Mantém sobreposição sem quebrar o scroll
================================ */

.page-pdv .pdv-carrinho {
  position: relative;
  overflow: hidden !important;
  min-height: 0 !important;
}

.page-pdv .pdv-pessoa,
.page-pdv .resumo,
.page-pdv .acoes,
.page-pdv .btn-salvar,
.page-pdv .btn-finalizar {
  position: relative;
  z-index: 1;
}

.page-pdv .itens,
.page-pdv #listaItens {
  position: relative;
  z-index: 5;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.page-pdv .item {
  position: relative;
  z-index: 5;
}

.page-pdv .item:hover {
  z-index: 30;
}

/* =========================================================
   CLIENTES - CONFIGURAÇÕES
   ========================================================= */

body.clientes-modal-open {
  overflow: hidden;
}

.page-clientes-config .clientes-page-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page-clientes-config .clientes-config-filtros-card,
.page-clientes-config .clientes-config-table-card {
  border-radius: 22px;
  border: 1px solid #e8edf7;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .04);
}

.page-clientes-config .clientes-config-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.page-clientes-config .clientes-config-header-row h2 {
  margin: 0;
  color: #0f172a;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.page-clientes-config .clientes-config-header-row p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 14px;
}

.page-clientes-config .clientes-config-total {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.page-clientes-config .clientes-config-filtros-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px auto;
  gap: 14px;
  align-items: end;
}

.page-clientes-config .clientes-config-filtro-busca,
.page-clientes-config .clientes-config-filtro-origem {
  min-width: 0;
}

.page-clientes-config label {
  display: block;
  margin: 0 0 6px;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.page-clientes-config input,
.page-clientes-config select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #dbe5f1;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  padding: 9px 12px;
  font-size: 14px;
  outline: none;
  box-shadow: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.page-clientes-config input::placeholder {
  color: #94a3b8;
}

.page-clientes-config input:focus,
.page-clientes-config select:focus {
  border-color: var(--azul, #000caa);
  box-shadow: 0 0 0 3px rgba(0, 12, 170, .08);
}

.page-clientes-config .clientes-config-actions {
  display: flex;
  justify-content: flex-end;
}

.page-clientes-config .clientes-config-actions .btn,
.page-clientes-config .clientes-config-footer .btn,
.page-clientes-config .clientes-config-footer .btn2 {
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
  box-shadow: none;
  text-decoration: none;
}

.page-clientes-config .clientes-config-actions .btn {
  border: 1px solid var(--azul, #000caa);
  background: var(--azul, #000caa);
  color: #fff;
}

.page-clientes-config .clientes-config-actions .btn:hover {
  transform: translateY(-1px);
  background: #0a1696;
  border-color: #0a1696;
  box-shadow: 0 10px 24px rgba(0, 12, 170, .18);
}

.page-clientes-config .clientes-config-footer .btn {
  border: 1px solid var(--azul, #000caa);
  background: var(--azul, #000caa);
  color: #fff;
}

.page-clientes-config .clientes-config-footer .btn:hover {
  transform: translateY(-1px);
  background: #0a1696;
  border-color: #0a1696;
  box-shadow: 0 10px 24px rgba(0, 12, 170, .18);
}

.page-clientes-config .clientes-config-footer .btn2 {
  border: 1px solid #d7dfeb;
  background: #fff;
  color: #334155;
}

.page-clientes-config .clientes-config-footer .btn2:hover {
  transform: translateY(-1px);
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.page-clientes-config .clientes-config-actions .btn:disabled,
.page-clientes-config .clientes-config-footer .btn:disabled,
.page-clientes-config .clientes-config-footer .btn2:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.page-clientes-config .clientes-table-wrap {
  width: 100%;
  overflow: auto;
}

.page-clientes-config .clientes-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 980px;
}

.page-clientes-config .clientes-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  border-bottom: 1px solid #e8edf7;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 14px 16px;
}

.page-clientes-config .clientes-table thead th:first-child {
  border-top-left-radius: 14px;
}

.page-clientes-config .clientes-table thead th:last-child {
  border-top-right-radius: 14px;
}

.page-clientes-config .clientes-table tbody td {
  border-bottom: 1px solid #eef2f7;
  color: #334155;
  font-size: 13px;
  padding: 14px 16px;
  vertical-align: middle;
}

.page-clientes-config .clientes-table tbody tr {
  background: #fff;
  cursor: pointer;
  transition: background .16s ease;
}

.page-clientes-config .clientes-table tbody tr:hover {
  background: #f8faff;
}

.page-clientes-config .cliente-table-name {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.page-clientes-config .cliente-table-name strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
}

.page-clientes-config .cliente-table-name span {
  color: #64748b;
  font-size: 12.5px;
}

.page-clientes-config .clientes-text-muted {
  color: #94a3b8;
}

.page-clientes-config .clientes-table-acoes {
  width: 120px;
  text-align: right;
}

.page-clientes-config .clientes-btn-editar {
  min-height: 34px;
  border: 1px solid #dbe5f1;
  background: #fff;
  color: #0f172a;
  border-radius: 10px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.page-clientes-config .clientes-btn-editar:hover {
  transform: translateY(-1px);
  border-color: var(--azul, #000caa);
  background: #f8faff;
  color: var(--azul, #000caa);
}

.page-clientes-config .cliente-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.page-clientes-config .cliente-tag-delivery {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #bbf7d0;
}

.page-clientes-config .cliente-tag-sistema {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.page-clientes-config .cliente-tag-misto {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.page-clientes-config .clientes-config-empty {
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  color: #64748b;
  border-radius: 16px;
  padding: 22px;
  text-align: center;
  font-size: 14px;
}

/* Modal */

.page-clientes-config .clientes-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(15, 23, 42, .48);
  backdrop-filter: blur(4px);
}

.page-clientes-config .clientes-modal-backdrop.is-open {
  display: flex;
}

.page-clientes-config .clientes-modal {
  width: min(1080px, 100%);
  max-height: calc(100vh - 44px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: #fff;
  border: 1px solid #e8edf7;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
}

.page-clientes-config .clientes-modal-header {
  padding: 20px 22px 16px;
  border-bottom: 1px solid #eef2f7;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.page-clientes-config .clientes-modal-header h3 {
  margin: 0;
  color: #0f172a;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.page-clientes-config .clientes-modal-header p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 13px;
}

.page-clientes-config .clientes-modal-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.page-clientes-config .clientes-modal-close {
  width: 38px;
  height: 38px;
  border: 1px solid #dbe5f1;
  background: #fff;
  color: #334155;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.page-clientes-config .clientes-modal-close:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.page-clientes-config .clientes-modal-tabs {
  padding: 12px 22px 0;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #eef2f7;
}

.page-clientes-config .clientes-tab-btn {
  border: 0;
  background: transparent;
  color: #64748b;
  padding: 11px 14px;
  border-radius: 12px 12px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  border-bottom: 3px solid transparent;
}

.page-clientes-config .clientes-tab-btn:hover {
  color: #0f172a;
  background: #f8fafc;
}

.page-clientes-config .clientes-tab-btn.is-active {
  color: var(--azul, #000caa);
  background: #f8faff;
  border-bottom-color: var(--azul, #000caa);
}

.page-clientes-config .clientes-config-form {
  overflow: auto;
  padding: 20px 22px 22px;
}

.page-clientes-config .clientes-tab-panel {
  display: none;
}

.page-clientes-config .clientes-tab-panel.is-active {
  display: block;
}

.page-clientes-config .clientes-config-section {
  border: 1px solid #eef2f7;
  background: #fbfdff;
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 16px;
}

.page-clientes-config .clientes-config-section:last-child {
  margin-bottom: 0;
}

.page-clientes-config .clientes-config-section-title {
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 14px;
}

.page-clientes-config .clientes-config-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.page-clientes-config .clientes-config-grid:last-child {
  margin-bottom: 0;
}

.page-clientes-config .clientes-config-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-clientes-config .clientes-config-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.page-clientes-config .clientes-config-footer {
  position: sticky;
  bottom: -22px;
  margin: 18px -22px -22px;
  padding: 16px 22px;
  background: #fff;
  border-top: 1px solid #eef2f7;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* Responsivo */

@media (max-width: 1100px) {
  .page-clientes-config .clientes-config-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .page-clientes-config .clientes-config-filtros-row {
    grid-template-columns: 1fr;
  }

  .page-clientes-config .clientes-config-actions {
    justify-content: stretch;
  }

  .page-clientes-config .clientes-config-actions .btn {
    width: 100%;
  }

  .page-clientes-config .clientes-config-header-row {
    flex-direction: column;
    align-items: stretch;
  }

  .page-clientes-config .clientes-config-total {
    width: fit-content;
  }

  .page-clientes-config .clientes-modal-backdrop {
    padding: 10px;
    align-items: stretch;
  }

  .page-clientes-config .clientes-modal {
    max-height: calc(100vh - 20px);
    border-radius: 20px;
  }

  .page-clientes-config .clientes-config-grid-3,
  .page-clientes-config .clientes-config-grid-4 {
    grid-template-columns: 1fr;
  }

  .page-clientes-config .clientes-modal-tabs {
    overflow-x: auto;
  }
}

@media (max-width: 620px) {
  .page-clientes-config .clientes-modal-header {
    flex-direction: column;
  }

  .page-clientes-config .clientes-modal-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .page-clientes-config .clientes-config-footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .page-clientes-config .clientes-config-actions .btn {
    width: 100%;
  }

  .page-clientes-config .clientes-config-footer .btn,
  .page-clientes-config .clientes-config-footer .btn2 {
    width: 100%;
  }
}
/* ===============================
   Fechamentos de Caixa
================================ */

.fechamentos-caixa-page .fin-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.fechamentos-caixa-page .fin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 10px;
}

.fechamentos-caixa-page .fin-card-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.fechamentos-caixa-page .fin-card-sub {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
}

.fechamentos-caixa-page .fin-card-body {
  padding: 10px 22px 24px;
}

.fechamentos-caixa-page .table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
}

.fechamentos-caixa-page table.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  font-size: 14px;
}

.fechamentos-caixa-page table.table thead th {
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.fechamentos-caixa-page table.table tbody td {
  padding: 13px 14px;
  border-bottom: 1px solid #eef2f7;
  color: #0f172a;
  font-weight: 600;
  white-space: nowrap;
}

.fechamentos-caixa-page table.table tbody tr:last-child td {
  border-bottom: 0;
}

.fechamentos-caixa-page table.table tbody tr:hover {
  background: #f8fafc;
}

.fechamentos-caixa-page .btn.btn-primary.btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 13px;
  border-radius: 10px;
  background: #000B8C;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  border: 0;
}

.fechamentos-caixa-page .btn.btn-primary.btn-sm:hover {
  background: #000B8C;
}

.fechamentos-caixa-page .fin-placeholder {
  min-height: 180px;
  border-radius: 16px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-weight: 800;
}

/* ===============================
   Fechamentos de Caixa - detalhe
================================ */

.fechamentos-caixa-page .fcx-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:22px;
}

.fechamentos-caixa-page .fcx-title-row{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:8px;
}

.fechamentos-caixa-page .fcx-title{
  margin:0;
  font-size:32px;
  line-height:1.1;
  font-weight:800;
  color:#0f172a;
}

.fechamentos-caixa-page .fcx-status{
  display:inline-flex;
  align-items:center;
  padding:6px 12px;
  border-radius:999px;
  background:#dcfce7;
  color:#166534;
  font-size:13px;
  font-weight:800;
}

.fechamentos-caixa-page .fcx-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px 18px;
  color:#64748b;
  font-size:14px;
  font-weight:600;
}

.fechamentos-caixa-page .fcx-kpis{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
  gap:14px;
  margin-bottom:24px;
}

.fechamentos-caixa-page .fcx-kpi{
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:16px;
  padding:16px;
}

.fechamentos-caixa-page .fcx-kpi-highlight{
  background:linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color:#bfdbfe;
}

.fechamentos-caixa-page .fcx-kpi-label{
  font-size:13px;
  font-weight:700;
  color:#64748b;
  margin-bottom:8px;
}

.fechamentos-caixa-page .fcx-kpi-value{
  font-size:24px;
  line-height:1.1;
  font-weight:800;
  color:#0f172a;
}

.fechamentos-caixa-page .fcx-filter-box{
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:16px;
  padding:16px;
  margin-bottom:24px;
}

.fechamentos-caixa-page .fcx-filter-title{
  font-size:15px;
  font-weight:800;
  color:#0f172a;
  margin-bottom:12px;
}

.fechamentos-caixa-page .fcx-filter-form{
  display:flex;
  align-items:end;
  gap:12px;
  flex-wrap:wrap;
}

.fechamentos-caixa-page .fcx-field{
  min-width:220px;
}

.fechamentos-caixa-page .fcx-field label{
  display:block;
  margin-bottom:6px;
  font-size:13px;
  font-weight:700;
  color:#475569;
}

.fechamentos-caixa-page .fcx-filter-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.fechamentos-caixa-page .fcx-section{
  margin-top:26px;
}

.fechamentos-caixa-page .fcx-section-head{
  margin-bottom:12px;
}

.fechamentos-caixa-page .fcx-section-title{
  margin:0 0 4px;
  font-size:21px;
  font-weight:800;
  color:#0f172a;
}

.fechamentos-caixa-page .fcx-section-sub{
  margin:0;
  font-size:14px;
  font-weight:600;
  color:#64748b;
}

.fechamentos-caixa-page .fcx-resumo-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(170px, 1fr));
  gap:12px;
}

.fechamentos-caixa-page .fcx-resumo-card{
  background:#ffffff;
  border:1px solid #e2e8f0;
  border-radius:16px;
  padding:16px;
}

.fechamentos-caixa-page .fcx-resumo-label{
  font-size:13px;
  font-weight:700;
  color:#64748b;
  margin-bottom:8px;
}

.fechamentos-caixa-page .fcx-resumo-value{
  font-size:24px;
  line-height:1.1;
  font-weight:800;
  color:#0f172a;
}

@media (max-width: 768px){
  .fechamentos-caixa-page .fcx-title{
    font-size:26px;
  }

  .fechamentos-caixa-page .fcx-kpi-value,
  .fechamentos-caixa-page .fcx-resumo-value{
    font-size:20px;
  }

  .fechamentos-caixa-page .fcx-field{
    min-width:100%;
  }
}

/* ===============================
   Fechamentos de Caixa - compacto
================================ */

.fechamentos-caixa-page .fcx-detail-compact .fin-card-body {
  padding: 22px 24px 26px;
}

.fechamentos-caixa-page .fcx-compact-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.fechamentos-caixa-page .fcx-compact-title {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 800;
  color: #0f172a;
}

.fechamentos-caixa-page .fcx-compact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.fechamentos-caixa-page .fcx-compact-meta strong {
  color: #334155;
}

.fechamentos-caixa-page .fcx-compact-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.fechamentos-caixa-page .fcx-summary-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
}

.fechamentos-caixa-page .fcx-summary-item span {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.fechamentos-caixa-page .fcx-summary-item strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 800;
  color: #0f172a;
}

.fechamentos-caixa-page .fcx-summary-main {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.fechamentos-caixa-page .fcx-payment-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.fechamentos-caixa-page .fcx-payment-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  font-size: 13px;
}

.fechamentos-caixa-page .fcx-payment-pill span {
  font-weight: 700;
  color: #64748b;
}

.fechamentos-caixa-page .fcx-payment-pill strong {
  font-weight: 800;
  color: #0f172a;
}

.fechamentos-caixa-page .fcx-payment-pill i {
  font-size: 13px;
  color: #64748b;
  flex: 0 0 auto;
}

.fechamentos-caixa-page .fcx-section {
  margin-top: 18px;
}

.fechamentos-caixa-page .fcx-table-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.fechamentos-caixa-page .fcx-section-title {
  margin: 0 0 2px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  color: #0f172a;
}

.fechamentos-caixa-page .fcx-section-sub {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.fechamentos-caixa-page .fcx-inline-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fechamentos-caixa-page .fcx-inline-filter .form-control {
  min-width: 170px;
  height: 36px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  background: #ffffff;
}

.fechamentos-caixa-page .fcx-inline-filter .btn {
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
}

.fechamentos-caixa-page .fcx-detail-compact table.table thead th {
  padding: 11px 13px;
  font-size: 12px;
}

.fechamentos-caixa-page .fcx-detail-compact table.table tbody td {
  padding: 11px 13px;
  font-size: 13px;
}

@media (max-width: 900px) {
  .fechamentos-caixa-page .fcx-compact-summary {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

@media (max-width: 640px) {
  .fechamentos-caixa-page .fcx-compact-summary {
    grid-template-columns: 1fr;
  }

  .fechamentos-caixa-page .fcx-inline-filter,
  .fechamentos-caixa-page .fcx-inline-filter .form-control,
  .fechamentos-caixa-page .fcx-inline-filter .btn {
    width: 100%;
  }
}

/* ===============================
   Fechamentos - tabela unificada
================================ */

.fechamentos-caixa-page .fcx-mov-table tbody tr.fcx-row-entrada td {
  background: #f0fdf4;
}

.fechamentos-caixa-page .fcx-mov-table tbody tr.fcx-row-saida td {
  background: #fef2f2;
}

.fechamentos-caixa-page .fcx-mov-table tbody tr.fcx-row-entrada td:first-child {
  box-shadow: inset 4px 0 0 #22c55e;
}

.fechamentos-caixa-page .fcx-mov-table tbody tr.fcx-row-saida td:first-child {
  box-shadow: inset 4px 0 0 #ef4444;
}

.fechamentos-caixa-page .fcx-tipo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.fechamentos-caixa-page .fcx-tipo-badge.fcx-row-venda {
  background: #eff6ff;
  color: #1d4ed8;
}

.fechamentos-caixa-page .fcx-tipo-badge.fcx-row-entrada {
  background: #dcfce7;
  color: #166534;
}

.fechamentos-caixa-page .fcx-tipo-badge.fcx-row-saida {
  background: #fee2e2;
  color: #991b1b;
}

.fechamentos-caixa-page .fcx-mov-table tbody tr.fcx-row-entrada td:last-child strong {
  color: #166534;
}

.fechamentos-caixa-page .fcx-mov-table tbody tr.fcx-row-saida td:last-child strong {
  color: #991b1b;
}

/* ===============================
   Fechamentos - modal de detalhes
================================ */

.fechamentos-caixa-page .fcx-click-row {
  cursor: pointer;
}

.fechamentos-caixa-page .fcx-click-row:hover td {
  filter: brightness(0.985);
}

.fechamentos-caixa-page .fcx-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.fechamentos-caixa-page .fcx-modal-backdrop[hidden] {
  display: none;
}

.fechamentos-caixa-page .fcx-modal-card {
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

.fechamentos-caixa-page .fcx-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.fechamentos-caixa-page .fcx-modal-head h3 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.fechamentos-caixa-page .fcx-modal-head p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.fechamentos-caixa-page .fcx-modal-close {
  width: 36px;
  height: 36px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
}

.fechamentos-caixa-page .fcx-modal-close:hover {
  background: #f8fafc;
}

.fechamentos-caixa-page .fcx-modal-body {
  padding: 18px 20px 20px;
}

.fechamentos-caixa-page .fcx-modal-table-wrap {
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
}

.fechamentos-caixa-page .fcx-modal-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.fechamentos-caixa-page .fcx-modal-table th {
  background: #f8fafc;
  padding: 11px 12px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  color: #334155;
  white-space: nowrap;
}

.fechamentos-caixa-page .fcx-modal-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #eef2f7;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}

.fechamentos-caixa-page .fcx-modal-table tbody tr:last-child td {
  border-bottom: 0;
}

.fechamentos-caixa-page .fcx-modal-info {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
}

.fechamentos-caixa-page .fcx-modal-info-label {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
}

.fechamentos-caixa-page .fcx-modal-info-text {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.fechamentos-caixa-page .fcx-modal-empty {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  color: #64748b;
  font-weight: 700;
}

/* Botão voltar da tela de fechamentos */
.fechamentos-caixa-page .fcx-back-list-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.fechamentos-caixa-page .fcx-back-list-btn:hover {
  background: #dbeafe;
  border-color: #bfdbfe;
  color: #1d4ed8;
  text-decoration: none;
  transform: translateY(-1px);
}

.fechamentos-caixa-page .fcx-back-list-btn i {
  font-size: 13px;
}

/* Filtro automático sem botões */
.fechamentos-caixa-page .fcx-inline-filter {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.fechamentos-caixa-page .fcx-inline-filter .form-control {
  cursor: pointer;
}

/* Hover botão Abrir - lista de fechamentos */
.fechamentos-caixa-page table.table a.btn.btn-primary.btn-sm,
.fechamentos-caixa-page table.table .btn.btn-primary.btn-sm {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, background .15s ease !important;
  will-change: transform;
}

.fechamentos-caixa-page table.table a.btn.btn-primary.btn-sm:hover,
.fechamentos-caixa-page table.table .btn.btn-primary.btn-sm:hover {
  transform: translateY(-2px) !important;
}
/* =========================================================
   HISTÓRICO - AJUSTE PROPORCIONAL EM MONITORES MENORES
   Não altera monitores grandes
=========================================================*/

@media (min-width: 901px) and (max-width: 1500px),
       (min-width: 901px) and (max-height: 820px) {

  .page-historico .content {
    padding: 16px 16px !important;
  }

  .page-historico .hist-wrap {
    gap: 14px !important;
  }

  .page-historico .hist-card,
  .page-historico .hist-report {
    padding: 16px 18px 18px !important;
    border-radius: 16px !important;
  }

  .page-historico .hist-head {
    gap: 10px !important;
  }

  .page-historico .hist-title h2,
  .page-historico .hist-report-head h2 {
    font-size: 15px !important;
  }

  .page-historico .hist-badge {
    padding: 6px 10px !important;
    font-size: 11px !important;
  }

  .page-historico .hist-actions {
    gap: 8px !important;
  }

  .page-historico .hist-link,
  .page-historico .hist-btn {
    min-height: 36px !important;
    padding: 8px 11px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
  }

  .page-historico .hist-metrics {
    margin-top: 12px !important;
    gap: 10px !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .page-historico .hist-metric {
    padding: 11px 12px !important;
    border-radius: 12px !important;
  }

  .page-historico .hist-metric .t {
    font-size: 12px !important;
    gap: 6px !important;
  }

  .page-historico .hist-metric .v {
    margin-top: 5px !important;
    font-size: 14px !important;
  }

  .page-historico .hist-close-btn {
    margin-top: 12px !important;
    min-height: 40px !important;
    padding: 10px 14px !important;
    border-radius: 11px !important;
    font-size: 13px !important;
  }

  .page-historico .hist-tabs {
    margin-top: 10px !important;
    gap: 18px !important;
    padding-bottom: 8px !important;
  }

  .page-historico .hist-tab {
    padding: 8px 0 !important;
    font-size: 12px !important;
  }

  .page-historico .hist-tab.active:after {
    bottom: -9px !important;
  }

  .page-historico .hist-filter {
    margin-top: 10px !important;
    gap: 10px !important;
  }

  .page-historico .hist-search {
    padding: 10px 12px !important;
    border-radius: 10px !important;
  }

  .page-historico .hist-search input {
    font-size: 13px !important;
  }

  .page-historico .hist-filter-btn {
    min-height: 40px !important;
    padding: 9px 13px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
  }

  .page-historico .hist-tabpane {
    margin-top: 10px !important;
  }

  .page-historico .hist-table {
    min-width: 760px !important;
  }

  .page-historico .hist-table thead th {
    padding: 10px 10px !important;
    font-size: 11.5px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  .page-historico .hist-table tbody td {
    padding: 12px 10px !important;
    font-size: 12.5px !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
  }

  .page-historico .hist-table tbody td small {
    font-size: 11px !important;
  }

  .page-historico .hist-icon-btn {
    width: 34px !important;
    height: 34px !important;
    border-radius: 9px !important;
  }

  .page-historico .hist-chip {
    padding: 5px 8px !important;
    font-size: 11px !important;
  }
}

/* =========================================================
   HISTÓRICO - EFEITO HOVER EM BOTÕES
=========================================================*/

.page-historico button,
.page-historico .hist-btn,
.page-historico .hist-link,
.page-historico .hist-filter-btn,
.page-historico .hist-icon-btn,
.page-historico .hist-close-btn,
.page-historico .hist-tab {
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease !important;
  will-change: transform;
}

.page-historico button:not(:disabled):hover,
.page-historico .hist-btn:not(:disabled):hover,
.page-historico .hist-link:hover,
.page-historico .hist-filter-btn:not(:disabled):hover,
.page-historico .hist-icon-btn:not(:disabled):hover,
.page-historico .hist-close-btn:not(:disabled):hover,
.page-historico .hist-tab:hover {
  transform: translateY(-2px) !important;
}

.page-historico button:not(:disabled):active,
.page-historico .hist-btn:not(:disabled):active,
.page-historico .hist-link:active,
.page-historico .hist-filter-btn:not(:disabled):active,
.page-historico .hist-icon-btn:not(:disabled):active,
.page-historico .hist-close-btn:not(:disabled):active,
.page-historico .hist-tab:active {
  transform: translateY(0) !important;
}

/* =========================================================
   PDV - EFEITO HOVER NOS BOTÕES SALVAR E FINALIZAR VENDA
=========================================================*/

.page-pdv .btn-salvar,
.page-pdv .btn-finalizar {
  transition: transform .15s ease, background .15s ease, filter .15s ease !important;
  will-change: transform;
}

.page-pdv .btn-salvar:hover,
.page-pdv .btn-finalizar:hover {
  transform: translateY(-2px) !important;
}

.page-pdv .btn-salvar:active,
.page-pdv .btn-finalizar:active {
  transform: translateY(0) !important;
}

/* =========================================================
   PDV - EFEITO HOVER NO MODAL DE PAGAMENTO
=========================================================*/

.page-pdv #pgDrawer .pg-metodo,
.page-pdv #pgDrawer .pg-dividir-toggle,
.page-pdv #pgDrawer .pg-chip,
.page-pdv #pgDrawer .pg-btn,
.page-pdv #pgDrawer .drawer-close {
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease !important;
  will-change: transform;
}

.page-pdv #pgDrawer .pg-metodo:not(:disabled):hover,
.page-pdv #pgDrawer .pg-dividir-toggle:not(:disabled):hover,
.page-pdv #pgDrawer .pg-chip:not(:disabled):hover,
.page-pdv #pgDrawer .pg-btn:not(:disabled):hover,
.page-pdv #pgDrawer .drawer-close:not(:disabled):hover {
  transform: translateY(-2px) !important;
}

.page-pdv #pgDrawer .pg-metodo:not(:disabled):active,
.page-pdv #pgDrawer .pg-dividir-toggle:not(:disabled):active,
.page-pdv #pgDrawer .pg-chip:not(:disabled):active,
.page-pdv #pgDrawer .pg-btn:not(:disabled):active,
.page-pdv #pgDrawer .drawer-close:not(:disabled):active {
  transform: translateY(0) !important;
}

/* =========================================================
   HISTÓRICO - IMPRESSÃO SOMENTE DO RELATÓRIO DO CAIXA
=========================================================*/

.hist-print-relatorio {
  display: none;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 10mm;
  }

  body.page-historico {
    background: #ffffff !important;
  }

  body.page-historico .sidebar,
  body.page-historico .topbar,
  body.page-historico .impersonacao-floating,
  body.page-historico .impersonacao-floating *,
  body.page-historico .hist-wrap,
  body.page-historico .hist-filters,
  body.page-historico .modal-overlay,
  body.page-historico .modal-backdrop {
    display: none !important;
  }

  body.page-historico .main,
  body.page-historico .content {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    overflow: visible !important;
  }

  body.page-historico .hist-print-relatorio {
    display: block !important;
    width: 100% !important;
    color: #111827 !important;
    background: #ffffff !important;
    font-family: Arial, sans-serif !important;
    font-size: 11px !important;
  }

  body.page-historico .hist-print-head {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 16px !important;
    padding-bottom: 10px !important;
    margin-bottom: 10px !important;
    border-bottom: 1px solid #d1d5db !important;
  }

  body.page-historico .hist-print-head h1 {
    margin: 0 0 4px !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
    color: #111827 !important;
  }

  body.page-historico .hist-print-head p {
    margin: 0 !important;
    font-size: 11px !important;
    color: #4b5563 !important;
  }

  body.page-historico .hist-print-meta {
    text-align: right !important;
    font-size: 10px !important;
    line-height: 1.45 !important;
    color: #374151 !important;
  }

  body.page-historico .hist-print-kpis {
    display: flex !important;
    align-items: stretch !important;
    gap: 6px !important;
    margin-bottom: 9px !important;
    width: 100% !important;
  }

  body.page-historico .hist-print-kpis > div {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 7px !important;
    padding: 8px 9px !important;
    background: #f9fafb !important;
  }

  body.page-historico .hist-print-kpis span {
    display: block !important;
    margin-bottom: 4px !important;
    color: #6b7280 !important;
    font-size: 8px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body.page-historico .hist-print-kpis strong {
    display: block !important;
    color: #111827 !important;
    font-size: 10.5px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
  }

  body.page-historico .hist-print-table {
    width: 100% !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
  }

  body.page-historico .hist-print-table th {
    padding: 7px 6px !important;
    border: 1px solid #d1d5db !important;
    background: #f3f4f6 !important;
    color: #111827 !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    text-align: left !important;
  }

  body.page-historico .hist-print-table td {
    padding: 7px 6px !important;
    border: 1px solid #e5e7eb !important;
    color: #111827 !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
    vertical-align: top !important;
    word-break: break-word !important;
  }

  body.page-historico .hist-print-table th:nth-child(1),
  body.page-historico .hist-print-table td:nth-child(1) {
    width: 9% !important;
  }

  body.page-historico .hist-print-table th:nth-child(2),
  body.page-historico .hist-print-table td:nth-child(2) {
    width: 12% !important;
  }

  body.page-historico .hist-print-table th:nth-child(3),
  body.page-historico .hist-print-table td:nth-child(3) {
    width: 14% !important;
  }

  body.page-historico .hist-print-table th:nth-child(4),
  body.page-historico .hist-print-table td:nth-child(4) {
    width: 28% !important;
  }

  body.page-historico .hist-print-table th:nth-child(5),
  body.page-historico .hist-print-table td:nth-child(5) {
    width: 10% !important;
  }

  body.page-historico .hist-print-table th:nth-child(6),
  body.page-historico .hist-print-table td:nth-child(6) {
    width: 14% !important;
  }

  body.page-historico .hist-print-table th:nth-child(7),
  body.page-historico .hist-print-table td:nth-child(7) {
    width: 13% !important;
    text-align: right !important;
  }

  body.page-historico .hist-print-row-entrada td {
    background: #f0fdf4 !important;
  }

  body.page-historico .hist-print-row-saida td {
    background: #fef2f2 !important;
  }

  body.page-historico .hist-print-row-entrada td:nth-child(2),
  body.page-historico .hist-print-row-entrada td:nth-child(7) {
    color: #166534 !important;
    font-weight: 700 !important;
  }

  body.page-historico .hist-print-row-saida td:nth-child(2),
  body.page-historico .hist-print-row-saida td:nth-child(7) {
    color: #991b1b !important;
    font-weight: 700 !important;
  }

  body.page-historico .hist-print-empty {
    padding: 14px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    background: #f9fafb !important;
    color: #374151 !important;
    font-weight: 700 !important;
  }
}

/* =========================================================
   FINANCEIRO - PAINEL INICIAL
   Dashboard + Venda por Produto + Saldos de Caixa
=========================================================*/

.fin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.fin-dashboard-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  min-height: 670px;
}

.fin-dashboard-col > .fin-card {
  overflow: hidden;
}

.fin-flow-card {
  min-height: 382px;
}

.fin-flow-card-body {
  padding: 0;
  overflow: hidden;
}

.fin-flow-chart-area {
  background: linear-gradient(135deg, #2ea3f2, #1e3a8a);
  padding: 16px;
  color: #fff;
  height: 220px;
  min-height: 220px;
  max-height: 220px;
  position: relative;
  overflow: hidden;
}

.fin-flow-chart-head {
  font-size: 12px;
  font-weight: 800;
  opacity: 0.9;
  margin-bottom: 6px;
}

.fin-flow-chart-placeholder {
  height: 170px;
  min-height: 170px;
  max-height: 170px;
  border-radius: 10px;
  position: relative;
}

#fluxoChart {
  width: 100% !important;
  height: 170px !important;
  display: block;
}

.fin-flow-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

.fin-flow-stat {
  text-align: center;
  padding: 14px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.fin-flow-stat strong {
  font-size: 16px;
  font-weight: 900;
  color: #111827;
}

.fin-flow-stat span {
  font-size: 11px;
  color: #6B7280;
  font-weight: 700;
}

.fin-flow-stat-icon {
  font-size: 16px;
  margin-bottom: 4px;
}

.fin-flow-stat-icon-1 { color: #6366f1; }
.fin-flow-stat-icon-2 { color: #3b82f6; }
.fin-flow-stat-icon-3 { color: #22c55e; }
.fin-flow-stat-icon-4 { color: #a855f7; }
.fin-flow-stat-icon-5 { color: #9ca3af; }

.fin-produtos-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
}

.fin-produtos-card .fin-card-head {
  flex: 0 0 auto;
  margin-bottom: 10px;
}

.fin-produtos-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fin-produtos-chart-area {
  flex: 0 0 220px;
  height: 220px;
  min-height: 178px;
  max-height: 220px;
  background: linear-gradient(135deg, #2ea3f2, #1e3a8a);
  border-radius: 16px;
  padding: 12px;
  position: relative;
  overflow: hidden;
}

#produtosChart {
  width: 100% !important;
  height: 196px !important;
  display: block;
}

.fin-produtos-empty {
  flex: 0 0 220px;
  height: 220px;
  min-height: 178px;
  max-height: 220px;
  border-radius: 16px;
  background: #F3F4F6;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  color: #6B7280;
  font-size: 13px;
  font-weight: 800;
}

.fin-produtos-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  background: #F8FAFC;
  color: #111827;
  font-size: 13px;
  font-weight: 900;
}

.fin-produtos-footer span,
.fin-produtos-footer strong {
  color: #111827;
}

.fin-saldos-card {
  align-self: start;
  display: flex;
  flex-direction: column;
}

.fin-saldos-card .fin-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-top: 0;
}

.fin-saldos-card .fin-list {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  margin-top: 0;
}

.fin-saldos-card .fin-item {
  flex: 1 1 0;
  min-height: 82px;
  align-items: center;
}

.fin-saldos-card .fin-total {
  flex: 0 0 auto;
  margin-top: 14px;
}

@media (max-width: 1500px), (max-height: 820px) {
  .fin-dashboard-col {
    min-height: 630px;
  }

  .fin-flow-card {
    min-height: 382px;
  }

  .fin-produtos-card {
    min-height: 250px;
  }

  .fin-produtos-chart-area,
  .fin-produtos-empty {
    flex-basis: 200px;
    height: 200px;
    max-height: 200px;
  }

  #produtosChart {
    height: 176px !important;
  }
}

@media (max-width: 980px) {
  .fin-grid {
    grid-template-columns: 1fr;
  }

  .fin-dashboard-col {
    min-height: 0;
  }
}

/* =========================================================
   FINANCEIRO HOME - AJUSTE PROPORCIONAL EM MONITORES MENORES
   Afeta somente financeiro.php
   Não altera a lógica de alinhamento dos gráficos
=========================================================*/

@media (min-width: 981px) and (max-width: 1500px),
       (min-width: 981px) and (max-height: 820px) {

  .page-financeiro-home .content {
    padding: 18px 22px !important;
  }

  .page-financeiro-home .fin-wrap {
    padding: 16px !important;
  }

  .page-financeiro-home .fin-grid {
    gap: 14px !important;
  }

  .page-financeiro-home .fin-dashboard-col {
    gap: 14px !important;
    min-height: 630px !important;
  }

  .page-financeiro-home .fin-card {
    padding: 14px 14px 12px !important;
    border-radius: 15px !important;
  }

  .page-financeiro-home .fin-card-head,
  .page-financeiro-home .fin-card-head-graf {
    gap: 10px !important;
    margin-bottom: 8px !important;
  }

  .page-financeiro-home .fin-card-title {
    font-size: 16px !important;
  }

  .page-financeiro-home .fin-card-sub {
    font-size: 12px !important;
  }

  .page-financeiro-home .fin-flow-card {
    min-height: 360px !important;
  }

  .page-financeiro-home .fin-flow-chart-area {
    height: 205px !important;
    min-height: 205px !important;
    max-height: 205px !important;
    padding: 14px !important;
  }

  .page-financeiro-home .fin-flow-chart-placeholder {
    height: 158px !important;
    min-height: 158px !important;
    max-height: 158px !important;
  }

  .page-financeiro-home #fluxoChart {
    height: 158px !important;
  }

  .page-financeiro-home .fin-flow-stat {
    padding: 12px 5px !important;
    gap: 3px !important;
  }

  .page-financeiro-home .fin-flow-stat strong {
    font-size: 14px !important;
  }

  .page-financeiro-home .fin-flow-stat span {
    font-size: 10.5px !important;
  }

  .page-financeiro-home .fin-flow-stat-icon {
    font-size: 15px !important;
    margin-bottom: 3px !important;
  }

  .page-financeiro-home .fin-produtos-card {
    min-height: 250px !important;
  }

  .page-financeiro-home .fin-produtos-body {
    gap: 7px !important;
    margin-top: 5px !important;
  }

  .page-financeiro-home .fin-produtos-chart-area,
  .page-financeiro-home .fin-produtos-empty {
    min-height: 170px !important;
    border-radius: 14px !important;
    padding: 11px !important;
  }

  .page-financeiro-home .fin-produtos-footer {
    padding: 8px 10px !important;
    border-radius: 11px !important;
    font-size: 12px !important;
  }

  .page-financeiro-home .fin-saldos-card .fin-list {
    gap: 10px !important;
  }

  .page-financeiro-home .fin-saldos-card .fin-item {
    min-height: 78px !important;
    padding: 12px 14px !important;
    border-radius: 14px !important;
  }

  .page-financeiro-home .fin-dot {
    width: 38px !important;
    height: 38px !important;
    border-radius: 11px !important;
    font-size: 16px !important;
  }

  .page-financeiro-home .fin-name {
    font-size: 14px !important;
    max-width: 220px !important;
  }

  .page-financeiro-home .fin-values {
    gap: 10px !important;
  }

  .page-financeiro-home .fin-col {
    min-width: 112px !important;
    padding: 7px 9px !important;
    border-radius: 11px !important;
  }

  .page-financeiro-home .fin-col small {
    font-size: 10px !important;
  }

  .page-financeiro-home .fin-col strong {
    font-size: 13px !important;
  }

  .page-financeiro-home .fin-total {
    margin-top: 12px !important;
    padding-top: 9px !important;
    font-size: 14px !important;
  }

  .page-financeiro-home .fin-mini-grid {
    gap: 14px !important;
    margin-top: 14px !important;
    grid-template-columns: repeat(auto-fit, minmax(126px, 126px)) !important;
  }

  .page-financeiro-home .fin-mini-card {
    width: 126px !important;
    min-height: 138px !important;
    padding: 16px 12px !important;
    gap: 11px !important;
    border-radius: 13px !important;
  }

  .page-financeiro-home .fin-mini-icon {
    width: 54px !important;
    height: 54px !important;
    font-size: 28px !important;
    border-radius: 14px !important;
  }

  .page-financeiro-home .fin-mini-label {
    font-size: 16px !important;
  }
}

/* ===============================
   PRODUTOS - MODAL DE MODELOS ACIMA DO MODAL DE EDIÇÃO
================================ */

.page-produtos #modalModelosOpcoesProduto.modal-bg,
.page-produtos #modalModelosOpcoesProduto.modal-bg.show,
.page-produtos #modalModelosOpcoesProduto.modal-bg.is-open {
  z-index: 10080 !important;
}

.page-produtos #modalModelosOpcoesProduto .modal-card {
  position: relative;
  z-index: 10081 !important;
}

/* ===============================
   NXR - CAIXA GLOBAL DE MENSAGEM
================================ */

.nxr-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(15, 23, 42, .42);
  backdrop-filter: blur(3px);
}

.nxr-dialog-overlay.is-open {
  display: flex;
}

.nxr-dialog-card {
  width: min(430px, 100%);
  background: #fff;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .20);
  overflow: hidden;
  animation: nxrDialogIn .16s ease-out;
}

@keyframes nxrDialogIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.nxr-dialog-body {
  padding: 24px 24px 18px;
  text-align: center;
}

.nxr-dialog-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  font-size: 23px;
  background: #eff6ff;
  color: #2563eb;
}

.nxr-dialog-card.is-success .nxr-dialog-icon {
  background: #dcfce7;
  color: #16a34a;
}

.nxr-dialog-card.is-error .nxr-dialog-icon,
.nxr-dialog-card.is-danger .nxr-dialog-icon {
  background: #fee2e2;
  color: #dc2626;
}

.nxr-dialog-card.is-warning .nxr-dialog-icon {
  background: #fef3c7;
  color: #d97706;
}

.nxr-dialog-title {
  margin: 0;
  color: #0f172a;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
}

.nxr-dialog-message {
  margin: 9px 0 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  white-space: pre-line;
}

.nxr-dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 18px 18px;
  border-top: 1px solid #eef2f7;
  background: #f8fafc;
}

.nxr-dialog-btn {
  border: 0;
  border-radius: 13px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .14s ease, background .14s ease;
}

.nxr-dialog-btn:hover {
  transform: translateY(-1px);
}

.nxr-dialog-btn-cancel {
  background: #e2e8f0;
  color: #334155;
}

.nxr-dialog-btn-cancel:hover {
  background: #cbd5e1;
}

.nxr-dialog-btn-confirm {
  background: #2563eb;
  color: #fff;
}

.nxr-dialog-btn-confirm:hover {
  background: #1d4ed8;
}

.nxr-dialog-card.is-danger .nxr-dialog-btn-confirm,
.nxr-dialog-card.is-error .nxr-dialog-btn-confirm {
  background: #dc2626;
}

.nxr-dialog-card.is-danger .nxr-dialog-btn-confirm:hover,
.nxr-dialog-card.is-error .nxr-dialog-btn-confirm:hover {
  background: #b91c1c;
}

@media (max-width: 520px) {
  .nxr-dialog-actions {
    flex-direction: column-reverse;
  }

  .nxr-dialog-btn {
    width: 100%;
  }
}

/* ===============================
   PDV - SETAS CATEGORIAS 1600x900
   Apenas exibe/posiciona as setas
================================ */
@media (min-width: 1367px) and (max-width: 1600px) and (max-height: 900px){

  .page-pdv .pdv-filtros {
    gap: 5px;
  }

  .page-pdv .pdv-filtros-area{
    position: relative !important;
    padding: 0 20px !important;
  }

  .page-pdv .pdv-filtros-nav{
    display: inline-flex !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;

    width: 22px !important;
    height: 22px !important;

    border: 0 !important;
    border-radius: 999px !important;
    padding: 0 !important;

    align-items: center !important;
    justify-content: center !important;

    background: rgba(255,255,255,.92) !important;
    color: #4B5563 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,.16) !important;

    cursor: pointer !important;
    z-index: 20 !important;
  }

  .page-pdv .pdv-filtros-nav--prev{
    left: -7px !important;
  }

  .page-pdv .pdv-filtros-nav--next{
    right: -7px !important;
  }

  .page-pdv .pdv-filtros-nav i{
    font-size: 10px !important;
    line-height: 1 !important;
  }

  .page-pdv .pdv-filtros-nav:disabled{
    opacity: .22 !important;
    cursor: default !important;
  }
}


/* =========================================================
   ORGANIZAR PDV - TODOS FIXADO E VISIBILIDADE DAS CATEGORIAS
========================================================= */
.page-organizar-pdv .opdv-cat-card-todos{
  border-color:#dbeafe;
  background:linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.page-organizar-pdv .opdv-cat-card-todos.is-pinned{
  border-color:#93c5fd;
  box-shadow:0 12px 26px rgba(37,99,235,.08);
}

.page-organizar-pdv .opdv-pin-toggle,
.page-organizar-pdv .opdv-vis-toggle{
  width:34px;
  height:34px;
  border:0;
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  flex:0 0 auto;
  transition:transform .12s ease, background .12s ease, color .12s ease, box-shadow .12s ease;
}

.page-organizar-pdv .opdv-pin-toggle{
  background:#eef2ff;
  color:#64748b;
}

.page-organizar-pdv .opdv-pin-toggle.is-active{
  background:#2563eb;
  color:#fff;
  box-shadow:0 10px 18px rgba(37,99,235,.22);
}

.page-organizar-pdv .opdv-pin-toggle:hover,
.page-organizar-pdv .opdv-vis-toggle:hover{
  transform:translateY(-1px);
}

.page-organizar-pdv .opdv-cat-card-todos.is-pinned .opdv-pin-toggle{
  cursor:pointer;
}

.page-organizar-pdv .opdv-cat-card-todos.is-pinned{
  cursor:default;
}

.page-organizar-pdv .opdv-cat-img-all{
  background:#eef2ff;
}

.page-organizar-pdv .opdv-cat-img-all img{
  width:70%;
  height:70%;
  object-fit:contain;
}

.page-organizar-pdv .opdv-cat-status{
  flex:0 0 auto;
  border-radius:999px;
  padding:6px 9px;
  background:#eef2ff;
  color:#1d4ed8;
  font-size:11px;
  font-weight:950;
}

.page-organizar-pdv .opdv-vis-toggle.is-visible{
  background:#ecfdf5;
  color:#047857;
}

.page-organizar-pdv .opdv-vis-toggle.is-hidden{
  background:#fef2f2;
  color:#b91c1c;
}

.page-organizar-pdv .opdv-cat-card.is-hidden-pdv{
  opacity:.62;
  background:#fafafa;
}

.page-organizar-pdv .opdv-cat-card.is-hidden-pdv .opdv-cat-img,
.page-organizar-pdv .opdv-cat-card.is-hidden-pdv .opdv-cat-info strong{
  filter:grayscale(1);
}

.page-organizar-pdv .opdv-cat-card.is-hidden-pdv .opdv-cat-info strong{
  color:#6b7280;
}

/* ===============================
   PDV - Nome do produto com no máximo 2 linhas
   Mantém os cards com altura padronizada em telas grandes
================================ */
.page-pdv .produtos-grid .produto .nome,
.page-pdv .produto .nome{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  line-height:17px;
  min-height:34px;
  max-height:34px;
}


/* ===============================
   PDV - Paginação das categorias também em monitores grandes
   Mantém no máximo 2 linhas de categorias e usa as setas para o restante
================================ */
@media (min-width: 1601px), (min-height: 901px){
  .page-pdv .pdv-filtros-area{
    position:relative !important;
    padding:0 20px !important;
  }

  .page-pdv .pdv-filtros{
    display:flex !important;
    flex-wrap:wrap !important;
    overflow:hidden !important;
    column-gap:10px !important;
    row-gap:10px !important;
    padding-bottom:4px !important;
    scrollbar-width:none !important;
  }

  .page-pdv .pdv-filtros::-webkit-scrollbar{
    display:none !important;
  }

  .page-pdv .pdv-filtros .filtro{
    flex:0 0 auto !important;
  }

  .page-pdv .pdv-filtros-nav{
    display:inline-flex !important;
    position:absolute !important;
    top:50% !important;
    transform:translateY(-50%) !important;
    width:22px !important;
    height:22px !important;
    border:0 !important;
    border-radius:999px !important;
    padding:0 !important;
    align-items:center !important;
    justify-content:center !important;
    background:rgba(255,255,255,.92) !important;
    color:#4B5563 !important;
    box-shadow:0 2px 6px rgba(0,0,0,.16) !important;
    cursor:pointer !important;
    z-index:20 !important;
  }

  .page-pdv .pdv-filtros-nav--prev{
    left:-7px !important;
  }

  .page-pdv .pdv-filtros-nav--next{
    right:-7px !important;
  }

  .page-pdv .pdv-filtros-nav i{
    font-size:10px !important;
    line-height:1 !important;
  }

  .page-pdv .pdv-filtros-nav:disabled{
    opacity:.22 !important;
    cursor:default !important;
  }
}


/* ===============================
   PDV - Setas das categorias só quando necessário
   O JS adiciona .has-pagination somente quando existe próxima página
================================ */
.page-pdv .pdv-filtros-area:not(.has-pagination){
  padding-left:7px !important;
  padding-right:0 !important;
}

.page-pdv .pdv-filtros-area:not(.has-pagination) .pdv-filtros-nav{
  display:none !important;
}

.page-pdv .pdv-filtros-area.has-pagination{
  position:relative !important;
  padding-left:15px !important;
  padding-right:15px !important;
}

.page-pdv .pdv-filtros-area.has-pagination .pdv-filtros-nav{
  display:inline-flex !important;
  position:absolute !important;
  top:50% !important;
  transform:translateY(-50%) !important;
  width:22px !important;
  height:22px !important;
  border:0 !important;
  border-radius:999px !important;
  padding:0 !important;
  align-items:center !important;
  justify-content:center !important;
  background:rgba(255,255,255,.92) !important;
  color:#4B5563 !important;
  box-shadow:0 2px 6px rgba(0,0,0,.16) !important;
  cursor:pointer !important;
  z-index:20 !important;
}

.page-pdv .pdv-filtros-area.has-pagination .pdv-filtros-nav--prev{
  left:-7px !important;
}

.page-pdv .pdv-filtros-area.has-pagination .pdv-filtros-nav--next{
  right:-7px !important;
}

.page-pdv .pdv-filtros-area.has-pagination .pdv-filtros-nav:disabled{
  opacity:.22 !important;
  cursor:default !important;
}
