/* ═══════════════════════════════════
   SIGMA RH — Design System
   ══════════════════════════════════ */
:root {
  --red:     #A72C31;
  --red-dk:  #8a2228;
  --red-lt:  #f9ecec;
  --green:   #1a7a4a;
  --green-lt:#e8f5ee;
  --yellow:  #b07b00;
  --yellow-lt:#fff8e1;
  --bg:      #f4f5f7;
  --surface: #ffffff;
  --border:  #e0e0e0;
  --text:    #1a1a2e;
  --muted:   #6b7280;
  --sidebar-w: 220px;
  --radius:  8px;
  --shadow:  0 1px 4px rgba(0,0,0,.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', system-ui, sans-serif; font-size: 14px; color: var(--text); background: var(--bg); display: flex; min-height: 100vh; }

a { color: inherit; text-decoration: none; }
input, select, textarea, button { font-family: inherit; font-size: 14px; }
textarea { resize: vertical; }

/* ─── SIDEBAR ─────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--text);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  overflow-y: auto;
  z-index: 100;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand-logo {
  width: 36px; height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-name { font-weight: 700; font-size: 15px; }
.brand-sub  { font-size: 11px; color: rgba(255,255,255,.5); }

.sidebar-search {
  padding: 12px 12px 4px;
}
.sidebar-search input {
  width: 100%;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 12px;
}
.sidebar-search input::placeholder { color: rgba(255,255,255,.4); }

.sidebar-nav { list-style: none; padding: 8px 0; flex: 1; }
.sidebar-nav li a {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  font-size: 13px;
  color: rgba(255,255,255,.65);
  transition: background .15s, color .15s;
}
.sidebar-nav li a:hover, .sidebar-nav li a.active {
  background: rgba(255,255,255,.1);
  color: #fff;
}
.sidebar-nav li a.active { border-right: 3px solid var(--red); }
.nav-icon { font-size: 15px; opacity: .7; }
.nav-divider {
  padding: 14px 16px 4px;
  font-size: 10px;
  letter-spacing: .08em;
  color: rgba(255,255,255,.3);
  text-transform: uppercase;
}

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.btn-novo-colab {
  display: block;
  text-align: center;
  padding: 8px;
  background: var(--red);
  color: #fff;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: background .15s;
}
.btn-novo-colab:hover { background: var(--red-dk); }

/* ─── MAIN ───────────────────────── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.page-title { font-size: 24px; font-weight: 700; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-date { color: var(--muted); font-size: 13px; }
.topbar-user { display: flex; align-items: center; gap: 8px; }
.user-avatar {
  width: 32px; height: 32px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.user-name { font-size: 13px; font-weight: 600; }

.content-area { padding: 24px; flex: 1; max-width: 1280px; width: 100%; }

/* ─── ALERTS ─────────────────────── */
.alert {
  padding: 10px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 13px;
}
.alert-success { background: var(--green-lt); color: var(--green); }
.alert-info    { background: #e8f4fd; color: #1565c0; }
.alert-danger  { background: var(--red-lt); color: var(--red); }

/* ─── KPI GRID ───────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  display: block;
}
.kpi-clicavel { cursor: pointer; transition: box-shadow .15s, transform .15s; }
.kpi-clicavel:hover { box-shadow: 0 4px 12px rgba(0,0,0,.12); transform: translateY(-1px); }
.kpi-clicavel.kpi-ativo { border: 2px solid var(--red); }
.kpi-card.kpi-red    { border-top: 3px solid var(--red);    }
.kpi-card.kpi-green  { border-top: 3px solid var(--green);  }
.kpi-card.kpi-yellow { border-top: 3px solid var(--yellow); }
.kpi-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.kpi-value { font-size: 32px; font-weight: 800; color: var(--text); line-height: 1; }
.kpi-sub   { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ─── SECTION HEADER ─────────────── */
.filtros-bar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.filtros-bar select {
  padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text); min-width: 180px;
}
.tag-socio, .tag-lider {
  display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 6px;
  border-radius: 4px; margin-left: 4px; vertical-align: middle;
}
.tag-socio { background: var(--red-lt); color: var(--red); }
.tag-lider { background: var(--yellow-lt); color: var(--yellow); }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-header h2 { font-size: 16px; font-weight: 700; }
.mt-lg { margin-top: 28px; }
.mt-sm { margin-top: 8px; }

/* ─── COLABORADORES GRID ─────────── */
.colaboradores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.colab-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .15s;
}
.colab-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.colab-card.status-pendente { border-top: 3px solid var(--red); }
.colab-card.status-atencao  { border-top: 3px solid #f59e0b; }
.colab-card.status-em_dia   { border-top: 3px solid var(--green); }

.colab-card-header {
  padding: 14px 14px 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.colab-avatar {
  width: 42px; height: 42px; min-width: 42px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
  overflow: hidden;
}
.colab-avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.foto-upload-row { display: flex; align-items: center; gap: 14px; }
.foto-preview {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  background: var(--red); color: #fff; font-size: 24px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.foto-preview-empty { display: flex; }
.colab-info { flex: 1; }
.colab-nome  { font-weight: 700; font-size: 15px; }
.colab-cargo { font-size: 12px; color: var(--muted); margin-top: 2px; }
.colab-depto { font-size: 11px; color: var(--muted); }
.colab-status-badge {
  font-size: 11px; font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.colab-status-badge.status-em_dia   { background: var(--green-lt); color: var(--green); }
.colab-status-badge.status-atencao  { background: var(--yellow-lt); color: var(--yellow); }
.colab-status-badge.status-pendente { background: var(--red-lt); color: var(--red); }

.colab-card-body { padding: 0 14px 10px; }
.colab-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.colab-meta-item { display: flex; flex-direction: column; }
.meta-label  { font-size: 10px; color: var(--muted); text-transform: uppercase; }
.meta-value  { font-size: 13px; font-weight: 600; }
.meta-missing { color: var(--red); }

.colab-card-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 6px;
}

/* ─── BOTÕES ─────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .15s;
  font-size: 13px;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dk); }
.btn-outline { border-color: var(--border); background: transparent; color: var(--text); }
.btn-outline:hover { background: var(--bg); }
.btn-ghost   { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.btn-danger  { background: var(--red-lt); color: var(--red); border-color: var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-sm  { padding: 6px 12px; font-size: 12px; }
.btn-xs  { padding: 4px 8px;  font-size: 11px; }
.btn-full { width: 100%; display: flex; }

/* ─── TABS (lateral) ───────────────── */
.perfil-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.tabs {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 200px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  position: sticky;
  top: 72px;
}
.tab {
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border-left: 3px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s;
}
.tab:hover { color: var(--text); background: var(--bg); }
.tab.active { color: var(--red); border-color: var(--red); background: var(--red-lt); }

.perfil-tab-panel { flex: 1; min-width: 0; }
.tab-content { min-height: 200px; }

@media (max-width: 900px) {
  .perfil-layout { flex-direction: column; }
  .tabs { flex-direction: row; flex-wrap: wrap; width: 100%; position: static; }
}
.tab-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

/* ─── PERFIL ─────────────────────── */
.perfil-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.perfil-header.status-pendente { border-left: 4px solid var(--red); }
.perfil-header.status-atencao  { border-left: 4px solid #f59e0b; }
.perfil-header.status-em_dia   { border-left: 4px solid var(--green); }

.perfil-avatar-letter {
  width: 60px; height: 60px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800;
}
.perfil-avatar-img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.perfil-nome  { font-size: 20px; font-weight: 800; }
.perfil-cargo { font-size: 14px; color: var(--muted); margin: 2px 0; }
.perfil-meta  { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); margin-top: 4px; }
.perfil-status-badge { padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; margin-left: auto; }
.perfil-status-badge.status-em_dia   { background: var(--green-lt); color: var(--green); }
.perfil-status-badge.status-atencao  { background: var(--yellow-lt); color: var(--yellow); }
.perfil-status-badge.status-pendente { background: var(--red-lt); color: var(--red); }
.perfil-actions { display: flex; gap: 8px; }

/* ─── INFO CARD ──────────────────── */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.info-card.span-2 { grid-column: span 2; }
.info-card h3 { font-size: 13px; font-weight: 700; margin-bottom: 12px; color: var(--muted); text-transform: uppercase; }
.info-dl { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; }
.info-dl dt { font-size: 12px; color: var(--muted); }
.info-dl dd { font-size: 13px; font-weight: 500; }

/* ─── PDI ────────────────────────── */
.pdi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.pdi-card.status-concluido { opacity: .7; }
.pdi-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.pdi-data  { font-size: 12px; color: var(--muted); }
.pdi-status-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: var(--bg);
}
.pdi-prazo { margin-left: 8px; font-size: 12px; color: var(--muted); }
.pdi-objetivo { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.pdi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 10px; }
.pdi-section { background: var(--bg); border-radius: 6px; padding: 10px; }
.pdi-fortes  .pdi-section-label { color: var(--green); }
.pdi-melhoria .pdi-section-label { color: var(--red); }
.pdi-plano   { background: var(--bg); border-radius: 6px; padding: 10px; margin-bottom: 8px; }
.pdi-section-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.pdi-responsavel { font-size: 12px; color: var(--muted); margin-top: 6px; }
.pdi-obs { font-size: 12px; color: var(--muted); margin-top: 4px; font-style: italic; }

/* ─── FEEDBACK TIMELINE ──────────── */
.timeline { position: relative; padding-left: 20px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 6px; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  margin-bottom: 20px;
}
.timeline-dot {
  position: absolute;
  left: -17px;
  top: 14px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--muted);
  border: 2px solid var(--surface);
}
.timeline-item.tipo-positivo .timeline-dot     { background: var(--green); }
.timeline-item.tipo-construtivo .timeline-dot  { background: var(--red); }
.timeline-item.tipo-avaliação-1-1 .timeline-dot { background: #6366f1; }

.timeline-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}
.timeline-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.timeline-data { font-size: 12px; color: var(--muted); }
.timeline-resp { font-size: 11px; color: var(--muted); }
.fb-tipo-badge {
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.fb-tipo-badge.tipo-positivo    { background: var(--green-lt); color: var(--green); }
.fb-tipo-badge.tipo-construtivo { background: var(--red-lt);   color: var(--red); }
.fb-tipo-badge.tipo-avaliação-1-1 { background: #ede9fe; color: #5b21b6; }
.fb-tipo-badge.tipo-alinhamento   { background: #e0f2fe; color: #0369a1; }
.fb-tipo-badge.tipo-advertência   { background: var(--yellow-lt); color: var(--yellow); }
.timeline-body { font-size: 13px; line-height: 1.6; }
.timeline-next { margin-top: 8px; font-size: 12px; color: var(--muted); background: var(--bg); padding: 6px 10px; border-radius: 4px; }

/* ─── PRODUTIVIDADE ──────────────── */
.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.prod-stats { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.prod-bar-wrap { display: flex; align-items: center; gap: 8px; flex: 1; }
.prod-bar {
  height: 8px;
  background: var(--red);
  border-radius: 4px;
  min-width: 2px;
  max-width: 120px;
}

/* ─── TREINAMENTOS ───────────────── */
.trein-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.trein-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}
.trein-card-header { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.trein-tipo { font-size: 11px; background: var(--bg); padding: 2px 8px; border-radius: 20px; font-weight: 600; }
.trein-cert { font-size: 11px; color: #b45309; }
.trein-nome { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.trein-inst { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.trein-meta { font-size: 11px; color: var(--muted); }
.trein-obs  { font-size: 12px; color: var(--muted); margin-top: 6px; font-style: italic; }

/* ─── TABELA ─────────────────────── */
.table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  background: var(--bg);
  padding: 10px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg); }
.data-table-sm th, .data-table-sm td { padding: 7px 10px; }
.text-danger { color: var(--red); }

/* ─── MODAL ──────────────────────── */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal.hidden { display: none; }
.modal-box {
  background: var(--surface);
  border-radius: var(--radius);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.modal-box.modal-sm { max-width: 480px; }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 15px;
}
.modal-close { background: none; border: none; cursor: pointer; font-size: 18px; color: var(--muted); }
.modal-close:hover { color: var(--text); }
.modal-box form { padding: 20px; }

/* ─── FORMULÁRIOS ────────────────── */
.form-page { max-width: 700px; }
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group.span-2 { grid-column: span 2; }
.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  transition: border-color .15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  background: var(--surface);
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.danger-zone {
  background: var(--red-lt);
  border: 1px solid #f5c6c8;
  border-radius: var(--radius);
  padding: 16px;
}
.danger-zone h4 { font-size: 13px; margin-bottom: 10px; color: var(--red); }

/* ─── GERENCIAL ──────────────────── */
.gerencial-body { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 4px; }
.gerencial-body-full { grid-template-columns: 1fr; }
.gerencial-col  { display: flex; flex-direction: column; gap: 16px; }
.gerencial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.gerencial-card.card-alert { border-left: 3px solid var(--red); }
.gerencial-card h3 { font-size: 13px; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

.ranking-item { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ranking-pos  { font-size: 12px; color: var(--muted); width: 16px; }
.ranking-nome { font-weight: 600; font-size: 13px; min-width: 80px; }
.ranking-bar-wrap { flex: 1; height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.ranking-bar  { height: 100%; background: var(--red); border-radius: 4px; }
.ranking-val  { font-size: 13px; font-weight: 700; min-width: 40px; text-align: right; }

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}
.status-dot-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: box-shadow .15s;
  position: relative;
}
.status-dot-card:hover { box-shadow: var(--shadow); }
.status-dot-card.status-pendente { border-top: 2px solid var(--red); }
.status-dot-card.status-atencao  { border-top: 2px solid #f59e0b; }
.status-dot-card.status-em_dia   { border-top: 2px solid var(--green); }
.status-dot-avatar {
  width: 32px; height: 32px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
  margin: 0 auto 6px;
}
.status-dot-nome  { font-size: 12px; font-weight: 700; }
.status-dot-cargo { font-size: 10px; color: var(--muted); }
.status-dot-badge { font-size: 14px; position: absolute; top: 6px; right: 6px; }

.aniv-item { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.aniv-item:last-child { border-bottom: none; }
.aniv-nome { font-weight: 600; flex: 1; }
.aniv-data { font-size: 12px; color: var(--muted); }
.aniv-dias { font-size: 11px; background: var(--bg); padding: 2px 8px; border-radius: 20px; }

/* ─── RELATÓRIOS ─────────────────── */
.relat-layout { display: grid; grid-template-columns: 220px 1fr; gap: 20px; }
.relat-filtros {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  align-self: start;
  position: sticky;
  top: 72px;
}
.relat-filtros h3 { font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.relat-filtros .form-group { margin-bottom: 12px; }
.relat-filtros .form-group input,
.relat-filtros .form-group select { width: 100%; }
.relat-resultado-header { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; font-size: 13px; font-weight: 600; }

/* ─── BUSCA ──────────────────────── */
.busca-resultados { display: flex; flex-direction: column; gap: 8px; }
.busca-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  transition: box-shadow .15s;
}
.busca-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.busca-avatar {
  width: 40px; height: 40px; min-width: 40px;
  background: var(--red); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
}
.busca-nome { font-weight: 700; }
.busca-sub  { font-size: 12px; color: var(--muted); }

/* ─── MISC ───────────────────────── */
.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--muted);
  font-size: 14px;
}
.hidden { display: none !important; }

/* ─── RELATÓRIO COMPLETO ─────────── */
.relatorio-actions { display: flex; gap: 10px; margin-bottom: 20px; }
.relatorio-doc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 900px;
}
.relatorio-header {
  display: flex; align-items: center; gap: 16px;
  padding-bottom: 16px; margin-bottom: 20px;
  border-bottom: 2px solid var(--text);
}
.relatorio-header h2 { font-size: 22px; }
.relatorio-foto { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.relatorio-section { margin-bottom: 24px; page-break-inside: avoid; }
.relatorio-section h3 {
  font-size: 14px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--red); margin-bottom: 8px; padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.data-table-sm th { text-align: left; background: var(--bg); }

@media print {
  .sidebar, .topbar, .no-print { display: none !important; }
  .main-content { margin-left: 0 !important; }
  .content-area { padding: 0 !important; }
  .relatorio-doc { border: none; max-width: 100%; padding: 0; }
}

/* ─── CALENDÁRIO DE RH ───────────── */
.cal-layout { display: flex; gap: 20px; align-items: flex-start; }
.cal-main { flex: 1; min-width: 0; }
.cal-sidebar {
  width: 280px; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; position: sticky; top: 72px;
}
.cal-sidebar h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }

.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-titulo { font-size: 18px; font-weight: 800; }

.cal-legenda { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; font-size: 12px; color: var(--muted); }
.cal-legenda-item { display: flex; align-items: center; gap: 5px; }
.cal-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.cal-dot.cafe, .cal-evento.cafe { background: #2563eb; }
.cal-dot.pdi, .cal-evento.pdi { background: var(--red); }
.cal-dot.ferias, .cal-evento.ferias { background: var(--green); }
.cal-dot.aniversario, .cal-evento.aniversario { background: var(--yellow); }
.cal-dot.empresa, .cal-evento.empresa { background: #7c3aed; }
.cal-dot.comemorativa, .cal-evento.comemorativa { background: #ea580c; }
.cal-dot.evento, .cal-evento.evento { background: #0891b2; }

.cal-grid {
  width: 100%; border-collapse: collapse;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.cal-grid th {
  background: var(--bg); color: var(--muted); font-size: 11px; text-transform: uppercase;
  letter-spacing: .04em; padding: 8px; text-align: center; border-bottom: 1px solid var(--border);
}
.cal-dia {
  vertical-align: top; border: 1px solid var(--border);
  padding: 6px; height: 96px; width: 14.28%;
}
.cal-vazio { background: var(--bg); }
.cal-dia-num { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.cal-hoje { background: var(--red-lt); }
.cal-hoje .cal-dia-num { color: var(--red); }
.cal-evento {
  font-size: 10.5px; color: #fff; padding: 2px 5px; border-radius: 4px; margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: default;
  display: flex; align-items: center; justify-content: space-between; gap: 4px;
}
.cal-evento-del {
  background: none; border: none; color: #fff; opacity: .7; cursor: pointer;
  font-size: 10px; padding: 0; flex-shrink: 0;
}
.cal-evento-del:hover { opacity: 1; }

.cal-agenda { display: flex; flex-direction: column; gap: 10px; }
.cal-agenda-item { display: flex; gap: 10px; align-items: flex-start; }
.cal-agenda-data {
  font-size: 11px; font-weight: 800; color: var(--red); background: var(--red-lt);
  border-radius: 6px; padding: 4px 6px; min-width: 40px; text-align: center; flex-shrink: 0;
}
.cal-agenda-texto { font-size: 12.5px; color: var(--text); padding-top: 3px; }

@media (max-width: 900px) {
  .cal-layout { flex-direction: column; }
  .cal-sidebar { width: 100%; position: static; }
}

/* ─── STATUS DO DIA (widget dashboard) ───── */
.status-dia-widget { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.status-dia-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 14px; box-shadow: var(--shadow); min-width: 180px;
}
.status-dia-chip .emoji { font-size: 24px; }
.status-dia-chip .nome { font-size: 12.5px; font-weight: 700; }
.status-dia-chip .texto { font-size: 11.5px; color: var(--muted); margin-top: 1px; max-width: 220px; }
