﻿h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* 移动Logo图像上面的框 */
.layout-logo {
    border: none !important; /* 移除边框 */
    background-color: transparent !important; /* 移除背景，防止“填充框” */
    box-shadow: none !important; /* 如果有阴影，也移除 */
    border-radius: 0 !important; /* 移除圆角，让图片方形（可选，如果你要方形 Logo） */
    /* 如果想保持圆形但无框，只需注释掉 border-radius: 0 */
}

    .layout-logo img {
        border-radius: 0 !important; /* 图片也无圆角（可选） */
    }

/* Dark 模式也覆盖 */
[data-theme="dark"] .layout-logo {
    border: none !important;
    background-color: transparent !important;
}

.row-highlight-level9 {
    --bs-table-striped-bg: #f26700;
    --bs-table-bg: #f26700;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #75bd42;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-highlight-level8 {
    --bs-table-striped-bg: #800080;
    --bs-table-bg: #800080;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #75bd42;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-highlight-level7 {
    --bs-table-striped-bg: #3c5f21;
    --bs-table-bg: #3c5f21;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #75bd42;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-highlight-level6 {
    --bs-table-striped-bg: #add88d;
    --bs-table-bg: #add88d;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #75bd42;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-highlight-level5 {
    --bs-table-striped-bg: #ccc0da;
    --bs-table-bg: #ccc0da;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #75bd42;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-highlight-level4 {
    --bs-table-striped-bg: #00b0f0;
    --bs-table-bg: #00b0f0;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #75bd42;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-highlight-level3 {
    --bs-table-striped-bg: #ffff00;
    --bs-table-bg: #ffff00;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #add88d;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-highlight-level2 {
    --bs-table-striped-bg: #ff0000;
    --bs-table-bg: #ff0000;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #c9e4b4;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-highlight-level1 {
    --bs-table-striped-bg: #00b050;
    --bs-table-bg: #00b050;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-highlight-level0 {
    --bs-table-hover-bg: #4f616f;
    --bs-table-hover-color: #ffffff;
}

/* 暗色主题 (Dark Mode) 表格高亮颜色 */
[data-bs-theme="dark"] .row-highlight-level9 {
    --bs-table-striped-bg: #8c4004; /* 深橙色 */
    --bs-table-bg: #8c4004;
    --bs-table-hover-bg: #5c7080;
    --bs-table-striped-color: #a6e37a;
    --bs-table-color-state: #e0e0e0; /* 亮灰色文字，降低刺眼感 */
    --bs-table-hover-color: #ffffff;
}

[data-bs-theme="dark"] .row-highlight-level8 {
    --bs-table-striped-bg: #4d004d; /* 深紫色 */
    --bs-table-bg: #4d004d;
    --bs-table-hover-bg: #5c7080;
    --bs-table-striped-color: #a6e37a;
    --bs-table-color-state: #e0e0e0;
    --bs-table-hover-color: #ffffff;
}

[data-bs-theme="dark"] .row-highlight-level7 {
    --bs-table-striped-bg: #223812; /* 极深绿色 */
    --bs-table-bg: #223812;
    --bs-table-hover-bg: #5c7080;
    --bs-table-striped-color: #a6e37a;
    --bs-table-color-state: #e0e0e0;
    --bs-table-hover-color: #ffffff;
}

[data-bs-theme="dark"] .row-highlight-level6 {
    --bs-table-striped-bg: #384f2b; /* 哑光暗绿 */
    --bs-table-bg: #384f2b;
    --bs-table-hover-bg: #5c7080;
    --bs-table-striped-color: #a6e37a;
    --bs-table-color-state: #e0e0e0;
    --bs-table-hover-color: #ffffff;
}

[data-bs-theme="dark"] .row-highlight-level5 {
    --bs-table-striped-bg: #484152; /* 暗灰紫 */
    --bs-table-bg: #484152;
    --bs-table-hover-bg: #5c7080;
    --bs-table-striped-color: #a6e37a;
    --bs-table-color-state: #e0e0e0;
    --bs-table-hover-color: #ffffff;
}

[data-bs-theme="dark"] .row-highlight-level4 {
    --bs-table-striped-bg: #004761; /* 深海蓝 */
    --bs-table-bg: #004761;
    --bs-table-hover-bg: #5c7080;
    --bs-table-striped-color: #a6e37a;
    --bs-table-color-state: #e0e0e0;
    --bs-table-hover-color: #ffffff;
}

