
:root {
  --card-bg: #fff;
  --card-radius: 12px;
  --card-padding: 18px;
  --muted: #5A5A5A; 
  --muted-small: #9e9e9e;  
  --shadow: 0 6px 18px rgba(31, 78, 121, 0.18);
  --gap: 18px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

.block-header {
  color: #444
}

.section-title {
  color: #444;
  font-weight: 600;
  margin: 8px 0 12px;
  display: block;
}

/* Grid */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
}

.col-1-5 {
  flex: 1 1 calc(20% - var(--gap));
  min-width: 160px;
}

.col-1-3 {
  flex: 1 1 calc(33.333% - var(--gap));
  min-width: 220px;
}

.col-1-2 {
  flex: 1 1 calc(50% - var(--gap));
  min-width: 280px;
}

.col-full {
  flex: 1 1 100%;
}

.col-big {
  flex: 1 1 calc(40% - var(--gap));
  min-width: 300px;
}

.col-small {
  flex: 1 1 calc(20% - var(--gap));
  min-width: 180px;
}

/* Card */
.card {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  box-shadow: var(--shadow);
  min-height: 90px;
  position: relative;
  overflow: hidden;
}

.card .top-row {
  display: flex;
  align-items: center;
}

.card .metric {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  margin-top: 6px;
}

.card .label {
  font-size: 13px;
  color: var(--muted-small);
  text-transform: none;
}

.card .unit {
  font-size: 12px;
  color: var(--muted-small);
  position: absolute;
  right: 12px;
  bottom: 10px;
  opacity: 0.95;
}

.card .kpi-sub {
  font-size: 14px;
  color: var(--muted-small);
}

/* Larger card variants */
.card-lg {
  padding: 22px;
  min-height: 120px;
}

.card-xl {
  min-height: 160px;
  padding: 22px;
}

/* Harmonies and small stat cards */
.stat-grid {
  display: flex;
  gap: 12px;
  align-items: center;
}

.stat {
  text-align: center;
  flex: 1;
}

.stat .stat-value {
  font-size: 22px;
  font-weight: 700;
}

.stat .stat-label {
  font-size: 12px;
  margin-top: 6px;
  color: var(--muted-small);
}

/* Chart card */
.chart {
  background: linear-gradient(180deg, #2f6fb2, #2b5f99);
  border-radius: var(--card-radius);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* Responsive behavior */
@media (max-width:1100px) {
  .col-1-5 {
    flex: 1 1 calc(33.333% - var(--gap));
  }

  .col-1-3 {
    flex: 1 1 calc(50% - var(--gap));
  }
}

@media (max-width:700px) {

  .col-1-5,
  .col-1-3,
  .col-1-2 {
    flex: 1 1 100%;
    min-width: 0;
  }

}

.top-row .icon {
  float: left;
  width: 50px;
  height: 50px;
  border-radius: .55rem;
}

.top-row .icon i {
  font-size: 25px;
  line-height: 50px;
}