:root {
  --bg: #f5f5f3;
  --card: #ffffff;
  --border: #e3e3e0;
  --text: #30333c;
  --muted: #7d8294;
  --orange: #c96808;
  --orange-bg: #fff0df;
  --red: #bd201b;
  --red-bg: #fdebea;
  --green: #20874d;
  --green-bg: #e8f4ec;
  --purple: #e5e2fa;
  --blue: #5145ff;
  --gray-bar: #c9cbd2;
}

* {
  box-sizing: border-box;
}

.monitor-dashboard {
  color: var(--text);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px 14px;
  width: 100%;
  margin: 0 auto;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.monitor-dashboard .card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 263px;
  padding: 17px 20px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 15px;
  overflow: hidden;
}

.monitor-dashboard .card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 9px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 650;
  letter-spacing: -0.15px;
}

.monitor-dashboard .chevron {
  color: #9aa0ae;
  font-size: 21px;
  font-weight: 400;
  line-height: 14px;
  transform: translateY(-1px);
}

.monitor-dashboard .status {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 7px;
  min-height: 21px;
  padding: 3px 9px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 650;
  line-height: 15px;
  white-space: nowrap;
}

.status::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: currentColor;
}

.monitor-dashboard .status.orange {
  color: #b85d08;
  background: var(--orange-bg);
}

.monitor-dashboard .status.red {
  color: var(--red);
  background: var(--red-bg);
}

.monitor-dashboard .status.green {
  color: var(--green);
  background: var(--green-bg);
}

.monitor-dashboard .metric {
  margin-top: 10px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -1.05px;
  line-height: 1.15;
  white-space: nowrap;
}

.monitor-dashboard .metric.small {
  font-size: 23px;
  letter-spacing: -0.7px;
}

.monitor-dashboard .subtitle {
  margin-top: 11px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.4;
}

.monitor-dashboard .chart {
  display: block;
  width: 100%;
  height: 57px;
  margin-top: auto;
  overflow: visible;
}

.monitor-dashboard .chart.compact {
  height: 51px;
}

.monitor-dashboard .date {
  margin-top: 10px;
  color: #858a9b;
  font-size: 11.5px;
  line-height: 15px;
}

/* Segmented status bars */

.monitor-dashboard .segments {
  display: flex;
  gap: 3px;
  width: 100%;
  margin-top: auto;
  margin-bottom: 0;
}

.monitor-dashboard .segment {
  flex: 1;
  min-width: 0;
  height: 12px;
  border-radius: 3px;
  background: var(--gray-bar);
}

.monitor-dashboard .segment.orange {
  background: #c96808;
}

.monitor-dashboard .segment.red {
  background: #bd201b;
}

.monitor-dashboard .segment.light {
  background: #e6e7eb;
}

/* Cards without charts */

.monitor-dashboard .empty-space {
  flex: 1;
  min-height: 20px;
}

.monitor-dashboard .vendor-name {
  margin-top: 11px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.65px;
  white-space: nowrap;
}

/* Responsive layout */

@media (min-width: 1600px) {
  .monitor-dashboard {
    max-width: 1900px;
  }
}

@media (max-width: 1100px) {
  .monitor-dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .monitor-dashboard .card {
    height: 263px;
  }
}

@media (max-width: 560px) {
  .monitor-dashboard {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .monitor-dashboard .card {
    height: 250px;
    padding: 17px;
  }

  .monitor-dashboard .metric {
    font-size: 27px;
  }

  .monitor-dashboard .vendor-name {
    white-space: normal;
  }
}
