@charset "utf-8";
/* ==========================================================================
   axis5.css — адаптивная тема axis на Bootstrap 5.3.

   Подключается последним: сначала bootstrap.min.css, затем старые slt.css и
   axis_tmp.css, потом этот файл — он перекрывает и старое, и BS5.

   Каркас (шапка/заголовок/подменю/сообщения) рисует lib/libaxis5.cgi,
   остальные страницы axis остаются со своими классами: они здесь
   переопределены под BS5 и под узкие экраны (раньше всё было 972-990 px).

   Файл в UTF-8 (в отличие от остальных файлов axis) — так его и отдаёт Apache,
   поэтому добавлен @charset.
   ========================================================================== */

:root {
  --axis-brand: #b0c4de;
  --axis-brand-dark: #5b7ba6;
  --axis-brand-deep: #34495e;
  --axis-radius: .5rem;
}

/* ------------------------------------------------------------------ каркас */

body,
body.axis-body {
  background: #f4f6fa;
  color: #212529;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  padding-bottom: 2rem;
}

.axis-navbar {
  background: linear-gradient(180deg, var(--axis-brand) 0%, #9db4d4 100%);
  border-bottom: 1px solid #8ba3c7;
}

.axis-navbar .navbar-brand {
  color: #1b2b44;
  font-weight: 700;
}

.axis-navbar .navbar-brand img {
  height: 34px;
  width: auto;
  flex: 0 0 auto;
  max-width: 60vw;
}

.axis-navbar .navbar-text {
  color: #23324a;
  font-size: .875rem;
  line-height: 1.25;
}

.axis-navbar .nav-link {
  color: #1b2b44;
}

.axis-navbar .nav-link:hover,
.axis-navbar .nav-link:focus {
  color: #000;
  background-color: rgba(255, 255, 255, .35);
  border-radius: .375rem;
}

.axis-rights span {
  display: inline-block;
  min-width: 1.35rem;
  margin-right: .15rem;
  padding: 0 .25rem;
  background: #fff;
  border: 1px solid #8ba3c7;
  border-radius: .25rem;
  text-align: center;
  font-weight: 600;
}

/* заголовок страницы (заменяет старый .header, класс сохранён) */
.axis-title,
.header {
  width: auto !important;
  max-width: 100%;
  float: none !important;
  margin: .75rem 0 .5rem;
  padding: .5rem .75rem;
  background: var(--axis-brand);
  border-radius: var(--axis-radius) var(--axis-radius) 0 0;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
}


/* -------------------------------------------- подменю (новое и старое) */

.axis-submenu,
.subhed2,
.analize_error {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  width: auto !important;
  max-width: 100%;
  float: none !important;
  margin: 0 0 .75rem;
  padding: .5rem .6rem;
  background: #e7eef7;
  border: 1px solid #c3d3e8;
  border-radius: 0 0 var(--axis-radius) var(--axis-radius);
  font-size: .875rem;
  overflow: visible;
}

/* старые «пилюли»-ссылки в подменю делаем кнопками */
.subhed3,
.subhed4,
.selsub3 {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  float: none !important;
  margin: .15rem .25rem .15rem 0;
  padding: .35rem .7rem;
  background: #fff;
  border: 1px solid #9db4d4;
  border-radius: .375rem;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}

.subhed3:hover,
.subhed4:hover,
.selsub3:hover {
  background: var(--axis-brand);
  border-color: var(--axis-brand-dark);
}

a.subhed3:link,
a.subhed3:visited,
a.subhed4:visited,
a.subhed3:hover,
a.subhed4:hover {
  color: #12335e;
  text-decoration: none;
}

/* ------------------------------------------------ сообщения и ошибки */

.mess_out,
.mess,
.error,
.analyze_error {
  width: auto !important;
  max-width: 100%;
  float: none !important;
  margin: .5rem 0;
  padding: .6rem .8rem;
  border-radius: .375rem;
  font-size: .95rem;
  line-height: 1.35;
}

.mess_out {
  background: #fff;
  color: #b02a37;
  border: 1px solid #f1aeb5;
}

/* пустой блок сообщений не должен занимать место */
.mess_out:empty {
  display: none;
}

.mess {
  background: #e7f1ff;
  color: #084298;
  border: 1px solid #b6d4fe;
}

.error {
  background: #f8d7da;
  color: #842029;
  border: 1px solid #f1aeb5;
}

/* ------------------------------------------------------ формы и поля */

/* старый макет форм был жёстко 990 px */
.fb_form,
.wrap,
.subhed,
.amain,
.pvd,
.base_school,
.whiteblue {
  width: auto !important;
  max-width: 100% !important;
  float: none !important;
}

table.fb,
table.simple-little-table,
table.things_list {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
}

/* --- новая вёрстка формы: div-сетка BS5 (cnf/makshdir.tmpl, Div-шаблон) --- */

.axis-form {
  margin-bottom: .5rem;
}

/* Сетку строим сами: у BS5-колонок при сложении 25%+75% бывает перенос
   из-за округления gutter-ов, поэтому ширина задаётся явно. */
@media (min-width: 992px) {
  .axis-form .row {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
  }

  .axis-form .row > .fb_label {
    flex: 0 0 22%;
    max-width: 22%;
    padding-right: 1rem;
  }

  .axis-form .row > .fb_field {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: .75rem;
  }
}

@media (max-width: 991.98px) {
  .axis-form .row {
    display: block;
  }

  .axis-form .row > .fb_label,
  .axis-form .row > .fb_field {
    width: auto;
    max-width: 100%;
    padding-right: 0;
  }
}

.fb_comment,
td.fb_comment,
span.fb_comment {
  display: block;
  width: auto !important;
  margin-top: .2rem;
  color: #6c757d;
  font-size: .85rem;
  font-weight: 400;
}

.fb_label,
td.fb_label {
  padding: .25rem .75rem .25rem 0;
  text-align: left;
  vertical-align: top;
  font-weight: 600;
  color: #1b2b44;
}

.fb_field,
td.fb_field {
  padding: .25rem 0;
}

.fb_comment,
td.fb_comment,
span.fb_comment {
  display: block;
  margin-top: .2rem;
  color: #6c757d;
  font-size: .85rem;
  font-weight: 400;
}

.fb_field input[type="text"],
.fb_field input[type="password"],
.fb_field input[type="file"],
.fb_field select,
.fb_field textarea,
td.fb_field input[type="text"],
td.fb_field input[type="password"],
td.fb_field input[type="file"],
td.fb_field select,
td.fb_field textarea {
  max-width: 100%;
  padding: .3rem .5rem;
  background: #fff;
  border: 1px solid #adb5bd;
  border-radius: .375rem;
  font-size: 1rem;
}

.fb_field select {
  max-width: 32rem;
}

.fb_field textarea {
  width: 100%;
}

.fb_field input[type="text"]:focus,
.fb_field select:focus,
.fb_field textarea:focus,
td.fb_field input[type="text"]:focus,
td.fb_field select:focus,
td.fb_field textarea:focus {
  outline: 0;
  border-color: var(--axis-brand-dark);
  box-shadow: 0 0 0 .2rem rgba(91, 123, 166, .25);
}

.fb_submit {
  padding: .25rem 0 1rem;
  text-align: left;
}

.fb_required {
  color: #198754;
}


/* ------------------------------------- заголовки разделов, кнопки, мелочи */

h3.whiteblue,
.axis-section {
  margin: 1.25rem 0 .75rem;
  padding: .5rem .75rem;
  background: var(--axis-brand);
  border-radius: .375rem;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.4;
  cursor: pointer;
}

h3.whiteblue:hover {
  background: var(--axis-brand-dark);
}

.fb_button,
input[type="submit"],
input[type="button"] {
  display: inline-block;
  padding: .45rem 1rem;
  background: var(--axis-brand-dark);
  border: 1px solid var(--axis-brand-dark);
  border-radius: .375rem;
  color: #fff;
  font-size: 1rem;
  line-height: 1.3;
  cursor: pointer;
}

.fb_button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  background: var(--axis-brand-deep);
  border-color: var(--axis-brand-deep);
}

