/* =========================================================
   Gente & Gestão — Dashboard
   Design minimalista — preto, branco e acento esmeralda
   ========================================================= */

:root {
  --bg: #f7f7f8;
  --surface: #ffffff;
  --surface-alt: #f4f4f5;
  --border: #e7e7e9;
  --border-strong: #d4d4d6;
  --text: #111113;
  --text-muted: #6e6e73;
  --black: #111113;
  --black-soft: #1c1c1f;

  /* Acento: vermelho */
  --accent: #ef4444;
  --accent-strong: #dc2626;
  --accent-soft: #fef2f2;
  --accent-ink: #991b1b;
  --accent-glow: rgba(239, 68, 68, 0.28);

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(17, 17, 19, 0.04), 0 10px 30px rgba(17, 17, 19, 0.06);
  --shadow-hover: 0 2px 4px rgba(17, 17, 19, 0.06), 0 16px 40px rgba(17, 17, 19, 0.1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Garante que elementos com atributo hidden fiquem ocultos,
   mesmo quando classes definem display (ex.: .field, .modal-tabs) */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; }

::selection { background: var(--accent); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ===================== LAYOUT ===================== */

.main { min-height: 100vh; display: flex; flex-direction: column; }

/* ===================== TOPBAR ===================== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  background: var(--black);
  border-bottom: 1px solid var(--border-strong);
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.brand-text { font-weight: 700; font-size: 15px; letter-spacing: 0.2px; color: #fff; }

.topbar-actions { display: flex; gap: 10px; }

/* ===================== HERO ===================== */

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 32px 28px 8px;
}

.hero-info { min-width: 0; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.page-title {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.6px;
  line-height: 1.15;
  color: var(--text);
}

.hero-sub { margin-top: 6px; font-size: 14px; color: var(--text-muted); }

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.hero-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 32px 28px 8px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===================== CONTENT ===================== */

.content { flex: 1; padding: 20px 28px 28px; display: flex; flex-direction: column; gap: 24px; }

/* ===================== KPI CARDS ===================== */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.kpi-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  transition: background var(--transition);
}

.kpi-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.kpi-card.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow), var(--shadow-hover);
}

.kpi-card.is-selected::before { background: var(--accent); }

.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.kpi-name {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--text-muted);
}

.kpi-index {
  font-size: 11px;
  font-weight: 700;
  color: var(--border-strong);
  letter-spacing: 0.5px;
}

.kpi-value {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1.2px;
  margin-top: 8px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.kpi-meta {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.kpi-delta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.kpi-delta.is-up { background: var(--accent-soft); color: var(--accent-ink); }
.kpi-delta.is-down { background: var(--surface-alt); color: var(--text-muted); }
.kpi-delta.is-flat { background: var(--surface-alt); color: var(--text-muted); }

.kpi-entries { color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* ===================== CARDS ===================== */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 10px;
  flex-wrap: wrap;
}

.card-title { font-size: 16.5px; font-weight: 700; letter-spacing: -0.2px; }
.card-sub { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }

/* ===================== GRÁFICOS ===================== */

.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
}

.chart-card { min-width: 0; }

.chart-wrap {
  position: relative;
  height: 320px;
  padding: 14px 20px 20px;
}

.chart-wrap-pie {
  height: 300px;
  display: flex;
  align-items: center;
}

/* ===================== TABELA ===================== */

.table-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.table-wrap { padding: 12px 16px 18px; overflow-x: auto; }

#lancamentos .table-wrap {
  max-height: 440px;
  overflow-y: auto;
  padding-right: 10px;
}

/* ===================== FILTRO DE PERÍODO ===================== */

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.filter-bar-label { display: flex; flex-direction: column; gap: 2px; }
.filter-bar-label strong { font-size: 14px; font-weight: 700; }
.filter-bar-label span { font-size: 12px; color: var(--text-muted); }

.filter-bar-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.filter-sep { font-size: 13px; color: var(--text-muted); font-weight: 600; }

.hero .filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 12px;
}

.hero .filter-bar .input,
.hero .filter-bar .select {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.hero .filter-bar .input::placeholder {
  color: var(--text-muted);
}

.hero .filter-bar .input:focus,
.hero .filter-bar .select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.hero .filter-bar .filter-sep {
  color: var(--text-muted);
}

.hero .filter-bar .btn-icon {
  color: var(--text-muted);
}

.hero .filter-bar .btn-icon:hover {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.hero .filter-bar .btn-outline {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.hero .filter-bar .btn-outline:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.hero .filter-bar .dropdown-menu {
  background: var(--surface);
  border-color: var(--border);
}

.hero .filter-bar .dropdown-item {
  color: var(--text);
}

.hero .filter-bar .dropdown-item:hover {
  background: var(--surface-alt);
  color: var(--accent-strong);
}

/* ===================== DROPDOWNS ===================== */

.dropdown { position: relative; }

.arrow { font-size: 12px; line-height: 1; }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(17, 17, 19, 0.14);
  padding: 6px;
  z-index: 50;
  animation: dropdownIn 0.15s ease;
}

.dropdown-menu[hidden] { display: none; }

.dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border: none;
  background: none;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.dropdown-item:hover { background: var(--surface-alt); color: var(--accent-strong); }

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

#page-equipe .table-wrap {
  max-height: 480px;
  overflow-y: auto;
  padding-right: 10px;
}

.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }

