/* Font Declarations */
@font-face {
  font-family: 'Segoe UI';
  src: url('../fonts/segoeuithis.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Segoe UI';
  src: url('../fonts/segoeuithibd.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Segoe UI';
  src: url('../fonts/segoeuithisi.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: 'Segoe UI';
  src: url('../fonts/segoeuithisz.ttf') format('truetype');
  font-weight: bold;
  font-style: italic;
}

:root {
  --cui-body-font-family: 'Segoe UI', sans-serif !important;
  font-family: 'Segoe UI', sans-serif !important;
  text-transform: none !important;
}

.sidebar-dark {
  --cui-body-bg: #322F4E;
}

.sidebar-nav .nav-link.active {
  --cui-sidebar-nav-link-active-bg: #983134;
  background: var(--cui-sidebar-nav-link-active-bg);
}

.sidebar-nav .nav-link:hover {
  --cui-sidebar-nav-link-hover-bg: #983134;
  background: var(--cui-sidebar-nav-link-hover-bg);
}

.row-actions {
  min-width: 150px;
  color: #ddd;
  font-size: 13px;
  padding: 2px 0 0;
  position: relative;
  /* left: -9999em; */
}

.row-actions span:not(:first-child)::before {
  content: "|";
  color: var(--cui-secondary-color);
  margin-left: 5px;
  margin-right: 5px;
  font-weight: bolder;
}

.row-actions span > a {
  text-decoration: none;
  white-space: nowrap;
}

li.page-item {
  display: none;
}

/* Display "Previous" */
.page-item:first-child {
  display: block;
}

/* Always display page 1 and page 2 */
.page-item:nth-child(2),
.page-item:nth-child(3) {
  display: block;
}

/* Display current page */
.page-item.active {
  display: block;
}

/* Display last two pages */
.page-item:nth-last-child(2),
.page-item:nth-last-child(1) {
  display: block;
}

/* Display "Next" */
.page-item:last-child {
  display: block;
}

/* Ensure "disabled" pages are shown */
.page-item.disabled {
  display: block;
}

.form-select:focus {
  box-shadow: none !important;
}

.tip-message {
  font-size: 9px;
  line-height: 1.5;
  margin: 1em 0;
}

.me-n2 {
  margin-right: -0.52rem !important;
}

.subsubsub {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  float: left;
  color: #646970;
}

.subsubsub li {
  display: inline-block;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.subsubsub a .count, .subsubsub a.current .count {
  color: var(--cui-breadcrumb-item-active-color);
  font-weight: 400;
}

.subsubsub a {
  line-height: 2;
  padding: .2em;
  text-decoration: none;
}

.subsubsub a.current {
  color: var(--cui-breadcrumb-item-active-color);
}

.submitdelete {
  color: #b32d2e;
  border: none;
}

.drag-drop #drag-drop-area {
  border: 4px dashed #c3c4c7;
  height: 200px;
}

.drag-drop .drag-drop-inside {
  margin: 60px auto 0;
  width: 250px;
}

.drag-drop .drag-drop-inside p, .drag-drop-inside p.drag-drop-buttons {
  display: block;
}

.drag-drop-inside p.drag-drop-info {
  font-size: 20px;
}

.drag-drop .drag-drop-inside p {
  text-align: center;
}

.drag-drop-inside p {
  font-size: 14px;
  margin: 5px 0;
  display: none;
}

.media-item {
  min-height: 70px;
  margin-bottom: 1px;
  position: relative;
  width: 100%;
  background: #fff;
}

.media-item .pinkynail {
  float: left;
  margin: 10px;
  max-height: 100px;
  max-width: 70px;
}

.media-item .filename {
  padding: 14px 0;
  overflow: hidden;
  margin-left: 6px;
}

.media-item .attachment-tools {
  display: flex;
  align-items: center;
}

.media-item .delete-attachment {
  padding: 14px 0;
  display: block;
  margin-right: 10px;
  font-size: 14px;
}

.media-item .media-list-title, .media-list-subtitle {
  color: #000;
  display: block;
}

.current {
  color: var(--cui-btn-active-color);
  background-color: var(--cui-btn-active-bg);
  border-color: var(--cui-btn-active-border-color);
}

.attachments-wrapper {
  position: static;
  overflow: auto;
  outline: 0;
}

.attachments-wrapper ul {
  list-style: none;
}

.attachments {
  padding: 2px;
  margin: 0;
}

.attachment {
  position: relative;
  float: left;
  padding: 8px;
  margin: 0;
  color: #3c434a;
  cursor: pointer;
  list-style: none;
  text-align: center;
  -webkit-user-select: none;
  user-select: none;
  width: 11.11%;
  box-sizing: border-box;
}

.attachment-preview {
  position: relative;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, .1), inset 0 0 0 1px rgba(0, 0, 0, .05);
  background: #f0f0f1;
  cursor: pointer;
}

.attachment-preview:before {
  content: "";
  display: block;
  padding-top: 100%;
}

.attachment .thumbnail {
  overflow: hidden;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 1;
  transition: opacity .1s;
}

.attachment .thumbnail .centered {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translate(50%, 50%);
}

.wp-core-ui .attachment .thumbnail img {
  position: absolute;
}

.wp-core-ui .attachment .thumbnail img {
  top: 0;
  left: 0;
}

.attachment .thumbnail .centered img {
  transform: translate(-50%, -50%);
  max-width: 100%;
}

.attachment .portrait img {
  max-width: 100%;
}

.select-mode .attachment .thumbnail {
  opacity: .65;
}

.attachment .check {
  display: none;
  height: 24px;
  width: 24px;
  padding: 0;
  border: 0;
  position: absolute;
  z-index: 10;
  top: 0;
  right: 0;
  outline: 0;
  background: #f0f0f1;
  cursor: pointer;
  box-shadow: 0 0 0 1px #fff, 0 0 0 2px rgba(0, 0, 0, .15);
}

.attachment.selected .check {
  display: block;
}

.attachment .check .media-modal-icon {
  display: block;
  background-position: -1px 0;
  height: 15px;
  width: 15px;
  margin: 5px;
}

.attachment .check, .attachment .selected .check:focus, .attachment .selected .check {
  background-color: #2271b1;
  box-shadow: 0 0 0 1px #fff, 0 0 0 2px #2271b1;
}

.media-modal-icon {
  background-image: url(/assets/img/uploader-icons-2x.png);
  background-size: 134px 15px;
}

.attachment.selected .check .media-modal-icon {
  background-position: -21px 0;
}

.attachment-media-view {
  height: 500px;
}

.attachment-media-view .thumbnail {
  box-sizing: border-box;
  height: 100%;
}

.attachment .filename {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  max-height: 100%;
  word-wrap: break-word;
  text-align: center;
  font-weight: 600;
  background: rgba(255, 255, 255, .8);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);
}

.details-image {
  display: block;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  background-image: linear-gradient(45deg, #c3c4c7 25%, transparent 25%, transparent 75%, #c3c4c7 75%, #c3c4c7), linear-gradient(45deg, #c3c4c7 25%, transparent 25%, transparent 75%, #c3c4c7 75%, #c3c4c7);
  background-position: 0 0, 10px 10px;
  background-size: 20px 20px;
}

.attachment-info {
  overflow: auto;
  box-sizing: border-box;
  padding-left: 15px;
  margin-bottom: 0;
  height: 100%;
  box-shadow: inset 0 4px 4px -4px rgba(0, 0, 0, .1);
  border-bottom: 0;
  border-left: var(--cui-modal-header-border-width) solid var(--cui-modal-header-border-color);
}

.attachment-info .details, .attachment-info .settings {
  font-size: 12px;
  position: relative;
  overflow: hidden;
  float: none;
  margin-bottom: 15px;
  padding-top: 15px;
}

.attachment-info .settings {
  border-top: var(--cui-modal-header-border-width) solid var(--cui-modal-header-border-color);
  border-bottom: var(--cui-modal-header-border-width) solid var(--cui-modal-header-border-color);
}

.attachment-info .actions {
  margin-bottom: 16px;
  font-size: 14px;
}

.attachment-info .actions a {
  display: inline;
  text-decoration: none;
}

.attachment-info .thumbnail {
  position: relative;
  float: left;
  max-width: 120px;
  max-height: 120px;
  margin-top: 15px;
  margin-right: 10px;
  margin-bottom: 5px;
}

.attachment-info .thumbnail img{
  width: 100%;
  height: 110px;
}

.attachment-info .delete-attachment {
  display: inline;
  padding: 0;
  color: #d63638;
}

.button-link {
  margin: 0;
  padding: 0;
  box-shadow: none;
  border: 0;
  border-radius: 0;
  background: 0 0;
  cursor: pointer;
  text-align: left;
  color: #2271b1;
  text-decoration: underline;
  transition-property: border, background, color;
  transition-duration: .05s;
  transition-timing-function: ease-in-out;
}

.player-wrapper {
  position: relative;
  padding-top: 56.25%; /* Player ratio: 100 / (1280 / 720) */
}

.react-player {
  position: absolute;
  top: 0;
  left: 0;
}

.media-icon {
  float: left;
  height: 60px;
  width: 60px;
  margin: 0 9px 0 0;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.media-icon img {
  position: absolute;
  max-width: 60px;
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.load-more-wrapper {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 1em 0;
}

.load-more-wrapper .load-more-count {
  min-width: 100%;
  margin: 0 0 1em;
  text-align: center;
}

.load-more-wrapper .spinner {
  margin: 0;
  float: none;
  vertical-align: middle;
}

.load-more-wrapper .load-more {
  margin: 0;
}

@media (min-width: 1500px) {
  .modal-xxl {
      --cui-modal-width: 1400px;
  }
}

.card {
  --cui-card-border-radius: none;
}

.card-body-scrollable {
  height: 55vh; /* Adjust the height to be 50% of the viewport height */
  overflow-y: auto; /* Enables vertical scroll when content overflows */
}

.card-body-scrollable::-webkit-scrollbar {
  width: 8px;  /* Slightly thicker scrollbar */
  height: 10px; /* For horizontal scrollbar */
}

/* Track */
.card-body-scrollable::-webkit-scrollbar-track {
  background: rgb(221, 221, 221); /* Reverted to previous color */
  border-radius: 10px;
}

/* Handle */
.card-body-scrollable::-webkit-scrollbar-thumb {
  background-color: #000; /* Pure black for maximum contrast */
  border-radius: 10px;
  border: 2px solid #fff; /* White border for contrast */
}

/* Handle on hover */
.card-body-scrollable::-webkit-scrollbar-thumb:hover {
  background-color: #222; /* Slightly lighter black on hover for feedback */
}

#addMediaTab {
  border-bottom: none;
}

.nav-link {
  cursor: pointer;
}

.image-wrap {
  position: relative;
  float: left;
}

.image-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  min-width: 30px;
  min-height: 30px;
  background: #f1f1f1;
  margin: 0;
  padding: 0;
}

.image-wrap:hover .image-wrap-actions {
  display: block;
}

.image-wrap-actions{
  position: absolute;
  display: none;
  top: 0;
  right: 0;
  padding: 5px;
  z-index: 1050;
}

a.image-wrap-icon {
  color: #555d66;
  border-color: #b5bcc2;
  background-color: #fff;
  position: relative;
  transition: none;
  cursor: pointer;
}

.image-wrap-icon {
  display: inline-block;
  height: 28px;
  width: 28px;
  border: transparent solid 1px;
  border-radius: 100%;
  font-size: 20px;
  line-height: 21px;
  text-align: center;
  text-decoration: none;
  vertical-align: top;
  box-sizing: border-box;
}

.image-wrap-icon.dark {
  border-color: transparent !important;
  background: #23282d;
  color: #eee;
}

.action-separator {
  margin: 0 2px;
  color: #aaa; /* Adjust color if needed */
}

/* Style the scrollbar */
::-webkit-scrollbar {
  width: 8px;  /* Slightly thicker scrollbar */
  height: 10px; /* For horizontal scrollbar */
}

/* Style the scrollbar thumb (the part that moves) */
::-webkit-scrollbar-thumb {
  background-color: #000; /* Pure black for maximum contrast */
  border-radius: 10px;
  border: 2px solid #fff; /* White border for contrast */
}

/* Style the scrollbar track (the background of the scrollbar) */
::-webkit-scrollbar-track {
  background: rgb(221, 221, 221); /* Reverted to previous color */
  border-radius: 10px;
}

/* Style the scrollbar */
.sidebar-nav::-webkit-scrollbar {
  width: 8px;  /* Slightly thicker scrollbar */
  height: 10px; /* For horizontal scrollbar */
}

/* Style the scrollbar thumb (the part that moves) */
.sidebar-nav::-webkit-scrollbar-thumb {
  background-color: #000; /* Pure black for maximum contrast */
  border-radius: 10px;
  border: 2px solid #fff; /* White border for contrast */
}

/* Style the scrollbar track (the background of the scrollbar) */
.sidebar-nav::-webkit-scrollbar-track {
  background: rgb(221, 221, 221); /* Reverted to previous color */
  border-radius: 10px;
}

/* Darker on hover for feedback */
::-webkit-scrollbar-thumb:hover {
  background-color: #222; /* Slightly lighter black on hover for feedback */
}

.list-group-item {
  border: none;
}

.list-group-custom .list-group-item {
  border-radius: 0;  /* Remove the border-radius */
  border-left: none;  /* Remove left border */
  border-right: none;  /* Remove right border */
}

/* Remove top border of the first list item */
.list-group-item.first-item {
  border-top: none;
}

/* Remove bottom border of the last list item */
.list-group-item.last-item {
  border-bottom: none;
}

.list-group-item.active {
  z-index: 2;
  color: var(--cui-list-group-active-color);
  background-color: var(--cui-sidebar-nav-link-hover-bg);
}

.border-right {
  border-right: solid 1px var(--cui-border-color-translucent);
}

.text-justify {
  text-align: justify;
  text-justify: inter-word;
  word-break: break-word;
}

.sidebar-header {
  display: block;
}

.sidebar-brand {
  font-family: 'Segoe UI', sans-serif;
}

.custom-fullscreen-with-margin {
  padding: 2rem 3rem;
  box-sizing: border-box;
}

.custom-fullscreen-with-margin .modal-content {
  border-radius: 0.5rem;
  height: 100%;
}

.corrected-asset-tag {
  color: #dc3545 !important;
}

.corrected-serial-number {
  color: #dc3545 !important;
}

.tooltip {
  --cui-tooltip-max-width: 300px !important;
}