/* ==========================================================================
   ESPELHO DE PONTO (DESIGN UNIFICADO - PADRÃO AZUL)
   ========================================================================== */

/* Container Principal */
.espelho-wrapper {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

/* --- SEÇÃO DE PESQUISA (FILTROS) --- */
.search-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f8f9fa; /* Fundo container filtros */
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.search-group {
    flex: 1;
    min-width: 150px;
}

.search-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #1a237e; /* Azul Principal */
    font-size: 0.9rem;
}

.search-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    background-color: #fff;
}

.button-group {
    display: flex;
    gap: 10px;
}

.search-button {
    background-color: #1a237e;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 42px; /* Alinha com input */
}

.search-button:hover:not(:disabled) {
    background-color: #283593;
}

.search-button:disabled {
    background-color: #9fa8da;
    cursor: not-allowed;
}

/* --- TABELA DE DADOS (PADRÃO AZUL) --- */
#tabela-espelho {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 10px;
}

/* Cabeçalho */
#tabela-espelho thead tr {
    background-color: #1a237e !important;
    color: white;
}

#tabela-espelho th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border: none;
}

/* Linhas e Células */
#tabela-espelho td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    color: #333;
    font-size: 0.95rem;
}

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

/* Colunas Específicas */
.coluna-data { font-weight: 600; color: #2c3e50; }
.coluna-hora { font-family: 'Segoe UI', monospace; font-weight: 700; font-size: 1rem; color: #333; }
.coluna-acoes { width: 80px; text-align: center; }

/* Divisor de Dias (Usado dentro da tabela como linha colspan) */
.tr-dia-header {
    background-color: #e8eaf6; /* Azul bem claro */
    color: #1a237e;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}
.tr-dia-header td {
    padding: 8px 15px !important;
    border-bottom: 2px solid #c5cae9 !important;
}

/* Badges (Entrada/Saída) */
.badge-tipo {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    min-width: 70px;
    text-align: center;
}
.tipo-entrada { background-color: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.tipo-saida { background-color: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }

/* Botão de Comprovante (Icone) */
.btn-acao-tabela {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #7f8c8d;
    transition: color 0.2s;
    padding: 5px;
}
.btn-acao-tabela:hover { color: #1a237e; }

/* --- RODAPÉ (RESUMO/PAGINAÇÃO) --- */
.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-top: 10px;
    border-top: 1px solid #eee;
}

.resumo-horas {
    font-size: 0.95rem;
    color: #555;
    font-weight: 600;
}
.resumo-horas strong { color: #1a237e; font-size: 1.1rem; }

/* Mensagens de Estado */
.msg-vazio, .msg-carregando, .msg-erro {
    text-align: center;
    padding: 30px;
    font-style: italic;
    color: #777;
}
.msg-erro { color: #c62828; }