body.customer-quotation-page {
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #1b312f;
  background: #f3f4f1;
  color-scheme: light;
}
.customer-quotation-page * { box-sizing: border-box; }
.customer-quotation-page [hidden] { display: none !important; }
body.customer-quotation-page { margin: 0; }
.customer-quotation-page .quotation { max-width: 92rem; margin: auto; padding: clamp(1rem, 3vw, 2.5rem); }
.customer-quotation-page .toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid #d6dfdb;
}
.customer-quotation-page .heading { min-width: 0; overflow-wrap: anywhere; }
.customer-quotation-page .heading h1 { margin: 0; font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 650; }
.customer-quotation-page .heading p { margin: .3rem 0 0; color: #526762; font-variant-numeric: tabular-nums; }
.customer-quotation-page button, .customer-quotation-page .download {
  display: inline-flex;
  min-height: 2.65rem;
  justify-content: center;
  align-items: center;
  padding: .5rem .85rem;
  border: 1px solid #c9d4cf;
  border-radius: .3rem;
  background: #fff;
  color: #17443e;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
.customer-quotation-page button:not(:disabled):hover { background: #e5eeea; }
.customer-quotation-page button:disabled { color: #74817d; cursor: default; }
.customer-quotation-page .download { border-color: #175e51; background: #175e51; color: #fff; }
.customer-quotation-page .download:hover { background: #10473d; }
.customer-quotation-page button:focus-visible, .customer-quotation-page .download:focus-visible { outline: 2px solid #267f73; outline-offset: 3px; }
.customer-quotation-page .status { margin: 1.75rem 0; line-height: 1.6; }
.customer-quotation-page .document-controls {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  margin: .8rem 0;
}
.customer-quotation-page .pagination { display: inline-flex; gap: .55rem; align-items: center; }
.customer-quotation-page .pagination button { width: 2.65rem; padding: 0; font-size: 1.5rem; }
.customer-quotation-page .pagination output { min-width: 4rem; text-align: center; font-variant-numeric: tabular-nums; }
.customer-quotation-page .viewer { overflow: auto; width: 100%; padding: 1px 0 4px; }
.customer-quotation-page .paper-container { position: relative; overflow: hidden; }
.customer-quotation-page .paper {
  position: absolute;
  inset: 0 auto auto 0;
  overflow: hidden;
  background: #fff;
  color: #000;
  outline: 1px solid #d6dfdb;
  box-shadow: 0 1px 3px #15292212;
}
.customer-quotation-page .cell-shape, .customer-quotation-page .cell-text, .customer-quotation-page .cell-image { position: absolute; }
.customer-quotation-page .cell-text { white-space: pre; }
.customer-quotation-page .cell-text span { display: block; }
.customer-quotation-page .cell-image { object-fit: contain; }

.customer-quotation-page .viewer-enlarged {
  max-block-size: 75dvh;
  min-inline-size: 0;
  overflow: auto;
  overscroll-behavior-inline: contain;
}
.customer-quotation-page .viewer-enlarged:focus-visible {
  outline: 2px solid #267f73;
  outline-offset: -2px;
}

.quote-preview-zoom {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .35rem;
  inline-size: fit-content;
  max-inline-size: 100%;
  margin-inline-start: auto;
  padding: .125rem .25rem;
  border: 1px solid #d9e1e4;
  border-radius: .25rem;
  background: #f4f7f8;
  color: #273e47;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: .8125rem;
  white-space: nowrap;
}
.quote-preview-zoom .quote-preview-zoom-percent {
  flex: none;
  inline-size: 4.35rem;
  block-size: 1.75rem;
  margin: 0;
  padding-inline: .4rem .125rem;
  border: 1px solid #cbd8de;
  border-radius: .2rem;
  background: #fff;
  color: inherit;
  font: inherit;
  font-variant-numeric: tabular-nums;
}
.quote-preview-zoom .quote-preview-zoom-button,
.quote-preview-zoom .quote-preview-zoom-fullscreen {
  display: inline-grid;
  flex: none;
  place-items: center;
  inline-size: 1.75rem;
  block-size: 1.75rem;
  min-block-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: .2rem;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
}
.quote-preview-zoom .quote-preview-zoom-fullscreen svg {
  display: block;
  inline-size: 1rem;
  block-size: 1rem;
}
.quote-preview-zoom button:not(:disabled):hover { background: #e3edf1; }
.quote-preview-zoom button:disabled { color: #819097; cursor: default; }
.quote-preview-zoom .quote-preview-zoom-range {
  flex: 0 1 6.5rem;
  inline-size: 6.5rem;
  min-inline-size: 2rem;
  block-size: 1.75rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: #166bbb;
}
.quote-preview-zoom :is(button, select, input):focus-visible {
  outline: 2px solid #1768a6;
  outline-offset: 2px;
}
.quote-preview-expanded {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
}

.customer-quotation-page .quotation-with-zoom {
  display: flex;
  flex-direction: column;
  max-block-size: 100dvh;
}
.customer-quotation-page .quotation-with-zoom > .document {
  display: flex;
  flex-direction: column;
  min-block-size: 0;
}
.customer-quotation-page .quotation-with-zoom > .toolbar,
.customer-quotation-page .quotation-with-zoom .document-controls,
.customer-quotation-page .customer-quotation-zoom { flex: none; }
.customer-quotation-page .quotation-with-zoom .viewer-enlarged { min-block-size: 0; }
.customer-quotation-page .customer-quotation-zoom { margin-block-start: .45rem; }
.customer-quotation-page .quotation-with-zoom:is(:fullscreen, .quote-preview-expanded) {
  inline-size: 100%;
  block-size: 100dvh;
  max-inline-size: none;
  max-block-size: none;
  margin: 0;
  padding: clamp(.75rem, 2vw, 1.5rem);
  overflow: hidden;
  background: #f3f4f1;
}
.customer-quotation-page .quotation-with-zoom:is(:fullscreen, .quote-preview-expanded) > .document {
  flex: 1 1 0;
}
.customer-quotation-page .quotation-with-zoom:is(:fullscreen, .quote-preview-expanded) .viewer-enlarged {
  flex: 1 1 0;
  max-block-size: none;
  overscroll-behavior: contain;
}
body.customer-quotation-page:has(> .quote-preview-expanded) { overflow: hidden; }
