/* =====================================================================
   V74 — Exportação estável e profissional
   Objetivo: impedir troca visual/reconstrução aparente e manter um único
   layout desde a abertura da rota #/exportar.
   ===================================================================== */
html.export-route-boot #modalExportar:not(.export-v74-ready),
body.export-v74-building #modalExportar:not(.export-v74-ready){
  opacity:0 !important;
  pointer-events:none !important;
}

body[data-route="exportar"] #exportDidacticIntro,
body.route-exportar #exportDidacticIntro{
  display:none !important;
  visibility:hidden !important;
  height:0 !important;
  overflow:hidden !important;
}

body[data-route="exportar"] #modalExportar.export-v74-ready,
body.route-exportar #modalExportar.export-v74-ready{
  opacity:1 !important;
  transition:opacity .16s ease-in-out;
}

body[data-route="exportar"] #modalExportar .export-page-card,
body.route-exportar #modalExportar .export-page-card{
  min-height: calc(100vh - 118px) !important;
  padding:28px 32px 112px !important;
  border:1px solid rgba(37,99,235,.24) !important;
  border-radius:22px !important;
  background:linear-gradient(180deg,#ffffff 0%,#fbfdff 62%,#f7fbff 100%) !important;
  box-shadow:0 22px 60px rgba(15,23,42,.06) !important;
}

body[data-route="exportar"] #modalExportar .export-pro-titlebar,
body.route-exportar #modalExportar .export-pro-titlebar{
  margin:0 0 28px !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  display:flex !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
}

body[data-route="exportar"] #modalExportar .export-pro-titlebar h2,
body.route-exportar #modalExportar .export-pro-titlebar h2{
  display:flex !important;
  align-items:center !important;
  gap:14px !important;
  margin:0 !important;
  color:#0f172a !important;
  font-size:clamp(1.75rem,2vw,2.35rem) !important;
  font-weight:900 !important;
  letter-spacing:-.04em !important;
}

body[data-route="exportar"] #modalExportar .export-pro-titlebar h2 .material-icons,
body.route-exportar #modalExportar .export-pro-titlebar h2 .material-icons{
  width:42px !important;
  height:42px !important;
  border-radius:14px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  color:#fff !important;
  background:linear-gradient(135deg,#2563eb,#06b6d4) !important;
  box-shadow:0 12px 26px rgba(37,99,235,.24) !important;
  font-size:24px !important;
}

body[data-route="exportar"] #modalExportar .export-pro-titlebar p,
body.route-exportar #modalExportar .export-pro-titlebar p{
  margin:8px 0 0 56px !important;
  color:#334155 !important;
  font-weight:700 !important;
  font-size:1rem !important;
}

body[data-route="exportar"] #modalExportar .export-pro-body,
body.route-exportar #modalExportar .export-pro-body{
  padding:0 !important;
  margin:0 !important;
}

body[data-route="exportar"] #modalExportar .export-pro-dashboard,
body.route-exportar #modalExportar .export-pro-dashboard{
  display:grid !important;
  gap:18px !important;
}

body[data-route="exportar"] #modalExportar .export-pro-steps,
body.route-exportar #modalExportar .export-pro-steps{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:14px !important;
  margin:0 0 2px !important;
}

body[data-route="exportar"] #modalExportar .export-pro-step,
body.route-exportar #modalExportar .export-pro-step{
  min-height:74px !important;
  display:flex !important;
  align-items:center !important;
  gap:12px !important;
  padding:14px 18px !important;
  border-radius:16px !important;
  border:1px solid rgba(37,99,235,.28) !important;
  background:rgba(255,255,255,.84) !important;
  box-shadow:0 12px 28px rgba(15,23,42,.035) !important;
}

body[data-route="exportar"] #modalExportar .export-pro-step-number,
body.route-exportar #modalExportar .export-pro-step-number,
body[data-route="exportar"] #modalExportar .export-pro-step-icon,
body.route-exportar #modalExportar .export-pro-step-icon{
  width:34px !important;
  height:34px !important;
  border-radius:12px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex:0 0 auto !important;
  background:#eff6ff !important;
  color:#2563eb !important;
  font-weight:900 !important;
}

body[data-route="exportar"] #modalExportar .export-pro-step strong,
body.route-exportar #modalExportar .export-pro-step strong{
  color:#0f172a !important;
  font-size:.94rem !important;
  font-weight:900 !important;
}

