/* 90-mobile.css */
@media (max-width:900px){
  .krow,.arow{grid-template-columns:1fr 1fr}
  .qgrid{grid-template-columns:repeat(4,1fr)}
  .fgrid{grid-template-columns:1fr 1fr}
  .fgrid.fgrid4{grid-template-columns:1fr 1fr}
  .dashk{grid-template-columns:1fr 1fr}
  .side{width:80px}.main{margin-left:80px}
  .brand{margin:4px 0 12px;padding:6px 4px 6px 8px;min-height:40px}
  .brand .blogo{height:30px}
  .page{padding:12px 10px 30px}
  .tb{font-size:12px}
  .card{padding:12px}
}

@media (max-width:620px){
  .page.pgov{padding:14px 14px 32px}
  .krow{grid-template-columns:1fr 1fr;gap:16px;margin-bottom:20px}
  .arow{grid-template-columns:1fr;gap:16px;margin-bottom:20px}
  .fgrid{grid-template-columns:1fr}
  .fgrid.fgrid4{grid-template-columns:1fr 1fr}
  /* 申请信息：主体列按合同主体全称长度自适应，请款日期占剩余（日期文字定长短，留 108px 即可） */
  .fgrid.fgrid4.fgrid-auto{grid-template-columns:minmax(0,auto) minmax(108px,1fr)}
  .fgrid.fgrid4.fgrid-auto>.fi{min-width:0}
  .qgrid{grid-template-columns:repeat(4,1fr);gap:6px}
  .dashk{grid-template-columns:1fr 1fr}
  .uchip .uname{display:none}
  /* 侧栏收起 → 底部标签栏 */
  .side{display:none}
  .main{margin-left:0}
  #tabbar{display:flex}
  .top{height:50px;padding:0 12px;gap:8px}
  .crumb{display:none}
  .top .sp{flex:initial}
  .entpick{height:30px;padding:0 9px;gap:5px}
  .entpick .entname{font-size:12px}
  /* 主体下拉：贴胶囊左对齐，防止窄屏溢出被截断 */
  .entpick .entmenu{left:0;right:auto;max-width:calc(100vw - 24px)}
  .entmenu .emi{font-size:13px;padding:9px 11px}
  .entmenu .emi-lg{width:auto;height:18px;max-width:110px;object-fit:contain;flex:none;display:block}
  .entone{padding:0 10px;font-size:12px}
  /* 账号信息悬浮在顶栏右侧（桌面端才隐藏顶栏） */
  .uchip.topchip{position:fixed;top:10px;right:12px;z-index:36;height:30px;padding:0 8px 0 4px;gap:5px}
  .uchip.topchip .av{width:22px;height:22px;font-size:11px}
  .uchip .av{width:26px;height:26px;font-size:11px}
  .uchip a{font-size:11.5px}
  .page{padding:12px 12px 84px}
  h2.pt{font-size:16px;margin-bottom:10px}
  .card{padding:13px;border-radius:13px;overflow-x:auto}
  /* .df 分区卡（详情页/物业社区详情等）同样允许横向滚动：内部 .tb 表格 min-width 560px 会撑破页面 */
  .df{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .card h3{font-size:13.5px}
  /* 表格：横滚 + 紧凑行 */
  .tb{font-size:12px;min-width:560px}
  .tb th,.tb td{padding:8px 9px}
  .tb .lnk{font-size:11.5px;white-space:nowrap}
  .tb .pill{padding:2px 8px;font-size:10.5px}
  .pill{padding:2px 8px;font-size:11px}
  .subtabs{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;width:auto}
  .subtabs a{padding:6px 13px;white-space:nowrap}
  /* 输入 16px 防 iOS 聚焦缩放（.sel 限定 select，勿命中选中卡片 .mcard.sel） */
  .inp,select.sel,textarea.inp{font-size:16px}
  /* iOS Safari 对 select 不完全遵守 height（按自身字体度量撑高，比 input 高约 6px），
     用 line-height 同步锁高，保证与输入框等高 */
  select.sel{height:34px!important;line-height:34px;-webkit-appearance:none;appearance:none}
  .btn{height:36px;padding:0 15px;font-size:13px}
  .btn.sm{height:30px;padding:0 11px;font-size:12.5px}
  .inp + .btn,select + .btn,select.sel + .btn{height:36px}
  .ctbtn{height:36px}
  .ctdropb{height:28px;font-size:11.5px}
  .ctbtn.grn{height:30px;font-size:11.5px}
  /* 弹窗改底部抽屉 */
  .mod{padding:0;align-items:flex-end}
  .mod .mbox,.mod .mbox.sm{width:100%;max-height:90vh;border-radius:18px 18px 0 0}
  .drawer{width:100vw;right:-100vw}
  .dh{padding:13px 16px}
  .mb{padding:14px 16px 22px}
  .krow .kc{padding:16px 16px 15px;min-height:0}
  .kc .val{font-size:22px;padding-right:58px;margin-top:8px}
  .kc .val small{display:block;margin:3px 0 0;font-size:11px;line-height:1.3}
  .kc .ic{right:14px;width:52px;height:45px}
  .kc .ic svg{width:26px;height:26px}
  .arow .ac{padding:18px 18px 20px}
  .lv{margin-top:20px}
  .lv>div{padding-left:14px}
  .ovsec{font-size:15px;margin-bottom:14px}
  .seg a{padding:5px 12px;font-size:12px}
  .qi span{font-size:12px}
  .ufgrid{grid-template-columns:1fr}
  .rolecards{grid-template-columns:1fr}
  /* 付款管理（截图风格适配） */
  .payhead .barcode{display:none}
  .payvcrumb{display:flex}
  .formfoot{flex-wrap:wrap;bottom:8px;gap:10px;padding:11px 14px}
  .formfoot .hint{flex:1 1 100%}
  /* 合同工具条：按钮自然换行，「合同操作」独占一行靠右 */
  .ctbar > span[style]{display:none}
  .ctdrop{margin-left:auto}
  .formfoot .btn{flex:1 1 0;min-width:0}
  .formfoot .ops{width:100%}
  .formfoot .btn{flex:1}
  .paytool .btn{padding:7px 10px}
  /* 手机端检索框与按钮同高（36px）；汇总在卡片区顶部单独一行 */
  .paysearch .inp,.paysearch .btn{height:36px}
  /* 页头常驻检索（合同/场地/柜机）：独占一行、输入框自适应，避免把页头撑爆 */
  .cthead .ctbar .paysearch.inline,.sthead .ctbar .paysearch.inline{
    flex:1 1 100%;margin-bottom:4px}
  .cthead .ctbar .paysearch.inline .inp,.sthead .ctbar .paysearch.inline .inp{
    width:auto;flex:1;max-width:none;min-width:0}
  .paytabs-sum{display:none}
  /* 分段标签手机端：收窄内边距，整条可横向滑动 */
  .paytabs{gap:0;margin-bottom:12px;padding-bottom:1px}
  .paytabs-in{gap:1px;padding:3px;border-radius:10px}
  .paytabs a{padding:6px 12px;font-size:13px;border-radius:7px}
  .paysearch.inline{flex-wrap:wrap}
  /* 合同新增页（cnbody）手机端 */
  #cnbody .df{padding:14px 13px 16px;border-radius:12px}
  #cnbody .df>h4{font-size:13.5px}
  #cnbody .fi label{font-size:12px}
  #cnbody textarea.inp{min-height:72px}
  .circbtn{width:30px;height:30px;font-size:15px}
  /* 列表统计行/筛选行不溢出；水平内边距与手机端 .card(13px) 对齐 */
  .payhead,.ctbar{flex-wrap:wrap}
  .ctbar{padding-left:13px;padding-right:13px}
}

@media (max-width:620px){
  #cnbody .inp,#cnbody .sel,#cnbody textarea.inp,#cnbody .fi>.ro,#cnbody .fi .ropt,#cnbody .ropt{font-size:16px}
  #cnbody .fi>label{font-size:12.5px}
  /* 付款审核卡片：信息网格两列排布，避免每项独占一行拉成长条 */
  .acard-hd .nm{font-size:15.5px}
  .acard-hd .amtx{font-size:16.5px}
  .acard-sub{font-size:11.5px;margin-top:6px;padding-bottom:8px}
  .agrid,.acard .agrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:9px}
  .agrid .kv{padding:8px 9px;border-radius:8px}
  .agrid .kv span{font-size:11px}
  .agrid .kv b{font-size:12.5px;margin-top:2px}
  .agrid .kv.kv-wide{grid-column:1/-1}
}

