@import url("https://fonts.googleapis.com/css2?family=Geist:wght@100..900&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --background: #fff;
  --foreground: #171717;
  --blue: #0a5199;
  --red: #A84505;
  --green: #008000;
  --font-family:
    "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
  background: #f4f7f6;
}

body {
  color: var(--foreground);
  background: #f4f7f6;
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 11.5pt;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

a {
  color: var(--red);
  text-decoration: none;
  white-space: pre-wrap;
  word-break: break-word;
}

p {
  margin: 0;
  font-weight: 400;
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.5;
  text-align: justify;
  white-space: pre-wrap;
  word-break: break-word;
}

li {
  line-height: 2;
  font-size: 16px;
  text-align: justify;
  white-space: pre-wrap;
  word-break: break-word;
}

blockquote {
  position: relative;
  padding-left: 15px;
  padding-top: 0;
  padding-bottom: 0;
  margin: 10px 0;
  word-wrap: break-word;
  text-align: justify;
}
blockquote:before {
  position: absolute;
  bottom: 0;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background-color: var(--green);
  content: "";
  border-radius: 0;
}

pre {
  background-color: #f3fce8;
  border: 1px solid #95e830;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  padding: 1em;
  border-radius: 10px;
  white-space: pre-wrap;
  text-align: justify;
  word-wrap: break-word;
}
pre code {
  font-family: var(--font-family);
  border: none;
  border-radius: 0;
  padding: 0;
  font-feature-settings: normal;
  font-variation-settings: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 2;
  font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 700;
  color: var(--blue);
  font-family: var(--font-family);
  margin-top: 20px;
}
h1 {
  font-size: 6rem;
  line-height: 1.167;
}
h2 {
  font-size: 3.75rem;
  line-height: 1.2;
}
h3 {
  font-size: 3rem;
  line-height: 1.167;
}
h4 {
  font-size: 2.125rem;
  line-height: 1.235;
}
h5 {
  font-size: 1.5rem;
  line-height: 1.334;
}
h6 {
  font-size: 1.25rem;
  line-height: 1.6;
}

ul,
ol {
  margin-left: 20px;
}

figure > img,
.baiviet-img {
  width: 100%;
  height: auto;
}

figcaption {
  background: #ddf8b9;
  padding: 5px 10px;
  border-radius: 0 0 5px 5px;
  text-align: center;
}

.table-content {
  width: 100%;
  overflow: auto;
}
.tableWrapper > table {
  width: max-content;
  display: block;
  min-width: unset !important;
  border: 1px solid #e6e6e6;
  border-collapse: collapse;
}
.tableWrapper > table > colgroup > col,
.tableWrapper > table > thead > tr > td,
.tableWrapper > table > tbody > tr > th {
  border: 1px solid #e6e6e6;
  font-weight: 700;
  padding: 5px 10px;
  background: #248f24;
  color: #fff;
  text-align: center;
}
.tableWrapper > table > colgroup > col > p,
.tableWrapper > table > thead > tr > td > p,
.tableWrapper > table > tbody > tr > th > p {
  font-weight: 700;
  color: #fff;
  text-align: center;
}
.tableWrapper > table > tbody > tr > td {
  border: 1px solid #e6e6e6;
  padding: 5px 10px;
  background: #ecffe6;
  text-align: left;
}

.tiptap {
  min-height: 200px;
  padding: 5px 15px;
  outline: none;
}
.tiptap.resize-cursor {
  cursor: ew-resize;
  cursor: col-resize;
}

.MuiTableCell-head {
  font-weight: 700;
}
.MuiDialogTitle-root,
.MuiDialogActions-root {
  box-shadow:
    1px 2px 4px -2px rgba(0, 0, 0, 0.2),
    0px 5px 5px 0px rgba(0, 0, 0, 0.14),
    0px 1px 10px 1px rgba(0, 0, 0, 0.12);
}
.MuiDialogContent-root {
  margin-top: 15px;
}

.tiptap-btn {
  color: rgba(0, 0, 0, 0.54);
  border: 1px solid rgba(0, 0, 0, 0.12);
  min-width: unset;
  height: 30px;
  padding: 0 5px;
}
.tiptap-btn.active {
  color: rgba(25, 118, 210, 0.9);
  border: 1px solid rgba(25, 118, 210, 0.5);
  background-color: rgba(0, 0, 0, 0.08);
  min-width: unset;
}
.MuiToggleButtonGroup-grouped.Mui-selected {
  color: rgba(25, 118, 210, 0.9);
  border: 1px solid rgba(25, 118, 210, 0.5);
  background-color: rgba(0, 0, 0, 0.08);
}
.tiptap-group-btn .MuiToggleButtonGroup-grouped {
  height: 30px;
  padding: 0 5px;
}

.w-color-editable-input {
  --editable-input-label-color: #171717 !important;
  --editable-input-color: #171717 !important;
}
.w-color-saturation-fill {
  width: 16px !important;
  height: 16px !important;
  transform: translate(-8px, -8px) !important;
}
.w-color-editable-input > input {
  text-align: center;
}

.dialog-title {
  font-weight: 700;
  background: var(--green);
  color: #fff;
  padding-top: 2px;
  padding-bottom: 2px;
  box-shadow: none;
}

.gallery > .MuiDialog-container {
  height: auto;
}

.gallery > .MuiDialog-container > .MuiPaper-root {
  height: 93vh;
}

.gallery > .MuiDialog-container > .MuiPaper-root > .MuiDialogContent-root {
  padding: 0;
}
.gallery-contain {
  padding: 20px 24px;
}

.gallery-paging > ul > li > button {
  color: #fff;
  border-color: #fff;
}
.gallery-paging > ul > li > button:hover {
  color: rgba(102, 255, 51, 0.5);
  border-color: rgba(102, 255, 51, 0.5);
}

.gallery-paging > ul > li > button.Mui-selected {
  color: rgb(102, 255, 51);
  border-color: rgb(102, 255, 51);
}
.gallery-paging > ul > li > button.Mui-selected:hover {
  color: rgb(102, 255, 51);
  border-color: rgb(102, 255, 51);
  background-color: rgba(102, 255, 51, 0.24);
}

.gallery-img.active {
  --color: #e68a00;
  border: 1px solid var(--color);
  padding: 4px;
  border-radius: 5px;
  background: var(--color);
  box-shadow:
    0px 2px 7px -9px var(--color),
    0px 1px 5px 0px var(--color),
    0px 1px 3px 0px var(--color);
}

.gallery-img img {
  border-radius: 5px;
}
.gallery-img.active img {
  height: 130px;
}

.gallery-card {
  width: auto;
  height: 140px;
}

.gallery-img-action {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 128, 0, 0.7);
  backdrop-filter: blur(3px);
  padding: 15px 10px;
  text-align: center;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  border-radius: 0 0 5px 5px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease-in-out;
}
.gallery-img:hover .gallery-img-action,
.gallery-img-action.active {
  opacity: 1;
  pointer-events: unset;
}
.gallery-img:hover .gallery-img-action:hover,
.gallery-img-action.active:hover {
  background: rgba(10, 81, 153, 0.7);
}

