a {
  text-decoration: none !important;
  color: #333 !important;
}

.tabs-week-search-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
}

.week {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.week input {
  padding: 8px 12px;
  border-radius: 0.5rem;
  border: 1px solid #b9bfc6;
}

.week label {
  font-size: 14px;
  color: #8f99a3;
}

.week button {
  border-radius: 0.5rem;
  border: 1px solid #b9bfc6;
  padding: 4px 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.week button:hover {
  border: 1px solid #0a47c2;
}

.week-info {
  display: flex;
  justify-content: start;
  align-items: start;
  flex-direction: column;
}

.week-meta {
  margin-top: 4px;
  font-size: 13px;
  opacity: 0.85;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.current-week {
  color: #3b82f6;
  margin-left: 6px;
  font-weight: 500;
}

.search {
  display: flex;
  justify-content: start;
  align-items: start;
  flex-direction: column;
}

.search input {
  padding: 8px 12px;
  border-radius: 0.5rem;
  border: 1px solid #b9bfc6;
}

.search label {
  font-size: 14px;
  color: #8f99a3;
}

.search-block {
  margin-top: 60px;
  background: #fff;
  border: 1px solid #e3e6e8;
  border-radius: 8px;
  max-height: 220px;
  overflow: auto;
  position: absolute;
  z-index: 1000;
  margin-right: 50px;
  font-size: 14px;
  width: 200px;
}

.search-block button {
  all: unset;
  display: block;
  width: 100%;
  padding: 8px 12px;
  cursor: pointer;
}

.schedule h2 {
  margin-bottom: 10px;
}

.schedule-block {
  display: flex;
  justify-content: start;
  align-items: unset;
  gap: 16px;
  flex-direction: column;
}

.day-block {
  padding: 12px;
  background-color: white;
  border-radius: 12px;
  display: flex;
  justify-content: start;
  align-items: start;
  flex-direction: column;
  gap: 10px;
}

.day-block .lesson-block:first-of-type,
.day-block > div.weekday-block + .lesson-block {
  border-top: 2px solid #e3e6e8;
}

.weekday-block {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 10px;
}

.weekday-block h3 {
  font-size: 20px;
  font-weight: 500;
  color: #394046;
}

.weekday-block span {
  font-size: 18px;
  color: #8f99a3;
  font-weight: 500;
}

.lesson-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-bottom: 2px solid #e3e6e8;
  padding: 12px 0px;
}

.lesson-left {
  display: flex;
  justify-content: start;
  align-items: start;
  gap: 5px;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}

.lesson-left h4 {
  font-size: 16px;
  font-weight: 600;
  color: #394046;
}

.lesson-left p {
  color: #8f99a3;
  font-size: 14px;
}

.lesson-num {
  padding: 2px 6px;
  border-radius: 4px;
  border: 2px solid #e3e6e8;
  background: #f1f2f4;
  font-size: 14px;
  color: #394046;
}

.lesson-time {
  font-size: 14px;
  color: #8f99a3;
  font: 500px;
}

.lesson-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  position: relative;
  flex: 0 1 60%;
  min-width: 0;
}

.lesson-right > span {
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.lesson-right .aud-link {
  flex: 0 0 auto;
}

.lesson-right span {
  color: #333;
  font-size: 14px;
}

.lesson-right button {
  padding: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  border: 2px solid #b9bfc6;
  border-radius: 15px;
  cursor: pointer;
}

.aud-num {
  color: #394046 !important;
  font-weight: 450;
}

.active-lesson {
  color: #0a47c2 !important;
}

.day-block.active-lesson {
  border: 2px solid #2f80ed;
  border-radius: 10px;
  background-color: #f5f9ff;
  padding: 12px;
}

.weekday-block h3.active-lesson {
  color: #2f80ed;
}

.lesson-block.active-lesson {
  /* border: 2px solid #2f80ed;
  border-radius: 8px;
  background-color: #e9f3ff;
  padding: 10px 5px; */
  box-sizing: border-box;
}

.lesson-left h4.active-lesson {
  color: #2f80ed;
  border-bottom: 2px solid #2f80ed;
}

.aud-popup {
  position: absolute;
  top: 50%;
  right: 50%;
  transform: translateY(-50%) translateX(-10px);
  background: #fefefe;
  border: 1px solid #d3d7db;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 10px 2px rgba(153, 165, 173, 0.4);
  font-size: 14px;
  color: #394046;
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  display: flex;
  justify-content: start;
  align-items: start;
  gap: 8px;
  flex-direction: column;
}

.aud-popup.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.aud-popup a {
  text-decoration: none;
  color: #394046;
  display: flex;
  justify-content: start;
  align-items: start;
  gap: 4px;
}

.aud-popup p {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 4px;
}

.tabs-week-search-block .search input {
  width: 320px;
  font-size: 16px;
}

.tabs-week-search-block .search-block {
  width: 320px;
}

.week-select {
  padding: 8px 12px;
  border-radius: 0.5rem;
  border: 1px solid #b9bfc6;
  background: #fff;
  font-size: 14px;
  min-width: 200px;
  cursor: pointer;
}

.teacher-schedule-page .search,
.classroom-schedule-page .search {
  position: relative;
}

.teacher-schedule-page .search-block,
.classroom-schedule-page .search-block {
  top: calc(100% + 4px);
  left: 0;
  margin-top: 0;
  margin-right: 0;
  z-index: 10000;
}

.lesson-participants {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
}

.lesson-participants span,
.lesson-groups {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.lesson-subgroups {
  color: #394046 !important;
  font-weight: 500;
}

.anonymous-layout .search {
  position: relative;
}

.anonymous-layout .search-block {
  top: calc(100% + 4px);
  left: 0;
  margin-top: 0;
  margin-right: 0;
}

.anonymous-layout .schedule-page {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  box-sizing: border-box;
}
