/* v2.9.483 — scoped Cashbook + Parties SaaS page-level UI, preserve business logic */
body.ami-saas480 #content :is(#cashbook-root,.cashbook-app,.cb105-page,.cashbook-page,.party402-page,.party408-page,.party423-page){--saas483-line:#dce6f2;--saas483-blue:#2563eb;--saas483-shadow:0 3px 16px rgba(27,54,93,.055);min-width:0;color:#192d4c}
/* Ledger: actual toolbar/pagination/search and cards */
body.ami-saas480 #content :is(#cashbook-root,.cashbook-app,.cb105-page,.cashbook-page) :is(.cb104-panel,.cb114-ledger-panel){background:#fff;border:1px solid var(--saas483-line);border-radius:14px;box-shadow:var(--saas483-shadow);min-width:0}
body.ami-saas480 #content :is(#cashbook-root,.cashbook-app,.cb105-page,.cashbook-page) :is(.cb476-tools,.cb479-entry-intro){gap:10px;align-items:center;min-width:0}
body.ami-saas480 #content :is(#cashbook-root,.cashbook-app,.cb105-page,.cashbook-page) :is(.cb476-tools,.cb105-entry-toggle){display:flex;flex-wrap:wrap;gap:8px}
body.ami-saas480 #content :is(#cashbook-root,.cashbook-app,.cb105-page,.cashbook-page) :is(.cb476-tools,.cb105-entry-footer) .btn{min-height:36px;border-radius:9px;padding:8px 13px;font-size:12.5px}
body.ami-saas480 #content :is(#cashbook-root,.cashbook-app,.cb105-page,.cashbook-page) :is(.cb476-page-count,.cb476-page-label,.cb474-count){color:#64748b;font-size:12px;font-weight:650;font-variant-numeric:tabular-nums}
body.ami-saas480 #content :is(#cashbook-root,.cashbook-app,.cb105-page,.cashbook-page) .cb104-table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid #e2eaf4;border-radius:12px}
body.ami-saas480 #content :is(#cashbook-root,.cashbook-app,.cb105-page,.cashbook-page) :is(.cb104-table,.cb114-ledger-table) thead th{background:#edf3fb!important;color:#304968!important;border-bottom:1px solid #d7e3f0;font-size:12px;font-weight:750}
body.ami-saas480 #content :is(#cashbook-root,.cashbook-app,.cb105-page,.cashbook-page) :is(.cb104-table,.cb114-ledger-table) tbody tr:hover td{background:#f8fbff}
/* Drawer: compact SaaS entry groups with stable footer; no changes to inputs or save listeners */
body.ami-saas480 :is(.cb105-entry-form,.cb125-transfer-form){display:flex;flex-direction:column;gap:12px;min-width:0;max-width:100%;box-sizing:border-box}
body.ami-saas480 .cb105-entry-form :is(.cb105-entry-fields,.cb105-entry-dates,.cb105-two){min-width:0;gap:10px}
body.ami-saas480 .cb105-entry-form :is(input:not([type=checkbox]),select,textarea){max-width:100%;min-width:0;box-sizing:border-box;border-radius:9px;border-color:#d4e0ee}
body.ami-saas480 .cb105-entry-form :is(input,select,textarea):focus-visible{outline:2px solid #91b8ff;outline-offset:1px}
body.ami-saas480 .cb105-entry-footer{position:sticky;bottom:0;z-index:3;display:flex;justify-content:flex-end;align-items:center;gap:8px;flex-wrap:wrap;padding:11px 0;background:#fff;border-top:1px solid #e5ebf4}
body.ami-saas480 .cb105-bills{border-radius:10px;border-color:#dee8f3}
/* Parties: scoped list, profile and master sections */
body.ami-saas480 #content :is(.party402-page,.party408-page,.party423-page) :is(.card,.panel,.party-card,.ami408-doc-row){border:1px solid var(--saas483-line);border-radius:12px;box-shadow:var(--saas483-shadow);min-width:0}
body.ami-saas480 #content :is(.party402-page,.party408-page,.party423-page) :is(.toolbar,.actions,.filters,.party-toolbar,.party-filters){display:flex;align-items:center;flex-wrap:wrap;gap:9px;min-width:0}
body.ami-saas480 #content :is(.party402-page,.party408-page,.party423-page) :is(input:not([type=checkbox]),select,textarea){max-width:100%;box-sizing:border-box;border-color:#d4e0ee;border-radius:9px;min-height:38px}
body.ami-saas480 #content :is(.party402-page,.party408-page,.party423-page) :is(button,.btn){border-radius:9px;min-height:35px}
body.ami-saas480 #content :is(.party402-page,.party408-page,.party423-page) :is(.table-wrap,.table-responsive){overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}
body.ami-saas480 #content :is(.party402-page,.party408-page,.party423-page) table{border-collapse:separate;border-spacing:0;max-width:100%}
body.ami-saas480 #content :is(.party402-page,.party408-page,.party423-page) table thead th{background:#edf3fb;color:#344c70;border-bottom:1px solid #dce6f3;font-size:12px;font-weight:750}
body.ami-saas480 #content :is(.party402-page,.party408-page,.party423-page) table tbody td{border-bottom:1px solid #e8eef6}
body.ami-saas480 #content :is(.party402-page,.party408-page,.party423-page) table tbody tr:hover td{background:#f8fbff}
body.ami-saas480 #content :is(.party402-page,.party408-page,.party423-page) :is(button,input,select,a):focus-visible{outline:2px solid #90b6ff;outline-offset:2px}
@media(max-width:760px){body.ami-saas480 #content :is(#cashbook-root,.cashbook-app,.cb105-page,.cashbook-page,.party402-page,.party408-page,.party423-page){max-width:100%;min-width:0}body.ami-saas480 .cb105-entry-form :is(.cb105-entry-fields,.cb105-entry-dates,.cb105-two){max-width:100%}body.ami-saas480 .cb105-entry-footer{padding-bottom:max(11px,env(safe-area-inset-bottom))}body.ami-saas480 #content :is(.party402-page,.party408-page,.party423-page) :is(.toolbar,.actions,.filters){gap:7px}}
@media(max-width:480px){body.ami-saas480 .cb105-entry-footer .btn{flex:1 1 auto;min-width:0}body.ami-saas480 #content :is(.party402-page,.party408-page,.party423-page) :is(.card,.panel){padding:12px}body.ami-saas480 #content :is(.party402-page,.party408-page,.party423-page) :is(input,select){width:100%}}
@media(prefers-reduced-motion:reduce){body.ami-saas480 #content :is(.party402-page,.party408-page,.party423-page) *{scroll-behavior:auto}}
