/* Records / Document list / viewer */
advanced-search {
    --adv-surface: var(--x-surface);
    --adv-panel: var(--x-surface-2);
    --adv-border: var(--x-line);
    --adv-border-strong: var(--x-line-strong);
    --adv-text: var(--x-text);
    --adv-muted: var(--x-text-3);
    --adv-hover: var(--x-primary-soft);
    --adv-shadow: var(--x-shadow-sm);
    --adv-shadow-in: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.main-panel {
    border-radius: var(--x-radius-lg) !important;
    border: 1px solid var(--x-line) !important;
    background: linear-gradient(150deg, color-mix(in srgb, var(--x-surface) 97%, transparent), color-mix(in srgb, var(--x-surface-2) 92%, transparent)) !important;
    box-shadow: var(--x-shadow-md) !important;
    padding: 14px !important;
    gap: 12px !important;
}

.main-panel .search-bar {
    width: 100%;
    min-width: 0;
    margin: 0 !important;
}

.main-panel .search-bar advanced-search {
    width: 100%;
    min-width: 0;
}

#recordsListViewContainer {
    border-radius: 18px !important;
    border: 1px solid var(--x-line) !important;
    background: color-mix(in srgb, var(--x-surface) 97%, transparent) !important;
    box-shadow: none !important;
    padding: 12px !important;
}

#recordsListView .k-listview-content {
    gap: 14px !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
}

.record-card {
    border-radius: 16px !important;
    border: 1px solid var(--x-line) !important;
    background: var(--x-surface) !important;
    box-shadow: var(--x-shadow-sm) !important;
    padding: 14px !important;
    min-height: 168px !important;
    gap: 10px !important;
}

.record-card:hover {
    border-color: var(--x-primary) !important;
    box-shadow: var(--x-shadow-md) !important;
}

.record-icon {
    width: 44px !important;
    height: 44px !important;
}

.record-title .record-kicker {
    font-size: 0.74rem !important;
    font-weight: 800 !important;
    color: var(--x-primary) !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.record-title strong {
    color: var(--x-text) !important;
    font-size: 1.06rem !important;
}

.record-summary {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--x-text-3);
    font-size: 0.9rem;
    line-height: 1.35;
}

.doc-count {
    border-top: 1px solid color-mix(in srgb, var(--x-line) 76%, transparent);
    padding-top: 9px !important;
    font-size: 0.92rem !important;
    color: var(--x-text-3) !important;
}

.doc-count .count {
    color: var(--x-primary) !important;
    font-size: 1.08rem !important;
}

#_docsLayer,
.doc-layer {
    background: linear-gradient(165deg, #eff4ff 0%, #e9f0fb 100%) !important;
}

#_docsLayer .docs-breadcrumb {
    color: #67789c;
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#_docsLayer .docs-breadcrumb span {
    margin: 0 0.45rem;
    opacity: 0.7;
}

#_docsLayer .docs-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.1rem;
    flex-wrap: wrap;
}

#_docsLayer .docs-top-left {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0;
    flex: 1 1 560px;
}

#_docsLayer .docs-back-btn {
    width: 62px;
    min-width: 62px;
    height: 62px;
    border-radius: 14px !important;
    border: 1px solid #c5d6ef !important;
    background: #f7fbff !important;
    box-shadow: 0 8px 20px rgba(51, 74, 116, 0.1);
}

#_docsLayer .docs-back-btn img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

#_docsLayer .docs-top-copy {
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
    min-width: 0;
}

#_docsLayer .docs-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

#_docsLayer .docs-title-wrap h2 {
    margin: 0;
    color: #08244f;
    font-size: clamp(1.65rem, 1.9vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.01em;
}

#_docsLayer .docs-record-tag {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: #d9e9ff;
    color: #1c70ea;
    font-size: 0.98rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

#_docsLayer .docs-top-copy p {
    margin: 0;
    color: #344a73;
    font-size: 1.05rem;
    font-weight: 500;
}

#_docsLayer .docs-top-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

#recordBtnSUM,
#recordBtnRAG {
    min-height: 52px;
    border-radius: 14px !important;
    font-weight: 800 !important;
    font-size: 1.02rem !important;
    padding: 0.7rem 1.2rem !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #3d7fdc !important;
    background: #f7fbff !important;
    color: #0f63d8 !important;
}

#recordBtnSUM img,
#recordBtnRAG img {
    height: 23px;
    width: 23px;
    object-fit: contain;
}

#recordBtnRAG {
    background: linear-gradient(135deg, #001c46, #052e73) !important;
    color: #fff !important;
    border-color: #06265f !important;
}

#_docsLayer .docs-table-card {
    border: 1px solid #c8d8f0;
    border-radius: 18px;
    background: linear-gradient(165deg, #f8fbff 0%, #eff5ff 100%);
    box-shadow: 0 12px 30px rgba(42, 72, 126, 0.12);
    padding: 1.1rem;
}

#_docsLayer .docs-toolbar {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto auto auto;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.95rem;
}

#_docsLayer .docs-toolbar-search {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 54px;
    border: 1px solid #c0d3ef;
    border-radius: 14px;
    background: #fdfefe;
    padding: 0 1rem;
}

#_docsLayer .docs-toolbar-search i {
    color: #0d6df0;
    font-size: 1.75rem;
}

#_docsLayer .docs-toolbar-search input {
    border: 0;
    outline: 0;
    width: 100%;
    background: transparent;
    color: #1f3561;
    font-size: 1.02rem;
    font-weight: 500;
}

#_docsLayer .docs-toolbar-search input::placeholder {
    color: #6f84aa;
}

#_docsLayer .docs-filter-btn,
#_docsLayer .docs-clear-btn {
    min-height: 54px;
    border-radius: 14px;
    border: 1px solid #c1d3ef;
    background: #f6faff;
    color: #0f63d8;
    font-weight: 800;
    font-size: 0.98rem;
    padding: 0 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

#_docsLayer .docs-filter-btn .badge {
    min-width: 28px;
    min-height: 28px;
    border-radius: 9px;
    background: #1f75ed;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#_docsLayer .docs-total {
    margin-left: auto;
    color: #21345a;
    font-size: 1.05rem;
    font-weight: 700;
}

#_docsGrid .k-grid {
    border: 1px solid #c7d7ef !important;
    border-radius: 16px !important;
    background: var(--adv-panel) !important;
    box-shadow: none !important;
}

#_docsGrid .k-grid table {
    width: 100% !important;
    table-layout: fixed;
}

#_docsGrid .k-grid-content {
    overflow-x: hidden !important;
}

#_docsGrid .k-grid-header,
#_docsGrid .k-table-thead {
    background: #dfeafc !important;
}

#_docsGrid .k-grid-header th,
#_docsGrid .k-table-th {
    color: #102754 !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    border-bottom: 1px solid #c7d7ef !important;
    height: 58px;
}

#_docsGrid .k-grid-content td,
#_docsGrid .k-table-td {
    color: #1f3561 !important;
    font-size: 0.94rem !important;
    border-color: #d6e2f4 !important;
    background: #f8fbff !important;
    vertical-align: middle;
    min-height: 84px;
    overflow: hidden;
}

#_docsGrid .k-grid-content tr:nth-child(even) td {
    background: #f2f7ff !important;
}

#_docsGrid .k-grid-content tr:hover td {
    background: #eaf3ff !important;
}

.docs-ref-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.58rem;
    min-width: 0;
    max-width: 100%;
}

.docs-ref-cell img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    flex: 0 0 auto;
}

.docs-ref-cell span {
    font-weight: 800;
    color: #112751;
    font-size: 0.92rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#_docsGrid .docs-title-cell {
    color: #102754 !important;
    font-size: 0.94rem !important;
    font-weight: 500 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.docs-date-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #384f77;
    max-width: 100%;
}

.docs-date-cell i {
    font-size: 1.05rem;
    color: #3f5b89;
}

.docs-date-cell div {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.docs-date-cell strong {
    color: #233862;
    font-weight: 700;
    font-size: 0.88rem;
}

.docs-date-cell span {
    color: #697d9f;
    font-size: 0.82rem;
}

#_docsGrid .docs-actions-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    width: 100%;
    min-width: 0;
}

#_docsGrid .js-eye-btn,
#_docsGrid .js-ctx-toggle {
    width: 42px;
    min-width: 42px;
    height: 42px;
    border: 1px solid #c1d3ee !important;
    border-radius: 10px !important;
    background: #f8fbff !important;
    padding: 0 !important;
}

#_docsGrid .ctx-actions {
    border: 1px solid #c1d3ee !important;
    background: #f8fbff !important;
    box-shadow: 0 12px 24px rgba(45, 71, 117, 0.16) !important;
    border-radius: 12px !important;
}

#_docsGrid .ctx-btn {
    border: 1px solid #d5e0f2 !important;
    background: #fff !important;
}

#_docsGrid .ctx-btn span {
    color: #2b4674 !important;
}

#_docsLayer .docs-footer-hint {
    color: #546d98;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 0.4rem 0;
}

#_docsGrid .k-pager-wrap {
    background: #f8fbff !important;
    border-top: 1px solid #d6e2f4 !important;
}

html[data-theme="dark"] #_docsLayer {
    background: linear-gradient(165deg, #061a35 0%, #0a264a 100%) !important;
}

html[data-theme="dark"] #_docsLayer .docs-breadcrumb,
html[data-theme="dark"] #_docsLayer .docs-top-copy p {
    color: #a7c0e6;
}

