/* ==========================================================================
   Centinela Connect — Design System (padrão visual Centinela Radar)
   Sidebar navy, destaque verde, cards brancos com borda superior colorida,
   ícones em quadrados tingidos e números grandes coloridos.
   ========================================================================== */

:root {
  /* Base */
  --bg-app: #F3F5F9;
  --bg-card: #FFFFFF;
  --bg-soft: #F7F9FC;
  --border: #E4E8F0;
  --border-strong: #CFD6E3;

  /* Texto */
  --ink: #0F1E46;
  --text: #1F2A44;
  --text-muted: #5B6680;
  --text-dim: #94A0B8;

  /* Sidebar */
  --nav-bg: #0F2257;
  --nav-bg-2: #0B1A45;
  --nav-item-hover: rgba(255, 255, 255, 0.06);
  --nav-item-active: #1B3276;
  --nav-text: #C9D3EC;
  --nav-title: #7F8DB3;

  /* Cores semânticas */
  --navy: #1E3A8A;
  --blue: #2563EB;
  --blue-soft: #EAF1FE;
  --green: #12A150;
  --green-btn: #13B26B;
  --green-btn-hover: #0F9A5C;
  --green-soft: #E6F7EE;
  --orange: #E08A00;
  --orange-soft: #FEF3E2;
  --red: #E0414A;
  --red-soft: #FDECEC;
  --purple: #6D4AE0;
  --purple-soft: #F0ECFD;
  --slate-soft: #EEF1F6;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  --shadow-card: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.04);
  --shadow-hover: 0 6px 16px rgba(16, 24, 40, 0.08);
  --shadow-modal: 0 24px 48px -12px rgba(15, 30, 70, 0.3);
  --transition: 0.18s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-app);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--blue); }

/* ==========================================================================
   Layout
   ========================================================================== */
.app-layout {
  display: flex;
  min-height: 100vh;
  width: 100vw;
}

.main-wrapper {
  flex: 1;
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.content-body {
  padding: 8px 40px 40px;
  flex: 1;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.sidebar {
  width: 246px;
  min-width: 246px;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--nav-bg) 0%, var(--nav-bg-2) 100%);
  color: var(--nav-text);
  transition: width var(--transition), min-width var(--transition);
}

