/* The scroll container must be allowed to shrink inside the viewport. */
#sidebar.dept-sidebar{height:100vh;height:100dvh;max-height:100dvh;display:flex;flex-direction:column;overflow:hidden;min-height:0;box-sizing:border-box;padding-bottom:max(10px,env(safe-area-inset-bottom))}
#sidebar.dept-sidebar>.brand{flex:0 0 auto;max-height:104px;margin-bottom:12px}
#sidebar.dept-sidebar>.side-scroll{flex:1 1 0;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;padding-bottom:8px;scroll-padding:12px}
#sidebar.dept-sidebar>.dept-sidebar-foot{flex:0 0 auto;margin-top:6px;min-height:44px;padding:10px 8px 2px}
#sidebar.dept-sidebar .side-scroll::-webkit-scrollbar{width:6px}#sidebar.dept-sidebar .side-scroll::-webkit-scrollbar-thumb{background:#738b9a;border-radius:4px}
.e529-dialog{width:min(1120px,calc(100vw - 30px));max-width:1120px}.e529-root{display:grid;gap:14px;min-width:0}.e529-root h3{font-size:16px;margin:0 0 10px}.e529-root fieldset{border:1px solid #d6e0e8;border-radius:12px;padding:14px;min-width:0;margin:0}.e529-root legend{padding:0 6px;font-weight:650;font-size:13px}.e529-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.e529-root label:not(.check){display:flex;flex-direction:column;gap:6px;font-size:12px;min-width:0}.e529-root input:not([type=checkbox]),.e529-root select,.e529-root textarea{width:100%;min-width:0;box-sizing:border-box}.e529-root .check{display:flex;gap:9px;align-items:flex-start;font-size:12px;line-height:1.5}.e529-root .check input{flex:0 0 auto;margin-top:3px}.e529-root p{font-size:12px;line-height:1.5;margin:4px 0}.e529-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.e529-tax{margin-top:12px!important;position:relative}.e529-tax summary{cursor:pointer;font-weight:650;display:flex;gap:10px;align-items:center}.e529-tax>div{margin-top:14px}.e529-preview{overflow-x:auto;max-height:450px;border:1px solid #d6e0e8;border-radius:10px}.e529-preview table{border-collapse:collapse;min-width:740px;width:100%;font-size:12px}.e529-preview th{position:sticky;top:0;background:#f4f7f9;z-index:1;text-align:left}.e529-preview td,.e529-preview th{padding:9px;border-bottom:1px solid #e5ebef}.e529-preview td:nth-last-child(2){text-align:right;white-space:nowrap}.e529-preview small{display:block;color:#556b7b;font-size:11px}.e529-credit-results{max-height:175px;overflow:auto;display:grid;gap:4px;background:#f4f7f9;border-radius:8px}.e529-credit-results .btn{white-space:normal;text-align:left;justify-content:flex-start}.e529-credit-selected{font-size:11px;overflow-wrap:anywhere}.e529-error{color:#a61c31;white-space:pre-wrap;font-size:13px}.m529-note{padding:12px;border:1px solid #dae3e9;background:#f5f8fa;border-radius:9px;font-size:12px;line-height:1.55}.m529-warning{padding:12px;border:1px solid #dfbf6e;background:#fff8e9;border-radius:9px;font-size:12px;line-height:1.55}.m529-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}.m529-kpis>div{border:1px solid #d6e0e8;border-radius:10px;padding:14px;display:grid;gap:8px}.m529-kpis strong{font-size:22px}.m529-invoice{max-width:880px}.m529-invoice p{font-size:13px;line-height:1.6}.e529-issues{max-height:200px;overflow:auto}.e529-root [aria-busy=true]{opacity:.8}
@media(max-width:700px){.e529-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0}.e529-grid{grid-template-columns:1fr}.e529-root .btn{min-height:44px}.m529-kpis{grid-template-columns:1fr}.e529-preview table{min-width:620px}.e529-preview{max-height:50dvh}.e529-root fieldset{padding:12px}.e529-root .check{min-height:44px;align-items:center}}
@media(max-height:480px){#sidebar.dept-sidebar>.brand{max-height:60px;margin-bottom:5px}#sidebar.dept-sidebar>.brand img{max-height:56px;width:auto}}

html[data-x520-density] .m529-month-parent .fx19-parent-label{display:none}html[data-x520-density] .m529-month-parent .fin52-toggle b{display:flex;align-items:center;gap:8px;flex:1 0 220px;max-width:100%}html[data-x520-density] .m529-month-parent .m529-month{flex:0 0 auto;font-variant-numeric:tabular-nums;border:1px solid #b7cec2;border-radius:4px;padding:2px 4px;font-size:11px}html[data-x520-density] .m529-month-parent .m529-group-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}html[data-x520-density] .m529-month-parent .fin52-toggle>span:last-child>small:last-child{overflow:hidden;text-overflow:ellipsis;flex:0 3 150px}
@media(max-width:700px){html[data-x520-density] .m529-month-parent .fin52-toggle b{flex-basis:120px}.e529-preview table{min-width:0}.e529-preview thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.e529-preview tbody,.e529-preview tr,.e529-preview td{display:block;width:100%;box-sizing:border-box}.e529-preview tr{padding:8px 0;border-bottom:1px solid #ccd8e0}.e529-preview td{border:0;padding:4px 10px}.e529-preview td:nth-child(2)::before{content:'Competência / vencimento: ';font-weight:600}.e529-preview td:nth-child(3){text-align:left;font-weight:700}.e529-preview td:nth-child(3)::before{content:'Valor: '}.e529-preview td:nth-child(4)::before{content:'Ação: ';font-weight:600}}
