/* 
    HEADER CSS - Extracted from Legacy custom.css
    Date: February 4, 2026
    Phase 1, Task 1.2: Copy Legacy CSS
    
    This file contains EXACT CSS from legacy for:
    - .topo (header container)
    - .navbar (navigation bar)
    - .navbar-brand / .logo (logo styles)
    - .user dropdown (user menu)
    - .ball-hover (action buttons)
    - Mobile menu styles
*/

/* =====================TOPO (HEADER)========================== */

.topo {
    position: fixed;
    z-index: 10 !important;
    width: 100%;
}

    .topo h2 {
        display: table;
        float: left;
        margin: 24px 0;
        font-size: 14px;
        margin: 0;
        font-family: 'sf-lg';
        display: block;
        height: 54px;
        text-transform: uppercase;
        padding: 16px 0 0 26px;
    }

    .topo .navbar .navbar-nav > li.open > .dropdown-menu {
        top: 63px;
        text-transform: uppercase;
        padding: 0;
    }

    .topo .dropdown-menu li > a {
        margin: 0;
        color: #26476D;
    }

    .topo i[class*="icon-"] {
        font-size: 23px;
    }

    .topo .navbar .navbar-nav .dropdown-header {
        display: block;
        padding: 10px 20px;
        border-bottom: 1px solid #ccc;
    }

/* =====================NAVBAR========================== */

.bg-blue-default {
    background: #27496f;
    border-radius: 0;
}

/* CRITICAL FIX: Force horizontal alignment of logo and user */
.topo .navbar.bg-blue-default {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

.topo .navbar .no-padding {
    display: flex !important;
    align-items: center !important;
}

.topo .navbar .no-padding:first-child {
    flex: 1 !important;
}

.topo .navbar .no-padding:last-child {
    flex: 0 0 auto !important;
}

.navbar .dropdown-menu li > a:hover, 
.navbar .dropdown-menu li > a:focus, 
.navbar.navbar-default .dropdown-menu li > a:hover, 
.navbar.navbar-default .dropdown-menu li > a:focus {
    background: #1C334D;
    box-shadow: none;
}

.navbar .navbar-nav > li > a:not(.btn-just-icon) .fa {
    margin: 0;
}

.menu .navbar-right {
    padding: 0 10px;
}

/* CRITICAL FIX: Ensure menu container doesn't break alignment */
.topo .navbar .menu {
    display: flex !important;
    align-items: center !important;
}

/* =====================LOGO========================== */

.topo .logo {
    padding: 3px;
}

    .topo .logo i {
        font-size: 43px;
    }

.pointer {
    cursor: pointer;
}

/* =====================USER DROPDOWN========================== */

.navbar .navbar-nav.user > li > a {
    float: right;
    padding: 3px 14px;
}

.topo .user a span, 
.topo .user a p {
    font-size: 11px;
    margin: 0 8px;
    display: block;
    float: left;
    padding: 0px;
}

.topo .user a p {
    position: relative;
    top: 15px;
}

.topo .user a i {
    top: 14px;
    position: relative;
}

.topo .user a span.image {
    border-radius: 200px;
    overflow: hidden;
}

/* =====================ACTION BUTTONS (BALL HOVER)========================== */

.topo .navbar .menu .navbar-nav.ball-hover > li > a {
    border-radius: 200px;
    width: 48px;
    height: 49px;
    margin: 0 auto;
    padding: 13px 0;
    text-align: center;
}

    .topo .navbar .menu .navbar-nav.ball-hover > li > a span {
        display: none;
    }

    .topo .navbar .menu .navbar-nav.ball-hover > li > a:hover, 
    .topo .menu .navbar .navbar-nav.ball-hover > li > a:focus, 
    .topo .menu .navbar .navbar-nav.ball-hover > li > a:active {
        background: #1C334D;
    }

    .topo .navbar .menu .navbar-nav.ball-hover > li > a .icon-rdo-novo {
        width: 39px;
        display: flex;
        margin: 0 auto;
    }

.topo .navbar .navbar-nav > li.menu > a:hover, 
.topo .navbar .navbar-nav > li.menu > a:focus, 
.topo .navbar .navbar-nav > li.menu > a:active {
    background: transparent;
    color: #1C334D;
}

/* =====================OBRA NAME (CENTER)========================== */

.menu-lateral h2 {
    display: table;
    float: left;
    margin: 24px 0;
    font-size: 14px;
    margin: 0;
    font-family: 'sf-lg';
    display: block;
    height: 54px;
    text-transform: uppercase;
    padding: 16px 0 0 26px;
    color: #fff;
}

/* =====================MOBILE MENU (nav.html · custom.css) ========================== */

.nav-mobile #menu-toggle {
    display: none;
}

.menu-lateral .nav-mobile {
    display: block;
    width: 63px;
    height: 46px;
    color: #fff;
    padding: 0;
    margin: 0;
    cursor: auto;
    font-size: 18px;
    list-style-type: none;
    float: left;
}

.menu-lateral .nav-mobile:after {
    content: "";
    display: table;
    clear: both;
}

