@charset "UTF-8";
/* Google Fonts: Rubik (с поддержкой кириллицы), мягкие округлые формы */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600&display=swap');

/* Блок входа / сброса пароля: фон = body, без тёмно-серой подложки */
.login-form {
	width: 320px;
	max-width: calc(100% - 24px);
	box-sizing: border-box;
	margin: 48px auto 24px;
	padding: 22px 20px 16px;
	border: 1px solid #888;
	border-radius: 12px;
	background: #CCCCCC;
}
.login-form .form-label {
	margin-bottom: 0.35rem;
	color: #333;
	font-weight: 500;
}
.login-form .form-control {
	border-radius: 0.5rem;
}
.login-form__submit {
	display: block;
	width: 100%;
	border-radius: 0.5rem;
	padding: 0.55rem 1rem;
	font-weight: 500;
}
.login-form__title {
	margin: 0 0 1rem;
	font-size: 1.25rem;
	font-weight: 600;
	text-align: center;
	color: #333;
}
.login-form__meta {
	margin-top: 14px;
	color: #A9A9A9;
	text-align: center;
	font-size: 12px;
	line-height: 1.35;
}
.login-form__meta--ua {
	margin-top: 4px;
	overflow-wrap: anywhere;
	word-break: break-word;
}

body {
	background-color: #CCCCCC;
	padding-top: 8px;
	max-width: 100%;
	overflow-x: hidden;
}
html {
	max-width: 100%;
	overflow-x: hidden;
}
body,td,th {
	/* font-family: Tahoma; */
	/* color: #333333; */
	color: #000000;
  font-size: 13px;
  /* Глобальный шрифт с мягкими округлыми формами */
  font-family: 'Rubik', 'Segoe UI', 'Nunito Sans', Tahoma, Arial, sans-serif;
}
a {
  font-size: 13px;
}
a:link:not(.btn) {
	color: #696969;
	text-decoration: none;
}
a:visited:not(.btn) {
	color: #696969;
	text-decoration: none;
}
a:hover:not(.btn) {
	text-decoration: underline;
}
a:active:not(.btn) {
	text-decoration: none;
}

