/*BROMATOLOGIC ROWSTYLE CLASSES*/
.ax-sp-kilocal {
    background-color: rgba(190, 139, 224, 0.5) !important;                    
}
.ax-sp-kilocal.ui-state-highlight {
    background-color: #5E81AC !important;
}

.ax-sp-with-calories {
    background-color: rgba(124, 173, 99, 0.5) !important;                    
}
.ax-sp-with-calories .ui-state-highlight {
    background-color: #5E81AC !important;
}

.ax-sp-allergene {
    background-color: rgba(224, 183, 121, 0.5) !important;                    
}
.ax-sp-allergene .ui-state-highlight {
    background-color: #5E81AC !important;
}

.ax-sp-allergene-present {
    background-color: rgba(255, 106, 82, 0.5) !important;                    
}
.ax-sp-allergene.present .ui-state-highlight {
    background-color: #5E81AC !important;
}

.ax-sp-dish-with-children {
    background-color: rgba(119, 136, 109, 0.5) !important;                    
}
.ax-sp-dish-with-children .ui-state-highlight {
    background-color: #5E81AC !important;
}

.ax-sp-orange-highlight {
    background-color: rgba(224, 183, 121, 0.5) !important;                    
}
.ax-sp-orange-highlight .ui-state-highlight {
    background-color: #5E81AC !important;
}

.ax-has-dependency-row{
    background-color: #dbdbdb !important;
}

/*FORCE PADDING ON TABLES*/
body .ui-datatable .ui-datatable-data > tr td {
    padding: 4px 10px !important;
}
/* REPONSIVE WAIT DIALOG/PRINT/BLOCK-UI IMAGE WIDTH */
.ax-responsive-image {
    width: 5vw;
}
.ax-wait-hide-border{
    border:none !important;   
}

/* CHECKBOX AT LEFT, LABEL AT RIGHT*/
.ui-chkbox .ui-chkbox-label {
    float: right;
}


/*AXIOS search menu box*/
.layout-sidebar .ax-search-input {
    padding: 14px;
    position: relative; 
}
.layout-sidebar .ax-search-input i {
    position: absolute;
    color: #738183;
    top: 23px;
    left: 18px;
    font-size: 16px; 
}
.ax-search-input input {
    color: #738183;
    padding: 8px 0 8px 24px;
    width: 100%;
    border-radius: 2px;
    font-size: 14px;
    background-color: #ffffff;
    border: solid 1px #cfd4d5;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -moz-transition: border-color 0.3s;
    -o-transition: border-color 0.3s;
    -webkit-transition: border-color 0.3s;
    transition: border-color 0.3s; }
.ax-search-input input:focus {
    border-color: #1b82d7;
    outline: 0 none; 
}
/*End: AXIOS search menu box*/

/* AXIOS IMAGE GROUP */
.ax-panel-image{    
    border:1px solid #ced4da
}

/*start: print distribution support compact mode & printBookingOpticalSheet & PRINT VERIFY & print consumptionaccessories & print patient list & print dish zone*/
.myFieldset .ui-fieldset, .ui-fieldset .ui-fieldset-legend {
    padding: 1px !important;
}

.without-selectall .ui-selectcheckboxmenu-header .ui-chkbox {
    display: none;
}
/*fake css to display original checkbox*/
.with-selectall .ui-selectcheckboxmenu-header .ui-chkbox {    
}

.noBorderPanel  .ui-panelgrid-cell {
    border:none;
    padding: 3px !important;
}
.noBorderPanel .ui-widget-content {
    border:none;
}
.pgvalign td {
    /*ALSO USED IN PRINT VERIFY & print consumptionaccessories & booked component & print dish word & print dish zone*/
    vertical-align: top;
}
.pgmalign td {
    vertical-align: middle;
}
/*end print distribution support compact mode*/


/*start: order ward list responsive*/
.wideList  .ui-orderlist-list{
    width: 100%;
    height: 70vh;
}

/*OPTICAL READER COMPACT LAYOUT*/
.axCBLeft .ui-chkbox-label {
    float: left;

}
.axCBLeft {
    float: right;
    font-weight: bolder;
}
.axselmax .ui-selectlistbox-listcontainer{
    height: auto !important;
}

.axcompact .ui-selectlistbox-item{    
    padding: 1px 1px !important;
    font-size: 12px;
    word-break: initial;
}

/*PROFILE: disable events on collapse/expand treetable */
.disableCollapse .ui-treetable-toggler {
    pointer-events: none;
}

