/* v180.6.24.4 - Unified Enterprise Dark: hard fix for active admin/secretaria/directivo/superadmin screens.
   Scope: removes legacy white tables/inputs/cards even when inline or Bootstrap styles load late. */
:root{--ue-bg:#07111f;--ue-panel:#0d1b31;--ue-panel-2:#10213b;--ue-panel-3:#132b4d;--ue-head:#081326;--ue-text:#f4f9ff;--ue-muted:#bdd0eb;--ue-line:rgba(147,197,253,.34);--ue-line-soft:rgba(147,197,253,.18);--ue-blue:#3b82f6;--ue-blue-2:#2563eb;--ue-red:#ef4444;--ue-green:#22c55e;--ue-amber:#f59e0b}
html,body{background:radial-gradient(circle at top left,rgba(37,99,235,.16),transparent 36rem),linear-gradient(180deg,#06101d,#091526 45%,#06101d)!important;color:var(--ue-text)!important;color-scheme:dark!important;}
body,.page,.container,.admin-panel,.admin-view,.sec-shell,.cur-shell,.ae-shell,.sa-main,.dir-shell{min-height:100%;}
body .container,body main.container,body .page,body .admin-panel,body .admin-view,body .sec-shell,body .cur-shell,body .ae-shell,body .content,body .wrap,body .sa-main{max-width:1280px!important;width:min(1280px,calc(100vw - 24px))!important;margin-left:auto!important;margin-right:auto!important;box-sizing:border-box!important;}
body .page,body .sa-main{padding-left:0!important;padding-right:0!important;}
/* Text contrast */
html body,html body p,html body div,html body span,html body li,html body td,html body small{color:var(--ue-muted)!important;text-shadow:none!important;}
html body h1,html body h2,html body h3,html body h4,html body h5,html body h6,html body label,html body th,html body strong,html body b{color:var(--ue-text)!important;-webkit-text-fill-color:var(--ue-text)!important;}
html body a:not(.btn):not(.btn-secondary):not(.btn-danger):not(.sa-btn):not(.mode-btn){color:#9cc9ff!important;-webkit-text-fill-color:#9cc9ff!important;}
html body .muted,html body .small,html body .desc,html body .help,html body .sa-muted{color:var(--ue-muted)!important;-webkit-text-fill-color:var(--ue-muted)!important;}
/* Cards/panels including superadmin themed variables */
html body .card,html body .panel-card,html body .kpi,html body .kpi-box,html body .hero-side,html body .box,html body .section,html body .notice,html body .alert,html body .admin-card,html body .report-card,html body .brand-card,html body .sa-card,html body .sa-panel,html body .sa-check,html body .dir-card,html body .dir-panel,html body .table-wrap,html body .table-responsive,html body .mobile-table-scroll{background:linear-gradient(180deg,rgba(15,30,52,.98),rgba(7,17,31,.99))!important;color:var(--ue-text)!important;border:1px solid var(--ue-line-soft)!important;box-shadow:0 18px 44px rgba(0,0,0,.28)!important;}
html body .hero-main,html body .audit-hero,html body .brand-hero,html body .curriculum-hero{background:linear-gradient(135deg,#10254a,#1d4ed8 58%,#3b82f6)!important;color:#fff!important;border:1px solid rgba(147,197,253,.36)!important;box-shadow:0 18px 46px rgba(37,99,235,.25)!important;}
html body .hero-main *,html body .audit-hero *,html body .brand-hero *{color:#fff!important;-webkit-text-fill-color:#fff!important;}
/* Any explicit white/light legacy background: only inside app chrome, not icons/images. */
html body [style*="background:#fff"],html body [style*="background: #fff"],html body [style*="background:white"],html body [style*="background: white"],html body [style*="background-color:#fff"],html body [style*="background-color: #fff"],html body [style*="background-color:white"],html body [style*="background-color: white"],html body .bg-white,html body .table-light,html body .list-group-item{background:var(--ue-panel)!important;color:var(--ue-text)!important;-webkit-text-fill-color:var(--ue-text)!important;border-color:var(--ue-line-soft)!important;}
/* Tables: guarantee no white tbody/tr/td and no invisible text. */
html body table,html body .table,html body .sa-table,html body .cm-table{width:100%;border-collapse:separate!important;border-spacing:0!important;background:var(--ue-panel)!important;color:var(--ue-text)!important;border:1px solid var(--ue-line)!important;border-radius:16px!important;overflow:hidden!important;}
html body thead,html body table thead,html body .table thead,html body .sa-table thead{background:var(--ue-head)!important;}
html body table thead tr,html body .table thead tr,html body .sa-table thead tr{background:var(--ue-head)!important;}
html body th,html body table th,html body .table th,html body .sa-table th{background:var(--ue-head)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-bottom:1px solid var(--ue-line)!important;font-size:12px!important;text-transform:uppercase!important;letter-spacing:.035em!important;font-weight:950!important;white-space:nowrap!important;padding:12px 13px!important;}
html body tbody,html body table tbody,html body .table tbody,html body .sa-table tbody{background:var(--ue-panel)!important;}
html body tr,html body table tr,html body .table tr,html body .sa-table tr{background:var(--ue-panel)!important;color:var(--ue-text)!important;}
html body tbody tr:nth-child(odd),html body table tbody tr:nth-child(odd),html body .table tbody tr:nth-child(odd),html body .sa-table tbody tr:nth-child(odd){background:#0b1a31!important;}
html body tbody tr:nth-child(even),html body table tbody tr:nth-child(even),html body .table tbody tr:nth-child(even),html body .sa-table tbody tr:nth-child(even){background:#10213b!important;}
html body tbody tr:hover,html body table tbody tr:hover,html body .table tbody tr:hover,html body .sa-table tbody tr:hover{background:#17345d!important;}
html body td,html body table td,html body .table td,html body .sa-table td{background:transparent!important;color:#edf6ff!important;-webkit-text-fill-color:#edf6ff!important;border-bottom:1px solid var(--ue-line-soft)!important;border-color:var(--ue-line-soft)!important;padding:12px 13px!important;vertical-align:middle!important;opacity:1!important;text-shadow:none!important;}
html body td *,html body table td *,html body .table td *,html body .sa-table td *{color:inherit!important;-webkit-text-fill-color:inherit!important;text-shadow:none!important;opacity:1!important;}
html body td .muted,html body td small,html body .table td .muted{color:#c6d8f2!important;-webkit-text-fill-color:#c6d8f2!important;}
/* Forms */
html body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),html body select,html body textarea,html body .input,html body .inputx,html body .selectx,html body .form-control,html body .form-select,html body .brand-input,html body .sa-field input,html body .sa-field select{background:#0a172b!important;color:#f8fbff!important;-webkit-text-fill-color:#f8fbff!important;border:1px solid rgba(147,197,253,.56)!important;border-radius:12px!important;box-shadow:inset 0 0 0 1px rgba(2,6,23,.45),0 8px 18px rgba(0,0,0,.16)!important;outline:none!important;caret-color:#93c5fd!important;color-scheme:dark!important;min-height:38px;}
html body input:not([type="checkbox"]):not([type="radio"]):focus,html body select:focus,html body textarea:focus,html body .input:focus,html body .inputx:focus,html body .selectx:focus{border-color:#60a5fa!important;box-shadow:0 0 0 3px rgba(59,130,246,.24),0 10px 22px rgba(0,0,0,.24)!important;}
html body input::placeholder,html body textarea::placeholder{color:#99afd0!important;-webkit-text-fill-color:#99afd0!important;opacity:1!important;}
html body input[readonly],html body input[disabled],html body select[disabled],html body textarea[readonly]{background:#111f36!important;color:#b9c9e2!important;-webkit-text-fill-color:#b9c9e2!important;opacity:1!important;}
html body option{background:#0a172b!important;color:#f8fbff!important;}
html body input[type="checkbox"],html body input[type="radio"]{accent-color:var(--ue-blue)!important;background:#0a172b!important;border-color:#60a5fa!important;}
/* Buttons and badges */
html body .btn,html body button.btn,html body a.btn,html body .sa-btn,html body button.sa-btn{background:linear-gradient(135deg,var(--ue-blue),var(--ue-blue-2))!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:1px solid rgba(147,197,253,.35)!important;border-radius:12px!important;font-weight:900!important;text-decoration:none!important;box-shadow:0 10px 24px rgba(37,99,235,.25)!important;}
html body .btn-secondary,html body a.btn-secondary,html body button.btn-secondary,html body .sa-btn.secondary{background:#111f36!important;color:#f8fbff!important;-webkit-text-fill-color:#f8fbff!important;border:1px solid rgba(147,197,253,.38)!important;border-radius:12px!important;font-weight:900!important;text-decoration:none!important;}
html body .btn-danger,html body button.btn-danger,html body .sa-btn.danger{background:linear-gradient(135deg,#ef4444,#b91c1c)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:1px solid rgba(248,113,113,.48)!important;}
html body .badge,html body .pill,html body .chip,html body .status,html body .sa-badge{background:rgba(59,130,246,.17)!important;color:#dbeafe!important;-webkit-text-fill-color:#dbeafe!important;border:1px solid rgba(147,197,253,.35)!important;border-radius:999px!important;}
html body .ok,html body .badge-ok,html body .sa-badge.ok{background:rgba(34,197,94,.14)!important;color:#bbf7d0!important;-webkit-text-fill-color:#bbf7d0!important;border-color:rgba(34,197,94,.35)!important;}
html body .warn,html body .badge-warn,html body .sa-badge.warn{background:rgba(245,158,11,.15)!important;color:#fde68a!important;-webkit-text-fill-color:#fde68a!important;border-color:rgba(245,158,11,.38)!important;}
html body .danger,html body .badge-danger,html body .sa-badge.danger{background:rgba(239,68,68,.16)!important;color:#fecaca!important;-webkit-text-fill-color:#fecaca!important;border-color:rgba(248,113,113,.42)!important;}
/* Navigation/chrome */
html body .topbar,html body nav,html body .nav,html body .mode-switch,html body .sa-side{background:rgba(7,17,31,.96)!important;border-color:var(--ue-line-soft)!important;box-shadow:0 12px 34px rgba(0,0,0,.26)!important;}
html body .sa-side nav a{color:#dbeafe!important}.sa-side nav a:hover,.sa-side nav a.active{background:linear-gradient(135deg,#4f46e5,#2563eb)!important;color:#fff!important;}
/* Scroll wrappers/mobile */
html body .table-responsive,html body .mobile-table-scroll,html body .table-wrap,html body [style*="overflow:auto"],html body [style*="overflow: auto"]{overflow:auto!important;-webkit-overflow-scrolling:touch!important;scrollbar-color:rgba(148,163,184,.65) rgba(2,6,23,.75)!important;}
@media(max-width:900px){body .container,body main.container,body .page,body .admin-panel,body .admin-view,body .sec-shell,body .cur-shell,body .ae-shell,body .sa-main{width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important}.grid,.grid.cols-2,.hero,.kpis,.kpi-row,.create-grid,.rowx,.brand-grid,.sa-grid,.sa-form-row,.sa-checks{grid-template-columns:1fr!important}html body table,html body .table,html body .sa-table{min-width:760px!important}html body th,html body td{font-size:12px!important;padding:10px 11px!important}html body input:not([type="checkbox"]):not([type="radio"]),html body select,html body textarea,html body button,html body .btn,html body .btn-secondary{min-height:42px!important}}
@media(max-width:560px){body .hero-main h1,body h1{font-size:24px!important}body .hero-main,body .hero-side,body .card,body .panel-card{padding:15px!important;border-radius:18px!important}html body .btn,html body .btn-secondary,html body .btn-danger{white-space:normal!important}}
