﻿
/* GLOBALE */

:root {
    --radius: 5px;
    --btnPad: 5px 10px;
}


/* SCROLL BAR PERSONALIZZATA */

/* FIREFOX */
* {
    scrollbar-width: thin;
    scrollbar-color: white black;
}

/* CHROME,EDGE,SAFARI */

::-webkit-scrollbar {
    width: 4px;
    height: 0px;
}

::-webkit-scrollbar-track {
    border-radius: var(--radius);
    background-color: black;
}

::-webkit-scrollbar-thumb {
    border-radius: var(--radius);
    background-color: white;
}

::-webkit-scrollbar-thumb:hover {
    background-color: lightgray;
}

/* */

body {
    padding: 0px;
    margin: 0px;
    width: 100%;
    height: 100vh;
    background: -webkit-gradient(linear, left top, left bottom, from(rgba(255,222,150,1)), to(rgba(28,186,123,1))) fixed;
    -ms-overflow-style: none;
    scrollbar-width: none;
}


body::-webkit-scrollbar {
    display: none;
}

footer {
    margin-left: 10px;
    margin-right: 10px;
    font-size: 1.6ch;
    font-style: italic;
    font-weight: bold;
}

p {
    margin: 0px;
}

textarea {
    resize: none;
}

.title-container {
    position: relative;
    top: 50px;
    margin-left: 5px;
    margin-right: 5px;
    text-align: center;
}

.body-container, .body-dclinic-container {
    min-height: calc(100vh - 110px);
    padding: 20px;
    text-align: center;
    animation: 0.7s linear 0s 1 appear;
}

.page-title {
    margin: 0px;
    font-size: 2.5ch;
    font-family: Verdana, Arial, helvetica, Geneva, sans-serif;
    font-weight: bold;
}

.label-big {
}

.label-regular {
}

.label-small {
}

.btn-page-action-container {
    display: none;
}

.table-container {
    display: flex;
    justify-content: center;
    margin-top: 80px;
}

.dtable-container {
    display: block;
}

div.btn-page-action-small-media {
    display: block;
    width: 20%;
    margin: auto;
    padding: var(--btnPad);
    margin-top: 20px;
    border: 1px solid white;
    border-radius: var(--radius);
    cursor: pointer;
    box-shadow: 1px 5px #FFFFFF;
}

.btn-page-action, .btn-gw-action {
    display: block;
    padding:var(--btnPad);
    margin: auto;
    width: 30px;
    height: 30px;
}

.lbl-page-action-result {
    padding: 10px;
    border-radius: var(--radius);
    color: white;
}

.lbl-page-action-result-container {
    margin-top: 50px;
    margin-bottom: 10px;
    padding: 5px;
    border-radius: var(--radius);
}

.lbl-page-action-result {
    color: white;
}

.fmodal {
    display: none;
}

.lbl-msg-elim {
    font-family: 'Times New Roman', Times, serif;
    color: red;
}

/* #endregion */




/* LOGIN-MAIN e LOGIN-TOKEN */

.login-container {
    display: inline-block;
    padding: 20px;
    margin-top: 80px;
    text-align: center;
    border: 1px solid white;
    border-radius: var(--radius);
}

.form-label {
    display: block;
    margin-top: 5px;
    margin-bottom: 10px;
    font-size:1.8ch;
    font-weight: bold;
    color: black;
}

.form-txt, .data-txt, .modal-form-txt {
    width: /*100%;*/ -webkit-fill-available;
    padding: 5px;
    border: 1px solid black;
    border-radius: var(--radius);
}

.form-btn {
    width: fit-content;
    padding: var(--btnPad);
    margin-top: 15px;
    border: 1px solid black;
    border-radius: var(--radius);
    background-color: white;
}
.danger
{
    color:white;
    background-color: red;
}

.success {
    color: white;
    background-color: green;
}

.form-file{
    margin-bottom:10px;
}

