:root {
  --tool-primary: #2563eb;
  --tool-text: #172033;
  --tool-muted: #64748b;
  --tool-border: #e2e8f0;
  --tool-background: #f4f7fb;
  --tool-scroll-track: #edf1f6;
  --tool-scroll-thumb: #7b8798;
  --tool-scroll-thumb-hover: #526174;
}

html,
body {
  overflow-x: hidden;
}

.transform-tool {
  color: var(--tool-text);
  background: var(--tool-background);
}

.transform-tool .content-wrapper,
.transform-tool .content-inner,
.transform-tool #content {
  min-width: 0;
  min-height: auto;
}

.tool-container {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding-right: 28px;
  padding-left: 28px;
}

.tool-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--tool-border);
  backdrop-filter: blur(14px);
}

.tool-navbar .tool-container {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.tool-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--tool-text);
  font-size: 19px;
  font-weight: 750;
}

.tool-brand:hover {
  color: var(--tool-text);
}

.tool-brand-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--tool-primary);
  border-radius: 12px;
  font-size: 20px;
}

.tool-navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-main {
  min-height: calc(100vh - 72px);
  padding: 42px 0 70px;
}

.tool-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.tool-heading > div:first-child > span {
  color: var(--tool-primary);
  font-weight: 700;
}

.tool-heading h1 {
  margin: 7px 0;
  font-size: 34px;
  letter-spacing: -1px;
  font-weight: 750;
}

.tool-heading p {
  margin: 0;
  color: var(--tool-muted);
}

.tool-security {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
}

.tool-security i {
  color: #16a34a;
  font-size: 22px;
}

.tool-card {
  padding: 28px;
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid var(--tool-border);
  border-radius: 16px;
}

.tool-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.tool-card-header > div:first-child {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.tool-card-header h2 {
  margin: 0 0 4px;
  font-size: 20px;
}

.tool-card-header p {
  margin: 0;
  color: var(--tool-muted);
}

.tool-step {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--tool-primary);
  border-radius: 10px;
  font-weight: 700;
}

.tool-dropzone {
  width: 100%;
  min-height: 310px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  color: var(--tool-text);
  background: #f8fbff;
  border: 2px dashed #93c5fd;
  border-radius: 16px;
  cursor: pointer;
  transition:
    background .2s ease,
    border-color .2s ease;
}

.tool-dropzone:hover,
.tool-dropzone.dragover {
  background: #eff6ff;
  border-color: var(--tool-primary);
}

.tool-dropzone > i {
  margin-bottom: 18px;
  color: var(--tool-primary);
  font-size: 58px;
}

.tool-dropzone strong {
  margin-bottom: 7px;
  font-size: 20px;
}

.tool-dropzone > span:not(.btn) {
  margin-bottom: 22px;
  color: var(--tool-muted);
}

.tool-column-table {
  min-width: 1600px;
  --bs-table-border-color: #d8e0ea;
  margin-bottom: 0;
  color: #263247;
  background: #fff;
}

.tool-column-table th {
  white-space: nowrap;
  color: #253147;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.tool-column-table td {
  height: 61px;
  padding: 11px 20px;
  vertical-align: middle;
  background: #fff;
  border-color: #d8e0ea;
}

.tool-column-table tbody tr:nth-child(even) > td {
  background: #fbfcfe;
}

.tool-column-table tbody tr:hover > td {
  background: #f3f7fd;
}

.tool-column-table .form-control,
.tool-column-table .form-select {
  min-height: 38px;
  border-color: #cbd5e1;
  border-radius: 7px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
  transition:
    border-color .16s ease,
    box-shadow .16s ease,
    background-color .16s ease;
}

.tool-column-table .form-control:hover,
.tool-column-table .form-select:hover {
  border-color: #94a3b8;
}

.tool-column-table .form-control:focus,
.tool-column-table .form-select:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.tool-handle-column {
  width: 64px;
  min-width: 64px;
}

.tool-use-column {
  width: 70px;
  min-width: 70px;
}

.tool-required-column {
  width: 118px;
  min-width: 118px;
}

.tool-source-column {
  width: 180px;
  min-width: 180px;
}

.tool-action-column {
  width: 78px;
  min-width: 78px;
  text-align: center;
}

.tool-column-table-top-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  height: 22px;
  margin-bottom: -1px;
  background: var(--tool-scroll-track);
  border: 1px solid #cfd8e5;
  border-radius: 12px 12px 0 0;
  scrollbar-color:
    var(--tool-scroll-thumb)
    var(--tool-scroll-track);
  scrollbar-width: auto;
}

.tool-column-table-top-scroll > div {
  height: 1px;
}

.tool-column-table-scroll {
  max-height: 620px;
  background: #fff;
  border: 1px solid #cfd8e5;
  border-radius: 0 0 12px 12px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, .04),
    0 8px 24px rgba(15, 23, 42, .035);
  scrollbar-color:
    var(--tool-scroll-thumb)
    var(--tool-scroll-track);
  scrollbar-width: auto;
}

.tool-column-table-scroll .tool-column-table {
  margin-bottom: 0;
}

.tool-column-table-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  height: 50px;
  padding: 12px 20px;
  background: #f4f7fb;
  border-bottom: 0;
  box-shadow:
    inset 0 -1px 0 #cfd8e5,
    0 3px 8px rgba(15, 23, 42, .035);
}

.tool-column-table th:nth-child(-n+4),
.tool-column-table td:nth-child(-n+4) {
  position: sticky;
  z-index: 3;
  background: #fff;
}

.tool-column-table tbody tr:nth-child(even) td:nth-child(-n+4) {
  background: #fbfcfe;
}

.tool-column-table thead th:nth-child(-n+4) {
  z-index: 6;
  background: #f4f7fb;
}

.tool-column-table th:nth-child(1),
.tool-column-table td:nth-child(1) {
  left: 0;
}

.tool-column-table th:nth-child(2),
.tool-column-table td:nth-child(2) {
  left: 64px;
}

.tool-column-table th:nth-child(3),
.tool-column-table td:nth-child(3) {
  left: 134px;
}

.tool-column-table th:nth-child(4),
.tool-column-table td:nth-child(4) {
  left: 252px;
  border-right: 2px solid #cbd5e1;
  box-shadow: 7px 0 10px -9px rgba(15, 23, 42, .5);
}

.tool-column-table thead th:nth-child(4) {
  box-shadow:
    inset 0 -1px 0 #dbe3ee,
    7px 0 10px -9px rgba(15, 23, 42, .5);
}

.tool-column-table tbody tr:hover td:nth-child(-n+4) {
  background: #f3f7fd;
}

.tool-radio-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  cursor: pointer;
}

.tool-radio-control .form-check-input {
  width: 20px;
  height: 20px;
  margin: 0;
  border-radius: 50%;
  cursor: pointer;
}

.tool-output-control .form-check-input {
  border-radius: 6px;
}

.tool-toggle-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  cursor: pointer;
}

