/*FONT*/
@font-face {
    font-family: "globalebold";
    src: url("/assets/fonts/globale-bold-webfont.woff2") format("woff2"),
    url("/assets/fonts/globale-bold-webfont.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "globalebold_italic";
    src: url("/assets/fonts/globale-bolditalic-webfont.woff2") format("woff2"),
    url("/assets/fonts/globale-bolditalic-webfont.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "globaleitalic";
    src: url("/assets/fonts/globale-italic-webfont.woff2") format("woff2"),
    url("/assets/fonts/globale-italic-webfont.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "globaleregular";
    src: url("/assets/fonts/globale-regular-webfont.woff2") format("woff2"),
    url("/assets/fonts/globale-regular-webfont.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
}

/*COLORI*/

:root {
    --azzurro: #0499db !important;
    --grigio: #7b7b7b !important;
    --nero: #000 !important;
    --bianco: #fff !important;
    --grigio-scuro: #333 !important;
    --grigio-chiaro: #eee !important;
    --giallo: #ffbc00 !important;
    --rosso: #ff0000 !important;
    --verde: #91ca43 !important;
    --rosso-custom: #792d2d !important;
    --dark-blue-abbott: #001489 !important;
    --grigio-progress: #4c4c4c !important;
    --grigio-img-screen: #f5f5f5 !important;

    --grigio-bordi-iphone: #dedede !important;


}

body {
    font-family: "globaleregular", sans-serif;
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
    height: 100vh !important;
    min-height: 100vh !important;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
}

html {
    height: 100%;
}

body.allarme-signal-loss,
body.allarme-glucosio-basso,
body.allarme-glucosio-alto {
    height: 100vh;
    overflow-y: hidden;
}

body.diario-eventi {
    background: var(--grigio-chiaro) !important;
}


.topbar {
    background: var(--grigio-chiaro);
    position: fixed;
    top: 0;
    width: 100vw;
}

.topbar + div {
    margin-top: 53px;
}

.navbar #navbar-title,
.topbar .text-center {
    text-transform: lowercase;
}

.navbar #navbar-title:first-letter,
.topbar .text-center:first-letter {
    text-transform: uppercase;
}

body[data-lang="de"][class*="scansione"] .navbar #navbar-title {
    text-transform: none;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

img {
    max-width: 100%;
}

figure {
    margin-bottom: 0;
}

figure.img-contain img {
    object-fit: contain;
    height: 100%;
    width: 100%;
}

figure.img-cover img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.text-right {
    text-align: right !important;
}

.back-btn {
    cursor: pointer;
}

nav.navbar.navbar-expand-lg.navbar-light.bg-light svg {
    width: 17px;
}

/*Pulsanti*/
.fixed-b-row {
    position: fixed;
    width: 100%;
    bottom: 0;
}

.fixed-btn {
    width: 100%;
    border-radius: 7px;
}

.fixed-btn-split {
    width: 50%;
    border-radius: 0 !important;
    float: left;
    border: 1px solid var(--grigio-chiaro);
    margin-bottom: 0 !important;
}

.bordered-btn {
    border: 2px solid #ededed !important;
}

.bordered-btn-azzurro {
    border: 2px solid var(--azzurro) !important;
}

.bordered-btn-black {
    border: 2px solid var(--nero) !important;
}

.btn-100 {
    width: 100%;
}

/*Stili Background*/
.bg-azzurro {
    background-color: var(--azzurro);
    color: var(--bianco) !important;
}

.bg-azzurro.disabled {
    opacity: 1 !important;
    background-color: #5CBCE6;
}

body.ios .bg-azzurro.btn {
    background-color: #4089E1;
}

.bg-bianco {
    background-color: var(--bianco);
}

.bg-grigio {
    background-color: var(--grigio-chiaro);
    /*color: var(--nero) !important;*/
}

.bg-grigio-scuro {
    background-color: var(--grigio-scuro);
    color: var(--bianco) !important;
}

.bg-grigio-2 {
    background-color: var(--grigio);
    color: var(--bianco) !important;
}

.bg-giallo {
    background-color: var(--giallo);
}

.bg-rosso-scuro {
    background-color: var(--rosso-custom);
    color: var(--bianco);
}

.bg-blue-scuro {
    background-color: var(--dark-blue-abbott);
    color: var(--bianco);
}

.bg-blue-scuro:hover {
    background-color: transparent;
    color: var(--dark-blue-abbott);
}

.color-red {
    color: var(--rosso);
}

/*Stili testi*/

a {
    text-decoration: none;
}

.text-grey {
    color: var(--grigio);
}

.text-black {
    color: var(--nero);
}

.text-bianco {
    color: var(--bianco);
}

.text-azzurro {
    color: var(--azzurro);
}

.text-verde {
    color: var(--verde);
}

.text-smaller {
    font-size: 0.9em;
    line-height: 1em
}

.text-smaller-x2 {
    font-size: 0.8em;
    line-height: 1.15em
}

.text-bigger {
    font-size: 6em;
}

.text-3x {
    font-size: 3em;
}

.text-4x {
    font-size: 4em;
}

.text-5x {
    font-size: 5em;
}

.text-azzurro {
    color: var(--azzurro);
}

/*BORDI*/
.bt-grey {
    border-top: 1px solid var(--grigio-chiaro);
}

.bb-grey {
    border-bottom: 1px solid var(--grigio-chiaro);
}

.bb-dark-grey {
    border-bottom: 1px solid rgba(0, 0, 0, .15);
}

/*Form Styling */
input[type="text"].bordered-input, input[type="email"].bordered-input, input[type="password"].bordered-input, textarea {
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid #dedede !important;
    border-radius: 0 !important;
}

input:focus, textarea:focus {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.svg-icons-small {
    width: 18px;
}

.android-navigation-top {
    white-space: nowrap;
    overflow-x: scroll;
    padding: 10px 0;
    text-transform: uppercase;
}

#navbar-main.justify-content-start .navbar-brand {
    width: calc(100vw - 150px);
    padding-left: 5px;
}

#navbar-main.justify-content-start .navbar-brand + div {
    width: 90px;
    text-align: right;
}

#navbarSupportedContent {
    padding: 15px 15px 0;
}

#navbarSupportedContent .nav-link {
    display: grid;
    grid-template-columns: 20px auto;
    column-gap: 10px;
    color: var(--nero)
}

#navbarSupportedContent .nav-item .nav-link span {
    font-size: 1.1rem;
    position: relative;
    top: 0;
}

