/* ===== LAYOUT BASE E UTILITÁRIOS ===== */

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
    font-family: 'Segoe UI', sans-serif;
}

.card {
    border-radius: 12px;
}

.nav-link {
    font-weight: 500;
    font-size: 1rem;
}

.nav-link.active {
    font-weight: bold;
    border-bottom: 3px solid var(--nav-active-border);
    padding-bottom: 5px;
}

.nav-item {
    padding-right: 10px;
}

.dropdown-menu {
    border-radius: 8px;
    padding: 10px;
    width: 305px;
}

.dropdown-header {
    font-size: 0.9rem;
}

.dropdown-item {
    font-size: 0.9rem;
    padding: 8px 12px;
}

.dropdown-item i {
    font-size: 1.2rem;
}

.menu-button {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    color: white;
    font-size: 1rem;
}

.menu-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

.menu-button:focus {
    outline: none;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
}

.menu-button i {
    font-size: 1.5rem;
}

.navbar-light .navbar-toggler-icon {
    background-image: url('/_content/CarteiraInvestimentos.RazorPages/css/menu.svg');
}


.grid-font {
    font-size: 0.92rem;
}

.grid-group-principal {
    height: 55px;
    vertical-align: middle;
}

.grid-sub-group {
    height: 45px;
    vertical-align: middle;
}


.mh-132px { max-height: 132px !important; }
.mh-250px { max-height: 250px !important; }
.min-height-550px { min-height: 550px !important; }
.min-height-50px { min-height: 50px !important; }
.max-width-100px { max-width: 100px !important; }
.h-20 { height: 20% !important; }
.h-21 { height: 21% !important; }
.h-50_3 { height: 50.3% !important; }
.h-25 { height: 25% !important; }
.h-42_3 { height: 42.3% !important; }
.ml-40px { margin-left: 40px !important; }
.ml-50px { margin-left: 50px !important; }
.ml-5px { margin-left: 5px !important; }
.pr-30px { padding-right: 30px !important; }
.pt-20px { padding-top: 20px !important; }
.pt-50px { padding-top: 50px !important; }
.mt-23px { margin-top: 23px !important; }
.w-4 { flex: 0 0 auto; width: 4% !important; }
.w-62_7 { flex: 0 0 auto; width: 62.7% !important; }
.margin-bottom-20px { margin-bottom: 20px; }
.cursor-pointer { cursor: pointer !important; }
.font-size-4 { font-size: 4rem; }

/* Logo header */
.header-brand-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.header-brand-logo {
    height: 42px;
    width: auto;
}

.header-brand-text {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #0d9488);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-brand-icon {
    -webkit-text-fill-color: #3b82f6;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: transparent; 
    pointer-events: all; 
}
.overlay-spinner {
    width: 3rem;
    height: 3rem;
}

.tabela-ativos {
    font-size: 0.78rem;
}

.tabela-ativos .grid-group-principal {
    height: 42px;
}

.tabela-ativos .grid-sub-group {
    height: 36px;
}

.tabela-ativos td.col-codigo,
.tabela-ativos th.col-codigo {
    max-width: 75px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
