/* Import all component styles */
/* Global design tokens and base typography for the document root */
:root {
  --ink: #203431;
  --muted: #73817C;
  --line: #E3E8E3;
  --paper: #F6F7F3;
  --green: #245F4E;
  --orange: #E9A56C;
  --white: #FFFFFF;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
}

/* Include padding and border in every element's width calculation */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Form controls inherit the page font instead of the browser default */
button, input, select, textarea {
  font: inherit;
}

/* Suppress the grey flash overlay when tapping on touch devices */
button, a, input, select, textarea, summary {
  -webkit-tap-highlight-color: transparent;
}

button, summary {
  cursor: pointer;
}

/* Clearly visible keyboard focus ring (accessibility) */
:focus-visible {
  outline: 3px solid #C8793D;
  outline-offset: 4px;
}

/* Headline and paragraph scale */
h1, h2, h3, p {
  margin-top: 0;
}

/* Page title scales with the viewport between 27px and 38px */
h1 {
  font-size: clamp(27px, 2.8vw, 38px);
  letter-spacing: -1.3px;
  line-height: 1.18;
  margin-bottom: 12px;
  font-weight: 650;
}

h2 {
  font-size: 18px;
  letter-spacing: -0.4px;
}

h3 {
  font-size: 17px;
}

p {
  line-height: 1.65;
}

/* Secondary text colour */
.muted {
  color: var(--muted);
}

/* Small uppercase label above a heading */
.eyebrow {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.7px;
  color: var(--green);
  margin-bottom: 13px;
}

/* Fixed dark navigation column on the left edge */
.sidebar {
  width: 244px;
  background: #182A29;
  color: #D3DCD5;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  padding: 32px 20px;
  z-index: 100;
}

/* Logo plus product name at the top of the sidebar */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 650;
  color: white;
  letter-spacing: -0.5px;
}

.brand:hover {
  text-decoration: none;
}

/* Subtitle underneath the product name */
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #A4B3AB;
  margin-top: 7px;
}

/* Square logo tile with the initials */
.brand-mark {
  width: 61px;
  height: 61px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: #182A29;
  border-radius: 15px;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -5px;
  padding-right: 5px;
}

/* Nudge the initials down for optical centring */
.brand-mark span {
  transform: translateY(5px);
}

/* Compact logo variant used in the sidebar */
.brand-mark.small {
  width: 40px;
  height: 42px;
  border-radius: 10px;
  font-size: 23px;
  letter-spacing: -4px;
  flex-shrink: 0;
}

/* Box showing the currently selected fire station */
.station {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 30px 0 34px;
  border: 1px solid #344643;
  padding: 12px;
  border-radius: 7px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* Small green dot indicating an active status */
.status-dot {
  width: 6px;
  height: 6px;
  background: #9ABB9A;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Section caption above the navigation list */
.nav-label {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #839B91;
  padding: 0 14px;
  margin-bottom: 14px;
}

/* Vertical stack of navigation links */
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sidebar nav a {
  padding: 13px 14px;
  color: #BBC9C1;
  border-radius: 7px;
  font-size: 12px;
  display: flex;
  gap: 13px;
  align-items: center;
}

/* Icon in front of a navigation label, fixed width so labels line up */
.sidebar nav a span {
  font-size: 18px;
  width: 20px;
  line-height: 19px;
  text-align: center;
  color: #91A69B;
}

.sidebar nav a:hover {
  background: #263C36;
  text-decoration: none;
}

/* Highlight for the page currently being viewed */
.sidebar nav a.active {
  background: #344D42;
  color: #FFFFFF;
}

.sidebar nav a.active span {
  color: #EAB582;
}

/* User area pinned to the bottom of the sidebar */
.sidebar-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 24px 0 0;
  border-top: 1px solid #34433F;
  font-size: 12px;
}

.sidebar-bottom small {
  display: block;
  font-size: 10px;
  color: #8FA298;
  margin-top: 5px;
}

/* Round placeholder for the user's initials */
.avatar {
  height: 34px;
  width: 34px;
  background: #34483F;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #D7E2D5;
}

/* Push the logout form to the right edge */
.sidebar-bottom form {
  margin-left: auto;
}

/* Icon-only logout button */
.logout {
  background: none;
  border: 0;
  color: #ACBEB3;
  font-size: 23px;
}

/* Content area next to the sidebar */
.workspace {
  margin-left: 244px;
}

/* Breadcrumb bar with the current date above the content */
.topbar {
  height: 77px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
  background: #FCFDFB;
  font-size: 11px;
  color: #65756D;
}

/* Breadcrumb separator */
.slash {
  padding: 0 13px;
  color: #B8C1B8;
}

/* Monospaced digits so the date does not jitter */
.today {
  font-variant-numeric: tabular-nums;
}

/* Page title scales with the viewport between 27px and 38px */
h1 {
  font-size: clamp(27px, 2.8vw, 38px);
  letter-spacing: -1.3px;
  line-height: 1.18;
  margin-bottom: 12px;
  font-weight: 650;
}

h2 {
  font-size: 18px;
  letter-spacing: -0.4px;
}

h3 {
  font-size: 17px;
}

p {
  line-height: 1.65;
}

/* Secondary text colour */
.muted {
  color: var(--muted);
}

/* Small uppercase label above a heading */
.eyebrow {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.7px;
  color: var(--green);
  margin-bottom: 13px;
}

/* Default button, also used for link elements */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #D6DED6;
  background: white;
  color: var(--ink);
  padding: 12px 17px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.3;
}