/*BILLING DATA EXPORT*/
.axpgTmp .ui-panelgrid-even .ui-panelgrid-cell{
    border-width: 0px !important;
}
.axpgTmp .ui-panelgrid-odd .ui-panelgrid-cell{
    border-width: 0px !important;
}
.axpgTmp .ui-widget-content{
    border: none !important;
}
.axpgTmp2 tbody tr td{
    vertical-align: top !important;
}

/*EXTRA KIND SUPPLY*/
.pgvalign_left{
    vertical-align: middle;
    text-align: left !important;
    border-color: transparent !important;
}
.pgvalign_right{
    vertical-align: middle;
    text-align: right !important;
    border-color: transparent !important;
}

/*BOOKING MANAGEMENTE AUTOMATIC*/
.pgcalign td {
    vertical-align: middle;
}

/*PALM MONITOR & EXTERNAL OPERATION*/
.axclass-red{
    background-color: red !important;
    background-image: none !important;
    color: #000000 !important;
}
.axclass-orange{
    background-color: #FF8C00 !important;
    background-image: none !important;
    color: #000000 !important;
}
.axclass-green{
    background-color: #6B8E23 !important;
    background-image: none !important;
    color: #000000 !important;
}
.axclass-blue{
    background-color: #87CEFA !important;
    background-image: none !important;
    color: #000000 !important;
}
.axclass-brown{
    background-color: #CD853F !important;
    background-image: none !important;
    color: #000000 !important;
}
.axclass-yellow{
    background-color: #FFD700 !important;
    background-image: none !important;
    color: #000000 !important;
}
.axclass-pink{
    background-color: #BA55D3 !important;
    background-image: none !important;
    color: #000000 !important;
}

/*CONFIGURATION ACCOUNTING RULE*/

.customH .ui-selectlistbox-listcontainer {
    height: 25vh !important;
}

/*CONFIGURATION: BOOKING OVER LIMITS AND MANAGE DIET LIMITS AND PALM*/
.col_60{
    vertical-align: top;
    width: 60%;
}
.col_40{
    vertical-align: top;
    width: 40%;
}

/*PRINT DISH ZONE*/
.printDishZoneForesightForTotal {
    background-color: #fca752 !important;
    background-image: none !important;
    color: #000000 !important;
}

/*USAGE HISTORIC*/
.sub-component-row {
    background-color: #FAD8B1 !important;
    background-image: none !important;
    color: #000000 !important;
}

/*PERSONAL DATA*/
.valigntop{
    vertical-align: top;
}

/*404*/
.exception-content{
    background-image: url("/giornalieroweb/javax.faces.resource/images/404.jpg.xhtml"); 
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-origin: content-box;
}

/*MAIN TEMPLATE*/
/*Cosmetics for menu*/
@media (min-width: 992px) {
    /*remove fixed height if full screen*/
    .layout-main { 
        padding-top: 0px;
    }
    /*make relative height in full screen, to allow full screen utilization*/
    .layout-topbar-wrapper{
        height: 100% !important; 
    }              
}

/*This is for tabviews in order to highlight the selected tab*/
.ui-tabs-header.ui-tabs-selected.ui-state-active {    
    background-color: #5E81AC !important;
}
.ui-tabs-header.ui-tabs-selected.ui-state-active a {
    color: white !important;
    font-weight: bold !important;
}
/*datatable header columns martgin*/
/*commented because it's not compatible with primefaces 10*/
/*.ui-datatable thead th{
    padding: 4px 10px !important;
}*/


.login-input-wrapper input{

    width: 80% !important;
    max-width: 240px !important;
}


.ax-list-bg-box {
    background-color: rgba(221,221,221,0.21);
    margin-top: 3px;
    margin-bottom: 0px;
    border-radius: 3px;
    padding: 0;
}

.ax-icon-square-button {
    width: 25px;
    height: 25px;
    margin: 0px 2px;
    margin-right: 10px;
}

.ax-not-allowed-chkbox.ui-chkbox .ui-chkbox-box,
.ax-not-allowed-chkbox {
    cursor: not-allowed;}
.ax-not-allowed-chkbox.ui-chkbox .ui-chkbox-box {
    pointer-events: none;}

/* Sidebar Menu UI customizations */
.layout-menu-light .layout-sidebar .layout-menu {
    letter-spacing: .0055rem;}

