:root {
  --exam-header-bg: #e8eaed;
  --app-footer-height: 64px;
}

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0;
  min-height: 100vh;
  padding-bottom: var(--app-footer-height);
}

.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 1030;
  line-height: 1.1 !important;
  font-size: 0.9rem;
  background-color: var(--bs-body-bg, #fff);
}

.footer .container-fluid {
  padding-top: 3px !important;
  padding-bottom: 3px !important;
}

.footer .row {
  --bs-gutter-y: 0.25rem;
}

.footer-links-row {
  margin-bottom: 0.2rem;
}

.footer-meta-row {
  font-size: 0.88rem;
}

.footer .text-nowrap,
.footer a,
.footer button {
  height: auto !important;
  min-height: 0 !important;
  line-height: 1.1 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

@media (max-width: 767.98px) {
  :root {
    --app-footer-height: 92px;
  }
  .footer {
    font-size: 0.82rem;
  }
  .footer .container-fluid {
    padding-top: 3px !important;
    padding-bottom: 3px !important;
  }
  .footer-links-row {
    margin-bottom: 0.15rem;
  }
  .footer-links-row .btn {
    font-size: 0.78rem;
    line-height: 1.1;
  }
  .footer-meta-row {
    font-size: 0.78rem;
  }
  .footer-meta-row .bi {
    width: 14px;
    height: 14px;
  }
}

#ofertaModal .oferta-modal-body,
#priceModal .oferta-modal-body,
#privacyPolicyModal .oferta-modal-body,
#contactsModal .oferta-modal-body,
#refundPolicyModal .oferta-modal-body {
  flex: 1 1 auto;
  min-height: 50vh;
}

#ofertaModal .oferta-modal-iframe,
#priceModal .oferta-modal-iframe,
#privacyPolicyModal .oferta-modal-iframe,
#contactsModal .oferta-modal-iframe,
#refundPolicyModal .oferta-modal-iframe {
  min-height: 65vh;
  height: 65vh;
  vertical-align: top;
}

.exam-result-area {
  /*background-color: var(--bs-body-bg, #fff);*/
  color: var(--bs-body-color, #212529);
}

.exam-table-full th,
.exam-table-full td {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.exam-table-pf th.exam-pf-th {
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
  padding: 8px;
}

.exam-simple-heading {
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 6px 0;
}

.exam-simple-heading-add {
  margin-top: 10px;
}

.exam-simple-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.exam-simple-row {
  display: grid;
  grid-template-columns: 1.35rem minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
  margin: 0;
}

label.exam-simple-row {
  cursor: pointer;
  margin: 0;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

label.exam-simple-row .exam-simple-text {
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
}

.exam-simple-cb,
.exam-simple-cb-slot {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

/* Как у Bootstrap h2: один и тот же размер для одного диагноза и для блоков в exam-simple-multi */
.exam-simple h2.exam-simple-dx-code {
  font-size: calc(1.325rem + 0.9vw);
  font-weight: 700;
  margin: 0 0 10px 0;
}

@media (min-width: 1200px) {
  .exam-simple h2.exam-simple-dx-code {
    font-size: 2rem;
  }
}

label.exam-simple-row.exam-simple-excluded .exam-simple-text {
  opacity: 0.42;
  text-decoration: line-through;
}

label.exam-simple-row.exam-simple-duplicate-mark .exam-simple-text {
  color: #0d6efd;
}

.exam-simple-row-or.exam-simple-or-excluded .exam-simple-text {
  opacity: 0.42;
  text-decoration: line-through;
}

.exam-simple-cb {
  width: 1rem;
  height: 1rem;
  margin: 0.2em 0 0 0;
  flex-shrink: 0;
}

.exam-simple-cb-slot {
  width: 1rem;
  height: 1rem;
  margin: 0.2em 0 0 0;
  flex-shrink: 0;
}

.exam-simple-text {
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.exam-simple-code {
  font-weight: 700;
}

/* Блок «Параметры запроса»: единый зелёный акцент (как btn-success) */
.params-block .form-check-input:checked {
  background-color: var(--bs-success);
  border-color: var(--bs-success);
}

.params-block .form-check-input:focus {
  border-color: var(--bs-success);
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-success-rgb), 0.25);
}

.params-block .form-control:focus {
  border-color: var(--bs-success);
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-success-rgb), 0.25);
}

/* Переключатель вида таблиц в блоке вывода (серый стиль) */
.table-output-block .exam-mode-toolbar .exam-mode-btn.active {
  background-color: var(--bs-secondary);
  color: #fff;
  border-color: var(--bs-secondary);
}

/* Чекбоксы в таблицах / упрощённом списке: тёмно-серый вместо синего акцента Bootstrap */
.table-output-block .form-check-input:checked {
  background-color: #495057;
  border-color: #495057;
}

.table-output-block .form-check-input:focus {
  border-color: #495057;
  box-shadow: 0 0 0 0.25rem rgba(73, 80, 87, 0.35);
}

.n259-header-status {
  max-height: 4.5rem;
  overflow: auto;
  font-size: 0.875rem;
  line-height: 1.35;
}

.exam-view-pane {
  user-select: text;
}

/* Личный кабинет: Email, устройства, вид и сроки подписки */
#profileInfoModal .profile-cabinet-summary {
  font-size: calc(1rem + 2pt);
  table-layout: fixed;
  width: 100%;
}

/* История подписок — на 1 pt меньше базового текста модалки */
#profileInfoModal .profile-subscription-history {
  font-size: calc(1rem - 1pt);
  table-layout: fixed;
  width: 100%;
}

#profileInfoModal .profile-cabinet-summary td,
#profileInfoModal .profile-subscription-history td {
  vertical-align: middle;
  text-align: left;
}

#profileInfoModal .profile-cabinet-summary tbody tr > td:first-child:not([colspan]),
#profileInfoModal .profile-subscription-history tbody tr > td:first-child:not([colspan]) {
  width: 50%;
}

#profileInfoModal .profile-cabinet-summary tbody tr > td:nth-child(2),
#profileInfoModal .profile-subscription-history tbody tr > td:nth-child(2) {
  width: 50%;
}
