/* RFM MedTech v37.3 — Responsividade preservando a faixa tipográfica 16–20px */
@media (min-width:1001px){
  .side-nav{width:320px!important}
  .shell{margin-left:320px!important}
}

@media (max-width:1200px){
  .pro-quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .pro-data-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .kpis{grid-template-columns:repeat(3,minmax(180px,1fr))!important}
}

@media (max-width:1000px){
  .shell{margin-left:0!important;padding:var(--rfm-space-3)!important}
  .side-nav{width:min(92vw,360px)!important}
  .topbar{padding-left:var(--rfm-space-3)!important;padding-right:var(--rfm-space-3)!important}
  .span-4,.span-5,.span-6,.span-7,.span-8{grid-column:span 12!important}
}

@media (max-width:700px){
  body,button,input,select,textarea,table,small,
  .subtitle,.status-pill,.field label,.card-note,.module-header p,.module-badge,
  .side-item,.side-group-toggle,.auth-foot,.auth-intro,.pro-version-badge{
    font-size:16px!important;
  }
  h1,h2,.brand h1,.module-header h2,.auth-card h2{font-size:20px!important}
  h3,h4,.section-title{font-size:18px!important}
  .shell{padding:13px!important}
  .topbar{gap:13px!important}
  .brand h1{font-size:20px!important}
  .brand .subtitle{font-size:16px!important}
  #globalSearchBtn,#logoutBtn{width:48px!important;min-width:48px!important;height:48px!important;min-height:48px!important}
  #sessionUser,#fileStatus,#activeBaseBadge,#switchBaseBtn{font-size:16px!important;min-height:48px!important}
  .module-actions .btn{min-height:48px!important;font-size:16px!important}
  .call-action-buttons .mini-link{font-size:16px!important;min-height:48px!important}
  .base-choice-grid,.rfm-v36-base-plan-grid{grid-template-columns:1fr!important}
  .rfm-v35-modal-backdrop{padding:8px!important}
  .rfm-v35-modal,.rfm-v35-modal.wide{width:100%!important;max-height:96vh!important}
  .rfm-v35-modal-head,.rfm-v35-modal-body{padding:13px!important}
  .rfm-v35-close{width:48px!important;height:48px!important}
  .module-table-wrap,.table-wrap,.report-table-wrap{overflow:auto!important;-webkit-overflow-scrolling:touch}
  .module-table,.data-table,.report-table{min-width:920px}
  .kpis{grid-template-columns:1fr!important}
  .pro-quick-actions,.pro-data-grid,.pro-health-grid{grid-template-columns:1fr!important}
}
