/* =========================================================
   COMPONENTES — botões, formulários, cartões, tabelas, selos de status,
   modais, notificações, ficha do cliente e o responsivo geral.
   Os arquivos de CSS são carregados nesta ordem (a ordem importa):
   base.css · componentes.css · consulta-cliente-e-formularios.css · produto-e-empresas.css · painel-e-dashboard.css · planilhas.css
   ========================================================= */

/* ─── COMPONENTS ─────────────────────────────────────────── */
.page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 28px; gap: 16px; }
.page-header-left h2 { font-size: 1.5rem; font-weight: 800; color: var(--gray-900); margin-bottom: 4px; }
.page-header-left p { font-size: 0.875rem; color: var(--gray-500); }
.page-header-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 28px; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
/* Avisos no celular (Meu Perfil, 16/10/2026) */
.avisos-card { grid-column: 1 / -1; }
.avisos-card .card-header h3 { display: flex; align-items: center; gap: 8px; }
.avisos-card .card-header h3 svg { width: 18px; height: 18px; color: var(--primary-600); }
.avisos-estado { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-md); border: 1px solid var(--gray-200); background: var(--gray-50); font-size: 0.875rem; color: var(--gray-700); }
.avisos-estado > svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.avisos-estado p { margin: 4px 0 0; color: var(--gray-600); }
.avisos-estado-ok { background: #F0FDF4; border-color: #BBF7D0; }
.avisos-estado-ok > svg { color: #16A34A; }
.avisos-estado-alerta { background: #FFFBEB; border-color: #FDE68A; }
.avisos-estado-alerta > svg { color: #D97706; }
.avisos-estado-cinza > svg { color: var(--gray-500); }
.avisos-aparelho { font-weight: 400; color: var(--gray-500); }
.avisos-passos { margin: 6px 0 0; padding-left: 20px; color: var(--gray-700); }
.avisos-passos li { margin: 2px 0; }
.avisos-botoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.avisos-botoes .btn svg { width: 16px; height: 16px; }
.avisos-bloco { margin-top: 20px; }
.avisos-titulo { margin: 0 0 8px; font-size: 0.75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gray-500); }
.avisos-evento { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 0.9rem; color: var(--gray-800); cursor: pointer; border-bottom: 1px solid var(--gray-100); }
.avisos-evento input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--primary-600); }
.avisos-lista { list-style: none; margin: 0; padding: 0; }
.avisos-ap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--gray-100); font-size: 0.875rem; }
.avisos-ap p { margin: 2px 0 0; }
.avisos-ap .btn svg { width: 16px; height: 16px; }
.avisos-aqui { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--primary-50); color: var(--primary-700); font-size: 0.7rem; font-weight: 700; }
.avisos-erro { color: #B91C1C; }
.stat-card {
  background: #fff; border-radius: var(--radius-lg); padding: 20px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100);
  display: flex; align-items: flex-start; gap: 14px;
  transition: all var(--transition-base);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-icon { width: 44px; height: 44px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-icon svg { width: 22px; height: 22px; }
.stat-icon.pending { background: var(--status-pending-bg); color: var(--status-pending-dot); }
.stat-icon.andamento { background: var(--status-andamento-bg); color: var(--status-andamento-dot); }
.stat-icon.espera { background: var(--status-espera-bg); color: var(--status-espera-dot); }
.stat-icon.naoaprovado { background: var(--status-naoaprovado-bg); color: var(--status-naoaprovado-dot); }
.stat-icon.concluido { background: var(--status-concluido-bg); color: var(--status-concluido-dot); }
.stat-icon.total { background: var(--primary-50); color: var(--primary-600); }
.stat-info { flex: 1; }
.stat-value { font-size: 1.65rem; font-weight: 800; color: var(--gray-900); line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 0.78rem; color: var(--gray-500); font-weight: 500; }
.card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100); overflow: hidden; }
.card-header { padding: 18px 22px; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-header h3 { font-size: 0.95rem; font-weight: 700; color: var(--gray-800); }
.card-body { padding: 22px; }
.table-wrapper { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100); }
table { width: 100%; border-collapse: collapse; background: #fff; }
thead { background: var(--gray-50); }
thead th { padding: 12px 16px; text-align: left; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-500); border-bottom: 1px solid var(--gray-200); white-space: nowrap; }
tbody tr { border-bottom: 1px solid var(--gray-100); transition: background var(--transition-fast); cursor: pointer; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--primary-50); }
tbody td { padding: 13px 16px; font-size: 0.875rem; color: var(--gray-700); vertical-align: middle; }
.table-protocolo { font-family: 'Courier New', monospace; font-size: 0.8rem; font-weight: 700; color: var(--primary-700); background: var(--primary-50); padding: 3px 8px; border-radius: var(--radius-sm); white-space: nowrap; display: inline-block; }

/* Listas de solicitações (Minhas Solicitações / Painel do Setor):
   colunas com largura mínima e células que não quebram o texto, para nomes,
   datas e status ficarem legíveis. Se a tela for estreita, a tabela rola na
   horizontal em vez de espremer as colunas. */
