.app-email {
  position: relative;
  height: calc(100vh - 12rem) !important;
  overflow: hidden;
}
@media (max-width: 767.98px) {
  .app-email {
    height: calc(100vh - 11rem) !important;
  }
}
.layout-navbar-hidden .app-email {
  height: calc(100vh - 8.5rem) !important;
}
.layout-horizontal .app-email {
  height: calc(100vh - 12rem + 0.7518796992rem) !important;
}
@media (min-width: 1200px) {
  .layout-horizontal .app-email {
    height: calc(100vh - 12rem - 2rem) !important;
  }
}
.app-email .app-email-sidebar {
  position: absolute;
  left: calc(-16.25rem - 1.2rem);
  width: 16.25rem;
  height: 100%;
  z-index: 4;
  flex-basis: 16.25rem;
  transition: all 0.2s;
}
.app-email .app-email-sidebar .btn-compost-wrapper {
  padding: 1.5rem;
}
.app-email .app-email-sidebar.show {
  left: 0;
}
.app-email .app-email-sidebar .email-filters {
  height: calc(100vh - 16.6rem);
}
.layout-navbar-hidden .app-email .app-email-sidebar .email-filters {
  height: calc(100vh - 12.6rem);
}
.layout-horizontal .app-email .app-email-sidebar .email-filters {
  height: calc(100vh - 15.6rem);
}
@media (min-width: 1200px) {
  .layout-horizontal .app-email .app-email-sidebar .email-filters {
    height: calc(100vh - 16.6rem - 2rem);
  }
}
.app-email .app-email-sidebar .email-filters .email-filter-folders li:first-child {
  margin-top: 0;
}
.app-email .app-email-sidebar .email-filters .email-filter-folders li:last-child {
  margin-bottom: 0;
}
.app-email .app-email-sidebar .email-filters .email-filter-folders li.active {
  border-color: #7367f0;
}
.app-email .app-email-sidebar .email-filters li {
  padding: 0.375rem 1.5rem;
  padding-inline-start: calc(1.5rem - 3px);
  border-left: 3px solid transparent;
}
.app-email .app-email-sidebar .email-filters li h6 {
  font-size: 1rem;
}
.app-email .app-email-sidebar .email-filter-labels .badge-dot {
  width: 11px;
  height: 11px;
}
.app-email .app-email-compose .modal-dialog {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100%;
}
.app-email .app-email-compose .email-compose-to .select2-selection {
  border: none;
  padding-inline: calc(0.9375rem - var(--bs-border-width));
}
.app-email .app-email-compose .email-compose-to .select2-selection .select2-selection__choice {
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  display: flex;
  align-items: center;
  line-height: 0;
}
.app-email .app-email-compose .email-compose-to .select2-selection__choice__remove {
  top: unset;
}
.app-email .app-email-compose .email-compose-to .select2-container--default.select2-container--focus .select2-search--inline .select2-search__field {
  margin-top: 6px;
}
.app-email .app-email-compose .email-compose-toggle-wrapper {
  width: 80px;
}
.app-email .app-email-compose .ql-editor {
  height: 10rem;
  min-height: 10rem;
  padding-inline: 1.75rem;
}
.app-email .app-email-compose .ql-snow.ql-toolbar {
  padding: 0.5rem 1rem;
}
.app-email .app-email-compose .ql-editor.ql-blank {
  padding-inline: 1.5rem;
}
.app-email .app-email-compose .ql-editor.ql-blank::before {
  padding-left: 1.5rem;
}
.app-email .app-emails-list .emails-list-header .emails-list-header-hr {
  margin-top: 0rem;
}
@media (min-width: 992px) {
  .app-email .app-emails-list .email-list {
    height: calc(100vh - 19rem);
  }
}
@media (max-width: 991.98px) {
  .app-email .app-emails-list .email-list {
    height: calc(100vh - 19rem);
  }
}
@media (max-width: 767.98px) {
  .app-email .app-emails-list .email-list {
    height: calc(100vh - 18rem);
  }
}
@media (min-width: 992px) {
  .layout-navbar-hidden .app-email .app-emails-list .email-list {
    height: calc(100vh - 15.5rem);
  }
}
@media (max-width: 991.98px) {
  .layout-navbar-hidden .app-email .app-emails-list .email-list {
    height: calc(100vh - 15.5rem);
  }
}
.layout-horizontal .app-email .app-emails-list .email-list {
  height: calc(100vh - 18.2rem);
}
@media (min-width: 992px) {
  .layout-horizontal .app-email .app-emails-list .email-list {
    height: calc(100vh - 17.75rem);
  }
}
@media (min-width: 1200px) {
  .layout-horizontal .app-email .app-emails-list .email-list {
    height: calc(100vh - 18.75rem - 2rem) !important;
  }
}
.app-email .app-emails-list .email-list li.email-list-item {
  padding: 0.875rem 1rem;
  min-height: 4.375rem;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  z-index: 1;
}
.app-email .app-emails-list .email-list li.email-list-item .email-list-item-username {
  font-weight: 500;
}
.app-email .app-emails-list .email-list li.email-list-item .email-list-item-time {
  width: 60px;
  display: inline-block;
  text-align: right;
}
.app-email .app-emails-list .email-list li.email-list-item .email-list-item-meta .email-list-item-actions {
  display: none;
}
.app-email .app-emails-list .email-list li.email-list-item .email-list-item-meta .email-list-item-actions li {
  padding: 0;
}
.app-email .app-emails-list .email-list li.email-list-item .list-inline-item:not(:last-child) {
  margin-inline-end: 0.25rem;
}
.app-email .app-emails-list .email-list li.email-list-item.email-list-item:not(.list-inline-item):hover {
  z-index: 5;
  transform: translateY(-2px);
}
.app-email .app-email-view {
  position: absolute;
  top: 0;
  right: -100%;
  width: 100%;
  height: calc(100vh - 12rem);
  z-index: -1;
  transition: all 0.25s ease;
}
@media (max-width: 767.98px) {
  .app-email .app-email-view {
    height: calc(100vh - 12rem + 2rem);
  }
}
.layout-navbar-hidden .app-email .app-email-view {
  height: calc(100vh - 8.5rem);
}
.layout-horizontal .app-email .app-email-view {
  height: calc(100vh - 12rem + 1rem);
}
@media (min-width: 992px) {
  .layout-horizontal .app-email .app-email-view {
    height: calc(100vh - 12rem + 1rem);
  }
}
@media (min-width: 1200px) {
  .layout-horizontal .app-email .app-email-view {
    height: calc(100vh - 12rem - 2rem) !important;
  }
}
.app-email .app-email-view.show {
  right: -1px;
  z-index: 4;
}
.app-email .app-email-view .app-email-view-header {
  padding-bottom: 1.3rem;
}
@media (min-width: 768px) {
  .app-email .app-email-view .app-email-view-content {
    height: calc(100vh - 19.6rem);
  }
}
@media (max-width: 767.98px) {
  .app-email .app-email-view .app-email-view-content {
    height: calc(100vh - 17.65rem);
  }
}
.layout-horizontal .app-email .app-email-view .app-email-view-content {
  height: calc(100vh - 18rem);
}
@media (min-width: 1200px) {
  .layout-horizontal .app-email .app-email-view .app-email-view-content {
    height: calc(100vh - 19.2rem - 2rem) !important;
  }
}
.app-email .app-email-view .app-email-view-content .ql-container {
  border: 0;
}
.app-email .app-email-view .app-email-view-content .ql-container .ql-editor {
  height: 7rem;
  min-height: 7rem;
}
.app-email .app-email-view .app-email-view-content .ql-editor,
.app-email .app-email-view .app-email-view-content .ql-editor.ql-blank::before {
  padding-left: 0.5rem;
}
.app-email .app-email-view .app-email-view-content .email-card-prev {
  display: none;
}
.app-email .app-email-view .app-email-view-content .email-card-last {
  transition: all 0.25s ease-in-out;
}
.app-email .app-email-view .app-email-view-content .email-card-last:before {
  position: absolute;
  bottom: 1rem;
  left: 2.5rem;
  right: 2.5rem;
  top: -2rem;
  border-radius: 0.375rem;
  z-index: -1;
  content: "";
}
.app-email .app-email-view .app-email-view-content .email-card-last:after {
  position: absolute;
  bottom: 0.5rem;
  left: 1rem;
  right: 1rem;
  top: -1rem;
  border-radius: 0.375rem;
  z-index: -1;
  content: "";
}
.app-email .app-email-view .app-email-view-content .email-card-last.hide-pseudo:before, .app-email .app-email-view .app-email-view-content .email-card-last.hide-pseudo:after {
  display: none !important;
}
.app-email .app-email-compose .email-compose-actions .email-send-btn::after {
  display: none;
}
.app-email .email-compose-form .form-control {
  padding: 0.426rem 0.9375rem;
}
@media (min-width: 1199px) {
  .app-email .email-list li .email-list-item-meta {
    margin-right: 0.45rem;
  }
}
@media (min-width: 992px) {
  .app-email .app-email-sidebar {
    position: static;
    height: auto;
  }
  .app-email .email-list li.email-list-item:hover .email-list-item-meta .email-list-item-attachment,
  .app-email .email-list li.email-list-item:hover .email-list-item-meta .email-list-item-time,
  .app-email .email-list li.email-list-item:hover .email-list-item-meta .email-list-item-label {
    display: none !important;
  }
  .app-email .email-list li.email-list-item:hover .email-list-item-meta .email-list-item-actions {
    display: block;
  }
  .app-email .app-email-view {
    width: calc(100% - 16.2rem);
  }
}
@media (max-width: 576px) {
  .app-email .app-emails-list .emails-list-header {
    padding: 1rem;
  }
  .app-email .app-emails-list .email-list li.email-list-item {
    padding: 1rem;
  }
  .app-email .app-emails-list .email-list li.email-list-item .email-list-item-username {
    font-size: 0.85rem;
  }
  .app-email .app-emails-list .email-list li.email-list-item .email-list-item-user {
    min-width: auto !important;
    margin-right: 1rem;
  }
  .app-email .app-email-view .email-list-item-username {
    font-size: 1rem;
  }
}

