.btn-mes {
    width: 80px;
}

/* ─── Modernização de Layout Global (Glassmorphism & Cores Institucionais) ─────────────────── */
body {
    background: linear-gradient(135deg, #0e1e38 0%, #1d3b6c 100%) !important;
    background-attachment: fixed !important;
    color: #f0f0f0;
}

.login.bg-black {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border-radius: 12px;
    max-width: 450px;
    margin: 100px auto !important;
    position: relative !important;
    top: auto !important;
    transform: none !important;
    left: auto !important;
}

.login-header {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: 100% !important;
    margin: 0 !important;
    background-color: #ffffff !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 30px 20px 20px !important;
    text-align: center;
}

.login-header .brand {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    padding: 0 !important;
    text-align: center !important;
    width: 100% !important;
}

.brand-logo {
    max-height: 55px;
    width: auto;
    display: block !important;
    margin: 0 auto !important;
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
}

.brand text-center b {
    display: block;
    margin-top: 10px;
}

.login-content input.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.login-content input.form-control:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: none;
    color: #fff;
}

.login-content .btn-success {
    background: linear-gradient(45deg, #78C257, #5DA93F) !important;
    border: none;
    color: #ffffff;
    font-weight: bold;
    transition: all 0.3s ease;
}

.login-content .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(120, 194, 87, 0.4);
}

/* ─── Navbar e Header ─────────────────────────────────────────────────────── */
#header {
    z-index: 1020 !important;
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#header .navbar-nav > li > a {
    color: #333333 !important;
}
#header .navbar-nav > li > a:hover {
    color: #78C257 !important;
}

#header .navbar-toggle .icon-bar {
    background: #333333 !important;
}

/* O fundo branco atrás da logo apenas (pode ser removido o fundo extra já que o header é branco) */
#header .navbar-brand {
    padding: 10px 20px;
    margin-right: 15px;
    display: inline-block;
}

#header .navbar-brand .brand-logo {
    max-height: 45px !important;
    width: auto;
}

@media (max-width: 767px) {
    #header .navbar-brand {
        padding: 5px 10px;
    }
    #header .navbar-brand .brand-logo {
        max-height: 30px !important;
    }
}

/* ─── Sidebar Moderno ───────────────────────────────────────────────────── */
.sidebar {
    background: rgba(14, 30, 56, 0.7) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar .nav > li > a {
    color: #d0d0d0 !important;
    transition: all 0.3s ease;
}

.sidebar .nav > li > a:hover,
.sidebar .nav > li.active > a {
    color: #ffffff !important;
    background: rgba(120, 194, 87, 0.2) !important;
    border-left: 4px solid #78C257;
}

.sidebar-bg {
    background: transparent !important;
}

/* ─── Componentes Glassmorphism (Panels, Tables, Inputs) ────────────────── */
.panel {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: #f0f0f0;
}

.panel-heading {
    background: rgba(0, 0, 0, 0.2) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-radius: 10px 10px 0 0;
}

.panel-title {
    color: #ffffff !important;
}

.panel-body {
    background: transparent !important;
}

/* Botões Globais */
.btn-primary, .btn-success {
    background: linear-gradient(45deg, #78C257, #5DA93F) !important;
    border: none !important;
    color: #ffffff !important;
}
.btn-primary:hover, .btn-success:hover {
    box-shadow: 0 4px 12px rgba(120, 194, 87, 0.4);
    transform: translateY(-1px);
}

/* Tabelas Transparentes */
.table {
    color: #e0e0e0 !important;
}
.table > thead > tr > th {
    border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
    color: #78C257 !important;
}
.table > tbody > tr > td {
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    background: transparent !important;
}
.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.02) !important;
}
.table-hover > tbody > tr:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
}
/* Correção da Seleção do DataTable */
table.dataTable tbody > tr.selected, 
table.dataTable tbody > tr > .selected {
    background-color: rgba(120, 194, 87, 0.3) !important;
    color: #ffffff !important;
}

/* DataTables e Controles */
.dataTables_wrapper .dataTables_length, 
.dataTables_wrapper .dataTables_filter, 
.dataTables_wrapper .dataTables_info, 
.dataTables_wrapper .dataTables_processing, 
.dataTables_wrapper .dataTables_paginate {
    color: #d0d0d0 !important;
}

.form-control {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
}
.form-control:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: #78C257 !important;
}

/* Correções de visibilidade (ex: pão de migalhas, rótulos) */
h1, h2, h3, h4, h5, h6, .page-header {
    color: #ffffff !important;
}
.breadcrumb > li {
    color: #a0a0a0;
}
.breadcrumb > li > a {
    color: #78C257;
}