html,body{
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    height:100%;
    font-size: 14px;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.scheda li{
    padding-bottom: 1em;
}

.wrapper {
    padding: 0 0 1em 0;
    flex: 1;
}

.wrapper .main {
    margin-left: 0px;
    padding: 0.5em;
}

.push {
    height:3em; /* altezza footer */
    clear:both; /* clear di eventuali float se presenti nel layout */
    background-color: #f8f9fa;
}

.bottom {
    -moz-transition: margin-left 0.3s;
    -o-transition: margin-left 0.3s;
    -webkit-transition: margin-left 0.3s;
    transition: margin-left 0.3s;
    color: #fff;
}

.bottom a {
    color: #fff;
}

a {
    color: var(--saga-blue0);
}

body .ui-state-disabled {
    opacity: 1;
}

body .ui-button.ui-button-secondary, body .ui-splitbutton.ui-button-secondary>.ui-button, body .ui-menubutton.ui-button-secondary>.ui-button {
    background: #5A7C86;
}

.bottom a:link {
    text-decoration: underline;
}

.bottom a:link:hover, a:visited:hover  {
    text-decoration : none;
}

body .ui-accordion .ui-accordion-header.ui-state-active:hover {
    background: #dee2e6;
    border-color: #e9ecef;
    color: #495057;
}

body .ui-accordion .ui-accordion-header.ui-state-hover {
    background: #dee2e6;
    border-color: #e9ecef;
    color: #495057;
}

body .ui-selectonemenu-panel .ui-selectonemenu-items .ui-selectonemenu-item.ui-state-hover {
    background: #e9ecef;
    color: #495057;
}

body .ui-paginator .ui-paginator-pages .ui-paginator-page.ui-state-hover {
    background: #e9ecef;
    color: #495057;
}

body .ui-dataview .ui-dataview-header {
    border: 1px solid #e9ecef;
}

body .ui-datatable .ui-datatable-footer {
    border: 1px solid #e9ecef;
}

body .ui-datatable .ui-datatable-data>tr.ui-state-hover {
    background: #e9ecef;
    color: #495057;
}

body .ui-datepicker .ui-datepicker-calendar td>a:hover, body .ui-datepicker .ui-datepicker-calendar td>a.ui-state-hover {
    background: #e9ecef;
    border-color: rgba(0,0,0,0);
}

#top {
    position: relative;
}

:root {
    --saga-blue0: #0B78D5; /* Main color */
    --saga-blue1: #0859A7; /* Hover color */
    --saga-blue2: #0859A7; /* Active color */
    --saga-blue3: #6CBCF9; /* Focus outline color */
    --saga-blue4: #495057; /* Text color */
}

.right {
    float: right;
}

.ui-fluid .ui-panel{
    margin: 1em 0em;
}

.redBlink {
    color: red;
    text-decoration: blink;
}

.red {
    color: red !important;
}

.green {
    color: green !important;
}

.yellow {
    color:  yellow !important;
}

.orange {
    color:  orange !important;
}

.text-red {
    color: red;
}

body .ui-tabs .ui-tabs-panels {
    border: 1px solid #c8c8c8;
}

body .ui-panelgrid-content{
    border: 1px solid #dddddd;
    background: #ffffff;
}

.ui-column-title {
    font-weight: bold !important;
}

.ui-outputlabel .ui-widget{
    font-weight: bold !important;
}

body .ui-outputlabel {
    font-weight: bold !important;
}

/*login*/
body .login-panel {
    display: table;
    margin: 0 auto;
    text-align: center;
    background-color: white;
    border: solid 1px #d5d5d5;
    border-radius: 4px;
    box-shadow: 0 1px 12px 0 rgba(0, 0, 0, 0.24);
    padding: 32px 15px 32px 15px;
}

body .login-panel .title {
    font-size: 20px;
    font-weight: bold;
}

body .login2-panel {
    display: table;
    text-align: center;
}

body .login2-panel .title {
    font-size: 20px;
    font-weight: bold;
}

/*bottone scorrimento in alto*/
.btnToTop {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed/sticky position */
    bottom: 70px; /* Place the button at the bottom of the page */
    right: 30px; /* Place the button 30px from the right */
    z-index: 99; /* Make sure it does not overlap */
    outline: none; /* Remove outline */
    cursor: pointer; /* Add a mouse pointer on hover */
    padding: 15px; /* Some padding */
    width: 40px !important;
    height: 40px !important;
}

@media screen and (max-width: 960px) {
    .menu-mobile {
        display: block !important;
    }

    .layout-wrapper .topbar .topbar-right #menu-button {
        display: block !important;
    }

    .brand-title {
        font-size: 1.25rem;
        font-weight: 600;
        letter-spacing: inherit;
        line-height: 1.1;
        margin-bottom: 0;
    }

    .brand-subtitle {
        font-size: 0.80rem;
    }
}

@media screen and (min-width: 961px) {
    .menu-mobile {
        display: none !important;
    }

    .brand-title {
        font-size: 1.75rem;
        font-weight: 600;
        margin-bottom: 0;
    }
}

