/*
    Site base style.
    Summary:
    0. Body
    1. Loading
    2. Fix for layout
    3. Modals
    4. Profile Image
    5. Roles Config
    6. Animations
    7. Navbar
    8. Table User List
    9. Table Company List
    10. Key Definition
    11. System
*/

/**********************/

/*** 0 Body ***/

/**********************/
html {
    height: 100%;
}

body {
}

/* FIX PER MODAL */
body.modal-open.has-scroll {
    width: 100%;
    overflow-y: scroll;
    position: fixed;
}

body.modal-open .main {
    z-index: -1;
    position: relative;
}

body.modal-open .app-footer {
    position: relative;
}

/* FINE FIX PER MODAL */

.messagedialog {
    padding-right: 0px !important;
    z-index: 9999;
}

.lateral-charm-right,
.lateral-charm-left {
    margin-right: 0px !important;
}

.noselect {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently supported by Chrome and Opera */
}

.truncate {
    /*  Se non è possibile impostare una larghezza si imposta una larghezza nel padre e 100% ai figli
    */
    width: 100px;
    white-space: nowrap;
    overflow: hidden;
    /*Va bene qualunque valore tranne visible*/
    text-overflow: ellipsis;
}

.top-buffer {
    margin-top: 5px;
}

[data-toggle="collapse"] .fa:before {
    content: "\f139";
}

[data-toggle="collapse"].collapsed .fa:before {
    content: "\f13a";
}

/**********************/

/*** 1 Loading ***/

/**********************/

.loading-animation {
    margin: 100px auto 0 -42px;
    position: absolute;
    top: 40%;
    left: 50%;
    width: 125px;
    height: 95px;
    text-align: center;
    background-image: url("../../images/loading.gif");
    background-size: 125px 95px;
}

.loading-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    background: rgba(8, 8, 8, 0.2);
    top: 0;
    left: 0;
    text-align: center;
    z-index: 15000;
    transition: display 0.3s linear;
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
}

.loading .bullet {
    position: absolute;
    padding: 5px;
    border-radius: 50%;
    background: #187da0;
    -webkit-animation: animIn 1s ease-in-out 0s infinite;
    animation: animIn 1s ease-in-out 0s infinite;
}

.loading .bullet:nth-child(1) {
    -webkit-animation-delay: 0s;
    animation-delay: 0s;
}

.loading .bullet:nth-child(2) {
    -webkit-animation-delay: 0.15s;
    animation-delay: 0.15s;
}

.loading .bullet:nth-child(3) {
    -webkit-animation-delay: 0.3s;
    animation-delay: 0.3s;
}

.loading .bullet:nth-child(4) {
    -webkit-animation-delay: 0.45s;
    animation-delay: 0.45s;
}

.sk-chase {
    width: 50px;
    height: 50px;
    position: relative;
    animation: sk-chase 2.5s infinite linear both;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -50px 0px 0px -50px;
}

.sk-chase-dot {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    animation: sk-chase-dot 2s infinite ease-in-out both;
}

.sk-chase-dot:before {
    content: "";
    display: block;
    width: 25%;
    height: 25%;
    background-color: #1b8eb7;
    border-radius: 100%;
    animation: sk-chase-dot-before 2s infinite ease-in-out both;
}

.sk-chase-dot:nth-child(1) {
    animation-delay: -1.1s;
}
.sk-chase-dot:nth-child(2) {
    animation-delay: -1s;
}
.sk-chase-dot:nth-child(3) {
    animation-delay: -0.9s;
}
.sk-chase-dot:nth-child(4) {
    animation-delay: -0.8s;
}
.sk-chase-dot:nth-child(5) {
    animation-delay: -0.7s;
}
.sk-chase-dot:nth-child(6) {
    animation-delay: -0.6s;
}
.sk-chase-dot:nth-child(1):before {
    animation-delay: -1.1s;
}
.sk-chase-dot:nth-child(2):before {
    animation-delay: -1s;
}
.sk-chase-dot:nth-child(3):before {
    animation-delay: -0.9s;
}
.sk-chase-dot:nth-child(4):before {
    animation-delay: -0.8s;
}
.sk-chase-dot:nth-child(5):before {
    animation-delay: -0.7s;
}
.sk-chase-dot:nth-child(6):before {
    animation-delay: -0.6s;
}

