/* AMI VISION 2.9.481 – Finance SaaS UI / Phase 2
   Scoped enhancement on the v2.9.480 tokens. No markup handlers modified. */
body.ami-saas480 :is(#rzx16-panel,.nsic-page,.party402-page,.party408-page,.party423-page,#cashbook-root,.cashbook-app,.cb105-page,.cashbook-page){
 --finance481-border:#dbe5f0;--finance481-text:#172b4d;--finance481-muted:#64748b;
 color:var(--finance481-text);min-width:0;
}
/* Common finance surfaces: preserve type-specific colors and summary semantics */
body.ami-saas480 #content :is(#rzx16-panel,.nsic-page,.party402-page,.party408-page,.party423-page,#cashbook-root,.cashbook-app,.cb105-page,.cashbook-page) :is(.card,.panel,.nsic-card,.nsic-vendor-card,.rzx16-page-head,.rzx201-pager,.rzx204-top-pager){
 border-color:#dbe5f0;border-radius:12px;box-shadow:0 2px 10px rgba(30,56,91,.035);
}
/* Contact, payout and NSIC action bars */
body.ami-saas480 #content #rzx16-panel :is(.rzx16-page-head,.rzx259-contact-actions,.rzx234-controls,.rzx16-filters),
body.ami-saas480 #content .nsic-page :is(.nsic-section-title,.nsic-actions){gap:8px;min-width:0}
body.ami-saas480 #content #rzx16-panel :is(.rzx16-page-head,.rzx201-pager,.rzx204-top-pager) .btn,
body.ami-saas480 #content .nsic-page .btn{
 border-radius:9px;min-height:35px;padding:7px 11px;font-size:12.5px;line-height:1.3;box-shadow:none;transition:background .15s,border-color .15s;
}
body.ami-saas480 #content :is(#rzx16-panel,.nsic-page,.party402-page,.party408-page,.party423-page) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea){
 max-width:100%;min-width:0;border-radius:9px;border-color:#d5e1f0;box-sizing:border-box;
}
body.ami-saas480 #content :is(#rzx16-panel,.nsic-page,.party402-page,.party408-page,.party423-page) :is(input,select,textarea):focus-visible{outline:2px solid rgba(37,99,235,.2);outline-offset:1px}
/* Finance tab navigation */
body.ami-saas480 #content .nsic-page .nsic-tabs{gap:5px;border-color:#dee6f2;scrollbar-width:thin}
body.ami-saas480 #content .nsic-page .nsic-tabs button{min-height:39px;padding:9px 12px;border-radius:9px 9px 0 0;font-size:12.5px}
body.ami-saas480 #content .nsic-page .nsic-tabs button.active{color:#245deb;background:#eef5ff;border-bottom-color:#2563eb}
/* Finance data tables; no changes to rows' edit/action data bindings */
body.ami-saas480 #content :is(.nsic-page,#rzx16-panel) table{border-collapse:separate;border-spacing:0;max-width:100%}
body.ami-saas480 #content :is(.nsic-page,#rzx16-panel) table thead th{background:#edf3fb;color:#344c70;font-size:12px;font-weight:750;border-bottom:1px solid #dce6f3}
body.ami-saas480 #content :is(.nsic-page,#rzx16-panel) table tbody td{border-bottom:1px solid #e8eef6}
body.ami-saas480 #content :is(.nsic-page,#rzx16-panel) table tbody tr:hover td{background:#f8fbff}
/* Preserve emergency and delete styles; standardize keyboard accessibility */
body.ami-saas480 #content :is(#rzx16-panel,.nsic-page,.party402-page,.party408-page,.party423-page) button:focus-visible{outline:2px solid #8bb2ff;outline-offset:2px}
/* Prevent overlays or sidebar controls from causing mobile horizontal overflow */
@media(max-width:760px){
 body.ami-saas480 #content :is(#rzx16-panel,.nsic-page,.party402-page,.party408-page,.party423-page,#cashbook-root,.cashbook-app){max-width:100%;min-width:0}
 body.ami-saas480 #content .nsic-page .nsic-tabs{max-width:100%;overflow-x:auto}
 body.ami-saas480 #content #rzx16-panel :is(.rzx16-page-head,.rzx259-contact-actions){flex-wrap:wrap}
 body.ami-saas480 #content :is(#rzx16-panel,.nsic-page) :is(.table-wrap,.rzx16-table-wrap){max-width:100%;overflow-x:auto}
}
@media(prefers-reduced-motion:reduce){body.ami-saas480 #content :is(#rzx16-panel,.nsic-page) button{transition:none}}
