/* =============================================
   VARIÁVEIS GLOBAIS
   ============================================= */
:root {
    --sidebar-width: 240px;
    --sidebar-collapsed-width: 64px;
    --sidebar-bg: #343A40;
    --sidebar-border: rgba(255,255,255,0.06);
    --sidebar-accent: #ff6600;
    --sidebar-text: rgba(255,255,255,0.75);
    --sidebar-text-hover: #ffffff;
    --sidebar-item-hover: rgba(255,255,255,0.07);
    --sidebar-item-active: rgba(255,102,0,0.18);
    --topbar-bg: #ff6600;
    --transition: 0.28s cubic-bezier(.4,0,.2,1);
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #f0f2f5;
    overflow-x: hidden;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* =============================================
   SIDEBAR — novo design
   ============================================= */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    transition: width var(--transition);
    z-index: 1000;
    overflow: hidden;
    border-right: 1px solid var(--sidebar-border);
    box-shadow: 4px 0 20px rgba(0,0,0,0.18);
}

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

/* Brand / Logo */
/* Brand: logo + nome + botao toggle na mesma linha */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px 0 14px;
    border-bottom: 1px solid var(--sidebar-border);
    min-height: 64px;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
}

.sidebar-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

.sidebar-brand-text {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.03em;
    flex: 1;
    transition: opacity var(--transition), max-width var(--transition);
    max-width: 160px;
    overflow: hidden;
}

.sidebar.collapsed .sidebar-brand-text {
    opacity: 0;
    max-width: 0;
    pointer-events: none;
}

.sidebar.collapsed .sidebar-brand {
    justify-content: center;
    padding: 0 10px;
    gap: 0;
}

.sidebar.collapsed .sidebar-logo {
    display: none;
}

/* Toggle button - fica dentro do brand */
.menu-icon-btn {
    background: none;
    border: none;
    color: var(--sidebar-text);
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--transition), color var(--transition);
}

    .menu-icon-btn:hover {
        background: var(--sidebar-item-hover);
        color: #fff;
    }

.sidebar.collapsed .menu-icon-btn {
    margin: 0 auto;
}

/* Nav list */
.sidebar-nav {
    list-style: none;
    margin: 8px 0 0;
    padding: 0 8px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

    .sidebar-nav::-webkit-scrollbar {
        width: 4px;
    }

    .sidebar-nav::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.12);
        border-radius: 4px;
    }

.sidebar-nav-item {
    margin-bottom: 2px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--sidebar-text);
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--transition), color var(--transition);
    position: relative;
    overflow: hidden;
}

    .sidebar-link:hover {
        background: var(--sidebar-item-hover);
        color: var(--sidebar-text-hover);
        text-decoration: none;
    }

    .sidebar-link.active,
    .sidebar-link:focus {
        background: var(--sidebar-item-active);
        color: var(--sidebar-accent);
        text-decoration: none;
    }

.sidebar-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.sidebar-label {
    font-size: 1.00rem;
    font-weight: 500;
    transition: opacity var(--transition);
}

.sidebar.collapsed .sidebar-label {
    opacity: 0;
    pointer-events: none;
    width: 0;
    overflow: hidden;
}

/* Tooltip quando collapsed */
.sidebar.collapsed .sidebar-link {
    justify-content: center;
    gap: 0;
}