.lbl-err-login {
    position: relative;
    display: block;
    top: 20px;
    left: 50%;
    width: 90%;
    transform: translateX(-50%);
    margin-top: 5px;
    font-size: 1.5ch;
    font-weight: 400;
    color: red;
}

#MainContent_Token_timer {
    position: relative;
    display: block;
    top: 15px;
    font-weight: bold;
}

/* #endregion */




/* DASHBOARD-HOME */


#Popup-richiami_m {
    display: inline-block;

    float: right;
    z-index: 2;
}

#Popup-body_m {
    position: absolute;
    display: none;
    right: 50%;
    max-width: 370px;
    padding: 10px;
    overflow: auto;
    border-start-start-radius: 15px;
    border-end-start-radius: 15px;
    border-end-end-radius: 15px;
    font-size: 1.5ch;
    z-index: 1;
    color: white;
    background-color: rgba(28,186,123,.90);
    animation: 0.2s linear 0s 1 appear;
}

.btn-page-action-small-media-container {
    display: flex;
    margin: auto;
    padding: var(--btnPad);
    margin-top: 20px;
}

.row-menu {
    display: block;
}

.cell-menu {
    display: block;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid white;
    border-radius: var(--radius);
    cursor: pointer;
    box-shadow: 1px 5px #FFFFFF;
    font-size:2ch;
    transition: 0.2s linear;
}

.cell-menu:hover {
    transform: scale(110.0%);
}

.btn-menu {
    display: block;
    margin: auto;
    padding: var(--btnPad);
    width: 60px;
    height: 65px;
}

.lbl-menu,.data-label {
    display: block;
    font-size:2.1ch;
    font-weight: bold;
}

.lbl-menu{
    font-size: 1.58ch;
}

/* #endregion */




/* ANAGRAFICA */

.table-data {
    display:grid;
    width:100%;
    border: 1px solid white;
    border-radius: var(--radius);
}

.row-data {
    display: block;
}

.row-data.btn-container
{
    display:flex;
    justify-content:center;
}

.cell-data {
    display: block;
    margin: 0px;
}


.data-txt {
    width: 60%;
    text-align: center;
}

textarea.data-txt {
    text-align: start;
}

.small{
    width: 40%;
}

.long {
    width: 80%;
}

#MainContent_Nas_paz_agg {
    position:relative;
    top:50px;
    font-size: 1.5ch;
    font-weight: bold;
}



/* GESTIONE PAZIENTI e DIARIO CLINICO */

.filter-container, .add-item-container {
    padding: 10px;
    margin-top: 80px;
    margin-bottom: 10px;
    border: 1px solid black;
    background-color: #1CBA7B;
}


.add-item-container {
    background-color: slateblue;
}

.gw-container, .gw-dclinic-container {
    margin-bottom: 10px;
    padding: 0px;
    overflow: scroll;
}

.utility-bars-container {
    display: block;
}

.utility-bars-container div
{
    margin:5px;
}

table {
    padding: 0px;
}

table td {
    padding: 5px;
    font-weight: bold;
    font-size: 1.4ch;
}

.filter-label, .add-item-label {
    display: block;
    font-weight: bold;
    color: white;
}

.filter-txt, .add-item-txt {
    margin: 10px;
    padding: 5px;
    border: 1px solid transparent;
    border-radius: var(--radius);
}

.filter-btn, .add-item-btn, .folder-detail-btn-add, .print-btn {
    display: block;
    margin: auto;
    margin-top: 15px;
    padding: var(--btnPad);
    transition: 0.2s linear;
    border: 1px solid black;
    border-radius: var(--radius);
    background-color: white;
}

.add-item-btn {
    margin-top: 10px;
}

.print-btn {
    padding: var(--btnPad);
    margin-bottom: 5px;
}

.filter-btn:hover,.folder-detail-btn-add:hover {
    background-color: black;
    color: white;
}

/* DETTAGLI CARTELLA PAZIENTE */

.tab-content {
    display: none;
    padding: 0;
    border-top: 1px solid transparent;
}

.tabs {
    display: none;
}

