* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  /* Identidade visual – logo Fluydon + #34e780 */
  --primary: #00AEEF;
  --primary-light: #00C2F4;
  --primary-aqua: #00D4FF;
  --accent-green: #34e780;
  --brand-dark: #222831;
  --bg: #f5f5f5;
  --surface: #ffffff;
  --text: #222831;
  --muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.06);
  --sidebar: 240px;
  --sidebar-collapsed: 72px;
  --sidebar-bg: #fafbfc;
  --sidebar-text: #222831;
  --sidebar-muted: #64748b;
  --sidebar-border: #e5e7eb;
  --sidebar-active: rgba(0, 174, 239, 0.1);
  --sidebar-active-border: #00AEEF;
  --sidebar-radius: 14px;
  --card-radius: 16px;
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  --transition-fast: 0.15s var(--ease-smooth);
  --transition-normal: 0.25s var(--ease-smooth);
  --transition-slow: 0.35s var(--ease-smooth);
  --status-delivered: #059669;
  --status-processed: #d97706;
  --status-cancelled: #dc2626;
  --fluydon-green: #34e780;
}

body {
  margin: 0;
  font-family: "DM Sans", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

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

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  min-width: 0;
}

.app-body {
  background: var(--bg);
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  border-radius: 0 var(--sidebar-radius) var(--sidebar-radius) 0;
  padding: 14px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
  transition: width 0.22s var(--ease-smooth), padding 0.22s var(--ease-smooth);
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: -14px -12px 12px -12px;
  padding: 14px 12px;
  border-bottom: 1px solid var(--sidebar-border);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
  flex: 1;
}

.brand-logo {
  height: 42px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.brand-logo-icon {
  display: none;
}

.sidebar-toggle {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid var(--sidebar-border);
  background: var(--surface);
  color: var(--sidebar-muted);
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: background 0.2s var(--ease-smooth), color 0.2s var(--ease-smooth), border-color 0.2s var(--ease-smooth), box-shadow 0.2s var(--ease-smooth);
}

.sidebar-toggle:hover {
  background: rgba(0, 174, 239, 0.08);
  color: var(--primary);
  border-color: rgba(0, 174, 239, 0.3);
  box-shadow: 0 2px 8px rgba(0, 174, 239, 0.12);
}

.sidebar-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.sidebar-toggle-icon {
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
  transition: transform 0.2s var(--ease-smooth);
}

.sidebar-toggle:hover .sidebar-toggle-icon {
  transform: scale(1.05);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 6px;
}

.sidebar-nav-group-title {
  margin: 16px 0 6px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sidebar-muted);
}

.sidebar-nav .sidebar-nav-group-title:first-child {
  margin-top: 0;
}

.sidebar-link {
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s var(--ease-smooth), color 0.2s var(--ease-smooth);
  position: relative;
  border-left: 3px solid transparent;
}

.sidebar-link-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}

.sidebar-link-icon svg {
  width: 20px;
  height: 20px;
}

.sidebar-link:hover .sidebar-link-icon,
.sidebar-link.active .sidebar-link-icon {
  opacity: 1;
}

.sidebar-link:hover {
  background: rgba(0, 174, 239, 0.06);
  color: var(--primary);
}

.sidebar-link.active {
  background: var(--sidebar-active);
  color: var(--primary);
  font-weight: 600;
  border-left-color: var(--sidebar-active-border);
}

.sidebar-link-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-badge {
  margin-left: auto;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.nav-icon {
  font-size: 8px;
  color: var(--primary);
}

.nav-label {
  white-space: nowrap;
}

.main {
  padding: 24px 0 48px;
  min-width: 0;
  animation: pageEnter 0.4s var(--ease-out) both;
  background: var(--bg);
}

.sidebar-collapsed .app-shell {
  grid-template-columns: var(--sidebar-collapsed) minmax(0, 1fr);
}

.sidebar-collapsed .sidebar {
  width: var(--sidebar-collapsed);
  padding: 12px 0;
}

.sidebar-collapsed .sidebar-header {
  flex-direction: column;
  padding: 12px 8px;
  margin: -12px -12px 8px -12px;
  margin-left: -12px;
  margin-right: -12px;
  margin-top: -12px;
  margin-bottom: 8px;
}

.sidebar-collapsed .brand {
  justify-content: center;
}

.sidebar-collapsed .brand-logo {
  display: none;
}

.sidebar-collapsed .brand-logo-icon {
  display: block;
}

.sidebar-collapsed .brand-text,
.sidebar-collapsed .nav-label,
.sidebar-collapsed .sidebar-link-label,
.sidebar-collapsed .sidebar-nav-group-title {
  display: none !important;
}

.sidebar-collapsed .sidebar-link-icon {
  margin: 0;
}

.sidebar-collapsed .sidebar-nav {
  padding: 0 6px;
}

.sidebar-collapsed .sidebar-link {
  justify-content: center;
  padding: 10px 0;
}

.sidebar-collapsed .sidebar-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  margin-left: 0;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 16px;
}

.page-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.page-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

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

.card-label {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-value {
  font-size: 30px;
  font-weight: 600;
  margin: 8px 0 0;
}

.card-subtitle {
  color: var(--muted);
  font-size: 13px;
  margin: 6px 0 0;
}

.section {
  background: var(--surface);
  padding: 18px 20px;
  border-radius: var(--card-radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
  max-width: 100%;
  transition: box-shadow var(--transition-normal), border-color var(--transition-fast);
}

.section:hover {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.filter-btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 174, 239, 0.06);
}

.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.filter-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ========== Container da lista de leads (Dashboard + Painel de vendas) – estilo “Customer order” ========== */
.sales-panel {
  background: var(--surface);
  border-radius: var(--card-radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  width: 100%;
  overflow: hidden;
  min-width: 0;
  padding: 0;
  transition: box-shadow var(--transition-normal), border-color var(--transition-fast);
}

.sales-panel:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.sales-panel .section-header {
  padding: 18px 24px;
  margin: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  border-radius: var(--card-radius) var(--card-radius) 0 0;
  transition: background var(--transition-fast);
}

.sales-panel .fluydon-metrics-grid,
.sales-panel .filter-row {
  padding-left: 20px;
  padding-right: 20px;
}

.sales-panel .fluydon-metrics-grid {
  padding-top: 16px;
  padding-bottom: 4px;
}

.sales-panel .filter-row {
  padding-bottom: 14px;
}

.sales-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sales-header-actions .form-atualizar-bd {
  margin: 0;
}

.sales-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.sales-panel .section-header .muted {
  font-size: 12px;
}

.sales-table-wrapper {
  border-radius: 0 0 var(--card-radius) var(--card-radius);
  border: none;
  border-top: 1px solid var(--border);
  background: #fff;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  display: block;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
  transition: box-shadow var(--transition-normal);
}

.sales-panel:hover .sales-table-wrapper {
  box-shadow: inset 0 1px 0 var(--border);
}

.sales-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1400px;
}

.sales-table thead th {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  position: sticky;
  top: 0;
  z-index: 1;
  transition: background var(--transition-fast);
}

.table-row {
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.table-row:hover {
  background: rgba(0, 174, 239, 0.06);
  transform: translateX(2px);
}

.sales-table th,
.sales-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  font-size: 13px;
  vertical-align: middle;
  white-space: nowrap;
  transition: border-color var(--transition-fast);
}

.sales-table td {
  color: #0f172a;
}

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

.sales-table tbody tr td[colspan],
.sales-table .empty-state {
  text-align: center;
  padding: 40px 24px;
  color: var(--muted);
  font-size: 14px;
  white-space: normal;
}

.sales-table .empty-state {
  font-size: 13px;
  letter-spacing: 0.02em;
}

.sales-table .cell-stack {
  min-width: 120px;
}

.sales-table td:nth-child(2),
.sales-table td:nth-child(4) {
  white-space: normal;
  max-width: 220px;
}

.sales-table td:nth-child(2) .cell-main,
.sales-table td:nth-child(4) {
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-wrapper {
  overflow: auto;
}

.cell-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cell-main {
  font-weight: 600;
  font-size: 13px;
}

.cell-sub {
  font-size: 11px;
  color: var(--muted);
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  text-decoration: none;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

.pagination a {
  text-decoration: none;
  color: var(--primary);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 8px;
  background: #fff;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.pagination a:hover {
  background: rgba(0, 174, 239, 0.08);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.badge.status-paga {
  background: rgba(16, 185, 129, 0.2);
  color: #065f46;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.detail-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.detail-card h4 {
  margin: 0 0 10px;
  font-size: 14px;
}

.detail-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: var(--text);
}

.detail-card li {
  margin-bottom: 6px;
}

.detail-json {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  font-size: 12px;
  overflow: auto;
}

.detail-json pre {
  margin: 0;
  white-space: pre-wrap;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.settings-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-card h4 {
  margin: 0;
  font-size: 14px;
}

.settings-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.settings-list li {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
}

.settings-name {
  font-weight: 600;
}

.settings-desc {
  font-size: 12px;
  color: var(--muted);
}

.settings-messages {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.settings-alert {
  padding: 8px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--border);
  font-size: 12px;
}

.settings-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.settings-form input,
.settings-form-inline input,
.settings-form select {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  background: #fff;
}

.settings-form button,
.settings-form-inline button {
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}

.settings-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text);
}

.settings-vendedores {
  display: grid;
  gap: 12px;
}

.settings-vendedor {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  background: var(--surface);
  transition: box-shadow var(--transition-normal), border-color var(--transition-fast);
}

.settings-vendedor:hover {
  box-shadow: var(--shadow-card);
  border-color: rgba(0, 174, 239, 0.3);
}

.settings-vendedor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.settings-vendedor-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 8px 0;
  display: grid;
  gap: 6px;
}

.settings-vendedor-body li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12px;
}

.settings-vendedor-body li form button {
  background: #e2e8f0;
  color: #334155;
}

.settings-form-inline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge.status-aguardando_pagamento {
  background: rgba(245, 158, 11, 0.2);
  color: #92400e;
}

.badge.status-cancelada,
.badge.status-frustrada,
.badge.status-reembolsada {
  background: rgba(239, 68, 68, 0.2);
  color: #991b1b;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}

.search-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.search-form input {
  padding: 10px 12px;
  min-width: 240px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-form input:focus,
.search-form input:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.2);
}

.search-form button {
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-normal);
}

.search-form button:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 174, 239, 0.3);
}

.search-form button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
}

tbody tr:hover {
  background: #f8fafc;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
}

.link {
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
}

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

/* Login page */
body.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.login-box {
  width: 100%;
  max-width: 360px;
  padding: 32px;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
}

.login-title {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 600;
}

