/* =========================================================
   BUSCAMARK IA - CSS
   Arquivo sugerido: buscamark_ia.css
========================================================= */

/* =========================================================
   1) VARIÁVEIS GLOBAIS
========================================================= */
:root{
  --bm-header-offset: 120px;
}

/* =========================================================
   2) BASE / DOCUMENTO
========================================================= */
html,
body{
  background:#0f1115 !important;
  color:#f1f1f1 !important;
  overflow-x:hidden;
}

/* =========================================================
   3) TOPO / CABEÇALHO
========================================================= */
.bm-topbar{
  background:#111317 !important;
  border-bottom:1px solid rgba(255,255,255,.06);
  z-index:1040;
}

.bm-topbar-container{
  max-width:1320px;
}

.bm-topbar-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-height:72px;
  width:100%;
  flex-wrap:nowrap;
}

.bm-topbar-brand{
  flex:0 0 auto;
  min-width:max-content;
}

.bm-topbar-logo{
  margin:0;
  font-size:40px;
  font-weight:800;
  letter-spacing:-0.5px;
  line-height:1;
  color:#ffffff;
  font-family:Montserrat, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  white-space:nowrap;
}

.bm-topbar-actions{
  flex:0 0 auto;
  margin-left:auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  min-width:max-content;
}

.bm-header-prompt-slot{
  display:none;
  flex:1 1 auto;
  min-width:0;
  margin:0 12px;
}

/* =========================================================
   4) INTRO
========================================================= */
.bm-intro{
  margin-top:8px;
  margin-bottom:8px;
  text-align:center;
  padding:0 14px;
}

.bm-intro-title{
  font-family: Montserrat, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  font-weight:800;
  color:#ffffff;
  font-size:2.05rem;
  letter-spacing:-0.6px;
  margin:0 0 6px;
}

.bm-intro-sub{
  font-family: Roboto, system-ui, -apple-system, Segoe UI, Arial;
  font-size:1.05rem;
  color:#cbd5e1;
  max-width:780px;
  margin:0 auto;
  line-height:1.55;
}

.bm-beta{
  display:inline-block;
  padding:2px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.6px;
  background:rgba(239, 68, 68, .14);
  border:1px solid rgba(239, 68, 68, .35);
  color:#ffb4b4;
  vertical-align:middle;
}

/* =========================================================
   5) STICKY HEADER / ÁREA FIXA
========================================================= */
#bmSticky{
  position:fixed;
  top:var(--bm-header-offset);
  left:0;
  right:0;
  z-index:1030;
  padding-top:10px;
  background:rgba(15,17,21,.92);
  backdrop-filter:blur(6px);
  border-bottom:1px solid rgba(255,255,255,.06);
  overflow:visible;
}

#bmSticky.bm-sticky-empty{
  position:static !important;
  top:auto !important;
  left:auto !important;
  right:auto !important;
  padding-top:0 !important;
  background:transparent !important;
  backdrop-filter:none !important;
  border-bottom:0 !important;
  min-height:0 !important;
  pointer-events:none !important;
}

#bmStickySpacer{
  height:0;
}

#resultadoProcesso{
  padding-top:14px;
}

/* =========================================================
   6) PROMPT / BARRA DE BUSCA
========================================================= */
.bm-prompt-wrap{
  max-width:920px;
  margin:0 auto;
  padding:0 14px;
}

.bm-prompt{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border:1px solid #232833;
  border-radius:999px;
  background:#161a21;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
  transition:box-shadow .15s ease, border-color .15s ease, background .15s ease;
  min-height:58px;
  width:100%;
}

.bm-prompt:focus-within{
  border-color:rgba(255,255,255,.22);
  box-shadow:0 14px 44px rgba(0,0,0,.50);
  background:#171c24;
}

.bm-prompt.dragover{
  border-color:rgba(255,255,255,.28);
  box-shadow:0 18px 60px rgba(0,0,0,.65);
}

.bm-input{
  flex:1;
  border:0;
  outline:none;
  font-size:18px;
  padding:10px 6px;
  background:transparent;
  color:#f1f1f1;
  caret-color:#f1f1f1;
  min-width:180px;
}

.bm-input::placeholder{
  color:rgba(241,241,241,.55);
}

.bm-hint{
  font-size:12px;
  color:rgba(203,213,225,.75);
  margin-top:10px;
  text-align:center;
  padding-bottom:12px;
}

