.entries-log{
  --entries-record-col-notice:minmax(0, 1.05fr);
  --entries-record-col-type-status:minmax(0, 1fr);
  --entries-record-col-date:minmax(0, .9fr);
  --entries-record-col-incoming:minmax(0, .95fr);
  --entries-record-col-from:minmax(0, 1.25fr);
  --entries-record-col-beneficiary:minmax(0, .95fr);
  --entries-record-col-outgoing:minmax(0, .95fr);
  --entries-record-col-to:minmax(0, 1.25fr);
  --entries-record-col-notes:minmax(0, 1.7fr);
  --entries-records-grid-template:
    var(--entries-record-col-notice)
    var(--entries-record-col-date)
    var(--entries-record-col-incoming)
    var(--entries-record-col-from)
    var(--entries-record-col-beneficiary)
    var(--entries-record-col-outgoing)
    var(--entries-record-col-to)
    var(--entries-record-col-notes)
    var(--entries-record-col-type-status);
  min-width:0;
  min-height:0;
  display:flex;
  flex-direction:column;
  flex:1;
  background:transparent;
  border:none;
  border-radius:0;
  box-shadow:none;
}

.entries-chip{
  min-height:var(--entries-toolbar-btn-height);
  padding:0 12px;
  border-radius:var(--entries-radius-control);
  border:1px solid rgba(15,23,42,.08);
  background:rgba(255,255,255,.78);
  color:#334155;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font:700 12.5px/1 var(--taif-font-family);
  box-shadow:0 8px 16px rgba(15,23,42,.05), inset 0 1px 0 rgba(255,255,255,.34);
}