.lbl-tab {
    display: inline-flex;
    padding: 5px;
    margin:5px;
    text-align: center;
    font-size:0;
    color: #555;
    border: 1px solid transparent;
}

.tabs:checked + label {
    border: 2px solid green;
    border-radius: var(--radius);
    color: white;
    transform: translateY(-10px);
}


.lbl-tab:hover {
    color: #888;
    cursor: pointer;
}

label[for*='interventi']:before {
    content: url("../immagini/i_diario_interventi.png");
}

label[for*='trattamenti']:before {
    content: url("../immagini/i_diario_trattamenti.png");
}

label[for*='acconti']:before {
    content: url("../immagini/i_diario_acconti.png");
}

label[for*='immagini']:before {
    content: url("../immagini/i_diario_img.png");
}

#tab-interventi:checked ~ #cont-interventi,
#tab-trattamenti:checked ~ #cont-trattamenti,
#tab-acconti:checked ~ #cont-acconti,
#tab-immagini:checked ~ #cont-immagini {
    display: block;
    animation: appear .6s linear;
}

.folder-detail-item-gw {
    margin-bottom: 10px;
}

/* APPUNTAMENTI */

.calendar {
    border-radius: var(--radius);
    box-shadow: 10px 10px 10px gray;
    background-color: white;
    overflow: hidden;
}

.calendar-header {
    display: flex;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 15px;
    padding-right: 10px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid lightgray;
    background-color: yellowgreen;
}

.calendar-header-date-container {
}

#h_month {
    font-size: 1.95ch;
    font-weight: bold;
    color: white;
}

#h_year {
    margin-left: 5px;
    font-size: 1.95ch;
    font-style: italic;
    color: grey;
}

.calendar-header-btn-container {
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 5px;
    padding-right: 5px;
    border-radius: var(--radius);
}

.calendar-header-btn {
    display: inline-flex;
    padding: 0.35rem;
    padding-left: 0.60rem;
    padding-right: 0.60rem;
    border: 1px solid white;
    border-radius: var(--radius);
    line-height: 1;
    transition-property: background-color,border-color,color,fill,stroke,opacity,box-shadow,transform;
    transition-timing-function: cubic-bezier(.4,0,.2,1);
    transition-duration: 0.2s;
    color: white;
    background-color: transparent;
    cursor: pointer;
}

.calendar-header-btn:hover {
}

.calendar-header-btn:disabled {
}

#h_btn_divider {
    display: inline-flex;
    height: 15px;
    width: 5px;
    background-color: transparent;
}

.calendar-body {
}

.calendar-body-days-name-container {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: -60px;
}

.calendar-day-name {
    width: 14.26%;
    font-size:1.5ch;
    font-weight: bold;
    color: rgba(113,128,150,1);
}

.calendar-body-days-container {
    display: flex;
    flex-wrap: wrap;
    margin-top: 45px;
    margin-right: -3.5px;
}

.calendar-day {
    width: 13.85%;
    height: 100px;
    padding-top: 2px;
    border-bottom: 1px solid lightgray;
    border-right: 1px solid lightgray;
    overflow: auto;

}

.calendar-day-number {
    position:relative;
    top:8%;
    display: inline-flex;
    width: 0.70rem;
    height: 0.70rem;
    padding: 3px;
    justify-content: center;
    align-items: center;
    text-align:center;
    line-height: 1;
    border-radius: 100px;
    transition-property: background-color,border-color,color,fill,stroke,opacity,box-shadow,transform;
    transition-timing-function: cubic-bezier(.4,0,.2,1);
    transition-duration: .2s;
    font-size:1.35ch;
    color: gray;
    cursor: pointer;
}

.calendar-day-number:hover {
    background-color: lightgreen;
    color: white;
}

