/**
 * MONTENEGRO INTERIORES - DESIGN SYSTEM 2026
 * 03_components_cards.css
 * 
 * Componentes de Cards, Indicadores de KPI, Grids Operacionais e Badges.
 * Padronizado para alta manutenibilidade, ergonomia visual (turnos 8h+) e estética institucional de luxo.
 * 
 * ÍNDICE:
 * 1. Grids e Contêineres de Cards
 * 2. Archetype 1: Cards de KPI & Métricas Institucionais
 * 3. Archetype 2: Cards de Estoque de Materiais (.material-card) [Grid & Lista]
 * 4. Archetype 3: Cards de Ordens Operacionais (.op-card - Produção & Vendas)
 * 5. Archetype 4: Cards de Showroom Comercial (.showroom-list-card, .showroom-card) [Vitrine Luxo Cliente]
 * 6. Archetype 5: Cards de Dashboard Operacional (.dashboard-card)
 * 7. Archetype 6: Cards de Gestão, Administração e Conteúdo (.admin-card)
 * 8. Archetype 7: Badges, Status Pills e Tags de Estado
 * 9. Archetype 8: Lookbook & Carrossel Touch Horizontal
 * 10. Responsividade Mobile & Tablet
 */

/* ==========================================================================
   1. GRIDS E CONTÊINERES DE CARDS
   ========================================================================== */

.kpi-grid,
.production-stats,
.production-kpi-grid,
.agenda-kpis,
.history-kpis,
.showroom-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  width: 100%;
}

/* Dashboard Operacional do Estoquista: Bento Grid Executivo 2.0 */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-5);
  width: 100%;
  margin-bottom: var(--space-6);
}

.dashboard-grid > .dashboard-card,
.dashboard-grid > .kpi-general-card {
  margin-bottom: 0;
  width: 100%;
}

/* Distribuição de Colunas Bento Grid */
.cockpit-hero-card,
.kpi-general-card {
  grid-column: span 5;
}

.cockpit-thermo-card,
.dashboard-card.alerts-summary {
  grid-column: span 7;
}

.dashboard-card.ops-summary {
  grid-column: span 6;
}

.dashboard-card.financial-value {
  grid-column: span 6;
}

.dashboard-card.ranking-summary {
  grid-column: span 6;
}

.dashboard-card.tasks-summary {
  grid-column: span 6;
}

.dashboard-card.quick-actions {
  grid-column: span 6;
}

@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .cockpit-hero-card,
  .kpi-general-card,
  .cockpit-thermo-card,
  .dashboard-card.alerts-summary,
  .dashboard-card.ops-summary,
  .dashboard-card.financial-value,
  .dashboard-card.ranking-summary,
  .dashboard-card.tasks-summary,
  .dashboard-card.quick-actions {
    grid-column: span 1;
  }
}

.kpi-strip {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
  margin-bottom: var(--space-5);
}

/* Grids Operacionais: Exatamente 3 colunas para maior amplitude horizontal e visualização desafogada */
.material-cards-container,
.products-grid,
.card-grid,
.op-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  width: 100%;
  margin-bottom: var(--space-6);
}

@media (max-width: 1200px) {
  .material-cards-container,
  .products-grid,
  .card-grid,
  .op-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.showroom-list-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  width: 100%;
  margin-bottom: var(--space-6);
}

.acessos-grid,
.specs-grid,
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
}

/* ==========================================================================
   2. ARCHETYPE 1: CARDS DE KPI & MÉTRICAS INSTITUCIONAIS
   ========================================================================== */

