/**
 * MAIN BODY
 */
.error-body {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background-image: url('/SAAS/CORE_EXT/Public/img/bgDefault.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}

/**
 * BODY SECTIONS
 */
.error-body-section-left,
.error-body-section-right {
    height: inherit;
    display: flex;
    flex-basis: 50%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/**
 * LEFT SECTION
 */
.error-body-section-left {
    background-color: var(--color-panel-bg);
    box-shadow: 8px 8px 16px var(--color-menubar-dropdown-shadow);
    overflow: auto;
}

.error-body-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 90%;
}

    .error-body-content #error-404-img {
        height: 120px;
        width: 120px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: .8em;
    }

    .error-body-content h1 {
        font-size: 24px;
        font-family: var(--font);
        font-weight: var(--font-weight-bold);
        letter-spacing: 0px;
        color: var(--color-error-text);
        margin-left: auto;
        margin-top: .5em;
        margin-right: auto;
        margin-bottom: .5em;
    }

    .error-body-content span.btn-txt {
        align-items: center;
        justify-content: center;
    }

    .error-body-content span:not(.btn-txt):not(.fal) {
        font-size: 18px;
        font-family: var(--font);
        font-weight: var(--font-weight);
        letter-spacing: 0px;
        color: var(--color-error-text);
        margin-left: auto;
        margin-top: .8em;
        margin-right: auto;
        margin-bottom: .8em;
    }

    .error-body-content .error-row {
        width: 100%;
        display: flex;
        flex-direction: row; 
        margin-top: .8em;
        margin-bottom: .8em;
    }

    .error-body-content #error-code {
        display: flex;
        flex-direction: row;
        align-items: start;
        justify-content: start;
        text-align: start;
        word-break: break-all;
        width: 100%;
        max-height: 250px;
        overflow-y: auto;
        position: relative;
        padding-top: 2em !important;
        padding-right: 4em !important;
        padding-bottom: 2em !important;
        padding-left: 2em !important;
        margin-left: 0;
    }

        .error-body-content #error-code.warning-message {
            border: 1px solid var(--color-warning-message-text);
        }

        .error-body-content #error-code.danger-message {
            border: 1px solid var(--color-danger-message-text);
        }

    .error-body-content #error-code i:first-child {
        font-size: 12px !important;
        margin-top: .25em;
    }

    .error-body-content .error-copy-clipboard-ico {
        cursor: pointer;
        position: absolute;
        top: 0;
        right: 0;
        border-radius: 0 var(--border-radius) 0 var(--border-radius);
        margin-right: 0 !important;
        padding: .8em;
    }

        .error-body-content #error-code.warning-message .error-copy-clipboard-ico {
            border-left: solid 1px var(--color-warning-message-text);
            border-bottom: solid 1px var(--color-warning-message-text);
        }

        .error-body-content #error-code.danger-message .error-copy-clipboard-ico {
            border-left: solid 1px var(--color-danger-message-text);
            border-bottom: solid 1px var(--color-danger-message-text);
        }

        .error-body-content #error-code.warning-message .error-copy-clipboard-ico:hover {
            color: var(--color-light-text);
            background-color: var(--color-warning-message-text);
        }

        .error-body-content #error-code.danger-message .error-copy-clipboard-ico:hover {
            color: var(--color-light-text);
            background-color: var(--color-danger-message-text);
        }

    .error-body-content .bad-search {
        display: flex;
        height: auto;
        margin: 0;
        cursor: pointer;
        position: absolute;
        bottom: 0;
        right: 0;
        border-radius: var(--border-radius) 0 var(--border-radius) 0;
        margin-right: 0 !important;
        padding: .8em;
        background-color: transparent;
        border-bottom: 0;
        border-right: 0;
        min-width: 37px
    }

    .error-body-content .bad-search span {
        font-size: 1.5em;
    }

    .error-body-content #error-code.warning-message .bad-search {
        color: var(--color-warning-message-text);
        border-left: solid 1px var(--color-warning-message-text);
        border-top: solid 1px var(--color-warning-message-text);
    }

    .error-body-content #error-code.danger-message .bad-search {
        color: var(--color-danger-message-text);
        border-left: solid 1px var(--color-danger-message-text);
        border-top: solid 1px var(--color-danger-message-text);
    }

    .error-body-content #error-code.warning-message .bad-search:hover {
        color: var(--color-light-text);
        background-color: var(--color-warning-message-text);
    }

    .error-body-content #error-code.danger-message .bad-search:hover {
        color: var(--color-light-text);
        background-color: var(--color-danger-message-text);
    }

    .error-body-content .error-view-details-link {
        flex: 1;
        text-align: start;
        justify-content: start !important;
    }

    .error-body-content .error-view-details-link,
    .error-body-content .error-view-tools-link {
        cursor: pointer;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        margin-bottom: .8em;
    }

        .error-body-content .error-view-details-link a,
        .error-body-content .error-view-details-link a:active,
        .error-body-content .error-view-details-link a:visited
        .error-body-content .error-view-tools-link a,
        .error-body-content .error-view-tools-link a:active,
        .error-body-content .error-view-tools-link a:visited {
            color: #555555;
        }

        .error-body-content .error-view-details-link i:first-child,
        .error-body-content .error-view-tools-link i:first-child {
            color: #555555;
            font-size: 12px !important;
            margin-right: .5em;
        }
        
        .error-body-content .error-view-details-link:hover > *,
        .error-body-content .error-view-tools-link:hover > * {
            color: var(--color-modal-confirm-bg) !important;
        }

    .error-body-content .error-details {
        width: 100%;
        margin-top: .8em;
        margin-bottom: .8em;
        overflow: auto;
        max-height: 250px;
    }

        .error-body-content .error-details table.error-details-table {
            width: 100%;
            background-color: var(--color-error-btn-bg);
            border: 1px solid var(--color-error-btn-border);
            border-radius: var(--border-radius);
            padding: .5em;
        }

        .error-body-content .error-details thead tr th {
            border-bottom: var(--border-width-md) solid var(--color-error-btn-border);
        }

        .error-body-content .error-details .list-header th {
            padding-bottom: .5em;
            padding-left: .5em;
            padding-right: .5em;
        }

        .error-body-content .error-details tbody tr td {
            padding-top: .5em;
            padding-bottom: .5em;
        }

        .error-body-content .error-details tbody tr td:last-child {
            text-align: center;
        }

    .error-body-content .btn-new-secondary {
        width: 100%;
        align-self: center;
        min-height: 3em;
        font-size: 1.1em;
        padding: .8em;
        margin-top: .8em;
        margin-left: 0;
    }

