

.market-dashboard-landing {
  background: var(--White);
}

.section-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-title__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(192, 177, 248, 0.45) 0%, rgba(150, 221, 204, 0.35) 100%);
  border: 1px solid rgba(208, 213, 221, 0.8);
}

.section-title__icon svg {
  width: 18px;
  height: 18px;
  color: var(--Grey-800);
}

.dashboard-card,
.benchmark-graph-box {
  position: relative;
  overflow: hidden;
}

.dashboard-card::before,
.benchmark-graph-box::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 4px;
  background: var(--card-accent, linear-gradient(90deg, var(--purple-dark), var(--teal-dark)));
  opacity: 0.95;
}

.dashboard-card {
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(249, 250, 251, 0.9) 100%);
  border-radius: 14px;
}

.dashboard-card h5 {
  background: var(--header-bg, rgba(242, 244, 247, 0.85));
  border: 1px solid rgba(208, 213, 221, 0.85);
  border-radius: 999px;
  padding: 8px 12px;
  gap: 10px;
}

.dashboard-card .card-title-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dashboard-card .mini-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dashboard-card .mini-icon svg {
  width: 16px;
  height: 16px;
  color: var(--icon-color, var(--teal-dark));
}

.dashboard-card .return-text {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(208, 213, 221, 0.7);
  margin-left: auto;
  font-size: 0.68rem;
}

.dashboard-card--momentum {
  --card-accent: linear-gradient(90deg, var(--teal-dark), #46DEFF);
  --icon-color: var(--teal-dark);
  --header-bg: rgba(229, 255, 251, 0.7);
}
.dashboard-card--value {
  --card-accent: linear-gradient(90deg, var(--purple-dark), var(--pink-dark));
  --icon-color: #7c65cf;
  --header-bg: rgba(239, 235, 255, 0.75);
}
.dashboard-card--quality {
  --card-accent: linear-gradient(90deg, var(--purple-medium), var(--purple-dark));
  --icon-color: #7c65cf;
  --header-bg: rgba(239, 235, 255, 0.75);
}
.dashboard-card--growth {
  --card-accent: linear-gradient(90deg, #EEAEEC, var(--purple-dark));
  --icon-color: var(--pink-dark);
  --header-bg: rgba(255, 235, 252, 0.75);
}
.dashboard-card--lowvol {
  --card-accent: linear-gradient(90deg, var(--Grey-700), var(--Grey-300));
  --icon-color: var(--Grey-700);
  --header-bg: rgba(242, 244, 247, 0.9);
}

.market-dashboard-section {
  padding-left: clamp(16px, 6vw, 120px) !important;
  padding-right: clamp(16px, 6vw, 120px) !important;
}

.parent-container {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 6vw, 120px);
  box-sizing: border-box;
}

@media (max-width: 1100px) {
  .parent-container {
    flex-direction: column;
    gap: 28px;
    align-items: stretch;
  }
  .second-child {
    width: 100%;
  }
}

.dashboard-card,
.all-market-dashboard .card,
.benchmark-graph-box,
.stock-table-wrapper {
  border: 1px solid rgba(208, 213, 221, 0.9);
}

.dashboard-card,
.all-market-dashboard .card {
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.dashboard-card:hover,
.all-market-dashboard .card:hover {
  transform: translateY(-2px);
  border-color: rgba(208, 213, 221, 1);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.10);
}

.market-overview-title,
.market-today {
  margin-left: 0 !important;
}

.sector-dashboards {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

#mySectorTab {
  display: block;
  max-height: 290px;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: content-box;
}

#mySectorTab::-webkit-scrollbar {
  width: 8px;
}

#mySectorTab::-webkit-scrollbar-track {
  background: #f1f1f1;
}

#mySectorTab::-webkit-scrollbar-thumb {
  background-color: #555;
  border-radius: 10px;
  border: 2px solid #f1f1f1;
}

.nav-item {
  display: block;
  margin-bottom: 10px;
}

.sectors-row {
  display: flex;
  justify-content: space-between;
}

.benchmark_graph .nav-tabs .nav-link.active::after,
.all-market-dashboard .nav-tabs .nav-link.active::after {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.all-market-dashboard .nav-tabs .nav-link {
  margin-right: 10px;
}

.all-market-dashboard .sectors-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 7px;
}

.all-market-dashboard .inner-div {
  margin-bottom: 30px;
}

.all-market-dashboard .card {
  padding: 25px;
  border-radius: 10px;
  background-color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  height: 100%;
  margin-bottom: 15px;
  max-width: 400px;
}

.all-market-dashboard .best-worst p {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.card-inner {
  display: flex;
  flex-direction: column;
  gap: 0px;
  margin-bottom: 30px;
}

.best-worst p {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.dashboard-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(388px, 1fr));
  gap: 20px;
}

.dashboard-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 12px;
}

