/* EVPL PRO.19 - Layout corrigido e busca dos filtros funcional */
body.evpl-pro.evpl-pro19-final{
  --pro19-header:64px;
  --pro19-tabs:46px;
  --pro19-dash:74px;
  --pro19-filter-head:40px;
  --pro19-filters:86px;
  overflow:auto!important;
}

/* mata a barriga branca do bloco de filtros */
body.evpl-pro.evpl-pro19-final #evplProDashboard{margin:8px 16px 6px!important;gap:8px!important;}
body.evpl-pro.evpl-pro19-final #evplProFilterHead{margin:8px 16px 0!important;min-height:38px!important;padding:5px 8px 5px 12px!important;border-radius:14px 14px 0 0!important;}
body.evpl-pro.evpl-pro19-final .filters{
  position:relative!important;
  top:auto!important;
  z-index:55!important;
  display:block!important;
  margin:0 16px 8px!important;
  padding:8px!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  align-items:start!important;
  align-content:start!important;
  background:#fff!important;
  border:1px solid #dbe3ef!important;
  border-top:0!important;
  border-radius:0 0 14px 14px!important;
  box-shadow:0 10px 24px rgba(15,23,42,.055)!important;
}
body.evpl-pro.evpl-pro19-final .filters::before,
body.evpl-pro.evpl-pro19-final .filters::after,
body.evpl-pro.evpl-pro19-final .filter-group::before,
body.evpl-pro.evpl-pro19-final .filter-group::after{display:none!important;content:none!important;}
body.evpl-pro.evpl-pro19-final .filter-group{display:none!important;height:auto!important;min-height:0!important;padding:0!important;margin:0!important;align-content:start!important;align-items:start!important;}
body.evpl-pro.evpl-pro19-final .filter-group.active{
  display:grid!important;
  grid-template-columns:minmax(250px,1.45fr) 130px repeat(6,minmax(125px,.8fr))!important;
  gap:7px!important;
  align-items:end!important;
  align-content:start!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  padding:0!important;
  margin:0!important;
}
body.evpl-pro.evpl-pro19-final .filter-group.active .field{height:auto!important;min-height:0!important;margin:0!important;padding:0!important;gap:3px!important;display:flex!important;flex-direction:column!important;justify-content:flex-end!important;}
body.evpl-pro.evpl-pro19-final .filter-group.active .field.wide{grid-column:auto!important;min-width:0!important;}
body.evpl-pro.evpl-pro19-final .filter-group.active label{font-size:9.5px!important;line-height:1!important;margin:0!important;letter-spacing:.075em!important;}
body.evpl-pro.evpl-pro19-final .filter-group.active input[type="search"],
body.evpl-pro.evpl-pro19-final .filter-group.active select,
body.evpl-pro.evpl-pro19-final .filter-group.active .ms332-head{
  height:34px!important;
  min-height:34px!important;
  max-height:34px!important;
  border-radius:10px!important;
  padding:0 10px!important;
  font-size:11px!important;
  line-height:34px!important;
  box-shadow:none!important;
}
body.evpl-pro.evpl-pro19-final .filter-group.active .ms332{min-width:0!important;width:100%!important;}
body.evpl-pro.evpl-pro19-final .filter-group.active .filter-chips{
  grid-column:1 / -1!important;
  display:flex!important;
  flex-wrap:wrap!important;
  gap:5px!important;
  min-height:0!important;
  max-height:34px!important;
  overflow:auto!important;
  padding-top:2px!important;
  margin:0!important;
}
body.evpl-pro.evpl-pro19-final .filter-group.active .filter-chips:empty,
body.evpl-pro.evpl-pro19-final .filter-group.active .filter-chips.chips-empty,
body.evpl-pro.evpl-pro19-final .filter-chip-empty{display:none!important;}
body.evpl-pro.evpl-pro19-final .filter-chip{height:24px!important;min-height:24px!important;padding:0 9px!important;border-radius:999px!important;font-size:10px!important;}

/* nunca deixar Pagina/Itens dentro da placa dos filtros */
body.evpl-pro.evpl-pro19-final .filters .field.tiny{display:none!important;}
body.evpl-pro.evpl-pro19-final #evplPro16PagerControls{display:flex!important;align-items:center!important;gap:6px!important;margin-left:6px!important;}
body.evpl-pro.evpl-pro19-final #evplPro16PagerControls .field.tiny{display:flex!important;flex-direction:row!important;align-items:center!important;margin:0!important;padding:0!important;width:auto!important;min-width:0!important;}
body.evpl-pro.evpl-pro19-final #evplPro16PagerControls .field.tiny label{display:none!important;}
body.evpl-pro.evpl-pro19-final #evplPro16PagerControls .pager{height:28px!important;display:grid!important;grid-template-columns:26px 42px 26px!important;align-items:center!important;gap:2px!important;padding:2px!important;border-radius:999px!important;background:#f8fafc!important;border:1px solid #dbe3ef!important;}
body.evpl-pro.evpl-pro19-final #evplPro16PagerControls .pager button{width:24px!important;height:24px!important;min-height:24px!important;padding:0!important;border-radius:999px!important;}
body.evpl-pro.evpl-pro19-final #evplPro16PagerControls #pageSize{height:28px!important;width:72px!important;min-height:28px!important;border-radius:999px!important;font-size:10.5px!important;}

