/* ==========================================================================
   MODULE 1: VISÃO EXECUTIVA (.pgx)
   ========================================================================== */

.pgx {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pgx-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--ds-radius-lg);
  padding: 20px 24px;
  background: var(--ds-gradient-editorial);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: var(--ds-shadow-md);
}

.pgx-banner::after {
  content: '';
  position: absolute;
  width: 340px;
  height: 340px;
  right: -90px;
  top: -120px;
  border-radius: 46% 54% 58% 42%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  transform: rotate(-28deg);
  pointer-events: none;
}

.pgx-banner-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.pgx-banner h2,
.pgx-banner-copy h2 {
  color: #FFFFFF;
  font-size: 24px;
  font-weight: 800;
  margin: 8px 0 6px;
}

.pgx-banner p,
.pgx-banner-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13.5px;
}

.pgx-banner-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pgx-grid-kpi {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
}

.pgx-kpi {
  text-align: left;
  border: 1px solid var(--ds-border);
  border-top: 3.5px solid var(--kpi-accent, var(--ds-primary));
  border-radius: 12px;
  background: #FFFFFF;
  padding: 11px 13px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.pgx-kpi:hover {
  transform: translateY(-2px);
  box-shadow: var(--ds-shadow-sm);
  border-color: var(--ds-primary);
}

.pgx-kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.pgx-kpi-disc {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.pgx-kpi-top .ds-badge {
  font-size: 9.5px;
  padding: 2px 7px;
  flex-shrink: 0;
}

.pgx-kpi-label {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ds-secondary);
}

.pgx-kpi-body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.pgx-kpi-num {
  font-family: var(--ds-font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--ds-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.pgx-kpi-meta {
  font-size: 11.5px;
  font-weight: 600;
  color: #354760;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.pgx-ribbon {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.pgx-ribbon-item {
  width: 100%;
  text-align: left;
  cursor: pointer;
  background: #FFFFFF;
  border: 1.5px solid #B8C8DC;
  border-radius: 12px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  box-shadow: var(--ds-shadow-xs);
  transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

.pgx-ribbon-item:hover {
  border-color: var(--ds-primary);
  box-shadow: var(--ds-shadow-sm);
  transform: translateY(-1px);
}

.pgx-ribbon-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #DFE8F4;
  border: 1px solid #C2D2E6;
  color: var(--ds-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pgx-ribbon-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pgx-ribbon-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.pgx-ribbon-lbl {
  font-size: 10.5px;
  font-weight: 800;
  color: #1E3558;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pgx-ribbon-head strong {
  font-family: var(--ds-font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--ds-primary);
  white-space: nowrap;
}

.pgx-ribbon-sub {
  font-size: 11.5px;
  font-weight: 600;
  color: #384A63;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pgx-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pgx-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pgx-bar-row {
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 10px;
}

.pgx-bar-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ds-text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pgx-bar-track {
  height: 11px;
  border-radius: 999px;
  background: var(--ds-primary-soft);
  overflow: hidden;
}

.pgx-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s ease;
}

.pgx-bar-val {
  font-family: var(--ds-font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--ds-primary);
  text-align: right;
}

.pgx-asset-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 16px;
  background: #FFFFFF;
  border: 1px solid var(--ds-border);
  border-radius: 14px;
}

.pgx-strip-pill {
  border: 1px solid var(--ds-border);
  background: var(--ds-surface-subtle);
  color: var(--ds-primary);
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.15s ease;
}

.pgx-strip-pill:hover {
  background: var(--ds-primary);
  color: #FFFFFF;
  border-color: var(--ds-primary);
}

.pgx-attention {
  background: linear-gradient(135deg, #FEFDF6 0%, #FAF4DF 100%);
  border: 1px solid #E5D9A8;
  border-left: 5px solid var(--ds-accent);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 13px;
}

.pgx-attention.is-clear {
  background: linear-gradient(135deg, #F7FEF9 0%, #ECFDF5 100%);
  border-color: #BBF7D0;
  border-left-color: var(--ds-success);
}

.pgx-att-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.pgx-attention .aqua-action-center {
  background: rgba(255, 255, 255, 0.90);
  border-left-width: 3px;
  padding: 12px 14px;
  border-radius: 12px;
}

/* ==========================================================================
   MODULE 2: TERRITÓRIO & MAPA SVG (.tv2)
   ========================================================================== */

.tv2-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
  gap: 16px;
  align-items: start;
}

.tv2-mapbox {
  background: #FFFFFF;
  border: 1px solid var(--ds-border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--ds-shadow-xs);
}

.tv2-svg {
  width: 100%;
  height: auto;
  max-height: 490px;
  border-radius: 12px;
  border: 1px solid var(--ds-border);
  background: #F1F6FA;
}

.tv2-city {
  cursor: pointer;
  transition: opacity 0.15s ease, filter 0.15s ease;
}

.tv2-city:hover {
  filter: brightness(1.1);
  stroke: var(--ds-sand);
  stroke-width: 2.5;
}

.tv2-city.is-chosen {
  stroke: var(--ds-sand);
  stroke-width: 3;
  filter: drop-shadow(0 2px 6px rgba(16, 33, 63, 0.45));
}

.tv2-cities-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tv2-citybtn {
  border: 1px solid var(--ds-border);
  background: var(--ds-surface-subtle);
  color: var(--ds-primary);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tv2-citybtn.is-selected,
.tv2-citybtn:hover {
  background: var(--ds-primary);
  color: #FFFFFF;
  border-color: var(--ds-primary);
}

.tv2-panel {
  background: #FFFFFF;
  border: 1px solid var(--ds-border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--ds-shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tv2-minikpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tv2-minikpi {
  padding: 11px 12px;
  border-radius: 10px;
  background: var(--ds-primary-soft);
}

.tv2-minikpi strong {
  display: block;
  font-family: var(--ds-font-display);
  font-size: 22px;
  color: var(--ds-primary);
}

.tv2-minikpi span {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ds-secondary);
  text-transform: uppercase;
}

/* ==========================================================================
   MODULE 3: ORGANOGRAMA OPERACIONAL (.oa)
   ========================================================================== */

.oa-stage {
  background: #FFFFFF;
  border: 1px solid var(--ds-border);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: var(--ds-shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.oa-stage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ds-border-soft);
}

.oa-stage-title-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.oa-stage-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ds-accent-text);
}

.oa-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: var(--ds-accent);
  box-shadow: 0 0 0 3px rgba(199, 91, 40, 0.16);
}

.oa-stage-title-block h3 {
  font-size: 18px;
  color: var(--ds-primary);
  letter-spacing: -0.01em;
}

.oa-stage-title-block p {
  font-size: 12px;
  color: var(--ds-text-muted);
}

.oa-stage-kpis {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.oa-mini-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--ds-surface-subtle);
  border: 1px solid var(--ds-border);
}

.oa-mini-stat small {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ds-text-muted);
}

.oa-mini-stat strong {
  font-family: var(--ds-font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--ds-primary);
  line-height: 1.15;
}

.oa-exec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(305px, 1fr));
  gap: 14px;
}

.oa-exec-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 14px;
  background: linear-gradient(140deg, #0D1B35 0%, #1B3360 58%, #2B4878 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 24px -10px rgba(13, 27, 53, 0.38);
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.oa-exec-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #F1E8C4 0%, #C75B28 100%);
}

.oa-exec-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px rgba(13, 27, 53, 0.46);
}

.oa-exec-card.is-ger {
  background: linear-gradient(140deg, #162B52 0%, #244175 58%, #3A588A 100%);
}

.oa-exec-card.is-coord {
  background: linear-gradient(140deg, #1D3561 0%, #2C4A7E 48%, #9E471E 100%);
}

.oa-exec-card-ribbon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.oa-exec-tier-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px 3px 4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ds-sand);
}

.oa-tier-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  background: var(--ds-sand);
  color: #0D1B35;
  font-size: 9.5px;
  font-weight: 800;
}

.oa-exec-polo-pill {
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(199, 91, 40, 0.88);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.oa-exec-code-pill {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  font-weight: 700;
  font-family: var(--ds-font-display);
}

.oa-exec-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.oa-exec-avatar-ring {
  padding: 2px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(241, 232, 196, 0.85), rgba(199, 91, 40, 0.75));
  flex-shrink: 0;
  display: inline-flex;
}

.oa-exec-title-col {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.oa-exec-card .oa-overline {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ds-sand);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.oa-exec-card .oa-name {
  font-family: var(--ds-font-display);
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.18;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.oa-exec-card .oa-role {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.oa-role-sep {
  opacity: 0.55;
}

.oa-exec-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 8px;
  padding: 6px 10px;
  border-radius: 9px;
  background: rgba(9, 19, 38, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.oa-exec-meta-cell {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.oa-exec-meta-cell small {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(241, 232, 196, 0.78);
}

.oa-exec-meta-cell strong {
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.oa-exec-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 2px;
}

.oa-exec-sub-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.oa-sub-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  font-size: 10.5px;
  font-weight: 600;
}

.oa-sub-chip.is-warn {
  background: rgba(217, 119, 6, 0.32);
  color: #FDE68A;
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.oa-exec-detail-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}

.oa-exec-detail-btn:hover {
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.45);
}

.oa-exec-teams-strip {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.oa-exec-team-pill {
  height: 23px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.13);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.22);
  cursor: pointer;
}

.oa-exec-team-pill:hover {
  background: rgba(255, 255, 255, 0.24);
}

.oa-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 22px;
}

.oa-connector::before {
  content: '';
  position: absolute;
  left: 4%;
  right: 4%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ds-border) 15%, var(--ds-border) 85%, transparent);
}

.oa-connector span {
  position: relative;
  background: var(--ds-surface-subtle);
  border: 1px solid var(--ds-border);
  border-radius: 9999px;
  padding: 3px 14px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ds-primary);
}

.oa-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
  gap: 13px;
}

.oa-pillar {
  border: 1px solid var(--ds-border);
  border-top: 4px solid var(--pillar-color, var(--ds-primary));
  border-radius: 14px;
  background: #FFFFFF;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--ds-shadow-xs);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.oa-pillar:hover {
  box-shadow: var(--ds-shadow-sm);
}

.oa-pillar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.oa-sys-tag {
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.oa-sys-tag.is-saa {
  background: #E0F2FE;
  color: #0369A1;
}

.oa-sys-tag.is-ses {
  background: #FFEDD5;
  color: #B85320;
}

.oa-sys-tag.is-both {
  background: #E8EEF5;
  color: #203A6D;
}

.oa-pillar-leader {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 11px;
  background: var(--ds-surface-subtle);
  border: 1px solid var(--ds-border-soft);
}

.oa-pillar-unit-name {
  font-family: var(--ds-font-display);
  font-weight: 800;
  font-size: 12.5px;
  color: var(--ds-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.oa-pillar-person-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ds-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.oa-pillar-subline {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--ds-text-muted);
  flex-wrap: wrap;
}

.oa-titular-badge {
  padding: 1px 6px;
  border-radius: 4px;
  background: #E8EEF5;
  color: var(--ds-primary);
  font-size: 9.5px;
  font-weight: 700;
}

.oa-prov-badge {
  padding: 1px 6px;
  border-radius: 4px;
  background: #FEF3C7;
  color: #B45309;
  font-size: 9.5px;
  font-weight: 800;
}

.oa-pillar-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 9px;
  border-radius: 9px;
  background: var(--ds-surface-subtle);
  border: 1px solid var(--ds-border-soft);
  font-size: 11.5px;
}

.oa-teams-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 2px;
}

.oa-teams-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  color: var(--ds-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 2px;
}

.oa-teams-list-head strong {
  padding: 1px 6px;
  border-radius: 9999px;
  background: var(--ds-surface-subtle);
  border: 1px solid var(--ds-border);
  color: var(--ds-primary);
  font-size: 10px;
}

.oa-teams-empty {
  padding: 10px;
  border-radius: 9px;
  border: 1px dashed var(--ds-border);
  font-size: 11px;
  color: var(--ds-text-muted);
  text-align: center;
}

.oa-pillar-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--ds-border-soft);
  font-size: 11px;
  color: var(--ds-text-muted);
}

.oa-pillar-foot strong {
  color: var(--ds-primary);
  font-weight: 700;
}

.oa-team-card {
  padding: 7px 9px;
  border-radius: 10px;
  background: var(--ds-surface-subtle);
  border: 1px solid var(--ds-border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.14s ease, background-color 0.14s ease;
}

.oa-team-card:hover {
  border-color: var(--ds-primary);
  background: #FFFFFF;
}

.oa-team-card-row,
.oa-team-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.oa-team-card-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.oa-team-card-info strong,
.oa-team-card-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ds-primary);
  overflow: hidden;
}

.oa-team-card-info span,
.oa-team-card-sub {
  display: block;
  font-size: 10.5px;
  color: var(--ds-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.oa-inline-editor {
  padding: 9px;
  border-radius: 9px;
  background: #FFFDF7;
  border: 1px solid #F2D7B6;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* ==========================================================================
   MODULE 4: PROFISSIONAIS & EMPRESAS (MASTER-DETAIL SPLIT VIEW)
   ========================================================================== */

.op-prof-layout {
  display: grid;
  grid-template-columns: minmax(280px, 355px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.prof-list-col {
  background: #FFFFFF;
  border: 1px solid var(--ds-border);
  border-radius: 14px;
  max-height: 690px;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.prof-row-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: all 0.14s ease;
}

.prof-row-btn:hover {
  background: var(--ds-surface-subtle);
  border-color: var(--ds-border);
}

.prof-row-btn.is-active {
  background: var(--ds-primary-soft);
  border-color: var(--ds-primary);
  box-shadow: inset 3px 0 0 var(--ds-accent);
}

.prof-detail-col {
  background: #FFFFFF;
  border: 1px solid var(--ds-border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--ds-shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.prof-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 15px 16px;
  border-radius: 12px;
  background: var(--ds-gradient-blue);
  color: #FFFFFF;
}

.prof-mode-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--ds-surface-subtle);
  border: 1px solid var(--ds-border-soft);
  font-size: 12px;
  color: var(--ds-text-muted);
}

.prof-mode-bar.is-editing {
  background: #FFFDF7;
  border-color: #F2D7B6;
  color: var(--ds-accent-text);
  font-weight: 700;
}

.prof-readonly-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.prof-field-tile {
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--ds-surface-subtle);
  border: 1px solid var(--ds-border-soft);
  min-width: 0;
}

.prof-field-tile span {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ds-secondary);
  margin-bottom: 3px;
}

.prof-field-tile strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ds-primary);
  overflow-wrap: anywhere;
}

/* ==========================================================================
   MODULE 5: EQUIPES & COMPOSIÇÃO (.eqv2) — COMPACT CARDS
   ========================================================================== */

.eqv2-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.eqv2-card {
  background: #FFFFFF;
  border: 1px solid var(--ds-border);
  border-top: 4px solid var(--eq-color, var(--ds-primary));
  border-radius: 14px;
  padding: 14px 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
  box-shadow: var(--ds-shadow-xs);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.eqv2-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ds-shadow-sm);
}

