/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body { font-family: 'Inter', sans-serif; background: #f0f2f5; color: #1a1a2e; min-height: 100vh; }

:root {
  --primary: #4f46e5;
  --primary-light: #818cf8;
  --primary-dark: #3730a3;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --sidebar-w: 260px;
  --topbar-h: 60px;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
}

/* ===== PAGES ===== */
.page { display: none; }
.page.active { display: block; }

/* ===== LOGIN ===== */
.login-bg {
  min-height: 100vh;
  /* Gradiente rico: azul profundo → índigo → azul royal */
  background: linear-gradient(150deg,
    #1e1b4b 0%,
    #2d2a7a 25%,
    #3730a3 50%,
    #4338ca 75%,
    #4f46e5 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px 0;
  position: relative;
  overflow: hidden;
}

/* Círculo de brilho no topo */
.login-bg::before {
  content: '';
  position: absolute;
  top: -160px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(ellipse,
    rgba(165,180,252,0.12) 0%,
    rgba(99,102,241,0.06) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}
/* Reflexo de luz no canto inferior direito */
.login-bg::after {
  content: '';
  position: absolute;
  bottom: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(ellipse,
    rgba(99,102,241,0.18) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* Hero: todo o conteúdo solto sobre o azul */
.login-hero {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  position: relative;
  z-index: 1;
}

/* ── Ícone relógio ── */
.login-clock-wrap { margin-bottom: 28px; margin-top: 4px; }
.login-clock-icon {
  width: 88px; height: 88px;
  background: #ffffff;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 38px;
  color: #3730a3;
  /* halo triplo: brilho suave */
  box-shadow:
    0 0 0 8px  rgba(255,255,255,0.12),
    0 0 0 16px rgba(255,255,255,0.05),
    0 12px 40px rgba(0,0,0,0.35);
  transition: transform 0.3s ease;
}
.login-clock-icon:hover { transform: rotate(12deg) scale(1.05); }

/* ── Brand MEGAPonto ── */
.login-brand-wrap { margin-bottom: 8px; }

.login-brand-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  line-height: 1;
  margin-bottom: 12px;
}

/* MEGA — Cormorant Garamond, serifa clássica estilo Calisto MT, branco puro com glow */
.brand-mega {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 80px;
  font-weight: 900;
  font-style: normal;
  color: #ffffff;
  letter-spacing: 6px;
  text-transform: uppercase;
  line-height: 1;
  text-shadow:
    0 0 40px rgba(165,180,252,0.65),
    0 0 80px rgba(99,102,241,0.35),
    0 3px 20px rgba(0,0,0,0.30);
}

/* Ponto — Playfair Display serifa elegante, mesmo tamanho óptico, branco puro */
.brand-ponto {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 56px;           /* menor em px mas visualmente igual: serifa tem altura de x maior */
  font-weight: 700;
  font-style: italic;        /* itálico elegante contrasta com Bebas reta */
  color: #ffffff;
  letter-spacing: 1px;
  line-height: 1;
  padding-left: 6px;
  text-shadow:
    0 0 30px rgba(165,180,252,0.40),
    0 3px 20px rgba(0,0,0,0.28);
}

/* Subtítulo */
.login-tagline {
  font-size: 11px;
  font-weight: 500;
  color: rgba(199,210,254,0.55);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

/* Divisor com gradiente */
.login-divider {
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(165,180,252,0.6) 30%,
    rgba(165,180,252,0.9) 50%,
    rgba(165,180,252,0.6) 70%,
    transparent 100%
  );
  border-radius: 2px;
  margin: 22px auto 22px;
}

/* Label acima dos perfis */
.login-choose {
  font-size: 10px;
  font-weight: 700;
  color: rgba(199,210,254,0.50);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ── Botões de perfil ── */
.login-profiles { width: 100%; }

.profile-btn {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border: 1px solid rgba(165,180,252,0.20);
  border-radius: 16px;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  margin-bottom: 10px;
  transition: all 0.22s cubic-bezier(.4,0,.2,1);
  text-align: left;
  position: relative;
  overflow: hidden;
}
/* Brilho interno no hover */
.profile-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: inherit;
}
.profile-btn:hover::before { opacity: 1; }
.profile-btn:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(165,180,252,0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.22), 0 0 0 1px rgba(165,180,252,0.15);
}
.profile-btn:active { transform: translateY(0); }

.profile-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff; flex-shrink: 0;
}
.profile-icon.master   { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 4px 12px rgba(245,158,11,0.35); }
.profile-icon.admin    { background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.12)); border: 1px solid rgba(255,255,255,0.3); }
.profile-icon.employee { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 4px 12px rgba(16,185,129,0.35); }

.profile-info { flex: 1; }
.profile-info strong { display: block; font-size: 15px; font-weight: 700; color: #fff; letter-spacing: 0.2px; }
.profile-info span    { font-size: 12px; color: rgba(199,210,254,0.65); }
.profile-btn .fa-chevron-right { color: rgba(165,180,252,0.40); font-size: 13px; transition: transform 0.2s; }
.profile-btn:hover .fa-chevron-right { transform: translateX(3px); color: rgba(165,180,252,0.75); }

/* Demo note */
.login-demo-note {
  font-size: 11px;
  color: rgba(165,180,252,0.30);
  margin-top: 20px;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

/* =================================================================
   FORMULÁRIO DE LOGIN COM SENHA — Painel B
   ================================================================= */

/* Botão voltar */
.login-back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(165,180,252,0.25);
  color: rgba(199,210,254,0.85);
  border-radius: 10px;
  padding: 7px 16px;
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  margin-bottom: 4px;
  align-self: flex-start;
}
.login-back-btn:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

/* Card branco do formulário */
.login-form-card {
  width: 100%;
  background: rgba(255,255,255,0.97);
  border-radius: 18px;
  padding: 24px 22px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.22), 0 2px 8px rgba(0,0,0,0.12);
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Campo de formulário */
.login-field { margin-bottom: 14px; }
.login-field:last-child { margin-bottom: 0; }

.login-field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 5px;
  letter-spacing: 0.3px;
}
.login-field-label i {
  color: var(--primary);
  margin-right: 4px;
}

