/* ==================== SCROLLBARS EXECUTIVAS (FINAS & CINZA CLARO) ==================== */
* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
div::-webkit-scrollbar,
section::-webkit-scrollbar,
aside::-webkit-scrollbar,
nav::-webkit-scrollbar,
textarea::-webkit-scrollbar,
ul::-webkit-scrollbar,
.main::-webkit-scrollbar,
.modal-body::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar,
.planner-bucket-body::-webkit-scrollbar,
.app-column-body::-webkit-scrollbar,
.ticket-thread::-webkit-scrollbar,
.cbo-results-list::-webkit-scrollbar,
.notif-popover::-webkit-scrollbar,
.anniv-cards-row::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

::-webkit-scrollbar-corner {
  background: transparent;
}

/* Barra lateral escura e painéis dark com scrollbar sutil translúcida */
.side,
.app-dark,
body.dark,
.ponto-clock-card,
.payroll-preview-box {
  scrollbar-color: rgba(148, 163, 184, 0.32) transparent;
}

.side::-webkit-scrollbar-thumb,
.app-dark ::-webkit-scrollbar-thumb,
body.dark ::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.32);
}

.side::-webkit-scrollbar-thumb:hover,
.app-dark ::-webkit-scrollbar-thumb:hover,
body.dark ::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.55);
}

:root {
  --bg: #f4f7f9;
  --surface: #ffffff;
  --surface2: #f8fafc;
  --text: #0f172a;
  --text-light: #475569;
  --muted: #94a3b8;
  --primary: #0096B4;
  --primary-hover: #0A1D37;
  --border: #e2e8f0;
  --danger: #ef4444;
  --ok: #16a34a;
  --sidebar-bg: #0A1D37;
  --sidebar-text: #cbd5e1;
}

.app-dark, body.dark {
  --bg: #0b1120;
  --surface: #111827;
  --surface2: #1e293b;
  --text: #f8fafc;
  --text-light: #94a3b8;
  --muted: #64748b;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --border: #1e293b;
  --sidebar-bg: #060a14;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--text);
}

/* ==================== PÁGINA DE LOGIN EXECUTIVA ==================== */
.nc-auth-card {
  position: relative;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  padding: 40px 32px 28px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  animation: modalPop 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.nc-auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.nc-auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.nc-auth-logo b {
  color: #2563eb;
  font-weight: 500;
}

.nc-auth-header h2 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.nc-auth-header p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
}

.nc-auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  gap: 4px;
  margin-bottom: 22px;
}

.nc-tab {
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 8px;
  border-radius: 9px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.nc-tab:hover { color: #0f172a; }

.nc-tab.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.nc-auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.nc-field label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.nc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nc-link-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: #2563eb;
  cursor: pointer;
}

.nc-link-btn:hover { text-decoration: underline; }

.nc-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.nc-input-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  pointer-events: none;
}

