@charset "UTF-8";

/**
 * tabulator自定义功能封装
 * @authors zhengy
 * @date    2023-05-26
 * @version $Id$
 */

html,
body {
  padding: 0;
  margin: 0;
  width: 100%;
  min-height: 100vh;
}

/*************** tabulator ***************/

.tabulator {
  background: #fff;
  border: 0;
  position: relative;
}

.tabulator-table {
  min-width: 100%;
}

.tabulator .tabulator-header {
  border-bottom: 1px solid #eee;
  background: #f9f9f9;
}

.tabulator-col-content {
  line-height: 40px;
}

.tabulator .tabulator-header .tabulator-col.tabulator-col-group .tabulator-col-group-cols {
  border-top: 1px solid #ededed;
}

.tabulator-col-group .tabulator-col-content:first-child {
  text-align: center;
}

.tabulator .tabulator-header .tabulator-col {
  border-right: 1px solid #ededed;
  background: #f9f9f9;
  font-weight: normal;
  color: #333;
  font-size: 14px;
}

.tabulator .tabulator-header .tabulator-col:last-child {
  border: 0;
}

.tabulator .tabulator-header .tabulator-col .tabulator-col-content {
  padding: 0 10px;
}

.tabulator-row {
  border-bottom: 1px solid #eee;
  cursor: default !important;
}

.tabulator-row.tabulator_row_highlight {
  background: #fff8f0 !important;
}

.tabulator-row.tabulator-selected,
.tabulator-row.tabulator-row-even {
  background-color: #fff;
}

.tabulator-row.tabulator-selectable:hover {
  background: #f9f7f5 !important;
}

.tabulator-row .tabulator-cell {
  line-height: 40px;
  padding: 0 10px;
  border: 0;
  /* border-color: #eee; */
  cursor: default;
}

.tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-left {
  border-right: 1px solid #eee;
}

.tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-right {
  border-left: 1px solid #eee;
}

/* frozen box-shadow */
.tabulator.frozen .tabulator-header .tabulator-frozen.tabulator-frozen-left {
  border: 0;
}

.tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-left,
.tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-right {
  border: 0;
}

.tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-left,
.tabulator-row .tabulator-frozen.tabulator-frozen-left {
  overflow: hidden;
  padding-right: 23px;
}

/* frozen box-shadow */
.tabulator.frozen .tabulator-header .tabulator-frozen.tabulator-frozen-left::after,
.tabulator.frozen .tabulator-row .tabulator-frozen.tabulator-frozen-left::after {
  content: "";
  width: 15px;
  position: absolute;
  top: -6px;
  right: 8px;
  bottom: -6px;
  z-index: 1;
  box-shadow: 8px 0 6px -4px rgba(0, 0, 0, 0.08);
}

/* table placeholder */
.tabulator .tabulator-tableholder .tabulator-placeholder .tabulator-placeholder-contents {
  padding: 50px 10px;
  font-weight: normal;
  font-size: 15px;
}

.tabulator .tabulator-tableholder .tabulator-placeholder .tabulator-placeholder-contents img {
  width: 190px;
}

/* groupby */
.tabulator-row.tabulator-group,
.tabulator-row.tabulator-group:hover {
  background: #fff;
  border-color: #eee;
  border-top: 0;
  border-right: 0;
  line-height: 40px;
  padding: 0 10px 0 0;
  cursor: default;
}

.tabulator-row.tabulator-group .tabulator-group-toggle {
  cursor: pointer;
  width: 32px;
  text-align: center;
}

.tabulator-row.tabulator-group .tabulator-arrow {
  margin: 0 !important;
}

.tabulator-row.tabulator-group .tabulator-arrow {
  border-left-color: #ccc;
}

.tabulator-row.tabulator-group.tabulator-group-visible .tabulator-arrow {
  border-top-color: #ccc;
}

.tabulator-row.tabulator-group font {
  color: #999;
  margin-left: 24px;
  font-weight: normal;
}