.eqv2-card-id {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.eqv2-card-head {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.eqv2-title {
  margin: 0;
  font-size: 13.8px;
  font-weight: 800;
  line-height: 1.28;
  color: var(--ds-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.eqv2-sub {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ds-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eqv2-compact-meta {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 8px 10px;
  padding: 9px 10px;
  border-radius: 10px;
  background: var(--ds-surface-subtle);
  border: 1px solid var(--ds-border-soft);
  min-width: 0;
}

.eqv2-meta-cell {
  min-width: 0;
  overflow: hidden;
}

.eqv2-compact-meta span {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ds-text-muted);
  margin-bottom: 2px;
}

.eqv2-compact-meta strong {
  display: block;
  font-size: 11.5px;
  line-height: 1.28;
  color: var(--ds-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eqv2-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding-top: 7px;
  border-top: 1px solid var(--ds-border-soft);
}

.eqv2-card.cat-agua {
  --eq-color: #203A6D;
}

.eqv2-card.cat-manutencao {
  --eq-color: #455D85;
}

.eqv2-card.cat-esgoto {
  --eq-color: #C75B28;
}

.eqv2-card.cat-apoio {
  --eq-color: #0F766E;
}

/* ==========================================================================
   MODULE 6: FROTA & GARAGEM VIRTUAL (.fg)
   ========================================================================== */

.fg-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 12px;
}

.fg-kpi {
  border: 1px solid var(--ds-border);
  border-radius: 12px;
  background: #FFFFFF;
  padding: 14px 16px;
  text-align: left;
}

.fg-kpi strong {
  display: block;
  font-family: var(--ds-font-display);
  font-size: 26px;
  color: var(--ds-primary);
}

.fg-kpi small {
  font-size: 11px;
  font-weight: 700;
  color: var(--ds-text-muted);
  text-transform: uppercase;
}

.fg-garage-deck {
  background: linear-gradient(160deg, #10213F 0%, #172D55 58%, #203A6D 100%);
  border-radius: 18px;
  padding: 20px;
  color: #FFFFFF;
  box-shadow: var(--ds-shadow-md);
}

.fg-garage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.fg-bay {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  backdrop-filter: blur(8px);
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.fg-bay:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.13);
  border-color: var(--ds-sand);
}

.fg-bay-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.mercosul-plate {
  display: inline-flex;
  align-items: center;
  background: #FFFFFF;
  color: #10213F;
  font-family: var(--ds-font-display);
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  padding: 3px 9px 3px 22px;
  border-radius: 5px;
  border: 1.5px solid #10213F;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.mercosul-plate::before {
  content: 'BR';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 17px;
  background: #203A6D;
  color: #FFFFFF;
  font-size: 7px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fg-bay-sprite {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 80%, rgba(241, 232, 196, 0.24) 0%, rgba(16, 33, 63, 0) 72%);
  border-radius: 10px;
}

.fg-bay-sprite img {
  max-height: 68px;
  width: auto;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45));
}

.ds-fleet-sprite {
  height: 46px;
  width: auto;
  object-fit: contain;
}

/* Dark-mode compact inputs inside garage bay */
.fg-bay .ds-input-compact,
.fg-bay .ds-select-compact {
  background: rgba(10, 20, 40, 0.55);
  border-color: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

.fg-bay .ds-select-compact option {
  background: #10213F;
  color: #FFFFFF;
}

.fg-bay-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.fg-bay-stat {
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.fg-bay-stat small {
  display: block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ds-sand);
  margin-bottom: 2px;
}

.fg-bay-stat strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   MODULE 7: ATIVOS OPERACIONAIS (.a4)
   ========================================================================== */

.a4-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.a4-kpi-btn {
  border: 1px solid var(--ds-border);
  border-radius: 12px;
  background: #FFFFFF;
  padding: 13px 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.a4-kpi-btn:hover,
.a4-kpi-btn.is-active {
  border-color: var(--ds-primary);
  background: var(--ds-primary-soft);
}

.a4-kpi-btn strong {
  display: block;
  font-family: var(--ds-font-display);
  font-size: 24px;
  color: var(--ds-primary);
}

.a4-kpi-btn span {
  font-size: 11px;
  font-weight: 700;
  color: var(--ds-secondary);
}

.a4-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 14px;
}

.a4-card {
  background: #FFFFFF;
  border: 1px solid var(--ds-border);
  border-radius: 14px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  box-shadow: var(--ds-shadow-xs);
}

.a4-inst-bar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}

.a4-inst-pip {
  padding: 4px 3px;
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 700;
  text-align: center;
  background: #EDF2F7;
  color: #64748B;
}

.a4-inst-pip.is-yes {
  background: var(--ds-success-soft);
  color: var(--ds-success);
}

.a4-inst-pip.is-manual {
  background: var(--ds-warning-soft);
  color: var(--ds-warning);
}

.a4-inst-pip.is-absent {
  background: var(--ds-danger-soft);
  color: var(--ds-danger);
}


/* ==========================================================================
   MODULE 6B: CONTROLE DE CNH & RADAR DE RENOVAÇÃO 60D
   ========================================================================== */

.cnh-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.cnh-kpi {
  background: #FFFFFF;
  border: 1px solid var(--ds-border);
  border-top: 4px solid var(--ds-primary);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cnh-kpi.is-ok {
  border-top-color: #059669;
}

.cnh-kpi.is-warn {
  border-top-color: var(--ds-accent);
  background: linear-gradient(180deg, rgba(199, 91, 40, 0.05) 0%, #FFFFFF 60%);
}

.cnh-kpi.is-danger {
  border-top-color: #DC2626;
  background: linear-gradient(180deg, rgba(220, 38, 38, 0.05) 0%, #FFFFFF 60%);
}

.cnh-kpi.is-flow {
  border-top-color: var(--ds-secondary);
}

.cnh-kpi small {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ds-secondary);
}

.cnh-kpi strong {
  font-family: var(--ds-font-display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--ds-primary);
}

.cnh-kpi span {
  font-size: 11.5px;
  color: var(--ds-text-muted);
}

.cnh-alert-banner {
  border-radius: 14px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.cnh-alert-banner.is-urgent {
  background: linear-gradient(120deg, #0D1B35 0%, #203A6D 68%, #9A3B12 100%);
  color: #FFFFFF;
  box-shadow: var(--ds-shadow-sm);
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.cnh-radar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.cnh-radar-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.cnh-radar-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.cnh-radar-pill.is-danger {
  background: rgba(220, 38, 38, 0.34);
  border-color: rgba(252, 165, 165, 0.55);
  color: #FEE2E2;
}

.cnh-radar-pill.is-warn {
  background: rgba(199, 91, 40, 0.36);
  border-color: rgba(253, 186, 116, 0.55);
  color: #FFEDD5;
}

.cnh-radar-pill.is-info {
  background: rgba(5, 150, 105, 0.30);
  border-color: rgba(110, 231, 183, 0.50);
  color: #D1FAE5;
}

.cnh-radar-drivers {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.cnh-radar-driver-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.09);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.cnh-radar-driver-chip:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(241, 232, 196, 0.55);
}

.cnh-radar-driver-chip .crdc-badge {
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.cnh-radar-driver-chip.is-danger .crdc-badge {
  background: #DC2626;
  color: #FFFFFF;
}

.cnh-radar-driver-chip.is-warn .crdc-badge {
  background: #C75B28;
  color: #FFFFFF;
}

.cnh-radar-driver-chip small {
  color: rgba(241, 232, 196, 0.88);
  font-size: 10.5px;
  font-weight: 600;
}

.cnh-alert-banner.is-clear {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
}

.cnh-alert-banner strong {
  display: block;
  font-size: 14.5px;
  font-family: var(--ds-font-display);
}

.cnh-alert-banner p {
  margin: 3px 0 0;
  font-size: 12.5px;
  opacity: 0.92;
}

.cnh-banner-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cnh-alert-banner.is-clear .cnh-banner-icon {
  background: #D1FAE5;
  color: #047857;
}

.cnh-filter-bar {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--ds-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ds-chip-btn {
  border: 1px solid var(--ds-border);
  background: var(--ds-bg-page);
  color: var(--ds-primary);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.ds-chip-btn:hover {
  border-color: var(--ds-primary);
}

.ds-chip-btn.is-active {
  background: var(--ds-primary);
  border-color: var(--ds-primary);
  color: #FFFFFF;
}

.cnh-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(305px, 1fr));
  gap: 14px;
}

.cnh-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(140deg, #DEF9F4 0%, #A8D8BF 58%, #BDCE9D 100%);
  color: #102A1D;
  border: 1px solid rgba(25, 68, 45, 0.22);
  box-shadow: 0 10px 24px -12px rgba(16, 42, 29, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.cnh-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2D6A4F 0%, #A8D8BF 52%, #BDCE9D 100%);
}

.cnh-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -12px rgba(16, 42, 29, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  border-color: rgba(25, 68, 45, 0.38);
}

.cnh-card.is-attention {
  background: linear-gradient(140deg, #DEF9F4 0%, #BFE7D5 54%, #A8D8BF 100%);
  border-color: rgba(29, 78, 63, 0.28);
}

.cnh-card.is-attention::before {
  background: linear-gradient(90deg, #236B5E 0%, #DEF9F4 55%, #A8D8BF 100%);
}

.cnh-card.is-warn {
  background: linear-gradient(140deg, #DEF9F4 0%, #BDCE9D 58%, #A8D8BF 100%);
  border-color: rgba(108, 122, 54, 0.45);
}

.cnh-card.is-warn::before {
  background: linear-gradient(90deg, #B45309 0%, #BDCE9D 58%, #2D6A4F 100%);
}

.cnh-card.is-danger {
  background: linear-gradient(140deg, #BDCE9D 0%, #A8D8BF 48%, #DEF9F4 100%);
  border-color: rgba(185, 28, 28, 0.42);
  box-shadow: 0 12px 26px -12px rgba(127, 29, 29, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.cnh-card.is-danger::before {
  background: linear-gradient(90deg, #DC2626 0%, #BDCE9D 55%, #A8D8BF 100%);
}

.cnh-card-ribbon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.cnh-tier-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px 3px 4px;
  border-radius: 9999px;
  background: rgba(222, 249, 244, 0.78);
  border: 1px solid rgba(25, 68, 45, 0.18);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #102A1D;
}

.cnh-tier-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  background: #1B4332;
  color: #DEF9F4;
  font-size: 9.5px;
  font-weight: 800;
}

.cnh-ribbon-pills {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.cnh-polo-pill {
  padding: 2px 8px;
  border-radius: 9999px;
  background: #BDCE9D;
  border: 1px solid rgba(25, 68, 45, 0.22);
  color: #102A1D;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.cnh-code-pill {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(222, 249, 244, 0.82);
  border: 1px solid rgba(25, 68, 45, 0.18);
  color: #1B4332;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--ds-font-display);
}

.cnh-card-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cnh-avatar-ring {
  padding: 2px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2D6A4F 0%, #BDCE9D 55%, #A8D8BF 100%);
  flex-shrink: 0;
  display: inline-flex;
}

.cnh-avatar-ring .ds-avatar {
  background: #DEF9F4;
  color: #1B4332;
}

.cnh-title-col {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cnh-overline {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #24573D;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cnh-driver-name {
  margin: 0;
  font-family: var(--ds-font-display);
  font-size: 14px;
  font-weight: 800;
  color: #0D2619;
  line-height: 1.18;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cnh-role {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 600;
  color: #214E37;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cnh-role span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.cnh-role-sep {
  opacity: 0.65;
}

.cnh-cat-shield {
  min-width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(145deg, #DEF9F4 0%, #BDCE9D 100%);
  color: #0D2619;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3px 6px;
  flex-shrink: 0;
  border: 1.5px solid rgba(27, 67, 50, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.cnh-cat-shield small {
  font-size: 7.5px;
  letter-spacing: 0.08em;
  color: #2D6A4F;
  font-weight: 800;
}

.cnh-cat-shield strong {
  font-family: var(--ds-font-display);
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.05;
  color: #0D2619;
}

.cnh-meta-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 8px;
  padding: 7px 10px;
  border-radius: 9px;
  background: rgba(222, 249, 244, 0.72);
  border: 1px solid rgba(25, 68, 45, 0.16);
}

.cnh-meta-cell {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cnh-meta-strip small {
  display: block;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: #2A5C41;
}

.cnh-meta-strip strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #0D2619;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cnh-inline-editor {
  padding: 9px;
  border-radius: 9px;
  background: #DEF9F4;
  border: 1px solid #A8D8BF;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.cnh-meter-box {
  padding: 6px 10px;
  border-radius: 9px;
  background: rgba(222, 249, 244, 0.62);
  border: 1px solid rgba(25, 68, 45, 0.14);
}

.cnh-meter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.cnh-meter-count {
  font-size: 11.5px;
  font-weight: 800;
}

.cnh-meter-count.is-ok {
  color: #047857;
}

.cnh-meter-count.is-attention {
  color: #203A6D;
}

.cnh-meter-count.is-warn {
  color: #B45309;
}

.cnh-meter-count.is-danger {
  color: #B91C1C;
}

.cnh-thermometer {
  height: 7px;
  border-radius: 999px;
  background: #E5EAF3;
  overflow: hidden;
}

.cnh-thermometer-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.cnh-thermometer-fill.is-ok {
  background: #059669;
}

.cnh-thermometer-fill.is-attention {
  background: #203A6D;
}

.cnh-thermometer-fill.is-warn {
  background: #C75B28;
}

.cnh-thermometer-fill.is-danger {
  background: #DC2626;
}

.cnh-card .cnh-thermometer {
  background: rgba(25, 68, 45, 0.15);
}

.cnh-card .cnh-meter-count.is-ok {
  color: #1B4332;
}

.cnh-card .cnh-meter-count.is-attention {
  color: #1E4D40;
}

.cnh-card .cnh-meter-count.is-warn {
  color: #92400E;
}

.cnh-card .cnh-meter-count.is-danger {
  color: #991B1B;
}

.cnh-card .cnh-thermometer-fill.is-ok {
  background: linear-gradient(90deg, #2D6A4F 0%, #529975 100%);
}

.cnh-card .cnh-thermometer-fill.is-attention {
  background: linear-gradient(90deg, #236B5E 0%, #63B0A1 100%);
}

.cnh-card .cnh-thermometer-fill.is-warn {
  background: linear-gradient(90deg, #B45309 0%, #D97706 100%);
}

.cnh-card .cnh-thermometer-fill.is-danger {
  background: #DC2626;
}

.cnh-card .cnh-meter-head .ds-badge {
  background: #A8D8BF;
  color: #0D2619;
  border: 1px solid rgba(25, 68, 45, 0.24);
}

.cnh-card .cnh-meter-head .ds-badge-primary {
  background: #DEF9F4;
  color: #0D2619;
  border-color: rgba(25, 68, 45, 0.26);
}

.cnh-card .cnh-meter-head .ds-badge-warning {
  background: #FEF3C7;
  color: #92400E;
  border-color: #F59E0B;
  font-weight: 800;
}

.cnh-card .cnh-meter-head .ds-badge-danger {
  background: #FEE2E2;
  color: #991B1B;
  border-color: #F87171;
  font-weight: 800;
}

.cnh-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 2px;
}

.cnh-sub-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.cnh-card-foot .ds-badge {
  background: rgba(222, 249, 244, 0.85);
  color: #102A1D;
  border: 1px solid rgba(25, 68, 45, 0.22);
}

.cnh-card-foot .ds-badge-warning {
  background: #FEF3C7;
  color: #92400E;
  border-color: #F59E0B;
}

.cnh-card-foot .ds-badge-danger {
  background: #FEE2E2;
  color: #991B1B;
  border-color: #F87171;
}

.cnh-detail-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 11px;
  border-radius: 8px;
  background: rgba(222, 249, 244, 0.84);
  color: #0D2619;
  border: 1px solid rgba(25, 68, 45, 0.28);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.cnh-detail-btn:hover {
  background: #1B4332;
  color: #DEF9F4;
  border-color: #1B4332;
}

.cnh-kanban-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cnh-stage-col {
  background: #FFFFFF;
  border: 1px solid var(--ds-border);
  border-top: 4px solid var(--stage-accent, var(--ds-primary));
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cnh-stage-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ds-border);
}

.cnh-stage-head h4 {
  font-size: 13px;
  margin: 0;
  color: var(--ds-primary);
}

.cnh-stage-head small {
  font-size: 11px;
  color: var(--ds-text-muted);
}

.cnh-stage-count {
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--ds-bg-page);
  color: var(--ds-primary);
  font-weight: 800;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cnh-stage-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cnh-stage-item {
  border: 1px solid var(--ds-border);
  border-radius: 10px;
  padding: 10px;
  background: var(--ds-bg-page);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.cnh-modal-preview {
  display: flex;
  align-items: center;
  min-height: 28px;
}

/* ==========================================================================
   MODULE 1.5 — INDICADORES REGULATÓRIOS & OPERACIONAIS (OUTUBRO / GSAN + PI)
   Alinhado rigorosamente ao guia visual designer-v3-recuperado.md
   ========================================================================== */

.ind-dash-card {
  background: #FFFFFF;
  border: 1px solid var(--ds-border);
  border-left: 4px solid var(--ds-primary);
  border-radius: 12px;
  padding: 12px 15px;
  box-shadow: var(--ds-shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ind-dash-card.is-gestao {
  border-color: var(--ds-border);
  border-left: 4px solid var(--ds-accent);
  background: #FFFFFF;
}

.ind-dash-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ind-dash-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ind-dash-metric-tile {
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--ds-surface-subtle);
  border: 1px solid var(--ds-border-soft);
}

.ind-dash-metric-tile .idm-label {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1E3558;
}

.ind-dash-metric-tile .idm-val {
  font-family: var(--ds-font-display);
  font-size: 19px;
  font-weight: 800;
  color: var(--ds-primary);
  margin: 2px 0;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.ind-dash-metric-tile .idm-sub {
  font-size: 11.5px;
  font-weight: 600;
  color: #354760;
  line-height: 1.3;
}

.ind-dash-polos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-top: 10px;
  border-top: 1.5px solid #C8D6E6;
}

.ind-dash-polo-box {
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, #EBF2FA 0%, #F4F8FD 100%);
  border: 1.5px solid #BCCCE0;
  box-shadow: 0 2px 6px rgba(13, 28, 56, 0.05);
}

.ind-module-wrap {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

/* Exclusive General Regional Indicator Hero (GESTAO ONLY — Seção 3.1 & 10.1 do guia) */
.ind-geral-wrap {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.ind-geral-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--ds-gradient-editorial);
  color: #FFFFFF;
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: var(--ds-shadow-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ind-geral-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -58% auto;
  width: 46%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 45% 55% 58% 42%;
  transform: rotate(-28deg);
  pointer-events: none;
  z-index: 0;
}

.ind-geral-hero>* {
  position: relative;
  z-index: 1;
}

.ind-geral-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}

.ind-geral-top h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  color: #FFFFFF;
  margin: 0 0 6px 0;
  line-height: 1.2;
}

.ind-geral-top p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.90);
  margin: 0;
  max-width: 68ch;
  line-height: 1.5;
}

.ind-geral-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ind-geral-kpi {
  background: rgba(16, 33, 63, 0.50);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ind-geral-kpi .igk-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ds-sand);
}

.ind-geral-kpi .igk-val {
  font-family: var(--ds-font-display);
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 1px 0;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.ind-geral-kpi .igk-sub {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.90);
  line-height: 1.35;
}

.ind-geral-kpi .igk-phases {
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 10.5px;
  color: rgba(241, 232, 196, 0.92);
}

/* Polo Comparison Strip — Superfície Clara Soft (Seção 9.2/9.3 do guia) */
.ind-polos-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.ind-polo-card {
  background: #FFFFFF;
  border: 1px solid var(--ds-border);
  border-top: 3.5px solid var(--polo-accent, var(--ds-primary));
  border-radius: 12px;
  padding: 11px 13px;
  box-shadow: var(--ds-shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: border-color 0.14s ease, background-color 0.14s ease, box-shadow 0.14s ease;
}

.ind-polo-card.is-active {
  background: #F4F7FC;
  border-color: var(--polo-accent, var(--ds-primary));
  box-shadow: var(--ds-shadow-sm);
}

.ind-polo-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ind-polo-icon-disc {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--polo-accent, var(--ds-primary));
  color: #FFFFFF;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.ind-polo-card .igp-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--ds-surface-subtle);
  border: 1px solid var(--ds-divider);
}

.ind-polo-card.is-active .igp-metrics {
  background: #FFFFFF;
}

.ind-polo-card .igp-metrics span {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ds-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ind-polo-card .igp-metrics strong {
  font-family: var(--ds-font-display);
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ds-primary);
  font-variant-numeric: tabular-nums;
}

.ind-polo-foot {
  font-size: 12px;
  color: var(--ds-text-muted);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* Controls & City Selector */
.ind-controls-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 13px 16px;
}

.ind-controls-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ind-param-selects {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ind-param-selects .ds-select-compact {
  min-height: 34px;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 8px;
  min-width: 195px;
}

.ind-city-pills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 7px;
  padding-top: 10px;
  border-top: 1px solid var(--ds-divider);
}

.ind-city-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid var(--ds-border);
  background: var(--ds-surface-subtle);
  color: var(--ds-primary);
  cursor: pointer;
  text-align: left;
  min-width: 0;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.ind-city-pill:hover {
  border-color: var(--ds-primary);
  background: var(--ds-primary-soft);
}

.ind-city-pill:focus-visible {
  outline: 3px solid var(--ds-primary);
  outline-offset: 2px;
}

.ind-city-pill.is-active {
  border-color: var(--ds-primary);
  background: var(--ds-primary);
  color: #FFFFFF;
  box-shadow: var(--ds-shadow-xs);
}

.ind-city-pill strong {
  display: block;
  max-width: 100%;
  font-family: var(--ds-font-display);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ind-city-pill .icp-meta {
  display: block;
  max-width: 100%;
  font-size: 10.5px;
  color: var(--ds-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ind-city-pill.is-active .icp-meta {
  color: var(--ds-sand);
}

.ind-city-pill .icp-ppp {
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 9999px;
  background: var(--ds-warning-soft);
  color: var(--ds-warning);
  flex-shrink: 0;
}

.ind-city-pill.is-active .icp-ppp {
  background: rgba(241, 232, 196, 0.22);
  color: var(--ds-sand);
}

/* Active Scope Summary */
.ind-scope-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 13px 16px;
}

.ind-scope-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ind-scope-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.ind-scope-kpi {
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--ds-surface-subtle);
  border: 1px solid var(--ds-border-soft);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ind-scope-kpi .isk-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ds-secondary);
}

.ind-scope-kpi .isk-val {
  font-family: var(--ds-font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--ds-primary);
  margin: 1px 0;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.ind-scope-kpi .isk-sub {
  font-size: 11px;
  color: var(--ds-text-muted);
  line-height: 1.3;
}

.ind-ppp-notice {
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--ds-warning-soft);
  border: 1px solid #E5C16C;
  color: var(--ds-warning);
  font-size: 13px;
  line-height: 1.5;
}

/* Category Filter Bar & Section Headers (Seção 11 Controles de Densidade) */
.ind-cat-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid var(--ds-border);
  box-shadow: var(--ds-shadow-xs);
}

.ind-cat-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.ind-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid var(--ds-border);
  background: var(--ds-surface-subtle);
  color: var(--ds-primary);
  font-family: var(--ds-font-display);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.ind-cat-chip:hover {
  background: var(--ds-primary-soft);
  border-color: var(--ds-primary);
}

.ind-cat-chip:focus-visible {
  outline: 3px solid var(--ds-primary);
  outline-offset: 2px;
}

.ind-cat-chip.is-active {
  background: var(--ds-primary);
  border-color: var(--ds-primary);
  color: #FFFFFF;
}

.ind-cat-count {
  padding: 1px 7px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  background: var(--ds-primary-soft);
  color: var(--ds-primary);
}

.ind-cat-chip.is-active .ind-cat-count {
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

.ind-group-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ind-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 4px 10px;
  border-bottom: 1px solid var(--ds-divider);
}

.ind-group-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ds-font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ds-primary);
}

.ind-group-disc {
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  background: var(--ds-primary-soft);
  color: var(--ds-primary);
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

/* 17 Indicators Matrix — Cards Compactos BI + Modal Auditável */
.ind-matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ind-indicator-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px 14px;
  border-radius: 13px;
  border: 1px solid var(--ds-border);
  border-top: 3.5px solid var(--ind-accent, var(--ds-primary));
  background: #FFFFFF;
  box-shadow: var(--ds-shadow-xs);
  transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

.ind-indicator-card:hover {
  border-color: var(--ind-accent, var(--ds-primary));
  box-shadow: var(--ds-shadow-sm);
  transform: translateY(-1px);
}

.ind-indicator-card.is-na-ppp {
  background: var(--ds-surface-subtle);
  border-color: var(--ds-border);
  border-top: 3.5px solid #94A3B8;
}

.iic-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.iic-head-left {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.iic-code {
  font-family: var(--ds-font-display);
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 7px;
  background: var(--ds-primary);
  color: #FFFFFF;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.iic-cat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ds-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.iic-head .ds-badge {
  font-size: 10px;
  padding: 2px 8px;
  flex-shrink: 0;
}

.iic-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.iic-title {
  font-family: var(--ds-font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ds-primary);
  margin: 0;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  flex: 1;
}

.iic-title small {
  font-weight: 500;
  color: var(--ds-text-muted);
  font-size: 11.5px;
}

.iic-weights {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  font-size: 10.5px;
  line-height: 1.2;
  color: var(--ds-text-muted);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.iic-values-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.iic-val-box {
  padding: 7px 8px;
  border-radius: 9px;
  background: var(--ds-surface-subtle);
  border: 1px solid var(--ds-divider);
  min-width: 0;
}

.iic-val-box.is-october {
  background: var(--ds-primary-soft);
  border-color: rgba(32, 58, 109, 0.22);
}

.iic-val-box .ivb-label {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ds-secondary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.iic-val-box .ivb-num {
  font-family: var(--ds-font-display);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ds-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.iic-val-box .ivb-sub {
  font-size: 10px;
  color: var(--ds-text-muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.iic-edit-inline {
  display: flex;
  align-items: center;
  gap: 4px;
}

.iic-edit-inline span {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ds-primary);
}

.iic-inline-input {
  width: 68px;
  min-height: 28px;
  padding: 2px 6px;
  font-weight: 700;
  font-size: 12.5px;
  color: var(--ds-primary);
  background: #FFFFFF;
}

.iic-bi-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 7px;
  margin-top: auto;
  border-top: 1px solid var(--ds-border-soft);
}

.iic-progress-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
}

.iic-progress-track {
  flex: 1;
  height: 6px;
  border-radius: 9999px;
  background: var(--ds-primary-soft);
  overflow: hidden;
}

.iic-progress-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 240ms ease;
}

.iic-progress-pct {
  font-size: 11px;
  font-weight: 800;
  color: var(--ds-primary);
  min-width: 32px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ds-modal-detail .iic-progress-pct {
  min-width: auto;
}

.iic-ppp-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--ds-text-muted);
}

.iic-mem-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 9px;
  border-radius: 7px;
  background: var(--ds-surface-subtle);
  border: 1px solid var(--ds-border);
  color: var(--ds-primary);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.iic-mem-btn:hover {
  background: var(--ds-primary);
  border-color: var(--ds-primary);
  color: #FFFFFF;
}

.iic-memory {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--ds-surface-subtle);
  border: 1px solid var(--ds-divider);
  font-size: 12.5px;
  color: var(--ds-text-secondary);
  display: flex;
  flex-direction: column;
  gap: 8px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.iic-formula-row,
.iic-calc-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.iic-memory code {
  display: inline-block;
  max-width: 100%;
  font-family: var(--ds-font-mono);
  font-size: 11.5px;
  color: var(--ds-primary);
  background: #FFFFFF;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--ds-divider);
  white-space: normal;
  word-break: break-word;
}

.iic-mem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 2px;
}

.iic-mem-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.iic-mem-cell span {
  font-size: 11px;
  font-weight: 600;
  color: var(--ds-text-muted);
}

.iic-mem-cell strong {
  font-size: 12.5px;
  color: var(--ds-text);
  overflow-wrap: anywhere;
}

.iic-source-row {
  font-size: 12px;
  color: var(--ds-text-muted);
  padding-top: 4px;
  border-top: 1px solid var(--ds-divider);
}

.is-selected-row {
  background: var(--ds-primary-soft) !important;
}

/* PI Vision SCADA Grid */
.ind-scada-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ind-scada-card {
  border: 1px solid var(--ds-border);
  border-top: 4px solid var(--ds-teal);
  border-radius: 14px;
  padding: 16px 18px;
  background: #FFFFFF;
  box-shadow: var(--ds-shadow-xs);
}

.ind-scada-series {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ind-scada-series .iss-box {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--ds-surface-subtle);
  border: 1px solid var(--ds-divider);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ind-scada-series .iss-box.is-highlight {
  background: var(--ds-teal-soft);
  border-color: #99E2D7;
}

.ind-scada-series .iss-box span {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ds-secondary);
}

.ind-scada-series .iss-box strong {
  font-family: var(--ds-font-display);
  font-size: 14px;
  color: var(--ds-primary);
  font-variant-numeric: tabular-nums;
}

.ind-scada-series .iss-box small {
  font-size: 11.5px;
  color: var(--ds-text-muted);
}

@media (max-width: 1360px) {
  .ind-matrix-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ind-scope-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1180px) {
  .pgx-grid-kpi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cnh-kpis,
  .cnh-kanban-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .a4-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tv2-layout,
  .op-prof-layout {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-visual-col {
    padding: 28px 22px;
  }

  .login-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .app-sidebar,
  .app-shell.is-sidebar-collapsed .app-sidebar {
    position: fixed;
    left: -290px;
    top: 0;
    width: 274px;
    min-width: 274px;
    padding: 18px 14px;
    overflow-y: auto;
    overflow-x: hidden;
    transition: left 0.22s ease;
  }

  .app-sidebar.is-open,
  .app-shell.is-sidebar-collapsed .app-sidebar.is-open {
    left: 0;
  }

  .sidebar-seam-toggle,
  .sidebar-collapse-btn,
  .sidebar-rail-tooltip,
  .app-shell.is-sidebar-collapsed .sidebar-brand-mark,
  .app-shell.is-sidebar-collapsed .sp-rail-tag {
    display: none !important;
  }

  .app-shell.is-sidebar-collapsed .sidebar-logo-img {
    display: block;
  }

  .app-shell.is-sidebar-collapsed .sidebar-profile-card {
    padding: 11px 12px;
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.14);
    margin-bottom: 14px;
  }

  .app-shell.is-sidebar-collapsed .sidebar-profile-card .sp-head {
    justify-content: space-between;
  }

  .app-shell.is-sidebar-collapsed .sp-meta {
    display: block;
  }

  .app-shell.is-sidebar-collapsed .sp-card-foot {
    margin-top: 8px;
    padding-top: 7px;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    justify-content: flex-start;
  }

  .app-shell.is-sidebar-collapsed .sp-pwd-btn {
    width: 100%;
    height: 24px;
    padding: 0 8px;
    border-radius: 7px;
  }

  .app-shell.is-sidebar-collapsed .sp-pwd-btn span {
    display: inline;
  }

  body.is-authenticated .app-topbar {
    padding-right: 138px;
  }

  .app-shell.is-sidebar-collapsed .sidebar-nav-section {
    width: auto;
    height: auto;
    margin: 0;
    padding: 8px 10px 6px;
    background: transparent;
  }

  .app-shell.is-sidebar-collapsed .sidebar-nav-section span,
  .app-shell.is-sidebar-collapsed .sidebar-nav-label {
    display: inline;
  }

  .app-shell.is-sidebar-collapsed .sidebar-nav-list {
    align-items: stretch;
    gap: 3px;
  }

  .app-shell.is-sidebar-collapsed .sidebar-nav-btn {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 9.5px 12px;
    justify-content: flex-start;
    border-left: 3px solid transparent;
    border-radius: 10px;
  }

  .app-shell.is-sidebar-collapsed .sidebar-nav-btn.is-active {
    border-left-color: var(--ds-accent);
  }

  .app-shell.is-sidebar-collapsed .sidebar-nav-btn.is-active::before {
    display: none;
  }

  .app-shell.is-sidebar-collapsed .sidebar-foot {
    align-items: stretch;
  }

  .ds-mobile-overlay.is-open {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 40, 0.45);
    z-index: 28;
  }

  .ind-geral-hero {
    padding: 22px 20px;
    border-radius: 20px;
  }

  .pgx-ribbon,
  .pgx-two,
  .ds-grid-2,
  .ds-grid-3,
  .ds-grid-4,
  .cnh-kpis,
  .cnh-kanban-grid,
  .cnh-cards-grid,
  .prof-readonly-grid,
  .detail-kv-grid,
  .photo-crop-layout,
  .ind-dash-metrics,
  .ind-dash-polos,
  .ind-geral-kpi-grid,
  .ind-polos-strip,
  .ind-geral-polos-grid,
  .ind-scope-kpis,
  .ind-matrix-grid,
  .ind-scada-grid,
  .iic-values-strip,
  .iic-mem-grid,
  .ind-scada-series {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   INDICADORES: ORBITAL GSAN + PI VISION DATA FEED HUB (FAIVRA STYLE)
   ========================================================================== */

@keyframes io-orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes io-orbit-spin-rev {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes io-hub-ping {
  0% {
    opacity: 0.58;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.42);
  }
}

@keyframes io-pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.45;
    transform: scale(0.76);
  }
}

@keyframes io-pill-eq {

  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-1.5px);
  }
}

.ind-orbit-stage {
  position: relative;
  background-color: #FFFFFF;
  background-image: radial-gradient(#CBD5E1 1px, transparent 1px);
  background-size: 18px 18px;
  border: 1px solid var(--ds-border);
  border-radius: 18px;
  padding: 14px 18px 18px;
  box-shadow: var(--ds-shadow-xs);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.io-stage-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 3;
}

.io-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 9999px;
  background: rgba(2, 132, 199, 0.1);
  border: 1px solid rgba(2, 132, 199, 0.25);
  color: #0369A1;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.io-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: #0284C7;
  display: inline-block;
  animation: io-pulse-dot 1.8s ease-in-out infinite;
}

.io-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 600;
  color: var(--ds-text-muted);
}

.io-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.io-legend i {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  display: inline-block;
}

.io-canvas {
  position: relative;
  width: 100%;
  max-width: 1160px;
  aspect-ratio: 1160 / 440;
  margin: 0 auto;
}

.io-aura {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 680px;
  height: 360px;
  transform: translate(-50%, -50%);
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.12) 0%, rgba(199, 91, 40, 0.06) 44%, transparent 74%);
  pointer-events: none;
  z-index: 1;
}

.io-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.io-orbit-spin {
  animation: io-orbit-spin 42s linear infinite;
}

.io-orbit-spin-rev {
  animation: io-orbit-spin-rev 58s linear infinite;
}

.io-spoke-path {
  transition: stroke-opacity 0.2s ease, stroke-width 0.2s ease;
}

.io-spoke-group.is-active .io-spoke-path {
  stroke-opacity: 0.96 !important;
  stroke-width: 2.8px !important;
}

.io-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 164px;
  height: 164px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 18px 42px -12px rgba(13, 27, 53, 0.26), inset 0 2px 6px rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
  padding: 12px;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.io-hub-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.io-hub:hover {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 22px 48px -12px rgba(13, 27, 53, 0.34);
}

.io-hub-ping {
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  border: 2px solid var(--ds-accent);
  pointer-events: none;
  animation: io-hub-ping 2.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.io-hub-over {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ds-secondary);
  text-transform: uppercase;
}

.io-hub-num {
  font-family: var(--ds-font-display);
  font-size: 31px;
  font-weight: 800;
  line-height: 1;
  color: var(--ds-primary);
  font-variant-numeric: tabular-nums;
}

.io-hub-lbl {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ds-accent-text);
  margin-top: 2px;
}

.io-hub.is-ok .io-hub-lbl {
  color: var(--ds-success);
}

.io-hub-sub {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ds-text-muted);
}

.io-node-card {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 15;
  width: 244px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid var(--ds-border);
  border-left: 3.5px solid var(--io-color, var(--ds-primary));
  border-radius: 14px;
  padding: 9px 11px;
  box-shadow: 0 10px 24px -10px rgba(13, 27, 53, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.io-node-card:hover {
  transform: translate(-50%, -52%) scale(1.03);
  border-color: var(--io-color, var(--ds-primary));
  background: #FFFFFF;
  box-shadow: 0 14px 30px -10px rgba(13, 27, 53, 0.24), 0 0 0 3px rgba(2, 132, 199, 0.08);
  z-index: 25;
}

.io-node-card.is-paused {
  opacity: 0.74;
  background: rgba(248, 250, 252, 0.94);
}

.io-card-icon-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.io-node-tile {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  color: #FFFFFF;
  display: inline-grid;
  place-items: center;
  box-shadow: 0 6px 14px -4px rgba(13, 27, 53, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.io-node-status {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  border: 2px solid #FFFFFF;
}

.io-node-status.is-live {
  background: #10B981;
}

.io-node-status.is-warn {
  background: #F59E0B;
}

.io-node-status.is-muted {
  background: #94A3B8;
}

.io-node-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9999px;
  background: #DC2626;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  font-size: 9.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.io-node-badge.is-neutral {
  background: var(--ds-primary);
}

.io-card-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.io-node-title {
  font-family: var(--ds-font-display);
  font-size: 12px;
  font-weight: 800;
  color: var(--ds-primary);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.io-node-role {
  font-size: 10px;
  color: var(--ds-text-muted);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.io-node-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  margin-top: 2px;
  padding: 2px 7px;
  border-radius: 9999px;
  background: var(--ds-surface-subtle);
  border: 1px solid var(--ds-border-soft);
  color: var(--ds-primary);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

.io-node-card:hover .io-node-pill {
  border-color: var(--io-color, var(--ds-primary));
}

.io-pill-dots {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.io-pill-dots b {
  width: 3px;
  height: 3px;
  border-radius: 9999px;
  background: var(--io-color, #0284C7);
  display: inline-block;
  animation: io-pill-eq 1.4s ease-in-out infinite;
}

.io-pill-dots b:nth-child(2) {
  animation-delay: 0.22s;
}

.io-pill-dots b:nth-child(3) {
  animation-delay: 0.44s;
}

.io-inspector-bar {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 9px 13px;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid var(--ds-border-soft);
  font-size: 11.5px;
  color: var(--ds-text-secondary);
}

.io-inspector-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.io-insp-tag {
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--ds-primary-soft);
  color: var(--ds-primary);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.io-insp-tag.is-focus {
  background: rgba(199, 91, 40, 0.14);
  color: var(--ds-accent-text);
}

.io-inspector-kpis {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--ds-text-muted);
  font-variant-numeric: tabular-nums;
}

.io-inspector-kpis strong {
  color: var(--ds-primary);
}

@media (max-width: 1180px) {
  .io-node-card {
    width: 214px;
    padding: 8px 9px;
    gap: 8px;
  }
}

@media (max-width: 960px) {
  .io-canvas {
    aspect-ratio: auto;
    height: auto;
    min-height: 0;
    max-width: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-top: 8px;
  }

  .io-svg,
  .io-aura {
    display: none;
  }

  .io-hub {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    grid-column: 1 / -1;
    margin: 0 auto 6px;
  }

  .io-hub:hover {
    transform: scale(1.03);
  }

  .io-node-card {
    position: relative;
    left: auto !important;
    top: auto !important;
    transform: none;
    width: 100%;
  }

  .io-node-card:hover {
    transform: translateY(-2px);
  }
}

@media (max-width: 560px) {
  .io-canvas {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {

  .io-orbit-spin,
  .io-orbit-spin-rev,
  .io-hub-ping,
  .io-pulse-dot,
  .io-pill-dots b,
  .io-packet-dot,
  .cnh-polar-sweep,
  .cpd-ping {
    animation: none !important;
  }
}

/* ==========================================================================
   CENTRAL DE AÇÕES DO DIA, SANKEY TABELA 46, BENCHMARK CIDADES,
   RADAR POLAR CNH, TIMELINE AUDITORIA & COMMAND PALETTE CTRL+K
   ========================================================================== */

/* ---------- 1. Dashboard: Central de Ações Prioritárias ---------- */
.aqua-action-center {
  background: linear-gradient(125deg, #FFFFFF 0%, #F8FAFC 65%, #F0F6FC 100%);
  border: 1px solid var(--ds-border);
  border-left: 4px solid var(--ds-accent);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--ds-shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.aqua-action-center.is-clear {
  border-left-color: var(--ds-success);
  background: linear-gradient(125deg, #FFFFFF 0%, #F0FDF4 100%);
}

.aac-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.aac-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.aac-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ds-accent);
  box-shadow: 0 0 0 0 rgba(199, 91, 40, 0.55);
  animation: pulseDot 2.1s infinite;
  flex-shrink: 0;
}

.aac-live-dot.is-ok {
  background: var(--ds-success);
  box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.45);
}

.aac-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ds-accent-text);
}

.aac-title-wrap strong {
  font-family: var(--ds-font-display);
  font-size: 14.5px;
  color: var(--ds-primary);
}

.aac-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.aac-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 11px;
  border: 1px solid var(--ds-border);
  background: #FFFFFF;
  color: var(--ds-primary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.aac-chip:hover {
  transform: translateY(-1px);
  box-shadow: var(--ds-shadow-sm);
  border-color: var(--ds-primary);
}

.aac-chip-ico {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ds-primary-soft);
  color: var(--ds-primary);
}

.aac-chip.is-warn .aac-chip-ico {
  background: #FEF3C7;
  color: #B45309;
}

.aac-chip.is-danger .aac-chip-ico {
  background: #FEE2E2;
  color: #B91C1C;
}

.aac-chip.is-info .aac-chip-ico {
  background: #E0F2FE;
  color: #0369A1;
}

.aac-chip-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ds-accent-text);
  margin-left: 2px;
}

.aac-clear-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: #065F46;
}

/* ---------- 2. Mode Switch & Sankey Diagram (Indicadores) ---------- */
.io-mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 10px;
  background: #E2E8F0;
}

.io-mode-btn {
  border: none;
  background: transparent;
  color: var(--ds-text-muted);
  font-family: var(--ds-font-display);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 7px;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.io-mode-btn.is-active {
  background: #FFFFFF;
  color: var(--ds-primary);
  box-shadow: 0 2px 6px rgba(13, 28, 56, 0.10);
}

.ios-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  padding: 12px 20px 6px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

.ios-stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 140px;
}

.ios-stat span {
  font-size: 11px;
  font-weight: 600;
  color: var(--ds-text-muted);
}

.ios-stat strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ds-font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--ds-primary);
}

.ios-stat strong i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.ios-stat small {
  font-size: 11px;
  color: var(--ds-text-muted);
}

.io-sankey-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 18px 8px;
  display: flex;
  justify-content: center;
}

.io-sankey-svg {
  width: 940px;
  max-width: 100%;
  height: 264px;
  display: block;
  user-select: none;
}

.ios-col-hdr {
  font-family: var(--ds-font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  fill: #64748B;
}

.ios-ribbon {
  opacity: 0.42;
  transition: opacity 0.18s ease;
  cursor: pointer;
}

.io-sankey-wrap.is-hovering .ios-ribbon {
  opacity: 0.08;
}

.io-sankey-wrap.is-hovering .ios-ribbon.is-lit,
.ios-ribbon:hover {
  opacity: 0.86;
}

.ios-node-label.is-mid {
  paint-order: stroke;
  stroke: #FFFFFF;
  stroke-width: 4px;
  stroke-linejoin: round;
}

.ios-node-title {
  font-family: var(--ds-font-display);
  font-size: 12px;
  font-weight: 700;
  fill: #0D1C38;
}

.ios-node-sub {
  font-family: var(--ds-font-sans);
  font-size: 11px;
  font-weight: 600;
  fill: #475569;
}

/* ---------- 3. Benchmark Municipal Chart (Indicadores > Cidades) ---------- */
.ind-bench-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ind-bench-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.ind-bench-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ds-text-muted);
}

.ind-bench-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ind-bench-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}

.ind-bench-plot {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 0 4px;
}

.ind-bench-ref {
  position: absolute;
  top: 0;
  bottom: 0;
  border-left: 1.5px dashed #C75B28;
  pointer-events: none;
  z-index: 1;
}

.ind-bench-ref.is-target {
  border-left-color: #059669;
}

.ind-bench-ref span {
  position: absolute;
  top: -18px;
  left: 4px;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 800;
  color: #C75B28;
}

.ind-bench-ref.is-target span {
  color: #059669;
}

.ind-bench-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(150px, 195px) 1fr 110px;
  align-items: center;
  gap: 12px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(248, 250, 252, 0.85);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.14s ease, background-color 0.14s ease, transform 0.14s ease;
}

.ind-bench-row:hover {
  background: #FFFFFF;
  border-color: var(--ds-primary);
  transform: translateX(2px);
}

.ind-bench-row.is-selected {
  background: #EFF6FF;
  border-color: var(--ds-primary);
}

.ibr-label strong {
  display: block;
  font-size: 12.5px;
  color: var(--ds-primary);
}

.ibr-label small {
  font-size: 10.5px;
  color: var(--ds-text-muted);
}

.ibr-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: #E2E8F0;
  overflow: visible;
}

.ibr-bar {
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s ease;
}

.ibr-ef-tick {
  position: absolute;
  top: -3px;
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: #0F766E;
  box-shadow: 0 0 0 2px #FFFFFF;
}

.ibr-val {
  text-align: right;
}

.ibr-val strong {
  display: block;
  font-family: var(--ds-font-display);
  font-size: 13px;
  color: var(--ds-primary);
}

.ibr-val small {
  font-size: 10.5px;
  color: #0F766E;
  font-weight: 700;
}

/* ---------- 4. Radar Polar Concêntrico CNH ---------- */
@keyframes cnhSweepSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes cnhRingPing {
  0% {
    transform: scale(1);
    opacity: 0.75;
  }

  70% {
    transform: scale(1.65);
    opacity: 0;
  }

  100% {
    transform: scale(1.65);
    opacity: 0;
  }
}

.cnh-polar-card {
  padding: 20px;
}

.cnh-polar-layout {
  display: grid;
  grid-template-columns: minmax(280px, 390px) 1fr;
  gap: 24px;
  align-items: center;
}

.cnh-polar-stage-wrap {
  display: flex;
  justify-content: center;
}

.cnh-polar-canvas {
  position: relative;
  width: 100%;
  max-width: 365px;
  aspect-ratio: 1 / 1;
}

.cnh-polar-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.cnh-polar-axis-txt {
  font-size: 2.5px;
  font-weight: 700;
  fill: #64748B;
}

.cnh-polar-ring-txt {
  font-size: 2.2px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.cnh-polar-sweep {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  animation: cnhSweepSpin 9s linear infinite;
}

.cnh-polar-sweep div {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 292deg, rgba(32, 58, 109, 0.14) 356deg, rgba(199, 91, 40, 0.42) 360deg);
}

.cnh-polar-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 23%;
  height: 23%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid var(--ds-border);
  box-shadow: var(--ds-shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 4;
}

.cnh-polar-hub small {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ds-text-muted);
}

.cnh-polar-hub strong {
  font-family: var(--ds-font-display);
  font-size: 18px;
  line-height: 1.05;
  color: var(--ds-primary);
}

.cnh-polar-hub span {
  font-size: 9.5px;
  font-weight: 700;
}

.cnh-polar-hub span.is-danger {
  color: #DC2626;
}

.cnh-polar-hub span.is-ok {
  color: #059669;
}

.cnh-polar-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid var(--dot-color);
  background: #FFFFFF;
  color: var(--ds-primary);
  font-family: var(--ds-font-display);
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 4px 10px rgba(10, 20, 40, 0.14);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.cnh-polar-dot:hover {
  transform: translate(-50%, -50%) scale(1.22);
  z-index: 9;
  background: var(--dot-color);
  color: #FFFFFF;
  box-shadow: 0 8px 18px rgba(10, 20, 40, 0.24);
}

.cnh-polar-dot.is-expired {
  background: #FEF2F2;
  color: #991B1B;
}

.cnh-polar-dot .cpd-ping {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid #DC2626;
  animation: cnhRingPing 2.2s infinite;
  pointer-events: none;
}

.cnh-polar-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.cps-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.cps-inspector {
  padding: 13px 15px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0D1C38 0%, #203A6D 100%);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cps-insp-lbl {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ds-sand);
}

.cps-inspector strong {
  font-size: 13.5px;
  line-height: 1.35;
}

.cps-inspector small {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
}

.cps-legend-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cps-leg-tile {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  border-radius: 11px;
  border: 1px solid var(--ds-border);
  background: #F8FAFC;
}

.cps-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cps-leg-tile strong {
  display: block;
  font-size: 12px;
  color: var(--ds-primary);
}

.cps-leg-tile small {
  font-size: 10.5px;
  color: var(--ds-text-muted);
}

/* ---------- 5. Audit Timeline (Moderação > Logs) ---------- */
.aqua-timeline {
  display: flex;
  flex-direction: column;
}

.at-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
}

.at-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.at-node {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ds-primary-soft);
  color: var(--ds-primary);
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 0 1px var(--ds-border);
  flex-shrink: 0;
}

