.legacy-version-switch {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  padding: 8px 16px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background: #fff;
  color: #1890ff;
  font:
    14px/1.5 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  text-decoration: none;
}

.legacy-version-switch:hover {
  border-color: #1890ff;
  color: #096dd9;
}

.legacy-version-switch:focus-visible {
  outline: 2px solid #1890ff;
  outline-offset: 3px;
}

/* Match PageHeaderWrapper's fixed -24px side margins on tablet layouts. */
.legacy-quote-records .ant-layout-content {
  margin-left: 24px !important;
  margin-right: 24px !important;
}

/* Keep quote rows readable and let iPad scroll the table within its panel. */
.legacy-quote-records .antd-pro-pages-quote-list-tableList .ant-table-content {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.legacy-quote-records .antd-pro-pages-quote-list-tableList table {
  min-width: 1000px;
}

/* The preserved quote detail bundle sets an inline width of 1200px. */
.legacy-quote-records .ant-modal {
  max-width: calc(100vw - 32px);
}

.legacy-quote-records .ant-modal-body .ant-card-body {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