.nc-input-wrap input {
  width: 100%;
  height: 46px;
  padding: 0 42px;
  border: 1.5px solid #e2e8f0;
  border-radius: 11px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nc-input-wrap input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.nc-input-wrap input:focus {
  outline: none;
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.nc-eye-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

.nc-eye-btn:hover { color: #334155; }

.nc-auth-status {
  font-size: 13px;
  font-weight: 500;
  min-height: 20px;
  border-radius: 8px;
}

.nc-auth-status.error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 10px 12px;
}

.nc-auth-status.success {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  padding: 10px 12px;
}

.nc-auth-submit {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 11px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
  transition: all 0.2s ease;
  margin-top: 4px;
}

.nc-auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px -5px rgba(37, 99, 235, 0.5);
}

.nc-auth-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.nc-auth-footer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  text-align: center;
  font-size: 12px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ==================== SHELL DO SISTEMA CRM ==================== */
body.crm-app {
  overflow: hidden;
}

.shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  transition: grid-template-columns 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.shell.sidebar-collapsed {
  grid-template-columns: 76px 1fr;
}

.side {
  background: var(--sidebar-bg);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  transition: width 0.25s ease, padding 0.25s ease;
}

.brand {
  font-weight: 800;
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 20px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.brand svg { flex-shrink: 0; }
.brand b { color: #3b82f6; font-weight: 500; }

.shell.sidebar-collapsed .brand {
  justify-content: center;
  padding: 4px 0;
}
.shell.sidebar-collapsed .brand span {
  display: none;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.nav-group {
  font-size: 11px;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
  margin: 16px 0 6px 12px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.shell.sidebar-collapsed .nav-group {
  height: 1px;
  margin: 12px 8px;
  padding: 0;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0;
  overflow: hidden;
}

.nav button {
  border: 0;
  background: transparent;
  color: var(--sidebar-text);
  padding: 10px 12px;
  border-radius: 9px;
  text-align: left;
  cursor: pointer;
  font-weight: 500;
  font-size: 13.5px;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  width: 100%;
  min-width: 0;
}

.nav button .nav-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.nav button svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.85;
}

.nav button:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}
.nav button:hover svg { opacity: 1; }

.nav button.active {
  background: #00B4D8;
  color: #0A1D37;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}
.nav button.active svg { opacity: 1; }

.shell.sidebar-collapsed .nav button {
  justify-content: center;
  padding: 11px;
}
.shell.sidebar-collapsed .nav button .nav-label {
  display: none;
}

.side-footer {
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-logout {
  width: 100%;
  border: 1px solid rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  padding: 10px 12px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  transition: all 0.2s;
}

.btn-logout:hover {
  background: #ef4444;
  color: #ffffff;
}

.shell.sidebar-collapsed .btn-logout {
  justify-content: center;
  padding: 10px;
}
.shell.sidebar-collapsed .btn-logout .nav-label {
  display: none;
}

/* Backdrop Mobile */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 25;
}
.sidebar-backdrop.open {
  display: block;
}

/* Header Superior (Estilo HubSpot / Linear) */
.main {
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.top {
  height: 68px;
  min-height: 68px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
  gap: 16px;
}

.top-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: min(520px, 100%);
}

.search-box svg {
  position: absolute;
  left: 12px;
  color: var(--muted);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  height: 38px;
  padding: 0 14px 0 36px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 13.5px;
  transition: all 0.2s;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.top-breadcrumb {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  padding: 5px 10px;
  background: var(--surface2);
  border-radius: 6px;
  border: 1px solid var(--border);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  background: var(--surface2);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0A1D37;
  border: 1.5px solid #00B4D8;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content {
  padding: 24px 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 68px);
}

/* Cards & Métricas */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

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

.metric-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #0A1D37;
  color: #00B4D8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-dark .metric-icon {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.metric .title {
  color: var(--text-light);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  margin: 10px 0 8px;
  color: var(--text);
}

.metric .pill-info {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 180, 216, 0.12);
  color: #0A1D37;
}

.app-dark .metric .pill-info {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.muted { color: var(--text-light); font-size: 13.5px; }

/* Toolbar & Filter Tabs */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.toolbar h1 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
  flex-wrap: wrap;
}

.filter-pill {
  background: transparent;
  border: none;
  border-bottom: 2.5px solid transparent;
  color: var(--text-light);
  padding: 10px 16px;
  border-radius: 8px 8px 0 0;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: -1px;
  transition: all 0.18s ease;
}

.filter-pill:hover {
  background: var(--surface2);
  color: var(--text);
}

.filter-pill.active {
  background: transparent;
  border-bottom-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}

.filter-count {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-light);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
}

.filter-pill.active .filter-count {
  background: rgba(0, 150, 180, 0.12);
  border-color: rgba(0, 150, 180, 0.3);
  color: var(--primary);
}

/* Botões */
.btn {
  border: 0;
  border-radius: 8px;
  padding: 9px 16px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.btn:hover { background: var(--primary-hover); }

.btn.secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn.secondary:hover { background: var(--surface2); }

.btn.icon-only {
  width: 36px;
  height: 36px;
  padding: 0;
  justify-content: center;
}

/* Tabelas estilo HubSpot */
.table-wrap {
  overflow-x: auto;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

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

.table thead {
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}

.table th {
  text-align: left;
  padding: 12px 18px;
  font-weight: 600;
  color: var(--text-light);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  white-space: normal;
  word-wrap: break-word;
}

.table tbody tr:hover {
  background: var(--surface2);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.row-entity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.row-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.app-dark .badge { background: #1e293b; color: #cbd5e1; }
.badge.ativo, .badge.pago, .badge.concluido, .badge.concluida { background: #dcfce7; color: #166534; }
.badge.em_andamento, .badge.fazendo, .badge.proposta { background: #dbeafe; color: #1e40af; }
.badge.pendente, .badge.negociacao, .badge.planejamento, .badge.homologacao, .badge.revisao { background: #fef3c7; color: #92400e; }
.badge.atrasado, .badge.cancelado, .badge.inativo { background: #fee2e2; color: #991b1b; }

/* Kanban & Funil de Vendas (Tela Cheia) */
.app-kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(250px, 1fr));
  gap: 18px;
  flex: 1;
  min-height: 0;
  align-items: stretch;
  overflow-x: auto;
}

.app-column {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 190px);
  height: 100%;
  transition: border-color 0.2s, background 0.2s;
}

.app-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.app-column-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.app-column.drag-over {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.05);
}

.app-ticket {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  margin-top: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  cursor: grab;
}

.app-ticket:active { cursor: grabbing; }

/* ==================== MODAIS EXECUTIVOS (CYBER & ENTERPRISE — ZERO SCROLLBAR) ==================== */
.dialog {
  border: 0;
  background: transparent;
  width: min(1040px, 96vw);
  max-height: 90vh;
  padding: 0;
  margin: auto;
  overflow: visible;
}

.dialog.dialog-lg {
  width: min(1040px, 95vw);
}

.dialog.planner-dialog {
  width: min(1060px, 95vw);
}

.dialog::backdrop {
  background: rgba(5, 15, 30, 0.76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeInBackdrop 0.18s ease-out;
}

@keyframes fadeInBackdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: var(--surface);
  color: var(--text);
  padding: 0;
  border: 1px solid rgba(0, 180, 216, 0.36);
  border-radius: 18px;
  box-shadow:
    0 28px 64px -12px rgba(5, 15, 30, 0.68),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal > form {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 32px;
  margin: 0;
  background: linear-gradient(135deg, #050f1e 0%, #0A1D37 60%, #0E2A4E 100%);
  color: #ffffff;
  border-bottom: 1px solid rgba(0, 180, 216, 0.32);
  box-shadow: inset 0 2px 0 #00B4D8;
  flex-shrink: 0;
}

.modal-header-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.modal-header-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(0, 180, 216, 0.14);
  border: 1px solid rgba(0, 180, 216, 0.42);
  color: #00B4D8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-header h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.modal-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: #cbd5e1;
  font-weight: 400;
  line-height: 1.35;
}

.modal-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.modal-close-btn:hover {
  background: #00B4D8;
  border-color: #00B4D8;
  color: #061224;
}

/* Barra de Navegação por Abas / Etapas do Modal */
.modal-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex-shrink: 0;
}

.modal-tabs::-webkit-scrollbar {
  display: none;
}

.modal-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-light);
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.modal-tab-btn:hover {
  background: rgba(0, 180, 216, 0.08);
  color: var(--text);
}

.modal-tab-btn.active {
  background: var(--surface);
  color: #0A1D37;
  font-weight: 700;
  border-color: rgba(0, 180, 216, 0.5);
  box-shadow: 0 2px 6px rgba(10, 29, 55, 0.07);
}

.app-dark .modal-tab-btn.active {
  background: rgba(0, 180, 216, 0.16);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.45);
}

.modal-tab-btn.has-error {
  border-color: var(--danger);
  color: var(--danger);
}

.modal-tab-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(100, 116, 139, 0.14);
  color: var(--text-light);
  font-size: 11px;
  font-weight: 800;
}

.modal-tab-btn.active .modal-tab-step {
  background: #0A1D37;
  color: #00B4D8;
}

.app-dark .modal-tab-btn.active .modal-tab-step {
  background: #00B4D8;
  color: #061224;
}

/* Corpo do Modal SEM Barra de Rolagem Visível e com Altura Estável */
.modal-body {
  padding: 28px 32px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-tabbed .modal-body {
  min-height: 400px;
}

.modal-body::-webkit-scrollbar,
.modal *::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.modal * {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 18px 32px;
  background: var(--surface2);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--muted);
}

.modal-footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.modal-kbd {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-light);
}

.modal-footer .btn {
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
}

.modal-section-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-tabbed .modal-section-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.modal-tabbed .modal-section-card > .modal-section-title {
  display: none;
}

.modal-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0A1D37;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.app-dark .modal-section-title {
  color: #38bdf8;
}

.modal-section-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #0A1D37;
  color: #00B4D8;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

/* Grids Responsivos e Tipografia de Formulário Enterprise */
.formgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.formgrid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 16px;
}