.table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table tbody tr { transition: background var(--transition); }
.table tbody tr:hover { background: var(--surface-alt); }
.table tbody tr:last-child td { border-bottom: none; }

.col-action { width: 48px; text-align: right; }

.row-value { font-weight: 700; font-variant-numeric: tabular-nums; }

.badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: var(--accent-ink);
  text-transform: capitalize;
}

.btn-icon {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 17px;
  padding: 4px 8px;
  border-radius: 7px;
  transition: color var(--transition), background var(--transition);
}

.btn-icon:hover { color: #dc2626; background: rgba(220, 38, 38, 0.07); }

#filterClear {
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 15px;
  line-height: 1;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

#filterClear:hover {
  color: var(--accent-strong);
  border-color: var(--accent-strong);
  background: rgba(239, 68, 68, 0.07);
}

.empty-state { text-align: center; padding: 44px 20px; }
.empty-title { font-weight: 700; font-size: 15px; margin-bottom: 5px; }
.empty-text { color: var(--text-muted); font-size: 13px; max-width: 360px; margin: 0 auto; }

/* ===================== BOTÕES ===================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-strong);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

.hero-info .btn-primary {
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 8px;
}

.hero-info .btn-plus {
  font-size: 16px;
  font-weight: 400;
}

.btn-primary:active { transform: translateY(0); }

.btn-outline { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--black); box-shadow: var(--shadow); }

.btn-ghost { background: none; color: var(--text-muted); border-color: transparent; }
.btn-ghost:hover { color: #dc2626; background: rgba(220, 38, 38, 0.07); }

.btn-block { width: 100%; }

.btn-sm { padding: 7px 13px; font-size: 12.5px; }

.btn-plus { font-size: 16px; font-weight: 600; line-height: 1; }

/* ===================== INPUTS / SELECTS ===================== */

.input, .select {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.input:focus, .select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.input-sm { width: auto; min-width: 190px; padding: 8px 12px; font-size: 13px; }
.select-sm { width: auto; min-width: 190px; padding: 8px 12px; font-size: 13px; }

/* ===================== MODAL ===================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 19, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 60;
  transition: opacity var(--transition);
}

.modal-overlay[hidden] { display: none; }

.modal {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(17, 17, 19, 0.3);
  animation: modalIn 0.24s ease;
  overflow: hidden;
}

.modal::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===================== APRESENTAÇÃO ===================== */

/* Overlay acompanha a tela: padding fluido via vmin */
.presentation-overlay {
  position: fixed;
  inset: 0;
  background: var(--black);
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: clamp(10px, 2.2vmin, 28px);
  z-index: 70;
}

.presentation-overlay[hidden] { display: none; }

/* Modal ocupa todo o espaço disponível — cresce/diminui com a janela (inclui F11) */
.presentation-modal {
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 0;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(17, 17, 19, 0.5);
  animation: modalIn 0.24s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.presentation-body {
  flex: 1;
  min-height: 0;
  padding: clamp(14px, 2.4vmin, 32px);
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 3vmin, 32px);
  overflow-y: auto;
}

/* Gráficos em apresentação */
.presentation-charts {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr);
  gap: clamp(14px, 2.6vmin, 24px);
  width: 100%;
  flex: 1;
  min-height: 0;
}

.presentation-chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.presentation-chart-card .card-header {
  padding: clamp(12px, 1.8vmin, 20px) clamp(14px, 2.2vmin, 24px) 8px;
}

/* Altura do gráfico flui com o espaço disponível em vez de valor fixo */
.presentation-chart-card .chart-wrap {
  position: relative;
  flex: 1;
  min-height: 220px;
  height: auto;
  padding: clamp(10px, 1.6vmin, 14px) clamp(12px, 2vmin, 20px) clamp(14px, 2.2vmin, 20px);
  width: 100%;
}

@media (max-width: 768px) {
  .presentation-body {
    padding: 14px 16px 18px;
  }
  .presentation-chart-card .chart-wrap { min-height: 240px; }
}

/* Presentation controls */
.modal-header .presentation-controls {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  justify-content: center;
}

.presentation-filter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.presentation-filter .input-sm {
  min-width: 160px;
}

.presentation-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.presentation-nav .icon-btn {
  width: 44px;
  height: 44px;
  font-size: 24px;
  background: var(--surface-alt);
  color: var(--text);
  border-radius: 50%;
}

