/* =======================================================================
   NexoERP — Layout Unificado (2025)
   Estilo: SaaS/CRM (como a referência)
   -----------------------------------------------------------------------
   COMO USAR OS "KNOBS" (variáveis):
   - Radius global:        --radius-xl/lg/md/sm
   - Radius só do MENU:    --menu-radius
   - Larguras:             --sidebar-w, --topbar-h
   - Cores principais:     veja Bloco [A] (tokens) claro/escuro
   ======================================================================= */


/* =======================================================================
   [A] TOKENS (cores, raios, sombras, medidas)
   - LIGHT: paleta azul SaaS
   - DARK : navy quase preto, texto azulado
   ======================================================================= */
:root{
  /* medidas */
  --sidebar-w: 290px;
  --topbar-h: 66px;

  /* raios (GLOBAL) — mais arredondado, estilo SaaS moderno */
  --radius-xl: 24px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  /* raio dedicado ao MENU (fácil de “achatar” só a lateral) */
  --menu-radius: 0; /* deixe 0 para menu sem arredondados; mude p/ 12px se quiser */

  /* sombras */
  --shadow-1: 0 10px 30px rgba(20,35,60,.08);
  --shadow-2: 0 24px 70px rgba(20,35,60,.16);

  /* ---------- LIGHT (padrão) ---------- */
  --bg: #EEF2F7;            /* fundo da página */
  --surface-1: #FFFFFF;     /* cards */
  --surface-2: #F5F7FB;     /* cabeçalhos/list headers */
  --ink-1: #1E2A44;         /* texto principal */
  --ink-2: #354766;         /* texto secundário */
  --ink-3: #8B9AB6;         /* texto atenuado */
  --border: rgba(30, 42, 68, .14);

  /* marca/realces (mantidos no estilo do site) */
  --brand:  #4E7EF5;        /* primário (botões/links) */
  --brand-2:#56C8FF;        /* aqua para toques */
  --brand-3:#2E6BE8;        /* hover mais escuro */
  --glow:   rgba(46,107,232,.20);
}

[data-bs-theme="dark"]{
  /* ---------- DARK ---------- */
  --bg: #121827;
  --surface-1: #0D1424;
  --surface-2: #0B1221;
  --ink-1: #E6EDF7;
  --ink-2: #C7D3EA;
  --ink-3: #90A1BF;
  --border: rgba(124,144,176,.22);

  --brand:  #7CA1FF;
  --brand-2:#5DD3FF;
  --brand-3:#5B86FF;
  --glow:   rgba(124,161,255,.22);
}


/* =======================================================================
   [B] BASE + UTILIDADES GERAIS
   ======================================================================= */
html, body { height: 100%; }
body{
  background: var(--bg);
  color: var(--ink-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Quando não há loja, esconde sidebar e libera conteúdo */
body.no-store .app-sidebar { display: none !important; }
body.no-store .app-content { margin-left: 0 !important; }

/* Z-index para evitar backdrops presos ao trocar telas */
.navbar.app-topbar { z-index: 1080; }
.app-sidebar { z-index: 1075; }
body:not(.modal-open) .modal-backdrop,
body:not(.modal-open) .offcanvas-backdrop{ display:none !important; pointer-events:none !important; }

/* Seleção, accent e helpers */
*{ accent-color: var(--brand); }
::selection{ background: color-mix(in oklab, var(--brand) 42%, transparent); color:#fff; }
hr{ border-color: var(--border); }
.small, small{ color: var(--ink-3); }


/* =======================================================================
   [C] TOPBAR (header)
   - haze claro no tema light e azul-haze no dark
   ======================================================================= */
.app-topbar{
  height: var(--topbar-h);
  background:
    radial-gradient(1400px 160px at 0% 0%, color-mix(in oklab, var(--brand) 10%, transparent) 0%, transparent 65%),
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.78));
  border-bottom: 1px solid color-mix(in oklab, var(--border) 90%, transparent);
  backdrop-filter: saturate(1.05) blur(6px);
}
[data-bs-theme="dark"] .app-topbar{
  background:
    radial-gradient(1400px 160px at 0% 0%, rgba(124,161,255,.10) 0%, transparent 65%),
    linear-gradient(180deg, rgba(17,24,39,.92), rgba(17,24,39,.78));
  border-bottom: 1px solid rgba(124,144,176,.18);
}
.app-topbar .navbar-brand{
  display:flex; align-items:center; gap:.6rem;
  color: var(--ink-1); font-weight: 800; letter-spacing:.2px;
}
.brand-dot{
  width:12px; height:12px; border-radius:999px;
  background: radial-gradient(circle at 35% 35%, var(--brand-2), var(--brand));
  box-shadow: 0 0 14px var(--glow);
}
.btn-icon{
  padding:.45rem .55rem; line-height:1;
  border:1px solid color-mix(in oklab, var(--border) 70%, transparent);
  background: var(--surface-2);
}


/* =======================================================================
   [D] SIDEBAR (menu lateral)
   - Visual igual ao da referência
   - Usa --menu-radius para arredondar só o menu (padrão 0)
   ======================================================================= */
.app-sidebar{
  position: fixed; inset: var(--topbar-h) auto 0 0;
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #2F4C7F 0%, #203963 100%);
  border-right: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 10px 38px rgba(9,16,28,.28);
  overflow: hidden;
  transform: translateX(0);
  transition: transform .25s ease, background-color .25s ease, width .2s ease;
}
[data-bs-theme="dark"] .app-sidebar{
  background: linear-gradient(180deg, #0F2A50 0%, #0A1D3A 100%);
  border-right: 1px solid rgba(0,0,0,.35);
  box-shadow: 0 16px 54px rgba(0,0,0,.42);
}

/* Scrollbar da lateral */
.app-sidebar .sidebar-inner{ height: 100%; overflow: auto; padding: .9rem .9rem 1.2rem; }
.app-sidebar .sidebar-inner::-webkit-scrollbar{ width: 10px; }
.app-sidebar .sidebar-inner::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.25);
  border-radius: 12px;
}