header {
  display: block;
  /* background: white; */
  background: #A9A9A9;
  margin-top: 0;
  margin-bottom: 6px;
  text-align: center;
}
.dk-ip-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 10px;
  margin: 8px 0 4px;
  text-align: center;
}
.dk-ip-line-home {
  margin: 2px 0 0;
}
.dk-status-line + br,
.dk-status-line + br + br {
  display: none;
}
.index-home-search {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 6px 0 2px;
  text-align: center;
}
.index-home-search form[name="myform"] {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 240px;
  max-width: 100%;
  margin: 8px auto 10px;
}
.index-home-search form[name="myform"] > a {
  display: block;
  width: 100%;
}
.index-home-find {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}
.index-home-search form[name="myform"] > a .btn,
.index-home-find input[type="text"],
.index-home-find input[type="submit"] {
  width: 100%;
  height: 34px;
  min-height: 34px;
  margin: 0;
  box-sizing: border-box;
  padding: 4px 10px;
  font-size: 13px;
  line-height: 1.2;
}
.header-container {
  margin-right: auto;
  margin-left: auto;
  padding: 2px 15px 0;
}
.logo {
  line-height: 1;
  margin: 0;
  padding-bottom: 25px;
}
.logo a {
  /* color: #D5B45B; */
  color: #F5F5DC;
  font-family: 'Playfair Display', serif;
  display: block;
}
nav {
  display: block;
  width: 100%;
  margin-bottom: -4px;
  text-align: center;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  float: none;
  max-width: 100%;
  gap: 0 28px;
}
.menu > li {
  float: none;
    font-size: 13px;
    font-weight: bold;
    line-height: 30px;
    margin-right: 0;
    position: relative;
    text-transform: uppercase;
  /* Меню также на новом шрифте */
  font-family: 'Rubik', 'Segoe UI', 'Nunito Sans', Tahoma, Arial, sans-serif;
}
.menu > li:last-child {
    margin-right: 0;
}
/* Вторая строка: только индикаторы (под пунктами меню) */
.menu-indicators {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  float: none;
  width: 100%;
  max-width: 100%;
  margin: 2px auto 4px;
  padding: 4px 0 2px;
  border-top: 1px solid rgba(0, 0, 0, 0.14);
  list-style: none;
  gap: 4px 10px;
}
.menu-indicators > li {
  float: none;
  margin-right: 0;
  line-height: 0;
  text-transform: none;
  font-weight: normal;
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 28px;
}
.menu-indicators > li > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  line-height: 1;
  text-decoration: none;
}
/* Единая высота и ширина всех «пилюль» индикаторов (кнопки и голые badge) */
.menu-indicators .btn.btn-sm,
.menu-indicators a > .badge {
  box-sizing: border-box;
  height: 28px;
  min-height: 28px;
  max-height: 28px;
  width: 72px;
  min-width: 72px;
  max-width: 72px;
  margin: 0;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 13px;
  font-weight: 700;
  border-width: 1px;
  border-style: solid;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
}
.menu-indicators .btn.btn-sm .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  margin: 0;
  line-height: 1;
  font-size: 13px;
  font-weight: 700;
  border: 0 !important;
  border-radius: 0 !important;
  vertical-align: middle;
  background: transparent !important;
  background-color: transparent !important;
  color: #404040 !important;
  box-shadow: none !important;
}
.menu-indicators a > .badge {
  color: #404040 !important;
}
.menu-indicators .menu-indicator-item {
  height: 28px;
  gap: 6px;
}
.menu-indicators .menu-indicator-item .badge {
  color: #404040 !important;
}
/* Бейджи задач в строке меню (между главной и «Отчеты») */
.menu > li.menu-task-badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: none;
  font-weight: 700;
  line-height: 1;
}
.menu > li.menu-task-badges > a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}
.menu > li.menu-task-badges .badge {
  box-sizing: border-box;
  height: 22px;
  min-height: 22px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.menu > li.menu-task-badges .badge-info {
  background: linear-gradient(135deg, #ffe566 0%, #ffb347 45%, #ff7eb3 100%) !important;
  color: #3d2c1e !important;
}
.menu > li.menu-task-badges .badge-danger {
  background: linear-gradient(135deg, #ff8a65 0%, #ff5252 55%, #e040fb 100%) !important;
  color: #fff !important;
}
nav::after {
  content: "";
  display: table;
  clear: both;
}
.menu > li > a {
  display: inline-block;
  color: #404040;
    line-height: 20px;
}
.menu > li:hover > a,.submenu > li:hover a {
  /* color: #D5B45B; */
  color: #F5F5DC;
}
.fa {
  font-family: "FontAwesome";
  color: #404040;
}
/* Глобально: иконки в тексте не раздувают меню/строки лишним отступом у SVG FA */
i.fa, i.fas, i.far, i.fal, i.fab, i.fa-solid, i.fa-regular, i.fa-light {
  margin-left: 0;
}
.menu > li > i,
.menu > li > a > i {
  margin-left: 6px;
  margin-right: 2px;
}
.menu > li > i:first-child,
.menu > li > a > i:first-child {
  margin-left: 0;
}

.submenu {
  background: #696969;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10000;
  width: 220px;
  max-width: calc(100vw - 16px);
  display: none;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}
.submenu.is-open {
  display: block;
}
.submenu a {
  color: white!important;
    text-align: left;
    display: block;
    padding: 8px 8px;
    font-size: 13px;
    font-weight: normal;
    line-height: 22px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.submenu.submenu-ranked {
  width: 280px;
}
.submenu a.menu-tracked {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.submenu a .menu-item-label {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
}
.submenu a .menu-item-label > i,
.submenu a .menu-item-label > svg {
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
  margin-top: 0.28em;
}
.menu-click-count {
  flex: 0 0 auto;
  min-width: 1.5em;
  margin-top: 2px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.42) !important;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  font-weight: 500;
}
.menu-stat-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 14px 16px;
}
.menu-stat-card b {
  display: block;
  font-size: 1.6rem;
  line-height: 1.1;
}
.menu-stat-row {
  display: grid;
  grid-template-columns: minmax(140px, 280px) 1fr 3rem;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}
.menu-stat-track {
  height: 8px;
  border-radius: 99px;
  background: #ececec;
  overflow: hidden;
}
.menu-stat-track > span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: #8aa0b2;
}
@media (max-width: 720px) {
  .menu-stat-row {
    grid-template-columns: 1fr;
  }
}
li ul li:last-child a {
    border-bottom: none;
}
/* Открытие только через JS (.is-open): CSS :hover + absolute раздувал scrollHeight страницы */

@media print {
    		a[href]:after {
        		content: "" !important;
    }
}

.rev-table td{
    cursor: pointer;
}
.rev-table td:hover{
    background-color: rgba(0,0,0,.075);
}
.table_sort th{
    cursor: pointer;
}
th.sorted[data-order="1"],
th.sorted[data-order="-1"] {
    position: relative;
}

th.sorted[data-order="1"]::after,
th.sorted[data-order="-1"]::after {
    right: 8px;
    position: absolute;
}

th.sorted[data-order="-1"]::after {
	content: "▼"
}

th.sorted[data-order="1"]::after {
	content: "▲"
}

.table_fixed_headers {
	overflow: auto;
	height: 300px;
}
.table_fixed_headers thead th {
  position: sticky;
  top: 0;
  background-color: #d9edf7;
}

.dk-to-top {
  position: fixed;
  z-index: 9999;
  right: 18px;
  bottom: 18px;
  display: none;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff !important;
  background: linear-gradient(180deg, #ff8a00 0%, #ff5e62 100%);
  border: 2px solid rgba(255,255,255,0.55);
  box-shadow: 0 10px 22px rgba(255, 94, 98, 0.28), 0 4px 10px rgba(0,0,0,0.14);
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, opacity .18s ease;
  backdrop-filter: blur(4px);
  overflow: hidden;
}

/* Не задаём display на самой кнопке — иначе перебивает display:none / JS */
.dk-to-top i,
.dk-to-top svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: #fff !important;
  font-size: 28px;
  width: 1em;
  height: 1em;
  line-height: 1;
  transform: translateY(-1px);
}

.dk-to-top .fa,
.dk-to-top .fa-solid,
.dk-to-top .fa-regular,
.dk-to-top .fa-light {
  color: #fff !important;
}

.dk-to-top:hover,
.dk-to-top:focus {
  color: #fff !important;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 14px 28px rgba(255, 94, 98, 0.32), 0 6px 14px rgba(0,0,0,0.16);
  filter: saturate(1.04) brightness(1.03);
  text-decoration: none !important;
}

.dk-to-top:active {
  transform: translateY(0) scale(0.96);
  box-shadow: 0 8px 16px rgba(255, 94, 98, 0.24), 0 2px 6px rgba(0,0,0,0.12);
}

.dk-to-top:focus-visible {
  outline: 3px solid rgba(255, 193, 7, 0.45);
  outline-offset: 3px;
}

/* Пока страница не долистана до конца — кнопка меньше и прозрачнее, чтобы не закрывать карточку */
.dk-to-top.is-dim {
  opacity: 0.38;
  width: 40px;
  height: 40px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}
.dk-to-top.is-dim i,
.dk-to-top.is-dim svg {
  font-size: 18px;
}
.dk-to-top.is-dim:hover,
.dk-to-top.is-dim:focus {
  opacity: 0.92;
  width: 48px;
  height: 48px;
}

#toTop {
  display: none;
}

#toTop > i {
  margin: 0;
}

