body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0b1220;
  color: #e2e8f0;
}

.site-header {
  background: #020617;
  color: #f8fafc;
  padding: 14px 24px;
  border-bottom: 1px solid #1e293b;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-header a {
  color: #f8fafc;
  text-decoration: none;
}

.container {
  padding: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  background: #111827;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  border: 1px solid #1f2937;
}

.title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.title-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

.company-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.company-list li {
  margin-bottom: 8px;
}

.company-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
  margin: 14px 0 16px;
}

.company-btn {
  display: block;
  text-align: center;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid #1e40af;
  background: #1d4ed8;
  color: #f8fafc;
  text-decoration: none;
  font-weight: 600;
}

.company-btn:hover {
  background: #1e40af;
}

.entry-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 16px 0 20px;
}

.filter-bar {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0 8px;
}

.filter-bar label {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  gap: 6px;
}

.entry-form label {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  gap: 6px;
}

.notes-field {
  grid-column: span 2;
}

input,
button {
  font-size: 14px;
  padding: 9px;
  border: 1px solid #334155;
  border-radius: 6px;
  background: #0f172a;
  color: #e2e8f0;
}

button {
  align-self: end;
  background: #1d4ed8;
  color: #f8fafc;
  cursor: pointer;
  border: 1px solid #1e40af;
}

.secondary-btn {
  background: #334155;
  border-color: #475569;
}

.danger-btn {
  background: #b91c1c;
  border-color: #7f1d1d;
}

.sort-link {
  color: #93c5fd;
  text-decoration: none;
}

.actions-cell {
  display: flex;
  gap: 10px;
  align-items: center;
}

.actions-cell form {
  margin: 0;
}

.narrow-card {
  max-width: 420px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.muted {
  color: #94a3b8;
}

.error {
  color: #f87171;
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

th,
td {
  border: 1px solid #334155;
  padding: 10px;
  text-align: left;
}

th {
  background: #1e293b;
}

tfoot td {
  background: #0f172a;
}
