.image-container {
    position: relative;
    display: inline-block;
}

.image-table {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: transform 0.3s;
}

.avatar_big {
    min-width: 120px;
    max-width: 250px;
    height: auto;
}

.image-container:hover .image-table {
    transform: scale(1.2);
}

.balance_red {
    font-size: 20px;
    color: red;
}

.balance_green {
    font-size: 20px;
    color: green;
}

.table .red-text {
    color: red;
}

.table .green-text {
    color: green;
}

.balance_red {
    font-size: 20px;
    color: red;
}

.balance_green {
    font-size: 20px;
    color: green;
}

.long_table .red-text {
    color: red;
}

.long_table .green-text {
    color: green;
}

.gap_line {
	margin: 20px 0;
	padding: 0;
	height: 0;
	border: none;
}

.table_header {
  padding: 14px 10px;
  color: #575757;
  font-size: 12px;
  text-align: right;
  font-weight: 500;
}

.student-profile {
    display: flex;
    align-items: flex-start;
}

.last-name{
    font-weight: 500;
    font-size: 1.2em;
}

.rating {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1997cd;
    width: 100%;
    height: 50px;
    color: white;
    font-size: 20px;
    margin-bottom: 20px;
}

.student-info {
    flex: 1;
}

@media screen and (max-width: 600px) {
  .student-profile {
    flex-direction: column;
    align-items: center;
  }
}

table {
    width: 100%;
    table-layout: auto; /* Позволяет гибко распределять ширину */
    border-collapse: collapse; /* Убрать пробелы между границами */
}

th, td {
    text-align: center; /* Центрировать текст */
    padding: 8px; /* Отступы внутри ячеек */
}

.month-year-header,
.month-year-column {
    width: 100px; /* Мин. ширина */
    max-width: 200px; /* Макс. ширина */
}

.attendance-green {
    background-color: #9bd99e;
}

.attendance-red {
    background-color: #f5867e;
}

.attendance-blue {
    background-color: #7fa6ff;
}

.attendance-gray {
    background-color: #efefef;
}

.attendance-cell {
    max-width: 100px;
    overflow: hidden;
}

.text-centered {
    text-align: center;
}