/* ===== Global 13px typography overrides ===== */
/* Базовый размер для rem в Bootstrap 5 и общий текст */
html, body { font-size: 13px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }

/* Формы и базовые элементы управления (перебиваем inline 13px и т.п.) */
button, input, select, textarea { font-size: 13px !important; }

/* Bootstrap 3/5: кнопки и элементы навигации */
.btn,
.btn-sm,
.btn-xs,
.btn-lg,
.btn-default,
.btn-primary,
.btn-success,
.btn-info,
.btn-warning,
.btn-danger { font-size: 13px !important; }

.form-control,
.input-sm,
.input-lg { font-size: 13px !important; }

.nav,
.navbar,
.navbar-nav > li > a,
.dropdown-menu,
.panel,
.panel-title,
.modal-title,
.modal-body,
.list-group-item,
.breadcrumb,
.pagination,
.label,
.badge,
.alert { font-size: 13px !important; }

/* Метка владельца счёта выписки (Шериф / Босс) — крупнее и контрастнее глобального .badge */
.sber-account-owner-badge {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  padding: 0.35em 0.7em !important;
  line-height: 1.2 !important;
  vertical-align: middle;
  opacity: 1 !important;
  text-shadow: none !important;
}
.sber-account-owner-badge.text-bg-primary {
  background-color: #0d6efd !important;
  color: #fff !important;
}
.sber-account-owner-badge.text-bg-warning {
  background-color: #ffc107 !important;
  color: #000 !important;
}

