/* 7.2.1 可编辑表格样式 */

.table-hint {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f0f8ff;
    border-left: 3px solid #2196F3;
    border-radius: 4px;
}

.editable-table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 10px;
}

.editable-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 4px;
}

.editable-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.editable-table thead th {
    padding: 12px 8px;
    text-align: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    border: 1px solid rgba(255,255,255,0.2);
}

.editable-table tbody tr {
    transition: background 0.3s;
}

.editable-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.editable-table tbody tr:hover {
    background: #e8f4f8;
}

.editable-table tbody td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: center;
}

.editable-table tbody td input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.editable-table tbody td input:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1);
}

.editable-table tbody td input[type="number"] {
    text-align: right;
}

.editable-table tbody td input::placeholder {
    color: #bbb;
    font-size: 12px;
}

.table-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding: 10px 0;
}

.table-actions .el-button {
    padding: 10px 20px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .editable-table {
        font-size: 12px;
    }
    
    .editable-table thead th,
    .editable-table tbody td {
        padding: 6px 4px;
    }
    
    .editable-table tbody td input {
        font-size: 12px;
        padding: 4px 6px;
    }
}

/* 表格滚动条美化 */
.editable-table-container::-webkit-scrollbar {
    height: 8px;
}

.editable-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.editable-table-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.editable-table-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ==============================================
   7.2.1 中间显示区域的表格样式
   ============================================== */

.table-edit-container-7-2-1 {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.table-edit-container-7-2-1 .table-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FF9800;
}

.table-wrapper {
    overflow-x: auto;
    margin-bottom: 15px;
}

.data-table-7-2-1 {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
}

.data-table-7-2-1 thead {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}

.data-table-7-2-1 thead th {
    padding: 12px 8px;
    text-align: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    border: 1px solid rgba(255,255,255,0.3);
}

.data-table-7-2-1 tbody tr {
    transition: background 0.2s;
}

.data-table-7-2-1 tbody tr:nth-child(even) {
    background: #fafafa;
}

.data-table-7-2-1 tbody tr:hover {
    background: #fff3e0;
}

.data-table-7-2-1 tbody tr.selected-row {
    background: #ffe0b2 !important;
}

.data-table-7-2-1 tbody td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: center;
}

.data-table-7-2-1 tbody td input[type="text"],
.data-table-7-2-1 tbody td input:not([type]) {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.data-table-7-2-1 tbody td input:focus {
    outline: none;
    border-color: #FF9800;
    box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.1);
}

.data-table-7-2-1 tbody td input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.data-table-7-2-1 thead th input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.table-actions-7-2-1 {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.table-actions-7-2-1 .el-button {
    padding: 10px 20px;
}

/* 响应式 */
@media (max-width: 1200px) {
    .table-edit-container-7-2-1 {
        padding: 15px;
    }
    
    .data-table-7-2-1 {
        font-size: 12px;
    }
    
    .data-table-7-2-1 thead th,
    .data-table-7-2-1 tbody td {
        padding: 6px 4px;
    }
    
    .data-table-7-2-1 tbody td input {
        font-size: 12px;
        padding: 4px 6px;
    }
}