.layout-menu-light .layout-sidebar .layout-menu > li.active-menuitem > a,
.layout-menu-dark .layout-sidebar .layout-menu > li.active-menuitem > a {
    background-color: transparent;
    border-radius: 0;
    box-shadow: 0 .25rem .3rem 0rem rgba(0,0,0,.2)}

/* Hover highlight reset */
.layout-sidebar .layout-menu-container .layout-menu li > a:hover {
    transition: background .5s;
    border-radius: 0;}

/* TOP sidebar bg overlay on hover */
.layout-menu-light .layout-sidebar .layout-menu > li > a:focus-visible,
.layout-menu-light .layout-sidebar .layout-menu > li > a:hover {
    background-color: rgba(255,255,255,.1);}
.layout-menu-dark .layout-sidebar .layout-menu > li > a:focus-visible,
.layout-menu-dark .layout-sidebar .layout-menu > li > a:hover {
    background-color: rgba(0,0,0,.1);}

.layout-sidebar .layout-menu-container .layout-menu > li > ul::before {
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: absolute;
    background-color: var(--surface-a);
    opacity: 0.6;}

.layout-sidebar .layout-menu-container .layout-menu > li > ul {
    margin: 0 .3rem .3rem .3rem;
    background-color: transparent;
    position: relative;
    box-shadow: .1rem .2rem .3rem 0 rgba(0,0,0,.3);
    border-radius: 0 0 .25rem .25rem !important;}

.layout-sidebar .layout-menu-container .layout-menu > li { /* fixes bottom displaying white */
    overflow-y: hidden;}
.layout-menu-container {
    scrollbar-width: thin;}

.layout-sidebar .layout-menu-container .layout-menu > li:not(.menu-l1) > a::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: .25rem;
    z-index: -1;}

.layout-sidebar .layout-menu-container .layout-menu > li:not(.active-menuitem.menu-l1) > a:focus-visible::before {
    background-color: var(--primary-color);
    opacity: .25;}
.layout-sidebar .layout-menu-container .layout-menu > li.active-menuitem:not(.menu-l1) > a::before {
    background-color: var(--primary-color);
    opacity: 1;}

.layout-sidebar .layout-menu-container .layout-menu li {
    padding: 0;}

/* force to draw the text of the active group ABOVE the background of ::before */
li .menu-l1.active-menuitem > a > span {
    z-index: 1;}
li .menu-l1.active-menuitem > a::before { /* menu selected item highlight */
    content: "";
    background-color: var(--surface-a);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    opacity: 0.9;}

/* Keep the ul[role=menu]::before inside the container */
.menu-l1.active-menuitem ul[role=menu] {
    position: relative;}

li .menu-l1 ul[role=menu]::before { /* subtree */
    content: "";
    background-color: var(--surface-a);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    opacity: 0.6;}

.layout-sidebar .layout-menu-container .layout-menu li ul li {
    padding: 0;}

/* fix the icon position caused by the margin of the first ul[role=menu] */
.layout-sidebar .layout-menu-container .layout-menu > li > ul > li {
    margin-right: -.3rem;}

/* sidebar ICONS fix color */
.layout-menu-dark {
    --icon-color: #334;}
.layout-menu-light {
    --icon-color: #556;}

.layout-sidebar .layout-menu-container .layout-menu > li > ul li a i,
.layout-sidebar .layout-menu-container .layout-menu > li > ul li.active-menuitem > a i,
.layout-sidebar .layout-menu-container .layout-menu > li.active-menuitem > a i,
.layout-sidebar .layout-menu-container .layout-menu > li > a i {
    color: var(--icon-color);}





.layout-sidebar .layout-menu-container .layout-menu > li > ul li a::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    border-left: solid 0 var(--icon-color);}

.layout-sidebar .layout-menu-container .layout-menu > li > ul li.active-menuitem:not(.menu-l1) > a::before  {
    border-left-width: .5rem;
    opacity: .8;}

/* Sidebar accessibility TAB */
.layout-sidebar .layout-menu-container .layout-menu li.active-menuitem:not(.menu-l1) > a:focus-visible::before {
    opacity: .4;}
.layout-sidebar .layout-menu-container .layout-menu li a:focus-visible::before { /* sidebar focus-visible (tab) subtree */
    border-left-width: .5rem;
    opacity: .4;}

.layout-sidebar .layout-menu-container .layout-menu li.menu-l1 > a:focus-visible::before { /* folder in group in subtree */
    opacity: .7;}

.layout-sidebar .layout-menu-container .layout-menu > li > ul li a * { /* force menu text & icons to go above the ::before */
    z-index: 5;}

.layout-sidebar .layout-menu-container .layout-menu > li > ul li a:hover { /* sidebar hover subtree */
    background-color: transparent;}


/*LEFT MENU, keep margin around menu icons*/
.menuitem-text {
    margin-right: 20px;
}
.menu-l1 .menuitem-text {
    margin-right: 43px;
}

.layout-sidebar .layout-menu-container .layout-menu > li > ul li.active-menuitem > a .menuitem-text {
    color: var(--icon-color);
    font-weight: bold;
    letter-spacing: -.005rem;}
.layout-sidebar .layout-menu-container .layout-menu > li > ul li.active-menuitem:not(.menu-l1) > a .menuitem-text {
    color: var(--icon-color);
    font-weight: bold;
    letter-spacing: -.005rem;}

.layout-sidebar .layout-menu-container .layout-menu > li.menu-l1 > a span.menuitem-text {
    color: #334;
}

/*  -- MODULAR CLASSES --  */

/* Wrap tables (mainly h:panelGrid) from even columns to 2 columns */
@media screen and (max-width: 48rem) {
    .table-wrap-2-col > tbody > tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }
    .table-wrap-2-col > tbody > tr > td {
        width: 50%;
    }
    .table-wrap-1-col > tbody > tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }
    .table-wrap-1-col > tbody > tr > td {
        width: 100%;
    }
}