/**
 * RIGHT SECTION
 */
.error-support-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    text-align: start;
    width: 90%;
    background-color: var(--color-panel-bg);
    border-radius: 16px;
    box-shadow: 4px 4px 8px var(--color-menubar-dropdown-shadow);
    padding: 2.5em;
    overflow: auto;
}

.error-support-form #top-header,
.error-support-form .toolbar {
    display: none !important;
}

.error-support-form .as-col {
    padding: 0;
}

.error-support-form .error-row {
    width: 100%;
    display: flex;
    flex-direction: row; 
    align-items: center;
    justify-content: center;
}

.error-support-form .error-row h2 {
    flex: 1;
}

.error-support-form .error-row .as-ico.cancel {
    color: #555555;
    font-size: 12px !important;
    border: none !important;
    height: fit-content;
}
        
.error-support-form .error-row .as-ico.cancel:hover {
    color: var(--color-modal-confirm-bg) !important;
}

.error-support-form .as-btn.btn-new-primary,
.error-support-form .as-btn.btn-new-secondary {
    width: 100% !important;
    align-self: center;
    min-height: 3em !important;
    font-size: 1.1em;
    padding: .8em;
    margin-top: .8em;
    margin-left: 0;
}

.error-support-form table tr td {
    margin-top: .8em;
}

.error-support-form table tr,
.error-support-form table tr td,
.error-support-form .material-td,
.error-support-form .material-td input,
.error-support-form .material-td select {
    display: flex;
    flex-grow: 1;
    width: 100%;
}

.error-support-form .material-td textarea,
.error-support-form #field-supFiles {
    width: 100% !important;
} 

.error-support-form #supFiles-btn {
    border: dashed 1px var(--color-mat-input-label);
    border-radius: var(--border-radius);
    width: 100%;
    min-height: 100px;
    max-height: 500px;
    overflow-y: auto;
    background-color: var(--color-upload-files-bg);
    cursor: pointer;
}

.error-support-form #supFiles-btn span {
    color: var(--color-mat-input-label);
}

.error-support-form #supFiles-btn:hover,
.error-support-form #supFiles-btn.inDragging {
    border: dashed 1px var(--color-modal-confirm-bg);
    background-color: rgba(152, 192, 244, 0.6);
}

.error-support-form #supFiles-btn:hover span,
.error-support-form #supFiles-btn.inDragging span {
    color: rgb(var(--pcolor-buttons-text));
}

.error-support-form #supFiles-btn:focus {
    outline: none !important;
}

@media only screen and (max-width: 1024px) { 
    .error-support-form #supFiles-btn {
        min-height: 60px;
    }
    .error-support-form .material-td textarea {
        height: 3em !important;
    } 
}

/**
 * MODAL
 */
.error-body.is-modal {
    width: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: none;
    padding: .5em 2em 2em 2em;
}

    .error-body.is-modal .error-body-section-left {
        background-color: var(--color-modal-bg);
        box-shadow: none;
    }

.error-body-content.is-modal {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    text-align: start;
    width: 100%;
}

    .error-body-content.is-modal h1 {
        font-size: 24px;
        font-family: var(--font);
        font-weight: var(--font-weight-bold);
        letter-spacing: 0px;
        color: var(--color-error-text);
        margin-bottom: .5em;
        margin-left: 0;
    }

    .error-body-content.is-modal span:not(.btn-txt):not(.fal) {
        font-size: 16px;
        font-family: var(--font);
        font-weight: var(--font-weight);
        letter-spacing: 0px;
        color: var(--color-error-text);
        margin-top: 0;
        margin-bottom: .5em;
        margin-left: 0;
    }

    .error-body-content.is-modal .error-row {
        width: 100%;
        display: flex;
        flex-direction: row; 
        margin-top: .5em;
        margin-bottom: .5em;
    }

    .error-body-content.is-modal #error-code {
        display: flex;
        flex-direction: row;
        align-items: start;
        justify-content: start;
        text-align: start;
        word-break: break-all;
        width: 100%;
        font-size: 11px;
        position: relative;
        padding-top: 2em !important;
        padding-right: 4em !important;
        padding-bottom: 2em !important;
        padding-left: 2em !important;
    }

    .error-body-content.is-modal .error-details {
        width: 100%;
        margin-top: 0;
        margin-bottom: 0;
    }

    .error-body-content.is-modal .error-details table.error-details-table {
        table-layout: fixed;
    }

    .error-body-content.is-modal .error-details thead tr.list-header {
        color: var(--cond-color-form-border);
        background-color: var(--color-error-btn-bg);
    }

#error-dialog table.error-details-table {
    background-color: var(--color-error-btn-bg);
    border: 1px solid var(--color-error-btn-border);
    border-radius: var(--border-radius);
    padding: .5em;
    margin: 1em;
}