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

/* Fundo do layout do Ponto Fera (todas as páginas autenticadas; login usa fundo próprio) */
body.app-layout {
    min-height: 100vh;
    background-color: #f5f3f8;
    background-image: url('/static/img/fundo-layout.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
}

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

.btn-success {
    background: #2e7d32;
    box-shadow: 0 2px 4px rgba(46, 125, 50, 0.3);
}

.btn-success:hover {
    background: #1b5e20;
    box-shadow: 0 4px 8px rgba(46, 125, 50, 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;
}

.status-gps {
    margin: 0.75rem 0 1.25rem;
    padding: 0.65rem 0.85rem;
    border-radius: 6px;
    background: #f5f5f5;
    color: #333;
    font-size: 0.95rem;
}
.status-gps-aguardando {
    background: #fff8e1;
    color: #6d4c00;
}
.status-gps-ok {
    background: #e8f5e9;
    color: #1b5e20;
}
.status-gps-erro {
    background: #f8d7da;
    color: #721c24;
}

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

/* Títulos da página de registro — tipografia alinhada ao novo visual */
.registro-ponto > h2,
.registro-ponto .cronometro-card h3,
.registro-ponto .registros-hoje > h3 {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: #3b2458;
}

.registro-ponto > h2 {
    font-size: clamp(1.9rem, 3.2vw, 2.45rem);
    font-weight: 800;
    margin: 0.25rem 0 1.25rem;
    background: linear-gradient(135deg, #df4aa4 0%, #9c58e5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.registro-ponto .cronometro-card h3,
.registro-ponto .registros-hoje > h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 0.9rem;
}

/* Títulos do dashboard — mesma tipografia do novo visual */
.dashboard > h2,
.dashboard .card h3 {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.dashboard > h2 {
    font-size: clamp(1.9rem, 3.2vw, 2.45rem);
    font-weight: 800;
    margin: 0.25rem 0 0.5rem;
    background: linear-gradient(135deg, #df4aa4 0%, #9c58e5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dashboard .card h3 {
    font-size: clamp(1.2rem, 1.8vw, 1.4rem);
    font-weight: 700;
    margin-bottom: 0.85rem;
    color: #3b2458;
}

.dashboard .card p {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    font-size: 0.98rem;
    line-height: 1.45;
    color: #5a4a6e;
}

/* Títulos do espelho de ponto — mesma tipografia do novo visual */
.espelho-ponto > h2,
.espelho-ponto .card h3 {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.espelho-ponto > h2 {
    font-size: clamp(1.9rem, 3.2vw, 2.45rem);
    font-weight: 800;
    margin: 0.25rem 0 1.25rem;
    background: linear-gradient(135deg, #df4aa4 0%, #9c58e5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.espelho-ponto .card h3 {
    font-size: clamp(1.2rem, 1.8vw, 1.4rem);
    font-weight: 700;
    margin-bottom: 0.9rem;
    color: #3b2458;
}

.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 {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    border: none;
    border-radius: 18px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    min-height: 150px;
    isolation: isolate;
    /* Base 3D: borda clara + sombra profunda + brilho superior */
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.55) inset,
        0 -3px 8px rgba(0, 0, 0, 0.18) inset,
        0 8px 0 rgba(0, 0, 0, 0.18),
        0 14px 28px rgba(0, 0, 0, 0.22);
}

.btn-marcacao::before {
    content: '';
    position: absolute;
    inset: 2px 2px auto 2px;
    height: 42%;
    border-radius: 16px 16px 40% 40%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.45) 0%,
        rgba(255, 255, 255, 0.12) 55%,
        rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
    z-index: 0;
}

.btn-marcacao .icone,
.btn-marcacao .texto {
    position: relative;
    z-index: 1;
}

.btn-marcacao:hover {
    transform: translateY(-3px);
    filter: brightness(1.05);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.6) inset,
        0 -3px 8px rgba(0, 0, 0, 0.16) inset,
        0 10px 0 rgba(0, 0, 0, 0.18),
        0 18px 32px rgba(0, 0, 0, 0.26);
}

.btn-marcacao:active {
    transform: translateY(5px);
    filter: brightness(0.97);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.35) inset,
        0 4px 10px rgba(0, 0, 0, 0.28) inset,
        0 2px 0 rgba(0, 0, 0, 0.16),
        0 4px 10px rgba(0, 0, 0, 0.18);
}

.btn-marcacao:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    filter: grayscale(0.25);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.3) inset,
        0 -2px 6px rgba(0, 0, 0, 0.12) inset,
        0 4px 0 rgba(0, 0, 0, 0.12),
        0 6px 12px rgba(0, 0, 0, 0.12);
}

.btn-marcacao:disabled:hover,
.btn-marcacao:disabled:active {
    transform: none;
    filter: grayscale(0.25);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.3) inset,
        0 -2px 6px rgba(0, 0, 0, 0.12) inset,
        0 4px 0 rgba(0, 0, 0, 0.12),
        0 6px 12px rgba(0, 0, 0, 0.12);
}

