@import 'antd-custom-theme.css';

.ant-table {
  border: 1px solid #f0f0f0;
  border-bottom: none;
}

.ant-card {
  box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 4px;
}

.filter-wrapper {
  margin: 20px 0 !important;
}

.filter-form {
  gap: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.filter-form .form-btn-group {
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.ant-table-wrapper + .ant-pagination {
  display: flex;
  justify-content: flex-end;
  margin: 16px 0;
}

.ant-segmented-item {
  margin-bottom: 0;
}

.react-datepicker__close-icon::after {
  top: 30% !important;
}

.margin-bottom-sm {
  margin-bottom: 5px;
}

.rdw-editor-toolbar {
  z-index: 10;
}

.rendered-content {
  border: 1px solid #ddd;
  padding: 10px;
  min-height: 150px;
  margin: 20px auto;
  max-width: 600px;
  text-align: left;
}

.EditorContent {
  border: 1px solid #ddd;
  padding: 10px;
  min-height: 150px;
  margin: 20px auto;
  max-width: 600px;
}

.toolbar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.toolbar button {
  padding: 5px 10px;
  font-size: 14px;
  cursor: pointer;
}

.toolbar .is-active {
  background-color: #d3d3d3;
}

.editor_root {
  display: flex;
  justify-content: start;
  flex-direction: column;
  gap: 12px;
  width: inherit;
  margin-bottom: 16px;

  & p {
    margin: 0;
  }
}

.tiptapEditor {
  text-align: left;
  border: 1px solid #ddd;
  padding: 20px;
  margin-top: 20px;
}

.tiptap {
  width: 100%;

  &:focus-visible {
    outline: none;
  }
}

.tiptap p.is-editor-empty:first-child::before {
  color: #adb5bd;
  content: attr(data-placeholder);
  float: left;
  height: 0;
  pointer-events: none;
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

.justify-start {
  justify-content: start;
}

.justify-end {
  justify-content: end;
}

.justify-center {
  justify-content: center;
}

.items-center {
  align-items: center;
}

.gap-4 {
  gap: 4px;
}

.gap-6 {
  gap: 6px;
}

.gap-8 {
  gap: 8px;
}

mjx-assistive-mml {
  clip: auto !important;
  left: 5px !important;
  top: 7px !important;
}

.tiptapRender {
  white-space: pre-wrap;
  line-height: 1.3;
}
.tiptapRender p {
  margin-bottom: 0;
}

.tiptap_editor {
  padding: 8px;
  cursor: text !important;
  border: 1px solid #d9d9d9;
  border-radius: 6px;

  &:hover,
  &:active {
    border-color: #4096ff;
    box-shadow: 0 0 0 2px rgba(5, 145, 255, 0.1);
  }
}

.ProseMirror * {
  white-space: pre-wrap;
  word-wrap: break-word;
}

.editor {
  width: 100%;
}

.bubble {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  border-radius: 8px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  column-gap: 2px;
  row-gap: 4px;
  padding: 4px;
  background-color: white;

  .font_size {
    width: 60px;
    border-radius: 0.375rem;
    padding: 0 6px;
    border: 1px solid rgb(229, 229, 229);
    outline: none;
  }
  & > button {
    all: unset;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 34px;
    margin: 0 2px;
    line-height: 34px;
    border-radius: 0.375rem;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.04);

    &:hover {
      background-color: rgba(0, 0, 0, 0.09);
    }

    &:active {
      background-color: rgba(0, 0, 0, 0.2);
    }
  }

  .active:hover {
    background-color: rgba(0, 0, 0, 0.3);
  }

  .active {
    background-color: rgba(0, 0, 0, 0.3);
  }
}

.colorPicker {
  border: none;
  padding: 0;
  cursor: pointer;
  width: 60px;
  padding: 0 8px;
  height: 34px;
  cursor: pointer;
  border-radius: 0.375rem;
  margin: 0 2px;

  &:hover {
    background-color: rgba(0, 0, 0, 0.09);
  }

  &:active {
    background-color: rgba(0, 0, 0, 0.2);
  }

  .active:hover {
    background-color: rgba(0, 0, 0, 0.3);
  }

  .active {
    background-color: rgba(0, 0, 0, 0.3);
  }
}
