body {
    min-height: 100vh;
}

.left-sidebar {
    z-index: 2;
    position: fixed;
    margin: 0;
    height: calc(100vh + var(--bs-border-width));
    width: 250px;
    left: calc(-1 * var(--bs-border-width));
    top: 0;
    max-height: 100vh;
    overflow-y: auto;
    padding: 5rem 1rem 1rem;
    transition: transform 0.25s ease-in-out;
}

.right-content {
    position: absolute;
    margin: 0;
    height: calc(100vh - 4rem);
    width: calc(100vw - 250px);
    right: 0;
    top: 56px;
    padding: 1rem .5rem 1rem;
    transition: transform 0.25s ease-in-out;
    overflow-y: auto;
}

.btn-group-xs .btn,
.btn-xs {
    padding: 0.15rem 0.30rem;
    font-size: 0.775rem;
    border-radius: 0.25rem;
}

.badge {
    font-weight: normal;
}

#menu-toggle {
    position: absolute;
    z-index: 999;
    top: .75rem;
    right: .75rem;
    display: none;
}

.clickable {
    cursor: pointer !important;
}

.handle {
    cursor: grab !important;
}

.btn-attendee-number {
    font-weight: bold;
    font-size: 120%;
    display: block;
}

.btn-attendee-name {
    font-weight: lighter;
    font-size: 70%;
    line-height: 1.2;
    display: block;
}

#searchBoxContainer {
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    position: absolute;
    padding: 6rem 1rem 1rem;
    z-index: 1031;
    display: none;
}

#homeSearchForm {
    position: relative;
}

.autocomplete-results {
    position: absolute;
    width: 100%;
    top: 3rem;
    z-index: 999;
    margin-top: .25rem;
    max-height: calc(100vh - 200px);
    max-width: 95vw;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    /* Dark semi-transparent */
    z-index: 1031;
    /* Must be below the sidebar */
    display: none;
    /* Initially hidden */
}

@media (max-width: 992px) {
    .left-sidebar {
        transform: translateX(-250px);
        z-index: 1032;
        padding: 2rem 1rem 1rem;
        /* Ensure sidebar is above the overlay */
    }

    .right-content {
        width: 100vw;
        /* margin-top: 2rem; */
    }

    #menu-toggle {
        display: block;
    }

    #sidebar-overlay.active {
        display: block;
        /* Show only when sidebar is open */
    }
}

.force-display {
    transform: translateX(0) !important;
}

.gm-style-iw {
    color: #212529;
}

.contextuallinkcontainer {
    display: none;
}

#contextualhelpcontainer {
    position: fixed;
    right: 0;
    top: 0;
    width: 38rem;
    max-width: 100vw;
    height: 100vh;
    z-index: 9999;
    border-left: 2px solid #000;
    font-size: 0.875rem; /* roughly Bootstrap's .text-sm */
    line-height: 1.5;
    font-family: system-ui, sans-serif;

    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

#contextualhelpcontainer.open {
    transform: translateX(0);
}

#contextualhelpcontainer .close-btn {
    position: absolute;
    top: .65rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Smaller headings */
#contextualhelpcontainer h1 {
    font-size: 1.25rem; /* like h4 in Bootstrap */
}
#contextualhelpcontainer h2 {
    font-size: 1.125rem; /* like h5 */
}
#contextualhelpcontainer h3,
#contextualhelpcontainer h4,
#contextualhelpcontainer h5,
#contextualhelpcontainer h6 {
    font-size: 1rem;
}

/* Smaller paragraph and list text */
#contextualhelpcontainer p,
#contextualhelpcontainer li {
    font-size: 0.875rem;
}

/* Optional: Smaller spacing between list items */
#contextualhelpcontainer ul,
#contextualhelpcontainer ol {
    padding-left: 1.25rem;
}

#contextualhelpcontainer ul li,
#contextualhelpcontainer ol li {
    margin-bottom: 0.25rem;
}

/* Optional: Make blockquotes or code look subtle */
#contextualhelpcontainer blockquote {
    font-size: 0.85rem;
    color: #666;
    border-left: 3px solid #ccc;
    padding-left: 1rem;
}

#contextualhelpcontainer code {
    font-size: 0.8rem;
    background-color: #f8f9fa;
    padding: 0.1rem 0.25rem;
    border-radius: 0.2rem;
}

.contextualhelpcontent {
    padding: 2rem 2rem 1rem 1rem;
    overflow-y: auto;
    max-height: calc(100vh - 4rem);
}