:root{
  --bg:#f4f7fb;
  --surface:#ffffff;
  --line:#e6ecf5;
  --text:#132238;
  --muted:#667085;
  --primary:#2563eb;
  --shadow:0 10px 30px rgba(16,24,40,.08);
  --radius:16px;
}

.dgpo-topbar{
  background:linear-gradient(90deg,#4f46e5 0%,#3b82f6 50%,#2563eb 100%);
  color:#fff;
  padding:24px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
  border-radius:18px;
  margin-bottom:20px;
}

.dgpo-topbar h1{
  margin:0;
  font-size:2rem;
}

.dgpo-topbar p{
  margin:6px 0 0;
}

.dgpo-upload-box{
  background:rgba(255,255,255,.12);
  padding:12px;
  border-radius:14px;
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.dgpo-upload-box button{
  border:none;
  background:#fff;
  color:#1d4ed8;
  padding:10px 14px;
  border-radius:12px;
  font-weight:700;
  cursor:pointer;
}

.dgpo-container{
  padding:10px 0;
}

.dgpo-status{
  padding:12px 14px;
  border-radius:14px;
  background:#eef4ff;
  border:1px solid #dbe7ff;
  color:#1d4ed8;
  font-size:.92rem;
  font-weight:700;
  margin-bottom:18px;
}

.dgpo-cards{
  display:grid;
  grid-template-columns:repeat(4,minmax(180px,1fr));
  gap:16px;
  margin-bottom:18px;
}

.dgpo-card,
.dgpo-panel{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:var(--shadow);
}

.dgpo-card .label{
  color:var(--muted);
  font-weight:700;
  margin-bottom:8px;
}

.dgpo-card .value{
  font-size:2rem;
  font-weight:900;
}

.dgpo-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  margin-bottom:18px;
}

.chart-wrap{
  height:360px;
}

.dgpo-table-wrap{
  overflow:auto;
  border:1px solid var(--line);
  border-radius:16px;
}

.dgpo-table-wrap table{
  width:100%;
  border-collapse:collapse;
}

.dgpo-table-wrap th,
.dgpo-table-wrap td{
  padding:10px;
  border-bottom:1px solid #edf2f7;
  text-align:left;
}

.dgpo-table-wrap thead th{
  background:#eef4ff;
  color:#1e3a8a;
}

@media (max-width: 1024px){
  .dgpo-cards,
  .dgpo-grid{
    grid-template-columns:1fr;
  }
}