/* =====================================================================
   GESMART - Estilo moderno global
   - Solo afecta el area de trabajo (#cont-main-sys).
   - Formas (bordes redondeados, espaciados) aplican en claro y oscuro.
   - Colores solo en modo claro: el modo oscuro conserva dark_theme.css.
   - Emitir (.gs-emitir) tiene su propio estilo y no se toca.
   ===================================================================== */

/* ---------- Fondo del area de trabajo ---------- */
body:not(.theme-dark) #cont-main-sys {
    background: linear-gradient(180deg, #eef3fb 0%, #f6f8fc 260px) !important;
}
#cont-main-sys > .tab-pane { padding-top: 6px; }

/* ---------- Breadcrumb (ruta de la opcion) ---------- */
#cont-main-sys .lv-breadcrumb { padding: 4px 2px 6px; }
#cont-main-sys .lv-breadcrumb li { margin: 0 2px 0 0; display: flex; align-items: center; }
#cont-main-sys .lv-breadcrumb li + li:before {
    content: '\203A'; margin: 0 6px 0 4px; font-size: 16px; line-height: 1; color: #94a3b8;
}
#cont-main-sys .lv-breadcrumb a {
    padding: 5px 12px; border-radius: 999px; text-shadow: none;
    font-size: 12px; font-weight: 600; transition: background .15s, color .15s;
}
#cont-main-sys .lv-breadcrumb a:before,
#cont-main-sys .lv-breadcrumb a:after { display: none !important; }
body:not(.theme-dark) #cont-main-sys .lv-breadcrumb a { background: transparent; color: #64748b; }
body:not(.theme-dark) #cont-main-sys .lv-breadcrumb a:hover { background: #e2e8f5; color: #1e293b; }
body:not(.theme-dark) #cont-main-sys .lv-breadcrumb li:first-child a { color: #4f46e5; }
body:not(.theme-dark) #cont-main-sys .lv-breadcrumb li:nth-last-child(1) a {
    background: #fff; color: #0f172a; box-shadow: 0 1px 3px rgba(15,23,42,.10);
}
body.theme-dark #cont-main-sys .lv-breadcrumb a { background: transparent; color: #a0aec0; }
body.theme-dark #cont-main-sys .lv-breadcrumb li:nth-last-child(1) a { background: #1e2535; color: #e2e8f0; }

/* ---------- Tarjetas (jarviswidget) ---------- */
#cont-main-sys .jarviswidget {
    border-radius: 16px !important;
    overflow: visible;
    margin-bottom: 18px;
}
body:not(.theme-dark) #cont-main-sys .jarviswidget {
    border: 1px solid #e6ebf3 !important;
    box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.06) !important;
    background: #fff;
}
#cont-main-sys .jarviswidget > header {
    height: 46px !important;
    border-radius: 16px 16px 0 0 !important;
    border: 0 !important;
}
body:not(.theme-dark) #cont-main-sys .jarviswidget > header {
    background: #fff !important;
    border-bottom: 1px solid #eef2f7 !important;
}
#cont-main-sys .jarviswidget > header > h2 {
    line-height: 46px !important; height: 46px;
    font-size: 15px !important; font-weight: 700 !important; letter-spacing: -.01em;
    margin-left: 6px;
}
body:not(.theme-dark) #cont-main-sys .jarviswidget > header > h2 { color: #0f172a !important; }
#cont-main-sys .jarviswidget > header > .widget-icon {
    width: 30px; height: 30px; line-height: 30px !important;
    margin: 8px 0 0 10px !important; padding: 0 !important;
    border-radius: 9px; text-align: center;
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    box-shadow: 0 4px 10px rgba(99,102,241,.25);
}
#cont-main-sys .jarviswidget > header > .widget-icon i,
#cont-main-sys .jarviswidget > header > .widget-icon .fa {
    color: #fff !important; font-size: 14px; line-height: 30px !important;
}
#cont-main-sys .jarviswidget > header .widget-toolbar,
#cont-main-sys .jarviswidget > header .jarviswidget-ctrls { height: 46px; line-height: 46px; border: 0 !important; }
#cont-main-sys .jarviswidget > header .jarviswidget-ctrls a { margin-top: 10px; }
#cont-main-sys .jarviswidget > div {
    border: 0 !important;
    border-radius: 0 0 16px 16px !important;
}
body:not(.theme-dark) #cont-main-sys .jarviswidget > div { background: #fff; }

