/* ── HEADER ── */
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 2rem 0;
}

.dash-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.3rem;
}

.dash-header p {
  font-size: 0.9rem;
  color: #888888;
}

.new-invoice-btn {
  background: #1D9E75;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s;
  white-space: nowrap;
}

.new-invoice-btn:hover {
  background: #0F6E56;
}

/* ── WRAP ── */
.dash-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 2rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ── STATS ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-card {
  background: #111111;
  border: 1px solid #1f1f1f;
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  font-size: 1.8rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.stat-value.green {
  color: #1D9E75;
}

.stat-value.yellow {
  color: #F0A500;
}

.stat-label {
  font-size: 0.8rem;
  color: #888888;
}

/* ── SECTION ── */
.dash-section {
  background: #111111;
  border: 1px solid #1f1f1f;
  border-radius: 16px;
  padding: 1.5rem;
}

.dash-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.dash-section-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
}

.filter-wrap select {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  color: #ffffff;
  padding: 0.5rem 0.8rem;
  font-size: 0.85rem;
  outline: none;
}

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  display: none;
}

.empty-state.visible {
  display: block;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.empty-state p {
  font-size: 0.9rem;
  color: #888888;
  margin-bottom: 1.5rem;
}

.empty-btn {
  background: #1D9E75;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s;
}

.empty-btn:hover {
  background: #0F6E56;
}

/* ── INVOICE ROWS ── */
.invoice-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #1a1a1a;
}

.invoice-row:last-child {
  border-bottom: none;
}

.invoice-row-number {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
}

.invoice-row-client {
  font-size: 0.85rem;
  color: #888888;
}

.invoice-row-amount {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

.invoice-row-date {
  font-size: 0.8rem;
  color: #666666;
}

.status-badge {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-badge.paid {
  background: #0d1f1a;
  color: #1D9E75;
  border: 1px solid #1D9E75;
}

.status-badge.pending {
  background: #1f1800;
  color: #F0A500;
  border: 1px solid #F0A500;
}

.status-badge.overdue {
  background: #1f0d0d;
  color: #E24B4A;
  border: 1px solid #E24B4A;
}

.invoice-actions {
  display: flex;
  gap: 0.5rem;
}

.mark-paid-btn {
  background: transparent;
  border: 1px solid #1D9E75;
  color: #1D9E75;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.mark-paid-btn:hover {
  background: #1D9E75;
  color: #ffffff;
}

.delete-btn {
  background: transparent;
  border: 1px solid #2a2a2a;
  color: #666666;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.delete-btn:hover {
  border-color: #E24B4A;
  color: #E24B4A;
}

/* ── QUICK ACTIONS ── */
.quick-actions h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1rem;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.action-card {
  background: #111111;
  border: 1px solid #1f1f1f;
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.action-card:hover {
  border-color: #1D9E75;
}

.action-icon {
  font-size: 1.5rem;
}

.action-text h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.action-text p {
  font-size: 0.8rem;
  color: #888888;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .dash-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 1rem 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .invoice-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .invoice-row-date {
    display: none;
  }

  .actions-grid {
    grid-template-columns: 1fr;
  }

  .dash-wrap {
    padding: 1.5rem 1rem 4rem;
  }
}

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