.rpt-kpi-grid.rmsat-kpi-grid {
  grid-template-columns: repeat(6, minmax(0, calc((100% - 2.75rem) / 6))) !important;
  gap: 0.55rem !important;
}

.rpt-kpi.rmsat-kpi-grid,
.rmsat-kpi-grid .rpt-kpi {
  padding: 0.75rem 0.8rem;
}

.rmsat-kpi-grid .rpt-kpi-label {
  letter-spacing: 0.05em;
}

.rmsat-kpi-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: stretch;
  margin-top: 0.15rem;
}

.rmsat-kpi-pane {
  min-width: 0;
}

.rmsat-kpi-grid .rmsat-kpi-pane .rpt-kpi-value {
  font-size: 1.3rem;
}

.rmsat-kpi-grid .rmsat-kpi-pane .rpt-kpi-sub {
  margin-top: 0.28rem;
  font-size: 0.62rem;
}

.rmsat-kpi-divider {
  width: 1px;
  background: var(--rpt-border-soft, #f1f5f9);
}

.rmsat-kpi-value-muted {
  color: var(--rpt-text-mid, #334155);
}

.rmsat-kpi-info-line {
  align-items: center;
  display: inline-flex;
  gap: 0.3rem;
}

.rmsat-info-dot {
  align-items: center;
  background: color-mix(in srgb, var(--rpt-primary-pale, #ecfdf5) 84%, #fff);
  border: 1px solid var(--rpt-primary-muted, #d1fae5);
  border-radius: 999px;
  color: var(--rpt-primary-dark, #059669);
  cursor: pointer;
  display: inline-flex;
  height: 1rem;
  justify-content: center;
  padding: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
  width: 1rem;
}

.rmsat-info-dot:hover {
  border-color: var(--rpt-primary, #10b981);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.16);
  color: var(--rpt-primary, #10b981);
}

.rmsat-info-dot .material-symbols-outlined {
  font-size: 0.72rem;
  line-height: 1;
}

.rmsat-modal-backdrop {
  align-items: center;
  background: rgba(15, 23, 42, 0.36);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 1rem;
  position: fixed;
  z-index: 80;
}

.rmsat-modal-backdrop[hidden] {
  display: none;
}

.rmsat-modal {
  background: var(--rpt-surface, #fff);
  border: 1px solid var(--rpt-border, #e5e7eb);
  border-radius: var(--rpt-radius, 0.65rem);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  max-width: 24rem;
  overflow: hidden;
  width: min(100%, 24rem);
}

.rmsat-modal__header {
  align-items: center;
  border-bottom: 1px solid var(--rpt-border-soft, #f1f5f9);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.9rem 1rem;
}

.rmsat-modal__eyebrow {
  color: var(--rpt-text-soft, #94a3b8);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rmsat-modal__title {
  color: var(--rpt-text, #0f172a);
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0.1rem 0 0;
}

.rmsat-modal__close {
  align-items: center;
  background: var(--rpt-surface, #fff);
  border: 1px solid var(--rpt-border, #e5e7eb);
  border-radius: 999px;
  color: var(--rpt-text-muted, #475569);
  cursor: pointer;
  display: inline-flex;
  height: 1.8rem;
  justify-content: center;
  padding: 0;
  width: 1.8rem;
}

.rmsat-modal__close:hover {
  border-color: var(--rpt-primary, #10b981);
  color: var(--rpt-primary-dark, #059669);
}

.rmsat-modal__close .material-symbols-outlined {
  font-size: 1rem;
}

.rmsat-modal__body {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
}

.rmsat-modal-stat {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--rpt-border-soft, #f1f5f9);
  border-radius: var(--rpt-radius-sm, 0.5rem);
  display: flex;
  justify-content: space-between;
  padding: 0.8rem;
}

.rmsat-modal-stat span {
  color: var(--rpt-text-muted, #475569);
  font-size: 0.78rem;
  font-weight: 700;
}

.rmsat-modal-stat strong {
  color: var(--rpt-text, #0f172a);
  font-size: 1.2rem;
  font-weight: 850;
}

.rmsat-modal-note {
  color: var(--rpt-text-soft, #94a3b8);
  font-size: 0.72rem;
  line-height: 1.45;
}

@media (max-width: 1280px) {
  .rpt-kpi-grid.rmsat-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, calc((100% - 1.1rem) / 3))) !important;
  }
}

@media (max-width: 680px) {
  .rpt-kpi-grid.rmsat-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, calc((100% - 0.55rem) / 2))) !important;
  }

  .rmsat-kpi-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.55rem;
  }

  .rmsat-kpi-divider {
    width: 100%;
    height: 1px;
  }
}
