/*
 * Navigation sidebar for the generated Swagger UI documentation.
 */

/* stylelint-disable */

:root {
    --api-sidebar-width: 310px;
    --api-sidebar-hover-background: #e9edf3;
    --api-sidebar-active-background: #e6f2ff;
}

body.api-sidebar-enabled {
    padding-left: var(--api-sidebar-width);
}

.api-sidebar {
    position: fixed;
    z-index: 30;
    top: 0;
    bottom: 0;
    left: 0;
    overflow-x: hidden;
    overflow-y: auto;
    width: var(--api-sidebar-width);
    box-sizing: border-box;
    font-family: sans-serif;
    color: #3b4151;
    background: #f7f8fa;
    border-right: 1px solid #d8dde7;
}

.api-sidebar__header {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 60px;
    box-sizing: border-box;
    padding: 10px 1.1rem;
    color: #fff;
    background: #1b1b1b;
    border: 0;
    cursor: pointer;
}

.api-sidebar__logo {
    display: block;
    width: 180px;
    height: 40px;
    object-fit: contain;
    object-position: left center;
}

.api-sidebar__navigation {
    padding: 0.75rem 0 1.5rem;
}

.api-sidebar__section-header {
    display: flex;
    align-items: center;
}

.api-sidebar__section-title {
    flex: 1;
    margin: 0;
    padding: 0.75rem 1rem;
    font-size: 0.7rem;
    color: #6b7280;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.api-sidebar__section-link {
    display: block;
    font-weight: 700;
    text-decoration: none;
}

.api-sidebar__groups,
.api-sidebar__endpoints,
.api-sidebar__schemas {
    margin: 0;
    padding: 0;
    list-style: none;
}

.api-sidebar__group {
    border-top: 1px solid #e4e7ec;
}

.api-sidebar__group:last-child {
    border-bottom: 1px solid #e4e7ec;
}

.api-sidebar__group-header {
    display: flex;
    align-items: center;
}

.api-sidebar__group-link {
    flex: 1;
    overflow: hidden;
    padding: 0.75rem 0.5rem 0.75rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #3b4151;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.api-sidebar__section-toggle,
.api-sidebar__group-toggle {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    color: #6b7280;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.api-sidebar__endpoint-link {
    display: flex;
    align-items: center;
    min-height: 1.75rem;
    padding: 0.25rem 0.75rem 0.25rem 1rem;
    font-size: 0.75rem;
    color: #4b5563;
    text-decoration: none;
}

.api-sidebar__method {
    flex: 0 0 2.75rem;
    font-family: monospace;
    font-size: 0.625rem;
    font-weight: 700;
    color: #6b7280;
}

.api-sidebar__method--get {
    color: #2779bd;
}

.api-sidebar__method--post {
    color: #16835d;
}

.api-sidebar__method--put {
    color: #a65b00;
}

.api-sidebar__method--patch {
    color: #087f8c;
}

.api-sidebar__method--delete {
    color: #c72f2f;
}

.api-sidebar__endpoint-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.api-sidebar__section--schemas {
    margin-top: 0.75rem;
}

.api-sidebar__schema-link {
    display: block;
    overflow: hidden;
    padding: 0.4rem 1rem;
    font-family: monospace;
    font-size: 0.75rem;
    color: #4b5563;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.api-sidebar__section-header:hover,
.api-sidebar__group-header:hover,
.api-sidebar__section-link:hover,
.api-sidebar__endpoint-link:hover,
.api-sidebar__schema-link:hover {
    background: var(--api-sidebar-hover-background);
}

.api-sidebar__section-header:has(> .api-sidebar__section-link.is-active),
.api-sidebar__group-header:has(> .api-sidebar__group-link.is-active),
.api-sidebar__section-link.is-active,
.api-sidebar__endpoint-link.is-active,
.api-sidebar__schema-link.is-active {
    background: var(--api-sidebar-active-background);
}

.api-sidebar__menu-button,
.api-sidebar__close,
.api-sidebar__backdrop {
    display: none;
}

html.dark-mode .api-sidebar {
    --api-sidebar-hover-background: #343a3f;
    --api-sidebar-active-background: #243b53;

    color: #e5e7eb;
    background: #252a2d;
    border-color: #40464b;
}

html.dark-mode .api-sidebar__header {
    background: #2a2e30;
}

html.dark-mode .api-sidebar__group {
    border-color: #40464b;
}

html.dark-mode .api-sidebar__section-title,
html.dark-mode .api-sidebar__section-toggle,
html.dark-mode .api-sidebar__group-toggle,
html.dark-mode .api-sidebar__endpoint-link,
html.dark-mode .api-sidebar__schema-link {
    color: #bcc2c8;
}

html.dark-mode .api-sidebar__group-link {
    color: #e5e7eb;
}

@media (max-width: 900px) {
    body.api-sidebar-enabled {
        padding-left: 0;
    }

    body.api-sidebar-open {
        overflow: hidden;
    }

    .api-sidebar {
        width: min(var(--api-sidebar-width), 88vw);
        box-shadow: 0 0 24px rgb(0 0 0 / 24%);
        transform: translateX(-105%);
        transition: transform 160ms ease-out;
    }

    body.api-sidebar-open .api-sidebar {
        transform: translateX(0);
    }

    .api-sidebar__menu-button,
    .api-sidebar__close {
        z-index: 32;
        display: block;
        width: 2.5rem;
        height: 2.5rem;
        padding: 0;
        font-size: 1.25rem;
        color: #fff;
        background: #1b1b1b;
        border: 1px solid #4b5563;
        border-radius: 4px;
        cursor: pointer;
    }

    .api-sidebar__menu-button {
        position: fixed;
        z-index: 25;
        top: 4.25rem;
        left: 0.75rem;
    }

    body.api-sidebar-open .api-sidebar__menu-button {
        display: none;
    }

    .api-sidebar__close {
        position: absolute;
        top: 0.8rem;
        right: 0.75rem;
    }

    .api-sidebar__header {
        padding-right: 3.75rem;
    }

    body.api-sidebar-open .api-sidebar__backdrop {
        position: fixed;
        z-index: 29;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        display: block;
        width: 100%;
        padding: 0;
        background: rgb(0 0 0 / 36%);
        border: 0;
    }
}

@media print {
    body.api-sidebar-enabled {
        padding-left: 0;
    }

    .api-sidebar,
    .api-sidebar__menu-button,
    .api-sidebar__backdrop {
        display: none;
    }
}
