/* ========================================================================
   Import
 ========================================================================== */

/* ========================================================================
   Fonts
 ========================================================================== */

/* ========================================================================
   BS Base
 ========================================================================== */

body,
html {
  overflow-x: hidden;
  height: 100%;
}

/* ========================================================================
   BS Container
 ========================================================================== */

.container,
.container-fluid,
.container-xxl,
.container-xl,
.container-lg,
.container-md,
.container-sm {
  --bs-gutter-x: 2rem;
  --bs-gutter-y: 0;
}

@media (min-width: 1200px) {
  .container,
  .container-fluid,
  .container-xxl,
  .container-xl,
  .container-lg,
  .container-md,
  .container-sm {
    --bs-gutter-x: 3rem;
    --bs-gutter-y: 0;
  }
}

/* ========================================================================
   BS Table
 ========================================================================== */

/* ========================================================================
   BS Form
 ========================================================================== */

.form-label {
  font-size: 0.875em;
  margin-bottom: 0.25rem;
}

/* ========================================================================
   BS Button
 ========================================================================== */

/* ========================================================================
   BS Collapse
 ========================================================================== */

/* ========================================================================
   BS Dropdown
 ========================================================================== */

/* ========================================================================
   BS Button group
 ========================================================================== */

/* ========================================================================
   BS Nav
 ========================================================================== */

/* ========================================================================
   BS Navbar
 ========================================================================== */

.navbar {
  --bs-navbar-padding-x: 0;
  --bs-navbar-padding-y: 0.75rem;
}

/* ========================================================================
   BS Card
 ========================================================================== */

/* ========================================================================
   BS Accordion
 ========================================================================== */

/* ========================================================================
   BS Breadcrumb
 ========================================================================== */

/* ========================================================================
   BS Pagination
 ========================================================================== */

/* ========================================================================
   BS Babge
 ========================================================================== */

/* ========================================================================
   BS Allert
 ========================================================================== */

/* ========================================================================
   BS Progress
 ========================================================================== */

/* ========================================================================
   BS List group
 ========================================================================== */

/* ========================================================================
   BS Close
 ========================================================================== */

/* ========================================================================
   BS Toast
 ========================================================================== */

/* ========================================================================
   BS Modal
 ========================================================================== */

/* ========================================================================
   BS Tooltip
 ========================================================================== */

/* ========================================================================
   BS Popover
 ========================================================================== */

/* ========================================================================
   BS Carousel
 ========================================================================== */

/* ========================================================================
   BS Spinner
 ========================================================================== */

/* ========================================================================
   BS Off-canvas
 ========================================================================== */

/* ========================================================================
   Theme Icon button
 ========================================================================== */

.tm-icon-btn {
  display: inline-block;
  padding: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bs-body-color);
  text-decoration: none;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  border: 0;
  background-color: transparent;
  transition:
    color 0.15s ease-in-out,
    background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}

.tm-icon-btn:hover {
  color: var(--bs-primary);
}

/* ========================================================================
   Theme Layout
 ========================================================================== */

.tm-layout {
  height: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: row;
}

.tm-layout-header,
.tm-layout-footer {
  position: relative;
}

.tm-layout-body {
  position: relative;
  flex-grow: 1;
  overflow-y: auto;
}

.tm-layout-body > .list-group {
  --bs-list-group-item-padding-x: 1rem;
  --bs-list-group-item-padding-y: 1rem;
}

@media (min-width: 1200px) {
  .tm-layout-body > .list-group {
    --bs-list-group-item-padding-x: 1.5rem;
    --bs-list-group-item-padding-y: 1rem;
  }
}

/* ========================================================================
   Theme Sidebar
 ========================================================================== */

.tm-sidebar.offcanvas-xl {
  display: flex;
  flex-direction: column;
  height: 100%;
}

@media (min-width: 1200px) {
  .tm-sidebar.offcanvas-xl {
    width: 4rem;
    background-color: var(--bs-dark) !important;
  }
}

.tm-sidebar .nav-link {
  padding: 0.5rem 0.5rem;
  position: relative;
  font-size: 1.25rem;
  color: var(--bs-heading-color);
}

@media (min-width: 1200px) {
  .tm-sidebar .nav-link {
    padding: 0;
    margin: 0.25rem 0;
    font-size: 1.25rem;
    color: var(--bs-light);
    height: 3rem;
    width: 4rem;
    line-height: 3rem;
    text-align: center;
  }
}

