/* 顶部标题栏布局（v9f，2026-11-23 00:35 志和），主页和电视页共用，最后加载。
   1. ASIA 图标高 = 两行（「WAREHOUSE BOARD」小字 + 主标题），主标题跟在图标右边；徽标行和数据来源在下面。
   2. 看板订单 / 品种 / 数量三个框一样宽：网格按内容定宽，三列 1fr 取最宽那格（通常是「看板数量」）；预计用时按内容。
      位置不够时缩搜索框（搜索框所在列 minmax(0, 1fr)）。
   3. 时钟下面日期一行，「雅加达时间」另起一行，时钟这块变窄。 */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { display: block; height: var(--logo-h, 42px); width: auto; object-fit: contain; flex: 0 0 auto; }
.brand-text { min-width: 0; }
.brand-text h1 { margin: 2px 0 0; white-space: nowrap; }
.top-main > div:first-child > .badge-line { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; }
.top-main > div:first-child > .badge-line:empty { display: none; }
.top-main { grid-template-columns: 400px max-content minmax(0, 1fr) max-content; }
.today { display: grid; grid-template-columns: repeat(3, 1fr) max-content; width: max-content; }
.today .stat { min-width: 0; white-space: nowrap; }
.top-tools { min-width: 0; }
.search-box { min-width: 0; flex: 1 1 auto; }
.clockbox { justify-self: end; }
.clock small { display: block; white-space: nowrap; line-height: 1.3; }
.clock small + small { margin-top: 1px; }
@media (max-width: 1500px) {
  .top-main { grid-template-columns: 340px max-content minmax(0, 1fr); }
  .top-tools { grid-column: 1 / -1; grid-row: 2; }
}
/* 电视页：没有搜索框，统计框放中间那列，时钟靠右 */
.tv .brand-logo { --logo-h: 58px; height: var(--logo-h); }
.tv .top-main { grid-template-columns: 600px minmax(0, 1fr) max-content; }
.tv .today { justify-self: start; }
/* v9g（00:44 志和）：「数据来源 · 更新于…」小字挪到搜索框下面（电视页挪到图标下面、「有货到」同一行），表头少一行；
   超长时仍由 marquee.js 来回滚动。缺货 / 欠货 / 不备货按钮那排和搜索框都保留。 */
.top-tools { flex-wrap: wrap; align-content: center; row-gap: 4px; }
.top-tools > .src-under { flex: 1 0 100%; min-width: 0; margin: 0; }
/* 电视页：放到图标下面、「有货到」同一行（不放统计框下面，那样会把表头撑高） */
.tv .top-main > div:first-child { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; min-width: 0; }
.tv .top-main > div:first-child > .brand { flex: 1 0 100%; }
.tv .top-main > div:first-child > .src-under { flex: 1 1 0; min-width: 0; margin: 4px 0 0; }
