/* Isolated visual layer for the new/edit itinerary dialog only. */
.line-editor-dialog {
  --editor-ink: #26352e;
  --editor-muted: #778179;
  --editor-green: #244b3d;
  --editor-green-soft: #e8f0eb;
  --editor-gold: #b28b52;
  --editor-paper: #f5f1e8;
  --editor-card: #fffdf8;
  --editor-line: rgba(38, 53, 46, 0.12);
  --editor-shadow: 0 18px 48px rgba(35, 46, 40, 0.1);
  width: min(1560px, calc(100vw - 32px)) !important;
  max-width: min(1560px, calc(100vw - 32px)) !important;
  height: calc(100dvh - 28px) !important;
  max-height: calc(100dvh - 28px) !important;
  margin: 14px auto 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(38, 53, 46, 0.14) !important;
  border-radius: 24px !important;
  background: var(--editor-paper) !important;
  box-shadow: 0 28px 90px rgba(27, 36, 31, 0.2) !important;
}

.line-editor-dialog .el-dialog__header {
  position: relative;
  z-index: 5;
  min-height: 62px;
  margin-right: 0 !important;
  padding: 18px 26px !important;
  border: 0 !important;
  background: linear-gradient(112deg, #203d32 0%, #315b49 68%, #3d6a54 100%) !important;
}

.line-editor-dialog .el-dialog__header::after {
  content: 'ITINERARY EDITOR';
  position: absolute;
  right: 66px;
  top: 50%;
  color: rgba(245, 235, 211, 0.58);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  transform: translateY(-50%);
}

.line-editor-dialog .el-dialog__title {
  color: #fffaf0 !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
}

.line-editor-dialog .el-dialog__headerbtn {
  top: 18px !important;
  right: 20px !important;
}

.line-editor-dialog .el-dialog__headerbtn .el-dialog__close {
  color: rgba(255, 250, 240, 0.82) !important;
  font-size: 20px !important;
}

.line-editor-dialog .el-dialog__body {
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: var(--editor-paper) !important;
}

.line-editor-dialog .line-editor-layout {
  display: grid !important;
  grid-template-columns: minmax(650px, 1fr) minmax(390px, 460px) !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  background: var(--editor-paper) !important;
}

.line-editor-dialog .line-editor-body {
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 22px 28px 96px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border-right: 1px solid var(--editor-line) !important;
  background:
    radial-gradient(circle at 100% 0, rgba(178, 139, 82, 0.1), transparent 300px),
    linear-gradient(180deg, #fbf9f3 0%, var(--editor-paper) 100%) !important;
  scrollbar-color: rgba(36, 75, 61, 0.25) transparent;
  scrollbar-width: thin;
}

.line-editor-dialog .line-form-focus-shell,
.line-editor-dialog .line-editor-form,
.line-editor-dialog .line-form {
  width: 100% !important;
  max-width: 1020px !important;
  margin: 0 auto !important;
}

.line-editor-dialog .line-form {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
  row-gap: 2px;
  padding: 24px !important;
  border: 1px solid var(--editor-line) !important;
  border-radius: 20px !important;
  background: rgba(255, 253, 248, 0.86) !important;
  box-shadow: var(--editor-shadow) !important;
}

.line-editor-dialog .line-form > * {
  grid-column: 1 / -1;
  min-width: 0;
}

.line-editor-dialog .line-form > .editor-field-half {
  grid-column: span 1;
}

.line-editor-dialog .line-form > .el-divider,
.line-editor-dialog .line-form > .media-paste-guide,
.line-editor-dialog .line-form > .highlight-images-uploader,
.line-editor-dialog .line-form > .itinerary-builder,
.line-editor-dialog .line-form > .attachment-builder,
.line-editor-dialog .line-form > .cost-builder,
.line-editor-dialog .line-form > .notice-builder {
  grid-column: 1 / -1;
}

.line-editor-dialog .media-paste-guide {
  position: relative;
  margin: 0 0 20px !important;
  padding: 13px 16px 13px 44px !important;
  border: 1px solid rgba(36, 75, 61, 0.14) !important;
  border-radius: 14px !important;
  background: linear-gradient(100deg, rgba(36, 75, 61, 0.08), rgba(178, 139, 82, 0.07)) !important;
  color: var(--editor-muted) !important;
  font-size: 12px !important;
  line-height: 1.65 !important;
}

.line-editor-dialog .media-paste-guide::before {
  content: 'TIP';
  position: absolute;
  top: 50%;
  left: 15px;
  color: var(--editor-gold);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  transform: translateY(-50%);
}

.line-editor-dialog .editor-field {
  min-width: 0;
  margin-bottom: 16px !important;
}

.line-editor-dialog .editor-field .el-form-item__label {
  min-width: 88px;
  color: #536159 !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  line-height: 40px !important;
}

.line-editor-dialog .editor-field .el-form-item__content {
  min-width: 0;
}

.line-editor-dialog .el-input__wrapper,
.line-editor-dialog .el-select__wrapper,
.line-editor-dialog .el-textarea__inner,
.line-editor-dialog .el-input-number,
.line-editor-dialog .el-date-editor.el-input,
.line-editor-dialog .el-date-editor.el-input__wrapper {
  border-color: rgba(36, 75, 61, 0.12) !important;
  border-radius: 11px !important;
  background: #fff !important;
  box-shadow: 0 3px 12px rgba(38, 53, 46, 0.035) !important;
}

.line-editor-dialog .el-input__wrapper:hover,
.line-editor-dialog .el-select__wrapper:hover,
.line-editor-dialog .el-textarea__inner:hover,
.line-editor-dialog .el-input__wrapper.is-focus,
.line-editor-dialog .el-select__wrapper.is-focused,
.line-editor-dialog .el-textarea__inner:focus {
  border-color: rgba(36, 75, 61, 0.42) !important;
  box-shadow: 0 0 0 3px rgba(36, 75, 61, 0.08) !important;
}

.line-editor-dialog .editor-field-title .el-input__inner {
  color: var(--editor-ink) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}

.line-editor-dialog .editor-field-cover .cover-uploader {
  width: min(100%, 360px) !important;
  min-height: 174px !important;
  border: 1px dashed rgba(36, 75, 61, 0.23) !important;
  border-radius: 16px !important;
  background: linear-gradient(145deg, #f4f1e9, #ebe6da) !important;
}

.line-editor-dialog .cover-preview {
  border-radius: 15px !important;
}

.line-editor-dialog .price-range-list,
.line-editor-dialog .attachment-builder,
.line-editor-dialog .cost-builder,
.line-editor-dialog .notice-builder,
.line-editor-dialog .itinerary-builder,
.line-editor-dialog .highlight-images-uploader {
  padding: 18px !important;
  border: 1px solid var(--editor-line) !important;
  border-radius: 16px !important;
  background: rgba(255, 253, 248, 0.72) !important;
  box-shadow: 0 10px 28px rgba(38, 53, 46, 0.055) !important;
}

.line-editor-dialog .price-range-row,
.line-editor-dialog .attachment-row,
.line-editor-dialog .cost-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px !important;
  border: 1px solid rgba(36, 75, 61, 0.1) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.82) !important;
}

.line-editor-dialog .price-range-row .el-date-editor {
  flex: 1 1 180px;
  min-width: 0;
}

.line-editor-dialog .price-range-row .el-input-number {
  flex: 0 0 130px;
}

.line-editor-dialog .attachment-name,
.line-editor-dialog .attachment-type {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-editor-dialog .el-divider {
  margin: 28px 0 18px !important;
  border-top-color: rgba(36, 75, 61, 0.13) !important;
}

.line-editor-dialog .el-divider__text {
  padding: 0 14px 0 0 !important;
  background: #fbf9f3 !important;
  color: var(--editor-ink) !important;
  font-family: 'Songti SC', 'STSong', serif;
  font-size: 17px !important;
  font-weight: 800 !important;
}

.line-editor-dialog .el-divider__text::after {
  content: '  /  CONTENT';
  margin-left: 9px;
  color: var(--editor-gold);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 8px;
  letter-spacing: 0.16em;
}

.line-editor-dialog .route-map-section {
  padding: 18px !important;
  border: 1px solid rgba(178, 139, 82, 0.3) !important;
  border-radius: 16px !important;
  background: linear-gradient(145deg, #fbfaf6, #f0eadf) !important;
  box-shadow: 0 10px 26px rgba(75, 57, 30, 0.06) !important;
}

.line-editor-dialog .route-track-preview {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px !important;
  border: 1px solid rgba(178, 139, 82, 0.2) !important;
  border-radius: 13px !important;
  background: rgba(255, 255, 255, 0.66) !important;
}

.line-editor-dialog .route-track-item {
  position: relative;
  flex: 0 0 156px;
  min-height: 92px;
  padding: 12px !important;
  border: 1px solid rgba(36, 75, 61, 0.1) !important;
  border-radius: 12px !important;
  background: #fffdf8 !important;
}

.line-editor-dialog .route-track-marker {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--editor-green) !important;
  color: #fff !important;
  font-size: 11px;
  font-weight: 800;
}

.line-editor-dialog .route-track-line {
  display: none;
}

.line-editor-dialog .route-track-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 8px;
}

.line-editor-dialog .route-track-copy strong {
  color: var(--editor-gold);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.line-editor-dialog .route-track-copy span {
  color: var(--editor-ink);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.line-editor-dialog .day-card {
  position: relative;
  margin-bottom: 16px !important;
  padding: 18px !important;
  border: 1px solid rgba(36, 75, 61, 0.12) !important;
  border-left: 3px solid rgba(178, 139, 82, 0.72) !important;
  border-radius: 16px !important;
  background: #fffefa !important;
  box-shadow: 0 10px 26px rgba(38, 53, 46, 0.055) !important;
}

.line-editor-dialog .day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(36, 75, 61, 0.1);
}

.line-editor-dialog .day-num {
  display: inline-flex;
  min-width: 64px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--editor-green) !important;
  color: #fffaf0 !important;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.line-editor-dialog .day-card > .el-form-item {
  margin-bottom: 12px !important;
}

.line-editor-dialog .day-card .el-form-item__label {
  min-width: 68px;
}

.line-editor-dialog .day-period-field {
  padding: 15px !important;
  border-radius: 14px !important;
}

.line-editor-dialog .day-period-morning {
  border-color: rgba(178, 139, 82, 0.2) !important;
  background: linear-gradient(135deg, rgba(253, 247, 229, 0.92), #fff) !important;
}

.line-editor-dialog .day-period-afternoon {
  border-color: rgba(45, 92, 72, 0.15) !important;
  background: linear-gradient(135deg, rgba(235, 244, 238, 0.92), #fff) !important;
}

.line-editor-dialog .day-images-section {
  padding: 13px !important;
  border: 1px dashed rgba(36, 75, 61, 0.18) !important;
  border-radius: 12px !important;
  background: rgba(248, 246, 240, 0.7) !important;
}

.line-editor-dialog .day-images-grid,
.line-editor-dialog .highlight-images-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.line-editor-dialog .day-image-item,
.line-editor-dialog .highlight-image-item,
.line-editor-dialog .day-image-add,
.line-editor-dialog .highlight-image-add {
  min-width: 0;
  min-height: 88px;
  overflow: hidden;
  border: 1px solid rgba(36, 75, 61, 0.12) !important;
  border-radius: 12px !important;
  background: #f1eee6 !important;
}

.line-editor-dialog .day-image-add,
.line-editor-dialog .highlight-image-add {
  border-style: dashed !important;
  color: var(--editor-muted) !important;
}

.line-editor-dialog .cost-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 12px !important;
  color: var(--editor-ink) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

.line-editor-dialog .cost-section-title::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--editor-gold);
  box-shadow: 0 0 0 4px rgba(178, 139, 82, 0.12);
}

.line-editor-dialog .notice-builder-block {
  padding: 15px !important;
  border: 1px solid rgba(36, 75, 61, 0.1) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

.line-editor-dialog .notice-row {
  display: grid !important;
  grid-template-columns: 112px minmax(0, 1fr) !important;
  align-items: center;
  gap: 12px;
  padding: 9px 0 !important;
  border-bottom: 1px solid rgba(36, 75, 61, 0.07);
}

.line-editor-dialog .notice-row:last-child {
  border-bottom: 0;
}

.line-editor-dialog .notice-label {
  color: #536159 !important;
  font-size: 12px !important;
  font-weight: 750 !important;
}

.line-editor-dialog .line-editor-preview {
  display: flex !important;
  min-width: 0 !important;
  height: 100% !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border-left: 1px solid var(--editor-line) !important;
  background: linear-gradient(180deg, #eae4d9, #ddd3c3) !important;
}

.line-editor-dialog .preview-header {
  min-height: 54px !important;
  padding: 0 18px !important;
  background: linear-gradient(100deg, #203d32, #315b49) !important;
}

.line-editor-dialog .preview-host {
  min-height: 0;
  overflow: auto !important;
  background: radial-gradient(circle at 80% 0, rgba(178, 139, 82, 0.18), transparent 280px), #e9e1d4 !important;
}

.line-editor-dialog .el-dialog__footer {
  padding: 0 !important;
  border-top: 1px solid var(--editor-line) !important;
  background: rgba(255, 253, 248, 0.98) !important;
}

.line-editor-dialog .line-editor-footer {
  min-height: 68px;
  padding: 12px 24px !important;
}

.line-editor-dialog .line-editor-footer-tip {
  color: var(--editor-muted) !important;
  font-size: 12px !important;
}

.line-editor-dialog .line-editor-footer .el-button {
  min-height: 40px;
  border-radius: 10px !important;
  font-weight: 750;
}

.line-editor-dialog .line-editor-footer .el-button--primary {
  background: linear-gradient(135deg, #244b3d, #3d6a54) !important;
  border-color: transparent !important;
  box-shadow: 0 9px 20px rgba(36, 75, 61, 0.2) !important;
}

@media (max-width: 1100px) and (min-width: 821px) {
  .line-editor-dialog .line-editor-layout {
    grid-template-columns: minmax(560px, 1fr) 390px !important;
  }

  .line-editor-dialog .line-editor-body {
    padding-right: 20px !important;
    padding-left: 20px !important;
  }
}

@media (max-width: 820px) {
  .line-editor-dialog {
    width: calc(100vw - 12px) !important;
    max-width: calc(100vw - 12px) !important;
    height: calc(100dvh - 12px) !important;
    max-height: calc(100dvh - 12px) !important;
    margin: 6px auto 0 !important;
    border-radius: 18px !important;
  }

  .line-editor-dialog .el-dialog__header {
    min-height: 56px;
    padding: 15px 52px 13px 18px !important;
  }

  .line-editor-dialog .el-dialog__header::after {
    display: none;
  }

  .line-editor-dialog .el-dialog__headerbtn {
    top: 16px !important;
    right: 14px !important;
  }

  .line-editor-dialog .line-editor-layout {
    display: block !important;
    height: 100% !important;
  }

  .line-editor-dialog .line-editor-view-switch {
    position: sticky !important;
    top: 0;
    z-index: 10;
    display: flex !important;
    gap: 6px;
    padding: 5px !important;
    border: 1px solid rgba(36, 75, 61, 0.12);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.94);
    box-shadow: 0 8px 22px rgba(38, 53, 46, 0.1);
  }

  .line-editor-dialog .line-editor-view-button {
    flex: 1;
    min-height: 36px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--editor-muted);
    font-size: 12px;
    font-weight: 750;
  }

  .line-editor-dialog .line-editor-view-button.active {
    background: var(--editor-green) !important;
    color: #fff !important;
  }

  .line-editor-dialog .line-editor-body {
    width: 100% !important;
    height: 100% !important;
    padding: 12px 12px 24px !important;
    border-right: 0 !important;
    background: var(--editor-paper) !important;
  }

  .line-editor-dialog .line-editor-preview {
    display: none !important;
  }

  .line-editor-dialog .line-editor-layout.is-preview-mode .line-editor-body {
    display: none !important;
  }

  .line-editor-dialog .line-editor-layout.is-preview-mode .line-editor-preview {
    display: flex !important;
    width: 100% !important;
  }

  .line-editor-dialog .line-form {
    display: block !important;
    padding: 14px !important;
    border-radius: 16px !important;
    background: rgba(255, 253, 248, 0.82) !important;
    box-shadow: 0 10px 26px rgba(38, 53, 46, 0.065) !important;
  }

  .line-editor-dialog .editor-field,
  .line-editor-dialog .editor-field-half,
  .line-editor-dialog .editor-field-wide {
    display: block !important;
    width: 100% !important;
    margin-bottom: 12px !important;
  }

  .line-editor-dialog .editor-field .el-form-item__label {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 0 7px !important;
    padding: 0 !important;
    line-height: 1.45 !important;
    text-align: left !important;
  }

  .line-editor-dialog .editor-field .el-form-item__content {
    width: 100% !important;
    margin-left: 0 !important;
  }

  .line-editor-dialog .el-input__wrapper,
  .line-editor-dialog .el-select__wrapper,
  .line-editor-dialog .el-date-editor.el-input,
  .line-editor-dialog .el-date-editor.el-input__wrapper {
    min-height: 42px !important;
  }

  .line-editor-dialog .el-textarea__inner {
    min-height: 86px;
    padding: 10px 12px !important;
    line-height: 1.65 !important;
  }

  .line-editor-dialog .editor-field-cover .cover-uploader {
    width: 100% !important;
    min-height: 148px !important;
  }

  .line-editor-dialog .price-range-row,
  .line-editor-dialog .attachment-row,
  .line-editor-dialog .cost-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 8px !important;
    padding: 9px !important;
  }

  .line-editor-dialog .price-range-row .el-date-editor,
  .line-editor-dialog .price-range-row .el-input-number,
  .line-editor-dialog .price-range-row .el-button,
  .line-editor-dialog .attachment-row > :last-child,
  .line-editor-dialog .cost-row > :last-child {
    width: 100% !important;
    min-width: 0 !important;
  }

  .line-editor-dialog .price-range-row .el-input-number {
    flex: none;
  }

  .line-editor-dialog .route-track-preview {
    margin-right: -4px;
    margin-left: -4px;
    padding: 9px !important;
  }

  .line-editor-dialog .route-track-item {
    flex-basis: 142px;
  }

  .line-editor-dialog .day-card {
    margin-bottom: 13px !important;
    padding: 14px !important;
    border-radius: 15px !important;
  }

  .line-editor-dialog .day-header {
    margin-bottom: 12px;
  }

  .line-editor-dialog .day-card .el-form-item__label {
    min-width: 0;
  }

  .line-editor-dialog .day-period-field {
    padding: 12px !important;
  }

  .line-editor-dialog .day-images-grid,
  .line-editor-dialog .highlight-images-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .line-editor-dialog .day-image-item,
  .line-editor-dialog .highlight-image-item,
  .line-editor-dialog .day-image-add,
  .line-editor-dialog .highlight-image-add {
    min-height: 76px;
  }

  .line-editor-dialog .notice-row {
    display: flex !important;
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
  }

  .line-editor-dialog .notice-label {
    font-size: 11px !important;
  }

  .line-editor-dialog .line-editor-footer {
    min-height: 66px;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) !important;
  }

  .line-editor-dialog .line-editor-footer-tip {
    display: none !important;
  }

  .line-editor-dialog .line-editor-footer > div {
    display: grid !important;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .line-editor-dialog .line-editor-footer .el-button {
    width: 100% !important;
    min-height: 42px;
    margin: 0 !important;
  }
}

@media (max-width: 520px) {
  .line-editor-dialog .day-period-field {
    padding: 11px !important;
  }

  .line-editor-dialog .day-images-grid,
  .line-editor-dialog .highlight-images-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .line-editor-dialog .line-editor-body {
    padding-right: 8px !important;
    padding-left: 8px !important;
  }

  .line-editor-dialog .line-form {
    padding: 11px !important;
  }

  .line-editor-dialog .day-card {
    padding: 12px !important;
  }
}

/* Compact content builders: keep empty sections useful without making them tall. */
.line-editor-dialog .cost-builder,
.line-editor-dialog .refund-builder,
.line-editor-dialog .notice-builder {
  padding: 14px 16px !important;
}

.line-editor-dialog .cost-builder .cost-section-title,
.line-editor-dialog .refund-builder .el-divider,
.line-editor-dialog .notice-builder .cost-section-title {
  margin-top: 8px !important;
  margin-bottom: 8px !important;
}

.line-editor-dialog .cost-builder > .cost-section-title:first-child {
  margin-top: 0 !important;
}

.line-editor-dialog .cost-builder > .el-button,
.line-editor-dialog .refund-builder > .el-button {
  width: auto !important;
  min-width: 88px !important;
  min-height: 30px !important;
  margin: 1px 0 8px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  border-color: rgba(36, 75, 61, 0.22) !important;
  background: rgba(255, 255, 255, 0.82) !important;
  color: var(--editor-green) !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  box-shadow: none !important;
}

.line-editor-dialog .cost-builder > .el-button:hover,
.line-editor-dialog .refund-builder > .el-button:hover {
  border-color: rgba(36, 75, 61, 0.5) !important;
  background: var(--editor-green-soft) !important;
  color: var(--editor-green) !important;
}

.line-editor-dialog .cost-builder .cost-row,
.line-editor-dialog .refund-builder .cost-row {
  display: grid !important;
  grid-template-columns: 170px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 42px;
  margin: 0 0 7px !important;
  padding: 6px 8px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.88) !important;
  box-shadow: none !important;
}

.line-editor-dialog .cost-builder .cost-row > .el-input,
.line-editor-dialog .refund-builder .cost-row > .el-input {
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.line-editor-dialog .cost-builder .cost-row > .el-button,
.line-editor-dialog .refund-builder .cost-row > .el-button {
  width: auto !important;
  min-width: 48px !important;
  min-height: 30px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
}

.line-editor-dialog .cost-builder .cost-row .el-input__wrapper,
.line-editor-dialog .refund-builder .cost-row .el-input__wrapper {
  min-height: 34px !important;
  border-radius: 8px !important;
}

.line-editor-dialog .refund-builder > .el-input {
  display: block;
  margin: 0 0 8px !important;
}

.line-editor-dialog .refund-builder > .el-input .el-textarea__inner {
  min-height: 64px !important;
  padding: 8px 10px !important;
  border-radius: 9px !important;
  line-height: 1.55 !important;
}

.line-editor-dialog .notice-builder-block {
  padding: 8px 12px !important;
  border-radius: 12px !important;
}

.line-editor-dialog .notice-row {
  min-height: 38px;
  padding: 6px 0 !important;
}

.line-editor-dialog .notice-row .el-input__wrapper,
.line-editor-dialog .notice-row .el-textarea__inner {
  min-height: 34px !important;
  border-radius: 8px !important;
}

@media (max-width: 760px) {
  .line-editor-dialog .cost-builder,
  .line-editor-dialog .refund-builder,
  .line-editor-dialog .notice-builder {
    padding: 11px 12px !important;
  }

  .line-editor-dialog .cost-builder .cost-row,
  .line-editor-dialog .refund-builder .cost-row {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  .line-editor-dialog .cost-builder .cost-row > .el-input:first-child,
  .line-editor-dialog .refund-builder .cost-row > .el-input:first-child {
    grid-column: 1 / -1;
  }

  .line-editor-dialog .notice-builder-block {
    padding: 6px 10px !important;
  }
}
