

.watchlist-table-container {
    width: 100%;
    min-height: 70vh;
    border-radius: var(--radius-lg);
    position: relative;
    overflow-y: auto;
    scroll-behavior: smooth;
    height: 70vh;
}

@media (width <= 992px) {
    .watchlist-table-container {
        height: 40vh;
        max-height: 60vh;
    }
}

@media (width <= 768px) {
    .watchlist-table-container {
        height: 50vh;
        max-height: 70vh;
    }
}

.watchlist-table {
    width:100%;
    overflow: visible;
    margin-top: var(--spacing-xl);
}

.watchlist-tabs {
    width: auto;
    max-width: 50%;
    left: 1%;
}

.watchlist-tabs a {
    font-family: var(--font-subheading);
    font-size: var(--font-size-medium);
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: var(--spacing-sm);
    cursor: pointer;
    height: 10vh;
    width: 15%;
    text-align: center;
    background-color: var(--bg-tertiary);
}

.watchlist-tabs a:hover {
    color: var(--primary-hover);
    border: var(--border-width) solid var(--border-hover);
}

#active-watchlist {
    background-color: var(--primary-color);
}

#assetSearch-list {
    font-family: var(--font-subheading);
    font-size: var(--font-size-medium);
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 50vh;
    overflow-y: auto;
    z-index: 3000;
    text-align: center;
    align-items: center;
}

#assetSearch-list li {
    padding: var(--spacing-sm);
    cursor: pointer;
    border: 0.5px solid var(--border-color);
}

#assetSearch-list li:hover {
    font-size: var(--font-size-medium);
    color: var(--primary-hover);
    border: var(--border-width) solid var(--border-hover);
}

.watchlist-searchbox {
    position: absolute;
    width: auto;
    max-width: 50%;
    right: 2%;
    margin-top: -1%;
}

#asset-search-id {
    background-color: white;
    color:black;
    width: auto;
    max-width: 80vw;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.stocks-change {
    font-size: var(--font-size-medium);
}

.watchlist-actions {
    width: 100%;
    top: 0;
    margin-top: 1%;
    position: relative;
    display: inline-block;
    flex-direction: row;
    justify-content: flex-start;
    gap: var(--spacing-md);

    /* overflow: visible; */
}

#action-icons {
    display: inline-flex;
    flex-direction: row;
    gap: var(--spacing-lg);
    margin-left: var(--spacing-md);
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-sm);
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-secondary);
}


#watchlist-info {
    display: inline-flex;
    flex-direction: column;
    margin-left: var(--spacing-lg);
    text-align: left;
}

#add-alert,
#edit-alert,
#add-notes,
#edit-notes,
#remove-symbols {
    color: var(--text-quaternary);
    display: inline-block;
    font-size: var(--font-size-large);
    cursor: text;
}

#remove-watchlist {
    color: red;
    display: inline-block;
    font-size: var(--font-size-large);
    cursor: pointer;
}

#edit-description,
#update-description,
#edit-name,
#update-name {
    font-size: var(--font-size-small);
    color: var(--primary-color);
    cursor: pointer;
    margin-left: var(--spacing-sm);
}

#watchlist-desc-hidden,
#watchlist-name-hidden {
    display: none;
    font-family: var(--font-subheading);
    font-size: var(--font-size-small);
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-sm);
    margin-left: var(--spacing-md);
    background-color: var(--bg-tertiary);
}

#csvFileInput {
    font-family: var(--font-subheading);
    font-size: var(--font-size-medium);
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-sm);
    cursor: pointer;
    background-color: var(--bg-secondary);
}

#csvFileInput::-webkit-file-upload-button {
    cursor: pointer;
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-lg);
    background-color: var(--primary-color);
    color: var(--button-text);
    font-size: var(--font-size-medium);
    transition: background-color 0.3s ease;
}

#csvFileInput::-webkit-file-upload-button:hover {
    background-color: var(--primary-hover);
}

/* alerts styles */
.set-alerts {
    height: auto;
    max-height: 80vh;
    width: auto;
    max-width: 80vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.alert-medium {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px;
}

.edit-table {
    overflow-y: auto;
}

.table-actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: var(--spacing-lg);
}

.notes-popup {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.notes-table {
    width: auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    overflow: auto;
}

.notesText {
    height: auto;
    width: 40vw;
}


.legend-list {
    width: auto;
    display: flex;
    flex-direction: column;
    position:fixed;
    padding: var(--spacing-md);
    bottom:var(--spacing-xl);
    right:var(--spacing-xl);
    max-width: 90%;
    transition: all 0.3s ease;
    z-index: 30000;
}

.legend-list h5 {
    text-decoration:none;
    color: var(--text-primary);
    font-size: var(--font-size-medium);
    font-weight:lighter;
}

.table-actions .material-symbols-outlined {
    font-size: var(--font-size-large);
    color: var(--primary-color);
    cursor: pointer;
}

.legend-list .material-symbols-outlined {
    font-size: var(--font-size-medium);
    margin-right: var(--spacing-lg);
    color: var(--text-primary);
}

.watchlist-table .material-symbols-outlined {
    font-size: var(--font-size-large);
    color: var(--primary-color);
    cursor: pointer;
}

.watchlist-table .material-symbols-outlined:hover {
    text-decoration: underline;
    text-decoration-color: var(--primary-color);
    transition: text-decoration 0.3s ease;
}
