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

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

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

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

.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) { 
    .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;
}*/

@media screen and (max-width: 992px){
    .dt-buttons{
        margin-top: 10px;
        margin-bottom: 20px;
    }
}