/* NoteSmart V69: Edit jurnal terkirim lengkap - aman untuk scroll */
.ns-v67-edit-row{
  margin:-6px 0 10px 0;
  display:flex;
  justify-content:flex-end;
  pointer-events:auto;
}
.ns-v67-edit-btn{
  appearance:none;
  border:1px solid rgba(36,82,61,.22);
  background:#fff;
  color:#24523d;
  border-radius:999px;
  padding:9px 14px;
  font-size:13px;
  font-weight:800;
  box-shadow:0 8px 22px rgba(15,23,42,.08);
  display:inline-flex;
  align-items:center;
  gap:7px;
}
.ns-v67-edit-btn:active{transform:scale(.98)}
.ns-v67-modal{
  position:fixed;
  inset:0;
  z-index:99999;
  background:rgba(15,23,42,.42);
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding:16px 12px calc(16px + env(safe-area-inset-bottom,0px));
}
.ns-v67-sheet{
  width:min(720px,100%);
  max-height:90vh;
  max-height:90dvh;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  background:#fff;
  border-radius:28px;
  box-shadow:0 30px 80px rgba(0,0,0,.25);
  padding:18px;
  overscroll-behavior:contain;
}
.ns-v67-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.ns-v67-kicker{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#24523d;font-weight:900;margin-bottom:4px}
.ns-v67-title{font-size:22px;line-height:1.15;font-weight:900;color:#172033;margin:0}
.ns-v67-sub{font-size:13px;color:#6b7280;margin-top:4px}
.ns-v67-close{
  border:0;background:#f3f4f6;color:#111827;border-radius:999px;width:40px;height:40px;font-size:24px;line-height:1;font-weight:800;flex:0 0 auto;
}
.ns-v67-field{margin-top:12px}
.ns-v67-label{display:block;font-size:12px;font-weight:900;color:#374151;margin:0 0 7px;letter-spacing:.02em;text-transform:uppercase}
.ns-v67-textarea{
  width:100%;
  border:1px solid #e5e7eb;
  border-radius:18px;
  padding:12px 13px;
  font-size:15px;
  line-height:1.45;
  outline:none;
  resize:vertical;
  min-height:92px;
  background:#fafafa;
}
.ns-v67-textarea:focus{border-color:#24523d;background:#fff;box-shadow:0 0 0 3px rgba(36,82,61,.12)}
.ns-v67-att-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:14px}
.ns-v67-att-list{margin-top:8px;border:1px solid #eef2f7;border-radius:20px;overflow:hidden;background:#fff}
.ns-v67-att-row{display:block;padding:12px;border-bottom:1px solid #eef2f7;background:#fff}
.ns-v67-att-row:last-child{border-bottom:0}
.ns-v67-student-line{display:grid;grid-template-columns:minmax(0,1fr) 104px;gap:10px;align-items:center;margin-bottom:10px}
.ns-v67-att-name{font-size:13px;font-weight:900;color:#172033;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ns-v67-att-nis{font-size:11px;color:#6b7280;margin-top:2px}
.ns-v67-select{width:104px;height:40px;border:1px solid #e5e7eb;border-radius:14px;background:#fff;padding:0 8px;font-weight:900;color:#172033;outline:none}
.ns-v67-edit-grid{display:grid;grid-template-columns:88px 1fr 1fr;gap:8px;align-items:end}
.ns-v67-edit-grid label{display:block;min-width:0}
.ns-v67-edit-grid span{display:block;font-size:10px;line-height:1.1;font-weight:900;text-transform:uppercase;letter-spacing:.04em;margin:0 0 5px;color:#64748b}
.ns-v67-edit-grid label:nth-child(2) span{color:#07875b}
.ns-v67-edit-grid label:nth-child(3) span{color:#dc2626}
.ns-v67-mini-input{
  width:100%;
  height:42px;
  border:1px solid #e5e7eb;
  border-radius:15px;
  background:#fff;
  padding:0 11px;
  font-size:14px;
  color:#172033;
  outline:none;
}
.ns-v67-score{text-align:center;font-weight:900}
.ns-v67-mini-input:focus,.ns-v67-select:focus{border-color:#24523d;box-shadow:0 0 0 3px rgba(36,82,61,.12)}
.ns-v67-actions{position:sticky;bottom:-18px;background:linear-gradient(to top,#fff 82%,rgba(255,255,255,.9));display:flex;gap:8px;justify-content:flex-end;padding-top:16px;padding-bottom:max(0px,env(safe-area-inset-bottom));margin-top:12px}
.ns-v67-cancel,.ns-v67-save{border:0;border-radius:999px;padding:12px 16px;font-weight:900;font-size:14px}
.ns-v67-cancel{background:#f3f4f6;color:#374151}
.ns-v67-save{background:#24523d;color:white;min-width:148px}
.ns-v67-save:disabled{opacity:.6}
.ns-v67-note{font-size:12px;color:#6b7280;background:#f8fafc;border:1px dashed #dbe3ea;border-radius:16px;padding:10px 12px;margin-top:10px}
@media (max-width:420px){
  .ns-v67-modal{padding:10px 8px calc(10px + env(safe-area-inset-bottom,0px))}
  .ns-v67-sheet{border-radius:24px;padding:14px;max-height:92dvh}
  .ns-v67-title{font-size:19px}
  .ns-v67-edit-grid{grid-template-columns:72px 1fr 1fr;gap:6px}
  .ns-v67-mini-input{height:40px;border-radius:14px;padding:0 9px;font-size:13px}
  .ns-v67-select{width:96px;height:38px}
  .ns-v67-student-line{grid-template-columns:minmax(0,1fr) 96px}
  .ns-v67-actions{bottom:-14px}
  .ns-v67-cancel,.ns-v67-save{padding:11px 14px;font-size:13px}
}
@media (min-width:768px){.ns-v67-modal{align-items:center}.ns-v67-sheet{border-radius:30px;padding:22px}.ns-v67-title{font-size:26px}}
