﻿#specificationForm {
    width: 100%;
    display: flex;
    gap: 30px;
    overflow: hidden;
}

.section {
    width: 100%;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 30px;
}

    .section h5 {
        font-weight: bold;
        width: 100%;
    }

    .section .field {
        width: 35%;
        max-width: calc(50% - 15px);
        flex-grow: 1;
    }

    .section .field.edit {
        position: relative;
    }

        .section .field.edit i {
            position: absolute;
            top: 33px;
            right: 30px;
            cursor: pointer;
        }

        .section .field.edit button {
            position: absolute;
            top: 15px;
            right: -8px;
        }

/* Display */
.display-details {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.display-grid {
    flex-grow: 1;
    min-height: 0;
}

.display-container {
    display: flex;
    flex-wrap: wrap;
    /*margin-bottom: 30px;*/
    /*max-height: 100%;*/
}

    .display-container.vertical {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 15px;
    }

    .display-container.half {
        width: calc(50% - 20px);
    }

.display-section {
    width: 28%;
    min-width: 300px;
    flex-grow: 1;
    border-radius: 5px;
    border: 1px solid lightgray;
    overflow: hidden;
}

    .display-section.full {
        width: 100%;
    }

    .vertical > .display-section {
        width: 100%;
    }

    form .display-section {
        width: calc(50% - 15px);
        flex-grow: 0;
    }

h5.display-header {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 0;
    width: 100%;
    background-color: var(--colour-primary-lighter);
    padding: 5px 20px;
    border-bottom: 1px solid lightgray;
}

    h5.display-header > span {
        margin-right: 20px;
        cursor: pointer;
    }

        h5.display-header > span:not(.active) {
            color: var(--colour-grey);
        }

        h5.display-header > span:hover {
            color: var(--colour-primary-dark);
        }

.display-panel {
    padding: 10px;
    display: flex;
    height: calc(100% - 33.59px - 15px);
    max-height: 874px;
    overflow-y: auto;
    flex-shrink: 0;
}

    .display-panel.wrap {
        height: auto;
        flex-wrap: wrap;
        gap: 15px;
    }

    .display-panel.grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 10px;
    }

    .display-panel.buttons {
        gap: 5px;
        justify-content: space-around;
    }

.display-field {
    display: flex;
    gap: 10px;
    height: 40px;
    align-items: center;
    width: 100%;
    flex-grow: 1;
}


    .display-field > label {
        width: calc(40% - 10px);
        color: var(--colour-grey);
    }

    .display-field > div:not(.e-switch-wrapper) {
            width: 60%;
            height: 100%;
    }

    .display-field > div > div.e-editable-value-container {
        width: 100%;
        height: 100%;
        font-weight: bold;
    }

        .display-field > div > div.e-editable-value-container > span {
            max-width: calc(100% - 22px);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .display-field > div.e-switch-wrapper {
            margin-left: 15px;
            margin-bottom: 4px;
        }

.field-row {
    display: flex;
    width: 100%;
}

    .field-row > .display-field {
        min-width: 50%;
        width: 100%;
        height: 35px;
    }

        .field-row > .display-field > label {
            width: 155px;
        }

        .field-row > .display-field > div {
            width: 130px;
            margin-left: -10px;
        }

        .field-row > .display-field > span {
            font-weight: bold;
        }

        .field-row > .display-field i {
            font-weight: normal;
        }

/* Buttons */
.e-btn .e-btn-icon {
    font-size: 16px !important;
}

    .e-btn .e-btn-icon.fa-lg {
        font-size: 22px !important;
    }

@media (max-width: 1240px) {
    .specification-container .button-group button {
        font-size: 0px !important;
    }

    .specification-container .button-group button span {
        margin: 0 !important;
        width: 1em !important;
        padding: 0 !important;
    }
}