/*  Menú: Inicio>Cuentas por Cobrar>Consultas>Portal de Cliente
    Autor: Daniel Hernández Alvarado
    Fecha: 03/08/2021
*/

#grid,
#gridPedidos,
#gridDocumentos,
#gridDetPed {
    padding-top: 1%;
    height: calc(100vh - 120px);
}

.contenido_modal {
    height: 92%;
}

.contenido_modal #pdf {
    height: 100%;
}


.login-area {
    background: #F3F8FB;
}

.login-bg {
    /*background: url("assets/images/bg/singin-bg.jpg") center/cover no-repeat;*/
    /*position: fixed;*/      
    z-index: 9999;
    width: 100%;
    height: 100%;
    background: #666666;
}

.login-bg:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    height: 100%;
    width: 100%;
    background: #666666;
    /*opacity: 0.7;*/
}

.login-box {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    min-height: 100vh;
}

.login-box form {
    margin: auto;
    width: 450px;
    max-width: 100%;
    background: #fff;
    border-radius: 3px;
}

.ptb--10 {
    padding: 10px 0;
}

.login-form-head {
    background-image: url(portal/boxes.jpg);
    background-size: 100%;
    text-align: center;
    background-color: #1b1f23;
    padding: 10px;
	float: left;
	width: 150px;
    height: 230px;
}
.login-form-body {
    padding: 40px;
	float: right;
	margin-top: 20px;
}

.rmber-area {
    font-size: 13px;
}
.row {
    margin-right: -10px!important;
    margin-left: -10px!important;
}

.submit-btn-area {
    text-align: center;
}


.form-gp {
    margin-bottom: 20px;
    position: relative;
}

.login-form-gp {
    margin-bottom:15px;
    position: relative;
}

.form-gp label {
    position: absolute;
    left: 0;
    top: 0;
    color: #b3b2b2;
    -webkit-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
}

.form-gp input {
    background: transparent;
}

.form-gp.focused label {
    top: -15px;
    color: #7e74ff;
}

.form-gp input {
    width: 100%;
    height: 30px;
    border: none;
    border-bottom: 1px solid #e6e6e6;
	-webkit-appearance: button;
	outline: none;
}

.form-gp input::-webkit-input-placeholder {
    color: #dad7d7;
}

.form-gp input::-moz-placeholder {
    color: #dad7d7;
}

.form-gp input:-ms-input-placeholder {
    color: #dad7d7;
}

.form-gp input:-moz-placeholder {
    color: #dad7d7;
}

.form-gp i {
    position: absolute;
    right: 5px;
    bottom: 15px;
    color: #7e74ff;
    font-size: 16px;
}


.submit-btn-area {
    text-align: center;
}

.submit-btn-area button {
    width: 100%;
    height: 40px;
    border: none;
    background: #fff;
    color: #585b5f;
    border-radius: 40px;
    text-transform: uppercase;
    letter-spacing: 0;
    font-weight: 600;
    font-size: 12px;
    box-shadow: 0 0 22px rgba(0, 0, 0, 0.07);
    -webkit-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
	outline: none;
}

.submit-btn-area button:hover {
    background: #2c71da;
    color: #ffffff;
}

.submit-btn-area button i {
    margin-left: 15px;
    -webkit-transition: margin-left 0.3s ease 0s;
    transition: margin-left 0.3s ease 0s;
}

.submit-btn-area button:hover i {
    margin-left: 20px;
}

.container2 {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

.sec-gasto {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 1rem;
    width: 100%;
    padding-left: 1%;
    margin-top: 1rem;
}

#gridPedidosPend,
#gridSalPend,
#gridEnt,
#gridPosFech {
    height: calc(100vh - 140px);
}

#gridDetFac {
    height: calc(100vh - 200px);
}

.tab-content #div3 {
    padding-left: 1% !important;
}

.sec-vjes {
    display: flex;
    grid-gap: .5rem;
}

