.cursor-pointer {
  cursor: pointer;
}

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.ml-8 {
  margin-left: 8px;
}

.search-position-sticky {
  background-color: #f5f5f5;
  position: sticky;
  top: 0;
  z-index: 797;
}

.search_form_title {
  width: 1170px;
  z-index: 797;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 16px;
  border-radius: 4px 4px 0 0;
  border-bottom: 1px solid #ededed;
  margin: 0 auto;
  margin-top: 10px;
  background-color: #fff;
}

.search_form_title_capture {
  font-weight: bold;
  font-size: 15px;
}

.search_form_title_total {
  color: #666;
  font-weight: bold;
  flex: 1;
  margin-left: 60px;
}

.search_form_title_total > span {
  color: #e03333;
}

#lawSearchFormTitleMode {
  display: none !important;
}

.law_search_form_wrap,
.search_form_wrap {
  width: 1170px;
  position: relative;
  background: #fff;
  border-radius: 0 0 4px 4px;
  margin: 0 auto 17px;
}

.search-box-container {
  padding: 0 14px;
  max-height: 102px;
  overflow-y: auto;
}

.search-box-wrapper {
  margin-right: 20px;
}

.search-box-wrapper:empty {
  display: none;
}

.search-box-wrapper:not(:empty)+.search-box-wrapper:not(:empty) {
  margin-left: -25px;
}

.search-box-item {
  border: 1px solid #0a5de7;
  padding: 0 4px;
  border-radius: 2px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  max-width: 20em;
  min-width: 0;
  margin-right: 10px;
  margin-bottom: 10px;
  height: 24px;
}

.search-box-item-label {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: #666;
}

.search-box-item-content {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #0a5de7;
}

.search-box-item-close {
  font-size: 14px !important;
  color: #999;
  margin-left: 3px;
  cursor: pointer;
}

.search-box-item.readonly {
  border-color: rgba(153, 153, 153, 0.3);
}

.search-box-item.readonly .search-box-item-label {
  color: #999;
}

.search-box-item.readonly .search-box-item-content {
  color: #333;
}

.search-button-wrapper {
  display: none;
}

.search-button-wrapper a {
  color: #333;
  margin-left: 12px;
  display: inline-block;
  margin-bottom: 10px;
  font-size: 13px;
}

.search-button-wrapper a:first-child {
  margin-left: 0;
}

.search-button-wrapper a .iconfont {
  color: #0a5de7;
}

.search-form-content {
  padding: 10px 0;
  height: 144px;
  overflow: hidden;
  position: relative;
}

.search-form-content::after {
  position: absolute;
  left: 0;
  bottom: 0;
  content: "";
  display: block;
  height: 53px;
  width: 100%;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff);
  pointer-events: none;
}

.search_form_wrap.slide-down .search-form-content {
  height: auto;
}

.search_form_wrap.slide-down .search-form-content::after {
  display: none;
}

.search-form-layout {
  padding: 5px 16px;
  position: relative;
}

.search-form-layout > .search-form-label,
.search-form-item .search-form-label {
  margin: 0;
  font-weight: bold;
  width: 90px;
  text-align: left;
  margin-right: 10px;
  line-height: 32px;
  color: #333;
  flex-shrink: 0;
}

.search-form-layout[data-layout="basic"] .search-form-body,
.search-form-layout[data-layout="effect-level"] .search-form-body,
.search-form-layout[data-layout="date"] .search-form-body,
.search-form-layout[data-layout="more"] .search-form-body {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-direction: column;
}

.law-search-form-pair-row {
  display: flex;
  align-items: flex-start;
  /* justify-content: space-between; */
  gap: 32px;
  width: 100%;
}

.law-search-form-pair-item {
  min-width: 0;
}

.law-search-form-pair-item .search-form-item {
  width: 100%;
}

.search-form-item {
  display: flex;
  align-items: flex-start;
}

.search-form-slide-down {
  align-items: center;
  background: url(/static/Public/images/new_home/slide-down-bg.png?v=1) 0 0;
  background-size: 100% 100%;
  bottom: 0;
  color: #666;
  cursor: pointer;
  display: flex;
  font-size: 13px;
  height: 22px;
  justify-content: center;
  left: 50%;
  position: absolute;
  transform: translate(-50%, 100%);
  width: 170px;
}

.search-form-slide-down .up {
  display: none;
}