/* rowClick */

.tabulator.rowClick .tabulator-row,
.tabulator.rowClick .tabulator-cell {
  cursor: pointer !important;
}

/*************** tabulator-alert ***************/

.tabulator .tabulator-alert {
  background: rgba(0, 0, 0, 0);
}

.tabulator .tabulator-alert .tabulator-alert-msg.tabulator-alert-state-msg,
.tabulator .tabulator-alert .tabulator-alert-msg.tabulator-alert-state-error {
  display: none;
}

.tabulator .tabulator-alert .tabulator-alert-msg.tabulator-alert-state-error {
  border: 0;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
}

/*************** tabulator-footer ***************/

.tabulator .tabulator-footer {
  background: #fff;
  border-top: 1px solid #eee;
}

.tabulator .tabulator-footer .tabulator-footer-contents {
  padding: 16px 0 0;
}

.tabulator .tabulator-footer .tabulator-paginator {
  text-align: center;
}

.tabulator .tabulator-footer .tabulator-page {
  background: #fafafa;
  border-color: #fafafa;
  font-weight: normal;
  padding: 6px 12px;
  border-radius: 5px;
}

/* .tabulator .tabulator-footer .tabulator-page:hover, */
.tabulator .tabulator-footer .tabulator-page.active {
  color: #fff;
  background: var(--color-theme);
}

/*************** tabulator_set_btn ***************/

.tabulator-headers .tabulator-col-resize-handle:last-child {
  display: none;
}

.tabulator-headers .tabulator-col:nth-last-child(2) {
  border: 0;
}

.tabulator_set_btn,
.tabulator_set_btn:hover {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 10;
  color: var(--color-theme);
  width: 38px;
  line-height: 40px;
  text-align: center;
  background: #f9f9f9;
  /* border-left: 1px solid #ededed; */
}

.tabulator_set_btn i {
  cursor: pointer;
}

/*************** tabulator_title_btn ***************/

.tabulator-col-title {
  position: relative;
}

.tabulator-col-title > i {
  color: #999;
  margin-left: 5px;
}

.tabulator_title_btn {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 2;
}

/*************** tabulator_sort_btn ***************/

.tabulator_sort_btn {
  display: inline-block;
  line-height: 40px;
  width: 20px;
  text-align: center;
  background: #f9f9f9;
  cursor: pointer;
}

.tabulator_sort_btn i {
  display: inline-block;
  width: 10px;
  height: 10px;
  position: relative;
}

.tabulator_sort_btn i::before,
.tabulator_sort_btn i::after {
  content: "";
  position: absolute;
  left: 50%;
  z-index: 1;
  transform: translate(-50%, 0);
  border: 5px solid transparent;
}

.tabulator_sort_btn i::before {
  top: -50%;
  margin-top: -1px;
  border-bottom-color: #ccc;
}

.tabulator_sort_btn i::after {
  bottom: -50%;
  margin-bottom: -1px;
  border-top-color: #ccc;
}

.tabulator_sort_btn[data-t="asc"] ::before {
  border-bottom-color: var(--color-theme);
}

.tabulator_sort_btn[data-t="desc"] i::after {
  border-top-color: var(--color-theme);
}

/*************** tabulator_filter_btn ***************/

.tabulator_filter_btn {
  display: inline-block;
  line-height: 40px;
  width: 20px;
  text-align: center;
  background: #f9f9f9;
  color: #ccc;
  cursor: pointer;
}

.tabulator_filter_btn.tSelect,
.tabulator_filter_btn:hover {
  background: #ddd;
  color: #999;
}

.tabulator_filter_btn.tActive {
  color: var(--color-theme);
}

/*************** tabulator_filter_modal ***************/

.tabulator_filter_modal * {
  box-sizing: border-box;
  outline: none;
}

