:root {
    --sidebar-width: 260px;
    --sidebar-width-collapsed: 70px;
}

body {
    background-color: #f4f6f9;
}

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

.sidebar {
    width: var(--sidebar-width);
    background-color: #1e2a3a;
    color: #cfd8e3;
    flex-shrink: 0;
    transition: width .2s ease;
    overflow-x: hidden;
    min-height: 100vh;
}

.sidebar.collapsed {
    width: var(--sidebar-width-collapsed);
}

.sidebar.collapsed .sidebar-brand-text,
.sidebar.collapsed .sidebar-heading,
.sidebar.collapsed .nav-link span {
    display: none;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    white-space: nowrap;
}

.sidebar-heading {
    text-transform: uppercase;
    font-size: .7rem;
    letter-spacing: .05em;
    color: #7d8ba1;
    padding: 1rem 1.25rem .35rem;
    white-space: nowrap;
}

.sidebar-nav .nav-link {
    color: #cfd8e3;
    padding: .6rem 1.25rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    white-space: nowrap;
    border-left: 3px solid transparent;
}

.sidebar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, .06);
    color: #fff;
}

.sidebar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, .1);
    color: #fff;
    border-left-color: #4dabf7;
}

.app-content {
    flex: 1;
    min-width: 0;
}

.navbar-top {
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

.card {
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

.stat-card .stat-value {
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-card .card-body {
    padding: 1rem 1.1rem;
}

.stat-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

#mapaOportunidades {
    height: 480px;
    border-radius: 6px;
}

#mapaOportunidadesModal {
    height: 100%;
    min-height: 500px;
}

.marker-popup-lista {
    max-height: 140px;
    overflow-y: auto;
    padding-left: 1.1rem;
    margin-bottom: .5rem;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-alto {
    background-color: #2f9e44;
}

.dot-medio {
    background-color: #f59f00;
}

.dot-baixo {
    background-color: #adb5bd;
}

.empresa-item:last-child {
    border-bottom: none !important;
}

.lista-scroll {
    max-height: 620px;
    overflow-y: auto;
    padding-right: 4px;
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        z-index: 1040;
        left: -260px;
    }
    .sidebar.mobile-open {
        left: 0;
    }
}

.funil-vendas {
    display: flex;
    flex-direction: column;
}

.funil-etapa {
    width: 100%;
}

.funil-etapa + .funil-etapa {
    margin-top: .85rem;
}

.funil-etapa-cabecalho {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: .85rem;
    margin-bottom: .3rem;
}

.funil-etapa-nome {
    color: #495057;
    font-weight: 600;
}

.funil-etapa-nome i {
    color: #adb5bd;
    margin-right: .15rem;
}

.funil-etapa-valor {
    font-weight: 700;
    font-size: 1rem;
}

.funil-segmento {
    width: 100%;
    height: 34px;
    box-shadow:
        inset 0 10px 14px -10px rgba(255, 255, 255, .55),
        inset 0 -10px 14px -10px rgba(0, 0, 0, .12);
    transition: filter .15s ease, transform .15s ease;
}

.funil-etapa:hover .funil-segmento {
    filter: brightness(1.08);
}

.funil-etapa-rodape {
    font-size: .75rem;
    text-align: center;
    margin-top: .3rem;
}

.funil-seta {
    line-height: 1.4;
}

.carteira-card .card-body {
    padding: 1rem;
}

.detalhe-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .75rem;
    padding: .45rem 0;
    border-bottom: 1px solid #eee;
}

.detalhe-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detalhe-label {
    color: #868e96;
    flex-shrink: 0;
    font-size: .85rem;
}

.detalhe-valor {
    text-align: right;
    font-weight: 500;
}

.filtro-grupo-titulo {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #adb5bd;
    margin-bottom: .5rem;
}

.carteira-card .btn i {
    font-size: 1.05rem;
}

@media (max-width: 575.98px) {
    .pagination {
        justify-content: center;
        flex-wrap: wrap;
    }
}