@keyframes sk-chase {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes sk-chase-dot {
    80%,
    100% {
        transform: rotate(360deg);
    }
}

@keyframes sk-chase-dot-before {
    50% {
        transform: scale(0.4);
    }
    100%,
    0% {
        transform: scale(1);
    }
}

.galileoFormShow {
    overflow: hidden;
    -moz-transition: 0.2s;
    -ms-transition: 0.2s;
    -o-transition: 0.2s;
    -webkit-transition: 0.2s;
    transition: 0.2s;
}

.galileoFormShow.ng-hide {
    height: 0px;
}

@-webkit-keyframes animIn {
    0% {
        -webkit-transform: translateX(-100px);
        transform: translateX(-100px);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        -webkit-transform: translateX(100px);
        transform: translateX(100px);
        opacity: 0;
    }
}

@keyframes animIn {
    0% {
        -webkit-transform: translateX(-100px);
        transform: translateX(-100px);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        -webkit-transform: translateX(100px);
        transform: translateX(100px);
        opacity: 0;
    }
}

/*
  Allow angular.js to be loaded in body, hiding cloaked elements until
  templates compile.  The !important is important given that there may be
  other selectors that are more specific or come later and might alter display.
 */

[ng\:cloak],
[ng-cloak],
[data-ng-cloak],
[x-ng-cloak],
.ng-cloak,
.x-ng-cloak {
    display: none !important;
}

.custom-display-none {
    display: none;
}

.nowrap {
    white-space: nowrap !important;
}

.fadein,
.fadeout {
    -webkit-transition: all cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s;
    -moz-transition: all cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s;
    -o-transition: all cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s;
    -ms-transition: all cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s;
    transition: all cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s;
}

.fadein.ng-hide-remove,
.fadeout.ng-hide-add.ng-hide-add-active {
    -ms-opacity: 0;
    opacity: 0;
    display: block !important;
}

.fadeout.ng-hide-add,
.fadein.ng-hide-remove.ng-hide-remove-active {
    -ms-opacity: 1;
    opacity: 1;
    display: block !important;
}

/*Modal Delle Versioni*/

.sele {
    background-color: black;
}

#statebutton:focus {
    outline: 0;
}

/**********************/

/*** 2 Fix for layout ***/

/**********************/

.app {
    height: 100%;
}

.last-modal-element {
    padding-bottom: 1rem;
    margin-bottom: 0 !important;
}

.card-header {
    border-radius: 0.25rem 0.25rem 0 0;
}

/*Modal Delle Versioni*/

#LabelVersion {
    border: 0;
    background-color: #f0f3f5;
    color: #20a8d8;
}

#LabelVersion:hover {
    color: #167495;
    text-decoration: underline;
}

.budget-modal #modalversion {
    max-width: 650px;
    width: 650px;
}

.budget-modal #modalversion .modal-header {
    background-color: #20a8d8;
    color: white;
}

.budget-modal #modalversion .modal-header .modal-title {
    margin-left: 6px;
}

#modalbody thead {
    border-width: 1px;
    border-color: #a4b7c1;
    border-style: solid;
}

#modalbody4 thead {
    border-width: 1px;
    border-color: #a4b7c1;
    border-style: solid;
}

#modalbody4 thead {
    border-width: 1px;
    border-color: #a4b7c1;
    border-style: solid;
}

#closebutton {
    background-color: #20a8d8;
    color: white;
}

.budget-modal #modalversion .modal-content tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05);
}

.budget-modal #modalversion .modal-content tr:nth-of-type(1) {
    font-weight: bold;
}

.budget-modal #modalversion .modal-content tr:nth-of-type(1):hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.budget-modal #modalversion .modal-content tr:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.budget-modal #modalversion .modal-content tr {
    border-width: 1px;
    border-color: #a4b7c1;
    border-style: solid;
}

.budget-modal #modalversion .modal-content td {
    border-left: 1px solid #a4b7c1;
    border-right: 1px solid #a4b7c1;
}

.budget-modal #modalversion .modal-content th {
    border-left: 1px solid #a4b7c1;
    border-right: 1px solid #a4b7c1;
    border-bottom: 1px solid #a4b7c1;
}

@media (max-width: 991.98px) {
    .nav.navbar-nav.ml-auto.d-md-down-none {
        display: flex !important;
    }

    .app-header.navbar .navbar-brand {
        left: 0;
        margin-left: 7vw;
    }
}

@media (max-width: 600px) {
    .none-when-little {
        display: none;
    }
}

@media (max-width: 520px) {
    .app-header.navbar .navbar-brand {
        left: 0;
        margin-left: 9vw;
    }
}

@media (max-width: 370px) {
    .app-header.navbar .navbar-brand {
        left: 0;
        margin-left: 17vw;
        width: 70px;
    }

    .nav-item.dropdown.pr-4 {
        padding-right: 0rem !important;
    }
}

.not-licensed {
    display: none;
}

.is-licensed {
    display: block;
}

tr.no-top-border > td {
    border-top: 0px !important;
}