/* disable selection support: IE 10+ */
.ax-pointer-none {pointer-events: none;}

.ax-v-top {vertical-align: top;}
.ax-v-btm {vertical-align: bottom;}
.ax-v-mid {vertical-align: middle;}

.ax-maxw46 {max-width: 736px; max-width: 46rem;}

/* General CSS for quick styling */
/* display type */
.ax-db {display: block;}
.ax-dib {display: inline-block;}
.ax-flex {display: flex;}

.ax-relative {position: relative;}
.ax-absolute {position: absolute;}

.ax-minw35 {min-width: 560px; min-width: 35rem;}

.ax-tl {text-align: left;}
.ax-tc {text-align: center;}
.ax-tr {text-align: right;}

.ax-fl {float: left;}
.ax-fr {float: right;}

/* font-size */
.ax-f1 {font-size: 44px; font-size: 2.50rem;}
.ax-f2 {font-size: 32px; font-size: 2.00rem;}
.ax-f3 {font-size: 24px; font-size: 1.5rem;}
.ax-f4 {font-size: 32px; font-size: 1.25rem;}
.ax-f5 {font-size: 16px; font-size: 1rem;}

/* padding all, left, right, top, bottom, vertical */
.ax-pa1 {padding: 16px; padding: 1rem;}
.ax-pa2 {padding: 32px; padding: 2rem;}

.ax-pl0 {padding-left: 0;}
.ax-pl1 {padding-left: 16px; padding-left: 1rem;}
.ax-pl2 {padding-left: 32px; padding-left: 2rem;}
.ax-pr0 {padding-right: 0;}
.ax-pr1 {padding-right: 16px; padding-right: 1rem;}
.ax-pr2 {padding-right: 32px; padding-right: 2rem;}

.ax-pt1 {padding-top: 16px; padding-top: 1rem;}
.ax-pt2 {padding-top: 32px; padding-top: 2rem;}
.ax-pb1 {padding-bottom: 16px; padding-bottom: 1rem;}
.ax-pb2 {padding-bottom: 32px; padding-bottom: 2rem;}
.ax-pv1 {
    padding-top: 16px;
    padding-top: 1rem;
    padding-bottom: 15px;
    padding-bottom: 1rem;}
.ax-pv2 {
    padding-top: 32px;
    padding-top: 2rem;
    padding-bottom: 32px;
    padding-bottom: 2rem;}

/* margin all, left, right, top, bottom, vertical */
.ax-ma1 {margin: 16px; margin: 1rem;}
.ax-ma2 {margin: 32px; margin: 2rem;}

.ax-ml1 {margin-left: 16px; margin-left: 1rem;}
.ax-ml2 {margin-left: 32px; margin-left: 2rem;}
.ax-mr1 {margin-right: 16px; margin-right: 1rem;}
.ax-mr2 {margin-right: 32px; margin-right: 2rem;}