[data-bs-theme="dark"] .row-highlight-level3 {
    --bs-table-striped-bg: #666600; /* 暗橄榄黄 */
    --bs-table-bg: #666600;
    --bs-table-hover-bg: #5c7080;
    --bs-table-striped-color: #cbeba7; /* 提亮原有的绿色 */
    --bs-table-color-state: #e0e0e0;
    --bs-table-hover-color: #ffffff;
}

[data-bs-theme="dark"] .row-highlight-level2 {
    --bs-table-striped-bg: #660000; /* 深酒红 */
    --bs-table-bg: #660000;
    --bs-table-hover-bg: #5c7080;
    --bs-table-striped-color: #dff2d1;
    --bs-table-color-state: #e0e0e0;
    --bs-table-hover-color: #ffffff;
}

[data-bs-theme="dark"] .row-highlight-level1 {
    --bs-table-striped-bg: #004d23; /* 深森林绿 */
    --bs-table-bg: #004d23;
    --bs-table-hover-bg: #5c7080;
    --bs-table-striped-color: #effce8;
    --bs-table-color-state: #e0e0e0;
    --bs-table-hover-color: #ffffff;
}

[data-bs-theme="dark"] .row-highlight-level0 {
    --bs-table-hover-bg: #5c7080; /* Hover 颜色稍微调亮一点以适配暗色底 */
    --bs-table-hover-color: #ffffff;
}


.cell-Positive {
    --bs-table-striped-bg: #f1416c;
    --bs-table-bg: #f1416c;
}

.cell-Negative {
    --bs-table-striped-bg: #50cd89;
    --bs-table-bg: #50cd89;
}

.cell-Zero {
    --bs-table-striped-bg: #ccc0da;
    --bs-table-bg: #ccc0da;
}

.row-blue-level4 {
    --bs-table-striped-bg: #4874cb;
    --bs-table-bg: #4874cb;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-blue-level3 {
    --bs-table-striped-bg: #91aadf;
    --bs-table-bg: #91aadf;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-blue-level2 {
    --bs-table-striped-bg: #91aadf;
    --bs-table-bg: #91aadf;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-blue-level1 {
    --bs-table-striped-bg: #d9e1f4;
    --bs-table-bg: #d9e1f4;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-blue-level0 {
    --bs-table-hover-bg: #4f616f;
    --bs-table-hover-color: #ffffff;
}

.row-orange-level4 {
    --bs-table-striped-bg: #ee822f;
    --bs-table-bg: #ee822f;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-orange-level3 {
    --bs-table-striped-bg: #f4b382;
    --bs-table-bg: #f4b382;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-orange-level2 {
    --bs-table-striped-bg: #f9cbaa;
    --bs-table-bg: #f9cbaa;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-orange-level1 {
    --bs-table-striped-bg: #fce4d3;
    --bs-table-bg: #fce4d3;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-orange-level0 {
    --bs-table-hover-bg: #4f616f;
    --bs-table-hover-color: #ffffff;
}

.row-yellow-level4 {
    --bs-table-striped-bg: #f2ba02;
    --bs-table-bg: #f2ba02;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-yellow-level3 {
    --bs-table-striped-bg: #fedb61;
    --bs-table-bg: #fedb61;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-yellow-level2 {
    --bs-table-striped-bg: #fee796;
    --bs-table-bg: #fee796;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-yellow-level1 {
    --bs-table-striped-bg: #fff3ca;
    --bs-table-bg: #fff3ca;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-yellow-level0 {
    --bs-table-hover-bg: #4f616f;
    --bs-table-hover-color: #ffffff;
}

.row-green-level4 {
    --bs-table-striped-bg: #75bd42;
    --bs-table-bg: #75bd42;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-green-level3 {
    --bs-table-striped-bg: #add88d;
    --bs-table-bg: #add88d;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-green-level2 {
    --bs-table-striped-bg: #c9e4b4;
    --bs-table-bg: #c9e4b4;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-green-level1 {
    --bs-table-striped-bg: #e3f2d9;
    --bs-table-bg: #e3f2d9;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-green-level0 {
    --bs-table-hover-bg: #4f616f;
    --bs-table-hover-color: #ffffff;
}

