/* =====================================================
   SGI MUNICIPAL
   H. AYUNTAMIENTO DE ATOTONILCO DE TULA
   ===================================================== */

/* =========================
   FONDO INSTITUCIONAL
   ========================= */

html,
body {
    min-height: 100%;

background-image: url("D:\xampp_server01\htdocs\SGI_V5\images\FondoSGI.jpg") !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-attachment: fixed !important;
}

/* Capa ligera para mejorar lectura */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.10);
    pointer-events: none;
    z-index: 0;
}

/* =========================
   CONTENEDORES
   ========================= */

.main-container,
.main-content,
.page-content {
    background: transparent !important;
    position: relative;
    z-index: 1;
}

/* =========================
   BARRA SUPERIOR
   ========================= */

.navbar,
.navbar-default,
#navbar-container,
.navbar-container {
    background: #6A1238 !important;
    border: none !important;
}

/* =========================
   MENÚ LATERAL
   ========================= */

.sidebar {
    background: rgba(255,255,255,0.92) !important;
    backdrop-filter: blur(4px);
}

.sidebar .nav-list > li > a {
    color: #444 !important;
    font-weight: 500;
}

.sidebar .nav-list > li.active > a {
    background: #6A1238 !important;
    color: #fff !important;
}

.sidebar .nav-list > li:hover > a {
    background: #B08D57 !important;
    color: #fff !important;
}

/* =========================
   WIDGETS PRINCIPALES
   ========================= */

.widget-box {
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 20px rgba(0,0,0,.18) !important;
    background: rgba(255,255,255,0.95) !important;
}

.widget-header {
    background: #6A1238 !important;
    color: #fff !important;
}

.widget-header h4,
.widget-header h5,
.widget-header h6 {
    color: #fff !important;
}

/* =========================
   BOTONES
   ========================= */

