@charset "UTF-8";
/* Wireframe styles — цифровая платформа парковки.
 * Точка входа SCSS: собирает partials.
 */
:root {
  --wf-border: 1px solid #333;
  --wf-bg: #f5f5f5;
  --wf-block: #e0e0e0;
  --wf-text: #1a1a1a;
  --wf-muted: #666;
  --wf-pad: 1rem;
  --wf-gap: 0.75rem;
}

/* Wireframe styles — цифровая платформа парковки.
 * Точка входа SCSS: собирает partials.
 */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: var(--wf-text);
  background: var(--wf-bg);
}

/* Layout */
.wf-page {
  max-width: 960px;
  margin: 0 auto;
  padding: var(--wf-pad);
}

/* Header */
header[role=banner],
.wf-header {
  border: var(--wf-border);
  background: var(--wf-block);
  padding: var(--wf-pad);
  margin-bottom: var(--wf-gap);
}

.wf-header h1 {
  margin: 0 0 0.5em 0;
  font-size: 1.25rem;
}

/* Nav */
nav,
.wf-nav {
  border: var(--wf-border);
  background: #fff;
  padding: var(--wf-pad);
  margin-bottom: var(--wf-gap);
}

.wf-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em 1em;
}

.wf-nav a {
  color: var(--wf-text);
  text-decoration: underline;
}

.wf-nav a:hover {
  color: var(--wf-muted);
}

.wf-nav a[aria-current=page] {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--wf-text);
}

/* Main */
main,
.wf-main {
  border: var(--wf-border);
  background: #fff;
  padding: var(--wf-pad);
  margin-bottom: var(--wf-gap);
}

.wf-main h2 {
  margin: 0 0 0.5em 0;
  font-size: 1.1rem;
}

/* Sections */
section,
.wf-section {
  border: var(--wf-border);
  background: var(--wf-block);
  padding: var(--wf-pad);
  margin-bottom: var(--wf-gap);
}

.wf-section:last-child {
  margin-bottom: 0;
}

.wf-section--no-bg {
  background: transparent;
  border: none;
}

/* Muted text */
.wf-muted {
  color: var(--wf-muted);
  font-size: 0.9em;
}

/* Breadcrumb / context */
.wf-context {
  margin-bottom: var(--wf-gap);
  font-size: 0.9em;
  color: var(--wf-muted);
}

.wf-context a {
  color: var(--wf-text);
  text-decoration: underline;
}

/* Footer — служебные ссылки (не акцентировать) */
.wf-footer {
  margin-top: var(--wf-gap);
  padding: var(--wf-pad) 0;
  border-top: 1px solid #ddd;
  font-size: 0.8rem;
  color: var(--wf-muted);
}

.wf-footer__service a {
  color: var(--wf-muted);
  text-decoration: none;
}

.wf-footer__service a:hover {
  text-decoration: underline;
  color: var(--wf-text);
}

.wf-footer__version-toggle {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: center;
}

.wf-footer__version-label {
  opacity: 0.9;
}

.wf-link-button {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.wf-link-button[aria-pressed=true] {
  font-weight: 600;
  text-decoration: none;
}

/* WF-05: Skip link — скрыт по умолчанию, виден при фокусе */
.wf-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 0.5em 1em;
  background: var(--wf-block);
  border: var(--wf-border);
  color: var(--wf-text);
  text-decoration: underline;
  font-size: 1rem;
}

.wf-skip-link:focus {
  left: var(--wf-pad);
  top: var(--wf-pad);
}

/* WF-06: Видимое состояние фокуса для доступности */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #333;
  outline-offset: 2px;
}

/* FAQ: список вопросов и ответов */
.wf-faq {
  margin: 0 0 1rem 0;
}

.wf-faq dt {
  font-weight: 600;
  margin-top: 0.75rem;
}

.wf-faq dt:first-child {
  margin-top: 0;
}