/* ===== Alertas globais (Sucesso / Aviso / Erro) — banner central bem visível ===== */
.app-alertas {
    position: fixed;
    top: 80px;                 /* abaixo da barra do topo */
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    width: min(760px, 94vw);
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.app-alerta {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    border-radius: 14px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
    animation: appAlertaIn .25s ease-out;
}

@keyframes appAlertaIn {
    from { opacity: 0; transform: translateY(-14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.app-alerta-icon {
    font-size: 1.7rem;
    flex-shrink: 0;
}

.app-alerta-texto {
    flex: 1;
}

.app-alerta-close {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 1.7rem;
    line-height: 1;
    opacity: .85;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0 4px;
}

    .app-alerta-close:hover {
        opacity: 1;
    }

.app-alerta-sucesso {
    background: linear-gradient(135deg, #1aa15a, #146c43);
}

.app-alerta-aviso {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.app-alerta-erro {
    background: linear-gradient(135deg, #e4405a, #b02a37);
}

/* ---- Grupos do menu (Financeiro / Administrativo / TI) ---- */
.sidebar-group-toggle {
    cursor: pointer;
}

.sidebar-caret {
    margin-left: auto;
    font-size: .72rem;
    opacity: .6;
    transition: transform var(--transition);
}

.sidebar-group-toggle.collapsed .sidebar-caret {
    transform: rotate(-90deg);
}

/* Submenu — remove marcadores de lista sempre */
.sidebar-subnav {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .sidebar-subnav .sidebar-nav-item {
        margin-bottom: 2px;
    }

    .sidebar-subnav .sidebar-icon {
        font-size: 1rem;
    }

/* Modo expandido: recuo + linha-guia à esquerda */
.sidebar:not(.collapsed) .sidebar-subnav {
    margin: 2px 0 6px 26px;
    border-left: 1px solid var(--sidebar-border);
    padding-left: 6px;
}

    .sidebar:not(.collapsed) .sidebar-subnav .sidebar-link {
        padding: 8px 12px;
        font-size: .92rem;
    }

/* Modo recolhido (rail de ícones): sem setas, ícones centralizados e limpos */
.sidebar.collapsed .sidebar-caret {
    display: none;
}

.sidebar.collapsed .sidebar-subnav {
    margin: 0;
    padding: 0;
    border-left: 0;
}

    .sidebar.collapsed .sidebar-subnav .sidebar-link {
        padding: 10px 12px;
        justify-content: center;
        gap: 0;
    }

/* Footer: usuario + sair */
.sidebar-footer {
    padding: 8px;
    border-top: 1px solid var(--sidebar-border);
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Bloco do usuario logado */
.sidebar-user {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    overflow: hidden;
    white-space: nowrap;
    transition: background var(--transition);
    min-width: 0;
}

.sidebar-user-avatar {
    font-size: 1.3rem;
    line-height: 1;
    color: rgba(255,255,255,0.55);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-user-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.80);
    letter-spacing: 0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
    transition: opacity var(--transition), max-width var(--transition);
    max-width: 150px;
}

/* Esconde nome quando recolhido */
.sidebar.collapsed .sidebar-user {
    justify-content: center;
    padding: 10px 0;
}

.sidebar.collapsed .sidebar-user-name {
    opacity: 0;
    max-width: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Sair */
.sidebar-link-logout {
    color: rgba(255,100,100,0.75) !important;
}

    .sidebar-link-logout:hover {
        background: rgba(220,53,69,0.12) !important;
        color: #ff6b6b !important;
    }

/* =============================================
   MAIN CONTENT
   ============================================= */
.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    transition: margin-left var(--transition), width var(--transition);
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.main-content.expanded {
    margin-left: var(--sidebar-collapsed-width);
    width: calc(100% - var(--sidebar-collapsed-width));
}

/* TOP BAR */
.top-bar {
    background: linear-gradient(135deg, #ff6600 0%, #e55a00 100%);
    padding: 0 24px;
    height: 60px;
    border-bottom: none;
    color: #fff;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1100;
    box-shadow: 0 2px 12px rgba(255,102,0,0.25);
}

    .top-bar h4 {
        font-size: 1.50rem;
        font-weight: 600;
        letter-spacing: 0.02em;
    }

.conteudo-principal {
    padding: 24px;
    margin-top: 0;
}

/* Dashboard shell */
.dashboard-shell {
    max-width: 2600px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

.mt-10px {
    margin-top: 10px;
}

#menuToggle {
    z-index: 1101;
}

.nav-tabs {
    border-bottom: none;
    margin-bottom: 1rem;
}

    .nav-tabs .nav-link {
        width: 300px;
        border: 1px solid transparent;
        border-radius: 0.75rem 0.75rem 0 0;
        padding: 0.6rem 1.2rem;
        color: #495057;
        background-color: #f1f3f5;
        margin-right: 5px;
        transition: all 0.2s ease-in-out;
        box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.05);
        font-weight: 500;
    }

        .nav-tabs .nav-link:hover {
            background-color: #e9ecef;
            color: #0d6efd;
            cursor: pointer;
        }

        .nav-tabs .nav-link.active {
            color: #0d6efd;
            background-color: #ffffff;
            border-color: #dee2e6 #dee2e6 #ffffff;
            box-shadow: 0 -3px 8px rgba(0, 0, 0, 0.08);
            z-index: 1;
        }

.bg-orange {
    background-color: #ff6600 !important;
}

.sidebar-toggle {
    padding: 0 10px;
}

    .sidebar-toggle button {
        width: 100%;
    }

.sidebar.collapsed .sidebar-toggle {
    text-align: center;
    padding: 0;
}

    .sidebar.collapsed .sidebar-toggle button {
        padding: 8px 10px;
        font-size: 1.2rem;
    }

/* menu-icon-btn definido acima */

/* Garantir que backdrop e modal estejam acima do layout */
.modal-backdrop {
    z-index: 1050 !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
}

.modal {
    z-index: 1060 !important;
}

.modal-content {
    z-index: 1070 !important;
    position: relative;
    opacity: 1 !important;
    background-color: #fff;
    padding: 1rem;
    border-radius: 0.5rem;
}

/* z-index já definido nas variáveis acima */

/* Reduz altura dos campos de filtro com form-floating */
.filtro-floating input.form-control {
    height: 42px;
    padding: 0.25rem 0.75rem;
    font-size: 0.9rem;
}

.filtro-floating label {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
}

/* --- Ajustes visuais para modais de edio e detalhes --- */
.modal .form-control {
    height: calc(2.6rem + 2px);
    padding-top: 1rem;
    padding-bottom: 0.6rem;
    font-size: 0.95rem;
}

.modal .form-floating > label {
    font-size: 0.85rem;
    padding-top: 0.3rem;
    padding-left: 0.6rem;
    color: #6c757d;
}

.modal-body .form-floating {
    margin-bottom: 1rem;
}

.bg-gray-readonly {
    background-color: #e0e0e0 !important; /* Cinza mais escuro */
}

#modalEditarPagamento .form-control {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

/* Estilo de definio (visualizao) */
.modal .row dl dt {
    font-weight: 600;
    color: #495057;
}

.modal .row dl dd {
    margin-bottom: .5rem;
}

.btn-buscar {
    width: 100px;
}

#btnBuscarProgramados i {
    margin-right: 5px;
}

/* === Fora as cores nas linhas do grid de Caixa (compatvel com table-striped) === */
.table tbody tr.linha-entrada {
    --bs-table-bg: #e9f7ef !important; /* fundo base */
    --bs-table-striped-bg: #e9f7ef !important; /* fundo quando "striped" */
    --bs-table-hover-bg: #e3f3ea !important; /* fundo no hover (um tomzinho diferente) */
    color: inherit; /* mantm a cor do texto padro */
}

.table tbody tr.linha-saida {
    --bs-table-bg: #fdecea !important;
    --bs-table-striped-bg: #fdecea !important;
    --bs-table-hover-bg: #f9e5e2 !important;
    color: inherit;
}

    /* Se quiser garantir 100% mesmo com temas, tambm pinta as clulas */
    .table tbody tr.linha-entrada > td,
    .table tbody tr.linha-saida > td {
        background-color: var(--bs-table-bg) !important;
    }

body.modal-open .top-bar {
    z-index: 1040 !important; /* abaixo do backdrop (1050) e do modal (1060) */
}

/* ================== Modais de Investimento (reset leve + cabealhos) ================== */

/* Layout bsico (sem cara prpria que brigue com o tema) */
.modal-investimento .modal-content {
    border-radius: .5rem;
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175);
}

.modal-investimento .modal-header {
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
    border-top-left-radius: .5rem;
    border-top-right-radius: .5rem;
}

.modal-investimento .modal-body {
    padding: 1rem;
}

.modal-investimento .modal-footer {
    padding: .75rem 1rem;
    border-top: 1px solid var(--bs-border-color, #dee2e6);
}

/* Form-floating estvel/legvel */
.modal-investimento .form-floating > .form-control {
    height: calc(3rem + 2px);
    padding-top: 1.1rem;
    padding-bottom: .6rem;
}

.modal-investimento .form-floating > label {
    color: #6c757d;
    font-size: .95rem;
}

/* Ttulos coloridos */
.header-investir {
    background-color: #198754; /* verde */
    color: #fff;
    border-bottom-color: rgba(255,255,255,.25);
}

.header-resgatar {
    background-color: #ffc107; /* amarelo */
    color: #212529;
    border-bottom-color: rgba(0,0,0,.08);
}

.header-desconto {
    background-color: #dc3545; /* vermelho */
    color: #fff;
    border-bottom-color: rgba(255,255,255,.25);
}

    .header-investir .modal-title,
    .header-resgatar .modal-title,
    .header-desconto .modal-title {
        color: inherit;
    }

/* Deixa o header com cantos arredondados do card */
.header-investir,
.header-resgatar,
.header-desconto {
    border-top-left-radius: .5rem;
    border-top-right-radius: .5rem;
}

/* ================== Login / Auth ================== */
.auth-bg {
    background: radial-gradient(1200px 600px at 100% -10%, rgba(255,102,0,.06), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(13,110,253,.06), transparent 55%), #f8f9fa;
}

.auth-card {
    border-radius: 16px;
    overflow: hidden; /* arredondamento tambm no header */
}

/* Badge do logo (tamanho do crculo) */
.brand-pill {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* VERSO COM FUNDO BRANCO (fixo) */
.brand-pill--solid-white {
    background: #fff; /* FUNDO BRANCO GARANTIDO */
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.12); /* d um leve destaque no header laranja */
}

/* Tamanho da imagem para no estourar o crculo */
.brand-logo-32 {
    width: 32px;
    height: 32px;
    object-fit: contain; /* mantm proporo caso a imagem mude */
}

.form-floating > .form-control {
    height: calc(3.25rem + 2px);
    padding-top: 1.1rem;
}

.form-floating .btn-link {
    text-decoration: none;
}

    .form-floating .btn-link:hover {
        color: #495057;
    }


/* ====== Login refinado ====== */
.auth-bg {
    background: radial-gradient(1100px 520px at 100% -10%, rgba(255,102,0,.06), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(13,110,253,.06), transparent 55%), #f6f7f9;
}

/* carto e header */
.auth-card-2 {
    border-radius: 16px;
}

.auth-hero {
    background: linear-gradient(180deg, #ff7114 0%, #ff6600 100%);
    position: relative;
}

.auth-curve {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -18px;
    height: 36px;
    background: #fff;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

/* marca */
.brand-pill-hero {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #fff; /* garante fundo branco no crculo */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    outline: 2px solid rgba(255,255,255,.55);
    outline-offset: 2px;
}

.brand-logo-hero {
    width: 60px; /* antes 40px */
    height: 60px;
    object-fit: contain;
}


/* tipografia do header */
.auth-title {
    font-size: 2.1rem;
    line-height: 1;
}

.auth-subtitle {
    font-weight: 500;
    font-size: 1.35rem;
    opacity: .95;
    margin-top: 15px;
}

.auth-legend {
    font-size: 1.35rem;
}

/* labels e inputs */
.auth-label {
    font-weight: 600;
    color: #212529;
}

.auth-input {
    border: 1px solid #d0d7de;
    background: #fff;
    border-radius: 12px;
    height: 50px;
    font-size: 1rem;
    transition: box-shadow .2s ease, border-color .2s ease, transform .05s ease;
}

    .auth-input::placeholder {
        color: #9aa4b2;
    }

    .auth-input:focus {
        border-color: #1d6ef0;
        box-shadow: 0 0 0 .2rem rgba(29,110,240,.12);
    }

/* alerta mais suave */
.auth-alert {
    border: 0;
    border-left: 4px solid #dc3545;
    border-radius: 10px;
    box-shadow: 0 .25rem .5rem rgba(220,53,69,.08);
}

/* boto principal com micro-interao */
.btn-auth {
    background: linear-gradient(180deg,#1a66f2 0%, #1659d6 100%);
    border: none;
    color: #fff;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: .2px;
    box-shadow: 0 .5rem 1rem rgba(22,86,236,.18), 0 .125rem .25rem rgba(0,0,0,.06) inset;
    transition: transform .05s ease, filter .2s ease, box-shadow .2s ease;
}

    .btn-auth:hover {
        filter: brightness(1.02);
    }

    .btn-auth:active {
        transform: translateY(1px);
    }

    .btn-auth:disabled {
        opacity: .75;
        cursor: not-allowed;
    }

    .btn-auth .btn-loading {
        vertical-align: -2px;
    }

/* cone do olho */
.auth-eye {
    position: absolute;
    right: .65rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
    border: 0;
    color: #6c757d;
    text-decoration: none;
}

    .auth-eye:hover {
        color: #212529;
    }

/* pequenos ajustes responsivos */
@media (max-width: 380px) {
    .brand-pill-hero {
        width: 58px;
        height: 58px;
    }

    .auth-title {
        font-size: 1.8rem;
    }

    .auth-subtitle {
        font-size: 1.15rem;
    }

    .auth-legend {
        font-size: 1.2rem;
    }
}

/* Se quiser manter os inputs mais compactos, use sua classe j prevista */
.filtro-floating input.form-control {
    height: calc(3.5rem + 2px); /* garante consistncia */
}

tr.desc-row > td {
    background: #f8f9fa;
}


/* Coluna de Data de Vencimento mais compacta */
.col-venc {
    width: 220px; /* ajuste fino aqui (ex.: 100140px) */
    white-space: nowrap; /* evita quebrar a data */
}

.col-acoes {
    width: 280px; /* ajuste aqui: 260320px conforme precisar */
    white-space: nowrap;
}

/* ==================== LOGIN (estilo do mock) ==================== */
.login-bg {
    /* laranja -> mais claro (mock) */
    background: radial-gradient(1200px 800px at 0% 0%, rgba(255,255,255,.06), transparent 55%), linear-gradient(135deg, #ff9833 0%, #ff7a1a 35%, #ff6600 100%);
}

.login-card {
    background: #fff;
    border-radius: 24px;
    padding: 28px 26px;
}

.login-title {
    font-weight: 400;
    color: #111;
    letter-spacing: .8px;
    padding-bottom: 15px;
}

/* Campo com cone  esquerda */
.input-icon {
    position: relative;
}

    .input-icon > i {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.1rem;
        color: #9aa4b2;
        pointer-events: none;
    }

    .input-icon > .form-control {
        padding-left: 42px; /* espao pro cone */
    }

/* Inputs com cantos grandes (igual carto) */
.input-pill {
    border-radius: 14px;
    height: 50px;
    border: 1px solid #e0e3e8;
    background: #fff;
    font-size: 1rem;
    transition: box-shadow .2s ease, border-color .2s ease;
}

.login-card {
    background: #fff;
    border-radius: 24px;
    padding: 50px 20px; /* mais espaoso */
    max-width: 1000px;
    min-height: 410px; /* garante altura */
}

/* sobe apenas o cabealho (logo + ttulo) dentro do card */
.login-header {
    margin-top: -12px; /* ajuste fino: -6, -12, -16px */
}

/* opcional: d um respiro abaixo do ttulo, sem afetar o topo */
.login-title {
    margin-top: 10px;
    margin-bottom: 15px; /* ajuste se quiser mais/menos espao antes dos inputs */
}

.pb-entrar {
    padding-bottom: 15px;
}

/* (vrios blocos antigos de dash-card ainda existem acima,
   mas sero sobrescritos pelo bloco final l embaixo) */

/* deixa o grfico de clientes livre para o JS controlar a altura */
#chartRecPorCliente {
    height: auto !important;
}

#chartProj {
    height: 220px !important;
}

.form-floating > textarea.form-control {
    padding-top: 1.625rem;
}

    .form-floating > textarea.form-control::placeholder {
        color: transparent;
    }

.modal .form-label {
    margin-top: .5rem;
}

.modal .form-control {
    padding-top: .6rem;
    padding-bottom: .6rem;
}

/* --- Floating label estvel nos MODAIS de investimento --- */
.modal-investimento .form-floating > .form-control {
    height: calc(3.25rem + 2px);
    padding-top: 1.1rem; /* espao para o label dentro do campo */
    padding-bottom: .55rem;
}

/* Textarea precisa de mais respiro no topo */
.modal-investimento .form-floating > textarea.form-control {
    min-height: 7rem;
    padding-top: 1.9rem;
}

/* Posio/escala do label quando "preenchido" ou em foco */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > textarea.form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-control.is-filled ~ label { /* suporte para datetime-local */
    opacity: .65;
    transform: scale(.85) translateY(-.5rem) translateX(.15rem);
}

/* ====== Abas me (bancos) ====== */
#bancosTabs #banco-itau-tab.active {
    color: #ff7a00;
    width: 300px;
    border-color: #ff7a00 #ff7a00 #ffffff;
}

#bancosTabs #banco-santander-tab.active {
    color: #dc3545;
    width: 300px;
    border-color: #dc3545 #dc3545 #ffffff;
}

/* ====== Abas internas Ita ====== */
#tabsInternasItau .nav-link.active {
    background-color: #ff7a00;
    color: #ffffff;
}

/* ====== Abas internas Santander ====== */
#tabsInternasSantander .nav-link.active {
    background-color: #dc3545;
    color: #ffffff;
}

/* ====== Botes Buscar - Ita (laranja) ====== */
.btn-itau {
    background-color: #ff7a00;
    border-color: #ff7a00;
    color: #ffffff;
}

    .btn-itau:hover {
        background-color: #e36f00;
        border-color: #e36f00;
        color: #ffffff;
    }

/* ====== Botes Buscar - Santander (vermelho) ====== */
.btn-santander {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #ffffff;
}

    .btn-santander:hover {
        background-color: #c82333;
        border-color: #c82333;
        color: #ffffff;
    }

/* ====== Cards resumo Ita (Caixa / Investimentos) ====== */
.card-itau-resumo {
    background-color: #ff7a00;
    color: #ffffff;
    border: none;
    box-shadow: 0 .25rem .75rem rgba(0,0,0,.12);
}

    .card-itau-resumo .card-title {
        color: #ffffff;
        font-weight: 500
    }

/* ====== Cards resumo Santander (Caixa / Investimentos) ====== */
.card-santander-resumo {
    background-color: #dc3545; /* mesma cor dos botes Santander */
    color: #ffffff;
    border: none;
    box-shadow: 0 .25rem .75rem rgba(0,0,0,.12);
}

    .card-santander-resumo .card-title {
        color: #ffffff;
        font-weight: 500;
    }

/* ---- SUBTABS BASE ---- */
.caixa-subtabs-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 1rem;
}

.caixa-subtabs {
    display: inline-flex;
    border-radius: 999px;
    background: #f5f6fa;
    padding: 4px;
}

    /* padro (Ita) = laranja */
    .caixa-subtabs .nav-link.active {
        background: #ff5808 !important; /* laranja */
        color: #fff !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    }

    .caixa-subtabs .nav-link {
        border-radius: 999px;
        padding: 0.35rem 1.4rem;
        font-weight: 500;
        font-size: 0.9rem;
        color: #495057;
        border: none;
        transition: all 0.15s ease;
    }

        .caixa-subtabs .nav-link:not(.active) {
            background: transparent !important;
            color: #6c757d !important;
        }

        .caixa-subtabs .nav-link:hover:not(.active) {
            background: rgba(0,0,0,0.03) !important;
        }

    /* ---- SANTANDER (vermelho) ---- */
    .caixa-subtabs.santander .nav-link.active {
        background: #d72626 !important; /* vermelho */
        color: #fff !important;
    }

.dash-provisao {
    background: linear-gradient(180deg, #ff7a00 0%, #ff5808 100%); /* laranja */
}

/* cards compactos genricos (usados em outros lugares) */
.dashboard-card {
    flex: 1; /* divide igualmente o espao */
    min-width: 200px; /* garante que no quebre */
    max-width: 240px; /* deixa compacto */
    padding: 10px 12px !important;
}

    .dashboard-card h5 {
        font-size: 0.95rem !important;
        margin-bottom: 4px !important;
    }

    .dashboard-card .value-big {
        font-size: 1.15rem !important;
        font-weight: 700;
    }

    .dashboard-card .value-sub {
        font-size: 0.75rem !important;
        opacity: 0.85;
    }

/* =========================================================
   NOVO LAYOUT DOS CARDS DO DASHBOARD (sobrescreve antigos)
   ========================================================= */

:root {
    --dash-radius: 16px;
    --dash-shadow: 0 10px 24px rgba(0, 0, 0, .08);
}

/* linha dos 5 cards */
.dash-cards {
    margin-bottom: 8px;
}

    /* todas as colunas dentro da linha dos cards viram flex para igualar altura */
    .dash-cards > [class^="col-"],
    .dash-cards > [class*=" col-"] {
        display: flex;
    }

.dash-card {
    position: relative;
    border-radius: var(--dash-radius);
    padding: 16px 16px 12px 16px;
    color: #fff;
    box-shadow: var(--dash-shadow);
    width: 100%;
    overflow: hidden;
    border: 0;
    min-height: 120px;
}

.dash-title {
    font-size: 1.05rem;
    font-weight: 600;
    opacity: .95;
    margin-bottom: 2px;
}

.dash-value {
    font-size: 2.1rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: .3px;
}

.dash-sub {
    margin-top: .25rem;
    font-weight: 500;
    opacity: .9;
    font-size: 1rem;
}

    .dash-sub > span + span {
        margin-left: 16px;
    }

.dash-corner {
    position: absolute;
    right: 12px;
    top: 10px;
    font-weight: 700;
    opacity: .85;
}

/* Responsivo */
@media (min-width: 1400px) {
    .dash-value {
        font-size: 2.3rem;
    }
}

@media (max-width: 991.98px) {
    .dash-card {
        min-height: 110px;
    }

    .dash-value {
        font-size: 1.8rem;
    }

    .dash-title {
        font-size: .95rem;
    }
}

/* Cores dos cards */
.dash-provisao {
    background: linear-gradient(180deg, #ff7a00 0%, #ff5808 100%);
}

.dash-blue {
    background: linear-gradient(180deg,#1b3b7a 0%, #254b9b 100%);
}

.dash-green {
    background: linear-gradient(180deg,#1f6f43 0%, #2e8b57 100%);
}

.dash-slate {
    background: linear-gradient(180deg,#263238 0%, #344048 100%);
}

.dash-purple {
    background: linear-gradient(180deg,#4e3d7a 0%, #6b55a3 100%);
}

.dash-red {
    background: linear-gradient(180deg,#b3212d 0%, #dc3545 100%);
}

/* ====== SOMBRA PREMIUM PARA OS GRFICOS ====== */
.card.card-grafico {
    border-radius: 22px !important; /* cantos grandes */
    background: #ffffff;
    border: 0;
    padding: 18px 22px;
    /* SOMBRA PROFUNDA (C4-B) */
    box-shadow: 0 8px 20px rgba(0,0,0,0.10), 0 18px 32px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04); /* borda suave */
}

/* Alturas dos grficos principais */
#chartPagPorTipo {
    height: 260px !important;
}

#chartRecPorCliente {
    height: 300px !important;
}

#chartProj {
    height: 260px !important;
}



/*Novo Dashboard*/
/* ===========================
   DASHBOARD (somente Home/Index)
   Escopo: .dash-modern
   =========================== */

.dash-modern {
    --bg: #f6f7fb;
    --text: #1f2a37;
    --muted: #6b7280;
    --card: #ffffff;
    --border: #e5e7eb;
    /* Gradientes (baseado no projeto React) */
    --g-orange-1: #ff8a2a;
    --g-orange-2: #ff6a1a;
    --g-blue-1: #4f7cff;
    --g-blue-2: #2f5bff;
    --g-green-1: #22c55e;
    --g-green-2: #169c4a;
    --g-teal-1: #06b6d4;
    --g-teal-2: #0592aa;
    --g-purple-1: #a855f7;
    --g-purple-2: #7c3aed;
    --g-rose-1: #f43f5e;
    --g-rose-2: #e11d48;
}

    /* Fundo do contedo do dashboard (s no miolo) */
    .dash-modern .dash-wrap {
        background: var(--bg);
        padding: 20px;
        border-radius: 16px;
    }

    /* Header sticky do dashboard */
    .dash-modern .dash-header {
        position: sticky;
        top: 0;
        z-index: 10;
        background: rgba(255, 255, 255, 0.78);
        backdrop-filter: blur(10px);
        border: 1px solid var(--border);
        border-radius: 14px;
        padding: 14px 18px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 16px;
    }

    .dash-modern .dash-title {
        margin: 0;
        font-weight: 800;
        font-size: 22px;
        color: var(--text);
        line-height: 1.1;
    }

    .dash-modern .dash-subtitle {
        margin: 2px 0 0;
        font-size: 13px;
        color: var(--muted);
        font-weight: 600;
    }

    .dash-modern .dash-period {
        font-size: 13px;
        color: var(--muted);
        font-weight: 700;
    }

    /* Grid de cards */
    .dash-modern .dash-cards {
        display: grid;
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 14px;
        margin-bottom: 16px;
    }

@media (min-width: 640px) {
    .dash-modern .dash-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .dash-modern .dash-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Card com gradiente */
.dash-modern .dash-card-grad {
    border-radius: 16px;
    padding: 16px 16px;
    color: #fff;
    box-shadow: 0 10px 22px rgba(0,0,0,0.10);
    transition: box-shadow .2s ease, transform .2s ease;
}

    .dash-modern .dash-card-grad:hover {
        box-shadow: 0 14px 28px rgba(0,0,0,0.14);
        transform: translateY(-1px);
    }

    .dash-modern .dash-card-grad .top {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
    }

    .dash-modern .dash-card-grad .label {
        font-size: 13px;
        font-weight: 700;
        opacity: .92;
        margin: 0;
    }

    .dash-modern .dash-card-grad .value {
        font-size: 26px;
        font-weight: 900;
        letter-spacing: -0.02em;
        margin: 2px 0 0;
    }

    .dash-modern .dash-card-grad .sub {
        font-size: 12px;
        font-weight: 700;
        opacity: .78;
        margin-top: 10px;
    }

.dash-modern .dash-iconbox {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.18);
    display: grid;
    place-items: center;
}

    /* Se voc usar <i class="bi bi-..."> */
    .dash-modern .dash-iconbox i {
        font-size: 18px;
        color: #fff;
    }

/* Gradientes */
.dash-modern .grad-orange {
    background: linear-gradient(135deg, var(--g-orange-1), var(--g-orange-2));
}

.dash-modern .grad-blue {
    background: linear-gradient(135deg, var(--g-blue-1), var(--g-blue-2));
}

.dash-modern .grad-green {
    background: linear-gradient(135deg, var(--g-green-1), var(--g-green-2));
}

.dash-modern .grad-teal {
    background: linear-gradient(135deg, var(--g-teal-1), var(--g-teal-2));
}

.dash-modern .grad-purple {
    background: linear-gradient(135deg, var(--g-purple-1), var(--g-purple-2));
}

.dash-modern .grad-rose {
    background: linear-gradient(135deg, var(--g-rose-1), var(--g-rose-2));
}

/* Cards brancos de contedo (grficos) */
.dash-modern .dash-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 16px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.05);
    margin-top: 14px;
}

    .dash-modern .dash-card h3 {
        margin: 0 0 12px;
        font-size: 16px;
        font-weight: 800;
        color: var(--text);
    }

/* Canvas responsivo (se estiver usando Chart.js) */
.dash-modern .dash-canvas {
    width: 100% !important;
    height: 320px !important;
}

@media (max-width: 576px) {
    .dash-modern .dash-canvas {
        height: 260px !important;
    }
}

/* ===========================
   DASHBOARD (somente Home/Index)
   Escopo: .dash-modern
   =========================== */

.dash-modern {
    --bg: #f6f7fb;
    --text: #1f2a37;
    --muted: #6b7280;
    --card: #ffffff;
    --border: #e5e7eb;
    /* Gradientes (baseado no projeto React) */
    --g-orange-1: #ff8a2a;
    --g-orange-2: #ff6a1a;
    --g-blue-1: #4f7cff;
    --g-blue-2: #2f5bff;
    --g-green-1: #22c55e;
    --g-green-2: #169c4a;
    --g-teal-1: #06b6d4;
    --g-teal-2: #0592aa;
    --g-purple-1: #a855f7;
    --g-purple-2: #7c3aed;
    --g-rose-1: #f43f5e;
    --g-rose-2: #e11d48;
}

    /* Fundo do contedo do dashboard (s no miolo) */
    .dash-modern .dash-wrap {
        background: var(--bg);
        padding: 20px;
        border-radius: 16px;
    }

    /* Header sticky do dashboard */
    .dash-modern .dash-header {
        position: sticky;
        top: 0;
        z-index: 10;
        background: rgba(255, 255, 255, 0.78);
        backdrop-filter: blur(10px);
        border: 1px solid var(--border);
        border-radius: 14px;
        padding: 14px 18px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 16px;
    }

    .dash-modern .dash-title {
        margin: 0;
        font-weight: 600;
        font-size: 22px;
        color: #ff6600;
        line-height: 1.1;
    }

    .dash-modern .dash-subtitle {
        margin: 2px 0 0;
        font-size: 13px;
        color: var(--muted);
        font-weight: 600;
    }

    .dash-modern .dash-period {
        font-size: 13px;
        color: var(--muted);
        font-weight: 700;
    }

    /* Grid de cards */
    .dash-modern .dash-cards {
        display: grid;
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 14px;
        margin-bottom: 16px;
    }

@media (min-width: 640px) {
    .dash-modern .dash-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .dash-modern .dash-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Card com gradiente */
.dash-modern .dash-card-grad {
    border-radius: 16px;
    padding: 16px 16px;
    color: #fff;
    box-shadow: 0 10px 22px rgba(0,0,0,0.10);
    transition: box-shadow .2s ease, transform .2s ease;
}

    .dash-modern .dash-card-grad:hover {
        box-shadow: 0 14px 28px rgba(0,0,0,0.14);
        transform: translateY(-1px);
    }

    .dash-modern .dash-card-grad .top {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
    }

    .dash-modern .dash-card-grad .label {
        font-size: 13px;
        font-weight: 700;
        opacity: .92;
        margin: 0;
    }

    .dash-modern .dash-card-grad .value {
        font-size: 26px;
        font-weight: 900;
        letter-spacing: -0.02em;
        margin: 2px 0 0;
    }

    .dash-modern .dash-card-grad .sub {
        font-size: 12px;
        font-weight: 700;
        opacity: .78;
        margin-top: 10px;
    }

.dash-modern .dash-iconbox {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.18);
    display: grid;
    place-items: center;
}

    /* Se voc usar <i class="bi bi-..."> */
    .dash-modern .dash-iconbox i {
        font-size: 18px;
        color: #fff;
    }

/* Gradientes */
.dash-modern .grad-orange {
    background: linear-gradient(135deg, var(--g-orange-1), var(--g-orange-2));
}

.dash-modern .grad-blue {
    background: linear-gradient(135deg, var(--g-blue-1), var(--g-blue-2));
}

.dash-modern .grad-green {
    background: linear-gradient(135deg, var(--g-green-1), var(--g-green-2));
}

.dash-modern .grad-teal {
    background: linear-gradient(135deg, var(--g-teal-1), var(--g-teal-2));
}

.dash-modern .grad-purple {
    background: linear-gradient(135deg, var(--g-purple-1), var(--g-purple-2));
}

.dash-modern .grad-rose {
    background: linear-gradient(135deg, var(--g-rose-1), var(--g-rose-2));
}

/* Cards brancos de contedo (grficos) */
.dash-modern .dash-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 16px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.05);
    margin-top: 14px;
}

    .dash-modern .dash-card h3 {
        margin: 0 0 12px;
        font-size: 16px;
        font-weight: 800;
        color: var(--text);
    }

/* Canvas responsivo (se estiver usando Chart.js) */
.dash-modern .dash-canvas {
    width: 100% !important;
    height: 320px !important;
}

@media (max-width: 576px) {
    .dash-modern .dash-canvas {
        height: 260px !important;
    }
}

/* ===========================
   DASHBOARD (Lovable charts)
   Escopo: .dash-modern
   =========================== */

.dash-modern .dash-chart-card {
    background: #fff;
    border-radius: 22px;
    border: 1px solid rgba(17,24,39,.06);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08), 0 18px 36px rgba(0,0,0,0.06);
    overflow: hidden;
}

.dash-modern .dash-chart-head {
    padding: 18px 22px 10px 22px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.dash-modern .dash-chart-title {
    font-size: 18px;
    font-weight: 900;
    color: #111827; /* quase preto */
    letter-spacing: -0.01em;
}

.dash-modern .dash-chart-sub {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 650;
    color: #6b7280; /* cinza Lovable */
}

.dash-modern .dash-chart-body {
    padding: 0 22px 18px 22px;
}

    /* Deixa o canvas ocupar certinho o espaço do wrapper */
    .dash-modern .dash-chart-body canvas {
        width: 100% !important;
        height: 100% !important;
    }

/* Gridline “levinho” (o Chart.js usa canvas, mas isso ajuda o entorno) */
.dash-modern .dash-chart-card {
    background-image: linear-gradient(to bottom, rgba(17,24,39,.03), rgba(17,24,39,0));
}

/* =========================================================
   GRÁFICOS DO DASHBOARD (Lovable-like) - SOMENTE GRÁFICOS
   Requer o Index.cshtml com:
   .chart-card-body, .chart-title, .chart-area, .chart-h-320
   ========================================================= */

.dash-modern .card.card-grafico {
    border-radius: 16px !important;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05) !important;
    padding: 0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05), 0 12px 28px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.dash-modern .card.card-grafico:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 16px 40px rgba(0,0,0,0.09);
    transform: translateY(-1px);
}

.dash-modern .chart-card-body {
    padding: 22px 26px !important;
}

.dash-modern .chart-title {
    margin: 0 0 20px 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1f2a37;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-modern .chart-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, #ff6600, #ff8c40);
    border-radius: 4px;
    flex-shrink: 0;
}

.dash-modern .chart-area {
    position: relative;
    width: 100%;
}

.dash-modern .chart-h-320 {
    height: 340px;
}

.dash-modern .chart-area canvas {
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 576px) {
    .dash-modern .chart-h-320 {
        height: 260px;
    }

    .dash-modern .chart-card-body {
        padding: 18px !important;
    }

    .dash-modern .chart-title {
        font-size: 16px;
        margin-bottom: 14px;
    }
}

/* IMPORTANTE: remove conflitos de altura no canvas */
#chartPagPorTipo,
#chartRecPorCliente,
#chartProj,
#chartRent {
    height: auto !important;
}

/* ===========================
   LOGIN (Lovable-style) - Scoped
   =========================== */

.pr-auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Helvetica Neue", sans-serif;
    color: #111827;
}

/* Fundo suave/clean */
.pr-auth-bg {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: radial-gradient(circle at 20% 10%, rgba(249, 115, 22, 0.10), transparent 35%), radial-gradient(circle at 80% 20%, rgba(0, 0, 0, 0.06), transparent 40%), linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(243,244,246,0.9) 55%, rgba(255,255,255,1) 100%);
}