.formgrid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 14px;
}

.formgrid > label,
.formgrid-3 > label,
.formgrid-4 > label,
.field-full {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #334155;
  text-align: left;
}

.app-dark .formgrid > label,
.app-dark .formgrid-3 > label,
.app-dark .formgrid-4 > label,
.app-dark .field-full {
  color: #94a3b8;
}

.modal input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
.modal select,
.modal textarea {
  width: 100%;
  min-height: 46px;
  background: #f8fafc;
  color: var(--text);
  border: 1.5px solid #cbd5e1;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  line-height: 1.4;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.app-dark .modal input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
.app-dark .modal select,
.app-dark .modal textarea {
  background: #0f172a;
  border-color: #334155;
  color: #f8fafc;
}

.modal select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

.modal textarea {
  min-height: 76px;
  line-height: 1.5;
  resize: vertical;
}

.modal input::placeholder,
.modal textarea::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.modal input:hover:not(:disabled):not([readonly]),
.modal select:hover:not(:disabled),
.modal textarea:hover:not(:disabled):not([readonly]) {
  border-color: #94a3b8;
}

.modal input:focus,
.modal select:focus,
.modal textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: #0096B4;
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.16);
}

.modal input[readonly],
.modal input:disabled,
.modal select:disabled {
  background: var(--surface2);
  opacity: 0.72;
  cursor: not-allowed;
}

