﻿
/* Verde principal suave */
:root {
    --verde-principal: #34b97f; /* verde elegante */
    --verde-hover: #2fa06f; /* hover */
    --verde-oscuro: #1f8f63;
    --verde-fondo: #eafaf3; /* muy sutil */
    --gris-texto: #475569;
    --gris-texto: #475569;
    --gris-oscuro: #1e293b;
    --gris-borde: #e2e8f0;
    --color-brand: #6f42c1; /* aquí colocas el color principal de tu sistema */
}


/*
    Contenido adicional para estilos personalizados pata botones y tablas
*/

/*Card / Header*/
.card-header-moderno {
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
    background: #ffffff;
    overflow: hidden; /* <--- ESTO ELIMINA LOS ESPACIOS BLANCOS EN LAS ESQUINAS */
    border: none; /* Asegúrate de quitar bordes predeterminados */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.header-almacenes {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient( 180deg, rgba(234, 250, 243, 0.6) 0%, rgba(234, 250, 243, 0.3) 85%, transparent 100% );
    overflow: visible !important;
    position: relative;
    z-index: 10; /* Dale un nivel de capa base */
    border-radius: 16px 16px 16px 16px !important;
    align-items: flex-end;
}

.card-header {
    border-radius: 16px 16px 16px 16px !important;
}


.card-almacenes {
    margin-bottom: 0.5rem; /* o 0.5rem si quieres aire leve */
    overflow: visible !important;
    border-radius: 16px !important;
}


/*Título*/

.header-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: 0.2px;
}

.header-icon {
    font-size: 1.1rem;
    color: var(--verde-principal);
}

/* Fuerza al d-flex a no cambiar de altura */
/*.header-almacenes .d-flex {
    height: 70px;*/ /* Ajusta a la altura real de tus inputs + labels */
    /*align-items: flex-end;*/ /* Alinea todo al fondo */
/*}*/

/*Botón “Nuevo” (ajuste fino, no reinventar)*/
.btn-almacen-moderno {
    background: linear-gradient( 135deg, var(--verde-principal), var(--verde-hover) );
    color: #ffffff;
    border: none;
    padding: 8px 20px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(52, 185, 127, 0.35);
}

    /* 🔴 AQUÍ matamos el azul bootstrap */
    .btn-almacen-moderno:hover,
    .btn-almacen-moderno:focus,
    .btn-almacen-moderno:active {
        background: linear-gradient(135deg, #0d9488, #2dd4bf);
        box-shadow: 0 14px 36px rgba(20, 184, 166, 0.45);
        outline: none;
    }

    /* Quitar glow azul de focus */
    .btn-almacen-moderno:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.35);
    }