/* Card do usuário */
.sidebar-user{
  display:flex; gap:.8rem; align-items:center;
  padding:.7rem .7rem;
  border-radius: var(--menu-radius);
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  color:#fff;
}
.sidebar-user .avatar{
  width:44px; height:44px; border-radius: var(--menu-radius);
  display:flex; align-items:center; justify-content:center;
  font-weight:800; color:#fff;
  background: radial-gradient(circle at 35% 35%, var(--brand-2), var(--brand));
  box-shadow: 0 0 16px var(--glow);
  border: 2px solid rgba(255,255,255,.25);
}
.sidebar-user .info .name{ font-weight:700; color:#fff; line-height:1.1; }
.sidebar-user .info .role{ font-size:.82rem; color: rgba(255,255,255,.85); }

/* Seções e toggles */
.sidebar-sep{ border-color: rgba(255,255,255,.18); margin:.95rem 0 .7rem; }
.sidebar-menu .sidebar-section{ margin-bottom:.25rem; }
.sidebar-toggle{
  width:100%; display:flex; align-items:center; gap:.6rem;
  padding:.62rem .72rem; border:0;
  background: rgba(255,255,255,.10);
  color:#fff; font-weight:700; border-radius: var(--menu-radius);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10);
  transition: box-shadow .15s ease, background-color .15s ease, transform .08s ease;
}
.sidebar-toggle i.bi-chevron-down{ transition: transform .18s ease; color: rgba(255,255,255,.75); }
.sidebar-toggle.collapsed i.bi-chevron-down{ transform: rotate(0deg); }
.sidebar-toggle:not(.collapsed) i.bi-chevron-down{ transform: rotate(180deg); }
.sidebar-toggle:hover{
  background: rgba(255,255,255,.16);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.18),
    0 0 0 6px rgba(122,211,207,.18);
  transform: translateX(1px);
}
.sidebar-toggle.sub{ font-weight:700; font-size:.92rem; margin:.25rem 0 .15rem; }

