:root {
  --bg: #0f172a;
  --card: #1e293b;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --border: #334155;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --success: #22c55e;
  --warn: #f59e0b;
  --warn-hover: #d3890a;
  --error: #ef4444;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container {
  max-width: 900px;
  margin: 30px auto;
  padding: 16px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
}

.title {
  margin: 0;
  font-size: 1.6rem;
}
.subtitle {
  color: var(--muted);
  margin: 4px 0 0 0;
}

.hidden {
  display: none;
}

.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.input,
.textarea {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #0f172a;
  color: var(--text);
  font-size: 15px;
}

.textarea {
  width: 100%;
  min-height: 80px;
  resize: vertical;
}

.btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 15px;
  transition: 0.2s;
}
.btn:hover {
  background: var(--accent-hover);
}

.linkbtn {
  border: 1px solid var(--border);
  background: transparent;
  border-radius: var(--radius);
  padding: 6px 10px;
  color: var(--text);
  cursor: pointer;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 14px;
}

.user-section {
  margin-top: 10px;
}
.label {
  font-size: 14px;
  color: var(--muted);
}

.user-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.user-pill {
  background: #334155;
  border-radius: 999px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text);
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
.table th,
.table td {
  padding: 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
}
.table th {
  color: var(--muted);
}

.badge,
.badge-warn {
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
}
.badge {
  background: #14532d;
  color: #86efac;
}
.badge-warn {
  background: #78350f;
  color: #facc15;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.smallmuted {
  font-size: 13px;
  color: var(--muted);
}

.bottomgap {
  margin-bottom: 8px;
}

.expand-header {
  cursor: pointer;
  padding: 10px 0;
}

.status-bar {
  font-weight: 600;
}
.status-green {
  color: var(--success);
}
.status-orange {
  color: var(--warn);
}
.status-red {
  color: var(--error);
}

.delete-bill-btn {
  background: #ff4d4d;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 12px;
}
.delete-bill-btn:hover {
  background: #e60000;
}
.filter-row {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.filter-btn {
  background-color: #444;
}
.filter-btn:hover {
  background-color: #185d2b;
}
.filter-btn.active {
  background-color: #217c39;
  color: #fff;
}
.upload-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--warn);
  color: white;
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s;
  width: fit-content;
}
.upload-label:hover {
  background: var(--warn-hover);
}
.upload-label svg {
  width: 18px;
  height: 18px;
}
#billImage {
  display: none;
}
