/* only Student left rail. Staff keep the theme drawer. */

body.geez-student-nav {
  --tgsdb_width: 304px;
}

body.geez-student-nav .toggle-sidebar.pagelayout-a,
body.geez-student-nav .sidebar-content,
body.geez-student-nav.tgsdbc_dark .sidebar-content {
  background: #fff !important;
  background-color: #fff !important;
}

body.geez-student-nav .toggle-sidebar.pagelayout-a {
  border-right: 1px solid #e6ebf1;
  box-shadow: none !important;
}

/* Tabs sit at the top of the drawer, directly under the site header. */
body.geez-student-nav .sidebar-content {
  display: flex;
  flex-direction: column;
}

body.geez-student-nav .toggle-sidebar-nav {
  flex: 0 0 auto;
  background: #fff;
}

body.geez-student-nav .toggle-sidebar-nav .nav-buttons {
  display: flex !important;
  flex-direction: row;
  align-items: stretch;
  height: 46px;
  min-height: 46px;
  padding: 0;
  margin: 0;
  background: #f3f5f8;
  border-bottom: 1px solid #e6ebf1;
  gap: 0;
}

body.geez-student-nav .toggle-sidebar-nav .nav-buttons button {
  flex: 1 1 0;
  max-width: none !important;
  width: auto;
  height: 46px;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 6px;
  opacity: 1;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  word-break: normal;
  text-align: center;
  color: #5c6b7a;
  border-radius: 0;
}

body.geez-student-nav .toggle-sidebar-nav .nav-buttons button .label {
  display: inline;
  width: auto;
  max-width: none;
  overflow: visible;
  text-overflow: unset;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.2;
}

body.geez-student-nav .toggle-sidebar-nav .nav-buttons button i {
  font-size: 16px;
}

body.geez-student-nav .toggle-sidebar-nav .nav-buttons button.active {
  background: #fff;
  color: #142433;
  opacity: 1;
  box-shadow: inset 0 -2px 0 #f5b400;
}

body.geez-student-nav .sidebar-content:not(:has(.toggle-sidebar-nav)) .sidebar-content-inner {
  height: 100%;
  overflow: hidden;
  padding: 0;
}

body.geez-student-nav .sidebar-content:has(.toggle-sidebar-nav) .sidebar-content-inner {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  overflow: hidden;
}

body.geez-student-nav.tgsdb_open .toggle-sidebar-nav .nav-buttons,
body.geez-student-nav.tgsdb_mopen .toggle-sidebar-nav .nav-buttons {
  padding-right: 46px;
}

body.geez-student-nav.tgsdb_open .sidebar-content > .tgsdb_btn,
body.geez-student-nav.tgsdb_mopen .sidebar-content > .tgsdb_btn {
  top: 7px;
  right: 8px;
}

body.geez-student-nav .tgsdb-section.tgsdb-qlinks.active {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
}

body.geez-student-nav .tgsdb-qlinks .geez-snav {
  height: 100%;
  min-height: 0;
}


body.geez-student-nav .tgsdb_btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #fff;
  color: #1b2b3a;
  border: 1px solid #e3e9f0;
  box-shadow: 0 4px 14px rgba(18, 38, 58, 0.08);
}

body.geez-student-nav.tgsdb_open .tgsdb_btn,
body.geez-student-nav.tgsdb_mopen .tgsdb_btn {
  color: #1b2b3a !important;
  background: #fff !important;
}

/* Closed rail stays off-screen. Keep a pull-tab on the page so it can be opened again. */
@media (min-width: 1281px) {
  body.geez-student-nav:not(.tgsdb_open) .sidebar-content > .tgsdb_btn {
    position: fixed;
    left: 0;
    right: auto;
    top: calc(var(--tgsdb_cheight, 88px) + 14px);
    z-index: 40;
    border-radius: 0 12px 12px 0;
    background: #142433 !important;
    color: #fff !important;
    border-color: #142433;
    box-shadow: 0 8px 18px rgba(20, 36, 51, 0.18);
  }
}

@media (max-width: 1280px) {
  body.geez-student-nav:not(.tgsdb_mopen) .sidebar-content > .tgsdb_btn {
    position: fixed;
    left: 0;
    right: auto;
    top: calc(var(--tgsdb_cheight, 88px) + 14px);
    z-index: 40;
    border-radius: 0 12px 12px 0;
    background: #142433 !important;
    color: #fff !important;
    border-color: #142433;
    box-shadow: 0 8px 18px rgba(20, 36, 51, 0.18);
  }
}

body.geez-hide-moodle-drawer .tgsdb_btn,
body.geez-hide-moodle-drawer .toggle-sidebar,
body.geez-hide-moodle-drawer .pagelayout-a {
  display: none !important;
}

/* Keep Search, Log in, and Register on the header row, to the right of the menu. */
@media (min-width: 992px) {
  #master-header .flexcols {
    flex-wrap: nowrap;
  }

  #master-header .flexcols > .navigation-header {
    flex: 0 0 auto;
    margin-right: 8px;
  }

  #master-header .navigation-header .mb2mm-action,
  #master-header .navigation-header .mb2mm-action .mb2mm-text {
    white-space: nowrap;
  }

  #master-header .flexcols > .header-tools {
    flex: 0 0 auto;
    align-self: center;
    height: auto;
  }
}

