/* ========================================================
   DASHBOARD BEZERRA IRRIGAÇÕES - DESIGN SYSTEM (DARK MODE)
   ======================================================== */

:root {
  /* Cores Base */
  --bg-main: #0a0e1a;
  --bg-sidebar: #070a12;
  --bg-card: #111828;
  --bg-card-hover: #162035;
  --bg-input: #0e1524;
  --bg-elevated: #1a243a;

  /* Bordas e Divisores */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-light: rgba(255, 255, 255, 0.12);
  --border-focus: #00e5ff;

  /* Cores de Destaque */
  --accent-cyan: #00e5ff;
  --accent-blue: #29b6f6;
  --accent-green: #10b981;
  --accent-red: #f43f5e;
  --accent-gold: #f59e0b;
  --accent-silver: #94a3b8;
  --accent-bronze: #d97706;

  /* Tipografia */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Inter', monospace;

  /* Cores de Texto */
  --text-white: #ffffff;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Sombras */
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
  --shadow-glow-cyan: 0 0 25px rgba(0, 229, 255, 0.2);
  --shadow-glow-gold: 0 0 25px rgba(245, 158, 11, 0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.dark-theme {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-main);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Layout Geral */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* 1. SIDEBAR */
.app-sidebar {
  width: 68px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
}

.sidebar-logo {
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}

.brand-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #0a1120;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  padding: 3px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 12px rgba(245, 158, 11, 0.15);
  transition: all 0.25s ease;
  cursor: pointer;
}

.brand-logo-img:hover {
  transform: scale(1.08);
  border-color: #f59e0b;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.4);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.nav-item {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-item svg {
  width: 22px;
  height: 22px;
}

.nav-item:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
  color: #070a12;
  background: var(--accent-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

.sidebar-footer {
  margin-top: auto;
}

/* 2. CONTEÚDO PRINCIPAL */
.main-content {
  margin-left: 68px;
  flex: 1;
  padding: 24px 32px 48px 32px;
  max-width: 1600px;
}

/* CABEÇALHO */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.header-titles .title-with-store {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.main-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.02em;
}

.divider {
  color: var(--text-muted);
  font-size: 20px;
}

.store-badge {
  color: var(--accent-cyan);
  font-size: 16px;
  font-weight: 600;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 4px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Seletor de Loja */
.custom-select-wrapper {
  position: relative;
  display: inline-block;
}

.custom-select {
  appearance: none;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 8px 36px 8px 14px;
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.custom-select:hover, .custom-select:focus {
  border-color: var(--accent-cyan);
}

.store-select {
  background-color: #141f33;
  border-color: rgba(0, 229, 255, 0.2);
  color: var(--text-white);
  font-weight: 600;
  min-width: 230px;
  padding: 9px 36px 9px 14px;
}

.select-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.select-chevron svg {
  width: 14px;
  height: 14px;
}

/* Metadados do Usuário & Sincronização */
.user-meta {
  text-align: right;
}

.greeting-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.user-greeting {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-white);
}

.sync-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.sync-btn:hover {
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.1);
}

.sync-icon {
  width: 16px;
  height: 16px;
}

.timestamp-row {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.bullet {
  margin: 0 4px;
}

/* BARRA DE FILTROS */
.filters-bar {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  background: var(--bg-card);
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

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

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

.month-stepper {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 4px;
}

.month-nav-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.month-nav-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-white);
}

.month-nav-btn svg {
  width: 14px;
  height: 14px;
}

.current-month-display {
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-white);
  min-width: 140px;
  text-align: center;
}

.date-input {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 7px 12px;
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 13px;
  outline: none;
  transition: all 0.2s;
}

.date-input:focus {
  border-color: var(--accent-cyan);
}

/* Botão Limpar Filtros */
.filter-actions {
  margin-left: auto;
}

.btn-clear-filters {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-clear-filters svg {
  width: 14px;
  height: 14px;
}

.btn-clear-filters:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-white);
  border-color: var(--text-secondary);
}

/* 3. GRID DE KPIS */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.25s ease;
}

.kpi-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.kpi-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

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