@media (min-width: 576px) {
  .container2 {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container2 {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container2 {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container2 {
    max-width: 1140px;
  }
}

.navbar > .container2 {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

@media (max-width: 575.98px) {
  .navbar-expand-sm > .container2 {
    padding-right: 0;
    padding-left: 0;
  }
}

@media (min-width: 576px) {
  .navbar-expand-sm > .container2 {
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
  }
}

@media (max-width: 767.98px) {
  .navbar-expand-md > .container2 {
    padding-right: 0;
    padding-left: 0;
  }
}

@media (min-width: 768px) {
  .navbar-expand-md > .container2 {
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
  }
}


@media (max-width: 991.98px) {
  .navbar-expand-lg > .container2 {
    padding-right: 0;
    padding-left: 0;
  }
}

#login_preloader {
    z-index: 99999;
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.login_loader {
    display: block;
    position: relative;
    left: 50%;
    top: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #D81F29;
    -webkit-animation: spin 2s linear infinite;
    animation: loginspin 2s linear infinite;
}

.login_loader:before {
    background: #fff;
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #d81f29ad;
    -webkit-animation: spin 3s linear infinite;
    animation: loginspin 3s linear infinite;
}

.login_loader:after {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #d81f294f;
    -webkit-animation: spin 1.5s linear infinite;
    animation: loginspin 1.5s linear infinite;
}

.head-form {
    align-items: end;
    display: grid;
    grid-gap: .5rem;
    grid-template-columns: repeat(auto-fill, minmax(23rem, 1fr));
}

.head-form select {
    width: 95%;
}

.sec-form {
    align-items: baseline;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(26rem, 1fr));
    grid-gap: .5rem;
}

.input-form {
    display: none;
}

#gridArts {
    height: calc(100vh - 220px);
    margin-left: 0 !important;
    padding-top: .5rem;
}

.form_md {
    margin: 0 !important;
}

@-webkit-keyframes loginspin {
    0%   {
        -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
@keyframes loginspin {
    0%   {
        -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}


.sidebar{
    z-index: 10;
}

.menu{
    display: block;
}

/*  CARD DE PRODUCTO  */

    .long-find {
        margin: 0px 10px;
        width: 300px;
        justify-content: space-between;
    }

    .img-container {
        display: grid;
        grid-template-columns: repeat(5, 1fr); /* inicia con 5 columnas */
        justify-items: center;
        transition: all 0.3s ease-in-out;
        gap: 15px;
        width: 100%;
    }

    /* Cuando se quite cols5, muestra 7 columnas */
    .img-container:not(.cols5) {
        grid-template-columns: repeat(7, 1fr);
    }

    /*  CARD ITEM  */
    .card-item {
        border: 1px solid #ddd;
        border-radius: 12px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        background-color: #fff;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        transition: all 0.3s ease-in-out;
    }

    /* Estilo base: modo 5 columnas */
    .img-container.cols5 .card-item {
        width: 90%;
        margin: 10px;
        height: auto;
    }

    /* Modo 7 columnas */
    .img-container:not(.cols5) .card-item {
        width: 90%;
        height: auto;
        margin: 5px;
    }

    .card-item:hover {
        transform: scale(1.03);
    }

    /*  IMAGEN  */
    .card-item .card-img {
        width: 100%;
        background-color: #f9f9f9;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: height 0.3s ease;
    }

    /* 5 columnas */
    .img-container.cols5 .card-item .card-img {
        height: 150px;
    }
    .img-container.cols5 .card-item .card-img .mini-carousel {
        height: 180px;
    }

    /* 7 columnas */
    .img-container:not(.cols5) .card-item .card-img {
        height: 90px;
    }


    /* Imagen interna */
    .card-item .card-img img {
        width: 100%;
        object-fit: contain;
        transition: height 0.3s ease;
    }

    /* 5 columnas */
    .img-container.cols5 .card-item .card-img img {
        height: 100%;
    }

    /* 7 columnas */
    .img-container:not(.cols5) .card-item .card-img img {
        height: 100%;
    }

    /*  INFO  */
    .card-item .card-body {
        flex-grow: 1;
        transition: all 0.3s ease;
    }

    /* 5 columnas */
    .img-container.cols5 .card-item .card-body {
        padding: 10px 12px;
    }

    /* 7 columnas */
    .img-container:not(.cols5) .card-item .card-body {
        padding: 5px 12px;
    }

    .card-item .clave {
        font-weight: bold;
        color: #333;
        transition: font-size 0.3s ease;
    }

    /* 5 columnas */
    .img-container.cols5 .card-item .clave {
        font-size: 0.9rem;
    }

    /* 7 columnas */
    .img-container:not(.cols5) .card-item .clave {
        font-size: 0.7rem;
    }

    .card-item .descri {
        margin-top: 6px;
        color: #555;
        line-height: 1.2em;
        /*max-height: 2.4em;*/
        overflow: hidden;
        text-overflow: ellipsis;
        transition: font-size 0.3s ease;
    }

    /* 5 columnas */
    .img-container.cols5 .card-item .descri {
        font-size: 0.95rem;
    }

    /* 7 columnas */
    .img-container:not(.cols5) .card-item .descri {
        font-size: 0.8rem;
    }

    /* Precio */
    .card-item .precio {
        margin-top: 8px;
        font-size: 1rem;
        color: #009688;
        font-weight: bold;
    }

    /*  CONTROLES  */
    .card-controls {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 6px;
        border-top: 1px solid #eee;
        transition: all 0.3s ease;
    }

    /* 5 columnas */
    .img-container.cols5 .card-controls {
        padding: 10px;
    }

    /* 7 columnas */
    .img-container:not(.cols5) .card-controls {
        padding: 5px;
    }

/*  BOTONES  */
    .btn-cant {
        width: 32px;
        height: 32px;
        border: none;
        border-radius: 6px;
        background-color: #e0e0e0;
        font-size: 1.1rem;
        cursor: pointer;
        transition: background-color 0.2s;
    }

    .btn-cant:hover {
        background-color: #d5d5d5;
    }

    .input-cant {
        text-align: center;
        border: 1px solid #ccc;
        border-radius: 6px;
        padding: 4px;
        font-size: 0.95rem;
        transition: width 0.3s ease;
    }

    /* 5 columnas */
    .img-container.cols5 .input-cant {
        width: 60px;
    }

    /* 7 columnas */
    .img-container:not(.cols5) .input-cant {
        width: 35px;
    }

    /* Boton agregar al carrito */
        .btn-cart {
            width: 38px;
            height: 38px;
            background-color: #2196f3;
            color: #fff;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 1.1rem;
            /*display: flex;*/
            align-items: center;
            justify-content: center;
            transition: background-color 0.2s;
        }

        .btn-cart:hover {
            background-color: #1976d2;
        }

    /* Boton ver carrito */

        .carrito-btn {
            position: relative;
            font-size: 1.4rem;
            background: white;
            border: none;
            cursor: pointer;
            transition: transform 0.2s ease;
        }

        .carrito-btn:hover {
            transform: scale(1.05);
        }

        .badge {
            position: absolute;
            top: -9px;
            right: -8px;
            background: #e53935;
            color: white;
            font-size: 0.7rem;
            font-weight: bold;
            padding: 2px 5px;
            border-radius: 10px;
            min-width: 16px;
            text-align: center;
            line-height: 1;
            box-shadow: 0 0 4px rgba(0,0,0,0.3);
        }

    /* Boton columnas */
    .btn-cols {
        margin: 0px 0px;
        border: none;
        padding: 8px 16px;
        border-radius: 10px;
        font-weight: 500;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 8px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        transition: all 0.2s ease-in-out;
        height: 50%;
    }

    .btn-cols i {
        font-size: 16px;
    }

    .btn-cols:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 8px rgba(0,0,0,0.25);
    }

/*  Mini carrucel  */
    .mini-carousel {
        position: relative;
        width: 100%;
        overflow: hidden;
        height: 100%;
    }

    .mini-carousel img {
        width: 100%;
        display: none;
        border-radius: 10px;
        transition: opacity 0.5s ease-in-out;
        opacity: 0;
    }

    .mini-carousel img.active {
        display: block;
        opacity: 1;
    }

    /*  FLECHAS  */
    .mini-carousel .nav-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0,0,0,0.4);
        color: white;
        border: none;
        padding: 6px 10px;
        cursor: pointer;
        border-radius: 50%;
        font-size: 18px;
        z-index: 15;
        transition: background 0.2s;
    }

    .mini-carousel .nav-arrow:hover {
        background: rgba(0,0,0,0.7);
    }

    .mini-carousel .prev {
        left: 6px;
    }
    .mini-carousel .next {
        right: 6px;
    }


    /*Tamaño de flechas de carrucel cuando se muestran 7 columnas*/
    .img-container:not(.cols5) .mini-carousel .nav-arrow {
        font-size: 15px;
    }


/*  RESPONSIVE  CONTENIDO */
    @media (max-width: 1024px) {
        #showColums {
            display: none !important;
        }
        .menu{
            display: flex;
            overflow-x: auto;
        }
    }

    /* Reduce a 3 columnas */
    @media (max-width: 1024px) {
        .img-container {
            grid-template-columns: repeat(3, 1fr) !important;
        }

        .card-item .card-img {
            height: 150px !important;
        }

        .card-item .descri {
            font-size: 0.85rem !important;
        }
    }

    /* 2 columnas */
    @media (max-width: 768px) {
        .img-container {
            grid-template-columns: repeat(2, 1fr) !important;
            /*padding: 20px;*/
            /*max-height: 60vh !important;*/
            overflow-x: hidden !important;
        }

        .card-item .card-img {
            height: 140px !important;
        }

        .card-item .clave {
            font-size: 0.8rem !important;
        }

        .card-item .descri {
            font-size: 0.8rem !important;
        }

        .btn-cols {
            margin-left: 10px;
            margin-right: 10px;
            padding: 10px 12px;
            border-radius: 50%;
            width: 34px;
            height: 30px;
            justify-content: center;
        }

        .btn-cols i {
            font-size: 1.3rem;
        }

        .carrito-btn {
            font-size: 1.2rem;
            padding: 8px;
        }
        .badge {
            font-size: 0.65rem;
            top: -9px;
            right: -6px;
        }
    }

    /* 1 columna */
    @media (max-width: 370px) {
        .img-container {
            grid-template-columns: repeat(1, 1fr) !important;
        }

        .card-item {
            margin: 0 auto 10px !important;
        }

        .card-item .card-img {
            height: 130px !important;
        }

        .card-item .descri {
            font-size: 0.8rem !important;
        }
    }

/* Filtros */

    #filtroLineas, #filtroFamilias, #filtroEspecies {
        width: 200px !important;
        margin: 0px 10px;
        padding: 0px 10px !important;
    }


    #filtro-body #filtroLineas ,
    #filtro-body #filtroFamilias ,
    #filtro-body #filtroEspecies  {
        width: 90% !important;
        padding: 10px 0 !important;
    }

