:root {
  color-scheme: light;
  --brand: #ff9800;
  --ink: #20312b;
  --muted: #5d6b65;
  --line: #dce5df;
  --surface: #ffffff;
  --canvas: #f3f6f3;
  font:
    16px/1.5 system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header,
nav,
main,
body > .notice {
  max-width: 1120px;
  margin: auto;
  padding: 20px 24px;
}
header,
nav,
.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
header {
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
nav:empty {
  display: none;
}
a {
  color: #246043;
  text-underline-offset: 3px;
}
.brand {
  color: var(--ink);
  font-size: 1.6rem;
  font-weight: 800;
  text-decoration: none;
}
.brand span {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
}
nav a {
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
}
nav a[aria-current='page'] {
  background: #e2ece4;
  font-weight: 700;
}
h1,
h2,
h3 {
  line-height: 1.2;
}
h1 {
  font-size: 1.9rem;
  margin: 8px 0 24px;
}
h2 {
  font-size: 1.25rem;
}
.card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 20px;
}
.login {
  max-width: 480px;
  margin: 36px auto;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.full {
  grid-column: 1 / -1;
}
label {
  display: block;
  font-weight: 600;
  margin-bottom: 12px;
}
input,
select,
textarea,
button,
.button {
  font: inherit;
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
}
input,
select,
textarea {
  display: block;
  width: 100%;
  color: var(--ink);
  background: white;
  margin-top: 6px;
}
textarea {
  min-height: 88px;
  resize: vertical;
}
button,
.button {
  cursor: pointer;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}
button.primary,
.button.primary {
  background: var(--brand);
  border-color: var(--brand);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
:focus-visible {
  outline: 3px solid #39875b;
  outline-offset: 2px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
}
.check input {
  width: auto;
  margin-top: 6px;
}
.notice,
.warning {
  border-radius: 8px;
  background: #fff0cc;
  padding: 14px;
  overflow-wrap: anywhere;
}
.error {
  background: #ffebe6;
  color: #8d2019;
}
.muted,
small {
  color: var(--muted);
}
.amount {
  font-size: 1.7rem;
  font-weight: 700;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th,
td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.money td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.map {
  height: 320px;
  border-radius: 10px;
  z-index: 0;
}
.prewrap {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.badge {
  display: inline-block;
  padding: 4px 8px;
  background: #eaf0ea;
  border-radius: 6px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  header,
  nav,
  main,
  body > .notice {
    padding: 16px;
  }
  .card {
    padding: 16px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .toolbar > button {
    flex-grow: 1;
  }
}
@media print {
  header,
  nav,
  #message,
  .no-print {
    display: none !important;
  }
  body,
  .card {
    background: white;
  }
  main,
  .card {
    padding: 0;
    border: 0;
  }
  tr {
    break-inside: avoid;
  }
}