body[data-route="exportar"] #modalExportar .export-pro-step p,
body.route-exportar #modalExportar .export-pro-step p{
  margin:3px 0 0 !important;
  color:#475569 !important;
  font-size:.8rem !important;
  font-weight:650 !important;
  line-height:1.25 !important;
}

body[data-route="exportar"] #modalExportar .export-pro-grid-131,
body.route-exportar #modalExportar .export-pro-grid-131{
  display:grid !important;
  grid-template-columns:280px minmax(620px,1fr) 300px !important;
  align-items:start !important;
  gap:18px !important;
}

body[data-route="exportar"] #modalExportar .export-pro-card,
body[data-route="exportar"] #modalExportar .export-pro-main,
body.route-exportar #modalExportar .export-pro-card,
body.route-exportar #modalExportar .export-pro-main{
  border-radius:18px !important;
  border:1px solid rgba(37,99,235,.26) !important;
  background:rgba(255,255,255,.91) !important;
  box-shadow:0 16px 40px rgba(15,23,42,.055) !important;
}

body[data-route="exportar"] #modalExportar .export-pro-card,
body.route-exportar #modalExportar .export-pro-card{
  padding:18px !important;
}

body[data-route="exportar"] #modalExportar .export-pro-main,
body.route-exportar #modalExportar .export-pro-main{
  padding:18px !important;
}

body[data-route="exportar"] #modalExportar .export-pro-card-head,
body[data-route="exportar"] #modalExportar .export-pro-section-head,
body.route-exportar #modalExportar .export-pro-card-head,
body.route-exportar #modalExportar .export-pro-section-head{
  display:flex !important;
  align-items:flex-start !important;
  gap:12px !important;
  margin-bottom:14px !important;
}

body[data-route="exportar"] #modalExportar .export-pro-card-head > .material-icons,
body[data-route="exportar"] #modalExportar .export-pro-section-head > .material-icons,
body.route-exportar #modalExportar .export-pro-card-head > .material-icons,
body.route-exportar #modalExportar .export-pro-section-head > .material-icons{
  width:34px !important;
  height:34px !important;
  border-radius:12px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:#eff6ff !important;
  color:#2563eb !important;
  font-size:20px !important;
}

body[data-route="exportar"] #modalExportar h3,
body.route-exportar #modalExportar h3{
  margin:0 !important;
  color:#0f172a !important;
  font-size:1.08rem !important;
  font-weight:900 !important;
  letter-spacing:-.02em !important;
}

body[data-route="exportar"] #modalExportar .export-pro-card-head p,
body[data-route="exportar"] #modalExportar .export-pro-section-head p,
body[data-route="exportar"] #modalExportar .export-pro-desc,
body.route-exportar #modalExportar .export-pro-card-head p,
body.route-exportar #modalExportar .export-pro-section-head p,
body.route-exportar #modalExportar .export-pro-desc{
  margin:4px 0 0 !important;
  color:#334155 !important;
  font-size:.86rem !important;
  font-weight:650 !important;
  line-height:1.42 !important;
}

body[data-route="exportar"] #modalExportar .export-pro-main-grid,
body.route-exportar #modalExportar .export-pro-main-grid{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:14px !important;
}

body[data-route="exportar"] #modalExportar .export-pro-download-card,
body.route-exportar #modalExportar .export-pro-download-card{
  min-height:244px !important;
  display:flex !important;
  flex-direction:column !important;
}

body[data-route="exportar"] #modalExportar .export-pro-toggle-row,
body.route-exportar #modalExportar .export-pro-toggle-row{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:10px !important;
  margin:16px 0 12px !important;
}

body[data-route="exportar"] #modalExportar .export-pro-toggle,
body.route-exportar #modalExportar .export-pro-toggle{
  min-height:50px !important;
  padding:10px 12px !important;
  border:1px solid rgba(37,99,235,.22) !important;
  border-radius:13px !important;
  background:#f8fbff !important;
  box-shadow:none !important;
  font-size:.82rem !important;
  font-weight:900 !important;
  color:#0f172a !important;
}

body[data-route="exportar"] #modalExportar .export-pro-button,
body.route-exportar #modalExportar .export-pro-button{
  width:100% !important;
  min-height:48px !important;
  margin-top:auto !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:10px !important;
  border-radius:14px !important;
  border:1px solid rgba(37,99,235,.38) !important;
  background:#ffffff !important;
  color:#0f3d91 !important;
  font-size:.92rem !important;
  font-weight:900 !important;
  letter-spacing:-.01em !important;
  transition:transform .18s ease-in-out, box-shadow .18s ease-in-out, background .18s ease-in-out !important;
}