.calendar-day-events-container {
    height: 80%;
    margin-top:5px;
    text-align: center;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.calendar-day-events-container::-webkit-scrollbar {
    display: none;
}

.calendar-day-event {
    margin: 2px;
    padding: 5px;
    border-radius: var(--radius);
    font-size: 0.52rem;
    color: white;
    cursor: pointer;
}

.calendar {
    display: grid;
    grid-template-columns: auto 1fr;
    padding-top:10px;
    padding-bottom:10px;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    border-radius: var(--radius);
    background-color: rgba(255,255,255,.25);
}

.days-container {
    display: grid;
    grid-column: 2;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin-left: 10px;
    margin-right: 10px;
}

.date {
    display: flex;
    gap: 1em;
    height: 30px;
}

.date-num {
    display: inline;
    font-size: 1.6rem;
    font-weight: 600;
    transition-property: background-color,border-color,color,fill,stroke,opacity,box-shadow,transform;
    transition-timing-function: cubic-bezier(.4,0,.2,1);
    transition-duration: .2s;
    cursor: pointer;
}

.date-num:hover {
   transform: scale(120%);
   color: white;
}

.date-day {
    display: inline;
    font-size: 1.6rem;
    font-weight: 100;
}

.events {
    justify-items: center;
    justify-content: center;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 5px;
    padding-right: 25px;
    border-radius: var(--radius);
    overflow: visible;
    background-color: #fff1f8;
}

.event {
    width: 100%;
    height: fit-content;
    padding: 0.5rem;
    margin-bottom: 10px;
    text-align: center;
    word-wrap: break-word;
    border: 2px solid #f2d3d8;
    border-radius: var(--radius);
    cursor: pointer;
    color: white;
    transition: .2s linear;
}

.event:hover {
   transform: scale(115%);
}

.event-title {
    margin-bottom: 0.25rem;
    font-size: 1.4ch;
    font-weight: bold;
    mix-blend-mode: difference;
    z-index: 0;
}

.event-time {
    margin-bottom: 0.25rem;
    font-size: 1.4ch;
    font-weight: 300;
    mix-blend-mode: difference;
    z-index: 0;
}

.event-desc {
    margin-bottom: 0.25rem;
    font-size: 1.4ch;
    font-weight: 300;
    mix-blend-mode: difference;
    z-index: 0;
}

.calendar-changers-container {
    display: block;    
    margin-top:10px;
}

.calendar-changer {
    margin-top: 10px;
}

.calendar-changer-lbl {
    margin-left:5px;
    margin-right:5px;
    font-size: 1.5ch;
    font-weight: bold;
}

.calendar-changer-btn {
    padding: 0.50rem;
    padding-left: 0.70rem;
    padding-right: 0.70rem;
    border: 1px solid green;
    border-radius: var(--radius);
    line-height: 1;
    transition-property: background-color,border-color,color,fill,stroke,opacity,box-shadow,transform;
    transition-timing-function: cubic-bezier(.4,0,.2,1);
    transition-duration: 0.2s;
    color: green;
    background-color: white;
    cursor: pointer;
}

.calendar-changer-btn:hover {
    border: 1px solid white;
    color: white;
    background-color: green;
}

.calendar-changer-picker {
    padding:5px;
    padding-left: 5px;
    padding-right: 5px;
    border: 1px solid black;
    border-radius: var(--radius);
    text-transform: uppercase;
    font-size: 1.5ch;
}
 
/* ANIMAZIONI */
@keyframes appear {
        0% {
            opacity: 0.0;
        }

        100% {
            opacity: 1.0;
        }
    }

@keyframes disappear {
        0% {
            opacity: 1.0;
        }

        100% {
            opacity: 0.0;
        }
    }

@keyframes bell {
    0% {
        transform: rotate(30deg);
    }

    12.5% {
        transform: rotate(-25deg);
    }

    25% {
        transform: rotate(20deg);
    }

    37.5% {
        transform: rotate(-15deg);
    }

    50% {
        transform: rotate(10deg);
    }

    62.5% {
        transform: rotate(-5deg);
    }

    75% {
        transform: rotate(5deg);
    }

    100% {
        transform: rotate(0deg);
    }
}