/* Notification bell (navbar) and right-hand drawer. Loaded by the three shared layouts.
   z-index: Bulma navbar 30, dropdown 20, modal 40 — the drawer sits in between. */

.notif-bell-item {
  padding-right: 0;
}
/* Touch copy, inside .navbar-brand: pushed right, next to the burger. */
.notif-bell-item.is-hidden-desktop {
  display: flex;
  align-items: center;
  margin-left: auto;
}
/* Bulma gives the burger margin-left: auto too; keep the bell glued to it. */
.notif-bell-item.is-hidden-desktop + .navbar-burger {
  margin-left: 0;
}
.notif-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 6px;
  border: none;
  background: none;
  cursor: pointer;
  line-height: 0;
}
.notif-bell img {
  opacity: 0.75;
}
.notif-bell:hover img,
.notif-bell[aria-expanded="true"] img {
  opacity: 1;
}
.notif-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #c57200;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.notif-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 34;
}
.notif-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  width: min(380px, 100vw);
  background: #fff;
  box-shadow: -3px 0 12px rgba(0, 0, 0, 0.15);
  z-index: 35;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.2s ease-out;
}
.notif-drawer.is-active {
  transform: none;
}
.notif-drawer[hidden],
.notif-backdrop[hidden] {
  display: none;
}

.notif-head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}
.notif-head .title {
  margin: 0;
}
.notif-body {
  padding: 0 18px 18px;
}
.notif-empty {
  padding: 24px 0;
  color: #777;
  text-align: center;
}
.notif-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.notif-item {
  position: relative;
  padding: 12px 28px 12px 12px;
  border-bottom: 1px solid #efefef;
}
.notif-action {
  border-left: 3px solid #c57200;
}
.notif-info {
  border-left: 3px solid #ddd;
  color: #555;
}
.notif-title {
  display: block;
  font-weight: 600;
  color: inherit;
}
.notif-text {
  margin: 4px 0 0;
  font-size: 14px;
}
.notif-time {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #999;
}
.notif-dismiss {
  position: absolute;
  top: 12px;
  right: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .notif-drawer {
    transition: none;
  }
}

/* Attendance registration partial (courses/_attendance_item.j2): on the session page and,
   compact, inside the drawer. */
.att {
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid #e5e5e5;
  border-left: 3px solid #c57200;
  border-radius: 4px;
  background: #fffdf7;
}
.att-compact {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}
.att-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
}
.att-status {
  margin: 0 0 8px;
}
.att-late {
  margin: 0 0 8px;
  font-size: 13px;
  color: #c57200;
}
.att-form .textarea {
  margin-bottom: 8px;
  font-size: 14px;
}
.att-form .buttons {
  margin-bottom: 0;
}
.att-edit summary {
  cursor: pointer;
  font-size: 13px;
  color: #555;
}
.att-edit[open] summary {
  margin-bottom: 8px;
}
.att-group {
  margin: 0 0 10px;
}
.att-members {
  font-size: 14px;
  color: #444;
}
.att-forming {
  color: #666;
  font-style: italic;
}
.att-groups-table {
  width: 100%;
  font-size: 14px;
  border-collapse: collapse;
}
.att-groups-table th,
.att-groups-table td {
  text-align: left;
  padding: 4px 8px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}
