.page-content {
    margin-top: 24px;
}

.whole-stocks {
    margin: 40px auto 80px;
    width: 1080px;
    padding: 0 20px;
}

.whole-stocks__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-grayscale-grey100, #272727);
    margin: 0 0 24px;
}

/* ── Search input ── */
.input-element {
    display: flex;
    align-items: center;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 0 16px;
    margin-bottom: 24px;
    transition: border-color 0.15s;
}

.input-element:focus-within {
    border-color: #272727;
}

.input-element > div {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 0;
    display: flex;
    align-items: center;
}

.grid-input {
    width: 100%;
    margin-left: 8px;
    font-size: 15px;
    border: none;
    outline: none;
    background: transparent;
}

#search-delete {
    cursor: pointer;
}

#search-delete.none {
    display: none;
}

/* ── Stock table (mirrors main page) ── */
#grid-wrapper {
    min-height: 200px;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    border-bottom: 1px solid #ededed;
}

#grid-wrapper::-webkit-scrollbar {
    width: 8px;
}

#grid-wrapper::-webkit-scrollbar-thumb {
    background: #d6d6d6;
    border-radius: 4px;
}

#grid-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.stock-loading,
.stock-empty {
    text-align: center;
    color: #999;
    padding: 60px 0;
    font-size: 14px;
}

.stock-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.stock-table thead th {
    padding: 12px;
    font-size: 13px;
    font-weight: normal;
    color: #9f9f9f;
    border-bottom: 1px solid #ededed;
    text-align: right;
    white-space: nowrap;
    user-select: none;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
}

.stock-table thead th.col-name {
    text-align: left;
    width: 280px;
}

.stock-table thead th.sortable {
    cursor: pointer;
    transition: color 0.15s;
}

.stock-table thead th.sortable:hover {
    color: #272727;
}

.stock-table thead th.sorted {
    color: #272727;
    font-weight: 600;
}

.stock-table .sort-arrow {
    display: inline-block;
    margin-left: 4px;
    font-size: 10px;
    vertical-align: middle;
}

.stock-table tbody tr {
    height: 64px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background-color 0.15s;
}

.stock-table tbody tr:hover {
    background: #fafafa;
}

.stock-table tbody td {
    padding: 0 12px;
    font-size: 15px;
    font-weight: bold;
    color: var(--color-grayscale-grey100, #272727);
    text-align: right;
    vertical-align: middle;
}

.stock-table tbody td.col-name {
    text-align: left;
}

.stock-table tbody td.col-name a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.stock-table .name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stock-table .name-cell img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e1e1e1;
    object-fit: cover;
    flex-shrink: 0;
    background: #fff;
}

.stock-table .name-cell span {
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stock-table .no-price {
    color: #ababab;
    font-weight: normal;
}

.stock-table .up { color: #fa372a; }
.stock-table .down { color: #2f79fa; }

.stock-table td.col-adp.up::before,
.stock-table td.col-pct.up::before { content: "+"; }

.stock-table td.col-adp.down::before,
.stock-table td.col-pct.down::before { content: "-"; }