.light-style .app-email .app-email-sidebar {
  background-color: #fff;
}
.light-style .app-email .app-email-sidebar ul li:not(.active) a {
  color: #444050;
}
.light-style .app-email .email-list li.email-list-item {
  border-bottom: 1px solid #e6e6e8;
}
.light-style .app-email .email-list li.email-list-item .email-list-item-user {
  min-width: 12rem;
}
.light-style .app-email .email-list li.email-list-item.email-marked-read {
  background-color: rgba(47, 43, 61, 0.06);
}
.light-style .app-email .email-list li.email-list-item:hover {
  box-shadow: 0 0.125rem 0.5rem 0 rgba(47, 43, 61, 0.12);
  border-bottom-color: transparent;
}
.light-style .app-email .email-list li.email-list-item .email-list-item-actions li {
  box-shadow: none;
}
.light-style .app-email .email-list li.email-list-item[data-starred=true] .email-list-item-bookmark {
  color: #ff9f43;
}
.light-style .app-email .app-email-view .email-card-last {
  border: 1px solid #e6e6e8;
}
.light-style .app-email .app-email-view .email-card-last:before {
  background-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0.1875rem 0.75rem 0 rgba(47, 43, 61, 0.14);
  border: 1px solid #e6e6e8;
}
.light-style .app-email .app-email-view .email-card-last:after {
  background-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0.1875rem 0.75rem 0 rgba(47, 43, 61, 0.14);
  border: 1px solid #e6e6e8;
}
.light-style .app-email .app-email-view .email-reply {
  border: 1px solid #e6e6e8;
}
.light-style .app-email .app-email-view .email-attachment-title {
  font-weight: 500;
}
.light-style .app-email .app-email-compose .modal-dialog .modal-header {
  background-color: rgba(47, 43, 61, 0.06);
}
.light-style .app-email .app-email-compose .modal-dialog .modal-content {
  box-shadow: 0 0.3125rem 1.875rem 0 rgba(47, 43, 61, 0.18);
}

