/* 修复内联样式的CSS文件 */

/* 用户信息样式 */
.user-info-text {
    text-align: left;
    color: #666;
    margin-top: 5px;
}

.user-role-span {
    margin-left: 20px;
    color: #666;
}

.login-title-text {
    text-align: center;
    color: #666;
    margin-top: 10px;
}

.login-header {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

.full-width-btn {
    width: 100%;
}

/* 通用按钮样式 */
.export-btn-hidden {
    display: none;
}

.control-line-btn {
    padding: 6px 12px;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    margin-right: 8px;
    margin-bottom: 8px;
    display: inline-block;
}

.control-line-btn.green { background: #28a745; }
.control-line-btn.red { background: #dc3545; }
.control-line-btn.blue { background: #3498db; }
.control-line-btn.orange { background: #f39c12; }

.data-count-select {
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 12px;
    background: white;
    cursor: pointer;
    min-width: 80px;
}

/* 标签样式扩展 */
.status-label {
    font-weight: 500;
    color: #495057;
    font-size: 13px;
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 8px;
    white-space: nowrap;
}

.status-label-12 {
    font-weight: 500;
    color: #495057;
    font-size: 12px;
    display: inline-block;
    margin-right: 8px;
    white-space: nowrap;
}

/* 容器样式扩展 */
.filter-container-8 {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.status-container {
    padding: 6px 12px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #ddd;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Account Info Box (replaces inline styles) */
.account-info-box {
    background-color: #e8f5e8;
    border: 1px solid #4CAF50;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Fullscreen Toggle Button Hover Effect (replaces inline JS) */
.realtime-toggle-btn:hover {
    background: #2980b9 !important;
}

/* Login Hint Styles */
.login-hint-title {
    color: #2e7d32;
    font-weight: bold;
    margin-bottom: 8px;
}
.login-hint-content {
    color: #1b5e20;
}
.login-hint-highlight {
    color: #d32f2f;
    font-weight: bold;
}

/* Data Quality Maintenance Styles */
.maintenance-btn {
    border-width: 1px;
    transition: all 0.2s;
}

.maintenance-icon {
    font-size: 24px;
    min-width: 30px;
}

.maintenance-title {
    font-size: 16px;
}

/* Danger Zone Styles */
.danger-zone-card {
    border-left: 5px solid #e74c3c !important;
    border-radius: 8px;
}

.danger-zone-header-text {
    letter-spacing: 1px;
}

.filter-card-min-height {
    min-height: 80px;
}

.filter-select-height {
    height: 120px;
    font-size: 13px;
}

/* Info Alert Styles */
.info-alert-card {
    border-left: 4px solid #3498db !important;
    background-color: #f8fbff;
}

.info-icon {
    font-size: 24px;
    margin-right: 15px;
}

.info-title {
    font-size: 16px;
    font-weight: 600;
}

.info-list {
    margin: 0;
    padding-left: 20px;
    color: #555;
    font-size: 13px;
    line-height: 1.5;
}

/* Grid Layout Styles */
.grid-layout-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.flex-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.flex-gap-5 {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: 15px;
    margin-bottom: 8px;
}

/* 提示文本样式 */
.hint-text {
    font-size: 11px;
    color: #6c757d;
    margin-left: auto;
}

.hint-text-center {
    font-size: 11px;
    color: #6c757d;
    line-height: 1.4;
    padding: 8px;
    background: rgba(23, 162, 184, 0.1);
    border-radius: 4px;
    text-align: center;
}

/* 卡片样式扩展 */
.cards-container {
    margin-top: 20px;
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
}

.card-title {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 14px;
}

.card-content {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

/* 特殊值样式 */
.cpk-current {
    font-weight: bold;
    color: #007bff;
}

.cpk-accuracy {
    font-weight: bold;
    color: #28a745;
}

/* 布局样式 */
.flex-center {
    display: flex;
    align-items: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.flex-between-10 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

/* 标题样式 */
.section-title {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 16px;
}

.section-title-0 {
    margin: 0;
}

/* 筛选容器样式 */
.filter-container {
    margin-bottom: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.filter-row {
    margin-bottom: 8px;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 110px;
}

.filter-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

.filter-select {
    padding: 4px 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 11px;
    background: white;
    cursor: pointer;
    min-width: 90px;
}

.filter-select-bg {
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 12px;
    background: white;
    cursor: pointer;
    min-width: 100px;
}

/* 控制面板样式 */
.control-container {
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.control-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.control-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.control-label {
    font-weight: 500;
    color: #495057;
    font-size: 13px;
}

.status-text {
    font-size: 12px;
    color: #dc3545;
    font-weight: 500;
}

/* 控制按钮样式 */
.control-btn-green {
    padding: 6px 12px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.control-btn-red {
    padding: 6px 12px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.control-btn-blue {
    padding: 6px 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.control-btn-orange {
    padding: 6px 12px;
    background: #f39c12;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

/* 数据量控制样式 */
.data-amount-control {
    display: flex;
    align-items: center;
    gap: 5px;
}

.data-amount-label {
    font-weight: 500;
    color: #495057;
    font-size: 12px;
}

.data-amount-select {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    background: white;
    cursor: pointer;
}

.tip-text {
    font-size: 11px;
    color: #6c757d;
    margin-left: auto;
}

/* 图表容器样式 */
.chart-container {
    width: 100%;
    height: 400px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

/* 模型卡片样式 */
.model-cards-container {
    margin-top: 20px;
}

.model-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.model-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
}

.model-card-title {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 14px;
}

.model-card-content {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

.cpk-value {
    font-weight: bold;
    color: #007bff;
}

.accuracy-value {
    font-weight: bold;
    color: #28a745;
}

/* 特殊按钮样式 */
.realtime-toggle-btn {
    padding: 4px 10px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.filter-container-8 {
    padding: 6px;
    margin-bottom: 6px;
}

.filter-container-8 .flex-wrap {
    gap: 6px;
}

.filter-container-8 .status-label,
.filter-container-8 .status-label-12 {
    margin-right: 6px;
    margin-bottom: 4px;
    font-size: 12px;
}

.filter-container-8 .data-count-select {
    padding: 4px 6px;
    font-size: 11px;
}

.filter-container-8 .control-line-btn {
    padding: 4px 10px;
    font-size: 11px;
    margin-right: 6px;
    margin-bottom: 4px;
}

.chart-section {
    margin-top: 6px;
    margin-bottom: 6px;
}

.fullscreen-mode .section-title-0 {
    display: none;
}

/* AI预测相关按钮样式 */
.clear-prediction-btn {
    background: #dc3545 !important;
    transition: background 0.3s;
}

.clear-prediction-btn:hover {
    background: #c82333 !important;
}

.ai-fullscreen-btn {
    background: #007bff !important;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ai-fullscreen-btn:hover {
    background: #0056b3 !important;
}

.download-param-btn {
    background: #28a745;
    transition: background 0.3s;
}

.download-param-btn:hover {
    background: #218838;
}

.load-data-btn {
    background: #007bff;
    transition: background 0.3s;
}

.load-data-btn:hover {
    background: #0056b3;
}

/* 表格容器样式 */
.param-table-container {
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    overflow: hidden;
}

/* 其他特殊样式 */
.shift-download-btn {
    padding: 8px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

.shift-download-btn:hover {
    background: #0056b3;
}

.backup-restore-btn {
    margin-right: 5px;
    padding: 5px 10px;
    font-size: 12px;
}

.backup-delete-btn {
    padding: 5px 10px;
    font-size: 12px;
}

/* 页脚样式 */
.footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 14px;
}

.footer-links {
    margin-top: 10px;
}

.footer-link {
    color: #666;
    text-decoration: none;
    margin-right: 15px;
}

/* 二级标签页样式 */
.settings-sub-tab {
    transition: all 0.3s ease;
    user-select: none;
}

.settings-sub-tab:hover {
    background: #e9ecef !important;
    color: #495057 !important;
}

.settings-sub-tab.active:hover {
    background: #007bff !important;
    color: white !important;
}

.settings-sub-content {
    animation: fadeIn 0.3s ease-in-out;
}

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

/* 滚动条样式优化 */
.settings-sub-content::-webkit-scrollbar {
    width: 8px;
}

.settings-sub-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.settings-sub-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.settings-sub-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* JavaScript中使用的样式类 */
.ai-param-item {
    margin-bottom: 5px;
}

.ai-param-custom {
    margin-bottom: 5px;
}

.ai-param-custom-item {
    margin-left: 15px;
    margin-bottom: 3px;
    font-size: 12px;
}

.ai-param-other {
    margin-bottom: 3px;
    font-size: 12px;
}

.ai-error-text {
    color: red;
}

.ai-stats-container {
    margin-bottom: 10px;
}

.ai-preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.ai-preview-table thead tr {
    background: #e9ecef;
}

.ai-preview-table th,
.ai-preview-table td {
    border: 1px solid #ddd;
    padding: 4px;
}

.ai-error-message {
    color: #dc3545;
}

.ai-error-icon {
    margin-right: 8px;
}

.ai-cpk-display {
    font-size: 14px;
    font-weight: bold;
}

.ai-cpk-capability {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

.ai-table-empty {
    text-align: center;
    color: #dc3545;
}

.ai-table-no-data {
    text-align: center;
    color: #6c757d;
}

.ai-model-table-cell {
    border: 1px solid #ddd;
    padding: 8px;
    font-size: 12px;
}

.ai-model-params-cell {
    border: 1px solid #ddd;
    padding: 8px;
    font-size: 12px;
    max-width: 200px;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.3;
}

.ai-model-btn {
    margin-right: 5px;
    padding: 3px 6px;
    font-size: 10px;
}

.ai-chart-loading {
    text-align: center;
    padding: 40px;
    color: #007bff;
}

.ai-chart-error {
    text-align: center;
    padding: 40px;
    color: #dc3545;
}

.ai-chart-no-data {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.ai-chart-placeholder {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.ai-chart-placeholder-small {
    color: #999;
    margin-top: 10px;
    display: block;
}

.ai-status-error {
    color: #dc3545;
}

.ai-status-details {
    color: #6c757d;
    font-size: 12px;
    margin-top: 5px;
}

.ai-success-message {
    padding: 10px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
}

.ai-success-icon {
    margin-right: 8px;
}

.ai-error-container {
    padding: 10px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
}

/* 其他内联样式类 */
.file-error-text {
    color: red;
}

.query-result-success {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
}

.query-result-title {
    color: #856404;
    font-weight: bold;
    margin-bottom: 8px;
}

.query-result-content {
    color: #856404;
}

.query-result-count {
    color: #d63384;
}

.query-result-details {
    margin-top: 10px;
    font-size: 12px;
    color: #6c757d;
}

.query-result-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
}

.query-result-info-title {
    color: #0c5460;
    font-weight: bold;
    margin-bottom: 8px;
}

.query-result-info-content {
    color: #0c5460;
}

.query-result-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
}

.query-result-error-title {
    color: #721c24;
    font-weight: bold;
    margin-bottom: 8px;
}

.query-result-error-content {
    color: #721c24;
}

.delete-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
}

.delete-success-title {
    color: #155724;
    font-weight: bold;
    margin-bottom: 8px;
}

.delete-success-content {
    color: #155724;
}

.modal-content-large {
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.backup-info-text {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.backup-item {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    margin-bottom: 10px;
    padding: 15px;
}

.backup-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.backup-item-status {
    font-weight: bold;
}

.backup-item-timestamp {
    font-size: 12px;
    color: #666;
}

.backup-item-source {
    font-size: 13px;
    color: #333;
    margin-bottom: 8px;
}

.backup-item-target {
    font-size: 13px;
    color: #333;
    margin-bottom: 8px;
}

.backup-item-size {
    font-size: 13px;
    color: #333;
}

.splice-table-empty {
    border: 1px solid #ddd;
    padding: 20px;
    text-align: center;
    color: #666;
}

.splice-table-cell {
    border: 1px solid #ddd;
    padding: 12px;
}

.splice-btn-edit {
    margin-right: 5px;
    padding: 4px 8px;
    font-size: 12px;
}

.splice-btn-delete {
    padding: 4px 8px;
    font-size: 12px;
}

.apply-btn-loading {
    margin-right: 5px;
}

.footer-style {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 14px;
}

.footer-links {
    margin-top: 10px;
}

.footer-link {
    color: #666;
    text-decoration: none;
    margin-right: 15px;
}

/* ==================== 拼接模态框样式 ==================== */

/* 添加拼接模态框 */
.add-splice-modal {
    display: block;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.add-splice-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: none;
    border-radius: 8px;
    width: 500px;
    max-width: 90%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.add-splice-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    border-radius: 8px 8px 0 0;
    background: #28a745;
    color: white;
}

.add-splice-modal-title {
    margin: 0;
    font-weight: 600;
}

.add-splice-icon {
    margin-right: 8px;
}

.add-splice-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    float: right;
    margin-top: -5px;
}

.add-splice-modal-body {
    padding: 20px;
}

.add-splice-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
    text-align: right;
}

.add-splice-save-btn {
    margin-right: 10px;
}

.save-icon {
    margin-right: 5px;
}

/* 编辑拼接模态框 */
.edit-splice-modal {
    display: block;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.edit-splice-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: none;
    border-radius: 8px;
    width: 500px;
    max-width: 90%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.edit-splice-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    border-radius: 8px 8px 0 0;
    background: #007bff;
    color: white;
}

.edit-splice-modal-title {
    margin: 0;
    font-weight: 600;
}

.edit-splice-icon {
    margin-right: 8px;
}

.edit-splice-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    float: right;
    margin-top: -5px;
}

.edit-splice-modal-body {
    padding: 20px;
}

.edit-splice-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
    text-align: right;
}

.edit-splice-save-btn {
    margin-right: 10px;
}

.splice-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.readonly-input {
    background: #f8f9fa;
}

/* ==================== 其他模态框样式 ==================== */

/* 账户模态框 */
.account-modal {
    display: none;
}



/* 确认删除模态框 */
.confirm-delete-modal {
    display: none;
}



.warning-text {
    color: #dc3545;
}

/* 设备管理模态框 */
.device-modal {
    display: none;
}





/* 设备选择模态框 */
.device-selection-modal {
    display: none;
}



.device-info-display {
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    display: none;
}

/* 确认删除设备模态框 */
.confirm-delete-device-modal {
    display: none;
}



/* 通用表单样式 */
.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #495057;
}

/* 排班管理模态框样式 */
.shift-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.shift-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: none;
    border-radius: 8px;
    width: 90%;
    max-width: 1000px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.shift-modal-header {
    background: #007bff;
    color: white;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shift-modal-title {
    margin: 0;
    font-size: 18px;
}

.shift-modal-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shift-download-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.shift-modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.shift-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
    text-align: right;
}

.shift-add-btn {
    margin-right: 10px;
}

/* 排班数据导入消息样式 */
.import-success-message {
    color: #28a745;
    font-weight: bold;
    margin-bottom: 10px;
}

.import-success-details {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;
}

.import-error-message {
    color: #dc3545;
    font-weight: bold;
    margin-bottom: 10px;
}

.import-error-details {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 10px;
}

.import-message-note {
    color: #666;
    font-size: 12px;
}

/* 排班表格样式 */
.shift-table-header {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shift-record-count {
    font-weight: bold;
    color: #333;
}

.shift-sort-info {
    font-size: 12px;
    color: #666;
}

.shift-table-container {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.shift-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.shift-table-header-row {
    background: #f8f9fa;
}

.shift-table-th {
    border: 1px solid #e0e0e0;
    padding: 12px 8px;
    text-align: center;
    font-weight: bold;
}



.shift-row-even {
    background: #fff;
}

.shift-row-odd {
    background: #f9f9f9;
}

.shift-table-td {
    border: 1px solid #e0e0e0;
    padding: 10px 8px;
    text-align: center;
}

.shift-edit-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    margin-right: 5px;
    font-size: 12px;
}

.shift-delete-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

/* 加载状态图标样式 */
.loading-icon {
    font-size: 18px;
    margin-bottom: 10px;
}

.empty-icon {
    font-size: 18px;
    margin-bottom: 10px;
}

/* 参数变更表格相关样式 */
.table-empty-state {
    padding: 40px;
    text-align: center;
    color: #666;
}

.table-loading-state {
    padding: 40px;
    text-align: center;
}

.table-error-state {
    padding: 40px;
    text-align: center;
    color: #dc3545;
}

.filter-info {
    color: #007bff;
    font-size: 0.9em;
}

.clear-filter-btn {
    margin-left: 10px;
    padding: 2px 8px;
    font-size: 0.8em;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.clear-filter-btn:hover {
    background: #5a6268;
}

.parameter-table-container {
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

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

.parameter-table-header {
    position: sticky;
    top: 0;
    z-index: 10;
}

.parameter-table-header-row {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.parameter-table-th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 1px solid #dee2e6;
}

.parameter-table-row {
    border-bottom: 1px solid #dee2e6;
}

.parameter-table-row-even {
    background: #f8f9fa;
}

.parameter-table-row-odd {
    background: white;
}

.parameter-table-td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
}

.parameter-splice-link {
    color: #333;
    font-weight: 500;
}

.parameter-count-cell {
    font-weight: 600;
    color: #007bff;
}

/* 成功消息 */
.success-message {
    margin-bottom: 10px;
}

/* 导入统计网格 */
.import-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

/* 导入统计项 */
.import-stat-item {
    padding: 8px;
    background: rgba(255,255,255,0.7);
    border-radius: 4px;
}

/* 导入统计警告项 */
.import-stat-warning {
    background: rgba(255,193,7,0.2);
}

/* 错误详情部分 */
.error-details-section {
    margin-top: 15px;
}

/* 错误详情列表 */
.error-details-list {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 5px;
    padding: 8px;
    background: rgba(255,255,255,0.7);
    border-radius: 4px;
    font-size: 12px;
}

/* 备份统计网格 */
.backup-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* 备份统计卡片 */
.backup-stat-card {
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #ddd;
}

/* 备份统计标题 */
.backup-stat-title {
    font-weight: bold;
    color: #2c3e50;
}

/* 备份统计值 */
.backup-stat-value {
    font-size: 24px;
}

/* 备份统计文本 */
.backup-stat-text {
    font-size: 14px;
}

/* 备份统计蓝色 */
.backup-stat-blue {
    color: #3498db;
}

/* 备份统计红色 */
.backup-stat-red {
    color: #e74c3c;
}

/* 备份统计绿色 */
.backup-stat-green {
    color: #27ae60;
}

/* 系统监控相关样式 */
.monitor-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.monitor-stat-card {
    text-align: center;
    padding: 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.monitor-stat-title {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.monitor-stat-value {
    font-size: 16px;
    font-weight: bold;
}

.monitor-stat-value.cpu-high {
    color: #e74c3c;
}

.monitor-stat-value.cpu-medium {
    color: #f39c12;
}

.monitor-stat-value.cpu-normal {
    color: #27ae60;
}

.monitor-stat-value.memory-high {
    color: #e74c3c;
}

.monitor-stat-value.memory-medium {
    color: #f39c12;
}

.monitor-stat-value.memory-normal {
    color: #27ae60;
}

.monitor-stat-value.disk-high {
    color: #e74c3c;
}

.monitor-stat-value.disk-medium {
    color: #f39c12;
}

.monitor-stat-value.disk-normal {
    color: #27ae60;
}

.error-message-center {
    color: #e74c3c;
    text-align: center;
}

/* 告警相关样式 */
.alert-item {
    padding: 10px;
    margin-bottom: 10px;
    border-left: 4px solid #ddd;
    background: #f9f9f9;
}

.alert-item.critical {
    border-left-color: #e74c3c;
    background: #fdf2f2;
}

.alert-item.warning {
    border-left-color: #f39c12;
    background: #fef9e7;
}

.alert-item.info {
    border-left-color: #3498db;
    background: #f0f8ff;
}

.alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.alert-title {
    font-weight: bold;
    margin: 0;
}

.alert-title.critical {
    color: #e74c3c;
}

.alert-title.warning {
    color: #f39c12;
}

.alert-title.info {
    color: #3498db;
}

.alert-time {
    font-size: 12px;
    color: #666;
}

.alert-message {
    margin: 0;
    color: #333;
}

.empty-state-message-padded {
    padding: 20px;
    text-align: center;
    color: #666;
}

.error-message-padded {
    padding: 20px;
    text-align: center;
    color: #e74c3c;
}

/* 日志分析相关样式 */
.log-analysis-info {
    margin-bottom: 15px;
}

.log-analysis-section-title {
    margin-bottom: 15px;
}

.log-level-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.log-level-stat-card {
    text-align: center;
    padding: 8px;
    background: white;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.log-level-name {
    font-weight: bold;
}

.log-level-name.log-level-error {
    color: #e74c3c;
}

.log-level-name.log-level-warning {
    color: #f39c12;
}

.log-level-name.log-level-info {
    color: #3498db;
}

.log-level-name.log-level-default {
    color: #95a5a6;
}

.log-level-count {
    font-size: 18px;
}

.log-errors-container {
    max-height: 200px;
    overflow-y: auto;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
}

.log-error-item {
    margin-bottom: 8px;
    padding: 5px;
    background: #fff;
    border-left: 3px solid #e74c3c;
    font-family: monospace;
    font-size: 12px;
}

.log-error-timestamp {
    color: #666;
    font-size: 11px;
}

.log-error-message {
    color: #333;
}

.log-pattern-item {
    margin-bottom: 10px;
    padding: 8px;
    background: white;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.log-pattern-text {
    font-weight: bold;
    color: #2c3e50;
}

.log-pattern-count {
    color: #666;
    font-size: 12px;
}

.splice-filter-btn {
    margin-left: 10px;
    padding: 2px 8px;
    font-size: 0.8em;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    float: right;
    margin-top: -5px;
}

.purple-btn {
    min-width: 110px;
    background: #6f42c1;
    border-color: #6f42c1;
}

.training-btn {
    background: #6f42c1;
    border: none;
}

.toggle-params-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: #6c757d;
    font-size: 18px;
    cursor: pointer;
}

/* 导入相关样式 */
.import-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.import-header {
    margin-bottom: 40px;
}

.import-title {
    margin-top: 0;
    color: #495057;
    border-bottom: 3px solid #007bff;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.import-title.shift {
    border-bottom-color: #17a2b8;
}

.import-title.delete {
    border-bottom-color: #dc3545;
}

.import-desc-text {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.import-tips {
    margin-bottom: 12px;
    padding: 12px;
    background: #e3f2fd;
    border-radius: 6px;
    font-size: 12px;
    border-left: 4px solid #007bff;
}

.import-tips.shift {
    background: #e8f4fd;
    border-left-color: #17a2b8;
}

.import-tips.delete {
    background: #f8d7da;
    border-left-color: #dc3545;
}

.import-tips-list {
    margin: 5px 0;
    padding-left: 18px;
    line-height: 1.5;
}

.import-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.import-grid.shift {
    grid-template-columns: 1fr 2fr;
}

.import-box {
    padding: 20px;
    border: 2px dashed #007bff;
    border-radius: 8px;
    text-align: center;
    background: white;
}

.import-box-csv {
    padding: 20px;
    border: 2px dashed #28a745;
    border-radius: 8px;
    text-align: center;
    background: white;
}

.import-box.csv {
    border-color: #28a745;
}

.import-box.shift {
    border-color: #17a2b8;
}

.import-box-title {
    margin-bottom: 15px;
    font-weight: bold;
    color: #007bff;
    font-size: 14px;
}

.import-box-title-csv {
    margin-bottom: 15px;
    font-weight: bold;
    color: #28a745;
    font-size: 14px;
}

.import-box-title.csv {
    color: #28a745;
}

.import-box-title.shift {
    color: #17a2b8;
}

.file-input-hidden {
    display: none;
}

.file-info {
    color: #666;
    font-size: 12px;
    font-style: italic;
    margin-bottom: 15px;
}

/* 进度条样式 */
.progress-container {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.progress-title {
    margin-bottom: 10px;
    color: #333;
}

.progress-info {
    margin-bottom: 10px;
    font-size: 14px;
}

.progress-bar-container {
    background: #e9ecef;
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-bar.import {
    background: #28a745;
}

.progress-bar.shift {
    background: #17a2b8;
}

.progress-bar.delete {
    background: #dc3545;
}

.progress-bar-info {
    background: #17a2b8;
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-bar-danger {
    background: #dc3545;
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

/* 结果容器样式 */
.results-container {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.results-title {
    margin-bottom: 10px;
    color: #333;
}

/* 分割线样式 */
.section-divider {
    border-top: 2px solid #dee2e6;
    padding-top: 30px;
}

/* 排班相关样式 */
.shift-title {
    margin-top: 0;
    color: #495057;
    border-bottom: 3px solid #17a2b8;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.shift-tips {
    margin-bottom: 12px;
    padding: 12px;
    background: #e8f4fd;
    border-radius: 6px;
    font-size: 12px;
    border-left: 4px solid #17a2b8;
}

.shift-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-bottom: 25px;
}

.shift-box {
    padding: 20px;
    border: 2px dashed #17a2b8;
    border-radius: 8px;
    text-align: center;
    background: white;
}

.shift-box-title {
    margin-bottom: 15px;
    font-weight: bold;
    color: #17a2b8;
    font-size: 14px;
}

.shift-management {
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.shift-management-title {
    margin-bottom: 15px;
    font-weight: bold;
    color: #495057;
    font-size: 14px;
    text-align: center;
}

.shift-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.shift-view-center {
    text-align: center;
    margin-bottom: 15px;
}

.shift-tip {
    font-size: 11px;
    color: #6c757d;
    line-height: 1.4;
    padding: 8px;
    background: rgba(23, 162, 184, 0.1);
    border-radius: 4px;
    text-align: center;
}

/* 删除相关样式 */
.delete-section {
    border-top: 2px solid #dee2e6;
    padding-top: 30px;
}

.delete-title {
    margin-top: 0;
    color: #495057;
    border-bottom: 3px solid #dc3545;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.delete-tips {
    margin-bottom: 12px;
    padding: 12px;
    background: #f8d7da;
    border-radius: 6px;
    font-size: 12px;
    border-left: 4px solid #dc3545;
}

.delete-form {
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 20px;
    margin-bottom: 20px;
}

.delete-form-title {
    margin-top: 0;
    color: #495057;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.delete-conditions {
    margin-bottom: 18px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.delete-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    align-items: start;
}

.delete-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.delete-time-section {
    margin-bottom: 10px;
}

.delete-time-label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #495057;
}

.delete-time-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 13px;
}

.delete-time-tip {
    font-size: 11px;
    color: #6c757d;
}

.delete-filter-section {
    margin-bottom: 8px;
}

.delete-filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.delete-filter-item {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.delete-filter-label {
    font-size: 13px;
    font-weight: 500;
    color: #495057;
}

.delete-filter-container {
    display: none;
}

.delete-filter-select {
    width: 100%;
    height: 80px;
    padding: 6px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 12px;
}

.delete-filter-tip {
    margin-top: 4px;
    font-size: 10px;
    color: #6c757d;
}

.delete-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.delete-btn-flex {
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* 删除功能扩展样式 */
.delete-container {
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 20px;
    margin-bottom: 20px;
}

.delete-subtitle {
    margin-top: 0;
    color: #495057;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
}

.delete-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 13px;
}

.delete-select {
    width: 100%;
    height: 80px;
    padding: 6px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 12px;
}

.delete-hint {
    margin-top: 4px;
    font-size: 10px;
    color: #6c757d;
}

.delete-time-hint {
    font-size: 11px;
    color: #6c757d;
}

.delete-btn {
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* 侧边栏样式 */
.sidebar-container {
    display: flex;
    gap: 0;
    height: 600px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.sidebar {
    width: 200px;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
}

/* AI预测页面样式 */
.ai-flex-container {
    display: flex;
    align-items: center;
}

.ai-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.ai-header-title {
    margin: 0;
}

.ai-filter-container {
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #e9ecef;
}

.ai-filter-item {
    margin-bottom: 8px;
}

.ai-filter-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

.ai-select {
    width: 100%;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    background: white;
}

.ai-model-container {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.ai-model-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.ai-model-select-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-model-select-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.ai-prediction-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.ai-prediction-label {
    font-weight: 500;
    color: #495057;
    font-size: 13px;
}

.ai-prediction-value {
    font-size: 12px;
    color: #dc3545;
    font-weight: 500;
}

.ai-chart-container {
    width: 100%;
    height: 400px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.ai-cards-container {
    margin-top: 20px;
}

.ai-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.ai-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
}

.ai-card-title {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 14px;
}

.ai-card-content {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

.ai-cpk-current {
    font-weight: bold;
    color: #007bff;
}

.ai-cpk-accuracy {
    font-weight: bold;
    color: #28a745;
}

/* 参数分析页面样式 */
.param-filter-title {
    margin: 0 0 15px 0;
}

.param-device-container {
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #e9ecef;
}

.param-device-item {
    margin-bottom: 8px;
}

.param-weld-title {
    margin-bottom: 10px;
}

.param-weld-title h4 {
    margin: 0;
}

.param-stats-container {
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.param-stats-header {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.param-stats-title {
    font-weight: 500;
    color: #495057;
}

.param-stats-desc {
    font-size: 11px;
    color: #6c757d;
}

.param-count-container {
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #e9ecef;
}

.param-count-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.param-count-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.param-count-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.param-table-container {
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    overflow: hidden;
}

/* 数据导入页面样式 */
.import-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.import-header {
    margin-bottom: 40px;
}

.import-title {
    margin-top: 0;
    color: #495057;
    border-bottom: 3px solid #007bff;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.import-title-icon {
    font-size: 20px;
}

.import-description {
    margin-bottom: 20px;
}

.import-desc-text {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.import-info-box {
    margin-bottom: 12px;
    padding: 12px;
    background: #e3f2fd;
    border-radius: 6px;
    font-size: 12px;
    border-left: 4px solid #007bff;
}

.import-info-list {
    margin: 5px 0;
    padding-left: 18px;
    line-height: 1.5;
}

.import-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.import-upload-box {
    padding: 20px;
    border: 2px dashed #007bff;
    border-radius: 8px;
    text-align: center;
    background: white;
}

.import-upload-title {
    margin-bottom: 15px;
    font-weight: bold;
    color: #007bff;
    font-size: 14px;
}

.import-file-input {
    display: none;
}

.import-file-info {
    color: #666;
    font-size: 12px;
    font-style: italic;
    margin-bottom: 15px;
}

.import-progress-container {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.import-progress-title {
    margin-bottom: 10px;
    color: #333;
}

.import-progress-info {
    margin-bottom: 10px;
    font-size: 14px;
}

.import-progress-bar-bg {
    background: #e9ecef;
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
}

.import-progress-bar {
    background: #28a745;
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

.import-results-container {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.import-results-title {
    margin-bottom: 10px;
    color: #333;
}

.import-divider {
    border-top: 2px solid #dee2e6;
    padding-top: 30px;
}

/* 排班导入特殊样式 */
.shift-import-title {
    border-bottom: 3px solid #17a2b8;
}

.shift-import-info-box {
    background: #e8f4fd;
    border-left: 4px solid #17a2b8;
}

.shift-upload-box {
    border: 2px dashed #17a2b8;
}

.shift-upload-title {
    color: #17a2b8;
}

.shift-progress-bar {
    background: #17a2b8;
}

.shift-management-container {
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.shift-management-title {
    margin-bottom: 15px;
    font-weight: bold;
    color: #495057;
    font-size: 14px;
    text-align: center;
}

.shift-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.shift-view-center {
    text-align: center;
    margin-bottom: 15px;
}

.shift-info-tip {
    font-size: 11px;
    color: #6c757d;
    line-height: 1.4;
    padding: 8px;
    background: rgba(23, 162, 184, 0.1);
    border-radius: 4px;
    text-align: center;
}

/* 删除功能样式 */
.delete-section-title {
    border-bottom: 3px solid #dc3545;
}

.delete-info-box {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
}

.delete-conditions-container {
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 15px;
    margin-bottom: 15px;
}

.delete-conditions-title {
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.delete-time-container {
    margin-bottom: 15px;
}

.delete-time-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: center;
}

.delete-time-label {
    font-size: 13px;
    font-weight: 500;
    color: #495057;
}

.delete-time-input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 12px;
}

.delete-filter-group {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.delete-filter-label {
    font-size: 13px;
    font-weight: 500;
    color: #495057;
}

.delete-filter-container {
    display: none;
}

.delete-filter-select {
    width: 100%;
    height: 80px;
    padding: 6px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 12px;
}

.delete-filter-note {
    margin-top: 4px;
    font-size: 10px;
    color: #6c757d;
}

.delete-buttons-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.delete-progress-container {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.delete-progress-title {
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.delete-progress-info {
    margin-bottom: 10px;
    font-size: 14px;
}

.delete-progress-bar {
    background: #dc3545;
}

.delete-conditions-container {
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 20px;
    margin-bottom: 20px;
}

.delete-conditions-title {
    margin-top: 0;
    color: #495057;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.delete-conditions-icon {
    margin-right: 8px;
    color: #dc3545;
}

.delete-time-container {
    margin-bottom: 18px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.delete-time-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    align-items: start;
}

.delete-time-section-title {
    margin-top: 0;
    color: #495057;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
}

.delete-time-input-group {
    margin-bottom: 10px;
}

.delete-time-label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #495057;
}

.delete-time-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 13px;
}

.delete-time-note {
    font-size: 11px;
    color: #6c757d;
}

.delete-filters-section-title {
    margin-top: 0;
    color: #495057;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
}

.delete-filters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.delete-filter-group {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.delete-filter-label {
    font-size: 13px;
    font-weight: 500;
    color: #495057;
}

.delete-filter-container {
    display: none;
}

.delete-filter-select {
    width: 100%;
    height: 80px;
    padding: 6px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 12px;
}

.delete-filter-note {
    margin-top: 4px;
    font-size: 10px;
    color: #6c757d;
}

.delete-buttons-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.delete-progress-container {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.delete-progress-title {
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.delete-progress-info {
    margin-bottom: 10px;
    font-size: 14px;
}

.delete-progress-bar {
    background: #dc3545;
}

.delete-results-container {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.delete-results-title {
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

/* 删除结果样式 */
.delete-results-container {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.delete-results-title {
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

/* 设置页面样式 */
.settings-layout {
    display: flex;
    gap: 0;
    height: 600px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.settings-sidebar {
    width: 200px;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
}

.settings-sub-tab {
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.settings-sub-tab.active {
    background: #007bff;
    color: white;
}

.settings-tab-icon {
    margin-right: 8px;
}

.settings-content {
    flex: 1;
    background: #ffffff;
    overflow-y: auto;
}

.settings-sub-content {
    padding: 30px;
    display: none;
}

.settings-sub-content.active {
    display: block;
}

.settings-section-title {
    margin-top: 0;
    color: #495057;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.device-title {
    border-bottom: 2px solid #007bff;
}

.defect-title {
    border-bottom: 2px solid #28a745;
}

.settings-title-icon {
    margin-right: 8px;
}

.settings-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.settings-buttons {
    margin-bottom: 20px;
}

.settings-info-box {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 6px;
    font-size: 13px;
}

.device-info-box {
    background: #e3f2fd;
    border-left: 4px solid #007bff;
}

.defect-info-box {
    background: #e8f5e8;
    border-left: 4px solid #28a745;
}

.settings-info-icon {
    margin-right: 5px;
}

.settings-info-list {
    margin: 8px 0;
    padding-left: 20px;
    line-height: 1.6;
}
.settings-container {
    display: flex;
    gap: 0;
    height: 600px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.settings-sidebar {
    width: 200px;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
}

.settings-sub-tab {
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.settings-sub-tab.active {
    background: #007bff;
    color: white;
}

.settings-icon {
    margin-right: 8px;
}

/* 参数变化页面按钮样式 */
.download-param-btn {
    background: #28a745 !important;
    transition: background 0.3s;
}

.download-param-btn:hover {
    background: #218838 !important;
}

.load-param-btn {
    background: #007bff !important;
    transition: background 0.3s;
}

.load-param-btn:hover {
    background: #0056b3 !important;
}

/* 导入页面样式 */
.import-file-btn {
    margin-bottom: 10px;
}

.import-file-info {
    color: #666;
    font-size: 12px;
    font-style: italic;
    margin-bottom: 15px;
}

.import-start-btn {
    min-width: 120px;
}

/* 排班管理按钮样式 */
.shift-refresh-btn,
.shift-refresh-new-btn,
.shift-view-btn {
    min-width: 110px;
}

.shift-refresh-new-btn {
    background: #6f42c1 !important;
    border-color: #6f42c1 !important;
}

.shift-refresh-new-btn:hover {
    background: #5a2d91 !important;
    border-color: #5a2d91 !important;
}

/* 删除功能按钮样式 */
.delete-execute-btn,
.delete-clear-db-btn,
.delete-reset-btn {
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* 设备管理按钮样式 */
.device-add-btn {
    margin-right: 10px;
}

.device-icon {
    margin-right: 5px;
}

/* 缺陷代码管理按钮样式 */
.defect-refresh-btn,
.defect-add-btn {
    margin-right: 10px;
}

/* 设置页面样式 */
.settings-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

/* 排班文件导入按钮样式 */
.shift-file-btn {
    margin-bottom: 10px;
    margin-right: 10px;
}

/* 下载模板按钮样式 */
.shift-template-btn {
    margin-bottom: 10px;
}

/* 字段映射页面样式 */
.field-mapping-content {
    padding: 30px;
    display: none;
}

.field-mapping-title {
    margin-top: 0;
    color: #495057;
    border-bottom: 2px solid #6f42c1;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.settings-title-icon {
    margin-right: 8px;
}

.settings-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.settings-buttons {
    margin-bottom: 20px;
}

.field-mapping-btn {
    margin-right: 10px;
}

.settings-btn-icon {
    margin-right: 5px;
}

.settings-info-box {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #6f42c1;
}

.field-mapping-info-box {
    font-size: 14px;
}

.settings-info-icon {
    margin-right: 8px;
    color: #6f42c1;
}

.settings-info-list {
    margin: 10px 0;
    padding-left: 20px;
    line-height: 1.6;
}

/* 账号管理页面样式 */
.account-management-content {
    padding: 30px;
    display: none;
}

.account-management-title {
    margin-top: 0;
    color: #495057;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.account-management-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.search-section {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.role-filter {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.account-info-box {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

/* 表格样式 */
.account-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.table-header {
    background: #f8f9fa;
}

.table-cell {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.table-loading {
    border: 1px solid #ddd;
    padding: 20px;
    text-align: center;
    color: #666;
}

/* AI模型管理页面样式 */
.ai-model-content {
    padding: 30px;
    display: none;
}

.ai-model-title {
    margin-top: 0;
    color: #495057;
    border-bottom: 2px solid #6f42c1;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.ai-tabs-container {
    margin-bottom: 20px;
}

.ai-sub-tabs {
    display: flex;
    border-bottom: 2px solid #e9ecef;
}

.ai-sub-tab {
    padding: 12px 24px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    color: #666;
    font-weight: 500;
    transition: all 0.3s;
}

.ai-sub-tab.active {
    border-bottom: 3px solid #6f42c1;
    color: #6f42c1;
    font-weight: 600;
}

.ai-tab-icon {
    margin-right: 8px;
}

.model-learning-content {
    display: block;
}

.ai-info-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.ai-info-title {
    color: #495057;
    margin-bottom: 15px;
}

.ai-info-icon {
    margin-right: 8px;
    color: #6f42c1;
}

.ai-info-description {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.6;
}

.ai-info-list {
    color: #666;
    margin-left: 20px;
    line-height: 1.6;
}

.ai-suggestion-box {
    margin-top: 15px;
    padding: 15px;
    background: #e8f4fd;
    border-radius: 6px;
    border-left: 4px solid #2196f3;
}

.ai-suggestion-title {
    color: #1976d2;
    margin-bottom: 10px;
}

.ai-suggestion-icon {
    margin-right: 5px;
}

.ai-suggestion-content {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

/* 模型训练表单样式 */
.model-training-form {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.file-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-help {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.csv-preview-box {
    display: none;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #28a745;
}

.csv-preview-title {
    color: #495057;
    margin-bottom: 10px;
}

.csv-preview-icon {
    color: #28a745;
    margin-right: 8px;
}

.csv-preview-content {
    font-size: 13px;
    color: #666;
}

/* 算法参数配置样式 */
.algorithm-parameters-section {
    margin-bottom: 20px;
    display: none;
}

.parameters-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.parameters-header {
    color: #495057;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.parameters-icon {
    margin-right: 8px;
    color: #6f42c1;
}

.parameters-toggle-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: #6c757d;
    font-size: 18px;
    cursor: pointer;
}

.radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-input {
    margin-right: 8px;
}

.radio-text {
    color: #495057;
}

.preset-config-section {
    display: none;
    margin-bottom: 20px;
}

.preset-description {
    margin-top: 8px;
    padding: 10px;
    background: #e8f4fd;
    border-radius: 4px;
    font-size: 13px;
    color: #1976d2;
    display: none;
}

.custom-parameters-section {
    display: none;
}

.custom-parameters-container {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.parameter-warning {
    margin-top: 15px;
    padding: 12px;
    background: #fff3cd;
    border-radius: 4px;
    border-left: 4px solid #ffc107;
}

.warning-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.warning-icon {
    color: #856404;
    margin-right: 8px;
}

.warning-title {
    color: #856404;
}

.warning-content {
    font-size: 13px;
    color: #856404;
    line-height: 1.4;
}

/* 算法参数配置 */
.parameter-validation-status {
    display: none;
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
}

.model-description-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 5px;
}

.training-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.training-start-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.training-check-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.training-progress {
    display: none;
    margin-top: 20px;
}

.training-progress-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
}

.training-progress-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.training-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.training-status-text {
    font-weight: 600;
    color: #007bff;
}

.training-status-detail {
    color: #666;
    font-size: 14px;
}

.training-result {
    display: none;
    margin-top: 20px;
}

/* 焊点配置列表 */
.splice-config-container {
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.splice-config-header {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.splice-config-title {
    margin: 0;
    color: #495057;
}

.splice-config-content {
    padding: 20px;
}

.splice-config-table {
    width: 100%;
    border-collapse: collapse;
}

.splice-table-header {
    background: #f8f9fa;
}

.splice-table-th {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.splice-table-loading {
    border: 1px solid #ddd;
    padding: 20px;
    text-align: center;
    color: #666;
}

/* 数据表格样式 */
.query-result-info {
    margin-bottom: 15px;
}

.query-result-tip {
    color: #666;
    margin-left: 10px;
}

.sortable-header {
    cursor: pointer;
    user-select: none;
}

.hidden-column {
    display: none;
}



.defect-row {
    background-color: #ffebee;
}



.page-input {
    width: 60px;
    margin-left: 10px;
}

.jump-btn {
    margin-left: 5px;
}

/* 统计图表筛选条件 */
.filter-conditions-container {
    background: #f8f9fa;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #e9ecef;
}

.filter-conditions-content {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-conditions-label {
    color: #495057;
}

.filter-tag {
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.filter-tag-date {
    background: #e3f2fd;
}

.filter-tag-shift {
    background: #fff3e0;
}

.filter-tag-machine {
    background: #f3e5f5;
}

.filter-tag-all {
    background: #e8f5e8;
}

.statistics-main-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* 班次统计表格样式 */
.shift-stats-left {
    flex: 1;
    margin-right: 20px;
}

.shift-stats-container {
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    height: 500px;
    width: 100%;
}

.shift-stats-title {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

.shift-stats-toolbar {
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #e9ecef;
}

.shift-stats-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.download-btn {
    padding: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

.shift-stats-table-container {
    height: calc(100% - 100px);
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
}

.shift-stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.shift-stats-header {
    background: #f5f5f5;
    position: sticky;
    top: 0;
}

.shift-stats-th {
    border: 1px solid #ddd;
    padding: 6px;
    font-weight: bold;
    text-align: center;
}

.shift-stats-row:hover {
    background-color: #f9f9f9;
}

.shift-stats-td {
    border: 1px solid #ddd;
    padding: 4px 6px;
    text-align: center;
}

.shift-stats-empty {
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    height: 500px;
    width: 100%;
    text-align: center;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 缺陷代码分布图表样式 */
.defect-chart-right {
    flex: 1;
    margin-left: 20px;
}

.defect-chart-container {
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    height: 500px;
    width: 100%;
}

.defect-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.defect-chart-title {
    margin: 0;
    color: #333;
    font-size: 16px;
}

.defect-chart-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.defect-chart-label {
    font-size: 12px;
    color: #666;
}

.defect-chart-select {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 12px;
}

.defect-chart-content {
    display: flex;
    justify-content: center;
}

.chart-wrapper {
    position: relative;
    height: calc(100% - 40px);
    width: 100%;
    min-height: 200px;
}

/* 缺陷代码管理表格样式 */
.defect-codes-table-container {
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.defect-codes-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    line-height: 1.3;
}

.defect-codes-header {
    background: #f5f5f5;
}

.defect-codes-th {
    border: 1px solid #ddd;
    padding: 6px 8px;
    text-align: center;
}

.defect-code-col {
    width: 120px;
}

.defect-action-col {
    width: 200px;
}

.defect-codes-row:hover {
    background-color: #f9f9f9;
}

.defect-codes-td {
    border: 1px solid #ddd;
    padding: 6px 8px;
}

.defect-code-cell {
    text-align: center;
    font-weight: bold;
}

.defect-action-cell {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    flex-wrap: nowrap;
}

.defect-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    font-size: 11px;
    line-height: 1;
    height: 26px;
}

.defect-delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    font-size: 11px;
    line-height: 1;
    height: 26px;
}

/* 导入结果显示样式 */
.import-result-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.import-result-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.import-stat-item {
    padding: 8px;
    background: rgba(255,255,255,0.7);
    border-radius: 4px;
}

.import-stat-warning {
    background: rgba(255,193,7,0.2);
}

.import-error-section {
    margin-top: 15px;
}

.import-error-details {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 5px;
    padding: 8px;
    background: rgba(255,255,255,0.7);
    border-radius: 4px;
    font-size: 12px;
}

/* 公告栏和按钮容器样式 */
.announcement-content-wrapper {
    display: flex;
    align-items: center;
}

.ai-button-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 参数加载消息样式 */
.param-loading-message {
    padding: 40px;
    text-align: center;
}

/* 统计卡片宽度样式 */
.stats-card-wide {
    grid-column: span 2;
}

.stat-card-wide {
    grid-column: span 2;
}

/* 图表画布容器样式 */
.chart-canvas-container {
    position: relative;
    height: 400px;
    width: 100%;
}

/* 文件错误消息样式 */
.file-error-message {
    color: red;
}

/* 错误详情样式 */
.error-details {
    margin-top: 10px;
}

/* 备份列表表格样式 */
.backup-list-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.backup-table-header {
    background: #f0f0f0;
}

.backup-table-th {
    padding: 8px;
    border: 1px solid #ddd;
}

.backup-table-th-left {
    text-align: left;
}

.backup-table-th-center {
    text-align: center;
}



.backup-table-td {
    padding: 8px;
    border: 1px solid #ddd;
}

.backup-table-td-center {
    text-align: center;
}

.backup-restore-btn {
    margin-right: 5px;
    padding: 5px 10px;
    font-size: 12px;
}

.backup-delete-btn {
    padding: 5px 10px;
    font-size: 12px;
}