tr.no-bottom-border > td {
    border-bottom: 0px !important;
}

.ag-body-viewport .ps__rail-x,
.ag-body-viewport .ps__rail-y {
    z-index: 100;
}

.ps__thumb-y {
    min-height: 0.5rem;
}

.ag-body-viewport {
    position: relative;
}

#dropdownSetting {
    cursor: pointer;
}

.animationIf.ng-enter,
.animationIf.ng-leave {
    -webkit-transition: opacity ease-in-out 1s;
    -moz-transition: opacity ease-in-out 1s;
    -ms-transition: opacity ease-in-out 1s;
    -o-transition: opacity ease-in-out 1s;
    transition: opacity ease-in-out 1s;
}
.animationIf.ng-enter,
.animationIf.ng-leave.ng-leave-active {
    opacity: 0;
}
.animationIf.ng-leave,
.animationIf.ng-enter.ng-enter-active {
    opacity: 1;
}

.no-spinners {
    -moz-appearance: textfield;
}

.no-spinners::-webkit-outer-spin-button,
.no-spinners::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/**********************/
/*** 3 Modals       ***/
/**********************/

.budget-modal > .modal-dialog.modal-primary {
    max-height: calc(100vh - 3.5rem);
    min-height: 350px;
}

.budget-modal > .modal-dialog.modal-primary > .modal-content {
    height: 100%;
    max-height: inherit;
    min-height: inherit;
}

.budget-modal .modal-header {
    height: 59px;
    min-height: 59px;
}

.budget-modal .modal-footer {
    height: 60px;
    min-height: 60px;
}

.budget-modal .modal-header > i {
    font-size: 1.09rem;
    margin-right: 16px;
    margin-left: 8px;
}

.budget-modal .disabled-button {
    cursor: not-allowed;
}

.budget-modal .normalcursor {
    cursor: pointer;
}

.budget-modal .modal-body {
    padding-left: 20px;
    padding-right: 20px;
    max-height: calc(100vh - 3.5rem - 127px);
    min-height: 231px;
    overflow: hidden;
    position: relative;
}

.budget-modal .modal-body > div {
    max-height: 573px;
    overflow: initial;
}

#versionFooter {
    text-align: center;
}

h4 {
    font-weight: 600 !important;
}

#versionFooter #lastVersion {
    border-style: solid;
    border-width: 1px;
}

/***********************/

/*** 4 Profile Image ***/

/***********************/

.profile-image-background-hover:hover {
    opacity: 0.3;
}

.profile-image-background {
    opacity: 1;
    transition: 0.5s ease;
    backface-visibility: hidden;
}

@media (min-width: 992px) {
    .profile-image-background {
        text-align: right !important;
    }
}

/**********************/

/*** 5 Roles Config ***/

/**********************/

#role-configuration #companies-select {
    position: absolute;
    display: inline;
    width: 200px;
    top: 5px;
    margin-left: 1.5rem;
}

div.orgChart h2 {
    padding-right: 35px !important;
}

/**********************/

/*** 6. Animations ***/

/**********************/

@-webkit-keyframes flashing {
    from {
        background-color: red;
    }
    to {
        background-color: inherit;
    }
}

@-moz-keyframes flashing {
    from {
        background-color: red;
    }
    to {
        background-color: inherit;
    }
}

@-o-keyframes flashing {
    from {
        background-color: red;
    }
    to {
        background-color: inherit;
    }
}

@keyframes flashing {
    from {
        background-color: red;
    }
    to {
        background-color: inherit;
    }
}

.flashing {
    -webkit-animation: flashing 3s 1; /* Safari 4+ */
    -moz-animation: flashing 3s 1; /* Fx 5+ */
    -o-animation: flashing 3s 1; /* Opera 12+ */
    animation: flashing 3s 1; /* IE 10+ */
}

.modal-open .popover-header {
    color: white;
    background-color: #20a8d8;
}

/**********************/

/***   7. Navbar    ***/

/**********************/

.navbar-company-list {
    max-height: 244px;
    overflow-y: hidden; /*scroll;*/
}

#navbar-company-label {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    max-width: calc(100vw - 850px);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.btn {
    transition: all 0.5s !important;
}

.btn.enabled.btn-primary {
    background-color: #4abf73 !important;
}

.btn.enabled:not(.btn-primary) {
    background-color: #abdfff !important;
}

.btn[disabled]:not(.btn-primary) {
    color: #7c8082 !important;
}

.btn[disabled] {
    pointer-events: none;
}

.none {
    display: none;
}

@media (max-width: 991.98px) {
    #navbar-company-label {
        max-width: calc(100vw - 490px - 7vw);
    }
}

