/* css/dashboard.css - Estilos especificos do dashboard de custos */

/* ========== CUSTOS PAGE ========== */
.cost-summary-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .cost-summary-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .cost-summary-cards {
    grid-template-columns: 1fr;
  }
}

/* ========== CURVA ABC ========== */
.abc-section {
  margin-top: 24px;
}

.abc-section h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}

.abc-table-container {
  max-height: 500px;
  overflow-y: auto;
}

.abc-table-container table {
  font-size: 12px;
}

.abc-table-container td:last-child {
  text-align: right;
}

/* ========== PAGINATION ========== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
}

.pagination button {
  padding: 6px 12px;
  font-size: 13px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  border-radius: 6px;
  cursor: pointer;
  color: var(--text);
  transition: all 0.2s;
}

.pagination button:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.pagination button.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-info {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 0 12px;
}

/* ========== SEARCH HIGHLIGHT ========== */
mark {
  background: rgba(245, 166, 35, 0.3);
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
}

/* ========== TABS ========== */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
}

.tab-btn {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ========== STATS ROW ========== */
.stats-row {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

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

/* ========== PROGRESS BAR (CURVA ABC) ========== */
.progress-bar {
  width: 80px;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

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

.progress-bar-fill.a { background: var(--accent); }
.progress-bar-fill.b { background: var(--accent-light); }
.progress-bar-fill.c { background: var(--text-secondary); }
