/* 预包任务页面样式 */
.ppm-card {
    height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 24px;
}

/* 搜索区域样式 */
.ppm-search-form {
    background: #ffffff;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ppm-search-row {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.ppm-search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.ppm-search-label {
    font-size: 13px;
    font-weight: 500;
    color: #1d2129;
    min-width: 80px;
}

.ppm-search-input {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    vertical-align: middle;
    box-sizing: border-box;
}

.ppm-search-select {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    vertical-align: middle;
    box-sizing: border-box;
}

/* 组合搜索框样式 */
.ppm-search-field .ppm-search-combined {
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e5e6eb;
    width: 100%;
    min-width: 200px;
}

.ppm-search-field .ppm-search-type {
    width: 100px;
    height: 36px;
    border: none;
    border-right: 1px solid #e5e6eb;
    border-radius: 0;
    padding: 0 12px;
    cursor: pointer;
    margin: 0;
    background-color: #ffffff;
}

.ppm-search-field .ppm-search-value {
    flex: 1;
    border: none;
    border-radius: 0;
    height: 36px;
    background: #ffffff;
    padding: 0 12px;
    margin: 0;
}

.ppm-search-field .ppm-search-type:focus,
.ppm-search-field .ppm-search-value:focus {
    outline: none;
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

/* 列表区域样式 */
.ppm-list {
    height: calc(100vh - 300px);
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.ppm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
}

.ppm-title {
    font-size: 16px;
    font-weight: 500;
    color: #303133;
}

.ppm-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.ppm-btn {
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #f5f5f5;
    color: #4e5969;
    border: 1px solid #d9d9d9;
}

.ppm-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.ppm-btn:hover {
    background-color: #e6e6e6;
}

.ppm-btn.ppm-btn-primary {
    background-color: #0052d9;
    color: #ffffff;
    border-color: #0052d9;
}

.ppm-btn.ppm-btn-primary:hover {
    background-color: #003bb3;
    border-color: #003bb3;
}

/* 表格样式 */
.ppm-table-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    min-height: 0;
}

.ppm-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    min-width: 1000px;
}

.ppm-table th,
.ppm-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #ebeef5;
    text-align: left;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.ppm-table th {
    background-color: #f5f7fa;
    font-weight: 500;
    color: #303133;
    position: sticky;
    top: 0;
    z-index: 1;
    border-bottom: 1px solid #ebeef5;
}

.ppm-table tbody tr {
    cursor: pointer;
}

.ppm-table tbody tr:hover {
    background-color: #f5f7fa;
}

/* 预包数量、SKU数量、预包状态、预包工位居中 (第4、5、6、7列) */
.ppm-table th:nth-child(4),
.ppm-table td:nth-child(4),
.ppm-table th:nth-child(5),
.ppm-table td:nth-child(5),
.ppm-table th:nth-child(6),
.ppm-table td:nth-child(6),
.ppm-table th:nth-child(7),
.ppm-table td:nth-child(7) {
    text-align: center;
}

/* 操作列样式 */
.ppm-table th:last-child,
.ppm-table td:last-child {
    width: 160px;
    text-align: center;
    white-space: nowrap;
}

/* 统一操作按钮样式 */
.ppm-action-btn {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #1890ff;
    background-color: #fff;
    color: #1890ff;
    margin: 0 2px;
}

.ppm-action-btn:hover {
    background-color: #1890ff;
    color: white;
}

.ppm-action-btn.ppm-action-danger {
    border-color: #f56c6c;
    color: #f56c6c;
}

.ppm-action-btn.ppm-action-danger:hover {
    background-color: #f56c6c;
    color: white;
}

.ppm-action-btn.ppm-action-secondary {
    border-color: #909399;
    color: #909399;
}

.ppm-action-btn.ppm-action-secondary:hover {
    background-color: #909399;
    color: white;
}

/* 状态标签样式 */
.ppm-status-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 500;
}

.ppm-status-pending {
    background-color: #ecf5ff;
    color: #409eff;
    border: 1px solid #d9ecff;
}

.ppm-status-processing {
    background-color: #fdf6ec;
    color: #e6a23c;
    border: 1px solid #f5dab1;
}

.ppm-status-completed {
    background-color: #f0f2f5;
    color: #909399;
    border: 1px solid #dcdfe6;
}

