:root {
    /* Фирменная палитра АГРОЭКО (снята с agroeco.ru) */
    --lime: #87c801;          /* основной фирменный зелёный */
    --lime-dark: #6ea800;     /* ховер основного */
    --green-900: #003f0b;     /* тёмно-зелёный: заголовки, тёмные плашки */
    --green-700: #036720;     /* насыщенный зелёный: ссылки, текст на светлом */
    --green-600: #87c801;     /* акцент = фирменный лайм */
    --green-100: #f1f8e2;     /* светлая зелёная заливка */
    --gold: #d9a406;          /* янтарный — только семантика «перезапуск»/ожидание */
    --gold-dark: #b3860a;
    --ink: #3a3f3a;
    --muted: #656565;         /* серый основного текста с agroeco.ru */
    --line: #e6e6e6;
    --bg: #f5f5f5;            /* светло-серый фон полос/страницы с agroeco.ru */
    --card: #ffffff;
    --red: #c0392b;
    --red-bg: #fdecea;
    --blue: #2563eb;
    --blue-bg: #e8f0fe;
    --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --radius: 12px;
    --pill: 999px;            /* кнопки-«таблетки» как на agroeco.ru */
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    color: var(--muted);
    background: var(--bg);
    line-height: 1.5;
}

a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Шапка ---------- */
.topbar {
    background: #fff;
    color: var(--ink);
    border-bottom: 3px solid var(--lime);
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    position: sticky;
    top: 0;
    z-index: 20;
}
.topbar-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--green-900); }
.brand:hover { text-decoration: none; }
.brand-logo {
    width: 44px; height: 44px; border-radius: 0;
    background: none; padding: 0; object-fit: contain;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-org { font-weight: 700; font-size: 15px; color: var(--green-900); }
.brand-sys { font-size: 11px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }

.nav { display: flex; gap: 2px; flex-wrap: wrap; flex: 1; align-items: center; }
.nav a {
    color: var(--muted); padding: 7px 9px; border-radius: var(--pill); font-size: 12px;
    text-transform: uppercase; letter-spacing: .3px; font-weight: 700; white-space: nowrap;
}
.nav a:hover { background: var(--green-100); color: var(--green-900); text-decoration: none; }

.user-area { display: flex; align-items: center; gap: 10px; }
.user-chip {
    display: flex; flex-direction: column; align-items: flex-end;
    color: var(--green-900); font-size: 13px; line-height: 1.2; gap: 5px;
}
.user-chip:hover { text-decoration: none; opacity: .9; }
.user-name { font-weight: 600; }

/* ---------- Контейнер / подвал ---------- */
.container { max-width: 1180px; margin: 24px auto; padding: 0 18px; }
.site-footer {
    max-width: 1180px; margin: 40px auto 24px; padding: 16px 18px;
    border-top: 1px solid var(--line); color: var(--muted); font-size: 13px;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

h1.page-title { font-size: 26px; margin: 0 0 6px; color: var(--green-900); font-weight: 700; }
.page-sub { color: var(--muted); margin: 0 0 20px; }

/* ---------- Карточки / панели ---------- */
.card {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px;
    margin-bottom: 18px;
}
.panel-title { font-size: 16px; font-weight: 700; margin: 0 0 14px; color: var(--green-900); }
.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; align-items: start; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- Формы ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; color: var(--green-900); }
.field .req { color: var(--red); }
input[type=text], input[type=email], input[type=tel], input[type=password],
input[type=search], select, textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--line);
    border-radius: 8px; font-size: 14px; font-family: inherit; background: #fff;
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(135,200,1,.22);
}
textarea { resize: vertical; min-height: 110px; }

