/* =========================================================
   DASHBOARD V2 - SOMENTE CONTEUDO DO DASHBOARD ADMIN
   Nao altera header, sidebar, formulario ou demais telas.
   ========================================================= */

#adminDashboardCards,
#adminDashboardOverview,
#adminDashboardQuickActions {
  display: none !important;
}

#adminDashboardV2 {
  width: 100%;
  display: grid;
  gap: 16px;
  padding: 2px 0 18px;
}

#adminDashboardV2.d-none {
  display: none !important;
}

#adminDashboardV2 * {
  box-sizing: border-box;
}

.dv2-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.dv2-kpi,
.dv2-panel {
  background: #fff;
  border: 1px solid #e0e8f1;
  border-radius: 13px;
  box-shadow: 0 6px 18px rgba(15, 49, 85, .055);
}

.dv2-kpi {
  min-height: 112px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.dv2-kpi-icon,
.dv2-title-icon,
.dv2-row-icon,
.dv2-action-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
}

.dv2-kpi-icon {
  width: 42px;
  height: 42px;
}

.dv2-kpi-icon svg,
.dv2-title-icon svg,
.dv2-row-icon svg,
.dv2-action-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dv2-blue { background: #eaf3ff; color: #1570ef; }
.dv2-orange { background: #fff1dd; color: #f79009; }
.dv2-green { background: #e7f8ef; color: #12a15a; }
.dv2-red { background: #ffebed; color: #ed1c24; }
.dv2-purple { background: #f1eaff; color: #7f56d9; }
.dv2-cyan { background: #e6faf9; color: #0ba7a5; }

.dv2-kpi-copy {
  min-width: 0;
}

.dv2-kpi-label {
  color: #233b5d;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.dv2-kpi-value {
  margin-top: 5px;
  color: #092a50;
  font-size: 27px;
  line-height: 1;
  font-weight: 850;
}

.dv2-kpi-detail {
  margin-top: 7px;
  color: #71839a;
  font-size: 10px;
}

.dv2-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, .9fr);
  gap: 14px;
}

.dv2-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, .9fr);
  gap: 14px;
}

.dv2-panel {
  padding: 14px;
  min-width: 0;
}

.dv2-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.dv2-panel-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dv2-title-icon {
  width: 38px;
  height: 38px;
  background: #eaf3ff;
  color: #1570ef;
}

.dv2-panel-title {
  margin: 0;
  color: #092a50;
  font-size: 17px;
  font-weight: 850;
}

.dv2-panel-desc {
  margin-top: 2px;
  color: #708198;
  font-size: 11px;
}

.dv2-link-btn,
.dv2-refresh-btn {
  border: 1px solid #bad5fa;
  background: #fff;
  color: #075ec7;
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.dv2-link-btn:hover,
.dv2-refresh-btn:hover {
  background: #f3f8ff;
}

.dv2-activity-head,
.dv2-activity-row {
  display: grid;
  grid-template-columns: 40px 115px minmax(150px, 1.5fr) 100px 110px 120px 22px;
  align-items: center;
  gap: 8px;
}

.dv2-activity-head {
  padding: 8px 9px;
  border-radius: 8px 8px 0 0;
  background: #f6f9fc;
  color: #52657d;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.dv2-activity-row {
  padding: 9px;
  border-bottom: 1px solid #edf1f5;
  color: #41556f;
  font-size: 10px;
  cursor: pointer;
  transition: background .14s ease, transform .14s ease;
}

.dv2-activity-row:hover {
  background: #f7faff;
}

.dv2-activity-row:last-child {
  border-bottom: 0;
}

.dv2-row-icon {
  width: 30px;
  height: 30px;
  background: #eaf3ff;
  color: #1570ef;
}

.dv2-activity-name {
  color: #075ec7;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dv2-activity-arrow {
  color: #1570ef;
  font-size: 18px;
  text-align: center;
}

.dv2-pill {
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
}

.dv2-pill-green {
  color: #087a43;
  background: #e5f8ed;
}

.dv2-pill-blue {
  color: #075ec7;
  background: #e9f3ff;
}

.dv2-pill-orange {
  color: #a85d00;
  background: #fff2dc;
}

.dv2-pill-red {
  color: #c2141a;
  background: #ffe9eb;
}

.dv2-pill-gray {
  color: #596b82;
  background: #eef2f6;
}

.dv2-empty {
  padding: 30px 12px;
  color: #77889d;
  text-align: center;
  font-size: 12px;
}

.dv2-health-list {
  border: 1px solid #e6edf4;
  border-radius: 10px;
  overflow: hidden;
}

.dv2-health-row {
  min-height: 48px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-bottom: 1px solid #edf1f5;
}

.dv2-health-row:last-child {
  border-bottom: 0;
}

.dv2-health-name {
  color: #334a66;
  font-size: 11px;
  font-weight: 650;
}

.dv2-health-detail {
  margin-top: 2px;
  color: #8a98aa;
  font-size: 9px;
}

.dv2-health-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.dv2-health-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dv2-health-ok {
  background: #e8f8ee;
  color: #078544;
}

.dv2-health-ok::before { background: #12a15a; }

.dv2-health-warn {
  background: #fff3df;
  color: #ac6500;
}

.dv2-health-warn::before { background: #f79009; }

.dv2-health-neutral {
  background: #eff3f7;
  color: #66788e;
}

.dv2-health-neutral::before { background: #94a3b8; }

.dv2-health-footer {
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  background: #edf5ff;
  color: #22558d;
  font-size: 9px;
  line-height: 1.45;
}

.dv2-chart-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dv2-year-select {
  border: 1px solid #d6e0eb;
  border-radius: 8px;
  background: #fff;
  color: #314760;
  padding: 6px 8px;
  font-size: 10px;
}

.dv2-chart-wrap {
  width: 100%;
  min-height: 260px;
}

.dv2-chart-wrap svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.dv2-chart-peak {
  margin: 3px 0 8px 48px;
  color: #536981;
  font-size: 10px;
}

.dv2-chart-peak strong {
  color: #075ec7;
}

.dv2-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dv2-action {
  border: 1px solid #dfe7f0;
  border-radius: 11px;
  background: #fff;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.dv2-action:hover {
  border-color: #b8d5fb;
  box-shadow: 0 5px 14px rgba(21, 112, 239, .08);
}

.dv2-action-icon {
  width: 38px;
  height: 38px;
}

.dv2-action-title {
  color: #0b4da2;
  font-size: 11px;
  font-weight: 800;
}

.dv2-action-desc {
  margin-top: 2px;
  color: #8290a1;
  font-size: 9px;
}

@media (max-width: 1350px) {
  .dv2-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dv2-main-grid,
  .dv2-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 850px) {
  .dv2-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dv2-activity-head {
    display: none;
  }

  .dv2-activity-row {
    grid-template-columns: 34px 1fr auto;
  }

  .dv2-activity-row > :nth-child(2),
  .dv2-activity-row > :nth-child(4),
  .dv2-activity-row > :nth-child(5) {
    display: none;
  }
}

@media (max-width: 540px) {
  .dv2-kpis,
  .dv2-actions {
    grid-template-columns: 1fr;
  }
}
/* AJUSTE ATIVIDADE RECENTE V2 - 20261001 */

.dv2-activity-head,
.dv2-activity-row {
  grid-template-columns: 42px 145px minmax(220px, 1.8fr) 115px 135px 125px 28px;
  gap: 12px;
}

.dv2-activity-head {
  min-height: 40px;
  padding: 10px 12px;
  font-size: 10px;
  letter-spacing: .02em;
}

.dv2-activity-row {
  min-height: 64px;
  padding: 12px;
  font-size: 12px;
}

.dv2-row-icon {
  width: 34px;
  height: 34px;
}

.dv2-row-icon svg {
  width: 19px;
  height: 19px;
}

.dv2-activity-name {
  font-size: 13px;
  font-weight: 800;
}

.dv2-activity-arrow {
  font-size: 21px;
  font-weight: 700;
}

.dv2-pill {
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 800;
}
