/* Portal Guru SDN Petukangan Utara 02 */
.pgspu-shell{display:flex;min-height:100vh;background:#f5f7fb;color:#1f2937;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.pgspu-sidebar{width:255px;background:#0f5132;color:#fff;padding:18px 14px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;box-sizing:border-box}
.pgspu-brand{display:flex;gap:10px;align-items:center;padding:8px 7px 20px;border-bottom:1px solid rgba(255,255,255,.15)}
.pgspu-logo{font-size:28px}.pgspu-brand strong{display:block;font-size:14px}.pgspu-brand small{display:block;opacity:.8;font-size:10px;margin-top:3px}
.pgspu-sidebar nav{padding-top:18px}.pgspu-nav{display:block;color:#eafff2;text-decoration:none;padding:11px 12px;border-radius:9px;margin:4px 0;font-size:14px}.pgspu-nav:hover,.pgspu-nav.active{background:rgba(255,255,255,.14)}
.pgspu-logout{margin-top:auto;color:#fff;text-decoration:none;padding:11px 12px;border-radius:9px;background:rgba(0,0,0,.14)}
.pgspu-main{flex:1;min-width:0}.pgspu-topbar{height:64px;background:#fff;border-bottom:1px solid #e5e7eb;display:flex;justify-content:space-between;align-items:center;padding:0 28px;box-sizing:border-box;position:sticky;top:0;z-index:10}.pgspu-topbar span{font-weight:700}.pgspu-menu{display:none;border:0;background:none;font-size:20px}
.pgspu-content{padding:28px;max-width:1400px;margin:auto}.pgspu-section{display:none}.pgspu-section.active{display:block}
.pgspu-welcome{background:linear-gradient(135deg,#0f5132,#157347);color:#fff;border-radius:18px;padding:25px;display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.pgspu-welcome h1{margin:0 0 6px;font-size:25px}.pgspu-welcome p{margin:0;opacity:.9}
.pgspu-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:20px}.pgspu-card,.pgspu-panel{background:#fff;border:1px solid #e8ebf0;border-radius:15px;padding:19px;box-shadow:0 4px 14px rgba(15,23,42,.04)}.pgspu-card b{font-size:24px;display:block}.pgspu-card span{display:block;color:#6b7280;font-size:13px;margin:8px 0}.pgspu-card strong{font-size:25px}
.pgspu-grid2{display:grid;grid-template-columns:1fr 1fr;gap:18px}.pgspu-panel h3{margin-top:0}.pgspu-quick{display:grid;grid-template-columns:1fr 1fr;gap:10px}.pgspu-quick button{padding:13px;border:1px solid #e5e7eb;background:#f9fafb;border-radius:10px;cursor:pointer;text-align:left}
.pgspu-section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.pgspu-section-head h2{margin:0 0 4px}.pgspu-section-head p{margin:0;color:#6b7280}.pgspu-btn{background:#0f5132;color:#fff;border:0;border-radius:9px;padding:11px 16px;cursor:pointer;font-weight:700}.pgspu-btn:hover{background:#0b4229}
.pgspu-toolbar{margin-bottom:12px}.pgspu-toolbar input,.pgspu-filters input,.pgspu-filters select,.pgspu-form-grid input,.pgspu-form-grid select{border:1px solid #d7dce3;border-radius:8px;padding:10px;background:#fff;box-sizing:border-box;width:100%}
.pgspu-table-wrap{overflow:auto;background:#fff;border:1px solid #e8ebf0;border-radius:12px}.pgspu-table{width:100%;border-collapse:collapse;min-width:720px}.pgspu-table th,.pgspu-table td{padding:11px 12px;border-bottom:1px solid #edf0f3;text-align:left;font-size:13px}.pgspu-table th{background:#f8fafc}.pgspu-badge{padding:4px 8px;border-radius:20px;font-size:11px}.pgspu-badge.ok{background:#dcfce7;color:#166534}.pgspu-link{border:0;background:none;color:#b91c1c;cursor:pointer}
.pgspu-filters{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;align-items:end;margin-bottom:16px}.pgspu-filters label,.pgspu-form-grid label{font-size:12px;color:#4b5563;font-weight:600}.pgspu-filters input,.pgspu-filters select,.pgspu-form-grid input,.pgspu-form-grid select{margin-top:5px}
.pgspu-dynamic{min-height:80px}.pgspu-empty{background:#fff;border:1px dashed #d1d5db;border-radius:12px;padding:28px;text-align:center;color:#6b7280}
.pgspu-question-form{background:#fff;border:1px solid #e8ebf0;border-radius:15px;padding:20px}.pgspu-form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:16px}
.pgspu-question{background:#fff;border:1px solid #e8ebf0;border-radius:12px;padding:16px;margin-top:12px}.pgspu-question strong{display:block;margin-bottom:9px}.pgspu-option{margin:5px 0;color:#374151}.pgspu-answer{margin-top:10px;padding:8px 10px;background:#ecfdf5;border-radius:8px;color:#166534;font-size:13px}
.pgspu-profile{display:flex;gap:20px;background:#fff;border:1px solid #e8ebf0;border-radius:15px;padding:22px;align-items:center}.pgspu-profile img{border-radius:50%}.pgspu-notice{margin-top:15px;padding:14px;background:#eff6ff;border-left:4px solid #2563eb;border-radius:8px}
.pgspu-login-box{max-width:500px;margin:60px auto;padding:30px;text-align:center;background:#fff;border:1px solid #e5e7eb;border-radius:15px}
.pgspu-overlay{display:none}
.pgspu-close{display:none}
@media(max-width:900px){.pgspu-sidebar{width:220px}.pgspu-cards{grid-template-columns:repeat(2,1fr)}.pgspu-filters,.pgspu-form-grid{grid-template-columns:1fr 1fr}}
@media(max-width:700px){
  .pgspu-shell{display:block;min-height:100dvh;width:100%;overflow-x:hidden}
  .pgspu-sidebar{position:fixed;left:0;top:0;bottom:0;width:min(84vw,310px);height:100dvh;padding:18px 14px;z-index:1001;transform:translateX(-105%);transition:transform .25s ease;box-shadow:10px 0 30px rgba(0,0,0,.18);overflow-y:auto}
  .pgspu-sidebar.open{transform:translateX(0)}
  .pgspu-overlay{display:block;position:fixed;inset:0;background:rgba(15,23,42,.42);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);opacity:0;visibility:hidden;transition:.2s;z-index:1000}
  .pgspu-overlay.open{opacity:1;visibility:visible}
  .pgspu-brand{padding:8px 7px 18px}
  .pgspu-sidebar nav{padding-top:14px}
  .pgspu-nav{padding:12px 13px;margin:3px 0;font-size:15px;border-radius:11px}
  .pgspu-nav.active{background:rgba(255,255,255,.16)}
  .pgspu-close{display:flex;margin-left:auto;margin-bottom:8px;width:38px;height:38px;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.18);border-radius:10px;background:rgba(255,255,255,.08);color:#fff;font-size:22px;cursor:pointer}
  .pgspu-main{width:100%;min-width:0}
  .pgspu-topbar{height:60px;padding:0 14px;position:sticky;top:0;z-index:20;box-shadow:0 1px 8px rgba(15,23,42,.05)}
  .pgspu-topbar>div:first-child{display:flex;align-items:center;min-width:0}
  .pgspu-topbar span{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .pgspu-menu{display:inline-flex;width:40px;height:40px;margin-right:8px;align-items:center;justify-content:center;border:1px solid #e5e7eb;border-radius:11px;background:#fff;color:#0f5132;font-size:21px;cursor:pointer}
  .pgspu-user{font-size:12px;max-width:45%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .pgspu-content{padding:14px;width:100%;box-sizing:border-box}
  .pgspu-cards,.pgspu-grid2,.pgspu-filters,.pgspu-form-grid{grid-template-columns:1fr}
  .pgspu-welcome{padding:20px;border-radius:15px;margin-bottom:14px}
  .pgspu-welcome h1{font-size:21px}
  .pgspu-section-head{display:block}
  .pgspu-section-head .pgspu-actions{margin-top:12px}
  .pgspu-btn{font-size:13px;padding:10px 13px}
  body.pgspu-menu-open{overflow:hidden}
}


.pgspu-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.pgspu-btn-secondary{background:#e8f3ed;color:#0d5c3a}.pgspu-import-help{font-size:13px;color:#667085;margin:10px 0}#pgspu-import-form input[type=file]{display:block;margin:10px 0;padding:10px;border:1px solid #d9e2dc;border-radius:8px;width:100%;box-sizing:border-box}

.pgspu-subtabs{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0 14px}
.pgspu-subtab{border:1px solid #d7e4dc;background:#fff;color:#155b3d;border-radius:10px;padding:10px 13px;cursor:pointer;font-weight:600}
.pgspu-subtab.active{background:#0d5c3a;color:#fff}
.pgspu-att-tab{display:none}.pgspu-att-tab.active{display:block}
.pgspu-btn-secondary{background:#e8f3ed;color:#0d5c3a}
@media(max-width:800px){.pgspu-subtab{font-size:12px;padding:8px 10px}.pgspu-filters{flex-wrap:wrap}}

.pgspu-grade-tab{display:none}.pgspu-grade-tab.active{display:block}
.pgspu-summary-cards{display:flex;gap:12px;flex-wrap:wrap;margin:14px 0}
.pgspu-summary-cards>div{background:#fff;border:1px solid #dce9e1;border-radius:12px;padding:14px 18px;min-width:150px}
.pgspu-summary-cards span{display:block;font-size:12px;color:#667085;margin-bottom:5px}
.pgspu-summary-cards strong{font-size:24px;color:#0d5c3a}

.pgspu-q-tab{display:none}.pgspu-q-tab.active{display:block}
.pgspu-bank-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:14px;margin-top:15px}
.pgspu-question-card{background:#fff;border:1px solid #dce9e1;border-radius:14px;padding:16px}
.pgspu-question-meta{font-size:12px;color:#0d6b47;margin-bottom:8px;font-weight:600}
.pgspu-question-card h4{font-size:16px;line-height:1.5;margin:8px 0 12px}
.pgspu-options{background:#f7faf8;border-radius:10px;padding:10px;margin-bottom:10px;line-height:1.7}
.pgspu-link{border:0;background:none;color:#b42318;cursor:pointer;padding:6px 0}

.pgspu-help{font-size:13px;color:#667085}.pgspu-panel{background:#fff;border:1px solid #dce9e1;border-radius:14px;padding:18px;margin-bottom:16px}

.siguru-student-exam{max-width:900px;margin:30px auto;padding:10px}
.pgspu-exam-hero{text-align:center;background:#0d5c3a;color:#fff;border-radius:18px;padding:30px;margin-bottom:18px}
.pgspu-exam-login,.pgspu-exam-question{background:#fff;border:1px solid #dce9e1;border-radius:14px;padding:20px;margin-bottom:15px}
.pgspu-exam-login label{display:block;margin-bottom:14px;font-weight:600}.pgspu-exam-login input{display:block;width:100%;box-sizing:border-box;margin-top:6px;padding:12px;border:1px solid #d0d9d3;border-radius:9px}
.pgspu-exam-help{font-size:13px;color:#667085;text-align:center}
.pgspu-exam-top{display:flex;justify-content:space-between;gap:15px;align-items:center;background:#fff;border:1px solid #dce9e1;border-radius:14px;padding:18px;margin-bottom:15px;position:sticky;top:10px;z-index:3}
#siguru-timer{font-size:25px;font-weight:800;color:#b42318;background:#fff2f0;border-radius:10px;padding:10px 15px;min-width:90px;text-align:center}
.pgspu-question-number{font-size:12px;color:#0d6b47;font-weight:700}.pgspu-exam-question h3{line-height:1.6}
.pgspu-option{display:block;padding:12px;border:1px solid #e0e8e3;border-radius:9px;margin:8px 0;cursor:pointer}.pgspu-option:hover{background:#f5faf7}
.pgspu-exam-question textarea{width:100%;box-sizing:border-box;border:1px solid #d0d9d3;border-radius:9px;padding:10px}
.pgspu-submit-exam{margin:15px 0 40px}.siguru-exam-result{text-align:center;max-width:600px;margin:50px auto;background:#fff;border:1px solid #dce9e1;border-radius:18px;padding:35px}
.pgspu-result-score{font-size:64px;font-weight:900;color:#0d5c3a;margin:20px}

.pgspu-profile-layout{display:grid;grid-template-columns:280px 1fr;gap:18px}
.pgspu-profile-card{background:#fff;border:1px solid #dce9e1;border-radius:16px;padding:25px;text-align:center;height:max-content}
.pgspu-profile-card .pgspu-avatar img{border-radius:50%;margin-bottom:10px}
.pgspu-profile-role{display:inline-block;background:#e8f3ed;color:#0d5c3a;padding:6px 10px;border-radius:20px;font-size:12px;font-weight:700}
.pgspu-profile-note{font-size:12px;color:#667085;line-height:1.5}
.pgspu-profile-layout textarea{width:100%;box-sizing:border-box;border:1px solid #d0d9d3;border-radius:9px;padding:10px;margin-top:6px}
@media(max-width:800px){.pgspu-profile-layout{grid-template-columns:1fr}}

.pgspu-headmaster-cards{grid-template-columns:repeat(4,1fr)}
.pgspu-headmaster-cards .pgspu-card small{display:block;color:#6b7280;font-size:11px;margin-top:6px;line-height:1.4}
.pgspu-headmaster-hero{background:linear-gradient(135deg,#064e3b,#0f766e)}
.pgspu-headmaster-statrow{display:flex;justify-content:space-between;gap:12px;margin:14px 0 7px;font-size:13px}.pgspu-headmaster-statrow strong{color:#0d5c3a}
.pgspu-progress{height:9px;background:#edf2ef;border-radius:20px;overflow:hidden}.pgspu-progress span{display:block;height:100%;background:#0f5132;border-radius:20px}
.pgspu-headmaster-mini{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px}.pgspu-headmaster-mini>div{background:#f7faf8;border:1px solid #e0ebe4;border-radius:12px;padding:14px}.pgspu-headmaster-mini span{display:block;font-size:12px;color:#667085;margin-bottom:5px}.pgspu-headmaster-mini strong{font-size:23px;color:#0d5c3a}
.pgspu-class-row{margin:14px 0}.pgspu-class-row>div:first-child{display:flex;justify-content:space-between;margin-bottom:6px;font-size:13px}.pgspu-class-row span{color:#667085}
@media(max-width:1100px){.pgspu-headmaster-cards{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.pgspu-headmaster-cards{grid-template-columns:1fr}.pgspu-headmaster-mini{grid-template-columns:1fr}}

.pgspu-toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:14px;flex-wrap:wrap}.pgspu-input{width:100%;padding:11px 13px;border:1px solid #d7dee7;border-radius:10px;background:#fff}.pgspu-notice-inline{font-size:13px;color:#667085}

.pgspu-modal{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:99999;padding:30px;overflow:auto}.pgspu-modal-card{max-width:850px;margin:30px auto;background:#fff;border-radius:16px;padding:24px;box-shadow:0 20px 60px rgba(0,0,0,.2)}.pgspu-modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.pgspu-modal-close{border:0;background:transparent;font-size:28px;cursor:pointer}.pgspu-edit-guru{white-space:nowrap}

/* SIGURU 3.0.5 - ringkasan absensi harian */
.pgspu-recap-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:10px;margin:0 0 16px}
.pgspu-recap-card{border:1px solid #dbe3ee;border-radius:12px;padding:12px 14px;background:#fff;display:flex;flex-direction:column;gap:6px;box-shadow:0 2px 8px rgba(15,23,42,.04)}
.pgspu-recap-card span{font-size:12px;color:#64748b}
.pgspu-recap-card strong{font-size:24px;line-height:1.1;color:#0f172a}

/* SIGURU 3.0.30 - dashboard kepala sekolah mockup */
.pgspu-hm-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:18px 0 16px}
.pgspu-hm-summary-card{display:flex;align-items:flex-start;gap:12px;min-width:0;padding:17px 15px;border:1px solid #e5edf6;border-radius:16px;box-shadow:0 5px 18px rgba(16,35,60,.045)}
.pgspu-hm-summary-card>div{display:flex;flex-direction:column;gap:4px;min-width:0}.pgspu-hm-summary-card span:not(.hm-icon){font-size:13px;font-weight:650}.pgspu-hm-summary-card strong{font-size:29px;line-height:1.1;color:#13253c}.pgspu-hm-summary-card small{font-size:11px;line-height:1.35;color:#50617a}.pgspu-hm-summary-card .hm-icon{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border-radius:50%;font-size:24px;font-weight:700;background:rgba(255,255,255,.72)}
.hm-blue{background:#edf5ff}.hm-blue span:not(.hm-icon){color:#1264d8}.hm-green{background:#eaf8f1}.hm-green .hm-icon{color:#0b9961}.hm-green span:not(.hm-icon){color:#08784c}.hm-amber{background:#fff7e5}.hm-amber .hm-icon{color:#d99000}.hm-amber span:not(.hm-icon){color:#a86c00}.hm-red{background:#fff0f1}.hm-red .hm-icon{color:#e53e4d}.hm-red span:not(.hm-icon){color:#c72e3b}.hm-purple{background:#f4efff}.hm-purple .hm-icon{color:#7c3aed}.hm-purple span:not(.hm-icon){color:#6d28d9}
.pgspu-hm-charts{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(330px,1fr);gap:14px;margin-bottom:16px}.pgspu-hm-chart-panel,.pgspu-hm-attendance-panel,.pgspu-hm-detail-panel{padding:20px!important;border:1px solid #e4ebf4!important;border-radius:17px!important;box-shadow:0 5px 18px rgba(16,35,60,.035)}.pgspu-hm-chart-panel h3,.pgspu-hm-attendance-panel h3,.pgspu-hm-detail-panel h3{margin:0 0 5px!important;font-size:19px!important;color:#10223b}.pgspu-hm-subtitle{margin:0 0 16px;color:#60728c;font-size:13px}
.pgspu-hm-bar-chart{height:235px;display:flex;align-items:stretch;gap:clamp(5px,1.1vw,14px);padding:14px 8px 0;border-bottom:1px solid #e4eaf2;overflow-x:auto}.pgspu-hm-bar-item{flex:1 0 27px;min-width:27px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:7px}.pgspu-hm-bar-item>strong{font-size:12px;color:#172943}.pgspu-hm-bar-track{height:165px;width:min(100%,42px);display:flex;align-items:flex-end;justify-content:center;background:linear-gradient(to top,#edf2f7 1px,transparent 1px);background-size:100% 25%;border-radius:7px 7px 0 0}.pgspu-hm-bar-track span{display:block;width:100%;min-height:5px;border-radius:6px 6px 0 0;background:linear-gradient(180deg,#4c9dff,#1976e8)}.pgspu-hm-bar-item:nth-child(5n+1) .pgspu-hm-bar-track span{background:linear-gradient(180deg,#61d1aa,#24aa80)}.pgspu-hm-bar-item:nth-child(5n+3) .pgspu-hm-bar-track span{background:linear-gradient(180deg,#ffd35a,#f5a900)}.pgspu-hm-bar-item:nth-child(5n+4) .pgspu-hm-bar-track span{background:linear-gradient(180deg,#ffa66b,#f47d38)}.pgspu-hm-bar-item small{font-size:11px;white-space:nowrap;color:#4e617c}
.pgspu-hm-attendance-layout{display:flex;align-items:center;gap:20px;min-height:220px}.pgspu-hm-donut{width:clamp(130px,14vw,190px);height:clamp(130px,14vw,190px);flex:0 0 auto;border-radius:50%;display:grid;place-items:center;position:relative}.pgspu-hm-donut:before{content:"";position:absolute;inset:27%;background:#fff;border-radius:50%}.pgspu-hm-donut>div{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px}.pgspu-hm-donut strong{font-size:25px;color:#10223b}.pgspu-hm-donut span{font-size:12px;color:#53657d}.pgspu-hm-legend{flex:1;min-width:0;display:flex;flex-direction:column;gap:12px}.pgspu-hm-legend>div{display:grid;grid-template-columns:12px minmax(72px,1fr) auto auto;align-items:center;gap:7px;font-size:12px}.pgspu-hm-legend strong{font-size:11px;white-space:nowrap}.pgspu-hm-legend small{color:#287f80;white-space:nowrap}.hm-dot{width:10px;height:10px;border-radius:50%;display:block}.hm-dot-green{background:#16a36a}.hm-dot-amber{background:#f5a900}.hm-dot-blue{background:#2385f5}.hm-dot-red{background:#f04452}.hm-dot-gray{background:#cbd5e1}
.pgspu-hm-detail-panel{margin-bottom:16px}.pgspu-hm-detail-heading{margin-bottom:15px}.pgspu-hm-class-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.pgspu-hm-class-card{border:1px solid #cfe7df;border-radius:12px;overflow:hidden;background:#fff}.pgspu-hm-class-head{display:flex;justify-content:space-between;align-items:center;gap:6px;padding:12px 10px;background:#f3fbf8;color:#103b2e}.pgspu-hm-class-head>strong{font-size:13px}.pgspu-hm-class-head>span{display:flex;align-items:center;gap:4px;font-size:13px;white-space:nowrap}.pgspu-hm-class-head small{display:block;font-size:10px;font-weight:400}.pgspu-hm-class-status{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:8px}.pgspu-hm-class-status>div{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border-radius:8px;padding:7px 2px;min-width:0}.pgspu-hm-class-status b{font-size:12px;line-height:1.2;padding:3px 6px;border-radius:5px;background:rgba(255,255,255,.75)}.pgspu-hm-class-status small{font-size:10px}.hm-status-green{background:#e7f8ef;color:#08784c}.hm-status-amber{background:#fff6df;color:#a86c00}.hm-status-blue{background:#eaf3ff;color:#1264d8}.hm-status-red{background:#fff0f1;color:#c72e3b}.pgspu-hm-secondary-cards{margin-top:0}.pgspu-hm-secondary-cards .pgspu-card{min-width:0}
@media(max-width:1200px){.pgspu-hm-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.pgspu-hm-charts{grid-template-columns:1fr}.pgspu-hm-class-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:680px){.pgspu-hm-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.pgspu-hm-summary-card{padding:12px 10px;gap:8px}.pgspu-hm-summary-card .hm-icon{width:32px;height:32px;flex-basis:32px;font-size:19px}.pgspu-hm-summary-card strong{font-size:24px}.pgspu-hm-attendance-layout{flex-direction:column}.pgspu-hm-legend{width:100%}.pgspu-hm-class-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pgspu-hm-chart-panel,.pgspu-hm-attendance-panel,.pgspu-hm-detail-panel{padding:14px!important}.pgspu-hm-bar-chart{height:210px}.pgspu-hm-bar-track{height:145px}}


/* SIGURU 3.0.40 - Nilai Siswa dashboard */
.pgspu-grade-dashboard .pgspu-grade-hero{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;padding:22px 24px;margin:0 0 18px;background:linear-gradient(120deg,#fff 0%,#f0f8f4 100%);border:1px solid #dcebe3;border-radius:16px}
.pgspu-grade-dashboard .pgspu-grade-hero h2{margin:6px 0 5px;font-size:27px;color:#123b2a}
.pgspu-grade-dashboard .pgspu-grade-hero p{margin:0;color:#617367}
.pgspu-grade-eyebrow{font-size:11px;font-weight:800;letter-spacing:1.1px;color:#168052}
.pgspu-grade-context{display:flex;gap:10px;min-width:340px}
.pgspu-grade-context label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:#53665c;flex:1}
.pgspu-grade-context input,.pgspu-grade-context select{min-width:0;width:100%;padding:10px;border:1px solid #d4e1da;border-radius:9px;background:#fff;color:#173c2c}
.pgspu-grade-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 22px}
.pgspu-grade-stat{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #e0eae4;border-radius:13px;padding:16px;box-shadow:0 4px 14px rgba(23,70,48,.04)}
.pgspu-grade-stat-icon{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;background:#eaf6ef;font-size:22px}
.pgspu-grade-stat div{display:flex;flex-direction:column;gap:3px}.pgspu-grade-stat strong{font-size:23px;line-height:1.15;color:#173f2d}.pgspu-grade-stat div span{font-size:12px;color:#687a70}
.pgspu-grade-section-title{font-size:17px;margin:0 0 12px;color:#193c2b}
.pgspu-grade-subject-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:22px}
.pgspu-grade-subject-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:7px;padding:14px;background:#fff;border:1px solid #dfe9e3;border-radius:12px;cursor:pointer;min-height:112px;transition:transform .15s,border-color .15s,box-shadow .15s}
.pgspu-grade-subject-card:hover,.pgspu-grade-subject-card:focus{border-color:#168052;box-shadow:0 5px 15px rgba(22,128,82,.1);transform:translateY(-1px);outline:none}
.pgspu-grade-subject-icon{font-size:23px}.pgspu-grade-subject-card strong{font-size:13px;color:#183d2c}.pgspu-grade-subject-card small{font-size:11px;color:#74847b}
.pgspu-grade-section-title-row{display:flex;justify-content:space-between;align-items:center;gap:12px}
.pgspu-grade-note{font-size:12px;color:#718078}
.pgspu-grade-tabs{margin-top:0}
@media(max-width:900px){.pgspu-grade-dashboard .pgspu-grade-hero{align-items:stretch;flex-direction:column}.pgspu-grade-context{min-width:0}.pgspu-grade-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.pgspu-grade-subject-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.pgspu-grade-context{flex-direction:column}.pgspu-grade-summary{gap:8px}.pgspu-grade-stat{padding:11px}.pgspu-grade-stat strong{font-size:19px}.pgspu-grade-subject-card{padding:11px;min-height:100px}}

/* SIGURU 3.0.41 - assessment selector */
#pgspu-grade-assessment{min-width:180px;width:100%;padding:10px;border:1px solid #d4e1da;border-radius:9px;background:#fff;color:#173c2c}
#pgspu-grade-box .pgspu-table{min-width:520px}
#pgspu-grade-box .pgspu-score{width:100%;min-width:90px;box-sizing:border-box;padding:8px;border:1px solid #d5e1da;border-radius:7px}

/* SIGURU 3.0.42 structured score entry */
.pgspu-grade-table-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:14px 0 10px}
.pgspu-grade-table-head h3{margin:0;color:#173f2d}.pgspu-grade-table-head p{margin:0;color:#6c7b72;font-size:12px}
.pgspu-input-grade-table th{white-space:nowrap}.pgspu-input-grade-table td:first-child,.pgspu-input-grade-table th:first-child{text-align:center;width:44px}
.pgspu-input-grade-table td:nth-child(2){min-width:190px;font-weight:600}
.pgspu-input-grade-table .pgspu-score{width:76px;min-width:66px;padding:8px 6px;border:1px solid #cfddd4;border-radius:7px;text-align:center}
.pgspu-input-grade-table .pgspu-score:focus{outline:2px solid #8cc9a8;border-color:#238657}
.pgspu-input-grade-table .pgspu-uh-average,.pgspu-input-grade-table .pgspu-final-score{font-weight:700;text-align:center;color:#174c32;background:#f3faf5}
.pgspu-grade-actions{margin:14px 0}
@media(max-width:720px){.pgspu-input-grade-table .pgspu-score{width:64px;min-width:60px}.pgspu-grade-table-head{align-items:flex-start;flex-direction:column}}


/* SIGURU 3.0.59 — Leger wali kelas inline dan responsif */
.pgspu-grade-tabs [data-grade-tab="leger"]{background:#14532d;color:#fff;border-color:#14532d}
.pgspu-inline-ledger{margin-top:8px;min-width:0;width:100%;box-sizing:border-box}
.pgspu-inline-ledger .siguru-ns{max-width:100%!important;width:100%;box-sizing:border-box}
.pgspu-inline-ledger .siguru-ns h2{font-size:clamp(20px,2.2vw,28px);line-height:1.25;margin:4px 0 10px}
.pgspu-inline-ledger .siguru-ns p{line-height:1.55}
.pgspu-inline-ledger .siguru-ns form{display:flex;align-items:end;gap:10px;flex-wrap:wrap}
.pgspu-inline-ledger .siguru-ns form label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#526174}
.pgspu-inline-ledger .siguru-ns select,
.pgspu-inline-ledger .siguru-ns button{min-height:40px;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:8px;padding:8px 12px}
.pgspu-inline-ledger .siguru-ns button{background:#14532d;color:#fff;font-weight:700;cursor:pointer}
.pgspu-inline-ledger .siguru-ledger-scroll{width:100%;max-width:100%;overflow:auto;overscroll-behavior-x:contain;border:1px solid #d9e1ea;border-radius:10px;background:#fff}
.pgspu-inline-ledger .siguru-ns table{width:100%;min-width:1100px;border-collapse:collapse;font-size:12px}
.pgspu-inline-ledger .siguru-ns th{background:#eef4fb;white-space:nowrap}
.pgspu-inline-ledger .siguru-ns td,.pgspu-inline-ledger .siguru-ns th{padding:8px;border:1px solid #e2e8f0;text-align:center}
.pgspu-inline-ledger .siguru-ns td:nth-child(2),.pgspu-inline-ledger .siguru-ns th:nth-child(2){text-align:left;min-width:180px}
@media(max-width:720px){
 .pgspu-inline-ledger .siguru-ns form{align-items:stretch;flex-direction:column}
 .pgspu-inline-ledger .siguru-ns form label,.pgspu-inline-ledger .siguru-ns form button{width:100%}
 .pgspu-inline-ledger .siguru-ns table{min-width:1000px;font-size:11px}
 .pgspu-inline-ledger .siguru-ns td,.pgspu-inline-ledger .siguru-ns th{padding:6px}
}