.btn-marcacao .icone {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.65rem;
    line-height: 1;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.28));
}

.btn-marcacao .icone img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    display: block;
    pointer-events: none;
    user-select: none;
}

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

.btn-entrada {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 38%),
        linear-gradient(160deg, #6ed56f 0%, #43b04a 48%, #2f8f38 100%);
}

.btn-entrada:hover {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0) 38%),
        linear-gradient(160deg, #78dc79 0%, #48b84f 48%, #348f3c 100%);
}

.btn-saida-intervalo {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 38%),
        linear-gradient(160deg, #ffb74d 0%, #fb8c00 48%, #ef6c00 100%);
}

.btn-saida-intervalo:hover {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0) 38%),
        linear-gradient(160deg, #ffc066 0%, #ff9800 48%, #f57c00 100%);
}

.btn-retorno-intervalo {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 38%),
        linear-gradient(160deg, #64b5f6 0%, #1e88e5 48%, #1565c0 100%);
}

.btn-retorno-intervalo:hover {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0) 38%),
        linear-gradient(160deg, #74c0f8 0%, #2196f3 48%, #1976d2 100%);
}

.btn-saida-final {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 38%),
        linear-gradient(160deg, #ef7878 0%, #e53935 48%, #c62828 100%);
}

.btn-saida-final:hover {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0) 38%),
        linear-gradient(160deg, #f28b8b 0%, #f44336 48%, #d32f2f 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('/static/img/fundo1.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* Painel lateral do login: saudação + data + horário */
.login-side-panel {
    position: absolute;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    box-sizing: border-box;
}

.login-side-panel.is-ready {
    opacity: 1;
}

.login-topo-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    min-width: 0;
}

.login-topo-cards {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.65rem;
    flex: 0 0 auto;
    min-width: 0;
}

.login-saudacao {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    flex: 1 1 auto;
    padding-right: 0.5rem;
}

.login-saudacao-titulo {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    font-size: clamp(1.75rem, 2.6vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #1a2233;
    line-height: 1.1;
}

.login-saudacao-texto {
    margin-top: 0.2rem;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    font-size: clamp(0.86rem, 1.15vw, 1.02rem);
    font-weight: 500;
    color: #7a8494;
    line-height: 1.35;
    max-width: 18rem;
}

.login-info-card {
    display: flex;
    align-items: center;
    gap: clamp(0.65rem, 1.2vw, 1rem);
    box-sizing: border-box;
    padding: clamp(0.55rem, 1.1vh, 0.9rem) clamp(0.85rem, 1.4vw, 1.15rem);
    border-radius: 18px;
    position: relative;
    isolation: isolate;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(253, 232, 241, 0.12) 35%,
        rgba(243, 228, 251, 0.1) 70%,
        rgba(232, 216, 250, 0.08) 100%
    );
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    backdrop-filter: blur(16px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.55) inset,
        0 -10px 18px rgba(156, 88, 229, 0.04) inset,
        0 2px 4px rgba(255, 255, 255, 0.18) inset,
        0 14px 28px rgba(76, 29, 120, 0.16),
        0 6px 12px rgba(232, 62, 140, 0.1),
        0 28px 48px rgba(30, 41, 59, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.04);
    transform: perspective(900px) rotateX(4deg) translateY(-3px);
    transform-style: preserve-3d;
}

