

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

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

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(208, 213, 221, 0.85);
  color: var(--Grey-700);
  font-family: var(--font-family-base);
  font-weight: 600;
  font-size: 13px;
}

.hero-badge img {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-actions .btn {
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
}

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

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

.all-market-dashboard .card {
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
  border: 1px solid rgba(208, 213, 221, 0.9);
  position: relative;
  overflow: hidden;
}

.all-market-dashboard .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  /* Use legacy (underscore) tokens with dashed fallbacks. */
  background: linear-gradient(
    90deg,
    var(--pink_dark, var(--pink-dark)),
    var(--purple_dark, var(--purple-dark)),
    var(--teal_dark, var(--teal-dark))
  );
  opacity: 0.85;
}

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

#sectorList .sector-card-container,
#sectorList .inner-div,
#mfSectorList .sector-card-container,
#mfSectorList .inner-div {
  --card-bg: #ffffff;
  --card-accent-1: var(--purple_dark, var(--purple-dark));
  --card-accent-2: var(--pink_dark, var(--pink-dark));
}

#sectorList .sector-card-container:nth-child(4n + 1),
#sectorList .inner-div:nth-child(4n + 1),
#mfSectorList .sector-card-container:nth-child(4n + 1),
#mfSectorList .inner-div:nth-child(4n + 1) { --card-bg: var(--purple_light, var(--purple-light)); --card-accent-1: var(--purple_dark, var(--purple-dark)); --card-accent-2: var(--pink_dark, var(--pink-dark)); }
#sectorList .sector-card-container:nth-child(4n + 2),
#sectorList .inner-div:nth-child(4n + 2),
#mfSectorList .sector-card-container:nth-child(4n + 2),
#mfSectorList .inner-div:nth-child(4n + 2) { --card-bg: var(--teal_light, var(--teal-light)); --card-accent-1: var(--teal_dark, var(--teal-dark)); --card-accent-2: var(--purple_dark, var(--purple-dark)); }
#sectorList .sector-card-container:nth-child(4n + 3),
#sectorList .inner-div:nth-child(4n + 3),
#mfSectorList .sector-card-container:nth-child(4n + 3),
#mfSectorList .inner-div:nth-child(4n + 3) { --card-bg: var(--pink_light, var(--pink-light)); --card-accent-1: var(--pink_dark, var(--pink-dark)); --card-accent-2: var(--purple_dark, var(--purple-dark)); }
#sectorList .sector-card-container:nth-child(4n + 4),
#sectorList .inner-div:nth-child(4n + 4),
#mfSectorList .sector-card-container:nth-child(4n + 4),
#mfSectorList .inner-div:nth-child(4n + 4) { --card-bg: var(--Grey-50); --card-accent-1: var(--Grey-700); --card-accent-2: var(--purple_dark, var(--purple-dark)); }

#sectorList .sector-card,
#mfSectorList .sector-card {
  background: linear-gradient(
    180deg,
    var(--card-bg, var(--purple_light, var(--purple-light))) 0%,
    #ffffff 65%
  );
  border-color: rgba(208, 213, 221, 0.85);
  overflow: hidden;
}

#sectorList .sector-card::before,
#mfSectorList .sector-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--card-accent-1), var(--card-accent-2));
  opacity: 0.95;
}

#sectorList .sector-view-statistics-btn,
#mfSectorList .sector-view-statistics-btn {
  border: 0;
  color: #fff;

  background: var(--card-accent-1, var(--purple_dark, var(--purple-dark)));
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.12);
}

#sectorList .sector-view-statistics-btn:hover,
#mfSectorList .sector-view-statistics-btn:hover {
  filter: brightness(0.95);
  box-shadow: 0 10px 22px rgba(16, 24, 40, 0.14);
}

#sectorList .sector-card-inner h4 i,
#mfSectorList .sector-card-inner h4 i {
  margin-right: 8px;
  color: var(--card-accent-1, var(--purple_dark, var(--purple-dark)));
  opacity: 0.95;
}

.market-dashboard-heading-mobile {
  padding-top: 8px;
}

@media (max-width: 768px) {
  .market-dashboard-landing {
    padding-top: 12px;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

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

#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;
}

.sector-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;
  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: space-between;
}

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

.all-market-dashboard .card {
  padding: 20px;
  border-radius: 10px;
  /* Keep layout-only tweaks here; visuals are defined above and in `market-dashboard.css` */
}

.all-market-dashboard .card-inner {
  margin-bottom: 15px;
}

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

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

.card-inner {
  margin-bottom: 15px;
}

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

.dashboard-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(350px, 1fr));
  gap: 20px;
  padding: 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;
  font-size: 16px;
}

canvas {
  max-width: 100%;
  max-height: 200px;
}

.view-all {
  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 {
  margin-bottom: 1rem !important;
  
  font-weight: 600;
  font-size: 28px;
  line-height: 1.2;
  margin-top: 20px;
}

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

.view-all:hover {
  text-decoration: underline;
}

.return-text {
  font-size: 12px;
  color: #667085;
}

.sector-nav-item.show .sector-nav-link,
.sector-nav-link {
  color: var(--Grey-900);
  
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  position: relative;
  border: white;
}

.sector-nav-item.show .sector-nav-link,
.sector-nav-link.active {
  color: #D57BC8;
  
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  position: relative;
  border: white;
}

@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: 20px;
  max-width: 80%;
  margin: auto;
  align-items: baseline;
}

.first-child {
  display: flex;
  flex-direction: column;

  width: 100%;
}

.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;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 58%;
}

 .benchmark-graph-box{
    width: 100%;
 }

 .stock-actions-title {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.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: 400px;
  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;
  max-height: 370px;
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

.stock-table-wrapper .table {
  display: block;
  max-height: 370px;
  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-table{
  margin-top: 1.5rem;
}

.all-market-dashboard .card{
  background-color: #fff;
}

@media (min-width: 1200px) {
  .ai-Risk-Modeling .sectors-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(400px, 1fr));

}

.dashboard-search-box {
  position: relative;
}

.dashboard-search-box input {
  border: 1px solid #EAECF0;
  background-color: #F9FAFB;
}

.dashboard-search-box input:focus {
  outline: none;
  box-shadow: none;
}

}
