/* ===== Origem: v98-functional-calendars.css ===== */
/* V98 — somente calendários/filtros funcionais */
.v98-date-pop{z-index:2147483000!important;overflow:visible!important}
.v98-cal header{align-items:center}.v98-cal header button{border:0;background:#f2f5fa;width:30px;height:30px;border-radius:8px;color:#60728b;font-size:20px;cursor:pointer}.v98-cal header b{text-transform:none}
.v98-cal .days button{cursor:pointer}.v98-cal .days button.in-range{background:#edeaff;color:#5145d8}.v98-cal .days button.range-edge{background:#6258f6;color:#fff;font-weight:800}
.v98-stats-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:14px 0}.v98-stats-summary>div{padding:12px;border:1px solid #e1e7f0;border-radius:10px}.v98-stats-summary small{display:block;color:#718096}.v98-stats-summary strong{display:block;margin-top:5px;color:#17243a}
.v98-flow-controls{display:flex;gap:8px;align-items:center}.v98-flow-controls>div{position:relative}.v98-flow-controls button{cursor:pointer}.v98-flow-menu{display:none;position:absolute;right:0;top:42px;min-width:210px;background:#fff;border:1px solid #dde5ef;border-radius:12px;padding:7px;box-shadow:0 18px 45px rgba(29,42,68,.18);z-index:9999}.v98-flow-menu.show{display:grid}.v98-flow-menu button{border:0;background:transparent;text-align:left;padding:9px 10px;border-radius:8px;color:#33445d}.v98-flow-menu button:hover,.v98-flow-menu button.on{background:#6258f6;color:#fff}
.flow-toolbar,.flow-page,.pipeline{overflow:visible!important}
@media(max-width:900px){.v98-flow-controls{flex-wrap:wrap}.v98-flow-menu{left:0;right:auto}.v98-stats-summary{grid-template-columns:1fr}}

/* V99 — remove a faixa horizontal dos filtros do Fluxo sem alterar as ações */
.v98-flow-controls > div{
  position:relative!important;
  overflow:visible!important;
}
.v98-flow-controls > div > .v98-flow-menu{
  display:none!important;
  position:absolute!important;
  top:calc(100% + 8px)!important;
  right:0!important;
  left:auto!important;
  width:230px!important;
  min-width:230px!important;
  max-width:calc(100vw - 32px)!important;
  padding:8px!important;
  margin:0!important;
  flex-direction:column!important;
  flex-wrap:nowrap!important;
  align-items:stretch!important;
  gap:4px!important;
  overflow:visible!important;
  background:#fff!important;
  border:1px solid #dde5ef!important;
  border-radius:12px!important;
  box-shadow:0 18px 45px rgba(29,42,68,.18)!important;
  z-index:2147483000!important;
}
.v98-flow-controls > div > .v98-flow-menu.show{
  display:flex!important;
}
.v98-flow-controls > div > .v98-flow-menu button{
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:38px!important;
  margin:0!important;
  padding:9px 10px!important;
  text-align:left!important;
  white-space:normal!important;
  border:0!important;
  border-radius:8px!important;
  background:transparent!important;
  box-shadow:none!important;
}
.v98-flow-controls > div > .v98-flow-menu button:hover,
.v98-flow-controls > div > .v98-flow-menu button.on{
  background:#6258f6!important;
  color:#fff!important;
}
@media(max-width:900px){
  .v98-flow-controls > div > .v98-flow-menu{
    left:0!important;
    right:auto!important;
  }
}

/* V103 — calendários compactos: exibe somente um mês e evita vazamento lateral */
@media (min-width: 901px){
  .v98-date-pop{
    width:520px!important;
    max-width:calc(100vw - 32px)!important;
    grid-template-columns:180px minmax(0,1fr)!important;
  }
  .v98-date-pop .cal-wrap{
    grid-template-columns:minmax(0,1fr)!important;
    gap:0!important;
    padding:12px 14px 14px!important;
    min-width:0!important;
  }
  .v98-date-pop .v98-cal:nth-child(n+2){
    display:none!important;
  }
  .v98-date-pop .v98-cal{
    width:100%!important;
    min-width:0!important;
  }
  .v98-date-pop .v98-cal header{
    margin-bottom:10px!important;
  }
  .v98-date-pop .week,
  .v98-date-pop .days{
    gap:4px!important;
  }
  .v98-date-pop .days button,
  .v98-date-pop .days i{
    height:30px!important;
    min-width:0!important;
    font-size:13px!important;
  }
  .v98-date-pop .week b{
    font-size:12px!important;
  }
  .finance-summary .v98-date-pop,
  .orders-summary .v98-date-pop,
  .stats-card .v98-date-pop{
    right:0!important;
    left:auto!important;
  }
}

