.ag-master-page{display:grid;grid-template-columns:minmax(260px,30%) minmax(0,1fr);gap:14px;min-height:calc(100dvh - 150px)}.ag-master-list,.ag-master-editor{display:flex;flex-direction:column;min-width:0;overflow:hidden}.ag-master-list header,.ag-master-editor>header{padding:20px;border-bottom:1px solid var(--line)}.ag-master-list h2,.ag-master-editor h1{margin:7px 0;font-size:24px}.ag-master-list p,.ag-master-editor p{color:var(--muted);line-height:1.6}.ag-list-filter{display:grid;gap:8px;padding:16px;font-size:13px;font-weight:700}.ag-master-page input,.aux-account-group-field select{width:100%;box-sizing:border-box;min-height:40px;padding:9px 12px;color:var(--text);background:var(--bg-soft);border:1px solid var(--line);border-radius:8px;font:inherit}.ag-master-page input:focus-visible,.ag-report-filters :is(input,select,summary):focus-visible{outline:2px solid var(--accent,#43cbd0);outline-offset:2px}.ag-list-rows{overflow:auto;flex:1;max-height:65vh;padding:8px}.ag-list-rows button{display:grid;gap:8px;text-align:left;width:100%;padding:14px;margin-bottom:7px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--text);cursor:pointer;font:inherit}.ag-list-rows button span{color:var(--muted);font-size:12px}.ag-list-rows button:hover,.ag-list-rows button.selected{background:var(--bg-soft);border-color:var(--accent,#43cbd0)}.ag-list-rows button:disabled{cursor:default;opacity:.6}.ag-master-list>footer{padding:12px 18px;border-top:1px solid var(--line);color:var(--muted);font-size:12px}.ag-master-fields{padding:24px;flex:1}.ag-master-fields label{display:grid;gap:10px;font-size:14px;font-weight:700}.ag-master-fields input{font-size:16px}.ag-master-fields input:read-only{opacity:.8}.ag-master-actions{display:flex;gap:8px;padding:14px;border-top:1px solid var(--line);flex-wrap:wrap}.ag-master-actions button{flex:1;min-width:75px;min-height:48px}.ag-master-editor>.coa-error{margin:14px}.aux-account-group-field{min-width:0;display:grid;gap:7px}.aux-account-group-field small{font-size:11px;color:var(--muted);line-height:1.5}.ag-report-filters{padding:18px;display:grid;grid-template-columns:repeat(6,minmax(130px,1fr));gap:14px;align-items:start}.ag-report-filters>label{display:grid;gap:8px;font-size:12px;font-weight:700}.ag-report-filters :is(select,input[type=date]){min-height:40px;box-sizing:border-box;width:100%;border:1px solid var(--line);border-radius:8px;background:var(--bg-soft);color:var(--text);font:inherit;padding:8px 10px}.ag-report-filters .ag-group-filter{grid-column:span 2}.ag-types{position:relative;min-height:40px;padding:10px;border:1px solid var(--line);border-radius:8px;font-size:13px}.ag-types summary{cursor:pointer}.ag-types>div{position:absolute;z-index:50;top:100%;left:0;min-width:220px;max-height:260px;overflow:auto;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--panel-strong,var(--panel));box-shadow:0 8px 24px #0003}.ag-types label{display:flex;align-items:center;gap:8px;padding:7px}.ag-report-options{grid-column:1/-1;display:flex;gap:18px;flex-wrap:wrap;align-items:center}.ag-report-options label{display:flex;align-items:center;gap:7px;font-size:13px}.ag-report-options button{margin-left:auto;min-height:42px}.ag-report-summary{padding:12px 4px;color:var(--muted);font-size:13px}.ag-report-page .ledger-results{overflow:auto;max-height:calc(100dvh - 340px);min-height:220px}.ag-report-page .ledger-account-statement{padding:16px}.ag-report-page .ledger-account-statement h2{font-size:21px;margin:4px 0 12px}.ag-report-page button:disabled{opacity:.5;cursor:default}@media(max-width:1100px){.ag-report-filters{grid-template-columns:repeat(3,minmax(130px,1fr))}.ag-master-page{grid-template-columns:260px minmax(0,1fr)}}@media(max-width:700px){.ag-master-page{grid-template-columns:1fr}.ag-list-rows{max-height:220px}.ag-report-filters{grid-template-columns:1fr 1fr}.ag-report-page .heading-actions{flex-wrap:wrap}.ag-report-options button{margin-left:0;width:100%}.ag-report-page .ledger-results{max-height:none}}
.aux-entry-fields>label:has(#aux-entry-account-name){grid-column:1/-1!important}
/* Group selection text stays unobstructed, including disabled View mode. */
html body #app .aux-account-group-field .searchable-combo-arrow{display:none!important}
html body #app .aux-account-group-field .searchable-combo-input{padding-left:12px!important;padding-right:12px!important;text-indent:0!important;background-image:none!important;color:var(--text)!important;-webkit-text-fill-color:var(--text)!important;opacity:1!important}
/* Compact criteria reserve the workspace for account statements. */
html body #app .ag-report-page{display:flex!important;flex-direction:column!important;height:100%;min-height:0!important;gap:8px}
html body #app .ag-report-page .page-heading{margin:0!important;padding:0 0 6px!important;flex:0 0 auto}
html body #app .ag-report-page .page-heading h1{font-size:21px;margin:4px 0}
html body #app .ag-report-page .page-heading p{display:none}
html body #app .ag-report-filters{flex:0 0 auto;grid-template-columns:repeat(12,minmax(0,1fr));gap:10px;padding:12px}
.ag-report-filters>label,.ag-report-filters>.ag-type-field{grid-column:span 2}
.ag-report-filters>label:nth-child(4),.ag-report-filters>label:nth-child(5){grid-column:span 1}
.ag-type-field{display:grid;gap:8px;font-size:12px;font-weight:700;min-width:0}
html body #app .ag-report-page .ag-types{min-height:0;padding:0;border:0}
html body #app .ag-report-page .ag-types summary{min-height:36px;box-sizing:border-box;padding:8px 26px 8px 10px;border:1px solid var(--line);border-radius:8px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body #app .ag-report-page .ag-types>.statement-operation-menu{min-width:260px;width:max(100%,260px);max-height:340px;overflow:auto;padding:12px;background:var(--panel-strong,var(--panel));border:1px solid var(--line)}
html body #app .ag-report-page .ag-types .statement-picker-search{box-sizing:border-box;width:100%;min-height:36px;padding:8px 10px;border-radius:7px;border:1px solid var(--line);background:var(--bg-soft);color:var(--text)}
.ag-types [hidden]{display:none!important}
html body #app .ag-report-page .ag-report-filters :is(select,input[type=date]){min-height:36px;padding:6px 9px}
html body #app .ag-report-options{gap:14px}.ag-report-options button{min-height:36px!important;padding:7px 14px!important}
html body #app .ag-report-summary{padding:3px 2px;flex:0 0 auto}
html body #app .ag-report-page .ledger-results{flex:1 1 0;max-height:none!important;min-height:180px;overflow:auto}
html body #app .ag-report-page .ledger-account-statement{padding:10px 12px;margin:0 0 10px}
html body #app .ag-report-page .ledger-account-statement h2{font-size:18px;margin:2px 0 6px}
html body #app .ag-report-page .ledger-account-period{margin:4px 0 8px}
@media(max-width:1200px){html body #app .ag-report-filters{grid-template-columns:repeat(4,minmax(0,1fr))}.ag-report-filters>label,.ag-report-filters>.ag-type-field{grid-column:span 1}html body #app .ag-report-filters>.ag-group-filter{grid-column:span 2}}
@media(max-width:700px){html body #app .ag-report-page{height:auto;min-height:100%!important}html body #app .ag-report-filters{grid-template-columns:repeat(2,minmax(0,1fr))}html body #app .ag-report-page .ledger-results{flex:none;min-height:300px}}
/* Full-height account group maintenance with a read-only membership grid. */
html body #app .ag-master-page{height:100%;min-height:0;flex:1 1 0}
.ag-master-list,.ag-master-editor{min-height:0}
html body #app .ag-list-rows{max-height:none;min-height:0;flex:1 1 0}
.ag-master-editor>header,.ag-master-actions{flex:0 0 auto}
.ag-master-fields{display:flex;flex-direction:column;min-height:0;gap:12px;padding:18px}
.ag-master-fields>label,.ag-master-fields>p{flex:0 0 auto;margin:0}
.ag-linked-panel{display:flex;flex-direction:column;flex:1 1 0;min-height:180px;border:1px solid var(--line);border-radius:10px;overflow:hidden;margin-top:6px}
.ag-linked-panel>header{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 14px;border-bottom:1px solid var(--line);background:var(--bg-soft)}
.ag-linked-panel h2{font-size:16px;margin:0}.ag-linked-panel header span{font-size:12px;color:var(--muted)}
.ag-linked-scroll{overflow:auto;flex:1 1 0;min-height:0}.ag-linked-scroll th{position:sticky;top:0;background:var(--panel);z-index:1}.ag-linked-scroll th,.ag-linked-scroll td{font-size:13px!important;padding:10px 12px!important}.ag-linked-scroll td:last-child{min-width:180px}
@media(max-width:700px){html body #app .ag-master-page{height:auto;min-height:100%}.ag-linked-panel{min-height:300px;flex:none}}
/* Account Group actions use the existing Chart of Accounts footer component. */
html body #app .ag-master-actions.coa-entry-actions{position:relative!important;inset:auto!important;margin:0!important;padding:9px!important;display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:7px!important;flex:0 0 auto!important}
html body #app .ag-master-actions .voucher-action-button{min-width:0!important;min-height:58px!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;gap:7px!important;font-family:inherit!important}
.ag-master-actions .voucher-action-button span{font-size:20px!important;line-height:1}.ag-master-actions .voucher-action-button:disabled{opacity:.35!important;filter:saturate(.35);cursor:not-allowed!important}.ag-master-actions .voucher-action-button:not(:disabled){opacity:1!important}
.ag-members-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.ag-members-toolbar button{min-height:34px;padding:6px 10px;border-radius:8px}.ag-members-toolbar button:disabled{opacity:.35;cursor:not-allowed}.ag-members-toolbar .delete{color:var(--red,#f16d81)}
.ag-linked-scroll tr[data-ag-member]{cursor:pointer}.ag-linked-scroll tr.ag-member-selected{background:var(--bg-soft);box-shadow:inset 3px 0 var(--cyan,#43cbd0)}.ag-linked-scroll tr[data-ag-member]:focus-visible{outline:2px solid var(--cyan,#43cbd0);outline-offset:-2px}
.ag-modal{box-sizing:border-box;max-width:calc(100vw - 32px);color:var(--text);background:var(--panel-strong,var(--panel));border:1px solid var(--line)}.ag-modal::backdrop{background:#0009;backdrop-filter:blur(3px)}.ag-modal .coa-modal-actions{direction:ltr;flex-direction:row}.ag-modal .coa-modal-actions button{min-width:110px;min-height:40px}.ag-member-dialog{overflow:visible}.ag-member-dialog label{display:grid;gap:10px;text-align:start;margin-top:18px}.ag-member-dialog .searchable-combo-options{max-height:260px}
@media(max-width:700px){html body #app .ag-master-actions.coa-entry-actions{grid-template-columns:repeat(4,minmax(0,1fr))!important}.ag-linked-panel>header{align-items:start;flex-direction:column}}