.stat-card,
.kpi-item,
.kpi-general-card,
.mini-kpi,
.mini-stat {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

/* Cards analíticos com tooltips flutuantes: overflow VISIBLE obrigatório */
.report-stat-card,
.report-kpi-card,
.report-card,
.prod-kpi-item,
.report-insight-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: visible !important;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

/* Tooltips Analíticos Flutuantes (Padrão KAVEN 2026) */
.report-tooltip,
.tooltip-trigger {
  position: relative;
  cursor: help;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.report-tooltip::after,
.tooltip-trigger::after {
  content: "ⓘ";
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.6;
  transition: opacity var(--transition-fast), color var(--transition-fast);
  line-height: 1;
}

.report-tooltip:hover::after,
.tooltip-trigger:hover::after {
  opacity: 1;
  color: var(--primary-color);
}

.tooltip-box {
  display: none !important;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #11141b;
  color: #f3f4f6;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.45;
  width: max-content;
  max-width: 280px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 1px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
  z-index: 9999;
  text-transform: none;
  letter-spacing: normal;
  white-space: normal;
  text-align: left;
  opacity: 0;
  visibility: hidden;
}

.tooltip-box::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #11141b transparent transparent transparent;
}

.report-tooltip:hover .tooltip-box,
.report-tooltip:focus-within .tooltip-box,
.tooltip-trigger:hover .tooltip-box,
.report-stat-card:hover .tooltip-box,
.prod-kpi-item:hover .tooltip-box,
.report-insight-card:hover .tooltip-box,
.thermo-recommendation:hover .tooltip-box {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  animation: tooltipFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Borda superior de acento com gradiente Montenegro */
.stat-card::before,
.kpi-general-card::before,
.report-stat-card::before,
.report-kpi-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), transparent);
  opacity: 0.65;
}

.stat-card:hover,
.kpi-general-card:hover,
.report-stat-card:hover,
.kpi-item:hover {
  transform: translateY(-2px);
  border-color: rgba(229, 57, 53, 0.35);
  box-shadow: var(--shadow-lg), 0 0 16px rgba(229, 57, 53, 0.08);
}

/* Faixa de KPIs (.kpi-strip) usada no topo de Estoque */
.kpi-strip .kpi-item {
  flex: 1;
  min-width: 180px;
  flex-direction: row;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
}

.kpi-icon-container {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.kpi-item:hover .kpi-icon-container {
  transform: scale(1.05);
  background: var(--bg-hover);
}

.kpi-text-container {
  display: flex;
  flex-direction: column;
}

/* Rótulos e Valores de KPI */
.stat-label,
.kpi-label,
.dashboard-label,
.report-kpi-label {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: var(--space-1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-label svg,
.kpi-label svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.stat-card:hover .stat-label svg {
  color: var(--primary-color);
  transform: scale(1.1);
}

.stat-value,
.kpi-value,
.report-kpi-value,
#saude-valor {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.5px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

/* Estados semânticos de KPI */
.kpi-normal .kpi-value,
.kpi-item.kpi-normal .kpi-value,
.status-estoque-text {
  color: var(--success);
}

.kpi-baixo .kpi-value,
.kpi-item.kpi-baixo .kpi-value,
.status-exposicao-text {
  color: var(--warning);
}

.kpi-critico .kpi-value,
.kpi-item.kpi-critico .kpi-value,
.status-alerta-text {
  color: var(--danger);
}

.kpi-progress {
  width: 100%;
  height: 6px;
  background: var(--bg-hover);
  border-radius: var(--radius-full);
  margin-top: var(--space-3);
  overflow: hidden;
}

.kpi-progress-bar {
  height: 100%;
  background: var(--primary-color);
  border-radius: var(--radius-full);
  transition: width var(--transition-normal);
}

/* Variações de KPI de Relatório */
.report-stat-card--primary::before { background: var(--primary-color); }
.report-stat-card--health::before { background: var(--success); }
.report-stat-card--warning::before { background: var(--warning); }

/* ==========================================================================
   3. ARCHETYPE 2: CARDS DE ESTOQUE DE MATERIAIS (.material-card)
   ========================================================================== */

.material-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

/* Faixa vertical indicadora de status no lado esquerdo */
.material-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--border-medium), transparent);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  transition: width var(--transition-fast);
}

.material-card:hover {
  transform: translateY(-4px);
  border-color: rgba(229, 57, 53, 0.4);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(0, 0, 0, 0.5);
}

.material-card:hover::before {
  width: 6px;
}

