/*@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');*/
@import url("root.css");


body {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    font-family: var(--font-family);
}

/**, *:hover {*/
/*    transition: all 0.6s ease-out;*/
/*}*/


.margin-top-small{
    margin-top: var(--size-s);
}
.margin-bottom-small{
    margin-bottom: var(--size-s);
}

h1:focus {
    outline: none;
}

.k-treeview a, .k-treeview .btn-link {
    color: var(--color-primary);
    font-weight: bold;
    text-decoration: none;
}

.k-treeview a:hover, .k-treeview .btn-link:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
    font-size: var(--font-size-accent);
}

.btn-primary {
    color: #fff;
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}
.k-treeview-leaf:hover, .k-treeview-leaf.k-hover {
    border-color: unset;
    color: unset;
    background-color: unset;
}
.text-center{
    text-align: center;
}
/*
    BUTTONS
*/

/* 
    Inversione posizione dell'icona per pulsanti Telerik con gestione icone custom
    Questo non incide su icone inserite manualmente nel testo del bottone
*/
.loto-button{
    flex-direction:row-reverse;
}

/* Size per le icone inserite manualmente nel bottone */
.loto-button .k-font-icon {
    font-size: var(--font-size-large);
}

/* /FINE BUTTONS */
.content {
    /*padding-top: 1.1rem;*/
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}
.horizontal-spacer{
    margin-left:auto;
}
.vertical-spacer{
    margin-top:auto;
}

/* rimozione bordo puntinato dialog selezione sub div dopo click */
div:focus {
    outline: none !important;
}

.k-stepper {
    width: 50% !important;
    left: 25% !important;
}
.bold{
    font-weight:bold;
}
.italic{
    font-style:italic;
}
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.printer-manager{
    position:absolute;
    bottom:10px;
    left:20px;
}
/*
MODIFICA AL LAYOUT ORIGINALE TELERIK
*/
.k-input-solid:focus-within, .k-picker-solid:focus-within, .k-button-solid-primary:focus, .k-button-solid-primary.k-focus {
    border-color: var(--color-tertiary);
    box-shadow: 0 0 0 .25rem var(--color-tertiary-shadow);
}       

.k-button-flat:focus-within, .k-button-flat.k-focus {
    box-shadow: inset 0 0 0 2px var(--color-tertiary-shadow) !important;
}

.k-window-title h2{
    color:var(--color-primary);
    font-weight:var(--font-weight-bold);
}
.k-window-titlebar {
    padding: var(--size-xxs) var(--size-m) 0px var(--size-m);
}
.k-window-content {
    padding: var(--size-xxs) var(--size-m) var(--size-s) var(--size-m);
}

.k-overlay {
    background-color: rgba(0,86,109,0.850);
    backdrop-filter: blur(5px);
    opacity: 1;
}

.k-disabled, .k-widget[disabled], .k-disabled {
    outline: none;
    cursor: default;
    box-shadow: none;
    pointer-events: none;
    /*opacity: .6; 
    filter: grayscale(0.1);
        */
}

.k-checkbox {
    border-color: rgba(0,0,0,0.30);
    background-color: #fff
}

.k-disabled .k-input-inner {
    background-color: #eee;
}


.k-input-solid {
    border-color: rgba(0,0,0,0.25);
    /*
    border-color: rgba(0,0,0,0.08);
    */
    color: #000;
    background-color: #fff
}
/* Bottone chiusura dialogs*/
.k-window-titlebar-actions {
}

.k-window-titlebar-action span::before {
    flex-shrink: 0;
    font-size: var(--font-size-extralarge);
    color: var(--color-primary);
    background-color: none;
}

.k-window-titlebar-action {
    opacity: 1;
}
/* Rotondita' pulsanti */
.k-window, .k-grid, .k-form, .k-button {
    border-radius: var(--border-radius-ml);
}

textarea, input, .k-input, .k-picker, .k-radio-label {
    border-radius: var(--border-radius-s);
}

.k-input-solid, textarea, input, .k-input, .k-picker, .k-button {
    border-color: var(--color-primary);
}
/* Rotondita' pulsanti - reset per pulsanti incremento/decremento input*/
.k-input-spinner .k-button {
    border-radius:unset;
}

