/* ELEVATE-ESP NR — desain panel (mengikuti referensi dashboard) */

body { background: #F5F7F8; }

.panel { display: grid; grid-template-columns: 226px 1fr; min-height: 100vh; }

/* ---------------- sidebar ---------------- */
.side {
  background:
    radial-gradient(90% 55% at 18% 0%, #17583A 0%, rgba(23,88,58,0) 62%),
    linear-gradient(180deg, #0C3A28 0%, #082B1E 52%, #051E15 100%);
  color: #D5E6DD; padding: 14px 12px 0; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow: hidden;
}
.side::before {
  content: ''; position: absolute; left: -70px; top: -90px; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(45,190,125,.22) 0%, rgba(45,190,125,0) 68%); pointer-events: none;
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 16px; position: relative; z-index: 1; }
.side-logo {
  width: 40px; height: 40px; border-radius: 11px; background: #fff; display: grid; place-items: center;
  color: #0E7C50; box-shadow: 0 4px 12px rgba(0,0,0,.25); flex: none;
}
.side-brand .bn { font-size: 15px; font-weight: 800; color: #fff; letter-spacing: -.02em; line-height: 1.05; }
.side-brand .bs { font-size: 10.5px; color: rgba(190,232,211,.72); font-weight: 500; margin-top: 3px; letter-spacing: .01em; }
.side-nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding-bottom: 8px; scrollbar-width: thin; }
.side-nav::-webkit-scrollbar { width: 4px; }
.side-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 4px; }
.nav-i {
  display: flex; align-items: center; gap: 10px; padding: 8px 11px; border-radius: 10px;
  font-size: 11.9px; font-weight: 600; color: rgba(224,244,234,.78); width: 100%; text-align: left;
  transition: background .15s, color .15s; line-height: 1.25;
}
.nav-i svg { flex: none; opacity: .92; }
.nav-i:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-i.on {
  background: linear-gradient(96deg, #1AC47C 0%, #0FA65F 100%); color: #fff; font-weight: 700;
  box-shadow: 0 6px 16px rgba(15,166,95,.34);
}
.nav-i .chev { margin-left: auto; transition: transform .18s; opacity: .8; }
.nav-i.open .chev { transform: rotate(180deg); }
.nav-sub { display: none; flex-direction: column; gap: 1px; margin: 2px 0 4px 14px; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.12); }
.nav-sub.open { display: flex; }
.nav-sub .nav-i { font-size: 11.8px; padding: 7px 9px; font-weight: 600; color: rgba(224,244,234,.66); }
.nav-sub .nav-i.on { background: rgba(26,196,124,.18); box-shadow: none; color: #fff; }
.side-foot { padding: 6px 0 0; position: relative; }
.side-foot .nav-i { color: rgba(224,244,234,.6); }
.side-photo { width: auto; max-width: 108%; max-height: 150px; margin: 6px 0 -10px; align-self: center; filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)); }