.ppm-status-cancelled {
    background-color: #fef0f0;
    color: #f56c6c;
    border: 1px solid #fde2e2;
}

/* 分页样式 */
.ppm-pagination {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
}

.ppm-pagination-info {
    font-size: 14px;
    color: #4b5563;
}

.ppm-pagination-controls {
    display: flex;
    gap: 8px;
}

.ppm-pagination-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    color: #374151;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ppm-pagination-btn:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.ppm-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ppm-page-size {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #4b5563;
}

.ppm-page-size-select {
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    font-size: 13px;
}

/* 模态框样式 */
.ppm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ppm-modal.ppm-modal-show {
    opacity: 1;
}

.ppm-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.ppm-modal-content {
    position: relative;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 400px;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.ppm-modal.ppm-modal-show .ppm-modal-content {
    transform: scale(1);
}

.ppm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.ppm-modal-title {
    font-size: 16px;
    font-weight: 500;
    color: #1d2129;
}

.ppm-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.ppm-modal-close:hover {
    background-color: #f5f5f5;
    color: #333;
}

.ppm-modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: 60vh;
}

.ppm-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
}

.ppm-modal-btn {
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #d9d9d9;
    background-color: white;
    color: #666;
}

.ppm-modal-btn:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.ppm-modal-confirm {
    background-color: #1890ff;
    border-color: #1890ff;
    color: white;
}

.ppm-modal-confirm:hover {
    background-color: #40a9ff;
    border-color: #40a9ff;
    color: white;
}

/* ==================== 预包任务详情弹窗样式 ==================== */

/* 遮罩层 */
.ppm-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100000;
    animation: ppmDetailFadeIn 0.3s ease;
}

@keyframes ppmDetailFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 弹窗内容区 */
.ppm-detail-modal {
    background-color: #fff;
    border-radius: 8px;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: ppmDetailSlideDown 0.3s ease;
}

@keyframes ppmDetailSlideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* 弹窗头部 */
.ppm-detail-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e6eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background-color: #fff;
}

.ppm-detail-title {
    font-size: 18px;
    font-weight: 600;
    color: #1d2129;
    margin: 0;
}

.ppm-detail-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #86909c;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.ppm-detail-close:hover {
    background-color: #f2f3f5;
    color: #1d2129;
}

.ppm-detail-close svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* 弹窗内容 */
.ppm-detail-content {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* 区块 */
.ppm-detail-section {
    margin-bottom: 24px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e5e6eb;
}

.ppm-detail-section:last-child {
    margin-bottom: 0;
}

.ppm-detail-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2129;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #0052d9;
    display: flex;
    align-items: center;
}

.ppm-detail-section-title::before {
    content: "";
    width: 4px;
    height: 18px;
    background-color: #0052d9;
    margin-right: 10px;
    border-radius: 2px;
}

/* 基础信息网格 - 自适应列 */
.ppm-detail-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    background-color: #fff;
    padding: 16px;
    border-radius: 6px;
}

.ppm-detail-info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ppm-detail-info-item-full {
    grid-column: 1 / -1;
}

.ppm-detail-label {
    font-size: 13px;
    color: #86909c;
    font-weight: 500;
}

.ppm-detail-value {
    font-size: 14px;
    color: #1d2129;
    font-weight: 500;
}

/* 状态标签 */
.ppm-detail-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 500;
}

.ppm-detail-status.status-pending {
    background-color: #ecf5ff;
    color: #409eff;
    border: 1px solid #d9ecff;
}

.ppm-detail-status.status-processing {
    background-color: #fdf6ec;
    color: #e6a23c;
    border: 1px solid #f5dab1;
}

.ppm-detail-status.status-completed {
    background-color: #f0f9eb;
    color: #67c23a;
    border: 1px solid #e1f3d8;
}

.ppm-detail-status.status-cancelled {
    background-color: #fef0f0;
    color: #f56c6c;
    border: 1px solid #fde2e2;
}

/* 表格容器 */
.ppm-detail-table-wrapper {
    height: 350px;
    overflow-y: auto;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    background-color: #fff;
}

.ppm-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 0;
}

