:root {
    --bluebase: #007bff;
    --bluebase-light: #007bff33;
}

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
    background-color: #e30b17;
}

::-webkit-scrollbar-track {
    border-radius: 5px;
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #e30b17;
    border-radius: 5px;
    border: 2px solid transparent;
    background-clip: content-box;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    opacity: 0;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #e30b1760;
}

::-webkit-scrollbar-thumb:active {
    background-color: #e30b17;
}

::-webkit-scrollbar-button {
    display: none !important;
    opacity: 0;
    width: 0px;
    height: 0px;
    background: transparent;
    border: none;
}

* { 
    scrollbar-width: thin;
    scrollbar-color: #e30b17, transparent;
    user-select: none;
}

*:not(i) {
    font-family: "Poppins", serif;
    font-optical-sizing: auto;
    font-weight: 100;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    text-overflow: ellipsis;
    transition: all 0.3s linear;
}


body {
    overflow: hidden;
    /* background-color: #212529; */
}

header {
    color: white;
    background-color: #000;
}

.btn-my {
    color: #fff;
    border-radius: 20px;
    padding: 0;
    width: 30px;
    height: 30px;
    font-size: 12px;
}

.dates {
    font-size: 12px;
    margin-top: 5px;
}

.data-first {
    border-right: dotted 1px #ccc;
}

/* ------------------------------ */
/* pages interaction */
/* ------------------------------ */
.container-fluid.py-4 {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px;
    overflow: hidden;
}

#pages {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 50px);
    overflow: hidden;
    position: relative;
    perspective: 1200px;
    top: 50px;
    /*background-color: #333;*/
}

.dpage {
    flex: 1;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    padding: 10px;
    overflow: auto;
    padding-top: 30px;
    z-index: 1;
    padding-bottom: 50px;
    transition: opacity 500ms ease, transform 500ms ease;
    transform: scale(1);
    display: none;
}

.dpage.active {
    display: block;
    opacity:1;
    transform: scale(1);
    z-index: 10;
}

.dpage.zoom-out {
    opacity: 0;
    transform: scale(0.7);
    display: block;
}

.dpage.zoom-in {
    opacity: 0.7;
    transform: scale(0.7);
    display: block;
}

@keyframes slideOutUp {
    25% {
        opacity: 0.6;
        transform: translateZ(-100px);
        border-radius: 20px;
        font-size: 16vw;
    }

    75% {
        opacity: 0.6;
        transform: translateZ(-100px) translateY(-200%);
        border-radius: 20px;
    }

    100% {
        opacity: 0.6;
        transform: translateZ(-100px) translateY(-200%);
    }
}

@keyframes slideInUp {
    0%, 25% {
        transform: translateZ(-100px) translateY(200%);
        border-radius: 20px;
        background-color: #ccc;
        box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    }
    75% {
        transform: translateZ(-100px);
        border-radius: 20px;
        background-color: #ccc;
        box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    }
    100% {
        border-radius: 0px;
        transform: translateZ(0) translateX(0);
        background-color: #fff;
        box-shadow: none;
    }
}

@keyframes slideOutDown {
    25% {
        transform: translateZ(-100px);
        border-radius: 20px;
        background-color: #ccc;
        box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    }
    75% {
        transform: translateZ(-100px) translateY(200%);
        border-radius: 20px;
        background-color: #ccc;
        box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    }
    100% {
        opacity: 0;
        transform: translateZ(-100px) translateY(200%);
        background-color: #ccc;
        border-radius: 20px;
        box-shadow: none;
    }
}

@keyframes slideInDown {

    0%,
    25% {
        opacity: 0.6;
        transform: translateZ(-100px) translateY(-200%);
        border-radius: 20px;
        font-size: 16vw;
    }

    75% {
        opacity: 0.6;
        transform: translateZ(-100px);
        border-radius: 20px;
    }

    100% {
        opacity: 1;
        transform: translateZ(0) translateX(0);
    }
}

/* ------------------------------ */
/* loader */
/* ------------------------------ */
#loader {
    width: 100vw;
    height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    /* background-color: #373b3e; */
    z-index: 6000;
    position: absolute;
    top: 0;
}
.name {
    max-width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    font-weight: bold;
}
.subname {
    font-size: 10px;
    margin-top: -5px;
}
.graph {
    height: 300px;
}