.tabulator_filter_modal {
  width: 246px;
  position: absolute;
  z-index: 100;
  background: #fff;
  box-shadow: 0 3px 14px 2px rgba(0, 0, 0, 0.05), 0 8px 10px 1px rgba(0, 0, 0, 0.06), 0 5px 5px -3px rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  padding: 12px;
}

.tabulator_filter_modal input {
  width: 100%;
  background: #fff;
  border-radius: 3px;
  border: 1px solid #eee;
  color: #666;
  padding: 0 12px;
  line-height: 30px;
}

.tabulator_filter_modal_btn_box {
  padding-top: 12px;
}

.tabulator_filter_modal_select {
  position: relative;
}

.tabulator_filter_modal_select input {
  padding-right: 30px;
  cursor: pointer;
  background: transparent;
}

.tabulator_filter_modal_select.tActive input {
  border-color: var(--color-theme);
}

.tabulator_filter_modal_select i {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: -1;
  color: #999;
}

.tabulator_filter_modal_select.tActive i {
  transform: rotate(180deg);
}

.tabulator_filter_modal_select ul {
  width: 100%;
  margin: 0;
  max-height: 280px;
  overflow: auto;
}

.tabulator_filter_modal_select li {
  padding: 0 0 0 22px;
  overflow: hidden;
  line-height: 40px;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  border-radius: 3px;
  position: relative;
}

.tabulator_filter_modal_select li:hover,
.tabulator_filter_modal_select li.tActive {
  /*   background: #ecf2fe; */
  color: var(--color-theme);
}

.tabulator_filter_modal_select li b {
  position: absolute;
  left: 0;
  top: 12px;
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url(/static/Public/lawFirm/img/check_icon_new.png) no-repeat;
  background-size: auto 16px;
  background-position: 0 0;
}

.tabulator_filter_modal_select li.tActive b {
  background-position: -32px 0;
}

.tabulator_filter_modal_date {
  text-align: center;
  cursor: pointer;
}

.tabulator_filter_modal_btn_box button {
  background: var(--color-theme);
  border: 0;
  color: #fff;
  border-radius: 3px;
  line-height: 24px;
  font-size: 14px;
  width: calc(50% - 6px);
  cursor: pointer;
}

.tabulator_filter_modal_btn_box button:last-child {
  background: #e7e7e7;
  color: #333;
  margin-left: 12px;
}

/*************** tabulator_handle_cell ***************/

.tabulator-row .tabulator_handle_cell {
  position: absolute;
  top: 0;
  z-index: 10;
  padding: 0 0 0 15px;
  cursor: default !important;
}

.tabulator-row .tabulator_handle_cell > div {
  background: #f9f7f5;
  padding: 0 12px 0 5px;
  position: relative;
}

