/* Scoped layout. Shared 32/44/56 and 48/56/64 px row density remains authoritative. */
#m540-root{min-width:0}.m540-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}.m540-top h2{margin:0;font-size:20px}.m540-top p{margin:5px 0 0;color:var(--muted,#607389);font-size:12px}.m540-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0}.m540-kpis>div{background:#f5f8fa;border:1px solid #dce6ec;border-radius:10px;padding:10px 12px}.m540-kpis small{display:block;font-size:11px;color:#607389}.m540-kpis b{display:block;font-size:23px;line-height:1.25;margin-top:3px;color:#18324f}.m540-tabs{display:flex;gap:6px;align-items:center;margin:12px 0}.m540-tabs button[aria-pressed=true]{background:#e8f2ef;border-color:#7eb4a3;color:#125b48}.m540-filter{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:12px 0}.m540-filter label{display:grid;gap:4px;flex:1;min-width:138px;font-size:11px;color:#486079}.m540-filter input{width:100%;min-height:36px}.m540-filter label.m540-search{flex:2;min-width:220px}.m540-filter .m540-check{display:flex;align-items:center;gap:6px;flex:none;min-width:0;min-height:36px}.m540-check input{width:18px;height:18px;min-height:18px;flex:none}.m540-note{font-size:12px;line-height:1.45;color:#52677d;margin:9px 0}.m540-warning{background:#fff8ea;border:1px solid #e5c58e;border-radius:8px;padding:9px 12px;font-size:12px;color:#754c19;line-height:1.4}.m540-basis{font-size:11px;color:#586e82;padding:9px 0}.m540-basis summary{cursor:pointer}.m540-table{margin:8px 0}.m540-table table{table-layout:fixed;width:100%;min-width:0}.m540-table th{font-size:11px;color:#5b7186;font-weight:500}.m540-table td{font-size:12px;font-variant-numeric:tabular-nums}.m540-table th:first-child{width:30%}.m540-table th:last-child{width:90px}.m540-table button.m540-name{background:transparent;border:0;color:#1b3752;font:inherit;text-align:left;cursor:pointer;padding:0;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:600}.m540-extra{display:none;white-space:normal;font-size:11px;line-height:1.5;margin-top:8px;color:#51697e}.m540-table .r522-expanded .m540-extra{display:block}.m540-progress{display:flex;align-items:center;gap:5px}.m540-progress progress{width:52px;height:5px;accent-color:#147b65}.m540-progress span{font-size:11px;white-space:nowrap}.m540-negative{color:#b22d3c!important;font-weight:600}.m540-tag{display:inline-block;font-size:10px;color:#60738a;padding:2px 5px;border-radius:4px;border:1px solid #dce5ec;margin:3px 0}.m540-pager{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px;margin:10px 0}.m540-mobile{display:none}#m540-results .panel{padding:14px}#m540-error{color:#607389;font-size:13px;min-height:1em}#m540-results[aria-busy=true]{opacity:.65}.m540-dialog{padding:0;border:1px solid #d6e1eb;border-radius:16px;max-width:800px;width:calc(100% - 32px);max-height:calc(100dvh - 32px);color:#18324f;box-shadow:0 24px 80px #1233;overflow:hidden}.m540-dialog::backdrop{background:#18324f66}.m540-dialog>section{display:flex;flex-direction:column;max-height:calc(100dvh - 34px);min-height:120px}.m540-dialog header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border-bottom:1px solid #dce5ed;padding:16px 20px}.m540-dialog header h2{margin:0;font-size:20px}.m540-dialog header p{margin:4px 0 0;font-size:11px;color:#60758b}.m540-dialog header button{flex:none}.m540-dialog .m540-body{padding:16px 20px;overflow:auto;min-height:0}.m540-dialog footer{display:flex;gap:8px;justify-content:flex-end;border-top:1px solid #dce5ed;padding:12px 20px}.m540-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.m540-form label{display:grid;gap:5px;font-size:12px;color:#405972}.m540-form label.m540-wide{grid-column:1/-1}.m540-form :is(input,select,textarea){width:100%;min-width:0;min-height:38px;font:inherit;color:#203b57}.m540-form textarea{min-height:64px;resize:vertical}.m540-form small{font-size:11px;color:#697c8d}.m540-confirmation label{display:flex;gap:9px;align-items:flex-start;font-size:12px;line-height:1.4;margin:10px 0}.m540-confirmation input{width:18px;height:18px;flex:none}.m540-confirmation textarea{width:100%;min-height:60px}.m540-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}.m540-comparison>div{border:1px solid #dce5ed;border-radius:9px;background:#f7fafb;padding:12px}.m540-comparison h3{font-size:11px;text-transform:uppercase;letter-spacing:.04em;margin:0 0 8px;color:#6c7c8a}.m540-comparison b{font-size:22px}.m540-comparison p{margin:6px 0;font-size:12px}.m540-history article{border-bottom:1px solid #dce5ed;padding:10px 0;font-size:12px}.m540-history h3{font-size:13px;margin:0 0 6px}.m540-history p{margin:5px 0;overflow-wrap:anywhere}.m540-dialog [hidden],#m540-root [hidden]{display:none!important}.m540-unit{font-size:11px;color:#62758a}.m540-ledger th:first-child{width:42%}
@media(max-width:760px){.m540-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.m540-top{align-items:flex-start;flex-wrap:wrap}.m540-top h2{font-size:18px}.m540-desktop{display:none!important}.m540-mobile{display:block;font-size:11px;color:#5d7286;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.m540-table th:first-child{width:auto}.m540-table th:last-child{width:112px}.m540-table .m540-acc-col{width:90px}.m540-ledger th:first-child{width:auto}.m540-table td{font-size:12px}.m540-progress progress{display:none}.m540-filter .m540-search{min-width:100%;flex-basis:100%}.m540-filter .btn{min-height:44px}.m540-dialog{width:calc(100% - 12px);max-height:calc(100dvh - 12px);border-radius:12px}.m540-dialog>section{max-height:calc(100dvh - 14px)}.m540-dialog header{padding:12px}.m540-dialog header h2{font-size:18px}.m540-dialog .m540-body{padding:12px}.m540-dialog footer{padding:10px 12px;flex-wrap:wrap}.m540-dialog .btn,.m540-dialog .icon-btn,#m540-root .icon-btn{min-height:44px;min-width:44px}.m540-form{grid-template-columns:1fr;gap:10px}.m540-form :is(input,select,textarea){min-height:44px;font-size:16px}.m540-comparison{gap:8px}.m540-comparison>div{padding:9px}.m540-comparison b{font-size:20px}.m540-tabs .btn{min-height:44px}}
@media(prefers-reduced-motion:reduce){#m540-root *, .m540-dialog *{scroll-behavior:auto!important;transition:none!important}}

#m540-root .m540-mobile{display:none!important}#m540-error.m540-has-error{color:#b32d3f}@media(max-width:760px){#m540-root .m540-mobile{display:block!important}}

.m540-tabs{flex-wrap:wrap}.m540-confirmation label.m540-reason{display:grid;gap:5px}.m540-confirmation label.m540-reason textarea{min-width:0}.m540-table .r522-expanded .m540-name{white-space:normal;overflow:visible;overflow-wrap:anywhere}
@media(max-width:760px){html[data-x520-density] #m540-root .r522-row:not(.r522-expanded)>td:first-child>.r522-cell{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:2px}#m540-root .r522-row:not(.r522-expanded)>td:first-child>.r522-cell>span:first-child{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.m540-kpis>div{padding:8px}.m540-kpis b{font-size:20px}.m540-kpis small{font-size:10px}.m540-top h2{font-size:17px}.m540-top>div{flex:1;min-width:130px}.m540-top .btn.primary{padding:9px;font-size:12px;max-width:135px}.m540-filter .btn{padding:8px;font-size:11px}.m540-tabs .btn{padding:7px;font-size:11px}.m540-tabs details{font-size:11px}}