@media (min-width: 1200px) {
  .tm-sidebar .nav-link:hover {
    color: var(--bs-primary);
  }
}

.tm-sidebar .nav-link.active,
.tm-sidebar .nav-link.show {
  color: var(--bs-primary);
}

@media (min-width: 1200px) {
  .tm-sidebar .nav-link.active::before {
    content: "";
    display: block;
    height: 3rem;
    width: 3rem;
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
  }
}

@media (min-width: 1200px) {
  .tm-sidebar .nav-link.show::before {
    content: "";
    display: block;
    height: 3rem;
    width: 3.5rem;
    position: absolute;
    top: 50%;
    right: 0;
    left: auto;
    border-radius: 0.5rem 0 0 0.5rem;
    border-right: 0.5rem var(--bs-border-style) var(--bs-border-color);
    background-color: var(--bs-body-bg);
    transform: translate(0, -50%);
  }
}

@media (min-width: 1200px) {
  .tm-sidebar .nav-link i {
    position: relative;
    z-index: 1;
  }
}

.tm-sidebar .dropend .dropdown-menu {
  position: static;
  width: 100%;
  padding: 1rem 0;
  margin: 0;
  border: 0;
  border-radius: var(--bs-dropdown-border-radius);
  background-color: rgba(0, 0, 0, 0.05);
}

@media (min-width: 1200px) {
  .tm-sidebar .dropend .dropdown-menu {
    position: fixed;
    top: 0;
    right: auto;
    left: 4rem;
    bottom: 0;
    width: calc(25% - 4rem);
    padding: 0 0 1rem 0;
    border-right: var(--bs-border-width) var(--bs-border-style)
      var(--bs-border-color);
    border-radius: 0;
    overflow-y: auto;
    background-color: var(--bs-body-bg);
    box-shadow: var(--bs-box-shadow-sm) !important;
  }
}

@media (max-width: 1199.98px) {
  .tm-sidebar .dropend .nav-link.active + .dropdown-menu {
    display: block;
  }
}

.tm-sidebar .tm-sidebar-header {
  display: block;
  margin-bottom: 0;
  height: 4rem;
  font-size: 1.25rem;
  line-height: 4rem;
  padding: 0 0.75rem;
  color: var(--bs-heading-color);
  white-space: nowrap;
}

@media (min-width: 1200px) {
  .tm-sidebar .tm-sidebar-header {
    padding: 0 1.5rem;
  }
}

.tm-sidebar .dropdown-header,
.tm-sidebar .dropdown-item {
  padding: 0.4rem 0.75rem;
  font-size: 1.1rem;
}

@media (min-width: 1200px) {
  .tm-sidebar .dropdown-header,
  .tm-sidebar .dropdown-item {
    padding: 0.4rem 1.5rem;
  }
}

.tm-logo {
  display: block;
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  overflow: hidden;
  margin: 0.25rem 0.5rem 0.25rem 0.5rem;
}

/* ========================================================================
   Theme Filter
 ========================================================================== */

.tm-filter.offcanvas-xl {
  display: flex;
  flex-direction: column;
  height: 100%;
}

@media (min-width: 1200px) {
  .tm-filter.offcanvas-xl {
    width: calc(25% - 4rem);
    border-right: var(--bs-border-width) var(--bs-border-style)
      var(--bs-border-color);
  }
}

/* ========================================================================
   Theme List
 ========================================================================== */

.tm-list {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
}

/* ========================================================================
   Theme Content
 ========================================================================== */

