/* =======================================================
   Market Center - Watchlist
   ======================================================= */

.mc-list {
    padding: 12px;
}

.mc-search-wrap {
    position: relative;
}

.mc-search-wrap > span {
    position: absolute;
    left: 11px;
    top: 9px;
    color: var(--btfp-text-muted);
    z-index: 1;
}

.mc-search {
    width: 100%;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.12);
    color: var(--btfp-text);
    border-radius: 9px;
    padding: 10px 10px 10px 32px;
    font-size: 12px;
    margin-bottom: 9px;
}

.mc-filter-row {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.mc-filter-row button {
    white-space: nowrap;
    padding: 6px 9px;
    font-size: 11px;
    border-radius: 999px;
}

.mc-filter-row button.active {
    background: var(--btfp-primary);
    border-color: var(--btfp-primary);
}

.mc-watch-meta {
    display: flex;
    justify-content: space-between;
    color: var(--btfp-text-muted);
    font-size: 11px;
    margin-bottom: 8px;
}

.mc-watch-columns.pro,
.mc-stock-row {
    display: grid;
    grid-template-columns: 1.15fr .85fr .75fr;
    gap: 8px;
    align-items: center;
}

.mc-watch-columns.pro {
    color: var(--btfp-text-muted);
    font-size: 11px;
    font-weight: 800;
    padding: 0 8px 7px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.mc-watchlist-scroll {
    max-height: 475px;
    overflow-y: auto;
    padding-right: 3px;
}

.mc-stock-row {
    width: 100%;
    min-height: 58px;
    text-align: left;
    padding: 9px 8px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    margin-top: 5px;
}

.mc-stock-row:hover {
    background: rgba(59,130,246,.10);
    border-color: rgba(96,165,250,.14);
}

.mc-stock-row.selected {
    background: linear-gradient(90deg, rgba(37,99,235,.28), rgba(14,165,233,.08));
    border-color: rgba(96,165,250,.22);
    box-shadow: inset 3px 0 0 var(--btfp-info);
}

.mc-stock-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.favorite-star {
    width: 24px;
    height: 24px;
    padding: 0 !important;
    border-radius: 7px !important;
    color: #64748b !important;
}

.favorite-star.active {
    color: #facc15 !important;
    border-color: rgba(250,204,21,.22) !important;
    background: rgba(250,204,21,.10) !important;
}

.mc-stock-main strong,
.mc-stock-price-cell strong {
    display: block;
    color: #fff;
    font-size: 13px;
}

.mc-stock-main small,
.mc-stock-price-cell small {
    display: block;
    color: #8fa6c2;
    font-size: 10px;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mc-stock-price-cell {
    text-align: right;
}

.stock-change-pill {
    justify-self: end;
    min-width: 76px;
    text-align: center;
    border-radius: 999px;
    padding: 5px 7px;
    font-size: 11px;
    font-weight: 800;
}

.stock-change-pill.up {
    color: #bbf7d0;
    background: rgba(34,197,94,.12);
    border: 1px solid rgba(34,197,94,.18);
}

.stock-change-pill.down {
    color: #fecaca;
    background: rgba(239,68,68,.12);
    border: 1px solid rgba(239,68,68,.18);
}

.mc-watchlist-pro {
    padding: 12px;
}
