/* =====================================================
   ШРИФТ MONTSERRAT (локально, с кириллицей)
   ===================================================== */

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;   /* текст показывается сразу системным шрифтом,
                           затем подменяется на Montserrat */
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* =====================================================
   STICKY FOOTER — прижатие футера к низу
   ===================================================== */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: 'Montserrat', Arial, 'Helvetica Neue', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--c-text);
  background-color: var(--c-page-bg);
}

/* Основной контент растёт и толкает футер вниз */
.page-main {
  flex: 1 0 auto;
  padding: 24px 0 48px;
}

/* Футер не сжимается */
.site-footer {
  flex-shrink: 0;
}

/* =====================================================
   0. ПЕРЕМЕННЫЕ И БАЗА
   ===================================================== */
:root {
  --c-black:        #000000;
  --c-white:        #ffffff;
  --c-yellow:       #ffd700;   /* кнопка «Выход», колокольчик */
  --c-yellow-hover: #ffe43d;
  --c-page-bg:      #f4f4f4;   /* светло-серый фон страницы */
  --c-text:         #1f1f1f;   /* основной текст */
  --c-muted:        #7a7a7a;   /* неактивные пункты меню, вторичный текст */
  --c-footer-text:  #c9c9c9;   /* мелкий текст в подвале */
  --radius-card:    6px;
  --shadow-card:    0 1px 4px rgba(0, 0, 0, .08);
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  /* Шрифт Montserrat — ко всему документу */
  font-family: 'Montserrat', Arial, 'Helvetica Neue', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--c-text);
  background-color: var(--c-page-bg);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .3s ease, background-color .3s ease,
              box-shadow .3s ease, transform .3s ease;
}

/* =====================================================
   1. ВЕРХНЯЯ ЧЁРНАЯ ПОЛОСА (includes/header.html)
   ===================================================== */
.topbar {
  background-color: var(--c-black);
  color: var(--c-white);
  font-size: 12px;
  font-weight: 500;
  padding: 8px 0;
}

.topbar__crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.topbar__crumbs a { color: var(--c-white); }
.topbar__crumbs a:hover { color: var(--c-yellow); }

.topbar__sep {
  display: inline-flex;
  align-items: center;
  color: #8a8a8a;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--c-white);
  cursor: pointer;
}

.lang:hover { color: var(--c-yellow); }

/* =====================================================
   2. ВЕРХНИЙ БЛОК: ЛОГОТИП + ПРОФИЛЬ (data-part="top")
   Лежит на сером фоне страницы, над сеткой row.
   ===================================================== */
.layout-top {
  padding: 22px 0 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand:hover { opacity: .85; }

.brand__img {
  display: block;
  height: 56px;
  width: auto;
}


/* Блок пользователя — прижат к правому краю контейнера */
.user-box {
  display: flex;
  align-items: center;
  gap: 18px;
}

.user-box__info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.35;
}

.user-box__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-black);
}

.user-box__role {
  font-size: 12px;
  font-weight: 400;
  color: var(--c-muted);
}

/* Жёлтая кнопка «Выход»: pill, чёрный текст, без границ */
.btn-exit {
  display: inline-block;
  background-color: var(--c-yellow);
  color: var(--c-black);
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 26px;
  border-radius: 999px;
  white-space: nowrap;
}

.btn-exit:hover {
  background-color: var(--c-yellow-hover);
  color: var(--c-black);
  box-shadow: 0 4px 10px rgba(255, 215, 0, .45);
  transform: translateY(-1px);
}

/* =====================================================
   3. ЛЕВОЕ МЕНЮ — БЕЛАЯ КАРТОЧКА (data-part="menu")
   ===================================================== */
.page-main {
  padding: 0 0 48px;
}

.sidebar-card {
  background-color: var(--c-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px 18px;
}

/* Кнопка-аккордеон: видна только на мобильных (< 992px) */
.sidebar-card__toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  padding: 0 0 4px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-black);
  cursor: pointer;
}

.sidebar-card__toggle .chevron {
  transition: transform .3s ease;
}

