/* Batch 5.19 — visual alignment of manual adjustments with accepted RASPA
   profile editors. Changes are scoped to this page, not payroll behavior. */
.r2-adjustments-page {
    gap: 18px;
}
.r2-adjustments-page .r2-accrual-head {
    margin: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--r2-border, #d8dfeb);
}
.r2-adjustments-page .r2-accrual-head h1 {
    margin: 0;
    color: var(--r2-text, #152445);
    font-size: clamp(1.65rem, 2vw, 2.15rem);
    line-height: 1.2;
    letter-spacing: -.025em;
}
.r2-adjustments-page .r2-accrual-context {
    overflow: hidden;
    border-radius: 7px;
}
.r2-adjustments-page .r2-accrual-context>div {
    min-height: 73px;
    padding: 12px 16px;
    gap: 5px;
}
.r2-adjustments-page .r2-accrual-context span {
    font-size: .78rem;
    letter-spacing: 0;
    text-transform: none;
}
.r2-adjustments-page .r2-accrual-toolbar {
    align-items: end;
    gap: 12px;
}
.r2-adjustments-page .r2-accrual-toolbar .r2-search-field {
    display: grid;
    flex: 1 1 220px;
    gap: 6px;
    width: min(100%, 350px);
    max-width: 350px;
    margin: 0;
}
.r2-adjustments-page .r2-accrual-toolbar .r2-search-field .r2-form-label {
    margin: 0;
    font-weight: 650;
}
.r2-adjustments-page .r2-accrual-toolbar .r2-search-field input {
    display: block;
    min-height: 42px;
    width: 100%;
    max-width: none;
    margin: 0;
}
.r2-adjustments-page .r2-accrual-toolbar .r2-filter-group {
    margin-left: auto;
}
.r2-adjustments-page .r2-accrual-list {
    overflow: hidden;
    border: 1px solid var(--r2-border, #d8dfeb);
    border-radius: 8px;
    background: #fff;
}
.r2-adjustments-page .r2-accrual-teacher {
    border-bottom: 1px solid var(--r2-border, #d8dfeb);
}
.r2-adjustments-page .r2-accrual-teacher:last-child { border-bottom: 0; }
.r2-adjustments-page .r2-accrual-teacher__summary {
    min-height: 65px;
    padding: 12px 16px;
    gap: 16px;
}
.r2-adjustments-page .r2-accrual-teacher__summary:hover {
    background: #f8fafd;
}
.r2-adjustments-page .r2-accrual-teacher__summary:focus-visible {
    outline: 2px solid var(--r2-primary, #244d8d);
    outline-offset: -2px;
}
.r2-adjustments-page .r2-accrual-teacher[open]>.r2-accrual-teacher__summary {
    background: var(--r2-primary-soft, #eaf1fa);
    box-shadow: inset 3px 0 0 var(--r2-primary, #244d8d);
}
.r2-adjustments-page .r2-accrual-teacher__identity {
    min-width: 0;
}
.r2-adjustments-page .r2-accrual-teacher__identity strong {
    color: var(--r2-text, #172543);
    font-size: .9rem;
    font-weight: 650;
    overflow-wrap: anywhere;
}
.r2-adjustments-page .r2-accrual-teacher__identity small { font-size: .78rem; }
.r2-adjustments-page .r2-accrual-teacher__state {
    flex: none;
    gap: 12px;
    font-size: .85rem;
}
.r2-adjustments-page .r2-adjustments-breakdown {
    display: grid;
    gap: 2px;
    min-width: 0;
    text-align: right;
}
.r2-adjustments-page .r2-adjustments-breakdown small {
    color: var(--r2-text-muted, #68778d);
    font-size: .76rem;
    white-space: nowrap;
}
.r2-adjustments-page .r2-adjustments-breakdown strong {
    color: var(--r2-text, #172543);
    font-size: .84rem;
    font-weight: 650;
}
.r2-adjustments-page .r2-accrual-teacher__body {
    gap: 14px;
    padding: 17px 18px 20px;
    background: #fff;
}
.r2-adjustments-page .r2-inline-create {
    padding: 0;
    border-top: 0;
    border-bottom: 1px solid var(--r2-border, #d8dfeb);
}
.r2-adjustments-page .r2-inline-create>summary {
    position: relative;
    padding: 0 22px 12px 0;
    color: var(--r2-primary, #244d8d);
    font-size: .95rem;
    font-weight: 650;
    list-style: none;
    cursor: pointer;
}
.r2-adjustments-page .r2-inline-create>summary::-webkit-details-marker { display: none; }
.r2-adjustments-page .r2-inline-create>summary::after {
    content: '⌄';
    position: absolute;
    top: -3px;
    right: 6px;
    font-size: 1.1rem;
    transform: rotate(-90deg);
    transition: transform .15s ease;
}
.r2-adjustments-page .r2-inline-create[open]>summary::after { transform: rotate(0); }
.r2-adjustments-page .r2-inline-create>summary:focus-visible {
    outline: 2px solid var(--r2-primary, #244d8d);
    outline-offset: 2px;
}
.r2-adjustments-page .r2-adjustment-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 8px 0 18px;
}
.r2-adjustments-page .r2-adjustment-form .r2-form-field {
    display: grid;
    align-content: start;
    gap: 7px;
    margin: 0;
}
.r2-adjustments-page .r2-adjustment-form .r2-form-label {
    margin: 0;
    font-size: .81rem;
    font-weight: 650;
}
.r2-adjustments-page .r2-adjustment-form :is(.r2-input, .r2-select) {
    width: 100%;
    min-height: 42px;
    height: 42px;
    margin: 0;
    padding-inline: 12px;
    border-radius: 8px;
    box-sizing: border-box;
}
.r2-adjustments-page .r2-adjustment-form input[type=number] {
    appearance: textfield;
    -moz-appearance: textfield;
}
.r2-adjustments-page .r2-adjustment-form input[type=number]::-webkit-inner-spin-button,
.r2-adjustments-page .r2-adjustment-form input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.r2-adjustments-page .r2-adjustment-form .r2-form-field--full:last-child {
    display: flex;
    justify-content: flex-start;
    padding-top: 0;
}
.r2-adjustments-page .r2-adjustment-form .btn.primary {
    min-height: 40px;
    box-shadow: none;
}
.r2-adjustments-page .r2-adjustment-history {
    width: 100%;
    min-width: 0;
}
.r2-adjustments-page .r2-adjustment-history>.r2-empty-state {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding: 16px;
    border-radius: 6px;
}
.r2-adjustments-page .r2-adjustment-entry {
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 12px 2px;
}
.r2-adjustments-page .r2-adjustment-entry__amount { flex-wrap: wrap; }
.r2-adjustments-page .r2-adjustment-entry__type { white-space: nowrap; }
.r2-adjustments-page .r2-adjustment-filter-empty {
    margin: 0;
    padding: 24px 16px;
    text-align: center;
    color: var(--r2-text-muted, #68778d);
    background: #fff;
    border: 1px dashed var(--r2-border, #d8dfeb);
    border-radius: 7px;
}
.r2-adjustments-page .r2-adjustment-filter-empty[hidden] { display: none !important; }
@media(max-width: 900px) {
    .r2-adjustments-page .r2-adjustment-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width: 700px) {
    .r2-adjustments-page .r2-accrual-context { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .r2-adjustments-page .r2-accrual-context>div:nth-child(2) { border-right: 0; }
    .r2-adjustments-page .r2-accrual-toolbar .r2-search-field { max-width: 100%; width: 100%; }
    .r2-adjustments-page .r2-accrual-toolbar .r2-filter-group { margin-left: 0; }
    .r2-adjustments-page .r2-adjustment-form { grid-template-columns: 1fr; }
    .r2-adjustments-page .r2-adjustment-entry { grid-template-columns: 1fr; }
    .r2-adjustments-page .r2-adjustments-breakdown small { white-space: normal; }
}
@media(max-width: 420px) {
    .r2-adjustments-page .r2-accrual-context { grid-template-columns: 1fr; }
    .r2-adjustments-page .r2-accrual-context>div { border-right: 0; }
}