.button:hover {
  background: #EDF1E9;
  text-decoration: none;
}

/* Filled button for the main action of a page */
.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.button.primary:hover {
  background: #194C3D;
}

/* Button for destructive actions such as deleting */
.button.danger {
  color: #97392B;
  border-color: #ECCDC5;
}

/* Shared layout for all message boxes */
.notice, .alert, .success {
  padding: 15px 18px;
  border-radius: 7px;
  margin: 0 0 22px;
  font-size: 12px;
  line-height: 1.7;
}

/* Hint or warning */
.notice {
  color: #826126;
  background: #F8F0DF;
  border: 1px solid #EEE1C2;
}

/* Error message */
.alert {
  background: #FBEAE6;
  color: #9B3624;
}

/* Confirmation message */
.success {
  background: #E6F2E8;
  color: #326245;
}

/* "Back" link above a detail view */
.back {
  font-size: 12px;
  display: inline-block;
  margin-bottom: 22px;
}

/* Two-column grid for forms and detail lists */
.form-grid, .details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

/* Field spanning the full grid width */
.wide {
  grid-column: 1/-1;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 9px;
}

/* Shared styling for text fields, selects and textareas (checkboxes excluded) */
input:not([type=checkbox]), select, textarea {
  width: 100%;
  border: 1px solid #D7DFD6;
  border-radius: 6px;
  background: #FFFFFF;
  padding: 12px;
  color: var(--ink);
  line-height: 1.5;
  min-width: 0;
}

/* Only allow vertical resizing so the layout stays intact */
textarea {
  resize: vertical;
}

/* Red border on fields the server marked as invalid */
input[aria-invalid=true], textarea[aria-invalid=true] {
  border-color: #B14832;
}

/* Help text below a field */
.field small {
  display: block;
  font-size: 11px;
  line-height: 1.6;
  margin-top: 7px;
  color: var(--muted);
}

/* Validation message for the field */
.field small.field-error {
  color: #AD432B;
}

/* Right-aligned action bar at the end of a form */
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 28px;
}

/* Checkbox with its label on one line */
.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  white-space: nowrap;
  margin: 0;
  font-weight: 400;
}

input[type=checkbox] {
  accent-color: var(--green);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.field .checkbox {
  margin-top: 12px;
}

/* Search and filter bar above a table */
.filters {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  margin-top: 22px;
}

/* Search field grows, but not past 480px */
.filters input[type=search] {
  max-width: 480px;
  flex: 1;
}

.filters a {
  font-size: 11px;
}

/* Visually hidden, still read out by screen readers */
.search-label, .sr-only {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Panel holding a table, so the table reaches the card edges */
.record-panel {
  padding: 0;
  overflow: hidden;
}

/* Horizontal scroll container for wide tables */
.table-scroll {
  overflow: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}

th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #7B877E;
  background: #FBFCF9;
  padding: 16px 23px;
  font-weight: 600;
}

/* Cap cell width and break long strings such as URLs */
td {
  padding: 20px 23px;
  border-top: 1px solid var(--line);
  max-width: 350px;
  overflow-wrap: anywhere;
}

td small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
}

/* Emphasised name in the first column of a row */
.record-name {
  font-weight: 600;
  color: var(--ink);
  font-size: 13px;
}