.pr-auth-wrap {
    width: 100%;
    max-width: 420px;
    display: grid;
    gap: 16px;
}

.pr-auth-header {
    text-align: center;
}

.pr-auth-logo {
    width: 240px; /* controla o “tamanho bonito” como no Lovable */
    max-width: 80%;
    height: auto;
    display: inline-block;
    margin-bottom: 14px;
}

.pr-auth-title {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
    color: #111827;
}

.pr-auth-subtitle {
    margin: 8px 0 0 0;
    font-size: 14px;
    color: #6b7280;
}

/* Card com blur */
.pr-auth-card {
    border: 1px solid rgba(229,231,235,0.7);
    border-radius: 16px;
    background: rgba(255,255,255,0.86);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 14px 30px -18px rgba(17, 24, 39, 0.35);
    overflow: hidden;
}

.pr-auth-card-head {
    padding: 18px 18px 10px 18px;
}

.pr-auth-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #111827;
}

.pr-auth-card-desc {
    margin: 6px 0 0 0;
    font-size: 13px;
    color: #6b7280;
}

.pr-auth-card-body {
    padding: 14px 18px 18px 18px;
}

/* Alerta */
.pr-auth-alert {
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 12px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #b91c1c;
    font-size: 13px;
}

/* Campos */
.pr-auth-field {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
}

