.fab-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    user-select: none;
    position: absolute;
    bottom: 30px; right: 30px;
}

.fab-container :hover {
      height: 100%;
}
.fab-container .sub-button:nth-child(2) {
    transform: translateY(-80px);
}
.sub-button:nth-child(3) {
    transform: translateY(-140px);
}
.sub-button:nth-child(4) {
    transform: translateY(-200px);
}
.sub-button:nth-child(5) {
    transform: translateY(-260px);
}
.sub-button:nth-child(6) {
    transform: translateY(-320px);
}
    
.fab {
    position: relative;
    height: 70px; width: 70px;
    background-color: rgb(75, 162, 255);
    border-radius: 50%;
    z-index: 2;
}

.fab :before {
    content: " ";
    position: absolute;
    bottom: 0; right: 0;
    height: 35px; width: 35px;
    background-color: inherit;
    border-radius: 0 0 10px 0;
    z-index: -1;
}
      
.fab .fab-content {
    display: flex;
    align-items: center; justify-content: center;
    height: 100%; width: 100%;
    border-radius: 50%;
}

.fab .material-icons {
    color: white;
    font-size: 48px;
}

.fab .sub-button {
    position: absolute;
    display: flex;
    align-items: center; justify-content: center;
    bottom: 10px; right: 10px;
    height: 50px; width: 50px;
    background-color: rgb(75, 162, 255);
    border-radius: 50%;
    transition: all .3s ease;
}

.fab .sub-button :hover {
    cursor: pointer;
 }

 .fab .sub-button .material-icons {
    color: white;
    padding-top: 6px;
}

/* Botón naranja estilo Bootstrap */
.btn.btn-naranja {
    color: #fff !important;
    background-color: #e98000 !important;
    border-color: #e27f06 !important;
}

.btn.btn-naranja:hover {
    color: #fff !important;
    background-color: #e98000 !important;
    border-color: #e27f06 !important;
}

.btn.btn-naranja:focus,
.btn.btn-naranja:active,
.btn.btn-naranja.active {
    color: #fff !important;
    background-color: #e98000 !important;
    border-color: #e27f06 !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 140, 0, 0.4);
}

/* Fondo oscuro a pantalla completa, por encima del modal de pedido */
.overlay-captura {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1080; /* un poco por encima del modal de Bootstrap (1055–1056 aprox) */
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-full-height {
    height: calc(100% - 1rem); /* margen de Bootstrap */
    max-height: calc(100% - 1rem);
}

.modal-full-height .modal-content {
    height: 100%;
}

.menu-chat-card {
    border: 1px solid #e6e9f0;
}

.menu-chat-output {
    border: 1px solid #e6e9f0;
    border-radius: 6px;
    min-height: 100%;
    background: #fbfcff;
    padding: 12px;
}

.menu-chat-messages {
    font-size: 0.9rem;
    color: #6c757d;
    min-height: 40px;
}

.menu-chat-results {
    margin-top: 10px;
}

.menu-chat-results ul {
    padding-left: 18px;
    margin-bottom: 0;
}

.menu-chat-alergenos {
    max-height: 140px;
    overflow: auto;
    border: 1px dashed #e6e9f0;
    padding: 8px;
    border-radius: 6px;
    background: #fff;
}

.alergeno-inactivo {
    filter: grayscale(100%);
    opacity: 0.35;
}

/* Keep addPlato Choices styling minimal and predictable */
#addPlatoModal .choices__inner {
    padding: 0.375rem 0.75rem;
    min-height: 38px;
}

#addPlatoModal .choices[data-type*="select-one"]:after {
    right: 11.5px;
    left: auto;
}

#addPlatoModal .choices[data-type*="select-one"] .choices__button {
    right: 0;
    left: auto;
    margin-right: 25px;
    margin-left: 0;
}

#addPlatoModal .choices__list--dropdown,
#addPlatoModal .choices__list[aria-expanded] {
    max-height: none;
}

/* addChoices-menu (modal Crear Menú): más altura pero mantiene scroll */
#addMenuModal .choices:has(#addChoices-menu) .choices__list--dropdown .choices__list {
    max-height: 35vh;
    overflow: auto;
}

/* Datatable calendario (pestaña Programación): cabecera fija y body con scroll */
#calendario .dataTables_scrollHead {
    overflow: hidden;
}
#calendario .dataTables_scrollBody {
    overflow-y: auto !important;
}
#calendario .dataTables_scrollBody thead th {
    visibility: hidden;
    height: 0;
    padding: 0;
    border: 0;
    line-height: 0;
}
#calendario #datatable-calendario {
    margin-bottom: 0;
}
#calendario .dataTables_processing {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    font-weight: 500;
}
#calendario .dataTables_wrapper {
    position: relative;
    min-height: 120px;
}

/* Datatable escandallo (mantenimientos-platos/edit): cabecera fija y body con scroll */
#escandallo .dataTables_scrollHead {
    overflow: hidden;
}
#escandallo .dataTables_scrollBody {
    overflow-y: auto !important;
}
#escandallo .dataTables_scrollBody thead th {
    visibility: hidden;
    height: 0;
    padding: 0;
    border: 0;
    line-height: 0;
}
#escandallo #datatable-detalle {
    margin-bottom: 0;
}
#escandallo .dataTables_scrollFoot {
    width: 100% !important;
}
#escandallo .dataTables_scrollFootInner {
    width: 100% !important;
    min-width: 100%;
}
#escandallo .dataTables_scrollFoot.escandallo-scrollFoot {
    overflow: hidden;
    border: 1px solid #dee2e6;
    border-top: 0;
    background: #f8f9fa;
}
#escandallo .dataTables_scrollFoot.escandallo-scrollFoot table {
    margin-bottom: 0;
    table-layout: fixed;
    width: 100%;
}
#escandallo .dataTables_wrapper {
    position: relative;
    min-height: 120px;
}

/* Datatable valores nutricionales (mantenimientos-platos/edit): cabecera fija, footer fijo y body con scroll */
#valores-nutricionales .dataTables_scrollHead {
    overflow: hidden;
}
#valores-nutricionales .dataTables_scrollBody {
    overflow-y: auto !important;
}
#valores-nutricionales .dataTables_scrollBody thead th {
    visibility: hidden;
    height: 0;
    padding: 0;
    border: 0;
    line-height: 0;
}
#valores-nutricionales #datatable-valNutricional {
    margin-bottom: 0;
}
#valores-nutricionales .dataTables_scrollFoot {
    width: 100% !important;
}
#valores-nutricionales .dataTables_scrollFootInner {
    width: 100% !important;
    min-width: 100%;
}
#valores-nutricionales .dataTables_scrollFoot.valores-nutricionales-scrollFoot {
    overflow: hidden;
    border: 1px solid #dee2e6;
    border-top: 0;
    background: #f8f9fa;
}
#valores-nutricionales .dataTables_scrollFoot.valores-nutricionales-scrollFoot table {
    margin-bottom: 0;
    table-layout: fixed;
    width: 100%;
}
#valores-nutricionales .dataTables_wrapper {
    position: relative;
    min-height: 120px;
}
