/* [NEW] CHG-20261023-150000 应用列表布局修复
   只作用于脚本标记的 table.applist-fixed，不影响其它表格
   回滚：从 index.html 注释本文件引用 */
table.applist-fixed {
  table-layout: fixed !important;
  width: 100% !important;
  min-width: 1116px !important;
  border-collapse: collapse !important;
}

table.applist-fixed th,
table.applist-fixed td {
  box-sizing: border-box !important;
  padding: 8px 10px !important;
  vertical-align: middle !important;
}

/* 图标 */
table.applist-fixed th:nth-child(1),
table.applist-fixed td:nth-child(1) {
  width: 56px !important;
  text-align: center !important;
}

/* 应用名称 */
table.applist-fixed th:nth-child(2),
table.applist-fixed td:nth-child(2) {
  width: 240px !important;
  max-width: 240px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* 包名 */
table.applist-fixed th:nth-child(3),
table.applist-fixed td:nth-child(3) {
  width: 380px !important;
  max-width: 380px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  font-family: Consolas, "Courier New", monospace !important;
}

/* 版本 */
table.applist-fixed th:nth-child(4),
table.applist-fixed td:nth-child(4) {
  width: 96px !important;
  max-width: 96px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* 状态 */
table.applist-fixed th:nth-child(5),
table.applist-fixed td:nth-child(5) {
  width: 64px !important;
  text-align: center !important;
}

/* 操作：修掉原来的 td display:flex，恢复 table-cell */
table.applist-fixed th:nth-child(6),
table.applist-fixed td:nth-child(6) {
  width: 280px !important;
  max-width: 280px !important;
  display: table-cell !important;
  white-space: normal !important;
}

table.applist-fixed td:nth-child(6) button {
  margin: 2px 3px 2px 0 !important;
  white-space: nowrap !important;
}

/* 外层横向滚动，窄屏不把列压扁 */
.applist-scroll-wrap {
  overflow-x: auto !important;
}

/* 窄屏隐藏部分非关键列，保证可用性（可选，先保留）
@media (max-width: 900px) {
  table.applist-fixed th:nth-child(4),
  table.applist-fixed td:nth-child(4) { display: none !important; }
}
*/
