.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.page-header h2 { font-size: 1.6rem; font-weight: 700; }
.page-header p { color: var(--muted, #8696a0); font-size: 0.875rem; margin-top: 0.25rem; }

.page-header .meta {
  font-size: 0.8rem;
  color: var(--muted, #8696a0);
  text-align: right;
}

.card {
  background: #111b21;
  border: 1px solid #2a3942;
  border-radius: 14px;
  padding: 1.25rem;
}

.card h3 {
  font-size: 0.9rem;
  color: #8696a0;
  margin-bottom: 1rem;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
}

.btn:hover { opacity: 0.9; text-decoration: none; }
.btn-primary { background: #00a884; color: #fff; }
.btn-secondary { background: #2a3942; color: #e9edef; }
.btn-danger { background: #ea4335; color: #fff; }
.btn-ghost { background: transparent; border: 1px solid #2a3942; color: #e9edef; }

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: linear-gradient(145deg, #1f2c34 0%, #111b21 100%);
  border: 1px solid #2a3942;
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  position: relative;
}

.stat-card .icon { font-size: 1.4rem; margin-bottom: 0.5rem; }
.stat-card .label {
  font-size: 0.72rem;
  color: #8696a0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.stat-card .value {
  font-size: 1.85rem;
  font-weight: 700;
  color: #00a884;
  margin-top: 0.25rem;
}
.stat-card .sub { font-size: 0.72rem; color: #8696a0; margin-top: 0.2rem; }

.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.chart-card canvas { max-height: 220px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 1100px) {
  .two-col { grid-template-columns: 1fr; }
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

table.data-table th,
table.data-table td {
  text-align: left;
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid #2a3942;
}

table.data-table th {
  color: #8696a0;
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 600;
}

table.data-table tr:hover td { background: #1f2c34; }

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 600;
}

.badge-novo { background: #422006; color: #fbbf24; }
.badge-atendimento { background: #042f2e; color: #34d399; }
.badge-aguardando { background: #1e1b4b; color: #a5b4fc; }
.badge-convertido { background: #052e16; color: #86efac; }
.badge-perdido { background: #450a0a; color: #f87171; }
.badge-docs { background: #1e3a5f; color: #93c5fd; }
.badge-proposta { background: #422006; color: #fbbf24; }

.activity-list { list-style: none; }
.activity-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #2a3942;
  font-size: 0.85rem;
}

.activity-list .av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2a3942;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.activity-list .body { flex: 1; min-width: 0; }
.activity-list .time { font-size: 0.72rem; color: #8696a0; white-space: nowrap; }

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  flex: 1;
  min-width: 140px;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  border: 1px solid #2a3942;
  background: #0b141a;
  color: #e9edef;
  font-size: 0.85rem;
}

.form-row textarea { min-height: 80px; resize: vertical; }

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.item-card {
  background: #1f2c34;
  border: 1px solid #2a3942;
  border-radius: 12px;
  padding: 1rem;
}

.item-card h4 { font-size: 0.95rem; margin-bottom: 0.35rem; }
.item-card p { font-size: 0.8rem; color: #8696a0; }
.item-card .actions { margin-top: 0.75rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }

.tag-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.35rem;
}

.integration-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
}

.integration-card .ico { font-size: 2rem; }
.integration-card .status-ok { color: #25d366; font-size: 0.8rem; font-weight: 600; }

.empty-state {
  text-align: center;
  padding: 2rem;
  color: #8696a0;
}

.pipeline {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.pipeline-item {
  flex: 1;
  min-width: 120px;
  background: #1f2c34;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  border: 1px solid #2a3942;
}

.pipeline-item .n { font-size: 1.5rem; font-weight: 700; color: #00a884; }
.pipeline-item .l { font-size: 0.72rem; color: #8696a0; margin-top: 0.25rem; }