.login-info-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.28) 0%,
        rgba(255, 255, 255, 0.06) 28%,
        rgba(255, 255, 255, 0) 55%
    );
    z-index: -1;
}

.login-info-card::after {
    content: '';
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: -10px;
    height: 18px;
    border-radius: 50%;
    pointer-events: none;
    background: rgba(76, 29, 120, 0.18);
    filter: blur(12px);
    z-index: -2;
}

.login-data-card {
    flex: 0 0 auto;
    min-height: 4.25rem;
}

.login-weather-card {
    flex: 0 0 auto;
    min-height: 4.25rem;
    padding-left: 0.75rem;
    padding-right: 0.95rem;
    gap: 0.55rem;
}

.login-weather-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    color: #3b82f6;
    background: radial-gradient(circle at 50% 45%, #e8f2ff 0%, #d4e8ff 70%, #c5ddfc 100%);
    box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.08);
}

.login-weather-icon svg {
    width: 58%;
    height: 58%;
    display: block;
}

.login-weather-texto {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-width: 0;
    line-height: 1.1;
}

.login-weather-temp {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1a2233;
    white-space: nowrap;
}

.login-weather-label {
    margin-top: 0.12em;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    color: #7a8494;
    line-height: 1.15;
    max-width: 5.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.login-weather-card.is-error .login-weather-label {
    color: #9aa3b2;
}

.login-info-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    color: #e83e8c;
}

.login-info-icon svg {
    width: 52%;
    height: 52%;
    display: block;
}

.login-info-icon--soft {
    background: radial-gradient(circle at 50% 45%, #fce4f0 0%, #f7d0e6 70%, #f3c4df 100%);
    box-shadow: 0 0 0 6px rgba(232, 62, 140, 0.08);
}

.login-info-icon--halo {
    position: relative;
    width: 3.75rem;
    height: 3.75rem;
    background: linear-gradient(145deg, #fce4f0 0%, #f5b6d4 100%);
    color: #e83e8c;
    box-shadow:
        0 0 0 10px rgba(255, 255, 255, 0.72),
        0 0 0 14px rgba(255, 255, 255, 0.35),
        0 4px 14px rgba(232, 62, 140, 0.16);
}

.login-info-icon--halo svg {
    width: 48%;
    height: 48%;
}

.login-horario-slot {
    width: 100%;
    height: var(--login-clock-h, 9rem);
    display: flex;
    align-items: stretch;
}

.login-horario-card {
    position: relative;
    width: 100%;
    height: 100%;
    padding: clamp(0.9rem, 1.6vh, 1.35rem) clamp(1.25rem, 2.4vw, 2rem);
    border-radius: 22px;
    isolation: isolate;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(253, 232, 241, 0.12) 35%,
        rgba(243, 228, 251, 0.1) 70%,
        rgba(232, 216, 250, 0.08) 100%
    );
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    backdrop-filter: blur(16px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.55) inset,
        0 -14px 24px rgba(156, 88, 229, 0.05) inset,
        0 3px 6px rgba(255, 255, 255, 0.16) inset,
        0 18px 36px rgba(76, 29, 120, 0.18),
        0 8px 16px rgba(232, 62, 140, 0.12),
        0 36px 64px rgba(30, 41, 59, 0.12),
        0 2px 4px rgba(0, 0, 0, 0.05);
    gap: clamp(1rem, 2.5vw, 2.5rem);
    transform: perspective(1000px) rotateX(5deg) translateY(-6px);
    transform-style: preserve-3d;
}

.login-horario-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.28) 0%,
        rgba(255, 255, 255, 0.06) 28%,
        rgba(255, 255, 255, 0) 55%
    );
    z-index: -1;
}

.login-horario-card::after {
    content: '';
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: -14px;
    height: 24px;
    border-radius: 50%;
    pointer-events: none;
    background: rgba(76, 29, 120, 0.22);
    filter: blur(16px);
    z-index: -2;
}

.login-horario-texto {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 1.05;
    min-width: 0;
    flex: 1 1 auto;
}

.login-horario-hora {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    font-size: 2.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #1a2233;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.login-horario-label {
    margin-top: 0.25em;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: #7a8494;
    line-height: 1.1;
}