.kpi-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.kpi-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.kpi-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-red);
}

.kpi-badge.positive {
  color: var(--accent-green);
}

.kpi-sparkline-box {
  width: 100px;
  height: 40px;
}

.sparkline-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* 4. SEÇÃO DO MEIO (RANKING & DEPARTAMENTOS) */
.middle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

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

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.panel-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
}

.panel-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.view-toggle {
  display: flex;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 3px;
}

.toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.toggle-btn.active {
  background: var(--accent-cyan);
  color: #070a12;
  box-shadow: var(--shadow-glow-cyan);
}

/* PÓDIO 3D */
.podium-container {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  height: 260px;
  padding-top: 20px;
  padding-bottom: 8px;
}

.podium-pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px;
  position: relative;
}

.pillar-avatar-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
}

.podium-pillar.pillar-first {
  padding-top: 24px;
}

.podium-trophy {
  position: absolute;
  top: 0px;
  animation: floatTrophy 3s ease-in-out infinite;
}

.podium-trophy svg {
  width: 22px;
  height: 22px;
}

.avatar-ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  padding: 3px;
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.avatar-ring.gold-ring {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  box-shadow: var(--shadow-glow-gold);
}

.avatar-ring.silver-ring {
  background: linear-gradient(135deg, #e2e8f0, #64748b);
}

.avatar-ring.bronze-ring {
  background: linear-gradient(135deg, #f97316, #9a3412);
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #1e293b;
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.podium-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-white);
  max-width: 110px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.podium-val {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-top: 2px;
}

.pillar-pedestal {
  width: 100%;
  border-radius: 8px 8px 0 0;
  display: flex;
  justify-content: center;
  padding-top: 12px;
  font-size: 22px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
  transition: height 0.5s ease;
}

.pedestal-silver {
  height: 85px;
  background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
  border-top: 2px solid #94a3b8;
}

.pedestal-gold {
  height: 120px;
  background: linear-gradient(180deg, #d97706 0%, #78350f 100%);
  border-top: 2px solid #fbbf24;
}

.pedestal-bronze {
  height: 65px;
  background: linear-gradient(180deg, #9a3412 0%, #451a03 100%);
  border-top: 2px solid #ea580c;
}

/* Destaque para Vendedor Selecionado no Pódio */
.podium-pillar.selected-podium-pillar .avatar-ring {
  box-shadow: 0 0 20px #00e5ff, 0 0 35px rgba(0, 229, 255, 0.6) !important;
  transform: scale(1.08);
  transition: all 0.3s ease;
}

.podium-pillar.selected-podium-pillar .podium-name {
  color: #00e5ff !important;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

/* Modo Compacto do Pódio quando Vendedor fora do Top 3 estiver Selecionado */
.podium-container.compact-mode {
  height: 165px;
  gap: 14px;
  padding-top: 18px;
  transition: all 0.3s ease;
}

.podium-container.compact-mode .avatar-ring {
  width: 46px;
  height: 46px;
  margin-bottom: 4px;
}

.podium-container.compact-mode .pillar-avatar-box {
  margin-bottom: 6px;
}

.podium-container.compact-mode .podium-name {
  font-size: 11px;
  max-width: 95px;
}

.podium-container.compact-mode .podium-val {
  font-size: 11px;
}

.podium-container.compact-mode .pillar-pedestal {
  font-size: 16px;
  padding-top: 6px;
}

.podium-container.compact-mode .pedestal-gold {
  height: 55px;
}

.podium-container.compact-mode .pedestal-silver {
  height: 40px;
}

.podium-container.compact-mode .pedestal-bronze {
  height: 28px;
}

.podium-container.compact-mode .pillar-first {
  padding-top: 18px;
}

.podium-container.compact-mode .podium-trophy {
  top: 0px;
}

.podium-container.compact-mode .podium-trophy svg {
  width: 16px;
  height: 16px;
}

/* Cartão / Banner de Destaque para Vendedor Fora do Top 3 */
.outside-rank-banner {
  margin-top: 10px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: slideUpFade 0.3s ease;
}

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

.outside-rank-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.outside-rank-badge {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.outside-seller-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #0f172a;
  border: 2px solid var(--accent-cyan);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.outside-seller-meta {
  display: flex;
  flex-direction: column;
}

.outside-seller-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-white);
}

.outside-seller-detail {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.outside-rank-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.outside-seller-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.btn-view-in-list {
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--accent-cyan);
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-view-in-list:hover {
  background: var(--accent-cyan);
  color: #070a12;
  box-shadow: var(--shadow-glow-cyan);
}

/* Destaque na Lista de Vendedores */
.sellers-table tr.selected-seller-row td {
  background: rgba(0, 229, 255, 0.12) !important;
  color: #fff !important;
  font-weight: 600;
  border-bottom-color: rgba(0, 229, 255, 0.3) !important;
}

.badge-sel {
  font-size: 10px;
  background: #00e5ff;
  color: #070a12;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  letter-spacing: 0.04em;
}

/* TABELA DE VENDEDORES (MODO LISTA) */
.sellers-table-container {
  max-height: 260px;
  overflow-y: auto;
}

.sellers-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.sellers-table th {
  text-align: left;
  padding: 8px 12px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-subtle);
}

.sellers-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

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

.text-right {
  text-align: right !important;
}

/* BARRAS HORIZONTAIS DE DEPARTAMENTOS */
.bars-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 260px;
  justify-content: center;
}

.bar-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bar-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.bar-label {
  font-weight: 600;
  color: var(--text-primary);
}

.bar-values {
  display: flex;
  gap: 8px;
  font-size: 12px;
}

.bar-val-money {
  font-weight: 700;
  color: var(--text-white);
}

.bar-val-pct {
  color: var(--text-muted);
}

.bar-track {
  width: 100%;
  height: 14px;
  background: var(--bg-input);
  border-radius: 6px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00e5ff 0%, #29b6f6 100%);
  border-radius: 6px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 5. SEÇÃO INFERIOR: GRÁFICO TEMPORAL */
.timeline-card {
  padding: 20px 24px;
}

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

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.timeline-canvas-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  margin-top: 10px;
}

#timeline-chart {
  width: 100%;
  height: 100%;
}

/* Tooltip Interativo do Gráfico */
.chart-tooltip {
  position: absolute;
  pointer-events: none;
  background: #0f172a;
  border: 1px solid rgba(0, 229, 255, 0.4);
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  font-size: 12px;
  z-index: 50;
  transform: translate(-50%, -120%);
  transition: opacity 0.15s ease;
}

.tooltip-date {
  color: var(--text-muted);
  font-size: 11px;
  margin-bottom: 4px;
}

.tooltip-val {
  color: var(--accent-cyan);
  font-size: 14px;
  font-weight: 700;
}

.tooltip-count {
  color: var(--text-secondary);
  font-size: 11px;
  margin-top: 2px;
}

/* Utilitários */
.hidden {
  display: none !important;
}

/* Divisões de Serviços (STIHL vs Oficina Geral) */
.service-divisions-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 260px;
  justify-content: center;
}

.division-box {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px 16px;
  transition: all 0.2s ease;
}

.division-box:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}

.division-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.division-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.division-title-group h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
}

.division-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.stihl-badge {
  background: #ea580c;
  color: #fff;
}

.general-badge {
  background: #0284c7;
  color: #fff;
}

.division-total {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-white);
}

.division-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.division-stats-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Barra de Insumos e Peças Requisitadas da Loja para Oficina */
.requisition-info-bar {
  margin-top: 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px dashed rgba(245, 158, 11, 0.4);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.req-info-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.req-icon {
  font-size: 16px;
}

.req-texts {
  display: flex;
  flex-direction: column;
}

.req-title {
  font-size: 11px;
  font-weight: 700;
  color: #f59e0b;
}

.req-subtitle {
  font-size: 10px;
  color: var(--text-muted);
}

.req-badge {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

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

@media (max-width: 768px) {
  .app-sidebar {
    display: none;
  }
  .main-content {
    margin-left: 0;
    padding: 16px;
  }
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .filters-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-actions {
    margin-left: 0;
  }
}

