/* Test-only polish: route prepaint + team operation column */
html.jusen-route-training .training-page:not(.training-polished),
html.jusen-route-permissions .permission-view:not(.permission-modernized),
html.jusen-route-settings .settings-page:not(.permission-modernized) {
  opacity: 0 !important;
}

html.jusen-route-training .training-page.training-polished,
html.jusen-route-permissions .permission-view.permission-modernized,
html.jusen-route-settings .settings-page.permission-modernized {
  animation: jusenSoftRouteIn 140ms ease-out both;
}

@keyframes jusenSoftRouteIn {
  from { opacity: .86; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(0); }
}

html.jusen-route-team .team-view .el-table__cell:last-child .cell,
html.jusen-route-team .team-page .el-table__cell:last-child .cell,
html.jusen-route-team .el-table .el-table__cell:last-child .cell {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  min-width: 138px !important;
  max-width: 168px !important;
  line-height: 1 !important;
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}

html.jusen-route-team .el-table .el-table__cell:last-child .el-button,
html.jusen-route-team .el-table .el-table__cell:last-child button {
  width: auto !important;
  min-width: 58px !important;
  max-width: 76px !important;
  height: 24px !important;
  margin: 0 !important;
  padding: 0 8px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

html.jusen-route-team .el-table .el-table__cell:last-child .el-button--primary,
html.jusen-route-team .el-table .el-table__cell:last-child .btn-primary {
  background: linear-gradient(135deg, #38bdf8, #2563eb) !important;
  border-color: rgba(56, 189, 248, .55) !important;
  color: #fff !important;
}

html.jusen-route-team .el-table .el-table__cell:last-child .el-button--warning,
html.jusen-route-team .el-table .el-table__cell:last-child .btn-warning {
  background: rgba(245, 158, 11, .16) !important;
  border-color: rgba(245, 158, 11, .42) !important;
  color: #ffd36b !important;
}

html.jusen-route-team .el-table .el-table__cell:last-child .el-button--danger,
html.jusen-route-team .el-table .el-table__cell:last-child .btn-danger {
  background: rgba(244, 63, 94, .16) !important;
  border-color: rgba(244, 63, 94, .42) !important;
  color: #ff93a7 !important;
}

html.jusen-route-team .el-table__row td:last-child {
  vertical-align: middle !important;
}

/* 20260616 fix: never keep system/settings/permissions pages hidden. */
html.jusen-route-settings .settings-page,
html.jusen-route-settings .permission-view,
html.jusen-route-permissions .permission-view,
html.jusen-route-permissions .settings-page,
html.jusen-route-training .training-page {
  opacity: 1 !important;
  visibility: visible !important;
}
