﻿
/* GLOBALE */

:root{
    --radius:5px;
    --btnPad:5px 10px;
}

/* SCROLL BAR PERSONALIZZATA */

/* FIREFOX */
* {
    scrollbar-width: thin;
    scrollbar-color:white black;
}

/* CHROME,EDGE,SAFARI */

::-webkit-scrollbar {
    width: 6px;
    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;
    animation: 0.7s linear 0s 1 appear;
    /* -ms-overflow-style: none;
    scrollbar-width: none;*/
}

td
{
    font-size:1.6ch;
}

body::-webkit-scrollbar {
    /*display: none;*/
}

footer {
    position: absolute;
    top: 94vh;
    font-style: italic;
    font-size: 1.6ch;
}

textarea {
    resize: none;
    /*cursor:pointer;*/
}

.title-container {
    position: relative;
    top: 50px;
    text-align: center;
}

.body-container,.body-dclinic-container {
    height:calc(100vh - 130px);
    margin-top: 10px;
    padding: 10px;
    text-align: center;
}

.body-dclinic-container {
    min-height:auto;
    height: calc(100vh - 205px);
}

.page-title {
    margin: 0px;
    font-size: 3.25ch;
    font-family: Verdana, Arial, helvetica, Geneva, sans-serif;
    font-weight: bold;
}

.label-big {
}

.label-regular {
}

.label-small {
}

.table-container, .dtable-container {
    display: flex;
    max-height: calc(100vh - 240px);
    justify-content: center;
    overflow:auto;
}

.btn-page-action-small-media {
    display: none;
}

.btn-page-action,.btn-gw-action {
    display: block;
    margin: auto;
    width: 30px;
    height: 30px;
}

.lbl-page-action-result-container {
    margin-bottom:20px;
    margin-left:20%;
    margin-right:20%;
    padding: 10px;
    border-radius: var(--radius);
    z-index:100;
}

.lbl-page-action-result
{
    font-size:1.6ch;
    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;
    margin-top: 50px;
    padding: 30px;
    text-align: center;
    border: 1px solid white;
    border-radius: var(--radius);
}

.form-label {
    display: block;
    margin-top: 5px;
    margin-bottom: 5px;
    font-size: 1.5ch;
    font-weight: bold;
    color: black;
}

.form-txt, .data-txt, .modal-form-txt {
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding-left: 5px;
    font-size: 1.7ch;
    border: 1px solid black;
    border-radius: var(--radius);
}

.form-btn {
    padding:var(--btnPad);
    border: 1px solid black;
    border-radius: var(--radius);
    font-size:1.6ch;
    transition: 0.2s linear;
    background-color: white;
}

.danger
{
    color:white;
    background-color: red;
}

.success {
    color: white;
    background-color: green;
}

.form-file {
    width: 100%;
    outline: none;
    cursor:pointer;
    margin-top:10px;
    margin-bottom:10px;
}

.form-btn:hover {
    background-color: black;
    color: white;
}

.lbl-err-login {
    position: relative;
    display: block;
    top: 20px;
    left: 50%;
    width: 90%;
    transform: translateX(-50%);
    margin-top: 10px;
    font-size: 1.5ch;
    font-weight: 400;
    color: red;
}

#MainContent_Cmd_login
{
    margin-top:10px;
}

#MainContent_Token_timer {
    position: relative;
    display: block;
    top: 15px;
    font-weight: bold;
}

/* #endregion */




/* DASHBOARD-HOME */

#Popup-richiami {
    position: relative;
    display: inline-block;
    /*top: 22px;*/
    float: right;
    z-index: 2;
}

#Popup-body {
    position: absolute;
    display: none;
    right: 50%;
    max-width:370px;
    max-height: 400px;
    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;
}

.lbl-item-popup
{
    display:inline-flex;
}

.btn-page-action-container {
    position: relative;
    top: 30px;
    left: 90%;
    display:flex;
    align-items:center;
    width: fit-content;
    padding: 10px;
    cursor: pointer;
    text-align: center;
    border-radius: 100%;
}

.btn-action-container{
    display:inline-block;
    padding:15px;
}

.table-menu {
    border-spacing: 20px;
    border-collapse: separate;
}

.cell-menu {
    padding: 10px;
    border: 1px solid white;
    border-radius: var(--radius);
    cursor: pointer;
    box-shadow: 5px 5px #FFFFFF;
    transition: 0.2s linear;
}

.cell-menu:hover {
    transform: scale(110.0%);
}

.btn-menu {
    display: block;
    margin: auto;
    width: 75px;
    height: 75px;
}

.lbl-menu, .lbl-page-action {
    display: block;
    margin-left:5px;
    width: 150px;
    font-size: 1.5ch;
    font-weight: bold;
    word-break: break-word;
}

.lbl-page-action
{
    width:auto;
}


/* #endregion */



/* ANAGRAFICA */

.table-data {
    border-spacing: 8px;
    border-collapse: separate;
    border: 1px solid white;
    border-radius: var(--radius);
}

.cell-data {
    margin: 10px;
}

.data-label {
    display: block;
    font-size:1.7ch;
    font-weight: bold;
}

.data-txt {
    text-align: center;
}

textarea.data-txt {
    text-align: start;
}

