﻿/* disable label for UnityCanvas.Canvas to take up space */
#unity-layout label.xaf-item-canvas {
    display: none;
}

#unity-layout {
    display: flex;
    flex-direction: column;
    height: 86.4vh;
    min-height: 0;
}

#unity-layout .main-toolbar {
    padding-left: 0;
    padding-right: 0;
}

#unity-layout .dxbl-toolbar {
    gap: 0.5rem;
}

.manufacturing-dropdown {
    width: 10em;
}

#unity-layout > .content {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
}

#unity-layout > .content > .dxbl-drawer {
    flex: 1 1 auto;
    min-height: 0;
}

#unity-layout .dxbl-drawer-target {
    height: 100%;
}

#unity-layout .dxbl-drawer-panel {
    max-height: 100%;
    overflow: auto;
}

#unity-layout #unity-canvas {
    display: block;
    width: 100%;
    height: 100%;
    outline: none;
    border-radius: 0.625em; /* --dxbl-grid-border-radius */
}

#unity-layout .canvas-holder {
    position: relative;
    height: 100%;
    min-height: 0;
}

#unity-layout .drawer-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

#unity-layout .dxbl-drawer-panel {
    border-top-right-radius: 0.625em; /* --dxbl-grid-border-radius */
    border-bottom-right-radius: 0.625em; /* --dxbl-grid-border-radius */
}

#interaction-popup {
    position: absolute;
    color: #000;
    background-color: #fff;
    padding: 10px;
    border-radius: 5px;
    pointer-events: none;
}

.hidden {
    display: none;
}


/* Tabs */

.unity-tabs {
    width: 100%;
}

.drawer-body {
    padding: 0.5rem 0.25rem;
}

.drawer-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin-bottom: 1em;
}

.drawer-details-header {
    font-weight: 600;
    font-size: 1.1rem;
}

.drawer-empty {
    color: #666;
    font-style: italic;
}

.drawer-hint {
    color: #666;
    font-style: italic;
}


/* editor */
.editor-actions-panel {
    display: flex;
    gap: 2rem;
    width: 100%;
}

.runtime-hierarchy-tree {
    width: 100%;
    overflow-y: scroll;
}

.vector3-editor .vector-parts {
    display: flex;
}

.vector3-editor .vector-part {
    display: flex;
    gap: 1em;
    align-items: center;
}

.editor-row {
    margin-bottom: 1em;
}

.unsupported {
    color: red;
}