html[data-theme="dark"] #_docsLayer .docs-title-wrap h2,
html[data-theme="dark"] #_docsLayer .docs-total {
    color: #e5efff;
}

html[data-theme="dark"] #_docsLayer .docs-record-tag {
    background: #173b6f;
    color: #8fc0ff;
}

html[data-theme="dark"] #_docsLayer .docs-back-btn {
    border-color: #2d4f82 !important;
    background: #0f2a4d !important;
}

html[data-theme="dark"] #_docsLayer .docs-table-card {
    border-color: #2a4f83;
    background: linear-gradient(165deg, #0c2547 0%, #123156 100%);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] #_docsLayer .docs-toolbar-search,
html[data-theme="dark"] #_docsLayer .docs-filter-btn,
html[data-theme="dark"] #_docsLayer .docs-clear-btn {
    border-color: #355f97;
    background: #12305a;
    color: #cce0ff;
}

html[data-theme="dark"] #_docsLayer .docs-toolbar-search input {
    color: #dbe8ff;
}

html[data-theme="dark"] #_docsLayer .docs-toolbar-search input::placeholder {
    color: #9ab6df;
}

html[data-theme="dark"] #recordBtnSUM {
    border-color: #4f82c6 !important;
    background: #123058 !important;
    color: #9ec6ff !important;
}

html[data-theme="dark"] #recordBtnRAG {
    border-color: #0a2f6a !important;
}

html[data-theme="dark"] #_docsGrid .k-grid {
    border-color: #2f578d !important;
    background: #0f2b4f !important;
}

html[data-theme="dark"] #_docsGrid .k-grid-header,
html[data-theme="dark"] #_docsGrid .k-table-thead {
    background: #153c6f !important;
}

html[data-theme="dark"] #_docsGrid .k-grid-header th,
html[data-theme="dark"] #_docsGrid .k-table-th {
    color: #d9e9ff !important;
    border-bottom-color: #2f578d !important;
}

html[data-theme="dark"] #_docsGrid .k-grid-content td,
html[data-theme="dark"] #_docsGrid .k-table-td {
    color: #d8e8ff !important;
    border-color: #2a4f82 !important;
    background: #10315a !important;
}

html[data-theme="dark"] #_docsGrid .k-grid-content tr:nth-child(even) td {
    background: #0f2b50 !important;
}

html[data-theme="dark"] #_docsGrid .k-grid-content tr:hover td {
    background: #183d6e !important;
}

html[data-theme="dark"] .docs-ref-cell span,
html[data-theme="dark"] .docs-date-cell strong {
    color: #e2eeff;
}

html[data-theme="dark"] .docs-date-cell,
html[data-theme="dark"] .docs-date-cell i,
html[data-theme="dark"] .docs-date-cell span,
html[data-theme="dark"] #_docsLayer .docs-footer-hint {
    color: #a8c3e9;
}

html[data-theme="dark"] #_docsGrid .js-eye-btn,
html[data-theme="dark"] #_docsGrid .js-ctx-toggle,
html[data-theme="dark"] #_docsGrid .ctx-actions {
    border-color: #3a649e !important;
    background: #153764 !important;
}

html[data-theme="dark"] #_docsGrid .ctx-btn {
    border-color: #2f578d !important;
    background: #123058 !important;
}

html[data-theme="dark"] #_docsGrid .ctx-btn span {
    color: #d0e2ff !important;
}

html[data-theme="dark"] #_docsGrid .k-pager-wrap {
    background: #0f2b4f !important;
    border-top-color: #2a4f82 !important;
}

@media (max-width: 1280px) {
    #_docsLayer .docs-top {
        flex-direction: column;
        align-items: stretch;
    }

    #_docsLayer .docs-top-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    #_docsLayer .docs-toolbar {
        grid-template-columns: 1fr;
    }

    #_docsLayer .docs-total {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    #_docsLayer .docs-shell {
        padding: 1rem;
    }

    #_docsLayer .docs-title-wrap h2 {
        font-size: 1.65rem;
    }

    #_docsLayer .docs-record-tag {
        font-size: 0.84rem;
    }

    #_docsLayer .docs-back-btn {
        width: 52px;
        min-width: 52px;
        height: 52px;
    }

    #recordBtnSUM,
    #recordBtnRAG {
        width: 100%;
        justify-content: center;
    }

    #_docsGrid .k-grid-header th,
    #_docsGrid .k-table-th,
    #_docsGrid .k-grid-content td,
    #_docsGrid .k-table-td {
        font-size: 0.9rem !important;
    }
}

.doc-toolbar {
    min-height: 62px !important;
    border-top: 1px solid color-mix(in srgb, var(--x-line) 72%, transparent);
    background: color-mix(in srgb, var(--x-surface) 94%, transparent) !important;
}

.icon-btn {
    border: 1px solid var(--x-line) !important;
    background: var(--x-surface) !important;
    border-radius: 12px !important;
}

.icon-btn img {
    height: 28px !important;
}

.page-input {
    border: 1px solid var(--x-line) !important;
    border-radius: 10px !important;
    background: var(--x-surface) !important;
    color: var(--x-text) !important;
}

.doc-title,
.page-label {
    color: var(--x-text) !important;
}

/* Records page */
body.page-home-records .app-content,
body.page-home-records .app-content-inner {
    background: #eef3fb !important;
}

body.page-home-records .app-content-inner {
    padding: 0.6rem 0.8rem 0.85rem !important;
}

body.page-home-records .records-shell {
    padding: 0;
}

body.page-home-records .records-main.main-panel {
    height: auto !important;
    min-height: calc(100vh - var(--x-nav-height) - 2.05rem) !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #eef3fb !important;
    box-shadow: none !important;
    padding: 0 !important;
    gap: 0.8rem !important;
}

body.page-home-records .records-header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
}

body.page-home-records .records-breadcrumb {
    color: #4e648e;
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

body.page-home-records .records-breadcrumb span {
    opacity: 0.72;
    margin: 0 0.42rem;
}

body.page-home-records .records-header h1 {
    margin: 0;
    color: #082457;
    font-size: clamp(2.05rem, 2.2vw, 3rem);
    font-weight: 800;
    line-height: 1.03;
}

body.page-home-records .records-header p {
    margin: 0;
    color: #2d456f;
    font-size: 1rem;
    font-weight: 500;
}

body.page-home-records .records-main .search-bar {
    margin: 0 !important;
    max-height: none !important;
    flex: initial !important;
}

body.page-home-records .records-main advanced-search {
    --adv-surface: #ffffff;
    --adv-panel: #eef2fb;
    --adv-border: #bfd0ea;
    --adv-border-strong: #2f6ef6;
    --adv-text: #1f2f52;
    --adv-muted: #5b6786;
    --adv-hover: #dce7fb;
    --adv-focus: rgba(47, 110, 246, 0.2);
    --adv-shadow: none;
}

body.page-home-records .records-main advanced-search::part(main-input) {
    min-height: 56px !important;
    border-radius: 14px !important;
    border-color: #2f6ef6 !important;
    background: #ffffff !important;
}

body.page-home-records .records-main advanced-search::part(filters-badge) {
    background: #dce7fb !important;
    color: #2f6ef6 !important;
    border: 1px solid #dce7fb !important;
}

body.page-home-records .records-main advanced-search::part(toggle-advanced) {
    width: 46px !important;
    height: 46px !important;
    border-radius: 12px !important;
    border-color: #d4deef !important;
    background: #e6ebf7 !important;
    color: #2f6ef6 !important;
}

body.page-home-records .records-main advanced-search::part(search-button) {
    width: 46px !important;
    height: 46px !important;
    border-radius: 12px !important;
    border-color: #1a2f5f !important;
    background: linear-gradient(135deg, #223d77, #132c5d) !important;
    color: #f6f9ff !important;
}

body.page-home-records .records-count {
    color: #243d6a;
    font-size: 1.1rem;
    font-weight: 700;
}

body.page-home-records #recordsListViewContainer {
    height: auto !important;
    min-height: calc(100vh - var(--x-nav-height) - 15.8rem) !important;
    overflow: visible !important;
    display: block !important;
    flex: initial !important;
    border: 0 !important;
    background: #eef3fb !important;
    box-shadow: none !important;
    padding: 0 !important;
}

body.page-home-records #recordsListView {
    height: auto !important;
    overflow: visible !important;
    display: block !important;
    background: #eef3fb !important;
}

body.page-home-records #recordsListView .k-listview-content {
    display: grid;
    align-content: start;
    gap: 1rem !important;
    margin: 0 !important;
    padding: 0 !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
}