.at-node.is-success {
  background: #DCFCE7;
  color: #15803D;
}

.at-node.is-danger {
  background: #FEE2E2;
  color: #B91C1C;
}

.at-node.is-warn {
  background: #FEF3C7;
  color: #B45309;
}

.at-node.is-teal {
  background: #CCFBF1;
  color: #0F766E;
}

.at-stem {
  width: 2px;
  flex: 1;
  min-height: 14px;
  background: #E2E8F0;
  margin: 4px 0;
}

.at-item:last-child .at-stem {
  display: none;
}

.at-card {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--ds-border-soft);
  background: #F8FAFC;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.at-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.at-who {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ds-primary);
}

.at-time {
  font-size: 11px;
  font-weight: 600;
  color: var(--ds-text-muted);
}

.at-body {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ds-text);
}

/* ---------- 6. Command Palette Central (Ctrl+K) ---------- */
.ds-modal.aqua-cmd-card {
  max-width: 640px;
  padding: 0;
  overflow: hidden;
}

.acp-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #0D1C38 0%, #203A6D 100%);
  color: #FFFFFF;
}

.acp-search-ico {
  color: var(--ds-sand);
  display: inline-flex;
}

.acp-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: #FFFFFF;
  font-family: var(--ds-font-sans);
  font-size: 14.5px;
  font-weight: 500;
}