.ppm-detail-table th,
.ppm-detail-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e6eb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ppm-detail-table th {
    background-color: #f5f7fa;
    font-weight: 500;
    color: #303133;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.05);
}

.ppm-detail-table tbody tr:hover {
    background-color: #f5f7fa;
}

/* 序号列居中 */
.ppm-detail-table th:first-child,
.ppm-detail-table td:first-child {
    text-align: center;
    width: 60px;
}

/* 空数据提示 */
.ppm-detail-empty {
    text-align: center;
    color: #999;
    padding: 40px 20px;
}

/* 响应式 */
@media (max-width: 1200px) {
    .ppm-detail-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ppm-detail-modal {
        width: 98%;
        max-height: 95vh;
    }
    
    .ppm-detail-content {
        padding: 16px;
    }
    
    .ppm-detail-section {
        padding: 16px;
    }
    
    .ppm-detail-info {
        grid-template-columns: 1fr;
    }
}

/* 取消确认样式 */
.ppm-cancel-confirm {
    text-align: center;
    padding: 20px;
}

.ppm-cancel-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.ppm-cancel-message {
    font-size: 16px;
    color: #333;
    margin-bottom: 12px;
}

.ppm-cancel-message strong {
    color: #1890ff;
}

.ppm-cancel-tip {
    font-size: 13px;
    color: #999;
    margin-bottom: 20px;
}

/* 取消原因输入 */
.ppm-cancel-reason {
    text-align: left;
    margin-top: 16px;
}

.ppm-cancel-reason-label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.ppm-cancel-reason-label::before {
    content: '*';
    color: #ff4d4f;
    margin-right: 4px;
}

.ppm-cancel-reason-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
    font-family: inherit;
}

.ppm-cancel-reason-input:focus {
    outline: none;
    border-color: #40a9ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.ppm-cancel-reason-input::placeholder {
    color: #bfbfbf;
}

/* 日志样式 - 节点时间线 */
.ppm-logs-container {
    max-height: 450px;
    overflow-y: auto;
    padding: 10px 0;
}

.ppm-log-empty {
    text-align: center;
    padding: 50px 20px;
    color: #999;
    font-size: 14px;
}

/* 时间线容器 */
.ppm-timeline {
    position: relative;
    padding-left: 28px;
}

/* 时间线竖线 */
.ppm-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background-color: #e5e7eb;
}

/* 日志节点 */
.ppm-log-item {
    position: relative;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.ppm-log-item:last-child {
    border-bottom: none;
}

/* 节点圆点 */
.ppm-log-dot {
    position: absolute;
    left: -24px;
    top: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #d9d9d9;
    z-index: 1;
}

/* 不同节点的颜色 */
.ppm-log-item.ppm-log-create .ppm-log-dot {
    border-color: #52c41a;
    background-color: #f6ffed;
}

.ppm-log-item.ppm-log-status .ppm-log-dot {
    border-color: #1890ff;
    background-color: #e6f7ff;
}

.ppm-log-item.ppm-log-complete .ppm-log-dot {
    border-color: #722ed1;
    background-color: #f9f0ff;
}

.ppm-log-item.ppm-log-cancel .ppm-log-dot {
    border-color: #ff4d4f;
    background-color: #fff1f0;
}

/* 节点头部：名称 + 时间 */
.ppm-log-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.ppm-log-node {
    font-size: 14px;
    font-weight: 600;
    color: #262626;
}

.ppm-log-time {
    font-size: 13px;
    color: #8c8c8c;
    font-family: monospace;
}

/* 操作人标签 */
.ppm-log-operator {
    display: inline-block;
    font-size: 12px;
    color: #595959;
    background-color: #f5f5f5;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

/* 备注内容 */
.ppm-log-remark {
    font-size: 13px;
    color: #434343;
    line-height: 1.6;
    padding: 10px 12px;
    background-color: #fafafa;
    border-radius: 6px;
    border-left: 3px solid #d9d9d9;
}

/* 不同节点的备注边框色 */
.ppm-log-item.ppm-log-create .ppm-log-remark {
    border-left-color: #52c41a;
}

.ppm-log-item.ppm-log-status .ppm-log-remark {
    border-left-color: #1890ff;
}

.ppm-log-item.ppm-log-complete .ppm-log-remark {
    border-left-color: #722ed1;
}

.ppm-log-item.ppm-log-cancel .ppm-log-remark {
    border-left-color: #ff4d4f;
}

/* Toast样式 */
.ppm-toast {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 3000;
    opacity: 0;
    transition: all 0.3s ease;
}

.ppm-toast.ppm-toast-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==================== 创建任务弹窗样式 ==================== */

/* 遮罩层 */
.ppm-create-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ppm-create-overlay.ppm-create-show {
    opacity: 1;
}

/* 弹窗 */
.ppm-create-modal {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 700px;
    max-width: 90vw;
    height: 600px;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.2s ease;
}

/* 大弹窗样式 */
.ppm-create-modal-large {
    width: 1000px;
    height: 706px;
}

.ppm-create-show .ppm-create-modal {
    transform: scale(1);
}

/* 弹窗头部 */
.ppm-create-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.ppm-create-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2129;
    margin: 0;
}

.ppm-create-close {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8c8c8c;
    transition: all 0.2s ease;
}

.ppm-create-close:hover {
    background-color: #f5f5f5;
    color: #1d2129;
}

.ppm-create-close svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* 弹窗内容区 */
.ppm-create-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

/* 区块样式 */
.ppm-create-section {
    margin-bottom: 20px;
}

.ppm-create-section:last-child {
    margin-bottom: 0;
}

.ppm-create-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ppm-create-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #1d2129;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ppm-create-section-subtitle {
    font-size: 13px;
    color: #8c8c8c;
}

