/* 安全中心（对齐盒子云 v10 主题实测样式） */
.el-main {
  padding: 50px 20px 20px 190px !important;   /* top 50px 让位固定顶栏；left 与侧栏 190px 对齐 */
  box-sizing: border-box;
}

.security-page {
  background: #fff;
  padding: 24px;
  box-sizing: border-box;
  font-size: 14.5px;
  color: #333;
  min-height: 464px;
}

/* 标题 */
.security-title {
  margin: 0 0 22px;
  font-size: 22px;
  font-weight: 700;
  line-height: 33px;
  color: #333;
}

/* 标签条 */
.client-tabs {
  display: inline-flex;
  align-items: center;
  background: #F0F1F5;
  padding: 4px;
  margin-bottom: 22px;
}

.client-tab {
  height: 32px;
  min-width: 76px;
  padding: 0 15px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14.5px;
  color: #333;
  cursor: pointer;
  line-height: 32px;
}

.client-tab.active {
  background: #fff;
  color: #0052D9;
}

/* 工具条 */
.security-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.hp-btn-primary {
  height: 32px;
  padding: 0 16px;
  border: 0;
  background: #0052D9;
  color: #fff;
  font: inherit;
  font-size: 14.5px;
  cursor: pointer;
}

.hp-btn-primary:hover { background: #3676e8; }

.security-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hp-input-search {
  display: flex;
  align-items: center;
  width: 280px;
  height: 32px;
  background: #F2F3F5;
  box-sizing: border-box;
  padding-right: 10px;
}

.hp-input-search input {
  flex: 1;
  min-width: 0;
  height: 32px;
  border: 0;
  outline: none;
  background: transparent;
  padding: 0 12px;
  font: inherit;
  font-size: 14.5px;
  color: #333;
}

.hp-input-search input::placeholder { color: #8692A6; }

.hp-input-search svg {
  width: 16px;
  height: 16px;
  color: #4E5969;
  cursor: pointer;
}

.hp-btn-plain {
  height: 32px;
  padding: 0 12px;
  border: 0;
  background: #F2F3F5;
  color: #4E5969;
  font: inherit;
  font-size: 14.5px;
  cursor: pointer;
}

.hp-btn-plain:hover { background: #E9EBEF; }

/* 表格 */
.security-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.security-table th {
  height: 42px;
  padding: 0 8px;
  background: #F7F8FC;
  color: #909399;
  font-size: 14.5px;
  font-weight: 400;
  text-align: left;
  white-space: nowrap;
}

.security-table td {
  height: 51px;
  padding: 0 8px;
  border-bottom: 1px solid #E5E6EB;
  color: #1D2129;
  font-size: 14.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-sizing: border-box;
}

.security-table .c-id { width: 90px; }
.security-table .c-name { width: 200px; }
.security-table .c-time { width: 190px; }
.security-table .c-ipwl { width: 200px; }
.security-table .c-ipaddr { width: auto; }
.security-table .c-op { width: 110px; text-align: right; }

.security-table thead .c-op { text-align: left; }

.wl-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 6px;
  background: #F2F3F5;
  color: #8692A6;
  font-size: 12.5px;
  margin-right: 10px;
  vertical-align: middle;
}

.hp-lnk {
  color: #0052D9;
  cursor: pointer;
  vertical-align: middle;
}

.hp-lnk:hover { text-decoration: underline; }

.hp-lnk-danger {
  color: #F53F3F;
  cursor: pointer;
}

.hp-lnk-danger:hover { text-decoration: underline; }

.hp-empty-cell {
  text-align: center;
  color: #909399;
  height: 120px !important;
}

/* 分页 */
.security-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 14px;
  font-size: 14px;
  color: #333;
}

.pg-total { color: #4E5969; }

.pg-arrow {
  width: 24px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #c9cdd4;
  font-size: 14px;
  cursor: default;
}

.pg-cur {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  background: #E8F0FE;
  color: #0052D9;
}

.pg-size {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  background: #F2F3F5;
  color: #4E5969;
  font-size: 13px;
}

.security-placeholder { min-height: 320px; }

.pg-size svg { width: 12px; height: 12px; margin-left: 6px; color: #4E5969; }
.client-tabs { min-height: 40px; }

.security-table th, .security-table td { padding: 0 !important; }
.security-table thead .c-op { padding-left: 8px !important; }
.security-table tbody .c-op { padding-right: 8px !important; }

.client-tabs { height: 40px !important; min-height: 0 !important; box-sizing: border-box; }

.security-title { margin-bottom: 23px !important; }
.client-tabs { margin-bottom: 24px !important; }
.security-table th { height: 42px !important; line-height: 42px !important; padding: 0 !important; }
.security-table thead .c-op { padding-left: 8px !important; }

.security-table thead tr { height: 42px !important; }
.security-table th { height: auto !important; line-height: 42px !important; padding: 0 !important; }

/* --- 安全中心子页（SSH / API 日志 / 安全组）通用 --- */
.security-toolbar--right { justify-content: flex-end !important; }
.sec-toolbar-right { display: flex; align-items: center; gap: 10px; }
.sec-empty { height: 118px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #86909c; font-size: 14.5px; }
.sec-empty svg { width: 48px; height: 48px; color: #c9cdd4; }
.security-table .c-ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.security-table .c-op a, .security-table .c-gop a { display: inline-flex; align-items: center; height: 32px; font-size: 14.5px; text-decoration: none; }
.security-table .c-op { text-align: right; }
.security-table .c-gop { text-align: left; white-space: normal; }
.security-table .c-gop a { margin-right: 0; }
.security-table .c-sshname { width: 230px; }
.security-table .c-sshfp { width: auto; }
.security-table .c-op { width: 190px; }
.security-table .c-logid { width: 90px; }
.security-table .c-logdesc { width: auto; }
.security-table .c-logtime { width: 190px; }
.security-table .c-logip { width: 180px; }
.security-table .c-gname { width: 200px; }
.security-table .c-gnum { width: 110px; }
.security-table .c-gdesc { width: auto; }
.security-table .c-gtime { width: 190px; }
.security-table .c-gop { width: 230px; }
.security-table tbody tr { height: 51px; }
.security-footer .pg-btn { border: 0; background: transparent; color: #86909c; font-size: 15px; padding: 0 6px; cursor: pointer; }
.security-footer .pg-btn:disabled { color: #c9cdd4; cursor: default; }

.security-page { min-height: 0 !important; }
.security-page.tall-api { min-height: 464px !important; }
.security-page.min-h-386 { min-height: 386px !important; }
.security-page.min-h-394 { min-height: 394px !important; }
