/* v10k 手机竖屏修正（志和「手机一起修」）。只在 768px 以下竖屏生效，桌面不变。放在 mobile.css 之后加载。
   7) 欠货分页「上一页 / 下一页」不折行：不吃 .mod-tab 手机规则的 flex: 1 1 0。
   8) 订单详情顶部单号不折行；右边的标签、关闭按钮放不下时换到下一行。
   9) 详情全屏时用动态视口高度（iOS Safari 工具栏不再盖住底部），底部打印栏留出安全区，正文底部多留空白。
   10) iPhone SE（375 宽）：数据来源小字缩一点、不再被裁；「预计用时」格稍宽（12小时35分 也放得下）。
   11) 有搜索词时：不显示放大镜图标，「几单匹配」只显示数字（小圆标），输入区至少约 120px。 */
@media (max-width: 768px) and (orientation: portrait) {
  .owed-pager .mod-tab { flex: 0 0 auto; white-space: nowrap; padding: 6px 12px; }
  .owed-pager > span { white-space: nowrap; }

  .d-top { flex-wrap: wrap; }
  .d-top > div:first-child { flex: 1 1 auto; min-width: 0; }
  .d-top h2 { white-space: nowrap; font-size: 20px; }

  .detail { height: 100dvh; max-height: 100dvh; }
  .d-body { padding-bottom: 28px; scroll-padding-bottom: 28px; }
  .d-foot { padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }

  .today { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.35fr); }
  .today .stat b { white-space: nowrap; }

  #searchBox.has-q .search-ico { display: none; }
  #searchBox.has-q .search-hint { flex: 0 0 auto; width: auto; min-width: 18px; max-width: 44px; padding: 1px 5px; font-size: 0;
    border-radius: 9px; background: var(--stat-bg); text-align: center; line-height: 1; }
  #searchBox.has-q .search-hint::after { content: attr(data-n); font-size: 12px; line-height: 16px; }
}
@media (max-width: 380px) and (orientation: portrait) {
  .top-tools > .src-under { font-size: 9.5px; letter-spacing: -.1px; }
}
