/* =========================================================
   САС — Система сбора данных.  Static replica stylesheet
   Values are taken from the original interface (computed styles)
   ========================================================= */

@font-face {
  font-family: "Inter";
  src: local("Inter"), url("../fonts/Inter.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

/* Как на оригинальном сайте: одно объявление без font-weight,
   вариативный Montserrat (основная гарнитура интерфейса) */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-display: swap;
}

:root {
  --c-text: #1c3260;
  --c-black: #000000;
  --c-blue: #1a73e8;
  --c-blue-strong: #2468cd;
  --c-blue-icon: #285de8;
  --c-border: #e4e9f6;
  --c-border-soft: #e5e9f2;
  --c-muted: #49608f;
  --c-placeholder: #b7c4dd;
  --c-soft: #f4f6fa;
  --c-page-bg: #f5f9fc;
  --grad-page: linear-gradient(152.43deg, #eedef6 0%, #b1e0fa 50.83%, #d7cff9 100%);
  --r-card: 8px;
  --shadow-dd: 0 9px 16px 0 rgba(106, 124, 165, 0.24);
  --shadow-modal: 0 2px 10px 0 rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 22px;
  color: var(--c-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font-family: inherit; }
::placeholder { color: var(--c-placeholder); opacity: 1; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--grad-page);
}

.app { flex: 1 0 auto; display: flex; flex-direction: column; position: relative; }
.view { flex: 1 0 auto; display: flex; flex-direction: column; }

/* ============================ HEADER ============================ */

.topbar {
  background: #fff;
  padding: 12px 16px;
  display: flex;
  justify-content: center;
  flex: 0 0 auto;
  position: relative;
  z-index: 60;
}

.header {
  width: 100%;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.brand__mark { width: 32px; height: 32px; flex: 0 0 32px; }
.brand__mark svg { width: 32px; height: 32px; display: block; }
.brand__name {
  width: 130px;
  font-size: 14px;
  font-weight: 800;
  line-height: 17px;
  letter-spacing: 0;
  text-transform: uppercase;
  background: linear-gradient(91.73deg, #324fc2 1.47%, #44a7ec 98.88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.header__left { display: flex; align-items: center; }

/* ------------------------------- иконки ------------------------------- */
.ic { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ic svg { display: block; width: 100%; height: 100%; }
.ic-14 { width: 14px; height: 14px; }
.ic-16 { width: 16px; height: 16px; }
.ic-17 { width: 17px; height: 17px; }
.ic-bell { width: 16px; height: 18px; }
.ic-18 { width: 18px; height: 18px; }
.ic-20 { width: 20px; height: 20px; }
.ic-24 { width: 24px; height: 24px; }

.nav { display: flex; align-items: center; gap: 8px; }
.nav--left { margin-left: 31px; gap: 6px; }
.nav--right { margin-left: auto; }
.nav--right .nav-btn { padding: 0 16px; }
.nav--right .nav-icon { padding: 0; }

.nav-btn {
  height: 40px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #000;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}
.nav-btn:hover { background: var(--c-soft); }
.nav-btn.is-active { background: var(--c-soft); }
.nav-btn .caret { width: 8px; height: 6px; display: inline-flex; transition: transform 0.2s ease; }
.nav-btn.is-open .caret { transform: rotate(180deg); }
.nav-btn .caret svg { width: 8px; height: 6px; display: block; }

.nav-icon { width: 40px; padding: 0; justify-content: center; }
.nav-icon svg { display: block; }
.nav-icon .ic-bell { position: relative; top: -1px; }
.nav-icon .badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 8px;
  background: #f5222d;
  color: #fff;
  font-size: 10px;
  line-height: 15px;
  font-weight: 600;
  text-align: center;
}
.nav-icon { position: relative; }

.btn-primary {
  height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--c-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  transition: background-color 0.15s ease;
}
.btn-primary:hover { background: #1765cc; }
.btn-primary:disabled { background: #d1dbee; cursor: default; }

/* ---------------------------- dropdown ---------------------------- */

.header_dropdown {
  position: fixed;
  z-index: 1050;
  padding-top: 1px;
  animation: ddIn 0.16s ease;
}
@keyframes ddIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.dropdown-panel {
  min-width: 132px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  box-shadow: var(--shadow-dd);
}
.dropdown-option {
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #000;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.dropdown-option:hover { background: var(--c-soft); }

/* ============================ LANDING ============================ */

.landing-main {
  flex: 1 0 auto;
  padding: 20px 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.hero {
  position: relative;
  height: 510px;
  border-radius: var(--r-card);
  background: #fff;
  overflow: hidden;
}
.hero__inner {
  height: 100%;
  padding-left: 70px;
  display: flex;
  align-items: center;
  background-image: url("../img/hero_bg.svg");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%;
}
.hero__title {
  margin: 0;
  width: 740px;
  font-size: 48px;
  line-height: 54px;
  font-weight: 800;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0;
}
.hero__desc { margin-top: 24px; width: 440px; font-size: 20px; line-height: 24px; }
.hero__desc p { margin: 0; }
.hero__desc p + p { margin-top: 24px; }
.hero__desc b { font-weight: 700; }

.cards {
  width: 100%;
  max-width: 1130px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card-audience {
  min-height: 152px;
  padding: 28px 40px;
  display: flex;
  align-items: center;
  border-radius: var(--r-card);
  background: #fff;
  font-size: 16px;
  line-height: 24px;
  color: var(--c-text);
  cursor: pointer;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.card-audience:hover { box-shadow: 0 8px 20px rgba(28, 50, 96, 0.1); }
.card-audience b { font-weight: 700; }

/* ============================ FOOTER ============================ */

.footer {
  flex: 0 0 auto;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer__cols { display: flex; gap: 24px; align-items: flex-start; }
.footer__col { display: flex; flex-direction: column; }
.footer__col--wide { width: 322px; }
.footer__col:nth-child(2) { width: 123px; }
.footer__col:nth-child(3) { width: 150px; }
.footer__label { font-size: 12px; line-height: 19px; font-weight: 500; color: var(--c-muted); position: relative; top: -1px; }
.footer__value { font-size: 14px; line-height: 20px; font-weight: 500; color: #000; white-space: nowrap; }
.footer__col--wide .footer__value { word-spacing: 0.6px; }
.footer__value a[href^="tel"] { word-spacing: 2.4px; }
.footer__value a { color: inherit; }
.footer__value a.mail { color: var(--c-blue); }
.footer__logos { display: flex; align-items: center; gap: 16px; }
.footer__logos img { display: block; }
.footer__logos img.l-minproc { height: 32px; }
.footer__org { display: flex; align-items: center; gap: 9px; }
.footer__logos img.l-snpm { height: 46px; width: auto; }
.footer__org-text {
  max-width: 274px;
  font-size: 8px;
  line-height: 10.5px;
  letter-spacing: 0.1px;
  color: #33456b;
  text-transform: uppercase;
}
.footer__org-text b { font-weight: 600; }
.footer__logos img.l-project { height: 58px; width: auto; }
.footer__org--project { padding-left: 16px; border-left: 1px solid rgba(51, 69, 107, 0.16); }
.footer__logos img.l-ficto { height: 25px; }
.footer__logos img.l-suoo { height: 33px; }

.edge-badge {
  position: absolute;
  right: 0;
  top: 50%;
  z-index: 40;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-size: 12px;
  font-weight: 500;
  line-height: 14px;
  color: #1978c0;
  padding: 10px 2px;
  pointer-events: none;
  user-select: none;
}
.edge-badge[hidden] { display: none; }

/* угловая плашка «Сделано в ФИЦТО» на публичных страницах */
.corner-badge {
  position: absolute;
  left: 15px;
  top: 26px;
  z-index: 70;
  width: 67px;
  height: 84px;
  pointer-events: none;
  user-select: none;
}
.corner-badge[hidden] { display: none; }
.corner-badge img { display: block; width: 67px; height: 84px; }

/* ============================ MODALS ============================ */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.18s ease;
}
.overlay[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-modal);
  padding: 32px;
  width: 400px;
  max-width: 100%;
  position: relative;
  animation: modalIn 0.18s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.modal--wide { width: 638px; border-radius: 12px; padding: 32px 20px 0; max-height: calc(100vh - 20px); display: flex; flex-direction: column; }
.modal--wide .modal__title { font-size: 20px; line-height: 30px; font-weight: 500; color: #1c3260; }
.modal--wide .modal__close { width: 24px; height: 24px; color: #1c3260; margin-top: 3px; }
.modal--wide .modal__close svg { width: 16px; height: 16px; }

/* ------------------------------ вход ------------------------------ */
.modal--login {
  width: 400px;
  padding: 32px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}
.modal--login .modal__title { font-size: 24px; line-height: 33px; font-weight: 700; color: #1c3260; letter-spacing: 0.3px; position: relative; top: -3px; }
.modal--login .modal__head { align-items: flex-start; }
.modal--login .modal__close { width: 24px; height: 24px; color: #1c3260; }
.modal--login .modal__close svg { width: 24px; height: 24px; }

.lrow { display: grid; grid-template-columns: 80px 256px; align-items: center; gap: 0; margin-top: 22px; }
.lrow + .lrow { margin-top: 26px; }
.llabel { font-size: 14px; line-height: 20px; font-weight: 500; color: #1c3260; white-space: nowrap; position: relative; top: -1px; }
.llabel .req { color: #e5484d; }
.linput-wrap { position: relative; display: block; }
.linput {
  width: 100%;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--c-border);
  border-radius: 5px;
  background: #fff;
  color: var(--c-text);
  font-size: 15px;
  outline: none;
}
.linput::placeholder { color: var(--c-placeholder); }
.linput:focus { border-color: var(--c-blue); }
.linput--pass { padding-right: 40px; }
.toggle-pass {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--c-placeholder);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.toggle-pass.is-on { color: var(--c-blue); }
.toggle-pass .ic { width: 16px; height: 16px; }

.forgot {
  display: block;
  margin: 13.5px 0 0 80px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--c-blue);
  font-size: 14px;
  line-height: 23px;
}
.forgot:hover { text-decoration: underline; }

.modal--login .modal__foot { margin-top: 22.5px; justify-content: flex-start; }
.btn-login {
  height: 40px;
  min-width: 79px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: var(--c-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
.btn-login:hover { background: #1765cc; }
.btn-login:disabled { background: #d1dbee; color: #fff; cursor: default; }
.modal--login .form-error { margin: 10px 0 0 85px; font-size: 12px; line-height: 16px; }

.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal__title { font-size: 20px; line-height: 29px; font-weight: 600; color: var(--c-text); margin: 0; }
.modal__close {
  border: 0;
  background: transparent;
  padding: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-placeholder);
  border-radius: 4px;
}
.modal__close:hover { color: var(--c-text); }
.modal__close svg { width: 24px; height: 24px; display: block; }

.modal__body { margin-top: 20px; }
.modal__foot { margin-top: 24px; display: flex; justify-content: flex-start; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 14px; line-height: 22px; color: var(--c-text); }
.field__label .req { color: #e5484d; }

.input-wrap { position: relative; display: flex; align-items: center; }
.input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: #fff;
  color: var(--c-text);
  font-size: 16px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.15s ease;
}
.input:hover { border-color: #c9d5ee; }
.input:focus { border-color: var(--c-blue); }
.input--icon-right { padding-right: 40px; }
.input-wrap .icon-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--c-placeholder);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.input-wrap .icon-btn svg { width: 16px; height: 16px; display: block; }

.link-btn {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--c-blue);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}
.link-btn:hover { text-decoration: underline; }

.form-error {
  margin-top: 12px;
  font-size: 13px;
  line-height: 18px;
  color: #e5484d;
}

/* ---------------------------- feedback form ---------------------------- */

.overlay--feedback {
  align-items: flex-start;
  justify-content: center;
  padding: 56px 24px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal--wide {
  width: 640px;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 80px);
  max-height: calc(100dvh - 80px);
  margin: 0;
  padding: 0 24px 19px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  overflow: hidden;
}

/* --- шапка --- */
.modal--wide .modal__head {
  flex: 0 0 auto;
  align-items: flex-start;
  padding-top: 32px;
}
.modal--wide .modal__title {
  margin: 0 0 0 -4px;
  padding-top: 7px;
  position: relative;
  top: -1.5px;
  font-size: 19.5px;
  line-height: 26px;
  font-weight: 550;
  letter-spacing: -0.72px;
  color: #262626;
}
.modal--wide .modal__close {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 10px 18px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8c8c8c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.modal--wide .modal__close svg { width: 23px; height: 23px; display: block; }
.modal--wide .modal__close:hover { color: #262626; }

/* --- вводный текст --- */
.fb-text {
  flex: 0 0 auto;
  margin: 20px 0 0;
  width: auto;
  max-width: 592px;
  font-size: 16.5px;
  font-weight: 300;
  line-height: 22.5px;
  color: #000;
}
.fb-note {
  flex: 0 0 auto;
  margin: 20px 0 0;
  font-size: 16.5px;
  font-weight: 300;
  line-height: 22.5px;
  color: #000;
}

/* --- сетка полей --- */
.fb-grid {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding-right: 2px;
}
.fb-grid::-webkit-scrollbar { width: 6px; }
.fb-grid::-webkit-scrollbar-thumb { background: #dfe6f2; border-radius: 3px; }
.fb-row {
  display: grid;
  grid-template-columns: 160px 432px;
  column-gap: 0;
  align-items: center;
}
.fb-row + .fb-row { margin-top: 20px; }
.fb-grid > .fb-row:nth-child(4) { margin-top: 42px; }
.fb-grid > .fb-row:nth-child(5) { margin-top: 22px; }
.fb-grid > .fb-row:nth-child(7) { margin-top: 21px; }

.fb-row .field__label {
  font-size: 14px;
  line-height: 19.5px;
  font-weight: 500;
  color: #1c3260;
}
.fb-row .field__label .req {
  margin-left: 2px;
  font-size: 14px;
  font-weight: 500;
  color: #ff0000;
  vertical-align: 3.5px;
}
.fb-row--file .field__label { white-space: nowrap; position: relative; top: 1.5px; }

.hint-dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  color: #8b98b8;
  vertical-align: 0.5px;
}
.hint-dot svg { width: 16px; height: 16px; display: block; }

/* --- поля --- */
.fb-row .select,
.fb-row .input,
.fb-row .textarea {
  width: 432px;
  border-radius: 8px;
  background-color: #fff;
  outline: none;
}

.fb-row .select {
  height: 40px;
  padding: 0 34px 0 12px;
  border: 1px solid #d1dbee;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='12' height='7' viewBox='0 0 12 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 1L6 6L1 1' stroke='%231C3260' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 7px;
  color: #1c3260;
  font-size: 13px;
  font-weight: 450;
  appearance: none;
  cursor: pointer;
}
.fb-row .select:invalid { color: #7784a0; }

.fb-row .input {
  height: 40px;
  padding: 0 12px 0 17.5px;
  border: 1px solid #e4e9f6;
  color: #000;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.05px;
}
.fb-row .input::placeholder { color: #7f7d83; opacity: 1; }

.fb-row .textarea {
  height: 50px;
  min-height: 50px;
  padding: 14px 12px 0 12px;
  border: 1px solid #e4e9f6;
  color: #000;
  font-size: 16px;
  font-weight: 480;
  letter-spacing: -0.2px;
  line-height: 22px;
  resize: both;
}
.fb-row .textarea::placeholder { color: #7f7d83; opacity: 1; }

/* --- прикрепить файл --- */
.fb-filewrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.fb-row--file .btn-outline {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  height: 40px;
  width: 187.5px;
  padding: 0 15.5px 0 15.2px;
  gap: 11.2px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: #fff;
  color: #262626;
  font-size: 14.5px;
  font-weight: 400;
  letter-spacing: -0.4px;
  white-space: nowrap;
}
.fb-row--file .btn-outline:hover { background: #fff; border-color: #1890ff; color: #1890ff; }
.fb-row--file .btn-outline .ic { width: 18px; height: 18px; position: relative; top: 0.5px; }
.fb-row--file .btn-outline > span { flex: 0 0 auto; }
.fb-row--file .btn-outline > span:last-child { position: relative; top: -0.5px; }
.fb-row--file .btn-outline svg { width: 18px; height: 18px; display: block; }

/* --- капча --- */
.fb-row--captcha { margin-top: 20px; align-items: start; }
.fb-row--captcha .captcha {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.captcha__img {
  width: 400px;
  height: 133px;
  border-radius: 0;
  background: #fdd4db;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
}
.captcha__img svg { display: block; width: 100%; height: 100%; }
.captcha__refresh {
  margin-top: 1.5px;
  height: 18px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #1c3260;
  font-size: 14px;
  font-weight: 450;
  line-height: 18px;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.captcha__refresh:hover { color: #1890ff; }
.captcha__refresh svg { width: 18px; height: 18px; display: block; }

/* ловушка для ботов: поле не видно людям и не попадает в обход по Tab */
.fb-hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
#fbCaptcha.is-error {
  border-color: #e5484d;
  box-shadow: 0 0 0 3px rgba(229, 72, 77, .12);
}
#fbSend:disabled { opacity: .6; cursor: default; }

/* --- адаптив окна обратной связи --- */
@media (max-width: 720px) {
  .overlay--feedback { padding: 12px; }
  .modal--wide {
    width: 100%;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 0 16px 14px;
  }
  .modal--wide .modal__head { padding-top: 16px; }
  .modal--wide .modal__close { margin: 4px 0 0 8px; }
  .fb-text, .fb-note { margin-top: 12px; font-size: 14px; line-height: 20px; }
  .fb-grid { margin-top: 14px; }
  .fb-row { grid-template-columns: 1fr; row-gap: 6px; }
  .fb-row + .fb-row,
  .fb-grid > .fb-row:nth-child(4),
  .fb-grid > .fb-row:nth-child(5),
  .fb-grid > .fb-row:nth-child(7) { margin-top: 14px; }
  .fb-row .select, .fb-row .input, .fb-row .textarea { width: 100%; }
  .fb-row--file .field__label { top: 0; }
  .fb-filewrap { align-items: flex-start; }
  .fb-row--file .btn-outline { justify-self: start; }
  .fb-row--captcha > div:first-child { display: none; }
  .fb-row--captcha .captcha { grid-column: 1; align-items: flex-start; width: 100%; }
  .captcha__img { width: 100%; max-width: 400px; height: auto; aspect-ratio: 400 / 133; }
  .modal--wide .modal__foot--between { height: 64px; padding: 0 12px; margin-top: 14px; }
}

/* --- подвал --- */
.modal--wide .modal__foot--between {
  flex: 0 0 auto;
  margin: auto 0 0;
  height: 72px;
  justify-content: space-between;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  background: #f4f6fa;
  align-items: center;
}
.btn-ghost {
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #1890ff;
  font-size: 13.5px;
  font-weight: 400;
}
.btn-ghost:hover { background: transparent; color: #40a9ff; }
.btn-send {
  height: 40px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  border-radius: 8px;
  background: #1890ff;
  color: #fff;
  font-size: 15px;
  font-weight: 450;
}
.btn-send:hover { background: #40a9ff; }
.btn-send svg { width: 14px; height: 14px; display: block; flex: 0 0 auto; }


/* ============================ APP SHELL ============================ */

.app-main { flex: 1 0 auto; padding: 20px 20px 20px; }

.panel {
  background: #fff;
  border-radius: var(--r-card);
  padding: 24px;
  min-height: 432px;
}

.toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
}

.breadcrumb { display: flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 1px; }
.breadcrumb__home { width: 20px; height: 20px; display: inline-flex; color: var(--c-text); }
.breadcrumb__home svg { width: 20px; height: 20px; display: block; }
.breadcrumb__sep { color: var(--c-muted); display: inline-flex; }
.breadcrumb__sep svg { width: 5px; height: 8px; display: block; }
.breadcrumb__current {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--c-text);
}

.filters { display: flex; align-items: center; gap: 8px; }

.search { position: relative; width: 240px; }
.search .input { padding-right: 40px; }
.search__icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  display: inline-flex;
  color: var(--c-text);
}
.search__icon svg { width: 16px; height: 16px; display: block; }
.search__clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--c-placeholder);
  display: none;
  align-items: center;
  justify-content: center;
}
.search__clear svg { width: 8px; height: 8px; }
.search.has-value .search__clear { display: inline-flex; }
.search.has-value .search__icon { display: none; }

/* multi select */
.ms { position: relative; width: 240px; }
.ms__control {
  width: 100%;
  height: 40px;
  padding: 0 6.5px 0 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: #fff;
  color: var(--c-text);
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  overflow: hidden;
}
.ms__control:hover { border-color: #c9d5ee; }
.ms.is-open .ms__control { border-color: #93c5fd; background: #f8fbff; }
.ms__value { flex: 1 1 auto; max-width: 145px; margin-right: auto; position: relative; top: -1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms__clear {
  width: 16px;
  height: 16px;
  display: none;
  align-items: center;
  justify-content: center;
  color: #8c9bbd;
  flex: 0 0 16px;
}
.ms__clear svg { width: 8px; height: 8px; display: block; }
.ms.has-value .ms__clear { display: inline-flex; }
.ms__caret {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  margin-right: -1px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.ms.is-open .ms__caret { background: #dbeafe; }
.ms.is-open .ms__caret svg { position: relative; top: 1px; }
.ms__caret svg { width: 12px; height: 7px; display: block; }
.ms.is-open .ms__caret { transform: rotate(180deg); }

.ms__panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 240px;
  max-height: 214px;
  overflow-y: auto;
  padding: 6px 8px 8px;
  background: #fff;
  border: 1px solid #e4e9f6;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(106, 124, 165, 0.22);
  z-index: 30;
  display: none;
}
.ms.is-open .ms__panel { display: block; }
.ms__panel::-webkit-scrollbar { width: 19px; }
.ms__panel::-webkit-scrollbar-thumb {
  background: #5ca0f3;
  background-clip: content-box;
  border: 6px solid transparent;
  border-radius: 6px;
}
.ms__panel::-webkit-scrollbar-track { background: transparent; }

.ms__opt {
  display: flex;
  align-items: center;
  gap: 8.5px;
  padding: 8px 10px 8px 6.5px;
  border-radius: 8px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #262626;
  cursor: pointer;
  user-select: none;
}
.ms__opt:hover { background: var(--c-soft); }
.ms__opt.is-off { color: #262626; font-weight: 400; }
.ms__box {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 6px;
  border: 1px solid #e4e9f6;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.ms__opt:not(.is-off) { color: #1e40af; font-weight: 600; }
.ms__opt:not(.is-off) .ms__box { background: #1a73e8; border-color: #1a73e8; }
.ms__box svg { width: 10px; height: 7px; display: none; }
.ms__opt:not(.is-off) .ms__box svg { display: block; }

/* date range */
.daterange {
  position: relative;
  width: 260px;
  height: 40px;
  display: flex;
  align-items: center;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: #fff;
  padding: 0 40px 0 14px;
}
.daterange:focus-within { border-color: var(--c-blue); }
.daterange input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--c-text);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
}
.daterange input::placeholder { color: #1c3260; opacity: 1; }
.daterange__icon {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: block;
  color: #262626;
}
.daterange__icon svg { width: 20px; height: 20px; display: block; }

.view-toggle {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-border-soft);
  border-radius: 8px;
  background: #fff;
  color: var(--c-blue-icon);
}
.view-toggle:hover { background: var(--c-soft); }
.view-toggle svg { width: 18px; height: 18px; display: block; }

/* ---------------------------- table ---------------------------- */

.table-wrap { margin-top: 24px; }
.table { width: 100%; border-collapse: collapse; }
.table thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-muted);
  background: #f7f9fd;
  white-space: nowrap;
}
.table thead th:first-child { border-radius: 8px 0 0 8px; width: 44px; padding-right: 0; }
.table thead th:last-child { border-radius: 0 8px 8px 0; width: 48px; }
.table tbody td {
  padding: 16px;
  border-bottom: 1px solid #eef2f8;
  vertical-align: middle;
}
.table tbody tr:hover td { background: #fafcff; }
.table tbody td:first-child { padding-right: 0; }
.table tbody td:last-child { padding-right: 8px; }

.t-title { font-size: 16px; font-weight: 600; line-height: 22px; color: var(--c-text); }
.t-sub { margin-top: 2px; font-size: 13px; line-height: 18px; color: #7c8db0; }
.t-date { font-size: 15px; font-weight: 500; color: var(--c-text); white-space: nowrap; }
.t-date--late { color: #e5484d; }
.t-chevron { width: 20px; height: 20px; display: inline-flex; color: #9fb0d0; }
.t-chevron svg { width: 5px; height: 8px; transform: rotate(0deg); }

.checkbox {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  border: 1px solid #d9d9d9;
  background: #f5f5f5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
}
.checkbox.is-checked { background: var(--c-blue-strong); border-color: var(--c-blue-strong); }
.checkbox svg { width: 11px; height: 8px; display: none; }
.checkbox.is-checked svg { display: block; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag--primary { background: #e8f0ff; color: #1a5fd0; }
.tag--ghost { background: #f0f2f7; color: #5d6f92; }
.tag--success { background: #e6f7ee; color: #1a7f4b; }
.tag--warning { background: #fff4e0; color: #b26a00; }
.tag--danger { background: #fdeaea; color: #c22b2b; }

/* ---------------------------- cards view ---------------------------- */

.cards-view { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 16px; }
.p-card {
  border: 1px solid #d7e3fb;
  background: #f7faff;
  border-radius: 8px;
  padding: 12px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
  min-height: 132px;
}
.p-card:hover { box-shadow: 0 8px 20px rgba(28, 50, 96, 0.1); border-color: #b9d0f8; }
.p-card--warning { border-color: #f6d9a8; background: #fffdf7; }
.p-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.p-card__doc { width: 16px; height: 16px; color: #5b7bb5; display: inline-flex; flex: 0 0 auto; margin-top: 2px; }
.p-card__doc svg { width: 16px; height: 16px; display: block; }
.p-card__title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 17px;
  color: var(--c-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1 1 auto;
}
.p-card__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 8px;
  margin-top: auto;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 10.5px;
  color: #7c8db0;
}
.p-card__period, .p-card__id { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-card__period svg, .p-card__id svg { width: 11px; height: 11px; display: block; opacity: 0.8; flex: 0 0 auto; }
.p-card__id { grid-column: 1 / -1; }
.p-card__go { margin-left: auto; justify-self: end; color: #1a73e8; white-space: nowrap; }
.p-card__go:hover { text-decoration: underline; }
.p-card .tag { font-size: 10px; padding: 1px 7px; line-height: 15px; }
.p-card .tag::before { width: 4px; height: 4px; }

/* ---------------------------- empty state ---------------------------- */

.empty {
  margin: 96px auto 0;
  width: 320px;
  min-height: 126px;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  text-align: center;
  font-family: Inter, sans-serif;
  background: #e8f2ff;
  border: 1px solid #c5deff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--c-text);
}
.empty a { color: var(--c-blue); }
.empty a[href^="tel"] { word-spacing: 1.5px; }
.empty--table { margin: 40px auto; }

.table-empty {
  margin-top: 24px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.table-empty .empty { margin: 0; }

/* ---------------------------- pagination ---------------------------- */

.pager {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.pager__info { font-size: 13px; color: #7c8db0; }
.pager__pages { display: flex; align-items: center; gap: 4px; }
.pager__btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  background: #fff;
  color: var(--c-text);
  font-size: 13px;
  font-weight: 500;
}
.pager__btn:hover { background: var(--c-soft); }
.pager__btn.is-active { background: var(--c-blue); border-color: var(--c-blue); color: #fff; }
.pager__btn:disabled { opacity: 0.45; cursor: default; }

/* ============================ NOTIFICATIONS ============================ */

.notif-panel { padding: 20px 20px 0; background: #fff; }
.notif-head { display: flex; align-items: center; min-height: 39px; }
.notif-head h1 { margin: 0; font-family: Inter, sans-serif; font-size: 26px; line-height: 39px; font-weight: 400; color: rgba(0, 0, 0, 0.85); }

.seg { display: inline-flex; }
.seg__btn {
  height: 40px;
  padding: 0 11px;
  border: 1px solid #0086ff;
  background: #fff;
  color: #0086ff;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
}
.seg__btn:first-child { border-radius: 5px 0 0 5px; }
.seg__btn:last-child { border-radius: 0 5px 5px 0; margin-left: -1px; }
.seg__btn.is-active { background: var(--c-blue-strong); border-color: var(--c-blue-strong); color: #fff; }

.notif-toolbar { margin-top: 30px; display: flex; align-items: center; gap: 25px; }
.notif-search {
  flex: 1 1 auto;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #b2bfc7;
  border-radius: 5px;
  font-size: 16px;
  color: #626266;
  outline: none;
}
.notif-search:focus { border-color: var(--c-blue); }
.period { display: flex; align-items: center; gap: 5px; }
.period__label { font-size: 14px; color: #626266; }
.period__input {
  width: 140px;
  height: 40px;
  padding: 0 34px 0 12px;
  border: 1px solid #b2bfc7;
  border-radius: 8px;
  font-size: 13px;
  color: #626266;
  background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='64 64 896 896' xmlns='http://www.w3.org/2000/svg' fill='%2300000040'%3E%3Cpath d='M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z'/%3E%3C/svg%3E") no-repeat right 12px center / 14px 14px;
  outline: none;
}

.n-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.n-table thead th {
  padding: 20px 16px;
  text-align: left;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  color: #7c8db0;
  background: #f7f9fd;
  border-bottom: 1px solid #eef2f8;
}
.n-table tbody td { padding: 14px 16px; border-bottom: 1px solid #eef2f8; vertical-align: top; }
.n-table tbody tr.is-unread td { background: #f7fbff; }
.n-title { font-size: 15px; font-weight: 600; color: var(--c-text); }
.n-text { margin-top: 2px; font-size: 13px; color: #6d7fa3; }
.n-date { font-size: 13px; color: #6d7fa3; white-space: nowrap; }
.n-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-blue); display: inline-block; margin-right: 8px; }

.seg__btn--upper { text-transform: uppercase; }

.n-table-wrap { margin-top: 21px; height: 231px; overflow: hidden; }
.n-table { margin-top: 0; }
.n-table thead th {
  position: relative;
  height: 64px;
  padding: 0 16px;
  vertical-align: middle;
  background: #fafafa;
  color: rgba(0, 0, 0, 0.85);
  font-weight: 600;
  font-size: 12.6px;
  line-height: 18px;
  border-bottom: 1px solid #f0f0f0;
}
.n-table thead th:first-child { width: 36px; padding: 0 0 0 8px; }
.n-table thead th:nth-child(2) { text-indent: -1.5px; }
.n-table tbody td:first-child { width: 36px; padding: 14px 0 14px 8px; }
.n-table thead th:nth-child(2)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 1px;
  height: 22px;
  background: #ebebeb;
  transform: translateY(-50%);
}
.n-table thead th:last-child { width: 150px; padding: 0 17px 0 16px; }
.n-th-date { display: flex; align-items: center; height: 18px; }
.sort-ico {
  margin-left: auto;
  margin-top: 1px;
  width: 9px;
  height: 5px;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='5' viewBox='0 0 9 5'%3E%3Cpath d='M4.5 0 9 5H0z' fill='%23bfbfbf'/%3E%3C/svg%3E") no-repeat center / 9px 5px;
}
.n-empty {
  height: 167px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 48px;
  gap: 9px;
  color: #bfbfd6;
  font-size: 13.3px;
  line-height: 20px;
}
.n-empty__ico { width: 62px; height: 40px; display: inline-flex; }
.n-empty__ico svg { width: 62px; height: 40px; display: block; }

/* ============================ PROFILE ============================ */

.profile-panel { background: var(--c-page-bg); border-radius: 4px; padding: 20px; min-height: calc(100vh - 100px); }
.profile-head h1 { margin: 0; font-family: Inter, sans-serif; font-size: 26px; line-height: 39px; font-weight: 400; color: rgba(0, 0, 0, 0.85); }

.tabs { margin-top: 10px; display: flex; gap: 32px; border-bottom: 1px solid #e8eef7; }
.tab {
  padding: 14px 0 12px;
  border: 0;
  background: transparent;
  font-size: 14px;
  letter-spacing: -0.42px;
  color: rgba(0, 0, 0, 0.85);
  position: relative;
}
.tab.is-active { color: #1677ff; }
.tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #1677ff;
}

.profile-body { width: 900px; max-width: 100%; margin: 16px auto 0; display: flex; flex-direction: column; gap: 7px; }
.p-row { width: 800px; max-width: 100%; background: #fff; }
.p-row__top { display: flex; align-items: flex-start; justify-content: space-between; padding: 20px 40px; min-height: 90px; }
.p-row__title { font-family: Inter, sans-serif; font-size: 18px; line-height: 28px; font-weight: 700; color: rgba(0, 0, 0, 0.85); }
.ant-btn {
  font-family: Inter, sans-serif;
  height: 32px;
  padding: 0 15px;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  background: #fff;
  color: rgba(0, 0, 0, 0.85);
  font-size: 14px;
}
.ant-btn:hover { border-color: #4096ff; color: #4096ff; }
.p-row__content { display: none; padding: 0 20px 20px; }
.p-row.is-open .p-row__content { display: block; }
.p-row__content .field + .field { margin-top: 12px; }
.p-row__actions { margin-top: 16px; display: flex; gap: 8px; }
.btn-ant-primary {
  height: 32px;
  padding: 0 15px;
  border: 0;
  border-radius: 2px;
  background: #5c60f5;
  color: #fff;
  font-size: 14px;
}

.p-row__content .field__label { font-size: 13px; color: rgba(0, 0, 0, 0.65); }
.p-row__content .input { height: 32px; font-size: 14px; border-radius: 2px; border-color: #d9d9d9; }
.p-row__content .input:focus { border-color: #5c60f5; }

.api-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.api-table th {
  text-align: left;
  padding: 10px 12px;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.65);
}
.api-table td { padding: 12px; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.api-table code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: #1c3260; }

.agree p { margin: 0 0 12px; font-size: 14px; line-height: 22px; color: var(--c-text); }
.agree { max-height: 50vh; overflow-y: auto; }

.fb-file { margin-top: 8px; font-size: 13px; color: var(--c-muted); }
.fb-file:empty { display: none; }

/* ============================ TOAST ============================ */

.toasts { position: fixed; right: 24px; bottom: 24px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; }
.toast {
  min-width: 260px;
  max-width: 360px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(28, 50, 96, 0.18);
  font-size: 14px;
  color: var(--c-text);
  animation: toastIn 0.2s ease;
}
.toast--error { border-left: 3px solid #e5484d; }
.toast--success { border-left: 3px solid #1a7f4b; }
@keyframes toastIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }

/* ============================ RESPONSIVE ============================ */

@media (max-width: 1280px) {
  .hero__title { width: 100%; font-size: 40px; line-height: 46px; }
  .cards-view { grid-template-columns: repeat(2, 1fr); }
  .notif-toolbar { flex-wrap: wrap; }
}

@media (max-width: 1024px) {
  .hero { height: auto; }
  .hero__inner { padding: 48px 40px; background-size: cover; background-position: center; }
  .hero__desc { width: 100%; max-width: 520px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .toolbar { flex-wrap: wrap; }
  .filters { flex-wrap: wrap; }
  .search, .ms, .daterange { width: 100%; }
  .footer { flex-direction: column; align-items: flex-start; }
}

/* компактная шапка: четыре раздела меню не помещаются на 1366/1280 */
@media (max-width: 1460px) {
  .nav--left { margin-left: 16px; gap: 4px; }
  .nav-btn { padding: 0 9px; font-size: 13.5px; gap: 6px; }
  .nav--right { gap: 6px; }
  .nav--right .nav-btn { padding: 0 10px; }
  .brand__name { width: 112px; font-size: 12.5px; line-height: 15px; }
}

@media (max-width: 1320px) {
  .nav-btn { padding: 0 7px; font-size: 13px; }
  .nav--right .nav-btn { padding: 0 8px; }
  .brand__name { width: 104px; font-size: 12px; }
}

@media (max-width: 720px) {
  .cards, .cards-view { grid-template-columns: 1fr; }
  .hero__title { font-size: 32px; line-height: 38px; }
  .brand__name { display: none; }
  .nav-btn { padding: 0 10px; }
  .fb-row { grid-template-columns: 1fr; gap: 6px; }
  .fb-row .field__label { padding-top: 0; }
  .modal--wide { width: 100%; }
  .table thead th:nth-child(4), .table tbody td:nth-child(4) { display: none; }
}

/* =========================================================
   ФОРМА МОНИТОРИНГА (раздел «Проекты» → форма)
   ========================================================= */

.app-main--form { padding: 16px 20px 20px; }

.form-panel {
  padding: 16px 24px 20px;
  display: flex;
  flex-direction: column;
}
.form-panel.is-fs {
  position: fixed;
  inset: 0;
  z-index: 900;
  border-radius: 0;
  overflow: auto;
  padding: 18px 24px 24px;
}

/* --- шапка формы --- */
.form-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 22px; }
.breadcrumb--form { flex-wrap: nowrap; overflow: hidden; min-width: 0; gap: 6px; margin-top: 0; }
.breadcrumb__link { color: #7c8db0; font-size: 12.5px; white-space: nowrap; }
.breadcrumb__link:hover { color: #1a73e8; }
.breadcrumb__current--form {
  font-size: 13px;
  font-weight: 400;
  color: var(--c-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.form-head__meta { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; font-family: Inter, sans-serif; }
.form-id { font-size: 11.5px; color: #9aa6bd; white-space: nowrap; }
.form-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #1a73e8;
  white-space: nowrap;
}
.form-status__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.form-status--completed, .form-status--signed, .form-status--agreed { color: #22b974; }
.form-status--atAgreed, .form-status--atSigning { color: #e8a33d; }
.form-status--returnedToWork, .form-status--created { color: #e5484d; }
.form-status--archive { color: #8a94ad; }

/* --- вкладки + инструменты --- */
.form-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e9eef7;
  margin-top: 12px;
}
.ftabs { display: flex; align-items: flex-end; gap: 26px; flex-wrap: wrap; }
.ftab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  padding: 0 0 9px;
  font-family: Inter, sans-serif;
  font-size: 12.5px;
  color: #5b6b8c;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.ftab:hover { color: #1a73e8; }
.ftab.is-active { color: #1a73e8; border-bottom-color: #1a73e8; }
.ftab__badge {
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 8px;
  background: #1a73e8;
  color: #fff;
  font-size: 9.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.ftab__ok { width: 14px; height: 14px; display: inline-flex; }
.ftab__ok svg { width: 14px; height: 14px; display: block; }

.form-tools { display: flex; align-items: center; gap: 2px; padding-bottom: 5px; flex: 0 0 auto; }
.ftool {
  width: 30px;
  height: 30px;
  border: 0;
  background: none;
  border-radius: 6px;
  color: #1c3260;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.ftool:hover { background: #f2f6fd; }
.ftool.is-on { background: #e8f0ff; color: #1a73e8; }
.ftool .ic-16 svg { width: 16px; height: 16px; display: block; }

.autosave[hidden] { display: none; }
.autosave {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 10px;
  font-family: Inter, sans-serif;
  font-size: 11.5px;
  color: #7c8db0;
  white-space: nowrap;
}
.autosave__spin {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid #cdd8ec;
  border-top-color: #1a73e8;
  animation: autospin 0.7s linear infinite;
}
.autosave.is-saved .autosave__spin { display: none; }
.autosave.is-saved .autosave__text::before { content: "✓ "; color: #22b974; font-weight: 600; }
@keyframes autospin { to { transform: rotate(360deg); } }

.ro-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 12px;
  border: 1px solid #dfe9fb;
  border-radius: 8px;
  background: #f5f8ff;
  font-family: Inter, sans-serif;
  font-size: 12px;
  line-height: 17px;
  color: #4a5b7d;
}
.ro-banner .ic svg { width: 15px; height: 15px; display: block; color: #7c8db0; }

/* --- таблица формы --- */
.ftable-wrap {
  margin-top: 12px;
  overflow: auto;
  border: 1px solid #e6ebf4;
  border-radius: 4px;
  max-height: calc(100vh - 300px);
}
.ftable-wrap--confirm { max-height: none; }
.ftable { border-collapse: separate; border-spacing: 0; table-layout: fixed; font-family: Inter, sans-serif; }
.ftable th, .ftable td { border-right: 1px solid #eaeff7; border-bottom: 1px solid #eaeff7; }
.ftable th:last-child, .ftable td:last-child { border-right: 0; }
.ftable thead th {
  background: #fbfcfe;
  color: #46557a;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 14px;
  text-align: center;
  vertical-align: middle;
  padding: 6px 7px;
}
.ftable thead th.fgroup { background: #f6f9fd; font-weight: 600; font-size: 11px; color: #3f4d6b; }
.ftable tr.fnumrow th { font-weight: 400; color: #7b89a8; font-size: 11px; padding: 3px 0; background: #fbfcfe; }
.ftable .fgutter { width: 46px; background: #fcfdff; text-align: center; padding: 0; }
.ftable thead .fgutter { color: #46557a; font-size: 11px; }
.ftable tbody td { height: 27px; padding: 0 6px; font-size: 12px; color: var(--c-text); vertical-align: middle; }
.ftable tbody tr:hover td { background: #fafcff; }
.ftable tbody tr.is-sel td { background: #f2f8ff; }
.ftable tbody tr[hidden] { display: none; }

.fnum { display: inline-block; font-size: 11.5px; color: #8a97b3; }
.fdel {
  display: none;
  width: 18px;
  height: 18px;
  border: 1px solid #f0c8c8;
  border-radius: 50%;
  background: #fff;
  color: #e5484d;
  padding: 0;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
}
.fdel svg { width: 10px; height: 10px; display: block; }
.ftable tbody tr:hover .fdel { display: inline-flex; }
.ftable tbody td.fgutter { position: relative; }

.fcell {
  min-height: 22px;
  padding: 3px 2px;
  outline: none;
  border-radius: 3px;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 16px;
}
.fcell[contenteditable="true"]:focus { box-shadow: inset 0 0 0 1px #93c5fd; background: #fff; }
.fcell--num { text-align: right; }
.fcell--select { cursor: pointer; }
.fcell--select::after { content: "⌄"; float: right; color: #a8b4c9; font-size: 10px; margin-left: 4px; }

.ftable tfoot td { border-bottom: 0; height: 30px; background: #fcfdff; }
.fadd__btn {
  width: 22px;
  height: 22px;
  border: 1px solid #d7e3fb;
  border-radius: 5px;
  background: #f7faff;
  color: #1a73e8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.fadd__btn:hover { background: #e8f0ff; }
.fadd__btn svg { width: 11px; height: 11px; display: block; }

.ffilter th { padding: 4px 4px; background: #fbfcfe; }
.ffilter__input {
  width: 100%;
  height: 22px;
  border: 1px solid #e0e8f5;
  border-radius: 4px;
  padding: 0 5px;
  font-family: Inter, sans-serif;
  font-size: 11px;
  color: var(--c-text);
  background: #fff;
  outline: none;
}
.ffilter__input:focus { border-color: #93c5fd; }

/* --- подтверждение сведений --- */
.confirm { padding-top: 4px; }
.confirm__note {
  font-family: Inter, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 18px;
  color: var(--c-text);
  max-width: 560px;
  margin: 16px 0 12px;
}
.ctable { width: 100%; border-collapse: collapse; border: 1px solid #e6ebf4; table-layout: fixed; }
.ctable th {
  background: #fbfcfe;
  color: #7b89a8;
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 400;
  height: 22px;
  border-bottom: 1px solid #e6ebf4;
  text-align: center;
}
.ctable td { padding: 6px 8px; border-bottom: 1px solid #eef2f9; font-family: Inter, sans-serif; }
.filechip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 440px;
  padding: 3px 6px 3px 8px;
  border: 1px solid #dbe4f3;
  border-radius: 5px;
  background: #fff;
  font-size: 12px;
  color: var(--c-text);
}
.filechip__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filechip__x { border: 0; background: none; color: #9aa6bd; font-size: 14px; line-height: 1; padding: 0 2px; }
.filechip__x:hover { color: #e5484d; }
.filechip__dl { border: 0; background: none; color: #5b7bb5; padding: 0; width: 16px; height: 16px; }
.filechip__dl svg { width: 15px; height: 15px; display: block; }
.cfile-empty { color: #9aa6bd; font-size: 12px; padding: 2px 0; }
.confirm__actions { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.confirm__upload {
  width: auto;
  height: 40px;
  padding: 0 18px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: #fff;
  color: #262626;
  font-size: 13.5px;
}
.confirm__upload:hover { border-color: #1a73e8; color: #1a73e8; }
.confirm__hint { font-family: Inter, sans-serif; font-size: 11.5px; color: #8a97b3; }

/* ==================== модальные окна формы ==================== */
.overlay--form {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 28, 45, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: auto;
}
.smodal {
  position: relative;
  width: 800px;
  max-width: 100%;
  background: #fff;
  border-radius: 12px;
  padding: 22px 30px 20px;
  box-shadow: 0 12px 44px rgba(16, 24, 40, 0.22);
  max-height: calc(100vh - 48px);
  overflow: auto;
}
.smodal--desc { width: 720px; }
.smodal--auth { width: 460px; padding-bottom: 22px; }
.smodal__lead {
  margin: 0 0 18px;
  font-family: Inter, sans-serif;
  font-size: 13px;
  line-height: 20px;
  color: #6b7c9b;
}
.smodal__close {
  position: absolute;
  right: 18px;
  top: 16px;
  width: 24px;
  height: 24px;
  border: 0;
  background: none;
  padding: 0;
  color: #9aa6bd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.smodal__close svg { width: 18px; height: 18px; display: block; }
.smodal__title {
  margin: 0 0 8px;
  font-family: Inter, sans-serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 26px;
  color: var(--c-text);
}
.smodal__sub {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.smodal__name {
  font-family: Inter, sans-serif;
  font-size: 12px;
  line-height: 16px;
  color: #7c8db0;
  max-width: 520px;
}
.sfield {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 14px;
}
.sfield__label {
  font-family: Inter, sans-serif;
  font-size: 12px;
  color: #7c8db0;
  padding-top: 12px;
}
.sfield--stack { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.sfield--stack .sfield__label { padding-top: 0; }
.sselect { position: relative; }
.sselect__control {
  width: 100%;
  height: 40px;
  border: 1px solid #e2eaf7;
  border-radius: 8px;
  background: #f8fbff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 6px 0 12px;
  font-family: Inter, sans-serif;
  font-size: 13px;
  color: var(--c-text);
}
.sselect.is-open .sselect__control { border-color: #93c5fd; }
.sselect__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sselect__box {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef4ff;
  flex: 0 0 auto;
}
.sselect__box svg { width: 12px; height: 7px; display: block; }
.sselect__menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(28, 50, 96, 0.18);
  padding: 5px;
  z-index: 5;
}
.sselect__opt {
  padding: 8px 10px;
  border-radius: 6px;
  font-family: Inter, sans-serif;
  font-size: 13px;
  color: var(--c-text);
  cursor: pointer;
}
.sselect__opt:hover { background: #f4f7fd; }
.sselect__opt.is-active { background: #eef4ff; color: #1a73e8; }
.stextarea {
  width: 100%;
  min-height: 58px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f8fbff;
  padding: 10px 12px;
  font-family: Inter, sans-serif;
  font-size: 13px;
  line-height: 18px;
  color: var(--c-text);
  resize: vertical;
  outline: none;
}
.stextarea:focus { border-color: #93c5fd; background: #fff; }
.smodal__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 8px;
  border-radius: 10px;
  background: #f8fafd;
}
.smodal__actions--end { justify-content: flex-end; }
.smodal__actions .btn-ghost {
  height: 40px;
  padding: 0 20px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e6ecf7;
  font-family: Inter, sans-serif;
  font-size: 13px;
  color: var(--c-text);
}
.smodal__actions .btn-ghost:hover { border-color: #1a73e8; color: #1a73e8; background: #fff; }
.btn-green {
  height: 40px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  background: #22b974;
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 500;
}
.btn-green:hover { background: #1ea768; }
.shist__toggle {
  margin-top: 16px;
  border: 0;
  background: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: Inter, sans-serif;
  font-size: 12px;
  color: #1a73e8;
}
.shist__caret { display: inline-flex; transition: transform 0.15s ease; }
.shist__caret svg { width: 9px; height: 6px; display: block; }
.shist__toggle.is-open .shist__caret { transform: rotate(180deg); }
.shist { margin-top: 12px; }
.shist__table { width: 100%; border-collapse: collapse; font-family: Inter, sans-serif; }
.shist__table th {
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  color: #7c8db0;
  padding: 6px 8px;
  border-bottom: 1px solid #eaeff7;
  background: #fbfcfe;
}
.shist__table td {
  font-size: 11.5px;
  color: var(--c-text);
  padding: 6px 8px;
  border-bottom: 1px solid #f0f4fa;
  vertical-align: middle;
}
.shist__table .tag { font-size: 10.5px; padding: 1px 8px; }

/* вкладки описания проекта */
.dtabs { display: flex; gap: 22px; border-bottom: 1px solid #e9eef7; margin-bottom: 14px; }
.dtab {
  border: 0;
  background: none;
  padding: 0 0 8px;
  font-family: Inter, sans-serif;
  font-size: 12.5px;
  color: #5b6b8c;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.dtab.is-active { color: #1a73e8; border-bottom-color: #1a73e8; }
.dtext { font-family: Inter, sans-serif; font-size: 12.5px; line-height: 18px; color: #5b6b8c; margin: 0 0 14px; }
.doclist { display: flex; flex-direction: column; gap: 2px; }
.docrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 7px;
  font-family: Inter, sans-serif;
  font-size: 12.5px;
}
.docrow:hover { background: #f6f9fe; }
.docrow__ic { color: #5b7bb5; display: inline-flex; }
.docrow__name { flex: 1 1 auto; color: var(--c-text); }
.docrow__meta { color: #9aa6bd; font-size: 11px; white-space: nowrap; }
.docrow__dl { border: 0; background: none; color: #5b7bb5; padding: 0; display: inline-flex; }
.docrow__dl svg { width: 16px; height: 16px; display: block; }
.reqlist { display: flex; flex-direction: column; }
.reqrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 9px 2px;
  border-bottom: 1px solid #f0f4fa;
  font-family: Inter, sans-serif;
  font-size: 12.5px;
}
.reqrow > span { color: #7c8db0; }
.reqrow > b { color: var(--c-text); font-weight: 500; text-align: right; }
.reqlist--wide .reqrow { padding: 11px 2px; font-size: 13px; }

.verlist { display: flex; flex-direction: column; }
.verrow {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 2px;
  border-bottom: 1px solid #f0f4fa;
  font-family: Inter, sans-serif;
}
.verrow__n { font-size: 12px; font-weight: 600; color: #1a73e8; width: 34px; flex: 0 0 auto; }
.verrow__body { flex: 1 1 auto; min-width: 0; }
.verrow__action { font-size: 12.5px; color: var(--c-text); }
.verrow__meta { font-size: 11px; color: #9aa6bd; margin-top: 2px; }

/* контекстное меню строки */
.rctx {
  position: fixed;
  z-index: 1200;
  min-width: 214px;
  background: #fff;
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 12px 34px rgba(16, 24, 40, 0.2);
}
.rctx__item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: none;
  padding: 7px 10px;
  border-radius: 6px;
  font-family: Inter, sans-serif;
  font-size: 12.5px;
  color: var(--c-text);
  text-align: left;
}
.rctx__item:hover { background: #f4f7fd; }
.rctx__item .ic { color: #5b7bb5; display: inline-flex; }
.rctx__item .ic svg { width: 15px; height: 15px; display: block; }
.rctx__item.is-danger { color: #d4380d; }
.rctx__item.is-danger .ic { color: #d4380d; }

.fselect {
  position: fixed;
  z-index: 1200;
  background: #fff;
  border-radius: 8px;
  padding: 5px;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.2);
  max-height: 260px;
  overflow: auto;
}
.fselect__opt {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  padding: 7px 10px;
  border-radius: 6px;
  font-family: Inter, sans-serif;
  font-size: 12.5px;
  color: var(--c-text);
}
.fselect__opt:hover { background: #f4f7fd; }
.fselect__opt.is-active { background: #eef4ff; color: #1a73e8; }
.fselect__opt[hidden] { display: none; }

/* --- выбор из справочника --- */
.fselect--dict {
  padding: 0;
  display: flex;
  flex-direction: column;
  max-height: 380px;
  overflow: hidden;
  border: 1px solid #e6ecf7;
}
.fselect__head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px 6px;
  font-family: Inter, sans-serif; font-size: 10.5px; font-weight: 600;
  color: #8b98ad; text-transform: uppercase; letter-spacing: .04em;
}
.fselect__count {
  margin-left: auto;
  min-width: 18px; height: 16px; padding: 0 5px;
  border-radius: 8px; background: #eef3fb;
  font-size: 10px; font-weight: 500; color: #6b7f9e;
  display: inline-flex; align-items: center; justify-content: center;
  letter-spacing: 0;
}
.fselect__search {
  margin: 0 8px 6px;
  height: 30px; padding: 0 9px;
  border: 1px solid #e2e9f6; border-radius: 6px;
  font-family: Inter, sans-serif; font-size: 12px; color: var(--c-text);
  outline: none;
}
.fselect__search:focus { border-color: #b9d0f5; box-shadow: 0 0 0 3px rgba(26, 115, 232, .1); }
.fselect__list { padding: 0 5px 5px; overflow: auto; min-height: 0; }
.fselect__opt { display: flex; align-items: baseline; gap: 8px; }
.fselect__val { flex: 1 1 auto; }
.fselect__code {
  font-size: 11px; color: #9aa7bf;
  font-variant-numeric: tabular-nums;
}
.fselect__none, .fselect__empty {
  padding: 10px 8px;
  font-family: Inter, sans-serif; font-size: 11.5px; color: #9aa7bf;
}
.fselect__foot { border-top: 1px solid #eef2f9; padding: 5px; background: #fcfdff; }
.fselect__link {
  display: block; width: 100%; text-align: left;
  border: 0; background: none; padding: 6px 8px; border-radius: 6px;
  font-family: Inter, sans-serif; font-size: 11.5px; color: #1a73e8;
}
.fselect__link:hover { background: #f2f7ff; }
.fselect__link--muted { color: #7c8db0; }
.fcell--dict { cursor: pointer; }
.fcell--dict::after {
  content: "⌄"; float: right; color: #9db8e6; font-size: 10px; margin-left: 4px;
}
.fdict-hint {
  display: flex; align-items: center; gap: 7px;
  margin: 0 0 10px;
  font-family: Inter, sans-serif; font-size: 11.5px; line-height: 16px; color: #7b89a3;
}
.fdict-hint__mark {
  width: 16px; height: 16px; flex: 0 0 auto;
  border-radius: 4px; background: #eef4ff; color: #4a7fd4;
  font-size: 11px; line-height: 16px; text-align: center;
}

/* --- страница справочников --- */
.dict-sec {
  margin: 0 0 8px;
  font-family: Inter, sans-serif; font-size: 10.5px; font-weight: 600;
  color: #8b98ad; text-transform: uppercase; letter-spacing: .04em;
}
.dict-sec + .dict-forms, .dict-sec + .dict-use-row { margin-bottom: 16px; }
.dict-forms { display: flex; flex-wrap: wrap; gap: 6px; }
.dict-form {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 10px;
  border: 1px solid #e4eaf5; border-radius: 7px; background: #fff;
  font-family: Inter, sans-serif; font-size: 11.5px; color: #5b6b88;
}
.dict-form:hover { border-color: #c3d6f2; }
.dict-form.is-on { border-color: #b6d1f5; background: #eff5ff; color: #1a5bb8; }
.dict-form__check {
  width: 14px; height: 14px; flex: 0 0 auto;
  border: 1px solid #cfd9e8; border-radius: 3px; background: #fff;
  font-size: 9px; line-height: 12px; text-align: center; color: #1a73e8;
}
.dict-form.is-on .dict-form__check { border-color: #1a73e8; background: #1a73e8; color: #fff; }
.dict-form__code { color: #9aa7bf; font-variant-numeric: tabular-nums; }
.dict-desc {
  width: 100%; height: 34px; margin: 0 0 10px;
  font-size: 12px;
}
.dict-use-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.dict-use {
  display: inline-flex; align-items: baseline; gap: 5px;
  padding: 4px 9px; border-radius: 6px; background: #f2f6fd;
  font-family: Inter, sans-serif; font-size: 11px; color: #49608f;
}
.dict-use i { font-style: normal; color: #8b98ad; }
.dict-use--empty { background: none; padding-left: 0; color: #9aa7bf; }
.dict-table { width: 100%; border-collapse: collapse; }
.dict-table th, .dict-table td {
  padding: 5px 6px; border-bottom: 1px solid #f1f4fa;
  text-align: left; vertical-align: middle;
}
.dict-table th {
  font-family: Inter, sans-serif; font-size: 10px; font-weight: 500;
  color: #9aa7bf; text-transform: uppercase; letter-spacing: .03em;
  border-bottom: 1px solid #e9eef7;
}
.dict-table .dict-n {
  font-family: Inter, sans-serif; font-size: 11px; color: #9aa7bf; text-align: center;
}
.dict-inp { width: 100%; height: 32px; font-size: 12px; }
.dict-act { text-align: right; }
.dict-none {
  padding: 16px 6px; text-align: center !important;
  font-family: Inter, sans-serif; font-size: 11.5px; color: #9aa7bf;
}
.dict-add { display: flex; gap: 8px; margin-top: 12px; }
.dict-add .input { height: 34px; max-width: 300px; font-size: 12px; }

.ftool-menu {
  position: fixed;
  z-index: 1200;
  min-width: 268px;
  background: #fff;
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 12px 34px rgba(16, 24, 40, 0.2);
}
.ftool-menu__item {
  width: 100%;
  display: block;
  border: 0;
  background: none;
  padding: 9px 12px;
  border-radius: 6px;
  font-family: Inter, sans-serif;
  font-size: 12.5px;
  color: var(--c-text);
  text-align: left;
}
.ftool-menu__item:hover { background: #f4f7fd; }

/* верхний тост */
.toasts--top {
  left: 0;
  right: 0;
  top: 8px;
  bottom: auto;
  align-items: center;
  pointer-events: none;
}
.toast--top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 16px;
  border-radius: 8px;
  border-left: 0;
  background: #fff;
  box-shadow: 0 4px 16px rgba(28, 50, 96, 0.16);
  font-family: Inter, sans-serif;
  font-size: 12.5px;
  color: var(--c-text);
  animation: toastDown 0.2s ease;
}
.toast__ic { width: 15px; height: 15px; display: inline-flex; }
.toast__ic svg { width: 15px; height: 15px; display: block; }
@keyframes toastDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* дополнительные разделы */
.page-title { font-family: Inter, sans-serif; font-size: 19px; font-weight: 600; margin: 18px 0 6px; color: var(--c-text); }
.page-lead { font-family: Inter, sans-serif; font-size: 12.5px; line-height: 18px; color: #7c8db0; margin: 14px 0 16px; max-width: 860px; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 4px 0 18px; }
.info-card { border: 1px solid #e6ebf4; border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.info-card__label { font-family: Inter, sans-serif; font-size: 11.5px; color: #7c8db0; }
.info-card b { font-family: Inter, sans-serif; font-size: 15px; font-weight: 600; color: var(--c-text); }
.info-card b.ok { color: #22b974; }
.table--manage td { font-family: Inter, sans-serif; }
.m-id { font-size: 11.5px; color: #7c8db0; white-space: nowrap; }
.link-btn { border: 0; background: none; padding: 0; color: #1a73e8; font-family: Inter, sans-serif; font-size: 12px; }
.link-btn:hover { text-decoration: underline; }

@media print {
  .topbar, .footer, .form-tools, .ftabs, .ro-banner, .fadd, .fdel, .breadcrumb__home, .overlay { display: none !important; }
  .form-panel { box-shadow: none; padding: 0; }
  .ftable-wrap { overflow: visible; max-height: none; border: 0; }
  body, .page { background: #fff; }
}

/* ---- проекты: расширенная таблица ---- */
.table--projects th:nth-child(2) { width: 82px; }
.table--projects th:nth-child(4) { width: 186px; }
.table--projects th:nth-child(5) { width: 118px; }
.table--projects th:nth-child(6) { width: 186px; }
.table--projects th:nth-child(7) { width: 92px; }
.t-id { font-family: Inter, sans-serif; font-size: 11.5px; color: #7c8db0; white-space: nowrap; }

/* ---- полосы прокрутки таблицы формы ---- */
.ftable-wrap::-webkit-scrollbar { width: 12px; height: 12px; }
.ftable-wrap::-webkit-scrollbar-track { background: #f7fafd; }
.ftable-wrap::-webkit-scrollbar-thumb { background: #d3deef; border-radius: 6px; border: 3px solid #f7fafd; }
.ftable-wrap::-webkit-scrollbar-thumb:hover { background: #b9c8e2; }
.ftable-wrap::-webkit-scrollbar-corner { background: #f7fafd; }

/* запрос на возвращение формы в работу */
.sfield--check { margin-top: -8px; margin-bottom: 12px; }
.scheck {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: Inter, sans-serif;
  font-size: 12.5px;
  color: var(--c-text);
  position: relative;
  padding-top: 2px;
}
.scheck input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.scheck__box {
  width: 16px;
  height: 16px;
  border: 1px solid #cfd9ea;
  border-radius: 3px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.scheck input:checked + .scheck__box { background: #1a73e8; border-color: #1a73e8; }
.scheck input:checked + .scheck__box::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(0, -1px);
}
.btn-danger { background: #e04f5f; }
.btn-danger:hover { background: #cf4152; }

/* таблицы без колонки-чекбокса */
.table--plain thead th:first-child { width: auto; padding-left: 12px; padding-right: 16px; }
.table--plain thead th:last-child { width: auto; padding-right: 12px; }
.table--plain tbody td:first-child { padding-left: 12px; }

/* фильтр по периоду */
.datepop[hidden] { display: none; }
.datepop {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  width: 280px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(28, 50, 96, 0.18);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.datepop__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: Inter, sans-serif;
  font-size: 12px;
  color: #7c8db0;
}
.datepop__row input {
  height: 34px;
  width: 168px;
  border: 1px solid #e4e9f6;
  border-radius: 7px;
  padding: 0 8px;
  font-family: Inter, sans-serif;
  font-size: 12px;
  color: var(--c-text);
  outline: none;
  background: #fbfdff;
}
.datepop__row input:focus { border-color: #93c5fd; background: #fff; }
.datepop__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 2px; }
.datepop__actions .btn-ghost,
.datepop__actions .btn-green { height: 34px; padding: 0 14px; font-size: 12px; border-radius: 7px; }
.datepop__actions .btn-ghost { border: 1px solid #e6ecf7; background: #fff; color: var(--c-text); }

.t-left { font-family: Inter, sans-serif; font-size: 10.5px; color: #22b974; margin-top: 2px; white-space: nowrap; }
.t-left.is-over { color: #e5484d; }

/* =======================================================================
   РОЛИ, ДОСТУП, ПОДРАЗДЕЛЕНИЯ, СОГЛАСОВАНИЕ
   ======================================================================= */

/* --- бейдж роли в шапке --- */
.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  margin-right: 4px;
  border-radius: 14px;
  background: #eef4ff;
  color: #1a4ea8;
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.role-chip__unit { color: #7c8db0; font-weight: 400; }

/* --- заголовок профиля в выпадающем меню --- */
.dd-head {
  padding: 10px 16px 9px;
  border-bottom: 1px solid #eef1f8;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dd-head__name { font-family: Inter, sans-serif; font-size: 12.5px; font-weight: 600; color: var(--c-text); }
.dd-head__role { font-family: Inter, sans-serif; font-size: 11px; color: #1a73e8; }
.dd-head__unit { font-family: Inter, sans-serif; font-size: 11px; color: #7c8db0; }

/* --- 403 --- */
.forbidden {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 84px 20px 96px;
  text-align: center;
}
.forbidden__code { font-family: Inter, sans-serif; font-size: 64px; font-weight: 700; line-height: 1; color: #dbe4f5; }
.forbidden__title { font-family: Inter, sans-serif; font-size: 19px; font-weight: 600; margin: 0; }
.forbidden__text { font-family: Inter, sans-serif; font-size: 12.5px; color: #7c8db0; margin: 0 0 10px; max-width: 520px; line-height: 18px; }

/* --- панель раздела: заголовок + действия --- */
.toolbar--split { align-items: flex-start; }
.toolbar__right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 0;
}
.section-head__title { font-family: Inter, sans-serif; font-size: 17px; font-weight: 600; margin: 0 0 4px; }
.section-head__sub { font-family: Inter, sans-serif; font-size: 12px; color: #7c8db0; margin: 0; }

/* --- статистика --- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 16px 24px 4px; }
.stat-card { border: 1px solid #e6ebf4; border-radius: 10px; padding: 12px 14px; background: #fbfdff; }
.stat-card__label { display: block; font-family: Inter, sans-serif; font-size: 11px; color: #7c8db0; margin-bottom: 4px; }
.stat-card__value { font-family: Inter, sans-serif; font-size: 20px; font-weight: 600; line-height: 1.2; color: var(--c-text); }
.stat-card__value--ok { color: #22b974; }
.stat-card__value--warn { color: #e8a33d; }
.stat-card__value--danger { color: #e5484d; }

/* --- переключатель подразделений на форме --- */
.unitbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-bottom: 1px solid #eef1f8;
  background: #fbfdff;
  overflow-x: auto;
}
.unitbar__label { font-family: Inter, sans-serif; font-size: 11.5px; color: #7c8db0; white-space: nowrap; margin-right: 2px; }
.uchip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 11px;
  border: 1px solid #e3e9f5;
  border-radius: 15px;
  background: #fff;
  font-family: Inter, sans-serif;
  font-size: 11.5px;
  color: var(--c-text);
  white-space: nowrap;
}
.uchip:hover { border-color: #c7d7f2; }
.uchip.is-active { border-color: #1a73e8; background: #eff5ff; color: #1746a0; font-weight: 500; }
.uchip__dot { width: 6px; height: 6px; border-radius: 50%; background: #c3cfe4; flex: 0 0 auto; }
.uchip__dot--approved { background: #22b974; }
.uchip__dot--submitted { background: #e8a33d; }
.uchip__dot--returned { background: #e5484d; }
.uchip__dot--draft { background: #b8c4da; }

/* --- строка состояния заявки + действия --- */
.subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 11px 20px;
  border-bottom: 1px solid #eef1f8;
  background: #f8fbff;
}
.subbar__left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.subbar__right { display: flex; align-items: center; gap: 8px; }
.subbar__hint { font-family: Inter, sans-serif; font-size: 11.5px; color: #7c8db0; }
.subbar__hint b { color: var(--c-text); font-weight: 500; }
.subbar .btn-green, .subbar .btn-ghost, .subbar .btn-danger {
  height: 32px; padding: 0 14px; font-size: 12px; border-radius: 7px;
}
.subbar .btn-ghost { border: 1px solid #e2e8f4; background: #fff; color: var(--c-text); }
.subbar .btn-ghost:hover { border-color: #c7d7f2; }

/* --- прогресс --- */
.progress { display: flex; align-items: center; gap: 8px; min-width: 130px; }
.progress__bar { flex: 1 1 auto; height: 6px; border-radius: 3px; background: #eaeff8; overflow: hidden; }
.progress__fill { height: 100%; border-radius: 3px; background: #22b974; }
.progress__fill--warn { background: #e8a33d; }
.progress__num { font-family: Inter, sans-serif; font-size: 11px; color: #7c8db0; white-space: nowrap; }

/* --- таблицы администрирования --- */
.table--admin td { font-family: Inter, sans-serif; font-size: 12px; vertical-align: middle; }
.table--admin th { font-size: 11px; }
.cell-strong { font-family: Inter, sans-serif; font-size: 12.5px; font-weight: 500; color: var(--c-text); }
.cell-sub { font-family: Inter, sans-serif; font-size: 11px; color: #7c8db0; margin-top: 2px; }
.cell-addr { font-family: Inter, sans-serif; font-size: 11.5px; line-height: 16px; color: #49608f; }
.cell-code { font-family: Inter, sans-serif; font-size: 11.5px; color: var(--c-text); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.cell-actions { display: flex; gap: 12px; align-items: center; }
.cell-actions .link-btn--danger { color: #e5484d; }
.status-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: Inter, sans-serif; font-size: 11px; color: #22b974; white-space: nowrap;
}
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pill--off { color: #9aa7bf; }

/* --- формы в модальных окнах --- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; padding: 4px 0 2px; }
.form-grid--one { grid-template-columns: 1fr; }
.fld { display: flex; flex-direction: column; gap: 5px; }
.fld--full { grid-column: 1 / -1; }
.fld__label { font-family: Inter, sans-serif; font-size: 11.5px; color: #49608f; }
.fld__label .req { color: #e5484d; }
.fld .input, .fld .select, .fld .textarea { height: 38px; }
.fld .textarea { height: 74px; padding: 8px 10px; resize: vertical; }
.fld__hint { font-family: Inter, sans-serif; font-size: 10.5px; color: #9aa7bf; }
.check-line { display: inline-flex; align-items: center; gap: 8px; font-family: Inter, sans-serif; font-size: 12px; color: var(--c-text); cursor: pointer; }
.check-line input { width: 15px; height: 15px; accent-color: #1a73e8; }
.modal--form { width: 620px; max-width: calc(100vw - 40px); }
.modal--form .modal__body { padding: 4px 28px 8px; }
.modal__intro { font-family: Inter, sans-serif; font-size: 12px; line-height: 18px; color: #7c8db0; margin: 0 0 6px; }

/* --- конструктор форм --- */
.dsg-layout { display: grid; grid-template-columns: 268px 1fr; gap: 16px; padding: 16px 24px 28px; align-items: start; }
.dsg-list { border: 1px solid #e6ebf4; border-radius: 10px; overflow: hidden; background: #fff; }
.dsg-list__head { padding: 12px 14px; border-bottom: 1px solid #eef1f8; font-family: Inter, sans-serif; font-size: 12px; font-weight: 600; }
.dsg-item {
  display: flex; flex-direction: column; gap: 2px;
  width: 100%; padding: 11px 14px; border: 0; border-bottom: 1px solid #f1f4fa;
  background: #fff; text-align: left;
}
.dsg-item:hover { background: #f8fbff; }
.dsg-item.is-active { background: #eff5ff; box-shadow: inset 3px 0 0 #1a73e8; }
.dsg-item__name { font-family: Inter, sans-serif; font-size: 12px; color: var(--c-text); line-height: 16px; }
.dsg-item__meta { font-family: Inter, sans-serif; font-size: 10.5px; color: #9aa7bf; }
.dsg-pane { border: 1px solid #e6ebf4; border-radius: 10px; background: #fff; }
.dsg-pane__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #eef1f8; }
.dsg-pane__title { font-family: Inter, sans-serif; font-size: 13px; font-weight: 600; }
.dsg-pane__actions { display: flex; gap: 8px; }
.dsg-pane__actions .btn-green, .dsg-pane__actions .btn-ghost { height: 32px; padding: 0 14px; font-size: 12px; border-radius: 7px; }
.dsg-pane__actions .btn-ghost { border: 1px solid #e2e8f4; background: #fff; color: var(--c-text); }
.dsg-tabs { display: flex; gap: 4px; padding: 10px 16px 0; flex-wrap: wrap; }
.dsg-tab {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 11px; border-radius: 8px 8px 0 0;
  border: 1px solid transparent; border-bottom: 0; background: none;
  font-family: Inter, sans-serif; font-size: 11.5px; color: #7c8db0;
}
.dsg-tab.is-active { background: #f4f8ff; border-color: #e0e9f8; color: var(--c-text); font-weight: 500; }
.dsg-tab__x { color: #b8c4da; font-size: 13px; line-height: 1; }
.dsg-tab__x:hover { color: #e5484d; }
.dsg-body { padding: 12px 16px 18px; border-top: 1px solid #e0e9f8; }
.dsg-cols { display: flex; flex-direction: column; gap: 8px; }
.dsg-col {
  display: grid;
  grid-template-columns: 24px minmax(0, 1.3fr) 96px 56px 44px minmax(0, .85fr) minmax(0, .85fr) 80px;
  gap: 7px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #e9eef7;
  border-radius: 8px;
  background: #fbfdff;
}
.dsg-col__n { font-family: Inter, sans-serif; font-size: 11px; color: #9aa7bf; text-align: center; }
.dsg-col .input, .dsg-col .select { height: 32px; font-size: 12px; padding: 0 8px; min-width: 0; }
.dsg-head-row span { overflow: hidden; text-overflow: ellipsis; }
.dsg-head-row span:nth-child(5) { text-align: center; font-size: 9px; }
.dsg-req { width: 15px; height: 15px; accent-color: #1a73e8; justify-self: center; }
.dsg-col__ops { display: flex; gap: 4px; justify-content: flex-end; }
.dsg-col__btn {
  width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #e3e9f5; border-radius: 6px; background: #fff; color: #49608f;
}
.dsg-col__btn:hover:not(:disabled) { border-color: #c7d7f2; color: #1a73e8; }
.dsg-col__btn:disabled { opacity: .4; cursor: default; }
.dsg-col__btn--danger:hover { border-color: #f3c3c6; color: #e5484d; }
.dsg-col__btn svg { width: 12px; height: 12px; }
.dsg-head-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1.3fr) 96px 56px 44px minmax(0, .85fr) minmax(0, .85fr) 80px;
  gap: 7px; padding: 0 10px 6px; align-items: center;
  font-family: Inter, sans-serif; font-size: 9.5px; color: #9aa7bf; text-transform: uppercase; letter-spacing: .03em;
}
.dsg-preview { margin-top: 16px; }
.dsg-preview__title { font-family: Inter, sans-serif; font-size: 11.5px; color: #7c8db0; margin-bottom: 6px; }
.dsg-preview table { width: 100%; border-collapse: collapse; }
.dsg-preview th, .dsg-preview td {
  border: 1px solid #e9eef7; padding: 6px 8px;
  font-family: Inter, sans-serif; font-size: 11px; color: var(--c-text); text-align: left;
}
.dsg-preview th { background: #f6f9fe; font-weight: 500; color: #49608f; }
.dsg-empty { padding: 18px 16px; font-family: Inter, sans-serif; font-size: 12px; color: #9aa7bf; }
.dsg-dicts {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 8px 16px 0;
  font-family: Inter, sans-serif; font-size: 11px; color: #7c8db0;
}
.dsg-dicts__label { color: #9aa7bf; }
.dsg-dicts__item {
  padding: 3px 8px; border-radius: 6px; background: #f2f6fd;
  color: #49608f; text-decoration: none;
}
.dsg-dicts__item:hover { background: #e8f0fe; color: #1a73e8; }
.dsg-dicts__empty { color: #9aa7bf; }

/* --- реестр согласования --- */
.approve-note {
  margin: 0; padding: 10px 24px 0;
  font-family: Inter, sans-serif; font-size: 11.5px; color: #7c8db0; line-height: 17px;
}
.ret-box { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.ret-box[hidden] { display: none; }

@media (max-width: 1100px) {
  .dsg-layout { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .dsg-col, .dsg-head-row { grid-template-columns: 22px minmax(0, 1fr) 88px 52px 40px minmax(0, .8fr) minmax(0, .8fr) 76px; }
}

/* --- демонстрационные доступы в окне входа --- */
.demo-acc { margin: 4px 0 14px; }
.demo-acc__label {
  display: block;
  font-family: Inter, sans-serif;
  font-size: 10.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #9aa7bf;
  margin-bottom: 7px;
}
.demo-acc__list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.demo-acc__btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 7px 9px;
  border: 1px solid #e4e9f6;
  border-radius: 7px;
  background: #fbfdff;
  text-align: left;
  transition: border-color .15s, background .15s;
}
.demo-acc__btn:hover { border-color: #a9c6f5; background: #f2f7ff; }
.demo-acc__btn b {
  font-family: Inter, sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 13px;
  color: var(--c-text);
}
.demo-acc__btn span { font-family: Inter, sans-serif; font-size: 10px; color: #7c8db0; }

/* статусы отчётных форм подразделений */
.form-status--draft { color: #8a94ad; }
.form-status--submitted { color: #e8a33d; }
.form-status--approved { color: #22b974; }
.form-status--returned { color: #e5484d; }

/* --- модальное окно с формой --- */
.modal--form {
  width: 640px;
  max-width: calc(100vw - 40px);
  border-radius: 12px;
  padding: 24px 0 0;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
}
.modal--form .modal__head { padding: 0 28px 14px; margin: 0; border-bottom: 1px solid #eef1f8; }
.modal--form .modal__body { padding: 16px 28px 4px; overflow-y: auto; }
.modal--form .modal__foot {
  margin: 0;
  padding: 14px 28px;
  border-top: 1px solid #eef1f8;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}
.modal--form .modal__foot .btn-ghost { height: 40px; padding: 0 20px; border: 1px solid #e6ecf7; border-radius: 8px; background: #fff; font-family: Inter, sans-serif; font-size: 13px; color: var(--c-text); }
.modal--form .modal__foot .btn-ghost:hover { border-color: #1a73e8; color: #1a73e8; }
.smodal__actions .btn-danger {
  height: 40px; padding: 0 20px; border: 0; border-radius: 8px;
  color: #fff; font-family: Inter, sans-serif; font-size: 13px;
}
.units-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; max-height: 190px; overflow-y: auto; padding: 2px; }
.units-pick .check-line { font-size: 11.5px; line-height: 16px; align-items: flex-start; }
.units-pick .check-line input { margin-top: 1px; }

/* --- компактные таблицы администрирования --- */
.table--admin td { padding: 12px 12px; }
.table--admin thead th { padding: 10px 12px; }
.table--admin .cell-actions { gap: 6px 12px; flex-wrap: wrap; justify-content: flex-start; }
.table--admin .cell-actions .link-btn { white-space: nowrap; }
.table--admin .status-pill { white-space: nowrap; }

/* фильтры не сжимаются */
.filters > * { flex: 0 0 auto; }

/* --- полоса подразделений: прокручиваемые чипы + фиксированный прогресс --- */
.unitbar { overflow: hidden; }
.unitbar__chips { display: flex; gap: 8px; flex: 1 1 auto; min-width: 0; overflow-x: auto; padding-bottom: 2px; }
.unitbar__chips::-webkit-scrollbar { height: 4px; }
.unitbar__chips::-webkit-scrollbar-thumb { background: #d9e2f0; border-radius: 2px; }
.unitbar__prog { flex: 0 0 auto; width: 168px; }
.unitbar__prog .progress__bar { min-width: 60px; }

/* --- универсальный select --- */
.select {
  width: 100%;
  height: 40px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background-color: #fff;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='12' height='7' viewBox='0 0 12 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 1L6 6L1 1' stroke='%231C3260' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 7px;
  color: var(--c-text);
  font-family: Inter, sans-serif;
  font-size: 13px;
  appearance: none;
  outline: none;
  cursor: pointer;
}
.select:hover { border-color: #c9d5ee; }
.select:focus { border-color: var(--c-blue); }
.progress__fill { display: block; }

/* --- фиксированная раскладка таблиц администрирования --- */
.table--admin { table-layout: fixed; }
.table--admin td, .table--admin th { overflow-wrap: anywhere; }
.table--admin .cell-actions { justify-content: flex-start; }

/* выпадающее меню не выходит за пределы экрана */
.dropdown-panel { max-height: calc(100vh - 120px); overflow-y: auto; }
.dropdown-panel .dd-head { position: sticky; top: 0; background: #fff; z-index: 1; }

/* заголовки админ-таблиц переносятся по словам */
.table--admin thead th { white-space: normal; line-height: 14px; }
.table--admin thead th:first-child { padding-left: 12px; }

/* компактные заголовки админ-таблиц */
.table--admin thead th { font-size: 10.5px; letter-spacing: .01em; }

.modal--form .modal__body { flex: 1 1 auto; min-height: 0; }

/* --------------------------- контрольные проверки --------------------------- */
.checks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 18px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}
.checks-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  background: #fff;
}
.checks-item__dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--c-muted);
}
.checks-item--error { border-color: #f3c9cb; background: #fef6f6; }
.checks-item--error .checks-item__dot { background: #d93025; }
.checks-item--warn { border-color: #f4dfb8; background: #fffbf3; }
.checks-item--warn .checks-item__dot { background: #d98b12; }
.checks-item__text {
  font-size: 12.5px;
  line-height: 17px;
  color: var(--c-text);
}
.checks-item__tab {
  margin-top: 3px;
  font-size: 11px;
  line-height: 15px;
  color: var(--c-muted);
}
.checks-ok {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 18px;
  padding: 14px 14px;
  border: 1px solid #cfe8d5;
  border-radius: 6px;
  background: #f4fbf6;
  font-size: 12.5px;
  color: #256b3a;
}
.checks-ok svg { flex: 0 0 auto; width: 18px; height: 18px; stroke: #2e9e4f; }

/* --------------------------- настройка столбцов --------------------------- */
.cols-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 4px 0 16px;
  max-height: 320px;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
}
.cols-line {
  padding: 7px 8px;
  border-radius: 6px;
}
.cols-line:hover { background: #f5f9ff; }
.cols-line__t { font-size: 12.5px; line-height: 17px; color: var(--c-text); }

/* --------------------------- сброс пароля --------------------------- */
.pwbox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 6px;
  padding: 10px 12px;
  border: 1px dashed #c3d3ef;
  border-radius: 8px;
  background: #f7faff;
}
.pwbox__val {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--c-text);
  user-select: all;
}
.pwbox .btn-ghost { height: 32px; padding: 0 12px; font-size: 12px; background: #fff; border: 1px solid #e6ecf7; border-radius: 6px; }
.input.is-error { border-color: #e5484d; background: #fff6f6; }
.pwflag {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 4px;
  background: #fff4e0;
  color: #b26a00;
  font-size: 9.5px;
  line-height: 15px;
  vertical-align: 1px;
}

/* --------------------------- примечание к разделу формы --------------------------- */
.ftable-note {
  margin: 0 0 10px;
  padding: 8px 12px;
  border-radius: 6px;
  background: #f5f8fd;
  border: 1px solid #e4e9f6;
  font-family: Inter, sans-serif;
  font-size: 11.5px;
  line-height: 16px;
  color: var(--c-muted);
}
.ftable-total {
  margin-top: 8px;
  font-family: Inter, sans-serif;
  font-size: 12px;
  color: var(--c-text);
  text-align: right;
}
.ftable-total b { font-weight: 600; }

/* --------------------------- шапка бланка формы --------------------------- */
.fblank {
  margin: 0 0 12px;
  padding: 14px 16px 12px;
  border: 1px solid #d7e0f0;
  border-radius: 8px;
  background: #fff;
}
.fblank__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.fblank__codes { display: flex; align-items: flex-start; gap: 6px; }
.fblank__code { display: flex; flex-direction: column; gap: 3px; align-items: center; }
.fblank__code b {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  height: 26px;
  padding: 0 8px;
  border: 1px solid #b9c6de;
  border-radius: 3px;
  background: #fbfcff;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--c-text);
}
.fblank__cells { display: flex; }
.fblank__digit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 26px;
  border: 1px solid #b9c6de;
  border-left: 0;
  background: #fbfcff;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text);
}
.fblank__digit:first-child { border-left: 1px solid #b9c6de; border-radius: 3px 0 0 3px; }
.fblank__digit:last-child { border-radius: 0 3px 3px 0; }
.fblank__val {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid #b9c6de;
  border-radius: 3px;
  background: #fbfcff;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--c-text);
  white-space: nowrap;
}
.fblank__code--date .fblank__val { min-width: 112px; letter-spacing: 0.2px; }
.fblank__code i,
.fblank__formcode i,
.fblank__line i {
  font-style: normal;
  font-family: Inter, sans-serif;
  font-size: 9px;
  line-height: 12px;
  color: #6b7c9c;
  text-align: center;
}
.fblank__title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 12px 0 4px;
}
.fblank__title {
  flex: 1;
  text-align: center;
  font-family: Inter, sans-serif;
  font-size: 13px;
  line-height: 17px;
  font-weight: 600;
  color: var(--c-text);
  text-transform: none;
}
.fblank__formcode { display: flex; flex-direction: column; gap: 3px; align-items: center; }
.fblank__formcode b {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid #b9c6de;
  border-radius: 3px;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--c-text);
}
.fblank__line {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 7px;
}
.fblank__line span {
  min-height: 19px;
  padding: 2px 6px 4px;
  border-bottom: 1px solid #b9c6de;
  font-family: Inter, sans-serif;
  font-size: 11.5px;
  color: var(--c-text);
}
.fblank__line--filled span { background: #f1f3f7; border-bottom-color: #a9b7d1; }

/* упрощённая шапка (ИС-01 и подобные) */
.fblank__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.fblank__simple-title {
  font-family: Inter, sans-serif;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  color: var(--c-text);
  max-width: 70%;
}
.fblank__simple-code {
  font-family: Inter, sans-serif;
  font-size: 11.5px;
  color: var(--c-muted);
  white-space: nowrap;
}
.fblank__simple-code b { color: var(--c-text); font-weight: 600; }
.fblank__rows { margin-top: 10px; display: flex; flex-direction: column; gap: 3px; }
.fblank__row { display: flex; gap: 6px; font-family: Inter, sans-serif; font-size: 11.5px; }
.fblank__row-label { color: var(--c-muted); }
.fblank__row-value { color: var(--c-text); font-weight: 500; }

/* --- заглушка раздела (соглашение, инструкция) --- */
.modal--stub {
  width: 440px;
  max-width: calc(100vw - 32px);
  padding: 34px 28px 22px;
  border-radius: 14px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal--stub .modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  color: #8b98ad;
}

.modal--stub .modal__close svg { width: 16px; height: 16px; }

.stub__mark {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-size: 26px;
  font-style: italic;
  color: #1a73e8;
  background: #eaf2ff;
  border: 1px solid #d3e3fb;
  margin-bottom: 16px;
}

.stub__title {
  font-family: Inter, sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #1c3260;
  margin: 0 0 10px;
  line-height: 1.35;
}

.stub__text {
  font-family: Inter, sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: #6b7c9b;
  margin: 0 0 6px;
}

.stub__note {
  font-family: Inter, sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: #9aa7bf;
  margin: 0 0 18px;
}

.modal--stub .modal__foot {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 4px;
  padding: 0;
  border: 0;
}

.modal--stub .btn-green { min-width: 132px; }

/* --- отчёт по форме ИС (И): «Прикреплённые ОО» --- */
.isrep-panel { padding: 16px 24px 26px; }

.isrep { margin-top: 16px; }

.isrep__caption {
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #1c3260;
  margin: 0 0 8px;
}

.isrep__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-family: Inter, sans-serif;
  font-size: 11.5px;
  color: #1c3260;
}

.isrep__table th,
.isrep__table td {
  border: 1px solid #b9c4d6;
  padding: 5px 8px;
  vertical-align: middle;
  line-height: 1.3;
}

.isrep__table thead th {
  background: #eef2f8;
  font-weight: 600;
  text-align: center;
  font-size: 11px;
  color: #33445f;
}

.isrep__head th { height: 92px; }

.isrep__h1 { display: block; font-weight: 600; }
.isrep__h2 { display: block; font-weight: 500; }
.isrep__h3 { display: block; font-weight: 500; }

.isrep__nums td {
  background: #f7f9fc;
  text-align: center;
  font-weight: 600;
  color: #33445f;
  height: 24px;
}

.isrep__msu td { background: #e6ecf5; font-weight: 600; }
.isrep__oo td { font-weight: 500; }
.isrep__more td { color: #8b98ad; font-style: italic; }

.isrep__sub td,
.isrep__total td,
.isrep__grand td {
  background: #f7f9fc;
  font-weight: 600;
}

.isrep__grand td { background: #eef2f8; }

.isrep__num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.isrep__code { color: #4a5b78; }

.isrep__notes {
  margin-top: 12px;
  font-family: Inter, sans-serif;
  font-size: 10.5px;
  line-height: 1.55;
  color: #6b7c9b;
}

.isrep__notes p { margin: 0 0 3px; }

.isrep__empty {
  border: 1px dashed #d3dcea;
  border-radius: 10px;
  padding: 26px;
  text-align: center;
  font-family: Inter, sans-serif;
  font-size: 12.5px;
  color: #8b98ad;
}

@media print {
  .isrep-panel .toolbar, .isrep-panel .page-head { display: none !important; }
}

/* --- обратная связь: список обращений --- */
.fbtabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 14px; }

.fbtab {
  height: 32px;
  padding: 0 12px;
  border: 1px solid #e2e8f4;
  border-radius: 8px;
  background: #fff;
  font-family: Inter, sans-serif;
  font-size: 12px;
  color: #1c3260;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fbtab i { font-style: normal; color: #8b98ad; font-variant-numeric: tabular-nums; }
.fbtab:hover { border-color: #c3d6f2; }
.fbtab.is-active { background: #eff5ff; border-color: #b6d1f5; color: #1a5bb8; }
.fbtab.is-active i { color: #1a5bb8; }

.fblist { display: flex; flex-direction: column; gap: 10px; }

.fbcard {
  border: 1px solid #e4ebf5;
  border-radius: 10px;
  padding: 12px 14px 10px;
  background: #fff;
}

.fbcard__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.fbcard__theme {
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #1c3260;
}

.fbcard__date {
  margin-left: auto;
  font-family: Inter, sans-serif;
  font-size: 11.5px;
  color: #8b98ad;
  font-variant-numeric: tabular-nums;
}

.fbcard__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-family: Inter, sans-serif;
  font-size: 11.5px;
  color: #6b7c9b;
}

.fbcard__who { color: #33445f; font-weight: 500; }
.fbcard__mail { color: #1a73e8; text-decoration: none; }
.fbcard__mail:hover { text-decoration: underline; }

.fbtag {
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 6px;
  background: #eef2f8;
  color: #6b7c9b;
}

.fbtag--ok { background: #e8f7ee; color: #1a7f45; }
.fbtag--err { background: #fdecec; color: #c0392b; }

.fbcard__text {
  margin: 8px 0 0;
  font-family: Inter, sans-serif;
  font-size: 12.5px;
  line-height: 1.5;
  color: #33445f;
  white-space: pre-wrap;
}

.fbcard__reply {
  margin-top: 8px;
  padding: 8px 10px;
  border-left: 2px solid #b6d1f5;
  background: #f7faff;
  border-radius: 0 6px 6px 0;
  font-family: Inter, sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: #33445f;
}

.fbcard__reply b { font-weight: 600; }

.fbcard__actions {
  display: flex;
  gap: 14px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid #f0f4fa;
}

.smodal--fb { width: 600px; max-width: calc(100vw - 32px); }

.fbdialog__text {
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid #e9eef7;
  border-radius: 8px;
  background: #fbfdff;
  font-family: Inter, sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: #1c3260;
  white-space: pre-wrap;
  max-height: 220px;
  overflow-y: auto;
}

.fbdialog__file {
  margin-top: 8px;
  font-family: Inter, sans-serif;
  font-size: 11.5px;
  color: #6b7c9b;
}

/* вложение обращения */
.fbfile {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 5px 10px 5px 8px;
  border: 1px solid #d9e2f0;
  border-radius: 8px;
  background: #f6f9ff;
  font-family: Inter, sans-serif;
  font-size: 12px;
  color: #2f4d7d;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
a.fbfile:hover { border-color: #9fb8dd; background: #eef4ff; text-decoration: none; }
.fbfile__ic { display: inline-flex; color: #5f7ca8; flex: none; }
.fbfile__name {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.fbfile__size { color: #8a9bb8; font-size: 11px; white-space: nowrap; }
.fbfile--dead {
  border-style: dashed;
  border-color: #e2e6ee;
  background: #fafbfd;
  color: #93a0b5;
  cursor: default;
}
.fbcard__file { margin: 0 0 10px; }

.fbdialog__reply {
  margin-top: 10px;
  padding: 10px 12px;
  border-left: 2px solid #9ec5f5;
  background: #f5f9ff;
  border-radius: 0 8px 8px 0;
}

.fbdialog__reply span {
  display: block;
  font-family: Inter, sans-serif;
  font-size: 10.5px;
  color: #8b98ad;
  margin-bottom: 4px;
}

.fbdialog__reply p {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: 12.5px;
  line-height: 1.5;
  color: #1c3260;
  white-space: pre-wrap;
}

/* ------------------------- импорт из Excel / CSV ------------------------- */
.smodal--import { width: 820px; }
.imp-count {
  margin-left: auto;
  font-family: Inter, sans-serif;
  font-size: 12px;
  color: #7c8db0;
}
.imp-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 14px;
  font-family: Inter, sans-serif;
  font-size: 13px;
  color: #1c3260;
  cursor: pointer;
}
.imp-map {
  border: 1px solid #e6ecf6;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}
.imp-map__head,
.imp-map__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: center;
  padding: 9px 14px;
}
.imp-map__head {
  background: #f5f8fe;
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #7c8db0;
}
.imp-map__row + .imp-map__row { border-top: 1px solid #eef2f9; }
.imp-map__name {
  font-family: Inter, sans-serif;
  font-size: 13px;
  color: #1c3260;
}
.imp-map__name .req { color: #e2557a; }
.imp-preview__title {
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #7c8db0;
  margin-bottom: 8px;
}
.imp-preview__wrap {
  overflow: auto;
  border: 1px solid #e6ecf6;
  border-radius: 10px;
  max-height: 240px;
}
.imp-preview__wrap table {
  width: 100%;
  border-collapse: collapse;
  font-family: Inter, sans-serif;
  font-size: 12px;
}
.imp-preview__wrap th {
  position: sticky;
  top: 0;
  background: #f5f8fe;
  text-align: left;
  font-weight: 600;
  color: #40567c;
  padding: 8px 12px;
  border-bottom: 1px solid #e6ecf6;
  white-space: nowrap;
}
.imp-preview__wrap td {
  padding: 7px 12px;
  border-bottom: 1px solid #f0f4fa;
  color: #1c3260;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ------------------------- почта и уведомления ------------------------- */
.mail-wrap { padding: 4px 24px 28px; }
.mail-loading, .mail-empty {
  font-family: Inter, sans-serif; font-size: 13px; color: #7c8db0; padding: 28px 4px;
}
.mail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.mail-card {
  border: 1px solid #e6ecf6; border-radius: 10px; padding: 16px 18px; background: #fff;
}
.mail-card--wide { margin-bottom: 16px; }
.mail-card__t {
  font-family: Inter, sans-serif; font-size: 13px; font-weight: 600; color: #1c3260;
  margin-bottom: 12px;
}
.mail-card__t b { font-weight: 600; color: #2f6bd8; }
.mail-muted { font-weight: 400; color: #9aa8c0; font-size: 11px; margin-left: 6px; }
.mail-kv {
  display: flex; justify-content: space-between; gap: 12px; padding: 5px 0;
  font-family: Inter, sans-serif; font-size: 12.5px; color: #6b7c9b;
  border-bottom: 1px solid #f2f5fa;
}
.mail-kv:last-child { border-bottom: 0; }
.mail-kv b { color: #1c3260; font-weight: 600; text-align: right; word-break: break-all; }
.mail-on { color: #12996b !important; }
.mail-off { color: #e2557a !important; }
.mail-meter {
  height: 8px; border-radius: 6px; background: #eef2f9; overflow: hidden; margin: 4px 0 12px;
}
.mail-meter__fill { height: 100%; background: linear-gradient(90deg, #2f6bd8, #4d8df0); }
.mail-hint {
  margin: 10px 0 0; font-family: Inter, sans-serif; font-size: 11.5px;
  line-height: 1.5; color: #8a99b3;
}
.mail-test-row { display: flex; gap: 10px; align-items: center; }
.mail-test-row .input { flex: 1; max-width: 380px; }
.mail-test-result {
  margin-top: 10px; font-family: Inter, sans-serif; font-size: 12px; min-height: 16px;
}
.mail-log { border: 1px solid #e6ecf6; border-radius: 8px; overflow: hidden; }
.mail-log__head, .mail-log__row {
  display: grid; grid-template-columns: 140px 200px minmax(0, 1fr) 110px 120px;
  gap: 12px; align-items: center; padding: 8px 12px;
  font-family: Inter, sans-serif; font-size: 11.5px;
}
.mail-log__head {
  background: #f5f8fe; color: #7c8db0; font-weight: 600; text-transform: uppercase;
  letter-spacing: .02em; font-size: 10.5px;
}
.mail-log__row { color: #1c3260; border-top: 1px solid #f0f4fa; }
.mail-log__row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-dns { display: flex; flex-direction: column; gap: 10px; }
.mail-dns__row { border: 1px solid #e6ecf6; border-radius: 8px; padding: 10px 12px; }
.mail-dns__top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.mail-dns__type {
  font-family: Inter, sans-serif; font-size: 10px; font-weight: 700; color: #2f6bd8;
  background: #edf3ff; border-radius: 4px; padding: 2px 6px;
}
.mail-dns__name { font-family: Inter, sans-serif; font-size: 12.5px; font-weight: 600; color: #1c3260; }
.mail-dns__copy {
  margin-left: auto; font-family: Inter, sans-serif; font-size: 11px; color: #2f6bd8;
  background: none; border: 0; cursor: pointer; padding: 2px 4px;
}
.mail-dns__copy:hover { text-decoration: underline; }
.mail-dns__value {
  font-family: Consolas, "Courier New", monospace; font-size: 11.5px; color: #33415c;
  background: #f5f8fe; border-radius: 5px; padding: 7px 9px; word-break: break-all;
}
.mail-dns__note {
  margin-top: 5px; font-family: Inter, sans-serif; font-size: 11px; color: #8a99b3;
}
@media (max-width: 1100px) {
  .mail-grid { grid-template-columns: 1fr; }
  .mail-log__head, .mail-log__row { grid-template-columns: 110px 150px minmax(0,1fr) 90px; }
  .mail-log__head span:nth-child(4), .mail-log__row span:nth-child(4) { display: none; }
}

/* ---------------------- витрина данных ЕИС ---------------------- */

.eis-bar {
  display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap;
  padding: 14px 16px; margin: 0 0 16px;
  background: #f6f9ff; border: 1px solid #e2ebf7; border-radius: 10px;
}
.eis-bar__field { display: flex; flex-direction: column; gap: 5px; }
.eis-bar__hint {
  font-family: Inter, sans-serif; font-size: 11.5px; color: #7b8aa6;
  flex: 1 1 260px; min-width: 200px;
}
.eis-bar__hint b { color: #33445f; font-weight: 600; }

.eis-actions {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid #eef2f8;
}
.eis-actions__note {
  font-family: Inter, sans-serif; font-size: 11.5px; color: #8a99b3;
  flex: 1 1 320px;
}

.table .cell-cbx, .cell-cbx { width: 38px; text-align: center; }
.cbx { width: 15px; height: 15px; accent-color: #1f7a4d; cursor: pointer; }

@media (max-width: 900px) {
  .eis-bar { flex-direction: column; align-items: stretch; }
}

/* ---------------------- вход через ЕИС ---------------------- */

.eis-login {
  margin: 4px 0 0; padding: 14px 0 0; border-top: 1px solid #eef2f8;
  text-align: center;
}
.eis-login__or {
  display: block; font-family: Inter, sans-serif; font-size: 11px;
  color: #9aa8c0; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px;
}
.btn-eis {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 18px; border-radius: 10px; border: 1px solid #d7e3f4;
  background: #f6f9ff; color: #22314a; text-decoration: none;
  font-family: Inter, sans-serif; font-size: 13.5px; font-weight: 500;
  transition: background .15s ease, border-color .15s ease;
}
.btn-eis:hover { background: #eaf2ff; border-color: #b9cfee; }
.btn-eis__mark {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 22px; padding: 0 6px; border-radius: 6px;
  background: #1f7a4d; color: #fff; font-size: 10.5px; font-weight: 700;
  letter-spacing: .04em;
}
.eis-login__hint {
  margin: 8px 0 0; font-family: Inter, sans-serif; font-size: 11px; color: #9aa8c0;
}
