body {
    background: #f4f7fb;
}

.app-frame {
    min-height: 100vh;
    display: flex
}

.sidebar {
    width: var(--sidebar-width);
    background: #ffffff;
    border-right: 1px solid rgba(15, 23, 42, .04);
    padding: 1rem 0
}

.sidebar .brand {
    font-weight: 700;
    color: #f28505;
    padding: 0 1.25rem;
    margin-bottom: 1rem
}

.sidebar .nav-link {
    color: #212121
}

.sidebar .nav-link.active {
    background: rgba(240, 91, 5, 0.175);
    color: #f28505;
    border-radius: 8px
}

.topbar {
    padding: 1rem;
    border-bottom: 1px solid rgba(15, 23, 42, .04);
    background: transparent
}

.card-compact {
    border-radius: 10px
}

.small-chart {
    height: 320px !important;
    max-height: 320px;
}

.content {
    flex: 1;
    padding: 1.25rem;
    overflow: auto
}


.footer-text {
    font-size: 12px;
    color: #777;
}

@media (max-width:991px) {
    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        z-index: 1030;
        transition: left .2s
    }

    .sidebar.open {
        left: 0
    }

    .app-frame {
        padding-left: 0
    }
}

#avatarDropdown:hover {
    transform: scale(1.05);
}

/* Dropdown personalizado */
.dropdown-menu {
    border-radius: 0.5rem;
    min-width: 150px;
    padding: 0.25rem 0;
    font-size: 0.875rem;
}

.dropdown-item {
    transition: background-color 0.2s, color 0.2s;
}

.dropdown-item:hover {
    background-color: var(--primary);
    color: var(--text-inv);
}

/* Pequena sombra para dar profundidade */
.shadow-sm {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Ajuste geral de tipografia */
#nameCurrentuser {
    color: var(--color-900);
}

.text-muted {
    color: var(--muted) !important;
}

/* Sidebar padrão */
.sidebar {
    width: 250px;
    height: 100vh;
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    transition: transform .3s ease;
    z-index: 999;
}

/* Sidebar aberta */
.sidebar.active {
    transform: translateX(0);
}

/* Em telas grandes (desktop), sidebar sempre aberta */
@media (min-width: 992px) {
    .sidebar {
        transform: translateX(0);
        position: static;
        height: auto;
    }
}

/* Smartphones */
@media (max-width: 576px) {

    .title {
        display: none;
    }

    .subtitle {
        display: none;
    }
}

#overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    backdrop-filter: blur(2px);
    display: none;
    z-index: 998;
}

#overlay.active {
    display: block;
}

.select-css {
    color: var(--color-900);
    width: 100%;
    /* ajuste se quiser */
    height: 38px;
    font-size: 1rem;
    border: none;
    border-bottom: 2px solid var(--orange-900);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    outline: 0;
}

/* quando abre ou está em foco */
.select-css:focus {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(242, 92, 5, 0.25);
}

.calendar-css {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
}

/* Hover */
.calendar-css:hover {
    background: var(--primary-color);
    color: var(--surface-color);
    border-color: var(--primary-color);
}

/* Focus/Active */
.calendar-css:focus,
.calendar-css:active {
    outline: none;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.input-css {
    font-size: 20px !important;
    color: var(--color-900) !important;
    background-color: transparent !important;
    margin-bottom: 20px;
    outline: none !important;
    border: none !important;
    /* Remove todos os lados */
    border-bottom: 2px solid var(--orange-900) !important;
    /* Adiciona só o de baixo */
    border-radius: 0 !important;
    text-decoration: none;
    height: 40px !important;
    width: 100% !important;

}

.input-css:focus {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(242, 92, 5, 0.25);
}

.input-css {
    color: #222 !important;
    border-bottom: 2px solid #E65100 !important;
}