/* AMI VISION v2.9.535: focused layout changes */
/* Cashbook entry: Date and Mode share one row, retain existing datalist-backed choices. */
html body .modal.cb535-entry .cb105-entry-dates,
html body .modal.cb479-saas-entry .cb105-entry-dates{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:10px!important;align-items:end!important}
html body .modal.cb479-saas-entry .cb105-entry-dates .cb535-date-mode{position:relative;min-width:0;display:flex;flex-direction:column;gap:6px!important}
html body .modal.cb479-saas-entry .cb105-entry-dates .cb535-date-mode input{width:100%;padding-right:32px!important}
html body .modal.cb479-saas-entry .cb535-date-mode .cb105-gear{position:absolute;right:5px;bottom:7px;z-index:1}
html body .modal.cb479-saas-entry .cb105-two:empty{display:none!important}
/* Report form: group Filter and Clear instead of placing them on different grid rows. */
#content .ami499-report-page .ami499-filter-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;align-items:end!important}
#content .ami499-report-page .ami499-filter-grid>label,#content .ami499-report-page .ami499-filter-grid>#b49-dynamic{min-width:0!important;width:100%!important}
#content .ami499-report-page .ami535-report-buttons{display:flex!important;gap:8px!important;align-items:end!important;min-width:0!important}
#content .ami499-report-page .ami535-report-buttons>.btn{flex:1 1 0!important;min-width:0!important;width:auto!important;margin:0!important}
/* Plants & Tools client profiles: denser, readable cards, filters and row actions. */
#content .pl331-profiles{padding:14px!important}
#content .pl331-profiles header{margin-bottom:12px!important;gap:12px!important}
#content .pl331-profiles .pl304-filters{padding:14px!important;gap:12px!important;margin:12px 0 14px!important}
#content .pl331-profiles .pl304-filters label{gap:5px!important}
#content .pl331-profiles .pl304-filters input,#content .pl331-profiles .pl304-filters select{min-height:43px!important;font-size:14px!important;padding:8px 11px!important}
#content .pl331-profiles .table-wrap{overflow-x:auto!important;max-width:100%!important;scrollbar-width:thin}
#content .pl331-profiles table{min-width:900px!important;width:100%!important}
#content .pl331-profiles th{padding:11px!important;font-size:12px!important}
#content .pl331-profiles td{padding:9px 10px!important;font-size:13px!important;line-height:1.4!important}
#content .pl331-profiles td .btn{padding:7px 9px!important;font-size:12px!important}
/* Sidebar remains clickable even with payment content's enhanced stacking contexts. */
@media(min-width:901px){#app #sidebar{z-index:100!important}#app #nav{position:relative;pointer-events:auto!important}#app #nav .nav-parent,#app #nav .nav-child{pointer-events:auto!important}}
@media(max-width:900px){#content .ami499-report-page .ami499-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:600px){#content .ami499-report-page .ami499-filter-grid{grid-template-columns:1fr!important}#content .pl331-profiles{padding:9px!important}html body .modal.cb479-saas-entry .cb105-entry-dates{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}}
