/* 공유 견적은 모바일 화면 안에 배치하고, 금액과 작업내역만 가로로 스크롤합니다. */
@media screen and (max-width: 980px) {
  html body.pdf-view {
    width: 100% !important;
    max-width: 100% !important;
  }
  html body.pdf-view main.sheet,
  html body.pdf-view .global-topbar {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  html body.pdf-view main.sheet { padding: 0 10px 24px !important; }
  html body.pdf-view .topbar-inner { padding: 12px 10px !important; }
  html body.pdf-view .sheet-header,
  html body.pdf-view main.rental-page #app .rental-sheet-header {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
  }
  html body.pdf-view .quote-meta,
  html body.pdf-view .supplier-card { width: 100% !important; }
  html body.pdf-view main.sheet > *,
  html body.pdf-view main.rental-page #app,
  html body.pdf-view main.rental-page #app :is(.layout, .content, .rental-quote-page, .rental-work-section),
  html body.pdf-view main.rental-page #app .rental-quote-page > [data-slot] {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  html body.pdf-view main.sheet #estimate > .quote-summary-bar.summary-table-row,
  html body.pdf-view main.rental-page #app .rental-download-layout .quote-summary-bar.summary-table-row {
    display: grid !important;
    grid-template-columns: 140px 120px 140px 210px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overscroll-behavior-x: contain;
  }
  html body.pdf-view main.sheet .quote-summary-bar.summary-table-row .summary-cell {
    box-sizing: border-box !important;
    white-space: nowrap !important;
  }
  html body.pdf-view main.sheet .quote-summary-bar.summary-table-row .summary-cell strong { font-size: 16px !important; }
  html body.pdf-view main.sheet .quote-summary-bar.summary-table-row .summary-grand strong { font-size: 22px !important; }
  html body.pdf-view main.sheet .added-items,
  html body.pdf-view main.rental-page #app .rental-download-layout .rental-quote-added {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: auto !important;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
  html body.pdf-view main.sheet #addedRowsTable {
    width: 1050px !important;
    min-width: 1050px !important;
    max-width: none !important;
  }
  html body.pdf-view main.rental-page #app .rental-download-layout .rental-pdf-work-items-table {
    width: 1250px !important;
    min-width: 1250px !important;
    max-width: none !important;
  }
  html body.pdf-view main.sheet #addedRowsTable :is(th, td),
  html body.pdf-view main.rental-page #app .rental-download-layout .rental-pdf-work-items-table :is(th, td) {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }
}