.btn-primary,
.btn.btn-primary,
button[type="submit"] {
    background: #B08D57 !important;
    border-color: #B08D57 !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn.btn-primary:hover,
button[type="submit"]:hover {
    background: #8C6B3D !important;
    border-color: #8C6B3D !important;
}

/* =========================
   TABLAS
   ========================= */

.table thead th {
    background: #6A1238 !important;
    color: #fff !important;
}

/* =========================
   FORMULARIOS
   ========================= */

input:focus,
textarea:focus,
select:focus {
    border-color: #B08D57 !important;
    box-shadow: 0 0 6px rgba(176,141,87,.4) !important;
}

/* =========================
   LOGIN
   ========================= */

.login-layout,
.login-container {
    background: transparent !important;
}

.login-container {
    margin-top: 20px !important;
}

.login-container .widget-box {
    background: rgba(255,255,255,0.96) !important;
    border-radius: 15px !important;
    box-shadow: 0 15px 35px rgba(0,0,0,.25) !important;
}

.login-container .widget-main {
    background: transparent !important;
}

/* =========================
   LOGO LOGIN
   ========================= */

.login-layout img,
img[src*="mantis_logo"],
img[src*="logo_sgi"] {
    max-width: 250px !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto 20px auto !important;
}

/* =========================
   FOOTER
   ========================= */

.footer,
.footer-content {
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(4px);
}

/* =========================
   ENLACES
   ========================= */

a {
    color: #6A1238;
}

a:hover {
    color: #B08D57;
}

/* =========================
   BUSCADOR
   ========================= */

.nav-search-input {
    border-color: #B08D57 !important;
}

/* =========================
   EFECTO CRISTAL
   ========================= */

.breadcrumbs,
.profile-info-row,
.profile-user-info-striped {
    background: rgba(255,255,255,0.90) !important;
}

/* =========================
   CORRECCIÓN FOOTER SGI
   ========================= */

.footer,
.footer-content,
.footer .footer-inner,
.footer .footer-content {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    clear: both !important;
    background: rgba(255,255,255,0.95) !important;
}

.footer .col-md-6,
.footer .col-xs-12 {
    width: auto !important;
    max-width: none !important;
    float: none !important;
    display: block !important;
}

.footer img,
.footer-content img,
img[src*="mantis_logo"] {
    max-width: 180px !important;
    height: auto !important;
    float: right !important;
    margin: 0 20px 10px 20px !important;
}

.footer small,
.footer strong {
    display: inline !important;
    white-space: normal !important;
    line-height: 1.5 !important;
}

.footer br {
    display: block !important;
}

/* =========================
   SGI PRO - DEMOSTRACIÓN
   ========================= */

/* Limpieza visual general */
body {
    font-family: "Segoe UI", Arial, sans-serif !important;
}

/* Barra superior más institucional */
.navbar,
.navbar-default,
.navbar-container {
    background: linear-gradient(90deg, #6A1238, #7B153F) !important;
    box-shadow: 0 3px 12px rgba(0,0,0,.25) !important;
}

/* Menú superior */
.navbar .navbar-brand,
.navbar a {
    color: #fff !important;
    font-weight: 600 !important;
}

/* Botones dorados */
.btn,
.btn-primary,
.btn-info,
button[type="submit"] {
    border-radius: 8px !important;
    font-weight: 600 !important;
}

.btn-primary,
.btn-info,
button[type="submit"] {
    background: linear-gradient(135deg, #B08D57, #D1AE6C) !important;
    border-color: #B08D57 !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-info:hover,
button[type="submit"]:hover {
    background: linear-gradient(135deg, #8C6B3D, #B08D57) !important;
}

/* Menú lateral más moderno */
.sidebar {
    background: rgba(255,255,255,.96) !important;
    box-shadow: 4px 0 16px rgba(0,0,0,.10) !important;
}

.sidebar .nav-list > li > a {
    border-radius: 0 18px 18px 0 !important;
    margin: 4px 6px 4px 0 !important;
    color: #444 !important;
    font-weight: 600 !important;
}

.sidebar .nav-list > li.active > a,
.sidebar .nav-list > li:hover > a {
    background: linear-gradient(90deg, #6A1238, #8A1B4A) !important;
    color: #fff !important;
}

/* Tarjetas / paneles */
.widget-box {
    border: 1px solid rgba(106,18,56,.20) !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,.15) !important;
    overflow: hidden !important;
}

.widget-header {
    background: linear-gradient(90deg, #6A1238, #8A1B4A) !important;
    color: #fff !important;
    min-height: 42px !important;
}

.widget-header h4,
.widget-header h5 {
    color: #fff !important;
    font-weight: 700 !important;
}

/* Tablas */
.table,
.table-bordered {
    background: rgba(255,255,255,.98) !important;
    border-radius: 10px !important;
}

.table thead th {
    background: #6A1238 !important;
    color: #fff !important;
    font-weight: 700 !important;
}

.table tbody tr:hover {
    background: rgba(176,141,87,.12) !important;
}

/* Login más presentable */
.login-container .widget-box {
    border-radius: 18px !important;
    box-shadow: 0 18px 45px rgba(0,0,0,.28) !important;
}

.login-container input {
    border-radius: 8px !important;
}

/* Buscador */
.nav-search-input,
input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
    border-radius: 7px !important;
    border: 1px solid rgba(176,141,87,.65) !important;
}

/* Footer */
.footer,
.footer-content {
    border-top: 3px solid #B08D57 !important;
    background: rgba(255,255,255,.96) !important;
}

/* Alertas */
.alert {
    border-radius: 10px !important;
    border-left: 5px solid #B08D57 !important;
}

/* Migajas / ruta */
.breadcrumbs {
    background: rgba(255,255,255,.92) !important;
    border-bottom: 1px solid rgba(106,18,56,.15) !important;
}

/* Pestañas administración */
.nav-tabs > li > a {
    border-radius: 8px 8px 0 0 !important;
    font-weight: 600 !important;
}

.nav-tabs > li.active > a {
    background: #fff !important;
    color: #6A1238 !important;
    border-top: 3px solid #B08D57 !important;
}

/* Texto de títulos */
h1, h2, h3, h4 {
    color: #6A1238;
}
/* ==========================
   SGI - ELIMINAR AZUL
   ========================== */

/* Enlaces */
a,
a:visited,
a:focus {
    color: #B08D57 !important;
}

a:hover {
    color: #D4AF37 !important;
}

/* Iconos */
.fa,
.glyph-icon,
[class*="fa-"] {
    color: #B08D57 !important;
}

/* Encabezados de tablas */
.table thead th,
.table-header {
    background: #6A1238 !important;
    color: #D4AF37 !important;
}

/* Paginación */
.pagination > li > a,
.pagination > li > span {
    color: #B08D57 !important;
}

/* Tabs */
.nav-tabs > li > a {
    color: #B08D57 !important;
}

.nav-tabs > li.active > a {
    color: #6A1238 !important;
    border-top: 3px solid #D4AF37 !important;
}

/* Menú lateral iconos */
.sidebar .nav-list > li > a .menu-icon {
    color: #B08D57 !important;
}

.sidebar .nav-list > li.active > a .menu-icon,
.sidebar .nav-list > li:hover > a .menu-icon {
    color: #FFD700 !important;
}

/* Filtros */
.widget-header .badge,
.label,
.badge {
    background: #B08D57 !important;
    color: #fff !important;
}

/* Números de incidencias */
.bug-id,
.bugnote-link,
.issue-link {
    color: #B08D57 !important;
}

/* Breadcrumb */
.breadcrumb > li > a {
    color: #B08D57 !important;
}

/* Usuario conectado */
.user-info,
.user-menu {
    color: #D4AF37 !important;
}

/* Botones exportar */
.btn-white {
    border-color: #B08D57 !important;
    color: #B08D57 !important;
}

.btn-white:hover {
    background: #B08D57 !important;
    color: #fff !important;
}

/* =====================================
   SGI - ELIMINAR ÚLTIMO AZUL ACE
   ===================================== */

/* Panel de control */
.sidebar .nav-list > li.active > a,
.sidebar .nav-list > li.active > a:visited,
.sidebar .nav-list > li.active > a:hover {
    color: #ffffff !important;
}

/* Todo enlace dentro del menú lateral */
.sidebar .nav-list > li > a,
.sidebar .nav-list > li > a span {
    color: #444444 !important;
}

.sidebar .nav-list > li.active > a span,
.sidebar .nav-list > li:hover > a span {
    color: #ffffff !important;
}

/* Botones blancos */
.btn-white,
.btn-white:visited,
.btn-white:hover,
.btn-white:focus {
    color: #B08D57 !important;
    border-color: #B08D57 !important;
}

/* Botones "Ver incidencias" */
.btn,
.btn-default,
.btn-white {
    color: #B08D57 !important;
}

/* Menú desplegable usuario */
.dropdown-menu a,
.dropdown-menu li a,
.dropdown-menu li a:visited {
    color: #B08D57 !important;
}

.dropdown-menu li a:hover {
    background: #f5e6b3 !important;
    color: #6A1238 !important;
}

/* Botones navegación timeline */
.widget-box .btn,
.widget-box .btn-default,
.widget-box .btn-white {
    color: #B08D57 !important;
}

/* Enlaces generales */
.page-content a,
.main-content a {
    color: #B08D57 !important;
}

/* Títulos azules de ACE */
.blue,
.text-primary,
.ace-icon {
    color: #B08D57 !important;
}

/* Flechas de expandir/contraer */
.widget-toolbar a,
.widget-toolbar .ace-icon {
    color: #B08D57 !important;
}

/* Quitar azul del menú activo */
.sidebar .nav-list > li::before,
.sidebar .nav-list > li.active::before,
.sidebar .nav-list > li.active > a::before {
    background-color: #B08D57 !important;
    border-color: #B08D57 !important;
}

.sidebar .nav-list > li.active > a::after {
    border-right-color: #B08D57 !important;
}

.sidebar .nav-list > li.active {
    border-left: 4px solid #B08D57 !important;
}

/* Por si ACE mete borde azul directo */
.sidebar .nav-list > li.active > a {
    border-left-color: #B08D57 !important;
}

/* Eliminar completamente el azul lateral */

.sidebar .nav-list > li,
.sidebar .nav-list > li.active,
.sidebar .nav-list > li.active > a {
    border-left: 0 !important;
}

/* Reemplazar por dorado */

.sidebar .nav-list > li.active::before {
    background: #B08D57 !important;
    width: 4px !important;
}

/* Barra lateral activa */

.sidebar .nav-list > li.active > a {
    box-shadow: inset 4px 0 0 #B08D57 !important;
}

/* Eliminar líneas azules del sidebar ACE */

.sidebar,
.sidebar:before,
.sidebar-shortcuts,
.sidebar-shortcuts-large,
.sidebar-shortcuts-mini {
    border-color: transparent !important;
}

/* Separadores verticales */
.sidebar .nav-list > li {
    border-color: #d8d8d8 !important;
}

/* Borde izquierdo azul */
.sidebar .nav-list > li.active {
    border-left: none !important;
}

.sidebar .nav-list > li.active:before {
    background: #B08D57 !important;
    width: 4px !important;
}

/* Línea azul que ACE dibuja */
.main-container .sidebar {
    border-right: none !important;
}

.sidebar .nav-list > li.active > a {
    border-left: none !important;
    box-shadow: inset 5px 0 0 #B08D57 !important;
}

/* ==========================================
   ELIMINAR AZUL DEL MENÚ ACTIVO
   ========================================== */

.sidebar .nav-list > li.active:before,
.nav-list > li.active:before,
li.active:before {
    background: #B08D57 !important;
    border-color: #B08D57 !important;
}

/* Línea lateral izquierda */
.sidebar .nav-list > li.active {
    border-left: 4px solid #B08D57 !important;
}

/* Eliminar cualquier azul heredado */
.sidebar .nav-list > li.active > a,
.sidebar .nav-list > li.active > a:hover,
.sidebar .nav-list > li.active > a:focus {
    border-color: #B08D57 !important;
}

/* Flecha del menú activo */
.sidebar .nav-list > li.active > a:after {
    border-right-color: #B08D57 !important;
}
/* ==========================================
   SGI - SIDEBAR LIMPIO PARA DEMOSTRACIÓN
   ========================================== */

.sidebar .nav-list > li,
.sidebar .nav-list > li.active,
.sidebar .nav-list > li.open {
    border-left: none !important;
    border-right: none !important;
    background: transparent !important;
}

.sidebar .nav-list > li:before,
.sidebar .nav-list > li.active:before,
.sidebar .nav-list > li.active > a:before,
.sidebar .nav-list > li.active > a:after,
.sidebar .nav-list > li > a:before,
.sidebar .nav-list > li > a:after,
.sidebar .nav-list > li b.arrow {
    display: none !important;
    content: none !important;
    border: 0 !important;
    background: transparent !important;
}

.sidebar .nav-list > li > a {
    margin: 6px 8px !important;
    padding: 12px 6px !important;
    min-height: 62px !important;
    border: none !important;
    border-radius: 0 26px 26px 0 !important;
    background: #e6e6e6 !important;
    color: #444 !important;
    box-shadow: none !important;
    text-align: center !important;
}

.sidebar .nav-list > li > a .menu-text,
.sidebar .nav-list > li > a span {
    color: #444 !important;
    font-weight: 700 !important;
}

.sidebar .nav-list > li > a .menu-icon,
.sidebar .nav-list > li > a i {
    color: #B08D57 !important;
    font-size: 22px !important;
    display: block !important;
    margin: 0 auto 5px auto !important;
}

.sidebar .nav-list > li.active > a,
.sidebar .nav-list > li:hover > a {
    background: #7A0F3D !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: inset 5px 0 0 #B08D57 !important;
}

.sidebar .nav-list > li.active > a .menu-text,
.sidebar .nav-list > li.active > a span,
.sidebar .nav-list > li:hover > a .menu-text,
.sidebar .nav-list > li:hover > a span {
    color: #ffffff !important;
}

.sidebar .nav-list > li.active > a .menu-icon,
.sidebar .nav-list > li.active > a i,
.sidebar .nav-list > li:hover > a .menu-icon,
.sidebar .nav-list > li:hover > a i {
    color: #FFD700 !important;
}

/* Evita borde azul del contenedor */
.sidebar,
.sidebar:before,
.main-container .sidebar {
    border-right: none !important;
}

/* Ajuste del botón colapsar */
.sidebar-toggle,
.sidebar-toggle:before {
    border-color: #B08D57 !important;
}

.sidebar-collapse {
    background: #d9d9d9 !important;
}

/* ==========================================
   MENÚ ACTIVO NEGRO INSTITUCIONAL
   ========================================== */

.sidebar .nav-list > li.active > a {
    background: #111111 !important;
    color: #FFFFFF !important;
    box-shadow: inset 5px 0 0 #B08D57 !important;
}

.sidebar .nav-list > li.active > a .menu-text,
.sidebar .nav-list > li.active > a span {
    color: #FFFFFF !important;
    font-weight: bold !important;
}

.sidebar .nav-list > li.active > a i,
.sidebar .nav-list > li.active > a .menu-icon {
    color: #FFD700 !important;
}

/* Barra lateral dorada */
.sidebar .nav-list > li.active > a::before {
    background: #B08D57 !important;
}


/* ==========================================
   MENÚ ACTIVO NEGRO
   ========================================== */

.sidebar .nav-list > li.active > a,
.sidebar .nav-list > li.active > a:hover,
.sidebar .nav-list > li.active > a:focus {
    background: #111111 !important;
    color: #FFFFFF !important;
    border: none !important;
    box-shadow: inset 6px 0 0 #B08D57 !important;
}

/* Texto del botón activo */
.sidebar .nav-list > li.active > a span,
.sidebar .nav-list > li.active > a .menu-text {
    color: #FFFFFF !important;
    font-weight: bold !important;
}

/* Icono del botón activo */
.sidebar .nav-list > li.active > a i,
.sidebar .nav-list > li.active > a .menu-icon {
    color: #FFD700 !important;
}

/* Eliminar cualquier fondo guinda heredado */
.sidebar .nav-list > li.active {
    background: transparent !important;
}

/* Barra lateral activa */
.nav-list > li.active:before {
    background: #000000 !important;
}

/* Fondo del botón activo */
.nav-list > li.active > a {
    background: #000000 !important;
    color: #FFFFFF !important;
}

/* Texto activo */
.nav-list > li.active > a,
.nav-list > li.active > a span {
    color: #000000 !important;
}

/* Icono activo */
.nav-list > li.active > a i {
    color: #FFD700 !important;
}

/* ACTIVO MENÚ SGI */
.skin-3 .nav-list > li.active > a,
.skin-3 .nav-list > li.active.highlight > a {
    background-color: #800040 !important;
    color: #ffffff !important;
}

/* FORZAR ACTIVO DEL MENÚ - SGI */
body.skin-3 .sidebar .nav-list > li.active > a,
body.skin-3 .sidebar .nav-list > li.active.highlight > a,
body.skin-3 .sidebar .nav-list > li.active > a:hover,
body.skin-3 .sidebar .nav-list > li.active > a:focus,
body.skin-3 .sidebar .nav-list > li.active > a:active {
    background-color: #111111 !important;
    background: #111111 !important;
    color: #ffffff !important;
}

/* Texto e icono del activo */
body.skin-3 .sidebar .nav-list > li.active > a .menu-text,
body.skin-3 .sidebar .nav-list > li.active > a span {
    color: #ffffff !important;
}

body.skin-3 .sidebar .nav-list > li.active > a .menu-icon,
body.skin-3 .sidebar .nav-list > li.active > a i {
    color: #FFD700 !important;
}

/* Quitar pseudo-elementos blancos/azules de ACE */
body.skin-3 .sidebar .nav-list > li.active:before,
body.skin-3 .sidebar .nav-list > li.active:after,
body.skin-3 .sidebar .nav-list > li.active > a:before,
body.skin-3 .sidebar .nav-list > li.active > a:after {
    display: none !important;
    background: transparent !important;
    border: 0 !important;
}