/* ===== 手机端列表卡片化（合同 / 社区 / 物业 / 账号 / 主体共用） ===== */
@media (max-width:620px){
  .mcardlist{display:flex;flex-direction:column;gap:9px}
  .mcard{border:1px solid var(--line);border-radius:12px;padding:11px 12px;background:#fff}
  .mcard.sel{border-color:#c9d9f7;background:#f7faff}
  .mchd{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
  .mchd .mck{width:17px;height:17px;flex:none;margin:0 2px 0 0}
  .mchd b.mcttl{font-weight:600}
  .mcttl{flex:1;min-width:0;font-size:14.5px;font-weight:600;color:var(--ink);text-decoration:none;
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .mcttl:active{color:var(--org)}
  .mchd .pill{flex:none;padding:2.5px 9px;border-radius:999px;font-size:10.5px;
    font-weight:500;letter-spacing:.2px}
  /* 卡头标签精修：类型（新签/续签…）用描边幽灵款，状态用低饱和软底，去掉笨重的方角色块 */
  .mchd .pill.gr{background:transparent;color:#98a1b3;box-shadow:inset 0 0 0 1px #e3e8f0}
  .mchd .pill.g{background:#e9f7f0;color:#2f9e6b}
  .mchd .pill.o{background:#fdf3e4;color:#d9862c}
  .mchd .pill.b{background:#ecf3fe;color:#4a78d8}
  .mchd .pill.y{background:#fdf6e3;color:#b98a1a}
  .mchd .pill.r{background:#fdeeee;color:#d95f5f}
  .mchd .pill.p{background:#eff1fe;color:#5b63d6}
  .mcmeta{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap;margin-top:6px;
    font-size:12px;color:var(--sub);word-break:break-all}
  .mcmeta .mono{font-variant-numeric:tabular-nums;letter-spacing:.2px}
  .mcaddr{margin-top:5px;font-size:12px;color:var(--sub);line-height:1.6;word-break:break-all}
  .mcaddr .atags{margin:0}
  .mcpills{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}
  .mcft{display:flex;align-items:center;flex-wrap:wrap;row-gap:8px;gap:8px;margin-top:9px;
    padding-top:9px;border-top:1px dashed #eef1f6}
  .mcby{font-size:11.5px;color:#9aa4b6;flex:1 1 auto;min-width:100px;overflow:hidden;
    text-overflow:ellipsis;white-space:nowrap}
  .mcops{display:inline-flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end;
    max-width:100%;flex:none;margin-left:auto}
  .mcops a{white-space:nowrap}
  .mcops .opico{margin:0}
  .mcops .ops{gap:10px;font-size:12.5px}
  .mcardall{display:flex;align-items:center;justify-content:space-between;gap:8px;
    margin:0 2px 9px;font-size:12px;color:var(--sub)}
  .mcardall label{display:inline-flex;align-items:center;gap:6px}
  .mcardall input{width:17px;height:17px;margin:0}
  /* 配置中心：两列说明表 → 纵向排列，长路径不再被右侧裁掉
     （需覆盖全局 .tb 的 min-width:560px，否则仍横向滚动截断） */
  table.nas-tb{display:block;min-width:0!important;width:auto}
  table.nas-tb tbody{display:block}
  table.nas-tb tr{display:block;padding:7px 0;border-bottom:1px dashed #eef1f6}
  table.nas-tb tr:last-child{border-bottom:0}
  table.nas-tb th{display:none}
  table.nas-tb td{display:block;border:0;padding:0;background:none!important;white-space:normal}
  table.nas-tb td:first-child{font-weight:600;font-size:12px!important;color:var(--ink)}
  table.nas-tb td:last-child{word-break:break-all;margin-top:1px;font-size:11px!important;line-height:1.55;color:var(--sub)!important}
  /* 合同模版表：改为逐条竖排，名称一行、格式/大小/时间一行、下载删除一行 */
  .tplwrap table,.tplwrap tbody{display:block}
  .tplwrap tr{display:block;padding:10px 0;border-bottom:1px dashed #eef1f6}
  .tplwrap tr:first-child{display:none}
  .tplwrap td{display:block;border:0;padding:0;background:none!important;white-space:normal}
  .tplwrap td:nth-child(1){font-weight:600;font-size:13.5px;color:var(--ink);word-break:break-all}
  .tplwrap td:nth-child(2),.tplwrap td:nth-child(3),.tplwrap td:nth-child(4){
    display:inline-block;margin:3px 12px 0 0;font-size:11.5px;color:var(--sub)}
  .tplwrap td:nth-child(5){margin-top:5px}
  .tplwrap td:nth-child(5) .ops{gap:12px}
}

@media (max-width:620px){
  /* 概览·最近动态：时间与操作人一行，正文另起一行，避免正文被挤成窄条 */
  .pgov .tline li{flex-wrap:wrap;gap:2px 8px;line-height:1.65}
  .pgov .tline li>span:last-child{flex:1 1 100%}
}

@media (max-width:620px){
  /* 付款申请·小区合同明细：＋/－ 圆形按钮改成带文字的胶囊，不再像游离的小圆点 */
  #pa_rowops{align-items:center;gap:8px;margin:0 0 10px;flex-wrap:wrap}
  #pa_rowops .circbtn{width:auto;height:32px;border-radius:9px;padding:0 12px;
    font-size:12.5px;font-weight:500;gap:4px}
  #pa_rowops .circbtn.add::after{content:"添加小区合同"}
  #pa_rowops .circbtn.del::after{content:"删除勾选"}
  /* 锁定说明独占一行，避免和两个按钮挤在一起溢出卡片 */
  #pa_rowops .palock-tip{flex:1 1 100%;font-size:11.5px}
  /* 空状态在手机上收紧，减少大片留白 */
  .bizempty{padding:16px 0 12px}
  .bizempty svg{width:34px;height:34px;margin-bottom:6px}
}

@media (max-width:620px){
  /* 合同表单·基本信息：单条记录无需增删，隐藏装饰用的 ＋/－ */
  .cnrowops-noop{display:none!important}
  /* 合同表单·业务信息：＋/－ 带文字，说明清楚不再是孤立小圆点 */
  .cnrowops-biz .circbtn{width:auto;height:32px;border-radius:9px;padding:0 12px;
    font-size:12.5px;font-weight:500;gap:4px}
  .cnrowops-biz .circbtn.add::after{content:"添加小区"}
  .cnrowops-biz .circbtn.del::after{content:"删除勾选"}
  /* 物业公司 A/B：名称独占一行，＋/－ 跟在其后，避免 1/3 宽输入框塞不下名称 */
  .cnprop-hd{flex-wrap:wrap;align-items:center;gap:8px}
  .cnprop-hd .cnprop-name{flex:1 1 100%}
  .cnprop-hd .circbtn{margin-bottom:0!important}
  /* 业务信息：宽表在手机上改为「一小区一卡」，地址按台拆行后单价完整可见，不再横向裁切 */
  #cnsites .tb{display:block;width:100%;min-width:0}
  #cnsites .tb tr.cnf-head{display:none}
  #cnsites .tb tr.cnf-row{display:block;position:relative;margin:0 0 10px;padding:10px 12px;
    border:1px solid #e9edf5;border-radius:12px;background:#fff;
    box-shadow:0 2px 10px -8px rgba(38,51,77,.18)}
  #cnsites .tb tr.cnf-row:hover td{background:transparent}
  #cnsites .tb td{display:block!important;border:0!important;padding:2px 0!important;
    background:transparent!important;max-width:none!important;text-align:left!important}
  #cnsites .tb td.cnf-ck{position:absolute;top:11px;right:12px;width:auto}
  #cnsites .tb td::after{display:none}   /* 卡片式布局下不要行分隔渐隐层 */
  #cnsites .tb td.cnf-code{font-size:11px;color:var(--sub)}
  #cnsites .tb td.cnf-code::before{content:"选址编码 "}
  #cnsites .tb td.cnf-name{font-size:14px;padding:2px 30px 6px 0!important}
  #cnsites .tb td.cnf-hosts{display:none!important}   /* 品牌/台数已在每台行内标注 */
  #cnsites .tb td.cnf-rent{margin-top:6px;padding-top:7px!important;border-top:1px dashed #eef1f7!important}
  #cnsites .tb td.cnf-rent::before{content:"租金(元/年/台) ";display:block;font-size:11px;color:var(--sub)}
  #cnsites .tb td.cnf-rate{margin-top:6px}
  #cnsites .tb td.cnf-rate::before{content:"电费(元/度) ";font-size:11px;color:var(--sub)}
  #cnbody .tb td.cnaddr{min-width:0}
  .cnunit{gap:5px 7px}
  .cnunit .nm{flex:1 1 calc(100% - 26px)}
  .cnunit .bd,.cnunit .exp{flex:1 1 100%;padding-left:21px}
  .cnusum{padding-left:21px}
  .cnrentwrap .cn-urs{flex:0 0 130px;text-align:left}
  .cnrentsum{white-space:normal}
}

@media (max-width:620px){
  /* 合同表单·物业公司 A/B：＋/－ 也带文字，避免两个孤立圆点 */
  .cnprop-hd .circbtn{width:auto;height:32px;border-radius:9px;padding:0 12px;
    font-size:12.5px;font-weight:500;gap:4px}
  .cnprop-hd .circbtn.add::after{content:"选择物业"}
  .cnprop-hd .circbtn.del::after{content:"清空"}
}

@media (max-width:620px){
  /* 付款申请·小区合同明细：宽表改卡片，每份合同一块，输入框可正常填写 */
  .paclist{display:flex;flex-direction:column;gap:9px}
  .pac{border:1px solid var(--line);border-radius:12px;padding:11px 12px;background:#fff;
    transition:background .15s,box-shadow .15s}
  .pachd{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
  /* 勾选框走全站统一样式（10-components.css），手机端不再放大改尺寸 */
  #pa_ct_wrap .pachd .pack{margin:0 3px 0 0;flex:none}
  .pacttl{flex:1;min-width:0;font-size:14px;font-weight:600;color:var(--ink);
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .pacmt{display:flex;gap:8px;flex-wrap:wrap;margin-top:5px;font-size:12px;
    color:var(--sub);word-break:break-all}
  .pacmeter{margin-top:6px;padding:5px 9px;border-radius:8px;background:#f6f8fc;
    font-size:11.8px;color:var(--sub)}
  .pacmeter b{color:var(--ink);font-weight:600}
  /* 四格等宽：minmax(0,1fr) 防止 date 固有最小宽把「付款结束」挤出卡片 */
  .pacgrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;
    margin-top:9px;align-items:start}
  .pacfld{min-width:0}
  .pacfld label{display:block;font-size:11.5px;color:var(--sub);margin-bottom:3px}
  .pacfld .inp{width:100%!important;max-width:100%;height:34px!important;min-height:34px;
    padding:4px 8px;font-size:16px;line-height:26px;min-width:0;box-sizing:border-box}
  /* font-size 必须 ≥16px：iOS Safari 聚焦 <16px 的输入框会自动放大页面（auto-zoom），
     导致 position:fixed 的自绘日历错位/放大跑出屏幕 */
  /* 日期框与数字框同宽同高：部分手机 UA 的原生日期控件自带更大的固有尺寸与内边距，
     统一抹掉原生外观与内部编辑区高度，只保留自绘日历图标（点击仍弹原生选择器） */
  .pacfld input[type=date].inp,.pacfld input[type=date],.pacfld input.dt-txt{
    -webkit-appearance:none;appearance:none;display:block;
    height:34px!important;min-height:0!important;max-height:34px;
    padding:4px 26px 4px 8px!important;line-height:26px;box-sizing:border-box}
  .pacfld input[type=date]::-webkit-datetime-edit{
    padding:0;height:26px;line-height:26px;min-height:0;max-height:26px}
  .pacfld input[type=date]::-webkit-date-and-time-value{
    text-align:left;min-height:0;line-height:26px;margin:0}
  .pacfld input[type=date]::-webkit-calendar-picker-indicator{
    display:none;opacity:0;width:0;height:0;padding:0;margin:0}
  .pac .pa-mhint{font-size:11px;color:var(--sub);margin-top:5px;white-space:normal!important}
  .pac.pa-row[style*="background"]{border-color:#c9d9f7}
}

@media (max-width:620px){
  /* 筛选栏：手机上允许换行，输入框/下拉按整行或两列铺开，不溢出卡片 */
  .payfilter{flex-wrap:wrap}
  .payfilter .inp{flex:1 1 100%;max-width:none!important;width:auto!important}
  .payfilter .sel{flex:1 1 calc(50% - 4px);min-width:0;width:auto!important}
  .payfilter .btn{flex:none;margin-left:auto}
  .ctfg{display:flex;flex-wrap:wrap;gap:8px;flex:1 1 100%}
  .ctfg .inp:not([type="date"]){flex:1 1 100%;max-width:none!important;width:auto!important}
  .ctfg .sel{flex:1 1 100%;min-width:0;width:auto!important}
  .ctdates{display:flex;align-items:center;gap:6px;flex:1 1 auto;width:100%;min-width:0;box-sizing:border-box}
  .ctdates .inp{flex:1 1 0;min-width:0;width:auto!important}
  .ctfg .btn{flex:none}
}

@media (max-width:620px){
  /* 选择小区弹窗（点位芯片多选）：一行收成卡片，芯片铺开换行 */
  .mod .mbox{max-height:94vh}
  .mod .mf{flex-wrap:wrap;row-gap:6px}
  /* 手机端弹窗底部按钮收窄：去长内边距、降一号高度 */
  .mf .btn,.formfoot .btn,.ops .btn{height:30px;padding:0 14px;font-size:12px}
  .mf .btn.sm,.formfoot .btn.sm,.ops .btn.sm{height:26px;padding:0 12px;font-size:11.5px}
  .pact-seln{flex:1 1 100%;order:3;max-width:none;text-align:center;font-size:11.5px}
  .pasl-list{max-height:56vh}
  .pasl-hd{display:none}
  .pasl-row{grid-template-columns:minmax(0,1fr);gap:4px 8px;padding:10px}
  .pasl-nm{grid-row:1}
  .pasl-nm b{white-space:normal;font-size:13.5px}
  .pasl-nm small{white-space:normal;font-size:11px}
  .pasl-code{grid-row:2;margin:0;font-size:11.5px}
  .pasl-chips{grid-row:3;padding-top:6px;border-top:1px dashed #eef1f7}
  .pasl-chip{max-width:100%;padding:4px 11px;font-size:12.5px}
}

/* 新增社区：设备安装地址行在窄屏卡片化，品牌 / 终端号 / 状态自动折行 */
@media (max-width:620px){
  /* 区块标题里的说明文字换到下一行，避免「设备安装地址」被挤成断字 */
  #mcomm .df>h4{flex-wrap:wrap}
  #mcomm .df>h4 span{flex:1 1 100%;white-space:normal;line-height:1.5}
  .ia-row{gap:6px;padding:9px 10px;background:#f8f9fd;border:1px solid #eef1f7;
    border-radius:9px;margin-bottom:8px}
  .ia-row>input.inp{flex:1 1 100%!important;min-width:0!important}
  .ia-row>.sel{flex:0 0 auto;width:104px!important}
  .term-box{flex:1 1 150px;min-width:0}
  .term-box .term-num,.term-box.free .term-num{width:100%!important;min-width:70px}
  .ia-row>span[id^="cf_ih_"]{flex:1 1 auto;min-width:0}
  .ia-row .term-refresh{flex:0 0 26px}
}

/* 结算方式胶囊：手机端三个一行排布（短名称后宽度足够），不换行不截断 */
.paseg{flex-wrap:nowrap}
.paseg-i{flex:1;padding:7px 6px;white-space:nowrap;text-overflow:ellipsis}

/* 页头吸顶（合同/场地中台/付款管理，≤900px）：顶部工具栏 50px，页头贴其下方；页边距同步收窄 */
@media (max-width:900px){
  /* 页头顶部留白减半：页签行与工具行之间不再隔一大条空白（各列表页同步） */
  .cthead,.sthead,.paystick{top:50px;margin:-12px -12px 0;padding:5px 12px 0}
  /* 页签上下留白一致（与桌面 8px 同步） */
  .cthead .paytabs,.sthead .paytabs,.paystick .paytabs{margin-top:8px;margin-bottom:8px}
  /* 合同页工具行并入页头后按钮较多，手机端不再吸顶，随页面滚动 */
  .cthead{position:static}
  /* 工具行（合同/场地中台/柜机/付款）：手机端统一 8px 上留白、左右 0
     （页头自身已有 12px 左右内边距，按钮与卡片内容两缘对齐，各页一致） */
  .cthead .ctbar,.sthead .ctbar,.paystick .sticktool{padding:8px 0 4px}
}
@media (max-width:620px){
  .paystick .sticktool{display:none}   /* 手机端工具行用列表内的 paymobtop / 检索行 */
}

/* 付款审核详情·费用明细：手机端小区分组块自身横向滚动（表格留在分组边框内），金额列不被截到屏外 */
@media (max-width:620px){
  .pvgrp{overflow-x:auto;-webkit-overflow-scrolling:touch}
  /* 柜机点位表单：区块标题里的说明文字换到下一行，避免「绑定社区」被挤成断字 */
  #mcab .df>h4{flex-wrap:wrap}
  #mcab .df>h4 span{flex:1 1 100%;white-space:normal;line-height:1.5}
}

/* 合同列表卡：年限徽章 + 合同区间 + 金额（期） */
.mcard .mcinfo{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:8px 0 0;font-size:11.5px;color:var(--sub)}
.mcard .mcterm{background:#f1f4fa;border-radius:5px;padding:1.5px 7px;color:#55658a;white-space:nowrap}
.mcard .mcrange{font-variant-numeric:tabular-nums;letter-spacing:.1px}
/* 租金金额：改用深墨色数字 + 浅灰「租金」前缀，替代刺眼的大红 */
.mcard .mcamt{margin-left:auto;color:#26314a;font-weight:600;white-space:nowrap;
  font-variant-numeric:tabular-nums;letter-spacing:.1px}
.mcard .mcamt .mclb{color:#98a1b3;font-weight:400;margin-right:2px}
/* 同排两个金额（年租金 + 每期）：第二个只留固定间距，避免双 auto 边距分散 */
.mcard .mcamt+.mcamt{margin-left:8px}
