/* =========================================================
   LICIQUEST — PADRÃO DE PÁGINAS (referência: Oportunidades)
   Carregado por último no base.html. Não altera Oportunidades.
   Para ajustar tudo de uma vez, mude só as variáveis abaixo.
   ========================================================= */

:root{
  --lqp-gutter:14px;        /* margem lateral */
  --lqp-top:10px;           /* espaço entre menu e título */
  --lqp-gap:9px;            /* espaço entre cards */
  --lqp-navy:#0B2239;
  --lqp-navy-border:#173650;
  --lqp-green:#14a06f;
  --lqp-title:#10243e;
  --lqp-sub:#718096;
}

/* ---------- 1. MARGENS E TOPO (todas as telas, menos Oportunidades) ---------- */
html body:has(.lq2-nav) main.wrap.main:not(:has(.dashboard-full:not(.lq-saved-page))){
  width:100% !important;
  max-width:none !important;
  margin-left:0 !important;
  margin-right:0 !important;
  padding-top:var(--lqp-top) !important;
  padding-left:var(--lqp-gutter) !important;
  padding-right:var(--lqp-gutter) !important;
}
html body main.wrap.main .lq-saved-page{
  padding-left:0 !important;
  padding-right:0 !important;
}

/* ---------- 2. TÍTULO + SUBTÍTULO ---------- */
html body main.wrap.main .lq-standard-page-head,
html body main.wrap.main .certificates-header > div:first-child,
html body main.wrap.main .company-profile-head > div:first-child,
html body main.wrap.main .lq-subscription-head{
  margin:0 0 10px !important;
  padding:0 !important;
}
html body main.wrap.main .lq-standard-page-head h1,
html body main.wrap.main .lq-standard-page-head h2,
html body main.wrap.main .certificates-header h1,
html body main.wrap.main .company-profile-head h1,
html body main.wrap.main .lq-subscription-head h1{
  margin:0 !important;
  padding:0 !important;
  color:var(--lqp-title) !important;
  font-size:20px !important;
  font-weight:800 !important;
  line-height:1.05 !important;
  letter-spacing:0 !important;
}
html body main.wrap.main .lq-standard-page-head p,
html body main.wrap.main .certificates-header p,
html body main.wrap.main .company-profile-head p.muted,
html body main.wrap.main .lq-subscription-head p.muted{
  margin:3px 0 0 !important;
  padding:0 !important;
  color:var(--lqp-sub) !important;
  font-size:14px !important;
  font-weight:400 !important;
  line-height:1.2 !important;
}
/* etiqueta verde acima do título: Oportunidades não tem */
html body main.wrap.main .certificates-eyebrow,
html body main.wrap.main .company-profile-head .eyebrow,
html body main.wrap.main .lq-subscription-head .eyebrow{
  display:none !important;
}

/* ---------- 3. CARDS DE RESUMO (navy) ---------- */
html body main.wrap.main .lq-saved-summary,
html body main.wrap.main .lq-analysis-summary,
html body main.wrap.main .lq-reports-summary{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:var(--lqp-gap) !important;
  width:100% !important;
  margin:8px 0 12px !important;
  padding:0 !important;
}
html body main.wrap.main .lq-saved-summary-card,
html body main.wrap.main .lq-analysis-summary-card,
html body main.wrap.main .lq-report-summary-card{
  box-sizing:border-box !important;
  width:auto !important;
  min-width:0 !important;
  min-height:72px !important;
  height:auto !important;
  margin:0 !important;
  padding:10px 14px !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  gap:2px !important;
  background:var(--lqp-navy) !important;
  border:1px solid var(--lqp-navy-border) !important;
  border-radius:12px !important;
  box-shadow:0 5px 16px rgba(5,22,38,.12) !important;
  color:#fff !important;
  text-decoration:none !important;
}
html body main.wrap.main .lq-saved-summary-card strong,
html body main.wrap.main .lq-analysis-summary-card strong,
html body main.wrap.main .lq-report-summary-card strong{
  color:#fff !important;
  font-size:25px !important;
  font-weight:850 !important;
  line-height:1 !important;
}
html body main.wrap.main .lq-saved-summary-card span,
html body main.wrap.main .lq-analysis-summary-card span,
html body main.wrap.main .lq-report-summary-card span{
  color:#fff !important;
  font-size:15px !important;
  font-weight:800 !important;
  line-height:1.15 !important;
  text-transform:none !important;
}
html body main.wrap.main .lq-saved-summary-card.active,
html body main.wrap.main .lq-analysis-summary-card.active,
html body main.wrap.main .lq-report-summary-card.active{
  outline:2px solid #8EFF01 !important;
  outline-offset:-2px !important;
}

/* ---------- 4. CARDS DA LISTA (Análises e Relatórios) ---------- */
html body main.wrap.main .lq-analysis-card,
html body main.wrap.main .lq-report-card{
  box-sizing:border-box !important;
  margin:0 0 8px !important;
  padding:8px 12px !important;
  background:#fbfcfd !important;
  border:1px solid #d8e4ec !important;
  border-left:4px solid var(--lqp-green) !important;
  border-radius:12px !important;
  box-shadow:none !important;
}
html body main.wrap.main .lq-analysis-title{
  margin:0 0 4px !important;
  font-size:14px !important;
  font-weight:600 !important;
  line-height:1.2 !important;
  text-transform:none !important;
}
html body main.wrap.main .lq-analysis-agency,
html body main.wrap.main .lq-report-agency,
html body main.wrap.main .lq-report-meta{
  font-size:9px !important;
  line-height:1.15 !important;
}

/* ---------- 5. CERTIDÕES ---------- */
html body main.wrap.main .certificates-dashboard{
  padding:0 !important;
  margin:0 !important;
}
html body main.wrap.main .certificates-grid{
  gap:8px !important;
}
html body main.wrap.main .certificate-card{
  margin:0 !important;
  border-radius:12px !important;
  border:1px solid #d8e4ec !important;
  border-left:4px solid var(--lqp-green) !important;
  background:#fbfcfd !important;
  box-shadow:none !important;
}

/* ---------- 6. MOBILE ---------- */
@media(max-width:900px){
  html body main.wrap.main .lq-saved-summary,
  html body main.wrap.main .lq-analysis-summary,
  html body main.wrap.main .lq-reports-summary{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}
@media(max-width:560px){
  html body main.wrap.main .lq-saved-summary,
  html body main.wrap.main .lq-analysis-summary,
  html body main.wrap.main .lq-reports-summary{
    grid-template-columns:1fr !important;
  }
  html body main.wrap.main .lq-standard-page-head h1,
  html body main.wrap.main .lq-standard-page-head h2{font-size:18px !important}
  html body main.wrap.main .lq-standard-page-head p{font-size:12px !important}
}