/* Links do menu */
.sidebar-link{
  --left-indicator: transparent;
  display:flex; align-items:center; gap:.55rem;
  padding:.52rem .62rem .52rem .58rem;
  margin:.12rem 0;
  color: rgba(255,255,255,.92); text-decoration:none;
  border-radius: var(--menu-radius);
  position: relative;
  border: 1px solid rgba(255,255,255,.10);
  transition: background-color .15s ease, box-shadow .15s ease, color .15s ease, transform .06s ease;
}
.sidebar-link::before{
  content:''; position:absolute; left:-.5px; top:6px; bottom:6px; width:3px;
  background: var(--left-indicator); border-radius: 2px;
  transition: background-color .15s ease, height .15s ease;
}
.sidebar-link:hover{
  background: rgba(255,255,255,.14);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
  color: #fff; transform: translateX(2px);
}
.sidebar-link.active{
  color:#fff;
  background: rgba(255,255,255,.22);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), var(--shadow-1);
}
.sidebar-link.active::before{ --left-indicator: var(--brand-2); }
.sidebar-link i{ color:#fff; opacity:.92; }

/* Botão sair */
.btn-logout{
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color:#fff; font-weight:700;
  border-radius: var(--menu-radius);
  transition: .15s ease;
}
.btn-logout:hover{
  background: rgba(255,255,255,.20);
  border-color: rgba(255,255,255,.38);
}


/* =======================================================================
   [E] ÁREA DE CONTEÚDO
   - Fundo com “faixas” suaves no topo, como a referência
   ======================================================================= */
.app-content{
  margin-top: var(--topbar-h);
  margin-left: var(--sidebar-w);
  min-height: calc(100vh - var(--topbar-h));
  background:
    radial-gradient(1100px 160px at 100% -120px, color-mix(in oklab, var(--brand) 8%, transparent) 0%, transparent 70%),
    radial-gradient(1000px 140px at 0% -120px, color-mix(in oklab, var(--brand) 6%, transparent) 0%, transparent 70%),
    var(--bg);
  transition: margin-left .25s ease, background-color .25s ease;
}
[data-bs-theme="dark"] .app-content{
  background:
    radial-gradient(1100px 160px at 100% -120px, rgba(124,161,255,.10) 0%, transparent 70%),
    radial-gradient(1000px 140px at 0% -120px, rgba(124,161,255,.08) 0%, transparent 70%),
    var(--bg);
}


/* =======================================================================
   [F] CARDS / TABELAS / FORMULÁRIOS
   ======================================================================= */
/* Cards — já na pegada da landing */
.card{
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  color: var(--ink-1);
}
.card .card-header{
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  color: var(--ink-2);
}
[data-bs-theme="dark"] .card{ box-shadow: 0 10px 28px rgba(0,0,0,.40); }

/* Tabelas */
.table{
  --tbl-border: color-mix(in oklab, var(--border) 80%, transparent);
  color: var(--ink-1);
  background: var(--surface-1);
  border-color: var(--tbl-border);
}
.table > :not(caption) > * > *{
  background-color: transparent;
  box-shadow: inset 0 0 0 9999px rgba(0,0,0,0);
}
.table thead th{
  background: var(--surface-2);
  color: var(--ink-2);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.table tbody tr{ border-bottom: 1px solid var(--tbl-border); }
.table-hover tbody tr:hover{ background: color-mix(in oklab, var(--brand) 7%, transparent); }
[data-bs-theme="dark"] .table thead th{
  background: #0F182C; color: #C7D3EA;
  border-bottom: 1px solid rgba(124,144,176,.22);
}
[data-bs-theme="dark"] .table tbody tr{ border-bottom: 1px solid rgba(124,144,176,.14); }

/* Formulários */
.form-control, .form-select, .form-check-input, .form-floating .form-control{
  background: var(--surface-1);
  color: var(--ink-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.form-control:focus, .form-select:focus{
  border-color: color-mix(in oklab, var(--brand) 52%, var(--border));
  box-shadow: 0 0 0 .22rem color-mix(in oklab, var(--brand) 18%, transparent);
  background: var(--surface-1);
  color: var(--ink-1);
}
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select{
  background: #101A31; color: var(--ink-1);
  border: 1px solid rgba(124,144,176,.25);
}
[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus{
  border-color: var(--brand);
  box-shadow: 0 0 0 .22rem rgba(124,161,255,.20);
}
.input-group-text{
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ink-2);
}


/* =======================================================================
   [G] BOTÕES / BADGES / ALERTAS / DROPDOWNS / MODAIS
   ======================================================================= */
.btn{ border-radius: var(--radius-md); font-weight: 600; }
.btn-primary{
  background: var(--brand);
  border-color: color-mix(in oklab, var(--brand) 85%, black);
}
.btn-primary:hover{
  background: var(--brand-3);
  border-color: color-mix(in oklab, var(--brand-3) 85%, black);
}
.btn-outline-primary{
  color: var(--brand);
  border-color: var(--brand);
  background: transparent;
}
.btn-outline-primary:hover{ color:#fff; background: var(--brand); border-color: var(--brand); }
.btn-secondary{ background: var(--surface-2); color: var(--ink-1); border-color: var(--border); }
.btn-outline-secondary{ color: var(--ink-2); border-color: var(--border); background: var(--surface-1); }
.btn-outline-secondary:hover{ background: var(--surface-2); }

/* Versão “ghost” no estilo do site */
.btn-ghost{
  background: transparent;
  border: 1px solid rgba(148,163,184,.6);
  color: var(--ink-2);
}
.btn-ghost:hover{
  background: color-mix(in oklab, var(--brand) 6%, transparent);
  border-color: color-mix(in oklab, var(--brand) 40%, rgba(148,163,184,.6));
}

.badge{ border-radius: 999px; }
.badge.bg-primary{ background: var(--brand) !important; }

.alert{
  background: color-mix(in oklab, var(--brand) 8%, var(--surface-1));
  border-color: color-mix(in oklab, var(--brand) 35%, var(--border));
  color: var(--ink-1);
  border-radius: var(--radius-md);
}

.dropdown-menu{
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-2);
  color: var(--ink-1);
}
.modal-content{
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  color: var(--ink-1);
}
.tooltip-inner{
  background: var(--ink-2); color: #fff; border-radius: var(--radius-sm);
}
.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before,
.bs-tooltip-top .tooltip-arrow::before{ border-top-color: var(--ink-2); }


/* =======================================================================
   [H] GLOBAL SEARCH (header)
   ======================================================================= */
.gsearch{ background: var(--surface-2); border: 1px solid var(--border); }
.gsearch-panel{ background: var(--surface-1); border: 1px solid var(--border); box-shadow: var(--shadow-2); }
.gsearch-item{ color: var(--ink-1); }
.gsearch-item:hover, .gsearch-item.active{ background: color-mix(in oklab, var(--brand) 10%, transparent); }


/* =======================================================================
   [I] RESPONSIVO
   ======================================================================= */
@media (max-width: 991.98px){
  .app-sidebar{ width: 85%; max-width: 320px; transform: translateX(-100%); }
  .app-sidebar.show{ transform: translateX(0); }
  .app-content{ margin-left: 0; }
}


/* =======================================================================
   [J] COMPATIBILIDADE (ícones de tema)
   ======================================================================= */
.d-theme-light{ display:inline-block; } .d-theme-dark{ display:none; }
[data-bs-theme="dark"] .d-theme-light{ display:none; } 
[data-bs-theme="dark"] .d-theme-dark{ display:inline-block; }


/* =======================================================================
   [K] PRESETS DE ARREDONDAMENTO (opcionais)
   - Descomente UM bloco se quiser alterar rápido.
   ======================================================================= */

/* ---- 1) Sistema totalmente FLAT (sem arredondados) ---- */
/*
:root{
  --radius-xl: 0; --radius-lg: 0; --radius-md: 0; --radius-sm: 0;
}
.card, .btn, .form-control, .form-select, .dropdown-menu,
.modal-content, .alert, .badge, .pagination .page-link { border-radius:0 !important; }
*/

/* ---- 2) Somente MENU FLAT (restante arredondado) ---- */
/*
:root{ --menu-radius: 0; }
*/


/* =======================================================================
   [L] NexoERP — SISTEMA DE LAYOUT GLOBAL p/ telas
   Padroniza largura, cabeçalho, ações, filtros e alturas de campos/botões
   -----------------------------------------------------------------------
   KNOBS:
   --content-max   : largura útil do conteúdo
   --field-h       : altura padrão de inputs e botões
   --gap           : espaçamento base
   ======================================================================= */

:root{
  --content-max: 1180px;   /* ajuste se quiser mais largo/estreito */
  --field-h: 42px;         /* altura padrão p/ campos e botões */
  --gap: 16px;             /* espaçamento base */
}

/* Largura e respiro padrão do conteúdo */
.app-content > .container-fluid{
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 20px clamp(12px, 2vw, 24px);
}

/* ============== Cabeçalho de página ============== */
.page-header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--gap);
  margin-bottom: clamp(12px, 2.2vw, 20px);
}
.page-title{
  margin: 0;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink-1);
  font-size: clamp(22px, 2.6vw, 34px);
}
.page-subtitle{
  margin-top: 4px;
  color: var(--ink-3);
  font-size: clamp(12px, 1.3vw, 14px);
}
.page-actions{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 260px; /* evita quebra “feia” do +Novo */
}

/* Garantia extra: qualquer .btn-new vai para a direita quando fora do .page-header */
.btn-new{ margin-left: auto; }

/* Versão fixa das ações (opcional) */
.page-actions.sticky{
  position: sticky;
  top: calc(var(--topbar-h) + 8px);
  z-index: 1020;
}

/* ============== Barra de filtros / ferramentas ============== */
.page-toolbar{
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  padding: 14px;
  margin-bottom: 16px;
}

/* Sugestão: aplique colunas assim nas crianças da toolbar  */
.col-12  { grid-column: span 12; }
.col-6   { grid-column: span 6;  }
.col-4   { grid-column: span 4;  }
.col-3   { grid-column: span 3;  }
.col-2   { grid-column: span 2;  }
.col-auto{ grid-column: auto;    }

@media (max-width: 991.98px){
  .page-toolbar{ grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .col-6{ grid-column: span 6; }
  .col-4{ grid-column: span 6; }
  .col-3{ grid-column: span 3; }
  .col-2{ grid-column: span 3; }
}

/* ============== Altura e densidade padrão ============== */
/* altura fixa amigável em inputs e botões */
.form-control, .form-select{
  height: var(--field-h);
  padding-top: 8px; padding-bottom: 8px;
}
.btn{
  min-height: var(--field-h);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  padding: 0 14px;
}

/* Tamanhos do Bootstrap coerentes com o padrão */
.btn-sm, .form-control.form-control-sm, .form-select.form-select-sm{ --field-h: 36px; }
.btn-lg, .form-control.form-control-lg, .form-select.form-select-lg{ --field-h: 48px; }

/* Inputs agrupados mantêm a mesma altura */
.input-group > .form-control,
.input-group > .form-select,
.input-group > .btn{
  height: var(--field-h);
}

/* ============== Cards “padrão de bloco” ============== */
.block{
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  padding: 16px;
  margin-bottom: 16px;
}
.block-header{
  display:flex; align-items:center; justify-content:space-between;
  gap: var(--gap); margin-bottom: 10px;
}
.block-title{
  margin:0; font-weight:700; color:var(--ink-1);
  font-size: clamp(16px, 1.6vw, 18px);
}

/* ============== Tabelas com altura de linha consistente ============== */
.table{ font-size: 0.95rem; }
.table thead th{ height: 44px; vertical-align: middle; }
.table tbody td{ height: 44px; vertical-align: middle; }

/* ============== Alinhamentos rápidos (utilitários) ============== */
.justify-end{ justify-content: flex-end !important; }
.justify-between{ justify-content: space-between !important; }
.items-center{ align-items: center !important; }
.gap-8{ gap: 8px !important; }
.gap-12{ gap: 12px !important; }
.mt-16{ margin-top: 16px !important; }
.mb-16{ margin-bottom: 16px !important; }

/* ============== Dark tweaks (mantém coerência) ============== */
[data-bs-theme="dark"] .page-title{ color: var(--ink-1); }
[data-bs-theme="dark"] .block{ box-shadow: 0 10px 28px rgba(0,0,0,.40); }

/* ===== Ajustes visuais do filtro ===== */
.w-lg-auto { width: 100%; }
@media (min-width: 992px){ .w-lg-auto { width: auto; } }

/* Evita quebra estranha nos cabeçalhos e botões */
.table thead th.text-nowrap { white-space: nowrap; }
.btn-group .btn { white-space: nowrap; }


/* =======================================================================
   [M] PDV MERCADINHO — HARDENING DE LAYOUT
   - Evita “atropelar” com zoom (largura mínima + scroll)
   - Garante ordem: Itens primeiro, Pagamentos depois, também no mobile
   - Tabela mais elástica e estável em zoom
   ======================================================================= */

/* 1) Proteção contra zoom: se o viewport ficar muito estreito, aparece barra
      de rolagem horizontal no PDV em vez de sobrepor elementos */
.pdv-mercado { min-width: 1020px; }
@media (max-width: 1200px){
  .pdv-mercado { min-width: 100%; } /* telas realmente estreitas continuam fluídas */
}

/* 2) Ordem dos painéis (sempre Itens → Pagamento) */
.pdv-mercado .items-panel{ order: 1 !important; min-width: 620px; }
.pdv-mercado .pay-panel  { order: 2 !important; min-width: 360px; }
@media (max-width: 1200px){
  .pdv-mercado .items-panel,
  .pdv-mercado .pay-panel{ min-width: auto; }
}

/* 3) Tabela: rolagem horizontal quando precisar (zoom/estreito) */
.pdv-mercado .table-responsive{ overflow-x: auto; }

/* 4) Colunas “durinhas” e estáveis, mas descrição pode quebrar */
.pdv-mercado .table-compact th{ white-space: nowrap; }
.pdv-mercado .col-ord   { width: 6ch; }
.pdv-mercado .col-qtd   { width: 10ch; }
.pdv-mercado .col-preco { width: 12ch; }
.pdv-mercado .col-total { width: 12ch; }
.pdv-mercado .col-acoes { width: 7ch; }

/* A célula de produto é a única que pode quebrar em várias linhas */
.pdv-mercado .prod-cell{
  white-space: normal;
  word-break: break-word;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;    /* reduz para 2 no seu CSS local se quiser */
  -webkit-box-orient: vertical;
}

/* 5) Labels, botões e inputs não “quebram” torto sob zoom */
.pdv-mercado .card .form-label{ white-space: nowrap; }
.pdv-mercado .card .form-control{ min-width: 0; }   /* evita bug de flex estourar */
.pdv-mercado .pay-panel .btn{ white-space: nowrap; }


/* =======================================================================
   [N] EXTRAS NO ESTILO DO SITE — HERO + CARDS ESPECIAIS
   - Use aos poucos nas telas que quiser modernizar mais
   ======================================================================= */

/* Títulos/seções no padrão da landing */
.section-title{
  font-size: clamp(24px, 2.7vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-1);
  margin-bottom: 4px;
}
.section-subtitle{
  color: var(--ink-3);
  max-width: 520px;
  font-size: 0.95rem;
}

/* Hero de página (header mais “produto”) */
.app-hero{
  border-radius: var(--radius-xl);
  background:
    radial-gradient(1200px 460px at 0% -40%, color-mix(in oklab, var(--brand) 14%, transparent) 0%, transparent 70%),
    radial-gradient(900px 360px at 100% -60%, color-mix(in oklab, var(--brand-2) 18%, transparent) 0%, transparent 70%),
    linear-gradient(145deg, #ffffff, #f5f7ff);
  border: 1px solid color-mix(in oklab, var(--border) 65%, transparent);
  box-shadow: var(--shadow-2);
  padding: clamp(18px, 3vw, 26px);
}
[data-bs-theme="dark"] .app-hero{
  background:
    radial-gradient(1200px 460px at 0% -40%, rgba(124,161,255,.22) 0%, transparent 70%),
    radial-gradient(900px 360px at 100% -60%, rgba(93,211,255,.18) 0%, transparent 70%),
    linear-gradient(145deg, #020617, #020617);
  border-color: rgba(15,23,42,.85);
}

.app-hero-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--brand) 12%, #e5edff);
  color:#0f172a;
  font-size:.78rem;
  text-transform: uppercase;
  letter-spacing:.12em;
}
.app-hero-title{
  margin:10px 0 4px;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing:-0.02em;
}
.app-hero-subtitle{
  margin:0;
  color: var(--ink-2);
  max-width: 520px;
}

/* Cards “premium” inspirados na landing */
.app-card{
  border-radius: var(--radius-xl);
  border: 1px solid color-mix(in oklab, var(--border) 80%, transparent);
  background: var(--surface-1);
  box-shadow: var(--shadow-1);
  padding: 18px;
}
.app-card-soft{
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148,163,184,.32);
  background: radial-gradient(circle at 0% 0%, rgba(79,70,229,.06), transparent 55%), var(--surface-1);
  box-shadow: 0 18px 40px rgba(15,23,42,.08);
  padding: 18px;
}
.app-card-accent{
  border-radius: var(--radius-xl);
  border: 1px solid rgba(59,130,246,.5);
  background: radial-gradient(circle at 0% 0%, rgba(59,130,246,.26), transparent 60%), #0b1120;
  color:#e5e7eb;
  box-shadow: 0 20px 50px rgba(15,23,42,.85);
  padding: 18px;
}
.app-card-accent .badge{
  background: rgba(15,23,42,.85);
  color:#e5e7eb;
}

/* Pequenos badges de seção iguais ao site */
.chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  border: 1px solid rgba(148,163,184,.4);
  background: color-mix(in oklab, var(--surface-1) 85%, rgba(148,163,184,.08));
  font-size:.78rem;
  color: var(--ink-2);
}
