  .dev-saida-overlay { position: fixed; inset: 0; z-index: 10050; background: rgba(0,0,0,.48); display: flex; align-items: center; justify-content: center; padding: 16px; }
  .dev-saida-overlay .modal { max-width: 520px; width: 100%; max-height: 90vh; overflow: auto; }
  .dev-saida-overlay .modal-actions { flex-wrap: wrap; }
  :root {
    --ink: #16191D; --ink-2: #1E2227; --ink-3: #2A2F36;
    --paper: #F5F5F3; --surface: #FFFFFF;
    --line: #E1E1DC; --line-soft: #ECEBE7;
    --text: #1D2024; --text-dim: #6B7078; --text-faint: #9CA0A8;
    --accent: #2FAE59; --accent-2: #248C46; --accent-tint: #E4F7EA;
    --money-in: #2F7D4F; --money-in-tint: #E3F1E7;
    --money-out: #A85D22; --money-out-tint: #F5E9DC;
    --gold: #B8862E; --gold-tint: #F2E7D2;
    --danger: #A6392E; --danger-tint: #F6E1DD;
    --radius: 4px;
  }
  * { box-sizing: border-box; }
  html, body { height: 100%; margin: 0; }
  body { font-family: 'IBM Plex Sans', sans-serif; background: var(--paper); color: var(--text); padding-top: env(safe-area-inset-top,0px); padding-bottom: env(safe-area-inset-bottom,0px); -webkit-font-smoothing: antialiased; }
  h1,h2,h3,.brand { font-family: 'Fraunces', serif; letter-spacing: -0.01em; }
  .mono { font-family: 'IBM Plex Mono', monospace; }
  a { color: inherit; } button { font-family: inherit; cursor: pointer; }
  svg.icon { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.6; flex-shrink: 0; }

  #login-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 20% 20%, rgba(44,99,172,0.16), transparent 45%), var(--ink); color: #EDEDEA; padding: 24px; }
  .login-card { width: 100%; max-width: 380px; background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: 6px; padding: 40px 36px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
  .login-mark { width: 38px; height: 38px; border: 1.4px solid #3A414C; border-radius: 4px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; font-family: 'Fraunces', serif; font-size: 17px; color: var(--accent-2); }
  .login-card .brand { font-size: 25px; margin: 0 0 3px; color: #F4F3EE; font-weight: 600; }
  .login-card .tag { font-size: 13px; color: #838B96; margin: 0 0 30px; }
  .field { margin-bottom: 16px; } .field label { display: block; font-size: 12px; color: #8B92A0; margin-bottom: 6px; }
  .field input { width: 100%; padding: 11px 13px; background: #0F1216; border: 1px solid #333A44; border-radius: var(--radius); color: #EDEDEA; font-size: 14px; }
  .field input:focus { outline: none; border-color: var(--accent-2); }
  .btn-primary { width: 100%; padding: 12px; background: var(--accent); color: #fff; border: none; border-radius: var(--radius); font-size: 14px; font-weight: 500; margin-top: 8px; }
  .btn-primary:hover { background: var(--accent-2); }
  .login-error { color: #DE9280; font-size: 12.5px; margin-top: 14px; min-height: 16px; line-height: 1.5; }

  #app-screen { display: none; min-height: 100vh; } #app-screen.active { display: flex; }
  #app-screen.pdv-collapsed #sidebar { display: none; }
  .pdv-sidebar-toggle { background: none; border: none; color: #EDEDEA; padding: 4px; margin-right: 4px; }
  .pdv-sidebar-toggle:hover { color: var(--accent-2); }
  #sidebar { width: 232px; flex-shrink: 0; background: var(--ink); color: #B7BBC2; display: flex; flex-direction: column; padding: 24px 16px; padding-top: calc(24px + env(safe-area-inset-top,0px)); }
  #sidebar .brand-row { display: flex; align-items: center; gap: 9px; padding: 0 6px 26px; }
  #sidebar .brand-row .mark { width: 26px; height: 26px; border: 1.2px solid #3A414C; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-family: 'Fraunces', serif; font-size: 13px; color: var(--accent-2); flex-shrink: 0; }
  #sidebar .brand-row .brand { color: #F4F3EE; font-size: 17px; font-weight: 600; }
  #sidebar nav { display: flex; flex-direction: column; gap: 1px; flex: 1; overflow-y: auto; }
  #sidebar .nav-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: #545A63; padding: 14px 10px 6px; }
  #sidebar nav button { display: flex; align-items: center; gap: 10px; text-align: left; background: none; border: none; color: #9BA0A9; padding: 8px 10px; border-radius: var(--radius); font-size: 13px; }
  #sidebar nav button:hover { background: var(--ink-2); color: #EDEDEA; }
  #sidebar nav button.active { background: var(--accent); color: #fff; }
  #sidebar nav button.disabled { opacity: .42; cursor: default; } #sidebar nav button.disabled:hover { background: none; color: #9BA0A9; }
  #sidebar nav button .badge { margin-left: auto; font-size: 9.5px; background: var(--ink-3); color: #9BA0A9; padding: 1px 6px; border-radius: 8px; }
  #sidebar .cash-chip { display: flex; align-items: center; gap: 7px; font-size: 11px; padding: 7px 10px; margin: 6px 0 0; border-radius: var(--radius); background: var(--ink-2); }
  #sidebar .cash-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-faint); }
  #sidebar .cash-chip.open .dot { background: #59B37D; } #sidebar .cash-chip.open { color: #9FE0B8; }
  /* Base do círculo de iniciais reaproveitado em vários lugares (sidebar, PDV,
     cartão de contato selecionado, cartões de conta bancária) — cada contexto só
     precisa sobrescrever width/height/font-size, o resto já vem daqui. */
  .avatar { border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0; }
  #sidebar .user-chip { display: flex; align-items: center; gap: 9px; border-top: 1px solid var(--ink-3); padding: 14px 8px 0; margin-top: 10px; }
  #sidebar .user-chip .avatar { width: 28px; height: 28px; font-size: 12px; }
  #sidebar .user-chip .who { font-size: 12px; line-height: 1.3; overflow: hidden; }
  #sidebar .user-chip .who .name { color: #E4E3DD; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #sidebar .user-chip .who .role { color: #6E7580; font-size: 11px; text-transform: capitalize; }
  #logout-btn { margin-top: 10px; width: 100%; background: none; border: 1px solid var(--ink-3); color: #9BA0A9; padding: 7px; border-radius: var(--radius); font-size: 12px; }
  #logout-btn:hover { border-color: #4A5158; color: #EDEDEA; }

  #main { flex: 1; padding: 30px 40px 60px; overflow-x: auto; }
  .page-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
  .page-head h1 { font-size: 24px; margin: 0; font-weight: 600; } .page-head p { color: var(--text-dim); font-size: 13px; margin: 5px 0 0; }
  .head-actions { display: flex; gap: 10px; align-items: center; }

  .btn { padding: 9px 16px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 500; color: var(--text); transition: all .15s ease; }
  .btn:hover { border-color: var(--accent); color: var(--accent); }
  .btn:active { transform: translateY(1px); }
  .btn-solid { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 3px 10px -4px rgba(47,174,89,.5); }
  .btn-solid:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; box-shadow: 0 5px 14px -4px rgba(47,174,89,.6); transform: translateY(-1px); }
  .btn-solid:active { transform: translateY(0); }
  /* Botão de destaque (CTA) — pro comando principal de uma tela: maior, mais chamativo, mesma
     cor/padrão em qualquer contexto (ex: "+ Nova conta a pagar" e "+ Nova conta a receber" usam
     o mesmo btn-lg, de propósito, em vez da distinção money-in/money-out — pedido explícito do
     usuário pra essas duas ações específicas terem "mesmo padrão e mesma cor"). */
  .btn-lg { padding: 12px 22px; font-size: 14px; font-weight: 600; border-radius: 7px; letter-spacing: .01em; }
  .btn-money-in { background: var(--money-in-tint); color: var(--money-in); border-color: var(--money-in-tint); } .btn-money-in:hover { background: var(--money-in); color: #fff; }
  .btn-money-out { background: var(--money-out-tint); color: var(--money-out); border-color: var(--money-out-tint); } .btn-money-out:hover { background: var(--money-out); color: #fff; }
  .btn-danger-outline { border-color: var(--danger-tint); color: var(--danger); } .btn-danger-outline:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
  /* Abas em formato de pílula — padrão único pra toda barra de abas do sistema (Financeiro,
     Configurações, sub-abas de Contas, extrato de Bancos, editor de Etiquetas/Produtos…): mesmo
     visual, mesmo hover, mesmo destaque de "ativa" em qualquer tela. */
  .fin-tab, .cfg-tab, .contas-subtab, .ledger-mov-tab, #ledger-filtros-btn, #contas-filtros-btn {
    border-radius: 20px; padding: 9px 18px;
  }
  .fin-tab:hover, .cfg-tab:hover, .contas-subtab:hover, .ledger-mov-tab:hover, #ledger-filtros-btn:hover, #contas-filtros-btn:hover {
    background: var(--accent-tint); border-color: var(--accent-tint); color: var(--accent-2);
  }
  .fin-tab.active, .cfg-tab.active, .contas-subtab.active, .ledger-mov-tab.active, #ledger-filtros-btn.active, #contas-filtros-btn.active {
    background: var(--ink); color: #fff; border-color: var(--ink);
    box-shadow: 0 4px 12px -5px rgba(22,25,29,.5);
  }
  .fin-tab.active:hover, .cfg-tab.active:hover, .contas-subtab.active:hover, .ledger-mov-tab.active:hover, #ledger-filtros-btn.active:hover, #contas-filtros-btn.active:hover {
    background: var(--ink-2); border-color: var(--ink-2); color: #fff;
  }
  .prod-editor-head { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 20px 24px; margin-bottom: 18px; }
  .prod-editor-head h2 { margin: 0 0 4px; font-size: 19px; }
  .prod-editor-head .sub { font-size: 12px; color: var(--text-faint); margin-bottom: 16px; }
  .img-url-row { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; background: var(--surface); }
  .img-url-row .handle { color: var(--text-faint); cursor: grab; }
  .img-url-row img.preview { width: 44px; height: 44px; object-fit: cover; border-radius: 3px; border: 1px solid var(--line); background: var(--paper); }
  .img-url-row input { flex: 1; }
  .url-badge { font-size: 10.5px; padding: 2px 7px; border-radius: 8px; white-space: nowrap; }
  .url-badge.ok { background: var(--money-in-tint); color: var(--money-in); }
  .url-badge.bad { background: var(--danger-tint); color: var(--danger); }
  .url-badge.checking { background: var(--line-soft); color: var(--text-faint); }
  .tag-input-box { display: flex; flex-wrap: wrap; gap: 6px; border: 1px solid var(--line); border-radius: var(--radius); padding: 7px; background: var(--paper); min-height: 40px; align-items: center; }
  .tag-chip { background: var(--accent-tint); color: var(--accent); font-size: 12px; padding: 3px 8px; border-radius: 12px; display: flex; align-items: center; gap: 5px; }
  .tag-chip button { background: none; border: none; color: var(--accent); font-size: 12px; padding: 0; }
  .tag-input-box input { border: none; background: none; flex: 1; min-width: 80px; padding: 4px; }
  .tag-input-box input:focus { outline: none; }
  .dash-grid { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; }
  .dash-greet { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 20px; margin-bottom: 16px; }
  .dash-greet .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; margin-bottom: 10px; }
  .dash-greet .name { font-family: 'Fraunces', serif; font-size: 17px; } .dash-greet .email { font-size: 12px; color: var(--text-dim); }
  .dash-shortcuts { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 8px; }
  .dash-shortcuts .stitle { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); padding: 10px 12px 6px; }
  .dash-shortcuts button { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; padding: 9px 12px; background: none; border: none; font-size: 13px; color: var(--text); border-radius: var(--radius); }
  .dash-shortcuts button:hover { background: var(--accent-tint); color: var(--accent); }
  .dash-summary { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 14px; margin-bottom: 22px; }
  .dash-card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; }
  .dash-card .dc-title { font-size: 12.5px; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
  .dash-card .dc-row { display: flex; justify-content: space-between; font-size: 12.5px; padding: 5px 0; color: var(--text-dim); }
  .dash-card .dc-row b { color: var(--text); font-family: 'IBM Plex Mono', monospace; font-weight: 500; }
  .dash-card .dc-row.total { border-top: 1px solid var(--line-soft); margin-top: 4px; padding-top: 8px; font-weight: 600; color: var(--text); }
  .dash-card-alert { border-color: var(--danger-tint); background: color-mix(in srgb, var(--danger) 6%, var(--surface)); }
  .dash-card-alert .dc-row b { color: var(--danger); }
  .dash-card-alert .dc-row.total { color: var(--danger); }
  .chart-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
  .period-btns { display: flex; gap: 4px; }
  .period-btns button { padding: 5px 11px; font-size: 12px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); color: var(--text-dim); }
  .period-btns button.active { border-color: var(--accent); color: var(--accent); background: var(--accent-tint); }
  .chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; }
  .chart-card .cc-title { font-size: 12.5px; color: var(--text-dim); margin-bottom: 2px; }
  .chart-card .cc-value { font-family: 'Fraunces', serif; font-size: 24px; font-weight: 600; margin-bottom: 10px; }
  .chart-card canvas { max-height: 190px; }

  .grid-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 14px; margin-bottom: 30px; }
  .stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; position: relative; }
  .stat-card::before { content:''; position:absolute; top:0; left:0; width:3px; height:100%; background: var(--accent); }
  .stat-card.money-in::before { background: var(--money-in); } .stat-card.money-out::before { background: var(--money-out); }
  .stat-card .num { font-family: 'Fraunces', serif; font-size: 29px; font-weight: 600; line-height: 1.1; }
  .stat-card .label { color: var(--text-dim); font-size: 12px; margin-top: 4px; }

  .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; box-shadow: 0 1px 3px rgba(22,25,29,.04); }
  table { width: 100%; border-collapse: collapse; }
  thead th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-faint); font-weight: 500; padding: 11px 16px; border-bottom: 1px solid var(--line); background: #FBFBFA; }
  tbody td { padding: 12px 16px; font-size: 13.5px; border-bottom: 1px solid var(--line-soft); } tbody tr:last-child td { border-bottom: none; }
  tbody tr:hover { background: var(--accent-tint); }
  .num-cell { font-family: 'IBM Plex Mono', monospace; font-size: 13px; } .cell-main { font-weight: 500; } .cell-sub { color: var(--text-dim); font-size: 12px; }
  .pill { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 11px; font-weight: 500; }
  .pill-ok { background: var(--money-in-tint); color: var(--money-in); } .pill-warn { background: var(--gold-tint); color: var(--gold); } .pill-danger { background: var(--danger-tint); color: var(--danger); }
  .pill-in { background: var(--money-in-tint); color: var(--money-in); } .pill-out { background: var(--money-out-tint); color: var(--money-out); }

  /* DRE (Demonstrativo de Resultado) — tabela com uma coluna por mês, que
     rola horizontalmente (com uma barra de rolagem embaixo da tabela).
     Primeira coluna (nome da categoria) fixa, pra não perder a referência ao rolar. */
  .dre-table { min-width: 900px; }
  .dre-table th:first-child, .dre-table td:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 220px; box-shadow: 1px 0 0 var(--line); }
  .dre-table thead th:first-child { background: #FBFBFA; }
  .dre-table tr.dre-row-total td { font-weight: 700; background: var(--accent-tint); }
  .dre-table tr.dre-row-total td:first-child { background: var(--accent-tint); }
  .dre-table tr.dre-row-sub td { background: var(--paper); }
  .dre-table tr.dre-row-sub td:first-child { background: var(--paper); }
  .dre-expand-btn { font-size: 13px; width: 18px; display: inline-flex; align-items: center; justify-content: center; }
  .pill-parcial { background: var(--accent-tint); color: var(--accent-2); }
  .pill-neutral { background: var(--line-soft); color: var(--text-dim); }

  .toolbar { display: flex; gap: 10px; margin-bottom: 16px; align-items: center; }
  .search-box { position: relative; flex: 1; max-width: 320px; }
  .search-box svg.icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-faint); }
  .search-box input { width: 100%; padding: 9px 12px 9px 34px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 13.5px; background: var(--surface); color: var(--text); }
  .search-box input:focus { outline: none; border-color: var(--accent); }

  .modal-backdrop { position: fixed; inset: 0; background: rgba(20,25,29,.6); display: none; align-items: flex-start; justify-content: center; padding: 46px 16px; z-index: 50; overflow-y: auto; }
  .modal-backdrop.active { display: flex; }
  .modal { background: var(--surface); border-radius: 6px; width: 100%; max-width: 640px; box-shadow: 0 30px 60px -25px rgba(0,0,0,.4); }
  .modal.narrow { max-width: 440px; }
  .modal.wide { max-width: 960px; }
  .modal.fullscreen { max-width: 98vw; width: 98vw; }
  .modal.fullscreen .modal-body { max-height: calc(96vh - 172px); }
  .modal-backdrop:has(.modal.fullscreen) { padding: 18px 14px; }
  .modal-header { padding: 22px 28px; border-bottom: 1px solid var(--line); } .modal-header h3 { margin: 0; font-size: 19px; font-weight: 600; }
  .modal-header p { margin: 4px 0 0; font-size: 12.5px; color: var(--text-dim); }
  .modal-body { padding: 22px 28px; max-height: 64vh; overflow-y: auto; }
  .form-section { margin-bottom: 22px; } .form-section:last-child { margin-bottom: 0; }
  .section-title { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); font-weight: 600; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
  .form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; } .form-row.cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr; } .form-row.full { grid-template-columns: 1fr; }
  .field-wrap label { font-size: 12px; color: var(--text-dim); display: block; margin-bottom: 5px; }
  .field-wrap .hint { font-size: 11px; color: var(--text-faint); margin-top: 3px; }
  .form-row input, .form-row select, .form-row textarea { width: 100%; padding: 8px 11px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 13.5px; background: var(--paper); color: var(--text); }
  .form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); }

  /* Painéis de filtro (Contas a pagar/receber, extrato de Bancos) — antes eram um .panel com
     .field-wrap solto fora de qualquer .form-row, então selects/inputs não herdavam NENHUM
     estilo (ficavam no combobox padrão do navegador, pequenos/genéricos) e o painel era
     estreito demais, cortando campos como "Até". Agora tem largura própria, título de
     destaque e os mesmos inputs/selects robustos do resto do sistema. */
  .filtros-painel { padding: 20px; }
  .filtros-painel .filtros-title { font-size: 14px; font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
  .filtros-painel select, .filtros-painel input:not([type=checkbox]) { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 13.5px; background: var(--paper); color: var(--text); }
  .filtros-painel select:focus, .filtros-painel input:focus { outline: none; border-color: var(--accent); background: var(--surface); }
  .switch-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
  .switch-row:last-child { border-bottom: none; }
  .switch-row .lbl { font-size: 13px; } .switch-row .sub { font-size: 11.5px; color: var(--text-faint); }
  .switch { width: 36px; height: 20px; border-radius: 12px; background: var(--line); position: relative; border: none; flex-shrink: 0; }
  .switch.on { background: var(--accent); } .switch::after { content:''; width: 16px; height: 16px; background: #fff; border-radius: 50%; position: absolute; top: 2px; left: 2px; transition: left .15s; }
  .switch.on::after { left: 18px; }

  .variant-table { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 8px; }
  .variant-table th { background: #FBFBFA; font-size: 10.5px; text-transform: uppercase; color: var(--text-faint); padding: 7px 8px; text-align: left; border-bottom: 1px solid var(--line); }
  .variant-table td { padding: 5px 6px; border-bottom: 1px solid var(--line-soft); } .variant-table input { width: 100%; padding: 6px 8px; border: 1px solid var(--line); border-radius: 3px; font-size: 12.5px; }
  .link-remove { color: var(--danger); font-size: 15px; background: none; border: none; padding: 4px; }
  .photo-upload { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
  .photo-thumb { width: 64px; height: 64px; border-radius: var(--radius); border: 1px solid var(--line); object-fit: cover; }
  .photo-add-btn { width: 64px; height: 64px; border: 1.5px dashed var(--line); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--text-faint); font-size: 22px; background: var(--paper); }
  .photo-add-btn:hover { border-color: var(--accent); color: var(--accent); }
  .modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 18px 28px; border-top: 1px solid var(--line); }
  .empty-state { color: var(--text-dim); font-size: 13.5px; padding: 46px 0; text-align: center; }

  /* Certificado Digital (Preferências → Certificado Digital) */
  .cert-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; display: flex; gap: 20px; align-items: flex-start; }
  .cert-box.cert-ok { background: var(--accent-tint); border-color: var(--accent); }
  .cert-lock { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: #fff; border: 1.5px solid var(--line); color: var(--text-faint); }
  .cert-box.cert-ok .cert-lock { border-color: var(--accent); color: var(--accent); }
  .cert-lock svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.6; }
  .cert-info { flex: 1; min-width: 0; }
  .cert-valid-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
  .cert-box.cert-ok .cert-valid-title { color: var(--accent-2); }
  .cert-chain { list-style: none; margin: 0 0 16px; padding: 0; font-size: 12.5px; color: var(--text-dim); }
  .cert-chain li { margin-bottom: 3px; }
  .cert-chain b { color: var(--text); }
  .cert-dropzone { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 30px 20px; text-align: center; background: var(--paper); margin-bottom: 16px; }
  .cert-dropzone.drag-over { border-color: var(--accent); background: var(--accent-tint); }
  .cert-dropzone .cert-lock { margin: 0 auto 10px; }
  .cert-dropzone .cert-drop-title { font-size: 13.5px; font-weight: 600; margin-bottom: 3px; }
  .cert-dropzone .cert-drop-sub { font-size: 11.5px; color: var(--text-faint); margin-bottom: 12px; }
  .cert-dropzone input[type=file] { display: none; }
  .cert-file-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 5px 12px; margin-top: 4px; }
  .cert-warning { background: var(--gold-tint); border: 1px solid var(--gold); border-radius: var(--radius); padding: 12px 16px; font-size: 12px; color: var(--ink-2); margin-top: 16px; }
  .cert-warning strong { display: block; margin-bottom: 6px; color: var(--gold); }
  .cert-warning ul { margin: 0; padding-left: 18px; }
  .cert-warning li { margin-bottom: 3px; }

  /* Denominação (contagem de cédulas) */
  .denom-grid { display: grid; grid-template-columns: 1fr 90px 100px; gap: 6px 10px; align-items: center; font-size: 12.5px; }
  .denom-grid .dh { font-size: 10.5px; text-transform: uppercase; color: var(--text-faint); padding-bottom: 4px; }
  .denom-grid input { width: 100%; padding: 5px 8px; border: 1px solid var(--line); border-radius: 3px; font-size: 12.5px; text-align: right; }
  .denom-total { display: flex; justify-content: space-between; font-family: 'Fraunces', serif; font-size: 18px; font-weight: 600; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }

  /* PDV — telas "vivas": cores mais fortes, fontes em negrito e botões chamativos,
     de propósito só aqui (o resto do sistema segue o visual mais discreto/profissional). */
  .pdv-shell { display: flex; flex-direction: column; height: calc(100vh - 60px); margin: -30px -40px -60px; }
  .pdv-topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 28px; background: var(--ink); color: #EDEDEA; border-bottom: 3px solid var(--accent); }
  .pdv-topbar .store-name { font-family: 'Fraunces', serif; font-size: 17px; font-weight: 600; }
  .cash-bar { display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 700; color: #9BA0A9; background: rgba(255,255,255,.06); padding: 7px 14px; border-radius: 20px; }
  .cash-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint); }
  .cash-bar.open { color: #9FE0B8; background: rgba(47,174,89,.16); }
  .cash-bar.open .dot { background: var(--money-in); box-shadow: 0 0 0 3px rgba(47,174,89,.3); }
  .cash-bar-sub { font-weight: 500; opacity: .85; margin-left: 2px; }
  .pdv-stepbar { display: flex; background: var(--surface); border-bottom: 1px solid var(--line); padding: 0 28px; }
  .pdv-step { flex: 1; max-width: 220px; padding: 14px 10px; text-align: center; background: none; border: none; border-bottom: 3px solid transparent; color: var(--text-dim); font-size: 13.5px; font-weight: 600; }
  .pdv-step.active { color: var(--accent-2); border-bottom-color: var(--accent); background: var(--accent-tint); font-weight: 700; }
  .pdv-step .kbd { font-size: 10.5px; color: var(--text-faint); margin-left: 5px; font-family: 'IBM Plex Mono', monospace; }
  .pdv-step.active .kbd { color: var(--accent); opacity: .7; }
  .pdv-body { flex: 1; display: grid; grid-template-columns: 1fr 380px; overflow: hidden; }
  .pdv-main { padding: 26px 32px; overflow-y: auto; }
  .pdv-side { border-left: 1px solid var(--line); background: var(--surface); padding: 22px 24px; overflow-y: auto; display: flex; flex-direction: column; }
  .pdv-side h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; } .pdv-side .cart-sub { font-size: 11.5px; color: var(--text-faint); margin-bottom: 14px; }
  .pdv-bottombar { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; border-top: 1px solid var(--line); background: var(--surface); }
  .pdv-bottombar .total-big { font-family: 'Fraunces', serif; font-size: 28px; font-weight: 700; color: var(--accent-2); }
  .pdv-bottombar .total-big .lbl { font-size: 12px; color: var(--text-dim); font-family: 'IBM Plex Sans', sans-serif; font-weight: 400; display: block; text-align: right; }
  .btn-finalize { background: var(--money-in); border-color: var(--money-in); color: #fff; padding: 15px 34px; font-size: 15.5px; font-weight: 700; border-radius: 6px; letter-spacing: .01em; box-shadow: 0 6px 16px -6px rgba(47,174,89,.55); }
  .btn-finalize:hover { background: #256B42; border-color: #256B42; color: #fff; box-shadow: 0 8px 20px -6px rgba(47,174,89,.65); }
  kbd { font-family: 'IBM Plex Mono', monospace; }
  .kbd-inline { font-size: 10.5px; background: rgba(255,255,255,.22); padding: 1px 6px; border-radius: 3px; margin-left: 8px; }
  .pdv-shortcuts-bar { display: flex; gap: 18px; flex-wrap: wrap; padding: 8px 28px; background: var(--ink-2); color: #9BA0A9; font-size: 11.5px; }
  .pdv-shortcuts-bar kbd { background: var(--ink-3); color: #D8DAE0; padding: 1px 6px; border-radius: 3px; margin-right: 5px; }
  .payment-cards { display: grid; grid-template-columns: repeat(auto-fill,minmax(120px,1fr)); gap: 10px; margin-bottom: 16px; }
  .payment-card { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 18px 10px; border: 2px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 12.5px; font-weight: 700; }
  .payment-card:hover { border-color: var(--accent); box-shadow: 0 4px 12px -6px rgba(47,174,89,.4); }
  .payment-card.selected { border-color: var(--accent); background: var(--accent); color: #fff; box-shadow: 0 4px 14px -5px rgba(47,174,89,.55); }
  .payment-card .pm-icon { font-size: 28px; }
  /* Pagamento dividido em 2+ formas: cada forma já lançada vira uma linha bem marcada
     ("✓ Recebido R$ 40,00 · Cartão de Débito"), e logo abaixo um aviso grande em negrito diz
     quanto falta (ou que já está tudo pago) — pra nunca ficar confuso quem já pagou o quê. */
  .payment-line-received { display: flex; align-items: center; gap: 10px; background: var(--money-in-tint); border: 1.5px solid var(--money-in); border-radius: 8px; padding: 10px 14px; margin-top: 8px; }
  .payment-line-received .pl-check { color: var(--money-in); font-size: 16px; font-weight: 700; }
  .payment-line-received .pl-label { text-transform: uppercase; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: var(--money-in); }
  .payment-line-received .pl-amount { font-family: 'Fraunces', serif; font-size: 17px; font-weight: 700; color: var(--money-in); }
  .payment-line-received .pl-method { flex: 1; font-weight: 600; color: var(--text); }
  .payment-status { margin-top: 12px; padding: 13px 16px; border-radius: 8px; font-weight: 700; font-size: 15px; text-align: center; }
  .payment-status.pending { background: var(--gold-tint); color: var(--gold); border: 1.5px solid var(--gold); }
  .payment-status.done { background: var(--money-in-tint); color: var(--money-in); border: 1.5px solid var(--money-in); }
  .pix-box { border: 1px solid var(--line); border-radius: 6px; padding: 20px; margin: 4px 0 16px; text-align: center; background: var(--paper); }
  .pix-box #pix-qr { display: flex; justify-content: center; margin-bottom: 14px; }
  .pix-copiaecola { font-family: 'IBM Plex Mono', monospace; font-size: 11px; word-break: break-all; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 10px; margin-bottom: 10px; max-height: 80px; overflow-y: auto; }
  .pdv-search input { width: 100%; padding: 13px 16px 13px 42px; font-size: 15px; font-weight: 500; border: 1.5px solid var(--line); border-radius: 6px; background: var(--surface); }
  .pdv-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
  .pdv-search { position: relative; margin-bottom: 16px; } .pdv-search svg.icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-faint); width: 18px; height: 18px; }
  .result-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 8px; padding: 13px 16px; margin-top: 9px; cursor: pointer; transition: border-color .1s, box-shadow .1s; }
  .result-row:hover { border-color: var(--accent); background: var(--accent-tint); box-shadow: 0 4px 14px -8px rgba(47,174,89,.5); }
  #pdv-results .result-info { min-width: 0; }
  #pdv-results .result-info .cell-sub { font-size: 11.5px; color: var(--text-faint); }
  #pdv-results .result-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
  #pdv-results .result-stock { font-size: 11.5px; font-weight: 700; color: var(--money-in); background: var(--money-in-tint); padding: 2px 9px; border-radius: 20px; }
  #pdv-results .result-stock.zero { color: var(--danger); background: var(--danger-tint); }
  #pdv-results .result-price { font-family: 'Fraunces', serif; font-size: 19px; font-weight: 700; color: var(--accent-2); }
  .staged-panel { display: grid; grid-template-columns: 160px 1fr; gap: 24px; margin-top: 22px; }
  .staged-image { width: 160px; height: 160px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); display: flex; align-items: center; justify-content: center; color: var(--text-faint); }
  .staged-image svg { width: 48px; height: 48px; }
  .staged-price { font-family: 'Fraunces', serif; font-size: 30px; font-weight: 700; color: var(--accent-2); margin: 10px 0 18px; }
  .qty-stepper { display: flex; align-items: center; gap: 6px; }
  .qty-stepper button { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 16px; font-weight: 700; }
  .qty-stepper input { width: 60px; text-align: center; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 700; }
  .discount-field { display: flex; }
  .discount-field input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
  .discount-toggle { border: 1px solid var(--line); border-left: none; border-top-right-radius: var(--radius); border-bottom-right-radius: var(--radius); padding: 0 12px; background: var(--paper); font-size: 12px; font-weight: 500; }
  .cart-item { display: flex; justify-content: space-between; font-size: 13px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
  .cart-total { display: flex; justify-content: space-between; align-items: baseline; font-family: 'Fraunces', serif; font-size: 22px; font-weight: 700; color: var(--accent-2); padding-top: 14px; margin-top: auto; }
  .customer-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 8px; cursor: pointer; }
  .customer-row:hover { border-color: var(--accent); background: var(--accent-tint); }
  .customer-row.selected { border-color: var(--accent); background: var(--accent-tint); }
  #cliente-results .customer-row .avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 11px; flex-shrink: 0; }
  .selected-entity-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--accent); background: var(--accent-tint); border-radius: var(--radius); }
  .selected-entity-card .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; flex-shrink: 0; }
  .bold-section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); }
  .bold-section-title svg { width: 20px; height: 20px; flex-shrink: 0; }
  .bold-section-title span { font-size: 13px; font-weight: 700; letter-spacing: .02em; }
  .toast { position: fixed; bottom: 26px; right: 26px; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: var(--radius); font-size: 13px; opacity: 0; transform: translateY(8px); transition: all .25s; z-index: 80; box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); }
  .toast.show { opacity: 1; transform: translateY(0); }

  #print-frame { position: fixed; width: 0; height: 0; border: none; opacity: 0; }
  .ops-backdrop { position: fixed; inset: 0; z-index: 55; display: none; }
  .ops-backdrop.active { display: block; }
  .ops-panel { position: absolute; top: 58px; right: 24px; width: 260px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 20px 45px -20px rgba(0,0,0,.35); padding: 8px; }
  .ops-panel .ops-title { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); padding: 8px 10px 4px; }
  .ops-panel button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 10px; background: none; border: none; font-size: 13.5px; color: var(--text); border-radius: var(--radius); }
  .ops-panel button:hover { background: var(--accent-tint); color: var(--accent); }

  /* Ações de linha em tabelas (Editar / Ativar-Desativar) */
  .row-actions { white-space: nowrap; }
  .btn-link { background: none; border: none; padding: 0; font-size: 12.5px; color: var(--accent); cursor: pointer; }
  .btn-link:hover { text-decoration: underline; }
  .btn-link.link-danger { color: var(--danger); margin-left: 10px; }
  .ops-panel hr { border: none; border-top: 1px solid var(--line-soft); margin: 6px 0; }

  /* Extrato bancário (Financeiro → Bancos) — linha de subtotal "Saldo em DD/MM" */
  .ledger-saldo-row td { background: #FBFBFA; border-bottom: 1px solid var(--line); }

  /* Painel lateral do extrato bancário — banner de saldo total em destaque
     (mesmo tom "accent-tint" do .selected-entity-card) e a lista "Saldos por
     conta" como cartões clicáveis em vez de linhas de texto simples. */
  .bank-summary-total { border: 1.5px solid var(--accent); background: var(--accent-tint); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; }
  .bank-summary-total-label { font-size: 12px; color: var(--text-dim); font-weight: 600; margin-bottom: 4px; }
  .bank-summary-total-value { font-size: 22px; font-weight: 700; font-family: 'IBM Plex Mono', monospace; }
  .bank-summary-subtitle { font-weight: 600; font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
  .bank-account-list { display: flex; flex-direction: column; gap: 8px; }
  .bank-account-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); cursor: pointer; text-align: left; font: inherit; color: inherit; transition: border-color .12s, background .12s; }
  .bank-account-card:hover { border-color: var(--accent); background: var(--accent-tint); }
  .bank-account-card .avatar { width: 32px; height: 32px; font-size: 12px; flex-shrink: 0; }
  .bank-account-card-name { flex: 1; font-weight: 500; font-size: 13.5px; }
  .bank-account-card-balance { font-weight: 600; }
  .bank-account-card-balance.is-negative { color: var(--money-out); }

  /* Editor visual de Etiquetas (Configurações → Etiquetas) */
  .et-palette-group { margin-bottom: 14px; }
  .et-palette-title { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); font-weight: 700; margin-bottom: 6px; }
  .et-palette-item { display: block; width: 100%; text-align: left; padding: 6px 9px; margin-bottom: 4px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 12px; color: var(--text); cursor: pointer; }
  .et-palette-item:hover { border-color: var(--accent); color: var(--accent); }
  #et-canvas { box-shadow: 0 0 0 1px var(--line), 0 8px 24px -12px rgba(0,0,0,.25); background-color: #fff; background-repeat: repeat; }
  .et-field { position: absolute; border: 1px dashed var(--accent-2); background: rgba(0,0,0,0.02); font-size: 9px; color: var(--text-dim); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 1px 2px; cursor: grab; box-sizing: border-box; line-height: 1.15; user-select: none; }
  .et-field:active { cursor: grabbing; }
  .et-field.selected { border: 1.5px solid var(--accent); background: var(--accent-tint); z-index: 2; }
  .et-resize-handle { position: absolute; right: -3px; bottom: -3px; width: 9px; height: 9px; background: var(--accent); border-radius: 50%; cursor: nwse-resize; }

  /* ================= BALANÇO — leitura por câmera (Fase 2, 23/09/2026) ================= */
  #mobile-topbar, #sidebar-backdrop { display: none; }
  .bal-head-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
  .bal-grid { display: grid; grid-template-columns: 1fr 260px; gap: 16px; align-items: start; }
  .bal-scan-panel { padding: 16px; margin-bottom: 18px; }
  .bal-stats { padding: 16px 18px; }
  .bal-stat { margin-bottom: 14px; } .bal-stat:last-child { margin-bottom: 0; }
  .bal-stat .cell-sub { margin-bottom: 4px; }
  .bal-stat-num { font-size: 22px; font-weight: 600; }
  .bal-scan-title { font-weight: 600; margin: 14px 0 10px; font-size: 13px; }
  .bal-scan-row { display: flex; align-items: flex-end; gap: 12px; }
  .bal-scan-row .bal-scan-code { flex: 1; min-width: 0; }
  .bal-scan-row .bal-scan-qty { width: 110px; flex-shrink: 0; }
  .bal-scan-row .bal-scan-btn { flex-shrink: 0; }
  .bal-cam-btn { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 6px; border: 1px dashed var(--accent); background: var(--accent-tint); color: var(--accent-2); cursor: pointer; transition: all .15s ease; }
  .bal-cam-btn:hover { background: #d6f1df; }
  .bal-cam-btn svg { flex-shrink: 0; }
  .bal-cam-btn b { display: block; font-size: 14px; font-weight: 600; }
  .bal-cam-btn small { display: block; font-size: 12px; color: var(--text-dim); margin-top: 2px; }

  /* Tela cheia da câmera (js/scanner.js) */
  body.cam-open { overflow: hidden; }
  #cam-scanner { position: fixed; inset: 0; z-index: 200; background: #0B0D10; color: #fff; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
  #cam-scanner .cam-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
  #cam-scanner .cam-title { flex: 1; text-align: center; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #cam-scanner .cam-icon-btn { width: 42px; height: 42px; border-radius: 50%; border: none; background: rgba(255,255,255,.12); color: #fff; font-size: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  #cam-scanner .cam-icon-btn.on { background: #F4C542; color: #16191D; }
  #cam-scanner .cam-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; }
  #cam-scanner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  /* quadro de mira: mesma proporção da faixa que o scanner.js recorta pra decodificar */
  #cam-scanner .cam-frame { position: absolute; left: 7%; right: 7%; top: 33%; bottom: 33%; border-radius: 10px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.45); }
  @media (orientation: landscape) { #cam-scanner .cam-frame { top: 19%; bottom: 19%; } }
  #cam-scanner .cam-frame span, #cam-scanner .cam-frame::before, #cam-scanner .cam-frame::after { content: ''; position: absolute; width: 28px; height: 28px; border: 3px solid var(--accent); }
  #cam-scanner .cam-frame::before { left: -2px; top: -2px; border-right: none; border-bottom: none; border-top-left-radius: 10px; }
  #cam-scanner .cam-frame::after { right: -2px; bottom: -2px; border-left: none; border-top: none; border-bottom-right-radius: 10px; }
  #cam-scanner .cam-frame span { right: -2px; top: -2px; border-left: none; border-bottom: none; border-top-right-radius: 10px; }
  #cam-scanner .cam-laser { position: absolute; left: 6%; right: 6%; top: 50%; height: 2px; background: rgba(47,174,89,.9); box-shadow: 0 0 10px rgba(47,174,89,.9); animation: cam-laser 1.8s ease-in-out infinite; }
  @keyframes cam-laser { 0%,100% { transform: translateY(-28px); opacity: .5; } 50% { transform: translateY(28px); opacity: 1; } }
  #cam-scanner .cam-hint { position: absolute; left: 16px; right: 16px; bottom: 14px; text-align: center; font-size: 13px; color: rgba(255,255,255,.85); text-shadow: 0 1px 3px rgba(0,0,0,.6); }
  #cam-scanner .cam-hint.err { background: var(--danger); color: #fff; padding: 10px 12px; border-radius: 6px; text-shadow: none; top: 50%; bottom: auto; transform: translateY(-50%); }
  #cam-scanner .cam-bottom { padding: 12px 14px 16px; background: #14171B; }
  #cam-scanner .cam-result { position: relative; border-radius: 8px; padding: 12px 14px; min-height: 64px; background: #1E2227; border-left: 4px solid #3A414C; padding-right: 96px; }
  #cam-scanner .cam-result.ok { background: #143321; border-left-color: var(--accent); }
  #cam-scanner .cam-result.err { background: #3A1814; border-left-color: #E05A4B; }
  #cam-scanner .cam-result.busy { opacity: .75; }
  #cam-scanner .cam-result.flash { animation: cam-flash .35s ease; }
  @keyframes cam-flash { from { transform: scale(1.03); } to { transform: scale(1); } }
  #cam-scanner .cam-result-title { font-size: 15px; font-weight: 600; line-height: 1.3; word-break: break-word; }
  #cam-scanner .cam-result-sub { font-size: 12.5px; color: rgba(255,255,255,.7); margin-top: 3px; }
  #cam-scanner .cam-undo { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; padding: 8px 12px; font-size: 13px; }
  #cam-scanner .cam-controls { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
  #cam-scanner .cam-qty { display: flex; align-items: center; background: #1E2227; border-radius: 8px; overflow: hidden; }
  #cam-scanner .cam-qty button { width: 44px; height: 44px; border: none; background: none; color: #fff; font-size: 22px; }
  #cam-scanner .cam-qty input { width: 52px; height: 44px; border: none; background: none; color: #fff; text-align: center; font-size: 17px; font-weight: 600; font-family: 'IBM Plex Mono', monospace; -moz-appearance: textfield; }
  #cam-scanner .cam-qty input::-webkit-outer-spin-button, #cam-scanner .cam-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
  #cam-scanner .cam-count { flex: 1; font-size: 12.5px; color: rgba(255,255,255,.7); min-width: 110px; }
  #cam-scanner .cam-count span { color: #fff; font-weight: 600; font-family: 'IBM Plex Mono', monospace; }
  #cam-scanner .cam-manual { background: none; border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 8px; padding: 11px 14px; font-size: 13px; }

  /* ================= MOBILE (celular/tablet em pé) ================= */
  /* Menu lateral vira gaveta (js/mobile.js), conteúdo usa a largura toda, tabelas rolam de lado. */
  @media (max-width: 900px) {
    #app-screen.active { display: block; }
    #mobile-topbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 40; background: var(--ink); color: #F4F3EE; padding: 8px 10px; padding-top: calc(8px + env(safe-area-inset-top, 0px)); }
    #mobile-menu-btn { width: 40px; height: 40px; border: none; background: none; color: #F4F3EE; display: flex; align-items: center; justify-content: center; border-radius: 6px; }
    #mobile-menu-btn:active { background: var(--ink-2); }
    #mobile-topbar .mt-brand { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; min-width: 0; }
    #mobile-topbar .mt-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    #mobile-topbar .mark { width: 24px; height: 24px; border: 1.2px solid #3A414C; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-family: 'Fraunces', serif; font-size: 12px; color: var(--accent-2); flex-shrink: 0; }
    #sidebar { position: fixed; top: 0; left: 0; bottom: 0; z-index: 60; width: 270px; max-width: 84vw; transform: translateX(-105%); transition: transform .22s ease; overflow-y: auto; box-shadow: 10px 0 30px -10px rgba(0,0,0,.5); }
    #app-screen.drawer-open #sidebar { transform: translateX(0); }
    #app-screen.pdv-collapsed #sidebar { display: flex; }
    #app-screen.drawer-open #sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(20,25,29,.55); }
    #sidebar nav button { padding: 11px 10px; font-size: 14px; }
    #main { padding: 16px 14px 60px; overflow-x: hidden; }
    .page-head { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 16px; padding-bottom: 14px; }
    .page-head h1 { font-size: 20px; }
    .page-head > div:last-child:not(:first-child) { display: flex; flex-wrap: wrap; gap: 8px; }
    .panel { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .panel table { min-width: 560px; }
    .form-row, .form-row.cols-3, .form-row.cols-4 { grid-template-columns: 1fr; }
    .form-row input, .form-row select, .form-row textarea { font-size: 16px; } /* 16px evita o zoom automático do iPhone ao tocar no campo */
    .modal-backdrop { padding: 12px 8px; }
    .modal-header, .modal-body { padding-left: 18px; padding-right: 18px; }
    .toast { left: 12px; right: 12px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); text-align: center; }

    /* Balanço no celular */
    .bal-head-actions { justify-content: stretch; }
    .bal-head-actions .btn { flex: 1 1 auto; padding: 11px 14px; }
    .bal-grid { grid-template-columns: 1fr; }
    .bal-stats { order: -1; display: flex; gap: 10px; padding: 12px 14px; }
    .bal-stats .bal-stat { flex: 1; margin: 0; }
    .bal-stats .bal-stat-num { font-size: 18px; }
    .bal-stats .cell-sub { font-size: 11px; }
    .bal-cam-btn { padding: 18px 16px; border-style: solid; background: var(--accent); color: #fff; box-shadow: 0 6px 16px -8px rgba(47,174,89,.7); }
    .bal-cam-btn:hover, .bal-cam-btn:active { background: var(--accent-2); }
    .bal-cam-btn b { font-size: 16px; }
    .bal-cam-btn small { color: rgba(255,255,255,.85); }
    .bal-scan-row { flex-wrap: wrap; }
    .bal-scan-row .bal-scan-code { flex-basis: 100%; }
    .bal-scan-row .bal-scan-qty { flex: 1; width: auto; }
    .bal-scan-row .bal-scan-btn .btn { padding: 10px 18px; }
  }

  /* ================= PROMOÇÃO (24/09/2026) ================= */
  /* "Promoção": fonte preta sobre verde fluorescente (pedido do usuário) */
  .promo-badge { display: inline-block; background: #39FF14; color: #000; font-weight: 800; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 3px; line-height: 1.35; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 0 10px rgba(57,255,20,.55); vertical-align: middle; }
  .promo-field { display: flex; align-items: center; gap: 10px; }
  .promo-field input[type=number] { flex: 1; min-width: 0; }
  .promo-check { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text); white-space: nowrap; cursor: pointer; user-select: none; }
  .promo-check input { width: 16px !important; height: 16px; accent-color: var(--accent); margin: 0; padding: 0 !important; }
  .promo-check.big { font-size: 14px; padding: 8px 0; }
  .result-price-old { font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; font-weight: 400; color: var(--text-faint); margin-right: 6px; }
  #pdv-results .result-info .promo-badge { margin-top: 5px; }

  /* ================= PDV: caixa fechado, remover item ================= */
  .pdv-body { position: relative; }
  .pdv-locked { position: absolute; inset: 0; z-index: 5; background: rgba(245,245,243,.86); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; padding: 20px; }
  .pdv-locked-card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--danger); border-radius: 8px; padding: 28px 30px; text-align: center; max-width: 380px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.35); }
  .pdv-locked-card svg { color: var(--danger); }
  .pdv-locked-card h2 { margin: 10px 0 6px; font-size: 22px; }
  .pdv-locked-card p { color: var(--text-dim); font-size: 13.5px; margin: 0 0 18px; }
  .pdv-locked-card .btn { padding: 12px 26px; font-size: 14px; }
  .cart-item { align-items: flex-start; gap: 8px; }
  .cart-item-info { flex: 1; min-width: 0; }
  .cart-item-promo { margin-top: 4px; display: flex; align-items: center; gap: 6px; }
  .cart-item-remove { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text-faint); font-size: 11px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; }
  .cart-item-remove:hover { border-color: var(--danger); color: #fff; background: var(--danger); }
  .pin-input { font-size: 22px !important; letter-spacing: .35em; text-align: center; font-family: 'IBM Plex Mono', monospace; }

  /* ================= CAIXA ================= */
  .section-h3 { font-size: 15px; margin: 26px 0 10px; }
  .caixa-conta { border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; margin-bottom: 12px; background: var(--paper); }
  .caixa-conta > div { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; }
  .caixa-conta b { font-family: 'IBM Plex Mono', monospace; font-weight: 500; }
  .caixa-conta .tot { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 8px; font-weight: 600; }
  .caixa-conta .tot b { font-weight: 700; }

  /* ================= CONFIGURAÇÕES ================= */
  .toolbar { flex-wrap: wrap; }
  .cfg-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
  .perm-user-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
  .perm-user-head .perm-pin { margin-left: auto; display: flex; align-items: center; gap: 10px; }
  .trans-add { display: flex; align-items: flex-end; gap: 12px; padding: 14px 18px; margin-bottom: 14px; flex-wrap: wrap; }
  .trans-add select { padding: 8px 11px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font-size: 13.5px; min-width: 170px; }
  .trans-arrow { font-size: 18px; color: var(--text-faint); padding: 0 4px; }
  .trans-flags { display: flex; flex-wrap: wrap; gap: 6px; }
  .trans-flag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 4px 9px; border-radius: 20px; border: 1px solid var(--line); color: var(--text-dim); cursor: pointer; user-select: none; }
  .trans-flag.on { border-color: var(--accent); background: var(--accent-tint); color: var(--accent-2); font-weight: 600; }
  .trans-flag input { accent-color: var(--accent); margin: 0; }
  .row-muted td { opacity: .5; }

  /* ================= SITUAÇÕES DOS PEDIDOS (cores no padrão Bling) ================= */
  .sit-pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
  .sit-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
  .sit-atendido { background: #DDF5C9; color: #2E6B12; } .sit-dot.sit-atendido { background: #5DBB2A; }
  .sit-aberto { background: #FFF2C2; color: #8A6400; } .sit-dot.sit-aberto { background: #F2B600; }
  .sit-andamento { background: #DCEBFF; color: #1D4F91; } .sit-dot.sit-andamento { background: #3B82F6; }
  .sit-cancelado { background: #FBE0DC; color: #A02D20; } .sit-dot.sit-cancelado { background: #E0533F; }
  .sit-digitacao { background: #ECECEC; color: #555; } .sit-dot.sit-digitacao { background: #9B9B9B; }
  .sit-verificado { background: #E6E0FA; color: #5534A8; } .sit-dot.sit-verificado { background: #7C5CE0; }
  .sit-agenciada { background: #FDE3F1; color: #95246A; } .sit-dot.sit-agenciada { background: #D94BA0; }
  .sit-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; } .sit-dot.sit-todas { background: var(--ink-3); }

  /* ================= PEDIDOS DE VENDA (lista estilo Bling) ================= */
  .ped-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr) 250px; gap: 16px; align-items: start; }
  .ped-filtros { padding: 14px; position: sticky; top: 14px; }
  .ped-filtros-title { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); font-weight: 600; margin: 14px 0 7px; }
  .ped-filtros-title:first-child { margin-top: 0; }
  .ped-input { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font-size: 13px; }
  .ped-datas { flex-direction: column; gap: 6px; margin-top: 6px; }
  .ped-sit-list { display: flex; flex-direction: column; gap: 2px; }
  .ped-sit { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: none; border: none; padding: 7px 8px; border-radius: 5px; font-size: 13px; color: var(--text); cursor: pointer; }
  .ped-sit b { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--text-dim); font-family: 'IBM Plex Mono', monospace; }
  .ped-sit:hover { background: var(--paper); }
  .ped-sit.active { background: var(--accent-tint); color: var(--accent-2); font-weight: 600; }
  .ped-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
  .ped-search { position: relative; flex: 1; min-width: 220px; }
  .ped-search svg.icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-faint); }
  .ped-search input { width: 100%; padding: 10px 12px 10px 36px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: 13.5px; }
  .ped-search input:focus { outline: none; border-color: var(--accent); }
  .ped-legend { font-size: 11.5px; color: var(--text-dim); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
  .ped-legend .flag { margin-left: 6px; }
  .ped-filtro-ativo { font-size: 12px; color: var(--text-dim); margin-bottom: 8px; }
  .ped-table th.ck, .ped-table td.ck { width: 34px; padding-right: 0; }
  .ped-table th.num, .ped-table td.num { text-align: right; }
  .ped-table tbody tr.ped-row { cursor: pointer; user-select: none; }
  .ped-table tbody tr.ped-row:hover td { background: #F7FAF7; }
  .ped-table tbody tr.ped-row.selected td { background: var(--accent-tint); }
  .ped-table input[type=checkbox] { accent-color: var(--accent); width: 15px; height: 15px; }
  .ped-flags { display: inline-flex; gap: 3px; }
  .flag { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 3px; font-size: 10px; font-weight: 800; color: #fff; font-family: 'IBM Plex Sans', sans-serif; }
  .flag-f { background: #1E7FD8; } .flag-n { background: #0F5AA8; } .flag-c { background: #5DBB2A; } .flag-e { background: #19A3C9; }
  .flag.flag-off { background: transparent; color: #0F5AA8; box-shadow: inset 0 0 0 1.5px #0F5AA8; }
  .ped-kebab { background: none; border: none; font-size: 18px; line-height: 1; color: var(--text-dim); padding: 2px 8px; border-radius: 4px; cursor: pointer; }
  .ped-kebab:hover { background: var(--paper); color: var(--text); }
  .ped-menu { position: fixed; z-index: 90; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.3); padding: 5px; min-width: 180px; }
  .ped-menu button { display: block; width: 100%; text-align: left; background: none; border: none; padding: 9px 12px; font-size: 13px; border-radius: 4px; cursor: pointer; }
  .ped-menu button:hover { background: var(--accent-tint); color: var(--accent-2); }
  .ped-acoes { position: sticky; top: 14px; }
  .ped-acoes-panel { padding: 12px; }
  .ped-acoes-sel { font-size: 12.5px; color: var(--text-dim); padding: 4px 6px 10px; border-bottom: 1px solid var(--line-soft); margin-bottom: 6px; }
  .ped-acao { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; background: none; border: none; padding: 9px 6px; font-size: 13px; color: var(--text); border-radius: 5px; cursor: pointer; border-bottom: 1px solid var(--line-soft); }
  .ped-acao span { width: 18px; text-align: center; color: var(--text-dim); }
  .ped-acao small { color: var(--text-faint); }
  .ped-acao:hover:not(:disabled) { background: var(--accent-tint); color: var(--accent-2); }
  .ped-acao:disabled { color: var(--text-faint); cursor: default; }
  .ped-info { padding: 14px 6px 4px; }
  .ped-info-title { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
  .ped-info-num { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 700; color: var(--accent-2); margin-bottom: 8px; }
  .ms-destinos { display: flex; flex-direction: column; gap: 6px; }
  .ms-dest { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
  .ms-dest:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
  .ms-dest input { accent-color: var(--accent); }
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* ================= FORMULÁRIO DO PEDIDO ================= */
  .ped-form-head a { color: var(--accent); text-decoration: none; }
  .ped-form-head h1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .ped-lock { background: #FFF8E1; border: 1px solid #F2D27A; border-radius: 6px; padding: 12px 16px; margin-bottom: 16px; font-size: 13px; }
  .ped-lock ul { margin: 6px 0 6px 18px; padding: 0; }
  .pf-sec { padding: 18px 22px; margin-bottom: 14px; overflow: visible; }
  .pf-sec-title { font-weight: 600; font-size: 16px; margin-bottom: 14px; }
  .pf-big { font-weight: 700 !important; font-size: 15px !important; }
  .pf-itens, .pf-parcelas { width: 100%; border-collapse: collapse; }
  .pf-itens th, .pf-parcelas th { font-size: 11px; text-transform: uppercase; color: var(--text-faint); font-weight: 500; text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
  .pf-itens td, .pf-parcelas td { padding: 6px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; font-size: 13px; }
  .pf-itens th.num, .pf-itens td.num, .pf-parcelas th.num, .pf-parcelas td.num { text-align: right; }
  .pf-itens input, .pf-parcelas input, .pf-parcelas select { width: 100%; min-width: 70px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 3px; font-size: 13px; background: var(--paper); }
  .pf-itens td.num input { text-align: right; max-width: 110px; }
  .pf-add-item { margin-top: 10px; }
  .pf-prod-search { position: relative; }
  .pf-prod-search input { width: 100%; padding: 10px 12px; border: 1.5px dashed var(--accent); border-radius: 6px; background: var(--accent-tint); font-size: 13.5px; }
  .pf-prod-search input:focus { outline: none; border-style: solid; background: var(--surface); }
  .pf-prod-res { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 16px 36px -14px rgba(0,0,0,.35); max-height: 320px; overflow-y: auto; }
  .pf-prod-res.open { display: block; }
  .pf-prod-res button { display: flex; justify-content: space-between; gap: 12px; width: 100%; text-align: left; background: none; border: none; border-bottom: 1px solid var(--line-soft); padding: 10px 12px; font-size: 13px; cursor: pointer; }
  .pf-prod-res button:hover { background: var(--accent-tint); }
  .pf-cond { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
  .pf-cond .field-wrap { flex: 1; min-width: 180px; }
  .pf-cond input, .pf-cond select { width: 100%; padding: 8px 11px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 13.5px; background: var(--paper); }
  .pf-pag-pdv > div { display: flex; justify-content: space-between; max-width: 420px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }

  /* ================= RESPONSIVO GERAL (item 8) — monitores grandes, médios, notebooks, tablets e celulares ================= */
  /* Monitores grandes: conteúdo não estica demais (linhas muito longas cansam a leitura) */
  @media (min-width: 1800px) {
    #main > *:not(.pdv-shell) { max-width: 1680px; margin-left: auto; margin-right: auto; }
    .page-head h1 { font-size: 26px; }
  }
  /* Notebooks / monitores médios */
  @media (max-width: 1400px) {
    .ped-layout { grid-template-columns: 190px minmax(0, 1fr) 220px; }
    #main { padding: 26px 28px 60px; }
    .pdv-shell { margin: -26px -28px -60px; }
  }
  @media (max-width: 1200px) {
    .ped-layout { grid-template-columns: minmax(0, 1fr) 230px; }
    .ped-filtros { grid-column: 1 / -1; position: static; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px 14px; }
    .ped-filtros .ped-filtros-title:nth-of-type(1), .ped-filtros .ped-sit-list { grid-column: 1 / -1; }
    .ped-sit-list { flex-direction: row; flex-wrap: wrap; }
    .ped-sit { width: auto; border: 1px solid var(--line); border-radius: 20px; padding: 5px 12px; }
    .ped-sit b { margin-left: 6px; }
    .ped-filtros-title { margin: 6px 0 4px; }
    .form-row.cols-4 { grid-template-columns: 1fr 1fr; }
    .pdv-body { grid-template-columns: 1fr 320px; }
    #sidebar { width: 210px; }
  }
  /* Tablets */
  @media (max-width: 1024px) and (min-width: 901px) {
    #main { padding: 22px 20px 60px; }
    .pdv-shell { margin: -22px -20px -60px; }
    .ped-layout { grid-template-columns: 1fr; }
    .ped-acoes { position: static; }
    .ped-acoes-panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 12px; }
    .ped-acoes-sel, .ped-info { grid-column: 1 / -1; }
    .pdv-shortcuts-bar { display: none; }
  }
  @media (max-width: 900px) {
    /* PDV no celular/tablet em pé: tudo empilhado, carrinho abaixo, barra de total fixa */
    .pdv-shell { margin: -16px -14px -60px; height: auto; min-height: calc(100vh - 56px); }
    .pdv-topbar { padding: 10px 14px; flex-wrap: wrap; gap: 8px; }
    .pdv-topbar .store-name { font-size: 15px; }
    .pdv-stepbar { padding: 0; }
    .pdv-step { max-width: none; padding: 12px 4px; font-size: 13px; }
    .pdv-step .kbd, .kbd-inline, .pdv-shortcuts-bar { display: none; }
    .pdv-body { display: flex; flex-direction: column; overflow: visible; }
    .pdv-main { padding: 16px 14px; }
    .pdv-side { border-left: none; border-top: 1px solid var(--line); padding: 16px 14px 90px; }
    .pdv-bottombar { position: sticky; bottom: 0; z-index: 20; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); gap: 8px; box-shadow: 0 -6px 18px -10px rgba(0,0,0,.25); }
    .pdv-bottombar .btn { padding: 10px 12px; font-size: 13px; }
    .pdv-bottombar .total-big { font-size: 20px; text-align: center; }
    .pdv-bottombar .total-big .lbl { text-align: center; }
    .staged-panel { grid-template-columns: 1fr; gap: 14px; }
    .staged-image { width: 100%; height: 180px; }
    .payment-cards { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
    .pdv-locked { position: fixed; top: 56px; z-index: 30; }
    #pdv-results .result-price { font-size: 16px; }

    /* Pedidos de venda no celular */
    .ped-layout { display: block; }
    .ped-filtros { display: block; position: static; padding: 10px; margin-bottom: 10px; }
    .ped-filtros > .ped-filtros-title, .ped-filtros > select, .ped-filtros > .ped-datas { display: none; }
    .ped-filtros.show-all > .ped-filtros-title, .ped-filtros.show-all > select { display: block; }
    .ped-sit-list { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
    .ped-sit { flex-shrink: 0; }
    .ped-legend { display: none; }
    .ped-table th:nth-child(3), .ped-table td:nth-child(3) { display: none; }
    .panel .ped-table { min-width: 0; }
    .ped-table td, .ped-table th { padding: 10px 8px; }
    .ped-cli { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
    .ped-acoes { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: none; }
    .ped-acoes.has-sel { display: block; }
    .ped-acoes-panel { border-radius: 12px 12px 0 0; display: flex; overflow-x: auto; gap: 6px; padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -10px 30px -12px rgba(0,0,0,.35); }
    .ped-acoes-panel .ped-acoes-sel { display: none; }
    .ped-acao { flex-shrink: 0; width: auto; border: 1px solid var(--line); border-radius: 20px; padding: 9px 14px; white-space: nowrap; }
    .ped-acao:disabled, .ped-info { display: none; }
    .pf-sec { padding: 14px; }
    .pf-itens { min-width: 640px; }
    .pf-parcelas { min-width: 560px; }
    .ped-form-head .head-actions { display: flex; flex-wrap: wrap; }
    .ped-form-head .head-actions .btn { flex: 1 1 auto; }

    /* Configurações e demais telas */
    .toolbar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
    .toolbar .btn { flex-shrink: 0; }
    .head-actions { flex-wrap: wrap; }
    .head-actions .btn { flex: 1 1 auto; }
    .grid-cards { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
    .stat-card { padding: 14px; } .stat-card .num { font-size: 21px; }
    .cfg-grid-2 { grid-template-columns: 1fr; }
    .trans-table .trans-arrow { display: none; }
    .perm-user-head .perm-pin { margin-left: 0; }
    .modal { max-width: 100% !important; }
    .modal.fullscreen { width: 100%; }
    .modal-body { max-height: calc(100vh - 190px); }
    .modal-actions { flex-wrap: wrap; }
    .modal-actions .btn { flex: 1 1 auto; }
    .prod-editor-head { padding: 14px; }
    .dash-shortcuts, .dash-card { min-width: 0; }
  }
  @media (max-width: 420px) {
    .grid-cards { grid-template-columns: 1fr; }
    .pdv-bottombar .btn-danger-outline { font-size: 0; padding: 10px; }
    .pdv-bottombar .btn-danger-outline::before { content: '✕'; font-size: 16px; }
  }
  .ped-filtros-toggle { display: none; margin-top: 8px; }
  @media (max-width: 900px) { .ped-filtros-toggle { display: inline-block; } .ped-filtros.show-all > .ped-datas[style*="flex"] { display: flex !important; } }
  @media (max-width: 900px) {
    .ped-table th:nth-child(7), .ped-table td:nth-child(7) { display: none; }
    .ped-table th.ck, .ped-table td.ck { width: 28px; padding-left: 10px; }
    .ped-table .sit-pill { padding: 2px 7px; font-size: 11px; }
    .ped-table td.row-actions { padding-left: 0; padding-right: 4px; }
  }
  @media (max-width: 380px) { .ped-table .sit-pill::before { display: none; } }
  /* (a regra de notebook acima redefine o padding — no celular volta ao compacto) */
  @media (max-width: 900px) {
    #main { padding: 16px 14px 60px; }
    .pdv-shell { margin: -16px -14px -60px; }
    #pdv-toggle-sidebar { display: none; }
  }
  /* texto de ajuda (.hint) fora de .field-wrap não tinha estilo e saía grande */
  p.hint, div.hint, span.hint { font-size: 12.5px; color: var(--text-dim); line-height: 1.45; }
  /* Telas antigas montam o layout com grid inline (lista + painel lateral de resumo/filtros).
     Em telas estreitas empilha tudo numa coluna — sem isso o painel lateral era cortado. */
  @media (max-width: 1200px) {
    .panel { overflow-x: auto; }
    .dash-grid { grid-template-columns: 220px minmax(0, 1fr); }
  }
  @media (max-width: 1024px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } }
  @media (max-width: 1024px) and (min-width: 901px) {
    #main [style*="grid-template-columns"][style*="px"]:not([style*="auto-fill"]):not([style*="mm)"]) { grid-template-columns: minmax(0, 1fr) 220px !important; }
    #main [style*="grid-template-columns"][style*="px 1fr"]:not([style*="auto-fill"]):not([style*="mm)"]),
    #main [style*="grid-template-columns:180px"] { grid-template-columns: minmax(0, 1fr) !important; }
  }
  @media (max-width: 900px) {
    #main [style*="grid-template-columns"]:not([style*="auto-fill"]):not([style*="mm)"]) { grid-template-columns: minmax(0, 1fr) !important; }
    #main [style*="grid-template-columns"] > * { min-width: 0; }
    .chart-grid, .dash-summary { grid-template-columns: minmax(0, 1fr); }
    .dash-grid > * { min-width: 0; }
    .page-head > button, .page-head > .btn { width: 100%; }
    .panel table { min-width: 520px; }
    .panel .ped-table { min-width: 0; }
  }
  @media (max-width: 900px) { .ped-acoes { top: auto; } body:has(.ped-acoes.has-sel) #main { padding-bottom: 90px; } }

  /* ================= PRODUTOS (lista estilo Bling — produto pai + variações) ================= */
  .prd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 16px; align-items: start; }
  .prd-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
  .prd-search { flex: 1; min-width: 0; }
  .prd-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text-dim); cursor: pointer; }
  .prd-icon-btn.active { background: var(--accent-tint); border-color: var(--accent); color: var(--accent-2); }
  .prd-view { display: flex; gap: 4px; }
  .prd-filtros { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; padding: 12px 14px; margin-bottom: 8px; }
  .prd-filtros .field-wrap { min-width: 180px; }
  .prd-filtros select { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font-size: 13px; }
  .prd-filtros-btns { display: flex; gap: 8px; }
  .prd-filtro-ativo { font-size: 12px; color: var(--text-dim); margin-bottom: 8px; }
  .prd-table th.ck, .prd-table td.ck { width: 34px; padding-right: 0; }
  .prd-table th.img, .prd-table td.img { width: 56px; }
  .prd-table th.num, .prd-table td.num { text-align: right; white-space: nowrap; }
  .prd-table td { vertical-align: middle; }
  .prd-row { cursor: pointer; }
  .prd-row:hover td { background: #F7FAF7; }
  .prd-row.selected td { background: var(--accent-tint); }
  .prd-row.inativo td { opacity: .55; }
  .prd-var td { background: #FCFCFB; border-top-color: var(--line-soft); }
  .prd-var td:first-child { box-shadow: inset 4px 0 0 var(--accent); }
  .prd-var .prd-desc { padding-left: 14px; font-size: 12.5px; }
  .prd-thumb { width: 40px; height: 40px; border-radius: 5px; border: 1px solid var(--line); object-fit: cover; display: block; }
  .prd-thumb-empty { display: flex; align-items: center; justify-content: center; color: #B9BDC4; background: var(--paper); }
  .prd-var .prd-thumb { width: 32px; height: 32px; }
  .prd-nvar { color: var(--accent-2); font-size: 12px; }
  .prd-copy { background: none; border: none; padding: 0 2px; color: var(--text-faint); cursor: pointer; vertical-align: middle; }
  .prd-copy:hover { color: var(--accent-2); }
  .prd-edit-price { background: none; border: none; padding: 0 4px 0 0; color: var(--accent-2); cursor: pointer; vertical-align: middle; }
  .prd-price.strong { color: var(--accent-2); font-weight: 600; }
  .prd-zero { color: var(--danger); }
  .prd-acoes { position: sticky; top: 14px; }
  .prd-acoes .ped-acao span { font-weight: 700; }
  /* editor */
  .prd-edit-top { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: start; }
  .prd-edit-foto { width: 150px; height: 150px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); display: flex; align-items: center; justify-content: center; color: #B9BDC4; overflow: hidden; }
  .prd-edit-foto img { width: 100%; height: 100%; object-fit: cover; }
  .prd-sit-switch { display: flex; align-items: center; gap: 8px; height: 36px; font-size: 12.5px; color: var(--text-dim); }
  .prd-var-info { background: #E8F4FB; border-radius: 6px; padding: 14px 16px; font-size: 13px; color: #1C5673; margin-bottom: 16px; line-height: 1.5; }
  .prd-attrs { border: 1px solid var(--line-soft); border-radius: 6px; padding: 14px; margin-bottom: 8px; }
  .prd-attr-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 12px; margin-bottom: 10px; }
  .prd-attr-row input:disabled { width: 100%; padding: 8px 11px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font-size: 13.5px; color: var(--text); }
  .prd-attr-row .tag-new { border: none; background: none; outline: none; flex: 1; min-width: 160px; font-size: 13px; }
  .prd-attr-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  .prd-var-h3 { font-size: 15px; margin: 18px 0 10px; }
  .prd-var-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; min-width: 820px; }
  .prd-var-table th { font-size: 11px; text-transform: uppercase; color: var(--text-faint); font-weight: 500; text-align: left; padding: 4px 8px; }
  .prd-var-table th.num, .prd-var-table td.num { text-align: right; }
  .prd-var-table td { padding: 8px; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: middle; }
  .prd-var-table td:first-child { border-left: 4px solid var(--accent); border-radius: 6px 0 0 6px; }
  .prd-var-table td:last-child { border-right: 1px solid var(--line); border-radius: 0 6px 6px 0; }
  .prd-var-table tr.inativo td { opacity: .6; } .prd-var-table tr.inativo td:first-child { border-left-color: var(--text-faint); }
  .prd-var-table tr.foco td { background: #FFFBE6; }
  .prd-var-table input { width: 100%; min-width: 90px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 3px; font-size: 13px; background: var(--paper); }
  .prd-var-table input.pv-price { text-align: right; max-width: 110px; }
  .prd-var-n { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 4px; background: var(--line-soft); color: var(--text-dim); font-size: 11.5px; }
  .prd-var-img { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #B9BDC4; overflow: hidden; }
  .prd-var-img img { width: 100%; height: 100%; object-fit: cover; }
  .pv-promo { margin-top: 4px; font-size: 11.5px; white-space: nowrap; }
  .prd-var-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
  @media (max-width: 1200px) { .prd-layout { grid-template-columns: minmax(0, 1fr) 220px; } }
  @media (max-width: 1024px) {
    .prd-layout { grid-template-columns: 1fr; }
    .prd-acoes { position: static; }
  }
  @media (max-width: 900px) {
    .prd-table { min-width: 0 !important; }
    .prd-table th:nth-child(5), .prd-table td:nth-child(5), .prd-table th.img, .prd-table td.img { display: none; }
    .prd-table td, .prd-table th { padding: 9px 6px; }
    .prd-desc { max-width: 150px; }
    .prd-acoes { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 25; display: none; }
    .prd-acoes.has-sel { display: block; }
    .prd-edit-top { grid-template-columns: 1fr; }
    .prd-edit-foto { width: 100%; height: 140px; }
    .prd-attr-row { grid-template-columns: 1fr; }
  }
  @media (max-width: 900px) {
    .prd-toolbar { flex-wrap: wrap; }
    .prd-search { flex: 1 1 calc(100% - 50px); order: 1; }
    #prod-filtros-btn { order: 0; }
    .prd-view { order: 2; }
    .prd-copy { display: none; }
    .prd-table .mono { font-size: 11.5px; word-break: break-all; }
    .prd-table .promo-badge { font-size: 9.5px; padding: 1px 5px; }
    .prd-var .prd-desc { padding-left: 8px; }
  }
  @media (max-width: 900px) {
    .prd-view { display: none; }
    .prd-table th:nth-child(8), .prd-table td:nth-child(8) { display: none; }
    .prd-table td.num, .prd-table th.num { padding-left: 4px; }
  }

  /* ---------------- VENDEDORES / USUÁRIOS E CARGOS (Configurações) ---------------- */
  .cfg-subtab { border-radius: 20px; padding: 7px 15px; font-size: 12.5px; }
  .cfg-subtab:hover { background: var(--accent-tint); border-color: var(--accent-tint); color: var(--accent-2); }
  .cfg-subtab.active { background: var(--accent-tint); border-color: var(--accent); color: var(--accent-2); font-weight: 600; }
  .perm-subtabs { margin-bottom: 14px; }
  .vend-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
  .vend-search { flex: 1 1 260px; max-width: 420px; }
  .vend-sit-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
  .vend-bulk { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; }
  .vend-bulk:empty { display: none; }
  .vend-table td.ck, .vend-table th.ck { width: 34px; }
  .vend-table input[type=checkbox] { accent-color: var(--accent); width: 15px; height: 15px; }
  .vend-row { cursor: pointer; }
  .vend-row:hover td { background: var(--paper); }
  .vend-sit { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 600; }
  .vend-sit-ativo { background: var(--money-in-tint); color: var(--money-in); }
  .vend-sit-inativo { background: var(--line-soft); color: var(--text-dim); }
  .vend-sit-sem_movimento { background: var(--gold-tint); color: var(--gold); }
  .vend-sit-excluido { background: var(--danger-tint); color: var(--danger); }
  .vend-form-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
  .vend-form-head h2 { margin: 2px 0 0; font-size: 22px; }
  .vend-form-head a { text-decoration: none; }
  .vf-radio { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 14px; font-size: 13.5px; }
  .vf-radio label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
  .vf-radio input { accent-color: var(--accent); }
  .vf-acesso-box { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 6px; padding: 14px 16px 10px; margin-bottom: 10px; }
  .vf-acesso-acoes { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 4px 0 6px; }
  .vf-tiers { max-width: 460px; margin-bottom: 8px; }
  .usr-cargo { padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 13px; }
  .usr-acoes { white-space: nowrap; }
  .cargo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
  .cargo-card { text-align: left; padding: 16px 18px; border: 1px solid var(--line); cursor: pointer; display: flex; flex-direction: column; gap: 6px; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s; }
  .cargo-card:hover { border-color: var(--accent); box-shadow: 0 6px 18px -10px rgba(47,174,89,.6); }
  .cargo-card.inativo { opacity: .55; }
  .cargo-card-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
  .cargo-card-foot { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--text-dim); }
  .ce-toolbar { margin-bottom: 8px; font-size: 13px; color: var(--text-faint); }
  .ce-mod-table td:first-child { font-weight: 500; }
  .ce-flags { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px 24px; }
  .ce-flag-title { font-weight: 600; font-size: 13px; margin-bottom: 8px; }
  .ce-flag { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; margin-bottom: 7px; cursor: pointer; }
  .ce-flag input { accent-color: var(--accent); margin-top: 2px; }
  .ce-disabled { opacity: .45; pointer-events: none; }
  @media (max-width: 700px) {
    .vend-table th:nth-child(4), .vend-table td:nth-child(4), .vend-table th:nth-child(5), .vend-table td:nth-child(5),
    .vend-table th:nth-child(8), .vend-table td:nth-child(8) { display: none; }
    .vend-search { max-width: none; }
  }

  /* ---------------- CATEGORIAS DE PRODUTOS (Configurações) ---------------- */
  .cat-table td.ck, .cat-table th.ck { width: 34px; }
  .cat-table input[type=checkbox] { accent-color: var(--accent); width: 15px; height: 15px; }
  .cat-row { cursor: pointer; }
  .cat-row:hover td { background: var(--paper); }
  .cat-row.cat-inativa td { color: var(--text-faint); }
  .cat-toggle { background: none; border: none; width: 20px; padding: 0; margin-right: 4px; color: var(--text-dim); font-size: 12px; }
  .cat-toggle-sp { display: inline-block; width: 24px; color: var(--text-faint); font-size: 12px; }
  .canal-chip { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; background: var(--gold-tint); color: var(--gold); }
  .canal-chip.canal-mercado_livre { background: #FFF6C7; color: #7A6300; }
  .cat-dica { padding: 14px 18px; margin-top: 14px; font-size: 13px; color: var(--text-dim); line-height: 1.5; }
  .cat-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
  .cat-dica-lateral { padding: 16px 18px; font-size: 13px; color: var(--text-dim); line-height: 1.5; position: sticky; top: 12px; }
  .cat-dica-lateral b { color: var(--text); display: block; margin-top: 4px; }
  .cf-campos { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 18px; margin-bottom: 8px; }
  .canal-tabs { margin-bottom: 14px; flex-wrap: wrap; }
  .canal-acoes { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
  .am-table input, .am-table select { width: 100%; min-width: 110px; }
  .am-table td { vertical-align: middle; }
  @media (max-width: 1024px) { .cat-form-grid { grid-template-columns: 1fr; } .cat-dica-lateral { position: static; } }
  @media (max-width: 700px) {
    .cat-table th:nth-child(3), .cat-table td:nth-child(3), .cat-table th:nth-child(5), .cat-table td:nth-child(5),
    .cat-table th:nth-child(6), .cat-table td:nth-child(6) { display: none; }
  }

  /* ---------------- IMPRESSÃO DE ETIQUETAS (Produtos) ---------------- */
  .ie-itens { margin-top: 14px; border: 1px solid var(--line-soft); border-radius: 6px; padding: 8px 12px; }
  .ie-itens summary { cursor: pointer; font-size: 13px; padding: 4px 0; }
  .ie-itens table { margin-top: 8px; }
  .ie-itens tr.ie-zero td { color: var(--text-faint); }
  .ie-check-wrap { display: flex; align-items: flex-end; padding-bottom: 6px; }
  .form-row .ie-check-wrap input[type=checkbox] { width: auto; padding: 0; margin: 0; flex: none; }
  .ie-check-wrap .ce-flag { align-items: center; margin: 0; white-space: nowrap; }

  /* ---------------- RECEBIMENTO DE CONTAS (forma, taxa, líquido) ---------------- */
  .rc-resumo { margin: 4px 0 12px; }
  .rc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; background: var(--paper); border: 1px solid var(--line-soft); border-radius: 6px; padding: 10px 12px; }
  .rc-grid div { display: flex; flex-direction: column; gap: 2px; }
  .rc-grid span { font-size: 11.5px; color: var(--text-dim); }
  .rc-grid b { font-size: 14px; }
  .rc-grid b.neg { color: var(--danger); }

  /* ---------------- ETIQUETAS (tela reformulada) ---------------- */
  .et-print-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
  .et-origem { padding: 16px 18px; }
  .et-origem-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
  .et-fila-box { padding: 16px 18px; position: sticky; top: 12px; }
  .et-fila-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 15px; }
  .et-fila-scroll { max-height: 46vh; overflow: auto; margin-bottom: 12px; }
  .et-fila-acoes { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
  .et-prod-card { margin-top: 14px; border: 1px solid var(--line-soft); border-radius: 6px; padding: 12px 14px; }
  .et-prod-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
  .et-regras { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
  .et-regras select { padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 13px; }
  .et-prod-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 10px; }
  .form-row .ce-flag input[type=checkbox], .field-wrap .ce-flag input[type=checkbox] { width: auto; padding: 0; margin: 2px 0 0; flex: none; }
  .field-wrap label.ce-flag { display: flex; font-size: 13px; color: var(--text); }
  @media (max-width: 1024px) { .et-print-grid { grid-template-columns: 1fr; } .et-fila-box { position: static; } }

  /* ---------------- CONFIGURAÇÕES → FISCAL ---------------- */
  .fiscal-aviso { padding: 12px 16px; margin-bottom: 14px; font-size: 13px; background: var(--gold-tint); border-color: var(--gold-tint); color: var(--text); }
  .fiscal-info { background: #E8F3FB; border-radius: 6px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }
  .fiscal-status { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
  .fiscal-progress { width: 220px; height: 8px; background: var(--line-soft); border-radius: 8px; overflow: hidden; }
  .fiscal-progress span { display: block; height: 100%; background: var(--accent); }
  .fiscal-check { display: flex; flex-direction: column; gap: 2px; }
  .fiscal-check-row { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid var(--line-soft); }
  .fiscal-check-row > div { flex: 1; }
  .fc-ico { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; background: var(--gold-tint); color: var(--gold); flex: none; }
  .fiscal-check-row.ok .fc-ico { background: var(--money-in-tint); color: var(--money-in); }
  .fiscal-lista { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.6; }
  .fiscal-secret { display: flex; gap: 8px; align-items: center; }
  .fiscal-secret input { flex: 1; }
  .fo-flags { display: flex; gap: 22px; flex-wrap: wrap; }
  .fo-table select, .fo-table input { min-width: 70px; }

/* Configurações → Backup */
.bk-status { padding: 12px 14px; border-radius: 8px; font-size: 13px; line-height: 1.5; }
.bk-status.ok { background: var(--money-in-tint); color: var(--money-in); }
.bk-status.bad { background: var(--danger-tint); color: var(--danger); }
.bk-status code, .bk-grid code { font-size: 12px; }
.bk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 16px 0 8px; font-size: 13px; }
.bk-grid ul { margin: 6px 0 0; padding-left: 18px; } .bk-grid li { margin-bottom: 3px; }
.bk-table td { white-space: nowrap; } .bk-table td.bk-dest { max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) { .bk-grid { grid-template-columns: 1fr; } }
.bk-status.warn { background: var(--gold-tint); color: var(--gold); }

/* =====================================================================================
   AJUSTE AUTOMÁTICO A QUALQUER MONITOR (24/09/2026)
   Regra de ouro: nenhuma informação fica cortada, em nenhuma largura de tela.
   1) colunas de layout podem encolher e toda tabela larga rola dentro do próprio painel;
   2) monitores médios (até 1440px): menu lateral, margens e tabelas mais compactos;
   3) monitores até 1370px (1280x1024, 1280x800, 1366x768, 1360x768): o painel de resumo
      da direita vira uma faixa em cima da tabela, e a tabela usa a largura toda.
   ===================================================================================== */
.panel { overflow-x: auto; }
#main [style*="grid-template-columns"] > *, .ped-layout > *, .prd-layout > *, .bal-grid > *,
.et-print-grid > *, .cat-form-grid > *, .dash-grid > * { min-width: 0; }
.panel > table td { overflow-wrap: break-word; }
.panel > table td.num-cell { white-space: nowrap; }

@media (max-width: 1440px) and (min-width: 901px) {
  #sidebar { width: 200px; padding-left: 12px; padding-right: 12px; }
  #main { padding: 22px 22px 50px; }
  .pdv-shell { margin: -22px -22px -50px; }
  thead th { padding: 10px 10px; font-size: 10.5px; letter-spacing: .03em; }
  tbody td { padding: 10px 10px; font-size: 13px; }
  .num-cell { font-size: 12.5px; }
  .pdv-body { grid-template-columns: minmax(0, 1fr) 330px; }
  .ped-layout { grid-template-columns: 180px minmax(0, 1fr) 210px; }
  .prd-layout { grid-template-columns: minmax(0, 1fr) 210px; }
}
@media (max-width: 1440px) and (min-width: 1371px) {
  #main [style*="grid-template-columns"][style*="1fr 2"]:not([style*="auto-fill"]):not([style*="px 1fr 2"]) { grid-template-columns: minmax(0, 1fr) 210px !important; }
  #main [style*="grid-template-columns"][style*="px 1fr 2"] { grid-template-columns: 200px minmax(0, 1fr) 210px !important; }
}

@media (max-width: 1370px) and (min-width: 901px) {
  /* listas com painel de resumo à direita (Financeiro, Estoque, Compras, Comissões, Produtos...) */
  #main [style*="grid-template-columns"][style*="1fr 2"]:not([style*="auto-fill"]):not([style*="mm)"]),
  #main [style*="grid-template-columns"][style*="1fr 3"]:not([style*="auto-fill"]):not([style*="mm)"]),
  #main [style*="grid-template-columns"][style*="1fr) 2"]:not([style*="auto-fill"]):not([style*="mm)"]),
  .prd-layout { grid-template-columns: minmax(0, 1fr) !important; }
  /* o resumo sobe e vira uma faixa horizontal compacta */
  #main [style*="grid-template-columns"][style*="1fr 2"]:not([style*="auto-fill"]):not([style*="mm)"]) > :last-child,
  #main [style*="grid-template-columns"][style*="1fr 3"]:not([style*="auto-fill"]):not([style*="mm)"]) > :last-child,
  #main [style*="grid-template-columns"][style*="1fr) 2"]:not([style*="auto-fill"]):not([style*="mm)"]) > :last-child,
  .prd-layout > :last-child { order: -1; position: static !important; }
  #main [style*="grid-template-columns"][style*="1fr 2"]:not([style*="auto-fill"]):not([style*="mm)"]) > .panel:last-child,
  #main [style*="grid-template-columns"][style*="1fr 3"]:not([style*="auto-fill"]):not([style*="mm)"]) > .panel:last-child,
  #main [style*="grid-template-columns"][style*="1fr) 2"]:not([style*="auto-fill"]):not([style*="mm)"]) > .panel:last-child,
  .prd-layout > .panel:last-child { column-width: 190px; column-gap: 28px; column-rule: 1px solid var(--line-soft); overflow: visible; }
  #main [style*="grid-template-columns"] > .panel:last-child > *, .prd-layout > .panel:last-child > * { break-inside: avoid; }
  /* Pedidos de venda: filtros viram uma faixa em cima; tabela + ações lado a lado */
  .ped-layout { grid-template-columns: minmax(0, 1fr) 210px; }
  .ped-filtros { grid-column: 1 / -1; position: static; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px 14px; }
  .ped-filtros .ped-filtros-title:nth-of-type(1), .ped-filtros .ped-sit-list { grid-column: 1 / -1; }
  .ped-sit-list { flex-direction: row; flex-wrap: wrap; }
  .ped-sit { width: auto; border: 1px solid var(--line); border-radius: 20px; padding: 5px 12px; }
  .ped-sit b { margin-left: 6px; }
  .ped-filtros-title { margin: 6px 0 4px; }
  .page-head h1 { font-size: 24px; }
}
/* filtros de Pedidos em faixa: cada título fica em cima do seu campo */
@media (max-width: 1370px) and (min-width: 901px) {
  .ped-filtros > :nth-child(3) { grid-column: 1; grid-row: 3; } #ped-periodo { grid-column: 1; grid-row: 4; } #ped-datas { grid-column: 1; grid-row: 5; }
  .ped-filtros > :nth-child(6) { grid-column: 2; grid-row: 3; } #ped-vendedor { grid-column: 2; grid-row: 4; }
  .ped-filtros > :nth-child(8) { grid-column: 3; grid-row: 3; } #ped-origem { grid-column: 3; grid-row: 4; }
}
@media (max-width: 1024px) and (min-width: 901px) { .ped-layout { grid-template-columns: minmax(0, 1fr); } }
/* PDV ocupa a tela inteira (antes sobrava uma faixa cinza embaixo) */
@media (min-width: 901px) { .pdv-shell { height: 100vh; height: 100dvh; } }

/* =====================================================================================
   PADRÃO VISUAL DO SISTEMA (24/09/2026)
   Regras que valem para TODAS as telas:
   • CAMPO PARA PREENCHER  → fundo branco + contorno cinza forte (1.5px) — sempre visível.
   • CAMPO CALCULADO       → fundo cinza liso, sem contorno (o sistema preenche, não se digita).
   • CAMPO-CHAVE (valor)   → fundo amarelo-claro + contorno dourado + número grande
                             (valor recebido, valor contado no caixa, valor de abertura...).
   • FOCO                  → contorno verde + halo verde (sabe-se onde está digitando).
   • AÇÃO PRINCIPAL        → verde cheio.   AÇÃO PERIGOSA → vermelho com sombreado.
   • BLOCOS                → cartões brancos com borda sobre o fundo cinza da tela.
   ===================================================================================== */
:root {
  --campo-borda: #A9B0B9; --campo-borda-hover: #7F8893; --campo-bg: #FFFFFF;
  --campo-calc-bg: #ECEEF1;
  --chave-bg: #FFF7DD; --chave-borda: #D9A21B; --chave-texto: #1D2024;
  --line: #D9DAD4;
  --label: #3F454D;
}
/* rótulos mais legíveis */
.field-wrap label, .form-row label:not(.promo-check), .filtros-painel label { color: var(--label); font-weight: 600; font-size: 12.5px; }

/* 1) CAMPO PARA PREENCHER — base para qualquer campo do sistema (baixa prioridade) */
:where(#app-screen, .modal-backdrop) :where(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]), select, textarea) {
  border: 1.5px solid var(--campo-borda); background-color: var(--campo-bg); border-radius: 6px; color: var(--text);
}
/* mesma coisa vencendo os estilos antigos (fundo cinza/contorno fraco) dos formulários */
.form-row :is(input:not([type=checkbox]):not([type=radio]), select, textarea),
.field-wrap :is(input:not([type=checkbox]):not([type=radio]), select, textarea),
.filtros-painel :is(input:not([type=checkbox]):not([type=radio]), select),
select.ped-input, input.ped-input, .modal-body :is(input:not([type=checkbox]):not([type=radio]), select, textarea) {
  border: 1.5px solid var(--campo-borda); background-color: var(--campo-bg); border-radius: 6px; min-height: 38px;
}
:is(.form-row, .field-wrap, .filtros-painel, .modal-body) :is(input, select, textarea):not([type=checkbox]):not([type=radio]):not(:disabled):not([readonly]):hover { border-color: var(--campo-borda-hover); }
:where(#app-screen, .modal-backdrop) :is(input, select, textarea):not([type=checkbox]):not([type=radio]):focus,
:is(.form-row, .field-wrap, .filtros-painel, .modal-body) :is(input, select, textarea):not([type=checkbox]):not([type=radio]):focus {
  outline: none; border-color: var(--accent); background-color: #fff; box-shadow: 0 0 0 3px rgba(47,174,89,.22);
}
/* 2) CAMPO CALCULADO / SÓ LEITURA */
:is(.form-row, .field-wrap, .modal-body) :is(input, select, textarea):is(:disabled, [readonly]) {
  background-color: var(--campo-calc-bg) !important; border-color: transparent !important; color: var(--text); -webkit-text-fill-color: var(--text); opacity: 1; cursor: default;
}
/* 3) CAMPO-CHAVE (valor que o operador precisa informar) */
.campo-chave, #fc-contado, #ab-valor, #mov-valor, #pmf-amount, #pmf-received, #pmf-vale-numero, #bx-principal {
  background-color: var(--chave-bg) !important; border: 2px solid var(--chave-borda) !important; color: var(--chave-texto) !important;
  font-size: 18px !important; font-weight: 700 !important; min-height: 46px; padding: 9px 12px !important; font-family: 'IBM Plex Mono', monospace;
}
.campo-chave:focus, #fc-contado:focus, #ab-valor:focus, #mov-valor:focus, #pmf-amount:focus, #pmf-received:focus, #pmf-vale-numero:focus, #bx-principal:focus {
  background-color: #fff !important; border-color: var(--accent) !important; box-shadow: 0 0 0 4px rgba(47,174,89,.25) !important;
}
.field-wrap:has(> .campo-chave, > #fc-contado, > #ab-valor, > #mov-valor, > #pmf-amount, > #pmf-received, > #bx-principal) > label { color: #8A6400; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: 12px; }
/* contagem de cédulas: quantidades bem visíveis */
.denom-qty { border: 1.5px solid var(--chave-borda) !important; background: var(--chave-bg) !important; font-weight: 700; text-align: center; min-height: 34px; border-radius: 6px; }
.denom-qty:focus { background: #fff !important; border-color: var(--accent) !important; box-shadow: 0 0 0 3px rgba(47,174,89,.22); outline: none; }
/* resultado (troco) destacado em verde */
#pmf-troco { background: var(--money-in-tint) !important; color: var(--money-in) !important; -webkit-text-fill-color: var(--money-in); border: 2px solid #9CD3AE !important; font-size: 18px !important; font-weight: 700 !important; min-height: 46px; }

/* caixas de seleção e interruptores visíveis */
:where(#app-screen, .modal-backdrop) input[type=checkbox], :where(#app-screen, .modal-backdrop) input[type=radio] { accent-color: var(--accent); width: 17px; height: 17px; }
.switch { background: #B7BDC5; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); width: 40px; height: 22px; } .switch::after { width: 18px; height: 18px; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch.on { background: var(--accent); } .switch.on::after { left: 20px; }

/* botões com contorno visível; perigosos em vermelho sombreado */
.btn { border-color: #C5CAD1; }
.btn-danger-outline { background: #FDEEEC; border: 1.5px solid #E2A198; color: var(--danger); font-weight: 600; box-shadow: 0 3px 10px -5px rgba(166,57,46,.45); }
.btn-danger-outline:hover { background: var(--danger); border-color: var(--danger); color: #fff; box-shadow: 0 5px 14px -5px rgba(166,57,46,.6); }

/* títulos de seção com marcador verde */
.section-title { color: var(--ink-3); font-size: 11.5px; font-weight: 700; border-bottom: 1.5px solid var(--line); display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ''; width: 4px; height: 14px; border-radius: 2px; background: var(--accent); }

/* modais: corpo levemente cinza para os campos brancos se destacarem */
.modal-body { background: #FAFAF8; }

/* ================= PDV ================= */
.pdv-main { background: #EEEFEB; }
.pdv-main > .form-section, .pdv-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; box-shadow: 0 2px 6px -3px rgba(22,25,29,.08); margin-bottom: 16px; }
.pdv-main > .form-section .section-title { margin-top: 0; }
.pdv-search input { border: 2px solid var(--accent) !important; box-shadow: 0 0 0 4px rgba(47,174,89,.10); font-size: 16px; }
.payment-card { border: 2px solid #C9CED4; }
/* "Total da venda" e "Restante a pagar" como placas de valor */
.form-row input.placa-valor { font-size: 19px !important; font-weight: 700; min-height: 48px; font-family: 'IBM Plex Mono', monospace; border-width: 2px !important; border-style: solid !important; }
.form-row input.placa-total { background: #F1F3F5 !important; border-color: #C5CAD1 !important; }
.form-row input.placa-falta { background: #FDEEEC !important; border-color: #E2A198 !important; color: var(--danger) !important; -webkit-text-fill-color: var(--danger) !important; }
.form-row input.placa-ok { background: var(--money-in-tint) !important; border-color: #9CD3AE !important; color: var(--money-in) !important; -webkit-text-fill-color: var(--money-in) !important; }
/* carrinho maior e mais legível */
.pdv-body { grid-template-columns: minmax(0, 1fr) 440px; }
.pdv-side { background: #fff; border-left: 2px solid var(--line); padding: 0; }
.pdv-side > h3 { margin: 0; padding: 16px 22px 2px; font-size: 19px; background: var(--ink); color: #fff; }
.pdv-side > .cart-sub { margin: 0; padding: 0 22px 12px; background: var(--ink); color: #AEB4BC; font-size: 12.5px; }
.pdv-side > #cart-items { flex: 1; overflow-y: auto; padding: 6px 22px; }
.cart-item { font-size: 14.5px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.cart-item .num-cell { font-size: 15px; font-weight: 700; white-space: nowrap; }
.cart-item .cell-sub { font-size: 12.5px; }
.cart-item-remove { width: 28px; height: 28px; font-size: 12px; border-color: #E2A198; color: var(--danger); background: #FDEEEC; }
.pdv-side > .cart-total { margin: 0; padding: 16px 22px; background: var(--accent-tint); border-top: 2px solid #9CD3AE; font-size: 28px; }
/* barra inferior: Excluir venda vermelho sombreado, Finalizar verde forte */
#excluir-venda { padding: 13px 22px; font-size: 14.5px; }
.pdv-bottombar { border-top: 2px solid var(--line); box-shadow: 0 -6px 16px -10px rgba(0,0,0,.18); }
@media (max-width: 1440px) and (min-width: 901px) { .pdv-body { grid-template-columns: minmax(0, 1fr) 390px; } }
@media (max-width: 1200px) and (min-width: 901px) { .pdv-body { grid-template-columns: minmax(0, 1fr) 350px; } }

/* ================= ETIQUETAS no padrão visual ================= */
.et-origem { padding: 0; overflow: visible; }
.et-origem > .et-origem-tabs { margin: 0; padding: 12px 16px; background: #F3F4F1; border-bottom: 1px solid var(--line); border-radius: 6px 6px 0 0; gap: 8px; }
.et-origem-tabs .btn { border-radius: 20px; padding: 8px 16px; font-weight: 600; }
.et-origem-tabs .btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }
#et-origem-body { padding: 16px 18px 18px; }
.et-fila-box { border: 2px solid var(--line); box-shadow: 0 6px 18px -10px rgba(22,25,29,.25); }
.et-fila-head { padding-bottom: 10px; border-bottom: 2px solid var(--accent); margin-bottom: 10px; }
.et-fila-head b { font-family: 'Fraunces', serif; font-size: 17px; }
.et-fila-acoes .btn-solid { padding: 11px 22px; font-size: 14px; font-weight: 700; }
.et-fila-scroll input[type=number] { border: 1.5px solid var(--chave-borda); background: var(--chave-bg); font-weight: 700; text-align: center; border-radius: 6px; padding: 5px; }

/* busca */
.et-busca-box { margin-bottom: 12px; }
.et-busca { margin-bottom: 8px; }
.et-busca input { padding-left: 44px !important; }
.et-busca-opcoes { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.et-res-vazio { padding: 16px; border: 1.5px dashed var(--line); border-radius: 8px; color: var(--text-dim); font-size: 13.5px; background: #FAFAF8; }
.et-res-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 2px 10px; font-size: 13.5px; }
.et-res-todos { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-dim); }
.et-res-todos .btn { padding: 6px 12px; font-size: 12.5px; }
.et-res-lista { display: flex; flex-direction: column; gap: 8px; max-height: 46vh; overflow-y: auto; padding: 2px; }
.et-res-item { display: grid; grid-template-columns: minmax(0, 1fr) 96px auto; gap: 14px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; transition: border-color .12s, box-shadow .12s; }
.et-res-item:hover { border-color: #9CD3AE; box-shadow: 0 4px 14px -8px rgba(47,174,89,.45); }
.et-res-item.selecionado { border-color: var(--accent); background: var(--accent-tint); box-shadow: 0 0 0 3px rgba(47,174,89,.18); }
.et-res-item.inativo { opacity: .7; }
.et-res-nome { font-weight: 700; font-size: 14.5px; margin-bottom: 2px; }
.et-res-nome mark, .et-res-item mark { background: #FFE58A; color: inherit; padding: 0 1px; border-radius: 2px; }
.et-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.et-chip { font-size: 11.5px; padding: 2px 8px; border-radius: 12px; background: #F1F3F5; border: 1px solid #DDE1E5; color: var(--text); font-family: 'IBM Plex Mono', monospace; }
.et-chip.conta { background: var(--ink); border-color: var(--ink); color: #fff; font-family: inherit; font-weight: 600; }
.et-chip.mais { background: #fff; }
.et-res-estoque { text-align: center; border-radius: 8px; padding: 6px 4px; line-height: 1.15; }
.et-res-estoque b { display: block; font-size: 18px; font-family: 'IBM Plex Mono', monospace; }
.et-res-estoque span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; }
.et-res-estoque.ok { background: var(--money-in-tint); color: var(--money-in); }
.et-res-estoque.zero { background: #F1F3F5; color: var(--text-dim); }
.et-res-acoes { display: flex; flex-direction: column; gap: 6px; align-items: stretch; min-width: 210px; }
.et-res-rapidas { display: flex; gap: 6px; }
.et-res-rapidas .btn { flex: 1; padding: 6px 8px; font-size: 12px; }
/* produto escolhido */
.et-prod-card { border: 2px solid var(--accent); border-radius: 10px; padding: 14px 16px; background: #fff; box-shadow: 0 6px 18px -12px rgba(47,174,89,.6); }
.et-prod-head b { font-size: 15.5px; }
.et-presel:empty { display: none; }
.et-presel { background: #FFF7DD; border: 1px solid #F0D48A; border-radius: 6px; padding: 8px 10px; margin: 0 0 10px; }
#eo-vars input[type=number] { border: 1.5px solid var(--chave-borda); background: var(--chave-bg); font-weight: 700; text-align: center; border-radius: 6px; padding: 5px; width: 72px; }
#eo-vars input[type=number]:focus, .et-fila-scroll input[type=number]:focus { outline: none; background: #fff; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,174,89,.22); }
.et-prod-foot .btn-solid { padding: 11px 22px; font-weight: 700; }
@media (max-width: 1370px) { .et-res-item { grid-template-columns: minmax(0, 1fr) 84px; } .et-res-acoes { grid-column: 1 / -1; flex-direction: row; min-width: 0; } .et-res-acoes > .btn { flex: 1; } .et-res-rapidas { flex: 2; } }

/* Aviso (toast): nunca bloqueia cliques — antes, mesmo invisível, ficava por cima do botão
   "Finalizar venda" (canto inferior direito) e o botão parecia inativo depois de pôr item no carrinho. */
.toast { pointer-events: none; }
/* no PDV o aviso aparece acima da barra de Finalizar, sem cobrir nada */
body:has(.pdv-shell) .toast { bottom: 132px; right: 24px; max-width: 380px; font-size: 14px; }

/* =====================================================================================
   PADRÃO VISUAL — FINANCEIRO (Contas, DRE, Fluxo de caixa, Bancos) + fundo mais forte
   ===================================================================================== */
body { background: #E6E7E3; }
#main .panel { border-color: #D2D4CE; box-shadow: 0 2px 8px -4px rgba(22,25,29,.14); }
.valor-neg { color: #C0392B !important; font-weight: 700; }
.valor-pos { color: var(--ink); }
.valor-entrada { color: #1E7A45 !important; font-weight: 600; }
.valor-saida { color: #C0392B !important; font-weight: 600; }
td.nowrap { white-space: nowrap; }
th.num, td.num { text-align: right; }

/* abas principais do Financeiro em faixa escura (módulo) */
#fin-tab-content { margin-top: 4px; }
.page-head + .toolbar:has(.fin-tab) { background: var(--ink); padding: 6px; border-radius: 12px; display: inline-flex; gap: 4px; margin-bottom: 18px; }
.fin-tab { background: transparent !important; border: none !important; color: #C9CDD3 !important; font-weight: 600; box-shadow: none !important; }
.fin-tab:hover { background: rgba(255,255,255,.08) !important; color: #fff !important; }
.fin-tab.active { background: var(--accent) !important; color: #fff !important; box-shadow: 0 4px 12px -4px rgba(47,174,89,.6) !important; }

/* barra de ferramentas e controle segmentado */
.fin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.fin-toolbar-grupo { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fin-seg { display: inline-flex; background: #fff; border: 1.5px solid #C5CAD1; border-radius: 10px; padding: 3px; gap: 2px; }
.fin-seg button { border: none; background: transparent; padding: 7px 14px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--text-dim); cursor: pointer; box-shadow: none; }
.fin-seg button:hover { background: #F1F3F5; color: var(--text); }
.fin-seg button.active { background: var(--ink); color: #fff; }
.fin-periodo-btn { font-weight: 700; border: 1.5px solid #9AA3AE; background: #fff; padding: 9px 14px; }
.fin-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; padding: 10px; min-width: 250px; overflow: visible !important; box-shadow: 0 16px 36px -14px rgba(0,0,0,.35) !important; }
.fin-pop-item { display: block; width: 100%; text-align: left; padding: 7px 8px !important; border-radius: 6px; color: var(--text) !important; font-size: 13.5px; }
.fin-pop-item:hover { background: var(--accent-tint); text-decoration: none; }
.fin-pop hr { margin: 8px 0; border: none; border-top: 1px solid var(--line); }
.fin-pop-sub { font-size: 11.5px; color: var(--text-dim); font-weight: 600; margin-bottom: 6px; }

/* faixa de contas bancárias (substitui o seletor) */
.bk-contas { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.bk-conta-card { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 12px 14px; border-radius: 12px; border: 2px solid #C9CED4; background: #fff; cursor: pointer; transition: all .12s; box-shadow: 0 2px 6px -3px rgba(22,25,29,.15); }
.bk-conta-card:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(47,174,89,.55); }
.bk-conta-card.carregando { cursor: default; color: var(--text-dim); }
.bk-conta-top { display: flex; align-items: center; gap: 8px; }
.bk-conta-top .avatar { width: 30px; height: 30px; font-size: 12px; flex-shrink: 0; }
.bk-conta-nome { font-weight: 700; font-size: 13.5px; }
.bk-conta-saldo { font-family: 'IBM Plex Mono', monospace; font-size: 19px; font-weight: 700; }
.bk-conta-sub { font-size: 11.5px; color: var(--text-dim); }
.bk-conta-card.ativa { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 10px 22px -10px rgba(22,25,29,.7); }
.bk-conta-card.ativa .bk-conta-sub { color: #AEB4BC; }
.bk-conta-card.ativa .valor-pos { color: #fff; }
.bk-conta-card.ativa .valor-neg { color: #FF8A80 !important; }
.bk-conta-card.negativa:not(.ativa) { border-color: #E2A198; background: #FFF6F5; }

/* faixa de indicadores (KPIs) */
.fin-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 14px; }
.fin-kpi { background: #fff; border: 1.5px solid #D2D4CE; border-left: 5px solid #9AA3AE; border-radius: 10px; padding: 11px 14px; display: flex; flex-direction: column; gap: 2px; }
.fin-kpi > span { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--text-dim); }
.fin-kpi > b { font-family: 'IBM Plex Mono', monospace; font-size: 19px; }
.fin-kpi > small { font-size: 11.5px; color: var(--text-dim); }
.fin-kpi.entrada { border-left-color: #2FAE59; } .fin-kpi.entrada > b { color: #1E7A45; }
.fin-kpi.saida { border-left-color: #C0392B; } .fin-kpi.saida > b { color: #C0392B; }
.fin-kpi.destaque { border-left-color: var(--ink); background: #F3F4F1; }
.fin-kpi.negativo { border-left-color: #C0392B; background: #FFF1EF; }

/* extrato / tabelas financeiras */
.fin-extrato table thead th { background: #E9EBEE; color: #4A5058; font-weight: 700; }
.fin-extrato tbody td { vertical-align: middle; }
.fin-faixa-saldo td { background: #DCDFE3 !important; font-weight: 700; font-size: 13.5px; border-top: 1px solid #C5CAD1; border-bottom: 1px solid #C5CAD1 !important; }
.fin-faixa-saldo td .valor-pos { color: var(--ink); }
.fin-faixa-saldo.inicial td, .fin-faixa-saldo.final td { background: #3A414C !important; color: #fff; font-size: 14px; }
.fin-faixa-saldo.inicial td .valor-pos, .fin-faixa-saldo.final td .valor-pos { color: #fff; }
.fin-faixa-saldo.inicial td .valor-neg, .fin-faixa-saldo.final td .valor-neg { color: #FF8A80 !important; }
.fin-faixa-saldo.negativo:not(.inicial):not(.final) td { background: #F8D9D5 !important; }
.fin-saldo-cel { font-weight: 700; background: #F4F5F6; }
tr.lanc-futuro td { background: #FFFBEA; }
.fin-conta-tag { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: #EEF0F2; border: 1px solid #D5D9DE; white-space: nowrap; }
.fin-aviso { background: #FFF7DD; color: #7A5A00; font-size: 12.5px; }
/* contas a pagar/receber */
tr.conta-atrasado td:first-child { box-shadow: inset 4px 0 0 #C0392B; }
tr.conta-atrasado td { background: #FFF6F5; }
tr.conta-pago td { color: var(--text-dim); }
.fin-resumo-destaque { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 8px; font-weight: 700; }
.fin-resumo-destaque b { font-size: 17px; }
.fin-resumo-destaque.saida { background: #FDEEEC; color: #C0392B; border: 1.5px solid #E2A198; }
.fin-resumo-destaque.entrada { background: var(--money-in-tint); color: #1E7A45; border: 1.5px solid #9CD3AE; }
/* 07/10/2026: resumo de Contas a pagar/receber (lista + selecionadas) */
.contas-resumo-linha { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; font-size: 13px; }
.contas-resumo-linha span { color: var(--text-dim); text-transform: uppercase; font-size: 12px; letter-spacing: .03em; }
.contas-resumo-linha b { font-size: 14px; }
.contas-resumo-sel { margin: 14px 0; padding: 12px; border-radius: 10px; background: #1f2a24; color: #fff; }
.contas-resumo-sel .contas-resumo-linha span { color: #c9d6cf; }
#contas-info .fin-resumo-destaque { gap: 8px; }
#contas-info .fin-resumo-destaque span { line-height: 1.15; }
#contas-info .fin-resumo-destaque b { white-space: nowrap; font-size: 16px; }
.contas-resumo-sel-titulo { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; color: #7fe0a2; }
/* DRE */
.dre-table tr.dre-row-total td { background: #DCDFE3 !important; font-weight: 800; border-top: 1px solid #C5CAD1; }
.dre-table thead th { background: #E9EBEE !important; color: #4A5058; font-weight: 700; }

/* ================= FLUXO DE CAIXA ================= */
.fx-filtros { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; padding: 14px 16px !important; margin-bottom: 14px; overflow: visible !important; }
.fx-filtro { display: flex; flex-direction: column; gap: 5px; }
.fx-filtro > label { font-size: 12px; font-weight: 700; color: var(--label); }
.fx-filtro select, .fx-filtro input[type=date] { min-height: 38px; padding: 7px 10px; font-size: 13.5px; }
.fx-opcoes { gap: 6px; } .fx-opcoes .promo-check { font-size: 12.5px; }
.fx-acoes { flex-direction: row; margin-left: auto; gap: 8px; }
.fx-alerta { background: #FDEEEC; border: 2px solid #E2A198; color: #8E2A20; border-radius: 10px; padding: 12px 16px; margin-bottom: 12px; font-size: 14px; }
.fx-atrasos { background: #fff; border: 1.5px dashed #C9CED4; border-radius: 8px; padding: 8px 12px; margin: -4px 0 12px; font-size: 13px; }
.fx-grafico-box { padding: 12px 16px 6px !important; margin-bottom: 14px; }
.fx-grafico-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; font-size: 13.5px; }
.fx-legenda { font-size: 12px; color: var(--text-dim); display: flex; align-items: center; gap: 6px; }
.fx-legenda i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-left: 8px; }
.lg-ent { background: #2FAE59; } .lg-sai { background: #D9534F; } .lg-saldo { background: #16191D; height: 3px !important; }
.fx-grafico { width: 100%; height: 240px; display: block; }
.fx-grafico .g-ent { fill: #2FAE59; } .fx-grafico .g-sai { fill: #D9534F; }
.fx-grafico .g-saldo { stroke: #16191D; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.fx-grafico .g-pt { fill: #16191D; } .fx-grafico .g-pt-neg { fill: #C0392B; }
.fx-grafico .g-zero { stroke: #7F8893; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.fx-grafico .g-grade { stroke: #E3E5E8; stroke-width: 1; vector-effect: non-scaling-stroke; }
.fx-grafico .g-lbl { font-size: 11px; fill: #6B7078; font-family: 'IBM Plex Sans', sans-serif; }
.fx-tabela { margin-bottom: 14px; }
.fx-linha.clicavel { cursor: pointer; }
.fx-linha.clicavel:hover td { background: var(--accent-tint); }
.fx-linha.fx-neg td { background: #FFF1EF; }
.fx-linha.fx-hoje td:first-child { box-shadow: inset 4px 0 0 var(--accent); }
.fx-seta { display: inline-block; width: 14px; color: var(--accent-2); font-weight: 700; } .fx-seta.vazio { color: #C5CAD1; }
.fx-detalhe > td { background: #F6F7F5 !important; padding: 6px 12px 12px 34px !important; }
.fx-itens { background: #fff; border: 1px solid #D5D9DE; border-radius: 8px; overflow: hidden; }
.fx-itens th { background: #F1F3F5; font-size: 10.5px; padding: 7px 10px; }
.fx-itens td { padding: 7px 10px; font-size: 12.5px; }
.fx-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 10px; }
.fx-cat { padding: 14px 16px !important; }
.fx-cat-head { display: flex; justify-content: space-between; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--line); font-size: 14px; }
.fx-cat-linha { position: relative; display: flex; justify-content: space-between; padding: 6px 8px; font-size: 13px; margin-bottom: 3px; border-radius: 5px; overflow: hidden; }
.fx-cat-linha > span { position: relative; z-index: 1; }
.fx-barra { position: absolute; left: 0; top: 0; bottom: 0; opacity: .13; border-radius: 5px; }
.fx-barra.valor-entrada { background: #2FAE59; } .fx-barra.valor-saida { background: #D9534F; }
@media (max-width: 1100px) { .fx-cats { grid-template-columns: 1fr; } .fx-acoes { margin-left: 0; } }
@media (max-width: 900px) { .bk-contas { grid-template-columns: 1fr 1fr; } .page-head + .toolbar:has(.fin-tab) { display: flex; overflow-x: auto; } }
.fin-faixa-saldo.inicial td .valor-entrada, .fin-faixa-saldo.final td .valor-entrada, .fin-faixa-saldo.final td.valor-entrada { color: #86E3A8 !important; }
.fin-faixa-saldo.inicial td .valor-saida, .fin-faixa-saldo.final td .valor-saida, .fin-faixa-saldo.final td.valor-saida { color: #FF9A90 !important; }
.fx-grafico .g-ent, .fx-grafico .g-sai { opacity: .85; }
/* rádios nunca esticam (antes o "Do ano / Do período" do DRE ficava desalinhado) */
.filtros-painel input[type=radio], .form-row input[type=radio], .field-wrap input[type=radio], .modal-body input[type=radio] { width: 17px !important; height: 17px; min-height: 0 !important; padding: 0 !important; flex: none; margin: 0; }

/* ================= RELATÓRIOS (modelo Financeiro) ================= */
.rel-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: start; }
.rel-catalogo { padding: 10px !important; position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto !important; background: var(--ink) !important; border-color: var(--ink) !important; }
.rel-cat-busca input { width: 100%; padding: 9px 11px; border-radius: 8px; border: 1.5px solid #3A414C !important; background: #0F1216 !important; color: #EDEDEA !important; font-size: 13px; margin-bottom: 6px; }
.rel-cat-grupo { color: #7F8893; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin: 14px 8px 6px; }
.rel-cat-item { display: block; width: 100%; text-align: left; border: none; background: transparent; color: #C9CDD3; padding: 8px 10px; border-radius: 8px; font-size: 13px; cursor: pointer; line-height: 1.3; }
.rel-cat-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.rel-cat-item.ativo { background: var(--accent); color: #fff; font-weight: 700; box-shadow: 0 4px 12px -4px rgba(47,174,89,.6); }
.rel-titulo { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.rel-titulo h2 { margin: 0 0 3px; font-size: 21px; }
.rel-titulo p { margin: 0; color: var(--text-dim); font-size: 13px; max-width: 720px; }
.rel-titulo-acoes { display: flex; gap: 8px; }
.rel-busca input { min-width: 240px; min-height: 38px; }
.rel-prod-filtro { min-width: 320px; flex: 1; } .rel-prod-filtro input { min-height: 38px; width: 100%; }
.rel-graficos { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 14px; }
.rel-graficos.dois { grid-template-columns: 3fr 2fr; }
.rel-graficos .fx-grafico-box { margin-bottom: 0; }
.rel-graf { width: 100%; height: 220px; display: block; }
.rel-graf .g-ent { fill: #2FAE59; } .rel-graf .g-sai { fill: #D9534F; }
.rel-graf .g-grade { stroke: #E3E5E8; stroke-width: 1; vector-effect: non-scaling-stroke; }
.rel-graf .g-ref { stroke: #B8862E; stroke-width: 1; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.rel-graf .g-comp { stroke: #16191D; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.rel-graf .g-lbl { font-size: 11px; fill: #6B7078; font-family: 'IBM Plex Sans', sans-serif; }
.rel-graf .g-abc-A, .lg-a { fill: #2FAE59; background: #2FAE59; } .rel-graf .g-abc-B, .lg-b { fill: #E0A526; background: #E0A526; } .rel-graf .g-abc-C, .lg-c { fill: #D9534F; background: #D9534F; }
.rel-hbar { display: flex; flex-direction: column; gap: 6px; padding: 4px 0; }
.rel-hbar-l { display: grid; grid-template-columns: minmax(90px, 36%) 1fr auto; gap: 10px; align-items: center; font-size: 12.5px; }
.rel-hbar-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.rel-hbar-b { background: #F1F3F5; border-radius: 6px; height: 16px; overflow: hidden; }
.rel-hbar-b i { display: block; height: 100%; background: linear-gradient(90deg, #2FAE59, #248C46); border-radius: 6px; }
.rel-hbar-b i.sai { background: linear-gradient(90deg, #E57373, #C0392B); }
.rel-hbar-v { font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-size: 12px; white-space: nowrap; }
.rel-calor { display: grid; gap: 3px; font-size: 10.5px; overflow-x: auto; }
.rel-calor-h { text-align: center; color: var(--text-dim); font-weight: 600; }
.rel-calor-d { font-weight: 700; color: var(--label); display: flex; align-items: center; }
.rel-calor-c { height: 30px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-family: 'IBM Plex Mono', monospace; font-size: 10px; border: 1px solid rgba(0,0,0,.04); }
.rel-var { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 10px; white-space: nowrap; }
.rel-var.up { background: var(--money-in-tint); color: #1E7A45; } .rel-var.down { background: #FDEEEC; color: #C0392B; }
.rel-var-ant { font-size: 11px; color: var(--text-dim); white-space: nowrap; }
.fin-kpi > small .rel-var { display: inline-block; margin-top: 2px; }
.rel-abc { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; align-items: center; justify-content: center; font-weight: 800; color: #fff; font-size: 12px; }
.rel-abc-A { background: #2FAE59; } .rel-abc-B { background: #E0A526; } .rel-abc-C { background: #D9534F; }
.rel-tabela { margin-bottom: 14px; }
.rel-tab-titulo { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 2px solid var(--line); font-size: 14px; }
th.rel-ord { cursor: pointer; user-select: none; } th.rel-ord:hover { color: var(--accent-2); }
.rel-whats { display: inline-block; margin-left: 4px; font-size: 11px; font-weight: 700; color: #fff !important; background: #25D366; padding: 1px 7px; border-radius: 10px; text-decoration: none; }
tr.rel-sem-custo td { background: #FFFBEA; }
tr.rel-hoje td { background: var(--accent-tint); font-weight: 700; }
@media (max-width: 1370px) and (min-width: 901px) { .rel-layout { grid-template-columns: 210px minmax(0, 1fr); } .rel-graficos.dois { grid-template-columns: 1fr; } }
@media (max-width: 1100px) {
  .rel-layout { grid-template-columns: minmax(0, 1fr); }
  .rel-catalogo { position: static; max-height: none; display: flex; flex-wrap: wrap; gap: 4px; }
  .rel-cat-busca { width: 100%; } .rel-cat-grupo { width: 100%; margin: 6px 4px 2px; } .rel-cat-item { width: auto; }
}
.fin-kpi > b { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rel-tabela thead th { padding: 9px 8px; font-size: 10px; }
.rel-tabela tbody td { padding: 8px 8px; font-size: 12.5px; }
.rel-tabela .num-cell { font-size: 12px; white-space: nowrap; }
.fx-filtros .fx-filtro select { min-width: 120px; }

/* ================= FINANCEIRO → PAINEL ================= */
.fp-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.fp-topo h2 { margin: 0 0 3px; font-size: 21px; } .fp-topo p { margin: 0; color: var(--text-dim); font-size: 13px; }
.fp-topo-acoes { display: flex; gap: 8px; }
.fp-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 14px; margin-bottom: 14px; }
.fp-grid.tres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fp-card { padding: 14px 16px !important; }
.fp-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--line); font-size: 14px; }
.fp-pe-valores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.fp-pe-valores span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-dim); font-weight: 700; }
.fp-pe-valores b { font-family: 'IBM Plex Mono', monospace; font-size: 18px; }
.fp-barra { position: relative; height: 22px; background: #ECEEF1; border-radius: 11px; overflow: hidden; border: 1px solid #D5D9DE; }
.fp-barra.grande { height: 30px; border-radius: 15px; margin-top: 6px; }
.fp-barra i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 11px; }
.fp-barra i.proj { background: repeating-linear-gradient(45deg, rgba(47,174,89,.25), rgba(47,174,89,.25) 6px, rgba(47,174,89,.12) 6px, rgba(47,174,89,.12) 12px); }
.fp-barra i.real { background: linear-gradient(90deg, #2FAE59, #248C46); z-index: 1; }
.fp-barra-leg { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-dim); margin-top: 5px; gap: 8px; }
.fp-mini { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 12.5px; color: var(--text-dim); }
.fp-mini b { color: var(--text); }
.fp-semaforo { display: flex; flex-direction: column; gap: 6px; }
.fp-sem { display: grid; grid-template-columns: 14px 1fr auto; gap: 2px 10px; align-items: center; padding: 7px 10px; border-radius: 8px; background: #F7F8F6; border: 1px solid #E3E5E8; }
.fp-sem i { width: 12px; height: 12px; border-radius: 50%; grid-row: span 2; box-shadow: 0 0 0 3px rgba(0,0,0,.04); }
.fp-sem.ok i { background: #2FAE59; } .fp-sem.atencao i { background: #E0A526; } .fp-sem.critico i { background: #D9534F; }
.fp-sem.critico { background: #FFF1EF; border-color: #F2C4BD; } .fp-sem.atencao { background: #FFFBEA; border-color: #F0DFA8; }
.fp-sem .n { font-weight: 700; font-size: 13px; } .fp-sem b { font-family: 'IBM Plex Mono', monospace; font-size: 13px; text-align: right; }
.fp-sem small { grid-column: 2 / -1; font-size: 11px; color: var(--text-dim); line-height: 1.3; }
.fp-aging-barra { display: flex; height: 22px; border-radius: 11px; overflow: hidden; margin: 4px 0 12px; border: 1px solid #D5D9DE; }
.fp-aging-barra i, .fp-aging-lista i { display: block; height: 100%; }
.fp-aging-lista { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; }
.fp-aging-lista > div { display: grid; grid-template-columns: 12px 1fr auto 52px; gap: 8px; align-items: center; }
.fp-aging-lista i { width: 12px; height: 12px; border-radius: 3px; }
.fp-aging-lista b { font-family: 'IBM Plex Mono', monospace; font-size: 12px; } .fp-aging-lista small { color: var(--text-dim); text-align: right; }
.ok { } i.ok { background: #2FAE59; } i.a1 { background: #F2C14E; } i.a2 { background: #EE9A3A; } i.a3 { background: #E0663C; } i.a4 { background: #B3261E; }
.fp-venc { display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow-y: auto; }
.fp-venc-l { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 7px; background: #F7F8F6; font-size: 12.5px; }
.fp-venc-l.atrasada { background: #FFF1EF; box-shadow: inset 3px 0 0 #C0392B; }
.fp-venc-l .d { font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-size: 12px; }
.fp-venc-l .t { overflow: hidden; } .fp-venc-l .t small { display: block; color: var(--text-dim); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-venc-l b { font-family: 'IBM Plex Mono', monospace; font-size: 12px; white-space: nowrap; }
.fp-kpis-2 { margin-top: 0; }
.rel-var.up-ruim { background: #FDEEEC; color: #C0392B; } .rel-var.down-bom { background: var(--money-in-tint); color: #1E7A45; }
tr.fin-linha-total td { background: #DCDFE3 !important; font-weight: 800; }
@media (max-width: 1370px) { .fp-grid { grid-template-columns: 1fr; } .fp-grid.tres { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .fp-grid.tres { grid-template-columns: 1fr; } .fp-pe-valores { grid-template-columns: 1fr; } }
.fin-kpi > b { font-size: clamp(13px, 1.2vw, 17px); text-overflow: clip; }
.rel-area .fin-kpis { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

/* ===================== PRODUTOS — cadastro profissional (24/09/2026) ===================== */
.pe-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; background: var(--ink); color: #fff; border-radius: 14px; padding: 12px 16px; margin: 0 0 14px; box-shadow: 0 10px 24px -14px rgba(0,0,0,.55); flex-wrap: wrap; }
.pe-bar-foto { width: 54px; height: 54px; border-radius: 10px; background: #2A2F36; display: grid; place-items: center; color: #7C8591; overflow: hidden; flex-shrink: 0; }
.pe-bar-foto img { width: 100%; height: 100%; object-fit: cover; }
.pe-bar-id { min-width: 180px; flex: 1 1 220px; }
.pe-bar-nome { font-size: 18px; font-weight: 800; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 460px; }
.pe-bar-sub { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 5px; font-size: 12px; }
.pe-cod { font-family: 'IBM Plex Mono', monospace; background: #FFF4C2; color: #5A4500; border: 1px solid #E8C547; padding: 2px 8px; border-radius: 6px; font-weight: 700; font-size: 12.5px; }
.pe-sit { padding: 2px 9px; border-radius: 20px; font-weight: 700; }
.pe-sit.on { background: #1F5E36; color: #B9F0CC; } .pe-sit.off { background: #6B2620; color: #FFD0CA; }
.pe-tag { background: #2A2F36; color: #D5DAE0; padding: 2px 8px; border-radius: 6px; font-weight: 600; }
.pe-alt { color: #9AA3AE; }
.pe-bar-kpis { display: flex; gap: 6px; flex-wrap: wrap; }
.pe-kpi { background: #22262C; border: 1px solid #343A42; border-left: 4px solid #6B7480; border-radius: 9px; padding: 6px 12px; min-width: 104px; display: flex; flex-direction: column; }
.pe-kpi > span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: #9AA3AE; font-weight: 700; }
.pe-kpi > b { font-family: 'IBM Plex Mono', monospace; font-size: 15.5px; color: #fff; white-space: nowrap; }
.pe-kpi > small { font-size: 11px; color: #C9CDD3; }
.pe-kpi.bom { border-left-color: #2FAE59; } .pe-kpi.bom > b { color: #7EE2A2; }
.pe-kpi.ruim { border-left-color: #E0533F; background: #3A1F1C; } .pe-kpi.ruim > b, .pe-kpi.ruim > small { color: #FFB4A8; }
.pe-kpi .pe-promo { color: #FFD66B; }
.pe-bar-acoes { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.pe-btn { display: inline-flex; align-items: center; gap: 6px; background: #2A2F36; color: #E6E9ED; border: 1.5px solid #3D444D; border-radius: 9px; padding: 9px 14px; font-weight: 700; font-size: 13.5px; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s; }
.pe-btn:hover { background: #363C44; border-color: #59616C; color: #fff; }
.pe-btn-danger { color: #FFB4A8; border-color: #6B2620; }
.pe-btn-danger:hover { background: #A6392E; border-color: #A6392E; color: #fff; }
.pe-btn-save { background: var(--accent); border-color: var(--accent); color: #fff; padding: 10px 20px; font-size: 14.5px; box-shadow: 0 6px 16px -6px rgba(47,174,89,.7); }
.pe-btn-save:hover { background: var(--accent-2); border-color: var(--accent-2); }
.prod-editor-head.panel { padding: 16px 20px 6px; margin-bottom: 14px; border: 1.5px solid #D2D4CE; }
.pe-sku-linha { display: flex; gap: 6px; align-items: center; }
.pe-sku-linha .pe-sku-input { flex: 1; min-width: 120px; font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-size: 15px; background: #FFFBEA !important; border-color: #D9B437 !important; }
.pe-mini-btn { background: #fff; border: 1.5px solid #C5CAD1; color: var(--text); border-radius: 8px; padding: 7px 10px; font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.pe-mini-btn:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.pe-modo-chip { display: inline-block; margin-left: 6px; background: var(--ink); color: #fff; border-radius: 5px; padding: 1px 7px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; vertical-align: 1px; }
.pe-preco-input { font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-size: 15px; }
.pe-link { display: inline-block; margin-top: 4px; font-weight: 700; color: var(--accent-2) !important; }
.pe-tabs { display: flex; gap: 4px; background: var(--ink); padding: 6px; border-radius: 12px; margin: 0 0 14px; flex-wrap: wrap; }
.pe-tab { background: transparent; border: none; color: #C9CDD3; font-weight: 700; font-size: 13.5px; padding: 9px 16px; border-radius: 8px; cursor: pointer; }
.pe-tab:hover { background: rgba(255,255,255,.08); color: #fff; }
.pe-tab.active { background: var(--accent); color: #fff; box-shadow: 0 4px 12px -4px rgba(47,174,89,.6); }
.pe-tab[data-ptab="custos"]:not(.active) { color: #FFD66B; }
.pe-tab-content.panel { padding: 20px 24px; border: 1.5px solid #D2D4CE; }
@media (max-width: 1370px) { .pe-bar-nome { max-width: 300px; } .pe-bar-acoes { margin-left: 0; width: 100%; justify-content: flex-end; } }
@media (max-width: 700px) { .pe-sku-linha { flex-wrap: wrap; } .pe-bar-kpis { width: 100%; } .pe-kpi { flex: 1 1 40%; } }

/* aba Custos e preço */
.pcu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 1100px) { .pcu-grid { grid-template-columns: 1fr; } }
.pcu-card { background: #fff; border: 1.5px solid #D2D4CE; border-radius: 12px; padding: 16px 18px; min-width: 0; }
.pcu-titulo { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 800; margin-bottom: 12px; flex-wrap: wrap; }
.pcu-n { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; }
.pcu-preco-atual { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--text-dim); } .pcu-preco-atual b { color: var(--text); font-family: 'IBM Plex Mono', monospace; font-size: 15px; }
.pcu-origem { background: #EEF6F1; border-left: 4px solid var(--accent); padding: 8px 12px; border-radius: 6px; font-size: 13px; margin-bottom: 12px; }
.pcu-origem.aviso { background: #FFF6DB; border-left-color: #D9A400; }
.pcu-total { display: flex; justify-content: space-between; align-items: center; background: var(--ink); color: #fff; border-radius: 9px; padding: 10px 14px; margin: 4px 0 12px; }
.pcu-total span { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #C9CDD3; }
.pcu-total b { font-family: 'IBM Plex Mono', monospace; font-size: 20px; }
.pcu-acoes { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; }
.pcu-sub { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--text); border-top: 1.5px solid #E3E5E1; padding-top: 12px; margin: 6px 0 8px; flex-wrap: wrap; }
.pcu-sub span { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--text-dim); }
.pcu-tab { width: 100%; border-collapse: collapse; font-size: 13px; }
.pcu-tab th { background: #E9EBE7; text-align: left; padding: 7px 9px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; }
.pcu-tab td { padding: 7px 9px; border-bottom: 1px solid #ECEDEA; }
.pcu-tab .num { text-align: right; font-family: 'IBM Plex Mono', monospace; white-space: nowrap; }
.pcu-tab tr.pcu-prejuizo td { background: #FBE6E2; }
.pcu-seg { margin-bottom: 2px; }
.pcu-params { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; margin-bottom: 12px; }
.pcu-params .field-wrap { margin: 0; }
.pcu-params input:disabled, .pcu-params select:disabled { background: #EEF0EC !important; border-color: transparent !important; color: var(--text); opacity: 1; }
@media (max-width: 700px) { .pcu-params { grid-template-columns: 1fr 1fr; } }
.pcu-sugestao { background: #F5F6F3; border: 1.5px solid #D2D4CE; border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; }
.pcu-sug-linha { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13.5px; border-bottom: 1px dashed #D8DAD5; }
.pcu-sug-linha b { font-family: 'IBM Plex Mono', monospace; }
.pcu-sug-destaque { display: grid; grid-template-columns: 1fr auto; align-items: center; background: #E4F7EA; border: 2px solid var(--accent); border-radius: 9px; padding: 10px 14px; margin-top: 10px; }
.pcu-sug-destaque span { font-weight: 800; color: #1E7A45; text-transform: uppercase; font-size: 12.5px; letter-spacing: .04em; }
.pcu-sug-destaque b { font-family: 'IBM Plex Mono', monospace; font-size: 26px; color: #145C32; }
.pcu-sug-destaque small { grid-column: 1 / -1; color: var(--text-dim); font-size: 11.5px; }
.pcu-sug-comp { margin-top: 8px; font-weight: 700; font-size: 13px; padding: 6px 10px; border-radius: 6px; }
.pcu-sug-comp.abaixo { background: #FBE6E2; color: #A6392E; } .pcu-sug-comp.ok { background: #E4F7EA; color: #1E7A45; }
.pcu-sug-vazio { color: var(--text-dim); font-weight: 600; padding: 8px 0; }
.pcu-barra { display: flex; height: 34px; border-radius: 9px; overflow: hidden; margin: 6px 0 8px; border: 1.5px solid #C5CAD1; }
.pcu-barra > div { display: flex; align-items: center; justify-content: center; min-width: 2px; color: #fff; font-size: 11.5px; font-weight: 700; overflow: hidden; white-space: nowrap; }
.pcu-seg-cu { background: #4A525C; } .pcu-seg-im { background: #B7791F; } .pcu-seg-co { background: #7B5EA7; } .pcu-seg-ca { background: #2F74B5; } .pcu-seg-fx { background: #8A949F; } .pcu-seg-lu { background: #2FAE59; } .pcu-seg-pr { background: #C0392B; }
.pcu-legenda { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; margin-bottom: 14px; }
.pcu-legenda span { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.pcu-legenda i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.pcu-legenda em { font-style: normal; color: var(--text-dim); }
.pcu-kpis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }

/* Configurações → Produtos */
.pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 1100px) { .pc-grid { grid-template-columns: 1fr; } }
.pc-card.panel { padding: 18px 20px; border: 1.5px solid #D2D4CE; min-width: 0; }
.pc-modo { flex-wrap: wrap; margin-bottom: 4px; }
.pc-preview { background: #F5F6F3; border: 1.5px dashed #C5CAD1; border-radius: 8px; padding: 9px 12px; font-size: 13.5px; margin-top: 4px; }
.pc-preview b { font-family: 'IBM Plex Mono', monospace; background: #FFF4C2; padding: 1px 6px; border-radius: 4px; }
.pc-simula { margin-top: 6px; }
.pc-sim-l { background: #E4F7EA; border-left: 4px solid var(--accent); border-radius: 6px; padding: 9px 12px; font-size: 13.5px; line-height: 1.6; }
.pc-sim-l.valor-neg { background: #FBE6E2; border-left-color: #C0392B; }
.pc-acoes { margin-top: 14px; display: flex; justify-content: flex-end; }

/* lista de produtos: botões no padrão */
.prd-toolbar .prd-icon-btn { border: 1.5px solid #C5CAD1; background: #fff; }
.prd-toolbar .prd-icon-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.prd-acoes .ped-acao { border: 1.5px solid #E1E3DF; margin-bottom: 5px; background: #fff; padding: 9px 10px; border-radius: 8px; }
.prd-acoes .ped-acao:not(:disabled) { border-color: #C5CAD1; font-weight: 700; }
.prd-acoes .ped-acao:hover span { color: inherit; }
.prd-acoes .ped-acao:not(:disabled):hover { background: var(--ink); color: #fff; border-color: var(--ink); }
#novo-produto { padding: 11px 20px; font-weight: 800; box-shadow: 0 6px 16px -6px rgba(47,174,89,.6); }
.pcu-params input, .pcu-params select, .pcu-card .form-row input { width: 100%; min-width: 0; box-sizing: border-box; }
.pcu-params input:disabled, .pcu-params select:disabled { padding-left: 10px; }
.pc-card .form-row { align-items: end; }
.pcu-params input, .pcu-params select, .pcu-card .form-row input { padding: 9px 12px; }
#main:has(.pe-bar) { overflow-x: clip; }
@media (max-width: 700px) { .pe-bar { position: static; } }
@media (min-width: 701px) and (max-width: 1370px) {
  .prd-acoes .ped-acoes-panel { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px 12px; }
  .prd-acoes .ped-acoes-sel { width: 100%; margin: 0 0 2px; padding: 0 0 6px; }
  .prd-acoes .ped-acao { width: auto; margin: 0; }
  .prd-acoes .ped-info { margin-left: auto; display: flex; align-items: baseline; gap: 8px; border: none; padding: 0; margin-top: 0; }
  .prd-acoes .ped-info-title { display: none; }
}

/* ===================== MENU LATERAL: mostrar / ocultar (24/09/2026) ===================== */
#sidebar-toggle { margin-left: auto; background: transparent; border: 1px solid #3A414C; color: #9BA0A9; width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; transition: background .12s, color .12s; }
#sidebar-toggle:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
#sidebar { transition: width .18s ease, padding .18s ease; }
@media (min-width: 901px) {
  #app-screen.sidebar-mini #sidebar { width: 64px; padding-left: 8px; padding-right: 8px; overflow: hidden; }
  #app-screen.sidebar-mini #sidebar .brand-row { flex-direction: column; gap: 10px; padding: 0 0 14px; }
  #app-screen.sidebar-mini #sidebar .brand-row .brand { display: none; }
  #app-screen.sidebar-mini #sidebar-toggle { margin: 0; }
  #app-screen.sidebar-mini #sidebar-toggle .st-seta { transform: scaleX(-1); transform-origin: 14.25px 12px; }
  #app-screen.sidebar-mini #sidebar .nav-label { font-size: 0; padding: 8px 0 4px; }
  #app-screen.sidebar-mini #sidebar .nav-label::before { content: ''; display: block; height: 1px; background: #2A2F36; margin: 0 8px; }
  #app-screen.sidebar-mini #sidebar nav button { font-size: 0; justify-content: center; padding: 10px 0; gap: 0; }
  #app-screen.sidebar-mini #sidebar nav button svg.icon { width: 19px; height: 19px; }
  #app-screen.sidebar-mini #sidebar nav button .badge { display: none; }
  #app-screen.sidebar-mini #sidebar .cash-chip { font-size: 0; justify-content: center; padding: 9px 0; }
  #app-screen.sidebar-mini #sidebar .cash-chip .dot { width: 9px; height: 9px; }
  #app-screen.sidebar-mini #sidebar .user-chip { justify-content: center; padding: 12px 0 0; }
  #app-screen.sidebar-mini #sidebar .user-chip .who { display: none; }
  #app-screen.sidebar-mini #logout-btn { font-size: 0; padding: 8px 0; }
  #app-screen.sidebar-mini #logout-btn::before { content: '⏻'; font-size: 14px; }
}
@media (max-width: 900px) { #sidebar-toggle { display: none; } }

/* ===================== PEDIDOS DE VENDA — padrão profissional (24/09/2026) ===================== */
.pv-btn { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1.5px solid #C5CAD1; color: var(--text); border-radius: 9px; padding: 9px 14px; font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; }
.pv-btn:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: #fff; }
.pv-btn:disabled { opacity: .45; cursor: default; }
.pv-btn small { font-weight: 600; opacity: .8; }
.pv-btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.pv-btn-dark:hover:not(:disabled) { background: #000; }
.pv-btn-x { border-color: transparent; background: transparent; color: #FFB4A8; }
.pv-btn-novo { padding: 11px 20px; font-weight: 800; box-shadow: 0 6px 16px -6px rgba(47,174,89,.6); }
.ped-head .head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pv-sits { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.pv-sit { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; background: #fff; border: 1.5px solid #D2D4CE; border-top: 5px solid #9AA3AE; border-radius: 11px; padding: 9px 11px 10px; cursor: pointer; min-width: 0; transition: transform .1s, box-shadow .1s; }
.pv-sit:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -12px rgba(0,0,0,.4); }
.pv-sit-lbl { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pv-sit b { font-family: 'IBM Plex Mono', monospace; font-size: 22px; line-height: 1.15; color: var(--text); }
.pv-sit small { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--text-dim); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pv-sit em { font-style: normal; font-size: 10.5px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pv-sit.sit-aberto { border-top-color: #F2B600; } .pv-sit.sit-andamento { border-top-color: #3B82F6; } .pv-sit.sit-verificado { border-top-color: #7C5CE0; }
.pv-sit.sit-atendido { border-top-color: #5DBB2A; } .pv-sit.sit-cancelado { border-top-color: #E0533F; } .pv-sit.sit-digitacao { border-top-color: #9B9B9B; } .pv-sit.sit-agenciada { border-top-color: #D94BA0; }
.pv-sit.sit-todas { border-top-color: var(--ink); }
.pv-sit.alerta:not(.active) { background: #FFF8DC; border-color: #E8C547; }
.pv-sit.alerta:not(.active)::after { content: ''; position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: #F2B600; box-shadow: 0 0 0 0 rgba(242,182,0,.6); animation: pvPulse 1.8s infinite; }
@keyframes pvPulse { 0% { box-shadow: 0 0 0 0 rgba(242,182,0,.6); } 70% { box-shadow: 0 0 0 8px rgba(242,182,0,0); } 100% { box-shadow: 0 0 0 0 rgba(242,182,0,0); } }
.pv-sit.active { background: var(--ink); border-color: var(--ink); }
.pv-sit.active .pv-sit-lbl, .pv-sit.active small, .pv-sit.active em { color: #C9CDD3; }
.pv-sit.active b { color: #fff; }
.pv-sit.active .sit-dot { box-shadow: 0 0 0 2px var(--ink), 0 0 0 3.5px #fff; }
@media (max-width: 1100px) { .pv-sits { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1101px) and (max-width: 1370px) { .pv-sits { gap: 6px; } .pv-sit { padding: 8px 9px; } .pv-sit b { font-size: 19px; } .pv-sit-lbl { font-size: 10px; letter-spacing: .02em; } .pv-sit small { font-size: 10.5px; } }
@media (max-width: 700px) { .pv-sits { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pv-sit em { display: none; } }
.pv-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .pv-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fin-kpi.destaque { border-left-color: var(--ink); }
.fin-kpi.alerta { border-left-color: #F2B600; background: #FFF8DC; } .fin-kpi.alerta > b { color: #8A6400; }
.pv-filtros.panel { padding: 12px 14px; margin-bottom: 8px; border: 1.5px solid #D2D4CE; }
.pv-filtros-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pv-busca { flex: 1 1 260px; }
.pv-busca input { border: 1.5px solid #C5CAD1 !important; padding: 10px 12px 10px 36px; font-size: 14px; }
.pv-periodo { flex-wrap: wrap; }
.pv-filtros-mais { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 14px; align-items: end; margin-top: 12px; padding-top: 12px; border-top: 1.5px solid #E3E5E1; }
.pv-filtros.fechado .pv-filtros-mais { display: none; }
.pv-filtros-mais .field-wrap { margin: 0; }
.pv-filtros-mais select, .pv-datas input { width: 100%; padding: 9px 10px; border: 1.5px solid #C5CAD1; border-radius: 8px; background: #fff; font-size: 13.5px; }
.pv-datas { display: flex; gap: 6px; }
.pv-legenda-wrap { grid-column: span 2; } .pv-legenda-wrap .ped-legend { padding: 9px 0; }
.pv-limpar { justify-self: start; }
.pv-selbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 40px; margin-bottom: 8px; }
.pv-selbar-dica { font-size: 12.5px; color: var(--text-dim); }
.pv-selbar.ativa { position: sticky; top: 0; z-index: 20; background: var(--ink); color: #fff; border-radius: 12px; padding: 8px 10px 8px 16px; box-shadow: 0 10px 24px -14px rgba(0,0,0,.6); }
.pv-selbar-info { font-size: 13.5px; } .pv-selbar-info b { font-family: 'IBM Plex Mono', monospace; }
.pv-selbar-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.pv-selbar.ativa .pv-btn:not(.pv-btn-dark):not(.pv-btn-x) { background: #2A2F36; border-color: #3D444D; color: #E6E9ED; }
.pv-selbar.ativa .pv-btn:not(:disabled):hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.pv-selbar.ativa .pv-btn-dark { background: var(--accent); border-color: var(--accent); }
.pv-table-wrap.panel { border: 1.5px solid #D2D4CE; padding: 0; overflow-x: auto; }
.pv-table { width: 100%; border-collapse: collapse; }
.pv-table thead th { background: #E9EBE7; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; font-weight: 800; color: #3A4048; padding: 10px 10px; border-bottom: 1.5px solid #D2D4CE; text-align: left; white-space: nowrap; }
.pv-table td { padding: 10px 10px; border-bottom: 1px solid #ECEDEA; font-size: 13.5px; vertical-align: middle; }
.pv-table tbody tr.pv-row td:first-child { box-shadow: inset 4px 0 0 #C5CAD1; }
.pv-table tbody tr.pv-row[data-sit="em_aberto"] td:first-child { box-shadow: inset 4px 0 0 #F2B600; }
.pv-table tbody tr.pv-row[data-sit="em_andamento"] td:first-child { box-shadow: inset 4px 0 0 #3B82F6; }
.pv-table tbody tr.pv-row[data-sit="verificado"] td:first-child { box-shadow: inset 4px 0 0 #7C5CE0; }
.pv-table tbody tr.pv-row[data-sit="atendido"] td:first-child { box-shadow: inset 4px 0 0 #5DBB2A; }
.pv-table tbody tr.pv-row[data-sit="cancelado"] td:first-child { box-shadow: inset 4px 0 0 #E0533F; }
.pv-table tbody tr.pv-row[data-sit="venda_agenciada"] td:first-child { box-shadow: inset 4px 0 0 #D94BA0; }
.pv-table tbody tr.pv-cancelado td { color: #8A8F96; } .pv-table tbody tr.pv-cancelado .pv-total { text-decoration: line-through; }
.pv-table tbody tr.ped-row.selected td { background: #E4F7EA; }
.pv-num { font-weight: 800; font-size: 14px; }
.pv-total { font-weight: 800; font-size: 14px; }
.pv-parado { display: inline-block; margin-top: 2px; font-size: 10.5px; font-weight: 800; color: #A6392E; background: #FBE6E2; border-radius: 4px; padding: 0 5px; }
.pv-origem { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 5px; background: #ECEDEA; color: #3A4048; white-space: nowrap; }
.pv-or-pdv { background: #DCEBFF; color: #1D4F91; } .pv-or-man { background: #ECECEC; color: #444; } .pv-or-mkt { background: #FFF0A8; color: #6B5300; } .pv-or-orc { background: #E6E0FA; color: #5534A8; }
.pv-table tfoot tr.pv-rodape td { background: var(--ink); color: #fff; font-weight: 800; padding: 11px 10px; border: none; }
.pv-table tfoot tr.pv-rodape td span { font-weight: 500; color: #9AA3AE; }
.pv-table tfoot tr.pv-rodape td.num { font-family: 'IBM Plex Mono', monospace; font-size: 15px; text-align: right; }
@media (max-width: 900px) {
  .pv-table th:nth-child(7), .pv-table td:nth-child(7) { display: table-cell; }
  .pv-table th:nth-child(5), .pv-table td:nth-child(5), .pv-table th:nth-child(8), .pv-table td:nth-child(8) { display: none; }
  .ped-head .head-actions .pv-btn { flex: 1 1 auto; justify-content: center; }
  #ped-tela-cheia { display: none; }
}

/* ---- Pedido de venda (formulário) no padrão ---- */
.pf-bar .pe-bar-nome { max-width: none; }
.pf-bar-num { background: #2A2F36; border: 1.5px solid #3D444D; border-radius: 10px; padding: 6px 12px; text-align: center; min-width: 74px; }
.pf-bar-num small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #9AA3AE; font-weight: 700; }
.pf-bar-num b { font-family: 'IBM Plex Mono', monospace; font-size: 22px; color: #FFD66B; }
.pf-bread { color: #9AA3AE !important; font-size: 13px; font-weight: 600; text-decoration: none; margin-right: 4px; }
.pf-bread:hover { color: #fff !important; }
.pf-bar .pe-bar-sub .sit-pill { font-size: 12px; }
.pf-bar .pe-kpi.bom > b { font-size: 18px; }
.pf-btn-sit { color: #FFD66B; border-color: #6B5300; }
.pf-btn-sit:hover { background: #F2B600; border-color: #F2B600; color: #1a1a1a; }
.pf-trilha { display: flex; align-items: center; gap: 0; background: #fff; border: 1.5px solid #D2D4CE; border-radius: 12px; padding: 12px 18px; margin-bottom: 14px; overflow-x: auto; }
.pf-passo { display: flex; align-items: center; gap: 8px; white-space: nowrap; color: #8A8F96; font-weight: 700; font-size: 13px; }
.pf-passo i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #ECEDEA; color: #6B7280; font-size: 12px; font-weight: 800; border: 2px solid #D2D4CE; }
.pf-passo.feito { color: #1E7A45; } .pf-passo.feito i { background: #2FAE59; border-color: #2FAE59; color: #fff; }
.pf-passo.atual { color: var(--ink); } .pf-passo.atual i { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 0 0 4px #D6F2DF; }
.pf-passo-linha { flex: 1; min-width: 24px; height: 3px; background: #E3E5E1; margin: 0 10px; border-radius: 2px; }
.pf-passo.feito + .pf-passo-linha { background: #2FAE59; }
.pf-trilha-canc { font-weight: 800; color: #A6392E; }
.pf-trilha.cancelado { background: #FBE6E2; border-color: #E2A198; }
.pf-trilha-canc.agenc { color: #95246A; margin-left: 16px; }
.pcu-card.pf-sec { margin-bottom: 14px; }
.pf-sec .form-row input:not(:disabled), .pf-sec .form-row select:not(:disabled), .pf-sec textarea:not(:disabled) { border: 1.5px solid #C5CAD1; background: #fff; }
.pf-sec input:disabled, .pf-sec select:disabled, .pf-sec textarea:disabled { background: #EEF0EC; border-color: transparent; color: var(--text); }
.pf-sec .pf-total-placa, .pf-sec input.pf-total-placa:disabled { background: var(--ink) !important; color: #7EE2A2 !important; font-family: "IBM Plex Mono", monospace; font-size: 20px !important; font-weight: 800 !important; border: none; }
.pf-sec-2 .pf-prod-search input { border: 2px solid var(--accent) !important; background: #F4FBF6 !important; font-size: 14.5px; padding: 12px 14px; }
.pf-sec table thead th { background: #E9EBE7; font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; }
@media (max-width: 700px) { .pf-bar { position: static; } .pf-passo span { display: none; } }
.pf-sec input.pf-total-placa:disabled { -webkit-text-fill-color: #7EE2A2; opacity: 1; }
.pv-sit.active .sit-dot.sit-todas { background: #fff; }
/* ---- Pedidos: marketplace (Mercado Livre etc.) ---- */
.pv-ch-mercado_livre { background: #FFE600; color: #2D3277; }
.pv-ch-shopee { background: #FFE3D6; color: #C2410C; } .pv-ch-nuvemshop { background: #DCEBFF; color: #1D4F91; } .pv-ch-magalu { background: #D6ECFF; color: #0B5CAD; }
/* 22/10/2026 (canais, Fase 3): demais canais do catálogo */
.pv-ch-tiktok_shop { background: #E6FBFB; color: #0F172A; } .pv-ch-amazon { background: #FFF1D6; color: #232F3E; } .pv-ch-americanas { background: #FFE0E3; color: #B0000F; }
.pv-ch-shein { background: #EDEDED; color: #111111; } .pv-ch-loja_virtual { background: #E9ECF1; color: #3D4552; } .pv-ch-outro { background: #E9ECF1; color: #3D4552; }
.pv-etq { display: inline-block; margin-top: 3px; font-size: 10.5px; font-weight: 800; padding: 1px 6px; border-radius: 4px; white-space: nowrap; }
.pv-et-nf { background: #FFF2C2; color: #8A6400; } .pv-et-ok { background: #DDF5C9; color: #2E6B12; } .pv-et-imp { background: #DCEBFF; color: #1D4F91; } .pv-et-post { background: #ECECEC; color: #444; }
.pv-primeira { display: inline-block; font-size: 10.5px; font-weight: 800; background: #5E6670; color: #fff; border-radius: 10px; padding: 1px 7px; vertical-align: 1px; }
.pf-n-mkt { background: #F2B600 !important; color: #1a1a1a !important; }
.pf-sec-mkt { border-color: #E8C547 !important; }
.pf-mkt-totais { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 1.4fr; gap: 8px; margin: 2px 0 14px; }
.pf-mkt-linha { background: #F5F6F3; border: 1.5px solid #E3E5E1; border-radius: 9px; padding: 8px 12px; display: flex; flex-direction: column; }
.pf-mkt-linha span { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; font-weight: 800; color: var(--text-dim); }
.pf-mkt-linha b { font-family: 'IBM Plex Mono', monospace; font-size: 15px; }
.pf-mkt-linha em { font-style: normal; font-size: 11.5px; color: var(--text-dim); }
.pf-mkt-liq { background: var(--ink); border-radius: 9px; padding: 8px 14px; display: flex; flex-direction: column; justify-content: center; }
.pf-mkt-liq span { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; font-weight: 800; color: #C9CDD3; }
.pf-mkt-liq b { font-family: 'IBM Plex Mono', monospace; font-size: 21px; color: #7EE2A2; }
.pf-mkt-liq.neg b { color: #FFB4A8; }
@media (max-width: 1100px) { .pf-mkt-totais { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pf-mkt-liq { grid-column: 1 / -1; } }

/* ===================== PAINEL PRINCIPAL — padrão profissional (25/09/2026) ===================== */
.dp-head p b { color: var(--text); }
.dp-head .head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dp-caixa { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 20px; font-size: 12.5px; font-weight: 800; cursor: pointer; border: 1.5px solid; white-space: nowrap; }
.dp-caixa i { width: 9px; height: 9px; border-radius: 50%; }
.dp-caixa.aberto { background: var(--money-in-tint); color: #1E7A45; border-color: #9CD3AE; } .dp-caixa.aberto i { background: #2FAE59; box-shadow: 0 0 0 3px rgba(47,174,89,.2); }
.dp-caixa.fechado { background: #FDEEEC; color: #A6392E; border-color: #E2A198; } .dp-caixa.fechado i { background: #C0392B; }
.fx-alerta a { color: inherit; font-weight: 800; }
.fx-alerta.dp-al-amarelo { background: #FFF8DC; border-color: #E8C547; color: #6B5300; }
#dp-alertas .fx-alerta { padding: 10px 14px; margin-bottom: 8px; }
.dp-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 4px; }
.dp-kpis .fin-kpi > b { font-size: clamp(14px, 1.35vw, 20px); }
.dp-kpis .fin-kpi > small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-var { display: inline-block; font-size: 11px; font-weight: 800; padding: 0 6px; border-radius: 8px; }
.dp-var.up { background: var(--money-in-tint); color: #1E7A45; } .dp-var.down { background: #FDEEEC; color: #C0392B; }
.dp-var-rot { font-size: 11px; color: var(--text-dim); }
.dp-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 14px; margin-bottom: 14px; }
.dp-grid.tres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dp-grid > .panel, .dp-desemp { margin: 0; min-width: 0; }
.dp-desemp { margin-bottom: 14px; }
.fp-card-head > span, .fp-card-head .dp-link { font-size: 12px; color: var(--text-dim); font-weight: 600; }
.fp-card-head .dp-link { color: #1E7A45; text-decoration: none; } .fp-card-head .dp-link:hover { text-decoration: underline; }
.fp-card-head .fin-seg button { padding: 5px 11px; font-size: 12px; }
.dp-canvas { position: relative; height: 230px; } .dp-canvas.alto { height: 260px; }
.dp-leg { display: inline-flex; align-items: center; gap: 6px; }
.dp-leg i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-left: 6px; }
.dp-leg i.lg-hoje { background: #2FAE59; } .dp-leg i.lg-ontem { height: 0; border-top: 2px dashed #16191D; border-radius: 0; }
.dp-vazio { color: var(--text-dim); font-size: 13px; padding: 18px 4px; text-align: center; }
.dp-vazio.dp-ok { color: #1E7A45; font-weight: 700; background: var(--money-in-tint); border-radius: 8px; }
.dp-mes-linhas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.dp-mes-linhas > div { background: #F4F5F2; border: 1px solid #E3E5E1; border-radius: 8px; padding: 8px 11px; }
.dp-mes-linhas span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-dim); }
.dp-mes-linhas b { font-family: 'IBM Plex Mono', monospace; font-size: 14.5px; }
.dp-desemp-mini { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.dp-desemp-mini > div { background: #F4F5F2; border: 1px solid #E3E5E1; border-left: 4px solid #2A2F36; border-radius: 8px; padding: 7px 11px; min-width: 0; }
.dp-desemp-mini > div:first-child { border-left-color: #2FAE59; }
.dp-desemp-mini span { display: block; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--text-dim); }
.dp-desemp-mini b { font-family: 'IBM Plex Mono', monospace; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.dp-rank { display: flex; flex-direction: column; gap: 9px; }
.dp-rank-l { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.dp-rank-l em { font-style: normal; width: 24px; height: 24px; border-radius: 50%; background: #ECEDEA; color: #3A4048; font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.dp-rank-l:first-child em, .dp-rank-l em.ouro { background: var(--ink); color: #fff; }
.dp-rank-t { min-width: 0; } .dp-rank-t span { display: block; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-bar { height: 7px; background: #ECEEF1; border-radius: 4px; margin-top: 4px; overflow: hidden; }
.dp-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #2FAE59, #248C46); }
.dp-bar.escuro i { background: linear-gradient(90deg, #3A414C, #16191D); }
.dp-rank-v { text-align: right; } .dp-rank-v b { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 13px; } .dp-rank-v small { font-size: 11px; color: var(--text-dim); white-space: nowrap; }
#dp-pag .fp-aging-lista > div { grid-template-columns: 12px 1fr auto 46px; font-size: 13px; }
#dp-pag .fp-aging-lista b { font-size: 12.5px; }
#dp-pag .fp-aging-barra { height: 26px; }
.dp-venda { cursor: pointer; } .dp-venda:hover { background: var(--accent-tint); }
.fp-venc-l.dp-hoje { background: #FFF8DC; box-shadow: inset 3px 0 0 #F2B600; }
.fp-venc-l .d.dp-saldo { font-size: 15px; text-align: center; background: #FFF8DC; border-radius: 6px; color: #8A6400; }
.fp-venc-l .d.dp-saldo.zero { background: #C0392B; color: #fff; }
.dp-repor-top { font-size: 12.5px; color: var(--text-dim); margin-bottom: 8px; } .dp-repor-top b { color: var(--text); }
.dp-mais { font-size: 12px; color: var(--text-dim); text-align: center; margin-top: 6px; }
#dp-ultimas .fp-venc, #dp-agenda .fp-venc, #dp-repor .fp-venc { max-height: 300px; }
@media (max-width: 1370px) { .dp-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .dp-desemp-mini { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1180px) { .dp-grid, .dp-grid.tres { grid-template-columns: 1fr 1fr; } .dp-grid > .panel:first-child:not(:only-child) { grid-column: 1 / -1; } }
@media (max-width: 800px) { .dp-grid, .dp-grid.tres, .dp-kpis { grid-template-columns: 1fr; } .dp-desemp-mini { grid-template-columns: 1fr 1fr; } }
.dp-head { align-items: center; }
.dp-head .head-actions .btn-primary { width: auto; padding: 10px 20px; margin: 0; }
.dp-min { font-size: 11.5px !important; color: var(--text-dim); font-weight: 700; }
@media (min-width: 1100px) { .dp-desemp-mini { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ===================== CAIXA — padrão (25/09/2026) ===================== */
.cx-head .head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cx-head .btn-primary { width: auto; margin: 0; padding: 10px 22px; }
.cx-btn-sup { border-color: #9CD3AE; color: #1E7A45; } .cx-btn-sup:hover:not(:disabled) { background: #2FAE59 !important; border-color: #2FAE59 !important; }
.cx-btn-sang { border-color: #E8B98C; color: #A85D22; } .cx-btn-sang:hover:not(:disabled) { background: #A85D22 !important; border-color: #A85D22 !important; }
.cx-btn-fechar { background: #C0392B; border-color: #C0392B; color: #fff; box-shadow: 0 6px 14px -6px rgba(192,57,43,.7); } .cx-btn-fechar:hover:not(:disabled) { background: #9E2B1F !important; border-color: #9E2B1F !important; }
.cx-btn-mini { padding: 5px 10px; font-size: 12px; }
.cx-gaveta { display: grid; grid-template-columns: minmax(220px, 1fr) 3fr; gap: 0; background: var(--ink); color: #fff; border-radius: 14px; overflow: hidden; margin-bottom: 12px; box-shadow: 0 12px 26px -16px rgba(0,0,0,.7); }
.cx-gaveta-v { padding: 16px 20px; background: linear-gradient(135deg, #2FAE59, #1E7A45); display: flex; flex-direction: column; justify-content: center; }
.cx-gaveta-v span { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; opacity: .9; }
.cx-gaveta-v b { font-family: 'IBM Plex Mono', monospace; font-size: 30px; line-height: 1.15; }
.cx-gaveta-conta { display: flex; align-items: center; gap: 10px; padding: 14px 18px; flex-wrap: wrap; }
.cx-gaveta-conta > div { display: flex; flex-direction: column; min-width: 0; }
.cx-gaveta-conta span { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #AEB4BC; white-space: nowrap; }
.cx-gaveta-conta b { font-family: 'IBM Plex Mono', monospace; font-size: 16px; color: #fff; }
.cx-gaveta-conta .neg b { color: #FFB4A8; }
.cx-gaveta-conta em { font-style: normal; font-weight: 800; font-size: 18px; color: #6B7380; }
.cx-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cx-grid { grid-template-columns: 1fr 1fr; }
.cx-mov-sangria { box-shadow: inset 3px 0 0 #C0392B; } .cx-mov-suprimento, .cx-mov-recebimento { box-shadow: inset 3px 0 0 #2FAE59; }
.cx-hist { margin-bottom: 14px; }
.cx-hist .pv-table-wrap { border: 1.5px solid #D2D4CE; border-radius: 10px; overflow-x: auto; }
.cx-hist .pv-table th.num { text-align: right; }
.pv-table tbody tr.cx-h-ok td:first-child { box-shadow: inset 4px 0 0 #5DBB2A; }
.pv-table tbody tr.cx-h-falta td:first-child { box-shadow: inset 4px 0 0 #E0533F; } .pv-table tbody tr.cx-h-falta td { background: #FFF6F5; }
.pv-table tbody tr.cx-h-sobra td:first-child { box-shadow: inset 4px 0 0 #F2B600; }
.cx-dif { display: inline-block; font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 10px; white-space: nowrap; }
.cx-dif.ok { background: var(--money-in-tint); color: #1E7A45; } .cx-dif.falta { background: #C0392B; color: #fff; } .cx-dif.sobra { background: #FFF0A8; color: #6B5300; }
.cx-fechado { display: flex; align-items: center; gap: 16px; background: #fff; border: 2px dashed #C5CAD1; border-radius: 14px; padding: 22px 24px; margin-bottom: 14px; }
.cx-fechado-ic { font-size: 30px; } .cx-fechado b { font-size: 17px; } .cx-fechado p { margin: 3px 0 0; color: var(--text-dim); font-size: 13.5px; }
@media (max-width: 1370px) { .cx-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .cx-gaveta { grid-template-columns: 1fr; } .cx-grid { grid-template-columns: 1fr; } }
.cx-gaveta.negativo .cx-gaveta-v { background: linear-gradient(135deg, #D9534F, #9E2B1F); }

/* ===================== ESTOQUE — padrão (25/09/2026) ===================== */
.est-head .head-actions, .pc-head .head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.est-head .btn-primary, .pc-head .btn-primary { width: auto; margin: 0; padding: 10px 20px; }
.est-sits { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.est-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.est-sel { padding: 10px 12px; border: 1.5px solid #C5CAD1; border-radius: 8px; background: #fff; font-size: 13.5px; min-width: 190px; }
.est-table td.num, .est-table th.num { text-align: right; }
.est-sub { display: block; font-size: 11.5px; color: var(--text-dim); font-weight: 500; }
.est-btn { padding: 5px 10px; font-size: 12px; margin-left: 4px; }
.est-saldo { display: inline-block; min-width: 34px; text-align: center; font-family: 'IBM Plex Mono', monospace; font-weight: 800; font-size: 14px; padding: 2px 8px; border-radius: 7px; background: #ECEDEA; }
.est-saldo.est-s-ok { background: var(--money-in-tint); color: #1E7A45; }
.est-saldo.est-s-baixo { background: #FFF0A8; color: #6B5300; }
.est-saldo.est-s-zerado { background: #C0392B; color: #fff; }
.est-saldo.est-s-pai { background: var(--ink); color: #fff; }
.pv-table tbody tr.est-row.est-ok td:first-child { box-shadow: inset 4px 0 0 #5DBB2A; }
.pv-table tbody tr.est-row.est-baixo td:first-child { box-shadow: inset 4px 0 0 #F2B600; }
.pv-table tbody tr.est-row.est-zerado td:first-child { box-shadow: inset 4px 0 0 #E0533F; }
.pv-table tbody tr.est-row.est-zerado td { background: #FFF8F7; }
tr.est-pai { cursor: pointer; }
tr.est-pai td { background: #F1F2EF; border-bottom: 1px solid #DCDEDA; font-weight: 700; }
tr.est-pai:hover td { background: #E6E8E3; }
tr.est-pai.aberto td { background: #E4E6E1; border-bottom: 1.5px solid #C5CAD1; }
tr.est-pai td:first-child { box-shadow: inset 4px 0 0 var(--ink); }
.est-seta { display: inline-block; width: 18px; color: var(--text-dim); }
tr.est-filha td:first-child { padding-left: 34px; }
.est-var { font-weight: 700; }
.est-table tfoot tr.pv-rodape td { font-family: 'IBM Plex Mono', monospace; }
.est-table tfoot tr.pv-rodape td:first-child { font-family: inherit; }
@media (max-width: 1370px) { .est-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .est-table th:nth-child(3), .est-table td:nth-child(3) { display: none; } }
@media (max-width: 900px) { .est-sits { grid-template-columns: repeat(2, minmax(0, 1fr)); } .est-kpis { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .est-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; } }

/* ===================== COMPRAS — padrão (25/09/2026) ===================== */
.pc-sits { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.pc-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pc-table td.num, .pc-table th.num { text-align: right; }
.pc-table tbody tr.pv-row[data-sit="em_andamento"] td:first-child { box-shadow: inset 4px 0 0 #3B82F6; }
.pc-tag { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 5px; white-space: nowrap; margin: 1px 0; }
.pc-tag.ok { background: var(--money-in-tint); color: #1E7A45; } .pc-tag.pend { background: #EDE7FF; color: #5534A8; } .pc-tag.cinza { background: #F7E3F0; color: #9A2F6E; }
.pc-btn-lancar { background: #2FAE59; border-color: #2FAE59; color: #fff; }
@media (max-width: 1370px) { .pc-sits { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 800px) { .pc-sits, .pc-kpis { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1101px) { .pc-sits { grid-template-columns: repeat(7, minmax(0, 1fr)) !important; } }
.pv-table .pill { white-space: nowrap; }

/* ===================== COMISSÕES — padrão (25/09/2026) ===================== */
.com-head .head-actions { display: flex; gap: 8px; align-items: center; }
.com-mes { display: inline-flex; align-items: center; background: var(--ink); border-radius: 11px; padding: 4px; gap: 4px; }
.com-mes button { background: transparent; border: none; color: #C9CDD3; font-size: 18px; font-weight: 800; width: 34px; height: 32px; border-radius: 8px; cursor: pointer; }
.com-mes button:hover { background: var(--accent); color: #fff; }
.com-mes strong { color: #fff; min-width: 150px; text-align: center; font-size: 14.5px; }
.com-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.com-chk { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-dim); }
.com-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; margin-bottom: 14px; }
.com-card { background: #fff; border: 1.5px solid #D2D4CE; border-top: 5px solid var(--accent); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 2px 8px -4px rgba(22,25,29,.14); }
.com-card.quitado { border-top-color: #9AA3AE; }
.com-card-top { display: flex; align-items: center; gap: 10px; }
.com-card-top .avatar { width: 38px; height: 38px; font-size: 13px; flex-shrink: 0; }
.com-card-nome { flex: 1; min-width: 0; } .com-card-nome b { display: block; font-size: 15px; } .com-card-nome small { font-size: 11.5px; color: var(--text-dim); }
.com-top { font-size: 11px; font-weight: 800; background: #FFF0A8; color: #6B5300; padding: 3px 8px; border-radius: 10px; white-space: nowrap; }
.com-card-fat span, .com-card-linhas span { display: block; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--text-dim); }
.com-card-fat b { font-family: 'IBM Plex Mono', monospace; font-size: 18px; }
.com-card-linhas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.com-card-linhas > div { background: #F4F5F2; border: 1px solid #E3E5E1; border-radius: 8px; padding: 6px 10px; }
.com-card-linhas b { font-family: 'IBM Plex Mono', monospace; font-size: 14px; }
.com-card-saldo { display: flex; justify-content: space-between; align-items: center; background: var(--ink); color: #fff; border-radius: 9px; padding: 9px 12px; }
.com-card-saldo span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #C9CDD3; }
.com-card-saldo b { font-family: 'IBM Plex Mono', monospace; font-size: 19px; color: #7EE2A2; }
.com-card.quitado .com-card-saldo { background: #ECEDEA; color: var(--text); } .com-card.quitado .com-card-saldo span { color: var(--text-dim); } .com-card.quitado .com-card-saldo b { color: var(--text); }
.com-card-acoes { display: flex; gap: 8px; } .com-card-acoes .pv-btn { flex: 1; justify-content: center; }
.com-table td.num, .com-table th.num { text-align: right; white-space: nowrap; }
.com-table tbody tr.com-row td:first-child { box-shadow: inset 4px 0 0 var(--accent); }
.com-nome { font-weight: 800; font-size: 14px; }
.com-saldo { font-family: 'IBM Plex Mono', monospace; font-weight: 800; background: var(--money-in-tint); color: #1E7A45; padding: 3px 9px; border-radius: 7px; }
.com-saldo.zero { background: #ECEDEA; color: var(--text-dim); } .com-saldo.neg { background: #FDEEEC; color: #C0392B; }
@media (max-width: 1370px) { .com-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .com-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; } }
.com-table thead th { white-space: normal; line-height: 1.2; font-size: 10.5px; padding: 8px 8px; }
.com-table td { padding: 9px 8px; font-size: 13px; }
.com-table tfoot tr.pv-rodape td.num { font-size: 13px; padding: 10px 8px; }
.com-nome { text-align: left; white-space: nowrap; padding: 0; }
.com-saldo { white-space: nowrap; font-size: 12.5px; }

/* ===================== CONFIGURAÇÕES — menu lateral (25/09/2026) ===================== */
.cfg-layout { display: grid; grid-template-columns: 238px minmax(0, 1fr); gap: 16px; align-items: start; }
.cfg-menu { position: sticky; top: 12px; background: var(--ink); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 12px 26px -16px rgba(0,0,0,.7); max-height: calc(100vh - 24px); overflow-y: auto; }
.cfg-menu-g { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: #7F8793; padding: 12px 10px 4px; }
.cfg-menu-g:first-child { padding-top: 4px; }
.cfg-menu .cfg-tab { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; background: transparent !important; border: none !important; color: #C9CDD3 !important; font-weight: 600; font-size: 13px; padding: 8px 10px; border-radius: 8px; box-shadow: none !important; cursor: pointer; white-space: normal; line-height: 1.25; }
.cfg-menu .cfg-tab:hover { background: rgba(255,255,255,.08) !important; color: #fff !important; }
.cfg-menu .cfg-tab.active { background: var(--accent) !important; color: #fff !important; box-shadow: 0 4px 12px -4px rgba(47,174,89,.6) !important; }
.cfg-ic { width: 20px; text-align: center; font-size: 14px; flex-shrink: 0; }
.cfg-area { min-width: 0; }
.cfg-area-titulo { display: flex; flex-direction: column; margin: 0 0 12px; padding: 12px 16px; background: #fff; border: 1.5px solid #D2D4CE; border-left: 5px solid var(--accent); border-radius: 10px; }
.cfg-area-titulo span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); }
.cfg-area-titulo b { font-size: 18px; }
.cfg-area #cfg-content > .panel:first-child, .cfg-area #cfg-content > form:first-child { margin-top: 0; }
@media (max-width: 900px) { .cfg-layout { grid-template-columns: 1fr; } .cfg-menu { position: static; flex-direction: row; flex-wrap: wrap; max-height: none; } .cfg-menu-g { width: 100%; } .cfg-menu .cfg-tab { width: auto; } }

/* ===================== TABELAS E TELAS GERAIS no padrão (25/09/2026) =====================
   Vale para as telas que ainda usam a tabela simples (Orçamentos, Devoluções, Depósitos,
   Balanço, abas de Configurações...): cabeçalho cinza forte, linhas mais legíveis, ações em botão. */
#main .panel > table thead th, #main .panel > div > table thead th { background: #E9EBE7; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; font-weight: 800; color: #3A4048; border-bottom: 1.5px solid #D2D4CE; white-space: nowrap; }
#main .panel > table tbody td { font-size: 13.5px; }
#main .panel > table tbody tr:hover td { background: #F6F7F4; }
#main .panel:has(> table) { border: 1.5px solid #D2D4CE; border-radius: 10px; overflow-x: auto; }
#main .panel > table .row-actions .btn-link { display: inline-flex; align-items: center; padding: 4px 10px; border: 1.5px solid #C5CAD1; border-radius: 8px; background: #fff; color: var(--text); font-weight: 700; font-size: 12px; text-decoration: none; margin: 1px 2px; }
#main .panel > table .row-actions .btn-link:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.section-h3 { font-size: 15px; margin: 18px 0 10px; padding-left: 10px; border-left: 4px solid var(--accent); }
#main .page-head .btn-solid, #main .page-head > .btn-primary { box-shadow: 0 6px 16px -6px rgba(47,174,89,.6); font-weight: 800; padding: 10px 18px; }
.pes-head .head-actions .btn-primary { width: auto; margin: 0; padding: 10px 20px; }
.pes-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pes-nome { display: flex; align-items: center; gap: 10px; } .pes-nome .avatar { width: 30px; height: 30px; font-size: 11px; flex-shrink: 0; }
.pes-niver { font-size: 11px; font-weight: 800; background: #FFF0A8; color: #6B5300; padding: 1px 6px; border-radius: 8px; }
.pv-table tbody tr.pes-row td:first-child { box-shadow: inset 4px 0 0 var(--accent); }
.pv-table tbody tr.pes-row.pv-cancelado td:first-child { box-shadow: inset 4px 0 0 #9AA3AE; }
@media (max-width: 1100px) { .pes-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* abas de módulo em faixa escura (mesmo estilo do Financeiro) */
.toolbar.mod-tabs { background: var(--ink); padding: 6px; border-radius: 12px; display: inline-flex; gap: 4px; margin-bottom: 18px; }
.toolbar.mod-tabs .btn { background: transparent !important; border: none !important; color: #C9CDD3 !important; font-weight: 600; box-shadow: none !important; }
.toolbar.mod-tabs .btn:hover { background: rgba(255,255,255,.08) !important; color: #fff !important; }
.toolbar.mod-tabs .btn.active { background: var(--accent) !important; color: #fff !important; box-shadow: 0 4px 12px -4px rgba(47,174,89,.6) !important; }

/* ===================== BUSCA APURADA — PDV e Produtos (25/09/2026) ===================== */
#main mark { background: #FFE58A; color: inherit; padding: 0 1px; border-radius: 2px; }
.pdv-res-head { font-size: 12px; color: var(--text-dim); margin: -4px 0 6px 2px; } .pdv-res-head b { color: var(--text); }

/* ===================== BALANÇO — lista em cartões (cabe no celular em pé) (25/09/2026) ===================== */
.bal-head .head-actions { display: flex; gap: 8px; } .bal-head .btn-primary { width: auto; margin: 0; padding: 10px 20px; }
.bal-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bal-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.bal-card { background: #fff; border: 1.5px solid #D2D4CE; border-top: 5px solid #9AA3AE; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; box-shadow: 0 2px 8px -4px rgba(22,25,29,.14); min-width: 0; }
.bal-card.st-aberto { border-top-color: #F2B600; } .bal-card.st-conferencia { border-top-color: #3B82F6; } .bal-card.st-fechado { border-top-color: #5DBB2A; }
.bal-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; } .bal-card-top b { font-size: 15.5px; overflow-wrap: anywhere; }
.bal-card-info { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--text-dim); }
.bal-card-btn { width: 100%; padding: 13px; border-radius: 10px; border: none; background: var(--accent); color: #fff; font-weight: 800; font-size: 15px; cursor: pointer; box-shadow: 0 6px 16px -6px rgba(47,174,89,.6); }
.bal-card-btn.ver { background: var(--ink); box-shadow: none; }
@media (max-width: 900px) {
  .bal-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .bal-kpis .fin-kpi { padding: 8px 9px; } .bal-kpis .fin-kpi small { display: none; }
  .bal-lista { grid-template-columns: 1fr; }
  .bal-head .head-actions, .bal-head .btn-primary { width: 100%; }
}
/* Balanço no celular em pé: tabela da contagem sem rolar para o lado */
@media (max-width: 700px) {
  table.bal-itens th:nth-child(3), table.bal-itens td:nth-child(3) { display: none; }
  table.bal-itens th, table.bal-itens td { padding: 8px 7px; font-size: 12.5px; white-space: normal; }
  table.bal-itens th { font-size: 10px !important; letter-spacing: .02em !important; white-space: normal !important; }
  table.bal-scans th:nth-child(4), table.bal-scans td:nth-child(4), table.bal-scans th:nth-child(5), table.bal-scans td:nth-child(5) { display: none; }
  table.bal-scans th, table.bal-scans td { padding: 8px 7px; font-size: 12.5px; }
}
@media (max-width: 700px) {
  table.bal-itens { width: 100%; table-layout: auto; }
  table.bal-itens td, table.bal-itens th, table.bal-scans td { white-space: normal !important; min-width: 0 !important; word-break: normal; overflow-wrap: anywhere; }
  table.bal-itens td:first-child { max-width: 150px; }
}
@media (max-width: 700px) { #main .panel table.bal-itens, #main .panel table.bal-scans { min-width: 0 !important; } }

/* ===================== MAQUININHAS — taxas por parcela (25/09/2026) ===================== */
.aq-novo { width: auto !important; margin: 0 !important; padding: 10px 20px; }
.aq-lista { display: flex; flex-direction: column; gap: 12px; }
.aq-card { background: #fff; border: 1.5px solid #D2D4CE; border-left: 5px solid var(--accent); border-radius: 12px; padding: 14px 16px; box-shadow: 0 2px 8px -4px rgba(22,25,29,.14); }
.aq-card.inativa { border-left-color: #9AA3AE; opacity: .75; }
.aq-card-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.aq-card-nome { flex: 1; min-width: 220px; } .aq-card-nome b { display: block; font-size: 16px; } .aq-card-nome small { font-size: 12px; color: var(--text-dim); }
.aq-taxas { display: flex; flex-wrap: wrap; gap: 6px; }
.aq-tx { display: flex; flex-direction: column; align-items: center; min-width: 64px; padding: 6px 9px; border-radius: 8px; background: #F4F5F2; border: 1px solid #E3E5E1; }
.aq-tx span { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--text-dim); white-space: nowrap; }
.aq-tx b { font-family: 'IBM Plex Mono', monospace; font-size: 13.5px; }
.aq-tx.pix { background: #E4F7EA; border-color: #9CD3AE; } .aq-tx.deb { background: #DCEBFF; border-color: #A9C8F0; }
.aq-grade-wrap { border: 1.5px solid #D2D4CE; border-radius: 10px; overflow: auto; max-height: 52vh; background: #fff; }
.aq-grade { width: 100%; border-collapse: collapse; }
.aq-grade thead th { position: sticky; top: 0; background: #E9EBE7; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; font-weight: 800; color: #3A4048; padding: 8px 10px; text-align: left; z-index: 1; }
.aq-grade th.num, .aq-grade td.num { text-align: right; }
.aq-grade td { padding: 5px 10px; border-bottom: 1px solid #ECEDEA; font-size: 13.5px; }
.aq-grade tr.aq-l-pix td:first-child { box-shadow: inset 4px 0 0 #2FAE59; } .aq-grade tr.aq-l-debito td:first-child { box-shadow: inset 4px 0 0 #3B82F6; } .aq-grade tr.aq-l-credito td:first-child { box-shadow: inset 4px 0 0 #16191D; }
.aq-in { width: 96px; text-align: right; padding: 6px 8px; font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-size: 14px; background: var(--chave-bg, #FFF7DD) !important; border: 1.5px solid var(--chave-borda, #D9A21B) !important; border-radius: 7px; }
.aq-in.aq-in-fixo { background: #fff !important; border-color: #C5CAD1 !important; font-weight: 500; width: 84px; }
.aq-liq { font-family: 'IBM Plex Mono', monospace; color: #1E7A45; font-weight: 700; }
.aq-del { border: 1.5px solid #E2A198; background: #FDEEEC; color: #C0392B; border-radius: 7px; width: 30px; height: 28px; font-weight: 800; cursor: pointer; }
.aq-del:hover { background: #C0392B; color: #fff; }
.aq-add { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.aq-add-n { width: 90px; padding: 8px 10px; border: 1.5px solid #C5CAD1; border-radius: 8px; }
.pmf-parcelas { font-weight: 700; }

/* =========================================================
   SEGURANÇA FASE 2 — login com 2 etapas e anti-robô (25/09/2026)
   ========================================================= */
#login-captcha.anti-robo { margin: 2px 0 14px; }
.anti-robo { min-height: 65px; }
.anti-robo-erro { display: block; font-size: 12px; color: #DE9280; line-height: 1.4; }
#auth-captcha.anti-robo { margin: 4px 0 8px; }
.login-card .mfa-txt { font-size: 13.5px; color: #C9CDD3; line-height: 1.5; margin: 0 0 14px; }
.login-card .mfa-txt b { color: #F4F3EE; }
.login-card .mfa-passos { margin: 0 0 14px; padding-left: 18px; font-size: 13px; color: #C9CDD3; line-height: 1.55; }
.login-card .mfa-passos b { color: #F4F3EE; }
.login-card .mfa-qr { background: #fff; border-radius: 8px; padding: 10px; width: 196px; height: 196px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; }
.login-card .mfa-qr img { width: 176px; height: 176px; display: block; }
.login-card .mfa-chave { font-size: 12px; color: #9AA1AB; margin: 0 0 14px; }
.login-card .mfa-chave summary { cursor: pointer; }
.login-card .mfa-chave code { display: block; margin-top: 8px; padding: 8px 10px; background: var(--ink); border: 1px solid var(--ink-3); border-radius: 4px; color: #F4F3EE; font-size: 13px; letter-spacing: .5px; word-break: break-all; user-select: all; }
.login-card input.mfa-code { font-size: 26px !important; letter-spacing: 10px; text-align: center; font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 700; padding: 10px 8px !important; }
.login-card .mfa-link { display: block; width: 100%; margin-top: 10px; background: none; border: 0; color: #9AA1AB; font-size: 12.5px; text-decoration: underline; cursor: pointer; padding: 6px; }
.login-card .mfa-link:hover { color: #F4F3EE; }
.login-card .mfa-ajuda { font-size: 11.5px; color: #7D858F; line-height: 1.45; margin: 10px 0 0; }

/* =========================================================
   ETIQUETAS — editor compacto (25/09/2026): Campos | prévia pequena | opções, SEMPRE lado a lado
   (a prévia cabe em até 300×360px — ver etScale em etiquetas.js)
   ========================================================= */
#main .et-editor-grid { display: grid; grid-template-columns: 170px auto minmax(240px, 1fr); gap: 18px; align-items: start; }
#main .et-editor-grid > * { min-width: 0; }
#main .et-editor-grid > .panel:first-child { max-height: 560px !important; }
#main .et-editor-grid .form-row { max-width: 260px !important; }
@media (max-width: 900px) {
  #main .et-editor-grid { grid-template-columns: 150px minmax(0, 1fr); }
  #main .et-editor-grid > :nth-child(3) { grid-column: 1 / -1; }
}

/* ===== Notas fiscais (NF-e) — 26/09/2026 ===== */
.pv-sits.nf-sits { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .pv-sits.nf-sits { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .pv-sits.nf-sits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nf-homolog { border-left: 5px solid #F2B600; background: #FFF8DC; }
.nf-table td { vertical-align: top; }
.nf-chave { font-size: 10.5px; letter-spacing: .02em; white-space: nowrap; }
.nf-erro { max-width: 300px; color: var(--danger) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nf-fin { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 700; background: #ECECEC; color: #444; white-space: nowrap; }
.nf-fin-1 { background: #DCEBFF; color: #1D4F91; } .nf-fin-2 { background: #E6E0FA; color: #5534A8; }
.nf-fin-3 { background: #FFF2C2; color: #8A6400; } .nf-fin-4 { background: #FBE0DC; color: #A02D20; }
.pe-bar .nf-fin { margin-right: 6px; }
.ped-menu button.perigo { color: var(--danger); font-weight: 700; }
.ped-menu button.perigo:hover { background: var(--danger-tint); color: var(--danger); }
.nf-inline { display: flex; gap: 6px; align-items: center; }
.nf-inline select { flex: 1; min-width: 0; }
.btn.nf-mini { padding: 6px 10px; font-size: 12.5px; white-space: nowrap; }
.nf-apagado { opacity: .45; }
.nf-ref { padding: 9px 12px; background: #F1F2EF; border-radius: 8px; font-size: 13px; }
.nf-ref b { font-family: 'IBM Plex Mono', monospace; font-size: 12px; }
.nf-dest { display: flex; flex-wrap: wrap; gap: 10px; background: #F4F5F2; border: 1.5px solid #D2D4CE; border-left: 5px solid #5DBB2A; border-radius: 10px; padding: 10px 12px; }
.nf-dest > div { flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 1px; }
.nf-dest span { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--text-dim); }
.nf-dest b { font-size: 13.5px; } .nf-dest small { font-size: 11.5px; color: var(--text-dim); }
.nf-dest.nf-dest-falta { border-left-color: #E0533F; }
.pe-btn.pf-btn-nfe { background: #1D4F91; border-color: #1D4F91; color: #fff; }
.pe-btn.pf-btn-nfe:hover { filter: brightness(1.1); }
#na-obs { width: 100%; }
.nf-dev-alerta { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
/* fluxo conferir → salvar → enviar (27/09/2026) */
.nf-fluxo { border-left: 5px solid #1D4F91; background: #EEF4FC; margin-bottom: 12px; }
.nf-enviar { margin-left: 6px; padding: 3px 10px; font-size: 12px; }
.nf-row.nf-destaque { animation: nfDestaque 2.4s ease-out 1; }
@keyframes nfDestaque { 0% { background: #FFF3C4; } 100% { background: transparent; } }
.flag.flag-n.flag-off { color: #C0392B; box-shadow: inset 0 0 0 1.5px #C0392B; }
.pf-parcelas select { min-width: 150px; }
/* menu de ações do pedido (27/09/2026) */
.ped-menu.ped-menu-acoes { max-height: 82vh; overflow-y: auto; min-width: 240px; }
.ped-menu .ped-menu-tit { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted, #6b7280); padding: 6px 12px 2px; }
.ped-menu .ped-menu-sep { border-top: 1px solid var(--line); margin: 4px 2px; }
.ped-menu.ped-menu-acoes button { padding: 7px 12px; }

/* ===== Entrada de NF-e pelo XML (27/09/2026) ===== */
.ent-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 38px 20px; border: 2px dashed var(--line); border-radius: 10px; cursor: pointer; text-align: center; color: var(--muted, #666); transition: .15s; margin-bottom: 16px; }
.ent-drop b { color: var(--ink, #222); font-size: 16px; }
.ent-drop:hover, .ent-drop.sobre { border-color: var(--accent-2); background: var(--accent-tint); }
.ent-drop-ico { font-size: 36px; line-height: 1; }
.ent-totais { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ent-totais > div { background: var(--bg, #f6f6f6); border: 1px solid var(--line); border-radius: 6px; padding: 7px 12px; min-width: 110px; }
.ent-totais span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #777); }
.ent-totais b { font-size: 15px; }
.ent-totais > div:last-child { border-color: var(--accent-2); }
.ent-itens td { vertical-align: top; }
.ent-itens input[type=number] { padding: 5px 6px; }
.ent-destino { min-width: 290px; }
.ent-vinc { font-size: 13px; padding: 5px 8px; border-radius: 5px; margin-bottom: 6px; }
.ent-vinc small { display: block; color: var(--muted, #777); font-size: 11px; }
.ent-vinc.ok { background: #E6F6DA; color: #2E6B12; }
.ent-vinc.novo { background: #E3F0FC; color: #0F5AA8; }
.ent-vinc.ign { background: #F1F1F1; color: #888; }
.ent-acoes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ent-acoes select { max-width: 230px; padding: 5px 6px; font-size: 12px; }
.ent-grade { display: flex; gap: 4px; }
.ent-grade input { width: 110px; padding: 5px 6px; font-size: 12px; }
tr.ent-it-ignorar td { opacity: .55; }
.ent-grupo { border: 1px solid var(--line); border-left: 4px solid #0F5AA8; border-radius: 6px; padding: 12px 14px; margin-bottom: 12px; }
.ent-grade-resumo { font-size: 13px; color: var(--muted, #666); margin-top: 4px; }
.ent-busca-res { display: flex; flex-direction: column; gap: 4px; max-height: 55vh; overflow: auto; margin-top: 10px; }
.ent-busca-it { display: flex; gap: 10px; align-items: baseline; text-align: left; background: none; border: 1px solid var(--line); border-radius: 5px; padding: 8px 10px; cursor: pointer; font-size: 13px; }
.ent-busca-it:hover { background: var(--accent-tint); border-color: var(--accent-2); }
.ped-menu button.perigo { color: var(--danger, #c0392b); }
@media (max-width: 700px) { .ent-destino { min-width: 220px; } .ent-grade input { width: 80px; } }
/* ===== E-mail fiscal (27/09/2026) ===== */
.fiscal-mail-hist { margin-top: 10px; }
.fiscal-mail-hist .variant-table td { vertical-align: top; font-size: 12.5px; }

/* ===== PDV sem internet (27/09/2026) ===== */
/* mesmo visual do "Caixa aberto" (.cash-bar.open): fundo escuro translúcido, texto claro */
.off-selo { display: inline-flex; align-items: center; gap: 9px; border: none; background: rgba(47,174,89,.16); border-radius: 20px; padding: 7px 14px; font-size: 12.5px; font-weight: 700; cursor: pointer; color: #9FE0B8; font-family: inherit; }
.off-selo:hover { background: rgba(47,174,89,.24); }
.off-selo i { width: 8px; height: 8px; border-radius: 50%; background: var(--money-in, #2FAE59); box-shadow: 0 0 0 3px rgba(47,174,89,.3); display: inline-block; }
.off-selo.off { background: rgba(224,83,63,.22); color: #FFB4A8; animation: off-pulsa 1.6s ease-in-out infinite; }
.off-selo.off i { background: #E0533F; box-shadow: 0 0 0 3px rgba(224,83,63,.35); }
.off-selo.fila:not(.off) { background: rgba(232,163,61,.2); color: #F5CE8A; }
.off-selo.fila:not(.off) i { background: #E8A33D; box-shadow: 0 0 0 3px rgba(232,163,61,.3); }
@keyframes off-pulsa { 50% { box-shadow: 0 0 0 4px rgba(224, 83, 63, .18); } }
body.modo-offline .cash-chip .dot { background: #E0533F !important; }
.off-status { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.off-status > div { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.off-status span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #777); }
.off-status b { display: block; font-size: 15px; margin: 3px 0; }
.off-status small { color: var(--muted, #777); font-size: 11.5px; }
.off-status .ok { color: #2E6B12; } .off-status .ruim { color: #B42318; }
.off-log { max-height: 220px; overflow: auto; font-size: 12px; margin-top: 6px; }
.off-log span { color: var(--muted, #888); margin-right: 6px; font-family: 'IBM Plex Mono', monospace; }
.off-tela { max-width: 520px; margin: 60px auto; text-align: center; padding: 30px 24px; }
.off-tela-ico { font-size: 42px; }
.off-passos { margin: 8px 0 12px 18px; line-height: 1.7; }
.off-passos code, .off-pre { background: var(--bg, #f4f4f4); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; font-size: 12px; }
.off-pre { display: block; white-space: pre-wrap; max-height: 260px; overflow: auto; padding: 8px; }
.fx-ok { background: #E6F6DA; color: #2E6B12; border: 1px solid #b9e3a0; border-radius: 6px; padding: 9px 12px; margin: 8px 0; font-size: 13.5px; }

/* ---- Entregas (27/09/2026) ---- */
.en-resumo { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 14px; }
.en-card { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.en-card-nome { font-weight: 700; font-size: 14.5px; margin-bottom: 4px; }
.en-card-l { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--text-dim); }
.en-card-l.tot { color: var(--text); font-weight: 700; font-size: 14px; border-top: 1px dashed var(--line); padding-top: 6px; margin-top: 2px; }
.en-card .btn { margin-top: 8px; }
.en-vazio { color: var(--text-dim); font-size: 13px; justify-content: center; }
.en-acerto-tot { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); font-size: 13px; }
.en-acerto-tot .tot { font-weight: 700; font-size: 16px; margin-top: 4px; }
/* PDV: entrega no carrinho e no formulário */
.pdv-entrega-chip { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 8px 0; padding: 9px 11px; border: 1px dashed var(--accent, #2F6FEB); border-radius: 6px; cursor: pointer; font-size: 13px; background: color-mix(in srgb, var(--accent, #2F6FEB) 6%, transparent); }
.pe-pag { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.pe-pag-b { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); cursor: pointer; font-family: inherit; text-align: left; color: var(--text); }
.pe-pag-b span { font-size: 11.5px; color: var(--text-dim); }
.pe-pag-b.on { border-color: var(--accent, #2F6FEB); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent, #2F6FEB) 25%, transparent); background: color-mix(in srgb, var(--accent, #2F6FEB) 7%, var(--surface)); }
@media (max-width: 640px) { .pe-pag { grid-template-columns: 1fr; } }
.en-acerto-tot > div { display: flex; justify-content: space-between; gap: 12px; }
.en-card-l b { white-space: nowrap; }
#en-corpo .variant-table input:not([type=checkbox]), #en-corpo .variant-table select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 5px; font: inherit; font-size: 13px; }
#en-corpo .variant-table input[data-f="name"] { min-width: 150px; width: 100%; }
.en-cad { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 1100px; }
.en-cad > .panel { overflow-x: auto; }
.pf-sec-ent .promo-check { margin-bottom: 12px; }
/* ---- Espaço usado no Supabase (Configurações → Backup) 27/09/2026 ---- */
.bk-esp { margin-bottom: 14px; }
.bk-esp-l { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; margin-bottom: 5px; flex-wrap: wrap; }
.bk-esp-l span { color: var(--text-dim); }
.bk-esp-bar { height: 12px; border-radius: 6px; background: #E6E7E3; border: 1px solid #C5CAD1; overflow: hidden; }
.bk-esp-bar i { display: block; height: 100%; border-radius: 6px; }
.bk-esp-bar i.ok { background: var(--money-in, #2FAE59); } .bk-esp-bar i.warn { background: #E8A33D; } .bk-esp-bar i.bad { background: #E0533F; }
.dp-caixa.atencao { background: #FFF8DC; color: #6B5300; border-color: #E8C547; } .dp-caixa.atencao i { background: #E8A33D; }
.dp-bk small { font-weight: 600; opacity: .8; }
/* ---- PDV: Pix — onde foi recebido (27/09/2026) ---- */
.pix-dest-lbl { display: block; font-weight: 700; font-size: 13px; margin: 6px 0 6px; }
.pix-dest { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.pix-dest-b { position: relative; display: grid; grid-template-columns: 26px 1fr; column-gap: 6px; align-items: center; text-align: left; padding: 10px 12px; border: 1.5px solid #C5CAD1; border-radius: 8px; background: #fff; cursor: pointer; font-family: inherit; color: var(--text); }
.pix-dest-b span { grid-row: span 2; font-size: 18px; }
.pix-dest-b b { font-size: 13px; } .pix-dest-b small { font-size: 11.5px; color: var(--text-dim); }
.pix-dest-b kbd { position: absolute; top: 6px; right: 8px; font-size: 10.5px; color: var(--text-dim); }
.pix-dest-b.on { border-color: #1E2328; background: #1E2328; color: #fff; } .pix-dest-b.on small, .pix-dest-b.on kbd { color: #C9CED4; }
.pix-qr-det { margin-top: 10px; font-size: 12.5px; } .pix-qr-det summary { cursor: pointer; color: var(--text-dim); }
/* Configurações → PDV: caixinhas de formas de pagamento / destinos do Pix (27/09/2026) */
.cfg-checks { display: flex; flex-direction: column; gap: 8px; }
.cfg-checks .promo-check { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pdv-cred-hint { margin: 8px 0 0; }
/* Pix: onde pode ser recebido — lista com editar/excluir (27/09/2026) */
.pixd-lista { display: flex; flex-direction: column; gap: 6px; }
.pixd-l { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.pixd-l.sem { background: #FFF8DC; border-color: #E8C547; }
.pixd-l .promo-check { display: flex; align-items: center; gap: 8px; margin: 0; }
.pixd-l .promo-check span { display: flex; flex-direction: column; } .pixd-l small { font-size: 11.5px; color: var(--text-dim); font-weight: 500; }
.pixd-acoes { display: flex; gap: 6px; flex-shrink: 0; } .pixd-exc { color: #A6392E; }
.pixd-novos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.fin-parcial-aviso { margin: -4px 0 10px; padding: 8px 12px; border-radius: 8px; background: #FFF8DC; border: 1px solid #E8C547; color: #6B5300; font-size: 13px; }
.pixd-nfce { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; white-space: nowrap; margin-left: auto; padding: 4px 8px; border-radius: 6px; background: #EEF1F4; cursor: pointer; }

/* ================= ASSISTENTE DE IA (28/09/2026) — painel do PDV + Configurações ================= */
.ag-top-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: #fff; border: none; border-radius: 8px; padding: 7px 13px; font-weight: 700; font-size: 13.5px; cursor: pointer; box-shadow: 0 2px 0 var(--accent-2); }
.ag-top-btn:hover { background: var(--accent-2); }
.ag-top-btn kbd { background: rgba(255,255,255,.22); border-radius: 4px; padding: 0 5px; font-size: 11px; font-family: 'IBM Plex Mono', monospace; }
#ag-painel { position: fixed; right: 16px; bottom: 84px; width: min(400px, calc(100vw - 32px)); max-height: min(70vh, 620px); display: none; flex-direction: column; background: #fff; border: 2px solid var(--ink); border-radius: 14px; box-shadow: 0 24px 60px -12px rgba(0,0,0,.45); z-index: 900; overflow: hidden; }
#ag-painel.aberto { display: flex; }
.ag-head { display: flex; align-items: center; gap: 6px; background: var(--ink); color: #fff; padding: 10px 12px; }
.ag-titulo { font-weight: 700; font-size: 14.5px; }
.ag-prov { font-size: 11px; background: var(--ink-3); color: #B7BBC2; padding: 2px 8px; border-radius: 10px; margin-right: auto; }
.ag-hbtn { background: transparent; border: none; color: #D6D9DE; font-size: 16px; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.ag-hbtn:hover { background: var(--ink-3); color: #fff; }
.ag-msgs { flex: 1; overflow-y: auto; padding: 12px; background: #E6E7E3; display: flex; flex-direction: column; gap: 8px; min-height: 160px; }
.ag-m { max-width: 88%; padding: 9px 12px; border-radius: 12px; font-size: 14.5px; line-height: 1.4; white-space: pre-wrap; }
.ag-eu { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.ag-ia { align-self: flex-start; background: #fff; border: 1.5px solid #D2D4CE; border-bottom-left-radius: 4px; font-weight: 500; }
.ag-acao { align-self: flex-start; font-size: 12.5px; font-weight: 600; background: var(--accent-tint); color: #1E7A45; border: 1px solid #B9E3C7; padding: 4px 10px; border-radius: 8px; }
.ag-acao.erro { background: #FDEEEC; color: #8E2A20; border-color: #E2A198; }
.ag-vazio { color: var(--text-dim); font-size: 13px; line-height: 1.7; background: #fff; border: 1.5px dashed #C5CAD1; border-radius: 10px; padding: 10px 12px; }
.ag-pensando { align-self: flex-start; display: flex; gap: 4px; padding: 10px 12px; background: #fff; border-radius: 12px; }
.ag-pensando span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-faint); animation: ag-pulo 1s infinite; }
.ag-pensando span:nth-child(2) { animation-delay: .15s; } .ag-pensando span:nth-child(3) { animation-delay: .3s; }
@keyframes ag-pulo { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.ag-ouvindo { font-size: 13px; color: #8A6400; background: var(--chave-bg, #FFF7DD); padding: 0 12px; font-weight: 600; }
.ag-ouvindo:not(:empty) { padding: 7px 12px; border-top: 1px solid #EAD9A6; }
.ag-rodape { display: flex; gap: 8px; align-items: center; padding: 10px; border-top: 1.5px solid #D2D4CE; background: #fff; }
.ag-rodape input { flex: 1; min-height: 42px; border: 1.5px solid var(--campo-borda); border-radius: 8px; padding: 0 10px; font-size: 14px; }
.ag-mic { width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; border: none; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 3px 0 var(--accent-2); }
.ag-mic:hover { background: var(--accent-2); }
.ag-mic:disabled { background: #C5CAD1; box-shadow: none; cursor: not-allowed; }
.ag-mic.ouvindo { background: #C0392B; box-shadow: 0 0 0 0 rgba(192,57,43,.55); animation: ag-onda 1.2s infinite; }
@keyframes ag-onda { 0% { box-shadow: 0 0 0 0 rgba(192,57,43,.55); } 100% { box-shadow: 0 0 0 16px rgba(192,57,43,0); } }
/* confirmação antes de finalizar */
.ag-conf-head h3 { font-size: 20px; }
.ag-conf > div { margin-bottom: 10px; }
.ag-conf-itens > div, .ag-conf-pg > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid #ECEBE7; font-size: 15px; }
.ag-conf-itens small { color: var(--text-dim); }
.ag-conf-pg { background: #F3F4F1; border-radius: 8px; padding: 4px 10px; }
.ag-conf-total { display: flex; justify-content: space-between; align-items: baseline; background: var(--ink); color: #fff; border-radius: 10px; padding: 10px 14px; }
.ag-conf-total b { font-family: 'IBM Plex Mono', monospace; font-size: 26px; }
.ag-conf-cpf, .ag-conf-nfce { font-size: 13.5px; font-weight: 600; color: var(--label, #3F454D); }
.ag-conf-voz { margin-top: 8px; font-size: 13.5px; color: #8A6400; font-weight: 600; min-height: 20px; }
/* Configurações → Assistente de IA */
.ag-kpis { margin-bottom: 0; }
.ag-barra { height: 6px; background: #ECEEF1; border-radius: 4px; margin-top: 6px; overflow: hidden; }
.ag-barra i { display: block; height: 100%; background: var(--accent); }
.ag-provs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.ag-prov-card { text-align: left; background: #fff; border: 2px solid #D2D4CE; border-radius: 10px; padding: 11px 13px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.ag-prov-card b { font-size: 14px; } .ag-prov-card small { font-size: 11.5px; color: var(--text-dim); }
.ag-prov-card:hover:not(:disabled) { border-color: #7F8893; }
.ag-prov-card.on { background: var(--ink); border-color: var(--ink); color: #fff; } .ag-prov-card.on small { color: #B7BBC2; }
.ag-tag { align-self: flex-start; margin-top: 3px; font-size: 10.5px; font-weight: 700; background: var(--accent-tint); color: #1E7A45; border-radius: 6px; padding: 1px 6px; }
.ag-aviso { margin-top: 10px; background: #FFF8DC; border: 1.5px solid #EAD9A6; color: #6B5200; border-radius: 8px; padding: 8px 12px; font-size: 13px; }
.ag-avancado { margin-top: 10px; } .ag-avancado summary { cursor: pointer; font-weight: 600; font-size: 13px; color: var(--text-dim); }
.ag-linha-erro td { background: #FFF1EF; }
@media (max-width: 700px) { #ag-painel { right: 8px; left: 8px; width: auto; bottom: 8px; max-height: 80vh; } }

/* ===== PDV: alerta de NFC-e em contingência sem autorização da SEFAZ (28/09/2026) ===== */
.off-cont-alerta { display: flex; align-items: center; gap: 12px; margin: 8px 16px 0; padding: 10px 14px; border-radius: 10px; background: #FFF8DC; border: 2px solid #F2B600; color: #5C4300; font-size: 13.5px; line-height: 1.4; }
.off-cont-alerta.grave { background: #FDEEEC; border-color: #C0392B; color: #8E2A20; animation: oca-pisca 2s ease-in-out 3; }
.off-cont-alerta .oca-ico { font-size: 22px; }
.off-cont-alerta .oca-txt { flex: 1; }
.off-cont-alerta .btn { white-space: nowrap; }
@keyframes oca-pisca { 50% { box-shadow: 0 0 0 5px rgba(192,57,43,.25); } }

/* ---- Devolução registrada: escolha do que fazer com o valor (01/10/2026) ---- */
.res-head { display: flex; align-items: center; gap: 14px; }
.res-head-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-tint); color: var(--accent-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.res-head-ico svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.res-valor { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px; }
.res-valor span { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-dim); font-weight: 600; }
.res-valor strong { font-size: 26px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.res-ops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.res-op { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 18px 18px 14px; font-size: 13px; line-height: 1.45; transition: border-color .15s, box-shadow .15s, transform .15s; }
.res-op:hover, .res-op:focus-visible { border-color: var(--accent); box-shadow: 0 8px 22px -14px rgba(20,25,29,.45); transform: translateY(-1px); outline: none; }
.res-op.recomendado { border: 2px solid var(--accent); padding: 17px 17px 13px; background: linear-gradient(180deg, var(--accent-tint) 0, var(--surface) 70px); }
.res-op-tag { position: absolute; top: -10px; right: 14px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 10px; }
.res-op-ico { width: 38px; height: 38px; border-radius: 8px; background: var(--line-soft); color: var(--text); display: flex; align-items: center; justify-content: center; }
.res-op.recomendado .res-op-ico { background: var(--accent); color: #fff; }
.res-op-ico svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.res-op-tit { font-size: 15.5px; font-weight: 600; color: var(--text); }
.res-op-txt { color: var(--text); }
.res-op-quando { color: var(--text-dim); font-size: 12.5px; border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 2px; flex: 1; }
.res-op-quando b { color: var(--text); font-weight: 600; }
.res-op-tecla { font-size: 11.5px; color: var(--text-faint); }
.res-op-tecla kbd { font-family: 'IBM Plex Mono', monospace; font-size: 11px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 3px; padding: 0 5px; color: var(--text-dim); background: var(--paper); }
.res-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.res-rodape { font-size: 12px; color: var(--text-dim); }
@media (max-width: 760px) { .res-ops { grid-template-columns: 1fr; } .res-valor strong { font-size: 22px; } .res-rodape { display: none; } }

/* ---------- PDV → CONSULTA DE PRODUTOS (01/10/2026) — padrão Financeiro: faixa escura, cartões brancos, placas ---------- */
.btn.btn-consulta { background: #1F4E8C; border-color: #1F4E8C; color: #fff; font-weight: 800; letter-spacing: .03em; box-shadow: 0 3px 0 #163a69; }
.btn.btn-consulta:hover { background: #24599f; }
.btn.btn-consulta kbd { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.35); }
.modal.fullscreen:has(.pcq) { background: #E4E6EA; border-radius: 10px; overflow: hidden; }
.pcq { display: flex; flex-direction: column; height: calc(100vh - 40px); min-height: 480px; }
.pcq-top { display: flex; align-items: center; gap: 14px; background: var(--ink); color: #fff; padding: 12px 18px; flex-wrap: wrap; }
.pcq-top-tit { display: flex; align-items: center; gap: 10px; color: #6EE7A0; }
.pcq-top-tit b { display: block; color: #fff; font-size: 18px; letter-spacing: .01em; }
.pcq-top-tit small { display: block; color: #AEB5BF; font-size: 12px; }
.pcq-selo { background: #FDE68A; color: #5B3E00; font-weight: 800; font-size: 11.5px; letter-spacing: .05em; padding: 4px 10px; border-radius: 20px; }
.pcq-fechar { margin-left: auto; background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 9px 16px; font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: 0 3px 0 var(--accent-2); }
.pcq-fechar:hover { background: var(--accent-2); }
.pcq-fechar kbd { background: rgba(0,0,0,.2); border-radius: 3px; padding: 0 5px; font-size: 11px; margin-left: 4px; }
.pcq-busca-row { display: flex; gap: 12px; align-items: center; padding: 14px 18px 6px; flex-wrap: wrap; }
.pcq-busca { flex: 1 1 420px; position: relative; display: flex; align-items: center; }
.pcq-busca svg { position: absolute; left: 14px; color: #6B7078; pointer-events: none; }
.pcq-busca input { width: 100%; font-size: 19px; font-weight: 600; padding: 13px 14px 13px 46px; border: 1.5px solid var(--campo-borda, #A9B0B9); border-radius: 10px; background: #fff; color: var(--text); }
.pcq-busca input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(47,174,89,.22); }
.pcq-seg { display: inline-flex; background: #fff; border: 1.5px solid var(--campo-borda, #A9B0B9); border-radius: 10px; overflow: hidden; }
.pcq-seg button { border: 0; background: transparent; padding: 12px 16px; font-weight: 700; font-size: 13.5px; color: #3F454D; cursor: pointer; }
.pcq-seg button.on { background: var(--ink); color: #fff; }
.pcq-info { padding: 2px 20px 10px; font-size: 13px; color: #3F454D; }
.pcq-info b { color: var(--text); }
.pcq-off { background: var(--danger); color: #fff; font-weight: 800; font-size: 11px; padding: 2px 8px; border-radius: 4px; margin-right: 4px; }
.pcq-dica { color: #92400e; font-weight: 600; }
.pcq-corpo { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(340px, 42%) 1fr; gap: 14px; padding: 0 18px 18px; }
.pcq-lista, .pcq-det { min-height: 0; overflow-y: auto; }
.pcq-lista { display: flex; flex-direction: column; gap: 8px; padding-right: 4px; }
.pcq-det { background: #fff; border: 1px solid #CDD1D7; border-radius: 12px; padding: 18px; }
.pcq-vazio { height: 100%; min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #7C8591; gap: 8px; background: #fff; border: 1px dashed #C3C8CF; border-radius: 12px; padding: 24px; }
.pcq-det .pcq-vazio { border: 0; }
.pcq-vazio p { margin: 0; font-size: 14px; max-width: 340px; }
.pcq-item { background: #fff; border: 1px solid #CDD1D7; border-left: 5px solid transparent; border-radius: 10px; padding: 11px 13px; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.pcq-item:hover { border-color: #9AA2AC; }
.pcq-item.sel { border-color: var(--accent); border-left-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,174,89,.18); background: #F7FDF9; }
.pcq-item-top { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; }
.pcq-item-nome strong { font-size: 15px; color: var(--text); line-height: 1.25; }
.pcq-item-sub { font-size: 12px; color: #5E646C; margin-top: 2px; }
.pcq-item-dir { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }
.pcq-preco { text-align: right; white-space: nowrap; }
.pcq-de { color: #8A9099; font-size: 12px; margin-right: 6px; }
.pcq-por { font-size: 17px; font-weight: 800; color: var(--text); }
.pcq-saldo { display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.pcq-saldo.ok { background: #DCF5E5; color: #17693A; }
.pcq-saldo.pouco { background: #FEF3C7; color: #8A5A00; }
.pcq-saldo.zero { background: #FBE0DC; color: #A6392E; }
.pcq-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.pcq-chip { font-size: 11.5px; padding: 2px 8px; border-radius: 5px; border: 1px solid; font-weight: 600; }
.pcq-chip.ok { background: #F0FAF3; border-color: #9ED9B3; color: #17693A; }
.pcq-chip.zero { background: #FDF1EF; border-color: #EDB7AE; color: #A6392E; }
.pcq-chip.mais { background: #EEF0F3; border-color: #C9CED5; color: #3F454D; }
.pcq-det-cab { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.pcq-foto { width: 96px; height: 96px; border-radius: 12px; background: #EEF0F3; display: grid; place-items: center; color: #9AA2AC; overflow: hidden; flex-shrink: 0; border: 1px solid #D5D9DE; }
.pcq-foto img { width: 100%; height: 100%; object-fit: cover; }
.pcq-det-id { flex: 1 1 220px; min-width: 0; }
.pcq-det-id h2 { margin: 0; font-size: 21px; line-height: 1.2; color: var(--text); }
.pcq-placa { background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 18px; text-align: right; min-width: 170px; }
.pcq-placa span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: #AEB5BF; }
.pcq-placa s { display: block; font-size: 13px; color: #AEB5BF; }
.pcq-placa b { display: block; font-size: 30px; font-weight: 800; color: #6EE7A0; line-height: 1.1; }
.pcq-placa.promo { background: #14532D; }
.pcq-placa.promo b { color: #39FF14; }
.pcq-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0 14px; }
.pcq-kpi { background: #F4F5F7; border: 1px solid #D5D9DE; border-left: 5px solid #9AA2AC; border-radius: 8px; padding: 8px 12px; }
.pcq-kpi span { display: block; font-size: 11.5px; color: #5E646C; font-weight: 600; }
.pcq-kpi b { font-size: 20px; color: var(--text); }
.pcq-kpi.verde { border-left-color: #2FAE59; } .pcq-kpi.verde b { color: #17693A; }
.pcq-kpi.verm { border-left-color: #C0392B; } .pcq-kpi.verm b { color: #A6392E; }
.pcq-kpi.escuro { border-left-color: var(--ink); }
.pcq-grade-tit { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.pcq-grade-tit span { font-weight: 800; font-size: 14px; color: var(--text); padding-left: 10px; border-left: 4px solid var(--accent); }
.pcq-grade-tit small { font-size: 12px; color: #17693A; font-weight: 600; }
.pcq-tab-wrap { border: 1px solid #D5D9DE; border-radius: 8px; overflow: auto; }
.pcq-tab { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pcq-tab th { background: #E7E9EC; color: #3F454D; text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; position: sticky; top: 0; }
.pcq-tab td { padding: 8px 10px; border-top: 1px solid #ECEEF1; vertical-align: middle; }
.pcq-tab .num { text-align: right; white-space: nowrap; }
.pcq-tab .mono { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; }
.pcq-tab tr.sem td { background: #FFF8F7; }
.pcq-tab tr.achou td { background: #FFF7DD; }
.pcq-tab tr.achou td:first-child { box-shadow: inset 4px 0 0 #D9A21B; }
.pcq-tab .pcq-por { font-size: 14px; }
.pcq-tam { display: inline-block; min-width: 34px; text-align: center; background: var(--ink); color: #fff; border-radius: 5px; padding: 2px 7px; font-size: 13px; }
.pcq-nc { font-size: 11px; color: #1F4E8C; font-weight: 700; margin-top: 2px; }
.pcq-rodape { margin: 12px 0 0; font-size: 12px; color: #5E646C; }
@media (max-width: 1100px) { .pcq-kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .pcq { height: auto; }
  .pcq-corpo { grid-template-columns: 1fr; }
  .pcq-lista { max-height: 42vh; }
  .pcq-selo { order: 3; }
}

/* ===== Descontos por cargo (01/10/2026) ===== */
.desc-regra { font-size: 12px; color: #4A5059; margin: 6px 0 0; line-height: 1.4; }
.desc-regra b { color: var(--ink); }
.pg-desc-total .discount-field input { background: var(--chave-bg) !important; border: 2px solid var(--chave-borda) !important; font-weight: 700; font-family: 'IBM Plex Mono', monospace; }
.pg-desc-total .discount-field input:focus { background: #fff !important; border-color: var(--accent) !important; }
.pg-desc-total .discount-toggle { border: 2px solid var(--chave-borda); border-left: none; font-weight: 800; min-width: 44px; }
.pg-desc-total > label { color: #8A6400 !important; text-transform: uppercase; letter-spacing: .03em; font-size: 12px !important; }
.desc-auth-motivos { background: #FFF6E0; border: 1.5px solid #F0D48A; border-left: 5px solid #D9A21B; border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; font-size: 13px; line-height: 1.5; color: #5A4300; }

/* ===== PDV: item do carrinho editável + sangria/suprimento no PDV (01/10/2026) ===== */
.cart-item-info[data-ed-item] { cursor: pointer; border-radius: 6px; padding: 2px 4px; margin: -2px -4px; }
.cart-item-info[data-ed-item]:hover { background: #F1F7F3; }
.cart-item-desc { margin-top: 3px; font-size: 12px; color: #4A5059; }
.cart-item-desc s { color: var(--text-faint); } .cart-item-desc b { color: #C0392B; font-family: 'IBM Plex Mono', monospace; }
.cart-item.com-desc .num-cell { color: #1E7A45; }
.cart-item-edit { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid #D9A21B; background: #FFF7DD; color: #8A6400; font-size: 13px; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cart-item-edit:hover { background: #D9A21B; color: #fff; }
.pci-head p { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pci-desc .discount-field input { background: var(--chave-bg) !important; border: 2px solid var(--chave-borda) !important; font-weight: 700; font-family: 'IBM Plex Mono', monospace; font-size: 16px; }
.pci-desc .discount-toggle { border: 2px solid var(--chave-borda); border-left: none; font-weight: 800; min-width: 46px; }
.pci-desc > label { color: #8A6400 !important; text-transform: uppercase; letter-spacing: .03em; font-size: 12px !important; }
.pci-atalhos { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 4px 0 14px; font-size: 12px; color: var(--text-dim); }
.pci-atalhos .btn { padding: 5px 11px; font-size: 12.5px; font-weight: 700; }
.pci-placas { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 10px; }
.pci-placas > div { border: 1.5px solid #D2D4CE; border-left: 5px solid #9AA3AE; border-radius: 10px; padding: 10px 12px; background: #fff; display: flex; flex-direction: column; gap: 2px; }
.pci-placas span { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--text-dim); }
.pci-placas b { font-family: 'IBM Plex Mono', monospace; font-size: 19px; }
.pci-placas small { font-size: 11.5px; color: var(--text-dim); }
.pci-placas .desc { border-left-color: #C0392B; } .pci-placas .desc b { color: #C0392B; }
.pci-placas .liq { border-left-color: #2FAE59; background: #EEF8F1; } .pci-placas .liq b { color: #1E7A45; font-size: 22px; }
.pmc-head.out { border-top: 5px solid #C0392B; } .pmc-head.in { border-top: 5px solid #2FAE59; }
.pmc-head.out h3 { color: #A6392E; } .pmc-head.in h3 { color: #1E7A45; }
.pmc-gaveta { display: flex; justify-content: space-between; align-items: center; background: var(--ink); color: #fff; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; }
.pmc-gaveta span { font-size: 12px; color: #C9CDD3; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.pmc-gaveta b { font-family: 'IBM Plex Mono', monospace; font-size: 18px; }
.pmc-imp { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; cursor: pointer; }
.ops-gaveta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px 2px 6px; }
.ops-panel .ops-gaveta button { justify-content: center; font-weight: 700; border-radius: 8px; padding: 10px 6px; }
.ops-panel .ops-sangria { background: #FDEEEC; color: #A6392E; border: 1.5px solid #F2C4BD; }
.ops-panel .ops-sangria:hover { background: #C0392B; color: #fff; }
.ops-panel .ops-suprimento { background: #E3F1E7; color: #1E7A45; border: 1.5px solid #BFE3CB; }
.ops-panel .ops-suprimento:hover { background: #2FAE59; color: #fff; }
.ops-panel { width: 300px; }
@media (max-width: 700px) { .pci-placas { grid-template-columns: 1fr; } }
#pmc-ok.btn-money-out { background: #C0392B !important; border-color: #C0392B !important; color: #fff !important; }
#pmc-ok.btn-money-in { background: #2FAE59 !important; border-color: #2FAE59 !important; color: #fff !important; }
#pmc-ok kbd, #pci-ok kbd { background: rgba(0,0,0,.18); color: #fff; }

/* Pagamento: painel compacto, limitado à mesma área visível do carrinho. */
.pdv-body { min-height: 0; }
.pdv-main, .pdv-side { min-width: 0; min-height: 0; }
.pdv-main:has(.pdv-payment-layout) { padding: clamp(10px, 1.2vw, 18px); container-type: inline-size; overscroll-behavior: contain; }
.pdv-payment-layout { display: flex; flex-direction: column; gap: 10px; height: 100%; min-height: 0; width: 100%; }
.pdv-payment-layout > .form-section { min-width: 0; margin: 0; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.pdv-payment-layout .section-title { margin: 0 0 8px; padding-bottom: 6px; }
.pdv-payment-layout .form-row { gap: 8px; margin-bottom: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pdv-payment-layout .form-row.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pdv-payment-layout .form-row.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pdv-payment-layout .form-row.full { grid-template-columns: minmax(0, 1fr); }
.pdv-payment-layout .form-row:last-child { margin-bottom: 0; }
.pdv-payment-layout .field-wrap { min-width: 0; }
.pdv-payment-layout .field-wrap label { font-size: 12px; margin-bottom: 3px; }
.pdv-payment-layout .form-row input, .pdv-payment-layout .form-row select, .pdv-payment-layout .form-row textarea { min-width: 0; padding: 6px 8px; min-height: 34px; }
.pdv-payment-layout .form-row input.placa-valor { min-height: 36px; font-size: 16px !important; }
.pdv-payment-layout textarea { resize: vertical; max-height: 100px; }
.pdv-payment-layout .hint { font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
.pdv-payment-layout .hint:empty { display: none; }
.pdv-payment-layout .payment-cards { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 6px; margin-bottom: 8px; }
.pdv-payment-layout .payment-card { min-width: 0; min-height: 58px; padding: 8px 6px; gap: 4px; font-size: 12px; flex-direction: row; justify-content: center; }
.pdv-payment-layout .pm-icon { font-size: 22px; flex-shrink: 0; }
.pdv-payment-layout .pm-name { overflow-wrap: anywhere; }
.pdv-payment-layout .payment-line-received { padding: 7px 9px; gap: 6px; flex-wrap: wrap; }
.pdv-payment-layout .pl-method { min-width: 0; overflow-wrap: anywhere; }
.pdv-payment-layout .payment-status { padding: 8px 10px; margin-top: 8px; font-size: 13px; }
.pdv-payment-layout #pm-add-form { min-width: 0; }
.pdv-payment-layout #pm-add-form .btn { white-space: normal; }
.pdv-payment-layout #pm-add-form img, .pdv-payment-layout #pm-add-form canvas { max-width: 100%; height: auto; }

@container (max-width: 620px) {
  .pdv-payment-layout .form-row.cols-4, .pdv-payment-layout .form-row.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 360px) {
  .pdv-payment-layout .form-row, .pdv-payment-layout .form-row.cols-3, .pdv-payment-layout .form-row.cols-4 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-height: 800px) and (min-width: 901px) {
  .pdv-shell:has(.pdv-payment-layout) .pdv-topbar { padding: 8px 20px; }
  .pdv-shell:has(.pdv-payment-layout) .pdv-step { padding: 10px; }
  .pdv-shell:has(.pdv-payment-layout) .pdv-shortcuts-bar { padding: 4px 20px; gap: 6px 12px; }
  .pdv-shell:has(.pdv-payment-layout) .pdv-bottombar { padding: 10px 20px; gap: 8px; }
}
@media (max-width: 900px) {
  .pdv-shell:has(.pdv-payment-layout) { height: 100vh; height: 100dvh; min-height: 0; }
  .pdv-shell:has(.pdv-payment-layout) .pdv-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 30%); overflow: hidden; }
  .pdv-shell:has(.pdv-payment-layout) .pdv-side { padding: 0; overflow-y: auto; }
  .pdv-shell:has(.pdv-payment-layout) .pdv-bottombar { position: static; flex-wrap: wrap; }
  .pdv-shell:has(.pdv-payment-layout) .pdv-bottombar > div:first-child { flex-wrap: wrap; gap: 4px !important; }
  .pdv-shell:has(.pdv-payment-layout) .pdv-bottombar .btn { padding: 8px; }
}
@media (max-width: 540px) {
  .pdv-shell:has(.pdv-payment-layout) .pdv-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
}
/* Checkout: faixas de largura inteira e confirmação abaixo das formas. */
.pdv-payment-layout > .pdv-payment-info { border-left: 4px solid var(--accent); padding: 10px 14px; flex-shrink: 0; }
.pdv-payment-info .section-title { color: var(--accent-2); font-weight: 700; }
.pdv-payment-layout .pdv-checkout-attendant { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, 1fr); align-items: start; }
.pdv-payment-layout #pg-vendedor { font-weight: 700; border-color: var(--accent); background: var(--accent-tint); }
.pdv-payment-layout #pg-obs { height: 34px; min-height: 34px; }
.pdv-payment-totals { flex-shrink: 0; }
.pdv-payment-layout > .pdv-payment-methods { flex: 1; display: flex; flex-direction: column; }
.pdv-payment-layout .pdv-checkout-guide { margin: 0 0 8px; }
.pdv-payment-layout .payment-cards { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.pdv-payment-layout .payment-card { min-height: 62px; font-size: 13px; }
.pdv-payment-confirmation { flex: 1; min-height: clamp(140px, 22vh, 240px); padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; }
.pdv-payment-confirmation #pm-add-form:empty::before { content: 'Selecione uma forma de pagamento acima para informar o valor e confirmar o recebimento.'; display: block; padding: 28px 10px; text-align: center; color: var(--text-dim); font-size: 13px; }
.pdv-payment-confirmation .pix-box { margin: 0; padding: 0; border: 0; background: transparent; }
.pdv-payment-confirmation #pmf-add { min-height: 40px; padding: 10px 24px; font-weight: 700; }
@container (max-width: 620px) {
  .pdv-payment-layout .pdv-checkout-attendant { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pdv-checkout-attendant > .field-wrap:last-child { grid-column: 1 / -1; }
}
@container (max-width: 360px) {
  .pdv-payment-layout .pdv-checkout-attendant { grid-template-columns: minmax(0, 1fr); }
}
/* Todas as formas em uma única faixa; Crediário segue o Pix. */
.pdv-payment-layout { gap: 8px; }
.pdv-main:has(.pdv-payment-layout) { padding: 10px 12px; }
.pdv-payment-layout > .form-section { padding: 9px 12px; }
.pdv-payment-layout > .pdv-payment-info { padding: 8px 12px; }
.pdv-payment-layout .section-title { margin-bottom: 6px; padding-bottom: 5px; }
.pdv-payment-layout .form-row { gap: 6px; margin-bottom: 6px; }
.pdv-payment-layout > .pdv-payment-methods { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.pdv-payment-layout .payment-cards { display: flex; flex-wrap: nowrap; gap: 5px; width: 100%; flex-shrink: 0; overflow-x: auto; padding-bottom: 3px; }
.pdv-payment-layout .payment-card { flex: 1 0 74px; min-width: 74px; min-height: 50px; padding: 6px 4px; font-size: 11.5px; flex-direction: column; gap: 2px; }
.pdv-payment-layout .pm-icon { font-size: 19px; }
.pdv-payment-layout .pm-name { line-height: 1.15; }
.pdv-payment-layout .pdv-payment-confirmation { min-height: 110px; padding: 9px; flex: 1 0 auto; }
.pdv-payment-confirmation #pm-add-form:empty::before { padding: 20px 8px; font-size: 12px; }
/* Checkout compacto: Totais, Vendedor, Pagamentos, nessa ordem. */
.pdv-main:has(.pdv-payment-layout) { padding: 8px 10px; }
.pdv-payment-layout { gap: 6px; }
.pdv-payment-layout > .form-section { padding: 7px 10px; }
.pdv-payment-layout .section-title { font-size: 10px; margin-bottom: 5px; padding-bottom: 4px; }
.pdv-payment-layout > .pdv-payment-totals { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px 6px; }
.pdv-payment-totals > .section-title { grid-column: 1 / -1; margin-bottom: 0; }
.pdv-payment-totals > .form-row { display: contents; }
.pdv-payment-layout .field-wrap label, .pdv-payment-layout .pg-desc-total > label { font-size: 10.5px !important; margin-bottom: 2px; }
.pdv-payment-layout .form-row input, .pdv-payment-layout .form-row select, .pdv-payment-layout .form-row textarea { height: 29px; min-height: 29px; padding: 4px 7px; font-size: 12px; }
.pdv-payment-layout .form-row input.placa-valor { height: 29px; min-height: 29px; font-size: 14px !important; }
.pdv-payment-layout .pg-desc-total .discount-toggle { min-width: 30px; padding: 3px 5px; font-size: 11px; }
.pdv-payment-layout .field-wrap .hint { font-size: 10px; margin-top: 2px; line-height: 1.2; }
.pdv-payment-layout > .pdv-payment-info { padding: 6px 10px; }
.pdv-payment-layout .pdv-checkout-attendant { margin-bottom: 0; }
.pdv-payment-layout #pg-obs { height: 29px; min-height: 29px; }
.pdv-payment-layout .payment-card { min-height: 44px; padding: 4px; font-size: 11px; }
.pdv-payment-layout .pm-icon { font-size: 17px; }
.pdv-payment-layout .payment-cards { margin-bottom: 5px; }
.pdv-payment-layout .pdv-checkout-guide, .pdv-payment-layout .pdv-cred-hint { font-size: 10px; margin: 0 0 5px; }
.pdv-payment-layout .pdv-payment-confirmation { flex: 0 0 auto; min-height: 85px; padding: 7px 9px; }
.pdv-payment-layout #pmf-amount, .pdv-payment-layout #pmf-received, .pdv-payment-layout #pmf-vale-numero, .pdv-payment-layout #pmf-troco { height: 32px; min-height: 32px; padding: 4px 7px !important; font-size: 15px !important; }
.pdv-payment-layout .pdv-payment-confirmation #pmf-add { min-height: 32px; padding: 6px 18px; font-size: 12px; }
.pdv-payment-layout .payment-line-received { margin-top: 5px; padding: 5px 8px; }
.pdv-payment-layout .payment-line-received .pl-amount { font-size: 15px; }
.pdv-payment-layout .payment-status { padding: 6px 8px; margin-top: 6px; font-size: 12px; }
@container (max-width: 1050px) {
  .pdv-payment-layout > .pdv-payment-totals { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@container (max-width: 620px) {
  .pdv-payment-layout > .pdv-payment-totals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container (max-width: 360px) {
  .pdv-payment-layout > .pdv-payment-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* ===== PDV — carrinho com código do produto e contadores de itens/códigos (02/10/2026) ===== */
.pdv-side > .cart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px 14px 22px; background: var(--ink); border-bottom: 3px solid var(--accent); }
.cart-head-tit { min-width: 0; }
.pdv-side .cart-head h3 { margin: 0; padding: 0; background: none; color: #fff; font-size: 17px; letter-spacing: .01em; display: flex; align-items: center; gap: 8px; }
.pdv-side .cart-head h3::before { content: ''; width: 18px; height: 18px; flex-shrink: 0; background: currentColor; opacity: .9;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E") center / contain no-repeat; }
.pdv-side .cart-head .cart-sub { margin: 2px 0 0 26px; padding: 0; background: none; color: #AEB4BC; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.cart-contadores { display: flex; gap: 6px; flex-shrink: 0; }
.cart-cont { background: #2A2F36; border-radius: 8px; padding: 4px 10px 5px; min-width: 62px; text-align: center; border-bottom: 3px solid var(--accent); }
.cart-cont.codigos { border-bottom-color: #E0A526; }
.cart-cont span { display: block; font-size: 9.5px; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; color: #AEB4BC; }
.cart-cont b { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 19px; line-height: 1.15; color: #fff; }
.cart-item-n { flex-shrink: 0; width: 26px; height: 26px; border-radius: 7px; background: #ECEEF1; color: #4A5059; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; margin-top: 1px; }
.cart-item.ultimo .cart-item-n { background: var(--accent); color: #fff; }
.cart-item.ultimo { background: linear-gradient(90deg, #EEF8F1, transparent 70%); }
.cart-item-cod { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 2px; }
.cart-sku { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; font-weight: 700; color: #1D2024; background: #FFF7DD; border: 1.5px solid #E6C766; border-radius: 6px; padding: 0 7px; letter-spacing: .02em; }
.cart-sku.sem { background: #F1F3F5; border-color: #D9DCE0; color: var(--text-faint); font-family: inherit; font-weight: 600; }
.cart-mesmo { font-size: 11px; font-weight: 700; color: #2D4C8A; background: #E4ECFA; border-radius: 6px; padding: 1px 7px; }
.cart-item-nome { display: block; font-weight: 600; line-height: 1.3; }
.cart-item-calc { font-size: 12.5px; color: #4A5059; margin-top: 2px; font-family: 'IBM Plex Mono', monospace; }
.cart-item-calc .cart-qtd { display: inline-block; min-width: 22px; text-align: center; background: var(--ink); color: #fff; border-radius: 5px; padding: 0 5px; font-size: 12.5px; }
.pdv-bottom-itens { margin-left: auto; margin-right: 22px; text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.pdv-bottom-itens .lbl { font-size: 12px; color: var(--text-dim); }
.pdv-bottom-itens b { font-family: 'IBM Plex Mono', monospace; font-size: 26px; line-height: 1.1; color: var(--ink); background: #ECEEF1; border-radius: 8px; padding: 0 12px; }
.pdv-bottom-itens.vazio b { color: var(--text-faint); }
.pdv-bottombar .pdv-bottom-itens + .total-big { margin-right: 22px; }

/* ===== Alerta de novos pedidos dos marketplaces no PDV (02/10/2026 — js/integrations/mkt-alertas.js) ===== */
.mkt-alerta-slot[hidden] { display: none !important; }
.mkt-alerta-btn { display: inline-flex; align-items: center; gap: 8px; background: #E8590C; color: #fff; border: 2px solid #FFB37A; border-radius: 10px; padding: 4px 12px 4px 9px; cursor: pointer; font: inherit; line-height: 1.1; box-shadow: 0 2px 0 #A63F06; animation: mktPulso 1.6s ease-in-out infinite; }
.mkt-alerta-btn:hover { background: #C94B08; }
.mkt-alerta-btn.chegou { animation: mktChegou .5s ease-in-out 4, mktPulso 1.6s ease-in-out 2s infinite; }
.mkt-alerta-ico { font-size: 18px; }
.mkt-alerta-txt { display: flex; flex-direction: column; text-align: left; }
.mkt-alerta-txt b { font-size: 13.5px; font-weight: 800; }
.mkt-alerta-txt small { font-size: 11px; opacity: .92; font-weight: 600; }
@keyframes mktPulso { 0%,100% { box-shadow: 0 2px 0 #A63F06, 0 0 0 0 rgba(232,89,12,.55); } 50% { box-shadow: 0 2px 0 #A63F06, 0 0 0 7px rgba(232,89,12,0); } }
@keyframes mktChegou { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.mkt-selo { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 8px; font-size: 11px; font-weight: 800; letter-spacing: .3px; white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.mkt-selo.grande { font-size: 12px; padding: 4px 10px; }
.mkt-selo.grande span { font-weight: 700; letter-spacing: 0; }
.mkt-modal-head { border-bottom: 3px solid #E8590C; }
.mkt-modal-head h3 { color: #B8470A; }
.mkt-pedidos { display: flex; flex-direction: column; gap: 12px; max-height: 62vh; overflow: auto; }
.mkt-pedido { border: 1.5px solid var(--line); border-left: 6px solid var(--canal, #E8590C); border-radius: 10px; background: #fff; overflow: hidden; }
.mkt-pedido-top { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #FAFAF7; border-bottom: 1px solid var(--line); }
.mkt-pedido-id { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mkt-pedido-id b { font-size: 14.5px; font-family: 'IBM Plex Mono', monospace; }
.mkt-pedido-id small { color: var(--text-dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mkt-pedido-total { font-weight: 800; font-size: 15px; }
.mkt-itens { display: flex; flex-direction: column; }
.mkt-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; }
.mkt-item + .mkt-item { border-top: 1px dashed var(--line); }
.mkt-item-foto { width: 56px; height: 56px; border-radius: 8px; background: #ECEEF1; flex: none; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.mkt-item-foto img { width: 100%; height: 100%; object-fit: cover; }
.mkt-item-foto span { font-size: 10px; color: var(--text-dim); }
.mkt-item-info { flex: 1; min-width: 0; }
.mkt-item-nome { font-weight: 700; font-size: 14px; }
.mkt-item-det { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; margin-top: 3px; }
.mkt-sku { font-family: 'IBM Plex Mono', monospace; font-size: 12px; background: #ECEEF1; border-radius: 5px; padding: 1px 6px; }
.mkt-item-qtd { display: flex; flex-direction: column; align-items: center; background: #E8590C; color: #fff; border-radius: 8px; padding: 4px 12px; min-width: 56px; }
.mkt-item-qtd b { font-size: 20px; line-height: 1; }
.mkt-item-qtd small { font-size: 10.5px; font-weight: 600; }
.btn.mkt-ok { min-width: 190px; font-size: 15px; }
@media (max-width: 640px) {
  .mkt-alerta-txt small { display: none; }
  .mkt-pedido-top { flex-wrap: wrap; }
}
/* 07/10/2026: Configurações → Backup → computadores que fazem backup */
.bk-pcs-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.bk-pcs .bk-status { margin-bottom: 10px; }
.bk-pc-lista { display: grid; gap: 12px; }
.bk-pc { border: 2px solid #C9CED4; border-left: 6px solid var(--accent); border-radius: 12px; padding: 14px 16px; background: #fff; box-shadow: 0 2px 6px -3px rgba(22,25,29,.15); }
.bk-pc.warn { border-left-color: var(--gold); } .bk-pc.bad { border-left-color: var(--danger); } .bk-pc.off { border-left-color: #9AA0A6; opacity: .8; }
.bk-pc-topo { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.bk-pc-nome { font-weight: 700; font-size: 15px; }
.bk-pc-sit { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-2); }
.bk-pc-sit.warn { background: var(--gold-tint); color: var(--gold); } .bk-pc-sit.bad { background: var(--danger-tint); color: var(--danger); } .bk-pc-sit.off { background: #ECEBE7; color: #5F656C; }
.bk-pc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; font-size: 13px; }
.bk-pc-rot { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-dim); margin-bottom: 4px; }
.bk-pc-chip { display: inline-block; font-family: 'IBM Plex Mono', monospace; font-weight: 700; background: var(--ink); color: #fff; border-radius: 6px; padding: 2px 8px; margin: 0 4px 4px 0; }
.bk-pc-pasta { font-family: 'IBM Plex Mono', monospace; font-size: 12px; word-break: break-all; }
.bk-pc-acoes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.bk-btn-perigo { color: var(--danger); border-color: var(--danger); }
.bk-btn-perigo-cheio { background: var(--danger); color: #fff; border-color: var(--danger); box-shadow: 0 6px 14px -8px rgba(166,57,46,.8); }
.bk-pc-off { margin-top: 12px; } .bk-pc-off summary { cursor: pointer; color: var(--text-dim); font-size: 13px; margin-bottom: 8px; }
.bk-codigo { font-family: 'IBM Plex Mono', monospace; font-size: 30px; font-weight: 700; letter-spacing: .08em; text-align: center; padding: 18px; margin-bottom: 10px; border-radius: 12px; background: #FFF8E1; border: 2px solid #D9B44A; user-select: all; }
.bk-passos { margin: 0 0 10px; padding-left: 20px; font-size: 13.5px; line-height: 1.6; }
.bk-ed-linha { display: flex; gap: 8px; margin-bottom: 8px; } .bk-ed-linha input { flex: 1; }
.bk-campo { margin-bottom: 16px; } .bk-campo > input { width: 100%; }

/* 08/10/2026 — Contas: escolher cliente/fornecedor na busca + atalhos de impressão */
.contas-sugestoes { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 60; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 4px; max-height: 340px; overflow-y: auto; }
.contas-sug-titulo { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); padding: 6px 10px 4px; }
.contas-sug-item { display: flex; justify-content: space-between; gap: 12px; width: 100%; border: 0; background: none; text-align: left; padding: 9px 10px; border-radius: 6px; cursor: pointer; font: inherit; color: inherit; }
.contas-sug-item span { color: var(--text-dim); font-size: 12px; white-space: nowrap; }
.contas-sug-item:hover, .contas-sug-item.ativo { background: var(--accent-tint, #e8f6ee); }
.contas-pessoa-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 420px; padding: 8px 8px 8px 14px; border-radius: 999px; background: #1f2a24; color: #fff; font-size: 13px; }
.contas-pessoa-chip span { color: #9fc8b0; }
.contas-pessoa-chip b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contas-pessoa-chip button { border: 0; background: rgba(255,255,255,.15); color: #fff; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; flex-shrink: 0; }
.contas-pessoa-chip button:hover { background: rgba(255,255,255,.3); }
.contas-imprimir { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.contas-imprimir-titulo { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.contas-imprimir .btn { width: 100%; margin-bottom: 6px; text-align: left; }
.contas-imprimir .btn-link { display: block; margin-top: 4px; }
.cr-formatos { display: flex; gap: 8px; padding: 0 24px 10px; flex-wrap: wrap; }
.cr-formatos .btn.active { background: #1f2a24; color: #fff; border-color: #1f2a24; }

/* 08/10/2026 — NF-e de devolução na própria devolução (cadastro rápido do cliente) */
.dvf-body { display: flex; flex-direction: column; gap: 14px; }
.dvf-sec { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--surface, #fff); }
.dvf-sec-tit { font-weight: 700; font-size: 14px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dvf-n { width: 22px; height: 22px; border-radius: 50%; background: #1f2a24; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.dvf-grid { display: grid; grid-template-columns: 190px 1fr 130px 90px 170px; gap: 10px; }
.dvf-grid .field-wrap { margin: 0; position: relative; min-width: 0; }
.dvf-grid input { width: 100%; box-sizing: border-box; }
.dvf-grid-end { grid-template-columns: 1.4fr 1fr .8fr 1fr 70px; margin-top: 10px; }
.dvf-status { position: absolute; right: 8px; top: 31px; font-size: 11px; font-weight: 700; color: var(--text-dim); pointer-events: none; }
.dvf-status.ok { color: var(--money-in, #1f8a4c); }
.dvf-status.bad { color: var(--danger); }
.dvf-endereco { margin-top: 10px; }
.dvf-end-ok { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--accent-tint, #e8f6ee); }
.dvf-end-ok svg { width: 22px; height: 22px; stroke: var(--accent-2, #1f8a4c); fill: none; stroke-width: 1.8; flex-shrink: 0; }
.dvf-end-ok > span { flex: 1; min-width: 0; }
.dvf-conf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 14px; margin-bottom: 12px; }
.dvf-conf > div { display: flex; flex-direction: column; gap: 2px; }
.dvf-conf span { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-dim); }
.dvf-conf b { font-size: 13px; }
.dvf-conf-chave { grid-column: 1 / -1; }
.dvf-conf-chave b { font-size: 12px; letter-spacing: .02em; overflow-wrap: anywhere; }
.dvf-itens tfoot td { border-top: 1.5px solid var(--line); padding-top: 8px; }
.dvf-check { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 10px; border: 1.5px dashed var(--line); cursor: pointer; font-size: 13px; }
.dvf-check input { margin-top: 2px; }
.dvf-check-alerta { border-color: var(--danger); background: #FDEEEC; }
.dvf-legal { margin-top: 10px; font-size: 13px; }
.dvf-legal summary { cursor: pointer; color: var(--accent-2, #1f8a4c); font-weight: 600; }
.dvf-legal p { margin: 8px 0 0; line-height: 1.5; color: var(--text-dim); }
.dvf-disp { border: 1.5px solid var(--danger-tint, #E2A198); background: #FFF6F5; border-radius: 12px; padding: 12px 14px; }
.dvf-disp label { font-weight: 600; font-size: 13px; }
.dvf-disp textarea { width: 100%; margin-top: 6px; box-sizing: border-box; }
.dvf-disp-acoes { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.dvf-erro .fx-alerta ul { margin: 6px 0 0 18px; padding: 0; }
.dvf-acoes { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dvf-spacer { flex: 1; }
.dvf-dispensar { color: var(--danger) !important; }
.dvf-ok { text-align: center; padding: 26px 10px 10px; }
.dvf-ok-ico { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; background: var(--accent-tint, #e8f6ee); display: flex; align-items: center; justify-content: center; }
.dvf-ok-ico svg { width: 32px; height: 32px; stroke: var(--accent-2, #1f8a4c); fill: none; stroke-width: 2; }
.dvf-ok h3 { margin: 0 0 6px; }
.dvf-aviso-venda { margin: 8px 0; padding: 10px 12px; border-radius: 10px; background: #FFF8DC; border: 1px solid #E8C547; color: #6B5300; font-size: 13px; line-height: 1.45; }
@media (max-width: 900px) {
  .dvf-grid { grid-template-columns: 1fr 1fr; }
  .dvf-grid .dvf-nome { grid-column: 1 / -1; }
  .dvf-grid-end { grid-template-columns: 1fr 1fr; }
  .dvf-conf { grid-template-columns: 1fr 1fr; }
}

/* 09/10/2026 — entregas: dinheiro com o entregador */
.en-card-acoes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.en-card-acoes .btn { margin-top: 0; flex: 1 1 auto; }
.pe-dica { margin: 0; font-size: 12px; line-height: 1.45; }
/* 09/10/2026 — pedido de compra: resultado escolhido com ↑/↓ */
.result-row.pc-res-sel { border-color: var(--accent); background: var(--accent-tint); }
/* 09/10/2026 — busca inteligente: separador de "parecidos" e botões de palavras parecidas */
tr.prd-sep td { background: var(--paper); color: var(--text-dim); font-size: 12.5px; padding: 8px 14px; border-top: 1px dashed var(--line); }
.prd-sugestoes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 8px; }
.prd-sugestoes:empty { display: none; }
.prd-sug { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: 3px 10px; font-size: 12px; cursor: pointer; font-family: inherit; }
.prd-sug:hover { border-color: var(--accent); background: var(--accent-tint); }
.prd-sug span { color: var(--text-dim); font-size: 11px; margin-left: 2px; }

/* 10/10/2026 — Notas fiscais: menu ⋮ por grupos (Cancelar NF-e / Gerar devolução) */
.ped-menu.nf-menu { min-width: 250px; }
.ped-menu.nf-menu button { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink, #1f2937); }
.ped-menu.nf-menu button.perigo { color: var(--danger, #c0392b); font-weight: 700; }
.ped-menu.nf-menu button.nf-menu-off { color: var(--danger, #c0392b); opacity: .7; }
.ped-menu.nf-menu button.nf-menu-devol { color: var(--accent-2, #15803d); font-weight: 700; }
.ped-menu.nf-menu .nf-menu-sub { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--muted, #6b7280); background: var(--bg, #f1f3f5); border-radius: 10px; padding: 1px 7px; white-space: nowrap; }

/* 10/10/2026 — Contas a pagar / receber: faixa de período + Mais filtros (padrão dos Pedidos de venda) */
#contas-periodo-seg { margin-left: 0; } /* fica logo ao lado da busca */
.pv-btn-filtros.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.contas-periodo-ativo { margin: -4px 0 12px; }

/* 10/10/2026 — PDV: "Quem atendeu esta venda?" (código do vendedor) */
.pvend-head h3 { font-size: 22px; }
.pvend-cod { width: 100%; font-size: 30px !important; font-weight: 800; letter-spacing: .08em; text-align: center; padding: 14px 16px !important; background: #FFF8DC !important; border: 2px solid #D4A72C !important; border-radius: 10px; font-family: 'IBM Plex Mono', monospace; }
.pvend-cod:focus { outline: none; border-color: var(--accent) !important; box-shadow: 0 0 0 4px rgba(47,174,89,.18); }
.pvend-erro { min-height: 20px; margin: 6px 2px 4px; color: var(--danger); font-weight: 700; font-size: 13px; }
.pvend-lista { width: 100%; border-collapse: collapse; }
.pvend-lista th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); background: #F1F3F5; padding: 8px 12px; }
.pvend-lista td { padding: 11px 12px; border-top: 1px solid #E3E5E1; font-size: 15px; }
.pvend-lista .pvend-c { width: 90px; font-family: 'IBM Plex Mono', monospace; font-size: 18px; font-weight: 800; }
.pvend-linha { cursor: pointer; }
.pvend-linha:hover { background: #F4F7F4; }
.pvend-linha.sel { background: var(--ink); color: #fff; }
.pvend-linha.sel .cell-sub { color: #cfd3d8; }
.pvend-acoes { align-items: center; }
.pvend-dica { margin-right: auto; font-size: 12px; color: var(--text-dim); }
.pvend-dica kbd { display: inline-block; min-width: 18px; padding: 1px 5px; border: 1px solid #C5CAD1; border-radius: 5px; font-size: 11px; text-align: center; background: #fff; margin-right: 2px; }
.pvend-obrig { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 9px; background: var(--danger-tint, #FDECEC); color: var(--danger); font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.pdv-vend-btn { font-weight: 700; border: 1.5px solid #C5CAD1; background: #fff; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdv-vend-btn.pdv-vend-ok { border-color: var(--accent); color: var(--accent-2, #15803d); background: #F0FAF3; }
.pdv-vend-btn.pdv-vend-falta { border-color: #D4A72C; background: #FFF8DC; color: #8A6400; }

/* 10/10/2026 — PDV: teclas F5…F10 nas formas de pagamento + Finalizar pronto (Enter) */
.payment-card { position: relative; }
.payment-card .pm-kbd { position: absolute; top: 6px; right: 8px; font: 800 11px 'IBM Plex Mono', monospace; background: var(--ink); color: #fff; border-radius: 5px; padding: 2px 6px; }
.pdv-teclas-pg { font-size: 12px; color: var(--text-dim); margin: -4px 0 10px; }
.pdv-teclas-pg kbd { display: inline-block; padding: 1px 5px; border: 1px solid #C5CAD1; border-radius: 5px; background: #fff; font-size: 11px; font-weight: 700; }
.btn-finalize.pdv-pronto { box-shadow: 0 0 0 4px rgba(47,174,89,.35); animation: pdvPronto 1.2s ease-in-out infinite alternate; }
@keyframes pdvPronto { from { box-shadow: 0 0 0 3px rgba(47,174,89,.25); } to { box-shadow: 0 0 0 7px rgba(47,174,89,.45); } }
.pix-dest-b:focus { outline: 3px solid var(--accent); outline-offset: 2px; }

/* 10/10/2026 — Financeiro → Bancos: painel lateral da conta + ações (padrão do sistema de referência) */
.bk-grade { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; align-items: start; }
.bk-grade.com-filtros { grid-template-columns: 260px minmax(0, 1fr) 260px; }
@media (max-width: 1250px) { .bk-grade, .bk-grade.com-filtros { grid-template-columns: minmax(0, 1fr); } .bk-lateral { order: -1; } }
.bk-lateral { padding: 14px; position: sticky; top: 10px; display: flex; flex-direction: column; gap: 12px; }
.bk-acao-principal { width: 100%; justify-content: center; }
.bk-acoes { display: flex; flex-direction: column; border: 1.5px solid #E3E5E1; border-radius: 10px; overflow: hidden; }
.bk-acoes button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: #fff; border: none; border-bottom: 1px solid #E3E5E1; padding: 10px 12px; font-weight: 700; font-size: 13px; cursor: pointer; color: var(--text); }
.bk-acoes button:last-child { border-bottom: none; }
.bk-acoes button span { width: 20px; text-align: center; }
.bk-acoes button:hover:not(:disabled) { background: var(--accent-tint, #EAF6EE); color: var(--accent-2, #15803d); }
.bk-acoes button:disabled { color: #9AA1A8; cursor: default; }
.bk-acoes button.perigo { color: var(--danger); }
.bk-info { display: flex; flex-direction: column; gap: 8px; }
.bk-info > div { display: flex; flex-direction: column; }
.bk-info > div > span { font-size: 11.5px; color: var(--text-dim); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.bk-info b { font-family: 'IBM Plex Mono', monospace; font-size: 17px; }
.bk-info .bk-saldo-atual { font-size: 21px; }
.bk-info-sel { background: var(--ink); color: #fff; border-radius: 10px; padding: 10px 12px; display: grid !important; grid-template-columns: 1fr auto; gap: 4px 8px; }
.bk-info-sel > span { color: #cfd3d8; } .bk-info-sel b { color: #fff; } .bk-info-sel b * { color: #fff !important; }
.bk-info-tit { font-weight: 800; font-size: 13px; border-top: 1.5px solid #E3E5E1; padding-top: 10px; }
.bk-busca { margin: 0; min-width: 240px; } .bk-busca input { padding: 9px 12px 9px 36px !important; font-size: 13.5px !important; }
.fin-extrato .ck { width: 30px; } .bk-linha.selected { background: #EAF6EE; }
.bk-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 9px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.bk-tag-tr { background: #E8EEF9; color: #2B4C8C; } .bk-tag-aj { background: #FFF3D6; color: #8A6400; } .bk-tag-es { background: #F1F3F5; color: #555; }
.bk-tipo { margin-bottom: 12px; } .bk-tipo button { padding: 8px 18px; }
.bk-transf { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: start; margin-bottom: 10px; }
.bk-transf-seta { font-size: 22px; font-weight: 800; color: var(--text-dim); padding-top: 26px; text-align: center; }
.bk-ajuste-calc { display: flex; flex-direction: column; gap: 6px; background: #F6F7F5; border: 1.5px solid #E3E5E1; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.bk-ajuste-calc:empty { display: none; }
.bk-ajuste-calc > div:not(.hint) { display: flex; justify-content: space-between; } .bk-ajuste-calc b { font-family: 'IBM Plex Mono', monospace; }
.bk-altcat { border: 1.5px solid #E3E5E1; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.bk-altcat-tit { font-weight: 800; font-size: 12.5px; text-transform: uppercase; margin-bottom: 6px; } .bk-altcat-tit.rec { color: var(--money-in, #15803d); } .bk-altcat-tit.des { color: var(--danger); }
.bk-altcat-lin { display: grid; grid-template-columns: 1fr auto 1.4fr; gap: 10px; align-items: center; } .bk-altcat-lin span { font-size: 12px; color: var(--text-dim); display: block; } .bk-altcat-lin .bk-transf-seta { padding-top: 0; }
.campo-chave { background: #FFF8DC !important; border: 2px solid #D4A72C !important; font-weight: 800; font-size: 16px !important; }

/* ===================== 12/10/2026 — Bloqueio por inatividade (js/bloqueio.js) ===================== */
body.idle-travado #app-screen, body.idle-travado #modal-backdrop, body.idle-travado #ops-backdrop, body.idle-travado #toast { visibility: hidden !important; }
.idle-lock { position: fixed; inset: 0; z-index: 2147483000; background: radial-gradient(circle at 20% 20%, rgba(47,174,89,.18), transparent 45%), var(--ink); display: flex; align-items: center; justify-content: center; padding: 16px; overflow: auto; }
.idle-card { width: 100%; max-width: 400px; background: #fff; border-radius: 12px; padding: 30px 28px 22px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.6); text-align: left; }
.idle-ico { width: 54px; height: 54px; border-radius: 50%; background: var(--accent-tint); display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 12px; }
.idle-card h2 { margin: 0 0 6px; font-size: 24px; color: var(--ink); }
.idle-sub { margin: 0 0 16px; color: var(--text-dim); font-size: 13.5px; line-height: 1.45; }
.idle-user { display: flex; gap: 12px; align-items: center; background: #F1F2F4; border-radius: 10px; padding: 10px 12px; margin-bottom: 16px; }
.idle-av { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.idle-user b { display: block; font-size: 14.5px; } .idle-user small { color: var(--text-dim); font-size: 12px; }
.idle-lbl { display: block; font-weight: 700; font-size: 12.5px; color: var(--label, #3F454D); margin-bottom: 6px; }
.idle-input { width: 100%; font-size: 17px; padding: 11px 12px; border: 1.5px solid #A9B0B9; border-radius: 8px; outline: none; }
.idle-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,174,89,.22); }
.idle-erro { min-height: 20px; color: var(--danger); font-size: 13px; margin: 8px 0 4px; font-weight: 600; }
.idle-btn { width: 100%; padding: 12px; font-size: 15.5px; font-weight: 700; }
.idle-trocar { width: 100%; margin-top: 8px; padding: 10px; }
.idle-dica { margin: 14px 0 0; font-size: 12px; color: var(--text-faint); text-align: center; }
.idle-aviso { position: fixed; right: 18px; bottom: 18px; z-index: 2147482000; display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: 0 18px 40px -12px rgba(0,0,0,.55); max-width: calc(100vw - 32px); border-left: 5px solid #F2B600; }
.idle-aviso-ic { font-size: 24px; } .idle-aviso-tx > b { display: block; font-size: 14.5px; } .idle-aviso-tx span b { color: #F2B600; } .idle-aviso-tx span { font-size: 13px; color: #D4D7DC; }
.idle-aviso .btn { white-space: nowrap; }

/* ===================== 12/10/2026 — Fechamento cego (caixa.js) ===================== */
.cx-gaveta.cx-cego { background: #1E2227; color: #fff; }
.cx-gaveta.cx-cego .cx-gaveta-v span { color: #C9CDD3; }
.cx-cego-tx { font-size: 13.5px; color: #D4D7DC; line-height: 1.45; padding: 6px 0 2px; }
.cx-cego-alerta { font-size: 14.5px; }
.cx-recont { color: #8E2A20 !important; font-weight: 600; }

/* ===================== 12/10/2026 — Receber conta no PDV (js/pdv-receber.js) ===================== */
.prc .pdv-search { margin-bottom: 10px; }
.prc-tit { font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-dim); margin: 6px 0 6px; }
.prc-clientes { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow: auto; }
.prc-cli { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; text-align: left; background: #fff; border: 1.5px solid var(--line); border-left: 5px solid var(--accent); border-radius: 8px; padding: 10px 12px; }
.prc-cli:hover, .prc-cli:focus { border-color: var(--accent); background: var(--accent-tint); outline: none; }
.prc-cli b { font-size: 15px; } .prc-cli span { grid-column: 1; color: var(--text-dim); font-size: 12.5px; }
.prc-cli em { grid-column: 1; font-style: normal; font-size: 12.5px; color: var(--text-dim); }
.prc-cli strong { grid-column: 2; grid-row: 1 / span 3; align-self: center; font-size: 17px; }
.prc-venc { color: var(--danger); font-style: normal; font-weight: 600; }
.prc-cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--ink); color: #fff; border-radius: 8px; padding: 10px 14px; margin: 4px 0 10px; }
.prc-cab b { font-size: 16px; display: block; } .prc-cab span { color: #C9CDD3; font-size: 12.5px; } .prc-cab .btn-link { color: #9BE3B4; }
.prc-tab .num { text-align: right; white-space: nowrap; }
.prc-tab tr.prc-atrasada td { background: #FDF0EE; } .prc-tab tr.prc-atrasada td:first-child { box-shadow: inset 4px 0 0 var(--danger); }
.prc-rodape { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 12px; }
.prc-rodape .form-row { flex: 1 1 320px; margin: 0; }
.prc-total { background: var(--chave-bg, #FFF7DD); border: 1.5px solid var(--chave-borda, #D9A21B); border-radius: 10px; padding: 10px 16px; text-align: right; min-width: 220px; }
.prc-total span { display: block; font-size: 12.5px; color: var(--text-dim); } .prc-total b { font-size: 24px; }
.prc-ok { width: 100%; padding: 12px; font-size: 15.5px; font-weight: 700; margin-top: 6px; }
@media (max-width: 640px) { .prc-cli { grid-template-columns: 1fr; } .prc-cli strong { grid-column: 1; grid-row: auto; } .prc-total { width: 100%; } }

/* ===================== 12/10/2026 — Vendas em espera no PDV (js/pdv-espera.js) ===================== */
.pdve-chip { display: inline-flex; align-items: center; gap: 6px; background: #F2B600; color: #1D2024; border: 0; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 13px; cursor: pointer; box-shadow: 0 2px 8px -2px rgba(0,0,0,.35); }
.pdve-chip b { background: #1D2024; color: #fff; border-radius: 999px; min-width: 22px; padding: 1px 7px; text-align: center; }
.pdve-chip:hover { filter: brightness(1.05); }
.pdve-chip[hidden] { display: none; }
.pdve-btn { border-color: #D9A21B !important; }
.pdve-lista { display: flex; flex-direction: column; gap: 8px; }
.pdve-item { display: flex; gap: 8px; align-items: stretch; }
.pdve-ret { flex: 1; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; text-align: left; background: #fff; border: 1.5px solid var(--line); border-left: 5px solid #F2B600; border-radius: 10px; padding: 10px 14px; }
.pdve-ret:hover, .pdve-ret:focus { border-color: var(--accent); background: var(--accent-tint); outline: none; }
.pdve-ret kbd { background: var(--ink); color: #fff; border-radius: 6px; padding: 4px 9px; font-size: 14px; font-weight: 700; }
.pdve-ret b { display: block; font-size: 15px; } .pdve-ret span { display: block; font-size: 12.5px; color: var(--text-dim); } .pdve-ret small { display: block; font-size: 12px; color: var(--text-faint); }
.pdve-ret strong { font-size: 18px; white-space: nowrap; }
.pdve-desc { white-space: nowrap; }
@media (max-width: 640px) { .pdve-item { flex-direction: column; } .pdve-ret { grid-template-columns: auto 1fr; } .pdve-ret strong { grid-column: 2; } }

/* Saúde fiscal — tela Notas fiscais (15/10/2026) */
.nf-saude { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; margin: 0 0 12px; border: 1px solid var(--line); border-left: 5px solid #9AA0A6; border-radius: 8px; background: var(--surface); font-size: 13px; }
.nf-saude-dot { width: 10px; height: 10px; border-radius: 50%; background: #9AA0A6; flex: 0 0 auto; }
.nf-saude-txt { flex: 1 1 260px; min-width: 0; }
.nf-saude-txt small { display: block; color: var(--text-dim); font-size: 12px; margin-top: 1px; }
.nf-saude-info { color: var(--text-dim); font-size: 12px; }
.nf-saude-atencao { color: var(--danger); font-weight: 600; }
.nf-saude-okmsg { color: var(--money-in, #2e7d32); font-weight: 600; }
.nf-saude-ok { border-left-color: var(--money-in, #2e7d32); } .nf-saude-ok .nf-saude-dot { background: var(--money-in, #2e7d32); }
.nf-saude-lento { border-left-color: var(--gold, #b7791f); background: color-mix(in srgb, var(--gold, #b7791f) 6%, var(--surface)); } .nf-saude-lento .nf-saude-dot { background: var(--gold, #b7791f); }
.nf-saude-ruim { border-left-color: var(--danger); background: color-mix(in srgb, var(--danger) 6%, var(--surface)); } .nf-saude-ruim .nf-saude-dot { background: var(--danger); animation: nfPulse 1.4s infinite; }
@keyframes nfPulse { 50% { opacity: .35; } }
.nf-saude-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.nf-saude-kpis div { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.nf-saude-kpis span { display: block; font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .03em; }
.nf-saude-kpis b { font-size: 15px; }
.nf-saude-h { margin: 16px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
.nf-saude-guia { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.5; } .nf-saude-guia li { margin-bottom: 6px; }

/* Corrigir e reenviar NFC-e (15/10/2026) */
.nfc-passos { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; font-size: 12.5px; }
.nfc-passo { padding: 3px 10px; border-radius: 20px; background: var(--line-soft); color: var(--text-dim); }
.nfc-passo.on { background: var(--ink); color: #fff; font-weight: 600; }
.nfc-passo.feito { background: var(--money-in-tint); color: var(--money-in); }
.nfc-seta { color: var(--text-faint); }
.nfc-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 8px 12px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-size: 13.5px; }
.nfc-diag { border: 1px solid var(--line); border-left: 5px solid var(--text-faint); border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; background: var(--surface); font-size: 13.5px; line-height: 1.5; }
.nfc-diag b { font-size: 15px; }
.nfc-diag p { margin: 6px 0 0; }
.nfc-diag-cat { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-dim); margin-bottom: 4px; }
.nfc-cat-pagamento, .nfc-cat-consumidor, .nfc-cat-produto { border-left-color: var(--gold); background: color-mix(in srgb, var(--gold) 6%, var(--surface)); }
.nfc-cat-configuracao, .nfc-cat-nao_corrigivel { border-left-color: var(--danger); background: color-mix(in srgb, var(--danger) 5%, var(--surface)); }
.nfc-cat-temporario, .nfc-cat-duplicidade { border-left-color: #3B82C4; background: color-mix(in srgb, #3B82C4 5%, var(--surface)); }
.nfc-tecnico { margin: 8px 0; font-size: 12.5px; color: var(--text-dim); }
.nfc-tecnico summary { cursor: pointer; }
.nfc-tecnico textarea { width: 100%; margin: 6px 0; }
.nfc-abas { margin-bottom: 12px; }
.nfc-tab input.nfc-valor { width: 120px; text-align: right; font-weight: 600; }
.nfc-resumo { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 12px 0; }
.nfc-resumo > div { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; justify-content: center; }
.nfc-resumo span:not(.nfc-ok):not(.nfc-falta) { font-size: 11px; text-transform: uppercase; color: var(--text-dim); letter-spacing: .03em; }
.nfc-resumo b { font-size: 16px; }
.nfc-resumo small { color: var(--text-dim); }
.nfc-ok { color: var(--money-in); font-weight: 600; }
.nfc-falta { color: var(--danger); font-weight: 600; }
.nfc-botoes { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.nfc-check, .nfc-radio { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: 13.5px; cursor: pointer; }
.nfc-cpf { margin: 4px 0 10px 26px; display: flex; gap: 10px; align-items: center; }
.nfc-cpf input { width: 180px; font-size: 15px; }
.nfc-prod { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
.nfc-prod-nome { margin-bottom: 6px; }
.nfc-prod-campos { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.nfc-prod-campos label { display: flex; flex-direction: column; font-size: 11.5px; color: var(--text-dim); gap: 2px; }
.nfc-prod-campos input { width: 105px; }
.nfc-h { margin: 6px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
.nfc-lista { margin: 0 0 12px; padding-left: 18px; line-height: 1.6; font-size: 13.5px; }
.nfc-campo { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; font-size: 12.5px; color: var(--text-dim); }
.nfc-campo textarea, .nfc-campo input, .nfc-tecnico textarea { font-size: 14px; color: var(--text); font-family: inherit; }
.nfc-campo input[type=password] { max-width: 220px; }
.nfc-enviando { padding: 28px; text-align: center; font-size: 16px; }
.nfc-sucesso { padding: 18px; border-radius: 10px; background: var(--money-in-tint); color: var(--money-in); font-size: 15px; }
.nfc-sucesso p { margin: 6px 0 0; color: var(--text); font-size: 13px; }
.nfc-chip { background: var(--danger); color: #fff; border: none; border-radius: 20px; padding: 5px 12px; font-weight: 600; font-size: 12.5px; cursor: pointer; animation: nfPulse 1.6s infinite; }
@media (max-width: 640px) { .nfc-prod-campos input { width: 88px; } .nfc-tab input.nfc-valor { width: 96px; } }

/* ===== 16/10/2026 — PDV em monitor menor: pagamento inteiro visível, sem rolar =====
   1) Pix: "Confirmar recebimento" fica AO LADO do valor (topo da caixa), nunca fora da tela.
   2) Opções do Pix numa linha só (todas visíveis), compactas.
   3) Qualquer forma: o botão de confirmar gruda no rodapé da área de pagamento se faltar altura.
   4) Faixa preta de atalhos sempre em 1 linha; altura curta (≤ 860 px): topo/rodapé mais finos;
      ≤ 700 px: a faixa some (os atalhos continuam funcionando). */
/* Pix: Valor (pequeno) e, ao lado, os pagamentos já recebidos + "Falta"; abaixo: Confirmar + "Onde o cliente pagou o Pix?" */
.pdv-payment-confirmation .pix-recebidos { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; flex: 1 1 0; padding-bottom: 3px; }
.pdv-payment-confirmation .pix-recebidos:empty { display: none; }
.pdv-payment-confirmation .pix-recebidos .payment-line-received { margin: 0; padding: 4px 6px 4px 10px; gap: 6px; font-size: 12px; border-radius: 16px; flex-wrap: nowrap; }
.pdv-payment-confirmation .pix-recebidos .payment-line-received .pl-label { display: none; }
.pdv-payment-confirmation .pix-recebidos .payment-line-received .pl-amount { font-size: 14px; }
.pdv-payment-confirmation .pix-recebidos .payment-line-received .link-remove { padding: 0 5px; }
.pdv-payment-confirmation .pix-recebidos .payment-status { margin: 0; padding: 5px 12px; font-size: 13px; border-radius: 16px; white-space: nowrap; }
/* com o Pix aberto, os recebidos aparecem ao lado do Valor — não repete na linha do título */
.pdv-payment-methods:has(.pix-recebidos:not(:empty)) > #payment-lines-list { display: none !important; }
.pdv-payment-confirmation .pix-topo { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.pdv-payment-confirmation .pix-valor { width: 140px; flex: 0 0 140px; margin: 0; }
.pdv-payment-confirmation .pix-valor label { font-size: 10.5px; margin-bottom: 2px; }
.pdv-payment-layout .pdv-payment-confirmation .pix-valor #pmf-amount { width: 100%; height: 32px; min-height: 32px; font-size: 16px !important; font-weight: 700; }
.pdv-payment-confirmation .pix-acao { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.pdv-payment-confirmation .pix-acao #pmf-add { margin: 0 !important; min-height: 32px; padding: 6px 16px; white-space: nowrap !important; flex-shrink: 0; }
.pdv-payment-confirmation .pix-acao .pix-dest-lbl { margin: 0 !important; }
.pdv-payment-confirmation .pix-dest-lbl { margin: 6px 0 4px; font-size: 12px; }
.pdv-payment-confirmation .pix-acao + .pix-dest { margin-top: 6px; }
.pdv-payment-confirmation .pix-dest { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 5px; }
.pdv-payment-confirmation .pix-dest-b { padding: 5px 7px; column-gap: 4px; grid-template-columns: 18px minmax(0, 1fr); align-content: center; min-height: 46px; }
.pdv-payment-confirmation .pix-dest-b span { font-size: 14px; }
.pdv-payment-confirmation .pix-dest-b b { font-size: 11.5px; line-height: 1.15; padding-right: 10px; overflow-wrap: anywhere; }
.pdv-payment-confirmation .pix-dest-b small { font-size: 10px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdv-payment-confirmation .pix-dest-b kbd { top: 3px; right: 5px; font-size: 9.5px; }
.pdv-payment-confirmation #pmf-add { position: sticky; bottom: 0; z-index: 2; }
@media (min-width: 901px) {
  .pdv-shell .pdv-shortcuts-bar { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; white-space: nowrap; gap: 12px; padding: 3px 18px; font-size: 10.5px; scrollbar-width: none; }
  .pdv-shell .pdv-shortcuts-bar::-webkit-scrollbar { display: none; }
  .pdv-shell .pdv-shortcuts-bar > span { flex-shrink: 0; }
  .pdv-shell .pdv-bottombar .btn { white-space: nowrap; }
  .pdv-shell .pdv-bottombar .total-big { white-space: nowrap; }
}
@media (max-width: 1440px) and (min-width: 901px) {
  .pdv-shell .pdv-bottombar { gap: 6px; }
  .pdv-shell .pdv-bottombar > div:first-child { gap: 5px !important; }
  .pdv-shell .pdv-bottombar .btn { padding: 6px 9px; font-size: 12px; }
  .pdv-shell .pdv-bottombar .total-big { font-size: 22px; }
  .pdv-shell .pdv-bottom-itens { margin-right: 10px; }
  .pdv-shell .pdv-bottom-itens b { font-size: 20px; }
  .pdv-shell .pdv-bottombar > div:first-child { min-width: 0; flex-shrink: 1; }
  .pdv-shell .pdv-bottombar > div:first-child .kbd-inline { display: none; }   /* teclas seguem valendo e aparecem no "title"/faixa de atalhos */
  .pdv-shell .pdv-final-grupo { flex-shrink: 0; }
  .pdv-shell .pdv-vend-btn { max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-height: 860px) and (min-width: 901px) {
  .pdv-shell .pdv-topbar { padding: 5px 18px; }
  .pdv-shell .pdv-topbar .btn { padding: 4px 10px; }
  .pdv-shell .pdv-step { padding: 6px 10px; }
  .pdv-shell .pdv-shortcuts-bar kbd { padding: 0 4px; }
  .pdv-shell .pdv-bottombar { padding: 6px 16px; }
  .pdv-shell .pdv-bottombar .btn { padding-top: 5px; padding-bottom: 5px; }
  .pdv-shell .pdv-bottombar .btn-finalize { padding-top: 8px; padding-bottom: 8px; }
  .pdv-payment-layout > .pdv-payment-totals { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .pdv-payment-layout .pdv-checkout-guide, .pdv-payment-layout .pdv-cred-hint { display: none; }
  .pdv-payment-layout .payment-card { min-height: 40px; }
  .pdv-payment-layout .pg-desc-total .hint.desc-regra { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-height: 700px) and (min-width: 901px) {
  .pdv-shell .pdv-shortcuts-bar { display: none; }
  .pdv-shell .pdv-stepbar .pdv-step { padding: 4px 10px; }
  .pdv-payment-layout .pdv-teclas-pg { display: none; }          /* as teclas F5…F9 já aparecem em cada forma */
  .pdv-payment-layout .pg-desc-total .hint { display: none; }     /* "Administrador: desconto livre" */
}
/* Pagamentos já recebidos + "Falta R$ X": na MESMA linha do título "Formas de pagamento" (sempre à vista,
   sem ocupar altura). Venda com duas ou mais formas: o caixa vê o que já entrou e quanto falta. */
@media (min-width: 901px) {
  .pdv-payment-layout > .pdv-payment-methods { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 12px; align-content: start; }
  .pdv-payment-layout > .pdv-payment-methods > * { grid-column: 1 / -1; }
  .pdv-payment-layout > .pdv-payment-methods > .section-title { grid-column: 1; grid-row: 1; align-self: center; border-bottom: 0; margin-bottom: 4px; }
  .pdv-payment-layout > .pdv-payment-methods > #payment-lines-list { grid-column: 2; grid-row: 1; margin: 0 0 4px !important; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 5px; min-width: 0; }
  .pdv-payment-layout #payment-lines-list .payment-line-received { margin: 0; padding: 2px 4px 2px 8px; gap: 5px; font-size: 11px; border-radius: 14px; flex-wrap: nowrap; }
  .pdv-payment-layout #payment-lines-list .payment-line-received .pl-label { display: none; }
  .pdv-payment-layout #payment-lines-list .payment-line-received .pl-amount { font-size: 13px; }
  .pdv-payment-layout #payment-lines-list .payment-line-received .link-remove { padding: 0 5px; }
  .pdv-payment-layout #payment-lines-list .payment-status { margin: 0; padding: 3px 10px; font-size: 12px; border-radius: 14px; white-space: nowrap; }
}
/* 16/10/2026 (18:10): botões de baixo maiores no monitor menor (pedido do usuário) — 1 linha, fáceis de clicar */
@media (max-width: 1440px) and (min-width: 901px) {
  .pdv-shell .pdv-bottombar .btn { min-height: 42px; padding: 8px 12px; font-size: 13.5px; font-weight: 600; }
  .pdv-shell .pdv-bottombar .btn-consulta { padding: 8px 16px; font-size: 14px; }
  .pdv-shell .pdv-bottombar .btn-finalize { min-height: 48px; padding: 10px 22px; font-size: 16px; }
  .pdv-shell .pdv-bottombar .pdv-vend-btn { max-width: 190px; }
  .pdv-shell .pdv-bottombar > div:first-child { flex-shrink: 0; }
  .pdv-shell .pdv-bottom-itens { display: none; }   /* a quantidade de itens já aparece no topo da lista ("ITENS") */
  .pdv-shell .pdv-bottombar .total-big { margin-left: auto; }
}
@media (max-height: 860px) and (min-width: 901px) {
  .pdv-shell .pdv-bottombar .btn { padding-top: 8px; padding-bottom: 8px; }
  .pdv-shell .pdv-bottombar .btn-finalize { padding-top: 10px; padding-bottom: 10px; }
}
@media (max-width: 1300px) and (min-width: 901px) {
  .pdv-shell .pdv-bottombar .btn { padding-left: 9px; padding-right: 9px; font-size: 13px; }
  .pdv-shell .pdv-bottombar .pdv-vend-btn { max-width: 150px; }
}
/* 16/10/2026 (18:17): recebido + "Falta" maiores, chamativos e no meio da linha (pedido do usuário) */
@media (min-width: 901px) {
  .pdv-payment-layout > .pdv-payment-methods > #payment-lines-list { justify-content: center; gap: 10px; }
  .pdv-payment-layout #payment-lines-list .payment-line-received,
  .pdv-payment-confirmation .pix-recebidos .payment-line-received { padding: 6px 8px 6px 14px; gap: 8px; font-size: 14px; font-weight: 700; border-width: 2px; border-radius: 20px; }
  .pdv-payment-layout #payment-lines-list .payment-line-received .pl-amount,
  .pdv-payment-confirmation .pix-recebidos .payment-line-received .pl-amount { font-size: 18px; }
  .pdv-payment-layout #payment-lines-list .payment-status,
  .pdv-payment-confirmation .pix-recebidos .payment-status { padding: 7px 18px; font-size: 15px; font-weight: 700; border-width: 2px; border-style: solid; border-radius: 20px; }
  .pdv-payment-layout #payment-lines-list .payment-status strong,
  .pdv-payment-confirmation .pix-recebidos .payment-status strong { font-size: 19px; }
  .pdv-payment-layout #payment-lines-list .payment-status.pending,
  .pdv-payment-confirmation .pix-recebidos .payment-status.pending { background: #FFF1CC; border-color: #E5A100; color: #7A4B00; box-shadow: 0 2px 8px -3px rgba(229,161,0,.6); }
  .pdv-payment-layout #payment-lines-list .payment-status.done,
  .pdv-payment-confirmation .pix-recebidos .payment-status.done { background: #E3F6EA; border-color: #2FAE59; color: #146C34; box-shadow: 0 2px 8px -3px rgba(47,174,89,.6); }
}

/* =====================================================================================
   MERCADO LIVRE — liberação da etiqueta (prazo diferenciado) e expedição (18/10/2026)
   ===================================================================================== */
.pv-ampulheta { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* lista: abaixo da data */
.pv-data { white-space: nowrap; }
.pv-lib { display: flex; align-items: center; gap: 3px; margin-top: 4px; color: #C62828; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; line-height: 1.1; cursor: help; }
.pv-lib .pv-ampulheta { width: 12px; height: 12px; animation: pvAmpulheta 2.4s ease-in-out infinite; }
@keyframes pvAmpulheta { 0%, 70% { transform: rotate(0); } 85%, 100% { transform: rotate(180deg); } }
.pv-lib-data { color: #C62828; font-size: 11.5px; font-weight: 800; font-family: 'IBM Plex Mono', monospace; line-height: 1.25; cursor: help; }
.pv-lib-ok { display: inline-block; margin-top: 3px; color: #2E6B12; background: #E5F6D8; border-radius: 4px; padding: 0 5px; font-size: 10.5px; font-weight: 800; }
.pv-desp { font-size: 10.5px; }
.pv-desp.hoje { color: #8A6400; font-weight: 800; }
.pv-desp.atraso { color: #fff; background: #C62828; border-radius: 4px; padding: 0 5px; font-weight: 800; display: inline-block; margin-top: 2px; }
.pv-row-retida td:first-child { box-shadow: inset 4px 0 0 #E0533F; }
.pv-row-atraso { background: #FFF1EF; }
.pv-row-atraso td:first-child { box-shadow: inset 4px 0 0 #C62828; }
.pv-et-lib { background: #FDE2DE; color: #A11F14; }
@media (prefers-reduced-motion: reduce) { .pv-lib .pv-ampulheta { animation: none; } }

/* painel Expedição Mercado Livre */
.pv-exped { background: #fff; border: 1.5px solid #D2D4CE; border-left: 5px solid #FFE600; border-radius: 12px; padding: 10px 12px 12px; margin-bottom: 12px; }
.pv-exped.vazio { display: none; }
.pv-exped-tit { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 9px; }
.pv-exped-tit .pv-ampulheta { width: 16px; height: 16px; color: #2D3277; }
.pv-exped-tit b { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink); }
.pv-exped-tit small { color: var(--text-dim); font-size: 12px; }
.pv-exped-x { margin-left: auto; background: var(--ink); color: #fff; border: 0; border-radius: 7px; padding: 5px 10px; font-weight: 700; font-size: 12px; cursor: pointer; }
.pv-exped-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.pv-exp { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; background: #F7F7F4; border: 1.5px solid #D2D4CE; border-left: 5px solid #9AA3AE; border-radius: 10px; padding: 7px 10px 8px; cursor: pointer; min-width: 0; transition: transform .1s, box-shadow .1s; }
.pv-exp:hover:not([disabled]) { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.pv-exp span { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pv-exp b { font-family: 'IBM Plex Mono', monospace; font-size: 21px; line-height: 1.15; color: var(--text); }
.pv-exp em { font-style: normal; font-size: 10.5px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pv-exp.zero { opacity: .55; cursor: default; }
.pv-exp.tem { background: #fff; }
.pv-exp.exp-lib { border-left-color: #E0533F; } .pv-exp.exp-lib.tem b { color: #C62828; }
.pv-exp.exp-hoje { border-left-color: #F2B600; } .pv-exp.exp-hoje.tem { background: #FFF8DC; border-color: #E8C547; border-left-color: #F2B600; }
.pv-exp.exp-amanha { border-left-color: #3B82F6; }
.pv-exp.exp-postar { border-left-color: #F28C00; } .pv-exp.exp-postar.tem { background: #FFF1DE; border-color: #F2B36B; border-left-color: #F28C00; }
.pv-exp.exp-pronta { border-left-color: #5DBB2A; }
.pv-exp.exp-atraso { border-left-color: #C62828; } .pv-exp.exp-atraso.tem { background: #FDEEEC; border-color: #E2A198; border-left-color: #C62828; } .pv-exp.exp-atraso.tem b { color: #C62828; }
.pv-exp.active { background: var(--ink) !important; border-color: var(--ink) !important; opacity: 1; }
.pv-exp.active span, .pv-exp.active em { color: #C9CDD3; } .pv-exp.active b { color: #fff !important; }
@media (max-width: 1100px) { .pv-exped-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .pv-exped-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pv-exp em, .pv-exped-tit small { display: none; } }

/* pedido aberto: aviso de etiqueta retida */
.pf-ml-retida { display: flex; align-items: center; gap: 12px; background: #FDEEEC; border: 2px solid #E2A198; border-left: 6px solid #C62828; color: #7A1E15; border-radius: 10px; padding: 12px 16px; margin-bottom: 12px; }
.pf-ml-retida > .pv-ampulheta { width: 26px; height: 26px; color: #C62828; animation: pvAmpulheta 2.4s ease-in-out infinite; }
.pf-ml-retida-txt { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; font-size: 13.5px; }
.pf-ml-retida-txt b:first-child { font-size: 15px; }
.pf-ml-aviso { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pf-ml-aviso > div { flex: 1; min-width: 240px; }
.pf-ml-btn { background: #fff; border: 1.5px solid currentColor; color: inherit; font-weight: 700; white-space: nowrap; }
@media (max-width: 700px) { .pf-ml-retida { flex-wrap: wrap; } }
/* quadro do envio no ML (Marketplace e envio) */
.pf-ml-envio { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 4px 0 14px; }
.pf-ml-envio-c { display: flex; flex-direction: column; gap: 2px; background: #F1F2EE; border-radius: 9px; padding: 9px 11px; min-width: 0; }
.pf-ml-envio-c span { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--text-dim); }
.pf-ml-envio-c b { font-size: 14px; color: var(--text); overflow-wrap: anywhere; }
.pf-ml-envio-c small { font-size: 11.5px; color: var(--text-dim); }
.pf-ml-envio-c .btn-link { align-self: flex-start; padding: 0; font-size: 12px; }
.pf-ml-envio-c.lib { background: #FFF8DC; border: 1.5px solid #E8B547; }
.pf-ml-envio-c.lib b { color: #C62828; font-size: 16px; font-family: 'IBM Plex Mono', monospace; }
.pf-ml-envio-c.atraso { background: #FDEEEC; border: 1.5px solid #E2A198; } .pf-ml-envio-c.atraso b { color: #C62828; }
.pf-ml-envio-erro { color: #A6392E !important; }
@media (max-width: 900px) { .pf-ml-envio { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* aviso antes da NF-e */
.pv-lib-modal h3 { display: flex; align-items: center; gap: 8px; color: #A11F14; }
.pv-lib-modal h3 .pv-ampulheta { width: 20px; height: 20px; }
.pv-lib-tab { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pv-lib-tab th { text-align: left; background: #ECEDE9; padding: 6px 8px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
.pv-lib-tab td { padding: 7px 8px; border-bottom: 1px solid #E3E4E0; }
.pv-lib-tab .pv-lib-data { font-size: 13.5px; }
.dp-al-lib b:first-child { color: #8E2A20; }
.pv-data .pv-lib-ok, .pv-data .pv-desp.atraso { display: table; }
.pv-so-celular { display: none !important; }
@media (max-width: 760px) {
  .pv-so-celular { display: flex !important; }
  .pv-so-celular.pv-desp { display: table !important; }
  .pf-ml-retida { flex-wrap: wrap; }
  .pf-ml-retida-txt { flex: 1 1 220px; }
  .pf-ml-retida .pf-ml-btn, .pf-ml-aviso .pf-ml-btn { width: 100%; justify-content: center; }
}

/* =====================================================================================
   CANAIS DE VENDA COMO MÓDULOS (18/10/2026) — Integrações / Configurações → Canais de venda
   ===================================================================================== */
.cv-card { padding: 18px 20px; margin-bottom: 14px; border-left: 5px solid var(--accent); }
.cv-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.cv-ico { font-size: 24px; line-height: 1; }
.cv-head h3 { margin: 0 0 3px; font-size: 16px; }
.cv-head p { margin: 0; color: var(--text-dim); font-size: 13px; max-width: 900px; }
.cv-lista { display: flex; flex-direction: column; gap: 8px; }
.cv-item { display: flex; align-items: center; gap: 10px; background: #F7F7F4; border: 1.5px solid #D2D4CE; border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.cv-item.cv-geral { background: #fff; border-color: #B9BCB5; }
.cv-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cv-txt b { font-size: 14px; }
.cv-txt small { font-size: 12px; color: var(--text-dim); }
.cv-sub { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin-left: 26px; padding-left: 14px; border-left: 3px solid #D2D4CE; transition: opacity .15s; }
.cv-sub.off { opacity: .45; }
.cv-breve { cursor: default; opacity: .6; }
.cv-sw { position: relative; flex: none; width: 40px; height: 22px; }
.cv-sw input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.cv-sw input:disabled { cursor: not-allowed; }
.cv-sw i { position: absolute; inset: 0; background: #C3C6BF; border-radius: 22px; transition: background .15s; }
.cv-sw i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: #fff; border-radius: 50%; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.cv-sw input:checked + i { background: var(--accent); }
.cv-sw input:checked + i::after { transform: translateX(18px); }
.cv-sw input:focus-visible + i { box-shadow: 0 0 0 3px rgba(47,174,89,.35); }
.cv-acoes { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.cv-acoes .hint { color: #8A6400; }
.cv-desligado { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; background: #F1F2EE; }
.cv-lista-txt { margin: 10px 0 0 18px; padding: 0; font-size: 13.5px; }
@media (max-width: 700px) { .cv-sub { margin-left: 0; padding-left: 10px; } }

/* Painel → erros registrados nas telas (18/10/2026) */
.dp-erros-tab { width: 100%; border-collapse: collapse; font-size: 13px; }
.dp-erros-tab th { text-align: left; background: #ECEDE9; padding: 6px 8px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
.dp-erros-tab td { padding: 8px; border-bottom: 1px solid #E3E4E0; vertical-align: top; }
.dp-erros-tab .nowrap { white-space: nowrap; }
.dp-erro-msg { color: #8E2A20; font-family: 'IBM Plex Mono', monospace; font-size: 12px; overflow-wrap: anywhere; margin: 2px 0; }

/* ===== Canais — Fase 3 (22/10/2026): seção de frete em Integrações e janela "Canais" do produto ===== */
.cv-frete-tit { display: flex; flex-direction: column; gap: 2px; margin: 14px 0 6px; padding-top: 12px; border-top: 1.5px dashed #c9cfd8; }
.cv-frete-tit b { font-size: 14px; color: #1f2937; }
.cv-frete-tit small { color: #5b6470; font-size: 12px; }
.pc-canal { margin-bottom: 18px; }
.pc-canal-h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-weight: 700; color: #374151; }
.pc-tab { width: 100%; border-collapse: collapse; font-size: 13px; }
.pc-tab th { background: #e5e7eb; color: #1f2937; text-align: left; padding: 7px 8px; font-weight: 800; }
.pc-tab td { border-bottom: 1px solid #e5e7eb; padding: 7px 8px; vertical-align: top; }
.pc-tab td small { display: block; color: #6b7280; font-size: 11px; }
.pc-ok { color: #15803d; font-weight: 700; } .pc-pend { color: #b45309; font-weight: 700; } .pc-erro { color: #b91c1c; font-weight: 800; cursor: help; }
.pc-canal .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; } .pc-tab { min-width: 640px; }

/* 23/10/2026 — Frete nas compras (pedido de compra e entrada por XML) */
.pc-totais-linha { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px 24px; font-size: 13.5px; }
.pc-frete-transp-sel { display: flex; gap: 8px; } .pc-frete-transp-sel select { flex: 1; min-width: 0; }
.pc-transp-form { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; } .pc-transp-form input { flex: 1 1 160px; min-width: 0; }
.pc-frete-opcoes { display: grid; gap: 6px; margin: 4px 0 8px; font-size: 13px; } .pc-frete-opcoes label { display: flex; gap: 8px; align-items: flex-start; }
.pc-frete-opcoes input[type=checkbox] { margin-top: 2px; flex-shrink: 0; }
.pc-frete-pagto { border: 1px solid var(--line-soft); border-radius: 10px; padding: 12px 14px 4px; background: var(--surface-2, #FAFBFC); }
.pc-frete-pagto .hint { margin-bottom: 8px; }
table.pc-rateio td, table.pc-rateio th { white-space: nowrap; }
.ent-frete-box { border: 1px solid var(--line-soft); border-radius: 10px; padding: 12px 14px; margin-top: 10px; }
@media (max-width: 720px) { .pc-totais-linha { justify-content: flex-start; } .pc-frete-transp-sel { flex-wrap: wrap; } }

/* ===== Integrações → Melhor Envio (frete) — Fase 4A, 23/10/2026. Padrão visual do Financeiro. ===== */
.mex-card { padding: 16px 18px; margin-bottom: 14px; border-left: 4px solid #0064F2; }
.mex-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.mex-mark { width: 46px; height: 46px; border-radius: 10px; background: #0064F2; color: #fff; font-weight: 800; font-size: 17px; display: flex; align-items: center; justify-content: center; flex: none; }
.mex-head-txt { flex: 1; min-width: 220px; } .mex-head-txt h2 { margin: 0; font-size: 18px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .mex-head-txt p { margin: 3px 0 0; color: var(--text-dim); font-size: 12.5px; }
.mex-head-acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.mex-amb { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; padding: 3px 8px; border-radius: 4px; }
.mex-amb.teste { background: #FFF3C4; color: #8A6400; border: 1px solid #E5C25A; } .mex-amb.prod { background: var(--money-in-tint); color: var(--money-in); border: 1px solid var(--money-in); }
.mex-alerta { background: var(--danger-tint); border: 1px solid var(--danger); color: var(--ink-2); border-radius: var(--radius); padding: 10px 14px; font-size: 13px; margin-bottom: 10px; }
.mex-conectar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: #EEF4FF; border: 1px solid #9DBDF5; border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; }
.mex-conectar > div { display: flex; flex-direction: column; gap: 3px; font-size: 13px; } .mex-conectar span { color: var(--text-dim); font-size: 12.5px; } .mex-erro { color: var(--danger) !important; }
.mex-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.mex-kpi { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid #0064F2; border-radius: var(--radius); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mex-kpi small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--text-dim); }
.mex-kpi b { font-size: 21px; color: var(--ink); } .mex-kpi b.mex-kpi-txt { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mex-kpi span { font-size: 11.5px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; }
.mex-kpi.destaque { border-left-color: var(--ink); } .mex-kpi.ok { border-left-color: var(--accent); }
.mex-abas { display: flex; gap: 4px; flex-wrap: wrap; background: var(--ink); padding: 5px; border-radius: var(--radius); margin-bottom: 12px; }
.mex-abas button { background: transparent; border: 0; color: #C9CDD3; padding: 8px 14px; border-radius: 4px; font-weight: 600; font-size: 13px; cursor: pointer; }
.mex-abas button:hover { background: var(--ink-3); color: #fff; } .mex-abas button.active { background: var(--accent); color: #fff; }
.mex-sec-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin: 6px 0 10px; }
.mex-sec-h h3 { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 8px; } .mex-sec-h h3::before { content: ''; width: 4px; height: 16px; background: var(--accent); border-radius: 2px; }
.mex-sec-h p { margin: 3px 0 0; color: var(--text-dim); font-size: 12.5px; max-width: 760px; }
.mex-acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.mex-tabela { overflow-x: auto; } .mex-t { min-width: 640px; } .mex-t td { vertical-align: middle; font-size: 13px; padding: 7px 8px; } .mex-t th { white-space: nowrap; }
.mex-t tr.mex-off td { opacity: .55; }
.mex-logo { width: 46px; text-align: center; } .mex-logo img { max-width: 40px; max-height: 26px; object-fit: contain; }
.mex-cel-acoes { white-space: nowrap; text-align: right; } .mex-cel-acoes .btn-link { margin-left: 10px; } .mex-del { color: var(--danger) !important; }
.mex-sw { position: relative; display: inline-block; width: 38px; height: 21px; } .mex-sw input { opacity: 0; width: 0; height: 0; }
.mex-sw i { position: absolute; inset: 0; background: #C4C8CE; border-radius: 21px; transition: .15s; cursor: pointer; }
.mex-sw i::before { content: ''; position: absolute; width: 15px; height: 15px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; }
.mex-sw input:checked + i { background: var(--accent); } .mex-sw input:checked + i::before { transform: translateX(17px); }
.mex-sw input:focus-visible + i { box-shadow: 0 0 0 3px var(--accent-tint); }
.mex-vazio { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; background: var(--paper); border: 1px dashed #A9AEB5; border-radius: var(--radius); padding: 14px 16px; margin-bottom: 8px; font-size: 13px; } .mex-vazio span { color: var(--text-dim); }
.mex-bloco { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px 4px; margin-bottom: 12px; }
.mex-op { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; cursor: pointer; } .mex-op input { margin-top: 3px; width: 16px; height: 16px; flex: none; accent-color: var(--accent); }
.mex-op span { display: flex; flex-direction: column; font-size: 13px; } .mex-op small { color: var(--text-dim); font-size: 12px; }
.mex-inc-g { margin-bottom: 12px; } .mex-inc-g > b { display: block; margin-bottom: 4px; font-size: 13px; }
.mex-inc-i { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; margin-bottom: 4px; cursor: pointer; font-size: 13px; }
.mex-inc-i input { width: 16px; height: 16px; accent-color: var(--accent); } .mex-inc-i small { margin-left: auto; color: var(--text-faint); } .mex-inc-i:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
@media (max-width: 900px) { .mex-kpis { grid-template-columns: 1fr; } .mex-head-acoes { width: 100%; } }

/* ===== Pedido de venda → Frete e envio (Melhor Envio) — Fase 4B, 23/10/2026. Padrão visual do Financeiro. ===== */
.pf-sec-frete { border-left: 4px solid #0064F2; }
.fq-n { background: #0064F2 !important; color: #fff !important; }
.fq-me { background: #0064F2; color: #fff; font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 4px; letter-spacing: .03em; }
.fq-teste { background: #FFF3C4; color: #8A6400; border: 1px solid #E5C25A; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 4px; letter-spacing: .05em; }
.fq-vazio { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: #EEF4FF; border: 1px dashed #9DBDF5; border-radius: var(--radius); padding: 14px 16px; }
.fq-vazio > div { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 3px; font-size: 13px; } .fq-vazio span { color: var(--text-dim); font-size: 12.5px; }
.fq-vazio-ico { font-size: 28px; flex: 0 0 auto !important; min-width: 0 !important; }
.fq-st-linha { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.fq-st { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 4px 10px; border-radius: 20px; border: 1.5px solid; }
.fq-st-cot { background: #EEF4FF; color: #0B4FC4; border-color: #9DBDF5; } .fq-st-pend { background: var(--gold-tint); color: var(--gold); border-color: var(--gold); }
.fq-st-ok { background: var(--money-in-tint); color: var(--money-in); border-color: #9CD3AE; } .fq-st-post { background: #E7F0FF; color: #1F4E9E; border-color: #7FA6E8; }
.fq-st-ent { background: var(--accent); color: #fff; border-color: var(--accent); } .fq-st-erro, .fq-st-canc { background: var(--danger-tint); color: var(--danger); border-color: #E2A198; }
.fq-resumo { display: grid; grid-template-columns: minmax(190px, 1.3fr) repeat(4, minmax(120px, 1fr)); gap: 8px; margin-bottom: 10px; }
.fq-resumo > div { background: var(--surface); border: 1.5px solid #D2D4CE; border-left: 5px solid #9AA3AE; border-radius: 10px; padding: 9px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fq-r-serv { flex-direction: row !important; align-items: center; gap: 10px !important; border-left-color: #0064F2 !important; }
.fq-r-serv > div { display: flex; flex-direction: column; min-width: 0; }
.fq-r-serv img { max-width: 54px; max-height: 32px; object-fit: contain; } .fq-r-ico { font-size: 24px; }
.fq-r-serv b { font-size: 14px; } .fq-r-serv small, .fq-r-k small { font-size: 11.5px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fq-r-k > span { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--text-dim); }
.fq-r-k > b { font-family: 'IBM Plex Mono', monospace; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fq-r-cli { border-left-color: var(--accent) !important; background: #F4FBF6 !important; } .fq-r-cli > b { color: var(--money-in); font-size: 18px; }
.fq-r-k small.neg { color: var(--danger); font-weight: 700; } .fq-r-k small.pos { color: var(--money-in); font-weight: 700; }
.fq-r-pac > b { font-family: inherit !important; font-size: 13.5px !important; }
.fq-acoes { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fq-del { color: var(--danger) !important; }
.fq-aviso { background: var(--gold-tint); border: 1px solid #E0C48D; color: var(--ink-2); border-radius: var(--radius); padding: 8px 12px; font-size: 12.5px; margin-bottom: 10px; }
.fq-erro { background: var(--danger-tint); border: 1px solid #E2A198; color: var(--danger); border-radius: var(--radius); padding: 9px 12px; font-size: 13px; margin-bottom: 10px; font-weight: 600; }
.fq-ok { background: var(--money-in-tint); border: 1px solid #9CD3AE; color: var(--money-in); border-radius: var(--radius); padding: 9px 12px; font-size: 13px; font-weight: 600; }
.fq-rastreio { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 9px 14px; margin-bottom: 10px; font-size: 13px; }
.fq-rastreio span { color: #C9CDD3; font-size: 11px; text-transform: uppercase; font-weight: 700; letter-spacing: .05em; } .fq-rastreio b { font-family: 'IBM Plex Mono', monospace; font-size: 15px; letter-spacing: .04em; }
.fq-rastreio a { color: #9BE0B2; font-weight: 700; } .fq-rastreio .btn-link { color: #C9CDD3 !important; }
.fq-trilha { display: flex; align-items: flex-start; gap: 0; margin: 2px 0 12px; overflow-x: auto; }
.fq-passo { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 96px; text-align: center; font-size: 12px; color: var(--text-dim); }
.fq-passo i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #C4C8CE; display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 800; background: #fff; }
.fq-passo.feito i { background: var(--accent); border-color: var(--accent); color: #fff; } .fq-passo.feito span { color: var(--ink); font-weight: 700; }
.fq-passo.atual i { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); } .fq-passo small { font-size: 10.5px; color: var(--text-faint); min-height: 13px; }
.fq-linha { flex: 1; min-width: 24px; height: 2px; background: #D2D4CE; margin-top: 13px; }
/* janela de cotação */
.fq-mh p { margin-top: 2px; }
.fq-body { padding-top: 8px; }
.fq-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.fq-pacote { background: #F1F3F5; border: 1.5px solid #D2D4CE; border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.fq-pacote .form-row { margin-bottom: 0; gap: 8px; }
.fq-bloco-t { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink); margin-top: 4px; }
.fq-bloco-t::before { content: ''; width: 4px; height: 14px; background: var(--accent); border-radius: 2px; } .fq-bloco-t small { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--text-dim); }
.modal-body input.fq-chave { background: #FFFBE6 !important; border: 2px solid var(--gold) !important; font-family: 'IBM Plex Mono', monospace; font-size: 19px !important; font-weight: 700; letter-spacing: .06em; min-height: 46px; }
.fq-end { color: var(--text-dim); font-size: 12px; margin-top: -4px; }
.fq-embs { display: flex; flex-direction: column; gap: 5px; }
.fq-emb { display: flex; align-items: center; gap: 9px; background: #fff; border: 1.5px solid #C5CAD1; border-radius: 8px; padding: 7px 10px; cursor: pointer; font-size: 13px; }
.fq-emb input { position: absolute; opacity: 0; pointer-events: none; } .fq-emb-ico { font-size: 18px; } .fq-emb span:last-child { display: flex; flex-direction: column; } .fq-emb small { color: var(--text-dim); font-size: 11.5px; }
.fq-emb.on { border-color: var(--accent); background: var(--accent-tint); box-shadow: 0 0 0 2px var(--accent-tint); }
.fq-emb:has(input:focus-visible) { outline: 2px solid var(--accent); }
.fq-peso { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; color: var(--text-dim); }
.fq-peso b { font-family: 'IBM Plex Mono', monospace; font-size: 17px; color: var(--ink); margin-right: 4px; } .fq-alerta-txt { color: var(--gold); font-weight: 700; }
.fq-op { display: flex; gap: 9px; align-items: center; font-size: 13px; cursor: pointer; padding: 2px 0; } .fq-op input { width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
.fq-opcoes { min-width: 0; } .fq-opcoes-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; } .fq-opcoes-h b { font-size: 15px; }
.fq-espera { background: #fff; border: 1.5px dashed #C5CAD1; border-radius: 10px; padding: 28px 16px; text-align: center; color: var(--text-dim); font-size: 13px; }
.fq-spin { display: inline-block; width: 14px; height: 14px; border: 2px solid #C5CAD1; border-top-color: var(--accent); border-radius: 50%; animation: fqgira .8s linear infinite; vertical-align: -2px; margin-right: 6px; }
@keyframes fqgira { to { transform: rotate(360deg); } }
.fq-op-card { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; background: #fff; border: 1.5px solid #D2D4CE; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.fq-op-card.destaque { border-color: #9CD3AE; box-shadow: 0 3px 10px -6px rgba(47,125,79,.5); }
.fq-op-card:hover { border-color: var(--accent); }
.fq-op-logo { text-align: center; font-size: 24px; } .fq-op-logo img { max-width: 60px; max-height: 34px; object-fit: contain; }
.fq-op-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .fq-op-txt > b { font-size: 14.5px; } .fq-op-txt > span { font-size: 12.5px; color: var(--text-dim); } .fq-op-txt > span b { color: var(--ink); }
.fq-selos { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; } .fq-selos i { font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 20px; }
.fq-selos small { color: var(--text-faint); font-size: 11px; }
.fq-s-barato { background: var(--money-in-tint); color: var(--money-in); } .fq-s-rapido { background: #E7F0FF; color: #1F4E9E; } .fq-s-equi { background: var(--gold-tint); color: var(--gold); }
.fq-op-val { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; } .fq-op-val small { font-size: 10.5px; text-transform: uppercase; font-weight: 700; color: var(--text-dim); letter-spacing: .04em; }
.fq-op-val b { font-family: 'IBM Plex Mono', monospace; font-size: 19px; color: var(--money-in); } .fq-op-val span { font-size: 11.5px; color: var(--text-dim); }
.fq-usar { min-width: 74px; }
.fq-nao { margin-top: 4px; font-size: 12.5px; color: var(--text-dim); } .fq-nao summary { cursor: pointer; font-weight: 700; } .fq-nao div { padding: 4px 0 0 12px; }
.fq-rodape { margin-right: auto; }
/* compra */
.fq-compra { display: flex; flex-direction: column; gap: 12px; }
.fq-c-sec { background: #fff; border: 1.5px solid #D2D4CE; border-radius: 10px; padding: 10px 14px 4px; }
.fq-c-sec .form-row { margin-bottom: 8px; }
.modal-body input.fq-falta { border-color: var(--danger) !important; background: #FFF6F4 !important; }
.fq-c-pag { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px 14px; background: #F1F3F5; }
.fq-c-pag > div { display: flex; flex-direction: column; gap: 2px; } .fq-c-pag span { font-size: 11px; text-transform: uppercase; font-weight: 700; color: var(--text-dim); letter-spacing: .04em; }
.fq-c-pag b { font-family: 'IBM Plex Mono', monospace; font-size: 18px; } .fq-c-pag b.neg { color: var(--danger); }
@media (max-width: 1100px) { .fq-resumo { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fq-r-serv { grid-column: 1 / -1; } }
@media (max-width: 820px) {
  .fq-grid { grid-template-columns: 1fr; }
  .fq-op-card { grid-template-columns: 48px minmax(0, 1fr); } .fq-op-val { grid-column: 2; align-items: flex-start; flex-direction: row; gap: 8px; align-items: baseline; } .fq-usar { grid-column: 1 / -1; width: 100%; }
  .fq-c-pag { grid-template-columns: 1fr; }
}

/* =====================================================================================
   ENVIOS (Melhor Envio, Fase 4C — 24/10/2026): tela Envios e selo do envio na lista de Pedidos
   ===================================================================================== */
.env-sits { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.pv-sit.env-a-imp { border-top-color: #0064F2; } .sit-dot.env-a-imp { background: #0064F2; }
.pv-sit.env-a-ger { border-top-color: #F2B600; } .sit-dot.env-a-ger { background: #F2B600; }
.pv-sit.env-a-post { border-top-color: #3B82F6; } .sit-dot.env-a-post { background: #3B82F6; }
.pv-sit.env-a-at { border-top-color: #E0533F; } .sit-dot.env-a-at { background: #E0533F; }
.pv-sit.env-a-ent { border-top-color: #5DBB2A; } .sit-dot.env-a-ent { background: #5DBB2A; }
.pv-sit.env-a-canc { border-top-color: #9B9B9B; } .sit-dot.env-a-canc { background: #9B9B9B; }
.pv-sit.env-a-todos { border-top-color: var(--ink); } .sit-dot.env-a-todos { background: var(--ink-3); }
.env-filtros .pv-filtros-top select { min-width: 220px; width: auto; flex: 0 0 260px; }
.env-aviso-teste { background: #FFF7DD; border: 1.5px solid #E8C547; color: #6B4E00; border-radius: 10px; padding: 9px 14px; font-size: 13px; margin-bottom: 10px; }
.env-table td { vertical-align: top; }
/* celular/tablet: pedido, destinatário, situação e ações (transportadora, rastreio, previsão e valor ficam no histórico/pedido) */
@media (max-width: 900px) {
  .env-table th:nth-child(n), .env-table td:nth-child(n) { display: none; }
  .env-table th:nth-child(1), .env-table td:nth-child(1), .env-table th:nth-child(2), .env-table td:nth-child(2),
  .env-table th:nth-child(3), .env-table td:nth-child(3), .env-table th:nth-child(5), .env-table td:nth-child(5),
  .env-table th:nth-child(9), .env-table td:nth-child(9) { display: table-cell; }
  .env-table td .env-alerta { max-width: 46vw; }
}
@media (max-width: 640px) {
  .env-table th:nth-child(3), .env-table td:nth-child(3) { display: none; }
  .env-table td .env-alerta { max-width: 44vw; }
  .env-table td.env-acts { white-space: normal; width: 40px; padding-left: 4px; padding-right: 8px; }
  .env-table td.env-acts .env-mini { display: block; margin: 0 0 6px; }
}
.env-transp { display: flex; align-items: center; gap: 8px; min-width: 150px; }
.env-transp img { width: 34px; height: 34px; object-fit: contain; border-radius: 6px; background: #fff; border: 1px solid #E3E5E0; padding: 2px; flex-shrink: 0; }
.env-transp > div { display: flex; flex-direction: column; line-height: 1.25; }
.env-transp small { color: var(--text-dim); font-size: 11.5px; }
.env-st { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 3px 9px; border-radius: 20px; border: 1.5px solid; white-space: nowrap; }
.env-st-pend { background: var(--gold-tint, #FFF2C2); color: #8A6400; border-color: #E8C547; }
.env-st-ger { background: #FFF2C2; color: #8A6400; border-color: #F2B600; }
.env-st-post { background: #E7F0FF; color: #1F4E9E; border-color: #7FA6E8; }
.env-st-ent { background: #DDF5C9; color: #2E6B12; border-color: #8CCB63; }
.env-st-erro { background: #FBE0DC; color: #A02D20; border-color: #E2A198; }
.env-st-canc { background: #ECECEC; color: #555; border-color: #BDBDBD; }
.env-nova { color: #0064F2; }
.env-vence { color: #C0392B; font-weight: 800; }
.env-alerta { margin-top: 4px; font-size: 11.5px; font-weight: 700; color: #A02D20; background: #FBE0DC; border-radius: 6px; padding: 3px 7px; max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.env-cod { font-size: 12.5px; font-weight: 700; }
.env-link { background: none; border: 0; padding: 0; color: #0B4FC4; font-weight: 700; cursor: pointer; text-decoration: none; font-size: 12.5px; }
.env-link:hover { text-decoration: underline; }
.env-mini { background: #fff; border: 1.5px solid #C5CAD1; border-radius: 7px; padding: 3px 7px; cursor: pointer; font-size: 13px; line-height: 1.2; }
.env-mini:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.env-acts { white-space: nowrap; text-align: right; }
.env-acts .env-mini + .env-mini { margin-left: 4px; }
.env-tl { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid #D9DAD4; }
.env-tl li { position: relative; padding: 0 0 14px 6px; display: flex; flex-direction: column; gap: 2px; }
.env-tl li::before { content: ''; position: absolute; left: -25px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: #9AA3AE; border: 2px solid #fff; box-shadow: 0 0 0 1px #9AA3AE; }
.env-tl li:first-child::before { background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.env-tl li.env-tl-cancelada::before, .env-tl li.env-tl-nao_entregue::before { background: #E0533F; box-shadow: 0 0 0 1px #E0533F; }
.env-tl small { color: var(--text-dim); font-size: 12px; }
@media (max-width: 1100px) { .env-sits { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .env-sits { grid-template-columns: repeat(2, minmax(0, 1fr)); } .env-filtros .pv-filtros-top select { min-width: 0; width: 100%; flex: 1 1 100%; } }

/* selo do envio na lista de Pedidos */
.pv-env { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 3px 8px 3px 4px; border-radius: 8px; border: 1.5px solid; font-size: 11.5px; line-height: 1.2; max-width: 230px; }
.pv-env img { width: 22px; height: 22px; object-fit: contain; border-radius: 4px; background: #fff; flex-shrink: 0; }
.pv-env > span { display: flex; flex-direction: column; min-width: 0; }
.pv-env b { font-weight: 800; white-space: nowrap; }
.pv-env small { color: inherit; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-env[role=button] { cursor: pointer; }
.pv-env[role=button]:hover { filter: brightness(.95); box-shadow: 0 4px 10px -6px rgba(0,0,0,.4); }
.pv-env-cot { background: #EEF4FF; color: #0B4FC4; border-color: #9DBDF5; }
.pv-env-pend, .pv-env-ger { background: #FFF2C2; color: #7A5800; border-color: #E8C547; }
.pv-env-post { background: #E7F0FF; color: #1F4E9E; border-color: #7FA6E8; }
.pv-env-ent { background: #DDF5C9; color: #2E6B12; border-color: #8CCB63; }
.pv-env-erro { background: #FBE0DC; color: #A02D20; border-color: #E2A198; }
.pv-env-aviso { box-shadow: 0 0 0 2px #FBE0DC; }
.pv-env-alerta { margin-top: 3px; font-size: 11px; font-weight: 700; color: #A02D20; max-width: 230px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Melhor Envio — aba Rastreio automático (Fase 4C, 24/10/2026) */
.mex-rast h3 { font-size: 15px; margin: 16px 0 4px; }
.mex-rast-url { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0 12px; }
.mex-rast-url code { flex: 1 1 320px; min-width: 0; overflow-wrap: anywhere; background: var(--surface-2, #F4F5F2); border: 1px solid var(--line); border-radius: 6px; padding: 9px 12px; font-size: 12.5px; }
.mex-rast-passos { margin: 0 0 10px 18px; padding: 0; font-size: 13px; line-height: 1.6; }
/* Melhor Envio — Fase 4D (24/10/2026): saldo da carteira e agência de postagem */
.mex-kpi.alerta { border-left-color: #E0533F; background: #FFF6F4; }
.mex-ag { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 4px 0 12px; background: var(--surface); }
.mex-ag-h { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.mex-ag-h small, .mex-ag-atual small { display: block; font-size: 12px; color: var(--text-dim); }
.mex-ag-atual { margin-top: 8px; padding: 8px 10px; border-radius: 6px; background: #F4F7FF; border: 1px dashed #A9C2F5; font-size: 13px; }
.mex-ag-busca { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 8px; }
.mex-ag-busca input { flex: 1 1 180px; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
.mex-ag-itens { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.mex-ag-item { text-align: left; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; background: var(--surface); cursor: pointer; font: inherit; }
.mex-ag-item:hover { border-color: #0064F2; }
.mex-ag-item.active { border-color: #0064F2; background: #EAF2FF; box-shadow: inset 3px 0 0 #0064F2; }
.mex-ag-item b { display: block; font-size: 13px; } .mex-ag-item small { display: block; font-size: 12px; color: var(--text-dim); }
.mex-ag-linha { margin-top: 2px; } .mex-ag-linha i { color: var(--text-faint); }
/* Frete: passo "emitir a NF-e antes da etiqueta" (24/10/2026) */
.fq-passo-nfe { background: #F4F7FF; border: 1px solid #A9C2F5; border-left: 4px solid #0064F2; border-radius: var(--radius); padding: 10px 14px; font-size: 13px; margin-bottom: 10px; }
.fq-passo-nfe ol { margin: 6px 0 6px 18px; padding: 0; line-height: 1.55; }
.fq-passo-nfe small { display: block; color: var(--text-dim); font-size: 12px; }
#fq-card > .fq-ok { margin-bottom: 10px; }

/* Envios — central de expedição (24/10/2026): selo do canal e etapa "A preparar" */
.env-canal { display: inline-block; font-size: 10.5px; font-weight: 800; padding: 1px 6px; border-radius: 4px; margin-top: 2px; background: #ECEDEA; color: #3A4048; }
.env-c-me { background: #E6F0FF; color: #0050C8; } .env-c-ml { background: #FFF0A8; color: #6B5300; } .env-c-sh { background: #FFE4D6; color: #B3400F; }
.env-st-prep { background: #EEE9FB; color: #5534A8; border-color: #B9A6F0; }
.pv-sit.env-a-prep { border-top-color: #7C5CE0; } .sit-dot.env-a-prep { background: #7C5CE0; }
.env-sits { grid-template-columns: repeat(8, minmax(0, 1fr)); }
@media (max-width: 1100px) { .env-sits { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .env-sits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 28/10/2026 — Entrega: cliente cadastrado, busca e histórico de taxas */
.pe-busca-w { position: relative; margin-bottom: 8px; }
.pe-busca-w .field-wrap { width: 100%; }
.pe-busca-w input#pe-busca { width: 100%; box-sizing: border-box; background: #fffbe6; border: 1.5px solid #d4a017; font-size: 15px; font-weight: 600; }
.pe-busca-w input#pe-busca:focus { border-color: var(--money-in, #16a34a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--money-in, #16a34a) 22%, transparent); }
.pe-busca-res { max-height: 250px; overflow-y: auto; }
.pe-busca-res .customer-row { margin-top: 6px; padding: 8px 12px; gap: 12px; align-items: flex-start; }
.pe-busca-ult { text-align: right; font-size: 11.5px; line-height: 1.35; max-width: 46%; }
.pe-cli-sel { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; margin: 4px 0 6px;
  border: 1.5px solid var(--money-in, #16a34a); border-radius: 6px; background: color-mix(in srgb, var(--money-in, #16a34a) 8%, var(--surface, #fff)); }
.pe-hist { margin: 0 0 10px; padding: 8px 12px; border: 1px solid var(--line); border-left: 4px solid #1f2937; border-radius: 6px; background: var(--surface, #fff); font-size: 12.5px; }
.pe-hist-ult { margin-bottom: 6px; font-size: 13px; }
.pe-hist-ult b { font-size: 15px; }
.pe-hist-aviso { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 10px; background: #fef3c7; color: #92400e; font-weight: 700; font-size: 11.5px; }
.pe-hist-t { width: 100%; border-collapse: collapse; }
.pe-hist-t th { text-align: left; font-size: 11px; color: var(--text-dim); background: #e5e7eb; padding: 3px 6px; }
.pe-hist-t td { padding: 3px 6px; border-top: 1px solid var(--line); }
.pe-hist-t .num { text-align: right; }
.pe-hist-ne td { color: var(--danger, #dc2626); }
@media (max-width: 640px) { .pe-busca-ult { display: none; } }

/* 31/10/2026 — Contas a pagar: compras no cartão agrupadas pela fatura */
.conta-fatura td { border-top: 2px solid #C9CDD2; font-weight: 600; }
.conta-fatura .fat-toggle { color: var(--text); font: inherit; font-weight: 500; text-decoration: none; padding: 0; text-align: left; }
.conta-fatura .fat-toggle:hover { color: var(--accent); }
.conta-fatura .fat-seta { display: inline-block; width: 14px; color: var(--accent); font-weight: 700; }
.conta-fatura-item td { font-size: 12.5px; color: var(--text-dim); background: #FAFAF8; }
.conta-fatura-item td:nth-child(3) { padding-left: 26px; }
.conta-fatura-item .fat-item-seta { color: #9AA3AE; margin-left: -16px; }

/* 08/11/2026 — Mercado Livre: tipo do anúncio vendido (Clássico / Premium) e bloco "Anúncio vendido" no pedido */
.pv-tipo { display: inline-block; font-size: 10.5px; font-weight: 800; border-radius: 10px; padding: 1px 7px; vertical-align: 1px; letter-spacing: .02em; }
.pv-tipo-cla { background: #E3E7EC; color: #2D3277; border: 1px solid #B9C0CA; }
.pv-tipo-pre { background: #2D3277; color: #FFE600; }
.pv-tipo-gra { background: #F1F2EE; color: #5E6670; }
.pf-ml-anuncio { display: flex; flex-direction: column; gap: 6px; margin: -6px 0 14px; }
.pf-ml-anuncio-l { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; background: #FFFDE7; border: 1.5px solid #E8D547; border-radius: 9px; padding: 8px 11px; font-size: 13px; }
.pf-ml-anuncio-r { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--text-dim); }
.pf-ml-anuncio-l a.mono { font-weight: 700; }
.pf-ml-anuncio-t { flex: 1 1 220px; min-width: 0; color: var(--text); overflow-wrap: anywhere; }
.pf-ml-anuncio-v b { font-size: 14px; }
.pf-ml-anuncio-v s { color: var(--text-dim); }
.pf-ml-anuncio-v small { color: #C62828; font-weight: 700; }
.pf-ml-anuncio > small { color: var(--text-dim); }
@media (max-width: 760px) { .pf-ml-anuncio-t { flex-basis: 100%; } }
/* 08/11/2026 — Marketplaces → Anúncios: opção "Mostrar contas desconectadas" */
.mkp-t-inativas { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--text-dim); white-space: nowrap; cursor: pointer; }

/* 08/11/2026 — simulador de preço: conferência do preço manual (ml-central.js mlcMargemManual) */
.mlc-mg-manual:empty{display:none}
.mlc-mg-man-box{margin-top:12px;padding:10px 12px;border:1px dashed #9aa4b2;border-radius:10px;background:#f8fafc}
.mlc-mg-man-box.ok{border-color:#2fa84f;background:#f1fbf4}
.mlc-mg-man-box.baixa{border-color:#e0a800;background:#fffaeb}
.mlc-mg-man-box.neg{border-color:#d93025;background:#fdf1f0}
.mlc-mg-man-tit{font-size:15px;margin-bottom:6px}
.mlc-mg-man-box .btn{margin-top:8px;width:100%}
@media (prefers-color-scheme:dark){.mlc-mg-man-box{background:transparent}}

/* 08/11/2026 — Shopee › Anúncios: seleção e Ativar/Pausar em lote (shopee.js spSelBarra) */
.sp-tabela .sp-sel{width:34px;text-align:center}
.sp-tabela .sp-sel input{width:18px;height:18px;cursor:pointer}
.sp-tabela tr.sp-marcada td{background:#fff4ec}
.sp-selbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 14px;margin-bottom:10px;border-left:4px solid #ee4d2d}
.sp-selbar-bt{margin-left:auto;display:flex;gap:8px;align-items:center}
@media (prefers-color-scheme:dark){.sp-tabela tr.sp-marcada td{background:rgba(238,77,45,.12)}}

/* 08/11/2026 — Shopee › Anúncios no padrão da lista do Mercado Livre (shopee.js spAnunciosTabela) */
.sp-kcards{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:12px 0}
.sp-kcard{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:12px 14px;border:1px solid var(--border,#dde1e6);border-left:4px solid #c5cad1;border-radius:10px;background:var(--card,#fff);color:inherit;cursor:pointer;text-align:left;font:inherit}
.sp-kcard small{font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;opacity:.75}
.sp-kcard b{font-size:24px;line-height:1.1}
.sp-kcard span{font-size:11px;opacity:.7}
.sp-kcard.escuro{border-left-color:#111}.sp-kcard.verde{border-left-color:#2fae59}.sp-kcard.cinza{border-left-color:#8a94a3}
.sp-kcard.laranja{border-left-color:#ee4d2d}.sp-kcard.vermelho{border-left-color:#c0392b}
.sp-kcard.on{background:#16191d;color:#fff;border-color:#16191d}
.sp-varchip{background:#fff1ec!important;color:#d0391b!important;border-color:#f5c3b5!important}
.sp-tab tr.sp-pausado td{opacity:.85}
.sp-sel-info{opacity:.75;margin-right:6px}
@media (max-width:900px){.sp-kcards{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 08/11/2026 — Painel da Shopee (shopee.js spPainel) */
.spp-topo{display:flex;gap:16px;align-items:stretch;justify-content:space-between;flex-wrap:wrap;margin:6px 0 18px}
.spp-conta{flex:1;min-width:280px;background:var(--surface);border:1px solid var(--line);border-left:4px solid #EE4D2D;border-radius:10px;padding:14px 16px;display:flex;flex-direction:column;gap:8px}
.spp-loja{display:flex;gap:10px;align-items:center}.spp-loja b{font-size:15px}.spp-loja small{display:block;color:var(--text-dim);font-size:12px}
.spp-dot{width:10px;height:10px;border-radius:50%;background:#C5CAD1;flex-shrink:0}.spp-dot.ok{background:#2FAE59;box-shadow:0 0 0 4px rgba(47,174,89,.15)}.spp-dot.off{background:#C0392B}
.spp-flags{display:flex;gap:6px;flex-wrap:wrap}.spp-flags span{font-size:11.5px;padding:3px 8px;border-radius:999px;background:var(--line-soft);color:var(--text-dim)}.spp-flags span.on{background:var(--accent-tint);color:var(--accent-2);font-weight:600}
.spp-erro{font-size:12px;color:var(--danger);background:var(--danger-tint);padding:6px 10px;border-radius:6px}
.spp-botoes{display:flex;gap:8px;align-items:center}
.spp-bloco{margin:0 0 18px}
.spp-h{display:flex;align-items:baseline;gap:10px;font-family:'Fraunces',serif;font-size:15px;font-weight:600;letter-spacing:.02em;margin:0 0 10px;color:var(--text)}
.spp-h small{font-family:'IBM Plex Sans',sans-serif;font-size:12px;font-weight:400;color:var(--text-dim)}.spp-h .btn-link{margin-left:auto;font-family:'IBM Plex Sans',sans-serif;font-size:12.5px}
.spp-tarefas{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:8px}
.spp-tarefa{display:flex;align-items:center;gap:12px;text-align:left;background:var(--surface);border:1px solid var(--line);border-left:4px solid #3A7BD5;border-radius:10px;padding:10px 14px;cursor:pointer;font:inherit;color:inherit;transition:transform .12s,box-shadow .12s}
.spp-tarefa:hover{transform:translateY(-1px);box-shadow:0 6px 16px -8px rgba(0,0,0,.25)}
.spp-tarefa.erro{border-left-color:#C0392B;background:#FDF3F1}.spp-tarefa.alerta{border-left-color:#E0A526;background:#FFFAEE}
.spp-tarefa>b{font-size:22px;min-width:30px}.spp-tarefa div{flex:1}.spp-tarefa div span{display:block;font-weight:600;font-size:13.5px}.spp-tarefa div small{color:var(--text-dim);font-size:12px}.spp-tarefa em{font-style:normal;color:var(--text-faint);font-size:18px}
.spp-ico{font-size:20px;line-height:1}
.spp-tudo-ok{display:flex;gap:12px;align-items:center;background:var(--accent-tint);border:1px solid #BfE5CB;border-radius:10px;padding:14px 16px}.spp-tudo-ok>span{width:32px;height:32px;border-radius:50%;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700}.spp-tudo-ok small{display:block;color:var(--text-dim)}
.spp-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.spp-kpi{display:flex;gap:10px;align-items:flex-start;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:12px 14px;cursor:pointer;font:inherit;color:inherit}
.spp-kpi[disabled]{cursor:default}.spp-kpi small{display:block;font-size:12px;font-weight:600;color:var(--text-dim)}.spp-kpi b{display:block;font-family:'Fraunces',serif;font-size:26px;line-height:1.15}.spp-kpi div>span{font-size:11.5px;color:var(--text-faint)}
.spp-kpi.alerta{border-color:#F1D28A;background:#FFFAEE}.spp-kpi.erro{border-color:#E9B1A9;background:#FDF3F1}.spp-kpi.erro b{color:var(--danger)}.spp-kpi.ok b{color:var(--accent-2)}
.spp-vendas{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:12px}
.spp-vcards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.spp-vcard{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:12px 14px}.spp-vcard small{display:block;font-size:12px;font-weight:600;color:var(--text-dim)}
.spp-vcard b{display:block;font-family:'Fraunces',serif;font-size:21px;margin:2px 0}.spp-vcard span{font-size:11.5px;color:var(--text-faint)}.spp-vcard em{font-style:normal}
.spp-vcard.destaque{grid-column:span 3;background:linear-gradient(135deg,#EE4D2D,#F7703F);border:0;color:#fff}.spp-vcard.destaque small,.spp-vcard.destaque span{color:rgba(255,255,255,.88)}.spp-vcard.destaque b{font-size:30px}
.spp-vcard.neg b{color:var(--danger)}
.spp-var{display:inline-block;font-weight:700;font-size:11px;padding:1px 6px;border-radius:999px;background:rgba(255,255,255,.25);margin:0 4px}.spp-var.up{color:#fff;background:rgba(18,120,52,.55)}.spp-var.down{color:#fff;background:rgba(120,20,10,.45)}
.spp-graf-box{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:12px 14px;display:flex;flex-direction:column}
.spp-graf-tit{display:flex;justify-content:space-between;align-items:baseline;gap:8px}.spp-graf-tit small{color:var(--text-faint);font-size:11.5px}
.spp-graf{width:100%;height:190px;margin-top:6px;flex:1}
.spp-barra{fill:#F6B8A6}.spp-barra.hoje{fill:#EE4D2D}.spp-barra.zero{fill:var(--line)}.spp-eixo{stroke:var(--line);stroke-width:1}
.spp-num{font-size:10px;fill:var(--text-dim);text-anchor:middle;font-weight:600}.spp-dia{font-size:10px;fill:var(--text-faint);text-anchor:middle}
.spp-duas{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:12px}
.spp-painel{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:14px 16px}
.spp-tab{width:100%;border-collapse:collapse;font-size:13px}.spp-tab th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--text-dim);font-weight:600;padding:6px 8px;border-bottom:1px solid var(--line)}
.spp-tab td{padding:8px;border-bottom:1px solid var(--line-soft);vertical-align:top}.spp-tab td small{display:block;color:var(--text-faint);font-size:11px}.spp-tab .num{text-align:right;white-space:nowrap}
.spp-tab tbody tr{cursor:pointer}.spp-tab tbody tr:hover td{background:var(--paper)}.spp-tab tr.canc td{opacity:.6}
.spp-etapa{display:inline-block;font-size:11.5px;font-weight:600;padding:2px 8px;border-radius:999px;background:#FFF1EC;color:#C0391B}.spp-etapa.ok{background:var(--accent-tint);color:var(--accent-2)}.spp-etapa.erro{background:var(--danger-tint);color:var(--danger)}.spp-etapa.canc{background:var(--line-soft);color:var(--text-dim)}
.spp-vazio{color:var(--text-dim);font-size:13px;padding:18px 4px;text-align:center}
.spp-top{display:flex;flex-direction:column;gap:10px}.spp-top-l{display:flex;gap:10px;align-items:center}
.spp-pos{width:24px;height:24px;border-radius:50%;background:#FFF1EC;color:#EE4D2D;font-weight:700;font-size:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.spp-top-l>div{flex:1;min-width:0}.spp-top-l>div b{display:block;font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.spp-top-l>div i{display:block;height:6px;border-radius:3px;background:#EE4D2D;margin-top:4px}
.spp-top-v{text-align:right;font-size:12px}.spp-top-v small{display:block;color:var(--text-faint)}
.spp-saude{display:grid;grid-template-columns:1fr 1fr;gap:24px}.spp-saude-n{font-size:13.5px;margin-bottom:8px}.spp-saude-n small{color:var(--text-dim)}
.spp-seg{display:flex;height:14px;border-radius:7px;overflow:hidden;background:var(--line-soft);gap:2px}.spp-seg i{display:block}
.spp-prog{height:14px;border-radius:7px;background:#F6E1DD;overflow:hidden}.spp-prog i{display:block;height:100%;background:var(--accent);border-radius:7px}
.spp-leg{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:10px}.spp-leg button{background:none;border:0;padding:2px 0;font:inherit;font-size:12.5px;color:var(--text);cursor:pointer;display:flex;align-items:center;gap:6px}.spp-leg button:hover{text-decoration:underline}.spp-leg small{color:var(--text-faint)}
.spp-leg i{width:10px;height:10px;border-radius:3px;display:inline-block}
.spp-seg .ok,.spp-leg .ok{background:#2FAE59}.spp-seg .meio,.spp-leg .meio{background:#E0A526}.spp-seg .esg,.spp-leg .esg{background:#C0392B}.spp-seg .pau,.spp-leg .pau{background:#8A94A3}.spp-seg .out,.spp-leg .out{background:#6B4FBB}
@media (max-width:1100px){.spp-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.spp-vendas,.spp-duas,.spp-saude{grid-template-columns:1fr}}
@media (max-width:600px){.spp-kpis,.spp-vcards{grid-template-columns:repeat(2,minmax(0,1fr))}.spp-vcard.destaque{grid-column:span 2}.spp-tarefas{grid-template-columns:1fr}}
.spp-painel{overflow-x:auto}.spp-tarefas{grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr))}.spp-conta{min-width:0}
@media (max-width:600px){.spp-botoes{width:100%}.spp-botoes .btn{flex:1}.spp-saude{gap:16px}}
