.YXYH-pc-page-data-migration {
    width: var(--ls-width, 1200px);
    margin: 24px auto 44px;
    color: #1f2937;
}

.YXYH-pc-page-data-migration .is-hidden {
    display: none !important;
}

.yxyh-dm-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    padding: 26px;
    background: linear-gradient(135deg, rgb(59 130 246 / 12%), #fff 42%, rgb(16 185 129 / 10%));
    border: 1px solid #e5e7eb;
    border-radius: var(--ls-border-radius);
}

.yxyh-dm-hero-main {
    min-width: 0;
}

.yxyh-dm-hero h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 700;
}

.yxyh-dm-hero p {
    max-width: 720px;
    margin: 10px 0 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.7;
}

.yxyh-dm-hero-warning {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-radius: var(--ls-border-radius-btn);
    color: #FF5722;
    font-weight: 700;
    line-height: 1.45;
    text-align: right;
}

.yxyh-dm-flow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.yxyh-dm-flow-step {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: var(--ls-border-radius);
    background: #fff;
    color: #6b7280;
}

.yxyh-dm-flow-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--ls-radius-full);
    background: #f3f4f6;
    color: #6b7280;
    font-weight: 800;
}

.yxyh-dm-flow-step strong {
    font-size: 14px;
}

.yxyh-dm-flow-step.is-active {
    border-color: rgb(59 130 246 / 35%);
    background: rgb(59 130 246 / 8%);
    color: #1d4ed8;
}

.yxyh-dm-flow-step.is-active span {
    background: var(--ls-primary);
    color: #fff;
}

.yxyh-dm-flow-step.is-done {
    border-color: rgb(16 185 129 / 30%);
    background: rgb(16 185 129 / 8%);
    color: #047857;
}

.yxyh-dm-flow-step.is-done span {
    background: #10b981;
    color: #fff;
}

.yxyh-dm-panel {
    margin-top: 16px;
    padding: 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--ls-border-radius);
}

.yxyh-dm-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.yxyh-dm-panel-head h2 {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
}

.yxyh-dm-panel-head div {
    min-width: 0;
}

.yxyh-dm-panel-head span {
    color: #6b7280;
    font-size: 13px;
}

.yxyh-dm-method-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.yxyh-dm-method {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 10px 13px;
    align-items: center;
    align-content: center;
    min-height: 128px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: var(--ls-border-radius);
    background: #fff;
    color: #374151;
    cursor: pointer;
    text-align: left;
}

.yxyh-dm-method:hover {
    transform: translateY(-1px);
    border-color: rgb(59 130 246 / 45%);
    background: rgb(59 130 246 / 5%);
}

.yxyh-dm-method.is-active {
    border-color: rgb(59 130 246 / 55%);
    background: rgb(59 130 246 / 8%);
}

.yxyh-dm-method i {
    grid-row: span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: var(--ls-border-radius);
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 24px;
}

.yxyh-dm-method:nth-child(2) i {
    background: #ede9fe;
    color: #6d28d9;
}

.yxyh-dm-method strong {
    font-size: 16px;
}

.yxyh-dm-method span {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.55;
}

.yxyh-dm-form-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.yxyh-dm-form-grid label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.yxyh-dm-form-grid span {
    font-size: 13px;
    color: #9ca3af;
}

.yxyh-dm-media-field {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.yxyh-dm-media-field + .yxyh-dm-media-field {
    margin-top: 15px;
    border-top: 1px dashed #e5e7eb;
    padding-top: 15px;
}

.yxyh-dm-media-field span {
    font-size: 13px;
    color: #9ca3af;
}

.yxyh-dm-radio-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.yxyh-dm-radio-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    border-radius: var(--ls-border-radius-btn);
    background: #fff;
    color: #374151;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    user-select: none;
    min-height: 38px;
}

.yxyh-dm-radio-row label:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.yxyh-dm-radio-row label:has(input:checked) {
    border-color: var(--ls-primary);
    background: rgb(59 130 246 / 8%);
    color: var(--ls-primary);
}

.yxyh-dm-radio-row label:has(input:checked)::before {
    border-color: var(--ls-primary);
    background: var(--ls-primary);
}

.yxyh-dm-radio-row label::before {
    content: '';
    width: 8px;
    height: 8px;
    border: 4px solid #e5e7eb;
    border-radius: var(--ls-radius-full);
    background: #fff;
    transition: all 0.2s ease;
}

.yxyh-dm-radio-row strong {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.yxyh-dm-radio-row span {
    display: none;
}

.yxyh-dm-form-grid input {
    width: 100%;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #d1d5db;
    border-radius: var(--ls-border-radius-btn);
    background: #fff;
    color: #111827;
    outline: none;
}

.yxyh-dm-radio-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.yxyh-dm-form-grid select {
    width: 100%;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #d1d5db;
    border-radius: var(--ls-border-radius-btn);
    background: #fff;
    color: #111827;
    outline: none;
}

.yxyh-dm-form-grid input:focus {
    border-color: var(--ls-primary);
    background: rgb(59 130 246 / 4%);
}

.yxyh-dm-form-grid select:focus {
    border-color: var(--ls-primary);
    background: rgb(59 130 246 / 4%);
}

/* YXYH-20260524-1810-删除已不使用的yxyh-dm-upload-zone样式 */

.yxyh-dm-upload-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    color: #4b5563;
    font-size: 13px;
}

