.local-report-overlay { position: fixed; inset: 0; z-index: 2200; overflow: auto; padding: 18px; background: rgba(18,31,24,.72); }
.local-report-toolbar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 980px; margin: 0 auto 14px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.35); border-radius: 16px; background: #fff; box-shadow: 0 8px 32px rgba(0,0,0,.18); }
.local-report-toolbar p { margin: 0; color: #30463a; font-weight: 700; }
.local-report-document { max-width: 900px; min-height: 90vh; margin: 0 auto; padding: clamp(24px,5vw,58px); border-radius: 18px; background: #fff; color: #18251e; box-shadow: 0 12px 42px rgba(0,0,0,.18); font: 14px/1.55 Arial,sans-serif; }
.local-report-header { padding-bottom: 22px; border-bottom: 2px solid #e6eee8; }
.local-report-brand { color: #163f32; font-size: 24px; font-weight: 800; letter-spacing: -.04em; }
.local-report-brand span { color: #588367; font-weight: 600; }
.local-report-header-label { float: right; padding: 6px 10px; border-radius: 99px; background: #eef5ef; color: #306348; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.local-report-header h1 { margin: 26px 0 5px; color: #17251d; font-size: clamp(25px,4vw,34px); line-height: 1.2; }
.local-report-header > p { margin: 5px 0; color: #5f6e64; }
.local-report-header .local-report-generated { margin-top: 15px; color: #718076; font-size: 12px; }
.local-report-records { display: grid; gap: 16px; padding-top: 20px; }
.local-report-card { break-inside: avoid; padding: 18px; border: 1px solid #e1e9e3; border-radius: 16px; background: #fff; }
.local-report-card-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.local-report-card-heading > div { min-width: 0; overflow-wrap: anywhere; }
.local-report-header h1 { overflow-wrap: anywhere; }
.local-report-card-heading h2 { margin: 1px 0 2px; color: #1c3024; font-size: 18px; line-height: 1.3; }
.local-report-card-heading p { margin: 0; color: #607165; font-size: 12px; }
.local-report-number { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 11px; background: #eaf3ec; color: #2f6845; font-size: 12px; font-weight: 800; }
.local-report-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 14px; }
.local-report-field { display: grid; gap: 2px; overflow-wrap: anywhere; }
.local-report-field strong { color: #6a7a6f; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.local-report-field span { color: #24342a; }
.local-report-map { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 11px; align-items: start; margin-top: 13px; padding: 13px; border: 1px solid #cfe2d4; border-radius: 13px; background: linear-gradient(135deg,#f1f8f2,#f6f8f4); break-inside: avoid; }
.local-report-map-pin { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 13px; background: #dceee1; color: #287149; font-size: 25px; }
.local-report-map strong { color: #24583d; }
.local-report-map p { margin: 3px 0; color: #31453a; overflow-wrap: anywhere; }
.local-report-map .local-report-coordinates { color: #6e7e73; font: 12px/1.5 ui-monospace,Consolas,monospace; }
.local-report-map a { display: inline-block; margin-top: 4px; color: #196a42; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.local-report-notes { margin-top: 12px; padding: 11px 13px; border-left: 3px solid #d6bb74; border-radius: 0 10px 10px 0; background: #fff9eb; }
.local-report-notes p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.local-report-photos { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin-top: 13px; }
.local-report-photos img { display: block; width: 100%; max-height: 185px; aspect-ratio: 4/3; object-fit: cover; border: 1px solid #e1e8e2; border-radius: 11px; }
.local-report-footer { margin-top: 22px; padding-top: 12px; border-top: 1px solid #e6eee8; color: #77847b; font-size: 10px; }
.local-report-open { overflow: hidden; }
.local-report-print-mode > *:not(.local-report-overlay) { display: none !important; }
.local-report-print-mode .local-report-overlay { position: static; inset: auto; overflow: visible; padding: 0; background: #fff; }
.local-report-print-mode .local-report-document { max-width: none; min-height: 0; padding: 0; border-radius: 0; box-shadow: none; }
.local-report-print-mode .local-report-card { box-shadow: none; }
@media (max-width: 600px) {
  .local-report-overlay { padding: 8px; }
  .local-report-toolbar { flex-wrap: wrap; justify-content: center; gap: 8px; padding: 9px; border-radius: 13px; }
  .local-report-toolbar p { order: -1; width: 100%; text-align: center; font-size: .9rem; }
  .local-report-toolbar .button { flex: 1; min-width: 130px; padding-inline: 9px; }
  .local-report-document { min-height: 0; padding: 20px 14px; border-radius: 14px; }
  .local-report-fields { grid-template-columns: 1fr; }
  .local-report-card { padding: 13px; }
  .local-report-photos { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media print {
  @page { size: A4; margin: 14mm; }
  .local-report-print-mode .local-report-toolbar { display: none !important; }
  .local-report-print-mode .local-report-overlay { background: #fff; }
  .local-report-print-mode .local-report-document { width: auto; margin: 0; padding: 0; }
  .local-report-print-mode .local-report-card { margin-bottom: 9mm; padding: 5mm; border-color: #d7e0d9; }
  .local-report-print-mode .local-report-map { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .local-report-print-mode .local-report-notes { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .local-report-print-mode .local-report-photos img { max-height: 45mm; }
  .local-report-print-mode a { color: #165e3b; }
}
