﻿body {
}

.center {
    text-align: center;
}

/*
    iframe height fix
*/

.iframe-container {
    min-height: 280px;
    height: calc(100vh - 224px);
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
}

/*
    JsonEditor classes
*/

i.header-profile-user {
    display: inline-block;
    font-size: 1.5rem;
    height: auto;
    width: auto;
    vertical-align: middle;
    padding:.5rem;
}

.json-editor:not(.json-editor-schema) {
    border: 1px solid var(--bs-secondary);
    padding: 1rem;
    box-shadow: 1px 5px 6px var(--bs-secondary);
}

.json-editor div[data-schemaid="root"] > .card.card-body > div + span.btn-group {
    text-align:right;
}

.json-editor div.je-object__container[data-schematype="object"] {
    border: 1px solid var(--light);
    padding: 1rem;
    margin-bottom: 2rem;
}

.json-editor .je-modal {
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.json-editor .je-modal .je-edit-json--textarea {
    margin-bottom: 1rem;
    min-height: 20vh;
}

.json-editor .je-modal > .btn {
    margin: .3rem 0;
}

.json-editor .card {
    background-color:var(--bs-white)!important;
}

.json-editor .je-modal .property-selector-input {
    width:100%;
}

.json-editor .je-switcher {
    background-position: right 6px;
    padding-right: 22px;
    margin-bottom:.5rem;
}


.json-editor .card .table {
    border:1px solid var(--bs-light);
}

.json-editor .card .table thead tr th {
    background-color: var(--bs-light);
}

.json-editor .card .table tbody tr td {
    vertical-align:middle;
    text-align:center;
}

.json-editor .card .table thead tr th[aria-hidden="true"] {
    visibility: visible !important;
    color: transparent;
}

.json-editor-schema > div > .card > div > div > .row > div[data-schemapath] {
    margin-top: 1rem;
}

.json-editor-schema > div[data-schemapath] > .card.card-body {
    padding-top: 0;
}

.json-editor-schema div[data-schematype="array"] > .card.card-body {
    padding-top:0;
    margin-top:0!important;
}

.json-editor-schema div[data-schematype="array"] > .card.card-body > div > .card.card-body {
    display:block;
    box-shadow:none;
    margin:0!important;
    padding:1rem!important;
}

.json-editor-schema div[data-schematype="array"] > .card.card-body div + .btn-group {
    text-align:right;
}

.json-editor-schema > div[data-schematype="object"] div[data-schemapath="root.items.properties"] > b {
    color: var(--danger)!important;
}

.json-editor-schema > div[data-schematype="object"] div[data-schemapath="root.items.properties"] .card.card-body .row > div[data-schemapath] b {
    color: var(--info);
}

.json-editor-schema > div[data-schematype="object"] div[data-schemapath="root.items.properties"] .card.card-body .row > div[data-schemapath] .je-object__container b {
    color: var(--primary);
}

.json-editor-schema > div > .card > div > div > .row .je-object__container > .card {
    margin-top: 0 !important;
    margin-bottom: 0 !important
}

.json-editor-schema > div > .card > div > div > .row > div > b {
    color: var(--danger) !important;
    font-size:1.2rem;
}

.json-editor-schema > div > .card > div > div > .row > div b {
    color: var(--info);
    display:inline-block;
}

.json-editor-schema .card .row div .card .row div b {
    font-size: 1rem;
}

/*
    Ticket classes
*/

#btnAddTicket .dx-button-content {
    align-content: center;
    padding: 0;
}

#ticketModal .dx-box-item-content .dx-box-item-content-form-footer,
#ticketAddAttachModal .dx-box-item-content .dx-box-item-content-form-footer {
    padding-top: 1rem !important;
    margin-top: 1rem;
    border-top: 1px solid #eff2f7;
    display: flex;
    justify-content: end;
}

#ticketModal .dx-form-validation-summary.dx-validationsummary.dx-widget,
#ticketAddAttachModal .dx-form-validation-summary.dx-validationsummary.dx-widget {
    margin: 1rem 0;
    text-align: center;
    line-height: 1.4rem;
}

#ticketModal .dx-fileuploader-container,
#ticketAddAttachModal .dx-fileuploader-container {
    align-items: center;
}

/*
    Custom DevExpress dropdowns for TipoValori
*/

.custom-devextreme-dropdown {
    display:flex;
}

.custom-devextreme-dropdown.devextreme-dropdown-icon-position-left {

}

.custom-devextreme-dropdown.devextreme-dropdown-icon-position-right {
    flex-direction:row-reverse
}

.custom-devextreme-dropdown .devextreme-dropdown-icon-position-left .custom-devextreme-dropdown-icon {

}

.custom-devextreme-dropdown.devextreme-dropdown-icon-position-left .custom-devextreme-dropdown-icon {
    padding: .5rem 0 0 .5rem;
}

.custom-devextreme-dropdown.devextreme-dropdown-icon-position-right .custom-devextreme-dropdown-icon {
    padding: .5rem .5rem 0 0;
}

.custom-devextreme-dropdown right .custom-devextreme-dropdown-icon {

}

.custom-devextreme-dropdown-item {

}

.custom-devextreme-dropdown-item.devextreme-dropdown-icon-position-left {

}

.custom-devextreme-dropdown-item.devextreme-dropdown-icon-position-right {

}

.custom-devextreme-dropdown-item.devextreme-dropdown-icon-position-right i {
    float:right;
}