.dashboard-card h5 {
  font-size: .75rem;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.67;
  letter-spacing: 0.15px;
  color: #202020;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

canvas {
  max-width: 100%;
}

.view-all {
  color: var(--teal-dark);
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  font-size: 0.625rem;
  text-transform: uppercase;
  text-align: right !important;
  margin-left: auto;
}

.view-all:hover {
  cursor: pointer;
}

.benchmark_graph .table-box {
  margin-top: 10px;
  height: 300px;
  overflow-y: hidden;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgb(49, 48, 48) transparent;
}

.benchmark_graph .table-box:hover {
  overflow-y: scroll;
}

.benchmark_graph .table-box::-webkit-scrollbar {
  width: 6px;
}

.benchmark_graph .table-box::-webkit-scrollbar-track {
  background: transparent;
}

.benchmark_graph .table-box::-webkit-scrollbar-thumb {
  background-color: #242424;
  border-radius: 50%;
}

.benchmark_graph .table-box::-webkit-scrollbar-thumb:hover {
  background-color: #242424;
}

.benchmark_graph table {
  width: 100%;
  border-collapse: collapse;
}

.benchmark_graph thead th {
  position: sticky;
  top: 0;
  background-color: #fff;
  z-index: 2;
  border-bottom: 1px solid #ccc;
}

.benchmark_graph .benchmark-graph-box {
  margin-bottom: 20px;
  height: 300px;
}

.benchmark_graph h4 {
  margin-bottom: 5px;
}

.market-today {
  
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.2;
  margin-top: 30px;
}

.flex-div {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 10px;
}

.view-all:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}

.return-text {
  font-size: xx-small;
}

.line-top-grey {
  margin-top: 0px;
  margin-bottom: 0px;
}

.space-padding {
  padding-top: 10px;
  padding-bottom: 10px;
}

@media (min-width: 1300px) and (max-width: 1460px) {
  .dashboard-section {
    grid-template-columns: repeat(2, minmax(320px, 1fr));
  }
}

@media (max-width: 1300px) {
  .dashboard-section {
    grid-template-columns: repeat(1, minmax(388px, 1fr));
  }
}

