/* Contenitore principale della sidebar di Scalar */
.scalar-app .bg-sidebar-b-1 {
    position: relative;
    padding-top: 80px; /* spazio per il logo */
}

/* Logo LEVIAhub sopra il titolo della documentazione */
.scalar-app .bg-sidebar-b-1::before {
    content: "";
    display: block;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px; /* regola la dimensione orizzontale */
    height: 50px; /* regola l'altezza in base al logo */
    background: url('../swagger/images/logo.png') no-repeat left center;
    background-size: contain;
}

/* Word wrap nel response body per stringhe lunghe (es. JWT token) */
[id^="scalar-client"] .cm-scroller {
    overflow-x: hidden !important;
}

[id^="scalar-client"] .cm-content {
    white-space: pre-wrap !important;
    word-break: break-all !important;
}

[id^="scalar-client"] .cm-line {
    white-space: pre-wrap !important;
    word-break: break-all !important;
}

[id^="scalar-client"] .cm-line span {
    word-break: break-all !important;
    white-space: inherit !important;
}