.ip {
    width: 16em;
    height: 8em;
}

.ip__track {
    stroke: hsl(var(--hue), 90%, 90%);
    transition: stroke var(--trans-dur);
}

.ip__worm1,
.ip__worm2 {
    animation: worm1 2s linear infinite;
}

.ip__worm2 {
    animation-name: worm2;
}

#collection {
    width: 100%;
    overflow: hidden;
    background: url('../img/inserisci_incasso.webp') no-repeat center center;
    background-size: cover;
    border-radius: 10px;
    transition: all 0.5s ease-in !important;
    height: 37%;
    cursor:pointer
}

#collection>div.image {
    background: url(../img/inserisci_incasso_phone.webp);
    background-size: cover;
    width: 65%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
    left: -13%;
    position: relative;
}
#collection>div.text>div.arrows {
    position: relative;
    background: url(../img/inserisci_incasso_arrows.webp);
    width: 35px;
    height: 23px;
    margin-left: 50%;
    margin-top: 10%;
    transform: scale(0.8);
}
#collection>div.text {
    font-size: 120%;
    color: #134d6e;
    position: relative;
    left: 50%;
    top: -75%;
    font-weight: bold;
    line-height: 1.4;
    text-transform: uppercase;
    width: 50%;
}
#collection:hover {
    transition: all 0.5s ease-in !important;
    /*box-shadow: 0 0 10px rgb(0 0 0 / 70%);*/
    transform: scale(1.05);
}
#collection:hover>div.image {
    transform: scale(1.1); 
    transform: rotate(-20deg);
}
#collection:hover>div.text>div.arrows {
    transform: translateX(-20px);
}
#collection:hover>div.text {
    transform: scale(1.1);
}

.bs {
    -webkit-box-shadow: 0px 0px 20px 5px rgba(102, 102, 102, 0.75);
        box-shadow: 0px 0px 20px 5px rgba(102, 102, 102, 0.75);
}
.bs:hover {
    -webkit-box-shadow: 0px 0px 20px 5px rgba(102, 102, 102, 0.75);
    box-shadow: 0px 0px 10px 5px rgba(102, 102, 102, 0.75);
}

.myblk-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 0 auto;
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 10px 0 0 10px;
    overflow-x: scroll;
    user-select: none;
}
.myblk {
    width: 200px;
    border: solid 1px #fff;
    background-color: #fff;
    margin: 0px 10px 5px 0px;
    border-radius: 5px;
    padding: 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    align-items: center;
    height: 80px;
    cursor: pointer;
    user-select: none;
}

.myblk:hover {
    transform: scale(1.1);
    z-index: 500;
}

.myblk.v {
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

  .myblk > div.r
, .myblk-div.r {
    padding-right: 5px;
}

  .myblk>div.l
, .myblk-div.l {
    padding-left: 5px;
}

.myblk-div.r {
    text-align: left;
}

.myblk-div.l {
text-align: right;
}

.myblk-title {
    width: 100%;
    text-align: center;
}

.myblk-content {
    display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-evenly;
        align-items: center;
}

.myblk-danger {
    background-color: #e30b17;
    border-left: solid 5px #ffffff50;
    color: #fff;
}
.myblk-warning {
    border-color: #d77c04;
    border-left: solid 5px #d77c04;
}

.delcollection {
    font-size: 12px ;
}
.delcollection > span {
    font-weight: bold;
}

.tenant_new {
    margin: 0;
    padding: 0%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease-in !important;
}
.tenant_new:hover {
    transition: all 0.5s ease-in !important;
    box-shadow: 0 0 10px rgb(0 0 0 / 70%);
    transform: scale(1.05);
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: hsl(var(--hue), 90%, 5%);
        --fg: hsl(var(--hue), 90%, 95%);
    }

    .ip__track {
        stroke: hsl(var(--hue), 90%, 15%);
    }
}

@keyframes worm1 {
    from {
        stroke-dashoffset: 0;
    }

    50% {
        animation-timing-function: steps(1);
        stroke-dashoffset: -358;
    }

    50.01% {
        animation-timing-function: linear;
        stroke-dashoffset: 358;
    }

    to {
        stroke-dashoffset: 0;
    }
}