@media (max-width: 600px) {
    #navbar-company-label {
        max-width: calc(100vw - 340px - 7vw);
    }
}

/******************************/

/***   8. Table User List   ***/

/******************************/

#users {
    overflow-y: hidden;
}

#importERP {
    background-color: #f0f3f5;
    border-color: #c2cfd6;
    color: #424242;
}

#companies-select {
    flex: none;
    margin-top: 0.3rem;
}

#hidVersionOrganizationCharts ~ div {
    display: inline;
    position: relative;
    margin-left: 0;
    margin-right: 1rem;
}

#hidVersionOrganizationCharts ~ div ~ div {
    display: inline;
    position: relative;
    margin-left: 0;
    margin-right: 1rem;
}

#addUserModal .input-group-text {
    background-color: #20a8d8;
    color: white;
}

#totaltableps {
    height: calc(100vh - 390px);
    min-height: 250px;
    overflow: hidden;
    position: relative;
}

.profile-user-pic {
    height: 40px;
    width: 40px;
}

#addUserModal {
    overflow-y: hidden !important;
    height: 100vh;
}

#addUserModal .modal-content {
    width: 500px;
}

#show-add-to-version span:not(:hover) {
    color: #656d71;
}

/*********************************/

/***   8. Table Company List   ***/

/*********************************/

#searchhCompany {
    display: inline-block;
    flex: 1 1 auto;
    max-width: 675px;
    min-width: 200px;
}

#searchhCompany ~ div {
    border-left: 0px;
    border-color: #c2cfd6;
}

.spanresponsive {
    cursor: pointer;
}

#headertabella {
    background-color: white;
    max-height: 500px;
    margin-bottom: 0px;
}

#totaltablepscompanies {
    height: calc(100vh - 349px);
    min-height: 250px;
    overflow: hidden;
    position: relative;
    border-bottom: 0 !important;
}

#addnewmodal {
    overflow-y: hidden !important;
}

#updatemodal {
    overflow-y: hidden !important;
}

#modalbody {
    overflow: auto;
    padding-left: 20px;
}

#infpers0Update div.form-group.row {
    display: block;
}

#infpers0Update div.form-group.row {
    background-color: white;
}

.modal-sm > .modal-content {
    max-width: 20vw;
    margin: 1.75rem auto;
}

.modal-sm > .modal-content {
    max-width: 50vw;
    margin: 1.75rem auto;
}

#readonlyinputcompany {
    display: block;
    width: 50%;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgb(62, 81, 91);
    background-color: rgb(255, 255, 255);
    background-clip: padding-box;
    border: 1px solid rgb(194, 207, 214);
    border-radius: 0px;
    transition-duration: 0.15s, 0.15s;
    transition-timing-function: ease-in-out, ease-in-out;
    transition-property: border-color, box-shadow;
}

#buttonaddnewresponsive {
    margin-left: auto;
}

.margin-left-auto {
    margin-left: auto;
}

.cursor-pointer {
    cursor: pointer;
}

@media (max-width: 1382px) {
    .btn-modify-company {
        margin-bottom: 2px;
    }
}

@media (max-width: 697px) {
    #buttonaddnewresponsive {
        float: left;
    }
}

@media (max-width: 934px) {
    .spanresponsive {
        display: block;
    }
}

.glyphicon-chevron-right:before {
    content: "\e080";
}

/*---------------------------------------------------------------------------*/

/******************************/
/***   10. Key Definition   ***/
/******************************/

#key-definition .name-input {
    width: 130px;
    margin-left: 1rem;
}

#key-definition .name {
    padding-bottom: 1rem;
}

#key-definition .correlation {
    padding-top: 0.2rem;
}

#key-definition .correlation > label {
    margin-bottom: 0 !important;
}

#key-definition .query > .card-body {
    padding: 0.4rem;
}

#key-definition .query > .card-header {
    padding: 0.45rem 1.25rem !important;
    line-height: 1.5rem;
    background-color: #f5f5f5;
}

#key-definition .query.card {
    margin-bottom: 0 !important;
}

#key-definition .key-content {
    width: 100%;
}

#key-definition .query-input {
    display: block;
    width: 100%;
    height: 150px;
}

#key-definition .correlation label.switch {
    margin-bottom: 0 !important;
}

#key-definition .name .nav-link::after {
    color: #5a5a5a;
}

#key-definition .flag-icon {
    line-height: unset !important;
}

#key-definition .query textarea {
    border-radius: 0.25rem;
    resize: none;
    padding: 0.1rem 0.3rem;
}

#key-definition .icon-close {
    font-size: 17px;
    margin-top: -3px;
}

#key-definition .input-group-prepend .input-group-text {
    border-radius: 0.25rem 0 0 0.25rem;
    background-color: #f5f5f5;
}