/* 基础信息 */
.ppm-create-basic-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px;
}

.ppm-create-form-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.ppm-create-form-item > .ppm-create-form-label {
    margin-top: 8px;
    white-space: nowrap;
}

.ppm-create-form-label {
    font-size: 13px;
    color: #4e5969;
    min-width: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.ppm-create-required {
    color: #f5222d;
    margin-right: 4px;
}

.ppm-create-form-input {
    flex: 1;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
}

.ppm-create-form-input:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.ppm-create-form-input::placeholder {
    color: #bfbfbf;
}

/* 下拉选择框样式 */
.ppm-create-form-select {
    flex: 1;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
    background-color: #fff;
    cursor: pointer;
}

.ppm-create-form-select:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.ppm-create-form-select option {
    font-size: 13px;
    padding: 8px 12px;
}

/* 预包名称输入框（可点击） */
.ppm-create-prepack-input {
    cursor: pointer;
    background-color: #fafafa;
}

.ppm-create-prepack-input:hover {
    border-color: #1890ff;
    background-color: #f0f5ff;
}

/* 货主名称显示 */
.ppm-create-owner-value {
    flex: 1;
    font-size: 13px;
    color: #1d2129;
    font-weight: 500;
    margin-top: 8px;
}

/* 预包数量输入区域 */
.ppm-create-quantity-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ppm-create-quantity-wrapper .ppm-create-form-input {
    width: 100%;
    height: 36px;
    flex: none;
}

.ppm-create-quantity-wrapper .ppm-create-form-input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    color: #999;
}

.ppm-create-quantity-info {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.ppm-create-quantity-max {
    font-size: 12px;
    color: #1890ff;
    font-weight: 500;
}

/* 问号提示图标 */
.ppm-create-hint-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 6px;
    border-radius: 50%;
    background-color: #1890ff;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    cursor: help;
    line-height: 1;
    vertical-align: middle;
    white-space: nowrap;
}

/* 表格外层容器 - 固定高度 */
.ppm-create-table-outer {
    height: 170px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
}

/* 表格区域 */
.ppm-create-table-wrapper {
    height: 100%;
    overflow-y: auto;
}

.ppm-create-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ppm-create-table thead {
    background-color: #f5f7fa;
    position: sticky;
    top: 0;
    z-index: 1;
}

.ppm-create-table th {
    color: #303133;
    font-weight: 500;
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #ebeef5;
    white-space: nowrap;
}

.ppm-create-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #4e5969;
}

.ppm-create-table tbody tr:hover {
    background-color: #f5f7fa;
}

.ppm-create-table tbody tr:last-child td {
    border-bottom: none;
}

/* 序号列 */
.ppm-create-table th:nth-child(1),
.ppm-create-table td:nth-child(1) {
    width: 50px;
    text-align: center;
}

