.alpha-book-content-cell {
    width: 100%;
}

.alpha-book-page .alpha-search-results-column {
    gap: 0;
    max-height: 600px;
}

.alpha-book-page .alpha-search-results-panel {
    display: flex;
    flex-direction: column;
    min-height: 420px;
    max-height: 600px;
    height: 100%;
}

.alpha-book-page .alpha-search-results-body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(13, 66, 97, 0.15) transparent;
}

    .alpha-book-page .alpha-search-results-body::-webkit-scrollbar {
        width: 8px;
    }

    .alpha-book-page .alpha-search-results-body::-webkit-scrollbar-thumb {
        background: rgba(13, 66, 97, 0.15);
        border-radius: 4px;
    }

.alpha-book-page .alpha-search-breadcrumb-section {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    column-gap: 8px;
}

.alpha-search-results-path {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

    .alpha-search-results-path > *:first-child {
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
    }

    .alpha-search-results-path .alpha-breadcrumb {
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.alpha-search-breadcrumb-loading {
    grid-column: 1 / -1;
}

.alpha-book-view-toggle {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(13, 66, 97, 0.2);
    background: #fff;
    color: #0d4261;
    border-radius: 8px;
    padding: 0;
    cursor: pointer;
    justify-self: end;
    flex-shrink: 0;
    margin-inline-start: auto;
}

    .alpha-book-view-toggle svg {
        width: 16px;
        height: 16px;
        transition: transform .2s ease;
    }

.alpha-book-page.is-preview-fullscreen .alpha-book-view-toggle svg {
    transform: rotate(180deg);
}

.alpha-book-page.is-preview-fullscreen .alpha-search-main {
    display: block;
}

.alpha-book-page.is-preview-fullscreen .alpha-search-tree-panel {
    display: none !important;
}

.alpha-book-page.is-preview-fullscreen .alpha-search-alphabet {
    display: none !important;
}

.alpha-book-page.is-preview-fullscreen .alpha-search-results-column {
    width: 100%;
    max-width: 100%;
    max-height: none;
}

.alpha-book-page.is-preview-fullscreen .alpha-search-results-panel {
    max-height: none;
    height: auto;
}

.alpha-book-page.is-preview-fullscreen .alpha-search-results-body {
    overflow: visible;
    max-height: none;
}

#alpha-search-new-page.is-preview-fullscreen .alpha-search-results-panel {
    max-height: none !important;
    height: auto !important;
    min-height: 0 !important;
}

#alpha-search-new-page.is-preview-fullscreen .alpha-search-results-body {
    overflow: visible !important;
    overflow-y: visible !important;
    max-height: none !important;
    height: auto !important;
    min-height: 0 !important;
}

.alpha-book-floating-index-toggle {
    display: none;
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    border: 1px solid rgba(13, 66, 97, 0.2);
    border-radius: 999px;
    background: #0d4261;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(13, 66, 97, 0.28);
}

    .alpha-book-floating-index-toggle svg {
        width: 18px;
        height: 18px;
    }

.alpha-book-page.is-preview-fullscreen .alpha-book-floating-index-toggle {
    display: inline-flex;
}

.alpha-book-index-summary {
    display: block;
    margin-top: 10px;
    border-top: 1px solid rgba(13, 66, 97, 0.12);
    padding-top: 12px;
    position: sticky;
    bottom: 0;
    background: #fff;
    z-index: 5;
}

.alpha-book-page .alpha-book-index-summary {
    position: relative;
    z-index: 3;
}

.alpha-book-page .alpha-search-grid-placeholder {
    position: relative;
    z-index: 1;
}

.alpha-book-page .alpha-search-results-body.is-empty {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.alpha-book-page .alpha-search-results-body.is-empty .alpha-search-grid-placeholder {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 0 auto;
}

.alpha-book-index-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(13, 66, 97, 0.2);
    background: #fff;
    color: #0d4261;
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 600;
    cursor: pointer;
}

    .alpha-book-index-toggle svg {
        width: 14px;
        height: 14px;
        transition: transform .2s ease;
    }

.alpha-book-index-summary.is-expanded .alpha-book-index-toggle svg {
    transform: rotate(180deg);
}

.alpha-book-index-summary-content {
    display: none;
    margin-top: 10px;
    max-height: none;
    overflow: visible;
    padding-inline-end: 6px;
}

.alpha-book-index-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alpha-book-index-group {
    border: 1px solid rgba(13, 66, 97, 0.12);
    border-radius: 10px;
    padding: 10px 12px;
    background: rgba(255,255,255,.85);
}

.alpha-book-index-category {
    width: 100%;
    border: 0;
    background: transparent;
    color: #0d4261;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    padding: 4px 0;
}

.alpha-book-index-subcategories {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.alpha-book-index-subcategory {
    border: 1px solid rgba(13, 66, 97, 0.2);
    background: #fff;
    color: #2b1f21;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 13px;
    cursor: pointer;
}

    .alpha-book-index-category.is-selected, .alpha-book-index-subcategory.is-selected {
        background: #0d4261 !important;
        color: #fff !important;
        border-color: #0d4261 !important;
        border-radius: 999px;
    }

    .alpha-book-index-category:hover, .alpha-book-index-subcategory:hover {
        color: #0b6ca4;
        border-color: rgba(11, 108, 164, 0.28);
    }

.alpha-tree-caret {
    cursor: pointer;
}
