#page-wrapper {
  padding-bottom: 0 !important;
}

.filter-dropdown-content {
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-dropdown sl-option {
  font-size: 12px;
}

.filter-button::part(base) {
  border-style: dotted;
  font-size: 11px;
}

.filter-dropdown-content sl-option::part(base) {
  font-size: 12px;
}

.filter-item-label {
  color: var(--sl-input-label-color);
  margin-bottom: var(--sl-spacing-3x-small);
  font-size: var(--sl-input-label-font-size-small);
}

#manage-watchlists-wrapper {
  display: block;
}

#watchlist-details-wrapper {
  display: none;
  width: 100%;
}

.watchlists-subheader {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

#watchlist-details-footer {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem;
  background-color: white;
  border-top: 1px solid lightgray;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
}

#watchlist-location-filter-draw-area-dialog::part(base) {
  z-index: 1001;
}

#watchlist-location-filter-draw-area-dialog::part(body) {
  padding: 0;
}

#watchlist-location-filter-draw-area-dialog::part(title), 
#watchlist-location-filter-draw-area-dialog::part(footer) {
  padding: 0.75rem;
}

sl-input[name="location"]::part(input) {
  padding-right: 55px;
}

sl-input[name="location"]::part(clear-button) {
  transform: translateX(-55px);
}

.set-filter-count-tag::part(base) {
  font-size: 10px !important;
  padding: 6px !important;
  height: 18px !important;
}

.filter-button.has-active-filters::part(base) {
  background-color: var(--sl-color-primary-50);
  border-color: var(--sl-color-primary-300);
  color: var(--sl-color-primary-700);
}

#upload-area-drop-area.dragover {
  background-color: var(--sl-color-primary-50);
}

#watchlist-location-filter-upload-area::part(body) {
  position: relative;
  padding: 0;
}

#watchlist-location-filter-upload-area::part(base) {
  z-index: 999;
}

#upload-area-loader {
  display: none;
  align-items: center;
  justify-content: center;
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(255,255,255,0.6);
  z-index: 2;
}

#upload-area-loader.show {
  display: flex;
}

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

#watchlist-details-table {
  min-width: 1035px;
}
#watchlist-newsroom-table {
  min-width: 900px;
}

.watchlist-table tbody tr:nth-child(odd) td {
  background-color: #f9f9f9;
}

.watchlist-table th {
  font-weight: normal;
  text-align: left;
  font-size: 11px;
  padding: 0.25rem 0.5rem;
  letter-spacing: -0.5px;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: white;
}

.watchlist-table-cell.sortable,
.watchlist-sort-option.sortable {
  padding-right: 24px;
  cursor: pointer;
}

.watchlist-table-cell.sortable::before,
.watchlist-sort-option.sortable::before {
  position: absolute;
  top: 11px;
  transform: translateY(-50%);
  display: block;
  opacity: 0.3;
  right: 1em;
  content: '↑';
  color: black;
  text-shadow: 0 0 black;
}

.watchlist-table-cell.sortable::after,
.watchlist-sort-option.sortable::after {
  position: absolute;
  top: 11px;
  transform: translateY(-50%);
  display: block;
  opacity: 0.3;
  right: 0.5em;
  content: '↓';
  color: black;
  text-shadow: 0 0 black;
}

.watchlist-table-cell.sort-asc::before,
.watchlist-sort-option.sort-asc::before {
  opacity: 1;
}

.watchlist-table-cell.sort-desc::after,
.watchlist-sort-option.sort-desc::after {
  opacity: 1;
}

.watchlist-table-cell.sortable:hover {
  text-decoration: underline;
}

.watchlist-table td {
  padding: 0.25rem 0.5rem;
  font-size: 11px;
  color: #3c3c3c;
}

.watchlist-table-cell .price-change-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: transparent;
  margin-top: 1px;
}

#watchlist-details-table-wrapper,
#watchlist-newsroom-table-wrapper {
  overflow: auto;
  margin-bottom: 6px;
  max-height: calc(100vh - 400px);
  margin-top: 10px;
  position: relative;
}

#manage-watchlists-list {
  overflow: auto;
  margin-bottom: 6px;
  max-height: calc(100vh - 300px);
  margin-top: 10px;
  position: relative;
}

#manage-watchlists-buttons-wrapper {
  display: flex;
  gap: 0.5rem;
}

#manage-watchlists-table tbody tr.hidden {
  display: none;
}

#watchlist-details-pagination-wrapper,
#watchlist-newsroom-pagination-wrapper {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  background-color: white;
  box-sizing: border-box;
  z-index: 2;
  border-top: 1px solid #d8dee4;
  font-size: 14px;
}

sl-tab::part(base) {
  padding: 0.5rem;
}

sl-tab-panel::part(base) {
  padding: 0;
}

#watchlist-details-table .watchlist-table-cell.move-positive {
  color: #090;
}
#watchlist-details-table .watchlist-table-cell.move-negative {
  color: #a00;
}

#watchlist-details-table-loader,
#watchlist-newsroom-table-loader {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: rgba(255,255,255,0.6);
  align-items: center;
  justify-content: center;
}

#watchlist-details-table-loader.show,
#watchlist-newsroom-table-loader.show {
  display: flex;
}

