﻿body.login-body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), #2a2a45 0%, #1f1f2e 35%, #0e0e1a 100%);
    transition: background 0.1s ease-out;
    height: 100vh;
    width: 100vw;
    color: #f0f0f0;
}

    body.login-body .login-container {
        backdrop-filter: blur(10px);
        background-color: rgba(40, 40, 60, 0.85);
        box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
        border-radius: 24px;
        padding: 2rem;
        color: #f0f0f0;
    }

    body.login-body input.form-control {
        background-color: #2c2c40;
        border: none;
        color: #ffffff;
    }

        body.login-body input.form-control::placeholder {
            color: #bbbbcc;
        }

        body.login-body input.form-control:focus {
            background-color: #35354c;
            outline: none;
            box-shadow: 0 0 0 2px #6c63ff;
        }

    body.login-body .btn-primary {
        background-color: #6c63ff;
        border-color: #6c63ff;
    }

        body.login-body .btn-primary:hover {
            background-color: #837bff;
            border-color: #837bff;
        }

    body.login-body .logo-login {
        width: 160px;
        margin-bottom: 1rem;
    }

    body.login-body .logo-login-top {
        width: 220px;
        max-width: 90%;
        margin-bottom: 2rem;
        filter: drop-shadow(0 0 10px rgba(255,255,255,0.15));
        animation: float 5s ease-in-out infinite;
        transition: transform 0.3s ease;
    }

        body.login-body .logo-login-top:hover {
            transform: scale(1.05);
        }

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

