/* pph.css — additions on top of ap-kpi.css for the PPH KPI page (parts per hour / per FTE).
   Everything else (cards, tiles, tablewrap, filters, upload drop zone, tags, phone breakpoint)
   already comes from ap-kpi.css — this file only adds what that shared sheet does not cover. */

/* Chart cards hold an SVG; without min-width:0 the grid track can be forced wider than the
   viewport, same trap documented in copa.css (which this page does not load). */
.charts > .card { min-width: 0; }

/* Weekly table — workbook layout: "Plant total" then one block per line, introduced by a
   full-width shaded/bold title row inside the table body. */
tr.pk-block td { font-weight: 700; background: color-mix(in srgb, var(--seq450) 8%, var(--surface)); }
#weekly td:first-child { white-space: nowrap; }

/* Partial-week marker: weekMeta[wk].partsCovered or hoursCovered is false for that column. */
.pk-partial { color: var(--serious); font-weight: 700; margin-left: 2px; cursor: help; }

/* Combo charts: inline SVG built in JS. Geometry (x/y/width/height/points) is always a
   presentation attribute set per data point; these classes carry the static colour/stroke
   treatment so no style="" attribute is ever needed anywhere in the generated markup. */
.pk-bar { fill: var(--seq350); }
.pk-line { stroke: var(--seq650); stroke-width: 2; fill: none; }
.pk-pt { fill: var(--seq650); }
.pk-trend { stroke: var(--serious); stroke-width: 1.5; stroke-dasharray: 5,4; fill: none; }
.pk-axis { stroke: var(--axis); stroke-width: 1; }
.pk-sw-bar { fill: var(--seq350); }
.pk-sw-line { stroke: var(--seq650); stroke-width: 2; }
.pk-sw-trend { stroke: var(--serious); stroke-width: 2; stroke-dasharray: 4,3; }
.pk-chart-empty { color: var(--muted); font-size: 12.5px; padding: 30px 0; text-align: center; }

/* Mapping-workbook upload tag gets its own colour; recognized data files (MB51/Hours) keep
   the shared default .tag colour, unrecognized files keep the shared .tag.bad. */
.tag.map { background: var(--seq650); }

/* Phone: wide KPI tables scroll inside .tablewrap (already global) rather than force the grid. */
@media (max-width: 640px) {
  #throughput, #depts, #unmapped { min-width: 0; }
}

/* Days / Weeks tabs */
.pk-tabs { display: inline-flex; gap: 4px; margin-left: 12px; vertical-align: middle; }
.pk-tab { font: inherit; font-size: 13px; padding: 5px 14px; border: 1px solid var(--line, #d0d7de); border-radius: 6px; background: var(--surface); color: var(--ink2); cursor: pointer; }
.pk-tab:hover { border-color: var(--seq450); }
.pk-tab.active { background: var(--seq450); border-color: var(--seq450); color: #fff; font-weight: 600; }
/* holiday columns on the Days tab */
.pk-hol { opacity: .55; }

/* holiday prompt (comes up when files are loaded) */
.pk-dialog { margin: auto; border: 1px solid var(--line, #d0d7de); border-radius: 10px; padding: 18px 20px; max-width: 540px; width: calc(100% - 32px); background: var(--surface); color: var(--ink); }
.pk-dialog::backdrop { background: rgba(0, 0, 0, .45); }
.pk-dialog h3 { margin: 0 0 6px; }
.pk-hol-list { display: grid; gap: 6px; margin: 12px 0; max-height: 46vh; overflow-y: auto; }
.pk-hol-item { display: block; padding: 7px 9px; border: 1px solid var(--line, #d0d7de); border-radius: 6px; cursor: pointer; font-size: 13px; }
.pk-hol-item.auto { opacity: .7; cursor: default; }
.pk-hol-item .meta { color: var(--ink2); }
.pk-hol-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; }
.pk-dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 14px; }
