.smartschool-link.logout-link {
  position: relative;
  justify-content: center;
  gap: 9px;
  padding-right: 42px;
  padding-left: 42px;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, color-mix(in srgb, var(--dept-business) 86%, #111827), color-mix(in srgb, var(--dept-business) 70%, #111827));
  box-shadow: 0 10px 20px rgba(233, 91, 79, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.smartschool-link.logout-link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: linear-gradient(180deg, color-mix(in srgb, var(--dept-business) 94%, #111827), color-mix(in srgb, var(--dept-business) 78%, #111827));
  transform: translateY(-1px);
}

.logout-icon {
  position: absolute;
  right: 9px;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--dept-business);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.92);
}

.logout-icon .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.25;
}

.is-hidden {
  display: none !important;
}

tbody tr {
  transition: background 140ms ease, box-shadow 140ms ease;
}

tbody tr[data-row-action],
tbody tr.selectable-row {
  cursor: pointer;
}

tbody tr.is-focused td {
  background: rgba(219, 235, 255, 0.82) !important;
}

.empty-row td {
  height: 58px;
  color: #64748b;
  text-align: center;
  font-weight: 800;
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  color: #101828;
  border: 1px solid rgba(16, 24, 40, 0.12);
  border-left: 4px solid var(--dept-design);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(16px);
  animation: toast-in 160ms ease;
}

.toast strong {
  font-size: 13px;
  font-weight: 950;
}

.toast span {
  color: #475467;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quick-panel {
  display: grid;
  gap: 10px;
  margin: 0 18px 14px;
  padding: 12px;
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.8);
}

.quick-panel strong {
  color: #101828;
  font-size: 12px;
  font-weight: 950;
}

.quick-panel p {
  margin: 0;
  color: #475467;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-actions button {
  min-height: 32px;
  padding: 0 10px;
  color: #172033;
  border: 1px solid rgba(16, 24, 40, 0.12);
  border-radius: 6px;
  background: #fff;
  font-size: 11px;
  font-weight: 900;
}

.quick-actions button:hover {
  background: rgba(230, 241, 255, 0.9);
}

.drop-zone.is-dragging,
.drop-zone:hover {
  border-color: var(--dept-design) !important;
  background: rgba(230, 241, 255, 0.72) !important;
}

.lesson-cell.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.lesson.is-selected {
  outline: 2px solid var(--dept-work);
  outline-offset: 1px;
}

.date-input,
.date-input input,
.date-picker,
.input-button:has(use[href="#icon-calendar"]) {
  cursor: pointer;
}

.date-input input {
  caret-color: transparent;
}

.mini-calendar {
  position: fixed;
  z-index: 140;
  width: 276px;
  padding: 12px;
  color: #101828;
  border: 1px solid rgba(16, 24, 40, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(18px);
}

.mini-calendar-head {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.mini-calendar-head strong {
  text-align: center;
  text-transform: capitalize;
  font-size: 13px;
  font-weight: 950;
}

.mini-calendar-head button,
.mini-calendar-grid button {
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
}

.mini-calendar-head button {
  width: 32px;
  height: 32px;
  color: #25324d;
  font-size: 22px;
  font-weight: 900;
}

.mini-calendar-head button:hover,
.mini-calendar-grid button:hover {
  border-color: rgba(0, 154, 166, 0.24);
  background: rgba(230, 241, 255, 0.82);
}

.mini-calendar-weekdays,
.mini-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.mini-calendar-weekdays {
  margin-bottom: 6px;
}

.mini-calendar-weekdays span {
  color: #667085;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.mini-calendar-grid button,
.mini-calendar-empty {
  min-width: 0;
  height: 30px;
  font-size: 12px;
  font-weight: 850;
}

.mini-calendar-grid button.today {
  color: var(--dept-design);
  border-color: rgba(0, 154, 166, 0.28);
}

.mini-calendar-grid button.selected {
  color: #fff;
  border-color: var(--dept-design);
  background: var(--dept-design);
}

@media (max-width: 640px) {
  .toast-stack {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
  }

  .quick-panel {
    margin-right: 12px;
    margin-left: 12px;
  }

  .mini-calendar {
    right: 10px;
    left: 10px !important;
    width: auto;
  }
}

.mini-calendar-selects {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 6px;
  min-width: 0;
}

.mini-calendar-selects select {
  min-width: 0;
  height: 32px;
  padding: 0 8px;
  color: #101828;
  border: 1px solid rgba(16, 24, 40, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
  font-size: 12px;
  font-weight: 850;
  text-transform: capitalize;
}