.presentation-nav .icon-btn:hover {
  background: var(--accent);
  color: #fff;
}

.presentation-indicator-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  min-width: 200px;
  text-align: center;
}

.presentation-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  transition: border-color var(--transition), background var(--transition);
}

.presentation-toggle:hover { border-color: var(--accent); }

.presentation-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

@media (max-width: 768px) {
  .modal-header .presentation-controls {
    flex-direction: column;
    gap: 12px;
  }
  .presentation-nav .icon-btn {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
  .presentation-indicator-name { min-width: 150px; font-size: 13px; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 14px;
}

.modal-header h2 { font-size: 17px; font-weight: 700; letter-spacing: -0.2px; }

.modal-body { padding: 6px 22px 22px; display: flex; flex-direction: column; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; }

.field label { font-size: 12.5px; font-weight: 600; color: var(--text); }

.field-hint { font-size: 12px; color: var(--text-muted); }

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

/* ===================== DIALOG (confirmação/alerta) ===================== */

.dialog-overlay { z-index: 90; }

.dialog { max-width: 380px; }

.dialog-body {
  padding: 30px 28px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.dialog-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--text);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.dialog-icon.is-danger {
  background: var(--accent-soft);
  color: var(--accent);
}

.dialog-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.dialog-message {
  color: var(--text-muted);
  font-size: 13.5px;
  max-width: 300px;
}

.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 20px 28px 26px;
}

.btn-danger {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-danger:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn-danger:active { transform: translateY(0); }

/* ===================== TOAST ===================== */

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--black);
  color: #fff;
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 16px 40px rgba(17, 17, 19, 0.35);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.25s ease;
  border-left: 3px solid var(--accent);
}

.toast[hidden] { display: none; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================== FOOTER ===================== */

.footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ===================== ICON BUTTONS ===================== */

.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  transition: background var(--transition), color var(--transition);
}

.icon-btn:hover { background: var(--surface-alt); color: var(--accent-strong); }

/* ===================== NAVEGAÇÃO (TOPBAR TABS) ===================== */

.topbar-left { display: flex; align-items: center; gap: 28px; min-width: 0; }

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.tab-btn {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 9px;
  transition: all var(--transition);
}

.tab-btn:hover { color: #fff; }

.tab-btn.is-active {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ===================== FORMULÁRIO EQUIPE ===================== */

.equipe-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  padding: 16px 24px 22px;
}

.equipe-form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  align-self: center;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  transition: border-color var(--transition);
}

.checkbox-field:hover { border-color: var(--accent); }

.checkbox-field input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ===================== BADGES DE STATUS ===================== */

.badge-accent {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: var(--accent-ink);
  text-transform: capitalize;
}

.badge-muted {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  text-transform: capitalize;
}

.badge-dark {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--black);
  color: #fff;
  text-transform: capitalize;
}

.check-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 800;
  font-size: 12px;
}

.row-meta { color: var(--text-muted); font-weight: 500; }

/* ===================== MODAL — ABAS ===================== */

.field-indicator { padding: 0 22px; }

.modal-tabs {
  display: flex;
  gap: 4px;
  padding: 14px 22px 0;
  border-bottom: 1px solid var(--border);
}

.modal-tab {
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.modal-tab:hover { color: var(--text); }

.modal-tab.is-active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.modal-body > *:not(.modal-footer) { margin-top: 16px; }

.modal-panel[hidden] { display: none; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ===================== LISTA DE VAGAS ===================== */

.vacancy-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 6px;
}

.vacancy-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.vacancy-item:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }

.vacancy-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.vacancy-info strong { font-size: 13.5px; }

.vacancy-info span { font-size: 12px; color: var(--text-muted); }

.vacancy-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.vaga-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.vaga-actions .btn:first-child { flex: 1; }

/* ===================== PICKER DE COLABORADOR ===================== */

.employee-picker {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
  margin-top: 4px;
}

.picker-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 13px;
  transition: all var(--transition);
}

.picker-item span { font-size: 12px; color: var(--text-muted); }

.picker-item:hover { border-color: var(--accent); }

.picker-item.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.picker-item.is-launched { border-color: rgba(239, 68, 68, 0.35); }

.picker-item.is-launched strong::before {
  content: "● ";
  color: var(--accent);
  font-size: 11px;
}

.picker-hint { font-size: 12.5px; color: var(--text-muted); padding: 8px 2px; }

/* ===================== RESPONSIVO ===================== */

@media (max-width: 1024px) {
  .charts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .topbar { padding: 12px 18px; }
  .content { padding: 16px 18px 22px; }
  .hero { padding: 24px 18px 4px; }
  .page-title { font-size: 24px; }
  .topbar-actions .btn-outline { display: none; }
  .table-tools .btn { display: none; }
  .kpi-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .kpi-value { font-size: 25px; }
  .brand-text { display: none; }
  .topbar-left { gap: 12px; }
  .form-grid { grid-template-columns: 1fr; }
}