/* Единый стиль бейджа названия IP из xdiplom_proxy */
.proxy-video-thinking {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin: 0 6px 0 0;
  border: 2px solid #6b7280;
  border-top-color: #111827;
  border-radius: 50%;
  vertical-align: -1px;
  box-sizing: border-box;
  animation: proxy-video-spin 0.7s linear infinite;
}

@keyframes proxy-video-spin {
  to { transform: rotate(360deg); }
}

.proxy-video-fail {
  color: #dc2626 !important;
  margin-right: 5px;
}

.proxy-video-ok {
  color: #16a34a !important;
  margin-right: 5px;
}

/* Идёт check_proxy_for_educon — не путать с мёртвым прокси */
.proxy-video-checking {
  color: #ca8a04 !important;
  margin-right: 5px;
  animation: proxy-video-spin 1.2s linear infinite;
}

.dk-proxy-ip-badge {
  --bs-badge-color: #111827 !important;
  --bs-badge-bg: #ffe08a !important;
  background-color: #ffe08a !important;
  color: #111827 !important;
  border: 1px solid #d3a93a !important;
  font-weight: 700;
  margin-left: 6px;
  padding: 0.25em 0.55em !important;
  border-radius: 0.5rem !important;
  vertical-align: middle;
  opacity: 1 !important;
  text-shadow: none !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

/* Таблицы */
.table,
.table td,
.table th { font-size: 13px; }

/* jQuery UI */
.ui-widget,
.ui-widget input,
.ui-widget select,
.ui-widget textarea,
.ui-widget button { font-size: 13px !important; }

/* jQuery UI Tabs: нормализуем размеры вкладок */
.ui-tabs .ui-tabs-nav li,
.ui-tabs .ui-tabs-nav li a,
.work-card-legacy .ui-tabs-nav li,
.work-card-legacy .ui-tabs-nav li a { font-size: 13px !important; }

/* Устаревшие теги <font size=...>: принудительно 12px */
font[size],
font[size] * { font-size: 13px !important; }

/* Мелкий текст по Bootstrap/HTML */
small, .small, .lead { font-size: 13px !important; }

/* Стили для заголовков работ */
.work-header {
  font-size: 18px !important;
  margin-bottom: 8px;
  text-align: center;
  width: 100%;
}
.work-header span {
  display: inline-block;
}
.work-header .work-id,
.work-header .work-type {
  color: #FF4500;
}
.work-header .work-theme {
  color: #FF4500;
  font-weight: bold;
}
.work-header .work-semester {
  color: blue;
  font-weight: bold;
}
.work-header .work-status {
  color: green;
  font-weight: bold;
}

/* Таблица истории IP на карточке студента */
.ip-test-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow-x: visible;
}

.ip-table-scroll {
  width: 100%;
  overflow-x: hidden;
  margin: 0 0 12px 0;
}

