/*
 * ZAB Supervisor Comercial - Premium Mobile-First stylesheet
 * Identidade visual moderna baseada em tons escuros de azul e azul metálico (Dark Mode)
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Cores base */
  --bg-primary: #0a0e1a;
  --bg-secondary: #121829;
  --bg-card: rgba(22, 30, 49, 0.7);
  --bg-card-hover: rgba(30, 41, 67, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(0, 210, 255, 0.4);
  
  /* Cores de destaque */
  --color-primary: #00d2ff;
  --color-secondary: #0084ff;
  --color-text-main: #f1f2f6;
  --color-text-muted: #8b9bb4;
  
  /* Semáforo de prioridades (ZAB comercial) */
  --color-prioridade-a: #ff4757; /* Vermelho vibrante (90+ dias) */
  --color-prioridade-b: #ff9f43; /* Laranja elétrico (60-89 dias) */
  --color-prioridade-c: #ffd2df; /* Amarelo limão (30-59 dias) */
  --color-prioridade-d: #2ed573; /* Verde esmeralda (<30 dias) */
  --color-prioridade-none: #747d8c; /* Cinza metálico (Sem compras) */
  
  /* Outros */
  --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-primary);
  color: var(--color-text-main);
  line-height: 1.5;
  font-size: 16px;
  overflow-x: hidden;
  padding-bottom: calc(75px + var(--safe-area-inset-bottom)); /* Espaço para a barra inferior */
}

/* --- SCROLLBAR CUSTOMIZADA --- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* --- TIPOGRAFIA E ESTRUTURA GERAL --- */
h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Header */
header {
  background: linear-gradient(to bottom, var(--bg-secondary) 70%, transparent);
  padding: 18px 16px 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #050a12;
  font-size: 16px;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(to right, #ffffff, #88c8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.update-badge {
  background: rgba(0, 210, 255, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(0, 210, 255, 0.2);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.update-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-primary);
}

/* --- FILTROS GLOBAIS --- */
.filter-toggle-container {
  padding: 12px 16px 8px;
}

.filter-toggle-btn {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--color-text-main);
  padding: 10px 14px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.2s;
}

.filter-toggle-btn:active {
  background: rgba(255, 255, 255, 0.05);
}

.filters-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 16px;
}

.filters-wrapper.open {
  max-height: 500px;
  padding: 12px 16px;
}

.filters-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  background: rgba(18, 24, 41, 0.8);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: 12px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

@media(min-width: 768px) {
  .filters-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

.filter-group label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.filter-control {
  background: #0f1423;
  border: 1px solid var(--border-color);
  color: var(--color-text-main);
  padding: 10px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 8px rgba(0, 210, 255, 0.15);
}

/* --- CONTAINER DE VISÕES --- */
main {
  padding: 8px 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.view-section {
  display: none;
  animation: fadeIn 0.3s ease-in-out forwards;
}

.view-section.active {
  display: block;
}

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

/* --- TELA 1: RESUMO COMERCIAL (CARDS) --- */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

@media(min-width: 768px) {
  .summary-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 16px 14px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, background-color 0.2s;
}

.summary-card:hover {
  background-color: var(--bg-card-hover);
}

.summary-card.full-width {
  grid-column: span 2;
}

@media(min-width: 768px) {
  .summary-card.full-width {
    grid-column: span 1;
  }
}

.summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--color-secondary);
}

.summary-card.card-alert-a::before { background: var(--color-prioridade-a); }
.summary-card.card-alert-b::before { background: var(--color-prioridade-b); }
.summary-card.card-alert-c::before { background: var(--color-prioridade-c); }
.summary-card.card-success::before { background: var(--color-prioridade-d); }
.summary-card.card-accent::before { background: var(--color-primary); }

.summary-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.5px;
}

.summary-value {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.summary-meta {
  font-size: 11px;
  color: var(--color-text-muted);
}

/* --- TELA 2: LISTA CARTEIRA / CLIENTES --- */
.action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.action-bar h2 {
  font-size: 16px;
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.records-count {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
}

.action-buttons {
  display: flex;
  gap: 8px;
}

.btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--color-text-main);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  font-weight: 500;
}

.btn:active {
  transform: scale(0.98);
}

.btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-secondary), #0056b3);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0099ff, #0066d4);
}

/* Card Lista de Clientes (Mobile) */
.list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.client-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}

.client-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.client-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.client-name-box {
  display: flex;
  flex-direction: column;
  max-width: 75%;
}

.client-code {
  font-size: 11px;
  color: var(--color-text-muted);
  font-family: monospace;
}

