html,
body {
	height: 100%;
    background-image: url(/img/background.png);
    background-repeat: no-repeat;
    background-position-x: right;
    background-position-y: bottom;	
}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;
}

.wrap > .container {
    padding: 70px 15px 20px;
}

.footer {
    height: 60px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: /*"\e113"*/ "\e151";
}

a.desc:after {
    content: /*"\e114"*/ "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding: 15px;
    border: none;
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 15px;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.color-box {
	padding: 1px;
	border: 1px solid #888;
	border-radius: 3px;
}

.color-box:before {
	content: "!";
	color: #fff;
	font-size: 9px;
}

#navbar-top {
    background-color: #007AC3;
}

#navbar-top .navbar-brand {
    color: #ddd;
    display: flex;
    align-items: center;
    padding: 8px 0;
    height: 56px;
}

#navbar-top .navbar-brand:hover,
#navbar-top .navbar-brand:focus {
    color: #fff;
}

#navbar-top .navbar-nav .nav-item .nav-link {
    color: #ddd;
    padding: 8px 16px;
    margin: 0 2px;
    border-radius: 4px;
}

#navbar-top .navbar-nav .nav-item .nav-link:hover {
    color: #fff;
    background-color: rgba(255,255,255,0.1);
}

#navbar-top .navbar-nav .nav-item .nav-link.active,
#navbar-top .navbar-nav .nav-item.active .nav-link {
    color: #fff;
    background-color: #0060B0;
    font-weight: 500;
    position: relative;
}

#navbar-top .navbar-nav .nav-item .nav-link.active::after,
#navbar-top .navbar-nav .nav-item.active .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #fff;
}

/* Correção específica para dropdowns ativos */
#navbar-top .navbar-nav .dropdown.active .nav-link {
    color: #fff;
    background-color: #0060B0;
    font-weight: 500;
    position: relative;
}

#navbar-top .navbar-nav .dropdown.active .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #fff;
}

/* Garantir que o dropdown não interfira com o indicador */
#navbar-top .navbar-nav .dropdown .dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    margin-top: 3px; /* Espaço para a linha branca */
}

/* Estilo dos itens do dropdown */
#navbar-top .navbar-nav .dropdown .dropdown-item {
    color: #333;
    padding: 0.5rem 1rem;
}

#navbar-top .navbar-nav .dropdown .dropdown-item:hover,
#navbar-top .navbar-nav .dropdown .dropdown-item:focus {
    background-color: #f8f9fa;
    color: #0060B0;
}

#navbar-top .btn-link {
    color: #ddd;
}

.logo-img {
    height: 32px;
    margin: 0;
    padding: 0;
}

h1 {
	font-size: 24px;
}

/* Correção de espaçamento global para cabeçalhos de página */
.d-flex.justify-content-between.align-items-center.mb-4 {
    margin-top: 1.5rem !important;
}

/* Espaçamento adicional para o primeiro elemento após o container */
.container > *:first-child {
    margin-top: 1rem;
}

/* Espaçamento específico para títulos de página */
.container h1:first-child,
.container .h3:first-child {
    margin-top: 1.5rem;
}

/* Estilos para o menu dropdown do usuário */
.navbar-nav .dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    margin-top: 3px;
    min-width: 200px;
    z-index: 1000;
}

.navbar-nav .dropdown-menu .dropdown-item {
    color: #333;
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    display: block;
    width: 100%;
    text-decoration: none;
}

.navbar-nav .dropdown-menu .dropdown-item:hover,
.navbar-nav .dropdown-menu .dropdown-item:focus {
    background-color: #f8f9fa;
    color: #0060B0;
    text-decoration: none;
}

.navbar-nav .dropdown-menu .dropdown-divider {
    margin: 0.5rem 0;
    border-color: #e9ecef;
}

/* Garantir que o dropdown seja visível */
.navbar-nav .dropdown.show .dropdown-menu {
    display: block;
}

/* Estilos para o perfil do usuário */
.user-profile .card {
    border: 1px solid #e3e6f0;
    border-radius: 0.35rem;
}

.user-profile .card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
    font-weight: 600;
}

.user-profile .form-control:focus {
    border-color: #0060B0;
    box-shadow: 0 0 0 0.2rem rgba(0, 96, 176, 0.25);
}

.user-profile .btn-primary {
    background-color: #0060B0;
    border-color: #0060B0;
}

.user-profile .btn-primary:hover {
    background-color: #004a8c;
    border-color: #004a8c;
}

.user-profile .badge {
    font-size: 0.75em;
    padding: 0.35em 0.65em;
}

/* Estilos para alteração de senha */
.user-change-password .alert {
    border-radius: 0.35rem;
    border: none;
}

.user-change-password .alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.user-change-password .alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.user-change-password .alert ul {
    padding-left: 1.5rem;
}

.user-change-password .alert li {
    margin-bottom: 0.25rem;
}