:root {
  --green-soft: #c7d948;
  --black: #0c0f12;
  --off-white: #f6f7f2;
  --gray-light: #e3e4e1;
  --gray-mid: #a9ada7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: var(--off-white);
  color: var(--black);
}

.header {
  background: var(--black);
  color: var(--off-white);
  padding: 16px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.header h1 {
  margin: 0;
  font-size: 20px;
}

.header p {
  margin: 6px 0 0;
  max-width: 860px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.subtitle {
  display: block;
  font-size: 11px;
  line-height: 1.2;
  color: var(--gray-mid);
  margin-top: 2px;
  font-weight: 400;
}

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--off-white);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
}

.nav a {
  color: var(--off-white);
  text-decoration: none;
  margin-left: 16px;
  padding: 8px 10px;
  border-radius: 8px;
}

.nav a.active,
.nav a:hover {
  background: var(--green-soft);
  color: var(--black);
}

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

.card {
  background: #fff;
  border: 1px solid var(--gray-light);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(12, 15, 18, 0.04);
}

.card h2 {
  margin-top: 0;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border-bottom: 1px solid var(--gray-light);
  padding: 8px;
  text-align: left;
  font-size: 14px;
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--gray-mid);
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}

.textarea {
  min-height: 100px;
  resize: vertical;
}

.btn {
  border: none;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--black);
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
}

.btn:hover {
  filter: brightness(0.95);
}

.btn-outline {
  background: #fff;
  color: var(--black);
  border: 1px solid var(--gray-mid);
}

.header .btn-outline {
  background: transparent;
  color: var(--off-white);
  border-color: rgba(255, 255, 255, 0.35);
}

.header .btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-small {
  padding: 7px 10px;
  font-size: 12px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}

.section-grid > .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.login-card {
  max-width: 720px;
  margin: 40px auto;
}

.login-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.login-form label,
.grid-2 label {
  display: grid;
  gap: 6px;
}

.inline-field {
  display: flex !important;
  align-items: center;
  gap: 12px;
}

.inline-field span {
  margin: 0;
  min-width: 180px;
}

.inline-field .input {
  width: 220px;
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-top: 16px;
}

.checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.actions-row {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.test-checkboxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  margin-top: 14px;
}

.test-checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.test-checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

#carInputTable td input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.card-alert {
  border-left: 4px solid #d76b5f;
}

.muted {
  color: #5d625e;
  font-size: 13px;
}

.pre {
  white-space: pre-wrap;
  background: #f2f3f0;
  border-radius: 8px;
  padding: 10px;
  min-height: 120px;
  overflow: auto;
}

@media (max-width: 920px) {
  .section-grid,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .header,
  .section-head {
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .inline-field {
    display: grid !important;
    gap: 6px;
  }

  .inline-field .input {
    width: 100%;
  }

  .test-checkboxes {
    grid-template-columns: 1fr;
  }
}

