/* Danxis — Dashboard real com pop-ups por indicador */
#view-dashboard .kpi-card[data-dx-dashboard-action]{
  cursor:pointer !important;
}
#view-dashboard .kpi-card[data-dx-dashboard-action]:focus-visible{
  outline:3px solid rgba(24,116,209,.28) !important;
  outline-offset:3px !important;
}
#view-dashboard .kpi-card[data-dx-dashboard-action]::before{
  content:"Ver detalhes";
  position:absolute;
  right:16px;
  bottom:11px;
  font-size:9px;
  font-weight:800;
  color:var(--accent);
  opacity:0;
  transform:translateY(3px);
  transition:.18s;
}
#view-dashboard .kpi-card[data-dx-dashboard-action]:hover::before,
#view-dashboard .kpi-card[data-dx-dashboard-action]:focus-visible::before{
  opacity:1;
  transform:translateY(0);
}
#view-dashboard #dashboardActivityList .activity[data-dx-activity-target]{
  cursor:pointer !important;
  border-radius:11px;
  padding-left:7px !important;
  padding-right:7px !important;
}
#view-dashboard #dashboardActivityList .activity[data-dx-activity-target]:hover{
  background:#f5f9fc;
}
#view-dashboard #dashboardActivityList .activity:focus-visible{
  outline:2px solid rgba(24,116,209,.25);
  outline-offset:2px;
}
#view-dashboard .dx-dashboard-loading,
#view-dashboard .dx-dashboard-empty{
  padding:22px 8px;
  text-align:center;
  color:#000;
  font-size:12px;
}
#view-dashboard .dx-dashboard-empty strong{
  display:block;
  color:#000;
  font-size:13px;
  margin-bottom:4px;
}
#view-dashboard .dx-dashboard-error{
  margin:8px 0;
  padding:11px 12px;
  border-radius:11px;
  background:#fff3f4;
  color:#8e2030;
  font-size:11px;
}

