body.ponto-gestao-page { background: #f1f5f9; color: #0f172a; font-family: Arial, Helvetica, sans-serif; margin: 0; }
.gestao-topbar { background: #0f172a; color: #fff; padding: 16px 20px; }
.gestao-topbar-inner, .gestao-main { width: min(1120px, calc(100% - 28px)); margin: 0 auto; }
.gestao-topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.gestao-brand { font-weight: 900; }
.gestao-main { padding: 22px 0 48px; }
.gestao-panel { background: #fff; border: 1px solid #dbe3ee; border-radius: 18px; padding: 20px; margin-bottom: 16px; box-shadow: 0 10px 30px rgba(15,23,42,.06); }
.gestao-panel h1, .gestao-panel h2, .gestao-panel h3 { margin: 0 0 10px; }
.gestao-panel p { color: #475569; line-height: 1.5; }
.gestao-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.gestao-field { margin-bottom: 14px; }
.gestao-field label { display: block; font-size: 13px; font-weight: 800; color: #334155; margin-bottom: 6px; }
.gestao-field input, .gestao-field select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 11px; background: #fff; font-size: 16px; box-sizing: border-box; }
.gestao-field input:focus, .gestao-field select:focus { outline: 3px solid rgba(14,165,233,.16); border-color: #0ea5e9; }
.gestao-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.gestao-button { border: 0; border-radius: 10px; padding: 11px 15px; font-weight: 900; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; background: #0284c7; color: #fff; }
.gestao-button.green { background: #16a34a; }
.gestao-button.red { background: #dc2626; }
.gestao-button.orange { background: #d97706; }
.gestao-button.gray { background: #475569; }
.gestao-button.ghost { background: #e2e8f0; color: #0f172a; }
.gestao-button:disabled { opacity: .55; cursor: wait; }
.gestao-status { border: 1px solid #cbd5e1; background: #f8fafc; border-radius: 11px; padding: 11px 13px; margin-top: 12px; color: #475569; }
.gestao-status.ok { border-color: #86efac; background: #f0fdf4; color: #166534; }
.gestao-status.warn { border-color: #fde68a; background: #fffbeb; color: #92400e; }
.gestao-status.erro { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.funcionarios-lista, .emails-lista { display: grid; gap: 12px; }
.funcionario-card, .email-card { border: 1px solid #dbe3ee; border-radius: 14px; padding: 16px; background: #fff; }
.funcionario-card.inativo { background: #f8fafc; opacity: .84; }
.funcionario-header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.funcionario-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; color: #475569; font-size: 14px; }
.gestao-badge { display: inline-block; padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 900; background: #dcfce7; color: #166534; }
.gestao-badge.inativo { background: #e2e8f0; color: #475569; }
.jornada-resumo { margin-top: 12px; padding: 11px; background: #f8fafc; border-radius: 10px; color: #334155; }
.pin-box { border: 2px solid #16a34a; border-radius: 16px; padding: 18px; background: #f0fdf4; text-align: center; }
.pin-code { font-size: clamp(32px, 8vw, 54px); letter-spacing: .22em; font-weight: 900; margin: 12px 0; }
.dias-grid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 6px; }
.dia-check { border: 1px solid #cbd5e1; border-radius: 10px; padding: 9px 4px; text-align: center; background: #f8fafc; }
.dia-check input { display: block; margin: 0 auto 5px; }
.email-summary { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px; margin: 14px 0; }
.email-summary-item { border: 1px solid #dbe3ee; border-radius: 12px; padding: 11px; background: #f8fafc; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.email-summary-item strong { font-size: 24px; }
.email-status { display: inline-block; padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 900; background: #e2e8f0; color: #334155; }
.email-status.pendente { background: #fef3c7; color: #92400e; }
.email-status.processando { background: #dbeafe; color: #1d4ed8; }
.email-status.enviado { background: #dcfce7; color: #166534; }
.email-status.falhou { background: #fee2e2; color: #991b1b; }
.email-status.cancelado { background: #e2e8f0; color: #475569; }
.email-error { border-left: 4px solid #dc2626; padding: 8px 10px; background: #fef2f2; color: #991b1b !important; border-radius: 6px; word-break: break-word; }
.gestao-hidden { display: none !important; }
.gestao-note { color: #64748b; font-size: 13px; }
@media (max-width: 760px) { .gestao-grid { grid-template-columns: 1fr; } .dias-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } .funcionario-header { flex-direction: column; } .email-summary { grid-template-columns: repeat(2, minmax(0,1fr)); } }
