/*
 * 观察宝项目 CSS 样式文件
 * 版本: 1.0.0
 * 描述: 观察宝项目的主要样式定义
 * 
 * 结构说明:
 * 1. CSS 变量定义 - 按功能分类的变量系统
 * 2. 基础样式 - 全局重置和基础设置
 * 3. 布局样式 - 页面布局相关样式
 * 4. 板块样式 - 板块相关样式
 * 5. 模态框样式 - 模态框相关样式
 * 6. 标签按钮样式 - 标签页按钮样式
 * 7. 表格样式 - 表格相关样式
 * 8. 指标行样式 - 指标行相关样式
 * 9. 响应式设计 - 不同设备的适配样式
 * 
 * 使用说明:
 * - 所有颜色、尺寸、间距等均使用 CSS 变量定义
 * - 样式按功能模块分组，便于维护
 * - 响应式设计支持平板和移动设备
 * - 避免使用 !important，优先通过选择器优先级控制样式
 */

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none
}

html { overflow: hidden; }
body {
    overflow: hidden;
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    margin: 0;
    padding: 0
}

/* 全局滚动条样式（3px 细滚动条） */
::-webkit-scrollbar {
    width: 3px;
    height: 3px;
    display: block;
    background: transparent
}
::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: var(--color-scrollbar, #555555)
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-scrollbar-hover, #ff9900)
}
::-webkit-scrollbar-track {
    background: var(--border-color, #333333)
}
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-scrollbar, #555555) var(--border-color, #333333)
}

/* 布局样式 */
#container {
    height: 100vh;
    display: flex;
    flex-direction: column
}

#toolbar {
    height: var(--layout-toolbar-height);
    padding: var(--spacing-xs) var(--spacing-base);
    display: flex;
    align-items: center;
    background-color: var(--color-bg-primary);
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    box-shadow: var(--shadow-sm)
}

#stocktable {
    flex: 1;
    overflow-x: auto;
    overflow-y: auto;
    padding: 0px;
    min-width: 0;
    white-space: nowrap;
    min-height: var(--layout-min-table-height);
    background-color: var(--color-bg-primary);
    z-index: 1
}

/* 板块样式 */

.plates-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin: 5px 0 0 0;
    padding: 3px 0;
    overflow-x: auto
}

.plate-cell {
    color: var(--text-plate);
    cursor: default;
    position: relative;
    text-align: left;
    display: inline-block;
    width: 100%
}

.table-count {
    margin-left: 5px
}

.tooltip {
    display: none;
    position: absolute;
    background-color: var(--bg-dark);
    border-radius: var(--radius-md);
    padding: var(--pad-md);
    z-index: 9999;
    width: 300px;
    min-width: var(--tooltip-min-w);
    max-width: var(--tooltip-max-w);
    box-shadow: var(--shadow-md);
    color: var(--text);
    font-size: var(--font-size);
    line-height: var(--line-height);
    word-wrap: break-word;
    white-space: normal;
    will-change: opacity, transform
}

.tooltip h4 {
    margin: 0;
    color: var(--text-tooltip-title);
    border-bottom: var(--border-thin) solid var(--border-light)
}

.tooltip p {
    margin: 0;
    word-wrap: break-word;
    line-height: var(--line-height)
}

.tooltip .plate-reason {
    margin: 0
}

.tooltip .ptip {
    padding: 10px;
    color: yellow
}

.tooltip .ptip .sr {
    text-align: justify
}

.tooltip .ptip .sr p {
    text-align: justify;
    margin: 0
}

.tooltip .ptip .sr hr {
    border: none;
    border-top: 1px solid #555;
    margin: 5px 0
}

.plate-checkbox {
    display: flex;
    align-items: center;
    margin: 0 2px
}

.plate-checkbox label {
    margin-left: 4px;
    font-size: 12px;
    cursor: default;
    color: var(--text-plate)
}



