﻿/* Main Inspector */
.inspector {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-rows: 7rem auto;
    background-color: rgba(0, 0, 0, 0.25);
}

.inspector[noheader] {
    grid-template-rows: auto;
}

.inspector-header {
    display: grid;
    grid-template-columns: 3rem auto;
    grid-template-rows: 2rem 2rem 2rem;
    grid-row-gap: 0.25rem;
    align-items: center;
    justify-items: center;
    background-color: rgba(224, 225, 225, 1);
    padding: 0.5rem;
}

.inspector-icon {
    font-size: 3rem;
    grid-area: 1 / 1 / 3 / 1;
}

.inspector-image {
    grid-area: 1 / 1 / 3 / 1;
}

.first-row,
.second-row,
.third-row,
.fourth-row {
    display: flex;
    height: 2rem;
    width: 100%;
}

.fourth-row {
    text-wrap: nowrap;
}

.first-row {
    grid-area: 1 / 2;
}

.second-row {
    grid-area: 2 / 2;
    align-items: baseline;
}

.third-row {
    grid-area: 3 / 1 / 3 / 3;
    align-items: baseline;
}

    .third-row button {
        padding: 0rem 0.5rem;
        margin: 0rem 0.5rem;
        min-height: auto;
        flex: 0 0 auto;
    }

.parent-complete {
    display: grid;
    grid-template-columns: 4rem auto;
    align-items: center;
    justify-items: left;
    grid-column-gap: 0.25rem;
    margin-bottom: 0.25rem;
    width: 100%;
    height: 2rem;
}

.parent-complete input {
    padding: 0.5rem;
    height: 2rem;
}

.inspector-body {
    padding: 0.5rem;
    overflow-y: auto;
}

/* Editors */
.vector3-editor,
.vector3-editor-plus,
.material-editor,
.boolean-editor,
.string-editor,
.color-editor,
.enumerable-editor,
.float-editor {
    display: grid;
    grid-template-columns: auto 15.75rem;
    align-items: center;
    justify-items: left;
    grid-column-gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.input-with-units {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Vector3 */
.vector3-editor {
    justify-items: right;
    grid-template-columns: auto 1rem 4.25rem 1rem 4.25rem 1rem 4.25rem;
}

.vector3-editor-plus {
    justify-items: right;
    grid-template-columns: auto 1.25rem 1rem 4.25rem 1rem 4.25rem 1rem 4.25rem;
}

.vector3-editor-plus > span:hover {
    background: rgba(0, 0, 50, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 3px;
    cursor: pointer;
}

.expansionpanel-with-more {
    flex-direction: row !important;   
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 1rem;
}

.expansionpanel-with-more > span {
    flex: 0 0 auto;
}

.expansionpanel-with-more > span:last-child {
    position: absolute;
    right: 3px;
}

.expansionpanel-with-more > span:last-child:hover {
    background: rgba(0, 0, 50, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 3px;
    cursor: pointer;
}

.vector3-editor input,
.vector3-editor-plus input {
    padding-left: 0.5rem !important;
    width: 100%;
}

/* Material */
.material-editor {
    grid-template-columns: auto 8rem 7.5rem;
}

.material-editor .rz-dropdown {
    height: 2rem !important;
    width: 100%;
    padding: 0.2rem 0.5rem;
    font-weight: 400;
}

/* Boolean*/
.boolean-editor {
    /* grid-template-columns: auto 16.5rem; */
}

.boolean-editor-no-label {
    margin-right: 0.5rem;
    margin-top: 0.25rem;
}

/* String */
.string-editor-no-label {
    width: 100%;
}

.string-editor-reload {
    grid-template-columns: auto 13.5rem 2rem;
}

.string-editor-reload button {
    display: contents;
}

    .string-editor-no-label > input {
        height: 100%;
        padding: 0.5rem;
        width: 100%;
    }

.string-editor input {
    height: 2rem !important;
    width: 100%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Color */
.color-editor .rz-colorpicker {
    width: 100%;
    height: 2rem;
}

/* Float */
.float-editor input {
    padding: 0rem 0.5rem !important;
    width: 100%;
}

.float-editor > span {
    height: 2rem !important;
    width: 100%;
}

/* Enumerables */
.enumerable-editor {
    justify-items: unset;
}

.enumerable-editor .rz-dropdown {
    height: 2rem !important;
    width: 100%;
    padding: 0.2rem 0.5rem;
    font-weight: 400;
}

/* Changed */
.changed {
    font-weight: 600;
}

    .changed input,
    .changed input:hover,
    .changed input:focus,
    .changed .rz-autocomplete,
    .changed .rz-autocomplete:hover,
    .changed .rz-autocomplete:focus,
    .changed > span,
    .changed > span:hover,
    .changed > span:focus,
    .changed .rz-dropdown,
    .changed .rz-dropdown:hover,
    .changed .rz-dropdown:focus,
    .changed .rz-chkbox-box,
    .changed .rz-chkbox-box:hover,
    .changed .rz-chkbox-box:focus,
    .changed .rz-colorpicker,
    .changed .rz-colorpicker:hover,
    .changed .rz-colorpicker:focus {
        border-width: 2px !important;
        border-color: black !important;
    }