/* флаг страны рядом с полем «Страна» */
img.superclass {
  border: 1px solid #ced4da;
  border-radius: .25rem;
  vertical-align: middle;
}

/* широкие отладочные таблицы — прокрутка вместо обрезки */
table.things_list {
  display: block;
  overflow-x: auto;
}

/* --------------------------------------- главное меню (axis.cgi) — карточки */

.axis-mainmenu {
  margin-bottom: 1rem;
}

/* старые правила axis_tmp.css (.main_menu: float/width 972px/подложка) мешали
   сетке BS5 и давали горизонтальную прокрутку на телефонах.
   Селектор сужен до меню axis.cgi: .main_menu есть ещё в axis_bs.cgi */
.main_menu.axis-mainmenu {
  float: none;
  width: auto;
  max-width: 100%;
  padding: 0;
  background-color: transparent;
  border: 0;
  color: inherit;
  font-size: inherit;
}

.axis-mainmenu .axis-section {
  margin: .5rem 0 .25rem;
}

.axis-menu-card {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem .5rem;
  height: 100%;
  padding: .75rem .9rem;
  background: #fff;
  border: 1px solid #c9d6e8;
  border-left: 4px solid var(--axis-brand);
  border-radius: var(--axis-radius);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.axis-menu-card:hover {
  border-left-color: var(--axis-brand-dark);
  box-shadow: 0 .25rem .75rem rgba(27, 43, 68, .12);
}

.axis-menu-link {
  flex: 1 1 auto;
  color: #12355e;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.axis-menu-link:hover,
.axis-menu-link:focus {
  color: #000;
  text-decoration: underline;
}

/* подсказка «⇒» — переключатель, клик обрабатывает jqueryaxis.js */
.axis-menu-card .show {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  height: 1.6rem;
  margin: 0;
  padding: 0;
  background: #eef3fb;
  border: 1px solid var(--axis-brand-dark);
  border-radius: 50%;
  color: #1b2b44;
  font-size: .95rem;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}

.axis-menu-card .show:hover {
  background: var(--axis-brand-dark);
  border-color: var(--axis-brand-dark);
  color: #fff;
  font-weight: inherit;
}

/* текст подсказки: раскрывается JS ($('p#N.extend').slideToggle()) */
.axis-menu-card .extend {
  flex: 1 0 100%;
  display: none;
  margin: .35rem 0 0;
  padding: .5rem .75rem;
  background: #f1f5fb;
  border: 1px dashed var(--axis-brand-dark);
  border-radius: .375rem;
  color: #34495e;
  font-size: .9rem;
  line-height: 1.45;
}

/* --------------------------------- анкета инструктора (anketa2a.cgi) */

.anketa-help {
  margin-bottom: 1rem;
}

.anketa-help .redelvises {
  margin: 0;
  color: #b02a37;
}

/* старое правило #submitobj/#unblock_ank задавало фиксированные 200x30 px */
#submitobj,
#unblock_ank {
  width: auto;
  height: auto;
  margin: 0;
  padding: .45rem 1rem;
  float: none;
  border: 1px solid #8ba3c7;
  border-radius: .375rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

.anketa-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-bottom: .75rem;
}

.anketa-save {
  min-width: 10rem;
}

.anketa-unlock {
  font-size: .9rem;
}

.anketa-target {
  flex: 1 1 100%;
  margin: .25rem 0;
}

.anketa-target:empty {
  display: none;
}

.anketa-visible {
  margin-bottom: 1rem;
  padding: .75rem 1rem;
  background: #fff;
  border: 1px solid #c9d6e8;
  border-radius: var(--axis-radius);
}

.anketa-visible legend {
  float: none;
  width: auto;
  margin: 0 0 .35rem;
  padding: 0;
  color: var(--axis-brand-deep);
  font-size: .95rem;
  font-weight: 700;
}

.anketa-field .form-label,
.anketa-field > div.form-label {
  margin-bottom: .25rem;
  color: #34495e;
  font-weight: 600;
}

.anketa-field input[type="text"],
.anketa-field input[type="password"] {
  max-width: 32rem;
}

.anketa-field textarea {
  width: 100%;
}

.anketa-note {
  align-self: start;
  padding: .5rem .75rem;
  background: #f1f5fb;
  border-left: 3px solid var(--axis-brand);
  border-radius: .375rem;
  color: #2c3e50;
  font-size: .95rem;
}

.anketa-hint {
  color: #0d6efd;
  font-size: .9rem;
}

/* конфиденциальная часть: таблица с прокруткой, чтобы не рвать вёрстку */
.anketa-confident {
  padding: .75rem;
  background: #fff;
  border: 1px solid #c9d6e8;
  border-radius: var(--axis-radius);
  overflow-x: auto;
}

table.ci {
  width: 100%;
}

table.ci td {
  vertical-align: top;
}

/* фото и ключ 1С — две колонки под формой (раньше .foto был position:absolute) */
.anketa-after {
  margin-top: 1rem;
}

.anketa-photo,
.anketa-key {
  padding: .75rem 1rem;
  background: #fff;
  border: 1px solid #c9d6e8;
  border-radius: var(--axis-radius);
}

.anketa-photo .personphoto {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  margin-bottom: .5rem;
  border: 1px solid #ced4da;
  border-radius: .25rem;
}

.anketa-photo-note {
  color: #6c757d;
  font-size: .85rem;
  line-height: 1.4;
}

.anketa-key .key {
  display: inline-block;
  max-width: 100%;
  margin-left: .35rem;
  padding: .1rem .4rem;
  background: #f1f5fb;
  border: 1px solid #c9d6e8;
  border-radius: .25rem;
  font-size: .95rem;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.anketa-key .alert {
  margin-bottom: 0;
  font-size: .85rem;
}

.anketa-websms {
  color: #495057;
  font-size: .9rem;
}

.anketa-websms input {
  display: inline-block;
  width: auto;
  max-width: 14rem;
}

table.feetable {
  width: auto;
  max-width: 100%;
}

table.feetable td.fee {
  padding: .2rem .6rem;
  border-color: #dee2e6;
}

/* ------------------------------------- список школ (prtshdir.cgi) */

.axis-schools-head {
  margin: .75rem 0 .35rem;
  font-weight: 700;
  color: var(--axis-brand-deep);
}

/* панель отбора: было .top_ofsh_list { height: 85px } + float 50%/49% */
.top_ofsh_list {
  height: auto !important;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: .5rem 1.25rem;
  margin-bottom: .75rem;
  padding: .75rem 1rem;
  background: #fff;
  border: 1px solid #c9d6e8;
  border-radius: var(--axis-radius);
}

#leftside,
#rightside {
  float: none !important;
  width: auto !important;
  max-width: 100%;
}

#leftside {
  flex: 1 1 24rem;
}