:root {
    /* 布局变量 */
    --layout-container-height: 100vh;
    --layout-toolbar-height: 25px;
    --layout-table-header-height: 24px;
    --layout-table-cell-height: 22px;
    --layout-indicator-height: 100px;
    --layout-min-table-height: 400px;
    
    /* 颜色变量 */
    --color-primary: #1f477a;
    --color-success: #4ecdc4;
    --color-danger: #FF4500;
    --color-warning: #ff9900;
    --color-bg-primary: #1e232d;
    --color-bg-dark: #1e232d;
    --color-bg-hover: #1f477a;
    --color-bg-panel: #0e1b2c;
    --color-bg-modal: rgba(0, 0, 0, 0.7);
    --color-text-primary: #dddddd;
    --color-text-muted: #1f477a;
    --color-text-plate: #01bcdd;
    --color-text-tooltip-title: #FFA500;
    --color-text-tertiary: #888888;
    --color-function-pink: #FF03CB;
    --color-function-red: #DE292E;
    --color-function-success: #006006;
    --color-function-green: #4ecdc4;
    --color-function-orange: #FFA500;
    --color-function-yellow: #FFFF00;
    --color-border-primary: #2d3846;
    --color-border-light: #555555;
    --color-scrollbar: #555;
    --color-shadow: rgba(0, 0, 0, 0.486);
    --color-state-hover: #1f477a;
    --color-state-selected: #1e3a5f;
    
    /* 尺寸变量 */
    --size-indicator-item-width: 100px;
    --size-indicator-column-min-width-2: 100px;
    --size-indicator-column-max-width-1: 300px;
    --size-indicator-column-width-2: 90px;
    --size-indicator-column-width-3: 59px;
    --size-indicator-column-width-other: 150px;
    --size-tooltip-width: 300px;
    --size-tooltip-min-width: 300px;
    --size-tooltip-max-width: 600px;
    --size-default-height: 25px;
    --size-indicator-min-height: 30px;
    
    /* 间距变量 */
    --spacing-base: 1px;
    --spacing-xl: 10px;
    --spacing-xs: 0;
    --spacing-sm: 2px;
    --spacing-md: 5px;
    --spacing-table-cell: 0px;
    --spacing-table-header: 0 1px;
    --spacing-right: 6px;
    --spacing-left: 6px;
    --spacing-name-col: 1px;
    
    /* 边框变量 */
    --border-radius-sm: 3px;
    --border-radius-md: 4px;
    --border-radius-lg: 12px;
    --border-width-thin: 1px;
    --border-width-thick: 2px;
    --border-style-solid: solid;
    --border-style-dashed: dashed;
    
    /* 字体变量 */
    --font-family: "Microsoft YaHei","微软雅黑","JetBrains Mono","Roboto Mono",Consolas,Monaco,"PingFang SC",monospace,sans-serif;
    --font-size-base: 12px;
    --font-size-sm: 12px;
    --font-size-xs: 12px;
    --font-size-lg: 12px;
    --font-size-xl: 12px;
    --font-line-height: 1.4;
    
    /* 过渡变量 */
    --transition-fast: 0.3s ease-out;
    --transition-base: all 0.3s ease-out;
    --transition-slow: 0.5s ease;
    --transition-all: all 0.2s ease;
    
    /* 阴影变量 */
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.3);
    
    /* 变换变量 */
    --transform-center-x: translateX(-50%);
    --transform-center-y: translateY(-50%);
    

    
    /* 快捷变量 */
    --bg-primary: var(--color-bg-primary);
    --bg-dark: var(--color-bg-dark);
    --bg-hover: var(--color-bg-hover);
    --shadow: var(--color-shadow);
    --row-hover: var(--color-state-hover);
    --row-selected: var(--color-state-selected);
    --border: var(--color-border-primary);
    --border-light: var(--color-border-light);
    --scrollbar: var(--color-scrollbar);
    --text: var(--color-text-primary);
    --text-muted: var(--color-text-muted);
    --text-plate: var(--color-text-plate);
    --text-tooltip-title: var(--color-text-tooltip-title);
    --text-tertiary: var(--color-text-tertiary);
    --text-light: var(--color-text-primary);
    --pink: var(--color-function-pink);
    --red: var(--color-function-red);
    --success: var(--color-function-success);
    --green: var(--color-function-green);
    --orange: var(--color-function-orange);
    --yellow: var(--color-function-yellow);
    --default-h: var(--size-default-height);
    --toolbar-h: var(--layout-toolbar-height);
    --table-header-h: var(--layout-table-header-height);
    --table-cell-h: var(--layout-table-cell-height);
    --indicator-h: var(--layout-indicator-height);
    --indicator-item-w: var(--size-indicator-item-width);
    --indicator-column-min-width-2: var(--size-indicator-column-min-width-2);
    --indicator-min-h: var(--size-indicator-min-height);
    --indicator-column-max-width-1: var(--size-indicator-column-max-width-1);
    --tooltip-w: var(--size-tooltip-width);
    --tooltip-min-w: var(--size-tooltip-min-width);
    --indicator-column-width-2: var(--size-indicator-column-width-2);
    --indicator-column-width-3: var(--size-indicator-column-width-3);
    --indicator-column-width-other: var(--size-indicator-column-width-other);
    --tooltip-max-w: var(--size-tooltip-max-width);
    --space: var(--spacing-base);
    --space-xl: var(--spacing-xl);
    --pad-xs: var(--spacing-xs);
    --pad-sm: var(--spacing-sm);
    --pad-md: var(--spacing-md);
    --pad-lg: 20px;
    --pad-table-cell: var(--spacing-table-cell);
    --pad-table-header: var(--spacing-table-header);
    --pad-right: var(--spacing-right);
    --pad-left: var(--spacing-left);
    --pad-name-col: var(--spacing-name-col);
    --radius-sm: var(--border-radius-sm);
    --radius-md: var(--border-radius-md);
    --radius-lg: var(--border-radius-lg);
    --border-thin: var(--border-width-thin);
    --border-thick: var(--border-width-thick);
    --border-solid: var(--border-style-solid);
    --border-dashed: var(--border-style-dashed);
    --font: var(--font-family);
    --font-size: var(--font-size-base);
    --line-height: var(--font-line-height);
    --transition: var(--transition-base)
}

/* 标签按钮样式 */
.tab-buttons {
    display: flex;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-left: var(--space-xl)
}

.no-scrollbar, .tab-buttons, #toolbar, .plates-row, #stocktable, .indicators-row {
    -ms-overflow-style: none;
    scrollbar-width: none
}

.no-scrollbar::-webkit-scrollbar, .tab-buttons::-webkit-scrollbar, #toolbar::-webkit-scrollbar, .plates-row::-webkit-scrollbar, #stocktable::-webkit-scrollbar, .indicators-row::-webkit-scrollbar {
    display: none
}

.plate-cell,
.plate-reason {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important
}

.plate-cell *, .plate-reason * {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important
}

@media (max-width:768px) {
    #toolbar {
        padding: var(--spacing-xs) var(--spacing-sm)
    }

    .date-controls {
        gap: 1px
    }

    input.date-picker {
        min-width: 100px;
        font-size: var(--font-size-sm)
    }

    .tab-buttons {
        margin-left: var(--spacing-base)
    }

    .tab-buttons button {
        padding: var(--spacing-sm) var(--spacing-sm);
        font-size: var(--font-size-sm);
        margin: 0 var(--spacing-sm)
    }

    .date-arrow {
        width: 12px;
        height: 12px;
        font-size: var(--font-size-xs)
    }

    #stocktable {
        min-height: 300px
    }

    .tablesorter-blue {
        font-size: 12px
    }

    .tablesorter-blue th {
        height: 20px;
        padding: 0 1px
    }

    .tablesorter-blue tbody tr td {
        height: 18px;
        padding: 0 2px
    }

    .tablesorter-blue .tablesorter-header {
        height: 20px;
        line-height: 20px;
        font-size: 12px
    }
}