/* Input do login */
.login-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  background: #f9fafb;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
}
.login-input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
}
.login-input::placeholder { color: #9ca3af; font-weight: 400; }

/* Wrapper do campo de senha (input + botão olho) */
.login-pwd-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.login-pwd-wrap .login-input { padding-right: 42px; }

.login-pwd-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
  transition: color 0.15s;
  line-height: 1;
}
.login-pwd-toggle:hover { color: var(--primary); }

/* Mensagem de erro (inline, com shake) */
.login-error {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 12.5px;
  color: #dc2626;
  font-weight: 500;
  margin-bottom: 2px;
}
.login-error i { flex-shrink: 0; font-size: 13px; }

@keyframes loginShake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-7px); }
  40%     { transform: translateX(7px); }
  60%     { transform: translateX(-5px); }
  80%     { transform: translateX(4px); }
}
.shake { animation: loginShake 0.42s ease; }

/* Botão principal "Entrar" */
.btn-emp-login {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 0;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #fff;
  border: none;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 14px;
  margin-bottom: 0;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(79,70,229,0.35);
  font-family: inherit;
  letter-spacing: 0.3px;
}
.btn-emp-login:hover:not(:disabled) {
  opacity: 0.93;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(79,70,229,0.40);
}
.btn-emp-login:active:not(:disabled) { transform: translateY(0); }
.btn-emp-login:disabled { opacity: 0.6; cursor: not-allowed; }

/* Divisor "ou" */
.login-or-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 0 10px;
}
.login-or-line {
  flex: 1; height: 1px; background: #e5e7eb;
}
.login-or-text {
  font-size: 11px; font-weight: 600; color: #9ca3af;
  text-transform: uppercase; letter-spacing: 1px;
}

/* Botão biometria alternativo */
.btn-bio-alt {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 0;
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  color: #065f46;
  border-radius: 11px;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.15s;
  font-family: inherit;
  margin-bottom: 10px;
}
.btn-bio-alt:hover {
  background: #dcfce7;
  border-color: #86efac;
  transform: translateY(-1px);
}
.btn-bio-alt i { font-size: 16px; }

/* Link "Esqueci minha senha" */
.login-forgot-link {
  background: none; border: none;
  color: rgba(79,70,229,0.75);
  font-size: 12px; font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  display: block; text-align: center;
  padding: 6px 0 0;
  font-family: inherit;
  transition: color 0.15s;
}
.login-forgot-link:hover { color: var(--primary); }
.login-forgot-link i { margin-right: 4px; }

