.dataTables_scrollHeadInner th,
.dataTables_scrollHeadInner td {
    white-space: initial;
}

.horizontalMenu>.horizontalMenu-list>li>ul.sub-menu {
    top: 44px !important;
}

.horizontal-main {
    height: 46px;
}

.card {
    box-shadow: 0 4px 12px rgba(176, 184, 214, 0.18), 0 2px 6px rgba(0, 0, 0, 0.05) !important;
    border-radius: 15px !important;
}

.card-number-2 {
    font-size: clamp(16px, 2vw, 16px);
    font-weight: 600;
    line-height: 1.2;
    font-family: 'Inter', sans-serif;
    color: #3b3b3b;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
    display: inline-block;
}

.number-fit {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    display: block;
}

.total_purchase .number-fit,
.total_sell .number-fit,
.invoice_due .number-fit,
.purchase_due .number-fit {
    font-size: 1em;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

#trial_balance_table th,
#trial_balance_table td {
    font-weight: normal !important;
}

.card-number {
    font: 700 26px/1.2 Inter, sans-serif;
    color: #3b3b3b;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: auto;
}

.card-custom-icon {
    width: 40px;
    height: 40px;
}

.text-sm {
    font-size: 11px;
}

.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.whatsappBtn {
    background-color: #25d366;
    color: white;
    font-size: 28px;
    padding: 18px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.whatsapp-options {
    display: none;
    flex-direction: column;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: absolute;
    bottom: 70px;
    right: 0;
    padding: 10px;
    min-width: 200px;
}

.whatsapp-option {
    color: #444;
    text-decoration: none;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}

.whatsapp-option:last-child {
    border-bottom: none;
}

.whatsapp-option:hover {
    background-color: #f0f0f0;
}

.whatsapp-options.active {
    display: flex;
}

.whatsappBtn:hover {
    transform: scale(1.1);
}


.hor-menu.horizontal-main {
    margin-top: 75px;
    box-shadow: 0px 6px 13px 1px #00000003;
    z-index: 974 !important;
    display: block !important;
}

.app .page {
    min-height: 100vh !important;
}

@media (min-width: 992px) {

    ul.horizontalMenu-list {
        white-space: nowrap !important;
        overflow-x: auto !important;
    }

    ul.horizontalMenu-list li {
        display: inline-block !important;
        float: none !important;
    }
}

@media (min-width: 992px) {
    .app-content.page-body {
        margin-top: 8.5rem;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px !important;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1480px !important;
    }
}

.card-body .table.dataTable th,
.card-body .table.dataTable td {
    font-weight: 400 !important;
    color: #6c757d !important;
}

body.dark-mode .card-body .table.dataTable th,
body.dark-mode .card-body .table.dataTable td {
    font-weight: 400 !important;
    color: #d1d5db !important;
}

.select2-selection {  box-shadow: none !important; }

.input-group-append .btn + .btn, .input-group-append .btn + .input-group-text {
    margin-left: -50px;
}

.customTooltip .introjs-button {
    border: none;
}
.customTooltip .introjs-tooltip-title {
    font-size: 1em;
}

.introjs-hint-pulse {
    background-color: rgb(70, 127, 207, .32);
}

@media (max-width: 1280px) {
    .wrapperSell {
        display: flex;
        flex-direction: column-reverse;
    }
}

div.dataTables_wrapper {
    width: 100%;
    margin: 0 auto;
}

.dataTables_scrollHeadInner th, .dataTables_scrollHeadInner td {
    white-space: nowrap;
}

.dataTables_scrollHeadInner > table {
    width: 100%;
    table-layout: fixed;
}
.dataTables_scrollBody > table {
    width: 100%;
    table-layout: fixed;
}

.ganar-tooltip {
    position: absolute;
    top: 0px;
    right: -25px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #5771b8, #6B8BF3);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 4px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 99;
}
.btn-primary-gradient {
    /* background: linear-gradient(to right, #031a58, #6B8BF3); */
    background: linear-gradient(to right, #5771b8, #6B8BF3);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 5px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    display: inline-block;
    white-space: nowrap;
}

.horizontalMenu {
    height: auto !important;
}

.nav-link:hover .ganar-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* Responsive Módulo Referidos */
.img-referral {
    max-height: 300px;
}

@media (max-width: 576px) {
    .img-referral {
        max-height: 180px;
    }
}

.header-icon, .header-icon2, .svg-icon {
    color: #6B8BF3;
}

.app-launcher-text {
    display: block;
    max-width: 100%;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    position: relative;
    height: 2.4em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.app-launcher-app:hover .app-launcher-text {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.app-launcher-dropdown {
    background: linear-gradient(145deg, #f1f1f1, #edf2ff);
    border-radius: 20px !important;
    box-shadow:
        0 4px 8px rgba(32, 54, 108, 0.1),
        0 12px 24px rgba(32, 54, 108, 0.15) !important;
    padding: 18px 10px !important;
    min-width: 320px !important;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    border: none !important;
    right: 10px !important;
    left: auto !important;
}

.app-launcher-dropdown-mobile {
    background: linear-gradient(145deg, #f1f1f1, #edf2ff);
    border-radius: 20px !important;
    box-shadow:
        0 4px 8px rgba(32, 54, 108, 0.1),
        0 12px 24px rgba(32, 54, 108, 0.15) !important;
    padding: 18px 10px !important;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    border: none !important;
    width: 95vw !important;
    max-width: 420px !important;
    left: 125% !important;
    transform: translateX(-50%) !important; 
    right: auto !important;  
    padding-bottom: 0 !important;
}

.app-launcher-text {
    display: block;
    max-width: 100%;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    position: relative;
    min-height: 2em;
}

.app-launcher-app:hover .app-launcher-text {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.app-launcher-app:hover {
    background-color: #fff;
    border-radius: 20px !important;
    transition: all 0.3s ease;
}

.dropdown-menu-profile {
    background: linear-gradient(145deg, #f1f1f1, #edf2ff);
    border-radius: 20px !important;
    box-shadow: 0 4px 8px rgba(32, 54, 108, 0.1), 0 12px 24px rgba(32, 54, 108, 0.15) !important;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    border: none !important;
    right: 10px !important;
    left: auto !important;
}

.currentColor {
    color: #6B8BF3 !important;
}

.header .nav-link.icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem !important;
}

.header .nav-link.icon svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 1024px) {
    .app-launcher-dropdown {
        position: absolute !important;
        right: 10px !important;
        left: auto !important;
        transform: none !important;
        z-index: 1051 !important;
    }

    .dropdown-menu-profile {
        position: absolute !important;
        right: 10px !important;
        left: auto !important;
        transform: none !important;
        z-index: 1051 !important;
    }
}


/* Mostrar logos oscuros cuando se activa el modo oscuro */
body.dark-mode img.desktop-logo,
body.dark-mode img.mobile-logo {
    display: none !important;
}

body.dark-mode .currentColor {
    color: #ffffff !important;
}

/* Modo claro */
.btn-primary-gradient {
    background: linear-gradient(to right, #5771b8, #6B8BF3);
    color: #fff;
}

/* Modo oscuro */
body.dark-mode .btn-primary-gradient {
    background: #ffffff !important;
    color: #5771b8 !important;
    font-weight: bold;
}

/* Forzar color blanco en íconos dentro del header */
body.dark-mode .header .nav-link.icon i,
body.dark-mode .header .nav-link.icon svg,
body.dark-mode .header .fa,
body.dark-mode .header .fe {
    color: #ffffff !important;
}

.header-notify .pulse {
    left: 28px !important;
}

body.dark-mode .app-launcher-dropdown {
    background: #1c1f2e !important;
    color: #ffffff !important;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.4),
        0 12px 24px rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(10px);
}

body.dark-mode .app-launcher-dropdown-mobile {
    background: #1c1f2e !important;
    color: #ffffff !important;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.4),
        0 12px 24px rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(10px);
}


body.dark-mode .app-launcher-text {
    color: #ffffff !important;
}

body.dark-mode .app-launcher-app:hover {
    background-color: #2b2f44 !important;
}

body.dark-mode .dropdown-menu-profile {
    background: #1c1f2e !important;
    color: #ffffff !important;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.4),
        0 12px 24px rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(10px);
}

body.dark-mode .dropdown-menu-profile a,
body.dark-mode .dropdown-menu-profile span,
body.dark-mode .dropdown-menu-profile div {
    color: #ffffff !important;
}

body.dark-mode .dropdown-menu-profile a:hover {
    background-color: #2b2f44 !important;
}

/* Sol/Luna */
body.dark-mode .sun-icon,
body.dark-mode .moon-icon {
    stroke: #ffffff !important;
}

body.dark-mode .icon-wrapper {
    color: #ffffff !important;
}

/* Cards - modo oscuro */
body.dark-mode .card {
    background: #10163a !important;
    color: #ffffff !important;
}

/* Montos grandes en los cards */
body.dark-mode .card .card-number,
body.dark-mode .card .amount,
body.dark-mode .card .currency,
body.dark-mode .card h3,
body.dark-mode .card h4 {
    color: #ffffff !important;
}

body.dark-mode .card .card-title,
body.dark-mode .card .text-muted,
body.dark-mode .card .blog-text,
body.dark-mode .card .card-number-2,
body.dark-mode .card .table,
body.dark-mode .card-dollar-title,
body.dark-mode .new-table p.small,
body.dark-mode .highcharts-axis-title,
body.dark-mode .text-muted {
    color: #d1d5db !important;
    fill: #d1d5db !important;
}

body.dark-mode .highcharts-axis-labels text,
body.dark-mode .highcharts-data-label text,
body.dark-mode .highcharts-title,
body.dark-mode .highcharts-subtitle {
    fill: #ffffff !important;
    color: #ffffff !important;
}

.dark-mode .table-striped tbody tr:nth-of-type(2n) {
    background-color: #10163a !important;
}

/* Fila normal (modo oscuro) */
body.dark-mode table#trial_balance_table tbody tr {
    background-color: #10163a !important;
    color: #ffffff !important;
}

/* Fila con color de total */
body.dark-mode table#trial_balance_table tbody tr:last-child {
    background-color: #10163a !important;
    font-weight: bold;
    color: #ffffff !important;
}

/* Textos grisados (valores negativos o aclaraciones) */
body.dark-mode table#trial_balance_table tbody tr td {
    color: #dddddd;
}

/* Si alguna fila usa color claro por inline-style (como el total de "pagos sin cuenta") */
body.dark-mode table#trial_balance_table tbody tr td[style*="color:"] {
    color: #aaaaaa !important;
}

/* Tabla clara que quedó con fondo blanco en modo oscuro */
body.dark-mode table#trial_balance_table,
body.dark-mode table#trial_balance_table tr,
body.dark-mode table#trial_balance_table td {
    background-color: #10163a !important;
    color: #ffffff !important;
    border-color: #2a2f45 !important;
}

/* Zebra en filas alternadas */
body.dark-mode table#trial_balance_table tbody tr:nth-of-type(2n) {
    background-color: #10163a !important;
}

/* Fila total al final */
body.dark-mode table#trial_balance_table tbody tr:last-child {
    background-color: #10163a !important;
    font-weight: bold;
}
/* Hover filas en tabla trial_balance modo oscuro */
body.dark-mode table#trial_balance_table tbody tr:hover {
    background-color: #10163a !important;
}