/* =========================================================
   7) BOTÕES / ELEMENTOS INLINE
========================================================= */
.bm-btn{
  border:0;
  background:transparent;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:999px;
  cursor:pointer;
  color:#e6e6e6;
  flex:0 0 auto;
}

.bm-btn:hover{
  background:rgba(255,255,255,.08);
}

.bm-btn:active{
  transform:scale(.98);
}

.bm-divider{
  width:1px;
  height:28px;
  background:rgba(255,255,255,.12);
  flex:0 0 auto;
}

/* =========================================================
   8) THUMB / TAG DE ARQUIVO
========================================================= */
.bm-thumb{
  width:36px;
  height:36px;
  border-radius:10px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.14);
  display:none;
  flex:0 0 auto;
}

.bm-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.bm-filetag{
  display:none;
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
  color:rgba(241,241,241,.85);
  white-space:nowrap;
  max-width:220px;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* =========================================================
   9) SPINNER
========================================================= */
.bm-spinner{
  width:18px;
  height:18px;
  border:2px solid rgba(255,255,255,.25);
  border-top:2px solid #ffffff;
  border-radius:50%;
  animation:bmSpin .7s linear infinite;
}

@keyframes bmSpin{
  to{
    transform:rotate(360deg);
  }
}

/* =========================================================
   10) TOGGLE / PAINEL DE CLASSES
========================================================= */
.bm-classes-toggle{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:rgba(241,241,241,.92);
  font-size:14px;
  outline:none;
  cursor:pointer;
  padding:8px 12px;
  border-radius:12px;
  transition:.18s ease;
  white-space:nowrap;
}

.bm-classes-toggle:hover{
  background:rgba(255,255,255,.08);
}

.bm-classes-toggle.active{
  background:rgba(59,130,246,.18);
  border-color:rgba(59,130,246,.35);
  color:#dceaff;
}

.bm-classes-panel{
  display:none;
  margin-top:12px;
  padding:14px;
  padding-right:10px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(22,26,33,.98);
  border-radius:18px;
  box-shadow:0 16px 40px rgba(0,0,0,.30);
  max-height:calc(100vh - var(--bm-header-offset) - 110px);
  overflow-y:auto;
  overflow-x:hidden;
  -webkit-overflow-scrolling:touch;
}

.bm-classes-panel.open{
  display:block;
}

.bm-classes-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
  flex-wrap:wrap;
}

.bm-classes-title{
  font-size:13px;
  font-weight:800;
  letter-spacing:.4px;
  color:#9fb3c8;
  text-transform:uppercase;
}

.bm-classes-clear{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:rgba(241,241,241,.78);
  padding:7px 12px;
  border-radius:999px;
  font-size:12px;
  cursor:pointer;
  transition:.18s ease;
}

.bm-classes-clear:hover{
  background:rgba(255,255,255,.08);
}

/* =========================================================
   11) CLASSES SELECIONADAS
========================================================= */
.bm-selected-classes{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:12px;
  min-height:18px;
}

.bm-selected-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border-radius:999px;
  background:rgba(59,130,246,.16);
  border:1px solid rgba(59,130,246,.34);
  color:#d9e9ff;
  font-size:12px;
  font-weight:700;
}

.bm-selected-pill button{
  border:0;
  background:transparent;
  color:#d9e9ff;
  cursor:pointer;
  font-size:12px;
  line-height:1;
  padding:0;
}

/* =========================================================
   12) TABS DE CLASSES
========================================================= */
.bm-classes-tabs{
  display:flex;
  gap:8px;
  margin-bottom:12px;
  flex-wrap:wrap;
}

.bm-classes-tab{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:rgba(241,241,241,.88);
  padding:8px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  transition:.18s ease;
}

.bm-classes-tab:hover{
  background:rgba(255,255,255,.08);
}

.bm-classes-tab.active{
  background:rgba(59,130,246,.18);
  border-color:rgba(59,130,246,.35);
  color:#dceaff;
}

.bm-classes-view{
  display:none;
  min-height:0;
}

.bm-classes-view.active{
  display:block;
}

/* =========================================================
   13) GRID DE CLASSES
========================================================= */
.bm-classes-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(54px, 1fr));
  gap:10px;
  padding-bottom:8px;
}

.bm-class-chip{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
  color:rgba(241,241,241,.88);
  border-radius:12px;
  padding:10px 8px;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  transition:.18s ease;
}

