/* AMI VISION v2.9.528 – Screenshot-led visual corrections. No financial data changes. */
/* Match grid track to real sidebar width to prevent blank desktop strip. */
@media(min-width:901px){
 body.ami-saas485 #app.app:not(.sidebar-collapsed):not(.sidebar-style-compact):not(.sidebar-style-floating){grid-template-columns:280px minmax(0,1fr)!important;column-gap:0!important}
 body.ami-saas485 #app .main{min-width:0;margin-left:0!important;transform:none}
}
/* Cashbook: remove oversized amount treatment and regain vertical room. */
.cb479-saas-entry #cb105-amount{font-size:16px!important;font-weight:650!important;letter-spacing:normal!important;min-height:38px!important;line-height:1.4!important}
.cb479-saas-entry #cb105-amount::placeholder{font-size:15px!important;font-weight:450!important;opacity:.74}
.cb479-saas-entry .cb105-entry-fields>label:has(#cb105-amount){padding:9px 12px!important;margin-bottom:8px!important}
.cb479-saas-entry .cb105-entry-toggle{padding-top:8px!important}
/* AMI Bricks: consistent action grouping, smaller empty gaps, safe horizontal scroll. */
body.ami-saas485 #content .ami494-bricks-page{min-width:0}
body.ami-saas485 #content .ami494-bricks-page .b276-toolbar{justify-content:flex-start!important;gap:8px!important;margin-block:10px!important}
body.ami-saas485 #content .ami494-bricks-page .b276-toolbar .btn{flex:0 0 auto!important}
body.ami-saas485 #content .ami494-bricks-page .b276-table td{padding-block:9px!important;vertical-align:middle}
body.ami-saas485 #content .ami494-bricks-page .b276-table td:last-child .btn{display:inline-flex!important;margin:2px!important;white-space:nowrap!important}
body.ami-saas485 #content :is(.ami494-bricks-page,.ami491-page) .ami491-table-scroll{max-width:100%;overflow-x:auto}
/* General module controls use space according to content, without stretched buttons. */
body.ami-saas485 #content :is(.ami491-toolbar,.ami491-panel-head,.hrms192-topbar){column-gap:8px!important;row-gap:8px!important}
body.ami-saas485 #content :is(.ami491-toolbar,.hrms192-topbar) :is(button,.btn){max-width:100%;white-space:normal}
/* Integration card action rows do not drift to the left edge. */
body.ami-saas485 #content .ami27-int-card>header{min-width:0;flex-wrap:wrap}
body.ami-saas485 #content .ami27-int-card .ami27-actions{justify-content:flex-end}
@media(max-width:760px){
 body.ami-saas485 #content .ami494-bricks-page .b276-toolbar{flex-wrap:wrap}
 body.ami-saas485 #content .ami494-bricks-page .b276-table{min-width:780px}
 .cb479-saas-entry #cb105-amount{font-size:16px!important}
}