body.dx-dashboard-popup-open{
  overflow:hidden !important;
}
.dx-dashboard-detail-overlay{
  position:fixed;
  inset:0;
  z-index:100000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(4,22,45,.58);
  backdrop-filter:blur(3px);
}
.dx-dashboard-detail-overlay.open{
  display:flex;
}
.dx-dashboard-detail-modal{
  width:min(980px,96vw);
  max-height:min(780px,92vh);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:#fff;
  border:1px solid #d7e4ee;
  border-radius:22px;
  box-shadow:0 28px 80px rgba(4,22,45,.24);
  animation:dxDashboardModalIn .18s ease-out;
}
@keyframes dxDashboardModalIn{
  from{opacity:0;transform:translateY(8px) scale(.985)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
.dx-dashboard-detail-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  padding:22px 24px 18px;
  border-bottom:1px solid #e7eef4;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbfd 100%);
}
.dx-dashboard-detail-eyebrow{
  display:block;
  margin-bottom:6px;
  color:#126a9c;
  font-size:10px;
  line-height:1.2;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.dx-dashboard-detail-header h3{
  margin:0;
  color:#071d3e;
  font-size:22px;
  line-height:1.2;
  font-weight:900;
}
.dx-dashboard-detail-header p{
  margin:6px 0 0;
  color:#000;
  font-size:12px;
  line-height:1.5;
}
.dx-dashboard-detail-close{
  width:36px;
  height:36px;
  flex:0 0 36px;
  border:1px solid #d8e3eb;
  border-radius:11px;
  background:#fff;
  color:#000;
  font-size:15px;
  cursor:pointer;
}
.dx-dashboard-detail-close:hover{
  background:#f0f5f8;
}
.dx-dashboard-detail-summary{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 24px;
  border-bottom:1px solid #e9eff4;
  background:#f6fafc;
  color:#000;
}
.dx-dashboard-detail-summary > strong{
  color:#0b2e6b;
  font-size:24px;
  line-height:1;
  font-weight:900;
}
.dx-dashboard-detail-summary > span{
  color:#000;
  font-size:11px;
  line-height:1.4;
}
.dx-dashboard-detail-body{
  min-height:180px;
  overflow:auto;
  padding:14px 20px 20px;
  background:#fff;
}
.dx-dashboard-detail-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(190px,.45fr) auto;
  align-items:center;
  gap:16px;
  padding:14px 12px;
  border-bottom:1px solid #e8eef3;
}
.dx-dashboard-detail-row:last-child{
  border-bottom:0;
}
.dx-dashboard-detail-row:hover{
  background:#f8fbfd;
  border-radius:12px;
}
.dx-dashboard-detail-main,
.dx-dashboard-detail-meta{
  min-width:0;
}
.dx-dashboard-detail-main strong{
  display:block;
  color:#061d3f;
  font-size:13px;
  line-height:1.3;
  font-weight:850;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.dx-dashboard-detail-main span{
  display:block;
  margin-top:4px;
  color:#000;
  font-size:10px;
  line-height:1.45;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.dx-dashboard-detail-meta{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:5px;
}
.dx-dashboard-detail-meta small{
  color:#000;
  font-size:9px;
  line-height:1.35;
}
.dx-dashboard-badge{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:5px 9px;
  border-radius:999px;
  font-size:9px;
  line-height:1;
  font-weight:850;
  white-space:nowrap;
}
.dx-dashboard-badge.status-approved{background:#d8f6e8;color:#08764f}
.dx-dashboard-badge.status-restricted{background:#fff0c9;color:#8a5b00}
.dx-dashboard-badge.status-rejected{background:#ffdfe4;color:#a3243a}
.dx-dashboard-badge.status-correction{background:#ffe8bf;color:#905a00}
.dx-dashboard-badge.status-pending{background:#dceeff;color:#125f9c}
.dx-dashboard-badge.risk-low{background:#d8f6e8;color:#08764f}
.dx-dashboard-badge.risk-medium{background:#ffe7b7;color:#8c5700}
.dx-dashboard-badge.risk-high{background:#ffdce2;color:#ae2940}
.dx-dashboard-badge.risk-blocked{background:#26364a;color:#fff}
.dx-dashboard-detail-open{
  min-height:34px;
  padding:8px 11px;
  border:1px solid #cbdce8;
  border-radius:10px;
  background:#fff;
  color:#0b4e82;
  font-size:9px;
  line-height:1;
  font-weight:800;
  cursor:pointer;
  white-space:nowrap;
}
.dx-dashboard-detail-open:hover{
  background:#edf6fb;
  border-color:#b9cfdd;
}
.dx-dashboard-detail-empty{
  min-height:180px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:24px;
  text-align:center;
  color:#000;
}
.dx-dashboard-detail-empty strong{
  color:#061d3f;
  font-size:14px;
}
.dx-dashboard-detail-empty span{
  max-width:520px;
  color:#000;
  font-size:11px;
  line-height:1.5;
}
.dx-dashboard-detail-footer{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  padding:14px 20px;
  border-top:1px solid #e3ebf1;
  background:#f8fbfd;
}
@media(max-width:760px){
  .dx-dashboard-detail-overlay{padding:10px}
  .dx-dashboard-detail-modal{width:100%;max-height:96vh;border-radius:16px}
  .dx-dashboard-detail-header{padding:18px 16px 14px}
  .dx-dashboard-detail-header h3{font-size:18px}
  .dx-dashboard-detail-summary{padding:10px 16px}
  .dx-dashboard-detail-body{padding:8px 12px 14px}
  .dx-dashboard-detail-row{grid-template-columns:1fr;gap:9px;padding:13px 8px}
  .dx-dashboard-detail-meta{align-items:flex-start}
  .dx-dashboard-detail-open{justify-self:start}
  .dx-dashboard-detail-footer{padding:12px;flex-wrap:wrap}
}
