.export-sheet {
  padding: 6px 27px;
  color: #28b446;
  background-color: #dff4e3;
  border: none;
  border-radius: 6px;
}
.import-sheet {
  padding: 6px 27px;
  color: #f9a130;
  background-color: #fef1e0;
  border: none;
  border-radius: 6px;
}

.dashboard-page {
  background: #f6f8fb;
}

.dashboard-stats-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 18px;
}

.dashboard-stat-card {
  background: #ffffff;
  border: 1px solid #e4e8f0;
  border-radius: 14px;
  padding: 12px 16px;
  min-height: 126px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.dashboard-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eaf4ef;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 7px;
}

.dashboard-stat-icon i {
  color: #0f4f80;
  font-size: 22px;
  line-height: 1;
}

.dashboard-stat-value {
  color: #111827;
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
}

.dashboard-stat-label {
  color: #667085;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.dashboard-chart-row {
  margin-top: 4px;
}

.dashboard-chart-card {
  background: #f5f7fb;
  border: 1px solid #e2e7ef;
  border-radius: 16px;
  padding: 14px 16px 10px;
  height: 100%;
}

.dashboard-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.dashboard-chart-title {
  margin: 0;
  color: #0b1225;
  font-size: clamp(20px, 2.2vw, 48px);
  font-weight: 700;
  line-height: 1.3;
}

.dashboard-chart-shell {
  position: relative;
  height: 360px;
}

.dashboard-chart-shell canvas {
  width: 100% !important;
  height: 100% !important;
}

.dashboard-chart-shell.with-months {
  padding-right: 56px;
}

.dashboard-chart-shell.with-days {
  padding-right: 62px;
}

.chart-side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  right: 4px;
  top: 30px;
  bottom: 45px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  text-align: right;
}

.chart-side-list li {
  color: #848da1;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.days-list li {
  font-size: 12px;
  letter-spacing: 0.1px;
}

@media (min-width: 1200px) {
  .dashboard-stats-grid {
    max-width: 980px;
    margin-right: 0;
    margin-left: auto;
    grid-template-columns: repeat(4, minmax(170px, 1fr));
  }
}

body.locale-en .dashboard-stats-grid {
  margin-left: 0;
  margin-right: auto;
}

@media (max-width: 991.98px) {
  .dashboard-chart-shell {
    height: 310px;
  }

  .dashboard-chart-shell.with-months,
  .dashboard-chart-shell.with-days {
    padding-right: 40px;
  }

  .chart-side-list li {
    font-size: 11px;
  }
}

/* Investors table fixes */
.investor-table-wrapper .table-responsive {
  overflow-x: auto;
  padding-bottom: 6px;
}

.investor-table-wrapper .table {
  min-width: 1540px;
}

.investor-table-wrapper .table thead th,
.investor-table-wrapper .table tbody td {
  padding: 0.85rem 0.9rem;
  white-space: nowrap;
}

.investor-table-wrapper .oval-cell {
  border-color: #e6eaf1;
  box-shadow: none;
}

.investor-table-wrapper .switch-cell,
.investor-table-wrapper .actions-cell {
  background: transparent !important;
  border: none !important;
  white-space: nowrap;
}

.investor-table-wrapper .actions-cell .d-flex {
  flex-wrap: nowrap;
}

/* Keep oval row edges correct in Arabic */
body.locale-ar .investor-table-wrapper .oval-start {
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-right: 1px solid #e6eaf1;
  border-left: 0;
}

body.locale-ar .investor-table-wrapper .oval-end {
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-left: 1px solid #e6eaf1;
  border-right: 0;
}

/* Keep oval row edges correct in English */
body.locale-en .investor-table-wrapper .oval-start {
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-left: 1px solid #e6eaf1;
  border-right: 0;
}

body.locale-en .investor-table-wrapper .oval-end {
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-right: 1px solid #e6eaf1;
  border-left: 0;
}