#rightside {
  flex: 0 0 auto;
}

/* Поля отбора рисует CGI::FormBuilder — классы BS5 ему не передать, вид
   задаём здесь. Обёртки НЕ добавляем: prtshdir.js слушает изменение через
   $("#allsh > input") и $("#allsh > select"), поэтому поля обязаны остаться
   прямыми детьми формы. */
#allsh {
  width: auto !important;
  max-width: 100%;
  margin: 0;
  font-size: .9rem;
}

#allsh select,
#allsh input[type="text"] {
  max-width: 100%;
  padding: .25rem .5rem;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: .375rem;
  font-size: .9rem;
  line-height: 1.4;
}

#allsh select {
  display: inline-block;
  width: auto;
}

#allsh input[type="text"] {
  width: 18rem;
}

#allsh input[type="radio"],
#allsh input[type="checkbox"] {
  margin: 0 .25rem 0 0;
  vertical-align: -1px;
  accent-color: var(--axis-brand-dark);
}

#allsh label {
  margin-right: .9rem;
  font-weight: 400;
}

#load_sh2site {
  float: none !important;
  display: inline-flex;
  align-items: center;
  padding: .4rem .9rem;
  background: var(--axis-brand);
  border: 1px solid #8ba3c7;
  border-radius: .375rem;
  color: #12233d;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
}

