/* =========================================================
   components/lessons-attendance.css
   ---------------------------------------------------------
   Shared lesson list, attendance badge and attendance status menu styles.
   ========================================================= */

/* =========================================================
   5) LESSON LISTS & ATTENDANCE
   --------------------------------------------------------- */

.nn-card__title {
  font-size: 2rem;
  font-weight: 400;
  color: var(--muted-2);
}

.nn-card__title i {
  margin-right: 6px;
  font-size: 1.5rem;
  color: var(--accent);
}

.nn-att-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 6px 0 10px;
  font-size: 14px;
}

/* Generic lesson block - keep lightweight */
.nn-lesson {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
}

.nn-lesson:focus-within {
  outline: 2px solid color-mix(in oklab, var(--accent) 30%, transparent);
  outline-offset: -2px;
}

.nn-lesson-content {
  padding-top: 1px;
}

.nn-time {
  pointer-events: none;
}

/* =========================================================
   ATTENDANCE STATUS MENU
   --------------------------------------------------------- */

.nn-attendance-form {
  margin: 0;
}

.nn-attendance-menu {
  position: relative;
  display: inline-block;
}

.nn-attendance-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #cfd5dc;
  border-radius: 999px;
  background: #fff;
  color: #667085;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.nn-attendance-trigger:hover {
  background: #f7f8fa;
  border-color: #bfc7d1;
  color: #111827;
}

.nn-attendance-trigger__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 14px;
}

.nn-attendance-trigger__label {
  white-space: nowrap;
}

.nn-attendance-trigger__chevron {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -2px;
  flex: 0 0 auto;
}

.nn-attendance-menu.is-open .nn-attendance-trigger__chevron {
  transform: rotate(-135deg);
  margin-top: 2px;
}

.nn-attendance-trigger.is-attended {
  background: #ecfdf3;
  border-color: #abefc6;
  color: #027a48;
}

.nn-attendance-trigger.is-missed {
  background: #fef3f2;
  border-color: #fecdca;
  color: #b42318;
}

.nn-attendance-trigger.is-nocharge {
  background: #f2f4f7;
  border-color: #d0d5dd;
  color: #344054;
}

.nn-attendance-trigger.is-unknown {
  background: #f8f9fc;
  border-color: #eaecf0;
  color: #667085;
}

.nn-attendance-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 1005;
  min-width: 170px;
  padding: 6px;
  border: 1px solid #d8dee6;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.12);
}

.nn-attendance-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #344054;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.nn-attendance-option:hover {
  background: #f7f8fa;
}

.nn-attendance-option__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
}

.nn-attendance-option.is-attended {
  color: #027a48;
}

.nn-attendance-option.is-missed {
  color: #b42318;
}

.nn-attendance-option.is-nocharge {
  color: #344054;
}

.nn-attendance-option.is-unknown {
  color: #667085;
}

.nn-row-edit--mobile {
  display: none;
}

.nn-mobile-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.nn-table td:nth-child(3) .nn-mobile-meta-row {
  justify-content: flex-start;
}

