:root{
    --ledm-navy:#061526;
    --ledm-navy2:#0a1f38;
    --ledm-blue:#0057b8;
    --ledm-blue2:#0b7cff;
    --ledm-cyan:#38bdf8;
    --ledm-bg:#f4f7fb;
    --ledm-card:#ffffff;
    --ledm-text:#0f172a;
    --ledm-muted:#64748b;
    --ledm-border:#e5e7eb;
}

*{box-sizing:border-box;}

body{
    margin:0!important;
    background:var(--ledm-bg)!important;
    font-family:Arial, Helvetica, sans-serif!important;
    color:var(--ledm-text)!important;
}

/* SIDEBAR */
.sidebar{
    background:linear-gradient(180deg,var(--ledm-navy) 0%,var(--ledm-navy2) 55%,#04101f 100%)!important;
    box-shadow:4px 0 24px rgba(2,8,23,.22)!important;
}

.sidebar-header{
    padding:16px 12px 16px!important;
    text-align:center!important;
    border-bottom:1px solid rgba(255,255,255,.10)!important;
    margin-bottom:14px!important;
}

.sidebar-header img{
    width:58px!important;
    max-width:58px!important;
    height:auto!important;
    display:block!important;
    margin:0 auto 10px auto!important;
}

.sidebar-header .brand-title{
    color:#ffffff!important;
    font-size:21px!important;
    font-weight:900!important;
    letter-spacing:.8px!important;
    line-height:1!important;
}

.sidebar-header .brand-subtitle{
    color:var(--ledm-cyan)!important;
    font-size:12px!important;
    font-weight:800!important;
    letter-spacing:4px!important;
    margin-top:8px!important;
}

.sidebar a{
    display:block!important;
    margin:5px 12px!important;
    padding:12px 15px!important;
    border-radius:11px!important;
    color:#e6eefb!important;
    text-decoration:none!important;
    font-weight:700!important;
    font-size:14px!important;
    transition:all .18s ease!important;
    border-left:3px solid transparent!important;
}

.sidebar a:hover{
    background:rgba(59,130,246,.16)!important;
    color:#ffffff!important;
    transform:translateX(3px)!important;
    border-left-color:var(--ledm-cyan)!important;
}

.sidebar a.active,
.sidebar a[aria-current="page"]{
    background:linear-gradient(135deg,var(--ledm-blue2),#174ea6)!important;
    color:#ffffff!important;
    box-shadow:0 10px 20px rgba(11,124,255,.28)!important;
}

/* CONTENIDO */
.content,
.main-content,
main{
    background:var(--ledm-bg)!important;
}

.content > div,
main > div{
    border-radius:18px!important;
}

h1{
    color:#0f172a!important;
    font-size:30px!important;
    font-weight:900!important;
    letter-spacing:-.5px!important;
}

h2,h3{
    color:#0f172a!important;
    font-weight:800!important;
}

/* TARJETAS PREMIUM */
.card,
.panel,
.box,
.dashboard-card,
.stat-card,
div[style*="background:#dbeafe"],
div[style*="background:#dcfce7"],
div[style*="background:#fef9c3"],
div[style*="background:#fce7f3"],
div[style*="background:#ede9fe"],
div[style*="background:#cffafe"],
div[style*="background:#ffedd5"]{
    background:#ffffff!important;
    border:1px solid rgba(15,23,42,.08)!important;
    border-radius:18px!important;
    box-shadow:0 10px 25px rgba(15,23,42,.08)!important;
    transition:all .22s ease!important;
}

.card:hover,
.panel:hover,
.box:hover,
.dashboard-card:hover,
.stat-card:hover{
    transform:translateY(-3px)!important;
    box-shadow:0 18px 35px rgba(2,8,23,.13)!important;
}

.card-header{
    background:linear-gradient(90deg,#0057b8,#0b7cff)!important;
    color:white!important;
    font-weight:800!important;
    padding:14px 16px!important;
}

.card-body{
    padding:20px!important;
}

/* BOTONES PREMIUM */
button,
.btn,
input[type="submit"],
a[style*="background:#2563eb"],
a[style*="background:#16a34a"],
a[style*="background:#dc2626"],
a[style*="background:#d97706"]{
    border-radius:11px!important;
    font-weight:800!important;
    border:0!important;
    box-shadow:0 7px 15px rgba(15,23,42,.14)!important;
    transition:all .2s ease!important;
}

button:hover,
.btn:hover,
input[type="submit"]:hover{
    filter:brightness(.96)!important;
    transform:translateY(-1px)!important;
}

/* FORMULARIOS PREMIUM */
input,
select,
textarea{
    border:1px solid #cbd5e1!important;
    border-radius:9px!important;
    padding:9px 11px!important;
    transition:.2s!important;
    background:#fff!important;
}

input:focus,
select:focus,
textarea:focus{
    outline:none!important;
    border-color:var(--ledm-blue2)!important;
    box-shadow:0 0 0 3px rgba(11,124,255,.14)!important;
}

/* TABLAS PREMIUM */
table{
    border-collapse:collapse!important;
    width:100%!important;
    background:white!important;
    border-radius:14px!important;
    overflow:hidden!important;
    box-shadow:0 6px 16px rgba(15,23,42,.06)!important;
}

thead,
thead tr{
    background:#111827!important;
}

thead th,
th{
    color:white!important;
    padding:13px 10px!important;
    font-size:14px!important;
    font-weight:800!important;
}

tbody td{
    padding:11px 10px!important;
    border-bottom:1px solid #e5e7eb!important;
}

tbody tr:nth-child(even){
    background:#f8fafc!important;
}

tbody tr:hover{
    background:#eff6ff!important;
}

/* ALERTAS */
.alert,
.alert-success,
.alert-danger,
.alert-warning{
    border-radius:12px!important;
}

/* RESPONSIVE */
@media(max-width:900px){
    .sidebar{
        width:230px!important;
    }

    .sidebar-header img{
        width:52px!important;
        max-width:52px!important;
    }

    h1{
        font-size:24px!important;
    }
}

/* ===== DASHBOARD EJECUTIVO PREMIUM LEDM ===== */

.dashboard-premium,
.dashboard-container,
.content > div{
    background:#ffffff!important;
    border-radius:18px!important;
    box-shadow:0 10px 30px rgba(15,23,42,.08)!important;
}

/* Tarjetas de indicadores */
div[style*="background:#dbeafe"],
div[style*="background:#dcfce7"],
div[style*="background:#fef9c3"],
div[style*="background:#fce7f3"],
div[style*="background:#ede9fe"],
div[style*="background:#cffafe"],
div[style*="background:#ffedd5"]{
    position:relative!important;
    overflow:hidden!important;
    min-height:115px!important;
    padding:22px!important;
    background:linear-gradient(135deg,#ffffff 0%,#f8fbff 100%)!important;
    border:1px solid #e5eaf3!important;
}

div[style*="background:#dbeafe"]::before,
div[style*="background:#dcfce7"]::before,
div[style*="background:#fef9c3"]::before,
div[style*="background:#fce7f3"]::before,
div[style*="background:#ede9fe"]::before,
div[style*="background:#cffafe"]::before,
div[style*="background:#ffedd5"]::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:6px;
    height:100%;
    background:linear-gradient(180deg,#0057b8,#38bdf8);
}

div[style*="background:#dbeafe"] strong,
div[style*="background:#dcfce7"] strong,
div[style*="background:#fef9c3"] strong,
div[style*="background:#fce7f3"] strong,
div[style*="background:#ede9fe"] strong,
div[style*="background:#cffafe"] strong,
div[style*="background:#ffedd5"] strong{
    color:#475569!important;
    font-size:14px!important;
    text-transform:uppercase!important;
    letter-spacing:.5px!important;
}

div[style*="background:#dbeafe"] h2,
div[style*="background:#dcfce7"] h2,
div[style*="background:#fef9c3"] h2,
div[style*="background:#fce7f3"] h2,
div[style*="background:#ede9fe"] h2,
div[style*="background:#cffafe"] h2,
div[style*="background:#ffedd5"] h2{
    font-size:30px!important;
    font-weight:900!important;
    color:#071827!important;
    margin-top:10px!important;
}

/* Cabeceras de secciones */
h1{
    position:relative!important;
    padding-bottom:12px!important;
}

h1::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:80px;
    height:4px;
    border-radius:20px;
    background:linear-gradient(90deg,#0057b8,#38bdf8);
}

/* Paneles principales */
div[style*="border:1px solid #ddd"],
div[style*="border:1px solid #ccc"]{
    border:1px solid #e5eaf3!important;
    border-radius:16px!important;
    box-shadow:0 8px 22px rgba(15,23,42,.06)!important;
}

/* Botón principal azul */
button[style*="background:#2563eb"],
a[style*="background:#2563eb"]{
    background:linear-gradient(135deg,#0057b8,#0b7cff)!important;
}

/* Botón verde */
a[style*="background:#16a34a"],
button[style*="background:#16a34a"]{
    background:linear-gradient(135deg,#059669,#16a34a)!important;
}

/* Botón rojo */
a[style*="background:#dc2626"],
button[style*="background:#dc2626"]{
    background:linear-gradient(135deg,#dc2626,#ef4444)!important;
}

/* Tablas más premium */
table{
    border:1px solid #e5eaf3!important;
}

thead tr{
    background:linear-gradient(135deg,#071827,#111827)!important;
}

tbody td{
    font-size:14px!important;
}

tbody tr:hover td{
    color:#0f172a!important;
}

/* Scroll más elegante */
::-webkit-scrollbar{
    width:10px;
    height:10px;
}

::-webkit-scrollbar-track{
    background:#e5eaf3;
}

::-webkit-scrollbar-thumb{
    background:#94a3b8;
    border-radius:20px;
}

::-webkit-scrollbar-thumb:hover{
    background:#64748b;
}


/* ===== LEDM COMPACTO PREMIUM ===== */

/* Contenido más compacto */
body{
    font-size:13px!important;
}

.content,
.main-content,
main{
    font-size:13px!important;
}

.content > div,
main > div{
    padding:18px!important;
}

/* Títulos más compactos */
h1{
    font-size:24px!important;
    margin-bottom:10px!important;
}

h2{
    font-size:20px!important;
}

h3{
    font-size:17px!important;
}

/* Texto general del detalle */
p,
label,
span,
div,
td,
th,
input,
select,
textarea,
button,
a{
    font-size:13px!important;
}

/* Menú más compacto */
.sidebar-header{
    padding:14px 10px 14px!important;
}

.sidebar-header img{
    width:52px!important;
    max-width:52px!important;
}

.sidebar-header .brand-title{
    font-size:19px!important;
}

.sidebar-header .brand-subtitle{
    font-size:11px!important;
    letter-spacing:3px!important;
}

.sidebar a{
    margin:4px 10px!important;
    padding:10px 13px!important;
    font-size:13px!important;
}

/* Tarjetas más pequeñas */
div[style*="background:#dbeafe"],
div[style*="background:#dcfce7"],
div[style*="background:#fef9c3"],
div[style*="background:#fce7f3"],
div[style*="background:#ede9fe"],
div[style*="background:#cffafe"],
div[style*="background:#ffedd5"],
.card,
.panel,
.box,
.dashboard-card,
.stat-card{
    min-height:82px!important;
    padding:14px 16px!important;
    border-radius:14px!important;
}

/* Texto de tarjetas */
div[style*="background:#dbeafe"] strong,
div[style*="background:#dcfce7"] strong,
div[style*="background:#fef9c3"] strong,
div[style*="background:#fce7f3"] strong,
div[style*="background:#ede9fe"] strong,
div[style*="background:#cffafe"] strong,
div[style*="background:#ffedd5"] strong{
    font-size:12px!important;
    letter-spacing:.4px!important;
}

div[style*="background:#dbeafe"] h2,
div[style*="background:#dcfce7"] h2,
div[style*="background:#fef9c3"] h2,
div[style*="background:#fce7f3"] h2,
div[style*="background:#ede9fe"] h2,
div[style*="background:#cffafe"] h2,
div[style*="background:#ffedd5"] h2{
    font-size:25px!important;
    margin:6px 0 0!important;
}

/* Recuadros de filtros más pequeños */
form,
div[style*="border:1px solid #ddd"],
div[style*="border:1px solid #ccc"]{
    border-radius:13px!important;
}

input,
select,
textarea{
    height:auto!important;
    min-height:34px!important;
    padding:7px 9px!important;
    font-size:13px!important;
}

/* Botones compactos */
button,
.btn,
input[type="submit"],
a[style*="background:#2563eb"],
a[style*="background:#16a34a"],
a[style*="background:#dc2626"],
a[style*="background:#d97706"]{
    padding:8px 14px!important;
    font-size:12px!important;
    border-radius:9px!important;
}

/* Tablas compactas */
table{
    font-size:12px!important;
    border-radius:12px!important;
}

thead th,
th{
    padding:9px 8px!important;
    font-size:12px!important;
    line-height:1.2!important;
}

tbody td,
td{
    padding:7px 8px!important;
    font-size:12px!important;
    line-height:1.25!important;
}

/* Números de tablas */
td strong,
tbody td b,
tbody td strong{
    font-size:12px!important;
}

/* Reducir alto de filas */
tbody tr{
    min-height:34px!important;
}

/* Recuadros internos */
div[style*="padding:15px"],
div[style*="padding:20px"]{
    padding:12px!important;
}

/* Control operativo y resumen general más compacto */
#tablaResumen td,
#tablaResumen th{
    font-size:12px!important;
    padding:7px!important;
}

/* Mantener botones PDF legibles */
a[href*="pdf"],
button[onclick*="pdf"]{
    font-size:12px!important;
}

/* Mejor separación general */
form{
    gap:8px!important;
}

/* Responsive */
@media(max-width:900px){
    body{
        font-size:12px!important;
    }

    .sidebar a{
        font-size:12px!important;
        padding:9px 11px!important;
    }

    h1{
        font-size:22px!important;
    }

    table,
    td,
    th{
        font-size:11px!important;
    }
}

/* =======================================================
   LEDM PREMIUM - TABLAS PROFESIONALES
   ======================================================= */

/* Encabezado de tablas */
table thead tr,
table thead th,
.table thead th,
thead th{

    background:#0D63C9 !important;     /* Azul LEDM */
    color:#ffffff !important;

    font-size:11px !important;
    font-weight:700 !important;

    letter-spacing:.2px;

    border-color:#2f7fdd !important;

    padding:8px 8px !important;

}

/* Filas */

tbody td{

    font-size:11px !important;

    padding:7px 8px !important;

    line-height:1.25 !important;

}

/* Hover */

tbody tr:hover{

    background:#eef6ff !important;

}

/* Primera columna */

tbody td:first-child{

    font-weight:600;

}

/* Números */

tbody td b,
tbody td strong{

    font-size:11px !important;

}

/* Tablas */

table{

    border-radius:12px;

    overflow:hidden;

}

/* Bordes */

table td,
table th{

    border-color:#e4edf7 !important;

}

/* Cabecera fija */

thead{

    box-shadow:0 2px 8px rgba(0,87,184,.18);

}


/* =======================================================
   LEDM PREMIUM - TARJETAS COMPACTAS CON ICONOS
   ======================================================= */

div[style*="background:#dbeafe"],
div[style*="background:#dcfce7"],
div[style*="background:#fef9c3"],
div[style*="background:#fce7f3"],
div[style*="background:#ede9fe"],
div[style*="background:#cffafe"],
div[style*="background:#ffedd5"]{
    min-height:76px!important;
    padding:12px 14px 12px 62px!important;
    position:relative!important;
    overflow:hidden!important;
}

/* Icono base */
div[style*="background:#dbeafe"]::after,
div[style*="background:#dcfce7"]::after,
div[style*="background:#fef9c3"]::after,
div[style*="background:#fce7f3"]::after,
div[style*="background:#ede9fe"]::after,
div[style*="background:#cffafe"]::after,
div[style*="background:#ffedd5"]::after{
    position:absolute;
    left:14px;
    top:50%;
    transform:translateY(-50%);
    width:36px;
    height:36px;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
    font-weight:900;
}

/* Colores e iconos según tarjeta */
div[style*="background:#dbeafe"]::after{
    content:"📋";
    background:#e7f1ff;
    color:#0d63c9;
}

div[style*="background:#dcfce7"]::after{
    content:"✓";
    background:#e7f8ec;
    color:#08943c;
    font-size:28px;
}

div[style*="background:#fef9c3"]::after{
    content:"◷";
    background:#fff1df;
    color:#f97316;
    font-size:30px;
}

div[style*="background:#fce7f3"]::after{
    content:"📷";
    background:#f3e8ff;
    color:#7e22ce;
}

div[style*="background:#ede9fe"]::after{
    content:"📊";
    background:#ede9fe;
    color:#6d28d9;
}

div[style*="background:#cffafe"]::after{
    content:"👷";
    background:#e0faff;
    color:#0891b2;
}

div[style*="background:#ffedd5"]::after{
    content:"⚠";
    background:#fff1df;
    color:#f97316;
}

/* Texto de tarjetas más compacto */
div[style*="background:#dbeafe"] strong,
div[style*="background:#dcfce7"] strong,
div[style*="background:#fef9c3"] strong,
div[style*="background:#fce7f3"] strong,
div[style*="background:#ede9fe"] strong,
div[style*="background:#cffafe"] strong,
div[style*="background:#ffedd5"] strong{
    font-size:11px!important;
    line-height:1.1!important;
}

div[style*="background:#dbeafe"] h2,
div[style*="background:#dcfce7"] h2,
div[style*="background:#fef9c3"] h2,
div[style*="background:#fce7f3"] h2,
div[style*="background:#ede9fe"] h2,
div[style*="background:#cffafe"] h2,
div[style*="background:#ffedd5"] h2{
    font-size:23px!important;
    margin-top:5px!important;
}

/* Línea inferior de color */
div[style*="background:#dbeafe"]{border-bottom:4px solid #0d63c9!important;}
div[style*="background:#dcfce7"]{border-bottom:4px solid #08943c!important;}
div[style*="background:#fef9c3"]{border-bottom:4px solid #f97316!important;}
div[style*="background:#fce7f3"]{border-bottom:4px solid #7e22ce!important;}
div[style*="background:#ede9fe"]{border-bottom:4px solid #6d28d9!important;}
div[style*="background:#cffafe"]{border-bottom:4px solid #0891b2!important;}
div[style*="background:#ffedd5"]{border-bottom:4px solid #f97316!important;}


/* =======================================================
   LEDM PREMIUM - BOTONES UNIFORMES EN TODO EL SISTEMA
   ======================================================= */

button,
.btn,
input[type="submit"],
input[type="button"],
a[style*="background:"],
a[href*="pdf"],
a[href*="export"],
a[href*="excel"],
a[href*="csv"]{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:6px!important;
    min-height:32px!important;
    min-width:92px!important;
    padding:7px 12px!important;
    border-radius:8px!important;
    border:0!important;
    font-size:11px!important;
    font-weight:800!important;
    line-height:1.1!important;
    text-align:center!important;
    text-decoration:none!important;
    white-space:nowrap!important;
    box-shadow:0 4px 10px rgba(15,23,42,.14)!important;
    transition:all .18s ease!important;
}

/* Hover general */
button:hover,
.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
a[style*="background:"]:hover,
a[href*="pdf"]:hover,
a[href*="export"]:hover,
a[href*="excel"]:hover,
a[href*="csv"]:hover{
    transform:translateY(-1px)!important;
    filter:brightness(.96)!important;
}

/* Botones principales azules LEDM */
button,
.btn-primary,
input[type="submit"],
a[style*="background:#2563eb"],
a[style*="background:#0d6efd"]{
    background:linear-gradient(135deg,#0D63C9,#0057B8)!important;
    color:#fff!important;
}

/* Botones limpiar / secundarios */
button[type="reset"],
.btn-secondary,
a[style*="background:#6b7280"],
a[style*="background:gray"],
a[style*="background:#64748b"]{
    background:linear-gradient(135deg,#64748b,#475569)!important;
    color:#fff!important;
}

/* Botones PDF / descarga */
a[href*="pdf"],
a[href*="PDF"]{
    background:linear-gradient(135deg,#0D63C9,#0057B8)!important;
    color:#fff!important;
    min-width:105px!important;
}

/* Cambiar texto visual de botones PDF si se parte */
a[href*="pdf"]{
    font-size:0!important;
}

a[href*="pdf"]::before{
    content:"📄 PDF";
    font-size:11px!important;
    font-weight:800!important;
}

/* Botones Excel / CSV */
a[href*="excel"],
a[href*="csv"],
a[href*="export"]{
    background:linear-gradient(135deg,#059669,#16a34a)!important;
    color:#fff!important;
}

/* Botones rojos / eliminar */
.btn-danger,
button[style*="background:#dc2626"],
a[style*="background:#dc2626"],
button[style*="background:red"],
a[style*="background:red"]{
    background:linear-gradient(135deg,#dc2626,#ef4444)!important;
    color:#fff!important;
}

/* Botones naranja */
a[style*="background:#d97706"],
button[style*="background:#d97706"]{
    background:linear-gradient(135deg,#f97316,#ea580c)!important;
    color:#fff!important;
}

/* Columna PDF centrada y uniforme */
td:last-child,
th:last-child{
    text-align:center!important;
    vertical-align:middle!important;
}

/* Evitar que los botones PDF se corten en dos líneas */
td a[href*="pdf"],
td a[href*="PDF"]{
    white-space:nowrap!important;
    word-break:normal!important;
    overflow:visible!important;
}

/* Ajustar ancho mínimo de columna PDF */
table th:last-child,
table td:last-child{
    min-width:115px!important;
}

/* Botones pequeños dentro de tablas */
table button,
table .btn,
table a[style*="background:"],
table a[href*="pdf"],
table a[href*="export"],
table a[href*="excel"],
table a[href*="csv"]{
    min-height:30px!important;
    min-width:92px!important;
    padding:6px 10px!important;
    font-size:11px!important;
}


/* ==========================================
   LEDM - BOTÓN PDF COMPACTO
   ========================================== */

a[href*="pdf"]::before,
a[href*="PDF"]::before{
    content:"📄 PDF" !important;
    font-size:11px !important;
    font-weight:700 !important;
}

a[href*="pdf"],
a[href*="PDF"]{
    min-width:72px !important;
    padding:6px 10px !important;
}


/* BOTÓN PDF SOLO PDF */
a[href*="pdf"],
a[href*="PDF"]{
    background:linear-gradient(135deg,#0D63C9,#0057B8)!important;
    color:#fff!important;
    min-width:68px!important;
    width:68px!important;
    max-width:68px!important;
    padding:6px 8px!important;
    font-size:11px!important;
    font-weight:800!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-align:center!important;
}

table a[href*="pdf"],
table a[href*="PDF"]{
    min-width:68px!important;
    width:68px!important;
    max-width:68px!important;
}

/* Evita que se muestre texto adicional */
a[href*="pdf"]::before,
a[href*="PDF"]::before{
    content:""!important;
}


/* =======================================================
   LEDM - MODO OSCURO / CLARO
   ======================================================= */

.theme-toggle-ledm{
    position:fixed;
    right:22px;
    bottom:22px;
    z-index:99999;
    width:46px;
    height:46px;
    border-radius:50%;
    border:0;
    background:linear-gradient(135deg,#0D63C9,#0057B8);
    color:#fff;
    font-size:20px;
    font-weight:900;
    box-shadow:0 10px 25px rgba(0,0,0,.25);
    cursor:pointer;
}

/* MODO OSCURO */
body.ledm-dark{
    background:#0f172a!important;
    color:#e5e7eb!important;
}

body.ledm-dark .content,
body.ledm-dark .main-content,
body.ledm-dark main{
    background:#0f172a!important;
    color:#e5e7eb!important;
}

body.ledm-dark .content > div,
body.ledm-dark main > div,
body.ledm-dark .card,
body.ledm-dark .panel,
body.ledm-dark .box,
body.ledm-dark .dashboard-card,
body.ledm-dark .stat-card,
body.ledm-dark .exec-card,
body.ledm-dark .exec-panel,
body.ledm-dark div[style*="background:#dbeafe"],
body.ledm-dark div[style*="background:#dcfce7"],
body.ledm-dark div[style*="background:#fef9c3"],
body.ledm-dark div[style*="background:#fce7f3"],
body.ledm-dark div[style*="background:#ede9fe"],
body.ledm-dark div[style*="background:#cffafe"],
body.ledm-dark div[style*="background:#ffedd5"]{
    background:#1e293b!important;
    color:#e5e7eb!important;
    border-color:#334155!important;
    box-shadow:0 10px 25px rgba(0,0,0,.35)!important;
}

body.ledm-dark h1,
body.ledm-dark h2,
body.ledm-dark h3,
body.ledm-dark p,
body.ledm-dark label,
body.ledm-dark span,
body.ledm-dark div{
    color:#e5e7eb!important;
}

body.ledm-dark .exec-title{
    color:#f8fafc!important;
}

body.ledm-dark .exec-subtitle,
body.ledm-dark .exec-note,
body.ledm-dark .exec-label{
    color:#cbd5e1!important;
}

body.ledm-dark input,
body.ledm-dark select,
body.ledm-dark textarea{
    background:#0f172a!important;
    color:#e5e7eb!important;
    border-color:#475569!important;
}

body.ledm-dark input::placeholder,
body.ledm-dark textarea::placeholder{
    color:#94a3b8!important;
}

body.ledm-dark table{
    background:#1e293b!important;
    color:#e5e7eb!important;
    border-color:#334155!important;
}

body.ledm-dark tbody tr{
    background:#1e293b!important;
}

body.ledm-dark tbody tr:nth-child(even){
    background:#162033!important;
}

body.ledm-dark tbody tr:hover{
    background:#24344d!important;
}

body.ledm-dark td,
body.ledm-dark th{
    border-color:#334155!important;
}

body.ledm-dark tbody td{
    color:#e5e7eb!important;
}

body.ledm-dark .alert,
body.ledm-dark .alert-success,
body.ledm-dark .alert-danger,
body.ledm-dark .alert-warning,
body.ledm-dark div[style*="background:#fee2e2"]{
    background:#3b1f24!important;
    color:#fecaca!important;
    border-color:#7f1d1d!important;
}

body.ledm-dark a{
    color:#93c5fd;
}

body.ledm-dark .theme-toggle-ledm{
    background:linear-gradient(135deg,#f59e0b,#f97316);
    color:#111827;
}


/* =======================================================
   LEDM PREMIUM - PANTALLA RETORNO EEQ
   ======================================================= */

form[action*="retorno"],
form[action*="exportar"],
form[action*="export"]{
    background:#ffffff!important;
    border:1px solid #e5edf8!important;
    border-radius:14px!important;
    padding:14px!important;
    box-shadow:0 8px 20px rgba(15,23,42,.07)!important;
    margin-bottom:18px!important;
}

form[action*="retorno"] label,
form[action*="exportar"] label,
form[action*="export"] label{
    font-size:12px!important;
    font-weight:800!important;
    color:#0f172a!important;
    margin-bottom:5px!important;
    display:block!important;
}

form[action*="retorno"] input,
form[action*="retorno"] select,
form[action*="exportar"] input,
form[action*="exportar"] select,
form[action*="export"] input,
form[action*="export"] select{
    min-height:34px!important;
    height:34px!important;
    border:1px solid #cbd5e1!important;
    border-radius:8px!important;
    font-size:12px!important;
    padding:7px 9px!important;
}

form[action*="retorno"] button,
form[action*="retorno"] input[type="submit"],
form[action*="exportar"] button,
form[action*="exportar"] input[type="submit"],
form[action*="export"] button,
form[action*="export"] input[type="submit"]{
    background:linear-gradient(135deg,#0D63C9,#0057B8)!important;
    color:white!important;
    border-radius:9px!important;
    min-height:34px!important;
    padding:7px 14px!important;
    font-size:12px!important;
    font-weight:800!important;
    box-shadow:0 6px 14px rgba(13,99,201,.22)!important;
}

/* Secciones internas del retorno */
.content hr,
main hr{
    border:0!important;
    border-top:1px solid #e5edf8!important;
    margin:20px 0!important;
}

.content h1,
.content h2,
.content h3,
main h1,
main h2,
main h3{
    color:#0f172a!important;
}

.content h1,
main h1{
    font-size:24px!important;
    font-weight:900!important;
}

.content h2,
main h2{
    font-size:19px!important;
    font-weight:900!important;
}

.content h3,
main h3{
    font-size:16px!important;
    font-weight:900!important;
}

/* Compactar pantalla retorno */
.content > div,
main > div,
.container,
.container-fluid{
    max-width:100%!important;
}

/* Modo oscuro retorno */
body.ledm-dark form[action*="retorno"],
body.ledm-dark form[action*="exportar"],
body.ledm-dark form[action*="export"]{
    background:#1e293b!important;
    border-color:#334155!important;
}

body.ledm-dark form[action*="retorno"] label,
body.ledm-dark form[action*="exportar"] label,
body.ledm-dark form[action*="export"] label{
    color:#e5e7eb!important;
}


/* =======================================================
   LEDM PREMIUM - PANTALLA RETORNO EEQ
   ======================================================= */

form[action*="retorno"],
form[action*="exportar"],
form[action*="export"]{
    background:#ffffff!important;
    border:1px solid #e5edf8!important;
    border-radius:14px!important;
    padding:14px!important;
    box-shadow:0 8px 20px rgba(15,23,42,.07)!important;
    margin-bottom:18px!important;
}

form[action*="retorno"] label,
form[action*="exportar"] label,
form[action*="export"] label{
    font-size:12px!important;
    font-weight:800!important;
    color:#0f172a!important;
    margin-bottom:5px!important;
    display:block!important;
}

form[action*="retorno"] input,
form[action*="retorno"] select,
form[action*="exportar"] input,
form[action*="exportar"] select,
form[action*="export"] input,
form[action*="export"] select{
    min-height:34px!important;
    height:34px!important;
    border:1px solid #cbd5e1!important;
    border-radius:8px!important;
    font-size:12px!important;
    padding:7px 9px!important;
}

form[action*="retorno"] button,
form[action*="retorno"] input[type="submit"],
form[action*="exportar"] button,
form[action*="exportar"] input[type="submit"],
form[action*="export"] button,
form[action*="export"] input[type="submit"]{
    background:linear-gradient(135deg,#0D63C9,#0057B8)!important;
    color:white!important;
    border-radius:9px!important;
    min-height:34px!important;
    padding:7px 14px!important;
    font-size:12px!important;
    font-weight:800!important;
    box-shadow:0 6px 14px rgba(13,99,201,.22)!important;
}

/* Secciones internas del retorno */
.content hr,
main hr{
    border:0!important;
    border-top:1px solid #e5edf8!important;
    margin:20px 0!important;
}

.content h1,
.content h2,
.content h3,
main h1,
main h2,
main h3{
    color:#0f172a!important;
}

.content h1,
main h1{
    font-size:24px!important;
    font-weight:900!important;
}

.content h2,
main h2{
    font-size:19px!important;
    font-weight:900!important;
}

.content h3,
main h3{
    font-size:16px!important;
    font-weight:900!important;
}

/* Compactar pantalla retorno */
.content > div,
main > div,
.container,
.container-fluid{
    max-width:100%!important;
}

/* Modo oscuro retorno */
body.ledm-dark form[action*="retorno"],
body.ledm-dark form[action*="exportar"],
body.ledm-dark form[action*="export"]{
    background:#1e293b!important;
    border-color:#334155!important;
}

body.ledm-dark form[action*="retorno"] label,
body.ledm-dark form[action*="exportar"] label,
body.ledm-dark form[action*="export"] label{
    color:#e5e7eb!important;
}

