:root{--nav:#112f29;--nav2:#183d34;--green:#176b52;--green-dark:#0d4f3b;--mint:#e9f4ed;--bg:#f5f6f3;--ink:#20352d;--muted:#78857f;--line:#e4e9e3;--white:#fff;--orange:#ad7620;--red:#b14e44;--shadow:0 4px 24px #122e2306}*{box-sizing:border-box}body{margin:0;font:14px/1.5 'Segoe UI',Arial,sans-serif;color:var(--ink);background:var(--bg)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}a{color:var(--green)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #7bbf9c;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:30px;line-height:1.2;letter-spacing:-1px;font-weight:650;margin-bottom:9px}h2{font-size:17px;font-weight:650;letter-spacing:-.3px;margin:0}h3{font-size:14px;margin-bottom:9px}p{margin-bottom:16px}small{font-size:11px}.muted{color:var(--muted)}.sidebar{position:fixed;inset:0 auto 0 0;width:248px;background:var(--nav);color:#dbe8df;padding:31px 20px 20px;display:flex;flex-direction:column;z-index:10}.brand{display:flex;gap:12px;align-items:center;color:#fff;text-decoration:none;font-size:13px;letter-spacing:1.2px;font-weight:650;white-space:nowrap}.brand small{display:block;letter-spacing:1.8px;font-size:8px;color:#98b5a8;font-weight:400;margin-top:3px}.brand-icon{width:40px;height:42px;border:1px solid #658477;border-radius:11px;font:italic 30px/35px Georgia;text-align:center;letter-spacing:-7px;padding-right:7px;color:#f6f7ef}.brand-icon span{color:#a5c1ae}.building-switch{display:flex;align-items:center;gap:10px;background:#24483e;margin:35px 0 27px;padding:13px 10px;border-radius:9px;font-size:12px}.building-switch strong,.building-switch small{display:block}.building-switch small{color:#9eb8ac;font-size:10px;margin-top:2px}.building-symbol{font-size:24px;color:#bcd3c6}.online-dot{width:6px;height:6px;border-radius:100%;background:#add5b9;margin-left:auto}nav .nav-label{font-size:9px;font-weight:600;letter-spacing:1.7px;color:#84a293;margin:24px 14px 10px}nav .nav-button{display:flex;align-items:center;gap:13px;width:100%;border:0;background:none;color:#aec6b9;text-align:left;padding:11px 14px;border-radius:7px;margin:2px 0;font-size:12px;font-weight:500}nav .nav-button:hover{background:#1b4035;color:#fff}nav .nav-button.active{background:#e7efe6;color:#173b2c;font-weight:650}svg.icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}.nav-count{background:#e3b567;color:#19372c;font-size:9px;margin-left:auto;border-radius:5px;padding:1px 5px}.sidebar-bottom{display:flex;gap:10px;align-items:center;margin-top:auto;padding-top:22px;border-top:1px solid #385347;font-size:11px}.sidebar-bottom small{display:block;color:#8fa99b;font-size:10px}.mini-avatar{background:#3a594c;color:#d8e8da;width:34px;height:34px;display:grid;place-items:center;border-radius:50%;font-size:10px;font-weight:650}.logout{border:0;background:transparent;color:#c7d6cc;font-size:20px}.sidebar-bottom form{margin-left:auto}.workspace{margin-left:248px}.topbar{height:75px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 36px;gap:15px}.breadcrumb{display:flex;align-items:center;gap:14px;font-size:11px;color:#8a948d}.breadcrumb strong{font-weight:500;color:#33473b}.top-actions{display:flex;align-items:center;gap:12px}.private-pill{display:flex;gap:6px;align-items:center;font-size:10px;color:#839189;margin-right:13px}.private-pill i{width:5px;height:5px;background:#54a67a;border-radius:50%}select,input,textarea{border:1px solid #dce3db;border-radius:7px;background:#fff;color:var(--ink);padding:10px 12px;max-width:100%}select{padding-right:25px}#year{font-size:11px;padding:8px 28px 8px 10px}.button{border:1px solid #d9e2d9;background:#fff;color:#3c5145;border-radius:7px;padding:9px 14px;font-size:12px;font-weight:550;display:inline-flex;justify-content:center;align-items:center;gap:8px;text-decoration:none;white-space:nowrap}.button:hover{background:#f0f5ef}.button.primary{background:var(--green);border-color:var(--green);color:white}.button.primary:hover{background:var(--green-dark)}.button.small{font-size:11px;padding:7px 11px}.button:disabled{opacity:.5;cursor:wait}.button.danger{color:var(--red)}.button.ghost{border:0;background:none;color:var(--green);padding:5px 0}.button.full{width:100%;margin-top:8px}#main{padding:32px 36px 22px;max-width:1700px;margin:auto;min-height:calc(100vh - 130px)}.page-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.page-head p{font-size:12px;color:var(--muted);margin:0}.head-actions{display:flex;gap:9px;flex-wrap:wrap}.eyebrow{font-size:9px;color:#84958a;font-weight:650;letter-spacing:1.8px;margin-bottom:12px}.notice-bar{display:flex;align-items:center;gap:12px;font-size:11px;background:#f5f0e3;border:1px solid #e9e0c9;border-radius:8px;color:#80652c;padding:11px 15px;margin-bottom:24px}.notice-bar strong{font-weight:600}.notice-bar .button{margin-left:auto;font-size:10px;flex:none}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:24px}.stat{background:white;border:1px solid var(--line);border-radius:10px;padding:20px 21px;box-shadow:var(--shadow)}.stat-top{display:flex;align-items:center;justify-content:space-between;color:#748278;font-size:11px}.stat-icon{display:grid;place-items:center;width:30px;height:30px;background:#f0f5ed;color:#62816c;border-radius:8px}.stat-value{font-size:27px;font-weight:650;letter-spacing:-.7px;margin:12px 0 8px;white-space:nowrap}.stat-meta{font-size:10px;color:#8b968f;min-height:15px}.stat.emphasis{background:var(--nav);border-color:var(--nav);color:#fff}.stat.emphasis .stat-top{color:#c4d4c8}.stat.emphasis .stat-icon{background:#2d4f40;color:#a6c5ae}.stat.emphasis .stat-meta{color:#a1bca9}.grid-2{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:22px;margin-bottom:24px}.card{background:white;border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);overflow:hidden}.card-head{padding:22px 23px 17px;display:flex;justify-content:space-between;align-items:start;gap:12px}.card-head p{font-size:11px;color:var(--muted);margin:5px 0 0}.card-body{padding:0 23px 23px}.legend{display:flex;gap:14px;font-size:10px;color:#7a877d}.legend span{display:flex;align-items:center;gap:5px}.dot{width:6px;height:6px;border-radius:50%;background:var(--green);display:inline-block}.dot.light{background:#bbcab3}.chart{width:100%;height:198px;display:block}.chart text{font:10px 'Segoe UI',sans-serif;fill:#96a098}.chart .grid{stroke:#edf0eb;stroke-width:1}.ring-wrap{display:flex;align-items:center;gap:26px;min-height:190px;padding:5px 0}.ring{height:148px;width:148px;flex:none;border-radius:100%;position:relative;background:conic-gradient(#244b39 0deg 80deg,#719174 80deg 140deg,#a8bda4 140deg 240deg,#d8e1d2 240deg 360deg)}.ring:after{content:'';position:absolute;inset:20px;border-radius:50%;background:white}.ring-center{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;z-index:1}.ring-center strong{font-size:17px;letter-spacing:-.4px}.ring-center small{font-size:9px;color:#7f8c82;margin-top:4px}.ring-legend{flex:1;min-width:0}.ring-item{display:flex;align-items:center;gap:7px;padding:6px 0;font-size:10px}.ring-item .label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ring-item strong{margin-left:auto;font-size:10px;font-weight:600}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:11px}th{text-align:left;color:#8b978e;background:#fafbf9;letter-spacing:.4px;text-transform:uppercase;font-size:9px;font-weight:600;padding:12px 22px;border-top:1px solid #edf0e9;border-bottom:1px solid #edf0e9;white-space:nowrap}td{padding:13px 22px;border-bottom:1px solid #eef1ec;color:#45584b;vertical-align:middle}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fcfdfb}td strong{font-weight:600;color:#2b4234}td small{display:block;color:#8d9a90;font-size:9px;margin-top:3px}.amount{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:600}.positive{color:#438064}.negative{color:#6f6559}.right{text-align:right}.nowrap{white-space:nowrap}.badge{display:inline-block;font-size:9px;line-height:1.4;padding:4px 7px;border-radius:5px;background:#edf4ec;color:#5e8066;white-space:nowrap}.badge.warn{background:#fbf0d9;color:#a9853b}.badge.gray{background:#f1f3ef;color:#8c968c}.badge.red{background:#f9ebe7;color:#aa6556}.text-link{background:none;border:0;color:var(--green);padding:4px;font-size:11px;font-weight:550}.filters{padding:0 22px 18px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.filters input{font-size:11px;min-width:240px;padding:9px 12px;flex:1}.filters select{font-size:11px;padding:9px 12px}.pagination{display:flex;justify-content:space-between;align-items:center;padding:14px 22px;border-top:1px solid var(--line);font-size:10px;color:#8c978c}.quick-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.quick{background:#fff;border:1px solid var(--line);border-radius:9px;display:flex;gap:12px;align-items:center;text-align:left;padding:18px;color:#45644f}.quick:hover{border-color:#91ad96}.quick strong{display:block;font-size:11px}.quick small{color:#8e9c90;font-size:10px}.quick svg{color:#718d75}.section-space{margin-top:23px}.empty{padding:35px;text-align:center;color:#8a968c;font-size:12px}.footer{padding:12px 36px 20px;font-size:9px;color:#a3ada4;display:flex;justify-content:space-between}.fraction-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.fraction-card{padding:23px}.fraction-top{display:flex;align-items:center;gap:12px;margin-bottom:18px}.fraction-avatar{background:#edf3e8;color:#58704e;width:42px;height:42px;border-radius:9px;display:grid;place-items:center;font-size:20px;font-weight:650}.fraction-name{font-size:12px;font-weight:600}.fraction-info{font-size:11px;color:#829080;line-height:1.8;word-break:break-word}.fraction-bottom{margin-top:20px;padding-top:15px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.metric-row{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line);font-size:12px}.metric-row:last-child{border:0}.progress{height:5px;background:#eef2ea;border-radius:4px;overflow:hidden;margin-top:7px}.progress span{display:block;height:100%;background:#62896c;border-radius:4px}.warning-box{background:#fff5df;border:1px solid #eadbb4;padding:14px;border-radius:8px;font-size:12px;color:#8f722d}.success-box{background:#edf6ee;padding:14px;border-radius:8px;font-size:12px;color:#48764f}.loading{padding:100px;text-align:center;color:#6a826e}.error{background:#fdeee9;color:#a64d3b;border-radius:7px;padding:12px;font-size:12px}dialog{border:1px solid #dce5d9;border-radius:13px;box-shadow:0 25px 100px #001b2a44;max-width:min(850px,calc(100vw - 30px));width:650px;padding:0;max-height:90vh;color:var(--ink)}dialog::backdrop{background:#0c241b88;backdrop-filter:blur(2px)}.dialog-head{padding:22px 25px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;background:#fff;z-index:2}.dialog-head h2{font-size:20px}.icon-button{border:0;background:#f0f4ed;font-size:22px;color:#6b826d;border-radius:50%;width:30px;height:30px;line-height:20px}#dialog-body{padding:24px 25px}label{display:block;font-size:11px;font-weight:600;color:#60725f;margin-bottom:15px}label input,label select,label textarea{display:block;width:100%;margin-top:7px;font-size:13px;font-weight:400}textarea{min-height:110px;resize:vertical}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.form-grid .span2{grid-column:span 2}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px;border-top:1px solid var(--line);padding-top:18px}.checkbox{display:flex;align-items:center;gap:8px;font-weight:400}.checkbox input{width:16px;height:16px;margin:0}.helper{font-size:11px;line-height:1.6;color:#8b9588;margin-top:6px}.dialog-table{max-height:320px;overflow:auto;margin:15px 0}.dialog-table td,.dialog-table th{padding:10px 12px}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);background:#173f2c;color:#fff;padding:12px 22px;border-radius:8px;box-shadow:0 6px 30px #0003;opacity:0;pointer-events:none;transition:.2s;z-index:100;font-size:12px}#toast.show{opacity:1;transform:translate(-50%,0)}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}#menu-button{display:none}.login-body{min-height:100vh;display:grid;place-items:center;background:radial-gradient(ellipse at 25% 20%,#365e48,#102e26 70%);padding:30px}.login-card{background:#fafbf6;padding:45px 48px;border-radius:18px;width:min(450px,100%);box-shadow:0 30px 90px #001e2480}.login-brand{color:#244831;margin-bottom:50px}.login-brand .brand-icon{color:#204c33;border-color:#8ba584}.login-brand .brand-icon span{color:#6f8f68}.login-card h1{font-size:27px}.login-card .muted{font-size:12px;margin-bottom:28px}.login-card form{margin-top:25px}.login-foot{text-align:center;font-size:10px;color:#98a28f;margin:22px 0 0}.report-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:25px}.file-drop{display:block;padding:30px;border:1px dashed #9bb193;border-radius:10px;background:#f6f9f3;text-align:center}.file-drop input{margin:15px auto 0;max-width:100%}.audit-list{max-height:650px;overflow:auto}.audit-item{border-bottom:1px solid var(--line);padding:15px 23px}.audit-item strong{font-size:11px}.audit-item p{font-size:10px;margin:5px 0 0;color:#8a9585;word-break:break-word}.flex{display:flex;gap:12px;align-items:center}.w100{width:100%}@media(min-width:1600px){.ring-wrap{gap:40px}.ring{height:170px;width:170px}}@media(max-width:1200px){.sidebar{width:215px;padding-left:15px;padding-right:15px}.workspace{margin-left:215px}#main{padding:28px 25px}.topbar{padding:0 25px}.brand{font-size:11px}.stat{padding:17px}.stat-value{font-size:23px}.grid-2{grid-template-columns:1fr}.ring-wrap{justify-content:center}.ring-legend{flex:0 1 350px}.fraction-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:850px){.sidebar{transform:translateX(-100%);transition:.2s;width:248px}.sidebar.open{transform:translateX(0)}.workspace{margin:0}#menu-button{display:block;background:none;border:0;color:#546f56;font-size:19px}.stats{grid-template-columns:repeat(2,1fr)}.topbar{padding:0 20px;height:64px}.private-pill{display:none}#main{padding:25px 20px}.page-head{align-items:flex-start}.head-actions{justify-content:flex-end}.quick-actions{grid-template-columns:1fr}.footer{padding:20px;font-size:8px}.top-actions{gap:6px}.breadcrumb{gap:9px}.report-summary{grid-template-columns:1fr}}@media(max-width:550px){h1{font-size:25px}.stats{gap:11px}.stat{padding:15px}.stat-value{font-size:22px}.stat-meta{font-size:9px}.page-head{display:block}.head-actions{justify-content:flex-start;margin-top:18px}.topbar #refresh{display:none}.breadcrumb>span{display:none}.fraction-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.form-grid .span2{grid-column:1}.notice-bar{align-items:flex-start;flex-wrap:wrap}.notice-bar .button{margin:0}.ring-wrap{gap:15px}.ring{width:128px;height:128px}.ring-center strong{font-size:15px}.card-head{padding:18px}.card-body{padding:0 18px 18px}.legend{gap:8px}.footer span:last-child{display:none}.login-card{padding:30px}td,th{padding:12px 16px}}
@media print{.sidebar,.topbar,.footer,.head-actions,.filters,.button,.text-link,.pagination,.notice-bar{display:none!important}.workspace{margin:0}#main{padding:0}.card{box-shadow:none;break-inside:avoid}.stats{grid-template-columns:repeat(4,1fr)}.stat.emphasis{background:white;color:#20352d}.stat.emphasis .stat-top,.stat.emphasis .stat-meta{color:#60725f}.table-wrap{overflow:visible}body{background:white}th{color:#333}h1{font-size:24px}}

.sidebar{overflow-y:auto}

#condo-select{max-width:170px;margin-top:8px;background:#fff;color:#173f2e;border:0;border-radius:5px;padding:5px;font-size:11px}.condo-hero{max-width:420px;width:100%;max-height:150px;object-fit:contain}.condo-banner{background:white;border:1px solid #e3e9df;border-radius:12px;padding:12px 22px;margin-bottom:20px}.condo-banner img{width:350px;max-width:100%;height:90px;object-fit:contain}.report-prose p{line-height:1.65;margin-bottom:14px}

.brand-mark{width:44px;height:44px;flex-shrink:0}.brand>span{font-size:19px;letter-spacing:-.5px}.brand small{font-size:8px;letter-spacing:1.4px}.sidebar .building-switch{padding-top:12px;padding-bottom:12px}.plan-row input[type=date]{min-width:145px}.plan-row input[type=number]{min-width:100px}.head-actions{flex-wrap:wrap}.footer{gap:16px;flex-wrap:wrap}

/* Personalização local: paleta e composição */
:root,html[data-palette="ocean"]{--nav:#132c43;--nav2:#1e3e59;--green:#206b9a;--green-dark:#155077;--mint:#e7f1f8;--bg:#f1f5f8;--ink:#20374a;--muted:#687d8e;--line:#dce5ec}
html[data-palette="plum"]{--nav:#34243e;--nav2:#4a3458;--green:#805780;--green-dark:#654267;--mint:#f2eaf3;--bg:#f7f3f7;--ink:#382b40;--muted:#837288;--line:#e7dfe9}
html[data-palette="slate"]{--nav:#252c34;--nav2:#39434f;--green:#4d637b;--green-dark:#35485d;--mint:#eaf0f5;--bg:#f4f5f7;--ink:#293441;--muted:#73808c;--line:#e0e5eb}
.sidebar{background:var(--nav)}.building-switch{background:var(--nav2)}nav .nav-button:hover{background:var(--nav2)}nav .nav-button.active{background:var(--mint);color:var(--green-dark)}
.progress span,.dot{background:var(--green)}.stat-icon,.badge{background:var(--mint);color:var(--green-dark)}
.brand>span{font-family:'Segoe UI',Arial,sans-serif;font-size:19px;font-weight:650;letter-spacing:-.65px}.brand-mark{width:46px;height:46px}
.brand small{letter-spacing:1.15px;font-size:7px;color:#bdcdd0}.brand{gap:10px}
.footer span:last-child{display:block!important}.footer a{font-weight:650;text-decoration:none}.footer a:hover{text-decoration:underline}
html[data-layout="compact"] .card,html[data-layout="compact"] .stat{border-radius:4px}
html[data-layout="compact"] td,html[data-layout="compact"] th{padding:8px 14px}
html[data-layout="compact"] .card-head{padding:16px 18px}
html[data-layout="compact"] .stat{padding:14px 18px}
html[data-layout="compact"] .stat-value{font-size:24px;margin:6px 0}
html[data-layout="compact"] #main{padding-top:22px}
html[data-layout="studio"] .card,html[data-layout="studio"] .stat{border-radius:18px;box-shadow:0 8px 25px #142b4010}
html[data-layout="studio"] .page-head{border-bottom:2px solid var(--line);padding-bottom:24px}
html[data-layout="studio"] h1{font-family:Georgia,serif;font-weight:400;font-size:35px;letter-spacing:-.5px}
html[data-layout="studio"] .stat.emphasis{background:var(--green-dark)}
.theme-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px}
.theme-choice{border:1px solid var(--line);border-radius:12px;padding:20px;background:white}
.theme-swatch{height:55px;border-radius:7px;margin-bottom:14px;background:linear-gradient(110deg,var(--sample) 35%,#e7ecef 35%)}
.brand-showcase{padding:35px;background:var(--nav);border-radius:16px;color:white;margin-bottom:25px}
.brand-showcase .brand{font-size:32px;justify-content:center}.brand-showcase .brand>span{font-size:32px}.brand-showcase .brand-mark{width:72px;height:72px}

/* Navegação e configurações */
.sidebar{padding:23px 18px 16px;overflow:hidden;height:100dvh}
.sidebar .brand{flex-shrink:0}.sidebar .building-switch{margin:20px 0 17px;flex-shrink:0;padding:10px}
#nav{flex:1;min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#ffffff40 transparent;padding:0 3px 10px}
nav .nav-label{margin:15px 12px 7px;font-size:9px}nav .nav-button{padding:10px 12px;gap:11px;margin:2px 0}
.sidebar-bottom{flex-shrink:0;margin-top:12px;padding-top:14px}
.settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:18px}
.settings-card{background:white;border:1px solid var(--line);border-radius:13px;min-height:160px;text-align:left;padding:23px;color:var(--ink);display:flex;flex-direction:column;align-items:flex-start;position:relative;gap:10px;transition:transform .15s,box-shadow .15s}
.settings-card:hover{transform:translateY(-2px);box-shadow:0 8px 24px #142b4010;border-color:var(--green)}
.settings-card>.icon{color:var(--green);width:24px;height:24px}.settings-card>strong{font-size:16px}.settings-card>span{color:var(--muted);font-size:12px}
.settings-card .settings-arrow{position:absolute;right:22px;top:22px;color:var(--green);font-size:22px}
.resident-photo,.fraction-avatar img{width:58px;height:58px;border-radius:50%;object-fit:cover;display:block}
.fraction-avatar:has(img){padding:0;background:none}.photo-editor{display:flex;align-items:center;gap:18px;margin:15px 0}
.photo-editor label{flex:1;margin:0}.support-message{font-size:14px;line-height:1.8;overflow-wrap:anywhere}
.license-id{display:block;padding:14px;background:var(--mint);border-radius:8px;overflow-wrap:anywhere}
td .button+.button,td .button+.text-link{margin-left:6px}input[type=color]{height:48px;padding:5px}
@media(max-height:760px){.sidebar{padding-top:18px}.sidebar .building-switch{margin:14px 0 10px}.sidebar .brand-mark{width:40px;height:40px}.sidebar .brand>span{font-size:18px}nav .nav-button{padding-top:9px;padding-bottom:9px}nav .nav-label{margin-top:12px}}
@media(max-width:550px){.settings-grid{grid-template-columns:1fr}.photo-editor{align-items:flex-start}.footer{align-items:flex-start}}

/* Estrutura consistente entre páginas e submenus */
*{box-sizing:border-box}
.workspace{min-width:0}.topbar{min-width:0;gap:16px}.breadcrumb{min-width:0}.breadcrumb strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#main{min-width:0;max-width:1600px;width:100%;margin-inline:auto}.page-head{gap:20px;align-items:flex-start}.page-head>div:first-child{min-width:0;flex:1}.head-actions{flex:0 1 55%;display:flex;gap:8px;justify-content:flex-end}
.head-actions .button{white-space:normal}.page-head h1{overflow-wrap:anywhere}.card,.stat{min-width:0}.table-wrap{max-width:100%;overflow-x:auto}
.context-nav{display:flex;align-items:center;gap:10px;flex-wrap:wrap;overflow:visible;padding:0 0 18px;margin-bottom:8px;min-height:55px;scrollbar-width:thin}.context-nav .button{flex-shrink:0}.context-nav>span{color:var(--muted);font-size:13px}
.config-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:start}.config-links{padding:4px 14px 14px}.config-links button{width:100%;border:0;border-bottom:1px solid var(--line);padding:17px 8px;background:transparent;color:var(--ink);display:flex;align-items:center;justify-content:space-between;gap:14px;text-align:left}.config-links button:last-child{border-bottom:0}.config-links button:hover{background:var(--mint);border-radius:8px}.config-links strong{font-size:14px;display:block}.config-links small{font-size:12px;color:var(--muted);display:block;margin-top:5px}.version-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.distribution-fraction{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:center}.metric-row>span{min-width:0;overflow-wrap:anywhere}.metric-row>span small{display:block}
.sidebar .building-switch>div{min-width:0;width:100%}#building-name{overflow-wrap:anywhere}#condo-select{width:100%;max-width:100%}
@media(max-width:1100px){.config-groups{grid-template-columns:1fr 1fr}.head-actions{flex-basis:50%}}
@media(max-width:700px){.config-groups{grid-template-columns:1fr}.page-head{display:block}.head-actions{margin-top:16px;justify-content:flex-start}.top-actions{flex-shrink:0}.breadcrumb strong{max-width:42vw}.distribution-fraction{grid-template-columns:1fr}.metric-row{gap:12px;align-items:flex-start;flex-wrap:wrap}.stat-top{overflow-wrap:anywhere}}

/* Navegação e fluxos administrativos */
html{scrollbar-gutter:stable}.top-actions{flex-wrap:wrap;justify-content:flex-end}.topbar{height:auto;min-height:74px;padding-top:12px;padding-bottom:12px}.sidebar nav{overscroll-behavior:contain}
.danger-notice{border-left:4px solid #a73535;background:#fff1f0;color:#712626;padding:16px 20px;margin-bottom:20px;border-radius:10px}.danger-notice p{overflow-wrap:anywhere}
.wizard-steps{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:20px;color:var(--muted)}.wizard-steps strong{color:var(--brand)}
.review-list{display:grid;grid-template-columns:1fr auto;gap:14px;border-block:1px solid var(--line);padding:18px 0}.review-list dd{margin:0;font-weight:700;text-align:right}.review-list dt{color:var(--muted)}
.table-wrap td:last-child .button{margin:3px}.config-links button:focus-visible,.context-nav button:focus-visible{outline:3px solid var(--brand);outline-offset:2px}
@media(max-width:760px){.private-pill{display:none}.topbar{align-items:flex-start}.top-actions{max-width:65%}.review-list{grid-template-columns:1fr}.review-list dd{text-align:left}}

.report-filters{display:flex;gap:18px;flex-wrap:wrap;padding:18px 24px;border-bottom:1px solid var(--line)}.report-filters label{flex:1;min-width:180px;margin:0}.report-filters input,.report-filters select{margin-top:7px}

#action-form:has(.danger-notice) .form-actions .primary{background:#a73535;border-color:#a73535;color:white}.report-filters input:focus-visible{outline:2px solid var(--green)}

.danger-notice ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 24px;padding-left:20px}.danger-notice li{overflow-wrap:anywhere}@media(max-width:550px){.danger-notice ul{grid-template-columns:1fr}}

.rubric-actions{white-space:nowrap}.rubric-actions .button{padding:7px 10px;font-size:12px}.rubric-actions .button+.button{margin-left:5px}

[hidden]{display:none!important}.list-filters{display:flex;gap:12px;flex-wrap:wrap;align-items:end;padding:16px 20px}.list-filters label{display:flex;flex-direction:column;gap:5px;flex:1 1 150px;min-width:130px;font-size:12px;color:var(--muted)}.list-filters input,.list-filters select{width:100%;min-width:0;padding:9px;border:1px solid var(--border);border-radius:8px;background:var(--surface,#fff);color:var(--text)}.list-filters label:first-child{flex-basis:220px}.list-filter-count{padding:0 20px 12px;color:var(--muted);font-size:12px;margin:0}.filters-card>.helper{padding:0 20px 16px;margin:0}.quota-filters label{flex-basis:180px}tfoot{background:var(--bg,#f5f7f9);font-weight:600}tfoot th,tfoot td{padding:14px}

.list-advanced{flex:2 1 300px}.list-advanced summary{padding:9px 0;cursor:pointer;font-size:13px;color:var(--text)}.list-advanced .list-filters{padding:10px 0 0}.list-advanced:not([open]){flex:0 1 auto}

/* Filtros de lista: uma barra por página. */
.compact-filters{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 24px;padding:14px 16px;border:1px solid var(--border,#dce4ea);border-radius:12px;background:var(--surface,#fff)}
.compact-filters input,.compact-filters select{height:40px;padding:8px 12px;border:1px solid #cbd7df;border-radius:8px;background:#fff;color:var(--text,#19364a);font:inherit;font-size:13px;min-width:0}
.compact-filters .compact-search{flex:1 1 260px;max-width:520px}.compact-filters select{max-width:230px}.compact-date{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted,#637b8a)}.compact-date input{max-width:160px}.compact-count{margin-left:auto;font-size:12px;color:var(--muted,#637b8a);white-space:nowrap}
.column-sort{border:0;background:transparent;color:inherit;font:inherit;text-transform:inherit;letter-spacing:inherit;padding:0;cursor:pointer;text-align:inherit}.column-sort:hover{color:#206d93}.column-sort:focus-visible{outline:2px solid #206d93;outline-offset:5px}th[aria-sort="ascending"] .column-sort:after{content:' ↑'}th[aria-sort="descending"] .column-sort:after{content:' ↓'}
.cancelled-summary{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:112px;padding:22px;text-align:center}.cancelled-summary p{margin:0}.cancelled-summary small{color:var(--muted,#637b8a)}
@media(max-width:650px){.compact-filters .compact-search{max-width:none;flex-basis:100%}.compact-filters select{flex:1}.compact-count{margin-left:0}}

/* Identity and budget layout */
.brand{gap:10px}.brand>span,.sidebar .brand>span,.brand-showcase .brand>span{font-family:'Segoe UI',Arial,sans-serif;font-weight:400;letter-spacing:-.8px;font-size:21px;line-height:1.2}.brand b{font-weight:750}.brand-mark,.sidebar .brand-mark{width:40px;height:40px}.brand-showcase .brand>span{font-size:36px}.brand-showcase .brand-mark{width:64px;height:64px}.budget-comparison{margin-bottom:24px}.budget-filters{margin:0;padding:0 23px 18px;border:0;border-radius:0;box-shadow:none}.footer{justify-content:flex-end}.footer span:last-child{display:inline}.footer a{font-weight:650;text-decoration:none}@media(max-width:1200px){.sidebar .brand>span{font-size:19px}.sidebar .brand-mark{width:36px;height:36px}}

/* Dimensões comuns às barras de pesquisa e filtros compactos. */
.compact-filters{min-height:70px;align-items:center}.compact-filters label{margin:0;font-weight:400}.compact-filters label input,.compact-filters label select{margin:0}.compact-filters input,.compact-filters select,.compact-filters .button{height:40px;box-sizing:border-box}.compact-filters .compact-date{flex:0 0 auto;white-space:nowrap}.compact-filters .compact-date input{width:142px;flex:none}.compact-filters .button{display:inline-flex;align-items:center;justify-content:center}.compact-filters.budget-filters{min-height:58px}

/* Filtros com o mesmo formato de Quotas e dívidas. */
.list-filters.compact-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));align-items:end;gap:18px 20px;padding:20px;min-height:0}.list-filters.compact-filters label{display:flex;flex-direction:column;align-items:stretch;gap:7px;margin:0;min-width:0;font-size:12px;font-weight:600;color:var(--muted)}.list-filters.compact-filters input,.list-filters.compact-filters select{width:100%;max-width:none;min-width:0;margin:0;flex:none;height:40px;font-weight:400;font-size:13px}.list-filters.compact-filters .button{height:40px;justify-self:end;align-self:end}.list-filters.compact-filters .compact-count{grid-column:1/-1;margin:0;font-size:11px}.list-filters.compact-filters.budget-filters{padding:0 23px 20px}.list-filters.compact-filters .compact-date{white-space:normal}@media(max-width:650px){.list-filters.compact-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.list-filters.compact-filters .filter-search-label{grid-column:1/-1}}@media(max-width:400px){.list-filters.compact-filters{grid-template-columns:1fr}}

/* Larguras proporcionais: a pesquisa ocupa o espaço disponível. */
.list-filters.compact-filters{display:flex;flex-wrap:wrap;gap:16px 20px;align-items:flex-end}.list-filters.compact-filters label{flex:0 1 190px;min-width:160px}.list-filters.compact-filters .filter-search-label{flex:1 1 320px;min-width:260px}.list-filters.compact-filters .compact-date{flex:0 0 170px;min-width:0}.list-filters.compact-filters .compact-search{width:100%;max-width:none;flex:none}.list-filters.compact-filters .button{flex:0 0 auto;margin-left:auto}.list-filters.compact-filters .compact-count{flex:0 0 100%;width:100%;margin:0}@media(max-width:650px){.list-filters.compact-filters .filter-search-label{flex-basis:100%;min-width:0}.list-filters.compact-filters label,.list-filters.compact-filters .compact-date{flex:1 1 150px;min-width:0}}

.attention-panel{margin-bottom:24px}.attention-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:0 22px 22px}.attention-item{display:flex;align-items:center;gap:14px;padding:18px;border:1px solid var(--line);border-radius:10px;background:white;color:var(--ink);text-align:left}.attention-item strong{font-size:24px}.attention-item span:last-child{margin-left:auto}.finance-steps{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 24px}.help-topics{padding:0 23px 20px}.help-topics details{padding:14px 0;border-bottom:1px solid var(--line)}.help-topics summary{cursor:pointer;font-weight:600}.help-topics p{margin:12px 0 0;color:var(--muted)}.help-actions{display:flex;gap:10px;flex-wrap:wrap}.document-preview{width:100%;height:58vh;border:1px solid var(--line);border-radius:8px}dialog:has(.document-preview){width:min(1050px,95vw)}.list-empty{margin:0 0 24px;padding:25px;text-align:center;border:1px dashed var(--line);border-radius:10px;color:var(--muted)}#year-status{font-size:11px;white-space:nowrap}.sidebar nav .nav-button[data-page="support"]{margin-top:18px}@media(max-width:700px){.attention-grid{grid-template-columns:1fr}.document-preview{height:50vh}}

.sidebar .support-nav{flex:none;overflow:visible;margin-top:10px;padding-top:10px;border-top:1px solid #ffffff20}.sidebar .support-nav .nav-button{width:100%;margin:0}.sidebar .support-nav .nav-button>span:first-child{display:grid;place-items:center;border:1px solid currentColor;border-radius:50%;width:16px;height:16px;font-size:11px}

.config-groups{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:700px){.config-groups{grid-template-columns:1fr}}

.timeline-filters{display:flex;gap:20px;align-items:end;padding:24px;margin-bottom:24px;flex-wrap:wrap}.timeline-filters label{flex:1;min-width:180px}.timeline-filters select{width:100%;height:42px}.timeline-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.timeline-month{padding:22px}.timeline-month h2{text-transform:capitalize;font-size:18px;margin:0 0 18px}.timeline-event{display:flex;gap:12px;width:100%;text-align:left;border:0;border-top:1px solid var(--border,#dce4ec);background:transparent;padding:15px 0;color:inherit;cursor:pointer}.timeline-event:hover{background:var(--bg,#f0f5f7)}.timeline-day{font-weight:700;min-width:28px}.timeline-event small{display:block;margin-top:6px;font-size:12px}.timeline-event strong{font-size:14px}.timeline-event span{min-width:0;overflow-wrap:anywhere}@media(max-width:1100px){.timeline-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.timeline-grid{grid-template-columns:1fr}}

.timeline-filters label{margin:0}.timeline-filters>.button{height:42px}.timeline-grid:has(>.timeline-month:only-child){grid-template-columns:1fr}

.forecast-toggle{flex-basis:100%!important;display:flex!important;align-items:center;gap:8px}.forecast-toggle input{width:auto;height:auto}.timeline-estimate{border-left:3px dashed #7593aa;padding-left:10px;background:#f4f8fb}

.invoice-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;padding:22px;align-items:end}
.invoice-filters input,.invoice-filters select{width:100%;min-width:0;height:42px;box-sizing:border-box}
.invoice-search{grid-column:span 2}
.invoice-summary{display:flex;justify-content:space-between;gap:20px;align-items:start}
.invoice-summary>div:last-child{text-align:right}
.invoice-summary>div:last-child>strong{font-size:26px}
@media(max-width:900px){.invoice-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.invoice-filters{grid-template-columns:1fr}.invoice-search{grid-column:auto}.invoice-summary{flex-direction:column}.invoice-summary>div:last-child{text-align:left}}

/* Ações com dimensões e alinhamento consistentes em todas as listas. */
.button,.button.small{min-height:38px;min-width:88px;padding:8px 13px;font-size:12px;line-height:20px;border-radius:7px}
td:last-child:has(>.button),td:last-child:has(>.text-link){text-align:right;white-space:nowrap}
td>.button+ .button,td>.button+ .text-link{margin-left:8px}
.head-actions,.form-actions,.flex:has(>.button){display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:8px}
.metric-row>div:last-child:has(.button){display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:8px}
.invoice-filters>.button{justify-self:end}

/* Importação: conteúdo rolável e ações sempre visíveis. */
#dialog:has(#import-form){overflow:hidden;max-height:90dvh}
#dialog:has(#import-form) .dialog-head{position:static}
#dialog:has(#import-form) #dialog-body{display:flex;flex-direction:column;max-height:calc(90dvh - 82px);padding:0;overflow:hidden}
.import-scroll{overflow:auto;min-height:0;padding:24px 25px;overscroll-behavior:contain}
.import-scroll .dialog-table{max-height:none;overflow:visible}
.import-analysis{display:none}
.import-footer{flex-shrink:0;margin:0;padding:16px 25px;background:#fff;border-top:1px solid var(--line)}
.import-footer [hidden]{display:none!important}
@media(max-width:550px){.import-footer{padding:12px 16px}.import-scroll{padding:18px 16px}}

html[data-palette="forest"]{--nav:#112f29;--nav2:#183d34;--green:#176b52;--green-dark:#0d4f3b;--mint:#e9f4ed;--bg:#f5f6f3;--ink:#20352d;--muted:#78857f;--line:#e4e9e3}
.login-body{background:radial-gradient(ellipse at 25% 20%,var(--nav2),var(--nav) 70%)}.login-brand{color:var(--ink)}
.timeline-event .timeline-day{flex:0 0 2.5ch;min-width:2.5ch;white-space:nowrap;overflow-wrap:normal;word-break:normal;font-variant-numeric:tabular-nums}.timeline-event>span:last-child{flex:1;min-width:0}
.password-field{position:relative;display:block;width:100%}.password-field input{width:100%;padding-right:48px}.password-toggle{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:36px;height:36px;display:grid;place-items:center;border:0;border-radius:5px;background:transparent;color:var(--green-dark);padding:7px}.password-toggle:hover{background:var(--mint)}.password-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7}.password-field input{margin-top:0}label .password-field{margin-top:7px}

/* Cronograma: data e identificação da fatura */
.timeline-event{align-items:flex-start;gap:12px}.timeline-event .timeline-day{flex:0 0 34px;min-width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:9px;background:var(--mint);color:var(--green-dark);font-size:14px;font-weight:700;line-height:1;white-space:nowrap}.timeline-event .timeline-supplier{display:block;font-size:13px;line-height:1.45;font-weight:600}.timeline-event .timeline-reference{font-size:11px;line-height:1.5;font-weight:400;color:var(--muted);margin-top:3px;overflow-wrap:anywhere}.timeline-event .timeline-invoice-status{font-size:11px;line-height:1.5;margin-top:7px}.timeline-content{padding-top:2px}

/* Document actions remain inside the available column. */
.documents-table{table-layout:fixed;width:100%}
.documents-table th:first-child{width:23%}
.documents-table th:nth-child(2){width:10%}
.documents-table th:nth-child(3){width:9%}
.documents-table th:nth-child(4){width:9%}
.documents-table td{overflow-wrap:anywhere;white-space:normal}
.document-row-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.document-row-actions .button{margin:0;max-width:100%;white-space:normal;text-align:center}
.occurrence-description,.occurrence-message p{white-space:pre-wrap;overflow-wrap:anywhere}
.occurrence-message{padding:16px 0;border-bottom:1px solid var(--border,#dbe4ed)}
.occurrence-file{display:flex;gap:16px;justify-content:space-between;flex-wrap:wrap;margin:16px 0}
.occurrence-file>div{display:flex;gap:8px;flex-wrap:wrap}
.occurrence-portal{display:block;background:#f0f5fa}
.occurrence-portal-main{max-width:960px;margin:32px auto;padding:24px}
.occurrence-portal-main header{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:24px}
.occurrence-portal-main header .button{margin-left:auto}
.occurrence-portal-main form label{display:block;margin:16px 0}
@media(max-width:700px){.documents-table{min-width:620px}.occurrence-portal-main{margin:0;padding:16px}}

.documents-table th,.documents-table td{padding-left:12px;padding-right:12px}.documents-table th:nth-child(2){width:12%}.documents-table th:nth-child(3){width:14%}.documents-table td:nth-child(2),.documents-table td:nth-child(3),.documents-table td:nth-child(4){white-space:nowrap;overflow-wrap:normal}

.inspection-point{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:16px 0;border-bottom:1px solid #dbe4ed}.inspection-note{grid-column:1/-1}.inspection-point .button{justify-self:end;grid-column:2}.inspection-point textarea{min-height:70px}@media(max-width:550px){.inspection-point{grid-template-columns:1fr}.inspection-point .button{grid-column:1}}

.inspection-add{display:flex;justify-content:flex-end;padding-top:12px}.inspection-add .button,.inspection-point>.button{min-width:116px}

.assembly-point,.assembly-attendee{padding:16px 0;border-bottom:1px solid var(--border,#d5e0e7)}.assembly-point .row-actions,#dialog .row-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.assembly-ballot{padding:8px 0}.assembly-point h3{overflow-wrap:anywhere}

.document-actions-compact{align-items:flex-start}.document-more{max-width:100%;text-align:right}.document-more>summary{list-style:none;cursor:pointer}.document-more>summary::-webkit-details-marker{display:none}.document-more>summary::after{content:"⌄";margin-left:8px}.document-more[open]>summary::after{content:"⌃"}.document-more-items{display:grid;gap:8px;margin-top:8px;min-width:150px}.documents-table .document-more-items .button{width:100%;margin:0}.document-sharing{margin-top:8px}.document-sharing .badge{white-space:normal}

/* Consistent portal state beside its action, including read-only views. */
.portal-sharing-control{display:inline-flex;align-items:center;justify-content:flex-end;gap:10px;vertical-align:middle;max-width:100%;margin:0 4px}.portal-sharing-state{display:flex;flex-direction:column;align-items:flex-end;gap:3px}.portal-sharing-badge{white-space:nowrap;font-size:11px;font-weight:600;line-height:1.4;padding:4px 8px}.portal-sharing-badge.is-shared{background:#e4f3ec;color:#215d43}.portal-sharing-badge.is-private{background:#eef1f4;color:#526171}.portal-sharing-audience{font-size:10px;color:var(--muted,#64748b);line-height:1.4}.portal-sharing-control .button{margin:0!important}.document-actions-compact{align-items:center}

/* Portal is one stable group; document actions occupy a separate aligned row. */
.portal-sharing-control{justify-content:flex-start;gap:10px;margin:0;flex-shrink:0}
.portal-sharing-state{align-items:flex-start;min-width:104px}
.portal-sharing-control>.button{min-width:88px;flex-shrink:0}
.document-actions-compact{display:grid;grid-template-columns:112px 112px;justify-content:end;align-items:start;gap:10px}
.document-actions-compact>.portal-sharing-control{grid-column:1 / -1;grid-row:1;justify-self:start;align-items:center}
.document-actions-compact>.button{grid-column:1;grid-row:2;width:100%;white-space:nowrap}
.document-actions-compact>.document-more{grid-column:2;grid-row:2;width:100%}
.document-actions-compact>.document-more>summary{width:100%;margin:0;white-space:nowrap}
.document-actions-compact>.document-more .document-more-items{min-width:0}
.document-actions-compact:not(:has(>.portal-sharing-control))>.button,.document-actions-compact:not(:has(>.portal-sharing-control))>.document-more{grid-row:auto}

/* Portal status has its own table column; all actions remain together. */
.documents-table th:first-child{width:21%}
.documents-table th:nth-child(2){width:11%}
.documents-table th:nth-child(3){width:7%}
.documents-table th:nth-child(4){width:10%}
.documents-table th:nth-child(5){width:17%}
.portal-status-cell .portal-sharing-state{align-items:flex-start;min-width:0}
.portal-status-cell{vertical-align:middle}
.document-actions-compact{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px}
.document-actions-compact>.button,.document-actions-compact>.document-more{width:auto}
.document-actions-compact>.document-more>summary{width:auto}
@media(max-width:1100px){.documents-table{min-width:920px}}

/* Shared badge metrics match all other statuses; stable action order and sizing. */
.portal-sharing-badge{font-size:9px;line-height:1.4;font-weight:400;padding:4px 7px;border-radius:5px}
.documents-table th:last-child{width:350px}
.document-actions-compact{display:flex;flex-wrap:nowrap;gap:8px;align-items:flex-start}
.document-actions-compact>.button,.document-actions-compact>.document-more{flex:0 0 auto}
.document-actions-compact>.button:first-child{width:106px}
.document-actions-compact>.document-more{width:110px}
.document-actions-compact>.document-more>summary{width:110px}
.table-action-group{display:flex;justify-content:flex-end;align-items:center;gap:8px;flex-wrap:nowrap}
.table-action-group>.button{margin:0;white-space:nowrap}

.documents-table th:last-child{width:258px}

.assembly-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:16px 0 20px}.assembly-sharing-label{flex:0 0 auto;padding-top:5px}.assembly-sharing-label .portal-sharing-state{align-items:flex-start}.assembly-toolbar>.row-actions{flex:1;min-width:0}.table-action-group .document-more-items .button,.assembly-toolbar .document-more-items .button{width:100%;margin:0}.table-action-group .document-more{flex-shrink:0}@media(max-width:550px){.assembly-toolbar{flex-direction:column;gap:12px}.assembly-toolbar>.row-actions{width:100%}}

/* Consistent compact actions and attachment metadata. */
.document-more-items.floating-actions{position:fixed;inset:auto;display:grid;gap:6px;min-width:180px;width:max-content;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);overflow:auto;margin:0;padding:8px;border:1px solid #d4dfdb;border-radius:10px;background:#fff;box-shadow:0 10px 30px #142f4426;color:#142f44;z-index:10000;text-align:left}.floating-actions .button{width:100%;margin:0!important;justify-content:flex-start;text-align:left}.document-more>summary[aria-expanded=true]::after{content:'⌃'}.table-action-group{align-items:flex-start}.attachment-layout{gap:16px;align-items:center;flex-wrap:wrap}.attachment-caption{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0;flex:1 1 180px;overflow-wrap:anywhere}.attachment-caption .portal-sharing-state{align-items:flex-start}.attachment-buttons{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.invoice-heading{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.invoice-summary{margin-bottom:20px}.assembly-toolbar{gap:12px}.assembly-toolbar>.row-actions{gap:8px}.assembly-toolbar>.row-actions>.button{min-width:80px}.assembly-toolbar .document-more>summary{white-space:nowrap}

/* Equal filter fields; reset aligned with the last control. */
.invoice-filters>label{margin-bottom:0;min-width:0}.invoice-filters>.button{grid-column:-2/-1;justify-self:end;align-self:end;height:42px}
.list-filters.bank-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;padding:20px 22px;align-items:end}.bank-filters>label{margin:0;min-width:0;gap:7px}.bank-filters label input,.bank-filters label select{width:100%;height:42px;margin:0;padding:10px 12px;border:1px solid #dce3db;border-radius:7px}.bank-filters>.button{grid-column:-2/-1;justify-self:end;align-self:end;height:42px}
@media(max-width:1050px){.list-filters.bank-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.list-filters.bank-filters{grid-template-columns:minmax(0,1fr)}.bank-filters>.button,.invoice-filters>.button{grid-column:1}}

/* All filter panels share one reset footer, independent of field layout. */
.list-filters>.filter-actions,.invoice-filters>.filter-actions,.timeline-filters>.filter-actions{display:flex;align-items:center;justify-content:flex-end;gap:16px;flex:0 0 100%;grid-column:1/-1;width:100%;min-width:0;margin:0;padding-top:4px}.filter-actions>.button.filter-reset{flex:0 0 110px;width:110px;min-width:110px;height:40px;min-height:40px;margin:0 0 0 auto;padding:8px 12px;font-size:12px;font-weight:400;line-height:20px;border-radius:7px;align-self:center}.list-filters.compact-filters .filter-actions>.compact-count{flex:1 1 auto;width:auto;margin:0;padding:0}.filter-actions .compact-count{font-size:11px;color:var(--muted)}