.sidebar-card__toggle[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.sidebar-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-black);
  margin: 0 0 16px;
}

.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-list li { margin-bottom: 14px; }
.sidebar-list li:last-child { margin-bottom: 0; }

.sidebar-link {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--c-muted);
}

.sidebar-link:hover { color: var(--c-black); }

.sidebar-link.is-active {
  font-weight: 700;
  color: var(--c-black);
}

/* Жёлтый колокольчик у «Мои заявки» */
.bell-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  background-color: #fff8dc;
  border-radius: 4px;
  color: var(--c-yellow);
}

/* =====================================================
   4. КОНТЕНТНАЯ ЧАСТЬ
   ===================================================== */
.content-breadcrumb .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 12px;
}

.content-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  color: #999;
}

.content-breadcrumb .breadcrumb-item a { color: var(--c-muted); }
.content-breadcrumb .breadcrumb-item a:hover { color: var(--c-black); }
.content-breadcrumb .breadcrumb-item.active { color: var(--c-black); }

/* Инвертированная плашка «ГЛАВНАЯ» */
.section-title {
  display: inline-block;
  background-color: var(--c-black);
  color: var(--c-white);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 8px 14px;
  margin: 16px 0 22px;
}

.section-text p {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--c-text);
  margin: 0 0 16px;
  text-align: left;
}

.section-text p:last-child { margin-bottom: 0; }

/* =====================================================
   5. ПОДВАЛ (includes/footer.html)
   ===================================================== */
.site-footer {
  background-color: var(--c-black);
  color: var(--c-white);
  padding: 32px 0;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer__emblem {
  display: inline-flex;
  flex: 0 0 auto;
}

.footer__legal {
  font-size: 9.5px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--c-footer-text);
  margin: 0;
  max-width: 160px;
}

.footer__nav-wrap {
  /* центрируем навигацию по горизонтали на десктопе */
  display: flex;
  justify-content: center;
}

.footer__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 38px;
}

.footer__nav a {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--c-white);
  transition: color .3s ease, opacity .3s ease;
}

.footer__nav a:hover {
  color: var(--c-yellow);
  opacity: .9;
}

.socials {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

.socials__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-white);
  transition: color .3s ease, transform .3s ease;
}

.socials__link:hover {
  color: var(--c-yellow);
  transform: translateY(-2px) scale(1.1);
}

/* Адаптивность футера */
@media (max-width: 991.98px) {
  .site-footer {
    padding: 28px 0;
  }

  .footer__brand {
    justify-content: center;
  }

  .footer__nav-wrap {
    justify-content: center;
  }

  .socials {
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .site-footer {
    padding: 24px 0;
    text-align: center;
  }

  .footer__brand {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .footer__legal {
    max-width: none;
  }

  .footer__nav {
    justify-content: center;
    gap: 12px 20px;
  }

  .socials {
    justify-content: center;
    gap: 14px;
  }
}
/* =====================================================
   LOGIN PAGE — страница «Вход в сервисы УГГУ»
   ===================================================== */

/* Сброс фона для страницы входа: она сама управляет фоном колонок */
.login-page {
  background-color: #ffffff;
}

/* Обёртка 50/50 на всю высоту экрана */
.login-wrapper {
  min-height: calc(100vh - 35px) !important;
}

/* ===== Левая колонка: фото + логотип ===== */
.login-image {
  position: relative;
  overflow: hidden;
  background-color: #0d3b7a; /* запасной цвет, пока грузится фото */
}

.login-image__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Круглый белый логотип по центру левой части */
.login-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .35));
}

.login-logo__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ===== Правая колонка: форма ===== */
.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background-color: #ffffff;
}

.login-form__card {
  width: 100%;
  max-width: 420px;
}

.login-form__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--c-black, #000);
  margin: 0 0 28px;
  text-align: left;
}

.login-form__label {
  font-size: 13px;
  font-weight: 500;
  color: #555;
  margin-bottom: 8px;
}

