/* Screen-only business-dialog layout: never style report/contract print pages. */
@media screen {
  .asr-suborder-dialog { width: 980px; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
  .asr-suborder-dialog .el-dialog__header { padding: 18px 52px 18px 22px; }
  .asr-suborder-dialog .el-dialog__body { padding: 18px 22px; min-width: 0; }
  .asr-suborder-dialog .el-dialog__title { line-height: 1.5; }
  .asr-suborder-dialog .el-form-item { margin-bottom: 18px; }
  .asr-suborder-dialog .el-form-item__label { color: #52667b; }
  .asr-suborder-dialog .el-form-item__content { min-width: 0; }
  .asr-suborder-dialog :is(.asr-suborder-range, .asr-suborder-projects) { padding: 12px 14px; border: 1px solid #dfe7ef; border-radius: 8px; background: #f8fafc; }
  .asr-suborder-dialog :is(.asr-suborder-range, .asr-suborder-projects) > .el-form-item__label { float: none; display: block; width: auto !important; text-align: left; padding-bottom: 6px; font-weight: 600; color: #304b64; }
  .asr-suborder-dialog :is(.asr-suborder-range, .asr-suborder-projects) > .el-form-item__content { margin-left: 0 !important; line-height: 1.6; }
  .asr-suborder-dialog .el-table { width: 100%; max-width: 100%; font-size: 13px; }
  .asr-suborder-dialog .el-table .cell { line-height: 1.55; overflow-wrap: anywhere; }
  .asr-suborder-dialog .el-table th { background: #edf3f8; color: #3e5871; }
  .asr-suborder-dialog .el-table :is(th, td) { padding: 9px 0; }
  .asr-suborder-dialog .el-table__body-wrapper { scrollbar-width: auto; scrollbar-color: #9db2c6 #eff3f7; }
  .asr-suborder-dialog .el-table__body-wrapper::-webkit-scrollbar { width: 10px; height: 10px; }
  .asr-suborder-dialog .el-table input { font-size: 13px; }
  .asr-suborder-dialog .el-select__tags > span { display: inline-flex; max-width: 100%; align-items: center; }
  .asr-suborder-dialog .el-select__tags .el-tag { display: inline-flex; align-items: center; min-width: 0; }
  .asr-suborder-dialog .el-select__tags-text { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .asr-suborder-dialog .el-select__tags .el-tag__close { flex-shrink: 0; }
  .asr-suborder-dialog :is(.sub-custom-number, .sub-legacy-project-map) { background: #f8fafc; line-height: 1.6; }
  .asr-suborder-dialog summary:focus-visible { outline: 2px solid #397bad; outline-offset: 3px; }
  .asr-suborder-dialog .el-dialog__footer > span { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
  .asr-suborder-dialog .el-dialog__footer .el-button + .el-button { margin-left: 0; }
  .asr-suborder-project-options { min-width: 0 !important; max-width: calc(100vw - 32px); }
  .asr-suborder-project-options .el-select-dropdown__item { height: auto; min-height: 36px; padding-top: 8px; padding-bottom: 8px; line-height: 1.6; white-space: normal; overflow-wrap: anywhere; }
  @media (max-width: 700px) {
    .asr-suborder-dialog .el-dialog__header { padding-left: 14px; }
    .asr-suborder-dialog .el-dialog__body { padding: 14px; }
    .asr-suborder-dialog .el-form > .el-row > .el-col { width: 100%; }
    .asr-suborder-dialog .el-form-item > .el-form-item__label { float: none; display: block; width: auto !important; text-align: left; line-height: 1.6; padding: 0 0 6px; }
    .asr-suborder-dialog .el-form-item > .el-form-item__content { margin-left: 0 !important; }
    .asr-suborder-dialog :is(.asr-suborder-range, .asr-suborder-projects) { padding: 10px; }
    .asr-suborder-dialog .el-input-number { max-width: 100%; }
    .asr-suborder-dialog .el-dialog__footer { padding: 12px 14px; }
  }
}