/* forms*/
.k-window-content .k-form-buttons {
    padding-top: var(--size-s);
    border-top: 1px solid rgb(222, 226, 230);
}
.k-form-buttons.k-actions-start {
/*    padding: 0px;
*/}
.k-form-md .k-form-field, .k-form-md .k-form-buttons {
    margin-top: var(--size-s);
    justify-content: flex-end !important;
}
.k-wizard-horizontal .k-wizard-steps,
.k-wizard-horizontal .k-wizard-content {
    margin-top: 0px;
}
.k-drawer-wrapper {
    scrollbar-color: unset;
}
/*
FINE MODIFICA AL LAYOUT ORIGINALE 
*/

/*
 ESTENZIONI AL LAYOUT ORIGINALE 
*/


/* Handle scrollbar */
/* Works on Firefox */
* {
    scrollbar-color: var(--color-primary) var(--color-light);
}

Works on Chrome, Edge, and Safari
*::-webkit-scrollbar {
    width: var(--size-xs);
    border-radius: 20px;
}

*::-webkit-scrollbar-track {
    background: var(--color-light);
    border-radius: 20px;
}

*::-webkit-scrollbar-thumb {
    background-color: var(--color-primary);
    border-radius: 20px;
    border: 2px solid var(--color-light);
}


/*  Radio buttons come bottoni normali */
/* remove the horizontal space between the RadioGroup items */
.radio-as-buttons {
    display: flex;
}

    .radio-as-buttons.k-radio-list-horizontal,
    .radio-as-buttons.k-radio-list.k-list-horizontal {
        gap: 0px;
    }
    /* reset styles and support absolute radio inputs */
    .radio-as-buttons .k-radio-item {
        margin: 0;
        padding: 0;
        position: relative;
    }
    /* hide the radio buttons */
    .radio-as-buttons .k-radio {
        opacity: 0;
        position: absolute;
    }

        .radio-as-buttons .k-radio:checked::before {
            display: none;
        }
    /* make the radio labels look like buttons */
    .radio-as-buttons .k-radio-label {
        display: inline-block;
        margin: 0;
        padding: .4em .6em .3em;
        border: 1px solid; /* TODO colori in custom */
        border-left-width: 0;
        position: relative;
        border-color: #CCC;
        color: #212529;
        background-color: #EEE; /* TODO colori in custom */
    }
    /* first and last button borders */
    .radio-as-buttons .k-radio-item:first-child .k-radio-label {
        border-left-width: 1px;
        border-radius: var(--border-radius-s) 0 0 var(--border-radius-s);
    }

    .radio-as-buttons .k-radio-item:last-child .k-radio-label {
        border-radius: 0 var(--border-radius-s) var(--border-radius-s) 0;
    }
    /* button selected state */
    .radio-as-buttons .k-radio:checked + .k-radio-label {
        background-color: var(--color-primary);
        color: #fff;
    }

.prz-control .prz-input
.radio-as-buttons .k-radio-label {
    background-color: var(--color-background-light);
    border-color: var(--color-background-light);
    min-width: var(--size-l);
    text-align: center;
}

.prz-input
.radio-as-buttons {
    background-image: linear-gradient(to right, rgba(0,0,0,0), var(--color-background-light), rgba(0,0,0,0));
    border: 1px solid var(--color-primary);
    border-radius: var(--border-radius-s);
}
/* VARIOUS */
.UpperTextBox.k-textbox > input {
    text-transform: uppercase;
}

.UpperTextArea.k-textarea > textarea {
    text-transform: uppercase;
}


.CustomInvalidState {
    border-color: #dc3545;
}
/*fix per displacement textarea*/
/*.fix-per-qd {
    margin-top:-20px !important;
}*/

/* custom*/
div.custom-ellipsis,
/* template */
div .custom-ellipsis,
/* OnCellRender */
.k-grid td.custom-ellipsis,
/* OnRowRender */
.k-grid tr.custom-ellipsis .k-table-td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.grid-tooltip {
    max-width: 50vw;
}

.loader-animation {
    width: 100%;
    height: 400px;
    background-image: url("../images/animation.gif");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
/* Container bottoni in fondo a griglia , window o dialog*/
.button-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 5px;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid #ccc;
}

.button-detailgrid-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 5px;
    margin-bottom: 25px;
}
.patient-detail-container{
    width:100%;
    /*padding:15px;*/
}  

.message, .notification, .k-notification-container, .k-notification-content {
    max-width: 99vw !important;
}
/* Controlli custom per forms */
.prz-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

.prz-column{
display:flex;
    flex-direction:column;
    flex-wrap:nowrap;
    flex-grow:1;
}
.prz-control.large-spacing {
    padding-bottom: 5px;
    margin-bottom: 5px;
}

