/*
  drawer
*/
.ant-drawer-body::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.ant-drawer-body:hover::-webkit-scrollbar-track-piece {
  background: transparent;
}
.ant-drawer-body:hover::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.ant-drawer-body:hover::-webkit-scrollbar-thumb {
  background: #aaa;
  border-radius: 20px;
}

/*
  table
*/
.ant-table > .ant-table-container,
.ant-table > .ant-table-container > .ant-table-header,
.ant-table-container table,
.ant-table-container table > thead > tr:first-child th:last-child {
  border-top-right-radius: 0 !important;
}

.ant-table > .ant-table-container,
.ant-table > .ant-table-container > .ant-table-header,
.ant-table-container table,
.ant-table-container table > thead > tr:first-child th:first-child {
  border-top-left-radius: 0 !important;
}

.ant-table-cell .ant-btn {
  height: 22px;
}

.ant-table-body {
  overflow-y: auto !important;
}
.ant-table-body::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.ant-table-body:hover::-webkit-scrollbar-track-piece {
  background: transparent;
}
.ant-table-body:hover::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.ant-table-body:hover::-webkit-scrollbar-thumb {
  background: #aaa;
  border-radius: 20px;
}

/*
  form components
*/
.ant-btn {
  margin-right: 0.25rem;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
}

.ant-select input:focus {
  box-shadow: none;
}

.ant-select-focused .ant-select-selector {
  box-shadow: none !important;
}

.ant-input-group-addon .ant-btn {
  margin: 0;
}

.ant-input:focus, .ant-input-affix-wrapper-focused {
  box-shadow: none !important;
}

.ant-input-number-handler-wrap {
  z-index: 1;
}

.ant-image-preview-content {
  height: 100%;
}

.ant-image-preview-img-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ant-badge .ant-badge-count {
  box-shadow: none !important;
}

.ant-upload-select-picture-card {
  overflow: hidden !important;
}

/*
  modal
*/
.ant-modal-content {
  padding: 0 !important;
  border-radius: 8px !important;
}
.ant-modal-content .ant-modal-close {
  top: 10px !important;
  inset-inline-end: 15px;
}
.ant-modal-content .ant-modal-header {
  padding: 8px 16px;
  border-radius: 6px 6px 0 0 !important;
}
.ant-modal-content .ant-modal-footer {
  padding: 8px 16px;
  margin-top: 0 !important;
  border-radius: 0 !important;
}
.ant-modal-content .ant-modal-body {
  padding: 12px 16px;
}

/*
  pop-confirm
*/
.ant-popconfirm-buttons {
  white-space: nowrap;
}

/*
  dropdown
*/
.ant-dropdown-menu-item span {
  white-space: nowrap;
}