/* The same navigation palette as the panel, including at enlarged text sizes. */
.production-graph {
  --pg-paper:#fff;
  --pg-ink:#182b3e;
  --pg-sub:#465e70;
  --pg-edge:#b9cfdc;
  --pg-selected:var(--action-solid,#155c87);
  box-sizing:border-box;
  display:grid;
  gap:.45em;
  width:100%;
  min-width:0;
  max-width:100%;
  margin:0;
  color:var(--pg-ink);
  font-family:inherit;
  font-size:inherit;
  line-height:1.35;
  overflow-wrap:anywhere;
  text-align:start;
}
.production-graph *, .production-graph *::before, .production-graph *::after {box-sizing:border-box;}
.production-graph .pg-body {
  display:grid;
  min-width:0;
  gap:.65em;
  background:var(--pg-paper);
  border:1px solid var(--pg-edge);
  border-radius:.62em;
  padding:clamp(.4em,1.6vw,.9em);
}
.production-graph .pg-heading, .production-graph h3, .production-graph p {margin:0;}
.production-graph .pg-heading, .production-graph .pg-date-caption, .production-graph .pg-date-range {font-size:1.17em;line-height:1.28;}
.production-graph h3 {font-size:1.03em;}
.production-graph .pg-modes, .production-graph .pg-buttons, .production-graph .pg-date-nav, .production-graph .pg-legend {
  display:flex; flex-wrap:wrap; align-items:center; gap:.32em; min-width:0;
}
.production-graph .pg-btn, .production-graph .pg-select {
  min-height:44px; height:auto; min-width:0; max-width:100%; width:auto;
  color:var(--pg-ink); background:var(--pg-paper); border:1px solid var(--action-border,#3777a8);
  border-radius:.48em; padding:.38em .62em; font:inherit; line-height:1.27; text-align:center;
}
.production-graph .pg-btn {white-space:normal;overflow-wrap:anywhere;cursor:pointer;}
.production-graph .pg-modes,.production-graph .pg-buttons {
  align-items:stretch; background:var(--panel-nav-bg,#173c50); border-radius:8px; padding:6px; gap:5px;
}
.production-graph .pg-modes .pg-btn,.production-graph .pg-buttons .pg-btn {
  flex:1 1 auto; display:flex; align-items:center; justify-content:center;
  min-height:44px; padding:6px 9px; border:1px solid var(--panel-nav-idle-border,#8faebd);
  border-radius:6px; background:transparent; color:var(--panel-nav-idle-text,#f5fafc); line-height:1.2;
  touch-action:manipulation; box-shadow:none;
}
.production-graph .pg-modes .pg-btn:hover,.production-graph .pg-buttons .pg-btn:hover {background:var(--panel-nav-hover,#245469);}
.production-graph .pg-modes .pg-btn[aria-pressed=true],.production-graph .pg-buttons .pg-btn[aria-pressed=true] {
  background:var(--panel-nav-selected-bg,#eef6f9); border-color:var(--panel-nav-selected-bg,#eef6f9);
  color:var(--panel-nav-selected-text,#163c50);
}
.production-graph .pg-btn:focus-visible,.production-graph .pg-select:focus-visible,.production-graph input:focus-visible {outline:3px solid var(--action-border,#3777a8);outline-offset:2px;}
.production-graph .pg-modes .pg-btn {flex:1 1 6.2em;}
.production-graph .pg-controls, .production-graph .pg-metrics, .production-graph .pg-coverage {display:flex;flex-wrap:wrap;gap:.48em .65em;min-width:0;}
.production-graph .pg-control-group {display:flex;flex:1 1 13em;flex-direction:column;align-items:stretch;min-width:0;max-width:100%;gap:.2em;}
.production-graph .pg-field-name,.production-graph .pg-caption,.production-graph .pg-note {color:var(--pg-sub);}
.production-graph .pg-select {width:100%;text-align:start;text-overflow:ellipsis;}
.production-graph .pg-ship-pair {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5em;flex:1 0 100%;min-width:0;}
html[data-visual-zoom] .production-graph .pg-ship-pair {grid-template-columns:repeat(2,minmax(5em,1fr));overflow-x:auto;}
.production-graph .pg-ship-field {
  flex:1;position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.3em;
  border:1px solid #b9d1dd;border-radius:6px;background:white;color:#163c50;
  padding:.28em .42em;min-height:44px;min-width:0;
}
.production-graph .pg-ship-name {white-space:normal;overflow-wrap:break-word;word-break:normal;line-height:1.2;}
.production-graph .pg-ship-field::after {
  content:"";display:block;width:.45em;height:.45em;border:solid currentColor;border-width:0 1.5px 1.5px 0;
  transform:translateY(-.12em) rotate(45deg);margin-inline-end:.12em;
}
.production-graph .pg-ship-field>.pg-select {position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;}
.production-graph .pg-ship-field:focus-within {outline:2px solid var(--pg-selected);outline-offset:1px;}
.production-graph .pg-date-nav {
  display:grid;grid-template-columns:minmax(0,max-content);justify-content:center;
  gap:clamp(2px,.55em,9px);container-type:inline-size;touch-action:manipulation;
}
.production-graph .pg-date-nav[data-pageable] {
  --arrow-track:min(44px,calc(50% - 9px));
  grid-template-columns:var(--arrow-track) minmax(0,max-content) var(--arrow-track);
}
.production-graph .pg-date-nav .pg-btn {
  grid-row:1;width:100%;min-width:0;min-height:44px;padding-inline:0;touch-action:manipulation;
}
.production-graph .pg-date-nav .pg-btn[hidden] {display:none;}
.production-graph .pg-date-nav [data-graph-control="previous"] {grid-column:1;}
.production-graph .pg-date-nav [data-graph-control="next"] {grid-column:3;}
.production-graph .pg-date-range {grid-row:1;text-align:center;font-variant-numeric:tabular-nums;min-width:0;}
.production-graph .pg-date-nav[data-pageable] .pg-date-range {grid-column:2;}
@container (max-width:16em) {
  .production-graph .pg-date-nav[data-pageable] .pg-date-range {grid-column:1/-1;}
  .production-graph .pg-date-nav[data-pageable] .pg-btn {grid-row:2;}
}
.production-graph .pg-period-content {display:contents;}
.production-graph .pg-plot-viewport {min-width:0;max-width:100%;overflow-x:auto;container-type:inline-size;}
.production-graph .pg-plot {display:grid;gap:.65em;min-width:0;}
/* Keep plotted coordinates, labels and legend words legible at very high pinch zoom. */
@container (max-width:128px) {
  html[data-visual-zoom] .production-graph .pg-plot {min-width:144px;}
}
.production-graph .pg-chart {width:100%;max-width:100%;min-width:0;}
.production-graph .pg-chart svg {width:100%;display:block;overflow:hidden;touch-action:manipulation;}
.production-graph .pg-legend {gap:.25em .9em;}
.production-graph .pg-key {display:inline-flex;flex-wrap:wrap;gap:.3em;align-items:center;min-width:0;max-width:100%;}
.production-graph .pg-key,.production-graph .pg-cover-key,.production-graph .pg-key-text {
  overflow-wrap:normal;word-break:normal;hyphens:none;white-space:normal;
}
.production-graph .pg-key-text {max-width:100%;min-width:0;}
.production-graph .pg-key-text .pg-word {display:inline-block;white-space:nowrap;}
.production-graph .pg-swatch {display:block;flex:none;width:40px;height:12px;}
.production-graph .pg-slider {display:grid;gap:.15em;min-width:0;}
.production-graph .pg-date-caption strong {white-space:normal;overflow-wrap:anywhere;}
.production-graph .pg-slider input {width:100%;min-width:0;margin:0;min-height:36px;accent-color:var(--pg-selected);}
.production-graph .pg-metric {flex:1 1 10.5em;min-width:0;overflow-wrap:anywhere;border-left:3px solid var(--pg-edge);padding:.12em .48em;}
.production-graph .pg-figure {display:block;font-size:1.08em;font-variant-numeric:tabular-nums;}
.production-graph .pg-source {display:grid;gap:.2em;min-width:0;}
.production-graph .pg-period-content>.pg-btn {justify-self:start;}
.production-graph .pg-coverage>h3 {flex:1 0 100%;}
.production-graph .pg-coverage-item {flex:1 1 15em;min-width:0;border:1px solid var(--pg-edge);border-radius:.48em;padding:.48em;}
.production-graph .pg-coverage-item p {margin-top:.2em;}
.production-graph .pg-coverage-scale {display:grid;flex:1 0 100%;width:100%;min-width:0;gap:.5em;}
.production-graph .pg-cover-keys,.production-graph .pg-cover-key,.production-graph .pg-scale-range {display:flex;flex-wrap:wrap;align-items:center;}
.production-graph .pg-cover-keys {gap:.25em .75em;}
.production-graph .pg-cover-key {gap:.25em;}
.production-graph .pg-cover-key i {display:inline-block;width:.85em;height:.85em;border-radius:2px;}
.production-graph .pg-scale-range {justify-content:space-between;gap:.3em;color:var(--pg-sub);font-variant-numeric:tabular-nums;}
.production-graph .pg-coverage-row {display:grid;min-width:0;gap:.12em;}
.production-graph .pg-cover-label {font-weight:600;}
.production-graph .pg-cover-track {display:grid;position:relative;min-width:0;width:100%;min-height:1.1em;align-items:stretch;cursor:pointer;}
.production-graph .pg-cover-cell {display:block;position:relative;min-width:0;min-height:1.1em;}
.production-graph .pg-status-srd {background:#37805b;}
.production-graph .pg-status-mixed {background:repeating-linear-gradient(135deg,#478268 0 4px,#e1bb72 4px 8px);}
.production-graph .pg-status-ops {background:#6b9fbb;}
.production-graph .pg-status-missing {background:repeating-linear-gradient(135deg,#f0e4ce 0 3px,#916e44 3px 4px);}
.production-graph .pg-status-none {background:#fff;border:1px dotted #91a0a8;}
.production-graph .pg-status-out {background:#d9e0e5;}
.production-graph .pg-cover-selected::after {content:"";position:absolute;inset:-2px 0;border-top:3px solid var(--pg-ink);border-bottom:3px solid var(--pg-ink);}
