.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: 64px;
    border: 0;
    background: linear-gradient(135deg, #0095e0 0%, #008BD6 46%, #006eab 100%);
    box-shadow: 0 10px 28px rgba(4, 40, 68, 0.18);
}

.app-header-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 64px;
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
}

@media (min-width: 1200px) {
    .app-header-inner {
        width: calc(100vw - 48px);
        max-width: 1700px;
        margin-left: calc(50% - min(850px, (100vw - 48px) / 2));
        margin-right: 0;
    }
}

.app-header-menu {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.app-header-menu:hover {
    background: rgba(255, 255, 255, 0.28);
}

.app-header-menu span {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-header-menu span + span {
    margin-top: 4px;
}

body.sidenav-open .app-header-menu span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

body.sidenav-open .app-header-menu span:nth-child(2) {
    opacity: 0;
}

body.sidenav-open .app-header-menu span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.app-header-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
}

.app-header-brand:hover,
.app-header-brand:focus {
    text-decoration: none;
    opacity: 0.92;
}

.app-header-brand img {
    height: 32px;
    width: auto;
    display: block;
}

.app-header-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-header #logoutForm {
    display: flex;
    margin: 0;
    flex: 0 0 auto;
    min-width: 0;
}

.app-header-user {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 360px;
    min-width: 0;
    padding: 6px 12px 6px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    text-decoration: none;
    transition: background 0.15s ease;
}

.app-header-user:hover,
.app-header-user:focus {
    background: rgba(255, 255, 255, 0.24);
    color: #fff;
    text-decoration: none;
}

.app-header-avatar {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.app-header-user-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-header-user-text strong,
.app-header-user-text small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-header-user-text strong {
    font-size: 13px;
    line-height: 1.2;
}

.app-header-user-text small {
    font-size: 11px;
    opacity: 0.82;
    font-weight: 400;
}

.pagina-topo-filtros {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px 0 4px 0;
}

.pagina-topo-filtros .glyphicon {
    color: #7a93a8;
    font-size: 16px;
}

.pagina-topo-filtros .form-control {
    width: auto;
    min-width: 120px;
    height: 34px;
    border-radius: 8px;
}

@media only screen and (max-width: 768px) {
    .app-header-inner {
        padding: 0 8px;
        gap: 8px;
    }

    .app-header-title,
    .app-header-user-text {
        display: none;
    }

    .app-header-user {
        padding: 4px;
        max-width: none;
        background: transparent;
    }

    .pagina-topo-filtros {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}
