html, body {
  /*font-family: 'Montserrat', sans-serif;*/
  font-family: 'LatoRegular', sans-serif;
  font-size: medium;
  font-weight: 200;
}

header{
    width: 100%;
    height: 60px; 
    background-color: #fafafa;
}

.main{
    width: calc(100vw - 260px);
}

.main-s{
    width: calc(100vw - 20px);
}


/* Mark per la datatable */
mark{
    /*background:#fdfd86;   giallo acceso
    background:#FAC898;     orange pastello*/
    background:#FDDA0D;     /*cadmium yellow*/
    color:black;
    padding:0;
}



/* SPINNER LOADING */
.loadmess {
    font-family: 'LatoRegular', sans-serif; font-weight: 600;
    opacity: 0.8;
    position: absolute;
    left: 38vw;
    top: 50vh;
    z-index: 99999;
}

.popover {
   max-width: max-content;
   background-color: #fff9e6;
   /*border:none;
   border-radius:unset;
   min-width:100px;
   width:100%;*/
   overflow-wrap:break-word;
}
.popover-header {
    font-weight: 600;
}


.displaytable table { 
    border-collapse: collapse; 
    margin:50px auto;
}

/* Zebra striping */
/*.displaytable tr:nth-of-type(odd) {
    background: #eee;
}*/

.displaytable th { 
    background: #397dfb;
    color: white; 
    font-weight: bold; 
}

.displaytable td, th { 
    padding: 10px; 
    border: 1px solid #ccc; 
    text-align: left; 
    font-size: 15px;
}

 
.displaytable table.dataTable.stripe > tbody > tr.odd > *, table.dataTable.displaytable > tbody > tr.odd > * {
    box-shadow: inset 0 0 0 9999px #e9ecef !important;
}
 
.displaytable table.dataTable tbody th, table.dataTable tbody td {
    padding: 0px 10px !important;
} 