.acp-input::placeholder {
  color: rgba(255, 255, 255, 0.56);
}

.acp-spin {
  color: var(--ds-sand);
  display: inline-flex;
  animation: cnhSweepSpin 1s linear infinite;
}

.acp-esc-btn {
  padding: 4px 8px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-family: var(--ds-font-display);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.acp-results {
  max-height: 390px;
  overflow-y: auto;
  padding: 10px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.acp-section {
  padding: 8px 10px 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ds-secondary);
}

.acp-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}

.acp-item:hover,
.acp-item.is-active {
  background: #EFF6FF;
  border-color: rgba(32, 58, 109, 0.22);
}

.acp-ico {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #F1F5F9;
  color: var(--ds-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.acp-item.is-active .acp-ico {
  background: var(--ds-primary);
  color: #FFFFFF;
}

.acp-copy {
  flex: 1;
  min-width: 0;
}

.acp-copy strong {
  display: block;
  font-size: 13px;
  color: var(--ds-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acp-copy small {
  display: block;
  font-size: 11px;
  color: var(--ds-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acp-empty {
  padding: 28px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--ds-text-muted);
}

.cnh-sheet-card {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cnh-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cnh-compact-table th {
  padding: 8px 10px;
  font-size: 10.5px;
  white-space: nowrap;
}

.cnh-compact-table td {
  padding: 7px 10px;
  font-size: 12px;
  vertical-align: middle;
}

.cnh-tbl-driver {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.cnh-tbl-copy {
  min-width: 0;
}

.cnh-tbl-copy strong {
  display: block;
  font-size: 12.2px;
  color: var(--ds-primary);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.cnh-tbl-copy span {
  display: block;
  font-size: 10.5px;
  color: var(--ds-text-muted);
  white-space: nowrap;
}

.cnh-tbl-cat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.cnh-tbl-cat small {
  font-size: 10.5px;
  color: var(--ds-text-muted);
  white-space: nowrap;
}

.cnh-tbl-venc {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  white-space: nowrap;
}

.cnh-tbl-venc strong {
  font-size: 12px;
  color: var(--ds-primary);
}

.cnh-tbl-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--ds-secondary);
  max-width: 170px;
  line-height: 1.25;
}

@media (max-width: 820px) {
  .cnh-polar-layout {
    grid-template-columns: 1fr;
  }

  .cps-legend-grid {
    grid-template-columns: 1fr;
  }

  .ind-bench-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .ibr-val {
    text-align: left;
    display: flex;
    gap: 10px;
    align-items: baseline;
  }
}

/* ==========================================================================
   MODERN WEB GUIDANCE ENHANCEMENTS
   View Transitions, scroll-driven progress & depth shadows, @starting-style,
   auto-sizing forms, @container card layout, :has() active affordances & a11y
   ========================================================================== */

::selection {
  background-color: #203A6D;
  color: #FFFFFF;
}

.app-content h1:focus,
.pgx-banner h2:focus {
  outline: none;
}

.ds-modal-backdrop,
.aqua-popup-backdrop,
.ds-modal,
.aqua-popup-body,
.detail-modal-body,
.acp-results {
  overscroll-behavior: contain;
}

.page-intro h2,
.ds-card h3,
.aqua-popup-title,
.eqv2-title,
.iic-title,
.login-hero h2 {
  text-wrap: balance;
}

.page-intro p,
.aqua-dialog-msg,
.aqua-popup-sub,
.pgx-banner-copy p {
  text-wrap: pretty;
}

:is(.ds-input, .ds-select, .ds-textarea):not([type="range"]):not([type="search"]):user-invalid {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

:is(.ds-input, .ds-select, .ds-textarea):not([type="range"]):not([type="search"]):required:user-valid {
  border-color: #059669;
}

.ds-table td,
.ds-table th,
.ds-badge,
.pgx-kpi-val,
.pgx-kpi-num,
.ind-score-num,
.ind-kpi-val,
.ibr-val,
.cnh-days-pill,
.eqv2-code {
  font-variant-numeric: tabular-nums;
}

/* Auto-growing textareas as user types */
@supports (field-sizing: content) {
  .ds-textarea {
    field-sizing: content;
    width: 100%;
    height: auto;
    min-block-size: 3lh;
    max-block-size: 12lh;
  }
}

/* Container-aware cards so compact metadata never collides */
@supports (container-type: inline-size) {

  .eqv2-card,
  .cnh-card,
  .fg-bay {
    container-type: inline-size;
  }

  @container (max-width: 280px) {
    .eqv2-compact-meta {
      grid-template-columns: minmax(0, 1fr);
      gap: 6px;
    }
  }
}

/* Declarative parent highlight with :has() when editing rows inline */
@supports selector(:has(*)) {
  .ds-table tbody tr:has(:is(input, select, textarea):focus-visible) td {
    background: #EFF6FF;
  }

  .ds-table tbody tr:has(:is(input, select, textarea):focus-visible) td:first-child {
    box-shadow: inset 3px 0 0 #203A6D;
  }

  .filter-panel .fp-cell:has(:is(input, select):focus-visible)>label {
    color: var(--ds-primary);
  }
}

/* Top scroll progress bar & sticky elevation inside .app-topbar */
.app-topbar {
  transition: box-shadow 0.22s ease, background-color 0.22s ease;
}

.app-topbar.is-scrolled {
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 10px 26px rgba(13, 28, 56, 0.09);
}

.mwg-scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, #203A6D 0%, #0EA5E9 52%, #C75B28 100%);
  transform-origin: 0 50%;
  transform: scaleX(var(--mwg-scroll, 0));
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.2s ease;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    @keyframes mwgGrowProgress {
      from {
        transform: scaleX(0);
      }

      to {
        transform: scaleX(1);
      }
    }

    .mwg-scroll-progress {
      animation: mwgGrowProgress auto linear;
      animation-timeline: scroll(root);
    }
  }
}

/* Floating Voltar ao Topo control + smart toast spacing via :has() */
.mwg-back-top {
  position: fixed;
  right: 24px;
  bottom: 22px;
  z-index: 58;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, #0D1C38 0%, #203A6D 100%);
  color: #FFFFFF;
  font-family: var(--ds-font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 10px 24px rgba(13, 28, 56, 0.26);
  cursor: pointer;
  opacity: 0;
  translate: 0 14px;
  pointer-events: none;
  transition: opacity 0.2s ease, translate 0.22s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.18s ease, transform 0.14s ease;
}

.mwg-back-top.is-visible {
  opacity: 1;
  translate: 0 0;
  pointer-events: auto;
}

.mwg-back-top:hover {
  background: linear-gradient(135deg, #172D55 0%, #294A88 100%);
  transform: translateY(-2px);
}

.mwg-back-top:active {
  transform: translateY(0) scale(0.97);
}

@supports selector(:has(*)) {
  body:has(#mwg-back-to-top.is-visible) .ds-toast-wrap {
    bottom: 72px;
  }
}

/* Universal tactile micro-interactions */
.ds-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.985);
}

.ds-card,
.pgx-kpi,
.eqv2-card,
.cnh-card,
.fg-bay {
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ds-card:hover {
  box-shadow: var(--ds-shadow-sm);
}

.ds-subtab {
  position: relative;
  transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.14s ease;
}

.ds-subtab.is-active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #203A6D 0%, #C75B28 100%);
}

/* Cross-browser stage transition fallback (Firefox / browsers without View Transitions) */
@keyframes mwgStageFallbackIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-content.is-stage-entering {
  animation: mwgStageFallbackIn 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .app-content.is-stage-entering {
    animation: none;
  }
}

/* View Transitions for smooth module & tab switches */
@supports (view-transition-name: none) {
  .app-shell>.app-sidebar {
    view-transition-name: aqua-sidebar;
  }

  .app-shell>.app-main>.app-topbar {
    view-transition-name: aqua-topbar;
  }

  .app-shell>.app-main>.app-content {
    view-transition-name: aqua-stage;
  }

  ::view-transition-old(aqua-sidebar),
  ::view-transition-new(aqua-sidebar),
  ::view-transition-old(aqua-topbar),
  ::view-transition-new(aqua-topbar) {
    animation: none;
    mix-blend-mode: normal;
  }

  @keyframes mwgStageOut {
    from {
      opacity: 1;
      translate: 0 0;
    }

    to {
      opacity: 0;
      translate: 0 -6px;
    }
  }

  @keyframes mwgStageIn {
    from {
      opacity: 0;
      translate: 0 10px;
    }

    to {
      opacity: 1;
      translate: 0 0;
    }
  }

  ::view-transition-old(aqua-stage) {
    animation: 0.14s ease-out both mwgStageOut;
  }

  ::view-transition-new(aqua-stage) {
    animation: 0.22s cubic-bezier(0.22, 1, 0.36, 1) both mwgStageIn;
  }

  @media (prefers-reduced-motion: reduce) {

    ::view-transition-old(aqua-stage),
    ::view-transition-new(aqua-stage) {
      animation: none;
    }
  }
}

/* Smooth entry/exit animations for dialogs, popups & toasts via @starting-style */
.ds-modal,
.aqua-popup,
#cmd-palette-dialog,
.ds-toast {
  transition:
    opacity 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    translate 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    scale 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  transition-behavior: allow-discrete;
}

.ds-toast.is-leaving {
  opacity: 0;
  translate: 0 -8px;
  scale: 0.97;
}

@starting-style {

  .ds-modal,
  .aqua-popup,
  #cmd-palette-dialog,
  .ds-toast {
    opacity: 0;
    translate: 0 12px;
    scale: 0.985;
  }

  .ds-modal-backdrop,
  .aqua-popup-backdrop {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {

  .ds-modal,
  .aqua-popup,
  #cmd-palette-dialog,
  .ds-toast {
    transition-duration: 0.08s;
  }

  @starting-style {

    .ds-modal,
    .aqua-popup,
    #cmd-palette-dialog,
    .ds-toast {
      translate: none;
      scale: 1;
    }
  }
}

/* Accessible high-contrast scrollbars */
.ds-table-wrap,
.aqua-popup-body,
.detail-modal-body,
.acp-results {
  scrollbar-color: #475569 #E2E8F0;
}

.aqua-popup-body,
.detail-modal-body,
.acp-results {
  scrollbar-gutter: stable;
}

@supports not (scrollbar-color: auto) {

  .ds-table-wrap::-webkit-scrollbar,
  .aqua-popup-body::-webkit-scrollbar,
  .detail-modal-body::-webkit-scrollbar,
  .acp-results::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }

  .ds-table-wrap::-webkit-scrollbar-track,
  .aqua-popup-body::-webkit-scrollbar-track,
  .detail-modal-body::-webkit-scrollbar-track,
  .acp-results::-webkit-scrollbar-track {
    background: #E2E8F0;
  }

  .ds-table-wrap::-webkit-scrollbar-thumb,
  .aqua-popup-body::-webkit-scrollbar-thumb,
  .detail-modal-body::-webkit-scrollbar-thumb,
  .acp-results::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 999px;
    border: 2px solid #E2E8F0;
  }
}

/* Scrollability edge depth shadows when scrollers have hidden overflow */
@supports (container-type: scroll-state) {

  .ds-table-wrap,
  .aqua-popup-body,
  .detail-modal-body {
    container-type: scroll-state;
  }

  .ds-table-wrap::after,
  .aqua-popup-body::before,
  .aqua-popup-body::after,
  .detail-modal-body::before,
  .detail-modal-body::after {
    content: "";
    display: block;
    position: sticky;
    block-size: 0.75rem;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .aqua-popup-body::before,
  .detail-modal-body::before {
    inset-block-start: 0;
    margin-block-end: -0.75rem;
    background: radial-gradient(farthest-side at 50% 0, rgba(13, 28, 56, 0.16), transparent);
  }

  .ds-table-wrap::after,
  .aqua-popup-body::after,
  .detail-modal-body::after {
    inset-block-end: 0;
    margin-block-start: -0.75rem;
    background: radial-gradient(farthest-side at 50% 100%, rgba(13, 28, 56, 0.16), transparent);
  }

  @container scroll-state(scrollable: block-start) {

    .aqua-popup-body::before,
    .detail-modal-body::before {
      opacity: 1;
    }
  }

  @container scroll-state(scrollable: block-end) {

    .ds-table-wrap::after,
    .aqua-popup-body::after,
    .detail-modal-body::after {
      opacity: 1;
    }
  }
}

/* Cross-browser scroll depth hints (works identically in Firefox & Chromium) */
.ds-table-wrap[data-scroll-bottom="1"][data-scroll-right="1"] {
  box-shadow: inset 0 -10px 10px -10px rgba(13, 28, 56, 0.2), inset -14px 0 12px -12px rgba(13, 28, 56, 0.22);
}

.ds-table-wrap[data-scroll-bottom="1"]:not([data-scroll-right="1"]) {
  box-shadow: inset 0 -10px 10px -10px rgba(13, 28, 56, 0.2);
}

.ds-table-wrap[data-scroll-right="1"]:not([data-scroll-bottom="1"]) {
  box-shadow: inset -14px 0 12px -12px rgba(13, 28, 56, 0.22);
}

/* Deferred off-screen rendering for dense card lists */
@supports (content-visibility: auto) {

  .a4-card,
  .eqv2-card,
  .fg-bay,
  .ind-indicator-card,
  .cnh-card {
    content-visibility: auto;
    contain-intrinsic-size: auto 190px;
  }
}

/* ==========================================================================
   MODERN WEB GUIDANCE · PACOTE 1, 3, 4, 5 & 6 (CROSS-BROWSER: FIREFOX, EDGE, CHROME)
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 1. Multi-column sortable tables */
.ds-table th:has(> .mwg-sort-btn) {
  padding: 0;
}

.mwg-sort-btn {
  width: 100%;
  min-block-size: 38px;
  padding: 9px 10px;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.mwg-sort-btn:hover {
  background: rgba(32, 58, 109, 0.07);
  color: var(--ds-primary-hover);
}

.mwg-sort-btn:focus-visible {
  outline: 2px solid var(--ds-primary);
  outline-offset: -2px;
  border-radius: 4px;
}

.mwg-sort-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1;
  color: #94A3B8;
  flex-shrink: 0;
}

.mwg-sort-ico::before {
  content: "⇅";
}

th[aria-sort="ascending"] .mwg-sort-btn,
th[aria-sort="descending"] .mwg-sort-btn {
  color: var(--ds-primary);
  background: rgba(32, 58, 109, 0.05);
}

th[aria-sort="ascending"] .mwg-sort-ico::before {
  content: "▲";
  color: #C75B28;
}

th[aria-sort="descending"] .mwg-sort-ico::before {
  content: "▼";
  color: #C75B28;
}

/* 3. Search highlight ranges + cross-browser hit cues */
::highlight(aqua-search-match) {
  background-color: #FDE68A;
  color: #0D1C38;
}

tr.mwg-search-hit td:first-child {
  box-shadow: inset 3px 0 0 #D97706;
}

tr.mwg-search-hit td {
  background: #FFFBEB;
}

:is(.eqv2-card, .cnh-card, .fg-bay, .ind-indicator-card).mwg-search-hit {
  border-color: #D97706;
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.18), var(--ds-shadow-xs);
}

/* 4. Native <details> accordions with cross-browser stability */
details.mwg-details {
  flex-shrink: 0;
  border: 1px solid var(--ds-border);
  border-radius: 12px;
  background: #FFFFFF;
  overflow: visible;
}

details.mwg-details>summary {
  padding: 11px 14px;
  min-height: 44px;
  box-sizing: border-box;
  line-height: 1.35;
  background: var(--ds-surface-subtle);
  color: var(--ds-primary);
  font-family: var(--ds-font-display);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  list-style: none;
  user-select: none;
  border-radius: 11px;
  transition: background-color 0.16s ease;
}

details.mwg-details[open]>summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

details.mwg-details>summary:hover {
  background: #EDF2F7;
}

details.mwg-details>summary:focus-visible {
  outline: 2px solid var(--ds-primary);
  outline-offset: -2px;
}

details.mwg-details>summary::-webkit-details-marker,
details.mwg-details>summary::marker {
  content: "";
  display: none;
}

details.mwg-details>summary::after {
  content: "▾";
  font-size: 13px;
  color: var(--ds-secondary);
  transition: transform 0.2s ease;
}

details.mwg-details[open]>summary::after {
  transform: rotate(180deg);
}

.mwg-details-body {
  padding: 12px 14px;
  border-top: 1px solid var(--ds-border-soft);
  border-bottom-left-radius: 11px;
  border-bottom-right-radius: 11px;
}

.mwg-details-body.iic-memory {
  border: none;
  border-top: 1px solid var(--ds-border-soft);
  border-radius: 0 0 11px 11px;
}

/* 5. Accessible form validation feedback */
.mwg-field-err {
  display: none;
  font-size: 11px;
  font-weight: 600;
  color: #DC2626;
  margin-top: 4px;
}

div:has(> :is(input, select, textarea):user-invalid)>.mwg-field-err,
[data-field-invalid="1"]+.mwg-field-err,
[aria-invalid="true"]+.mwg-field-err {
  display: block;
}

.mwg-form-status {
  font-size: 11.5px;
  font-weight: 600;
  color: #B91C1C;
  min-height: 16px;
}

.mwg-form-status:empty {
  display: none;
}

/* 6. Crisp vector SVG circular progress gauges */
.mwg-ring-wrap {
  position: relative;
  inline-size: var(--ring-size, 46px);
  block-size: var(--ring-size, 46px);
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
}

.mwg-ring-wrap.is-dark,
.pgx-banner .mwg-ring-wrap {
  background: rgba(13, 28, 56, 0.35);
}

.mwg-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}

.mwg-ring-track {
  stroke: rgba(15, 23, 42, 0.09);
}

.mwg-ring-wrap.is-dark .mwg-ring-track,
.pgx-banner .mwg-ring-track {
  stroke: rgba(255, 255, 255, 0.16);
}

.mwg-ring-arc {
  stroke: var(--ring-color, #203A6D);
  transition: stroke-dashoffset 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.mwg-ring-wrap.is-dark .mwg-ring-arc,
.pgx-banner .mwg-ring-arc {
  filter: drop-shadow(0 0 3px color-mix(in srgb, var(--ring-color, #34D399) 55%, transparent));
}

.mwg-ring-center {
  position: relative;
  z-index: 1;
  font-family: var(--ds-font-display);
  font-size: calc(var(--ring-size, 46px) * 0.255);
  font-weight: 700;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  color: var(--ring-text, var(--ds-primary));
  line-height: 1;
  text-align: center;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5px;
}

.mwg-ring-center.is-compact-txt {
  font-size: calc(var(--ring-size, 46px) * 0.225);
}

.mwg-ring-center small {
  font-size: 0.72em;
  font-weight: 600;
  opacity: 0.75;
}

.mwg-ring-wrap.is-dark .mwg-ring-center,
.pgx-banner .mwg-ring-center {
  color: #FFFFFF;
}

.mwg-banner-ring-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 13px 5px 6px;
  border-radius: 999px;
  background: rgba(13, 28, 56, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.mwg-banner-ring-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.mwg-banner-ring-meta strong {
  font-size: 11.5px;
  color: #FFFFFF;
}

.mwg-banner-ring-meta span {
  font-size: 10px;
  color: #F1E8C4;
  font-weight: 600;
}

.mwg-metric-ring-row,
.ind-scope-kpi.mwg-metric-ring-row,
.ind-dash-metric-tile.mwg-metric-ring-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mwg-metric-ring-row>div:first-child {
  min-width: 0;
  flex: 1;
}

/* ==========================================================================
   VISUAL & DESIGN UPGRADES (ITEMS 1, 2, 4, 5, 6, 7 — FIREFOX, EDGE, CHROME)
   ========================================================================== */

/* V1. Soft Edge Content Fade for scrollable feeds & results */
.mwg-soft-fade-y {
  padding-bottom: 18px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 84%, transparent 100%);
}

.acp-results {
  padding-bottom: 16px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 90%, transparent 100%);
}

/* V2. Architectural surface texture, layered elevation & unmistakable hero craft */
.pgx-banner {
  border-bottom: 3px solid #C75B28;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 14px 32px rgba(13, 28, 56, 0.16);
}

.pgx-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.22) 1.25px, transparent 1.25px),
    repeating-linear-gradient(-32deg, rgba(241, 232, 196, 0.10) 0 1px, transparent 1px 22px);
  background-size: 20px 20px, auto;
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 86% 24%, #000 0%, rgba(0, 0, 0, 0.65) 52%, transparent 86%);
  mask-image: radial-gradient(ellipse 80% 100% at 86% 24%, #000 0%, rgba(0, 0, 0, 0.65) 52%, transparent 86%);
}

.login-visual-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(241, 232, 196, 0.22) 1.3px, transparent 1.3px),
    linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px, 48px 48px, 48px 48px;
  -webkit-mask-image: radial-gradient(circle at 24% 24%, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 78%);
  mask-image: radial-gradient(circle at 24% 24%, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 78%);
}

.ind-dash-card.is-gestao {
  border: 1.5px solid #B8C8DC;
  border-left: 5px solid var(--ds-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 8px 22px rgba(13, 28, 56, 0.09);
}

/* Executive layered KPI tiles, Page Intro & Data Table visual uplift */
.page-intro {
  background: linear-gradient(135deg, #FFFFFF 0%, #F7FAFE 70%, #EBF2FA 100%);
  border: 1.5px solid #B8C8DC;
  border-left: 5px solid var(--ds-primary);
  box-shadow: 0 8px 22px rgba(13, 28, 56, 0.08);
}

.source-card {
  border: 1.5px solid #B8C8DC;
  border-left: 3.5px solid #059669;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(13, 28, 56, 0.06);
}

.pgx-kpi {
  background: linear-gradient(180deg, color-mix(in srgb, var(--kpi-accent, #203A6D) 9%, #FFFFFF) 0%, #FFFFFF 52%);
  border: 1.5px solid #B6C7DC;
  border-top: 4px solid var(--kpi-accent, var(--ds-primary));
  box-shadow: 0 6px 18px rgba(13, 28, 56, 0.08), 0 1px 3px rgba(13, 28, 56, 0.05);
}

.pgx-kpi:hover {
  box-shadow: 0 14px 28px rgba(13, 28, 56, 0.13), 0 0 0 1px color-mix(in srgb, var(--kpi-accent, #203A6D) 45%, transparent);
}

.pgx-kpi-disc {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.ind-dash-metric-tile,
.ind-scope-kpi {
  background: linear-gradient(180deg, #EBF2FA 0%, #F5F9FE 100%);
  border: 1.5px solid #BCCCE0;
  border-radius: 11px;
  padding: 10px 12px;
  box-shadow: inset 0 1px 0 #FFFFFF, 0 2px 8px rgba(13, 28, 56, 0.05);
}

.ds-card,
.eqv2-card,
.fg-bay,
.ind-indicator-card {
  border: 1.5px solid #B8C8DC;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 6px 18px rgba(13, 28, 56, 0.08);
}

:is(.eqv2-card, .fg-bay, .ind-indicator-card):hover {
  box-shadow: 0 14px 28px rgba(13, 28, 56, 0.12);
  border-color: #96AECB;
}

.ds-table thead th {
  background: linear-gradient(180deg, #F8FAFC 0%, #EAEFF6 100%);
}

.ds-table tbody tr:nth-child(even) td {
  background: #F9FBFD;
}

.ds-table tbody tr:hover td {
  background: #EFF5FC;
}

.mwg-sort-ico {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(148, 163, 184, 0.18);
  color: #475569;
  font-size: 9.5px;
}

th[aria-sort] .mwg-sort-ico {
  background: rgba(199, 91, 40, 0.14);
}

details.mwg-details[open] {
  border-left: 4px solid var(--ds-primary);
  box-shadow: 0 6px 18px rgba(13, 28, 56, 0.05);
}

details.mwg-details>summary::after {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #E2E8F0;
  color: var(--ds-primary);
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

details.mwg-details[open]>summary::after {
  background: var(--ds-primary);
  color: #FFFFFF;
}

/* V4. Fluid scaling with cqi + clamp() relative to card container width */
@supports (container-type: inline-size) {

  .pgx-kpi,
  .ind-indicator-card {
    container-type: inline-size;
  }

  .pgx-kpi {
    padding: clamp(12px, 4.8cqi, 17px) clamp(13px, 5.2cqi, 18px);
  }

  .pgx-kpi-num {
    font-size: clamp(23px, 11.5cqi, 32px);
  }

  .eqv2-title,
  .iic-title {
    font-size: clamp(12.6px, 4.3cqi, 14.4px);
  }
}

/* V5. Custom optical text decorations & dotted technical acronyms */
:where(.aac-chip-cta, .iic-source-row a, .mwg-link) {
  text-decoration: underline solid color-mix(in srgb, currentColor 42%, transparent) max(1px, 0.08em);
  text-underline-offset: 0.22em;
  text-decoration-skip-ink: auto;
  transition: text-decoration-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

:where(.aac-chip-cta, .iic-source-row a, .mwg-link):is(:hover, :focus-visible) {
  text-decoration-color: currentColor;
  text-decoration-thickness: max(1px, 0.12em);
}

abbr[title],
.mwg-abbr {
  text-decoration: underline dotted color-mix(in srgb, currentColor 55%, transparent) max(1px, 0.08em);
  text-underline-offset: 0.24em;
  cursor: help;
}

/* V6. Compact shrinking topbar on scroll */
.app-topbar {
  transition: padding 0.2s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.app-topbar.is-scrolled {
  padding-top: 8px;
  padding-bottom: 8px;
}

.app-topbar .tk-kicker {
  transition: opacity 0.2s ease, font-size 0.2s ease;
}

.app-topbar.is-scrolled .tk-kicker {
  font-size: 9.5px;
  opacity: 0.86;
}

/* V7. WCAG 1.4.11 Non-text Contrast borders on semantic badges & Forced Colors Mode */
.ds-badge-danger,
.ds-badge-warning,
.ds-badge-success,
.ds-badge-info {
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
}

@media (forced-colors: active) {

  .ds-card,
  .pgx-kpi,
  .eqv2-card,
  .cnh-card,
  .fg-bay,
  .ind-indicator-card,
  .aqua-popup,
  .ds-modal,
  .ds-badge,
  details.mwg-details,
  .mwg-back-top {
    border: 1px solid CanvasText;
  }

  .ds-subtab.is-active,
  .sidebar-nav-btn.is-active {
    outline: 2px solid Highlight;
    outline-offset: -2px;
  }

  :is(a, button, input, select, textarea, summary):focus-visible {
    outline: 2px solid Highlight;
    outline-offset: 2px;
  }
}

/* ==================== CONTRATOS E CAPEX (.ccx-*) ==================== */
.ccx-module .ds-card {
  padding: 12px 14px;
}

.ccx-module .ds-card h3 {
  font-size: 14px;
  margin: 0;
}

.ccx-module .ds-table th {
  padding: 7px 8px;
  font-size: 10px;
}

.ccx-module .ds-table td {
  padding: 6px 8px;
  font-size: 11.5px;
}

.ccx-module .ds-input-compact,
.ccx-module .ds-select-compact {
  height: 27px;
  font-size: 11.5px;
  padding: 2px 6px;
}

.ccx-module .ds-badge {
  font-size: 10px;
  padding: 2px 6px;
}

.ccx-banner {
  padding: 14px 18px;
  margin-bottom: 10px;
  align-items: center;
}

.ccx-banner .pgx-banner-copy {
  flex: 1 1 320px;
  max-width: 680px;
}

.ccx-banner .pgx-banner-copy h2 {
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-shadow: 0 1px 2px rgba(8, 19, 41, 0.25);
}

.ccx-banner .pgx-banner-copy p {
  font-size: 11.5px;
  margin-top: 4px;
}

.ccx-hero-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.ccx-hero-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px 0 6px;
  border-radius: 999px;
  font-family: var(--ds-font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
  text-decoration: none;
  white-space: nowrap;
}

.ccx-hero-btn:focus-visible {
  outline: 2px solid var(--ds-sand);
  outline-offset: 2px;
}

.ccx-hero-btn-ico {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.16s ease, background-color 0.16s ease;
}

.ccx-hero-btn.is-primary {
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F7FC 100%);
  color: #132852;
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 14px rgba(7, 16, 36, 0.28), inset 0 -1px 0 rgba(32, 58, 109, 0.12);
}

.ccx-hero-btn.is-primary .ccx-hero-btn-ico {
  background: #FFF0E8;
  color: #C75B28;
}

.ccx-hero-btn.is-primary:hover {
  transform: translateY(-1px);
  background: #FFF9EE;
  box-shadow: 0 8px 18px rgba(7, 16, 36, 0.36);
}

.ccx-hero-btn.is-primary:hover .ccx-hero-btn-ico {
  background: #C75B28;
  color: #FFFFFF;
}

.ccx-hero-btn.is-secondary {
  background: rgba(11, 24, 49, 0.56);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 10px rgba(7, 16, 36, 0.2);
}

.ccx-hero-btn.is-secondary .ccx-hero-btn-ico {
  background: rgba(255, 255, 255, 0.16);
  color: #F1E8C4;
}

.ccx-hero-btn.is-secondary:hover {
  transform: translateY(-1px);
  background: rgba(15, 33, 66, 0.78);
  border-color: rgba(241, 232, 196, 0.62);
}

.ccx-subtabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: #EDF2F8;
  border: 1px solid var(--ds-border);
  margin-bottom: 10px;
}

.ccx-subtab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ds-secondary);
  padding: 5px 10px;
  border-radius: 7px;
  font-family: var(--ds-font-display);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.ccx-subtab:hover {
  color: var(--ds-primary);
  background: rgba(255, 255, 255, 0.6);
}

.ccx-subtab.is-active {
  background: #FFFFFF;
  color: var(--ds-primary);
  border-color: var(--ds-border);
  box-shadow: 0 2px 6px rgba(16, 33, 63, 0.09);
}

.ccx-tab-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  background: rgba(32, 58, 109, 0.1);
  color: var(--ds-primary);
  font-variant-numeric: tabular-nums;
}

.ccx-subtab.is-active .ccx-tab-pill {
  background: var(--ds-primary);
  color: #FFFFFF;
}

.ccx-tbl-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.ccx-tbl-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-family: var(--ds-font-display);
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--ds-border);
  background: #FFFFFF;
  color: var(--ds-primary);
  transition: transform 0.14s ease, background-color 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
  white-space: nowrap;
}

.ccx-tbl-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(16, 33, 63, 0.12);
}

.ccx-tbl-btn.is-bm {
  background: #FFF2EC;
  border-color: rgba(199, 91, 40, 0.38);
  color: #A64317;
}

.ccx-tbl-btn.is-bm:hover {
  background: #C75B28;
  border-color: #C75B28;
  color: #FFFFFF;
}

.ccx-tbl-btn.is-aditivo {
  background: #EDF3FB;
  border-color: rgba(32, 58, 109, 0.28);
  color: #203A6D;
}

.ccx-tbl-btn.is-aditivo:hover {
  background: #203A6D;
  border-color: #203A6D;
  color: #FFFFFF;
}

.ccx-tbl-btn.is-lpu:hover {
  background: var(--ds-surface-subtle);
  border-color: var(--ds-primary);
}

.ccx-tbl-btn.is-danger {
  background: #FEF2F2;
  border-color: rgba(185, 28, 28, 0.28);
  color: #B91C1C;
}

.ccx-tbl-btn.is-danger:hover {
  background: #B91C1C;
  border-color: #B91C1C;
  color: #FFFFFF;
}

.ccx-frente-btn {
  padding: 7px 10px;
  text-align: left;
  cursor: pointer;
  border-radius: 9px;
  border: 1px solid var(--ds-border);
  background: var(--ds-surface);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.ccx-frente-btn:hover {
  transform: translateY(-1px);
  border-color: var(--ds-primary);
  box-shadow: var(--ds-shadow-sm);
}

.ccx-banner-rings {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ccx-ring-tile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(11, 24, 49, 0.36);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.ccx-ring-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ccx-ring-meta strong {
  font-size: 11.5px;
  color: #FFFFFF;
}

.ccx-ring-meta span {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.78);
}

.ccx-kpi-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.ccx-kpi-card {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: 10px;
  padding: 9px 11px;
  box-shadow: var(--ds-shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ccx-kpi-card.is-accent {
  border-left: 3px solid var(--ds-accent);
}

.ccx-kpi-card.is-navy {
  border-left: 3px solid var(--ds-primary);
}

.ccx-kpi-card.is-teal {
  border-left: 3px solid var(--ds-teal);
}

.ccx-kpi-card.is-danger {
  border-left: 3px solid var(--ds-danger);
}

.ccx-kpi-card.is-warn {
  border-left: 3px solid var(--ds-warning);
}

.ccx-kpi-lbl {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ds-text-muted);
}

.ccx-kpi-val {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--ds-primary);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.ccx-kpi-sub {
  font-size: 10px;
  color: var(--ds-text-muted);
  line-height: 1.25;
}

.ccx-nat-row {
  display: grid;
  grid-template-columns: minmax(130px, 165px) 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--ds-border-soft);
}

.ccx-nat-row:last-child {
  border-bottom: none;
}

.ccx-nat-name {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ds-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ccx-nat-track {
  position: relative;
  height: 9px;
  border-radius: 999px;
  background: var(--ds-surface-subtle);
  border: 1px solid var(--ds-border-soft);
  overflow: hidden;
}

.ccx-nat-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ds-primary), #3B60A2);
}

.ccx-nat-medido {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--ds-accent);
  border-radius: 999px;
}

.ccx-nat-val {
  font-size: 11px;
  font-weight: 700;
  color: var(--ds-text);
  font-variant-numeric: tabular-nums;
  text-align: right;
  min-width: 78px;
}

.ccx-alert-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 8px;
}

.ccx-alert-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid var(--ds-border);
  background: var(--ds-surface);
  text-align: left;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.ccx-alert-item:hover {
  transform: translateY(-1px);
  border-color: var(--ds-primary);
  box-shadow: var(--ds-shadow-sm);
}

.ccx-alert-item.is-warning {
  border-left: 3px solid #D97706;
}

.ccx-alert-item.is-danger {
  border-left: 3px solid var(--ds-accent);
}

.ccx-alert-item.is-info {
  border-left: 3px solid var(--ds-primary);
}

.ccx-alert-item.is-success {
  border-left: 3px solid var(--ds-teal);
}

.ccx-gantt-cell {
  min-width: 155px;
}

.ccx-gantt-track {
  position: relative;
  height: 14px;
  background: var(--ds-surface-subtle);
  border: 1px solid var(--ds-border-soft);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 3px;
}

.ccx-gantt-base {
  position: absolute;
  top: 2px;
  height: 4px;
  border-radius: 3px;
  background: #94A3B8;
}

.ccx-gantt-tend {
  position: absolute;
  bottom: 2px;
  height: 4px;
  border-radius: 3px;
  background: var(--ds-primary);
}

.ccx-gantt-tend.is-late {
  background: var(--ds-accent);
}

.ccx-gantt-tend.is-done {
  background: var(--ds-teal);
}

.ccx-pill-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.ccx-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--ds-border);
  background: var(--ds-surface);
  color: var(--ds-text);
  font-family: var(--ds-font-display);
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 33, 63, 0.04);
  transition: transform 0.14s ease, border-color 0.14s ease, background-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.ccx-filter-chip:hover {
  transform: translateY(-1px);
  border-color: var(--ds-primary);
  color: var(--ds-primary);
  box-shadow: 0 3px 8px rgba(16, 33, 63, 0.1);
}

.ccx-filter-chip.is-active {
  background: var(--ds-primary);
  border-color: var(--ds-primary);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(32, 58, 109, 0.22);
}

.ccx-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--ds-border-soft);
}

.ccx-pratic-meter {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 9px;
  background: var(--ds-surface-subtle);
  border: 1px solid var(--ds-border);
}

@media (max-width: 1220px) {
  .ccx-kpi-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ccx-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ccx-nat-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .ccx-nat-val {
    text-align: left;
  }
}


/* ==========================================================================
   INDICADORES: COMPETÊNCIA SELECTOR, SAMPLING BLOCK ALERT, IRC PILL & MODERATION PAGER
   ========================================================================== */

.ind-comp-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  margin-bottom: 14px;
}

.ind-comp-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ds-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ind-comp-select {
  min-width: 190px;
  max-width: 240px;
  font-weight: 600;
}

.ind-comp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ind-sampling-alert {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #B91C1C;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.ind-sampling-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--ds-border-soft);
}

.ind-irc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ds-teal-soft);
  border: 1px solid rgba(15, 118, 110, 0.28);
  color: var(--ds-teal);
  font-size: 11.5px;
  font-weight: 700;
}

.ind-irc-pill strong {
  color: var(--ds-primary);
  font-weight: 800;
}

.ind-irc-pill.is-tarifario {
  background: var(--ds-primary-soft);
  border-color: rgba(32, 58, 109, 0.28);
  color: var(--ds-primary);
}

.ind-sim-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ds-surface-subtle);
  border: 1px solid var(--ds-border);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ds-primary);
  cursor: pointer;
}

