﻿.sidepanel {
    grid-area: sidepanel;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 10px;
    padding: 10px;
}

.sidepanel.inblade-sidepanel {
    position: absolute;
    right: 0;
    top: 20px;
    bottom: 20px;
    max-width: 300px;
    z-index: 20;
    box-shadow: -13px 2px 23px 1px rgba(0,0,0,0.38);
}

.sidepanel-title {
    width: 100%;
    height: 50px;
    display: grid;
    grid-template-columns: 1fr 30px;
    grid-template-rows: 50px;
    gap: 10px;
    align-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 20px;
    border-bottom: 1px solid #cccccc;
}

.sidepanel-title button {
    border: 0;
    padding: 0;
    background-color: transparent;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    cursor: pointer;
}

.sidepanel-title button svg {
    width: 16px;
    height: 16px;
}

.sidepanel-content {
    padding: 10px 0;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-flow: row wrap;
    align-content: flex-start;
    align-items: flex-start;
    gap: 10px;
}

.sidepanel-row {
    width: 100%;
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: 20px 20px;
}

.sidepanel-row.maxcontent-height {
    grid-template-rows: 20px max-content;
}

.sidepanel-row.unfixed-height {
    grid-template-rows: 20px max-content;
}

.sidepanel-row label {
    font-weight: bold;
}

.sidepanel-button {
    border: 0;
    padding: 0 10px;
    width: 100%;
    height: 30px;
    background-color: var(--button-background-color);
    color: var(--button-text-color);
    border-radius: var(--item-border-radius);
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
}

.sidepanel-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}