/* MuniReporting. Colour carries meaning only: a stream's colour, or overdue. */
:root {
  --ground: #FFFFFF;
  --ink: #14171A;
  --grey: #5F666D;
  --rule: #E3E6E8;
  --field: #C9CED2;
  --control: #AEB4B9;   /* outline of choice buttons and form fields, as drawn */
  --wash: #F4F5F6;
  --trash: #4A5056;
  --recycling: #1D5FBF;
  --organics: #2F7D3B;
  --overdue: #B3261E;
  --radius: 4px;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  /* Names the older rules below still use. */
  --blue: var(--ink); --blue-dark: var(--ink); --green: var(--ink); --green-dark: var(--ink);
  --gray: var(--grey); --line: var(--rule); --bg: var(--ground); --card: var(--ground);
  --high: var(--overdue); --normal: var(--ink); --low: var(--ink);
  font: 16px/24px var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); }
a { color: var(--ink); text-decoration: underline 1px; text-underline-position: from-font; }
h1 { font-size: 32px; line-height: 38px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 8px; }
h2 { font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 12px; }
h3 { font-size: 16px; line-height: 24px; font-weight: 700; margin: 16px 0 8px; }
p { margin: 0 0 12px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 40; }
.muted { color: var(--grey); }
.error { color: var(--overdue); }
.mono { font-family: var(--mono); }
.small { font-size: 14px; line-height: 20px; }

/* ---------- Shell and rail ---------- */
.shell { display: grid; grid-template-columns: 224px 1fr; min-height: 100vh; }
.rail { border-right: 1px solid var(--rule); background: var(--ground); padding: 24px 16px; display: flex; flex-direction: column; gap: 28px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.rail-top { display: flex; align-items: center; justify-content: space-between; padding: 0 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; line-height: 20px; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.bars { display: inline-flex; gap: 2px; }
.bars i { width: 6px; height: 18px; background: var(--trash); }
.bars i + i { background: var(--recycling); }
.bars i + i + i { background: var(--organics); }
.rail-body { display: flex; flex-direction: column; gap: 28px; flex: 1; }
.rail ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.rail li a, .rail-foot .who { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 10px 8px; border-radius: 4px; text-decoration: none; color: var(--ink); }
.rail li a:hover { background: var(--wash); }
.rail li a[aria-current] { background: var(--wash); font-weight: 600; }
.rail .count { font-family: var(--mono); font-size: 14px; color: var(--grey); font-weight: 400; }
.new-report { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border: 1px solid var(--ink); border-radius: 4px; font-size: 15px; line-height: 20px; font-weight: 600; text-decoration: none; color: var(--ink); background: var(--ground); }
.new-report:hover { background: var(--wash); }
.nav-group > summary { display: flex; align-items: center; justify-content: space-between; padding: 8px; min-height: 44px; cursor: pointer; list-style: none; color: var(--grey); font-size: 13px; line-height: 20px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 4px; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary svg { transform: rotate(-90deg); flex-shrink: 0; }
.nav-group[open] > summary svg { transform: none; }
.rail-foot { border-top: 1px solid var(--rule); padding-top: 12px; margin-top: auto; }
.rail-foot .who { font-weight: 600; gap: 8px; }
.rail-foot .who form { margin: 0; }
.rail-foot .who button { font-weight: 400; color: var(--grey); min-height: 0; text-decoration: none; }
.rail-foot .who button:hover { text-decoration: underline 1px; background: none; }
.menu-toggle { display: none; }
main { padding: 28px 48px 48px; max-width: 1440px; min-width: 0; }
body.center { display: grid; place-items: center; min-height: 100vh; }

/* ---------- Sections ---------- */
.card { margin-bottom: 32px; }
.card.narrow { width: min(420px, 92vw); }
.card.wide { grid-column: 1 / -1; }
.card > h2, .section-head { border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 12px; }
.card > header { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; justify-content: space-between; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 12px; }
.card > header h2 { margin: 0; }
.section-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; justify-content: space-between; margin-top: 0; }
.section-head h2 { margin: 0; }
.section-head .lead { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; min-width: 0; }
.section-head .sub { color: var(--grey); font-size: 14px; line-height: 24px; }
.section-head .links { display: flex; gap: 20px; }
.section-head .links a, a.act { font-size: 14px; line-height: 18px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 0 48px; }
.brand-lg { color: var(--ink); }

dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 12px; }
dt { color: var(--grey); }
dd { margin: 0; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.prose { white-space: pre-wrap; }

/* ---------- Forms ---------- */
label { display: block; margin: 0 0 16px; font-weight: 600; }
label.inline { display: inline-flex; gap: 8px; align-items: center; font-weight: 400; margin-right: 16px; min-height: 44px; }
fieldset { border: 1px solid var(--rule); border-radius: var(--radius); margin: 0 0 16px; padding: 12px 16px; }
legend { font-weight: 700; padding: 0 6px; }
fieldset.stack label { display: flex; gap: 8px; align-items: center; font-weight: 400; margin: 0; min-height: 44px; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 9px 12px; min-height: 44px; font: 400 16px/24px var(--sans);
  color: var(--ink); border: 1px solid var(--control); border-radius: var(--radius); background: #fff;
}
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; accent-color: var(--ink); flex-shrink: 0; }
input::placeholder, textarea::placeholder { color: var(--grey); opacity: 1; }
textarea { min-height: 96px; }
input:disabled, select:disabled { background: var(--wash); color: var(--grey); }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 12px; }
.filters label { margin: 0; min-width: 180px; }
.filters input[type=search] { min-width: 320px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }

button, .button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px;
  font: 600 15px/20px var(--sans); border-radius: var(--radius); cursor: pointer;
  border: 1px solid var(--ink); background: #fff; color: var(--ink); text-decoration: none;
}
button:hover, .button:hover { background: var(--wash); }
button.primary, .button.primary { background: var(--ink); border-color: var(--ink); color: #fff; padding: 0 18px; }
button.primary:hover, .button.primary:hover { background: #2B3035; }
button.danger { border-color: var(--overdue); color: var(--overdue); }
button.link { border: 0; background: none; color: inherit; padding: 0; font: inherit; text-decoration: underline 1px; text-underline-position: from-font; }
button:disabled { color: var(--grey); border-color: var(--field); cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- Tables ---------- */
table.compact { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
table.compact th, table.compact td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.compact th { border-bottom: 2px solid var(--ink); font-size: 14px; font-weight: 600; color: var(--grey); white-space: nowrap; }
table.compact th a { color: inherit; text-decoration: none; }
table.compact th[aria-sort] a::after { content: " ▲"; font-size: .7em; }
table.compact th[aria-sort=descending] a::after { content: " ▼"; }
tr.inactive td, section.inactive { color: var(--grey); }
tr.overdue td:first-child { border-left: 4px solid var(--overdue); padding-left: 10px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--rule); margin: 20px 0 32px; }
.tabs a { padding: 12px 0; text-decoration: none; color: var(--grey); white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a .n { font-size: 14px; margin-left: 4px; }
.tabs a[aria-current] { color: var(--ink); font-weight: 600; border-color: var(--ink); padding-bottom: 10px; }

.tag { display: inline-block; font-size: 13px; line-height: 20px; padding: 0 8px; border-radius: 3px; background: var(--wash); color: var(--ink); font-weight: 600; }
.tag.off { color: var(--grey); }
.flash { border-left: 4px solid var(--ink); background: var(--wash); padding: 12px 16px; margin-bottom: 20px; }
.notice { border: 1px solid var(--control); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 20px; }
.notice ul { margin: 6px 0 0; }
.pager { display: flex; gap: 16px; margin: 12px 0; }

.prio-high { font-weight: 700; }
.prio-normal { font-weight: 600; }
.prio-low { font-weight: 400; }

.typeahead { position: relative; }
.typeahead ul { position: absolute; z-index: 5; left: 0; right: 0; list-style: none; margin: 2px 0 0; padding: 0; background: #fff; border: 1px solid var(--control); border-radius: 4px; max-height: 320px; overflow: auto; }
.typeahead li button { display: block; width: 100%; text-align: left; border: 0; border-radius: 0; padding: 10px 12px; font-weight: 400; }
.typeahead li button:hover, .typeahead li button:focus { background: var(--wash); }
[hidden] { display: none !important; }

/* CRM */
.tag.overdue-tag { background: var(--ground); color: var(--overdue); padding: 0; }
.overdue-text { color: var(--overdue); font-weight: 600; }
.cal-head { display: flex; gap: 16px; align-items: baseline; margin: 8px 0; }
table.calendar { width: 100%; border-collapse: collapse; table-layout: fixed; margin-bottom: 24px; }
table.calendar th { padding: 6px; font-size: 14px; color: var(--grey); border-bottom: 2px solid var(--ink); }
table.calendar td { border: 1px solid var(--rule); vertical-align: top; height: 96px; padding: 4px 6px; font-size: 13px; line-height: 18px; }
table.calendar td.out { background: var(--wash); color: var(--grey); }
table.calendar td.today { outline: 2px solid var(--ink); outline-offset: -2px; }
.daynum { display: block; font-weight: 600; margin-bottom: 2px; }
.cal-task { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 16px 0; }

/* ---------- Record header ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.crumbs ol { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; color: var(--grey); font-size: 14px; line-height: 20px; }
.crumbs ol a { color: var(--grey); }
.crumbs ol li + li::before { content: "/"; margin-right: 8px; }
.crumbs form { margin: 0; }
.crumbs input[type=search] { width: 320px; min-height: 40px; height: 40px; margin: 0; padding: 8px 12px; font-size: 14px; line-height: 20px; border-color: var(--field); }
.record-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 0; }
.record-head .ident { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.record-head .ident p, .record-head h1 { margin: 0; }
.record-head .kicker { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 14px; line-height: 20px; color: var(--grey); }
.record-head .kicker .mono { color: var(--ink); font-weight: 500; }

/* ---------- Generator overview ---------- */
.overview { display: flex; flex-direction: column; gap: 36px; }
.overview-cols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 36px 48px; align-items: start; }
.overview-cols > div { display: flex; flex-direction: column; gap: 36px; min-width: 0; }
.rows { margin: 0; padding: 0; list-style: none; }
.rows > li { border-bottom: 1px solid var(--rule); }
.bin { display: flex; flex-direction: column; gap: 2px; width: 36px; height: 44px; flex-shrink: 0; color: var(--trash); }
.bin::before { content: ""; height: 8px; border-radius: 2px 2px 0 0; background: currentColor; }
.bin::after { content: ""; flex: 1; border-radius: 0 0 4px 4px; background: currentColor; }
.s-trash { color: var(--trash); } .s-recycling { color: var(--recycling); } .s-organics { color: var(--organics); }
.svc { display: grid; grid-template-columns: 36px 160px minmax(160px, 1fr) 260px 110px minmax(90px, 140px) auto; gap: 14px; align-items: center; padding: 16px 0; }
.svc > * { color: var(--ink); }
.svc .bin { color: inherit; }
.svc.s-trash .bin { color: var(--trash); } .svc.s-recycling .bin { color: var(--recycling); } .svc.s-organics .bin { color: var(--organics); }
.svc b { display: block; font-weight: 700; }
.svc .sub2 { display: block; color: var(--grey); font-size: 13px; line-height: 18px; }
.svc .route { font-family: var(--mono); font-size: 14px; color: var(--grey); }
.svc .inactive-note { color: var(--grey); }
.week { display: flex; gap: 4px; }
.week span { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--rule); border-radius: 3px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--grey); flex-shrink: 0; }
.s-trash .week span.on { background: var(--trash); border-color: var(--trash); color: #fff; }
.s-recycling .week span.on { background: var(--recycling); border-color: var(--recycling); color: #fff; }
.s-organics .week span.on { background: var(--organics); border-color: var(--organics); color: #fff; }
.oncall { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid currentColor; border-radius: 3px; font-size: 14px; font-weight: 600; justify-self: start; }
.s-trash .oncall { color: var(--trash); } .s-recycling .oncall { color: var(--recycling); } .s-organics .oncall { color: var(--organics); }
.insp { display: grid; grid-template-columns: 124px minmax(0, 1fr) auto; gap: 6px 0; padding: 14px 0; }
.insp .date, .insp .who { font-size: 14px; line-height: 24px; }
.insp .who { color: var(--grey); text-align: right; padding-left: 12px; }
.insp .body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.insp .body a { text-decoration: none; }
.insp .body a:hover { text-decoration: underline 1px; }
.levels { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; line-height: 20px; }
.levels span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.levels i { width: 10px; height: 10px; border-radius: 2px; background: currentColor; flex-shrink: 0; }
.levels span > b { font-weight: 400; color: var(--ink); }
.contam { font-size: 14px; line-height: 20px; }
.more-row { display: flex; align-items: center; min-height: 48px; font-weight: 600; }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) 70px 150px 44px; gap: 8px 24px; align-items: baseline; padding: 12px 0; }
.contact .role { color: var(--grey); font-size: 14px; }
.contact .btns { display: none; }
.task { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; text-decoration: none; }
.task.overdue { border-left: 4px solid var(--overdue); padding-left: 14px; }
.task b { font-weight: 700; }
.task .meta { font-size: 14px; line-height: 20px; }
.task .late { color: var(--overdue); font-weight: 600; }
.task .who { font-size: 14px; line-height: 20px; color: var(--grey); }
.reqs li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; }
.reqs .yes { font-weight: 600; }
.reqs .no { color: var(--grey); }
.empty { color: var(--grey); padding: 12px 0; margin: 0; }
.sticky-bar { display: none; }

/* ---------- New report picker ---------- */
.sheet { max-width: 560px; }
.sheet-bar { display: flex; align-items: center; justify-content: space-between; height: 56px; border-bottom: 1px solid var(--rule); margin-bottom: 0; }
.sheet-bar a { font-weight: 600; }
.sheet-bar b { font-weight: 700; }
.sheet-bar .spacer { width: 43px; }
.sheet-gen { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.sheet-gen p { margin: 0; font-size: 14px; line-height: 20px; color: var(--grey); }
.sheet-gen p.name { font-size: 16px; line-height: 24px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.sheet-gen .mono { color: var(--ink); }
.sheet-body { padding: 24px 0 32px; display: flex; flex-direction: column; gap: 16px; }
.sheet-body h1 { font-size: 20px; line-height: 28px; letter-spacing: -0.01em; margin: 0; }
.find-field { position: relative; }
.find-field input[type=search] { height: 52px; border: 2px solid var(--ink); margin: 0; padding: 12px 14px; }
.matches-count { color: var(--grey); font-size: 14px; line-height: 20px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); margin: 0; }
.matches { list-style: none; margin: 0; padding: 0; }
.matches a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.matches a > span { display: block; min-width: 0; }
.matches b { display: block; font-weight: 700; }
.matches small { display: block; font-size: 14px; line-height: 20px; color: var(--grey); }
.matches small .mono { color: var(--ink); }
.kinds { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.kinds a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--control); border-radius: 4px; text-decoration: none; min-height: 48px; }
.kinds a:hover, .matches a:hover { background: var(--wash); }
.kinds b { display: block; font-weight: 700; }
.kinds small { display: block; font-size: 14px; line-height: 20px; color: var(--grey); }
.kinds svg, .matches svg { flex-shrink: 0; }

@media (max-width: 1100px) {
  .overview-cols { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 36px minmax(0, 1fr) auto; align-items: start; }
  .svc .bin { grid-row: 1 / span 4; }
  .svc .what { grid-column: 2; }
  .svc .edit { grid-column: 3; grid-row: 1; }
  .svc .cont, .svc .week, .svc .oncall, .svc .freq { grid-column: 2 / -1; }
  .svc .cont .sub2 { display: inline; font-size: 16px; line-height: 24px; color: var(--ink); }
  .svc .cont .sub2::before { content: " · "; }
  .svc .what b, .svc .what .sub2 { display: inline; }
  .svc .what .sub2 { font-size: 14px; }
  .svc .freq { font-size: 14px; line-height: 20px; }
  .svc .route { display: none; }
  .svc .freq .route { display: inline; }
}
@media (min-width: 1101px) { .svc .freq .route { display: none; } }

@media (max-width: 800px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .rail { position: sticky; top: 0; z-index: 20; height: auto; padding: 0; border-right: 0; border-bottom: 1px solid var(--rule); gap: 0; overflow: visible; }
  .rail-top { padding: 8px 16px; }
  .menu-toggle { display: inline-flex; gap: 8px; border-color: var(--control); padding: 0 14px; }
  .rail-body { display: none; padding: 12px 16px 16px; gap: 20px; max-height: calc(100vh - 61px); overflow-y: auto; }
  .rail.open .rail-body { display: flex; }
  main { padding: 20px 16px 32px; }
  h1 { font-size: 26px; line-height: 32px; }
  .filters input[type=search] { min-width: 0; }
  .crumbs form { display: none; }
  .crumbs { margin-bottom: 12px; }
  .record-head { flex-direction: column; align-items: stretch; }
  .record-head .ident { gap: 6px; }
  .record-head .actions.has-bar .to-bar { display: none; }
  .grid2 { grid-template-columns: 1fr; }
  .tabs { gap: 24px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 8px -16px 24px; padding-left: 16px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a:last-child { padding-right: 16px; }
  .insp { grid-template-columns: minmax(0, 1fr) auto; }
  .insp .body { grid-column: 1 / -1; grid-row: 2; }
  .insp .date, .insp .who { line-height: 20px; }
  .contact { grid-template-columns: minmax(0, 1fr) auto; }
  .contact .inline-links { display: none; }
  .contact .btns { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1 / -1; }
  .contact .btns .button { border-color: var(--control); padding: 0 14px; }
  .sticky-bar { display: flex; gap: 8px; position: sticky; bottom: 0; margin: 0 -16px -32px; padding: 12px 16px 20px; background: var(--ground); border-top: 1px solid var(--rule); z-index: 10; }
  .sticky-bar .button { flex: 1; height: 52px; font-size: 16px; line-height: 24px; }
  .sheet-bar, .sheet-gen { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  body.focus main { padding-top: 0; }
}

@media print {
  .rail, .actions, .tabs, .no-print, .flash, .sticky-bar, .crumbs { display: none !important; }
  .shell { display: block; }
  main { padding: 0; }
}

/* Reports (§4–§6) */
.checkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 12px; }
.checkgrid label.inline { margin: 2px 0; }
.indent { margin-left: 26px; }
.report-form > fieldset { background: #fff; }
.container-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.container-card { border: 1px solid var(--line); border-top: 4px solid var(--ink); border-radius: var(--radius); padding: 10px 14px; break-inside: avoid; }
.container-card h3 { margin: 0 0 6px; font-size: 1rem; color: var(--blue); }
.report-section { margin: 18px 0; break-inside: avoid-page; }
.report-section h2 { color: var(--blue); border-bottom: 2px solid var(--green); padding-bottom: 4px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.photo-grid figure { margin: 0; break-inside: avoid; }
.photo-grid img { width: 100%; height: auto; max-height: 320px; object-fit: contain; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.photo-grid figcaption { font-size: .85rem; color: var(--gray); margin-top: 4px; }
.print-page { background: #fff; max-width: 900px; margin: 0 auto; padding: 24px 28px; }
.print-actions { display: flex; gap: 8px; }
.print-head { border-bottom: 4px solid var(--blue); padding-bottom: 10px; margin-bottom: 20px; }
.print-head .org { font-size: 1.5rem; letter-spacing: .01em; }
.print-head .muni { color: var(--blue); font-weight: 700; }
.print-head .env { color: var(--green); }
.print-head h1 { margin: 8px 0 0; font-size: 1.5rem; color: var(--ink); }
.report-generator { background: var(--wash); border-left: 4px solid var(--green); padding: 10px 14px; border-radius: 4px; }
.report-generator dl { margin: 0; }
@media print {
  .print-page { padding: 0; max-width: none; }
  .report-generator { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-head, .container-card, .report-section h2 { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { margin: 14mm; }
}
.spaced label { margin: 8px 0; }

/* Materials Collector portal */
.portal-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; background: var(--ink); color: #fff; padding: 12px 24px; }
.portal-head a { color: #fff; }
.portal-head .brand { font-weight: 700; font-size: 1.15rem; text-decoration: none; margin-right: 12px; }
.portal-head .who { opacity: .9; }
.portal-head .muni-switch label { display: flex; gap: 8px; align-items: center; margin: 0; font-weight: 400; }
.portal-head .muni-switch select { margin: 0; width: auto; min-width: 200px; }
.portal-me { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.portal-me .button, .portal-me button { background: #fff; color: var(--ink); border-color: #fff; }
.portal-tabs { margin: 0; padding: 0 24px; background: #fff; }
.portal-main { margin: 0 auto; }
.fee-table td.num, .fee-table th.num { text-align: right; white-space: nowrap; }
.fee-table tfoot td { font-weight: 700; }

/* Permit Application tab */
.mat-group { padding: 6px 0; border-bottom: 1px solid var(--line); }
.mat-head { margin: 4px 0; }
.remit { margin-top: 12px; }
.remit address { font-style: normal; }
.label-text { display: block; font-weight: 500; margin-bottom: 6px; }
.form-head { text-align: center; }
.form-head .muni { font-weight: 700; letter-spacing: .04em; }
.form-foot { margin-top: 24px; text-align: right; }
/* Collector weight reports */
.weight-lines td.num, .weight-lines th.num { text-align: right; white-space: nowrap; }
.weight-lines tfoot td { font-weight: 600; border-bottom: 0; }
.weight-lines input { max-width: 9em; margin: 0; text-align: right; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.weight-head h1 { font-size: 1.25rem; }
.weight-head p { margin: 2px 0; }
.signature-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; margin-top: 36px; font-size: .8rem; }
.signature-row .sig-line { display: block; border-bottom: 1px solid var(--ink); min-height: 1.6em; margin-bottom: 4px; font-size: 1rem; }
.notifications li.unread { border-left: 4px solid var(--green); padding-left: 10px; }
.notifications p { margin: 4px 0 0; }

/* ---------- Phones and small tablets ---------- */
.calendar-wrap { overflow-x: auto; }
@media (max-width: 800px) {
}
@media (max-width: 700px) {
  /* 16px inputs stop iOS from zooming on focus; bigger touch targets. */
  input[type=checkbox], input[type=radio] { width: 20px; height: 20px; }
  label.inline { margin: 6px 16px 6px 0; }
  .actions > *, .actions form, .actions form button { flex: 1 1 auto; }
  .filters { flex-direction: column; align-items: stretch; }
  .filters label { min-width: 0; width: 100%; }
  .filters input[type=search] { min-width: 0; }
  .row, .checkgrid, .container-grid, .photo-grid { grid-template-columns: 1fr; }
  dl { grid-template-columns: 1fr; gap: 0; }
  dt { margin-top: 8px; font-size: .85rem; }
  .pager { justify-content: space-between; }

  /* Tables without JS: scroll sideways instead of breaking the page. */
  table.compact { display: block; overflow-x: auto; }
  /* With JS (app.js labels the cells): each row becomes a card. */
  table.compact.stack { display: table; border: 0; background: transparent; font-size: .95rem; }
  table.compact.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.compact.stack, table.compact.stack tbody, table.compact.stack tfoot, table.compact.stack tr { display: block; width: 100%; }
  table.compact.stack tr { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; padding: 6px 0; }
  table.compact.stack tr.overdue { border-left: 4px solid var(--high); }
  table.compact.stack td { display: grid; grid-template-columns: minmax(90px, 38%) 1fr; gap: 10px; border: 0; padding: 6px 12px; text-align: left !important; white-space: normal; }
  table.compact.stack td::before { content: attr(data-label); color: var(--gray); font-size: .85rem; font-weight: 600; }
  table.compact.stack td[data-label=""] { grid-template-columns: 1fr; }
  table.compact.stack td[data-label=""]::before { content: none; }
  table.compact.stack td:first-child { font-weight: 600; }
  table.compact.stack td input, table.compact.stack td select { max-width: none !important; margin: 0; }
  table.compact.stack tfoot tr { background: var(--wash); }
  tr.overdue td:first-child { border-left: 0; }

  /* Portal header */
  .portal-head { padding: 10px 12px; gap: 8px; }
  .portal-head .portal-id { width: 100%; display: flex; flex-direction: column; }
  .portal-head .brand { font-size: 1.05rem; }
  .portal-head .who { font-size: .9rem; }
  .portal-head .muni-switch { width: 100%; }
  .portal-head .muni-switch label { width: 100%; }
  .portal-head .muni-switch select { flex: 1; min-width: 0; width: 100%; }
  .portal-me { width: 100%; justify-content: space-between; gap: 8px; }
  .portal-me > span { display: none; }
  .portal-tabs { padding: 0 4px; }

  .print-page { padding: 12px; }
  .signature-row { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 700px) { table.calendar { min-width: 640px; } }
@media (max-width: 700px) { table.compact.stack td.blank { display: none; } }
/* Grid children default to min-width:auto, so one wide child (tabs, a table) would widen the page. */
.shell > main, .shell > nav { min-width: 0; }
.portal-main { padding: 20px 16px 32px; }
main { overflow-wrap: anywhere; }
@media (max-width: 700px) {
  fieldset { padding: 8px 10px; margin-bottom: 12px; }
  fieldset fieldset { border-color: #e6e9ef; }
  /* Radio/checkbox choices become full-width tap rows. */
  fieldset label.inline { display: flex; width: 100%; margin: 0; padding: 8px 0; gap: 10px; }
  .checkgrid label.inline { padding: 8px 0; }
}

/* Letters, protocols, case history, feedback */
.letter-preview { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 16px 20px; margin: 0 0 12px; font-family: Georgia, "Times New Roman", serif; max-width: 70ch; overflow-wrap: anywhere; }
.letter-preview p { margin: 0 0 .8em; }
.notice.error { border-color: var(--high); }
.actions.stack { flex-direction: column; align-items: flex-start; }
.actions details { width: 100%; }
details > summary { cursor: pointer; padding: 6px 0; }
details.rule { border-top: 1px solid var(--line); padding: 6px 0; }
details.rule form { margin: 10px 0; }
dl.fields { grid-template-columns: 1fr; gap: 0; }
dl.fields dt { margin-top: 8px; color: var(--ink); }
dl.fields code { overflow-wrap: anywhere; }
.tag.education { background: var(--wash); color: var(--ink); }
.tag.enforcement { background: var(--ink); color: #fff; }
ol.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--line); }
ol.timeline li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 4px 12px; padding: 8px 0 8px 14px; position: relative; }
ol.timeline li::before { content: ""; position: absolute; left: -7px; top: 14px; width: 11px; height: 11px; border-radius: 50%; background: var(--blue); }
ol.timeline li.ev-letter::before { background: var(--green); }
ol.timeline li.ev-task::before { background: #fff; border: 2px solid var(--blue); }
ol.timeline .when { color: var(--gray); font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  ol.timeline li { grid-template-columns: 1fr; }
}
.narrow-form { max-width: 640px; }
/* City dashboards and the Education & Enforcement report: headline numbers */
.stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0 0 12px; }
.stats > div { min-width: 120px; max-width: 220px; }
.stats b { display: block; font-size: 32px; line-height: 38px; letter-spacing: -0.02em; }
.stats span { color: var(--gray); font-size: .85rem; }
/* Focus pages (New report, filing a report): no rail. */
.focus-main { max-width: 560px; margin: 0 auto; padding: 0 16px 32px; }
.sheet { max-width: none; }
/* Phone order on the Overview: tasks, inspections, requirements, contacts, notes. */
@media (max-width: 1100px) {
  .overview-cols > div { display: contents; }
  .overview-cols { display: flex; flex-direction: column; align-items: stretch; }
  .ov-tasks { order: 1; } .ov-insp { order: 2; } [aria-labelledby="ov-reqs"] { order: 3; } .ov-contacts { order: 4; } [aria-labelledby="ov-notes"] { order: 5; }
}
table.compact { overflow-wrap: break-word; }
.sheet-body h1 label { margin: 0; font-weight: inherit; }
form.sheet-body { gap: 8px; }
form.sheet-body > div[aria-live] { margin-top: 12px; }
.find-field input[type=search]:focus-visible { outline-offset: 0; }

/* ===== Filing a report ===== */
/* reports/new.html: a focus page. Phone first; from 768px the steps and generator sit in a left column. */
main.focus-main:has(.filing) { max-width: none; padding: 0; }
.filing [hidden] { display: none !important; }
.filing form { margin: 0; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }

/* Top bar, generator, step tabs */
.filing-side { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); border-bottom: 1px solid var(--rule); }
.filing-side .close { justify-self: start; display: flex; align-items: center; height: 56px; padding: 0 16px; font-weight: 600; }
.filing-side h1 { align-self: center; margin: 0; font-size: 16px; line-height: 24px; font-weight: 700; letter-spacing: 0; text-align: center; }
.filing-side .saved { justify-self: end; align-self: center; padding: 0 16px; color: var(--grey); font-size: 14px; line-height: 24px; white-space: nowrap; }
.filing-gen { grid-column: 1 / -1; padding: 4px 16px 14px; min-width: 0; }
.filing-gen p { margin: 0; }
.filing-gen .name { font-weight: 700; }
.filing-gen .where { color: var(--grey); font-size: 14px; line-height: 20px; }
.filing-gen .mono { color: var(--ink); }
.filing-side .last { display: none; }
.steps { grid-column: 1 / -1; min-width: 0; }
.steps ol { list-style: none; margin: 0; padding: 0; display: flex; }
.steps li { flex: 1 1 0; min-width: 0; }
.steps a { display: flex; align-items: center; justify-content: center; gap: 6px; height: 48px; border-bottom: 4px solid transparent; color: var(--grey); font-size: 14px; line-height: 20px; text-decoration: none; }
.steps a:focus-visible { outline-offset: -2px; }
.steps a[aria-current] { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }
.steps .s-trash a[aria-current] { border-color: var(--trash); }
.steps .s-recycling a[aria-current] { border-color: var(--recycling); }
.steps .s-organics a[aria-current] { border-color: var(--organics); }
.steps small { display: none; }
.filing .dot { flex-shrink: 0; width: 10px; height: 12px; border-radius: 2px; background: var(--ink); }
.filing .dot.none { display: none; }
.filing .s-trash .dot { background: var(--trash); }
.filing .s-recycling .dot { background: var(--recycling); }
.filing .s-organics .dot { background: var(--organics); }

/* Body */
.filing-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.filing-body { flex: 1; display: flex; flex-direction: column; gap: 28px; padding: 24px 16px 32px; }
.filing .step, .filing .waiver-rest { display: flex; flex-direction: column; gap: 28px; }
.filing .step { color: var(--ink); }
.filing .s-recycling .bin { color: var(--recycling); }
.filing .s-organics .bin { color: var(--organics); }
.step-head { display: flex; align-items: center; gap: 14px; }
.step-head h2, .waiver-head h2 { margin: 0; font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -0.01em; }
.step-head h2:focus { outline: none; }
.step-head p, .waiver-head p { margin: 0; color: var(--grey); font-size: 14px; line-height: 20px; }
.filing .step.s-finish .step-head p { margin-top: 2px; }
.filing-errors { border-left: 4px solid var(--overdue); padding: 4px 0 4px 16px; }
.filing-errors h2 { margin: 0 0 4px; font-size: 16px; line-height: 24px; font-weight: 700; letter-spacing: 0; }
.filing-errors ul { margin: 0; padding-left: 20px; }
.draft-note { background: var(--wash); border-radius: 4px; padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; }
.draft-note button.link, .draft-foot button.link { min-height: 44px; font-weight: 600; }
.filing .draft-foot { margin: 0; color: var(--grey); font-size: 14px; line-height: 20px; }
.filing .draft-foot button.link { color: var(--ink); font-size: 14px; }

/* Questions */
.filing .q { border: 0; padding: 0; margin: 0; min-width: 0; }
.filing .q > legend, .filing .q-label, .filing .q-head { display: block; width: 100%; padding: 0; margin: 0 0 10px; font-size: 16px; line-height: 24px; font-weight: 700; }
.filing .q-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.filing .hint { color: var(--grey); font-size: 14px; line-height: 24px; font-weight: 400; }
.filing legend .hint, .filing .q-label .hint { float: right; margin-left: 12px; }
.filing .note { margin: 10px 0 0; color: var(--grey); font-size: 14px; line-height: 20px; }
.filing .note:empty { display: none; }
.filing textarea, .filing input[type=date] { margin: 0; padding: 11px 14px; min-height: 48px; }
.filing textarea { display: block; min-height: 96px; resize: vertical; }
.filing .date-row { display: flex; align-items: center; gap: 12px; }
.filing .date-row input { flex: 1 1 0; min-width: 0; }
.filing .date-row .hint { flex-shrink: 0; line-height: 20px; }
.filing .date-row .hint:empty { display: none; }

/* Choices: real radios and checkboxes under 48px buttons */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choices.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choices.rows { flex-direction: column; flex-wrap: nowrap; }
.filing .choice { position: relative; display: block; margin: 0; min-width: 0; font-weight: 400; }
.filing .choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.filing .choice span { display: flex; align-items: center; min-height: 48px; padding: 11px 16px; border: 1px solid var(--control); border-radius: 4px; background: var(--ground); color: var(--ink); line-height: 24px; }
.cols2 .choice span, .cols3 .choice span { justify-content: center; text-align: center; padding: 11px 8px; }
.filing .choice input:hover + span { background: var(--wash); }
.filing .choice input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.filing .choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
/* Pick any: a check mark when chosen. Leading on chips, trailing on stacked rows. */
.filing .choice input[type=checkbox]:checked + span::before,
.filing .rows .choice input[type=checkbox]:checked + span::after {
  content: ""; flex-shrink: 0; width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5L6.2 11.7L13 4.8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}
.filing .choice input[type=checkbox]:checked + span { gap: 8px; }
.filing .chips .choice input[type=checkbox]:checked + span { padding-left: 12px; }
.filing .rows .choice span { justify-content: space-between; gap: 12px; }
.filing .rows .choice input[type=checkbox]:checked + span::before { content: none; }
.filing button.more { min-height: 48px; padding: 0 16px; font-size: 16px; line-height: 24px; font-weight: 600; }

/* Opens under a choice (contamination detail, follow up, why rescind) */
.filing .detail { display: flex; flex-direction: column; gap: 20px; margin-top: 10px; padding: 16px 0 4px 16px; border-left: 4px solid var(--ink); }
.filing .detail.tight { padding-top: 6px; }

/* Photos */
.photo-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.photo-list:empty { display: none; }
.photo-row { display: flex; align-items: flex-start; gap: 12px; }
.photo-row .thumb { position: relative; flex-shrink: 0; width: 88px; height: 88px; border-radius: 4px; background: #D5D9DC; display: flex; align-items: flex-end; padding: 6px; }
.photo-row .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.photo-row .thumb .name { font: 12px/16px var(--mono); color: var(--ink); overflow-wrap: anywhere; max-height: 48px; overflow: hidden; }
/* 44px target around a 28px badge */
.photo-row .remove { position: absolute; top: -4px; right: -4px; width: 44px; height: 44px; min-height: 0; padding: 0; border: 0; border-radius: 22px; background: none; }
.photo-row .remove::before { content: ""; position: absolute; inset: 8px; border-radius: 14px; background: var(--ink); }
.photo-row .remove svg { position: relative; }
.photo-row .remove:hover { background: none; }
.photo-row .photo-note { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.filing .photo-note label { margin: 0; color: var(--grey); font-size: 14px; line-height: 20px; font-weight: 400; }
.filing .photo-note textarea { min-height: 64px; height: 64px; padding: 8px 14px; }
.filing .photo-plain { display: flex; flex-direction: column; gap: 12px; }
.filing .photo-plain label { margin: 0; }
.filing .photo-plain input[type=file] { margin-top: 6px; }
.filing .photo-add { display: flex; flex-direction: column; gap: 4px; }
.filing .photo-add label { position: relative; display: block; margin: 0; }
.filing .photo-add input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.filing .photo-add input::file-selector-button { cursor: pointer; }
.filing .take-photo span { display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; border: 1px dashed var(--grey); border-radius: 4px; font-weight: 600; }
.filing .take-photo input:hover + span { background: var(--wash); }
.filing .pick-photo span { display: flex; align-items: center; justify-content: center; min-height: 44px; font-weight: 600; text-decoration: underline 1px; text-underline-position: from-font; }
.filing .photo-add input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Finish: what was picked for each container */
.summary { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.summary li { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-top: 1px solid var(--rule); color: var(--ink); }
.filing .summary .dot { width: 20px; height: 24px; border-radius: 3px; }
.summary div { flex: 1 1 0; min-width: 0; }
.summary b { display: block; font-weight: 700; }
.summary p { margin: 2px 0 0; color: var(--grey); font-size: 14px; line-height: 20px; }
.summary a { flex-shrink: 0; font-weight: 600; }
.summary a::after { content: ""; position: absolute; inset: 0; }

/* Waiver review */
.filing .waiver { display: flex; flex-direction: column; gap: 14px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--ink); }
.waiver-head { display: flex; align-items: center; gap: 12px; }
.waiver-head h2 { font-size: 20px; line-height: 26px; letter-spacing: 0; }
.filing .waiver-head .dot { width: 28px; height: 34px; border-radius: 3px; }
.filing .waiver-rest { padding-top: 24px; border-top: 1px solid var(--rule); }

/* Sticky bottom bar */
.filing-foot { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 8px; padding: 12px 16px calc(20px + env(safe-area-inset-bottom, 0px)); background: var(--ground); border-top: 1px solid var(--rule); }
.filing-foot button { flex: 1 1 0; height: 52px; font-size: 16px; line-height: 24px; }

@media (min-width: 768px) {
  .filing form { display: grid; grid-template-columns: 256px minmax(0, 1fr); }
  .filing-side { position: sticky; top: 0; align-self: start; height: 100vh; height: 100dvh; overflow-y: auto; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto auto 1fr; align-content: start; padding: 20px 20px 24px; border-bottom: 0; border-right: 1px solid var(--rule); }
  .filing-side .close { grid-area: 1 / 1; height: 44px; padding: 0; }
  .filing-side .saved { grid-area: 1 / 2; padding: 0; }
  .filing-side h1 { grid-area: 2 / 1 / auto / -1; margin: 24px 0 4px; text-align: left; color: var(--grey); font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
  .filing-gen { grid-row: 3; padding: 0; }
  .filing-gen .name { font-size: 20px; line-height: 26px; letter-spacing: -0.01em; margin-bottom: 4px; }
  .filing-gen .sep { display: none; }
  .filing-gen .street { display: block; }
  .steps { grid-row: 4; margin-top: 24px; }
  .steps ol { flex-direction: column; }
  .steps a { justify-content: flex-start; align-items: center; gap: 12px; height: auto; min-height: 48px; padding: 12px; border-bottom: 0; border-left: 4px solid transparent; border-radius: 0 4px 4px 0; color: var(--ink); font-size: 16px; line-height: 24px; }
  .steps a:hover { background: var(--wash); }
  .steps a[aria-current] { background: var(--wash); }
  .steps .t { display: flex; flex-direction: column; min-width: 0; }
  .steps small { display: block; color: var(--grey); font-size: 13px; line-height: 18px; font-weight: 400; }
  .steps .dot { width: 14px; height: 18px; }
  .steps .dot.none { display: block; background: none; }
  .filing-side .last { display: block; grid-row: 5; grid-column: 1 / -1; align-self: end; margin: 24px 0 0; color: var(--grey); font-size: 14px; line-height: 20px; }
  .filing-side .last .when { color: var(--ink); }
  .filing-body { padding: 28px 32px 32px; width: 100%; max-width: 704px; }
  .filing-foot { justify-content: flex-end; padding: 12px 32px 24px; }
  .filing-foot button { flex: 0 0 240px; }
}

@media print {
  .filing-foot, .photo-add, .draft-note, .draft-foot { display: none !important; }
}