/* Highlight for an overdue date */
td small.overdue {
  color: #A66A2A;
}

/* Arrow at the end of a clickable row */
.row-arrow {
  font-size: 18px;
}

/* Generic white content card */
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
}

/* Panel header with title and optional badge or link */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}

.section-heading h2 {
  font-size: 15px;
  margin: 0;
}

/* Small status pill */
.badge {
  display: inline-block;
  font-size: 10px;
  background: #EDF0E9;
  padding: 5px 8px;
  border-radius: 5px;
  white-space: nowrap;
  color: #687565;
}

/* Green: everything in order */
.badge.green {
  color: #2C7054;
  background: #E9F3EC;
}

/* Amber: action required soon */
.badge.amber {
  color: #9D6429;
  background: #FBEFDC;
}

/* Placeholder shown when a list has no entries */
.empty {
  text-align: center;
  padding: 65px 20px;
}

.empty h2, .empty h3 {
  margin-bottom: 8px;
}

.empty p {
  color: var(--muted);
  font-size: 12px;
  max-width: 360px;
  margin: 0 auto 20px;
}

/* Icon tile above the empty-state text */
.empty-icon {
  width: 49px;
  height: 49px;
  border-radius: 13px;
  background: #EFF3EB;
  color: #719074;
  font-size: 26px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
}

/* Smaller empty state for use inside a panel */
.empty.compact {
  padding: 26px 8px 12px;
}

.empty.compact h3 {
  font-size: 13px;
}

.empty.compact p {
  font-size: 11px;
  max-width: 290px;
}

.empty.compact .empty-icon {
  width: 42px;
  height: 42px;
  font-size: 21px;
}

/* Welcome block at the top of the dashboard */
.hero {
  background: #E8EDDE;
  border: 1px solid #DCE4D3;
  border-radius: 12px;
  min-height: 255px;
  display: flex;
  position: relative;
  overflow: hidden;
  padding: 31px 35px;
}

/* Text column stays above the decorative artwork */
.hero > div:first-child {
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: block;
  letter-spacing: 1.7px;
  font-size: 9px;
  font-weight: 700;
  color: #6A7D5D;
  margin-bottom: 20px;
}

.hero h2 {
  font-size: 31px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.hero p {
  color: #77806B;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.hero a {
  font-size: 11px;
  font-weight: 650;
}

/* Arrow after the hero link */
.hero a span {
  margin-left: 14px;
}

/* Decorative graphic on the right side of the hero block */
.hero-art {
  position: absolute;
  right: 5%;
  top: 0;
  width: 340px;
  height: 100%;
  display: grid;
  place-items: center;
}

/* Concentric circles behind the badge */
.ring {
  position: absolute;
  border: 1px solid #BDCBAA;
  border-radius: 50%;
  width: 240px;
  height: 240px;
}

.ring.two {
  width: 300px;
  height: 300px;
  border-style: dashed;
  opacity: 0.65;
}

.ring.three {
  width: 175px;
  height: 175px;
}

/* Badge shape cut out with clip-path, holding the cross glyph */
.cross {
  font-size: 123px;
  font-weight: 300;
  color: #657E59;
  background: #DBE4CE;
  clip-path: polygon(50% 0, 91% 17%, 87% 64%, 70% 87%, 50% 100%, 30% 87%, 13% 64%, 9% 17%);
  width: 140px;
  height: 162px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 13px;
  transform: rotate(-9deg);
}

/* Caption below the hero artwork */
.art-label {
  position: absolute;
  bottom: 22px;
  font-size: 8px;
  letter-spacing: 2.3px;
  color: #809270;
}

/* Four-column row of key figures */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 23px 0 30px;
}

/* Single key figure card, optionally a link */
.stat {
  display: block;
  background: white;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 9px;
  color: var(--ink);
}

a.stat:hover {
  border-color: #AFC0B0;
  text-decoration: none;
}

/* Card header: label on the left, icon on the right */
.stat > span {
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: #64736A;
}

.stat b {
  color: #7E9183;
  font-size: 19px;
  font-weight: 400;
}

/* The figure itself */
.stat strong {
  display: block;
  font-size: 34px;
  letter-spacing: -1px;
  font-weight: 600;
  margin: 11px 0 6px;
}

.stat small {
  color: #829087;
  font-size: 10px;
}

/* Orange figure for values that need attention */
.stat.attention strong {
  color: #B37337;
}