/* Estilo por defecto del botón */
.btn-secondary-small {
    background-color: #6B8BF3;
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    transition: background-color 0.2s ease-in-out;
}

/* Hover modo claro */
.btn-secondary-small:hover {
    background-color: #10163a;
    color: #fff;
}

/* Modo oscuro */
body.dark-mode .btn-secondary-small {
    background-color: #ffffff !important;
    color: #10163a !important;
}

/* Hover modo oscuro */
body.dark-mode .btn-secondary-small:hover {
    background-color: #e5e5e5 !important;
    color: #10163a !important;
}



body.dark-mode .select2-selection {
    background-color: #10163a !important;
    color: #ffffff !important;
}

body.dark-mode table.new-table {
    background-color: #10163a !important;
    color: #ffffff !important;
    border-color: #2a2f45 !important;
}

body.dark-mode table.new-table td,
body.dark-mode table.new-table th {
    background-color: #10163a !important;
    color: #ffffff !important;
    border: none !important;
}

body.dark-mode table.new-table .card-dollar-title {
    background-color: transparent !important;
    color: #90caf9 !important;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
}


body.dark-mode .label {
    color: #ffffff !important;
}

body.dark-mode .bg-lightgray {
    color: #10163a !important;
}

body.dark-mode .bg-red,
body.dark-mode .bg-aqua,
body.dark-mode .bg-light-green {
    color: #10163a !important;
}