/* Switch Toggle Card Executivo (Estilo Stripe / Linear) */
.nc-switch-card {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.07) 0%, rgba(10, 29, 55, 0.03) 100%);
  border: 1.5px solid rgba(0, 180, 216, 0.32);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.nc-switch-card:hover {
  border-color: #0096B4;
  background: rgba(0, 180, 216, 0.11);
}

.nc-switch-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.nc-switch-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nc-switch-desc {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-light);
  line-height: 1.4;
}

.nc-switch-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nc-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.nc-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.nc-toggle-slider {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.nc-toggle-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nc-toggle input:checked + .nc-toggle-slider {
  background: #0096B4;
}

.nc-toggle input:checked + .nc-toggle-slider::before {
  transform: translateX(20px);
}

@media (max-width: 760px) {
  .formgrid-3, .formgrid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nc-switch-card { flex-direction: column; align-items: flex-start; }
}

/* Dropdown de busca CBO */
.cbo-search-wrap {
  position: relative;
}

.cbo-results-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 40;
  background: var(--surface);
  border: 1.5px solid #00B4D8;
  border-radius: 10px;
  box-shadow: 0 16px 32px rgba(10, 29, 55, 0.22);
  max-height: 210px;
  overflow-y: auto;
  display: none;
}

.cbo-results-list.open {
  display: block;
}

.cbo-option-item {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.cbo-option-item:last-child {
  border-bottom: none;
}

.cbo-option-item:hover {
  background: rgba(0, 180, 216, 0.1);
}

.cbo-code-pill {
  background: #0A1D37;
  color: #00B4D8;
  font-family: monospace;
  font-weight: 700;
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Pré-visualização do Cálculo Automático de Holerite */
.payroll-preview-box {
  background: linear-gradient(135deg, #061224 0%, #0A1D37 100%);
  color: #ffffff;
  border: 1px solid rgba(0, 180, 216, 0.4);
  border-radius: 14px;
  padding: 18px 20px;
}

.payroll-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 12px 0;
}

.payroll-kpi-mini {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 180, 216, 0.22);
  border-radius: 10px;
  padding: 10px 12px;
}

.payroll-kpi-mini span {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 3px;
}

.payroll-kpi-mini strong {
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
}

.payroll-net-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(0, 180, 216, 0.15);
  border: 1px solid rgba(0, 180, 216, 0.45);
  margin-top: 12px;
}

/* ==================== GESTÃO DE PONTO & JORNADA ==================== */
.ponto-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.4fr;
  gap: 18px;
  margin-bottom: 18px;
}

