

/* =========================================================
   LEAFLET ESSENTIAL FALLBACK
   Prevents scattered map tiles if external leaflet.css fails.
   ========================================================= */
.leaflet-container {
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  background: #ddd;
  outline-offset: 1px;
}

.leaflet-container,
.leaflet-container * {
  box-sizing: border-box;
}

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  position: absolute;
  left: 0;
  top: 0;
}

.leaflet-container {
  position: relative;
}

.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
  user-select: none;
  -webkit-user-drag: none;
}

.leaflet-tile {
  visibility: hidden;
  width: 256px;
  height: 256px;
  max-width: none !important;
  max-height: none !important;
}

.leaflet-tile-loaded {
  visibility: inherit;
}

.leaflet-zoom-animated {
  transform-origin: 0 0;
}

.leaflet-zoom-hide {
  visibility: hidden;
}

.leaflet-map-pane canvas {
  z-index: 100;
}

.leaflet-tile-pane {
  z-index: 200;
}

.leaflet-overlay-pane {
  z-index: 400;
}

.leaflet-shadow-pane {
  z-index: 500;
}

.leaflet-marker-pane {
  z-index: 600;
}

.leaflet-tooltip-pane {
  z-index: 650;
}

.leaflet-popup-pane {
  z-index: 700;
}

.leaflet-control {
  position: relative;
  z-index: 800;
  pointer-events: auto;
}

.leaflet-top,
.leaflet-bottom {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
}

.leaflet-top {
  top: 0;
}

.leaflet-right {
  right: 0;
}

.leaflet-bottom {
  bottom: 0;
}

.leaflet-left {
  left: 0;
}

.leaflet-control {
  float: left;
  clear: both;
}

.leaflet-right .leaflet-control {
  float: right;
}

.leaflet-top .leaflet-control {
  margin-top: 10px;
}

.leaflet-bottom .leaflet-control {
  margin-bottom: 10px;
}

.leaflet-left .leaflet-control {
  margin-left: 10px;
}

.leaflet-right .leaflet-control {
  margin-right: 10px;
}

.leaflet-control-zoom a {
  display: block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  text-decoration: none;
  background: #fff;
  color: #111;
  border-bottom: 1px solid #ccc;
}

.leaflet-control-zoom {
  border: 2px solid rgba(0,0,0,.2);
  border-radius: 4px;
  overflow: hidden;
}

.leaflet-control-attribution {
  background: rgba(255,255,255,.8);
  padding: 0 5px;
  font-size: 11px;
}

.leaflet-interactive {
  cursor: pointer;
}

.leaflet-grab {
  cursor: grab;
}

.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive {
  cursor: grabbing;
}