#key-definition .input-group-append .input-group-text {
    border-radius: 0 0.25rem 0.25rem 0;
    background-color: #f5f5f5;
}

#key-definition .correlation .input-group-prepend {
    flex: 1;
}

#key-definition .correlation .input-group-prepend .input-group-text {
    width: 100%;
    border-right: 0;
}

#key-definition .correlation .input-group-append .input-group-text {
    border-left: 0;
}

#key-definition .key-definition-title {
    line-height: 1.8rem;
    padding-right: 0.25rem;
    padding-left: 0.5rem;
}

#key-definition select.company-select {
    width: 230px;
    flex: none;
}

#key-definition select.application-type {
    width: 120px;
    flex: none;
}

#key-definition select.key-list {
    width: 150px;
    flex: none;
}

#key-definition .name .form-group .input-group-append .input-group-text > a {
    display: inline !important;
    padding: 0 !important;
}

#key-definition .flag-icon {
    font-size: 18px;
}

#key-definition .delete-keys {
    margin-right: 2rem;
}

@media (min-width: 768px) {
    #key-definition .name {
        width: 290px;
        position: absolute;
        left: 0;
        top: 0;
    }

    #key-definition .query {
        margin-left: 310px;
    }
}
/*********************/
/***   11 System   ***/
/*********************/

#system-container .input-group-prepend.icon-fix .input-group-text {
    width: 42px;
}

#system-container .input-group-prepend.icon-fix .input-group-text i {
    margin: auto;
}
.center-modal .modal-lg {
    max-width: 90vw !important;
}

.center-modal .modal-dialog {
    max-width: 90vw !important;
}

/**************************/
/***   12 New Archive   ***/
/**************************/

#new-archive .new-archive-company {
    line-height: 1.8rem;
    padding-right: 1rem;
    padding-left: 0.5rem;
}

#new-archive .new-archive-version {
    line-height: 1.8rem;
    padding-right: 1rem;
    padding-left: 0.5rem;
    margin-left: 20px;
}

#new-archive select.company-select,
#new-archive select.version-select {
    width: 250px;
    flex: none;
}

#addArchivesForm .input-group-text {
    width: 42px;
}

#new-version-card {
    height: calc(100vh - 251px);
    overflow: hidden;
}

.slide.ng-hide-add,
.slide.ng-hide-remove {
    transition: transform 0.75s ease-in-out;
}

.slide.ng-hide-add {
    transform: translateX(0%);
}
.moving-forward .slide.ng-hide-add.ng-hide-add-active,
.moving-backward .slide.ng-hide-remove {
    transform: translateX(-110%);
}
.moving-forward .slide.ng-hide-remove,
.moving-backward .slide.ng-hide-add.ng-hide-add-active {
    transform: translateX(110%);
}
.slide.ng-hide-remove.ng-hide-remove-active {
    transform: translateX(0%);
}

/**************************/
/***   13 Select2 Fix   ***/
/**************************/

.select2 {
    display: block !important;
    flex: 1 1 0;
}

.select2-selection__clear {
    line-height: 1.25;
}

.modal-window .select2-container {
    z-index: 1100;
}

.select2-input-modal {
    z-index: 1080;
}

/*****************************/
/***   14 Insert Version   ***/
/*****************************/

.bs-placeholder {
    color: inherit !important;
}

/****************************/
/***   15 Versions List   ***/
/****************************/

/**********************/
/***   15.1 Table   ***/
/**********************/

#versions-table {
    height: calc(100vh - 500px);
}

/*\
 * .table-fit identifies a table that may
 * accept .row and .col-n classes on tr
 * and th/td respectively.
 *
 * It's different from .table-responsive
 * because the latter applies scroll on
 * the x axis when the table overflows.
 *
 * .table-fit integrates with
 * .table-bordered seemlessly.
\*/

.table-fit {
    display: inline-block;
}
.table-fit > tbody,
.table-fit > thead,
.table-fit > tfoot {
    display: block;
}
.table-fit > tbody {
    min-height: 15rem;
}

.table-fit td,
.table-fit th {
    display: flex;
    align-items: center;
    justify-content: center;
}

.table-bordered.table-fit td,
.table-bordered.table-fit th {
    border: 0;
    border-right: 1px solid #a4b7c1;
}

.table-bordered.table-fit td:last-child,
.table-bordered.table-fit th:last-child {
    border-right: 0;
}

.table-bordered.table-fit tr {
    border: 0;
    margin-left: 0;
    margin-right: 0;
    border-bottom: 1px solid #a4b7c1;
}

.table-bordered.table-fit > tfoot {
    border-top: 1px solid #a4b7c1;
}

