.nae-panel, .nah-panel {
  --nae-positive: #237166;
  --nae-negative: #8d5b43;
  --nae-muted: #596c70;
  min-width: 0;
}
.nae-panel h3, .nah-panel h3 { margin: 0; }
.nae-explanation, .nae-foot p, .nah-note, .nae-empty {
  color: var(--nae-muted);
  line-height: 1.7;
  font-size: 12px;
}
.nae-explanation { margin: 6px 0 17px; }
.nae-table-scroll, .nah-chart-scroll { overflow-x: auto; max-width: 100%; }
.nae-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.nae-table thead th { color: var(--nae-muted); font-size: 11px; }
.nae-table th, .nae-table td { padding: 9px 12px; border-bottom: 1px solid #e4e9e7; }
.nae-table thead th { background: #f4f7f5; }
.nae-table th:first-child { text-align: left; }
.nae-table th:not(:first-child), .nae-table td { text-align: right; }
.nae-table td b, .nae-table td small { white-space: nowrap; display: block; }
.nae-table td b, .nae-table tbody th { font-weight: 550; }
.nae-table td small { font-size: 10px; color: var(--nae-muted); }
.nae-difference { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.nae-difference strong { min-width: 52px; text-align: right; font-size: 12px; }
.nae-difference strong.positive { color: var(--nae-positive); }
.nae-difference strong.negative { color: var(--nae-negative); }
.nae-difference-track { position: relative; height: 16px; width: clamp(40px, 7vw, 105px); flex: none; }
.nae-difference-track::after { content: ''; position: absolute; width: 1px; inset: 0 auto 0 50%; background: #c7d4d0; }
.nae-difference-track i { position: absolute; top: 5px; height: 6px; border-radius: 2px; }
.nae-difference-track i.positive { left: 50%; background: var(--nae-positive); }
.nae-difference-track i.negative { right: 50%; background: var(--nae-negative); }
.nae-foot { margin-top: 10px; display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.nae-foot p, .nah-note { margin: 0; }
.nae-foot .nae-expand { margin-left: auto; flex-shrink: 0; }
.nae-empty { padding: 12px 0; margin: 0; }
.nah-panel { margin: 22px 0; border: 1px solid #dde6e1; border-radius: 8px; padding: 16px; }
.nah-chart {
  --nah-revenue-height: 92px;
  --nah-occ-height: 48px;
  display: grid;
  grid-template-columns: 65px minmax(0, 1fr);
  min-width: calc(65px + 25px * var(--nah-count));
}
.nah-columns { display: grid; grid-template-columns: repeat(var(--nah-count), minmax(0, 1fr)); }
.nah-axes, .nah-column {
  display: grid;
  grid-template-rows: var(--nah-revenue-height) var(--nah-occ-height) 23px;
  row-gap: 9px;
}
.nah-axes { padding-right: 9px; }
.nah-axes > span { display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-start; font-size: 9px; white-space: nowrap; color: var(--nae-muted); }
.nah-axes b { font-size: 11px; color: #344b4d; }
.nah-axes > span > span:last-child { margin-top: auto; }
.nah-columns > .nah-column {
  margin: 0; padding: 0; min-height: 0; min-width: 0;
  border: 0; color: #364c4b; background: transparent;
  border-radius: 4px; cursor: pointer; font: inherit;
}
.nah-columns > .nah-column.nah-outside { background: #f3f4f3; }
.nah-column.nah-outside .nah-fill { opacity: .5; }
.nah-columns > .nah-column:is(:hover, [aria-pressed='true']) { background: #eaf2ee; }
.nah-columns > .nah-column:focus-visible { outline: 2px solid #638e84; outline-offset: -2px; }
.nah-bars {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  border-bottom: 1px solid #b4c6bd;
  background-image: linear-gradient(to bottom, #dce5df 1px, transparent 1px);
  background-size: 100% 50%;
}
.nah-fill {
  display: block; width: 52%; max-width: 30px; min-height: 1px;
  border-radius: 2px 2px 0 0;
}
.nah-fill.nah-zero { min-height: 2px; }
.nah-revenue .nah-fill { background: #387e75; }
.nah-occupancy .nah-fill { background: #a67f48; }
.nah-missing { position: absolute; top: 36%; font-size: 12px; color: #667773; }
.nah-month { white-space: nowrap; font-size: 10px; line-height: 1.3; }
.nah-readout { display: flex; flex-wrap: wrap; gap: 5px 15px; margin: 6px 0; font-size: 12px; font-variant-numeric: tabular-nums; }
.nah-readout > strong { color: #245e57; }
.nah-readout b { margin-left: 2px; }
.nah-note { font-size: 11px; }
@media (max-width: 650px) {
  .nae-table th, .nae-table td { padding: 8px 4px; }
  .nae-table thead th { font-size: 10px; }
  .nae-table { font-size: 12px; }
  .nae-difference-track { display: none; }
  .nae-difference strong { min-width: 0; font-size: 11px; }
  .nae-foot { flex-direction: column; gap: 5px; }
  .nae-foot .nae-expand { align-self: flex-start; margin-left: 0; }
  .nah-panel { padding: 12px 10px; }
}