@keyframes worm2 {
    from {
        stroke-dashoffset: 358;
    }

    50% {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: -358;
    }
}

/* ------------------------------ */
/* EFFECTS */
/* ------------------------------ */
svg.sound {
    width: 50vw;
    height: 50vh;
    max-width: 100px;
    color: #fff;
}


.vibration {
    animation: vibrate 2s cubic-bezier(.36, .07, .19, .97) infinite;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 300px;
}

@keyframes vibrate {

    0.50%, 10%, 20%, 30%, 40%, 50% {
        -webkit-transform: translate3d(0.5px, 0, 0);
        transform: translate3d(0.5px, 0, 0);
    }

    5%, 15%, 25%, 35%, 45% {
        -webkit-transform: translate3d(-0.5px, 0, 0);
        transform: translate3d(-0.5px, 0, 0);
    }

    100% {
        -webkit-transform: translate3d(0.5px, 0, 0);
        transform: translate3d(0.5px, 0, 0);
    }
}

/* ------------------------------ */
/* NAVBAR */
/* ------------------------------ */
.navbar-brand.service_type {
    max-width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.navbar-toggler.collapsed {
    width: 20%;
    text-align: center;
}

  .navbar-toggler
, .navbar-toggler.collapsed {
    border: none;
    font-size: 12px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

@media (max-width: 768px) {
    .navbar-brand.service_type {
        max-width: 80%;
        font-size: 14px;
    }

    .navbar-toggler.collapsed {
        width: 20%;
    }

    .navbar-toggler.collapsed span {
        font-size: 10px;
    }
}

@media (max-width: 576px) {
    .navbar-brand.service_type {
        max-width: 80%;
        font-size: 12px;
    }

    .navbar-toggler.collapsed {
        width: 20%;
    }

    .navbar-toggler.collapsed span {
        font-size: 8px;
    }
}

/* PREVIEW */
.preview-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.preview {
    position: relative;
    display: inline-block;
}

.preview img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

.preview .remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 14px;
}

.hh {
    display: none !important;
    opacity: 0 !important;
    z-index: 0;
}

.hideMe {
    animation: hideMeAnimation 0s ease-in 5s forwards;
}

@keyframes hideMeAnimation {
    to {
        width: 0;
        height: 0;
        overflow: hidden;
    }
}

/* HEADER UTENTE IN ALTO */
.user-header {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: left;
    z-index: 1030;
    height: 50px;
    display: flex;
    align-items: center;
    padding: 5px 15px;
}

.user-image {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.user-name {
    font-size: 16px;
    font-weight: bold;
}

/* MENU IN BASSO SEMPRE VISIBILE */

a.xbtn {
    position: absolute;
    bottom: 10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    left: calc(50% - 25px);
    font-size: 40px;
    background-color: #fff;
    text-align: center;
    line-height: 1.3;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.3);
}

a.xbtn.active {
    transform: rotate(45deg);
}

/* === Mobile Menu === */
.mobile-menu {
    background: white;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1030;
    padding: 5px 0;
    border-radius: 20px;
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    height: 30px;

    &>ul {
        display: flex;
        list-style: none;
        padding: 0;
        margin: 0;
        gap: 5px;
        justify-content: space-evently;

        &>li.nav-item {
            flex-grow: 1;
            text-align: center;
            overflow: hidden;
            position: relative;

            &>a {
                display: block;
                position: relative;
                color:#555555;


                &>i {
                    font-size: 16px;
                    display: block;
                }

                &>span {
                    display: none;
                }


                /* Linea permanente per .active */
                &.active,
                &:hover {
                    color: #519eb4;
                    transition: all 0.5s linear;
                }
            }
        }
    }
}

.mobile-menu > ul > li.nav-item:first-child {
    margin-left: 10px;
}
.mobile-menu > ul > li.nav-item:last-child {
    margin-right: 10px !important;
}

/* === Tooltip === */
.custom-tooltip {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    color: #519eb4;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 12px;
    pointer-events: none;
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transform: translate(-50%, calc(-25px - 100%));
    font-weight: bold;

    /* Freccia 
    &::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 5px solid transparent;
        border-top-color: rgba(0, 0, 0, 0.9);
    }*/

    /* Stato visibile */
    &.show {
        opacity: 1;
    }
}

sub {
    font-size: 50%;
        bottom: 0;
}

  div.me-0>img
, div.me-3>img {
    width: 30px; 
}

  div.me-0
, div.me-3 {
    font-weight: bold;
    margin-right: 0 !important;
}

div.me-0>img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}
  .data-first>i