.dark-style .app-email .app-email-sidebar {
  background-color: #2f3349;
}
.dark-style .app-email .app-email-sidebar ul li:not(.active) a {
  color: #cfcde4;
}
.dark-style .app-email .emails-list-header .email-search-input,
.dark-style .app-email .emails-list-header .input-group-text {
  background-color: transparent;
}
.dark-style .app-email .email-list li.email-list-item {
  border-bottom: 1px solid #44485e;
}
.dark-style .app-email .email-list li.email-list-item.email-marked-read {
  background-color: rgba(225, 222, 245, 0.06);
}
.dark-style .app-email .email-list li.email-list-item:hover {
  box-shadow: 0 0.125rem 0.5rem 0 rgba(19, 17, 32, 0.18);
  border-bottom-color: transparent;
}
.dark-style .app-email .email-list li.email-list-item .email-list-item-actions li {
  box-shadow: none;
}
.dark-style .app-email .email-list li.email-list-item[data-starred=true] .email-list-item-bookmark {
  color: #ff9f43;
}
.dark-style .app-email .app-email-view .email-card-last {
  border: 1px solid #44485e;
}
.dark-style .app-email .app-email-view .email-card-last:before {
  background-color: rgba(47, 51, 73, 0.4);
  box-shadow: 0 0.1875rem 0.75rem 0 rgba(19, 17, 32, 0.2);
  border: 1px solid #44485e;
}
.dark-style .app-email .app-email-view .email-card-last:after {
  background-color: rgba(47, 51, 73, 0.7);
  box-shadow: 0 0.1875rem 0.75rem 0 rgba(19, 17, 32, 0.2);
  border: 1px solid #44485e;
}
.dark-style .app-email .app-email-view .email-reply {
  border: 1px solid #44485e;
}
.dark-style .app-email .app-email-view .app-email-view-header {
  background-color: #2f3349;
}
.dark-style .app-email .app-email-compose .modal-dialog .modal-header {
  background-color: rgba(225, 222, 245, 0.06);
}
.dark-style .app-email .app-email-compose .modal-dialog .modal-content {
  box-shadow: 0 0.3125rem 1.875rem 0 rgba(19, 17, 32, 0.24);
}