.table-bordered.table-fit > tfoot > tr {
    border-bottom: 0;
}

/**********************/
/***   15.2 Modal   ***/
/**********************/

#editmodal fieldset {
    padding: 1rem;
    border: 1px solid #c2cfd6;
    border-radius: 5px;
}

#editmodal legend {
    font-size: 1em;
    width: auto;
    padding: 0 0.5rem;
}

/*******************************/
/***   16 Detail Row Modal   ***/
/*******************************/

.flip {
    -moz-transform: scale(-1, 1);
    -webkit-transform: scale(-1, 1);
    -o-transform: scale(-1, 1);
    -ms-transform: scale(-1, 1);
    transform: scale(-1, 1);
}

.row-detail-table input,
.fixed-decimals input {
    font-size: inherit;
    /*padding-bottom: 0.5rem;*/
    padding: 0.5rem 0.75rem;
    opacity: 0;
    z-index: 10;
    background-color: white;
    cursor: pointer;
}

.row-detail-table input.ng-invalid {
    opacity: 1;
    border-color: red;
    box-shadow: red 0px 0px 1.5px 1px;
}

.row-detail-table input:focus,
.fixed-decimals input:focus {
    color: inherit;
    opacity: 1;
    cursor: text;
}
.row-detail-table input:focus + .formatted-input {
    overflow: hidden;
}

.formatted-input {
    padding: 0.5rem;
    z-index: 0;
}

input::-ms-clear {
    display: none;
}

.row-detail-first-year {
    background-color: #ffe8e0;
}

.row-detail-second-year {
    background-color: #ecfaf4;
}

.row-detail-year {
    padding: 0px !important;
    border-bottom: 0px !important;
    text-align: center !important;
    font-weight: bold;
}

#simulator-row-detail th,
#simulator-row-detail td {
    vertical-align: middle;
}

#simulator-row-detail td {
    padding: 0rem;
}

#simulator-row-detail th,
#simulator-row-detail td > div,
#simulator-row-detail .row-detail-perc td {
    padding: 0.5rem;
}

#simulator-row-detail td:last-child > div {
    padding-right: 0px;
}

#row-detail-months th:last-child,
#row-detail-months th:first-child {
    min-width: 140px;
}

#simulator-row-detail td:last-child {
    padding-right: 1rem;
}

#simulator-row-detail tbody {
    border-bottom: 2px solid #a4b7c1;
}

#simulator-row-detail thead {
    border-top: 2px solid #a4b7c1;
}

/**************************/
/***   17 Pin utility   ***/
/**************************/

.pin {
    top: 0;
    left: 0;
}

.pin-right {
    right: 0;
}

.pin-left {
    left: 0;
}

.pin-top {
    top: 0;
}

.pin-bottom {
    bottom: 0;
}

/*****************************/
/***   18 Center utility   ***/
/*****************************/

.center-absolute {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.vertical-center-absolute {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.horizontal-center-absolute {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/*******************************/
/***   19 Overflow utility   ***/
/*******************************/

.overflow-hidden {
    overflow: hidden;
}

.overflow-x-hidden {
    overflow-x: hidden;
}

/********************************/
/***   20 Min width utility   ***/
/********************************/

.min-w-0 {
    min-width: 0;
}

.w-15 {
    width: 15rem !important;
}

.min-h-0 {
    min-height: 0px !important;
}

.h-0 {
    height: 0px;
}

/**************************************************/
/***   21 IE11 fix for flex-direction: column   ***/
/**************************************************/

.flex-column .col-12,
.flex-column-reverse .col-12 {
    flex: 1 1 auto;
}

/*\
 * This is actually the same as the rule above,
 * but less implicit and more specific. Refactoring
 * to the latter would be wise.
\*/

.flex-auto {
    flex: auto;
}

/*********************************************/
/***   22 Clients, Items and Association   ***/
/*********************************************/

#customers-table {
    height: calc(100vh - 648px);
}

#items-table {
    height: calc(100vh - 648px);
}

#items-list,
#customers-list {
    /*height: calc(100vh - 471px);*/
    min-height: calc(100vh - 474px);
    height: calc(100vh - 474px);
}

@media all and (min-width: 1200px) {
    #customers-table {
        height: calc(100vh - 415px);
    }

    #items-table {
        height: calc(100vh - 415px);
    }

    #goodsNature-table {
        height: calc(100vh - 415px);
    }
}

#customers-selected,
#items-selected {
    min-height: calc(100vh - 465px);
    height: calc(100vh - 465px);
}

#copyItem,
#copyCustomer {
    max-height: 200px;
}

/************************************/
/***   23 Bootstrap Select Hide   ***/
/************************************/