.geez-snav {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #162433;
  font-family: Figtree, "Segoe UI", sans-serif;
}

.geez-snav-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 14px 8px;
}

.geez-snav-scroll::-webkit-scrollbar {
  width: 10px;
}

.geez-snav-scroll::-webkit-scrollbar-thumb {
  background: rgba(18, 38, 58, 0.12);
  border: 3px solid #fff;
  border-radius: 99px;
}

.geez-snav-profile {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 10px 12px;
  margin-bottom: 12px;
  border: 1px solid #e8eef4;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfcfe 0%, #fff 100%);
}

.geez-snav-avatar {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f5b400;
  color: #1a2430;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.geez-snav-who {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.geez-snav-name {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.geez-snav-grade {
  color: #6d7b89;
  font-size: 12px;
}

.geez-snav-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.geez-snav-streak {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff4d4;
  color: #8a5a00;
  font-size: 11px;
  font-weight: 600;
}

.geez-snav-streak::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #f5b400;
}

.geez-snav-progress {
  margin-left: auto;
  color: #b8860b;
  font-size: 12px;
  font-weight: 700;
}

.geez-snav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  margin: 0 0 12px;
  padding: 0 12px;
  border: 1px solid #e4ebf2;
  border-radius: 12px;
  background: #f7f9fb;
  color: #8b98a6;
}

.geez-snav-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #162433;
  font-size: 13px;
}

.geez-snav-search input::placeholder {
  color: #8b98a6;
}

.geez-snav-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: #f3f6f9;
}

.geez-snav-tabs button {
  position: relative;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #5d6b78;
  font-size: 13px;
  font-weight: 600;
}

.geez-snav-tabs button.is-active {
  background: #f5b400;
  color: #1a2430;
}

.geez-snav-tabcount {
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  margin-left: 6px;
  padding: 0 4px;
  border-radius: 99px;
  background: #1a2430;
  color: #fff;
  font-size: 10px;
  line-height: 1;
}

.geez-snav-tabs button.is-active .geez-snav-tabcount {
  background: #1a2430;
}

.geez-snav-group h3 {
  margin: 14px 8px 6px;
  color: #8b97a3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.geez-snav-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.geez-snav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 6px 8px;
  border-radius: 12px;
  color: #1c2c3b;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease, color .2s ease;
}

.geez-snav-link:hover,
.geez-snav-link:focus {
  background: #fff8e4;
  color: #1c2c3b;
  text-decoration: none;
  transform: translateX(5px);
  box-shadow: 0 8px 18px rgba(22, 36, 51, .07);
}

.geez-snav-link:hover .geez-snav-icon,
.geez-snav-link:focus .geez-snav-icon {
  background: #f5b400;
  color: #1a2430;
  transform: scale(1.08) rotate(-6deg);
}

.geez-snav-link.is-current {
  background: #f6f8fb;
  font-weight: 700;
}

.geez-snav-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #eef3f7;
  color: #314255;
  font-size: 16px;
  flex: 0 0 32px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.geez-snav-link.is-current .geez-snav-icon {
  background: #f5b400;
  color: #1a2430;
}

@media (prefers-reduced-motion: reduce) {
  .geez-snav-link,
  .geez-snav-icon {
    transition: none;
  }

  .geez-snav-link:hover,
  .geez-snav-link:focus,
  .geez-snav-link:hover .geez-snav-icon,
  .geez-snav-link:focus .geez-snav-icon {
    transform: none;
  }
}

.geez-snav-label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.geez-snav-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 99px;
  display: inline-grid;
  place-items: center;
  background: #f5b400;
  color: #1a2430;
  font-size: 11px;
  font-weight: 700;
}

.geez-snav-empty,
.geez-snav-dayempty {
  margin: 18px 8px;
  color: #6d7b89;
  font-size: 13px;
  text-align: center;
}

.geez-snav-dayempty i {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
  color: #f5b400;
}

.geez-snav-dayempty a,
.geez-snav-daylist a {
  color: #1c2c3b;
  text-decoration: none;
}

.geez-snav-daylead {
  margin: 4px 8px 8px;
  color: #8b97a3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.geez-snav-daylist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.geez-snav-daylist a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 10px;
  border-radius: 12px;
}

.geez-snav-daylist a:hover {
  background: #f4f7fa;
}

.geez-snav-daytime {
  color: #b8860b;
  font-size: 11px;
  font-weight: 700;
}

.geez-snav-dayname {
  font-size: 14px;
}

.geez-snav-foot {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px 12px;
  border-top: 1px solid #eef2f6;
  background: #fff;
}

.geez-snav-footlink {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 6px 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #314255;
  font-size: 14px;
  text-align: left;
  text-decoration: none;
}

.geez-snav-footlink i {
  width: 18px;
  font-size: 16px;
  text-align: center;
}

.geez-snav-footlink:hover,
.geez-snav-footlink:focus {
  background: #f4f7fa;
  color: #1c2c3b;
  text-decoration: none;
}

.geez-snav-footlink.is-logout {
  color: #b42318;
}

.geez-snav-footlink.is-logout:hover {
  background: #fff4f2;
  color: #b42318;
}