.ind-sim-toggle input {
  margin: 0;
  accent-color: var(--ds-primary);
}

.ind-caducidade-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FFFDF5 0%, #FEF6D8 100%);
  border: 1px solid rgba(217, 119, 6, 0.38);
  border-left: 4px solid #D97706;
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.08);
  color: #78350F;
  margin-bottom: 12px;
}

.ind-caducidade-alert.is-critico {
  background: linear-gradient(135deg, #FFF8F8 0%, #FEE2E2 100%);
  border-color: rgba(220, 38, 38, 0.40);
  border-left-color: #DC2626;
  box-shadow: 0 4px 14px rgba(185, 28, 28, 0.10);
  color: #7F1D1D;
}

.ind-caducidade-alert .ica-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(217, 119, 6, 0.15);
  border: 1px solid rgba(217, 119, 6, 0.28);
  color: #B45309;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ind-caducidade-alert.is-critico .ica-icon {
  background: rgba(220, 38, 38, 0.15);
  border-color: rgba(220, 38, 38, 0.30);
  color: #B91C1C;
}

.ind-caducidade-alert .ica-body {
  min-width: 240px;
  flex: 1 1 380px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ind-caducidade-alert .ica-head-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ind-caducidade-alert .ica-kicker {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.16);
  color: #92400E;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ind-caducidade-alert.is-critico .ica-kicker {
  background: rgba(220, 38, 38, 0.16);
  color: #991B1B;
}

