.month-report{--mr-paper:#fbfaf5;--mr-border:#d8ded7;--mr-ink:#193c48;--mr-green:#deeee2;--mr-red:#f5e6e2;--mr-blue:#e2edf7;--mr-yellow:#f7eed9;color:var(--mr-ink);background:#f3f2ec;padding:16px 20px 28px;border-top:4px solid #365c4b;font-size:12px;line-height:1.5}.month-report *{box-sizing:border-box}.month-report .mr-heading{display:flex;align-items:center;gap:25px;margin-bottom:18px}.month-report h1{font-size:23px;margin:0;font-weight:750}.month-report .mr-heading>span{color:#6d8188}.month-report .mr-badge{margin-left:auto;background:var(--mr-yellow);color:#9b6919;font-size:11px;padding:4px 28px;border-radius:3px}.month-report .mr-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;border-bottom:1px solid var(--mr-border);padding-bottom:14px;margin:0}.month-report .mr-filters label{display:grid;gap:4px;font-size:11px;min-width:180px}.month-report .mr-filters label:first-child{min-width:260px}.month-report input,.month-report select{font:inherit;color:inherit;min-height:34px;border:1px solid var(--mr-border);border-radius:5px;background:var(--mr-paper);padding:7px 10px;width:100%}.month-report button{font:inherit;color:inherit;border:1px solid var(--mr-border);background:var(--mr-paper);border-radius:4px;min-height:32px;padding:6px 12px;cursor:pointer}.month-report button:hover{background:#e9efe8}.month-report button:focus-visible,.month-report a:focus-visible{outline:2px solid #47759c;outline-offset:2px}.month-report button:disabled{opacity:.5;cursor:default}.month-report .mr-filters .mr-month{min-width:130px;margin-left:auto}.month-report .mr-period{color:#9b6919;font-size:11px;padding:8px 0}.month-report .mr-coverage{background:var(--mr-yellow);padding:7px 9px;margin:10px 0 0;color:#805820;font-size:11px}.month-report .mr-error:empty{display:none}.month-report .mr-error{color:#a32922;padding:8px;border:1px solid #d79d94}.month-report .mr-grid{display:grid;grid-template-columns:minmax(280px,2fr) minmax(320px,1.9fr) minmax(215px,1fr);gap:14px;margin-top:12px}.month-report .mr-column{min-width:0}.month-report h2{font-size:14px;margin:0 0 9px;font-weight:750}.month-report h3{font-size:13px;margin:0 0 10px}.month-report .mr-panel{background:var(--mr-paper);border:1px solid var(--mr-border);border-radius:5px;overflow:hidden}.month-report .mr-column:nth-child(2)>.mr-panel{border-top:3px solid #4e668b}.month-report .mr-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:43px;padding:9px 12px}.month-report .mr-panel-heading strong{font-size:13px}.month-report .mr-find{max-width:115px}.month-report .mr-find input{min-height:26px;font-size:11px;padding:3px 6px;border:0;background:transparent}.month-report .mr-selected{background:var(--mr-blue);min-height:30px;display:flex;align-items:center;gap:14px;padding:6px 11px;font-size:11px}.month-report .mr-selected span{background:#fff;padding:1px 10px;border-radius:3px}.month-report .mr-selected small{margin-left:auto;color:#6e818a;font-size:10px}.month-report .mr-scroll{overflow:auto;max-height:calc(100dvh - 365px);min-height:240px;scrollbar-gutter:stable}.month-report table{width:100%;border-collapse:collapse;font-size:11px;table-layout:fixed;margin:0}.month-report th{position:sticky;top:0;background:#e9ede6;z-index:1;text-align:left;font-size:10px;font-weight:500;color:#4d6a75;padding:7px 9px;white-space:nowrap}.month-report td{padding:7px 9px;border-bottom:1px solid #e3e6de;vertical-align:middle;font-variant-numeric:tabular-nums}.month-report th:not(:first-child),.month-report td:not(:first-child){text-align:right}.month-report [data-tree] th:first-child{width:60%}.month-report [data-tree] th:not(:first-child){width:20%}.month-report .mr-account>td:first-child{padding-left:calc(5px + var(--depth,0)*10px)}.month-report .mr-account td:first-child>div{display:flex;align-items:center;gap:4px;flex-wrap:wrap}.month-report .mr-account-name{border:0;background:transparent;padding:0;min-height:20px;text-align:left;font-weight:inherit;max-width:100%;overflow-wrap:anywhere}.month-report .mr-expand{border:0;background:transparent;padding:0;min-height:20px;font-size:9px;flex:0 0 22px;color:#65808a}.month-report .mr-indent{width:22px;flex:0 0 22px}.month-report .mr-account.mr-parent{font-weight:700}.month-report .mr-parent.negative{background:var(--mr-red)}.month-report .mr-parent.positive{background:var(--mr-green)}.month-report .mr-account.negative:not(.mr-parent){background:#fcf4f1}.month-report .mr-account.positive:not(.mr-parent){background:#f2f7ef}.month-report .negative{color:#a8392a}.month-report .positive{color:#24655b}.month-report .selected,.month-report .mr-account.selected{background:var(--mr-blue)!important;color:#2d5882;box-shadow:inset 3px 0 #46658a}.month-report .mr-map-label{background:#ece7d9;color:#746344;padding:1px 4px;max-width:100%;font-size:9px}.month-report .mr-total{display:flex;justify-content:space-between;gap:12px;padding:13px 10px;background:#e8eee6;font-size:11px;min-height:49px}.month-report .mr-total b{white-space:nowrap}.month-report .mr-detail-filters{display:flex;align-items:center;gap:7px;padding:5px 12px 10px;margin:0}.month-report .mr-detail-filters label:first-child{flex:1;min-width:0}.month-report .mr-detail-filters input,.month-report .mr-detail-filters select{font-size:10px;min-height:29px;padding:5px 7px}.month-report .mr-detail-filters button{font-size:10px;min-height:29px;padding:4px 8px}.month-report .mr-details{max-height:calc(100dvh - 465px);min-height:220px}.month-report .mr-details th:first-child{width:42%}.month-report .mr-details th:nth-child(2){width:16%}.month-report .mr-details th:nth-child(3){width:24%}.month-report .mr-details th:last-child{width:18%}.month-report .mr-group{background:#e3edf5;font-weight:700}.month-report .mr-group button{border:0;background:transparent;font-weight:700;min-height:20px;padding:0;font-size:11px}.month-report .mr-group:nth-of-type(even){background:#e0ece4}.month-report .mr-source-select{border:0;background:transparent;padding:0;min-height:20px;text-align:left;font-size:10px;max-width:100%;overflow-wrap:anywhere}.month-report a{color:#346184;font-size:10px;text-decoration:none}.month-report a:hover{text-decoration:underline}.month-report .mr-source-detail{padding:10px 12px;min-height:95px;background:#faf7ee;font-size:10px;color:#536c74}.month-report .mr-source-detail strong{color:#315d7f}.month-report .mr-source-detail dl{display:flex;gap:16px;flex-wrap:wrap;margin:7px 0}.month-report .mr-source-detail dl>div{display:flex;gap:6px}.month-report .mr-source-detail dd{margin:0;font-weight:600}.month-report .mr-source-detail p{margin:5px 0}.month-report .mr-pagination{display:flex;justify-content:space-between;align-items:center;padding:7px 10px;font-size:10px}.month-report .mr-pagination button{font-size:10px;min-height:26px;padding:3px 8px}.month-report .mr-analysis>.mr-panel{border-top:3px solid #365c4b;margin-bottom:12px}.month-report .mr-aside-note{font-size:10px;color:#6c8088;margin:0;padding:6px 12px 10px}.month-report .mr-analysis table td{font-size:11px;padding:8px 12px}.month-report .mr-analysis tr.positive{background:var(--mr-green)}.month-report .mr-analysis tr.negative{background:var(--mr-red)}.month-report .mr-pending{padding:12px;font-size:11px}.month-report .mr-pending p{color:#9c731f;font-size:10px;margin:7px 0}.month-report .mr-export{padding:12px}.month-report .mr-export p{font-size:10px;color:#60777e}.month-report .mr-export button{width:100%;font-size:11px}.month-report .mr-export .mr-aside-note{padding:8px 0 0}.month-report .mr-empty{padding:35px 12px!important;text-align:center!important;color:#75838a}.month-report .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.month-report[aria-busy=true] .mr-grid{opacity:.6;pointer-events:none}.month-report[aria-busy=true] .mr-grid button,.month-report[aria-busy=true] .mr-grid a{visibility:hidden}@media(max-width:1100px){.month-report .mr-grid{grid-template-columns:minmax(250px,1fr) minmax(280px,1fr)}.month-report .mr-analysis{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:12px}.month-report .mr-analysis h2{grid-column:1/-1;margin:0}.month-report .mr-scroll{max-height:500px}.month-report .mr-details{max-height:400px}.month-report .mr-filters .mr-month{margin-left:0}}@media(max-width:680px){.month-report{padding:10px}.month-report .mr-heading{gap:10px;flex-wrap:wrap;margin-bottom:12px}.month-report h1{font-size:21px}.month-report .mr-heading>span{font-size:10px}.month-report .mr-badge{margin-left:0;padding:2px 8px}.month-report .mr-filters label,.month-report .mr-filters label:first-child{min-width:0;width:calc(50% - 6px)}.month-report .mr-grid{display:block}.month-report .mr-column{margin-bottom:16px}.month-report .mr-analysis{display:block}.month-report .mr-scroll{max-height:380px;min-height:170px}.month-report .mr-selected{gap:6px;flex-wrap:wrap}.month-report .mr-selected small{margin-left:0}.month-report .mr-details th:first-child{width:39%}.month-report .mr-details th:nth-child(3){width:25%}.month-report .mr-details th:last-child{width:20%}.month-report .mr-pagination button{min-height:34px}.month-report .mr-source-select,.month-report .mr-account-name{min-height:28px}}

/* Dense financial tables override the shared 48px data-grid row chrome. */
#content:has(.month-report){max-width:none;padding:12px 4px}.month-report td,.month-report th{height:auto;white-space:normal}.month-report td:first-child{background:transparent;position:static}.month-report .mr-account td,.month-report .mr-details td{padding-top:4px;padding-bottom:4px}.month-report .mr-column:not(.mr-analysis)>.mr-panel{height:calc(100dvh - 430px);min-height:350px;display:flex;flex-direction:column}.month-report .mr-column:not(.mr-analysis)>.mr-panel>.mr-scroll{flex:1;min-height:0;max-height:none}.month-report .mr-panel-heading,.month-report .mr-selected,.month-report .mr-total,.month-report .mr-source-detail,.month-report .mr-pagination,.month-report .mr-detail-filters{flex:none}.month-report .mr-source-detail{min-height:80px}.month-report th:first-child{background:#e9ede6}.month-report .mr-account-name{line-height:19px}.month-report .mr-filters input:not([type=checkbox]),.month-report .mr-filters select{min-height:34px;padding:7px 10px}.month-report .mr-detail-filters input:not([type=checkbox]),.month-report .mr-detail-filters select{min-height:29px;padding:5px 7px}.month-report .mr-find input:not([type=checkbox]){min-height:26px;padding:3px 6px}@media(max-width:680px){#content:has(.month-report){padding:8px}.month-report .mr-column:not(.mr-analysis)>.mr-panel{height:auto;min-height:0}.month-report .mr-column:not(.mr-analysis)>.mr-panel>.mr-scroll{flex:none;min-height:170px;max-height:380px}.month-report .mr-account td,.month-report .mr-details td{padding-top:5px;padding-bottom:5px}}

/* Keep source detail optional and preserve five or more rows on short desktops. */
.month-report .mr-source-detail{min-height:0;padding:8px 12px}.month-report .mr-source-detail summary{cursor:pointer}.month-report .mr-source-detail details:not([open]) summary{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(min-width:1101px) and (max-height:800px){
 .month-report{padding:6px 14px 14px}.month-report .mr-heading{margin-bottom:6px;gap:16px}.month-report h1{font-size:20px}.month-report .mr-filters{padding-bottom:6px;gap:8px}.month-report .mr-filters label{gap:2px}.month-report .mr-filters label:first-child{min-width:220px}.month-report .mr-period{padding:4px 0}.month-report .mr-coverage{margin-top:6px;padding:4px 7px;line-height:1.35}.month-report .mr-grid{margin-top:6px;gap:12px}.month-report h2{margin-bottom:5px;font-size:13px}.month-report .mr-column:not(.mr-analysis)>.mr-panel{height:calc(100dvh - 345px);min-height:0}.month-report .mr-panel-heading{min-height:30px;padding:4px 10px}.month-report .mr-detail-filters{padding:2px 10px 4px}.month-report .mr-selected{min-height:26px;padding:4px 9px}.month-report .mr-source-detail{padding:4px 10px;line-height:1.45;max-height:135px;overflow:auto}.month-report .mr-total{min-height:30px;padding:7px 8px}.month-report .mr-pagination{padding:3px 8px}.month-report .mr-details td{padding-top:3px;padding-bottom:3px}.month-report .mr-analysis .mr-panel{margin-bottom:7px}.month-report .mr-analysis table td{padding:5px 10px}.month-report .mr-pending{padding:8px 10px}.month-report .mr-pending p{margin:4px 0}.month-report .mr-export{padding:8px 10px}
}

.mr-allocation-context{padding:8px;background:#edf5f1;border:1px solid #cadcd3;border-radius:5px;font-size:12px;overflow-wrap:anywhere}.mr-allocation-context h4{margin:5px 0}.mr-allocation-context table{width:100%;border-collapse:collapse;font-size:11px}.mr-allocation-context th,.mr-allocation-context td{padding:4px;border-bottom:1px solid #d4e3db;text-align:right}.mr-allocation-context th:first-child{text-align:left}
.month-report .mr-grid[hidden]{display:none}.financial-statements{min-width:0;margin:10px 0}.fs-tabs{display:flex;flex-wrap:wrap;gap:6px}.fs-tabs button[aria-pressed=true]{background:#275e4c;color:white}.fs-body:not(:empty){margin-top:10px;padding:12px;background:#fff;border:1px solid #d4dfd9;border-radius:5px;min-width:0}.fs-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.fs-heading label{display:flex;gap:5px;align-items:center}.fs-coverage{padding:8px;background:#f8efd9;font-size:12px;line-height:1.6}.fs-scroll{overflow:auto;max-width:100%;max-height:60vh}.financial-statements table{width:100%;border-collapse:collapse;font-size:12px}.financial-statements th,.financial-statements td{padding:8px;border-bottom:1px solid #dce4de;text-align:right;white-space:nowrap}.financial-statements th:first-child{text-align:left}.financial-statements thead th{position:sticky;top:0;background:#edf3ef;z-index:1}.financial-statements tfoot td,.financial-statements tfoot th{font-weight:700;background:#edf3ef;position:sticky;bottom:0;z-index:1}.financial-statements .fs-value{border:0;background:transparent;color:#1b5f82;text-decoration:underline;padding:2px;min-width:55px}.fs-summary{display:flex;flex-wrap:wrap;gap:10px}.fs-summary>div{background:#edf3ef;padding:8px 12px;flex:1;min-width:150px}.fs-summary dt{font-size:12px}.fs-summary dd{margin:5px 0 0;font-weight:700}.fs-details{border-top:1px solid #d4dfd9;margin-top:15px;padding-top:8px}.fs-pagination{display:flex;align-items:center;gap:10px;margin-top:10px;flex-wrap:wrap}.financial-statements h3{font-size:14px;margin:14px 0 6px}@media(max-width:600px){.fs-body:not(:empty){padding:8px}.fs-summary>div{min-width:110px}.fs-heading{gap:8px}.fs-heading h2{width:100%}}

/* Keep the approved desktop detail height and fixed totals unchanged. */
@media(min-width:1101px){.month-report{position:relative}.financial-statements>.fs-tabs{position:absolute;top:16px;right:120px}.financial-statements .fs-tabs button{min-height:26px;padding:4px 8px;font-size:11px}.financial-statements:has(.fs-body:empty){margin:0}}
@media(min-width:1101px) and (max-height:800px){.financial-statements>.fs-tabs{top:6px}}

/* 1107-08 step 4: entity tags (store colours from organisation settings) switch the report scope. */
.month-report .mr-entities{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 8px}
.month-report .mr-entity{height:26px;min-height:26px;padding:0 12px;border-radius:999px;border:0;background:var(--c,#6E726A);color:#fff;font-size:12px;font-weight:600;opacity:.4;cursor:pointer}
.month-report .mr-entity[aria-pressed=true]{opacity:1}
.month-report .mr-entity-total{background:#fff;color:#24312a;border:1px solid #cfd6d0}
.month-report .mr-entity-total[aria-pressed=true]{background:#24312a;color:#fff}
