.template-list-dialog {
  min-height: 240px;
}
.template-list-dialog .template-list-body {
  max-height: 380px;
  overflow-y: auto;
  border: 1px solid #e4ebfa;
  border-radius: 12px;
  padding: 12px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  margin-top: 10px;
  background: #f8fbff;
}
.template-list-dialog .template-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid #edf2fc;
  border-radius: 10px;
  cursor: pointer;
  -webkit-transition: all 0.18s ease;
  transition: all 0.18s ease;
  margin-bottom: 10px;
  background: #fff;
}
.template-list-dialog .template-row:hover {
  border-color: #cfe0ff;
  -webkit-box-shadow: 0 2px 8px rgba(20, 105, 252, 0.08);
          box-shadow: 0 2px 8px rgba(20, 105, 252, 0.08);
}
.template-list-dialog .template-row.active {
  border-color: #7eabff;
  -webkit-box-shadow: 0 4px 12px rgba(20, 105, 252, 0.14);
          box-shadow: 0 4px 12px rgba(20, 105, 252, 0.14);
  background: #f4f8ff;
}
.template-list-dialog .template-row.active .template-name {
  color: #1469fc;
  font-weight: 600;
}
.template-list-dialog .template-row.active .select-dot {
  border-color: #1469fc;
}
.template-list-dialog .template-row.active .select-dot::after {
  opacity: 1;
  -webkit-transform: translate(-50%, -50%) scale(1);
          transform: translate(-50%, -50%) scale(1);
}
.template-list-dialog .template-row:last-child {
  margin-bottom: 0;
}
.template-list-dialog .template-row .template-main {
  min-width: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}
.template-list-dialog .template-row .select-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid #c5cfdf;
  position: relative;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 14px;
          flex: 0 0 14px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
.template-list-dialog .template-row .select-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1469fc;
  -webkit-transform: translate(-50%, -50%) scale(0.4);
          transform: translate(-50%, -50%) scale(0.4);
  opacity: 0;
  -webkit-transition: all 0.18s ease;
  transition: all 0.18s ease;
}
.template-list-dialog .template-row .template-name {
  max-width: 460px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #263248;
  font-size: 14px;
  -webkit-transition: color 0.2s ease;
  transition: color 0.2s ease;
}
.template-list-dialog .template-row .template-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 8px;
}
.template-list-dialog .template-row .template-actions .delete-action {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 56px;
  height: 26px;
  border-radius: 13px;
  gap: 4px;
  color: #8a8f9e;
  background: #f7f9fc;
  border: 1px solid #e7edf7;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
.template-list-dialog .template-row .template-actions .delete-action:hover {
  border-color: #ffd3d3;
  background: #fff5f5;
  color: #eb4646;
}
.template-list-dialog .template-row .template-actions .delete-action i {
  font-size: 12px;
}
.template-list-dialog .template-row .template-actions .delete-action.delete-action-disabled {
  cursor: default;
  color: #a6acbb;
  background: #f7f8fb;
  border-color: #edf0f6;
}
.template-list-dialog .template-row .template-actions .delete-action.delete-action-disabled:hover {
  border-color: #edf0f6;
  background: #f7f8fb;
  color: #a6acbb;
}
.template-list-dialog .template-empty {
  height: 240px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  color: #8a8f9e;
}