/* ---------- Formularios ---------- */
body:not(.theme-dark) #cont-main-sys .smart-form .label {
    text-transform: uppercase; font-size: 11px; font-weight: 600;
    letter-spacing: .03em; color: #64748b;
}
#cont-main-sys .smart-form .input input,
#cont-main-sys .smart-form .select select,
#cont-main-sys .smart-form .textarea textarea,
#cont-main-sys .form-control,
#cont-main-sys .chosen-container-single .chosen-single,
#cont-main-sys .chosen-container-multi .chosen-choices {
    border-radius: 10px !important;
}
body:not(.theme-dark) #cont-main-sys .smart-form .input input,
body:not(.theme-dark) #cont-main-sys .smart-form .select select,
body:not(.theme-dark) #cont-main-sys .smart-form .textarea textarea,
body:not(.theme-dark) #cont-main-sys .form-control {
    border-color: #dbe3ee;
    transition: border-color .15s, box-shadow .15s;
}
body:not(.theme-dark) #cont-main-sys .smart-form .input input:focus,
body:not(.theme-dark) #cont-main-sys .smart-form .select select:focus,
body:not(.theme-dark) #cont-main-sys .smart-form .textarea textarea:focus,
body:not(.theme-dark) #cont-main-sys .form-control:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99,102,241,.15) !important;
}
/* iconos dentro de inputs: centrados con el nuevo radio */
#cont-main-sys .smart-form .input .icon-append { border-radius: 0 10px 10px 0; }
#cont-main-sys .smart-form .input .icon-prepend { border-radius: 10px 0 0 10px; }
#cont-main-sys .smart-form footer { border-radius: 0 0 16px 16px; }

/* ---------- Pestanas internas (nav-tabs.bordered) como segmentos ---------- */
#cont-main-sys .nav-tabs.bordered {
    border: 0 !important; display: inline-flex; flex-wrap: wrap; gap: 2px;
    padding: 4px; border-radius: 12px; margin-bottom: 10px;
}
body:not(.theme-dark) #cont-main-sys .nav-tabs.bordered { background: #e6ecf5; }
body.theme-dark #cont-main-sys .nav-tabs.bordered { background: #1e2535; }
#cont-main-sys .nav-tabs.bordered > li { margin: 0 !important; float: none; }
#cont-main-sys .nav-tabs.bordered > li > a {
    border: 0 !important; border-radius: 9px !important; margin: 0 !important;
    padding: 6px 14px; font-weight: 600; box-shadow: none !important;
}
body:not(.theme-dark) #cont-main-sys .nav-tabs.bordered > li > a { background: transparent; color: #475569; }
body:not(.theme-dark) #cont-main-sys .nav-tabs.bordered > li > a:hover { background: rgba(255,255,255,.6); }
body:not(.theme-dark) #cont-main-sys .nav-tabs.bordered > li.active > a,
body:not(.theme-dark) #cont-main-sys .nav-tabs.bordered > li.active > a:hover,
body:not(.theme-dark) #cont-main-sys .nav-tabs.bordered > li.active > a:focus {
    background: #fff !important; color: #2563eb !important;
    box-shadow: 0 1px 3px rgba(15,23,42,.12) !important;
}
#cont-main-sys .nav-tabs.bordered + .tab-content { border: 0 !important; }

/* ---------- Emitir conserva su propio estilo ---------- */
#cont-main-sys .gs-emitir .jarviswidget > header { height: 52px !important; }
#cont-main-sys .gs-emitir .jarviswidget > header > h2 {
    margin: 0 !important; height: auto; line-height: 52px !important;
}
#cont-main-sys .gs-emitir .jarviswidget > header > .widget-icon {
    width: 32px; height: 32px; line-height: normal !important;
    margin: 0 10px 0 12px !important; border-radius: 10px;
}
#cont-main-sys .gs-emitir .jarviswidget > header > .widget-icon i,
#cont-main-sys .gs-emitir .jarviswidget > header > .widget-icon .fa { line-height: normal !important; }
#cont-main-sys .gs-emitir .jarviswidget > header .widget-toolbar,
#cont-main-sys .gs-emitir .jarviswidget > header .jarviswidget-ctrls { height: auto; line-height: normal; }