/* Status: Normal */
.material-card.normal::before {
  background: linear-gradient(180deg, var(--success), #003d1f);
}

/* Status: Baixo */
.material-card.baixo::before {
  background: linear-gradient(180deg, var(--warning), #5a2e00);
}

.material-card.baixo {
  border-color: rgba(255, 152, 0, 0.25);
}

/* Status: Crítico */
.material-card.critico::before {
  background: linear-gradient(180deg, var(--danger), #5a0000);
}

.material-card.critico {
  border-color: rgba(229, 57, 53, 0.35);
  box-shadow: var(--shadow-md), 0 0 16px rgba(229, 57, 53, 0.12);
}

/* Header do Card de Material */
.material-card .card-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
}

.material-thumbnail {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: var(--radius-md);
  background: #0d0f14;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.material-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.material-card:hover .material-thumbnail img {
  transform: scale(1.08);
}

.initials-box {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #1a1e27 0%, #0f1117 100%);
  color: var(--primary-color);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.material-info {
  flex: 1;
  min-width: 0;
}

.material-info h2 {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 3px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.material-code {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin: 0;
  font-family: monospace;
}

/* Corpo do Card de Material */
.material-card .card-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.current-stock {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin: 0;
}

.current-stock span {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
  margin-right: 2px;
}

.stock-level-bar {
  position: relative;
  height: 8px;
  background: var(--bg-hover);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 4px 0 8px 0;
}

.stock-level-bar .fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
  position: relative;
}

.stock-level-bar .fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  animation: shimmerProgress 3s infinite ease-in-out;
}

@keyframes shimmerProgress {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.stock-details {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin: 0;
}

.material-location {
  font-size: var(--font-size-xs);
  color: var(--text-subtle);
  margin: 0;
}

/* Ações do Card de Material */
.card-actions {
  display: flex;
  gap: 6px;
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.action-btn {
  flex: 1;
  padding: 7px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.action-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.35);
}

.action-btn.add-entry {
  border-color: rgba(229, 57, 53, 0.35);
}

.action-btn.view-info {
  flex: 0 0 34px;
  padding: 7px 0;
}

/* ==========================================================================
   MODO LISTA ALTERNÁVEL (.material-cards-container.view-list)
   ========================================================================== */

.material-cards-container.view-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.material-cards-container.view-list .material-card {
  display: grid;
  grid-template-columns: 240px 1fr 180px 240px;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-5);
  min-height: auto;
}

.material-cards-container.view-list .card-header {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.material-cards-container.view-list .card-body {
  margin-bottom: 0;
  gap: 2px;
}

.material-cards-container.view-list .card-actions {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  justify-content: flex-end;
}

/* ==========================================================================
   4. ARCHETYPE 3: CARDS DE ORDENS OPERACIONAIS (.op-card)
   ========================================================================== */

.op-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  position: relative;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  overflow: hidden;
}

/* Acento luminoso sutil no topo do card operacional */
.op-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0.7;
}

.op-card:hover {
  transform: translateY(-3px);
  border-color: rgba(229, 57, 53, 0.4);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(0, 0, 0, 0.5);
}

.op-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
}

.op-header-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.op-number,
.op-id {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  margin: 0;
}

.op-header-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.op-cost-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(229, 57, 53, 0.3);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: var(--shadow-sm);
}

.op-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-sm);
}

.info-row .label {
  color: var(--text-muted);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.info-row .value {
  color: var(--text-main);
  font-weight: 600;
}

.info-row .value.highlight {
  color: var(--primary-color);
}

.op-card-footer {
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
}

.btn-detalhes {
  width: 100%;
  padding: 10px var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-weight: 600;
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.btn-detalhes:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(229, 57, 53, 0.35);
}

/* ==========================================================================
   5. ARCHETYPE 4: CARDS DE SHOWROOM COMERCIAL (.showroom-list-card, .showroom-card)
      [Padrão de Alto Padrão - Vitrine Visual para Exibição ao Cliente]
   ========================================================================== */

.showroom-list-card,
.showroom-card,
.product-card {
  background: linear-gradient(145deg, #13161c 0%, #0d0f14 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  min-height: 150px;
}

.showroom-list-card:hover,
.showroom-card:hover,
.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(229, 57, 53, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 20px rgba(229, 57, 53, 0.12);
}

/* Miniatura/Fotografia de Alta Resolução */
.slc-photo,
.product-photo {
  width: 160px;
  min-width: 160px;
  background: #090a0d;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.slc-photo img,
.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.showroom-list-card:hover .slc-photo img,
.showroom-card:hover .product-photo img,
.product-card:hover .product-photo img {
  transform: scale(1.06);
}

.slc-photo-placeholder,
.product-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #1a1e27 0%, #0f1117 100%);
  color: var(--primary-color);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Conteúdo central do produto */
.slc-content,
.product-info {
  flex: 1;
  padding: var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.slc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.slc-title h3,
.product-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.slc-title p,
.product-code {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  margin: 0;
}

/* Grid de especificações e preço comercial */
.slc-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: var(--space-3) var(--space-5);
  align-items: center;
}

.slc-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.slc-info .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-subtle);
  font-weight: 600;
}

.slc-info .value {
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 500;
}

/* Destaque para o valor comercial do móvel */
.slc-info:nth-child(3) .value,
.product-price {
  color: #10b981;
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Coluna de ações lateral com botão de destaque */
.slc-actions {
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
}

.slc-actions .btn-detalhes {
  background: linear-gradient(135deg, var(--primary-color) 0%, #b71c1c 100%);
  color: #ffffff;
  border: none;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
}

.slc-actions .btn-detalhes:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(229, 57, 53, 0.45);
}

/* ==========================================================================
   6. ARCHETYPE 5: CARDS DE DASHBOARD OPERACIONAL (.dashboard-card)
   ========================================================================== */

.dashboard-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.dashboard-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), transparent);
  opacity: 0.65;
}

