.kozjel-metric-chart-card,
.kozjel-metric-latest-card,
.kozjel-metric-table-wrap {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
}

.kozjel-metric-chart-card {
  padding: 12px 14px 10px;
  margin: 10px 0 6px;
}

.kozjel-metric-chart-head {
  margin-bottom: 6px;
}

.kozjel-metric-chart-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: #0f172a;
}

.kozjel-metric-chart-source {
  margin-top: 2px;
  font-size: 12px;
  color: #64748b;
}

.kozjel-metric-chart-wrap {
  position: relative;
  width: 100%;
  height: 300px;
}

.kozjel-compact-card {
  margin: 3px 0;
}

.kozjel-metric-latest-card {
  padding: 10px 12px;
}

.kozjel-metric-latest-label {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 2px;
}

.kozjel-metric-latest-value {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.05;
  color: #0f172a;
}

.kozjel-metric-latest-period {
  margin-top: 2px;
  font-size: 12px;
  color: #64748b;
}

.kozjel-metric-table-wrap {
  overflow-x: auto;
  padding: 0;
}

.kozjel-metric-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.kozjel-metric-table th,
.kozjel-metric-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
  white-space: nowrap;
}

.kozjel-metric-table th {
  background: #f8fafc;
  font-weight: 600;
  color: #0f172a;
}

.kozjel-metric-table tbody tr:last-child td,
.kozjel-metric-table tbody tr:last-child th {
  border-bottom: 0;
}

.kozjel-metric-table-pivot th:first-child,
.kozjel-metric-table-pivot td:first-child {
  position: sticky;
  left: 0;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  background: #fff;
  z-index: 1;
}

.kozjel-metric-table-pivot thead th:first-child {
  background: #f8fafc;
  z-index: 2;
}

.kozjel-overall-col {
  background: #fff7ed !important;
  box-shadow: inset 2px 0 0 #f59e0b, inset -2px 0 0 #f59e0b;
}

.kozjel-metric-notice {
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
  margin: 8px 0;
}

.kozjel-metric-latest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 380px));
  justify-content: start;
  gap: 6px;
  margin: 3px 0;
}

.kozjel-metric-change.is-up,
.kozjel-metric-change.is-down,
.kozjel-metric-change.is-flat {
  color: #0f172a;
}

.kozjel-metric-change-arrow {
  display: inline-block;
  margin-left: 8px;
  font-size: 1.2em;
  font-weight: 800;
  line-height: 1;
  vertical-align: middle;
}

@media (max-width: 640px) {
  .kozjel-metric-latest-grid {
    grid-template-columns: 1fr;
  }
}
