/* AMI VISION v2.9.487 — AMI Bricks SaaS component system.
   Presentation only; preserves form structure, field names, save/print/share events. */
body.ami-saas485 #content :is(.b369-dispatch-page,.b425-expense-shell,.b430-material-shell,.b376-master,.b377-entry-card,.b434-report-wrap,.b277-kpis,.b288-expense-form,.b430-layout){--b487-border:#dce5f0;--b487-subtle:#f7f9fc;--b487-ink:#233750;--b487-primary:#2563eb;box-sizing:border-box;min-width:0;max-width:100%;color:var(--b487-ink)}
/* Compact headers and toolbars, retaining every existing action */
body.ami-saas485 #content :is(.b430-page-head,.b415-header,.b425-form-head,.b376-master-header,.b434-dispatch-title){border:1px solid #dce5f0!important;background:#fff!important;box-shadow:0 2px 10px rgba(24,50,90,.035)!important;border-radius:11px!important;padding:11px 13px!important;gap:9px!important;min-width:0;max-width:100%;box-sizing:border-box}
body.ami-saas485 #content :is(.b376-nav,.b377-nav,.b376-master-tabs,.b376-master-toolbar,.b367-filter){gap:7px!important;max-width:100%;min-width:0;flex-wrap:wrap;box-sizing:border-box}
body.ami-saas485 #content :is(.b376-nav,.b377-nav,.b376-master-tabs) button{border-radius:9px!important;min-height:33px;line-height:1.25}
/* Expense entry: actual material/payment/total cards */
body.ami-saas485 #content .b425-expense-shell :is(.b425-section,.b425-total-card,.b425-material-card,.b425-payment-card,.b425-amount-card){background:#fff;border:1px solid #dce5f0!important;border-radius:12px!important;box-shadow:0 2px 12px rgba(20,52,94,.035)!important;min-width:0;max-width:100%;box-sizing:border-box}
body.ami-saas485 #content .b425-expense-shell .b425-section-title{font-weight:700;color:#2a405d;border-bottom:1px solid #e9eef5;padding-bottom:7px;margin-bottom:10px}
body.ami-saas485 #content .b425-expense-shell .b425-form-actions{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:8px}
body.ami-saas485 #content .b425-expense-shell :is(input:not([type=checkbox]):not([type=radio]),select,textarea),body.ami-saas485 #content .b430-material-shell :is(input:not([type=checkbox]):not([type=radio]),select,textarea){box-sizing:border-box;max-width:100%;min-width:0;border:1px solid #d4dfea;border-radius:9px;background:#fff;font-family:inherit}
body.ami-saas485 #content .b425-expense-shell :is(input,select,textarea):focus,body.ami-saas485 #content .b430-material-shell :is(input,select,textarea):focus{outline:2px solid rgba(37,99,235,.22);outline-offset:1px;border-color:#7aa9ec}
/* Product/material grids and summary; maintain scroll for large invoices */
body.ami-saas485 #content :is(.b430-table-wrap,.b434-report-wrap){width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box}
body.ami-saas485 #content :is(.b430-material-table,.b426-material-table,.b434-report-table){border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums;line-height:1.4}
body.ami-saas485 #content :is(.b430-material-table,.b426-material-table,.b434-report-table) thead th{background:#f1f5fa!important;color:#344c6b!important;border-bottom:1px solid #dce5ef!important;font-size:12px;font-weight:700;padding:9px 10px}
body.ami-saas485 #content :is(.b430-material-table,.b426-material-table,.b434-report-table) tbody td{border-bottom:1px solid #edf1f7;padding:8px 9px}
body.ami-saas485 #content :is(.b430-material-table,.b426-material-table,.b434-report-table) tbody tr:hover td{background:#f8fbff}
body.ami-saas485 #content :is(.b430-summary-list,.b430-footer,.b426-summary,.b426-charges-card,.b416-summary-grid,.b277-kpis,.b376-master-card){min-width:0;max-width:100%;box-sizing:border-box;border-radius:11px}
body.ami-saas485 #content :is(.b430-footer,.b425-form-actions) button{border-radius:9px;min-height:34px}
/* Dispatch and report action consistency — do not change printing mechanics */
body.ami-saas485 #content .b369-dispatch-page :is(.b434-dispatch,.b434-report-wrap){min-width:0;max-width:100%}
body.ami-saas485 #content .b434-report-table td.b371-actions{white-space:nowrap}
body.ami-saas485 #content .b434-report-table td.b371-actions .b371-act{border-radius:7px!important}
@media(max-width:760px){
 body.ami-saas485 #content :is(.b430-page-head,.b415-header,.b425-form-head,.b376-master-header,.b434-dispatch-title){padding:9px 10px!important;gap:7px!important}
 body.ami-saas485 #content :is(.b425-expense-shell,.b430-material-shell,.b369-dispatch-page,.b376-master){width:100%;max-width:100%}
 body.ami-saas485 #content .b425-expense-shell :is(.b425-section,.b425-total-card){padding:10px!important}
 body.ami-saas485 #content .b376-master-toolbar input{min-width:0;flex:1 1 180px}
 body.ami-saas485 #content .b425-expense-shell .b425-form-actions button{flex:1 1 auto}
}
@media print{body.ami-saas485 #content :is(.b425-section,.b430-material-shell,.b376-master-card){box-shadow:none!important}}