.wf-faq dd {
  margin: 0.25rem 0 0 0;
  padding-left: 0;
  color: var(--wf-muted, #555);
}

/* Wireframe styles — цифровая платформа парковки.
 * Точка входа SCSS: собирает partials.
 */
/* Forms */
form,
.wf-form {
  max-width: 28rem;
}

.wf-field {
  margin-bottom: var(--wf-gap);
}

.wf-field--inline-control {
  margin-bottom: var(--wf-gap);
}

.wf-field--inline-control .wf-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wf-field--inline-control .wf-inline input[type=tel],
.wf-field--inline-control .wf-inline input[type=email],
.wf-field--inline-control .wf-inline input[type=date],
.wf-field--inline-control .wf-inline select {
  flex: 1 1 auto;
}

.wf-field--inline-control .wf-inline .wf-btn-link {
  padding: 0.35em 0.75em;
  border: var(--wf-border);
  background: var(--wf-block);
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.wf-field--inline-control .wf-inline .wf-btn-link:hover {
  background: #ccc;
}

.sessions-filters {
  margin-bottom: var(--wf-gap);
  min-width: 0;
  overflow: hidden;
}

.sessions-filters .filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem 1rem;
  min-width: 0;
}

.sessions-filters .wf-field {
  margin-bottom: 0;
  flex: 1 1 8rem;
  min-width: 0;
  max-width: 100%;
}

.sessions-filters .wf-field label {
  margin-bottom: 0.15em;
  font-size: 0.9em;
}

.sessions-filters input[type=date],
.sessions-filters select {
  width: 100%;
  max-width: 12rem;
  min-width: 0;
  padding: 0.3em 0.4em;
  box-sizing: border-box;
}

.sessions-filters input[type=text] {
  width: 100%;
  max-width: 14rem;
  min-width: 0;
  box-sizing: border-box;
}

.sessions-filters #log-plate {
  min-width: 12rem;
}

.sessions-filters .filter-actions {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  flex: 0 0 auto;
  min-width: 0;
}

/* Мобильная адаптация фильтров (страницы ЛК клиента) */
@media (max-width: 640px) {
  .sessions-filters .filters-row {
    flex-wrap: wrap;
    align-items: stretch;
  }
  .sessions-filters .wf-field,
  .sessions-filters .filter-actions {
    flex: 1 1 100%;
  }
  .sessions-filters input[type=date],
  .sessions-filters select,
  .sessions-filters input[type=text] {
    width: 100%;
    min-width: 0;
  }
}
/* Принудительный мобильный режим по переключателю ЛК */
body[data-view=mobile] .sessions-filters .filters-row {
  flex-wrap: wrap;
  align-items: stretch;
}
body[data-view=mobile] .sessions-filters .wf-field,
body[data-view=mobile] .sessions-filters .filter-actions {
  flex: 1 1 100%;
}
body[data-view=mobile] .sessions-filters input[type=date],
body[data-view=mobile] .sessions-filters select,
body[data-view=mobile] .sessions-filters input[type=text] {
  width: 100%;
  min-width: 0;
}

.sessions-filters .filter-actions button {
  padding: 0.35em 0.6em;
}

/* Фильтры реестра задолженностей — поля в одну строку,
 * кнопки «Применить / Сбросить» — на отдельной строке под ними. */
.debts-filters .filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem 0.75rem;
  min-width: 0;
}

/* Базовая ширина полей в реестре задолженностей */
.debts-filters .wf-field {
  flex: 1 1 0;
  min-width: 6rem;
  max-width: 10rem;
}

/* Поле «Клиент / договор» (ФИО) — заметно шире остальных */
.debts-filters .filters-row > .wf-field:first-child {
  flex: 2.4 1 0;
  min-width: 14rem;
  max-width: 24rem;
}

.debts-filters .wf-field input[type=text],
.debts-filters .wf-field input[type=number],
.debts-filters .wf-field select {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Блок «Сумма, ₽ (от/до)» — расширенный */
.debts-filters .wf-field--inline-control {
  flex: 2 1 0;
  min-width: 14rem;
  max-width: 24rem;
}

.debts-filters .wf-field--inline-control .wf-inline {
  display: flex;
  gap: 0.35rem;
}

.debts-filters .wf-field--inline-control .wf-inline input {
  flex: 1 1 6rem;
  min-width: 0;
}

.debts-filters .filter-actions {
  display: flex;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-top: 0.35rem;
  width: 100%;
}

/* На узких экранах — перенос в несколько строк */
@media (max-width: 900px) {
  .debts-filters .filters-row {
    flex-wrap: wrap;
  }
  .debts-filters .wf-field {
    flex: 1 1 10rem;
    max-width: none;
  }
  .debts-filters .filter-actions {
    flex: 1 1 100%;
  }
}
/* Фильтры реестра бронирований: поля в одну строку, кнопки — на следующей по левому краю */
.bookings-filters .filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1.25rem;
  min-width: 0;
}

.bookings-filters .wf-field {
  flex: 1 1 0;
  min-width: 5rem;
  max-width: 14rem;
}

