/* Livingstone — новый дизайн-слой (справочники и каркас).
   Подключается ПОСЛЕ app.css; переопределяет только ls-* классы и
   каркасные обёртки. Старые классы и --color-* не трогаем. */

:root {
  --ls-primary: #5A8FA8;
  --ls-primary-dark: #3B778D;
  --ls-ink: #224451;
  --ls-text: #1F1F1F;
  --ls-text-secondary: #5A5A5A;
  --ls-accent: #0058E4;
  --ls-surface: #FFFFFF;
  --ls-bg: #F5F7F9;
  --ls-radius: 14px;
  --ls-radius-sm: 10px;
}

body {
  font-family: var(--font-ls, var(--font-sans));
  background: var(--ls-bg);
  color: var(--ls-text);
}

/* ===== Каркас: сайдбар ===== */
.layout { background: var(--ls-bg); }
.ls-sidebar {
  width: 260px;
  flex: 0 0 260px;
  background: linear-gradient(180deg, var(--ls-primary) 0%, var(--ls-primary-dark) 100%);
  display: flex;
  flex-direction: column;
  padding: 22px 16px 16px;
  color: #fff;
  min-height: 100vh;
}
.ls-sidebar__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px 18px;
}
.ls-sidebar__brand img { width: 100%; max-width: 190px; height: auto; object-fit: contain; }
.ls-sidebar__brand-name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
  line-height: 1.15;
}
.ls-sidebar__brand-sub {
  display: block;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  opacity: .85;
}
.ls-sidebar__nav { display: grid; gap: 6px; margin-top: 10px; padding: 8px 0; }
.ls-sidebar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background .2s ease, color .2s ease;
}
.ls-sidebar__item svg {
  width: 18px;
  height: 18px;
  flex: none;
  opacity: .92;
}
.ls-sidebar__item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-sidebar__item:hover { background: rgba(255, 255, 255, .14); }
.ls-sidebar__item.active { background: rgba(255, 255, 255, .94); color: var(--ls-primary-dark); }
.ls-sidebar__item.active svg { opacity: 1; }
.ls-sidebar__user {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 8px 0;
  border-top: 1px solid rgba(255, 255, 255, .25);
  font-size: 14px;
  font-weight: 600;
}
.ls-sidebar__user .who { color: #fff; }
.ls-sidebar__logout {
  background: rgba(255, 255, 255, .16);
  color: #fff;
  border-radius: 999px;
  padding: 6px 16px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}
.ls-sidebar__logout:hover { background: rgba(255, 255, 255, .28); }

/* ===== Шапка контента ===== */
.ls-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 8px 14px;
}
.ls-topbar__title {
  font-size: 26px;
  font-weight: 700;
  color: var(--ls-text);
  margin: 0;
}
.ls-currency { display: flex; align-items: center; gap: 10px; }

