/* Stage 74: reserve a compact footer area in the map-tools rail for project export and GIS history. Existing React controls stay intact. */
#root .saj-left-satellite-controls {
  bottom: 260px !important;
}
#saj-map-tool-actions-stage74 {
  position: absolute !important;
  left: 8px !important;
  right: auto !important;
  top: auto !important;
  bottom: 154px !important;
  width: 172px !important;
  max-width: calc(100vw - 24px) !important;
  max-height: min(46vh, 300px) !important;
  overflow: visible !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  direction: rtl !important;
  pointer-events: auto !important;
  z-index: 10006 !important;
  box-sizing: border-box !important;
}
#saj-project-device-export {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 7px !important;
  border: 1px solid #cbd8e5 !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.97) !important;
  box-shadow: 0 3px 12px rgba(15,35,55,.16) !important;
  color: #172033 !important;
  direction: rtl !important;
  font: 10px/1.6 Tahoma,Arial,sans-serif !important;
  box-sizing: border-box !important;
}
#saj-project-device-export .saj-device-export-head {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 4px !important;
  min-width: 0 !important;
}
#saj-project-device-export .saj-device-export-head strong {
  color: #163a56 !important;
  font-size: 10px !important;
  white-space: nowrap !important;
}
#saj-project-device-export button {
  font: 700 9px Tahoma,Arial,sans-serif !important;
  cursor: pointer !important;
  border-radius: 7px !important;
  box-sizing: border-box !important;
  min-height: 27px !important;
}
#saj-project-device-export .saj-device-export-toggle {
  border: 1px solid #bed0df !important;
  background: #f0f6fb !important;
  color: #1b4d70 !important;
  padding: 4px 6px !important;
  white-space: nowrap !important;
}
#saj-project-device-export .saj-device-export-details {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  padding-top: 5px !important;
  border-top: 1px solid #e5edf4 !important;
}
#saj-project-device-export .saj-device-export-details[hidden] { display: none !important; }
#saj-project-device-export .saj-device-export-hint {
  margin: 0 !important;
  color: #64748b !important;
  font-size: 9px !important;
  line-height: 1.7 !important;
}
#saj-project-device-export #saj-device-export-project {
  width: 100% !important;
  min-width: 0 !important;
  padding: 7px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #172033 !important;
  font: 10px Tahoma,Arial,sans-serif !important;
}
#saj-project-device-export .saj-device-export-download {
  width: 100% !important;
  padding: 7px !important;
  border: 0 !important;
  background: #0f766e !important;
  color: #fff !important;
}
#saj-project-device-export .saj-device-export-download:disabled { opacity: .5 !important; cursor: not-allowed !important; }
#saj-project-device-export .saj-device-export-status {
  overflow-wrap: anywhere !important;
  color: #475569 !important;
  font-size: 9px !important;
  line-height: 1.6 !important;
}
#saj-project-device-export .saj-device-export-status[data-kind="error"] { color: #a12d3c !important; }
#saj-project-device-export .saj-device-export-status[data-kind="ok"] { color: #17633b !important; }
#saj-project-device-export .saj-device-export-status[data-kind="warn"] { color: #95600b !important; }
body.saj-left-tools-collapsed #saj-map-tool-actions-stage74 {
  display: none !important;
}
@media (max-width: 520px) {
  #root .saj-left-satellite-controls { bottom: 260px !important; }
  #saj-map-tool-actions-stage74 {
    left: 6px !important;
    width: 166px !important;
    bottom: 154px !important;
    max-height: min(44vh, 270px) !important;
  }
}
@media (max-height: 640px) {
  #root .saj-left-satellite-controls {
    top: 136px !important;
    bottom: 260px !important;
  }
  #root .saj-left-satellite-controls > div { max-height: 24vh !important; }
  #saj-map-tool-actions-stage74 { bottom: 154px !important; max-height: 40vh !important; }
}

#saj-project-device-export .saj-device-export-quality{width:100%!important;min-height:36px!important;padding:7px!important;border:1px solid #b9d5df!important;background:#e9f5f7!important;color:#10566b!important;font:700 10px Tahoma,Arial,sans-serif!important}