.client-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.priority-badge {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.priority-a { background: rgba(255, 71, 87, 0.12); color: var(--color-prioridade-a); border: 1px solid rgba(255, 71, 87, 0.25); }
.priority-b { background: rgba(255, 159, 67, 0.12); color: var(--color-prioridade-b); border: 1px solid rgba(255, 159, 67, 0.25); }
.priority-c { background: rgba(255, 210, 223, 0.12); color: #ecc758; border: 1px solid rgba(255, 210, 223, 0.25); }
.priority-d { background: rgba(46, 213, 115, 0.12); color: var(--color-prioridade-d); border: 1px solid rgba(46, 213, 115, 0.25); }
.priority-none { background: rgba(116, 125, 140, 0.12); color: var(--color-prioridade-none); border: 1px solid rgba(116, 125, 140, 0.25); }

/* Animação de pulso discreto na prioridade A */
.client-card.pulse-urgency {
  box-shadow: 0 0 10px rgba(255, 71, 87, 0.15);
  animation: cardPulse A 4s infinite alternate;
}

@keyframes cardPulse {
  0% { border-color: var(--border-color); }
  100% { border-color: rgba(255, 71, 87, 0.4); }
}

.client-card-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.05);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.info-item {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 9px;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.info-value {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info-value.highlight {
  color: #fff;
  font-weight: 600;
}

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

.client-loc {
  color: var(--color-text-muted);
}

.client-vendor-tag {
  background: rgba(0, 132, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--color-primary);
  font-size: 9px;
  font-weight: 600;
}

/* --- TELA 3: ROTEIRO POR CIDADE --- */
.city-group-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.city-group-header {
  background: rgba(18, 24, 41, 0.8);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
}

.city-title-info {
  display: flex;
  flex-direction: column;
}

.city-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.city-badge-count {
  font-size: 11px;
  color: var(--color-text-muted);
}

.city-financial-info {
  text-align: right;
}

.city-pot-label {
  font-size: 9px;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.city-pot-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
}

.city-group-content {
  display: none;
  padding: 12px;
  background: rgba(10, 14, 26, 0.5);
  border-top: 1px solid var(--border-color);
}

.city-group-card.open .city-group-content {
  display: block;
}

.city-criticos-banner {
  background: rgba(255, 71, 87, 0.08);
  border: 1px solid rgba(255, 71, 87, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.city-criticos-dot {
  width: 8px;
  height: 8px;
  background: var(--color-prioridade-a);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--color-prioridade-a);
}

/* --- TELA 4: TRANSFERÊNCIAS --- */
.transfer-alert-box {
  background: rgba(0, 132, 255, 0.08);
  border: 1px solid rgba(0, 132, 255, 0.2);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  margin-bottom: 16px;
  color: var(--color-text-main);
  line-height: 1.4;
}

.transfer-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.transfer-card {
  border-left: 4px solid var(--color-secondary);
}

.transfer-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  background: rgba(0, 0, 0, 0.2);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
}

.vendor-transfer-badge {
  font-weight: 600;
  color: #fff;
}

.transfer-arrow {
  color: var(--color-primary);
  font-size: 12px;
}

/* --- MODAL DETALHES CLIENTE --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 7, 13, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: flex-end; /* Mobile bottom sheet style */
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 550px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px 16px calc(20px + var(--safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.1, 0.76, 0.55, 0.94);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.modal-overlay.open .modal-container {
  transform: translateY(0);
}

@media(min-width: 768px) {
  .modal-overlay {
    align-items: center;
  }
  .modal-container {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transform: scale(0.9);
  }
  .modal-overlay.open .modal-container {
    transform: scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.modal-title-box h3 {
  font-size: 18px;
  color: #fff;
  margin-top: 4px;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--color-text-main);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body-section {
  margin-bottom: 16px;
}

.modal-section-title {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.modal-info-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 10px;
  border-radius: 8px;
}

.modal-info-card .lbl {
  font-size: 9px;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.modal-info-card .val {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.modal-info-card .val.val-large {
  font-size: 18px;
  color: var(--color-primary);
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.modal-actions .btn {
  flex: 1;
  justify-content: center;
}

.btn-whatsapp {
  background-color: #25d366;
  color: #fff;
  border: none;
}
.btn-whatsapp:hover {
  background-color: #1ebd58;
}

/* --- VISUALIZADOR SQL (TI) --- */
.sql-viewer-accordion {
  margin: 24px 0;
  background: #090d16;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.sql-header {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.sql-content {
  display: none;
  padding: 12px 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.sql-viewer-accordion.open .sql-content {
  display: block;
}

pre.sql-code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  color: #a9b7c6;
  background: #04060a;
  padding: 12px;
  border-radius: 6px;
  overflow-x: auto;
  white-space: pre-wrap;
  user-select: all;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- BARRA DE NAVEGAÇÃO INFERIOR --- */
.nav-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--bg-secondary);
  backdrop-filter: blur(15px);
  border-top: 1px solid var(--border-color);
  z-index: 500;
  display: flex;
  justify-content: space-around;
  padding-bottom: var(--safe-area-inset-bottom);
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.4);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 8px 0;
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.2s, transform 0.1s;
  font-family: inherit;
  font-size: 10px;
  font-weight: 500;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  margin-bottom: 3px;
  fill: currentColor;
  transition: transform 0.2s;
}

.nav-item:active {
  transform: scale(0.95);
}

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

.nav-item.active svg {
  transform: translateY(-2px);
}

/* --- SUPORTE A DISPOSITIVOS DESKTOP (TABELA DE DADOS) --- */
.desktop-table-container {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow-x: auto;
  margin-bottom: 20px;
}

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

.desktop-table th {
  background: rgba(18, 24, 41, 0.9);
  color: var(--color-text-muted);
  font-weight: 600;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.desktop-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  color: var(--color-text-main);
  white-space: nowrap;
}

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

@media(min-width: 992px) {
  .desktop-table-container {
    display: block;
  }
  .list-container {
    display: none;
  }
  .transfer-grid {
    display: none;
  }
}

/* --- LAYOUT DE IMPRESSÃO --- */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
    padding-bottom: 0 !important;
  }
  header, .nav-bottom, .filter-toggle-container, .filters-wrapper, .action-buttons, .sql-viewer-accordion, .modal-overlay {
    display: none !important;
  }
  main {
    padding: 0 !important;
    max-width: 100% !important;
  }
  .view-section {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
    page-break-after: always;
  }
  .view-section:last-child {
    page-break-after: avoid;
  }
  .desktop-table-container {
    display: block !important;
    border: 1px solid #ddd !important;
    border-radius: 0 !important;
  }
  .desktop-table th {
    background: #f0f0f0 !important;
    color: #000 !important;
    border-bottom: 2px solid #000 !important;
  }
  .desktop-table td {
    color: #000 !important;
    border-bottom: 1px solid #ddd !important;
    white-space: normal !important;
  }
  .list-container {
    display: none !important;
  }
  .summary-card {
    background: #fff !important;
    border: 1px solid #000 !important;
    color: #000 !important;
    box-shadow: none !important;
  }
  .summary-card .summary-value {
    color: #000 !important;
  }
  .summary-card::before {
    display: none !important;
  }
}

/* --- V2 MELHORIAS ESTILOS --- */
.team-positivation-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
  margin-top: 16px;
  backdrop-filter: blur(12px);
}

.team-positivation-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.seller-row {
  margin-bottom: 14px;
}

.seller-row:last-child {
  margin-bottom: 0;
}

.seller-row-info {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}

.seller-name {
  font-weight: 600;
  color: #fff;
}

.seller-stats {
  color: var(--color-text-muted);
  font-size: 12px;
}

.progress-bar-container {
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.1, 0.8, 0.3, 1);
}

.progress-bar-fill.bar-vermelha {
  background: linear-gradient(to right, #ff4757, #ff6b81);
  box-shadow: 0 0 6px rgba(255, 71, 87, 0.4);
}

.progress-bar-fill.bar-laranja {
  background: linear-gradient(to right, #ff9f43, #ffa502);
  box-shadow: 0 0 6px rgba(255, 159, 67, 0.4);
}

.progress-bar-fill.bar-amarela {
  background: linear-gradient(to right, #ecc758, #ecc758);
  box-shadow: 0 0 6px rgba(236, 199, 88, 0.4);
}

.progress-bar-fill.bar-verde {
  background: linear-gradient(to right, #2ed573, #7bed9f);
  box-shadow: 0 0 6px rgba(46, 213, 115, 0.4);
}

/* Mix de Produtos badges no modal */
.mix-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.mix-badge {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mix-badge.comprado {
  background: rgba(46, 213, 115, 0.12);
  color: var(--color-prioridade-d);
  border: 1px solid rgba(46, 213, 115, 0.25);
}

.mix-badge.oportunidade {
  background: rgba(255, 255, 255, 0.02);
  color: var(--color-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mix-badge.oportunidade::before {
  content: '⚠';
  font-size: 9px;
  color: var(--color-prioridade-b);
}

/* Tendência Comercial */
.trend-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.trend-badge.alta {
  background: rgba(46, 213, 115, 0.1);
  color: var(--color-prioridade-d);
}

.trend-badge.queda {
  background: rgba(255, 71, 87, 0.1);
  color: var(--color-prioridade-a);
}

.trend-badge.estavel {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-muted);
}