.small {
    width: 45%;
}

.long {
    width: 100%;
}

.modal-small
{
    width:20%;
    max-width:30%;
}

.modal-long
{
    width:60%;
    max-width:80%;
}

#MainContent_Nas_paz_agg {
    font-size: 1.8ch;
    font-weight: bold;
}


/* GESTIONE PAZIENTI */

.filter-container, .add-item-container {
    display:flex;
    width: fit-content;
    padding: 8px;
    margin: auto;
    margin-top:20px;
    margin-bottom:10px;
    border: 1px solid black;
    border-radius:var(--radius);
    background-color: #1CBA7B;
}

.add-item-container {
    background-color:slateblue;
}

.gw-container, .gw-dclinic-container {
    max-height: calc(100vh - 320px);
    padding: 0px;
    overflow: auto;
}

.gw-dclinic-container {
    max-height: calc(100vh - 450px);
}

.utility-bars-container {
    display: flex;
    justify-content: center;
}

.utility-bars-container div
{
    margin:5px;
}

.filter-label, .add-item-label {
    margin: auto;
    margin-right: 10px;
    font-size: 1.7ch;
    font-weight: bold;
    color: white;
}

.filter-txt, .add-item-txt {
    padding-left: 5px;
    margin-right: 10px;
    border: 1px solid transparent;
    border-radius: var(--radius);
}

.filter-btn, .add-item-btn, .folder-detail-btn, .print-btn {
    transition: 0.2s linear;
    padding:var(--btnPad);
    border: 1px solid black;
    border-radius: var(--radius);
    font-size: 1.6ch;
    background-color: white;
}

.folder-detail-btn {
    margin-top:10px;
}

.print-btn
{
    margin-top:auto;
    margin-bottom:auto;
}

.filter-btn:hover, .add-item-btn:hover,.folder-detail-btn:hover, .folder-detail-btn-add:hover, .print-btn:hover {
    background-color: black;
    color: white;
}

/* #endregion */


/* DETTAGLI CARTELLA PAZIENTE */

.tab-content {
    display:none;
    /*padding: 20px 0 0;*/
}

.tabs {
    display: none;
}

.tabs:checked + label {
    color: white;
    border: 2px solid green;
    border-radius: var(--radius);
    transform:translateY(-10px);
}

.lbl-tab {
    display: inline-block;
    margin: 0 0 -1px;
    padding: 15px 25px;
    font-weight: 600;
    text-align: center;
    color: #555;
    border: 1px solid transparent;
}

.lbl-tab:hover {
    color: #888;
    cursor: pointer;
}

#MainContent_gw_trattamenti td
{
    white-space:pre-line;
}

#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;
} 

/* #endregion */


/* APPUNTAMENTI */

.calendar {
    position: absolute;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    height: calc(100vh - 280px);
    border-radius: var(--radius);
    overflow-y: auto;
    background-color: rgba(255,255,255,.25);
}

.days-container {
    display: grid;
    grid-column: 2;
    gap: 5px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin-left: 10px;
    margin-right: 10px;
}

.date {
    display: flex;
    gap: 1em;
    height: 60px;
}

.date-num {
    display: inline;
    font-size: 2.5rem;
    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: 2.5rem;
    font-weight: 100;
}

.events {
    min-height: calc(100vh - 355px);
    max-height: calc(100vh - 355px);
    justify-items: center;
    justify-content: center;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left:0.5rem;
    padding-right:0.5rem;
    border-radius: var(--radius);
    overflow-y: auto;
    background-color: #fff1f8;
}

.event {
    width: 100%;
    /*height: fit-content;*/
    min-height:100px;
    max-height:150px;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
    word-wrap: break-word;
    border: 2px solid #f2d3d8;
    border-radius: var(--radius);
    cursor: pointer;
    overflow:hidden;
    color:white;
    transition: .2s linear;
}

.event:hover
{
    transform:scale(103%);
}

.event-title {
    text-align:start;
    margin-bottom: 0.25rem;
    font-size: 1.4ch;
    font-weight: bold;
    mix-blend-mode: difference;
    z-index: 0;
}

.event-time {
    text-align: start;
    margin-bottom: 0.25rem;
    font-size: 1.5ch;
    font-weight: 300;
    mix-blend-mode: difference;
    z-index: 0;
}

.event-desc {
    text-align:start;
    max-height:70px;
    overflow:hidden;
    margin-bottom: 0.25rem;
    font-size: 1.5ch;
    font-weight: 300;
    mix-blend-mode: difference;
    z-index: 0;

}

.calendar-changers-container {
    position: absolute;
    top: calc(100vh - 70px);
    left: 50%;
    display: flex;
    transform: translateX(-50%);
    justify-content: center;
}

.calendar-changer {
    margin-left: 10px;
    margin-right: 10px;
}

.calendar-changer-lbl{
    font-size:1.6ch;
    font-weight:bold;
}

.calendar-changer-btn {
    padding: 0.30rem;
    padding-left: 0.60rem;
    padding-right: 0.60rem;
    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-left: 5px;
    padding-right: 5px;
    border: 1px solid black;
    border-radius: var(--radius);
    text-transform: uppercase;
    font-size: 1.6ch;
}


/* 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);
    }
}
