/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #0c1a30;
    color: #e6f7ff;
    overflow: hidden;
}

.dashboard-container {
    width: 100vw;
    height: 100vh;
    padding: 10px;
    /* max-width: 1920px; */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
}

.dashboard-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
}

/* 行样式 */
.dashboard-row {
    display: flex;
    gap: 6px;
    flex: 1;
    min-height: 0;
}

/* 第三行略高 */
.dashboard-content > .dashboard-row:last-child {
    flex: 1.15;
}

/* 模块样式 */
.dashboard-module {
    background-color: #0a1629;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(24, 144, 255, 0.2);
    padding: 10px;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.dashboard-module h3 {
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 600;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(24, 144, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 核心指标模块样式 */
.core-metrics-module {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.output-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-bottom: 0;
    flex: 1;
}

.output-card.large-card {
    padding: 10px;
    flex: 1;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(24, 144, 255, 0.25) 0%, rgba(9, 109, 217, 0.25) 100%);
    border: 1px solid rgba(24, 144, 255, 0.5);
    box-shadow: 0 4px 16px rgba(24, 144, 255, 0.35);
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.output-card.large-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(24, 144, 255, 0) 0%, rgba(24, 144, 255, 1) 50%, rgba(24, 144, 255, 0) 100%);
}

.output-card.large-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(24, 144, 255, 0.45);
}

.output-card.large-card .card-content {
    flex: 1;
}

.output-card.large-card .card-label {
    font-size: 18px;
    margin-bottom: 10px;
    color: #91d5ff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.output-card.large-card .card-value {
    font-size: 36px;
    line-height: 1.1;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: baseline;
    white-space: nowrap;
}

.output-card.large-card .card-value span {
    display: inline-block;
    margin-left: 8px;
}

.output-card.large-card .card-unit {
    font-size: 20px;
    color: #73d13d;
    font-weight: 600;
}

.output-card {
    background: linear-gradient(135deg, rgba(12, 36, 67, 0.8) 0%, rgba(9, 27, 51, 0.8) 100%);
    border-radius: 6px;
    border: 1px solid rgba(24, 144, 255, 0.3);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.card-icon {
    font-size: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(24, 144, 255, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
}

.output-card.large-card .card-icon {
    font-size: 28px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(24, 144, 255, 0.3) 0%, rgba(9, 109, 217, 0.3) 100%);
    border-radius: 50%;
    flex-shrink: 0;
    margin-right: 5px;
    border: 1px solid rgba(24, 144, 255, 0.5);
    box-shadow: 0 3px 12px rgba(24, 144, 255, 0.4);
}

.card-content {
    flex: 1;
}

.card-label {
    font-size: 12px;
    color: #91d5ff;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-value {
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
}

.card-unit {
    font-size: 14px;
    font-weight: normal;
    color: #73d13d;
    margin-left: 3px;
}

/* 生产数据监控模块样式 */
.production-monitor-module {
    flex: 1;
    overflow: hidden;
}

.production-metrics {
    flex: 1;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin-top: 0px;
}

.empty-data-tip {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #91d5ff;
    font-size: 14px;
    letter-spacing: 1px;
    background-color: rgba(12, 36, 67, 0.45);
    border: 1px dashed rgba(24, 144, 255, 0.35);
    border-radius: 6px;
}

.metric-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.metric-name {
    font-size: 12px;
    color: #91d5ff;
    width: 64px;
    flex-shrink: 0;
}

.metric-bar-container {
    flex: 1;
    height: 6px;
    background-color: rgba(12, 36, 67, 0.8);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.metric-bar {
    height: 100%;
    background: linear-gradient(90deg, rgba(24, 144, 255, 0.6) 0%, rgba(24, 144, 255, 1) 100%);
    border-radius: 4px;
    position: relative;
}

.metric-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(50%, -50%);
    width: 10px;
    height: 10px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(24, 144, 255, 0.8);
}

.metric-value {
    font-size: 12px;
    color: #ffffff;
    font-weight: 600;
    min-width: 82px;
    text-align: right;
    flex-shrink: 0;
}

/* 设备总览模块样式 */
.equipment-overview-module {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.eo-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.eo-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 6px;
}

.eo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: 6px 4px;
    text-align: center;
    border: 1px solid rgba(24, 144, 255, 0.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(180deg, rgba(12, 36, 67, 0.9) 0%, rgba(9, 27, 51, 0.9) 100%);
    transition: all 0.3s ease;
}

.eo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(24, 144, 255, 0.35);
}

