@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@500;600;700;800&display=swap');

:root {
    --azul-royal: #111111;
    --azul-royal-vivo: #2a2a2a;
    --azul-bebe: #f1f1f1;
    --azul-bebe-forte: #c8c8c8;
    --azul-claro: #f7f7f7;
    --branco: #ffffff;
    --azul-pge: #111111;
    --texto: #171717;
    --texto-suave: #6b6b6b;
    --vermelho: #b42318;
    --amarelo: #8a6100;
    --verde: #176b3a;
    --borda-suave: #e4e4e4;
    --sombra: 0 4px 18px rgba(0,0,0,.06);
    --sombra-media: 0 12px 34px rgba(0,0,0,.10);
    --gradiente-royal: linear-gradient(135deg, #111111 0%, #303030 100%);
    --gradiente-bebe: linear-gradient(135deg, #ffffff 0%, #f3f3f3 100%);
    --largura-sidebar: 238px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f6f6f6;
    color: var(--texto);
    animation: pagina-surge 0.35s ease;
}

h1, h2, h3, h4 { font-family: 'Manrope', 'Inter', sans-serif; }

@keyframes pagina-surge {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Barra de rolagem discreta */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--azul-bebe-forte); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--azul-royal-vivo); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 24px 60px;
}

/* ---------- Cabeçalho ---------- */
.cabecalho {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.cabecalho h1 {
    font-size: 27px;
    font-weight: 800;
    background: var(--gradiente-royal);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
    letter-spacing: -0.3px;
}

/* ---------- Menu lateral (antes era barra superior) ---------- */
.menu-topo {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    background: #111111;
    padding: 22px 14px;
    box-shadow: 8px 0 28px rgba(0,0,0,.08);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--largura-sidebar);
    z-index: 600;
    overflow-y: auto;
    transition: transform 0.25s ease;
}
.menu-topo a {
    color: white;
    text-decoration: none;
    padding: 11px 14px;
    border-radius: 10px;
    transition: background 0.15s ease, transform 0.15s ease;
    font-weight: 600;
    font-size: 14px;
    opacity: 0.9;
    white-space: nowrap;
}
.menu-topo a:hover, .menu-topo a.ativo {
    background: rgba(255,255,255,0.10);
    opacity: 1;
    transform: translateX(3px);
}
.menu-topo a.menu-sair { margin-top: auto; }

/* Empurra o conteúdo da página pra direita da barra lateral (aplicado via JS no body) */
body.tem-menu-lateral { margin-left: var(--largura-sidebar); }

/* Botão hambúrguer — só aparece no mobile */
#botao-menu-mobile {
    display: none;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 700;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--gradiente-royal);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--sombra-media);
}
#fundo-menu-mobile {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20, 30, 28, 0.45);
    z-index: 550;
}

/* ---------- Cartão genérico (base reutilizável) ---------- */
.cartao {
    background: var(--branco);
    border: 1px solid var(--borda-suave);
    border-radius: 14px;
    box-shadow: var(--sombra);
}

/* ---------- Cards de modalidade ---------- */
.grade-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin: 24px 0;
}
@media (max-width: 900px) {
    .grade-cards { grid-template-columns: repeat(2, 1fr); }
}
.card-modalidade {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: var(--sombra);
    border: 1px solid var(--borda-suave);
    border-top: 3px solid #111111;
    padding: 18px 10px;
    text-align: center;
    min-height: 130px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-modalidade:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra-media);
}
.card-modalidade .titulo {
    font-size: 11.5px; font-weight: 700; color: #111111;
    text-transform: uppercase; letter-spacing: 0.5px; min-height: 32px;
}
.card-modalidade .numero { font-size: 28px; font-weight: 800; margin-top: 6px; font-family: 'Manrope', sans-serif; }
.card-modalidade .legenda { font-size: 10px; color: var(--texto-suave); margin-bottom: 6px; }
.card-modalidade .valor { font-size: 13px; font-weight: 700; color: #111111; }

/* ---------- Botões ---------- */
.botao {
    background: var(--gradiente-royal);
    color: white;
    border: none;
    padding: 13px 26px;
    border-radius: 11px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,.14);
}
.botao:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
    filter: brightness(1.05);
}
.botao:active { transform: translateY(0); }
.botao-secundario {
    background: var(--branco);
    color: #111111;
    border: 1.5px solid var(--azul-royal);
    box-shadow: none;
}

