/* ==========================================================================
 * custom_validation.less — 表单校验提示样式
 *
 * 目录:
 *   1.  触发状态               (.field-error-tip-open / .field-error-tipOpen: 红色边框+提示显示)
 *   2.  Tooltip 错误提示        (.errMessage: tooltip 样式覆盖)
 *   3.  子表内布局             (form .custom_table / .formTable_table 内的错误提示定位)
 *   4.  主表内布局             (.form-group-list_body 内的错误图标+弹出框)
 *   5.  表格内布局             (table .field-error-tip 内联提示)
 *   6.  通用错误提示           (.table-danger / .custom_table-danger / .field-error-tip 基础样式)
 * ========================================================================== */
/* ========== 1. 触发状态 ========== */
.field-error-tip-open,
.field-error-tipOpen {
  padding-right: 18px;
}
.field-error-tip-open input,
.field-error-tipOpen input {
  border-color: #ffbdbd !important;
}
.field-error-tip-open select,
.field-error-tipOpen select {
  border-color: #ffbdbd !important;
}
.field-error-tip-open .select2 .select2-selection,
.field-error-tipOpen .select2 .select2-selection {
  border-color: #ffbdbd !important;
}
.field-error-tip-open > .field-error-tip,
.field-error-tipOpen > .field-error-tip {
  display: flex !important;
}
/* ========== 2. Tooltip 错误提示 ========== */
.errMessage .tooltip.right,
.errMessage .tooltip.left {
  width: auto !important;
  max-width: 460px !important;
  opacity: 0 !important;
}
.errMessage .tooltip.right .tooltip-inner,
.errMessage .tooltip.left .tooltip-inner {
  width: 100% !important;
  max-width: 460px !important;
  background-color: #ffffff !important;
  text-align: justify;
  text-indent: 0;
  box-sizing: border-box;
  padding: 6px 8px;
  border: 0px !important;
  border-radius: 3px;
  color: #EC5E69;
  font-size: 12px;
  box-shadow: 0 1px 10px 1px #d7d7d7;
}
.errMessage .tooltip.right .tooltip-arrow,
.errMessage .tooltip.left .tooltip-arrow {
  border-right-color: #ffffff !important;
  border-left-color: #ffffff !important;
}
.showTip.tooltip.right,
.showTip.tooltip.left {
  opacity: 1 !important;
}
.col-sm-8.eleInBodyLevel {
  width: 100%;
  display: flex;
  align-items: center;
  position: static;
}
.col-sm-8.eleInBodyLevel .field-error-tip {
  position: relative !important;
  min-width: 18px !important;
  top: 0px !important;
}
.col-sm-8.eleInBodyLevel > div:first-child {
  width: 100% !important;
}
/* ========== 3. 子表内布局 ========== */
form .custom_table > tbody > tr > td > .field-error-tip-open,
form .formTable_table > tbody > tr > td > .field-error-tip-open,
form .custom_table > tbody > tr > td > .custom_table-danger,
form .formTable_table > tbody > tr > td > .custom_table-danger {
  padding-right: 0 !important;
  display: flex;
}
form .custom_table > tbody > tr > td > .flexbox > .table-danger,
form .formTable_table > tbody > tr > td > .flexbox > .table-danger,
form .custom_table > tbody > tr > td > .table-danger,
form .formTable_table > tbody > tr > td > .table-danger {
  display: flex;
}
form .custom_table > tbody > tr > td > .flexbox > .table-danger > div:first-child,
form .formTable_table > tbody > tr > td > .flexbox > .table-danger > div:first-child,
form .custom_table > tbody > tr > td > .table-danger > div:first-child,
form .formTable_table > tbody > tr > td > .table-danger > div:first-child {
  width: calc(100% - 18px) !important;
}
form .custom_table > tbody > tr > td > .flexbox > .table-danger > .field-error-tip,
form .formTable_table > tbody > tr > td > .flexbox > .table-danger > .field-error-tip,
form .custom_table > tbody > tr > td > .table-danger > .field-error-tip,
form .formTable_table > tbody > tr > td > .table-danger > .field-error-tip {
  position: relative !important;
  min-width: 16px !important;
  transform: unset !important;
  left: unset !important;
}
/* ========== 4. 主表内布局 ========== */
.form-group-list_body .form-group .field-error-tip {
  position: absolute;
  left: calc(100% - 16px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  width: auto;
  height: 28px;
  margin-left: 0px;
  background: transparent;
}
.form-group-list_body .form-group .field-error-tip .field-error-tip-icon {
  min-width: 15px;
  width: 15px;
  height: 15px;
  line-height: 13px;
  border-radius: 50%;
  color: #ffb0d1;
  text-align: center;
  border: 1px solid #ffb0d1;
  cursor: pointer;
}
.form-group-list_body .form-group .field-error-tip .field-error-tip-box {
  display: none;
  position: absolute;
  z-index: 1070;
  background-color: #ffffff !important;
  text-align: justify;
  text-indent: 0;
  box-sizing: border-box;
  border: 0px !important;
  border-radius: 3px;
  color: #EC5E69;
  font-size: 12px;
  box-shadow: 0 1px 10px 1px #d7d7d7;
  top: 0px;
  width: auto;
  height: auto;
  line-height: 18px;
  padding: 6px 5px;
  max-width: 200px;
}
.form-group-list_body .form-group .field-error-tip .field-error-tip-box:after {
  content: '';
  display: block;
  position: absolute;
  left: -5px;
  top: 9px;
  width: 0;
  border-top: 5px solid transparent;
  border-right: 5px solid #fff;
  border-bottom: 5px solid transparent;
}
.form-group-list_body .form-group .field-error-tip .field-error-tip-resize:after {
  content: '';
  display: block;
  position: absolute;
  left: 100%;
  top: 9px;
  width: 0;
  border-top: 5px solid transparent;
  border-left: 5px solid #fff;
  border-bottom: 5px solid transparent;
  border-right: 0px;
}
.form-group-list_body .form-group .field-error-tip .field-error-tip-icon:hover {
  color: #f563a0;
  border: 1px solid #f563a0;
}
/* ========== 5. 表格内布局 ========== */
table .field-error-tip {
  display: flex;
  align-items: center;
  width: auto;
  height: 28px;
  margin-left: 2px;
  background: transparent;
}
table .field-error-tip .field-error-tip-icon {
  min-width: 15px;
  width: 15px;
  height: 15px;
  line-height: 13px;
  border-radius: 50%;
  color: #ffb0d1;
  text-align: center;
  border: 1px solid #ffb0d1;
  cursor: pointer;
}
table .field-error-tip .field-error-tip-icon:hover {
  color: #f563a0;
  border: 1px solid #f563a0;
}
table .formTable_select2 {
  width: calc(100% - 16px) !important;
}
.field-error-up-tip {
  display: flex !important;
}
/* ========== 6. 通用错误提示 ========== */
.table-danger,
.custom_table-danger {
  position: relative;
}
.table-danger > .field-error-tip,
.custom_table-danger > .field-error-tip {
  display: flex !important;
}
.table-danger input,
.custom_table-danger input {
  border-color: #ffbdbd !important;
}
.table-danger .bootstrap-tagsinput,
.custom_table-danger .bootstrap-tagsinput {
  border-color: #ffbdbd !important;
}
.table-danger select,
.custom_table-danger select {
  border-color: #ffbdbd !important;
}
.table-danger .select2 .select2-selection,
.custom_table-danger .select2 .select2-selection {
  border-color: #ffbdbd !important;
}
.field-error-tip {
  z-index: 499 !important;
  position: absolute;
  left: calc(100% + 5px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  width: auto;
  height: 28px;
  margin-left: 0;
  background: transparent;
}
.field-error-tip-icon {
  min-width: 15px;
  width: 15px;
  height: 15px;
  line-height: 13px;
  border-radius: 50%;
  color: #ffb0d1;
  text-align: center;
  border: 1px solid #ffb0d1;
  cursor: pointer;
}
