/* static/css/dashboard_pro.css */

/* 1. 🚀 强制覆盖 Pico 核心背景变量 - 解决 var(--pico-background-color) */
:root, [data-theme="light"], [data-theme="dark"] {
    --pico-background-color: #020617 !important;
    --pico-card-background-color: #0f172a !important;
    --pico-table-row-stripped-background-color: rgba(255, 255, 255, 0.02) !important;
    --pico-color: #f8fafc !important;
    --pico-muted-color: #64748b !important;
}

/* 2. 锁定指挥部命名空间 */
#dashboard-exclusive {
    background-color: #020617 !important;
    min-height: 100vh;
}

/* 3. 彻底重写表格样式，参考 App 风格 */
#dashboard-exclusive .modern-table-wrapper {
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px;
    overflow: hidden;
    margin: 1rem 0;
}

#dashboard-exclusive table {
    width: 100% !important;
    margin: 0 !important;
    background-color: #0f172a !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    /* 🚀 关键：彻底取消 Pico 给 table 默认加的任何背景 */
    --pico-background-color: transparent !important;
}

/* 4. 解决 tr/td 的背景污染 */
#dashboard-exclusive table thead th {
    background: #1e293b !important;
    color: #4f46e5 !important;
    font-weight: 900 !important;
    border-bottom: 2px solid #4f46e5 !important;
}

#dashboard-exclusive table tbody tr td {
    background: transparent !important; /* 强制透明，使用容器色 */
    color: #cbd5e1 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* 斑马纹：Pico 经常在这里搞事，我们手动写死 */
#dashboard-exclusive table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.01) !important;
}

#dashboard-exclusive table tbody tr:hover td {
    background: rgba(79, 70, 229, 0.1) !important;
    color: #fff !important;
}