/* Чтобы поля (в т.ч. Статус) не вылезали за контейнер */
.bookings-filters .wf-field input[type=text],
.bookings-filters .wf-field input[type=date],
.bookings-filters .wf-field select {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.bookings-filters .filter-actions {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
}

.wf-field label {
  display: block;
  margin-bottom: 0.25em;
  font-weight: 500;
}

.wf-field input,
.wf-field select,
.wf-field textarea {
  width: 100%;
  padding: 0.4em 0.5em;
  border: var(--wf-border);
  font-size: 1rem;
}

/* Чекбокс слева, текст справа */
.wf-field--checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 0.5em;
  cursor: pointer;
  font-weight: normal;
}

.wf-field--checkbox input[type=checkbox] {
  width: auto;
  flex-shrink: 0;
  margin-top: 0.2em;
}

.wf-notice {
  margin: 0 0 0.5em 0;
  font-size: 0.9em;
  color: var(--wf-muted);
}

.wf-notice strong {
  color: var(--wf-text);
}

.wf-notice a {
  text-decoration: underline;
}

.wf-actions {
  margin-top: 1rem;
}

button,
.wf-btn,
input[type=submit] {
  padding: 0.5em 1em;
  border: var(--wf-border);
  background: var(--wf-block);
  font-size: 1rem;
  cursor: pointer;
  margin-right: 0.5em;
  margin-bottom: 0.5em;
}

button:hover,
.wf-btn:hover {
  background: #ccc;
}

/* Links as buttons */
a.wf-btn {
  display: inline-block;
  text-decoration: none;
  color: inherit;
}

/* WF-07: Блок сообщений об ошибках */
.wf-error {
  margin-bottom: var(--wf-gap);
  padding: 0.5em;
  border: 1px solid #a00;
  background: #ffe0e0;
  color: #800;
  font-size: 0.95em;
}

.wf-error:empty,
.wf-error[aria-hidden=true] {
  display: none;
}

.wf-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.wf-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  font-weight: normal;
}

/* Wireframe styles — цифровая платформа парковки.
 * Точка входа SCSS: собирает partials.
 */
/* Modal (generic) */
.wf-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
}

.wf-modal:target {
  display: flex;
}

.wf-modal__dialog {
  background: #fff;
  border: var(--wf-border);
  max-width: 32rem;
  width: 100%;
  padding: var(--wf-pad);
}

.wf-modal__dialog--form,
.wf-modal__dialog--wide {
  padding: 0;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.wf-modal__dialog--form {
  max-width: 36rem;
}

.wf-modal__dialog--wide {
  max-width: 42rem;
}

.wf-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.wf-modal__dialog--form > .wf-modal__header,
.wf-modal__dialog--wide > .wf-modal__header {
  padding: var(--wf-pad);
  border-bottom: var(--wf-border);
  margin-bottom: 0;
  flex-shrink: 0;
  align-items: flex-start;
}

.wf-modal__title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.wf-modal__title {
  margin: 0;
  font-size: 1.15rem;
}

.wf-modal__close {
  font-size: 0.9rem;
  flex-shrink: 0;
}

.wf-modal__body {
  padding: var(--wf-pad);
  overflow-y: auto;
  flex: 1 1 auto;
}

.wf-modal__footer {
  padding: var(--wf-pad);
  border-top: var(--wf-border);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex-shrink: 0;
  justify-content: center;
}

.wf-modal__notice {
  margin-top: 0.5rem;
  font-size: 0.9em;
}

/* Мобильная адаптация модальных окон */
@media (max-width: 640px) {
  .wf-modal__dialog {
    max-width: 26rem;
    width: 100%;
  }
}
body[data-view=mobile] .wf-modal__dialog {
  max-width: 26rem;
  width: 100%;
}

/* Primary button (wireframe: выделение только контрастом) */
.wf-btn--primary {
  background: var(--wf-block);
  font-weight: 600;
}

/* Required field marker */
.wf-required {
  font-weight: 600;
}

.wf-hint {
  display: block;
  font-size: 0.85em;
  color: var(--wf-muted);
  margin-top: 0.2em;
}

/* Fieldset for context choice */
.wf-fieldset {
  border: var(--wf-border);
  padding: var(--wf-pad);
  margin: 0 0 var(--wf-gap) 0;
}

.wf-fieldset__legend,
.wf-legend {
  font-weight: 600;
  padding: 0 0.25em;
}

.wf-field--radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.wf-radio {
  display: flex;
  align-items: center;
  gap: 0.5em;
  cursor: pointer;
  font-weight: normal;
}

.wf-radio input {
  width: auto;
}

.wf-file-list {
  list-style: none;
  padding: 0;
  margin: 0.25em 0 0 0;
  font-size: 0.9em;
}

/* Badge (status) — wireframe: только граница и фон из токенов */
.wf-badge {
  display: inline-block;
  padding: 0.2em 0.5em;
  font-size: 0.8em;
  font-weight: 500;
  border: var(--wf-border);
  background: var(--wf-bg);
  white-space: nowrap;
}

.wf-badge--new,
.wf-badge--in-progress,
.wf-badge--closed {
  background: var(--wf-bg);
  border: var(--wf-border);
  color: var(--wf-text);
}

/* Appeal details: summary */
.wf-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25em 1.5em;
  margin: 0 0 var(--wf-gap) 0;
  font-size: 0.95em;
}

