.phase4e-service-list {
  overflow: hidden;
  border: 1px solid var(--p4c-border);
  border-radius: 18px;
  box-shadow: var(--p4c-shadow-sm);
}

.phase4e-service-list .card-body {
  padding: 24px;
}

.phase4e-service-list .table-container {
  width: 100%;
}

.phase4e-service-list .table-header {
  display: flex;
  min-height: 56px;
  height: auto;
  margin-bottom: 18px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.phase4e-service-list .table-filter,
.phase4e-service-list .table-search {
  width: auto;
  height: auto;
  flex: 1 1 0;
}

.phase4e-service-list .table-filter .row,
.phase4e-service-list .table-search .row {
  width: auto;
  height: auto;
  margin: 0;
}

.phase4e-service-list .table-filter .col {
  display: flex;
  padding: 0;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
}

.phase4e-service-list .table-filter .bootstrap-select {
  width: auto !important;
  min-width: 220px;
  flex: 1 1 260px;
}

.phase4e-service-list .table-filter a.btn {
  min-width: 110px;
  min-height: 42px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.phase4e-service-list .table-search .row {
  justify-content: flex-end !important;
}

.phase4e-service-list .table-search .col-sm-6 {
  width: 100%;
  max-width: 320px;
  padding: 0;
  flex: 0 1 320px;
}

.phase4e-service-list .search-box,
.phase4e-service-list .search-box .position-relative {
  width: 100%;
}

.phase4e-service-list .search-box .form-control {
  min-height: 42px;
  border-color: var(--p4c-border);
  border-radius: 10px;
  background: #fff;
}

.phase4e-service-list .table-responsive {
  border: 1px solid var(--p4c-border);
  border-radius: 14px;
}

.phase4e-service-list .tablelist {
  margin-bottom: 0;
}

.phase4e-service-list .tablelist thead th {
  padding-top: 14px;
  padding-bottom: 14px;
  color: var(--p4c-text-muted);
  border-bottom: 1px solid var(--p4c-border);
  background: var(--p4c-surface-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}

.phase4e-service-list .tablelist tbody tr:not(:last-child) td {
  border-bottom: 1px solid var(--p4c-border);
}

.phase4e-service-list .tablelist tbody tr {
  transition: background-color .16s ease, box-shadow .16s ease;
}

.phase4e-service-list .tablelist tbody tr:hover {
  background: rgba(37, 99, 235, .025);
}

.phase4e-service-list .tablelist tbody td {
  padding-top: 16px;
  padding-bottom: 16px;
  color: var(--p4c-text);
  vertical-align: middle;
}

.phase4e-service-list .tablelist tbody td strong,
.phase4e-service-list .tablelist tbody td .text-dark {
  color: var(--p4c-text-strong) !important;
}

.phase4e-service-list .tablelist tbody td:nth-child(4),
.phase4e-service-list .tablelist tbody td:nth-child(5),
.phase4e-service-list .tablelist tbody td:nth-child(6) {
  font-variant-numeric: tabular-nums;
}

.phase4e-service-list .tablelist .badge {
  min-height: 26px;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.phase4e-service-list .table-footer {
  min-height: 52px;
  height: auto;
  padding-top: 14px;
  align-items: center;
  gap: 14px;
}

.phase4e-service-list .table-tools {
  display: flex;
  height: auto;
  gap: 8px;
}

.phase4e-service-list .table-tools .btn {
  min-height: 40px;
}

.phase4e-service-list .table-pagination {
  height: auto;
  align-items: center;
}

.phase4e-service-list .no-data {
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--p4c-text-muted);
}

@media (max-width: 991.98px) {
  .phase4e-service-list .table-header {
    align-items: stretch;
    flex-direction: column;
  }

  .phase4e-service-list .table-search .col-sm-6 {
    max-width: none;
    flex-basis: 100%;
  }
}

@media (max-width: 767.98px) {
  .phase4e-service-list {
    border-radius: 16px;
  }

  .phase4e-service-list .card-body {
    padding: 16px;
  }

  .phase4e-service-list .table-header {
    margin-bottom: 16px;
    gap: 12px;
  }

  .phase4e-service-list .table-filter .col {
    flex-wrap: wrap;
    gap: 8px;
  }

  .phase4e-service-list .table-filter .bootstrap-select {
    width: 100% !important;
    min-width: 0;
    flex: 1 0 100%;
    order: 1;
  }

  .phase4e-service-list .table-filter a.btn {
    min-width: 0;
    min-height: 44px;
    flex: 1 1 calc(50% - 4px);
    order: 2;
  }

  .phase4e-service-list .table-search .form-control {
    min-height: 44px;
  }

  .phase4e-service-list .table-responsive {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  .phase4e-service-list .tablelist,
  .phase4e-service-list .tablelist tbody {
    width: 100% !important;
    min-width: 0 !important;
    display: block;
  }

  .phase4e-service-list .tablelist colgroup,
  .phase4e-service-list .tablelist thead {
    display: none;
  }

  .phase4e-service-list .tablelist tbody {
    display: grid;
    gap: 12px;
  }

  .phase4e-service-list .tablelist tbody tr {
    position: relative;
    width: 100%;
    padding: 16px;
    display: grid;
    border: 1px solid var(--p4c-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .045);
  }

  .phase4e-service-list .tablelist tbody tr:hover {
    background: #fff;
  }

  .phase4e-service-list .tablelist tbody td {
    width: 100% !important;
    min-width: 0;
    padding: 9px 0;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    border: 0 !important;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .phase4e-service-list .tablelist tbody td::before {
    color: var(--p4c-text-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
  }

  .phase4e-service-list .tablelist tbody td:nth-child(1) {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 24px !important;
    padding: 0;
    display: block;
  }

  .phase4e-service-list .tablelist tbody td:nth-child(1)::before {
    display: none;
  }

  .phase4e-service-list .tablelist tbody td:nth-child(2) {
    padding-top: 0;
    padding-right: 38px;
  }

  .phase4e-service-list .tablelist tbody td:nth-child(2)::before {
    content: "状态";
  }

  .phase4e-service-list .tablelist tbody td:nth-child(3)::before {
    content: "服务";
  }

  .phase4e-service-list .tablelist tbody td:nth-child(4)::before {
    content: "主 IP";
  }

  .phase4e-service-list .tablelist tbody td:nth-child(5)::before {
    content: "到期时间";
  }

  .phase4e-service-list .tablelist tbody td:nth-child(6)::before {
    content: "费用";
  }

  .phase4e-service-list .tablelist tbody td:nth-child(7)::before {
    content: "系统";
  }

  .phase4e-service-list .tablelist tbody td:nth-child(8)::before {
    content: "备注";
  }

  .phase4e-service-list .tablelist tbody td:nth-child(9)::before {
    content: "操作";
  }

  .phase4e-service-list .tablelist tbody td:last-child .btn {
    width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .phase4e-service-list--ssl .tablelist tbody td:nth-child(3)::before {
    content: "证书";
  }

  .phase4e-service-list--ssl .tablelist tbody td:nth-child(4)::before {
    content: "证书类型";
  }

  .phase4e-service-list--ssl .tablelist tbody td:nth-child(5)::before {
    content: "域名";
  }

  .phase4e-service-list--ssl .tablelist tbody td:nth-child(6)::before {
    content: "到期时间";
  }

  .phase4e-service-list--ssl .tablelist tbody td:nth-child(7)::before {
    content: "备注";
  }

  .phase4e-service-list--ssl .tablelist tbody td:nth-child(8)::before {
    content: "操作";
  }

  .phase4e-service-list--ssl .tablelist tbody td:last-child .btn {
    grid-column: 2;
  }

  .phase4e-service-list .tablelist tbody td[colspan] {
    position: static;
    width: 100% !important;
    padding: 0;
    display: block;
  }

  .phase4e-service-list .tablelist tbody td[colspan]::before {
    display: none;
  }

  .phase4e-service-list .tablelist tbody td[colspan] .no-data {
    min-height: 180px;
  }

  .phase4e-service-list .table-footer {
    padding-top: 16px;
    align-items: stretch;
    flex-direction: column;
  }

  .phase4e-service-list .table-tools,
  .phase4e-service-list .table-pagination,
  .phase4e-service-list .table-pageinfo {
    width: 100%;
  }

  .phase4e-service-list .table-tools .btn,
  .phase4e-service-list .table-tools .btn-group {
    min-height: 44px;
    flex: 1 1 0;
  }

  .phase4e-service-list .table-tools .btn-group .btn {
    width: 100%;
  }

  .phase4e-service-list .table-pagination {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .phase4e-service-list .table-pageinfo {
    margin-right: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 339.98px) {
  .phase4e-service-list .card-body {
    padding: 14px;
  }

  .phase4e-service-list .table-filter a.btn {
    flex-basis: 100%;
  }

  .phase4e-service-list .tablelist tbody tr {
    padding: 14px;
  }

  .phase4e-service-list .tablelist tbody td {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px;
  }
}
