/* ========== 超级工具条样式（浅灰背景 + 蓝色筛选 + 红色预警） ========== */
#superToolbar {
    display: none;
    background: #f5f7f9;
    border: 1px solid #d1d9e0;
    border-radius: 8px;
    padding: 6px 8px;
    margin: 8px 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* 第一行控件容器：水平居中 */
.super-toolbar-controls {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    padding-bottom: 4px;
}

/* 第二行状态栏：居中 */
.super-toolbar-status {
    text-align: center;
    font-size: 11px;
    color: #4a5b6e;
    padding: 2px 4px;
    white-space: nowrap;
    margin-top: 4px;
    border-top: 1px solid #dce3ea;
}

/* 默认工具组（蓝色调） */
.toolbar-group {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #ffffff;
    padding: 3px 6px;
    border-radius: 5px;
    border: 1px solid #93c5fd;
    flex-shrink: 0;
    white-space: nowrap;
}
.toolbar-group label {
    font-size: 11px;
    font-weight: 600;
    margin-right: 2px;
    white-space: nowrap;
    color: #1e40af;
}
.toolbar-group select,
.toolbar-group input[type="text"],
.toolbar-group input[type="number"] {
    padding: 2px 4px;
    border: 1px solid #93c5fd;
    border-radius: 3px;
    font-size: 11px;
    height: 20px;
    line-height: 1.2;
    background: #eff6ff;
}
.toolbar-group select {
    width: auto;
    max-width: 90px;
}
.toolbar-group input[type="text"] {
    width: 70px;
}
.toolbar-group input[type="number"] {
    width: 45px;
}
.toolbar-group button {
    padding: 1px 6px;
    font-size: 11px;
    height: 20px;
    line-height: 1;
    border-radius: 3px;
    white-space: nowrap;
    border: 1px solid #93c5fd;
    background: #bfdbfe;
    cursor: pointer;
    color: #1e3a8a;
}
.toolbar-group button:hover {
    background: #93c5fd;
}
.toolbar-group button.active {
    background: #60a5fa;
    border-color: #3b82f6;
}

/* 排序按钮 */
.sort-buttons-group {
    display: flex;
    gap: 4px;
}
.store-select {
    width: 70px;
    height: 20px;
    padding: 1px 2px;
    font-size: 11px;
    border: 1px solid #93c5fd;
    border-radius: 3px;
    background: white;
}
.sort-btn {
    padding: 1px 8px;
    font-size: 11px;
    height: 20px;
    line-height: 1;
    border-radius: 3px;
    border: 1px solid #93c5fd;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 600;
}
.sort-btn.sort-asc {
    background: #bfdbfe;
    border-color: #3b82f6;
}
.sort-btn.sort-desc {
    background: #fee2e2;
    border-color: #ef4444;
}
.sort-btn.active {
    box-shadow: 0 0 0 2px rgba(59,130,246,0.3);
}

/* 红色预警模块 */
.toolbar-group.warning-group {
    background: #ffffff;
    border: 1px solid #fca5a5;
}
.toolbar-group.warning-group label {
    color: #b91c1c;
}
.toolbar-group.warning-group select {
    border-color: #fca5a5;
    background: #fef2f2;
}
.toolbar-group.warning-group button {
    border-color: #fca5a5;
    background: #fee2e2;
    color: #991b1b;
}
.toolbar-group.warning-group button:hover {
    background: #fecaca;
}

/* 预警按钮（保留原有语义色，边框和文字统一红色调） */
.warning-btn {
    padding: 1px 8px;
    font-size: 11px;
    height: 20px;
    line-height: 1;
    border-radius: 3px;
    border: 1px solid #fca5a5;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 600;
}
.warning-btn.btn-warning-all {
    background: #fee2e2;
    border-color: #f87171;
    color: #991b1b;
}
.warning-btn.btn-warning-yellow {
    background: #fef08a;
    border-color: #eab308;
    color: #713f12;
}
.warning-btn.btn-warning-red {
    background: #fecaca;
    border-color: #ef4444;
    color: #991b1b;
}
.warning-btn.active {
    box-shadow: 0 0 0 2px rgba(239,68,68,0.25);
}

#btnToggleSuperToolbar.active {
    background: #1a252f !important;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.3);
}

/* 移动端：允许换行，左对齐 */
@media (max-width: 768px) {
    .super-toolbar-controls {
        flex-wrap: wrap;
        justify-content: flex-start;
        overflow-x: visible;
    }
    .toolbar-group {
        width: 100%;
    }
}