.wf-summary dt {
  color: var(--wf-muted);
}

.wf-summary dd {
  margin: 0;
}

/* Appeal context block */
.wf-appeal-context {
  margin-bottom: var(--wf-gap);
  padding: 0.75rem;
  border: var(--wf-border);
  background: var(--wf-bg);
}

.wf-appeal-context__title,
.wf-appeal-original__title,
.wf-appeal-reply__title {
  margin: 0 0 0.35em 0;
  font-size: 0.95em;
  font-weight: 600;
}

.wf-appeal-original,
.wf-appeal-original__title,
.wf-appeal-original__text {
  text-align: left;
}

.wf-appeal-original__text {
  margin: 0 0 0.5em 0;
  padding: 0.5em 0;
  white-space: pre-wrap;
}

/* Timeline (messages) */
.wf-appeal-timeline {
  margin: var(--wf-gap) 0;
  padding: 0;
  list-style: none;
}

.wf-timeline-item {
  margin-bottom: var(--wf-gap);
  padding: 0.75rem;
  border: var(--wf-border);
}

.wf-timeline-item--client {
  background: #fff;
}

.wf-timeline-item--support {
  background: var(--wf-bg);
}

.wf-timeline-item__meta {
  margin-bottom: 0.35em;
  font-size: 0.9em;
  color: var(--wf-muted);
}

.wf-timeline-item__author {
  font-weight: 500;
  color: var(--wf-text);
}

.wf-timeline-item__time {
  margin-left: 0.5em;
}

.wf-timeline-item__body {
  font-size: 0.95em;
}

.wf-timeline-item__body a {
  text-decoration: underline;
}

/* Reply form */
.wf-appeal-reply {
  margin-top: var(--wf-gap);
  padding-top: var(--wf-gap);
  border-top: var(--wf-border);
}

.wf-appeal-reply-form .wf-actions {
  margin-bottom: 0;
  text-align: center;
}

/* Appeals list on page */
.wf-appeals-list__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.wf-appeals-list__main {
  flex: 1 1 12rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Center actions inside any modal */
.wf-modal .wf-actions {
  text-align: center;
}

/* Wireframe styles — цифровая платформа парковки.
 * Точка входа SCSS: собирает partials.
 */
/* Lists */
.wf-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: var(--wf-border);
}

.wf-list li {
  padding: 0.5em var(--wf-pad);
  border-bottom: var(--wf-border);
  background: #fff;
}

.wf-list li:last-child {
  border-bottom: none;
}

.wf-list--compact li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.25em var(--wf-pad);
}

.wf-list--compact button {
  margin: 0;
}

.wf-notification {
  border-left: 4px solid transparent;
}

.wf-notification--unread {
  border-left-color: #e0a800;
  background: #fff9d9;
  font-weight: 600;
}

.wf-notification--read {
  border-left-color: #ccc;
  background: #ffffff;
}

.wf-notification__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.wf-notification__link:hover {
  text-decoration: underline;
}