@media (max-width: 768px) {
  .dashboard-section {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .all-market-dashboard .nav-tabs {
    flex-direction: column;
    align-items: stretch;
  }

  .all-market-dashboard .sectors-row {
    display: block;
  }

  .all-market-dashboard .inner-div {
    width: 100%;
  }
}

@media (max-width: 500px) {
  .dashboard-section {
    grid-template-columns: 1fr !important;
  }

  .col-md-12 {
    display: block;
  }

  .flex-div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}

.parent-container {
  display: flex;
  justify-content: space-between;
  gap: clamp(16px, 4vw, 48px);
  width: 100%;
  max-width: 1240px;
  margin: 32px auto;
  padding: 0 clamp(16px, 6vw, 120px);
  box-sizing: border-box;
  align-items: flex-start;
}

.first-child {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 24px;
}

.market-overview {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.stock-actions {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.second-child {
  display: grid;
  gap: 20px;
  width: 58%;
  min-width: 0;
}

.benchmark-graph-box {
  width: 100%;
  margin: 0;
  border: 1px solid #D0D5DD;
}

.stock-actions-title,
.market-overview-title,
.stock-market-today-title,
.market-today {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  margin-top: 0;
}

.stock-actions-title {
  margin-top: 24px;
  margin-bottom: 1rem;
}

.stock-market-today-title {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.stock-tabs .nav-link {
  font-weight: 500;
  color: #7d7d7d;
  border: none;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
}

.stock-tabs .nav-link.active {
  color: #111;
  border-bottom: 3px solid #111;
  background: transparent;
}

.stock-table-wrapper {
  background-color: #fff;
  border-radius: 12px;
  margin-top: 1rem;
  border: 1px solid rgba(208, 213, 221, 1);
}

.stock-table-wrapper table {
  margin: 0;
  font-size: 0.95rem;
}

.stock-table-wrapper thead tr {
  border-bottom: 1px solid #eaeaea;
}

.stock-table-wrapper th {
  font-weight: 600;
  color: #333;
}

.stock-table-wrapper td {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  color: #333;
}

.stock-table-wrapper td:nth-child(3),
.stock-table-wrapper td:nth-child(4) {
  color: #e11d48;
  font-weight: 600;
}

.stock-table-wrapper tbody tr:hover {
  background-color: #fafafa;
  cursor: pointer;
}

.stock-table-wrapper table {
  border-radius: 0.5rem;
  overflow: hidden;
}

#marketTabs {
  display: flex;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.stock-tabs {
  display: flex;
  flex-wrap: nowrap;
  border-bottom: 1px solid #eaeaea;
}

.stock-tabs .nav-item {
  white-space: nowrap;
}

.stock-table-wrapper th {
  font-weight: 600;
  color: rgba(16, 24, 40, 1);
  font-size: 0.85rem;
}

thead th {
  color: #7d7d7d;
  font-weight: 500;
}

.stock-table-wrapper .table {
  display: block;
  max-height: 430px;
  overflow-y: auto;
}

.stock-table-wrapper thead,
.stock-table-wrapper tbody,
.stock-table-wrapper tr,
.stock-table-wrapper th,
.stock-table-wrapper td {
  width: 100%;
  table-layout: fixed;
}

.stock-table-wrapper thead {
  width: calc(100% - 1em);
  position: sticky;
  top: 0;
  background-color: rgba(242, 244, 247, 1);
  z-index: 2;
  color: rgba(16, 24, 40, 1);
}

.stock-table-wrapper .table {
  display: block;
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.stock-table-wrapper .table::-webkit-scrollbar {
  display: none;
}

.stock-table-wrapper .table {
  display: block;
  overflow-y: auto;
}

.stock-table-wrapper .table {
  -webkit-overflow-scrolling: touch;
}

.stock-table-wrapper th,
.stock-table-wrapper td {
  border-right: 1px solid #e5e7eb;
  padding: 0.75rem;
  text-align: left;
}

.stock-table-wrapper th:last-child,
.stock-table-wrapper td:last-child {
  border-right: none;
}

.stock-table-wrapper tbody tr {
  border-bottom: 1px solid #f0f0f0;
}

#market-tracker-heading-title {
  
  font-size: 24px;
  font-weight: 700;
  color: var(--Grey-900) !important;
}

#market-tracker-heading-description {
  
  font-size: 16px !important;
  font-weight: 400 !important;
  color: var(--Grey-900) !important;
}

#topgainervalue {
  white-space: nowrap !important;
  text-align: center !important;
}

.all-market-dashboard .btn-dark-wright:focus,
.all-market-dashboard .btn-dark-wright:active,
.other-trackers .btn-dark-wright:focus,
.other-trackers .btn-dark-wright:active {
  color: black;
  box-shadow: none;
}

#other-trackers {
  font-size: 36px;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.view-stastics-btn-postion {
  position: absolute;
  margin: auto;
  width: 90%;
  bottom: 10px;
}

.sector-card {
  padding: 20px;
  border-radius: 10px;
  background-color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  height: 100%;
  margin-bottom: 15px;
  max-width: 411px;
}

@media (max-width: 767px) {
  .market-tracker-heading-description {
    display: none !important;
  }

  #market-tracker-heading-title {
    font-size: 16px;
    font-weight: 600;
  }

  .market-dashboard-section img {
    width: 100px;
    height: auto;
    top: 100px;
    right: 30px;
  }

  .market-dashboard-section {
    padding: 20px 10px 10px 10px;
    margin-bottom: 0px;
  }

  .benchmark-div .benchmark_value {
    width: auto;
  }

  .align-items-start {
    padding-left: 10px;
    padding-right: 10px;
  }

  .dashboard-card {
    margin: 10px;
  }

  .benchmark-graph-box {
    padding: 10px 10px;
  }

  .all-market-dashboard {
    padding: 0px !important;
  }

  .market-today {
    margin-top: 3rem;
    margin-bottom: 1rem !important;
    font-size: 20px;
    font-weight: 600;
    margin-left: 20px !important;
  }

  .content-display-none {
    display: none;
  }
}

@media (min-width: 600px) and (max-width: 1024px) {
  .container,
  .container-fluid,
  .parent-container {
    padding-left: 1rem;
    padding-right: 1rem;
    overflow-x: hidden;
    width: 100% !important;
  }

  .parent-container {
    flex-direction: column;
    gap: 1rem;
  }

  .first-child,
  .second-child {
    width: 100% !important;
  }

  .second-child {
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
  }

  .dashboard-section {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem, 5rem;
  }

  .stock-tabs {
    white-space: nowrap;
  }

  .stock-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sector-dashboards {
    flex-direction: column;
    gap: 1rem;
  }

  .inner-div {
    width: 100%;
  }

  #mySectorTab {
    padding-right: 0 !important;
    max-width: 100%;
  }

  .guide-img {
    width: 170px !important;
  }

  .grey-img-2 {
    position: absolute;
    bottom: 0;
    right: 15px;
    border-radius: 16px;
    overflow: hidden;
    width: 20px;
  }
}

@media (max-width: 768px) {
  .parent-container {
    flex-direction: column;
    max-width: 100%;
  }

  .first-child,
  .second-child {
    width: 100% !important;
  }

  .second-child {
    grid-template-columns: 1fr;
  }

  .stock-actions-title,
  .market-overview-title,
  .stock-market-today-title {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 20px;
    font-weight: 600;
  }

  .stock-tabs {
    flex-direction: row;
    white-space: nowrap;
  }

  .stock-table-wrapper {
    overflow-x: auto;
  }

  .benchmark-graph-box {
    border-radius: 10px;
    background: var(--White, #FFF);
    height: 291px;
  }

  #mySectorTab {
    display: flex;
    flex-direction: row;
    overflow: unset;
  }
}