.prz-control.bottom-border {
    border-bottom: 1px solid #ccc;
}

.prz-control {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    padding-bottom: 2px;
    margin-bottom: 2px;
}
.prz-control.disabled, .disabled {
    opacity: .5;
}
/* raddoppio per differenziare bene da off */
.k-switch.k-disabled{
    opacity: .5;
}
.prz-control.disabled .k.input
    .horizontal .prz-control > div, .prz-control > div {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-content: center;
    }
.prz-control > div.prz-colum {
    flex-direction: column;
}

.prz-input.no-width, .loto-input.no-width{
    width: unset;
}
.horizontal .prz-control {
    flex-direction: row;
    align-content: center;
}

.vertical .prz-control {
    flex-direction: column;
    align-content: stretch;
}


.prz-control.horizontal {
    flex-direction: row;
    align-content: center;
}

.prz-control.vertical {
    flex-direction: column;
    align-content: stretch;
}

.prz-label {
    display: flex;
    align-items: center;
    min-width: 150px;
}

.prz-control.data-range{
    align-items:flex-end;
}

.k-form-md .k-form-field.reset-form-field-spacing {
    margin: 0px;
    padding: 0px;
}

.prz-input, .loto-input {
    width: 100%;
}

.prz-input.right-margin {
   margin-right: 50px;
}
.prz-input{
    margin-right: unset;
}
.obbligatorio {
    font-weight: bold
}
.main-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
}



.custom-toolbar {
    width: 100%;
    background-color: #f6f6f6;
    line-height: 10px;
    border-bottom: inset;
    border-bottom-width: 1px;
    padding: 3px 8px;
    color: #656565;
}

.k-d-level {
    display: flex;
}

.drawer-chevron-icon {
    position: absolute;
    right: 0;
    line-height: inherit;
    margin: 0 8px
}
/*
    Forms
*/
/*
     Login
 */
.login-container {
    width: 50vw;
    max-width: 350px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    margin: auto;
    justify-content: center;
    align-items: center;
}

.login-logo{
    max-width:350px;
}

.login-form{
    width:100%;
    margin-top:2em;
}

.login-form .k-button, .login-siss .k-button {
    width: 100%;
}

.login-siss {
    width: 100%;
    border-top: 2px #999 solid;
    padding-top: 1em;
    margin-top: 1em;
    margin-bottom: 1em;
}

.password-input {
    display:flex;
    flex-direction:row;
    flex-wrap: nowrap;
}

.password-input .k-button{
    width:unset;
    border-radius:var(--border-radius-s);
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
}