button.btn-support {
    background: linear-gradient(135deg, #6c63ff, #2f1f8f) !important;
    border: none !important;
    color: white !important;
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.2);
}

    button.btn-support:hover {
        background: linear-gradient(135deg, #837bff, #4b38c4) !important;
        transform: scale(1.03);
        box-shadow: 0 6px 16px rgba(108, 99, 255, 0.35);
    }


button.btn-warning-custom {
    background: linear-gradient(135deg, #f7c948, #f0a500) !important;
    border: none !important;
    color: #212529 !important; /* Un gris oscuro para mejor contraste */
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(247, 201, 72, 0.3);
}

    button.btn-warning-custom:hover {
        background: linear-gradient(135deg, #f9d56e, #f4b400) !important;
        transform: scale(1.03);
        box-shadow: 0 6px 16px rgba(247, 201, 72, 0.45);
    }


/* Botón Verde */
button.btn-support-green {
    background: linear-gradient(135deg, #28a745, #1e7e34) !important;
    border: none !important;
    color: white !important;
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

    button.btn-support-green:hover {
        background: linear-gradient(135deg, #45c16a, #2b9d50) !important;
        transform: scale(1.03);
        box-shadow: 0 6px 16px rgba(40, 167, 69, 0.35);
    }

/* Botón Azul */
button.btn-support-blue {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    border: none !important;
    color: white !important;
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

    button.btn-support-blue:hover {
        background: linear-gradient(135deg, #339dff, #0b6ce0) !important;
        transform: scale(1.03);
        box-shadow: 0 6px 16px rgba(0, 123, 255, 0.35);
    }


.navbar-animated {
    background: radial-gradient( circle at var(--nav-x, 50%) var(--nav-y, 50%), #2a2a45 0%, #1f1f2e 35%, #0e0e1a 100% );
    transition: background 0.2s;
    color: white;
}

    .navbar-animated .nav-link,
    .navbar-animated .navbar-brand {
        color: #ffffff !important;
    }

        .navbar-animated .nav-link:hover {
            color: #c7bfff !important;
        }

    .navbar-animated .dropdown-menu {
        background-color: #1e1e2f !important;
    }

    .navbar-animated .dropdown-item {
        color: white !important;
    }

        .navbar-animated .dropdown-item:hover {
            background-color: #2a2a45 !important;
            color: white;
        }





.index-wrapper {
    padding-top: 60px;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), #2a2a45, #1f1f2e, #0e0e1a);
    min-height: 100vh;
    animation: gradient-move 15s ease infinite;
}

.logo-index {
    width: 180px;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.1));
}

.welcome-box {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    color: #f0f0f0;
    max-width: 420px;
    width: 100%;
    border: 1px solid rgba(255,255,255,0.1);
}

    .welcome-box .datos-usuario p {
        margin: 0.4rem 0;
        color: #c7c7d4;
    }

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.main-content-wrapper {
    padding: 0;
    margin: 0;
    width: 100%;
    min-height: 100vh;
}


#offline-alert {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #ffcc00;
    color: black;
    text-align: center;
    padding: 0.6rem;
    font-weight: bold;
    z-index: 9999;
    display: none;
}

#blazor-error-ui {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}


#contenedorFacturas {
    max-height: 75vh;
    overflow-y: auto;
    padding: 0 1rem;
}

#filtrosSticky {
    position: sticky;
    top: 0;
    z-index: 1050;
    background-color: rgba(0, 0, 0); /* igual al fondo del header */
    padding-top: 1rem;
    padding-bottom: 1rem;
}


/* Aplica el gradiente al tr, y fuerza visibilidad coherente */
table.table-dark tbody tr.tr-seleccionada {
    background: linear-gradient(to right, #1e3a8a, #2563eb) !important;
    color: #ffffff !important;
    font-weight: bold;
    transition: background 0.3s ease;
}

    table.table-dark tbody tr.tr-seleccionada td {
        background-color: transparent !important;
    }



.btn-historial {
    background: linear-gradient(135deg, #1e3c72, #2a5298); /* Azul más oscuro */
    border: none;
    color: white;
    padding: 0.45rem 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 12px;
}

    .btn-historial:hover {
        background: linear-gradient(135deg, #2a5298, #1e3c72); /* Invierto para hover */
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(30, 60, 114, 0.4);
    }


/* ------------Movil cotizaciones---------------- */

.mobile-table .input-group {
    display: flex;
    width: 100%;
}

.mobile-table input {
    flex: 1 1 100%; /* Forzar que el input crezca todo lo que pueda */
    min-width: 0; /* Evita que el input imponga un ancho mínimo mayor */
    background-color: #ffffff;
}

    .mobile-table input[readonly] {
        background-color: #f1f3f5;
        color: #6c757d;
    }

    .mobile-table input:focus {
        border-color: #0074D9;
        box-shadow: 0 0 0 0.15rem rgba(0, 116, 217, 0.25); /* Azul Vital */
    }

.mobile-table button {
    background-color: #28a745; /* Verde tipo Bootstrap */
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    width: 45px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .mobile-table button:hover {
        background-color: #218838;
    }


td.mobile-table {
    width: 100% !important;
}



.table-responsiveMovil {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

    .table-responsiveMovil table {
        table-layout: auto;
        width: 100%;
    }

    .table-responsiveMovil th,
    .table-responsiveMovil td {
        text-align: center;
        padding: 10px;
        white-space: nowrap;
        min-width: 150px; /* Hace que las celdas sean más anchas */
    }

    .table-responsiveMovil th {
        background-color: #f8f9fa;
    }

    .table-responsiveMovil > .table + .table {
        margin-top: 20px;
    }


.titulo-ingreso-producto {
    font-weight: 600;
    font-size: 1.1rem;
    color: #343a40;
    margin-bottom: 10px;
}

@media (max-width: 576px) {
    .mobile-table button {
        border-radius: 50%;
        width: 44px;
        height: 44px;
    }

    .mobile-table i {
        font-size: 1.2rem;
    }
}


@media (max-width: 576px) {
    .producto-input .input-group input {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 16px;
    }

    .producto-input .input-group button {
        flex: 0 0 45px;
        width: 45px;
    }

    .producto-input .input-group {
        min-width: 350px; /* Puedes ajustar esto según lo largo que quieras */
        flex-wrap: nowrap;
    }
}

.tr-producto-movil {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 10px;
}


    .tr-producto-movil td {
        border: none !important;
        padding: 8px 6px;
    }


@media (max-width: 576px) {
    .mobile-table td::before {
        content: attr(data-label);
        display: block;
        font-weight: bold;
        font-size: 0.75rem;
        color: #6c757d;
        text-align: left;
        margin-bottom: 4px;
    }

    .mobile-table td {
        display: block;
        text-align: left;
    }

    .mobile-table .input-group {
        width: 100%;
    }
}


.boton-agregar-movil {
    background-color: #6f42c1 !important; /* Morado vibrante */
    border: none;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s ease;
}

    .boton-agregar-movil:hover {
        background-color: #5936a2 !important; /* Morado más profundo */
    }







/*-------------------------- Estilos exclusivos para la pantalla de Artículos ----------------- */
#articulos-page {
    font-family: 'Yu Gothic UI', sans-serif;
}

#articulos-header {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #001f54, #001233);
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    padding: 0 1rem;
    margin-bottom: 1rem;
}

#articulos-acciones .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

#articulos-tabla table {
    width: 100%;
    table-layout: auto;
}

/* Tabla tipo tarjeta para móvil */
@media (max-width: 768px) {
    #articulos-tabla thead {
        display: none;
    }

    .tarjeta-articulo {
        background: #2c2c2c;
        border-radius: 0.5rem;
        padding: 1rem;
        margin-bottom: 1rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        color: white;
    }

        .tarjeta-articulo h5 {
            font-size: 1.1rem;
            font-weight: bold;
            margin-bottom: 0.5rem;
        }

        .tarjeta-articulo .detalle {
            display: none;
            margin-top: 0.75rem;
            border-top: 1px solid #444;
            padding-top: 0.75rem;
        }

        .tarjeta-articulo.expandida .detalle {
            display: block;
        }
}

/* Estilo para acordeón en inputs */
#articulos-accordion .accordion-button {
    background-color: #000;
    color: white;
}

    #articulos-accordion .accordion-button::after {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-size: 1rem;
        filter: none;
    }

#articulos-accordion .accordion-body {
    background-color: #f8f9fa;
}

#articulos-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
    transition: all 0.3s ease;
    z-index: 1050;
}

    #articulos-fab:hover {
        background: linear-gradient(135deg, #45c16a, #2b9d50);
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(40, 167, 69, 0.35);
    }