/* ---------- Caixas de aviso ---------- */
.aviso { padding: 13px 17px; border-radius: 12px; margin: 10px 0; font-size: 14px; border: 1px solid transparent; }
.aviso-info { background: #E8F0FE; color: #0b3d91; border-color: #cfe0fb; }
.aviso-erro { background: #FDEBEB; color: var(--vermelho); border-color: #f6c9c9; }
.aviso-atencao { background: #FFF6E5; color: var(--amarelo); border-color: #f5e2b8; }
.aviso-sucesso { background: #E8F7EC; color: var(--verde); border-color: #c8ead1; }

/* ---------- Métrica de valor total ---------- */
.metrica {
    background: var(--branco);
    border: 1px solid #eee;
    border-left: 5px solid var(--azul-bebe-forte);
    border-radius: 14px;
    padding: 18px 22px;
    box-shadow: var(--sombra);
    transition: box-shadow 0.2s ease;
}
.metrica:hover { box-shadow: var(--sombra-media); }
.metrica .rotulo { font-size: 11.5px; color: var(--texto-suave); text-transform: uppercase; letter-spacing: 0.4px; }
.metrica .numero { font-size: 31px; font-weight: 800; color: #111111; font-family: 'Manrope', sans-serif; }

/* ---------- Filtros ---------- */
.painel-filtros {
    background: white;
    border: 1px solid var(--borda-suave);
    border-radius: 14px;
    padding: 22px;
    margin: 22px 0;
    box-shadow: var(--sombra);
}
.linha-filtros {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr;
    gap: 14px;
    margin-bottom: 12px;
}
@media (max-width: 800px) { .linha-filtros { grid-template-columns: 1fr; } }

label { font-size: 12.5px; font-weight: 600; color: var(--texto-suave); display: block; margin-bottom: 5px; letter-spacing: 0.2px; }
select, input[type="text"], input[type="date"], input[type="email"], input[type="password"], textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 9px;
    border: 1px solid #d8d8d8;
    font-size: 14px;
    font-family: inherit;
    background: #fafafa;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
select:focus, input:focus, textarea:focus {
    outline: none;
    border-color: #222222;
    box-shadow: 0 0 0 3px rgba(0,0,0,.08);
    background: white;
}

/* ---------- Abas ---------- */
.abas { display: flex; gap: 6px; border-bottom: 1px solid #dedede; margin: 24px 0 0 0; flex-wrap: wrap; }
.aba-botao {
    padding: 11px 18px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 13.5px;
    color: var(--texto-suave);
    border-radius: 10px 10px 0 0;
    border-bottom: 3px solid transparent;
    transition: background 0.15s ease, color 0.15s ease;
}
.aba-botao:hover { background: #f5f5f5; color: #111111; }
.aba-botao.ativa { color: #111111; border-bottom-color: #222222; background: #f5f5f5; }
.aba-conteudo { display: none; padding: 22px 0; animation: pagina-surge 0.25s ease; }
.aba-conteudo.ativa { display: block; }

/* ---------- Tabela ---------- */
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; background: white; border-radius: 14px; overflow: hidden; box-shadow: var(--sombra); }
th, td { padding: 12px 10px; text-align: left; border-bottom: 1px solid #f0f2f7; }
th { background: #f5f5f5; color: #111111; font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.3px; position: sticky; top: 56px; }
tbody tr { transition: background 0.12s ease; }
tbody tr:nth-child(even) { background: #fafafa; }
tbody tr:hover { background: #eeeeee; }
tbody tr:last-child td { border-bottom: none; }

.barra-progresso { background: #eef1f6; border-radius: 6px; height: 8px; overflow: hidden; width: 100px; }
.barra-progresso-preenchida { background: var(--gradiente-royal); height: 100%; }

/* ---------- Formulário de cadastro ---------- */
.form-cadastro {
    background: linear-gradient(180deg, rgba(11, 61, 145, 0.025) 0%, rgba(11, 61, 145, 0.005) 100%);
    border: 1px solid var(--borda-suave);
    border-radius: 18px;
    padding: 28px;
    box-shadow: var(--sombra);
}
.grade-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .grade-form { grid-template-columns: 1fr; } }
.campo { margin-bottom: 15px; }

/* ---------- Relógio flutuante ---------- */
#relogio-flutuante {
    position: fixed;
    top: 90px;
    right: 30px;
    background: white;
    color: #111111;
    padding: 12px 20px;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,.14);
    z-index: 999999;
    border: 1px solid #d0d0d0;
    text-align: center;
    font-family: 'Inter', sans-serif;
    user-select: none;
}
#relogio-drag-handle { display: none; }

/* ---------- Tela de boas-vindas ---------- */
.boas-vindas { text-align: center; padding: 40px 24px; }
.boas-vindas h1 { color: #111111; }

/* ---------- Bloco de alerta (vencidos x a vencer) ---------- */
.bloco-alerta { margin: 14px 0; }
.bloco-alerta h4 { margin: 0 0 8px 0; font-size: 14px; }
.bloco-alerta-vencido h4 { color: #842029; }
.bloco-alerta-avencer h4 { color: #92600a; }

.grade-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
    display: inline-block;
    padding: 6px 13px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: default;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.chip:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(0,0,0,0.10); }
.chip-vencido {
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f1aeb5;
}
.chip-avencer {
    background: #fff3cd;
    color: #7a5c00;
    border: 1px solid #ffe69c;
}

/* ---------- Blocos <details> de configuração/expansão ---------- */
details { transition: all 0.2s ease; }
details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::before {
    content: '▸';
    display: inline-block;
    margin-right: 6px;
    transition: transform 0.15s ease;
    font-size: 12px;
}
details[open] summary::before { transform: rotate(90deg); }

/* ============================================================
   RESPONSIVIDADE — MOBILE (celular, ex: iPhone 12 e telas <640px)
   ============================================================ */
@media (max-width: 640px) {
    /* Relógio fixo atrapalha em telas pequenas — esconde no mobile */
    #relogio-flutuante { display: none; }

    .container { padding: 68px 12px 40px; }
    body.tem-menu-lateral { margin-left: 0; }

    .cabecalho h1 { font-size: 20px; }
    .cabecalho { flex-wrap: wrap; }

    /* Barra lateral vira um painel que desliza da esquerda, escondido por padrão */
    .menu-topo {
        transform: translateX(-100%);
        width: 78vw;
        max-width: 280px;
        padding-top: 64px;
    }
    .menu-topo.aberto { transform: translateX(0); }
    #botao-menu-mobile { display: flex; align-items: center; justify-content: center; }
    #fundo-menu-mobile.aberto { display: block; }

    .grade-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .card-modalidade { padding: 12px 6px; min-height: 100px; }
    .card-modalidade .numero { font-size: 22px; }

    .metrica { padding: 14px 16px; }
    .metrica .numero { font-size: 24px; }

    .painel-filtros { padding: 14px; }
    .linha-filtros { grid-template-columns: 1fr; gap: 10px; }

    .abas { gap: 3px; }
    .aba-botao { padding: 9px 12px; font-size: 12px; }

    /* Tabelas ficam largas demais pro celular — em vez de espremer, deixa rolar de lado */
    .aba-conteudo, #tabela-fornecimento, #tabela-terc, #tabela-ferias, #area-encerrados {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    table { min-width: 640px; font-size: 12px; }
    th, td { padding: 8px 6px; }

    .grade-form { grid-template-columns: 1fr; gap: 14px; }
    .form-cadastro { padding: 16px; }

    .botao { padding: 11px 20px; font-size: 14px; }

    .grade-chips { gap: 5px; }
    .chip { padding: 5px 10px; font-size: 11px; }

    /* Tela de login/boas-vindas mais confortável no celular */
    .cartao-boas-vindas { padding: 26px 20px; }
    .titulo-saudacao { font-size: 22px; }
}

/* Ajuste fino para celulares na faixa de 5,8" a 6,1" (largura CSS ~375–430px, ex: iPhone 12) */
@media (max-width: 430px) {
    .container { padding: 68px 10px 32px; }
    .cabecalho h1 { font-size: 18px; }
    .grade-cards { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .card-modalidade { min-height: 92px; padding: 10px 6px; }
    .card-modalidade .numero { font-size: 20px; }
    .card-modalidade .titulo { font-size: 10.5px; min-height: 26px; }
    .metrica .numero { font-size: 22px; }
    .botao { width: 100%; }
    .abas { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .aba-botao { flex-shrink: 0; }
}


/* ============================================================
   POLIMENTO VISUAL — PALETA MONOCROMÁTICA
   Branco • Cinza • Grafite • Preto
   ============================================================ */

body {
    color: #171717;
    line-height: 1.5;
}

.container {
    max-width: 1320px;
    padding: 34px 32px 64px;
}

.cabecalho h1 {
    color: #111;
    background: none;
    -webkit-text-fill-color: initial;
    font-weight: 800;
    letter-spacing: -.65px;
}

.menu-topo {
    background: #101010;
    border-right: 1px solid #2b2b2b;
}

.menu-topo::before {
    content: "PINHEIRO";
    display: block;
    color: #fff;
    font: 800 20px/1 'Manrope', sans-serif;
    letter-spacing: 2px;
    padding: 4px 14px 24px;
    margin-bottom: 8px;
    border-bottom: 1px solid #303030;
}

.menu-topo a {
    color: #d7d7d7;
    border: 1px solid transparent;
    border-radius: 9px;
}

.menu-topo a:hover,
.menu-topo a.ativo {
    color: #fff;
    background: #242424;
    border-color: #363636;
    transform: none;
}

.botao,
#botao-menu-mobile {
    background: #111;
}

.botao {
    border-radius: 9px;
    box-shadow: 0 5px 14px rgba(0,0,0,.13);
}

.botao:hover {
    background: #2a2a2a;
    filter: none;
    transform: translateY(-1px);
}

.botao-secundario {
    background: #fff;
    color: #111;
    border: 1px solid #cfcfcf;
}

.botao-secundario:hover {
    background: #f3f3f3;
    color: #111;
}

.cartao,
.metrica,
.painel-filtros,
.form-cadastro,
table {
    border-color: #e1e1e1;
    box-shadow: 0 5px 20px rgba(0,0,0,.055);
}

.card-modalidade {
    border-top-color: #222;
}

.card-modalidade:hover,
.metrica:hover {
    box-shadow: 0 12px 28px rgba(0,0,0,.09);
}

.card-modalidade .titulo,
.card-modalidade .valor,
.metrica .numero {
    color: #111;
}

.metrica {
    border-left: 4px solid #222;
}

.painel-filtros {
    background: #fff;
}

label {
    color: #555;
    font-weight: 700;
}

select,
input[type="text"],
input[type="date"],
input[type="email"],
input[type="password"],
textarea {
    background: #fff;
    border-color: #d5d5d5;
    border-radius: 8px;
    color: #171717;
}

select:hover,
input:hover,
textarea:hover {
    border-color: #aaa;
}

select:focus,
input:focus,
textarea:focus {
    border-color: #222;
    box-shadow: 0 0 0 3px rgba(0,0,0,.07);
}

.abas {
    border-bottom-color: #dedede;
}

.aba-botao:hover {
    background: #f1f1f1;
    color: #111;
}

.aba-botao.ativa {
    color: #111;
    border-bottom-color: #111;
    background: #f5f5f5;
}

table {
    border: 1px solid #e1e1e1;
}

th {
    background: #f1f1f1;
    color: #222;
}

th, td {
    border-bottom-color: #e9e9e9;
}

tbody tr:nth-child(even) {
    background: #fcfcfc;
}

tbody tr:hover {
    background: #f1f1f1;
}

.aviso-info {
    background: #f1f1f1;
    color: #333;
    border-color: #d9d9d9;
}

.aviso-erro {
    background: #faf0ef;
    color: #9f261c;
    border-color: #eccbc7;
}

.aviso-atencao {
    background: #faf6e9;
    color: #765600;
    border-color: #e9ddb5;
}

.aviso-sucesso {
    background: #eef7f1;
    color: #176b3a;
    border-color: #cde5d5;
}

#relogio-flutuante {
    background: rgba(255,255,255,.96);
    color: #111;
    border: 1px solid #d8d8d8;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.barra-progresso {
    background: #e7e7e7;
}

.barra-progresso-preenchida {
    background: #222;
}

.chip-vencido {
    background: #f3dfdf;
    color: #7e1e1e;
    border-color: #e6bcbc;
}

.chip-avencer {
    background: #f3ecd8;
    color: #725700;
    border-color: #e1d3a7;
}

::-webkit-scrollbar-thumb {
    background: #bcbcbc;
}

::-webkit-scrollbar-thumb:hover {
    background: #777;
}

::selection {
    background: #222;
    color: #fff;
}

@media (max-width: 640px) {
    .container {
        padding: 68px 14px 40px;
    }

    .menu-topo::before {
        padding-bottom: 20px;
    }
}

/* ============================================================
   PREMIUM UI — DASHBOARD ADMINISTRATIVO
   ============================================================ */

:root {
    --preto-premium: #0b0b0c;
    --grafite-premium: #171719;
    --grafite-2: #242426;
    --cinza-900: #303033;
    --cinza-700: #55565a;
    --cinza-500: #85868a;
    --cinza-300: #c9c9cc;
    --cinza-200: #e3e3e5;
    --cinza-100: #f1f1f2;
    --cinza-50: #f8f8f9;
    --linha-premium: rgba(0,0,0,.075);
    --sombra-premium: 0 8px 30px rgba(0,0,0,.065);
    --sombra-hover: 0 18px 42px rgba(0,0,0,.105);
    --raio-premium: 16px;
}

body {
    background:
        radial-gradient(circle at 90% 0%, rgba(0,0,0,.035), transparent 30%),
        #f5f5f6;
    color: #171719;
}

.menu-topo {
    width: 252px;
    background: linear-gradient(180deg, #0a0a0b 0%, #141416 100%);
    padding: 24px 14px 16px;
    box-shadow: 10px 0 35px rgba(0,0,0,.09);
}

.menu-topo::before {
    content: "GESTÃO";
    display: block;
    color: #fff;
    font: 700 10px/1 'Inter', sans-serif;
    letter-spacing: 2.8px;
    padding: 3px 13px 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,.09);
}

.menu-topo a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 13px;
    margin: 2px 0;
    color: #aaaab0;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    transition: .2s ease;
}

.menu-topo a:hover {
    color: #fff;
    background: rgba(255,255,255,.055);
}

.menu-topo a.ativo {
    color: #fff;
    background: linear-gradient(90deg, rgba(255,255,255,.12), rgba(255,255,255,.045));
    border-color: transparent;
    box-shadow: inset 3px 0 0 #fff;
}

.menu-topo a.menu-sair {
    color: #99999f;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,.08);
    border-radius: 0;
    padding-top: 18px;
}

body.tem-menu-lateral {
    margin-left: 252px;
}

.container {
    max-width: 1380px;
    padding: 38px 38px 70px;
}

.cabecalho {
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid #dfdfe2;
}

.cabecalho h1 {
    font-size: 30px;
    letter-spacing: -.9px;
}

.cabecalho::after {
    content: "";
    display: block;
    width: 34px;
    height: 3px;
    background: #111;
    border-radius: 10px;
    margin-top: 12px;
}

.grade-cards {
    gap: 18px;
    margin: 28px 0;
}

.card-modalidade {
    position: relative;
    min-height: 146px;
    padding: 21px 18px;
    background: #fff;
    border: 1px solid #e2e2e4;
    border-top: 0;
    border-radius: var(--raio-premium);
    overflow: hidden;
    box-shadow: var(--sombra-premium);
}

.card-modalidade::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: #171719;
}

.card-modalidade::after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -35px;
    width: 100px;
    height: 100px;
    border: 1px solid rgba(0,0,0,.045);
    border-radius: 50%;
}

.card-modalidade:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-hover);
}

.card-modalidade .titulo {
    color: #66676b;
    font-size: 10px;
    letter-spacing: 1px;
}

.card-modalidade .numero {
    font-size: 31px;
    letter-spacing: -1px;
    color: #101011;
}

.card-modalidade .legenda {
    color: #88898d;
}

.card-modalidade .valor {
    color: #333438;
}

.metrica {
    position: relative;
    overflow: hidden;
    padding: 21px 24px;
    border: 1px solid #dedee1;
    border-left: 0;
    border-radius: var(--raio-premium);
    background: #fff;
}

.metrica::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #111;
}

.metrica .rotulo {
    color: #77787c;
    letter-spacing: .9px;
    font-size: 10px;
}

.metrica .numero {
    color: #111;
    font-size: 34px;
}

.painel-filtros,
.form-cadastro {
    border: 1px solid #dedee1;
    border-radius: var(--raio-premium);
    background: rgba(255,255,255,.94);
    box-shadow: var(--sombra-premium);
}

.painel-filtros {
    padding: 24px;
}

.form-cadastro {
    padding: 30px;
    background: #fff;
}

select,
input[type="text"],
input[type="date"],
input[type="email"],
input[type="password"],
textarea {
    min-height: 43px;
    padding: 10px 13px;
    border: 1px solid #d6d6d9;
    border-radius: 9px;
    background: #fbfbfc;
}

select:focus,
input:focus,
textarea:focus {
    border-color: #202023;
    box-shadow: 0 0 0 4px rgba(0,0,0,.055);
}

.botao {
    min-height: 44px;
    border-radius: 9px;
    padding: 12px 22px;
    background: linear-gradient(180deg, #202022 0%, #0d0d0e 100%);
    box-shadow: 0 7px 18px rgba(0,0,0,.14);
}

.botao:hover {
    background: #000;
    box-shadow: 0 12px 25px rgba(0,0,0,.19);
}

.botao-secundario {
    background: #fff;
    border-color: #d1d1d4;
}

.abas {
    gap: 3px;
    padding: 4px;
    border: 1px solid #dedee1;
    border-radius: 12px;
    background: #ededee;
}

.aba-botao {
    border: 0;
    border-radius: 8px;
    padding: 10px 17px;
}

.aba-botao:hover {
    background: #fff;
    color: #111;
}

.aba-botao.ativa {
    color: #111;
    background: #fff;
    border: 0;
    box-shadow: 0 2px 7px rgba(0,0,0,.08);
}

table {
    border: 1px solid #dedee1;
    border-radius: var(--raio-premium);
    box-shadow: var(--sombra-premium);
}

th {
    background: #181819;
    color: #fff;
    padding: 13px 12px;
    font-size: 10px;
    letter-spacing: .7px;
}

td {
    padding: 13px 12px;
    color: #343438;
}

tbody tr {
    transition: background .16s ease;
}

tbody tr:nth-child(even) {
    background: #fafafa;
}

tbody tr:hover {
    background: #f0f0f1;
}

.aviso {
    border-radius: 11px;
    box-shadow: 0 2px 8px rgba(0,0,0,.025);
}

.chip {
    border-radius: 8px;
    padding: 6px 10px;
}

#relogio-flutuante {
    min-width: 160px;
    padding: 13px 18px;
    border: 1px solid #dedee1;
    border-radius: 13px;
    box-shadow: 0 14px 36px rgba(0,0,0,.12);
    backdrop-filter: blur(16px);
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #111;
    outline-offset: 3px;
}

@media (max-width: 900px) {
    body.tem-menu-lateral {
        margin-left: 0;
    }

    .menu-topo {
        width: 82vw;
        max-width: 290px;
    }

    .container {
        padding: 70px 20px 50px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 66px 14px 40px;
    }

    .cabecalho h1 {
        font-size: 23px;
    }

    .card-modalidade {
        min-height: 112px;
    }

    .painel-filtros,
    .form-cadastro {
        padding: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================
   BOTÕES DINÂMICOS — carregando, desabilitado, foco acessível
   ============================================================ */
.botao, .botao-secundario {
    position: relative;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
}

/* Estado desabilitado — impede duplo clique, fica visualmente "morto" */
.botao:disabled, .botao-secundario:disabled,
.botao.carregando, .botao-secundario.carregando {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    transform: none !important;
}

/* Spinner inline — some por padrão, só aparece com a classe .carregando */
.botao .spinner-botao, .botao-secundario .spinner-botao {
    display: none;
    width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: -2px;
    animation: girar-spinner 0.6s linear infinite;
}
.botao-secundario .spinner-botao {
    border: 2px solid rgba(0,0,0,0.15);
    border-top-color: #111;
}
.botao.carregando .spinner-botao, .botao-secundario.carregando .spinner-botao {
    display: inline-block;
}
.botao.carregando .texto-botao, .botao-secundario.carregando .texto-botao {
    opacity: 0.85;
}
@keyframes girar-spinner {
    to { transform: rotate(360deg); }
}

/* Foco visível pra quem navega por teclado (acessibilidade) */
.botao:focus-visible, .botao-secundario:focus-visible,
a.botao:focus-visible, button:focus-visible {
    outline: 2px solid #6b6b6b;
    outline-offset: 2px;
}

/* Hover um pouco mais expressivo nos botões secundários também */
.botao-secundario:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,.10);
}
