/* Dashboard-specific layout from design.md */
.payment-summary.ringkasan-card{
  padding:22px;
}

.panel-section-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.title-wrap{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:18px;
  font-weight:850;
  letter-spacing:-.015em;
}

.network-summary-icon{
  width:40px;
  height:40px;
  flex:0 0 40px;
  border-radius:14px;
}

.network-summary-icon svg{
  width:24px;
  height:24px;
}

.summary-metric-grid{
  gap:18px;
  margin-top:20px;
}

.summary-metric-card{
  display:grid;
  align-items:center;
  justify-content:stretch;
  min-height:128px;
  padding:18px 20px;
}

.summary-metric-body{
  display:grid;
  gap:4px;
  min-width:0;
  position:relative;
  z-index:1;
}

.summary-metric-title{
  font-size:14px;
  font-weight:900;
  line-height:1.2;
}

.summary-metric-value{
  margin-top:2px;
  font-size:clamp(2rem,2.9vw,2.6rem);
}

.summary-metric-meta{
  margin-top:0;
  font-size:13px;
}

.summary-circle-wrap{
  grid-template-columns:1fr;
  align-items:stretch;
  gap:0;
}

.summary-circle-wrap .summary-overall-card{
  min-height:260px;
  padding:18px;
}

.summary-circle-wrap .summary-bar-legend{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:center;
  align-content:center;
  gap:24px;
  min-height:182px;
}

.summary-circle-wrap .summary-mini-stat{
  min-height:166px;
}

.summary-circle-wrap .summary-mini-ring{
  width:clamp(112px,13vw,146px);
  height:clamp(112px,13vw,146px);
}

.summary-circle-wrap .summary-mini-ring::before{
  width:calc(100% - 34px);
  height:calc(100% - 34px);
}

.summary-circle-wrap .summary-mini-ring span{
  font-size:clamp(27px,3vw,36px);
}

.dashboard-lower-grid{
  gap:20px;
}

@media(min-width:900px){
  body.dashboard-page{
    overflow:hidden;
  }

  body.dashboard-page .app{
    min-height:100vh;
    max-height:100vh;
    overflow:hidden;
    padding-top:16px;
    padding-bottom:14px;
  }

  body.dashboard-page #adminView{
    height:calc(100vh - 30px);
    padding-bottom:0;
    overflow:hidden;
  }

  body.dashboard-page .admin-panel[data-panel="dashboard"]{
    height:calc(100% - 58px);
    display:grid;
    grid-template-rows:auto minmax(0,1fr);
    gap:12px;
    overflow:hidden;
  }

  body.dashboard-page .payment-summary.ringkasan-card{
    margin-bottom:0;
    padding:16px;
  }

  body.dashboard-page .summary-metric-grid{
    gap:12px;
    margin-top:12px;
  }

  body.dashboard-page .summary-metric-card{
    grid-template-columns:62px minmax(0,1fr);
    min-height:112px;
    padding:13px 16px;
    gap:14px;
  }

  body.dashboard-page .summary-metric-icon{
    width:58px;
    height:58px;
    flex-basis:58px;
    border-radius:18px;
  }

  body.dashboard-page .summary-metric-icon svg{
    width:34px;
    height:34px;
  }

  body.dashboard-page .summary-metric-value{
    font-size:2rem;
  }

  body.dashboard-page .summary-chart-wrap{
    margin-top:12px;
    padding-top:12px;
  }

  body.dashboard-page .summary-circle-wrap .summary-overall-card{
    min-height:228px;
    padding:15px 18px;
  }

  body.dashboard-page .summary-circle-wrap .summary-bar-legend{
    min-height:158px;
    gap:28px;
  }

  body.dashboard-page .summary-circle-wrap .summary-mini-ring{
    width:clamp(108px,10vw,132px);
    height:clamp(108px,10vw,132px);
  }
}

@media(max-width:760px){
  .payment-summary.ringkasan-card{
    padding:18px 15px;
  }

  .payment-summary.ringkasan-card .panel-section-title{
    align-items:flex-start;
    justify-content:flex-start;
    text-align:left;
  }

  .payment-summary.ringkasan-card .title-wrap{
    width:100%;
    justify-content:flex-start;
    align-items:center;
    text-align:left;
    gap:10px;
    font-size:17px;
    line-height:1.25;
  }

  .summary-metric-grid{
    grid-template-columns:1fr;
    gap:10px;
  }

  .summary-metric-card,
  body.dashboard-page .summary-metric-card{
    grid-template-columns:64px minmax(0,1fr);
    gap:14px;
    min-height:108px;
    padding:14px;
  }

  .summary-metric-icon,
  body.dashboard-page .summary-metric-icon{
    width:58px;
    height:58px;
    flex-basis:58px;
    border-radius:18px;
  }

  .summary-metric-icon svg,
  body.dashboard-page .summary-metric-icon svg{
    width:34px;
    height:34px;
  }

  .summary-circle-wrap .summary-bar-legend{
    grid-template-columns:1fr;
    min-height:0;
    gap:10px;
  }

  .summary-circle-wrap .summary-mini-stat{
    grid-template-columns:78px minmax(0,1fr);
    justify-items:start;
    align-items:center;
    min-height:88px;
    text-align:left;
  }

  .summary-circle-wrap .summary-mini-ring{
    grid-row:1 / span 2;
    width:76px;
    height:76px;
  }

  .summary-circle-wrap .summary-mini-ring::before{
    width:54px;
    height:54px;
  }

  .summary-circle-wrap .summary-mini-ring span{
    font-size:21px;
  }
}
