/* Divide a Fila Operacional da Central em legenda/resumo à esquerda e lista à direita. */
#homeView.active #kanbanNivel4Panel .kanban-n4-body,
.home-view.active #kanbanNivel4Panel .kanban-n4-body{
  display:grid !important;
  grid-template-columns:minmax(280px, 38%) minmax(0, 1fr) !important;
  gap:0 !important;
  padding:0 !important;
  align-items:stretch !important;
}
#homeView.active #kanbanNivel4Panel .kanban-n4-kpis,
.home-view.active #kanbanNivel4Panel .kanban-n4-kpis{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  align-content:start !important;
  gap:0 !important;
  padding:12px !important;
  border-right:1px solid rgba(26,115,232,.12) !important;
  border-bottom:0 !important;
  background:linear-gradient(180deg,#f6faff 0%,#eef5ff 100%) !important;
}
body:not([data-theme="light"]) #homeView.active #kanbanNivel4Panel .kanban-n4-kpis,
body:not([data-theme="light"]) .home-view.active #kanbanNivel4Panel .kanban-n4-kpis{
  background:linear-gradient(180deg,color-mix(in srgb,var(--surface) 92%,var(--accent) 8%),var(--surface2)) !important;
}
#homeView.active #kanbanNivel4Panel .kanban-n4-kpi,
.home-view.active #kanbanNivel4Panel .kanban-n4-kpi{
  min-height:88px !important;
  padding:12px !important;
  border:0 !important;
  border-right:1px solid rgba(26,115,232,.09) !important;
  border-bottom:1px solid rgba(26,115,232,.09) !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
#homeView.active #kanbanNivel4Panel .kanban-n4-kpi:nth-child(2n),
.home-view.active #kanbanNivel4Panel .kanban-n4-kpi:nth-child(2n){border-right:0 !important;}
#homeView.active #kanbanNivel4Panel .kanban-n4-kpi-val,
.home-view.active #kanbanNivel4Panel .kanban-n4-kpi-val{font-size:22px !important;line-height:1.05 !important;}
#homeView.active #kanbanNivel4Panel .kanban-n4-actions,
.home-view.active #kanbanNivel4Panel .kanban-n4-actions{
  min-width:0 !important;
  border:0 !important;
  border-radius:0 !important;
  border-left:1px solid rgba(26,115,232,.08) !important;
}
#homeView.active #kanbanNivel4Panel .kanban-n4-actions-head,
.home-view.active #kanbanNivel4Panel .kanban-n4-actions-head{
  min-height:52px !important;
  padding:12px 16px !important;
}
#homeView.active #kanbanNivel4Panel .kanban-n4-list,
.home-view.active #kanbanNivel4Panel .kanban-n4-list{
  max-height:360px !important;
  padding:10px 12px 12px !important;
}
.ag-central-legend{
  grid-column:1 / -1;
  display:grid;
  gap:10px;
  padding:14px 8px 2px;
}
.ag-central-legend-title{
  font-size:10px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--faint);
}
.ag-central-legend-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.ag-central-legend-chip{
  display:flex;
  align-items:flex-start;
  gap:8px;
  min-width:0;
  padding:9px 10px;
  border-radius:13px;
  background:var(--surface);
  border:1px solid var(--border);
  box-shadow:0 1px 4px rgba(0,0,0,.03);
}
.ag-central-legend-ico{
  width:24px;
  height:24px;
  border-radius:9px;
  display:grid;
  place-items:center;
  flex:none;
  font-size:12px;
  background:color-mix(in srgb,var(--legend-color) 12%,transparent);
  border:1px solid color-mix(in srgb,var(--legend-color) 25%,transparent);
  color:var(--legend-color);
}
.ag-central-legend-main{display:grid;gap:1px;min-width:0;}
.ag-central-legend-name{
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:var(--legend-color);
}
.ag-central-legend-desc{
  font-size:10px;
  line-height:1.35;
  color:var(--muted);
  font-weight:600;
}
.ag-central-legend-chip[data-tone="critico"]{--legend-color:#d93025;}
.ag-central-legend-chip[data-tone="urgente"]{--legend-color:#ea580c;}
.ag-central-legend-chip[data-tone="travado"]{--legend-color:#7c3aed;}
.ag-central-legend-chip[data-tone="financeiro"]{--legend-color:#188038;}
.ag-central-legend-chip[data-tone="sem-pagamento"]{--legend-color:#db2777;}
.ag-central-legend-chip[data-tone="alto-valor"]{--legend-color:#1a73e8;}
@media (max-width:1180px){
  #homeView.active #kanbanNivel4Panel .kanban-n4-body,
  .home-view.active #kanbanNivel4Panel .kanban-n4-body{
    grid-template-columns:1fr !important;
  }
  #homeView.active #kanbanNivel4Panel .kanban-n4-kpis,
  .home-view.active #kanbanNivel4Panel .kanban-n4-kpis{
    border-right:0 !important;
    border-bottom:1px solid rgba(26,115,232,.12) !important;
  }
  .ag-central-legend-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media (max-width:760px){
  .ag-central-legend-grid{grid-template-columns:1fr;}
  #homeView.active #kanbanNivel4Panel .kanban-n4-kpis,
  .home-view.active #kanbanNivel4Panel .kanban-n4-kpis{grid-template-columns:1fr !important;}
}