@media (max-width:480px) {
    #toolbar {
        height: auto;
        min-height: var(--layout-toolbar-height);
        flex-wrap: wrap;
        padding: var(--spacing-sm);
        gap: var(--spacing-sm)
    }

    .date-controls {
        order: 1;
        flex: 1 1 100%;
        justify-content: center;
        margin-bottom: var(--spacing-sm)
    }

    .tab-buttons {
        order: 2;
        flex: 1 1 100%;
        margin-left: 0;
        justify-content: center
    }

    .nav-button.refresh {
        order: 3;
        flex: 1 1 100%;
        justify-content: center;
        margin-top: var(--spacing-sm)
    }

    #stocktable {
        min-height: 250px
    }

    .tablesorter-blue {
        font-size: 12px
    }

    .tablesorter-blue th {
        height: 18px
    }

    .tablesorter-blue tbody tr td {
        height: 20px;
        padding: 0 1px
    }

    .tablesorter-blue .tablesorter-header {
        height: 18px;
        line-height: 18px;
        font-size: 12px
    }
}

.tab-buttons button {
    background-color: transparent;
    color: var(--color-text-primary);
    border: 0px solid var(--color-text-primary);
    border-radius: var(--border-radius-sm);
    margin: 0 var(--spacing-base);
    padding: var(--spacing-sm) var(--spacing-md);
    cursor: default;
    user-select: none;
    transition: var(--transition-base);
    font-size: var(--font-size-base);
    will-change: background-color, color
}

.tab-buttons button:hover {
    background-color: transparent
}

.tab-buttons button.active {
    font-weight: normal
}

.tab-buttons button[data-type="limit_up"] {
    color: var(--color-text-primary);
    position: relative
}

.tab-buttons button:focus {
    outline: none;
    box-shadow: none
}

.tab-buttons button[data-type="limit_up"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: var(--transform-center-x);
    width: 2em;
    height: 1px;
    background-color: var(--red);
    transition: var(--transition-all)
}

.tab-buttons button[data-type="limit_up"].active {
    background-color: transparent;
    color: var(--red)
}

.tab-buttons button[data-type="limit_up"].active::after {
    display: block
}

.tab-buttons button[data-type="limit_down"] {
    color: var(--text);
    position: relative
}

.tab-buttons button[data-type="limit_down"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: var(--transform-center-x);
    width: 2em;
    height: 1px;
    background-color: #52ff52;
    transition: var(--transition-all)
}

.tab-buttons button[data-type="limit_down"].active {
    background-color: transparent;
    color: #52ff52
}

.tab-buttons button[data-type="limit_down"].active::after {
    display: block
}

.tab-buttons button[data-type="yesterday_limit_up"],
.tab-buttons button[data-type="yesterday_first_limit_up"],
.tab-buttons button[data-type="yesterday_limit_up_broken"] {
    color: var(--text);
    position: relative
}

.tab-buttons button[data-type="yesterday_limit_up"]::after,
.tab-buttons button[data-type="yesterday_first_limit_up"]::after,
.tab-buttons button[data-type="yesterday_limit_up_broken"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: var(--transform-center-x);
    width: 2em;
    height: 1px;
    background-color: var(--pink);
    transition: var(--transition-all)
}

.tab-buttons button[data-type="yesterday_limit_up"].active,
.tab-buttons button[data-type="yesterday_first_limit_up"].active,
.tab-buttons button[data-type="yesterday_limit_up_broken"].active {
    background-color: transparent;
    color: var(--pink);
    cursor: default
}

.tab-buttons button[data-type="yesterday_limit_up"].active::after,
.tab-buttons button[data-type="yesterday_first_limit_up"].active::after,
.tab-buttons button[data-type="yesterday_limit_up_broken"].active::after {
    display: block
}

.tab-buttons button[data-type="limit_up_broken"] {
    color: var(--text);
    position: relative
}

.tab-buttons button[data-type="limit_up_broken"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: var(--transform-center-x);
    width: 2em;
    height: 1px;
    background-color: var(--orange);
    transition: var(--transition-all)
}

.tab-buttons button[data-type="limit_up_broken"].active {
    background-color: transparent;
    color: var(--orange)
}

.tab-buttons button[data-type="limit_up_broken"].active::after {
    display: block
}

.tab-buttons button[data-type="one_word_limit_up"] {
    color: var(--text);
    position: relative
}

.tab-buttons button[data-type="one_word_limit_up"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: var(--transform-center-x);
    width: 2em;
    height: 1px;
    background-color: blue;
    transition: var(--transition-all)
}

.tab-buttons button[data-type="one_word_limit_up"].active {
    background-color: transparent;
    color: blue
}

.tab-buttons button[data-type="one_word_limit_up"].active::after {
    display: block
}

.tab-buttons button[data-type="first_limit_up"] {
    color: var(--text);
    position: relative
}

.tab-buttons button[data-type="first_limit_up"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: var(--transform-center-x);
    width: 2em;
    height: 1px;
    background-color: var(--yellow);
    transition: var(--transition-all)
}

.tab-buttons button[data-type="first_limit_up"].active {
    background-color: transparent;
    color: var(--yellow);
    cursor: default
}

.tab-buttons button[data-type="first_limit_up"].active::after {
    display: block
}

.tab-buttons button[data-type="limit_up_attempt"] {
    position: relative;
    padding-left: calc(var(--spacing-md) + 1px)
}

.tab-buttons button[data-type="limit_up_attempt"]::before {
    content: '';
    position: absolute;
    top: 15%;
    bottom: 15%;
    left: 0;
    width: 1px;
    background-color: var(--color-function-orange);
    transition: var(--transition-base)
}

.tab-buttons button[data-type="limit_up_attempt"].active {
    background-color: var(--color-function-orange);
    color: var(--color-text-primary)
}

.tab-buttons button[data-type="limit_up_attempt"]:active,
.tab-buttons button[data-type="limit_up_attempt"]:focus {
    background-color: var(--color-bg-dark);
    outline: none;
    box-shadow: none
}

