body.disable-scroll {
    overflow: hidden;
}

.max-w-8xl {
    max-width: 90rem;
}

.popup-message-text a {
    text-decoration: underline !important;
}

.header-link-span {
    display: inline;
}

.link-button {
    width: 18px;
    height: 18px;
    margin-left: 8px;
    display: inline-block;
    cursor: pointer;
    opacity: 0;
    transform: translate(-8px, 0px);
    transition: opacity 0.2s, transform 0.2s;
}

.link-button-light {
    background-image: url("../static/icons/link_light.svg");
}

.link-button-dark {
    background-image: url("../static/icons/link_dark.svg");
}

.doc-header:hover .link-button {
    opacity: 1;
    transform: translate(0px, 0px);
}

.table-wrapper {
    /*margin-top: 2rem;*/
    /*margin-bottom: 2rem;*/
    margin-top: 4px !important;
    margin-bottom: 4px !important;

    background-position: left center, right center, left center, right center;
    background-repeat: no-repeat;
    background-color: transparent;
    background-size: 7px 100%, 7px 100%, 7px 100%, 7px 100%;
    background-attachment: local, local, scroll, scroll;
}

.table-wrapper-shadows-light {
    background-image: linear-gradient(to right, white, white),
    linear-gradient(to right, white, white),
    linear-gradient(to right, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)),
    linear-gradient(to left, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
}

.table-wrapper-shadows-dark {
    background-image: linear-gradient(to right, #111827, #111827),
    linear-gradient(to right, #111827, #111827),
    linear-gradient(to right, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)),
    linear-gradient(to left, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
}









/*       ANIMATIONS       */

.full-screen-slide-bottom-enter-active {
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.full-screen-slide-bottom-leave-active {
    transition: all 0.4s;
}

.full-screen-slide-bottom-enter,
.full-screen-slide-bottom-leave-to {
    transform: translateY(100%);
}



.fade-slide-element-leave-active,
.fade-slide-element-enter-active {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: absolute;
}

.fade-slide-element-enter {
    opacity: 0;
    transform: translateX(80px);
}

.fade-slide-element-leave-to {
    opacity: 0;
    transform: translateX(-8px);
}



.full-slide-right-enter-active,
.full-slide-right-leave-active,
.full-slide-left-enter-active,
.full-slide-left-leave-active,
.full-slide-top-enter-active,
.full-slide-top-leave-active,
.full-slide-down-enter-active,
.full-slide-down-leave-active {
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    position: absolute;
}

.full-slide-right-leave-to,
.full-slide-left-enter {
    transform: translateX(-100%);
}

.full-slide-left-leave-to,
.full-slide-right-enter {
    transform: translateX(100%);
}



.full-slide-down-leave-to,
.full-slide-top-enter {
    transform: translateY(-100%);
}

.full-slide-top-leave-to,
.full-slide-down-enter {
    transform: translateY(100%);
}


.fade-enter-active,
.fade-leave-active {
    transition: opacity 0.1s ease-in;
}

.fade-enter,
.fade-leave-to {
    opacity: 0;
}



.slide-enter-active {
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    position: absolute;
}

.slide-enter-active {
    transition-delay: 0.1s;
}

.slide-enter {
    opacity: 0;
    transform: translateY(15%);
}



.fade-slide-bottom-leave-active,
.fade-slide-bottom-enter-active {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: absolute;
}

.fade-slide-bottom-enter {
    opacity: 0;
    transform: translateY(15%);
}

.fade-slide-bottom-leave-to {
    opacity: 0;
    transform: translateY(15%);
}

.fadeButton-enter-active,
.fadeButton-leave-active {
    transition: opacity 0.1s ease-in;
}

.fadeButton-enter,
.fadeButton-leave-to {
    opacity: 0;
}


/*     MODALS     */


.modal-content-container {
    display: flex;
    flex-direction: column;
    width: 604px;
    max-width: 100%;
    padding: 36px 52px 48px 52px;
    box-sizing: border-box;
}

.modal-header {
    margin-bottom: 32px;
}

.modal-buttons-container {
    margin-top: 40px;
    display: flex;
    align-items: center;
}





/*          TOC        */
.toc {
    overflow: hidden;
}

.toc-list-item {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.toc-list {
    margin: 0;
    padding-left: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

a.toc-link {
    color: var(--color-gray-700);
    height: 100%;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.dark a.toc-link {
    color: var(--color-slate-400);
}

a.toc-link:not(:empty) {
    padding: 4px 0;
}

.is-collapsible {
    max-height: 1000px;
    overflow: hidden;
    transition: all 300ms ease-in-out;
}

.is-collapsed {
    max-height: 0;
}

.is-position-fixed {
    position: fixed !important;
    top: 0;
}

.is-active-link {
    color: var(--color-blue-500) !important;
}
body.dark .is-active-link {
    color: var(--color-blue-400) !important;
}

.toc-link::before {
    background-color: var(--color-gray-100);
    content: ' ';
    display: inline-block;
    left: 0;
    position: absolute;
    width: 1px;
    margin-top: -6px;
    height: 32px;
}
body.dark .toc-link::before {
    background-color: var(--color-slate-800);
}

.is-active-link::before {
    background-color: var(--color-blue-500);
    width: 2px;
    z-index: 1;
}
body.dark .is-active-link::before {
    background-color: var(--color-blue-400);
}


/*         DRAG AND DROP in sidebar          */

.drop-line {
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background-color: var(--color-gray-900);
    pointer-events: none;
    z-index: 2;
}
body.dark .drop-line {
    background-color: var(--color-slate-300);
}

.hidden-drop-line {
    display: none !important;
}

/*           MENU              */

.file-menu {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.file-menu-item {
    display: flex;
    padding: 8px 12px;
    border-bottom: 1px solid var(--white-10);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.file-menu-item:first-child {
    padding-top: 12px;
}

.file-menu-item:last-child {
    padding-bottom: 12px !important;
    border-bottom: none !important;
}

.file-menu-item:hover {
    background-color: var(--white-10);
    border-color: transparent;
}

.file-menu-item-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.file-menu-item-icon svg {
    width: 20px;
    height: 20px;
    color: var(--color-gray-400);
}

.file-menu-item-text {
    line-height: 20px;
}
