/* ============================================
   COLORES PERSONALIZADOS MUNICIPALIDAD
   ============================================ */

/* Botones amarillos (#ffed08) */
.btn-warning,
.button.default,
input[type="submit"].default,
.submit-row input[type="submit"],
.btn-outline-warning {
    background-color: #ffed08 !important;
    border-color: #ffed08 !important;
    color: #023373 !important;
    font-weight: 600;
}

.btn-warning:hover,
input[type="submit"].default:hover {
    background-color: #e6d400 !important;
    border-color: #e6d400 !important;
    color: #023373 !important;
}

/* Botones verdes (#03c515) */
.btn-success,
.button[name="_continue"],
.button[name="_addanother"],
input[type="submit"][name="_continue"],
input[type="submit"][name="_addanother"] {
    background-color: #03c515 !important;
    border-color: #03c515 !important;
    color: white !important;
}

.btn-success:hover {
    background-color: #02a012 !important;
    border-color: #02a012 !important;
}

/* Logo con fondo blanco y rectangular */
.brand-link .brand-image {
    background-color: white !important;
    padding: 5px 10px !important;
    border-radius: 8px !important;
    max-height: 50px !important;
    width: auto !important;
}

/* Acentos amarillos */
.accent-warning .btn-link {
    color: #003270 !important;
}

.accent-warning .page-item.active .page-link {
    background-color: #ffed08 !important;
    border-color: #ffed08 !important;
    color: #023373 !important;
}

/* Links y elementos interactivos */
a:hover,
.nav-link:hover {
    color: #ffed08 !important;
}

/* Botones de acción en listados */
.btn-info {
    background-color: #023373 !important;
    border-color: #023373 !important;
}

/* Mensajes de éxito */
.alert-success {
    background-color: #d4f4dd !important;
    border-color: #03c515 !important;
    color: #024d09 !important;
}

/* Checkboxes y elementos activos */
.custom-control-input:checked ~ .custom-control-label::before {
    background-color: #03c515 !important;
    border-color: #03c515 !important;
}

/* Badges */
.badge-warning {
    background-color: #ffed08 !important;
    color: #023373 !important;
}

.badge-success {
    background-color: #03c515 !important;
    color: white !important;
}

/* Tabs activos */
.nav-tabs .nav-link.active {
    border-bottom: 3px solid #ffed08 !important;
    color: #023373 !important;
}

/* Progress bars */
.progress-bar {
    background-color: #03c515 !important;
}

/* ============================================
   SIDEBAR - Azul #003270
   ============================================ */

/* Sidebar principal */
.main-sidebar,
.sidebar {
    background-color: #003270 !important;
}

/* Items del sidebar */
.nav-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

.nav-sidebar .nav-link:hover {
    background-color: rgba(255, 237, 8, 0.1) !important;
    color: #ffed08 !important;
}

/* Sidebar item activo */
.nav-sidebar .nav-link.active,
.nav-sidebar .nav-item.menu-open > .nav-link {
    background-color: rgba(255, 237, 8, 0.2) !important;
    color: #ffed08 !important;
}

/* Sidebar headers/títulos */
.nav-header {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Iconos del sidebar */
.nav-sidebar .nav-link > .nav-icon {
    color: rgba(255, 255, 255, 0.8) !important;
}

.nav-sidebar .nav-link.active > .nav-icon,
.nav-sidebar .nav-link:hover > .nav-icon {
    color: #ffed08 !important;
}

/* Submenu del sidebar */
.nav-treeview {
    background-color: rgba(0, 0, 0, 0.2) !important;
}

.nav-treeview > .nav-item > .nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
}

.nav-treeview > .nav-item > .nav-link.active {
    background-color: rgba(255, 237, 8, 0.15) !important;
    color: #ffed08 !important;
}

/* Brand link (logo area) */
.brand-link {
    background-color: #002050 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.brand-link:hover {
    background-color: #002050 !important;
}

/* ============================================
   ENCABEZADOS - Azul #003270
   ============================================ */

/* Encabezado principal (navbar) */
.main-header,
.navbar {
    background-color: #003270 !important;
    border-bottom: 3px solid #ffed08 !important;
}

/* Links del navbar */
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-nav .nav-link:hover {
    color: #ffed08 !important;
}

/* Dropdown del usuario */
.dropdown-menu {
    background-color: #003270 !important;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.9) !important;
}

.dropdown-item:hover {
    background-color: rgba(255, 237, 8, 0.2) !important;
    color: #ffed08 !important;
}

/* Encabezados de cards/módulos */
.card-header,
.module h2,
.module caption,
.inline-group h2 {
    background-color: #003270 !important;
    color: white !important;
    border-bottom: 2px solid #ffed08 !important;
}

/* Encabezados de secciones */
h1, h2, h3, h4, h5, h6 {
    color: #003270 !important;
}

.content-header h1 {
    color: #003270 !important;
}

/* Tabs headers */
.nav-tabs .nav-link:hover {
    border-color: #003270 !important;
    color: #003270 !important;
}

/* Breadcrumbs */
.breadcrumb {
    background-color: rgba(0, 50, 112, 0.1) !important;
}

.breadcrumb-item.active {
    color: #003270 !important;
}

/* Títulos de páginas */
.page-header,
#content h1 {
    color: #003270 !important;
    border-bottom: 2px solid #ffed08 !important;
    padding-bottom: 10px;
}

/* Encabezados de tabla */
#result_list thead th,
.table thead th {
    background-color: #003270 !important;
    color: white !important;
}

/* Filtros del sidebar derecho */
#changelist-filter h2,
#changelist-filter h3 {
    background-color: #003270 !important;
    color: white !important;
    padding: 10px;
    border-radius: 5px 5px 0 0;
}

/* Encabezado de formularios inline */
.inline-related h3 {
    background-color: #003270 !important;
    color: white !important;
}

/* Panel de acciones */
.actions {
    background-color: rgba(0, 50, 112, 0.05) !important;
    border: 1px solid #003270 !important;
}

/* Reemplazar cualquier #f39c12 que quede */
[style*="#f39c12"],
[style*="rgb(243, 156, 18)"] {
    background-color: #003270 !important;
    color: white !important;
}

/* Links en color azul */
a:link,
a:visited {
    color: #03c515 !important;
}