.ind-caducidade-alert .ica-title {
  font-family: var(--ds-font-display);
  font-size: 13px;
  font-weight: 800;
  color: inherit;
}

.ind-caducidade-alert .ica-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.48;
  color: inherit;
  opacity: 0.94;
}

.ind-caducidade-alert .ica-desc strong {
  display: inline;
  font-weight: 700;
}

.ind-caducidade-alert .ica-desc code {
  font-family: var(--ds-font-mono);
  font-size: 11px;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(120, 53, 15, 0.10);
}

.ind-caducidade-alert .ica-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.ind-caducidade-alert .ica-metric-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 5px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(217, 119, 6, 0.28);
  line-height: 1.2;
}

.ind-caducidade-alert.is-critico .ica-metric-pill {
  border-color: rgba(220, 38, 38, 0.28);
}

.ind-caducidade-alert .ica-metric-pill small {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.78;
}

.ind-caducidade-alert .ica-metric-pill strong {
  font-family: var(--ds-font-display);
  font-size: 14.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.ind-caducidade-alert .ica-metric-pill span {
  font-size: 10px;
  font-weight: 600;
  opacity: 0.85;
}

.ind-caducidade-alert .ica-hist-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  background: #FFFFFF;
  color: #92400E;
  border: 1px solid rgba(217, 119, 6, 0.42);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(120, 53, 15, 0.08);
  transition: background-color 0.14s ease, border-color 0.14s ease, transform 0.12s ease;
}

