.change-list #changelist,
.change-list #changelist-form,
.change-list .results,
.change-list .results table,
.change-list #result_list,
.change-list #changelist-form [data-simplebar] {
    max-width: 100%;
}

.change-list #content,
.change-list .container {
    min-width: 0;
    overflow-x: hidden;
}

.change-list .results,
.change-list #changelist-form [data-simplebar] {
    display: block;
    max-width: calc(100vw - 340px);
    overflow-x: auto !important;
    overflow-y: visible !important;
    overscroll-behavior-x: contain;
    width: 100%;
}

.change-list #changelist-form [data-simplebar] .simplebar-wrapper,
.change-list #changelist-form [data-simplebar] .simplebar-mask,
.change-list #changelist-form [data-simplebar] .simplebar-offset,
.change-list #changelist-form [data-simplebar] .simplebar-content-wrapper,
.change-list #changelist-form [data-simplebar] .simplebar-content {
    overflow: visible !important;
}

.change-list .results table,
.change-list #result_list {
    min-width: max-content;
}

.nepal-table-scrollbar {
    background: var(--color-base-50, #f8fafc);
    border: 1px solid var(--color-base-200, #e5e7eb);
    border-radius: 999px;
    box-shadow: 0 8px 18px rgb(15 23 42 / 8%);
    height: 17px;
    margin: 0 0 8px;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    position: sticky;
    top: 0;
    z-index: 70;
}

.nepal-table-scrollbar-floating {
    display: none;
    margin: 0;
    pointer-events: auto;
    position: fixed;
    z-index: 1001;
}

.nepal-table-scrollbar-floating.is-visible {
    display: block;
}

.nepal-table-scrollbar-inner {
    height: 1px;
}

.dark .nepal-table-scrollbar {
    background: var(--color-base-900, #111827);
    border-color: var(--color-base-800, #1f2937);
    box-shadow: 0 8px 18px rgb(0 0 0 / 24%);
}

.change-list .results th,
.change-list .results td,
.change-list #result_list th,
.change-list #result_list td {
    white-space: nowrap;
}

.change-list .results thead,
.change-list #result_list thead {
    position: sticky !important;
    top: 0 !important;
    z-index: 60 !important;
}

.change-list .results thead th,
.change-list #result_list thead th {
    background: var(--color-base-50, #f8fafc) !important;
    box-shadow: 0 1px 0 var(--color-base-200, #e5e7eb);
    position: sticky !important;
    top: 0 !important;
    z-index: 61 !important;
}

.change-list .results thead th a,
.change-list #result_list thead th a {
    background: transparent;
}

.dark .change-list .results thead th,
.dark .change-list #result_list thead th {
    background: var(--color-base-900, #111827) !important;
    box-shadow: 0 1px 0 var(--color-base-800, #1f2937);
}

.dark .change-list .results thead th a,
.dark .change-list #result_list thead th a {
    background: transparent;
}

.nepal-sticky-table-header {
    border-left: 1px solid var(--color-base-200, #e5e7eb);
    border-right: 1px solid var(--color-base-200, #e5e7eb);
    box-shadow: 0 12px 28px rgb(15 23 42 / 12%);
    display: none;
    max-width: 100vw;
    overflow: hidden;
    pointer-events: none;
    position: fixed;
    z-index: 1000;
}

.nepal-sticky-table-header.is-visible {
    display: block;
}

.nepal-sticky-table-header table {
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.nepal-sticky-table-header thead th {
    background: var(--color-base-50, #f8fafc) !important;
    box-shadow: 0 1px 0 var(--color-base-200, #e5e7eb);
    white-space: nowrap;
}

.dark .nepal-sticky-table-header {
    border-color: var(--color-base-800, #1f2937);
    box-shadow: 0 12px 28px rgb(0 0 0 / 30%);
}

.dark .nepal-sticky-table-header thead th {
    background: var(--color-base-900, #111827) !important;
    box-shadow: 0 1px 0 var(--color-base-800, #1f2937);
}

.change-list #result_list tbody.nepal-unlinked-transaction,
.change-list #result_list tbody.nepal-unlinked-transaction tr {
    background: rgba(245, 158, 11, .07) !important;
}

.change-list #result_list tbody.nepal-unlinked-transaction td {
    box-shadow: none;
}

.change-list #result_list tbody.nepal-unlinked-transaction td:first-child {
    box-shadow: inset 2px 0 0 rgba(245, 158, 11, .55);
}

.dark .change-list #result_list tbody.nepal-unlinked-transaction,
.dark .change-list #result_list tbody.nepal-unlinked-transaction tr {
    background: rgba(245, 158, 11, .08) !important;
}

.dark .change-list #result_list tbody.nepal-unlinked-transaction td:first-child {
    box-shadow: inset 2px 0 0 rgba(245, 158, 11, .45);
}

.change-list .xfull {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
    white-space: nowrap;
}

.change-list .xfull a,
.change-list .xfull span {
    display: inline-block;
}

.change-list .results td.field-comment,
.change-list .results td.field-notes,
.change-list .results td.field-raw_payload,
.change-list .results td.field-payload {
    max-width: 360px;
    min-width: 260px;
    white-space: normal;
}

.change-list input[type="number"],
.change-list input[type="text"] {
    min-width: 92px;
}

.nepal-logo-link {
    align-items: center;
    background: transparent;
    border: 0;
    box-shadow: none;
    box-sizing: border-box;
    display: flex;
    flex: 0 0 190px;
    justify-content: center;
    min-height: 92px;
    min-width: 190px;
    padding: 10px 18px;
    text-align: center;
    width: 190px;
}

.nepal-logo-link-compact {
    flex-basis: 94px;
    min-height: 74px;
    min-width: 94px;
    padding: 8px;
    width: 94px;
}

.nepal-logo {
    display: block;
    height: auto;
    max-height: 82px;
    max-width: 154px;
    object-fit: contain;
    width: 100%;
}

.nepal-logo-compact {
    max-height: 62px;
    max-width: 78px;
}

.nepal-login-brand {
    border-bottom: 1px solid var(--color-base-200);
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
}

.dark .nepal-login-brand {
    border-color: var(--color-base-800);
}

.nepal-login-logo {
    background: transparent;
    border: 0;
    box-shadow: none;
    display: block;
    height: 108px;
    margin-bottom: 18px;
    object-fit: contain;
    padding: 0;
    width: auto;
}

@media (max-width: 1280px) {
    .change-list .results,
    .change-list #changelist-form [data-simplebar] {
        max-width: calc(100vw - 48px);
    }
}
