#toolbar-area {
    /*display: flex;*/
    /*overflow: visible;*/
    min-width: fit-content;
}

.toolbar-container {
    display: flex;
    flex-direction: column;
    height: fit-content;
    min-height: 100%;
    background-color: var(--color6);
    border-right: 1px solid var(--color8);
    overflow: visible;
    flex-basis: 100%;
}

.toolbar-container.toolbar-container-column {
    flex-direction: column;
}

.toolbar-container.toolbar-container-row {
    flex-direction: row;
}

.toolbar-container .toolbar-section {
    display: flex;
    align-items: center;
    flex-direction: inherit;
    border-bottom: 1px solid #c3c3c3;
    margin-bottom: 10px;
    padding-bottom: 10px;
}

.toolbar-container-column .toolbar-section {
    border-bottom: 1px solid #c3c3c3;
    margin-bottom: 10px;
    padding-bottom: 10px;
}

.toolbar-container-row .toolbar-section {
    border-right: 1px solid #c3c3c3;
    margin-right: 10px;
    padding-right: 10px;
}

.toolbar-container .toolbar-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
    border-right: none;
    margin-right: 0;
    padding-right: 0;
}

/* subsections */
.toolbar-subcontainer {
    display: flex;
    position: relative;
    z-index: 1;
    /*position: relative;*/
}

.toolbar-container .toolbar-section .toolbar-subsection {
    position: absolute;
    border: 1px solid var(--color8);
    box-shadow: 2px 2px 20px 0px var(--color8);
    align-items: center;
}

.toolbar-container-column .toolbar-section .toolbar-subsection {
    margin-left: 50px;
    min-height: 100%;
    border-radius: 5px;
    overflow-x: hidden;
    align-items: start;
}

.toolbar-container-row .toolbar-section .toolbar-subsection {
    flex-direction: column;
    margin-top: 50px;
    min-width: 100%;
}

.toolbar-container.toolbar-subsection {
    min-height: unset;
    min-width: unset;
}

/**/

.toolbar-container-column .toolbar-button {
    width: 50px;
    height: 50px;
}

.toolbar-container-row .toolbar-button {
    width: 50px;
    height: 50px;
}

.toolbar-button {
    position: relative;
    height: fit-content;
    transform: scale(0.65);
    padding: 5px;
    /*margin: 3px 3px;*/
    text-align: center;
    cursor: pointer;
    display: flex;
    align-self: center;
    justify-content: center;
    transition: all .2s cubic-bezier(0.645, 0.045, 0.355, 1) !important;
}

.toolbar-button i {
    font-size: 2rem;
}

.toolbar-button:hover {
    transform: scale(0.75);
    box-shadow: 0 0 5px 2px rgb(0, 0, 0);
    cursor: pointer;
}

.toolbar-button:not(.active):hover {
    background-color: #d8d8d8;
}

.toolbar-button.locked-elem:before {
    background-color: transparent;
    transform: scale(0.95);
    top: -2px;
    right: -6px;
    padding: 0;
}


/* CUSTOMS */

#show-numbered-slider, #show-bboxed-slider {
    margin: 0 10px;
}

/* zoom */
#zoom-tool-container {
    display: flex;
    flex-direction: column;
    margin: 5px -10px;
    align-items: center;
    transform: scale(0.85);
}

#zoom-slider-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
}

#zoom-slider-text {
    width: 80px;
    text-align: center;
    height: fit-content;
    padding: 3px;
}

#zoom-slider-range {
    width: 85%;
}


/* add area */
#toggle_add_area_minus.locked-elem {
    color: rgba(255, 255, 255, 0.7) !important;
}


#show-numbered-toolbar-btn i:nth-child(1) {
    font-weight: 100;
}

#show-numbered-toolbar-btn i:nth-child(2) {
    position: absolute;
}

#toggle_add_area_minus {
    background-color: black;
}




/**/
.toolbar-tool-container {
    display: flex;
    flex-direction: column;
    margin: 20px;
    transform: scale(0.95);
}

.toolbar-tool-title {
    text-align: center;
    margin-bottom: 20px;
    white-space: nowrap;
}

.toolbar-inp-container {
    position: relative;
    display: flex;
    flex-direction: column;
    height: fit-content;
    /*flex: 1;*/
    align-self: stretch;
    min-width: max-content;
    align-items: flex-start;
    /* margin: 5px 0 5px; */
    gap: 15px 0px;
    scale: 0.95;
}

.toolbar-inp-fset {
position: relative;
    display: flex;
    flex-direction: column;
    height: fit-content;
    min-width: max-content;
    gap: 15px 0px;
    padding: 20px 10px 5px 5px;
}

fieldset.toolbar-inp-container {
    padding: 17px 0 7px;
    margin: 10px;
}

.toolbar-inp-container legend {
    font-size: 0.9rem;
    width: fit-content;
    margin: 0 30px 0 15px;
    line-height: 0;
}

.toolbar-inp-line {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 5px;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    align-self: stretch;
    height: fit-content;
    min-width: max-content;
    /* padding: 15px 5px 5px; */
    margin: 1px 5px 1px 20px;
    white-space: nowrap;
}

.toolbar-inp-text {
    border: none;
    height: 100%;
    width: 100%;
    /*padding: 0 10px;*/
    background-color: transparent;
}

.toolbar-units-label {
    position: absolute;
    scale: 0.8;
    top: -8px;
    right: 0;
    line-height: 0;
    opacity: 0.8;
}

.toolbar-out-container {
    white-space: nowrap;
    margin: 20px 20px 2px 20px;
    padding-top: 10px;
    display: flex;
    align-self: stretch;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    flex-direction: column;
    border-top: 1px solid var(--color1);
    /* gap: 22px; */
    height: fit-content;
    /* justify-content: space-between; */
    background-color: transparent;
}

.toolbar-out-line {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 5px;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    align-self: stretch;
    height: fit-content;
    min-width: max-content;
    width: 100%;
    padding: 15px 10px;
    cursor: auto !important;
}

.toolbar-out-label {
    margin-right: 20px;
}

.toolbar-out-text {
    margin-left: auto;
    text-align: end;
}

.toolbar-out-units {
    line-height: 0;
    scale: 0.8;
    bottom: 0;
    position: relative;
}

/* SRC */
#srctkw-modal-content {

}

#tkw-inp-container {
    display: flex;
    flex-flow: row nowrap;
}

.tkw-label {
    width: 100%;
}



@media screen and (max-width: 700px) {
    #src-inp-container {
        grid-template-columns: 280px;
    }
}

#src-inp-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50%, 1fr));
    gap: 15px 0;
    scale: 0.932;
}

#src-subsection {
    max-height: calc(100vh - 290px);
}
#src-main-container {
    gap: 2px;
}

#src-tool-container {
    margin: 15px 0 0;
}

.src-g1 {
    --star-color: red;
}

.src-g2 {
    --star-color: blue;
}

.src-g3 {
    --star-color: green;
}

/*#src-tool-container .toolbar-inp-container {*/
/*    margin: 7px 0 7px;*/
/*}*/

#src-tool-container .toolbar-inp-text {
    /*padding-top: 10px;*/
    /*padding-bottom: 3px;*/
}

.src-inp-container {
    display: flex;
    flex-direction: row;
}

/* RULES */
.toolbar-button .material-icons {
    scale: 1.2;
}


.collapsable {
    position: absolute;
}

.collapsed {
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: -99999px !important;
    /*position: static !important;*/
}