/*
 * =====================================================================
 *  DISTRO - Capa visual moderna
 * =====================================================================
 *  Se carga DESPUES de SmartAdmin, style.css y generic.css.
 *  Solo cambia apariencia (color, tipografia, bordes, radios, sombras);
 *  no cambia medidas ni posiciones del layout para no afectar el JS del tema.
 *  Cada tema (smart-style-0..6) define su paleta en variables CSS.
 * =====================================================================
 */

/* ------------------------------ PALETAS ------------------------------ */
html body {
    --m-font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    --m-bg: #f3f5f9;
    --m-card: #ffffff;
    --m-line: #e3e7ee;
    --m-line-2: #eef1f5;
    --m-ink: #1f2933;
    --m-ink-2: #52606d;
    --m-ink-3: #8a96a3;
    --m-acc: #2563eb;
    --m-acc-2: #1d4ed8;
    --m-acc-soft: #e8efff;
    --m-ok: #16a34a;
    --m-ok-2: #15803d;
    --m-bad: #dc2626;
    --m-bad-2: #b91c1c;
    --m-warn: #f59e0b;
    --m-warn-2: #d97706;
    --m-info: #0891b2;
    --m-r: 10px;
    --m-r-sm: 7px;
    --m-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
    --m-shadow-lg: 0 12px 32px rgba(16, 24, 40, .16);
    /* barra superior y menu (por defecto: oscuro pizarra) */
    --m-hd-bg: #111827;
    --m-hd-fg: #e5e7eb;
    --m-hd-line: rgba(255, 255, 255, .10);
    --m-sb-bg: #111827;
    --m-sb-bg-2: #0b1220;
    --m-sb-fg: #cbd5e1;
    --m-sb-fg-2: #94a3b8;
    --m-sb-hover: rgba(255, 255, 255, .06);
    --m-sb-act: rgba(37, 99, 235, .18);
    --m-sb-act-fg: #ffffff;
}
/* 1 - Oscuro elegante */
html body.smart-style-1 { --m-hd-bg: #1b2330; --m-sb-bg: #1b2330; --m-sb-bg-2: #141a24; --m-acc: #3b82f6; --m-acc-2: #2563eb; --m-sb-act: rgba(59, 130, 246, .20); }
/* 2 - Ultra claro */
html body.smart-style-2 { --m-hd-bg: #ffffff; --m-hd-fg: #1f2933; --m-hd-line: #e3e7ee; --m-sb-bg: #ffffff; --m-sb-bg-2: #f8fafc; --m-sb-fg: #334155; --m-sb-fg-2: #64748b; --m-sb-hover: #f1f5f9; --m-sb-act: #e8efff; --m-sb-act-fg: #1d4ed8; }
/* 3 - Anaranjado */
html body.smart-style-3 { --m-hd-bg: #1f2937; --m-acc: #ea580c; --m-acc-2: #c2410c; --m-acc-soft: #fff1e6; --m-sb-bg: #1f2937; --m-sb-bg-2: #171f2b; --m-sb-act: rgba(234, 88, 12, .22); }
/* 4 - Pixel */
html body.smart-style-4 { --m-hd-bg: #ffffff; --m-hd-fg: #1f2933; --m-hd-line: #e3e7ee; --m-acc: #475569; --m-acc-2: #334155; --m-acc-soft: #eef2f7; --m-sb-bg: #e2e8f0; --m-sb-bg-2: #cbd5e1; --m-sb-fg: #1e293b; --m-sb-fg-2: #475569; --m-sb-hover: rgba(15, 23, 42, .06); --m-sb-act: #ffffff; --m-sb-act-fg: #0f172a; }
/* 5 - Transparente */
html body.smart-style-5 { --m-hd-bg: #ffffff; --m-hd-fg: #1f2933; --m-hd-line: #e3e7ee; --m-sb-bg: rgba(255, 255, 255, .92); --m-sb-bg-2: rgba(248, 250, 252, .92); --m-sb-fg: #1e293b; --m-sb-fg-2: #64748b; --m-sb-hover: rgba(15, 23, 42, .05); --m-sb-act: rgba(37, 99, 235, .12); --m-sb-act-fg: #1d4ed8; }
/* 6 - Celeste */
html body.smart-style-6 { --m-acc: #0284c7; --m-acc-2: #0369a1; --m-acc-soft: #e0f2fe; --m-hd-bg: #0284c7; --m-hd-fg: #ffffff; --m-hd-line: #0369a1; --m-sb-bg: #0c1e33; --m-sb-bg-2: #08172a; --m-sb-act: rgba(2, 132, 199, .25); }

/* ------------------------------ BASE ------------------------------ */
html body,
html body .btn,
html body input, html body select, html body textarea, html body button,
html body .popover, html body .tooltip, html body .modal {
    font-family: var(--m-font);
}
html body { color: var(--m-ink); background: var(--m-bg); -webkit-font-smoothing: antialiased; }
html body #main, html body #content { background: var(--m-bg); }
html body a { color: var(--m-acc); }
html body a:hover { color: var(--m-acc-2); }
html body ::selection { background: var(--m-acc-soft); }

/* barras de desplazamiento finas */
html body ::-webkit-scrollbar { width: 10px; height: 10px; }
html body ::-webkit-scrollbar-thumb { background: #c9d1dc; border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
html body ::-webkit-scrollbar-thumb:hover { background-color: #aab4c2; }
html body ::-webkit-scrollbar-track { background: transparent; }

/* ------------------------------ CABECERA ------------------------------ */
html body[class*="smart-style-"] #header {
    background: var(--m-hd-bg) !important;
    background-image: none !important;
    border-bottom: 1px solid var(--m-hd-line);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    color: var(--m-hd-fg);
}
html body[class*="smart-style-"] #header .btn-header > :first-child > a,
html body[class*="smart-style-"] #header .header-search > input,
html body[class*="smart-style-"] #header .project-selector,
html body[class*="smart-style-"] #header .header-dropdown-list > li > a {
    color: var(--m-hd-fg);
}
html body[class*="smart-style-"] #header .btn-header > :first-child > a {
    background: transparent !important;
    border: 1px solid var(--m-hd-line) !important;
    border-radius: 9px !important;
    box-shadow: none !important;
    color: var(--m-hd-fg) !important;
    transition: background .15s, border-color .15s;
}
html body[class*="smart-style-"] #header .btn-header > :first-child > a:hover {
    background: var(--m-acc-soft) !important;
    border-color: var(--m-acc) !important;
    color: var(--m-acc) !important;
}
html body.smart-style-6 #header .btn-header > :first-child > a:hover { background: rgba(255, 255, 255, .15) !important; color: #fff !important; border-color: rgba(255, 255, 255, .5) !important; }
html body[class*="smart-style-"] #header .header-search > input[type=text] {
    background: var(--m-bg) !important;
    border: 1px solid var(--m-line) !important;
    border-radius: 9px !important;
    color: var(--m-ink) !important;
    box-shadow: none !important;
}
html body[class*="smart-style-"] #header .header-search > input[type=text]:focus { border-color: var(--m-acc) !important; box-shadow: 0 0 0 3px var(--m-acc-soft) !important; background: #fff !important; }
html body[class*="smart-style-"] #header .header-search > button { color: var(--m-ink-3) !important; }
html body[class*="smart-style-"] #header .header-dropdown-list .dropdown-toggle,
html body[class*="smart-style-"] #header .project-context > :first-child { color: var(--m-hd-fg) !important; font-weight: 600; }

/* ------------------------------ MENU LATERAL ------------------------------ */
html body[class*="smart-style-"] #left-panel {
    background: linear-gradient(180deg, var(--m-sb-bg) 0%, var(--m-sb-bg-2) 100%) !important;
    box-shadow: 1px 0 0 rgba(0, 0, 0, .04);
    border-right: 0;
}
html body[class*="smart-style-"] #left-panel .login-info {
    background: transparent !important;
    border-bottom: 1px solid rgba(148, 163, 184, .14) !important;
    border-top: 0 !important;
    box-shadow: none !important;
}
html body[class*="smart-style-"] #left-panel .login-info a,
html body[class*="smart-style-"] #left-panel .login-info span { color: var(--m-sb-fg) !important; font-weight: 600; }
html body[class*="smart-style-"] #left-panel .login-info img { border-radius: 50% !important; border: 2px solid rgba(148, 163, 184, .35) !important; }
html body[class*="smart-style-"] nav ul li a {
    color: var(--m-sb-fg) !important;
    border-radius: 8px;
    margin: 1px 8px;
    transition: background .15s, color .15s;
    font-size: 13.5px;
}
html body[class*="smart-style-"] nav ul li a:hover {
    background: var(--m-sb-hover) !important;
    color: var(--m-sb-act-fg) !important;
}
html body[class*="smart-style-"] nav ul li a i { color: var(--m-sb-fg-2); }
html body[class*="smart-style-"] nav ul li.active > a,
html body[class*="smart-style-"] nav ul li.open > a {
    background: var(--m-sb-act) !important;
    color: var(--m-sb-act-fg) !important;
    font-weight: 600;
}
html body[class*="smart-style-"] nav ul li.active > a i,
html body[class*="smart-style-"] nav ul li.open > a i { color: var(--m-acc); }
html body[class*="smart-style-"] nav ul li.active > a:before { display: none; }
html body[class*="smart-style-"] nav ul ul {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
html body[class*="smart-style-"] nav ul ul li a { color: var(--m-sb-fg-2) !important; font-size: 13px; }
html body[class*="smart-style-"] nav ul ul li a:hover { color: var(--m-sb-act-fg) !important; }
html body[class*="smart-style-"] nav ul ul:before,
html body[class*="smart-style-"] nav ul ul li:before { border-color: rgba(148, 163, 184, .18) !important; }
html body[class*="smart-style-"] nav > ul > li > a b,
html body[class*="smart-style-"] nav ul li a b { color: var(--m-sb-fg-2) !important; }
html body[class*="smart-style-"] .minifyme {
    background: rgba(148, 163, 184, .14) !important;
    color: var(--m-sb-fg) !important;
    border-radius: 6px 0 0 6px;
}

/* ------------------------------ PESTANAS (tabs del sistema y modulos) ------------------------------ */
html body .ui-tabs { background: transparent; border: 0; padding: 0; }
html body .ui-tabs .ui-tabs-nav {
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--m-line) !important;
    border-radius: 0 !important;
    padding: 0 6px !important;
}
html body .ui-tabs .ui-tabs-nav li {
    background: transparent !important;
    border: 0 !important;
    border-radius: 9px 9px 0 0 !important;
    margin: 0 2px -1px 0 !important;
    transition: background .15s;
}
html body .ui-tabs .ui-tabs-nav li a,
html body .ui-tabs .ui-tabs-nav li .ui-tabs-anchor {
    color: var(--m-ink-2) !important;
    font-weight: 600;
    font-size: 13px;
    padding: 9px 14px !important;
}
html body .ui-tabs .ui-tabs-nav li:hover { background: rgba(15, 23, 42, .04) !important; }
html body .ui-tabs .ui-tabs-nav li.ui-tabs-active,
html body .ui-tabs .ui-tabs-nav li.ui-state-active {
    background: var(--m-card) !important;
    border: 1px solid var(--m-line) !important;
    border-bottom-color: var(--m-card) !important;
    box-shadow: 0 -2px 0 var(--m-acc) inset;
}
html body .ui-tabs .ui-tabs-nav li.ui-tabs-active a,
html body .ui-tabs .ui-tabs-nav li.ui-state-active a { color: var(--m-acc) !important; }
html body .ui-tabs .ui-tabs-panel { background: transparent; border: 0; }
html body #cont-general-tabs-sys > .ui-tabs-panel { padding: 12px 14px !important; }
/* boton cerrar de la pestana */
html body .ui-tabs .ui-tabs-nav li .ui-icon-close,
html body .ui-tabs .ui-tabs-nav li span.ui-icon {
    border-radius: 50%;
    opacity: .55;
    transition: opacity .15s, background-color .15s;
}
html body .ui-tabs .ui-tabs-nav li .ui-icon-close:hover,
html body .ui-tabs .ui-tabs-nav li span.ui-icon:hover { opacity: 1; background-color: #fde2e2; }

/* pestanas bootstrap */
html body .nav-tabs { border-bottom: 1px solid var(--m-line); }
html body .nav-tabs > li > a { border-radius: 9px 9px 0 0; color: var(--m-ink-2); font-weight: 600; border-color: transparent; }
html body .nav-tabs > li > a:hover { background: rgba(15, 23, 42, .04); border-color: transparent; }
html body .nav-tabs > li.active > a,
html body .nav-tabs > li.active > a:hover,
html body .nav-tabs > li.active > a:focus {
    color: var(--m-acc);
    border: 1px solid var(--m-line);
    border-bottom-color: transparent;
    box-shadow: 0 -2px 0 var(--m-acc) inset;
    background: var(--m-card);
}

/* ------------------------------ MIGAS DE PAN (lv-breadcrumb) ------------------------------ */
html body .lv-breadcrumb { margin: 0 0 4px; }
html body .lv-breadcrumb li { margin: 0 2px 0 0 !important; }
html body .lv-breadcrumb a,
html body .lv-breadcrumb li:last-child a,
html body .lv-breadcrumb .current,
html body .lv-breadcrumb .current:hover {
    background: transparent !important;
    color: var(--m-ink-3) !important;
    text-shadow: none !important;
    padding: 4px 6px !important;
    font-size: 12.5px;
    font-weight: 500;
}
html body .lv-breadcrumb a:hover { color: var(--m-acc) !important; }
html body .lv-breadcrumb li:last-child a { color: var(--m-ink) !important; font-weight: 600; }
html body .lv-breadcrumb a::before,
html body .lv-breadcrumb a::after { display: none !important; }
html body .lv-breadcrumb li + li a::before {
    content: "\f105" !important;
    font-family: FontAwesome;
    display: inline-block !important;
    position: static !important;
    border: 0 !important;
    margin-right: 8px;
    color: #c0c8d2;
    background: none !important;
    width: auto; height: auto;
}

/* ------------------------------ TARJETAS (jarviswidget, panel, well) ------------------------------ */
html body .jarviswidget {
    border: 1px solid var(--m-line) !important;
    border-radius: var(--m-r) !important;
    box-shadow: var(--m-shadow) !important;
    background: var(--m-card) !important;
    overflow: visible;
}
html body .jarviswidget > header,
html body[class*="smart-style-"] .jarviswidget > header {
    background: var(--m-card) !important;
    background-image: none !important;
    border: 0 !important;
    border-bottom: 1px solid var(--m-line-2) !important;
    border-radius: var(--m-r) var(--m-r) 0 0 !important;
    color: var(--m-ink) !important;
    height: auto !important;
    min-height: 42px;
    box-shadow: none !important;
}
html body .jarviswidget > header h2 { color: var(--m-ink) !important; font-weight: 600 !important; font-size: 14px !important; letter-spacing: -.1px; }
html body .jarviswidget > header .widget-icon,
html body .jarviswidget > header .widget-icon i { color: var(--m-acc) !important; }
html body .jarviswidget > div { border: 0 !important; background: transparent !important; border-radius: 0 0 var(--m-r) var(--m-r); }
/* colores fijos que algunos modulos ponen a la cabecera del widget */
html body .jarviswidget[class*="jarviswidget-color-"] > header { color: var(--m-ink) !important; }
html body .jarviswidget[class*="jarviswidget-color-"] > header h2 { color: var(--m-ink) !important; }

html body .panel { border-radius: var(--m-r); border-color: var(--m-line); box-shadow: var(--m-shadow); }
html body .panel > .panel-heading { border-radius: var(--m-r) var(--m-r) 0 0; background: #f8fafc; border-color: var(--m-line-2); color: var(--m-ink); font-weight: 600; }
html body .panel-group .panel + .panel { margin-top: 8px; }
html body .smart-accordion-default.panel-group .panel { border-radius: var(--m-r) !important; overflow: visible; } /* (2026-11-21) visible: hidden recortaba las listas desplegables (chosen) dentro del panel */
html body .smart-accordion-default.panel-group .panel > .panel-heading { border-radius: var(--m-r) var(--m-r) 0 0; }
html body .smart-accordion-default.panel-group .panel > .panel-heading:last-child, html body .smart-accordion-default.panel-group .panel > .panel-heading:has(+ .panel-collapse:not(.in)) { border-radius: var(--m-r); }
html body .smart-accordion-default.panel-group .panel .chosen-container .chosen-drop { z-index: 1060; }
html body .smart-accordion-default.panel-group .panel-heading { background: #fff !important; }
html body .smart-accordion-default.panel-group .panel-title > a { color: var(--m-ink) !important; font-weight: 600; }
html body .well { background: #f8fafc; border: 1px solid var(--m-line); border-radius: var(--m-r); box-shadow: none; }

/* ------------------------------ BOTONES ------------------------------ */
html body .btn {
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: .1px;
    box-shadow: none !important;
    transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s;
    text-shadow: none !important;
}
html body .btn:active { transform: translateY(1px); }
html body .btn:focus { outline: 0; box-shadow: 0 0 0 3px var(--m-acc-soft) !important; }
html body .btn-xs { border-radius: 6px; }
html body .btn-lg { border-radius: 10px; }
html body .btn-default { background: #fff; border-color: #d6dce5; color: var(--m-ink); }
html body .btn-default:hover, html body .btn-default:focus, html body .btn-default.active, html body .open > .dropdown-toggle.btn-default { background: #f6f8fb; border-color: #c3cbd6; color: var(--m-ink); }
html body .btn-primary { background: var(--m-acc); border-color: var(--m-acc); color: #fff; }
html body .btn-primary:hover, html body .btn-primary:focus, html body .btn-primary.active, html body .open > .dropdown-toggle.btn-primary { background: var(--m-acc-2); border-color: var(--m-acc-2); color: #fff; }
html body .btn-success { background: var(--m-ok); border-color: var(--m-ok); color: #fff; }
html body .btn-success:hover, html body .btn-success:focus { background: var(--m-ok-2); border-color: var(--m-ok-2); color: #fff; }
html body .btn-danger, html body .btn-orange { background: var(--m-bad); border-color: var(--m-bad); color: #fff; }
html body .btn-danger:hover, html body .btn-danger:focus, html body .btn-orange:hover { background: var(--m-bad-2); border-color: var(--m-bad-2); color: #fff; }
html body .btn-warning { background: var(--m-warn); border-color: var(--m-warn); color: #fff; }
html body .btn-warning:hover, html body .btn-warning:focus { background: var(--m-warn-2); border-color: var(--m-warn-2); color: #fff; }
html body .btn-info { background: var(--m-info); border-color: var(--m-info); color: #fff; }
html body .btn-info:hover, html body .btn-info:focus { background: #0e7490; border-color: #0e7490; color: #fff; }
html body .btn-link { color: var(--m-acc); font-weight: 600; }
html body .btn-group > .btn:first-child:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
html body .btn-group > .btn:last-child:not(:first-child),
html body .btn-group > .dropdown-toggle:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
html body .btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) { border-radius: 0; }

/* ------------------------------ FORMULARIOS ------------------------------ */
html body .form-control,
html body .smart-form .input input,
html body .smart-form .select select,
html body .smart-form .textarea textarea {
    border: 1px solid #d6dce5;
    border-radius: 8px !important;
    color: var(--m-ink);
    background-color: #fff;
    box-shadow: none !important;
    transition: border-color .15s, box-shadow .15s;
}
html body .form-control:focus,
html body .smart-form .input input:focus,
html body .smart-form .select select:focus,
html body .smart-form .textarea textarea:focus {
    border-color: var(--m-acc) !important;
    box-shadow: 0 0 0 3px var(--m-acc-soft) !important;
    outline: 0;
}
html body .form-control[disabled], html body .form-control[readonly], html body fieldset[disabled] .form-control { background: #f3f5f8; color: var(--m-ink-2); }
html body .form-control::placeholder { color: #9aa5b1; }
html body label, html body .control-label { color: var(--m-ink-2); font-weight: 600; font-size: 12.5px; }
html body .has-error .form-control { border-color: var(--m-bad) !important; }
html body .has-error .form-control:focus { box-shadow: 0 0 0 3px #fde2e2 !important; }
html body .has-success .form-control { border-color: var(--m-ok); }
html body .help-block { color: var(--m-ink-3); font-size: 12px; }
html body .input-group-addon { background: #f6f8fb; border-color: #d6dce5; color: var(--m-ink-2); }
html body .input-group > .form-control:first-child:not(:last-child),
html body .input-group > .input-group-addon:first-child { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
html body .input-group > .form-control:last-child:not(:first-child),
html body .input-group > .input-group-addon:last-child,
html body .input-group > .input-group-btn:last-child > .btn { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; }
html body .input-group > .input-group-addon:last-child { border-radius: 0 8px 8px 0; }
html body .input-group > .form-control:not(:first-child):not(:last-child) { border-radius: 0 !important; }
html body input[type=checkbox], html body input[type=radio] { accent-color: var(--m-acc); }

/* chosen (listas desplegables con busqueda) */
html body .chosen-container .chosen-single,
html body .chosen-container-multi .chosen-choices {
    border: 1px solid #d6dce5 !important;
    border-radius: 8px !important;
    background: #fff !important;
    background-image: none !important;
    box-shadow: none !important;
    color: var(--m-ink) !important;
}
html body .chosen-container-active .chosen-single,
html body .chosen-container-active .chosen-choices { border-color: var(--m-acc) !important; box-shadow: 0 0 0 3px var(--m-acc-soft) !important; }
html body .chosen-container .chosen-drop {
    border: 1px solid var(--m-line) !important;
    border-radius: 0 0 8px 8px;
    box-shadow: var(--m-shadow-lg) !important;
}
html body .chosen-container .chosen-results li.highlighted { background: var(--m-acc) !important; background-image: none !important; }
html body .chosen-container .chosen-search input { border-radius: 6px; border-color: #d6dce5 !important; }
html body .chosen-container-multi .chosen-choices li.search-choice { border-radius: 6px; background: var(--m-acc-soft) !important; border-color: transparent !important; color: var(--m-acc-2); box-shadow: none !important; }

/* ------------------------------ TABLAS / GRILLAS ------------------------------ */
html body .table { color: var(--m-ink); }
html body .table > thead > tr > th,
html body .table > thead > tr > td {
    background: #f8fafc;
    background-color: #f8fafc !important;
    color: var(--m-ink-2);
    font-weight: 600;
    font-size: 12.5px;
    border-bottom: 1px solid var(--m-line) !important;
    vertical-align: middle;
}
html body .table-bordered,
html body .table-bordered > thead > tr > th,
html body .table-bordered > thead > tr > td,
html body .table-bordered > tbody > tr > th,
html body .table-bordered > tbody > tr > td,
html body .table-bordered > tfoot > tr > th,
html body .table-bordered > tfoot > tr > td { border-color: var(--m-line-2) !important; }
html body .table > tbody > tr > td { border-top-color: var(--m-line-2); vertical-align: middle; }
html body .table-striped > tbody > tr:nth-of-type(odd) { background-color: #fbfcfe; }
html body .table-hover > tbody > tr:hover,
html body .table-hover > tbody > tr:hover > td { background-color: #f2f6ff !important; }
html body .table > tbody > tr.active > td,
html body .table > tbody > tr.selected > td,
html body .table > tbody > tr > td.sorting_1,
html body .table > tbody > tr > td.sorting_2,
html body .table > tbody > tr > td.sorting_3 { background-color: rgba(37, 99, 235, .035) !important; }
html body .table > tfoot > tr > td,
html body .table > tfoot > tr > th { background: #f1f5fb; font-weight: 700; }
html body table.fullgrid { border-radius: 0; }
html body .fullgrid-dt-toolbar,
html body .fullgrid-dt-toolbar-footer { background: #fff !important; border-color: var(--m-line-2) !important; }
html body .fullgrid-dt-toolbar-footer { border-radius: 0 0 var(--m-r) var(--m-r); }
html body .fullgrid_info { color: var(--m-ink-3) !important; font-style: normal !important; font-size: 12.5px; }
/* fila de filtros de la grilla */
html body table.fullgrid thead tr:nth-child(2) th,
html body table.fullgrid thead .hasinput { background: #fff !important; }
html body table.fullgrid thead .form-control { height: 30px; font-size: 12.5px; }
html body table.fullgrid thead .input-group-addon { padding: 4px 9px; }
/* indicadores de orden */
html body .table thead .sorting:after,
html body .table thead .sorting_asc:after,
html body .table thead .sorting_desc:after { color: var(--m-ink-3); opacity: .7; }
html body .table thead .sorting_asc:after,
html body .table thead .sorting_desc:after { color: var(--m-acc); opacity: 1; }

/* paginacion */
html body .pagination > li > a,
html body .pagination > li > span {
    border: 1px solid var(--m-line);
    color: var(--m-ink-2);
    margin-left: 4px;
    border-radius: 7px !important;
    min-width: 32px;
    text-align: center;
    background: #fff;
}
html body .pagination > li > a:hover { background: var(--m-acc-soft); color: var(--m-acc); border-color: var(--m-acc-soft); }
html body .pagination > .active > a,
html body .pagination > .active > a:hover,
html body .pagination > li.activefg > a,
html body .pagination > li > a.activefg,
html body .pagination > .active > span {
    background: var(--m-acc) !important;
    border-color: var(--m-acc) !important;
    color: #fff !important;
}
html body .pagination > .disabled > a,
html body .pagination > .disabled > a:hover { color: #c0c8d2; background: #fff; border-color: var(--m-line-2); }

/* ------------------------------ ETIQUETAS / INSIGNIAS ------------------------------ */
html body .label {
    border-radius: 999px;
    font-weight: 600;
    padding: .3em .75em .35em;
    font-size: 11px;
    letter-spacing: .2px;
}
html body .label-success { background: #dcfce7; color: #15803d; }
html body .label-danger { background: #fee2e2; color: #b91c1c; }
html body .label-warning { background: #fef3c7; color: #b45309; }
html body .label-info { background: #cffafe; color: #0e7490; }
html body .label-primary { background: var(--m-acc-soft); color: var(--m-acc-2); }
html body .label-default { background: #eef1f5; color: var(--m-ink-2); }
html body .badge { border-radius: 999px; font-weight: 600; background: var(--m-acc); }

/* ------------------------------ MENUS DESPLEGABLES ------------------------------ */
html body .dropdown-menu {
    border: 1px solid var(--m-line);
    border-radius: 10px;
    box-shadow: var(--m-shadow-lg);
    padding: 6px;
}
html body .dropdown-menu > li > a { border-radius: 7px; padding: 7px 12px; color: var(--m-ink); }
html body .dropdown-menu > li > a:hover,
html body .dropdown-menu > li > a:focus { background: var(--m-acc-soft); color: var(--m-acc-2); }
html body .dropdown-menu > .active > a,
html body .dropdown-menu > .active > a:hover { background: var(--m-acc); color: #fff; }
html body .dropdown-menu .divider { background: var(--m-line-2); margin: 5px 0; }

/* ------------------------------ MODALES ------------------------------ */
html body .modal-content {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
    overflow: hidden;
}
html body .modal-header {
    background: #fff !important;
    border-bottom: 1px solid var(--m-line-2);
    padding: 14px 18px;
}
html body .modal-header .modal-title,
html body .modal-header h4 { color: var(--m-ink) !important; font-weight: 600; font-size: 16px; }
html body .modal-header .close { opacity: .45; text-shadow: none; font-size: 24px; }
html body .modal-header .close:hover { opacity: .9; }
html body .modal-body { padding: 16px 18px; }
html body .modal-footer { background: #f8fafc; border-top: 1px solid var(--m-line-2); padding: 12px 18px; }
html body .modal-backdrop.in { opacity: .45; background: #0f172a; }

/* ------------------------------ ALERTAS / NOTIFICACIONES ------------------------------ */
html body .alert { border-radius: var(--m-r); border-width: 1px; }
html body .alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
html body .alert-danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
html body .alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
html body .alert-info { background: #ecfeff; border-color: #a5f3fc; color: #155e75; }
html body #divSmallBoxes .SmallBox,
html body .SmallBox {
    border-radius: 12px !important;
    box-shadow: var(--m-shadow-lg) !important;
    border: 0 !important;
}
html body .divMessageBox .MessageBoxMiddle { border-radius: 14px; box-shadow: var(--m-shadow-lg); }

/* ------------------------------ POPOVER / TOOLTIP ------------------------------ */
html body .popover { border-radius: 10px; border-color: var(--m-line); box-shadow: var(--m-shadow-lg); }
html body .tooltip-inner { border-radius: 7px; background: #0f172a; padding: 5px 9px; }

/* ------------------------------ AUTOCOMPLETAR ------------------------------ */
html body .ui-autocomplete,
html body .ui-menu {
    border: 1px solid var(--m-line) !important;
    border-radius: 10px !important;
    box-shadow: var(--m-shadow-lg) !important;
    padding: 4px !important;
    background: #fff !important;
}
html body .ui-menu .ui-menu-item-wrapper,
html body .ui-menu .ui-menu-item a { border-radius: 7px; }
html body .ui-menu .ui-state-active,
html body .ui-menu .ui-state-focus { background: var(--m-acc-soft) !important; border-color: transparent !important; color: var(--m-acc-2) !important; margin: 0 !important; }

/* ------------------------------ DATEPICKER ------------------------------ */
html body .ui-datepicker { border-radius: 12px; border: 1px solid var(--m-line); box-shadow: var(--m-shadow-lg); padding: 6px; }
html body .ui-datepicker .ui-datepicker-header { background: transparent; border: 0; }
html body .ui-datepicker td a { border-radius: 7px; text-align: center; }
html body .ui-datepicker td .ui-state-active { background: var(--m-acc) !important; color: #fff !important; }

/* ------------------------------ PANEL DE INICIO (dashboard) ------------------------------ */
html body #content .well,
html body #content .jarviswidget { transition: box-shadow .2s; }

/* ------------------------------ LOGIN ------------------------------ */
html body #extr-page,
html body.smart-style-0 #extr-page { background: var(--m-bg); }

/* ------------------------------ IMPRESION ------------------------------ */
@media print {
    html body .jarviswidget { box-shadow: none !important; }
}

/* zona del logo: mismo color que la cabecera */
html body[class*="smart-style-"] #header #logo-group,
html body[class*="smart-style-"] #header #logo-group > span,
html body[class*="smart-style-"] #header #logo { background: transparent !important; background-image: none !important; }
html body[class*="smart-style-"] #header #logo-group { border-right: 1px solid var(--m-hd-line); }
/* area de contenido bajo las pestanas */
html body #cont-general-tabs-sys { background: transparent !important; }

/* ------------------------------ COMPONENTES PROPIOS DEL SISTEMA ------------------------------ */
/* buscador destacado (ej. buscar productos en Emitir) */
html body .lv-search,
html body input.lv-search.form-control {
    background: #fff !important;
    color: var(--m-ink) !important;
    font-weight: 600 !important;
    border: 2px solid var(--m-acc) !important;
    border-radius: 10px !important;
}
html body .lv-search::placeholder { color: var(--m-ink-3) !important; font-weight: 500; }
html body .lv-search:focus { box-shadow: 0 0 0 4px var(--m-acc-soft) !important; }
/* bloques de total / pago (Emitir) */
html body .lv-container-green {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
    border: 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 16px rgba(22, 163, 74, .22);
    color: #fff;
}
html body .lv-container-green .form-control { border-color: rgba(255, 255, 255, .5); }
/* campo marcado con error */
html body .lv-marked { border: 1px solid var(--m-bad) !important; background: #fef2f2 !important; border-radius: 8px; }
/* encabezados de seccion */
html body .lv-header-section { border-bottom: 1px solid var(--m-line-2); }
/* utilidades de color de SmartAdmin mas suaves */
html body .bg-color-blue, html body .bg-color-blueDark { background-color: var(--m-acc) !important; }
html body .bg-color-green, html body .bg-color-greenDark { background-color: var(--m-ok) !important; }
html body .bg-color-red { background-color: var(--m-bad) !important; }
html body .bg-color-orange { background-color: var(--m-warn) !important; }
html body .txt-color-blue { color: var(--m-acc) !important; }
html body .txt-color-green { color: var(--m-ok) !important; }
html body .txt-color-red { color: var(--m-bad) !important; }

/* fondo continuo hasta el final de la pantalla */
html { background: #f3f5f9; }
html body #main { min-height: calc(100vh - 49px); }

/* bloque de bienvenida / avisos destacados (well con color) */
html body .well[class*="bg-color-"] {
    background: linear-gradient(135deg, var(--m-acc) 0%, var(--m-acc-2) 100%) !important;
    border: 0 !important;
    border-radius: 14px !important;
    padding: 24px 20px !important;
    box-shadow: 0 10px 28px rgba(37, 99, 235, .22);
    color: #fff !important;
}
html body .well[class*="bg-color-"] h5 { color: rgba(255, 255, 255, .85) !important; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; margin: 0 0 6px; }
html body .well[class*="bg-color-"] code {
    background: transparent !important;
    color: #fff !important;
    font-family: var(--m-font) !important;
    font-weight: 700;
    font-size: 28px !important;
    letter-spacing: -.5px;
    padding: 0;
    box-shadow: none;
}
html body code { border-radius: 6px; }

/* =====================================================================================
 *  MODO OSCURO  (se activa con la clase "m-dark" en <html>; boton luna/sol de la cabecera)
 *  Conserva el color de acento de cada tema; fondos, textos y bordes pasan a oscuro.
 * ===================================================================================== */
html.m-dark { background: #0b1120 !important; color-scheme: dark; }
html.m-dark body,
html.m-dark body[class*="smart-style-"] {
    --m-bg: #0b1120;
    --m-card: #131c2e;
    --m-line: #24314a;
    --m-line-2: #1c2740;
    --m-ink: #e2e8f0;
    --m-ink-2: #b4c0d3;
    --m-ink-3: #7c8aa3;
    --m-acc-soft: rgba(96, 165, 250, .16);
    --m-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 1px 3px rgba(0, 0, 0, .25);
    --m-shadow-lg: 0 14px 36px rgba(0, 0, 0, .55);
    --m-hd-bg: #0f172a;
    --m-hd-fg: #e2e8f0;
    --m-hd-line: rgba(255, 255, 255, .08);
    --m-sb-bg: #0f172a;
    --m-sb-bg-2: #0a1020;
    --m-sb-fg: #cbd5e1;
    --m-sb-fg-2: #8796ad;
    --m-sb-hover: rgba(255, 255, 255, .05);
    --m-sb-act: rgba(96, 165, 250, .16);
    --m-sb-act-fg: #ffffff;
    --m-in-bg: #0e1626;
    --m-in-line: #2b3a55;
    --m-soft: #172238;
    background: var(--m-bg) !important;
    color: var(--m-ink);
}
html.m-dark body.smart-style-3 { --m-acc-soft: rgba(234, 88, 12, .18); --m-sb-act: rgba(234, 88, 12, .22); }
html.m-dark body.smart-style-4 { --m-acc: #94a3b8; --m-acc-2: #64748b; --m-acc-soft: rgba(148, 163, 184, .16); }
html.m-dark body.smart-style-6 { --m-acc-soft: rgba(2, 132, 199, .20); --m-hd-bg: #075985; --m-sb-act: rgba(2, 132, 199, .25); }

/* texto general */
html.m-dark body .text-muted, html.m-dark body .note { color: var(--m-ink-3) !important; }
html.m-dark body legend { border-color: var(--m-line); color: var(--m-ink); }
html.m-dark body hr { border-color: var(--m-line); }
html.m-dark body h1, html.m-dark body h2, html.m-dark body h3, html.m-dark body h4, html.m-dark body h5, html.m-dark body h6 { color: var(--m-ink); }
html.m-dark body ::selection { background: rgba(96, 165, 250, .35); }
html.m-dark body pre { background: var(--m-soft); color: var(--m-ink); border-color: var(--m-line); }

/* contenedores generales */
html.m-dark body #main, html.m-dark body #content, html.m-dark body #ribbon,
html.m-dark body #cont-general-tabs-sys, html.m-dark body .ui-widget-content { background: var(--m-bg) !important; color: var(--m-ink); }
html.m-dark body .ui-widget-content a:not(.btn) { color: var(--m-acc); }
/* (2026-11-23) los enlaces con forma de botón conservan el texto del botón (antes "Agregar Pago" quedaba azul sobre azul) */
html.m-dark body .ui-widget-content a.btn-primary, html.m-dark body .ui-widget-content a.btn-success,
html.m-dark body .ui-widget-content a.btn-danger, html.m-dark body .ui-widget-content a.btn-warning,
html.m-dark body .ui-widget-content a.btn-info { color: #fff; }
html.m-dark body .ui-widget-content a.btn-default { color: var(--m-ink); }
html.m-dark body .jarviswidget > div,
html.m-dark body .widget-body,
html.m-dark body .smart-form,
html.m-dark body .smart-form fieldset,
html.m-dark body .smart-form footer { background: transparent !important; color: var(--m-ink); }
html.m-dark body .smart-form footer { border-color: var(--m-line) !important; }
html.m-dark body .smart-form .label, html.m-dark body .smart-form .checkbox, html.m-dark body .smart-form .radio { color: var(--m-ink-2); }
html.m-dark body .jarviswidget .widget-toolbar, html.m-dark body .jarviswidget-ctrls a { color: var(--m-ink-2) !important; border-color: var(--m-line) !important; }
html.m-dark body .panel { background: var(--m-card); }
html.m-dark body .panel > .panel-heading,
html.m-dark body .panel-default > .panel-heading,
html.m-dark body .smart-accordion-default.panel-group .panel-heading { background: var(--m-soft) !important; color: var(--m-ink) !important; border-color: var(--m-line) !important; }
html.m-dark body .panel-body, html.m-dark body .panel-footer { background: var(--m-card); border-color: var(--m-line); color: var(--m-ink); }
html.m-dark body .well { background: var(--m-soft); border-color: var(--m-line); color: var(--m-ink); }
html.m-dark body .ui-tabs .ui-tabs-nav li:hover, html.m-dark body .nav-tabs > li > a:hover { background: rgba(255, 255, 255, .05) !important; }
html.m-dark body .lv-breadcrumb li + li a::before { color: #475569; }
html.m-dark body .nav-tabs, html.m-dark body .nav-tabs.bordered { background: transparent !important; border-color: var(--m-line) !important; }
html.m-dark body .nav-tabs.bordered + .tab-content { border-color: var(--m-line) !important; background: transparent; }
html.m-dark body .nav-tabs > li.active > a, html.m-dark body .nav-tabs > li.active > a:hover,
html.m-dark body .nav-tabs > li.active > a:focus { background: var(--m-card) !important; border-color: var(--m-line) !important; border-bottom-color: transparent !important; color: var(--m-acc) !important; }
html.m-dark body .ui-tabs .ui-tabs-nav li a,
html.m-dark body .ui-tabs .ui-tabs-nav li .ui-tabs-anchor { background: transparent !important; border-color: transparent !important; }
html.m-dark body .ui-tabs .ui-tabs-nav li { border: 1px solid transparent !important; }
html.m-dark body .ui-tabs .ui-tabs-nav li.ui-tabs-active,
html.m-dark body .ui-tabs .ui-tabs-nav li.ui-state-active { border-color: var(--m-line) !important; border-bottom-color: var(--m-card) !important; }
html.m-dark body .ui-tabs .ui-tabs-nav li .ui-icon-close:hover,
html.m-dark body .ui-tabs .ui-tabs-nav li span.ui-icon:hover { background-color: rgba(220, 38, 38, .3); }

/* fondos blancos fijos (clases de SmartAdmin y estilos en linea de los modulos) */
html.m-dark body .bg-color-white, html.m-dark body .bg-color-lighten,
html.m-dark body [style*="background-color: #fff"], html.m-dark body [style*="background-color:#fff"],
html.m-dark body [style*="background: #fff"], html.m-dark body [style*="background:#fff"],
html.m-dark body [style*="background-color: white"], html.m-dark body [style*="background: white"],
html.m-dark body [style*="background-color: #FFF"], html.m-dark body [style*="background:#FFF"] { background-color: var(--m-card) !important; color: var(--m-ink); }
html.m-dark body [style*="color: #000"], html.m-dark body [style*="color:#000"],
html.m-dark body [style*="color: black"], html.m-dark body [style*="color:black"],
html.m-dark body .txt-color-black, html.m-dark body .txt-color-darken { color: var(--m-ink) !important; }

/* cabecera */
html.m-dark body[class*="smart-style-"] #header .header-search > input[type=text] { background: var(--m-in-bg) !important; border-color: var(--m-in-line) !important; color: var(--m-ink) !important; }
html.m-dark body[class*="smart-style-"] #header .header-search > input[type=text]:focus { background: var(--m-in-bg) !important; }
html.m-dark body[class*="smart-style-"] #header .btn-header > :first-child > a:hover { background: rgba(255, 255, 255, .08) !important; color: #fff !important; }
html.m-dark body #lkDarkMode i.fa-sun-o { color: #fbbf24; }

/* formularios */
html.m-dark body .form-control,
html.m-dark body .smart-form .input input,
html.m-dark body .smart-form .select select,
html.m-dark body .smart-form .textarea textarea,
html.m-dark body select, html.m-dark body textarea,
html.m-dark body input[type=text], html.m-dark body input[type=number], html.m-dark body input[type=password],
html.m-dark body input[type=email], html.m-dark body input[type=date], html.m-dark body input[type=search] {
    background-color: var(--m-in-bg) !important;
    border-color: var(--m-in-line);
    color: var(--m-ink) !important;
}
html.m-dark body .form-control[disabled], html.m-dark body .form-control[readonly],
html.m-dark body fieldset[disabled] .form-control, html.m-dark body input[disabled], html.m-dark body select[disabled] { background-color: #18233a !important; color: var(--m-ink-3) !important; }
html.m-dark body .form-control::placeholder, html.m-dark body input::placeholder, html.m-dark body textarea::placeholder { color: #5f6f88; }
html.m-dark body .input-group-addon { background: var(--m-soft); border-color: var(--m-in-line); color: var(--m-ink-2); }
html.m-dark body .has-error .form-control:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, .25) !important; }
html.m-dark body .smart-form .checkbox i, html.m-dark body .smart-form .radio i,
html.m-dark body label.checkbox > i, html.m-dark body label.radio > i { background-color: var(--m-in-bg) !important; border-color: var(--m-in-line) !important; }
html.m-dark body .smart-form .checkbox input:checked + i, html.m-dark body label.checkbox > input:checked + i { border-color: var(--m-acc) !important; }
html.m-dark body .smart-form .checkbox input + i:after, html.m-dark body label.checkbox > input + i:after { color: var(--m-acc) !important; }
html.m-dark body .lv-modalrequired { background: rgba(220, 38, 38, .14) !important; border-color: rgba(220, 38, 38, .35) !important; color: #fca5a5 !important; }
html.m-dark body .lv-modalrequired * { color: #fca5a5 !important; }
html.m-dark body .smart-form .icon-append, html.m-dark body .smart-form .icon-prepend { background: transparent; border-color: var(--m-in-line); color: var(--m-ink-3); }
html.m-dark body .chosen-container .chosen-single,
html.m-dark body .chosen-container-multi .chosen-choices { background: var(--m-in-bg) !important; border-color: var(--m-in-line) !important; color: var(--m-ink) !important; }
html.m-dark body .chosen-container .chosen-single span { color: var(--m-ink); }
html.m-dark body .chosen-container .chosen-drop { background: var(--m-card) !important; border-color: var(--m-line) !important; }
html.m-dark body .chosen-container .chosen-results li { color: var(--m-ink); }
html.m-dark body .chosen-container .chosen-results li.highlighted { color: #fff; }
html.m-dark body .chosen-container .chosen-results li.disabled-result { color: var(--m-ink-3); }
html.m-dark body .chosen-container .chosen-search input { background-color: var(--m-in-bg) !important; border-color: var(--m-in-line) !important; }
html.m-dark body .chosen-container-multi .chosen-choices li.search-choice { color: var(--m-ink); }
html.m-dark body .chosen-container-multi .chosen-choices li.search-field input[type=text] { background: transparent !important; }

/* botones */
html.m-dark body .btn-default { background: var(--m-soft); border-color: var(--m-in-line); color: var(--m-ink); }
html.m-dark body .btn-default:hover, html.m-dark body .btn-default:focus, html.m-dark body .btn-default.active,
html.m-dark body .open > .dropdown-toggle.btn-default { background: #1f2c46; border-color: #3a4b6b; color: #fff; }

/* tablas */
html.m-dark body .table, html.m-dark body table { color: var(--m-ink); }
html.m-dark body .table > thead > tr > th,
html.m-dark body .table > thead > tr > td { background-color: var(--m-soft) !important; color: var(--m-ink-2); }
html.m-dark body .table > tbody > tr > td, html.m-dark body .table > tbody > tr > th { border-color: var(--m-line-2); }
html.m-dark body .table-striped > tbody > tr:nth-of-type(odd) { background-color: rgba(255, 255, 255, .025); }
html.m-dark body .table-hover > tbody > tr:hover,
html.m-dark body .table-hover > tbody > tr:hover > td { background-color: rgba(96, 165, 250, .10) !important; }
html.m-dark body .table > tbody > tr.active > td, html.m-dark body .table > tbody > tr.selected > td,
html.m-dark body .table > tbody > tr > td.sorting_1, html.m-dark body .table > tbody > tr > td.sorting_2,
html.m-dark body .table > tbody > tr > td.sorting_3 { background-color: rgba(96, 165, 250, .06) !important; }
html.m-dark body .table > tbody > tr.success > td { background-color: rgba(22, 163, 74, .16) !important; }
html.m-dark body .table > tbody > tr.danger > td { background-color: rgba(220, 38, 38, .16) !important; }
html.m-dark body .table > tbody > tr.warning > td { background-color: rgba(245, 158, 11, .16) !important; }
html.m-dark body .table > tbody > tr.info > td { background-color: rgba(8, 145, 178, .16) !important; }
html.m-dark body .table > tfoot > tr > td, html.m-dark body .table > tfoot > tr > th { background: #1a2640; color: var(--m-ink); border-color: var(--m-line); }
html.m-dark body .fullgrid-dt-toolbar, html.m-dark body .fullgrid-dt-toolbar-footer,
html.m-dark body table.fullgrid thead tr:nth-child(2) th, html.m-dark body table.fullgrid thead .hasinput { background: var(--m-card) !important; }
html.m-dark body .dt-toolbar, html.m-dark body .dt-toolbar-footer { background: var(--m-card) !important; color: var(--m-ink); border-color: var(--m-line) !important; }

/* paginacion */
html.m-dark body .pagination > li > a, html.m-dark body .pagination > li > span { background: var(--m-soft); border-color: var(--m-line); color: var(--m-ink-2); }
html.m-dark body .pagination > .disabled > a, html.m-dark body .pagination > .disabled > a:hover { background: var(--m-card); color: #4b5a73; border-color: var(--m-line-2); }

/* etiquetas */
html.m-dark body .label-success { background: rgba(22, 163, 74, .18); color: #4ade80; }
html.m-dark body .label-danger { background: rgba(220, 38, 38, .18); color: #f87171; }
html.m-dark body .label-warning { background: rgba(245, 158, 11, .18); color: #fbbf24; }
html.m-dark body .label-info { background: rgba(8, 145, 178, .20); color: #67e8f9; }
html.m-dark body .label-primary { color: #93c5fd; }
html.m-dark body .label-default { background: rgba(148, 163, 184, .16); color: var(--m-ink-2); }

/* menus, modales, popovers, autocompletar, calendario */
html.m-dark body .dropdown-menu { background: var(--m-card); border-color: var(--m-line); }
html.m-dark body .dropdown-menu > li > a { color: var(--m-ink); }
html.m-dark body .dropdown-menu > li > a:hover, html.m-dark body .dropdown-menu > li > a:focus { color: #fff; }
html.m-dark body .modal-content { background: var(--m-card); color: var(--m-ink); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
html.m-dark body .modal-header { background: var(--m-card) !important; border-color: var(--m-line) !important; }
html.m-dark body .modal-header .close { color: #fff; }
html.m-dark body .modal-body { background: var(--m-card); }
html.m-dark body .modal-footer { background: #0f1828; border-color: var(--m-line); }
html.m-dark body .modal-backdrop.in { opacity: .65; background: #000; }
html.m-dark body .popover { background: var(--m-card); color: var(--m-ink); }
html.m-dark body .popover-title { background: var(--m-soft); border-color: var(--m-line); }
html.m-dark body .popover.bottom > .arrow:after { border-bottom-color: var(--m-card); }
html.m-dark body .popover.top > .arrow:after { border-top-color: var(--m-card); }
html.m-dark body .tooltip-inner { background: #e2e8f0; color: #0f172a; }
html.m-dark body .ui-autocomplete, html.m-dark body .ui-menu { background: var(--m-card) !important; color: var(--m-ink) !important; }
html.m-dark body .ui-menu .ui-menu-item, html.m-dark body .ui-menu .ui-menu-item a { color: var(--m-ink); }
html.m-dark body .ui-menu .ui-state-active, html.m-dark body .ui-menu .ui-state-focus { color: #fff !important; }
html.m-dark body .ui-datepicker { background: var(--m-card) !important; color: var(--m-ink); }
html.m-dark body .ui-datepicker .ui-datepicker-title, html.m-dark body .ui-datepicker th { color: var(--m-ink); }
html.m-dark body .ui-datepicker td a, html.m-dark body .ui-datepicker td span { color: var(--m-ink) !important; background: transparent; border-color: transparent; }
html.m-dark body .ui-datepicker td a:hover { background: var(--m-acc-soft) !important; }
html.m-dark body .ui-datepicker .ui-datepicker-prev span, html.m-dark body .ui-datepicker .ui-datepicker-next span { filter: invert(1); }

/* alertas y mensajes */
html.m-dark body .alert-success { background: rgba(22, 163, 74, .12); border-color: rgba(22, 163, 74, .35); color: #86efac; }
html.m-dark body .alert-danger { background: rgba(220, 38, 38, .12); border-color: rgba(220, 38, 38, .35); color: #fca5a5; }
html.m-dark body .alert-warning { background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .35); color: #fcd34d; }
html.m-dark body .alert-info { background: rgba(8, 145, 178, .12); border-color: rgba(8, 145, 178, .35); color: #67e8f9; }

html.m-dark body .divMessageBox .MessageBoxMiddle,
html.m-dark body .MessageBoxContainer { background: var(--m-card) !important; color: var(--m-ink) !important; }
html.m-dark body .divMessageBox .MessageBoxMiddle .MsgTitle,
html.m-dark body .divMessageBox .MessageBoxMiddle .pText { color: var(--m-ink) !important; }
html.m-dark body .swal2-popup { background: var(--m-card) !important; color: var(--m-ink) !important; }
html.m-dark body .swal2-title, html.m-dark body .swal2-html-container, html.m-dark body .swal2-content { color: var(--m-ink) !important; }

/* componentes propios */
html.m-dark body .lv-search, html.m-dark body input.lv-search.form-control { background: var(--m-in-bg) !important; }
html.m-dark body .lv-marked { background: rgba(220, 38, 38, .12) !important; }
html.m-dark body .lv-container-green { background: linear-gradient(135deg, #15803d 0%, #166534 100%) !important; box-shadow: none; }
html.m-dark body .well[class*="bg-color-"] { box-shadow: none; }

html.m-dark body .table > thead > tr { background: transparent !important; }
/* lista ordenable (Sucursales, Menu) */
html.m-dark body .dd3-content, html.m-dark body .dd-handle { background: var(--m-card) !important; border-color: var(--m-line) !important; color: var(--m-ink) !important; }
html.m-dark body .dd3-handle { background: var(--m-soft) !important; border-color: var(--m-line) !important; }
html.m-dark body .dd3-content:hover, html.m-dark body .dd-handle:hover { background: var(--m-soft) !important; color: var(--m-acc) !important; }

/* generador de reportes */
html.m-dark body .rg {
    --rg-bg: var(--m-bg); --rg-card: var(--m-card); --rg-line: var(--m-line); --rg-line2: var(--m-line-2);
    --rg-ink: var(--m-ink); --rg-ink2: var(--m-ink-2); --rg-ink3: var(--m-ink-3); --rg-pri-soft: var(--m-acc-soft);
    --rg-ok: #4ade80; --rg-bad: #f87171; --rg-warn: #fbbf24;
}
html.m-dark body .rg select.rg-in, html.m-dark body .rg input.rg-in { background: var(--m-in-bg) !important; border-color: var(--m-in-line); }
html.m-dark body .rg-chip, html.m-dark body .rg-btn, html.m-dark body .rg-ms-dd, html.m-dark body .rg-go,
html.m-dark body .rg-tpl, html.m-dark body .rg-modal-c { background: var(--m-card); }
html.m-dark body .rg-chip.on, html.m-dark body .rg-btn.pri { background: var(--m-acc); color: #fff; }
html.m-dark body .rg-btn.pri:hover { background: var(--m-acc-2); }
html.m-dark body .rg-btn:hover { background: var(--m-soft); border-color: var(--m-in-line); }
html.m-dark body .rg-seg button.on { background: var(--m-soft); }
html.m-dark body .rg-item, html.m-dark body .rg-filter { background: var(--m-soft); }
html.m-dark body .rg-t th { background: var(--m-soft) !important; }
html.m-dark body .rg-t th.grp, html.m-dark body .rg-t tfoot td { background: #1a2640 !important; }
html.m-dark body .rg-t td.tot, html.m-dark body .rg-t th.tot { background: #162036 !important; }
html.m-dark body .rg-t tbody tr:hover td { background: rgba(96, 165, 250, .10) !important; }
html.m-dark body .rg-aviso { background: rgba(245, 158, 11, .12) !important; border-color: rgba(245, 158, 11, .35) !important; color: #fcd34d !important; }

/* celular: el boton de modo oscuro debe caber en la cabecera */
@media (max-width: 480px) {
    html body #header #logo-group { max-width: 110px; overflow: hidden; }
    html body #header .btn-header { margin-left: 3px !important; }
}

/* barras de desplazamiento */
html.m-dark ::-webkit-scrollbar { width: 10px; height: 10px; background: #0b1120; }
html.m-dark ::-webkit-scrollbar-thumb { background: #26344f; border-radius: 10px; border: 2px solid #0b1120; }
html.m-dark ::-webkit-scrollbar-thumb:hover { background: #33456a; }
