/* Box Boy Web V5.8.44 — Relatórios: fidelidade às referências, sem alterar APIs.
   CSS propositalmente isolado por #reportsPage. A folha anterior permanece intacta.
   Corrige conflitos legados de operation-v514, design-system-v5833 e multiselect-v5827. */

/* O painel precisa permitir que o menu multiseleção saia do card e fique acima
   dos KPIs e da tabela, inclusive quando o cursor passa sobre a última linha. */
body:is(.boxboy-theme-light,.boxboy-theme-dark) #reportsPage .report-panel-v5843{
  position:relative;z-index:30;overflow:visible!important;
  border-radius:12px!important;
}
#reportsPage .report-filter-header-v5843{border-radius:11px 11px 0 0;min-height:53px;padding:10px 13px}
#reportsPage .report-filter-title{margin:0;gap:9px}
#reportsPage .report-filter-title .report-filter-icon{width:32px;height:32px;flex-basis:32px}
#reportsPage .report-filter-header-actions-v5843{gap:8px}
#reportsPage .report-filter-header-actions-v5843 :is(button){min-height:34px;height:34px;padding:0 12px;gap:7px;font-size:11px;border-radius:7px}
#reportsPage .report-filter-header-actions-v5843 .report-icon-only-v5843{min-height:34px;height:34px;width:34px;min-width:34px}
/* A classe bb33-action-clear era aplicada posteriormente pelo JS e tornava Limpar roxo. */
body:is(.boxboy-theme-light,.boxboy-theme-dark) #reportsPage #reportClear.report-header-button-v5843{
  background:var(--r43-surface)!important;border:1px solid var(--r43-field)!important;
  color:var(--r43-text)!important;box-shadow:none!important;
}
body:is(.boxboy-theme-light,.boxboy-theme-dark) #reportsPage #reportGenerate.report-header-button-primary-v5843{
  background:var(--r43-accent)!important;border:1px solid var(--r43-accent)!important;
  color:#211509!important;box-shadow:none!important;
}
/* Larguras iguais, quatro campos por linha. A regra antiga usava uma grade 1.35/1/1/1.35 !important. */
body:is(.boxboy-theme-light,.boxboy-theme-dark) #reportsPage .general-report-filters.report-filters-v5843{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px 12px!important;align-items:end;padding:12px 13px 14px;
}
#reportsPage .report-filters-v5843 .filter{position:relative;min-width:0}
#reportsPage .report-filters-v5843 .filter:has(.bb-report-multi-trigger-v5827[aria-expanded="true"]){z-index:90}
#reportsPage .report-filters-v5843 .filter label{margin-bottom:5px;font-size:10px;font-weight:650;line-height:1.25}
body:is(.boxboy-theme-light,.boxboy-theme-dark) #reportsPage .report-filters-v5843 :is(input:not([type="checkbox"]),select){
  box-sizing:border-box;height:34px!important;min-height:34px!important;
  border:1px solid var(--r43-field)!important;background-color:var(--r43-surface)!important;
  color:var(--r43-text)!important;border-radius:7px!important;
  font-size:11px;font-weight:550!important;
}
#reportsPage .report-filters-v5843 :is(#rSearch,#rClient,#rStart,#rEnd){padding-left:31px!important;background-repeat:no-repeat!important;background-position:10px 50%!important;background-size:14px 14px!important}
#reportsPage .report-filters-v5843 :is(input,select)::placeholder{color:var(--r43-muted);opacity:.92}
body:is(.boxboy-theme-light,.boxboy-theme-dark) #reportsPage .report-filters-v5843 .bb-report-multiselect-v5827{
  width:100%;min-width:0;position:relative;display:block;
}
body:is(.boxboy-theme-light,.boxboy-theme-dark) #reportsPage .report-filters-v5843 .bb-report-multi-trigger-v5827{
  box-sizing:border-box;width:100%;height:34px!important;min-height:34px!important;
  padding:0 29px 0 30px!important;display:flex;align-items:center;
  text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  background-color:var(--r43-surface)!important;color:var(--r43-text)!important;
  border:1px solid var(--r43-field)!important;border-radius:7px!important;
  font-size:11px!important;font-weight:550!important;
  background-repeat:no-repeat!important;background-position:9px 50%!important;background-size:14px 14px!important;
  box-shadow:none!important;
}
/* O seletor Etapa possuía ícone apenas no select nativo, que fica oculto. */
#reportsPage #rStage+.bb-report-multiselect-v5827 .bb-report-multi-trigger-v5827{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f9902f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='m9 12 2 2 4-5'/%3E%3C/svg%3E");
}
#reportsPage .report-filters-v5843 .bb-report-multi-trigger-v5827:hover,
#reportsPage .report-filters-v5843 .bb-report-multi-trigger-v5827[aria-expanded="true"]{border-color:var(--r43-accent)!important}
/* Dropdown ancorado ao campo, e não ao viewport. Sua largura é EXATAMENTE a do seletor. */
body:is(.boxboy-theme-light,.boxboy-theme-dark) #reportsPage .report-filters-v5843 .bb-report-multi-menu-v5827{
  box-sizing:border-box;position:absolute!important;
  top:calc(100% + 5px)!important;left:0!important;right:auto!important;bottom:auto!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  max-height:min(350px,60dvh)!important;overflow:hidden!important;
  z-index:3000!important;border-radius:9px!important;
  background:var(--r43-surface)!important;border:1px solid var(--r43-field-strong)!important;
  color:var(--r43-text)!important;box-shadow:0 16px 36px rgba(0,0,0,.22)!important;
  padding:9px!important;
}
#reportsPage .report-filters-v5843 .bb-report-multi-menu-v5827.bb44-open-up{
  top:auto!important;bottom:calc(100% + 5px)!important;
}
#reportsPage .report-filters-v5843 .bb-report-multi-menu-v5827 .searchable-select-tools{
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:center;
}
body:is(.boxboy-theme-light,.boxboy-theme-dark) #reportsPage .report-filters-v5843 .bb-report-multi-menu-v5827 .searchable-select-tools input{
  min-width:0;width:100%;padding:0 8px!important;font-weight:500!important;font-size:11px!important;
}
#reportsPage .report-filters-v5843 .bb-report-multi-menu-v5827 .searchable-select-tools .btn2{
  min-height:34px;height:34px;padding:0 9px!important;font-size:11px;white-space:nowrap;
}
#reportsPage .report-filters-v5843 .bb-report-multi-menu-v5827 .bb-report-multi-list-v5827{
  max-height:min(235px,39dvh);overflow:auto;overscroll-behavior:contain;
}
#reportsPage .report-filters-v5843 .bb-report-multi-option-v5827{
  min-width:0;max-width:100%;min-height:32px;padding:6px 4px;
  color:var(--r43-text);font-size:11px;line-height:1.35;
}
#reportsPage .report-filters-v5843 .bb-report-multi-option-text-v5827 b{font-weight:650;font-size:11px;color:inherit}
#reportsPage .report-filters-v5843 .bb-report-multi-menu-v5827 .searchable-select-confirm{
  border-top:1px solid var(--r43-divider);padding-top:7px;
}
/* Remove o contorno externo escuro, gradiente e separadores rígidos da antiga faixa KPI. */
body:is(.boxboy-theme-light,.boxboy-theme-dark) #reportsPage .general-report-kpis.report-kpis-v5843{
  display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr))!important;
  gap:8px!important;margin:0 0 10px!important;padding:0!important;
  background:transparent!important;background-image:none!important;
  border:0!important;border-radius:0!important;overflow:visible!important;
  box-shadow:none!important;
}
body:is(.boxboy-theme-light,.boxboy-theme-dark) #reportsPage .general-report-kpis>.kpi.report-kpi-v5843{
  min-width:0;min-height:68px!important;max-height:none!important;
  display:flex!important;align-items:center!important;gap:8px!important;
  padding:9px 10px!important;
  background:var(--r43-surface)!important;background-image:none!important;
  border:1px solid var(--r43-outline)!important;border-radius:10px!important;
  box-shadow:none!important;box-sizing:border-box;
}
#reportsPage .general-report-kpis .report-kpi-icon-v5843{
  flex:0 0 36px;width:36px;height:36px;border-radius:9px;background:var(--r43-icon-bg);
}
#reportsPage .general-report-kpis .report-kpi-icon-v5843 svg{width:19px;height:19px}
#reportsPage .general-report-kpis .report-kpi-copy-v5843{flex:1 1 auto;min-width:0;overflow:hidden}
body:is(.boxboy-theme-light,.boxboy-theme-dark) #reportsPage .general-report-kpis .report-kpi-v5843 .label{
  display:block;min-height:0;max-height:none;line-height:1.15;
  margin:0;padding:0;font-size:9px!important;font-weight:700!important;
  letter-spacing:0!important;color:var(--r43-muted)!important;
}
body:is(.boxboy-theme-light,.boxboy-theme-dark) #reportsPage .general-report-kpis .report-kpi-v5843 .value{
  display:block;max-width:100%;margin:4px 0 0!important;letter-spacing:-.025em!important;
  font-size:clamp(12px,.9vw,16px)!important;font-weight:850!important;line-height:1.2!important;
  white-space:nowrap;color:var(--r43-text)!important;text-overflow:ellipsis;overflow:hidden;
}
body:is(.boxboy-theme-light,.boxboy-theme-dark) #reportsPage .general-report-kpis .report-kpi-v5843 .hint{
  display:block;min-height:0;margin:3px 0 0;font-size:9px!important;line-height:1.2;
  font-weight:500!important;color:var(--r43-muted)!important;
}
/* Tabela: densidade e alinhamentos equivalentes à referência. Não alterar ordem ou dados. */
body:is(.boxboy-theme-light,.boxboy-theme-dark) #reportsPage .report-table-card-v5843{
  position:relative;z-index:1;border-radius:12px!important;
}
body:is(.boxboy-theme-light,.boxboy-theme-dark) #reportsPage .report-table-card-v5843 .report-toolbar-v5843{
  min-height:50px!important;padding:9px 12px!important;gap:10px;
  align-items:center;box-sizing:border-box;
}
#reportsPage .report-toolbar-v5843 .report-toolbar-title-v5843 h2{font-size:14px;margin:0}
#reportsPage .report-toolbar-v5843 .report-toolbar-count-v5843{font-size:10px}
body:is(.boxboy-theme-light,.boxboy-theme-dark) #reportsPage .general-report-tablewrap{
  box-sizing:border-box;width:100%;min-width:0;max-width:100%;max-height:none;
  padding:0!important;margin:0!important;overflow-x:auto;overscroll-behavior-x:contain;
}
body:is(.boxboy-theme-light,.boxboy-theme-dark) #reportsPage .general-report-tablewrap table{
  width:100%!important;min-width:1450px!important;table-layout:auto!important;
  border-collapse:separate;border-spacing:0;
}
body:is(.boxboy-theme-light,.boxboy-theme-dark) #reportsPage .general-report-tablewrap thead th{
  height:33px!important;padding:4px 7px!important;box-sizing:border-box;
  text-align:left!important;vertical-align:middle;
  font-size:9.5px!important;font-weight:730!important;line-height:1.15;
  border-bottom:1px solid var(--r43-divider)!important;
}
body:is(.boxboy-theme-light,.boxboy-theme-dark) #reportsPage .general-report-tablewrap tbody td{
  height:37px;min-height:0;padding:4px 7px!important;
  box-sizing:border-box;vertical-align:middle;
  font-size:10px!important;font-weight:450!important;line-height:1.28!important;
  text-align:left!important;white-space:nowrap;
  border-bottom:1px solid var(--r43-divider)!important;
}
#reportsPage .general-report-tablewrap thead th:first-child,
#reportsPage .general-report-tablewrap tbody td:first-child{padding-left:10px!important}
#reportsPage .general-report-tablewrap :is(th,td):nth-child(1),
#reportsPage .general-report-tablewrap :is(th,td):last-child{text-align:center!important}
/* Esta coluna não pode ficar centralizada quando os nomes são mais longos. */
#reportsPage .general-report-tablewrap :is(th,td):nth-child(7){text-align:left!important;padding-left:9px!important}
#reportsPage .general-report-tablewrap th:nth-child(7) .bb33-sort-head{justify-content:flex-start!important;text-align:left!important}
#reportsPage .general-report-tablewrap .report-courier-cell-v5844{
  min-width:170px;max-width:255px;text-align:left!important;
}
#reportsPage .general-report-tablewrap .report-courier-cell-v5844>span{
  display:block;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
}
#reportsPage .general-report-tablewrap :is(th,td):nth-child(8){text-align:right!important}
#reportsPage .general-report-tablewrap :is(th,td):nth-child(n+9):nth-child(-n+11){text-align:right!important}
body:is(.boxboy-theme-light,.boxboy-theme-dark) #reportsPage .general-report-tablewrap .bb33-sort-head{
  min-height:29px!important;font-size:inherit!important;text-align:inherit!important;
  gap:4px;line-height:1.2;
}
#reportsPage .general-report-tablewrap .report-source-badge-v5843{min-height:18px;padding:0 7px;font-size:9px;border-radius:6px}
#reportsPage .general-report-tablewrap .movement-stage-v561{font-size:9px;min-height:18px;padding:2px 6px}
#reportsPage .general-report-tablewrap .report-action-group-v5842{
  border:1px solid var(--r43-field);padding:1px 3px;gap:4px;background:var(--r43-surface);
}
#reportsPage .general-report-tablewrap .report-action-group-v5842 .report-row-action{
  flex:0 0 23px;width:23px;height:23px;min-height:23px!important;border-radius:6px;
}
#reportsPage .general-report-tablewrap .report-action-group-v5842 .report-row-action svg{width:14px;height:14px}
/* Paginação compacta mantém os botões acessíveis e não interfere na ordenação. */
body:is(.boxboy-theme-light,.boxboy-theme-dark) #reportsPage .report-page-controls>#reportPageInfo.bb33-pager .bb33-pages button,
body:is(.boxboy-theme-light,.boxboy-theme-dark) #reportsPage .report-page-controls>#reportPageInfo.bb33-pager select,
body:is(.boxboy-theme-light,.boxboy-theme-dark) #reportsPage .report-page-controls>#reportPrev,
body:is(.boxboy-theme-light,.boxboy-theme-dark) #reportsPage .report-page-controls>#reportNext{
  min-height:30px;height:30px;border-radius:7px;
}
@media(max-width:1450px){
  body:is(.boxboy-theme-light,.boxboy-theme-dark) #reportsPage .general-report-kpis.report-kpis-v5843{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
}
@media(max-width:1080px){
  body:is(.boxboy-theme-light,.boxboy-theme-dark) #reportsPage .general-report-filters.report-filters-v5843{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:760px){
  body:is(.boxboy-theme-light,.boxboy-theme-dark) #reportsPage .general-report-filters.report-filters-v5843{
    grid-template-columns:1fr!important;padding:11px!important;
  }
  body:is(.boxboy-theme-light,.boxboy-theme-dark) #reportsPage .general-report-kpis.report-kpis-v5843{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  #reportsPage .report-filter-header-v5843{align-items:stretch}
  #reportsPage .report-filter-header-actions-v5843{justify-content:flex-end}
  #reportsPage .report-filter-header-actions-v5843 .report-header-button-v5843{padding:0 9px;font-size:10px}
  #reportsPage .report-toolbar-v5843{grid-template-columns:1fr!important;justify-items:stretch}
  #reportsPage .report-toolbar-count-v5843{text-align:left}
  #reportsPage .report-page-controls{justify-content:flex-start;max-width:100%;flex-wrap:wrap}
}
@media(max-width:480px){
  body:is(.boxboy-theme-light,.boxboy-theme-dark) #reportsPage .general-report-kpis.report-kpis-v5843{
    grid-template-columns:1fr!important;
  }
  #reportsPage .report-filter-header-actions-v5843{flex-wrap:wrap}
  #reportsPage .report-filter-header-actions-v5843 .report-icon-only-v5843{flex:0 0 34px}
}