.bm-class-chip:hover{
  background:rgba(255,255,255,.08);
  transform:translateY(-1px);
}

.bm-class-chip.active{
  background:rgba(59,130,246,.20);
  color:#dceaff;
  border-color:rgba(59,130,246,.40);
  box-shadow:inset 0 0 0 1px rgba(59,130,246,.08);
}

/* =========================================================
   14) LISTA SEMÂNTICA DE CLASSES
========================================================= */
.bm-classes-semantic-list{
  display:grid;
  gap:10px;
  padding-bottom:8px;
}

.bm-class-semantic-card{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
  border-radius:14px;
  padding:12px 14px;
  cursor:pointer;
  transition:.18s ease;
}

.bm-class-semantic-card:hover{
  background:rgba(255,255,255,.06);
  transform:translateY(-1px);
}

.bm-class-semantic-card.active,
.bm-class-semantic-card.is-selected{
  background:rgba(59,130,246,.16);
  border-color:rgba(59,130,246,.34);
  box-shadow:inset 0 0 0 1px rgba(59,130,246,.08);
}

.bm-class-semantic-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:6px;
}

.bm-class-semantic-code{
  font-size:13px;
  font-weight:800;
  color:#dceaff;
}

.bm-class-semantic-title{
  font-size:13px;
  font-weight:700;
  color:#f1f1f1;
}

.bm-class-semantic-text{
  font-size:13px;
  line-height:1.6;
  color:rgba(241,241,241,.72);
}

.bm-class-semantic-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.bm-class-semantic-row .bm-class-semantic-text{
  flex:1;
}

.bm-class-semantic-confirm{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  min-width:22px;
  border-radius:999px;
  background:rgba(34,197,94,.16);
  border:1px solid rgba(34,197,94,.38);
  color:#86efac;
  font-size:13px;
  font-weight:900;
}

/* =========================================================
   15) GRUPOS DE CLASSES
========================================================= */
.bm-class-group{
  margin-bottom:14px;
}

.bm-class-group-title{
  font-size:13px;
  font-weight:800;
  color:#dceaff;
  margin-bottom:8px;
  padding:0 2px;
  text-transform:uppercase;
  letter-spacing:.3px;
}

.bm-class-group-list{
  display:grid;
  gap:10px;
}

/* =========================================================
   16) CAMPO DE ATIVIDADE
========================================================= */
.bm-atividade-input-wrap{
  position:relative;
  flex:1 1 260px;
  min-width:220px;
}

.bm-atividade-input{
  flex:1 1 260px;
  min-width:220px;
  width:100%;
  height:34px;
  padding:0 60px 0 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.04);
  color:#ffffff;
  font-size:13px;
  outline:none;
  transition:.18s ease;
}

.bm-atividade-input::placeholder{
  color:rgba(255,255,255,.45);
}

.bm-atividade-input:focus{
  border-color:rgba(255,255,255,.45);
  background:rgba(255,255,255,.06);
  box-shadow:0 0 0 2px rgba(255,255,255,.08);
}

.bm-atividade-hint{
  font-size:11px;
  color:rgba(255,255,255,.35);
  margin-top:-10px;
  margin-bottom:10px;
  margin-left:220px;
  line-height:1.2;
  user-select:none;
}

/* =========================================================
   17) BOTÃO "ITENS +"
========================================================= */
.bm-itens-btn{
  position:absolute;
  top:50%;
  right:5px;
  transform:translateY(-50%);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:22px;
  padding:0 8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.06);
  color:#f1f1f1;
  font-size:11px;
  font-weight:700;
  line-height:1;
  cursor:pointer;
  transition:.18s ease;
}

.bm-itens-btn:hover{
  background:rgba(255,255,255,.10);
  border-color:rgba(255,255,255,.26);
}

.bm-itens-btn[hidden]{
  display:none !important;
}

/* =========================================================
   18) SCROLLBAR DO PAINEL
========================================================= */
.bm-classes-panel::-webkit-scrollbar{
  width:10px;
}

.bm-classes-panel::-webkit-scrollbar-track{
  background:rgba(255,255,255,.04);
  border-radius:999px;
}

.bm-classes-panel::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.16);
  border-radius:999px;
  border:2px solid transparent;
  background-clip:padding-box;
}

.bm-classes-panel::-webkit-scrollbar-thumb:hover{
  background:rgba(255,255,255,.24);
  background-clip:padding-box;
}