:root {
  --bg: #f5f7f8;
  --panel: #ffffff;
  --text: #162126;
  --muted: #67757d;
  --border: #dce3e6;
  --shadow: 0 8px 24px rgba(0,0,0,.08);
  --accent: #176b4b;
  --accent-2: #eaf5ef;
  --danger: #b42318;
  --warning: #b54708;
  --info: #175cd3;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); }
body.rtl { direction: rtl; }

.topbar {
  height: 76px;
  padding: 0 18px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  z-index: 1000;
}
.brand { font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.subtitle { font-size: 13px; color: var(--muted); margin-top: 3px; }
.header-actions { display: flex; gap: 10px; align-items: center; }

button, select, input, textarea { font: inherit; }
button { cursor: pointer; }
.primary {
  border: 0; background: var(--accent); color: white; border-radius: 10px;
  padding: 11px 15px; font-weight: 700;
}
.secondary {
  border: 1px solid var(--border); background: white; color: var(--text);
  border-radius: 9px; padding: 9px 12px; font-weight: 650;
}
.link-btn, .icon-btn { background: transparent; border: 0; color: var(--accent); font-weight: 700; }
.icon-btn { font-size: 28px; color: var(--muted); }

#languageSelect {
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: white;
}

.app-shell {
  display: grid;
  grid-template-columns: 380px 1fr;
  height: calc(100vh - 76px);
}

.sidebar {
  overflow-y: auto;
  padding: 14px;
  border-right: 1px solid var(--border);
  background: #f8fafb;
}
body.rtl .sidebar { border-right: 0; border-left: 1px solid var(--border); }

.panel {
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  padding: 15px; margin-bottom: 12px;
}
.hero-panel { background: linear-gradient(180deg, #ffffff 0%, #f4fbf7 100%); }
.panel h1, .panel h2 { margin: 0 0 8px; }
.panel h1 { font-size: 24px; }
.panel h2 { font-size: 15px; }
.panel p { margin: 0; color: var(--muted); line-height: 1.45; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; font-size: 14px; }

.report-list { display: grid; gap: 10px; }
.report-card {
  border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: white;
}
.report-card h3 { margin: 8px 0 6px; font-size: 15px; }
.report-details {
  color: var(--muted); font-size: 13px; line-height: 1.4; display: -webkit-box;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.report-card-top { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; padding: 4px 7px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.badge.need { background: #fee4e2; color: #b42318; }
.badge.collection { background: #fef0c7; color: #93370d; }
.badge.critical { background: #7a271a; color: white; }
.badge.high { background: #fffaeb; color: #b54708; }
.badge.normal { background: #eff8ff; color: #175cd3; }

.meta { margin-top: 8px; color: var(--muted); font-size: 12px; }
.card-actions { margin-top: 10px; display: flex; gap: 8px; }

.map-wrap { position: relative; min-width: 0; }
#map { width: 100%; height: 100%; }
.map-legend {
  position: absolute; left: 16px; bottom: 18px; z-index: 500; background: rgba(255,255,255,.95);
  border: 1px solid var(--border); box-shadow: var(--shadow); padding: 10px 12px; border-radius: 12px;
  display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px;
}
body.rtl .map-legend { left: auto; right: 16px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-inline-end: 5px; }
.dot.need { background: #d92d20; }
.dot.collection { background: #f79009; }

dialog {
  width: min(720px, calc(100vw - 24px));
  border: 0; border-radius: 16px; padding: 0; box-shadow: 0 20px 80px rgba(0,0,0,.25);
}
dialog::backdrop { background: rgba(17,24,39,.52); }
#reportForm, #detailContent { padding: 20px; }
.dialog-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.dialog-head h2 { margin: 0 0 5px; }
.dialog-head p { margin: 0 0 16px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.form-grid .full { grid-column: 1 / -1; }
input, textarea, select {
  width: 100%; border: 1px solid var(--border); border-radius: 9px; padding: 10px 11px; background: white; color: var(--text);
}
textarea { resize: vertical; }
.checkbox-row { display: flex !important; grid-template-columns: auto 1fr !important; align-items: center; }
.checkbox-row input { width: auto; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

.detail-title-row { display: flex; justify-content: space-between; gap: 10px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.detail-note { background: #f8fafc; border: 1px solid var(--border); padding: 10px; border-radius: 10px; margin-top: 10px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-top: 14px; font-size: 14px; }
.detail-grid strong { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }

.safety { border-left: 4px solid #f79009; }
body.rtl .safety { border-left: 1px solid var(--border); border-right: 4px solid #f79009; }

.leaflet-popup-content-wrapper { border-radius: 12px; }
.popup-title { font-weight: 800; margin-bottom: 4px; }
.popup-meta { font-size: 12px; color: #667085; }

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; grid-template-rows: 48vh 1fr; height: auto; }
  .map-wrap { grid-row: 1; height: 48vh; }
  .sidebar { grid-row: 2; height: auto; border-right: 0; }
  .topbar { height: auto; min-height: 76px; flex-wrap: wrap; padding-block: 12px; }
  .subtitle { max-width: 520px; }
}
@media (max-width: 600px) {
  .header-actions { width: 100%; }
  .header-actions > * { flex: 1; }
  .filters, .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .detail-grid { grid-template-columns: 1fr; }
}

/* --- Responsive hardening --- */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100dvh;
}

.topbar {
  width: 100%;
  max-width: 100vw;
  min-width: 0;
}

.topbar > div:first-child,
.header-actions,
.app-shell,
.sidebar,
.map-wrap,
#map {
  min-width: 0;
}

.app-shell {
  width: 100%;
  max-width: 100vw;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  height: calc(100dvh - 76px);
  overflow: hidden;
}

.sidebar {
  width: 100%;
  max-width: 100%;
  overscroll-behavior: contain;
}

.map-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#map {
  width: 100%;
  height: 100%;
  min-height: 320px;
  background: #e9eef1;
}

.leaflet-container,
.leaflet-pane,
.leaflet-map-pane {
  max-width: none;
}

.header-actions {
  flex: 0 0 auto;
}

#languageSelect {
  min-width: 150px;
}

#newReportBtn {
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  }

  .subtitle {
    max-width: 460px;
  }
}

@media (max-width: 820px) {
  .topbar {
    height: auto;
    min-height: 76px;
    padding: 12px 14px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .topbar > div:first-child {
    flex: 1 1 280px;
  }

  .header-actions {
    flex: 1 1 100%;
    width: 100%;
  }

  #languageSelect,
  #newReportBtn {
    flex: 1 1 0;
    min-width: 0;
  }

  .app-shell {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: calc(100dvh - 120px);
    overflow: visible;
  }

  .map-wrap {
    order: 1;
    height: 52dvh;
    min-height: 360px;
    max-height: 620px;
  }

  .sidebar {
    order: 2;
    height: auto;
    overflow: visible;
    border-right: 0;
    border-left: 0;
    padding: 12px;
  }

  body.rtl .sidebar {
    border-left: 0;
  }

  .map-legend {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    justify-content: center;
  }

  body.rtl .map-legend {
    left: 10px;
    right: 10px;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 19px;
  }

  .subtitle {
    font-size: 12px;
    line-height: 1.35;
  }

  .header-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  #languageSelect,
  #newReportBtn {
    width: 100%;
    min-height: 44px;
  }

  .map-wrap {
    height: 48dvh;
    min-height: 300px;
  }

  .panel {
    padding: 13px;
    border-radius: 12px;
  }

  .hero-panel h1 {
    font-size: 21px;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .report-card {
    padding: 11px;
  }

  .map-legend {
    gap: 7px 10px;
    padding: 8px 10px;
    font-size: 11px;
  }

  dialog {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    margin: auto;
    overflow-y: auto;
  }

  #reportForm,
  #detailContent {
    padding: 15px;
  }

  .dialog-actions {
    position: sticky;
    bottom: -15px;
    background: white;
    padding: 12px 0 15px;
    flex-direction: column-reverse;
  }

  .dialog-actions button,
  .detail-actions button {
    width: 100%;
    min-height: 44px;
  }

  .detail-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .header-actions {
    grid-template-columns: 1fr;
  }

  .map-wrap {
    min-height: 280px;
  }
}


/* =========================================================
   MAP + RTL FIX
   Keep Leaflet's coordinate system isolated from Arabic RTL.
   ========================================================= */
.map-wrap,
#map,
#map.leaflet-container {
  direction: ltr !important;
  unicode-bidi: isolate;
}

#map .leaflet-map-pane,
#map .leaflet-tile-pane,
#map .leaflet-overlay-pane,
#map .leaflet-shadow-pane,
#map .leaflet-marker-pane,
#map .leaflet-tooltip-pane,
#map .leaflet-popup-pane {
  direction: ltr !important;
}

#map .leaflet-tile-container,
#map .leaflet-tile {
  direction: ltr !important;
}

/* Popup text may follow Arabic while map geometry stays LTR. */
body.rtl #map .leaflet-popup-content-wrapper {
  direction: rtl;
  text-align: right;
}

/* Desktop: keep the map/sidebar geometry fixed; RTL only changes text flow. */
@media (min-width: 821px) {
  .app-shell {
    direction: ltr !important;
    display: grid;
    grid-template-columns: clamp(310px, 24vw, 390px) minmax(0, 1fr);
    width: 100%;
    height: calc(100dvh - 76px);
    overflow: hidden;
  }

  .sidebar {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    width: 100%;
  }

  .map-wrap {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  body.rtl .app-shell {
    grid-template-columns: minmax(0, 1fr) clamp(310px, 24vw, 390px);
  }

  body.rtl .map-wrap {
    grid-column: 1;
  }

  body.rtl .sidebar {
    grid-column: 2;
    direction: rtl;
    border-right: 0;
    border-left: 1px solid var(--border);
  }
}

/* Tablet / mobile */
@media (max-width: 820px) {
  .app-shell,
  body.rtl .app-shell {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    min-height: calc(100dvh - 76px);
    overflow: visible;
    direction: ltr !important;
  }

  .map-wrap {
    order: 1;
    width: 100%;
    height: clamp(330px, 52dvh, 560px);
    min-height: 330px;
    overflow: hidden;
  }

  .sidebar {
    order: 2;
    width: 100%;
    height: auto;
    overflow: visible;
    border: 0;
  }

  body.rtl .sidebar {
    direction: rtl;
    border: 0;
  }

  .map-legend,
  body.rtl .map-legend {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    justify-content: center;
  }
}

/* Filters */
.filters label {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.35;
}

.filters input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

@media (max-width: 560px) {
  .filters {
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
  }

  .header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  }

  #languageSelect,
  #newReportBtn {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 400px) {
  .filters,
  .header-actions {
    grid-template-columns: 1fr;
  }
}


/* Location search + direct map picker */
.location-picker {
  display: grid;
  gap: 8px;
}
.location-search-label {
  display: grid;
  gap: 6px;
}
.location-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}
.location-search-row input { min-width: 0; }
.location-results {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  max-height: 220px;
  overflow-y: auto;
}
.location-result {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: 10px 12px;
  text-align: start;
  cursor: pointer;
}
.location-result:last-child { border-bottom: 0; }
.location-result:hover,
.location-result:focus { background: #f8fafc; }
.location-result strong {
  display: block;
  margin-bottom: 2px;
}
.location-result small { color: var(--muted); }
.selected-location {
  font-size: 13px;
  color: var(--muted);
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 10px;
}
.map-pick-active #map { cursor: crosshair !important; }
.map-pick-banner {
  position: absolute;
  z-index: 1100;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17,24,39,.92);
  color: #fff;
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .location-search-row {
    grid-template-columns: 1fr 1fr;
  }
  .location-search-row input {
    grid-column: 1 / -1;
  }
}
@media (max-width: 420px) {
  .location-search-row {
    grid-template-columns: 1fr;
  }
  .location-search-row input {
    grid-column: auto;
  }
}


/* Live autocomplete: input + map button */
.location-search-row {
  grid-template-columns: minmax(0, 1fr) auto !important;
}

.location-results {
  position: relative;
  z-index: 20;
}

.location-result {
  direction: inherit;
}

body.rtl .location-result {
  text-align: right;
}

.location-loading {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 600px) {
  .location-search-row {
    grid-template-columns: 1fr !important;
  }

  .location-search-row input,
  .location-search-row button {
    width: 100%;
    grid-column: auto !important;
  }
}

button:disabled {
  opacity: .6;
  cursor: not-allowed;
}


/* =========================================================
   ARABIC-ONLY FINAL UI
   ========================================================= */
html,
body {
  direction: rtl;
}

.brand-wrap {
  min-width: 0;
}

.brand,
.subtitle,
.panel,
.report-card,
dialog,
input,
textarea,
select,
button {
  font-family: Tahoma, Arial, "Segoe UI", sans-serif;
}

.reports-title-row {
  align-items: center;
}

.reports-add-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.reports-add-btn:hover {
  filter: brightness(.95);
}

.empty-reports {
  margin: 10px 0 0;
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.badge.collection {
  background: #dcfae6;
  color: #067647;
}

.dot.collection {
  background: #12b76a;
}

.detail-description {
  white-space: pre-wrap;
  line-height: 1.8;
  color: var(--text);
}

.detail-grid span {
  line-height: 1.6;
}

.leaflet-tooltip {
  direction: rtl;
  text-align: right;
  font-family: Tahoma, Arial, "Segoe UI", sans-serif;
}

#detailDialog {
  width: min(620px, calc(100vw - 24px));
}

#detailDialog .detail-title-row h2 {
  margin: 10px 0 0;
}

#detailDialog .detail-actions {
  justify-content: flex-start;
}

.map-legend {
  direction: rtl;
}

@media (min-width: 821px) {
  .app-shell {
    direction: ltr !important;
    grid-template-columns: minmax(0, 1fr) clamp(320px, 23vw, 400px) !important;
  }

  .map-wrap {
    grid-column: 1 !important;
  }

  .sidebar {
    grid-column: 2 !important;
    direction: rtl;
  }
}

@media (max-width: 820px) {
  .topbar {
    direction: rtl;
  }

  .header-actions {
    width: auto;
  }

  .map-wrap {
    order: 1;
  }

  .sidebar {
    order: 2;
    direction: rtl;
  }
}

@media (max-width: 560px) {
  .topbar {
    align-items: stretch;
  }

  .brand-wrap {
    width: 100%;
  }

  .header-actions {
    width: 100%;
    display: block;
  }

  #newReportBtn {
    width: 100%;
  }

  .reports-add-btn {
    width: 38px;
    height: 38px;
  }
}

/* =========================================================
   LIVE HOSTED VERSION
   ========================================================= */
.brand-wrap { min-width: 0; }

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.live-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: block;
  background: #98a2b3;
}

.live-status.is-live {
  background: #ecfdf3;
  border-color: #abefc6;
  color: #067647;
}
.live-status.is-live i { background: #12b76a; }

.live-status.is-offline {
  background: #fef3f2;
  border-color: #fecdca;
  color: #b42318;
}
.live-status.is-offline i { background: #d92d20; }

.live-status.is-connecting {
  background: #f9fafb;
  color: #475467;
}

.reports-title-row { align-items: center; }
.reports-add-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.empty-reports {
  margin: 10px 0 0;
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.badge.collection { background: #dcfae6; color: #067647; }
.dot.collection { background: #12b76a; }

.detail-description {
  white-space: pre-wrap;
  line-height: 1.8;
  color: var(--text);
}

.leaflet-tooltip {
  direction: rtl;
  text-align: right;
  font-family: Tahoma, Arial, "Segoe UI", sans-serif;
}

.form-error {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef3f2;
  border: 1px solid #fecdca;
  color: #b42318;
  font-size: 13px;
  font-weight: 700;
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

button:disabled {
  opacity: .6;
  cursor: not-allowed;
}

@media (max-width: 700px) {
  .topbar { align-items: stretch; }
  .header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }
  #newReportBtn { width: 100%; }
}

@media (max-width: 430px) {
  .header-actions { grid-template-columns: 1fr; }
  .live-status { justify-content: center; }
}