.menu-lateral .nav-mobile svg {
    height: 45px;
    width: 65px;
    padding: 9px;
    top: 10px;
    cursor: pointer;
    z-index: 9;
    border-right: 1px dashed rgba(255, 255, 255, 0.5);
}

.menu-lateral .nav-mobile svg path {
    fill: #fff;
}

.menu-lateral .nav-mobile svg.icon-close {
    display: none;
    padding: 15px;
}

.menu-lateral .nav-mobile .menu-button:after {
    opacity: 0;
    top: 70px;
    width: 100vw;
    display: block;
    position: fixed;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
    transition: opacity 0.2s cubic-bezier(0, 0, 0.3, 1);
    transition-delay: 0.1s;
    right: 0;
}

.menu-lateral .nav-mobile #menu-toggle.active ~ .menu-button .icon-close,
.nav-mobile #menu-toggle:checked ~ .menu-button .icon-close {
    display: block;
}

.menu-lateral .nav-mobile #menu-toggle.active ~ .menu-button .icon-open,
.nav-mobile #menu-toggle:checked ~ .menu-button .icon-open {
    display: none;
}

.menu-lateral .nav-mobile #menu-toggle.active ~ .menu-button:after,
.nav-mobile #menu-toggle:checked ~ .menu-button:after {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s cubic-bezier(0, 0, 0.3, 1);
}

.menu-lateral .nav-mobile #menu-toggle.active ~ .menu-sidebar,
.nav-mobile #menu-toggle:checked ~ .menu-sidebar {
    transform: translateX(0);
    transition: transform 0.3s cubic-bezier(0, 0, 0.3, 1);
    left: 0;
}

.menu-lateral .nav-mobile .menu-container .menu-sidebar {
    max-width: 380px;
    display: block;
    bottom: 0;
    background: rgba(28, 51, 77, 0.95);
    position: fixed;
    transform: translateX(-405px);
    transition: transform 0.3s cubic-bezier(0, 0, 0.3, 1);
    top: 70px;
    z-index: 2;
    list-style-type: none;
    padding: 0;
    left: -90%;
}

.topo .menu-lateral .navbar .navbar-nav.ball-hover > li > a span {
    display: inline-block;
    padding-left: 8px;
}

.topo .menu-lateral .navbar .navbar-nav.ball-hover > li > a {
    color: #fff;
    position: relative;
}

.topo .menu-lateral .navbar .navbar-nav.ball-hover > li > a i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
}

.menu-lateral .navbar-nav {
    margin: 0;
    width: 100%;
}

    .menu-lateral .navbar-nav li {
        float: left;
        width: 100%;
    }

        .menu-lateral .navbar-nav li ul {
            float: left;
            padding: 0;
        }

            .menu-lateral .navbar-nav li ul li a {
                color: #fff;
                display: block;
            }

.menu-lateral .nav-mobile .navbar-nav.user > li > a {
    padding: 15px 10px;
}

.menu-lateral .navbar .navbar-nav.user > li > a {
    width: 100%;
    padding: 15px;
}

.navbar .menu-lateral li > a {
    width: 100%;
    padding-left: 58px;
}

    .navbar .menu-lateral li > a i[class*="icon-"] {
        position: absolute;
        left: 14px;
    }

.menu-lateral .navbar-nav li.active > a {
    background-color: #28496F !important;
}

.navbar .menu-lateral li > a:not(.btn-just-icon) .fa {
    position: absolute;
    left: 21px;
}

.topo .menu-lateral .navbar .navbar-nav.user > li.open > a {
    background: #16293E;
}

/* =====================UTILITY CLASSES========================== */

.no-padding {
    padding: 0;
}

.bg-dark-blue {
    background: #1C334D;
}

/* =====================TOOLTIPS========================== */

.btn-tooltip {
    position: relative;
}

    .btn-tooltip:hover:after {
        content: attr(title);
        position: absolute;
        bottom: -30px;
        left: 50%;
        transform: translateX(-50%);
        background: #1C334D;
        color: #fff;
        padding: 5px 10px;
        border-radius: 4px;
        white-space: nowrap;
        font-size: 11px;
        z-index: 1000;
    }

/* =====================RESPONSIVE========================== */

@media (max-width: 767px) {
    .topo .navbar .menu .navbar-nav.ball-hover {
        display: none;
    }

    .topo h2 {
        position: absolute;
        left: 146px;
        height: auto;
        padding: 0;
        top: 0;
        bottom: 0;
        display: table;
        margin: auto;
        font-size: 12px;
    }

    .menu-lateral .nav-mobile .menu-container .menu-sidebar {
        top: 0;
        width: calc(100% - 59px);
        max-width: 100%;
        min-width: 260px;
    }

    .menu-lateral .nav-mobile {
        float: right;
    }

    .menu-lateral .nav-mobile svg {
        right: 0;
        position: absolute;
    }

    .menu-lateral h2 {
        font-size: 12px;
        padding: 16px 0 0 10px;
    }
}