/* Etiquetas dentro de tarjetas */
.card-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

/* Input destacado tipo buscador */
#input-producto-buscador::placeholder {
    color: #999;
    font-style: italic;
}

/* Animación para transición de tarjeta */
.tarjeta-articulo {
    transition: all 0.3s ease;
    cursor: pointer;
}

    .tarjeta-articulo:hover {
        background-color: #3a3a3a;
    }

/* Tabla en pantallas grandes */
@media (min-width: 769px) {
    .tarjeta-articulo {
        display: none;
    }

    #articulos-tabla {
        display: block;
    }
}

.buscador-producto {
    margin-bottom: 1.5rem;
}

.buscador-input-group {
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid #ced4da;
    transition: box-shadow 0.3s ease;
}

    .buscador-input-group:focus-within {
        box-shadow: 0 0 0 0.2rem rgba(0, 116, 217, 0.25); /* Azul vital */
        border-color: #0074D9;
    }

.buscador-input {
    border: none;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    flex: 1;
}

    .buscador-input:focus {
        outline: none;
        box-shadow: none;
    }

.buscador-icono {
    background-color: #f1f3f5;
    border-left: 1px solid #dee2e6;
    color: #6c757d;
    padding: 0.75rem 1rem;
}

@media (max-width: 576px) {
    .buscador-input {
        font-size: 0.95rem;
        padding: 0.6rem 0.9rem;
    }

    .buscador-icono {
        padding: 0.6rem 0.9rem;
    }
}










/*-------------------------- Estilos exclusivos para la pantalla de DatosEmpresa ----------------- */

#headerEMP {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1b1f3b, #3a2b58);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.profile-card {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    background: linear-gradient(160deg, #25274d, #464866);
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    padding: 2.5rem;
    margin-top: 2rem;
    font-family: 'Segoe UI', sans-serif;
    position: relative;
    overflow: hidden;
    color: #f5f6fa;
}

.profile-section {
    flex: 1 1 300px;
    min-width: 260px;
    z-index: 1;
}

    .profile-section h6 {
        font-weight: 700;
        color: #a29bfe;
        margin-bottom: 0.25rem;
        font-size: 0.9rem;
        text-transform: uppercase;
    }

    .profile-section p {
        margin: 0 0 1rem 0;
        color: #dcdde1;
        font-size: 1rem;
    }