/* Нативное поле выбора файла выглядит инородно — оформляем как остальные поля. */
input[type=file] {
    width: 100%; padding: 9px 12px; border: 1px dashed var(--line);
    border-radius: 10px; font-size: 13px; font-family: inherit; background: #fafaf7;
    color: var(--muted); cursor: pointer;
}
input[type=file]:hover { border-color: var(--lime); background: var(--green-100); }
input[type=file]::file-selector-button {
    margin-right: 12px; padding: 6px 14px; border: 0; border-radius: var(--pill);
    background: var(--green-900); color: #fff; font: inherit; font-size: 12px;
    font-weight: 700; cursor: pointer;
}
input[type=file]::file-selector-button:hover { background: var(--lime-dark); }
.hint { font-size: 12px; color: var(--muted); }
.form-actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
    border: 1px solid transparent; border-radius: var(--pill); padding: 11px 24px;
    font-size: 14px; font-weight: 700; font-family: inherit; background: #ededed; color: var(--ink);
    transition: background-color .18s ease, color .18s ease;
}
.btn:hover { text-decoration: none; filter: none; background: #e2e2e2; }
.btn-primary { background: var(--lime); color: #fff; }
.btn-primary:hover { background: var(--lime-dark); color: #fff; }
.btn-gold { background: var(--green-900); color: #fff; }
.btn-gold:hover { background: #002a07; }
.btn-danger { background: var(--red-bg); color: var(--red); border-color: #f3c9c4; }
.btn-danger:hover { background: #fbdcd8; }
/* Сплошной вариант — когда отклонение/возврат является основным действием экрана. */
.btn-danger-solid { background: var(--red); color: #fff; border-color: var(--red); }
.btn-danger-solid:hover { background: #a5301f; color: #fff; }
.btn-ghost { background: #fff; color: var(--green-900); border-color: var(--line); }
.btn-ghost:hover { background: var(--green-100); border-color: var(--lime); }
.btn-sm { padding: 6px 12px; font-size: 13px; white-space: nowrap; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Бейджи ---------- */
.badge {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 600; white-space: nowrap;
}
.badge-waiting { background: #fff3d6; color: #8a6100; }
.badge-in_progress { background: var(--blue-bg); color: var(--blue); }
.badge-done { background: var(--green-100); color: var(--green-700); }
.badge-role { background: var(--green-100); color: var(--green-900); }
.badge-type { background: #ededed; color: #4a4f4a; }

/* Уровни критичности (SLA) */
.badge-crit-s1 { background: #fde0df; color: #b3261e; }
.badge-crit-s2 { background: #ffe6cc; color: #b35a00; }
.badge-crit-s3 { background: #fff3d6; color: #8a6100; }
.badge-crit-s4 { background: #e9eef0; color: #4a5a60; }
.crit-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; vertical-align: baseline; }
.crit-dot-s1 { background: #b3261e; }
.crit-dot-s2 { background: #d97706; }
.crit-dot-s3 { background: #d9a406; }
.crit-dot-s4 { background: #8aa0a8; }

/* Соблюдение SLA */
.sla-ok { color: #1e7a34; }
.sla-breach { color: #b3261e; font-weight: 700; }
.sla-pill { padding: 2px 9px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.sla-pill-ok { background: #e7f6ec; color: #1e7a34; }
.sla-pill-breach { background: #fde0df; color: #b3261e; }
.crit-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin-top: 10px; }
.crit-legend .ci { font-size: 12.5px; color: #444; }
@media (max-width: 860px) { .crit-legend { grid-template-columns: 1fr; } }

/* ---------- Таблицы ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .3px; }
.table tr:hover td { background: #fafaf7; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* На десктопе широкие таблицы держат ширину; на мобильных (см. медиазапрос ниже)
   превращаются в карточки с подписями колонок — без горизонтального скролла. */
.table-wide { min-width: 720px; }
/* Длинные значения переносим по словам; слово рвём только если иначе не влезает. */
.table td { overflow-wrap: break-word; }
.table td.nowrap, .table th.nowrap { white-space: nowrap; }

/* ---------- Карточки пользователей (управление учётками) ---------- */
.user-cards { display: flex; flex-direction: column; gap: 12px; }
.user-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: #fff; }
.user-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.user-card-head .uname { font-weight: 700; font-size: 15px; }
.user-card-head .ufull { color: var(--ink); }
.user-card-controls { display: flex; gap: 12px 18px; flex-wrap: wrap; align-items: center; }
.uc-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.uc-form input[type=text], .uc-form input[type=password] { width: auto; min-width: 150px; }
.uc-form select { width: auto; }
.uc-check { display: flex; align-items: center; gap: 5px; font-size: 13px; white-space: nowrap; }
.uc-check input { width: auto; }

/* ---------- Ключ-значение ---------- */
.kv { display: grid; grid-template-columns: 200px 1fr; gap: 8px 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }

/* ---------- Канбан ---------- */
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.board-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1180px) { .board-4 { grid-template-columns: repeat(2, 1fr); } }
.board-col { background: #ededed; border-radius: var(--radius); padding: 12px; min-height: 200px; }
.board-col.drop-hover { outline: 2px dashed var(--green-600); outline-offset: -4px; }
.board-col-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.board-col-head h3 { margin: 0; font-size: 15px; }
.col-count { background: #fff; border-radius: 999px; padding: 1px 9px; font-size: 12px; color: var(--muted); }
.ticket-card {
    display: block; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green-600);
    border-radius: 8px; padding: 12px; margin-bottom: 10px; box-shadow: var(--shadow); color: var(--ink);
}
.ticket-card:hover { border-left-color: var(--green-900); }
.ticket-card--repeat { border-left-color: var(--red); }
.tc-link { display: block; color: var(--ink); }
.tc-link:hover { text-decoration: none; }
.tc-repeat { font-size: 12px; font-weight: 700; color: var(--red); margin-bottom: 4px; }
.tc-plate { font-size: 14px; font-weight: 700; color: var(--green-900); margin: 4px 0 6px; }
.tc-actions { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.tc-actions .btn { width: 100%; justify-content: center; }
.tc-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.tc-num { font-weight: 700; }
.tc-desc { font-size: 13px; color: #39443e; margin: 6px 0; }
.tc-meta { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }

/* ---------- Фильтры ---------- */
.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px 14px;
    align-items: end;
}
.filters .field { gap: 5px; min-width: 0; }
.filters .field label { font-size: 12px; font-weight: 700; color: var(--muted);
                        text-transform: uppercase; letter-spacing: .3px; }
.filters select, .filters input { min-width: 0; width: 100%; }
/* Поле даты: нативная иконка календаря требует запаса по ширине. */
.filters input[type=date] { min-width: 165px; }
/* Кнопки фильтра всегда в одном ряду, прижаты к правому краю. */
.filters-actions { grid-column: -3 / -1; display: flex; gap: 8px; justify-content: flex-end;
                   align-items: end; }
.filters-actions .btn { white-space: nowrap; }
@media (max-width: 760px) {
    .filters { grid-template-columns: 1fr 1fr; }
    .filters-actions { grid-column: 1 / -1; justify-content: stretch; }
    .filters-actions .btn { flex: 1; justify-content: center; }
}

/* ---------- Flash ---------- */
.flash-area { margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.flash { padding: 11px 14px; border-radius: 8px; font-size: 14px; border: 1px solid transparent; }
.flash-info { background: var(--blue-bg); color: var(--blue); border-color: #cfe0fb; }
.flash-success { background: var(--green-100); color: var(--green-700); border-color: #d5e9a8; }
.flash-error { background: var(--red-bg); color: var(--red); border-color: #f3c9c4; }

/* ---------- Таймлайн / журнал ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 8px 0 8px 18px; border-left: 2px solid var(--line); position: relative; }
.timeline li::before {
    content: ""; position: absolute; left: -6px; top: 13px; width: 10px; height: 10px;
    border-radius: 50%; background: var(--green-600);
}
.timeline .ts { font-size: 12px; color: var(--muted); }

.time-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.stat { background: #fafaf7; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.stat .label { font-size: 12px; color: var(--muted); }
.stat .value { font-size: 16px; font-weight: 700; }

.hero {
    background: linear-gradient(120deg, var(--green-100), #fff);
    border: 1px solid var(--line);
}

.notice { padding: 12px 14px; border-radius: 8px; background: var(--green-100); color: var(--green-900); font-size: 14px; }

/* Выбор намерения на форме создания (инцидент / запрос на изменение). */
.intent-opt { flex: 1; min-width: 240px; display: flex; gap: 10px; align-items: flex-start;
              padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.intent-opt:hover { background: var(--green-100); border-color: var(--lime); }
.intent-opt input { margin-top: 3px; }

/* ---------- Адаптив ---------- */
@media (max-width: 860px) {
    .form-grid { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; gap: 14px; }
    .board { grid-template-columns: 1fr; }
    .kv { grid-template-columns: 1fr; gap: 2px 0; }
    .kv dt { margin-top: 8px; }
    .nav { order: 3; width: 100%; }
    .nav a { padding: 6px 9px; font-size: 13px; }
    .container { margin: 16px auto; padding: 0 14px; }
    .card { padding: 16px; }
    .topbar-inner { padding: 8px 14px; gap: 10px; }
    .page-title { font-size: 21px; }
    .filters { gap: 10px; }
}

/* Широкие таблицы на телефоне → карточки: каждая строка отдельным блоком,
   у каждой ячейки подпись из data-label. Без горизонтального скролла. */
@media (max-width: 720px) {
    .table-wide { min-width: 0; }
    .table-wide thead { display: none; }
    .table-wide tbody, .table-wide tr, .table-wide td { display: block; width: 100%; }
    .table-wide tr { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; padding: 4px 12px; }
    .table-wide tr:hover td { background: transparent; }
    .table-wide td { border: none; padding: 8px 0; display: flex; justify-content: space-between;
                     align-items: baseline; gap: 14px; text-align: right; }
    .table-wide td:not(:last-child) { border-bottom: 1px solid var(--line); }
    .table-wide td::before { content: attr(data-label); color: var(--muted); font-size: 12px;
                             font-weight: 600; text-align: left; white-space: nowrap; }
    .table-wide td:last-child { justify-content: stretch; }
    .table-wide td:last-child .btn { width: 100%; justify-content: center; }
}

/* ───────── Приёмка на объекте (возвраты) ───────── */
.ret-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; }
.ret-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.ret-form { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line);
            display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: stretch; }
.ret-form .field { display: flex; flex-direction: column; }
.ret-form textarea { min-height: 96px; }
.ret-form .form-actions { margin-top: 12px; }
/* Заявка, по которой возврат уже сформирован, — приглушена. */
.ret-item--done { opacity: .72; background: #fafafa; }
@media (max-width: 860px) { .ret-form { grid-template-columns: 1fr; } }
.row-actions { display: flex; gap: 6px; flex-wrap: nowrap; align-items: center; }
.row-actions .btn { padding: 6px 12px; }
/* Квадратная кнопка-иконка (редактирование строки). */
.btn-icon { padding: 6px 9px; font-size: 14px; line-height: 1; }
.badge-failed { background: #ececec; color: #5c5c5c; }

/* ───────── Фото выполненной работы по ракурсам (ФТТ п. 3.3.2) ───────── */
.photo-angles { display: grid; gap: 10px; }
.photo-angle { display: grid; grid-template-columns: 1fr; gap: 4px;
               border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
               background: #fafaf7; }
.photo-angle-name { font-size: 13px; font-weight: 700; color: var(--green-900); }
.photo-angle input[type=file] { font-size: 13px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.photo-card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.photo-card img { width: 100%; height: 110px; object-fit: cover; display: block; background: #f0f0f0; }
.photo-card .pc-label { font-size: 12px; font-weight: 700; color: var(--green-900); padding: 7px 9px 2px; }
.photo-card .pc-file { font-size: 11px; color: var(--muted); padding: 0 9px 8px; word-break: break-all; }

/* ───────── Диаграмма Ганта: загрузка моечных комплексов (ФТТ п. 3.3.1) ───────── */
.gantt-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px;
                font-size: 13px; color: var(--muted); }
.gantt-legend span { display: inline-flex; align-items: center; gap: 6px; }
.gl { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1px solid rgba(0,0,0,.08); }
.gl-waiting { background: #fff3d6; }
.gl-in_progress { background: var(--blue-bg); }
.gl-done { background: var(--green-100); }
.gl-failed { background: #ececec; }
.gl-free { background: #fff; border-style: dashed; border-color: var(--lime); }
.gl-closed { background: repeating-linear-gradient(45deg, #f2f2f2, #f2f2f2 4px, #e8e8e8 4px, #e8e8e8 8px); }

.gantt-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.gantt { border-collapse: separate; border-spacing: 2px; font-size: 12px; min-width: 900px; }
.gantt th.g-time { font-weight: 600; color: var(--muted); font-size: 11px; padding: 4px 2px;
                   text-align: center; white-space: nowrap; }
.gantt th.g-name { text-align: left; min-width: 210px; padding: 6px 10px 6px 0;
                   font-size: 13px; color: var(--green-900); vertical-align: top; }
.gantt th.g-name a { color: var(--green-900); }
.gantt .g-queue { font-size: 11px; font-weight: 400; color: var(--red); margin-top: 3px; }
.gantt .g-sum { font-size: 12px; color: var(--muted); white-space: nowrap; padding-left: 8px; }
.gantt td.g-cell { width: 66px; min-width: 66px; height: 34px; border-radius: 6px;
                   text-align: center; vertical-align: middle; padding: 2px 4px; }
.gantt td.g-cell a { display: block; color: inherit; line-height: 1.15; }
.gantt td.g-cell a:hover { text-decoration: none; }
.g-plate { display: block; font-weight: 700; font-size: 10.5px; letter-spacing: -.2px;
           white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-more { font-size: 10px; opacity: .75; }
.gantt td.g-waiting { background: #fff3d6; color: #8a6100; }
.gantt td.g-in_progress { background: var(--blue-bg); color: var(--blue); }
.gantt td.g-done { background: var(--green-100); color: var(--green-700); }
.gantt td.g-failed { background: #ececec; color: #5c5c5c; }
.gantt td.g-free { background: #fcfff5; border: 1px dashed var(--lime); }
.gantt td.g-closed { background: repeating-linear-gradient(45deg, #f5f5f5, #f5f5f5 4px, #ebebeb 4px, #ebebeb 8px); }

/* Подсказка со свободными слотами в форме заявки */
.slot-hint { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.slot-chip { border: 1px solid var(--lime); background: #fff; color: var(--green-900);
             border-radius: var(--pill); padding: 4px 12px; font-size: 12px; font-weight: 700;
             cursor: pointer; font-family: inherit; }
.slot-chip:hover { background: var(--green-100); }
.slot-chip[aria-pressed="true"] { background: var(--lime); color: #fff; }
.slot-note { font-size: 12px; color: var(--muted); }

/* ───────── Журнал заявок: пропорции колонок ───────── */
.table-journal { table-layout: fixed; width: 100%; }
/* Заголовки переносим по словам, иначе при фиксированной раскладке они наезжают. */
.table-journal thead th { white-space: normal; }
.table-journal th:nth-child(1) { width: 40px; padding-left: 6px; padding-right: 0; }
.table-journal th:nth-child(2) { width: 108px; }   /* номер */
.table-journal th:nth-child(3) { width: 112px; }   /* плановая мойка */
.table-journal th:nth-child(4) { width: 20%; }     /* ТС и тип мойки */
.table-journal th:nth-child(5) { width: 92px; }    /* срочность */
.table-journal th:nth-child(6) { width: 17%; }     /* моечный комплекс */
.table-journal th:nth-child(7) { width: 19%; }     /* заказчик */
.table-journal th:nth-child(8) { width: 96px; }    /* статус */
.table-journal th:nth-child(9) { width: 88px; }    /* в статусе */
.table-journal th:nth-child(10) { width: 126px; }  /* действия */
@media (max-width: 720px) { .table-journal { table-layout: auto; } }

/* ───────── Якорная навигация по разделам страницы ───────── */
.anchor-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 18px; }
.anchor-nav a {
    font-size: 13px; font-weight: 700; color: var(--green-900);
    background: #fff; border: 1px solid var(--line); border-radius: var(--pill);
    padding: 7px 15px;
}
.anchor-nav a:hover { background: var(--green-100); border-color: var(--lime); text-decoration: none; }

/* ───────── Карточка учётной записи ───────── */
.user-card-body { margin-top: 4px; }
.uc-checks { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 10px 0 2px; }
.user-card-danger {
    display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center;
    margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
}

/* Первая ячейка журнала — только чекбокс, лишние отступы не нужны. */
.table-journal td:first-child { padding-left: 6px; padding-right: 0; }