.row-cyan-level4 {
    --bs-table-striped-bg: #30c0b4;
    --bs-table-bg: #30c0b4;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-cyan-level3 {
    --bs-table-striped-bg: #7cded7;
    --bs-table-bg: #7cded7;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-cyan-level2 {
    --bs-table-striped-bg: #a8eae4;
    --bs-table-bg: #a8eae4;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-cyan-level1 {
    --bs-table-striped-bg: #d2f4f2;
    --bs-table-bg: #d2f4f2;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-cyan-level0 {
    --bs-table-hover-bg: #4f616f;
    --bs-table-hover-color: #ffffff;
}

.row-red-level4 {
    --bs-table-striped-bg: #e54c5e;
    --bs-table-bg: #e54c5e;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-red-level3 {
    --bs-table-striped-bg: #ef949f;
    --bs-table-bg: #ef949f;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-red-level2 {
    --bs-table-striped-bg: #f4b7be;
    --bs-table-bg: #f4b7be;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-red-level1 {
    --bs-table-striped-bg: #fadade;
    --bs-table-bg: #fadade;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-red-level0 {
    --bs-table-hover-bg: #4f616f;
    --bs-table-hover-color: #ffffff;
}

@keyframes left {
    0% {
        transform: rotateZ(45deg);
    }

    50% {
        transform: rotateZ(0deg);
    }
}

@keyframes right {
    50% {
        transform: rotateZ(0deg);
    }

    100% {
        transform: rotateZ(-45deg);
    }
}

.table-dark-one thead th {
    color: #00E5FF !important;
}

.table-dark-two thead th {
    color: #FFD54F !important;
}

.table-light-one thead th {
    color: #1565C0 !important;
}

.table-light-two thead th {
    color: #D84315 !important;
}

/* 暗色/黑色主题专用 */
[data-bs-theme="dark"] .cell-Positive {
    --bs-table-striped-bg: #8a1d3a; /* 深玫红 */
    --bs-table-bg: #8a1d3a;
    --bs-table-color-state: #ffffff;
}

[data-bs-theme="dark"] .cell-Negative {
    --bs-table-striped-bg: #1c5236; /* 深翠绿 */
    --bs-table-bg: #1c5236;
    --bs-table-color-state: #ffffff;
}

[data-bs-theme="dark"] .cell-Zero {
    --bs-table-striped-bg: #403a4a; /* 深灰紫 */
    --bs-table-bg: #403a4a;
    --bs-table-color-state: #ffffff;
}

/* Blue 系列 - 蓝调 */
[data-bs-theme="dark"] .row-blue-level4 {
    --bs-table-striped-bg: #1a3a7a;
    --bs-table-bg: #1a3a7a;
    --bs-table-color-state: #e0e0e0;
}

[data-bs-theme="dark"] .row-blue-level3 {
    --bs-table-striped-bg: #152d5e;
    --bs-table-bg: #152d5e;
    --bs-table-color-state: #d0d0d0;
}

[data-bs-theme="dark"] .row-blue-level2 {
    --bs-table-striped-bg: #102245;
    --bs-table-bg: #102245;
    --bs-table-color-state: #c0c0c0;
}

[data-bs-theme="dark"] .row-blue-level1 {
    --bs-table-striped-bg: #0b162e;
    --bs-table-bg: #0b162e;
    --bs-table-color-state: #b0b0b0;
}

/* Orange 系列 - 橙调 */
[data-bs-theme="dark"] .row-orange-level4 {
    --bs-table-striped-bg: #7a3e14;
    --bs-table-bg: #7a3e14;
    --bs-table-color-state: #e0e0e0;
}

[data-bs-theme="dark"] .row-orange-level3 {
    --bs-table-striped-bg: #5e3010;
    --bs-table-bg: #5e3010;
    --bs-table-color-state: #d0d0d0;
}

[data-bs-theme="dark"] .row-orange-level2 {
    --bs-table-striped-bg: #45230c;
    --bs-table-bg: #45230c;
    --bs-table-color-state: #c0c0c0;
}

[data-bs-theme="dark"] .row-orange-level1 {
    --bs-table-striped-bg: #2e1708;
    --bs-table-bg: #2e1708;
    --bs-table-color-state: #b0b0b0;
}