/* ---------------- topbar ---------------- */
.main { min-width: 0; background: #F5F7F8; }
.topbar {
  position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid #E9EFEC;
  padding: 11px 22px; display: flex; align-items: center; gap: 14px; min-height: 66px;
}
.tb-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 21px; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; color: #10231C; }
.tb-sub { font-size: 11.8px; color: #7B8F85; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-tools { display: flex; align-items: center; gap: 9px; flex: none; }
.tool {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 11px;
  border: 1px solid #E4EBE7; border-radius: 10px; background: #fff; color: #5E776C;
  font-size: 11.3px; font-weight: 600; box-shadow: 0 1px 2px rgba(16,40,30,.03); white-space: nowrap;
}
.tool svg { color: #4E8F6E; flex: none; }
.tool b { color: #14261E; font-weight: 700; }
.tool select { border: none; background: transparent; font-size: 11.3px; font-weight: 700; color: #14261E; outline: none; padding-right: 2px; cursor: pointer; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid #E4EBE7; background: #fff;
  display: grid; place-items: center; color: #3F5B4E; position: relative; box-shadow: 0 1px 2px rgba(16,40,30,.03);
}
.icon-btn:hover { background: #F4F9F6; }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: #E5484D; border: 1.5px solid #fff; }
.userbox {
  display: flex; align-items: center; gap: 9px; padding: 4px 6px 4px 4px; border-radius: 11px;
  cursor: pointer; transition: background .15s;
}
.userbox:hover { background: #F4F9F6; }
.userbox .av {
  width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: linear-gradient(145deg, #CFEBDD, #A9DCC2);
  display: grid; place-items: center; font-weight: 800; font-size: 12.5px; color: #0B4A33; flex: none;
  border: 2px solid #E8F4ED; object-fit: cover;
}
.userbox .nm { font-size: 11.8px; font-weight: 800; color: #12241C; line-height: 1.2; }
.userbox .rl { font-size: 10px; color: #7F9389; font-weight: 600; }
.main-body { padding: 16px 20px 44px; max-width: 1440px; }

/* ---------------- hero ---------------- */
.hero {
  position: relative; overflow: hidden; border-radius: 16px; border: 1px solid #E4F0E8;
  background: linear-gradient(100deg, #E7F7EC 0%, #F6FBF8 34%, #FFFFFF 55%, #E9F7EE 100%);
  padding: 14px 18px; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 1px 2px rgba(16,40,30,.04);
}
.hero::before {
  content: ''; position: absolute; right: 34%; top: -60%; width: 330px; height: 330px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,196,124,.16) 0%, rgba(26,196,124,0) 70%);
}
.hero::after {
  content: ''; position: absolute; left: -40px; bottom: -70px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(123,211,137,.22) 0%, rgba(123,211,137,0) 70%);
}
.hero-l { position: relative; z-index: 1; max-width: 320px; flex: none; }
.hero-l .eyebrow { font-size: 9px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #2C8F66; }
.hero-l h2 { font-size: 26px; font-weight: 800; letter-spacing: -.035em; color: #0B4A33; line-height: 1; margin-top: 3px; }
.hero-l h3 { font-size: 15.5px; font-weight: 700; color: #12945F; letter-spacing: -.01em; margin-top: 3px; }
.hero-l p { font-size: 10.2px; color: #54736A; line-height: 1.45; margin-top: 6px; max-width: 268px; }
.hero-img { height: 122px; width: auto; flex: none; position: relative; z-index: 1; filter: drop-shadow(0 8px 14px rgba(8,60,40,.14)); }
.hero-f { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; flex: 1; position: relative; z-index: 1; }
.feat { text-align: center; padding: 0 2px; }
.feat .fi {
  width: 36px; height: 36px; border-radius: 11px; margin: 0 auto 5px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(150deg, #25C583 0%, #0E8E56 100%);
  box-shadow: 0 5px 12px rgba(16,150,92,.26);
}
.feat .ft { font-size: 9.6px; font-weight: 800; color: #14402C; line-height: 1.2; }
.feat .fs { font-size: 8.4px; font-weight: 600; color: #74907F; line-height: 1.2; margin-top: 1px; }

/* ---------------- stat cards ---------------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin-top: 12px; }
.stat2 {
  position: relative; overflow: hidden; background: #fff; border: 1px solid #E9EFEC; border-radius: 13px;
  padding: 13px 15px; display: flex; gap: 12px; align-items: center; box-shadow: 0 1px 2px rgba(16,40,30,.04);
}
.stat2 .ico2 { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.stat2 .lbl2 { font-size: 11.2px; font-weight: 650; color: #7A8F85; }
.stat2 .num2 { font-size: 27px; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; color: #10231C; }
.stat2 .delta { font-size: 9.6px; font-weight: 700; margin-top: 3px; display: flex; align-items: center; gap: 3px; color: #12A05C; }
.stat2 .delta.gray { color: #85958C; }
.only-mobile { display: none; }
.stat2 .wm { position: absolute; right: -4px; bottom: -8px; opacity: .06; color: #0F8A5F; pointer-events: none; }

/* ---------------- generic panel cards ---------------- */
.pcard {
  background: #fff; border: 1px solid #E9EFEC; border-radius: 13px; padding: 13px 15px;
  box-shadow: 0 1px 2px rgba(16,40,30,.04); min-width: 0;
}
.pcard-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.pcard-h h3 { font-size: 13.4px; font-weight: 800; letter-spacing: -.02em; color: #12241C; display: flex; align-items: center; gap: 7px; }
.pcard-h h3 svg { color: #0F8A5F; }
.pcard-h .sub { font-size: 9.6px; color: #889A91; font-weight: 600; }
.pcard-h .lnk { font-size: 10.4px; font-weight: 700; color: #12A05C; display: inline-flex; align-items: center; gap: 3px; }
.dash-row { display: grid; gap: 11px; grid-template-columns: 1.22fr 1fr 1fr; margin-top: 12px; }
.dash-row-2 { display: grid; gap: 11px; grid-template-columns: 1.22fr 1fr 1fr; margin-top: 11px; }

/* line chart */
.lc-wrap { position: relative; }
.lc-ylab { position: absolute; left: 0; top: 0; bottom: 16px; width: 26px; display: flex; flex-direction: column; justify-content: space-between; font-size: 8.6px; color: #93A59C; font-weight: 600; }
.lc-plot { margin-left: 28px; }
.lc-x { display: flex; justify-content: space-between; font-size: 8.4px; color: #93A59C; font-weight: 600; margin-left: 28px; margin-top: 2px; }

/* donut */
.donut-wrap { display: flex; align-items: center; gap: 10px; }
.donut { position: relative; width: 132px; height: 132px; flex: none; }
.donut-lbl { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.donut-lbl b { font-size: 19px; font-weight: 800; letter-spacing: -.03em; color: #10231C; display: block; line-height: 1.05; }
.donut-lbl span { font-size: 8.6px; color: #889A91; font-weight: 600; }
.dleg { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dleg div { display: flex; align-items: center; gap: 6px; font-size: 9.8px; font-weight: 600; color: #4C6357; white-space: nowrap; }
.dleg i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dleg b { color: #7A8F85; font-weight: 600; }

/* engagement bars */
.eng-row { margin-bottom: 11px; }
.eng-row .t { display: flex; justify-content: space-between; font-size: 10.6px; font-weight: 700; color: #21382C; margin-bottom: 5px; }
.eng-row .t span:last-child { color: #10231C; font-weight: 800; }
.eng-track { height: 9px; border-radius: 99px; background: #EDF2EF; overflow: hidden; }
.eng-track > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #16B871 0%, #0E9C5E 100%); }

/* bottom: stepper + research */
.step5 { display: flex; align-items: flex-start; margin: 4px 0 10px; }
.step5 .s { flex: 1; text-align: center; position: relative; }
.step5 .s::before { content: ''; position: absolute; top: 11px; left: -50%; width: 100%; height: 2.5px; background: #E2EBE6; }
.step5 .s:first-child::before { display: none; }
.step5 .s.done::before, .step5 .s.cur::before { background: linear-gradient(90deg, #1AC47C, #0FA65F); }
.step5 .c {
  width: 22px; height: 22px; border-radius: 50%; margin: 0 auto 5px; display: grid; place-items: center;
  background: #fff; border: 2px solid #DFE8E3; color: #fff; position: relative; z-index: 1;
}
.step5 .s.done .c { background: linear-gradient(150deg, #1AC47C, #0E9C5E); border-color: #12A05C; }
.step5 .s.cur .c { background: #fff; border-color: #12A05C; box-shadow: inset 0 0 0 4px #12A05C; }
.step5 .l { font-size: 9.2px; font-weight: 700; color: #7D9288; }
.step5 .s.done .l, .step5 .s.cur .l { color: #14372A; }
.research-split { display: grid; grid-template-columns: 1fr .92fr; gap: 12px; border-top: 1px solid #F0F5F2; padding-top: 9px; }
.research-split h4 { font-size: 10.4px; font-weight: 800; color: #2A4237; margin-bottom: 6px; }
.rrow { display: flex; align-items: center; gap: 6px; font-size: 9.8px; color: #5C7367; padding: 2.5px 0; }
.rrow i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.rrow b { margin-left: auto; color: #10231C; font-weight: 800; }
.mini-bars { display: flex; align-items: flex-end; gap: 5px; height: 46px; margin-bottom: 6px; }
.mini-bars b { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #2FD08A, #0E9C5E); }
.gain { display: flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 800; color: #12A05C; }
.gain span { font-size: 8.8px; color: #7A8F85; font-weight: 600; line-height: 1.2; }

/* class rows */
.kls-row { display: flex; align-items: center; gap: 9px; padding: 6.5px 0; }
.kls-row + .kls-row { border-top: 1px solid #F4F8F5; }
.kls-ico { width: 30px; height: 30px; border-radius: 9px; background: #EAF7F0; color: #0E8E56; display: grid; place-items: center; flex: none; }
.kls-t { font-size: 10.4px; font-weight: 750; color: #1B3126; line-height: 1.25; }
.kls-s { font-size: 8.8px; color: #8A9C93; font-weight: 600; }
.kls-p { margin-left: auto; display: flex; align-items: center; gap: 7px; flex: none; }
.kls-p .tr { width: 78px; height: 7px; border-radius: 99px; background: #EDF2EF; overflow: hidden; }
.kls-p .tr > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #1AC47C, #0FA65F); }
.kls-p span { font-size: 9.6px; font-weight: 800; color: #12A05C; width: 30px; text-align: right; }

/* activity feed */
.act-row { display: flex; gap: 9px; align-items: flex-start; padding: 6px 0; }
.act-row + .act-row { border-top: 1px solid #F4F8F5; }
.act-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.act-t { font-size: 10.2px; font-weight: 700; color: #1B3126; line-height: 1.3; }
.act-t span { font-weight: 600; color: #5B7266; }
.act-d { font-size: 8.8px; color: #93A59C; font-weight: 600; margin-top: 1px; }

/* topbar notification panel */
.notif-pop {
  position: fixed; top: 64px; right: 18px; width: 306px; background: #fff; border: 1px solid #E6EDE9;
  border-radius: 14px; box-shadow: 0 18px 44px rgba(9,40,27,.16); z-index: 120; overflow: hidden;
}
.notif-pop .nh { padding: 11px 14px; border-bottom: 1px solid #F0F5F2; font-size: 12px; font-weight: 800; }
.notif-pop .nb { max-height: 300px; overflow: auto; padding: 6px 8px; }

/* responsive */
@media (max-width: 1180px) {
  .dash-row, .dash-row-2 { grid-template-columns: 1fr 1fr; }
  .hero-l { max-width: 260px; }
  .hero-l h2 { font-size: 22px; }
  .hero-img { height: 104px; }
  .feat .fs { display: none; }
}
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-f { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .hero-l p { display: none; }
}
@media (max-width: 900px) {
  .panel { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 240px; z-index: 80; transform: translateX(-100%); transition: .24s; }
  .side.open { transform: translateX(0); box-shadow: 0 0 70px rgba(0,0,0,.34); }
  .only-mobile { display: grid; }
  .topbar { padding: 9px 12px; gap: 8px; }
  .tb-title { font-size: 16px; }
  .tb-sub { display: none; }
  .tb-tools .tool { display: none; }
  .userbox .nm, .userbox .rl { display: none; }
  .main-body { padding: 12px 12px 40px; }
  .dash-row, .dash-row-2 { grid-template-columns: 1fr; }
  .hero { padding: 12px; gap: 8px; }
  .hero-img { height: 84px; }
  .hero-l h2 { font-size: 18px; }
  .hero-l h3 { font-size: 12px; }
  .hero-f { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; }
  .feat .fi { width: 28px; height: 28px; border-radius: 9px; }
  .feat .ft { font-size: 7.6px; }
  .research-split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero-img, .hero-l { display: none; }
  .hero-f { gap: 4px; }
  .stats { gap: 8px; }
  .stat2 { padding: 10px; gap: 9px; }
  .stat2 .num2 { font-size: 22px; }
  .stat2 .ico2 { width: 36px; height: 36px; }
  .donut-wrap { flex-direction: column; align-items: flex-start; }
  .donut { width: 118px; height: 118px; margin: 0 auto; }
}
/* ---- manajemen konten (admin2) ---- */
.acts { display:flex; gap:5px; justify-content:flex-end; }
.btn-xs { height:27px; padding:0 9px; font-size:10.8px; border-radius:7px; }
.tabs { display:flex; gap:4px; border-bottom:1px solid #E3EAE6; margin-bottom:14px; }
.tab { padding:9px 13px; font-size:12px; font-weight:700; color:#7A8C82; border-bottom:2px solid transparent; cursor:pointer; background:none; }
.tab.on { color:#0F8A5F; border-color:#0F8A5F; }
.fgrid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.fgrid .full { grid-column:1/-1; }
.fgrid label { font-size:10.3px; font-weight:800; color:#6C8077; text-transform:uppercase; letter-spacing:.05em; display:block; margin-bottom:4px; }
textarea.input { min-height:78px; resize:vertical; font-family:inherit; line-height:1.55; font-size:12.5px; }
.section { border:1px solid #E8EFEA; border-radius:12px; padding:13px; margin-top:12px; background:#fff; }
.section > h4 { font-size:11.5px; font-weight:800; color:#0E3D2A; margin-bottom:9px; text-transform:uppercase; letter-spacing:.05em; }
.pwrow { display:grid; grid-template-columns:168px 1fr 1.4fr; gap:8px; margin-bottom:7px; align-items:center; }
.pwrow .nm { font-size:11.8px; font-weight:700; color:#28453A; }
.optline { display:flex; gap:7px; align-items:center; margin-bottom:6px; }
.optline input[type=text] { flex:1; }
.optline input[type=radio] { width:16px; height:16px; accent-color:#0F8A5F; }
.badge-soft { display:inline-block; padding:2px 7px; border-radius:6px; font-size:9.8px; font-weight:800; letter-spacing:.03em; background:#EEF6F1; color:#0F8A5F; }
.badge-off { background:#F1F3F2; color:#85958C; }
.empty-row td { text-align:center; padding:26px; color:#8B9C93; font-size:12px; }
@media (max-width: 900px) {
  .fgrid { grid-template-columns:1fr; }
  .pwrow { grid-template-columns:1fr; gap:4px; }
}
