* { box-sizing: border-box; }
body { margin: 8px; font: 18px/1.3 Verdana, Arial, sans-serif; color: white; background: #245854; }
main { max-width: 1160px; margin: 0 auto; padding: 8px 16px; }
a, a:visited { color: #CCEECC; text-decoration: none; }
a:hover { color: white; }
h1, h2, h3 { font-family: Verdana, Arial, sans-serif; color: white; }
h1 { font-size: 2em; margin: .67em 0; }
h2 { font-size: 1.5em; }
header hr { border: 0; border-top: 1px solid black; margin: 18px 0; }
.intro { max-width: 1000px; }
section { margin-top: 36px; }
#dataset-controls, #chart-controls { display: flex; align-items: end; flex-wrap: wrap; gap: 16px; }
#chart-controls > label { display: grid; gap: 4px; }
input[type=month], button { font: inherit; padding: 5px 8px; border: 1px solid #aaa; border-radius: 0; background: #fff; color: #000; }
button { cursor: pointer; }
#dataset-controls { margin: 24px 0; }
#dataset-controls fieldset { gap: 24px; }
#dataset-controls label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
legend { font-size: 16px; margin-bottom: 7px; }
fieldset label { white-space: nowrap; }
.chart-wrap { margin-top: 20px; overflow: hidden; background: #f3f4f5; }
.chart-plot { display: grid; grid-template-columns: minmax(0, 1fr) 78px; }
.axis-scale { color: #111; font-size: 14px; }
.axis-scale input { accent-color: #245854; cursor: pointer; }
.axis-scale output { font-size: 12px; font-variant-numeric: tabular-nums; }
.y-scale-control { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; justify-items: center; gap: 6px; padding: 12px 4px 60px; min-height: 0; }
#y-scale { writing-mode: vertical-lr; direction: rtl; width: 28px; height: 100%; min-height: 0; margin: 0; }
.x-scale-control { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 0 16px 14px 7.2%; margin-right: 78px; }
#x-scale { width: 100%; min-width: 0; margin: 0; }
svg { width: 100%; height: auto; display: block; touch-action: pan-y; }
svg text { fill: #111; font: 12px Verdana, Arial, sans-serif; }
svg .grid { stroke: #c7cccf; stroke-width: 1; }
svg .extra { stroke: #c58a00; }
svg .general { stroke: #299b8a; }
svg .technician { stroke: #c060a6; }
svg .series { fill: none; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
svg .trend { fill: none; stroke-width: 3; stroke-dasharray: 10 7; }
svg .trend.extra { stroke: #775100; }
svg .trend.general { stroke: #10554b; }
svg .trend.technician { stroke: #75265c; }
.trend-option { white-space: nowrap; }
#trend-summary { font-size: 16px; }
#trend-summary p { max-width: 1050px; }
.trend-table-wrap { overflow-x: auto; }
.trend-table, .trend-table thead, .trend-table thead th, .trend-table tbody tr:nth-child(even) { background: transparent; color: white; }
.trend-table { width: auto; }
.trend-table th, .trend-table td { padding: 6px 24px 6px 0; }
.trend-table td:last-child { text-align: right; }
.trend-label.extra { color: #ffd36e; }
.trend-label.general { color: #8de9db; }
.trend-label.technician { color: #f0a6d8; }
svg .cursor { stroke: #000; stroke-dasharray: 4 4; pointer-events: none; }
#chart-detail { font-size: 16px; }
#chart-detail:empty { display: none; }
.data-caption { margin: 0; padding: 10px 0; font-size: 16px; }
.section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.table-wrap { width: 600px; max-width: 100%; overflow: auto; max-height: 650px; }
table { width: 100%; border-collapse: collapse; font-size: 16px; white-space: nowrap; background: #689B98; color: black; }
caption { text-align: left; padding: 10px 0; color: white; background: #245854; }
th, td { padding: 7px 12px; text-align: right; }
th:first-child, td:last-child { text-align: left; }
thead { position: sticky; top: 0; background: #467976; }
thead th { background: #467976; }
tbody th { font-weight: normal; }
tbody tr:nth-child(even) { background: #78aaa7; }
@media (max-width: 620px) {
  body { font-size: 16px; }
  main { padding: 0 6px; }
  h1 { font-size: 1.75em; }
  fieldset { width: 100%; }
  #chart-detail { font-size: 14px; }
  .chart-plot { grid-template-columns: minmax(0, 1fr) 56px; }
  .y-scale-control { padding: 6px 2px 26px; gap: 2px; }
  .x-scale-control { margin-right: 56px; gap: 6px; padding: 0 4px 10px 7.2%; }
  .axis-scale { font-size: 12px; }
  .axis-scale output { font-size: 10px; }
}