.login-data-texto {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-width: 0;
    flex: 1 1 auto;
    line-height: 1.1;
}

.login-data-dia {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #7a8494;
    line-height: 1.15;
}

.login-data-completa {
    margin-top: 0.12em;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1a2233;
    line-height: 1.15;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .login-side-panel {
        display: none;
    }
}

.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: formulário alinhado ao card Horário atual */
.login-page .login-container {
    grid-template-columns:
        minmax(0, 1.45fr)
        minmax(420px, min(64vw, 680px))
        minmax(0.4rem, 1.2vw);
    align-items: start;
    justify-items: stretch;
    padding-top: calc(clamp(48vh, 50vh, 52vh) + 35px);
    padding-bottom: clamp(1.5rem, 4vh, 3rem);
    padding-left: clamp(1rem, 3vw, 2rem);
    padding-right: clamp(0.5rem, 1.5vw, 1rem);
}

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

.login-page .login-container > .login-box {
    max-width: 680px;
    width: 100%;
    justify-self: end;
    margin-right: 10px;
}

.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-page .login-box {
    position: relative;
    isolation: isolate;
    padding: 1.25rem 1.5rem;
    border-radius: 18px;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(253, 232, 241, 0.12) 35%,
        rgba(243, 228, 251, 0.1) 70%,
        rgba(232, 216, 250, 0.08) 100%
    );
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    backdrop-filter: blur(16px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.55) inset,
        0 -12px 22px rgba(156, 88, 229, 0.04) inset,
        0 3px 6px rgba(255, 255, 255, 0.16) inset,
        0 20px 42px rgba(76, 29, 120, 0.2),
        0 10px 20px rgba(232, 62, 140, 0.1),
        0 40px 70px rgba(30, 41, 59, 0.12),
        0 2px 4px rgba(0, 0, 0, 0.05);
    transform: perspective(1100px) rotateX(3.5deg) translateY(2px);
    transform-style: preserve-3d;
}

.login-page .login-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.28) 0%,
        rgba(255, 255, 255, 0.06) 28%,
        rgba(255, 255, 255, 0) 55%
    );
    z-index: -1;
}

.login-page .login-box::after {
    content: '';
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: -16px;
    height: 26px;
    border-radius: 50%;
    pointer-events: none;
    background: rgba(76, 29, 120, 0.24);
    filter: blur(18px);
    z-index: -2;
}

.login-page .login-form-inline {
    gap: 0.85rem 1.05rem;
}

.login-page .login-form-inline .form-group {
    flex: 1 1 200px;
}

.login-page .login-form-inline .form-group label {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #3d4654;
    margin-bottom: 0.35rem;
}

.login-page .login-form-inline .form-group input {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    min-height: 2.85rem;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #1a2233;
    padding: 0.75rem 0.95rem;
    border-radius: 10px;
    border: 1px solid #d8dde6;
    background: #f7f8fc;
}

.login-page .login-form-inline .form-group input::placeholder {
    color: #9aa3b2;
    font-weight: 500;
}

.login-page .login-form-inline .form-group input:focus {
    outline: none;
    border-color: #9c58e5;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(156, 88, 229, 0.15);
}

.login-page .login-form-inline .login-btn-entrar {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    min-width: 8rem;
    min-height: 2.85rem;
    padding: 0.8rem 1.65rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    border-radius: 10px;
}

.login-form-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.65rem 0.75rem;
}

.login-form-inline .form-group {
    margin-bottom: 0;
    flex: 1 1 160px;
    min-width: 0;
}

.login-form-inline .form-group label {
    display: block;
    margin-bottom: 0.25rem;
    white-space: nowrap;
}

.login-form-inline .form-group input {
    width: 100%;
    margin: 0;
}

.login-form-inline .login-btn-entrar {
    flex: 0 0 auto;
    width: auto;
    min-width: 6.5rem;
    padding: 0.7rem 1.35rem;
    white-space: nowrap;
    align-self: flex-end;
}

