/* v10e：点 logo 打开侧边导航（弹出 / 收起）+ 欠货跟踪、采购跟踪、财务三个模块页。电视页不加载。 */
.brand-logo { cursor: pointer; }
.brand-logo:focus { outline: 2px solid #1f2d3d; outline-offset: 2px; }
.side-nav { position: fixed; top: 0; left: 0; bottom: 0; width: 260px; background: #fff; z-index: 60; box-shadow: 4px 0 24px rgba(0,0,0,.18);
  transform: translateX(-105%); transition: transform .2s ease; display: flex; flex-direction: column; padding: 12px; gap: 6px; }
.side-nav.open { transform: none; }
.nav-mask { position: fixed; inset: 0; background: rgba(15,23,42,.28); z-index: 59; display: none; }
.nav-mask.show { display: block; }
.nav-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 15px; padding: 4px 4px 8px; }
.nav-close { border: 0; background: #eef1f5; border-radius: 6px; width: 32px; height: 32px; font-size: 18px; cursor: pointer; }
.nav-item { text-align: left; border: 1px solid #e2e7ee; background: #f8fafc; border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.nav-item b { display: block; font-size: 15px; } .nav-item small { color: #6b7280; font-size: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.nav-item.on { background: #1f2d3d; border-color: #1f2d3d; color: #fff; } .nav-item.on small { color: #cbd5e1; }
.nav-wh { display: inline-flex; gap: 6px; flex: 0 0 auto; }
.nav-wh-link { color: inherit; text-decoration: none; padding: 2px 8px; border-radius: 6px; font-weight: 700; white-space: nowrap; }
.nav-wh-link.on { background: #1f2d3d; color: #fff; }
.nav-item.on .nav-wh-link { color: #cbd5e1; }
.nav-item.on .nav-wh-link.on { background: #fff; color: #1f2d3d; }
.nav-foot { margin-top: auto; font-size: 12px; color: #8a8f98; }
.mod-page { position: absolute; inset: 0; z-index: 5; background: #f3f5f8; overflow: auto; padding: 12px 16px 24px; }
body.in-mod .board { visibility: hidden; }
.mod-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.mod-top h2 { margin: 0; font-size: 20px; }
.mod-top input { flex: 1 1 260px; max-width: 420px; height: 36px; border: 1px solid #c9d2de; border-radius: 8px; padding: 0 10px; font-size: 14px; }
.mod-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.mod-tab { border: 1px solid #c9d2de; background: #fff; border-radius: 8px; padding: 6px 12px; cursor: pointer; font-weight: 600; }
.mod-tab.on { background: #1f2d3d; color: #fff; border-color: #1f2d3d; }
.mod-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 10px; }
.mod-sum .m { background: #fff; border-radius: 10px; padding: 10px 12px; } .mod-sum b { display: block; font-size: 20px; }
.mod-sum span { color: #6b7280; font-size: 12px; }
.mod-body h3 { font-size: 14px; margin: 14px 0 6px; }
.mod-scroll { overflow-x: auto; background: #fff; border-radius: 10px; }
.mod-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.mod-t th, .mod-t td { padding: 6px 8px; border-bottom: 1px solid #eef1f5; text-align: left; vertical-align: top; }
.mod-t th { background: #f8fafc; font-weight: 700; color: #4b5563; position: sticky; top: 0; }
.mod-t .r { text-align: right; white-space: nowrap; } .mod-t small { color: #8a8f98; }
.mod-t .late { color: #b42318; }
/* v10p：预计到货超期只改配色为红底白字，闪动动画沿用 board.css .due.late */
.mod-t .due.late { color: #fff; background: var(--urgent); }
.mod-empty { background: #fff; border-radius: 10px; padding: 16px; color: #6b7280; }
.mod-note { font-size: 12px; color: #6b7280; margin: 0 0 6px; }
.mod-why { background: #fff4e5; border: 1px solid #f5c58a; border-radius: 8px; padding: 8px 10px; font-size: 13px; margin: 0 0 8px; }
.mod-status { margin-top: 16px; background: #fff; border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.mod-status summary { cursor: pointer; font-weight: 700; color: #4b5563; }
.mod-st { border-radius: 6px; padding: 1px 6px; font-size: 12px; font-weight: 700; }
.mod-st.ok { background: #e7f6ec; color: #146c2e; } .mod-st.bad { background: #fde8e7; color: #a3261b; }
.mod-st.warn { background: #fff4e5; color: #8a4b00; } .mod-st.none { background: #eef1f5; color: #6b7280; }
.mod-msg { max-width: 360px; color: #6b7280; word-break: break-all; }
.mod-t .tag { white-space: nowrap; display: inline-block; }
.mod-so { color: #1d4ed8; font-weight: 700; text-decoration: none; }
@media (max-width: 768px) and (orientation: portrait) {
  .side-nav { width: 82vw; }
  .mod-page { padding: 10px 10px 24px; position: static; min-height: 60vh; }
  body.in-mod .m-tabs, body.in-mod .board { display: none !important; }
  .mod-top h2 { font-size: 18px; } .mod-top input { flex-basis: 100%; max-width: none; }
  .mod-tab { flex: 1 1 0; padding: 6px 4px; font-size: 13px; }
  .mod-sum { grid-template-columns: 1fr 1fr; } .mod-sum b { font-size: 17px; }
  .mod-t { font-size: 12px; } .mod-t th, .mod-t td { padding: 5px 5px; }
  .mod-status .mod-msg { max-width: 160px; }
}
/* v10h 欠货跟踪：分组行可点（选中高亮）、明细分页、单号列固定宽度不折行、客户紧跟单号、交期往左靠 */
.owed-grp { cursor: pointer; } .owed-grp:hover td { background: #f1f5fb; }
.owed-grp.on td { background: #1f2d3d; color: #fff; } .owed-grp.on .due.late { color: #ffd2cc; }
.owed-pick { margin: 0 0 6px; font-size: 13px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.owed-pager { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 4px; font-size: 13px; }
.owed-pager .mod-tab[disabled] { opacity: .4; cursor: default; }
.owed-pager select { height: 30px; border: 1px solid #c9d2de; border-radius: 6px; padding: 0 4px; }
.owed-t td.c-so, .owed-t th.c-so { width: 14em; min-width: 14em; white-space: nowrap; }
.owed-t td.r, .owed-t th.r { width: 1%; }
.owed-t td.c-cust, .owed-t th.c-cust { width: 16em; max-width: 16em; }
.owed-t td.c-due, .owed-t th.c-due { width: 6.5em; white-space: nowrap; }
/* v10i 欠货跟踪分组表：固定 10 行高（高度由 owed_groups_scroll.js 按实际行高算出），表头 sticky，手机可触摸滚动 */
.owed-groups { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; }
.owed-groups thead th { position: sticky; top: 0; z-index: 2; box-shadow: 0 1px 0 #e2e7ee; }
