html body .journal-entries-head,html body #journalEntriesTable .journal-entry-row{display:grid!important;grid-template-columns:140px 130px 110px 120px 120px minmax(260px,1fr)!important;gap:0!important;align-items:center!important;text-align:center!important;padding:12px!important}
html body .journal-entries-head{background:#465369!important;color:#fff!important;border-radius:10px 10px 0 0;font-weight:700;min-height:44px}
html body .journal-entries-head>span::before{content:'( '}
html body .journal-entries-head>span::after{content:' )'}
html body .journal-entries-head>span,html body #journalEntriesTable .journal-entry-row>*{text-align:center!important;justify-self:stretch!important;margin:0!important}
html body #journalEntriesTable .journal-entry-row>.status{justify-self:center!important}
html body #journalEntriesTable .journal-entry-row:nth-child(even){background:#f8faff}
html body #journalEntriesTable .journal-entry-row{min-height:52px;border-bottom:1px solid #e1e7f0}
html body #journalEntriesTable .journal-entry-row small{white-space:normal!important;line-height:1.6}
html body #accountingPage [data-accounting-section="journals"] .journal-entries-head,html body #accountingPage #journalEntriesTable .table-row.journal-entry-row{grid-template-columns:140px 130px 110px 120px 120px minmax(260px,1fr)!important;text-align:center!important}
html body #accountingPage #journalEntriesTable .table-row.journal-entry-row>*{text-align:center!important}
html body #accountingPage [data-accounting-section="journals"] .journal-entries-head,html body #accountingPage #journalEntriesTable .table-row.journal-entry-row{grid-template-columns:38px 130px 120px 100px 110px 110px minmax(220px,1fr)!important}
#journalToolbar{display:flex;gap:8px;align-items:end;flex-wrap:nowrap;direction:rtl;padding:12px 0}
#journalToolbar label{display:flex;flex-direction:column;gap:6px;text-align:center;min-width:110px;flex:1}
#journalToolbar input{width:100%;height:38px;margin:0}
#journalToolbar button{height:38px;white-space:nowrap;padding:0 10px;font-size:11px;margin:0}
#journalSelectionCount{white-space:nowrap;font-size:11px;align-self:center}
#journalEntriesTable input[type=checkbox],#journalSelectAll{width:16px;height:16px;min-height:16px;margin:0}
@media(max-width:1000px){#journalToolbar{flex-wrap:wrap}}
html body #accountingPage #journalEntriesTable input[type="checkbox"],html body #accountingPage .journal-entries-head #journalSelectAll{width:16px!important;height:16px!important;min-height:16px!important;min-width:16px!important;padding:0!important;margin:0!important}
html body #accountingPage .journal-entries-head>span:first-child::before,html body #accountingPage .journal-entries-head>span:first-child::after{content:none!important}
html body #accountingPage #journalEntriesTable{padding:0!important;margin:0!important}
html body #accountingPage #journalEntriesTable .journal-entry-row{width:100%!important;box-sizing:border-box!important}
html body #accountingPage [data-accounting-section="journals"] .journal-entries-head,html body #accountingPage #journalEntriesTable .table-row.journal-entry-row{grid-template-columns:32px 120px 195px 110px 85px 95px 95px minmax(180px,1fr)!important}
html body #accountingPage.accounting-service-page:has([data-accounting-section="journals"]:not([hidden]):not([style*="display: none"])) {padding-inline:8px!important}
html body #accountingPage .accounting-service-layout:has([data-accounting-section="journals"]:not([style*="display: none"])) {width:100%!important;max-width:none!important;margin-inline:0!important}
html body #accountingPage [data-accounting-section="journals"]{width:100%!important;max-width:none!important;padding:10px!important;box-sizing:border-box!important}
html body #accountingPage #journalEntriesTable{max-height:calc(100dvh - 250px)!important;height:calc(100dvh - 250px)!important;overflow-y:auto!important}
html body #accountingPage [data-accounting-section="journals"] .section-title-row{margin-bottom:8px!important;padding-block:12px!important;min-height:64px!important}
html body #accountingPage #journalToolbar{padding-block:8px!important}
html body #accountingPage [data-accounting-section="journals"] .journal-entries-head,html body #accountingPage #journalEntriesTable .table-row.journal-entry-row{grid-template-columns:32px 120px 190px 110px 90px 95px 95px minmax(180px,1fr)!important;gap:0!important;padding:10px 12px!important;box-sizing:border-box!important;margin-inline:0!important;width:100%!important}
html body #accountingPage #journalEntriesTable{scrollbar-gutter:stable!important;direction:rtl!important;border:1px solid #e0e6ef!important;border-top:0!important;border-radius:0 0 10px 10px!important}
html body #accountingPage [data-accounting-section="journals"] .journal-entries-head{width:calc(100% - 17px)!important;margin-right:17px!important;border-radius:8px 8px 0 0!important;min-height:44px!important}
html body #accountingPage #journalEntriesTable .journal-entry-row{min-height:48px!important}
html body #accountingPage #journalEntriesTable .journal-entry-row:nth-child(even){background:#f7f9fc!important}
html body #accountingPage #journalEntriesTable .journal-entry-row>*{border-inline-end:1px solid #e2e7ef!important;padding-inline:6px!important;font-size:12px!important}
html body #accountingPage #journalEntriesTable .journal-entry-row>*:last-child{border-inline-end:0!important}
html body #accountingPage [data-accounting-section="journals"] .journal-entries-head{margin-right:0!important;margin-left:17px!important;width:calc(100% - 19px)!important}

/* Keep journal rows at their content height inside the scrollable register. */
html body #accountingPage #journalEntriesTable{align-content:start!important;grid-auto-rows:max-content!important}