.tab-buttons button[data-type="relay"] {
    position: relative;
    padding-left: calc(var(--spacing-md) + 1px)
}

.tab-buttons button[data-type="relay"]::before {
    content: '';
    position: absolute;
    top: 15%;
    bottom: 15%;
    left: 0;
    width: 1px;
    background-color: var(--color-function-pink);
    transition: var(--transition-base)
}

.tab-buttons button[data-type="relay"].active {
    background-color: var(--color-function-pink);
    color: var(--color-text-primary)
}

.tab-buttons button[data-type="relay"]:active,
.tab-buttons button[data-type="relay"]:focus {
    background-color: var(--color-bg-dark);
    outline: none;
    box-shadow: none
}

.tab-buttons button[data-type="noodle"] {
    position: relative;
    padding-left: calc(var(--spacing-md) + 1px)
}

.tab-buttons button[data-type="noodle"]::before {
    content: '';
    position: absolute;
    top: 15%;
    bottom: 15%;
    left: 0;
    width: 1px;
    background-color: var(--color-function-green);
    transition: var(--transition-base)
}

.tab-buttons button[data-type="noodle"].active {
    background-color: var(--color-function-green);
    color: var(--color-text-primary)
}

.tab-buttons button[data-type="noodle"]:active,
.tab-buttons button[data-type="noodle"]:focus {
    background-color: var(--color-bg-dark);
    outline: none;
    box-shadow: none
}

.tab-buttons button[data-type="innovation"] {
    color: var(--text);
    position: relative
}

.tab-buttons button[data-type="innovation"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: var(--transform-center-x);
    width: 2em;
    height: 1px;
    background-color: #8701e6;
    transition: var(--transition-all)
}

.tab-buttons button[data-type="innovation"].active {
    background-color: transparent;
    color: #8701e6
}

.tab-buttons button[data-type="innovation"].active::after {
    display: block
}

.tab-buttons button[data-type="super_stock"].active,
.tab-buttons button[data-type="nearly_new"].active,
.tab-buttons button[data-type="new_stock"].active {
    background-color: #2c6abd
}

input.date-picker {
    background-color: transparent;
    border: var(--border-thin) solid var(--border);
    border-radius: var(--radius-sm);
    padding: var(--pad-sm) var(--pad-sm);
    padding-right: 25px;
    color: var(--text);
    font-size: var(--font-size);
    position: relative;
    white-space: nowrap;
    width: 100px;
    text-indent: 0;
    text-align: left
}

.date-picker::-webkit-clear-button {
    display: none
}

.date-picker::-webkit-inner-spin-button {
    display: none
}

.date-picker::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: default
}

.date-picker::after {
    content: "";
    position: absolute;
    right: var(--pad-md);
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e0e0e0'%3e%3cpath d='M19 4h-1V2h-2v2H8V2H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zM5 8V6h14v2H5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    pointer-events: none
}

.date-controls {
    display: flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap
}

.date-arrow {
    cursor: default;
    font-size: var(--font-size-sm);
    color: #666;
    padding: var(--spacing-sm);
    background-color: var(--color-bg-primary);
    border-radius: var(--border-radius-sm);
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    user-select: none;
    will-change: background-color, color
}

.date-arrow:hover {
    background-color: var(--color-bg-dark);
    color: white
}

/* 表格样式 */
.tablesorter-blue {
    background-color: transparent;
    border: none;
    font-family: var(--font);
    font-size: var(--font-size);
    text-align: center;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed
}

.tablesorter-blue th {
    background-color: transparent;
    border: none;
    text-align: center;
    cursor: pointer;
    position: sticky;
    top: 0;
    z-index: 100;
    color: var(--text);
    padding: 0 1px;
    height: 24px;
    outline: none
}

.tablesorter-header-inner {
    text-align: center;
    padding-left: var(--pad-xs);
    padding-right: var(--pad-xs)
}

.plate-header-col .tablesorter-header-inner {
    text-align: left
}

.text-right-value {
    text-align: right;
    padding-right: var(--pad-md)
}

.left-padding {
    padding-left: var(--pad-md)
}

.name-column {
    padding-left: var(--pad-sm);
    padding-right: var(--pad-sm)
}

.tablesorter-blue thead {
    background-color: var(--color-bg-dark);
    color: #fff;
    box-shadow: none
}

.tablesorter-blue th,
.tablesorter-blue td {
    white-space: nowrap;
    overflow: hidden;
    max-width: none
}

.tablesorter-blue thead .tablesorter-header {
    background-color: var(--bg-header, #191d25);
    font-size: 12px;
    height: 20px;
    line-height: 20px;
    background-image: none;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    color: #fff;
    font-weight: 400;
    padding: 0 5px
}

.tablesorter-blue .tablesorter-header:hover {
    color: var(--color-function-orange)
}

.tablesorter-blue .headerSortUp,
.tablesorter-blue .headerSortDown {
    background-color: var(--color-bg-dark)
}

.sorted-asc::after {
    content: ' ▲';
    color: var(--color-function-orange);
    font-size: 10px
}

.sorted-desc::after {
    content: ' ▼';
    color: var(--color-function-orange);
    font-size: 10px
}

.tablesorter-blue .tablesorter-header.dragging {
    background-color: var(--color-success);
    opacity: 0.8;
    position: relative
}

.tablesorter-blue .tablesorter-header.drag-over {
    border-right: 2px solid var(--text)
}

/* 自定义排序（类似炸板窗口） */

.tablesorter-blue td.text-right,
.tablesorter-blue th.text-right {
    text-align: right
}

#datatable tbody tr.selected-row,
#datatable tbody tr.selected-row td {
    background-color: #0e1b2c !important;
    border-bottom: 1px solid #4a9eff !important
}

#datatable tbody tr:hover,
#datatable tbody tr:hover td {
    background-color: #1f477a !important
}