body.page-home-records .record-card {
    border-radius: 18px !important;
    border: 1px solid #b8ccec !important;
    background: linear-gradient(155deg, #ffffff 0%, #f3f7ff 100%) !important;
    box-shadow: 0 10px 20px rgba(20, 54, 119, 0.11) !important;
    padding: 1.15rem !important;
    min-height: 260px !important;
    gap: 0.85rem !important;
}

body.page-home-records .record-card:hover {
    transform: translateY(-2px);
    border-color: #4f86ea !important;
    box-shadow: 0 14px 28px rgba(30, 71, 143, 0.16) !important;
}

body.page-home-records .record-header {
    align-items: flex-start !important;
    gap: 0.8rem !important;
}

body.page-home-records .record-icon {
    width: 84px !important;
    height: 84px !important;
    padding: 0.72rem;
    border-radius: 16px;
    background: #e8f0ff;
    object-fit: contain;
    flex: 0 0 auto;
}

body.page-home-records .record-icon-sec {
    width: 36px !important;
    height: 36px !important;
    min-height: 0 !important;
    margin-left: auto;
}

body.page-home-records .record-title {
    display: flex;
    flex-direction: column;
    gap: 0.44rem;
    min-width: 0;
}

body.page-home-records .record-title .record-kicker {
    width: fit-content;
    padding: 0.22rem 0.56rem;
    border-radius: 999px;
    background: #e4efff;
    color: #1f6fe8 !important;
    font-size: 0.77rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.page-home-records .record-title strong {
    color: #0d2a5b !important;
    font-size: clamp(1.1rem, 1.35vw, 1.75rem) !important;
    font-weight: 800 !important;
    line-height: 1.15;
}

body.page-home-records .record-title strong > span,
body.page-home-records .record-summary {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.page-home-records .record-title strong > span {
    -webkit-line-clamp: 2;
}

body.page-home-records .record-summary {
    color: #46628e !important;
    font-size: 0.95rem !important;
    line-height: 1.33;
    -webkit-line-clamp: 2;
}

body.page-home-records .doc-count {
    margin-top: auto;
    border-top: 1px solid #d7e5fb;
    background: #f6f9ff;
    border-radius: 12px;
    padding: 0.72rem 0.86rem !important;
    color: #1c3868 !important;
    font-size: 0.98rem !important;
    font-weight: 700;
}

body.page-home-records .doc-count .count {
    color: #1f63f0 !important;
    font-size: 1.95rem !important;
    font-weight: 800 !important;
}

body.page-home-records #recordsListView .k-pager-wrap {
    margin-top: 1.2rem !important;
    padding: 0.2rem 0 !important;
    border: 0 !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.2rem !important;
    flex-wrap: wrap !important;
}

body.page-home-records #recordsListView .k-pager-wrap .k-pager-nav-buttons,
body.page-home-records #recordsListView .k-pager-wrap .k-pager-numbers-wrap {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    padding: 0.35rem 0.45rem !important;
    border: 1px solid #c5d5ec !important;
    border-radius: 999px !important;
    background: #f7faff !important;
}

body.page-home-records #recordsListView :is(.k-pager-first, .k-pager-prev, .k-pager-next, .k-pager-last) {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border: 1px solid #bfd0eb !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: #3c5f96 !important;
}

body.page-home-records #recordsListView :is(.k-pager-first, .k-pager-prev, .k-pager-next, .k-pager-last):hover {
    border-color: #8fb1e6 !important;
    background: #f3f8ff !important;
}

body.page-home-records #recordsListView :is(.k-pager-first, .k-pager-last) {
    display: none !important;
}

body.page-home-records #recordsListView .k-pager-first {
    order: 1;
}

body.page-home-records #recordsListView .k-pager-prev {
    order: 2;
}

body.page-home-records #recordsListView .k-pager-numbers,
body.page-home-records #recordsListView .k-pager-numbers-wrap {
    order: 3;
}

body.page-home-records #recordsListView .k-pager-next {
    order: 4;
}

body.page-home-records #recordsListView .k-pager-last {
    order: 5;
}

body.page-home-records #recordsListView .k-pager-numbers {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
}

body.page-home-records #recordsListView .k-pager-numbers :is(.k-link, .k-state-selected, .k-selected) {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    padding: 0 !important;
    border-radius: 14px !important;
    border: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 800 !important;
}

body.page-home-records #recordsListView .k-pager-numbers :is(.k-state-selected, .k-selected) {
    background: linear-gradient(145deg, #2a7cf3, #0d56df) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 20px rgba(22, 90, 200, 0.34) !important;
}

body.page-home-records #recordsListView .k-pager-sizes {
    order: 6;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.8rem !important;
    color: #2f4773 !important;
    font-size: 1rem !important;
    font-weight: 500;
}

body.page-home-records #recordsListView .k-pager-sizes .k-picker {
    min-width: 98px !important;
    height: 54px !important;
    border-radius: 16px !important;
    border: 1px solid #bccde8 !important;
    background: #ffffff !important;
}

body.page-home-records #recordsListView .k-pager-sizes .k-input-inner {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #112d5f !important;
}

body.page-home-records #recordsListView .k-pager-info {
    order: 7;
    color: #2c446f !important;
    font-size: 1.15rem !important;
    font-weight: 500 !important;
}

/* Kendo ListView pager variant (k-listview-pager) */
body.page-home-records :is(#recordsListView, #recordsListViewContainer) .k-listview-pager,
body.page-home-records #recordsListViewContainer > .k-listview-pager {
    margin-top: 1.2rem !important;
    padding: 0.2rem 0 !important;
    border: 0 !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.2rem !important;
    flex-wrap: wrap !important;
    box-shadow: none !important;
}

body.page-home-records :is(#recordsListView, #recordsListViewContainer) .k-listview-pager .k-pager-numbers-wrap,
body.page-home-records #recordsListViewContainer > .k-listview-pager .k-pager-numbers-wrap {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    padding: 0.35rem 0.45rem !important;
    border: 1px solid #c5d5ec !important;
    border-radius: 999px !important;
    background: #f7faff !important;
}

body.page-home-records :is(#recordsListView, #recordsListViewContainer) .k-listview-pager .k-pager-sizes,
body.page-home-records #recordsListViewContainer > .k-listview-pager .k-pager-sizes {
    order: 6;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.8rem !important;
    color: #2f4773 !important;
}

body.page-home-records :is(#recordsListView, #recordsListViewContainer) .k-listview-pager .k-pager-info,
body.page-home-records #recordsListViewContainer > .k-listview-pager .k-pager-info {
    order: 7;
    color: #2c446f !important;
}

html[data-theme="dark"] body.page-home-records .app-content,
html[data-theme="dark"] body.page-home-records .app-content-inner,
body.page-home-records[data-theme="dark"] .app-content,
body.page-home-records[data-theme="dark"] .app-content-inner {
    background: linear-gradient(180deg, #0e2445 0%, #132c53 100%) !important;
}

html[data-theme="dark"] body.page-home-records .records-breadcrumb,
html[data-theme="dark"] body.page-home-records .records-header p,
html[data-theme="dark"] body.page-home-records .records-count,
body.page-home-records[data-theme="dark"] .records-breadcrumb,
body.page-home-records[data-theme="dark"] .records-header p,
body.page-home-records[data-theme="dark"] .records-count {
    color: #c4d5f0;
}

html[data-theme="dark"] body.page-home-records .records-header h1,
body.page-home-records[data-theme="dark"] .records-header h1 {
    color: #f3f7ff;
}

html[data-theme="dark"] body.page-home-records :is(.records-main.main-panel, #recordsListViewContainer, #recordsListView),
body.page-home-records[data-theme="dark"] :is(.records-main.main-panel, #recordsListViewContainer, #recordsListView) {
    background: #132c53 !important;
}

html[data-theme="dark"] body.page-home-records .records-main advanced-search,
body.page-home-records[data-theme="dark"] .records-main advanced-search {
    --adv-surface: #183861;
    --adv-panel: #1d4474;
    --adv-border: #436ca5;
    --adv-border-strong: #5e8bca;
    --adv-text: #e1edff;
    --adv-muted: #aac2e8;
    --adv-hover: #285386;
}

html[data-theme="dark"] body.page-home-records .records-main advanced-search::part(main-input),
body.page-home-records[data-theme="dark"] .records-main advanced-search::part(main-input) {
    background: #17385f !important;
    color: #e2edff !important;
    border-color: #4f77ac !important;
}

html[data-theme="dark"] body.page-home-records .records-main advanced-search::part(search-button),
body.page-home-records[data-theme="dark"] .records-main advanced-search::part(search-button) {
    background: linear-gradient(135deg, #2a7cf4, #0e5fe8) !important;
    border-color: #66a0ef !important;
}

html[data-theme="dark"] body.page-home-records .records-main advanced-search::part(toggle-advanced),
body.page-home-records[data-theme="dark"] .records-main advanced-search::part(toggle-advanced) {
    background: #1a3d69 !important;
    border-color: #4b73a8 !important;
    color: #c7dbf8 !important;
}

html[data-theme="dark"] body.page-home-records .record-card,
body.page-home-records[data-theme="dark"] .record-card {
    border-color: #3f6499 !important;
    background: linear-gradient(155deg, #1a416f 0%, #1c4778 100%) !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28) !important;
}

html[data-theme="dark"] body.page-home-records .record-icon,
body.page-home-records[data-theme="dark"] .record-icon {
    background: #265086;
}

html[data-theme="dark"] body.page-home-records .record-title .record-kicker,
body.page-home-records[data-theme="dark"] .record-title .record-kicker {
    background: #dce9ff;
    color: #1f63d7 !important;
}

html[data-theme="dark"] body.page-home-records .record-title strong,
body.page-home-records[data-theme="dark"] .record-title strong {
    color: #f1f6ff !important;
}

html[data-theme="dark"] body.page-home-records .record-summary,
body.page-home-records[data-theme="dark"] .record-summary {
    color: #d1def4 !important;
}

html[data-theme="dark"] body.page-home-records .doc-count,
body.page-home-records[data-theme="dark"] .doc-count {
    border-top-color: #3f679b;
    background: #1a446f;
    color: #deebff !important;
}

html[data-theme="dark"] body.page-home-records #recordsListView .k-pager-wrap .k-pager-nav-buttons,
html[data-theme="dark"] body.page-home-records #recordsListView .k-pager-wrap .k-pager-numbers-wrap,
body.page-home-records[data-theme="dark"] #recordsListView .k-pager-wrap .k-pager-nav-buttons,
body.page-home-records[data-theme="dark"] #recordsListView .k-pager-wrap .k-pager-numbers-wrap {
    border-color: #4a73aa !important;
    background: #1b426f !important;
}

html[data-theme="dark"] body.page-home-records #recordsListView :is(.k-pager-first, .k-pager-prev, .k-pager-next, .k-pager-last),
body.page-home-records[data-theme="dark"] #recordsListView :is(.k-pager-first, .k-pager-prev, .k-pager-next, .k-pager-last) {
    border-color: #4f77ac !important;
    background: #214f82 !important;
    color: #d3e4ff !important;
}

html[data-theme="dark"] body.page-home-records #recordsListView .k-pager-sizes,
html[data-theme="dark"] body.page-home-records #recordsListView .k-pager-info,
body.page-home-records[data-theme="dark"] #recordsListView .k-pager-sizes,
body.page-home-records[data-theme="dark"] #recordsListView .k-pager-info {
    color: #d0e0fb !important;
}

html[data-theme="dark"] body.page-home-records #recordsListView .k-pager-sizes .k-picker,
body.page-home-records[data-theme="dark"] #recordsListView .k-pager-sizes .k-picker {
    border-color: #4f77ac !important;
    background: #214f82 !important;
}