.tool-toggle-control .form-check-input {
  position: relative;
  width: 32px;
  height: 18px;
  margin: 0;
  background-color: #cbd5e1;
  background-image: none;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  cursor: pointer;
  appearance: none;
}

.tool-toggle-control .form-check-input::before {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .3);
  content: "";
  transition: transform .16s ease;
}

.tool-toggle-control .form-check-input:checked {
  background-color: var(--tool-primary);
  background-image: none !important;
}

.tool-toggle-control .form-check-input:checked::before {
  transform: translateX(14px);
}

.tool-toggle-control .form-check-input:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .2);
  outline-offset: 2px;
}

.tool-output-cell,
.tool-required-cell {
  text-align: center;
}

.tool-feature-heading {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.tool-help-button {
  order: -1;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 14px;
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
  padding: 0 !important;
  margin: 0;
  color: #64748b;
  background: transparent;
  border: 0 !important;
  border-radius: 0 !important;
  font-size: 16px;
  line-height: 1;
  vertical-align: middle;
  appearance: none;
  transform: none !important;
  overflow: visible;
}

.tool-help-button::before {
  content: none;
}

.column-transform-control {
  position: relative;
  display: inline-block;
  width: 100%;
}

.column-transform-control.is-locked .column-transform {
  padding-left: 30px;
}

.column-transform-lock {
  position: absolute;
  top: 50%;
  left: 10px;
  z-index: 2;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
}

.tool-help-button i {
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  font-size: inherit;
  line-height: 1;
  transform: translateY(1px);
}

.tool-help-button:hover,
.tool-help-button:focus-visible,
.tool-help-button:active {
  flex: 0 0 auto;
  width: auto;
  height: 14px;
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
  padding: 0 !important;
  margin: 0;
  color: #2563eb;
  background: transparent;
  border: 0 !important;
  border-radius: 0 !important;
  outline: none;
  transform: none !important;
}

.column-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #dc2626;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 18px;
}

.column-remove:hover,
.column-remove:focus-visible {
  color: #b91c1c;
  background: #fee2e2;
  outline: none;
}

.feature-help-dialog {
  width: min(560px, calc(100% - 32px));
  padding: 0;
  color: var(--tool-text);
  background: transparent;
  border: 0;
  overflow: visible;
}

.feature-help-dialog::backdrop {
  background: rgba(15, 23, 42, .48);
}

.feature-help-dialog-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .26);
}

.feature-help-dialog-header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 36px;
  gap: 13px;
  align-items: center;
  padding: 22px 24px 18px;
}

.feature-help-dialog-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  font-size: 19px;
  font-weight: 700;
}

.feature-help-dialog-heading span {
  display: block;
  margin-bottom: 2px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

.feature-help-dialog-heading h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.35;
}

.feature-help-dialog-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: #64748b;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 18px;
}

.feature-help-dialog-close:hover,
.feature-help-dialog-close:focus-visible {
  color: #0f172a;
  background: #f8fafc;
  border-color: #cbd5e1;
  outline: none;
}

.feature-help-dialog-summary {
  padding: 17px 24px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.feature-help-dialog-summary p,
.feature-help-dialog-body p,
.feature-help-dialog-note p {
  margin: 0;
  color: var(--tool-muted);
  line-height: 1.65;
}

.feature-help-dialog-body {
  display: grid;
  gap: 18px;
  padding: 22px 24px 18px;
}

.feature-help-dialog-body section {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.feature-help-dialog-section-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 9px;
  font-size: 16px;
}

.feature-help-dialog-section-icon.is-example {
  color: #047857;
  background: #ecfdf5;
}

.feature-help-dialog-body h3 {
  margin: 1px 0 4px;
  font-size: 14px;
  font-weight: 700;
}

.feature-help-dialog-body p {
  font-size: 14px;
}

.feature-help-dialog-note {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  margin: 0 24px 22px;
  padding: 12px 14px;
  color: #475569;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 11px;
}

.feature-help-dialog-note > i {
  margin-top: 3px;
  color: #b45309;
  font-size: 16px;
}

.feature-help-dialog-note p {
  color: #854d0e;
  font-size: 13px;
}

.feature-help-dialog-footer {
  display: flex;
  justify-content: flex-end;
  padding: 16px 24px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.feature-help-dialog-footer .btn {
  min-width: 84px;
}

/* =========================================================
   Entry task guide
   ========================================================= */

.tool-entry-guide {
  display: flex;
  margin-bottom: 24px;
  padding: 20px 22px;
  background:
    linear-gradient(
      135deg,
      #fffbeb 0%,
      #ffffff 72%
    );
  border: 1px solid #fcd34d;
  border-radius: 15px;
  box-shadow: 0 10px 26px rgba(146, 64, 14, .06);
  align-items: center;
  gap: 16px;
}

.tool-entry-guide-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      #f59e0b,
      #d97706
    );
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(217, 119, 6, .22);
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.tool-entry-guide-content {
  min-width: 0;
  flex: 1;
}

.tool-entry-guide-content > span {
  display: block;
  margin-bottom: 2px;
  color: #b45309;
  font-size: 12px;
  font-weight: 750;
}

.tool-entry-guide-content h2 {
  margin: 0 0 4px;
  color: var(--tool-text);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -.35px;
}

.tool-entry-guide-content p {
  margin: 0;
  color: var(--tool-muted);
  font-size: 14px;
  line-height: 1.65;
  word-break: keep-all;
}

.tool-entry-guide .btn {
  flex-shrink: 0;
}

/*
 * 홈에서 선택한 반복 업무의 관련 기능 강조
 * 기본 파란색 UI와 구분되는 황금색 계열을 사용합니다.
 */

.tool-task-highlight {
  position: relative;
  z-index: 1;
  background:
    linear-gradient(
      135deg,
      rgba(255, 251, 235, .96) 0%,
      rgba(255, 255, 255, .98) 54%
    );
  border-color: #f59e0b !important;
  box-shadow:
    0 0 0 4px rgba(245, 158, 11, .18),
    0 18px 42px rgba(146, 64, 14, .14);
  animation: tool-task-highlight-pulse 1.8s ease-out 1;
}

.tool-task-highlight::after {
  position: absolute;
  top: -12px;
  right: 16px;
  z-index: 2;
  padding: 5px 11px;
  color: #ffffff;
  background: #d97706;
  border: 2px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 5px 14px rgba(146, 64, 14, .22);
  content: "선택한 업무";
  font-size: 11px;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: -.1px;
}

.tool-task-control-highlight {
  position: relative;
  z-index: 1;
  background: #fffbeb;
  border-radius: 10px;
  outline: 4px solid rgba(245, 158, 11, .24);
  box-shadow: 0 8px 22px rgba(146, 64, 14, .13);
  animation: tool-task-control-pulse 1.8s ease-out 1;
}

.tool-task-control-highlight .btn {
  color: #92400e;
  background: #ffffff;
  border-color: #f59e0b;
}

.tool-task-control-highlight .btn:hover,
.tool-task-control-highlight .btn:focus {
  color: #ffffff;
  background: #d97706;
  border-color: #d97706;
}

@keyframes tool-task-highlight-pulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(245, 158, 11, .48),
      0 18px 42px rgba(146, 64, 14, .10);
  }

  50% {
    box-shadow:
      0 0 0 10px rgba(245, 158, 11, .08),
      0 18px 42px rgba(146, 64, 14, .16);
  }

  100% {
    box-shadow:
      0 0 0 4px rgba(245, 158, 11, .18),
      0 18px 42px rgba(146, 64, 14, .14);
  }
}

