/* AMI VISION v2.9.486 — Finance component system. Scoped to finance modules.
   Existing transaction handlers, input names, visibility states and document printing are untouched. */
body.ami-saas485 #content :is(#rzx16-panel,.nsic-page,.party334,.party402-page,.party408-page,.party423-page,.cb104-app,.cb105-page,#cashbook-root){
 --f486-border:#dde6f0;--f486-subtle:#f7f9fc;--f486-ink:#20344f;--f486-muted:#63758c;--f486-primary:#2563eb;
 color:var(--f486-ink);min-width:0;max-width:100%;box-sizing:border-box
}
/* Core controls—preserve special toggles, icons and checkboxes */
body.ami-saas485 #content :is(#rzx16-panel,.nsic-page,.party334,.party402-page,.party408-page,.party423-page,.cb104-app,.cb105-page) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){
 font-family:inherit;box-sizing:border-box;min-width:0;max-width:100%;border:1px solid #d5dfec;border-radius:9px;background-color:#fff;color:#20344f;font-size:13px;box-shadow:none
}
body.ami-saas485 #content :is(#rzx16-panel,.nsic-page,.party334,.party402-page,.party408-page,.party423-page,.cb104-app,.cb105-page) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea):focus{border-color:#7da9f4;box-shadow:0 0 0 3px rgba(37,99,235,.11)}
body.ami-saas485 #content :is(#rzx16-panel,.nsic-page,.party334,.party402-page,.party408-page,.party423-page,.cb104-app,.cb105-page) :is(button,.btn){font-family:inherit;max-width:100%;border-radius:9px;letter-spacing:normal}
body.ami-saas485 #content :is(#rzx16-panel,.nsic-page,.party334,.party402-page,.party408-page,.party423-page,.cb104-app,.cb105-page) :is(button,.btn):focus-visible{outline:2px solid #60a5fa;outline-offset:2px}
/* Nested finance panels and responsive report cards */
body.ami-saas485 #content :is(#rzx16-panel,.nsic-page,.party334,.party402-page,.party408-page,.party423-page,.cb104-app,.cb105-page) :is(.card,.panel,.report-card,.nsic-card,.cb104-panel,.cb114-ledger-panel){border-radius:12px;border-color:var(--f486-border);box-shadow:0 2px 12px rgba(31,55,91,.04);min-width:0;max-width:100%}
/* Payouts—keep sync and reconciliation action controls together */
body.ami-saas485 #content #rzx16-panel :is(.rzx16-page-head,.rzx259-contact-actions,.rzx234-controls,.rzx437-actions,.rzx16-filters,.rzx198-beneficiary-filters){min-width:0;max-width:100%;box-sizing:border-box;row-gap:9px}
body.ami-saas485 #content #rzx16-panel .rzx16-page-head{padding:12px 14px!important;min-height:0;box-shadow:none;background:#fff}
body.ami-saas485 #content #rzx16-panel :is(.rzx16-filters,.rzx198-beneficiary-filters){padding:11px 12px!important;margin-block:9px!important;background:var(--f486-subtle)}
body.ami-saas485 #content #rzx16-panel :is(.rzx201-pager,.rzx204-top-pager){padding:8px 11px!important;min-height:37px;box-shadow:none!important}
body.ami-saas485 #content #rzx16-panel :is(.rzx16-table-wrap,.table-wrap){width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
/* NSIC—use light compact tab bar and entry panel */
body.ami-saas485 #content .nsic-page{gap:10px!important}
body.ami-saas485 #content .nsic-page .nsic-tabs{padding:4px!important;border-radius:10px;gap:3px!important;background:#fff}
body.ami-saas485 #content .nsic-page .nsic-tabs button{padding:8px 12px!important;min-height:34px!important;border-radius:7px!important}
body.ami-saas485 #content .nsic-page .nsic-card{padding:14px!important}
body.ami-saas485 #content .nsic-page .nsic-entry-head{gap:9px!important}
body.ami-saas485 #content .nsic-page .nsic-entry-head label{font-size:12px}
body.ami-saas485 #content .nsic-page .table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
/* Parties—filter bar, table density and cards consistently match finance */
body.ami-saas485 #content .party334 .report-page-head{box-shadow:none!important;border:1px solid var(--f486-border)!important}
body.ami-saas485 #content .party334 .report-filter-card{background:var(--f486-subtle);border:1px solid var(--f486-border);border-radius:11px}
body.ami-saas485 #content .party334 .report-kpis{margin-block:8px 10px!important}
body.ami-saas485 #content .party334 .report-kpi{box-shadow:none!important}
body.ami-saas485 #content .party334 .report-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
body.ami-saas485 #content :is(.party402-page,.party408-page,.party423-page) :is(.toolbar,.actions,.filters){max-width:100%;min-width:0;flex-wrap:wrap}
/* Cashbook—ledger and paging. Don't hide entry fields or entry actions. */
body.ami-saas485 #content .cb104-app .cb104-cta{gap:6px!important;margin-block:7px!important}
body.ami-saas485 #content .cb104-app .cb477-tools{margin-block:8px!important}
body.ami-saas485 #content :is(.cb104-app,.cb105-page) :is(.cb114-ledger-panel,.cb104-panel){border:1px solid var(--f486-border)!important}
body.ami-saas485 #content .cb114-ledger-table thead th{background:#f3f7fc!important;color:#3c5472!important}
body.ami-saas485 #content .cb114-ledger-table tbody tr:hover td{background:#f8fbff}
/* Data grids: do not force tables to compress past legibility */
body.ami-saas485 #content :is(#rzx16-panel,.nsic-page,.party334,.cb104-app,.cb105-page) table{font-variant-numeric:tabular-nums}
body.ami-saas485 #content :is(#rzx16-panel,.nsic-page,.party334,.cb104-app,.cb105-page) table thead th{font-weight:700;line-height:1.3}
body.ami-saas485 #content :is(#rzx16-panel,.nsic-page,.party334,.cb104-app,.cb105-page) table tbody td{line-height:1.45}
@media(max-width:760px){
 body.ami-saas485 #content :is(#rzx16-panel,.nsic-page,.party334,.party402-page,.party408-page,.party423-page,.cb104-app,.cb105-page){width:100%;max-width:100%}
 body.ami-saas485 #content #rzx16-panel .rzx16-page-head{padding:10px!important}
 body.ami-saas485 #content .nsic-page .nsic-card{padding:10px!important}
 body.ami-saas485 #content .party334 .report-page-actions{width:100%}
 body.ami-saas485 #content .cb114-ledger-panel{padding:9px!important}
}
@media print{body.ami-saas485 #content :is(#rzx16-panel,.nsic-page,.party334,.cb104-app,.cb105-page) :is(.card,.panel,.nsic-card){box-shadow:none!important}}