/* 没有数据时的td样式 */
.tablesorter-blue tbody tr td.no-data-cell {
    padding: 0 !important;
    height: 25px !important
}

.tablesorter-blue tbody tr td:first-child {
    color: var(--text-tertiary)
}

.relay-table-container {
    margin-bottom: var(--space-xl);
    overflow-x: auto;
    overflow-y: hidden
}

.relay-table {
    width: auto;
    table-layout: auto
}

.relay-table thead th {
    min-width: 80px;
    text-align: center;
    padding: var(--pad-md);
    border: 1px solid var(--border)
}

.relay-table tbody tr {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap
}

.relay-table tbody td {
    min-width: 80px;
    text-align: center;
    vertical-align: middle;
    padding: var(--pad-md);
    border: none
}

.stock-info {
    display: flex;
    flex-direction: row;
    align-items: center
}

.stock-name {
    font-weight: bold;
    margin-right: var(--space);
    text-align: left;
    flex: 1;
    min-width: 0
}

.stock-change {
    font-size: var(--font-size);
    text-align: right;
    white-space: nowrap;
    min-width: 30px
}

.relay-table td {
    width: var(--indicator-column-width-2);
    min-width: var(--indicator-column-width-2);
    max-width: var(--indicator-column-width-2);
    text-align: left
}

.relay-table tbody tr:hover {
    background-color: var(--bg-dark)
}

.relay-table tbody tr.selected-row {
    background-color: var(--bg-dark)
}

.relay-table .stock-name {
    font-weight: normal;
    font-size: 12px
}

.table-separator {
    height: 2px;
    background-color: var(--border-light);
    margin: var(--space-xl) 0
}

.table-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 0px;
    margin-left: var(--pad-md);
    padding: var(--pad-md) 0
}

.table-title {
    font-weight: bold;
    font-size: 12px;
    color: var(--text-plate)
}

/* 指标行样式 */
.indicators-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    margin: 0;
    padding: 0;
    border: none;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    width: 100%;
    max-width: 100%;
    max-height: 300px;
    transition: opacity 0.3s ease-out;
    position: relative;
    box-sizing: border-box;
    z-index: 1
}

@media (max-width:768px) {
    .indicators-row {
        max-height: 250px;
        flex-wrap: wrap
    }

    .indicator-column {
        height: 40px;
        margin-right: 10px;
        width: calc(50% - var(--space-xl) / 2);
        min-width: auto;
        margin-right: var(--space-xl) / 2;
        margin-bottom: var(--space-xl);
        flex-shrink: 0
    }

    .indicator-column:nth-child(1) {
        height: 60px
    }

    .indicator-column:nth-child(2n) {
        margin-right: 0
    }

    .indicator-item {
        min-width: 80px;
        margin-bottom: 10px
    }

    .indicator-item.indicator--heat,
    .indicator-item.indicator--broken-plate-ratio {
        min-width: 60px
    }

    .indicator-value {
        font-size: 12px
    }

    .indicator-name {
        font-size: 12px
    }

    .plates-row {
        padding: 2px 0
    }

    .plate-cell {
        font-size: 12px
    }

    .plate-checkbox label {
        font-size: 12px;
        margin-left: 2px
    }

    #toolbar {
        flex-wrap: wrap;
        height: auto;
        padding: var(--space) var(--pad-md)
    }

    .tab-buttons {
        width: 100%;
        margin-left: 0;
        margin-top: var(--space);
        order: 2
    }

    .tablesorter-blue {
        font-size: 12px
    }

    .tablesorter-blue th,
    .tablesorter-blue td {
        padding: 0 var(--pad-xs)
    }

    input.date-picker {
        font-size: 12px;
        padding: var(--pad-sm) var(--pad-md)
    }
}

@media (max-width:480px) {
    .indicators-row {
        max-height: 200px
    }

    .indicator-column {
        height: 35px;
        margin-right: 5px;
        width: 100%;
        margin-right: 0
    }

    .indicator-column:nth-child(1) {
        height: 50px
    }

    .indicator-item {
        min-width: 70px;
        margin-bottom: 5px
    }

    .indicator-item.indicator--heat,
    .indicator-item.indicator--broken-plate-ratio {
        min-width: 50px
    }

    .indicator-value {
        font-size: 12px
    }

    .indicator-name {
        font-size: 12px
    }

    .plates-row {
        padding: 1px 0
    }

    .plate-cell {
        font-size: 12px
    }

    .plate-checkbox label {
        font-size: 12px
    }

    .tablesorter-blue td {
        padding: 0 2px
    }

    .tab-buttons button {
        padding: 2px 4px;
        font-size: 12px;
        margin: 0 1px
    }
}

.indicators-row.hidden {
    max-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden
}

.plates-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

#exportPlateBtn {
    width: var(--default-h);
    height: var(--default-h);
    background-color: var(--bg-dark);
    color: var(--yellow);
    border: none;
    border-radius: var(--radius-sm);
    cursor: default;
    margin: 0 var(--space-xl) 0 var(--space);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size);
    flex-shrink: 0;
    flex-grow: 0;
    min-width: var(--default-h);
    max-width: var(--default-h);
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    flex-basis: var(--default-h);
    word-break: keep-all;
    white-space: nowrap;
    resize: none;
    background-clip: padding-box;
    outline: none
}

.indicator-column {
    display: flex;
    flex-direction: column;
    flex-shrink: 1;
    height: 50px;
    margin: 0 15px 0 0;
    border: none;
    box-sizing: border-box
}

.indicator-column:first-child {
    width: auto;
    display: flex;
    flex-direction: column;
    height: 75px;
    margin: 0;
    padding: 0;
    border: none;
    box-sizing: border-box;
    flex-shrink: 0
}

.indicator-column:first-child .indicator-row:nth-child(1),
.indicator-column:first-child .indicator-row:nth-child(2) {
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    padding-left: 0;
    margin-left: 0;
    min-height: 30px
}

.indicator-column:first-child .indicator-row:nth-child(3) {
    margin-top: 0
}