html[data-theme="dark"] body.page-home-records #recordsListView .k-pager-sizes .k-input-inner,
body.page-home-records[data-theme="dark"] #recordsListView .k-pager-sizes .k-input-inner {
    color: #e3eeff !important;
}

html[data-theme="dark"] body.page-home-records :is(#recordsListView, #recordsListViewContainer) .k-listview-pager,
body.page-home-records[data-theme="dark"] :is(#recordsListView, #recordsListViewContainer) .k-listview-pager,
html[data-theme="dark"] body.page-home-records #recordsListViewContainer > .k-listview-pager,
body.page-home-records[data-theme="dark"] #recordsListViewContainer > .k-listview-pager {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.page-home-records :is(#recordsListView, #recordsListViewContainer) .k-listview-pager .k-pager-numbers-wrap,
body.page-home-records[data-theme="dark"] :is(#recordsListView, #recordsListViewContainer) .k-listview-pager .k-pager-numbers-wrap,
html[data-theme="dark"] body.page-home-records #recordsListViewContainer > .k-listview-pager .k-pager-numbers-wrap,
body.page-home-records[data-theme="dark"] #recordsListViewContainer > .k-listview-pager .k-pager-numbers-wrap {
    border-color: #4a73aa !important;
    background: #1b426f !important;
}

html[data-theme="dark"] body.page-home-records :is(#recordsListView, #recordsListViewContainer) .k-listview-pager .k-pager-sizes,
html[data-theme="dark"] body.page-home-records :is(#recordsListView, #recordsListViewContainer) .k-listview-pager .k-pager-info,
body.page-home-records[data-theme="dark"] :is(#recordsListView, #recordsListViewContainer) .k-listview-pager .k-pager-sizes,
body.page-home-records[data-theme="dark"] :is(#recordsListView, #recordsListViewContainer) .k-listview-pager .k-pager-info,
html[data-theme="dark"] body.page-home-records #recordsListViewContainer > .k-listview-pager .k-pager-sizes,
html[data-theme="dark"] body.page-home-records #recordsListViewContainer > .k-listview-pager .k-pager-info,
body.page-home-records[data-theme="dark"] #recordsListViewContainer > .k-listview-pager .k-pager-sizes,
body.page-home-records[data-theme="dark"] #recordsListViewContainer > .k-listview-pager .k-pager-info {
    color: #d0e0fb !important;
}

html[data-theme="dark"] body.page-home-records :is(#recordsListView, #recordsListViewContainer) .k-listview-pager :is(.k-pager-nav, .k-button-flat-base),
body.page-home-records[data-theme="dark"] :is(#recordsListView, #recordsListViewContainer) .k-listview-pager :is(.k-pager-nav, .k-button-flat-base),
html[data-theme="dark"] body.page-home-records #recordsListViewContainer > .k-listview-pager :is(.k-pager-nav, .k-button-flat-base),
body.page-home-records[data-theme="dark"] #recordsListViewContainer > .k-listview-pager :is(.k-pager-nav, .k-button-flat-base) {
    color: #d3e4ff !important;
    border-color: #4f77ac !important;
    background: #214f82 !important;
}

@media (max-width: 991.98px) {
    body.page-home-records .app-content-inner {
        padding: 0.5rem 0.62rem 0.72rem !important;
    }

    body.page-home-records #recordsListView .k-listview-content {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    }

    body.page-home-records #recordsListView .k-pager-wrap {
        justify-content: flex-start !important;
        gap: 0.9rem !important;
    }

    body.page-home-records .records-main.main-panel {
        min-height: calc(100vh - var(--x-nav-height) - 1.65rem) !important;
    }

    body.page-home-records #recordsListViewContainer {
        min-height: calc(100vh - var(--x-nav-height) - 13.2rem) !important;
    }
}

@media (max-width: 640px) {
    body.page-home-records #recordsListView .k-listview-content {
        grid-template-columns: 1fr !important;
    }

    body.page-home-records .record-card {
        min-height: 228px !important;
    }

    body.page-home-records #recordsListView :is(.k-pager-first, .k-pager-prev, .k-pager-next, .k-pager-last) {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
    }

    body.page-home-records #recordsListView .k-pager-numbers :is(.k-link, .k-state-selected, .k-selected) {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        border-radius: 12px !important;
    }

    body.page-home-records #recordsListView .k-pager-sizes {
        font-size: 0.92rem !important;
    }

    body.page-home-records #recordsListView .k-pager-sizes .k-picker {
        height: 44px !important;
        min-width: 84px !important;
        border-radius: 12px !important;
    }

    body.page-home-records #recordsListView .k-pager-sizes .k-input-inner,
    body.page-home-records #recordsListView .k-pager-info {
        font-size: 1rem !important;
    }
}

@media (max-width: 991.98px) {
    .main-panel {
        height: auto !important;
    }

    #recordsListViewContainer {
        height: calc(100vh - 260px) !important;
    }

    body.page-home-records .records-shell {
        padding: 0;
    }

    body.page-home-records #recordsListViewContainer {
        height: auto !important;
        min-height: calc(100vh - var(--x-nav-height) - 13.2rem) !important;
        overflow: visible !important;
    }
}



/* Documents Grid Finishing */
#_docsLayer .docs-toolbar-search {
    min-width: 0;
}

#_docsLayer .docs-toolbar-search input {
    color: #1f3561 !important;
    -webkit-text-fill-color: #1f3561;
}

#_docsLayer .docs-toolbar-search input::placeholder {
    color: #6f84aa !important;
    -webkit-text-fill-color: #6f84aa;
    opacity: 1;
}

#_docsLayer .docs-total {
    justify-self: end;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    min-height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0e2751, #17448a) !important;
    color: #ffffff !important;
    font-size: 1rem;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 16px 26px rgba(14, 40, 82, 0.16);
}

#_docsLayer .docs-total::before {
    content: "\F229";
    font-family: bootstrap-icons;
    font-size: 0.95rem;
    color: inherit;
}

#_docsLayer #_docsGrid .k-grid {
    display: flex;
    flex-direction: column;
    height: 100% !important;
    overflow: hidden !important;
}

#_docsLayer #_docsGrid .k-grid-header,
#_docsLayer #_docsGrid .k-grid-header-wrap,
#_docsLayer #_docsGrid .k-pager-wrap {
    flex: 0 0 auto;
    overflow: hidden !important;
}

#_docsLayer #_docsGrid .k-grid-content,
#_docsLayer #_docsGrid .k-grid-content-locked,
#_docsLayer #_docsGrid .k-grid-content-wrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: auto !important;
}

#_docsLayer #_docsGrid .k-grid-content {
    overflow-y: auto !important;
    scrollbar-gutter: auto;
}

#_docsLayer #_docsGrid tbody tr,
#_docsLayer #_docsGrid .k-grid-content tr {
    transform: none !important;
}

#_docsLayer #_docsGrid .k-grid-content tr:hover {
    transform: none !important;
}

html[data-theme="dark"] #_docsLayer .docs-breadcrumb,
html[data-theme="dark"] #_docsLayer .docs-record-tag,
html[data-theme="dark"] #_docsLayer .docs-hero-label,
html[data-theme="dark"] #_docsLayer .docs-top-copy p,
html[data-theme="dark"] #_docsLayer .docs-footer-hint,
body[data-theme="dark"] #_docsLayer .docs-breadcrumb,
body[data-theme="dark"] #_docsLayer .docs-record-tag,
body[data-theme="dark"] #_docsLayer .docs-hero-label,
body[data-theme="dark"] #_docsLayer .docs-top-copy p,
body[data-theme="dark"] #_docsLayer .docs-footer-hint,
body.page-home-records[data-theme="dark"] #_docsLayer .docs-breadcrumb,
body.page-home-records[data-theme="dark"] #_docsLayer .docs-record-tag,
body.page-home-records[data-theme="dark"] #_docsLayer .docs-hero-label,
body.page-home-records[data-theme="dark"] #_docsLayer .docs-top-copy p,
body.page-home-records[data-theme="dark"] #_docsLayer .docs-footer-hint {
    color: #a9c1e8 !important;
}