.pr-auth-label {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
}

.pr-auth-inputwrap {
    position: relative;
}

    .pr-auth-inputwrap i {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #9ca3af;
        font-size: 16px;
        pointer-events: none;
    }

.pr-auth-input {
    width: 100%;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 0 12px 0 40px; /* espaço pro ícone */
    outline: none;
    background: #fff;
    transition: box-shadow 0.2s, border-color 0.2s;
}

    .pr-auth-input:focus {
        border-color: rgba(249, 115, 22, 0.55);
        box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
    }

.pr-auth-validation {
    font-size: 12px;
    color: #b91c1c;
}

/* Botão principal (gradiente laranja) */
.pr-auth-btn {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    box-shadow: 0 10px 18px -14px rgba(17, 24, 39, 0.45);
    transition: transform 0.05s, opacity 0.2s;
}

    .pr-auth-btn:hover {
        opacity: 0.92;
    }

    .pr-auth-btn:active {
        transform: translateY(1px);
    }

    .pr-auth-btn:disabled {
        opacity: 0.65;
        cursor: not-allowed;
    }

.pr-auth-forgot {
    margin-top: 14px;
    text-align: center;
}

.pr-auth-link {
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
}

    .pr-auth-link:hover {
        color: #f97316;
        text-decoration: underline;
    }