.login-form__input {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  padding: 12px 16px;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  background-color: #fff;
  color: var(--c-black, #000);
  transition: border-color .25s ease, box-shadow .25s ease;
}

.login-form__input::placeholder {
  color: #a0a0a0;
}

.login-form__input:focus {
  border-color: var(--c-yellow, #ffd700);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, .25);
}

/* Кнопка «Войти» */
.btn-login {
  display: inline-block;
  background-color: var(--c-yellow, #ffd700);
  color: var(--c-black, #000);
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: 999px; /* pill shape */
  cursor: pointer;
  transition: background-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

.btn-login:hover {
  background-color: var(--c-yellow-hover, #ffe43d);
  box-shadow: 0 6px 14px rgba(255, 215, 0, .45);
  transform: translateY(-1px);
}

.btn-login:active {
  transform: translateY(0);
}

/* Подсказка под кнопкой */
.login-form__hint {
  font-size: 12px;
  font-weight: 400;
  color: #888;
  text-align: center;
  margin: 20px 0 0;
  line-height: 1.45;
}

/* ===== Адаптивность ===== */

/* Планшеты в портретной ориентации (768–991px):
   форма занимает весь экран, левая часть скрыта */
@media (max-width: 991.98px) {
  .login-form {
    padding: 32px 20px;
  }

  .login-form__title {
    font-size: 22px;
  }
}

/* Мобильные (< 576px): увеличиваем зоны нажатия */
@media (max-width: 575.98px) {
  .login-form {
    padding: 24px 16px;
  }

  .login-form__title {
    font-size: 20px;
    margin-bottom: 22px;
  }

  .login-form__input {
    font-size: 16px; /* 16px предотвращает авто-зум на iOS */
    padding: 14px 16px;
  }

  .btn-login {
    padding: 15px 24px;
    font-size: 16px;
  }

  .login-form__hint {
    font-size: 11.5px;
  }
}
/* =====================================================
   Ссылка на бота в подсказке формы входа
   ===================================================== */

.login-form__hint-link {
  color: #333333;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(51, 51, 51, 0.4);
  text-underline-offset: 3px; 
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.login-form__hint-link:hover {
  color: #e6c200;
  text-decoration-color: #e6c200;
}

.login-form__hint-link:active {
  color: #ccac00;
  text-decoration-color: #ccac00;
  transition: none; 
}
/* =====================================================
   ACCOUNTING PAGE — страница «Управление бухгалтерского учёта»
   ===================================================== */

/* Отступ между заголовком-плашкой и сеткой карточек */
.service-grid {
  margin-top: 8px;
}

/* Карточка сервиса — кликабельная ссылка, стилизованная под карточку */
.card-service {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 140px;
  padding: 24px;
  background-color: var(--c-white);
  border: 1px solid #eaeaea;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: transform .3s ease,
              box-shadow .3s ease,
              border-color .3s ease,
              background-color .3s ease;
}

/* Ховер: карточка «приподнимается», получает более заметную тень
   и лёгкую жёлтую подсветку рамки */
.card-service:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .10);
  border-color: var(--c-yellow);
}

/* Фокус по клавиатуре — доступность */
.card-service:focus-visible {
  outline: 2px solid var(--c-yellow);
  outline-offset: 3px;
}

/* Заголовок карточки */
.card-service__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--c-black);
  transition: color .3s ease;
}

.card-service:hover .card-service__title {
  color: #000;
}

/* Подзаголовок / категория */
.card-service__subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--c-muted);
}

/* Активное состояние пунктов меню — переопределяем базовый стиль
   (на случай, если где-то потеряется is-active) */
.sidebar-link.is-active {
  font-weight: 700;
  color: var(--c-black);
}
/* =====================================================
   TAX DEDUCTION FORM — форма «Справка для налогового вычета»
   ===================================================== */

/* Селект «Факультет» — вне белой карточки */
.faculty-select-wrap {
  max-width: 100%;
}

.faculty-select {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 40px 12px 16px;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  background-color: #fff;
  color: var(--c-black, #000);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.faculty-select:focus {
  border-color: var(--c-yellow, #ffd700);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, .25);
}

/* ===== Белая карточка формы ===== */
.tax-form {
  background-color: #fff;
  border-radius: var(--radius-card, 6px);
  box-shadow: var(--shadow-card, 0 1px 4px rgba(0,0,0,.08));
  padding: 32px;
}

/* Заголовки групп полей */
.tax-form__group-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--c-black, #000);
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

/* Лейблы */
.tax-form .form-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #666;
  margin-bottom: 6px;
  display: block;
}

/* Звёздочка обязательности */
.required {
  color: #e53935;
  font-weight: 700;
}

/* Поля ввода */
.tax-form__input {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  padding: 10px 14px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  background-color: #fff;
  color: var(--c-black, #000);
  transition: border-color .25s ease, box-shadow .25s ease;
}

.tax-form__input:focus {
  border-color: var(--c-yellow, #ffd700);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, .25);
}

.tax-form__input::placeholder {
  color: #a0a0a0;
}

/* ===== Кастомные радио-кнопки ===== */
.tax-form__radio-question {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-black, #000);
  margin: 0 0 12px;
}

.tax-form__radio-group {
  display: flex;
  gap: 24px;
}

.tax-form__radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: var(--c-black, #000);
}

.tax-form__radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Кружок-индикатор */
.tax-form__radio-mark {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 50%;
  background-color: #fff;
  transition: border-color .25s ease, background-color .25s ease;
  flex-shrink: 0;
}

/* Жёлтая точка внутри при выборе */
.tax-form__radio-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--c-yellow, #ffd700);
  transform: translate(-50%, -50%) scale(0);
  transition: transform .25s ease;
}

.tax-form__radio input[type="radio"]:checked + .tax-form__radio-mark {
  border-color: var(--c-yellow, #ffd700);
}

.tax-form__radio input[type="radio"]:checked + .tax-form__radio-mark::after {
  transform: translate(-50%, -50%) scale(1);
}

.tax-form__radio input[type="radio"]:focus-visible + .tax-form__radio-mark {
  box-shadow: 0 0 0 3px rgba(255, 215, 0, .35);
}

.tax-form__checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Обёртка одного чекбокса */
.tax-form__checkbox {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: var(--c-black, #000);
  line-height: 1.4;
}

/* Прячем нативный input */
.tax-form__checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Квадрат-индикатор */
.tax-form__checkbox-mark {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  transition: border-color .25s ease, background-color .25s ease;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Галочка (рисуем через ::after из двух полосок) */
.tax-form__checkbox-mark::after {
  content: "";
  position: absolute;
  top: 45%;
  left: 50%;
  width: 5px;
  height: 9px;
  border: solid var(--c-yellow, #ffd700);
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -50%) rotate(45deg) scale(0);
  transform-origin: center;
  transition: transform .2s ease;
  opacity: 0;
}

/* Состояние «выбрано» */
.tax-form__checkbox input[type="checkbox"]:checked + .tax-form__checkbox-mark {
  border-color: var(--c-yellow, #ffd700);
}

.tax-form__checkbox input[type="checkbox"]:checked + .tax-form__checkbox-mark::after {
  transform: translate(-50%, -55%) rotate(45deg) scale(1);
  opacity: 1;
}

/* Фокус с клавиатуры */
.tax-form__checkbox input[type="checkbox"]:focus-visible + .tax-form__checkbox-mark {
  box-shadow: 0 0 0 3px rgba(255, 215, 0, .35);
}

/* Опционально: disabled */
.tax-form__checkbox input[type="checkbox"]:disabled + .tax-form__checkbox-mark {
  background-color: #f5f5f5;
  border-color: #e0e0e0;
}
.tax-form__checkbox input[type="checkbox"]:disabled ~ .tax-form__checkbox-text {
  color: #999;
  cursor: not-allowed;
}

/* Текст */
.tax-form__checkbox-text {
  user-select: none;
}

/* ===== Блоки загрузки файлов ===== */
.tax-form__file-block {
  background-color: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
}

.tax-form__file-block:last-of-type {
  margin-bottom: 0;
}

.tax-form__file-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.tax-form__file-left {
  flex: 1 1 auto;
  min-width: 0;
}

.tax-form__file-label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-black, #000);
  margin-bottom: 10px;
}

.tax-form__file-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Кнопка «Выбрать файл» */
.tax-form__file-btn {
  display: inline-block;
  background-color: #fff;
  color: var(--c-black, #000);
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  padding: 8px 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease;
}

.tax-form__file-btn:hover {
  background-color: #f0f0f0;
  border-color: #999;
}

/* Текст состояния файла */
.tax-form__file-status {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: #888;
}

/* Ссылка «Скачать шаблон» */
.tax-form__file-template {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #1a6fb5;
  text-decoration: none;
  white-space: nowrap;
  transition: color .25s ease;
}

.tax-form__file-template:hover {
  color: #0d3b7a;
  text-decoration: underline;
}

.tax-form__file-template svg {
  flex-shrink: 0;
}

/* Подсказка под блоком файла */
.tax-form__file-hint {
  font-family: 'Montserrat', sans-serif;
  font-size: 11.5px;
  color: #888;
  margin: 10px 0 0;
  line-height: 1.4;
}

/* ===== Кнопки управления ===== */
.tax-form__actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #eee;
  flex-wrap: wrap;
}

.tax-form__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 12px 28px;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .3s ease, box-shadow .3s ease,
              transform .3s ease, border-color .3s ease, color .3s ease;
}

/* Отправить — жёлтая pill */
.tax-form__btn--submit {
  background-color: var(--c-yellow, #ffd700);
  color: var(--c-black, #000);
  border: none;
}

.tax-form__btn--submit:hover {
  background-color: var(--c-yellow-hover, #ffe43d);
  box-shadow: 0 6px 14px rgba(255, 215, 0, .45);
  transform: translateY(-1px);
}

/* Отмена — outline */
.tax-form__btn--cancel {
  background-color: transparent;
  color: var(--c-black, #000);
  border: 1px solid var(--c-black, #000);
}

.tax-form__btn--cancel:hover {
  background-color: var(--c-black, #000);
  color: #fff;
}

/* ===== Адаптивность ===== */
@media (max-width: 767.98px) {
  .tax-form {
    padding: 20px 16px;
  }

  .tax-form__group-title {
    font-size: 15px;
  }

  .tax-form__file-row {
    flex-direction: column;
    align-items: stretch;
  }

  .tax-form__file-template {
    margin-top: 8px;
  }

  .tax-form__actions {
    flex-direction: column-reverse;
  }

  .tax-form__btn {
    width: 100%;
    min-width: 0;
  }
}
/* =====================================================
   MY APPLICATIONS PAGE — таблица заявок
   ===================================================== */

/* ===== Панель фильтров ===== */
.filters-panel__label {
  font-size: 12px;
  font-weight: 500;
  color: #666;
  margin-bottom: 6px;
}

.filters-panel__select {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  padding: 9px 36px 9px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  background-color: #fff;
  color: var(--c-black, #000);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  appearance: none;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.filters-panel__select:focus {
  border-color: var(--c-yellow, #ffd700);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, .25);
}

/* Кнопка «Применить» */
.btn-apply {
  display: inline-block;
  background-color: var(--c-yellow, #ffd700);
  color: var(--c-black, #000);
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

.btn-apply:hover {
  background-color: var(--c-yellow-hover, #ffe43d);
  box-shadow: 0 4px 10px rgba(255, 215, 0, .45);
  transform: translateY(-1px);
}

/* ===== Таблица заявок ===== */
.applications-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--c-white);
  font-size: 13px;
  margin: 0;
}

/* Шапка таблицы — желтый фон */
.applications-table thead {
  background-color: var(--c-yellow, #ffd700);
}

.applications-table thead th {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-black, #000);
  padding: 12px 14px;
  text-align: left;
  border-right: 1px solid rgba(0, 0, 0, .15);
  white-space: nowrap;
}

.applications-table thead th:last-child {
  border-right: none;
}

/* Ячейки тела таблицы */
.applications-table tbody td {
  padding: 14px;
  border-bottom: 1px solid #e5e5e5;
  border-right: 1px solid #f0f0f0;
  vertical-align: middle;
  color: #333;
}

.applications-table tbody td:last-child {
  border-right: none;
}

.applications-table tbody tr:last-child td {
  border-bottom: none;
}

/* Колонка «№» — мелкий текст, перенос */
.cell-id {
  font-size: 11px;
  font-weight: 500;
  color: #555;
  max-width: 140px;
  word-break: break-word;
  line-height: 1.3;
}

/* Колонка «Дата» — две строки */
.cell-date {
  font-size: 12px;
  color: #555;
  line-height: 1.4;
  white-space: nowrap;
}

/* Колонка с кнопкой «Открыть» */
.cell-action {
  text-align: right;
  white-space: nowrap;
}

/* ===== Бейджи статусов ===== */
.status-badge {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background-color: transparent;
  white-space: nowrap;
}

/* Новая — серый */
.status-badge--secondary {
  color: #666;
  border: 1px solid #999;
}

/* Требует уточнения — красный */
.status-badge--warning {
  color: #d9534f;
  border: 1px solid #d9534f;
}

/* Обработана — зеленый */
.status-badge--success {
  color: #28a745;
  border: 1px solid #28a745;
}

.status-badge--primary {
  color: #0d6efd;
  border: 1px solid #0d6efd;
}

.status-badge--danger {
  color: #dc3545;
  border: 1px solid #dc3545;
}

.status-badge--info {
  color: #0dcaf0;
  border: 1px solid #0dcaf0;
}

/* ===== Кнопка «Открыть» ===== */
.btn-open {
  display: inline-block;
  background-color: var(--c-white);
  color: var(--c-black, #000);
  border: 1px solid #c0c0c0;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .3s ease, border-color .3s ease, transform .3s ease;
}

.btn-open:hover {
  background-color: #f5f5f5;
  border-color: #999;
  transform: translateY(-1px);
}

/* ===== Адаптивность ===== */

/* Планшеты и мобильные: фильтры в колонку */
@media (max-width: 767.98px) {
  .filters-panel .row {
    flex-direction: column;
  }

  .filters-panel .col-md-3 {
    width: 100%;
  }

  .btn-apply {
    width: 100%;
  }
}

/* Мобильные: таблица — горизонтальный скролл */
@media (max-width: 575.98px) {
  .applications-table {
    font-size: 12px;
  }

  .applications-table thead th,
  .applications-table tbody td {
    padding: 10px 8px;
  }

  .cell-id {
    font-size: 10px;
    max-width: 100px;
  }

  .status-badge {
    font-size: 10px;
    padding: 3px 8px;
  }

  .btn-open {
    font-size: 11px;
    padding: 5px 12px;
  }
}
/* =====================================================
   APPLICATION VIEW PAGE — страница просмотра заявки
   ===================================================== */

/* ===== Шапка заявки ===== */
.app-header {
  margin-bottom: 20px;
}

.app-header__title-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 2px;
}

.app-header__title {
  display: inline-block;
  background-color: var(--c-black, #000);
  color: var(--c-white, #fff);
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 8px 14px;
  margin: 0;
}

.app-header__subtitle {
  font-size: 12.5px;
  color: #888;
  margin: 0;
}

/* ===== Алерт ===== */
.app-alert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background-color: #fff9e6;
  border: 1px solid #ffe58a;
  border-radius: var(--radius-card, 6px);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.app-alert__text {
  font-size: 13.5px;
  color: #333;
  margin: 0;
  flex: 1 1 auto;
  min-width: 200px;
}

.btn-edit {
  display: inline-block;
  background-color: var(--c-yellow, #ffd700);
  color: var(--c-black, #000);
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 22px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

.btn-edit:hover {
  background-color: var(--c-yellow-hover, #ffe43d);
  box-shadow: 0 4px 10px rgba(255, 215, 0, .45);
  transform: translateY(-1px);
}

/* ===== Блоки с жёлтой полосой-заголовком ===== */
.app-block {
  background-color: var(--c-white);
  border-radius: var(--radius-card, 6px);
  box-shadow: var(--shadow-card, 0 1px 4px rgba(0,0,0,.08));
  overflow: hidden;          /* чтобы жёлтый хедер не вылезал за скругления */
  margin-bottom: 0;
}

.app-block + .app-block {
  margin-top: 20px;
}

.app-block__header {
  background-color: var(--c-yellow, #ffd700);
  color: var(--c-black, #000);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 18px;
}

.app-block__body {
  padding: 18px;
}

/* ===== Таблица «Ключ — Значение» ===== */
.data-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.data-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13.5px;
}

.data-row:last-child {
  border-bottom: none;
}

.data-row__key {
  flex: 0 0 180px;
  font-weight: 500;
  color: #666;
}

.data-row__value {
  flex: 1 1 auto;
  color: var(--c-black, #000);
  word-break: break-word;
}

/* ===== Пустое состояние ===== */
.empty-state {
  font-size: 13px;
  color: #999;
  margin: 0;
}

/* ===== Форма «Действия» ===== */
.app-form-label {
  font-size: 13px;
  font-weight: 500;
  color: #555;
  margin-bottom: 6px;
}

.app-select,
.app-textarea {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  padding: 9px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  background-color: #fff;
  color: var(--c-black, #000);
  transition: border-color .25s ease, box-shadow .25s ease;
}

.app-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 36px;
  appearance: none;
}

.app-select:focus,
.app-textarea:focus {
  border-color: var(--c-yellow, #ffd700);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, .25);
}

.app-textarea::placeholder {
  color: #a0a0a0;
}

.btn-apply {
  display: inline-block;
  background-color: var(--c-yellow, #ffd700);
  color: var(--c-black, #000);
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 22px;
  border-radius: 999px;
  cursor: pointer;
  margin-top: 4px;
  transition: background-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

.btn-apply:hover {
  background-color: var(--c-yellow-hover, #ffe43d);
  box-shadow: 0 4px 10px rgba(255, 215, 0, .45);
  transform: translateY(-1px);
}

.btn-send {
  display: inline-block;
  background-color: var(--c-yellow, #ffd700);
  color: var(--c-black, #000);
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 9px 22px;
  cursor: pointer;
  transition: background-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

.btn-send:hover {
  background-color: var(--c-yellow-hover, #ffe43d);
  box-shadow: 0 4px 10px rgba(255, 215, 0, .45);
  transform: translateY(-1px);
}

/* ===== История ===== */
.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.history-item {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
  line-height: 1.4;
}

.history-item:last-child {
  border-bottom: none;
}

.history-item__date {
  flex: 0 0 auto;
  font-size: 13px;
  color: #888;
  white-space: nowrap;
}

.history-item__text {
  flex: 1 1 auto;
  color: var(--c-black, #000);
}

/* ===== Адаптивность ===== */

/* На мобильных шапка заявки — заголовок и бейдж в колонку */
@media (max-width: 575.98px) {
  .app-header__title-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .app-header__title {
    font-size: 14px;
    padding: 8px 12px;
  }

  .app-alert {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-edit {
    width: 100%;
    text-align: center;
  }

  .data-row {
    flex-direction: column;
    gap: 2px;
  }

  .data-row__key {
    flex: 1 1 auto;
  }

  .history-item {
    flex-direction: column;
    gap: 2px;
  }
}
.page-item {
  padding-right: 10px;
}
.page-link {
  font-size: 12px;
  color: var(--c-text);
  background-color: #fff;
}
.page-link:hover {
  color: #000;
}
.active .page-link {
  background-color: var(--c-yellow);
  color: #000;
  border: 1px solid var(--bs-border-color);
}
.page-link:focus {
  box-shadow: 0 0 0 0.25rem #ffe137;
}
.access-rule.is-empty { 
  display: none; 
}
.history-item--hidden { display: none; }
.history-list.is-expanded .history-item--hidden { display: list-item; }
