/* === Base Container === */
.library-db-archive {
    max-width: 100%;
}

.library-db-archive .ldb-loader {
    display: none;
    padding: 40px 0;
    text-align: center;
    color: var(--black-60);
}

/* === Layout Widths === */
.library-db-archive .custom-multi-filter,
.library-db-archive .tabs,
.library-db-archive .tabs-content {
    max-width: 100%;
}

.content-w-sidebar-blocks .library-db-archive .custom-multi-filter,
.content-w-sidebar-blocks .library-db-archive .tabs,
.content-w-sidebar-blocks .library-db-archive .tabs-content {
    max-width: 100%;
}

/* === Filter Layout === */
.library-db-archive .custom-multi-filter {
    display: block !important;
}

.library-db-archive .custom-multi-filter .blue-filter-box-item-select {
    width: 100%;
    max-width: 100%;
    margin-bottom: 16px;
}

.library-db-archive .custom-multi-filter .blue-filter-box-item {
    display: flex;
    justify-content: flex-end;
}

/* === Clear Filter Button === */
.library-db-archive .ldb-clear-filter {
    margin-top: 0;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    color: var(--white-80);
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.36 !important;
    letter-spacing: -0.15px !important;
    text-decoration: underline !important;
    transition: color 0.2s ease-in-out !important;
    cursor: pointer;
    min-width: auto !important;
}

.library-db-archive .ldb-clear-filter:hover {
    color: var(--white) !important;
    background: none !important;
}

.library-db-archive .ldb-clear-filter span {
    display: inline;
}

.library-db-archive .ldb-clear-filter span::after {
    content: none !important;
}

/* === Tabs === */
.library-db-archive .tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 2px;
    margin-bottom: 32px;
}

.library-db-archive .tabs .tabs-title {
    flex: 0 0 auto;
}

.library-db-archive .tabs::after {
    content: '';
    flex: 1 1 auto;
    background: var(--grey-light-50);
    border-bottom: 1px solid var(--black-12);
}

.library-db-archive .tabs .tabs-title a {
    display: block;
    padding: 12px 20px;
    background: var(--grey-light-50);
    color: var(--black-60);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.36;
    letter-spacing: -0.15px;
    border-bottom: 1px solid var(--black-12);
    transition: 0.2s ease-in-out;
}

.library-db-archive .tabs .tabs-title a:hover {
    color: var(--blue);
}

.library-db-archive .tabs .tabs-title.is-active a {
    color: var(--blue);
    border-color: var(--blue);
}

.library-db-archive .tabs-content {
    width: 100%;
}

.library-db-archive .tabs-panel {
    width: 100%;
}

/* === Lists === */
.library-db-archive .ldb-list,
.library-db-archive .ldb-default-list,
.library-db-archive .ldb-help-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.library-db-archive .ldb-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--black-10);
}

.library-db-archive .ldb-item:first-child {
    padding-top: 0;
}

.library-db-archive .ldb-default-list .ldb-item {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.library-db-archive .ldb-help-list .ldb-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--black-12);
}

/* === Links === */
.library-db-archive .ldb-link,
.library-db-archive .ldb-default-list .ldb-item-link {
    display: inline-block;
    color: var(--blue);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.32px;
    transition: 0.2s ease-in-out;
    text-decoration: none;
}

.library-db-archive .ldb-default-list .ldb-item-link {
    text-decoration: underline;
}

.library-db-archive .ldb-link:hover,
.library-db-archive .ldb-default-list .ldb-item-link:hover {
    color: var(--blue-3);
}

/* === Meta & Description === */
.library-db-archive .ldb-meta {
    display: inline-block;
    margin-left: 12px;
    color: var(--black-60);
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: -0.28px;
}

.library-db-archive .ldb-desc,
.library-db-archive .ldb-item-desc {
    margin-top: 8px;
    color: var(--black-80);
    font-size: 14px;
    line-height: 1.64;
    letter-spacing: -0.42px;
}

.library-db-archive .ldb-item-desc {
    margin: 4px 0 0;
    color: #555;
}

/* === Empty State === */
.library-db-archive .ldb-empty {
    padding: 40px 0;
    text-align: center;
    color: var(--black-60);
    font-size: 15px;
    line-height: 1.6;
}

/* === Useful Links Table === */
.library-db-archive .ldb-useful-table {
    margin-bottom: 40px;
    overflow-x: auto;
}

.library-db-archive .ldb-useful-table:last-child {
    margin-bottom: 0;
}

.library-db-archive .ldb-useful-table table {
    width: 100%;
    border-collapse: collapse;
}

.library-db-archive .ldb-useful-table thead th {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.28px;
    text-align: left;
    color: var(--black);
    background: var(--white);
    border-bottom: 1px solid var(--black-12);
}

.library-db-archive .ldb-useful-table thead th:last-child {
    width: 140px;
}

.library-db-archive .ldb-useful-table tbody tr,
.section-lgrey .library-db-archive .ldb-useful-table tbody tr {
    background: var(--white);
}

.library-db-archive .ldb-useful-table tbody tr:not(:last-child) {
    border-bottom: 1px solid var(--black-12);
}

.library-db-archive .ldb-useful-table tbody td {
    padding: 16px;
    font-size: 14px;
    line-height: 1.64;
    letter-spacing: -0.42px;
    color: var(--black-80);
    vertical-align: top;
}

.library-db-archive .ldb-useful-table tbody td:last-child {
    text-align: center;
}

.library-db-archive .ldb-useful-table tbody td a {
    color: var(--blue);
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s ease-in-out;
}

.library-db-archive .ldb-useful-table tbody td a:hover {
    color: var(--blue-3);
}

/* === Help Section === */
.library-db-archive .ldb-help {
    padding: 20px 0;
}

.library-db-archive .ldb-help-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.library-db-archive .ldb-help-link {
    font-weight: 600;
}

.library-db-archive .ldb-help__title,
.library-db-archive .ldb-help-list .ldb-help__title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.32px;
    color: var(--black);
    margin-bottom: 16px;
}

.library-db-archive .ldb-help-list .ldb-help__title {
    margin-bottom: 8px;
}

.library-db-archive .ldb-help__contacts {
    display: grid;
    gap: 6px;
    margin-bottom: 8px;
}

.library-db-archive .ldb-help__info ul {
    list-style: none;
    margin: 0 0 16px 0;
    padding: 0;
}

.library-db-archive .ldb-help__info li {
    display: flex;
    margin-bottom: 12px;
}

.library-db-archive .ldb-help__info li:last-child {
    margin-bottom: 0;
}

.library-db-archive .ldb-help__label {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: -0.32px;
    color: var(--black-60);
    margin-right: 8px;
    flex-shrink: 0;
}

.library-db-archive .ldb-help__value {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: -0.32px;
    color: var(--black-80);
}

.library-db-archive .ldb-help__value a,
.library-db-archive .ldb-help a.ldb-link {
    color: var(--blue);
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s ease-in-out;
}

.library-db-archive .ldb-help__value a:hover,
.library-db-archive .ldb-help a.ldb-link:hover {
    color: var(--blue-3);
}

.library-db-archive .ldb-help .ldb-link {
    margin-top: 8px;
}

/* === Load More Button === */
.library-db-archive .ldb-load-more {
    text-align: center;
    margin-top: 24px;
}

.library-db-archive .ldb-load-more .btn-secondary {
    min-width: 200px;
}

.select2-results__option[aria-selected][id$="-0"] {
    display: none;
}