.eo-num {
    font-size: 30px;
    font-weight: 800;
    font-family: 'Segoe UI','DIN Alternate','PingFang SC',sans-serif;
    line-height: 1;
    letter-spacing: -1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.eo-label {
    font-size: 13px;
    line-height: 1.6;
    margin-top: 5px;
    letter-spacing: 1px;
    color: #91d5ff;
    font-weight: 600;
}

.eo-en {
    font-size: 9px;
    margin-top: 1px;
    letter-spacing: .5px;
    color: rgba(145, 213, 255, 0.4);
    text-transform: uppercase;
}

.eo-sub {
    font-size: 11px;
    margin-top: 3px;
    letter-spacing: .8px;
    color: rgba(145, 213, 255, 0.55);
}

/* 各卡数字颜色 */
.eo-connected .eo-num { color: #52c41a; }
.eo-running .eo-num { color: #52c41a; }
.eo-stopped .eo-num { color: #1890ff; }
.eo-total .eo-num { color: #faad14; }
.eo-unconnected .eo-num { color: #ff4d4f; }
.eo-rate .eo-num { color: #722ed1; }

.eo-footnote {
    flex-shrink: 0;
    font-size: 12px;
    color: rgba(145, 213, 255, 0.5);
    text-align: center;
    letter-spacing: 1px;
    padding: 4px 0 2px;
}

/* 生产数据对比模块样式 */
.production-compare-module {
    flex: 1;
}

/* 生产排单完成情况模块样式 */
.scheduling-module {
    flex: 1;
}

/* 异常告警模块样式 */
.alerts-module {
    flex: 0.7;
}

/* 本周产量统计模块样式 */
.weekly-production-module {
    flex: 0.7;
    display: flex;
    flex-direction: row;
}

.qualification-legend {
    flex: 0 0 140px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px;
    background-color: rgba(12, 36, 67, 0.6);
    border-radius: 4px;
    border: 1px solid rgba(24, 144, 255, 0.2);
    margin-left: 10px;
    justify-content: center;
}

/* 本月产品合格率图例缩小（不影响其他模块） */
.qualification-legend .legend-value {
    font-size: 14px;
    min-width: 50px;
}
.qualification-legend .legend-color {
    width: 16px;
    height: 16px;
}
.qualification-legend .legend-item {
    gap: 6px;
}
.qualification-legend .legend-text {
    font-size: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.legend-value {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    min-width: 65px;
    text-align: right;
}

.legend-color {
    width: 24px;
    height: 24px;
    border-radius: 3px;
}

.legend-color.qualified {
    background-color: #52c41a;
}

.legend-color.unqualified {
    background-color: #ff4d4f;
}

.legend-color.running {
    background-color: #52c41a;
}

.legend-color.stopped {
    background-color: #1890ff;
}

.legend-color.achieved {
    background-color: #1890ff;
}

.legend-color.not-achieved {
    background-color: #999999;
}

.legend-text {
    font-size: 14px;
    color: #91d5ff;
    font-weight: 500;
    white-space: nowrap;
}



/* 本月生产达成率图例样式 */
.monthly-achievement-module {
    flex: 1;
    display: flex;
    flex-direction: row;
}

.achievement-legend {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 15px;
    background-color: rgba(12, 36, 67, 0.6);
    border-radius: 4px;
    border: 1px solid rgba(24, 144, 255, 0.2);
    margin-left: 15px;
    justify-content: center;
}

/* 设备运行状态详情模块样式 */
.equipment-status-detail-module {
    flex: 1;
    min-height: 0;
}

/* 安全告警通知模块样式 */
:root {
    --safety-green: #00e88f;
    --safety-green-dim: rgba(0,232,143,.35);
}

.safety-alert-module {
    flex: 0.6;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.safety-panel {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    z-index: 3;
}

/* 扫描线纹理 */
.safety-alert-module::before {
    content: '';
    position: absolute; inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255,255,255,.008) 2px,
        rgba(255,255,255,.008) 4px
    );
    pointer-events: none; z-index: 1;
}

/* 四角装饰 */
.safety-alert-module::after {
    content: '';
    position: absolute; inset: 0;
    border: 1px solid transparent;
    border-image: none;
    pointer-events: none; z-index: 2;
    --c: rgba(0,232,143,.18);
    background:
        /* 左上 */
        linear-gradient(90deg, var(--c), transparent 14px) 0 0 / 12px 1px no-repeat,
        linear-gradient(180deg, var(--c), transparent 14px) 0 0 / 1px 12px no-repeat,
        /* 右上 */
        linear-gradient(270deg, var(--c), transparent 14px) 100% 0 / 12px 1px no-repeat,
        linear-gradient(180deg, var(--c), transparent 14px) 100% 0 / 1px 12px no-repeat,
        /* 左下 */
        linear-gradient(90deg, var(--c), transparent 14px) 0 100% / 12px 1px no-repeat,
        linear-gradient(0deg, var(--c), transparent 14px) 0 100% / 1px 12px no-repeat,
        /* 右下 */
        linear-gradient(270deg, var(--c), transparent 14px) 100% 100% / 12px 1px no-repeat,
        linear-gradient(0deg, var(--c), transparent 14px) 100% 100% / 1px 12px no-repeat;
}

/* ===== 标题 ===== */
.safety-header {
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 6px; flex-shrink: 0;
}
.safety-header-line {
    width: 12px; height: 1px;
    background: linear-gradient(90deg, rgba(0,232,143,.6), transparent);
    flex-shrink: 0;
}
.safety-header-dot {
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--safety-green);
    box-shadow: 0 0 6px var(--safety-green);
    flex-shrink: 0;
}
.safety-header-text {
    font-size: 11px; font-weight: 700;
    color: #a8c8e8;
    letter-spacing: 1.5px;
    text-shadow: 0 0 8px rgba(100,160,220,.2);
}

/* ===== 安全天数卡片 ===== */
.safe-card {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 6px;
    border-radius: 3px;
    background: linear-gradient(135deg, rgba(0,232,143,.04) 0%, rgba(0,180,110,.02) 100%);
    border: 1px solid rgba(0,232,143,.1);
    margin-bottom: 6px; flex-shrink: 0;
    position: relative;
}
.safe-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,232,143,.15), transparent);
}

/* 盾牌 */
.shield-wrap {
    position: relative;
    width: 32px; height: 38px; flex-shrink: 0;
}
.shield-ring {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1.5px solid rgba(0,232,143,.22);
    position: absolute; top: 3px; left: 0;
    animation: shield-ring-pulse 3s ease-in-out infinite;
}
@keyframes shield-ring-pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(0,232,143,.08); border-color: rgba(0,232,143,.22); }
    50% { box-shadow: 0 0 8px 2px rgba(0,232,143,.12); border-color: rgba(0,232,143,.4); }
}
.shield-shape {
    width: 20px; height: 24px;
    background: linear-gradient(180deg, #00e88f, #009a5e);
    clip-path: polygon(50% 0%,100% 18%,100% 56%,50% 100%,0% 56%,0% 18%);
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    filter: drop-shadow(0 0 4px rgba(0,232,143,.4));
}
.shield-check {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 10px; font-weight: 700;
}

.safe-info { line-height: 1.1; }
.safe-days {
    font-size: 28px; font-weight: 800;
    color: var(--safety-green);
    line-height: 1;
    font-family: 'Segoe UI','DIN','PingFang SC',sans-serif;
    text-shadow: 0 0 18px rgba(0,232,143,.3), 0 0 3px rgba(0,232,143,.2);
    letter-spacing: -1px;
}
.safe-sub {
    font-size: 11px; color: #5a8a70;
    font-weight: 500; margin-top: 2px;
    letter-spacing: .8px;
}

/* ===== 告警列表 ===== */
.safety-alert-list {
    flex: 1;
    display: flex; flex-direction: column;
    gap: 8px;
    min-height: 0;
}

.safety-alert-row {
    display: flex; align-items: center;
    gap: 6px; padding: 6px 6px;
    border-radius: 3px;
    transition: all .2s;
    cursor: default;
    background: rgba(255,255,255,.015);
}
.safety-alert-row:hover {
    background: rgba(255,255,255,.04);
}

.sar-icon {
    font-size: 12px; width: 16px; text-align: center;
    flex-shrink: 0; line-height: 1;
    filter: drop-shadow(0 0 3px currentColor);
}
.sar-info { flex:1; line-height: 1.2; }
.sar-name {
    font-size: 13px; font-weight: 600;
    letter-spacing: 1.5px;
}
.sar-tag {
    font-size: 8px; letter-spacing: 1px;
    opacity: .45; font-weight: 500;
}
.sar-count {
    font-size: 16px; font-weight: 800;
    min-width: 24px; text-align: right;
    font-variant-numeric: tabular-nums;
    line-height: 1; font-family: 'Segoe UI','DIN',sans-serif;
}
.sar-unit {
    font-size: 8px; font-weight: 500;
    opacity: .4; margin-left: 1px;
}

/* ---- 四级颜色 ---- */
.r1 .sar-icon { color: #fbbf24; }
.r1 .sar-name { color: #fbbf24; }
.r1 .sar-tag { color: #b8860b; }
.r1 .sar-count { color: #fbbf24; text-shadow: 0 0 8px rgba(245,158,11,.2); }

.r2 .sar-icon { color: #fb923c; }
.r2 .sar-name { color: #fb923c; }
.r2 .sar-tag { color: #b86824; }
.r2 .sar-count { color: #fb923c; text-shadow: 0 0 8px rgba(249,115,22,.2); }

.r3 {
    animation: safety-g3 2s ease-in-out infinite;
    background: rgba(239,68,68,.04);
}
.r3 .sar-icon { color: #f87171; }
.r3 .sar-name { color: #f87171; }
.r3 .sar-tag { color: #b04444; }
.r3 .sar-count { color: #f87171; text-shadow: 0 0 8px rgba(239,68,68,.25); }
@keyframes safety-g3 {
    0%,100% { box-shadow: inset 0 0 0 0 rgba(239,68,68,0); background: rgba(239,68,68,.035); }
    50% { box-shadow: inset 0 0 6px 0 rgba(239,68,68,.08); background: rgba(239,68,68,.06); }
}

.r4 {
    animation: safety-g4 1.6s ease-in-out infinite;
    background: rgba(147,51,234,.03);
}
.r4 .sar-icon { color: #c084fc; }
.r4 .sar-name { color: #c084fc; }
.r4 .sar-tag { color: #7c509a; }
.r4 .sar-count { color: #c084fc; text-shadow: 0 0 10px rgba(147,51,234,.3); }
@keyframes safety-g4 {
    0%,100% { box-shadow: inset 0 0 0 0 rgba(147,51,234,0); background: rgba(147,51,234,.025); }
    50% { box-shadow: inset 0 0 8px 1px rgba(147,51,234,.1); background: rgba(147,51,234,.06); }
}

/* ===== 分隔线 ===== */
.safety-divider {
    height: 1px; flex-shrink: 0;
    background: linear-gradient(90deg, transparent, rgba(0,232,143,.08), rgba(120,160,200,.06), transparent);
    margin: 4px 0;
}

/* ===== 底部状态栏 ===== */
.safety-status-bar {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; flex-shrink: 0;
    padding: 2px 10px;
    border-radius: 10px;
    background: rgba(0,232,143,.04);
    border: 1px solid rgba(0,232,143,.08);
    align-self: center;
}
.safety-st-dot {
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--safety-green);
    animation: safety-st-blink 2s ease-in-out infinite;
}
@keyframes safety-st-blink {
    0%,100% { opacity:1; box-shadow: 0 0 4px var(--safety-green); }
    50% { opacity:.35; box-shadow: 0 0 1px var(--safety-green); }
}
.safety-st-text {
    font-size: 11px; color: rgba(0,232,143,.5);
    letter-spacing: 2px; font-weight: 500;
}


.equipment-status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.equipment-status-header h3 {
    border-bottom: 1px solid rgba(24, 144, 255, 0.2);
    padding-bottom: 6px;
    flex: 1;
}

.equipment-room-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.equipment-room-btn {
    border: 1px solid rgba(24, 144, 255, 0.45);
    background-color: rgba(12, 36, 67, 0.65);
    color: #91d5ff;
    font-size: 12px;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.equipment-room-btn:hover {
    color: #ffffff;
    border-color: rgba(24, 144, 255, 0.8);
    background-color: rgba(24, 144, 255, 0.2);
}

.equipment-room-btn.active {
    color: #ffffff;
    background-color: rgba(24, 144, 255, 0.45);
    border-color: rgba(105, 192, 255, 0.95);
}

/* 图表容器样式 */
.chart-container {
    flex: 1;
    min-height: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.chart-empty-tip {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    color: #91d5ff;
    font-size: 14px;
    letter-spacing: 1px;
    background-color: rgba(10, 22, 41, 0.72);
    pointer-events: none;
}

.equipment-overview-module .chart-container {
    flex: 2;
}

.chart-container canvas {
    flex: 1;
    width: 100% !important;
    height: 100% !important;
}

/* 报警信息样式 */
.alerts-container {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

/* 无告警数据时使用整块背景图覆盖，并在三角形下方显示提示文案。 */
.alerts-container.alerts-empty-state {
    overflow: hidden;
    justify-content: center;
    align-items: center;
    background-image: url('./images/gaojin.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.alerts-empty-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.alerts-empty-label {
    margin-top: 20%;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #91d5ff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 4px;
    border-left: 4px solid #ff4d4f;
    background-color: rgba(255, 77, 79, 0.1);
    border-top: 1px solid rgba(255, 77, 79, 0.2);
    border-right: 1px solid rgba(255, 77, 79, 0.2);
    border-bottom: 1px solid rgba(255, 77, 79, 0.2);
}
.hideText {
    -webkit-line-clamp: 1;
    width: 98%;
    flex: 1;
  height: auto;
  display: -webkit-box;
  overflow: hidden;
  text-align: start;
  /*超出隐藏*/
  text-overflow: ellipsis;
  /*隐藏后添加省略号*/
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.alert-icon {
    font-size: 18px;
    color: #ff7875;
}

.alert-content {
    flex: 1;
}
.alert-top{
        display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.alert-title {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
    word-break: break-all;
}

.alert-message {
    font-size: 13px;
    color: #b0c4de;
}

.alert-time {
    font-size: 12px;
    color: #91d5ff;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 生产排单完成情况样式 */
.scheduling-table-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    border-radius: 4px;
    border: 1px solid rgba(24, 144, 255, 0.2);
}

/* 进度条样式 */
.progress-container {
    position: relative;
    width: 100%;
    height: 16px;
    background-color: rgba(12, 36, 67, 0.6);
    border-radius: 8px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #52c41a, #73d13d);
    border-radius: 8px;
    transition: width 0.3s ease;
}

.progress-text {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    line-height: 16px;
    font-size: 10px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.scheduling-table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.scheduling-table th,
.scheduling-table td {
    padding: 6px 8px;
    text-align: center;
    border-bottom: 1px solid rgba(24, 144, 255, 0.2);
    white-space: nowrap;
    width: 110px;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scheduling-table th {
    background: linear-gradient(135deg, rgb(4, 71, 133) 75%, rgb(24, 144, 255, 0.2) 100%);
    font-weight: 600;
    color: #ffffff;
    font-size: 12px;
    position: sticky;
    top: 0;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scheduling-table td {
    font-size: 11px;
    color: #b0c4de;
    background-color: rgba(12, 36, 67, 0.6);
}

.scheduling-table tr:hover {
    background-color: rgba(24, 144, 255, 0.1);
}

/* 设备表格样式 */
.equipment-table-container {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 4px;
    border: 1px solid rgba(24, 144, 255, 0.2);
}

.equipment-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.equipment-table th,
.equipment-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(24, 144, 255, 0.2);
    white-space: nowrap;
}

.equipment-table th {
    background: linear-gradient(135deg, rgb(4, 71, 133) 75%, rgb(24, 144, 255, 0.2) 100%);
    font-weight: 600;
    color: #ffffff;
    font-size: 13px;
    position: sticky;
    top: 0;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.equipment-table td {
    font-size: 12px;
    color: #b0c4de;
    background-color: rgba(12, 36, 67, 0.6);
}

.equipment-table th:nth-child(2),
.equipment-table td:nth-child(2) {
    width: 180px;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.equipment-table th:nth-child(1),
.equipment-table td:nth-child(1) {
    width: 100px;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.equipment-table tr:hover {
    background-color: rgba(24, 144, 255, 0.1);
}

/* 任务派工表格样式 */
.dispatch-table-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    border-radius: 4px;
    border: 1px solid rgba(24, 144, 255, 0.2);
}

.dispatch-table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.dispatch-table th,
.dispatch-table td {
    padding: 6px 8px;
    text-align: center;
    border-bottom: 1px solid rgba(24, 144, 255, 0.2);
    white-space: nowrap;
    width: 110px;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
}

.dispatch-table th {
    background: linear-gradient(135deg, rgb(4, 71, 133) 75%, rgb(24, 144, 255, 0.2) 100%);
    font-weight: 600;
    color: #ffffff;
    font-size: 12px;
    position: sticky;
    top: 0;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dispatch-table td {
    font-size: 12px;
    color: #b0c4de;
    background-color: rgba(12, 36, 67, 0.6);
}

.dispatch-table th:nth-child(1),
.dispatch-table td:nth-child(1) {
    width: 64px;
    max-width: 64px;
}

.empty-row-cell {
    text-align: center !important;
    color: #91d5ff !important;
    padding: 24px 10px !important;
    background-color: rgba(12, 36, 67, 0.45) !important;
    width: auto !important;
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

.dispatch-table tr:hover {
    background-color: rgba(24, 144, 255, 0.1);
}

.action-btn {
    display: inline-block;
    padding: 2px 8px;
    background-color: #1890ff;
    color: white;
    border-radius: 4px;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background-color: #40a9ff;
    transform: scale(1.05);
}

/* 头部样式 */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 15px;
    background: linear-gradient(135deg, rgba(10, 22, 41, 0.95) 0%, rgba(2, 61, 116, 0.95) 100%);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 20px rgba(24, 144, 255, 0.1);
    border: 1px solid rgba(24, 144, 255, 0.3);
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(24, 144, 255, 0) 0%, rgba(24, 144, 255, 1) 50%, rgba(24, 144, 255, 0) 100%);
}

.error-toast-container {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.error-toast {
    min-width: 280px;
    max-width: 420px;
    color: #fff;
    background: rgba(255, 77, 79, 0.92);
    border: 1px solid rgba(255, 120, 117, 0.85);
    border-radius: 6px;
    padding: 10px 12px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
    font-size: 13px;
    line-height: 1.5;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.error-toast.hide {
    opacity: 0;
    transform: translateY(-6px);
}

.header-left {
    display: flex;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
   /* gap: 15px;*/
    transition: all 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 0 8px rgba(230, 57, 70, 0.5));
}

.logo-container img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-chinese {
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    font-family: SimHei, sans-serif;
   /* margin-bottom: 2px;*/
}

.logo-english {
    font-size: 6px;
    color: #cccccc;
    font-family: Arial, sans-serif;
    letter-spacing: 1px;
}

.header-left h1 {
    font-size: 26px;
    color: #1890ff;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-left: 15px;
}

.header-left img {
     margin-left: 4px;
    width: 50px;
    height: 50px;
 /*   border-radius: 50%;*/
  /*  margin-right: 8px;*/
}
/*
.header-center .date-time {
    font-size: 18px;
    color: #ffffff;
}
*/
.header-center h1 {
    font-size: 36px;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 0 2px 8px rgba(24, 144, 255, 0.5), 0 0 20px rgba(24, 144, 255, 0.3);
    letter-spacing: 1px;
    margin: 0;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(24, 144, 255, 0.1) 0%, rgba(9, 109, 217, 0.1) 100%);
    border-radius: 25px;
    border: 1px solid rgba(24, 144, 255, 0.2);
    box-shadow: inset 0 1px 3px rgba(24, 144, 255, 0.2);
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
}

.workshop-selector {
    margin-bottom: 5px;
}

.workshop-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.workshop-item {
    padding: 8px 16px;
    font-size: 14px;
    border: 2px solid #007bff;
    border-radius: 20px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.workshop-item:hover {
    background-color: #007bff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.workshop-item.active {
    background-color: #007bff;
    color: #fff;
    border-color: #0056b3;
}

.header-stats {
    display: flex;
    gap: 15px;
    padding: 10px 15px;
    background: rgba(10, 22, 41, 0.8);
    border-radius: 20px;
    border: 1px solid rgba(24, 144, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.header-stats .stat-item {
    font-size: 16px;
    color: #91d5ff;
}

.date-time {
    font-size: 18px;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

/* 状态标签样式 */
.status {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.status-running {
    background-color: rgba(24, 144, 255, 0.2);
    color: #69c0ff;
    border: 1px solid rgba(24, 144, 255, 0.3);
}

.status-pending {
    background-color: rgba(250, 173, 20, 0.2);
    color: #ffd666;
    border: 1px solid rgba(250, 173, 20, 0.3);
}

.status-completed {
    background-color: rgba(82, 196, 26, 0.2);
    color: #73d13d;
    border: 1px solid rgba(82, 196, 26, 0.3);
}

.status-error {
    background-color: rgba(255, 77, 79, 0.2);
    color: #ff7875;
    border: 1px solid rgba(255, 77, 79, 0.3);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .dashboard-container {
        padding: 8px;
    }
    
    .dashboard-row {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px 16px;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(12, 36, 67, 0.8);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(24, 144, 255, 0.5);
    border-radius: 3px;
    border: 1px solid rgba(24, 144, 255, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(24, 144, 255, 0.7);
}