.entries-chip__label{color:#475569}
.entries-chip__count{
  min-width:22px;
  padding:0 6px;
  height:22px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(15,23,42,.06);
  color:#0f172a;
  font:800 12px/1 var(--taif-font-family);
}
.entries-chip--draft{border-color:rgba(148,163,184,.20)}
.entries-chip--posted{border-color:rgba(34,197,94,.20)}
.entries-chip--posted .entries-chip__count{background:rgba(34,197,94,.12);color:#166534}
.entries-chip--total .entries-chip__count{background:rgba(37,99,235,.12);color:#1d4ed8}

.entries-log__records{
  min-height:0;
  flex:1;
  position:relative;
  width:calc(100% + (var(--entries-workbench-bleed) * 2));
  max-width:none;
  margin-inline:calc(var(--entries-workbench-bleed) * -1);
  overflow-y:auto;
  overflow-x:hidden;
  padding:0 var(--entries-workbench-bleed) 8px;
  box-sizing:border-box;
  background:transparent;
  border:none;
  box-shadow:none;
  scrollbar-width:thin;
  scrollbar-color:rgba(15,23,42,.18) transparent;
}

.entries-log__records::-webkit-scrollbar{width:var(--entries-scrollbar-size);height:var(--entries-scrollbar-size)}
.entries-log__records::-webkit-scrollbar-track{background:transparent}
.entries-log__records::-webkit-scrollbar-thumb{background:var(--entries-scrollbar-thumb);border-radius:var(--entries-scrollbar-size);border:var(--entries-scrollbar-thumb-border) solid transparent;background-clip:content-box}

.entries-records__viewport{
  min-width:0;
  width:100%;
  max-width:100%;
}

.entries-records__grid{
  display:grid;
  grid-template-columns:var(--entries-records-grid-template);
  align-items:stretch;
  width:100%;
  min-width:0;
  max-width:100%;
}

.entries-records__head{
  position:sticky;
  top:0;
  z-index:4;
  min-height:42px;
  border:none;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  overflow:visible;
  isolation:isolate;
}

.entries-records__head::before{
  content:'';
  position:absolute;
  top:0;
  right:-4px;
  bottom:0;
  left:-4px;
  border:1px solid rgba(148,163,184,.24);
  border-radius:0;
  background:linear-gradient(180deg, rgba(233,237,243,.98) 0%, rgba(223,229,237,.98) 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.56);
  pointer-events:none;
  z-index:0;
}

.entries-records__head-cell{
  position:relative;
  z-index:1;
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  text-align:center;
  color:#475569;
  font:800 12.5px/1.15 var(--taif-font-family);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.entries-records__head-cell + .entries-records__head-cell{
  border-inline-start:1px solid rgba(148,163,184,.18);
}

.entries-records__body{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding-top:8px;
}

.entries-record-row{
  position:relative;
  overflow:hidden;
  cursor:default;
  border:1px solid rgba(15,23,42,.08);
  border-radius:12px;
  background:linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(247,249,252,.98) 100%);
  box-shadow:0 14px 26px rgba(15,23,42,.05);
  transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.entries-record-row:nth-child(even){
  background:linear-gradient(180deg, rgba(251,252,254,.98) 0%, rgba(245,247,250,.98) 100%);
}

.entries-record-row:hover{
  border-color:rgba(59,130,246,.16);
  box-shadow:0 16px 28px rgba(15,23,42,.06);
}

.entries-record-row--selected{
  border-color:rgba(15,23,42,.72);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  box-shadow:0 12px 24px rgba(15,23,42,.08);
}

.entries-record-row--selected:hover{
  border-color:rgba(15,23,42,.82);
  box-shadow:0 14px 28px rgba(15,23,42,.10);
}

.entries-record-row__grid{
  position:relative;
}

.entries-record-row__state-slot{
  position:absolute;
  top:0;
  right:12px;
  bottom:0;
  width:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  z-index:1;
}
.entries-record-cell{
  min-width:0;
  min-height:72px;
  padding:10px 12px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  text-align:right;
}

.entries-record-cell + .entries-record-cell{
  border-inline-start:1px solid rgba(148,163,184,.16);
}

.entries-records__col--notice,
.entries-records__col--type-status,
.entries-records__col--date,
.entries-records__col--incoming,
.entries-records__col--beneficiary,
.entries-records__col--outgoing{
  justify-content:center;
  text-align:center;
}

.entries-record-cell__stack{
  min-width:0;
  width:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:4px;
}

.entries-record-cell__stack--center{
  align-items:center;
  text-align:center;
}

.entries-record-cell__stack--notes{
  gap:3px;
}

.entries-record-cell__value{
  min-width:0;
  color:#0f172a;
  font:800 13px/1.45 var(--taif-font-family);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.entries-record-cell__value--center{
  text-align:center;
  margin-inline:auto;
}

.entries-record-cell__value--mono{
  direction:ltr;
  text-align:center;
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  letter-spacing:.02em;
}

.entries-record-cell__value--amount{
  direction:ltr;
  text-align:center;
  font-size:14px;
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

.entries-record-cell__value--positive{color:#166534}
.entries-record-cell__value--negative{color:#b91c1c}
.entries-record-cell__value--empty{color:#94a3b8}

.entries-record-cell__value--clamp,
.entries-record-cell__meta--clamp{
  white-space:normal;
  overflow:hidden;
  display:-webkit-box;
  -webkit-box-orient:vertical;
}

.entries-record-cell__value--clamp{
  -webkit-line-clamp:2;
}

.entries-record-cell__meta{
  min-width:0;
  color:#64748b;
  font:700 11.5px/1.35 var(--taif-font-family);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.entries-record-cell__meta--mono{
  direction:ltr;
  text-align:center;
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  letter-spacing:.015em;
}

.entries-record-cell__meta--clamp{
  -webkit-line-clamp:1;
}

.entries-record-cell__badges{
  min-width:0;
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
}

.entries-badge{
  width:min(100%, 104px);
  min-height:31px;
  padding:0 10px;
  border-radius:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(15,23,42,.10);
  background:rgba(255,255,255,.94);
  font:800 12px/1 var(--taif-font-family);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.66);
}

.entries-badge--draft{background:rgba(148,163,184,.12);color:#475569;border-color:rgba(148,163,184,.24)}
.entries-badge--posted{background:rgba(34,197,94,.10);color:#166534;border-color:rgba(34,197,94,.24)}
.entries-badge--info{background:rgba(59,130,246,.10);color:#1d4ed8;border-color:rgba(59,130,246,.24)}
.entries-type--payment{background:rgba(239,68,68,.09);color:#991b1b;border-color:rgba(239,68,68,.22)}
.entries-type--receipt{background:rgba(34,197,94,.09);color:#166534;border-color:rgba(34,197,94,.22)}
.entries-type--journal{background:rgba(249,115,22,.10);color:#c2410c;border-color:rgba(249,115,22,.22)}
.entries-type--settlement{background:rgba(245,158,11,.10);color:#b45309;border-color:rgba(245,158,11,.24)}
.entries-type--opening{background:rgba(139,92,246,.10);color:#6d28d9;border-color:rgba(139,92,246,.24)}

.entries-empty{min-height:100%;display:grid;place-items:center;padding:12px}
.entries-empty__box{width:min(520px,100%);border:1px dashed rgba(15,23,42,.14);border-radius:var(--entries-radius-panel);padding:28px 24px;background:rgba(255,255,255,.78);text-align:center}
.entries-empty__title{font:700 22px/1.25 var(--taif-font-family);color:#0f172a;margin-bottom:10px}
.entries-empty__text{font:700 14px/1.9 var(--taif-font-family);color:#64748b}

@media (max-width: 1480px){
  .entries-record-cell{
    padding:10px 10px;
  }
}

@media (max-width: 1180px){
  .entries-records__head-cell{
    font-size:12px;
    padding:10px 8px;
  }

  .entries-record-cell{
    min-height:68px;
    padding:9px 8px;
  }

  .entries-record-cell__value{font-size:12.5px}
  .entries-record-cell__value--amount{font-size:13.5px}
  .entries-record-cell__meta{font-size:11px}
}

@media (max-width: 780px){
  .entries-empty__box{padding:24px 20px}
}

.panel[data-view="entries-vouchers"] .entries-log__records--split-scroll{
  display:flex;
  flex-direction:column;
  overflow:hidden;
  padding:0 var(--entries-workbench-bleed) 0 0;
}

.panel[data-view="entries-vouchers"] .entries-records__viewport--split-scroll{
  min-height:0;
  flex:1;
  display:flex;
  flex-direction:column;
}

.panel[data-view="entries-vouchers"] .entries-records__head--split-scroll{
  position:relative;
  top:auto;
  padding-inline-end:var(--entries-scrollbar-size);
  box-sizing:border-box;
}

.panel[data-view="entries-vouchers"] .entries-records__scroller--split-scroll{
  min-height:0;
  flex:1;
  overflow-y:auto;
  overflow-x:hidden;
  padding-inline-end:var(--entries-scrollbar-size);
  box-sizing:border-box;
  scrollbar-gutter:stable;
  scrollbar-width:thin;
  scrollbar-color:rgba(15,23,42,.18) transparent;
}


.entries-badge--reversed{background:rgba(239,68,68,.10);color:#b91c1c;border-color:rgba(239,68,68,.24)}