@keyframes tool-task-control-pulse {
  0% {
    outline-color: rgba(245, 158, 11, .55);
    transform: scale(1);
  }

  45% {
    outline-color: rgba(245, 158, 11, .30);
    transform: scale(1.025);
  }

  100% {
    outline-color: rgba(245, 158, 11, .24);
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tool-task-highlight,
  .tool-task-control-highlight {
    animation: none;
  }
}

@media (max-width: 575.98px) {
  .feature-help-dialog-header,
  .feature-help-dialog-summary,
  .feature-help-dialog-body,
  .feature-help-dialog-footer {
    padding-right: 18px;
    padding-left: 18px;
  }

  .feature-help-dialog-note {
    margin-right: 18px;
    margin-left: 18px;
  }
}

.tool-column-actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 12px;
}

.tool-section-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.tool-section-title h2 {
  margin: 0;
}

.tool-upgrade-notice {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
}

.tool-upgrade-notice span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.tool-upgrade-notice .tool-upgrade-locked-feature {
  gap: 0;
}

.tool-upgrade-lock {
  color: #64748b;
  font-size: 13px;
  line-height: 1;
}

.tool-upgrade-link {
  color: #2563eb;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
}

.tool-upgrade-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.tool-combine-action,
.tool-order-merge-action {
  position: relative;
}

.tool-combine-action.is-locked .btn,
.tool-order-merge-action.is-locked .btn {
  color: #94a3b8;
  background: #f1f5f9;
  border-color: #cbd5e1;
  opacity: 1;
}

.tool-feature-lock {
  position: relative;
  top: 1px;
  margin-right: 6px;
  color: #64748b;
  font-size: 17px;
  line-height: 1;
  vertical-align: middle;
}

.tool-pro-feature-control {
  cursor: pointer;
}

.tool-pro-feature-control:disabled,
.tool-pro-feature-control[aria-disabled="true"],
.tool-pro-feature-control.is-locked,
.tool-pro-feature-control:disabled *,
.tool-pro-feature-control[aria-disabled="true"] *,
.tool-pro-feature-control.is-locked *,
.tool-combine-action.is-locked,
.tool-combine-action.is-locked *,
.tool-order-merge-action.is-locked,
.tool-order-merge-action.is-locked * {
  cursor: not-allowed !important;
}

.column-pro-button-control {
  display: inline-block;
}

.column-pro-button-control.is-locked {
  cursor: not-allowed;
}

.column-pro-button-control.is-locked .tool-pro-feature-control {
  pointer-events: none;
}

.tool-column-table .column-transform:disabled {
  color: #94a3b8;
  background-color: #f1f5f9;
  border-color: #cbd5e1;
  cursor: not-allowed;
  opacity: 1;
}

.column-handle {
  color: #94a3b8;
  cursor: grab;
  font-size: 21px;
}

.column-row.dragging {
  opacity: .45;
}

.column-row .form-control {
  min-width: 130px;
}

.column-row .column-transform {
  min-width: 175px;
}

.column-mapping-button {
  min-width: 108px;
  white-space: nowrap;
}

.column-mapping-button.is-locked:disabled,
.column-conditional-button.is-locked:disabled {
  color: #94a3b8;
  background: #f1f5f9;
  border-color: #cbd5e1;
  cursor: not-allowed;
  opacity: 1;
}

.column-conditional-button {
  min-width: 108px;
  white-space: nowrap;
}

.column-combine-button {
  min-width: 125px;
  white-space: nowrap;
}

.combine-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  padding: 0;
  color: var(--tool-text);
  background: transparent;
  border: 0;
}

.combine-dialog::backdrop {
  background: rgba(15, 23, 42, .58);
  backdrop-filter: blur(3px);
}

.combine-dialog-card {
  max-height: calc(100vh - 40px);
  padding: 28px;
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}

.combine-dialog-header,
.combine-parts-heading,
.combine-dialog-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.combine-dialog-header {
  margin-bottom: 24px;
}

.combine-dialog-header h2 {
  margin: 9px 0 5px;
  font-size: 23px;
}

.combine-dialog-header p,
.combine-dialog-help {
  margin: 0;
  color: var(--tool-muted);
}

.combine-parts-heading {
  align-items: center;
  margin-bottom: 12px;
}

.combine-parts {
  display: grid;
  gap: 10px;
}

.combine-part {
  display: grid;
  grid-template-columns: 34px minmax(170px, 1.5fr) minmax(145px, 1fr) 44px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--tool-border);
  border-radius: 12px;
}

.combine-part-number {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1d4ed8;
  background: #dbeafe;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 750;
}

.combine-custom-separator {
  margin-top: 7px;
}

.combine-dialog-help {
  margin-top: 14px;
  font-size: 13px;
}

.combine-dialog-actions {
  justify-content: flex-end;
  margin-top: 24px;
}

.mapping-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  padding: 0;
  color: var(--tool-text);
  background: transparent;
  border: 0;
}

.mapping-dialog::backdrop {
  background: rgba(15, 23, 42, .58);
  backdrop-filter: blur(3px);
}

.mapping-dialog-card {
  max-height: calc(100vh - 40px);
  padding: 28px;
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}

.mapping-dialog-header,
.mapping-rules-heading,
.mapping-dialog-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.mapping-dialog-header {
  margin-bottom: 24px;
}

.mapping-dialog-header h2 {
  margin: 9px 0 5px;
  font-size: 23px;
}

.mapping-dialog-header p,
.mapping-rules-heading span,
.mapping-empty-notice {
  margin: 0;
  color: var(--tool-muted);
}

.mapping-rules-heading {
  align-items: center;
  margin-bottom: 12px;
}

.mapping-rules-heading strong,
.mapping-rules-heading span {
  display: block;
}

.mapping-rules-heading span {
  margin-top: 3px;
  font-size: 13px;
}

.mapping-rule-labels,
.mapping-rule {
  display: grid;
  grid-template-columns: 34px minmax(180px, 1fr) minmax(180px, 1fr) 44px;
  align-items: center;
  gap: 10px;
}

.mapping-rule-labels {
  padding: 0 12px 7px;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.mapping-rules {
  display: grid;
  gap: 10px;
}

.mapping-rule {
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--tool-border);
  border-radius: 12px;
}

.mapping-rule-number {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1d4ed8;
  background: #dbeafe;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 750;
}