.dashboard-card:hover {
  transform: translateY(-2px);
  border-color: rgba(229, 57, 53, 0.35);
  box-shadow: var(--shadow-lg), 0 0 16px rgba(229, 57, 53, 0.08);
}

.dashboard-card h2,
.kpi-general-card h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: 0;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
}

.dashboard-card h2 svg,
.kpi-general-card h2 svg {
  color: var(--primary-color);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Header do Cockpit Executivo & Radar de Monitoramento ao Vivo */
.cockpit-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.system-live-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.1);
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: radarLivePulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes radarLivePulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Anel Radial Circular de Alta Precisão (Saúde do Estoque) */
.health-radial-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 140px;
  height: 140px;
  margin: var(--space-3) auto var(--space-2) auto;
}

.health-radial-svg {
  width: 140px;
  height: 140px;
  transform: rotate(-90deg);
}

.health-radial-bg {
  fill: none;
  stroke: var(--bg-hover);
  stroke-width: 10;
}

.health-radial-meter {
  fill: none;
  stroke: var(--success);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 339.29;
  stroke-dashoffset: 339.29;
  transition: stroke-dashoffset 1s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.4s ease;
}

.health-radial-container .health-indicator {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
  gap: 2px;
}

.health-radial-container .health-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.health-radial-container .health-status {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Indicador Geral de Saúde (Fallback sem container radial) */
.health-indicator {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  margin-bottom: var(--space-2);
}

.health-value {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.health-status {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.kpi-general-card.status-ok .health-status {
  background: rgba(76, 175, 80, 0.15);
  color: var(--success);
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.kpi-general-card.status-warning .health-status {
  background: rgba(255, 152, 0, 0.15);
  color: var(--warning);
  border: 1px solid rgba(255, 152, 0, 0.3);
}

.kpi-general-card.status-critical .health-status {
  background: rgba(229, 57, 53, 0.15);
  color: var(--danger);
  border: 1px solid rgba(229, 57, 53, 0.3);
}

.health-prediction {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  text-align: center;
  margin: var(--space-2) 0 0 0;
  background: rgba(255, 255, 255, 0.025);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

/* Card: Minhas Tarefas Sugeridas (.tasks-summary) */
.tasks-summary-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-2);
  text-align: center;
  flex: 1;
}

.tasks-summary-content svg {
  width: 38px;
  height: 38px;
  color: var(--text-muted);
}

.tasks-summary.tasks-pending {
  border-color: rgba(255, 152, 0, 0.3);
}

.tasks-summary.tasks-pending svg {
  color: var(--warning);
  filter: drop-shadow(0 0 8px rgba(255, 152, 0, 0.5));
}

.tasks-summary.tasks-clear svg {
  color: var(--success);
}

/* Card: OPs e OVs em Andamento (.ops-summary) */
.ops-summary .ops-count {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
}

.ops-summary ul {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.ops-summary ul li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  transition: background var(--transition-fast);
}

.ops-summary ul li:hover {
  background: var(--bg-hover);
}

/* Card: Ranking de Consumo / Parados (.ranking-summary) */
.ranking-summary .card-header-tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--space-3);
  flex-wrap: wrap;
  gap: var(--space-2);
}

.ranking-summary .tab-h2 {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.ranking-summary .tabs {
  display: flex;
  gap: var(--space-2);
}

.ranking-summary .tab-btn {
  padding: 4px 12px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: var(--font-size-xs);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ranking-summary .tab-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
}

.ranking-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  counter-reset: ranking-counter;
}

.ranking-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  font-size: var(--font-size-sm);
  counter-increment: ranking-counter;
}

