/* Reducir ancho del panel derecho de botones */
/* Reducir ancho del panel derecho de botones */
.col-lg-3:has(#jazzy-actions) {
    max-width: 200px !important;
    flex: 0 0 200px !important;
}

.col-lg-9 {
    max-width: calc(100% - 200px) !important;
    flex: 0 0 calc(100% - 200px) !important;
}

.submit-row input[type="submit"],
.submit-row button {
    padding: 5px 10px;
    font-size: 0.82rem;
}

/* ── Indentación de submenús del sidebar ────────────────────────────────── */
/* Los links de modelos dentro de cada grupo del menú lateral                */
 
.sidebar-menu .nav-treeview > .nav-item > .nav-link {
    padding-left: 2rem !important;
}

/* ── Sidebar azul oscuro constructora ──────────────────────────────────── */

.app-sidebar,
.app-sidebar .sidebar-wrapper {
    background-color: #1F4E79 !important;
}

/* Texto y links del sidebar */
.sidebar-wrapper a,
.sidebar-wrapper .nav-link,
.sidebar-wrapper .nav-link p {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Hover en links */
.sidebar-wrapper .sidebar-menu > .nav-item:hover > .nav-link,
.sidebar-wrapper .sidebar-menu > .nav-item > .nav-link:hover,
.sidebar-wrapper .nav-treeview > .nav-item > .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

/* Grupo activo / abierto */
.sidebar-wrapper .sidebar-menu > .nav-item.menu-open > .nav-link {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
}

/* Submenú: fondo ligeramente más oscuro */
.sidebar-wrapper .nav-treeview {
    background-color: rgba(0, 0, 0, 0.15) !important;
}

/* Íconos */
.sidebar-wrapper .nav-icon {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Flechas de despliegue */
.sidebar-wrapper .nav-arrow {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Panel de usuario */
.sidebar-wrapper .user-panel .info a,
.sidebar-wrapper .user-panel .info span {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Brand / logo */
.sidebar-brand,
.sidebar-brand .brand-link {
    background-color: #183d5e !important;
    color: #fff !important;
}
.sidebar-brand .brand-text {
    color: #fff !important;
}

/* ── Encabezado de modales con color de marca ──────────────────────────── */
.modal-content {
    overflow: hidden;
}
.modal-header {
    background-color: #1F4E79;
    border-bottom: none;
}
.modal-header .modal-title,
.modal-header .modal-title i {
    color: #fff;
}
.modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Saldos de Almacén: fila sin stock mínimo configurado (aún en 0) */
tr.sin-stock-minimo {
    background-color: #fff3cd !important;
}
tr.sin-stock-minimo td {
    background-color: #fff3cd !important;
}