.search_form_wrap.slide-down .search-form-slide-down .down {
  display: none;
}

.search_form_wrap.slide-down .search-form-slide-down .up {
  display: inline;
}

.law-search-form-input {
  border: 1px solid #ededed;
  border-radius: 4px;
  height: 32px;
  line-height: 32px;
  padding: 0 10px;
  min-width: 200px;
  background: #fff;
}

.search-input-box {
  position: relative;
  width: 280px;
  border-radius: 4px;
  border: 1px solid #ededed;
  padding: 3px 8px;
  background-color: #fff;
  min-height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.search-input-box:hover,
.search-input-box:focus-within {
  border-color: #0a5de7;
}

.search-input-box .search-input-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  margin: auto 0;
  cursor: pointer;
  color: #d9d9d9;
  font-size: 14px;
  display: none;
}

.search-input-box .search-input-clear:hover {
  color: #999;
}

.search-input-box:focus-within .search-input-clear.hover-show,
.search-input-box:hover .search-input-clear.hover-show {
  display: block;
}

.search-input-box .search-input-content {
  line-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}

.search-input-box .search-input-content:not(:empty) {
  margin-right: 4px;
}

.search-input-box .search-input-content:empty::before {
  content: attr(placeholder);
  color: #999;
}

.search-input-box .search-input-content .input-tag-item {
  margin-right: 4px;
  margin-top: 2px;
  margin-bottom: 2px;
}

.search-input-box .search-input-content .input-tag-item:last-child {
  margin-right: 0;
}

.search-input-box .search-input-number {
  margin-right: 4px;
  line-height: 20px;
  background: #f5f5f8;
  border-radius: 2px;
  display: inline-block;
  padding: 0 4px;
  font-size: 12px;
}

.search-input-box .search-input-number:empty {
  display: none;
}

.search-input-box .search-input-number:hover {
  background: rgba(10, 93, 231, 0.1);
  color: #0a5de7;
}

.input-tag-item {
  line-height: 20px;
  background: #f5f5f8;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  font-size: 12px;
}

.input-tag-item .iconfont {
  color: #666;
  margin-left: 2px;
  font-size: 14px;
  cursor: pointer;
}

.search-tag-dropdown-content {
  margin: 10px 0;
  background: #fff;
  padding-top: 4px;
  padding-left: 4px;
  border-radius: 4px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.13);
}

.search-tag-dropdown-content .input-tag-item {
  margin-bottom: 4px;
  margin-right: 4px;
}

.law-search-form-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.law-search-form-inline-date {
  gap: 10px;
}

.law-search-form-inline-date .law-search-form-input {
  height: 26px;
  line-height: 26px;
}

.law-search-form-separator {
  color: #999;
}

.law-search-form-count {
  color: #0a5de7;
  font-size: 12px;
  min-width: 18px;
  text-align: center;
}

.law-search-form-tree {
  width: 90%;
}

.law-search-form-tree-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.law-search-form-tree-parent {
  min-width: 100px;
  flex-shrink: 0;
}

.law-search-form-tree-children {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  flex: 1;
  padding: 3px 10px;
  background: #fafafb;
  border-radius: 4px;
  align-items: center;
}

.law-search-form-tree-leaf-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

/* .law-search-form-tree-item {
  margin-bottom: 6px;
} */
.hsv4 {
    background: #fdf3e1;
    border-radius: 2px;
    color: #333;
    font-size: 12px;
    line-height: 22px;
    padding: 0 6px;
    position: absolute;
    right: 17px;
    bottom: 10px;
}

.search_form_wrap:not(.is-ready) .hsv4,
.law_search_form_wrap:not(.is-ready) .hsv4 {
    opacity: 0;
    visibility: hidden;
}

.hsv4,.hsv4>span {
    align-items: center;
    display: inline-flex
}

.hsv4>span {
    color: #6b3712;
    cursor: pointer
}

.hsv4>span .iconfont {
    font-size: 14px;
    margin: 0 4px
}

.save-template-dialog>div {
    align-items: center;
    display: flex;
    gap: 6px;
    margin-bottom: 12px
}

.save-template-dialog>div:last-child {
    margin: 0
}

.save-template-dialog .save-template-tags {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: -10px
}

.save-template-dialog .search-input-box {
    flex: 1;
    width: 0
}

