/* ===== Step 6a: wages, reports, pay rates ===== */
.cost { display: block; font-size: 12px; font-weight: 800; color: var(--gold-dark); }
.rg-grand .cost { color: var(--butter); }
.rg-total { flex-direction: column; gap: 2px; display: flex; align-items: center; justify-content: center; }
.ph { font-style: normal; font-size: 10.5px; font-weight: 900; color: var(--peach-ink); background: var(--peach); padding: 1px 6px; border-radius: 6px; margin-top: 2px; }
.stat.money { background: var(--butter); }
.stat.money b, .stat.money span { color: var(--butter-ink); }
.day-money { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--butter); color: var(--butter-ink); border-radius: 14px; padding: 8px 12px; margin: -4px 0 12px; font-size: 14px; font-weight: 700; }
.day-money .link-btn { margin: 0; color: var(--butter-ink); }
.btn[aria-pressed] { min-height: 40px; }

.export-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.rep-table { padding: 4px 8px; overflow-x: auto; }
table.rep { width: 100%; border-collapse: collapse; }
table.rep th, table.rep td { padding: 10px 8px; border-top: 1px solid var(--line-soft); text-align: left; vertical-align: middle; font-weight: 600; }
table.rep thead th { border-top: 0; font-size: 12px; font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
table.rep tfoot th, table.rep tfoot td { border-top: 2px solid var(--line); font-weight: 900; color: var(--olive-dark); }
table.rep .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.rep .st { text-align: right; white-space: nowrap; }
table.rep .diff { color: var(--danger-ink); font-weight: 800; }
.rep-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rep-name .avatar { border: 0; width: 36px; height: 36px; font-size: 13px; flex: none; }
.rep-name b { display: block; }
.rep-name small { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.rep .pill .short { display: none; }
.wide-only { display: none; }
@media (min-width: 760px) { table.rep .wide-only { display: table-cell; } }
@media (max-width: 520px) {
  table.rep th, table.rep td { padding: 9px 5px; }
  .rep-name .avatar { display: none; }
  .rep-name small { display: none; }
  .rep .pill .long { display: none; }
  .rep .pill .short { display: inline; }
  .rep .pill.green { padding: 4px 7px; }
}

.pay-card { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.pay-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 12px; }
@media (min-width: 700px) { .pay-grid { grid-template-columns: repeat(3, 1fr); } }
.pay-card label, .pay-grid label { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; font-weight: 800; color: var(--muted); }
.num-in { display: flex; align-items: center; gap: 6px; font-weight: 800; color: var(--olive-dark); }
.pay-card input, .rate-row input, .rate-row select, .hol-add input {
  font: inherit; font-size: 16px; font-weight: 700; color: var(--ink); min-height: 46px; padding: 0 12px;
  border-radius: 12px; border: 2px solid var(--line); background: var(--cream); width: 100%; min-width: 0;
}
.pay-card input:focus, .rate-row input:focus, .rate-row select:focus, .hol-add input:focus { outline: none; border-color: var(--olive); background: var(--card); }
.rate-list { padding: 6px; }
.rate-row { display: grid; grid-template-columns: 36px 1fr 120px 120px; gap: 10px; align-items: center; padding: 8px; border-top: 1px solid var(--line-soft); }
.rate-row:first-child { border-top: 0; }
.rate-row .avatar { width: 36px; height: 36px; font-size: 13px; border: 0; }
.rate-row b { display: flex; flex-direction: column; line-height: 1.2; }
.rate-row small { font-size: 12px; color: var(--muted); }
@media (max-width: 480px) { .rate-row { grid-template-columns: 36px 1fr; } .rate-row select, .rate-row .num-in { grid-column: 2; } }
.hol-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.hol-row span { font-size: 14px; color: var(--muted); font-weight: 700; min-width: 170px; }
.hol-row b { flex: 1; }
.hol-add { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
@media (max-width: 480px) { .hol-add { grid-template-columns: 1fr; } }
.muted-dash { color: var(--muted); font-weight: 800; }
@media (max-width: 520px) { table.rep thead th { font-size: 10.5px; letter-spacing: .02em; } }
@media (max-width: 520px) {
  .rep-table { padding: 2px 4px; }
  table.rep th, table.rep td { padding: 9px 3px; font-size: 14.5px; }
  .rep .pill { font-size: 11px; padding: 3px 6px; }
}
@media (max-width: 520px) {
  .hol-row { flex-wrap: wrap; gap: 2px 10px; }
  .hol-row span { min-width: 0; width: 100%; font-size: 13px; }
  .hol-row b { flex: 1; min-width: 0; }
}

/* ===== award pay ===== */
.stat small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.stat.money small { color: var(--butter-ink2); }
table.rules { width: 100%; border-collapse: collapse; font-size: 14px; }
table.rules th, table.rules td { padding: 8px 6px; border-top: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
table.rules thead th { border-top: 0; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
table.rules tbody th { font-weight: 800; color: var(--olive-dark); }
table.rules td { font-weight: 800; }
table.rules small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 700; }
@media (max-width: 560px) { table.rules { font-size: 12.5px; } table.rules th, table.rules td { padding: 6px 3px; } }
.levels { gap: 6px; }
.level-row { display: flex !important; flex-direction: row !important; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0; border-top: 1px solid var(--line-soft); color: var(--ink) !important; font-weight: 700 !important; }
.level-row .num-in { flex: none; width: 120px; }
.rate-row2 { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-top: 1px solid var(--line-soft); }
.rate-row2:first-child { border-top: 0; }
.rate-row2 .avatar { width: 36px; height: 36px; font-size: 13px; border: 0; flex: none; }
.rate-row2 .who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rate-row2 small { color: var(--muted); font-weight: 700; font-size: 12.5px; }
.pay-fields { display: flex; flex-direction: column; gap: 12px; padding: 12px; border-radius: 16px; background: var(--olive-softer); }
.rate-preview { margin: 0; font-size: 14px; font-weight: 700; color: var(--olive-dark); line-height: 1.5; }
.warn-text { color: var(--danger-ink); }

.cost.super { color: var(--muted); font-weight: 700; }
.rg-grand .cost.super { color: var(--butter); opacity: .85; }
.stat.wide-stat { min-width: 220px; }
.stat .split { display: flex; gap: 18px; }
.stat .split small { display: block; font-size: 12px; font-weight: 800; color: var(--butter-ink2); }