.login-messages {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.login-messages .message {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
}

.login-messages .message.error {
  background: #fef2f2;
  color: #b91c1c;
}

.login-messages .message.success {
  background: #f0fdf4;
  color: #15803d;
}

.login-form .form-group {
  margin-bottom: 16px;
}

.login-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.login-form input[type="text"],
.login-form input[type="email"],
.login-form input[type="password"],
.login-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}
.login-form textarea {
  resize: vertical;
  min-height: 80px;
}

.login-form .btn-primary {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.login-form .btn-primary:hover {
  opacity: 0.9;
}

/* Sidebar – bloco do usuário */
.sidebar-footer {
  margin-top: auto;
  padding: 12px 8px;
  border-top: 1px solid var(--sidebar-border);
  flex-shrink: 0;
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--sidebar-border);
  border-radius: 10px;
  transition: box-shadow 0.2s var(--ease-smooth), border-color 0.2s var(--ease-smooth);
}

.sidebar-user-card:hover {
  border-color: rgba(0, 174, 239, 0.25);
  box-shadow: 0 2px 8px rgba(0, 174, 239, 0.06);
}

.sidebar-user-avatar,
.sidebar-user-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.sidebar-user-avatar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.sidebar-user-avatar-img {
  display: block;
}

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

.sidebar-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--sidebar-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-profile-link {
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease-smooth);
}

.sidebar-profile-link:hover {
  color: var(--primary);
}

.sidebar-logout {
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s var(--ease-smooth);
}

.sidebar-logout:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.sidebar-logout:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.sidebar-collapsed .sidebar-user-info {
  display: none;
}

.sidebar-collapsed .sidebar-user-card {
  justify-content: center;
  padding: 10px;
}

.sidebar-collapsed .sidebar-user-avatar,
.sidebar-collapsed .sidebar-user-avatar-img {
  margin: 0;
}

/* ========== Configurações (layout interno) ========== */
.config-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  max-width: 100%;
  min-width: 0;
}

.config-nav {
  flex-shrink: 0;
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-right: 1px solid var(--border);
  padding-right: 20px;
}

.config-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.config-nav-item:hover {
  background: var(--sidebar-active);
  color: var(--primary);
}

.config-nav-item.active {
  background: var(--sidebar-active);
  color: var(--primary);
  border-left: 3px solid var(--sidebar-active-border);
  padding-left: 9px;
}

.config-nav-icon {
  font-size: 18px;
  line-height: 1;
  color: var(--muted);
}

.config-nav-item.active .config-nav-icon {
  color: var(--primary);
}

.config-nav-label {
  flex: 1;
}

.config-nav-badge {
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
}

.config-content {
  flex: 1;
  min-width: 0;
}

.config-page-header {
  margin-bottom: 24px;
}

.config-page-title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
}

.config-page-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Cards da página inicial de config */
.config-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.config-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow var(--transition-normal), border-color var(--transition-fast), transform var(--transition-normal);
}

.config-card:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(0, 174, 239, 0.12);
  transform: translateY(-2px);
}

.config-card-icon {
  font-size: 28px;
  line-height: 1;
  display: block;
}

.config-card--vendedores {
  border-left: 4px solid var(--primary);
  padding-left: 18px;
}

.config-card--vendedores .config-card-icon {
  color: var(--primary);
}

.config-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.config-card-desc {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.config-card-meta {
  margin-top: auto;
  font-size: 12px;
  color: var(--muted);
}

.config-card-meta-alert {
  color: #dc2626;
  font-weight: 600;
}

/* Seções dentro de cada página de config */
.config-section {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.config-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.fluydon-config-section {
  transition: border-color var(--transition-fast);
}

.config-page-header.fluydon-header {
  margin-bottom: 24px;
}

.config-page-header .config-page-title,
.config-page-header .config-page-subtitle {
  margin: 0.25em 0 0;
}

.config-page-header .config-page-subtitle {
  font-size: 13px;
  color: var(--muted);
}

.config-section-avatar .config-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.config-avatar-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.config-input-file {
  max-width: 240px;
}

.config-section-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.config-section-desc {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted);
}

/* Webhook URL box (integrações) */
.webhook-url-box {
  display: flex;
  gap: 8px;
  align-items: stretch;
  max-width: 560px;
}
.webhook-url-input {
  flex: 1;
  padding: 10px 14px;
  font-size: 13px;
  font-family: ui-monospace, monospace;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}
.webhook-url-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 174, 239, 0.15);
}
.webhook-copy-btn {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  background: rgba(0, 174, 239, 0.1);
  border: 1px solid var(--primary);
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.webhook-copy-btn:hover {
  background: var(--primary);
  color: white;
}

.config-back-link {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}

.config-back-link:hover {
  color: var(--primary);
}

.config-page-header-editar .config-page-subtitle {
  margin-top: 4px;
}

.config-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.config-form-row-inline {
  flex-wrap: nowrap;
  gap: 12px;
}

.config-form-row-inline .config-input {
  min-width: 120px;
}

.config-form-vendedor-add .config-input-nome {
  min-width: 200px;
}

.config-checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  white-space: nowrap;
}

.config-label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.config-form-group {
  margin-bottom: 0;
}

.config-form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.config-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

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

.config-table th,
.config-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.config-table th {
  font-weight: 600;
  color: var(--text);
  background: rgba(0, 0, 0, 0.02);
}

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

.config-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

.config-empty,
.config-muted {
  color: var(--muted);
  font-style: italic;
}

.config-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.config-list-item {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  border: 1px solid var(--border);
  margin-bottom: 8px;
  background: var(--surface);
}

.config-list-item-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.config-list-item-actions form {
  margin: 0;
}

.config-conta-box {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  margin-bottom: 12px;
}

.config-conta-box p {
  margin: 0 0 12px;
}

.config-conta-box .config-form-inline,
.config-conta-box .config-inline-form {
  margin-top: 8px;
  margin-bottom: 8px;
}

.config-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  max-width: 720px;
}

.config-input {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  min-width: 140px;
}

.config-input-sm {
  padding: 6px 8px;
  font-size: 12px;
  min-width: 100px;
}

.btn-primary {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary:hover {
  opacity: 0.9;
}

a.btn-primary {
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.btn-secondary {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #f8fafc;
}

.btn-sm {
  padding: 6px 10px;
  font-size: 12px;
}

.config-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}

.config-toggle input {
  width: 18px;
  height: 18px;
}

.config-vendedor-card {
  max-width: 520px;
  border-left: 4px solid var(--primary);
  padding-left: 20px;
}

.config-vendedor-card .settings-vendedor-header {
  font-size: 15px;
  margin-bottom: 10px;
  gap: 10px;
}

.config-cobrador-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.config-vendedor-card .settings-vendedor-body p.config-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 8px 0;
}

.config-email-list {
  margin-bottom: 12px !important;
}

.config-email-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.config-profile-list {
  max-width: 640px;
}

.config-profile-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.config-profile-item--with-avatar .config-profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.config-profile-item--with-avatar .config-profile-info {
  min-width: 0;
}

.config-profile-avatar-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.config-input-file-sm {
  max-width: 160px;
  font-size: 12px;
}

.config-inline-form {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.config-badge-inline {
  margin-left: 8px;
  padding: 2px 8px;
  background: #ef4444;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
}

.config-plataformas-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
}

.config-plataforma-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.config-plataforma-nome {
  font-weight: 600;
  min-width: 80px;
}

.config-plataforma-desc {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Página Metas (organização) ---------- */
.config-section-metas .config-section-desc {
  margin-bottom: 20px;
}

.config-form-metas-padrao {
  max-width: 720px;
}

.config-metas-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 20px;
}

.config-metas-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.config-metas-block-title {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.config-metas-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.config-metas-field .config-label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.config-metas-field .config-input-num {
  max-width: 88px;
}

.config-edit-box-metas {
  margin-top: 20px;
  padding: 20px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 720px;
}

.config-edit-box-metas .config-section-title {
  margin-bottom: 16px;
}

.config-edit-box-metas .config-metas-blocks {
  margin-bottom: 16px;
}

.config-edit-box-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.config-table-metas .config-th-nome {
  min-width: 120px;
}

.config-table-metas .config-th-premio {
  max-width: 140px;
  font-weight: 500;
  color: var(--muted);
}

.config-table-metas .config-th-acoes {
  width: 1%;
  white-space: nowrap;
}

.config-table-metas td.config-cell-premio {
  max-width: 140px;
  font-size: 13px;
  color: var(--muted);
}

.settings-alert.success {
  background: #f0fdf4;
  border-color: #86efac;
  color: #15803d;
}

.settings-alert.error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

/* ========== Fluydon UI – Modernização (PLANO_MODERNIZACAO_UI) ========== */

/* Cores Fluydon (alinhadas à identidade visual) */
:root {
  --fluydon-blue: var(--primary);
  --fluydon-blue-light: var(--primary-light);
  --fluydon-green: var(--accent-green);
  --fluydon-amber: #d97706;
  --fluydon-slate: #475569;
}

/* Header de página padronizado */
.fluydon-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  transition: opacity var(--transition-normal);
}

.fluydon-header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fluydon-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 174, 239, 0.14), rgba(0, 194, 244, 0.1));
  border: 1px solid rgba(0, 174, 239, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--primary);
}

.fluydon-header-title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
}

.fluydon-header-subtitle {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* ========== Header compacto (dashboard + vendas) ========== */
.page-header-compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 6px 0;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
  min-height: 36px;
}

.page-header-compact .header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.page-header-compact .header-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 174, 239, 0.12), rgba(0, 194, 244, 0.08));
  border: 1px solid rgba(0, 174, 239, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 14px;
  flex-shrink: 0;
}

.page-header-compact .header-text h1 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
  line-height: 1.25;
}

.page-header-compact .header-text p {
  font-size: 11px;
  color: var(--muted);
  margin: 2px 0 0 0;
  line-height: 1.2;
}

.page-header-compact .header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page-header-compact .header-actions .btn-compact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 8px;
  transition: color 0.2s var(--ease-smooth), background 0.2s var(--ease-smooth), border-color 0.2s var(--ease-smooth);
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.page-header-compact .header-actions .btn-compact:hover {
  background: rgba(0, 174, 239, 0.06);
  border-color: rgba(0, 174, 239, 0.25);
  color: var(--primary);
}

.page-header-compact .header-actions .btn-compact.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.page-header-compact .header-actions .btn-compact.btn-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
}

.page-header-compact .pills-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.page-header-compact .pills-inline a,
.page-header-compact .pills-inline span.pill-active {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s ease, background 0.15s ease;
}

