/* Stage 5.44.63: consistent navy titles, quiet search fields and print actions. */
html body #webgisAddDataShell .webgis-adddata-header h3,
html body #analysisHubPanel .analysis-panel-header h3,
html body #layerPanelBackdrop .webgis-layer-panel-header h3,
html body #measureModalBackdrop .webgis-measure-header h3,
html body #webgisPrintPanelShell .webgis-print-panel-header h3 {
  color: #17384d !important;
}
html body #mapSearchInput,
html body #mapSearchInput:focus,
html body #mapSearchInput:focus-visible,
html body #rm5450GlossarySearch,
html body #rm5450GlossarySearch:focus,
html body #rm5450GlossarySearch:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border: 0 !important;
}
html body .webgis-search-box:focus-within,
html body .rm5450-search:focus-within {
  outline: none !important;
  border-color: #9ca3af !important;
  box-shadow: 0 5px 14px rgba(16, 41, 61, .06) !important;
  background: #fff !important;
}
html body #webgisPrintPanelShell .webgis-print-actions {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) !important;
  align-items: stretch;
  gap: 8px !important;
  padding: 12px 0 0 !important;
}
html body #webgisPrintPanelShell .webgis-print-actions > button {
  grid-column: auto !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 44px;
  padding: 10px 12px !important;
  margin: 0 !important;
  white-space: nowrap;
  font-size: 12px;
}
html body #webgisPrintPanelShell .webgis-print-actions > .subtle {
  color: #526879 !important;
  border-color: #d5e0e6 !important;
  background: #f2f6f8 !important;
}
html body #webgisPrintPanelShell .webgis-print-actions > .secondary {
  color: #17384d !important;
  border-color: #cbdce4 !important;
  background: #f5f9fb !important;
}
@media (max-width: 420px) {
  html body #webgisPrintPanelShell .webgis-print-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }
  html body #webgisPrintPanelShell .webgis-print-actions > .subtle { grid-column: 1 / -1 !important; justify-self: start; }
}

/* Explicit cells prevent earlier mobile button rules from separating Preview/PDF. */
html body #webgisPrintPanelShell .webgis-print-actions > button.subtle { grid-area: 1 / 1 / 2 / 2 !important; }
html body #webgisPrintPanelShell .webgis-print-actions > button.secondary { grid-area: 1 / 2 / 2 / 3 !important; }
html body #webgisPrintPanelShell .webgis-print-actions > button.primary { grid-area: 1 / 3 / 2 / 4 !important; }
@media (max-width: 420px) {
  html body #webgisPrintPanelShell .webgis-print-actions > button.subtle { grid-area: 1 / 1 / 2 / 3 !important; }
  html body #webgisPrintPanelShell .webgis-print-actions > button.secondary { grid-area: 2 / 1 / 3 / 2 !important; }
  html body #webgisPrintPanelShell .webgis-print-actions > button.primary { grid-area: 2 / 2 / 3 / 3 !important; }
}