/* ===== Табы-пилюли справочника ===== */
.ls-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.ls-tabs__item {
  padding: 8px 20px;
  border-radius: 999px;
  color: var(--ls-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.ls-tabs__item:hover { background: rgba(90, 143, 168, .16); }
.ls-tabs__item.active { background: var(--ls-primary); color: #fff; }

/* ===== Панель инструментов ===== */
.ls-toolbar {
  background: var(--ls-surface);
  border-radius: var(--ls-radius);
  box-shadow: 0 1px 3px rgba(34, 68, 81, .08);
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
}
/* FAB «+» (круглая кнопка добавления, порт переключателя) */
.fab-add {
  position: relative;
  width: 55px;
  height: 55px;
  flex: none;
  border-radius: 50%;
  background: var(--ls-primary);
  cursor: pointer;
  transition:
    transform .4s cubic-bezier(.2, .6, .3, 1.1),
    background .4s ease;
  box-shadow: 0 2px 8px rgba(34, 68, 81, .25);
}
.fab-add::before,
.fab-add::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 2px;
}
.fab-add::after { height: 3px; width: 50%; }
.fab-add::before { height: 50%; width: 3px; transition: width .4s ease; }
.fab-add:hover {
  transform: rotate(90deg);
  background: var(--ls-primary-dark);
}
.fab-add.clicked {
  transform: rotate(360deg);
  background: #CC2A41;
}
.fab-add.clicked::before { width: 0; }
@media (prefers-reduced-motion: reduce) {
  .fab-add, .fab-add::before { transition: none; }
}
.ls-toolbar .filter-row { margin-bottom: 0; flex: 1 1 auto; }
.ls-btn-find {
  background: var(--ls-surface);
  color: var(--ls-accent);
  border: 1.5px solid var(--ls-accent);
  border-radius: var(--ls-radius-sm);
  padding: 0 22px;
  height: 40px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  margin-left: auto;
}
.ls-btn-find:hover { background: var(--ls-accent); color: #fff; }

/* ===== Таблица Livingstone ===== */
.ls-table-wrap {
  background: var(--ls-surface);
  border-radius: 0 0 var(--ls-radius) var(--ls-radius);
  box-shadow: 0 1px 3px rgba(34, 68, 81, .08);
  overflow: hidden;
  margin-bottom: 20px;
}
.ls-table { width: 100%; border-collapse: collapse; }
.ls-table th {
  background: var(--ls-primary);
  color: #fff;
  text-transform: uppercase;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .05em;
  text-align: left;
  padding: 12px 16px;
}
.ls-table th.num, .ls-table td.num { text-align: right; }
.ls-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #E8EDF1;
  vertical-align: middle;
  font-size: 14px;
}
.ls-table tbody tr:hover { background: #F2F7FA; }
.ls-table tbody tr:last-child td { border-bottom: none; }

/* Действия в строке */
.ls-row-actions { display: flex; align-items: center; gap: 10px; justify-content: center; }
.ls-row-actions__link { color: var(--ls-accent); text-decoration: none; font-weight: 500; }
.ls-row-actions__link:hover { text-decoration: underline; }
.ls-icon-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.ls-icon-btn img { width: 18px; height: 18px; }
.ls-icon-btn--danger img { filter: invert(27%) sepia(76%) saturate(2140%) hue-rotate(340deg); }
.ls-row-actions form.actions-form { display: inline-flex; }

/* ===== Карточка-форма (_2) ===== */
.ls-form-card {
  background: var(--ls-surface);
  border-radius: var(--ls-radius);
  box-shadow: 0 1px 3px rgba(34, 68, 81, .08);
  padding: 26px 30px 30px;
  position: relative;
  margin-bottom: 20px;
}
.ls-form-card__head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.ls-form-card__title { font-size: 22px; font-weight: 700; color: var(--ls-text); margin: 0; }
.ls-form-card__tools { display: flex; gap: 10px; }
.ls-form-card__tools a, .ls-form-card__tools button {
  background: none; border: none; padding: 2px; cursor: pointer; display: inline-flex;
}
.ls-form-card__tools img { width: 22px; height: 22px; opacity: .55; }
.ls-form-card__tools a:hover img, .ls-form-card__tools button:hover img { opacity: .9; }
.ls-form-card .form-grid { gap: 16px 28px; }
.ls-form-card label:not(.btn) { color: var(--ls-text-secondary); font-weight: 600; font-size: 13.5px; }
.ls-form-card input, .ls-form-card select, .ls-form-card textarea {
  border: 1.5px solid #C9D4DB;
  border-radius: var(--ls-radius-sm);
  background: var(--ls-surface);
  min-height: 42px;
}
.ls-form-card input:focus, .ls-form-card select:focus, .ls-form-card textarea:focus {
  border-color: var(--ls-primary);
  outline: none;
}
.ls-form-card .btn-primary {
  background: var(--ls-accent);
  border-radius: var(--ls-radius-sm);
  font-weight: 600;
}
.ls-form-card .btn-primary:hover { background: #0046B8; }

/* Заголовок раздела как на макете */
.ls-page { padding: 0 8px; }

/* ===== Переопределение старого каркаса ===== */
.content { background: transparent; }
main { min-height: 60vh; }

/* Кнопки старого набора в новом контексте оставляем как есть — app.css. */

/* Окно добавления записи справочника (по макету _2/_3_1) */
.ls-modal-form { background: var(--ls-surface); border-radius: var(--ls-radius); padding: 26px 30px; max-height: 90vh; overflow-y: auto; }

/* Габариты (Д × Ш × В) должны оставаться в рамках карточки */
.ls-form-card .field-pair--triple { flex-wrap: wrap; }
.ls-form-card .field-pair--triple > input { flex: 1 1 5.5rem !important; min-width: 0; }

/* Поля формы не выступают за рамки карточки */
.ls-form-card input, .ls-form-card select, .ls-form-card textarea {
  max-width: 100%;
  box-sizing: border-box;
}
.ls-form-card textarea { width: 100%; resize: vertical; }

/* Зебра таблицы Livingstone: каждый второй столбец чуть темнее */
.ls-table tbody tr td:nth-child(even) { background: #F7FAFC; }
.ls-table tbody tr:hover td:nth-child(even) { background: #EFF5F9; }
/* Тексты основных колонок выровнены по центру */
.ls-table th { text-align: center; }
.ls-table td { text-align: center; }
.ls-table td.num, .ls-table th.num { text-align: right; }

/* Заголовок страницы строго по левому краю колонки контента (как таблица),
   адаптивно под любое разрешение */
.ls-topbar { padding: 20px 0 14px; }
.ls-page { padding: 0; }

/* ===== Диаграмма Ганта (задачи) ===== */
.gantt-scroll { overflow-x: auto; }
.gantt {
  --g-name-w: 220px;
  --g-cell: 34px;
  --g-head-h: 30px;
  --g-row-h: 32px;
  position: relative;
  min-width: calc(var(--g-name-w) + 31 * var(--g-cell));
}
.gantt__head {
  display: grid;
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--ls-surface);
  border-bottom: 1px solid var(--ls-line, rgba(34, 68, 81, 0.12));
}
.gantt__corner {
  position: sticky;
  left: 0;
  z-index: 3;
  background: var(--ls-surface);
}
.gantt__day {
  height: var(--g-head-h);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--ls-text-secondary);
  border-left: 1px solid rgba(34, 68, 81, 0.06);
}
.gantt__day--today {
  color: #fff;
  background: var(--ls-primary);
  font-weight: 700;
  border-radius: 6px 6px 0 0;
}
.gantt__body { position: relative; }
.gantt__group {
  display: flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  background: rgba(90, 143, 168, 0.1);
  border-top: 1px solid rgba(34, 68, 81, 0.1);
  font-size: 12px;
  font-weight: 700;
  color: var(--ls-ink);
}
.gantt__row {
  display: grid;
  grid-template-columns: var(--g-name-w) 1fr;
  border-top: 1px solid rgba(34, 68, 81, 0.06);
}
.gantt__name {
  position: sticky;
  left: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  height: var(--g-row-h);
  padding: 0 12px;
  background: var(--ls-surface);
  border-right: 1px solid rgba(34, 68, 81, 0.1);
  overflow: hidden;
}
.gantt__title {
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gantt__name small { font-size: 10.5px; color: var(--ls-text-secondary); }
.gantt__track {
  display: grid;
  position: relative;
  height: var(--g-row-h);
  background-image: repeating-linear-gradient(
    to right,
    rgba(34, 68, 81, 0.05) 0 1px,
    transparent 1px var(--g-cell)
  );
  background-position: -1px 0;
}
.gantt__bar {
  align-self: center;
  height: 16px;
  margin: 0 2px;
  border-radius: 8px;
  cursor: default;
}
.gantt__bar--planned { background: var(--ls-primary); opacity: 0.85; }
.gantt__bar--overdue { background: #DC4C4C; }
.gantt__bar--done { background: #2E9E6B; }.gantt__today {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--g-name-w) + (var(--g-today) - 1) * var(--g-cell) + var(--g-cell) / 2);
  width: 2px;
  margin-left: -1px;
  background: var(--ls-accent);
  opacity: 0.65;
  z-index: 2;
  pointer-events: none;
}
.gantt__legend {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--ls-text-secondary);
}
.gantt__legend span { display: inline-flex; align-items: center; gap: 6px; }
.gantt__dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.gantt__dot--planned { background: var(--ls-primary); }
.gantt__dot--overdue { background: #DC4C4C; }
.gantt__dot--done { background: #2E9E6B; }

/* ===== Календарь с карточками задач (kibo-ui style) ===== */
.cal--items .cal__cell {
  height: 6.8rem;
  padding: 4px 6px;
  text-align: left;
  vertical-align: top;
}
.cal--items .cal__day {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--ls-text-secondary);
  text-align: right;
}
.cal__chip {
  display: block;
  margin-top: 3px;
  padding: 2px 6px;
  border-radius: 6px;
  border-left: 3px solid var(--ls-primary);
  background: rgba(90, 143, 168, 0.14);
  color: var(--ls-ink);
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal__chip--done {
  border-left-color: #2E9E6B;
  background: rgba(46, 158, 107, 0.12);
  color: var(--ls-text-secondary);
  text-decoration: line-through;
}
.cal__chip--overdue {
  border-left-color: #DC4C4C;
  background: rgba(220, 76, 76, 0.12);
}
.cal__more {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  color: var(--ls-text-secondary);
}

/* ===== Signboard: дата/время в шапке (порт signboard-виджета) ===== */
.ls-topbar__widgets { display: flex; align-items: center; gap: 18px; }
.sb {
  position: relative;
  width: 56px;
  height: 56px;
  flex: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.sb__inner {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  color: #fff;
  overflow: hidden;
  transition: all .4s cubic-bezier(.5, .35, .15, 1.4);
}
.sb__front { z-index: 3; background: var(--ls-primary); }
.sb__left {
  z-index: 1;
  transform: rotate(5deg) translate(-3px, 2px);
  background: var(--ls-primary-dark);
}
.sb__right {
  z-index: 2;
  transform: rotate(-10deg) translate(5px, 5px);
  background: var(--ls-accent);
}
.sb:hover .sb__inner { transform: rotate(0) translate(0); }
.sb:active .sb__inner { transform: rotate(0) translate(0) scale(.92); }
.sb:active .sb__right { transform: rotate(-5deg) translateX(44px) scale(.92); }
.sb:active .sb__left { transform: rotate(5deg) translateX(-44px) scale(.92); }

/* центральная панель: календарь -> часы */
.sb__calmain {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: all .4s cubic-bezier(.5, .35, .15, 1.4);
}
.sb__month, .sb__day {
  font-size: 8px;
  line-height: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all .4s cubic-bezier(.5, .35, .15, 1.4);
}
.sb__date {
  font-size: 22px;
  line-height: 24px;
  font-weight: 300;
  transition: all .4s cubic-bezier(.5, .35, .15, 1.4);
}
.sb__clock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 2px;
  opacity: 0;
  visibility: hidden;
  transition: all .4s cubic-bezier(.5, .35, .15, 1.4);
}
.sb__year {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  font-size: 9px;
  line-height: 14px;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ls-primary);
  opacity: 0;
  visibility: hidden;
  transition: all .4s cubic-bezier(.5, .35, .15, 1.4);
}
.sb__calnormal {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  font-size: 9px;
  line-height: 14px;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0;
  visibility: hidden;
  transition: all .4s cubic-bezier(.5, .35, .15, 1.4);
}
.sb__date2 { color: var(--ls-primary); }
.sb__day2 { color: var(--ls-primary-dark); }
.sb__month2 { color: var(--ls-accent); }

.sb:active .sb__calmain { transform: scale(1.8); opacity: 0; visibility: hidden; }
.sb:active .sb__date { transform: scale(1.6); }
.sb:active .sb__month, .sb:active .sb__day { opacity: 0; visibility: hidden; transform: scale(0); }
.sb:active .sb__clock { opacity: 1; visibility: visible; }
.sb:active .sb__calnormal { opacity: 1; visibility: visible; }
.sb:active .sb__year { opacity: 1; visibility: visible; letter-spacing: 2px; }

@media (max-width: 1100px) { .sb { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .sb__inner, .sb__calmain, .sb__clock, .sb__calnormal, .sb__year,
  .sb__month, .sb__day, .sb__date { transition: none; }
}

/* ===== Календарь на дашборде (dcal, порт animated event calendar) ===== */
.dcal {
  border: 1px solid rgba(34, 68, 81, 0.12);
  border-radius: var(--ls-radius);
  background: var(--ls-surface);
  overflow: hidden;
  max-width: 420px;
}
.dcal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 8px;
  background: var(--ls-primary);
  color: #fff;
}
.dcal__title { font-weight: 600; font-size: 14px; letter-spacing: .3px; }
.dcal__nav {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease;
}
.dcal__nav:hover { background: rgba(255, 255, 255, .3); }
.dcal__body { padding: 4px 8px 8px; }
.dcal__body--in.dcal__body--next { animation: dcalInNext .35s ease-out; }
.dcal__body--in.dcal__body--prev { animation: dcalInPrev .35s ease-out; }
.dcal__week { display: grid; grid-template-columns: repeat(7, 1fr); }
.dcal__dow {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--ls-text-secondary);
  padding: 7px 0 4px;
}
.dcal__day {
  text-align: center;
  padding: 5px 2px 4px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s ease;
}
.dcal__day:hover { background: rgba(90, 143, 168, .1); }
.dcal__day--other { color: rgba(31, 31, 31, .32); }
.dcal__day--today .dcal__num { color: var(--ls-primary); font-weight: 700; }
.dcal__day--sel { background: rgba(90, 143, 168, .16); box-shadow: inset 0 0 0 1px rgba(90, 143, 168, .45); }
.dcal__num { font-size: 14px; font-variant-numeric: tabular-nums; }
.dcal__dots { display: block; height: 7px; margin-top: 2px; line-height: 7px; }
.dcal__dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin: 0 1px;
  vertical-align: top;
}
.dcal__details {
  position: relative;
  margin: 6px 8px 8px;
  padding: 8px 12px;
  min-height: 34px;
  max-height: 120px;
  overflow-y: auto;
  background: #EEF3F6;
  border-radius: 8px;
}
.dcal__details:empty { display: none; }
.dcal__arrow {
  position: absolute;
  top: -4px;
  width: 9px;
  height: 9px;
  margin-left: -4px;
  background: #EEF3F6;
  transform: rotate(45deg);
  transition: left .3s ease;
}
.dcal__event {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  font-size: 12.5px;
}
.dcal__event i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dcal__event small { color: var(--ls-text-secondary); }
.dcal__empty { font-size: 12.5px; color: var(--ls-text-secondary); padding: 4px 0; }
@keyframes dcalInNext { from { opacity: 0; transform: translateY(12px); } }
@keyframes dcalInPrev { from { opacity: 0; transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) {
  .dcal__body--in.dcal__body--next,
  .dcal__body--in.dcal__body--prev { animation: none; }
  .dcal__arrow { transition: none; }
}

/* ===== Блок «Расходы по проектам» (dbs, порт analytics-dashboard) ===== */
.dbs__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.dbs__topbar-right { display: flex; align-items: center; gap: 10px; }
.dbs__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: #fff;
  border: 1px solid rgba(34, 68, 81, 0.12);
  border-radius: var(--ls-radius-sm, 10px);
  font-size: 12.5px;
  color: var(--ls-text-secondary);
}
.dbs__filter {
  font: inherit;
  font-size: 13px;
  padding: 7px 12px;
  border: 1px solid rgba(34, 68, 81, 0.2);
  border-radius: var(--ls-radius-sm, 10px);
  background: var(--ls-surface);
  color: var(--ls-text);
  max-width: 280px;
}
.dbs__layout {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 14px;
}
.dbs__main {
  flex: 3 1 460px;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}
.dbs__side { flex: 1 1 280px; min-width: 260px; }
.dbs__col h3, .dbs__side h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--ls-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dbs__table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
  text-align: left;
  background: #fff;
  border: 1px solid rgba(34, 68, 81, 0.1);
  border-radius: var(--ls-radius-sm, 10px);
  font-size: 13px;
  color: var(--ls-text);
}
.dbs__table th {
  padding: 9px 14px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ls-text-secondary);
  border-bottom: 1px solid rgba(34, 68, 81, 0.12);
}
.dbs__table td {
  padding: 9px 14px;
  border-bottom: 1px solid rgba(34, 68, 81, 0.06);
  font-variant-numeric: tabular-nums;
}
.dbs__table tr:last-child td { border-bottom: none; }
.dbs__table .dbs__active-row td {
  background: rgba(90, 143, 168, 0.08);
  color: var(--ls-ink);
  font-weight: 600;
}
.dbs__growth { display: inline-flex; align-items: center; gap: 6px; color: #2E9E6B; }
.dbs__growth-icon { width: 14px; height: 14px; }
.dbs__meters {
  margin-top: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #fff;
  border: 1px solid rgba(34, 68, 81, 0.1);
  border-radius: var(--ls-radius-sm, 10px);
}
.dbs__meter-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--ls-text);
}
.dbs__meter-head span:last-child { color: var(--ls-text-secondary); font-variant-numeric: tabular-nums; }
.dbs__meter-bar {
  margin-top: 8px;
  width: 100%;
  height: 10px;
}
.dbs__meter-bar::-webkit-meter-bar {
  background: rgba(34, 68, 81, 0.08);
  border: none;
  border-radius: 5px;
}
.dbs__meter-bar::-webkit-meter-optimum-value {
  background: var(--ls-primary);
  border-radius: 5px;
}
.dbs__meter-bar::-moz-meter-bar {
  background: var(--ls-primary);
  border-radius: 5px;
}
.dbs__recent { margin-top: 22px; }
.dbs__recent-head { display: flex; justify-content: space-between; align-items: center; }
.dbs__links { font-size: 13px; font-weight: 700; color: var(--ls-text); }
.dbs__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 14px;
  margin-top: 24px;
}
.dbs__bank {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  border-radius: var(--ls-radius, 14px);
  background: linear-gradient(135deg, var(--ls-primary) 0%, var(--ls-primary-dark) 100%);
  color: #fff;
}
.dbs__bank-name { margin: 0; font-size: 13px; font-weight: 600; opacity: 0.92; }
.dbs__bank-num { margin: 0; font-size: 14px; letter-spacing: 0.12em; }
.dbs__bank-balance { margin: 6px 0 0; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dbs__bank-holder { margin: 0; font-size: 11px; letter-spacing: 0.15em; opacity: 0.8; }

/* ===== График «Кассовый прогноз» в стилистике блока расходов ===== */
.chart-pill {
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  padding: 7px 14px;
  border: 1px solid rgba(34, 68, 81, 0.12);
  border-radius: var(--ls-radius-sm, 10px);
  background: #fff;
  color: var(--ls-text-secondary);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.chart-pill:hover { border-color: rgba(90, 143, 168, 0.5); color: var(--ls-ink); }
.chart-pill.active {
  background: var(--ls-primary);
  border-color: var(--ls-primary);
  color: #fff;
}
.chart-picker {
  font: inherit;
  font-size: 12.5px;
  padding: 6px 10px;
  border: 1px solid rgba(34, 68, 81, 0.2);
  border-radius: var(--ls-radius-sm, 10px);
  background: var(--ls-surface);
  color: var(--ls-text);
}

/* ===== Переключатель RUB/BYN (sliding toggle, порт switch-button) ===== */
.ls-currency .switch-button {
  position: relative;
  background: rgba(90, 143, 168, 0.16);
  border-radius: 999px;
  overflow: hidden;
  width: 176px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--ls-primary-dark);
  padding-right: 88px;
}
.ls-currency .switch-button::before {
  content: "BYN";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
}
.ls-currency .switch-button-checkbox {
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 2;
  margin: 0;
}
.ls-currency .switch-button-checkbox:checked + .switch-button-label::before {
  transform: translateX(88px);
  transition: transform 300ms linear;
}
.ls-currency .switch-button-checkbox + .switch-button-label {
  position: relative;
  padding: 8px 0;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  margin: 0;
}
.ls-currency .switch-button-checkbox + .switch-button-label::before {
  content: "";
  background: #fff;
  box-shadow: 0 1px 4px rgba(34, 68, 81, 0.25);
  height: 100%;
  width: 100%;
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 999px;
  transform: translateX(0);
  transition: transform 300ms;
}
.ls-currency .switch-button-label-span { position: relative; }

/* Логотип Livingstone на странице логина (PNG квадратный, крупнее SVG) */
.login-card .login-logo { height: 56px; width: auto; }