.page-header-compact .pills-inline a:hover {
  color: var(--primary);
  background: rgba(0, 174, 239, 0.08);
}

.page-header-compact .pills-inline .pill-active {
  background: var(--primary);
  color: #fff;
  border: none;
}

/* Card de métrica – compacto e moderno */
.fluydon-metric-card {
  background: var(--surface);
  border-radius: var(--card-radius);
  padding: 20px 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow var(--transition-normal), transform var(--transition-normal), border-color var(--transition-fast);
}

.fluydon-metric-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.fluydon-metric-card.border-blue {
  border-left: 4px solid var(--primary);
}

.fluydon-metric-card.border-green {
  border-left: 4px solid var(--fluydon-green);
}

.fluydon-metric-card.border-amber {
  border-left: 4px solid var(--fluydon-amber);
}

.fluydon-metric-card.border-slate {
  border-left: 4px solid var(--fluydon-slate);
}

.fluydon-metric-label {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.fluydon-metric-value {
  font-size: 26px;
  font-weight: 700;
  margin: 6px 0 0;
  color: var(--text);
  letter-spacing: -0.02em;
}

.fluydon-metric-sub {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* Grid de cards de métrica */
.fluydon-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

/* Tabela compacta */
.fluydon-table-compact {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.fluydon-table-compact thead th {
  background: #f8fafc;
  color: var(--fluydon-slate);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

.fluydon-table-compact tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
}

.fluydon-table-compact tbody tr:hover {
  background: rgba(0, 174, 239, 0.04);
}

.fluydon-table-compact .cell-main {
  font-size: 13px;
  font-weight: 600;
}

.fluydon-table-compact .cell-sub {
  font-size: 11px;
  color: var(--muted);
}

/* Badge pequeno (status) – base legado */
.fluydon-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.fluydon-badge.status-paga {
  background: rgba(5, 150, 105, 0.14);
  color: var(--status-delivered);
}

.fluydon-badge.status-aguardando_pagamento,
.fluydon-badge.status-criada {
  background: rgba(217, 119, 6, 0.14);
  color: var(--status-processed);
}

.fluydon-badge.status-cancelada,
.fluydon-badge.status-frustrada,
.fluydon-badge.status-reembolsada {
  background: rgba(220, 38, 38, 0.12);
  color: var(--status-cancelled);
}

.fluydon-badge.status-default {
  background: #f1f5f9;
  color: var(--fluydon-slate);
}

/* ========== Status como “mark” (bordas arredondadas, cores por estado) ========== */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}

/* Status do pedido */
.status-pedido-criada {
  background: #fef3c7;
  color: #b45309;
  border-color: #fcd34d;
}
.status-pedido-agendado {
  background: #fef3c7;
  color: #b45309;
  border-color: #fcd34d;
}
.status-pedido-aguardando_pagamento {
  background: #ffedd5;
  color: #c2410c;
  border-color: #fdba74;
}
.status-pedido-aguardando_confirmacao {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #7dd3fc;
}
.status-pedido-paga {
  background: #d1fae5;
  color: #047857;
  border-color: #6ee7b7;
}
.status-pedido-codigo_invalido {
  background: #ffedd5;
  color: #c2410c;
  border-color: #fdba74;
}
.status-pedido-cancelada,
.status-pedido-frustrada,
.status-pedido-reembolsada {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

/* Status de entrega */
.status-entrega-nao_informado {
  background: #f1f5f9;
  color: #64748b;
  border-color: #e2e8f0;
}
.status-entrega-aguardando_postagem {
  background: #f8fafc;
  color: #475569;
  border-color: #cbd5e1;
}
.status-entrega-aguardando_codigo {
  background: #f8fafc;
  color: #475569;
  border-color: #cbd5e1;
}
.status-entrega-rastreio_adicionado {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #93c5fd;
}
.status-entrega-codigo_informado {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #93c5fd;
}
.status-entrega-pedido_postado {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #93c5fd;
}
.status-entrega-aguardando_retirada {
  background: #fef3c7;
  color: #b45309;
  border-color: #fcd34d;
}
.status-entrega-em_transito {
  background: #e0e7ff;
  color: #4338ca;
  border-color: #a5b4fc;
}
.status-entrega-em_separacao {
  background: #c7d2fe;
  color: #3730a3;
  border-color: #818cf8;
}
.status-entrega-entregue {
  background: #d1fae5;
  color: #047857;
  border-color: #6ee7b7;
}
.status-entrega-agendado {
  background: #fef9c3;
  color: #a16207;
  border-color: #fde047;
}
.status-entrega-codigo_invalido {
  background: #ffedd5;
  color: #c2410c;
  border-color: #fdba74;
}
.status-entrega-cancelado_entrega {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

/* Coluna Perfil (avatar + nome) na tabela de pedidos */
.table-profile-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.table-profile-name {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 160px;
}

.cell-truncate {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Botões Fluydon */
.fluydon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity var(--transition-fast), box-shadow var(--transition-normal), transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.fluydon-btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
}

.fluydon-btn-primary:hover {
  opacity: 0.95;
  box-shadow: 0 4px 12px rgba(0, 174, 239, 0.4);
  transform: translateY(-1px);
}

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

.fluydon-btn-secondary:hover {
  background: #f8fafc;
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.fluydon-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.sidebar-link:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

.pagination a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Info item (detalhes / configurações) */
.fluydon-info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

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

.fluydon-info-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f1f5f9;
  color: var(--fluydon-slate);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.fluydon-info-label {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.fluydon-info-value {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

/* Detalhe da venda: grid de cards */
.fluydon-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.fluydon-detail-card {
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transition: box-shadow var(--transition-normal), border-color var(--transition-fast), transform var(--transition-normal);
}

.fluydon-detail-card:hover {
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
  border-color: rgba(0, 174, 239, 0.25);
}

.fluydon-detail-card-title {
  margin: 0;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border);
}

.fluydon-detail-card-body {
  padding: 12px 18px 16px;
}

.fluydon-detail-card-body .fluydon-info-item {
  padding: 10px 0;
}

.fluydon-detail-card-body .fluydon-info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.fluydon-textarea {
  width: 100%;
  min-height: 80px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
}

.fluydon-detail-json {
  margin-top: 24px;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  transition: border-color var(--transition-fast);
}

.fluydon-detail-json summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.fluydon-detail-json summary:hover {
  background: rgba(255, 255, 255, 0.05);
}

.fluydon-detail-json summary .btn-copy-payload {
  flex-shrink: 0;
  cursor: pointer;
}

.fluydon-detail-json summary .btn-copy-payload:disabled {
  cursor: default;
  opacity: 0.8;
}

.fluydon-detail-json .payload-pre {
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  line-height: 1.5;
}

.fluydon-detail-json pre {
  margin: 0;
  padding: 16px;
  font-size: 12px;
  white-space: pre-wrap;
  overflow-x: auto;
  max-height: 320px;
  overflow-y: auto;
}

/* ========== Dashboard – compacto, moderno e fluido ========== */
.dashboard {
  --dash-radius: 12px;
  --dash-gap: 14px;
  --dash-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Header: título + filtros inline + ação */
.dashboard-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.dashboard-header-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-header-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 174, 239, 0.12), rgba(0, 194, 244, 0.08));
  border: 1px solid rgba(0, 174, 239, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 14px;
  flex-shrink: 0;
  transition: transform 0.2s var(--dash-ease), box-shadow 0.2s var(--dash-ease);
}

.dashboard-header-icon:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 174, 239, 0.15);
}

.dashboard-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.dashboard-subtitle {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* ========== Dashboard header – compacto e moderno ========== */
.dashboard-header-card {
  background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
  border-radius: 12px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 4px 12px rgba(0, 174, 239, 0.06);
  padding: 10px 16px;
  margin-bottom: 12px;
  border: 1px solid rgba(0, 174, 239, 0.08);
}

.dashboard-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.dashboard-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-header-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(0, 174, 239, 0.16) 0%, rgba(0, 194, 244, 0.08) 100%);
  border: 1px solid rgba(0, 174, 239, 0.2);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 174, 239, 0.12);
}

.dashboard-header-text {
  min-width: 0;
}

.dashboard-header-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1.25;
}

.dashboard-header-date {
  font-size: 11px;
  color: var(--muted);
  display: inline-block;
  margin-top: 1px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(0, 174, 239, 0.06);
  color: var(--primary);
  font-weight: 500;
  line-height: 1.3;
}

/* Toggle Operação / Geral – pill cinza, ativo = azul gradiente */
.dashboard-escopo-toggle {
  display: inline-flex;
  align-items: stretch;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.dashboard-escopo-opt {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  transition: color 0.2s var(--ease-smooth), background 0.2s var(--ease-smooth), box-shadow 0.2s var(--ease-smooth);
}

.dashboard-escopo-opt:first-child {
  border-right: none;
  border-radius: 10px 0 0 10px;
}

.dashboard-escopo-opt:last-child {
  border-radius: 0 10px 10px 0;
}

.dashboard-escopo-opt:hover {
  background: #e2e8f0;
}

.dashboard-escopo-opt.is-active {
  color: #fff;
  background: linear-gradient(180deg, #00AEEF 0%, #0099d6 100%);
  border-color: #0099d6;
  box-shadow: 0 1px 4px rgba(0, 174, 239, 0.4);
}

.dashboard-escopo-toggle .dashboard-escopo-opt.is-active {
  border-right-color: rgba(255, 255, 255, 0.2);
}

/* Abas de período – separadores verticais, inativo = pill cinza, ativo = azul gradiente */
.dashboard-header-card .dashboard-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.dashboard-header-card .dashboard-tab {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  margin-left: -1px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: color 0.2s var(--ease-smooth), background 0.2s var(--ease-smooth), box-shadow 0.2s var(--ease-smooth);
}

.dashboard-header-card .dashboard-tab:first-child {
  margin-left: 0;
  border-radius: 10px 0 0 10px;
}

.dashboard-header-card .dashboard-tab:last-child {
  border-radius: 0 10px 10px 0;
}

.dashboard-header-card .dashboard-tab:hover {
  background: #e2e8f0;
}

.dashboard-header-card .dashboard-tab--active {
  color: #fff;
  background: linear-gradient(180deg, #00AEEF 0%, #0099d6 100%);
  border-color: #0099d6;
  box-shadow: 0 1px 4px rgba(0, 174, 239, 0.4);
  z-index: 1;
}

/* Seleção de datas – campos brancos, ícone calendário azul, Ok cinza */
.dashboard-header-dates {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dashboard-date-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s var(--ease-smooth), box-shadow 0.2s var(--ease-smooth);
}

.dashboard-date-field:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 174, 239, 0.12);
}

.dashboard-date-field-icon {
  color: var(--primary);
  display: inline-flex;
  flex-shrink: 0;
}

.dashboard-date-input {
  padding: 0;
  border: none;
  border-radius: 0;
  font-size: 12px;
  background: transparent;
  color: var(--text);
  min-width: 88px;
}

.dashboard-date-input:focus {
  outline: none;
}

.dashboard-header-dates .dashboard-date-sep {
  font-size: 12px;
  color: #94a3b8;
  padding: 0 2px;
  font-weight: 500;
}

.dashboard-date-ok {
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #cbd5e1;
  background: #e2e8f0;
  color: #475569;
  transition: background 0.2s var(--ease-smooth), border-color 0.2s var(--ease-smooth), color 0.2s var(--ease-smooth);
}

.dashboard-date-ok:hover {
  background: #cbd5e1;
  border-color: #94a3b8;
  color: #334155;
}

/* Botão Ver vendas */
.dashboard-header-card .dashboard-btn-ver-vendas {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, var(--primary) 0%, #0099d6 100%);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 174, 239, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.2s var(--ease-smooth), box-shadow 0.2s var(--ease-smooth), filter 0.2s var(--ease-smooth);
}

.dashboard-header-card .dashboard-btn-ver-vendas:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 174, 239, 0.4);
  filter: brightness(1.05);
}

