#dsij-52-week-widget {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  color: #111827;
  line-height: 1.3em;
  font-size: 13px;
}

.dsij-52w-widget {
  background: #f8fafc;
  border-radius: 18px;
  padding: 10px;
  border: 1px solid #e5e7eb;
  margin: 10px 0;
  text-align: left;
}

.dsij-52w-widget .tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.dsij-52w-widget .tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 11px 3px;
  border-radius: 12px;
  background: #ffffff;
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #e5e7eb;
  border-bottom-width: 4px;
  transition: 0.2s ease;
}

.dsij-52w-widget .tab:hover {
  color: #0f172a;
  border-color: #bfdbfe;
}

.dsij-52w-widget .tab.active {
  color: #0b5ed7;
  background: #eff6ff;
  border-color: #93c5fd;

  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12);
}

.dsij-52w-widget .tab-icon {
  font-size: 18px;
  line-height: 1;
}

.dsij-52w-widget .content {
  width: 100%;
}

.dsij-52w-widget .stock-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dsij-52w-widget .stock-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-left: 3px solid #0b5ed7;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.08);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.dsij-52w-widget .stock-card:hover {
  transform: translateY(-2px);
  border-color: #bfdbfe;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.dsij-52w-widget .stock-main {
  display: flex;
  gap: 5px;
  padding: 7px;
  justify-content: space-between;
}

.dsij-52w-widget .stock-name {
  font-size: 14px;
  font-weight: 800;
  color: #0b5ed7;
  line-height: 1.25;
  margin-bottom: 3px;
}

.dsij-52w-widget .stock-meta {
  color: #111827;
  font-size: 14px;
  display: block;
}
.dsij-52w-widget .stock-price-value {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  margin-top: 2px;
  margin-bottom: 0px;
}
.dsij-52w-widget .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 7px;
  background: #eff6ff !important;
  color: #0b5ed7 !important;
  border: 1px solid #bfdbfe !important;
  font-weight: 700;
  font-size: 12px;
}

.dsij-52w-widget .badge.muted {
  color: #334155;
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

.dsij-52w-widget .stock-price {
  text-align: right;
  white-space: nowrap;
}
.dsij-52w-widget .stock-price span {
  font-size: 12px;
  color: #64748b;
}
.dsij-52w-widget .ltp {
  font-weight: 800;
  color: #111827;
  margin-bottom: 0px;
}

.dsij-52w-widget .positive {
  color: #078b3e;
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
}

.dsij-52w-widget .negative {
  color: #dc2626;
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
}

.dsij-52w-widget .stock-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}

.dsij-52w-widget .stock-stats div {
  padding: 5px 12px;
  border-right: 1px solid #e5e7eb;
}

.dsij-52w-widget .stock-stats div:last-child {
  border-right: none;
}

.dsij-52w-widget .stock-stats span {
  /* display: block; */
  font-size: 15px;
  color: #000;
}

.dsij-52w-widget .stock-stats strong {
  color: #111827;
  font-weight: normal !important;
}

.dsij-52w-widget .stock-stats strong.positive {
  color: #078b3e;
}

.dsij-52w-widget .stock-stats strong.negative {
  color: #dc2626;
}

.dsij-52w-widget .center {
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
}
.branding {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  color: #64748b;
  font-size: 12px;
}

.branding span {
  color: #0f172a !important;
  font-weight: 700;
}

.branding-logo {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.dsij-52w-widget .view-more-btn {
  margin: 20px auto 0;
  padding: 8px 30px;
  background-color: #0b5ed7;
  color: #fff;
  text-decoration: none;
  border-radius: 80px;
  font-size: 16px;
  text-align: center;
  display: block;
  text-align: center;
  width: fit-content;
}

/* Mobile */
@media (max-width: 520px) {
  .stock-card {
    border-radius: 10px;
  }
  .badge {
    min-height: 20px;
    font-size: 10px;
  }
  .dsij-52w-widget {
    padding: 10px;
    border-radius: 14px;
  }

  .tab {
    font-size: 13px;
    padding: 8px 6px;
  }

  .stock-main {
    grid-template-columns: 44px 1fr auto;
    gap: 9px;
    padding: 10px;
  }

  .stock-avatar {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }

  .stock-name {
    font-size: 15px;
  }

  .stock-meta {
    font-size: 12px;
  }

  .stock-stats div {
    padding: 8px 6px;
  }

  .stock-stats span {
    font-size: 11px;
  }
}

/* Very small screens */
@media (max-width: 380px) {
  .stock-stats div:nth-child(2) {
    border-right: none;
  }

  .stock-stats div:nth-child(1),
  .stock-stats div:nth-child(2) {
    border-bottom: 1px solid #e5e7eb;
  }
}
#dsij-52-week-widget .branding {
  font-size: 16px;
  text-align: center;
  margin: 5px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  align-self: center;
}

#dsij-52-week-widget .branding span {
  text-decoration: underline !important;
  color: #0072ff !important;
}
.branding-logo {
  border-radius: 2px;
  width: 20px;
  height: 20px;
  margin-top: 3px;
}