html[data-theme="dark"] #_docsLayer .docs-hero-meta,
body[data-theme="dark"] #_docsLayer .docs-hero-meta,
body.page-home-records[data-theme="dark"] #_docsLayer .docs-hero-meta {
    background: rgba(12, 29, 54, 0.54) !important;
    box-shadow: inset 0 0 0 1px rgba(79, 114, 171, 0.52) !important;
}

html[data-theme="dark"] #_docsLayer .docs-hero-stat strong,
html[data-theme="dark"] #_docsLayer .docs-hero-context strong,
html[data-theme="dark"] #_docsLayer .docs-title-wrap h2,
body[data-theme="dark"] #_docsLayer .docs-hero-stat strong,
body[data-theme="dark"] #_docsLayer .docs-hero-context strong,
body[data-theme="dark"] #_docsLayer .docs-title-wrap h2,
body.page-home-records[data-theme="dark"] #_docsLayer .docs-hero-stat strong,
body.page-home-records[data-theme="dark"] #_docsLayer .docs-hero-context strong,
body.page-home-records[data-theme="dark"] #_docsLayer .docs-title-wrap h2 {
    color: #eef5ff !important;
}

html[data-theme="dark"] #_docsLayer .docs-toolbar-search input,
body[data-theme="dark"] #_docsLayer .docs-toolbar-search input,
body.page-home-records[data-theme="dark"] #_docsLayer .docs-toolbar-search input {
    color: #dbe8ff !important;
    -webkit-text-fill-color: #dbe8ff;
}

html[data-theme="dark"] #_docsLayer .docs-toolbar-search input::placeholder,
body[data-theme="dark"] #_docsLayer .docs-toolbar-search input::placeholder,
body.page-home-records[data-theme="dark"] #_docsLayer .docs-toolbar-search input::placeholder {
    color: #9ab6df !important;
    -webkit-text-fill-color: #9ab6df;
}

html[data-theme="dark"] #_docsLayer #_docsGrid .k-grid-content,
html[data-theme="dark"] #_docsLayer #_docsGrid .k-grid-content-wrap,
html[data-theme="dark"] #_docsLayer #_docsGrid .k-grid-content-locked,
html[data-theme="dark"] #_docsLayer #_docsGrid .k-grid-header-wrap,
html[data-theme="dark"] #_docsLayer #_docsGrid .k-grid-container,
html[data-theme="dark"] #_docsLayer #_docsGrid .k-grid-footer,
html[data-theme="dark"] #_docsLayer #_docsGrid .k-table-tbody,
html[data-theme="dark"] #_docsLayer #_docsGrid .k-grid-content table,
html[data-theme="dark"] #_docsLayer #_docsGrid .k-grid-table,
body[data-theme="dark"] #_docsLayer #_docsGrid .k-grid-content,
body[data-theme="dark"] #_docsLayer #_docsGrid .k-grid-content-wrap,
body[data-theme="dark"] #_docsLayer #_docsGrid .k-grid-content-locked,
body[data-theme="dark"] #_docsLayer #_docsGrid .k-grid-header-wrap,
body[data-theme="dark"] #_docsLayer #_docsGrid .k-grid-container,
body[data-theme="dark"] #_docsLayer #_docsGrid .k-grid-footer,
body[data-theme="dark"] #_docsLayer #_docsGrid .k-table-tbody,
body[data-theme="dark"] #_docsLayer #_docsGrid .k-grid-content table,
body[data-theme="dark"] #_docsLayer #_docsGrid .k-grid-table,
body.page-home-records[data-theme="dark"] #_docsLayer #_docsGrid .k-grid-content,
body.page-home-records[data-theme="dark"] #_docsLayer #_docsGrid .k-grid-content-wrap,
body.page-home-records[data-theme="dark"] #_docsLayer #_docsGrid .k-grid-content-locked,
body.page-home-records[data-theme="dark"] #_docsLayer #_docsGrid .k-grid-header-wrap,
body.page-home-records[data-theme="dark"] #_docsLayer #_docsGrid .k-grid-container,
body.page-home-records[data-theme="dark"] #_docsLayer #_docsGrid .k-grid-footer,
body.page-home-records[data-theme="dark"] #_docsLayer #_docsGrid .k-table-tbody,
body.page-home-records[data-theme="dark"] #_docsLayer #_docsGrid .k-grid-content table,
body.page-home-records[data-theme="dark"] #_docsLayer #_docsGrid .k-grid-table {
    background: transparent !important;
    background-color: transparent !important;
}

html[data-theme="dark"] #_docsLayer #_docsGrid .k-pager-wrap,
html[data-theme="dark"] #_docsLayer #_docsGrid .k-pager-wrap .k-link,
html[data-theme="dark"] #_docsLayer #_docsGrid .k-pager-wrap .k-button,
html[data-theme="dark"] #_docsLayer #_docsGrid .k-pager-wrap .k-pager-info,
html[data-theme="dark"] #_docsLayer #_docsGrid .k-pager-wrap .k-label,
body[data-theme="dark"] #_docsLayer #_docsGrid .k-pager-wrap,
body[data-theme="dark"] #_docsLayer #_docsGrid .k-pager-wrap .k-link,
body[data-theme="dark"] #_docsLayer #_docsGrid .k-pager-wrap .k-button,
body[data-theme="dark"] #_docsLayer #_docsGrid .k-pager-wrap .k-pager-info,
body[data-theme="dark"] #_docsLayer #_docsGrid .k-pager-wrap .k-label,
body.page-home-records[data-theme="dark"] #_docsLayer #_docsGrid .k-pager-wrap,
body.page-home-records[data-theme="dark"] #_docsLayer #_docsGrid .k-pager-wrap .k-link,
body.page-home-records[data-theme="dark"] #_docsLayer #_docsGrid .k-pager-wrap .k-button,
body.page-home-records[data-theme="dark"] #_docsLayer #_docsGrid .k-pager-wrap .k-pager-info,
body.page-home-records[data-theme="dark"] #_docsLayer #_docsGrid .k-pager-wrap .k-label {
    color: #d7e7ff !important;
}

html[data-theme="dark"] #_docsLayer #_docsGrid .k-pager-wrap .k-input-inner,
html[data-theme="dark"] #_docsLayer #_docsGrid .k-pager-wrap .k-picker,
html[data-theme="dark"] #_docsLayer #_docsGrid .k-pager-wrap .k-dropdownlist,
body[data-theme="dark"] #_docsLayer #_docsGrid .k-pager-wrap .k-input-inner,
body[data-theme="dark"] #_docsLayer #_docsGrid .k-pager-wrap .k-picker,
body[data-theme="dark"] #_docsLayer #_docsGrid .k-pager-wrap .k-dropdownlist,
body.page-home-records[data-theme="dark"] #_docsLayer #_docsGrid .k-pager-wrap .k-input-inner,
body.page-home-records[data-theme="dark"] #_docsLayer #_docsGrid .k-pager-wrap .k-picker,
body.page-home-records[data-theme="dark"] #_docsLayer #_docsGrid .k-pager-wrap .k-dropdownlist {
    background: rgba(18, 40, 71, 0.96) !important;
    color: #edf4ff !important;
    border-color: rgba(84, 121, 181, 0.58) !important;
}

body[data-theme="dark"] #_docsLayer #_docsGrid .k-grid,
body.page-home-records[data-theme="dark"] #_docsLayer #_docsGrid .k-grid {
    background: linear-gradient(180deg, rgba(16, 37, 68, 0.98), rgba(13, 31, 58, 0.98)) !important;
    background-color: rgba(16, 37, 68, 0.98) !important;
}

body[data-theme="dark"] #_docsLayer #_docsGrid .k-grid-header th,
body[data-theme="dark"] #_docsLayer #_docsGrid .k-table-th,
body.page-home-records[data-theme="dark"] #_docsLayer #_docsGrid .k-grid-header th,
body.page-home-records[data-theme="dark"] #_docsLayer #_docsGrid .k-table-th {
    background: rgba(24, 54, 96, 0.94) !important;
    color: #edf4ff !important;
}

body[data-theme="dark"] #_docsLayer #_docsGrid .k-grid-content td,
body[data-theme="dark"] #_docsLayer #_docsGrid .k-table-td,
body.page-home-records[data-theme="dark"] #_docsLayer #_docsGrid .k-grid-content td,
body.page-home-records[data-theme="dark"] #_docsLayer #_docsGrid .k-table-td {
    background: rgba(20, 47, 85, 0.94) !important;
    color: #d9e8ff !important;
}

body[data-theme="dark"] #_docsLayer #_docsGrid .k-grid-content tr:nth-child(even) td,
body.page-home-records[data-theme="dark"] #_docsLayer #_docsGrid .k-grid-content tr:nth-child(even) td {
    background: rgba(17, 41, 74, 0.96) !important;
}

body[data-theme="dark"] #_docsLayer #_docsGrid .k-grid-content tr:hover td,
body.page-home-records[data-theme="dark"] #_docsLayer #_docsGrid .k-grid-content tr:hover td {
    background: rgba(33, 71, 120, 0.92) !important;
}

/* Documents grid layout */
#_docsLayer .docs-table-card {
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

#_docsLayer #_docsGridWrap {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    width: 100% !important;
    overflow: hidden !important;
}

#_docsLayer #_docsGrid {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    width: 100% !important;
}

#_docsLayer #_docsGrid .k-grid {
    height: 100% !important;
}

