.text-hover-underline:hover {
  text-decoration: underline;
}

.nice-wrap {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.word-break {
  word-break: break-all !important;
}

.img-cover {
  width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Tables */

.dataTables_wrapper {
  padding-bottom: 1.25rem !important;
}

body table.dataTable {
  margin-bottom: 0;
}

.table-striped tbody tr:nth-of-type(odd) td.freeze-start,
.table-striped tbody tr:nth-of-type(odd) td.freeze-end {
  background: rgba(var(--bs-gray-100-rgb), 1);
}

.table-striped tbody tr:nth-of-type(even) td.freeze-start,
.table-striped tbody tr:nth-of-type(even) td.freeze-end {
  background: rgba(var(--bs-body-bg-rgb), 1);
}

th.freeze-start,
th.freeze-end {
  background: var(--bs-body-bg) !important;
}

td.freeze-start,
td.freeze-end {
  background: var(--bs-body-bg) !important;
}

th.freeze-start,
td.freeze-start {
  position: sticky !important;
  top: 0;
  left: var(--freeze-offset, 0px) !important;
  z-index: 1;
}

th.freeze-end,
td.freeze-end {
  position: sticky !important;
  top: 0;
  right: var(--freeze-offset, 0px) !important;
  z-index: 1;
}

.table-scroll-top {
  overflow-x: auto;
  white-space: nowrap;
  width: 100%;
  height: 11px;
}

.table-scroll-top div {
  height: 1px;
}

/* Buttons and Inputs */

.btn-sm,
.btn-group-sm>.btn {
  padding: 0.6rem 0.7rem;
}

.form-check .form-check-input {
  cursor: pointer;
}

.custom-select {
  background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%233b4863' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right 0.75rem center/8px 10px;
  background-color: rgba(0, 0, 0, 0);
}

.input-file-container.drag-over {
  background-color: var(--bs-primary-light);
  border-color: var(--bs-primary) !important;
}

.parsley-error {
  border-color: #ec4561 !important;
}

.dd-item>button {
  margin: 13px 0;
}

.dd3-handle:before {
  top: 16px;
}

.list-notification .notification-item .media {
  border-bottom: 1px solid #eee;
}

.list-notification .notification-item:last-child .media {
  border-bottom: 0 solid #eee;
}

/* Cards */

@media (max-width: 767.98px) {
  .panel-grid .card .card-header {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    padding-right: 1.5rem !important;
    padding-left: 1.5rem !important;
  }

  .panel-grid .collapse .card-body {
    padding: 1.5rem !important;
  }
}

.card .card-footer {
  border-bottom-right-radius: 0.25rem;
  border-bottom-left-radius: 0.25rem;
}

@media (max-width: 576px) {
  .modal-dialog {
    margin: 0;
    height: auto;
    max-width: 100%;
    position: unset !important;
  }

  .modal-dialog.modal-fullscreen {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
  }

  .modal-content {
    border-radius: 1rem 1rem 0 0;
    position: absolute;
    bottom: 0;
    width: 100%;
    animation: slideUp 0.3s ease-out;
  }

  .modal-dialog.modal-fullscreen .modal-content {
    border-radius: 0 !important;
    position: relative;
    height: 100%;
    bottom: unset;
    animation: none;
  }

  @keyframes slideUp {
    from {
      transform: translateY(100%);
    }

    to {
      transform: translateY(0);
    }
  }
}

.menu-sub-indention .menu-item .menu-item .menu-link.active {
  margin-right: unset !important;
}

.parsley-errors-list {
  list-style: none;
  padding: 0;
  margin: 5px 0 0 0;
}

.parsley-errors-list li {
  color: #f1416c;
  font-size: .95rem;
  font-weight: 500;
}

input.parsley-error,
textarea.parsley-error,
select.parsley-error {
  border-color: #f1416c !important;
}

.highlight {
  color: #9efeff !important;
}

.tox-tinymce-aux {
  z-index: 1000 !important;
}