.table {
  max-width: initial;
  background-color: transparent;
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

.table thead tr th {
  border: none;
  color: #0a173e;
  position: sticky;
  top: 0;
  background: #fff;
  /* z-index: 2; */
  font-weight: 500;
  text-overflow: ellipsis;
  padding: 10px 6px;
  white-space: nowrap;
  text-align: right;
  box-shadow: 0 2px 7px 0 rgb(0 0 0 / 7%);
}

.table thead tr th:after {
  content: "";
  background: #1f42ab;
  width: 100%;
  height: 2px;
  position: absolute;
  right: 0;
  bottom: 0;
}

.table thead tr th + th:before {
  content: "";
  position: absolute;
  height: 14px;
  width: 1px;
  top: calc(50% - 7px);
  right: -1px;
  background: rgb(193 202 232);
}

.table thead .filter-table th {
  padding: 0;
  background: #fff;
  position: unset;
  position: relative;
  z-index: 0;
}

.table thead .filter-table th:before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: url(../images/patern1.png);
}

.table thead .filter-table th:after {
  display: none;
}

.table thead .filter-table .box {
  height: 0;
  overflow: hidden;
  transition: all 0.25s linear;
  position: relative;
}

.table thead .filter-table .box input,
.table thead .filter-table .box select {
  margin: 10px 7px;
  width: calc(100% - 15px);
  position: absolute;
  padding: 0 5px;
}

.table thead .filter-table.show .box {
  height: 55px;
}

.table thead .filter-table th + th .box:before {
  content: "";
  position: absolute;
  top: 17px;
  height: 20px;
  background: #ddd;
  right: 0px;
  width: 1px;
}

/*******************************/

.table tbody tr {
  position: relative;
  border-bottom: 1px solid #f3f3f3;
}

.table tbody tr td {
  font-weight: 300;
  text-overflow: ellipsis;
  padding: 7px 6px;
  white-space: nowrap;
}

.table tbody tr td.no-padding {
  padding: 5px 6px;
}

.table tbody tr td.check-part {
  cursor: default;
}

.table tbody tr td a {
  color: #08c;
  text-shadow: 0px 0px;
}

.table tbody tr td.statebar,
.table tbody tr td.actionbar {
  text-align: center;
  position: relative;
}

.table tbody tr td.actionbar i,
.table tbody tr td.actionbar a {
  font-size: 14px;
  width: 15px;
  height: 15px;
  display: inline-block;
  line-height: 15px;
  vertical-align: middle;
  margin: 0 2px;
  cursor: pointer;
}

.table tbody tr td.check-box i:before {
  content: "\f00c";
  width: 16px;
  height: 16px;
  border-radius: 5px;
  border: solid 1px #ccc;
  float: right;
  margin: 0px 0 0 0px;
  font-family: "font6";
  line-height: 17px;
  color: transparent;
  text-align: center;
  transition: all 0.2s linear;
  font-style: normal;
  font-weight: 400;
  z-index: 18;
}

.table tfoot tr td.avg,
.table tbody tr td.avg {
  direction: ltr;
  text-align: right;
  text-shadow: 0px 0px;
}

.table tbody tr:nth-child(even),
.in-table .table tbody tr:nth-child(4n - 1) {
  background: #f8f9fc;
}

.table tfoot tr td {
  font-weight: 300;
  padding: 10px 10px 10px;
  text-align: right;
  position: sticky;
  bottom: 0;
  background: #ffffff;
  z-index: 2;
}

.table tfoot td:before {
  content: "";
  background: #1f42ab;
  width: 100%;
  height: 2px;
  position: absolute;
  right: 0;
  top: 0;
}

.table tfoot.read-only tr td.avg,
.table tfoot tr td.avg {
  font-size: 15px;
}

.table tfoot.read-only tr td {
  background: #eee;
}

/**************************/

.table tbody td .icon-add.sub-menu {
  display: block;
  width: 16px;
  height: 16px;
  text-align: center;
  line-height: 16px;
  margin: 0 auto;
  border-radius: 2px;
  color: #0b9828;
  cursor: pointer;
  border: solid 1px;
  font-weight: 400;
}

.table tbody td .icon-add.sub-menu.active {
  background: #0b9828;
  color: #fff;
  border-color: #0b9828;
}

.table tbody .sub-menu-lis td {
  padding: 0;
}

.table tbody .sub-menu-lis .box {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: ease-in-out 0.6s max-height;
  position: relative;
}