.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;
        align-items: center;
        column-gap: 0;
        padding-top: 2rem;
        padding-left: clamp(1rem, 5vw, 1.5rem);
        padding-right: clamp(1rem, 5vw, 1.5rem);
        padding-bottom: 2rem;
    }

    .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%);
        justify-self: center;
    }

    .login-form-inline {
        flex-direction: column;
        align-items: stretch;
    }

    .login-form-inline .form-group {
        flex: 1 1 auto;
    }

    .login-form-inline .login-btn-entrar {
        width: 100%;
        align-self: stretch;
    }
}

/* 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 {
    align-items: stretch;
    padding: 0.5rem;
}

#modalPendenciasOverlay .modal-content {
    max-width: 1100px;
    width: 96vw;
    max-height: 99vh;
    height: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: auto;
}

#modalPendenciasOverlay .modal-header {
    padding: 0.55rem 1rem;
    flex-shrink: 0;
}

#modalPendenciasOverlay .modal-header h3 {
    font-size: 1.05rem;
}

#modalPendenciasOverlay .modal-body {
    padding: 0.5rem 1rem 0.35rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#modalPendenciasOverlay .modal-footer {
    padding: 0.45rem 1rem;
    flex-shrink: 0;
}

#modalPendenciasOverlay #pendenciasResumo {
    margin: 0 0 0.4rem 0;
    padding: 0.35rem 0.6rem;
    font-size: 0.82rem;
    flex-shrink: 0;
}

#pendenciasPontoTabelaWrapper {
    overflow: auto;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
}

#pendenciasPontoTabelaWrapper .tabela-espelho-wrapper {
    margin-top: 0;
    overflow-x: auto;
}

#modalPendenciasOverlay .tabela-espelho {
    width: 100%;
    table-layout: fixed;
    font-size: 0.72rem;
    line-height: 1.15;
    border-collapse: collapse;
}

#modalPendenciasOverlay .tabela-espelho th,
#modalPendenciasOverlay .tabela-espelho td {
    padding: 0.14rem 0.35rem;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
}

#modalPendenciasOverlay .tabela-espelho th {
    font-size: 0.68rem;
    white-space: nowrap;
}

#modalPendenciasOverlay .tabela-espelho th.th-data,
#modalPendenciasOverlay .tabela-espelho th.th-tipo,
#modalPendenciasOverlay .tabela-espelho th.th-entrada,
#modalPendenciasOverlay .tabela-espelho th.th-saida-almoco,
#modalPendenciasOverlay .tabela-espelho th.th-retorno-almoco,
#modalPendenciasOverlay .tabela-espelho th.th-saida,
#modalPendenciasOverlay .tabela-espelho th.th-saldo,
#modalPendenciasOverlay .tabela-espelho th.th-num {
    min-width: 0;
}

/* Larguras compactas e alinhamento consistente cabeçalho × células */
#modalPendenciasOverlay .tabela-espelho th.th-data,
#modalPendenciasOverlay .tabela-espelho td.td-data {
    width: 9%;
    text-align: left;
}

#modalPendenciasOverlay .tabela-espelho th.th-tipo,
#modalPendenciasOverlay .tabela-espelho td.td-tipo {
    width: 6%;
    text-align: center;
}

#modalPendenciasOverlay .tabela-espelho th.th-entrada,
#modalPendenciasOverlay .tabela-espelho th.th-saida-almoco,
#modalPendenciasOverlay .tabela-espelho th.th-retorno-almoco,
#modalPendenciasOverlay .tabela-espelho th.th-saida,
#modalPendenciasOverlay .tabela-espelho td:nth-child(3),
#modalPendenciasOverlay .tabela-espelho td:nth-child(4),
#modalPendenciasOverlay .tabela-espelho td:nth-child(5),
#modalPendenciasOverlay .tabela-espelho td:nth-child(6) {
    width: 9%;
    text-align: center;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

#modalPendenciasOverlay .tabela-espelho th.th-saldo,
#modalPendenciasOverlay .tabela-espelho td.td-saldo {
    width: 8%;
    text-align: center;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

#modalPendenciasOverlay .tabela-espelho th.th-num,
#modalPendenciasOverlay .tabela-espelho td.td-num {
    width: 16%;
    text-align: left;
    white-space: normal;
    word-break: break-word;
}