/* 
Max width before this PARTICULAR table gets nasty
This query will take effect for any screen smaller than 760px
and also iPads specifically.
*/
@media only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px)  {

    .displaytable table {
        width: 100%; 
    }

    /* Force table to not be like tables anymore */
    .displaytable table, thead, tbody, th, td, tr { 
        displaytable: block; 
    }

            /* Hide table headers (but not display: none;, for accessibility) */
    .displaytable thead tr { 
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .displaytable tr { border: 1px solid #ccc; }

    .displaytable td { 
        /* Behave  like a "row" */
        border: none;
        border-bottom: 1px solid #eee; 
        position: relative;
        padding-left: 50%; 
    }

    .displaytable td:before { 
        /* Now like a table header */
        position: absolute;
        /* Top/left values mimic padding */
        top: 6px;
        left: 6px;
        width: 45%; 
        padding-right: 10px; 
        white-space: nowrap;
        /* Label the data */
        content: attr(data-column);

        color: #000;
        font-weight: bold;
    }


    .displaytable table.dataTable.stripe > tbody > tr.odd > *, table.dataTable.displaytable > tbody > tr.odd > * {
        box-shadow: inset 0 0 0 9999px #e9ecef !important;
    }
    .displaytable table.dataTable tbody th, table.dataTable tbody td {
        padding: 0px 10px !important;
    } 
 
}

.icone {
    height: 30px;
    width: 30px;
    /*display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;*/
    align-items: center;
    /*padding: 0.375rem 0.66rem;*/
    padding: 0.4rem 0.5rem;
    /* font-size: 1.1rem;
    font-weight: 400; */
    /*line-height: 1.5;*/
    color: #fcfcfc;     /* Bianco ma non completamente */
    text-align: center;
    white-space: nowrap;
    background-color: #5d5386;
    border-radius: 100%;
    /*box-shadow: 2px 3px 8px 1px #aea9c3;*/
    box-shadow: 2px 3px 8px 1px #808080;
    -webkit-transition: opacity .3s ease-in-out;
    -moz-transition: opacity .3s ease-in-out;
    -ms-transition: opacity .3s ease-in-out;
    -o-transition: opacity .3s ease-in-out;
    transition: opacity .3s ease-in-out;
}

.icone:disabled, .icone:disabled:hover {
	opacity: .40;
}

.icone:hover{
	opacity: 0.7;
}

button.icone {
	padding: 0;
	border: 0;
}


.btn-round {
    font-weight: 600 !important;
    line-height: 1.25;
    border: 2px solid transparent;
    padding: 8px 8px;
    /* font-size: 0.85rem; */
    border-radius: 60px;
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
    /*box-shadow: 2px 3px 8px 1px #aea9c3;*/
    box-shadow: 2px 3px 8px 1px #808080;
    color: #f5f5f5;         /* Bianco ma non completamente */
    background-color: #5d5386;
}

.btn-round.btn-sm-round {
    font-weight: 500 !important;
    font-size: 14px;
    padding: 5px 5px;
}
/* Con i colori bootstrap */
.btn-round-primary {
    background-color: #397dfb;
}
.btn-round-secondary {
    background-color: #6c757d;
}
.btn-round-success {
    background-color: #198754;
}
.btn-round-info {
    background-color: #0dcaf0;
}
.btn-round-danger {
    background-color: #dc3545;
}
.btn-round-warning {
    background-color: #5d5386;	/* il viola*/
}

.btn-round:hover {
  opacity: .70;
}
.btn.disabled {
    background-color: #5d5386;
    color: #f5f5f5;         /* Bianco ma non completamente */
    opacity: 0.4;
}

/* Rating stars */
.rate {
    float: left;
    height: 46px;
    padding: 0 10px;
}
.rate:not(:checked) > input {
    position:absolute;
    top:-9999px;
}
.rate:not(:checked) > label {
    float:right;
    width:1em;
    overflow:hidden;
    white-space:nowrap;
    cursor:pointer;
    font-size:30px;
    /*color:#ccc;*/
    color: slategray;
}
.rate:not(:checked) > label:before {
    content: '★ ';
}
.rate > input:checked ~ label {
    /*color: #ffc700;*/
    color: #f1af09;
}
.rate:not(:checked) > label:hover,
.rate:not(:checked) > label:hover ~ label {
    /*color: #deb217;*/
    opacity: .7;
}
.rate > input:checked + label:hover,
.rate > input:checked + label:hover ~ label,
.rate > input:checked ~ label:hover,
.rate > input:checked ~ label:hover ~ label,
.rate > label:hover ~ input:checked ~ label {
    color: #c59b08;
}


/* MODALI */
.modal-dialog.modal-xlg {
  max-width: 85%;
}
.modal-dialog.modal-super-xlg {
  max-width: 92%;
}

.modal{
    background-color: rgba(90,90,90,0.4);
}	

.modal-header-danger {
    color:#fff;
    padding:9px 15px;
    border-bottom:1px solid #eee;
    background-color: #d9534f;
    -webkit-border-top-left-radius: 5px;
    -webkit-border-top-right-radius: 5px;
    -moz-border-radius-topleft: 5px;
    -moz-border-radius-topright: 5px;
     border-top-left-radius: 5px;
     border-top-right-radius: 5px;
}

/* Centra l'alert */
.center-modal.modal {
	position: fixed;
	/* top: 10%;
	left: 18.5%;
	width: 80%;
	height: 80%;
	margin-left: -10%;
 */}



/* AUTOCOMPLETE */
.autocomplete {
    display: block;
    background: green;
    background: #383b5c;

    width: 250px;
    max-height: 250px;
    overflow-y: auto; 
    z-index :10000;
    margin-left: 6px;
}

.autocomplete li {
    list-style: none;
    padding: 5px;
    border-bottom : 1px solid #fff;
    color : #fff;
}

.autocomplete li:hover {
    background: lightgreen;
    background: #ffc10778;
    cursor: pointer;
}





.animate-show {
  -webkit-transition:all linear 2.5s;
  -moz-transition:all linear 2.5s;
  -o-transition:all linear 2.5s;
  transition:all linear 2.5s;
  line-height:20px;
  opacity:1;
  padding:10px;
  border:1px solid black;
  background:white;
}

.animate-show.ng-hide-add,
.animate-show.ng-hide-remove {
  display: block !important;
}

.animate-show.ng-hide {
  line-height:0;
  opacity:0;
  padding:0 10px;
}

.check-element {
  padding: 10px;
  border: 1px solid black;
  background:white;
}


.popover-header {
	/*background-color: #4d94ff;	Azzurro */
	background-color: #cc8800;
	color: #f9f9f9;
}

/*.truncate {
  width: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}*/
.truncate-line {
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    padding: 5px;
    text-overflow: ellipsis;
}
.popover {
    max-width: 96%; /* Max Width of the popover (depending on the container!) */
}


/* Personalizzazioni per la ui-grid */
/*.grid {
	height: 80vh;
	width: 100%;
}*/
.ui-grid-header-cell, .ui-grid-footer-cell {
	background-color: #397dfb;
	color: white;
	/*height: 38px;*/
	align-content: center;
}
.expandableRow .ui-grid-header-cell {
    background-color: #b4d8fd;
	color: #000;
	font-weight: bold;
	height: 30px;
	border-bottom: 2px solid gray;
}
.ui-grid-icon-plus-squared:before {
	content: '\C35b';
	font-size: 1.3em;
	padding:0;
	margin-left:2px;
}
.ui-grid-icon-minus-squared:before {
	content: '\C358';
	font-size: 1.3em;
	padding:0;
	margin-left:2px;
}

/* Unselected row */
/*.grid-unselect .ui-grid-row:hover > [ui-grid-row] > .ui-grid-cell:hover .ui-grid-cell,*/
.grid-unselect .ui-grid-row:nth-child(odd):hover .ui-grid-cell {
	background-color: #fdfdfd;
}

/*.grid-unselect .ui-grid-row:hover > [ui-grid-row] > .ui-grid-cell:hover .ui-grid-cell,*/
.grid-unselect .ui-grid-row:nth-child(even):hover .ui-grid-cell {
	background-color: #f3f3f3;
}

/* Slected row */
/*.ui-grid-row:hover > [ui-grid-row] > .ui-grid-cell:hover .ui-grid-cell,*/
.ui-grid-row:nth-child(odd):hover .ui-grid-cell {
	background-color: #fcf7dc;
}

/*.ui-grid-row:hover > [ui-grid-row] > .ui-grid-cell:hover .ui-grid-cell,*/
.ui-grid-row:nth-child(even):hover .ui-grid-cell {
	background-color: #fcf7dc;
}

/* Elimina lo striped -->
.ui-grid-row:nth-child(odd) .ui-grid-cell, .expandableRow .ui-grid-row:nth-child(odd) .ui-grid-cell {
    background-color: #fdfdfd;
}

.ui-grid-row:nth-child(even) .ui-grid-cell, .expandableRow .ui-grid-row:nth-child(even) .ui-grid-cell {
    background-color: #fdfdfd;
}

/* per i campi imput bootstrap
.form-control {padding-top:3px !important;padding-bottom:3px !important;}
*/


.footer {
    position: fixed;
    bottom: 10px;
    left: 50%;
    font-size: 14px;
    text-align:center;
}