/* Suppress the focus outline on elements that cannot be accessed via keyboard.
// This prevents an unwanted focus outline from appearing around elements that
// might still respond to pointer events.
//
// Credit: https://github.com/suitcss/base */


/* multiview */

body {
    font-family: var(--font-family) !important;
}

.itemType-bg {
    position: relative;
    height: 19px;
    border-radius: 5px;
    text-align: center
}

/* sottomenu selezionato */
.subMenuSelected {
    font-weight: bold;
    font-size: large;
    border-style: dotted;
    border-radius: 3px 4px;
    border-width: 1px;
}

[tabindex="-1"]:focus {
    outline: 0 !important;
}

.wspace {
    white-space: nowrap;
}

.checkbox .caption {
    font-size: inherit;
}

::-webkit-input-placeholder {
    font-size: inherit;
}

::-moz-placeholder {
    font-size: inherit;
}

:-moz-placeholder {
    font-size: inherit;
}

:-ms-input-placeholder {
    font-size: inherit;
}

select, .input, .select,
textarea {
    background: rgba(255, 255, 255, 0.5);
    /* border: none; */
    height: 32px;
    border-radius: 4px;
    /* box-shadow: 0 8px 6px -6px #555; */
    justify-content: inherit;
}

    .select .select-input {
        height: 27px;
        line-height: 2.4rem;
    }

    .input input {
        height: 30px;
    }

    .select.multiple {
        height: auto;
        min-height: 30px;
        min-width: 100px;
        margin-right: 34px;
    }

        .select.multiple .select-input {
            height: auto;
            min-height: 30px;
            margin-right: 34px;
        }

    .select .option-list a {
        height: 30px;
        line-height: 30px;
    }

    .select .dropdown-toggle {
        width: 30px;
        height: 30px;
    }

    .input .button {
        height: 28px;
    }

    input:focus,
    textarea:focus {
        background: white;
        box-shadow: none;
    }

.w-A4 {
    width: 210mm;
}

.w-A3 {
    width: 320mm;
}

.h-A4 {
    height: 297mm;
}

.h-A3 {
    height: 420mm;
}

.hidden {
    display: none !important;
    visibility: hidden !important;
}

.display {
    display: block !important;
    visibility: visible !important;
}

.label-title {
    font-weight: normal;
}

.label-big-title {
    font-weight: 550;
    font-size: 14px;
}

.badge {
    background-color: transparent;
    color: #1a79bf;
}

.li-max {
    height: max-content !important;
}

.pointer {
    cursor: pointer;
}

.imgs-grid .imgs-grid-image .view-all:after {
    display: inline-block;
    content: "";
    vertical-align: middle;
    height: 100%;
}

.imgs-grid .imgs-grid-image .view-all .view-all-text {
    position: relative;
    font-size: 13px !important;
    font-family: var(--font-family) !important;
    color: white;
    display: inline-block;
}

.imgs-grid .imgs-grid-image:before {
    background-color: transparent !important;
}

.highlight-item {
    background-color: rgb(250 250 89 / 45%);
}

.dettagli {
    padding-top: 15px;
}

@media screen and (min-width: 768px) {
    .cell-md-three-quarter, .col-md-three-quarter {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 67%;
        flex: 0 0 67%;
        max-width: 67%;
    }
}

.file, .input, .select, .spinner, .tag-input, .textarea, input[type=datetime-local], input[type=email], input[type=file], input[type=month], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=time], input[type=url], input[type=week], select, textarea {
    height: auto;
}

#wrapper {
    /*max-width: 246px;*/
    margin: 0px auto;
    /*padding-top: 50px;*/
}

#control-content #wrapper .field-validation-error {
    color: red;
}

/* For Success state */
.e-float-input.e-success label.e-float-text,
.e-float-input.e-success input:focus ~ label.e-float-text,
.e-float-input.e-success input:valid ~ label.e-float-text {
    color: #22b24b !important;
}

.e-input-picture::before {
    content: ''; /*\e335*/
    font-family: e-icons;
}

.bootstrap4 .e-input-picture:before {
    content: '\e776';
}

dl, ul, ol {
    list-style-position: outside;
    margin-left: 20px;
}

    dl.circle, ul.circle, ol.circle {
        list-style-type: circle;
    }

/* Chips shown next to product names in views Products and Marketplace. */
.card-chip {
    color: white !important;
    cursor: text !important;
    margin-left: 0 !important;
    -moz-user-select: text !important; /* Make text inside chip selectable. */
    -webkit-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    max-width: 100px;
}