#navbarSupportedContent .nav-item .nav-link figure {
    margin: 0;
    width: 18px;
    height: 18px;
}

div#navbarSupportedContent.offcanvas {
    top: 54px;
    max-width: 80vw !important;
}

div#navbarSupportedContent_2 {
    position: absolute;
    z-index: 10569;
    background: #fff;
    width: 55%;
    right: 0;
    padding: 20px;
    box-shadow: 10px 6px 18px 2px #999;

}

div#navbarSupportedContent_2 a {
    color: #000000;
}

.offcanvas-backdrop {
    background-color: transparent;
}

.navbar-light .navbar-toggler {
    border: none;
}

.pos-rel {
    position: relative;
}

.btn.btn-with-icon {
    /*display: grid;
    grid-template-columns: 40px auto 40px;
    align-items: center;
    text-align: center;*/
    display: flex;
    justify-content: center;
    align-items: center;
}

.border-grey {
    border: 1px solid var(--grigio);
}

.btn-skip-red,
.btn-skip-red:hover {
    background: var(--dark-blue-abbott);
    border: 2px solid var(--dark-blue-abbott);
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: all .5s;
    font-weight: 500;
}

.btn-skip-red:hover {
    color: var(--dark-blue-abbott);
    background: transparent;
}

/*FLOATING BUTTON */
.btn-group-fab {
    position: fixed;
    width: 50px;
    height: auto;
    right: 20px;
    bottom: 40px;
}

