/********************************************************************/
.result-item {
    cursor: pointer;
}

.muted-mini {
    font-size: .85rem;
    opacity: .8;
}

.table td,
.table th {
    vertical-align: middle;
}

.kpi {
    font-variant-numeric: tabular-nums;
}

button.btnAddFood {
    font-size: 15px;
    border-radius: 24px;
}

.modal-header button.btn-close {
    align-self: flex-start;
}
/********************************************************************/

.card-header.d-flex.flex-wrap.align-items-center.justify-content-between {
    background: #ececec;
}

div#resultsList .text-secondary.muted-mini.row-plus {
    font-size: 21px;
    font-weight: 600;
}

.modal-header {
    background: #ececec;
}

.modal-dialog-scrollable {
    height: 100% !important;
}

.modal-dialog-scrollable .modal-body {
    min-height: 45vh;
    max-height: 73vh;
}


#StickySearchForm {
    position: sticky;
    top: -18px;
    z-index: 99;
    background: #ffffff;
    padding-bottom: 13px;
    box-shadow: rgba(33, 35, 38, 0.1) 0px 10px 10px -10px;
}


#searchQ::-webkit-search-cancel-button {
    font-size: 42px;
    background: #f1f1f1!important;
}


/*********************************** CSS COLORS BOOTSTRAP *********************************/
.btn-primary {
    --bs-btn-bg: #1b1b1b !important;
    --bs-btn-border-color: #1b1b1b !important;
    --bs-btn-hover-bg: #423f3f !important;
    --bs-btn-hover-border-color: #423f3f !important;
    --bs-btn-active-bg: #1b1b1b !important;
    --bs-btn-active-border-color: #1b1b1b !important;
}

/******************************************************************************************/


.hover-zoom-image {
    height: 200px;
    position: absolute;
    z-index: 9999!important;
    top: -133px;
    left: 70px; /* fuori dal flusso del mouse */
    pointer-events: none;
    border-radius: 8px;
    
    box-shadow: rgba(0, 0, 0, 0.15) -2.4px 2.4px 3.2px;
}

#mealsWrap table tr[data-item], #mealsWrap table tr[data-item] td {
    /***background: #fff8e5;***/
    background: #ddecdb;
}

@media screen and (max-width: 580px) {
    .modal-dialog.modal-lg.modal-dialog-scrollable {
        margin: 0;
    }

    .modal-dialog {
        align-content: end;
    }

    /* Initial state: Hidden below the screen */
    .modal.fade .modal-dialog {
        transform: translate(0, 100%) !important;
        transition: transform 0.6s ease-out !important;
    }

    /* Final state: Visible in the center/top */
    .modal.show .modal-dialog {
        transform: translate(0, 0) !important;
    }

    .modal.show .modal-dialog .modal-content {
        border-bottom-right-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
    }

    button.btnAddFood {
        width: 100%;
        padding: 6px;
        font-weight: 500;
    }


 /**********************************************************************/
  
  #mealsWrap table thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }
  
  #mealsWrap table tr {
    display: block;
    box-shadow: rgba(0, 0, 0, 1.1) 0px 1px 13px -4px;
    padding: 10px;
  }
  
  #mealsWrap table tr[data-item] {
      margin-bottom: .95em;
  }
  
  #mealsWrap table td {
    border-bottom: 1px solid #ddd;
    display: block;
    font-size: .8em;
    text-align: right;
  }
  
  #mealsWrap table td::before {
    /*
    * aria-label has no advantage, it won't be read inside a table
    content: attr(aria-label);
    */
    content: attr(data-label);
    float: left;
    font-weight: bold;
    text-transform: uppercase;
  }
  
  #mealsWrap table td:last-child {
    border-bottom: 0;
  }
  
  button.btn-outline-danger.btnRemove {
      width: 100%!important;
  }
}

.toast.global-messages .toast-header svg {
    width: 30px;
}

div#MainContainer_AdminPanel {
    position: fixed;
    bottom: 0;
    right: 0;
    display: grid !important;
    min-height: 100vh !important;
    width: 0%;
    gap: 25px;
    align-content: end;
    margin: 0 365px 15px 0px;
}

button.btn-outline-danger.btnRemove {
    position: relative;
    height: 20px;
    width: 20px;
    padding: 0;
    border-radius: 50px;
    font-size: 22px;
    vertical-align: -webkit-baseline-middle;
    line-height: 1;
}

button.btn-outline-danger.btnRemove span {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    line-height: 15px;
}

.toast.first-div.global-messages {
    transition: margin .6s linear;
}