.card-chip-2 {
    color: white !important;
    margin-left: 0 !important;
    font-size: 10px !important;
    padding: 0 5px !important;
    height: 20px !important;
    border-radius: 15px !important;
    max-width: 100px;
}

.chip-attachment {
    background-color: brown !important;
}

.chip-tag {
    background-color: #ffb700 !important;
}

.chip-product {
    background-color: palegreen !important;
    color: black !important;
}

.chip-tool {
    background-color: papayawhip !important;
    color: black !important;
}

.chip-material {
    background-color: burlywood !important;
    color: darkslategray !important;
}

.chip-equipment {
    background-color: palegoldenrod !important;
    color: black !important;
}

.chip-consumable {
    background-color: mistyrose !important;
    color: black !important;
}

.chip-service {
    background-color: mediumvioletred !important;
}

.chip-subscription {
    background-color: rebeccapurple !important;
}

.chip-rental {
    background-color: blueviolet !important;
}

.chip-machine {
    background-color: darkgray !important;
}

.chip-asset {
    background-color: lightgray !important;
    color: black !important;
}

.chip-vehicle {
    background-color: gray !important;
}

.chip-container {
    background-color: yellow !important;
    color: black !important;
}

.chip-residue {
    background-color: chocolate !important;
}

/* app EnelX-DA */
.chip-enelx {
    background-color: #461e7d !important;
    color: white !important;
}

/* Emulate Syncfusion label style. */
.syncfusion-label {
    font-size: 13px;
    font-family: inherit;
    color: rgba(0, 0, 0, 0.42);
}

.shadowOnHover:hover {
    box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 15%);
}

.shadowOnHover-2:hover {
    box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.19), 0 8px 17px 0 rgba(0, 0, 0, 0.2) !important;
}

.borderedShadowedCard {
    border: 2px solid green !important;
    box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 15%);
}

.hover:hover {
    background-color: #f5f5f5;
}

.gradientHeader {
    background-image: linear-gradient(to right, #1e88e5, #00bcd4);
}

.map {
    height: 100%;
    width: 100%;
}

.e-roundedCheckbox .e-frame {
    border-radius: 100% !important;
}

/* Start of conversations (chats) section. */

#conversationPosts {
    background-color: #fcf5eb;
}

    #conversationPosts .msgBox {
        padding: 5px;
        border-radius: 5px;
        font-size: 13px;
        max-width: 250px;
        margin-top: 2px;
        margin-bottom: 2px;
        overflow-wrap: break-word;
    }

    #conversationPosts .myMsg {
        background-color: #e1ffd8;
        margin-right: 10px;
        align-self: flex-end;
    }

    #conversationPosts .friendMsg {
        background-color: white;
        margin-left: 10px;
        align-self: flex-start;
    }

    #conversationPosts .dateMark {
        background-color: bisque;
        align-self: center;
    }

    #conversationPosts .unreadCheck {
        color: #aaa;
    }

    #conversationPosts .readCheck {
        color: #01bff0;
    }

    /* This should be enough to handle all non-pathologic cases. */
    #conversationPosts .msgBox p, #conversationsList div[id^="lastMessageText-"] p {
        margin: 0;
    }

.unreadBadge {
    margin-left: 5px;
    padding: 2px;
    color: white;
    background-color: #ff9800;
    border-radius: 5px;
    line-height: 14px;
    font-size: 12px;
}

.attachmentBox {
    font-size: small;
    padding: 4px;
    margin: 2px;
    background-color: burlywood;
    border-radius: 5px;
}

/* From https://stackoverflow.com/a/7033508 */
.verticalTruncate {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.chatIcon {
    position: fixed;
    bottom: 10px;
    right: 10px;
    cursor: pointer;
    color: #59BCAF;
    z-index: 1000;
}

.chatBadge {
    right: 10px;
    bottom: 35px;
    position: fixed;
    background-color: #ff9800;
    color: white;
    border-radius: 5px;
    font-size: small;
    line-height: 15px;
    padding: 2px;
}

.chatPanel {
    position: fixed;
    width: 350px;
    right: 5px;
    bottom: 5px;
    background-color: white;
    border-radius: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 10;
}

.chatHeader {
    color: white;
    background-color: #59BCAF;
}

#filterConversationsList {
    color: white;
}

    #filterConversationsList::placeholder {
        color: #ffffffab;
    }

.connectionStatus {
    position: absolute;
    left: 30px;
    bottom: 4px;
}

.fa-1e5x {
    font-size: 1.2em;
}

#fileSection .e-upload {
    border: 1px solid #59BCAF;
}

/* End of conversations (chats) section. */

