/* Scoped to new components, including modals portalled out of .lcc-app into body. */
.lcc-accountant-adjustment,
.lcc-adjustment-history { min-width: 0; margin: 16px 0; padding: 16px; border: 1px solid #c8deda; border-radius: 12px; background: #f6fbfa; color: #173a50; }
.lcc-accountant-adjustment summary,
.lcc-adjustment-history summary { cursor: pointer; font-weight: 700; line-height: 1.5; }
.lcc-accountant-adjustment p,
.lcc-adjustment-history p { line-height: 1.6; }
.lcc-adjustment-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; min-width: 0; margin: 16px 0; padding: 12px; border: 1px solid #d7e4e7; border-radius: 10px; }
.lcc-adjustment-fields legend { padding: 0 5px; font-weight: 700; }
.lcc-adjustment-group { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 4px 0 8px; font-size: 12px; cursor: pointer; }
.lcc-adjustment-group input { width: 17px; height: 17px; accent-color: #087b72; }
.lcc-adjustment-choice,
.lcc-adjustment-confirm { display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; cursor: pointer; }
.lcc-adjustment-choice { padding: 10px; border-radius: 8px; background: #fff; }
.lcc-adjustment-choice input,
.lcc-adjustment-confirm input { flex: 0 0 17px; width: 17px; height: 17px; margin-top: 3px; accent-color: #087b72; }
.lcc-adjustment-choice span { min-width: 0; }
.lcc-adjustment-choice strong,
.lcc-adjustment-choice small,
.lcc-adjustment-table td:first-child span { display: block; }
.lcc-adjustment-choice small { margin-top: 4px; color: #526773; }
.lcc-adjustment-choice em { display: inline-block; margin-top: 5px; color: #92400e; font-size: 11px; font-style: normal; font-weight: 700; }
.lcc-adjustment-choice.is-soft { border: 1px solid #f1c96e; background: #fffbeb; }
.lcc-accountant-adjustment .lcc-builder-field,
.lcc-adjustment-undo .lcc-builder-field { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; }
.lcc-adjustment-preview { margin-top: 18px; padding-top: 14px; border-top: 2px solid #087b72; }
.lcc-adjustment-preview .lcc-table-wrap { max-width: 100%; overflow-x: auto; }
.lcc-adjustment-table { width: 100%; min-width: 520px; }
.lcc-adjustment-table th,.lcc-adjustment-table td { vertical-align: middle; }
.lcc-adjustment-table th:first-child,.lcc-adjustment-table td:first-child { text-align: left; }
.lcc-adjustment-table th:not(:first-child),.lcc-adjustment-table td:not(:first-child) { white-space: nowrap; text-align: center; font-variant-numeric: tabular-nums; }
.lcc-adjustment-confirm { margin: 16px 0; padding: 12px; border: 1px solid #b9d9d3; border-radius: 8px; background: #e9f5f1; }
.lcc-adjustment-event,
.lcc-adjustment-undo { margin-top: 12px; padding: 12px; background: #fff; border: 1px solid #d7e4e7; border-radius: 8px; }
.lcc-adjustment-action { min-width: 0; margin-top: 12px; }
[data-lcc-adjustment-error]:not([hidden]) { max-height: 40vh; overflow: auto; padding: 12px; background: #fff3ed; color: #922b19; border: 1px solid #edc5b5; border-radius: 8px; white-space: pre-line; overflow-wrap: anywhere; scroll-margin-block: 16px; }
[data-lcc-adjustment-error]:focus-visible { outline: 3px solid #edc5b5; outline-offset: 2px; }
[data-lcc-adjustment-progress]:not([hidden]) { margin: 8px 0 0; color: #315a56; font-size: 12px; }
.lcc-adjustment-preflight-note { color: #526773; font-size: 12px; }
.lcc-ai-reason { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: -4px 0 10px; }
.lcc-ai-reason [data-lcc-ai-reason-status] { color: #526773; font-size: 12px; line-height: 1.45; }
.lcc-adjustment-soft-warnings { margin: 14px 0; padding: 12px 14px; border: 1px solid #f1c96e; border-radius: 9px; background: #fffbeb; color: #854d0e; }
.lcc-adjustment-soft-warnings ul { margin: 8px 0; padding-left: 20px; }
.lcc-adjustment-soft-warnings p { margin: 8px 0 0; }
.lcc-accountant-adjustment button,
.lcc-adjustment-history button { max-width: 100%; min-height: 36px; white-space: normal; line-height: 1.4; }
.lcc-accountant-adjustment button.lcc-button { background: #087b72 !important; color: #fff !important; -webkit-text-fill-color: #fff !important; }
.lcc-accountant-adjustment button.lcc-print-button,
.lcc-adjustment-history button.lcc-print-button { background: #fff !important; color: #006e66 !important; -webkit-text-fill-color: #006e66 !important; border-color: #87b8b2 !important; }
.lcc-accountant-adjustment button:hover:not(:disabled),
.lcc-adjustment-history button:hover:not(:disabled) { background: #075b55 !important; color: #fff !important; -webkit-text-fill-color: #fff !important; }
.lcc-accountant-adjustment button:focus-visible,
.lcc-adjustment-history button:focus-visible { outline: 3px solid #7cd4c9; outline-offset: 3px; }
.lcc-accountant-adjustment button:disabled,
.lcc-adjustment-history button:disabled { opacity: .55; cursor: not-allowed; }
.lcc-adjustment-outcome { padding: 16px; margin-bottom: 20px; border: 2px solid #087b72; border-radius: 12px; background: #edf8f4; color: #173a50; }
.lcc-adjustment-outcome h3 { margin: 0 0 8px; font-size: 17px; }
.lcc-adjustment-outcome p { line-height: 1.6; }
.lcc-adjustment-outcome .lcc-table-wrap { max-width: 100%; overflow-x: auto; }
.lcc-payroll-help { max-width: 1050px; color: #526773; font-size: 12px; line-height: 1.6; }
.lcc-payroll-source { padding: 10px 12px; border-left: 3px solid #087b72; background: #edf8f4; font-size: 12px; line-height: 1.6; }
.lcc-app .lcc-payroll-detail { display: block; max-width: 210px; margin-top: 5px; color: #526773; font-size: 10px; line-height: 1.5; white-space: normal; }
.lcc-app .lcc-payroll-unresolved { color: #945216; font-weight: 700; }
.lcc-payroll-adjustment-table [data-lcc-salary-formula] { display: block; margin-top: 6px; font-size: 10px; line-height: 1.5; }
@media (max-width: 620px) {
  .lcc-adjustment-fields { grid-template-columns: 1fr; }
  .lcc-accountant-adjustment,
  .lcc-adjustment-history { padding: 10px; }
  .lcc-adjustment-table { display: block; min-width: 0; }
  .lcc-adjustment-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .lcc-adjustment-table tbody,
  .lcc-adjustment-table tr,
  .lcc-adjustment-table td { display: block; width: auto; }
  .lcc-adjustment-table tr + tr { border-top: 2px solid #c8deda; }
  .lcc-adjustment-table td:first-child { white-space: normal; }
  .lcc-adjustment-table td[data-label] { display: grid; grid-template-columns: minmax(75px,1fr) minmax(0,1fr); align-items: center; gap: 10px; white-space: normal; }
  .lcc-adjustment-table td[data-label]::before { content: attr(data-label); font-weight: 700; color: #526773; text-align: left; }
}

/* Explicit actual-amount editing; isolated from historical print layouts. */
.lcc-manual-employee{border:1px solid #d6e3e7;border-radius:10px;padding:12px 16px;margin:12px 0;background:#fff}
.lcc-manual-employee summary{cursor:pointer;font-weight:700;color:#12344d}
.lcc-manual-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0}
.lcc-manual-fields label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#334e68}
.lcc-manual-fields input{width:100%;min-width:0;padding:9px;border:1px solid #b8ccd5;border-radius:6px;font:inherit}
.lcc-manual-tax-label{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.lcc-manual-tax-label select{max-width:100%;padding:8px}
[data-manual-error]{padding:12px;color:#8a1f17;background:#fff1ef;border:1px solid #e6b5af;border-radius:6px;white-space:pre-line}
[data-manual-preview-host]{margin-top:18px}
[data-lcc-manual-payroll] [hidden]{display:none!important}
@media(max-width:650px){.lcc-manual-fields{grid-template-columns:1fr}.lcc-manual-employee{padding:10px}}
.lcc-manual-unknown{grid-column:1/-1;margin:8px 0 0;padding:10px 12px;background:#fff9e8;border-radius:6px;color:#68521e;font-size:13px;line-height:1.45}
.lcc-manual-tax-label{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}.lcc-manual-tax-label select{max-width:100%;padding:8px;border:1px solid #b5c9d3;border-radius:6px;background:#fff}.lcc-manual-tax-help{font-size:12px;color:#526979;line-height:1.4}
