/* Mobile-first: the base styles target a 390px phone, wider screens only add room. */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1c2430; background: #f4f6f8; }
a { color: #0b5cad; }
.topbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .6rem .75rem; background: #fff; border-bottom: 1px solid #dde3ea; }
.brand { font-weight: 700; text-decoration: none; color: inherit; margin-right: auto; }
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; order: 3; width: 100%; }
.nav a { padding: .4rem 0; }
.actions { display: flex; align-items: center; gap: .5rem; }
.actions form { margin: 0; }
.content { max-width: 40rem; margin: 0 auto; padding: .75rem; }
.card { background: #fff; border: 1px solid #dde3ea; border-radius: .5rem; padding: 1rem; margin-bottom: .75rem; }
h1 { font-size: 1.35rem; margin: 0 0 .75rem; }
h2 { font-size: 1.1rem; margin: 0 0 .75rem; }
.field { margin-bottom: .75rem; }
.field label { display: block; font-weight: 600; margin-bottom: .25rem; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=tel], input[type=number], input[type=date], input[type=datetime-local], textarea, select { width: 100%; min-height: 2.75rem; padding: .5rem .6rem; font: inherit; border: 1px solid #b8c2cc; border-radius: .375rem; background: #fff; }
.help { font-size: .875rem; color: #55606c; }
.help ul { margin: .25rem 0 0; padding-left: 1.2rem; }
.error { color: #b42318; margin: .25rem 0; }
.btn { display: inline-block; min-height: 2.75rem; padding: .5rem .9rem; font: inherit; color: #1c2430; background: #fff; border: 1px solid #b8c2cc; border-radius: .375rem; text-decoration: none; cursor: pointer; }
.btn.primary { color: #fff; background: #0b5cad; border-color: #0b5cad; }
.btn.is-active { border-color: #0b5cad; box-shadow: inset 0 0 0 1px #0b5cad; }
.shift.is-on { color: #fff; background: #1a7f37; border-color: #1a7f37; }
.messages { list-style: none; margin: 0 0 .75rem; padding: 0; }
.message { padding: .6rem .75rem; border-radius: .375rem; background: #e6f4ea; border: 1px solid #b7dfc2; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: 0; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.lang-switch { display: flex; gap: .5rem; justify-content: center; }
@media (min-width: 40rem) {
  .nav { order: 0; width: auto; }
  .brand { margin-right: 0; }
  .actions { margin-left: auto; }
}
textarea { resize: vertical; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; }
.page-head h1 { margin: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; }
.tab { padding: .5rem .75rem; border: 1px solid #b8c2cc; border-radius: 1rem; background: #fff; color: #1c2430; text-decoration: none; }
.tab.is-active { color: #fff; background: #0b5cad; border-color: #0b5cad; }
.filter-row { display: grid; grid-template-columns: 1fr; gap: 0 .75rem; }
.lead-rows, .plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: .35rem 0; border-bottom: 1px solid #eef1f4; overflow-wrap: anywhere; }
.lead-row { display: flex; align-items: center; gap: .75rem; }
.lead-link { display: flex; flex-direction: column; flex: 1; min-width: 0; color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.lead-row form { margin: 0; }
.badge { display: inline-block; padding: .1rem .5rem; font-size: .85rem; border-radius: 1rem; background: #e8eef5; }
.badge.warn, .warn { color: #b42318; }
.muted { color: #55606c; font-size: .9rem; }
.btn.danger { color: #fff; background: #b42318; border-color: #b42318; }
.button-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.button-row form { margin: 0; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: .75rem 0; }
h2.sub { margin-top: 1rem; }
@media (min-width: 40rem) {
  .filter-row { grid-template-columns: repeat(3, 1fr); }
}
.content.wide { max-width: 70rem; }
.table-wrap { overflow-x: auto; }
.report { border-collapse: collapse; width: 100%; font-size: .95rem; }
.report th, .report td { padding: .4rem .5rem; border-bottom: 1px solid #eef1f4; text-align: right; white-space: nowrap; }
.report th:first-child, .report td:first-child { text-align: left; position: sticky; left: 0; background: #fff; }
.report thead th { white-space: normal; vertical-align: bottom; }
.report tfoot th, .report tfoot td { font-weight: 700; border-top: 2px solid #b8c2cc; }
.request { padding: .5rem 0 1rem; border-bottom: 1px solid #eef1f4; }
h3.day { font-size: 1rem; margin: 1rem 0 .25rem; }
.busy { color: #55606c; }