.hubspotColor-fg {
    color: #ff7a59;
}

.hubspotColor-bg {
    background-color: #ff7a59;
}

.lm-darkGrey-fg {
    color: #515151 !important;
}

.lm-darkGrey-bg {
    background-color: #515151 !important;
}

.lm-icon {
    color: #59BCAF !important;
    cursor: pointer !important;
}

.lm-link {
    color: #59BCAF !important;
    text-decoration: underline !important;
    cursor: pointer !important;
}

    .lm-link:hover {
        color: #59BCAF !important;
    }

.lm-grey-bg {
    background-color: #f5f5f5 !important;
}

.lm-textGray {
    color: #8E8E8E !important;
}

.lm-graySquare {
    width: 35px;
    height: 35px;
    background: #BBBBBB;
}

.e-radio:checked + label::before {
    border-color: #59BCAF !important;
}

.e-radio:checked + label::after {
    color: #59BCAF !important;
    background-color: #59BCAF !important;
}

.e-input-focus {
    border-color: #59BCAF !important;
    box-shadow: unset !important;
}

/* Big checkbox with gray border. */
.e-checkbox-wrapper .e-frame {
    height: 35px !important;
    width: 35px !important;
    border-color: #BBBBBB !important;
    line-height: 35px !important;
}

    /* Green background color with white icon when checked. */
    .e-checkbox-wrapper .e-frame.e-check, .e-checkbox-wrapper:hover .e-frame.e-check, .e-checkbox-wrapper .e-checkbox:focus + .e-frame.e-check {
        background-color: #59BCAF !important;
        border-color: #59BCAF !important;
        color: white !important;
    }

/* Center the check mark inside the checkbox. */
.e-icons.e-frame.e-check {
    padding: 0 !important;
}

/* Big radio button. */
.e-radio + label::before {
    height: 30px !important;
    width: 30px !important;
}

.e-radio + label::after {
    top: 9px !important;
    left: 9px !important;
    height: 12px !important;
    width: 12px !important;
}

.e-radio + label .e-label {
    top: 7px;
    position: relative;
    margin-left: 10px;
}

.e-grid .e-groupdroparea, .e-grid .e-groupdroparea.e-grouped {
    background-color: #59BCAF !important;
    color: white !important;
}

.e-grid .e-groupheadercell {
    background-color: #00897b !important;
}

/* Make checkboxes inside grids smaller. */
.e-headercell .e-checkbox-wrapper .e-frame, .e-rowcell.e-gridchkbox .e-checkbox-wrapper .e-frame {
    height: 20px !important;
    width: 20px !important;
    border-color: #BBBBBB !important;
    line-height: 20px !important;
}

/* Make checkboxes inside dropdowns smaller. */
.e-list-item .e-checkbox-wrapper .e-frame {
    height: 20px !important;
    width: 20px !important;
    border-color: #BBBBBB !important;
    line-height: 20px !important;
}

.e-groupcaption {
    font-size: 20px !important;
}

.lm-cb {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #bbbbbb;
    border-radius: 1px;
    cursor: pointer;
}

.lm-cb:checked {
    background-color: #59BCAF !important;
    border: none;
}

.lm-cb::before {
    display: block;
    content: "";
    width: 18px;
    height: 18px;
    clip-path: polygon(48% 65%, 76% 26%, 91% 31%, 52% 83%, 20% 64%, 28% 52%);
    background-color: white;
}

.e-calendar .e-today span.e-day {
    border-color: #59BCAF !important;
    color: #59BCAF !important;
}

.e-calendar .e-selected span.e-day {
    background-color: #59BCAF !important;
    color: white !important;
}

.e-daterangepicker.e-popup .e-footer {
    display: none !important;
}

.e-calendar .e-today.e-btn.e-flat.e-primary {
    color: #59BCAF !important;
}

.e-calendar .e-today.e-btn.e-flat.e-primary:hover {
    background-color: #eee !important;
}

.therapy {
    border-radius: 10px;
    width: 100%;
    display: block;
}

.therapy:hover {
    text-decoration: none;
}

.therapy-consultation {
    background-color: purple;
    color: white;
}

.therapy-planned {
    background-color: blue;
    color: white;
}

.therapy-notscheduled {
    background-color: orange;
    color: black;
}

.therapy-scheduled {
    background-color: green;
    color: white;
}

.therapy-closed {
    background-color: black;
    color: white;
}

.therapy-consultation:hover, .therapy-planned:hover, .therapy-closed:hover, .therapy-scheduled:hover {
    color: white;
}

.therapy-notscheduled:hover {
    color: black;
}