.dashboard-header-card .dashboard-btn-ver-vendas svg {
  flex-shrink: 0;
  opacity: 0.95;
}

.dashboard-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.dashboard-filter-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.dashboard-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  transition: color 0.2s var(--dash-ease), background 0.2s var(--dash-ease), border-color 0.2s var(--dash-ease);
}

.dashboard-pill:hover {
  color: var(--primary);
  background: rgba(0, 174, 239, 0.06);
  border-color: rgba(0, 174, 239, 0.2);
}

.dashboard-pill.active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.dashboard-filter-custom {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
}

.dashboard-date {
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s var(--dash-ease), box-shadow 0.2s var(--dash-ease);
}

.dashboard-date:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 174, 239, 0.15);
}

.dashboard-date-sep {
  font-size: 11px;
  color: var(--muted);
  padding: 0 2px;
}

.dashboard-pill--submit {
  padding: 5px 10px;
  font-size: 11px;
  cursor: pointer;
}

.dashboard-btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  text-decoration: none;
  transition: transform 0.2s var(--dash-ease), box-shadow 0.2s var(--dash-ease), opacity 0.2s var(--dash-ease);
}

.dashboard-btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 174, 239, 0.35);
}

.dashboard-btn-primary--sm {
  padding: 6px 12px;
  font-size: 12px;
}

.dashboard-pill:focus-visible,
.dashboard-btn-primary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Destaques: pills em linha */
.dashboard-highlight {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.06) 0%, rgba(0, 174, 239, 0.04) 100%);
  border-radius: var(--dash-radius);
  border: 1px solid rgba(5, 150, 105, 0.15);
}

.dashboard-highlight-pill {
  font-size: 12px;
  color: var(--text);
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  border: 1px solid rgba(5, 150, 105, 0.12);
  transition: background 0.2s var(--dash-ease);
}

.dashboard-highlight-pill:hover {
  background: #fff;
}

/* KPIs: cards compactos */
.dashboard-kpis-wrap {
  margin-bottom: 18px;
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--dash-gap);
  margin: 0 !important;
}

.dashboard-kpi {
  background: var(--surface);
  border-radius: var(--dash-radius);
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: box-shadow 0.25s var(--dash-ease), transform 0.25s var(--dash-ease), border-color 0.2s var(--dash-ease);
}

.dashboard-kpi:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
  border-color: rgba(0, 174, 239, 0.12);
}

.dashboard-kpi.border-blue { border-left-color: var(--primary); }
.dashboard-kpi.border-green { border-left-color: var(--fluydon-green); }
.dashboard-kpi.border-amber { border-left-color: var(--fluydon-amber); }
.dashboard-kpi.border-slate { border-left-color: var(--fluydon-slate); }

.dashboard-kpi-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.dashboard-kpi-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.dashboard-kpi-sub {
  font-size: 11px;
  color: var(--muted);
}

.dashboard-pct {
  font-weight: 600;
}

.dashboard-pct--up { color: var(--fluydon-green); }
.dashboard-pct--down { color: var(--status-cancelled); }
.dashboard-pct--same { color: var(--muted); }

/* Painéis lado a lado */
.dashboard-panels-wrap {
  margin-bottom: 18px;
}

.dashboard-panels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--dash-gap);
}

@media (max-width: 900px) {
  .dashboard-panels {
    grid-template-columns: 1fr;
  }
}

.dashboard-panel {
  background: var(--surface);
  border-radius: var(--dash-radius);
  padding: 14px 16px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.25s var(--dash-ease), border-color 0.2s var(--dash-ease);
}

.dashboard-panel:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 174, 239, 0.1);
}

.dashboard-panel-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.dashboard-panel-desc {
  margin: 0 0 10px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}

.dashboard-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dashboard-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12px;
  transition: background 0.15s var(--dash-ease);
}

.dashboard-list-item:hover {
  background: #f8fafc;
}

.dashboard-list-item + .dashboard-list-item {
  margin-top: 2px;
}

.dashboard-list-label {
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 75%;
}

.dashboard-list-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  flex-shrink: 0;
  margin-left: 8px;
}

.dashboard-list-item--empty {
  color: var(--muted);
  font-style: italic;
  background: transparent;
}

/* Painéis Desempenho – Vendedores e Cobradores */
.dashboard-panel-performance {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ========== Card Desempenho – Vendedores (spec: Notion/Stripe/Linear) ========== */
/* Paleta do card */
.dashboard-panel--vendedores.dashboard-panel--modern {
  --vendedores-blue: #1172C2;
  --vendedores-blue-light: #7DD3FC;
  --vendedores-blue-bg: #EFF6FF;
  --vendedores-gray-dark: #1F2937;
  --vendedores-gray-medium: #64748B;
  --vendedores-gray-light: #E5E7EB;
  --vendedores-gold: #FACC15;
}

.dashboard-panel--vendedores.dashboard-panel--modern {
  position: relative;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(17, 114, 194, 0.12);
  background: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(239, 246, 255, 0.6), #ffffff 50%);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  min-width: 0;
}

/* Faixa azul no topo do card (efeito de luz/realce) */
.dashboard-panel--vendedores.dashboard-panel--modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, rgba(17, 114, 194, 0.08) 0%, rgba(125, 211, 252, 0.06) 35%, transparent 100%);
  pointer-events: none;
}

.dashboard-panel--vendedores.dashboard-panel--modern:hover {
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.08);
}

.dashboard-panel--vendedores .dashboard-panel-head--with-icon {
  margin-bottom: 12px;
  gap: 8px;
}

.dashboard-panel--vendedores .dashboard-panel-head--with-icon .dashboard-panel-title {
  font-size: 17px;
  font-weight: 600;
  color: #1F2937;
}

.dashboard-panel--vendedores .dashboard-panel-icon--vendedores {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(17, 114, 194, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #1172C2;
}

.dashboard-panel--vendedores .dashboard-panel-icon--vendedores::before {
  width: 16px;
  height: 16px;
  mask-size: 16px;
  -webkit-mask-size: 16px;
}

.dashboard-panel--vendedores .dashboard-performance-chart--compact {
  padding: 0;
  gap: 0;
  min-width: 0;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.dashboard-panel--vendedores .dashboard-performance-chart--compact .dashboard-performance-row--vendedor {
  border-bottom: none;
  margin-bottom: 4px;
}

.dashboard-panel--vendedores .dashboard-performance-chart--compact .dashboard-performance-row--vendedor:last-child {
  margin-bottom: 0;
}

.dashboard-panel--vendedores .dashboard-performance-row--vendedor .performance-cell--who {
  gap: 10px;
}

.dashboard-panel--vendedores .dashboard-performance-row--vendedor .performance-cell--result,
.dashboard-panel--vendedores .dashboard-performance-row--vendedor .performance-cell--result-inline {
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  justify-content: flex-end;
  box-sizing: border-box;
}

.dashboard-panel--vendedores .dashboard-performance-row--vendedor .performance-cell--result-inline .performance-result-line {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  font-size: 11px;
  box-sizing: border-box;
}

.dashboard-panel--vendedores .performance-result-line .dashboard-performance-pct,
.dashboard-panel--vendedores .performance-result-line .performance-sep,
.dashboard-panel--vendedores .performance-result-line .performance-fraction,
.dashboard-panel--vendedores .performance-result-line .performance-value {
  font-size: 11px;
}

/* Card Desempenho – Cobradores (mesmo design que vendedores, identidade verde) */
.dashboard-panel--cobradores.dashboard-panel--modern {
  position: relative;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(5, 150, 105, 0.12);
  background: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(236, 253, 245, 0.6), #ffffff 50%);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  min-width: 0;
}

/* Faixa verde no topo do card (mesmo efeito que vendedores) */
.dashboard-panel--cobradores.dashboard-panel--modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, rgba(5, 150, 105, 0.08) 0%, rgba(16, 185, 129, 0.06) 35%, transparent 100%);
  pointer-events: none;
}

.dashboard-panel--cobradores.dashboard-panel--modern:hover {
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.08);
  border-color: rgba(5, 150, 105, 0.2);
}

.dashboard-panel--cobradores .dashboard-panel-head--with-icon {
  margin-bottom: 12px;
  gap: 8px;
}

.dashboard-panel--cobradores .dashboard-panel-head--with-icon .dashboard-panel-title {
  font-size: 17px;
  font-weight: 600;
  color: #1F2937;
}

