/* Paper pattern editor: ordinary table, independent of global grid resizing. */
#patternSpecEditor .ps-spec-table-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid #cfd6df;
}
#patternSpecEditor #psMeasureTable {
  width: max-content;
  min-width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}
#patternSpecEditor #psMeasureTable th,
#patternSpecEditor #psMeasureTable td {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  box-sizing: border-box;
  padding: 4px !important;
  height: 34px !important;
  min-height: 34px !important;
  border: 0;
  border-right: 1px solid #cfd6df !important;
  border-bottom: 1px solid #cfd6df !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #243244 !important;
  background: #fff !important;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  vertical-align: middle;
  overflow: hidden;
}
#patternSpecEditor #psMeasureTable thead th {
  background: #edf0f4 !important;
  color: #243244 !important;
  font-weight: 600;
  white-space: normal;
}
#patternSpecEditor #psMeasureTable col.ps-col-dim { width: 76px; }
#patternSpecEditor #psMeasureTable col.ps-col-desc { width: 260px; }
#patternSpecEditor #psMeasureTable col.ps-col-tol { width: 64px; }
#patternSpecEditor #psMeasureTable col.ps-col-size { width: 72px; }
#patternSpecEditor #psMeasureTable col.ps-col-divider { width: 8px; }
#patternSpecEditor #psMeasureTable col.ps-col-base-ref { width: 90px; }
#patternSpecEditor #psMeasureTable col.ps-col-base-input { width: 100px; }
#patternSpecEditor #psMeasureTable col.ps-col-adjust { width: 72px; }
#patternSpecEditor #psMeasureTable col.ps-col-rule { width: 100px; }
#patternSpecEditor #psMeasureTable col.ps-col-round { width: 64px; }
#patternSpecEditor #psMeasureTable col.ps-col-action { width: 64px; }
#patternSpecEditor #psMeasureTable input,
#patternSpecEditor #psMeasureTable select {
  display: block;
  box-sizing: border-box;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 26px !important;
  margin: 0 !important;
  padding: 2px 4px !important;
  border: 1px solid #d8dde5 !important;
  border-radius: 2px !important;
  background: #fff !important;
  color: #243244 !important;
  box-shadow: none !important;
  font-size: 12px !important;
  line-height: 18px;
  text-align: center;
  font-weight: normal;
}
#patternSpecEditor #psMeasureTable .ps-sticky-desc,
#patternSpecEditor #psMeasureTable .ps-desc { text-align: left !important; }
#patternSpecEditor #psMeasureTable input:focus,
#patternSpecEditor #psMeasureTable select:focus {
  outline: 2px solid #527da7;
  outline-offset: -1px;
}
#patternSpecEditor #psMeasureTable .ps-section-row td {
  background: #f3f5f7 !important;
  color: #243244 !important;
  padding: 4px 8px !important;
  text-align: left !important;
}
#patternSpecEditor #psMeasureTable .ps-section-title {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
}
#patternSpecEditor #psMeasureTable .ps-split-divider {
  background: #edf0f4 !important;
  padding: 0 !important;
}

/* Keep the measurement identity visible while entering sizes to the right. */
#patternSpecEditor #psMeasureTable {
  --ps-frozen-dim-width: 76px;
}
#patternSpecEditor #psMeasureTable col.ps-col-dim {
  width: var(--ps-frozen-dim-width);
}
#patternSpecEditor #psMeasureTable .ps-sticky-dim,
#patternSpecEditor #psMeasureTable .ps-sticky-desc,
#patternSpecEditor #psMeasureTable .ps-section-title {
  position: sticky !important;
  left: 0 !important;
  z-index: 2 !important;
}
#patternSpecEditor #psMeasureTable .ps-sticky-dim {
  width: var(--ps-frozen-dim-width) !important;
  min-width: var(--ps-frozen-dim-width) !important;
  max-width: var(--ps-frozen-dim-width) !important;
}
#patternSpecEditor #psMeasureTable .ps-sticky-desc {
  left: var(--ps-frozen-dim-width) !important;
  box-shadow: 2px 0 0 #cfd6df !important;
}
#patternSpecEditor #psMeasureTable thead .ps-sticky-dim,
#patternSpecEditor #psMeasureTable thead .ps-sticky-desc {
  z-index: 3 !important;
}
@media print {
  #patternSpecEditor #psMeasureTable .ps-sticky-dim,
  #patternSpecEditor #psMeasureTable .ps-sticky-desc,
  #patternSpecEditor #psMeasureTable .ps-section-title {
    position: static !important;
    left: auto !important;
    z-index: auto !important;
    box-shadow: none !important;
  }
}