.btn-group-fab div {
    position: relative;
    width: 100%;
    height: auto;
}

.btn-group-fab .btn {
    position: absolute;
    bottom: 30px;
    border-radius: 50%;
    display: block;
    width: 40px;
    height: 40px;
    margin: 4px auto;
}

.btn-group-fab .btn-main {
    width: 50px;
    height: 50px;
    right: 50%;
    margin-right: -25px;
    line-height: 40px;
    z-index: 9;
    box-shadow: 1px 1px 5px #777;
}

.btn-group-fab .btn-main#scansione-sensore-and {
    bottom: 100px !important;
    padding: 0;
}

/*FINE FLOATING BUTTON */

.navbar h2#navbar-title {
    font-size: 19px;
}

.picker-input {
    border: 1px solid;
    height: 30px;
    width: 100px;
    margin-bottom: 30px;
}

.btn.has-shadow {
    box-shadow: 0 3px 7px rgba(0, 0, 0, .2);
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.no-border {
    border: none;
}

.navbar-brand {
    margin-right: 0 !important;
}

body.coloriglucosio.ios .topbar,
body.ilmioglucosio.ios .topbar,
body.andamento-glucosio.ios .topbar {
    box-shadow: none;
}

#popup-scansione, #popup-scansione-completa {
    position: fixed;
    bottom: 5px;
    left: 0;
    z-index: 1000 !important;
}

.floating-container {
    position: relative;

}

.fab-container {
    max-width: 120px;
    text-align: right;
    z-index: 999;
    cursor: pointer;

}

.fab-icon-holder {
    width: 40px;
    height: 40px;
    border-radius: 100%;
    background: var(--dark-blue-abbott);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.fab-icon-holder i {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 18px;
    color: #ffffff;
}

.fab-icon-holder a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 18px;
    color: #ffffff;
}

.fab-icon-holder.fab-icon-holder-inner a {

    font-size: 12px !important;
}

.fab {
    width: 40px;
    height: 40px;
    background: var(--dark-blue-abbott);
}

.fab-options {
    list-style-type: none;
    margin: 0;
    position: absolute;
    bottom: 49px;
    right: -6px;
    opacity: 0;
    transition: all 0.3s ease;
    transform: scale(0);
    transform-origin: 85% bottom;
}

.active-fab {
    opacity: 1;
    transform: scale(1);
}

.fab-options li {
    display: flex;
    justify-content: flex-end;
    padding: 5px;
}

.fab-label {
    padding: 2px 5px;
    align-self: center;
    user-select: none;
    white-space: nowrap;
    border-radius: 3px;
    font-size: 16px;
    background: #666666;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    margin-right: 10px;
}

.initial-fab {
    position: absolute;
    bottom: 40px;
    right: 10px;
}

#draggable ul.align-li-right {
    /*right: -136px;*/
    right: -118px;
}

#draggable ul.align-li-right li {
    flex-direction: row-reverse;
}

#draggable ul.align-li-right li span {
    margin-right: 0;
    margin-left: 10px;
}

#draggable ul.align-li-bottom {
    bottom: -313px !important;
}

.ios-border-button {
    border: 0 !important;
    border-right: 1px solid var(--grigio-chiaro) !important;
    border-radius: 0 !important;
}

.navbar-nav {
    max-height: 100%;
    overflow-y: auto;
}

.navbar {
    display: grid;
    align-items: center;
    column-gap: 20px;
    justify-content: inherit;
}

body.android .navbar {
    grid-template-columns: 40px auto 0;
}

body.ios .navbar {
    grid-template-columns: 40px auto 40px;
}

body.ios .navbar .navbar-brand {
    text-align: center;
}

