@import url('common.css');

/* MAIN PANEL CLASS */
.panel {

    overflow-y: hidden;
    overflow-x: hidden;
    z-index: 9;
    resize: none;
    flex-direction: column;
    display: flex;
    transition: all 0.5s ease !important;
}

.panel.classicgui {
    border-radius: 0px !important;
    margin-top: 0px !important;
}

.panel.minimized {
    height: 16px !important;
    min-height: 16px !important;
    overflow: hidden;
    scrollbar-width: none;
    resize: none !important;
    flex-shrink: 0;
}

.verticalPanel {
    width: 100%;
    justify-content: space-between;
    flex-grow: 1;
    align-items: center;
    margin-top: 10px;
}

#settings-panel,
#tool-panel,
#export-panel,
#properties-panel,
#parameters-panel {
    width: 100%;
    justify-content: space-between;
    flex-grow: 1;
    align-items: center;
    margin-top: 10px;
    min-height: 12px;
}

#export-panel {
    min-height: 220px;
    flex-shrink: 0;
}

#inventory-panel,
#notepad-panel {
    position: relative;
    flex: 1 1 0;
    height: auto;
    border-radius: 8px 8px 0 0;
}

#notepad-panel {
    margin: 0px;
    background-color: var(--3-color);
}

#outliner-panel {
    width: 100%;
    resize: vertical;
    min-height: 38px;
    flex-grow: 1;
    margin-top: 10px;
    overflow-y: auto;
}

#outliner-panel:has(.panel-message) {
    overflow-y: hidden;
}

#outliner-widget:has(.panel-message) {
    overflow-y: hidden;
}

#history-panel {
    width: 100%;
    resize: vertical;
    min-height: 43px;
    flex-grow: 1;
    margin-top: 10px;
    overflow-y: auto;
}

#history-panel:has(.panel-message) {
    overflow-y: hidden;
}

.history-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    width: 100%;
    flex-grow: 0;
}

.history-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    white-space: nowrap;
    height: 22px;
    cursor: pointer;
    text-align: left;
    width: 100%;
}

.history-row:hover {
    background-color: var(--hover-color);
}

.history-row-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-right: 8px;
    flex-shrink: 0;
    pointer-events: none;
}

.history-row-text {
    display: block;
    text-align: left;
    flex: 1;
    font-size: var(--fontsize-normal);
    color: var(--text-color);
    pointer-events: none;
}

.history-row.history-redo .history-row-text {
    color: var(--disabled-color);
}

.history-row.history-redo .history-row-icon {
    opacity: 0.5;
}

.history-current-indicator {
    width: 100%;
    height: 2px;
    margin-top: 1px;
    background-color: var(--selected-color);
    pointer-events: auto;
    flex-shrink: 0;
}

#toolbar-panel {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 50px;
    height: auto;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    flex-direction: row !important;
}

#toolbar-panel.classicgui {
    border-radius: 8px !important;
    box-shadow: 4px 4px 4px 0 var(--border-shadow-color) !important;
}

/* TITLE */
.panel-title {
    width: 100%;
    text-align: center;
    font-family: var(--font-family);
    font-size: var(--fontsize-small);
    border: none;
    min-height: 16px !important;
    height: 16px !important;
    background-color: var(--0-color);
    cursor: pointer;
}

.panel-title:hover {
    background: var(--hover-color);
    color: var(--selected-text-color);
}

/* TRANSITION */
.panel-transition {
    transition: opacity 0.5s ease !important;
    opacity: 1;
    visibility: visible;
}

.panel-transition.hidden {
    opacity: 0;
    visibility: hidden;
    height: 0px !important;
    min-height: 0px !important;
}

.disappear {
    position: absolute;
    top: -5000px;
    opacity: 0;
    visibility: hidden;
}

.panel-message {
    display: flex;
    justify-content: center !important;
    height: 22px;
    color: #888;
    width: 100%;
    align-items: center !important;
}