.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    line-height: 1.2;
    table-layout: fixed;
    min-width: 100%;
}

.data-table th,
.data-table td {
    padding: 5px 3px;
    border: 1px solid #dee2e6;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    text-align: center;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
    height: 50px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
    padding: 3px 2px;
}

.data-table th > .header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    text-align: center;
    word-break: break-word;
    flex-direction: column;
    padding: 2px 0;
}

.data-table th .header-title {
    font-weight: 600;
    font-size: 12px;
    line-height: 1.2;
    margin-bottom: 2px;
}

.data-table th .header-unit {
    font-size: 10px;
    color: #666;
    line-height: 1.2;
    font-weight: normal;
    margin-top: 1px;
}

.data-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* 调整列宽 */
.data-table th:nth-child(1),
.data-table td:nth-child(1) {
    width: 60px;
    min-width: 60px;
    max-width: 70px;
}
.data-table th:nth-child(2),
.data-table td:nth-child(2) {
    width: 200px;
    min-width: 200px;
    max-width: 220px;
}
.data-table th:nth-child(3),
.data-table td:nth-child(3) {
    width: 120px;
    min-width: 120px;
    max-width: 130px;
}
.data-table th:nth-child(4),
.data-table td:nth-child(4) {
    width: 60px;
    min-width: 60px;
    max-width: 70px;
}
.data-table th:nth-child(5),
.data-table td:nth-child(5) {
    width: 70px;
    min-width: 70px;
    max-width: 80px;
}
.data-table th:nth-child(6),
.data-table td:nth-child(6) {
    width: 80px;
    min-width: 80px;
    max-width: 85px;
}
.data-table th:nth-child(7),
.data-table td:nth-child(7) {
    width: 70px;
    min-width: 70px;
    max-width: 80px;
}
.data-table th:nth-child(8),
.data-table td:nth-child(8) {
    width: 70px;
    min-width: 70px;
    max-width: 80px;
}
.data-table th:nth-child(9),
.data-table td:nth-child(9) {
    width: 70px;
    min-width: 70px;
    max-width: 80px;
}
.data-table th:nth-child(10),
.data-table td:nth-child(10) {
    width: 60px;
    min-width: 60px;
    max-width: 70px;
}
.data-table th:nth-child(11),
.data-table td:nth-child(11) {
    width: 60px;
    min-width: 60px;
    max-width: 70px;
}
.data-table th:nth-child(12),
.data-table td:nth-child(12) {
    width: 60px;
    min-width: 60px;
    max-width: 70px;
}
.data-table th:nth-child(13),
.data-table td:nth-child(13) {
    width: 60px;
    min-width: 60px;
    max-width: 70px;
}
.data-table th:nth-child(14),
.data-table td:nth-child(14) {
    width: 60px;
    min-width: 60px;
    max-width: 70px;
}
.data-table th:nth-child(15),
.data-table td:nth-child(15) {
    width: 80px;
    min-width: 80px;
    max-width: 85px;
}
.data-table th:nth-child(16),
.data-table td:nth-child(16) {
    width: 50px;
    min-width: 50px;
    max-width: 55px;
}

.data-table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 6px 3px;
    height: 32px;
}

.data-table .number-cell {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    text-align: center;
}

.table-responsive {
    overflow-x: auto;
    margin: 0;
    padding: 0;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    min-height: 200px;
    width: 100%;
}

.filter-bar {
    background: #f8f9fa;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 10px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    display: block;
    margin-bottom: 3px;
    font-size: 12px;
    font-weight: 500;
    color: #555;
}

.filter-group .form-control {
    height: 30px;
    padding: 4px 8px;
    font-size: 12px;
}

.pagination {
    margin-top: 10px;
    text-align: center;
    font-size: 12px;
    padding: 5px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 4px 8px;
    margin: 0 2px;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    text-decoration: none;
    color: #007bff;
    background: white;
    min-width: 28px;
    text-align: center;
    line-height: 1.2;
}

.pagination a:hover {
    background: #f8f9fa;
}

.pagination .current {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination-info {
    margin-bottom: 5px;
    color: #666;
    font-size: 12px;
}

.btn {
    padding: 4px 8px;
    font-size: 12px;
    line-height: 1.2;
    min-height: 28px;
}

.btn-sm {
    padding: 2px 6px;
    font-size: 12px;
    min-height: 24px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 4px 4px 0 0;
}

.card-header h2 {
    font-size: 15px;
    margin: 0;
    font-weight: 600;
    flex: 1;
}

.action-buttons {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.badge {
    padding: 2px 4px;
    font-size: 10px;
    font-weight: 500;
    border-radius: 2px;
    display: inline-block;
    min-width: 35px;
    text-align: center;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.badge-info {
    background-color: #17a2b8;
    color: white;
}

.badge-success {
    background-color: #28a745;
    color: white;
}

.badge-secondary {
    background-color: #6c757d;
    color: white;
}

.warning-badge {
    padding: 2px 4px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 500;
    color: white;
    text-align: center;
    min-width: 40px;
}

.empty-data {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
}

.card {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #fff;
    margin-bottom: 20px;
}

.export-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
}

.export-btn:hover {
    background-color: #218838;
    color: white;
    text-decoration: none;
}