.ip-filter-wrap {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 10px auto;
  text-align: left;
}

.ip-test-table {
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed !important;
  margin: 0 auto 16px auto;
}

.ip-test-table-hidden {
  display: none;
}

.ip-test-table.ip-fit-mode {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed !important;
}

.ip-test-table.ip-fit-mode th,
.ip-test-table.ip-fit-mode td {
  white-space: normal !important;
  width: auto !important;
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  hyphens: auto !important;
  overflow: hidden !important;
  text-overflow: clip !important;
}

.ip-test-table.ip-fit-mode th *,
.ip-test-table.ip-fit-mode td * {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  hyphens: auto !important;
}

.ip-test-table.ip-fit-mode tr > th,
.ip-test-table.ip-fit-mode tr > td {
  max-width: 100% !important;
}

.ip-test-table th,
.ip-test-table td {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  hyphens: auto !important;
  overflow: hidden;
  text-overflow: clip;
}

.ip-test-table tr > th,
.ip-test-table tr > td {
  max-width: 100% !important;
}

.ip-test-table th *,
.ip-test-table td * {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  hyphens: auto !important;
}

/* Умеренно широкий экран: IP-таблица уже занимает всю доступную ширину */
@media (min-width: 901px) and (max-width: 1500px) {
  .ip-filter-wrap {
    width: 100%;
    max-width: 100%;
  }
  .ip-table-scroll {
    width: 100%;
    overflow-x: hidden;
    margin-left: auto;
    margin-right: auto;
  }
  .ip-test-table {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    table-layout: auto !important;
  }
  .ip-test-table th,
  .ip-test-table td {
    white-space: nowrap !important;
    width: auto !important;
    min-width: 1% !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
    overflow: visible !important;
    text-overflow: unset !important;
  }
  .ip-test-table th *,
  .ip-test-table td * {
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }
  .ip-test-table tr > th,
  .ip-test-table tr > td {
    max-width: none !important;
  }
}

/* Очень широкий экран: компактный режим 60% */
@media (min-width: 1501px) {
  .ip-filter-wrap {
    width: 60%;
    max-width: 60%;
  }
  .ip-table-scroll {
    width: 60%;
    overflow-x: hidden;
    margin-left: auto;
    margin-right: auto;
  }
  .ip-test-table {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    table-layout: auto !important;
  }
  .ip-test-table th,
  .ip-test-table td {
    white-space: nowrap !important;
    width: auto !important;
    min-width: 1% !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
    overflow: visible !important;
    text-overflow: unset !important;
  }
  .ip-test-table th *,
  .ip-test-table td * {
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }
  .ip-test-table tr > th,
  .ip-test-table tr > td {
    max-width: none !important;
  }
}

@media (max-width: 900px) {
  .ip-filter-wrap {
    width: 100%;
    max-width: 100%;
  }
  .ip-table-scroll {
    width: 100%;
  }
  .ip-test-wrap {
    padding-left: 6px;
    padding-right: 6px;
  }
  .ip-table-scroll {
    overflow-x: hidden;
  }
  .ip-test-table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
  }
  .ip-test-table th,
  .ip-test-table td {
    font-size: 12px !important;
    padding: 6px 4px !important;
  }
}

/* ===== Мобильная вёрстка (не трогает широкие экраны) ===== */
.dk-mnav-bar,
.dk-mnav-back { display: none; }
.dk-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 12px;
}
.dk-table-scroll > table {
  width: max-content;
  min-width: 100%;
  margin-bottom: 0;
}
.form-group {
  margin-bottom: 0.75rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.25rem;
}

.dk-educon-fly-btn {
  white-space: normal;
  text-align: left;
}