/* -------------------
   MODO CLARO (default)
-------------------- */
.btn-my-store {
    background-color: #6B8BF3 !important;
    color: #ffffff !important;
    border-radius: 6px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hor-menu .horizontalMenu-list > li > a.btn-my-store {
    padding: 8px 12px !important;
}

/* Icono y texto en modo claro */
.btn-my-store svg,
.btn-my-store .side-menu__label {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

.btn-my-store:hover {
    background-color: #5a7be0 !important;
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* -------------------
   MODO OSCURO
-------------------- */
body.dark-mode .btn-my-store {
    background-color: #ffffff !important;
    color: #6B8BF3 !important;
}

/* Icono y texto en modo oscuro */
body.dark-mode .btn-my-store svg,
body.dark-mode .btn-my-store .side-menu__label {
    color: #6B8BF3 !important;
    stroke: #6B8BF3 !important;
}

/* Fondo oscuro y texto claro para submenús en modo oscuro */
body.dark-mode ul.horizontalMenu-list,
body.dark-mode ul.horizontalMenu-list .sub-menu {
    background-color: #10163a !important;
    color: #ffffff !important;
}

/* Asegura que los ítems también hereden el color */
body.dark-mode ul.horizontalMenu-list .sub-menu li a {
    color: #ffffff !important;
}

/* Opcional: hover con color más claro */
body.dark-mode ul.horizontalMenu-list .sub-menu li a:hover {
    background-color: #2a2f45 !important;
}


/* Forzar fondo oscuro en los items internos */
body.dark-mode .ui-autocomplete li,
body.dark-mode .ui-autocomplete .ui-menu-item,
body.dark-mode .ui-autocomplete .autocomplete-item,
body.dark-mode .ui-autocomplete .ui-menu-item-wrapper {
    background-color: #10163a !important;
    color: #ffffff !important;
    border: none !important;
}

/* Hover sobre items */
body.dark-mode .ui-autocomplete .ui-menu-item:hover,
body.dark-mode .ui-autocomplete .autocomplete-item:hover {
    background-color: #2b2f44 !important;
    color: #ffffff !important;
}

/* Colores secundarios (por ejemplo precios en rojo o textos deshabilitados) */
body.dark-mode .ui-autocomplete .text-danger {
    color: #ff7070 !important;
}
body.dark-mode .ui-autocomplete .text-muted {
    color: #aaaaaa !important;
}

body.dark-mode .horizontalMenucontainer .app-header {
    background-color: #10163a !important;
    color: #ffffff !important;
    border-bottom: 1px solid #2a2f45 !important;
}



body.dark-mode .bg-light-blue {
    background: linear-gradient(to top, #1e2b5c, #0f132e) !important;
    color: #ffffff !important;
    border-bottom: 1px solid #2a2f45 !important;
}

/* Íconos dentro del header */
body.dark-mode .bg-light-blue .fa-check-circle,
body.dark-mode .bg-light-blue .rotate-icon {
    color: #ffffff !important;
}

/* Íconos activos (rotado) */
body.dark-mode .rotate-icon {
    color: #ffffff !important;
}

/* Botón dentro de collapse */
body.dark-mode .card-body .btn-outline-info {
    border-color: #6B8BF3 !important;
    color: #6B8BF3 !important;
}

/* Hover del botón en modo oscuro */
body.dark-mode .card-body .btn-outline-info:hover {
    background-color: #6B8BF3 !important;
    color: #ffffff !important;
}

body.dark-mode .modal-content {
    background-color: #10163a !important;
    color: #ffffff;
}

body.dark-mode .modal-header {
    background-color: #1f2b53 !important;
    border-bottom: 1px solid #2a2f45;
}

body.dark-mode .modal-body .alert {
    background-color: #2a2f45;
    color: #ffffff;
    border-color: #3c4a6b;
}


body.dark-mode .alert-danger {
    background: #3b1e1e !important;
    color: #ff8a80 !important;
}

body.dark-mode .alert-warning {
    background: #3b2f1e !important;
    color: #ffe082 !important;
}

body.dark-mode .alert-info {
    background: #23344d !important;
    color: #c0dcff !important;
}

body.dark-mode .alert-success {
    background: #1e3b2f !important;
    color: #b9f6ca !important;
}

/* Enlaces dentro de alertas en modo oscuro */
body.dark-mode .alert a {
    color: #ffffff !important;
    text-decoration: underline !important;
}

body.dark-mode .alert a:hover {
    color: #e0e0e0 !important;
}

/* Fondo y textos generales del wizard */
body.dark-mode .wizard,
body.dark-mode .wizard .content,
body.dark-mode .wizard .steps {
    background-color: #10163a !important;
    color: #ffffff !important;
    border-color: #2a2f45 !important;
}

/* Paso actual (círculo azul claro con número) */
body.dark-mode .wizard .steps .current a,
body.dark-mode .wizard .steps .current a:hover {
    background-color: #6B8BF3 !important;
    color: #ffffff !important;
}

/* Pasos futuros (círculo gris) */
body.dark-mode .wizard .steps ul li a {
    background-color: #2a2f45 !important;
    color: #cccccc !important;
}

/* Título del paso activo */
body.dark-mode .wizard .title {
    color: #ffffff !important;
}

/* Formulario interno */
body.dark-mode .wizard .body input,
body.dark-mode .wizard .body select,
body.dark-mode .wizard .body textarea {
    background-color: #1a1f3c !important;
    color: #ffffff !important;
    border: 1px solid #2a2f45 !important;
}

/* Placeholder oscuro */
body.dark-mode .wizard .body input::placeholder,
body.dark-mode .wizard .body textarea::placeholder {
    color: #aaaaaa !important;
}

/* Labels */
body.dark-mode .wizard .body label {
    color: #ffffff !important;
}

/* Indicador de paso activo */
body.dark-mode .wizard .steps li.current .number {
    background-color: #6B8BF3 !important;
    color: #ffffff !important;
}

body.dark-mode .static-account li,
body.dark-mode .static-account li span,
body.dark-mode .static-account .font-weight-bold {
    background-color: #10163a !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px #10163a !important;
    border-radius: 12px !important;
    padding: 8px 14px;
    display: inline-block;
    border: none !important;
    margin: 4px;
}

/* Opcional: hover */
body.dark-mode .static-account li:hover {
    background-color: #1a1f3c !important;
}


/* -------------------
   MELI
-------------------- */
.meli-widget > .card-header {
    background-color: #FFF59D;
    border-bottom: 1px solid #e0e0e0;
}

.meli-widget .card-header .card-title {
    color: black; /* Amarillo para el texto del título */
}

.meli-widget .card-header .card-options-collapse i {
    color: #000000;
}

.meli-widget .card-header .icon-wrapper {
    background-color: #FFE600; /* amarillo */
    color: #000000; /* negro */
    border-radius: 50%;
    padding: 8px;
    font-size: 1.25em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-right: 10px;
}

.icon-svg {
    width: 24px;
    height: 24px;
}

.icon-svg-wrapper {
    background-color: #FFE600;
    border-radius: 50%;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-right: 10px;
}

.bg-light-blue {
    background: linear-gradient(to top, #cbdcff, #ffffff) !important;
    border-bottom: 1px solid #d0e3ff !important;
    cursor: pointer !important;
    border-radius: 16px !important;
}

.rotate-icon {
    transition: transform 0.3s ease;
}

.meli-help-modal-body {
    font-size: 15px;
    line-height: 1.7;
    padding: 1.5rem 1.8rem;
    max-height: 70vh;
    overflow-y: auto;
}

.meli-help-modal-body h5 {
    font-weight: bold;
    margin-bottom: 1rem;
    color: #5771b8;
}

.meli-help-section {
    margin-bottom: 2.5rem;
}

.meli-help-modal-body ul {
    padding-left: 1.2rem;
}

.meli-help-dialog {
    max-width: 900px;
}

.card.card-purple .card-body,
.card.card-green .card-body,
.card.card-yellow .card-body,
.card.card-red .card-body {
    padding-top: 1rem !important;
    padding-bottom: 0rem !important;
}

.referred-button {
    font-size: 12px !important;
    padding: 8px 10px !important;
    line-height: 1 !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    height: auto !important;
}

/* MELI Contenedor “solito” contra el fondo */
.meli-widget {
    margin-top: 0;
    box-shadow: none;
    border: none;
}

/* Header de la card en amarillo claro */
.meli-widget>.card-header {
    background-color: #FFF59D !important;
    border-bottom: 1px solid #e0e0e0;
}

/* Título en negro para contraste */
.meli-widget>.card-header .card-title {
    color: #000000 !important;
}

/* Icono de “archivo” en amarillo intenso */
.meli-widget>.card-header .fa-file-alt {
    color: #FFE600;
    margin-right: 8px;
    font-size: 1.25em;
    vertical-align: middle;
}

/* Ícono de colapsar en negro */
.meli-widget>.card-header .card-options-collapse i {
    color: #000000 !important;
}

.icon-svg {
    width: 24px;
    height: 24px;
}

.icon-svg-wrapper {
    background-color: #FFE600;
    border-radius: 50%;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-right: 10px;
}




/* Alerts Design */
.alert {
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 1rem;
    align-items: center;
    gap: 10px;
}

/* Light mode (default) */
.alert-danger {
    background: #f8bcbc !important;
    color: #d32f2f;
    border: none !important;
}

.alert-warning {
    background: #ffe082 !important;
    color: #b8860b;
    border: none !important;
}

.alert-info {
    background: #90caf9 !important;
    color: #0553a1;
    border: none !important;
}

.alert-success {
    background: #a5d6a7 !important;
    color: #388e3c;
    border: none !important;
}

/* Enlaces dentro de alertas */
.alert a {
    text-decoration: underline !important;
    color: inherit;
}


/* Estilos Select2 */
.select2-selection {
    background-color: #fff !important;
    border: none !important;
    border-radius: 5px !important;
}

/* Estilos generales para select estándar */
select.form-control {
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 5px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2210%22%20height%3D%225%22%20viewBox%3D%220%200%2010%205%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M0%200L5%205L10%200%22%20fill%3D%22%23aaa%22/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px 7px;
    color: #495057;
    font-size: 14px !important;
    line-height: 1.5;
}

select.form-control:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}


/* Estilos para "Ventas" */
.input-group-text {
    height: calc(2.25rem + 2px);
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    line-height: 1.6;
}

.btn-product-add {
	background-color: #e0f0ff;
	display: flex;
	align-items: center;
	height: 100%;
    align-content: center;
}

.tooltip-hover {
	position: relative;
	display: inline-block;
	cursor: pointer;
}

.tooltip-hover::after {
	content: attr(data-title);
	position: absolute;
	bottom: 130%;
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
	background: linear-gradient(145deg, #f1f1f1, #edf2ff);
	color: #2d3969;
	padding: 10px 16px;
	border-radius: 24px;
	font-size: 15px;
	font-weight: 500;
	box-shadow:
		0 4px 8px rgba(32, 54, 108, 0.1),
		0 12px 24px rgba(32, 54, 108, 0.15);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, transform 0.3s ease;
	z-index: 1000;
}

.tooltip-hover::before {
	content: "";
	position: absolute;
	bottom: 118%;
	left: 50%;
	transform: translateX(-50%);
	border-width: 8px;
	border-style: solid;
	border-color: #edf2ff transparent transparent transparent;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease;
	z-index: 1000;
}

.tooltip-hover:hover::after,
.tooltip-hover:hover::before {
	opacity: 1;
	visibility: visible;
}


.table-pos {
	border-collapse: separate;
	border-spacing: 0;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	border-radius: 12px;
	overflow: hidden;
	font-size: 14px;
	color: #2d3969;
	background-color: #fff;
}

.table-pos thead {
	background-color: #eaf0ff;
	color: #2d3969;
	text-transform: uppercase;
	font-weight: 600;
}

.table-pos thead th {
	padding: 12px 8px;
	text-align: center;
	border-bottom: 1px solid #dce3f0;
}

.table-pos tbody td {
	text-align: center;
	vertical-align: middle;
	padding: 8px;
	border-top: 1px solid #f0f0f0;
}

.table-pos tfoot {
	background-color: #f8faff;
	font-weight: 500;
}

.table-pos tfoot td {
	padding: 10px;
	color: #2d3969;
}

.tooltip-custom {
	background: #eaf0ff;
	color: #2d3969;
	padding: 6px 14px;
	border-radius: 12px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	font-size: 14px;
}

/* Líneas horizontales y verticales */
.table-pos thead th,
.table-pos tbody td,
.table-pos tfoot td {
	border-bottom: 1px solid #e0e6f6 !important;
	border-right: 1px solid #e0e6f6 !important;
}

.table-pos thead th:last-child,
.table-pos tbody td:last-child,
.table-pos tfoot td:last-child {
	border-right: none !important;
}

.table-pos tbody tr {
	border-top: 1px solid #f0f0f0 !important;
}



.quantity-wrapper .btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.quantity-wrapper .btn-outline-danger {
    background-color: #ffe5e5;
    border-color: #ff4d4f;
    color: #c40000;
}

.quantity-wrapper .btn-outline-danger:hover {
    background-color: #ff4d4f;
    color: #fff;
}

.quantity-wrapper .btn-outline-success {
    background-color: #e6fff0;
    border-color: #52c41a;
    color: #1a861a;
}

.quantity-wrapper .btn-outline-success:hover {
    background-color: #52c41a;
    color: #fff;
}

.quantity-wrapper input.form-control {
    max-width: 90px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid #ddd;
}

.btn-delete-row {
	width: 32px;
	height: 32px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background-color: #ffe5e5;
	border: 1px solid #ff4d4f;
	color: #c40000;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-delete-row:hover {
	background-color: #ff4d4f;
	color: #fff;
}


/* Scroll azul estilizado para navegadores Webkit (Chrome, Edge, Opera, Safari) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #e0e7ff;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #10163a;
    border-radius: 10px;
    border: 1px solid #bfdbfe;
}

::-webkit-scrollbar-thumb:hover {
    background: #10163a;
}

* {
    scrollbar-color: #10163a #e0e7ff;
    scrollbar-width: thin;
}


/* Checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    padding-left: 38px;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    color: #2D3969;
    user-select: none;
    transition: color 0.2s ease;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox .checkmark {
    height: 24px;
    width: 24px;
    background-color: #fff;
    border: 2px solid #6B8BF3;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: inline-block;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.2s ease;
}

.custom-checkbox:hover .checkmark {
    box-shadow: 0 0 0 3px rgba(107, 139, 243, 0.2);
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: #6B8BF3;
    border-color: #6B8BF3;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
}

/* Modo oscuro para checkboxes */
body.dark-mode .custom-checkbox {
    color: #ffffff !important;
}

body.dark-mode .custom-checkbox .checkmark {
    background-color: #1a1f3c !important;
    border-color: #6B8BF3 !important;
}

body.dark-mode .custom-checkbox:hover .checkmark {
    box-shadow: 0 0 0 3px rgba(107, 139, 243, 0.3) !important;
}

body.dark-mode .custom-checkbox input:checked ~ .checkmark {
    background-color: #6B8BF3 !important;
    border-color: #6B8BF3 !important;
}

/* Estilos para el asistente de configuración en modo oscuro */
body.dark-mode .card h3.text-primary,
body.dark-mode .card h4,
body.dark-mode .card .card-title,
body.dark-mode .card .form-group label,
body.dark-mode .card .checkbox label,
body.dark-mode .card .custom-checkbox {
    color: #ffffff !important;
}

/* Títulos de secciones del asistente */
body.dark-mode .card-header h3.text-primary {
    color: #ffffff !important;
}

/* Preguntas y textos descriptivos */
body.dark-mode .card-body h4,
body.dark-mode .card-body .form-group label,
body.dark-mode .card-body .checkbox label {
    color: #e0e0e0 !important;
}

/* Textos de los checkboxes específicamente */
body.dark-mode .card-body .custom-checkbox {
    color: #f0f0f0 !important;
    font-weight: 500;
}

/* Hover en modo oscuro para mejor contraste */
body.dark-mode .custom-checkbox:hover {
    color: #ffffff !important;
}

/* Labels de formularios en modo oscuro */
body.dark-mode .form-group label {
    color: #e0e0e0 !important;
}

/* Textos de ayuda y descripciones */
body.dark-mode .text-muted,
body.dark-mode .help-block,
body.dark-mode .form-text {
    color: #b0b0b0 !important;
}

/* Estilos específicos para el asistente de configuración */
body.dark-mode .card-header.bg-light-blue h3 {
    color: #ffffff !important;
}

/* Títulos de secciones específicas del asistente */
body.dark-mode .card-header h3.text-primary {
    color: #ffffff !important;
    font-weight: 600;
}

/* Preguntas del asistente */
body.dark-mode .card-body h4.py-1 {
    color: #ffffff !important;
    font-weight: 500;
}

/* Textos de los módulos y opciones */
body.dark-mode .card-body .custom-checkbox {
    color: #f5f5f5 !important;
    font-weight: 500;
}

/* Mejorar contraste para textos importantes */
body.dark-mode .card-body .form-group label {
    color: #e8e8e8 !important;
    font-weight: 500;
}

/* Estilos para el contenido del asistente */
body.dark-mode #settingsAccordion .card-body {
    color: #f0f0f0 !important;
}

/* Asegurar que todos los textos del asistente sean visibles */
body.dark-mode .assistant-settings .card,
body.dark-mode .assistant-settings .card-body,
body.dark-mode .assistant-settings .form-group {
    color: #f0f0f0 !important;
}

/* Estilos específicos para títulos y textos del asistente */
body.dark-mode .assistant-settings .card-header h3 {
    color: #ffffff !important;
    font-weight: 600;
}

body.dark-mode .assistant-settings .card-body h4 {
    color: #ffffff !important;
    font-weight: 500;
}

body.dark-mode .assistant-settings .custom-checkbox {
    color: #f5f5f5 !important;
    font-weight: 500;
}

/* Mejorar visibilidad de textos en modo oscuro */
body.dark-mode .assistant-settings .text-primary {
    color: #ffffff !important;
}

body.dark-mode .assistant-settings .card-header .text-primary {
    color: #ffffff !important;
}

/* Estilos para el contenido específico del asistente */
body.dark-mode .assistant-settings .card-body .row .col-sm-4 {
    color: #f0f0f0 !important;
}

/* Asegurar que los textos de los módulos sean visibles */
body.dark-mode .assistant-settings .card-body .checkbox {
    color: #f0f0f0 !important;
}

/* Estilos para el botón del asistente en modo oscuro */
body.dark-mode .assistant-settings .btn-custom {
    background: linear-gradient(90deg, #6B8BF3, #415594) !important;
    color: #ffffff !important;
    font-weight: 600;
}


/* BTN Custom */
.btn-custom {
    width: 100%;
    padding: 1rem 2.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    border: none;
    border-radius: 50rem;
    background: linear-gradient(90deg, #6B8BF3, #415594);
    box-shadow: 0 0.25rem 0.5rem rgba(65, 85, 148, 0.3);
    transition: all 0.3s ease-in-out;
}

.btn-custom:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.blog-content .blog-text {
    -webkit-line-clamp: 5 !important;
}

@media (min-width: 1600px) {
    .card-qr .card-body {
        padding-top: 1.5rem !important;
    }
}

@media (max-width: 1600px) {
    .card-qr.tasks-incomplete .card-body {
        padding-top: 1.7rem !important;
    }
}

@media (min-width: 1600px) {
    body.dark-mode .card-dollar .card-body {
        padding-top: 0.5rem !important;
    }
}

