/*
    Theme: Engraved
    Description: A high-contrast theme featuring solid header backgrounds and "engraved" status badges with colored text on a dark base.
    Based on: theme_high_contrast.css (final version)
    Author: Gemini AI
*/

/* V4版工业风深蓝灰背景 (Same as other themes) */
body {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 25%, #2c3e50 50%, #34495e 75%, #2c3e50 100%) !important;
    background-attachment: fixed !important;
}
body::before {
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
}

/* 主要卡片容器深色背景优化 (Same as other themes) */
.card {
    background-color: rgba(44, 62, 80, 0.95) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    color: rgba(255,255,255,0.95) !important;
}

/* 标题文字颜色 (Same as other themes) */
h1, h2, h4, h5, h6 {
    color: rgba(255,255,255,0.95) !important;
}
.dashboard-title,
.dashboard-datetime {
    color: #ffffff !important;
}

/* 页面切换卡片颜色已移至dashboard_v4.css统一管理 */

/* --- ENGRAVED THEME --- */

/* 1. Dark, solid, desaturated header backgrounds with a subtle bottom border for depth */
.card-header.status-header.status-在产 { background-color: #4a6741 !important; border-bottom: 1px solid #5f8556 !important; } /* Dark Olive Green */
.card-header.status-header.status-待修 { background-color: #783c3d !important; border-bottom: 1px solid #995455 !important; } /* Dark Maroon */
.card-header.status-header.status-空闲 { background-color: #946733 !important; border-bottom: 1px solid #b5834a !important; } /* Dark Burnt Orange */
.card-header.status-header.status-待料 { background-color: #857831 !important; border-bottom: 1px solid #a8994b !important; } /* Dark Mustard */
.card-header.status-header.status-换产 { background-color: #857831 !important; border-bottom: 1px solid #a8994b !important; } /* Dark Mustard */
.card-header.status-header.status-在修 { background-color: #41676c !important; border-bottom: 1px solid #5a878e !important; } /* Dark Teal */

/* 2. "Engraved" badges: status-colored text on a dark background matching the card body */
.card-header.status-header .badge {
    background-color: #2c3e50 !important; /* Match card body background */
    border: 1px solid rgba(0,0,0,0.4) !important; /* Add subtle depth for engraved look */
    /* 尺寸和圆角样式由dashboard_v4.css统一控制 */
}
.card-header.status-header .badge.status-在产 { color: #28a745 !important; }
.card-header.status-header .badge.status-待修 { color: #dc3545 !important; }
.card-header.status-header .badge.status-空闲 { color: #fd7e14 !important; }
.card-header.status-header .badge.status-待料 { color: #ffc107 !important; }
.card-header.status-header .badge.status-换产 { color: #ffc107 !important; }
.card-header.status-header .badge.status-在修 { color: #17a2b8 !important; }

/* Production plan card uses the same header style */
.production-card .card-header {
    background-color: #4a6741 !important; /* Dark Olive Green for consistency */
    border-bottom: 1px solid #5f8556 !important; /* Matching border */
}

/* --- END ENGRAVED THEME --- */


/* 生产信息颜色 (Same as other themes) */
.production-info {
    border-top-color: rgba(255,255,255,0.15);
}
.info-row { color: rgba(255,255,255,0.9) !important; }
.info-label { color: rgba(255,255,255,0.8) !important; }
.info-value { color: rgba(255,255,255,0.95) !important; }

/* 表格颜色 (Same as other themes) */
.table { color: rgba(255,255,255,0.9) !important; }
.table th { color: rgba(255,255,255,0.95) !important; border-bottom-color: rgba(255,255,255,0.2) !important; }
.table td { color: rgba(255,255,255,0.9) !important; border-bottom-color: rgba(255,255,255,0.1) !important; }
.table-striped > tbody > tr:nth-child(odd) { background-color: rgba(255,255,255,0.05) !important; }
.table-hover > tbody > tr:hover { background-color: rgba(255,255,255,0.1) !important; }

/* 状态统计卡片颜色 (Matched with card headers for consistency) */
.status-stat-card {
    border: 1px solid rgba(0,0,0,0.2) !important;
    color: #ffffff !important;
}
.status-stat-card.status-在产 { background-color: #4a6741 !important; }
.status-stat-card.status-换产 { background-color: #857831 !important; }
.status-stat-card.status-空闲 { background-color: #946733 !important; }
.status-stat-card.status-待修 { background-color: #783c3d !important; }
.status-stat-card.status-在修 { background-color: #41676c !important; }
.status-stat-card.status-待料 { background-color: #857831 !important; }
.status-stat-card.status-empty { background-color: #6c757d !important; }

/* 通用文字/图标颜色 (Same as other themes) */
.small, small { color: rgba(255,255,255,0.7) !important; }
.text-muted { color: rgba(255,255,255,0.6) !important; }
strong, b { color: rgba(255,255,255,0.95) !important; }
.text-success { color: rgba(40, 167, 69, 0.9) !important; }
.text-warning { color: rgba(255, 193, 7, 0.9) !important; }
.text-danger { color: rgba(220, 53, 69, 0.9) !important; }
.text-info { color: rgba(23, 162, 184, 0.9) !important; } 