body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    background: linear-gradient(145deg, #0b0d10, #1a1d22);
}

/* Левая панель — слита с фоном */
.left-panel {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 64px;
    background: transparent;
    transition: width .25s ease;
    padding-top: 12px;
    overflow: hidden;
}

.left-panel:hover {
    width: 220px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    cursor: pointer;
    color: #c9ccd4;
    font-size: 13px;
    transition: background .15s ease, color .15s ease;
    white-space: nowrap;
    border-radius: 8px;
    margin: 2px 8px;
}

.menu-item i {
    font-size: 18px;
}

.menu-item:hover {
    background: rgba(255,255,255,0.12);
    color: #ffffff;
}

.menu-text {
    opacity: 0;
    transition: opacity .2s ease;
}

.left-panel:hover .menu-text {
    opacity: 1;
}

/* Правая часть */
.right-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: calc(100% - 64px);
    padding: 10px;
    transition: width .25s ease;
}

.left-panel:hover ~ .right-panel {
    width: calc(100% - 220px);
}

.content-box {
    background: #ffffff;
    height: 100%;
    border-radius: 14px;
    padding: 20px;
    overflow-y: auto;
    box-shadow: 0 0 32px rgba(0,0,0,0.18);
    font-size: 13px;
    color: #1f2937;
}

h1 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

p {
    font-size: 13px;
    margin-bottom: 8px;
}

/* Скролл */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.25);
    border-radius: 3px;
}

/* Верхняя панель */
.top-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 14px;
}

/* Поле поиска */
.search-input {
    width: 220px;
    height: 34px;
    padding: 6px 12px;
    font-size: 12.5px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #111827;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99,102,241,0.15);
}

.menu-item {
    text-decoration: none;
}


/* ===============================
   Картинка, привязанная к модалке
   =============================== */
:root {
    --modal-image-size: 180px;   /* размер лиса */
    --modal-image-shift: 124px;   /* насколько поднять ВВЕРХ (чем больше, тем выше) */
}

.modal-with-floating-image {
    position: relative;
    overflow: visible;          /* чтобы лис мог торчать наружу */
    padding-top: 0 !important;  /* ВАЖНО: не добавляем место сверху */
}

.modal-floating-image {
    position: absolute;
    top: 0;                     /* якорим к верхнему краю окна */
    left: 50%;
    width: var(--modal-image-size);
    height: var(--modal-image-size);
    transform: translateX(-50%) translateY(calc(-1 * var(--modal-image-shift)));
    background-image: url('/images/lis.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    z-index: 5;
    pointer-events: none;
}

/* ===============================
   Кнопка "Сохранить" (премиум)
   =============================== */

.btn-save {
    --save-color: #16a34a; /* спокойный зелёный */
    background-color: rgba(22, 163, 74, 0.12);
    border: 1px solid rgba(22, 163, 74, 0.6);
    color: var(--save-color);
    font-size: 12.5px;
    padding: 6px 14px;
    border-radius: 8px;
    transition: background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.btn-save:hover {
    background-color: rgba(22, 163, 74, 0.2);
    border-color: rgba(22, 163, 74, 0.8);
    color: #15803d;
}

.btn-save:active {
    background-color: rgba(22, 163, 74, 0.28);
}

.btn-save:focus {
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.25);
}

/* ===============================
   Единое свечение для всех полей
   =============================== */

.form-control,
.form-select {
    font-size: 12.5px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99,102,241,0.15);
    outline: none;
}

.bank-suggest{
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  padding: 6px;
  max-height: 260px;
  overflow: auto;
  z-index: 3000;
}

.bank-suggest-item{
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.bank-suggest-item:hover{
  background: rgba(99,102,241,0.08);
}

.bank-suggest-title{
  font-size: 12.5px;
  color: #111827;
}

.bank-suggest-sub{
  font-size: 11.5px;
  color: #6b7280;
}

/* ===============================
   Контекстное меню (ПКМ)
   =============================== */
.ctx-menu{
  position: fixed;
  min-width: 180px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  padding: 6px;
  z-index: 4000;
}

.ctx-item{
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  color: #111827;
  cursor: pointer;
}

.ctx-item:hover{
  background: rgba(99,102,241,0.08);
}

.ctx-danger{
  color: #b91c1c;
}

.ctx-danger:hover{
  background: rgba(185, 28, 28, 0.08);
}

/* верхняя панель: одинаковая высота кнопки и инпута */
.accounts-top-btn,
.accounts-search {
  height: 34px;            /* одна высота */
  line-height: 1.1;
}

/* чтобы текст в кнопке стоял красиво по центру */
.accounts-top-btn {
  padding-top: 6px;
  padding-bottom: 6px;
}

/* крестик без рамки, просто иконка */
.accounts-search-clear {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  border-radius: 999px;
  font-size: 16px;
  color: rgba(17, 24, 39, 0.55);
  cursor: pointer;
}

/* мягкий hover, чтобы было "премиально", а не кнопка из 2007 */
.accounts-search-clear:hover {
  color: rgba(17, 24, 39, 0.9);
  background: rgba(17, 24, 39, 0.06);
}

/* чтобы крестик не наезжал на текст */
.accounts-search {
  padding-right: 34px;
}

  /* Фильтры в одну строку */
  .ops-filters-row{
    display:flex;
    align-items:flex-end;
    gap:10px;
    flex-wrap:wrap; /* на узких экранах красиво переносится */
  }
  .ops-f{ min-width: 120px; }
  .ops-f-grow{ flex: 1 1 260px; min-width: 220px; }
  .ops-f-amt{ width: 120px; min-width: 120px; }

  .ops-lbl{
    font-size:12px;
    color: rgba(0,0,0,0.55);
    margin-bottom: 4px;
    line-height: 1.1;
  }

  /* Прокрутка операций */
  .ops-list{
    max-height: 320px;          /* можешь менять */
    overflow: auto;
    padding-right: 6px;         /* чтобы скролл не лип к тексту */
  }

  /* Чуть приятнее скролл (не обязательно) */
  .ops-list::-webkit-scrollbar{ width: 10px; }
  .ops-list::-webkit-scrollbar-thumb{
    background: rgba(17,24,39,0.18);
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.5);
  }
  .ops-list::-webkit-scrollbar-track{ background: transparent; }

/* Одинаковая высота карточек */
.accounts-card{
  height: 520px;              /* ← подбери, 500–560 обычно идеально */
  display: flex;
  flex-direction: column;
}

/* Тело карточки — тоже flex */
.accounts-card > .card-body{
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;           /* КЛЮЧЕВО */
}