.yxyh-dm-upload-progress div {
    flex: 1;
    height: 10px;
    overflow: hidden;
    border-radius: var(--ls-radius-full);
    background: #e5e7eb;
}

.yxyh-dm-upload-progress i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: var(--ls-radius-full);
    background: #10b981;
    transition: width .18s ease;
}

.yxyh-dm-btn {
    height: 36px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: var(--ls-border-radius-btn);
    background: #fff;
    color: #374151;
    cursor: pointer;
    font-weight: 700;
}

.yxyh-dm-btn:hover {
    background: #f9fafb;
}

.yxyh-dm-btn:disabled {
    cursor: not-allowed;
    opacity: .65;
}

.yxyh-dm-btn-primary {
    border-color: var(--ls-primary);
    background: var(--ls-primary);
    color: #fff;
}

.yxyh-dm-btn-primary:hover {
    border-color: var(--ls-primary-hover, var(--ls-primary));
    background: var(--ls-primary-hover, var(--ls-primary));
    color: #fff;
}

.yxyh-dm-btn-danger {
    border-color: #fecaca;
    background: #fee2e2;
    color: #b91c1c;
}

.yxyh-dm-btn-danger:hover {
    background: #fecaca;
}

.yxyh-dm-progress-actions {
    display: flex;
    gap: 8px;
}

.yxyh-dm-note {
    margin-top: 10px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
}

.yxyh-dm-operate {
    display: block;
}

.yxyh-dm-runbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: var(--ls-border-radius);
    background: #f9fafb;
}

.yxyh-dm-runbar .yxyh-dm-btn {
    height: 38px;
}

.yxyh-dm-backup-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.yxyh-dm-backup {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: var(--ls-border-radius);
}

.yxyh-dm-backup strong {
    display: block;
    margin-bottom: 5px;
}

.yxyh-dm-backup span {
    color: #6b7280;
    font-size: 12px;
}

.yxyh-dm-row-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.yxyh-dm-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #d1d5db;
    border-radius: var(--ls-border-radius-btn);
    background: #fff;
    color: #374151;
    cursor: pointer;
    text-decoration: none;
    font-size: 12px;
}

.yxyh-dm-mini:hover {
    background: #f3f4f6;
}

.yxyh-dm-mini.is-danger {
    border-color: #fecaca;
    color: #b91c1c;
}

.yxyh-dm-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.yxyh-dm-summary-grid div {
    padding: 12px;
    background: #f9fafb;
    border-radius: var(--ls-border-radius);
}

.yxyh-dm-summary-grid span {
    display: block;
    color: #6b7280;
    font-size: 12px;
}

.yxyh-dm-summary-grid strong {
    display: block;
    margin-top: 5px;
    color: #111827;
    font-size: 18px;
}

.yxyh-dm-stage-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.yxyh-dm-stage-row {
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: var(--ls-border-radius);
}

.yxyh-dm-stage-row-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.yxyh-dm-stage-row-top span {
    color: #6b7280;
    font-size: 12px;
}

.yxyh-dm-progress {
    height: 8px;
    overflow: hidden;
    border-radius: var(--ls-radius-full);
    background: #e5e7eb;
}

.yxyh-dm-progress i {
    display: block;
    height: 100%;
    border-radius: var(--ls-radius-full);
    background: var(--ls-primary);
}

.yxyh-dm-stage-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    color: #6b7280;
    font-size: 12px;
}

.yxyh-dm-stage-row p {
    margin: 8px 0 0;
    color: #6b7280;
    font-size: 12px;
}

.yxyh-dm-empty {
    font-size: 13px;
    padding: 14px;
    color: #6b7280;
    background: #f9fafb;
    border-radius: var(--ls-border-radius);
}