.mapping-empty-notice {
  padding: 28px 16px;
  text-align: center;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  font-size: 13px;
}

.mapping-dialog-actions {
  justify-content: flex-end;
  margin-top: 24px;
}

.conditional-dialog {
  width: min(1100px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  padding: 0;
  color: var(--tool-text);
  background: transparent;
  border: 0;
}

.conditional-dialog::backdrop {
  background: rgba(15, 23, 42, .58);
  backdrop-filter: blur(3px);
}

.conditional-dialog-card {
  max-height: calc(100vh - 40px);
  padding: 28px;
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}

.conditional-dialog-header,
.conditional-rules-heading,
.conditional-dialog-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.row-filter-dialog {
  width: min(1080px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  padding: 0;
  color: var(--tool-text);
  background: transparent;
  border: 0;
}

.row-filter-dialog::backdrop {
  background: rgba(15, 23, 42, .58);
  backdrop-filter: blur(3px);
}

.row-filter-dialog-card {
  max-height: calc(100vh - 40px);
  padding: 28px;
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}

.row-filter-dialog-header,
.row-filter-rules-heading,
.row-filter-dialog-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.row-filter-dialog-header {
  margin-bottom: 24px;
}

.row-filter-dialog-header h2 {
  margin: 0 0 5px;
  font-size: 23px;
}

.row-filter-dialog-header p,
.row-filter-rules-heading span,
.row-filter-empty-notice {
  margin: 0;
  color: var(--tool-muted);
}

.row-filter-rules-heading {
  align-items: center;
  margin-bottom: 12px;
}

.row-filter-rules-heading strong,
.row-filter-rules-heading span {
  display: block;
}

.row-filter-rules-heading span {
  margin-top: 3px;
  font-size: 13px;
}

.row-filter-rule-labels,
.row-filter-rule {
  display: grid;
  grid-template-columns:
    34px
    minmax(180px, 1.25fr)
    minmax(150px, 1fr)
    minmax(140px, .9fr)
    minmax(160px, 1.1fr)
    44px;
  align-items: center;
  gap: 10px;
}

.row-filter-rule-labels {
  padding: 0 12px 7px;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.row-filter-rules {
  display: grid;
  gap: 10px;
}

.row-filter-rule {
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--tool-border);
  border-radius: 12px;
}

.row-filter-rule-number {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1d4ed8;
  background: #dbeafe;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 750;
}

.row-filter-empty-notice {
  padding: 28px 16px;
  text-align: center;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  font-size: 13px;
}

.row-filter-dialog-actions {
  justify-content: flex-end;
  margin-top: 24px;
}

.order-merge-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  padding: 0;
  color: var(--tool-text);
  background: transparent;
  border: 0;
}

.order-merge-dialog::backdrop {
  background: rgba(15, 23, 42, .58);
  backdrop-filter: blur(3px);
}

.order-merge-dialog-card {
  max-height: calc(100vh - 40px);
  padding: 28px;
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}

.order-merge-dialog-header,
.order-merge-dialog-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.order-merge-dialog-header {
  margin-bottom: 24px;
}

.order-merge-dialog-header h2 {
  margin: 0 0 5px;
  font-size: 23px;
}

.order-merge-dialog-header p {
  margin: 0;
  color: var(--tool-muted);
}

.order-merge-rules-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.order-merge-rules-heading strong,
.order-merge-rules-heading span {
  display: block;
}

.order-merge-rules-heading span {
  margin-top: 2px;
  color: var(--tool-muted);
  font-size: 13px;
}

.order-merge-rules {
  display: grid;
  gap: 10px;
}

.order-merge-rule {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(0, 1fr) 40px;
  align-items: end;
  gap: 12px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--tool-border);
  border-radius: 12px;
}

.order-merge-rule-number {
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #1d4ed8;
  background: #dbeafe;
  border-radius: 50%;
  font-weight: 700;
}

.order-merge-rule .form-label {
  margin-bottom: 6px;
}

.order-merge-rule-remove:disabled {
  opacity: .4;
}

.order-merge-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 18px;
  padding: 13px 14px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid var(--tool-border);
  border-radius: 10px;
  font-size: 13px;
}

.order-merge-note i {
  margin-top: 2px;
  color: #2563eb;
  font-size: 17px;
}

.order-merge-dialog-actions {
  justify-content: flex-end;
  margin-top: 24px;
}

.conditional-dialog-header {
  margin-bottom: 24px;
}

.conditional-dialog-header h2 {
  margin: 9px 0 5px;
  font-size: 23px;
}

.conditional-dialog-header p,
.conditional-rules-heading span,
.conditional-empty-notice {
  margin: 0;
  color: var(--tool-muted);
}

.conditional-rules-heading {
  align-items: center;
  margin-bottom: 12px;
}

.conditional-rules-heading strong,
.conditional-rules-heading span {
  display: block;
}

.conditional-rules-heading span {
  margin-top: 3px;
  font-size: 13px;
}

.conditional-rule-labels,
.conditional-rule {
  display: grid;
  grid-template-columns:
    34px
    minmax(150px, 1.1fr)
    minmax(140px, .9fr)
    minmax(160px, 1.1fr)
    minmax(160px, 1.1fr)
    44px;
  align-items: center;
  gap: 10px;
}

.conditional-rule-labels {
  padding: 0 12px 7px;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.conditional-rules {
  display: grid;
  gap: 10px;
}

.conditional-rule {
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--tool-border);
  border-radius: 12px;
}

.conditional-rule-number {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1d4ed8;
  background: #dbeafe;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 750;
}

.conditional-empty-notice {
  padding: 28px 16px;
  text-align: center;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  font-size: 13px;
}

.conditional-dialog-actions {
  justify-content: flex-end;
  margin-top: 24px;
}

.tool-preview {
  max-height: 560px;
  background: #fff;
  border: 1px solid #cfd8e5;
  border-radius: 12px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, .04),
    0 8px 24px rgba(15, 23, 42, .035);
  scrollbar-color:
    var(--tool-scroll-thumb)
    var(--tool-scroll-track);
  scrollbar-width: auto;
}

.tool-preview table {
  --bs-table-border-color: #d8e0ea;
  margin: 0;
  color: #263247;
  white-space: nowrap;
}

.tool-preview thead {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f4f7fb;
  box-shadow:
    inset 0 -1px 0 #cfd8e5,
    0 3px 8px rgba(15, 23, 42, .035);
}

.tool-preview th,
.tool-preview td {
  max-width: 300px;
  height: 43px;
  padding: 10px 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  border-color: #d8e0ea;
}

.tool-preview th {
  color: #253147;
  background: #f4f7fb;
  font-size: 13px;
  font-weight: 700;
}

.tool-preview tbody tr:nth-child(even) > td {
  background: #fbfcfe;
}

.tool-preview tbody tr:hover > td {
  background: #f3f7fd;
}

.tool-preview-notice {
  margin: 12px 0 0;
  color: var(--tool-muted);
  font-size: 13px;
}

