/* Here, the content of the common custom CSS defined into Home - Setup - Display - CSS*/
.open > .dropdown-menu,
.dropdown dd ul.open {
    background-color: #fff; /* o el color que uses */
    z-index: 9999;
    position: absolute; /* o relative, según tu estructura */
}

.hidden-xs{
    color:black;
}
.open > .dropdown-menu, .dropdown dd ul.open {
    background-color: #fff;
    margin-top: 30px;
    z-index: 9999;
    position: absolute;
}

/* ===== DROPDOWN DE DOCUMENTOS MODERNO ===== */


dl.dropdown dt a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    border-radius: 6px;
    color: #6b7280 !important;
    background: transparent;
    transition: all 0.2s ease;
}

dl.dropdown dt a:hover {
    color: #3b82f6 !important;
    background: #f3f4f6;
    transform: translateY(-1px);
}

dl.dropdown dd {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}



@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}









table.nobottomiftotal tr.liste_total td {
   background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
}

form#searchFormList div.liste_titre {
    padding: 3px 10px;
 background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

tr.liste_titre th, th.liste_titre, tr.liste_titre td, td.liste_titre, form.liste_titre div {
    font-family: "Century Gothic", "Futura PT", sans-serif;
     background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

div.tabBar {
   background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

div.tabsAction > a.butAction, div.tabsAction > a.butActionRefused, div.tabsAction > a.butActionDelete, div.tabsAction > span.butAction, div.tabsAction > span.butActionRefused, div.tabsAction > span.butActionDelete, div.tabsAction > div.divButAction > span.butAction, div.tabsAction > div.divButAction > span.butActionDelete, div.tabsAction > div.divButAction > span.butActionRefused, div.tabsAction > div.divButAction > a.butAction, div.tabsAction > div.divButAction > a.butActionDelete, div.tabsAction > div.divButAction > a.butActionRefused {
   
    font-family: monospace;
}









tr.liste_titre {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 2px solid #1f2937;
}

tr.liste_titre th {
    padding: 16px 20px;
    color: #080808;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    position: relative;
}

tr.liste_titre th:first-child {
    border-radius: 12px 0 0 0;
}

tr.liste_titre th:last-child {
    border-radius: 0 12px 0 0;
}

tr.liste_titre th::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #000000, #4a5568, #000000);
    opacity: 0.8;
}

/* Badge en encabezado */
tr.liste_titre th .badge {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white !important;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

/* ===== FILAS DE DATOS MODERNAS ===== */
tr.oddeven {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

/* ← CORREGIDO: SIN translateX (ya no genera scroll) */
tr.oddeven:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    /* transform: translateX(2px);  ← QUITADO */
}

tr.oddeven:nth-child(even) {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

tr.oddeven:nth-child(even):hover {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

tr.oddeven td {
    padding: 16px 20px;
    color: #374151;
    font-size: 15px;
    line-height: 1.5;
    vertical-align: middle;
}



/* ===== TABLA INTERNA SIN BORDES ===== */
table.nobordernopadding {
    border: none !important;
    background: transparent;
    margin: 0;
    padding: 0;
}

tr.nocellnopadd td {
    padding: 0 !important;
    border: none !important;
    background: transparent;
}







/* ===== ENLACES Y CONTENIDO DE CELDAS ===== */
tr.oddeven td a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

tr.oddeven td a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Iconos en enlaces */
tr.oddeven td a .fas,
tr.oddeven td a .fa {
    margin-right: 8px;
    font-size: 18px;
    color: #6c6aa8;
}

tr.oddeven td a:hover .fas,
tr.oddeven td a:hover .fa {
    color: #3b82f6;
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

































.div-table-responsive {
    overflow-x: visible !important;
}



.ulselectedfields li {
    margin: 0;
    padding: 0;
}

.ulselectedfields li a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.ulselectedfields li a:hover {
    background: #f8fafc;
    color: #3b82f6;
    border-left: 3px solid #3b82f6;
}

.ulselectedfields li a .fa {
    margin-right: 12px;
    font-size: 16px;
    color: #9ca3af;
    width: 20px;
    text-align: center;
}

.ulselectedfields li a:hover .fa {
    color: #3b82f6;
}

/* ===== BADGES DE ESTADO MODERNOS ===== */
.badge.badge-dot.badge-status6 {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.3);
}

.badge.badge-dot.badge-status6:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 6px rgba(139, 92, 246, 0.4);
}

/* ===== MONTO EN COLUMNAS DERECHAS ===== */
td.nowrap.right .amount {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-weight: 600;
    color: #1f2937;
    font-size: 16px;
    letter-spacing: -0.025em;
}





















tr.oddeven td.nowrap.right:not(:last-child) .amount {
    color: #059669;
}

/* ===== FILA TOTAL MODERNA ===== */
tr.liste_total {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 2px solid #e5e7eb;
    font-weight: 600;
}

tr.liste_total td {
    padding: 20px;
    color: #374151;
    font-size: 15px;
}

tr.liste_total td:first-child {
    border-radius: 0 0 0 12px;
}

tr.liste_total td:last-child {
    border-radius: 0 0 12px 0;
}

tr.liste_total td .amount {
    color: #1f2937 !important;
    font-weight: 700;
    font-size: 18px;
}

tr.liste_total td span[style*="font-weight: normal"] {
    font-weight: 400 !important;
    color: #6b7280;
    font-size: 14px;
    margin-left: 8px;
}

/* ===== ANIMACIONES SUAVES ===== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

tr.oddeven {
    animation: slideIn 0.3s ease-out;
}

tr.oddeven:nth-child(1) { animation-delay: 0.05s; }
tr.oddeven:nth-child(2) { animation-delay: 0.1s; }
tr.oddeven:nth-child(3) { animation-delay: 0.15s; }


/* ===== EFECTO DE SEPARACIÓN ENTRE COLUMNAS ===== */
tr.oddeven td:not(:first-child):not(:last-child) {
    position: relative;
}

tr.oddeven td:not(:first-child):not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #e5e7eb, transparent);
}



































































































/* ===== ESTADOS MODERNOS ===== */
.ok {
    color: #059669 !important;
    font-weight: 600;
}

.warning {
    color: #d97706 !important;
    font-weight: 500;
}

.error {
    color: #dc2626 !important;
    font-weight: 600;
}

.green {
    color: #10b981 !important;
    font-weight: 500;
}

/* ===== BLOQUES DE ESTADO MODERNOS ===== */
.bloc_success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
    font-weight: 500;
}

.bloc_warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(245, 158, 11, 0.2);
    font-weight: 500;
}