.ind-caducidade-alert .ica-hist-btn:hover {
  background: #92400E;
  color: #FFFFFF;
  border-color: #92400E;
}

.ind-caducidade-alert.is-critico .ica-hist-btn {
  color: #991B1B;
  border-color: rgba(220, 38, 38, 0.42);
}

.ind-caducidade-alert.is-critico .ica-hist-btn:hover {
  background: #991B1B;
  color: #FFFFFF;
  border-color: #991B1B;
}

.iic-contract-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 4px 0 6px;
}

.icf-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid transparent;
}

.icf-pill.is-warn {
  background: #FEF3C7;
  color: #92400E;
  border-color: #F59E0B;
}

.icf-pill.is-info {
  background: #E0F2FE;
  color: #075985;
  border-color: #7DD3FC;
}

.icf-pill.is-primary {
  background: var(--ds-primary-soft);
  color: var(--ds-primary);
  border-color: rgba(32, 58, 109, 0.24);
}

.ind-gov-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.igc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.igc-head h4 {
  font-size: 14.5px;
  color: var(--ds-primary);
  margin: 6px 0 0;
}

.igc-desc {
  margin: 0;
  font-size: 12px;
  color: var(--ds-text-muted);
  line-height: 1.45;
}

.igc-vuln-meter {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--ds-surface-subtle);
  border: 1px solid var(--ds-border-soft);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ivm-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--ds-text-muted);
}

.ivm-labels strong {
  color: var(--ds-primary);
}

.ivm-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #FDE68A 0%, #A7F3D0 15%, #A7F3D0 85%, #FDE68A 100%);
  border: 1px solid var(--ds-border);
}

.ivm-marker {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--ds-primary);
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(16, 33, 63, 0.3);
  transform: translate(-50%, -50%);
}

.ivm-status {
  font-size: 11.5px;
  font-weight: 700;
}

.ivm-status.is-ok {
  color: #047857;
}

.ivm-status.is-warn {
  color: #B45309;
}

.igc-form-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.igc-irc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.igc-irc-grid label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--ds-text-muted);
  margin-bottom: 2px;
}

.igc-rito-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 4px;
}

.igc-rito-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid var(--ds-border-soft);
  background: var(--ds-surface-subtle);
  font-size: 12px;
  cursor: pointer;
}

.igc-rito-item.is-done {
  background: #ECFDF5;
  border-color: #A7F3D0;
}

.igc-rito-item input {
  margin-top: 2px;
  accent-color: var(--ds-teal);
}

.mod-logs-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 10px;
  background: var(--ds-surface-subtle);
  border: 1px solid var(--ds-border-soft);
}

.mod-logs-toolbar .mod-log-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
  flex: 1 1 140px;
}

.mod-logs-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--ds-border-soft);
  font-size: 12.5px;
  color: var(--ds-text-secondary);
}

/* ==========================================================================
   PMO EXTENSIONS · INDICADORES (STATUS / RCA / FASES), EVM, 5x5, REPORTS & DECK
   ========================================================================== */

.ind-status-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.ind-status-kpi {
  text-align: left;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--ds-border);
  background: var(--ds-surface);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.ind-status-kpi:hover,
.ind-status-kpi.is-active {
  transform: translateY(-1px);
  box-shadow: var(--ds-shadow-sm);
  border-color: var(--ds-primary);
}

.ind-status-kpi.is-ok {
  border-left: 4px solid var(--ds-success);
}

.ind-status-kpi.is-warn {
  border-left: 4px solid var(--ds-warning);
}

.ind-status-kpi.is-bad {
  border-left: 4px solid var(--ds-danger);
}

.ind-status-kpi.is-info {
  border-left: 4px solid var(--ds-info);
}

.ind-status-kpi.is-active {
  background: var(--ds-primary-soft);
}

.isk-k-lbl {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ds-text-muted);
}

.isk-k-val {
  font-size: 21px;
  font-weight: 800;
  color: var(--ds-primary);
  line-height: 1.1;
}

.ind-status-kpi small {
  font-size: 11px;
  color: var(--ds-text-muted);
}

.iic-delta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 7px;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--ds-surface-subtle);
  border: 1px solid var(--ds-border-soft);
  font-size: 11px;
  color: var(--ds-text-secondary);
}

.iic-delta-pill {
  font-style: normal;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--ds-surface-soft);
  color: var(--ds-text);
  margin-left: 3px;
}

.iic-delta-pill.is-up {
  background: var(--ds-success-soft);
  color: var(--ds-success);
}

.iic-delta-pill.is-down {
  background: var(--ds-danger-soft);
  color: var(--ds-danger);
}

.iic-evid-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ds-primary);
  font-weight: 600;
}

.iic-rca-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 7px;
  border: 1px solid rgba(185, 28, 28, 0.25);
  background: var(--ds-danger-soft);
  color: var(--ds-danger);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.iic-rca-btn:hover {
  background: #FECACA;
}

.ind-phases-box {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--ds-border);
  background: var(--ds-surface-subtle);
}

.ind-phases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ind-phase-tile {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--ds-surface);
  border: 1px solid var(--ds-border-soft);
  text-align: center;
}

.ind-phase-tile.is-active {
  border-color: var(--ds-primary);
  background: var(--ds-primary-soft);
}

.ind-phase-tile span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--ds-text-muted);
}

.ind-phase-tile strong {
  font-size: 16px;
  color: var(--ds-primary);
}

.ind-rmr-callout {
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--ds-info-soft);
  border: 1px solid rgba(35, 94, 167, 0.22);
  font-size: 11.5px;
  color: var(--ds-text-secondary);
  line-height: 1.45;
}

/* Modal de Fórmula, Memória de Cálculo & Regras de Enquadramento (.ind-mem-modal) */
.ds-modal.ind-mem-modal {
  max-width: min(780px, 100%);
  width: 100%;
}

.ind-mem-modal .detail-modal-body {
  gap: 14px;
  padding: 18px 22px 22px;
}

.ind-mem-modal .iic-values-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ind-mem-modal .iic-val-box {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 3px;
}

.ind-mem-modal .iic-val-box .ivb-label {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.25;
  font-size: 10px;
}

.ind-mem-modal .iic-val-box .ivb-num {
  font-size: 15px;
  line-height: 1.25;
}

.ind-mem-modal .iic-val-box .ivb-sub {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.3;
}

.ind-mem-modal .iic-progress-wrap {
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 10px 13px;
  border-radius: 10px;
  background: var(--ds-surface-subtle);
  border: 1px solid var(--ds-divider);
}

.ind-mem-modal .iic-progress-track {
  flex: 1 1 180px;
  height: 8px;
}

.ind-mem-modal .iic-progress-pct {
  text-align: left;
  white-space: normal;
  line-height: 1.35;
  font-size: 11.5px;
}

.ind-mem-modal .iic-memory {
  gap: 11px;
  padding: 14px 16px;
}

.ind-mem-modal .iic-formula-row>strong,
.ind-mem-modal .iic-calc-row>strong {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ds-secondary);
}

.ind-mem-modal .iic-memory code {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  font-size: 12px;
  line-height: 1.5;
  background: #FFFFFF;
  border: 1px solid var(--ds-border);
  border-left: 3px solid var(--ds-primary);
  border-radius: 8px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.ind-mem-modal .iic-mem-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ind-mem-modal .iic-mem-cell {
  background: #FFFFFF;
  border: 1px solid var(--ds-divider);
  border-radius: 8px;
  padding: 9px 11px;
  gap: 4px;
}

.ind-mem-modal .iic-source-row {
  line-height: 1.45;
  overflow-wrap: anywhere;
  padding-top: 8px;
}

.ind-mem-modal .ind-phases-box {
  padding: 12px 14px;
}

.ind-mem-modal .ind-rmr-callout {
  padding: 11px 14px;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .ind-mem-modal .iic-values-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ind-mem-modal .iic-mem-grid {
    grid-template-columns: 1fr;
  }

  .ind-mem-modal .ind-phases-grid {
    grid-template-columns: 1fr;
  }

  .ind-mem-modal .detail-modal-head,
  .ind-mem-modal .detail-modal-body {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 440px) {
  .ind-mem-modal .iic-values-strip {
    grid-template-columns: 1fr;
  }
}

.ind-rca-alert-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ds-warning-soft);
  border: 1px solid rgba(180, 83, 9, 0.25);
  font-size: 12.5px;
  color: #78350F;
  margin-bottom: 14px;
}

.ind-rca-card {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--ds-border);
  background: var(--ds-surface-subtle);
}

.ind-rca-text-box {
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--ds-surface);
  border: 1px solid var(--ds-border-soft);
}

.ind-rca-text-box.is-root {
  border-left: 3px solid var(--ds-accent);
}

.ind-rca-text-box span {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ds-text-muted);
  margin-bottom: 4px;
}

.ind-rca-text-box p {
  margin: 0;
  font-size: 12.5px;
  color: var(--ds-text);
  line-height: 1.45;
}

.ccx-evm-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.95fr);
  gap: 12px;
  align-items: center;
}

.ccx-curva-wrap {
  width: 100%;
  overflow-x: auto;
}

.ccx-curva-svg {
  width: 100%;
  min-width: 440px;
  max-height: 195px;
  height: auto;
  display: block;
}

.ccx-curva-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-size: 11px;
  color: var(--ds-text-secondary);
}

.ccx-curva-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ccx-curva-legend i {
  width: 10px;
  height: 3px;
  border-radius: 2px;
  display: inline-block;
}

.ccx-evm-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ccx-evm-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.ccx-evm-stat {
  padding: 7px 9px;
  border-radius: 9px;
  border: 1px solid var(--ds-border-soft);
  background: var(--ds-surface-subtle);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ccx-evm-stat.is-pv {
  border-left: 3px solid #0284C7;
}

.ccx-evm-stat.is-ev {
  border-left: 3px solid #0F766E;
}

.ccx-evm-stat.is-ac {
  border-left: 3px solid #C75B28;
}

.ccx-evm-stat span {
  font-size: 9.5px;
  font-weight: 800;
  color: var(--ds-text-muted);
  text-transform: uppercase;
}

.ccx-evm-stat strong {
  font-size: 14px;
  font-weight: 800;
  color: var(--ds-primary);
  font-variant-numeric: tabular-nums;
}

.ccx-evm-stat small {
  font-size: 10px;
  color: var(--ds-text-secondary);
}

.ccx-evm-indices {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ccx-evm-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--ds-warning-soft);
  border: 1px solid rgba(180, 83, 9, 0.22);
  font-size: 10.5px;
  color: #78350F;
  line-height: 1.35;
}

