* { box-sizing: border-box; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  margin: 0;
  background: #f2f4f7;
  color: #1a1a1a;
}
header {
  background: #1d3557;
  color: white;
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 10;
}
header h1 { margin: 0 0 8px 0; font-size: 1.3rem; }
nav { display: flex; gap: 6px; overflow-x: auto; }
.tab-btn {
  background: #2a4a75;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  white-space: nowrap;
}
.tab-btn.active { background: #e63946; }
main { padding: 12px; max-width: 700px; margin: 0 auto; }
.tab { display: none; }
.tab.active { display: block; }
.card {
  background: white;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
form.card { display: flex; flex-direction: column; gap: 10px; }
label { display: flex; flex-direction: column; font-size: 0.85rem; gap: 4px; }
input, select {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}
button {
  background: #e63946;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}
.filebtn {
  display: block;
  text-align: center;
  background: #457b9d;
  color: white;
  padding: 14px;
  border-radius: 8px;
  cursor: pointer;
}
.filebtn input { display: none; }
#belegPreview { max-width: 100%; margin-top: 10px; border-radius: 6px; }
#ocrStatus, #saveStatus { font-size: 0.85rem; margin-top: 6px; }
.filterbar { display: flex; flex-wrap: wrap; gap: 8px; }
.filterbar select, .filterbar input { flex: 1; min-width: 120px; }
table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
th, td { padding: 6px 4px; text-align: left; border-bottom: 1px solid #eee; }
th { color: #555; }
.del-btn { background: none; color: #e63946; padding: 2px 6px; font-size: 1rem; }
