/* Remove all top/bottom padding from the outer container */
/* (kept here for per-page overrides) */

/* Reduce spacing between rows */
#selection_actions_row {
    margin-top: 0.25rem !important;
}

/* Remove default vertical margin on the parent container */
.container.search-toolbar {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Ensure the "More" button is visually half-width and right-aligned on desktop.
   On phones it should fill the col-6 wrapper for an easier tap target. */
@media (min-width: 768px) {
    #moreButton {
        max-width: 6rem;
    }
}

/* Break out of the base container so the grid can be full width */
.full-bleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Advanced search modal sections for easy scanning */
#m_search_fields_selector .modal-body {
    background-color: var(--bg-modal);
}

#search_form .search-section {
    background-color: var(--bg-section);
    border: 1px solid var(--border-subtle);
    border-radius: 0.5rem;
    padding: 0.5rem 0.6rem;
    margin-bottom: 0.35rem !important;
}

#search_form .search-section:nth-of-type(even) {
    background-color: var(--bg-section-alt);
}

#search_form .search-section + .search-section {
    margin-top: 0.25rem;
}

#search_form .search-section.row {
    --bs-gutter-y: 0.35rem;
    --bs-gutter-x: 0.6rem;
}

/* Library selector modal */
.library-selector-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.library-selector-item {
    display: block;
    width: 100%;
    padding: 0.25rem;
    border: 1px solid var(--border-muted);
    border-radius: 0.35rem;
    background-color: var(--bg-panel);
    cursor: pointer;
}

.library-selector-item-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.library-selector-item img {
    display: block;
    width: 140px;
    height: 80px;
    object-fit: contain;
}

.library-selector-item-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.9rem;
    color: var(--text-body);
    text-align: left;
}