.tool-validation-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 11px 14px;
  border: 1px solid;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}

.tool-validation-summary i {
  font-size: 20px;
}

.tool-validation-summary.is-valid {
  color: #047857;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.tool-validation-summary.is-invalid {
  color: #b45309;
  background: #fffbeb;
  border-color: #fde68a;
}

.tool-preview .validation-error-row {
  background: #fffbeb;
}

.tool-preview .validation-error-cell {
  color: #b91c1c;
  background: #fee2e2;
  box-shadow: inset 0 0 0 1px #fca5a5;
}

.tool-save-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  color: #fff;
  background: #0f172a;
  border-radius: 16px;
}

.tool-save-panel > div {
  display: flex;
  align-items: center;
  gap: 15px;
}

.tool-save-message {
  min-width: 0;
}

.tool-save-message > div {
  min-width: 0;
}

.tool-save-panel[data-save-state="guest"] {
  background:
    linear-gradient(
      135deg,
      #0f172a 0%,
      #172554 100%
    );
}

.tool-save-panel[data-save-state="pro"] {
  background:
    linear-gradient(
      135deg,
      #3f2d0f 0%,
      #78350f 100%
    );
}

.tool-save-panel[data-save-state="pro"] > .tool-save-message > i {
  color: #fcd34d;
}

.tool-save-panel.is-download-highlighted {
  animation: tool-save-panel-highlight 1.2s ease-out 1;
  box-shadow:
    0 0 0 5px rgba(96, 165, 250, .22),
    0 20px 46px rgba(15, 23, 42, .22);
}

.tool-save-panel[data-save-state="pro"].is-download-highlighted {
  box-shadow:
    0 0 0 5px rgba(245, 158, 11, .25),
    0 20px 46px rgba(120, 53, 15, .24);
}

@keyframes tool-save-panel-highlight {
  0% {
    transform: translateY(0);
  }

  35% {
    transform: translateY(-5px);
  }

  100% {
    transform: translateY(0);
  }
}

.tool-save-panel i {
  color: #60a5fa;
  font-size: 35px;
}

.tool-save-panel strong,
.tool-save-panel span {
  display: block;
}

.tool-save-panel span {
  margin-top: 4px;
  color: #cbd5e1;
}

.tool-save-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.tool-save-secondary {
  color: #0f172a;
  background: #fff;
  border-color: #fff;
  font-weight: 700;
}