.tabela-solicitacoes { min-width: 900px; }
.tabela-solicitacoes.tabela-painel { min-width: 920px; }
.tabela-solicitacoes tbody td { padding: 14px 7px; font-size: 0.85rem; }
.tabela-solicitacoes thead th { padding: 12px 7px; }
.tabela-solicitacoes tbody td:first-child,
.tabela-solicitacoes thead th:first-child { padding-left: 16px; }
.tabela-solicitacoes tbody td:last-child,
.tabela-solicitacoes thead th:last-child { padding-right: 16px; }
.tabela-solicitacoes .col-data,
.tabela-solicitacoes .col-atualizado,
.tabela-solicitacoes .col-sold { white-space: nowrap; }
.tabela-solicitacoes .col-sold { font-weight: 600; }
.tabela-solicitacoes .col-nome { min-width: 80px; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabela-solicitacoes .col-tipo { min-width: 105px; line-height: 1.35; }
.tabela-solicitacoes .col-status { min-width: 125px; line-height: 1.9; }
.tabela-solicitacoes .badge { padding: 3px 8px; }
.tabela-solicitacoes .col-atualizado { color: var(--gray-500); font-size: 0.8rem; }

/* Colunas curtas/selos centralizadas (Setor, SOLD, Status) */
.tabela-solicitacoes th.col-centro,
.tabela-solicitacoes td.col-centro { text-align: center; }

/* Menu lateral recolhido (só telas grandes): mostra só os ícones */
@media (min-width: 769px) {
  .sidebar { transition: width var(--transition-base), transform var(--transition-base); }
  .main-area { transition: margin-left var(--transition-base); }
  body.sidebar-recolhida { --sidebar-width: 76px; }
  body.sidebar-recolhida .sidebar-logo { display: none; }
  body.sidebar-recolhida .sidebar-nav { padding: 18px 10px; }
  body.sidebar-recolhida .nav-section-label { display: none; }
  body.sidebar-recolhida .nav-item { justify-content: center; gap: 0; padding: 12px 0; }
  body.sidebar-recolhida .nav-item > span:not(.nav-badge) { display: none; }
  body.sidebar-recolhida .nav-item .nav-badge { position: absolute; top: 3px; right: 6px; margin-left: 0; }
  body.sidebar-recolhida .sidebar-footer { padding: 14px 10px; }
  body.sidebar-recolhida .sidebar-user { justify-content: center; padding: 8px 0; }
  body.sidebar-recolhida .sidebar-user-info,
  body.sidebar-recolhida .sidebar-user > svg { display: none; }
}
.table-empty { text-align: center; padding: 48px 20px; }
.table-empty svg { width: 48px; height: 48px; margin: 0 auto 12px; color: var(--gray-300); }
.table-empty p { font-size: 0.875rem; color: var(--gray-400); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-full); font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.badge-pending { background: var(--status-pending-bg); color: var(--status-pending-text); }
.badge-pending::before { background: var(--status-pending-dot); }
.badge-andamento { background: var(--status-andamento-bg); color: var(--status-andamento-text); }
.badge-andamento::before { background: var(--status-andamento-dot); }
.badge-espera { background: var(--status-espera-bg); color: var(--status-espera-text); }
.badge-espera::before { background: var(--status-espera-dot); }
.badge-naoaprovado { background: var(--status-naoaprovado-bg); color: var(--status-naoaprovado-text); }
.badge-naoaprovado::before { background: var(--status-naoaprovado-dot); }
.badge-concluido { background: var(--status-concluido-bg); color: var(--status-concluido-text); }
.badge-concluido::before { background: var(--status-concluido-dot); }
.badge-fin { background: #EDE9FE; color: #5B21B6; font-size: 0.7rem; }
.badge-fin::before { display: none; }
.badge-com { background: #FCE7F3; color: #9D174D; font-size: 0.7rem; }
.badge-com::before { display: none; }
.badge-ti { background: #CCFBF1; color: #0F766E; font-size: 0.7rem; }
.badge-ti::before { display: none; }
.badge-fat { background: #FEF9C3; color: #854D0E; font-size: 0.7rem; } /* rodada 73: Faturamento */
.badge-fat::before { display: none; }
.badge-ven { background: #DBEAFE; color: #1D4ED8; font-size: 0.7rem; }
.badge-ven::before { display: none; }
.badge-reaberta { background: #FFEDD5; color: #9A3412; font-size: 0.7rem; }
.badge-reaberta::before { display: none; }
/* Selo "Parada" (24h+ sem movimento) — só pra quem atende */
.badge-parada { background: #FEE2E2; color: #991B1B; font-size: 0.7rem; }
.badge-parada::before { display: none; }

/* "+N" dos status nas tabelas: mostra os demais selos ao passar o mouse / clicar */
.status-mais { position: relative; display: inline-flex; vertical-align: middle; }
.status-mais-chip { border: none; cursor: pointer; font: inherit; font-size: 0.7rem; font-weight: 700; padding: 4px 8px; border-radius: var(--radius-full); background: var(--gray-100); color: var(--gray-600); }
.status-mais-chip:hover { background: var(--gray-200); }
.status-mais-pop { display: none; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 30; flex-direction: column; align-items: flex-start; gap: 4px; padding: 6px 8px; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-md); box-shadow: 0 4px 14px rgba(0,0,0,0.12); white-space: nowrap; }
.status-mais:hover .status-mais-pop,
.status-mais.aberto .status-mais-pop { display: flex; }
.badge-info { background: var(--primary-50); color: var(--primary-700); }
.badge-info::before { display: none; }
.filter-bar { position: relative; background: #fff; border-radius: var(--radius-lg); padding: 30px 16px 16px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100); margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.filter-group { display: flex; flex-direction: column; gap: 5px; min-width: 150px; flex: 1 1 150px; }
/* Botão "Filtros" — só aparece no celular (ver @media 768px) */
.filter-toggle-mobile { display: none; }
/* Campo de moeda (Limite Desejado): "R$" e ",00" fixos em volta do número */
.input-moeda { position: relative; display: flex; align-items: center; }
.input-moeda .form-input { width: 100%; padding-left: 42px; }
.input-moeda-prefixo, .input-moeda-sufixo { position: absolute; top: 50%; transform: translateY(-50%); pointer-events: none; }
.input-moeda-prefixo { left: 14px; font-weight: 600; font-size: 0.9rem; color: var(--gray-500); }
/* ",00" vai logo depois do número (posição calculada em App.posicionarSufixoMoeda) */
.input-moeda-sufixo { left: 42px; visibility: hidden; color: var(--gray-500); font-size: inherit; }
/* Campo "Buscar" um pouco mais largo: o placeholder "Protocolo, SOLD ou Razão Social" não cabe em 150px */
.filter-group.filter-group-busca { flex: 2 1 250px; min-width: 250px; }
.filter-group label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-500); }
.filter-input, .filter-select { box-sizing: border-box; width: 100%; min-width: 0; height: 40px; padding: 0 10px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-md); font-size: 0.875rem; color: var(--gray-800); background: var(--gray-50); outline: none; transition: border-color var(--transition-fast); font-family: inherit; }
.filter-input:focus, .filter-select:focus { border-color: var(--primary-400); background: #fff; }
/* "Limpar" fica no canto superior direito da barra, sem ocupar espaço de coluna */
.filter-actions { display: flex; gap: 8px; position: absolute; top: 4px; right: 10px; }
.filter-actions .btn { height: auto; padding: 2px 8px; }
.quick-access-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.quick-card {
  background: #fff; border: 1.5px solid var(--gray-100); border-radius: var(--radius-lg); padding: 18px 14px;
  text-align: center; cursor: pointer; transition: all var(--transition-base);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.quick-card:hover { border-color: var(--primary-300); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.quick-card-icon { width: 44px; height: 44px; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; }
.quick-card-icon.fin { background: #EDE9FE; color: #7C3AED; }
.quick-card-icon.com { background: #FCE7F3; color: #BE185D; }
.quick-card-icon.ti { background: #CCFBF1; color: #0D9488; }
.quick-card-icon.fat { background: #FEF3C7; color: #B45309; }
.quick-card svg { width: 22px; height: 22px; }
.quick-card span { font-size: 0.78rem; font-weight: 600; color: var(--gray-700); line-height: 1.3; }
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity var(--transition-base); }
.modal-overlay.show { opacity: 1; pointer-events: all; }
.modal { background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-2xl); width: 100%; max-width: 680px; max-height: 90vh; overflow-y: auto; transform: scale(0.95) translateY(10px); transition: transform var(--transition-base); }
.modal-overlay.show .modal { transform: scale(1) translateY(0); }
.modal.modal-lg { max-width: 860px; }
.modal.modal-sm { max-width: 460px; }
.modal-header { padding: 22px 26px 18px; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: #fff; z-index: 1; }
.modal-header h3 { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); }
.modal-close { width: 32px; height: 32px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: var(--gray-400); transition: all var(--transition-fast); }
.modal-close:hover { background: var(--gray-100); color: var(--gray-700); }
.modal-close svg { width: 18px; height: 18px; }
.modal-body { padding: 22px 26px; }
.modal-footer { padding: 16px 26px 22px; border-top: 1px solid var(--gray-100); display: flex; justify-content: flex-end; gap: 10px; position: sticky; bottom: 0; background: #fff; }
.form-section { margin-bottom: 24px; }
.form-section-title { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-400); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--gray-100); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-full { grid-column: 1 / -1; }
.form-select, .form-textarea { width: 100%; padding: 10px 14px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-md); font-size: 0.875rem; color: var(--gray-800); background: var(--gray-50); transition: border-color var(--transition-fast), box-shadow var(--transition-fast); outline: none; font-family: inherit; }
.form-select:focus, .form-textarea:focus { border-color: var(--primary-500); background: #fff; box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.form-select.error, .form-textarea.error, .form-input.error { border-color: var(--danger); }
.form-textarea { resize: vertical; min-height: 100px; }
.required-mark { color: var(--danger); }
.form-hint { font-size: 0.75rem; color: var(--gray-400); margin-top: 4px; }
.checkbox-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-md); background: var(--gray-50); padding: 12px 14px; max-height: 220px; overflow-y: auto; }
.checkbox-option { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--gray-700); cursor: pointer; }
.checkbox-option input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary-500); cursor: pointer; }
.file-upload-area { border: 2px dashed var(--gray-300); border-radius: var(--radius-lg); padding: 28px; text-align: center; cursor: pointer; transition: all var(--transition-base); background: var(--gray-50); }
.file-upload-area:hover, .file-upload-area.dragover { border-color: var(--primary-400); background: var(--primary-50); }
.file-upload-area svg { width: 36px; height: 36px; color: var(--gray-400); margin: 0 auto 10px; }
.file-upload-area p { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 4px; }
.file-upload-area span { font-size: 0.75rem; color: var(--gray-400); }
.file-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.file-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-md); }
.file-item-icon { width: 32px; height: 32px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.file-item-icon.img { background: #DBEAFE; color: var(--primary-600); }
.file-item-icon.pdf { background: #FEE2E2; color: var(--danger); }
.file-item-icon svg { width: 16px; height: 16px; }
.file-item-name { flex: 1; font-size: 0.82rem; color: var(--gray-700); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-item-size { font-size: 0.72rem; color: var(--gray-400); white-space: nowrap; }
.file-item-remove { color: var(--gray-400); transition: color var(--transition-fast); padding: 3px; cursor: pointer; }
.file-item-remove:hover { color: var(--danger); }
.file-item-remove svg { width: 14px; height: 14px; }
.timeline { display: flex; flex-direction: column; }
.timeline-item { display: flex; gap: 14px; padding-bottom: 20px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot-wrap { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.timeline-dot { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.timeline-dot svg { width: 14px; height: 14px; }
.timeline-dot.pending { background: var(--status-pending-bg); color: var(--status-pending-dot); }
.timeline-dot.andamento { background: var(--status-andamento-bg); color: var(--status-andamento-dot); }
.timeline-dot.espera { background: var(--status-espera-bg); color: var(--status-espera-dot); }
.timeline-dot.naoaprovado { background: var(--status-naoaprovado-bg); color: var(--status-naoaprovado-dot); }
.timeline-dot.concluido { background: var(--status-concluido-bg); color: var(--status-concluido-dot); }
.timeline-dot.created { background: var(--primary-50); color: var(--primary-600); }
.timeline-line { width: 2px; flex: 1; background: var(--gray-100); margin-top: 4px; min-height: 16px; }
.timeline-content { flex: 1; padding-top: 4px; }
.timeline-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.timeline-user { font-size: 0.82rem; font-weight: 600; color: var(--gray-800); }
.timeline-date { font-size: 0.75rem; color: var(--gray-400); }
.timeline-status-change { font-size: 0.78rem; color: var(--gray-600); display: flex; align-items: center; gap: 6px; }
.timeline-obs { margin-top: 6px; font-size: 0.82rem; color: var(--gray-600); background: var(--gray-50); border-radius: var(--radius-md); padding: 8px 12px; border-left: 3px solid var(--primary-200); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.detail-field label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-400); display: block; margin-bottom: 3px; }
.detail-field value { font-size: 0.9rem; color: var(--gray-800); font-weight: 500; display: block; }
.attachments-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; align-items: start; }
.attachment-thumb { min-width: 0; border: 1px solid var(--gray-200); border-radius: var(--radius-md); overflow: hidden; cursor: pointer; transition: all var(--transition-fast); }
.attachment-thumb:hover { border-color: var(--primary-300); box-shadow: var(--shadow-md); }
.attachment-thumb img { width: 100%; height: 110px; object-fit: cover; }
.attachment-thumb-label { padding: 6px 8px; font-size: 0.7rem; color: var(--gray-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--gray-50); }
/* PDF: nome em até 2 linhas, quebrando em qualquer letra para o fim ("(1).pdf") aparecer; se ainda passar, vira "…" e o nome inteiro fica no title; e o "Baixar" embaixo, sem invadir o cartão vizinho. */
.attachment-pdf { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--gray-200); border-radius: var(--radius-md); cursor: pointer; transition: all var(--transition-fast); }
.attachment-pdf:hover { border-color: var(--primary-300); background: var(--primary-50); }
.attachment-pdf-icon { width: 36px; height: 36px; background: #FEE2E2; color: var(--danger); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.attachment-pdf-icon svg { width: 18px; height: 18px; }
.attachment-pdf-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.attachment-pdf-name { font-size: 0.82rem; line-height: 1.25; color: var(--gray-700); font-weight: 500; overflow: hidden; word-break: break-all; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.attachment-pdf-action { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; color: var(--primary-500); font-size: 0.75rem; font-weight: 600; }
.attachment-pdf-action svg { width: 13px; height: 13px; }
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { background: var(--gray-900); color: #fff; padding: 14px 18px; border-radius: var(--radius-lg); box-shadow: var(--shadow-2xl); display: flex; align-items: center; gap: 12px; min-width: 280px; max-width: 400px; pointer-events: all; animation: toastIn 0.3s ease; }
.toast.toast-success { background: #065F46; border-left: 3px solid var(--success); }
.toast.toast-error { background: #7F1D1D; border-left: 3px solid var(--danger); }
.toast.toast-info { background: var(--primary-900); border-left: 3px solid var(--primary-400); }
.toast svg { width: 18px; height: 18px; flex-shrink: 0; }
.toast p { font-size: 0.875rem; line-height: 1.4; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
.notification-panel { position: absolute; top: calc(var(--header-height) + 8px); right: 20px; width: 360px; background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-2xl); border: 1px solid var(--gray-100); z-index: 100; display: none; overflow: hidden; animation: dropIn 0.2s ease; }
.notification-panel.show { display: block; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.notification-panel-header { padding: 16px 18px; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; }
.notification-panel-header h4 { font-size: 0.9rem; font-weight: 700; color: var(--gray-900); }
.notif-mark-all { font-size: 0.75rem; color: var(--primary-600); font-weight: 600; cursor: pointer; }
.notif-mark-all:hover { text-decoration: underline; }
.notification-list { max-height: 380px; overflow-y: auto; }
.notif-item { padding: 14px 18px; border-bottom: 1px solid var(--gray-50); cursor: pointer; transition: background var(--transition-fast); display: flex; gap: 12px; align-items: flex-start; }
.notif-item:hover { background: var(--gray-50); }
.notif-item.unread { background: var(--primary-50); }
.notif-item.unread:hover { background: #DBEAFE; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary-500); flex-shrink: 0; margin-top: 6px; }
.notif-dot.read { background: transparent; }
.notif-content { flex: 1; }
.notif-msg { font-size: 0.82rem; color: var(--gray-700); line-height: 1.4; margin-bottom: 3px; }
.notif-time { font-size: 0.72rem; color: var(--gray-400); }
.notif-empty { padding: 32px 18px; text-align: center; color: var(--gray-400); font-size: 0.85rem; }
/* "Ver todas" no sininho (rodada 25 — Notificações saiu do menu lateral) */
.notification-panel-footer { padding: 10px 18px; border-top: 1px solid var(--gray-100); text-align: center; }
.notif-ver-todas { font-size: 0.8rem; color: var(--primary-600); font-weight: 600; cursor: pointer; }
.notif-ver-todas:hover { text-decoration: underline; }
.category-selector { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 28px; }
.category-card { border: 2px solid var(--gray-200); border-radius: var(--radius-xl); padding: 28px 22px; text-align: center; cursor: pointer; transition: all var(--transition-base); background: #fff; }
.category-card:hover { border-color: var(--primary-300); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.category-card.fin-cat { border-top: 4px solid #7C3AED; }
.category-card.com-cat { border-top: 4px solid #BE185D; }
.category-card.ti-cat { border-top: 4px solid #0D9488; }
.category-card.fat-cat { border-top: 4px solid #D97706; }
.category-icon { width: 60px; height: 60px; border-radius: var(--radius-xl); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.category-icon svg { width: 30px; height: 30px; }
.category-icon.fin { background: #EDE9FE; color: #7C3AED; }
.category-icon.com { background: #FCE7F3; color: #BE185D; }
.category-icon.ti { background: #CCFBF1; color: #0D9488; }
.category-icon.fat { background: #FEF3C7; color: #B45309; }
.category-card h3 { font-size: 1rem; font-weight: 700; color: var(--gray-800); margin-bottom: 6px; }
.category-card p { font-size: 0.8rem; color: var(--gray-500); line-height: 1.5; }
.step-indicator { display: flex; align-items: center; margin-bottom: 28px; }
.step { display: flex; align-items: center; gap: 8px; flex: 1; }
.step-number { width: 28px; height: 28px; border-radius: 50%; background: var(--gray-200); color: var(--gray-500); font-size: 0.78rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all var(--transition-base); }
.step.active .step-number { background: var(--primary-600); color: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,0.15); }
.step.done .step-number { background: var(--success); color: #fff; }
.step-label { font-size: 0.78rem; font-weight: 600; color: var(--gray-500); }
.step.active .step-label { color: var(--primary-700); }
.step.done .step-label { color: var(--success); }
.step-line { height: 2px; background: var(--gray-200); flex: 1; margin: 0 8px; }
.step-line.done { background: var(--success); }
.success-screen { text-align: center; padding: 48px 32px; }
.success-icon { width: 80px; height: 80px; border-radius: 50%; background: var(--status-concluido-bg); display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes popIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-icon svg { width: 40px; height: 40px; color: var(--success); }
.success-screen h2 { font-size: 1.5rem; font-weight: 800; color: var(--gray-900); margin-bottom: 10px; }
.success-screen p { color: var(--gray-500); margin-bottom: 28px; font-size: 0.95rem; }
.protocol-display { display: inline-flex; align-items: center; gap: 10px; background: var(--primary-50); border: 1.5px solid var(--primary-200); border-radius: var(--radius-lg); padding: 14px 22px; margin-bottom: 28px; flex-direction: column; }
.protocol-num { font-family: 'Courier New', monospace; font-size: 1.6rem; font-weight: 800; color: var(--primary-700); }
.protocol-status { font-size: 0.8rem; color: var(--gray-500); }
.confirmation-summary { background: var(--gray-50); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px; }
.confirmation-summary h4 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-400); margin-bottom: 14px; }
.confirm-field { display: flex; justify-content: space-between; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--gray-200); gap: 16px; }
.confirm-field:last-child { border-bottom: none; }
.confirm-field .key { font-size: 0.8rem; color: var(--gray-500); white-space: nowrap; }
.confirm-field .val { font-size: 0.82rem; color: var(--gray-800); font-weight: 600; text-align: right; }
.profile-header { background: linear-gradient(135deg, var(--primary-800), var(--primary-600)); border-radius: var(--radius-xl); padding: 32px; display: flex; align-items: center; gap: 22px; margin-bottom: 24px; color: #fff; }
.profile-header .user-avatar { width: 64px; height: 64px; font-size: 1.4rem; background: rgba(255,255,255,0.2); }
.profile-header h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.profile-header p { font-size: 0.875rem; opacity: 0.8; }
.profile-badge { display: inline-flex; padding: 4px 12px; border-radius: var(--radius-full); background: rgba(255,255,255,0.2); font-size: 0.75rem; font-weight: 600; margin-top: 8px; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 24px; text-align: center; }
.empty-state svg { width: 64px; height: 64px; color: var(--gray-300); margin-bottom: 16px; }
.empty-state h3 { font-size: 1rem; font-weight: 700; color: var(--gray-600); margin-bottom: 6px; }
.empty-state p { font-size: 0.85rem; color: var(--gray-400); max-width: 260px; }
.slide-panel { position: fixed; top: 0; right: -740px; width: 700px; max-width: 95vw; height: 100vh; background: #fff; box-shadow: var(--shadow-2xl); z-index: 300; display: flex; flex-direction: column; transition: right var(--transition-slow); border-left: 1px solid var(--gray-200); }
.slide-panel.show { right: 0; }
.slide-panel-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 299; display: none; }
.slide-panel-overlay.show { display: block; }
.slide-panel-header { padding: 20px 24px; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; gap: 14px; flex-shrink: 0; background: var(--gray-50); }
.slide-panel-header h3 { font-size: 1rem; font-weight: 700; color: var(--gray-900); flex: 1; }
.slide-panel-body { flex: 1; overflow-y: auto; padding: 24px; }
.slide-panel-footer { padding: 16px 24px; border-top: 1px solid var(--gray-100); display: flex; gap: 10px; flex-shrink: 0; background: var(--gray-50); flex-wrap: wrap; }
.timeline-dot.comentario { background: var(--gray-100); color: var(--gray-600); }
.timeline-dot.reaberta { background: #FFEDD5; color: #9A3412; }
.timeline-obs.comentario { border-left-color: var(--gray-300); background: var(--gray-50); color: var(--gray-800); white-space: pre-wrap; }
.timeline-obs.reaberta { border-left-color: #FB923C; white-space: pre-wrap; }
.comment-box { margin-top: 20px; }
.comment-box h4 { font-size: 0.85rem; font-weight: 700; color: var(--gray-800); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.comment-box h4 svg { width: 16px; height: 16px; }
.comment-box .form-textarea { margin-bottom: 10px; }
.reopen-box { background: #FFF7ED; border: 1.5px solid #FDBA74; border-radius: var(--radius-lg); padding: 18px; margin-top: 16px; }
.reopen-box h4 { font-size: 0.85rem; font-weight: 700; color: #9A3412; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.reopen-box h4 svg { width: 16px; height: 16px; }
.reopen-box p { font-size: 0.8rem; color: var(--gray-600); margin-bottom: 12px; }
.reopen-box .form-textarea { margin-bottom: 10px; }
.status-form { background: var(--primary-50); border: 1.5px solid var(--primary-200); border-radius: var(--radius-lg); padding: 18px; margin-top: 16px; }
.status-form h4 { font-size: 0.85rem; font-weight: 700; color: var(--primary-800); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.status-form h4 svg { width: 16px; height: 16px; }
/* Rodada 73: resposta em campos do Faturamento (ao concluir). */
.fat-resposta[hidden] { display: none !important; }
.fat-resposta { background: #FFFBEB; border: 1px solid #FDE68A; border-radius: var(--radius-md, 8px); padding: 12px; }
.fat-titulo { font-size: 0.8rem; font-weight: 700; color: #854D0E; margin: 0 0 10px; }
.fat-pre { font-weight: 500; color: #A16207; margin-left: 6px; }
.fat-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 12px; }
.fat-grade .form-label { font-size: 0.75rem; }
.fat-larga { grid-column: 1 / -1; }
.fat-quando { font-weight: 400; color: var(--gray-400); }
.page { display: none; animation: fadeSlideIn 0.25s ease; }
.page.active { display: block; }
@keyframes fadeSlideIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.divider { height: 1px; background: var(--gray-100); margin: 20px 0; }
.badge-perfil { display: inline-flex; padding: 3px 10px; border-radius: var(--radius-full); font-size: 0.7rem; font-weight: 700; }
.badge-perfil.vendedor { background: var(--primary-50); color: var(--primary-700); }
.badge-perfil.supervisor { background: #BFDBFE; color: #1E3A8A; }
.badge-perfil.gestor { background: #1E40AF; color: #fff; }
.badge-perfil.financeiro { background: #EDE9FE; color: #5B21B6; }
.badge-perfil.comercial { background: #FCE7F3; color: #9D174D; }
.badge-perfil.ti { background: #CCFBF1; color: #0F766E; }
.badge-perfil.faturamento { background: #FEF9C3; color: #854D0E; }
.badge-perfil.administrador { background: #FEF3C7; color: #92400E; }
.badge-perfil.sac { background: #FFEDD5; color: #9A3412; } /* dev-03 */
.badge-ativo { display: inline-flex; padding: 3px 10px; border-radius: var(--radius-full); font-size: 0.7rem; font-weight: 700; }
.badge-ativo.sim { background: var(--status-concluido-bg); color: var(--status-concluido-text); }
.badge-ativo.nao { background: var(--status-naoaprovado-bg); color: var(--status-naoaprovado-text); }
.spinner { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; flex-shrink: 0; }
.spinner.dark { border-color: rgba(0,0,0,0.1); border-top-color: var(--primary-600); }
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }
.mb-16 { margin-bottom: 16px; }
.text-sm { font-size: 0.875rem; }
.text-gray { color: var(--gray-500); }
.w-full { width: 100%; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; }
.section-title { font-size: 0.875rem; font-weight: 700; color: var(--gray-700); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--gray-100); }
.info-banner { background: var(--primary-50); border: 1px solid var(--primary-200); border-radius: var(--radius-lg); padding: 12px 16px; font-size: 0.82rem; color: var(--primary-700); display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.info-banner svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.warning-banner { background: #FEF3C7; border: 1px solid #FDE68A; border-radius: var(--radius-lg); padding: 12px 16px; font-size: 0.82rem; color: #92400E; display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.warning-banner svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
/* Aviso de pedido repetido na Confirmação (patch 4) */
.aviso-repetido ul { margin: 6px 0 6px 18px; padding: 0; }
.aviso-repetido li { margin: 2px 0; }
.aviso-repetido a { color: #92400E; font-weight: 600; text-decoration: underline; }

/* Ficha do cliente (dados vindos do ERP/Flexx) — usada tanto embutida nos
   formulários de Nova Solicitação (sob o campo SOLD) quanto na tela de
   Consulta de Cliente. */
.ficha-cliente { background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: 12px 14px; margin: 6px 0 4px; }
.ficha-cliente-loading { font-size: 0.78rem; color: var(--gray-400); padding: 4px 2px; }
.ficha-cliente-erro { display: flex; align-items: flex-start; gap: 8px; font-size: 0.8rem; color: var(--gray-500); padding: 4px 2px; }
.ficha-cliente-erro svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; }
.ficha-cliente-erro.bloqueante { color: var(--danger); font-weight: 600; }

@media (max-width: 1024px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --content-padding: 16px; --header-height: 56px; }
  .sidebar { transform: translateX(-100%); width: 280px; }
  .sidebar.open { transform: translateX(0); }
  .main-area { margin-left: 0; }
  .header-menu-btn { display: flex; }
  .login-left { display: none; }
  .login-right { width: 100%; padding: 32px 24px; flex-direction: column; gap: 24px; }
  .login-marca-mobile { display: block; width: 100%; max-width: 420px; }
  .login-form-container { padding: 32px 24px; }
  .category-selector { grid-template-columns: 1fr; }
  /* Cards de status em faixa compacta no celular (29/09/2026): todos numa
     linha só, ícone pequeno em cima, número e rótulo centralizados — antes
     eram um embaixo do outro e ocupavam uma tela inteira antes da lista. */
  .stats-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 16px; }
  .stat-card { flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 10px 4px; }
  .stat-card:hover { transform: none; }
  .stat-icon { width: 28px; height: 28px; }
  .stat-icon svg { width: 15px; height: 15px; }
  .stat-value { font-size: 1.2rem; margin-bottom: 2px; }
  .stat-label { font-size: 0.66rem; line-height: 1.2; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .page-header-actions { width: 100%; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-group { min-width: unset; flex: 0 0 auto; }
  .filter-group.filter-group-busca { min-width: unset; flex: 0 0 auto; }
  /* Filtros recolhidos por padrão no celular: fica só o Buscar + o botão. */
  .filter-bar.filtros-recolhiveis { padding-top: 16px; }
  .filter-toggle-mobile { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-md); background: #fff; color: var(--gray-700); font-weight: 600; font-size: 0.875rem; font-family: inherit; cursor: pointer; }
  .filter-toggle-mobile svg { width: 18px; height: 18px; }
  .filter-toggle-mobile[aria-expanded="true"] { border-color: var(--primary-400); color: var(--primary-600); }
  .filter-toggle-contador { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--primary-600); color: #fff; font-size: 0.72rem; display: inline-flex; align-items: center; justify-content: center; }
  .filtros-recolhiveis:not(.filtros-mobile-abertos) .filter-group:not(.filter-group-busca),
  .filtros-recolhiveis:not(.filtros-mobile-abertos) .filter-actions { display: none; }
  .filter-bar { padding: 16px; }
  .filter-actions { position: static; width: 100%; }
  .filter-actions .btn { width: 100%; height: auto; padding: 8px 14px; }
  /* Fica compacto pra caber "1 Categoria — 2 Tipo — 3 Formulário — 4
     Confirmação" numa tela de celular: só o passo ativo mostra o texto,
     os outros ficam só com a bolinha numerada — sem isso o último passo
     (Confirmação) ficava cortado pra fora da tela. */
  .step-indicator { gap: 4px; }
  .step { flex: 0 0 auto; gap: 6px; }
  .step-label { display: none; }
  .step.active { flex: 1 1 auto; }
  .step.active .step-label { display: inline-block; white-space: nowrap; font-size: 0.72rem; }
  .step-line { margin: 0 4px; }
  .quick-access-grid { grid-template-columns: repeat(2, 1fr); }
  /* Os dois botões ("+ Nova Solicitação" e "Ver Todas") não cabiam lado a
     lado numa tela de celular — como o card tem "overflow:hidden" (pros
     círculos decorativos de fundo), o segundo botão ficava de fato
     invisível/inclicável, não só cortado no print. */
  .slide-panel { width: 100%; max-width: 100%; }
  .form-grid.cols-3 { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .modal { border-radius: var(--radius-xl) var(--radius-xl) 0 0; max-height: 95vh; }
  .modal-overlay { align-items: flex-end; padding: 0; }
  table { font-size: 0.8rem; }
  tbody td { padding: 10px 12px; }
  thead th { padding: 10px 12px; }
}
@media (max-width: 480px) {
  .header { padding: 0 14px; }
}

/* Respostas grandes no celular e botão Copiar (patch 15, 06/10/2026):
   texto sem espaço (PIX, código de barras) quebra em vez de sair da tela. */
.info-banner > div, .timeline-content, .timeline-obs { min-width: 0; }
.obs-texto, .timeline-obs, .info-banner { overflow-wrap: anywhere; word-break: break-word; }
.obs-setor .obs-texto { white-space: pre-wrap; margin-top: 2px; }
.obs-setor { position: relative; align-items: flex-start; }
.obs-setor-corpo { flex: 1; min-width: 0; }
.obs-copiavel { position: relative; padding-right: 38px; }
.obs-copiavel .obs-texto { white-space: pre-wrap; }
.btn-copiar { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; border: 1px solid var(--gray-200); background: #fff; color: var(--gray-600); border-radius: var(--radius-md); padding: 4px 8px; font: inherit; font-size: 0.75rem; font-weight: 600; cursor: pointer; }
.btn-copiar svg { width: 15px; height: 15px; }
.btn-copiar:hover { border-color: var(--primary-300); color: var(--primary-700); }
.btn-copiar.copiado { border-color: #86EFAC; color: #166534; background: #F0FDF4; }
.obs-copiavel .btn-copiar { position: absolute; top: 6px; right: 6px; padding: 3px 5px; }

/* ─── Fluxo em etapas (rodada 71, 17/10/2026): Inativação e Cadastro novo ─── */
.badge-etapa { background: #EEF2FF; color: #3730A3; font-size: 0.7rem; }
.badge-etapa::before { display: none; }
.badge-etapa.minha { background: #4338CA; color: #fff; }
.badge-etapa.feita { background: var(--status-concluido-bg); color: var(--status-concluido-text); }
.badge-etapa.recusada { background: var(--status-naoaprovado-bg); color: var(--status-naoaprovado-text); }
.fx-seguiu { font-size: 0.76rem; font-weight: 600; color: var(--status-concluido-text); }

.fx-trilha { list-style: none; margin: 0 0 18px; padding: 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); counter-reset: fx; }
.fx-passo { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--gray-200); min-width: 0; }
.fx-bola { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 800; background: var(--gray-100); color: var(--gray-500); border: 2px solid var(--gray-300); }
.fx-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fx-l1 { font-size: 0.82rem; font-weight: 700; color: var(--gray-800); }
.fx-quem { font-weight: 500; color: var(--gray-500); font-size: 0.74rem; }
.fx-l2 { font-size: 0.74rem; color: var(--gray-500); line-height: 1.35; overflow-wrap: anywhere; }
.fx-passo.feita .fx-bola { background: var(--status-concluido-dot); border-color: var(--status-concluido-dot); color: #fff; }
.fx-passo.atual { border-color: #6366F1; box-shadow: 0 0 0 3px #E0E7FF; }
.fx-passo.atual .fx-bola { background: #4F46E5; border-color: #4F46E5; color: #fff; }
.fx-passo.atual .fx-l2 { color: #3730A3; }
.fx-passo.recusada { border-color: #FCA5A5; }
.fx-passo.recusada .fx-bola { background: var(--status-naoaprovado-dot); border-color: var(--status-naoaprovado-dot); color: #fff; }
.fx-passo.pulada { opacity: .6; border-style: dashed; }
.fx-passo.futura { background: transparent; border-style: dashed; }

.fx-form h4 { margin-bottom: 6px; }
.fx-aviso { margin: 0 0 10px; font-size: 0.8rem; color: var(--status-espera-text); background: var(--status-espera-bg); border-radius: 8px; padding: 8px 10px; }
.fx-botoes { display: flex; gap: 8px; flex-wrap: wrap; }
.fx-recusar { color: var(--status-naoaprovado-text); border-color: #FCA5A5; }
.fx-recusar:hover { background: var(--status-naoaprovado-bg); }

/* Dashboard do gerente: "N pedidos esperam a sua aprovação" */
/* Para você aprovar (29/10/2026): a fila do gerente, com Aprovar/Negar na linha. */
.apv { margin: 0 0 22px; }
.apv-h { align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.apv-h h3 { display: flex; align-items: center; gap: 8px; }
.apv-cont { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: #4F46E5; color: #fff; font-size: 0.75rem; font-weight: 700; }
.apv-dica { font-size: 0.78rem; color: var(--gray-500); margin-right: auto; }
.apv-tabela { border-color: #C7D2FE; }
.apv-tabela thead th { background: #EEF2FF; }
.apv-th-acoes, .apv-td-acoes { text-align: right; width: 1%; white-space: nowrap; }
.apv-emp, .apv-tabela .col-nome { white-space: nowrap; }
.apv-emp { color: var(--gray-600); }
.apv-acoes { display: inline-flex; gap: 8px; }
.apv-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid transparent; font: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer; transition: background .15s, box-shadow .15s; }
.apv-btn svg { width: 15px; height: 15px; }
.apv-btn.sim { background: #16A34A; color: #fff; }
.apv-btn.sim:hover { background: #15803D; box-shadow: 0 2px 8px rgba(22,163,74,.3); }
.apv-btn.nao { background: #fff; color: #DC2626; border-color: #FCA5A5; }
.apv-btn.nao:hover { background: #DC2626; color: #fff; border-color: #DC2626; }
.apv-item .apv-acoes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.apv-item .apv-btn { justify-content: center; height: 40px; }
.apv-modal-res { margin: 0 0 14px; font-size: 0.86rem; color: var(--gray-700); }
.apv-modal-res span { font-size: 0.78rem; color: var(--gray-500); }
.apv-ok-sim { background: #16A34A; color: #fff; border: 0; }
.apv-ok-sim:hover { background: #15803D; }
.apv-ok-nao { background: #DC2626; color: #fff; border: 0; }
.apv-ok-nao:hover { background: #B91C1C; }
.apv-ok-sim svg, .apv-ok-nao svg { width: 16px; height: 16px; }
@media (max-width: 640px) {
  .fx-trilha { grid-template-columns: 1fr; padding: 8px; }
}
.fx-l3 { font-size: 0.72rem; color: var(--gray-600); background: var(--gray-50); border-radius: 6px; padding: 2px 6px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* ── Nova Solicitação e cabeçalhos mais enxutos (30/10/2026, rodada 82) ──
   Os tipos mostram a descrição no cartão; no celular, setores e tipos viram
   linhas (ícone + nome + descrição) em vez de cartões altos. */
.category-card { font: inherit; color: inherit; width: 100%; }
.category-card .category-icon { display: flex; }
.ns-tipos { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.quick-card.ns-tipo { font: inherit; color: inherit; flex-direction: row; align-items: center; text-align: left; gap: 12px; padding: 14px; width: 100%; }
.ns-tipo .quick-card-icon { flex-shrink: 0; width: 40px; height: 40px; }
.ns-tipo .ns-tipo-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ns-tipo .ns-tipo-txt b { font-size: 0.86rem; font-weight: 700; color: var(--gray-800); line-height: 1.25; }
.ns-tipo .ns-tipo-txt small { font-size: 0.74rem; color: var(--gray-500); line-height: 1.35; font-weight: 400; }
@media (max-width: 768px) {
  .page-header { margin-bottom: 16px; gap: 10px; }
  .page-header-left h2 { font-size: 1.2rem; }
  .page-header-left p { font-size: 0.8rem; }
  .step-indicator { margin-bottom: 16px; }
  .category-selector { gap: 10px; margin-bottom: 16px; }
  .category-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; align-items: center; text-align: left; padding: 12px 14px; border-top-width: 2px; }
  .category-card.fin-cat { border-left: 4px solid #7C3AED; } .category-card.com-cat { border-left: 4px solid #BE185D; }
  .category-card.ti-cat { border-left: 4px solid #0D9488; } .category-card.fat-cat { border-left: 4px solid #D97706; }
  .category-card.fin-cat, .category-card.com-cat, .category-card.ti-cat, .category-card.fat-cat { border-top: 2px solid var(--gray-200); }
  .category-card .category-icon { width: 44px; height: 44px; margin: 0; grid-row: span 2; border-radius: var(--radius-lg); }
  .category-card .category-icon svg { width: 22px; height: 22px; }
  .category-card h3 { margin: 0; font-size: 0.95rem; }
  .category-card p { font-size: 0.76rem; line-height: 1.35; }
  .category-card:hover { transform: none; }
  .ns-tipos { grid-template-columns: 1fr; gap: 8px; }
  .quick-card.ns-tipo { padding: 12px; }
  .quick-card.ns-tipo:hover { transform: none; }
}

/* Detalhe: a situação em cima (rodada 82) */
.det-situacao { border: 1.5px solid; border-radius: var(--radius-lg); padding: 12px 14px; margin: 0 0 18px; }
.det-situacao.ok { background: #F0FDF4; border-color: #BBF7D0; }
.det-situacao.nao { background: #FEF2F2; border-color: #FECACA; }
.det-situacao.and { background: #EFF6FF; border-color: #BFDBFE; }
.det-situacao.pend { background: #FFFBEB; border-color: #FDE68A; }
.det-sit-h { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--gray-900); }
.det-sit-h svg { width: 18px; height: 18px; flex-shrink: 0; }
.det-situacao.ok .det-sit-h svg { color: #16A34A; } .det-situacao.nao .det-sit-h svg { color: #DC2626; }
.det-situacao.and .det-sit-h svg { color: #2563EB; } .det-situacao.pend .det-sit-h svg { color: #D97706; }
.det-sit-resp { margin-top: 10px; background: #fff; border-radius: var(--radius-md); padding: 10px 40px 10px 12px; }
.det-sit-resp .obs-texto { font-size: 0.92rem; color: var(--gray-900); line-height: 1.45; }
.det-sit-quem { font-size: 0.72rem; color: var(--gray-500); margin-bottom: 4px; }
.det-sit-vazio { margin: 6px 0 0 26px; font-size: 0.8rem; color: var(--gray-600); }
@media (max-width: 768px) {
  .detail-grid { grid-template-columns: 1fr 1fr; gap: 12px 14px; }
  .detail-grid .detail-field.longo, .detail-grid .detail-field.form-full { grid-column: 1 / -1; }
  .detail-field value { font-size: 0.86rem; word-break: break-word; }
}

/* Faixa "teve novidade · Atualizar" (02/11/2026, public/js/telas/novidades.js):
   em cima, no meio, acima do painel do ticket; não cobre o que a pessoa está digitando. */
.nov-faixa { position: fixed; top: 76px; left: 50%; transform: translate(-50%, -12px); opacity: 0; z-index: 350; display: flex; align-items: center; gap: 10px; background: var(--gray-900); color: #fff; padding: 8px 8px 8px 14px; border-radius: 999px; box-shadow: var(--shadow-2xl); font-size: .86rem; max-width: calc(100vw - 32px); transition: opacity .2s, transform .2s; }
.nov-faixa.show { opacity: 1; transform: translate(-50%, 0); }
.nov-ponto { width: 8px; height: 8px; border-radius: 50%; background: #60A5FA; flex-shrink: 0; box-shadow: 0 0 0 4px rgba(96,165,250,.25); }
.nov-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nov-faixa .btn { flex-shrink: 0; border-radius: 999px; }
.nov-x { width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: rgba(255,255,255,.7); font-size: 1.1rem; cursor: pointer; flex-shrink: 0; }
.nov-x:hover { background: rgba(255,255,255,.12); color: #fff; }
@media (max-width: 768px) { .nov-faixa { top: 64px; width: calc(100vw - 32px); } .nov-txt { white-space: normal; } }

/* ── Aprovações (08/11/2026): tela própria, caixinhas e lote ── */
.apv-cards { max-width: 1180px; }
.apv-filtros { max-width: 1180px; margin-bottom: 12px; }
.apv-pag { max-width: 1180px; }
.apv-th-caixa, .apv-td-caixa { width: 1%; padding-right: 0 !important; }
.apv-caixa { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; cursor: pointer; margin: -4px 0; }
.apv-caixa input { width: 17px; height: 17px; accent-color: #16A34A; cursor: pointer; }
.apv-tabela tr.apv-marcado td { background: #F0FDF4; }
.apv-item.apv-marcado { border-color: #86EFAC; background: #F0FDF4; }
.apv-item .l1 { display: flex; align-items: center; gap: 8px; } .apv-item .l1 .dash-parada { margin-left: auto; }
.apv-lote { position: sticky; top: 8px; z-index: 5; max-width: 1180px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 14px; margin-bottom: 12px; border-radius: 12px; background: #0F1B3D; color: #fff; box-shadow: 0 8px 24px rgba(15,27,61,.25); }
.apv-lote .btn-ghost { color: #CBD5E1; }
.apv-lote-acoes { margin-left: auto; display: inline-flex; gap: 8px; }
.apv-lote .apv-btn.nao { background: transparent; color: #FCA5A5; border-color: rgba(252,165,165,.5); }
.apv-lote .apv-btn.nao:hover { background: #DC2626; color: #fff; }
.apv-progresso { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: .84rem; color: var(--gray-600); }
.apv-progresso > div { flex: 1; height: 8px; border-radius: 999px; background: var(--gray-100); overflow: hidden; }
.apv-progresso i { display: block; height: 100%; width: 0; background: #16A34A; transition: width .2s; }
.apv-aviso { display: flex; align-items: center; gap: 14px; width: 100%; margin: 0 0 18px; padding: 14px 18px; border-radius: 14px; border: 1px solid #C7D2FE;
  background: #EEF2FF; font: inherit; text-align: left; cursor: pointer; }
.apv-aviso:hover { border-color: #818CF8; }
.apv-aviso-ic { width: 40px; height: 40px; border-radius: 11px; background: #4F46E5; color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.apv-aviso-ic svg { width: 20px; height: 20px; }
.apv-aviso b { display: block; color: #1E1B4B; font-size: .98rem; } .apv-aviso small { color: #4338CA; font-size: .8rem; }
.apv-aviso-ir { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .86rem; color: #4338CA; white-space: nowrap; }
.apv-aviso-ir svg { width: 16px; height: 16px; }
@media (max-width: 640px) {
  .apv-aviso { flex-wrap: wrap; } .apv-aviso-ir { margin-left: 54px; }
  .apv-lote { top: 4px; } .apv-lote-acoes { width: 100%; } .apv-lote-acoes .apv-btn { flex: 1; justify-content: center; height: 40px; }
}
.apv-progresso[hidden] { display: none; }
.apv-marcar-cel { display: none; }
@media (max-width: 640px) {
  .mod-fila-cards.apv-cards { grid-template-columns: repeat(2, 1fr); }
  .apv-marcar-cel { display: block; width: 100%; margin: 0 0 10px; padding: 10px; border-radius: 10px; border: 1px dashed #86EFAC; background: #F0FDF4; color: #15803D; font: inherit; font-weight: 700; font-size: .86rem; }
}
.apv-novas { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.mod-fila-card.abertos .mod-fila-card-ic { background: #EFF6FF; color: #2563EB; }
@media (max-width: 640px) { .mod-fila-cards.apv-cards.com-abertos { grid-template-columns: repeat(3, 1fr); } .apv-novas { justify-content: flex-start; } }

/* 10/11/2026 (revisão da interface): Usuários com menos filtros à vista no computador. */
@media (min-width: 769px) { .filter-bar.usu-enxuto:not(.usu-mais-abertos) .filter-extra { display: none; } }
@media (max-width: 768px) { .usu-mais { display: none; } }

/* ── Etapa E (rodada 103, 2ª passada) ── */
.det-hist-antes { margin: 0 0 6px; }
.det-hist-antes > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px 46px; padding: 6px 12px; border: 1px solid var(--gray-200); border-radius: 999px; font-size: 0.8rem; font-weight: 600; color: var(--gray-600); background: #fff; }
.det-hist-antes > summary::-webkit-details-marker { display: none; }
.det-hist-antes > summary::after { content: "▾"; font-size: 0.75rem; }
.det-hist-antes[open] > summary { display: none; }
.cc-ver-mais { display: block; width: 100%; padding: 11px 16px; border: 0; border-top: 1px solid var(--gray-100); background: none; font: inherit; font-size: 0.84rem; font-weight: 600; color: var(--primary, #2563EB); cursor: pointer; text-align: center; }
.cc-ver-mais:hover { background: var(--gray-50); }
.np-resumo-cel > summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 8px; padding: 14px 16px; }
.np-resumo-cel > summary::-webkit-details-marker { display: none; }
.np-resumo-cel > summary::after { content: "▾"; margin-left: auto; color: var(--gray-400); }
.np-resumo-cel[open] > summary::after { content: "▴"; }
.np-resumo-cel > summary h3 { margin: 0; }