, .data-first>span {
    position: absolute;
    right: calc(50% - 12px);
    top: calc(50% - 11px);
    padding: 2px 4px 0px 4px;
    border-radius: 50%;
    font-size: 14px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.data-first>i {
    right: calc(50% - 12px);
}
.data-first>span {
    right: calc(50% - 16px);
}

.closed>.container>.row>.data-first>i {
    background-color: #ffffff;
    color: #ccc;
    border: dotted 1px #ccc;
}

.open>.container>.row>.data-first>i {
    background-color: #ffffff;
    color: #f00;
    border: dotted 1px #ccc;
}

.run>.container>.row>.data-first>i {
    background-color: #ffffff;
    color: #f90;
    border: dotted 1px #ccc;
}
td.green {
    color: green;
    font-weight: bold;
}

td.red {
    color: red;
    font-weight: bold;
}

td.gray {
    color: gray;
    font-weight: bold;
}

.expandable > div.btnG {
    display: none !important;
}
.expanded > div.btnG {
    display: flex !important;
}

.btnG {
    border-top: dotted 1px #ccc;
    padding-top: 10px;
}

.br {
    border-right: 1px dotted #ccc;
}

strong {
    font-weight: bold;
}

h4 {
    margin: 0 0 10px 0;
    font-weight: 300;
}

.list-group {
    margin: 0 0 30px 0;
    box-shadow: var(--bs-box-shadow-sm) !important;
    border-radius: 5px !important;
}
.list-group-item {
    cursor: pointer;
}

.list-group-item:hover {
    background-color: #fff !important;
    /* padding-left: 20px !important;
    font-weight: bold; */
}

.list-group-item.group {
    color: var(--bluebase);
}

.list-group-item.evid {
    background-color: var(--bluebase-light);
}
#alertBox {
    position: absolute;
    display: none;
    align-content: center;
    justify-content: center;
    flex-direction: column;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: #fff;
    border-style: solid;
    border-width: 1px;
}

#alertIcon{
    font-size: 50px;
}

#alertMessage {
    font-size: 20px;
}

#alertButtons {
    min-width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    margin-top: 40px;
}

.alert-success {
    color: #2A9D8F;
    font-weight: bold;
    border-color: #2A9D8F85;
    box-shadow: inset 0px 0px 15px 10px #2A9D8F85;
}

.alert-danger {
    color: #D66853;
    font-weight: bold;
    border-color: #D6685385;
            box-shadow: inset 0px 0px 15px 10px #D6685385;
}

.alert-warning {
    color: #E9C46A;
    font-weight: bold;
    border-color: #E9C46A85;
    box-shadow: inset 0px 0px 15px 10px #E9C46A85;
}
.alert-gray {
    color: #264653;
    font-weight: bold;
    border-color:#26465385;
    box-shadow: inset 0px 0px 15px 10px #26465385;
}

.period.btn-outline-primary {
    border: none;
    border-top: none;
    border-right: none;
    border-radius: 0;
    background-color: transparent;
    color: #ccc;
    border-bottom: solid 1px #ccc;
}
.period.btn-outline-primary:hover {
    color: #000;
    border-bottom: solid 1px #000;
}

.period.btn-warning {
    border: none;
        border-top: none;
        border-right: none;
        border-radius: 0;
        background-color: transparent;
        color: #e76f51;
        border-bottom: solid 1px #e76f51;
}

.btn .icon {
    width: 60px;
    bottom: 0;
}

.btn .icon.icon-left {
    left: 0;
    font-size: 2rem;;
}

.btn .icon.icon-right {
    right: 0;
}

.btn .text {
    width: calc(100% - 60px);
}

.btn .text h4 {
    font-size: 22px;
    margin-bottom: 0;
}

.btn.btn-tertiary .text span {
    color: rgba(255, 255, 255, 0.8);
}

.btn.btn-tertiary {
    color: #fff;
    background: #000;
    border-color: #000;
}
.btn.btn-tertiary:hover {
    zoom:1.3;
    transition: all 1s ease-in;
}