/*
* main.css
* File include item main specific css only
******************************************************************************/

.required{
    color:  var(--bs-danger);
}

input.required{
    border-color:  var(--bs-danger);
}

thead input {
        width: 100%;
        padding: 3px;
        box-sizing: border-box;
    }
    
table.dataTable thead > tr > th.sorting::after, table.dataTable thead > tr > th.sorting_desc::after{
    top: 23%;
}

.font-small{
    font-size: .8em;
}


.btn-action{
  border: 1px solid #CDCDCD;
  border-radius: 4px;
  padding: 6px 2px 6px 6px;
  box-shadow: 2px 2px 5px #999;
  display: inline-block;
  background-color: #FFF;
}
.btn-action:hover,
.btn-action:focus,
.btn-action:active{
    background: #fff;
    outline: none;
    -webkit-box-shadow: inset 0px 0px 5px #c1c1c1;
    -moz-box-shadow: inset 0px 0px 5px #c1c1c1;
    box-shadow: inset 0px 0px 5px #c1c1c1;
}

.btn-action-dt{
  padding: 6px 8px 6px 10px;
  border: 1px solid #CDCDCD;
  border-radius: 4px;
  box-shadow: 2px 2px 5px #999;
  display: inline-block;
  background-color: #FFF;
  font-size: 16px;
  color: var(--bs-secondary);
}

.btn-action-dt:hover,
.btn-action-dt:focus,
.btn-action-dt:active{
    background: #fff;
    outline: none;
    -webkit-box-shadow: inset 0px 0px 5px #c1c1c1;
    -moz-box-shadow: inset 0px 0px 5px #c1c1c1;
    box-shadow: inset 0px 0px 5px #c1c1c1;
    color: var(--bs-secondary-dark);
}

.menu .app-brand.demo {
  height: 64px;
  margin-top: 12px;
}

.app-brand-logo.demo svg {
  width: 22px;
  height: 38px;
}

.app-brand-text.demo {
  font-size: 1.75rem;
  letter-spacing: -0.5px;
  text-transform: lowercase;
}

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
/* Detached navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 76px !important;
}
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

@media (min-width: 768px) {
    .dataTables_filter{
        float: none!important;
        text-align: center!important;
    }
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.rtl-only {
  display: none !important;
  text-align: left !important;
  direction: ltr !important;
}

[dir='rtl'] .rtl-only {
  display: block !important;
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: var(--bs-primary-light);
  border: 1px solid var(--bs-primary);
}

/* fix colore row datatable*/
table.dataTable > tbody > tr.selected > td.select-checkbox::after, 
table.dataTable > tbody > tr.selected > th.select-checkbox::after {
  margin-top: -18px !important;
}

.table.dataTable>tbody>tr.selected>*{
    color: var(--bs-primary) !important;
    background-color: rgba(var(--bs-primary-rgb),.05) !important;
    box-shadow: unset !important;
    font-weight: 500;
}
table.dataTable > tbody > tr.selected > td.select-checkbox:before, table.dataTable > tbody > tr.selected > th.select-checkbox:before{
    border: 1px solid black !important;
}
table.dataTable tr.selected .btn-outline-secondary{
    color: var(--bs-secondary) !important;
}

body table.dataTable.hover > tbody > tr.selected:hover > *, table.dataTable.display > tbody > tr.selected:hover > *{
    box-shadow: inset 0 0 0 9999px rgba(var(--bs-primary-rgb), 0.035) !important;
}

table.dataTable.hover > tbody > tr:hover > *, table.dataTable.display > tbody > tr:hover > *
{
  box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, 0.035);
  box-shadow: inset 0 0 0 9999px rgba(var(--bs-primary-rgb), 0.04);
}
/* fix colore row datatable*/