.dashboard-panel--cobradores .dashboard-performance-chart--compact {
  padding: 0;
  gap: 0;
  min-width: 0;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.dashboard-panel--cobradores .dashboard-performance-chart--compact .dashboard-performance-row--cobrador {
  border-bottom: none;
  margin-bottom: 4px;
}

.dashboard-panel--cobradores .dashboard-performance-chart--compact .dashboard-performance-row--cobrador:last-child {
  margin-bottom: 0;
}

.dashboard-panel-icon--cobradores {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(5, 150, 105, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #047857;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.dashboard-panel-icon--cobradores::before {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='4' width='22' height='16' rx='2' ry='2'/%3E%3Cline x1='1' y1='10' x2='23' y2='10'/%3E%3Cpath d='M12 15h4'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 16px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='4' width='22' height='16' rx='2' ry='2'/%3E%3Cline x1='1' y1='10' x2='23' y2='10'/%3E%3Cpath d='M12 15h4'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: 16px;
}

/* Avatar wrap: base unificado para os dois cards */
.dashboard-panel--vendedores .dashboard-performance-avatar-wrap,
.dashboard-panel--cobradores .dashboard-performance-avatar-wrap {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  border-radius: 50%;
  padding: 2px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-panel--vendedores .dashboard-performance-avatar-wrap .dashboard-performance-avatar,
.dashboard-panel--cobradores .dashboard-performance-avatar-wrap .dashboard-performance-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Avatar vendedores: compacto, #F1F5F9, borda #E2E8F0 */
.dashboard-panel--vendedores .dashboard-performance-avatar-wrap {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 2px;
  background: #F1F5F9;
  border-color: #E2E8F0;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.dashboard-panel--vendedores .dashboard-performance-row--vendedor:hover .dashboard-performance-avatar-wrap {
  border-color: #cbd5e1;
  background: #e2e8f0;
}

.dashboard-panel--cobradores .dashboard-performance-avatar-wrap {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.12) 0%, rgba(5, 150, 105, 0.04) 100%);
  border-color: rgba(5, 150, 105, 0.22);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.dashboard-panel--cobradores .dashboard-performance-row--cobrador:hover .dashboard-performance-avatar-wrap {
  border-color: rgba(5, 150, 105, 0.4);
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.1) 0%, rgba(5, 150, 105, 0.03) 100%);
}

.dashboard-panel--cobradores .dashboard-performance-bar-wrap {
  height: 10px;
  border-radius: 999px;
  background: #E5E7EB;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.dashboard-panel--cobradores .dashboard-performance-bar {
  background: transparent;
  border-radius: 999px;
  overflow: hidden;
}