.yxyh-dm-error {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.yxyh-dm-error strong {
    color: #b91c1c;
    font-size: 13px;
}

.yxyh-dm-error span {
    color: #4b5563;
    font-size: 12px;
    line-height: 1.5;
}

.yxyh-dm-table-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.yxyh-dm-table-row {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
    min-height: auto;
    padding: 16px;
    border: 1px solid #bbf7d0;
    border-radius: var(--ls-border-radius);
    background: #ecfdf5;
    font-size: 12px;
    position: relative;
}

.yxyh-dm-table-row.is-missing {
    opacity: .72;
}

.yxyh-dm-table-row.is-archive {
    border-color: #fecaca;
    background: #fef2f2;
}

.yxyh-dm-table-name {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    min-width: 0;
    padding-right: 70px;
}

.yxyh-dm-table-row strong {
    color: #166534;
    font-weight: 800;
    line-height: 1.25;
}

.yxyh-dm-table-row.is-missing strong {
    color: #166534;
}

.yxyh-dm-table-row.is-archive strong {
    color: #991b1b;
}

.yxyh-dm-table-row em {
    color: #15803d;
    font-weight: 600;
    font-style: normal;
    line-height: 1.2;
}

.yxyh-dm-table-row.is-missing em {
    color: #15803d;
}

.yxyh-dm-table-row.is-archive em {
    color: #dc2626;
}

.yxyh-dm-table-row b {
    color: #10b981;
    font-weight: 600;
    font-size: 12px;
    line-height: 1.25;
    margin-left: 4px;
}

.yxyh-dm-table-row.is-missing b {
    color: #6b7280;
}

.yxyh-dm-table-row.is-archive b {
    color: #ef4444;
}

/* 右上角复选框重新设计 */
.yxyh-dm-checkbox-label {
    position: absolute;
    top: 15px;
    right: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: var(--ls-border-radius-btn, 4px);
    line-height: 1.2;
    font-weight: 600;
    user-select: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.yxyh-dm-checkbox-label input[type="checkbox"] {
    margin: 0;
    width: 12px;
    height: 12px;
    vertical-align: middle;
    cursor: inherit;
}

.yxyh-dm-checkbox-label.is-basic {
    background: #f0fdf4;
    color: #16a34a;
    border-color: #bbf7d0;
    cursor: not-allowed;
}

.yxyh-dm-checkbox-label.is-basic input {
    accent-color: #16a34a;
}

.yxyh-dm-checkbox-label.is-optional {
    background: #f3f4f6;
    color: #4b5563;
    border-color: #e5e7eb;
    cursor: pointer;
}

.yxyh-dm-checkbox-label.is-optional:has(input:checked) {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.yxyh-dm-checkbox-label.is-optional input {
    accent-color: #2563eb;
}

.yxyh-dm-checkbox-label.is-integrated {
    background: #f0fdf4;
    color: #16a34a;
    border-color: #bbf7d0;
    cursor: not-allowed;
}

.yxyh-dm-checkbox-label.is-disabled {
    background: #f9fafb;
    color: #9ca3af;
    border-color: #e5e7eb;
    cursor: not-allowed;
    opacity: 0.65;
}

.yxyh-dm-checkbox-label.is-disabled input {
    cursor: not-allowed;
}

.yxyh-dm-table-meta {
    grid-column: 1 / 3;
    min-width: 0;
    color: #4b5563;
    font-size: 12px;
    line-height: 1.5;
}

.yxyh-dm-table-row p {
    grid-column: 1 / 3;
    margin: 0;
    color: #4b5563;
    font-size: 12px;
    line-height: 1.6;
}

.yxyh-dm-table-fields {
    grid-column: 1 / 3;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.yxyh-dm-table-fields i {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: var(--ls-border-radius-btn);
    background: #dcfce7;
    color: #166534;
    font-size: 12px;
    font-style: normal;
    line-height: 1.3;
}

.yxyh-dm-table-row.is-archive .yxyh-dm-table-fields i {
    background: #fee2e2;
    color: #991b1b;
}

.yxyh-dm-table-row.is-archive .yxyh-dm-table-meta {
    color: #7f1d1d;
}

.yxyh-dm-report-text {
    width: 100%;
    min-height: 360px;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: var(--ls-border-radius);
    background: #fff;
    color: #111827;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    line-height: 1.6;
}

.yxyh-dm-denied {
    text-align: center;
}

.yxyh-dm-denied h2 {
    margin: 0 0 8px;
}

.yxyh-dm-denied p {
    margin: 0;
    color: #4b5563;
}

/* YXYH-20260523-2200-数据迁移分页、双栏错误和暂停按钮等新增样式 */
.yxyh-dm-btn-warning {
    border-color: #fef08a !important;
    background: #fef9c3 !important;
    color: #854d0e !important;
}

.yxyh-dm-btn-warning:hover {
    background: #fef08a !important;
}

.yxyh-dm-errors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.yxyh-dm-errors-grid .yxyh-dm-error {
    background: #fdf2f2;
    border: 1px solid #fecaca;
    border-radius: var(--ls-border-radius, 6px);
    padding: 12px;
    margin-bottom: 0;
    word-break: break-all;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.yxyh-dm-errors-grid .yxyh-dm-error strong {
    color: #b91c1c;
    font-size: 13px;
    font-weight: 700;
}

.yxyh-dm-errors-grid .yxyh-dm-error span {
    color: #4b5563;
    font-size: 12px;
    line-height: 1.5;
}

.yxyh-dm-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
    width: 100%;
    grid-column: 1 / 3;
}

.yxyh-dm-page-btn {
    height: 32px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: var(--ls-border-radius-btn, 4px);
    color: #374151;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.yxyh-dm-page-btn:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #9ca3af;
}

.yxyh-dm-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.yxyh-dm-pagination span {
    font-size: 13px;
    color: #4b5563;
}