#_docsLayer #_docsGrid .k-grid-content,
#_docsLayer #_docsGrid .k-grid-content-wrap {
    overflow-x: hidden !important;
    padding-right: 0 !important;
    scrollbar-gutter: stable;
}

#_docsLayer #_docsGrid .k-grid-header-wrap {
    overflow-x: hidden !important;
}

#_docsLayer #_docsGrid th.ctx-cell,
#_docsLayer #_docsGrid td.ctx-cell,
#_docsLayer #_docsGrid .k-table-th:last-child,
#_docsLayer #_docsGrid .k-table-td:last-child {
    min-width: 132px !important;
    width: 132px !important;
    box-sizing: border-box !important;
}

#_docsLayer #_docsGrid .docs-actions-cell {
    justify-content: center !important;
    gap: 0.35rem !important;
    padding-inline: 0 !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

#_docsLayer #_docsGrid .js-eye-btn,
#_docsLayer #_docsGrid .js-ctx-toggle {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
}

#_docsLayer #_docsGrid .ctx-wrap {
    flex: 0 0 auto !important;
}

#_docsLayer .docs-footer-hint {
    flex: 0 0 auto !important;
    margin-top: auto !important;
    padding: 1rem 0.45rem 0 !important;
}

/* Search results page */
body.page-home-documentsbysearchterm .app-content,
body.page-home-documentsbysearchterm .app-content-inner {
    background: transparent !important;
}

body.page-home-documentsbysearchterm .docs-search-layout {
    width: 100%;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    min-height: calc(100vh - var(--x-nav-height)) !important;
    padding: clamp(0.75rem, 1.6vw, 1.45rem) !important;
}

body.page-home-documentsbysearchterm .docs-search-row {
    width: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(0.85rem, 1.5vw, 1.25rem);
    margin: 0 !important;
}

body.page-home-documentsbysearchterm .docs-search-row > .docs-search-col {
    width: 100%;
    max-width: var(--x-max-page-width);
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0.85rem;
    margin-inline: auto;
    padding-inline: 0 !important;
}

body.page-home-documentsbysearchterm .docs-search-col--full {
    grid-template-rows: minmax(0, 1fr);
}

body.page-home-documentsbysearchterm .docs-search-col > .docs-search-bar {
    width: 100%;
    margin: 0 0 0.85rem !important;
    padding: 0.9rem;
    border: 1px solid color-mix(in srgb, var(--x-line) 78%, transparent);
    border-radius: 18px;
    background:
        radial-gradient(circle at 95% 0%, color-mix(in srgb, var(--x-primary-soft) 68%, transparent), transparent 34%),
        color-mix(in srgb, var(--x-surface) 94%, transparent);
    box-shadow: var(--x-shadow-sm);
}

body.page-home-documentsbysearchterm .docs-search-adv {
    --adv-surface: var(--x-surface);
    --adv-panel: var(--x-surface-2);
    --adv-border: var(--x-line);
    --adv-border-strong: var(--x-primary);
    --adv-text: var(--x-text);
    --adv-muted: var(--x-text-3);
    --adv-hover: var(--x-primary-soft);
    --adv-focus: color-mix(in srgb, var(--x-primary) 22%, transparent);
    --adv-shadow: none;
}

body.page-home-documentsbysearchterm .docs-search-adv::part(main-input) {
    min-height: 56px !important;
    border-radius: 14px !important;
    background: var(--x-surface) !important;
}

body.page-home-documentsbysearchterm .docs-search-adv::part(toggle-advanced),
body.page-home-documentsbysearchterm .docs-search-adv::part(search-button) {
    width: 46px !important;
    height: 46px !important;
    border-radius: 12px !important;
}

body.page-home-documentsbysearchterm .docs-search-adv::part(search-button) {
    border-color: transparent !important;
    background: linear-gradient(135deg, var(--x-primary), var(--x-primary-2)) !important;
    color: #ffffff !important;
}

body.page-home-documentsbysearchterm #searchDocsContainer {
    position: relative;
    min-width: 0;
    min-height: calc(100vh - var(--x-nav-height) - 9.6rem) !important;
    border: 1px solid color-mix(in srgb, var(--x-line) 72%, transparent);
    border-radius: 22px;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--x-surface) 94%, transparent), color-mix(in srgb, var(--x-surface-2) 90%, transparent));
    box-shadow: var(--x-shadow-sm);
    overflow: hidden;
}

body.page-home-documentsbysearchterm #_docsLayer {
    background:
        radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--x-primary-soft) 72%, transparent), transparent 30%),
        linear-gradient(180deg, color-mix(in srgb, var(--x-bg) 94%, transparent), color-mix(in srgb, var(--x-bg-2) 94%, transparent)) !important;
}

body.page-home-documentsbysearchterm #_docsLayer .docs-shell {
    padding: clamp(1rem, 1.8vw, 1.55rem) !important;
    gap: 1rem !important;
}

body.page-home-documentsbysearchterm #_docsLayer .docs-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--x-text-3) !important;
}

body.page-home-documentsbysearchterm .docs-photo-collection-layout {
    padding-top: 0 !important;
}

body.page-home-documentsbysearchterm .docs-photo-collection-layout .docs-search-row,
body.page-home-documentsbysearchterm .docs-photo-collection-layout .docs-search-col {
    height: 100% !important;
}

body.page-home-documentsbysearchterm .docs-photo-collection-layout #searchDocsContainer {
    min-height: calc(100vh - var(--x-nav-height) - 2rem) !important;
}

body.page-home-documentsbysearchterm .docs-photo-collection-layout #_docsLayer .docs-breadcrumb {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: fit-content !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 8px 14px !important;
    border-radius: 999px !important;
    background: rgba(16, 54, 115, 0.06) !important;
    color: #5a7098 !important;
    font-size: 0.76rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.12em !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    box-shadow: none !important;
}

body.page-home-documentsbysearchterm .docs-photo-collection-layout #_docsLayer .docs-breadcrumb > span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
    opacity: 0.45 !important;
}

body.page-home-documentsbysearchterm .docs-photo-collection-layout #_docsLayer .docs-breadcrumb > span > span {
    margin: 0 !important;
    opacity: 1 !important;
}

body.page-home-documentsbysearchterm .docs-photo-collection-layout #_docsLayer .docs-breadcrumb .arc-flow-crumb-link {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font: inherit !important;
    letter-spacing: inherit !important;
    line-height: inherit !important;
    text-transform: inherit !important;
    text-decoration: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

body.page-home-documentsbysearchterm .docs-photo-collection-layout #_docsLayer .docs-breadcrumb .arc-flow-crumb-link:hover {
    color: var(--x-primary) !important;
}

html[data-theme="dark"] body.page-home-documentsbysearchterm .docs-photo-collection-layout #_docsLayer .docs-breadcrumb,
body.page-home-documentsbysearchterm[data-theme="dark"] .docs-photo-collection-layout #_docsLayer .docs-breadcrumb,
body[data-theme="dark"].page-home-documentsbysearchterm .docs-photo-collection-layout #_docsLayer .docs-breadcrumb {
    background: rgba(24, 57, 100, 0.88) !important;
    color: #dbeaff !important;
}

body.page-home-documentsbysearchterm #_docsLayer .docs-hero,
body.page-home-documentsbysearchterm #_docsLayer .docs-table-card {
    border: 1px solid color-mix(in srgb, var(--x-line) 76%, transparent) !important;
    background:
        radial-gradient(circle at 94% 0%, color-mix(in srgb, var(--x-primary-soft) 64%, transparent), transparent 34%),
        color-mix(in srgb, var(--x-surface) 96%, transparent) !important;
    box-shadow: var(--x-shadow-sm) !important;
}

body.page-home-documentsbysearchterm #_docsLayer .docs-hero {
    border-radius: 20px;
    padding: clamp(1rem, 1.5vw, 1.35rem);
}

body.page-home-documentsbysearchterm #_docsLayer .docs-table-card {
    border-radius: 20px;
    padding: clamp(0.85rem, 1.4vw, 1.1rem);
}

body.page-home-documentsbysearchterm #_docsLayer .docs-title-wrap h2 {
    color: var(--x-text) !important;
    font-size: clamp(1.55rem, 1.75vw, 2.15rem);
    letter-spacing: 0;
}

body.page-home-documentsbysearchterm #_docsLayer .docs-top-copy p,
body.page-home-documentsbysearchterm #_docsLayer .docs-hero-label {
    color: var(--x-text-3) !important;
}

body.page-home-documentsbysearchterm #_docsLayer .docs-record-tag {
    max-width: min(52ch, 100%);
    color: var(--x-primary) !important;
    background: color-mix(in srgb, var(--x-primary-soft) 82%, var(--x-surface) 18%) !important;
    border: 1px solid color-mix(in srgb, var(--x-primary) 24%, transparent);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.page-home-documentsbysearchterm #_docsLayer .docs-hero-meta {
    border: 1px solid color-mix(in srgb, var(--x-line) 68%, transparent);
    border-radius: 16px;
    background: color-mix(in srgb, var(--x-surface-2) 82%, transparent);
}

body.page-home-documentsbysearchterm #_docsLayer .docs-hero-stat strong,
body.page-home-documentsbysearchterm #_docsLayer .docs-hero-context strong {
    color: var(--x-text) !important;
}

body.page-home-documentsbysearchterm #_docsLayer .docs-back-btn,
body.page-home-documentsbysearchterm #_docsLayer .docs-filter-btn,
body.page-home-documentsbysearchterm #_docsLayer .docs-clear-btn {
    border-color: var(--x-line) !important;
    background: var(--x-surface) !important;
    color: var(--x-text-2) !important;
    box-shadow: none !important;
}