select.hide-while-loading {
    opacity: 0;
    max-height: 35px;
}

.bg-white .dropdown-toggle {
    background: white;
}

/******************************/
/***   24 Dynamic Filters   ***/
/******************************/

#query-list-table {
    height: calc(100vh - 666px);
}

#widgets-list-table {
    height: calc(100vh - 734px);
}

.filters-visible #widgets-list-table {
    height: calc(100vh - 794px);
}

#active-widgets-list {
    height: calc(100vh - 688px);
}

@media all and (min-width: 1200px) {
    #query-list-table {
        height: calc(100vh - 415px);
    }

    #widgets-list-table {
        height: calc(100vh - 406px);
    }

    .filters-visible #widgets-list-table {
        height: calc(100vh - 466px);
    }

    #active-widgets-list {
        height: calc(100vh - 360px);
    }
}

#widgets-preview-modal > .modal-dialog {
    min-height: auto;
    max-width: 800px;
}

#widgets-preview-modal-body {
    min-height: auto;
}

[id^="aggregations-table-"] {
    height: calc(100vh - 514px);
}

.disabled-color {
    background-color: #c2cfd6;
    opacity: 1;
}

.btn-widget:hover {
    background-color: transparent;
    color: #4dbd74;
    border-color: #3a9d5d;
    box-shadow: 0 0 0 0.2rem rgba(77, 189, 116, 0.5);
}

.row-collapse {
    width: 0.1px !important;
    height: 0.1px !important;
    border: 0 !important;
    display: table-caption;
    overflow: hidden;
}

.row-collapse td,
.row-collapse th {
    border: 0 !important;
}

#select-query-modal-head {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0 !important;
}

#select-query-modal-body {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    padding: 0px !important;
    min-height: 0px !important;
}

.bg-white-transparent {
    background-color: rgba(255, 255, 255, 0.75);
}

#select-query-modal-table {
    border: 1px solid lightgrey;
    margin-bottom: 0px !important;
}

/*************************************/
/***   25 Dynamic Filters Layout   ***/
/*************************************/

.separated-left::before {
    content: "";
    position: absolute;
    top: -0.5rem;
    left: -0.5rem;
    border-left: 1px solid rgba(0, 0, 0, 0.2);
    height: calc(100% + 1rem);
}

.separated-top {
    margin-top: 1rem;
}

.separated-top::after {
    content: "";
    position: absolute;
    top: -0.5rem;
    left: -0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    width: calc(100% + 1rem);
}

.dropdown-menu .text-muted {
    font-family: monospace;
    font-size: 100%;
    order: -1;
    margin: auto;
    margin-right: 10px;
}

.dropdown-menu span.text {
    display: inline-flex !important;
}

.modal-window .dropdown-menu {
    z-index: 1105;
}

/**************************************/
/***   26 Override Core-UI Styles   ***/
/**************************************/

/*\
 * `.app-body` is passed as popup parent to ag-grid.
 * This fix is necessary for correct position calculation.
 * Possible alternative would be using the body as parent,
 * which however means that the footer could be covered by
 * the popup menu.
\*/
.header-fixed .app-body {
    margin-top: 0px;
    padding-top: 55px;
}

.card:first-of-type {
    margin-top: 24px;
}

/*\
 * Avoid scroll chaining on iPad
\*/
.main {
    overflow-y: auto;
}

/*****************************/
/***   27 Copyable Badge   ***/
/*****************************/

.copyable-badge {
    position: relative;
    cursor: pointer;
    min-width: 2rem;
}

.copyable-badge::after {
    content: "Copy";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    line-height: 1rem;
    opacity: 0;
    color: initial;
}

.copyable-badge:hover {
    color: rgba(0, 0, 0, 0);
}

.copyable-badge:hover::after {
    opacity: 1;
}

.modal.in .modal-dialog {
    -webkit-transform: translate(0, 0);
    transform: translate(0, 0);
}

.ag-menu {
    /* original z-index was 5, which is less than the perfect scrollbar z-index of 100: 5 --> 500 */
    /* Lo usiamo anche in un modale: 500 --> 1050 */
    z-index: 1050 !important;
}

#matrix-grid {
    height: calc(100vh - 250px);
}

#neutral-items-grid {
    height: calc(100vh - 292px);
}

#neutral-items-grid [class*="ag-row-group-indent"] {
    padding-left: 0;
    margin-left: 0;
}

#alternative-items-filter .select2-container {
    z-index: 10;
}

#alternative-items-filter ul {
    max-height: 3rem;
    overflow-y: auto;
}

#alternative-items-filter li {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

option:disabled {
    background-color: #f0f3f5;
}

.word-break-all {
    word-break: break-all;
}

