﻿:root {
    /*h1, h2, h3, h4, h5, h6*/
    --hx-color: white;
    --p-color: #1d3557;
    --a-color: #757575;
    --a-color-hover: #bdbdbd;
    --icon-color: #0078d4;
    --icon-color-hover: #8d969e;
    --bg-body: #f7f7f7;
    --bg-navbar: #0078d4;
    --bg-sidebar: #f3f2f1;
    --bg-sidepanel: #f0f0f0;
    --bg-footer: #bdbdbd;
    --bg-primary: #eff2f1;
    --bg-secondary: #cecece;
    --bg-light: white;
    --text-secondary: #e8e8e8;
    --text-alternative: #d6d8db;
    --text-color-navbar: #76818c;
    --border-navbar: #0078d4;
    --border-sidebar: #6492a9;
    --border-sidepanel: #b0b0b0;
    --breakpoint-xs: 0;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --width-sidebar: 300px;
    --width-sidepanel: 300px;
    --height-navbar: 48.5px;
    --height-footer: 60px;
    --height-navbar-full: 55px;
    --breadcrumb-active: #445ee8;
    --breadcrumb-done: #36ce36;
    --breadcrumb-hover: #7b7b7b;
    --breadcrumb-bg: #939393;
}

.material-icons {
    font-size: inherit !important;
}


/* Main
-------------------------------------------------- */
html {
    font-size: 14px;
    position: relative;
    height: 100%;
}

body {
    background-color: var(--bg-body);
    height: 100%;
}

.content-container {
    width: 100%;
    height: calc(100% - calc(var(--height-navbar)));
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--h1-color);
}

p {
    color: var(--p-color);
}

a {
    color: var(--a-color);
}

    a:hover {
        color: var(--a-color-hover);
    }

ul {
}

.navbar {
    background-color: var(--bg-navbar);
    color: var(--text-color-navbar);
    border-bottom: 1px solid var(--border-navbar);
    height: var(--height-navbar);
}

.footer {
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: var(--height-footer); /* Vertically center the text there */
    background-color: var(--bg-footer);
    color: var(--text-secondary);
}

.sidepanel-right {
    border-left: 1px solid var(--border-sidepanel);
}

.sidepanel {
    width: var(--width-sidepanel);
}

/* Side Panel For Small Device */
@media (max-width: 1200px) {
    .sidepanel {
        display: none;
        float: left;
        position: absolute;
        z-index: 3;
        width: var(--width-sidepanel) !important;
        top: 0;
        background: var(--bg-sidepanel);
    }

    .sidepanel-icon {
        display: block;
        z-index: 3;
        text-align: center;
        padding-top: 3px;
        width: 28px;
        height: 28px;
        color: var(--a-color);
        background: var(--bg-sidepanel);
        position: absolute;
        margin-top: 70px;
        top: 0px;
    }

    .lefticon {
        color: var(--border-sidepanel);
        left: 0px;
        border-radius: 0px 5px 5px 0px;
        border-top: 1px solid var(--border-sidepanel);
        border-bottom: 1px solid var(--border-sidepanel);
        border-right: 1px solid var(--border-sidepanel);
    }

    .lefticon-clicked {
        left: var(--width-sidepanel);
    }

    .righticon {
        color: var(--border-sidepanel);
        right: 0px;
        border-radius: 5px 0px 0px 5px;
        border-top: 1px solid var(--border-sidepanel);
        border-bottom: 1px solid var(--border-sidepanel);
        border-left: 1px solid var(--border-sidepanel);
    }

    .righticon-clicked {
        right: var(--width-sidepanel);
    }

        .lefticon-clicked i, .righticon-clicked i {
            transform: rotate( 180deg );
            transition: 0.25s transform;
        }

    .leftpanel {
        left: 0px;
        display: block;
        border-right: 1px solid var(--border-sidepanel);
        margin-left: 0px;
    }

    .rightpanel {
        right: 0px;
        display: block;
    }
}
/* SIDE PANEL PER DISPOSITIVI GRANDI */
@media (min-width: 1200px) {

    .lefticon, .righticon {
        display: none !important;
    }

    .sidepanel {
        display: block;
        height: 100%;
        float: left;
        background: var(--bg-sidepanel);
        position: inherit;
    }
}

