/* ========================================================
   MÓDULO DE METAS & DESEMPENHO COMERCIAL - BEZERRA IRRIGAÇÕES
   Estilo Dark Glassmorphism Premium
   ======================================================== */

#view-targets {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.targets-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Header & Barra Superior */
.targets-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background: rgba(17, 24, 40, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 8px 32px -4px rgba(0, 0, 0, 0.35);
}

.targets-header-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.targets-main-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.5px;
}

.targets-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(41, 182, 246, 0.1));
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: #00e5ff;
}

.targets-subtitle {
  font-size: 13px;
  color: var(--text-secondary, #94a3b8);
}

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

/* Botões do Módulo */
.btn-targets-config {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  padding: 9px 16px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-targets-config:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 229, 255, 0.4);
  color: #00e5ff;
  transform: translateY(-1px);
}

.btn-targets-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-targets-refresh:hover {
  color: #00e5ff;
  border-color: rgba(0, 229, 255, 0.4);
  transform: rotate(45deg);
}

/* ========================================================
   1. GRID DE KPIS SUPERIORES
   ======================================================== */
.targets-kpis-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.targets-kpi-card {
  background: rgba(17, 24, 40, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  min-width: 0;
  box-sizing: border-box;
}

.targets-kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.45);
}

.targets-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.targets-kpi-card.highlight-target::before {
  background: linear-gradient(90deg, #00e5ff, #29b6f6);
}

.targets-kpi-card.highlight-rate::before {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.targets-kpi-card.highlight-proj::before {
  background: linear-gradient(90deg, #10b981, #34d399);
}

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

.targets-kpi-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary, #94a3b8);
}

.targets-kpi-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
}

.targets-kpi-badge.cyan {
  background: rgba(0, 229, 255, 0.15);
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.targets-kpi-badge.gold {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.targets-kpi-badge.green {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.targets-kpi-main-val {
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.targets-kpi-meta-sub {
  font-size: 12px;
  color: var(--text-secondary, #94a3b8);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.targets-kpi-meta-sub strong {
  color: #e2e8f0;
}

/* Barra de Progresso do Card */
.targets-progress-wrapper {
  margin-top: 8px;
}

.targets-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 6px;
}

.targets-progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.targets-progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #00e5ff, #29b6f6);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.targets-progress-fill.gold {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}

.targets-progress-fill.green {
  background: linear-gradient(90deg, #10b981, #34d399);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

/* Detalhes de Rodapé do Card */
.targets-kpi-footer-items {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
  margin-top: 12px;
  font-size: 11px;
  color: #94a3b8;
}

.targets-kpi-footer-items strong {
  color: #f1f5f9;
  font-weight: 700;
}

/* ========================================================
   2. FAIXA DE NÍVEIS ESCALONADOS (MÍNIMA, OURO, SUPER META)
   ======================================================== */
.targets-tiers-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.tier-card {
  background: rgba(17, 24, 40, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  min-width: 0;
  box-sizing: border-box;
  cursor: pointer;
  user-select: none;
}

.tier-card:hover {
  background: rgba(17, 24, 40, 0.85);
  border-color: rgba(0, 229, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.tier-card.selected-active {
  border-color: #00e5ff !important;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.12) 0%, rgba(17, 24, 40, 0.9) 100%) !important;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.25) !important;
  transform: translateY(-2px);
}

.tier-card.selected-active::after {
  content: 'ATIVO NO SEMANAL 👁️';
  position: absolute;
  top: 5px;
  right: 12px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

.tier-card.tier-hit {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.06);
}

.tier-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tier-medal {
  font-size: 26px;
  line-height: 1;
}

.tier-title-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tier-name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}


.tier-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.tier-val {
  font-size: 16px;
  font-weight: 800;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
}

.tier-pct {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}

.tier-pct.hit {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.tier-pct.pending {
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
}

/* ========================================================
   3. SEÇÃO PRINCIPAL: EVOLUÇÃO GRÁFICA & TABELA DA EQUIPE
   ======================================================== */
.targets-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* Gráfico de Evolução Acumulada */
.targets-chart-panel {
  background: rgba(17, 24, 40, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 8px 32px -4px rgba(0, 0, 0, 0.35);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.targets-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.targets-panel-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.targets-panel-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: #94a3b8;
}

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

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-dot.cyan {
  background: #00e5ff;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
}

.legend-dot.gold-dashed {
  background: #f59e0b;
  border-radius: 2px;
  width: 14px;
  height: 3px;
}

.targets-chart-container {
  height: 260px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  position: relative;
}

#targets-timeline-chart {
  width: 100% !important;
  max-width: 100%;
  height: 260px !important;
  display: block;
}

/* Painel da Tabela de Vendedores */
.targets-table-panel {
  background: rgba(17, 24, 40, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 8px 32px -4px rgba(0, 0, 0, 0.35);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.targets-table-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.targets-search-box {
  position: relative;
  min-width: 260px;
}

.targets-search-input {
  width: 100%;
  background: rgba(14, 21, 36, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 9px 14px 9px 38px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
}

.targets-search-input:focus {
  border-color: #00e5ff;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.targets-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}

.targets-filters-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.targets-filter-select {
  background: rgba(14, 21, 36, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  padding: 8px 12px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  outline: none;
}

/* ========================================================
   4. TABELA DE VENDEDORES (ESTILO GLASSMORPHISM)
   ======================================================== */
.targets-table-wrapper {
  overflow-x: auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.targets-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.targets-table th {
  background: rgba(14, 21, 36, 0.95);
  color: var(--text-secondary, #94a3b8);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.targets-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  white-space: nowrap;
  vertical-align: middle;
}

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

.targets-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Posição no Ranking */
.ranking-pos-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
}

.ranking-pos-badge.gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.ranking-pos-badge.silver {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  color: #ffffff;
}

.ranking-pos-badge.bronze {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff;
}

/* Coluna Vendedor */
.seller-identity-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.seller-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: #00e5ff;
}

.seller-names-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.seller-name {
  font-weight: 700;
  color: #ffffff;
}

.seller-store-tag {
  font-size: 10px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Barra de Progresso na Linha da Tabela */
.table-progress-cell {
  min-width: 150px;
}

.table-progress-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 5px;
}

.table-progress-head span {
  font-variant-numeric: tabular-nums;
}

.table-progress-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.table-progress-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.4s ease;
}

.table-progress-fill.superado {
  background: linear-gradient(90deg, #10b981, #059669);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.table-progress-fill.em_dia {
  background: linear-gradient(90deg, #00e5ff, #0284c7);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

.table-progress-fill.atencao {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.table-progress-fill.em_risco {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

/* Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
}

.status-pill.superado {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-pill.em_dia {
  background: rgba(0, 229, 255, 0.15);
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.status-pill.atencao {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-pill.em_risco {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Valores em Destaque */
.money-cell {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
}

.money-sub {
  font-size: 11px;
  color: #94a3b8;
  display: block;
}

/* ========================================================
   5. MODAL DE CONFIGURAÇÃO DE METAS (GESTÃO)
   ======================================================== */
.targets-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 7, 13, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.targets-modal-box {
  background: #111828;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}

.targets-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.targets-modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.targets-modal-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
}

.targets-modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group-targets {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group-targets label {
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
}

.targets-input {
  background: #0e1524;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.targets-input:focus {
  border-color: #00e5ff;
}

.targets-modal-footer {
  padding: 18px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-modal-cancel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.btn-modal-save {
  background: linear-gradient(135deg, #00e5ff, #0284c7);
  border: none;
  color: #ffffff;
  padding: 9px 20px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

/* Ações e Distribuição Semanal no Modal */
.btn-use-suggested {
  background: none;
  border: none;
  color: #00e5ff;
  font-size: 11px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: color 0.15s ease;
}
.btn-use-suggested:hover {
  color: #38bdf8;
}

.modal-dist-box {
  background: rgba(14, 21, 36, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-dist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-dist-header strong {
  font-size: 12.5px;
  font-weight: 700;
  color: #e2e8f0;
}

.btn-split-equally {
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  color: #00e5ff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-split-equally:hover {
  background: rgba(0, 229, 255, 0.2);
  border-color: #00e5ff;
}

.target-weeks-pct-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
  gap: 10px;
}

.target-week-pct-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.target-week-pct-dates {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
  text-align: center;
}

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

.target-week-input-wrap .week-pct-input {
  width: 100%;
  padding: 6px 24px 6px 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  border-radius: 6px;
  background: #090e17;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.target-week-input-wrap .week-pct-input:focus {
  border-color: #00e5ff;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.2);
}

.target-week-input-wrap .pct-symbol {
  position: absolute;
  right: 8px;
  font-size: 11px;
  color: #64748b;
  pointer-events: none;
}

.target-weeks-total-badge {
  font-size: 11.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  align-self: flex-start;
}
.target-weeks-total-badge.valid {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.target-weeks-total-badge.invalid {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

/* Responsividade */
@media (max-width: 1200px) {
  .targets-kpis-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .targets-tiers-strip {
    grid-template-columns: 1fr;
  }
  .targets-kpis-grid {
    grid-template-columns: 1fr;
  }
  .targets-panel-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Linha de Vendedor Selecionado no Filtro */
.targets-table tr.selected-seller-row td {
  background: rgba(0, 229, 255, 0.08) !important;
  border-bottom: 1px solid rgba(0, 229, 255, 0.25) !important;
}
.targets-table tr.selected-seller-row td:first-child {
  border-left: 3px solid #00e5ff;
}

/* ========================================================
   5. VISÃO SIMPLIFICADA: DIFERENÇA PARA METAS (REFERÊNCIA)
   ======================================================== */
.targets-view-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(14, 21, 36, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}

.btn-toggle-view {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-toggle-view:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.btn-toggle-view.active {
  background: rgba(0, 229, 255, 0.15);
  color: #00e5ff;
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.targets-table th.text-right,
.targets-table td.text-right {
  text-align: right;
}

.targets-table th.text-center,
.targets-table td.text-center {
  text-align: center;
}

.diff-realizado {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  display: block;
}

.diff-pedidos-sub {
  font-size: 11px;
  color: #64748b;
  display: block;
  margin-top: 2px;
}

.diff-amount {
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.diff-amount.positive {
  color: #10b981;
}

.diff-amount.negative {
  color: #f43f5e;
}

.diff-status {
  font-size: 10.5px;
  font-weight: 500;
  margin-top: 3px;
}

.diff-status.positive {
  color: rgba(16, 185, 129, 0.8);
}

.diff-status.negative {
  color: rgba(244, 63, 94, 0.8);
}

.diff-quota-target {
  font-size: 10.5px;
  color: #94a3b8;
  font-weight: 500;
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
  opacity: 0.9;
}

.diff-header-store-val {
  font-size: 10.5px;
  font-weight: 500;
  color: #00e5ff;
  text-transform: none;
  margin-top: 2px;
  opacity: 0.85;
}

/* Badges de Conquista / Maior Nível Batido */
.badge-achievement {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-achievement.gold {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.badge-achievement.silver {
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
}

.badge-achievement.bronze {
  background: rgba(217, 119, 6, 0.15);
  border: 1px solid rgba(217, 119, 6, 0.35);
  color: #f59e0b;
}

.badge-achievement.pending {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

/* ============================================================================
   ACOMPANHAMENTO SEMANAL DE METAS (CARDS & TABELA)
   ============================================================================ */
.targets-weeks-section {
  background: #0b1120;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

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

.targets-weeks-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.targets-weeks-badge {
  font-size: 11px;
  font-weight: 600;
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  padding: 3px 10px;
  border-radius: 12px;
}

.targets-weeks-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.targets-weeks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.week-card {
  background: rgba(14, 21, 36, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.week-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.week-card.status-atual {
  border-color: rgba(0, 229, 255, 0.4);
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.06) 0%, rgba(14, 21, 36, 0.95) 100%);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.12);
}

.week-card.status-encerrada.hit {
  border-color: rgba(16, 185, 129, 0.35);
}

.week-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.week-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.week-card-dates {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

.week-card-status-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.week-card-status-badge.encerrada-hit {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.week-card-status-badge.encerrada-miss {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.week-card-status-badge.atual {
  background: rgba(0, 229, 255, 0.15);
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.week-card-status-badge.futura {
  background: rgba(255, 255, 255, 0.05);
  color: #64748b;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.week-card-values {
  margin: 2px 0;
}

.week-card-realizado {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.week-card-meta {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.week-progress-bar-bg {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
}

.week-progress-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.week-progress-bar-fill.hit {
  background: #10b981;
}

.week-progress-bar-fill.atual {
  background: #00e5ff;
}

.week-progress-bar-fill.miss {
  background: #f59e0b;
}

.week-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  margin-top: 2px;
}

/* Células da Tabela de Vendedores em Modo Semanal */
.cell-week-realizado {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.cell-week-diff {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cell-week-diff.positive {
  color: #10b981;
}

.cell-week-diff.negative {
  color: #f43f5e;
}

.cell-week-cota {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 2px;
}

/* ========================================================
   NOVO: ACOMPANHAMENTO SEMANAL COM BLOCOS DIÁRIOS
   ======================================================== */
.targets-week-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding: 4px 2px 8px 2px;
}

.targets-week-tab-btn {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #94a3b8;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.targets-week-tab-btn:hover {
  background: rgba(30, 41, 59, 0.85);
  color: #ffffff;
  border-color: rgba(0, 229, 255, 0.4);
}

.targets-week-tab-btn.active {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.18) 0%, rgba(2, 132, 199, 0.25) 100%);
  border-color: #00e5ff;
  color: #00e5ff;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.25);
}

.targets-week-card-featured {
  background: rgba(14, 21, 36, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.targets-week-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.targets-week-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.targets-week-badge-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.targets-week-badge-pill.hit {
  background: rgba(16, 185, 129, 0.18);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.targets-week-badge-pill.atual {
  background: rgba(0, 229, 255, 0.15);
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.35);
}

.targets-week-badge-pill.miss {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.targets-week-badge-pill.futura {
  background: rgba(255, 255, 255, 0.05);
  color: #64748b;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 3 KPIs da Semana */
.targets-week-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 18px;
}

.targets-week-metric-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.targets-week-metric-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.targets-week-metric-val {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.targets-week-metric-val.realizado {
  color: #00e5ff;
}

.targets-week-metric-val.diff.positive {
  color: #10b981;
}

.targets-week-metric-val.diff.negative {
  color: #ef4444;
}

/* Barra/Linha Divisória Ciano */
.targets-week-progress-line {
  width: 100%;
  height: 3px;
  background: #00e5ff;
  border-radius: 99px;
  margin: 18px 0 24px 0;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.45);
}

/* Grade dos 6 Dias (Seg a Sáb) */
.targets-week-days-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

@media (max-width: 900px) {
  .targets-week-days-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .targets-week-metrics-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .targets-week-days-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.targets-day-block {
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s ease;
  min-width: 0;
  box-sizing: border-box;
}

.targets-day-block:hover {
  transform: translateY(-2px);
}

/* Dia que bateu a meta (Verde) */
.targets-day-block.hit {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.5);
}

.targets-day-block.hit .targets-day-realizado {
  color: #10b981;
}

/* Dia que não bateu a meta (Vermelho) */
.targets-day-block.miss {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.5);
}

.targets-day-block.miss .targets-day-realizado {
  color: #ef4444;
}

/* Dia futuro (Neutro) */
.targets-day-block.future {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.targets-day-block.future .targets-day-realizado {
  color: #64748b;
}

.targets-day-dow {
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
}

.targets-day-date {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 2px;
}

.targets-day-meta {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.targets-day-realizado {
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ========================================================
   ESTILOS DA TABELA SIMPLIFICADA (VENDAS/MÊS — DIFERENÇA)
   ======================================================== */
.seller-identity-clean {
  display: flex;
  align-items: center;
  gap: 12px;
}

.seller-avatar-clean {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a, #0284c7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: #ffffff;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.seller-name-clean {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.val-realizado-clean {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.val-diff-clean {
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.val-diff-clean.positive {
  color: #10b981;
}

.val-diff-clean.negative {
  color: #ef4444;
}

/* ========================================================
   FAIXA DE ALERTA DE META AJUSTADA & TOGGLE SWITCH
   ======================================================== */
.targets-adjusted-alert-strip {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.adjusted-alert-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #fbbf24;
}

.adjusted-toggle-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.adjusted-toggle-label {
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
  user-select: none;
}

/* Switch estilizado */
.targets-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.targets-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.targets-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: 0.3s;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.targets-switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.targets-switch input:checked + .targets-switch-slider {
  background-color: #f59e0b;
  border-color: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

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

/* Badge Faltou */
.targets-week-badge-pill.miss-alert {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

/* ========================================================
   ESTILOS: DETALHAMENTO INDIVIDUAL DO VENDEDOR (DRILLDOWN)
   ======================================================== */
#targets-seller-view {
  animation: fadeIn 0.25s ease-in-out;
}

.seller-view-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.btn-seller-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-seller-back:hover {
  background: rgba(0, 229, 255, 0.12);
  border-color: #00e5ff;
  color: #00e5ff;
  transform: translateX(-2px);
}

.seller-nav-month-pill {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 16px;
  border-radius: 20px;
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 600;
}

/* 1. HERO DO VENDEDOR */
.seller-hero-card {
  background: linear-gradient(135deg, rgba(14, 23, 42, 0.95), rgba(7, 12, 22, 0.95));
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-top: 3px solid #00e5ff;
  border-radius: 14px;
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.seller-hero-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.seller-hero-avatar-box {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2.5px solid #00e5ff;
  background: linear-gradient(135deg, #0e7490, #0284c7);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.3);
  flex-shrink: 0;
}

.seller-hero-avatar {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.seller-hero-name {
  font-size: 22px;
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 6px 0;
  letter-spacing: -0.3px;
  text-transform: uppercase;
}

.seller-hero-badge-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.seller-rank-badge {
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid #00e5ff;
  color: #00e5ff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.seller-store-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.seller-period-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 20px;
  padding: 0 10px 0 12px;
  gap: 6px;
  height: 28px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.seller-period-select-wrap:hover {
  border-color: #00e5ff;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.seller-day-select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  color: #38bdf8;
  font-size: 11.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  padding-right: 14px;
}

.seller-day-select option {
  background: #0b1329;
  color: #f1f5f9;
  font-size: 12px;
  padding: 8px;
}

.seller-select-chevron {
  position: absolute;
  right: 8px;
  pointer-events: none;
  color: #38bdf8;
}

.seller-hero-right {
  text-align: right;
}

.seller-hero-period-tag {
  font-size: 11px;
  font-weight: 700;
  color: #10b981;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 4px;
}

.status-pulse-dot {
  font-size: 12px;
  color: #10b981;
  animation: pulse 1.5s infinite;
}

.seller-hero-total-val {
  font-size: 32px;
  font-weight: 800;
  color: #00e5ff;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.seller-hero-orders-count {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
  margin-top: 3px;
}

/* 2. GRID DOS 3 KPIS */
.seller-kpis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.seller-kpi-card {
  background: rgba(13, 20, 36, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.seller-kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 255, 0.25);
}

.seller-kpi-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.seller-kpi-icon-wrap.icon-teal {
  background: rgba(0, 229, 255, 0.12);
  color: #00e5ff;
}

.seller-kpi-icon-wrap.icon-cyan {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
}

.seller-kpi-icon-wrap.icon-indigo {
  background: rgba(129, 140, 248, 0.12);
  color: #818cf8;
}

.seller-kpi-icon-wrap.icon-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.seller-kpi-icon-wrap.icon-blue {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}

.seller-kpi-lbl {
  font-size: 11.5px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 2px;
}

.seller-kpi-val {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.seller-kpi-sub {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
  margin-top: 2px;
}

/* 3. CARDS EM LINHA DUPLA */
.seller-dual-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.seller-block-card {
  background: rgba(13, 20, 36, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px;
}

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

.seller-block-title {
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
  letter-spacing: -0.2px;
}

.seller-block-subtitle {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 500;
}

.seller-chart-box {
  width: 100%;
  height: 200px;
  position: relative;
}

.seller-chart-box canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* 4. PERFORMANCE DE METAS (BARRAS INDIVIDUAIS) */
.seller-tiers-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.seller-tier-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 14px;
}

.seller-tier-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.seller-tier-name {
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
}

.seller-tier-diff {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}

.seller-tier-diff.hit {
  color: #10b981;
}

.seller-tier-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 6px;
}

.seller-tier-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #00e5ff);
  border-radius: 6px;
  transition: width 0.4s ease;
}

.seller-tier-fill.hit {
  background: linear-gradient(90deg, #059669, #10b981);
}

.seller-tier-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: 11px;
  color: #64748b;
}


.seller-tier-target {
  font-weight: 600;
  color: #cbd5e1;
}

/* 5. ACOMPANHAMENTO SEMANAL COM ALTERNADOR DE NÍVEL */
.seller-weekly-full-card {
  margin-bottom: 20px;
}

.seller-weekly-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.seller-weekly-subtitle {
  font-size: 12px;
  font-weight: 600;
  color: #00e5ff;
  margin-top: 3px;
  display: block;
}

.seller-tier-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
}

.seller-switcher-lbl {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
}

.seller-tier-buttons {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.3);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-seller-tier-pill {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-seller-tier-pill:hover {
  color: #ffffff;
}

.btn-seller-tier-pill.active {
  background: rgba(0, 229, 255, 0.18);
  border: 1px solid #00e5ff;
  color: #00e5ff;
  font-weight: 700;
}

/* Acordeão de Semanas */
.seller-weeks-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.seller-week-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
}

.seller-week-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.seller-week-box-title {
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
}

.seller-week-status-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.seller-week-status-badge.miss {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.seller-week-status-badge.hit {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
}

/* 3 Mini Indicadores da Semana */
.seller-week-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.seller-week-stat-item {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px 14px;
}

.seller-week-stat-lbl {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.seller-week-stat-val {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 2px;
}

.seller-week-stat-val.realizado {
  color: #00e5ff;
}

.seller-week-stat-val.diff-pos {
  color: #10b981;
}

.seller-week-stat-val.diff-neg {
  color: #ef4444;
}

/* Linha de Progresso */
.seller-week-progress-line {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 14px;
}

.seller-week-progress-fill {
  height: 100%;
  background: #00e5ff;
  border-radius: 4px;
}

/* Grid de Dias da Semana */
.seller-week-days-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
  gap: 8px;
}

.seller-day-tile {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.seller-day-tile:hover {
  border-color: rgba(0, 229, 255, 0.5);
  background: rgba(0, 229, 255, 0.06);
  transform: translateY(-2px);
}

.seller-day-tile.hit {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.06);
}

.seller-day-tile.miss {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.05);
}

.seller-day-tile.selected-day-tile {
  border-color: #00e5ff !important;
  background: rgba(0, 229, 255, 0.16) !important;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.45) !important;
  transform: translateY(-2px) scale(1.04);
}

.seller-day-tile-dow {
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
}

.seller-day-tile-date {
  font-size: 10.5px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.seller-day-tile-meta {
  font-size: 9.5px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.seller-day-tile-real {
  font-size: 12.5px;
  font-weight: 800;
  color: #ffffff;
}

.seller-day-tile.hit .seller-day-tile-real {
  color: #10b981;
}

.seller-day-tile.miss .seller-day-tile-real {
  color: #ef4444;
}

/* 6. DEPARTAMENTOS MAIS VENDIDOS */
.seller-departments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.seller-dept-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.seller-dept-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
}

.seller-dept-name {
  color: #e2e8f0;
}

.seller-dept-total {
  color: #00e5ff;
}

.seller-dept-bar-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  overflow: hidden;
}

.seller-dept-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0891b2, #00e5ff);
  border-radius: 6px;
}

/* 7. PRINCIPAIS CLIENTES */
.seller-clients-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.seller-client-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px 14px;
  position: relative;
  overflow: hidden;
}

.seller-client-fill-bg {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: rgba(0, 229, 255, 0.08);
  z-index: 1;
  pointer-events: none;
}

.seller-client-left {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.seller-client-rank {
  font-size: 11px;
  font-weight: 800;
  color: #00e5ff;
  min-width: 20px;
}

.seller-client-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #f1f5f9;
}

.seller-client-right {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.seller-client-freq {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 4px;
}

.seller-client-val {
  font-size: 13px;
  font-weight: 800;
  color: #00e5ff;
}

/* Hover na tabela de vendedores */
.targets-table tbody tr {
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.targets-table tbody tr:hover {
  background-color: rgba(0, 229, 255, 0.08) !important;
}

/* Responsividade */
@media (max-width: 1200px) {
  .seller-kpis-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .seller-dual-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .seller-hero-card {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .seller-hero-left {
    flex-direction: column;
  }
  .seller-hero-right {
    text-align: center;
  }
  .seller-hero-period-tag {
    justify-content: center;
  }
  .seller-kpis-grid {
    grid-template-columns: 1fr;
  }
}



