/* version 4: bonuses, payroll and payslips, salary bands, one-on-ones,
   detailed reviews and personal papers. Reuses style.css tokens. */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.grow { flex: 1; min-width: 180px; }

/* salaries */
.bonus-sw { background: #3f4451; }
.bands-table input { width: 120px; text-align: right; }
.payroll-table td, .payroll-table th { white-space: nowrap; }
.payroll-table .bank-input { width: 170px; font-size: 13px; padding: 5px 8px; }
.payroll-table tfoot td { border-top: 2px solid var(--line); border-bottom: 0; }

/* payslip: prints on one page */
.payslip-actions { margin-bottom: 14px; }
.payslip { max-width: 720px; }
.payslip-head { border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 16px; }
.payslip-company { font-size: 20px; letter-spacing: -0.01em; }
.payslip-who { margin-bottom: 16px !important; }
.payslip-lines thead th { padding-top: 16px; }
.payslip-net { margin-top: 16px; padding: 14px 16px; border-radius: 8px; background: #f3f7ff; border: 1px solid #d6e2ff; font-size: 18px; }
.payslip-net strong { font-size: 24px; font-variant-numeric: tabular-nums; }
@media print {
  .payslip { border: 0; padding: 0; max-width: none; }
  .payslip-net { background: none; border: 1px solid #999; }
}

/* reviews: sub-criteria */
fieldset.area legend .area-avg { display: inline-block; min-width: 34px; margin-left: 6px; padding: 1px 8px; border-radius: 99px;
  background: #eef3ff; color: var(--accent); font-weight: 700; font-size: 13px; text-align: center; }
fieldset.area legend .area-avg:empty { display: none; }
.sub-crit { display: grid; grid-template-columns: minmax(150px, 1fr) auto; gap: 6px 14px; align-items: center; padding: 8px 0; border-top: 1px dashed var(--line); }
.sub-crit:first-of-type { border-top: 0; }
.sub-crit .sub-comment { grid-column: 1 / -1; font-size: 13px; padding: 6px 10px; }
.sub-crit.compact { grid-template-columns: 1fr; gap: 4px; padding: 6px 0; }
.sub-label { font-size: 14px; }
.score-opt.small span { min-width: 32px; height: 30px; padding: 0 6px; font-size: 13px; }
.self-key { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: #f1ecfb; color: #5a3fa0; vertical-align: 1px; }
ul.sub-list { list-style: none; padding: 6px 0 2px 14px; margin: 6px 0 0; border-left: 2px solid var(--line); }
ul.sub-list li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 14px; border: 0; }
@media (max-width: 640px) { .sub-crit { grid-template-columns: 1fr; } }

/* calibration */
.dist { display: inline-flex; align-items: flex-end; gap: 4px; height: 44px; }
.dist-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; width: 22px; height: 100%; }
.dist-col i { display: block; width: 100%; min-height: 2px; background: var(--accent); border-radius: 3px 3px 0 0; }
.dist-col small { font-size: 11px; color: var(--muted); line-height: 1.2; }

/* one-on-ones */
.weeks-form input[name=weeks] { width: 46px; padding: 4px 6px; font-size: 13px; text-align: center; }
.compliance { display: flex; align-items: center; gap: 8px; min-width: 140px; }
.compliance .meter { flex: 1; margin: 0; }
.private-card { background: #fbfaf6; border-color: #eee3c6; }
.action-row > label { margin-bottom: 8px; }
.action-row > label:first-child { flex: 3; }
.done-item { text-decoration: line-through; color: var(--muted); }
details summary strong { cursor: pointer; }

/* papers and signatures */
.card.attention { border-color: #f3c27a; background: var(--warn-bg); }
.signature-box { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 8px; background: var(--ok-bg);
  border: 1px solid #c6ebd4; margin-bottom: 12px; }
.signature-box small { overflow-wrap: anywhere; }
ul.docs li .doc-main a { overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .compliance { min-width: 100px; }
  .payroll-table .bank-input { width: 140px; }
}
.salary-table { min-width: 1060px; }
.salary-table th { white-space: nowrap; }
.calib-people { min-width: 980px; } .calib-people td:first-child { white-space: nowrap; }