.bg-none {
    background: transparent;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

/*

    CHIAMATE VELOCI

*/
.calls-list {
    /*background-color: var(--bg-secondary)*/
}

.call {
    padding: .5rem;
    margin: .5rem;
    border-radius: .25rem;
    height: 75px;
}

    .call label {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        margin-bottom: 0px;
    }

.call-secondary {
    background-color: gray;
    color: white;
}

    .call-secondary:hover {
        background-color: dimgray;
    }

.call-warning {
    background-color: yellow;
}

    .call-warning:hover {
        background-color: orange;
    }

.call-danger {
    background-color: #c73a3a;
    color: white !important;
}

    .call-danger:hover {
        background-color: #8a1515;
    }

.user-row {
    font-size: 16px;
}

/* Sidebar */
#wrapper .close:before {
    content: "\e109";
}

.title-header {
    text-align: center;
    font-size: 18px;
    padding: 15px;
}

.e-sidebar {
    background-color: var(--bg-sidebar) !important;
}

    .e-sidebar .title-header .close {
        color: var(--icon-color);
        cursor: pointer;
        line-height: 25px;
    }

        .e-sidebar .title-header .close:hover {
            color: var(--icon-color-hover);
            cursor: pointer;
            line-height: 25px;
        }

    .e-sidebar.e-left .title-header .close {
        float: right;
    }

    .e-sidebar.e-right .title-header .close {
        float: left;
    }


/* List Group*/

.list-group-item {
    background: transparent;
    border: none;
}


/*

    SIDEPANEL OVERFLOW SYSTEM

*/

/* a container with flex-direction column */
.main-container {
    height: calc(50vh - (var(--height-navbar) / 2));
    display: flex;
    flex-direction: column;
}

/* an arbitrary container of fixed height */
.fixed-container {
    padding: 10px;
    padding-right: 20px; /* il doppio per via un problema del width con la textbox*/
    border-bottom: 1px solid var(--border-sidepanel);
}

/* this is the flex container that will take the rest of the height */
.content-wrapper {
    display: flex;
    flex: 1;
    min-height: 0px; /* IMPORTANT: you need this for non-chrome browsers */
    border-bottom: 1px solid var(--border-sidepanel);
}

/* the container for our overflowed content */
.overflow-container {
    flex: 1;
    overflow: auto;
}

#listOperators .e-listview-checkbox {
    display: none;
}

#listOperators .e-list-wrapper {
    padding-top: 5px;
    padding-bottom: 5px;
}

#listOperators .e-avatar {
    top: 9px !important;
}

#listOperators .e-active {
    background-color: var(--text-alternative) !important;
}

.search-bar {
    margin-bottom: 0px !important;
    height: 35px !important;
    padding: 0px !important;
    border-bottom: 0px solid var(--border-sidepanel) !important;
    border-radius: 10px !important;
    background: var(--text-alternative) !important;
    padding-left: 10px !important;
}

    .search-bar:hover {
        /*background: var(--text-alternative) !important;*/
    }

#loader {
    color: #008cff;
    height: 40px;
    width: 30%;
    position: absolute;
    top: 45%;
    left: 45%;
}

.tab {
    display: none;
}

.show-tab {
}


.form-tab-button {
    border: 1px solid;
    background: white;
    color: #0078d4;
    padding: 6px;
}

.form-tab-button-active {
    border: 1px solid #0078d4;
    background: #0078d4;
    color: white;
    padding: 6px;
}

.form-tab-button:hover {
    border: 1px solid;
    background: #0078d4;
    color: white;
    padding: 6px;
}

.mh-100 {
    max-height: 100% !important;
}

@media (max-width: 576px) {
    .w-sm-100 {
        width: 100% !important;
    }

    .h-sm-100 {
        height: 100% !important;
    }

    .mh-sm-100 {
        max-height: 100% !important;
    }
}

@media (max-width: 768px) {
    .w-md-100 {
        width: 100% !important;
    }

    .mw-md-100 {
        max-width: 100% !important;
    }

    .h-md-100 {
        height: 100% !important;
    }

    .mh-md-100 {
        max-height: 100% !important;
    }

    .fixed-md-top {
        position: fixed;
        top: 0px;
        left: 0px;
        height: 100%;
        width: 100%;
    }
}

.modal-cs {
    position: fixed;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    background: #1111113b;
    /*display: none;*/
    z-index: 3000;
    transition: .25s left;
}

    .modal-cs .modal-cs-content {
        height: 100%;
        background: white;
    }

    .modal-cs.show {
        /*display: block;*/
        left: 0%;
    }

    .modal-cs .modal-cs-header {
        display: flex;
    }

    .modal-cs.zoom.show .modal-cs-content {
        /*display: block;*/
        left: 0%;
    }