/* =========================================================
   19) MODAIS LEGADOS
========================================================= */
#modallogar .modal-content,
#exampleModal .modal-content{
  background:#ffffff !important;
  color:#111827 !important;
}

#modallogar .modal-content *,
#exampleModal .modal-content *{
  color:#111827 !important;
}

#modallogar .form-control{
  background:#ffffff !important;
  color:#111827 !important;
}

#modallogar .form-control::placeholder{
  color:#6b7280 !important;
}

/* =========================================================
   20) RESPONSIVO
========================================================= */
@media (max-width: 768px){
  .bm-intro-title{
    font-size:1.7rem;
  }

  .bm-intro-sub{
    font-size:.96rem;
    line-height:1.45;
  }

  .bm-prompt{
    gap:8px;
    padding:8px 10px;
    min-height:54px;
  }

  .bm-input{
    font-size:16px;
    min-width:120px;
  }

  .bm-filetag{
    max-width:140px;
  }

  .bm-classes-panel{
    max-height:calc(100vh - var(--bm-header-offset) - 90px);
    padding-right:8px;
  }

  .bm-class-semantic-top{
    align-items:flex-start;
    flex-direction:column;
  }
}

/* =========================================
   Divisor |
========================================= */
.bm-classes-divider{
  margin: 0 12px;
  font-size:16px;
  font-weight:700;
  opacity:.35;
}

/* =========================================
   Checkbox desconto simples
========================================= */
.bm-classes-title .bm-checkbox-simples{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:11px !important;
  font-weight:400 !important;
  color:rgba(255,255,255,.32) !important;
  line-height:1.2 !important;
  text-transform:none !important;
  letter-spacing:0 !important;
  user-select:none;
  cursor:pointer;
  vertical-align:middle;
  position: relative;
  top: -2px;
}

.bm-classes-title .bm-checkbox-simples input[type="checkbox"]{
  width:16px;
  height:16px;
  border-radius:5px;
  cursor:pointer;
  accent-color:#3b82f6;
  opacity:.9;
  flex:0 0 auto;
}

.bm-taxa-wrapper{
  display:flex;
  flex-direction:column;
  align-items:center;
}

.bm-taxa-aviso{
  font-size:11px;
  font-weight:400;
  color:rgba(255,255,255,.32);
  margin-top:3px;
}

/* =========================================
   Ajuste divisor dentro do título
========================================= */
.bm-classes-title .bm-classes-divider{
  margin:0 9px;
  font-size:13px;
  opacity:.25;
}

/* =========================================
   Total de taxas
========================================= */
.bm-taxa-total{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid rgba(34,197,94,.22);
  background:rgba(34,197,94,.08);
  color:#b9f5cc;
  font-size:12px;
  font-weight:800;
  line-height:1;
  white-space:nowrap;
}

.bm-class-semantic-remove {
  margin-left: 8px;
  display: flex;
  align-items: center;
}

.bm-class-semantic-remove i{
  color:#ef4444 !important;
  font-size:1.05rem;
}

.bm-rich-tooltip{
  position:absolute;
  z-index:99999;
  width:min(420px, calc(100vw - 24px));
  max-height:70vh;
  overflow:auto;
  pointer-events:none;
  background:rgba(18, 20, 26, 0.98);
  color:#f8fafc;
  border:1px solid rgba(255,255,255,0.10);
  border-radius:14px;
  box-shadow:0 18px 50px rgba(0,0,0,0.38);
  padding:14px 14px 12px;
  font-family:Roboto, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  line-height:1.45;
  backdrop-filter:blur(8px);
}

.bm-tooltip-titulo{
  font-size:0.95rem;
  font-weight:700;
  color:#ffffff;
  margin-bottom:10px;
}

.bm-tooltip-bloco{
  margin-bottom:10px;
}

.bm-tooltip-label{
  font-size:0.72rem;
  font-weight:700;
  color:#8fb7ff;
  text-transform:uppercase;
  letter-spacing:.04em;
  margin-bottom:3px;
}

.bm-tooltip-texto{
  font-size:0.85rem;
  color:#e5e7eb;
}

.bm-tooltip-linha{
  font-size:0.82rem;
  color:#dbe3ee;
  margin-bottom:6px;
}

/* =========================================================
   21) LAYOUT APÓS A PRIMEIRA BUSCA
========================================================= */
body.bm-after-first-search .bm-intro{
  display:none !important;
}

