.dashboard-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; }
.dashboard-actions a, .dashboard-actions button { margin-left: 10px; }
.dashboard-alert { background: #ffecec; color: #d9534f; padding: 10px; border-radius: 4px; margin: 10px 0; }
.dashboard-summary { display: flex; gap: 10px; }
.summary-card { flex: 1; background: #e7f9fd; padding: 20px; border-radius: 8px; margin-bottom: 10px; }
.dashboard-graphs { display: flex; gap: 20px; margin-top: 20px; }
.dashboard-pie, .dashboard-line { flex: 1; background: #fff; padding: 20px; border-radius: 8px; }
.dashboard-sales { width: 200px; }
#salesHistory li { background: #f9f9f9; padding: 7px 10px; margin: 4px 0; border-radius: 6px; }

.dashboard-widgets {
    display: flex;
    justify-content: space-between; /* spread out widgets fully */
    flex-wrap: wrap;
}

.dashboard-widgets > div {
    flex-grow: 1;     /* widgets grow to fill available space */
    margin: 0 0.5rem; /* side margin for spacing */
    min-width: 150px; /* minimum width each widget */
}

.dashboard-row {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 24px;
  margin: 0 0.5rem;
}

.charts-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-top: 18px;
}
@media (max-width: 850px) {
  .charts-row {
    flex-direction: column;
    gap: 12px;
  }
}


.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  height: 80px;
}
.main-header .header-left {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-header .header-left .logo {
  height: 48px;
  width: auto;
}
.main-header .header-left .welcome-text {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}
.main-header .header-left .welcome-text span {
  font-weight: 800;
}
.main-header .header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.main-header .header-nav .nav-item {
  text-decoration: none;
  color: #1F1F1F;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  transition: all 0.2s ease;
  border-radius: 8px;
  justify-content: center;
}
.main-header .header-nav .nav-item i {
  font-size: 1rem;
  transition: color 0.2s ease;
}
.main-header .header-nav .nav-item.active {
  background-color: #FA3A3A;
  color: white;
  padding: 10px 24px;
  font-weight: 600;
  height: 43px;
  width: 174px;
}
.main-header .header-nav .nav-item.active i {
  color: white;
}
.main-header .header-nav .nav-item.logout {
  color: #E2211C;
  font-weight: 500;
  margin-left: 10px;
}
.main-header .header-nav .nav-item.logout i {
  color: #E2211C;
}
.main-header .header-nav .nav-item:hover:not(.active) {
  color: #E2211C;
}
.main-header .header-nav .nav-item:hover:not(.active) i {
  color: #E2211C;
}
@media (max-width: 992px) {
  .main-header {
    flex-direction: column;
    height: auto;
    padding: 1rem;
    gap: 1rem;
  }
  .main-header .header-left {
    width: 100%;
    justify-content: center;
  }
  .main-header .header-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
}


.pie-time-filter, .competitive-time-filter, .sales-history-time-filter {
  border: 1px solid #E4E4E4;
  background: #fff;
  padding: 5px;
  border-radius: 19px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  background-size: 20px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-size: 10px;
  padding: 5px 25px 5px 12px;
}

@media screen and (max-width: 1250px) {
  .visualization-section {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  }
}



.transaction-date-filter-row{
  input {
    width: 100px;
    background: #fff !important;
    color: #000;
    border: 1px solid #E4E4E4;
    border-radius: 20px;
    text-align: center;
  }
}

#transaction-table {
  .dt-cell {
    border-bottom: 1px dashed #E4E4E4;
    border-style: none none dashed none;
  }
  .dt-scrollable {
    max-height: calc(100vh - 520px) !important;
    width: 100% !important;
  }
  .dt-row {
    padding: 0 10px;
  }
  .dt-row-header {
    background-color: #D6D6D6;
  }
  .dt-header .dt-cell--header .dt-cell__content {
    background-color: #D6D6D6;
    font-weight: 700;
  }
  .dt-cell--col-1, .dt-cell--col-2, .dt-cell--col-3 {
    text-align: left;
  }
  .dt-toast__message {
    color: #fff;
  }
}

#modulePieChart .chart-legend {
  display: none;
}

#page-influencer-dashboard {
  background: #F9FAFC;
}

.transaction-date-filter-row .clearfix, #page-payout-history .clearfix {
  display: none;
}

#datepickers-container .datepicker.-from-bottom-:not(.active) {
  display: none !important;
}

#datepickers-container .datepicker.-from-bottom-{
  left: calc(100vw - 280px) !important;
}
#datepickers-container .datepicker--pointer {
  display: none !important;
}

.transaction-date-filter-row input::placeholder {
  color: #262626;
}
