:root {
    --price-ceil: #ff00ff;
    --price-floor: #00e5ff;
    --price-ref: #ffd400;
    --price-up: #00ff3b;
    --price-down: #ff3333;
    --price-neutral: #e5e7eb;
    --price-white: #ffffff;
}

#home_price_board_module {
    --board-font-size: 12px;
    --board-cell-padding-y: 6px;
    --board-cell-padding-x: 6px;
    --board-head-font-size: 12px;
    --board-row-line-height: 1.1;
    --board-head-row-1-height: 34px;
    --board-head-row-2-height: 30px;
}

#home_price_board_module .home-board-spotlight-anchor {
    position: relative;
}

#home_price_board_module #home_price_board_spotlight_panel,
#home_price_board_module #home_price_board_collection_panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 30;
    width: min(420px, calc(100vw - 32px));
}

#home_price_board_module .home-board-shell {
    border: 1px solid rgba(71, 85, 105, 0.7);
    border-top: 1px solid rgba(251, 146, 60, 0.8);
    border-bottom: 1px solid rgba(251, 146, 60, 0.8);
}

#home_price_board_module .home-board-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    font-size: var(--board-font-size);
}

#home_price_board_module .home-board-table thead th {
    position: sticky;
    z-index: 5;
    background: #202126;
    vertical-align: middle;
    text-align: center;
    background-clip: padding-box;
}

#home_price_board_module .home-board-table thead th.home-board-sortable {
    position: sticky;
    cursor: pointer;
    padding-right: 18px;
    user-select: none;
}

#home_price_board_module .home-board-table thead th.home-board-sortable::after {
    content: '▲\A▼';
    white-space: pre;
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    font-size: 8px;
    line-height: 0.8;
    color: rgba(148, 163, 184, 0.42);
    opacity: 0;
    transition: opacity 0.16s ease, color 0.16s ease;
    pointer-events: none;
}

#home_price_board_module .home-board-table thead th.home-board-sortable:hover::after,
#home_price_board_module .home-board-table thead th.home-board-sortable.is-sort-active::after {
    opacity: 1;
}

#home_price_board_module .home-board-table thead th.home-board-sortable.is-sort-asc::after {
    content: '▲';
    white-space: nowrap;
    color: #f8fafc;
}

#home_price_board_module .home-board-table thead th.home-board-sortable.is-sort-desc::after {
    content: '▼';
    white-space: nowrap;
    color: #f8fafc;
}

#home_price_board_module .home-board-table thead tr:first-child th {
    top: 0;
    font-size: var(--board-head-font-size);
    color: #cbd5e1;
    height: var(--board-head-row-1-height);
    padding-top: 6px;
    padding-bottom: 6px;
    background: #202126;
}

#home_price_board_module .home-board-table thead tr:nth-child(2) th {
    top: var(--board-head-row-1-height);
    background: #25262c;
    color: #94a3b8;
    font-size: var(--board-head-font-size);
    height: var(--board-head-row-2-height);
    padding-top: 5px;
    padding-bottom: 5px;
}

#home_price_board_module .home-board-table th,
#home_price_board_module .home-board-table td {
    position: relative;
    border-right: 1px solid rgba(51, 65, 85, 0.55);
    border-bottom: 1px solid rgba(30, 41, 59, 0.8);
    padding: var(--board-cell-padding-y) var(--board-cell-padding-x);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: var(--board-row-line-height);
    font-variant-numeric: tabular-nums;
    transition: background-color 0.18s ease;
}

#home_price_board_module .home-board-symbol-label {
    display: inline-block;
    width: auto;
    max-width: none;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    line-height: var(--board-row-line-height);
}

#home_price_board_module .home-board-table span[data-board-field] {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

#home_price_board_module .home-board-table tbody tr:nth-child(odd) {
    background: #101113;
}

#home_price_board_module .home-board-table tbody tr:nth-child(even) {
    background: #282a31;
}

#home_price_board_module .home-board-table tbody tr:hover {
    background: #1f2937;
}

#home_price_board_module .home-board-match-header,
#home_price_board_module .home-board-match-subhead,
#home_price_board_module .home-board-table td[data-board-cell="matchedPrice"],
#home_price_board_module .home-board-table td[data-board-cell="matchedVolume"],
#home_price_board_module .home-board-table td[data-board-cell="matchedChangePercent"] {
    background: #252831;
}

#home_price_board_module .home-board-table tbody tr:hover td[data-board-cell="matchedPrice"],
#home_price_board_module .home-board-table tbody tr:hover td[data-board-cell="matchedVolume"],
#home_price_board_module .home-board-table tbody tr:hover td[data-board-cell="matchedChangePercent"] {
    background: #2d3440;
}

#home_price_board_module .home-board-table .sticky-symbol {
    position: sticky;
    left: 0;
    z-index: 4;
    background: inherit;
}

#home_price_board_module .home-board-table thead .sticky-symbol {
    z-index: 7;
    background: #202126;
}

#home_price_board_module .home-board-table thead tr:nth-child(2) .sticky-symbol {
    background: #25262c;
}

#home_price_board_module .home-board-toolbar-btn.active {
    border-color: rgba(251, 146, 60, 0.45);
    color: #fdba74;
    background: rgba(251, 146, 60, 0.08);
}

#home_price_board_module .sp-price-up {
    color: #34d399;
}

#home_price_board_module .sp-price-down {
    color: #fb7185;
}

#home_price_board_module .sp-price-ref {
    color: #facc15;
}

#home_price_board_module .sp-price-neutral {
    color: #94a3b8;
}

#home_price_board_module .sp-price-stale {
    color: #64748b;
    opacity: 0.72;
}

#home_price_board_module .sp-flash-up {
    background-color: #16b800 !important;
    transition: none !important;
}

#home_price_board_module .sp-flash-down {
    background-color: #e00000 !important;
    transition: none !important;
}

#home_price_board_module .sp-flash-active {
    background-color: #f28c22 !important;
    transition: none !important;
}

#home_price_board_module .sp-flash-up span[data-board-field],
#home_price_board_module .sp-flash-down span[data-board-field],
#home_price_board_module .sp-flash-active span[data-board-field] {
    color: #ffffff !important;
    font-weight: 700;
    opacity: 1 !important;
    text-shadow: none !important;
    filter: none !important;
}
