@media(max-width:760px){
  .top{height:auto;min-height:70px;flex-wrap:wrap;padding:12px;gap:10px}
  .top .search{order:2;flex-basis:100%;width:100%;min-width:0;font-size:16px}
  .top-actions{margin-left:auto;gap:8px;flex-wrap:wrap}
  .top-actions button{min-height:44px;font-size:14px}
  .content,.section,.card,.form-section,.moduleView{min-width:0;max-width:100%}
  .heading,.section-head,.form-head{flex-wrap:wrap;gap:12px}
  .section-head>div:last-child,.table-tools,.section-actions,.dx-actions{flex-wrap:wrap;gap:8px}
  input,select,textarea,.field input,.field select,.field textarea,.dx-field input,.dx-field select,.dx-field textarea{font-size:16px!important;min-width:0;max-width:100%}
  input:not([type="checkbox"]):not([type="radio"]),select{min-height:44px}
  button,.outline,.primary{min-height:44px}
  .kanban{display:grid;grid-template-columns:1fr!important;gap:16px}
  .kanban-col{min-width:0;width:100%}
  .modal{padding:12px;align-items:center}
  .modal-card,.modal-card.wide{max-width:100%;max-height:calc(100dvh - 24px);overflow-y:auto;padding:18px}
  .document-preview-card{height:calc(100dvh - 24px)}
  .mobile-table-scroll{width:100%;overflow-x:auto;overscroll-behavior-x:contain}
  .mobile-table-scroll table{min-width:600px}
  [data-profile-section="debt"]{overflow-x:auto}
  .finance-pdf-table input{min-width:125px}
  .nav-group-panels{left:12px;right:12px;width:auto;max-width:none}
  .auth-screen{padding:12px}.auth-box{padding:24px 18px;max-height:none}
  .toast{max-width:calc(100vw - 24px);white-space:normal;bottom:calc(16px + env(safe-area-inset-bottom))}
}
@media(max-width:600px){
  .form-grid,.form-grid.two,.dx-grid,.duplicate-info{grid-template-columns:1fr!important}
  .field.span2,.field.span4,.dx-span2{grid-column:1/-1}
  .dx-actions button,.section-actions button{flex:1}
}
@media(display-mode:standalone){body{padding-bottom:env(safe-area-inset-bottom)}}