.password-input .k-input {
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
}
.login-container .k-form-buttons {
    flex-direction: column;
}
/*
    SHELL/DRAWER/LAYOUT
*/
html, body, .main-container, .k-drawer-content {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.k-drawer-container, .k-drawer-content {
    height: calc(100vh - 44px);
}

.k-drawer-content {
    padding: var(--size-xs);
    font-size: 18px;
    overflow-y: hidden;
}

.k-drawer-container {
    position: relative;
    width: 100%;
}

.k-treeview{
    overflow-x:hidden;
    margin-left: -24px;
}
.k-drawer-container .k-treeview .k-svg-icon {
    visibility:hidden;
}
.k-treeview .root {
    margin-left:12px;
}
.k-treeview-item {
    padding: 0 0 0 12px;
}
/* 
    HEADER/FOOTER
*/
.header-container {
    width: 100vw;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    max-height: 48px;
    margin: 0px;
    z-index: 10;
    border-bottom: 1px solid #ccc;
}

.header-logo {
    height: 34px;
}
.header-environment{
    margin: 0px auto 0px 4em;
}

.k-menu.k-menu-horizontal.user-menu:not(.k-context-menu) {
    max-height: 48px;
    padding-block: unset;
    background-color: transparent;
}
.k-menu.k-menu-horizontal.user-menu .k-menu-link-text {
    display: inline-block;
    color: var(--color-primary);
    font-weight: var(--font-weight-bold);
    text-align: right;
}
.k-menu:not(.k-context-menu), .k-menu-popup, .k-item.k-menu-item {
    min-width: 200px;
}

.current-page-title {
    color: var(--color-primary);
    font-size: var(--font-size-section-title);
    font-weight: var(--font-weight-semibold);
    position: absolute;
    left: calc(50% - 100px);
}

.history-button {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 5px;
}

.prescription-monitor-log {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: auto;
    position: absolute;
    top: 65px;
    z-index: 10;
    right: 75px;
}
.siss-api{
    display:flex;
    width: 150px;
    align-content: center;
    align-items: center;
}

.siss-connection {
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.siss-details{
    font-weight:var(--font-weight-black);
    color:var(--color-primary);
    cursor:pointer;
}
.siss-connection > p {
    flex-wrap: wrap;
    margin-bottom: unset;
}
.other-functions{
    width: 15%;
    height:110px;
    max-width: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    margin: auto;
    position: absolute;
    top: 30px;
    z-index: 10;
    right: 40px;
}

.siss-success, .ssn-success, .siss-warning, .ssn-warning, .sissconn-success, .sissconn-warning {
    font-weight: bold;
}

.siss-success, .ssn-success, .sissconn-success {
    color: darkgreen;
}

.siss-warning, .ssn-warning, .sissconn-warning {
    color: red;
}

/*
    Item Viewer
*/

.item-viewer{
    display:flex;
    flex-direction:column;
    width:100%;
}
.item-viewer .item{
    display:flex;
    flex-direction:row;
    align-items:center;
    padding:5px;
    border-bottom:1px solid #ccc;
}
.item-viewer .item.last{
    border-bottom:none;
}
.item-viewer .item.new-section {
    border-top: 2px solid #ccc;
}
.item-viewer .item .item-label {
    font-weight: var(--font-weight-regular);
    min-width: 200px;
}
.item-viewer .item .item-content{
    font-weight: var(--font-weight-bold);
}


/* 
    WIZARD 
*/


 
/*@media (min-width: 960px) {
    .wizard-container {
        height: 100vh;
    }
}*/
.k-wizard{
    padding:0px;
}
.k-wizard-content{
    overflow-y:auto;

}
.padding-top-5 {
    padding-top: 5px;
}

.k-wizard .k-wizard-buttons{

}

.k-stepper .k-step-label .k-step-text {
    white-space: pre-wrap;
    text-overflow: unset;
    overflow: visible;
}

.page-container {
    display: flex;
    flex-direction: column;
    padding: var(--size-s) var(--size-s) 0 var(--size-s);
    height: 100%;
    align-items: stretch;
    justify-content: flex-start;
    justify-items: flex-start;
    align-content: stretch;
}

    /* 
    PATIENT
*/
    .page-container.patient-page {
        flex-direction: row;
        align-items: center;
        gap: 25px;
    }

.prescription-patient-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap-reverse;
    align-items: flex-end;
    justify-content: space-evenly;
}



.patient-info {
    display: flex;
    flex-direction: row;
    font-weight: bold;
    width:100%;
    text-align:left;
}

.patient-name {
    flex-grow: 1;
    max-width: calc(15vw - 33px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.patient-age {
    /*max-width: 2vw;*/
    /*overflow: hidden;*/
    /*text-overflow: ellipsis;*/
    /*white-space: nowrap;*/
}
@media screen and (max-width: 1800px){
    .patient-age{
        display: none;
    }
}
/* Patient identification */


.patient-info-container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 5px;
}

.patient-info-container > div {
    border-top: 2px solid #ccc;
    padding: 15px;
}
.patient-info-container > div.intestazione-paziente {
    border-top: none;
}

.prescription-details-info, .prescription-details-patient, .prescription-details-service {
    
}
/*
HEADER
*/
/* Esenzioni */
.esente label {
    min-width: 175px;
}

/* Prescription privacy */
.options-list {
    display: flex;
    flex-direction: column;
}

.privacy-button {
    width: 100%;
}




@media screen and (max-width: 768px) {
     /* PrescriptionListSearcher */
    /*.prescriptionList-searcher-container {
        flex-direction: column;
    }

    .prescriptionList-searcher-container > div {
        display: flex;
        flex-direction: row;
        flex-grow: 0;
        justify-content: space-between;
    }
        .prescriptionList-searcher-container > div > span {
            max-width: 60%;
            width: 60%;
            min-width: 150px;
            flex-grow: 1;
        }
    .k-daterange-picker .k-dateinput, .k-daterangepicker .k-dateinput{
        width:181px;
    }

    .prescriptionList-searcher-container .button{
        flex-direction:row;
        justify-content:flex-end;
        margin-top:var(--size-xs);
    }*/
}
.flex-justify-centered{
    justify-content: center;
    justify-items: center;
}
.flex-align-centered{
    align-items: center;
    align-content: center;
}
@media screen and (min-width: 1930px) {

}

@media screen and (min-width: 2900px) {


}