/* Monthly deadline policy UI alignment */
section[aria-labelledby="monthly-evaluation-setup-title"] .setup-section-body > p.setup-help:first-of-type {
    display: none;
}

.monthly-policy-notice {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin: 0 0 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid #d8e4f2;
    border-radius: 0.75rem;
    background: #f6f9fd;
    color: #25364a;
}

.monthly-policy-notice strong {
    flex: 0 0 auto;
    color: #183b66;
}

.monthly-policy-notice span {
    line-height: 1.55;
}

.monthly-correction-trigger {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 1200;
    border: 0;
    border-radius: 999px;
    padding: 0.8rem 1.15rem;
    background: #183b66;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 0.75rem 2rem rgba(24, 59, 102, 0.24);
    cursor: pointer;
}

.administration-goal-correction-trigger {
    bottom: 5rem;
}

.monthly-correction-trigger:hover {
    filter: brightness(1.06);
}

.monthly-correction-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1290;
    background: rgba(18, 29, 43, 0.46);
}

.monthly-correction-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1300;
    display: flex;
    flex-direction: column;
    width: min(640px, 94vw);
    background: #fff;
    box-shadow: -1rem 0 3rem rgba(18, 29, 43, 0.2);
}

.monthly-correction-panel > header,
.monthly-correction-panel > footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e6ebf1;
}

.monthly-correction-panel > footer {
    justify-content: flex-end;
    border-top: 1px solid #e6ebf1;
    border-bottom: 0;
}

.monthly-correction-panel h2,
.monthly-correction-panel h3,
.monthly-correction-panel p {
    margin: 0;
}

.monthly-correction-panel header p {
    margin-top: 0.25rem;
    color: #66768a;
}

.monthly-correction-eyebrow {
    display: block;
    margin-bottom: 0.2rem;
    color: #61738b;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.monthly-correction-close {
    border: 0;
    background: transparent;
    color: #53657b;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.monthly-correction-policy {
    display: grid;
    gap: 0.35rem;
    margin: 1rem 1.25rem 0;
    padding: 0.9rem 1rem;
    border-radius: 0.65rem;
    background: #f6f9fd;
    color: #33475f;
}

.monthly-correction-policy small {
    color: #65748a;
}

.monthly-correction-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem 1.5rem;
}

.monthly-correction-group {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

.monthly-correction-group h3 {
    color: #243a55;
    font-size: 1rem;
}

.monthly-correction-item {
    padding: 0.9rem;
    border: 1px solid #e3e9f0;
    border-radius: 0.7rem;
    background: #fff;
}

.monthly-correction-item-title {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.monthly-correction-item-title span {
    color: #65748a;
    font-size: 0.82rem;
}

.monthly-correction-grid {
    display: grid;
    grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr);
    gap: 0.75rem;
}

.monthly-correction-grid label,
.monthly-correction-field {
    display: grid;
    gap: 0.35rem;
    color: #44566d;
    font-size: 0.84rem;
    font-weight: 600;
}

.monthly-correction-grid input,
.monthly-correction-grid select,
.monthly-correction-grid textarea,
.monthly-correction-field input,
.monthly-correction-field select,
.monthly-correction-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    padding: 0.6rem 0.7rem;
    background: #fff;
    color: #1f2f43;
    font: inherit;
    font-weight: 400;
}

.monthly-correction-reason {
    margin-top: 1.25rem;
}

.monthly-correction-reason em {
    color: #b42318;
    font-style: normal;
}

.monthly-correction-reason small {
    color: #65748a;
    font-weight: 400;
}

@media (max-width: 700px) {
    .monthly-policy-notice {
        display: grid;
    }

    .monthly-correction-trigger {
        right: 1rem;
        bottom: 4.75rem;
    }

    .administration-goal-correction-trigger {
        bottom: 8.25rem;
    }

    .monthly-correction-panel {
        width: 100vw;
    }

    .monthly-correction-grid {
        grid-template-columns: 1fr;
    }
}

/* Approved compact correction modal and independent exception entry. */
.fidelity-correction-entry { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:0 0 10px; padding:10px 14px; border:1px dashed #f9a86c; border-radius:8px; background:#fffaf5; }.fidelity-correction-entry strong { display:block; font-size:12px; }.fidelity-correction-entry span { display:block; font-size:10.5px; color:#64748b; margin-top:3px; }.fidelity-correction-entry .monthly-correction-trigger { position:static; flex-shrink:0; padding:7px 11px; border-radius:6px; background:#e87722; box-shadow:none; font-size:12px; }
.monthly-policy-notice { padding:9px 13px; margin-bottom:10px; font-size:11.5px; border-radius:6px; }
.monthly-correction-panel { top:5vh; left:50%; right:auto; bottom:auto; transform:translateX(-50%); width:min(760px,92vw); max-height:90vh; border-radius:9px; overflow:hidden; }.monthly-correction-panel>header { padding:16px 20px; gap:12px; align-items:start; }.monthly-correction-panel h2 { font-size:15.5px; }.monthly-correction-panel header p { font-size:11px; }.monthly-correction-eyebrow { font-size:10px; color:#c8440a; }.monthly-correction-panel>footer { padding:12px 20px; gap:8px; }
.monthly-correction-policy { margin:14px 20px 0; padding:10px 12px; border-left:3px solid #f59e0b; border-radius:6px; background:#fffbeb; color:#92400e; font-size:11.5px; }.monthly-correction-policy small { color:#7c4a05; }.monthly-correction-scroll { padding:14px 20px; }.monthly-correction-group { gap:8px; margin-top:12px; }.monthly-correction-group h3 { font-size:12.5px; }.monthly-correction-item,.administration-goal-correction-item { padding:12px 14px; border:1px solid #e2e8f0; border-radius:6px; }.monthly-correction-item-title { gap:8px; margin-bottom:8px; font-size:12.5px; }.monthly-correction-grid { gap:8px 14px; }.monthly-correction-grid label,.monthly-correction-field { gap:4px; font-size:11.5px; }.monthly-correction-grid label>span,.monthly-correction-field>span { font-size:10.5px; }.monthly-correction-reason { margin-top:12px; padding-top:10px; border-top:1px solid #e2e8f0; }.monthly-correction-reason em { font-size:10px; }.monthly-correction-grid.fidelity-correction-ratings { grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; }.fidelity-correction-ratings .rating-cell { padding:8px 9px; border:1px solid #e2e8f0; border-radius:7px; background:#fafafa; }
@media(max-width:600px) { .monthly-correction-panel { top:2vh; width:96vw; max-height:96vh; }.monthly-correction-grid.fidelity-correction-ratings { grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); }.fidelity-correction-entry { align-items:start; flex-direction:column; } }