.tabulator-row .tabulator_handle_cell > div::before {
  content: "";
  display: block;
  width: 15px;
  height: 100%;
  position: absolute;
  left: -15px;
  top: 0;
  background: linear-gradient(90deg, rgba(243, 248, 255, 0), #f9f7f5);
}

.tabulator-row .tabulator_handle_cell a,
.tabulator-row .tabulator_handle_cell a:hover {
  color: var(--color-theme);
  cursor: pointer;
  margin-left: 15px;
}

.tabulator-row .tabulator_handle_cell a:first-child,
.tabulator-row .tabulator_handle_cell a:first-child:hover {
  margin: 0;
}

/*************** tabulator_set_modal ***************/

.tabulator_set_modal .modal-dialog {
  min-width: 380px;
  width: fit-content;
  max-width: calc(100vw - 100px);
}

.tabulator_set_modal .modal-header {
  text-align: left;
  font-size: 16px;
  border-bottom: 1px solid #f0f0f0;
  padding: 12px;
}

.tabulator_set_modal .modal-body {
  padding: 16px 30px;
}

.tabulator_set_modal .modal-body > p {
  color: var(--color-theme);
  margin: 0;
}

.tabulator_set_modal .modal-body > div {
  border-radius: 8px;
  border: 1px solid #e6e6e6;
  margin-bottom: 16px;
  user-select: none;
  position: relative;
}

.tabulator_set_modal .modal-body i {
  display: inline-block;
  vertical-align: middle;
  margin-right: 12px;
  width: 16px;
  height: 16px;
  cursor: pointer;
  background: url(/static/Public/lawFirm/img/check_icon_new.png) no-repeat;
  background-size: auto 16px;
  background-position: 0 0;
}

.tabulator_set_modal .modal-body i:hover {
  background-position: -16px 0;
}

.tabulator_set_modal .modal-body i.tUnmove {
  background-position: -64px 0;
  cursor: not-allowed;
}

.tabulator_set_modal .modal-body i.tActive {
  background-position: -32px 0;
}

.tabulator_set_modal_info {
  border-bottom: 1px solid #e6e6e6;
  padding: 0 16px;
  line-height: 42px;
}

.tabulator_set_modal_info span {
  margin-left: 12px;
  color: #999;
}

.tabulator_set_modal_info b {
  float: right;
  font-weight: normal;
  margin-right: 20px;
}

.tabulator_set_modal_list {
  max-height: calc(100vh - 300px);
  min-height: 120px;
  overflow-y: auto;
}

.tabulator_set_modal_list li {
  padding-left: 16px;
}

.tabulator_set_modal_list li > div {
  line-height: 34px;
  position: relative;
  padding: 0 96px 0 24px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: move;
}

.tabulator_set_modal_list i {
  position: absolute;
  left: 0;
  top: 50%;
  z-index: 1;
  transform: translate(0, -50%);
  margin: 0;
}

.tabulator_set_modal_list b {
  font-weight: normal;
  color: var(--color-theme);
  cursor: pointer;
  margin-left: 10px;
  visibility: hidden;
}

.tabulator_set_modal_list b.tabulator_set_modal_del {
  color: #e34d59;
}

.tabulator_set_modal_list[data-isEdit="1"] li > div:hover b {
  visibility: initial;
}

.tabulator_set_modal_list .tabulator_set_modal_wid {
  position: absolute;
  right: 16px;
  top: 50%;
  z-index: 1;
  transform: translate(0, -50%);
  cursor: default;
}

.tabulator_set_modal_list .tabulator_set_modal_wid a {
  display: inline-block;
  background: var(--color-theme);
  color: #fff;
  width: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: 3px;
  cursor: pointer;
}

.tabulator_set_modal_list .tabulator_set_modal_wid a.tUnable {
  cursor: not-allowed;
  background: #eee;
  color: #888;
}

.tabulator_set_modal_list .tabulator_set_modal_wid font {
  display: inline-block;
  width: 36px;
  text-align: center;
  color: #888;
}

.tabulator_set_modal_change {
  position: absolute;
  z-index: 2;
  border: 1px solid #e6e6e6;
  border-radius: 3px;
  background: #fff;
  padding: 0 50px 0 8px;
  display: none;
}

.tabulator_set_modal_change input {
  width: 100%;
  line-height: 26px;
  border: 0;
}

.tabulator_set_modal_change b {
  display: inline-block;
  position: absolute;
  right: 30px;
  top: 50%;
  z-index: 1;
  transform: translate(0, -50%);
  color: #666;
  font-weight: normal;
  font-size: 18px;
  width: 16px;
  line-height: 16px;
  cursor: pointer;
}

.tabulator_set_modal_change b:last-child {
  right: 8px;
}

.tabulator_set_modal_change b:hover {
  background: #f9f7f5;
  border-radius: 2px;
}

.tabulator_set_modal .modal-footer {
  border-top: 1px solid #f0f0f0;
  padding: 10px 16px;
}

.tabulator_set_modal .modal-footer button {
  width: 80px;
  line-height: 34px;
  border-radius: 4px;
  border: 1px solid var(--color-theme);
  color: var(--color-theme);
  background: #fff;
}

.tabulator_set_modal .modal-footer button:last-child {
  background: var(--color-theme);
  color: #fff;
  margin-left: 12px;
}

/* checkbox */

.tabulator-col-title input[type="checkbox"],
.tabulator-selectable input[type="checkbox"] {
  position: relative;
}

.tabulator-col-title input[type="checkbox"]::before,
.tabulator-selectable input[type="checkbox"]::before,
.tabulator-col-title input[type="checkbox"]:checked::before,
.tabulator-selectable input[type="checkbox"]:checked::before,
.tabulator-col-title input[type="checkbox"]:indeterminate::before,
.tabulator-selectable input[type="checkbox"]:indeterminate::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  position: absolute;
  cursor: pointer;
}

