* {
    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;
}

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;
}

/* 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 {
    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;
}

.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%);
}

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

.login-box {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #2c3e50;
}

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

.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: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 450px;
}

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

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

/* 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;
}

@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: 1fr 1fr 1fr;
    gap: 2rem;
}
.espelho-cabecalho-col {
    font-size: 0.9rem;
}
.espelho-cabecalho-col strong {
    display: block;
    margin-top: 0.5rem;
    margin-bottom: 0.15rem;
    color: #2c3e50;
}
.espelho-cabecalho-col strong:first-child {
    margin-top: 0;
}
.espelho-cabecalho-col p {
    margin: 0 0 0.25rem 0;
    color: #444;
}
.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 td {
    padding: 0.18rem 0.4rem;
    vertical-align: middle;
    border: 1px solid #d0d0d0;
}

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

.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 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; }
.badge-aceite { background: #d1e7dd; color: #0f5132; padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.75rem; }

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

/* Assinar Folhas (colaborador) */
.lista-folhas-pendentes { list-style: none; padding: 0; margin: 0; }
.item-folha { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem; border-bottom: 1px solid #eee; flex-wrap: wrap; gap: 0.5rem; }
.item-folha .folha-ref { font-weight: 600; }
.btn-assinar { white-space: nowrap; }
.termo-aceite { background: #f8f9fa; padding: 1rem; border-radius: 6px; margin: 1rem 0; border-left: 4px solid #2c3e50; }
.termo-aceite p { margin: 0; color: #333; line-height: 1.5; }
.termo-data { font-size: 0.85rem; color: #666; margin-top: 0.5rem; }
.modal-aceite { max-width: 520px; }


