.gtc_map #gtc_map {
  position: absolute;
  inset: 0;
}

/* Splice plan window */
.gtc_map .gtc_modal {
  position: absolute;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(0, 0, 0, .55);
}

.gtc_map .gtc_modal.hidden {
  display: none;
}

.gtc_map .modal_panel {
  display: flex;
  flex-direction: column;
  max-width: 960px;
  width: 100%;
  max-height: 100%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .5);
  overflow: hidden;
}

.gtc_map .modal_bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid #ddd;
}

.gtc_map #gtc_modal_title {
  color: #555;
}

.gtc_map .modal_buttons {
  display: flex;
  gap: 6px;
}

.gtc_map .modal_buttons button {
  padding: 6px 10px;
  border: 1px solid #555;
  border-radius: 6px;
  background: #555;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.gtc_map .modal_buttons button:disabled {
  opacity: .5;
  cursor: default;
}

.gtc_map .modal_message {
  padding: 16px;
  color: #444;
}

.gtc_map .modal_message.hidden {
  display: none;
}

.gtc_map .sheet {
  overflow: auto;
  padding: 8px;
}

.gtc_map .sheet svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Printing from the window: only the sheet, on one letter page */
@page {
  size: letter portrait;
  margin: .4in;
}

@media print {
  body * {
    visibility: hidden;
  }

  .gtc_map .gtc_modal .sheet,
  .gtc_map .gtc_modal .sheet * {
    visibility: visible;
  }

  .gtc_map .gtc_modal .sheet {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid #000;
    overflow: visible;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .gtc_map .gtc_modal .sheet svg {
    max-height: 9.6in;
  }
}