.ranking-list li::before {
  content: counter(ranking-counter) "º";
  font-weight: 700;
  color: var(--primary-color);
  margin-right: var(--space-2);
  font-size: 0.85rem;
}

.ranking-list li:nth-child(1)::before {
  color: #f59e0b;
}

.ranking-list li:nth-child(2)::before {
  color: #94a3b8;
}

.ranking-list li:nth-child(3)::before {
  color: #d97706;
}

/* Card: Valor Financeiro (.financial-value) */
.financial-chart-container {
  position: relative;
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--space-3) 0;
}

.chart-center-text {
  position: absolute;
  text-align: center;
  pointer-events: none;
}

.financial-summary-text {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  text-align: center;
  margin: var(--space-2) 0;
}

/* Card: Atalhos Rápidos (.quick-actions) */
.quick-actions-container,
.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.shortcut-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-3);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  text-decoration: none;
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-align: center;
  transition: all var(--transition-fast);
}

.shortcut-btn:hover {
  background: var(--bg-hover);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.view-all-btn {
  margin-top: auto;
  padding: 8px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  display: block;
}

.view-all-btn:hover {
  background: var(--bg-hover);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Indicador e Termômetro de Saúde de Estoque */
.stock-health-bar {
  display: flex;
  width: 100%;
  height: 10px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--bg-hover);
  margin: var(--space-3) 0;
}

.bar-segment.criticos { background: var(--danger); }
.bar-segment.baixos { background: var(--warning); }
.bar-segment.normais { background: var(--success); }

.health-legend {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  flex-wrap: wrap;
}

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

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

.legend-dot.critico { background: var(--danger); }
.legend-dot.baixo { background: var(--warning); }
.legend-dot.normal { background: var(--success); }

/* Seção de Acuracidade de Inventário Integrada ao Card de Diagnóstico */
.stock-accuracy-section {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.accuracy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.accuracy-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--text-muted);
}

.accuracy-label svg {
  color: var(--primary-color);
}

.accuracy-badge-group {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.accuracy-value {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

.accuracy-status-pill {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

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

.accuracy-status-pill.positive {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

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

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

.accuracy-progress-track {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--bg-hover);
  overflow: hidden;
  position: relative;
}

.accuracy-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease;
}

.accuracy-progress-fill.success {
  background: linear-gradient(90deg, #059669, #10b981);
}

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

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

.accuracy-subtext {
  font-size: 0.72rem;
  color: var(--text-subtle);
  line-height: 1.3;
}

/* ==========================================================================
   7. ARCHETYPE 6: CARDS DE GESTÃO, ADMINISTRAÇÃO E CONTEÚDO (.admin-card)
   ========================================================================== */

.admin-card,
.info-card,
.editorial-card,
.customer-card,
.danger-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-6);
  overflow: hidden;
}

.admin-card::before,
.info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), transparent);
  opacity: 0.6;
}

.danger-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--danger);
}

.admin-card h3,
.info-card h3 {
  margin-top: 0;
  margin-bottom: var(--space-5);
  font-size: var(--font-size-lg);
  color: var(--text-main);
  font-weight: 600;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* ==========================================================================
   8. ARCHETYPE 7: BADGES, STATUS PILLS E TAGS DE ESTADO
   ========================================================================== */

.status-badge,
.op-status-badge,
.status-pill,
.page-badge,
.role-badge,
.map-badge,
.factory-status-badge,
.report-status-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  white-space: nowrap;
  line-height: 1.3;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: currentColor;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}