.tippy-box {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(5px);
  border-radius: 10px;
  max-width: 450px !important;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.MuiBackdrop-root {
  backdrop-filter: blur(3px);
}

.popover .MuiBackdrop-root {
  backdrop-filter: unset;
}

/* LOGIN */
.login-container {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.login-container.active .login-top:before,
.login-container.active .login-top:after,
.login-container.active .login-bottom:before,
.login-container.active .login-bottom:after,
.login-container.active .login-top:before,
.login-container.active .login-top:after,
.login-container.active .login-bottom:before,
.login-container.active .login-bottom:after {
  margin-left: 200px;
  transform-origin: -200px 50%;
  transition-delay: 0s;
}
.login-container.active .login-center,
.login-container.active .login-center {
  opacity: 1;
  transition-delay: 0.2s;
}

.login-top:before,
.login-top:after,
.login-bottom:before,
.login-bottom:after {
  content: "";
  display: block;
  position: absolute;
  width: 200vmax;
  height: 200vmax;
  top: 50%;
  left: 50%;
  margin-top: -100vmax;
  transform-origin: 0 50%;
  transition: all 0.5s cubic-bezier(0.445, 0.05, 0, 1);
  z-index: 10;
  opacity: 0.65;
  transition-delay: 0.2s;
}

.login-top:before {
  transform: rotate(45deg);
  background: #e46569;
}
.login-top:after {
  transform: rotate(135deg);
  background: #ecaf81;
}

.login-bottom:before {
  transform: rotate(-45deg);
  background: #60b8d4;
}
.login-bottom:after {
  transform: rotate(-135deg);
  background: #3745b5;
}

.login-center {
  position: absolute;
  width: 400px;
  height: 400px;
  top: 50%;
  left: 50%;
  margin-left: -200px;
  margin-top: -200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.445, 0.05, 0, 1);
  transition-delay: 0s;
  color: #333;
}

.thumbnail-empty {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(63, 153, 243, 0.1);
  transition: all 0.25s ease-in-out;
}
.thumbnail-empty:hover {
  background: rgba(63, 153, 243, 0.7);
}

.thumbnail-not-empty {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(63, 153, 243, 0);
  transition: all 0.25s ease-in-out;
  opacity: 0;
}
.thumbnail-not-empty-card:hover .thumbnail-not-empty {
  background: rgba(63, 153, 243, 0.1);
  opacity: 1;
}

.thumbnail-not-empty .btn-select,
.thumbnail-not-empty .btn-delete {
  width: 100%;
  padding: 3px 0px;
  text-align: center;
  transition: all 0.25s ease-in-out;
  cursor: pointer;
  color: #fff;
  backdrop-filter: blur(3px);
}
.thumbnail-not-empty .btn-select {
  background: rgba(0, 128, 0, 0.7);
}
.thumbnail-not-empty .btn-select:hover {
  background: rgba(0, 128, 0, 0.9);
}

.thumbnail-not-empty .btn-delete {
  background: rgba(153, 31, 0, 0.7);
}
.thumbnail-not-empty .btn-delete:hover {
  background: rgba(153, 31, 0, 0.9);
}

.reset-pwd-login-btn {
  display: block;
  text-align: center;
  width: 100%;
  font-size: 16px;
  color: var(--blue);
  text-decoration: underline;
  margin-top: 20px;
}

.article-add-edit-popup .MuiDialog-paper {
  overflow-x: hidden;
}

.cm-content {
  font-size: 12px;
}
.cm-gutterElement {
  font-size: 12px;
}