.ax-mt1 {margin-top: 16px; margin-top: 1rem;}
.ax-mt2 {margin-top: 32px; margin-top: 2rem;}
.ax-mb1 {margin-bottom: 16px; margin-bottom: 1rem;}
.ax-mb2 {margin-bottom: 32px; margin-bottom: 2rem;}
.ax-mv1 {
    margin-top: 16px;
    margin-top: 1rem;
    margin-bottom: 16px;
    margin-bottom: 1rem;}
.ax-mv2 {
    margin-top: 32px;
    margin-top: 2rem;
    margin-bottom: 32px;
    margin-bottom: 2rem;}

/* width and height */
.ax-w-100 {width: 100%;}
.ax-h-100 {height: 100%;}

.ax-w1 {width: 16px; width: 1rem;}
.ax-w2 {width: 32px; width: 2rem;}
.ax-w3 {width: 64px; width: 4rem;}
.ax-w4 {width: 96px; width: 6rem;}
.ax-w5 {width: 128px; width: 8rem;}

.ax-h1 {height: 16px; height: 1rem;}
.ax-h2 {height: 32px; height: 2rem;}
.ax-h3 {height: 64px; height: 4rem;}
.ax-h4 {height: 96px; height: 6rem;}
.ax-h5 {height: 128px; height: 8rem;}

/* nano scroller display size
   applies for tablets and up */
@media (min-width: 740px) {

    .ax-db-ns {display: block;}
    .ax-dib-ns {display: inline-block;}
    .ax-flex-ns {display: flex;}

    .ax-relative-ns {position: relative;}
    .ax-absolute-ns {position: absolute;}

    .ax-minw35-ns {min-width: 35rem;}

    .ax-tl-ns {text-align: left;}
    .ax-tc-ns {text-align: center;}
    .ax-tr-ns {text-align: right;}

    .ax-fl-ns {float: left;}
    .ax-fr-ns {float: right;}

    .ax-f1-ns {font-size: 44px; font-size: 2.50rem;}
    .ax-f2-ns {font-size: 32px; font-size: 2.00rem;}
    .ax-f3-ns {font-size: 24px; font-size: 1.5rem;}
    .ax-f4-ns {font-size: 32px; font-size: 1.25rem;}
    .ax-f5-ns {font-size: 16px; font-size: 1rem;}

    .ax-pa1-ns {padding: 1rem;}
    .ax-pa2-ns {padding: 2rem;}
    .ax-pl0-ns {padding-left: 0;}
    .ax-pl1-ns {padding-left: 1rem;}
    .ax-pl2-ns {padding-left: 2rem;}
    .ax-pr0-ns {padding-right: 0;}
    .ax-pr1-ns {padding-right: 1rem;}
    .ax-pr2-ns {padding-right: 2rem;}
    .ax-pt1-ns {padding-top: 1rem;}
    .ax-pt2-ns {padding-top: 2rem;}
    .ax-pb1-ns {padding-bottom: 1rem;}
    .ax-pb2-ns {padding-bottom: 2rem;}
    .ax-pv1-ns {
        padding-top: 1rem;
        padding-bottom: 1rem;}
    .ax-pv2-ns {
        padding-top: 2rem;
        padding-bottom: 2rem;}

    .ax-ma1-ns {margin: 1rem;}
    .ax-ma2-ns {margin: 2rem;}
    .ax-ml1-ns {margin-left: 1rem;}
    .ax-ml2-ns {margin-left: 2rem;}
    .ax-mr1-ns {margin-right: 1rem;}
    .ax-mr2-ns {margin-right: 2rem;}
    .ax-mt1-ns {margin-top: 1rem;}
    .ax-mt2-ns {margin-top: 2rem;}
    .ax-mb1-ns {margin-bottom: 1rem;}
    .ax-mb2-ns {margin-bottom: 2rem;}
    .ax-mv1-ns {
        margin-top: 1rem;
        margin-bottom: 1rem;}
    .ax-mv2-ns {
        margin-top: 2rem;
        margin-bottom: 2rem;}

    .ax-w-100-ns {width: 100%;}
    .ax-h-100-ns {height: 100%;}

    .ax-w1-ns {width: 1rem;}
    .ax-w2-ns {width: 2rem;}
    .ax-w3-ns {width: 4rem;}
    .ax-w4-ns {width: 6rem;}
    .ax-w5-ns {width: 8rem;}

    .ax-h1-ns {height: 1rem;}
    .ax-h2-ns {height: 2rem;}
    .ax-h3-ns {height: 4rem;}
    .ax-h4-ns {height: 6rem;}
    .ax-h5-ns {height: 8rem;}
}


