/* Shared, plain CSS. No framework, no preprocessor, no build step — matches
   the frontend constraint for the whole app. Kept deliberately simple: this
   runs on a low-spec kiosk laptop used quickly at the firehall door. */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #1f2a24;
  color: #1a1a1a;
  font-size: 18px;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.card {
  background: #fff;
  border-radius: 8px;
  padding: 28px 26px;
  margin: 0 0 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

h1 { font-size: 26px; margin: 0 0 6px; }
h2 { font-size: 20px; margin: 24px 0 10px; }
p.muted { color: #555; margin: 0 0 16px; }

label { display: block; font-weight: 600; margin: 14px 0 6px; }

input[type="text"], input[type="password"], input[type="number"],
input[type="date"], select, textarea {
  width: 100%;
  font-size: 18px;
  padding: 10px 12px;
  border: 1px solid #999;
  border-radius: 4px;
  font-family: inherit;
}

textarea { min-height: 80px; resize: vertical; }

button {
  font-size: 18px;
  padding: 12px 22px;
  border-radius: 4px;
  border: none;
  background: #3f6b4f;
  color: #fff;
  cursor: pointer;
  margin: 14px 8px 0 0;
}
button.secondary { background: #eee; color: #333; border: 1px solid #999; }
button.danger { background: #a3342b; }
button:disabled { opacity: .5; cursor: not-allowed; }

a.link-button {
  display: inline-block;
  padding: 12px 22px;
  margin: 6px 8px 6px 0;
  background: #3f6b4f;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
}

.banner {
  padding: 12px 16px;
  border-radius: 4px;
  margin: 0 0 16px;
  font-weight: 600;
}
.banner.error { background: #fbe2e0; color: #7d2119; border: 1px solid #d98c85; }
.banner.warn { background: #fff3cd; color: #7a5b00; border: 1px solid #e6c760; }
.banner.info { background: #e5eee8; color: #24402d; border: 1px solid #a9c5b3; }

table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #ddd; }
tr.inactive { color: #888; }
.badge {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eee;
  color: #666;
  margin-left: 6px;
}

.checklist-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed #ddd;
}
.checklist-row input[type="checkbox"] { width: 24px; height: 24px; }
.checklist-row .fire-num { font-variant-numeric: tabular-nums; color: #666; width: 32px; }
.checklist-row .warn-note { color: #a3342b; font-size: 13px; margin-left: auto; }

nav.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  padding: 4px 4px 20px;
}
nav.top .home-link { color: #cfe3d6; text-decoration: none; font-weight: 600; }

form.inline-filters { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 16px; }
form.inline-filters > div { flex: 1; min-width: 140px; }

@media print {
  nav.top, .no-print { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; }
  .print-page { page-break-after: always; }
  .print-page:last-child { page-break-after: auto; }
}
