/*  imported from index.less  */

@import '~antd/lib/style/themes/default.less';

.abeta-ui-sheet-table-required:before {
  display: inline-block;
  margin-right: 4px;
  color: #ff4d4f;
  font-size: 14px;
  font-family: SimSun, sans-serif;
  line-height: 1;
  content: '*';
}

.abeta-ui-sheet-table-fullScreen {
  position: fixed;
  display: flex;
  flex-direction: column;
  z-index: 99999;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: #fff;
  height: 100% !important;
  padding: 5px;
}

.abeta-ui-sheet-table-header {
  overflow: hidden;
  border-top: 1px solid #f0f0f0;
  border-left: 1px solid #f0f0f0;
}

.abeta-ui-sheet-table-body {
  overflow: auto;
  overflow-y: scroll;
  position: relative;
  border-left: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.abeta-ui-sheet-table-sheetTable table {
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.abeta-ui-sheet-table-sheetTable thead th,
.abeta-ui-sheet-table-sheetTable thead td {
  text-align: center;
  padding: 4px;
  background: #fafafa;
  border-right: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  cursor: cell;
  user-select: none;
}
.abeta-ui-sheet-table-sheetTable.abeta-ui-sheet-table-middle thead th,
.abeta-ui-sheet-table-sheetTable.abeta-ui-sheet-table-middle thead td {
  padding: 8px;
}

.abeta-ui-sheet-table-sheetTable tbody td,
.abeta-ui-sheet-table-sheetTable tbody th {
  border-right: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  cursor: cell;
  user-select: none;
  padding: 3px 10px;
}
.abeta-ui-sheet-table-sheetTable.abeta-ui-sheet-table-middle td,
.abeta-ui-sheet-table-sheetTable.abeta-ui-sheet-table-middle th {
  padding: 3px 14px;
}

.abeta-ui-sheet-table-sheetTable td.abeta-ui-sheet-table-editable {
  padding: 3px !important;
}

.abeta-ui-sheet-table-valueWrapper {
  max-height: 24px;
  overflow: hidden;
  width: 100%;
}
.abeta-ui-sheet-table-middle .abeta-ui-sheet-table-valueWrapper {
  max-height: 32px;
}

.abeta-ui-sheet-table-fixed {
  position: sticky !important;
  z-index: 2;
  background: #fff;
}

.abeta-ui-sheet-table-fixed.abeta-ui-sheet-table-fixLeftLast:after,
.abeta-ui-sheet-table-fixed.abeta-ui-sheet-table-fixRightFirst:after {
  position: absolute;
  top: 0;
  bottom: -1px;
  width: 30px;
  -webkit-transition: -webkit-box-shadow 0.3s;
  transition: -webkit-box-shadow 0.3s;
  transition: box-shadow 0.3s;
  transition: box-shadow 0.3s, -webkit-box-shadow 0.3s;
  content: '';
  pointer-events: none;
}

.abeta-ui-sheet-table-fixed.abeta-ui-sheet-table-fixLeftLast:after {
  right: 0;
  -webkit-transform: translateX(100%);
  transform: translateX(100%);
  box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, 0.15);
}

.abeta-ui-sheet-table-fixed.abeta-ui-sheet-table-fixRightFirst:after {
  left: 0;
  -webkit-transform: translateX(-100%);
  transform: translateX(-100%);
  box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, 0.15);
}

.abeta-ui-sheet-table-fixed.abeta-ui-sheet-table-fixTopLast:after,
.abeta-ui-sheet-table-fixed.abeta-ui-sheet-table-fixBottomFirst:after {
  position: absolute;
  left: 0;
  right: -1px;
  height: 30px;
  -webkit-transition: -webkit-box-shadow 0.3s;
  transition: -webkit-box-shadow 0.3s;
  transition: box-shadow 0.3s;
  transition: box-shadow 0.3s, -webkit-box-shadow 0.3s;
  content: '';
  pointer-events: none;
}

.abeta-ui-sheet-table-fixed.abeta-ui-sheet-table-fixTopLast:after {
  bottom: 0;
  -webkit-transform: translateY(100%);
  transform: translateY(100%);
  box-shadow: inset 0 10px 8px -8px rgba(0, 0, 0, 0.15);
}

.abeta-ui-sheet-table-fixed.abeta-ui-sheet-table-fixBottomFirst:after {
  top: 0;
  -webkit-transform: translateY(-100%);
  transform: translateY(-100%);
  box-shadow: inset 0 -10px 8px -8px rgba(0, 0, 0, 0.15);
}

.abeta-ui-sheet-table-indexCell {
  line-height: 24px;
  background: #fafafa;
  text-align: center;
  white-space: nowrap;
}
.abeta-ui-sheet-table-middle .abeta-ui-sheet-table-indexCell {
  line-height: 32px !important;
}

.abeta-ui-sheet-table-indexCellSelected {
  background: @primary-1 !important;
}

.abeta-ui-sheet-table-readonly {
  background: #fafafa;
}

.abeta-ui-sheet-table-selection {
  position: absolute;
  pointer-events: none;
  border: 2px solid @primary-color;
  transition: all 0.1s;
}

.abeta-ui-sheet-table-multiSelection {
  background-color: fade(@primary-color, 5%);
}

.abeta-ui-sheet-table-required:before {
  display: inline-block;
  margin-right: 4px;
  color: #ff4d4f;
  font-size: 14px;
  font-family: SimSun, sans-serif;
  line-height: 1;
  content: '*';
}

.abeta-ui-sheet-table-error {
  background-color: #ff4d4f !important;
}
