/* General accounting (gl-*.js) polish, loaded after every gl*.css.
   The global `.in{width:100%}` made each filter take a whole row; here the list toolbars become one card on one row. */
.gl { gap: 16px; }
.gl > .gl-bar {
  align-items: flex-end; gap: 10px 12px; padding: 12px 14px;
  background: var(--bo-surface, #fff); border: 1px solid var(--bo-line); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.gl > .gl-bar > .in, .gl > .gl-bar > select.in { width: auto; flex: 0 1 190px; }
.gl > .gl-bar > input.in:not([type="date"]), .gl > .gl-bar > .gl-grow { flex: 1 1 240px; }
.gl > .gl-bar > .fld { flex: 0 0 auto; margin: 0; gap: 4px; }
.gl > .gl-bar > .fld > span { font-size: .74rem; color: var(--bo-muted); font-weight: 700; }
.gl > .gl-bar > .fld .in { width: auto; min-width: 150px; }
.gl > .gl-bar > .btn { flex: 0 0 auto; min-height: var(--bo-ctrl-h-sm); }
.gl > .gl-bar .in { min-height: 40px; }

/* tables: calmer header, clearer numbers, row focus */
.gl .tablewrap { border-radius: 14px; }
.gl .gl-tbl thead th { position: sticky; top: 0; z-index: 1; font-size: .78rem; letter-spacing: .01em; white-space: nowrap; }
.gl .gl-tbl td.num { color: var(--bo-ink); font-weight: 600; }
.gl .gl-tbl tbody tr.gl-click:hover td { background: #f3f8fd; }
.gl .gl-tbl tbody tr.gl-click:focus-visible { outline: 2px solid var(--bo-blue); outline-offset: -2px; }

/* type tags by direction of money */
.gl-tag { font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.gl-tag--in { background: #e8f6ee; color: #18794e; border-color: #cdebd9; }
.gl-tag--out { background: #fff4e5; color: #a34e00; border-color: #fde2bf; }
.gl-tag--sys { background: #eef2f7; color: #475569; border-color: #e0e6ee; }
.gl-tag--bad { border-color: #f7cfcf; }

/* tabs read as a segmented strip */
.gl-tabs { gap: 2px; }
.gl-tab { border-radius: 8px 8px 0 0; }
.gl-tab:hover { background: var(--bo-bg); }

/* sidebar: the accounting sub-groups sit close together under one heading style */
.side__group--gl + .side__group--gl { margin-top: -.2rem; }
.side__group--gl .side__group-h { color: #a3abb8; }

@media (max-width: 720px) {
  .gl > .gl-bar { padding: 10px; }
  .gl > .gl-bar > .in, .gl > .gl-bar > .fld, .gl > .gl-bar > .fld .in { flex: 1 1 100%; width: 100%; }
}