body.bm-after-first-search .bm-header-prompt-slot{
  display:flex;
  align-items:center;
  justify-content:center;
}

body.bm-after-first-search #bmSticky{
  display:none;
}

body.bm-after-first-search .bm-prompt-wrap{
  max-width:none;
  width:100%;
  margin:0;
  padding:0;
}

body.bm-after-first-search .bm-hint{
  display:none !important;
}

body.bm-after-first-search .bm-topbar-row{
  min-height:56px;
  gap:12px;
}

body.bm-after-first-search .bm-topbar-logo{
  font-size:28px;
  letter-spacing:-0.6px;
}

body.bm-after-first-search .bm-auth-btn{
  padding:6px 12px !important;
  font-size:12px !important;
}

body.bm-after-first-search #bmPrompt{
  min-height:42px;
  padding:4px 8px;
  gap:6px;
  border-radius:999px;
  background:#171b22;
  box-shadow:0 6px 18px rgba(0,0,0,.22);
  border-color:rgba(255,255,255,.08);
  width:100%;
}

body.bm-after-first-search #bmPrompt .bm-input{
  font-size:13px;
  padding:5px 2px;
  min-width:0;
  flex:1 1 auto;
}

body.bm-after-first-search #bmPrompt .bm-btn{
  width:30px;
  height:30px;
}

body.bm-after-first-search #bmPrompt .bm-btn svg{
  width:15px;
  height:15px;
}

body.bm-after-first-search #bmPrompt .bm-divider{
  height:18px;
}

body.bm-after-first-search #bmPrompt .bm-classes-toggle{
  font-size:11px;
  padding:5px 8px;
  border-radius:10px;
}

body.bm-after-first-search #bmPrompt .bm-thumb{
  width:26px;
  height:26px;
  border-radius:8px;
}

body.bm-after-first-search #bmPrompt .bm-filetag{
  max-width:110px;
  font-size:10px;
  padding:4px 7px;
}

/* PAINEL DE CLASSES FORA DO CABEÇALHO APÓS TRANSFORMAÇÃO */
body.bm-after-first-search #bmClassesPanel{
  display:none !important;
  position:fixed !important;
  top:calc(var(--bm-header-offset) + 8px) !important;
  left:50% !important;
  transform:translateX(-50%) !important;
  width:min(920px, calc(100vw - 28px)) !important;
  max-width:920px !important;
  z-index:1036 !important;
  margin-top:0 !important;
  box-sizing:border-box;
}

body.bm-after-first-search #bmClassesPanel.open{
  display:block !important;
}

@media (max-width: 992px){
  body.bm-after-first-search .bm-topbar-row{
    flex-wrap:wrap;
    justify-content:center;
  }

  body.bm-after-first-search .bm-topbar-brand{
    width:100%;
    text-align:center;
  }

  body.bm-after-first-search .bm-header-prompt-slot{
    width:100%;
    margin:0;
    order:2;
  }

  body.bm-after-first-search .bm-topbar-actions{
    width:100%;
    justify-content:center;
    margin-left:0;
    order:3;
  }

  body.bm-after-first-search #bmClassesPanel{
    width:calc(100vw - 24px) !important;
    max-width:none !important;
  }
}

@media (max-width: 768px){
  body.bm-after-first-search .bm-topbar-logo{
    font-size:24px;
  }

  body.bm-after-first-search #bmPrompt{
    min-height:40px;
    padding:4px 6px;
    gap:5px;
  }

  body.bm-after-first-search #bmPrompt .bm-btn{
    width:28px;
    height:28px;
  }

  body.bm-after-first-search #bmPrompt .bm-btn svg{
    width:14px;
    height:14px;
  }

  body.bm-after-first-search #bmPrompt .bm-classes-toggle{
    padding:4px 7px;
    font-size:10px;
  }

  body.bm-after-first-search #bmPrompt .bm-filetag{
    display:none !important;
  }

  body.bm-after-first-search #bmClassesPanel{
    top:calc(var(--bm-header-offset) + 6px) !important;
    max-height:calc(100vh - var(--bm-header-offset) - 24px) !important;
  }
}


.bm-prompt-wrap {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
}

.bm-search-wrap {
    position: relative;
}

.bm-prompt {
    display: flex;
    align-items: center;
    gap: 8px;

    background: #303134;
    border-radius: 28px;
    padding: 8px 12px;

    border: 1px solid rgba(255,255,255,0.08);
}