.navbar .navbar-brand img {
    height: 28px;
    margin-top: -2px;
    max-width: 100% !important;
}

body.android .navbar,
body.android .topbar {
    background-color: #F4F5F6 !important;
}

body.ios .navbar,
body.ios .topbar {
    background-color: #F4F5F6 !important;
}


/* =========== CUSTOM Dettagli diario ========== */
.letturagiallo_misurazionedettdiario {
    background-color: var(--giallo) !important;
    text-align: center;
    padding-top: 0;
    padding-bottom: 0;
}

.letturaverde_misurazionedettdiario {
    background-color: var(--verde) !important;
    text-align: center;
    padding-top: 0;
    padding-bottom: 0;
}

.letturarosso_misurazionedettdiario {
    background-color: var(--rosso) !important;
    text-align: center;
    padding-top: 0;
    padding-bottom: 0;
}

#from-dettaglio {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

#from-dettaglio #measure-info {
    display: grid;
    grid-template-columns: max-content auto;
    align-items: center;
    column-gap: 5px;
}

#from-dettaglio #measure-info strong {
    font-size: 40px;
}

#from-dettaglio #measure-info span {
    line-height: 30px;
    text-align: left;
}

#from-dettaglio #measure-info span figure {
    height: 18px;
    margin-top: 5px;
}

#from-dettaglio #measure-info span figure img {
    object-position: left;
}

.has-shadow {
    box-shadow: 0 3px 7px rgba(0, 0, 0, .2);
}

.modal.simple .modal-content .modal-body strong.fs-1 {
    font-size: 22px !important;
}

body.ios .modal.simple .modal-content {
    border-radius: 0;
    width: 75%;
    margin-left: auto;
    margin-right: auto;
}

body.ios .modal.simple .modal-content .modal-body p:last-child {
    margin-bottom: 0;
}

.modal.simple .modal-footer {
    padding: 0.35rem 0.75rem;
}

.modal.simple .modal-footer .btn-primary {
    background-color: transparent;
    color: var(--azzurro);
    border: 0;
}

body.android .modal.simple .modal-footer {
    border: 0 !important;
}

body.android .modal.simple .modal-footer button {
    text-transform: uppercase;
}

body.ios .modal.simple .modal-footer button {
    color: var(--azzurro);
}

body.ios .modal.simple .modal-footer button {
    border: 0 !important;
    background-color: transparent;
    width: fit-content !important;
}

body.ios .modal.simple .modal-footer.has-primary-btn:not(.has-secondary-btn) button {
    margin: 0 auto;
}

body.ios .modal.simple .modal-footer.has-primary-btn.has-secondary-btn {
    position: relative;
    padding: 0.35rem 0;
}

body.ios .modal.simple .modal-footer.has-primary-btn.has-secondary-btn button {
    width: 50% !important;
    margin: 0;
}

body.ios .modal.simple .modal-footer.has-primary-btn.has-secondary-btn:after {
    height: 100%;
    width: 1px;
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    background-color: #dee2e6;
    content: '';
}

body.ios.home .modal.simple .modal-content, body.ios.allarmi .modal.simple .modal-content {
    text-align: center;
    border-radius: 15px !important;
    background-color: #EEEFEF;
    border: 0;
    width: 75%;
}

body.ios.home .modal.simple .modal-body, body.ios.allarmi .modal.simple .modal-content {
    font-size: 19px;
}

body.ios.home .modal.simple .modal-body p, body.ios.allarmi .modal.simple .modal-content {
    color: var(--grigio);
    margin-top: 5px;
    line-height: 21px;
}


#bottom-buttons {
    padding: 0;
}

#bottom-buttons .btn {
    text-transform: uppercase;
    width: 90%;
    margin: 0 auto;
    display: block;
}

body.ios #bottom-buttons {
    padding: 15px 0;
   left: 12px;
}