.sidebar-header {
  padding: 18px 16px 18px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo-shield {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 10px;
  background: #1D3A8A;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-shield svg { width: 20px; height: 20px; color: #3DDC97; }

.brand-text { min-width: 0; }

.brand-text h2 {
  font-size: 0.9rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  line-height: 1.15;
  white-space: nowrap;
}

.badge-bni {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--nav-title);
  text-transform: uppercase;
}

.sidebar-toggle {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--nav-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.sidebar-toggle:hover { background: rgba(255, 255, 255, 0.12); }
.sidebar-toggle svg { transition: transform var(--transition); }

.nav-menu {
  flex: 1;
  overflow-y: auto;
  padding: 4px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.nav-section-title {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--nav-title);
  text-transform: uppercase;
  padding: 18px 10px 8px;
  white-space: nowrap;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 7px 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--nav-text);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.nav-item > span:not(.pill-counter):not(.nav-icon-box) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-item:hover { background: var(--nav-item-hover); color: #FFFFFF; }

.nav-item.active {
  background: var(--nav-item-active);
  color: #FFFFFF;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #3DDC97;
}

.nav-icon-box {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-item.active .nav-icon-box {
  background: rgba(61, 220, 151, 0.16);
  color: #3DDC97;
}

.nav-icon { width: 16px; height: 16px; flex-shrink: 0; }

.pill-counter {
  margin-left: auto;
  font-size: 0.66rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  white-space: nowrap;
}

.pill-counter.alert-pulse { background: var(--red); color: #FFFFFF; }

.alert-pulse { animation: pulse 2s infinite; }

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

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

.user-chip { display: flex; align-items: center; gap: 10px; min-width: 0; }

.user-avatar {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: var(--radius-full);
  background: #2B4AA8;
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-details { display: flex; flex-direction: column; min-width: 0; flex: 1; }

.logout-btn {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--nav-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}

.logout-btn:hover { background: rgba(224, 65, 74, 0.25); color: #FFFFFF; }
.sidebar.collapsed .logout-btn { display: none; }
.user-name { font-size: 0.82rem; font-weight: 700; color: #FFFFFF; white-space: nowrap; }
.user-role { font-size: 0.7rem; color: var(--nav-title); white-space: nowrap; }

/* Sidebar recolhida (somente ícones) */
.sidebar.collapsed { width: 76px; min-width: 76px; }
.sidebar.collapsed .brand-text,
.sidebar.collapsed .nav-item > span:not(.nav-icon-box),
.sidebar.collapsed .user-details { display: none; }
.sidebar.collapsed .nav-section-title { font-size: 0; padding: 10px 0 4px; }
.sidebar.collapsed .nav-section-title::after {
  content: '';
  display: block;
  height: 1px;
  margin: 0 10px;
  background: rgba(255, 255, 255, 0.1);
}
.sidebar.collapsed .nav-item { justify-content: center; padding: 7px 0; }
.sidebar.collapsed .sidebar-header { flex-direction: column; padding: 16px 8px; }
.sidebar.collapsed .sidebar-toggle svg { transform: rotate(180deg); }
.sidebar.collapsed .user-chip { justify-content: center; }
.sidebar.collapsed .nav-item .pill-counter {
  position: absolute;
  top: 2px;
  right: 6px;
  font-size: 0;
  width: 8px;
  height: 8px;
  padding: 0;
}

/* ==========================================================================
   Cabeçalho da página
   ========================================================================== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 40px 18px;
  flex-wrap: wrap;
}

.page-title-box h1 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.subtitle { font-size: 0.84rem; color: var(--text-muted); margin-top: 2px; }

.topbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.status-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 16px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-card);
}

.status-indicator svg { color: var(--text-muted); }

.cycle-button { font-family: inherit; cursor: pointer; transition: border-color var(--transition), box-shadow var(--transition); }
.cycle-button:hover { border-color: var(--border-strong); box-shadow: var(--shadow-hover); }

.cycle-preview {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.6;
}

.cycle-preview:empty { display: none; }
.cycle-preview ul { margin: 6px 0 0 18px; color: var(--text-muted); font-size: 0.78rem; }

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-btn);
  box-shadow: 0 0 0 3px rgba(19, 178, 107, 0.18);
  animation: blink 1.6s infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

/* ==========================================================================
   Botões
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-primary { background: var(--green-btn); color: #FFFFFF; box-shadow: 0 2px 6px rgba(19, 178, 107, 0.25); }
.btn-primary:hover { background: var(--green-btn-hover); }

.btn-navy { background: var(--nav-bg); color: #FFFFFF; box-shadow: 0 2px 6px rgba(15, 34, 87, 0.25); }
.btn-navy:hover { background: #16307A; }

.btn-secondary { background: #FFFFFF; color: var(--text); border-color: var(--border); box-shadow: var(--shadow-card); }
.btn-secondary:hover { border-color: var(--border-strong); background: var(--bg-soft); }

.btn-outline { background: #FFFFFF; color: var(--blue); border-color: #C9D8FB; }
.btn-outline:hover { background: var(--blue-soft); border-color: var(--blue); }

.btn-danger-ghost { background: #FFFFFF; color: var(--red); border-color: #F6C8CB; }
.btn-danger-ghost:hover { background: var(--red-soft); }

.btn-xs { height: 30px; padding: 0 10px; font-size: 0.75rem; border-radius: 8px; box-shadow: none; }

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
}

/* Borda superior colorida */
[class*="accent-"] { border-top-width: 3px; border-top-style: solid; }
.accent-navy { border-top-color: var(--navy); }
.accent-blue { border-top-color: var(--blue); }
.accent-green { border-top-color: var(--green); }
.accent-orange { border-top-color: var(--orange); }
.accent-red { border-top-color: var(--red); }
.accent-purple { border-top-color: var(--purple); }

.card-header-styled {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.card-header-title { display: flex; align-items: center; gap: 10px; }
/* Padrão Radar: títulos de card sem ícone */
.card-header-title svg { display: none; }

.card-header-title h3 {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: -10px 0 16px;
  line-height: 1.5;
}

.card-header-styled + .card-desc { margin-top: -10px; }

.section-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ink);
  margin: 28px 0 12px;
}

.badge-subtle {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--slate-soft);
  color: var(--text-muted);
  white-space: nowrap;
}

.count-pill {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.count-pill.orange { background: var(--orange-soft); color: var(--orange); }
.count-pill.red { background: var(--red-soft); color: var(--red); }
.count-pill.green { background: var(--green-soft); color: var(--green); }
.count-pill.blue { background: var(--blue-soft); color: var(--blue); }

/* Ícone em quadrado tingido */
.icon-tile {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-tile svg { width: 16px; height: 16px; }
.icon-tile.lg { width: 38px; height: 38px; min-width: 38px; border-radius: 10px; }
.icon-tile.navy { background: #E8EDFA; color: var(--navy); }
.icon-tile.blue { background: var(--blue-soft); color: var(--blue); }
.icon-tile.green { background: var(--green-soft); color: var(--green); }
.icon-tile.orange { background: var(--orange-soft); color: var(--orange); }
.icon-tile.red { background: var(--red-soft); color: var(--red); }
.icon-tile.purple { background: var(--purple-soft); color: var(--purple); }

/* ==========================================================================
   Grids e utilitários
   ========================================================================== */
.grid-2-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.grid-dash { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 20px; }
.grid-3-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.settings-stack { display: flex; flex-direction: column; gap: 20px; }

.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 20px; }
.max-w-4xl { max-width: none; }
.mx-auto { margin-left: auto; margin-right: auto; }

.text-cyan { color: var(--blue); }
.text-success, .text-emerald { color: var(--green); }
.text-amber { color: var(--orange); }
.text-danger { color: var(--red); }
.text-white { color: var(--ink); }
.text-accent { color: var(--blue); }
.text-dim { color: var(--text-dim); }
.font-bold { font-weight: 700; }
.text-lg { font-size: 1.15rem; }

/* ==========================================================================
   KPIs do dashboard (4 metas do ciclo)
   ========================================================================== */
.kpi-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.kpi-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 16px;
  border-top: 3px solid var(--navy);
}

.kpi-card.c-navy { border-top-color: var(--navy); }
.kpi-card.c-blue { border-top-color: var(--blue); }
.kpi-card.c-green { border-top-color: var(--green); }
.kpi-card.c-orange { border-top-color: var(--orange); }
.kpi-card.c-purple { border-top-color: var(--purple); }
.kpi-card.c-blue .kpi-main-val { color: var(--blue); }
.kpi-card.c-green .kpi-main-val { color: var(--green); }
.kpi-card.c-purple .kpi-main-val { color: var(--purple); }

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

.kpi-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.kpi-values { display: flex; align-items: baseline; gap: 8px; }

.kpi-main-val {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.kpi-target-label { font-size: 0.8rem; color: var(--text-muted); }
.kpi-target-label b { color: var(--ink); }
.kpi-card .progress-bar-container { margin: 0; }
.kpi-footer-text { font-size: 0.74rem; color: var(--text-muted); }
.kpi-footer-text b { color: var(--ink); }

.progress-bar-container {
  height: 5px;
  width: 100%;
  background: var(--slate-soft);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--navy);
  transition: width 0.5s ease;
}

.bar-blue, .bar-cyan { background: var(--blue); }
.bar-purple { background: var(--purple); }
.bar-emerald, .bar-green { background: var(--green); }
.bar-orange { background: var(--orange); }
.bar-red { background: var(--red); }

/* ==========================================================================
   Saúde financeira (linhas)
   ========================================================================== */
.financial-metrics-table { display: flex; flex-direction: column; }

.fin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.fin-row:last-child { border-bottom: none; }
.fin-info { display: flex; flex-direction: column; }
.fin-label { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.fin-info small { font-size: 0.72rem; color: var(--text-muted); }
.fin-val { font-size: 0.95rem; font-weight: 800; white-space: nowrap; }
.highlight-row { background: transparent; }
.badge-roi { color: var(--green); }

/* ==========================================================================
   Ritual semanal
   ========================================================================== */
.ritual-checklist { display: flex; flex-direction: column; }

.ritual-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

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

.ritual-day {
  width: 42px;
  min-width: 42px;
  height: 32px;
  border-radius: 9px;
  background: var(--slate-soft);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ritual-content { flex: 1; min-width: 0; }
.ritual-title { font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.ritual-meta { font-size: 0.74rem; color: var(--text-muted); }
.ritual-item.active-day .ritual-title { color: var(--green); }
.current-pulse { background: var(--green-btn) !important; color: #FFFFFF !important; }
.status-check { font-size: 0.75rem; font-weight: 800; color: var(--green); }
.status-pending { font-size: 0.75rem; color: var(--text-dim); }

/* ==========================================================================
   Tabelas
   ========================================================================== */
.quick-table-container { overflow-x: auto; }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.83rem; text-align: left; }

.data-table th {
  padding: 11px 14px;
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table th:first-child { border-top-left-radius: 8px; }
.data-table th:last-child { border-top-right-radius: 8px; }

.data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

.data-table tbody tr:hover td { background: #FAFBFD; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table strong { color: var(--ink); }

.total-row td {
  border-top: 2px solid var(--navy);
  background: #F4F7FD;
  font-weight: 700;
}

/* ==========================================================================
   Badges
   ========================================================================== */
.tier-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}

.tier-a { background: var(--green-soft); color: var(--green); }
.tier-b { background: var(--blue-soft); color: var(--blue); }
.tier-c { background: var(--slate-soft); color: var(--text-muted); }

.kpi-tag, .tag-success {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: var(--blue-soft);
  color: var(--blue);
}

.tag-success { background: var(--green-soft); color: var(--green); }

.sla-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.sla-ok { background: var(--green-soft); color: var(--green); }
.sla-urgent { background: var(--orange-soft); color: var(--orange); }
.sla-breached { background: var(--red-soft); color: var(--red); }

/* ==========================================================================
   Funil (kanban)
   ========================================================================== */
.pipeline-header-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.pipeline-metric-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 180px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pipeline-metric-chip:nth-child(2) { border-top-color: var(--blue); }
.pipeline-metric-chip:nth-child(3) { border-top-color: var(--green); }
.pipeline-metric-chip strong { font-size: 1.35rem; font-weight: 800; color: var(--ink); }
.pipeline-header-summary .btn { margin-left: auto; }

/* Colunas geradas a partir das etapas configuradas; rola na horizontal se houver muitas */
.kanban-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 1fr);
  gap: 14px;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 8px;
}

.kanban-column {
  display: flex;
  flex-direction: column;
  min-height: 480px;
  background: #EEF1F7;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 14px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.col-title-wrap { display: flex; align-items: center; gap: 8px; min-width: 0; }
.col-indicator { width: 9px; height: 9px; min-width: 9px; border-radius: 50%; }
.stage-1 { background: var(--navy); }
.stage-2 { background: var(--blue); }
.stage-3 { background: var(--purple); }
.stage-4 { background: var(--orange); }
.stage-5 { background: var(--green); }
.col-title { font-size: 0.8rem; font-weight: 800; color: var(--ink); }
.col-badge { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.won-column { background: #EAF6EF; }

.kanban-cards { display: flex; flex-direction: column; gap: 10px; padding: 12px; flex: 1; }

.kanban-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.kanban-card:hover { border-color: #B9C8EC; box-shadow: var(--shadow-hover); }
.kc-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 4px; }
.kc-company { font-size: 0.85rem; font-weight: 800; color: var(--ink); }
.kc-solution { display: block; font-size: 0.72rem; font-weight: 600; color: var(--blue); margin-bottom: 8px; }

.kc-mrr {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 9px;
  margin: 6px 0;
  background: var(--bg-soft);
  border-radius: 8px;
}

.kc-mrr-val { font-size: 0.85rem; font-weight: 800; color: var(--green); }
.kc-12m-val { font-size: 0.7rem; color: var(--text-muted); }

.kc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.kanban-empty { color: var(--text-dim); font-size: 0.75rem; text-align: center; padding: 14px 0; }

/* ==========================================================================
   Indicações: banner, filtros
   ========================================================================== */
.section-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 20px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.banner-info h2 { font-size: 1.02rem; font-weight: 800; color: var(--ink); margin-bottom: 2px; }
.banner-info p { font-size: 0.8rem; color: var(--text-muted); }
.banner-stats { display: flex; gap: 12px; flex-wrap: wrap; }

.stat-box {
  min-width: 118px;
  padding: 10px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.stat-num { display: block; font-size: 1.45rem; font-weight: 800; color: var(--ink); line-height: 1.2; }
.stat-lbl { font-size: 0.7rem; font-weight: 600; color: var(--text-muted); }

.filter-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }

.search-box {
  flex: 1;
  min-width: 240px;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.search-box svg { color: var(--text-dim); }

.search-box input[type="text"] {
  flex: 1;
  border: none;
  outline: none;
  box-shadow: none;
  padding: 0;
  background: transparent;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text);
}

.filter-group { display: flex; gap: 8px; }
.filter-group select { height: 42px; }

/* ==========================================================================
   Formulários
   ========================================================================== */
select, input[type="text"], input[type="number"], input[type="date"], input[type="datetime-local"], input[type="password"], textarea {
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text);
  padding: 9px 12px;
  font-size: 0.84rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

select:focus, input:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--green-btn); cursor: pointer; }

.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.76rem; font-weight: 700; color: var(--text-muted); }
.field-hint { font-size: 0.7rem; color: var(--text-dim); }

input.inline-input {
  width: 100%;
  padding: 5px 9px;
  font-size: 0.84rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #FFFFFF;
}

input.inline-input.narrow { width: 80px; }

.cost-input {
  width: 110px;
  padding: 5px 9px !important;
  font-size: 0.8rem !important;
  border-radius: 8px !important;
}

/* Blocos do formulário de Metas & Parâmetros */
.form-section {
  padding: 18px 0 20px;
  border-top: 1px solid var(--border);
}

.card-desc + .form-section { border-top: none; padding-top: 4px; }

.form-section-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.form-section-head h4 { font-size: 0.92rem; font-weight: 800; color: var(--ink); }
.form-section-head p { font-size: 0.78rem; color: var(--text-muted); }

/* Prévia de como o custo entra em Custos & ROI */
.cost-link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 4px;
  padding: 10px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  border-radius: 8px;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.cost-link b { color: var(--ink); }
.cost-link-title { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
.cost-link-sum { margin-top: 2px; padding-top: 4px; border-top: 1px dashed var(--border-strong); }

.cost-total-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 16px;
  background: #F4F7FD;
  border-top: 2px solid var(--navy);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.cost-total-line strong { font-size: 1.1rem; font-weight: 800; color: var(--blue); white-space: nowrap; }

/* Indicação de linha vinculada em Custos & ROI */
.linked-tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.linked-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.72rem;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
}

.linked-source:hover { color: var(--blue); text-decoration: underline; }

@keyframes fieldFlash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 138, 0, 0); }
  30% { box-shadow: 0 0 0 5px rgba(224, 138, 0, 0.35); border-color: var(--orange); }
}

.field-flash { animation: fieldFlash 1.6s ease; }

.settings-add-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.settings-add-row input[type="text"] { flex: 1; min-width: 200px; }

.report-status { font-size: 0.8rem; font-weight: 600; padding: 10px 14px; border-radius: var(--radius-md); margin-bottom: 14px; }
.report-status.ok { background: var(--green-soft); color: var(--green); }
.report-status.warn { background: var(--orange-soft); color: #9A5B00; }

.muted-section-title {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin: 22px 0 8px;
}

/* ==========================================================================
   Plano 90 dias
   ========================================================================== */
.phases-timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.phase-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.phase-card.completed-phase { border-top-color: var(--green); }
.phase-card.current-phase { border-top-color: var(--blue); box-shadow: var(--shadow-hover); }

.phase-badge {
  align-self: flex-start;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--green-soft);
  color: var(--green);
  margin-bottom: 10px;
}

.phase-badge.badge-active { background: var(--blue-soft); color: var(--blue); }
.phase-badge.badge-upcoming { background: var(--slate-soft); color: var(--text-muted); }

.phase-card h3 { font-size: 1rem; font-weight: 800; color: var(--ink); }
.phase-period { display: block; font-size: 0.74rem; color: var(--text-muted); margin-bottom: 12px; }
.phase-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 12px; }

.phase-deliverable {
  padding: 9px 12px;
  margin-bottom: 4px;
  background: var(--bg-soft);
  border-left: 3px solid var(--blue);
  border-radius: 6px;
  font-size: 0.76rem;
  color: var(--text);
}

.phase-stats { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); font-size: 0.76rem; font-weight: 600; color: var(--text-muted); }

.phase-progress-line { display: flex; justify-content: space-between; font-size: 0.76rem; color: var(--text-muted); padding: 3px 0; }

.cadence-table-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }

.cadence-col {
  padding: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.cadence-col-title { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.seg { color: var(--navy); }
.ter { color: var(--blue); }
.qua { color: var(--orange); }
.qui { color: var(--purple); }
.sex { color: var(--green); }
.cadence-focus { font-size: 0.86rem; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.cadence-col p { font-size: 0.76rem; color: var(--text-muted); line-height: 1.45; margin-bottom: 10px; }

.cadence-rule {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  background: #FFFFFF;
  border: 1px solid var(--border);
  padding: 7px 9px;
  border-radius: 8px;
}

/* ==========================================================================
   Custos & simulador
   ========================================================================== */
.simulator-controls { padding: 16px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-md); }
.slider-group { display: flex; flex-direction: column; gap: 8px; }
.slider-header { display: flex; justify-content: space-between; font-size: 0.84rem; font-weight: 600; color: var(--text); }
input[type="range"] { width: 100%; accent-color: var(--green-btn); cursor: pointer; }

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

.sim-stat-box {
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.sim-lbl { display: block; font-size: 0.72rem; font-weight: 600; color: var(--text-muted); }
.sim-val { font-size: 1.3rem; font-weight: 800; }

/* ==========================================================================
   Modais, toast, estados
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(11, 26, 69, 0.55);
  backdrop-filter: blur(3px);
}

.modal-overlay.open { display: flex; }

.modal-dialog {
  width: 100%;
  max-width: 620px;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--green-btn);
  box-shadow: var(--shadow-modal);
  animation: modalIn 0.18s ease;
}

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

.modal-dialog form { display: flex; flex-direction: column; min-height: 0; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 { font-size: 1.02rem; font-weight: 800; color: var(--ink); }

.modal-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #FFFFFF;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-close:hover { background: var(--bg-soft); color: var(--ink); }

.modal-body { padding: 20px 22px; overflow-y: auto; }

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: none;
  max-width: 420px;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  background: var(--nav-bg);
  color: #FFFFFF;
  border-left: 4px solid #3DDC97;
  box-shadow: 0 12px 28px rgba(11, 26, 69, 0.3);
  font-size: 0.85rem;
  font-weight: 600;
}

.toast.show { display: block; animation: slideIn 0.25s ease; }
.toast.error { background: #5B1A20; border-left-color: #FF8A91; }

@keyframes slideIn { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

.api-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 40px 12px;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  background: var(--red-soft);
  border: 1px solid #F3B7BB;
  color: #A11E27;
  font-size: 0.85rem;
  font-weight: 600;
}

.api-banner.show { display: flex; }

.empty-state { text-align: center; color: var(--text-dim); font-size: 0.84rem; padding: 26px 12px !important; }

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

.tab-pane { display: none; animation: fadeIn 0.2s ease; }
.tab-pane.active { display: block; }

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


/* ==========================================================================
   Responsivo
   ========================================================================== */

/* Elementos que só existem no celular */
.mobile-bar, .sidebar-close, .sidebar-backdrop { display: none; }

@media (max-width: 1200px) {
  .grid-2-col, .phases-timeline, .cadence-table-grid { grid-template-columns: minmax(0, 1fr); }
  .kpi-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------- Tablet e celular ---------------- */
@media (max-width: 900px) {
  /* Sidebar vira gaveta lateral */
  .sidebar,
  .sidebar.collapsed {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 284px;
    min-width: 284px;
    height: 100dvh;
    z-index: 300;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    box-shadow: 12px 0 32px rgba(11, 26, 69, 0.35);
  }

  body.menu-open .sidebar { transform: none; }

  /* No celular o menu sempre aparece completo (ignora o modo recolhido do desktop) */
  .sidebar.collapsed .brand-text,
  .sidebar.collapsed .user-details { display: flex; flex-direction: column; }
  .sidebar.collapsed .nav-item > span:not(.nav-icon-box):not(.pill-counter) { display: inline; }
  .sidebar.collapsed .nav-section-title { font-size: 0.64rem; padding: 18px 10px 8px; }
  .sidebar.collapsed .nav-section-title::after { display: none; }
  .sidebar.collapsed .nav-item { justify-content: flex-start; padding: 7px 10px; }
  .sidebar.collapsed .sidebar-header { flex-direction: row; padding: 18px 16px 18px 18px; }
  .sidebar.collapsed .user-chip { justify-content: flex-start; }
  .sidebar.collapsed .logout-btn { display: flex; }
  .sidebar.collapsed .nav-item .pill-counter { position: static; font-size: 0.66rem; width: auto; height: auto; padding: 2px 7px; }

  .sidebar-toggle { display: none; }

  .sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #FFFFFF;
    cursor: pointer;
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 250;
    background: rgba(11, 26, 69, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  body.menu-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }
  body.menu-open { overflow: hidden; }

  /* Barra superior com o botão do menu */
  .mobile-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 60;
    padding: 10px 16px;
    background: var(--nav-bg);
    color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(11, 26, 69, 0.25);
  }

  .menu-button {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-brand { font-size: 1rem; font-weight: 800; letter-spacing: -0.01em; }

  /* Cabeçalho da página */
  .topbar { padding: 18px 16px 12px; gap: 12px; }
  .page-title-box h1 { font-size: 1.25rem; }
  .topbar-actions { width: 100%; }
  .topbar-actions .status-indicator { width: 100%; justify-content: flex-start; }
  .topbar-actions .btn { flex: 1 1 auto; }

  .content-body { padding: 4px 16px 32px; }
  .api-banner { margin-left: 16px; margin-right: 16px; }
  .card { padding: 18px 16px; }
  .card-header-styled { flex-wrap: wrap; }

  .form-grid-3, .form-grid-2 { grid-template-columns: 1fr; }

  /* Indicações: banner e filtros */
  .section-banner { flex-direction: column; align-items: stretch; padding: 18px 16px; }
  .banner-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-box { min-width: 0; }
  .filter-toolbar { flex-direction: column; align-items: stretch; }
  .search-box { min-width: 0; }
  .filter-group { width: 100%; }
  .filter-group select { flex: 1; min-width: 0; }
  .filter-toolbar > .btn { width: 100%; }

  /* Funil: resumo e colunas com rolagem lateral */
  .pipeline-metric-chip { flex: 1 1 calc(50% - 14px); min-width: 0; }
  .pipeline-metric-chip strong { font-size: 1.1rem; }
  .pipeline-header-summary .btn { margin-left: 0; width: 100%; }
  .kanban-board { grid-auto-columns: 82vw; scroll-snap-type: x mandatory; }
  .kanban-column { scroll-snap-align: start; min-height: 360px; }

  /* Configurações */
  .settings-add-row input[type="text"], .settings-add-row input[type="password"] { min-width: 0; flex: 1 1 100%; }
  .settings-add-row .btn { flex: 1 1 auto; }
  .cost-total-line { flex-direction: column; align-items: flex-start; }

  /* Janelas (modais) abrem como folha de baixo para cima */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-dialog { max-width: none !important; max-height: 92dvh; border-radius: 16px 16px 0 0; }
  .modal-header, .modal-body, .modal-footer { padding-left: 16px; padding-right: 16px; }
  .modal-footer .btn { flex: 1; }

  .toast { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}

@media (max-width: 600px) {
  .kpi-grid-4, .sim-results-grid { grid-template-columns: 1fr; }
  .kpi-main-val { font-size: 1.8rem; }
  .topbar-actions .btn { font-size: 0.8rem; padding: 0 12px; }
}

/* ---------------- Tabelas viram cartões no celular ---------------- */
@media (max-width: 760px) {
  .quick-table-container { overflow: visible; }
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tfoot, .data-table tr, .data-table td { display: block; width: 100%; }

  .data-table tr {
    margin-bottom: 10px;
    padding: 4px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
  }

  /* Rótulo à esquerda; todo o conteúdo da célula empilhado à direita */
  .data-table td {
    display: grid;
    grid-template-columns: minmax(104px, 40%) minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 2px;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px dashed var(--border);
    text-align: right;
    min-height: 40px;
    overflow-wrap: anywhere;
  }

  .data-table td > * { grid-column: 2; justify-self: end; }
  .data-table td::before { grid-column: 1; grid-row: 1 / span 6; overflow-wrap: normal; word-break: normal; hyphens: none; }

  .data-table tbody tr:last-child td { border-bottom: 1px dashed var(--border); }
  .data-table tr td:last-child { border-bottom: none; }
  .data-table tbody tr:hover td { background: transparent; }

  .data-table td::before {
    content: attr(data-label);
    flex-shrink: 0;
    max-width: 45%;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: left;
  }

  .data-table td[data-label=""]::before { content: none; }
  .data-table td[data-label=""] { grid-template-columns: minmax(0, 1fr); }
  .data-table td[data-label=""] > * { grid-column: 1; }
  .data-table td > * { max-width: 100%; }
  .data-table td > div, .data-table td small { text-align: right; }

  /* Linha "vazia" ocupa o cartão inteiro */
  .data-table td.empty-state { display: block; text-align: center; }
  .data-table td.empty-state::before { content: none; }
  .data-table tr:has(td.empty-state) { box-shadow: none; }

  .row-actions { flex-wrap: wrap; justify-content: flex-end; }
  .total-row td { border-top: none; }
  .data-table tr.total-row { background: #F4F7FD; border-color: #C9D8FB; }
  .cost-input { width: 120px; }
  input.inline-input { max-width: 60%; }
  input.inline-input.narrow { max-width: 90px; }
}