.bm-btn {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    background: transparent;
    color: #e8eaed;

    cursor: pointer;
}

.bm-btn:hover {
    background: rgba(255,255,255,0.08);
}

.bm-divider {
    width: 1px;
    height: 22px;
    background: rgba(255,255,255,0.15);
}

.bm-input {
    flex: 1;

    border: none;
    outline: none;

    background: transparent;

    color: #e8eaed;
    font-size: 16px;

    padding: 8px;
}

.bm-input::placeholder {
    color: #9aa0a6;
}

.bm-classes-toggle {
    border: none;

    background: transparent;
    color: #e8eaed;

    font-size: 14px;

    padding: 6px 10px;
    border-radius: 16px;

    cursor: pointer;
}

.bm-classes-toggle:hover {
    background: rgba(255,255,255,0.08);
}

.bm-spinner {
    width: 18px;
    height: 18px;

    border: 2px solid rgba(255,255,255,0.2);
    border-top-color: #8ab4f8;

    border-radius: 50%;

    animation: bmSpin 0.8s linear infinite;
}

@keyframes bmSpin {
    to {
        transform: rotate(360deg);
    }
}

.bm-thumb {
    width: 36px;
    height: 36px;

    border-radius: 6px;
    overflow: hidden;
}

.bm-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bm-filetag {
    background: #202124;

    padding: 6px 10px;
    border-radius: 12px;

    font-size: 12px;

    max-width: 120px;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.bm-search-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;

    background: #303134;

    border-radius: 0 0 24px 24px;

    margin-top: 6px;

    overflow: hidden;

    box-shadow: 0 6px 16px rgba(0,0,0,0.45);
}

.bm-search-dropdown-title {
    padding: 12px 16px;

    font-size: 13px;
    color: #9aa0a6;
}

.bm-search-item {
    width: 100%;

    display: flex;
    align-items: center;
    gap: 10px;

    border: none;
    background: transparent;

    padding: 12px 16px;

    color: #e8eaed;

    cursor: pointer;
}

.bm-search-item:hover {
    background: rgba(255,255,255,0.08);
}

.bm-search-item-icon {
    width: 18px;
    text-align: center;
}

.bm-classes-panel {
    margin-top: 12px;

    background: #2b2c2f;

    border-radius: 18px;

    padding: 16px;

    border: 1px solid rgba(255,255,255,0.08);
}

.bm-hint {
    margin-top: 14px;

    text-align: center;

    font-size: 13px;

    color: #9aa0a6;
}




/* PAINEL CNPJ */
.bm-cnpj-wrap {
  max-width: 1080px;
  margin: 4px auto 8px auto;
  padding: 0 12px;
}

.bm-cnpj-card {
  background: linear-gradient(180deg, #101010 0%, #0a0a0a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.bm-cnpj-header {
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.015) 100%
  );
}

.bm-cnpj-tabs {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 14px 0 0 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bm-cnpj-tab {
  margin: 0;
  margin-top: -12px;
  padding-bottom: 10px;
  padding: 0 0 14px 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  position: relative;
  transition: color 0.18s ease;
  text-decoration: none;
}

.bm-cnpj-tab:hover {
  color: rgba(255, 255, 255, 0.86);
}

.bm-cnpj-tab.active {
  color: #ffffff;
}

.bm-cnpj-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
}

.bm-cnpj-body {
  padding: 18px 0 20px 0;
  color: #f3f3f3;
  text-align: left;
}

.bm-cnpj-inner {
  padding: 0 18px;
}

.bm-cnpj-topo {
  margin-bottom: 14px;
}