.indicator-column:first-child .indicator-row:nth-child(1) .indicator-item {
    width: auto;
    margin: 0 10px 0 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start
}

.indicator-column:first-child .indicator-row:nth-child(2) .indicator-item {
    width: auto;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start
}

.indicator-column:first-child .indicator-value {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 0;
    margin-left: 0;
    font-weight: normal;
    color: #ffff00;
    text-indent: 7px;
    font-size: 12px
}

.indicator-column:nth-child(2) {
    width: var(--indicator-column-width-2);
    min-width: var(--indicator-column-min-width-2);
    flex-shrink: 1;
    margin-right: 0
}

.indicator-column:nth-child(n+3) {
    width: var(--indicator-column-width-3);
    min-width: var(--indicator-column-width-3);
    max-width: 150px;
    margin-right: 3px
}

.indicator-column:nth-child(3) {
    position: relative
}

.indicator-column:nth-child(2) .indicator-row:nth-child(1),
.indicator-column:nth-child(2) .indicator-row:nth-child(2) {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 30px
}

.indicator-column:nth-child(2) .indicator-row:nth-child(3) {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 30px;
    cursor: default
}

.indicator-column:nth-child(3) .indicator-row {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 30px;
    padding-left: 5px
}

.indicator-column:nth-child(4) .indicator-row,
.indicator-column:nth-child(5) .indicator-row {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 30px
}

.indicator-column:nth-child(2) .indicator-item,
.indicator-column:nth-child(4) .indicator-item,
.indicator-column:nth-child(5) .indicator-item {
    align-items: center;
    text-align: center;
    width: 100px;
    max-width: 100px;
    min-width: 100px
}

.indicator-column:nth-child(3) .indicator-item {
    align-items: flex-start;
    text-align: left;
    width: 100%
}

#data6-cell:contains('-'),
#data8-cell:contains('-'),
#data9-cell:contains('-'),
#data10-cell:contains('-'),
#data11-cell:contains('-'),
#data12-cell:contains('-'),
#data18-cell:contains('-'),
#third-board-count-cell:contains('-'),
td:contains('-') {
    color: #1f477a
}

#data6-cell {
    color: var(--red)
}

.indicator-column:nth-child(5) .indicator-row {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 30px
}

.indicator-column:nth-child(n+3) .indicator-item {
    margin: 0;
    padding: 0
}

.indicator-column:nth-child(n+3) .indicator-value {
    margin: 0;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left
}

.indicator-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    flex-shrink: 0;
    height: 100%;
    margin-bottom: 15px;
    border: none
}

.indicator-item.indicator--heat,
.indicator-item.indicator--broken-plate-ratio {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    margin-right: 0
}

.indicator-column--first .indicator-item,
.indicator-column:nth-child(1) .indicator-item,
.indicator-column:nth-child(2) .indicator-item {
    margin: 0;
    padding: 0
}

.indicator-value {
    font-weight: normal;
    color: var(--text-light);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center
}

.indicator-item.indicator--heat .indicator-name {
    color: var(--text-tertiary)
}

.indicator-item.indicator--heat .indicator-value {
    color: var(--yellow);
    margin-left: 2px;
    width: 100%;
    text-align: left
}



.indicator-item.indicator--broken-plate-ratio .indicator-name {
    color: var(--text-muted)
}

.indicator-item.indicator--broken-plate-ratio .indicator-value {
    text-align: center;
    width: 100%
}

.indicator-value .indicator-name-separate {
    margin: 0;
    padding: 0;
    line-height: 1;
    color: #1f477a
}

.ratio-left {
    color: var(--red);
    font-size: 12px;
    padding: 0 0px
}

.ratio-separator {
    color: #1f477a;
    font-size: 12px;
    padding: 0
}

.ratio-right {
    color: #4ecdc4;
    font-size: 12px;
    padding: 0 2px
}

.indicator-column--first .indicator-name,
.indicator-column:nth-child(1) .indicator-name {
    font-size: 12px;
    color: var(--text-tertiary)
}

.indicator-value .percent-value,
.indicator-value .normal-value {
    color: var(--orange)
}

.indicator-value .percent-number {
    color: #dddddd
}

.indicator-value .percent-sign,
.percent-sign {
    color: #1f477a
}

.indicator-value .percent-negative {
    color: #006006
}

.indicator-value .percent-positive {
    color: #DE292E
}

.indicator-value .limit-up {
    color: #DE292E
}

.indicator-value .limit-down {
    color: #006006
}



.volume-row,
.volume-predict-row {
    margin-left: 0
}

.cat {
    color: var(--pink);
    font-size: 12px;
    font-weight: bold;
    padding: 3px 8px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    text-align: center;
    line-height: 1.2;
    display: inline-block;
    margin: 0 var(--pad-md) 0 0;
    white-space: nowrap;
    vertical-align: middle
}

.modal-content span.zhangfu {
    background-color: #DE292E
}

.modal-content span.white-link {
    color: #fff;
    text-decoration: none;
    line-height: 12px
}

.indicators-row,
.indicator-column,
.indicator-row,
.indicator-item,
.indicator-name,
.indicator-value,
.indicators-row *,
.indicator-column *,
.indicator-row *,
.indicator-item * {
    font-size: 12px;
    font-weight: normal
}

.indicator-column:nth-child(n+3) .indicator-item,
.indicator-column:nth-child(n+3) .indicator-name,
.indicator-column:nth-child(n+3) .indicator-value {
    display: flex;
    align-items: center
}

.indicator-column:nth-child(3) {
    margin-left: 30px
}

.indicator-column:nth-child(3) .indicator-item,
.indicator-column:nth-child(3) .indicator-name,
.indicator-column:nth-child(3) .indicator-value {
    text-align: right
}



.volume-label,
.volume-change-label {
    color: #888888;
    font-size: 12px
}

.volume-unit {
    color: #888888;
    font-size: 12px
}

