.inv-result-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin: 0.75rem 0 0.25rem;
}

.inv-result-pager-pages {
    margin-bottom: 0;
}

/* Shared sticky + compact outbound history result table */
/* Ancestors with overflow:auto/hidden break viewport-sticky headers — force page scroll. */
.activity-page,
.container-fluid:has(.inv-result-sticky-table),
.container-fluid:has(.activity-page) {
    overflow-x: clip !important;
    overflow-y: visible !important;
}

.inv-result-sticky-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.inv-result-sticky-table thead th {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: var(--bhs-top-row-height, 3.5rem) !important;
    z-index: 20 !important;
    background-color: #f8f9fa !important;
    background-clip: padding-box;
    box-shadow: 0 1px 0 #dee2e6, 0 2px 2px rgba(0, 0, 0, 0.05);
    vertical-align: bottom;
}

.inv-outbound-history-table {
    font-size: 0.875rem;
    font-weight: 400;
    table-layout: fixed;
    width: 100%;
}

.inv-outbound-history-table thead th {
    padding: 0.55rem 0.5rem;
    font-weight: 600;
    font-size: 0.8125rem;
    border-bottom: 1px solid #dee2e6;
    white-space: nowrap;
}

.inv-outbound-history-table tbody td {
    padding: 0.45rem 0.5rem;
    border-bottom: 1px solid #eef2f7;
    vertical-align: top;
    background-color: #fff;
    overflow: hidden;
}

.inv-outbound-history-table tbody tr:hover td {
    background-color: #f8fafc;
}

.inv-outbound-history-table .inv-col-time { width: 5.5rem; }
.inv-outbound-history-table .inv-col-request { width: 4.25rem; }
.inv-outbound-history-table .inv-col-product { width: 16%; }
.inv-outbound-history-table .inv-col-qty { width: 4.5rem; }
.inv-outbound-history-table .inv-col-so { width: 18%; }
.inv-outbound-history-table .inv-col-docs { width: 9rem; }
.inv-outbound-history-table .inv-col-loc { width: 16%; }
.inv-outbound-history-table .inv-col-operator { width: 7rem; }
.inv-outbound-history-table .inv-col-status { width: 5.5rem; }

.inv-outbound-time {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    white-space: nowrap;
}

.inv-outbound-time-clock {
    font-size: 0.75rem;
}

.inv-outbound-product {
    min-width: 0;
}

.inv-outbound-pn {
    display: block;
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.inv-outbound-pname {
    display: block;
    font-size: 0.75rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.inv-outbound-so {
    min-width: 0;
}

.inv-outbound-so-link {
    display: inline;
    font-weight: 500;
    text-decoration: none;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.35;
}

.inv-outbound-loc {
    min-width: 0;
}

.inv-outbound-wh {
    display: block;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.3;
}

.inv-outbound-zone {
    display: block;
    font-size: 0.75rem;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.3;
}

.inv-outbound-operator {
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.3;
}

.inv-outbound-request-link {
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.inv-outbound-docs .btn-link {
    font-size: 0.8125rem;
    text-decoration: none;
}

.inv-outbound-qty {
    white-space: nowrap;
}

.inv-outbound-status {
    display: inline-block;
    padding: 0.1rem 0.45rem;
    border-radius: 0.25rem;
    background: #eef2ff;
    color: #3730a3;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.inv-outbound-status-warn {
    background: #fff7ed;
    color: #9a3412;
}

.inv-outbound-exception-table {
    table-layout: auto;
}

.inv-outbound-history-table.table > :not(caption) > * > * {
    border-bottom-width: 0;
}

.inv-outbound-history-table.table {
    --bs-table-border-color: transparent;
}


.inv-focus-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
    border: 1px solid #c5b3e6;
    border-radius: 0.375rem;
    background: #f6f2fc;
}

.inv-focus-banner-text {
    margin: 0;
    font-size: 0.925rem;
}

.inv-focus-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.inv-row-just-viewed {
    outline: 2px solid #6f42c1;
    outline-offset: -2px;
    background-color: rgba(111, 66, 193, 0.06);
}

.inv-just-viewed-badge {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.05rem 0.4rem;
    border-radius: 0.25rem;
    background: #6f42c1;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
}