@media (max-width: 1024px) {
  .ponto-hero-grid {
    grid-template-columns: 1fr;
  }
  .payroll-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ponto-clock-card {
  background: linear-gradient(135deg, #061224 0%, #0A1D37 65%, #0F2E56 100%);
  color: #ffffff;
  border: 1px solid rgba(0, 180, 216, 0.35);
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.ponto-live-time {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #00B4D8;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.ponto-punch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.ponto-punch-btn {
  border: 1.5px solid rgba(0, 180, 216, 0.38);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border-radius: 11px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.18s ease;
}

.ponto-punch-btn:hover:not(:disabled) {
  background: #00B4D8;
  border-color: #00B4D8;
  color: #0A1D37;
  transform: translateY(-1px);
}

.ponto-punch-btn.next-step {
  background: #00B4D8;
  border-color: #00B4D8;
  color: #0A1D37;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0, 180, 216, 0.35);
}

.ponto-punch-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .shell, .shell.sidebar-collapsed { grid-template-columns: 1fr; }
  .side {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 30;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    width: 260px;
  }
  .side.open { transform: translateX(0); }
  .shell.sidebar-collapsed .brand span,
  .shell.sidebar-collapsed .nav button .nav-label,
  .shell.sidebar-collapsed .btn-logout .nav-label { display: inline; }
  .shell.sidebar-collapsed .nav button { justify-content: flex-start; padding: 10px 12px; }
  .top-breadcrumb { display: none; }
}

@media (max-width: 640px) {
  .formgrid, .formgrid-3 { grid-template-columns: 1fr; }
  .nc-auth-card { padding: 28px 20px 22px; }
  .ponto-punch-grid { grid-template-columns: 1fr; }
}

/* Badge de contador no menu lateral e status de solicitações */
.nav-badge {
  margin-left: auto;
  flex-shrink: 0;
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  line-height: 1.2;
}
.shell.sidebar-collapsed .nav-badge {
  display: none;
}

.badge.novo { background: #fee2e2; color: #b91c1c; }
.badge.em_atendimento { background: #fef3c7; color: #92400e; }
.badge.respondido { background: #dcfce7; color: #166534; }
.badge.convertido { background: #dbeafe; color: #1e40af; }
.badge.arquivado { background: #f1f5f9; color: #475569; }

.quote-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.quote-reply-box {
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.dashboard-panels {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
  flex: 1;
  align-items: stretch;
}
.dashboard-panels > .card {
  display: flex;
  flex-direction: column;
}

/* ==================== MODAIS DE CONFIRMAÇÃO & TOASTS CORPORATIVOS ==================== */
.btn.danger {
  background: #dc2626;
  color: #ffffff;
}
.btn.danger:hover {
  background: #b91c1c;
}
.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.nc-sys-dialog {
  width: min(500px, 94vw);
}

.nc-confirm-modal {
  padding: 24px 26px;
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nc-confirm-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.nc-confirm-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nc-confirm-badge.danger,
.nc-confirm-badge.error {
  background: #fee2e2;
  color: #dc2626;
}
.nc-confirm-badge.warning {
  background: #fef3c7;
  color: #d97706;
}
.nc-confirm-badge.primary,
.nc-confirm-badge.success {
  background: #dbeafe;
  color: #2563eb;
}

.app-dark .nc-confirm-badge.danger,
.app-dark .nc-confirm-badge.error {
  background: rgba(239, 68, 68, 0.16);
  color: #f87171;
}
.app-dark .nc-confirm-badge.warning {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
}
.app-dark .nc-confirm-badge.primary,
.app-dark .nc-confirm-badge.success {
  background: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
}

.nc-confirm-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.nc-confirm-msg {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-light);
}

.nc-confirm-detail {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-light);
  line-height: 1.45;
}

.nc-inline-error {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-size: 13px;
  font-weight: 500;
}

.app-dark .nc-inline-error {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.nc-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Stack de Notificações (Toast) */
.nc-toast-stack {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(380px, 92vw);
  pointer-events: none;
}

.nc-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.35);
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nc-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.nc-toast-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nc-toast-success .nc-toast-icon {
  background: rgba(22, 163, 74, 0.22);
  color: #4ade80;
}
.nc-toast-error .nc-toast-icon {
  background: rgba(239, 68, 68, 0.22);
  color: #f87171;
}
.nc-toast-info .nc-toast-icon {
  background: rgba(59, 130, 246, 0.22);
  color: #60a5fa;
}

.nc-toast-msg {
  flex: 1;
  line-height: 1.4;
}

.nc-toast-close {
  background: transparent;
  border: 0;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}
.nc-toast-close:hover {
  color: #ffffff;
}

/* ==================== PERFIL PROFISSIONAL, CURRÍCULO & LGPD ==================== */
.profile-shell {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.profile-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  flex: 1;
  align-items: stretch;
}

.profile-col-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
}

.profile-section {
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.profile-section-title {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-section-sub {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--text-light);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-grid-personal {
  display: grid;
  grid-template-columns: 1fr 150px 1fr;
  gap: 12px;
}

.profile-grid-addr-top {
  display: grid;
  grid-template-columns: 130px 1.4fr 1fr;
  gap: 12px;
}

.profile-grid-addr-bottom {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 12px;
  margin-top: 12px;
}

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

@media (max-width: 768px) {
  .profile-grid,
  .profile-grid-personal,
  .profile-grid-addr-top,
  .profile-grid-addr-bottom {
    grid-template-columns: 1fr;
  }
}

.nc-input {
  width: 100%;
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 13.5px;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.nc-input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.nc-input[readonly] {
  opacity: 0.72;
  cursor: not-allowed;
}

.lgpd-box {
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.32);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.lgpd-box svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.lgpd-box p {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text);
}

.lgpd-check-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
}

.lgpd-check-row input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.lgpd-meta {
  margin-top: 6px;
  font-size: 11px;
  color: var(--ok);
  font-weight: 600;
}

.profile-footer-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ==================== BARRA DE PESQUISA GLOBAL APRIMORADA ==================== */
.search-box input {
  padding-right: 32px;
}
.search-clear-btn {
  position: absolute;
  right: 8px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
}
.search-clear-btn:hover {
  color: var(--text);
  background: var(--border);
}

.global-search-banner {
  margin-bottom: 18px;
  border: 1px solid rgba(37, 99, 235, 0.35);
  background: var(--surface);
}
.global-search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.search-hit-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--surface2);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}
.search-hit-item:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* ==================== DASHBOARD: PRÓXIMOS ANIVERSARIANTES DE EMPRESA & DO MÊS ==================== */
.dashboard-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
  min-height: 0;
}
.dashboard-panels {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  flex: 1;
  min-height: 190px;
  align-items: stretch;
}
@media (max-width: 960px) {
  .dashboard-panels {
    grid-template-columns: 1fr;
  }
}
.dashboard-panels > .card {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.anniv-sections-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 18px;
  flex-shrink: 0;
}
@media (max-width: 1180px) {
  .anniv-sections-grid {
    grid-template-columns: 1fr;
  }
}

.anniv-section-block {
  background: transparent;
  padding: 4px 0 2px;
}

.anniv-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.anniv-section-header svg {
  color: #64748b;
  flex-shrink: 0;
}
.anniv-section-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.015em;
}

.anniv-cards-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.anniv-person-card {
  flex: 0 0 176px;
  min-width: 168px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 14px 20px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.anniv-person-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.09);
}

.anniv-photo-circle {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  background: #0f172a;
  color: #ffffff;
  font-weight: 800;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid var(--border);
  flex-shrink: 0;
}
.anniv-photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.anniv-person-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anniv-person-tenure {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 3px;
}

.anniv-person-date {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-light);
}

.anniv-empty-card {
  width: 100%;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 22px 18px;
  font-size: 13px;
  color: var(--text-light);
}

.user-avatar img,
.row-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* ==================== QUADRO KANBAN ESTILO MICROSOFT PLANNER (MS365) ==================== */
.planner-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(275px, 1fr));
  gap: 16px;
  flex: 1;
  min-height: 0;
  align-items: stretch;
  overflow-x: auto;
}
.planner-bucket {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: calc(100vh - 185px);
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}
.planner-bucket.drag-over {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.06);
}
.planner-bucket-bar {
  height: 4px;
  width: 100%;
  flex-shrink: 0;
}
.planner-bucket-head {
  padding: 12px 14px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.planner-add-inline {
  width: 100%;
  border: 1px dashed var(--border);
  background: var(--surface);
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
  transition: all 0.15s;
}
.planner-add-inline:hover {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.06);
}
.planner-bucket-body {
  padding: 12px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.planner-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.planner-card:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.1);
  transform: translateY(-1px);
}
.planner-card.completed .planner-card-title {
  text-decoration: line-through;
  color: var(--muted);
}