body.page-home-documentsbysearchterm #_docsLayer .docs-back-btn:hover,
body.page-home-documentsbysearchterm #_docsLayer .docs-filter-btn:hover,
body.page-home-documentsbysearchterm #_docsLayer .docs-clear-btn:hover {
    border-color: var(--x-line-strong) !important;
    color: var(--x-primary) !important;
    background: color-mix(in srgb, var(--x-primary-soft) 62%, var(--x-surface) 38%) !important;
}

body.page-home-documentsbysearchterm #_docsLayer .docs-toolbar {
    grid-template-columns: minmax(320px, 1fr) auto;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.page-home-documentsbysearchterm #_docsLayer .docs-total {
    min-height: 52px;
    border-radius: 14px;
    box-shadow: none;
}

body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .k-grid {
    border: 1px solid color-mix(in srgb, var(--x-line) 76%, transparent) !important;
    border-radius: 18px !important;
    background: var(--x-surface) !important;
}

body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .k-grid-header,
body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .k-grid-header-wrap,
body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .k-table-thead,
body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .k-table-th {
    background: color-mix(in srgb, var(--x-surface-2) 88%, var(--x-surface) 12%) !important;
    color: var(--x-text) !important;
}

body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .k-grid-content,
body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .k-grid-container,
body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .k-grid-content-wrap,
body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .k-table,
body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .k-table-tbody,
body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .k-grid-table {
    background: var(--x-surface) !important;
    background-color: var(--x-surface) !important;
}

body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .k-grid-content td,
body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .k-table-td {
    color: var(--x-text-2) !important;
    background: var(--x-surface) !important;
    border-color: color-mix(in srgb, var(--x-line) 62%, transparent) !important;
}

body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .k-grid-content tr:nth-child(even) td {
    background: color-mix(in srgb, var(--x-surface-2) 72%, var(--x-surface) 28%) !important;
}

body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .k-grid-content tr:hover td {
    background: color-mix(in srgb, var(--x-primary-soft) 52%, var(--x-surface) 48%) !important;
}

body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .docs-ref-cell .docs-ref-icon {
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    border: 1px solid var(--docs-ref-icon-border, color-mix(in srgb, var(--x-line) 86%, transparent)) !important;
    border-radius: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--docs-ref-icon-bg, color-mix(in srgb, var(--x-primary-soft) 58%, var(--x-surface) 42%)) !important;
    color: var(--docs-ref-icon-color, var(--x-primary)) !important;
    font-size: 1.18rem !important;
    line-height: 1 !important;
}

body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .docs-ref-icon-pdf {
    --docs-ref-icon-border: rgba(255, 151, 151, 0.72);
    --docs-ref-icon-bg: #fff0f0;
    --docs-ref-icon-color: #d92d2d;
}

body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .docs-ref-icon-audio {
    --docs-ref-icon-border: rgba(45, 198, 185, 0.62);
    --docs-ref-icon-bg: #e9fbf9;
    --docs-ref-icon-color: #078b82;
}

body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .docs-ref-icon-video {
    --docs-ref-icon-border: rgba(142, 122, 255, 0.62);
    --docs-ref-icon-bg: #f1eeff;
    --docs-ref-icon-color: #5b46d8;
}

body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .docs-ref-icon-image {
    --docs-ref-icon-border: rgba(59, 130, 246, 0.58);
    --docs-ref-icon-bg: #eef6ff;
    --docs-ref-icon-color: #1d62d6;
}

body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .docs-ref-icon-word,
body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .docs-ref-icon-text {
    --docs-ref-icon-border: rgba(79, 132, 222, 0.58);
    --docs-ref-icon-bg: #eef5ff;
    --docs-ref-icon-color: #235fc5;
}

body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .docs-ref-icon-spreadsheet {
    --docs-ref-icon-border: rgba(25, 166, 104, 0.54);
    --docs-ref-icon-bg: #edfbf4;
    --docs-ref-icon-color: #087b4a;
}

body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .docs-ref-icon-slides,
body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .docs-ref-icon-archive {
    --docs-ref-icon-border: rgba(245, 158, 11, 0.5);
    --docs-ref-icon-bg: #fff7e6;
    --docs-ref-icon-color: #b76600;
}

body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .js-eye-btn,
body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .js-ctx-toggle {
    border-color: var(--x-line) !important;
    background: var(--x-surface) !important;
    color: var(--x-text-2) !important;
}

body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .js-eye-btn:hover,
body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .js-ctx-toggle:hover {
    border-color: var(--x-line-strong) !important;
    color: var(--x-primary) !important;
}

body.page-home-documentsbysearchterm #_docsLayer .docs-footer-hint,
body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .docs-pager-summary {
    display: none !important;
}

body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .k-grid .k-pager-wrap,
body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .k-grid .k-pager,
body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .k-grid .k-grid-pager {
    min-height: 0 !important;
    margin: 1rem 0 0 !important;
    padding: 0.2rem 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.1rem !important;
    flex-wrap: wrap !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .k-grid .k-pager-nav-buttons,
body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .k-grid .k-pager-numbers-wrap {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    padding: 0.35rem 0.45rem !important;
    border: 1px solid color-mix(in srgb, var(--x-line) 86%, transparent) !important;
    border-radius: 999px !important;
    background: color-mix(in srgb, var(--x-surface) 90%, transparent) !important;
}

body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .k-grid .k-pager-wrap :is(.k-button, .k-link, .k-pager-nav, .k-button-flat-base),
body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .k-grid .k-pager-numbers :is(.k-link, .k-state-selected, .k-selected) {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    border: 1px solid color-mix(in srgb, var(--x-line) 86%, transparent) !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--x-text-2) !important;
    background: var(--x-surface) !important;
    box-shadow: none !important;
    font-weight: 800 !important;
}

body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .k-grid .k-pager-wrap :is(.k-button, .k-link, .k-pager-nav, .k-button-flat-base):hover {
    border-color: var(--x-line-strong) !important;
    color: var(--x-primary) !important;
    background: color-mix(in srgb, var(--x-primary-soft) 58%, var(--x-surface) 42%) !important;
}

body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .k-grid .k-pager-numbers :is(.k-state-selected, .k-selected) {
    border-color: transparent !important;
    color: #ffffff !important;
    background: linear-gradient(145deg, var(--x-primary), var(--x-primary-2)) !important;
    box-shadow: 0 10px 20px color-mix(in srgb, var(--x-primary) 24%, transparent) !important;
}

body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .k-grid .k-pager-sizes,
body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .k-grid .k-pager-info {
    color: var(--x-text-3) !important;
    font-size: 0.96rem !important;
    font-weight: 700 !important;
}

body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .k-grid .k-pager-sizes .k-picker {
    height: 42px !important;
    min-width: 86px !important;
    border-radius: 14px !important;
    border-color: var(--x-line) !important;
    background: var(--x-surface) !important;
}

html[data-theme="dark"] body.page-home-documentsbysearchterm .docs-search-col > .docs-search-bar,
body.page-home-documentsbysearchterm[data-theme="dark"] .docs-search-col > .docs-search-bar,
html[data-theme="dark"] body.page-home-documentsbysearchterm #searchDocsContainer,
body.page-home-documentsbysearchterm[data-theme="dark"] #searchDocsContainer {
    border-color: color-mix(in srgb, var(--x-line) 72%, transparent) !important;
    background:
        radial-gradient(circle at 95% 0%, rgba(68, 215, 255, 0.1), transparent 34%),
        color-mix(in srgb, var(--x-surface) 88%, transparent) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.page-home-documentsbysearchterm #_docsLayer,
body.page-home-documentsbysearchterm[data-theme="dark"] #_docsLayer {
    background:
        radial-gradient(circle at 12% 0%, rgba(68, 215, 255, 0.13), transparent 30%),
        linear-gradient(180deg, #06172e 0%, #082342 100%) !important;
}

html[data-theme="dark"] body.page-home-documentsbysearchterm #_docsLayer .docs-hero,
html[data-theme="dark"] body.page-home-documentsbysearchterm #_docsLayer .docs-table-card,
body.page-home-documentsbysearchterm[data-theme="dark"] #_docsLayer .docs-hero,
body.page-home-documentsbysearchterm[data-theme="dark"] #_docsLayer .docs-table-card {
    border-color: rgba(80, 128, 198, 0.54) !important;
    background:
        radial-gradient(circle at 94% 0%, rgba(63, 135, 255, 0.12), transparent 34%),
        rgba(9, 31, 59, 0.92) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.page-home-documentsbysearchterm #_docsLayer .docs-title-wrap h2,
html[data-theme="dark"] body.page-home-documentsbysearchterm #_docsLayer .docs-hero-stat strong,
html[data-theme="dark"] body.page-home-documentsbysearchterm #_docsLayer .docs-hero-context strong,
body.page-home-documentsbysearchterm[data-theme="dark"] #_docsLayer .docs-title-wrap h2,
body.page-home-documentsbysearchterm[data-theme="dark"] #_docsLayer .docs-hero-stat strong,
body.page-home-documentsbysearchterm[data-theme="dark"] #_docsLayer .docs-hero-context strong {
    color: #f3f8ff !important;
}