div.ok {
    color: #0891b2;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
    border-left: 4px solid #06b6d4;
    border-radius: 0 8px 8px 0;
    margin: 1rem 0;
}

/* Mensaje de advertencia moderno */
div.warning {
    border-left: 4px solid #f59e0b;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-weight: 500;
}

/* Mensaje de error moderno */
div.error {
    border-left: 4px solid #dc2626 !important;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-weight: 500;
    font-size: unset !important;
}

/* Info admin moderno */
div.info {
    border-left: 4px solid #3b82f6;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-weight: 500;
}

/* ===== ENLACES DE ESTADO ===== */
a.normal:link,
a.normal:visited,
a.normal:active,
a.normal:hover {
    font-weight: normal;
    color: #3b82f6;
}

a.impayee:link,
a.impayee:visited,
a.impayee:active {
    font-weight: 600;
    color: #dc2626;
}

a.impayee:hover {
    font-weight: 600;
    color: #b91c1c;
    text-decoration: underline;
}

/* ===== CONTENEDOR EXTERNO ===== */
.framecontent {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.framecontent iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== UTILIDADES MODERNAS ===== */
.movable {
    cursor: move;
    transition: transform 0.2s ease;
}

.movable:hover {
    transform: translateY(-1px);
}

.borderrightlight {
    border-right: 1px solid #e5e7eb;
}

#formuserfile {
    margin-top: 0.5rem;
}