/* Yellow 系列 - 黄/金调 */
[data-bs-theme="dark"] .row-yellow-level4 {
    --bs-table-striped-bg: #614a01;
    --bs-table-bg: #614a01;
    --bs-table-color-state: #e0e0e0;
}

[data-bs-theme="dark"] .row-yellow-level3 {
    --bs-table-striped-bg: #4a3801;
    --bs-table-bg: #4a3801;
    --bs-table-color-state: #d0d0d0;
}

[data-bs-theme="dark"] .row-yellow-level2 {
    --bs-table-striped-bg: #362901;
    --bs-table-bg: #362901;
    --bs-table-color-state: #c0c0c0;
}

[data-bs-theme="dark"] .row-yellow-level1 {
    --bs-table-striped-bg: #211a00;
    --bs-table-bg: #211a00;
    --bs-table-color-state: #b0b0b0;
}

/* Green 系列 - 绿调 */
[data-bs-theme="dark"] .row-green-level4 {
    --bs-table-striped-bg: #2d4a1a;
    --bs-table-bg: #2d4a1a;
    --bs-table-color-state: #e0e0e0;
}

[data-bs-theme="dark"] .row-green-level3 {
    --bs-table-striped-bg: #223813;
    --bs-table-bg: #223813;
    --bs-table-color-state: #d0d0d0;
}

[data-bs-theme="dark"] .row-green-level2 {
    --bs-table-striped-bg: #18260d;
    --bs-table-bg: #18260d;
    --bs-table-color-state: #c0c0c0;
}

[data-bs-theme="dark"] .row-green-level1 {
    --bs-table-striped-bg: #0d1407;
    --bs-table-bg: #0d1407;
    --bs-table-color-state: #b0b0b0;
}

/* Cyan 系列 - 青调 */
[data-bs-theme="dark"] .row-cyan-level4 {
    --bs-table-striped-bg: #12544f;
    --bs-table-bg: #12544f;
    --bs-table-color-state: #e0e0e0;
}

[data-bs-theme="dark"] .row-cyan-level3 {
    --bs-table-striped-bg: #0e423e;
    --bs-table-bg: #0e423e;
    --bs-table-color-state: #d0d0d0;
}

[data-bs-theme="dark"] .row-cyan-level2 {
    --bs-table-striped-bg: #0a302d;
    --bs-table-bg: #0a302d;
    --bs-table-color-state: #c0c0c0;
}

[data-bs-theme="dark"] .row-cyan-level1 {
    --bs-table-striped-bg: #061f1d;
    --bs-table-bg: #061f1d;
    --bs-table-color-state: #b0b0b0;
}

/* Red 系列 - 红调 */
[data-bs-theme="dark"] .row-red-level4 {
    --bs-table-striped-bg: #6e212a;
    --bs-table-bg: #6e212a;
    --bs-table-color-state: #e0e0e0;
}

[data-bs-theme="dark"] .row-red-level3 {
    --bs-table-striped-bg: #541920;
    --bs-table-bg: #541920;
    --bs-table-color-state: #d0d0d0;
}

[data-bs-theme="dark"] .row-red-level2 {
    --bs-table-striped-bg: #3d1217;
    --bs-table-bg: #3d1217;
    --bs-table-color-state: #c0c0c0;
}

[data-bs-theme="dark"] .row-red-level1 {
    --bs-table-striped-bg: #260b0e;
    --bs-table-bg: #260b0e;
    --bs-table-color-state: #b0b0b0;
}

/* 公共状态 */
[data-bs-theme="dark"] [class*="row-"][class*="-level"] {
    --bs-table-hover-bg: #444b55; /* 统一的悬停深灰色 */
    --bs-table-hover-color: #ffffff;
    --bs-table-striped-color: #ffffff;
}