.volume-value,
.volume-change-value {
    cursor: default;
    transition: var(--transition-base);
    display: inline-block;
    font-size: 12px
}

.indicator-item[data-name="���̱�"] .ratio-left,
.indicator-item[data-name="���̱�"] .ratio-separator,
.indicator-item[data-name="���̱�"] .ratio-right {
    font-size: 12px
}

.value-up {
    color: #DE292E
}

.value-down {
    color: #4ecdc4
}

.value-neutral {
    color: #000000
}

.indicators-row *,
.indicator-column *,
.indicator-row *,
.indicator-item *,
.indicator-value span,
.indicator-value div,
.indicator-value p,
.indicator-value b {
    font-size: 12px
}

div table,
div table td,
div table th {
    border: none;
    outline: none
}

div table {
    border-collapse: collapse;
    border-spacing: 0
}

.indicators-row table,
.indicators-row table td,
.indicators-row table th,
.indicator-column table,
.indicator-column table td,
.indicator-column table th,
.indicator-item table,
.indicator-item table td,
.indicator-item table th {
    border: none;
    outline: none;
    border-width: 0;
    border-style: none
}

.indicator-column:nth-child(1) .indicator-row:nth-child(1) {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: center;
    width: 100%
}

.indicator-column:nth-child(1) .indicator-row:nth-child(2) {
    display: flex;
    justify-content: flex-start;
    width: 100%
}

.indicator-column:nth-child(2) .indicator-row .indicator-item {
    margin: 0;
    padding: 0;
    border: none
}

.indicator-column:nth-child(2) .indicator-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0
}

.percent-sign {
    font-size: inherit;
    color: #888888
}

.indicator-value-positive {
    color: #DE292E
}

.indicator-value-negative {
    color: #4ecdc4
}

.indicator-value-neutral {
    color: #dddddd
}

.heat-value {
    color: yellow;
    font-weight: bold;
    margin-left: 5px
}

.volume-label {
    color: #1f477a
}

.volume-change-row {
    display: block
}

.volume-change-label {
    color: #1f477a
}

.predict-volume-label {
    color: #1f477a
}

.predict-volume-unit {
    color: #1f477a
}

.predict-volume-change {
    color: #1f477a
}

#volume-predict-value-cell span[data-tooltip] {
    position: relative
}

#volume-predict-value-cell span[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: var(--transform-center-x);
    background-color: #FFFF00;
    color: #000000;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 1000;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    margin-bottom: 5px
}

#volume-predict-value-cell span[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: var(--transform-center-x);
    border-width: 5px;
    border-style: solid;
    border-color: #FFFF00 transparent transparent transparent;
    margin-bottom: -5px;
    z-index: 1001
}

.indicator-padding-left {
    margin-left: -31px
}

.indicator-padding-right {
    margin-left: -4px
}

#toggle-plate-btn {
    background: transparent;
    color: #dddddd;
    border: none;
    padding: 0;
    border-radius: 0;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    margin-left: 5px
}

#toggle-plate-btn:active,
#toggle-plate-btn:focus {
    outline: none;
    box-shadow: none
}

.toolbar-ellipsis {
    margin-left: 5px;
    margin-right: 5px;
    color: var(--text);
    font-size: 12px;
    transform: translateY(-3px);
    cursor: pointer
}

.popup-menu {
    background: var(--panel-bg);
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center
}

.popup-menu-item {
    padding: 15px 30px;
    cursor: default;
    user-select: none;
    font-size: 12px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    width: 100%;
    text-align: center
}

.popup-menu-item:last-child {
    border-bottom: none
}

.popup-menu-item:hover {
    background-color: var(--bg-hover);
    color: var(--text)
}

.nav-button.refresh {
    background: none;
    border: none;
    cursor: default;
    font-size: 12px;
    color: var(--text);
    padding: 2px;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none
}

.nav-button.refresh:hover {
    color: yellow
}

.nav-button.refresh.auto-refresh {
    color: orange
}

.nav-button.refresh:not(.auto-refresh) {
    color: gray
}

.refresh-icon {
    display: inline-block
}

.nav-button.refresh.loading .refresh-icon,
#toggle-plate-btn.loading .refresh-icon {
    animation: spin 1s linear;
    animation-iteration-count: 1
}

.nav-button.refresh.auto-refresh .refresh-icon,
#toggle-plate-btn.auto-refresh .refresh-icon {
    color: #FFA500
}

.column-toggle-btn {
    display: inline-block;
    margin-right: 5px;
    color: #dddddd;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
    font-size: 12px;
    user-select: none;
    -webkit-tap-highlight-color: transparent
}

.column-toggle-btn:hover {
    color: var(--yellow);
    transform: scale(1.1)
}

.column-toggle-btn:active {
    transform: scale(0.95)
}

.column-toggle-btn.active {
    color: var(--yellow);
    transform: scale(1.05)
}

.panel {
    position: absolute;
    background: var(--panel-bg);
    border: 1px solid var(--border);
    border-radius: 5px;
    overflow: hidden;
    min-width: 200px;
    min-height: 100px;
    resize: both;
    box-shadow: 0 2px 8px var(--shadow)
}

.panel-collapsed {
    min-height: auto;
    height: auto
}

.panel-collapsed .panel-content {
    max-height: 0;
    padding: 0;
    overflow: hidden;
    min-height: 0
}

.panel-header {
    background: var(--panel-header);
    color: var(--panel-title);
    padding: 3px 0px 3px 8px;
    cursor: default;
    user-select: none;
    font-size: 12px;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative
}

.panel-header--green {
    color: var(--panel-title-green);
    background: var(--panel-header-green)
}

.panel-header--orange {
    color: var(--panel-title);
    background: var(--panel-header-orange)
}

.panel-header--orange-solid {
    background: transparent
}

.panel-header__left {
    display: flex;
    align-items: center;
    gap: 8px
}

