:root {
    --primary-color: #52BCD3;
    --primary-hover: #31a7c1;
    --white-color: #fff;
    --dark-color: #334155;
    --sidebar-bg: #f8fafc;
    --sidebar-border: #e2e8f0;
    --sidebar-text: #434446;
    --sidebar-text-hover: #434446;
    --sidebar-active-bg: #ffffff;
    --gradient-bg: linear-gradient(135deg, #3e4650, #565d68, #3e4650);
    --gradient-move: linear-gradient(90deg, #ffffff, #dfebfb, #ffffff);
}

/* Sidebar Custom Styling - exact image replication */
body .app aside.sidebar {
    background-color: var(--sidebar-bg) !important;
    border-right: 1px solid var(--sidebar-border) !important;
    box-shadow: none !important;
    width: 250px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

body .app aside.sidebar .sidebar-container {
    background-color: var(--sidebar-bg) !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

body .app aside.sidebar .sidebar-container a[href="?p=inicio"] {
    color: var(--sidebar-text-hover) !important;
    background-color: transparent !important;
    border-bottom: 1px solid var(--sidebar-border) !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;

    padding-left: 20px !important;
    text-decoration: none !important;
}

body .app aside.sidebar .sidebar-container a[href="?p=inicio"] #logo {
    display: block !important;
    width: 132px !important;
    max-width: calc(100% - 20px) !important;
    height: 48px !important;
    margin-right: 10px !important;
    object-fit: contain !important;
    object-position: left center !important;
}

body .app aside.sidebar .sidebar-container a[href="?p=inicio"] .btn-escritorio {
    color: var(--sidebar-text-hover) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

body .app aside.sidebar .menu {
    padding: 20px 16px !important;
    flex: 1 !important;
}

body .app aside.sidebar .menu .nav {
    background-color: transparent !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body .app aside.sidebar .menu .nav li {
    margin-bottom: 4px !important;
    background-color: transparent !important;
    list-style: none !important;
    display: block !important;
}


body .app aside.sidebar .menu .nav>li>a {
    color: var(--sidebar-text-hover) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 10px 12px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    background-color: transparent !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    transition: color 0.2s ease, background-color 0.2s ease !important;
}


body .app aside.sidebar .menu .nav>li>a:hover,
body .app aside.sidebar .menu .nav>li.active-parent>a {
    color: var(--primary-color) !important;
    background-color: rgba(82, 188, 211, 0.08) !important;
}

body .app aside.sidebar .menu .nav>li>a:hover img,
body .app aside.sidebar .menu .nav>li.active-parent>a img {
    filter: invert(60%) sepia(60%) saturate(400%) hue-rotate(155deg) brightness(95%) contrast(90%) !important;
    transition: filter 0.2s ease !important;
}

body .app aside.sidebar .menu .nav>li>a img {
    transition: filter 0.2s ease !important;
}

body .app aside.sidebar .menu .nav>li>a i {
    font-size: 17px !important;
    margin-right: 12px !important;
    width: 20px !important;
    text-align: center !important;
    color: var(--sidebar-text) !important;
}

/* Títulos de sección en el Sidebar */
body .app aside.sidebar .menu .nav li.sidebar-section-title {
    padding: 16px 12px 6px 12px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    color: #94a3b8 !important;
    background: transparent !important;
}

/* Submenu: oculto por defecto, visible cuando padre tiene .open */
body .app aside.sidebar .menu .nav li ul {
    background-color: transparent !important;
    list-style: none !important;
    padding-left: 14px !important;
    margin: 4px 0 6px 12px !important;
    display: none !important;
    height: auto !important;
    border-left: 2px dashed #cbd5e1 !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Mostrar submenu solo cuando el padre tiene clase .open */
body .app aside.sidebar .menu .nav li.open>ul {
    display: block !important;
}

/* Animación elemento por elemento (suavemente, uno por uno) */
body .app aside.sidebar .menu .nav li.open>ul>li {
    opacity: 0;
    animation: submenu-item-slide 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

body .app aside.sidebar .menu .nav li.open>ul>li:nth-child(1) {
    animation-delay: 0.05s !important;
}

body .app aside.sidebar .menu .nav li.open>ul>li:nth-child(2) {
    animation-delay: 0.10s !important;
}

body .app aside.sidebar .menu .nav li.open>ul>li:nth-child(3) {
    animation-delay: 0.15s !important;
}

body .app aside.sidebar .menu .nav li.open>ul>li:nth-child(4) {
    animation-delay: 0.20s !important;
}

body .app aside.sidebar .menu .nav li.open>ul>li:nth-child(5) {
    animation-delay: 0.25s !important;
}

@keyframes submenu-item-slide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body .app aside.sidebar .menu .nav li ul li {
    margin-bottom: 2px !important;
    background-color: transparent !important;
    display: block !important;
    position: relative !important;
}

body .app aside.sidebar .menu .nav li ul li a {
    padding: 8px 12px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #6b7280 !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    background-color: transparent !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    margin-left: 0 !important;
    transition: all 0.18s ease-in-out !important;
}

body .app aside.sidebar .menu .nav li ul li a i {
    font-size: 16px !important;
    margin-right: 10px !important;
    width: 18px !important;
    text-align: center !important;
    color: #9ca3af !important;
    transition: color 0.18s ease !important;
}

/* Hover: fondo suave + texto oscuro */
body .app aside.sidebar .menu .nav li ul li a:hover,
body .app aside.sidebar .menu .nav li>ul>li a:hover {
    background-color: rgba(82, 188, 211, 0.07) !important;
    color: var(--sidebar-text-hover) !important;
    font-weight: 600 !important;
}

/* Activo: fondo suave + texto negro en negrita */
body .app aside.sidebar .menu .nav li ul li.active a,
body .app aside.sidebar .menu .nav li>ul>li.active>a {
    background-color: rgba(82, 188, 211, 0.09) !important;
    color: var(--sidebar-text-hover) !important;
    font-weight: 700 !important;
}

body .app aside.sidebar .menu .nav li ul li a:hover i,
body .app aside.sidebar .menu .nav li ul li.active a i,
body .app aside.sidebar .menu .nav li>ul>li.active>a i,
body .app aside.sidebar .menu .nav li>ul>li a:hover i {
    color: var(--primary-color) !important;
}

/* Íconos imagen en sub-items: cambian a azul en hover/activo */
body .app aside.sidebar .menu .nav li ul li a img {
    transition: filter 0.18s ease !important;
    width: 15px !important;
    height: 15px !important;
    margin-right: 10px !important;
    flex-shrink: 0 !important;
    opacity: 0.5 !important;
}

body .app aside.sidebar .menu .nav li ul li a:hover img,
body .app aside.sidebar .menu .nav li>ul>li.active>a img {
    filter: invert(60%) sepia(60%) saturate(400%) hue-rotate(155deg) brightness(95%) contrast(90%) !important;
    opacity: 1 !important;
}

/* Clases específicas para íconos del menú (reemplazando estilos inline) */
body .app aside.sidebar .menu .nav li a .icono-menu {
    width: 20px !important;
    height: 20px !important;
    margin-right: 8px !important;
    flex-shrink: 0 !important;
}

body .app aside.sidebar .menu .nav li a .icono-flecha {
    width: 20px !important;
    height: 20px !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.2s ease, visibility 0.2s ease !important;
}

/* Mostrar icono si está en hover o activo */
body .app aside.sidebar .menu .nav li:hover>a .icono-flecha,
body .app aside.sidebar .menu .nav li.active-parent>a .icono-flecha,
body .app aside.sidebar .menu .nav li.open>a .icono-flecha {
    opacity: 1 !important;
    visibility: visible !important;
}

body .app aside.sidebar .menu .nav li ul li a .icono-submenu {
    width: 23px !important;
    height: 23px !important;
    margin-right: 10px !important;
    flex-shrink: 0 !important;
}

body .app aside.sidebar .sidebar-footer {
    background-color: var(--sidebar-bg) !important;
    border-top: 1px solid var(--sidebar-border) !important;
    padding: 16px 20px !important;
}

body .app aside.sidebar .sidebar-footer a {
    color: var(--sidebar-text) !important;
    font-weight: 500 !important;
    font-size: 13.5px !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

body .app aside.sidebar .sidebar-footer a:hover {
    color: var(--sidebar-text-hover) !important;
}

/* Header Superior Fijo que sigue la pantalla */
body .app header.header {
    position: fixed !important;
    top: 0 !important;
    left: 250px !important;
    right: 0 !important;
    height: 70px !important;
    z-index: 99 !important;
    background-color: #ffffff !important;
    border-bottom: 1px solid var(--sidebar-border) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

/* Ajuste del Sidebar Fijo continuo */
body .app aside.sidebar {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 100 !important;
    height: 100vh !important;
    overflow: hidden !important;
}

body .app aside.sidebar .sidebar-container {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

body .app aside.sidebar .menu {
    flex: 1 !important;
    overflow-y: auto !important;
}



/* Tarjeta Promocional en la parte inferior del Sidebar */
.sidebar-promo-fixed {

    padding: 10px 12px !important;
    width: 100%;
}

.sidebar-promo-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    position: relative;
    transition: all 0.2s ease-in-out;
}

.sidebar-promo-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
    border-color: #cbd5e1;
}

.promo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.promo-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.2px;
}

.promo-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
    border-radius: 4px;
    transition: color 0.15s ease;
}

.promo-close-btn:hover {
    color: #ef4444;
}

.promo-description {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 12px;
    font-weight: 400;
}

.promo-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px 0;
    margin-bottom: 2px;
    background-color: #f8fafc;
    border-radius: 10px;
}

.promo-image {
    max-width: 100%;
    height: auto;
    max-height: 85px;
    object-fit: contain;
}

.promo-action-btn {
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--primary-color, #52BCD3);
    color: #ffffff !important;
    font-size: 12.5px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background-color 0.2s ease;
}

.promo-action-btn:hover {
    background-color: var(--primary-hover, #31a7c1);
    color: #ffffff !important;
}



/*Borde de cada formulario le quita la letras del titulo del brode*/
.card-heading {
    padding-left: 20px;
    padding-top: 20px;
}



/*Cada de texto buscar bordes transparente*/
.buscar {
    border: 0;
}

/*boton guardar personalizado a verde*/
/* BOTON AGREGAR CONTENIDO DINAMICO */
.btn-agregar {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 0.3rem;
    background-color: transparent;
    color: white;
    background-color: #52BCD3;
    border-color: #52BCD3;
}

.btn-agregar:hover {
    color: #fff;
    background-color: #31a7c1;
    border-color: #31a7c1;
}

/*Estilo de la ventana de buscar*/
.lista_buscar {
    transition: initial !important;
    text-decoration: none !important;
}

/* RESALTADO DE TOTALES DE FACTURA POR EJEMPLO */
.resaltado {
    color: #e9ecef;
    /* Texto claro para contraste */
    background: linear-gradient(135deg, #3e4650, #565d68, #3e4650);
    /* Gradiente elegante */
    background-size: 200% 200%;
    /* Tamaño del fondo para animar */
    border-radius: 3px;
    /* Bordes redondeados */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    /* Sombra para mayor profundidad */
    animation: resultado-animate 5s infinite;
    /* Animación del gradiente */
}

/* Animación del gradiente */
@keyframes resultado-animate {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* AQUI MANEJA ESTILO DE LA TABLA */
.header-fixed {
    width: 100%;
}

.header-fixed>thead,
.header-fixed>tbody,
.header-fixed>thead>tr,
.header-fixed>tbody>tr,
.header-fixed>thead>tr>th,
.header-fixed>tbody>tr>td {
    display: block;
}

.header-fixed>tbody>tr:after,
.header-fixed>thead>tr:after {
    content: " ";
    display: block;
    visibility: hidden;
    clear: both;
}

.header-fixed>tbody {
    overflow-y: auto;
    min-height: 200px;
}

.header-fixed-fact>tbody {
    height: 400px !important;
}

.header-fixed-factura>tbody {
    max-height: 400px !important;
}

.header-fixed>tbody>tr>td,
.header-fixed>thead>tr>th {
    width: 20%;
    float: left;
}

/* THEAD TBL V2*/
.thead-tbl-v2 {
    position: sticky;
    top: -1px;
    background: linear-gradient(90deg, #ffffff, #dfebfb, #ffffff);
    background-size: 200% 100%;
    /* Duplicamos el tamaño del gradiente para animarlo */
    color: #333;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    animation: gradient-move 3s infinite;
    /* Animación del gradiente */
}

/* Animación del gradiente */
@keyframes gradient-move {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 0%;
    }

    100% {
        background-position: 0% 0%;
    }
}

/*  TITULO GRANDE PUNTO SUSPENSIVOS */
.form-group {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* FIN DE TITULOS SUSPENSIVOS */
/* TITULO TABLA PUNTO SUSPENSIVOS */
.t-puntos {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* FIN DE PUNTOS SUSPENSIVOS TABLA */
/* FONT MOBIL */
.letra-mobil {
    font-size: 13px;
}

/* FIN FONT MOBIL */
/* COLOR PARA TEXTOS */
.text-brown {
    color: #e8b217 !important;
}

.btn.btn-brown {
    border-radius: 0.3rem;
    color: #ffffff;
    background-color: #d08b13;
    border-color: #d08b13;
}

.btn-brown:hover {
    color: #fff;
    background-color: #e69c19;
    border-color: #e69c19;
}

/* ESTILO MORADO */
.text-purple {
    color: #7867a7 !important;
}

.btn.btn-purple {
    border-radius: 0.3rem;
    color: #ffffff;
    background-color: #7867a7;
    border-color: #7867a7;
}

.btn-purple:hover {
    color: #fff;
    background-color: #826cbf;
    border-color: #826cbf;
}

/* texto color verde total */
.text-green {
    color: #52BCD3;
}

/* OCULTAR DIV */
.d-none {
    display: none;
}

/* ESTILO AUTOCOMPLETAR */
.autocompletar {
    position: relative;
    display: contents;
}

strong {
    color: black;
}

.lista-autocompletar-items {
    color: #ccc;
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    z-index: 99;

    /*top: 100%;*/
    left: 15px;
    right: 15px;
    /*width: 93%;*/
}

.lista-autocompletar-items div {
    padding: 10px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #d4d4d4;
}

.lista-autocompletar-items div:hover {
    background-color: dodgerblue;
}

.autocompletar-active {
    background-color: dodgerblue !important;
    color: #a1caff;
}

.autocompletar-active strong {
    color: #fff;
}

/* QUITAR BOTON DE INPUT NUMBER FLECHAS */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Boton mas opciones */
.btn-mas-opciones {
    border-radius: 0.3rem;
    color: #ffffff;
    background-color: #52BCD3;
    border-color: #52BCD3;
}

.btn-mas-opciones:hover {
    color: #fff;
    background-color: #2fa0b9;
    border-color: #2fa0b9;
}

/* centrar contenido */
.text-center {
    text-align: center;
}

/* INPUT PORCIENTO EN ARTICULO SERVICIO */
.label-nombre {
    display: block;
}

.input-porciento {
    width: 25%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    line-height: 1.25;
    color: #55595c;
    background-color: #fff;
    background-image: none;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    border: 1px solid rgb(136 140 132);
    border-radius: 0.25rem;
}

.input-precio {
    width: 73%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    line-height: 1.25;
    color: #55595c;
    background-color: #fff;
    background-image: none;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.25rem;
}

/* FIN DEL ESTILO */
/* TITLO PARA CONFIGURACIONES HACER SALTO DE LINEA */
.text-salto {
    white-space: normal;
}

/* CENTRAR DIV EN MEDIO */
.btn-medio {
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-escritorio {
    position: absolute;
    right: 52px;
    top: 48px;
    vertical-align: baseline;
    font-size: 12px;
    line-height: 18px;
    height: 18px;
    padding: 0 5px;
    z-index: 1;
    background-color: #31a7c1;
    border-radius: 7px;
}

/*Esconder columnas de tablas llamando*/
/* SALTO DE LINEA DE LOS MENU PERSONALIZADO BARRA VERDE*/
.hr-personalizado {
    background-color: #52BCD3;
    height: 3px;
}

/* FIN DEL ESTILO */
/* TEXTO DE COLOR VERDE */
.text-verde {
    color: #31a7c1;
}

/* FIN DEL TEXTO VERDE*/
/* BOTON PEQUEÑO */
.btn-small {
    padding-top: 4px;
    padding-bottom: 4px;
    padding-left: 10px;
    padding-right: 10px;
}

/* IMAGEN DE CARGANDO */
.loader {
    border: 16px solid #f3f3f3;
    /* Light grey */
    border-top: 16px solid #52BCD3;
    /* Blue */
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 2s linear infinite;
    margin: auto;
}

.loader-contenedor {
    text-align: center;
}

/* BOTON OPCIONES AVANZADA */
.btn.btn-green {
    border-radius: 0.3rem;
    color: #ffffff;
    background-color: #31a7c1;
    border-color: #31a7c1;
}

.btn-green:hover {
    color: #fff;
    background-color: #52BCD3;
    border-color: #52BCD3;
}

.btn.btn-green:focus {
    outline: 0px auto -webkit-focus-ring-color;
    outline-offset: 0px;
}

/* BOTON DE WHATSAPP AL DAR CLICK */
.btn-whatsapp-click {
    background-color: #365ece !important;
    border-color: #365ece !important;
}

/* MOSTRAR BOTON AL LADO DE LABEL */
.btn-label {
    padding: 0.1rem 0.4rem !important;
    line-height: 0 !important;
    font-size: 0.9rem !important;
}

/* FONDO COLOR SUAVE VERDE - ESTO ES PARA SEPARAR LOS FONDOS */
.bg-green-soft {
    background-color: #65cf4b38;
    padding-top: 1rem;
}

.bg-purple-soft {
    background-color: #6b4bcf38;
    padding-top: 1rem;
}

/* Estilos personalizados para asegurar el scroll horizontal */
.table-responsive-custom {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    position: relative;
    min-height: 250px;
    max-height: 400px;
    background-color: #dcfda56e;
    margin-bottom: 1rem;
}

/* Mantiene las columnas con clase 'col-fija' pegadas al desplazarse */
.col-fija {
    position: sticky;
    left: 0;
    z-index: 1;
    /* Mantiene la columna encima del contenido desplazado */
    font-weight: bold;
    background: linear-gradient(135deg, #cbe0f9, #e3f2fd, #cbe0f9);
    background-size: 200% 200%;
    border-radius: 3px;
    /* Bordes redondeados */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btm-sm-tbl {
    margin-bottom: 0px;
    border-radius: 0.25rem;
    padding: 0.2rem;
    background-color: #3681ce !important;
    border-color: #3681ce !important;
}

/* Ajuste básico para evitar que el contenido se ajuste a varias líneas */
.table th,
.table td {
    /*white-space: nowrap;*/
    text-align: left;
}

/* IMAGEN DE CARGANDO */
/* METODO DE PAGO */
.metodo-pago {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.form-select-met,
.form-control-met {
    padding: 5px;
    font-size: 14px;
}

.form-select-met {
    width: 200px;
}

.form-control-met {
    width: 100px;
}

.btn-met {
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
}

.btn-danger-met {
    color: white;
    background-color: red;
    border: none;
}

.btn-add-met {
    margin-top: 10px;
    background-color: green;
    color: white;
    border: none;
}

.table-hover tbody tr:hover {
    background-color: rgb(82 188 211 / 29%) !important;
}

.row-selected {
    background-color: #52BCD3 !important;
    color: rgb(36, 35, 35) !important;
}

.row-selected td {
    color: rgb(36, 35, 35) !important;
}

/* FIN METODO DE PAGO */
/* INPU BUSCAR */
.search-categoria {
    border-radius: 5px;
}

.search-container {
    padding-bottom: 8px;
    background-color: white;
}

.search-wrapper {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    border-radius: 50px;
}

.search-input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border-radius: 25px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    outline: none;
}

.search-button {
    position: absolute;
    right: 5px;
    top: 5px;
    background-color: #6c5ce7;
    color: white;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    background-color: #5649c0;
}

.search-wrapper:focus-within {
    animation: pulse 1.5s infinite;
}

/* VENTANA DE FACTURACION ESTILO PARA DGII BUDGET */
/* Base del badge (compatible con Bootstrap, mantiene color y sin subrayado) */
a.badge.badge-dgii,
a.badge.badge-dgii:link,
a.badge.badge-dgii:visited,
a.badge.badge-dgii:hover,
a.badge.badge-dgii:active,
a.badge.badge-dgii:focus {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    /* sin raya */
    color: #fff !important;
    /* mantiene blanco */
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}

/* Ícono (imagen) — se adapta al texto; si tu imagen ya es blanca, quita el filter */
.badge-dgii .badge-icon {
    height: 16px;
    width: auto;
    vertical-align: middle;
    filter: brightness(0) invert(1);
    transition: transform .25s ease;
    pointer-events: none;
    /* evita clics en la imagen */
}

/* Hover/focus accesible */
a.badge.badge-dgii:hover {
    transform: translateY(-2px);
}

a.badge.badge-dgii:focus-visible {
    outline: 2px solid rgba(255, 255, 255, .6);
    outline-offset: 2px;
}

/* ===== Estados ===== */

/* ACEPTADO (verde) */
.badge-dgii.aceptado {
    background: linear-gradient(135deg, #4caf50, #81c784);
    box-shadow: 0 2px 6px rgba(76, 175, 80, .30);
}

.badge-dgii.aceptado:hover {
    background: linear-gradient(135deg, #43a047, #66bb6a);
    box-shadow: 0 4px 10px rgba(76, 175, 80, .40);
}

.badge-dgii.aceptado:hover .badge-icon {
    transform: rotate(6deg) scale(1.06);
}

/* RECHAZADO (rojo) */
.badge-dgii.rechazado {
    background: linear-gradient(135deg, #e53935, #ef5350);
    box-shadow: 0 2px 6px rgba(229, 57, 53, .30);
}

.badge-dgii.rechazado:hover {
    background: linear-gradient(135deg, #d32f2f, #f44336);
    box-shadow: 0 4px 10px rgba(229, 57, 53, .40);
}

.badge-dgii.rechazado:hover .badge-icon {
    transform: rotate(-6deg) scale(1.06);
}

/* (Opcional) si NO usas Bootstrap y deseas un reset de .badge */
.badge {
    border: 0;
}

/* FIN DE LA VENTANA DE FACTURA - ESTILO BUDGET */
/* ETIQUETA VERDE EN FACTURAS O ELEMENTOS */
.etiqueta-factura {
    background-color: #52BCD3;
    color: #615757 !important;
    padding-left: 5px;
    padding-right: 5px;
}

/* ESTILO CAJA DE CONTROL */
.caja-control {
    background-color: #daf2f7;
    padding-top: 1rem;
    border-radius: 5px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, .18);
}

/* INPUT BUSCAR EL PRIMERO ESTA EN FACTURA-DOC */
.input-search {
    position: relative;
    width: 520px;
    /* ajusta */
    width: 100%;
    margin: 10px 0;
}

.input-search .fa {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #7a8793;
    font-size: 14px;
    pointer-events: none;
}

.input-search .buscar {
    width: 100%;
    height: 34px;
    /* Bootstrap 3 feel */
    padding: 6px 10px 6px 34px;
    /* espacio para icono */
    border: 1px solid #d6dde6;
    border-radius: 4px;
    /* no tan redondo */
    background: #fff;
    color: #2c3e50;
    outline: none;
    box-shadow: none;
    /* más limpio */
}

.input-search .buscar:focus {
    border-color: #b7c7da;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, .10);
}

/* ESTILO SPAN GREEN */
.span-green {
    border: 0;
    background-color: #31a7c1;
    border-radius: 5px;
    padding-left: 5px;
    padding-right: 5px;
    color: aliceblue;
}

.span-red {
    border: 0;
    background-color: #ff4444;
    border-radius: 5px;
    padding-left: 5px;
    padding-right: 5px;
    color: aliceblue;
}

.span-yellow {
    border: 0;
    background-color: #c9b700;
    border-radius: 5px;
    padding-left: 5px;
    padding-right: 5px;
    color: aliceblue;
}

.span-purple {
    border: 0;
    background-color: #7867a7;
    border-radius: 5px;
    padding-left: 5px;
    padding-right: 5px;
    color: aliceblue;
}

/* TITULO PURPLE */
.title-purple {
    font-size: 1rem;
    color: #7867a7 !important;
    font-weight: 600;
    margin-bottom: 0;
}

.btn-primary {
    border-radius: 5px;
}

/* Animación del input */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(110, 142, 251, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(110, 142, 251, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(110, 142, 251, 0);
    }
}

/* FIN DEL INPU BUSCAR */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* FIN */
/*la clase colt en el th y th*/
@media (max-width: 767px) {
    td.colt {
        display: none !important;
    }
}

@media (max-width: 767px) {
    th.colt {
        display: none !important;
    }
}

/* FIN */
/* TAMAÑO DE LAS COLUMNAS */
@media (max-width: 767px) {
    .colt-1 {
        font-size: 13px;
        width: 10% !important;
    }
}

@media (max-width: 767px) {
    .colt-2 {
        font-size: 13px;
        width: 20% !important;
    }
}

@media (max-width: 767px) {
    .colt-3 {
        font-size: 13px;
        width: 30% !important;
    }
}

@media (max-width: 767px) {
    .colt-4 {
        font-size: 13px;
        width: 40% !important;
    }
}

@media (max-width: 767px) {
    .colt-5 {
        font-size: 13px;
        width: 50% !important;
    }
}

@media (max-width: 767px) {
    .colt-6 {
        font-size: 13px;
        width: 60% !important;
    }
}

@media (max-width: 767px) {
    .colt-7 {
        font-size: 13px;
        width: 70% !important;
    }
}

@media (max-width: 767px) {
    .colt-8 {
        font-size: 13px;
        width: 80% !important;
    }
}

@media (max-width: 767px) {
    .colt-9 {
        font-size: 13px;
        width: 90% !important;
    }
}

@media (max-width: 767px) {
    .colt-10 {
        font-size: 13px;
        width: 99% !important;
    }
}

/* Texto para Mobil */
@media (max-width: 767px) {
    .text-mobile {
        font-size: 13px;
    }
}

/* TAMAÑO BOTON MOBIL */
@media (max-width: 767px) {
    .btn-mobile {
        padding-top: 4px;
        padding-bottom: 4px;
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Texto para Mobil */
@media (max-width: 767px) {
    .ocultar {
        display: none !important;
    }
}

/* ESTILOS PARA LOS TOTALES DE COMPRA/VENTA */
.totales-contenedor {
    background: #ffffff;
    border: 1px solid #f0f0f0;
}

.totales-cuerpo {
    padding: 25px;
}

.totales-fila {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #7f8c8d;
    font-size: 0.95rem;
}

.totales-valor {
    font-weight: 600;
    color: #2c3e50;
}

.totales-fila-descuento {
    color: #e74c3c !important;
}

.totales-fila-neto {
    padding-top: 10px;
    border-top: 1px dashed #eee;
}

.totales-footer-gradiente {
    background: linear-gradient(135deg, #2fa0b9ff 0%, #52BCD3 100%);
    margin: -25px;
    margin-top: 20px;
    padding: 25px;
    color: #ffffff;
}

.totales-footer-cuerpo {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.totales-footer-etiqueta {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.totales-footer-monto {
    font-weight: 800;
    font-size: 1.8rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* FIN */

/* Badges estilo Xaplu para resaltar nuevas funcionalidades */
.badge-new-premium {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: white;
    font-size: 9px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(255, 65, 108, 0.4);
    display: inline-block;
    vertical-align: middle;
    letter-spacing: 0.5px;
    animation: pulseBadge 2s infinite;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes pulseBadge {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 5px rgba(255, 65, 108, 0.4);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 2px 12px rgba(255, 65, 108, 0.7);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 2px 5px rgba(255, 65, 108, 0.4);
    }
}

/* FIN Badges estilo Xaplu para resaltar nuevas funcionalidades */

/* ESTILOS PARA EL MODAL DE SUBIR FACTURA DIGITAL CON IA */
.ia-modal-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.ia-col-left {
    width: 380px;
    flex-shrink: 0;
    border-right: 1px solid #eee;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
}

.ia-col-right {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 768px) {
    .ia-modal-body {
        flex-direction: column !important;
        overflow-y: auto !important;
        flex: 1 !important;
        -webkit-overflow-scrolling: touch;
    }

    .ia-col-left {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid #eee;
        flex-shrink: 0 !important;
        overflow-y: visible !important;
        height: auto !important;
    }

    .ia-col-right {
        width: 100% !important;
        flex-shrink: 0 !important;
        overflow-y: visible !important;
        height: auto !important;
    }

    #iaTablaContainer {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ==========================================
   Buscador de Artículos - Filtros y Leyenda
   ========================================== */

.indicadores-colores {
    padding: 8px 0;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    border-bottom: 1px solid #eee;
    margin-bottom: 8px;
}

.indicadores-colores .indicador-titulo {
    color: #666;
    font-weight: bold;
}

.indicador-badge {
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
}

.indicador-badge-articulo {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.indicador-badge-servicio {
    background-color: #f3e8ff;
    color: #6b21a8;
    border: 1px solid #e9d5ff;
}

.filtros-rapidos-container {
    padding: 8px 0;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filtros-rapidos-container .filtro-titulo {
    color: #555;
    font-weight: bold;
}

.filtro-badge {
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
}

.filtro-badge-codigo {
    background-color: #e3fafc;
    color: #0c8599;
    border: 1px solid #99e9f2;
}

.filtro-badge-codigo span {
    background: #0c8599;
    color: #fff;
}

.filtro-badge-nombre {
    background-color: #ebfbee;
    color: #2f9e44;
    border: 1px solid #b2f2bb;
}

.filtro-badge-nombre span {
    background: #2f9e44;
    color: #fff;
}

.filtro-badge-serie {
    background-color: #fff9db;
    color: #f08c00;
    border: 1px solid #ffe066;
}

.filtro-badge-serie span {
    background: #f08c00;
    color: #fff;
}

.filtro-badge span {
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: bold;
    font-family: monospace;
    font-size: 11px;
    line-height: 1;
}

/* FIN DE LOS ESTILOS PARA EL MODAL DE SUBIR FACTURA DIGITAL CON IA */

/* ==========================================================================
   ESTILOS PARA LA GESTIÓN DE INGREDIENTES DE ARTÍCULOS
   Diseño de tarjetas de ingredientes, con miniatura, nombre y zafacón para borrar.
   ========================================================================== */

/* Contenedor de la tarjeta del ingrediente */
.ingrediente-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

/* Efecto hover sobre la tarjeta */
.ingrediente-item-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    border-color: #ced4da;
}

/* Agrupador de la izquierda: miniatura y nombre */
.ingrediente-item-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Imagen miniatura del ingrediente */
.ingrediente-item-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

/* Nombre del ingrediente en un solo renglón */
.ingrediente-item-name {
    font-size: 1rem;
    font-weight: 600;
    color: #2b2b2b;
    margin: 0;
}

/* Botón de eliminación con zafacón */
.ingrediente-item-delete-btn {
    background: transparent;
    border: none;
    color: #dc3545;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Hover del botón de eliminación */
.ingrediente-item-delete-btn:hover {
    background-color: #f8d7da;
    color: #bd2130;
}

/* ==========================================================================
   ESTILOS PREMIUM PARA LA PÁGINA DE LOGIN (mockup style)
   ========================================================================== */

/* --- Aurora keyframes --- */
@keyframes aurora-move-1 {
    0% {
        transform: translate(0%, 0%) scale(1);
    }

    33% {
        transform: translate(6%, -8%) scale(1.08);
    }

    66% {
        transform: translate(-5%, 6%) scale(0.96);
    }

    100% {
        transform: translate(0%, 0%) scale(1);
    }
}

@keyframes aurora-move-2 {
    0% {
        transform: translate(0%, 0%) scale(1.05);
    }

    40% {
        transform: translate(-7%, 9%) scale(0.95);
    }

    75% {
        transform: translate(5%, -5%) scale(1.1);
    }

    100% {
        transform: translate(0%, 0%) scale(1.05);
    }
}

@keyframes aurora-move-3 {
    0% {
        transform: translate(0%, 0%) scale(0.98);
    }

    50% {
        transform: translate(8%, 4%) scale(1.06);
    }

    100% {
        transform: translate(0%, 0%) scale(0.98);
    }
}

@keyframes aurora-move-4 {
    0% {
        transform: translate(0%, 0%) scale(1.02);
    }

    45% {
        transform: translate(-4%, -7%) scale(0.94);
    }

    100% {
        transform: translate(0%, 0%) scale(1.02);
    }
}

body.login-body {
    background-color: #eef1f5 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    overflow: hidden;
}

/* Contenedor aurora — posición fija detrás de todo */
.login-aurora-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(145deg, #dde6f0 0%, #eef1f7 40%, #e8edf5 100%);
}

/* Orbes de aurora */
.login-aurora-bg .aurora-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0;
    will-change: transform;
}

.login-aurora-bg .aurora-orb-1 {
    width: 55vw;
    height: 55vw;
    max-width: 700px;
    max-height: 700px;
    background: radial-gradient(circle, rgba(99, 149, 210, 0.38) 0%, rgba(120, 170, 230, 0.18) 50%, transparent 75%);
    top: -15%;
    left: -10%;
    opacity: 1;
    animation: aurora-move-1 18s ease-in-out infinite;
}

.login-aurora-bg .aurora-orb-2 {
    width: 50vw;
    height: 50vw;
    max-width: 650px;
    max-height: 650px;
    background: radial-gradient(circle, rgba(160, 110, 210, 0.22) 0%, rgba(180, 130, 220, 0.10) 50%, transparent 75%);
    top: 30%;
    right: -15%;
    opacity: 1;
    animation: aurora-move-2 22s ease-in-out infinite;
}

.login-aurora-bg .aurora-orb-3 {
    width: 45vw;
    height: 45vw;
    max-width: 560px;
    max-height: 560px;
    background: radial-gradient(circle, rgba(80, 180, 200, 0.20) 0%, rgba(100, 200, 210, 0.08) 50%, transparent 75%);
    bottom: -10%;
    left: 20%;
    opacity: 1;
    animation: aurora-move-3 26s ease-in-out infinite;
}

.login-aurora-bg .aurora-orb-4 {
    width: 38vw;
    height: 38vw;
    max-width: 480px;
    max-height: 480px;
    background: radial-gradient(circle, rgba(230, 165, 90, 0.13) 0%, rgba(240, 180, 100, 0.06) 50%, transparent 75%);
    top: 10%;
    left: 45%;
    opacity: 1;
    animation: aurora-move-4 20s ease-in-out infinite;
}

/* Ruido sutil para dar textura */
.login-aurora-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.022;
    pointer-events: none;
}

body.login-body .auth {
    background: transparent !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 24px 15px !important;
    position: relative;
    z-index: 1;
}

body.login-body .auth-container {
    width: 100% !important;
    max-width: 400px !important;
    padding: 0 !important;
    margin: 0 auto !important;
}

body.login-body .auth-card-custom {
    background: #ffffff !important;
    border-radius: 24px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03), 0 5px 15px rgba(0, 0, 0, 0.01) !important;
    border: 6px solid rgba(0, 0, 0, 0.02) !important;
    overflow: visible !important;
    margin: 0 !important;
    width: 100% !important;
}

body.login-body .auth-card-body-custom {
    padding: 16px 20px 14px !important
}

body.login-body .login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(220px, 78%);
    min-height: 74px;
    margin: 0 auto 6px;

}

body.login-body .login-brand__logo {
    display: block;
    width: 100%;
    max-width: 190px;
    height: auto;
    max-height: 62px;
    object-fit: contain;
    filter: drop-shadow(0 4px 7px rgba(18, 94, 166, 0.12));
}

@media (max-width: 575px) {
    body.login-body .login-brand {
        width: min(200px, 82%);
        min-height: 68px;
        padding: 8px 14px;
        border-radius: 16px;
    }

    body.login-body .login-brand__logo {
        max-width: 170px;
        max-height: 56px;
    }
}

body.login-body .auth-title-custom {
    font-size: 28px;
    font-weight: 700;
    color: #1a1d24;
    text-align: center;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

body.login-body .auth-subtitle-custom {
    font-size: 14px;
    color: #718096;
    text-align: center;
    margin-bottom: 24px;
}

body.login-body .logo-box-custom {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #2b303b 0%, #1a1d24 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 20px rgba(26, 29, 36, 0.25);
    position: relative;
}

body.login-body .logo-box-custom::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border: 1px dashed rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

body.login-body .grid-logo-custom {
    display: grid;
    grid-template-columns: repeat(3, 6px);
    grid-gap: 4px;
}

body.login-body .grid-logo-custom span {
    width: 6px;
    height: 6px;
    background-color: #a0aec0;
    border-radius: 50%;
}

body.login-body .grid-logo-custom span:nth-child(5) {
    background-color: #ffffff;
}

body.login-body .form-group-custom {
    margin-bottom: 16px;
}

body.login-body .input-label-custom {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
}

body.login-body .input-icon-wrapper-custom {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

body.login-body .input-icon-custom {
    position: absolute;
    left: 16px;
    color: #a0aec0;
    font-size: 16px;
    z-index: 10;
}

body.login-body .form-control-custom {
    width: 100% !important;
    height: auto !important;
    padding: 12px 16px 12px 42px !important;
    background-color: #f7fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    color: #2d3748 !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

body.login-body .form-control-custom:focus {
    background-color: #ffffff !important;
    border-color: #52BCD3 !important;
    box-shadow: 0 0 0 4px rgba(82, 188, 211, 0.15) !important;
    outline: none !important;
}

body.login-body .toggle-password-icon-custom {
    position: absolute;
    right: 16px;
    color: #a0aec0;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.2s ease;
    z-index: 10;
}

body.login-body .toggle-password-icon-custom:hover {
    color: #4a5568;
}

body.login-body .form-group-options-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

body.login-body .remember-me-custom {
    display: flex;
    align-items: center;
    margin-bottom: 0 !important;
    cursor: pointer;
}

body.login-body .checkbox-custom {
    accent-color: #52BCD3;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    cursor: pointer;
}

body.login-body .remember-text-custom {
    font-size: 13.5px;
    color: #4a5568;
    user-select: none;
}

body.login-body .forgot-link-custom {
    font-size: 13.5px;
    font-weight: 600;
    color: #718096;
    text-decoration: none;
    transition: color 0.2s ease;
}

body.login-body .forgot-link-custom:hover {
    color: #52BCD3;
}

body.login-body .btn-submit-custom {
    width: 100% !important;
    padding: 12px !important;
    background-color: transparent !important;
    color: #3a9bb1 !important;
    border: 1px solid #3a9bb1 !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.2s ease !important;
}

body.login-body .btn-submit-custom:hover {
    background-color: #f5fdff !important;
}

body.login-body .btn-submit-custom:active {
    transform: translateY(0) !important;
}

body.login-body .divider-custom {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 28px 0 20px;
    color: #a0aec0;
    font-size: 13px;
    font-weight: 500;
}

body.login-body .divider-custom::before,
body.login-body .divider-custom::after {
    content: '';
    flex: 1;
    border-bottom: 1px dashed #e2e8f0;
}

body.login-body .divider-custom:not(:empty)::before {
    margin-right: .5em;
}

body.login-body .divider-custom:not(:empty)::after {
    margin-left: .5em;
}

body.login-body .social-login-row-custom {
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

body.login-body .btn-social-custom {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 48px !important;
    background-color: #ffffff !important;
    border: 1.5px solid #edf2f7 !important;
    border-radius: 12px !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

body.login-body .btn-social-custom:hover {
    background-color: #f7fafc !important;
    border-color: #e2e8f0 !important;
    transform: translateY(-1px) !important;
}

body.login-body .social-icon-custom {
    font-size: 18px;
    line-height: 1 !important;
}

body.login-body .google-color-custom {
    color: #ea4335;
}

body.login-body .facebook-color-custom {
    color: #1877f2;
}

body.login-body .apple-color-custom {
    color: #000000;
}

body.login-body .auth-card-footer-custom {
    background-color: #f7fafc !important;
    padding: 24px !important;
    border-top: 1px solid #edf2f7 !important;
    text-align: center;
}

body.login-body .auth-card-footer-custom p {
    font-size: 13.5px;
    color: #718096;
    margin-bottom: 6px;
}

body.login-body .auth-card-footer-custom p:last-child {
    margin-bottom: 0;
}

body.login-body .signup-link-custom {
    font-weight: 700;
    color: #1a1d24;
    text-decoration: none;
    transition: color 0.2s ease;
}

body.login-body .signup-link-custom:hover {
    color: #52BCD3;
}

body.login-body .terms-text-custom a {
    font-size: 12px;
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.2s ease;
}

body.login-body .terms-text-custom a:hover {
    color: #718096;
}

body.login-body .btn-back-home-custom {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #718096 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    margin-top: 16px !important;
}

body.login-body .btn-back-home-custom:hover {
    color: #52BCD3 !important;
}

/* --- Mensajes de error de campo --- */
body.login-body .field-error-custom {
    display: block;
    font-size: 12.5px;
    font-weight: 500;
    color: #e05252;
    margin-top: 6px;
    padding: 0 4px;
    min-height: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease, margin-top 0.2s ease;
}

body.login-body .field-error-custom.visible {
    max-height: 40px;
    opacity: 1;
    margin-top: 6px;
}

body.login-body .field-error-custom::before {
    content: '\f071';
    font-family: FontAwesome;
    margin-right: 5px;
    font-size: 11px;
}

/* Input con error */
body.login-body .form-control-custom.input-error {
    border-color: rgba(224, 82, 82, 0.55) !important;
    background: rgba(224, 82, 82, 0.035) !important;
}

body.login-body .form-control-custom.input-error:focus {
    border-color: rgba(224, 82, 82, 0.75) !important;
    box-shadow: 0 0 0 3px rgba(224, 82, 82, 0.12) !important;
}

/* --- Error del servidor (credenciales incorrectas) --- */
body.login-body .server-error-custom {
    display: flex;
    align-items: center;
    gap: 9px;
    background: rgba(224, 82, 82, 0.07);
    border: 1px solid rgba(224, 82, 82, 0.22);
    border-radius: 10px;
    padding: 10px 14px;
    margin-top: 14px;
    font-size: 13.5px;
    font-weight: 500;
    color: #c0392b;
    animation: fadeInError 0.3s ease;
}

body.login-body .server-error-custom i {
    font-size: 15px;
    flex-shrink: 0;
    color: #e05252;
}

@keyframes fadeInError {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   DROPDOWN DE PERFIL PREMIUM (Estilo Mockup)
   ========================================================================== */
body .header .header-block-nav .profile-dropdown-menu {
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    padding: 16px !important;
    min-width: 250px !important;
    background-color: #ffffff !important;
    margin-top: 12px !important;
    overflow: hidden !important;
    transform-origin: top right;
}

@media (max-width: 991px) {
    body .app header.header {
        left: 0 !important;
    }

    body .app aside.sidebar {
        left: -250px !important;
    }

    body .app.sidebar-open aside.sidebar {
        left: 0 !important;
    }

    .mobile-sidebar-close {
        position: absolute;
        top: 16px;
        right: 14px;
        z-index: 3;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        padding: 0;
        border: 1px solid #dce5ec;
        border-radius: 9px;
        background: #ffffff;
        color: #526579;
        font-size: 18px;
        cursor: pointer;
        box-shadow: 0 3px 10px rgba(31, 42, 68, 0.08);
    }

    .mobile-sidebar-close:hover,
    .mobile-sidebar-close:focus {
        border-color: #52bcd3;
        color: #16899a;
        outline: 0;
    }

    #sidebar-collapse-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 40px !important;
        height: 40px !important;
        padding: 0 !important;
        color: #334155 !important;
        font-size: 20px !important;
    }
}

@media (max-width: 767px) {
    body .app header.header {
        height: 50px !important;
        padding: 0 8px !important;
    }

    body .app header.header .header-block-collapse {
        display: flex !important;
        align-items: center !important;
        flex: 0 0 auto !important;
    }

    body .app header.header .header-block-nav {
        display: flex !important;
        align-items: center !important;
        margin-left: auto !important;
        padding-right: 4px !important;
    }

    body .app header.header .header-block-nav>ul>li>a {
        padding-right: 6px !important;
        padding-left: 6px !important;
    }

    body .header .header-block-nav .profile-dropdown-menu {
        position: fixed !important;
        top: 54px !important;
        right: 8px !important;
        left: auto !important;
        width: calc(100vw - 16px) !important;
        min-width: 0 !important;
        max-width: 340px !important;
        margin-top: 0 !important;
    }
}

body .header .header-block-nav .profile.dropdown.open .profile-dropdown-menu,
body .header .header-block-nav .profile-dropdown-menu.show {
    animation: profileDropdownReveal 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes profileDropdownReveal {
    0% {
        opacity: 0;
        transform: translate3d(12px, -10px, 0) scale(0.94);
        filter: blur(3px);
    }

    65% {
        opacity: 1;
        transform: translate3d(-2px, 2px, 0) scale(1.012);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {

    body .header .header-block-nav .profile.dropdown.open .profile-dropdown-menu,
    body .header .header-block-nav .profile-dropdown-menu.show {
        animation: none;
    }
}

.home-connect-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 26px;
    padding: 22px 26px;
    overflow: hidden;
    border: 1px solid #dcecf0;
    border-radius: 16px;
    background: linear-gradient(120deg, #effbfc 0%, #ffffff 68%);
}

.home-connect-card__content {
    max-width: 620px;
}

.home-connect-card__eyebrow {
    color: #16899a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.home-connect-card h5 {
    margin: 5px 0 6px;
    color: #24364b;
    font-size: 20px;
    font-weight: 700;
}

.home-connect-card p {
    margin: 0 0 13px;
    color: #617386;
    font-size: 13px;
}

.home-connect-card__action {
    color: #16899a;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.home-connect-card__action:hover {
    color: #0e6571;
    text-decoration: none;
}

.home-connect-card__action .fa {
    margin-left: 6px;
    transition: transform 180ms ease;
}

.home-connect-card__action:hover .fa {
    transform: translateX(4px);
}

.home-connect-card__image {
    width: 118px;
    max-height: 90px;
    object-fit: contain;
}

@media (max-width: 575px) {
    .home-connect-card {
        padding: 20px;
    }

    .home-connect-card__image {
        display: none;
    }
}

/* Flecha de dropdown deshabilitada o estilizada según mockup */
body .header .header-block-nav .profile-dropdown-menu:before,
body .header .header-block-nav .profile-dropdown-menu:after {
    display: none !important;
}

/* Tarjeta del encabezado del perfil */
.profile-header-card {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background-color: #fafafa !important;
    border: 1px solid #f0f0f0 !important;
    border-radius: 14px !important;
    padding: 12px 14px !important;
    margin-bottom: 12px !important;
}

.profile-header-info {
    display: flex !important;
    flex-direction: column !important;
    max-width: 155px !important;
    text-align: left !important;
}

.profile-header-name {
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.profile-header-email {
    font-size: 12.5px !important;
    color: #8c8c8c !important;
    margin-top: 3px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Contenedor del avatar con gradiente cromatico moderno */
.profile-header-avatar-container {
    position: relative !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    padding: 2.5px !important;
    background: linear-gradient(135deg, #ff007f, #7f00ff, #00f0ff) !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.profile-header-avatar {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border: 2px solid #ffffff !important;
}

/* Links/Items del dropdown */
body .header .header-block-nav .profile-dropdown-menu .dropdown-item {
    display: flex !important;
    align-items: center !important;
    padding: 10px 14px !important;
    margin: 4px 0 !important;
    border-radius: 10px !important;
    color: #262626 !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: transparent !important;
    border: none !important;
    text-align: left !important;
}

/* Iconos de los items */
body .header .header-block-nav .profile-dropdown-menu .dropdown-item .icon,
body .header .header-block-nav .profile-dropdown-menu .dropdown-item .icono-dropdown {
    width: 20px !important;
    height: 20px !important;
    margin-right: 12px !important;
    flex-shrink: 0 !important;
    object-fit: contain !important;
    transition: transform 0.2s ease, filter 0.2s ease !important;
}

/* Transición suave y filtro en hover para iconos de imagen */
body .header .header-block-nav .profile-dropdown-menu .dropdown-item:hover .icono-dropdown {
    transform: scale(1.05);
}

body .header .header-block-nav .profile-dropdown-menu .dropdown-item span {
    color: #262626 !important;
    padding-left: 0 !important;
    font-size: 13.5px !important;
}

/* Hover en items */
body .header .header-block-nav .profile-dropdown-menu .dropdown-item:hover {
    background-color: #f3f4f6 !important;
    color: #111111 !important;
}

body .header .header-block-nav .profile-dropdown-menu .dropdown-item:hover .icon {
    color: var(--primary-color, #52BCD3) !important;
}

/* Divider sutil */
body .header .header-block-nav .profile-dropdown-menu .dropdown-divider {
    height: 1px !important;
    background-color: #f0f0f0 !important;
    margin: 8px 0 !important;
    border: none !important;
}

/* Item de Cerrar Sesion Especial */
body .header .header-block-nav .profile-dropdown-menu .dropdown-item.logout {
    border-top: none !important;
}

body .header .header-block-nav .profile-dropdown-menu .dropdown-item.logout .icon {
    color: #e05252 !important;
}

body .header .header-block-nav .profile-dropdown-menu .dropdown-item.logout:hover {
    background-color: rgba(224, 82, 82, 0.06) !important;
    color: #c0392b !important;
}

body .header .header-block-nav .profile-dropdown-menu .dropdown-item.logout:hover span {
    color: #c0392b !important;
}

/* Soporte completo de Dark Mode (si se usa la clase .dark) */
body.dark .header .header-block-nav .profile-dropdown-menu {
    background-color: #1f1f1f !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

body.dark .profile-header-card {
    background-color: #181818 !important;
    border-color: #2d2d2d !important;
}

body.dark .profile-header-name {
    color: #ffffff !important;
}

body.dark .profile-header-email {
    color: #aaaaaa !important;
}

body.dark .profile-header-avatar {
    border-color: #1f1f1f !important;
}

body.dark .header .header-block-nav .profile-dropdown-menu .dropdown-item {
    color: #dddddd !important;
}

body.dark .header .header-block-nav .profile-dropdown-menu .dropdown-item span {
    color: #dddddd !important;
}

body.dark .header .header-block-nav .profile-dropdown-menu .dropdown-item .icon {
    color: #aaaaaa !important;
}

body.dark .header .header-block-nav .profile-dropdown-menu .dropdown-item:hover {
    background-color: #2d2d2d !important;
}

body.dark .header .header-block-nav .profile-dropdown-menu .dropdown-divider {
    background-color: #2d2d2d !important;
}

/* ==========================================================================
   ACCIONES RÁPIDAS (PÁGINA INICIO)
   ========================================================================== */
.quick-actions-card {
    border-radius: 16px !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    overflow: hidden !important;
}

.quick-actions-card-block {
    padding: 24px !important;
}

.quick-actions-title-block {
    margin-bottom: 20px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    padding-bottom: 12px !important;
}

.quick-actions-main-title {
    font-weight: 700 !important;
    color: #1a1a1a !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
}

.quick-actions-main-title img {
    width: 20px !important;
    height: 20px !important;
    filter: invert(60%) sepia(60%) saturate(400%) hue-rotate(155deg) !important;
}

.quick-actions-main-desc {
    color: #8c8c8c !important;
    font-size: 13px !important;
    margin-top: 4px !important;
    margin-bottom: 0 !important;
}

.quick-actions-section-title {
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    color: #7e8e9f !important;
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.quick-actions-section-title img {
    width: 14px !important;
    height: 14px !important;
}

.quick-actions-btn {
    text-align: left !important;
    padding: 12px 16px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-weight: 600 !important;
    min-height: 48px !important;
    border: 1px solid #d7dde4 !important;
    background-color: #ffffff !important;
    color: #4f5f6f !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
}

.quick-actions-btn:hover {
    background-color: #f8f9fa !important;
    border-color: #b2becb !important;
    color: #1a1a1a !important;
}

.quick-actions-btn img {
    width: 18px !important;
    height: 18px !important;
}

.quick-actions-divider-section {
    margin-top: 16px !important;
    border-top: 1px dashed #f0f0f0 !important;
    padding-top: 16px !important;
}

.quick-actions-flex-container {
    display: flex !important;
    align-items: flex-end !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    width: 100% !important;
}

.quick-actions-flex-grow {
    flex: 1 !important;
    min-width: 250px !important;
}

.quick-actions-select {
    padding: 12px 16px !important;
    border-radius: 10px !important;
    height: 48px !important;
    border: 1px solid #d7dde4 !important;
    font-weight: 600 !important;
    color: #4f5f6f !important;
    background-color: #ffffff !important;
}

.quick-actions-save-btn {
    height: 48px !important;
    width: 48px !important;
    min-width: 48px !important;
    flex-shrink: 0 !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    /* Estado normal: neutro como los demás botones */
    background-color: #ffffff !important;
    border: 1px solid #d7dde4 !important;
    color: #4f5f6f !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease !important;
}

.quick-actions-save-btn:hover,
.quick-actions-save-btn:focus {
    /* Hover: se pone azul como el sidebar */
    background-color: var(--primary-color, #52BCD3) !important;
    border-color: var(--primary-color, #52BCD3) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(82, 188, 211, 0.35) !important;
    outline: none !important;
}

.quick-actions-save-btn:active {
    background-color: #3da8bf !important;
    border-color: #3da8bf !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(82, 188, 211, 0.4) !important;
    transform: scale(0.97) !important;
}

.quick-actions-save-btn img {
    width: 22px !important;
    height: 22px !important;
    display: block !important;
    object-fit: contain !important;
    /* Estado normal: imagen oscura (ícono gris) */
    filter: brightness(0) saturate(100%) opacity(0.55) !important;
    transition: filter 0.2s ease !important;
}

.quick-actions-save-btn:hover img,
.quick-actions-save-btn:focus img {
    /* Hover: imagen blanca sobre fondo azul */
    filter: brightness(0) invert(1) !important;
}

.quick-actions-save-btn:active img {
    filter: brightness(0) invert(1) opacity(0.9) !important;
}

/* Modo Oscuro para Acciones Rápidas */
body.dark .quick-actions-card {
    background-color: #1f1f1f !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark .quick-actions-main-title {
    color: #ffffff !important;
}

body.dark .quick-actions-title-block {
    border-bottom-color: #2d2d2d !important;
}

body.dark .quick-actions-btn {
    background-color: #181818 !important;
    border-color: #2d2d2d !important;
    color: #dddddd !important;
}

body.dark .quick-actions-btn:hover {
    background-color: #242424 !important;
    border-color: #444444 !important;
    color: #ffffff !important;
}

body.dark .quick-actions-divider-section {
    border-top-color: #2d2d2d !important;
}

body.dark .quick-actions-select {
    background-color: #181818 !important;
    border-color: #2d2d2d !important;
    color: #dddddd !important;
}

/* Dark mode: botón guardar */
body.dark .quick-actions-save-btn {
    background-color: #181818 !important;
    border-color: #2d2d2d !important;
    color: #aaaaaa !important;
}

body.dark .quick-actions-save-btn:hover,
body.dark .quick-actions-save-btn:focus {
    background-color: var(--primary-color, #52BCD3) !important;
    border-color: var(--primary-color, #52BCD3) !important;
    color: #ffffff !important;
}

body.dark .quick-actions-save-btn:active {
    background-color: #3da8bf !important;
    border-color: #3da8bf !important;
    color: #ffffff !important;
}