.planner-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.planner-project-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.1);
  padding: 2px 8px;
  border-radius: 5px;
  max-width: 185px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prio-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.prio-baixa { background: #f1f5f9; color: #475569; }
.prio-media { background: #dbeafe; color: #1d4ed8; }
.prio-alta { background: #fef3c7; color: #b45309; }
.prio-urgente { background: #fee2e2; color: #b91c1c; }

.planner-title-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.planner-check-circle {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 2px solid var(--muted);
  background: transparent;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s;
}
.planner-check-circle:hover {
  border-color: var(--ok);
}
.planner-check-circle.checked {
  background: var(--ok);
  border-color: var(--ok);
}
.planner-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.38;
  word-break: break-word;
}
.planner-card-desc {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.planner-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.planner-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-light);
}
.planner-chip.overdue {
  background: #fee2e2;
  border-color: #fecaca;
  color: #b91c1c;
}
.planner-chip.done {
  background: #dcfce7;
  border-color: #bbf7d0;
  color: #166534;
}

.planner-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.planner-assignee {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-light);
  font-weight: 500;
  min-width: 0;
}
.planner-assignee span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Modal MS365 Planner */
.planner-dialog {
  width: min(1080px, 95vw);
}
.planner-modal {
  padding: 0;
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.planner-modal-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
}
@media (max-width: 780px) {
  .planner-modal-grid {
    grid-template-columns: 1fr;
  }
}
.planner-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 14px;
}
.planner-checklist-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 6px;
}
.planner-checklist-item.checked span {
  text-decoration: line-through;
  color: var(--muted);
}
.planner-attachment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 6px;
  font-size: 12.5px;
}

