/**
 * production-scene.css — 生产场景适配样式
 * [v2.2.0] 大屏模式 + 极简视图 + 批量进度条
 */

/* ========== 大屏展示模式 ========== */

body.big-screen-mode {
    background: #0a1628;
    color: #e0e6ed;
}

body.big-screen-mode .main-content {
    margin-left: 0 !important;
    padding: 0 !important;
}

body.big-screen-mode .mobile-top-bar,
body.big-screen-mode #sidebar {
    display: none !important;
}

body.big-screen-mode .dashboard-header {
    padding: 20px 32px !important;
    background: transparent !important;
    border: none !important;
}

body.big-screen-mode .dashboard-header h2 {
    font-size: 28px !important;
    color: #fff !important;
    text-align: center;
}

body.big-screen-mode .stat-cards {
    padding: 0 32px !important;
    gap: 20px !important;
}

body.big-screen-mode .stat-card {
    padding: 24px 20px !important;
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 12px !important;
}

body.big-screen-mode .stat-card .stat-value {
    font-size: 36px !important;
    font-weight: 700 !important;
    color: #fff !important;
}

body.big-screen-mode .stat-card .stat-label {
    font-size: 15px !important;
    color: rgba(255,255,255,0.6) !important;
}

body.big-screen-mode .dashboard-charts {
    padding: 16px 32px !important;
}

body.big-screen-mode canvas {
    filter: brightness(1.1) contrast(1.05);
}

body.big-screen-mode .chart-section {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 12px !important;
    padding: 20px !important;
}

body.big-screen-mode .chart-section h3 {
    font-size: 16px !important;
    color: rgba(255,255,255,0.85) !important;
}

/* 大屏模式切换按钮 */
.big-screen-toggle {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 99999;
    padding: 8px 16px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    backdrop-filter: blur(4px);
    transition: all 0.2s;
}

.big-screen-toggle:hover {
    background: rgba(255,255,255,0.25);
}

/* ========== 极简视图模式 ========== */

body.simple-view-mode .table-col-secondary,
body.simple-view-mode .table-col-extra,
body.simple-view-mode .batch-col {
    display: none !important;
}

body.simple-view-mode .table-wrapper th,
body.simple-view-mode .table-wrapper td {
    font-size: 15px !important;
    padding: 14px 12px !important;
    line-height: 1.6 !important;
}

body.simple-view-mode .table-wrapper td:first-child {
    font-size: 16px !important;
    font-weight: 600 !important;
}

body.simple-view-mode .btn-sm,
body.simple-view-mode .table-action-btn {
    min-width: 52px !important;
    min-height: 40px !important;
    padding: 8px 14px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
}

body.simple-view-mode .pagination {
    font-size: 14px !important;
    gap: 8px !important;
}

body.simple-view-mode .pagination button {
    min-width: 44px !important;
    min-height: 40px !important;
    font-size: 14px !important;
}

body.simple-view-mode .filter-bar {
    padding: 12px 16px !important;
}

body.simple-view-mode .filter-bar select,
body.simple-view-mode .filter-bar input {
    height: 40px !important;
    font-size: 14px !important;
    padding: 4px 12px !important;
}

/* 极简视图切换按钮 */
.simple-view-toggle {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 99900;
    padding: 10px 18px;
    background: #1677ff;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    box-shadow: 0 2px 12px rgba(22,119,255,0.3);
    transition: all 0.2s;
}

.simple-view-toggle:hover {
    background: #4096ff;
    box-shadow: 0 4px 16px rgba(22,119,255,0.4);
}

/* ========== 批量操作进度条 ========== */

.batch-progress-card {
    background: #fff;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    border: 1px solid #e8e8e8;
    font-size: 13px;
}

.batch-progress-card .bp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.batch-progress-card .bp-title {
    font-weight: 600;
    color: #1f1f1f;
    font-size: 14px;
}

.batch-progress-card .bp-cancel {
    padding: 3px 10px;
    background: #fff;
    color: #f5222d;
    border: 1px solid #f5222d;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.batch-progress-card .bp-cancel:hover {
    background: #fff1f0;
}

.batch-progress-card .bp-cancel:disabled {
    color: #bbb;
    border-color: #ddd;
    cursor: default;
}

.batch-progress-card .bp-bar-wrapper {
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.batch-progress-card .bp-bar {
    height: 100%;
    background: #1677ff;
    border-radius: 4px;
    transition: width 0.3s ease;
    min-width: 0;
}

.batch-progress-card .bp-info {
    display: flex;
    justify-content: space-between;
    color: #E0E6ED;
    font-size: 12px;
}

.batch-progress-card .bp-result {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
    font-size: 12px;
}

/* ========== 扫码输入框标记 ========== */

[data-scan-input] {
    border-left: 3px solid #1677ff;
    transition: border-color 0.2s;
}

[data-scan-input]:focus {
    border-left-color: #4096ff;
    box-shadow: 0 0 0 2px rgba(22,119,255,0.1);
}

/* ========== 响应式 ========== */

@media (max-width: 768px) {
    body.big-screen-mode .stat-cards {
        padding: 0 12px !important;
    }
    body.big-screen-mode .stat-card .stat-value {
        font-size: 24px !important;
    }
    body.simple-view-mode .table-wrapper td {
        font-size: 14px !important;
        padding: 10px 8px !important;
    }
    .batch-progress-card {
        width: 260px;
    }
}