body[data-route="exportar"] #modalExportar .export-pro-button:not(:disabled):hover,
body.route-exportar #modalExportar .export-pro-button:not(:disabled):hover{
  transform:translateY(-1px) !important;
  background:#f8fbff !important;
  box-shadow:0 12px 24px rgba(37,99,235,.12) !important;
}

body[data-route="exportar"] #modalExportar .export-pro-button:disabled,
body.route-exportar #modalExportar .export-pro-button:disabled{
  opacity:.52 !important;
  cursor:not-allowed !important;
  transform:none !important;
  box-shadow:none !important;
}

body[data-route="exportar"] #modalExportar .export-pro-field,
body.route-exportar #modalExportar .export-pro-field{
  display:grid !important;
  gap:8px !important;
  margin-top:10px !important;
  color:#0f172a !important;
  font-size:.82rem !important;
  font-weight:900 !important;
}

body[data-route="exportar"] #modalExportar select,
body.route-exportar #modalExportar select{
  width:100% !important;
  min-height:45px !important;
  border-radius:13px !important;
  border:1px solid rgba(37,99,235,.30) !important;
  background:#fff !important;
  color:#0f172a !important;
  padding:0 12px !important;
  font-weight:800 !important;
}

body[data-route="exportar"] #modalExportar .export-pro-scope-badge,
body.route-exportar #modalExportar .export-pro-scope-badge{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:40px !important;
  padding:8px 12px !important;
  border-radius:999px !important;
  background:#eff6ff !important;
  color:#1d4ed8 !important;
  font-weight:900 !important;
  font-size:.82rem !important;
  margin-bottom:10px !important;
}

body[data-route="exportar"] #modalExportar .export-pro-mini-note,
body.route-exportar #modalExportar .export-pro-mini-note{
  display:flex !important;
  gap:8px !important;
  margin:12px 0 !important;
  padding:12px !important;
  border-radius:14px !important;
  background:#eff6ff !important;
  color:#334155 !important;
  line-height:1.35 !important;
  font-weight:650 !important;
  font-size:.82rem !important;
}

body[data-route="exportar"] #modalExportar .export-pro-hidden-radios,
body.route-exportar #modalExportar .export-pro-hidden-radios{
  display:none !important;
}

body[data-route="exportar"] #btnResetFiltros,
body.route-exportar #btnResetFiltros,
body[data-route="home"] #btnResetFiltros,
body[data-route="regras"] #btnResetFiltros,
body[data-route="parametros"] #btnResetFiltros,
body.route-home #btnResetFiltros,
body.route-regras #btnResetFiltros,
body.route-parametros #btnResetFiltros,
#btnFloatingClearFiltersV7118,
#btnExportClearV7125Fix,
#btnExportClearPro{
  display:none !important;
  visibility:hidden !important;
}

body[data-route="exportar"] #btnExportClearPro.is-visible,
body.route-exportar #btnExportClearPro.is-visible{
  display:inline-flex !important;
  visibility:visible !important;
}

@media (max-width: 1180px){
  body[data-route="exportar"] #modalExportar .export-pro-grid-131,
  body.route-exportar #modalExportar .export-pro-grid-131{
    grid-template-columns:1fr !important;
  }
  body[data-route="exportar"] #modalExportar .export-pro-main-grid,
  body.route-exportar #modalExportar .export-pro-main-grid,
  body[data-route="exportar"] #modalExportar .export-pro-steps,
  body.route-exportar #modalExportar .export-pro-steps{
    grid-template-columns:1fr 1fr !important;
  }
}
@media (max-width: 760px){
  body[data-route="exportar"] #modalExportar .export-page-card,
  body.route-exportar #modalExportar .export-page-card{padding:20px 16px 100px !important;}
  body[data-route="exportar"] #modalExportar .export-pro-main-grid,
  body.route-exportar #modalExportar .export-pro-main-grid,
  body[data-route="exportar"] #modalExportar .export-pro-steps,
  body.route-exportar #modalExportar .export-pro-steps{
    grid-template-columns:1fr !important;
  }
  body[data-route="exportar"] #modalExportar .export-pro-titlebar p,
  body.route-exportar #modalExportar .export-pro-titlebar p{margin-left:0 !important;}
}