body.ios.crea-account #bottom-buttons {
    padding: 15px 0;
    left: 0px;
    /*left: 12px;*/
}

body.ios.crea-account #bottom-buttons {
    padding: 15px 0;
    left: 0;
    /*left: 12px;*/
}

body.ios #bottom-buttons .btn {
    border-radius: 7px;
}

body.ios #bottom-buttons .btn-cancel {
    color: #000;
    background-color: #ccc;
}

body.ios #bottom-buttons .btn-action {
    color: #fff;
    background-color: var(--azzurro);
}

body.ios #bottom-buttons .btn-action.disabled,
body.ios #bottom-buttons .btn-action[disabled] {
    cursor: default;
    background-color: transparent;
    border: 1px solid var(--grigio);
    color: var(--grigio);
}

body.android #bottom-buttons .btn {
    padding: .5rem .75rem;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}

body.android #bottom-buttons .btn-cancel {
    color: #000;
    background-color: #ccc;
}

body.android #bottom-buttons .btn-action {
    color: #fff;
    background-color: var(--azzurro);
}

body.android #bottom-buttons .btn-action.disabled,
body.android #bottom-buttons .btn-action[disabled] {
    cursor: default;
    background-color: var(--grigio);
    color: var(--grigio-scuro);
}

.with-on-content {
    width: fit-content !important;
}

#mobile-mask {
    height: 100%;
}

.app-content {
    padding-bottom: 15px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* CAROUSEL BUTTONS */
.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    margin-right: 3px;
    margin-left: 3px;
    background-color: #aaa;
    background-clip: padding-box;
    border-radius: 50%;
    transition: opacity .5s;
    opacity: .5;
    line-height: 10px;
    border: 0;
}

.carousel-indicators [data-bs-target].active {
    opacity: 1;
}

/* MEDIA FOR DESKTOP */

@media (min-width: 500px) and (min-height: 700px) {
    body,
    body.diario-eventi,
    body[class*="allarme-"] {
        background-color: #666 !important;
        display: grid;
        height: 100vh;
        min-height: 100vh;
        grid-template-columns: 1fr;
        align-items: center;
        padding-bottom: 0 !important;
    }

    #mobile-mask {
        background-color: #fff;
        margin: 0 auto;
        width: 375px;
        max-width: 375px;
        max-height: 700px;
        height: 812px;
        overflow-x: hidden;
        position: relative;
    }

    body[class*="allarme-"] #mobile-mask {
        background-color: #eeeeee !important;
    }

    body.impostazioni-report #mobile-mask,
    body.diario-eventi #mobile-mask {
        background-color: var(--grigio-chiaro);
    }

    body.applica-sensore #mobile-mask,
    body.guida-allarmi #mobile-mask {
        background-color: #F2F4F5;
    }

    .modal,
    .topbar,
    .offcanvas,
    .fixed-b-row {
        position: absolute;
        max-width: 100%;
    }

    .navbar {
        position: inherit;
    }

    .navbar-expand-lg .navbar-toggler {
        display: block;
    }

    div#navbarSupportedContent.offcanvas {
        max-width: 80% !important;
    }

    .min-vh-100, .h-100 {
        min-height: calc(100% - 54px) !important;
        max-height: calc(100% - 54px) !important;
    }

    .modal-content {
        width: 90%;
        margin: 0 5%;
    }

    #share-img img.img-fluid {
        max-width: 100% !important;
    }

    body .min-vw-100 {
        min-width: 100% !important;
    }
}

@media (max-width: 500px) and (max-height: 640px) {
    .carousel-inner img {
        max-width: 60% !important;
    }
}

.dettaglio-applica-sensore, .dettaglio-scansione {
    overflow-y: hidden;
    position: fixed;
}

#signalLossAlarm img {
    position: absolute;
    top: 0;
    z-index: 10596;

}

body.preparazione-sensore {
    min-height: 100%;
    background-color: var(--azzurro);
}

