/* Fixed voucher register header */
@media screen {
  .main-area:has(> .gl-book-shell .voucher-register),
  .service-app__body:has(> .service-app__main--bookkeeping > .gl-book-shell .voucher-register) {
    display: flex;
    flex-direction: column;
    height: 100dvh;
  }

  .main-area:has(> .gl-book-shell .voucher-register) > .app-header {
    position: relative;
    z-index: 30;
  }

  .service-app__body > .service-app__main--bookkeeping:has(> .gl-book-shell .voucher-register),
  .gl-book-shell:has(.voucher-register),
  .gl-book-shell:has(.voucher-register) > .gl-book-main,
  .gl-book-panel:has(> .voucher-register),
  .gl-book-panel > .voucher-register {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
  }

  .gl-book-shell:has(.voucher-register) > :is(.gl-book-top, .gl-book-pages),
  .gl-book-panel > .voucher-register > :not(.vr-table-wrap) {
    flex-shrink: 0;
  }

  .gl-book-panel > .voucher-register > .vr-table-wrap {
    min-height: 0;
    overflow: auto;
  }
}
