.rmi-table {
  margin-top: 12px;
}

.rmi-table th,
.rmi-table td {
  vertical-align: middle;
}

.rmi-table select,
.rmi-table input[type="number"] {
  width: 100%;
}

.rmi-actions {
  margin: 12px 0;
}

.rmi-notice {
  margin: 12px 0;
  padding: 10px 12px;
  border-left: 4px solid #198754;
  background: #f4f8f4;
}

.rmi-notice-success {
  border-left-color: #198754;
}

.rmi-chart-wrapper {
  position: relative;
  width: 100%;
  background-color: #fff;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 20px;
}

.rmi-chart-layout {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  margin-top: 12px;
}

.rmi-chart-main {
  flex: 1 1 auto;
  min-width: 0;
}

.rmi-chart-key {
  border-radius: 8px;
  display: flex;
  flex: 0 0 150px;
  flex-direction: column;
  gap: 10px;
}

.rmi-chart-key-title {
  color: #25364a;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
}

.rmi-chart-key-item {
  align-items: center;
  display: flex;
  gap: 10px;
}

.rmi-chart-key-label {
  color: #25364a;
  font-size: 0.6rem;
  font-weight: 600;
}

.rmi-chart-key-swatch {
  display: inline-block;
  flex: 0 0 auto;
}

.rmi-chart-key-swatch.is-bar {
  border-radius: 3px;
  height: 12px;
  width: 12px;
}

.rmi-chart-key-swatch.is-economic {
  background: rgb(168, 148, 114);
}

.rmi-chart-key-swatch.is-criminal-justice {
  background: rgb(201, 201, 201);
}

.rmi-chart-key-swatch.is-governance {
  background: rgb(74, 74, 74);
}

.rmi-chart-key-line {
  border-radius: 999px;
  display: block;
  flex: 0 0 18px;
  height: 3px;
  width: 18px;
}

.rmi-chart-key-line.is-average-trend {
  background: rgb(37, 54, 74);
}

.rmi-chart-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 10px 0;
}

.rmi-chart-stage {
  position: relative;
  min-height: 270px;
}

.rmi-chart-canvas {
  display: block;
  width: 100%;
  height: 270px;
}

@media (max-width: 991px) {
  .rmi-chart-layout {
    flex-direction: column;
  }

  .rmi-chart-key {
    flex-basis: auto;
    width: 100%;
  }
}