/* Two-column dashboard layout, wider column on the left */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 23px;
}

/* Row in the quick-access list with icon, text and arrow */
.quick-link {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 17px 0;
  border-top: 1px solid #EDF0EB;
  color: var(--ink);
}

.quick-link:hover {
  text-decoration: none;
  color: var(--green);
}

/* No separator above the first row */
.quick-link:first-of-type {
  border-top: 0;
}

/* Arrow pushed to the right edge */
.quick-link > span:last-child {
  margin-left: auto;
  color: #849786;
}

.quick-link strong {
  font-size: 12px;
  font-weight: 600;
}

/* Description line under a quick link or deadline */
.quick-link small, .deadline small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}

/* Shared icon tile for quick links and deadlines */
.quick-icon, .deadline-icon {
  height: 35px;
  width: 35px;
  border-radius: 8px;
  background: #F2F3EB;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: #799172;
  flex-shrink: 0;
}

/* Row in the list of upcoming deadlines */
.deadline {
  display: flex;
  gap: 11px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 15px 0;
  color: var(--ink);
  font-size: 12px;
}

/* Due date right-aligned in the deadline row */
.due-date {
  color: #A86D39;
  font-size: 10px;
  margin-left: auto;
  white-space: nowrap;
}

/* Definition list of a record's fields */
.details {
  margin: 0;
}

.details dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
}

.details dd {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  overflow-wrap: anywhere;
}

/* Checklist entries as tappable rows */
.checklist label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  padding: 14px;
  background: #F5F7F1;
  border-radius: 6px;
  font-weight: 400;
}

/* Strike through the label of a checked item */
.checklist input:checked + span {
  text-decoration: line-through;
  color: var(--muted);
}

/* Danger zone at the bottom of a detail page */
.delete-section {
  margin-top: 26px;
  color: #A6513D;
  font-size: 12px;
}

.delete-section p {
  margin-top: 15px;
}

/* Frame around the Leaflet map */
.map-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 25px;
  background: white;
}

/* Attribution or hint line under the map */
.map-panel > p {
  font-size: 10px;
  color: var(--muted);
  padding: 12px 18px;
  margin: 0;
}

/* Map container; low z-index keeps Leaflet panes below the sidebar */
#water-map {
  height: 340px;
  background: #E8EDDF;
  z-index: 1;
}

/* Message shown when the map cannot be loaded */
.map-fallback {
  padding: 110px 25px;
  text-align: center;
  color: #6C7D65;
  font-size: 12px;
}

/* Full-page centred layout of the login screen */
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 25px;
  background: radial-gradient(ellipse at 10% 10%, #E0E9D5, transparent 60%), var(--paper);
}

/* Login form card */
.login-card {
  width: 100%;
  max-width: 450px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 40px;
  box-shadow: 0 20px 70px rgba(29, 53, 32, 0.0392156863);
}

.login-card .brand-mark {
  margin-bottom: 30px;
}

.login-card h1 {
  font-size: 40px;
}

.login-card .muted {
  font-size: 13px;
  margin-bottom: 28px;
}

.login-card form input {
  margin-bottom: 18px;
}

/* Full-width button, label and icon pushed apart */
.full {
  width: 100%;
  justify-content: space-between;
}

.login-footer {
  font-size: 10px;
  color: #879181;
  text-align: center;
  margin: 26px 0 0;
}

/* Fine print below a content block */
.footnote {
  font-size: 10px;
  color: #899288;
  margin: 21px 0;
}

footer {
  margin-top: 42px;
  padding: 23px 0;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: #89948B;
}

/* Break long code strings instead of overflowing */
code {
  overflow-wrap: anywhere;
}

main {
  padding: 30px 25px 0;
}