/* Dica demo */
.login-demo-hint {
  display: flex; align-items: flex-start; gap: 8px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(165,180,252,0.22);
  border-radius: 12px;
  padding: 10px 14px;
  margin-top: 14px;
  font-size: 12px;
  color: rgba(199,210,254,0.85);
  line-height: 1.5;
}
.login-demo-hint i { flex-shrink: 0; margin-top: 1px; color: #a5b4fc; }
.login-demo-hint code {
  background: rgba(165,180,252,0.20);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 11px;
  color: #e0e7ff;
  font-family: 'Courier New', monospace;
}

/* ── Rodapé legal ── */
.login-legal {
  width: 100%;
  text-align: center;
  font-size: 11px;
  color: rgba(199,210,254,0.50);
  letter-spacing: 0.5px;
  padding: 14px 24px 18px;
  border-top: 1px solid rgba(165,180,252,0.18);
  margin-top: auto;
  position: relative;
  z-index: 1;
}
.login-legal .legal-sep {
  color: rgba(165,180,252,0.35);
  margin: 0 2px;
}

/* ===== APP LAYOUT ===== */
.app-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: var(--sidebar-w); background: var(--gray-900);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; height: 100vh;
  z-index: 200; transition: transform 0.3s;
}
.sidebar-header {
  padding: 18px 20px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.logo-small { color: #fff; font-weight: 700; font-size: 18px; }
.logo-small i { color: var(--primary-light); margin-right: 6px; }
.sidebar-close { background: none; border: none; color: var(--gray-400); font-size: 18px; cursor: pointer; display: none; }
.sidebar-nav { flex: 1; padding: 12px 0; overflow-y: auto; }
.nav-section { padding: 8px 20px 4px; font-size: 10px; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: 1px; margin-top: 8px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px; color: var(--gray-400);
  cursor: pointer; transition: all 0.15s; font-size: 14px;
  border-left: 3px solid transparent; text-decoration: none;
}
.nav-item:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav-item.active { color: #fff; background: rgba(79,70,229,0.2); border-left-color: var(--primary-light); }
.nav-item i { width: 18px; text-align: center; font-size: 15px; }
.nav-badge { margin-left: auto; background: var(--danger); color: #fff; border-radius: 10px; padding: 2px 7px; font-size: 11px; font-weight: 600; }
/* Banco de Horas item em destaque */
.nav-item-highlight {
  background: rgba(16,185,129,0.08);
  border-left-color: rgba(16,185,129,0.5);
  color: #34d399;
}
.nav-item-highlight:hover { background: rgba(16,185,129,0.15); color: #6ee7b7; }
.nav-item-highlight.active { background: rgba(16,185,129,0.2); border-left-color: #10b981; color: #fff; }

.sidebar-footer { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.08); }
/* User Avatar + Info */
.sidebar-footer .user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: #fff; font-weight: 700; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-bottom: 8px;
}
.sidebar-footer #sidebar-user {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.user-name { color: #fff; font-size: 14px; font-weight: 600; }
.user-role { color: var(--gray-500); font-size: 12px; }
.btn-logout {
  width: 100%; padding: 8px; background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3);
  color: #ef4444; border-radius: 8px; cursor: pointer; font-size: 13px; transition: all 0.2s;
}
.btn-logout:hover { background: rgba(239,68,68,0.2); }

.sidebar-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 199;
}

/* Main */
.main-wrapper { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: var(--topbar-h); background: #fff; border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; padding: 0 24px; gap: 16px;
  position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow);
}
.menu-btn { background: none; border: none; font-size: 20px; color: var(--gray-600); cursor: pointer; display: none; padding: 4px; }
.topbar-title { font-weight: 700; font-size: 18px; color: var(--gray-900); flex: 1; }
.topbar-company {
  display: flex; align-items: center;
  font-size: 12px; font-weight: 600;
  color: var(--primary);
  background: rgba(79,70,229,0.08);
  border: 1px solid rgba(79,70,229,0.18);
  border-radius: 20px;
  padding: 4px 12px;
  white-space: nowrap;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-actions { display: flex; align-items: center; gap: 10px; }

/* ===== FEEDBACK BUTTON (topbar) ===== */
.feedback-topbar-btn {
  display: flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff; border: none; border-radius: 20px;
  padding: 6px 14px; font-size: 13px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(79,70,229,0.35);
  transition: all 0.2s; flex-shrink: 0;
  position: relative;
}
.feedback-topbar-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(79,70,229,0.45);
  background: linear-gradient(135deg, #6d28d9, #4338ca);
}
.feedback-topbar-btn:active { transform: translateY(0); }
.feedback-topbar-btn .fa-comment-dots { font-size: 14px; }
@media (max-width: 600px) {
  .feedback-btn-label { display: none; }
  .feedback-topbar-btn { padding: 7px 10px; border-radius: 50%; }
}

/* ===== FEEDBACK FORM STYLES ===== */
.feedback-type-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px;
}
.feedback-type-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 8px; border: 2px solid var(--gray-200); border-radius: 10px;
  background: var(--gray-50); cursor: pointer; transition: all 0.18s; font-size: 12px; font-weight: 600;
  color: var(--gray-600);
}
.feedback-type-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(79,70,229,0.05); }
.feedback-type-btn.selected { border-color: var(--primary); color: var(--primary); background: rgba(79,70,229,0.08); }
.feedback-type-btn i { font-size: 20px; }
.feedback-priority-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.feedback-priority-chip {
  padding: 4px 12px; border-radius: 20px; border: 1.5px solid var(--gray-200);
  font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.15s; background: #fff;
  color: var(--gray-600);
}
.feedback-priority-chip.sel-low    { border-color: var(--success); color: var(--success); background: rgba(16,185,129,0.07); }
.feedback-priority-chip.sel-medium { border-color: var(--warning); color: #92400e; background: rgba(245,158,11,0.07); }
.feedback-priority-chip.sel-high   { border-color: var(--danger);  color: var(--danger);  background: rgba(239,68,68,0.07);  }
.feedback-priority-chip.sel-critical{ border-color: #7c3aed; color: #7c3aed; background: rgba(124,58,237,0.07); }

/* ===== MASTER — INBOX DE FEEDBACK ===== */
.feedback-inbox-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px; border-bottom: 1px solid var(--gray-100);
  transition: background 0.15s; cursor: pointer;
}
.feedback-inbox-item:hover { background: var(--gray-50); }
.feedback-inbox-item.unread { background: rgba(79,70,229,0.03); }
.feedback-inbox-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0; font-weight: 700;
}
.feedback-inbox-meta { flex: 1; min-width: 0; }
.feedback-inbox-title { font-weight: 700; font-size: 14px; color: var(--gray-900); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feedback-inbox-sub   { font-size: 12px; color: var(--gray-500); margin-bottom: 4px; }
.feedback-inbox-preview { font-size: 12px; color: var(--gray-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feedback-status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }

.main-content { padding: 24px; flex: 1; }

/* ===== CARDS / STATS ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: #fff; border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px;
}
.stat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.stat-icon.purple { background: #f5f3ff; color: var(--primary); }
.stat-icon.green { background: #ecfdf5; color: var(--success); }
.stat-icon.blue { background: #eff6ff; color: var(--info); }
.stat-icon.yellow { background: #fffbeb; color: var(--warning); }
.stat-icon.red { background: #fef2f2; color: var(--danger); }
.stat-icon.orange { background: #fff7ed; color: #f97316; }
.stat-number { font-size: 26px; font-weight: 800; color: var(--gray-900); line-height: 1; }
.stat-label { font-size: 12px; color: var(--gray-500); margin-top: 2px; }

/* ===== CARD ===== */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; }
.card-header {
  padding: 16px 20px; border-bottom: 1px solid var(--gray-100);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-header h3 { font-size: 15px; font-weight: 700; color: var(--gray-900); }
.card-body { padding: 20px; }

/* ===== TABLE ===== */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th { padding: 10px 14px; text-align: left; font-size: 12px; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; background: var(--gray-50); border-bottom: 1px solid var(--gray-200); }
tbody td { padding: 12px 14px; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--gray-50); }

/* ===== BADGES ===== */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-green::before { background: #16a34a; }
.badge-red { background: #fee2e2; color: #b91c1c; }
.badge-red::before { background: #dc2626; }
.badge-yellow { background: #fef9c3; color: #854d0e; }
.badge-yellow::before { background: #ca8a04; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-blue::before { background: #2563eb; }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }
.badge-gray::before { background: var(--gray-400); }
.badge-purple { background: #f5f3ff; color: #6d28d9; }
.badge-purple::before { background: var(--primary); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 500;
  cursor: pointer; border: none; transition: all 0.2s; text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover { background: #d97706; }
.btn-outline { background: #fff; color: var(--gray-700); border: 1px solid var(--gray-300); }
.btn-outline:hover { background: var(--gray-50); border-color: var(--gray-400); }
.btn-ghost { background: transparent; color: var(--gray-600); }
.btn-ghost:hover { background: var(--gray-100); }
.btn-sm { padding: 5px 10px; font-size: 13px; }
.btn-xs { padding: 3px 8px; font-size: 12px; border-radius: 6px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn-xl { padding: 18px 40px; font-size: 18px; font-weight: 700; border-radius: 16px; }
.btn-icon { padding: 8px; border-radius: 8px; }
.btn-full { width: 100%; justify-content: center; }

/* ===== FORMS ===== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.form-full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--gray-700); }
.form-group label .req { color: var(--danger); margin-left: 2px; }
.form-control {
  padding: 9px 12px; border: 1px solid var(--gray-300); border-radius: 8px;
  font-size: 14px; font-family: inherit; background: #fff; color: var(--gray-800);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
.form-control[readonly] { background: var(--gray-50); color: var(--gray-500); }
select.form-control { cursor: pointer; }
.form-hint { font-size: 12px; color: var(--gray-500); }
.form-section { margin-bottom: 24px; }
.form-section-title { font-size: 14px; font-weight: 700; color: var(--gray-800); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--gray-200); }
.checkbox-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; }
.checkbox-row input[type=checkbox] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--primary); }
.checkbox-row label { font-size: 14px; color: var(--gray-700); cursor: pointer; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
.toggle-row:last-child { border-bottom: none; }
.toggle-label { font-size: 14px; color: var(--gray-700); }
.toggle-desc { font-size: 12px; color: var(--gray-400); margin-top: 2px; }
.toggle { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; background: var(--gray-300); border-radius: 24px; cursor: pointer; transition: 0.3s;
}
.toggle-slider::before { content: ''; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.3s; }
.toggle input:checked + .toggle-slider { background: var(--primary); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ===== SEARCH/FILTER ===== */
.table-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.search-box { position: relative; }
.search-box i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--gray-400); font-size: 13px; }
.search-box input { padding: 8px 12px 8px 32px; border: 1px solid var(--gray-300); border-radius: 8px; font-size: 14px; width: 240px; font-family: inherit; }
.search-box input:focus { outline: none; border-color: var(--primary); }
.filter-select { padding: 8px 12px; border: 1px solid var(--gray-300); border-radius: 8px; font-size: 14px; background: #fff; font-family: inherit; cursor: pointer; }

/* ===== PAGINATION ===== */
.pagination { display: flex; align-items: center; gap: 4px; justify-content: flex-end; padding-top: 12px; }
.page-btn {
  width: 32px; height: 32px; border: 1px solid var(--gray-300); border-radius: 6px;
  background: #fff; cursor: pointer; font-size: 13px; color: var(--gray-600); transition: all 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-info { font-size: 13px; color: var(--gray-500); margin: 0 8px; }

/* ===== MODAL ===== */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay.open { display: flex; }
.modal-box { background: #fff; border-radius: 16px; width: 100%; max-width: 560px; max-height: 90vh; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.modal-box.modal-lg { max-width: 720px; }
.modal-box.modal-xl { max-width: 900px; }
.modal-header { padding: 18px 20px; border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-size: 16px; font-weight: 700; color: var(--gray-900); }
.modal-header button { background: none; border: none; color: var(--gray-400); font-size: 18px; cursor: pointer; padding: 2px 6px; border-radius: 4px; }
.modal-header button:hover { color: var(--gray-700); background: var(--gray-100); }
.modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.modal-footer { padding: 16px 20px; border-top: 1px solid var(--gray-200); display: flex; gap: 10px; justify-content: flex-end; }

/* ===== TOAST ===== */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; }
.toast {
  min-width: 280px; padding: 14px 18px; border-radius: 10px; font-size: 14px;
  display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease; color: #fff;
}
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-info { background: var(--info); }
.toast-warning { background: var(--warning); }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }

/* ===== PUNCH BUTTON ===== */
.punch-hero { text-align: center; padding: 32px 0 24px; }
.punch-clock { font-size: 52px; font-weight: 800; color: var(--gray-900); letter-spacing: -2px; font-variant-numeric: tabular-nums; }
.punch-date { font-size: 15px; color: var(--gray-500); margin-top: 4px; }
.punch-btn-wrap { margin: 32px 0; }
.punch-btn {
  width: 140px; height: 140px; border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border: none; color: #fff; font-size: 15px; font-weight: 700;
  cursor: pointer; box-shadow: 0 8px 32px rgba(79,70,229,0.4);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  transition: all 0.2s; position: relative;
}
.punch-btn:hover { transform: scale(1.05); box-shadow: 0 12px 40px rgba(79,70,229,0.5); }
.punch-btn:active { transform: scale(0.97); }
.punch-btn i { font-size: 32px; }
.punch-btn.sending { background: linear-gradient(135deg, #6b7280, #9ca3af); box-shadow: none; cursor: not-allowed; }
.punch-btn.success-state { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 8px 32px rgba(16,185,129,0.4); }
.punch-options { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.punch-option-btn {
  padding: 8px 20px; border-radius: 20px; border: 2px solid var(--gray-300);
  background: #fff; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.15s;
}
.punch-option-btn.active { border-color: var(--primary); color: var(--primary); background: #f5f3ff; }
.punch-result {
  background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 12px;
  padding: 16px 20px; margin-top: 20px; display: none;
}
.punch-result.show { display: block; }
.punch-result-code { font-size: 20px; font-weight: 800; color: var(--success); letter-spacing: 1px; }

/* ===== TFL MODAL ===== */
.tfl-modal-header {
  text-align: center;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border-radius: 12px;
  padding: 20px 16px 16px;
  margin-bottom: 20px;
}
.tfl-modal-header .tfl-icon { font-size: 36px; margin-bottom: 8px; }
.tfl-modal-header h3 { font-size: 18px; font-weight: 800; margin: 0 0 4px; }
.tfl-modal-header p  { font-size: 12px; opacity: 0.9; margin: 0; }

.tfl-time-input-wrap {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  margin: 20px 0;
}
.tfl-time-seg {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.tfl-time-seg input {
  width: 72px; height: 72px; font-size: 28px; font-weight: 800;
  text-align: center; border: 2px solid var(--gray-200); border-radius: 12px;
  background: var(--gray-50); color: var(--gray-900);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  appearance: textfield; -moz-appearance: textfield;
}
.tfl-time-seg input::-webkit-outer-spin-button,
.tfl-time-seg input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tfl-time-seg input:focus { border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,0.2); background: #fffbeb; }
.tfl-time-seg input.tfl-filled { border-color: #f59e0b; background: #fffbeb; }
.tfl-time-seg label { font-size: 10px; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; }
.tfl-sep { font-size: 32px; font-weight: 900; color: var(--gray-400); padding-bottom: 14px; user-select: none; }
.tfl-display {
  text-align: center; font-size: 14px; color: var(--gray-500); margin-bottom: 8px;
  font-family: monospace; letter-spacing: 1px;
}
.tfl-display strong { color: #d97706; font-size: 16px; }
.tfl-clock-now {
  text-align: center; font-size: 11px; color: var(--gray-400); margin-top: 4px;
}
.tfl-use-now-btn {
  display: block; width: 100%; padding: 10px; border-radius: 8px;
  border: 1.5px dashed #f59e0b; background: rgba(245,158,11,0.05);
  color: #92400e; font-size: 13px; font-weight: 600;
  cursor: pointer; text-align: center; transition: all 0.15s; margin-top: 12px;
}
.tfl-use-now-btn:hover { background: rgba(245,158,11,0.12); border-style: solid; }
.tfl-info-box {
  background: rgba(245,158,11,0.07); border: 1px solid rgba(245,158,11,0.25);
  border-radius: 8px; padding: 10px 14px; font-size: 12px; color: #92400e;
  display: flex; gap: 8px; align-items: flex-start; margin-top: 16px;
}

/* ===== PUNCH STATUS BADGE & SCHEDULE STRIP ===== */
.punch-status-wrap { margin: 16px 0 4px; }
.punch-next-badge {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 10px 18px; border-radius: 24px; border: 1px solid;
  font-size: 14px; font-weight: 600;
}
.punch-next-time {
  font-size: 12px; font-weight: 700; opacity: 0.85;
  background: rgba(0,0,0,0.06); border-radius: 10px; padding: 2px 8px;
}
.punch-count-chip {
  font-size: 11px; font-weight: 600; opacity: 0.7;
  background: rgba(0,0,0,0.07); border-radius: 10px; padding: 2px 8px;
}

/* Tira de horários da jornada */
.schedule-strip {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 0; margin: 18px auto 4px; max-width: 380px;
  position: relative;
}
.schedule-strip::before {
  content: ''; position: absolute;
  top: 18px; left: 12%; right: 12%;
  height: 2px; background: var(--gray-200); z-index: 0;
}
.sstrip-item {
  display: flex; flex-direction: column; align-items: center;
  flex: 1; position: relative; z-index: 1;
}
.sstrip-time {
  font-size: 13px; font-weight: 700; color: var(--gray-600);
  margin-bottom: 6px; font-variant-numeric: tabular-nums;
}
.sstrip-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gray-300); border: 2px solid var(--gray-300);
  transition: all 0.2s;
}
.sstrip-item.done .sstrip-dot  { background: var(--success); border-color: var(--success); }
.sstrip-item.done .sstrip-time { color: var(--success); }
.sstrip-item.done .sstrip-label{ color: var(--success); font-weight: 700; }
.sstrip-item.current .sstrip-dot {
  background: var(--primary); border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79,70,229,0.2);
  width: 18px; height: 18px;
}
.sstrip-item.current .sstrip-time { color: var(--primary); font-size: 14px; }
.sstrip-item.current .sstrip-label{ color: var(--primary); font-weight: 700; }
.sstrip-label {
  font-size: 11px; color: var(--gray-400); margin-top: 6px;
  text-align: center; line-height: 1.3;
}
.sstrip-label small { display: block; font-size: 10px; opacity: 0.75; }

/* ===== RECEIPT ===== */
.receipt-card {
  border: 2px solid var(--gray-200); border-radius: 16px; padding: 28px;
  max-width: 420px; margin: 0 auto; font-family: 'Inter', monospace;
}
.receipt-header { text-align: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 2px dashed var(--gray-200); }
.receipt-header h2 { font-size: 16px; color: var(--gray-500); text-transform: uppercase; letter-spacing: 2px; }
.receipt-header .receipt-code { font-size: 22px; font-weight: 800; color: var(--primary); margin-top: 8px; letter-spacing: 1px; }
.receipt-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--gray-100); font-size: 14px; }
.receipt-row:last-child { border-bottom: none; }
.receipt-row .key { color: var(--gray-500); }
.receipt-row .val { color: var(--gray-900); font-weight: 600; }
.receipt-seal { text-align: center; margin-top: 20px; padding-top: 16px; border-top: 2px dashed var(--gray-200); }
.receipt-seal i { font-size: 28px; color: var(--success); }
.receipt-seal p { font-size: 12px; color: var(--gray-500); margin-top: 4px; }

/* ===== PROFILE CARD ===== */
.profile-card { background: linear-gradient(135deg, #4f46e5, #7c3aed); border-radius: 16px; padding: 24px; color: #fff; margin-bottom: 20px; }
.profile-card .profile-name { font-size: 22px; font-weight: 800; }
.profile-card .profile-meta { font-size: 14px; opacity: 0.8; margin-top: 4px; }
.profile-card .profile-badge { display: inline-block; background: rgba(255,255,255,0.2); padding: 4px 12px; border-radius: 20px; font-size: 12px; margin-top: 10px; }
.profile-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.profile-detail-item { background: var(--gray-50); border-radius: 10px; padding: 14px; }
.profile-detail-item .pdi-label { font-size: 11px; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.5px; }
.profile-detail-item .pdi-val { font-size: 15px; font-weight: 600; color: var(--gray-900); margin-top: 2px; }

/* ===== SCHEDULE GRID ===== */
.schedule-grid { width: 100%; }
.sg-header { display: grid; grid-template-columns: 90px 1fr 1fr 1fr 1fr 60px 60px 50px; gap: 6px; padding: 8px 0; font-size: 11px; font-weight: 600; color: var(--gray-500); text-transform: uppercase; }
.sg-row { display: grid; grid-template-columns: 90px 1fr 1fr 1fr 1fr 60px 60px 50px; gap: 6px; padding: 8px 0; border-top: 1px solid var(--gray-100); align-items: center; }
.sg-day { font-size: 13px; font-weight: 600; color: var(--gray-700); }
.sg-input { padding: 5px 8px; border: 1px solid var(--gray-300); border-radius: 6px; font-size: 13px; width: 100%; font-family: inherit; }
.sg-input:focus { outline: none; border-color: var(--primary); }
.sg-input[disabled] { background: var(--gray-50); color: var(--gray-400); }

/* ===== PROGRESS BAR ===== */
.progress-wrap { background: var(--gray-200); border-radius: 10px; height: 8px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--primary), var(--primary-light)); transition: width 0.5s; }

/* ===== TABS ===== */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--gray-200); margin-bottom: 20px; }
.tab-btn {
  padding: 10px 20px; font-size: 14px; font-weight: 500; color: var(--gray-500);
  background: none; border: none; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.15s;
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 4px; bottom: 4px; width: 2px; background: var(--gray-200); }
.timeline-item { position: relative; margin-bottom: 16px; }
.timeline-dot { position: absolute; left: -20px; top: 4px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--primary); background: #fff; }
.timeline-dot.filled { background: var(--primary); }
.timeline-content { background: var(--gray-50); border-radius: 8px; padding: 10px 14px; }
.timeline-time { font-size: 11px; color: var(--gray-400); }
.timeline-text { font-size: 14px; color: var(--gray-800); margin-top: 2px; }
.timeline-meta { font-size: 12px; color: var(--gray-500); margin-top: 2px; }

/* ===== ALERTS ===== */
.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; }
.alert i { margin-top: 1px; flex-shrink: 0; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ===== DIVIDER ===== */
.divider { border: none; border-top: 1px solid var(--gray-200); margin: 20px 0; }

/* ===== UTILS ===== */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-gray { color: var(--gray-500); }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.w-full { width: 100%; }
.d-none { display: none; }
.empty-state { text-align: center; padding: 48px 24px; color: var(--gray-400); }
.empty-state i { font-size: 40px; margin-bottom: 12px; }
.empty-state p { font-size: 15px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .sidebar { transform: translateX(-260px); width: 260px; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: block; }
  .sidebar-overlay.open { display: block; }
  .main-wrapper { margin-left: 0; }
  .menu-btn { display: block; }
  .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .profile-detail-grid { grid-template-columns: 1fr; }
  .sg-header, .sg-row { grid-template-columns: 80px 1fr 1fr; font-size: 12px; }
  .sg-header span:nth-child(n+4), .sg-row *:nth-child(n+4) { display: none; }
  .main-content { padding: 16px; }
  .search-box input { width: 180px; }
  .modal-box { max-width: 100%; margin: 0; border-radius: 16px 16px 0 0; align-self: flex-end; max-height: 92vh; }
  .modal-overlay { align-items: flex-end; padding: 0; }
  /* Login mobile */
  .brand-mega      { font-size: 56px; letter-spacing: 4px; }
  .brand-ponto     { font-size: 43px; padding-left: 4px; }
  .login-clock-icon{ width: 72px; height: 72px; font-size: 30px; }
}

/* ===== STAT-CARD REFINAMENTOS MONETÁRIOS ===== */
.stat-currency {
  font-size: 18px !important;
  font-weight: 800;
  color: var(--success);
  letter-spacing: -0.5px;
  line-height: 1.2;
  white-space: nowrap;
}
.stat-card-wide {
  grid-column: span 2;
}
.stat-card .stat-number { line-height: 1.15; }
/* Cards de valores negativos */
.stat-currency.negative { color: var(--danger) !important; }

/* ===== COMPROVANTE DE IMPRESSÃO ===== */
#print-area {
  display: none;
}
@media print {
  body * { visibility: hidden !important; }
  #print-area, #print-area * { visibility: visible !important; }
  #print-area {
    display: block !important;
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 99999;
    padding: 24px 32px;
    font-family: 'Inter', Arial, sans-serif;
    overflow: visible;
    font-size: 12px;
    color: #111827;
  }
  /* Relatório: tabelas */
  #print-area table { width: 100%; border-collapse: collapse; font-size: 11px; }
  #print-area table thead tr {
    background: #4f46e5 !important;
    color: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  #print-area table tbody tr:nth-child(even) {
    background: #f9fafb !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  #print-area table td, #print-area table th { padding: 5px 7px; border: 1px solid #e5e7eb; }
  /* Evitar quebra dentro de seções */
  #print-area > div > div { page-break-inside: avoid; }
  /* Cores inline preservadas */
  #print-area [style*="color"] { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #print-area [style*="background"] { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  /* Comprovante individual */
  .receipt-print-card {
    max-width: 380px;
    margin: 0 auto;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
  }
  .receipt-print-header { text-align: center; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px dashed #d1d5db; }
  .receipt-print-logo { font-size: 20px; font-weight: 900; color: #4f46e5; letter-spacing: -0.5px; }
  .receipt-print-subtitle { font-size: 12px; color: #6b7280; letter-spacing: 2px; text-transform: uppercase; margin-top: 4px; }
  .receipt-print-code { font-size: 20px; font-weight: 800; color: #4f46e5; margin-top: 10px; letter-spacing: 1px; }
  .receipt-print-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f3f4f6; font-size: 13px; }
  .receipt-print-row .key { color: #6b7280; }
  .receipt-print-row .val { font-weight: 600; color: #111827; text-align: right; max-width: 60%; }
  .receipt-print-divider { border: none; border-top: 1px dashed #d1d5db; margin: 14px 0; }
  .receipt-print-section-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: #9ca3af; margin: 10px 0 6px; }
  .receipt-print-seal { text-align: center; margin-top: 20px; padding: 16px 0 0; border-top: 2px dashed #d1d5db; font-size: 11px; color: #9ca3af; line-height: 1.8; }
  .no-print { display: none !important; }
}

/* ===== FILTRO ATIVO HIGHLIGHT ===== */
.filter-select.active-filter {
  border-color: var(--primary);
  color: var(--primary);
  background: #f5f3ff;
  font-weight: 600;
}
.search-box input.active-filter {
  border-color: var(--primary);
  background: #f5f3ff;
}

/* ===== EMPLOYEE SWITCHER ===== */
.emp-switcher {
  display: flex; align-items: center; gap: 8px;
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: 10px; padding: 8px 14px; margin-bottom: 16px;
}
.emp-switcher label { font-size: 13px; font-weight: 600; color: var(--gray-600); white-space: nowrap; }
.emp-switcher select { flex: 1; border: none; background: transparent; font-size: 14px; font-weight: 600; color: var(--gray-900); cursor: pointer; font-family: inherit; }
.emp-switcher select:focus { outline: none; }
.emp-switcher .emp-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--primary);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}

.sidebar-version {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(165,180,252,0.70);
  text-align: center;
  letter-spacing: 1px;
  user-select: none;
  background: rgba(99,102,241,0.18);
  border: 1px solid rgba(165,180,252,0.22);
  border-radius: 8px;
  padding: 5px 10px;
  text-transform: uppercase;
}

/* Link do site oficial na sidebar — mesma caixa que sidebar-version */
.sidebar-site-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(165,180,252,0.70);
  text-align: center;
  letter-spacing: 0.5px;
  background: rgba(99,102,241,0.18);
  border: 1px solid rgba(165,180,252,0.22);
  border-radius: 8px;
  padding: 5px 10px;
  text-decoration: none;
  transition: color 0.18s, background 0.18s;
}
.sidebar-site-link:hover {
  color: rgba(199,210,254,0.95);
  background: rgba(99,102,241,0.30);
}
.sidebar-site-link i { font-size: 10px; }

/* Link do site oficial no rodapé da tela de login — mesma cor do texto ao redor */
.login-site-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  color: rgba(199,210,254,0.50);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: color 0.18s;
}
.login-site-link:hover {
  color: rgba(199,210,254,0.85);
}
.login-site-link i { font-size: 10px; }

/* CPF toggle na tabela */
.btn-cpf-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400);
  padding: 0 0 0 5px;
  font-size: 12px;
  vertical-align: middle;
  transition: color 0.15s;
}
.btn-cpf-toggle:hover { color: var(--primary); }
.cpf-val {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  vertical-align: middle;
}

/* ================================================================
   RESPONSIVIDADE ABRANGENTE — MEGAPonto v2.0.8
   Cobertura: 320px (iPhone SE) → 2560px (4K)
   ================================================================ */

/* ── Tela de ponto: botão biométrico ── */
#punch-biometric-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(16,185,129,.4) !important;
}

/* ── Tabela responsiva (overflow horizontal em mobile) ── */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-wrapper table {
  min-width: 500px;
}

/* ── Cards de stats: mobile 2 colunas, tablet 3 ── */
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr !important; gap: 10px; }
  .stat-card { padding: 14px; }
  .stat-number { font-size: 20px !important; }
  .stat-label  { font-size: 11px; }
  .stat-card-wide { grid-column: span 2; }
}

/* ── Topbar: compacto em mobile ── */
@media (max-width: 480px) {
  .topbar { padding: 0 10px; gap: 6px; }
  .topbar-title { font-size: 14px; }
  #topbar-actions { gap: 4px; }
  #topbar-actions .btn { padding: 5px 8px; font-size: 11px; }
  #notify-topbar-btn { padding: 5px 8px; font-size: 11px; }
  #notify-topbar-btn .feedback-btn-label { display: none; }
}

/* ── Modal: tela cheia em telas muito pequenas ── */
@media (max-width: 480px) {
  .modal-box {
    border-radius: 12px 12px 0 0;
    max-height: 95vh;
    padding: 0;
  }
  .modal-header { padding: 14px 16px; }
  .modal-body   { padding: 12px 16px; }
  .modal-footer { padding: 10px 16px; gap: 8px; }
  .modal-footer .btn { flex: 1; text-align: center; justify-content: center; }
}

/* ── TFL: inputs menores em mobile ── */
@media (max-width: 480px) {
  .tfl-time-input-wrap { flex-wrap: wrap; justify-content: center; }
  .tfl-time-input-wrap input[type="number"] {
    width: 52px !important;
    height: 52px !important;
    font-size: 20px !important;
  }
}

/* ── Card do app: padding menor em mobile ── */
@media (max-width: 480px) {
  .card-body { padding: 14px; }
  .card-header { padding: 12px 14px; }
  .main-content { padding: 12px; }
}

/* ── Punch clock: tamanho adaptativo ── */
@media (max-width: 360px) {
  .punch-clock { font-size: 48px !important; }
  .punch-btn { font-size: 15px !important; padding: 14px !important; }
}

/* ── Tabela de funcionários: oculta colunas menos importantes ── */
@media (max-width: 600px) {
  .table-wrapper table .col-phone,
  .table-wrapper table .col-branch,
  .table-wrapper table .col-email { display: none; }
}

/* ── Formulário de edição: grid simples em mobile ── */
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr !important; }
  .form-grid-3 { grid-template-columns: 1fr !important; }
  .form-section { padding: 14px; }
}

/* ── Schedule Grid (jornada) em mobile ── */
@media (max-width: 600px) {
  .sg-header { display: none; }
  .sg-row {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
    gap: 4px;
  }
  .sg-row * { display: block !important; font-size: 13px; }
}

/* ── Login: espaçamento em telas muito pequenas ── */
@media (max-width: 360px) {
  .login-hero { padding: 20px 14px 24px; }
  .profile-btn { padding: 10px 12px; }
  .profile-icon { width: 38px; height: 38px; font-size: 15px; }
  .brand-mega { font-size: 44px; }
  .brand-ponto { font-size: 34px; }
}

/* ── Punch options: full width em mobile ── */
@media (max-width: 480px) {
  .punch-options { width: 100%; }
  .punch-option-btn { flex: 1; text-align: center; justify-content: center; font-size: 12px; }
}

/* ── BH Banco de Horas: 2 colunas em mobile ── */
@media (max-width: 480px) {
  #bh-summary-grid,
  .bh-summary-grid { grid-template-columns: 1fr 1fr !important; }
}

/* ── Relatório PDF: responsivo em preview antes de imprimir ── */
@media (max-width: 600px) {
  #print-area { padding: 12px !important; }
  #print-area > div { max-width: 100% !important; }
}

/* ── Sidebar overlay melhoria ── */
@media (max-width: 768px) {
  .sidebar-overlay { background: rgba(0,0,0,0.4); }
}

/* ── Scroll suave ── */
html { scroll-behavior: smooth; }

/* ── Textos helpers ── */
.text-xs   { font-size: 11px; }
.text-sm   { font-size: 12px; }
.text-gray { color: var(--gray-500); }
.d-none    { display: none !important; }
.d-sm-inline { display: none; }
@media (min-width: 480px) { .d-sm-inline { display: inline; } }
.d-md-inline { display: none; }
@media (min-width: 768px) { .d-md-inline { display: inline; } }

/* ── Scrollbar estilizada ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ── Focus ring acessibilidade ── */
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ── Biometria badge ── */
.badge-biometric {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #15803d;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
}

/* ── Animação de spin para carregando ── */
@keyframes fa-spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.fa-spin { animation: fa-spin 1s linear infinite; }

/* ===== PRINT BTN ===== */
.btn-print {
  background: #fff; color: var(--gray-700); border: 1px solid var(--gray-300);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
}
.btn-print:hover { background: #f0fdf4; border-color: var(--success); color: var(--success); }

/* ===== BANCO DE HORAS — TAB DESTAQUE ===== */
.tab-btn-bh { color: var(--success) !important; }
.tab-btn-bh.active { color: var(--success) !important; border-bottom-color: var(--success) !important; }
.tab-btn-bh i { color: var(--success); }

/* ===== TOAST FADE-OUT ===== */
.toast { transition: opacity 0.5s; }
.toast.fade-out { opacity: 0; }

/* ===== BANCO HORAS — NAV BADGE (sidebar) ===== */
.nav-item-highlight .nav-bh-badge {
  margin-left: auto;
  background: rgba(16,185,129,0.25);
  color: #34d399;
  border-radius: 8px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ===== STAT CURRENCY ===== */
.stat-currency {
  font-size: 18px !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}

/* ===== BRL INPUT ===== */
input[id$="-mrr"],
input.brl-input {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2px;
}

/* ===== NAV BADGE (alertas/aprovações) ===== */
.nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  border-radius: 10px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
  line-height: 16px;
  animation: pulse-badge 1.5s infinite;
}
@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.7; }
}

/* ===== ALERT DANGER ===== */
.alert-danger {
  background: #fef2f2;
  border-color: rgba(239,68,68,0.3);
  color: #991b1b;
}
.alert-danger i { color: var(--danger); }

/* ===== PUNCH STATUS BADGE ===== */
.punch-next-badge {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid; border-radius: 12px;
  padding: 8px 16px; font-size: 14px; font-weight: 600;
  margin-bottom: 12px; flex-wrap: wrap; justify-content: center;
}
.punch-next-time {
  background: rgba(0,0,0,0.06); border-radius: 6px;
  padding: 2px 8px; font-size: 12px; margin-left: 6px;
}
.punch-count-chip {
  background: rgba(79,70,229,0.1); color: var(--primary);
  border-radius: 8px; padding: 2px 8px; font-size: 11px; margin-left: 4px;
}

/* ===== FÉRIAS — Vacation module ===== */
.vacation-status-approved { color: var(--success); font-weight: 700; }
.vacation-status-pending   { color: var(--warning); font-weight: 700; }
.vacation-status-rejected  { color: var(--danger);  font-weight: 700; }