@media (max-width: 768px) {
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }
  .dk-educon-fly-btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
  body {
    padding-left: max(8px, env(safe-area-inset-left));
    padding-right: max(8px, env(safe-area-inset-right));
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  img, video, iframe, embed, canvas {
    max-width: 100%;
    height: auto;
  }
  pre {
    max-width: 100%;
    white-space: pre-wrap;
    overflow-x: auto;
  }

  .dk-status-line {
    display: block;
    max-width: 100%;
    margin: 0 auto;
    padding: 1px 12px 0;
    overflow-wrap: break-word;
    word-break: normal;
    line-height: 1.2;
    font-size: 13px;
  }
  .dk-status-line,
  .dk-status-line font {
    color: #c45c28 !important;
    font-weight: 600;
  }
  #global-search-top {
    padding: 0 4px;
  }
  form[name="myform"],
  form[name="search_top_form"] {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: min(100%, 440px) !important;
    max-width: 100%;
    margin: 8px auto !important;
    box-sizing: border-box;
  }
  form[name="myform"] input[type="text"],
  form[name="myform"] input[type="search"],
  form[name="myform"] input[type="number"],
  form[name="myform"] input[type="submit"],
  form[name="myform"] input[type="button"],
  form[name="myform"] .btn,
  form[name="myform"] a,
  form[name="search_top_form"] input[type="text"],
  form[name="search_top_form"] input[type="search"],
  form[name="search_top_form"] input[type="submit"],
  form[name="search_top_form"] .btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 44px;
  }
  form[name="myform"] a {
    display: flex;
  }
  form[name="myform"] a .btn {
    width: 100%;
  }
  .dk-ip-line-home {
    margin: 2px 0 0;
  }
  .index-home-search {
    margin: 4px 0 0;
  }
  .index-home-search form[name="myform"] {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 440px) !important;
    margin: 4px auto 2px !important;
    gap: 6px;
  }
  .index-home-find {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 6px;
  }
  .index-home-search form[name="myform"] > a .btn,
  .index-home-find input[type="text"],
  .index-home-find input[type="submit"] {
    height: auto;
    min-height: 44px;
  }
  .index-home-search + .container-fluid {
    margin-top: 2px !important;
  }

  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="range"]),
  select,
  textarea,
  .form-control,
  .form-select {
    font-size: 16px !important;
    max-width: 100%;
    box-sizing: border-box;
  }
  .form-control,
  .form-select,
  select.form-control {
    min-height: 44px;
  }

  /* Только width:, не max-width/min-width — иначе контейнеры с max-width получают лишнюю прокрутку */
  div[style^="width:"],
  div[style*=";width:"],
  div[style*="; width:"],
  div[style*=" width:"],
  form[style^="width:"],
  form[style*=";width:"],
  form[style*="; width:"],
  center[style^="width:"],
  center[style*=";width:"],
  center[style*="; width:"] {
    max-width: 100% !important;
    box-sizing: border-box;
  }
  div[style^="width:"],
  div[style*=";width:"],
  div[style*="; width:"],
  div[style*=" width:"] {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .container,
  .container-fluid,
  .col-md-12 {
    max-width: 100%;
    padding-left: 8px;
    padding-right: 8px;
  }
  .modal-dialog {
    max-width: calc(100vw - 16px) !important;
    width: auto;
    margin: 8px auto !important;
  }
  .modal-body {
    overflow-x: auto;
  }
  .pagination {
    flex-wrap: wrap;
    justify-content: center;
  }
  .nav-tabs {
    flex-wrap: wrap;
  }
  .nav-tabs .nav-link {
    white-space: normal;
  }
  .work-header {
    font-size: 15px !important;
    padding: 0 6px;
    overflow-wrap: anywhere;
  }
  .dk-mnav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    position: sticky;
    top: 0;
    z-index: 10060;
    margin: 0 -15px 6px;
    padding: 8px 12px;
    background: #9a9a9a;
    box-sizing: border-box;
  }
  .dk-mnav-home {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2c2c2c !important;
    font-weight: 700;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: .02em;
    overflow: hidden;
  }
  .dk-mnav-home i {
    flex: 0 0 auto;
    color: #2c2c2c;
    font-size: 16px;
  }
  .dk-mnav-home span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .dk-mnav-badges {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    list-style: none;
  }
  .dk-mnav-badges li {
    list-style: none;
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
  }
  .dk-mnav-badges li::marker {
    content: none;
  }
  .dk-mnav-toggle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: #404040;
    color: #fff;
    font: 700 14px/1 'Rubik', 'Segoe UI', Tahoma, Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: .03em;
  }
  .dk-mnav-toggle i { color: #fff; }
  header.dk-mnav nav > ul.menu:not(.menu-indicators) { display: none; }
  header.dk-mnav.is-open nav > ul.menu:not(.menu-indicators) {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10050;
    margin: 0;
    padding: 0 0 28px;
    overflow-x: hidden;
    overflow-y: auto;
    background: #d0d0d0;
    text-align: left;
    -webkit-overflow-scrolling: touch;
  }
  header.dk-mnav.is-open nav > ul.menu:not(.menu-indicators) > li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: flex-start;
    width: 100%;
    margin: 0;
    padding: 0 10px;
    line-height: 1.2;
    border-bottom: 1px solid rgba(0, 0, 0, .12);
    background: #d0d0d0;
  }
  header.dk-mnav.is-open nav > ul.menu:not(.menu-indicators) > li > a {
    flex: 1 1 auto;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    padding: 8px 4px;
    text-decoration: none;
  }
  header.dk-mnav.is-open nav > ul.menu:not(.menu-indicators) > li > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
  }
  header.dk-mnav.is-open .submenu,
  header.dk-mnav.is-open .submenu.is-open {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    height: auto !important;
    z-index: auto !important;
    box-shadow: none;
    flex: 1 1 100%;
    order: 5;
    background: #4e4e4e;
    border-radius: 8px;
    margin: 0 0 8px;
    overflow: visible;
    min-height: 0;
  }
  header.dk-mnav.is-open .submenu { display: none !important; }
  header.dk-mnav.is-open .submenu.is-open { display: block !important; }
  .dk-mnav-back { display: none; }
  header.dk-mnav.is-open.is-drill .dk-mnav-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    z-index: 10055;
    min-height: 48px;
    margin: 0;
    padding: 10px 14px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    background: #0d6efd;
    color: #fff;
    font: 800 15px/1.2 'Rubik', 'Segoe UI', Tahoma, Arial, sans-serif;
    letter-spacing: .01em;
    cursor: pointer;
  }
  header.dk-mnav.is-open.is-drill .dk-mnav-back i {
    color: #fff;
    font-size: 16px;
  }
  header.dk-mnav.is-drill.is-open nav > ul.menu:not(.menu-indicators) > li:not(.is-open) {
    display: none !important;
  }
  header.dk-mnav.is-drill.is-open nav > ul.menu:not(.menu-indicators) > li.is-open > i {
    transform: rotate(180deg);
  }
  header.dk-mnav.is-open .submenu a {
    min-height: 44px;
    padding: 10px 12px;
    line-height: 1.3;
    color: #fff !important;
  }
  body.dk-mnav-lock { overflow: hidden; }
  .dk-to-top {
    width: 48px;
    height: 48px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
  }
  .dk-to-top i,
  .dk-to-top svg {
    font-size: 20px;
  }
  .month_table .month_tt .big_month,
  .month_table .month_tt .name {
    width: auto;
    max-width: 100%;
  }
  .table-responsive {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  center {
    max-width: 100%;
    box-sizing: border-box;
  }
  .ui-widget input,
  .ui-widget select,
  .ui-widget textarea {
    font-size: 16px !important;
  }
  .dk-btn-cloud .btn,
  form .text-center .btn {
    margin: 4px;
    max-width: 100%;
    white-space: normal;
    min-height: 42px;
  }
  label {
    overflow-wrap: anywhere;
  }
}

/* Примечание студента на карточке: без «дыр» от пустых абзацев TinyMCE */
.dk-student-etc {
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
  text-align: left;
}
.dk-student-etc > p {
  margin: 0.2em 0;
  line-height: 1.35;
}
.dk-student-etc > p:first-child {
  margin-top: 0;
}
.dk-student-etc > p:last-child {
  margin-bottom: 0;
}


