.gl-heading{margin-bottom:12px}.gl-heading h1{margin-bottom:0}.gl-toolbar,.gl-tabs,.gl-totals{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.gl-toolbar{margin-bottom:10px}.gl-context{padding:9px 0;color:#506779;font-size:12px}.gl-tabs{padding:8px 0 12px}.gl-totals{padding:12px 0;border-top:1px solid #dbe4ea;border-bottom:1px solid #dbe4ea;font-variant-numeric:tabular-nums;gap:10px 22px}.gl-grid{margin-top:10px;background:#fff;border:1px solid #dbe4ea;border-radius:7px}.gl-grid table{width:max-content;min-width:100%}.gl-grid td{max-width:300px;overflow-wrap:anywhere}.gl-grid td,.gl-grid th{padding:8px 10px;vertical-align:top}.gl-module[data-density=comfortable] .gl-grid td{padding-top:14px;padding-bottom:14px}.gl-grid th{position:sticky;top:0;background:#edf3f6}.gl-group-row td{background:#e9f0f6;font-weight:600}.gl-filter-form{min-width:0}.gl-filter-form fieldset,.gl-condition-group{border:1px solid #d8e3ec;border-radius:6px;margin:12px 0;padding:14px}.gl-filter-form legend,.gl-condition-group legend{font-weight:600;padding:0 6px}.gl-filter-header,.gl-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:end}.gl-filter-form label,.gl-fields label{display:grid;gap:5px;font-size:12px;color:#496274}.gl-filter-form input:not([type=checkbox]),.gl-filter-form select,.gl-filter-form textarea,.gl-fields input,.gl-fields select{width:100%;min-width:0;border:1px solid #c7d6df;border-radius:5px;padding:8px;background:#fff;color:#173342}.gl-company-list{display:flex;gap:10px 16px;flex-wrap:wrap;margin:12px 0}.gl-company-list label{display:flex;align-items:center;gap:6px}.gl-condition-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.gl-condition-actions>.gl-mode{width:auto}.gl-condition{display:grid;grid-template-columns:minmax(120px,1fr) minmax(120px,1fr) minmax(130px,1.3fr) auto;gap:10px;align-items:end;margin-top:12px}.gl-value{display:block}.gl-conditions:empty{min-height:12px}.gl-modal-actions{display:flex;gap:10px;justify-content:flex-end;position:sticky;bottom:0;background:#fff;padding:14px 0;border-top:1px solid #dbe4ea;margin-top:14px}.gl-column-list{margin:12px 0;max-height:42vh;overflow:auto}.gl-column-list>div{display:grid;grid-template-columns:minmax(160px,1fr) 90px 35px 35px;gap:8px;align-items:center;padding:7px 0;border-bottom:1px solid #e5ecf1}.gl-column-list label{display:flex;align-items:center;gap:6px}.gl-column-list input[type=number]{width:64px}.gl-variant-actions{display:flex;gap:10px;flex-wrap:wrap}.gl-module .pagination label{display:flex;gap:6px;align-items:center}.gl-module .pagination select{padding:5px}.gl-filter-form [hidden]{display:none!important}
/* Fixed-width, read-only report cells. Selection never changes financial values. */
.gl-grid{margin-top:0;border:1px solid #cbd5d3;border-radius:0;max-height:calc(100dvh - 340px);min-height:180px;overflow:auto;overscroll-behavior:contain}
.gl-grid table{width:0;min-width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:12px;line-height:18px}
.gl-grid td,.gl-grid th{height:30px;padding:4px 8px;vertical-align:middle;border:0;border-right:1px solid #e0e5e3;border-bottom:1px solid #e0e5e3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal;box-sizing:border-box;letter-spacing:0}
.gl-grid th{height:34px;background:#f0f3f1;color:#42554e;font-size:11px;font-weight:600;z-index:2;padding-right:6px;border-bottom:1px solid #bdcdc5}
.gl-grid td{background:#fff;max-width:none;user-select:none;cursor:cell;font-variant-numeric:tabular-nums}
.gl-grid tr:hover td{background:#f5f9f7}
.gl-grid td.numeric{text-align:right}
.gl-grid .column-sort{padding:0;border:0;background:transparent;min-height:22px;color:inherit;font:inherit;letter-spacing:0}
.gl-grid .gl-row-index{position:sticky;left:0;background:#f2f5f3;text-align:right;color:#78867e;font-size:11px;z-index:1;cursor:default}
.gl-grid th.gl-row-index{z-index:3}
.gl-grid .gl-group-row td{background:#e8f0ec;font-weight:600;cursor:default}
.gl-grid td.report-cell-selected,.gl-grid tr:hover td.report-cell-selected{background:#e4f1eb}
.gl-grid td.report-cell-active{box-shadow:inset 0 0 0 2px #147d70;outline:none}
.gl-module[data-density=comfortable] .gl-grid td{height:38px;padding-top:8px;padding-bottom:8px}
.gl-report-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:32px;color:#66786d;font-size:11px}
.gl-report-tools .sap-icon-button{width:26px;height:26px;min-height:26px;border:0;background:transparent}
.report-column-resize{position:absolute;right:0;top:0;width:5px;height:100%;cursor:col-resize;touch-action:none;z-index:3}
.report-column-resize:hover,.report-column-resize:focus-visible{background:#147d70;outline:0}
.gl-grid th:has(.report-column-resize){padding-right:8px}
.gl-module .pagination{flex-wrap:wrap;gap:8px}
@media(max-width:700px){.gl-grid{max-height:60dvh}.gl-totals{gap:6px 16px;font-size:12px}.gl-heading{align-items:flex-start}.gl-heading .heading-actions{flex-wrap:wrap}.gl-toolbar>.caption{flex-basis:100%}}
dialog:has(.gl-filter-form),dialog:has(.gl-column-list){width:min(1050px,96vw);max-width:96vw}
dialog[open]:has(.gl-filter-form),dialog[open]:has(.gl-column-list){display:flex;flex-direction:column;overflow:hidden}
dialog:has(.gl-filter-form)>.dialog-heading,dialog:has(.gl-column-list)>.dialog-heading{flex:none}
dialog:has(.gl-filter-form)>#dialogBody,dialog:has(.gl-column-list)>#dialogBody{min-height:0;overflow:auto}
.gl-company-list label{flex-direction:row}.gl-company-list input[type=checkbox]{width:auto;flex:none}
.gl-modal-actions{bottom:-23px;margin-bottom:-23px;z-index:2}
@media(max-width:700px){.gl-fields,.gl-filter-header{grid-template-columns:1fr}.gl-condition{grid-template-columns:1fr 1fr}.gl-value-label{grid-column:1/-1}.gl-condition-group{padding:9px}.gl-modal-actions{flex-wrap:wrap}.gl-column-list>div{grid-template-columns:minmax(100px,1fr) 80px 32px 32px}}

/* Compact accounting scope; the shared advanced editor keeps its own layout. */
.gl-filter-header{grid-template-columns:minmax(200px,340px) max-content;justify-content:start;gap:10px}
.gl-filter-header>.button{white-space:nowrap}
.gl-filter-form .gl-scope-fields{border:0;border-top:1px solid #d8e3ec;border-bottom:1px solid #d8e3ec;border-radius:0;padding:12px 0 10px;margin:18px 0}
.gl-scope-fields>legend{font-size:12px;padding-left:0}
.gl-scope-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:10px 12px;align-items:end}
.gl-scope-company,.gl-scope-period{grid-column:span 4;min-width:0}
.gl-scope-accounts{grid-column:span 5}.gl-scope-exclude,.gl-scope-date{grid-column:span 3}.gl-scope-currency{grid-column:span 2}
.gl-scope-grid>label{min-width:0}
.gl-scope-accounts,.gl-scope-exclude{min-width:0}
.gl-scope-accounts>label,.gl-scope-exclude>label{margin-bottom:5px}
.gl-account-input{display:flex;align-items:center;gap:5px;min-width:0}
.gl-account-input>input{flex:1}
.gl-account-multiple{display:grid;place-items:center;flex:0 0 35px;width:35px;height:35px;padding:6px;border:1px solid #b4cbd2;border-radius:5px;background:#f0f7f6;color:#147d70;cursor:pointer}
.gl-account-multiple:hover{background:#e0f0eb;border-color:#147d70}
.gl-account-multiple:focus-visible{outline:2px solid #147d70;outline-offset:2px}
.gl-account-multiple svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.gl-scope-grid input:not([type=checkbox]),.gl-scope-grid select{height:35px;padding:6px 8px}
.gl-field-label{display:block;font-size:12px;color:#496274;font-weight:550;margin-bottom:5px}
#glAccountHelp{margin:8px 0 0;font-size:11px;line-height:1.5;color:#667e8a}
.gl-company-picker{position:relative;min-width:0}
.gl-company-picker[open]{z-index:5}
.gl-company-picker>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;list-style:none;height:35px;padding:6px 9px;border:1px solid #c7d6df;border-radius:5px;background:#fff;color:#173342;font-size:12px;cursor:pointer}
.gl-company-picker>summary::-webkit-details-marker{display:none}
.gl-company-picker>summary:focus-visible{outline:2px solid #379788;outline-offset:2px}
#glCompanyValue{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gl-company-menu{position:absolute;top:calc(100% + 5px);left:0;width:420px;min-width:100%;max-width:calc(100vw - 88px);padding:10px;border:1px solid #bdcfd7;border-radius:7px;background:#fff;box-shadow:0 8px 24px #17334225}
.gl-company-menu>.gl-company-list{display:grid;gap:0;max-height:210px;overflow:auto;margin:7px -3px 0}
.gl-company-list label{display:flex;flex-direction:row;align-items:center;gap:8px;padding:7px 5px;font-weight:400;line-height:1.4;border-radius:4px}
.gl-company-list label:hover,.gl-company-list label:has(input:checked){background:#edf6f3}
.gl-company-list input[type=checkbox]{flex:none;width:14px;height:14px;min-height:0;margin:0;accent-color:#147d70}
.gl-company-list span{min-width:0;overflow-wrap:anywhere}
.gl-company-list strong{font-weight:600}
.gl-company-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #e3ebef;margin-top:7px;padding-top:6px}
.gl-company-footer .text-button{padding:4px 7px}
@media(max-width:760px){.gl-scope-grid>label,.gl-scope-accounts,.gl-scope-exclude{grid-column:span 6}.gl-scope-company{grid-column:span 12}.gl-filter-header{grid-template-columns:minmax(0,1fr) max-content}}
@media(max-width:420px){.gl-scope-grid{column-gap:8px}.gl-scope-grid input,.gl-scope-grid select{font-size:12px}.gl-scope-accounts,.gl-scope-exclude{grid-column:span 12!important}.gl-filter-header{gap:8px}.gl-filter-header>.button{font-size:12px;padding-inline:8px}}

/* Totals follow the data columns at the foot of the scrollable table. */
.gl-grid th .sap-column-heading{min-height:26px}
.gl-grid tfoot td{position:sticky;bottom:0;z-index:2;height:auto;vertical-align:bottom;background:#edf3f0;border-top:1px solid #bdcdc5;border-bottom:0;cursor:default;user-select:text}
.gl-grid tfoot tr:hover td{background:#edf3f0}
.gl-grid tfoot .gl-row-index{z-index:3}
.gl-column-total{display:flex;flex-direction:column;gap:2px;padding:4px 0;color:#173342;text-align:right;font-size:12px;font-variant-numeric:tabular-nums;line-height:18px;white-space:normal}
.gl-column-total>span{display:flex;justify-content:space-between;gap:6px;white-space:nowrap}
.gl-column-total>strong{white-space:nowrap}
.gl-column-total small{font-size:11px;color:#61746b;font-weight:400}
.gl-report-tools>strong{color:#173342;font-size:12px}
.gl-report-tools #glCellStatus{flex:1}
.gl-scope-date{grid-column:span 4}

/* One compact action group beside the title; variants are managed in Filters. */
.gl-heading{align-items:center;gap:12px;flex-wrap:wrap}
.gl-heading-title{min-width:0;flex:1 1 230px}
.gl-variant-status{display:block;margin-top:5px;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.gl-main-actions{gap:7px;flex:0 0 auto;margin-left:auto}
.gl-icon-action{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:36px;height:36px;min-width:36px;min-height:36px;padding:7px;border-radius:6px;line-height:1}
.gl-icon-action svg{width:19px;height:19px;pointer-events:none}
.gl-icon-action:focus-visible{outline:2px solid #147d70;outline-offset:3px}
.gl-action-count{position:absolute;top:-5px;right:-5px;min-width:16px;height:16px;padding:0 4px;border-radius:9px;background:#fff;color:#147d70;border:1px solid #147d70;line-height:14px;font-size:10px;font-weight:700}
.gl-filter-variant-actions{display:flex;align-items:center;gap:7px}
.gl-progress{display:flex;align-items:center;gap:10px;padding:10px 12px;margin-bottom:10px;background:#fff;border:1px solid #dbe4ea;border-radius:7px;font-size:13px}
.gl-progress[hidden],.gl-progress [hidden]{display:none}
.gl-progress #glProgressText{flex:1;min-width:0}
.gl-progress-spinner{width:16px;height:16px;flex:none;border:2px solid #dbe4ea;border-top-color:#147d70;border-radius:50%;animation:gl-progress-spin 1s linear infinite}
@keyframes gl-progress-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.gl-progress-spinner{animation:none}}
@media(max-width:600px){.gl-heading-title{flex-basis:100%}.gl-main-actions{margin-left:0}.gl-variant-status{font-size:11px}.gl-icon-action{width:38px;height:38px}}
