/* Navigasi siswa tetap tersedia di desktop dan mobile. */
.bottom-nav {
  position: fixed;
  z-index: 40;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, calc(100% - 20px));
  display: flex;
  justify-content: space-around;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  background: #fff;
  border: 1px solid #e1e6ec;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, .16);
}
.bottom-nav a { min-width: 56px; color: var(--muted); text-align: center; text-decoration: none; font-size: 19px; }
.bottom-nav a:hover, .bottom-nav a:focus-visible { color: var(--primary); }
.bottom-nav span { display: block; font-size: 10px; }
.user-menu { position: relative; margin-left: auto; }
.user-menu summary { cursor: pointer; list-style: none; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary b { color: var(--muted); font-size: 12px; }
.user-menu nav {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  min-width: 150px;
  display: grid;
  padding: 7px;
  background: #fff;
  border: 1px solid #e1e6ec;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(16, 24, 40, .16);
}
.user-menu nav a { padding: 9px 11px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 14px; }
.user-menu nav a:hover, .user-menu nav a:focus-visible { background: #f2f5f7; }
.user-menu nav .logout-link { color: var(--muted); border-top: 1px solid #edf0f3; }

@media (max-width: 820px) {
  .topbar { gap: 10px; }
  .brand span { flex-shrink: 0; }
  .brand small { display: none; }
  .user-chip { margin-left: auto; }
  .sidebar {
    display: block;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
    z-index: 45;
    overflow: hidden;
  }
  .sidebar nav { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; }
  .sidebar nav::-webkit-scrollbar { display: none; }
  .sidebar a { white-space: nowrap; background: #ffffff12; padding: 9px 12px; }
  .sidebar p { display: none; }
  .staff-main { margin-left: 0; padding-bottom: 100px; }
  .user-chip span { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 600px) {
  .bottom-nav { bottom: 0; width: 100%; border-width: 1px 0 0; border-radius: 0; }
  .user-chip span { max-width: 105px; }
}
@media print {
  .topbar, .sidebar, .bottom-nav, .print-hide { display: none !important; }
  .staff-main { margin: 0; padding: 0; max-width: none; }
  body, html { background: #fff; }
  .card { box-shadow: none; break-inside: avoid; }
}
.account-copy { display: flex; align-items: center; justify-content: flex-start; gap: 8px; margin: 12px 0 5px; }
.account-copy span { display: grid; gap: 2px; }
.account-copy small { color: #d8eee5; }
.account-copy strong { font-size: 19px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.balance-row { display: flex; align-items: center; gap: 9px; }
.icon-button { width: 32px; height: 32px; min-height: 32px; flex: 0 0 32px; padding: 6px; border-radius: 50%; color: #fff; background: #ffffff17; border: 1px solid #ffffff2e; position: relative; z-index: 2; }
.icon-button:hover, .icon-button:focus-visible { background: #ffffff2b; }
.icon-button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-button .icon-check, .icon-button .icon-eye-off { display: none; }
.icon-button.is-copied .icon-copy, .icon-button.is-hidden .icon-eye { display: none; }
.icon-button.is-copied .icon-check, .icon-button.is-hidden .icon-eye-off { display: block; }
.icon-button.is-copied { color: #f8ce59; }
.balance-visibility { margin-top: 2px; }
.transfer-quota { align-self: center; margin: 0; color: var(--muted); font-size: 14px; white-space: nowrap; }
.transfer-quota strong { color: var(--text); }
.recipient-card { margin-bottom: 16px; padding: 16px; border: 1px solid #b8ddcd; border-radius: 14px; background: #edf8f3; }
.recipient-card h3 { margin: 4px 0; color: var(--primary); }
.recipient-card p { margin: 0; }
.bulk-deposit-fields { display: grid; grid-template-columns: minmax(180px,.8fr) minmax(180px,.8fr) minmax(260px,1.4fr); gap: 14px; }
.student-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0 10px; border-bottom: 1px solid #e8ecf2; }
.checkbox-option { display: flex; grid-template-columns: none; align-items: flex-start; gap: 11px; cursor: pointer; }
.checkbox-option input[type="checkbox"] { width: 19px; height: 19px; min-height: 0; margin: 2px 0 0; padding: 0; flex: 0 0 19px; accent-color: var(--primary2); }
.select-all-option { color: var(--primary); }
.selection-count { color: var(--muted); font-size: 13px; font-weight: 700; }
.student-checklist { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 4px 0 8px; }
.student-option { padding: 12px; border: 1px solid #e1e7ed; border-radius: 12px; background: #fff; transition: border-color .15s,background .15s; }
.student-option:hover { border-color: #a8cbbb; background: #f7fbf9; }
.student-option:has(input:checked) { border-color: var(--primary2); background: #edf8f3; }
.student-option span { min-width: 0; display: grid; gap: 2px; }
.student-option strong { overflow: hidden; text-overflow: ellipsis; }
.student-option small { color: var(--muted); font-weight: 500; }
@media (max-width: 760px) {
  .bulk-deposit-fields { grid-template-columns: 1fr; }
  .student-checklist { grid-template-columns: 1fr; }
}
.install-body { min-height: 100vh; background: radial-gradient(circle at 80% 8%,#0b8b5930 0,transparent 32%),linear-gradient(150deg,#f4f6fa 0,#eaf4ef 100%); }
.install-page { width: min(940px,calc(100% - 28px)); margin: 0 auto; padding: 42px 0 60px; }
.install-hero { max-width: 670px; margin: 0 auto; padding: 38px; text-align: center; background: #fff; border: 1px solid #dfe8e3; border-radius: 28px; box-shadow: 0 20px 60px rgba(6,63,44,.13); }
.install-hero img { width: 108px; height: 108px; object-fit: contain; border-radius: 24px; box-shadow: 0 10px 30px rgba(16,24,40,.12); }
.install-eyebrow { margin: 20px 0 6px; color: var(--primary2); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.install-hero h1 { margin: 0; font-size: clamp(30px,6vw,48px); line-height: 1.08; color: var(--primary); }
.install-lead { max-width: 540px; margin: 18px auto 24px; color: var(--muted); font-size: 18px; }
.install-primary { width: min(100%,360px); min-height: 54px; font-size: 17px; }
.install-status { min-height: 24px; margin: 14px 0 8px; color: var(--muted); font-size: 14px; }
.install-login { color: var(--primary); font-weight: 700; }
.install-help { scroll-margin-top: 20px; margin-top: 24px; }
.install-help h2 { text-align: center; font-size: 20px; }
.install-guide-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.install-guide-grid article { padding: 20px; background: #fff; border: 1px solid #dfe8e3; border-radius: 18px; }
.install-guide-grid article>span { color: var(--primary2); font-size: 24px; }
.install-guide-grid h3 { margin: 9px 0 6px; color: var(--primary); font-size: 16px; }
.install-guide-grid p { margin: 0; color: var(--muted); font-size: 14px; }
@media (max-width: 680px) {
  .install-page { padding-top: 18px; }
  .install-hero { padding: 28px 20px; border-radius: 22px; }
  .install-hero img { width: 88px; height: 88px; }
  .install-lead { font-size: 16px; }
  .install-guide-grid { grid-template-columns: 1fr; }
}