.pr-auth-footer {
    text-align: center;
    font-size: 12px;
    color: #6b7280;
    padding-top: 2px;
}

/* ===========================
   LOGIN (Lovable-like) - ONLY on body.auth-page
   =========================== */
body.auth-page {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Helvetica Neue", sans-serif;
    color: #0f172a;
    background: #f6f7fb;
    overflow-x: hidden;
}

    body.auth-page .auth-shell {
        min-height: 100vh;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    /* LEFT */
    body.auth-page .auth-left {
        background: radial-gradient(1200px 700px at 0% 0%, rgba(255, 122, 0, 0.10), transparent 55%), linear-gradient(180deg, #ffffff 0%, #f7f7fb 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px 26px;
    }

    body.auth-page .auth-left-inner {
        width: 100%;
        max-width: 520px;
    }

    /* brand */
    body.auth-page .auth-brand {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 26px;
    }

    body.auth-page .auth-brand-logo {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: #fff;
        border: 1px solid rgba(15,23,42,.08);
        box-shadow: 0 10px 24px rgba(0,0,0,.08);
        display: grid;
        place-items: center;
    }

    body.auth-page .auth-mark {
        width: 22px;
        height: 22px;
        border-radius: 6px;
        background: linear-gradient(135deg, #ff8a2a, #ff6600);
        display: inline-block;
    }

    body.auth-page .auth-brand-text {
        display: grid;
        line-height: 1.05;
    }

    body.auth-page .auth-brand-name {
        font-weight: 900;
        letter-spacing: .5px;
    }

    body.auth-page .auth-brand-sub {
        font-weight: 800;
        color: rgba(15,23,42,.55);
        letter-spacing: .6px;
        font-size: 12px;
    }

    /* title */
    body.auth-page .auth-title {
        font-size: 30px;
        line-height: 1.05;
        margin: 0;
        font-weight: 900;
    }

    body.auth-page .auth-subtitle {
        margin: 10px 0 22px 0;
        font-size: 18px;
        font-weight: 650;
        color: rgba(15,23,42,.65);
    }

    /* card */
    body.auth-page .auth-card {
        background: rgba(255,255,255,.92);
        border: 1px solid rgba(15,23,42,.08);
        border-radius: 18px;
        box-shadow: 0 18px 40px rgba(2,6,23,.12);
        padding: 22px;
    }

    body.auth-page .auth-alert {
        border-radius: 12px;
        padding: 10px 12px;
        margin-bottom: 14px;
        background: rgba(239, 68, 68, 0.08);
        border: 1px solid rgba(239, 68, 68, 0.22);
        color: #b91c1c;
        font-size: 13px;
    }

    body.auth-page .auth-field {
        margin-bottom: 14px;
    }

    body.auth-page .auth-label {
        display: block;
        font-size: 13px;
        font-weight: 800;
        margin-bottom: 6px;
        color: #0f172a;
    }

    body.auth-page .auth-input-wrap {
        position: relative;
    }

    body.auth-page .auth-input-icon {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #9aa4b2;
        font-size: 16px;
        pointer-events: none;
    }

    body.auth-page .auth-input {
        width: 100%;
        height: 46px;
        border-radius: 12px;
        border: 1px solid rgba(15,23,42,.12);
        padding: 0 12px 0 40px;
        outline: none;
        background: #fff;
        transition: box-shadow .2s ease, border-color .2s ease;
    }

        body.auth-page .auth-input:focus {
            border-color: rgba(249,115,22,.55);
            box-shadow: 0 0 0 4px rgba(249,115,22,.14);
        }

    body.auth-page .auth-eye {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        border: 0;
        background: transparent;
        color: #6b7280;
        padding: 4px 6px;
    }

    body.auth-page .auth-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 10px 0 14px 0;
        gap: 10px;
    }

    body.auth-page .auth-check {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        font-weight: 650;
        color: rgba(15,23,42,.72);
    }

    body.auth-page .auth-link {
        font-size: 13px;
        font-weight: 750;
        color: #ff6600;
        text-decoration: none;
    }

        body.auth-page .auth-link:hover {
            text-decoration: underline;
        }

    body.auth-page .btn-auth {
        width: 100%;
        height: 46px;
        border: 0;
        border-radius: 12px;
        cursor: pointer;
        font-weight: 900;
        color: #fff;
        background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
        box-shadow: 0 12px 22px rgba(249,115,22,.22);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        transition: transform .05s, opacity .2s;
    }

        body.auth-page .btn-auth:hover {
            opacity: .94;
        }

        body.auth-page .btn-auth:active {
            transform: translateY(1px);
        }

    body.auth-page .auth-footer {
        margin-top: 14px;
        display: flex;
        gap: 8px;
        justify-content: center;
        color: rgba(15,23,42,.62);
        font-size: 13px;
        font-weight: 650;
    }

    body.auth-page .auth-copy {
        margin-top: 18px;
        font-size: 12px;
        color: rgba(15,23,42,.55);
    }

    /* RIGHT */
    body.auth-page .auth-right {
        background: radial-gradient(circle at 25% 15%, rgba(255,255,255,.18), transparent 40%), radial-gradient(circle at 70% 70%, rgba(255,255,255,.12), transparent 42%), linear-gradient(135deg, #ff9833 0%, #ff7a1a 40%, #ff6600 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 48px 32px;
        color: #fff;
    }

    body.auth-page .auth-right-inner {
        width: 100%;
        max-width: 620px;
    }

    body.auth-page .auth-hero-title {
        font-size: 44px;
        line-height: 1.1;
        margin: 0 0 14px 0;
        font-weight: 900;
    }

    body.auth-page .auth-hero-subtitle {
        margin: 0 0 26px 0;
        font-size: 16px;
        font-weight: 650;
        opacity: .92;
    }

    body.auth-page .auth-feature-list {
        display: grid;
        gap: 14px;
        margin-top: 22px;
    }

    body.auth-page .auth-feature {
        display: flex;
        gap: 14px;
        align-items: center;
        padding: 14px 16px;
        border-radius: 14px;
        background: rgba(255,255,255,.14);
        border: 1px solid rgba(255,255,255,.18);
        backdrop-filter: blur(6px);
    }

    body.auth-page .auth-feature-ico {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        display: grid;
        place-items: center;
        background: rgba(255,255,255,.18);
    }

        body.auth-page .auth-feature-ico i {
            font-size: 20px;
            color: #fff;
        }

    body.auth-page .auth-feature-title {
        font-weight: 900;
        font-size: 16px;
    }

    body.auth-page .auth-feature-desc {
        opacity: .92;
        font-weight: 650;
        font-size: 13px;
    }

/* Responsive */
@media (max-width: 992px) {
    body.auth-page .auth-shell {
        grid-template-columns: 1fr;
    }

    body.auth-page .auth-right {
        order: 2;
        padding: 30px 22px;
    }

    body.auth-page .auth-left {
        order: 1;
        padding: 30px 18px;
    }

    body.auth-page .auth-title,
    body.auth-page .auth-hero-title {
        font-size: 34px;
    }
}

/* =========================================================
   LOGIN - AJUSTE DE FONTES (match do print)
   Cole ESTE BLOCO NO FINAL do site.css
   Escopo: body.auth-page (não afeta outras telas)
   ========================================================= */

body.auth-page {
    /* Se você não tiver Inter instalado, cai para o stack abaixo */
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

    /* Marca PRUMMA TECHNOLOGIES (topo) */
    body.auth-page .auth-brand-name {
        font-size: 14px; /* PRUMMA */
        font-weight: 900;
        letter-spacing: 0.8px;
    }

    body.auth-page .auth-brand-sub {
        font-size: 14px; /* TECHNOLOGIES */
        font-weight: 800;
        letter-spacing: 0.6px;
        color: rgba(15, 23, 42, .50);
    }

    /* Título e subtítulo (lado esquerdo) */
    body.auth-page .auth-title {
        font-size: 30px; /* Bem-vindo de volta */
        line-height: 1.08;
        font-weight: 500;
        letter-spacing: -0.02em;
    }

    body.auth-page .auth-subtitle {
        font-size: 16px; /* Acesse sua conta... */
        line-height: 1.4;
        font-weight: 500;
        color: rgba(15, 23, 42, .55);
    }

    /* Labels e inputs do formulário */
    body.auth-page .auth-label {
        font-size: 14px; /* E-mail / Senha */
        font-weight: 700;
        letter-spacing: 0;
    }

    body.auth-page .auth-input {
        font-size: 16px; /* texto digitado */
        font-weight: 500;
    }

        body.auth-page .auth-input::placeholder {
            font-weight: 500;
            color: rgba(15, 23, 42, .40);
        }

    /* Lembrar-me / Esqueceu a senha? */
    body.auth-page .auth-check {
        font-size: 14px;
        font-weight: 500;
        color: rgba(15, 23, 42, .55);
    }

    body.auth-page .auth-link {
        font-size: 14px;
        font-weight: 700;
    }

    /* Botão Entrar */
    body.auth-page .btn-auth {
        font-size: 16px;
        font-weight: 700;
        letter-spacing: 0;
    }

    /* Rodapé: "Não tem uma conta?" */
    body.auth-page .auth-footer {
        font-size: 14px;
        font-weight: 500;
        color: rgba(15, 23, 42, .55);
    }

    /* Copyright */
    body.auth-page .auth-copy {
        font-size: 12px;
        font-weight: 500;
        color: rgba(15, 23, 42, .45);
    }

    /* =======================
   Lado direito (laranja)
   ======================= */

    body.auth-page .auth-hero-title {
        font-size: 28px; /* Gerencie suas finanças... */
        line-height: 1.12;
        font-weight: 500;
        letter-spacing: -0.02em;
    }

    body.auth-page .auth-hero-subtitle {
        font-size: 16px;
        line-height: 1.5;
        font-weight: 500;
        opacity: .92;
    }

    /* Cards de features */
    body.auth-page .auth-feature-title {
        font-size: 16px;
        font-weight: 700;
    }

    body.auth-page .auth-feature-desc {
        font-size: 14px;
        font-weight: 500;
        opacity: .92;
    }

/* Ajuste fino para telas menores */
@media (max-width: 992px) {
    body.auth-page .auth-title,
    body.auth-page .auth-hero-title {
        font-size: 34px;
    }

    body.auth-page .auth-subtitle,
    body.auth-page .auth-hero-subtitle {
        font-size: 15px;
    }

    /* Ajuste fino da logo no login */
    body.auth-page .auth-logo-img {
        height: 42px; /* tamanho ideal proporcional ao título */
        width: auto;
        max-width: 240px; /* impede estourar */
        object-fit: contain;
        display: block;
    }
}

/* ===========================
   LOGO PRUMMA (LOGIN)
   =========================== */

/* garante que o container não estoure */
body.auth-page .auth-brand {
    max-width: 520px;
}

/* limita a logo */
body.auth-page .auth-logo-img {
    height: 60px; /* ajuste fino: 38~48 */
    width: auto;
    max-width: 400px; /* impede passar do layout */
    object-fit: contain;
    display: block;
}

.col-acoes {
    width: 110px;
    white-space: nowrap;
    text-align: center;
}

.top-bar {
    height: 65px;
}

.topbar-logo img {
    height: 65px;
}

    .topbar-logo img:hover {
        transform: scale(1.05);
    }