.z-index-minus-5 {
    z-index: -5 !important;
}

.ag-body-viewport {
    position: relative;
}

.ag-theme-balham .ag-cell-range-selected-1:not(.ag-cell-focus) {
    background-color: rgba(0, 145, 234, 0.3) !important;
}

.ag-theme-balham .ag-cell {
    border-right: 1px dashed #aaa !important;
}

/*********************/
/* BUDGET NAVIGATION */
/*********************/

#budget-navigation-main {
    /* The bar must be at the top but it's right below an
     * element with a bottom margin of 1.5rem. Undoing that */
    position: relative;
    /* The bar should span the whole width but it's inside a
     * .container-fluid. Undoing that */
    margin: 0 -30px;
    padding: 0 30px;
}

.breadcrumb {
    /* align budget navigation and breadcrumb */
    padding-left: 30px;
}

.border-rounded {
    border-radius: 5px;
}

#recap-grid {
    height: calc(100vh - 385px);
}

.w-modal-75 {
    max-width: 75% !important;
}

.w-modal-50 {
    max-width: 50% !important;
}

.w-modal-40 {
    max-width: 40% !important;
}

.sidebar-nav > i {
    pointer-events: none;
}

/*********************/
/*   MULTI SELECT 2  */
/*********************/

.select2-results__option[aria-selected="true"] {
    background-color: #eeeeee !important;
}

.select2-results__option--highlighted[aria-selected="true"] {
    background-color: #337ab7 !important;
}

.full-width-filters .w-auto {
    width: 100% !important;
}

#extractions-table {
    height: calc(100vh - 503px);
    min-height: 10rem;
}

/*********************/
/*   Currency modal  */
/*********************/

#currencies-table {
    height: calc(100vh - 382px);
    min-height: 250px;
    overflow: hidden;
    position: relative;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.currency-input {
    border: 0px;
    background-color: transparent;
    outline: none;
    height: 100%;
    width: 100%;
    margin: 10px;
    text-align: right;
}

.mt-24 {
    margin-top: 24px;
}

.editable-currency-cell {
    height: 45px;
    background-color: #d3eef6;
}

.currency-color {
    background-color: #d3eef6;
    font-weight: bold;
}

.medium-modal > .modal-dialog {
    max-width: 500px !important;
}

#role-table {
    max-height: calc(100vh - 281px);
    min-height: 250px;
}

.flex-right {
    display: flex;
    justify-content: flex-end;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.min-h-auto {
    min-height: auto !important;
}

.summary-header {
    vertical-align: middle;
    text-align: center;
}

.summary-header-STN-data {
    width: 9%;
}

.summary-header-FRC-data {
    width: 9%;
}

.summary-header,
.summary-cell {
    vertical-align: middle !important;
    padding: 0rem !important;
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

.text-center {
    text-align: center !important;
}

#version-update-dropdown {
    height: 150px;
    width: 185px;
    overflow-y: auto;
}

.dropdown-choosen-button {
    width: 158px;
    overflow: ellipsis;
}

.dropdown-button {
    height: 169px;
    width: 185px;
    overflow-y: auto;
}

.slighty-higher {
    min-height: 331px !important;
}

.w-50 {
    width: 50% !important;
}
.m-0-auto {
    margin: 0 auto !important;
}

.squashed {
    visibility: hidden !important;
    height: 0px !important;
    margin: 0px !important;
    padding: 0px !important;
    border: 0px !important;
}

.error-cell {
    background-color: #ad0000 !important;
}

.mild-error-cell {
    background-color: lightgoldenrodyellow !important;
}

.disabled-cell {
    background-color: lightgrey !important;
}

.pointer-none {
    pointer-events: none;
}

.agg-tooltip-bkgr {
    color: #3e515b;
    background: #f5f7f7;
}

.agg-tooltip-bordered {
    border: 1px solid #c2cfd6;
}

.agg-tooltip {
    line-height: 1;
    margin: 0.5rem;
    padding-left: 0px;
    padding-bottom: 0px;
    padding-right: 0px;
    padding-top: 0.5rem;
}

.sales-simulator {
    overflow: hidden;
    height: calc(100vh - 25.75rem);
    min-height: 300px;
    margin: 0 1rem 1rem 1rem;
}

.association-multiple-selected {
    min-height: calc(100vh - 465px);
    height: calc(100vh - 465px);
}

.word-wrap-break {
    word-wrap: break-word;
}

.ui-draggable > .modal-content {
    max-width: fit-content !important;
}

.modal-sm > .modal-content {
    min-width: 20vw !important;
}

.modal-content.ui-resizable {
    min-width: 20vw !important;
}

[treecontrol] li {
    line-height: 21px !important;
}