html[data-theme="dark"] body.page-home-documentsbysearchterm #_docsLayer .docs-breadcrumb,
html[data-theme="dark"] body.page-home-documentsbysearchterm #_docsLayer .docs-top-copy p,
html[data-theme="dark"] body.page-home-documentsbysearchterm #_docsLayer .docs-hero-label,
body.page-home-documentsbysearchterm[data-theme="dark"] #_docsLayer .docs-breadcrumb,
body.page-home-documentsbysearchterm[data-theme="dark"] #_docsLayer .docs-top-copy p,
body.page-home-documentsbysearchterm[data-theme="dark"] #_docsLayer .docs-hero-label {
    color: #a9c1e8 !important;
}

html[data-theme="dark"] body.page-home-documentsbysearchterm #_docsLayer .docs-record-tag,
body.page-home-documentsbysearchterm[data-theme="dark"] #_docsLayer .docs-record-tag {
    color: #9fcbff !important;
    background: rgba(30, 82, 139, 0.7) !important;
    border-color: rgba(116, 176, 255, 0.34) !important;
}

html[data-theme="dark"] body.page-home-documentsbysearchterm #_docsLayer .docs-hero-meta,
body.page-home-documentsbysearchterm[data-theme="dark"] #_docsLayer .docs-hero-meta {
    border-color: rgba(80, 128, 198, 0.48) !important;
    background: rgba(6, 24, 47, 0.56) !important;
}

html[data-theme="dark"] body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .k-grid,
body.page-home-documentsbysearchterm[data-theme="dark"] #_docsLayer #_docsGrid .k-grid {
    border-color: rgba(80, 128, 198, 0.52) !important;
    background: #102846 !important;
}

html[data-theme="dark"] body.page-home-documentsbysearchterm #_docsLayer #_docsGrid :is(.k-grid-content, .k-grid-container, .k-grid-content-wrap, .k-table, .k-table-tbody, .k-grid-table),
body.page-home-documentsbysearchterm[data-theme="dark"] #_docsLayer #_docsGrid :is(.k-grid-content, .k-grid-container, .k-grid-content-wrap, .k-table, .k-table-tbody, .k-grid-table) {
    background: #102846 !important;
    background-color: #102846 !important;
}

html[data-theme="dark"] body.page-home-documentsbysearchterm #_docsLayer #_docsGrid :is(.k-grid-header, .k-grid-header-wrap, .k-table-thead, .k-table-th, .k-grid-header th),
body.page-home-documentsbysearchterm[data-theme="dark"] #_docsLayer #_docsGrid :is(.k-grid-header, .k-grid-header-wrap, .k-table-thead, .k-table-th, .k-grid-header th) {
    background: #18375f !important;
    color: #eef5ff !important;
    border-color: rgba(80, 128, 198, 0.42) !important;
}

html[data-theme="dark"] body.page-home-documentsbysearchterm #_docsLayer #_docsGrid :is(.k-grid-content td, .k-table-td),
body.page-home-documentsbysearchterm[data-theme="dark"] #_docsLayer #_docsGrid :is(.k-grid-content td, .k-table-td) {
    color: #dbe8ff !important;
    background: #142f52 !important;
    border-color: rgba(80, 128, 198, 0.32) !important;
}

html[data-theme="dark"] body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .k-grid-content tr:nth-child(even) td,
body.page-home-documentsbysearchterm[data-theme="dark"] #_docsLayer #_docsGrid .k-grid-content tr:nth-child(even) td {
    background: #112a4a !important;
}

html[data-theme="dark"] body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .k-grid-content tr:hover td,
body.page-home-documentsbysearchterm[data-theme="dark"] #_docsLayer #_docsGrid .k-grid-content tr:hover td {
    background: #1d4778 !important;
}

html[data-theme="dark"] body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .docs-ref-cell .docs-ref-icon,
body.page-home-documentsbysearchterm[data-theme="dark"] #_docsLayer #_docsGrid .docs-ref-cell .docs-ref-icon {
    background: rgba(23, 66, 112, 0.92) !important;
    border-color: rgba(98, 151, 230, 0.42) !important;
    color: #b9d8ff !important;
}

html[data-theme="dark"] body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .docs-ref-cell span,
html[data-theme="dark"] body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .docs-title-cell,
html[data-theme="dark"] body.page-home-documentsbysearchterm .docs-date-cell strong,
body.page-home-documentsbysearchterm[data-theme="dark"] #_docsLayer #_docsGrid .docs-ref-cell span,
body.page-home-documentsbysearchterm[data-theme="dark"] #_docsLayer #_docsGrid .docs-title-cell,
body.page-home-documentsbysearchterm[data-theme="dark"] .docs-date-cell strong {
    color: #edf4ff !important;
}

html[data-theme="dark"] body.page-home-documentsbysearchterm .docs-date-cell,
html[data-theme="dark"] body.page-home-documentsbysearchterm .docs-date-cell i,
html[data-theme="dark"] body.page-home-documentsbysearchterm .docs-date-cell span,
body.page-home-documentsbysearchterm[data-theme="dark"] .docs-date-cell,
body.page-home-documentsbysearchterm[data-theme="dark"] .docs-date-cell i,
body.page-home-documentsbysearchterm[data-theme="dark"] .docs-date-cell span {
    color: #a8c3e9 !important;
}

html[data-theme="dark"] body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .k-grid .k-pager-nav-buttons,
html[data-theme="dark"] body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .k-grid .k-pager-numbers-wrap,
body.page-home-documentsbysearchterm[data-theme="dark"] #_docsLayer #_docsGrid .k-grid .k-pager-nav-buttons,
body.page-home-documentsbysearchterm[data-theme="dark"] #_docsLayer #_docsGrid .k-grid .k-pager-numbers-wrap {
    border-color: rgba(80, 128, 198, 0.52) !important;
    background: rgba(13, 34, 62, 0.82) !important;
}

html[data-theme="dark"] body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .k-grid .k-pager-wrap :is(.k-button, .k-link, .k-pager-nav, .k-button-flat-base),
html[data-theme="dark"] body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .k-grid .k-pager-numbers :is(.k-link, .k-state-selected, .k-selected),
body.page-home-documentsbysearchterm[data-theme="dark"] #_docsLayer #_docsGrid .k-grid .k-pager-wrap :is(.k-button, .k-link, .k-pager-nav, .k-button-flat-base),
body.page-home-documentsbysearchterm[data-theme="dark"] #_docsLayer #_docsGrid .k-grid .k-pager-numbers :is(.k-link, .k-state-selected, .k-selected) {
    border-color: rgba(80, 128, 198, 0.58) !important;
    color: #d8e7ff !important;
    background: rgba(20, 48, 86, 0.94) !important;
}

html[data-theme="dark"] body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .k-grid .k-pager-numbers :is(.k-state-selected, .k-selected),
body.page-home-documentsbysearchterm[data-theme="dark"] #_docsLayer #_docsGrid .k-grid .k-pager-numbers :is(.k-state-selected, .k-selected) {
    color: #ffffff !important;
    background: linear-gradient(145deg, var(--x-primary), var(--x-primary-2)) !important;
}

html[data-theme="dark"] body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .k-grid .k-pager-sizes,
html[data-theme="dark"] body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .k-grid .k-pager-info,
body.page-home-documentsbysearchterm[data-theme="dark"] #_docsLayer #_docsGrid .k-grid .k-pager-sizes,
body.page-home-documentsbysearchterm[data-theme="dark"] #_docsLayer #_docsGrid .k-grid .k-pager-info {
    color: #b9d0f2 !important;
}

@media (max-width: 991.98px) {
    body.page-home-documentsbysearchterm .docs-search-layout {
        padding: 0.7rem !important;
    }

    body.page-home-documentsbysearchterm #searchDocsContainer {
        min-height: calc(100vh - var(--x-nav-height) - 8.8rem) !important;
    }

    body.page-home-documentsbysearchterm #_docsLayer .docs-toolbar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    body.page-home-documentsbysearchterm #_docsLayer .docs-hero-meta {
        display: none;
    }

    body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .k-grid .k-pager-wrap {
        justify-content: flex-start !important;
    }

    body.page-home-documentsbysearchterm #_docsLayer #_docsGrid .k-grid .k-pager-info {
        width: 100%;
    }
}

/* Global ultrawide width cap */
.app-navbar-inner,
.app-content-inner {
    width: min(100%, calc(var(--x-max-page-width) + (var(--x-page-gutter) * 2))) !important;
    max-width: calc(var(--x-max-page-width) + (var(--x-page-gutter) * 2)) !important;
    margin-inline: auto !important;
    padding-inline: var(--x-page-gutter) !important;
}

body:has(.login-page) .app-content-inner {
    max-width: calc(var(--x-max-page-width) + (var(--x-page-gutter) * 2)) !important;
}

body.page-home-records .app-content-inner,
body.page-home-records .records-shell,
body.page-home-records .records-main.main-panel {
    max-width: calc(var(--x-max-page-width) + (var(--x-page-gutter) * 2)) !important;
    margin-inline: auto !important;
}

body.page-home-records .records-shell,
body.page-home-records .records-main.main-panel {
    width: 100%;
}

#_docsLayer .docs-shell,
.doc-layer .doc-canvas,
.doc-layer .xpdf-shell {
    max-width: var(--x-max-page-width);
    width: 100%;
    margin-inline: auto;
}

.doc-layer.pdf-mode .doc-canvas,
.doc-layer.pdf-mode .xpdf-shell {
    max-width: var(--x-max-page-width);
}

@media (max-width: 860px) {
    .app-navbar-inner,
    .app-content-inner {
        padding-inline: 0.75rem !important;
    }
}
