/* Grafik penjualan Dashboard Cabang. */
.sales-chart-panel {
  min-height: 340px;
  padding: 0;
  overflow: hidden;
  border-color: rgba(99, 102, 241, .09);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 16px 42px rgba(49, 52, 91, .09), inset 0 1px 0 #fff;
}

.dashboard-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(99, 102, 241, .08);
  background: linear-gradient(115deg, rgba(248, 247, 255, .92), rgba(255, 255, 255, .72));
}

.dashboard-chart-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.dashboard-chart-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #6670ef, #9655eb);
  box-shadow: 0 9px 22px rgba(101, 87, 225, .24);
}

.dashboard-chart-icon .icon { width: 18px; height: 18px; }

.sales-chart-panel .dashboard-chart-title h3 {
  margin: 0;
  color: #252e42;
  font-size: 14px;
  letter-spacing: -.02em;
}

.sales-chart-panel .dashboard-chart-title h3::before { display: none; }

.dashboard-chart-title p {
  margin-top: 4px;
  color: #929bac;
  font-size: 9px;
  font-weight: 600;
}

.dashboard-chart-status {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid #e9e8f4;
  border-radius: 999px;
  color: #8a92a3;
  background: rgba(255, 255, 255, .88);
  font-size: 8px;
  font-weight: 750;
}

.dashboard-chart-status.active {
  border-color: #ccefe4;
  color: #118060;
  background: #effcf7;
}

.sales-chart-panel .chart-area {
  height: 234px;
  padding: 14px 18px 10px;
  background:
    radial-gradient(circle at 50% 45%, rgba(129, 140, 248, .055), transparent 45%),
    rgba(255, 255, 255, .62);
}

.sales-chart-panel .chart-svg { overflow: visible; }
.sales-chart-panel .chart-grid-line { stroke: #eceef5; stroke-width: 1; }
.sales-chart-panel .chart-axis-label,
.sales-chart-panel .chart-date-label {
  fill: #9aa2b1;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 9px;
}

.sales-chart-panel .chart-date-label { fill: #7d8698; font-weight: 650; }
.sales-chart-panel .chart-area-fill { fill: url(#daily-sales-fill); }
.sales-chart-panel .chart-sales-line {
  fill: none;
  stroke: #7165ec;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 5px 7px rgba(99, 102, 241, .22));
}

.sales-chart-panel .chart-single-line {
  stroke: url(#daily-sales-fill);
  stroke-width: 5;
  stroke-linecap: round;
  opacity: .72;
}

.sales-chart-panel .chart-sales-point {
  fill: #fff;
  stroke: #7165ec;
  stroke-width: 2.5;
}

.dashboard-chart-empty {
  position: absolute;
  inset: 18px 20px 16px 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.dashboard-chart-empty > span {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 11px;
  place-items: center;
  border: 1px solid rgba(124, 103, 238, .14);
  border-radius: 18px;
  color: #7567e8;
  background: linear-gradient(145deg, #f6f3ff, #eeecff);
  box-shadow: 0 10px 24px rgba(93, 83, 190, .10);
}

.dashboard-chart-empty > span .icon { width: 23px; height: 23px; }
.dashboard-chart-empty strong { color: #343d51; font-size: 13px; }
.dashboard-chart-empty p {
  max-width: 280px;
  margin: 6px 0 0;
  color: #939bac;
  font-size: 9px;
  line-height: 1.6;
}

.dashboard-chart-action {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 9px 18px 11px;
  border-top: 1px solid rgba(99, 102, 241, .07);
  background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(248, 247, 255, .76));
}

.dashboard-chart-action .btn {
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 10px;
  font-size: 9px;
  box-shadow: 0 8px 18px rgba(99, 102, 241, .17);
}

@media (max-width: 760px) {
  .sales-chart-panel { min-height: 320px; }
  .dashboard-chart-head { padding: 14px 15px; }
  .dashboard-chart-status { display: none; }
  .sales-chart-panel .chart-area { height: 220px; padding-inline: 7px; }
  .dashboard-chart-empty { inset-inline: 72px 10px; }
  .dashboard-chart-action { min-height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  .sales-chart-panel * { scroll-behavior: auto; }
}