div#signalLossAlarm, div#modal-screen, div#gestione-toni-android, div#ordersensor {

    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    inset: 0;
    min-width: 100%;
    height: 100%;
    z-index: 109678;
    background-size: cover;
}


div#signalLossAlarm img, div#modal-screen img, div#gestione-toni-android img, div#ordersensor img {
    min-width: 100%;
}

/*
div.modal-screen::before {
   content: 'X';
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 24px;
    font-weight: 800;
    background: #000;
    color: #fff;
    padding: 5px 10px;
    cursor: pointer;
    z-index: 12596;
}*/

#fsll-modal .modal-title {
    display: grid;
    grid-template-columns: 17px auto;
    column-gap: 10px;
}

#fsll-modal .modal-title img {
    position: relative;
    top: 7px;
}

@media (min-width: 300px) and (min-height: 700px) {
    body[class*="report-"] .modal-content {
        width: 75%;
        margin: 0 12.5%;
    }
}

.fake-datepicker-label {
    display: block;
    font-size: 12px;
    margin-bottom: 10px;
}

body.android .fake-datepicker-label {
    padding-left: 14px;
}

.bordered-container {
    border-bottom: 1px solid #dedede !important;
}


.bordered-container input {
    border: 0 !important;
}

.addui-input-container {
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    margin-bottom: 15px !important;
    padding-bottom: 0 !important;
}

.addui-input-container input {
    padding: 0 16px !important;
    height: 45px;
    margin-top: 15px !important;
    border-bottom: 0 !important;
}

/*.addui-input-container input,
.blurry-text {
    filter: blur(3px);
    -webkit-filter: blur(3px);
}*/

.h-fit {
    height: fit-content;
}

.h-fill {
    height: 100%;
}

.h-screen {
    height: 100vh;
}

.set_background_image {
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.w-90 {
    max-width: 90%;
    width: 90%;
}

.w-80 {
    max-width: 80%;
    width: 80%;
}

.progress {
    height: 5px;
    border-radius: 0;
    background-color: var(--grigio-progress);
}

.sensor-life .progress .progress-bar {
    margin-right: 3px;

}

.sensor-life .progress .progress-bar-success {
    background-color: var(--verde);
}

.progress .progress-bar:last-child {
    margin-right: 0 !important;
}

.sensor-life {
    background-color: var(--grigio-progress);
}

.screen-bg {
    background-color: var(--grigio-img-screen);
}

.modal-body {
    font-family: "Arial", sans-serif;
    font-size: 16px;
}


body.informativa #mobile-mask,
body.research #mobile-mask,
body.accordo #mobile-mask,
body.info #mobile-mask {
    position: relative;
}

body.informativa #mobile-mask:before,
body.research #mobile-mask:before,
body.accordo #mobile-mask:before,
body.info #mobile-mask:before {
    content: 'FPO';
    font-size: 120px;
    opacity: 0.7;
    font-weight: 900;
    color: #ec008c;
    position: absolute;
    width: 100%;
    text-align: center;
    top: 45% !important;

    z-index: 999;
}


@media (device-width: 820px) and (device-height: 1180px) {
    #mobile-mask {
        max-height: calc(100% - 40px);
        position: fixed;
        top: 20px;
        left: calc(50% - 178.5px);
    }
}

/* iphone 8 */
@media only screen and (device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) {
    body {
        width: 100vw;
        overflow-x: hidden;
    }

    #bottom-buttons .col {
        padding: 10px 25px;
    }

    /*.app-content{
        height: fit-content !important;
        min-height: inherit !important;
        overflow-y: visible;
    }*/
    body.informativa #mobile-mask,
    body.research #mobile-mask,
    body.info #mobile-mask,
    body.accordo #mobile-mask {
        position: relative;
    }
}

/*iphone xs*/
@media only screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) {
}

body.ios input {
    outline: none !important;
    box-shadow: none !important;
}