/* gl-cash: styles of the receipts/payments, payment orders, banks and opening-balance screens */
.gl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 14px; }
.gl-grid .fld, .gl-routes .fld { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gl-grid .fld > span, .gl-routes .fld > span { font-size: .78rem; color: var(--bo-muted); }
.gl-span2 { grid-column: span 2; }
.gl-check { display: flex; flex-direction: row !important; align-items: center; gap: 6px; font-size: .88rem; }
.gl-h { margin: 8px 0 0; font-size: 1rem; }
.gl-routes { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 14px; }
.gl-routes + .btn { align-self: flex-start; }
.gl-void td { opacity: .55; text-decoration: line-through; }
.gl-void td:last-child { text-decoration: none; }
.gl-tag--warn { background: #fff4e0; color: #9a5b00; }
.gl-tag--ok { background: #e6f2fb; color: var(--bo-blue); }
.gl-form h4 { margin: 6px 0; font-size: .9rem; }

/* printable voucher */
.gl-voucher { display: flex; flex-direction: column; gap: 12px; }
.gl-vhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--bo-ink); padding-bottom: 8px; }
.gl-vno { font-variant-numeric: tabular-nums; font-weight: 800; }
.gl-vamt { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.gl-vamt small { font-size: .8rem; color: var(--bo-muted); font-weight: 400; }
.gl-vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; }
.gl-vgrid > div { display: flex; flex-direction: column; gap: 2px; border-bottom: 1px dashed var(--bo-line); padding-bottom: 4px; }
.gl-vgrid span { font-size: .75rem; color: var(--bo-muted); }
.gl-vsign { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; text-align: center; font-size: .85rem; }
.gl-vsign > div { border-top: 1px solid var(--bo-ink); padding-top: 6px; }

@media (max-width: 640px) { .gl-span2 { grid-column: auto; } .gl-vsign { grid-template-columns: 1fr; } }
@media print {
  body * { visibility: hidden; }
  .gl-voucher, .gl-voucher * { visibility: visible; }
  .gl-voucher { position: absolute; inset: 0; padding: 24px; background: #fff; }
  .gl-noprint { display: none !important; }
}
