

body {
  font-family: system-ui, -apple-system, sans-serif;
  padding: 20px;
  background: #f5f5f5;
}

#app-root {
  max-width: 1400px;
  margin: 0 auto;
}

.header-description {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.header-description-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.summary-wrapper {
  overflow-x: auto;
  background: white;
  border-radius: 8px;
  margin-bottom: 30px;
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
}

.summary-table th,
.summary-table td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #eee;
}
.summary-table th:first-child,
.summary-table td:first-child {
  text-align: left;
}
.summary-table th {
  background: #f8f8f8;
  font-weight: 600;
}

.val {
  text-align: right;
}

.heat {
  background: var(--heat) !important;
}

.details {
  background: white;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
}

.details-head {
  padding: 15px 20px;
  background: #999999;
  color: #ffffff;
  font-weight: 600;
  font-size: 18px;
}

.details-body {
  padding: 10px;
  display: grid;
  gap:30px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.color-grid {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(var(--cols), 1fr);
}

.color-grid-header {
  padding: 8px;
  font-weight: 600;
  text-align: center;
  font-size: 18px;
}

.color-grid-scale {
  padding: 8px;
  display: flex;
  align-items: center;
  font-size: 14px;
}

.color-cell {
  padding: 15px 8px;
  text-align: center;
  font-size: 18px;
}

.metric-grid {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(9, 1fr);
}

.grid-header {
  padding: 8px;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
}

.grid-cell {
  padding: 8px;
  text-align: center;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-wrapper {
  height: 250px;
}

.chart-wrapper canvas {
  width: 100% !important;
  height: 100% !important;
}
.table-section {
  display: flex;
  flex-direction: column;
}

.table-caption {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: #333;
}
.header-description-title {
  font-size: 18px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}

.ranking-container {
    display: flex;
    gap: 20px;
    height: 520px;
    margin: 30px 0;
    background: #fff;
    border-radius: 8px;
    
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.chart-column {
    flex: 2;
    position: relative; /* Quan trọng để Chart.js fill đầy */
    padding: 15px;
}
.rank-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #eee;
    overflow: auto;
    padding: 20px;
}
.rank-list-content {
    overflow-y: auto;
    flex: 1;
}
.rank-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: all 0.15s ease;
}
.rank-item:hover {
    background: #fcfcfc;
}
.metric-glossary {
    margin: 20px 0;
    padding: 20px;
    background: #fcfcfc;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
}
.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}
.glossary-title {
    font-size: 12px;
    font-weight: 800;
    color: #303030;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}
.glossary-text {
    font-size: 13px;
    line-height: 1.5;
    color: #666;
}
.benchmark-description {
    font-size: 13px;
    line-height: 1.6;
    color: #555;
    border-left: 4px solid #4e4e4e;
    padding-left: 20px;
    margin-bottom: 30px;
}