.select2-search__field{
    width: 100% !important;
}


/* Estilos de Carrito */
    #modalCarrito2{
        z-index: 20;
    }

    #gridCarrito {
        height: calc(100vh - 300px);
        margin-left: 0 !important;
        padding: 20px;
    }
    .cart-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 15px;
        padding: 10px;
        max-height: 380px;
        overflow-y: auto;
        position: relative;
        background: #fafafa;
        border-radius: 10px;
    }

    /*  Cards  */
    .cart-card {
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.08);
        padding: 15px;
        position: relative;
        display: flex;
        flex-direction: column;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .cart-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .cart-img {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border-radius: 10px;
        margin-bottom: 10px;
        align-self: center;
    }

    .cart-card-body {
        flex: 1;
    }

    .cart-title {
        font-size: 0.95rem;
        font-weight: 600;
        color: #333;
        margin-bottom: 6px;
        min-height: 40px;
    }

    .cart-meta {
        font-size: 0.85rem;
        color: #555;
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .cart-total-item {
        font-weight: 700;
        color: #0a7b2d;
        margin-top: 10px;
        font-size: 0.9rem;
        text-align: right;
    }

    .delete-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background: none;
        border: none;
        color: #d9534f;
        font-size: 1.2rem;
        cursor: pointer;
        transition: transform 0.2s, color 0.2s;
    }

    .delete-btn:hover {
        color: #b52b27;
        transform: scale(1.1);
    }

    /*  PIE DE TOTALES FIJO  */
    .cart-summary {
        position: sticky;
        bottom: 0;
        background: #fff;
        border-top: 2px solid #ddd;
        box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
        border-radius: 0 0 12px 12px;
        padding: 5px 25px;
        margin-top: 35px;
        z-index: 25;
    }

    .cart-summary div {
        display: flex;
        justify-content: space-between;
        font-size: 0.95rem;
        margin: 6px 0;
    }

    .cart-summary .total {
        font-weight: 700;
        font-size: 1.1rem;
        color: #0a7b2d;
        border-top: 1px solid #ccc;
        padding-top: 8px;
    }

    .cart-grid::-webkit-scrollbar {
        width: 8px;
    }

    .cart-grid::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }

    .cart-grid::-webkit-scrollbar-thumb:hover {
        background: #aaa;
    }

    /*  RESPONSIVO  */
    @media (max-width: 1200px) {
        .cart-grid {
            grid-template-columns: repeat(3, 1fr);
        }

        .filtros-container{
            display: none;
        }
    }

    @media (max-width: 900px) {
        .img-container {
            width: 100%;
        }
        .cart-grid {
            grid-template-columns: repeat(2, 1fr);
            height: 300px;
        }

        .cart-summary {
            padding: 5px 25px;
        }

        .long-find {
            width: 80%;
        }
    }

    @media (max-width: 600px) {
        #gridCarrito {
            height: calc(100vh - 420px);
        }
    }



    .btn-guardar {
        background: #2f9e44;
        color: #fff;
        border: none;
        border-radius: 8px;
        padding: 12px 24px;
        font-size: 0.95rem;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.2s ease, transform 0.2s ease;
    }

    .btn-guardar:hover {
        background: #37b24d;
        transform: translateY(-2px);
    }

    .btn-guardar:active {
        transform: scale(0.97);
    }


    /* Estilos del form de carrito */
    .form-row-aligned {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        padding: 10px 25px;
        flex-wrap: wrap;
    }

    .form-group {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-width: 180px;
    }

    .form-group.wide {
        flex: 1;
    }

    .form-group.medium {
        flex: 1.5; /* Observaciones un poco mas largo */
    }

    select,
    .form_input {
        width: 100%;
        padding: 8px 10px;
        border: 1px solid #ccc;
        border-radius: 8px;
        font-size: 14px;
        box-sizing: border-box;
    }

    .btn-guardar {
        background-color: #007bff;
        color: white;
        border: none;
        padding: 10px 18px !important;
        border-radius: 8px;
        cursor: pointer;
        font-weight: 600;
        font-size: 14px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
        transition: all 0.2s ease;
    }

    .btn-guardar:hover {
        background-color: #0056b3;
        transform: translateY(-2px);
    }


    @media (max-width: 900px) {
        .form-row-aligned {
            flex-direction: column;
            align-items: stretch;
        }

        .btn-guardar {
            width: 100%;
        }
    }