.tabulator-col-title input[type="checkbox"]::before,
.tabulator-selectable input[type="checkbox"]::before {
  background: url(/static/Public/lawFirm/img/check_icon_new.png) no-repeat;
  background-size: auto 16px;
  background-position: 0 0;
}

.tabulator-col-title input[type="checkbox"]:checked::before,
.tabulator-selectable input[type="checkbox"]:checked::before {
  background: url(/static/Public/lawFirm/img/check_icon_new.png) no-repeat;
  background-size: auto 16px;
  background-position: -32px 0;
}

.tabulator-col-title input[type="checkbox"]:indeterminate::before,
.tabulator-selectable input[type="checkbox"]:indeterminate::before {
  background: url(/static/Public/lawFirm/img/check_icon_new.png) no-repeat;
  background-size: auto 16px;
  background-position: -80px 0;
}

/* 表格行编辑样式 */
.tabulatorBox .tabulator-row.tabulator-edited .allow-editing{
  border: 1px solid var(--color-theme) !important;
  cursor: pointer !important;
}
.tabulatorBox .tabulator-row.tabulator-edited .tabulator-cell{
  cursor: default !important;
}
.tabulator-cancel{
  color: #666 !important;
}
.tabulator-edited .tabulator_handle_cell{
  display: block !important;
}
.tabulatorBox .tabulator-row .tabulator-editing input{
  padding: 0 10px !important;
}
.set-hover-color{
  background-color: #ddf1f9;
}

/* 编辑表头 必填、同步至入职审批字段 */
.tabulator-edit-switch{
  display: inline-block;
  width: 84px;
  text-align: center;
  vertical-align: middle;
}
.tabulator-edit-switch>div{
  width: 30px;
  height: 16px;
  border-radius: 16px;
  background: #E3E2E2;
  margin: auto;
  position: relative;
  cursor: pointer;
}
.tabulator-edit-switch>div>div{
  position: absolute;
  left: 1px;
  top: 1px;
  z-index: 1;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
}
.tabulator_set_modal_wid .tabulator-edit-switch:nth-last-child(2){
  margin: 0 16px 0 20px;
}
.tabulator-edit-switch[data-switch="1"]>div{
  background-color: var(--color-theme);
}
.tabulator-edit-switch[data-switch="1"]>div>div{
  right: 1px;
  left: auto;
}
.tabulator-header-switch{
  display: inline-block;
  float: right;
  width: 84px;
  text-align: center;
}
.tUnmove .tabulator-edit-switch{
  opacity: 0.5;
}
.tUnmove .tabulator-edit-switch div{
  cursor: not-allowed;
}
.tabulator-add-cloumn{
  width: 92px;
  height: 28px;
  line-height: 28px;
  border: 1px solid #DCDCDC !important;
  box-sizing: border-box;
  text-align: center;
  font-size: 14px;
  color: #333333;
  border-radius: 4px !important;
  cursor: pointer;
}
.tabulator-add-cloumn i{
  background: none !important;
  font-size: 14px;
  line-height: 14px;
  margin-right: 5px !important;
}
.tabulator_set_modal_wid{
  font-size: 0;
}
.tabulator_set_modal_list .tabulator_set_modal_wid a,
.tabulator_set_modal_list .tabulator_set_modal_wid font{
  font-size: 14px;
  vertical-align: middle;
}