#load_sh2site:hover {
  background: var(--axis-brand-dark);
  color: #fff;
}

#target2 {
  margin: .5rem 0;
  font-size: .9rem;
}

#target2:empty {
  display: none;
}

/* таблица школ: было <table width="100%" class="simple-little-table"> без
   обёртки, а .tabl из axis_tmp.css задавал каждой ячейке width: 992px */
.axis-schools-wrap {
  margin-bottom: 1rem;
}

table.axis-schools {
  width: 100%;
  margin-bottom: 0;
  background: #fff;
  font-size: .9rem;
}

table.axis-schools th.sh_list {
  padding: .45rem .5rem;
  background: var(--axis-brand);
  border-bottom: 1px solid #8ba3c7;
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

table.axis-schools td.tabl {
  width: auto !important;
  padding: .45rem .5rem;
  background: #fff;
  font-size: .9rem;
  vertical-align: middle;
}

table.axis-schools tr:nth-child(even) td.tabl {
  background: #f8fafd;
}

table.axis-schools img {
  max-width: 59px;
  height: auto;
}

table.axis-schools .hideax {
  display: inline-block;
  min-width: 1.4rem;
  margin-right: .35rem;
  padding: 0 .3rem;
  background: #eef3fb;
  border: 1px solid var(--axis-brand-dark);
  border-radius: .25rem;
  color: #1b2b44;
  font-size: .8rem;
  text-align: center;
  cursor: pointer;
}

table.axis-schools .hideax a {
  color: #b02a37;
  text-decoration: none;
}

table.axis-schools a.dozap {
  color: #0d6efd;
}

table.axis-schools .blue_ {
  color: #0d6efd;
}

table.axis-schools td.axis-schools-empty {
  padding: 1rem;
  color: #6c757d;
  text-align: center;
}

/* ------------- список анкет/инструкторов (ShowIns: anketa2a.cgi, viewins.cgi) */

.axis-ins-list {
  margin: 0 0 1rem;
  padding: 0;
}

.axis-ins-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.axis-ins-link {
  flex: 1 1 auto;
  min-width: 55%;
  color: #12335e;
  text-decoration: none;
}

.axis-ins-link:hover,
.axis-ins-link:focus {
  text-decoration: underline;
}

.axis-ins-arrow {
  margin-left: .35rem;
  color: var(--axis-brand-dark);
  font-weight: 700;
}

/* переключатели из libsch.cgi (ax_switcher): ключ членства, выгрузка в 1С, … */
.axis-switch {
  flex: 0 0 auto;
  min-height: 1.5rem;
  margin: 0;
}

.axis-switch .form-check-label {
  color: #6c757d;
  font-size: .8rem;
}

/* панель инструментов страницы анкеты */
.axis-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  width: auto !important;
  max-width: 100%;
  float: none !important;
  margin: 0 0 .75rem;
}