/* tabela respira mais */
body.evpl-pro.evpl-pro19-final main{margin:0 16px 14px!important;padding:0!important;}
body.evpl-pro.evpl-pro19-final .empty{
  margin:6px 0 8px!important;
  padding:10px 14px!important;
  min-height:0!important;
  border-radius:14px!important;
  background:#fff!important;
}
body.evpl-pro.evpl-pro19-final .panel.active{display:block!important;}
body.evpl-pro.evpl-pro19-final .table-wrap.tall,
body.evpl-pro.evpl-pro19-final .cards-wrap.tall{
  height:calc(100dvh - 350px)!important;
  min-height:360px!important;
  margin:0!important;
  border-radius:14px!important;
  border:1px solid #dbe3ef!important;
  overflow:auto!important;
  background:#fff!important;
  box-shadow:0 10px 24px rgba(15,23,42,.055)!important;
}
body.evpl-pro.evpl-pro19-final table{font-size:11px!important;}
body.evpl-pro.evpl-pro19-final th{height:32px!important;padding:6px 8px!important;}
body.evpl-pro.evpl-pro19-final td{height:26px!important;padding:4px 7px!important;}

/* dropdown de filtros mais sólido */
body.evpl-pro.evpl-pro19-final .ms332-menu{
  width:min(310px,calc(100vw - 28px))!important;
  max-height:340px!important;
  overflow:auto!important;
  padding:8px!important;
  border-radius:14px!important;
  box-shadow:0 24px 70px rgba(15,23,42,.20)!important;
}
body.evpl-pro.evpl-pro19-final .ms332-search-wrap{position:sticky!important;top:0!important;z-index:3!important;background:#fff!important;padding-bottom:6px!important;}
body.evpl-pro.evpl-pro19-final .ms332-search{
  height:32px!important;min-height:32px!important;border-radius:10px!important;font-size:11px!important;color:#172033!important;background:#fff!important;border:1px solid #dbe3ef!important;
}
body.evpl-pro.evpl-pro19-final .ms332-row{height:28px!important;min-height:28px!important;grid-template-columns:18px minmax(0,1fr)!important;padding:0 7px!important;}
body.evpl-pro.evpl-pro19-final .ms332-row span{line-height:28px!important;font-size:11px!important;}
body.evpl-pro.evpl-pro19-final .ms332-row.evpl-hidden-by-search{display:none!important;}
body.evpl-pro.evpl-pro19-final .ms332-empty-search{display:none;padding:12px 8px;color:#667085;font-size:11px;font-weight:800;text-align:center;border:1px dashed #dbe3ef;border-radius:10px;margin:6px 0;background:#f8fafc;}
body.evpl-pro.evpl-pro19-final .ms332-empty-search.show{display:block!important;}

/* Gestão PRO: botão pequeno, nunca barra gigante */
body.evpl-pro.evpl-pro19-final #evplProDrawerBtn{
  position:fixed!important;
  left:auto!important;right:16px!important;bottom:14px!important;
  width:auto!important;min-width:122px!important;max-width:150px!important;
  height:36px!important;min-height:36px!important;
  padding:0 14px!important;border-radius:999px!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;
  background:linear-gradient(180deg,#172033,#101828)!important;color:#fff!important;
  border:1px solid rgba(255,255,255,.12)!important;
  font-size:11px!important;font-weight:950!important;
  box-shadow:0 14px 30px rgba(15,23,42,.24)!important;
}
body.evpl-pro.evpl-pro19-final #evplProDrawer{right:16px!important;left:auto!important;bottom:58px!important;width:min(390px,calc(100vw - 32px))!important;}
body.evpl-pro.evpl-pro19-final #pagerBottom{right:154px!important;bottom:14px!important;height:36px!important;}

@media (max-width:1200px){
  body.evpl-pro.evpl-pro19-final .filter-group.active{grid-template-columns:repeat(4,minmax(150px,1fr))!important;}
  body.evpl-pro.evpl-pro19-final .filter-group.active .field.wide{grid-column:span 2!important;}
  body.evpl-pro.evpl-pro19-final .table-wrap.tall{height:calc(100dvh - 390px)!important;}
}
@media (max-width:760px){
  body.evpl-pro.evpl-pro19-final .filter-group.active{grid-template-columns:1fr 1fr!important;}
  body.evpl-pro.evpl-pro19-final .filter-group.active .field.wide{grid-column:1 / -1!important;}
  body.evpl-pro.evpl-pro19-final #evplProDashboard{grid-template-columns:1fr 1fr!important;}
  body.evpl-pro.evpl-pro19-final .table-wrap.tall{height:calc(100dvh - 430px)!important;}
}