.save-template-dialog label {
    color: #666;
    flex-shrink: 0;
    font-weight: 400;
    line-height: 32px;
    margin: 0
}

.search-input-box>.input {
  border: none;
  display: inline-block;
  flex: 1;
  height: 24px;
  margin: 0;
  min-width: 40px;
  outline: none;
  padding: 0;
  width: 0;
}

.search_form_title_actions {
    margin-left: 60px
}

.search_form_title_actions .search_form_button {
    align-items: center;
    color: #333;
    display: flex;
    display: none
}

.search_form_title_actions .search_form_button .iconfont {
    color: var(--color-primary-product);
    font-size: 14px;
    margin-right: 4px
}

.search_form_title_actions .search_form_button .dropdown-icon {
    color: #333;
    font-size: 16px;
    margin-left: 4px;
    margin-right: 0
}

.text-primary {
  color: var(--color-primary-product);
}

.text-info {
  color: #666;
}

.button-box {
  display: inline-block;
  padding: 7px 17px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  line-height: 1;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
  outline: none;
  background: #fff;
  color: #666;
  flex-shrink: 0;
}

.button-box.small {
  padding: 5px 10px;
}

.button-box:hover {
  color: var(--color-primary-product);
  border-color: var(--color-primary-product);
}

.button-box.primary {
  background: var(--color-primary-product);
  color: #fff;
}

.button-box.primary:hover {
  opacity: .85;
}

.button-box.primary.plan {
  color: var(--color-primary-product);
  background: rgba(10,93,231,.1);
  border-color: transparent;
}

.button-box.disabled {
  opacity: .5 !important;
  cursor: not-allowed;
}

.template-dropdown-body {
  background: #fff;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,.13);
  border-radius: 4px;
  margin: 5px 0;
}

.template-dropdown-header {
  padding: 12px 10px;
  border-bottom: 1px solid #ededed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 26px;
}

.template-dropdown-header h3 {
  font-size: 14px;
  color: #333;
  font-weight: normal;
  margin: 0;
}

.template-dropdown-header .setting {
  font-size: 17px;
  color: #999;
  cursor: pointer;
}

.template-dropdown-header .save {
  display: none;
}

.template-dropdown-header .setting:hover {
  color: var(--color-primary-product);
}

.template-dropdown-body.editable .template-dropdown-header .setting {
  display: none;
}

.template-dropdown-body.editable .template-dropdown-header .save {
  display: block;
}

.template-dropdown-content {
  max-height: 390px;
  overflow: auto;
  padding: 10px;
}

.template-dropdown-item {
  padding: 12px 10px;
  border-radius: 4px;
  background-color: rgba(245,245,248,.7);
  margin-bottom: 10px;
  cursor: pointer;
}

.template-dropdown-body.editable .template-dropdown-item {
  cursor: default;
}

.template-dropdown-item:last-child {
  margin-bottom: 0;
}

.template-dropdown-item:hover {
  background: rgba(10,93,231,.05);
}

.template-dropdown-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.template-dropdown-title {
  flex: 1;
  width: 0;
}

.template-dropdown-title > div:first-child {
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 32px;
}

.template-dropdown-title > div:last-child {
  display: none;
  align-items: center;
  gap: 8px;
}

.template-dropdown-title .search-input-box {
  width: 250px;
}

.template-dropdown-item.editing .template-dropdown-title > div:first-child {
  display: none;
}

.template-dropdown-item.editing .template-dropdown-title > div:last-child {
  display: flex;
}

.template-dropdown-item:hover .template-dropdown-title > div:first-child {
  color: var(--color-primary-product);
}

.template-dropdown-actions > div:first-child {
  color: #999;
}

.template-dropdown-actions > div:last-child {
  display: none;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

.template-dropdown-actions > div:last-child .iconfont {
  cursor: pointer;
}

.template-dropdown-actions > div:last-child .iconfont:hover {
  color: var(--color-primary-product);
}

.template-dropdown-body.editable .template-dropdown-actions > div:first-child {
  display: none;
}

.template-dropdown-body.editable .template-dropdown-actions > div:last-child {
  display: flex;
}

.template-dropdown-item.editing .template-dropdown-actions > div:last-child {
  display: none;
}

.template-dropdown-tags {
  margin-bottom: -10px;
  margin-top: 10px;
}

.template-dropdown-tags:empty {
  display: none;
}