#formuserfile_link {
    margin-left: 0.125rem;
    color: #3b82f6;
    font-weight: 500;
}

.listofinvoicetype {
    height: 2.5rem;
    vertical-align: middle;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.divsocialnetwork:not(:first-child) {
    padding-left: 1.5rem;
}

/* ===== BÚSQUEDA MODERNA ===== */
div.divsearchfield {
    display: inline-flex;
    align-items: center;
    margin: 0.375rem 1rem 0.375rem 0.125rem;
    padding-left: 0.125rem;
    gap: 0.5rem;
}

.divfilteralone {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
}

.divsearchfieldfilter {
    padding-bottom: 0.5rem;
    opacity: 0.8;
    font-size: 0.875rem;
    color: #6b7280;
}

.divadvancedsearchfield:first-child {
    margin-top: 0.25rem;
}

.divadvancedsearchfield {
    display: inline-flex;
    flex-direction: column;
    padding: 0.75rem 1rem;
    margin: 0.25rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    min-width: 200px;
}

.divadvancedsearchfield span.select2.select2-container.select2-container--default {
    width: 100% !important;
}

.search_component_params {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
    border-radius: 8px;
    min-height: 2.5rem;
}

.search_component_searchtext {
    padding-top: 0.25rem;
    flex: 1;
}

.search_component_params_text,
.search_component_params_text:focus {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    width: 100%;
    margin: 0 !important;
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
}

.tagsearch {
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-radius: 20px;
    color: #0369a1;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.tagsearchdelete {
    color: #6b7280;
    cursor: pointer;
    font-weight: 600;
    padding-left: 0.5rem;
    transition: color 0.2s ease;
}

.tagsearchdelete:hover {
    color: #dc2626;
}

/* Indicadores de dirección */
.caretleftaxis,
.caretdownaxis {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Filtros y medidas */
.a-filter,
.a-mesure {
    border-radius: 50px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #1f2937;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.a-filter:hover,
.a-mesure:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.a-filter:before,
.a-mesure:before {
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    padding-right: 0.5rem;
    padding-left: 0.25rem;
    color: #6b7280;
}

.a-filter-disabled,
.a-mesure-disabled {
    border-radius: 50px;
    background: #f9fafb;
    padding: 0.75rem 1rem;
    opacity: 0.6;
    color: #9ca3af;
    cursor: not-allowed;
}

/* ===== HERRAMIENTAS DE ESCANEO ===== */
div.div-for-modal {
    position: absolute;
    top: calc(50% - 200px);
    left: calc(50% - 250px);
    width: 500px;
    height: 400px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

#scantoolmessage {
    height: 3em;
    border: none;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    margin: 1rem;
}

div.div-for-modal-topright {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 50%;
    height: 320px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 1100;
}

/* ===== COMPONENTES VARIOS ===== */
div.confirmmessage {
    padding-top: 0.75rem;
    font-weight: 500;
    color: #1f2937;
}

ul.attendees {
    padding: 0;
    margin: 0;
    list-style: none;
}

ul.attendees li {
    padding: 0.375rem 0;
    border-bottom: 1px solid #f3f4f6;
}

ul.attendees li:last-child {
    border-bottom: none;
}

.googlerefreshcal {
    padding: 0.5rem 0;
    color: #3b82f6;
    font-weight: 500;
}

.paddingtopbottom {
    padding: 1rem 0;
}

.checkallactions {
    margin: 0.125rem;
    vertical-align: middle;
}

select.flat.selectlimit {
    max-width: 5rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 0.375rem 0.5rem;
}

.selectlimit,
.marginrightonly {
    margin-right: 1rem !important;
}

.marginleftonly {
    margin-left: 1rem !important;
}

.marginleftonlyshort {
    margin-left: 0.375rem !important;
}

.nomarginleft {
    margin-left: 0 !important;
}

.margintoponly {
    margin-top: 1rem !important;
}

.marginbottomonly {
    margin-bottom: 1rem !important;
}

.marginbottomonlyshort {
    margin-bottom: 0.25rem !important;
}

.nomargintop {
    margin-top: 0 !important;
}

.nomarginbottom {
    margin-bottom: 0 !important;
}

.selectlimit:focus {
    border: 1px solid #3b82f6 !important;
    outline: 2px solid rgba(59, 130, 246, 0.1);
}

.strikefordisabled {
    text-decoration: line-through;
    color: #9ca3af;
    opacity: 0.6;
}

.widthdate {
    width: 9rem;
}



/* ===== ESTILOS DE MONTO ===== */
table.paymenttable td.amountpaymentcomplete,
table.paymenttable td.amountremaintopay,
table.paymenttable td.amountremaintopayback {
    padding: 0.5rem;
}

.amountalreadypaid {
    color: #059669;
    font-weight: 500;
}

.amountpaymentcomplete {
    color: #059669 !important;
    font-weight: 700;
    font-size: 1.25rem;
}

.amountremaintopay {
    color: #dc2626 !important;
    font-weight: 700;
    font-size: 1.25rem;
}

.amountremaintopayback {
    color: #d97706 !important;
    font-weight: 700;
    font-size: 1.25rem;
}

.amountpaymentneutral {
    color: #6b7280 !important;
    font-weight: 600;
    font-size: 1.25rem;
}

.onlinepaymentbody .amountpaymentcomplete {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    display: inline-block;
}

.savingdocmask {
    margin: 0.75rem 0 1.5rem 0;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px dashed #cbd5e1;
}

#builddoc_form ~ .showlinkedobjectblock {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

/* ===== ESTILOS DE MÓDULOS ===== */
.moduledesclong p img,
.moduledesclong p a img {
    max-width: 90% !important;
    height: auto !important;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.imgdoc {
    margin: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    max-width: calc(100% - 3rem);
}

/* Iconos de archivos modernos */
.fa-file-text-o,
.fa-file-code-o,
.fa-file-powerpoint-o,
.fa-file-excel-o,
.fa-file-word-o,
.fa-file-o,
.fa-file-image-o,
.fa-file-video-o,
.fa-file-audio-o,
.fa-file-archive-o,
.fa-file-pdf-o {
    color: #9ca3af;
}

.fa-15 {
    font-size: 1.5em;
}

.fa-trash,
.fa-crop,
.fa-pencil {
    font-size: 1.25em;
    transition: color 0.2s ease;
}

.fa-trash:hover {
    color: #dc2626;
}

.fa-crop:hover {
    color: #059669;
}

.fa-pencil:hover {
    color: #3b82f6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    div.div-for-modal {
        width: 90%;
        left: 5%;
        height: auto;
        max-height: 80vh;
    }
    
    div.div-for-modal-topright {
        width: 90%;
        right: 5%;
    }
    
    .divadvancedsearchfield {
        min-width: 150px;
    }
    
    .tdoverflowmax300,
    .tdoverflowmax400,
    .tdoverflowmax500 {
        max-width: 200px;
    }
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.bloc_success,
.bloc_warning,
div.warning,
div.error,
div.info {
    animation: fadeInScale 0.3s ease-out;
}























































































































































































/* ===== VARIABLES MODERNIZADAS ===== */
:root {
    /* Colores base (manteniendo compatibilidad) */
    --bgcolor: #FFFFFF;
    --colorbackhmenu1: #1a365d;
    --colorbackvmenu1: #2d3748;
    --colorbacktitle1: #FFFFFF;
    --colorbacktabcard1: #FFFFFF;
    --colorbacktabactive: #edf2f7;
    --colorbacklineimpair1: #f8fafc;
    --colorbacklineimpair2: #f1f5f9;
    --colorbacklinepair1: #FFFFFF;
    --colorbacklinepair2: #FFFFFF;
    --colorbacklinepairhover: #f7fafc;
    --colorbacklinepairchecked: #e6fffa;
    --colorbackbody: #F3F2EF;
    --colorbackmobilemenu: #f8f9fa;
    --colorbackgrey: #f1f5f9;
    
    /* Textos modernizados */
    --colortexttitlenotab: #1a202c;
    --colortexttitlenotab2: #5a67d8;
    --colortexttitle: rgba(26, 32, 44, 0.9);
    --colortexttitlelink: #2c5282;
    --colortext: #2d3748;
    --colortextlink: #2c5282;
    --colortextbackhmenu: #FFFFFF;
    --colortextbackvmenu: #e2e8f0;
    
    /* Borders y efectos */
    --inputbordercolor: rgba(226, 232, 240, 0.8);
    --inputbackgroundcolor: #FFFFFF;
    --tooltipbgcolor: rgba(45, 55, 72, 0.95);
    --tooltipfontcolor: #FFFFFF;
    
    /* Estado */
    --fieldrequiredcolor: #c53030;
    --amountremaintopaycolor: #c53030;
    --amountpaymentcomplete: #38a169;
    
    /* Gradientes modernos */
    --infoboxmoduleenabledbgcolor: linear-gradient(135deg, #FFFFFF 0%, #e6fffa 100%);
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    /* Bordes redondeados */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Transiciones */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
}



body {
    background-color: var(--bgcolor) !important;
    color: var(--colortext) !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
}

/* ===== TIPOGRAFÍA MODERNA ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', system-ui, sans-serif;
    font-weight: 600;
    color: var(--colortexttitlenotab);
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

h1 { 
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

h2 { 
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.015em;
}

h3 { 
    font-size: 1.25rem;
    font-weight: 600;
}

h4 { 
    font-size: 1.125rem;
    font-weight: 500;
}

h5 { 
    font-size: 1rem;
    font-weight: 500;
}

h6 { 
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* ===== FORMULARIOS MODERNOS ===== */
input, textarea, select {
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--colortext);
    background-color: var(--inputbackgroundcolor);
    border: 1px solid var(--inputbordercolor);
    border-radius: var(--radius-sm);
    padding: 0.625rem 0.75rem;
    transition: all var(--transition-fast);
    outline: none;
}

input:focus, textarea:focus, select:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

input.flat, textarea.flat, select.flat {
    border: 1px solid var(--inputbordercolor);
}

input[type="checkbox"], input[type="radio"] {
    width: 1.125rem;
    height: 1.125rem;
    margin: 0 0.5rem 0 0;
}



/* ===== ESTADOS Y ALERTAS ===== */
.text-success {
    color: #38a169;
    background-color: #f0fff4;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.text-warning {
    color: #d69e2e;
    background-color: #fffaf0;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.text-danger {
    color: #c53030;
    background-color: #fff5f5;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

/* ===== ANIMACIONES SUAVES ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.noborder, .formdoc, .info-box {
    animation: fadeIn 0.3s ease-out;
}


































/* Base moderna para badges */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35em 0.7em;
    font-size: 0.75rem;
    font-weight: 600 !important;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    border-radius: 10rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    letter-spacing: 0.02em;
}

/* Badge status - más prominente */
.badge-status {
    font-size: 0.8125rem;
    padding: 0.5em 0.85em;
    font-weight: 700 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Badge con punto (dot) */
.badge-dot {
    padding: 0;
    width: 10px;
    height: 10px;
    min-width: 10px;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
    position: relative;
}

.badge-dot::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.3;
}

/* Badge pill - más redondeado */
.badge-pill {
    padding: 0.5em 1em;
    border-radius: 100px;
}

/* Badge neutral moderno */
span.badgeneutral {
    padding: 0.4em 0.85em;
    background-color: #f1f5f9;
    color: #64748b;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.75rem;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
    transition: all 0.2s ease;
}

span.badgeneutral:hover {
    background-color: #e2e8f0;
    border-color: #cbd5e1;
}

/* Badges en encabezados de tabla */
.liste_titre .badge:not(.nochangebackground) {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
    border: none;
}

/* ===== TEMAS MODERNIZADOS ===== */

/* PRIMARY - Azul moderno */
.badge-primary {
    color: #ffffff !important;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

a.badge-primary:hover, a.badge-primary:focus {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

/* SECONDARY - Verde moderno */
.badge-secondary, .tabs .badge {
    color: #ffffff !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

a.badge-secondary:hover, a.badge-secondary:focus {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3);
}

/* SUCCESS - Verde éxito */
.badge-success {
    color: #ffffff !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

a.badge-success:hover, a.badge-success:focus {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3);
}

/* DANGER - Rojo/naranja moderno */
.badge-danger {
    color: #ffffff !important;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

a.badge-danger:hover, a.badge-danger:focus {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.3);
}

/* WARNING - Amarillo moderno */
.badge-warning {
    color: #1f2937 !important;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border: none;
    box-shadow: 0 2px 4px rgba(251, 191, 36, 0.2);
}

a.badge-warning:hover, a.badge-warning:focus {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #1f2937 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(251, 191, 36, 0.3);
}

/* INFO - Cyan moderno */
.badge-info {
    color: #ffffff !important;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    border: none;
    box-shadow: 0 2px 4px rgba(6, 182, 212, 0.2);
}

a.badge-info:hover, a.badge-info:focus {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(6, 182, 212, 0.3);
}

/* LIGHT - Gris claro */
.badge-light {
    color: #374151 !important;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

a.badge-light:hover, a.badge-light:focus {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* DARK - Gris oscuro */
.badge-dark {
    color: #ffffff !important;
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    border: none;
    box-shadow: 0 2px 4px rgba(75, 85, 99, 0.2);
}

a.badge-dark:hover, a.badge-dark:focus {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(75, 85, 99, 0.3);
}

/* ===== STATUS BADGES MODERNOS ===== */

/* STATUS0 - Cancelado/Inactivo */
.badge-status0 {
    color: #6b7280 !important;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 1px solid #d1d5db;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.badge-status0:hover {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-color: #9ca3af;
    transform: translateY(-1px);
}

/* STATUS1 - Pendiente */
.badge-status1 {
    color: #ffffff !important;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

.badge-status1:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(245, 158, 11, 0.3);
}

/* STATUS2 - Procesando */
.badge-status2 {
    color: #ffffff !important;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border: none;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.2);
}

.badge-status2:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(139, 92, 246, 0.3);
}

/* STATUS3 - Validado */
.badge-status3 {
    color: #1f2937 !important;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fbbf24;
    box-shadow: 0 2px 4px rgba(251, 191, 36, 0.2);
}

.badge-status3:hover {
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
    border-color: #f59e0b;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(251, 191, 36, 0.3);
}

/* STATUS4 - Completado */
.badge-status4 {
    color: #ffffff !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.badge-status4:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3);
}

/* ===== COLORBLIND THEMES ===== */

body[class*="colorblind-"] .badge-warning {
    background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
}

body[class*="colorblind-"] .badge-status1 {
    background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
}

body[class*="colorblind-"] .badge-status4 {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

/* ===== EFECTOS DE FOCO MODERNOS ===== */

.badge:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

/* ===== RESPONSIVE ===== */

@media only screen and (max-width: 570px) {
    .badge-status {
        padding: 0.4em 0.7em;
        font-size: 0.75rem;
    }
    
    span.badge.badge-status {
        max-width: 120px;
        white-space: nowrap;
    }
}

/* ===== ANIMACIONES ===== */

@keyframes badgePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.badge.badge-pulse {
    animation: badgePulse 2s infinite;
}

/* ===== UTILIDADES ===== */

.divoverflow {
    white-space: nowrap;
    vertical-align: middle;
    max-width: 100%;
}

/* Mejoras para tabs */
.tabs .badge {
    margin-left: 0.5rem;
    vertical-align: text-top;
}

/* Para badges en áreas de referencia */
.tabBar .arearef .statusref .badge-status,
.tabBar .arearefnobottom .statusref .badge-status {
    font-size: 0.875rem;
}

@media only screen and (max-width: 767px) {
    .tabBar .arearef .statusref .badge-status,
    .tabBar .arearefnobottom .statusref .badge-status {
        font-size: 0.75rem;
    }
}


@import url("./custom.css");