/* ==================== HOLERITE & FOLHA DE PAGAMENTO ==================== */
.holerite-slip {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 24px;
  font-size: 13px;
}
.holerite-slip-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 14px;
  margin-bottom: 16px;
  gap: 16px;
}
.holerite-slip-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
}
.holerite-slip-table th,
.holerite-slip-table td {
  border: 1px solid #cbd5e1;
  padding: 8px 12px;
  text-align: left;
}
.holerite-slip-table th {
  background: #f1f5f9;
  font-size: 11.5px;
  text-transform: uppercase;
}
@media print {
  body * { visibility: hidden; }
  #holerite-printable, #holerite-printable *,
  #receipt-printable, #receipt-printable * { visibility: visible; }
  #holerite-printable,
  #receipt-printable {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    border: none;
    box-shadow: none;
  }
}

.digital-receipt-card {
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid #cbd5e1;
  border-radius: 16px;
  overflow: hidden;
  font-size: 13px;
  box-shadow: 0 12px 30px rgba(10, 29, 55, 0.08);
}

.digital-receipt-banner {
  background: linear-gradient(135deg, #061224 0%, #0A1D37 62%, #0F2E56 100%);
  color: #ffffff;
  padding: 22px 26px;
  border-bottom: 3px solid #00B4D8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.receipt-badge-paid {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.55);
  color: #34d399;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.receipt-amount-highlight {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1.5px solid #bae6fd;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.receipt-auth-box {
  background: #f0fdf4;
  border: 1px dashed #16a34a;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  color: #15803d;
}


/* ==================== NOTIFICAÇÕES, GRÁFICOS DRE, CHAMADOS & PORTAL ENTERPRISE ==================== */
.notif-dot {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--surface);
}

.notif-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(380px, 92vw);
  max-height: 440px;
  overflow-y: auto;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 22px 45px -10px rgba(6, 18, 36, 0.35);
  z-index: 60;
}

.notif-popover-head {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface2);
  position: sticky;
  top: 0;
}

.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}
.notif-item:hover {
  background: var(--surface2);
}
.notif-item.unread {
  background: rgba(0, 180, 216, 0.08);
  border-left: 3px solid #00B4D8;
}

/* Gráficos visuais DRE & Fluxo de Caixa */
.chart-bars-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  align-items: end;
  height: 210px;
  padding: 18px 12px 8px;
  border-bottom: 1px solid var(--border);
}