/* 货品编码列 */
.ppm-create-table th:nth-child(2),
.ppm-create-table td:nth-child(2) {
    width: 120px;
}

/* 货品名称列 */
.ppm-create-table th:nth-child(3),
.ppm-create-table td:nth-child(3) {
    min-width: 150px;
}

/* 外部编码列 */
.ppm-create-table th:nth-child(4),
.ppm-create-table td:nth-child(4) {
    width: 120px;
}

/* 货品条码列 */
.ppm-create-table th:nth-child(5),
.ppm-create-table td:nth-child(5) {
    width: 140px;
}

/* 货品数量列 */
.ppm-create-table th:nth-child(6),
.ppm-create-table td:nth-child(6) {
    width: 80px;
    text-align: center;
}

/* 空数据提示 */
.ppm-create-empty {
    text-align: center;
    color: #999;
    padding: 30px !important;
}

/* 备注输入框 */
.ppm-create-remark {
    width: 100%;
    height: 80px;
    padding: 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    resize: none;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.ppm-create-remark:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.ppm-create-remark::placeholder {
    color: #bfbfbf;
}

/* 弹窗底部 */
.ppm-create-footer {
    padding: 16px 24px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

.ppm-create-btn {
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.ppm-create-btn-cancel {
    background-color: #ffffff;
    border-color: #d9d9d9;
    color: #595959;
}

.ppm-create-btn-cancel:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.ppm-create-btn-confirm {
    background-color: #1890ff;
    border-color: #1890ff;
    color: #ffffff;
}

.ppm-create-btn-confirm:hover {
    background-color: #40a9ff;
    border-color: #40a9ff;
}

/* ==================== 预包选择弹窗样式 ==================== */

.ppm-prepack-select-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100001;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ppm-prepack-select-overlay.ppm-prepack-select-show {
    opacity: 1;
}

.ppm-prepack-select-modal {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 400px;
    max-width: 90vw;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.2s ease;
}

/* 大尺寸选择弹窗 */
.ppm-prepack-select-modal-large {
    width: 500px;
    max-height: 80vh;
}

.ppm-prepack-select-show .ppm-prepack-select-modal {
    transform: scale(1);
}

.ppm-prepack-select-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.ppm-prepack-select-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2129;
    margin: 0;
}

.ppm-prepack-select-close {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8c8c8c;
    transition: all 0.2s ease;
}

.ppm-prepack-select-close:hover {
    background-color: #f5f5f5;
    color: #1d2129;
}

.ppm-prepack-select-close svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* 搜索框 */
.ppm-prepack-select-search {
    position: relative;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.ppm-prepack-select-search-input {
    width: 100%;
    height: 36px;
    padding: 0 36px 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.ppm-prepack-select-search-input:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.ppm-prepack-select-search-input::placeholder {
    color: #bfbfbf;
}

.ppm-prepack-select-search-icon {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #8c8c8c;
    pointer-events: none;
}

/* 空数据提示 */
.ppm-prepack-select-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

.ppm-prepack-select-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    max-height: 400px;
}

.ppm-prepack-select-item {
    padding: 12px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.ppm-prepack-select-item:hover {
    background-color: #f5f7fa;
}

.ppm-prepack-select-item.selected {
    background-color: #e6f7ff;
    border: 1px solid #91d5ff;
}

.ppm-prepack-select-name {
    font-size: 14px;
    font-weight: 500;
    color: #1d2129;
    margin-bottom: 4px;
}

.ppm-prepack-select-info {
    font-size: 12px;
    color: #8c8c8c;
    display: flex;
    gap: 16px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .ppm-card {
        padding: 16px;
    }
    
    .ppm-table {
        font-size: 12px;
    }
    
    .ppm-table th,
    .ppm-table td {
        padding: 8px;
    }
    
    .ppm-create-modal {
        width: calc(100vw - 32px);
        height: 70vh;
        max-height: 600px;
    }
    
    .ppm-create-content {
        padding: 16px;
    }
    
    .ppm-create-header,
    .ppm-create-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .ppm-create-basic-info {
        grid-template-columns: 1fr;
    }
    
    .ppm-create-form-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .ppm-create-form-input {
        width: 100%;
    }
}