/* Scoped to payroll-cost report 2A/2B only. */
.phf-payroll-cost-table th,
.phf-payroll-cost-table td {
  text-align: center;
  vertical-align: middle;
}
.phf-payroll-cost-table td.c-num { text-align: center; }
.phf-payroll-cost-table .c-payroll-cost-f,
.phf-payroll-cost-table .c-payroll-cost-h {
  color: #075e33;
  font-weight: 800;
}
.phf-payroll-cost-table th.c-payroll-cost-f,
.phf-payroll-cost-table th.c-payroll-cost-h { white-space: normal; }
.phf-payroll-cost-table .phf-payroll-cost-label,
.phf-payroll-cost-table .phf-payroll-cost-formula {
  display: block;
  text-align: center;
}
.phf-payroll-cost-table .phf-payroll-cost-formula {
  margin-top: 3px;
  color: #62706a;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
}

.phf-payroll-cost-section:first-of-type td:first-child,.phf-payroll-cost-section:nth-of-type(2) td:first-child{text-align:left}.phf-pc-visual{margin:0 0 12px;padding:12px;border:1px solid #d7dde0;background:#fff}.phf-pc-2a{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(220px,1fr);gap:18px}.phf-pc-bars{display:grid;gap:9px}.phf-pc-bar{display:grid;grid-template-columns:145px 1fr;align-items:center;gap:9px;font-size:12px}.phf-pc-bar>b{font-weight:700}.phf-pc-bar span{position:relative;display:block;height:22px;background:#edf1f0}.phf-pc-bar i{display:block;height:100%}.phf-pc-bar em{position:absolute;inset:4px 7px auto auto;font-style:normal;font-weight:700;color:#172b20}.phf-pc-donutbox{display:grid;grid-template-columns:128px 1fr;align-items:center;gap:10px}.phf-pc-donut{width:128px;height:128px;border-radius:50%;display:grid;place-items:center}.phf-pc-donut>div{width:76px;height:76px;border-radius:50%;display:grid;place-content:center;text-align:center;background:#fff}.phf-pc-donut b{font-size:13px}.phf-pc-donut small{font-size:10px;color:#667085}.phf-pc-legend{display:grid;gap:5px;font-size:11px}.phf-pc-legend span{display:grid;grid-template-columns:10px 1fr auto;gap:5px;align-items:center}.phf-pc-legend i{height:10px}.phf-pc-2b{overflow:auto}.phf-pc-cols{height:205px;min-width:850px;display:flex;align-items:flex-end;gap:8px;padding:0 4px;border-bottom:1px solid #9aa3ad}.phf-pc-col{height:100%;min-width:82px;flex:1;display:grid;grid-template-rows:auto 1fr auto 34px;align-items:end;text-align:center;font-size:10px}.phf-pc-col i{width:62%;justify-self:center}.phf-pc-col em{font-style:normal;line-height:1.2;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.phf-pc-2c{display:grid;grid-template-columns:minmax(250px,1fr) minmax(300px,1.2fr);gap:20px;align-items:center}.phf-pc-2c>div:first-child{display:grid;grid-template-columns:128px 1fr;gap:10px;align-items:center}.phf-pc-summary p{display:flex;justify-content:space-between;gap:12px;margin:0;padding:5px 0;border-bottom:1px solid #edf1f0;font-size:12px}.phf-pc-summary .is-f{font-weight:800;border-top:2px solid #9aa3ad;margin-top:5px}.phf-pc-summary .is-g{color:#8a4b08}.phf-pc-summary .is-h{font-size:14px;font-weight:800;color:#075e33}@media(max-width:760px){.phf-pc-2a,.phf-pc-2c{grid-template-columns:1fr}.phf-pc-donutbox,.phf-pc-2c>div:first-child{justify-content:center}}

/* 1.74.25 UI polish — presentation only. 2D (.phf-pc-2c / .phf-payroll-composition) is intentionally untouched. */
/* 2A/2B/2C tables: F and H share the existing green rule above.
   phf-training-hub.css forces `td, span {font-weight:400 !important}` globally, so the
   bold weight must be !important here; these class selectors outrank that bare td/span. */
.phf-payroll-cost-table td.c-payroll-cost-f,
.phf-payroll-cost-table td.c-payroll-cost-h,
.phf-payroll-cost-table td.c-payroll-cost-h b,
.phf-payroll-cost-table th .phf-payroll-cost-label{font-weight:700 !important}
/* Same file also forces `th {color:#2b3a32 !important}`; keep F/H header titles in the report green. */
.phf-payroll-cost-table th.c-payroll-cost-f,
.phf-payroll-cost-table th.c-payroll-cost-h{color:#075e33 !important}
/* 2C: short unit names stay on one line. */
[data-payroll-cost-section="cost-usage-unit"] .phf-payroll-cost-table th:first-child,
[data-payroll-cost-section="cost-usage-unit"] .phf-payroll-cost-table td:first-child{min-width:96px;white-space:nowrap;overflow-wrap:normal}
/* 2A/2C charts (both use .phf-pc-2a): text readability only. */
.phf-pc-2a .phf-pc-bar>b{font-size:12.5px;font-weight:800;color:#14261c}
.phf-pc-2a .phf-pc-bar em{inset:3px 4px auto auto;padding:0 5px;line-height:16px;font-size:12px;font-weight:800;color:#0f2419;background:rgba(255,255,255,.9)}
.phf-pc-2a .phf-pc-legend{gap:6px;font-size:12px;color:#1d2b24}
.phf-pc-2a .phf-pc-legend b{font-weight:800;color:#0f2419}
.phf-pc-2a .phf-pc-donut b{color:#0f2419}
.phf-pc-2a .phf-pc-donut small{color:#4a5752;font-weight:700}
/* 2B chart: stronger centred department labels, breathing room under the %. */
.phf-pc-2b .phf-pc-cols{height:215px}
.phf-pc-2b .phf-pc-col{grid-template-rows:auto 1fr auto 44px}
.phf-pc-2b .phf-pc-col>b{padding-bottom:3px;font-size:11px;font-weight:800;color:#14261c}
.phf-pc-2b .phf-pc-col small{padding-top:3px;font-size:10.5px;color:#5b6770}
.phf-pc-2b .phf-pc-col em{align-self:start;justify-self:center;max-width:100%;padding:7px 2px 0;font-size:12px;font-weight:700;line-height:1.25;color:#1b2a22;text-align:center}
/* Chart Intelligence V1: "x NV · CP y%" meta + one restrained tooltip (2A–2D). Chart types/colours/layout unchanged. */
.phf-pc-2a .phf-pc-bar>b small{display:block;margin-top:1px;font-size:11px;font-weight:600;color:#4a5752;white-space:nowrap}
/* Fixed meta row so a wrapped label never shrinks one column's bar area (bars stay comparable). */
.phf-pc-2b .phf-pc-col{grid-template-rows:auto 1fr 30px 44px}
.phf-pc-2b .phf-pc-col small{align-self:start;line-height:1.25}
.phf-pc-tip{position:fixed;z-index:10000;max-width:320px;padding:8px 10px;border:1px solid #9aa3ad;border-radius:2px;background:#fff;color:#14261c;box-shadow:0 2px 6px rgba(16,24,20,.14);font-size:12px;line-height:1.4;pointer-events:none}
.phf-pc-tip[hidden]{display:none}
.phf-pc-tip small{display:block;font-size:10.5px;font-weight:700;text-transform:uppercase;color:#5b6770}
.phf-pc-tip b{display:block;margin-bottom:4px;font-weight:800}
.phf-pc-tip p{display:flex;justify-content:space-between;gap:14px;margin:0;padding:2px 0;border-top:1px solid #edf1f0}
.phf-pc-tip p em{font-style:normal;font-weight:700;white-space:nowrap}
/* 2E/2F comparison: alignment + variance language. */
.phf-payroll-comparison .phf-payroll-comparison-table th{text-align:center;vertical-align:middle}
.phf-payroll-comparison .phf-payroll-comparison-table td,
.phf-payroll-comparison .phf-payroll-comparison-table td.c-num{text-align:center}
.phf-payroll-comparison .phf-payroll-comparison-table td:first-child,
.phf-payroll-comparison .phf-payroll-comparison-table.is-employee tbody tr:not(.phf-payroll-period-total) td:nth-child(2){text-align:left}
.phf-payroll-comparison .phf-payroll-comparison-table td.is-up{color:#b42318;font-weight:700}
.phf-payroll-comparison .phf-payroll-comparison-table td.is-down{color:#175cd3;font-weight:700}
.phf-payroll-comparison .phf-payroll-comparison-table td.is-new{color:#075e33;font-weight:700}
.phf-payroll-comparison .phf-payroll-comparison-table td.is-flat{color:#5d6b65;font-weight:400}
.phf-payroll-comparison .phf-payroll-comparison-table td.is-delta-up{color:#a33a32}
.phf-payroll-comparison .phf-payroll-comparison-table td.is-delta-down{color:#2f5fa8}
.phf-payroll-comparison .phf-payroll-comparison-table td.is-delta-flat{color:#5d6b65}
