/* 主模态框样式 */
.main-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.main-modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.main-modal-header {
    padding: 24px 24px 0 24px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 24px;
}

.main-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.main-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    color: #6b7280;
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.main-modal-close:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.main-modal-body {
    padding: 0 24px 24px 24px;
}

.main-modal-section {
    margin-bottom: 32px;
}

.main-modal-section:last-child {
    margin-bottom: 0;
}

.main-modal-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.main-modal-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.main-modal-form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.main-modal-form-group.full-width {
    grid-column: 1 / -1;
}

.main-modal-form-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.main-modal-form-label.required:after {
    content: ' *';
    color: #ef4444;
}

.main-modal-form-input {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    background: white;
    transition: border-color 0.2s ease;
}

.main-modal-form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.main-modal-form-textarea {
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
}

.main-modal-form-select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    background: white;
    cursor: pointer;
}

.main-modal-form-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.main-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.main-modal-btn {
    padding: 8px 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.main-modal-btn-primary {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.main-modal-btn-primary:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.main-modal-btn-secondary {
    background-color: white;
    color: #374151;
    border-color: #d1d5db;
}

.main-modal-btn-secondary:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

.main-modal-error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
}

.main-modal-form-input.error {
    border-color: #ef4444;
}

.main-modal-form-input.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* 信息显示样式 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    background: #f9fafb;
    padding: 16px;
    border-radius: 6px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.info-value {
    color: #6b7280;
    font-size: 14px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 12px;
    white-space: nowrap;
}

.status-badge.pending { background-color: #fef3c7; color: #f59e0b; }
.status-badge.assigned { background-color: #dbeafe; color: #2563eb; }
.status-badge.in-progress { background-color: #d1fae5; color: #10b981; }
.status-badge.review { background-color: #f3e8ff; color: #8b5cf6; }
.status-badge.completed { background-color: #f3f4f6; color: #6b7280; }

.priority-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 12px;
    white-space: nowrap;
}

.priority-badge.urgent { background-color: #fee2e2; color: #ef4444; }
.priority-badge.high { background-color: #fef3c7; color: #f59e0b; }
.priority-badge.medium { background-color: #dbeafe; color: #2563eb; }
.priority-badge.low { background-color: #f3f4f6; color: #6b7280; }

/* 响应式设计 */
@media (max-width: 768px) {
    .main-modal-overlay {
        padding: 10px;
    }

    .main-modal-content {
        max-height: 95vh;
    }

    .main-modal-header {
        padding: 16px 16px 0 16px;
    }

    .main-modal-body {
        padding: 0 16px 16px 16px;
    }

    .main-modal-footer {
        padding: 12px 16px;
        flex-direction: column;
    }

    .main-modal-form-grid {
        grid-template-columns: 1fr;
    }
}

/* 入库单相关样式 */
.parts-list-container {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.parts-list-header {
    background: #f9fafb;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.parts-list-table {
    overflow-x: auto;
}

.inbound-parts-table {
    width: 100%;
    border-collapse: collapse;
}

.inbound-parts-table th,
.inbound-parts-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: middle;
}

.inbound-parts-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.inbound-parts-table td {
    color: #6b7280;
    font-size: 14px;
}

.table-input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.table-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.btn-remove {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 8px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.btn-remove:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.parts-list-summary {
    background: #f9fafb;
    padding: 16px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 32px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-label {
    font-weight: 500;
    color: #374151;
}

.summary-value {
    font-weight: 600;
    color: #1f2937;
}

/* 额外的模态框样式 */
.main-modal-btn-success {
    background-color: #10b981;
    color: white;
    border-color: #10b981;
}

.main-modal-btn-success:hover {
    background-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.main-modal-btn-danger {
    background-color: #ef4444;
    color: white;
    border-color: #ef4444;
}

.main-modal-btn-danger:hover {
    background-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.mr-2 {
    margin-right: 8px;
}

/* 信息网格样式 */
.info-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.info-section {
    margin-bottom: 24px;
}

.info-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

/* 紧急程度标签 */
.urgency-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 12px;
    white-space: nowrap;
}

.urgency-badge.urgent {
    background-color: #fee2e2;
    color: #dc2626;
}

.urgency-badge.normal {
    background-color: #f3f4f6;
    color: #6b7280;
}

.urgency-badge.planned {
    background-color: #dbeafe;
    color: #2563eb;
}

/* 调拨流向样式 */
.transfer-flow-detail {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
}

.flow-point {
    flex: 1;
    text-align: center;
}

.flow-title {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 8px;
}

.flow-content {
    font-size: 14px;
    color: #374151;
}

.flow-region {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

.flow-arrow {
    color: #3b82f6;
    font-size: 20px;
}

/* 运单跟踪样式 */
.tracking-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.tracking-status {
    margin-top: 8px;
}

.tracking-timeline {
    position: relative;
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 24px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #d1d5db;
}

.timeline-item.active .timeline-marker {
    background: #3b82f6;
    box-shadow: 0 0 0 2px #3b82f6;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 18px;
    width: 2px;
    height: calc(100% + 6px);
    background: #e5e7eb;
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-content {
    min-height: 24px;
}

.timeline-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.timeline-time {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.timeline-desc {
    font-size: 14px;
    color: #9ca3af;
}

.tracking-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    background: #dbeafe;
    color: #2563eb;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
}

.tracking-badge:hover {
    background: #bfdbfe;
}

/* 模态框基础样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
}

.modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 10000;
    transition: all 0.3s ease;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.show .modal-container {
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    padding: 24px 32px 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.modal-body {
    padding: 24px 32px;
}

.modal-footer {
    padding: 16px 32px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* 表单样式 */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.form-label.required::after {
    content: ' *';
    color: #ef4444;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background-color: white;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* 按钮样式 */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: white;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background-color: #f9fafb;
}

.btn-danger {
    background-color: #ef4444;
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

/* 详情展示样式 */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-value {
    font-size: 14px;
    color: #1f2937;
    font-weight: 500;
}

/* 状态标签 */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.pending {
    background-color: #fef3c7;
    color: #d97706;
}

.status-badge.in-progress {
    background-color: #dbeafe;
    color: #2563eb;
}

.status-badge.completed {
    background-color: #d1fae5;
    color: #065f46;
}

.status-badge.urgent {
    background-color: #fee2e2;
    color: #dc2626;
}

.status-badge.high {
    background-color: #fed7aa;
    color: #ea580c;
}

.status-badge.medium {
    background-color: #fde68a;
    color: #d97706;
}

.status-badge.low {
    background-color: #e0e7ff;
    color: #5b21b6;
}

/* 图标样式 */
.modal-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modal-container {
        margin: 20px;
        max-width: calc(100vw - 40px);
    }

    .modal-header, .modal-body, .modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}


/* 审批选项样式 */
.approval-buttons {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.approval-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 6px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.approval-option:hover {
    background-color: #f3f4f6;
}

.approval-option input[type="radio"] {
    margin: 0;
    transform: scale(1.2);
}

.approval-option input[type="radio"]:checked + .approval-text.approved {
    color: #10b981;
    font-weight: 600;
}

.approval-option input[type="radio"]:checked + .approval-text.rejected {
    color: #ef4444;
    font-weight: 600;
}

.approval-text {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s ease;
}

.approval-text.approved {
    color: #059669;
}

.approval-text.rejected {
    color: #dc2626;
}

/* === 增强模态框样式 === */

/* 增强的头部样式 */
.enhanced-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid #e2e8f0;
    padding: 28px 32px 24px 32px;
}

.enhanced-title {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-title-icon {
    color: #3b82f6;
    -webkit-text-fill-color: #3b82f6;
    font-size: 20px;
    margin-right: 4px;
}

.enhanced-close {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.enhanced-close:hover {
    background: #e2e8f0;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 增强的主体样式 */
.enhanced-body {
    padding: 32px;
    background: #ffffff;
}

.enhanced-form {
    position: relative;
}

/* 增强的section样式 */
.enhanced-section {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.enhanced-section:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.enhanced-section:last-child {
    margin-bottom: 0;
}

.enhanced-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    color: #3b82f6;
    font-size: 16px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-radius: 6px;
    padding: 2px;
}

/* 增强的表单网格 */
.enhanced-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 16px;
}

/* 增强的表单组件 */
.main-modal-form-input {
    transition: all 0.2s ease;
    border: 1px solid #d1d5db;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.main-modal-form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.main-modal-form-input:hover {
    border-color: #9ca3af;
}

/* 增强的底部样式 */
.enhanced-footer {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 2px solid #e2e8f0;
    padding: 24px 32px;
    gap: 16px;
}

.enhanced-btn {
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.enhanced-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.enhanced-btn:hover::before {
    left: 100%;
}

.enhanced-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.enhanced-save-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    position: relative;
}

.enhanced-save-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* 表单验证增强 */
.form-error {
    background: #fef2f2;
    color: #dc2626;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    border-left: 3px solid #dc2626;
    margin-top: 6px;
    display: none;
}

.main-modal-form-input.error {
    border-color: #dc2626;
    background: #fef2f2;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.main-modal-form-input.error + .form-error {
    display: block;
    animation: fadeInUp 0.3s ease;
}

/* 成功状态 */
.main-modal-form-input.success {
    border-color: #10b981;
    background: #ecfdf5;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* 加载状态 */
.enhanced-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.enhanced-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 方案描述区域增强 */
#edit-maintenance-plan-description {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    min-height: 80px;
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    transition: all 0.2s ease;
}

#edit-maintenance-plan-description:not(:empty) {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

/* 响应式增强 */
@media (max-width: 768px) {
    .enhanced-header,
    .enhanced-body,
    .enhanced-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .enhanced-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .enhanced-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .enhanced-section-title {
        font-size: 16px;
        margin-bottom: 16px;
        padding-bottom: 10px;
    }
}

@media (max-width: 640px) {
    .enhanced-title {
        font-size: 18px;
    }
    
    .enhanced-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .enhanced-footer {
        flex-direction: column;
        gap: 12px;
    }
    
    .enhanced-btn {
        width: 100%;
        justify-content: center;
    }
}
