.unmatched-focused-label { display: none; }
:is(#focused-audit-review, .lh-focused-audit-preview) .unmatched-focused-label { display: block; }

#focused-audit-review[hidden] { display: none !important; }
#focused-audit-review {
    position: fixed;
    inset: 0;
    z-index: 12010;
    display: grid;
    place-items: center;
    padding: clamp(16px, 2.4vw, 32px);
    background: rgba(8, 21, 38, 0.60);
    backdrop-filter: blur(3px);
}

:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-audit-shell {
    width: min(95vw, 1460px);
    height: min(90vh, 900px);
    min-height: 560px;
    display: grid;
    grid-template-columns: minmax(410px, 42%) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #cfd9e6;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 34px 92px -30px rgba(8, 21, 38, 0.72), 0 12px 30px -22px rgba(8, 21, 38, 0.4);
}

:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-audit-left {
    position: relative;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #dbe3ed;
    background: #fff;
}

:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-audit-header {
    padding: 18px 64px 17px 22px;
    border-bottom: 1px solid #e6ebf1;
    background: #fff;
}

:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-audit-body {
    min-height: 0;
    flex: 1 1 auto;
    overflow: auto;
    padding: 22px;
    background: #f7f9fc;
}

:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-audit-footer {
    padding: 13px 18px;
    border-top: 1px solid #e6ebf1;
    background: #fff;
}

:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-audit-pdf {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #07111f;
}

:is(#focused-audit-review, .lh-focused-audit-preview) #pdf-viewer-pane {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    position: static !important;
    top: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
}

:is(#focused-audit-review, .lh-focused-audit-preview) #pdf-close-pane {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
}
:is(#focused-audit-review, .lh-focused-audit-preview) #pdf-close-pane:hover,
:is(#focused-audit-review, .lh-focused-audit-preview) #pdf-close-pane:focus-visible {
    color: #fff;
    background: #1e293b;
    outline: none;
}

:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-position {
    color: #64748b;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}

:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 17px;
}

:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-issue-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(36, 88, 166, .20);
    border-radius: 9px;
    background: rgba(36, 88, 166, .07);
    color: #2458A6;
}

:is(#focused-audit-review, .lh-focused-audit-preview)[data-issue-tone="rose"] .lh-focused-issue-icon {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #be123c;
}
:is(#focused-audit-review, .lh-focused-audit-preview)[data-issue-tone="amber"] .lh-focused-issue-icon {
    border-color: #fde68a;
    background: #fffbeb;
    color: #b45309;
}
:is(#focused-audit-review, .lh-focused-audit-preview)[data-issue-tone="purple"] .lh-focused-issue-icon {
    border-color: #ddd6fe;
    background: #f5f3ff;
    color: #6d28d9;
}

:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-title {
    margin: 0;
    color: #0c192d;
    font-size: clamp(22px, 2vw, 28px);
    line-height: 1.14;
    font-weight: 820;
    letter-spacing: -0.03em;
}

:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-summary {
    margin-top: 5px;
    max-width: 56ch;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-back:hover,
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-back:focus-visible {
    border-color: rgba(36, 88, 166, .42);
    background: rgba(36, 88, 166, .05);
    color: #1D4B91;
    box-shadow: 0 0 0 3px rgba(36, 88, 166, .08);
    outline: none;
}

:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-content-card {
    border: 0;
    background: transparent;
    padding: 0;
}

:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-evidence-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-evidence-cell {
    min-width: 0;
    padding: 14px 14px 13px;
    border: 1px solid #d8e1ec;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(8, 21, 38, .025);
}
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-evidence-cell.is-billed {
    border-color: #cdd9e8;
    background: #f6f9fd;
}
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-evidence-cell.is-billed .lh-focused-evidence-label { color: #526985; }
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-evidence-cell.is-expected {
    border-color: #c9e5d5;
    background: #f3faf6;
}
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-evidence-cell.is-expected .lh-focused-evidence-label,
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-evidence-cell.is-expected .lh-focused-evidence-value { color: #08734f; }
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-evidence-cell.is-difference.is-overcharge {
    border-color: #f1c8cf;
    background: #fff5f6;
}
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-evidence-cell.is-difference.is-overcharge .lh-focused-evidence-label,
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-evidence-cell.is-difference.is-overcharge .lh-focused-evidence-value { color: #a91d3a; }
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-evidence-cell.is-difference.is-undercharge {
    border-color: #f0d99d;
    background: #fffaf0;
}
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-evidence-cell.is-difference.is-undercharge .lh-focused-evidence-label,
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-evidence-cell.is-difference.is-undercharge .lh-focused-evidence-value { color: #9a5b00; }

:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-evidence-label {
    color: #64748b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .065em;
    text-transform: uppercase;
}

:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-evidence-value {
    margin-top: 6px;
    color: #0f172a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 850;
}

:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-basis {
    margin-top: 8px;
    color: #64748b;
    font-size: 10px;
    line-height: 1.4;
}
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-basis > span {
    margin-right: 5px;
    color: #475569;
    font-weight: 750;
}
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-finding-feedback { margin-top: 10px; }

:is(#focused-audit-review, .lh-focused-audit-preview) [data-focused-audit-field-host] > .charge-row,
:is(#focused-audit-review, .lh-focused-audit-preview) [data-focused-audit-field-host] > .metadata-row,
:is(#focused-audit-review, .lh-focused-audit-preview) [data-focused-audit-field-host] > .unmatched-card {
    margin-top: 14px !important;
    padding: 16px !important;
    border-radius: 12px !important;
    border-color: #c9d7e8 !important;
    background: #fff !important;
    box-shadow: inset 3px 0 0 rgba(36, 88, 166, .62), 0 1px 2px rgba(8, 21, 38, .025) !important;
    cursor: default !important;
}

:is(#focused-audit-review, .lh-focused-audit-preview) [data-focused-audit-field-host] .edit-button,
:is(#focused-audit-review, .lh-focused-audit-preview) [data-focused-audit-field-host] .cancel-button {
    display: none !important;
}

:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-field-label-line {
    min-height: 28px;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-field-label-line .field-status,
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-inline-status {
    min-width: 0 !important;
    padding: 4px 8px !important;
    border-radius: 999px !important;
    font-size: 10px !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    white-space: nowrap;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

:is(#focused-audit-review, .lh-focused-audit-preview) [data-focused-audit-field-host] > .lh-focused-field-editor > div:first-child {
    color: #334155;
    font-size: 11px;
    font-weight: 750;
}

:is(#focused-audit-review, .lh-focused-audit-preview) [data-focused-audit-field-host] > .lh-focused-field-editor > div:nth-child(2) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

:is(#focused-audit-review, .lh-focused-audit-preview) [data-focused-audit-field-host] > .lh-focused-field-editor .field-input {
    min-height: 44px;
    width: 100%;
    padding: 10px 12px;
    border-color: #b8c7da;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    background: #fbfdff;
}

:is(#focused-audit-review, .lh-focused-audit-preview) [data-focused-audit-field-host] > .lh-focused-field-editor .save-button {
    min-height: 40px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding-left: 14px;
    padding-right: 14px;
    border-radius: 9px !important;
    background: #2458A6 !important;
}

:is(#focused-audit-review, .lh-focused-audit-preview) [data-focused-audit-field-host] > .lh-focused-field-editor .cancel-button {
    min-height: 38px;
    padding-left: 12px;
    padding-right: 12px;
}

:is(#focused-audit-review, .lh-focused-audit-preview) [data-focused-audit-field-host] > .lh-focused-field-editor .delete-field-btn {
    width: 38px;
    height: 38px;
}

/* Unassigned accessorial review becomes a roomy assignment form; the PDF is the source context. */
:is(#focused-audit-review, .lh-focused-audit-preview) [data-focused-audit-field-host] > .unmatched-card details {
    display: none !important;
}

/* The standard Invoice Details page should not add another source-text
   disclosure under every unassigned field. Clicking the field card remains
   the source-navigation affordance, and Focused Review keeps its own layout. */
#unmatched-fields-container .unmatched-source-text-details {
    display: none;
}
:is(#focused-audit-review, .lh-focused-audit-preview) [data-focused-audit-field-host] > .unmatched-card .card-content {
    min-height: 0 !important;
    gap: 14px !important;
}
:is(#focused-audit-review, .lh-focused-audit-preview) [data-focused-audit-field-host] > .unmatched-card .card-content > div:first-child {
    padding-bottom: 12px;
    border-bottom: 1px solid #e8edf3;
}
:is(#focused-audit-review, .lh-focused-audit-preview) [data-focused-audit-field-host] > .unmatched-card .card-content > div:first-child > span:first-child {
    font-size: 13px !important;
    color: #0f172a !important;
}
:is(#focused-audit-review, .lh-focused-audit-preview) [data-focused-audit-field-host] > .unmatched-card .field-value {
    font-size: 14px !important;
}
:is(#focused-audit-review, .lh-focused-audit-preview) [data-focused-audit-field-host] > .unmatched-card .unmatched-assignment-controls {
    display: grid !important;
    grid-template-columns: 128px minmax(0, 1fr);
    align-items: center;
    gap: 9px 10px !important;
}
:is(#focused-audit-review, .lh-focused-audit-preview) [data-focused-audit-field-host] > .unmatched-card .unmatched-focused-label {
    grid-column: 1 / -1;
    color: #475569;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
:is(#focused-audit-review, .lh-focused-audit-preview) [data-focused-audit-field-host] > .unmatched-card .unmatched-key-wrapper {
    min-width: 0 !important;
    max-width: none !important;
}
:is(#focused-audit-review, .lh-focused-audit-preview) [data-focused-audit-field-host] > .unmatched-card .unmatched-type-select,
:is(#focused-audit-review, .lh-focused-audit-preview) [data-focused-audit-field-host] > .unmatched-card .unmatched-field-select,
:is(#focused-audit-review, .lh-focused-audit-preview) [data-focused-audit-field-host] > .unmatched-card .unmatched-custom-input {
    min-height: 42px;
    width: 100%;
    border-radius: 9px;
}
:is(#focused-audit-review, .lh-focused-audit-preview) [data-focused-audit-field-host] > .unmatched-card .unmatched-action-buttons {
    grid-column: 1 / -1;
    display: flex !important;
    justify-content: flex-end;
    gap: 8px !important;
    padding-top: 3px;
}
:is(#focused-audit-review, .lh-focused-audit-preview) [data-focused-audit-field-host] > .unmatched-card .unmatched-assign-button,
:is(#focused-audit-review, .lh-focused-audit-preview) [data-focused-audit-field-host] > .unmatched-card .unmatched-ignore-button {
    min-height: 38px;
    padding: 0 14px !important;
    border-radius: 8px !important;
}
:is(#focused-audit-review, .lh-focused-audit-preview) [data-focused-audit-field-host] > .unmatched-card .unmatched-assign-button {
    background: #2458A6 !important;
}

:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-inline-editor {
    margin-top: 14px;
    padding: 16px;
    border: 1px solid #c9d7e8;
    border-radius: 12px;
    background: #fff;
    box-shadow: inset 3px 0 0 rgba(36, 88, 166, .62), 0 1px 2px rgba(8, 21, 38, .025);
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-inline-editor-heading {
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #334155;
    font-size: 11px;
    font-weight: 750;
}
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-inline-editor-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-top: 9px;
}
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-inline-editor input {
    min-height: 44px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #b8c7da;
    border-radius: 9px;
    background: #fbfdff;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    outline: none;
    transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-inline-editor input:focus {
    border-color: #6f96ca;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(36, 88, 166, .10);
}
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-inline-editor [data-focused-field-save] {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 14px;
    border: 1px solid #2458A6;
    border-radius: 9px;
    background: #2458A6;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 140ms ease, border-color 140ms ease, transform 100ms ease;
}
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-inline-editor [data-focused-field-save]:hover:not(:disabled) { background: #1D4B91; border-color: #1D4B91; }
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-inline-editor [data-focused-field-save]:active:not(:disabled) { transform: translateY(1px); }
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-inline-editor [data-focused-field-save]:disabled { cursor: default; opacity: .82; }
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-inline-editor.is-saving,
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-field-saving { border-color: #9db8db !important; }
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-inline-editor.is-saved,
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-field-saved {
    border-color: #9bd1b2 !important;
    background: #fbfffc !important;
    box-shadow: inset 3px 0 0 #16a36a, 0 0 0 3px rgba(22, 163, 106, .06) !important;
}
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-field-saved .save-button,
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-inline-editor.is-saved [data-focused-field-save] {
    background: #15815a !important;
    border-color: #15815a !important;
}

.lh-audit-review-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid #cbdbee;
    border-radius: 6px;
    background: #ffffff;
    color: #2458A6;
    font-size: 10.5px;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 120ms ease, color 120ms ease;
}
.lh-audit-review-button svg { color: currentColor; }
.lh-audit-review-button:hover {
    border-color: #9db8db;
    background: #eef4fb;
    color: #1D4B91;
}
.lh-audit-review-button:focus-visible {
    outline: 2px solid #0091FF;
    outline-offset: 1px;
    box-shadow: none;
}
.lh-audit-review-button:active { transform: none; }
.lh-audit-review-action {
    align-self: stretch;
    border-left: 1px solid rgba(203, 213, 225, .62);
}

body.lh-focused-review-open #linehaul-dialog-backdrop,
body.lh-focused-review-open #feedbackModal,
body.lh-focused-review-open #shortcutsModal {
    z-index: 12030 !important;
}

@media (max-width: 900px) {
    #focused-audit-review { padding: 0; }
    :is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-audit-shell {
        width: 100vw;
        height: 100dvh;
        min-height: 0;
        border: 0;
        border-radius: 0;
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 48%) minmax(0, 52%);
    }
    :is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-audit-left {
        border-right: 0;
        border-bottom: 1px solid #dbe3ed;
    }
    :is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-audit-header,
    :is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-audit-body { padding-left: 16px; padding-right: 16px; }
    :is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-evidence-grid { grid-template-columns: 1fr; }
}

:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-field-removed {
    border-color: #d7dee8 !important;
    background: #f8fafc !important;
    box-shadow: inset 3px 0 0 #94a3b8, 0 1px 2px rgba(8, 21, 38, .025) !important;
}
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-field-removed .field-input,
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-field-removed .save-button,
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-field-removed .delete-field-btn {
    opacity: .52;
}
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-action-feedback {
    margin-top: 12px;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    border: 1px solid #d7dee8;
    border-radius: 9px;
    background: #f8fafc;
    color: #475569;
    font-size: 11px;
    font-weight: 750;
}
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-action-feedback.is-restored {
    border-color: #b7dec7;
    background: #f3faf6;
    color: #08734f;
}
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-action-feedback-message {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-action-feedback [data-focused-delete-undo] {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #b8c7da;
    border-radius: 7px;
    background: #fff;
    color: #1D4B91;
    font-size: 10.5px;
    font-weight: 800;
    cursor: pointer;
}
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-action-feedback [data-focused-delete-undo]:hover:not(:disabled) {
    border-color: rgba(36, 88, 166, .42);
    background: rgba(36, 88, 166, .05);
}
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-action-feedback [data-focused-delete-undo]:disabled {
    opacity: .65;
    cursor: default;
}

/* Financial decision controls for supported overcharge findings. */
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-dispute-decision {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-dispute-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-dispute-actions.is-pending {
    justify-content: flex-end;
}
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-dispute-primary,
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-dispute-secondary {
    min-height: 36px;
    padding: 0 13px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 100ms ease;
}
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-dispute-primary {
    border: 1px solid #2458A6;
    background: #2458A6;
    color: #fff;
    box-shadow: 0 4px 12px -8px rgba(36, 88, 166, .65);
}
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-dispute-primary:hover:not(:disabled) {
    background: #1D4B91;
    border-color: #1D4B91;
}
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-dispute-secondary {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
}
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-dispute-secondary:hover:not(:disabled) {
    border-color: #9fb0c5;
    background: #f8fafc;
    color: #334155;
}
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-dispute-primary:disabled,
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-dispute-secondary:disabled {
    opacity: .58;
    cursor: wait;
}
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-dispute-state {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 800;
}
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-dispute-state-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #64748b;
}
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-dispute-decision.is-included .lh-focused-dispute-state { color: #08734f; }
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-dispute-decision.is-included .lh-focused-dispute-state-dot { background: #16a36a; }
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-dispute-decision.is-rejected .lh-focused-dispute-state { color: #64748b; }
:is(#focused-audit-review, .lh-focused-audit-preview) .lh-focused-dispute-save-status {
    display: inline-block;
    min-height: 14px;
    margin-top: 6px;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
}

/* Keep the invoice-wide dispute package inside the focused-review task flow.
   The drawer itself is temporarily portaled to #linehaul-overlay-root while
   Focused Review is open so it cannot be trapped by the workspace/sidebar
   stacking context. */
body.lh-focused-review-open #fabContainer.lh-dispute-nested {
    pointer-events: none !important;
}
body.lh-focused-review-open #fabContainer.lh-dispute-nested > #btnToggleFabDrawer {
    display: none !important;
}
body.lh-focused-review-open #fabDrawerModal.lh-dispute-over-focused {
    position: fixed !important;
    left: 50% !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    width: min(92vw, 520px) !important;
    max-height: min(86vh, 820px) !important;
    margin: 0 !important;
    overflow: auto !important;
    transform: translate(-50%, -50%) !important;
    pointer-events: auto !important;
    z-index: 12040 !important;
    border-radius: 14px !important;
    box-shadow: 0 32px 90px -28px rgba(8, 21, 38, .72), 0 0 0 1px rgba(15, 23, 42, .05) !important;
}

/* Pending dispute findings stay reviewable without leaving the invoice-wide package. */
#drawerPendingFindingList .lh-dispute-pending-list {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}
#drawerPendingFindingList .lh-dispute-pending-heading {
    color: #475569;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
#drawerPendingFindingList .lh-dispute-pending-row {
    display: grid;
    gap: 8px;
    padding: 9px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}
#drawerPendingFindingList .lh-dispute-pending-copy,
#drawerPendingFindingList .lh-dispute-pending-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
#drawerPendingFindingList .lh-dispute-pending-copy {
    justify-content: space-between;
    min-width: 0;
    color: #0f172a;
    font-size: 11px;
}
#drawerPendingFindingList .lh-dispute-pending-copy strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#drawerPendingFindingList .lh-dispute-pending-copy span {
    flex: 0 0 auto;
    color: #b42318;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 800;
}
#drawerPendingFindingList .lh-dispute-pending-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
}
#drawerPendingFindingList .lh-dispute-pending-actions button {
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
    color: #475569;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}
#drawerPendingFindingList .lh-dispute-pending-actions button:hover:not(:disabled) {
    border-color: #9fb0c5;
    background: #f8fafc;
    color: #334155;
}
#drawerPendingFindingList .lh-dispute-pending-actions button.is-primary {
    border-color: #2458A6;
    background: #2458A6;
    color: #fff;
}
#drawerPendingFindingList .lh-dispute-pending-actions button.is-primary:hover:not(:disabled) {
    border-color: #1D4B91;
    background: #1D4B91;
    color: #fff;
}
#drawerPendingFindingList .lh-dispute-pending-actions button:disabled {
    opacity: .58;
    cursor: wait;
}
#drawerPendingFindingList .lh-dispute-pending-status {
    min-height: 12px;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    text-align: right;
}

/* Audit Findings are one collapsible disclosure surface. The header carries
   the summary; rows stay quiet until opened, and semantic color is reserved for
   the tiny status/icon accents rather than whole tinted boxes. */
.lh-audit-findings-panel {
    border-top: 1px solid #e6ebf1;
    border-bottom: 1px solid #eef2f7;
    border-radius: 0;
    background: #fff;
}
.lh-audit-findings-header {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 12px;
    background: #f8fafc;
    border-bottom: 1px solid #e9eef5;
}
.lh-audit-findings-toggle {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #172033;
    text-align: left;
    cursor: pointer;
}
.lh-audit-findings-toggle strong {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: -0.01em;
}
.lh-audit-summary-list {
    display: inline-flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}
.lh-audit-summary-item {
    display: inline-flex;
    align-items: center;
    font-size: 9.5px;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
}
.lh-audit-summary-list .lh-audit-summary-item + .lh-audit-summary-item::before {
    content: '·';
    margin: 0 6px;
    color: #94a0b0;
    font-weight: 500;
}
.lh-audit-findings-panel [data-audit-review-panel] {
    padding: 2px 0 8px !important;
    background: #fff !important;
}
.lh-audit-findings-panel [data-audit-issue-section] {
    margin: 0 !important;
    padding: 7px 0 0;
}
.lh-audit-findings-panel [data-audit-issue-section] + [data-audit-issue-section] {
    border-top: 0;
    padding-top: 7px;
}

.lh-audit-findings-panel .audit-review-item {
    margin: 0 !important;
    border: 1px solid rgba(203, 213, 225, .78) !important;
    border-radius: 9px !important;
    background: #fff !important;
    box-shadow: none !important;
}
.lh-audit-findings-panel .audit-review-item + .audit-review-item {
    margin-top: 7px !important;
}

/* Financial action: duplicate and overcharge intentionally share one restrained
   deep-rose family so the user learns one serious-action language. */
.lh-audit-findings-panel .audit-review-item.lh-audit-tone-rose > .flex {
    background: #fff3f1;
    box-shadow: inset 3px 0 0 #a33b3b;
}
.lh-audit-findings-panel .audit-review-item.lh-audit-tone-rose {
    border-color: rgba(183, 91, 82, .30) !important;
}
.lh-audit-findings-panel .audit-review-item.lh-audit-tone-rose > [data-audit-issue-content] {
    background: #fffaf9 !important;
}

/* General Needs Review is softer than an identified financial risk. */
.lh-audit-findings-panel .lh-audit-group-card[data-audit-group="audit-group-needs-review"] > [data-audit-issue-toggle] {
    background: #fff7f6;
    box-shadow: inset 3px 0 0 #cf716d;
}
.lh-audit-findings-panel .lh-audit-group-card[data-audit-group="audit-group-needs-review"] > [data-audit-issue-content] {
    background: #fffdfc !important;
}

/* Unassigned is categorically different, not more severe. Keep purple muted. */
.lh-audit-findings-panel .audit-review-item.lh-audit-tone-purple > .flex {
    background: #faf7fc;
    box-shadow: inset 3px 0 0 #8162a5;
}
.lh-audit-findings-panel .audit-review-item.lh-audit-tone-purple {
    border-color: rgba(129, 98, 165, .28) !important;
}
.lh-audit-findings-panel .audit-review-item.lh-audit-tone-purple > [data-audit-issue-content] {
    background: #fefcff !important;
}

.lh-audit-findings-panel .lh-audit-group-card[data-audit-group="audit-group-unassigned"] > [data-audit-issue-toggle] {
    background: #faf7fc;
    box-shadow: inset 3px 0 0 #8162a5;
}
.lh-audit-findings-panel .lh-audit-group-card[data-audit-group="audit-group-unassigned"] > [data-audit-issue-content] {
    background: #fefcff !important;
}

/* Recommended review / undercharge uses muted amber, not bright yellow. */
.lh-audit-findings-panel .lh-audit-group-card[data-audit-group="audit-group-review-recommended"] > [data-audit-issue-toggle],
.lh-audit-findings-panel .audit-review-item.lh-audit-tone-amber > .flex {
    background: #fff9ed;
    box-shadow: inset 3px 0 0 #b38433;
}
.lh-audit-findings-panel .audit-review-item.lh-audit-tone-amber {
    border-color: rgba(179, 132, 51, .28) !important;
}
.lh-audit-findings-panel .lh-audit-group-card[data-audit-group="audit-group-review-recommended"] > [data-audit-issue-content],
.lh-audit-findings-panel .audit-review-item.lh-audit-tone-amber > [data-audit-issue-content] {
    background: #fffdf8 !important;
}

/* Reviewed/resolved remains low-saturation and secondary. */
.lh-audit-findings-panel .audit-review-item.lh-audit-tone-emerald > .flex,
.lh-audit-findings-panel .lh-audit-group-card.lh-audit-tone-emerald > [data-audit-issue-toggle] {
    background: #f5faf8;
    box-shadow: inset 3px 0 0 #5f9b84;
}
.lh-audit-findings-panel .audit-review-item.lh-audit-tone-emerald {
    border-color: rgba(95, 155, 132, .26) !important;
}
.lh-audit-findings-panel .audit-review-item.lh-audit-tone-emerald > [data-audit-issue-content],
.lh-audit-findings-panel .lh-audit-group-card.lh-audit-tone-emerald > [data-audit-issue-content] {
    background: #fbfdfc !important;
}

/* Remaining neutral findings stay almost white. */
.lh-audit-findings-panel .audit-review-item.lh-audit-tone-slate > .flex,
.lh-audit-findings-panel .lh-audit-group-card.lh-audit-tone-slate > [data-audit-issue-toggle] {
    background: #fbfcfe;
    box-shadow: inset 3px 0 0 #a8b3c1;
}

.lh-audit-findings-panel .lh-audit-tone-hover-rose:hover,
.lh-audit-findings-panel .lh-audit-tone-hover-amber:hover,
.lh-audit-findings-panel .lh-audit-tone-hover-purple:hover,
.lh-audit-findings-panel .lh-audit-tone-hover-emerald:hover,
.lh-audit-findings-panel .lh-audit-tone-hover-slate:hover {
    filter: brightness(.992);
}
.lh-audit-findings-panel .lh-audit-group-card > [data-audit-issue-toggle]:hover {
    box-shadow: none;
}
.lh-audit-findings-panel .lh-audit-group-card > [data-audit-issue-toggle][aria-expanded="true"]:hover {
    box-shadow: inset 0 -1px 0 rgba(203, 213, 225, .6);
}
.lh-audit-findings-panel [data-audit-issue-toggle][aria-expanded="true"] {
    box-shadow: inset 0 -1px 0 rgba(203, 213, 225, .6);
}
.lh-audit-findings-panel [data-audit-issue-content] {
    padding: 9px 12px 12px 40px !important;
    border-top: 1px solid rgba(226, 232, 240, .82) !important;
}
.lh-audit-row-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
}
.lh-audit-row-icon > svg {
    width: 15px;
    height: 15px;
}
.lh-audit-checked-row + .lh-audit-checked-row {
    border-top: 0;
}

/* Legacy tone rules remain for focused review and other isolated semantic
   surfaces; the inline findings list above intentionally overrides them. */
.audit-review-item.lh-audit-tone-rose { border-color: #fecaca; background: #fff7f7; }
.audit-review-item.lh-audit-tone-amber { border-color: #fde7a8; background: #fffaf0; }
.audit-review-item.lh-audit-tone-purple { border-color: #e9d5ff; background: #faf7ff; }
.audit-review-item.lh-audit-tone-emerald { border-color: #bbf7d0; background: #f7fdf9; }
.audit-review-item.lh-audit-tone-slate { border-color: #e2e8f0; background: #fff; }
.lh-audit-tone-hover-rose:hover { background: #fff0f0; }
.lh-audit-tone-hover-amber:hover { background: #fff6df; }
.lh-audit-tone-hover-purple:hover { background: #f5efff; }
.lh-audit-tone-hover-emerald:hover { background: #effbf3; }
.lh-audit-tone-hover-slate:hover { background: #f8fafc; }
.lh-audit-tone-content-rose { border-color: #fee2e2; background: #fff8f8; }
.lh-audit-tone-content-amber { border-color: #fef3c7; background: #fffbeb; }
.lh-audit-tone-content-purple { border-color: #f3e8ff; background: #fbf8ff; }
.lh-audit-tone-content-emerald { border-color: #dcfce7; background: #f7fdf9; }
.lh-audit-tone-content-slate { border-color: #f1f5f9; background: #f8fafc; }

.lh-audit-issue-tag {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 20px;
    padding: 0 7px;
    border: 1px solid rgba(127, 29, 29, .14);
    border-radius: 6px;
    background: rgba(127, 29, 29, .07);
    color: #7f1d1d;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.lh-audit-group-card [data-audit-issue-content] { padding: 4px 8px 8px; }
.lh-audit-group-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 220px) auto;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 6px 4px 6px 8px;
    border-top: 1px solid rgba(148, 163, 184, .18);
}
.lh-audit-group-row:first-child { border-top: 0; }
.lh-audit-group-copy { min-width: 0; }
.lh-audit-group-copy strong {
    display: block;
    overflow: hidden;
    color: #0f172a;
    font-size: 11px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lh-audit-group-copy span {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    color: #64748b;
    font-size: 10px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lh-audit-group-metric {
    display: block;
    max-width: 220px;
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}
.lh-audit-group-metric.is-empty {
    visibility: hidden;
}

/* Math decisions are available in the banner dropdown as well as Focused Review. */
.lh-audit-math-decision {
    display: flex;
    min-height: 32px;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 2px;
}
.lh-audit-math-decision-actions { display: inline-flex; align-items: center; gap: 7px; }
.lh-audit-math-decision button {
    min-height: 30px;
    padding: 0 10px;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: background-color 130ms ease, border-color 130ms ease, color 130ms ease, transform 90ms ease;
}
.lh-audit-math-decision button:active:not(:disabled) { transform: translateY(1px); }
.lh-audit-math-decision button:disabled { cursor: default; opacity: .65; }
.lh-audit-math-decision-secondary,
.lh-audit-math-decision-link {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
}
.lh-audit-math-decision-secondary:hover,
.lh-audit-math-decision-link:hover { border-color: #94a3b8; background: #f8fafc; color: #334155; }
.lh-audit-math-decision-primary {
    border: 1px solid #2458A6;
    background: #2458A6;
    color: #fff;
}
.lh-audit-math-decision-primary:hover { border-color: #1D4B91; background: #1D4B91; }
.lh-audit-math-decision-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: auto;
    color: #475569;
    font-size: 10px;
    font-weight: 800;
}
.lh-audit-math-decision-dot { width: 6px; height: 6px; border-radius: 999px; background: #94a3b8; }
.lh-audit-math-decision.is-included .lh-audit-math-decision-state { color: #08734f; }
.lh-audit-math-decision.is-included .lh-audit-math-decision-dot { background: #16a36a; }
.lh-audit-math-decision.is-rejected .lh-audit-math-decision-state { color: #64748b; }
.lh-audit-math-decision-status { min-width: 0; color: #64748b; font-size: 9px; font-weight: 700; }

/* Keep the normal dispute drawer useful on short displays without letting it dominate tall displays. */
#fabDrawerModal {
    width: min(440px, calc(100vw - 2rem));
    max-height: min(42rem, calc(100dvh - 5.5rem));
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

@media (max-width: 640px) {
    .lh-audit-group-row { grid-template-columns: minmax(0, 1fr) auto; }
    .lh-audit-group-metric {
        grid-column: 1;
        grid-row: 2;
        max-width: min(220px, 70vw);
        text-align: left;
    }
    .lh-audit-group-copy span { display: none; }
    .lh-audit-issue-tag { display: none; }
}

/* Audit finding polish: financial evidence stays scannable without turning the row into an alert wall. */
.lh-audit-math-body { display: grid; gap: 6px; }
.lh-audit-math-basis {
    color: #64748b;
    font-size: 9.5px;
    line-height: 1.35;
}
.lh-audit-math-basis > span {
    margin-right: 4px;
    color: #64748b;
    font-weight: 750;
}
.lh-audit-math-value-card.is-difference.is-overcharge {
    border-color: #efd8d2 !important;
    background: #fff9f7 !important;
}
.lh-audit-math-value-card.is-difference.is-overcharge > div:last-child { color: #9f3f34 !important; }
.audit-review-item[data-audit-issue-type="math"].lh-audit-tone-rose .lh-audit-tone-hover-rose:hover { background: #f8fafc; }
.audit-review-item[data-audit-issue-type="math"].lh-audit-tone-rose .lh-audit-issue-tag {
    border-color: #ead0ca;
    background: #fff4f1;
    color: #984237;
}

/* Prior-invoice duplicate evidence preview. This sits above Focused Review so a
   reviewer can inspect the related bill without losing the current invoice. */
body.lh-prior-invoice-preview-open {
    overflow: hidden;
}
.lh-prior-invoice-preview {
    position: fixed;
    inset: 0;
    z-index: 12150;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}
.lh-prior-invoice-preview.is-open {
    display: flex;
}
.lh-prior-invoice-preview__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 25, 45, .48);
}
.lh-prior-invoice-preview__dialog {
    position: relative;
    display: grid;
    width: min(94vw, 1480px);
    height: min(90dvh, 920px);
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #cbd2dc;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 22px 54px rgba(12, 25, 45, .22);
}
.lh-prior-invoice-preview__header {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px 8px 14px;
    border-bottom: 1px solid #dde2e8;
    background: #fbfcfe;
}
.lh-prior-invoice-preview__title {
    color: #172033;
    font-size: 12px;
    font-weight: 800;
}
.lh-prior-invoice-preview__actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.lh-prior-invoice-preview__open,
.lh-prior-invoice-preview__close {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbdbee;
    border-radius: 6px;
    background: #fff;
    color: #2458a6;
    font-size: 10.5px;
    font-weight: 750;
}
.lh-prior-invoice-preview__open {
    padding: 0 10px;
}
.lh-prior-invoice-preview__close {
    width: 30px;
    padding: 0;
}
.lh-prior-invoice-preview__open:hover,
.lh-prior-invoice-preview__close:hover {
    border-color: #9db8db;
    background: #eef4fb;
    color: #1d4b91;
}
.lh-prior-invoice-preview__frame-wrap {
    position: relative;
    min-height: 0;
    background: #fff;
}
.lh-prior-invoice-preview__frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}
.lh-prior-invoice-preview__loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--lh-text-muted, #59697e);
    font-size: 11px;
    font-weight: 700;
    pointer-events: none;
}
.lh-prior-invoice-preview__loading[hidden] {
    display: none;
}
@media (max-width: 720px) {
    .lh-prior-invoice-preview {
        padding: 0;
    }
    .lh-prior-invoice-preview__dialog {
        width: 100vw;
        height: 100dvh;
        border: 0;
        border-radius: 0;
    }
}