.row-workflow-level100 {
    --bs-table-striped-bg: #00b050;
    --bs-table-bg: #00b050;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-workflow-level9 {
    --bs-table-striped-bg: #00b050;
    --bs-table-bg: #00b050;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-workflow-level8 {
    --bs-table-striped-bg: #30bbff;
    --bs-table-bg: #30bbff;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-workflow-level7 {
    --bs-table-striped-bg: #48c3ff;
    --bs-table-bg: #48c3ff;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-workflow-level6 {
    --bs-table-striped-bg: #60cbff;
    --bs-table-bg: #60cbff;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-workflow-level5 {
    --bs-table-striped-bg: #78d3ff;
    --bs-table-bg: #78d3ff;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-workflow-level4 {
    --bs-table-striped-bg: #90dbff;
    --bs-table-bg: #90dbff;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-workflow-level3 {
    --bs-table-striped-bg: #a8e3ff;
    --bs-table-bg: #a8e3ff;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-workflow-level2 {
    --bs-table-striped-bg: #c0ebff;
    --bs-table-bg: #c0ebff;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-workflow-level1 {
    --bs-table-striped-bg: #d8f3ff;
    --bs-table-bg: #d8f3ff;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}

.row-workflow-level0 {
    --bs-table-striped-bg: #f0fbff;
    --bs-table-bg: #f0fbff;
    --bs-table-hover-bg: #4f616f;
    --bs-table-striped-color: #e3f2d9;
    --bs-table-color-state: #000000;
    --bs-table-hover-color: #ffffff;
}
/* 暗色主题 - 工作流 (Workflow) 颜色组 */

/* Level 100 & 9: 通常代表完成状态 (绿色) */
[data-bs-theme="dark"] .row-workflow-level100,
[data-bs-theme="dark"] .row-workflow-level9 {
    --bs-table-striped-bg: #00632d; /* 深森林绿 */
    --bs-table-bg: #00632d;
    --bs-table-striped-color: #a6e37a;
    --bs-table-color-state: #ffffff;
}

/* Level 8: 顶层阶段 (最深的蓝色) */
[data-bs-theme="dark"] .row-workflow-level8 {
    --bs-table-striped-bg: #004c73;
    --bs-table-bg: #004c73;
    --bs-table-striped-color: #90dbff;
    --bs-table-color-state: #ffffff;
}

/* Level 7 */
[data-bs-theme="dark"] .row-workflow-level7 {
    --bs-table-striped-bg: #004266;
    --bs-table-bg: #004266;
    --bs-table-striped-color: #90dbff;
    --bs-table-color-state: #e0e0e0;
}

/* Level 6 */
[data-bs-theme="dark"] .row-workflow-level6 {
    --bs-table-striped-bg: #003859;
    --bs-table-bg: #003859;
    --bs-table-striped-color: #90dbff;
    --bs-table-color-state: #e0e0e0;
}

/* Level 5 */
[data-bs-theme="dark"] .row-workflow-level5 {
    --bs-table-striped-bg: #002e4d;
    --bs-table-bg: #002e4d;
    --bs-table-striped-color: #90dbff;
    --bs-table-color-state: #e0e0e0;
}

/* Level 4 */
[data-bs-theme="dark"] .row-workflow-level4 {
    --bs-table-striped-bg: #002440;
    --bs-table-bg: #002440;
    --bs-table-striped-color: #90dbff;
    --bs-table-color-state: #d0d0d0;
}

/* Level 3 */
[data-bs-theme="dark"] .row-workflow-level3 {
    --bs-table-striped-bg: #001a33;
    --bs-table-bg: #001a33;
    --bs-table-striped-color: #90dbff;
    --bs-table-color-state: #d0d0d0;
}

/* Level 2 */
[data-bs-theme="dark"] .row-workflow-level2 {
    --bs-table-striped-bg: #001026;
    --bs-table-bg: #001026;
    --bs-table-striped-color: #90dbff;
    --bs-table-color-state: #c0c0c0;
}

/* Level 1 */
[data-bs-theme="dark"] .row-workflow-level1 {
    --bs-table-striped-bg: #000a1a;
    --bs-table-bg: #000a1a;
    --bs-table-striped-color: #90dbff;
    --bs-table-color-state: #b0b0b0;
}

/* Level 0: 初始/待处理状态 (接近背景的极深色) */
[data-bs-theme="dark"] .row-workflow-level0 {
    --bs-table-striped-bg: #080c12;
    --bs-table-bg: #080c12;
    --bs-table-striped-color: #90dbff;
    --bs-table-color-state: #a0a0a0;
}

/* 统一的悬停和条纹文本设置 */
[data-bs-theme="dark"] [class*="row-workflow-level"] {
    --bs-table-hover-bg: #4f616f;
    --bs-table-hover-color: #ffffff;
}