.ccx-pep-bar {
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: var(--ds-surface-soft);
  overflow: hidden;
  flex-shrink: 0;
}

.ccx-pep-bar>div {
  height: 100%;
  border-radius: 999px;
  background: var(--ds-teal);
}

.ccx-msp-farol-bar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 10px;
}

.ccx-farol-pill {
  padding: 6px 10px;
  border-radius: 9px;
  border: 1px solid var(--ds-border);
  background: var(--ds-surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--ds-text-secondary);
  cursor: pointer;
  transition: border-color 0.14s ease, background-color 0.14s ease, transform 0.12s ease;
}

.ccx-farol-pill:hover {
  border-color: var(--ds-primary);
  transform: translateY(-1px);
}

.ccx-farol-pill.is-active {
  border-color: var(--ds-primary);
  background: var(--ds-primary-soft);
  color: var(--ds-primary);
}

.ccx-farol-pill.is-spi {
  cursor: default;
  background: var(--ds-surface-subtle);
}

.ccx-farol-pill strong {
  font-size: 13.5px;
  color: var(--ds-primary);
  font-variant-numeric: tabular-nums;
}

.ccx-farol-lbl {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ccx-farol-ico {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ccx-farol-ico.is-total {
  background: rgba(32, 58, 109, 0.1);
  color: #203A6D;
}

.ccx-farol-ico.is-noprazo {
  background: #DCFCE7;
  color: #15803D;
}

.ccx-farol-ico.is-atencao {
  background: #FEF3C7;
  color: #B45309;
}

.ccx-farol-ico.is-atrasado {
  background: #FEE2E2;
  color: #B91C1C;
}

.ccx-farol-ico.is-concluido {
  background: #DBEAFE;
  color: #1D4ED8;
}

.ccx-gantt-today-line {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  background: var(--ds-danger);
  z-index: 3;
  pointer-events: none;
}

.ccx-gantt-mode-gantt .ccx-col-wbs {
  display: none;
}

.ccx-gantt-mode-wbs .ccx-col-gantt {
  display: none;
}

tr.is-critical-row {
  background: rgba(199, 91, 40, 0.04);
}

.mun360-card {
  border-left: 4px solid var(--ds-teal);
}

.mun360-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.mun360-kpi {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--ds-surface-subtle);
  border: 1px solid var(--ds-border-soft);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mun360-kpi span {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--ds-text-muted);
  text-transform: uppercase;
}

.mun360-kpi strong {
  font-size: 17px;
  color: var(--ds-primary);
}

.mun360-kpi small {
  font-size: 11px;
  color: var(--ds-text-secondary);
}

.pmo-bases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.pmo-base-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.pmo-base-bar-head {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  margin-bottom: 3px;
  color: var(--ds-text-secondary);
}

.pmo-base-track {
  height: 7px;
  border-radius: 999px;
  background: var(--ds-surface-soft);
  overflow: hidden;
}

.pmo-base-track>div {
  height: 100%;
  border-radius: 999px;
}

.pmo-base-items-mini {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--ds-text-muted);
}

.pmo-risk-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 14px;
  align-items: start;
}

.pmo-risk-grid-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pmo-risk-y-lbl {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 11px;
  font-weight: 700;
  color: var(--ds-text-muted);
}

.pmo-risk-matrix-5x5 {
  display: grid;
  grid-template-columns: repeat(5, 52px);
  gap: 4px;
}

.pmo-risk-cell {
  height: 52px;
  border-radius: 8px;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #0F172A;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.pmo-risk-cell.is-low {
  background: #DCFCE7;
}

.pmo-risk-cell.is-med {
  background: #FEF3C7;
}

.pmo-risk-cell.is-high {
  background: #FED7AA;
}

.pmo-risk-cell.is-crit {
  background: #FECACA;
  color: #991B1B;
}

.pmo-risk-cell.is-selected,
.pmo-risk-cell:hover {
  border-color: var(--ds-primary);
  transform: scale(1.04);
}

.prc-score {
  font-size: 9.5px;
  opacity: 0.72;
}

.prc-count {
  font-size: 15px;
  line-height: 1.1;
}

.prc-empty {
  font-size: 12px;
  opacity: 0.45;
}

.pmo-risk-x-lbl {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ds-text-muted);
  margin-top: 6px;
}

.pmo-risk-item {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--ds-border-soft);
  background: var(--ds-surface-subtle);
}

.pmo-rot-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ==================== REPORTS PERIÓDICOS (.rep-module) ==================== */
.rep-module {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rep-topbar {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.rep-topbar-left,
.rep-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rep-cutoff-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ds-primary);
  background: var(--ds-surface-subtle);
  border: 1px solid var(--ds-border);
  white-space: nowrap;
}

.rep-date-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ds-text-muted);
}

.rep-kpi-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.rep-kpi-item {
  background: #FFFFFF;
  border: 1px solid var(--ds-border);
  border-radius: 10px;
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rep-kpi-lbl {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ds-text-muted);
}

.rep-kpi-val {
  font-size: 17px;
  font-weight: 800;
  color: var(--ds-primary);
  line-height: 1.2;
}

.rep-kpi-val.is-ok {
  color: #047857;
}

.rep-kpi-val.is-warn {
  color: #B45309;
}

.rep-kpi-val.is-danger {
  color: #B91C1C;
}

.rep-polos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.rep-polos-grid.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.rep-polo-card {
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rep-polo-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ds-border-soft);
}

.rep-polo-title-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: var(--ds-primary);
}

.rep-polo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.rep-polo-proto {
  font-size: 11px;
  font-weight: 600;
  color: var(--ds-text-muted);
  margin-top: 2px;
}

.rep-polo-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.rep-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.rep-status-pill.is-sent {
  background: #DCFCE7;
  color: #166534;
}

.rep-status-pill.is-pending {
  background: #FEF3C7;
  color: #92400E;
}

.rep-polo-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.rep-metric-chip {
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--ds-surface-subtle);
  border: 1px solid var(--ds-border-soft);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.rep-metric-chip span {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ds-text-muted);
}

.rep-metric-chip strong {
  font-size: 13px;
  font-weight: 800;
  color: var(--ds-text);
  white-space: nowrap;
}

.rep-metric-chip.is-warn {
  background: #FFFBEB;
  border-color: #FDE68A;
}

.rep-metric-chip.is-warn strong {
  color: #B45309;
}

.rep-metric-chip.is-danger {
  background: #FEF2F2;
  border-color: #FECACA;
}

.rep-metric-chip.is-danger strong {
  color: #B91C1C;
}

.rep-polo-notes {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1 1 auto;
}

.rep-note {
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--ds-surface-subtle);
  border-left: 3px solid var(--ds-border);
}

.rep-note.is-alert {
  background: #FEF2F2;
  border-left-color: #DC2626;
}

.rep-note.is-warn {
  background: #FFFBEB;
  border-left-color: #D97706;
}

.rep-note.is-plan {
  background: #F0F9FF;
  border-left-color: #0284C7;
}

.rep-note-lbl {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ds-text-muted);
  margin-bottom: 2px;
}

.rep-note.is-alert .rep-note-lbl {
  color: #B91C1C;
}

.rep-note.is-warn .rep-note-lbl {
  color: #B45309;
}

.rep-note.is-plan .rep-note-lbl {
  color: #0369A1;
}

.rep-note-text {
  font-size: 12px;
  line-height: 1.45;
  color: var(--ds-text);
  white-space: pre-line;
}

.rep-polo-empty-notes {
  font-size: 12px;
  color: var(--ds-text-muted);
  font-style: italic;
  padding: 6px 0;
}

.rep-polo-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--ds-border-soft);
  font-size: 11px;
  color: var(--ds-text-muted);
}

.rep-polo-foot>span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.rep-polo-empty {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 22px 12px;
  border-radius: 10px;
  background: var(--ds-surface-subtle);
  border: 1px dashed var(--ds-border);
  color: var(--ds-text-muted);
}

.rep-polo-empty-ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FEF3C7;
  color: #B45309;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rep-polo-empty p {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}

.rep-hist-card,
.rep-acoes-card {
  padding: 13px 15px;
}

.rep-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.rep-card-head h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ds-primary);
}

.rep-card-head p {
  margin: 2px 0 0 0;
  font-size: 11.5px;
  color: var(--ds-text-muted);
}

.rep-table td,
.rep-table th {
  font-size: 12px;
  padding: 8px 10px;
}

.rep-table tr.is-current-ref td {
  background: rgba(32, 58, 109, 0.04);
}

.rep-ind-inline {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ds-text-secondary);
}

.rep-ind-inline .is-warn {
  color: #B45309;
}

.rep-ind-inline .is-danger {
  color: #B91C1C;
}

.rep-hist-summary {
  max-width: 380px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--ds-text-secondary);
}

.rep-hist-imp {
  color: #B91C1C;
  margin-top: 2px;
}

.rep-filter-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.rep-filter-chip {
  border: 1px solid var(--ds-border);
  background: var(--ds-surface-subtle);
  color: var(--ds-text-secondary);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s ease;
}

.rep-filter-chip:hover {
  border-color: var(--ds-primary);
  color: var(--ds-primary);
}

.rep-filter-chip.is-active {
  background: var(--ds-primary);
  border-color: var(--ds-primary);
  color: #FFFFFF;
}

.rep-overdue-tag {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  background: #FEE2E2;
  color: #B91C1C;
}

.rep-form-section-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ds-primary);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ds-border-soft);
  margin-top: 2px;
}

.pmo-licoes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}

.pmo-licao-blocks {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--ds-text-secondary);
  line-height: 1.45;
}

.pmo-licao-blocks .is-rec {
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--ds-teal-soft);
  color: #0F172A;
}

.pmo-deck-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

.pmo-deck-card {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--ds-border);
  background: var(--ds-surface-subtle);
  cursor: pointer;
}

.pmo-deck-card.is-selected {
  border-color: var(--ds-primary);
  background: var(--ds-primary-soft);
}

.pmo-pres-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: linear-gradient(135deg, #09152B 0%, #162B52 55%, #203A6D 100%);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
}

.pmo-pres-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: rgba(9, 18, 36, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  flex-wrap: wrap;
}

.pmo-pres-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(241, 232, 196, 0.18);
  color: #F1E8C4;
  font-size: 11px;
  font-weight: 700;
}

.pmo-pres-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.10);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.pmo-pres-btn.is-primary {
  background: #C75B28;
  border-color: #C75B28;
}

.pmo-pres-btn.is-close {
  background: rgba(185, 28, 28, 0.65);
  border-color: rgba(252, 165, 165, 0.4);
}

.pmo-pres-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pmo-pres-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
}

.pmo-pres-progress>div {
  height: 100%;
  background: #F28452;
  transition: width 0.25s ease;
}

.pmo-pres-stage {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pmo-pres-card {
  width: 100%;
  max-width: 1120px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pmo-pres-slide-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.pmo-pres-slide-head h2 {
  color: #FFFFFF;
  font-size: 26px;
  margin: 6px 0 0 0;
}

.pmo-pres-meta {
  font-size: 12px;
  color: rgba(226, 232, 240, 0.72);
}

.pmo-pres-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.pmo-pres-kpi {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pmo-pres-kpi span {
  font-size: 11px;
  color: #CBD5E1;
  font-weight: 700;
  text-transform: uppercase;
}

.pmo-pres-kpi strong {
  font-size: 26px;
  color: #F1E8C4;
}

.pmo-pres-kpi small {
  font-size: 11.5px;
  color: rgba(226, 232, 240, 0.78);
}

.pmo-pres-cols-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pmo-pres-cols-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pmo-pres-panel {
  padding: 16px;
  border-radius: 12px;
  background: rgba(13, 27, 53, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.pmo-pres-list-kv {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pmo-pres-list-kv>div {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #E2E8F0;
}

.pmo-pres-city-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pmo-pres-bar-row {
  display: grid;
  grid-template-columns: 180px 1fr 80px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.pmo-pres-bar-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.pmo-pres-bar-track>div {
  height: 100%;
  border-radius: 999px;
}

.pmo-pres-footer {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 20px;
  background: rgba(9, 18, 36, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.pmo-pres-thumb {
  flex: 0 0 auto;
  min-width: 150px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #E2E8F0;
  text-align: left;
  cursor: pointer;
}

.pmo-pres-thumb.is-active {
  border-color: #F28452;
  background: rgba(199, 91, 40, 0.25);
}

.pmo-pres-thumb small {
  display: block;
  font-size: 10px;
  color: #F1E8C4;
  font-weight: 700;
}

.pmo-pres-thumb span {
  display: block;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.pmo-base-card,
.pmo-licao-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Indicadores: Responsável + Tabela Atual x Anterior */
.iic-owner-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ds-surface-soft);
  border: 1px solid var(--ds-border-soft);
  font-size: 11px;
  font-weight: 600;
  color: var(--ds-text-secondary);
}

.ind-comp-card {
  padding: 0;
  overflow: hidden;
}

.ind-comp-table th,
.ind-comp-table td {
  vertical-align: middle;
}

/* Contratos: Barra de Conciliação Campo x Glosa */
.ccx-bm-reconcil-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 8px 12px;
  margin-top: 8px;
  border-radius: 8px;
  background: var(--ds-surface-subtle);
  border: 1px solid var(--ds-border-soft);
  font-size: 12px;
  color: var(--ds-text-secondary);
}

/* Profissionais: Histograma de Mobilização */
.hist-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.hist-kpi {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hist-kpi span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ds-text-muted);
}

.hist-kpi strong {
  font-size: 20px;
  color: var(--ds-text);
}

.hist-chart-card {
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  margin-bottom: 14px;
}

.hist-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.hist-chart-head strong {
  display: block;
  font-size: 13.5px;
  color: var(--ds-text);
}

.hist-chart-head>div:first-child span {
  font-size: 12px;
  color: var(--ds-text-muted);
}

.hist-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--ds-text-secondary);
}

.hist-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.hist-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.hist-bars-grid {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  overflow-x: auto;
  padding: 14px 8px 4px;
}

.hist-month-col {
  flex: 1 0 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hist-month-pct {
  font-size: 11px;
  font-weight: 700;
  color: var(--ds-teal);
}

.hist-bar-pair {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  height: 165px;
  padding-top: 22px;
  width: 100%;
  border-bottom: 1px solid var(--ds-border-soft);
}

.hist-bar {
  position: relative;
  width: 20px;
  min-height: 4px;
  border-radius: 6px 6px 2px 2px;
  transition: height 0.25s ease;
}

.hist-bar.is-prev {
  background: #94A3B8;
}

.hist-bar.is-real {
  background: #0F766E;
}

.hist-bar span {
  position: absolute;
  top: -17px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ds-text-secondary);
  white-space: nowrap;
}

.hist-month-lbl {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ds-text);
}

/* Moderação: Governança TI, Anexos & Mailing */
.gov-hub-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.gov-hub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.gov-sis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 12px;
}

.gov-sis-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
}

.gov-sis-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gov-sis-bar-row .pgx-bar-track {
  flex: 1 1 auto;
  min-width: 60px;
}

.gov-sis-bar-row span {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ds-primary);
  min-width: 34px;
  text-align: right;
}

/* Modal e Lista de Anexos */
.anexo-upload-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--ds-surface-subtle);
  border: 1px dashed var(--ds-border);
  margin-bottom: 14px;
}

.anexo-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.anexo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--ds-surface-subtle);
  border: 1px solid var(--ds-border-soft);
}

.anexo-row-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.anexo-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--ds-primary-soft);
  color: var(--ds-primary);
  flex-shrink: 0;
}

.anexo-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ds-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anexo-meta {
  font-size: 11.5px;
  color: var(--ds-text-muted);
}

.anexo-empty {
  padding: 20px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ds-text-muted);
  border-radius: 10px;
  border: 1px dashed var(--ds-border);
}

@media (max-width: 1080px) {
  .rep-polos-grid {
    grid-template-columns: 1fr;
  }

  .rep-kpi-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {

  .ind-status-kpi-strip,
  .mun360-kpi-grid,
  .pmo-pres-kpi-grid,
  .hist-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ccx-msp-farol-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ccx-evm-grid,
  .pmo-risk-layout,
  .pmo-pres-cols-3,
  .pmo-pres-cols-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .rep-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rep-polo-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .anexo-row {
    flex-direction: column;
    align-items: stretch;
  }
}