/* Heatmap Timeline */
.heatmap-panel {
  background: var(--dark);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 6px;
  margin-bottom: 18px;
  overflow: hidden;
}

.heatmap-titlebar {
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.heatmap-titlebar h3 {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  font-weight: 400;
}

.hm-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hm-leg {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
}

.hm-swatch {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  flex-shrink: 0;
}

.hm-scroll {
  overflow-x: auto;
  padding: 16px 18px 20px;
}

.hm-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 100%;
}

.hm-table th {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
  padding: 4px 8px;
  vertical-align: bottom;
  white-space: nowrap;
}

.hm-table th.dc {
  text-align: center;
  font-size: 9px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  padding: 6px 4px;
  min-width: 44px;
  color: rgba(255, 255, 255, 0.5);
}

.hm-table th.dc.oc {
  color: rgba(211, 84, 0, 0.9);
}

.hm-table th.dc.nc {
  color: rgba(201, 168, 76, 0.9);
}

.hm-table td.pl {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  padding: 3px 12px 3px 0;
  white-space: nowrap;
  vertical-align: middle;
}

.hm-table td.pl .pu {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.3);
  display: block;
  margin-top: 1px;
}

.hm-table td.hc {
  padding: 2px 3px;
  vertical-align: middle;
  text-align: center;
}

.hm-block {
  width: 40px;
  height: 32px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  cursor: default;
  transition: filter 0.15s;
}

.hm-block:hover {
  filter: brightness(1.2);
}

.hm-block.empty {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.1);
}

.hm-block.normal {
  background: #1e5c2e;
  color: #8ee8a8;
}

.hm-block.b-low {
  background: #6b5c0e;
  color: #f5dc6a;
}

.hm-block.b-high {
  background: #6b420e;
  color: #f5b86a;
}

.hm-block.a-low {
  background: #7a1a1a;
  color: #ffaaaa;
}

.hm-block.a-high {
  background: #7a1a1a;
  color: #ffaaaa;
}

.hm-block.no-ref {
  background: #1e3a56;
  color: #7aade0;
}

.hm-cat {
  padding: 10px 0 3px 0;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: rgba(201, 168, 76, 0.55);
  text-transform: uppercase;
}

.hm-cat td:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 12px;
}

/* Tooltip */
.hm-tip {
  position: fixed;
  background: #1a2a3a;
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 4px;
  padding: 9px 13px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  pointer-events: none;
  z-index: 9999;
  display: none;
  max-width: 240px;
  line-height: 1.6;
}

.hm-tip .tp {
  color: var(--gold);
  font-size: 12px;
  margin-bottom: 4px;
}

.hm-tip .tv {
  color: #fff;
}

.hm-tip .tr {
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  margin-top: 2px;
}

.hm-tip .ts {
  margin-top: 4px;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 2px;
  display: inline-block;
}

.hm-tip .ts.normal {
  background: #1e5c2e;
  color: #8ee8a8;
}

.hm-tip .ts.b-low,
.hm-tip .ts.b-high {
  background: #6b5c0e;
  color: #f5dc6a;
}

.hm-tip .ts.a-low,
.hm-tip .ts.a-high {
  background: #7a1a1a;
  color: #ffaaaa;
}

.hm-tip .ts.no-ref {
  background: #1e3a56;
  color: #7aade0;
}