/* Status: Em Produção / Alerta Vermelho */
.status-producao,
.status-producao-text,
.badge-producao,
.status-alerta {
  color: #ff5252;
  background: rgba(229, 57, 53, 0.12);
  border-color: rgba(229, 57, 53, 0.3);
}

/* Status: Finalizado / Estoque / Sucesso Verde */
.status-finalizado,
.status-finalizado-text,
.status-estoque-text,
.badge-estoque {
  color: #4caf50;
  background: rgba(76, 175, 80, 0.12);
  border-color: rgba(76, 175, 80, 0.3);
}

/* Status: Aguardando / Exposição / Aviso Âmbar */
.status-aguardando,
.status-exposicao-text,
.badge-exposicao {
  color: #ffb74d;
  background: rgba(255, 152, 0, 0.12);
  border-color: rgba(255, 152, 0, 0.3);
}

/* Status: Azul / Venda / Informação */
.badge-venda,
.health-status {
  color: #42a5f5;
  background: rgba(33, 150, 243, 0.12);
  border-color: rgba(33, 150, 243, 0.3);
}

/* Papéis e badges de perfis */
.role-badge.admin,
.badge-admin {
  color: #ef5350;
  background: rgba(229, 57, 53, 0.15);
  border-color: rgba(229, 57, 53, 0.35);
}

.role-badge.consultor,
.badge-consultor {
  color: #ab47bc;
  background: rgba(156, 39, 176, 0.15);
  border-color: rgba(156, 39, 176, 0.35);
}

.page-badge {
  background: rgba(229, 57, 53, 0.12);
  color: var(--primary-color);
  border-color: rgba(229, 57, 53, 0.25);
  padding: 6px 12px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  border-radius: var(--radius-sm);
}

@keyframes pulseDot {
  0% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.4); }
  70% { transform: scale(1.1); opacity: 0.9; box-shadow: 0 0 0 6px rgba(229, 57, 53, 0); }
  100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); }
}

.status-producao .status-dot,
.status-alerta .status-dot {
  animation: pulseDot 2s infinite ease-in-out;
}

/* ==========================================================================
   9. ARCHETYPE 8: LOOKBOOK & CARROSSEL TOUCH HORIZONTAL
   ========================================================================== */

.lookbook-container {
  position: relative;
  width: 100%;
  margin-bottom: var(--space-8);
  overflow: hidden;
}

.lookbook-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-5);
}

.lookbook-header h2 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.lookbook-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.lookbook-card:hover {
  transform: translateY(-4px);
  border-color: rgba(229, 57, 53, 0.45);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(0, 0, 0, 0.5);
}

.lookbook-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-surface-elevated);
}

.lookbook-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lookbook-card:hover .lookbook-image-wrapper img {
  transform: scale(1.05);
}

.lookbook-content {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.swiper-button-next,
.swiper-button-prev {
  width: 38px !important;
  height: 38px !important;
  background: rgba(20, 23, 29, 0.85) !important;
  border: 1px solid var(--border-medium) !important;
  border-radius: 50% !important;
  color: var(--text-main) !important;
  box-shadow: var(--shadow-md) !important;
  backdrop-filter: blur(8px) !important;
  transition: all var(--transition-fast) !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 14px !important;
  font-weight: 700 !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
  transform: scale(1.08);
}

.swiper-pagination-bullet {
  background: var(--text-faint) !important;
  opacity: 0.5 !important;
  transition: all var(--transition-fast) !important;
}

.swiper-pagination-bullet-active {
  background: var(--primary-color) !important;
  opacity: 1 !important;
  width: 20px !important;
  border-radius: 4px !important;
}

/* ==========================================================================
   10. RESPONSIVIDADE MOBILE & TABLET
   ========================================================================== */

@media (max-width: 992px) {
  .material-cards-container.view-list .material-card {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
  }
}

@media (max-width: 768px) {
  .op-grid,
  .products-grid,
  .material-cards-container,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .material-cards-container.view-list .material-card {
    grid-template-columns: 1fr;
  }

  .showroom-list-card,
  .showroom-card,
  .product-card {
    flex-direction: column;
    min-height: auto;
  }

  .slc-photo,
  .product-photo {
    width: 100%;
    min-width: 100%;
    height: 160px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .slc-actions {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: var(--space-4);
  }

  .slc-actions .btn-detalhes {
    width: 100%;
  }
}
