/* Dashboard Utama — lapisan tampilan Owner setelah dashboard-polish.css. */
.main-dashboard-head {
  min-height: 154px;
  padding: 31px 32px;
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 255, 255, .24), transparent 16rem),
    radial-gradient(circle at 62% 120%, rgba(52, 211, 153, .16), transparent 18rem),
    linear-gradient(118deg, #545ee9 0%, #6d56ee 48%, #9250e9 100%);
}

.dashboard-heading-copy { position: relative; z-index: 1; }

.dashboard-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 11px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .23);
  border-radius: 999px;
  color: rgba(255, 255, 255, .88);
  background: rgba(255, 255, 255, .11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
}

.main-dashboard-head .dashboard-heading-copy p {
  max-width: 540px;
  font-size: 12.5px;
  line-height: 1.65;
}

.main-dashboard-stats {
  grid-template-columns: minmax(330px, 1.7fr) repeat(3, minmax(170px, 1fr));
}

.main-dashboard-stats .stat { min-width: 0; }
.main-dashboard-stats .stat:nth-child(3)::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.main-dashboard-stats .stat:nth-child(4)::before { background: linear-gradient(90deg, #10b981, #34d399); }
.main-dashboard-stats .stat:nth-child(4) .stat-icon { color: #0b9d72; background: #e9fff7; }
.main-dashboard-stats .stat:nth-child(4) .stat-value { color: #087f5b; font-size: 25px; }

.branch-overview {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 24px;
  background: rgba(255, 255, 255, .54);
  box-shadow: var(--dashboard-shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.branch-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 2px 3px 19px;
}

.branch-overview-head h3 {
  margin-top: 4px;
  color: #172033;
  font-size: 18px;
  letter-spacing: -.025em;
}

.branch-overview-head p {
  margin-top: 5px;
  color: #8993a5;
  font-size: 11px;
}

.section-kicker {
  color: #7567e8;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}

.branch-performance-table {
  border-color: rgba(99, 102, 241, .08);
  border-radius: 17px;
  background: rgba(255, 255, 255, .78);
  box-shadow: none;
}

.branch-performance-table .data-table th {
  padding-block: 15px;
  color: #788397;
  background: rgba(246, 247, 253, .78);
  font-size: 9px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.branch-performance-table .data-table td { height: 70px; }

.branch-name-cell {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 160px;
}

.branch-name-cell > span {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, #6067ef, #9254ec);
  box-shadow: 0 8px 18px rgba(101, 83, 222, .2);
  font-size: 12px;
  font-weight: 800;
}

.branch-name-cell strong { color: #313a4e; }

@media (hover: hover) and (pointer: fine) {
  .branch-performance-table .data-table tbody tr { transition: background-color .2s ease, transform .2s ease; }
  .branch-performance-table .data-table tbody tr:hover { background: rgba(245, 243, 255, .75); }
}

@media (max-width: 1250px) {
  .main-dashboard-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .main-dashboard-stats .stat:first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .main-dashboard-head { min-height: 0; padding: 24px 20px; }
  .main-dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-dashboard-stats .stat:first-child { grid-column: 1 / -1; }
  .branch-overview { padding: 15px; border-radius: 20px; }
  .branch-overview-head { align-items: flex-start; padding-bottom: 15px; }
  .branch-overview-head p { max-width: 260px; }
}

@media (max-width: 430px) {
  .dashboard-eyebrow { margin-bottom: 8px; }
  .main-dashboard-stats { grid-template-columns: 1fr 1fr; }
  .main-dashboard-stats .stat:nth-child(4) { grid-column: 1 / -1; }
  .branch-overview-head { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .branch-performance-table .data-table tbody tr { transition: none; }
}
