    .erp-export-shimmer {
        background: #1d4ed8 !important;
        color: #ffffff !important;
    }

    .history-filter {
        position: relative;
    }

    .history-filter-button {
        width: 100%;
        min-height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.65rem;
        padding: 0.375rem 0.625rem;
        background: #ffffff;
        border: 1px solid #cbd5e1;
        border-radius: 0.5rem;
        color: #334155;
        font-size: 0.75rem;
        line-height: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    }

    .history-filter-button:hover {
        background: #f8fafc;
        border-color: #94a3b8;
    }

    .history-filter-button[aria-expanded="true"] {
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    }

    .history-filter-label {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .history-filter-menu {
        position: absolute;
        top: calc(100% + 0.375rem);
        right: 0;
        z-index: 50;
        width: 16rem;
        max-height: 20rem;
        overflow-y: auto;
        background: #ffffff;
        border: 1px solid #cbd5e1;
        border-radius: 0.5rem;
        box-shadow: 0 14px 30px -16px rgba(15, 23, 42, 0.35);
    }

    .history-filter-menu-header {
        position: sticky;
        top: 0;
        z-index: 1;
        padding: 0.55rem 0.75rem;
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
        color: var(--lh-text-subtle, #627086);
        font-size: 0.625rem;
        line-height: 0.875rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .history-filter-option {
        display: flex;
        width: 100%;
        align-items: center;
        gap: 0.6rem;
        padding: 0.55rem 0.75rem;
        color: #475569;
        font-size: 0.75rem;
        line-height: 1rem;
        cursor: pointer;
        transition: background-color 0.12s ease, color 0.12s ease;
    }

    .history-filter-option:hover {
        background: #f8fafc;
        color: #0f172a;
    }

    .history-filter-option + .history-filter-option {
        border-top: 1px solid #f1f5f9;
    }

    .history-filter-option input {
        width: 0.875rem;
        height: 0.875rem;
        flex: 0 0 auto;
        accent-color: #2563eb;
        cursor: pointer;
    }

    .history-filter-option-count {
        margin-left: auto;
        color: var(--lh-text-subtle, #627086);
        font-size: 0.625rem;
        line-height: 0.875rem;
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    }

    .history-sort-wrap {
        position: relative;
        min-width: 150px;
    }

    .history-sort-select {
        width: 100%;
        min-height: 32px;
        appearance: none;
        -webkit-appearance: none;
        padding: 0.375rem 2rem 0.375rem 0.625rem;
        background: #ffffff;
        border: 1px solid #cbd5e1;
        border-radius: 0.5rem;
        color: #334155;
        font-size: 0.75rem;
        line-height: 1rem;
        font-weight: 600;
        cursor: pointer;
        outline: none;
        transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    }

    .history-sort-select:hover {
        background: #f8fafc;
        border-color: #94a3b8;
    }

    .history-sort-select:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    }

    .history-next-up-bar {
        position: fixed;
        left: 50%;
        bottom: 0;
        z-index: 30;
        width: max-content;
        max-width: calc(100vw - 1rem);
        transform: translateX(-50%);
        border: 1px solid #cbd5e1;
        border-bottom: 0;
        border-radius: 0.75rem 0.75rem 0 0;
        background: #ffffff;
        box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
    }

    .history-next-up-content {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0.65rem;
        padding: 0.4rem 0.5rem;
        white-space: nowrap;
    }

    .history-next-up-message {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .history-next-up-actions {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 0.4rem;
    }

    .history-next-up-secondary,
    .history-next-up-primary {
        flex: 0 0 auto;
        min-height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--lh-radius-control, 0.375rem);
        padding: 0.35rem 0.75rem;
        font-size: 0.75rem;
        line-height: 1rem;
        font-weight: 700;
        cursor: pointer;
        transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    }

    .history-next-up-secondary {
        border: 1px solid var(--lh-slate-300, #cbd2dc);
        background: linear-gradient(to bottom, #ffffff, var(--lh-slate-50, #f7f8fa));
        color: var(--lh-slate-700, #455468);
        box-shadow: 0 1px 2px rgba(18, 35, 63, 0.06);
    }

    .history-next-up-secondary:hover {
        border-color: var(--lh-slate-400, #94a0b0);
        background: var(--lh-slate-50, #f7f8fa);
        color: var(--lh-navy, #12233f);
    }

    .history-next-up-primary {
        border: 1px solid var(--lh-blue, #2458a6);
        background: var(--lh-blue, #2458a6);
        color: #ffffff;
        box-shadow: 0 1px 2px rgba(18, 35, 63, 0.14);
    }

    .history-next-up-primary:hover {
        border-color: var(--lh-blue-hover, #1d4b91);
        background: var(--lh-blue-hover, #1d4b91);
        box-shadow: 0 2px 5px rgba(18, 35, 63, 0.16);
    }

    .history-next-up-secondary:focus-visible,
    .history-next-up-primary:focus-visible {
        outline: 2px solid var(--lh-mark-blue, #0091ff);
        outline-offset: 2px;
    }

    .history-next-up-secondary:active,
    .history-next-up-primary:active {
        transform: translateY(1px);
    }

    .history-workbench {
        margin-top: 0;
    }

    .history-summary-strip {
        padding: 0.5rem 0 0.35rem;
    }

    .history-filter-toolbar {
        padding: 0.35rem 0 0.75rem;
    }

    .history-workbench .lh-work-table {
        border-top: 1px solid var(--lh-border, #dde2e8);
        border-bottom: 0;
    }

    @media (max-width: 639px) {
        .history-next-up-content {
            gap: 0.5rem;
        }
    }

    @media (min-width: 640px) {
        .history-filter-batch,
        .history-filter-status {
            width: 168px;
        }

        .history-filter-export {
            width: 150px;
        }
    }