/* ---------- Modales (todo el sistema) ---------- */
.modal .modal-content {
    border-radius: 18px !important; overflow: visible; /* GESMART: con hidden se cortaban las listas desplegables (chosen) */
    box-shadow: 0 24px 60px -12px rgba(15,23,42,.35) !important;
}
/* las esquinas redondeadas se conservan en cabecera y pie (antes las recortaba el overflow) */
.modal .modal-content > .modal-header:first-child { border-radius: 18px 18px 0 0; }
.modal .modal-content > .modal-footer:last-child { border-radius: 0 0 18px 18px; }
body:not(.theme-dark) .modal .modal-content { border: 0; }
body:not(.theme-dark) .modal-backdrop.in { opacity: .45; background: #0f172a; }
.modal .modal-header {
    display: flex; align-items: center; gap: 12px; padding: 14px 20px;
}
.modal .modal-header > * { order: 1; }
.modal .modal-header:before {
    content: '\f044'; font-family: FontAwesome; order: 0; flex: none;
    width: 34px; height: 34px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 15px;
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    box-shadow: 0 4px 10px rgba(99,102,241,.3);
}
.modal .modal-header:after { display: none; }
.modal .modal-header .modal-title,
.modal .modal-header > h4 {
    flex: 1; margin: 0; font-size: 17px; font-weight: 700 !important; letter-spacing: -.01em;
}
.modal .modal-header > .close {
    order: 2; float: none; margin: 0 !important; width: 32px; height: 32px;
    border-radius: 9px; font-size: 22px; line-height: 30px;
    opacity: 1; text-shadow: none; transition: background .15s;
}
body:not(.theme-dark) .modal .modal-header { background: #fff; border-bottom: 1px solid #eef2f7; }
body:not(.theme-dark) .modal .modal-header .modal-title,
body:not(.theme-dark) .modal .modal-header > h4 { color: #0f172a; }
body:not(.theme-dark) .modal .modal-header > .close { color: #64748b; }
body:not(.theme-dark) .modal .modal-header > .close:hover { background: #f1f5f9; color: #0f172a; }

.modal .modal-body .form-control,
.modal .smart-form .input input,
.modal .smart-form .select select,
.modal .smart-form .textarea textarea,
.modal .chosen-container-single .chosen-single,
.modal .chosen-container-multi .chosen-choices { border-radius: 10px !important; }
body:not(.theme-dark) .modal .modal-body .form-control,
body:not(.theme-dark) .modal .smart-form .input input,
body:not(.theme-dark) .modal .smart-form .select select,
body:not(.theme-dark) .modal .smart-form .textarea textarea { border-color: #dbe3ee; }
body:not(.theme-dark) .modal .modal-body .form-control:focus,
body:not(.theme-dark) .modal .smart-form .input input:focus,
body:not(.theme-dark) .modal .smart-form .select select:focus,
body:not(.theme-dark) .modal .smart-form .textarea textarea:focus {
    border-color: #6366f1 !important; box-shadow: 0 0 0 3px rgba(99,102,241,.15) !important;
}
body:not(.theme-dark) .modal .modal-body label.control-label,
body:not(.theme-dark) .modal .modal-body .control-label { color: #475569; font-weight: 600; }

.modal .modal-footer {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end;
    gap: 8px; padding: 12px 20px;
}
.modal .modal-footer:before, .modal .modal-footer:after { display: none; }
.modal .modal-footer .lv-modalrequired { margin-right: auto; }
.modal .modal-footer .btn {
    border-radius: 10px !important; padding: 8px 18px; font-weight: 600; margin: 0 !important;
}
.modal .modal-footer .btn-primary {
    border: 0; background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
    color: #fff !important; box-shadow: 0 6px 14px -6px rgba(79,70,229,.6) !important;
}
.modal .modal-footer .btn-primary:hover { filter: brightness(1.08); }
body:not(.theme-dark) .modal .modal-footer { background: #f8fafc; border-top: 1px solid #eef2f7; }
body:not(.theme-dark) .modal .modal-footer .lv-close {
    background: #fff !important; color: #475569 !important;
    border: 1px solid #dbe3ee !important; box-shadow: none !important;
}
body:not(.theme-dark) .modal .modal-footer .lv-close:hover { background: #f1f5f9 !important; }
body.theme-dark .modal .modal-footer .lv-close {
    background: transparent !important; color: #e8eaf6 !important;
    border: 1px solid rgba(255,255,255,.14) !important; box-shadow: none !important;
}

/* ---------- Mensajes emergentes (Tools.notify: smallBox / bigBox) ---------- */
.SmallBox {
    border: 0 !important; border-radius: 14px !important; padding: 12px 14px;
    box-sizing: border-box; width: 380px;
    display: flex; align-items: center; gap: 12px;
    background-image: linear-gradient(135deg, rgba(255,255,255,.16), rgba(0,0,0,.08)) !important;
    box-shadow: 0 14px 32px -10px rgba(15,23,42,.5) !important;
}
.SmallBox:hover { border: 0 !important; filter: brightness(1.05); }
.SmallBox .miniIcono {
    order: 0; flex: none; width: 38px; height: 38px !important; border-radius: 50%;
    background: rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.SmallBox .miniPic { position: static !important; }
.SmallBox .miniIcono:empty { display: none !important; }
.SmallBox .foto {
    position: static !important; order: 0; flex: none; width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.SmallBox .textoFull, .SmallBox .textoFoto {
    order: 1; float: none; width: auto; flex: 1; margin: 0 !important; padding: 0 !important; min-width: 0;
}
.SmallBox span {
    font-size: 11px !important; font-weight: 700 !important; letter-spacing: .06em !important;
    text-transform: uppercase; opacity: .85; margin: 0 0 2px !important;
}
.SmallBox p { font-size: 14px !important; font-weight: 600; line-height: 1.35; margin: 0 !important; word-wrap: break-word; }

.bigBox {
    border: 0 !important; border-radius: 16px !important; width: 360px; height: auto !important;
    padding: 14px 44px 14px 64px !important; box-sizing: border-box !important;
    background-image: linear-gradient(135deg, rgba(255,255,255,.16), rgba(0,0,0,.08)) !important;
    box-shadow: 0 18px 40px -12px rgba(15,23,42,.55) !important;
}
.bigBox span {
    font-size: 11px !important; font-weight: 700 !important; letter-spacing: .06em !important;
    text-transform: uppercase; opacity: .85; padding: 0 !important; margin: 0 0 3px;
}
.bigBox p { font-size: 14px !important; font-weight: 600; line-height: 1.4; margin: 0 !important; }
.bigBox .bigboxicon {
    top: 50% !important; left: 14px !important; transform: translateY(-50%);
    width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.22);
    font-size: 17px !important; display: flex; align-items: center; justify-content: center;
}
.bigBox .bigboxnumber { display: none; }
.bigBox .botClose {
    top: 50% !important; transform: translateY(-50%); right: 12px !important;
    width: 26px !important; height: 26px !important; border-radius: 8px;
    display: flex !important; align-items: center; justify-content: center;
    font-size: 14px !important; background: rgba(255,255,255,.18); opacity: .9;
}
#divMiniIcons .cajita { border-radius: 8px; box-shadow: 0 4px 10px -4px rgba(15,23,42,.5); }

/* ---------- Barra superior (solo modo claro) ---------- */
body:not(.theme-dark) #header {
    background: linear-gradient(90deg, #0f172a 0%, #1e1b4b 100%) !important;
    border-bottom: 1px solid rgba(255,255,255,.06) !important;
    box-shadow: 0 4px 18px -8px rgba(15,23,42,.6);
}
body:not(.theme-dark) #header .btn-header > :first-child > a,
body:not(.theme-dark) #header .header-dropdown-list > li > a.dropdown-toggle {
    background: rgba(255,255,255,.08) !important; border: 1px solid rgba(255,255,255,.10) !important;
    color: #e2e8f0 !important; border-radius: 10px !important; box-shadow: none !important;
    transition: background .15s;
}
body:not(.theme-dark) #header .btn-header > :first-child > a:hover,
body:not(.theme-dark) #header .header-dropdown-list > li > a.dropdown-toggle:hover { background: rgba(255,255,255,.16) !important; }
body:not(.theme-dark) #header .btn-header > :first-child > a i { color: #e2e8f0 !important; }
body:not(.theme-dark) #header #logout > :first-child > a {
    background: rgba(239,68,68,.18) !important; border-color: rgba(239,68,68,.35) !important;
}
body:not(.theme-dark) #header #logout > :first-child > a i { color: #fca5a5 !important; }
body:not(.theme-dark) #header .header-search > input[type=text] {
    background: rgba(255,255,255,.08) !important; border: 1px solid rgba(255,255,255,.12) !important;
    color: #f1f5f9 !important; border-radius: 10px !important;
}
body:not(.theme-dark) #header .header-search > input[type=text]::placeholder { color: #94a3b8; }
body:not(.theme-dark) #header .header-search > button { color: #cbd5e1 !important; }
@media (min-width: 992px) {
    body:not(.theme-dark) #header .header-dropdown-list > li > a.dropdown-toggle { padding: 4px 10px; }
}
@media (max-width: 991px) {
    body:not(.theme-dark) #header .header-dropdown-list > li > a.dropdown-toggle {
        background: transparent !important; border-color: transparent !important;
    }
}

/* ---------- Menu lateral (solo modo claro; el menu minimizado queda como esta) ---------- */
body:not(.theme-dark) #left-panel { background: #0f172a !important; border-right: 1px solid rgba(255,255,255,.05); }
body:not(.theme-dark) #left-panel .login-info { background: transparent !important; border-bottom: 1px solid rgba(255,255,255,.06) !important; }
body:not(.theme-dark) #left-panel .login-info a span { color: #e2e8f0 !important; font-weight: 600; }
body:not(.theme-dark) #left-panel nav ul { background: transparent !important; }
body:not(.theme-dark):not(.minified) #left-panel nav > ul > li { border: 0 !important; padding: 1px 8px; }
body:not(.theme-dark):not(.minified) #left-panel nav > ul > li > a {
    color: #cbd5e1 !important; border-radius: 10px; padding-top: 9px; padding-bottom: 9px;
    transition: background .15s, color .15s;
}
body:not(.theme-dark) #left-panel nav > ul > li > a i { color: #818cf8 !important; }
body:not(.theme-dark):not(.minified) #left-panel nav ul li a:hover { background: rgba(255,255,255,.06) !important; color: #fff !important; }
body:not(.theme-dark):not(.minified) #left-panel nav > ul > li.open > a { background: rgba(99,102,241,.16) !important; color: #fff !important; }
body:not(.theme-dark):not(.minified) #left-panel nav ul ul { margin: 2px 0 6px 18px !important; border-left: 1px solid rgba(148,163,184,.18); }
body:not(.theme-dark):not(.minified) #left-panel nav ul ul li a {
    color: #94a3b8 !important; border-radius: 8px; margin: 1px 4px 1px 6px; padding-left: 14px !important;
}
body:not(.theme-dark):not(.minified) #left-panel nav ul ul li a:before,
body:not(.theme-dark):not(.minified) #left-panel nav ul ul:before,
body:not(.theme-dark):not(.minified) #left-panel nav ul li:before { display: none !important; }
body:not(.theme-dark):not(.minified) #left-panel nav ul li.active > a {
    background: linear-gradient(135deg, #6366f1, #4f46e5) !important; color: #fff !important;
    box-shadow: 0 6px 14px -6px rgba(79,70,229,.7);
}

/* ---------- Movil ---------- */
@media (max-width: 767px) {
    #divSmallBoxes { left: 0 !important; right: 0 !important; }
    .SmallBox { width: auto !important; left: 12px !important; right: 12px !important; }
    .bigBox { width: auto !important; left: 12px !important; right: 12px !important; bottom: 16px !important; }
    #divMiniIcons { display: none !important; }
}
@media (max-width: 767px) {
    #cont-main-sys .jarviswidget { border-radius: 12px !important; margin-bottom: 12px; }
    #cont-main-sys .jarviswidget > header { border-radius: 12px 12px 0 0 !important; }
    #cont-main-sys .jarviswidget > div { border-radius: 0 0 12px 12px !important; }
    #cont-main-sys .jarviswidget > header > h2 { font-size: 14px !important; }
}

/* ---------- Cabecera en celular: logo + botones en UNA sola fila ----------
   Antes, en pantallas angostas (< ~400px) los botones de la derecha no cabian al lado del logo,
   bajaban a una segunda linea fuera de la cabecera (49px) y quedaban encima de las pestanas. */
@media (max-width: 767px) {
    #header { display: flex !important; flex-wrap: nowrap; align-items: flex-start; }
    #header > #logo-group { float: none !important; flex: 1 1 auto; min-width: 0; width: auto !important; overflow: hidden; }
    #header > #logo-group #logo { width: auto !important; max-width: 100%; }
    #header > #logo-group #logo img { max-width: 100%; height: auto; max-height: 36px; object-fit: contain; }
    #header > .pull-right { float: none !important; flex: 0 0 auto; margin-left: auto; white-space: nowrap; }
}

/* =====================================================================================
   GESMART limpieza visual (2026-11-28): reglas comunes para todas las pantallas.
   Un color por tipo de accion: principal indigo, secundaria blanca, borrar roja.
   Solo modo claro (el modo oscuro ya tiene sus colores en dark_theme.css).
   ===================================================================================== */

/* Accion principal (Nuevo, Grabar, Guardar...): indigo en todo el sistema.
   Antes, una hoja de terceros (vendors.bundle.css) la pintaba rosada (#b56a9f) fuera de las ventanas. */
body:not(.theme-dark) .btn-primary,
body:not(.theme-dark) .btn-primary:focus,
body:not(.theme-dark) .btn.bg-color-magenta {
    background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
    border-color: #4f46e5 !important; color: #fff !important;
}
body:not(.theme-dark) .btn-primary:hover,
body:not(.theme-dark) .btn-primary:active,
body:not(.theme-dark) .btn.bg-color-magenta:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca) !important; border-color: #4338ca !important; color: #fff !important;
}
body:not(.theme-dark) .btn-primary[disabled], body:not(.theme-dark) .btn-primary.disabled { opacity: .55; }

/* Refrescar de las grillas: accion secundaria (blanco) */
body:not(.theme-dark) [id^="btnRefresh_"] {
    background: #fff !important; color: #475569 !important; border: 1px solid #cbd5e1 !important; box-shadow: none !important;
}
body:not(.theme-dark) [id^="btnRefresh_"]:hover { background: #f1f5f9 !important; color: #0f172a !important; }

/* Ayuda (?) de las ventanas: neutro (el rojo parecia una alerta) */
body:not(.theme-dark) .btn.lv-help,
body:not(.theme-dark) .btn.btn-orange:has(> .fa-question) {
    background: #fff !important; color: #475569 !important; border: 1px solid #cbd5e1 !important; box-shadow: none !important;
}
body:not(.theme-dark) .btn.lv-help:hover, body:not(.theme-dark) .btn.btn-orange:has(> .fa-question):hover { background: #f1f5f9 !important; color: #0f172a !important; }

/* Aviso de campos obligatorios: discreto (antes caja roja en cursiva desde que se abre el formulario) */
.lv-modalrequired, .lv-requided-require {
    background: none !important; border: 0 !important; width: auto !important; height: auto !important;
    padding: 0 !important; font-style: normal !important; font-weight: 500 !important; font-size: 12px; margin-top: 0 !important;
}
.lv-modalrequired:before, .lv-requided-require:before { content: '* Campos obligatorios' !important; color: #64748b !important; }
body.theme-dark .lv-modalrequired:before, body.theme-dark .lv-requided-require:before { color: #94a3b8 !important; }

/* Titulo de la tarjeta: nombre real de la pantalla (lo pone gs-ui.js) */
#cont-main-sys .jarviswidget > header > h2 .gs-titulo { font-weight: 700; }

/* Filtros de las grillas (Estado, Si/No): que se lea "Todos" y no "-T" */
#cont-main-sys select.filter1 { min-width: 82px; padding-left: 6px !important; padding-right: 2px !important; text-overflow: ellipsis; }

/* Buscadores (autocompletar): campo blanco con lupa */
body:not(.theme-dark) .acontainer > input.form-control {
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 10px center !important;
    padding-left: 34px !important; border: 1px solid #cbd5e1 !important; color: #0f172a !important;
}
body:not(.theme-dark) .acontainer > input.form-control:focus { border-color: #6366f1 !important; box-shadow: 0 0 0 3px rgba(99,102,241,.15) !important; }
body:not(.theme-dark) .adropdown { border-radius: 10px; }
body:not(.theme-dark) .adropdown th { background: #f1f5f9 !important; color: #475569 !important; }
body:not(.theme-dark) .adropdown table { border-bottom-color: #c7d2fe !important; }
body:not(.theme-dark) .adropdown tr:hover, body:not(.theme-dark) .adropdown .selectedxx { background: #eef2ff !important; color: #1e1b4b !important; }

/* Cajas de detalle vacias (antes franja turquesa sin texto): aviso suave (gs-ui.js marca .gs-vacia) */
.alert.alert-success.gs-vacia {
    background: #f8fafc !important; border: 1px dashed #cbd5e1 !important; color: #64748b !important;
    text-align: center; padding: 10px !important; font-size: 13px; min-height: 0;
}
.alert.alert-success.gs-vacia:before { content: 'Aún no agregaste productos.'; }
body.theme-dark .alert.alert-success.gs-vacia { background: transparent !important; border-color: #334155 !important; color: #94a3b8 !important; }

/* Enlaces de accion sueltos dentro de formularios ("+Agregar", "Manual"): sin subrayado, en indigo */
body:not(.theme-dark) .modal .modal-body a.txt-color-orange,
body:not(.theme-dark) .modal .modal-body a[style*="orange"] { color: #4f46e5 !important; text-decoration: none !important; font-weight: 600; }

/* Respuesta de SUNAT en las grillas de CPE (Tools.sunatRespuesta) */
.gs-sunat { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 99px; white-space: nowrap; cursor: help; }
.gs-sunat.ok { background: #dcfce7; color: #166534; }
.gs-sunat.obs { background: #fef3c7; color: #92400e; }
.gs-sunat.proc { background: #e0e7ff; color: #3730a3; }
.gs-sunat.mal { background: #fee2e2; color: #991b1b; }
.gs-sunat.err { background: #ffedd5; color: #9a3412; }

/* Productos y Servicios: stock por sucursal compacto y Estado con su boton (GESMART ux 2026-11-28) */
.gs-stock { display: flex; align-items: flex-start; gap: 8px; text-align: left; }
.gs-stock-tot { font-size: 15px; min-width: 34px; text-align: right; color: #0f172a; line-height: 1.35; }
.gs-stock-suc { flex: 1; font-size: 12px; line-height: 1.55; color: #475569; }
.gs-stock-suc > span { display: inline-block; white-space: nowrap; margin-right: 10px; }
.gs-stock-suc b { color: #0f172a; }
.gs-stock .gs-neg, .gs-stock-tot.gs-neg { color: #b91c1c !important; }
.gs-stock .gs-cero, .gs-stock-tot.gs-cero { color: #94a3b8 !important; font-weight: 500; }
.gs-stock-add { flex: none; }
.gs-stock-add .btn { padding: 1px 7px !important; font-size: 11px !important; line-height: 1.5 !important; border-radius: 6px !important; }
.gs-estado { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.gs-estado ._est_btn .btn { padding: 2px 8px !important; font-size: 11px !important; border-radius: 6px !important; }
body:not(.theme-dark) .gs-estado ._est_btn .btn-danger { background: #fff !important; color: #b91c1c !important; border: 1px solid #fecaca !important; }
body:not(.theme-dark) .gs-estado ._est_btn .btn-primary { background: #fff !important; color: #4338ca !important; border: 1px solid #c7d2fe !important; }
body.theme-dark .gs-stock-tot, body.theme-dark .gs-stock-suc b { color: #e2e8f0; }
body.theme-dark .gs-stock-suc { color: #94a3b8; }

/* =====================================================================================
   Cotizacion, Orden de Pedido y Nota de Pedido (.gs-emision): mismas piezas que Emitir (GESMART ux 2026-11-28)
   ===================================================================================== */
/* buscador grande */
.gs-emision [id$="d_responsive"] > section:first-child { padding: 10px 12px 8px !important; }
body:not(.theme-dark) .gs-emision .acontainer > input[id$="txt_search_producto_auto"],
body:not(.theme-dark) .gs-emision .acontainer > input[id$="txt_search_producto_auto"]:focus {
    height: 46px !important; border-radius: 12px !important; border: 0 !important; font-size: 15px !important; font-weight: 700 !important;
    background: linear-gradient(135deg, #4f46e5, #2563eb) !important; color: #fff !important; padding-left: 16px !important;
    box-shadow: 0 8px 18px -10px rgba(79,70,229,.8) !important;
}
body:not(.theme-dark) .gs-emision .acontainer > input[id$="txt_search_producto_auto"]::placeholder { color: rgba(255,255,255,.85) !important; }
/* Manual / Precios como tarjetas */
.gs-emision [id$="btn_man"] { padding: 10px 6px 0 !important; display: flex; gap: 6px; flex-wrap: wrap; }
.gs-emision [id$="btn_man"] .btn, .gs-emision [id$="btn_man"] a {
    display: inline-flex !important; align-items: center; gap: 6px; height: 46px; padding: 0 14px !important;
    border-radius: 12px !important; font-weight: 700 !important; font-size: 13px !important; text-decoration: none !important;
}
body:not(.theme-dark) .gs-emision [id$="btn_man"] .btn, body:not(.theme-dark) .gs-emision [id$="btn_man"] a {
    background: #fff !important; color: #4338ca !important; border: 1px solid #e2e8f0 !important; box-shadow: none !important;
}
body:not(.theme-dark) .gs-emision [id$="btn_man"] .btn:hover, body:not(.theme-dark) .gs-emision [id$="btn_man"] a:hover { background: #eef2ff !important; }
/* banda de resumen (la agrega gs-ui.js) */
.gs-emision .gs-banda {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px;
    background: #0f172a; color: #cbd5e1; border-radius: 0 0 14px 14px; font-size: 13px;
}
.gs-emision .gs-banda b { color: #fff; }
.gs-emision .gs-banda-tot small { font-size: 11px; letter-spacing: .08em; margin-right: 8px; }
.gs-emision .gs-banda-tot b { color: #34d399 !important; font-size: 24px; font-weight: 800; }
/* pago: verde de Emitir */
.gs-emision .lv-container-green {
    background: linear-gradient(135deg, #059669, #10b981) !important; border: 0 !important; border-radius: 12px !important; padding: 6px 4px !important;
}
.gs-emision .lv-container-green input[id$="txt_pago"] { background: transparent !important; border: 0 !important; color: #fff !important; font-weight: 800 !important; font-size: 28px !important; }
.gs-emision .lv-container-green label.label { color: #fff !important; font-weight: 700; letter-spacing: .04em; }
.gs-emision .lv-container-green #mas_pago, .gs-emision [id$="mas_pago"] { color: #fff; }
/* vuelto: naranja como Emitir */
body:not(.theme-dark) .gs-emision input[id$="txt_vuelto"] {
    background: #fff7ed !important; border: 2px solid #fdba74 !important; border-radius: 10px !important; color: #c2410c !important; font-weight: 800 !important; font-size: 26px !important; height: 48px !important;
}
/* Grabar grande */
.gs-emision [id$="tool_btn"] .btn-primary, .gs-emision [id$="tool_btn"] .btn[id*="GRB"] {
    min-width: 240px; min-height: 56px; margin-left: 8px; border-radius: 14px !important; font-size: 24px !important; font-weight: 800 !important;
    box-shadow: 0 10px 20px -8px rgba(79,70,229,.7) !important;
}
/* totales como texto */
.gs-emision .well { background: #fff !important; border: 1px solid #e2e8f0 !important; border-radius: 14px !important; box-shadow: none !important; }
body:not(.theme-dark) .gs-emision .well input.lv-disabled {
    background: transparent !important; border: 0 !important; box-shadow: none !important; font-weight: 700; color: #0f172a !important; text-align: right;
}
body:not(.theme-dark) .gs-emision .well input[id$="txt_total"] { font-size: 18px !important; color: #4338ca !important; }
body.theme-dark .gs-emision .well { background: #1e293b !important; border-color: #334155 !important; }
.gs-emision .lv-container-green label:not(.select):not(.input), .gs-emision .lv-container-green .checkbox { color: #fff !important; }
.gs-emision .lv-container-green .chosen-container span, .gs-emision .lv-container-green select { color: #0f172a !important; }
.gs-emision [id$="tool_btn"].text-center .btn-primary { width: 100%; min-height: 64px; margin-left: 0; } /* Orden de Pedido: Grabar en su columna */
.gs-emision [id$="tool_btn"] { text-align: right; }
.gs-emision [id$="tool_btn"] .btn:not(.btn-primary) { min-height: 56px; border-radius: 14px !important; padding: 0 22px !important; font-weight: 700; vertical-align: middle; }
