
.dashboard-section {
  margin: 43px 60px;
  width: stretch;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dashboard-metrics-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2,160px);
  gap: 20px;
  width: 100%;
}

/* ---GENERAL STYLES OF METRICS--- */

.green-change,
.red-change {
  background-color: rgba(20, 174, 92, 0.7);
  color: white;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 14px;
  font-family: 'Inter';
  font-weight: 400;
}

.red-change {
  background-color: rgba(238, 38, 35, 0.7);
}

.order-value-info,
.order-volume-info,
.discount-info,
.customer-value-info,
.order-rate-info {
  padding: 29px 32px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.metric-card p,
.sold-left p {
  font-weight: 490;
  font-size: 20px;
  margin-top: 8px;
}

.metric-footer .label,
.metric-main p {
  letter-spacing: 0.5px;
}

.metric-card h1 {
  font-family: 'Inter';
  font-weight: 400;
  font-size: 42px;
  line-height: 100%;
  letter-spacing: 0%;
}

.metric-footer {
  border-top: 1px solid rgba(217, 217, 217, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 0 0;
}

.metric-footer label {
  color: rgba(0, 0, 0, 1);
  font-size: 16px;
  letter-spacing: 5%;
}

/* ---ITEMS SOLD CARD--- */

.items-sold-info {
  background-color: #2e2e2e;
  color: white;
  border-radius: 24px;
  padding: 14px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  grid-column: span 2;
}

.sold-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.sold-left h1 {
  font-family: 'Inter';
  font-weight: 400;
  font-size: 64px;
  line-height: 100%;
  letter-spacing: 0%;
  vertical-align: middle;
  text-transform: uppercase;
}

.sold-left p {
  margin: 0;
}


.sold-right p {
  font-size: 14px;
  color: #bbb;
}

.sold-right {
  margin: auto 0 0;
}

.sold-right span {
  color: #999;
  font-size: 12px;
}

.sold-footer {
  border-top: 1px solid #888;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 0 0;
}

.sold-footer .label {
  font-size: 16px;
  font-weight: 375;
  color: #ccc;
  letter-spacing: 0.5px;
}


.dashboard-metrics-container > div:not(.items-sold-info, .order-updates) {
  background-color: rgba(255, 255, 255, 1);
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}


/* ORDER UPDATE CARD */

.order-updates {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-update-info {
  padding: 22px 36px;
  background-color: rgba(255, 255, 255, 1);
  height: 100%;
  border-radius: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.order-update-info span {
  font-family: Inter;
  font-weight: 400;
  font-size: 32px;
  line-height: 100%;
  letter-spacing: 0%;
  vertical-align: middle;
  text-transform: uppercase;
  margin-right: 8px;
}

.order-update-info p {
  font-weight: 494;
  font-size: 20px;
  line-height: 100%;
  letter-spacing: 5%;
  vertical-align: middle;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}

/* ORDER DETAILS CARD */

.dashboard-order-details-table-card {
  background-color: rgba(255, 255, 255, 1);
  padding: 27px 40px;
  height: 508px;
  border-radius: 40px;
  box-shadow: 0px 3px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
}

.order-details-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

}

.order-details-table-header .left-side {
  display: flex;
  gap: 8px;
  align-items: center;
}

.order-details-table-header h1 {
  font-weight: 596;
  font-size: 20px;
  line-height: 100%;
  letter-spacing: 5%;
  vertical-align: middle;
  text-transform: uppercase;
  margin-right: 22px;
}

.left-side button {
  padding: 6px 15px;
  background-color: transparent;
  display: flex;
  align-items: center;
  gap: 13.6px;
  border-radius: 30px;
  cursor: pointer;
  border: solid 1px rgba(0, 0, 0, 1);
}

.arrow-down img {
  height: 7.78px;
  width: 12.73px;
}

.search-bar {
  display: flex;
  gap: 8px;
  border: 1px solid #000;
  border-radius: 999px;
  padding: 4px 16px;
  width: 300px;
  height: 40px;
  font-weight: 375;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: 0%;
}

.search-bar input {
  border: none;
  outline: none;
  font-size: 16px;
  flex: 1;
  background: transparent;
}

.search-bar button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.search-bar button img {
  width: 20px;
  height: 20px;
}

.order-details-filter {
  width: fit-content;

}

.filter-button {
  padding: 4px 12px;
  background-color: rgba(0, 122, 255, 0.15);
  border-radius: 20px;
  display: flex;
  gap: 4px;
  width: fit-content;
}

.filter-button button {
  background-color: transparent;
  border: none;
  line-height: 0;
}

.filter-button button img {
  width: 16px;
}

.table-container {
  max-width: 100%;
  overflow-y: auto;
}

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

.heading-row th{
  padding: 8px 47px 16px;
  text-align: center;
  
  font-weight: 494;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: 5%;
  text-transform: uppercase;
  color: rgba(141, 141, 141, 1);

  position: sticky;
  top: 0;
  background-color: white; /* Or match your card background */
  z-index: 2;
  border-bottom: 1px solid rgba(247, 247, 247, 1);
}

.product-price,
.product-quantity,
.order-no {
  font-family: 'Inter';
  font-weight: 400;
  font-size: 20px;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: center;

}

td,
th {
  text-align: center;
  padding: 24px 0;
}

.product-status .pending{
  background-color: rgba(255, 213, 92, 1);
  padding: 4px 23px;
  border-radius: 30px;
}

.product-status .delivered {
  background-color: rgba(20, 174, 92, 0.7);
  padding: 4px 23px;
  border-radius: 30px;
}

.product-status .cancelled {
  background-color: rgba(238, 38, 35, 0.7);
  padding: 4px 23px;
  border-radius: 30px;
}

.product-status {
  font-size: 14px;
  color: white;
  font-weight: 494;
  font-size: 14px;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: center;
}

td div {
  display: flex;
  align-items: center;
}

