/* =========================================
   ESCOPO PRINCIPAL: Espelho de Ponto
   ========================================= */
.point-mirror-page {
    width: 100%;
    padding-bottom: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; /* Sugestão de fonte limpa */
}

.point-mirror-page .page-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* =========================================
   GRID E LAYOUT DOS CARDS
   ========================================= */
.point-mirror-page .kpi-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colunas iguais */
    gap: 20px; /* Espaçamento entre cards */
    margin-bottom: 25px;
}

/* --- O Card (Base) --- */
.point-mirror-page .kpi-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    display: flex;           /* Flex para alinhar ícone e texto */
    align-items: center;     /* Centraliza verticalmente */
    gap: 16px;               /* Espaço entre a bolinha e o texto */
    transition: all 0.2s ease-in-out;
    min-height: 110px;
    position: relative;
    overflow: hidden;
}

.point-mirror-page .kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    border-color: #e2e8f0;
}

/* --- Ícones (A Bolinha) --- */
.point-mirror-page .kpi-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0; /* Garante que o ícone não amasse */
}

/* Variações de Cores para os Ícones */
/* Azul (Horas Previstas / Padrão) */
.point-mirror-page .kpi-icon.icon-blue {
    background-color: #eff6ff;
    color: #3b82f6;
}

/* Verde (Total Trabalhado) */
.point-mirror-page .kpi-icon.icon-green {
    background-color: #dcfce7;
    color: #16a34a;
}

/* Laranja/Vermelho (Saldo / Atenção) */
.point-mirror-page .kpi-icon.icon-orange {
    background-color: #ffedd5;
    color: #f97316;
}
/* Use vermelho se o saldo for muito negativo */
.point-mirror-page .kpi-icon.icon-red {
    background-color: #fee2e2;
    color: #dc2626;
}

/* Roxo (Banco de Horas) */
.point-mirror-page .kpi-icon.icon-purple {
    background-color: #f3e8ff;
    color: #9333ea;
}

/* --- Texto do Card --- */
.point-mirror-page .kpi-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.point-mirror-page .kpi-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;        /* Cinza médio */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.point-mirror-page .kpi-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;        /* Cinza escuro quase preto */
    line-height: 1.1;
}

/* Cores específicas para o valor (opcional, se quiser colorir o número também) */
.point-mirror-page .text-green { color: #16a34a; }
.point-mirror-page .text-red { color: #dc2626; }


/* =========================================
   CARD ESPECÍFICO: STATUS DO MÊS
   (Caso queira manter o estilo antigo ou adaptar)
   ========================================= */
.point-mirror-page .kpi-status-card {
    /* Se quiser que pareça com os outros, remova o border-left e use a classe .kpi-card padrão com um ícone azul */
    background: #ffffff;
    /* border-left: 4px solid #007bff; <--- Removido para padronizar, use o ícone */
}

.point-mirror-page .status-open { color: #007bff; font-weight: bold; }
.point-mirror-page .status-closed { color: #28a745; font-weight: bold; }


/* =========================================
   TABELA E DETALHES (Mantido do seu original)
   ========================================= */
.point-mirror-page .mirror-header {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.point-mirror-page #mirrorTable td { 
    vertical-align: middle; 
}

/* Badges e Cores de Tabela */
.point-mirror-page .punch-time { 
    display: inline-block; 
    padding: 4px 10px; 
    background: #f8f9fa; 
    border: 1px solid #e9ecef;
    border-radius: 6px; 
    margin: 0 3px; 
    font-family: 'Roboto Mono', monospace; 
    font-size: 0.9em;
    color: #343a40;
    font-weight: 600;
}

.point-mirror-page .balance-positive { color: #16a34a; font-weight: bold; }
.point-mirror-page .balance-negative { color: #dc2626; font-weight: bold; }
.point-mirror-page .balance-neutral { color: #94a3b8; }

.point-mirror-page .badge-occurrence {
    background-color: #fffbeb;
    color: #92400e;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75em;
    margin-right: 5px;
    display: inline-block;
    font-weight: 700;
    text-transform: uppercase;
}

/* Utilitários */
.point-mirror-page .hidden { display: none !important; }
.point-mirror-page .actions-group { display: flex; gap: 10px; }



/* --- Badges de Status do Dia --- */
.badge-missed {
    background-color: #fee2e2;
    color: #dc2626;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85em;
    display: inline-block;
    border: 1px solid #fecaca;
    letter-spacing: 0.5px;
}

.badge-off {
    background-color: #f1f5f9;
    color: #64748b;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85em;
    font-style: italic;
}

/* --- Ícones de Ação/Status --- */
.action-icon {
    cursor: help; /* Muda o mouse para ? */
    font-size: 1.1em;
    transition: color 0.2s;
    margin-left: 8px;
}

.icon-edit { color: #f59e0b; } /* Laranja: Edição Manual */
.icon-info { color: #3b82f6; } /* Azul: Apenas Observação */
.icon-check { color: #10b981; } /* Verde: Atestado/Abono */

/* Pequeno ajuste na célula de marcações para alinhar badges */
.td-markings {
    vertical-align: middle;
}


/* Fundo escuro atrás do modal */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Escurece o fundo */
    z-index: 9999; /* Fica acima de tudo */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Ocultar o modal */
.custom-modal-overlay.hidden {
    display: none;
    opacity: 0;
}

/* A caixa do modal em si */
.custom-modal-box {
    background-color: #fff;
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    overflow: hidden; /* Garante que o cabeçalho respeite o arredondamento */
    animation: slideIn 0.3s ease-out;
    font-family: 'Inter', sans-serif;
}

/* CABEÇALHO AZUL */
.custom-modal-header {
    background-color: #1e40af; /* Azul forte profissional */
    color: #ffffff;            /* Texto Branco */
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.custom-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.custom-modal-header i {
    font-size: 1.4rem;
    color: #fbbf24; /* Um ícone amarelo para destacar atenção no fundo azul */
}

/* CORPO DO MODAL */
.custom-modal-body {
    padding: 24px;
    color: #1f2937; /* Preto suave (Dark Gray) */
    font-size: 0.95rem;
    line-height: 1.5;
}

.custom-modal-body ul {
    margin: 15px 0;
    padding-left: 0;
    list-style: none;
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.custom-modal-body ul li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #334155;
}

.custom-modal-body ul li i {
    color: #1e40af;
}

.modal-question {
    margin-top: 15px;
    font-weight: 700;
    text-align: center;
    font-size: 1.1rem;
}

/* RODAPÉ DOS BOTÕES */
.custom-modal-footer {
    padding: 15px 24px;
    background-color: #f1f5f9;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid #e2e8f0;
}

/* Animação suave de entrada */
@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}