@media (min-width: 768px) {

    .modal-cs-md-none {
        position: inherit !important;
        top: 0;
        left: 0;
        width: auto;
        height: auto;
        background: inherit;
        z-index: inherit;
        display: block;
    }

        .modal-cs-md-none .modal-cs-content {
            /*-ms-transform: scale(0);*/ /* IE 9 */
            /*-webkit-transform: scale(0);*/ /* Safari 3-8 */
            /*transform: scale(0);*/
            position: inherit !important;
            top: 0;
            left: 0;
            width: auto;
            height: auto;
            background: inherit;
            display: block;
        }

        .modal-cs-md-none .modal-cs-header {
            display: none;
        }
}

/*

    CUSTOMIZATION SYNCFUSION

*/

/*
    FIELD AND COMBOBOX
*/

.no-icon .e-search-icon {
    display: none !important;
}

.full-height-container {
    height: calc(100vh - var(--height-navbar));
}

.full-height-row {
    height: calc(100vh - var(--height-navbar));
}

.full-height-col {
    height: calc(100vh - var(--height-navbar));
}

.small-btn {
    height: 25px;
    width: 25px;
    line-height: 25px;
    border: 0px;
    font-size: 14px;
}

.e-view {
    bottom: 0;
    left: 0;
    overflow: hidden;
    position: absolute;
    right: 0;
    top: 0;
}

#doc-body-container {
    position: absolute !important;
    top: var(--height-navbar);
    overflow-x: hidden;
}

.icon-form {
    width: 20px;
    height: 20px;
    text-align: center;
}



/*

    OPPORUNITY

*/

.breadcrumb ul {
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: 100%;
    list-style: none;
}

.breadcrumb li {
    float: left;
}

