:root{--green:#176b49;--green2:#0f5137;--ink:#172b22;--muted:#64756b;--line:#e0e9e3;--bg:#f4f8f5;--white:#fff;--shadow:0 10px 32px rgba(20,65,42,.07)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.55 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}.top{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:15px max(20px,calc((100% - 1180px)/2));background:#fff;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;color:var(--ink);text-decoration:none;font-weight:800}.brand small{display:block;font-weight:500;font-size:11px;color:var(--muted)}.logo{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:var(--green);color:#fff;font-size:13px;letter-spacing:.5px}.top-right{display:flex;align-items:center;gap:12px;font-size:13px}.wrap{max-width:1180px;margin:30px auto;padding:0 20px;min-height:70vh}.foot{text-align:center;color:var(--muted);font-size:12px;padding:20px}.panel{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;box-shadow:var(--shadow);margin-bottom:20px}.panel h2{font-size:18px;margin:0 0 16px}.panel h1{font-size:27px;line-height:1.2;margin:8px 0 12px}.narrow{max-width:680px;margin:25px auto}.auth{display:grid;grid-template-columns:1.1fr .9fr;gap:30px;align-items:center;max-width:1000px;margin:45px auto}.auth-copy{padding:20px}.auth-copy h1{font-size:clamp(34px,4vw,50px);line-height:1.08;margin:14px 0}.auth-copy p{font-size:17px;color:var(--muted);max-width:530px}.auth-copy li{margin:10px 0}.auth-form{margin:0}.eyebrow{font-size:11px;letter-spacing:1.5px;color:var(--green);font-weight:800}.muted{color:var(--muted)}.small{font-size:12px}.stack{display:flex;flex-direction:column;gap:10px}.stack label,.auth-form label{font-size:13px;font-weight:700;margin-top:4px}input,select,textarea{width:100%;border:1px solid #cfddd3;border-radius:9px;padding:11px 12px;background:#fff;color:var(--ink);font:inherit;min-width:0}input:focus,select:focus,textarea:focus{outline:2px solid #a7d9ba;border-color:var(--green)}.btn{border:0;border-radius:10px;padding:10px 15px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font:700 13px system-ui;text-decoration:none;cursor:pointer;white-space:nowrap}.btn-primary{background:var(--green);color:#fff}.btn-primary:hover{background:var(--green2)}.btn-light{background:#edf5ef;color:var(--green2)}.full{width:100%;margin-top:12px;padding:13px}.sub-link{display:inline-block;color:var(--green);font-size:13px;font-weight:700;text-decoration:none;margin-top:10px}.error{background:#fff0ee;border:1px solid #f1c4bd;color:#8b2b20;padding:12px;border-radius:10px;margin:10px 0}.notice{background:#e7f6eb;border:1px solid #b8e1c4;color:#165b35;padding:12px 15px;border-radius:10px;margin-bottom:18px}.page-head{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:22px}.page-head h1{font-size:30px;margin:3px 0}.pill{display:inline-flex;padding:5px 10px;border-radius:99px;background:#edf5ef;color:var(--green);font-size:11px;font-weight:800}.pill.green{background:#e4f7e9;color:#1c713d}.pill.red{background:#ffedeb;color:#a22c22}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.stats div{background:#f6faf7;border:1px solid var(--line);border-radius:13px;padding:18px}.stats strong{display:block;font-size:26px;color:var(--green);line-height:1.2}.stats span{display:block;color:var(--muted);font-size:12px;margin-top:6px}.stats.big{margin-bottom:22px}.menu-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:22px 0}.menu-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;text-decoration:none;color:var(--ink);display:flex;flex-direction:column;gap:8px;box-shadow:var(--shadow)}.menu-card:hover{border-color:#a9cfb5;transform:translateY(-1px)}.menu-icon{font-size:25px}.menu-card small{color:var(--muted);font-size:12px}.plain-list{padding-left:20px;color:var(--muted)}.plain-list li{margin:8px 0}.cols{display:grid;grid-template-columns:1fr 1.35fr;gap:18px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:13px}th,td{text-align:left;padding:11px 10px;border-bottom:1px solid var(--line);vertical-align:top}th{background:#f5f9f6;color:#456253;font-size:11px;text-transform:uppercase;letter-spacing:.4px}tr:last-child td{border-bottom:0}.inline{display:inline-flex;gap:6px;align-items:center}.inline select{width:auto;padding:6px}.inline .btn{padding:7px 10px}.link-danger{border:0;background:none;color:#b32b22;font-weight:700;cursor:pointer}.token-panel{border-color:#9cc9a8;background:#f8fff9}.token{padding:15px;border:1px dashed var(--green);border-radius:10px;background:#fff;font:700 18px ui-monospace,monospace;letter-spacing:1px;word-break:break-all;margin:12px 0}.criterion h3{font-size:16px;margin:8px 0 10px;white-space:pre-line}.score-row{display:flex;align-items:center;gap:15px;margin:14px 0}.score-row label{font-weight:800}.score-row select{max-width:330px}.sticky-save{position:sticky;bottom:10px;box-shadow:0 5px 20px #173f2c2b;padding:14px 20px}.auth-form h2{font-size:22px}.auth-form input{margin-bottom:5px}.hr{border:0;border-top:1px solid var(--line);margin:12px 0}hr{border:0;border-top:1px solid var(--line);width:100%;margin:14px 0}@media(max-width:800px){.auth,.cols{grid-template-columns:1fr}.auth{margin:18px auto;gap:8px}.auth-copy{padding:10px}.auth-copy h1{font-size:34px}.menu-grid{grid-template-columns:repeat(2,1fr)}.page-head{align-items:flex-start;flex-direction:column}.stats{gap:8px}.stats div{padding:12px}.stats strong{font-size:22px}.panel{padding:18px}.top{padding:12px 16px}.top-right>span{display:none}.wrap{margin:18px auto;padding:0 12px}}@media(max-width:420px){.menu-grid{grid-template-columns:1fr 1fr}.menu-card{padding:14px}.brand{font-size:13px}.brand small{font-size:10px}.logo{width:38px;height:38px}.stats span{font-size:11px}}@media print{.top,.foot,.btn,.sticky-save,.sub-link{display:none!important}body{background:#fff}.wrap{max-width:none;margin:0;padding:0}.panel{box-shadow:none;border:1px solid #ddd;break-inside:avoid}.page-head{margin:0 0 10px}}

.app-shell{display:grid;grid-template-columns:245px minmax(0,1fr);max-width:1500px;margin:0 auto;min-height:calc(100vh - 76px)}.sidebar{background:#fff;border-right:1px solid var(--line);padding:22px 14px;display:flex;flex-direction:column;gap:6px}.side-label{font-size:10px;letter-spacing:1.4px;font-weight:800;color:var(--muted);padding:5px 12px 12px}.sidebar a{display:flex;align-items:center;gap:11px;padding:12px;border-radius:10px;text-decoration:none;color:#40584b;font-weight:650;font-size:13px}.sidebar a:hover{background:#e8f4ec;color:var(--green)}.app-shell .wrap{max-width:none;width:100%;margin:0;padding:26px;min-width:0}.indicator-step[hidden]{display:none!important}.step-head{display:flex;align-items:center;gap:18px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:15px 18px;margin-bottom:14px}.step-progress{height:7px;flex:1;background:#e6eee8;border-radius:99px;overflow:hidden}.step-progress span{display:block;height:100%;width:0;background:var(--green);transition:width .2s}.step-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px;position:sticky;bottom:10px;box-shadow:0 5px 20px #173f2c20}.step-actions button:disabled{opacity:.45;cursor:not-allowed}@media(max-width:760px){.app-shell{grid-template-columns:1fr}.sidebar{border-right:0;border-bottom:1px solid var(--line);padding:8px;flex-direction:row;overflow-x:auto}.side-label{display:none}.sidebar a{flex:0 0 auto;padding:10px;font-size:12px}.app-shell .wrap{padding:16px 12px}.step-head{flex-wrap:wrap}.step-progress{flex-basis:100%;order:3}.step-actions{flex-wrap:wrap}.step-actions button{flex:1}.step-actions #saveSteps{flex-basis:100%}}

.indicator-nav{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 16px;margin-bottom:14px}
.indicator-nav-title{font-size:13px;font-weight:800;margin-bottom:10px;color:#365746}
.indicator-nav-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(58px,1fr));gap:7px;max-height:150px;overflow:auto;padding:2px}
.indicator-jump{border:1px solid #d7e4da;background:#f8fbf9;color:#315943;border-radius:8px;padding:8px 5px;font:700 12px system-ui;cursor:pointer}
.indicator-jump:hover{border-color:var(--green);background:#e8f4ec}
.indicator-jump.current{background:var(--green);color:#fff;border-color:var(--green);box-shadow:0 0 0 2px #b9dec5}
.indicator-jump.completed:not(.current){background:#e4f7e9;border-color:#9dceaa;color:#176b49}
@media(max-width:760px){.indicator-nav-grid{grid-template-columns:repeat(auto-fill,minmax(52px,1fr));max-height:125px}}

.score-choice{margin:18px 0 20px}.score-choice-label{font-weight:800;font-size:14px;margin-bottom:10px}.score-buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.score-option{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:100px;padding:12px 8px;border:1px solid #cfded3;border-radius:13px;background:#fff;text-align:center;cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s}.score-option input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}.score-number{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#edf5ef;color:#176b49;font-size:18px;font-weight:800}.score-description{font-size:12px;line-height:1.35;color:#4f6257}.score-option:has(input:checked){border:2px solid #176b49;background:#eaf7ee;box-shadow:0 0 0 2px #c9e7d1}.score-option:has(input:checked) .score-number{background:#176b49;color:#fff}.score-option:focus-within{outline:2px solid #8dcba0;outline-offset:2px}@media(max-width:600px){.score-buttons{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.score-option{min-height:76px;flex-direction:row;justify-content:flex-start;text-align:left;padding:10px}.score-number{flex:0 0 34px;width:34px;height:34px}.score-description{font-size:12px}.score-choice{margin:14px 0 18px}}


/* Expanded profile form: responsive and comfortable on desktop/mobile. */
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px;margin-top:16px}
.form-grid>div{min-width:0}
.form-grid .span-2{grid-column:1/-1}
.form-grid input,.form-grid textarea,.form-grid select{width:100%;box-sizing:border-box}
.form-grid input[readonly]{background:#f1f5f2;color:#64736b;border-color:#d7e2db}
.form-actions{display:flex;justify-content:flex-end;gap:12px;margin:4px 0 24px}
@media(max-width:680px){
 .form-grid{grid-template-columns:minmax(0,1fr);gap:12px}
 .form-grid .span-2{grid-column:auto}
 .form-actions .btn{width:100%}
}

/* Data Guru lengkap dan impor Excel */
.table-wrap table{min-width:1050px}.table-wrap{max-width:100%;overflow-x:auto}.stack input[type=file]{padding:10px;background:#f8fbf9}


/* Compact responsive Data Guru: list first, form in modal */
.teacher-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:14px 0 16px;padding:14px 16px;background:#fff;border:1px solid var(--line);border-radius:14px}
.teacher-toolbar-info{display:flex;flex-direction:column;gap:4px;min-width:0}
.teacher-toolbar-info strong{font-size:17px}
.teacher-toolbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.teacher-list-panel{padding:18px;min-width:0}
.teacher-list-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.teacher-list-head h2{margin:0;font-size:18px}
.teacher-table-wrap{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.teacher-table{min-width:1450px;width:100%;border-collapse:collapse}
.teacher-table th,.teacher-table td{padding:10px 12px;vertical-align:top;white-space:normal}
.teacher-table th{position:sticky;top:0;background:#f3f8f4;z-index:1}
.teacher-table td{max-width:260px;overflow-wrap:anywhere}
.teacher-actions{white-space:nowrap!important;min-width:90px}
.teacher-actions form{display:inline-block;margin-left:7px}
.teacher-import-panel{margin-top:14px}
.teacher-import-panel[hidden]{display:none!important}
.teacher-modal-backdrop{display:none;position:fixed;inset:0;z-index:10000;background:rgba(15,35,25,.56);padding:18px;align-items:center;justify-content:center;overflow-y:auto}
.teacher-modal-backdrop.is-open{display:flex}
.teacher-modal{width:min(900px,100%);max-height:calc(100dvh - 36px);overflow:auto;background:#fff;border-radius:18px;box-shadow:0 20px 70px rgba(0,0,0,.22);padding:22px;overscroll-behavior:contain}
.teacher-modal-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:10px}
.teacher-modal-head h2{margin:4px 0 0;font-size:22px}
.teacher-modal-close{border:0;border-radius:10px;width:40px;height:40px;flex:0 0 40px;background:#eef5ef;color:#164d35;font-size:28px;line-height:1;cursor:pointer}
.teacher-modal-form{margin-top:12px}
.teacher-modal-form .form-actions{position:sticky;bottom:-1px;background:#fff;padding:12px 0 2px;margin-bottom:0;z-index:2}
body.modal-open{overflow:hidden}
@media(max-width:760px){
 .teacher-toolbar{align-items:stretch;flex-direction:column;padding:12px}
 .teacher-toolbar-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
 .teacher-toolbar-actions .btn{width:100%;min-width:0;box-sizing:border-box;text-align:center;padding:10px 8px;font-size:13px}
 .teacher-list-panel{padding:12px}
 .teacher-list-head{align-items:flex-start;flex-direction:column}
 .teacher-table{min-width:1300px}
 .teacher-modal-backdrop{padding:8px;align-items:flex-end}
 .teacher-modal{width:100%;max-height:calc(100dvh - 16px);border-radius:18px 18px 10px 10px;padding:16px}
 .teacher-modal-head h2{font-size:20px}
 .teacher-modal-form .form-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
 .teacher-modal-form .form-actions .btn{width:100%}
}
@media(max-width:390px){.teacher-toolbar-actions{grid-template-columns:1fr}.teacher-modal-form .form-actions{grid-template-columns:1fr}}

/* Data Guru: daftar ringkas dan popup detail */
.teacher-summary-table{min-width:720px;width:100%}.teacher-summary-table th,.teacher-summary-table td{padding:12px 14px}.teacher-name-cell{min-width:170px}.teacher-name-cell strong,.teacher-name-cell span{display:block}.teacher-actions{white-space:nowrap;min-width:190px}.teacher-actions .btn-sm{padding:7px 10px;font-size:12px}.teacher-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}.teacher-detail-item{min-width:0;border:1px solid var(--line);background:#f8fbf9;border-radius:10px;padding:11px 12px}.teacher-detail-item span{display:block;color:var(--muted);font-size:11px;font-weight:750;margin-bottom:4px}.teacher-detail-item strong{display:block;font-size:14px;font-weight:650;overflow-wrap:anywhere;white-space:pre-wrap}.teacher-detail-modal .form-actions{display:flex;justify-content:flex-end;position:sticky;bottom:-1px;background:#fff;padding-top:10px}.teacher-summary-table .inline{margin-left:3px}.teacher-summary-table .link-danger{padding:7px 5px;font-size:12px}
@media(max-width:600px){.teacher-detail-grid{grid-template-columns:1fr}.teacher-summary-table{min-width:650px}.teacher-list-panel{padding:12px}.teacher-list-head{align-items:flex-start;gap:8px;flex-direction:column}.teacher-toolbar{gap:10px}.teacher-toolbar-actions{display:flex;flex-wrap:wrap;gap:8px}.teacher-toolbar-actions .btn{flex:1 1 auto}.teacher-detail-modal .form-actions{display:flex}.teacher-detail-modal .form-actions .btn{width:100%}}


/* Jadwal PKG and master-based competency instrument */
.pkg-meta-sections{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.pkg-meta-section{border:1px solid var(--line);background:#fbfdfb;border-radius:12px;padding:14px;min-width:0}
.pkg-meta-section h3{font-size:14px;margin:0 0 10px;color:var(--green)}
.pkg-meta-section dl{display:grid;grid-template-columns:minmax(92px,.7fr) minmax(0,1fr);gap:6px 10px;margin:0;font-size:12px}
.pkg-meta-section dt{color:var(--muted)}.pkg-meta-section dd{margin:0;font-weight:650;overflow-wrap:anywhere}
.pkg-score-legend{background:#f8fbf8;border:1px solid var(--line);border-radius:14px;padding:16px;margin-bottom:14px}
.pkg-legend-instruction{margin:5px 0 7px;font-size:13px;line-height:1.4;color:var(--text)}
.pkg-legend-list p{margin:2px 0;line-height:1.45;font-size:13px}
.pkg-legend-list b{font-weight:700}
.pkg-score-legend>strong,.pkg-score-legend>span{display:block}.pkg-score-legend>span{color:var(--muted);font-size:12px;margin-top:2px}
.pkg-legend-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:12px}
.pkg-legend-grid>div{display:flex;gap:9px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:9px;padding:9px;font-size:11px;line-height:1.4}
.pkg-legend-grid b{display:grid;place-items:center;flex:0 0 28px;height:28px;border-radius:50%;background:#176b49;color:#fff;font-size:14px}
.competency-group{background:#fff;border:1px solid var(--line);border-radius:14px;margin:12px 0;overflow:hidden;box-shadow:var(--shadow)}
.competency-group>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 18px;cursor:pointer;list-style:none;background:#edf6ef;color:#184b34}
.competency-group>summary::-webkit-details-marker{display:none}.competency-group>summary span:first-child{display:flex;flex-direction:column;gap:4px}.competency-group>summary small{font-size:11px;color:var(--muted)}.competency-chevron{font-size:24px;transition:transform .15s}.competency-group[open] .competency-chevron{transform:rotate(180deg)}
.pkg-criteria-wrap{padding:0 12px 12px}.pkg-criteria-table{min-width:950px;table-layout:fixed}.pkg-criteria-table th{position:sticky;top:0;z-index:1}.pkg-criteria-table td{padding:12px 10px}.pkg-criteria-table .pkg-major-task-row td{background:#d9d9d9;color:#172b22;font-weight:800}.pkg-indicator-title{font-weight:750;white-space:pre-line;line-height:1.4}.pkg-evidence{font-size:12px;color:var(--muted);margin-top:8px;line-height:1.45}.pkg-note-label{display:block;font-size:11px;font-weight:800;margin-top:10px}.pkg-criteria-table textarea{font-size:12px;margin-top:4px;min-height:55px}.pkg-score-buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.pkg-score-btn{display:block;cursor:pointer}.pkg-score-btn input{position:absolute;opacity:0;width:1px;height:1px}.pkg-score-btn span{display:grid;place-items:center;min-height:42px;border:1px solid #cfded3;border-radius:9px;background:#f8fbf9;color:#245b3f;font-weight:850;font-size:17px}.pkg-score-btn.selected span,.pkg-score-btn:has(input:checked) span{background:#176b49;border-color:#176b49;color:#fff;box-shadow:0 0 0 2px #c9e7d1}.pkg-score-btn:focus-within span{outline:2px solid #8dcba0;outline-offset:2px}.pkg-score-desc{font-size:12px;line-height:1.45;background:#f8fbf8;border:1px solid var(--line);border-radius:9px;padding:10px;min-height:70px;overflow-wrap:anywhere}.pkg-save-bar{z-index:5}.pkg-save-bar .small{max-width:70%}
@media(max-width:1000px){.pkg-meta-sections{grid-template-columns:1fr}.pkg-legend-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pkg-meta-section dl{grid-template-columns:minmax(110px,.6fr) minmax(0,1fr)}}
@media(max-width:600px){.pkg-legend-grid{grid-template-columns:1fr}.competency-group>summary{padding:13px}.pkg-criteria-wrap{padding:0 6px 8px}.pkg-save-bar{position:sticky;bottom:6px;background:#fff;align-items:stretch;flex-direction:column}.pkg-save-bar .small{max-width:none}.pkg-save-bar .btn{width:100%}.pkg-score-desc{font-size:11px}.pkg-meta-section{padding:12px}}
@media print{.sidebar,.top,.foot,.pkg-save-bar,.btn{display:none!important}.competency-group{break-inside:avoid;box-shadow:none}.competency-group>summary{background:#eee!important;color:#000}.competency-group:not([open])>.table-wrap{display:block}.pkg-criteria-table{min-width:0;font-size:9px}.pkg-criteria-table th,.pkg-criteria-table td{padding:5px}.pkg-score-btn span{min-height:25px}.pkg-meta-sections{grid-template-columns:repeat(3,minmax(0,1fr))}.pkg-legend-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* Progress indikator per kompetensi */
.competency-summary-main{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1}
.competency-progress{display:block;width:min(100%,360px);height:7px;background:#dce9df;border-radius:999px;overflow:hidden}
.competency-progress>span{display:block;height:100%;background:var(--green);border-radius:999px;transition:width .2s ease}
.competency-group>summary{align-items:center}
@media(max-width:600px){.competency-progress{width:100%;max-width:none}.competency-summary-main{width:100%}.competency-group>summary{gap:8px}.competency-chevron{flex:0 0 auto}}


/* PKG: accordion satu kompetensi terbuka; header mengalir normal agar ruang indikator maksimal. */
.competency-group { scroll-margin-top: 12px; }
.competency-group > summary { position: static !important; top: auto !important; z-index: auto; }
.competency-group > .pkg-criteria-wrap { position: static; }
.competency-group[open] { overflow: visible; }
@media (max-width: 600px) {
  .competency-group > summary { position: static !important; }
}

/* Navigasi fokus indikator yang belum diisi pada instrumen PKG */
.competency-focus-status{display:block;min-height:1em;font-size:11px;font-weight:600}
.pkg-criteria-table tbody tr.pkg-indicator-focus{outline:2px solid #8dcba0;outline-offset:-2px;background:#f4fbf5}
.pkg-criteria-table tbody tr{scroll-margin-top:18px}
.pkg-score-btn:focus{outline:2px solid #8dcba0;outline-offset:3px;border-radius:9px}
@media(prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto}.pkg-criteria-table tbody tr{scroll-behavior:auto}}

/* Review penilaian sementara PKG */
.pkg-save-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.pkg-review-dialog{width:min(1100px,calc(100vw - 28px));max-width:1100px;max-height:85vh;overflow:auto;border:1px solid var(--line);border-radius:16px;padding:22px;background:#fff;color:var(--ink);box-shadow:0 20px 70px rgba(0,0,0,.25)}
.pkg-review-dialog::backdrop{background:rgba(15,35,25,.48)}
.pkg-review-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}
.pkg-review-head h2{margin:0 0 6px;font-size:22px}
.pkg-review-head p{margin:0}
.pkg-review-table{width:100%;min-width:760px;border-collapse:collapse;font-size:13px}
.pkg-review-table th,.pkg-review-table td{padding:11px 10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.pkg-review-table th{background:#edf6ef;color:#245b3f}
.pkg-review-total td{font-weight:800;background:#f4f8f5}
.pkg-review-note{margin:14px 0 0;padding:12px;border-radius:9px;background:#f4f8f5}
@media(max-width:600px){.pkg-save-actions{display:grid;grid-template-columns:1fr;width:100%}.pkg-save-actions .btn{width:100%}.pkg-review-dialog{padding:15px;max-height:88vh}.pkg-review-head{align-items:flex-start}.pkg-review-head h2{font-size:18px}.pkg-review-table{font-size:12px}}


/* Rekap dan Tindak Lanjut PKG — pratinjau A4 responsif */
.followup-selector{max-width:760px}.followup-select-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}.followup-select-form label{grid-column:1/-1;font-weight:750}.followup-select-form select{width:100%;min-width:0}.followup-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:14px 0}.followup-toolbar>div{display:flex;flex-direction:column;gap:4px}.followup-document{background:#fff;border:1px solid var(--line);border-radius:12px;padding:22px;max-width:1400px;margin:0 auto;box-shadow:var(--shadow);color:#172b22}.followup-document h1{text-align:center;font-size:19px;line-height:1.35;margin:0 0 4px}.followup-school-name{text-align:center;font-weight:700;margin-bottom:18px}.followup-meta-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:16px}.followup-meta-grid section{min-width:0}.followup-meta-grid h3{font-size:13px;margin:0 0 8px}.followup-meta-grid dl{display:grid;grid-template-columns:125px minmax(0,1fr);gap:5px 8px;margin:0;font-size:11px}.followup-meta-grid dt{font-weight:700}.followup-meta-grid dd{margin:0;overflow-wrap:anywhere}.followup-table-wrap{width:100%;overflow-x:auto}.followup-result-table{width:100%;min-width:980px;border-collapse:collapse;font-size:10px;table-layout:fixed}.followup-result-table th,.followup-result-table td{border:1px solid #9ca99f;padding:7px 6px;vertical-align:top;overflow-wrap:anywhere}.followup-result-table{border:1px solid #444}.followup-result-table tbody tr:last-child td{border-bottom:1px solid #444!important}.followup-result-table th{background:#edf5ef;text-align:center}.followup-result-table th:nth-child(1){width:4%}.followup-result-table th:nth-child(2){width:17%}.followup-result-table th:nth-child(3){width:8%}.followup-result-table th:nth-child(4){width:8%}.followup-result-table th:nth-child(5){width:31%}.followup-result-table th:nth-child(6){width:32%}.followup-progress-note{display:block;font-size:9px;color:#5d6d63;margin-top:5px}.followup-editable{display:block;width:100%;min-height:95px;resize:vertical;border:1px solid #d2ddd5;border-radius:5px;padding:6px;font:inherit;line-height:1.35;color:inherit;background:#fff;box-sizing:border-box}.followup-total-row{background:#f6f9f6}.followup-total-row td{font-weight:600}.followup-provisional{padding:10px 12px;background:#fff7e6;border:1px solid #ead5a0;border-radius:8px;font-size:11px}.followup-place-date{text-align:right;margin:20px 8% 10px;font-size:11px}.followup-signatures{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;text-align:center;font-size:11px;margin:18px 0 6px}.followup-signatures>div{display:flex;flex-direction:column;align-items:center;min-height:115px}.followup-signatures strong{display:block;margin-top:auto;padding-top:48px;text-decoration:underline}.followup-signatures span{margin-top:4px}.report-actions{min-width:150px;display:flex;flex-direction:column;gap:8px}.report-actions .btn{display:block;text-align:center;white-space:normal}.report-submit-form{margin:0}.report-submit-form .btn{width:100%;white-space:normal}
@media(max-width:760px){.sidebar{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;overflow:visible!important;padding:8px!important}.sidebar a{min-width:0;flex:initial!important;white-space:normal;overflow-wrap:anywhere;align-items:flex-start;padding:9px 8px!important;font-size:11px!important;line-height:1.25;border:1px solid #edf2ee}.sidebar a span{min-width:0}.followup-select-form{grid-template-columns:minmax(0,1fr)}.followup-select-form label{grid-column:auto}.followup-select-form .btn{width:100%}.followup-toolbar{align-items:stretch;flex-direction:column}.followup-toolbar .btn{width:100%}.followup-document{padding:12px}.followup-document h1{font-size:15px}.followup-meta-grid{grid-template-columns:1fr;gap:12px}.followup-meta-grid dl{grid-template-columns:110px minmax(0,1fr)}.followup-signatures{grid-template-columns:1fr;gap:8px}.followup-signatures>div{min-height:85px}.followup-signatures strong{padding-top:25px}.report-actions{min-width:140px}.report-actions .btn{font-size:12px;padding:9px 7px}}
@media print{
@page{size:A4 portrait;margin:6mm 7mm 12mm;@bottom-left{content:"Dikembangkan oleh Ilham Hilmana, S.T. · © 2026";font:7pt Arial,sans-serif;color:#555;vertical-align:middle}@bottom-right{content:"Halaman " counter(page) " / " counter(pages);font:7pt Arial,sans-serif;color:#555;vertical-align:middle}}
.top,.sidebar,.foot,.page-head,.followup-selector,.followup-toolbar,.notice,.btn{display:none!important}
html,body{width:100%!important;min-width:0!important;margin:0!important;padding:0!important;background:#fff!important;color:#000!important;font-family:Arial,Helvetica,sans-serif!important}
.app-shell,.app-shell .wrap,main.wrap{display:block!important;max-width:none!important;width:auto!important;min-width:0!important;margin:0!important;padding:0!important;background:#fff!important}
.followup-document{width:100%!important;max-width:none!important;box-sizing:border-box;border:0;box-shadow:none;border-radius:0;padding:0;margin:0;color:#000;overflow:visible}
.followup-document h1{font-size:12pt;line-height:1.2;margin:0 0 3pt}
.followup-school-name{font-size:9pt;margin-bottom:6pt}
.followup-meta-grid{grid-template-columns:1fr 1fr;gap:8pt;margin-bottom:4pt}
.followup-meta-grid h3{font-size:10px;margin:0 0 4px}
.followup-meta-grid dl{font-size:9px;grid-template-columns:68pt minmax(0,1fr);gap:1px 3px;line-height:1.12}
.followup-result-table{width:100%!important;min-width:0!important;font-size:9px;line-height:1.12;table-layout:fixed;border-collapse:collapse}
.followup-result-table th,.followup-result-table td{padding:2.5px 3px;border:0.6pt solid #444;vertical-align:top;overflow-wrap:anywhere;word-break:normal}.followup-result-table{border:0.8pt solid #333!important}.followup-result-table tbody tr:last-child td{border-bottom:0.8pt solid #333!important}
.followup-result-table th{font-size:8.5px;line-height:1.1;text-align:center}
.followup-result-table th:nth-child(1){width:4%}
.followup-result-table th:nth-child(2){width:13%}
.followup-result-table th:nth-child(3){width:7.5%}
.followup-result-table th:nth-child(4){width:7.5%}
.followup-result-table th:nth-child(5){width:34%}
.followup-result-table th:nth-child(6){width:34%}
.followup-result-table td strong{font-size:11px}
.followup-editable{display:block;width:100%;min-width:0;min-height:0!important;height:auto!important;max-height:none!important;overflow:visible!important;box-sizing:border-box;border:0!important;border-radius:0;padding:0!important;margin:0!important;font-family:inherit;font-size:9px;line-height:1.12;resize:none;background:transparent;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;color:#000}
.followup-progress-note{font-size:9px;line-height:1.2;margin-top:3px}
.followup-place-date{text-align:right;margin:4px 4% 2px;font-size:9px}
.followup-signatures{grid-template-columns:repeat(3,minmax(0,1fr));gap:6pt;font-size:9px;margin:3px 0 0;break-inside:avoid;page-break-inside:avoid}
.followup-signatures>div{min-height:34pt}
.followup-signatures strong{padding-top:10pt;font-size:9px}
.followup-signatures span{margin-top:1px;font-size:8px}
.followup-provisional{font-size:9px;line-height:1.2;padding:4px 5px;margin:4px 0;border:0.6pt solid #999;background:#fff}
.followup-table-wrap{overflow:visible;width:100%}
table{page-break-inside:auto}thead{display:table-header-group}tr{break-inside:avoid;page-break-inside:avoid}
textarea{print-color-adjust:exact;-webkit-print-color-adjust:exact}
}

/* Batasi menu client sampai sinkron profil inti selesai. */
.setup-pending .sidebar a:not([href*='p=school']):not([href*='p=password']){display:none!important}

/* First run: keep the setup and account links visible while explaining the remaining requirements. */
.setup-pending .sidebar a:not([href='index.php?p=school']):not([href='index.php?p=password']){display:none!important}
.setup-requirements{border:1px solid #e8c56a;background:#fff9e7;color:#694d00;border-radius:12px;padding:14px 18px;margin:14px 0}
.setup-requirements ul{margin:6px 0 0;padding-left:22px}
.setup-requirements li{margin:3px 0}


/* Instrumen PKG: susun indikator sebagai kartu pada ponsel, tanpa scroll horizontal. */
@media(max-width:700px){
  .pkg-criteria-wrap{overflow-x:clip!important;padding:0 8px 10px!important}
  .pkg-criteria-table{display:block;width:100%;min-width:0!important;table-layout:auto!important}
  .pkg-criteria-table thead{display:none}
  .pkg-criteria-table tbody{display:block;width:100%}
  .pkg-criteria-table tbody tr{display:block;width:100%;padding:12px 10px;margin:0 0 12px;border:1px solid var(--line);border-radius:12px;background:#fff;scroll-margin-top:12px;overflow-wrap:anywhere}
  .pkg-criteria-table tbody td{display:block!important;width:auto!important;max-width:100%;padding:6px 0!important;border:0!important;overflow-wrap:anywhere}
  .pkg-criteria-table tbody td:first-child{padding-bottom:2px!important;color:var(--green);font-weight:800}
  .pkg-criteria-table tbody td:nth-child(2){padding-top:2px!important}
  .pkg-criteria-table tbody td:nth-child(3){margin-top:10px}
  .pkg-criteria-table tbody td:nth-child(4){margin-top:8px}
  .pkg-criteria-table textarea{display:block;width:100%;min-width:0;max-width:100%;resize:vertical}
  .pkg-score-buttons{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
  .pkg-score-btn span{min-height:44px}
  .pkg-score-desc{min-height:0}
  .pkg-indicator-title,.pkg-evidence{overflow-wrap:anywhere;word-break:normal}
  .wrap,.app-shell,.pkg-criteria-table{max-width:100%;min-width:0}
}

/* Real-time PKG completion and explicit destructive reset action. */
.competency-progress>span{transition:width .2s ease}.btn-reset{background:#fff0ee;color:#9b2c25;border:1px solid #efc1bc}.btn-reset:hover{background:#ffe2df}.btn-reset:disabled{opacity:.55;cursor:not-allowed}

/* Ajuan PKG: disable incomplete submissions and compact the report table on phones. */
.submit-hint{display:block;color:#8b5b00;font-size:11px;line-height:1.35;margin-top:5px}.reports-table button:disabled{opacity:.48;cursor:not-allowed}.sync-last-time{display:inline-block;margin-top:2px;font-size:11px}.reports-table{min-width:0}.reports-table-wrap{max-width:100%}
@media(max-width:760px){.reports-table-wrap{overflow-x:clip!important}.reports-table,.reports-table tbody{display:block;width:100%;min-width:0!important}.reports-table thead{display:none}.reports-table tbody tr{display:block;margin:0 0 12px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 4px 14px rgba(20,65,42,.05)}.reports-table tbody td{display:grid;grid-template-columns:minmax(105px,38%) minmax(0,1fr);gap:8px;width:100%;padding:7px 2px!important;border-bottom:1px solid #eef2ef;overflow-wrap:anywhere}.reports-table tbody td:before{font-size:10px;font-weight:800;letter-spacing:.25px;color:var(--muted)}.reports-table tbody td:nth-child(1):before{content:"GURU"}.reports-table tbody td:nth-child(2):before{content:"TAHUN"}.reports-table tbody td:nth-child(3):before{content:"INDIKATOR TERISI"}.reports-table tbody td:nth-child(4):before{content:"TOTAL SKOR"}.reports-table tbody td:nth-child(5):before{content:"CAPAIAN"}.reports-table tbody td:nth-child(6):before{content:"STATUS"}.reports-table tbody td:nth-child(7):before{content:"WAKTU DIAJUKAN"}.reports-table tbody td:nth-child(8):before{content:"WAKTU VERIFIKASI"}.reports-table tbody td:nth-child(9){display:block;border:0;padding-top:10px!important}.reports-table tbody td:nth-child(9):before{content:"AKSI";display:block;margin-bottom:6px}.reports-table td:nth-child(9) .sub-link{display:block;margin:0 0 7px}.reports-table td:nth-child(9) form{display:block;margin:0 0 7px}.reports-table td:nth-child(9) .btn{width:100%;white-space:normal}.reports-table td:nth-child(9) .submit-hint{margin:5px 0 0}}
/* Print and multi-teacher recap controls */
.page-head-actions{display:flex;justify-content:flex-end;gap:10px;margin:0 0 12px}
.teacher-pick-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:8px;max-height:320px;overflow:auto;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fbfdfb}
.teacher-pick-grid label{display:flex;align-items:center;gap:8px;min-width:0;padding:8px;border:1px solid var(--line);border-radius:8px;overflow-wrap:anywhere}
.print-action-menu{position:relative}
.print-action-menu summary{list-style:none;cursor:pointer;text-align:center}
.print-action-menu summary::-webkit-details-marker{display:none}
.print-menu{display:grid;gap:6px;position:absolute;right:0;top:calc(100% + 5px);z-index:20;width:min(240px,80vw);padding:9px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow)}
.print-menu .btn{width:100%;text-align:left}
#bundleList{padding-left:28px}
#bundleList li{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 0;border-bottom:1px solid var(--line)}
@media(max-width:760px){.page-head-actions{justify-content:stretch}.page-head-actions .btn{width:100%;text-align:center}.teacher-pick-grid{grid-template-columns:1fr}.print-action-menu{width:100%}.print-action-menu summary{width:100%}.print-menu{position:static;width:auto;margin-top:6px;box-shadow:none}}
.remote-teacher-check{width:18px;height:18px;accent-color:var(--green,#176b49)}
.sync-icon-btn{width:34px;height:34px;min-width:34px;padding:0;display:inline-grid;place-items:center;font-size:20px;line-height:1;border-radius:50%}
.remote-teacher-check{width:18px;height:18px;accent-color:var(--green,#176b49)}
.sync-icon-btn{width:34px;height:34px;min-width:34px;padding:0;display:inline-grid;place-items:center;font-size:20px;line-height:1;border-radius:50%}

/* Animated, deduplicated in-app notifications */
.toast-region{position:fixed;z-index:10000;top:18px;right:18px;width:min(420px,calc(100vw - 28px));display:flex;flex-direction:column;gap:10px;pointer-events:none}
.toast-item{pointer-events:auto;display:grid;grid-template-columns:28px 1fr 28px;align-items:start;gap:11px;padding:14px 14px 14px 12px;background:#fff;border:1px solid #dbe7df;border-left:4px solid #23804e;border-radius:14px;box-shadow:0 16px 48px rgba(18,48,32,.2);opacity:0;transform:translate3d(24px,-8px,0) scale(.98);transition:opacity .22s ease,transform .28s cubic-bezier(.2,.8,.2,1)}
.toast-item.toast-visible{opacity:1;transform:translate3d(0,0,0) scale(1)}
.toast-item.toast-error{border-left-color:#c53c32;background:#fffafa}.toast-item.toast-info{border-left-color:#2674b8}
.toast-icon{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#e5f5e9;color:#176b49;font-weight:900;font-size:15px}.toast-error .toast-icon{background:#fde9e7;color:#a82d24}.toast-info .toast-icon{background:#e9f2fb;color:#23659b}
.toast-text{font-size:14px;line-height:1.45;overflow-wrap:anywhere}.toast-close{border:0;background:transparent;color:#64756b;font-size:22px;line-height:1;cursor:pointer;padding:0}.toast-close:hover{color:#172b22}.toast-leaving{opacity:0!important;transform:translate3d(20px,0,0) scale(.98)!important}
@media(max-width:600px){.toast-region{top:10px;right:10px;width:calc(100vw - 20px)}.toast-item{padding:12px}}
@media(prefers-reduced-motion:reduce){.toast-item{transition:none;transform:none}}

.teacher-duplicate-warning{width:34px;height:34px;min-width:34px;padding:0;display:inline-grid;place-items:center;border-radius:50%;background:#fff1f0;border:1px solid #f0a29c;color:#b42318;font-size:20px;font-weight:800;line-height:1;cursor:pointer}.teacher-duplicate-warning:hover{background:#ffe2df;color:#8f1510}