.profile-photo {
    max-width: 200px;
    border-radius: 1rem;
    object-fit: cover;
    border: 4px solid #a29bfe;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
}

    .profile-photo:hover {
        transform: scale(1.05);
    }

.btn-edit {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #6c5ce7;
    color: white;
    border-radius: 2rem;
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 2;
    transition: background 0.3s ease;
}

    .btn-edit:hover {
        background-color: #4e3ecf;
    }

@media (max-width: 768px) {
    .profile-card {
        flex-direction: column;
        padding: 1.5rem;
    }

    .profile-section {
        flex: 1 1 100%;
    }
}


/* ------------------ segunda seccion ------------------ */

/* Modern styles */
.modern-form-pane {
    background: #f8f9fa;
    border-radius: 1rem;
    padding: 2rem 0;
    min-height: 100vh;
}

.modern-form-header {
    position: sticky;
    top: 0;
    background: #f8f9fa;
    z-index: 10;
    padding: 1rem 2rem;
    border-radius: 1rem 1rem 0 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
}

.modern-card {
    background: white;
    border-radius: 1.2rem;
    box-shadow: 0 6px 20px rgba(90,60,200,0.11);
    padding: 1.6rem 1.2rem 1.2rem 1.2rem;
    margin-bottom: 1.6rem;
    min-height: 360px;
    transition: box-shadow 0.2s;
}

    .modern-card:hover {
        box-shadow: 0 10px 32px rgba(100, 70, 230, 0.18);
    }

.modern-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #4e3ecf;
    margin-bottom: 1rem;
    letter-spacing: .5px;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.modern-label {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: .1rem;
    color: #272b44;
}

.modern-input {
    border-radius: .6rem !important;
    border: 1px solid #d1d7e6 !important;
    font-size: .99rem !important;
    padding: .75rem 1rem !important;
    box-shadow: none !important;
    transition: border-color 0.2s;
}

    .modern-input:focus {
        border-color: #8242f5 !important;
    }

.btn-purple {
    background: #8242f5;
    color: white;
    border-radius: .8rem;
    font-weight: bold;
    transition: background 0.2s;
}

    .btn-purple:hover {
        background: #6742f5;
        color: #fff;
    }

.modern-btn {
    font-size: 1.05rem !important;
    border-radius: 2rem !important;
    padding: .55rem 1.2rem !important;
    font-weight: 600 !important;
    letter-spacing: .2px;
}

@media (max-width: 992px) {
    .modern-card {
        min-height: unset;
    }

    .modern-form-header {
        padding: 1rem .5rem;
    }
}

@media (max-width: 576px) {
    .modern-card {
        padding: .8rem;
    }

    .modern-form-pane {
        padding: 1rem 0;
    }
}


.fab-container {
    position: fixed;
    bottom: 22px;
    right: 18px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.fab-btn {
    pointer-events: all;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    box-shadow: 0 3px 18px rgba(0,0,0,0.15);
    border: none;
    background: #8242f5;
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.18s;
}

    .fab-btn:active,
    .fab-btn:focus {
        outline: none;
        background: #5d2bc7;
        transform: scale(0.94);
    }

.fab-success {
    background: #28a745;
}

.fab-cancel {
    background: #dc3545;
}

.fab-save {
    background: #0074D9;
}

.fab-btn:hover {
    filter: brightness(1.08);
}


/* Modal fondo y borde redondeado */
.modern-modal-content {
    border-radius: 1.2rem;
    box-shadow: 0 8px 40px rgba(60,40,120,0.23);
    background: linear-gradient(135deg, #f8f9fa 75%, #eae6fa 100%);
    border: none;
}

/* Icono redondo con fondo */
.modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #8f6ed5 40%, #a29bfe 100%);
    color: #000000;
    box-shadow: 0 2px 8px rgba(130, 66, 245, 0.14);
    margin-right: 0.5rem;
}

.btn-modern-primary {
    background: #6c5ce7;
    color: white;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.2s;
    box-shadow: 0 4px 12px rgba(108,92,231,0.12);
}

    .btn-modern-primary:hover {
        background: #4e3ecf;
        color: #fff;
    }

.btn-close-white {
    filter: invert(1);
}