.breadcrumb button {
    background: var(--breadcrumb-bg);
    padding: .7em 1em;
    float: left;
    text-decoration: none;
    text-shadow: 0 1px 0 rgba(255,255,255,.5);
    position: relative;
    color: white;
    font-weight: 400;
    width: 100%;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    border: 1px solid transparent;
    font-size: 1rem;
    border-radius: .25rem;
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.breadcrumb li:first-child button {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

.breadcrumb li:last-child button {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.breadcrumb button.done {
    background: var(--breadcrumb-done);
    color: white;
}

.breadcrumb li:not(:last-child) > button.done::after {
    border-left-color: var(--breadcrumb-done);
}

.breadcrumb li:not(:first-child) > button.done::before {
    border-color: var(--breadcrumb-done) var(--breadcrumb-done) var(--breadcrumb-done) transparent;
}

.breadcrumb button.active {
    background: var(--breadcrumb-active);
}

.breadcrumb li:not(:last-child) > button.active::after {
    border-left-color: var(--breadcrumb-active);
}

.breadcrumb li:not(:first-child) > button.active::before {
    border-color: var(--breadcrumb-active) var(--breadcrumb-active) var(--breadcrumb-active) transparent;
}

.breadcrumb button:hover:not(.active) {
    background: var(--breadcrumb-hover);
}

.breadcrumb li:not(:first-child) > button:hover:not(.active)::before {
    border-color: var(--breadcrumb-hover) var(--breadcrumb-hover) var(--breadcrumb-hover) transparent;
}

.breadcrumb li:not(:last-child) > button:hover:not(.active)::after {
    border-left-color: var(--breadcrumb-hover);
}

.breadcrumb li:not(:first-child) > button::before {
    content: "";
    position: absolute;
    top: 50%;
    margin-top: -1.5em;
    border-width: 1.5em 0 1.5em 1em;
    border-style: solid;
    border-color: var(--breadcrumb-bg) var(--breadcrumb-bg) var(--breadcrumb-bg) transparent;
    left: -1em;
}

.breadcrumb li:not(:last-child) > button::after {
    content: "";
    position: absolute;
    top: 50%;
    margin-top: -1.5em;
    border-top: 1.5em solid transparent;
    border-bottom: 1.5em solid transparent;
    border-left: 1em solid var(--breadcrumb-bg);
    right: -1em;
}

.wrap-field {
    display: flex;
    align-items: center;
}

    .wrap-field .wrap-check {
        height: 100%;
        border: 1px solid #c2c2c2;
        border-right: 0px;
        width: 40px;
        display: flex;
        align-content: center;
        align-items: center;
        border-radius: 5px 0px 0px 5px;
        border-right: 0px;
    }

        .wrap-field .wrap-check label {
            margin: auto;
        }

    .wrap-field .wrap-input {
        margin: 0px !important;
        border-radius: 0px 5px 5px 0px !important;
    }

        .wrap-field .wrap-input label::before {
            border-radius: 0px !important;
        }

/* FIREFOX SCROLLBAR */
.style-scrollbar {
    scrollbar-width: thin;
}

    /* CHROME SCROLLBAR */

    .style-scrollbar::-webkit-scrollbar {
        width: 6px; /* width of the entire scrollbar */
    }

    .style-scrollbar::-webkit-scrollbar-track {
        background: #f1f1f1; /* color of the tracking area */
    }

    .style-scrollbar::-webkit-scrollbar-thumb {
        background-color: #c1c1c1; /* color of the scroll thumb */
        b /* roundness of the scroll thumb */
        /* creates padding around scroll thumb */
    }

/*
    Syncfusion INPUT
*/

.e-dropdownbase .e-list-group-item {
    background-color: blue;
}

.cs-combobox {
}

    .cs-combobox.caret-hide .e-input-group-icon {
        display: none !important;
    }

.cs-dropdown {
}

    .cs-dropdown.caret-hide .e-input-group-icon {
        display: none !important;
    }

    .cs-dropdown .value-icon {
        width: 100%;
        text-align: center;
        line-height: 30px;
    }


/* PREVIEW */

.success-animation {
}

.checkmark {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #258ea6;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #258ea6;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
    margin: 0 auto;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #258ea6;
    fill: #258ea60A;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}


.btn-icon {
    font-size: 21px;
    padding: 0px;
    height: 30px;
    width: 30px;
}

.btn-navbar {
    width: var(--height-navbar);
    height: var(--height-navbar);
    line-height: 35.5px;
}

.dock {
}

    .dock .nav-link {
        color: var(--bs-white);
        height: 100%;
    }

    .dock .nav-item {
        height: var(--height-navbar);
        width: var(--height-navbar);
    }

        .dock .nav-item:hover {
            background-color: var(--bs-light) !important;
        }

            .dock .nav-item:hover .nav-link:not([class*="active"]) {
                color: var(--bs-secondary) !important;
            }

.e-list-item .e-active {
    background: var(--bg-secondary);
    color: var(--bg-white);
}



/*#region MODAL PUNTOSISTEMI */
.modal-ps {
    display: none; /* Hidden by default */
    align-items: center;
    position: fixed; /* Stay in place */
    z-index: 4500; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

    .modal-ps.show {
        display: flex;
    }

.modal-ps-header {
    display: flex;
    align-items: center;
    padding-bottom: 15px;
}

.modal-ps-content {
    margin: auto;
    padding: 15px;
    border: 1px solid #888;
    width: 100%;
    height: 100%;
    max-width: 500px;
    max-height: 400px;
    background: var(--bs-white);
    border-radius: 9px;
    display: flex;
    flex-direction: column;
}

.modal-ps-body {
    flex: 1;
    overflow: auto;
}

.btn-ps-square {
    width: 30px;
    height: 30px;
    font-size: 24px !important;
    padding: 0px;
    border: 0px;
    border-radius: 3px;
    color: var(--bs-gray-600);
    background: var(--bs-white);
}

    .btn-ps-square:hover {
        background: var(--bs-light);
        transition: 0.25s background;
    }

.btn-ps-close {
    margin-left: auto;
    margin-right: -6px;
    margin-top: -6px;
}



/*#endregion */


/*#region DROPDOWN MENU CUSTOM*/

.drop-group .drop-menu {
    display: none;
    padding: 12px;
    background: white;
    border: 1px solid var(--bs-gray-500);
    border-radius: 4px;
    box-shadow: 0px 0px 35px -18px;
}

.drop-group.show .drop-menu {
    display: block;
    position: absolute;
    z-index: 1000;
}

.drop-group.show .dropdown-back {
    background: #fff0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    height: 100%;
}

.dropdown-cs {
    position: fixed;
    z-index: 999;
    background: white;
    padding: 12px;
    border: 1px solid;
    border-radius: 4px;
    box-shadow: 0px 0px 20px -4px;
    display: none;
    z-index: 1000;
}

    .dropdown-cs.show {
        display: block;
    }

.backdrop-cs {
    background: #fff0;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
}

@media(max-width: 768px) {
    .dropdown-cs.full-screen-md {
        width: 100% !important;
        height: 100%;
        top: 0 !important;
        left: 0 !important;
    }
}

/*#endregion*/