.btn-cancelar-moderno {
    background: linear-gradient(135deg, #ef5350, #e53935);
    box-shadow: 0 8px 24px rgba(229, 57, 53, 0.30);
}

    .btn-cancelar-moderno:hover,
    .btn-cancelar-moderno:focus,
    .btn-cancelar-moderno:active {
        background: linear-gradient(135deg, #f87171, #ef4444);
        box-shadow: 0 14px 36px rgba(239, 68, 68, 0.45);
    }

/*Icon wrapper (más elegante)*/

.icon-wrapper {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.btn-text {
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}


/*responseive */
/* Contenedor principal */
.header-almacenes-flex {
    display: flex;
    flex-wrap: wrap; /* Permite que los elementos bajen en pantallas pequeñas */
    align-items: center;
    gap: 1rem;
    width: 100%;
}

/* Desktop y Tablet */
.buscador-container {
    max-width: 400px;
}

.accion-container {
    flex: 0 1 auto; /* Se ajusta a su contenido */
    min-width: 160px;
}

.selector-container {
    max-width: 320px;
    margin-left: auto; /* En desktop lo empuja a la derecha */
}

/* Mobile (Ajustes finales) */
@media (max-width: 768px) {
    .header-almacenes-flex {
        flex-direction: column; /* Apila todo en vertical */
        align-items: stretch; /* Estira los botones al ancho total */
    }

    .selector-container, .buscador-container, .accion-container {
        max-width: 100%; /* Quita restricciones de ancho */
        margin-left: 0; /* Quita el empuje a la derecha */
    }

    .ms-auto {
        margin-left: 0 !important;
    }
}



/*cabecera de tabla*/
/*Header de la tabla (más moderno, menos “bloque”)*/
.thead-moderna {
    /* Un verde esmeralda extremadamente suave para el fondo */
    background-color: rgba(72, 187, 148) !important;
}

    .thead-moderna th {
        /* Color de texto pizarra oscuro, más moderno que el gris mutado */
        color: #ffffff !important;
        font-weight: 700 !important;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        font-size: 0.7rem !important;
        border-bottom: 2px solid rgba(72, 187, 148, 0.2) !important; /* Línea de color a juego */
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }

        /* Efecto de redondeado en las esquinas de la cabecera */
        .thead-moderna th:first-child {
            border-top-left-radius: 8px;
        }

        .thead-moderna th:last-child {
            border-top-right-radius: 8px;
        }

/*alto del contenido de una tabla*/


.thead-moderna {
    background: linear-gradient(135deg, var(--verde-principal), var(--verde-hover));
}

    .thead-moderna th {
        color: #ffffff !important;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        font-size: 0.72rem;
        padding: 14px 16px !important;
        border-bottom: none !important;
    }

        .thead-moderna th:first-child {
            border-top-left-radius: 14px;
        }

        .thead-moderna th:last-child {
            border-top-right-radius: 14px;
        }
/*Contenedor de la tabla (tarjeta moderna)*/
.tabla-contenedor-moderno {
    min-height: 600px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    padding: 0;
}

/*Filas: aire + hover elegante*/
.table tbody tr {
    transition: all 0.25s ease;
}

    .table tbody tr:hover {
        background-color: var(--verde-fondo);
        transform: scale(1.002);
    }

.table td {
    vertical-align: middle;
    padding: 14px 16px !important;
    border-top: 1px solid var(--gris-borde);
}

/*Texto (más jerarquía visual)*/
.text-modern-muted {
    color: var(--gris-texto) !important;
    font-weight: 400;
    font-size: 0.9rem;
}

.text-modern-dark {
    color: var(--gris-oscuro) !important;
    font-weight: 600;
}
/* HTML (solo ese td) botones dentro de la tabla*/
.badge-principal {
    background: var(--verde-fondo);
    color: var(--verde-hover);
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.75rem;
}

.badge-secundario {
    background: #f1f5f9;
    color: #64748b;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.75rem;
}

.btn-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.25s ease;
}


.btn-soft-warning {
    background: #fff7ed;
    color: #d97706;
    border: none;
}

    .btn-soft-warning:hover {
        background: #fde68a;
        transform: scale(1.08);
    }



/*Botón de acciones (más limpio)*/

/* codigo para modales 1*/

/* 3. Botón Cancelar (Minimalista, no compite con el principal) */



.modal-content-moderno {
    border: none;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.15);
    overflow: hidden;
    animation: modalFadeUp 0.35s ease;
}

@keyframes modalFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header-moderno {
    background: linear-gradient(135deg, var(--verde-principal), var(--verde-hover));
    color: white;
    padding: 1.4rem 1.6rem;
    border-bottom: none;
}

.modal-title-moderno {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.3px;
}

.modal-body {
    padding: 1.6rem;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(6px);
}

.form-control {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 12px 14px;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

    .form-control:focus {
        border-color: var(--verde-principal);
        box-shadow: 0 0 0 4px rgba(52, 185, 127, 0.18);
    }

.modal-footer-moderno {
    border-top: none;
    padding: 1.2rem 1.6rem;
    background: #f8fafc;
    display: flex;
    justify-content: flex-end;
    gap: 14px;
}

.btn-guardar-moderno2 {
    background: linear-gradient(135deg, var(--verde-principal), var(--verde-hover));
    color: #ffffff;
    border: none;
    padding: 11px 28px;
    border-radius: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 10px 24px rgba(52, 185, 127, 0.35);
    transition: all 0.3s ease;
}

    .btn-guardar-moderno2:hover {
        background: linear-gradient(135deg, var(--verde-hover), var(--verde-oscuro));
        transform: translateY(-2px);
        box-shadow: 0 14px 32px rgba(47, 160, 111, 0.4)
    }

.btn-cancelar-moderno2 {
    background: #f1f5f9;
    color: var(--gris-texto);
    border: 1px solid #e2e8f0;
    padding: 11px 26px;
    border-radius: 14px;
    font-weight: 600;
    transition: all 0.25s ease;
}

    .btn-cancelar-moderno2:hover {
        background: #e2e8f0;
        color: #1e293b;
    }

.modal-backdrop.show {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(3px);
}


/* para check box*/
/* switch */
.form-switch-moderno .form-check-input {
    margin: 0; /* elimina desplazamiento */
}

    /* Base del switch */
    .form-switch-moderno .form-check-input {
        width: 38px;
        height: 20px;
        margin: 0;
        background-color: #e5e7eb;
        border: none;
        border-radius: 999px;
        position: relative;
        cursor: pointer;
        transition: background-color 0.25s ease;
    }

        /* Círculo */
    .form-switch-moderno .form-check-label {
        margin: 0;
        line-height: 1.2;
    }


        /* Activo */
        .form-switch-moderno .form-check-input:checked {
            background-color: var(--verde-principal);
        }

            .form-switch-moderno .form-check-input:checked::before {
                transform: translateX(18px);
            }

        /* Focus */
        .form-switch-moderno .form-check-input:focus {
            box-shadow: 0 0 0 3px rgba(52, 185, 127, 0.18);
        }

    /* Label */
    .form-switch-moderno .form-check-label {
        cursor: pointer;
        color: #334155;
        user-select: none;
    }


    /*para buscar input y boton*/
/* Contenedor */
.buscador-moderno {
    border-radius: 12px;
    overflow: hidden; /* Une input + botón visualmente */
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    background: #ffffff;
}

/* Input */
.buscador-input {
    border: none;
    padding: 0.55rem 0.75rem;
    font-weight: 500;
    color: #1e293b;
}

    .buscador-input::placeholder {
        color: #94a3b8;
        font-weight: 400;
    }

    .buscador-input:focus {
        box-shadow: none;
        border: none;
    }

/* Botón */
.buscador-btn {
    background: linear-gradient(180deg, #48bb94, #34a07b);
    border: none;
    padding: 0 16px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

    .buscador-btn i {
        font-size: 1.05rem;
    }

    /* Hover elegante */
    .buscador-btn:hover {
        filter: brightness(1.06);
    }

    /* Active (click) */
    .buscador-btn:active {
        transform: scale(0.96);
    }


/*diseño pata la paginacion */
/* Contenedor */
.paginacion-wrapper {
    display: flex;
    justify-content: center;
}

/* Lista */
.paginacion {
    display: flex;
    gap: 6px;
    padding: 6px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    list-style: none;
    margin: 0;
}

/* Item */
.paginacion-item {
    display: flex;
}

/* Botón base */
.paginacion-btn {
    min-width: 34px;
    height: 34px;
    border-radius: 10px;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 0.85rem;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

    /* Hover */
    .paginacion-btn:hover {
        background: rgba(72, 187, 148, 0.15);
        color: #166534;
    }

/* Activo */
.paginacion-item.active .paginacion-btn {
    background: linear-gradient(180deg, #48bb94, #34a07b);
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(52, 160, 123, 0.35);
}

/* Click */
.paginacion-btn:active {
    transform: scale(0.92);
}


/*para los selectores*/


.select-wrapper {
    position: relative;
    width: 100%;
}

.select-trigger {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    font-size: 0.9rem;
    color: #1e293b;
    cursor: pointer;
    transition: all .2s ease;
    box-sizing: border-box;
    /* ... tus estilos anteriores ... */
    white-space: nowrap; /* Evita que el texto salte a otra línea */
    overflow: hidden; /* Corta lo que sobre */
    text-overflow: ellipsis; /* Agrega los "..." si el texto es muy largo */
    display: flex;
    align-items: center;
    gap: 8px;
}

    .select-trigger:hover {
        border-color: #94a3b8;
    }

    .select-trigger.open {
        border-color: #48bb94;
        box-shadow: 0 0 0 4px rgba(72,187,148,.18);
    }

.select-arrow {
    font-size: 1rem;
    color: #64748b;
    transition: transform .2s ease;
}

.select-trigger.open .select-arrow {
    transform: rotate(180deg);
}

.select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1060;
    max-width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
    padding: 6px;
    margin: 0;
    list-style: none;
    overflow: hidden;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.select-text {
    flex: 1; /* Empuja la flecha a la derecha */
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.select-option {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

    .select-option:hover {
        background: rgba(72,187,148,.12);
        color: #065f46;
    }

    .select-option.active {
        background: rgba(72,187,148,.18);
        font-weight: 600;
        color: #065f46;
    }

    .select-dropdown li {
        list-style: none;
    }

.generic-select-container {
    position: relative;
    display: flex;
    flex-direction: column;
}

.select-search {
    padding: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.select-search-input {
    width: 100%;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
    outline: none;
    transition: all .2s ease;
}

    .select-search-input:focus {
        border-color: #34d399;
        box-shadow: 0 0 0 3px rgba(52, 211, 153, .2);
    }
.select-options {
    max-height: 220px;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 6px;
    z-index: 1001;
}

.select-empty {
    padding: 12px;
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
}

.select-overlay {
    position: fixed;
    inset: 0;
    z-index: 998;
}

/* Forzamos a que el placeholder no tenga un comportamiento distinto a los demás */
.select-option.placeholder.active {
    background: rgba(72,187,148,.18) !important; /* Tu verde suave */
    color: #065f46 !important;
    font-weight: 600;
}

/* Si el valor NO es nulo (o sea, seleccionaste F o M), 
   el placeholder debe verse exactamente como la M: sin fondo */
.select-option.placeholder:not(.active) {
    background: transparent;
    color: #1e293b;
    font-weight: 500;
}

/*codigopara probar cuando hay muchos elementos em el selector*/
/*.select-options {*/
    /* 1. Define el tamaño máximo que quieres (ej. 5 o 6 elementos) */
    /*max-height: 250px;*/
    /* 2. Importante: 'auto' permite que si hay solo 2 items, el div mida lo justo */
    /*height: auto;*/
    /* 3. Muestra scroll solo cuando los items superan el max-height */
    /*overflow-y: auto;*/
    /* Reset de padding para que no sume espacio extra */
    /*margin: 0;
    padding: 4px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}*/

/* Asegura que el contenedor del dropdown no fuerce un alto fijo */
/*.select-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
    padding: 4px;*/ /* Un poco de respiro interno */
    /*z-index: 1000;*/
    /* Esto permite que el dropdown crezca con el contenido */
/*height: max-content;
    display: flex;
    flex-direction: column;

        .select-options::-webkit-scrollbar {
    width: 6px;
}

.select-options::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

.select-options::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}
}*/


.flatpickr-calendar {
    z-index: 1060 !important;
}

/* Evita que el modal recorte el calendario si es muy largo */
.modal-content {
    overflow: visible !important;
}


/*para los inputs*/
/* Aplicamos tu diseño moderno a todos los inputs de Blazor */
/*.form-control {
    height: 42px !important;*/ /* Altura idéntica a tu select-trigger */
    /*border-radius: 12px !important;*/ /* Bordes redondeados de 12px como tus imágenes */
    /*border: 1px solid #e2e8f0 !important;
    padding: 0 14px !important;
    font-size: 0.9rem !important;
    background-color: #ffffff !important;
    color: #1e293b !important;
    transition: all .2s ease;
    box-shadow: none !important;*/ /* Quitamos la sombra azul de Bootstrap */
/*}*/

    /* Efecto al hacer clic (Focus) - Usando tu verde característico */
    /*.form-control:focus {
        border-color: #48bb94 !important;*/ /* El verde de tus selectores */
        /*box-shadow: 0 0 0 4px rgba(72, 187, 148, 0.15) !important;
        outline: none;
    }*/

/* Para el label, para que no se pegue al input */
.form-label {
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: #475569;
}

/*boton para seleccionar*/
.btn-select-moderno {
    background: rgba(20, 184, 166, 0.15); /* teal suave */
    color: #0f766e;
    border: 1px solid rgba(20, 184, 166, 0.35);
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
}

    .btn-select-moderno:hover {
        background: linear-gradient(135deg, #0f766e, #14b8a6);
        color: #ffffff;
        box-shadow: 0 6px 18px rgba(20, 184, 166, 0.35);
        transform: translateY(-1px);
    }

.btn-select-moderno {
    background: rgba(52, 211, 153, 0.12); /* verde menta */
    color: #065f46;
    border: 1px solid rgba(52, 211, 153, 0.35);
}


/*franja*/
.divider-title {
    display: flex;
    align-items: center;
    text-align: center;
    color: #198754; /* verde del sistema */
    font-weight: 600;
}

    .divider-title::before,
    .divider-title::after {
        content: "";
        flex: 1;
        border-bottom: 1px solid #d9e7df;
    }

    .divider-title:not(:empty)::before {
        margin-right: 12px;
    }

    .divider-title:not(:empty)::after {
        margin-left: 12px;
    }

/*boton para añadir productos*/
.btn-add-modern {
    background: linear-gradient(135deg,#22c55e,#16a34a);
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    padding: 8px 14px;
    box-shadow: 0 4px 14px rgba(34,197,94,.25);
    transition: all .25s ease;
}

    .btn-add-modern:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(34,197,94,.35);
        background: linear-gradient(135deg,#16a34a,#15803d);
    }

    .btn-add-modern:disabled {
        opacity: .7;
        transform: none;
        box-shadow: none;
    }

.btn-icon2 {
    background: rgba(255,255,255,.18);
    border-radius: 6px;
    padding: 3px 6px;
    margin-right: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/*foot para la tabla de los item*/
.tfoot-moderno tr {
    border-top: 1px solid #eef2f6;
}

.tfoot-label {
    text-align: right;
    font-weight: 600;
    color: #6b7280;
}

.tfoot-input {
    max-width: 220px;
    margin-left: auto;
}

.tfoot-total {
    background: linear-gradient(90deg,#ecfdf5,#e6f7f1);
    font-weight: 700;
    color: var(--verde-principal);
    font-size: 1.1rem;
}

.tfoot-observacion {
    background: #fafbfc;
}

/*alertas de error*/
.alert-moderno {
    padding: 12px 16px;
    border-radius: 14px;
    font-weight: 500;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    border: 1px solid transparent;
    animation: fadeIn .25s ease;
}

/* variantes */
.alert-success {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.alert-warning {
    background: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}

.btn-close-moderno {
    border: none;
    background: transparent;
    font-size: 1.1rem;
    color: inherit;
    opacity: .6;
    transition: all .2s;
}

    .btn-close-moderno:hover {
        opacity: 1;
        transform: scale(1.1);
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast-container-moderno {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 9999;
    min-width: 320px;
    max-width: 420px;
}

.alert-moderno {
    padding: 14px 18px;
    border-radius: 14px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid transparent;
    animation: fadeIn .25s ease;
}

/**/

.btn-buscar-moderno {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    box-shadow: 0 8px 24px rgba(20,184,166,0.35);
}

    .btn-buscar-moderno:hover {
        background: linear-gradient(135deg, #2dd4bf, #14b8a6);
    }


.btn-menu-moderno {
    width: 42px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .25s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,.05);
}

    .btn-menu-moderno:hover {
        background: #f8fafc;
        transform: translateY(-1px);
    }

.dropdown-moderno {
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 12px 32px rgba(0,0,0,.12);
}

.dropdown-item-moderno {
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .dropdown-item-moderno:hover {
        background: #f1f5f9;
    }



    /*botones ver*/

/* variante suave verde */
.btn-ver-moderno {
    background: linear-gradient(135deg,#22c55e,#16a34a);
    box-shadow: 0 6px 18px rgba(34,197,94,.35);
}

    .btn-ver-moderno:hover {
        background: linear-gradient(135deg,#16a34a,#15803d);
    }


.btn-compact {
    padding: 6px 12px; /* reduce el largo */
    gap: 6px;
    font-size: 0.82rem;
}

    .btn-compact .icon-wrapper {
        width: 18px;
        height: 18px;
        font-size: 0.75rem;
    }

.btn-ver-alt {
    background: linear-gradient(135deg,#64748b,#475569);
    box-shadow: 0 6px 18px rgba(71,85,105,.35);
}

    .btn-ver-alt:hover {
        background: linear-gradient(135deg,#475569,#334155);
    }

.badge-moderno {
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .78rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid transparent;
}

/* Contado */
.badge-contado {
    background: #ecfdf5;
    color: #047857;
}

/* Crédito */
.badge-credito {
    background: #fef2f2;
    color: #b91c1c;
}

/* Pendiente */
.badge-pendiente {
    background: #fff1f2;
    color: #be123c;
    border-color: #fecdd3;
}

/* Pagado */
.badge-pagado {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

/* Parcial */
.badge-parcial {
    background: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}

/* Anulado */
.badge-anulado {
    background: #f1f5f9;
    color: #475569;
    border-color: #e2e8f0;
}

/* Default */
.badge-default {
    background: #f8fafc;
    color: #334155;
    border-color: #e2e8f0;
}


/* para el dropdown con check*/

/* BOTON */
.btn-filtro-moderno {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #047857;
    padding: 7px 14px;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all .25s ease;
}

    .btn-filtro-moderno:hover {
        background: #dcfce7;
        box-shadow: 0 6px 18px rgba(16,185,129,.25);
    }

/* MENU */
.dropdown-filtro-menu {
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    padding: 10px 0;
    box-shadow: 0 14px 40px rgba(0,0,0,.08);
}

/* ITEMS */
.dropdown-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    font-size: .9rem;
}

    .dropdown-check-item:hover {
        background: #f9fafb;
    }

/* BOTON LIMPIAR */
.btn-limpiar-filtro {
    border: none;
    background: transparent;
    color: #0f766e;
    font-size: .85rem;
    font-weight: 600;
    padding: 6px 10px;
    transition: all .2s;
}

    .btn-limpiar-filtro:hover {
        color: #0d9488;
    }


/* BOTON ICONO (refresh) */
.btn-icon-moderno {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .25s;
}

    .btn-icon-moderno:hover {
        background: #f0fdf4;
        border-color: #bbf7d0;
        box-shadow: 0 6px 18px rgba(16,185,129,.25);
    }

/* BOTON EXPORTAR */
.btn-exportar-moderno {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 6px 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: .25s;
}

    .btn-exportar-moderno:hover {
        background: #f0fdf4;
        border-color: #bbf7d0;
        box-shadow: 0 6px 18px rgba(16,185,129,.25);
    }


.input-icon-moderno {
    position: relative;
}

.input-icon-left {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: #64748b;
}

.input-moderno {
    height: 38px;
    border-radius: 10px;
    padding-left: 28px;
    font-size: .875rem;
    border: 1px solid #e2e8f0;
    transition: .2s;
}

    .input-moderno:focus {
        border-color: #22c55e;
        box-shadow: 0 0 0 2px rgba(34,197,94,.15);
    }
.badge-moderno-detalle {
    background: linear-gradient(135deg,#dcfce7,#bbf7d0);
    color: #166534;
    font-weight: 600;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: .72rem;
    border: 1px solid #86efac;
}



/* contenedor - taps */
.tabs-modernos {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 6px;
}

/* tab */
.tab-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: .85rem;
    color: #6b7280;
    background: #f8fafc;
    transition: all .25s ease;
}

    /* hover */
    .tab-item:hover {
        background: #ecfdf5;
        color: #047857;
    }

    /* activo */
    .tab-item.active {
        background: linear-gradient(135deg,#34d399,#10b981);
        color: white;
        box-shadow: 0 6px 16px rgba(16,185,129,.35);
    }

/* botón + */
.tab-plus {
    border: none;
    background: rgba(255,255,255,.25);
    width: 20px;
    height: 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    cursor: pointer;
    transition: .2s;
}

.tab-item:not(.active) .tab-plus {
    background: #e5e7eb;
}

.tab-plus:hover {
    transform: scale(1.12);
}

/*para el alerta de los productos*/

.producto-alerta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: .9rem;
    box-shadow: 0 4px 14px rgba(0,0,0,.06);
    animation: fadeIn .25s ease;
}

/* producto seleccionado */
.producto-activo {
    background: linear-gradient(135deg,#ecfdf5,#d1fae5);
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* placeholder */
.producto-placeholder {
    background: #f8fafc;
    color: #475569;
    border: 1px dashed #cbd5e1;
    justify-content: flex-start;
    gap: 10px;
}

/* info */
.producto-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

/* botón cerrar */
.producto-close {
    border: none;
    background: transparent;
    font-size: 1.1rem;
    color: inherit;
    opacity: .7;
    transition: .2s;
}

    .producto-close:hover {
        opacity: 1;
        transform: scale(1.1);
    }


    /*para los radios booton*/
.radio-modern input[type="radio"] {
    display: none;
}

.radio-modern .radio-box {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    border: 2px solid #d8deea;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f8fc;
    transition: all .25s ease;
}

    .radio-modern .radio-box i {
        font-size: 14px;
        color: white;
        opacity: 0;
        transition: .25s;
    }

.radio-modern input[type="radio"]:checked + .radio-box {
    background: var(--verde-hover);
    border-color: var(--verde-hover);
    box-shadow: 0 3px 8px rgba(0,0,0,.15);
}

    .radio-modern input[type="radio"]:checked + .radio-box i {
        opacity: 1;
    }


    /*para las presentaciones*/
.btn-modern-outline {
    border: 1.5px solid var(--verde-hover);
    background: rgba(111,66,193,.06);
    color: var(--verde-hover);
    border-radius: 12px;
    padding: 6px 14px;
    font-weight: 500;
    transition: all .25s ease;
}

    .btn-modern-outline:hover {
        background: var(--verde-hover);
        color: #fff;
        box-shadow: 0 6px 14px rgba(25,135,84,.25);
        transform: translateY(-1px);
    }

    .btn-modern-outline:active {
        transform: scale(.98);
    }

    /*check 2*/

/* SWITCH MODERNO PERSONALIZADO */
/* SWITCH MÁS COMPACTO */
.custom-switch-modern-sm .form-check-input {
    transform: scale(0.90); /* 10% más pequeño */
    transform-origin: left center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

    /* Estado activo */
    .custom-switch-modern-sm .form-check-input:checked {
        background-color: var(--verde-principal);
        border-color: var(--verde-principal);
    }

    /* Hover elegante */
    .custom-switch-modern-sm .form-check-input:hover {
        box-shadow: 0 0 0 0.15rem rgba(52, 185, 127, 0.25);
    }

    /* Focus */
    .custom-switch-modern-sm .form-check-input:focus {
        box-shadow: 0 0 0 0.2rem rgba(52, 185, 127, 0.30);
    }

/* Texto más fino */
.custom-switch-modern-sm .form-check-label {
    font-size: 0.90rem;
    color: var(--gris-texto);
}