.text-left {
    text-align: left;
}
.long_table {
    height: auto;
    text-align: left;
    font-size: 0.8rem;
    display: table;
    max-width: 100%;
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.long_table td, .long_table th {
    height: 20px;
    padding: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.long_table_even_row {
    background-color: #efeff3;
}

.long_table_odd_row {
    background-color: #ffffff;
}

.short_table {
    font-size: 0.9rem;
}

.small_table {
    border-collapse: collapse; /* Убирает двойные линии между ячейками */
    width: 100%; /* Заставляет таблицу занимать всю возможную ширину контейнера */
}

.small_table th, /* Применяет стили ко всем заголовкам ячеек в таблице */
.small_table td { /* Применяет стили ко всем стандартным ячейкам в таблице */
    border: 1px solid #dee2e6;
    font-size: 0.8rem;
    text-align: center;
    padding: 8px;
    word-wrap: break-word; /* Заставляет текст переноситься внутри ячеек, если он длинный */
}

.small_table th {
    background-color: #f2f2f2; /* фон для заголовков таблицы */
}

.small_table td {
    word-break: break-all;
}

.cell_text-ellipsis {
    max-width: 150px; /* Ширина, при которой текст будет обрезаться */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.col-7 {
    width: 7%;
}

.col-25 {
    width: 25%;
}

.col-10 {
    width: 10%;
}

.col-15 {
    width: 15%;
}

.col-auto {
    width: auto;
}

i.fa.icon-blue,
i.fa-solid.icon-blue,
i.fas.icon-blue {
  color: #4b4b4b;
}

.not_active_color {
    color: #c7c7c7;
}

#headerCell .table_header .green-color {
    color: #0dfa0d;
    }

.filter_container {
    display: flex;
    align-items: center;
  }

.mdc-switch {
  display: flex; /* Чтобы дочерние элементы могли использовать flexbox */
  align-items: center; /* Центрирование переключателя */
}

.switch-label {
  margin-left: 12px;
  font-weight: 400;
  font-size: 12px;
}


.switch-label, .mdc-select__menu {
    font-size: 12px;
  }

.filter-container {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.filter-box {
  position: relative;
  height: 70px;
  border: 1px solid #99daff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px 10px 5px 0; /* комбинированные отступы для компактности */
  background-color: #f9f9f9;
  min-width: 120px; /* минимальная ширина */
  flex: 1 1 20%; /* определение гибкости для возможности переноса */
}

.filter-box-title {
  position: absolute;
  top: -10px;
  left: 10px;
  background-color: white;
  padding: 0 5px;
  font-size: 12px;
  color: #333;
}

.filter-inputbox {
  display: inline-block;
  width: 100%;
  padding: 10px;
}

.filter-inputbox input {
  border-radius: 5px;
  border: 1px solid rgba(204, 204, 204, 0);
  font-size: 14px;
  font-weight: 600;
  width: 100%;
  box-sizing: border-box;
}

.sort-icon {
    color: #6cc4fb;
}

#calendar-input {
    border: none;
    width: auto;
    max-width: 100%;
    font-weight: 500;
}

.payment {
    margin-top: 30px;
    font-weight: 400;
    font-size: 0.9rem;
}

.success-message {
    height: 80px; /* Высота блока */
    background-color: #047530; /* Цвет фона */
    color: white; /* Цвет текста */
    display: flex; /* Используем flexbox для расположения элементов */
    flex-direction: column; /* Изменяем направление flex-контейнера */
    align-items: center; /* Горизонтальное центрирование */
    justify-content: center; /* Вертикальное центрирование */
    margin: 20px 0; /* Отступы сверху и снизу */
    padding-top: 10px;
}

.fail-message {
    height: 80px; /* Высота блока */
    background-color: #b12a35; /* Цвет фона */
    color: white; /* Цвет текста */
    display: flex; /* Используем flexbox для расположения элементов */
    flex-direction: column; /* Изменяем направление flex-контейнера */
    align-items: center; /* Горизонтальное центрирование */
    justify-content: center; /* Вертикальное центрирование */
    margin: 20px 0; /* Отступы сверху и снизу */
    padding-top: 10px;
}

a.link:hover {
    color: #c83209;
    text-decoration: underline;
}

.attendance-table-column {
    min-width: 80px;
    max-width: 160px;
}

.fixed-width-2x.text-centered.attendance-table-column {
    width: 200px; /* Фиксированная ширина для первой колонки */
    white-space: nowrap; /* Предотвращение переноса текста */
    overflow: hidden; /* Скрытие текста, выходящего за границы */
    text-overflow: ellipsis; /* Добавление многоточия для обрезанного текста */
}

.fixed-width-2x.text-centered.attendance-table-column::before {
    content: attr(data-content); /* Установка текста из атрибута data-content */
    visibility: hidden; /* Скрытие текста */
    white-space: nowrap; /* Предотвращение переноса текста */
}

.icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer; /* Указатель при наведении */
}

.icon-container:hover .edit-icon {
    color: blue; /* Цвет при наведении на иконку редактирования */
}

.icon-container:hover .save-icon {
    color: green; /* Цвет при наведении на иконку сохранения */
}

.avatar-container {
    position: relative;
    display: inline-block;
}

.avatar-upload-label {
    border: 2px dashed #ccc;
    padding: 10px;
    cursor: pointer;
    text-align: center;
    position: relative;
}

.avatar-upload-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    color: white;
}

.avatar-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-placeholder img {
    border: 2px dashed #ccc;
}

.avatar-placeholder .avatar-upload-text {
    display: block;
}

.hidden {
    display: none;
}