/* F2.7 — read-only class-version preview. Scope to this subpage. */
.r2-salary-history {max-width: var(--r2-salary-content-max, 1300px); margin-inline: auto; display: grid; gap: 18px; color: var(--r2-text, #152445);}
.r2-salary-history .r2-salary-data-heading {margin: 0; align-items: center;}
.r2-salary-history .r2-salary-data-heading h1 {margin: 0; font-size: clamp(1.5rem, 2.3vw, 2rem);}
.r2-salary-history-back {margin-bottom: 0;}
.r2-salary-history-context {grid-template-columns: 1fr 1fr; margin: 0;}
.r2-salary-history-variant {background: #fff; border: 1px solid var(--r2-border, #dce3ee); border-radius: 9px; padding: 12px 18px;}
.r2-salary-history-variant fieldset {display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 0; padding: 0; border: 0;}
.r2-salary-history-variant legend {float: left; margin: 0 20px 0 0; font-size: .9rem; font-weight: 700;}
.r2-salary-history-variant label {display: inline-flex; align-items: center; gap: 7px; cursor: pointer;}
.r2-salary-history-panel {border: 1px solid var(--r2-border, #dce3ee); border-radius: 9px; padding: 18px; background: #fff; margin-bottom: 17px;}
.r2-salary-history-panel__heading {display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 12px;}
.r2-salary-history-panel__heading h2 {font-size: 1.13rem; line-height: 1.35; margin: 0;}
.r2-salary-history-panel__heading > span {color: var(--r2-text-muted, #687797); font-size: .87rem;}
.r2-salary-history-note {font-size: .91rem; margin: 8px 0 16px; color: var(--r2-text-muted, #687797);}
.r2-salary-history-search {display: grid; gap: 6px; font-weight: 650; font-size: .86rem; max-width: 340px; margin-bottom: 10px;}
.r2-salary-history input[type='search'], .r2-salary-history input[type='date'], .r2-salary-history select {min-height: 42px; border: 1px solid var(--r2-border, #d0d8e5); border-radius: 8px; background: #fff; color: var(--r2-text, #152445); padding: 8px 11px; width: 100%;}
.r2-salary-history input:focus-visible, .r2-salary-history select:focus-visible, .r2-salary-history button:focus-visible, .r2-salary-history summary:focus-visible {outline: 2px solid #24529d; outline-offset: 2px;}
.r2-salary-history-table-wrap {border: 1px solid var(--r2-border, #dce3ee); border-radius: 8px; max-height: 420px; overflow: auto;}
.r2-salary-history-table {width: 100%; border-collapse: collapse; text-align: left; font-size: .93rem;}
.r2-salary-history-table th, .r2-salary-history-table td {border-bottom: 1px solid var(--r2-border, #e4e9f1); padding: 9px 11px; vertical-align: middle;}
.r2-salary-history-table thead th {position: sticky; top: 0; background: #f7f9fc; z-index: 1;}
.r2-salary-history-table tbody th {font-weight: 650; width: 28%;}
.r2-salary-history-table tbody tr:last-child td, .r2-salary-history-table tbody tr:last-child th {border-bottom: 0;}
.r2-salary-history-unavailable {color: #a15d00;}
.r2-salary-history-changes {display: grid; gap: 9px; margin-bottom: 12px;}
.r2-salary-history-change {display: grid; grid-template-columns: minmax(145px, .65fr) minmax(140px, .9fr) minmax(220px, 1.3fr) auto; gap: 10px; align-items: end; background: #fafbfd; border: 1px solid #e5eaf1; border-radius: 8px; padding: 10px;}
.r2-salary-history-change label {display: grid; gap: 6px; font-size: .85rem; font-weight: 650; min-width: 0;}
.r2-salary-history-change > button {min-height: 42px;}
.r2-salary-history-footer {display: flex; align-items: center; flex-wrap: wrap; gap: 15px; margin: 4px 0 18px;}
.r2-salary-history-footer [role='status'] {font-size: .89rem; color: #955b00;}
.r2-salary-history-error {border: 1px solid #eac6ae; border-radius: 8px; padding: 12px 15px; color: #803d19; background: #fff7f0;}
.r2-salary-history-error ul {margin: 9px 0 0; padding-left: 20px;}
.r2-salary-history-stats {display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 15px;}
.r2-salary-history-stats > div {min-width: 185px; display: grid; gap: 4px; border: 1px solid #e1e7f1; border-radius: 8px; background: #f8fafc; padding: 11px 14px;}
.r2-salary-history-stats span {font-size: .86rem; color: var(--r2-text-muted, #687797);}
.r2-salary-history-stats strong {font-size: 1.25rem;}
.r2-salary-history-phase {border-top: 1px solid #e0e7f0; padding: 11px 0;}
.r2-salary-history-phase > summary {display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; cursor: pointer; font-size: .92rem; padding: 5px 0;}
.r2-salary-history-phase > summary span {color: var(--r2-text-muted, #687797);}
.r2-salary-history-phase-content {padding: 10px 2px;}
.r2-salary-history-phase-content p {margin: 4px 0 11px;}
.r2-salary-history-phase-content details {margin-top: 13px;}
@media (max-width: 760px) {
  .r2-salary-history-panel {padding: 12px;}
  .r2-salary-history-change {grid-template-columns: 1fr 1fr;}
  .r2-salary-history-change > label:nth-child(3) {grid-column: 1 / -1;}
  .r2-salary-history-change > button {grid-column: 1 / -1; justify-self: start;}
  .r2-salary-history-table {min-width: 420px;}
  .r2-salary-history-variant legend {float: none; margin: 0 0 8px;}
}
@media (max-width: 460px) { .r2-salary-history-change {grid-template-columns: 1fr;} .r2-salary-history-change > label:nth-child(3) {grid-column: 1;} }
/* F2.8: confirmation is deliberately separate from the preview form. */
.r2-salary-history-transfer {border-top:1px solid var(--r2-border,#dce3ee); padding-top:18px; margin-top:16px;}
.r2-salary-history-transfer h3 {margin:0; font-size:1.1rem;}
.r2-salary-history-transfer-list {max-height:400px; margin-bottom:14px;}
.r2-salary-history-transfer-list tbody th {width:auto;}
.r2-salary-history-transfer-list input[type='checkbox'] {width:18px; height:18px; accent-color:#22559e; cursor:pointer;}
.r2-salary-history-transfer-list input[type='checkbox']:disabled {cursor:not-allowed;}
.r2-salary-history-blocked {color:#92500a;}
.r2-salary-history-transfer button:disabled {opacity:.6; cursor:not-allowed;}
.r2-salary-history-transfer-list th:first-child,.r2-salary-history-transfer-list td:first-child {width:82px; text-align:center;}

.r2-salary-history-baseline-ack{display:flex;align-items:center;gap:8px;font-size:.89rem;font-weight:600;min-height:42px}
.r2-salary-history-baseline-ack input{width:18px;height:18px;accent-color:#22539a}

/* F2.19: align destructive actions with the actual input control baseline. */
.r2-salary-history-change{align-items:start;}
.r2-salary-history-change > button[data-salary-history-remove]{align-self:end; justify-self:start; margin:0; min-height:42px; white-space:nowrap;}
.r2-salary-history-table-wrap{max-height:390px;}

.r2-salary-history-compare{margin-top:8px;font-size:12px;color:#435571;}
.r2-salary-history-compare summary{cursor:pointer;color:#22589d;font-weight:600;}
.r2-salary-history-compare ul{margin:8px 0 0;padding:0;list-style:none;display:grid;gap:5px;}
.r2-salary-history-compare li{display:grid;gap:2px;padding:7px 10px;border:1px solid #e3e8f0;border-radius:6px;}
.r2-salary-history-compare span,.r2-salary-history-compare small{font-weight:400;color:#60718b;}