/* Dashboard blocks */
.wf-grid {
  display: grid;
  gap: var(--wf-gap);
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.wf-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.wf-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.wf-card {
  border: var(--wf-border);
  background: var(--wf-block);
  padding: var(--wf-pad);
}

/* Карточка с акцентом — долг к оплате (2.2) */
.wf-card--attention {
  border: 2px solid #a00;
  background: #fff5f5;
}

.wf-badge--attention {
  background: #a00;
  color: #fff;
  border-color: #800;
}

/* Секция выхода (2.1) */
.wf-section--logout {
  padding-top: 0.5rem;
  border: none;
  background: transparent;
}

/* Вторичная кнопка */
.wf-btn-secondary,
a.wf-btn-secondary {
  background: var(--wf-bg);
  border-color: var(--wf-muted);
  color: var(--wf-text);
}

.wf-btn-secondary:hover,
a.wf-btn-secondary:hover {
  background: var(--wf-muted);
  color: #fff;
}

/* Details/summary — сворачиваемый блок (2.3) */
.wf-details {
  border: var(--wf-border);
  background: var(--wf-block);
  padding: 0;
  margin-bottom: var(--wf-gap);
}

.wf-details__summary {
  padding: var(--wf-pad);
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.wf-details__summary::-webkit-details-marker {
  display: none;
}
.wf-details__summary::before {
  content: "▶ ";
  font-size: 0.7em;
  vertical-align: 0.05em;
}

.wf-details[open] .wf-details__summary::before {
  content: "▼ ";
}

.wf-details__content {
  padding: 0 var(--wf-pad) var(--wf-pad);
  border-top: var(--wf-border);
}

/* Table placeholder; 6.2: скролл на узких экранах */
.wf-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: var(--wf-border);
}

@media (max-width: 640px) {
  .wf-table-wrap {
    margin-bottom: 0.25rem;
  }
}
/* 6.1: зона нажатия для кнопок/ссылок в таблицах (мобильные) */
.wf-table td .wf-btn,
.wf-table td a.wf-btn {
  min-height: 44px;
  padding: 0.35em 0.75em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.wf-filters {
  margin-bottom: var(--wf-gap);
}

.contracts-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.wf-table {
  width: 100%;
  border-collapse: collapse;
}

.wf-table th,
.wf-table td {
  padding: 0.4em 0.6em;
  border: var(--wf-border);
  text-align: left;
}

.wf-table th {
  background: var(--wf-block);
}

/* Карта парковки по Схема парковки AS-IS.md */
.wf-parking-map {
  border: var(--wf-border);
  background: #fff;
  padding: var(--wf-pad);
  font-size: 0.9rem;
}

.wf-parking-map__kpp {
  background: var(--wf-block);
  border: 2px solid #333;
  padding: 0.5em 1em;
  text-align: center;
  margin: 0 auto;
  max-width: 16rem;
}

.wf-parking-map__zones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--wf-gap);
  margin: var(--wf-gap) 0;
}

.wf-parking-map__column {
  display: flex;
  flex-direction: column;
  gap: var(--wf-gap);
}

.wf-parking-map__zone {
  border: var(--wf-border);
  padding: 0.5em var(--wf-pad);
  background: #fafafa;
}

.wf-parking-map__zone-title {
  font-weight: 600;
  margin: 0 0 0.25em 0;
}

.wf-parking-map__zone-meta {
  color: var(--wf-muted);
  font-size: 0.85em;
  margin: 0;
}

.wf-parking-map--compact .wf-parking-map__zone {
  padding: 0.35em 0.5em;
  font-size: 0.85rem;
}

.wf-parking-map__legend {
  margin-top: var(--wf-gap);
  padding-top: var(--wf-gap);
  border-top: var(--wf-border);
  font-size: 0.85em;
  color: var(--wf-muted);
}

.wf-parking-map__legend span {
  margin-right: 1em;
}

.wf-parking-map__total {
  margin-top: 0.5em;
  font-weight: 600;
}

/* Уведомления на дашборде (иконка колокольчика) */
.wf-notification-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-start;
  margin: 0 0 0.75rem 0;
  font-size: 0.9rem;
  color: var(--wf-muted);
}

.wf-notification-summary__icon {
  font-size: 1.1rem;
}

/* Шапка ЛК клиента с уведомлениями */
.wf-header--lk {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.wf-header__title {
  flex: 1 1 auto;
}

.wf-header__notifications {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--wf-muted);
}

.wf-header__notifications:hover {
  color: var(--wf-text);
  text-decoration: underline;
}

.wf-header__notifications-icon {
  font-size: 1.1rem;
}

.wf-header__subtitle:empty {
  display: none;
}