.panel-header__refresh {
    padding: 1px 1px;
    font-size: 12px;
    background: transparent;
    border: none;
    color: #b9b9b9;
    border-radius: var(--radius-sm);
    cursor: default;
    transition: transform 0.3s ease;
    outline: none;
    margin-right: 10px
}

.panel-header__refresh:focus {
    outline: none
}

@keyframes spin {
    from {
        transform: rotate(0deg)
    }

    to {
        transform: rotate(360deg)
    }
}

.panel-header__refresh.refreshing {
    animation: spin 0.6s ease-in-out;
    color: var(--yellow)
}

[id$="-count"] {
    color: #ff0
}

.title-text {
    margin-left: -5px
}

.panel-content {
    padding: 3px;
    min-height: 50px;
    overflow: auto;
    font-size: 12px
}

.panel-content::-webkit-scrollbar {
    width: 5px;
    height: 5px
}

.resize-handle {
    position: absolute;
    background: transparent;
    z-index: 10
}

.resize-handle.top,
.resize-handle.bottom {
    width: 100%;
    height: 5px
}

.resize-handle.left,
.resize-handle.right {
    width: 5px;
    height: 100%
}

.resize-handle.top-left,
.resize-handle.top-right,
.resize-handle.bottom-left,
.resize-handle.bottom-right {
    width: 10px;
    height: 10px
}

.resize-handle.top {
    top: 0;
    left: 0;
    cursor: ns-resize
}

.resize-handle.bottom {
    bottom: 0;
    left: 0;
    cursor: ns-resize
}

.resize-handle.left {
    top: 0;
    left: 0;
    cursor: ew-resize
}

.resize-handle.right {
    top: 0;
    right: 0;
    cursor: ew-resize
}

.resize-handle.top-left {
    top: 0;
    left: 0;
    cursor: nwse-resize
}

.resize-handle.top-right {
    top: 0;
    right: 0;
    cursor: nesw-resize
}

.resize-handle.bottom-left {
    bottom: 0;
    left: 0;
    cursor: nesw-resize
}

.resize-handle.bottom-right {
    bottom: 0;
    right: 0;
    cursor: nwse-resize
}

.panel-content::-webkit-scrollbar-thumb {
    background: var(--scrollbar);
    border-radius: 3px
}

.panel-content::-webkit-scrollbar-track {
    background: transparent
}

.panel-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    color: var(--text)
}

#panel-tonghuabao {
    min-width: 100px;
    background-color: #0e1b2c;
    border-color: #888888
}

#panel-tonghuabao .panel-content {
    background-color: #0e1b2c;
    white-space: nowrap;
    overflow-x: auto
}

#panel-tonghuabao .panel-content table {
    background-color: #0e1b2c;
    width: auto
}

#stocktable::-webkit-scrollbar {
    height: 5px
}

#stocktable::-webkit-scrollbar-track {
    background: var(--bg-dark)
}

#stocktable::-webkit-scrollbar-thumb {
    background: var(--scrollbar);
    border-radius: 10px
}

#stocktable::-webkit-scrollbar-thumb:hover {
    background: #01bcdd
}

#panel-tonghuabao .panel-content table th,
#panel-tonghuabao .panel-content table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 3px 8px
}

#panel-limit-up-attempt {
    min-width: 100px;
    background-color: #0e1b2c;
    border-color: #888888
}

#panel-limit-up-attempt .panel-content {
    background-color: #0e1b2c;
    white-space: nowrap;
    overflow-x: auto
}

#panel-limit-up-attempt .panel-content table {
    background-color: #0e1b2c
}

#panel-limit-up-attempt .panel-header {
    background-color: transparent
}

#panel-limit-up-attempt .title-text {
    color: var(--orange)
}

#panel-limit-up-attempt .panel-content table th,
#panel-limit-up-attempt .panel-content table td {
    white-space: nowrap;
    border-bottom: none;
    padding: 0 5px 0 5px;
    height: var(--table-cell-h)
}

#panel-limit-up-attempt .panel-content table {
    table-layout: auto;
    width: auto
}

#panel-relay {
    min-width: 100px;
    background-color: #0e1b2c;
    border-color: #888888
}

#panel-relay .panel-content {
    background-color: #0e1b2c;
    white-space: nowrap;
    overflow-x: auto
}

#panel-relay .panel-content table {
    background-color: #0e1b2c
}

#panel-relay .panel-header {
    background-color: #0066cc
}

#panel-relay .title-text {
    color: var(--orange)
}

#panel-relay .panel-content table th,
#panel-relay .panel-content table td {
    white-space: nowrap;
    border-bottom: none;
    padding: 0 5px 0 5px;
    height: var(--table-cell-h)
}

#panel-relay .panel-content table {
    table-layout: fixed;
    width: 100%
}

#panel-noodle {
    min-width: 100px;
    background-color: #0e1b2c;
    border-color: transparent
}

#panel-noodle .panel-content {
    background-color: #0e1b2c;
    white-space: nowrap;
    overflow-x: auto
}

#panel-noodle .panel-content table {
    background-color: #0e1b2c;
    table-layout: auto;
    width: auto
}

#panel-noodle .panel-header {
    background-color: #0066cc
}

#panel-noodle {
    border-color: #888888
}

#panel-noodle .title-text {
    color: var(--green)
}

#panel-noodle .panel-content table th,
#panel-noodle .panel-content table td {
    white-space: nowrap;
    border-bottom: none;
    padding: 0 5px 0 5px;
    height: var(--table-cell-h)
}

#panel-noodle .panel-content table td:nth-child(5) {
    background-color: var(--success)
}

#panel-noodle .panel-content table td:not(:nth-child(3)):not(:nth-child(5)) {
    background-color: transparent
}

.panel-content th,
.panel-content td {
    padding: 3px 5px;
    text-align: center;
    border-bottom: 1px solid var(--border-light)
}

.panel-content th {
    background-color: transparent;
    cursor: default;
    font-weight: normal
}

.panel-content tr:hover {
    background-color: var(--row-hover)
}
