/* frost layout fix 2026-09-14
 * Homepage + device list tables were wrapping/overlapping:
 * extra cell padding ate ID/status columns, and transparent
 * sticky right columns let 屏幕/无障碍/安装日期 show through 操作.
 */
.page-content,
.art-table-card {
  overflow: visible !important;
}

.el-table {
  width: 100% !important;
  max-width: 100% !important;
}

.el-table .el-table__cell {
  padding: 8px 0 !important;
}

.el-table .cell {
  padding: 0 10px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  line-height: 1.4 !important;
}

.el-table .el-tag {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.el-table th.el-table-fixed-column--right,
.el-table td.el-table-fixed-column--right,
.el-table th.el-table__fixed-right-patch,
.el-table td.el-table__fixed-right-patch,
.el-table .el-table-fixed-column--right.is-first-column,
.el-table .el-table-fixed-column--right.is-last-column {
  background: rgba(248, 251, 253, .94) !important;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

html.dark .el-table th.el-table-fixed-column--right,
html.dark .el-table td.el-table-fixed-column--right,
html.dark .el-table .el-table-fixed-column--right.is-first-column,
html.dark .el-table .el-table-fixed-column--right.is-last-column {
  background: rgba(22, 30, 36, .94) !important;
}

.el-table td.el-table-fixed-column--right .cell {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.el-table td.el-table-fixed-column--right .el-button {
  margin: 0 !important;
  padding: 4px 8px !important;
  min-height: 28px !important;
  height: auto !important;
  font-size: 12px !important;
}

.art-card .el-table col:first-child,
.art-card .el-table th:first-child,
.art-card .el-table td:first-child {
  width: 220px !important;
  min-width: 220px !important;
  max-width: 280px !important;
}

.yp-board-card {
  overflow: visible !important;
}

.yp-board-card .el-table,
.yp-board-card .el-card,
.yp-board-card .art-table-card {
  overflow: visible !important;
}

.yp-split {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 12px !important;
}

.yp-specimen {
  position: static !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(160px, .9fr) minmax(0, 1.4fr) minmax(160px, 220px);
  align-items: center;
  gap: 12px 18px;
  padding: 14px 16px !important;
}

.yp-specimen .yp-ticks-end,
.yp-specimen.yp-ticks::before,
.yp-specimen.yp-ticks::after {
  display: none;
}

.yp-sp-status {
  margin: 6px 0 0 !important;
}

.yp-facts {
  border: 0 !important;
  padding: 0 !important;
  margin: 0;
}

.yp-sp-actions {
  flex-direction: row !important;
  margin-top: 0 !important;
}

.yp-sp-actions button {
  flex: 1;
  padding: 8px 10px !important;
}

body.yp-devices .el-table .el-table__cell {
  padding: 8px 0 !important;
}

body.yp-devices .el-table th.el-table__cell {
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .yp-specimen {
    grid-template-columns: 1fr;
  }
  .yp-sp-actions {
    flex-direction: column !important;
  }
}

@media (min-width: 1800px) {
  .yp-split {
    grid-template-columns: minmax(0, 1fr) 300px !important;
    align-items: start;
  }
  .yp-specimen {
    position: sticky !important;
    top: 16px !important;
    display: block !important;
    min-height: 280px !important;
    grid-template-columns: none;
  }
  .yp-specimen .yp-ticks-end,
  .yp-specimen.yp-ticks::before,
  .yp-specimen.yp-ticks::after {
    display: block;
  }
  .yp-facts {
    padding: 12px 0 !important;
    border-top: 1px solid rgba(20, 40, 55, .08) !important;
    border-bottom: 1px solid rgba(20, 40, 55, .08) !important;
  }
  .yp-sp-actions {
    flex-direction: column !important;
    margin-top: 14px !important;
  }
}