.dashboard-panel--cobradores .dashboard-performance-bar-fill--cobrador {
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  background: linear-gradient(90deg, #047857 0%, #10b981 100%);
  box-shadow: none;
}

.dashboard-panel--cobradores .dashboard-performance-bar-fill--cobrador.dashboard-performance-bar-fill--ok {
  background: linear-gradient(90deg, #065f46 0%, #059669 100%);
  box-shadow: none;
}

.dashboard-panel-head--with-icon {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.dashboard-panel-head--with-icon .dashboard-panel-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--brand-dark);
}

.dashboard-panel-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-panel-icon--vendedores {
  background: linear-gradient(135deg, rgba(0, 174, 239, 0.14) 0%, rgba(0, 174, 239, 0.06) 100%);
  color: var(--primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.dashboard-panel-icon--vendedores::before {
  content: "";
  width: 12px;
  height: 12px;
  background: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 12px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: 12px;
}

/* Linha unificada: 3 blocos (quem | progresso | resultado) */
.dashboard-panel--vendedores .dashboard-performance-row--vendedor,
.dashboard-panel--cobradores .dashboard-performance-row--cobrador {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(80px, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 8px 8px;
  margin: 0 -4px;
  border-radius: 10px;
  transition: background 0.2s var(--dash-ease), box-shadow 0.2s var(--dash-ease);
}

.dashboard-panel--vendedores .dashboard-performance-row--vendedor {
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  grid-template-areas: "who progress-result";
  gap: 4px 8px;
  min-height: 36px;
  padding: 6px 4px;
  overflow: hidden;
  min-width: 0;
  border-radius: 12px;
  margin: 0 2px;
  transition: background 0.4s ease, box-shadow 0.35s ease;
}

.dashboard-panel--vendedores .dashboard-performance-row--vendedor .performance-cell--who {
  grid-area: who;
  max-width: 120px;
  min-width: 0;
  position: relative;
  z-index: 2;
  overflow: visible;
}

.dashboard-panel--vendedores .dashboard-performance-row--vendedor .performance-cell-group--progress-result {
  grid-area: progress-result;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  max-width: 100%;
  justify-self: end;
}

.dashboard-panel--vendedores .dashboard-performance-row--vendedor .performance-cell-group--progress-result > .performance-cell--progress {
  min-width: 307px;
  flex-shrink: 0;
}

.dashboard-panel--vendedores .dashboard-performance-row--vendedor .performance-cell-group--progress-result > .performance-cell--result-inline {
  min-width: 0;
  flex-shrink: 1;
}

/* Cobradores: mesmo layout que vendedores (who | progress-result) */
.dashboard-panel--cobradores .dashboard-performance-row--cobrador {
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  grid-template-areas: "who progress-result";
  gap: 4px 8px;
  min-height: 36px;
  padding: 6px 4px;
  overflow: hidden;
  min-width: 0;
  border-radius: 12px;
  margin: 0 2px;
  transition: background 0.4s ease, box-shadow 0.35s ease;
}

.dashboard-panel--cobradores .dashboard-performance-row--cobrador .performance-cell--who {
  grid-area: who;
  max-width: 120px;
  min-width: 0;
  gap: 10px;
}

.dashboard-panel--cobradores .dashboard-performance-row--cobrador .performance-cell-group--progress-result {
  grid-area: progress-result;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  max-width: 100%;
  justify-self: end;
}

.dashboard-panel--cobradores .dashboard-performance-row--cobrador .performance-cell-group--progress-result > .performance-cell--progress {
  min-width: 307px;
  flex-shrink: 0;
}

.dashboard-panel--cobradores .dashboard-performance-row--cobrador .performance-cell-group--progress-result > .performance-cell--result {
  min-width: 0;
  flex-shrink: 1;
}

/* Cobradores: número + barra em linha (como vendedores) */
.dashboard-panel--cobradores .performance-cell--progress {
  flex-direction: row;
  align-items: center;
  gap: 6px;
}

.dashboard-panel--cobradores .performance-cell--progress .dashboard-performance-num--cobrador {
  flex-shrink: 0;
}

.dashboard-panel--cobradores .performance-cell--progress .dashboard-performance-bar-wrap {
  flex: 1 1 0;
  min-width: 80px;
}

.dashboard-panel--cobradores .dashboard-performance-row--cobrador .dashboard-performance-name {
  font-size: 13px;
  font-weight: 500;
  color: #1E293B;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-panel--cobradores .performance-cell--result {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
}

/* Card vendedores e cobradores: responsivo (mesmo estilo, adapta em telas menores) */
@media (max-width: 900px) {
  .dashboard-panel--vendedores.dashboard-panel--modern,
  .dashboard-panel--cobradores.dashboard-panel--modern {
    padding: 14px 16px;
  }
  .dashboard-panel--vendedores .dashboard-performance-row--vendedor .performance-cell-group--progress-result,
  .dashboard-panel--cobradores .dashboard-performance-row--cobrador .performance-cell-group--progress-result {
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
  }
  .dashboard-panel--vendedores .dashboard-performance-row--vendedor .performance-cell-group--progress-result > .performance-cell--progress,
  .dashboard-panel--cobradores .dashboard-performance-row--cobrador .performance-cell-group--progress-result > .performance-cell--progress {
    min-width: 220px;
  }
}

@media (max-width: 640px) {
  .dashboard-panel--vendedores.dashboard-panel--modern {
    padding: 12px 14px;
  }
  .dashboard-panel--vendedores .dashboard-performance-row--vendedor {
    gap: 4px 6px;
    padding: 6px 4px;
  }
  .dashboard-panel--vendedores .dashboard-performance-row--vendedor .performance-cell--who {
    max-width: 100px;
    gap: 8px;
  }
  .dashboard-panel--vendedores .dashboard-performance-row--vendedor .performance-cell-group--progress-result {
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
  }
  .dashboard-panel--vendedores .dashboard-performance-row--vendedor .performance-cell-group--progress-result > .performance-cell--progress {
    min-width: 140px;
    flex-shrink: 1;
    max-width: 100%;
  }
  .dashboard-panel--vendedores .dashboard-performance-row--vendedor .performance-cell-group--progress-result > .performance-cell--result-inline {
    flex: 1 1 auto;
    min-width: 120px;
  }
  .dashboard-panel--vendedores .performance-cell--progress .dashboard-performance-bar-wrap {
    min-width: 56px;
  }
  .dashboard-panel--vendedores .dashboard-performance-avatar-wrap {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    padding: 2px;
  }
  .dashboard-panel--vendedores .dashboard-performance-row--vendedor .dashboard-performance-name {
    font-size: 12px;
  }
  .dashboard-panel--vendedores .performance-cell--progress .dashboard-performance-num {
    font-size: 13px;
  }
  .dashboard-panel--vendedores .dashboard-performance-bar-wrap {
    height: 8px;
  }
}

@media (max-width: 480px) {
  .dashboard-panel--vendedores.dashboard-panel--modern,
  .dashboard-panel--cobradores.dashboard-panel--modern {
    padding: 10px 12px;
    border-radius: 14px;
  }
  .dashboard-panel--vendedores .dashboard-panel-head--with-icon .dashboard-panel-title,
  .dashboard-panel--cobradores .dashboard-panel-head--with-icon .dashboard-panel-title {
    font-size: 15px;
  }
  .dashboard-panel--vendedores .dashboard-panel-icon--vendedores {
    width: 28px;
    height: 28px;
  }
  .dashboard-panel--vendedores .dashboard-panel-icon--vendedores::before {
    width: 14px;
    height: 14px;
    mask-size: 14px;
    -webkit-mask-size: 14px;
  }
  .dashboard-panel--cobradores .dashboard-panel-icon--cobradores {
    width: 28px;
    height: 28px;
  }
  .dashboard-panel--cobradores .dashboard-panel-icon--cobradores::before {
    mask-size: 14px;
    -webkit-mask-size: 14px;
  }
  .dashboard-panel--vendedores .dashboard-performance-row--vendedor .performance-cell--who,
  .dashboard-panel--cobradores .dashboard-performance-row--cobrador .performance-cell--who {
    max-width: 88px;
    gap: 6px;
  }
  .dashboard-panel--vendedores .dashboard-performance-row--vendedor .performance-cell-group--progress-result,
  .dashboard-panel--cobradores .dashboard-performance-row--cobrador .performance-cell-group--progress-result {
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
    gap: 6px 8px;
    flex-wrap: wrap;
    align-items: center;
  }
  .dashboard-panel--vendedores .dashboard-performance-row--vendedor .performance-cell-group--progress-result > .performance-cell--progress,
  .dashboard-panel--cobradores .dashboard-performance-row--cobrador .performance-cell-group--progress-result > .performance-cell--progress {
    min-width: 0;
    flex: 1 1 160px;
    max-width: 100%;
  }
  .dashboard-panel--vendedores .dashboard-performance-row--vendedor .performance-cell-group--progress-result > .performance-cell--result-inline,
  .dashboard-panel--cobradores .dashboard-performance-row--cobrador .performance-cell-group--progress-result > .performance-cell--result {
    flex: 1 1 100px;
    min-width: 0;
  }
  .dashboard-panel--vendedores .performance-cell--progress .dashboard-performance-bar-wrap,
  .dashboard-panel--cobradores .performance-cell--progress .dashboard-performance-bar-wrap {
    min-width: 48px;
  }
  .dashboard-panel--vendedores .dashboard-performance-avatar-wrap,
  .dashboard-panel--cobradores .dashboard-performance-avatar-wrap {
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
  }
  .dashboard-panel--vendedores .dashboard-performance-row--vendedor .dashboard-performance-name,
  .dashboard-panel--cobradores .dashboard-performance-row--cobrador .dashboard-performance-name {
    font-size: 11px;
  }
  .dashboard-panel--vendedores .performance-result-line .dashboard-performance-pct,
  .dashboard-panel--vendedores .performance-result-line .performance-sep,
  .dashboard-panel--vendedores .performance-result-line .performance-fraction,
  .dashboard-panel--vendedores .performance-result-line .performance-value {
    font-size: 10px;
  }
}

/* 1º colocado: glow dourado suave, gradiente difuso que desvanece nas bordas (sem contorno duro); overflow visible para o troféu não ser cortado */
.dashboard-panel--vendedores .dashboard-performance-row--vendedor.dashboard-performance-row--top {
  background: linear-gradient(90deg, rgb(255 243 101 / 46%) 0%, rgba(250, 204, 21, 0.1) 43%, rgba(250, 204, 21, -0.9) 60%, transparent 85%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  overflow: visible;
}

.dashboard-panel--vendedores .dashboard-performance-row--vendedor.dashboard-performance-row--top .dashboard-performance-avatar-wrap {
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.25), 0 0 0 1px rgba(250, 204, 21, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

.dashboard-panel--vendedores .dashboard-performance-row--vendedor:hover {
  background: rgba(17, 114, 194, 0.035);
  box-shadow: 0 1px 4px rgba(17, 114, 194, 0.06);
}

.dashboard-panel--vendedores .dashboard-performance-row--vendedor.dashboard-performance-row--top:hover {
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.24) 0%, rgba(250, 204, 21, 0.12) 35%, rgba(250, 204, 21, 0.05) 65%, transparent 90%);
  box-shadow: 0 2px 8px rgba(250, 204, 21, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.dashboard-panel--cobradores .dashboard-performance-row--cobrador:hover {
  background: rgba(5, 150, 105, 0.04);
  box-shadow: 0 1px 4px rgba(5, 150, 105, 0.06);
}

/* Ícone troféu (1º colocado) */
.dashboard-panel--vendedores .dashboard-performance-avatar-wrap {
  position: relative;
  overflow: visible;
}

.dashboard-panel--vendedores .dashboard-performance-avatar-wrap .dashboard-performance-avatar {
  border-radius: 50%;
}

/* Troféu: ícone dourado (PNG), abaixo e à direita do avatar — sombra segue o contorno do PNG (drop-shadow) */
.performance-trophy {
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 26px;
  height: 25px;
  background-color: transparent;
  background-image: url(images/trophy.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border-radius: 50%;
  filter: drop-shadow(0 2px 2px rgba(250, 204, 25, 0.65));
  z-index: 10;
}

.performance-cell {
  min-width: 0;
}

.performance-cell--who {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.performance-cell--progress {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

/* Vendedores: número à esquerda, barra à direita (em linha) */
.dashboard-panel--vendedores .performance-cell--progress {
  flex-direction: row;
  align-items: center;
  gap: 6px;
}

.dashboard-panel--vendedores .performance-cell--progress .dashboard-performance-num {
  flex-shrink: 0;
}

.dashboard-panel--vendedores .performance-cell--progress .dashboard-performance-bar-wrap {
  flex: 1 1 0;
  min-width: 80px;
}

.performance-cell--progress .dashboard-performance-num {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
}

.dashboard-panel--vendedores .performance-cell--progress .dashboard-performance-num {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: #1172C2;
}

.performance-cell--result {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}

/* Resultado em uma linha: 58,3% · 7/12 · R$ 4.126 (card vendedores) */
.performance-cell--result-inline {
  flex-direction: row;
  justify-content: flex-end;
  overflow: hidden;
  min-width: 0;
}

.performance-cell--result-inline .performance-result-line {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performance-result-line {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  max-width: 100%;
  justify-content: flex-end;
}

/* Porcentagem: mesmo azul claro da barra, peso 500–600 */
.performance-result-line .dashboard-performance-pct {
  font-size: 12px;
  font-weight: 600;
  color: #1172C2;
  flex-shrink: 0;
}

.dashboard-panel--vendedores .performance-result-line .dashboard-performance-pct {
  color: #1172C2;
  font-weight: 600;
}

.performance-result-line .performance-sep {
  flex-shrink: 0;
}

.performance-sep {
  color: #94a3b8;
  font-weight: 400;
  font-size: 12px;
  margin: 0 4px;
}

/* Meta: cinza médio #64748B, regular; não encolhe para o valor R$ truncar primeiro */
.performance-result-line .performance-fraction {
  color: #64748B;
  font-weight: 400;
  font-size: 12px;
  margin-left: 0;
  flex-shrink: 0;
}

/* Valor R$: #475569, medium; encolhe e trunca com ellipsis para caber no card */
.performance-result-line .performance-value {
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  font-variant-numeric: tabular-nums;
  min-width: 0;
  flex: 1 1 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performance-meta {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.performance-meta .dashboard-performance-pct {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
}

.performance-fraction {
  margin-left: 2px;
}

.performance-value {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.dashboard-panel--cobradores .performance-meta .dashboard-performance-pct,
.dashboard-performance-pct--cobrador {
  color: #047857;
}



.dashboard-panel--vendedores .dashboard-performance-row--vendedor .dashboard-performance-name {
  font-size: 13px;
  font-weight: 500;
  color: #1E293B;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Barra: altura 10px, radius 999px, track #E5E7EB */
.dashboard-panel--vendedores .dashboard-performance-bar-wrap {
  height: 10px;
  border-radius: 999px;
  background: #E5E7EB;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.dashboard-panel--vendedores .dashboard-performance-bar {
  background: transparent;
  border-radius: 999px;
  overflow: hidden;
}

.dashboard-panel--vendedores .dashboard-performance-bar-fill {
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  background: linear-gradient(90deg, #1172C2 0%, #7DD3FC 100%);
  box-shadow: none;
  min-width: 0;
}

.dashboard-panel--vendedores .dashboard-performance-bar-fill--ok {
  background: linear-gradient(90deg, #059669 0%, #34d399 100%);
  box-shadow: none;
}

.dashboard-performance-check {
  display: inline-flex;
  color: var(--fluydon-green);
  font-weight: 700;
  margin-left: 1px;
}

.dashboard-panel--vendedores .dashboard-performance-chart,
.dashboard-panel--cobradores .dashboard-performance-chart {
  padding: 0;
}

.dashboard-panel-head {
  margin-bottom: 14px;
}

.dashboard-panel-head--compact {
  margin-bottom: 10px;
}

.dashboard-panel-head--compact .dashboard-panel-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.dashboard-panel-head .dashboard-panel-desc {
  margin: 4px 0 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.dashboard-performance-chart {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dashboard-performance-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 36px minmax(60px, 1.4fr) minmax(0, 100px);
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 8px 12px;
  margin: 0 -12px;
  border-radius: 10px;
  border-bottom: none;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.dashboard-performance-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.dashboard-performance-row:last-child {
  border-bottom: none;
}

.dashboard-performance-row:hover {
  background: linear-gradient(135deg, rgba(0, 174, 239, 0.04) 0%, rgba(0, 174, 239, 0.01) 100%);
  box-shadow: 0 1px 3px rgba(0, 174, 239, 0.06);
}

.dashboard-panel--cobradores .dashboard-performance-row:hover {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.05) 0%, rgba(5, 150, 105, 0.01) 100%);
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.08);
}

@media (max-width: 640px) {
  .dashboard-panel--cobradores.dashboard-panel--modern {
    padding: 12px 14px;
  }
  .dashboard-panel--cobradores .dashboard-performance-row--cobrador {
    gap: 4px 6px;
    padding: 6px 4px;
  }
  .dashboard-panel--cobradores .dashboard-performance-row--cobrador .performance-cell--who {
    max-width: 100px;
    gap: 8px;
  }
  .dashboard-panel--cobradores .dashboard-performance-row--cobrador .performance-cell-group--progress-result {
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
  }
  .dashboard-panel--cobradores .dashboard-performance-row--cobrador .performance-cell-group--progress-result > .performance-cell--progress {
    min-width: 140px;
    flex-shrink: 1;
    max-width: 100%;
  }
  .dashboard-panel--cobradores .dashboard-performance-row--cobrador .performance-cell-group--progress-result > .performance-cell--result {
    flex: 1 1 auto;
    min-width: 100px;
  }
  .dashboard-panel--cobradores .performance-cell--progress .dashboard-performance-bar-wrap {
    min-width: 56px;
  }
  .dashboard-panel--cobradores .dashboard-performance-avatar-wrap {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    padding: 2px;
  }
  .dashboard-panel--cobradores .dashboard-performance-row--cobrador .dashboard-performance-name {
    font-size: 12px;
  }
  .dashboard-panel--vendedores .dashboard-performance-avatar-wrap {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    padding: 2px;
  }
  .dashboard-panel--vendedores .dashboard-performance-avatar-wrap .dashboard-performance-avatar,
  .dashboard-panel--cobradores .dashboard-performance-avatar-wrap .dashboard-performance-avatar {
    width: 100%;
    height: 100%;
  }
  .dashboard-performance-row {
    grid-template-columns: 28px 1fr 32px 1fr;
    gap: 8px;
    padding: 8px 10px;
    margin: 0 -10px;
  }
  .dashboard-performance-bar-wrap { grid-column: 1 / -1; grid-row: 2; }
  .dashboard-performance-right { grid-column: 3 / -1; grid-row: 1; }
}

.dashboard-performance-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.dashboard-performance-row:hover .dashboard-performance-name {
  color: #0f172a;
}

.dashboard-performance-num {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--primary);
  transition: opacity 0.2s ease;
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .dashboard-performance-num {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .dashboard-performance-num--cobrador {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.dashboard-performance-num--cobrador {
  color: #047857;
}

.dashboard-performance-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: nowrap;
  min-width: 0;
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
}

.dashboard-performance-right .dashboard-performance-pct {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  color: var(--primary);
  transition: opacity 0.2s ease;
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .dashboard-performance-right .dashboard-performance-pct {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .dashboard-panel--cobradores .dashboard-performance-right .dashboard-performance-pct {
    background: linear-gradient(135deg, #10b981, #047857);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.dashboard-panel--cobradores .dashboard-performance-right .dashboard-performance-pct {
  color: #047857;
}

.dashboard-performance-extra {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
  font-weight: 500;
  opacity: 0.9;
  min-width: 0;
  flex: 1 1 0;
}

/* Barras */
.dashboard-performance-bar-wrap {
  min-width: 0;
  height: 10px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.08) 100%);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.dashboard-performance-bar {
  height: 100%;
  min-width: 6px;
  max-width: 100%;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(0, 174, 239, 0.12) 0%, rgba(0, 174, 239, 0.06) 100%);
  display: flex;
  align-items: stretch;
}

/* Barra de meta: largura fixa 100%, o fill indica % da meta */
.dashboard-performance-bar--meta {
  width: 100%;
}

.dashboard-performance-bar--cobrador {
  background: linear-gradient(180deg, rgba(5, 150, 105, 0.14) 0%, rgba(5, 150, 105, 0.06) 100%);
}

.dashboard-performance-bar-fill {
  background: linear-gradient(90deg, #0c8bd4 0%, #0ea5e9 50%, #38bdf8 100%);
  border-radius: 6px 0 0 6px;
  flex-shrink: 0;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.25);
}

.dashboard-performance-bar-fill--ok {
  background: linear-gradient(90deg, #047857 0%, #059669 50%, #10b981 100%);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.dashboard-performance-bar-fill--cobrador {
  background: linear-gradient(90deg, #047857 0%, #059669 50%, #10b981 100%);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.dashboard-performance-bar-fill--cobrador.dashboard-performance-bar-fill--ok {
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

.dashboard-pct-badge {
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.dashboard-pct-badge--ok {
  color: #047857;
}

.dashboard-pct-badge--conv {
  color: #047857;
}

.dashboard-pct-badge--valor {
  font-size: 11px;
  color: #047857;
}

.dashboard-pct-badge--na {
  color: var(--muted);
  font-weight: 500;
}

.dashboard-performance-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

.dashboard-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot--pagos {
  background: linear-gradient(135deg, #059669, #34e780);
}

.legend-dot--outros {
  background: rgba(0, 174, 239, 0.35);
}

.dashboard-panel-empty {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

/* Tabela */
.dashboard-table-wrap {
  margin-bottom: 0;
}

/* ========== Card de vendas do dashboard – compacto e moderno ========== */
.dashboard-sales-card {
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 174, 239, 0.04);
  overflow: visible;
  margin-bottom: 0;
}

.dashboard-sales-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  background: linear-gradient(180deg, #fafbfd 0%, #f5f7fa 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: var(--text);
  border-radius: 14px 14px 0 0;
  transition: background 0.2s var(--ease-smooth);
}

.dashboard-sales-summary:hover {
  background: linear-gradient(180deg, #f5f7fa 0%, #eef1f5 100%);
}

/* Contador – número em destaque + label */
.dashboard-sales-summary-count {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.dashboard-sales-summary-number {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.dashboard-sales-summary-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -0.01em;
}

/* Bloco à direita – CTA + seta fixos no fim */
.dashboard-sales-summary-right {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  flex-shrink: 0;
}

.dashboard-sales-summary-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, var(--primary) 0%, #0099d6 100%);
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 174, 239, 0.25);
  transition: background 0.2s var(--ease-smooth), box-shadow 0.2s var(--ease-smooth), transform 0.12s var(--ease-smooth);
}

.dashboard-sales-summary:hover .dashboard-sales-summary-cta {
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary) 100%);
  box-shadow: 0 2px 10px rgba(0, 174, 239, 0.35);
  transform: translateY(-0.5px);
}

.dashboard-sales-summary-arrow {
  color: rgba(255, 255, 255, 0.95);
  flex-shrink: 0;
  transition: transform 0.15s var(--ease-smooth);
}

.dashboard-sales-summary:hover .dashboard-sales-summary-arrow {
  color: #fff;
  transform: translateX(2px);
}

.dashboard-sales-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.dashboard-sales-card .table-wrapper {
  border-radius: 0;
  border: none;
}

.dashboard-sales-card .sales-table thead th {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.dashboard-sales-card .sales-table tbody td {
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  vertical-align: middle;
}

.dashboard-sales-card .sales-table tbody tr:nth-child(even) td {
  background: #fafbfd;
}

.dashboard-sales-card .sales-table tbody tr:hover td {
  background: rgba(0, 174, 239, 0.035);
}

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

.dashboard-sales-card .sales-table .table-profile-cell {
  gap: 10px;
}

.dashboard-sales-card .sales-table .table-profile-avatar {
  width: 32px;
  height: 32px;
  font-size: 13px;
}

.dashboard-sales-card .sales-table .table-profile-name {
  font-size: 12px;
  font-weight: 500;
}

.dashboard-sales-card .sales-table .cell-main {
  font-size: 12px;
  font-weight: 500;
}

.dashboard-sales-card .sales-table .cell-sub {
  font-size: 11px;
  color: var(--muted);
}

.dashboard-sales-card .sales-table code {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.05);
  font-weight: 500;
}

.dashboard-sales-card .sales-table th.th-with-filter {
  vertical-align: middle;
  white-space: nowrap;
}

.dashboard-sales-card .sales-table th.th-with-filter .th-filter-head {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dashboard-sales-card .sales-table th.th-with-filter .th-label {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dashboard-sales-card .sales-table .status-badge {
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 6px;
}

.dashboard-sales-card .dashboard-empty {
  padding: 20px 16px !important;
  font-size: 12px;
  color: var(--muted);
}

.dashboard-sales-card .dashboard-empty a {
  color: var(--primary);
  font-weight: 600;
}

.dashboard-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dashboard-table-header--link {
  padding: 10px 14px;
  margin-bottom: 0;
  background: var(--surface);
  border-radius: 12px 12px 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s var(--ease-smooth), border-color 0.15s var(--ease-smooth);
}

.dashboard-table-header--link:hover {
  background: rgba(0, 174, 239, 0.05);
  border-color: rgba(0, 174, 239, 0.2);
}

.dashboard-table-header-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.dashboard-table-header-cta {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

.dashboard-table-header-arrow {
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.15s var(--ease-smooth), color 0.15s var(--ease-smooth);
}

.dashboard-table-header--link:hover .dashboard-table-header-arrow {
  color: var(--primary);
  transform: translateX(3px);
}

.dashboard-table-card {
  background: var(--surface);
  border-radius: var(--dash-radius);
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: box-shadow 0.25s var(--dash-ease);
}

.dashboard-table-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.dashboard-table-card .table-wrapper {
  border-radius: 0;
  border: none;
}

.dashboard-table-card .sales-table th,
.dashboard-table-card .sales-table td {
  padding: 10px 12px;
  font-size: 12px;
}

.dashboard-table-filters-form {
  /* form envolve table-wrapper; sem estilo de bloco para não quebrar layout */
}

.dashboard-table-card .sales-table th.th-with-filter {
  vertical-align: middle;
  white-space: nowrap;
}

.dashboard-table-card .sales-table th.th-with-filter .th-filter-head {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}

.dashboard-table-card .sales-table th.th-with-filter .th-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin: 0;
}

.dashboard-th-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dashboard-th-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 8px;
}

.dashboard-th-dropdown-trigger:focus {
  outline: none;
}

.dashboard-th-dropdown-trigger:focus-visible .dashboard-th-dropdown-icon {
  box-shadow: 0 0 0 2px rgba(0, 174, 239, 0.3);
}

.dashboard-th-dropdown-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  color: var(--primary);
  background: rgba(0, 174, 239, 0.1);
  border: 1px solid rgba(0, 174, 239, 0.2);
  transition: background 0.15s var(--ease-smooth), border-color 0.15s var(--ease-smooth), color 0.15s var(--ease-smooth);
}

.dashboard-th-dropdown:hover .dashboard-th-dropdown-icon {
  background: rgba(0, 174, 239, 0.15);
  border-color: rgba(0, 174, 239, 0.3);
  color: var(--primary-light);
}

.dashboard-th-dropdown.is-active .dashboard-th-dropdown-icon {
  background: rgba(0, 174, 239, 0.18);
  border-color: var(--primary);
  color: var(--primary);
}

.dashboard-sales-card .dashboard-th-dropdown-icon svg {
  width: 12px;
  height: 12px;
}

/* Painel do dropdown – conforme referência: cantos arredondados, fundo branco, sombra suave */
.dashboard-th-dropdown-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 6px;
  min-width: 130px;
  max-width: 220px;
  max-height: 280px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
  z-index: 50;
  padding: 8px 0;
}

.dashboard-th-dropdown-panel[hidden] {
  display: none !important;
}

.dashboard-th-dropdown-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #1e293b;
  text-decoration: none;
  transition: background 0.12s var(--ease-smooth), color 0.12s var(--ease-smooth);
  position: relative;
}

.dashboard-th-dropdown-option.is-selected {
  padding-right: 32px;
}

.dashboard-th-dropdown-option:hover {
  background: rgba(0, 174, 239, 0.08);
  color: var(--primary);
}

/* Checkbox à esquerda: quadrado outline (não selecionado) ou azul com ✓ (selecionado) */
.dashboard-th-dropdown-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 5px;
  border: 1.5px solid #cbd5e1;
  background: transparent;
  font-size: 11px;
  color: transparent;
  transition: background 0.15s var(--ease-smooth), border-color 0.15s var(--ease-smooth), color 0.15s var(--ease-smooth);
}

.dashboard-th-dropdown-option.is-selected .dashboard-th-dropdown-check {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Checkmark à direita na opção "Todas" (is-selected) */
.dashboard-th-dropdown-option.is-selected::after {
  content: "✓";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}

.dashboard-empty {
  text-align: center;
  padding: 28px 20px !important;
  color: var(--muted);
  font-size: 13px;
}

.dashboard-empty a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.dashboard-empty a:hover {
  text-decoration: underline;
}

.dashboard-link-cell {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, var(--primary) 0%, #0099d6 100%);
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 174, 239, 0.25);
  transition: background 0.2s var(--ease-smooth), box-shadow 0.2s var(--ease-smooth), transform 0.12s var(--ease-smooth);
}

.dashboard-link-cell:hover {
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary) 100%);
  box-shadow: 0 2px 6px rgba(0, 174, 239, 0.35);
  transform: translateY(-0.5px);
}

.dashboard-link-cell:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== Acompanhamento de pedidos ========== */
.acompanhamento {
  max-width: 100%;
}
.acompanhamento-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.acompanhamento-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.acompanhamento-title { margin: 0; font-size: 22px; font-weight: 700; color: var(--text); }
.acompanhamento-subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.acompanhamento-subtitle strong { color: var(--primary); }
.acompanhamento-intro {
  margin: 8px 0 0 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.45;
}
.acompanhamento-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 4px;
  margin-top: 12px;
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 13px;
}
.acompanhamento-flow-label {
  font-weight: 600;
  color: var(--muted);
  margin-right: 4px;
}
.acompanhamento-flow-step {
  color: var(--text);
}
.acompanhamento-flow-arrow {
  color: var(--muted);
  font-weight: 600;
}
.acompanhamento-period-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.acompanhamento-period-form {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.acompanhamento-period-form input[type="date"] {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
}
.acompanhamento-cards {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 20px;
}
.acompanhamento-cards > .acompanhamento-card {
  flex: 1 1 0;
  min-width: 100px;
  padding: 14px 16px;
  gap: 6px;
  justify-content: center;
  min-height: 0;
}
.acompanhamento-cards > .acompanhamento-card .acompanhamento-card-num {
  font-size: 26px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.acompanhamento-cards > .acompanhamento-card .acompanhamento-card-titulo {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
}
.acompanhamento-cards-compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0.4 0 auto;
  margin-left: auto;
}
.acompanhamento-cards-compact .acompanhamento-card {
  padding: 10px 12px;
  gap: 4px;
  flex: 0 0 auto;
}
.acompanhamento-card--compact .acompanhamento-card-titulo { font-size: 12px; font-weight: 600; }
.acompanhamento-card--compact .acompanhamento-card-num { font-size: 20px; line-height: 1.15; font-weight: 700; }
.acompanhamento-card-num-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.acompanhamento-card-alerta {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 600;
  color: #b45309;
  background: rgba(217, 119, 6, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1.2;
}
@media (max-width: 768px) {
  .acompanhamento-cards > .acompanhamento-card { flex: 1 1 calc(50% - 12px); min-width: 120px; }
  .acompanhamento-cards-compact { margin-left: 0; }
}
.acompanhamento-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s var(--ease-smooth), box-shadow 0.2s var(--ease-smooth), transform 0.15s var(--ease-smooth);
}
.acompanhamento-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 174, 239, 0.12);
  transform: translateY(-2px);
}
.acompanhamento-card.active {
  border-color: var(--primary);
  background: rgba(0, 174, 239, 0.06);
  box-shadow: 0 0 0 1px var(--primary);
}
.acompanhamento-card-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}
.acompanhamento-card-titulo {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.acompanhamento-card-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}
/* Cores laterais: laranja = aguardando | verde = concluído | azul = em trânsito | cinza = neutro */
.acompanhamento-card--aguardando { border-left: 4px solid #d97706; } /* pendente pagamento */
.acompanhamento-card--ja-cobrado { border-left: 4px solid #059669; } /* concluído - já cobrou */
.acompanhamento-card--retirada { border-left: 4px solid #f59e0b; } /* aguardando retirada na agência */
.acompanhamento-card--pago { border-left: 4px solid #22c55e; } /* concluído - pago */
.acompanhamento-card--caminho { border-left: 4px solid #0ea5e9; } /* em trânsito */
.acompanhamento-card--todas { border-left: 4px solid #64748b; } /* neutro - visão geral */
.acompanhamento-card--cobrar { border-left: 4px solid #d97706; } /* legado */
.acompanhamento-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.acompanhamento-bar .search-form { display: flex; gap: 8px; flex: 1; min-width: 200px; max-width: 360px; }
.acompanhamento-bar input[type="search"] { flex: 1; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; }
.acompanhamento-bar .search-form button { padding: 8px 14px; background: var(--primary); color: #fff; border: none; border-radius: 8px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.acompanhamento-vista { display: flex; align-items: center; gap: 4px; }
.acompanhamento-vista .filter-btn { padding: 6px 12px; font-size: 13px; }
.acompanhamento-finos { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin-left: auto; }
.acompanhamento-finos label { margin: 0; }
.acompanhamento-finos select { padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; background: var(--surface); }
.acompanhamento-conteudo-title {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.acompanhamento-conteudo-title span { color: var(--muted); font-weight: 500; }
.acompanhamento-cobrado-sim { color: var(--fluydon-green, #34e780); font-weight: 500; }
.acompanhamento-cobrado-nao { color: var(--muted); }
.acompanhamento-cobrado-check {
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  color: #94a3b8;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.acompanhamento-cobrado-check:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 174, 239, 0.06);
  box-shadow: 0 2px 6px rgba(0, 174, 239, 0.2);
  transform: scale(1.08);
}
.acompanhamento-cobrado-desmarcar {
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.15), rgba(5, 150, 105, 0.08));
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  color: #059669;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.15);
}
.acompanhamento-cobrado-desmarcar:hover {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.12), rgba(220, 38, 38, 0.06));
  color: #dc2626;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.2);
  transform: scale(1.08);
}
.acompanhamento-note {
  margin: -4px 0 12px 0;
  font-size: 13px;
  color: var(--muted);
}
.acompanhamento-conteudo { margin-top: 0; }
.acompanhamento .table-wrapper { margin: 0; }

/* Wrapper e zonas: positivos vs negativos (PLANEJAMENTO_KANBAN) */
.acompanhamento-kanban-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.acompanhamento-kanban-zona {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.acompanhamento-kanban-zona-titulo {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}
.acompanhamento-kanban-zona--positivos .acompanhamento-kanban-zona-titulo { color: var(--primary); }
.acompanhamento-kanban-zona--negativos .acompanhamento-kanban-zona-titulo { color: var(--status-cancelled, #dc2626); }

/* Kanban: colunas dividem o espaço igualmente, ocupando todo o container */
.acompanhamento-kanban-scroll {
  width: 100%;
  padding-bottom: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.acompanhamento-kanban {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  align-items: stretch;
  width: 100%;
}
.acompanhamento-kanban--compacto {
  gap: 0.75rem;
}
.acompanhamento-kanban-col {
  flex: 1 1 0;
  min-width: 160px;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  container-type: inline-size;
  container-name: kanban-col;
}
.acompanhamento-kanban-col > h4 {
  flex-shrink: 0;
}
.acompanhamento-kanban-col-cards {
  flex: 1 1 auto;
  overflow-y: auto;
  max-height: 65vh;
  margin: 0 -4px 0 0;
  padding-right: 4px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  align-content: start;
}
@container kanban-col (min-width: 260px) {
  .acompanhamento-kanban-col-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
.acompanhamento-kanban-col h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}
.acompanhamento-kanban-col h4 .n { font-weight: 400; color: var(--text); }
.acompanhamento-kanban-card {
  position: relative;
  display: block;
  width: 100%;
  min-height: 88px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  padding-right: 2rem;
  font-size: 0.8125rem;
  transition: border-color 0.15s, background 0.15s;
}
.acompanhamento-kanban-card:hover {
  border-color: var(--primary);
  background: rgba(0, 174, 239, 0.04);
}
.kanban-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.kanban-card-cobrado-form {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  margin: 0;
  z-index: 2;
}
.kanban-card-cobrado-btn {
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  color: #94a3b8;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.kanban-card-cobrado-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 174, 239, 0.06);
  box-shadow: 0 2px 6px rgba(0, 174, 239, 0.2);
  transform: scale(1.08);
}
.kanban-card-desmarcar-btn {
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.15), rgba(5, 150, 105, 0.08));
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  color: #059669;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.15);
}
.kanban-card-desmarcar-btn:hover {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.12), rgba(220, 38, 38, 0.06));
  color: #dc2626;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.2);
  transform: scale(1.08);
}
.acompanhamento-kanban-card .nome { font-weight: 500; display: block; }
.acompanhamento-kanban-card-tel {
  display: block;
  font-size: 0.6875rem;
  color: var(--muted);
  opacity: 0.75;
  margin-top: 1px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.acompanhamento-kanban-card .valor { color: var(--muted); font-size: 0.75rem; margin-top: 2px; display: block; }
.acompanhamento-kanban-card-pagamento {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 4px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #f1f5f9;
}
.acompanhamento-kanban-card-cobrado {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--status-delivered, #059669);
  margin-top: 4px;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(5, 150, 105, 0.12);
}
.acompanhamento-obs-indicator {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #7c3aed;
  margin-top: 4px;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(124, 58, 237, 0.12);
}
.acompanhamento-kanban-card .acompanhamento-obs-indicator {
  margin-left: 0;
}
.acompanhamento-cell-obs {
  text-align: center;
  width: 2rem;
}
.acompanhamento-th-obs {
  width: 2rem;
  text-align: center;
}
.acompanhamento-kanban-card .status-badge { margin-top: 4px; display: inline-block; }
.acompanhamento-kanban-card .fluydon-badge { margin-top: 4px; display: inline-block; }
.acompanhamento .pagination { margin-top: 16px; }

/* Popup nova venda (tempo real) */
.fluydon-venda-popup {
  position: fixed;
  bottom: 20px;
  left: calc(var(--sidebar) + 20px);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #00AEEF 0%, #00a0d8 100%);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 174, 239, 0.4);
  font: 600 14px/1.3 "DM Sans", system-ui, sans-serif;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth), left 0.25s var(--ease-smooth);
  pointer-events: none;
}
.sidebar-collapsed .fluydon-venda-popup {
  left: calc(var(--sidebar-collapsed) + 20px);
}
.fluydon-venda-popup--visible {
  opacity: 1;
  transform: translateY(0);
}
.fluydon-venda-popup-icon {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Animação de entrada para nova venda em tempo real */
.fluydon-venda-row-nova {
  animation: fluydon-venda-row-entrada 0.8s var(--ease-smooth) forwards;
}
@keyframes fluydon-venda-row-entrada {
  0% {
    opacity: 0;
    background-color: rgba(0, 174, 239, 0.15);
    transform: translateY(-8px);
  }
  60% {
    background-color: rgba(0, 174, 239, 0.08);
  }
  100% {
    opacity: 1;
    background-color: transparent;
    transform: translateY(0);
  }
}

/* Animação de atualização do badge de status em tempo real */
.fluydon-status-updated--anim {
  animation: fluydon-status-badge-update 0.5s var(--ease-smooth) forwards;
}
@keyframes fluydon-status-badge-update {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 174, 239, 0.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(0, 174, 239, 0.2);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 174, 239, 0);
    transform: scale(1);
  }
}

/* Animação de entrada do vendedor na primeira venda do dia */
.fluydon-vendedor-first-appear--anim {
  animation: fluydon-vendedor-first-appear 0.6s var(--ease-smooth) forwards;
}
@keyframes fluydon-vendedor-first-appear {
  0% {
    opacity: 0;
    transform: translateY(-12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
