@media(max-width:800px){
  body{background:#f4f6fa}.shell{display:block}.sidebar{position:static;width:100%;height:auto;padding:14px 12px;display:block;overflow:visible}.brand{padding:0 6px 12px}.brand img{width:36px;height:36px}.nav-label,.sidebar-foot{display:none}.sidebar nav{display:flex;overflow-x:auto;gap:6px;padding-bottom:4px;scrollbar-width:thin}.nav-item{flex:0 0 auto;width:auto;padding:10px 12px;margin:0}.nav-item svg{width:17px;height:17px}.main{margin:0;width:100%}.topbar{height:auto;min-height:58px;padding:10px 14px;align-items:flex-start}.breadcrumb,.connection,.top-right>span:last-of-type{display:none}.top-right{margin-left:auto;gap:8px}.content{padding:18px 12px 30px}.page-heading{align-items:flex-start;flex-direction:column}.page-heading .actions{width:100%}.page-heading .actions .btn{flex:1}.stats,#finance-summary .stats,#parts-summary .stats{grid-template-columns:repeat(2,minmax(0,1fr))}.grid2,.form-columns{grid-template-columns:1fr}.sticky{position:static}.form-grid,.form-grid.three,.detail-grid{grid-template-columns:1fr}.labor-row{grid-template-columns:1fr}.labor-row select{grid-column:auto}.search{min-width:0;width:100%}.searchbar{align-items:stretch}.filter-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.filter-grid .field{min-width:0}.panel-head,.panel-body{padding:16px}.table-wrap{margin:0 -1px}th,td{padding:12px 11px}.form-footer{align-items:stretch;flex-direction:column}.form-footer .actions,.form-footer .btn{width:100%}dialog{width:calc(100% - 20px);max-height:92vh;margin:auto}.modal-head,.modal-body,.modal-footer{padding:16px}.modal-footer{flex-wrap:wrap}.modal-footer .btn{flex:1}.attachment{align-items:flex-start}.part-table{min-width:980px}.setup{margin:20px auto;padding:18px}.setup-options{grid-template-columns:1fr}.login{max-width:none}.open-files{align-items:flex-start;flex-direction:column}h1{font-size:24px}
}
@media(max-width:430px){.stats,#finance-summary .stats,#parts-summary .stats,.filter-grid{grid-template-columns:1fr}.stat-value{font-size:23px}.btn{white-space:normal}.top-right .btn{max-width:190px}.daily-totals{gap:16px}}
