/* Минимальная совместимость старых форм/диалогов без CSS публичного шаблона neris */

.neris-lk .dialog {
  position: fixed;
  border: 0;
  border-radius: 16px;
  padding: 0;
  max-width: min(560px, calc(100vw - 32px));
  box-shadow: 0 20px 50px rgba(18, 37, 12, 0.22);
}
.neris-lk .dialog::backdrop {
  background: rgba(18, 37, 12, 0.45);
}
.neris-lk .dialog__body {
  padding: 20px 22px 24px;
  background: #fff;
}
.neris-lk .dialog__closer {
  display: flex;
  justify-content: flex-end;
}
.neris-lk .dialog__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #12250c;
}
.neris-lk .dialog__subtitle {
  margin-top: 8px;
  color: #4a5c46;
  line-height: 1.45;
}
.neris-lk .dialog__cover img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 12px;
}
.neris-lk .button-icon,
.neris-lk .button-icon-square {
  appearance: none;
  border: 1px solid #e3ebe0;
  background: #fff;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.neris-lk .button-main,
.neris-lk .button-link {
  appearance: none;
  border: 0;
  background: #2f6b1c;
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}
.neris-lk .button-link {
  background: transparent;
  color: #2f6b1c;
  text-decoration: underline;
  padding: 0;
}
.neris-lk .cabinet__section {
  margin: 0 0 1.25rem;
}
.neris-lk .cabinet__section__header {
  margin-bottom: 0.75rem;
}
.neris-lk .cabinet__section__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #12250c;
}
.neris-lk .cabinet__section__subtitle {
  margin-top: 0.35rem;
  color: #4a5c43;
  line-height: 1.45;
}
.neris-lk .table-wrapper {
  overflow-x: auto;
  border: 1px solid #e3ebe0;
  border-radius: 12px;
  background: #fff;
}
.neris-lk .table {
  width: 100%;
  border-collapse: collapse;
}
.neris-lk .table th,
.neris-lk .table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #e3ebe0;
  font-size: 14px;
}
.neris-lk .table th {
  background: #eef6eb;
  color: #2f6b1c;
  font-weight: 700;
}
.neris-lk .info-bar {
  border-radius: 12px;
  padding: 12px 14px;
  background: #eef6eb;
  color: #12250c;
  margin-bottom: 12px;
}
.neris-lk .info-bar--error {
  background: #fff1ee;
  color: #b42318;
}
.neris-lk .my-docs {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 16px;
}
.neris-lk .request-modal {
  border: 0;
  border-radius: 16px;
  padding: 0;
  width: min(720px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
}
.neris-lk .request-modal::backdrop {
  background: rgba(18, 37, 12, 0.45);
}
.neris-lk .request-modal__body {
  background: #fff;
  padding: 16px 18px 20px;
}
.neris-lk .request-modal__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.neris-lk .request-modal__title {
  font-weight: 700;
  flex: 1;
}

/* Иконки форм: текстовый fallback, если нет icon-font публичного шаблона */
.neris-lk .icon {
  display: inline-block;
  min-width: 1em;
  text-align: center;
}
.neris-lk .icon--X::before { content: "×"; font-size: 1.2em; line-height: 1; }
.neris-lk .icon--CaretRight::before { content: "›"; font-size: 1.2em; }
.neris-lk .icon--CaretLeft::before { content: "‹"; font-size: 1.2em; }
.neris-lk .icon--ArrowSquareOut::before { content: "↗"; }

/* Служебные элементы Bitrix не должны ломать grid тела ЛК */
.neris-lk > .bx-panel,
.neris-lk > #panel,
.neris-lk > .dialog,
.neris-lk > .toast,
.neris-lk > .pdf-modal,
.neris-lk > .error-overlay,
.neris-lk > .tabbar {
  grid-column: 1 / -1;
}

/* Универсальная форма обращения: скрыть сырой input файла Битрикса */
.neris-lk .file-btn {
  position: relative;
}
.neris-lk .file-btn input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}

/* Гостевой экран входа без sidebar/shell (фон задаёт .auth-stage) */
.neris-lk.is-auth-guest {
  display: block;
  min-height: 100vh;
  margin: 0;
  background: #0a1408;
}
.neris-lk.is-auth-guest .auth-stage {
  font-family: "Inter", system-ui, sans-serif;
}