/* Alert */
    .alert-container {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 50;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .alert {
        min-width: 220px;
        padding: 12px 18px;
        border-radius: 8px;
        color: #fff;
        font-size: 14px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.25);
        opacity: 0;
        transform: translateX(100%);
        transition: all 0.4s ease;
    }

    .alert.show {
        opacity: 1;
        transform: translateX(0);
    }

    .alert.success { background-color: #2ecc71; }
    .alert.error   { background-color: #e74c3c; }
    .alert.warning { background-color: #f39c12; }
    .alert.info    { background-color: #3498db; }




/* Boton flotante */
    .btn-filtros-mobile {
        position: fixed;
        bottom: 65%;
        left: 0px;
        background-color: #4589cc;
        color: white;
        border: none;
        border-radius: 50px;
        padding: 8px 8px;
        font-size: 12px;
        box-shadow: 0 3px 8px rgba(0,0,0,0.25);
        cursor: pointer;
        z-index: 18;
        display: none;
    }

    .btn-filtros-mobile i {
        margin-right: 6px;
    }

    /* Mostrar solo en móviles */
    @media (max-width: 1200px) {
        .btn-filtros-mobile {
            display: flex;
            align-items: center;
            justify-content: center;
        }
    }

    /* Modal estilos */
    .modal-filtros {
        display: none; /* oculto por defecto */
        position: fixed;
        z-index: 20;
        left: 0; top: 0;
        width: 100%; height: 100%;
        background-color: rgba(0,0,0,0.5);
        justify-content: center;
        align-items: center;
    }

    .modal-filtros-content {
        background: #fff;
        border-radius: 12px;
        width: 90%;
        max-width: 400px;
        padding: 15px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        animation: fadeIn .3s ease;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #eee;
    }

    .modal-header h3 {
        margin: 0;
        font-size: 18px;
    }

    .close-modal {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
    }

    .modal-body {
        margin-top: 10px;
    }

    .modal-footer {
        margin-top: 15px;
        text-align: right;
    }

    .btn-aplicar {
        background-color: #4589cc;
        color: white;
        border: none;
        padding: 8px 16px;
        border-radius: 8px;
        cursor: pointer;
    }

    .btn-aplicar:hover {
        background-color: #27ae60;
    }

    .select2-dropdown select2-dropdown--below{
        z-index: 25 !important;
    }

.mark-card{
    border-left: solid 10px;
    border-left-color: #2196f3;
}

.promo-box {
    background: linear-gradient(135deg, #ffecb3, #ffcc80);
    border: 2px solid #ffa726;
    margin-top: 6px;
    font-size: 13px;
    color: #6b4200;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    text-align: center;
    font-weight: 500;
}

.promo-precio {
    display: inline-block;
    margin-top: 3px;
    font-size: 16px;
    font-weight: bold;
    color: #d84315;
}









