/* The shared shell owns the frame; these are e-RPH's existing actions. */
body.ld-shell-standalone {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: 0 !important;
}
body.ld-shell-standalone > main.container-fluid {
  flex: 1 0 auto;
  width: 100%;
}
body.ld-shell-standalone > .ld-shell-footer {
  flex-shrink: 0;
  margin-top: auto !important;
}
body.ld-shell-standalone .ld-shell-header-inner { max-width: 1400px; }
.ld-shell-header .erph-shell-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}
.ld-shell-header .erph-shell-actions .week-display-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(226,232,240,.82);
  box-shadow: 0 10px 24px rgba(15,23,42,.05);
  color: #334155;
  font-weight: 900;
  font-size: 12px;
  white-space: nowrap;
}
.ld-shell-header .erph-shell-actions .week-display-glass i { color: rgba(249,115,22,.92); }
.ld-shell-header .erph-shell-actions #userJawatanPill { min-height: 44px; padding: 8px 16px; }
.ld-shell-header .erph-shell-actions .pill { white-space: nowrap; }
.ld-shell-header .erph-shell-actions .notif-menu { z-index: 120; }
.ld-shell-header .erph-shell-actions .notif-btn { width: 42px; height: 42px; }
.ld-shell-header .erph-shell-actions .teacher-view-toggle,
.ld-shell-header .erph-shell-actions .admin-view-toggle { flex: 0 0 auto; }
.ld-shell-header .erph-shell-actions .teacher-view-toggle,
.ld-shell-header .erph-shell-actions .admin-view-toggle,
.ld-shell-header .erph-shell-actions .teacher-view-toggle.role-guru,
.ld-shell-header .erph-shell-actions .admin-view-toggle.role-admin {
  background: #1d4ed8;
  border-color: #1d4ed8;
  border-radius: 22px;
  box-shadow: 0 10px 22px rgba(29,78,216,.18);
}
.ld-shell-header .erph-shell-actions .teacher-view-toggle:hover,
.ld-shell-header .erph-shell-actions .admin-view-toggle:hover { background: #1e40af; border-color: #1e40af; }
.ld-shell-header .erph-shell-actions .teacher-view-toggle .label,
.ld-shell-header .erph-shell-actions .admin-view-toggle .label,
.ld-shell-header .erph-shell-actions .teacher-view-toggle.role-guru .label,
.ld-shell-header .erph-shell-actions .admin-view-toggle.role-admin .label { color: #fff; }
.ld-shell-header .erph-shell-actions .teacher-view-toggle .switch,
.ld-shell-header .erph-shell-actions .admin-view-toggle .switch,
.ld-shell-header .erph-shell-actions .teacher-view-toggle.role-guru .switch,
.ld-shell-header .erph-shell-actions .admin-view-toggle.role-admin .switch { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.65); }
.ld-shell-header .erph-shell-actions .teacher-view-toggle .switch:hover,
.ld-shell-header .erph-shell-actions .admin-view-toggle .switch:hover,
.ld-shell-header .erph-shell-actions .teacher-view-toggle.role-guru .switch:hover,
.ld-shell-header .erph-shell-actions .admin-view-toggle.role-admin .switch:hover { border-color: #fff; }
.ld-shell-header .erph-shell-actions .teacher-view-toggle .knob,
.ld-shell-header .erph-shell-actions .admin-view-toggle .knob { background: #fff; border-color: #fff; box-shadow: 0 2px 5px rgba(15,23,42,.18); }
.ld-shell-header .erph-shell-actions .teacher-view-toggle .switch input:checked + .knob,
.ld-shell-header .erph-shell-actions .admin-view-toggle .switch input:checked + .knob,
.ld-shell-header .erph-shell-actions .teacher-view-toggle.role-guru .switch input:checked + .knob,
.ld-shell-header .erph-shell-actions .admin-view-toggle.role-admin .switch input:checked + .knob { background: #fff; border-color: #fff; box-shadow: 0 2px 5px rgba(15,23,42,.18); }
@media (max-width: 1100px) {
  .ld-shell-header .erph-shell-actions #userJawatanPill { display: none !important; }
}
@media (max-width: 767px) {
  body.ld-shell-standalone .ld-shell-header { height: 108px !important; align-items: flex-start; }
  body.ld-shell-standalone .ld-shell-header-inner { margin: 13px auto 0; }
  .ld-shell-header .erph-shell-actions { gap: 5px; }
  .ld-shell-header .erph-shell-actions #weekDisplay {
    position: absolute;
    top: 71px;
    left: 12px;
    right: 12px;
    width: auto;
    height: 30px;
    justify-content: center;
    padding: 2px 8px;
  }
  .ld-shell-header .erph-shell-actions #weekDisplay { font-size: 11px; }
  .ld-shell-header .erph-shell-actions a[href="/system-log.html"] { display: none !important; }
  .ld-shell-header .erph-shell-actions .teacher-view-toggle,
  .ld-shell-header .erph-shell-actions .admin-view-toggle { padding: 5px 6px; min-width: 48px; }
  .ld-shell-header .erph-shell-actions .teacher-view-toggle .label,
  .ld-shell-header .erph-shell-actions .admin-view-toggle .label { display: none; }
  .ld-shell-header .erph-shell-actions .notif-btn { width: 38px; height: 38px; }
  .ld-shell-header .erph-shell-actions .notif-menu {
    position: fixed !important;
    top: 68px !important;
    right: 8px !important;
    left: 8px !important;
    width: auto !important;
    max-width: none !important;
  }
}