.table-skeleton-row-loader td {
  padding: 16px 0 !important;
}

.table-skeleton-row-loader td div::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150px;
  height: 100%;
  width: 150px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 100%
  );
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    left: -150px;
  }
  100% {
    left: 100%;
  }
}

#watchlist-details-title {
  display: flex;
  justify-content: space-between;
}

#manage-watchlists-table {
  font-size: 12px;
}

#manage-watchlists-table th {
  text-align: left;
  font-size: 11px;
  padding: 0.25rem 0.5rem;
  letter-spacing: -0.5px;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: white;
}

#manage-watchlists-table {
  width: 100%;
}

#manage-watchlists-table td {
  padding: 0.25rem 0.5rem;
  font-size: 11px;
  color: #3c3c3c;
}

#manage-watchlists-table tbody tr:nth-child(odd) td {
    background-color: #f9f9f9;
}

#manage-watchlists-table td sl-tag::part(base) {
  font-size: 11px;
}

#manage-watchlists-table td[data-target="send_emails"] {
  text-align: center;
}

#manage-watchlists-table tbody tr {
  cursor: pointer;
}

#manage-watchlists-table tbody tr:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15)
}

#manage-watchlists-wrapper {
  width: 100%;
}

.watchlist-details-table-row sl-icon-button::part(base) {
  padding: 0.25rem;
}

.autocomplete-content-box {
  /* padding: 0.25rem; */
  background-color: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  /* display: flex;
  flex-direction: column;
  gap: 0.25rem; */
}

.suggestion-wrapper {
  font-size: 14px;
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  background-color: white;
  padding: 0.25rem;
}

.suggestion-wrapper:hover {
  background-color: var(--sl-color-primary-50);
}

.suggestion-wrapper:hover sl-tag::part(base) {
  background-color: var(--sl-color-primary-50);
}

.watchlist-details-table-row sl-tag::part(base),
.watchlist-newsroom-table-row sl-tag::part(base) {
  font-size: 10px;
  padding: 0 0.25rem;
  height: 18px;
}

.watchlist-newsroom-table-row td[data-prop="title"] > div {
  display: -webkit-box;
  -webkit-line-clamp: 2;       /* Number of lines to show */
  line-clamp: 2;
  -webkit-box-orient: vertical;
  box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  width: fit-content;
}

#selected-companies-list {
  min-height: 80px;
  border: dotted var(--sl-input-border-width) #e0dede;
  border-radius: 0 0 var(--sl-input-border-radius-small) var(--sl-input-border-radius-small);
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  max-width: 300px;
  padding: 0.25rem;
  padding-bottom: 40px;
}

#selected-companies-list-empty {
  width: 100%;
  padding: 0.25rem;
  opacity: 0.6;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  text-align: center;
}

#edit-company-list-dialog::part(base) {
  z-index: 9999;
}

#edit-company-list-dialog::part(body) {
  padding-top: 0;
  padding-bottom: 0;
}

#edit-company-list-dialog .split-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

#all-companies-list, #edit-companies-selected-companies-list {
  min-height: 600px;
  border: 1px solid lightgray;
  border-radius: 2px;
  max-height: 600px;
  overflow-y: auto;
}

#all-companies-list {
  padding-bottom: 44px;
  border-radius: 0 0 2px 2px;
}

#edit-companies-selected-companies-list {
  min-height: 640px;
  max-height: 640px;
}

#edit-company-list-dialog .company-item {
  font-size: 14px;
  padding: 0.5rem;
}

#edit-company-list-dialog .company-item:nth-of-type(even) {
  background-color: var(--sl-color-neutral-50);
}

#edit-company-list-dialog .company-item:hover {
  background-color: var(--sl-color-primary-50);
}

#all-companies-pagination-wrapper {
  position: absolute;
  bottom: 1px;
  left: 1px;
  display: flex;
  justify-content: space-between;
  background-color: white;
  width: calc(100% - 2px);
  padding: 0.25rem;
  border-top: 1px solid #efeaea;
}

#all-companies-search-wrapper sl-input::part(base) {
  border-radius: 2px 2px 0 0;
  border-bottom: 0;
}

#remove-all-selected-companies-btn::part(label) {
  padding-left: 0.25rem;
}

.date-filter-option-container {
  padding:0.25rem;
  border:1px dotted lightgray; 
  border-radius: 2px; 
  margin-top: 2px;
  display: none;
}

.date-filter-option-container.active {
  display: block;
}

sl-radio-button::part(button):hover,
sl-radio-button::part(button--checked) {
  background-color: var(--sl-color-primary-100);
  color: #333;
}

sl-radio-button::part(label) {
  font-size: 11px;
  
}

.watchlist-newsroom-table-row {
  cursor: pointer;
}

.watchlist-newsroom-table-row:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

#watchlist-article-preview-sidebar::part(panel) {
  padding-top: 60px;
}

#watchlist-article-preview-content img {
  max-width: 100%;
}

#watchlist-article-preview-sidebar .news-article-title {
  font-size: 1.2em;
  font-weight: bold;
}

sl-select::part(listbox) {
  max-height: calc(var(--auto-size-available-height) - 60px);
}