/* Журнал действий. Перенос из прототипа, блок `isLog`.
 *
 * Сверх прототипа — только постраничность: у него журнал рисовался
 * целиком, а здесь список приходит страницами, как и транзакции.
 * Кнопки выгрузки нет: она ждёт Фазы 6 (XLSX, только администратору).
 */

.journal {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.journal__bar {
  flex: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px;
  background: #fff;
  border-bottom: 1px solid #e3e7ec;
}

.journal__search {
  width: 230px;
  height: 29px;
  border: 1px solid #dfe4e9;
  border-radius: 6px;
  padding: 0 9px;
  font: 400 11.5px 'IBM Plex Sans';
  outline: none;
  background: #fbfcfd;
  color: #141a21;
}

.journal__divider {
  width: 1px;
  height: 20px;
  background: #eef1f4;
}

.journal__label {
  font-size: 11px;
  color: #8b939d;
}

.journal__date {
  height: 29px;
  border: 1px solid #dfe4e9;
  border-radius: 6px;
  padding: 0 8px;
  font: 400 11px 'IBM Plex Mono', monospace;
  outline: none;
  background: #fbfcfd;
  color: #141a21;
}

.journal__dash {
  color: #c3c9d1;
}

.journal__select {
  height: 29px;
  border: 1px solid #dfe4e9;
  border-radius: 6px;
  padding: 0 7px;
  font: 400 11.5px 'IBM Plex Sans';
  background: #fbfcfd;
  outline: none;
  color: #141a21;
}

.journal__search:focus,
.journal__date:focus {
  border-color: #1f4fd8;
  background: #fff;
}

.journal__reset {
  border: 0;
  background: none;
  cursor: pointer;
  font: 400 11px 'IBM Plex Sans';
  color: #1f4fd8;
  padding: 0 4px;
}

.journal__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.journal__count {
  font: 400 11px 'IBM Plex Mono', monospace;
  color: #8b939d;
}

/* --- Таблица ------------------------------------------------------------- */

.journal__scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: #fff;
}

.journal__table {
  min-width: 1020px;
}

.journal__head,
.journal__row {
  display: grid;
  grid-template-columns: 118px 168px 108px 176px minmax(260px, 1fr);
  gap: 10px;
  align-items: center;
  padding: 0 16px;
}

.journal__head {
  height: 31px;
  background: #fafbfc;
  border-bottom: 1px solid #e3e7ec;
  position: sticky;
  top: 0;
  z-index: 2;
  font: 500 9.5px 'IBM Plex Sans';
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8b939d;
  white-space: nowrap;
}

.journal__row {
  height: 34px;
  border-bottom: 1px solid #f2f4f6;
}

.journal__row:hover {
  background: #f8fafc;
}

.journal__ts {
  font: 400 11px 'IBM Plex Mono', monospace;
  color: #5c6673;
}

.journal__actor {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.journal__avatar {
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 8px 'IBM Plex Sans';
}

.journal__name {
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journal__role {
  font-size: 11px;
  color: #5c6673;
}

.journal__action {
  font: 500 10.5px 'IBM Plex Sans';
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.journal__details {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.journal__summary {
  flex: 1;
  min-width: 0;
  font-size: 11.5px;
  color: #5c6673;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journal__more {
  flex: none;
  height: 22px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #dfe4e9;
  border-radius: 20px;
  background: #fff;
  color: #1f4fd8;
  font: 500 10.5px 'IBM Plex Sans';
  cursor: pointer;
}

.journal__more:hover {
  border-color: #1f4fd8;
  background: #f3f7fe;
}

/* --- Окно «Подробнее» ------------------------------------------------------ */

.entry__head {
  flex: none;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 17px 20px 14px;
  border-bottom: 1px solid #eef1f4;
}

.entry__avatar {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 9.5px 'IBM Plex Sans';
}

.entry__title {
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: -0.01em;
}

.entry__meta {
  font: 400 10.5px 'IBM Plex Mono', monospace;
  color: #8b939d;
  margin-top: 2px;
}

.entry__body {
  padding: 15px 20px 18px;
}

.entry__group {
  border: 1px solid #eef1f4;
  border-radius: 9px;
  overflow: hidden;
}

.entry__group + .entry__group {
  margin-top: 13px;
}

.entry__group-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  background: #fafbfc;
  border-bottom: 1px solid #eef1f4;
}

.entry__uid {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font: 500 12px 'IBM Plex Mono', monospace;
  color: #1f4fd8;
}

.entry__uid:hover {
  text-decoration: underline;
}

.entry__group-count {
  margin-left: auto;
  font: 400 10.5px 'IBM Plex Sans';
  color: #8b939d;
}

.entry__cols,
.entry__change {
  display: grid;
  grid-template-columns: minmax(150px, 1.1fr) minmax(110px, 1fr) minmax(110px, 1fr);
  gap: 10px;
  padding: 6px 11px;
}

.entry__cols {
  border-bottom: 1px solid #f2f4f6;
  font: 500 9.5px 'IBM Plex Sans';
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a2a9b3;
}

.entry__change {
  align-items: baseline;
  padding: 7px 11px;
  border-bottom: 1px solid #f7f9fb;
}

.entry__field {
  font-size: 11.5px;
  color: #141a21;
  text-wrap: pretty;
}

.entry__from {
  font: 400 11.5px 'IBM Plex Mono', monospace;
  color: #a4302a;
  text-wrap: pretty;
}

.entry__to {
  font: 400 11.5px 'IBM Plex Mono', monospace;
  color: #0f6d47;
  text-wrap: pretty;
}

.entry__hint {
  font-size: 10.5px;
  color: #a2a9b3;
  margin-top: 11px;
}

.entry__text {
  font-size: 12.5px;
  line-height: 1.7;
  color: #141a21;
  text-wrap: pretty;
}
