/* R186：移动端经营驾驶舱适配。桌面布局与正式业务口径保持不变。 */
.aph-mobile-payment-cards{display:none}

@media(max-width:640px){
  /* 高频经营任务直接进入；明确按压反馈，避免依赖 hover。 */
  .aph-mobile-primary-nav :where(a,button):active{background:#27313b!important}
  .aph-mobile-primary-nav a[aria-current="page"]:active{background:#b80017!important}

  /* 首页主指标保留优先级，但压缩辅助指标的纵向占用。 */
  body[data-r42-route="home"] .aph-home-kpi-grid>:nth-child(1)>.card-soft{padding:16px!important}
  body[data-r42-route="home"] .aph-home-kpi-grid>:nth-child(1)>.card-soft>div:first-child>.num{font-size:clamp(2.15rem,11vw,2.7rem)!important;line-height:1.05!important}
  body[data-r42-route="home"] .aph-home-kpi-grid>:nth-child(1)>.card-soft>.grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
  body[data-r42-route="home"] .aph-home-kpi-grid>:nth-child(1)>.card-soft>.grid>div{min-height:72px!important;padding:10px!important}
  body[data-r42-route="home"] .aph-home-kpi-grid>:nth-child(1)>.card-soft>.grid .text-base{font-size:15px!important;line-height:1.25!important;overflow-wrap:anywhere}

  /* 收缴概览：主卡仍清晰，次级KPI两列扫描，环比横跨整行。 */
  body[data-r42-route="collection"] .kpi-grid-5{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  body[data-r42-route="collection"] .kpi-grid-5>div{min-width:0;padding:14px!important}
  body[data-r42-route="collection"] .kpi-grid-5>div:nth-child(3){grid-column:1;grid-row:2}
  body[data-r42-route="collection"] .kpi-grid-5>div:nth-child(5){grid-column:2;grid-row:2}
  body[data-r42-route="collection"] .kpi-grid-5>div:nth-child(4){grid-column:1/-1;grid-row:3}
  body[data-r42-route="collection"] .kpi-grid-5 .num{font-size:clamp(1.25rem,6vw,1.55rem)!important;overflow-wrap:anywhere}
  body[data-r42-route="collection"] .aph-collection-target{max-width:100%;white-space:normal!important;font-size:12px!important;line-height:1.45}
  body[data-r42-route="collection"] .aph-page-view-switch{margin-bottom:10px!important;padding:8px!important}
  body[data-r42-route="collection"] .aph-page-view-switch button{flex:1 1 0;padding-inline:8px!important}

  /* 回款执行在手机上改为信息卡，不再要求横向寻找关键金额和完成率。 */
  body[data-r42-route="payment"] .aph-payment-desktop-table{display:none!important}
  body[data-r42-route="payment"] .aph-mobile-payment-cards{display:grid;gap:10px;margin-bottom:12px}
  body[data-r42-route="payment"] .aph-mobile-payment-summary{display:grid;grid-template-columns:1fr auto;gap:6px 12px;padding:14px 16px;background:#101820;color:#f8fafc}
  body[data-r42-route="payment"] .aph-mobile-payment-summary>span:first-child{grid-column:1/-1;color:#cbd5df;font-size:12px}
  body[data-r42-route="payment"] .aph-mobile-payment-summary>strong{font-size:16px;font-weight:700}
  body[data-r42-route="payment"] .aph-mobile-payment-summary>span:last-child{justify-self:end;font-size:13px}
  body[data-r42-route="payment"] .aph-mobile-payment-card{min-width:0;padding:14px;border:1px solid #d9dde2;background:#fff}
  body[data-r42-route="payment"] .aph-mobile-payment-card header{display:grid;gap:4px;margin-bottom:12px;padding-bottom:10px;border-bottom:1px solid #e5e7eb}
  body[data-r42-route="payment"] .aph-mobile-payment-card header span{color:#c9161d;font-size:12px;font-weight:650}
  body[data-r42-route="payment"] .aph-mobile-payment-card h2{margin:0;color:#252b32;font-size:17px;line-height:1.35;overflow-wrap:anywhere}
  body[data-r42-route="payment"] .aph-mobile-payment-card dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;margin:0}
  body[data-r42-route="payment"] .aph-mobile-payment-card dl>div{min-width:0;margin:0}
  body[data-r42-route="payment"] .aph-mobile-payment-card dt{margin:0 0 4px;color:#6b7280;font-size:12px}
  body[data-r42-route="payment"] .aph-mobile-payment-card dd{min-width:0;margin:0;color:#303740;font-size:15px;font-weight:650;overflow-wrap:anywhere}
  body[data-r42-route="payment"] .aph-mobile-payment-card dd .num{font-size:15px}

  /* 文件上传是欠费诊断的首要动作，触控和说明文字按手机阅读标准收口。 */
  .arrears-command__file input[type="file"]{min-height:44px!important;font-size:16px!important;line-height:1.4}
  .arrears-command__file small,.arrears-command__file-title i{font-size:12px!important;line-height:1.5}
}

@media(pointer:coarse){
  .arrears-command__file input[type="file"]{min-height:44px}
}