/* Хлебные крошки в шапке (зона между бургером и именем страницы на мобильной версии) */
.wf-header__breadcrumbs {
  display: none;
  margin-top: 0.5rem;
  padding-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--wf-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.wf-header__breadcrumbs a {
  color: var(--wf-text);
  text-decoration: none;
}

.wf-header__breadcrumbs a:hover {
  text-decoration: underline;
}

.wf-breadcrumbs__sep {
  margin: 0 0.25em;
  color: var(--wf-muted);
}

.wf-breadcrumbs__current {
  font-weight: 600;
  color: var(--wf-text);
}

/* Бургер-меню для ЛК клиента (мобильная навигация) */
.wf-burger {
  display: none;
  border: 1px solid #ccc;
  background: #fff;
  padding: 0.25rem 0.4rem;
  border-radius: 4px;
  cursor: pointer;
  align-self: flex-start;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 32px;
  min-height: 32px;
}

.wf-burger__line {
  display: block;
  width: 18px;
  height: 2px;
  background: #333;
  border-radius: 1px;
}

.wf-burger__line + .wf-burger__line {
  margin-top: 3px;
}

.wf-nav-current {
  display: none;
  margin: 0 0 0.25rem 0;
  font-weight: 600;
  cursor: pointer;
}

/* Хлебные крошки в nav ЛК клиента: видны при свёрнутом меню */
.wf-nav__breadcrumbs {
  display: none;
  margin: 0 0 0.25rem 0;
  min-height: 2.75rem;
  padding: var(--wf-pad);
  font-size: 0.95rem;
  color: var(--wf-muted);
  cursor: pointer;
  background: #fff;
  border: var(--wf-border, 1px solid #333);
  box-sizing: border-box;
}

.wf-nav__breadcrumbs a {
  color: var(--wf-text);
  text-decoration: none;
}

.wf-nav__breadcrumbs a:hover {
  text-decoration: underline;
}

/* Хлебные крошки в nav ЛК админа: по умолчанию скрыты, на мобильной видны при свёрнутом меню */
.wf-nav-wrap--admin .wf-nav__breadcrumbs {
  display: none;
}

/* Секторы на карте (админка): кликабельные блоки */
.wf-parking-map__sector {
  display: block;
  border: 2px solid #333;
  padding: 1rem var(--wf-pad);
  margin-bottom: var(--wf-gap);
  text-decoration: none;
  color: inherit;
  background: #f0f4f8;
  transition: background 0.15s ease;
}

.wf-parking-map__sector:hover {
  background: #e0e8f0;
}

.wf-parking-map__sector:focus {
  outline: 2px solid var(--wf-focus, #06c);
  outline-offset: 2px;
}

.wf-parking-map__sector-name {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25em;
}

.wf-parking-map__sector-stats {
  display: block;
  font-size: 0.9em;
  color: var(--wf-muted);
}

@media (min-width: 640px) {
  .wf-parking-map:has(.wf-parking-map__sector) {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--wf-gap);
  }
  .wf-parking-map__sector {
    margin-bottom: 0;
  }
}
/* -----------------------------------------
 * Мобильная версия ЛК клиента
 * (ориентир: смартфоны ~390×844)
 * --------------------------------------- */
@media (max-width: 640px) {
  body,
  body[data-view=mobile] {
    font-size: 15px;
  }
  .wf-page {
    padding: 0.75rem;
  }
  .wf-header--lk {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .wf-burger {
    display: inline-flex;
    order: 1;
  }
  .wf-header__notifications {
    order: 2;
  }
  .wf-header__title {
    order: 3;
    width: 100%;
  }
  .wf-nav--lk ul {
    flex-direction: column;
    gap: 0.25rem;
  }
  .wf-nav--lk li {
    width: 100%;
  }
  .wf-nav--lk a {
    display: block;
    padding: 0.45rem 0.25rem;
  }
  .wf-main,
  .wf-section {
    padding: 0.75rem;
  }
  .wf-grid,
  .wf-grid.wf-grid--two,
  .wf-grid.wf-grid--three {
    grid-template-columns: minmax(0, 1fr);
  }
  .wf-table th,
  .wf-table td {
    padding: 0.3em 0.4em;
  }
  .wf-modal__dialog {
    max-width: 26rem;
    width: 100%;
  }
  .wf-footer__version-toggle {
    justify-content: flex-start;
  }
  body:not([data-nav=open]) .wf-nav--lk .wf-nav-current {
    display: block;
  }
  body:not([data-nav=open]) .wf-nav--lk .wf-nav__breadcrumbs {
    display: block;
  }
  body[data-nav=open] .wf-nav--lk .wf-nav__breadcrumbs {
    display: none;
  }
}
/* Принудительный мобильный режим даже на широких экранах */
body[data-view=mobile] .wf-page {
  max-width: 480px;
  padding: 0.75rem;
}

body[data-view=mobile] .wf-header--lk {
  flex-direction: column;
  gap: 0.5rem;
}

body[data-view=mobile] .wf-burger {
  display: inline-flex;
}

body[data-view=mobile] .wf-nav--lk ul {
  flex-direction: column;
  gap: 0.25rem;
}

body[data-view=mobile] .wf-nav--lk li {
  width: 100%;
}

body[data-view=mobile] .wf-nav--lk a {
  display: block;
  padding: 0.45rem 0.25rem;
}

body[data-view=mobile] .wf-main,
body[data-view=mobile] .wf-section {
  padding: 0.75rem;
}

body[data-view=mobile] .wf-grid,
body[data-view=mobile] .wf-grid.wf-grid--two,
body[data-view=mobile] .wf-grid.wf-grid--three {
  grid-template-columns: minmax(0, 1fr);
}

body[data-view=mobile] .wf-table th,
body[data-view=mobile] .wf-table td {
  padding: 0.3em 0.4em;
}

body[data-view=mobile] .wf-modal__dialog {
  max-width: 26rem;
  width: 100%;
}

body[data-view=mobile] .wf-footer__version-toggle {
  justify-content: flex-start;
}

body[data-view=mobile]:not([data-nav=open]) .wf-nav--lk .wf-nav-current {
  display: block;
}

body[data-view=mobile]:not([data-nav=open]) .wf-nav--lk .wf-nav__breadcrumbs {
  display: block;
}

body[data-view=mobile][data-nav=open] .wf-nav--lk .wf-nav__breadcrumbs {
  display: none;
}

/* Состояние бургера: открытое/закрытое меню ЛК */
@media (max-width: 640px) {
  body:not([data-nav=open]) .wf-nav--lk ul {
    display: none;
  }
}
body[data-view=mobile]:not([data-nav=open]) .wf-nav--lk ul {
  display: none;
}

body[data-nav=open] .wf-nav--lk ul {
  display: flex;
}

/* Мобильная навигация админки: основное меню и подменю справа */
@media (max-width: 640px) {
  .wf-burger {
    display: inline-flex;
  }
  .wf-header__breadcrumbs {
    display: block;
  }
  .wf-header--lk {
    flex-wrap: wrap;
  }
  .wf-burger {
    order: 1;
  }
  .wf-header__notifications {
    order: 2;
  }
  .wf-header__title {
    order: 3;
    width: 100%;
  }
  .wf-nav-wrap--admin {
    position: relative;
    overflow: hidden;
  }
  .wf-nav-wrap--admin .wf-nav__breadcrumbs {
    display: none;
    margin: 0 0 0.25rem 0;
    min-height: 2.75rem;
    padding: var(--wf-pad);
    font-size: 0.95rem;
    color: var(--wf-muted);
    cursor: pointer;
    background: #fff;
    border: var(--wf-border, 1px solid #333);
    box-sizing: border-box;
  }
  .wf-nav-wrap--admin .wf-nav__breadcrumbs a {
    color: var(--wf-text);
    text-decoration: none;
  }
  .wf-nav-wrap--admin .wf-nav__breadcrumbs a:hover {
    text-decoration: underline;
  }
  body:not([data-nav=open]) .wf-nav-wrap--admin .wf-nav__breadcrumbs {
    display: block;
  }
  body[data-nav=open] .wf-nav-wrap--admin .wf-nav__breadcrumbs {
    display: none;
  }
  .wf-nav-wrap--admin .wf-nav-level--aux-desktop {
    display: none;
  }
  .wf-nav-level--main {
    width: 100%;
    transition: transform 0.25s ease;
  }
  .wf-nav-level--sub {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    transition: transform 0.25s ease;
    transform: translateX(100%);
    background: var(--wf-block, #e0e0e0);
  }
  .wf-nav-wrap--admin[data-nav-sub-open] .wf-nav-level--main {
    transform: translateX(-100%);
  }
  .wf-nav-wrap--admin[data-nav-sub-open] .wf-nav-level--sub {
    transform: translateX(0);
  }
  .wf-nav-sub-panel {
    display: none;
    padding: var(--wf-pad);
    padding-top: 0.5rem;
  }
  .wf-nav-sub-panel--active {
    display: block;
  }
  .wf-nav-sub-back {
    display: block;
    width: 100%;
    margin-bottom: 0.75rem;
    padding: 0.45rem 0.25rem;
    border: 1px solid #ccc;
    background: #fff;
    font-size: 1rem;
    cursor: pointer;
    text-align: left;
  }
  .wf-nav-sub-back:hover {
    background: #eee;
  }
  body:not([data-nav=open]) .wf-nav-wrap--admin .wf-nav-level--main .wf-nav ul {
    display: none;
  }
  body[data-nav=open] .wf-nav-wrap--admin .wf-nav-level--main .wf-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
  .wf-nav-wrap--admin .wf-nav-level--main .wf-nav li {
    width: 100%;
  }
  .wf-nav-wrap--admin .wf-nav-level--main .wf-nav a {
    display: block;
    padding: 0.45rem 0.25rem;
  }
  .wf-nav-wrap--admin .wf-nav-level--sub .wf-nav--aux {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }
  .wf-nav-wrap--admin .wf-nav-level--sub .wf-nav ul {
    flex-direction: column;
    gap: 0.25rem;
  }
  .wf-nav-wrap--admin .wf-nav-level--sub .wf-nav li {
    width: 100%;
  }
  .wf-nav-wrap--admin .wf-nav-level--sub .wf-nav a {
    display: block;
    padding: 0.45rem 0.25rem;
  }
}
body[data-view=mobile] .wf-burger {
  display: inline-flex;
}

body[data-view=mobile] .wf-header__breadcrumbs {
  display: block;
}

body[data-view=mobile] .wf-header--lk {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body[data-view=mobile] .wf-burger {
  order: 1;
}

body[data-view=mobile] .wf-header__notifications {
  order: 2;
}

body[data-view=mobile] .wf-header__title {
  order: 3;
  width: 100%;
}

body[data-view=mobile] .wf-nav-wrap--admin .wf-nav-level--aux-desktop {
  display: none;
}

body[data-view=mobile] .wf-nav-wrap--admin {
  position: relative;
  overflow: hidden;
}

body[data-view=mobile]:not([data-nav=open]) .wf-nav-wrap--admin .wf-nav__breadcrumbs {
  display: block;
}

body[data-view=mobile][data-nav=open] .wf-nav-wrap--admin .wf-nav__breadcrumbs {
  display: none;
}

body[data-view=mobile] .wf-nav-level--main {
  width: 100%;
  transition: transform 0.25s ease;
}

body[data-view=mobile] .wf-nav-level--sub {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  transition: transform 0.25s ease;
  transform: translateX(100%);
  background: var(--wf-block, #e0e0e0);
}

body[data-view=mobile] .wf-nav-wrap--admin[data-nav-sub-open] .wf-nav-level--main {
  transform: translateX(-100%);
}

body[data-view=mobile] .wf-nav-wrap--admin[data-nav-sub-open] .wf-nav-level--sub {
  transform: translateX(0);
}

body[data-view=mobile] .wf-nav-sub-panel {
  display: none;
  padding: var(--wf-pad);
  padding-top: 0.5rem;
}

body[data-view=mobile] .wf-nav-sub-panel--active {
  display: block;
}

body[data-view=mobile] .wf-nav-sub-back {
  display: block;
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.45rem 0.25rem;
  border: 1px solid #ccc;
  background: #fff;
  font-size: 1rem;
  cursor: pointer;
  text-align: left;
}

body[data-view=mobile] .wf-nav-sub-back:hover {
  background: #eee;
}

body[data-view=mobile]:not([data-nav=open]) .wf-nav-wrap--admin .wf-nav-level--main .wf-nav ul {
  display: none;
}

body[data-view=mobile][data-nav=open] .wf-nav-wrap--admin .wf-nav-level--main .wf-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

body[data-view=mobile] .wf-nav-wrap--admin .wf-nav-level--main .wf-nav li {
  width: 100%;
}

body[data-view=mobile] .wf-nav-wrap--admin .wf-nav-level--main .wf-nav a {
  display: block;
  padding: 0.45rem 0.25rem;
}

body[data-view=mobile] .wf-nav-wrap--admin .wf-nav-level--sub .wf-nav--aux {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

body[data-view=mobile] .wf-nav-wrap--admin .wf-nav-level--sub .wf-nav ul {
  flex-direction: column;
  gap: 0.25rem;
}

body[data-view=mobile] .wf-nav-wrap--admin .wf-nav-level--sub .wf-nav li {
  width: 100%;
}

body[data-view=mobile] .wf-nav-wrap--admin .wf-nav-level--sub .wf-nav a {
  display: block;
  padding: 0.45rem 0.25rem;
}

/* Десктоп: скрыть подменю, показать вспомогательную навигацию под основным меню (не скрывать при принудительном data-view="mobile") */
@media (min-width: 641px) {
  body:not([data-view=mobile]) .wf-nav-wrap--admin .wf-nav-level--sub {
    display: none;
  }
}
/* Вспомогательная навигация: верхняя граница панели */
.wf-nav--aux {
  margin-top: 0.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--wf-border, #ccc);
}

/* Кнопка/ссылка «Профиль» и «Аналитика» по правому краю основной и вспомогательной панели */
.wf-nav__item--end,
.wf-nav--aux__item--end {
  margin-left: auto;
}

.wf-nav--aux ul {
  gap: 0.5em 1em;
}

.wf-nav--aux a {
  font-size: 0.95em;
}