.table tbody .sub-menu-lis .box:before {
  content: "";
  background: url(../images/patern1.png);
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.table tbody .sub-menu-lis .box .part {
  margin: 2%;
  background: #fff;
  width: 96%;
  box-shadow: 0px 0px 5px 0 rgba(0, 0, 0, 0.26);
  border-radius: 5px;
  max-height: 400px;
  overflow: auto;
  position: relative;
  padding: 0 0 15px 0;
}

.table tbody .sub-menu-lis .box .part:before {
  display: none;
}

.table tbody .sub-menu-lis .box .part .toolbars {
  background: white;
  display: block;
  height: 50px;
  padding: 10px;
  border-radius: 5px 5px 0 0;
}

.table tbody .sub-menu-lis .box .part .table {
  width: calc(100% - 20px);
  margin: 0 10px 0 10px;
}

.table tbody .sub-menu-lis .box th,
.table tbody .sub-menu-lis .box td {
  padding: 7px;
}

.table tbody .sub-menu-lis .box tbody tr {
  background: white;
}

.table tbody .sub-menu-lis .box tbody tr:nth-child(even) {
  background: #f9f9f9;
}

.table tbody .sub-menu-lis .box th {
  position: relative;
  border-bottom: dashed 1px #1f42ab;
  z-index: 0;
}

.table tbody .sub-menu-lis .box th:after {
  display: none;
}

.table tbody .sub-menu-lis.show .box {
  max-height: 500px;
}

/*******************************************/

.table-pagination {
}

.table-pagination .pagination {
  float: right;
}

.table-pagination .pagination li {
  float: right;
  list-style: none;
  width: 28px;
  height: 28px;
  background: #ffffff;
  text-align: center;
  line-height: 28px;
  margin: 0 0 0 5px;
  border-radius: 2px;
  border: solid 1px #ddd;
  overflow: hidden;
  color: #0c1c4c;
}

.table-pagination .pagination li.pageCounts {
  width: 100px;
}

.table-pagination .pagination li.pageCounts input {
  width: 100%;
  height: 100%;
  border: none;
}

.table-pagination select {
  float: left;
  height: 30px;
}

/****************************/

.table tbody tr td.check-part {
  padding: 0 10px 0 0;
  position: relative;
}

.table tbody tr td input[type="checkbox"] {
  position: absolute;
  right: 11px;
  top: 11px;
  opacity: 0;
  display: block;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.table .check-part > i:before {
  margin: 10px 0 0 0;
}

/**********************************************************************/

.combo {
  position: fixed;
  z-index: 9;
  box-shadow: 0 2px 15px 0 rgb(0 0 0 / 15%);
  /*transform: translate(20px, 35px);*/
  transition: all linear 0.25s;
  opacity: 0;
  visibility: hidden;
  overflow: overlay;
  border-left-width: 5px;
  max-height: 15vw;
  line-height: 30px;
  min-width: 12vw;
  border-radius: 5px;
}

.combo .table {
  background: #fff;
}

.combo .table thead tr th,
.combo .table tbody tr td {
  font-size: 11px;
  padding: 2px 10px;
  text-align: right;
  cursor: initial;
}

.combo .table tbody tr:nth-child(even) {
  background: transparent;
}

.combo .table tbody tr + tr {
  border-top: solid 1px #e4e8f5;
}

/**********************************************/

.table tbody tr td .more-icon {
  display: inline-block;
  position: relative;
}

.table tbody tr td .icon-more-action {
  font-weight: 400;
  color: #586bab;
  text-shadow: none;
}

.table tbody tr td .list-more-action {
  position: absolute;
  background: #fff;
  right: -10px;
  box-shadow: 0px 2px 5px 0 rgba(0, 0, 0, 0.26);
  border-radius: 5px;
  font-size: 12px;
  text-align: right;
  min-width: 140px;
  visibility: hidden;
  opacity: 0;
  z-index: 3;
  transition: right 0.25s linear;
}

.table tbody tr td .list-more-action.show {
  opacity: 1;
  visibility: visible;
  right: 0;
}

.table tbody tr td .list-more-action span {
  display: block;
  padding: 4px 10px;
  cursor: pointer;
}

.table tbody tr td .list-more-action span:hover {
  background: #f4f5fb;
}

.table tbody tr td .list-more-action span:before {
  vertical-align: middle;
  margin: 0 0 0 5px;
}

.table tbody tr td .list-more-action .icon-add:before {
  color: #3e9d25;
}

.table tbody tr td .list-more-action .icon-money:before {
  color: #3e9d25;
}

.table tbody tr td .list-more-action .icon-delete:before {
  color: #d6302e;
}

.table tbody tr td .list-more-action .icon-print:before {
  color: #3358cc;
}

/*************************************************/

.table tbody tr td.btn-box {
  padding: 7px 6px;
}

.table tbody tr td .btn {
  font-size: 10px;
  height: 23px;
  padding: 0 6px;
  font-weight: 400;
  line-height: 21px;
  margin: 0;
}

.table tbody tr td .btn i {
  height: 21px;
  line-height: 22px;
  padding: 0 0;
  width: 18px;
  font-size: 11px;
  text-align: right;
}

.table tbody tr td.btn-box .btn.green,
.table tbody tr td.btn-box .icon-add {
  border: solid 1px #3e9d25;
  color: #3e9d25;
}

.table tbody tr td.btn-box .icon-delete,
.table tbody tr td.btn-box .red {
  color: #d6302e;
  border: #d62f2e solid 1px;
}

.table tbody tr td .btn.orange,
.table tbody tr td.btn-box .btn.icon-reload {
  color: #d88c01;
  border: #da9c0c solid 1px;
}

.table tbody tr td.btn-box .btn.icon-edit {
  color: #2c7caf;
  border: #2c7caf solid 1px;
}

.table tbody tr td.btn-box .btn:focus {
  border-color: inherit;
}

.table tbody tr .toolbars .btn {
  height: 28px;
  line-height: 27px;
  font-size: 11px;
}

.table tbody tr .toolbars .btn:before {
  font-size: 14px;
  margin: 0;
}

.table tbody tr .toolbars .btn-add,
.table tbody tr .toolbars .btn-return,
.table tbody tr .toolbars .btn-accept,
.table tbody tr .toolbars .btn-cansel,
.table tbody tr .toolbars .btn-save,
.table tbody tr .toolbars .btn-print {
  padding: 0 0px 0 15px;
}
/*****************************************/
.combo .table tbody tr:nth-child(even):hover,
.table tbody tr:hover {
  background: #fffad7;
}

/******************************************/
.table tr td .search-box {
  width: 100%;
  display: block;
  height: 30px;
}
.table tr td .search-box:after {
  color: #2043ad;
  line-height: 30px;
  font-size: 14px;
  width: 30px;
}

.table tr td .detail-box {
  display: inline-flex;
}

.table tr td .detail-box p {
  float: right;
  width: 20vw;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  padding: 0 0 0 10px;
}

.table tr td .detail-box i {
  font-size: 14px;

  vertical-align: middle;

  cursor: pointer;
}

/*************************************************************/
.table .search-box:hover .ul-table {
  opacity: 1;
  visibility: visible;
  transform: translate(0px, 34px);
}

.table .ul-table {
  position: fixed;
  background: #ffffff;
  z-index: 4;
  border-radius: 2px;
  padding: 5px 10px;
  box-shadow: 0px 2px 5px 0 rgb(0 0 0 / 26%);
  opacity: 0;
  visibility: hidden;
  transform: translate(20px, 34px);
  transition: all linear 0.25s;
  height: 25vh;
  overflow: auto;
}

.table .ul-table li {
  list-style: none;
  font-weight: 400;
  line-height: 35px;
  font-size: 13px;
  cursor: pointer;
}

.table .ul-table li .text:before {
  content: "\f0d9";
  font-family: "font6";
  font-weight: 500;
  vertical-align: middle;
  margin: 0 0 0 5px;
  display: inline-block;
  transition: transform 0.2s linear;
}

.table .ul-table li > ul {
  max-height: 0;
  overflow: hidden;
  transition: max-height 1s linear;
}

.table .ul-table li:hover > .text:before {
  transform: rotateZ(-90deg);
}

.table .ul-table li:hover > ul {
  max-height: 1000px;
  transition: max-height 4s linear;
}

.table .ul-table li li {
  color: #2042ac;
  font-weight: 300;
  padding-right: 15px;
  line-height: 25px;
  font-size: 12px;
}

.table .ul-table li li li {
  color: #d92550;
}

.table .ul-table li li li li {
  color: #2f9e65;
}

/* ================================= */
table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: white;
}
