/* =====================================================================
   Materialize 1.0.0 · reglas estructurales mínimas
   El CSS de Materialize ya no se carga; su JS (Modal, Tabs, Toast, textareaAutoResize)
   necesita estas reglas para posicionar y animar sus elementos.
   Solo estructura: los colores y la forma están en 4-components/.
   Si algún día se quita materialize.min.js, este archivo se elimina.
   Basado en Materialize v1.0.0 (MIT) · https://materializecss.com
   ===================================================================== */

/* Modal: el JS fija z-index, display, top, opacity y transform en línea */
.modal {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    margin: 0 auto;
    padding: 0;
    overflow-y: auto;
    will-change: top, opacity;
}

.modal:focus {
    outline: none;
}

.modal .modal-close {
    cursor: pointer;
}

.modal-overlay {
    position: fixed;
    z-index: 999;
    top: -25%;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 125%;
    display: none;
    will-change: opacity;
}

/* Pestañas: el indicador se calcula con position().left relativo a .tabs */
.tabs {
    position: relative;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
}

.tabs .tab {
    flex: 1 1 0;
    min-width: 0;
}

.tabs .indicator {
    position: absolute;
    bottom: 0;
    height: 2px;
    will-change: left, right;
}

/* Toasts: el JS anima top (35px -> 0) y opacity */
#toast-container {
    position: fixed;
    z-index: 10000;
}

.toast {
    position: relative;
    top: 35px;
    opacity: 0;
    cursor: default;
}

/* textareaAutoResize mide el texto en un div oculto que agrega al body */
.hiddendiv {
    position: absolute;
    top: 0;
    z-index: -1;
    box-sizing: content-box;
    visibility: hidden;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

textarea.materialize-textarea {
    overflow-y: hidden;
    resize: none;
}

/* Red de seguridad por si queda alguna clase waves-effect */
.waves-ripple {
    display: none;
}