#modalPendenciasOverlay .saldo-credito {
    color: #1e7e34;
}

#modalPendenciasOverlay .saldo-debito {
    color: #c0392b;
}

#modalPendenciasOverlay .saldo-zero {
    color: #6c757d;
}

.resumo-banco-horas-folha {
    margin-top: 0.45rem;
    padding: 0.55rem 0.85rem;
    background: #f7f9fc;
    border: 1px solid #dce3ec;
    border-radius: 8px;
    flex-shrink: 0;
}

.resumo-banco-horas-folha .resumo-bh-titulo {
    font-weight: 700;
    font-size: 0.85rem;
    color: #2c3e50;
    margin-bottom: 0.35rem;
}

.resumo-banco-horas-folha .resumo-bh-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem 1.25rem;
    align-items: start;
}

.resumo-banco-horas-folha .resumo-bh-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.resumo-banco-horas-folha .resumo-bh-label {
    font-size: 0.68rem;
    color: #5a6a7a;
}

.resumo-banco-horas-folha .resumo-bh-valor {
    font-size: 0.9rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.resumo-banco-horas-folha .resumo-bh-destaque {
    padding-left: 0.75rem;
    border-left: 2px solid #9c58e5;
}

@media (max-width: 900px) {
    .resumo-banco-horas-folha .resumo-bh-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@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 ========== */
/* Mantém o mesmo container das demais páginas (1200px, centralizado) */
.espelho-ponto .card {
    margin-bottom: 1.5rem;
}

.espelho-ponto .card:has(#tabela-registros) {
    padding: 1.25rem 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: 8%; min-width: 95px; }
.tabela-espelho th.th-tipo { width: 6%; 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: 8%; min-width: 78px; text-align: right; }
.tabela-espelho th.th-eventos { width: 14%; min-width: 160px; }
.tabela-espelho th.th-marcacoes { width: 12%; min-width: 110px; }

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

/* Eventos em uma linha quando couber — evita quebra na folha/tela */
.tabela-espelho td.td-texto {
    white-space: nowrap;
}

/* 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;
}
.folhas-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.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;
    justify-content: space-between;
    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;
}

.tabela-horas-excedentes .hora-positiva {
    color: #0f5132;
    font-weight: 600;
}

.filtros-consulta select,
.filtros-consulta input[type="number"],
.filtros-consulta input[type="search"] {
    padding: 0.45rem 0.6rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    min-width: 140px;
}

#filtroColaborador,
#filtroBusca {
    min-width: 240px;
}

.resumo-bh-gestao {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem 1.25rem;
}

.tabela-gestao-bh td {
    font-variant-numeric: tabular-nums;
}

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

/* Comunicados */
.lista-comunicados {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
}
.item-comunicado {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    background: #fff;
    padding: 1rem 1.15rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    margin-bottom: 0.75rem;
}
.item-comunicado-texto {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}
.item-comunicado-texto span {
    color: #666;
    font-size: 0.88rem;
}
.item-comunicado-acoes {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}
.badge-com {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    background: #eee;
    color: #555;
}
.badge-com-ok {
    background: #e8f5e9;
    color: #1b5e20;
}
.badge-com-pendente {
    background: #fff3cd;
    color: #856404;
}
.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}
.muted {
    color: #888;
    font-size: 0.85rem;
}

.modal-comunicado-overlay {
    position: fixed;
    inset: 0;
    background: rgba(24, 18, 32, 0.62);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30000;
    padding: 1rem;
}
.modal-comunicado-overlay[hidden] {
    display: none !important;
}
.modal-comunicado-panel {
    background: #fff;
    border-radius: 10px;
    max-width: 480px;
    width: 100%;
    padding: 1.6rem 1.5rem 1.4rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
.modal-comunicado-panel h3 {
    margin: 0 0 0.6rem;
    color: #2c3e50;
}
.modal-comunicado-panel p {
    margin: 0 0 1.2rem;
    color: #444;
    line-height: 1.45;
}
.modal-comunicado-panel .titulo-pendente {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.15rem;
}

@media (max-width: 720px) {
    .item-comunicado {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-menu {
        flex-wrap: wrap;
        gap: 0.75rem 1rem;
    }
}