.bm-cnpj-topo-linha {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.bm-cnpj-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bm-cnpj-title {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 800;
  color: #ffffff;
}

.bm-cnpj-info {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
  white-space: nowrap;
}

.bm-cnpj-pane {
  display: none;
}

.bm-cnpj-pane.active {
  display: block;
}

.bm-cnpj-lista-scroll {
  height: 468px;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0 18px;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.bm-cnpj-lista-scroll::-webkit-scrollbar {
  width: 4px;
}

.bm-cnpj-lista-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.bm-cnpj-lista-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.bm-cnpj-lista {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bm-cnpj-item {
  appearance: none;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #0d0d0d 0%, #080808 100%);
  color: rgba(255, 255, 255, 0.58);
  padding: 14px 16px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  transition: 0.18s ease;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.01);
}

.bm-cnpj-item:hover {
  background: linear-gradient(180deg, #171717 0%, #101010 100%);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.82);
  transform: translateY(-1px);
}

.bm-cnpj-item:active {
  transform: translateY(0);
}

.bm-cnpj-vazio {
  width: 100%;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.6;
}

.bm-cnpj-ajuda {
  margin: 14px 18px 0 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .bm-cnpj-wrap {
    margin: 2px auto 18px auto;
  }

  .bm-cnpj-header {
    padding: 0 14px;
  }

  .bm-cnpj-inner {
    padding: 0 14px;
  }

  .bm-cnpj-title {
    font-size: 19px;
  }

  .bm-cnpj-info {
    white-space: normal;
  }

  .bm-cnpj-lista-scroll {
    height: 420px;
    margin: 0 14px;
  }

  .bm-cnpj-ajuda {
    margin: 14px 14px 0 14px;
  }
}

.bm-cnpj-dica-scroll {
  margin: 6px 18px 0 18px;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: 12px;
  color: rgba(255,255,255,.45);
  text-align: center;
  transition: opacity .2s ease;
  display:none;
}

.bm-cnpj-sync-btn {
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;

  background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
  border: 1px solid rgba(255,255,255,.08);

  color: rgba(255,255,255,.75);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .3px;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  cursor: pointer;
  transition: all .2s ease;

  position: relative;
  overflow: hidden;
}

/* brilho sutil interno */
.bm-cnpj-sync-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.06), transparent);
  opacity: 0;
  transition: opacity .25s;
}

.bm-cnpj-sync-btn:hover::before {
  opacity: 1;
}

/* hover */
.bm-cnpj-sync-btn:hover {
  border-color: rgba(255,255,255,.18);
  color: #fff;
  transform: translateY(-1px);
}

/* clique */
.bm-cnpj-sync-btn:active {
  transform: scale(.97);
}

/* loading */
.bm-cnpj-sync-btn.is-loading .bm-cnpj-sync-ico {
  animation: bmSpin 0.8s linear infinite;
}

/* sucesso */
.bm-cnpj-sync-btn.is-success {
  border-color: rgba(120,255,160,.25);
  color: rgba(170,255,195,.95);
  background: linear-gradient(135deg, #0f1411, #18221b);
}

/* erro */
.bm-cnpj-sync-btn.is-error {
  border-color: rgba(255,120,120,.25);
  color: rgba(255,180,180,.95);
  background: linear-gradient(135deg, #140f0f, #221818);
}

/* ícone */
.bm-cnpj-sync-ico {
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* animação */
@keyframes bmSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Ajustes na rolagem do painel */
#resultadoCnpj .bm-cnpj-lista-scroll {
  height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 14px 18px 0 18px;
  padding-right: 6px; /* Ajuste para garantir visibilidade */
}

#resultadoCnpj .bm-cnpj-lista-scroll::-webkit-scrollbar {
  width: 6px;
}

#resultadoCnpj .bm-cnpj-lista-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

#resultadoCnpj .bm-cnpj-lista-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

/* Para ocultar itens de forma mais "forçada" ao filtrar */
.bm-cnpj-item {
  visibility: hidden; /* Oculta sem remover do fluxo */
  background: linear-gradient(180deg, #0d0d0d 0%, #080808 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 16px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  transition: 0.18s ease;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.01);
}

/* Exibir os itens quando o filtro for aplicado corretamente */
.bm-cnpj-item[data-visible="true"] {
  visibility: visible;
}

/* Garantir que a lista de processos tenha um z-index adequado */
.bm-cnpj-lista {
  z-index: 10; /* Ajuste para garantir que a lista esteja acima de outros elementos */
}

/* Ajustes no cabeçalho fixo para garantir que não sobreponha a lista */
#bmSticky {
  z-index: 100; /* Garantir que o cabeçalho fique acima da lista de processos */
}

/* Apenas para o painel de resultado do processo */
#resultadoProcesso {
  max-height: 80vh; /* Ajuste conforme necessário */
  overflow-y: auto; /* Permite rolagem vertical */
  padding-top: 14px; /* Distanciamento do topo */
  overflow-x: hidden; /* Previne a rolagem horizontal */
}

#resultadoProcesso::-webkit-scrollbar {
  width: 8px; /* Largura da barra de rolagem */
}

#resultadoProcesso::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3); /* Cor da barra */
  border-radius: 10px;
}

#resultadoProcesso::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1); /* Cor de fundo da barra */
}