.tool-save-secondary:hover,
.tool-save-secondary:focus {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.tool-save-actions .btn:disabled,
.tool-save-panel > .btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

@media (max-width: 767.98px) {
  .tool-save-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .tool-save-panel > div {
    align-items: flex-start;
  }

  .tool-save-actions {
    width: 100%;
    flex-direction: column;
  }

  .tool-save-actions .btn,
  .tool-save-panel > .btn {
    width: 100%;
  }

  .tool-entry-guide {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .tool-entry-guide .btn {
    width: 100%;
  }


  .tool-container {
    padding-right: 16px;
    padding-left: 16px;
  }

  .tool-brand span:last-child {
    display: none;
  }

  .tool-navbar-actions .btn {
    padding-right: 11px;
    padding-left: 11px;
  }

  .tool-heading,
  .tool-card-header,
  .tool-save-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .tool-card {
    padding: 20px;
  }

  .combine-dialog-card {
    padding: 20px;
  }

  .mapping-dialog-card {
    padding: 20px;
  }

  .conditional-dialog-card {
    padding: 20px;
  }

  .order-merge-dialog-card {
    padding: 20px;
  }

  .order-merge-rule {
    grid-template-columns: 30px minmax(0, 1fr) 40px;
  }

  .order-merge-rule > div:nth-child(3) {
    grid-column: 2 / 3;
  }

  .order-merge-dialog-actions {
    width: 100%;
    flex-direction: column;
  }

  .order-merge-dialog-actions .btn {
    width: 100%;
  }

  .combine-part {
    grid-template-columns: 34px minmax(0, 1fr) 44px;
  }

  .combine-part-separator {
    grid-column: 2 / 4;
  }

  .mapping-rule-labels {
    display: none;
  }

  .mapping-rule {
    grid-template-columns: 34px minmax(0, 1fr) 44px;
  }

  .mapping-rule-to {
    grid-column: 2 / 4;
  }

  .conditional-rule-labels {
    display: none;
  }

  .conditional-rule {
    grid-template-columns: 34px minmax(0, 1fr) 44px;
  }

  .conditional-rule-source,
  .conditional-rule-operator,
  .conditional-rule-compare,
  .conditional-rule-result {
    grid-column: 2 / 4;
  }

  .tool-dropzone {
    min-height: 250px;
    padding: 25px;
  }

  .tool-save-panel .btn,
  .tool-card-header > .btn,
  .tool-card-header > .d-flex {
    width: 100%;
  }

  .tool-save-actions {
    width: 100%;
    flex-direction: column;
  }

  .tool-card-header > .d-flex .btn {
    flex: 1;
  }

  .tool-column-actions {
    width: 100%;
    align-items: flex-end;
    flex-wrap: wrap;
  }
}
.tool-toast {
  position: fixed;
  z-index: 1080;
  top: 92px;
  left: 50%;
  width: min(420px, calc(100vw - 32px));
  margin: 0;
  transform: translateX(-50%);
  box-shadow: 0 14px 36px rgba(15, 23, 42, .16);
  pointer-events: none;
}

.tool-column-table-top-scroll::-webkit-scrollbar,
.tool-column-table-scroll::-webkit-scrollbar,
.tool-preview::-webkit-scrollbar {
  width: 15px;
  height: 15px;
}

.tool-column-table-top-scroll::-webkit-scrollbar-track,
.tool-column-table-scroll::-webkit-scrollbar-track,
.tool-preview::-webkit-scrollbar-track {
  background: var(--tool-scroll-track);
  border-radius: 999px;
}

.tool-column-table-top-scroll::-webkit-scrollbar-thumb,
.tool-column-table-scroll::-webkit-scrollbar-thumb,
.tool-preview::-webkit-scrollbar-thumb {
  min-width: 52px;
  min-height: 52px;
  background: var(--tool-scroll-thumb);
  background-clip: padding-box;
  border: 3px solid var(--tool-scroll-track);
  border-radius: 999px;
}

.tool-column-table-top-scroll::-webkit-scrollbar-thumb:hover,
.tool-column-table-scroll::-webkit-scrollbar-thumb:hover,
.tool-preview::-webkit-scrollbar-thumb:hover {
  background: var(--tool-scroll-thumb-hover);
  background-clip: padding-box;
}

.tool-column-table-top-scroll::-webkit-scrollbar-corner,
.tool-column-table-scroll::-webkit-scrollbar-corner,
.tool-preview::-webkit-scrollbar-corner {
  background: var(--tool-scroll-track);
}

@media (max-width: 575.98px) {
  .tool-toast {
    top: 76px;
    right: 16px;
    left: 16px;
    width: auto;
    transform: none;
  }
}

/* 출력 열 작업 버튼을 한 줄로 유지 */
.tool-column-actions {
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

.tool-column-actions > .btn,
.tool-column-actions > div,
.tool-column-actions > div > .btn {
  flex: 0 0 auto;
}

.tool-column-actions .btn {
  min-width: max-content;
  white-space: nowrap;
  word-break: keep-all;
}

/* 상단 스크롤과 표를 하나의 영역으로 연결 */
.tool-column-table-top-scroll {
  width: 100%;
  margin-right: 0;
  border-radius: 12px 12px 0 0;
}

.tool-column-table-scroll {
  overflow: auto;
  border-radius: 0 0 12px 12px;
  clip-path: inset(0 round 0 0 12px 12px);
}

.tool-preview {
  overflow: auto;
  border-radius: 12px;
  clip-path: inset(0 round 12px);
}

.tool-column-table-top-scroll::-webkit-scrollbar-track,
.tool-column-table-scroll::-webkit-scrollbar-track,
.tool-preview::-webkit-scrollbar-track {
  border-radius: 10px;
}

.tool-column-table-top-scroll::-webkit-scrollbar-corner,
.tool-column-table-scroll::-webkit-scrollbar-corner,
.tool-preview::-webkit-scrollbar-corner {
  background: var(--tool-scroll-track);
  border-radius: 0 0 10px 0;
  box-shadow:
    inset -1px 0 #cfd8e5,
    inset 0 -1px #cfd8e5;
}

@media (max-width: 991.98px) {
  .tool-card-header {
    flex-wrap: wrap;
  }

  .tool-column-actions {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }
}

@media (max-width: 767.98px) {
  .tool-column-actions {
    align-items: center;
    flex-wrap: nowrap;
  }
}

/* 표와 스크롤 영역을 직각으로 통일 */
.tool-column-table-top-scroll {
  box-sizing: border-box;
  height: 17px;
  border-radius: 0;
}

.tool-column-table-top-scroll > div {
  height: 0;
}

.tool-column-table-scroll,
.tool-preview {
  border-radius: 0;
  clip-path: none;
}

.tool-column-table-top-scroll::-webkit-scrollbar-track,
.tool-column-table-scroll::-webkit-scrollbar-track,
.tool-preview::-webkit-scrollbar-track,
.tool-column-table-top-scroll::-webkit-scrollbar-thumb,
.tool-column-table-scroll::-webkit-scrollbar-thumb,
.tool-preview::-webkit-scrollbar-thumb,
.tool-column-table-top-scroll::-webkit-scrollbar-corner,
.tool-column-table-scroll::-webkit-scrollbar-corner,
.tool-preview::-webkit-scrollbar-corner {
  border-radius: 0;
}

.tool-column-table-top-scroll::-webkit-scrollbar-corner,
.tool-column-table-scroll::-webkit-scrollbar-corner,
.tool-preview::-webkit-scrollbar-corner {
  box-shadow:
    inset -1px 0 #cfd8e5,
    inset 0 -1px #cfd8e5;
}

/* 상단 스크롤 표시와 우측 끝 여백 보정 */
.tool-column-table-top-scroll {
  width: calc(100% - 15px);
  height: 16px;
  margin-right: 15px;
  overflow-x: scroll;
  box-shadow:
    15px 0 0 var(--tool-scroll-track),
    16px 0 0 #cfd8e5;
}

.tool-column-table-top-scroll > div {
  height: 1px;
}

/* 상단 스크롤 외곽 테두리 */
.tool-column-table-top-scroll-frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15px;
  box-sizing: border-box;
  width: 100%;
  height: 17px;
  overflow: hidden;
  background: var(--tool-scroll-track);
  border: 1px solid var(--tool-border);
  border-bottom: 0;
}

.tool-column-table-top-scroll {
  width: 100%;
  height: 16px;
  margin-right: 0;
  border: 0;
  box-shadow: none;
}

.tool-column-table-top-scroll-corner {
  min-width: 15px;
  height: 16px;
  background: var(--tool-scroll-track);
}

/* 상단 스크롤과 표 접합부의 내부 가로선 제거 */
.tool-column-table-scroll {
  border-top: 0;
}

/* 고정 열의 수평 위치를 스크롤과 완전히 분리 */
.tool-column-table {
  --tool-fixed-handle-width: 64px;
  --tool-fixed-use-width: 70px;
  --tool-fixed-required-width: 118px;
  --tool-fixed-source-width: 180px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.tool-column-table th,
.tool-column-table td {
  box-sizing: border-box;
  background-clip: padding-box;
}

.tool-column-table th:nth-child(-n+4),
.tool-column-table td:nth-child(-n+4) {
  backface-visibility: hidden;
  transform: translateZ(0);
}

.tool-column-table th:nth-child(1),
.tool-column-table td:nth-child(1) {
  width: var(--tool-fixed-handle-width);
  min-width: var(--tool-fixed-handle-width);
  max-width: var(--tool-fixed-handle-width);
  left: 0;
}

.tool-column-table th:nth-child(2),
.tool-column-table td:nth-child(2) {
  width: var(--tool-fixed-use-width);
  min-width: var(--tool-fixed-use-width);
  max-width: var(--tool-fixed-use-width);
  left: var(--tool-fixed-handle-width);
}

.tool-column-table th:nth-child(3),
.tool-column-table td:nth-child(3) {
  width: var(--tool-fixed-required-width);
  min-width: var(--tool-fixed-required-width);
  max-width: var(--tool-fixed-required-width);
  left: calc(
    var(--tool-fixed-handle-width) +
    var(--tool-fixed-use-width)
  );
}

.tool-column-table th:nth-child(4),
.tool-column-table td:nth-child(4) {
  width: var(--tool-fixed-source-width);
  min-width: var(--tool-fixed-source-width);
  max-width: var(--tool-fixed-source-width);
  left: calc(
    var(--tool-fixed-handle-width) +
    var(--tool-fixed-use-width) +
    var(--tool-fixed-required-width)
  );
}

/* 출력 열 설정 표 밀도와 열 너비 조정 */
.tool-column-table {
  --tool-fixed-handle-width: 52px;
  --tool-fixed-use-width: 60px;
  --tool-fixed-required-width: 104px;
  --tool-fixed-source-width: 116px;
  width: calc(1280px + var(--tool-fixed-source-width));
  min-width: calc(1280px + var(--tool-fixed-source-width));
  font-size: 12px;
}

.tool-column-table-scroll thead th {
  height: 42px;
  padding: 8px 10px;
  text-align: center;
  font-size: 12px;
}

.tool-column-table td {
  height: 49px;
  padding: 7px 10px;
  font-size: 12px;
  line-height: 1.35;
}

.tool-column-table .form-control,
.tool-column-table .form-select {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  height: 34px;
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: 12px;
}

.tool-column-table th:nth-child(5),
.tool-column-table td:nth-child(5) {
  width: 168px;
  min-width: 168px;
  max-width: 168px;
}

.tool-column-table th:nth-child(6),
.tool-column-table td:nth-child(6) {
  width: 160px;
  min-width: 160px;
  max-width: 160px;
}

.tool-column-table th:nth-child(7),
.tool-column-table td:nth-child(7) {
  width: 124px;
  min-width: 124px;
  max-width: 124px;
}

.tool-column-table th:nth-child(8),
.tool-column-table td:nth-child(8) {
  width: 140px;
  min-width: 140px;
  max-width: 140px;
}

.tool-column-table th:nth-child(9),
.tool-column-table td:nth-child(9) {
  width: 176px;
  min-width: 176px;
  max-width: 176px;
}

.tool-column-table th:nth-child(10),
.tool-column-table td:nth-child(10),
.tool-column-table th:nth-child(11),
.tool-column-table td:nth-child(11) {
  width: 116px;
  min-width: 116px;
  max-width: 116px;
}

.tool-column-table th:nth-child(12),
.tool-column-table td:nth-child(12) {
  width: 64px;
  min-width: 64px;
  max-width: 64px;
}

.tool-column-table .tool-feature-heading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  gap: 2px;
  text-align: center;
  white-space: nowrap;
}

.tool-column-table .tool-help-button {
  font-size: 14px;
}

.tool-column-table .column-row .form-control,
.tool-column-table .column-row .column-transform {
  min-width: 0;
}

.tool-column-table .column-mapping-button,
.tool-column-table .column-conditional-button,
.tool-column-table .column-combine-button {
  width: 100%;
  min-width: 0;
  padding: 6px 7px;
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
}

.tool-column-table .column-transform-control.is-locked .column-transform {
  padding-left: 27px;
}

.tool-column-table .column-transform-lock {
  left: 8px;
  font-size: 13px;
}

.tool-column-table .column-handle {
  font-size: 18px;
}

.tool-column-table .column-remove {
  width: 30px;
  height: 30px;
  font-size: 16px;
}

.tool-column-table .column-source-name {
  display: block;
  width: 100%;
  overflow: hidden;
  cursor: text;
  text-align: center;
  text-overflow: ellipsis;
  user-select: text;
  white-space: nowrap;
}

.tool-column-table .column-row td:not(:first-child) {
  user-select: text;
}

.tool-column-table .column-handle {
  user-select: none;
}

/* 원본 열 너비 조절 */
.tool-column-table .tool-source-column {
  position: sticky;
  overflow: visible;
}

.tool-source-column-heading {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.tool-column-resize-handle {
  display: inline-flex;
  position: absolute;
  top: 50%;
  right: 3px;
  z-index: 8;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
  cursor: ew-resize !important;
  touch-action: none;
}

.tool-column-resize-handle:hover,
.tool-column-resize-handle:focus,
.tool-column-resize-handle:focus-visible,
.tool-column-resize-handle:active,
body.is-resizing-source-column .tool-column-resize-handle {
  border: 0;
  background: transparent;
  color: inherit;
  outline: 0;
  box-shadow: none;
}

.tool-column-resize-handle:active {
  cursor: ew-resize !important;
}

body.is-resizing-source-column {
  cursor: ew-resize !important;
  user-select: none;
}

body.is-dragging-column {
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
  overflow-x: hidden;
}

body.is-dragging-column .column-handle {
  cursor: grabbing;
}

body.is-resizing-source-column * {
  cursor: ew-resize !important;
}

/* 가로 넘침이 없으면 상단 스크롤 전체 숨김 */
.tool-column-table-top-scroll-frame.is-hidden {
  display: none;
}

.tool-column-table-top-scroll-frame.is-hidden +
.tool-column-table-scroll {
  border-top: 1px solid var(--tool-border);
}



/* BOMU 모바일 변환페이지 보완 */
@media (max-width: 767.98px) {
  .transform-tool,
  .tool-container,
  .tool-heading,
  .tool-card,
  .tool-card-header,
  .tool-save-panel {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .tool-card {
    overflow: hidden;
  }

  .tool-card-header {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .tool-card-header > div,
  .tool-card-header > div > div,
  .tool-section-title {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .tool-card-header h2,
  .tool-card-header p,
  .tool-section-title,
  .tool-upgrade-notice,
  .tool-upgrade-notice span {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    line-height: 1.6;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .tool-column-actions {
    display: grid;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .tool-column-actions > button,
  .tool-column-actions > .btn,
  .tool-column-actions > div {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
  }

  .tool-column-actions > div > button,
  .tool-column-actions > div > .btn {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .tool-column-actions .btn {
    min-height: 42px;
    padding-right: 8px;
    padding-left: 8px;
    white-space: normal;
    word-break: keep-all;
  }

  .tool-column-table-top-scroll-frame,
  .tool-column-table-top-scroll,
  .tool-column-table-scroll,
  .tool-preview {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .tool-column-table-top-scroll,
  .tool-column-table-scroll,
  .tool-preview {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .tool-column-table {
    width: 1600px;
    min-width: 1600px;
  }
}

@media (max-width: 419.98px) {
  .tool-card {
    padding: 16px;
  }

  .tool-column-actions {
    grid-template-columns: 1fr;
  }
}


/* BOMU 모바일 출력 열 UI 최종 보완 */
@media (max-width: 767.98px) {
  .tool-section-title {
    display: flex;
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .tool-section-title h2 {
    width: 100%;
    margin: 0;
  }

  .tool-upgrade-notice {
    display: flex;
    width: 100%;
    padding: 12px 14px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    line-height: 1.6;
  }

  .tool-upgrade-notice > span {
    display: block;
    width: 100%;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .tool-upgrade-link {
    display: inline-flex;
    width: auto;
    min-height: 38px;
    padding: 8px 14px;
    margin: 0;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    white-space: nowrap;
  }

  .tool-column-actions {
    display: flex !important;
    width: 80%;
    min-width: 0;
    max-width: 80%;
    padding: 0;
    margin-right: auto;
    margin-left: auto;
    align-items: stretch !important;
    justify-content: flex-start;
    flex-direction: column;
    flex-wrap: nowrap !important;
    overflow: visible !important;
    gap: 8px;
  }

  .tool-column-actions > button,
  .tool-column-actions > .btn,
  .tool-column-actions > div {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
  }

  .tool-column-actions > div > button,
  .tool-column-actions > div > .btn,
  .tool-column-actions .btn {
    display: flex;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 46px;
    padding: 10px 14px;
    align-items: center;
    justify-content: center;
    white-space: normal !important;
    word-break: keep-all;
  }

  #openRowFilterButton {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .tool-column-table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: auto;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
  }

  .tool-column-table th:nth-child(-n+4),
  .tool-column-table td:nth-child(-n+4) {
    left: auto !important;
    right: auto !important;
    transform: none !important;
  }

  .tool-column-table tbody td:nth-child(-n+4),
  .tool-column-table tbody .tool-source-column {
    position: static !important;
    z-index: auto !important;
  }

  .tool-column-table thead th:nth-child(-n+4),
  .tool-column-table thead .tool-source-column {
    position: sticky !important;
    top: 0;
    left: auto !important;
    right: auto !important;
    z-index: 4;
  }

  .tool-column-table {
    width: 1600px;
    min-width: 1600px;
  }
}

@media (max-width: 359.98px) {
  .tool-column-actions {
    width: 90%;
    max-width: 90%;
  }

  .tool-upgrade-link {
    width: 100%;
  }
}

/* =========================================================
   Mobile task highlight and column ordering
   ========================================================= */

@media (max-width: 767.98px) {
  /*
   * 데스크톱에서는 배지를 카드 바깥에 표시하지만,
   * 모바일에서는 화면 상단과 카드 경계에 잘리지 않도록
   * 카드 내부 오른쪽 위에 배치합니다.
   */
  .tool-task-highlight {
    padding-top: 42px;
    overflow: visible;
  }

  .tool-task-highlight::after {
    top: 10px;
    right: 12px;
    max-width: calc(100% - 24px);
    padding: 5px 10px;
    border-width: 0;
    box-shadow: 0 4px 12px rgba(146, 64, 14, .18);
    white-space: nowrap;
  }

  /*
   * 강조 대상이 버튼 묶음일 때도 카드 경계 밖으로
   * 그림자나 외곽선이 잘리지 않도록 처리합니다.
   */
  .tool-task-control-highlight {
    overflow: visible;
  }
}

@media (max-width: 767.98px) {
  /*
   * 테이블을 좌우로 이동해도 순서 열은 항상 왼쪽에 유지합니다.
   */
  .tool-column-table th.tool-handle-column,
  .tool-column-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 6;
    background: #ffffff;
  }

  .tool-column-table thead th.tool-handle-column {
    z-index: 8;
    background: #f8fafc;
  }

  .tool-column-table tbody tr:nth-child(even)
    td:first-child {
    background: #f8fafc;
  }

  .tool-column-table tbody tr:hover
    td:first-child {
    background: #f1f5f9;
  }

  /*
   * 테이블 전체의 가로 스크롤이 바깥 페이지까지
   * 전달되지 않도록 제한합니다.
   */
  .tool-column-table-scroll,
  .tool-column-table-top-scroll {
    overscroll-behavior-x: contain;
  }
}

/* =========================================================
   Mobile column ordering controls
   ========================================================= */

.tool-order-cell {
  min-width: 54px;
  text-align: center;
}

.column-handle-wrap {
  display: inline-flex;
}

.column-mobile-order-buttons {
  display: none;
}

.column-order-button {
  display: inline-flex;
  width: 32px;
  height: 30px;
  padding: 0;
  color: #475569;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition:
    color .2s ease,
    background-color .2s ease,
    border-color .2s ease;
}

.column-order-button:hover,
.column-order-button:focus {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #60a5fa;
  outline: none;
}

.column-order-button:disabled {
  color: #cbd5e1;
  background: #f8fafc;
  border-color: #e2e8f0;
  cursor: not-allowed;
}

.column-row-moved > td {
  animation: column-row-moved-flash .9s ease-out;
}

@keyframes column-row-moved-flash {
  0% {
    background: #fef3c7;
  }

  100% {
    background: inherit;
  }
}

@media (max-width: 767.98px) {
  .tool-column-table th.tool-handle-column,
  .tool-column-table td.tool-order-cell {
    position: sticky;
    left: 0;
    z-index: 7;
    min-width: 86px;
    width: 86px;
    background: #ffffff;
  }

  .tool-column-table thead th.tool-handle-column {
    z-index: 9;
    background: #f8fafc;
  }

  .column-handle-wrap {
    display: none;
  }

  .column-mobile-order-buttons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }

  .column-order-button {
    width: 34px;
    height: 34px;
  }

  .tool-column-table-scroll {
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
}

/* =========================================================
   Medium-width output settings layout
   768px–1199px: keep header content readable without
   affecting wide desktop or the dedicated mobile layout.
   ========================================================= */

@media (min-width: 768px) and (max-width: 1199.98px) {
  #columnSettingsCard > .tool-card-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 18px;
  }

  #columnSettingsCard > .tool-card-header > div:first-child {
    width: 100%;
    min-width: 0;
  }

  #columnSettingsCard .tool-section-title {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  #columnSettingsCard .tool-section-title h2 {
    width: 100%;
    margin: 0;
  }

  #columnSettingsCard .tool-upgrade-notice {
    display: flex;
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    border-radius: 9px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  #columnSettingsCard .tool-upgrade-notice > span {
    display: block;
    min-width: 0;
    color: #0f766e;
    line-height: 1.55;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  #columnSettingsCard .tool-upgrade-locked-feature {
    display: inline-flex;
    white-space: nowrap;
  }

  #columnSettingsCard .tool-upgrade-link {
    display: inline-flex;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid #bfdbfe;
    border-radius: 7px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    line-height: 1.2;
    white-space: nowrap;
  }

  #columnSettingsCard > .tool-card-header p {
    max-width: 760px;
    line-height: 1.7;
    word-break: keep-all;
  }

  #columnSettingsCard .tool-column-actions {
    display: flex;
    width: 100%;
    min-width: 0;
    padding: 0;
    overflow: visible;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 9px;
  }

  #columnSettingsCard .tool-column-actions > button,
  #columnSettingsCard .tool-column-actions > .btn,
  #columnSettingsCard .tool-column-actions > div {
    min-width: 0;
    margin: 0;
    flex: 0 0 auto;
  }

  #columnSettingsCard .tool-column-actions > div > button,
  #columnSettingsCard .tool-column-actions > div > .btn,
  #columnSettingsCard .tool-column-actions > button,
  #columnSettingsCard .tool-column-actions > .btn {
    min-height: 42px;
    padding-right: 14px;
    padding-left: 14px;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    word-break: keep-all;
  }

  #columnSettingsCard .tool-combine-action,
  #columnSettingsCard .tool-order-merge-action {
    display: inline-flex;
  }

  #columnSettingsCard .tool-task-control-highlight {
    outline-offset: 2px;
  }
}

@media (min-width: 768px) and (max-width: 899.98px) {
  #columnSettingsCard .tool-upgrade-notice {
    align-items: flex-start;
    flex-direction: column;
  }

  #columnSettingsCard .tool-upgrade-link {
    align-self: flex-start;
  }

  #columnSettingsCard .tool-column-actions > button,
  #columnSettingsCard .tool-column-actions > .btn,
  #columnSettingsCard .tool-column-actions > div {
    flex: 1 1 calc(50% - 5px);
  }

  #columnSettingsCard .tool-column-actions > div > button,
  #columnSettingsCard .tool-column-actions > div > .btn,
  #columnSettingsCard .tool-column-actions > button,
  #columnSettingsCard .tool-column-actions > .btn {
    width: 100%;
  }
}

