/* public/style.css */
/* Basis-Styling für das Rechnungs-Dashboard */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f0f2f5;
  color: #1a1a2e;
  min-height: 100vh;
}

/* ===== Header ===== */
header {
  background: #1a1a2e;
  color: #fff;
  padding: 20px 32px;
}

header h1 {
  font-size: 1.6rem;
  font-weight: 700;
}

header .subtitle {
  font-size: 0.9rem;
  color: #a0aec0;
  margin-top: 4px;
}

/* ===== Main Layout ===== */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ===== Filter-Leiste ===== */
.filter-bar {
  background: #fff;
  border-radius: 10px;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

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

.filter-group label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #718096;
  letter-spacing: 0.04em;
}

.filter-group select,
.filter-group input[type="text"],
.filter-group input[type="month"] {
  padding: 8px 12px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 0.9rem;
  background: #f7fafc;
  min-width: 160px;
  outline: none;
  transition: border-color 0.2s;
}

.filter-group select:focus,
.filter-group input:focus {
  border-color: #4f6ef7;
}

.btn-filter {
  padding: 8px 20px;
  background: #4f6ef7;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  align-self: flex-end;
}

.btn-filter:hover {
  background: #3a57e8;
}

/* ===== KPI Karten ===== */
.kpi-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.kpi-card {
  background: #fff;
  border-radius: 10px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.kpi-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #718096;
  letter-spacing: 0.05em;
}

.kpi-value {
  font-size: 2.4rem;
  font-weight: 700;
  color: #1a1a2e;
}

/* ===== Log-Tabelle ===== */
.log-section {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.log-section h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #2d3748;
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead th {
  background: #f7fafc;
  text-align: left;
  padding: 10px 14px;
  font-weight: 600;
  color: #4a5568;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}

tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
  color: #2d3748;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: #f7fafc;
}

.placeholder-row td {
  color: #a0aec0;
  text-align: center;
  font-style: italic;
  padding: 32px;
}

/* Status-Badge */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}

.badge-success {
  background: #c6f6d5;
  color: #276749;
}

.badge-error {
  background: #fed7d7;
  color: #9b2c2c;
}
