﻿:root {
    --v2-sidesheet-width: 500px;
}

.sidesheet-page-container {
    display: flex;
    width: 100%;
    position: relative;
}

.sidesheet-page-content {
    overflow-y: visible;
    width: 100%;
}

/* When there's enough space, use margin to prevent overlap */
@media (min-width: 1600px) {
    .sidesheet-page-container.sidesheet-open .sidesheet-page-content {
        margin-right: var(--v2-sidesheet-width);
    }
}

.sidesheet-container {
    background-color: var(--main-background-color);
    border: 1px solid #ccc;
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 5;
    margin-left: 10px;
    width: var(--v2-sidesheet-width);
    display: flex;
    flex-direction: column;
}

.sidesheet-back-button {
    min-height: 38px;
    width: 38px;
    border-right: var(--v2-scaled-border-width) solid var(--v2-theme-border-light-color);
}

.sidesheet-section {
    flex: 1;
    overflow-y: auto;
}

.sidesheet-header {
    background-color: var(--main-background-color);
    flex-shrink: 0;
    border-bottom: var(--v2-scaled-border-width) solid var(--v2-theme-border-light-color);
}

.sidesheet-header-right {
    min-height: 38px;
    padding-left: 6px;
    padding-right: 10px;
 }

.sidesheet-content {
    flex: 1;
    overflow-y: scroll;
    overscroll-behavior: contain;
    margin-right: 5px;
}

.sidesheet-section > *:not(:last-child) {
    border-bottom: var(--v2-scaled-border-width) solid var(--v2-theme-border-light-color);
    padding-bottom: 20px;
}