.axis-toolbar-note {
  color: #6c757d;
  font-size: .8rem;
}

.axis-newmember {
  margin: 0 0 .75rem;
}

.axis-newmember .input-group-text {
  font-size: .875rem;
}

/* анкета: пометки «ЕСТЬ/НЕТ» и звёздочка обязательного поля */
.anketa-flag {
  font-weight: 700;
}

.anketa-req {
  color: #dc3545;
  font-weight: 700;
}

/* --------------------------- клиенты инструктора (clients.cgi) */

/* таб-панель: было <table class="subhed2"> с двумя td (левая/правая группа) */
.axis-tabs {
  justify-content: space-between;
}

.axis-tabs-left,
.axis-tabs-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
}

.axis-tabs-right {
  margin-left: auto;
}

/* заголовок списка (был <p><table><th class=cli>) — класс .cli сохранён */
.axis-clients-head {
  margin: .9rem 0 .35rem;
  font-weight: 700;
  color: var(--axis-brand-deep);
}

.axis-clients-head.cli {
  padding-left: 0;
  text-align: left;
}

.axis-clients-wrap {
  margin-bottom: .75rem;
}

/* таблица клиентов: было три вложенных <table> с .outline (чёрная подложка)
   и bgcolor-«зеброй»; .tabl из axis_tmp.css задавал ячейке width:992px */
table.axis-clients {
  width: 100%;
  margin-bottom: 0;
  background: #fff;
  font-size: .9rem;
}