/*@media (max-width: 991.98px) { */
    td.truncate {
        max-width:50px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
/*}*/

div.dt-buttons > .dt-button, div.dt-buttons > div.dt-button-split .dt-button{
    padding: 0.5em;
}

/* immagine nella datatable */
.datatable-image{
    width: 100px;
}

.hover-container{
  position: relative;
  width: 100%;
  box-shadow: 0 0.25rem 1rem rgba(161, 172, 184, 0.45); 
  border: 1px solid none;
  border-radius: 10px;
}

.hover-container:hover{
  box-shadow: 0 0 0 transparent;
  border: 1px solid #CDCDCD;
}


.hover-container .image {
  opacity: 1;
  display: block;
  width: 100%;
  height: auto;
  transition: .5s ease;
  backface-visibility: hidden;
  padding: 20px;
}

.hover-container .middle {
  transition: .5s ease;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
}

.hover-container:hover .image {
  opacity: 0.3;
}

.hover-container:hover .middle {
  opacity: 1;
}

.hover-container .text {
  background-color: var(--bs-secondary-dark);
  color: white;
  font-size: 12px;
  padding: 10px 20px;
}

/*table.dataTable tr th.select-checkbox.selected::after {
    content: "✔";
    margin-top: -11px;
    margin-left: -4px;
    text-align: center;
    text-shadow: rgb(176, 190, 217) 1px 1px, rgb(176, 190, 217) -1px -1px, rgb(176, 190, 217) 1px -1px, rgb(176, 190, 217) -1px 1px;
}


table.dataTable th.select-checkbox::before {
    content: ' ';
    margin-top: 2px;
    margin-left: 14px;
    border: 1px solid black;
    border-radius: 3px;
    width: 12px;
    height: 12px;
    display: block;
}*/

.yadcf-filter-wrapper {
  margin-left: 0px;
  width: 100%;
}

.yadcf-filter,.yadcf-filter-date {
  height: 27px;
  background-color: #FFF;
  border: 1px solid #666;
  margin-left: 0px;
  margin-top: 12px;
  margin-bottom: 6px;
  width: 100%;
  border-top-right-radius: 0px;
  border-bottom-right-radius: 0px;
}

.yadcf-filter-reset-button {
  padding: 3px 6px;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
  border-top-right-radius: 2px;
  border-bottom-right-radius: 2px;
  height: 27px;
  line-height: 20px;
  font-family: var(--fa-style-family-classic);
  font-size: 9px;
  top: -1px;
  position: relative;
  border: 0px;
  background-color: #f5d0f7;
  color: #fff;
}

.inuse, .ui-slider-range .inuse, .yadcf-filter-range-number-slider .inuse {
  background: var(--bs-primary-light);
}

.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal) .layout-page::before {
  content: "";
  width: 100%;
  height: 4.75rem;
  position: fixed;
  top: 0px;
  z-index: 10;
}

.layout-navbar-fixed .layout-page::before {
  backdrop-filter: saturate(200%) blur(10px);
  background: linear-gradient(180deg, rgba(245, 245, 249, 0.7) 44%, rgba(245, 245, 249, 0.43) 73%, rgba(245, 245, 249, 0));
  -webkit-mask: linear-gradient(#f5f5f9, #f5f5f9 18%, transparent 100%);
  mask: linear-gradient(#f5f5f9, #f5f5f9 18%, transparent 100%);
}


.text-assegnato{
    color: green;
}

/* rating - start */
.rating-box .feed_title,
#valutazione_positiva .feed_title,
#valutazione_negativa .feed_title{
    text-decoration: none;
    font-weight: bold;
}

.rating-box ul {
    margin: 0;
    padding: 0;
}

.rating-box li {
    cursor: pointer;
    list-style-type: none;
    display: inline-block;
    color: #F0F0F0;
    text-shadow: 0 0 1px #666666;
    font-size: 30px;
}

.rating-box .highlight, .rating-box .selected {
    color: #F4B30A;
    text-shadow: 0 0 1px #F48F0A;
}

.cmp-card-latest-messages .rating-box li {
    cursor: default;
    list-style-type: none;
    display: inline-block;
    color: #F0F0F0;
    text-shadow: 0 0 1px #666666;
    font-size: 26px;
    line-height: 1em;
}

.cmp-card-latest-messages .rating-box .highlight, .cmp-card-latest-messages .rating-box .selected {
    color: #F4B30A;
    text-shadow: 0 0 1px #F48F0A;
}

.cmp-nav-steps .btn:not(:first-child) {
  width: auto;
}

table .rating-box li {
  font-size: 18px;
}

.rating-box #loader-icon {
    display: none;
    vertical-align: top;
}

.rating-box #image-size {
    width: 30px;
}
/* rating - end */