.tm-content {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.tm-content > .modal-dialog {
  height: 100%;
  max-width: 100%;
  margin: 0;
}

.tm-content.fade > .modal-dialog {
  transition: transform 0.3s ease-out;
  transform: translate(50px, 0);
}

.tm-content.show > .modal-dialog {
  transform: none;
}

.tm-content.modal-static > .modal-dialog {
  transform: scale(1.02);
}

@media (min-width: 1200px) {
  .tm-content > .modal-dialog {
    height: calc(100% - 1rem);
    max-width: calc(50% - 1rem);
    margin: 0.5rem;
    margin-left: auto;
  }

  .tm-content > .modal-dialog.modal-sm {
    max-width: calc(25% - 1rem);
  }

  .tm-content > .modal-dialog.modal-lg {
    max-width: calc(75% - 1rem);
  }

  .tm-content > .modal-dialog.modal-xl {
    max-width: calc(100% - 5rem);
  }
}

.tm-content > .modal-dialog > .modal-content {
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

@media (max-width: 1199.98px) {
  .tm-content > .modal-dialog > .modal-content {
    border: 0;
    border-radius: 0;
  }
}

.tm-content > .modal-dialog > .modal-content > .modal-body {
  overflow-y: auto;
  padding: 0;
}

.tm-content-page {
  display: flex;
  height: 100%;
  flex-direction: row;
}

.tm-content-page-main {
  display: flex;
  height: 100%;
  flex: 1;
  flex-direction: column;
}

.tm-content-page-right.offcanvas-xl {
  width: 100%;
  display: flex;
  height: 100%;
  flex-direction: column;
}

@media (min-width: 1200px) {
  .tm-content-page-right.offcanvas-xl {
    width: 33.333333%;
    border-left: var(--bs-border-width) var(--bs-border-style)
      var(--bs-border-color);
  }
}

/* ========================================================================
   Theme Dropzone
 ========================================================================== */
.dmxDropzone:not(.form-control) {
  background-color: transparent !important;
  border-color: var(--bs-border-color) !important;
}

.dmxDropzoneThumb:hover::before {
  background-color: rgba(207, 63, 63, 0.8);
  content: "Удалить";
}

/* ========================================================================
   Theme Tagify
 ========================================================================== */

.tm-theme .tagify {
  display: flex;
  width: 100%;
  background-color: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  padding: 0 0.25rem 0.25rem 0;
  line-height: 0;
  position: relative;
  border-radius: var(--bs-border-radius);
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}

@keyframes tags--bump {
  30% {
    transform: scale(1.2);
  }
}

@keyframes rotateLoader {
  to {
    transform: rotate(1turn);
  }
}

.tm-theme .tagify:hover:not(.tagify--focus):not(.tagify--invalid) {
  border: 1px solid var(--bs-border-color);
}

.tm-theme .tagify[disabled] {
  background: var(--bs-secondary-bg);
  opacity: 1;
}

.tm-theme
  .tagify[disabled]:not(.tagify--mix):not(.tagify--select)
  > .tagify__input,
.tm-theme
  .tagify[readonly]:not(.tagify--mix):not(.tagify--select)
  > .tagify__input {
  visibility: hidden;
  width: 0;
  margin: 0.25rem 0 0 0.25rem;
}

.tm-theme
  .tagify[disabled]:not(.tagify--mix):not(.tagify--select)
  .tagify__tag
  > div,
.tm-theme
  .tagify[readonly]:not(.tagify--mix):not(.tagify--select)
  .tagify__tag
  > div {
  padding: 0.3rem 0.5rem;
}

.tm-theme
  .tagify[disabled]:not(.tagify--mix):not(.tagify--select)
  .tagify__tag
  > div::before,
.tm-theme
  .tagify[readonly]:not(.tagify--mix):not(.tagify--select)
  .tagify__tag
  > div::before {
  animation: readonlyStyles 1s calc(-1s * (1 - 1)) paused;
}

@keyframes readonlyStyles {
  0% {
    background: linear-gradient(
        45deg,
        var(--bs-secondary-bg) 25%,
        transparent 25%,
        transparent 50%,
        var(--bs-secondary-bg) 50%,
        var(--bs-secondary-bg) 75%,
        transparent 75%,
        transparent
      )
      0/5px 5px;
    box-shadow: none;
    filter: brightness(0.95);
  }
}

.tm-theme .tagify[disabled] .tagify__tag__removeBtn,
.tm-theme .tagify[readonly] .tagify__tag__removeBtn {
  display: none;
}

.tm-theme .tagify--loading .tagify__input > br:last-child {
  display: none;
}

.tm-theme .tagify--loading .tagify__input::before {
  content: none;
}

.tm-theme .tagify--loading .tagify__input::after {
  content: "" !important;
  position: absolute;
  left: 5px;
  top: 50%;
  bottom: auto;
  vertical-align: middle;
  opacity: 1;
  width: 1rem;
  height: 1rem;
  min-width: 0;
  border: 3px solid;
  border-color: #eee #bbb #888 transparent;
  border-radius: 50%;
  animation: rotateLoader 0.4s infinite linear;
  margin: -0.5rem 0 0 0;
}

.tm-theme .tagify--loading .tagify__input:empty::after {
  margin-left: 0;
}

.tm-theme .tagify + input,
.tm-theme .tagify + textarea {
  position: absolute !important;
  left: -9999em !important;
  transform: scale(0) !important;
}

.tm-theme .tagify__tag {
  display: inline-flex;
  align-items: center;
  margin: 0.25rem 0 0 0.25rem;
  position: relative;
  z-index: 1;
  line-height: normal;
  cursor: default;
  transition: 0.13s ease-out;
}

.tm-theme .tagify__tag > div {
  vertical-align: top;
  box-sizing: border-box;
  max-width: 100%;
  padding: 0.3rem 0.5rem;
  color: var(--bs-body-color);
  line-height: inherit;
  border-radius: var(--bs-border-radius);
  white-space: nowrap;
  transition: 0.13s ease-out;
}

.tm-theme .tagify__tag.tm-tag-blue > div {
  color: var(--bs-white);
}

.tm-theme .tagify__tag.tm-tag-indigo > div {
  color: var(--bs-white);
}

.tm-theme .tagify__tag.tm-tag-purple > div {
  color: var(--bs-white);
}

.tm-theme .tagify__tag.tm-tag-pink > div {
  color: var(--bs-white);
}

.tm-theme .tagify__tag.tm-tag-red > div {
  color: var(--bs-white);
}

.tm-theme .tagify__tag.tm-tag-yellow > div {
  color: var(--bs-black);
}

.tm-theme .tagify__tag.tm-tag-teal > div {
  color: var(--bs-white);
}

.tm-theme .tagify__tag.tm-tag-cyan > div {
  color: var(--bs-white);
}

.tm-theme .tagify__tag.tm-tag-black > div {
  color: var(--bs-white);
}

.tm-theme .tagify__tag.tm-tag-gray > div {
  color: var(--bs-white);
}

.tm-theme .tagify__tag:focus > div,
.tm-theme .tagify__tag:hover:not([readonly]) > div {
  color: var(--bs-body-color);
}

.tm-theme .tagify__tag > div > * {
  white-space: pre-wrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: top;
  min-width: 1rem;
  max-width: 100%;
  transition:
    0.8s ease,
    0.1s color;
}

.tm-theme .tagify__tag > div > [contenteditable] {
  outline: 0;
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
  cursor: text;
  margin: -2px;
  padding: 2px;
  max-width: 350px;
}

.tm-theme .tagify__tag > div::before {
  content: "";
  position: absolute;
  border-radius: inherit;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  transition: 120ms ease;
  animation: tags--bump 0.3s ease-out 1;
  box-shadow: 0 0 0 10rem var(--bs-secondary-bg) inset;
}

.tm-theme .tagify__tag.tm-tag-blue > div::before {
  box-shadow: 0 0 0 10rem var(--bs-blue) inset;
}

.tm-theme .tagify__tag.tm-tag-indigo > div::before {
  box-shadow: 0 0 0 10rem var(--bs-indigo) inset;
}

.tm-theme .tagify__tag.tm-tag-purple > div::before {
  box-shadow: 0 0 0 10rem var(--bs-purple) inset;
}

.tm-theme .tagify__tag.tm-tag-pink > div::before {
  box-shadow: 0 0 0 10rem var(--bs-pink) inset;
}

.tm-theme .tagify__tag.tm-tag-red > div::before {
  box-shadow: 0 0 0 10rem var(--bs-red) inset;
}

.tm-theme .tagify__tag.tm-tag-yellow > div::before {
  box-shadow: 0 0 0 10rem var(--bs-yellow) inset;
}

.tm-theme .tagify__tag.tm-tag-teal > div::before {
  box-shadow: 0 0 0 10rem var(--bs-teal) inset;
}

.tm-theme .tagify__tag.tm-tag-cyan > div::before {
  box-shadow: 0 0 0 10rem var(--bs-cyan) inset;
}

.tm-theme .tagify__tag.tm-tag-black > div::before {
  box-shadow: 0 0 0 10rem var(--bs-black) inset;
}

.tm-theme .tagify__tag.tm-tag-gray > div::before {
  box-shadow: 0 0 0 10rem var(--bs-gray) inset;
}

.tm-theme .tagify__tag:focus div::before,
.tm-theme .tagify__tag:hover:not([readonly]) div::before {
  inset: -2.5px;
  box-shadow: 0 0 0 10rem rgba(var(--bs-primary-rgb), 0.25) inset;
}

.tm-theme .tagify__tag--loading {
  pointer-events: none;
}

.tm-theme .tagify__tag--loading .tagify__tag__removeBtn {
  display: none;
}

.tm-theme .tagify__tag--loading::after {
  content: "";
  vertical-align: middle;
  opacity: 1;
  width: 0.4em;
  height: 0.4em;
  min-width: 0;
  border: 3px solid;
  border-color: #eee #bbb #888 transparent;
  border-radius: 50%;
  animation: rotateLoader 0.4s infinite linear;
  margin: 0 0.5em 0 -0.1em;
}

.tm-theme .tagify__tag--flash div::before {
  animation: none;
}

.tm-theme .tagify__tag--hide {
  width: 0 !important;
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
  opacity: 0;
  transform: scale(0);
  transition: 0.3s;
  pointer-events: none;
}

.tm-theme .tagify__tag--hide > div > * {
  white-space: nowrap;
}

.tm-theme .tagify__tag.tagify--noAnim > div::before {
  animation: none;
}

.tm-theme
  .tagify__tag.tagify--notAllowed:not(.tagify__tag--editable)
  div
  > span {
  opacity: 0.5;
}

.tm-theme
  .tagify__tag.tagify--notAllowed:not(.tagify__tag--editable)
  div::before {
  background-color: rgba(211, 148, 148, 0.5);
  transition: 0.2s;
}

.tm-theme .tagify__tag[readonly] .tagify__tag__removeBtn {
  display: none;
}

.tm-theme .tagify__tag[readonly] > div::before {
  animation: readonlyStyles 1s 0 paused;
}

@keyframes readonlyStyles {
  0% {
    background: linear-gradient(
        45deg,
        var(--bs-secondary-bg) 25%,
        transparent 25%,
        transparent 50%,
        var(--bs-secondary-bg) 50%,
        var(--bs-secondary-bg) 75%,
        transparent 75%,
        transparent
      )
      0/5px 5px;
    box-shadow: none;
    filter: brightness(0.95);
  }
}

.tm-theme .tagify__tag--editable > div {
  color: var(--bs-body-color);
}

.tm-theme .tagify__tag--editable > div::before {
  box-shadow: 0 0 0 2px #d3e2e2 inset !important;
}

.tm-theme .tagify__tag--editable > .tagify__tag__removeBtn {
  pointer-events: none;
}

.tm-theme .tagify__tag--editable > .tagify__tag__removeBtn::after {
  opacity: 0;
  transform: translateX(100%) translateX(5px);
}

.tm-theme .tagify__tag--editable.tagify--invalid > div::before {
  box-shadow: 0 0 0 2px var(--bs-danger) inset !important;
}

.tm-theme .tagify__tag__removeBtn {
  order: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  cursor: pointer;
  font: 1rem bootstrap-icons !important;
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  width: 1.2rem;
  height: 1.2rem;
  margin-right: 5px;
  margin-left: auto;
  overflow: hidden;
  transition: 0.2s ease-out;
  opacity: 0.5;
}

.tm-theme .tagify__tag__removeBtn::after {
  content: "\F62A";
  transition:
    0.3s,
    color 0s;
}

.tm-theme .tagify__tag__removeBtn:hover {
  color: #fff;
  background: var(--bs-danger);
  opacity: 1;
}

.tm-theme .tagify__tag__removeBtn:hover + div > span {
  opacity: 1;
}

.tm-theme .tagify__tag__removeBtn:hover + div::before {
  box-shadow: 0 0 0 10rem rgba(var(--bs-danger-rgb), 0.25) inset !important;
  transition: box-shadow 0.2s;
}

.tm-theme .tagify:not(.tagify--mix) .tagify__input br {
  display: none;
}

.tm-theme .tagify:not(.tagify--mix) .tagify__input * {
  display: inline;
  white-space: nowrap;
}

.tm-theme .tagify__input {
  flex-grow: 1;
  display: inline-block;
  min-width: 3rem;
  margin: 0.25rem 0 0 0.25rem;
  padding: 0.125rem 0.5rem;
  line-height: 1.5rem;
  position: relative;
  white-space: pre-wrap;
  color: var(--bs-body-color);
  box-sizing: inherit;
}

.tm-theme .tagify__input:empty::before {
  position: static;
}

.tm-theme .tagify__input:focus {
  outline: 0;
}

.tm-theme .tagify__input:focus::before {
  transition: 0.2s ease-out;
  opacity: 0;
  transform: translatex(6px);
}

@supports (-ms-ime-align: auto) {
  .tm-theme .tagify__input:focus::before {
    display: none;
  }
}

.tm-theme .tagify__input:focus:empty::before {
  transition: 0.2s ease-out;
  opacity: 1;
  transform: none;
  color: var(--bs-secondary-color);
}

@-moz-document url-prefix() {
  .tm-theme .tagify__input:focus:empty::after {
    display: none;
  }
}

.tm-theme .tagify__input::before {
  content: attr(data-placeholder);
  height: 1.5rem;
  line-height: 1.5;
  margin: auto 0;
  z-index: 1;
  color: var(--bs-secondary-color);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  position: absolute;
}

.tm-theme .tagify__input::after {
  content: attr(data-suggest);
  display: inline-block;
  vertical-align: middle;
  position: absolute;
  min-width: calc(100% - 1.5em);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: pre;
  color: var(--bs-body-color);
  opacity: 0.3;
  pointer-events: none;
  max-width: 100px;
}

.tm-theme .tagify__input .tagify__tag {
  margin: 0 1px;
}

.tm-theme .tagify--mix {
  display: block;
  padding: 0;
}

.tm-theme .tagify--mix .tagify__input {
  padding: 0.375rem 0.375rem;
  margin: 0;
  width: 100%;
  height: 100%;
  line-height: 1.5;
  display: block;
}

.tm-theme .tagify--mix .tagify__input::before {
  height: auto;
  display: none;
  line-height: inherit;
}

.tm-theme .tagify--mix .tagify__input::after {
  content: none;
}

.tm-theme .tagify--select {
  padding: 0;
}

.tm-theme .tagify--select::after {
  content: "\f282";
  opacity: 0.5;
  position: absolute;
  top: 50%;
  right: 5px;
  bottom: auto;
  font: 0.85rem bootstrap-icons !important;
  line-height: 0.85rem;
  height: 0.85rem;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: 0.2s ease-in-out;
}

.tm-theme .tagify--select[aria-expanded="true"]::after {
  transform: translate(-50%, -50%) rotate(180deg);
}

.tm-theme .tagify--select .tagify__tag {
  position: absolute;
  top: 0;
  right: 2rem;
  bottom: 0;
  margin: 0;
}

.tm-theme .tagify--select .tagify__tag div {
  display: none;
}

.tm-theme .tagify--select .tagify__input {
  width: 100%;
  margin: 0;
  padding: 0.375rem 3.75rem 0.375rem 0.75rem;
  line-height: 1.5;
}

.tm-theme .tagify--empty .tagify__input::before {
  transition: 0.2s ease-out;
  opacity: 1;
  transform: none;
  display: inline-block;
  width: auto;
}

.tm-theme .tagify--mix .tagify--empty .tagify__input::before {
  display: inline-block;
}

.tm-theme .tagify--focus {
  border: 1px solid #b897fa;
  box-shadow: 0 0 0 0.25rem rgba(112, 47, 244, 0.25);
}

.tm-theme .tagify--invalid {
  border: 1px solid #cf3f3f;
  box-shadow: 0 0 0 0.25rem rgba(207, 63, 63, 0.25);
}

.tm-theme .tagify__dropdown {
  position: absolute;
  z-index: 9999;
  transform: translateY(1px);
  overflow: hidden;
}

.tm-theme .tagify__dropdown[placement="top"] {
  margin-top: 0;
  transform: translateY(-100%);
}

.tm-theme .tagify__dropdown[position="text"] {
  box-shadow: 0 0 0 3px rgba(var(--tagify-dd-color-primary), 0.1);
  font-size: 1rem;
}

.tm-theme .tagify__dropdown__wrapper {
  max-height: 300px;
  overflow: auto;
  overflow-x: hidden;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  box-shadow: 0 2px 4px -2px rgba(0, 0, 0, 0.2);
  transition: 0.25s cubic-bezier(0, 1, 0.5, 1);
}

.tm-theme .tagify__dropdown__header:empty {
  display: none;
}

.tm-theme .tagify__dropdown__footer {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.3rem 0.5rem;
  font-size: 0.7rem;
  font-style: italic;
  opacity: 0.5;
}

.tm-theme .tagify__dropdown__footer:empty {
  display: none;
}

.tm-theme .tagify__dropdown--initial .tagify__dropdown__wrapper {
  max-height: 20px;
  transform: translateY(-1em);
}

.tm-theme
  .tagify__dropdown--initial[placement="top"]
  .tagify__dropdown__wrapper {
  transform: translateY(2em);
}

.tm-theme .tagify__dropdown__item {
  box-sizing: border-box;
  padding: 0.3rem 0.5rem;
  margin: 1px;
  cursor: pointer;
  border-radius: 2px;
  position: relative;
  outline: 0;
  max-height: 120px;
  max-width: 100%;
}

.tm-theme .tagify__dropdown__item--active {
  background: var(--bs-secondary-bg);
  color: var(--bs-body-color);
}

.tm-theme .tagify__dropdown__item--hidden {
  padding-top: 0;
  padding-bottom: 0;
  margin: 0 1px;
  pointer-events: none;
  overflow: hidden;
  max-height: 0;
  transition: 0.3s !important;
}

.tm-theme .tagify__dropdown__item--hidden > * {
  transform: translateY(-100%);
  opacity: 0;
  transition: inherit;
}

/* ========================================================================
   Theme Summernote
 ========================================================================== */

.tm-summernote.h-100 > .card {
  height: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.tm-summernote.h-100 .note-editor .note-toolbar {
  display: flex;
  min-height: 4rem;
  margin: 0;
  padding: 0.25rem 0.75rem;
  background: var(--bs-body-bg);
  border: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 1200px) {
  .tm-summernote.h-100 .note-editor .note-toolbar {
    padding: 0.25rem 1.5rem;
  }
}

.tm-summernote.h-100 .note-editor .note-toolbar > .note-btn-group {
  margin: 0;
}

.tm-summernote.h-100 .note-editor .note-editing-area {
  flex-grow: 1 !important;
}

.tm-summernote.h-100 .note-editor.note-airframe .note-placeholder,
.tm-summernote.h-100 .note-editor.note-frame .note-placeholder {
  padding: 1.5rem 0.75rem;
}

@media (min-width: 1200px) {
  .tm-summernote.h-100 .note-editor.note-airframe .note-placeholder,
  .tm-summernote.h-100 .note-editor.note-frame .note-placeholder {
    padding: 1.5rem 1.5rem;
  }
}

.tm-summernote.h-100
  .note-editor.note-airframe
  .note-editing-area
  .note-codable,
.tm-summernote.h-100 .note-editor.note-frame .note-editing-area .note-codable,
.tm-summernote.h-100
  .note-editor.note-airframe
  .note-editing-area
  .note-editable,
.tm-summernote.h-100 .note-editor.note-frame .note-editing-area .note-editable {
  height: 100% !important;
  border-radius: 0 !important;
  padding: 1.5rem 0.75rem;
}

@media (min-width: 1200px) {
  .tm-summernote.h-100
    .note-editor.note-airframe
    .note-editing-area
    .note-codable,
  .tm-summernote.h-100 .note-editor.note-frame .note-editing-area .note-codable,
  .tm-summernote.h-100
    .note-editor.note-airframe
    .note-editing-area
    .note-editable,
  .tm-summernote.h-100
    .note-editor.note-frame
    .note-editing-area
    .note-editable {
    padding: 1.5rem 1.5rem;
  }
}

.tm-summernote.h-100 .note-statusbar {
  display: none;
}

.tm-summernote .note-file-clip {
  max-width: 100% !important;
}

.tm-summernote .note-popover.popover {
  position: absolute;
}

.tm-summernote .bs-popover-bottom > .popover-arrow,
.tm-summernote
  .bs-popover-auto[data-popper-placement^="bottom"]
  > .popover-arrow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.tm-summernote .popover-body {
  padding: 5px 5px 10px 10px;
}

.tm-summernote .popover-body > .btn-group {
  margin: 5px 5px 0 0;
}
