* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    background: linear-gradient(135deg, #df4aa4 0%, #9c58e5 100%);
    color: white;
    padding: 1rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(157, 88, 229, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar h1 {
    font-size: 1.5rem;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    opacity: 0.8;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #df4aa4 0%, #9c58e5 100%);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(157, 88, 229, 0.3);
}

.btn:hover {
    background: linear-gradient(135deg, #c93a94 0%, #8a4dd1 100%);
    box-shadow: 0 4px 8px rgba(157, 88, 229, 0.4);
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #df4aa4 0%, #9c58e5 100%);
    box-shadow: 0 2px 4px rgba(157, 88, 229, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c93a94 0%, #8a4dd1 100%);
    box-shadow: 0 4px 8px rgba(157, 88, 229, 0.4);
    transform: translateY(-1px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 8rem;
    resize: vertical;
}

.mensagem {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.mensagem.sucesso {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mensagem.erro {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.banner-admin-visualizacao {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

footer {
    background: linear-gradient(135deg, #df4aa4 0%, #9c58e5 100%);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    box-shadow: 0 -2px 8px rgba(157, 88, 229, 0.3);
}

.registros-hoje {
    margin-top: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
}

.registros-hoje ul {
    list-style: none;
}

.registros-hoje li {
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
}

.comprovante-acoes {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.comprovante-label {
    font-weight: 600;
    color: #2c3e50;
    margin-right: 0.25rem;
}

.btn-comprovante {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-comprovante:hover {
    opacity: 0.9;
}

.btn-comprovante.btn-ver {
    background: #3498db;
    color: white;
}

/* Cronômetros de Jornada */
.cronometros-jornada {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.cronometro-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.cronometro-card h3 {
    margin-bottom: 0.75rem;
    color: #2c3e50;
}

.cronometro-valor {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.cronometro-status {
    font-size: 0.9rem;
}

.cronometro-status-ativo {
    color: #155724;
}

.cronometro-status-parado {
    color: #6c757d;
}

.cronometro-status-pausado {
    color: #856404;
}

.cronometro-status-finalizado {
    color: #0c5460;
}

/* Estilos para botões de marcação de ponto */
.botoes-marcacao {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.btn-marcacao-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-marcacao-item .btn-marcacao {
    width: 100%;
}

.btn-marcacao-aviso {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #b45309;
    text-align: center;
    line-height: 1.3;
    padding: 0 0.25rem;
}

.btn-marcacao-aviso[hidden] {
    display: none;
}

.btn-marcacao {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-height: 150px;
}

.btn-marcacao:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-marcacao:active {
    transform: translateY(-2px);
}

.btn-marcacao:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-marcacao:disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-marcacao .icone {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.btn-marcacao .texto {
    font-size: 1rem;
    text-align: center;
}

.btn-entrada {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.btn-entrada:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
}

.btn-saida-intervalo {
    background: linear-gradient(135deg, #FF9800 0%, #f57c00 100%);
}

.btn-saida-intervalo:hover {
    background: linear-gradient(135deg, #f57c00 0%, #ef6c00 100%);
}

.btn-retorno-intervalo {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
}

.btn-retorno-intervalo:hover {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
}

.btn-saida-final {
    background: linear-gradient(135deg, #F44336 0%, #d32f2f 100%);
}

.btn-saida-final:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
}

/* Login e alteração de senha: fundo full-screen; card na faixa ao lado do logo (grid assimétrico). */
.login-page,
.alterar-senha-page {
    position: relative;
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    background-color: #ebe9ed;
    background-image: url('https://i.imgur.com/scTmTbm.jpeg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.login-page .login-container,
.alterar-senha-page .alterar-senha-container {
    display: grid;
    /* Coluna esquerda maior: card mais à direita, afastado do f.era. no BG */
    grid-template-columns:
        minmax(0, 2.35fr)
        minmax(260px, min(92vw, 304px))
        minmax(0, 0.36fr);
    align-items: center;
    justify-items: stretch;
    column-gap: clamp(1.25rem, 4vw, 2.75rem);
    min-height: 100vh;
    min-height: 100dvh;
    padding: 2rem clamp(1rem, 4vw, 2rem);
}

.login-page .login-container > .login-box,
.alterar-senha-page .alterar-senha-container > .alterar-senha-box {
    grid-column: 2;
    justify-self: stretch;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 2rem;
}

.login-box {
    background: rgba(255, 255, 255, 0.97);
    padding: 1.5rem 1.35rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow:
        0 4px 24px rgba(76, 29, 120, 0.12),
        0 1px 3px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: none;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: clamp(1.55rem, 4.5vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    background: linear-gradient(135deg, #df4aa4 0%, #9c58e5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 1px 2px rgba(156, 88, 229, 0.22));
}

.login-box .form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #5c6670;
    margin-bottom: 0.35rem;
}

.login-info {
    text-align: center;
    color: #666;
    margin-bottom: 1.1rem;
    font-size: 0.8rem;
}

/* Evita espaço em branco quando não há mensagem no login / alterar senha */
.login-box .mensagem,
.alterar-senha-box .mensagem {
    display: none;
    margin: 0.75rem 0 0;
}

.login-box .mensagem.sucesso,
.login-box .mensagem.erro,
.alterar-senha-box .mensagem.sucesso,
.alterar-senha-box .mensagem.erro {
    display: block;
}

.login-box .password-input-wrap,
.alterar-senha-box .password-input-wrap {
    position: relative;
}

.login-box .password-input-wrap input,
.alterar-senha-box .password-input-wrap input {
    padding-right: 2.75rem;
}

.login-box .password-toggle,
.alterar-senha-box .password-toggle {
    position: absolute;
    right: 0.45rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    padding: 0.35rem;
    cursor: pointer;
    color: #777;
    border-radius: 6px;
    line-height: 0;
}

.login-box .password-toggle:hover,
.alterar-senha-box .password-toggle:hover {
    color: #9c58e5;
}

.login-box .password-toggle:focus-visible,
.alterar-senha-box .password-toggle:focus-visible {
    outline: 2px solid #9c58e5;
    outline-offset: 2px;
}

.login-box .password-toggle svg,
.alterar-senha-box .password-toggle svg {
    width: 1.35rem;
    height: 1.35rem;
    display: block;
}

.login-box .password-toggle .icon-eye-off,
.alterar-senha-box .password-toggle .icon-eye-off {
    display: none;
}

.login-box .password-toggle[aria-pressed="true"] .icon-eye,
.alterar-senha-box .password-toggle[aria-pressed="true"] .icon-eye {
    display: none;
}

.login-box .password-toggle[aria-pressed="true"] .icon-eye-off,
.alterar-senha-box .password-toggle[aria-pressed="true"] .icon-eye-off {
    display: block;
}

.btn-block {
    width: 100%;
    display: block;
    text-align: center;
}

.form-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

/* Estilos para Alterar Senha */
.alterar-senha-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 2rem;
}

.alterar-senha-box {
    background: rgba(255, 255, 255, 0.97);
    padding: 1.35rem 1.35rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow:
        0 4px 24px rgba(76, 29, 120, 0.12),
        0 1px 3px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: none;
}

.alterar-senha-box h2 {
    text-align: center;
    margin-bottom: 0.65rem;
    font-size: 1.2rem;
    color: #2c3e50;
}

.alterar-senha-box form .form-group:last-of-type {
    margin-bottom: 0.75rem;
}

.info-text {
    text-align: center;
    color: #e74c3c;
    margin-bottom: 1.1rem;
    font-weight: 500;
    padding: 0.5rem;
    font-size: 0.82rem;
    background-color: #ffe6e6;
    border-radius: 4px;
    border-left: 4px solid #e74c3c;
}

@media (max-width: 640px) {
    .login-page .login-container,
    .alterar-senha-page .alterar-senha-container {
        grid-template-columns: 1fr;
        justify-items: center;
        column-gap: 0;
        padding-left: clamp(1rem, 5vw, 1.5rem);
        padding-right: clamp(1rem, 5vw, 1.5rem);
    }

    .login-page .login-container > .login-box,
    .alterar-senha-page .alterar-senha-container > .alterar-senha-box {
        grid-column: 1;
        width: 100%;
        max-width: min(340px, 100%);
    }
}

/* Ouvidoria - listagens */
.ouvidoria-lista {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.ouvidoria-lista h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.ouvidoria-lista .texto-ajuda {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.table-responsive {
    overflow-x: auto;
    margin-bottom: 1rem;
}

.tabela-ouvidoria {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border-radius: 6px;
    overflow: hidden;
}

.tabela-ouvidoria th,
.tabela-ouvidoria td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.tabela-ouvidoria th {
    background: linear-gradient(135deg, #df4aa4 0%, #9c58e5 100%);
    color: white;
    font-weight: 600;
}

.tabela-ouvidoria tr:hover {
    background-color: #f9f9f9;
}

.tabela-ouvidoria .status-ouvidoria {
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    min-width: 140px;
}

.aviso-vazio {
    color: #666;
    font-style: italic;
    margin-top: 0.5rem;
}

/* Botão visualizar */
.btn-visualizar {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-visualizar:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.3);
}

.btn-visualizar-small {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

/* Modal específico: Pendências de Marcações (tabela estilo espelho) */
#modalPendenciasOverlay .modal-content {
    max-width: 1250px;
    max-height: 98vh;
}

#pendenciasPontoTabelaWrapper {
    overflow-x: auto;
    overflow-y: auto;
    /* Deixa espaço para header/footer do modal */
    max-height: calc(98vh - 160px);
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    background: linear-gradient(135deg, #df4aa4 0%, #9c58e5 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.btn-fechar-modal {
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.btn-fechar-modal:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Detalhes da manifestação */
.detalhes-manifestacao {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detalhe-item {
    padding: 0.75rem;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 3px solid #9c58e5;
}

.detalhe-item strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.detalhe-descricao {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-left: 3px solid #df4aa4;
}

.descricao-texto {
    margin-top: 0.5rem;
    color: #444;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.badge-status {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-aguardando {
    background: #fff3cd;
    color: #856404;
}

.badge-em_tratamento {
    background: #cfe2ff;
    color: #084298;
}

.badge-finalizado {
    background: #d1e7dd;
    color: #0f5132;
}

.detalhe-item ul {
    margin: 0.5rem 0 0 1.5rem;
    padding: 0;
}

.detalhe-item ul li {
    margin-bottom: 0.25rem;
    color: #555;
}

.erro {
    color: #e74c3c;
    text-align: center;
    padding: 1rem;
}

/* ========== Espelho de Ponto - Tabela profissional ========== */
.espelho-ponto .card {
    margin-bottom: 1.5rem;
}

.espelho-cabecalho {
    padding: 1rem 1.25rem;
}
.espelho-cabecalho-grid {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 1.25rem 0.35rem;
    align-items: baseline;
    font-size: 0.9rem;
    color: #444;
}
.espelho-cabecalho-cell {
    margin: 0;
    min-width: 0;
}
.espelho-cabecalho-cell strong {
    display: inline;
    margin: 0;
    color: #2c3e50;
}
/* Nome/Matrícula/CPF: mais espaço, evita quebra; coluna alinhada à esquerda */
.espelho-cabecalho-grid .espelho-cabecalho-cell:nth-child(2),
.espelho-cabecalho-grid .espelho-cabecalho-cell:nth-child(5),
.espelho-cabecalho-grid .espelho-cabecalho-cell:nth-child(8) {
    padding-left: 0.5rem;
}
.espelho-cabecalho-hint {
    grid-column: 1;
    margin-top: 0.25rem !important;
}
/* Endereço: linha inteira abaixo do grid, uma única linha */
.espelho-endereco-linha {
    grid-column: 1 / -1;
    margin: 0.5rem 0 0 0;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
    white-space: nowrap;
    overflow-x: auto;
}
.espelho-endereco-linha strong {
    color: #2c3e50;
}
.mb-0 { margin-bottom: 0 !important; }

.legenda-espelho {
    font-size: 0.8rem;
    color: #555;
    margin: 0 0 0.5rem 0;
}

.tabela-espelho-wrapper {
    overflow-x: auto;
    margin-top: 1rem;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

.tabela-espelho {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 0.78rem;
    border: 1px solid #c5c5c5;
    line-height: 1.15;
}

.tabela-espelho thead {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
}

.tabela-espelho th {
    padding: 0.2rem 0.4rem;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid #3d4f5f;
    font-size: 0.72rem;
}

.tabela-espelho th.th-data { width: 9%; min-width: 95px; }
.tabela-espelho th.th-tipo { width: 7%; min-width: 72px; text-align: center; }
.tabela-espelho th.th-entrada,
.tabela-espelho th.th-saida-almoco,
.tabela-espelho th.th-retorno-almoco,
.tabela-espelho th.th-saida { width: 10%; min-width: 82px; text-align: center; }
.tabela-espelho th.th-num { width: 10%; min-width: 85px; text-align: right; }

.tabela-espelho tbody tr {
    transition: background-color 0.15s ease;
}

.tabela-espelho tbody tr:hover {
    background-color: #f8f9fa;
}

.tabela-espelho tbody tr.tr-par {
    background-color: #fff;
}

.tabela-espelho tbody tr.tr-impar {
    background-color: #fafbfc;
}

.tabela-espelho tbody tr.tr-impar:hover {
    background-color: #f0f2f5;
}

.tabela-espelho tbody tr.tr-ausencia {
    background-color: #fff0f0;
}

.tabela-espelho tbody tr.tr-ausencia:hover {
    background-color: #ffe0e0;
}

.tabela-espelho tbody tr.tr-ausencia td {
    color: #c0392b;
}

.tabela-espelho tbody tr.tr-ausencia td.td-data {
    font-weight: 700;
    color: #c0392b;
}

.tabela-espelho td {
    padding: 0.18rem 0.4rem;
    vertical-align: middle;
    border: 1px solid #d0d0d0;
}

/* Destaque visual quando uma marcação esperada estiver faltando */
.tabela-espelho td.td-faltando,
.td-faltando {
    color: #c0392b;
    font-weight: 800;
    background-color: #fff0f0;
}

.tabela-espelho td.td-data {
    font-weight: 500;
    color: #2c3e50;
}

.tabela-espelho td.td-data-link {
    cursor: pointer;
    color: #3498db;
    text-decoration: underline;
}

.tabela-espelho td.td-data-link:hover {
    color: #2980b9;
}

.tabela-espelho td.td-tipo {
    text-align: center;
}

.tabela-espelho .badge-tipo {
    display: inline-block;
    padding: 0.12rem 0.4rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
}

.tabela-espelho .badge-tipo.tipo-trab {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.tabela-espelho .badge-tipo.tipo-fds {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

.tabela-espelho .badge-tipo.tipo-feriado {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffcc80;
}

.tabela-espelho .badge-tipo.tipo-abono {
    background: #ede7f6;
    color: #5e35b1;
    border: 1px solid #d1c4e9;
}

.tabela-espelho .badge-tipo.tipo-desl {
    background: #eceff1;
    color: #455a64;
    border: 1px solid #cfd8dc;
}

.tabela-espelho td.td-hora {
    text-align: center;
    font-variant-numeric: tabular-nums;
    color: #444;
}

.tabela-espelho td.td-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    color: #2c3e50;
}

.tabela-espelho td.td-saldo {
    font-weight: 600;
}

/* Gestão de Folhas (RH) */
.gestao-folhas .form-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.gestao-folhas .form-inline .form-group {
    margin-bottom: 0;
}

.gestao-folhas .form-inline label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.gestao-folhas .form-inline select,
.gestao-folhas .form-inline input[type="number"] {
    padding: 0.5rem;
    min-width: 120px;
}

.tabela-folhas-rh { font-size: 0.8rem; }
.tabela-folhas-rh th { padding: 0.4rem 0.5rem; }
.tabela-folhas-rh td { padding: 0.35rem 0.5rem; }
.tabela-folhas-rh .td-acoes { white-space: nowrap; }
.tabela-folhas-rh .btn-sm { padding: 0.25rem 0.5rem; font-size: 0.75rem; margin-right: 0.25rem; }
.folhas-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.folhas-card-header h3 {
    margin: 0;
}
.texto-ajuda { color: #555; font-size: 0.9rem; margin-bottom: 1rem; }

/* Resultado fechamento em lote */
.resultado-fechamento-todos { border: 1px solid #dee2e6; border-radius: 6px; padding: 1rem; background: #f8f9fa; }
.resultado-fechamento-todos > strong { display: block; margin-bottom: 0.75rem; font-size: 0.95rem; }
.resultado-grupos { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.resultado-grupo { flex: 1 1 200px; border-radius: 5px; padding: 0.6rem 0.8rem; }
.resultado-grupo ul { margin: 0.4rem 0 0 1rem; padding: 0; font-size: 0.82rem; }
.resultado-grupo li { margin-bottom: 0.15rem; }
.resultado-titulo { font-weight: 600; font-size: 0.85rem; }
.resultado-sucesso { background: #d1e7dd; color: #0f5132; border: 1px solid #a3cfbb; }
.resultado-aviso { background: #fff3cd; color: #664d03; border: 1px solid #ffe69c; }
.resultado-erro { background: #f8d7da; color: #842029; border: 1px solid #f1aeb5; }

/* ========== Notificações — Sino na navbar ========== */
.nav-notificacoes {
    position: relative;
    display: flex;
    align-items: center;
}

.btn-sino {
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    color: white;
}

.btn-sino:hover {
    background: rgba(255, 255, 255, 0.15);
}

.icone-sino {
    width: 24px;
    height: 24px;
    display: block;
}

.badge-notificacao {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff3b3b;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid transparent;
    box-shadow: 0 0 0 2px rgba(223, 74, 164, 0.6);
    line-height: 1;
}

@keyframes pulsar {
    0%   { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.7); }
    70%  { box-shadow: 0 0 0 8px rgba(255, 59, 59, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0); }
}

.badge-notificacao.pulsar {
    animation: pulsar 1.5s ease-out infinite;
}

.dropdown-notificacoes {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 320px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    z-index: 10000;
    overflow: hidden;
    border: 1px solid #eee;
}

.dropdown-notificacoes.aberto {
    display: block;
    animation: slideDown 0.2s ease;
}

.dropdown-notif-header {
    background: linear-gradient(135deg, #df4aa4 0%, #9c58e5 100%);
    color: white;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lista-notificacoes {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 360px;
    overflow-y: auto;
}

.notif-vazio {
    padding: 1.25rem 1rem;
    color: #888;
    font-size: 0.9rem;
    text-align: center;
}

.notif-item {
    border-bottom: 1px solid #f0f0f0;
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-link {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.notif-link:hover {
    background: #fdf4fb;
}

.notif-icone {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.notif-texto {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.notif-texto strong {
    font-size: 0.88rem;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-desc {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.3;
}

.notif-data {
    font-size: 0.75rem;
    color: #9c58e5;
    font-weight: 500;
}

/* Sino gestão — jornada excedente */
.dropdown-notif-header-gestao {
    background: linear-gradient(135deg, #2c5f8a 0%, #1a3a5c 100%);
    justify-content: space-between;
}

.notif-link-consulta {
    color: #fff;
    font-size: 0.8rem;
    text-decoration: underline;
    font-weight: 500;
}

.notif-gestao-item {
    align-items: flex-start;
}

.btn-notif-ok {
    flex-shrink: 0;
    margin-left: auto;
    background: #2c5f8a;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    cursor: pointer;
}

.btn-notif-ok:hover {
    background: #1a3a5c;
}

/* Modal confirmação ponto */
.modal-ponto-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    padding: 1rem;
}

.modal-ponto-overlay[hidden] {
    display: none !important;
}

.modal-ponto-panel {
    background: #fff;
    border-radius: 10px;
    max-width: 440px;
    width: 100%;
    padding: 1.5rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.modal-ponto-panel h3 {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
    color: #2c3e50;
}

.modal-ponto-panel p {
    margin: 0 0 1.25rem;
    color: #444;
    line-height: 1.45;
    white-space: pre-wrap;
}

.modal-ponto-acoes {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Consulta horas excedentes */
.horas-excedentes-page .subtitulo-consulta {
    color: #666;
    margin-bottom: 1.25rem;
}

.filtros-consulta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 1.25rem;
}

.filtros-consulta label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: #333;
}

.filtros-consulta input[type="date"] {
    padding: 0.45rem 0.6rem;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.resumo-consulta {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: #f5f8fb;
    border-radius: 8px;
}

.tabela-horas-excedentes {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.tabela-horas-excedentes th,
.tabela-horas-excedentes td {
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid #eee;
    text-align: left;
    font-size: 0.9rem;
}

.tabela-horas-excedentes th {
    background: #f0f4f8;
    font-weight: 600;
    color: #2c3e50;
}

.tabela-horas-excedentes .celula-vazia {
    text-align: center;
    color: #888;
    padding: 1.5rem;
}

.tabela-horas-excedentes .hora-negativa {
    color: #c0392b;
    font-weight: 600;
}

.tabela-horas-excedentes th.col-programada,
.tabela-horas-excedentes td.col-programada {
    background: #ececec;
}

.btn-marcacao-aviso {
    display: block;
    font-size: 0.75rem;
    color: #c0392b;
    margin-top: 0.35rem;
    max-width: 160px;
    line-height: 1.25;
}