.chart-month-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  gap: 6px;
}

.chart-bar-pair {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 150px;
  width: 100%;
  justify-content: center;
}

.chart-bar-in {
  width: 16px;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, #00B4D8 0%, #0284c7 100%);
  min-height: 4px;
  transition: height 0.3s ease;
}

.chart-bar-out {
  width: 16px;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, #f87171 0%, #dc2626 100%);
  min-height: 4px;
  transition: height 0.3s ease;
}

/* ==================== CHAT & SERVICE DESK (MODERN TICKETS) ==================== */
.ticket-thread {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 420px;
  overflow-y: auto;
  padding: 22px 24px;
  background: var(--surface2, #f8fafc);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.02);
}

.ticket-bubble-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.ticket-bubble-row.staff {
  flex-direction: row-reverse;
}

.ticket-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary, #00B4D8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
  border: 2px solid var(--surface);
  box-shadow: 0 3px 8px rgba(10, 29, 55, 0.12);
}

.ticket-bubble-row.client .ticket-avatar {
  background: var(--text-light, #64748b);
}

.ticket-msg {
  padding: 14px 18px;
  border-radius: 16px;
  max-width: 85%;
  font-size: 13.5px;
  line-height: 1.55;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
  position: relative;
}

.ticket-bubble-row.client .ticket-msg {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  color: var(--text);
}

.ticket-bubble-row.staff .ticket-msg {
  background: #0A1D37; /* Nexus Dark */
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.app-dark .ticket-bubble-row.staff .ticket-msg {
  background: rgba(0, 180, 216, 0.15);
  border: 1px solid rgba(0, 180, 216, 0.4);
  color: #f8fafc;
}

.ticket-msg-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ticket-bubble-row.client .ticket-msg-meta {
  color: var(--text-light);
}

.ticket-bubble-row.staff .ticket-msg-meta {
  color: rgba(255, 255, 255, 0.65);
  flex-direction: row-reverse;
}

.app-dark .ticket-bubble-row.staff .ticket-msg-meta {
  color: rgba(255, 255, 255, 0.55);
}

.ticket-msg-time {
  font-weight: 500;
  font-size: 10px;
  text-transform: none;
  letter-spacing: 0;
}

.ticket-attachment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
}

.ticket-bubble-row.client .ticket-attachment {
  color: var(--primary);
  background: rgba(0, 180, 216, 0.06);
  border: 1px dashed rgba(0, 180, 216, 0.4);
}

.ticket-bubble-row.staff .ticket-attachment {
  color: #00B4D8;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.25);
}

.ticket-bubble-row.client .ticket-attachment:hover {
  background: rgba(0, 180, 216, 0.12);
}

.ticket-bubble-row.staff .ticket-attachment:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Portal Hero Banner */
.portal-hero {
  background: linear-gradient(135deg, #061224 0%, #0A1D37 60%, #0F2E56 100%);
  color: #ffffff;
  border: 1px solid rgba(0, 180, 216, 0.35);
  border-radius: 16px;
  padding: 24px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.pix-box {
  background: var(--surface2);
  border: 1.5px dashed #00B4D8;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==================== VIEW SWITCHER & CATEGORY TAGS ==================== */
.view-switch-group {
  display: inline-flex;
  align-items: center;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}

.view-switch-btn {
  border: 0;
  background: transparent;
  color: var(--text-light);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.view-switch-btn:hover {
  color: var(--text);
}

.view-switch-btn.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
  font-weight: 700;
}

.int-type-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.int-type-tag.pagamentos {
  background: rgba(0, 180, 216, 0.14);
  color: #0284c7;
  border: 1px solid rgba(0, 180, 216, 0.35);
}

.int-type-tag.dominios {
  background: rgba(16, 185, 129, 0.13);
  color: #15803d;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.int-type-tag.devops {
  background: rgba(99, 102, 241, 0.13);
  color: #4f46e5;
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.int-type-tag.precos {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.app-dark .int-type-tag.pagamentos { color: #38bdf8; }
.app-dark .int-type-tag.dominios { color: #4ade80; }
.app-dark .int-type-tag.devops { color: #a5b4fc; }
.app-dark .int-type-tag.precos { color: #fbbf24; }