table.axis-clients tr.axis-clients-headrow th {
  padding: .45rem .5rem;
  background: var(--axis-brand);
  border-bottom: 1px solid #8ba3c7;
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

table.axis-clients td.tabl {
  width: auto !important;
  padding: .45rem .5rem;
  background: #fff;
  font-size: .9rem;
  vertical-align: middle;
}

table.axis-clients tr:nth-child(even) td.tabl {
  background: #f8fafd;
}

.axis-clients-empty {
  margin: 0 0 1rem;
  padding: .6rem .8rem;
  background: #fff;
  border: 1px dashed #c9d6e8;
  border-radius: var(--axis-radius);
  color: #6c757d;
}

/* постраничные ссылки (были «<br>Страницы: [<a ...>]») */
.axis-pages {
  margin: .35rem 0 1rem;
  color: #6c757d;
  font-size: .9rem;
}

.axis-page-link {
  display: inline-block;
  margin-right: .35rem;
  padding: .2rem .55rem;
  background: #fff;
  border: 1px solid #9db4d4;
  border-radius: .375rem;
  color: #12335e;
  text-decoration: none;
}

.axis-page-link:hover,
.axis-page-link:focus {
  background: var(--axis-brand);
  color: #12335e;
  text-decoration: none;
}

/* --------------------------------------------- адаптация под узкие экраны */

@media (max-width: 991.98px) {
  body,
  body.axis-body {
    font-size: 15px;
  }

  /* старые табличные формы: подпись над полем, а не в колонке */
  table.fb,
  table.fb tbody,
  table.fb tr,
  table.fb td {
    display: block;
    width: auto !important;
    max-width: 100%;
  }

  table.fb tr {
    margin-bottom: .75rem;
    padding-bottom: .5rem;
    border-bottom: 1px dashed #dee2e6;
  }

  td.fb_label {
    padding: 0 0 .15rem;
    font-weight: 700;
  }

  /* широкие таблицы данных — горизонтальная прокрутка */
  table.simple-little-table,
  table.things_list {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .subhed3,
  .subhed4,
  .selsub3 {
    white-space: normal;
  }

  .axis-title,
  .header {
    font-size: 1rem;
  }

  /* анкета: кнопки на всю ширину, радиокнопки столбиком */
  .anketa-head {
    flex-direction: column;
    align-items: stretch;
  }

  .anketa-save {
    min-width: 0;
  }

  .anketa-visible .form-check-inline {
    display: block;
    margin-right: 0;
  }

  .anketa-field input[type="text"],
  .anketa-field input[type="password"],
  .anketa-websms input {
    max-width: 100%;
  }
}

/* --------------------- список школ на телефоне: строка -> карточка */

@media (max-width: 767.98px) {
  .top_ofsh_list {
    flex-direction: column;
    gap: .6rem;
  }

  #leftside,
  #rightside {
    flex: 1 1 auto;
    width: 100% !important;
  }

  #allsh input[type="text"] {
    width: 100%;
  }

  /* заголовки таблицы на телефоне не нужны: подписи берём из data-label */
  table.axis-schools tr.axis-schools-headrow {
    display: none;
  }

  /* .table-responsive больше не нужен — строки становятся блоками */
  .axis-schools-wrap {
    overflow: visible;
  }

  table.axis-schools {
    display: block;
    border-collapse: separate;
  }

  table.axis-schools tr {
    display: block;
    margin-bottom: .75rem;
    background: #fff;
    border: 1px solid #c9d6e8;
    border-radius: var(--axis-radius);
    overflow: hidden;
  }

  table.axis-schools tr:nth-child(even) td.tabl {
    background: #fff;
  }

  table.axis-schools td.tabl {
    display: block;
    width: auto !important;
    min-height: 2rem;
    padding: .35rem .75rem .35rem 8.25rem;
    background: #fff;
    border: 0;
    border-top: 1px solid #eef1f6;
    position: relative;
    text-align: left !important;
  }

  table.axis-schools td.tabl:first-child {
    border-top: 0;
  }

  table.axis-schools td.tabl[data-label]::before {
    content: attr(data-label);
    position: absolute;
    left: .75rem;
    top: .35rem;
    width: 7rem;
    color: #6c757d;
    font-size: .78rem;
    line-height: 1.5;
  }

  /* ячейка скрытой школы — одна на всю строку */
  table.axis-schools td[colspan] {
    padding-left: .75rem;
  }

  table.axis-schools td.axis-schools-empty {
    padding: 1rem;
  }

  /* ------------------------- клиенты инструктора: строка -> карточка */

  table.axis-clients tr.axis-clients-headrow {
    display: none;
  }

  .axis-clients-wrap {
    overflow: visible;
  }

  table.axis-clients {
    display: block;
    border-collapse: separate;
  }

  table.axis-clients tr {
    display: block;
    margin-bottom: .75rem;
    background: #fff;
    border: 1px solid #c9d6e8;
    border-radius: var(--axis-radius);
    overflow: hidden;
  }

  table.axis-clients tr:nth-child(even) td.tabl {
    background: #fff;
  }

  table.axis-clients td.tabl {
    display: block;
    width: auto !important;
    min-height: 2rem;
    padding: .35rem .75rem .35rem 8.25rem;
    background: #fff;
    border: 0;
    border-top: 1px solid #eef1f6;
    position: relative;
    text-align: left !important;
  }

  table.axis-clients td.tabl:first-child {
    border-top: 0;
  }

  table.axis-clients td.tabl[data-label]::before {
    content: attr(data-label);
    position: absolute;
    left: .75rem;
    top: .35rem;
    width: 7rem;
    color: #6c757d;
    font-size: .78rem;
    line-height: 1.5;
  }
}