/*body .ui-panelgrid .ui-panelgrid-header {
    border: 1px solid #dddddd;
    border-bottom: 1px solid #dddddd;
}

body .ui-selectbooleanbutton, body .ui-selectonebutton > .ui-button, body .ui-selectmanybutton > .ui-button {
    background: #ffffff;
    border: 1px solid #cccccc;
}

body .ui-selectbooleanbutton, body .ui-selectonebutton > .ui-button, body .ui-selectmanybutton > .ui-button {
    color: #292B2C;
    border: 1px solid #cccccc;
}

body .ui-selectbooleanbutton.ui-state-active, body .ui-selectonebutton > .ui-button.ui-state-active, body .ui-selectmanybutton > .ui-button.ui-state-active {
    background: #17A2B8;
    border-color: #148ea1;
    color: #ffffff;
}

body .ui-selectbooleanbutton.ui-state-hover,
body .ui-selectonebutton > .ui-button.ui-state-hover,
body .ui-selectmanybutton > .ui-button.ui-state-hover {
    background: #e6e6e6;
    border-color: #adadad;
    color: #292B2C;
}

.ui-button:not(.ui-button-icon-only) {
    margin-top: 1em;
}*/

/* PrimeFaces Tooltip Styling. Force wordwrap */
.ui-tooltip {
    max-width: 300px;
    white-space: pre-wrap;
}

.brand-subtitle {
    font-weight: 400;
    margin-bottom: 0;
}

/*Serve per il link nel template per saltare sul main della pagina*/
.skip {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip:focus {
    position: static;
    width: auto;
    height: auto;
}

.ui-selectonemenu-panel .ui-selectonemenu-filter-container {
    width: 100%;
}

body .ui-inputfield {
    width: 100%;
}

body .ui-calendar.ui-trigger-calendar input.hasDatepicker{
    width: calc(100% - 2.4em);
}

.p-datepicker {
    width: 100%;
}

.ui-autocomplete {
    width: calc(100% - 2.4em);
}

.ui-autocomplete .ui-autocomplete-input {
    width: calc(100% - 1.7em) !important;
}

.ui-fluid .ui-autocomplete .ui-autocomplete-dropdown.ui-button{
    width: 2.4em !important;
}

.ui-selectonemenu {
    width: calc(100% - 0.7em);
    min-width: 7em !important;
}

.ui-selectonemenu-panel .ui-selectonemenu-list-item {
    white-space: normal;
}

.ui-inputtextarea {
    width: calc(100% - 10px);
}

.ui-autocomplete {
    white-space: nowrap;
}

body .ui-tabs.ui-tabs-left > .ui-tabs-nav, body .ui-tabs.ui-tabs-right > .ui-tabs-nav {
    width: 15%;
}

body .ui-tabs.ui-tabs-left > .ui-tabs-panels, body .ui-tabs.ui-tabs-right > .ui-tabs-panels {
    width: 85%;
}

.ui-dataview-layout-options {
    display: none !important;
}

.container {
    margin-right: auto;
    margin-left: auto;
    padding-left: calc(var(--bs-gutter-x)*.5);
    padding-right: calc(var(--bs-gutter-x)*.5);
    --bs-gutter-x: 24px;
    width: 100%;
}

@media (min-width: 768px) {
    .container {
        max-width: 750px;
    }

    .ui-selectonemenu-panel .ui-selectonemenu-list-item {
        max-width: 700px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 970px;
    }

    .ui-selectonemenu-panel .ui-selectonemenu-list-item {
        max-width: 900px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1170px;
    }

    .ui-selectonemenu-panel .ui-selectonemenu-list-item {
        max-width: 1170px;
    }
}

@media (min-width: 1900px) {
    .container {
        max-width: 1500px;
    }

    .ui-selectonemenu-panel .ui-selectonemenu-list-item {
        max-width: 1400px;
    }
}

a:link, a:visited {
    text-decoration: none;
}

a:link:hover, a:visited:hover  {
    text-decoration : underline;
}

/*header*/
.bg-header {
    background-color: #003274;/*#0059b3;*/
}

.bg-menu {
    background-color: #003882;/*#06c !important;*/
}

.text-blue-header {
    color: #003882;
}

body .ui-button.btn-blue {
    background: #00285c;
    border: #00224f;
    border-color: #00224f;
    color: #fff;
}

body .ui-button.btn-blue:hover, .btn-primarybody .ui-button.btn-blue:focus-visible {
    background: #0053a5;
    color: #fff;
    border-color: #004d99;
    border: #004d99;
}

body .ui-breadcrumb {
    border: none;
}

.ui-message-success, .ui-message-info, .ui-message-error, .ui-message-warn, .ui-message-fatal {
    margin: 0;
}

/*Serve per non far restringere le celle e mostrare sempre il testo completo*/
.ui-datatable table {
    table-layout: auto
}

body .ui-datatable thead th {
    padding: 4px 4px;
}

.ui-datatable thead th, .ui-datatable tbody td, .ui-datatable tfoot td {
    padding: 4px 4px;
    white-space: normal;
}

body .ui-datatable .ui-datatable-data>tr>td {
    padding: 4px 4px;
}

body .ui-datatable .ui-paginator {
    padding: 2px;
}

body .ui-paginator .ui-paginator-current, body .ui-paginator .ui-paginator-rpp-options {
    margin: 2px;
}

body .ui-datatable thead th {
    border: var(--saga-blue4);
}

body .ui-datatable .ui-datatable-header {
    border: var(--saga-blue4);
}

body .ui-paginator {
    border: solid #e9ecef;
}