/* Utilidad para las vistas de la SPA */
.module-view {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ajustes para el grid del POS (cuando lo construyamos) */
.pos-layout {
    display: flex;
    height: calc(100vh - 80px);
    /* Restando el navbar */
}

.pos-products {
    flex: 2;
    overflow-y: auto;
    padding-right: 15px;
}

.pos-ticket {
    flex: 1;
    background: #fff;
    border-left: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
}

.ticket-items {
    flex-grow: 1;
    overflow-y: auto;
}

/* ========================================== */
/* ESTILOS DEL SIDEBAR (SaaS)                 */
/* ========================================== */

#main-sidebar {
    transition: all 0.3s ease;
    z-index: 1000;
}

/* Personalizar los botones colapsables del menú */
.btn-toggle {
    padding: 0.5rem 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    background-color: transparent;
    border: none;
}

.btn-toggle:hover,
.btn-toggle:focus {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* La flechita rotatoria a la derecha */
.btn-toggle::after {
    content: "\f107";
    /* Icono FontAwesome angle-down */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    float: right;
    transition: transform 0.35s ease;
}

.btn-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* Estilos de los sub-enlaces */
.btn-toggle-nav a {
    padding: 0.35rem 1.5rem;
    margin-top: 0.125rem;
    text-decoration: none;
    border-radius: 5px;
    opacity: 0.8;
}

.btn-toggle-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

/* Scrollbar invisible para el menú lateral */
#main-sidebar::-webkit-scrollbar {
    width: 6px;
}

#main-sidebar::-webkit-scrollbar-thumb {
    background-color: #495057;
    border-radius: 3px;
}

/* Ocultar sidebar suavemente deslizándolo a la izquierda */
#main-sidebar.collapsed {
    margin-left: -260px !important;
}