/* Billing only: shared density and other modules' saved layouts remain untouched. */
#bl543-root{padding:16px;min-width:0}.bl543-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.bl543-top h2{font-size:20px;margin:3px 0}.bl543-top small{font-size:10px;letter-spacing:.09em;color:#536a80}.bl543-top p{margin:4px 0;font-size:12px;color:#536a80}.bl543-top>div:last-child{display:flex;gap:8px;flex-wrap:wrap}.bl543-period{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin:12px 0}.bl543-period label,.bl543-grid label,.bl543-body form>label{display:flex;flex-direction:column;gap:5px;font-size:12px;min-width:0}.bl543-period input,.bl543-grid input,.bl543-grid select,.bl543-body textarea{width:100%;min-width:0;box-sizing:border-box;padding:8px 10px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#182b3e;font:inherit}.bl543-period .bl543-search{flex:1;min-width:180px}.bl543-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0}.bl543-kpis>div{border:1px solid #dce5e7;border-radius:10px;padding:10px 12px;background:#f9fbfc;min-width:0}.bl543-kpis small{display:block;font-size:11px;color:#536a80;line-height:1.3}.bl543-kpis b{display:block;font-size:22px;line-height:1.3;margin:4px 0;color:#123c42;overflow-wrap:anywhere}.bl543-note{font-size:12px;line-height:1.5;color:#536579;margin:10px 0}.bl543-warning{background:#fff8ed;border-left:3px solid #bb7a23;padding:9px 11px;font-size:12px;line-height:1.5;color:#73511b;border-radius:7px}.bl543-error{color:#9c2933;background:#fff1f2;padding:10px;border-radius:7px}.bl543-basis{font-size:12px;line-height:1.5;color:#52677c;margin-top:10px}.bl543-basis summary{cursor:pointer}.bl543-table{margin-top:10px}.bl543-table table{width:100%;table-layout:fixed;min-width:0}.bl543-table th:first-child{width:40%}.bl543-table th:last-child{width:90px}.bl543-table td,.bl543-table th{font-size:12px;vertical-align:middle;min-width:0}.bl543-table td>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bl543-table .bl543-extra{display:none;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.bl543-table tr.r522-expanded .bl543-extra{display:block!important;margin-top:8px;white-space:normal}.bl543-extra p{margin:5px 0}.bl543-date-mobile{display:none!important}.bl543-table td:last-child{white-space:nowrap}.bl543-pager{display:flex;align-items:center;justify-content:flex-end;gap:10px;font-size:12px;margin:10px 0}.bl543-dialog{width:min(1000px,96vw);max-height:94dvh;border:1px solid #d7e0e5;padding:0;border-radius:15px;background:#f8fafc;color:#183145}.bl543-dialog::backdrop{background:#182d4266}.bl543-dialog>section{display:flex;flex-direction:column;max-height:92dvh}.bl543-dialog header{padding:14px 18px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #dde6ed;background:#fff;gap:8px}.bl543-dialog header h2{font-size:20px;margin:0;outline:none}.bl543-dialog header p{font-size:12px;margin:4px 0;color:#5f7384}.bl543-body{padding:14px 18px;overflow:auto;min-height:0}.bl543-dialog footer{padding:12px 18px;border-top:1px solid #dde6ed;display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;background:#fff}.bl543-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:14px}.bl543-wide{grid-column:1/-1}.bl543-body textarea{min-height:60px;resize:vertical}.bl543-body .bl543-check{flex-direction:row;align-items:flex-start;gap:8px;margin:12px 0;font-size:12px;line-height:1.5}.bl543-check input{flex:0 0 auto;width:18px;height:18px;margin:0}.bl543-history article{padding:12px;border:1px solid #dce5eb;border-radius:10px;margin:9px 0;background:#fff}.bl543-history p{font-size:12px;overflow-wrap:anywhere}.bl543-dialog [hidden],#bl543-root [hidden]{display:none!important}.bl543-body .bl543-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
.bl543-installments{display:grid;gap:8px;margin:10px 0}.bl543-installments article{display:grid;grid-template-columns:30px 1fr 1fr 42px;align-items:end;gap:10px;padding:10px;border:1px solid #dce5e7;border-radius:9px}.bl543-installments article>b{align-self:center}.bl543-installments label{display:flex;flex-direction:column;gap:5px;font-size:12px;min-width:0}.bl543-installments input{width:100%;min-width:0;padding:8px 10px;border:1px solid #cbd5e1;border-radius:8px;font:inherit;box-sizing:border-box}.bl543-part-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.bl543-part-head h3{margin:10px 0;font-size:15px}
@media(max-width:700px),(pointer:coarse){#bl543-root{padding:12px}.bl543-top{align-items:flex-start;flex-direction:column}.bl543-top h2{font-size:19px}.bl543-top>div:last-child{width:100%}.bl543-top>div:last-child button{flex:1}.bl543-top .btn,.bl543-dialog .btn,.bl543-dialog .icon-btn,#bl543-root .btn,#bl543-root .icon-btn{min-height:44px}.bl543-dialog .icon-btn{min-width:44px}.bl543-kpis{grid-template-columns:1fr 1fr}.bl543-kpis b{font-size:19px}.bl543-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:97dvh}.bl543-dialog>section{max-height:95dvh}.bl543-dialog header,.bl543-dialog footer,.bl543-body{padding:12px}.bl543-grid{grid-template-columns:1fr}.bl543-period .bl543-search{flex-basis:100%}.bl543-period input,.bl543-grid input,.bl543-body textarea,.bl543-installments input{min-height:44px;font-size:16px}.bl543-dialog footer{justify-content:stretch}.bl543-dialog footer .btn{flex:1}.bl543-check{min-height:44px}.bl543-pager{font-size:11px;justify-content:center}.bl543-installments article{grid-template-columns:20px minmax(0,1fr) minmax(0,1fr) 44px;gap:5px;padding:8px}.bl543-installments input{padding:8px 4px}.bl543-installments .icon-btn{min-width:44px;min-height:44px}
.bl543-table th:first-child{width:auto}.bl543-table th:nth-child(2),.bl543-table td:nth-child(2){display:none!important}.bl543-table th:nth-child(3){width:98px}.bl543-table th:last-child{width:98px}.bl543-table td,.bl543-table th{font-size:11px;padding-left:5px!important;padding-right:5px!important}.bl543-table .bl543-date-mobile{display:block!important;font-size:10px;line-height:13px;color:#536a80}.bl543-table tr.r522-row:not(.r522-expanded)>td:first-child>.r522-cell{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:2px}.bl543-table td:first-child>.r522-cell>span{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bl543-table .nf-scroll{overflow:visible}}
@media(prefers-reduced-motion:reduce){#bl543-root *,.bl543-dialog *{scroll-behavior:auto!important;transition:none!important}}
