:root {
    color-scheme: dark;
    --fundo: #16181d;
    --painel: #1e2128;
    --borda: #2a2e39;
    --texto: #f0f2f5;
    --suave: #a3a9b5;
    --verde: #10b981;
    --verde-texto: #61dbb0;
    --verde-fundo: #19392f;
    --lateral: 232px;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--fundo); color: var(--texto); font: 14px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--verde-texto); text-decoration: none; }
a:hover { color: #92e9c9; }
:focus-visible { outline: 2px solid #61dbb0; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 1.55rem; font-weight: 650; letter-spacing: -.035em; }
h2 { font-size: 1rem; font-weight: 650; letter-spacing: -.015em; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
small, .secundario { color: var(--suave); }
.icone { width: 21px; height: 21px; flex: 0 0 auto; }
.estrutura { min-height: 100vh; }
.marca { display: flex; align-items: center; gap: .7rem; color: var(--texto); font-size: 1.08rem; font-weight: 750; letter-spacing: -.03em; }
.marca-sinal { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; background: var(--verde); color: #052e22; font-size: 19px; font-weight: 850; }
.marca-ivod { color: var(--suave); font-weight: 500; }
.marca-link { display: inline-block; margin: 0 .45rem 2.6rem; }
.lateral { position: fixed; z-index: 35; inset: 0 auto 0 0; display: flex; flex-direction: column; width: var(--lateral); padding: 28px 16px 20px; background: var(--painel); border-right: 1px solid var(--borda); }
.navegacao { display: grid; gap: 7px; }
.navegacao a { display: flex; align-items: center; gap: 12px; min-height: 47px; padding: 11px 13px; border-radius: 12px; color: #afb5c0; font-size: 13px; font-weight: 550; }
.navegacao a:hover { color: var(--texto); background: #272b34; }
.navegacao a[aria-current="page"] { background: var(--verde); color: #062d21; font-weight: 750; }
.lateral-rodape { display: flex; gap: 11px; align-items: center; margin-top: auto; padding: 18px 8px 0; border-top: 1px solid var(--borda); min-width: 0; }
.lateral-rodape strong, .lateral-rodape small { display: block; overflow-wrap: anywhere; font-size: 12px; }
.avatar-office { display: grid; place-items: center; width: 33px; height: 33px; flex: 0 0 auto; background: #31483f; color: #9eebce; border: 1px solid #425d51; border-radius: 50%; font-size: 12px; font-weight: 700; }
.barra-superior { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 91px; margin-left: var(--lateral); padding: 20px 32px; border-bottom: 1px solid var(--borda); background: var(--fundo); }
.barra-acoes { display: flex; align-items: center; gap: 20px; }
.saldo-pill { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid #335447; border-radius: 999px; background: #1b3028; color: #99e8cb; font-size: 12px; font-weight: 650; white-space: nowrap; }
.saldo-pill .icone { width: 17px; height: 17px; }
.perfil-office { position: relative; }
.perfil-office summary { display: flex; align-items: center; gap: 9px; cursor: pointer; list-style: none; font-size: 12px; font-weight: 600; }
.perfil-office summary::-webkit-details-marker { display: none; }
.perfil-menu { position: absolute; right: 0; top: 47px; min-width: 175px; padding: 7px; border: 1px solid #3b414e; border-radius: 12px; background: #262a33; box-shadow: 0 15px 40px #0004; }
.perfil-menu a, .perfil-menu button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px; border: 0; border-radius: 7px; background: transparent; color: var(--texto); text-align: left; font-size: 13px; }
.perfil-menu a:hover, .perfil-menu button:hover { background: #333945; }
.conteudo { min-width: 0; margin-left: var(--lateral); padding: 30px 32px 44px; }
.conteudo > * { max-width: 1500px; margin-left: auto; margin-right: auto; }
.cabecalho { display: flex; justify-content: flex-end; align-items: center; gap: 15px; margin-bottom: 22px; }
.cabecalho > h1 { display: none; }
.cabecalho:has(> h1:only-child) { display: none; }
.cabecalho > a { padding: 10px 16px; border-radius: 10px; background: var(--verde); color: #062d21; font-weight: 700; }
.cabecalho > p { color: var(--suave); font-size: 12px; }
.painel { background: var(--painel); border: 1px solid var(--borda); border-radius: 18px; overflow: hidden; }
.painel[role="status"], p.painel[role="status"] { color: #a5ebd0; border-color: #335b4a; }
.formulario { display: grid; max-width: 850px; }
.formulario label { margin-bottom: 6px; font-size: 12px; font-weight: 600; color: #c6cbd4; }
.formulario input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), .formulario select, .formulario textarea {
    width: 100%; min-height: 45px; margin-bottom: 17px; padding: 10px 12px;
    border: 1px solid #373d4a; border-radius: 10px; background: #191c23; color: var(--texto);
}
.formulario input::placeholder { color: #7e8796; }
.formulario input[type="checkbox"], .formulario input[type="radio"] { accent-color: var(--verde); width: 15px; height: 15px; vertical-align: middle; margin-right: 5px; }
.formulario small { margin: -10px 0 15px; font-size: 11px; }
.primario { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 43px; padding: 10px 17px; border: 0; border-radius: 10px; background: var(--verde); color: #062d21; font-weight: 750; font-size: 13px; }
.primario:hover { background: #32cda0; color: #062d21; }
.link-sair { border: 0; padding: 0; background: transparent; color: var(--verde-texto); }
.erro { margin: 0 0 20px; padding: 14px 17px; border: 1px solid #6e4346; border-radius: 12px; color: #ffc9c7; background: #35272c; }
.tabela { width: 100%; overflow-x: auto; }
table { width: 100%; min-width: 560px; border-collapse: collapse; text-align: left; font-size: 12px; }
th, td { padding: 16px 18px; border-top: 1px solid var(--borda); vertical-align: middle; }
thead th { background: #1a1d24; color: #9da5b3; font-size: 11px; font-weight: 550; }
tbody th { font-weight: 600; }
tbody tr:hover { background: #242831; }
.estado-vazio { padding: 40px 18px; text-align: center; color: var(--suave); }
.status { display: inline-block; padding: 4px 8px; border-radius: 7px; background: #303540; }
.status.ativo { color: #76dfb6; background: #203c32; }
.pendente { padding: 20px; }
.pendente a { display: inline-block; margin-top: 12px; }
.menu-mobile { display: none; }
.pular-conteudo { position: fixed; left: -1000px; top: 10px; z-index: 100; padding: 12px; background: var(--verde); color: #062d21; }
.pular-conteudo:focus { left: 10px; }
.tela-acesso { display: grid; place-items: center; padding: 24px; background: radial-gradient(ellipse at 50% 0, #263a36 0, var(--fundo) 62%); }
.acesso { width: min(100%, 430px); }
.acesso > .marca { margin-bottom: 22px; }
.acesso-card { padding: 30px; box-shadow: 0 20px 60px #0003; }
.acesso-card h1 { margin-bottom: 5px; }
.acesso-card .secundario { margin-bottom: 24px; }
.filtros-clientes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filtros-clientes a { padding: 7px 12px; border: 1px solid var(--borda); border-radius: 999px; color: var(--suave); font-size: 12px; }
.filtros-clientes a[aria-current] { background: var(--verde-fundo); color: #86e5bf; border-color: #355b4b; }
@media (min-width: 768px) and (max-width: 1100px) { :root { --lateral: 206px; } .conteudo { padding: 24px; } .barra-superior { padding: 20px 24px; } }
@media (max-width: 767px) {
    .lateral { display: none; }
    .barra-superior { margin-left: 0; min-height: 77px; padding: 16px 18px; gap: 10px; }
    .barra-superior h1 { font-size: 1.2rem; }
    .barra-acoes { gap: 10px; }
    .saldo-pill { padding: 8px 10px; gap: 6px; font-size: 11px; }
    .saldo-pill > .icone:first-child { display: none; }
    .perfil-nome { display: none; }
    .conteudo { margin-left: 0; padding: 22px 17px calc(110px + env(safe-area-inset-bottom)); }
    .menu-mobile { position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 8px 8px calc(9px + env(safe-area-inset-bottom)); border-top: 1px solid #343945; background: #1e2128f5; backdrop-filter: blur(16px); }
    .menu-mobile a { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 53px; color: #8c95a4; font-size: 10px; font-weight: 550; }
    .mobile-icone { display: grid; width: 38px; height: 32px; place-items: center; border-radius: 10px; }
    .menu-mobile a[aria-current] { color: #6edcb3; }
    .menu-mobile a[aria-current] .mobile-icone { background: #244137; }
    .menu-mobile .teste-central .mobile-icone { width: 45px; height: 39px; margin-top: -15px; margin-bottom: 8px; background: var(--verde); color: #062d21; box-shadow: 0 3px 12px #0003; border: 4px solid #1e2128; border-radius: 14px; }
    .menu-mobile .teste-central { color: #72e2b8; }
    .cabecalho { margin-bottom: 18px; }
    .cabecalho > a { padding: 9px 14px; font-size: 12px; }
    .painel { border-radius: 16px; }
    .painel.p-5 { padding: 18px; }
    .formulario { max-width: 100%; }
    th, td { padding: 13px; }
    .acesso-card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