/* Modal de Auditoria */
#auditoriaModal .modal-content {
    background-color: #333;
    color: #fff;
}

#auditoriaModal .modal-header {
    border-bottom: 1px solid #444;
}

#auditoriaModal .modal-title {
    color: #FFD700;
}

#auditoriaModal .btn-close {
    background-color: #444;
    color: #fff;
}

#auditoriaModal .modal-footer {
    border-top: 1px solid #444;
}

#auditoriaModal .btn-secondary {
    background-color: #555;
    border-color: #444;
    color: #fff;
}

#auditoriaModal .btn-primary {
    background-color: #FFD700;
    border-color: #FFD700;
    color: #333;
}

/* Ajustes na barra de abas para manter as abas à esquerda e o spinner à direita */
.bm-cnpj-tabs {
  display: flex;
  justify-content: space-between; /* Garante que a primeira parte (abas) fique à esquerda e o spinner à direita */
  align-items: center;
  width: 100%;
  gap: 10px;
}

#progressBar {
  width: 100%;
  height: 7px;
  display: none;  /* Inicia escondida */
  border-radius: 5px; /* Borda arredondada */
  animation: blink 1s linear infinite; /* Animação de piscamento */
  background-color: rgba(255, 255, 255, 0.3); /* Cor de fundo inicial */
}

@keyframes blink {
  0% {
    background-color: rgba(255, 255, 255, 0.3); /* Cor inicial da barra (mais suave) */
  }
  50% {
    background-color: rgba(255, 255, 255, 0.7); /* Cor mais forte no meio do ciclo */
  }
  100% {
    background-color: rgba(255, 255, 255, 0.3); /* Volta para a cor inicial */
  }
}

/* Overlay que cobre a tela */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8); /* Aumenta a opacidade para o overlay ficar mais escuro */
  display: none; /* Começa escondido */
  justify-content: center;
  align-items: center;
  z-index: 1000; /* Coloca o overlay sobre outros elementos */
}

/* Estilo do spinner */
#spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgb(32, 32, 32);
}

.spinner-border {
  width: 5rem;  /* Tamanho aumentado do spinner */
  height: 5rem; /* Tamanho aumentado do spinner */
  border-width: 0.25em; /* Aumenta a espessura do spinner */
}

.bm-cnpj-filtro {
  position: relative; /* Para garantir que o dropdown fique em relação ao input */
}

.bm-cnpj-filtro-input {
  width: 100%; /* Faz o input ocupar toda a largura disponível */
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background-color: #fff;
}

.bm-search-dropdown {
  position: absolute;
  top: 100%; /* Faz o dropdown aparecer logo abaixo do input */
  left: 0;
  width: 100%; /* Faz o dropdown ocupar a mesma largura do input */
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-height: 200px; /* Limita a altura do dropdown */
  overflow-y: auto; /* Adiciona rolagem se o conteúdo for maior que a altura */
  z-index: 9999; /* Garante que o dropdown fique acima dos outros elementos */
  display: none; /* Começa escondido */
}

.bm-search-dropdown-title {
  padding: 8px;
  font-weight: bold;
  background-color: #f9f9f9;
}

.bm-search-item {
  padding: 10px;
  background-color: #fff;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.bm-search-item:hover {
  background-color: #f1f1f1;
}

.bm-search-item-icon {
  margin-right: 8px;
}

/* Estilo do dropdown */
.bm-search-dropdown {
  position: absolute;
  top: 100%; /* Fica logo abaixo do input */
  left: 0;
  width: 100%; /* Mesma largura do input */
  background-color: #1a1a1a; /* Fundo escuro */
  border: 1px solid #444; /* Borda escura */
  border-radius: 12px; /* Bordas arredondadas */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  max-height: 200px;
  z-index: 1000;
  display: none; /* Começa escondido */
  overflow: hidden; /* Remove a barra de rolagem */
}

/* Estilo do botão de pesquisa */
.bm-search-item {
  width: 100%;
  padding: 10px;
  text-align: left;
  background-color: #2c2c2c; /* Cor escura para os itens */
  border: none;
  cursor: pointer;
  color: #e0e0e0;
  transition: background-color 0.2s;
  border-radius: 8px; /* Bordas arredondadas nos itens */
}

.bm-search-item:hover {
  background-color: #444; /* Cor mais clara no hover */
}

.bm-search-item-icon {
  margin-right: 8px;
}