[dir=rtl] .app-email .app-emails-list .emails-list-header .dropdown-menu-end {
  right: auto !important;
  left: 0 !important;
}
[dir=rtl] .app-email .app-email-sidebar {
  right: calc(-16.25rem - 1.2rem);
  left: auto;
}
[dir=rtl] .app-email .app-email-sidebar.show {
  right: 0;
  left: auto;
}
[dir=rtl] .app-email .app-email-sidebar .email-filters li {
  border-left: 0;
  border-right: 3px solid transparent;
}
[dir=rtl] .app-email .app-email-compose .modal-dialog {
  left: 0;
  right: auto;
}
[dir=rtl] .app-email .app-email-view {
  right: auto;
  left: -100%;
}
[dir=rtl] .app-email .app-email-view.show {
  right: auto;
  left: -1px;
}
[dir=rtl] .app-email .app-email-view .app-email-view-header .ti-chevron-right,
[dir=rtl] .app-email .app-email-view .app-email-view-header .ti-chevron-left {
  transform: rotate(180deg);
}
@media (min-width: 1199px) {
  [dir=rtl] .email-list li .email-list-item-meta {
    text-align: left;
  }
}
@media (max-width: 576px) {
  [dir=rtl] .app-emails-list .email-list li.email-list-item .email-list-item-user {
    margin-left: 1rem;
  }
}
