:root{color-scheme:light;--viz-text:#202022;--viz-muted:#6d6d74;--viz-border:#e6e6e9;--viz-card:#fff;--viz-panel:#f6f6f7;--viz-accent-bg:#ededf0;--viz-series-2:#45454c}
*{box-sizing:border-box}body{margin:0;background:#f6f6f7;font-family:"Segoe UI",Arial,sans-serif;color:var(--viz-text)}button,input,select{font:inherit}button{cursor:pointer}[hidden]{display:none!important}
button:focus-visible,input:focus-visible,select:focus-visible,.restore-label:focus-within{outline:3px solid #85858c;outline-offset:3px}
#cx-app{font-size:14px;line-height:1.5}.shell{display:grid;grid-template-columns:258px minmax(0,1fr);grid-template-rows:78px 1fr auto;min-height:100vh}
.header{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;padding:0 30px;background:#171719;color:#fff;gap:20px;position:sticky;top:0;z-index:5}
.identity,.header-right{display:flex;align-items:center;gap:14px}.brandmark{position:relative;display:inline-grid;place-items:center;width:37px;height:37px;border:1px solid #77777e;font-size:26px;font-weight:800;line-height:1}.brandmark span{position:absolute;bottom:-6px;right:-6px;font-size:16px;background:#171719}
.brand{font-size:21px;letter-spacing:.14em;font-weight:750}.subtitle{font-size:9px;color:#c5c5ca;letter-spacing:.2em}.demo{font-size:10px;letter-spacing:.08em;color:#dadade;border:1px solid #505058;padding:7px 11px;border-radius:6px}.avatar{display:grid;place-items:center;border-radius:50%;background:#3b3b40;width:34px;height:34px;font-weight:700}
.sidebar{background:#fff;border-right:1px solid var(--viz-border);padding:23px 14px 16px;position:sticky;top:78px;height:calc(100vh - 78px);overflow-y:auto;align-self:start}
.nav-search-label{display:block;font-size:11px;color:var(--viz-muted);margin:0 10px 8px}.nav-search{padding:0 7px 10px}.nav-search input{width:100%;border:1px solid var(--viz-border);border-radius:7px;padding:11px 10px;background:#f7f7f8;font-size:12px}
.nav-group{margin:12px 0 20px}.nav-group h2{font-size:9px;letter-spacing:.13em;font-weight:700;color:#777780;margin:0 12px 9px}
.nav-link{display:flex;gap:11px;align-items:center;width:100%;text-align:left;border:0;background:transparent;color:#626269;font-size:12px;line-height:1.35;padding:11px 12px;margin:2px 0;border-radius:7px;min-height:42px}
svg{width:20px;height:20px;flex:none}.nav-link svg{width:18px;height:18px}.nav-link>span:first-of-type{flex:1}.nav-link:hover{background:#f4f4f6;color:#171719}.nav-link.active{color:#fff;background:#232326;font-weight:600}
.planned-dot{width:5px;height:5px;border-radius:50%;background:#93939b;flex:none}.nav-link.active .planned-dot{background:#e1e1e5}
.sidebar-note{border-top:1px solid var(--viz-border);padding:20px 12px 5px;font-size:11px;color:var(--viz-muted);line-height:1.8}.sidebar-note b{color:#303036;font-weight:600}
.workspace{min-width:0}.workspace-top{background:#fff;border-bottom:1px solid var(--viz-border);padding:18px 32px;display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:91px}
.breadcrumb{font-size:10px;letter-spacing:.04em;color:#7b7b82}.breadcrumb span{margin:0 7px;color:#b0b0b7}.context-title{font-size:14px;font-weight:650;margin-top:5px;overflow-wrap:anywhere}
.context-actions{display:flex;align-items:center;gap:10px}.context-actions .btn{white-space:nowrap}.context-actions select{max-width:250px;font-size:12px}.main{padding:30px 32px 20px;max-width:1600px;margin:auto;min-height:650px}
.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:0 0 24px}.eyebrow{font-size:9px;letter-spacing:.14em;color:#83838b;font-weight:700;margin-bottom:8px}
h3{font-size:25px;font-weight:700;line-height:1.25;letter-spacing:-.025em;margin:0 0 8px}h4{font-size:15px;font-weight:650;margin:0 0 8px}p{margin:8px 0 14px}.muted{color:var(--viz-muted);font-size:12px;line-height:1.65}
.status-local,.mini-tag{display:inline-block;border:1px solid var(--viz-border);border-radius:5px;padding:4px 7px;background:#fafafa;color:#74747c;white-space:nowrap;font-size:9px;font-weight:600;letter-spacing:.04em}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 24px}.stat{border:1px solid var(--viz-border);border-radius:10px;background:#fff;padding:19px;min-width:0}.statlabel{font-size:11px;color:var(--viz-muted);margin-bottom:10px}.value{font-size:23px;line-height:1.3;font-weight:700;letter-spacing:-.04em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.statnote{font-size:10px;margin-top:10px;color:#888890}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:20px}.panel{border:1px solid var(--viz-border);border-radius:11px;background:#fff;padding:23px;margin:18px 0}.dashboard-grid .panel:first-child{margin-top:0}
.section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:20px}.section-heading h4{margin-bottom:3px}.section-heading>svg{color:#808088;width:18px}
.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.quick-card{display:flex;align-items:flex-start;gap:12px;text-align:left;padding:17px 14px;background:#fff;border:1px solid var(--viz-border);border-radius:8px;color:#27272c}
.quick-card>svg{margin-top:3px}.quick-card b{font-size:12px;display:block;font-weight:650}.quick-card small{display:block;font-size:10px;color:#82828a;margin-top:5px}.quick-card .arrow{margin-left:auto;color:#9999a0}.quick-card:hover,.module-card:hover{background:#f6f6f8;border-color:#bcbcc4}
.activity-row{display:flex;gap:12px;align-items:center;border-top:1px solid #f1f1f3;padding:15px 0}.activity-row:first-child{border-top:0}.activity-avatar{display:grid;place-items:center;width:35px;height:35px;background:#f3f3f5;border-radius:50%;color:#66666f;flex:none}.activity-avatar svg{width:15px;height:15px}.activity-row b{font-size:12px;font-weight:500;overflow-wrap:anywhere}.activity-row small{display:block;color:#97979e;font-size:10px;margin-top:3px}
.progress-ring{--progress:0;width:166px;height:166px;display:grid;place-items:center;border-radius:50%;background:conic-gradient(#303036 calc(var(--progress)*1%),#ededf0 0);margin:28px auto}.progress-ring>div{display:flex;flex-direction:column;align-items:center;justify-content:center;width:146px;height:146px;border-radius:50%;background:#fff}.progress-ring strong{font-size:30px;font-weight:600}.progress-ring span{font-size:9px;color:#808088}
.pending-row{display:flex;align-items:center;justify-content:space-between;width:100%;padding:15px 0;background:none;border:0;border-bottom:1px solid #eeeef1;font-size:12px;color:#606068}.pending-row b{font-size:12px;color:#232328}
.module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.module-card{display:flex;flex-direction:column;align-items:flex-start;gap:14px;text-align:left;border:1px solid var(--viz-border);background:#fff;border-radius:8px;padding:20px;color:#33333a}.module-card b{font-size:12px;font-weight:600;line-height:1.45}.module-card .mini-tag{font-size:8px}
.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}label{display:block;font-size:11px;color:#696972;margin-bottom:5px}input,select{width:100%;min-width:0;border:1px solid #dcdce2;border-radius:6px;padding:10px 12px;background:#fff;color:#28282e;font-size:13px}
.btn{border:1px solid #dcdce2;background:#fff;color:#37373e;border-radius:6px;padding:9px 12px;font-size:12px;font-weight:600;line-height:1.5}.btn:hover{background:#f2f2f5}.btn.primary{background:#242427;border-color:#242427;color:#fff}.btn.primary:hover{background:#45454c}.btn:disabled{opacity:.4;cursor:not-allowed}
.actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.scroll{overflow-x:auto}table{width:100%;min-width:600px;border-collapse:collapse;font-size:12px}th{text-align:left;background:#f7f7f9;color:#74747e;font-size:10px;font-weight:600;padding:12px;border-bottom:1px solid var(--viz-border)}td{padding:14px 12px;border-bottom:1px solid #eeeef1;vertical-align:top}.right{text-align:right;font-variant-numeric:tabular-nums}
.pill{display:inline-block;padding:4px 8px;border:1px solid #dcdce1;border-radius:5px;font-size:10px;color:#62626d;background:#f6f6f8}.ok{color:#24242a;border-color:#bfbfc7;background:#eaeaec}.wait{color:#74747e;background:#f6f6f8}
.notice{padding:15px 17px;border-left:3px solid #62626b;border-radius:4px;background:#ededf0;font-size:12px;line-height:1.7;margin:18px 0}.item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid var(--viz-border)}.item:last-child{border-bottom:0}.empty{padding:28px;border:1px dashed #d0d0d8;border-radius:8px;text-align:center;color:#83838b}
.backupbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;border-top:1px solid var(--viz-border);padding-top:16px;margin-top:25px}.backupbar>span{display:flex;align-items:center;gap:7px;font-size:10px;color:#86868d}.backupbar svg{width:14px;height:14px}.backupbar .btn{font-size:10px}.backupbar .actions{margin:0}.restore-label{margin:0;cursor:pointer}
.planned-layout{display:grid;grid-template-columns:1fr 1fr;gap:22px}.planned-layout .panel{margin-top:0}.planned-intro{padding:35px}.planned-intro h4{font-size:21px;margin-top:22px;letter-spacing:-.02em}.planned-intro p{font-size:13px;line-height:1.8;color:#6e6e78}.large-icon{display:grid;place-items:center;width:66px;height:66px;background:#f1f1f4;border-radius:14px;color:#44444d}.large-icon svg{width:30px;height:30px}
.scope-list{list-style:none;padding:0;margin:22px 0 0}.scope-list li{display:flex;align-items:center;gap:15px;padding:20px 0;border-top:1px solid #ededf1}.scope-list li>span{color:#9b9ba4;font-size:11px}.scope-list b{font-size:13px;font-weight:600}.scope-list small{display:block;font-size:10px;margin-top:4px;color:#96969f}
.steps{padding-left:20px}.steps li{padding:12px 8px}.steps span{display:block;color:#7a7a83;font-size:12px;margin-top:5px}
.footer{grid-column:1/-1;border-top:1px solid var(--viz-border);padding:14px 30px;text-align:right;background:#fff;color:#888891;font-size:10px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1700px){.main{padding-top:40px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 340px}}
@media(max-width:1150px){.shell{grid-template-columns:222px minmax(0,1fr)}.main{padding:24px}.workspace-top{padding:16px 24px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:1fr}.dashboard-grid>aside{display:grid;grid-template-columns:1fr 1fr;gap:18px}.dashboard-grid>aside .panel{margin-top:0}.context-actions select{max-width:180px}.planned-layout{grid-template-columns:1fr}.module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.shell{grid-template-columns:1fr;grid-template-rows:auto auto 1fr auto}.header{padding:15px 18px;position:static}.brand{font-size:18px}.demo{font-size:8px;padding:5px}.avatar{display:none}.sidebar{position:static;height:auto;padding:12px 14px;border-bottom:1px solid var(--viz-border);border-right:0}.nav{display:flex;gap:10px;overflow-x:auto}.nav-group{display:flex;gap:5px;margin:0}.nav-group h2,.sidebar-note{display:none}.nav-link{width:auto;white-space:nowrap;padding:10px;font-size:11px}.nav-link svg{width:15px}.planned-dot{width:4px;height:4px}.nav-search-label{font-size:10px;margin-left:7px}.nav-search{max-width:380px}.workspace-top{flex-wrap:wrap;padding:16px 18px}.context-actions{width:100%}.context-actions select{max-width:none;flex:1}.main{padding:23px 18px}.page-heading{gap:10px}h3{font-size:22px}.status-local{font-size:8px}.quick-grid{grid-template-columns:1fr}.dashboard-grid>aside{grid-template-columns:1fr}.panel{padding:18px}.fields{grid-template-columns:1fr}.value{font-size:21px}.stat{padding:15px}.module-grid{grid-template-columns:1fr 1fr}.module-card{padding:15px}.section-heading{flex-wrap:wrap}.backupbar{align-items:flex-start}.footer{text-align:left;padding:14px 18px}}
@media(prefers-reduced-motion:no-preference){.nav-link,.btn,.quick-card,.module-card{transition:background .15s,border-color .15s}}
.opus-tabs{display:flex;gap:7px;flex-wrap:wrap;padding:10px 0 20px}.opus-tabs .btn{font-size:11px}
.import-details{border-top:1px solid var(--viz-border);margin-top:20px;padding-top:15px}.import-details summary,.panel>summary{cursor:pointer;font-weight:600;margin-bottom:15px}
.ack-label{display:flex;align-items:flex-start;gap:10px;margin:20px 0;font-size:13px}.ack-label input{width:18px;height:18px;flex:none;margin-top:2px}
.budget-group{border:1px solid var(--viz-border);border-radius:7px;margin:8px 0;background:#fff}.budget-group>summary{display:flex;align-items:center;gap:15px;justify-content:space-between;cursor:pointer;padding:13px 15px;background:#f3f3f5;font-size:12px}.budget-group>summary::before{content:'+';font-weight:700}.budget-group[open]>summary::before{content:'−'}.budget-group>summary>span{flex:1}.budget-group>div{padding:4px 10px}.budget-group .budget-group>summary{background:#fafafa}
.budget-leaf{display:grid;grid-template-columns:minmax(0,1fr) 85px 105px;gap:12px;align-items:start;padding:13px 8px;border-bottom:1px solid var(--viz-border);font-size:11px}.budget-leaf button{border:0;background:transparent;text-align:left;line-height:1.6;font-size:11px;color:#34343b}.budget-leaf button:hover{text-decoration:underline}.budget-leaf>span,.budget-leaf>b{text-align:right;font-variant-numeric:tabular-nums}.budget-leaf button b{display:block}
#cx-concept-detail{scroll-margin-top:100px}.panel a.btn{text-decoration:none;display:inline-block}.panel input[type=search]{margin-bottom:15px}.panel select{margin-bottom:12px}.panel td{overflow-wrap:anywhere}.muted{overflow-wrap:anywhere}
.concept-table td:first-child{min-width:250px;max-width:450px}.concept-table td:first-child .muted{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.concept-table td:nth-child(2){max-width:220px;font-size:10px}
@media(max-width:760px){.budget-leaf{grid-template-columns:minmax(0,1fr) 85px}.budget-leaf>span{grid-column:1;text-align:left}.budget-leaf>b{grid-row:1;grid-column:2}.budget-group>div{padding:3px 5px}.opus-tabs .btn{font-size:10px}}


/* Identidad original: imágenes sin filtros ni alteraciones. */
.brand-symbol{display:block;width:54px;height:55px;object-fit:contain}.brand-wordmark{display:block;width:202px;height:auto}.identity{gap:12px}@media(max-width:760px){.brand-symbol{width:43px;height:44px}.brand-wordmark{width:155px}.identity{gap:8px}}

.estimate-stats{grid-template-columns:repeat(5,minmax(0,1fr));margin:20px 0}.estimate-stats .value{font-size:23px}.estimate-list{max-width:550px}.estimate-panel{padding:0;overflow:hidden}.estimate-scroll{max-height:68vh;overflow:auto}.estimate-table{min-width:2200px;width:100%;border-collapse:separate;border-spacing:0}.estimate-table thead{position:sticky;top:0;z-index:2}.estimate-table th{background:#ececee;white-space:normal}.estimate-table thead tr:first-child th{text-align:center;border-right:1px solid #ccc}.estimate-table td{vertical-align:top}.estimate-table th,.estimate-table td{border-right:1px solid #e8e8eb;min-width:95px}.estimate-table .estimate-description{min-width:310px;max-width:360px;white-space:normal}.estimate-table .estimate-current{background:#202022;color:#fff}.estimate-entry input{width:105px;min-height:38px;border:1px solid #888;border-radius:5px;padding:7px;background:#f6f6f7}.estimate-group th,.estimate-group td{background:#e6e6e9;font-weight:650}.estimate-table tfoot th,.estimate-table tfoot td{background:#202022;color:#fff;font-weight:650}.estimate-table th:first-child,.estimate-table tbody tr:not(.estimate-group) td:first-child{position:sticky;left:0;z-index:1;background:#fff}.estimate-table thead th:first-child{background:#ececee;z-index:3}@media(max-width:1000px){.estimate-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

.estimate-desc-text{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.estimate-jump{margin:12px 0}.estimate-table .estimate-group th{position:static}

.project-picker{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px}.project-choice{display:flex;flex-direction:column;gap:12px;margin:0}.project-choice .btn{margin-top:auto;align-self:flex-start}.context-actions label{font-size:11px;font-weight:650}.estimate-stats .stat{padding:16px}.estimate-stats .value{font-size:18px;white-space:nowrap}.estimate-table thead tr:first-child th:first-child{position:static}.estimate-table thead tr:nth-child(2) th:first-child{position:sticky;left:0;z-index:3}.estimate-table th:first-child,.estimate-table tbody tr:not(.estimate-group) td:first-child{min-width:130px}

.estimate-fold{display:inline-flex;align-items:center;gap:9px;border:0;background:transparent;color:inherit;text-align:left;font:inherit;font-weight:650;cursor:pointer;padding:7px 0}.estimate-fold span{display:inline-grid;place-items:center;width:23px;height:23px;border:1px solid #9a9aa0;border-radius:4px;background:#fff;color:#202022;font-size:17px}.estimate-fold:hover{text-decoration:underline}.estimate-fold:focus-visible{outline:2px solid #202022;outline-offset:3px}

.estimate-status{display:inline-flex;align-items:center;padding:7px 12px;border:1px solid;border-radius:6px;font-size:12px;font-weight:700;white-space:nowrap}.estimate-status.preliminary{background:#fff0f0;color:#b42328;border-color:#e7a2a5}.estimate-status.reviewed{background:#eaf2ff;color:#1759ad;border-color:#90b8ee}.estimate-status.approved{background:#e9f8ed;color:#176b37;border-color:#83c597}.estimate-status-list{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0 22px}.estimate-status-list button{cursor:pointer}.section-heading .actions{flex-wrap:wrap}.section-heading .actions select{width:auto;min-width:140px}.section-heading h4 .estimate-status{margin-left:9px}

.estimate-workflow-legend{display:flex;flex-wrap:wrap;gap:9px;margin:0 0 20px}.estimate-workflow-legend .estimate-status{font-weight:500;font-size:11px}

.deduction-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.deduction-grid fieldset{border:1px solid var(--viz-border);border-radius:8px;padding:16px;min-width:0}.deduction-grid legend{font-size:12px;font-weight:700;padding:0 6px}.deduction-grid select,.deduction-grid input{width:100%;margin-bottom:12px}.estimate-deductions{margin-top:18px}.estimate-settlement{max-width:740px;margin:22px 0 0 auto}.settlement-row{display:flex;justify-content:space-between;gap:24px;padding:13px 0;border-bottom:1px solid var(--viz-border)}.settlement-row strong{white-space:nowrap}.settlement-row.subtotal{font-weight:650;border-top:2px solid #888}.settlement-row.liquid{background:#202022;color:#fff;margin:10px -12px -8px;padding:18px 12px;border-radius:6px;font-weight:700;font-size:19px}.deduction-grid input:disabled{background:#eeeeef;color:#777}@media(max-width:760px){.deduction-grid{grid-template-columns:1fr}.settlement-row{gap:12px;font-size:12px}.settlement-row.liquid{font-size:16px}}

.income-table{min-width:1750px}.income-table td.right,.income-table th.right{white-space:nowrap}.income-table tfoot th{background:#ececef;border-top:2px solid #777}.income-actions{display:flex;flex-direction:column;gap:7px;min-width:160px}.income-state{display:inline-block;padding:6px 9px;border-radius:5px;font-weight:700;white-space:nowrap}.income-state.pending{color:#a82024;background:#ffebec}.income-state.partial{color:#875000;background:#fff0c5}.income-state.paid{color:#176b37;background:#e3f6e9}.receipt-link{display:inline-block;margin:4px 8px 4px 0;color:#1759ad;word-break:break-word}#cx-advance-form{margin-top:20px}#cx-advance-form input[type=file],#cx-payment-form input[type=file]{margin:8px 0}#cx-payment-panel{scroll-margin-top:100px}.panel summary{cursor:pointer;font-weight:650}

.estimate-finish-actions{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin-top:28px}.estimate-finish-actions .btn{min-height:46px;width:100%}

/* Guías punteadas para seguir filas y columnas de importes. */
#cx-app table{border-collapse:separate;border-spacing:0;border-top:1px dotted #96969f;border-left:1px dotted #96969f}
#cx-app table th,#cx-app table td{border:0;border-right:1px dotted #96969f;border-bottom:1px dotted #96969f;vertical-align:middle}
#cx-app table thead th{text-align:center;line-height:1.45}
#cx-app table .right{text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap}
#cx-app table td input[data-estimate-qty]{text-align:center;font-variant-numeric:tabular-nums}
#cx-app .estimate-table tbody tr:not(.estimate-group) td:first-child{text-align:center}
#cx-app table tfoot th:not(.right){text-align:center}
#cx-app .estimate-table .estimate-description{text-align:left}
#cx-app .estimate-table thead .estimate-current{border-color:#acacb4}
#cx-app .estimate-table tfoot th,#cx-app .estimate-table tfoot td{border-color:#acacb4}

#cx-app .income-table tfoot .income-remaining th,#cx-app .income-table tfoot .income-remaining td{background:#f5f5f7;color:#202022;padding-top:16px;padding-bottom:16px}.balance-label{display:block;font-size:10px;font-weight:500;white-space:normal;max-width:170px;margin:0 auto 5px;text-align:center}.income-remaining b{font-size:13px;font-variant-numeric:tabular-nums}

/* Cobranza: resumen compacto y detalles por ingreso. */
.accounting-heading .actions{align-self:center}.accounting-kpis{grid-template-columns:repeat(4,minmax(0,1fr));margin:0 0 18px}.accounting-kpis .stat{padding:18px}.accounting-kpis .value{font-size:22px;white-space:nowrap}.accounting-kpis .muted{font-size:11px;margin-top:5px}.account-attention{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:0 0 22px}.account-attention .btn{font-size:11px}.account-welcome{display:flex;align-items:center;justify-content:space-between;gap:20px}.account-welcome h4{margin:0}.account-success{padding:12px 16px;background:#e8f6ed;color:#21633b;border-radius:7px}.income-overview{padding:22px}.income-overview>.scroll{max-height:70vh;overflow:auto}.income-overview #cx-account-search{margin:0 0 14px;background:#f8f8fa}.account-filters{border-top:1px solid var(--viz-border);padding:13px 0}.account-filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:15px}.account-scope{font-size:11px;margin:8px 0 16px}#cx-app .income-table.income-compact{min-width:850px;font-size:12px}.income-compact thead{position:sticky;top:0;z-index:2}.income-compact thead th{background:#eeeeF1;color:#44444d}.income-compact .income-main-row td{padding:16px 10px}.income-toggle{display:inline-flex;align-items:center;gap:8px;background:transparent;border:0;padding:2px 0;font-size:12px;white-space:nowrap}.income-toggle>span{display:grid;place-items:center;width:22px;height:22px;border:1px solid #b8b8bf;border-radius:5px;font-size:16px}.income-toggle:hover{text-decoration:underline}.income-compact .income-main-row td:first-child{min-width:140px}.income-compact .income-main-row .balance-cell{font-weight:750}.income-compact .income-main-row .btn{font-size:11px;padding:9px;white-space:nowrap}.income-compact tfoot th{position:relative;background:#ededf0}.income-detail-row>td{padding:0!important;background:#fafafb}.income-detail{padding:22px;text-align:left}.income-breakdown{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding-bottom:18px}.income-breakdown>div{background:#fff;border:1px dotted #aaaab2;border-radius:5px;padding:12px;text-align:center}.income-breakdown span,.income-breakdown strong{display:block}.income-breakdown span{font-size:10px;color:#686872;margin-bottom:5px}.income-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:22px}.income-detail h4{margin:0 0 12px}.due-form{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.due-form input{max-width:220px}.due-label{display:block;font-size:10px;color:#777783;margin-top:5px}.due-label.overdue{color:#ad252b;font-weight:650}.missing-receipt{color:#8c4f21;font-size:10px}.receipt-item{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:7px 0;font-size:11px;overflow-wrap:anywhere}.receipt-item>span{flex-basis:100%}.receipt-item .btn{font-size:10px;padding:5px 8px;text-decoration:none;color:inherit}.remaining-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;text-align:center}.remaining-grid span,.remaining-grid strong,.remaining-grid small{display:block}.remaining-grid strong{font-size:18px;margin:6px 0}.remaining-grid small{color:#72727a;font-weight:400}.account-audit{margin:16px 0 0}.account-audit summary{cursor:pointer;font-size:12px}.account-audit table{font-size:11px;min-width:850px}.payments-table{min-width:750px;font-size:11px}.account-empty{padding:25px;text-align:center}.account-dialog{border:1px solid #dedee4;border-radius:14px;padding:26px;width:min(720px,calc(100vw - 30px));max-height:88vh;overflow:auto;color:#202022;background:#fff;box-shadow:0 20px 90px #0003}.account-dialog::backdrop{background:#10101599}.account-dialog form>label{margin-top:15px}.dialog-heading,.dialog-footer{display:flex;justify-content:space-between;align-items:center;gap:14px}.dialog-heading{margin-bottom:20px}.dialog-heading h3{font-size:23px;margin:3px 0}.dialog-footer{justify-content:flex-end;margin-top:24px;border-top:1px solid #e4e4e9;padding-top:18px}.payment-available{display:flex;justify-content:space-between;align-items:center;background:#f2f2f5;padding:15px;border-radius:7px;margin:15px 0}.payment-available strong{font-size:22px}.chosen-files{display:flex;flex-direction:column;gap:4px;color:#565661;font-size:11px}.receipt-dialog{width:min(1000px,calc(100vw - 30px))}.receipt-preview{min-height:280px;background:#f4f4f6;display:grid;place-items:center}.receipt-preview img{max-width:100%;max-height:65vh;object-fit:contain}.receipt-preview iframe{width:100%;height:65vh;border:0}.receipt-dialog h3{overflow-wrap:anywhere}@media(max-width:1000px){.accounting-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.account-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.accounting-heading{flex-wrap:wrap}.accounting-heading .actions{width:100%}.accounting-kpis .value{font-size:19px}.income-overview{padding:14px}.income-detail-grid{grid-template-columns:1fr}.income-breakdown{grid-template-columns:repeat(2,minmax(0,1fr))}.account-filter-grid{grid-template-columns:1fr}.account-welcome{flex-direction:column;align-items:flex-start}.account-dialog{padding:18px}.remaining-grid strong{font-size:15px}}

.pdf-preview-pages{width:100%;text-align:center;overflow:auto}.pdf-toolbar{display:flex;align-items:center;justify-content:center;gap:15px;padding:12px;position:sticky;top:0;background:#ededf0;z-index:1}.pdf-preview-pages canvas{display:block;max-width:100%;height:auto;margin:0 auto 16px;background:#fff}.pdf-preview-pages p{font-size:12px}.receipt-preview:has(.pdf-preview-pages){max-height:68vh;overflow:auto}

.account-total-breakdown{margin-top:18px}.account-total-breakdown summary{cursor:pointer;font-size:12px;font-weight:650}.account-total-breakdown .income-breakdown{margin-top:15px;padding-bottom:0}
.generator-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.generator-card summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:16px}.generator-card summary strong{max-width:80%;font-size:13px}.generator-table{min-width:1800px;width:100%;border-collapse:collapse;font-size:12px}.generator-table th,.generator-table td{border:1px dotted #999;text-align:center;padding:9px}.generator-table thead{background:#dde3e8}.generator-table input{width:85px;min-width:65px;padding:8px}.generator-table td.generator-description{min-width:240px;text-align:left}.generator-table .measurement-total{font-weight:bold;background:#fff4bb;min-width:95px}.generator-table select{min-width:145px}.generator-card .actions{margin-top:16px}.estimate-table input[type=checkbox]{width:18px;height:18px;min-width:18px;vertical-align:middle;margin-right:8px}.evidence-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:18px;margin-top:20px}.evidence-grid figure{margin:0;border:1px solid #ddd;border-radius:8px;padding:12px}.evidence-grid img{width:100%;height:200px;object-fit:contain;background:#f1f1f1}.evidence-grid figcaption{font-size:12px;overflow-wrap:anywhere;margin:8px 0}.evidence-grid label{display:block;margin:8px 0}.evidence-grid input{width:100%}.generator-card>summary+.muted{margin-top:14px}
.generator-row-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:16px 0}.generator-row-toolbar .actions{margin-top:0}.generator-row-toolbar .btn:first-child{background:#202022;color:white}.generator-table .measurement-comment td{text-align:left;background:#f7f7f8;padding:10px 14px}.measurement-comment label{display:block;font-size:11px;font-weight:600;margin-bottom:7px}.measurement-comment textarea{display:block;width:min(700px,65vw);max-width:100%;min-height:55px;resize:vertical;padding:10px;border:1px solid #c7c7cc;border-radius:5px;font:inherit}.measurement-discount .measurement-total{color:#a12626;background:#fff0ef}
.generator-table{min-width:1250px}.generator-table input{width:70px;min-width:55px}.generator-table .generator-comment-cell{position:sticky;right:0;background:white;min-width:210px;box-shadow:-1px 0 #aaa}.generator-comment-cell textarea{display:block;width:210px;max-width:100%;min-height:54px;padding:8px;font:inherit;resize:vertical;border:1px solid #bbb;border-radius:4px}.generator-table th:last-child{position:sticky;right:0;background:#dde3e8;min-width:210px}
.generator-table{min-width:1150px}.generator-table .generator-comment-cell{right:72px}.generator-table th:nth-last-child(2){position:sticky;right:72px;background:#dde3e8;min-width:210px}.generator-table th:last-child,.generator-table tbody td:last-child{position:sticky;right:0;min-width:72px;width:72px;background:white}.generator-table th:last-child{background:#dde3e8}
.generator-table tbody td:last-child .btn{white-space:nowrap;padding:8px;font-size:11px}
.cloud-login{min-height:100vh;display:grid;place-items:center;background:#f1f1f3;padding:24px}.cloud-login>.panel{width:min(460px,100%);padding:36px}.cloud-login .identity{background:#161616;padding:15px;margin-bottom:28px}.cloud-login .brand-symbol{height:45px}.cloud-login .brand-wordmark{height:45px}.cloud-login h1{font-size:23px}.cloud-login label{display:block;margin-top:18px;margin-bottom:6px}.cloud-login input{width:100%}.cloud-login button{margin-top:24px;width:100%}.cloud-user{font-size:11px;color:#ddd}.header-right .btn{font-size:11px}.header-right:has(.cloud-user){flex-wrap:wrap}