.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Wide screens: a little more breathing room */
@media (min-width: 1500px) {
  main#main {
    padding-top: 50px;
  }
  .hero {
    min-height: 290px;
  }
  .hero-art {
    right: 12%;
  }
}
/* Small laptops: narrower sidebar and tighter spacing */
@media (max-width: 1150px) {
  .sidebar {
    width: 215px;
    padding: 27px 15px;
  }
  .workspace {
    margin-left: 215px;
  }
  main#main {
    padding: 30px 25px 0;
  }
  .topbar {
    padding: 0 25px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px 12px;
  }
  .stat > span {
    font-size: 10px;
  }
  .hero-art {
    right: 0;
    width: 270px;
  }
  .dashboard-grid {
    gap: 15px;
  }
  .panel {
    padding: 20px;
  }
  .record-panel {
    padding: 0;
  }
  /* Filter bar may wrap onto several lines */
  .filters {
    flex-wrap: wrap;
  }
  .filters input[type=search] {
    max-width: none;
    flex-basis: 50%;
  }
}
/* Tablets and phones: sidebar becomes a horizontal bar at the top */
@media (max-width: 800px) {
  .sidebar {
    position: relative;
    width: auto;
    padding: 18px 20px;
  }
  .brand {
    font-size: 17px;
  }
  /* Hide secondary sidebar content in the narrow layout */
  .station, .nav-label, .sidebar-bottom {
    display: none;
  }
  /* Navigation as a horizontally scrollable row */
  .sidebar nav {
    flex-direction: row;
    overflow: auto;
    margin-top: 20px;
    gap: 6px;
    padding-bottom: 3px;
  }
  .sidebar nav a {
    white-space: nowrap;
    padding: 10px;
    font-size: 11px;
  }
  .sidebar nav a span {
    font-size: 15px;
    width: auto;
  }
  /* Show the logout button again, top right of the bar */
  .sidebar-bottom {
    display: flex;
    position: absolute;
    right: 20px;
    top: 22px;
    border: 0;
    padding: 0;
  }
  /* Avatar and user details stay hidden */
  .sidebar-bottom > .avatar, .sidebar-bottom > div {
    display: none;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: 51px;
    padding: 0 22px;
  }
  main#main {
    padding: 28px 22px 0;
  }
  /* Fade the artwork back so the text stays readable */
  .hero-art {
    opacity: 0.65;
    right: -25px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .page-heading {
    flex-wrap: wrap;
    gap: 18px;
  }
  .hero {
    padding: 27px;
    min-height: 280px;
  }
  .hero h2 {
    font-size: 29px;
  }
  .hero-art {
    width: 210px;
  }
  /* Scale the rings and badge down with the artwork */
  .hero .ring {
    width: 200px;
    height: 200px;
  }
  .hero .ring.two {
    width: 260px;
    height: 260px;
  }
  .hero .ring.three {
    width: 140px;
    height: 140px;
  }
  .cross {
    width: 113px;
    height: 137px;
    font-size: 95px;
  }
  .hero p {
    max-width: 200px;
  }
  .hero-tag {
    font-size: 8px;
  }
  .art-label {
    display: none;
  }
  /* Forms and detail lists collapse to a single column */
  .form-grid, .details {
    grid-template-columns: 1fr;
  }
  .wide {
    grid-column: auto;
  }
  /* Search field takes a full row of its own */
  .filters input[type=search] {
    flex-basis: 100%;
  }
  .filters .checkbox {
    font-size: 11px;
  }
  .filters {
    gap: 12px;
  }
  th, td {
    padding: 16px;
  }
  /* Keep a minimum width so the table stays legible and scrolls instead */
  .table-scroll table {
    min-width: 570px;
  }
  .login-card {
    padding: 30px;
  }
  .form-actions .button {
    padding: 12px;
  }
  footer {
    gap: 20px;
  }
  footer span {
    text-align: right;
  }
  #water-map {
    height: 290px;
  }
}
/* Very narrow phones */
@media (max-width: 430px) {
  /* Move the artwork mostly out of frame */
  .hero-art {
    right: -95px;
    opacity: 0.4;
  }
  .hero > div:first-child {
    max-width: 100%;
  }
  h1 {
    font-size: 28px;
  }
  /* Page action spans the full width */
  .page-heading .button {
    width: 100%;
  }
  .hero a {
    font-size: 10px;
  }
  .stat small {
    font-size: 9px;
  }
}
/* Print: drop navigation and interactive elements, plain layout */
@media print {
  .sidebar, .topbar, .page-heading > .button, .delete-section, footer, .back {
    display: none;
  }
  .workspace {
    margin: 0;
  }
  main#main {
    padding: 0;
  }
  .panel {
    border: 0;
  }
  /* Detail lists stack so nothing is cut off at a page break */
  .details {
    display: block;
  }
  .details > div {
    margin-bottom: 18px;
  }
  /* Grey border instead of a coloured background to save ink */
  .notice {
    background: white;
    border: 1px solid #888888;
  }
  body {
    background: white;
  }
}

/*# sourceMappingURL=app.css.map */
