html {
  font-size: 12px;
  font-family: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
    'Noto Color Emoji';
}

input[type='text'],
input[type='text']:focus,
input[type='submit'],
a,
a:focus,
button,
button:focus {
  outline: none;
}

/* For the color picker */
input[type='color'] {
  -webkit-appearance: none;
}

input[type='color']::-webkit-color-swatch-wrapper {
  padding: 0;
}

input[type='color']::-webkit-color-swatch {
  border: none;
  border-radius: 3px;
}

.btn-aft {
  color: #fff;
  background-color: #e91e63;
  border-color: #e91e63;
  /*set the color you want here*/
}

.btn-aft:hover,
.btn-aft:focus,
.btn-aft:active,
.btn-aft.active,
.open > .dropdown-toggle.btn-aft {
  color: #fff;
  background-color: #bf124d;
  border-color: #bf124d;
  /*set the color you want here*/
}

/* Alert/Error message styling  */
#alert {
  padding: 20px;
  background-color: #fff;
  color: white;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

#alert #alert-heading {
  font-size: 1.5em;
  color: #616570;
}

#alert #alert-message {
  font-size: 1.2em;
  color: #616570;
}

#alert #error-help {
  font-size: 1em;
  color: #616570;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

#alert #error-help hr {
  color: #616570;
  border: 1px solid #616570;
}

.openButton {
  background-color: transparent;
  border: 1px solid transparent;
  border-color: rgb(203, 203, 203);
  border-radius: 1px;
  box-sizing: border-box;
  color: rgba(0, 0, 0, 0.8);
  font-family:
    Benton Sans,
    Arial,
    Helvetica,
    sans-serif;
  font-size: 12px;
  font-weight: normal;
  height: 24px;
  min-width: 84px;
  padding: 0 24px;
  white-space: nowrap;
}

.openButton:hover,
.openButton:active {
  background-color: rgb(203, 203, 203);
  cursor: pointer;
}

.invisibleHeading {
  visibility: hidden;
  position: absolute;
}

.progress {
  height: 1rem;
  overflow: hidden;
  font-size: 0.75rem;
  background-color: #e9ecef;
  border-radius: 0.25rem;
  width: 60%;
  margin-bottom: 0rem;
}

.progress-bar {
  background-color: #e91e63;
}

.progress-bar-striped {
  background-image: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.15) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.15) 75%,
    transparent 75%,
    transparent
  );
}

.progress-bar-animated {
  -webkit-animation: progress-bar-stripes 0.5s linear infinite;
  animation: progress-bar-stripes 0.5s linear infinite;
}

.loader-number {
  font-size: 1rem;
  font-weight: 700;
}

#loading-container {
  padding-top: 10px;
}

.animated-gradient {
  height: 2px;
  background: repeating-linear-gradient(to right, #e91e63 0%, rgba(233, 30, 99, 0.1) 50%, #e91e63 100%);
  width: 100%;
  position: fixed;
  top: 0;
  background-size: 200% auto;
  background-position: 0 100%;
  animation: gradient 2s infinite;
  animation-fill-mode: forwards;
  animation-timing-function: linear;
  overflow: none;
  z-index: 999;
}

@keyframes gradient {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* loader/spinner styling */
.loader-backdrop {
  height: 100vh;
  width: 100vw;
  position: fixed;
  z-index: 1;
  /* line-height: 17px; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0);
}

.loader {
  display: block;
  border-radius: 50%;
  width: 4em;
  height: 4em;
  /* box-sizing: border-box; */
  margin: 4em;
  border-top: 0.4em solid #616570;
  border-right: 0.4em solid #616570;
  border-bottom: 0.4em solid #616570;
  border-left: 0.4em solid #ccc;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation: load 1.1s infinite linear;
  animation: load 1.1s infinite linear;
}

.loader-small {
  display: block;
  border-radius: 50%;
  width: 1.5em; /* Smaller size */
  height: 1.5em; /* Smaller size */
  margin: 0.5em;
  border-top: 0.2em solid #fff; /* White for contrast */
  border-right: 0.2em solid #fff;
  border-bottom: 0.2em solid #fff;
  border-left: 0.2em solid #f1a1c2; /* Light pink to blend with pink background */
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation: load 1.1s infinite linear;
  animation: load 1.1s infinite linear;
}

@keyframes load {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.ag-ltr .cell-align-right {
  text-align: right;
}

.ag-rtl .cell-align-right {
  text-align: left;
}

.ag-ltr .cell-align-right .ag-cell-value {
  margin-left: auto;
}

.ag-rtl .cell-align-right .ag-cell-value {
  margin-right: auto;
}

.ag-ltr .cell-align-center {
  text-align: center;
}

.ag-rtl .cell-align-center {
  text-align: center;
}

.ag-ltr .cell-align-center .ag-cell-value {
  margin-left: auto;
  margin-right: auto;
}

.ag-rtl .cell-align-center .ag-cell-value {
  margin-left: auto;
  margin-right: auto;
}

.cell-align-right {
  width: 100%;
  text-align: right !important;
}

.cell-align-left {
  width: 100%;
  text-align: left !important;
}

.cell-align-center {
  width: 100%;
  text-align: center !important;
}

.cell-align-right {
  width: 100%;
  text-align: right !important;
}

.cell-align-left {
  width: 100%;
  text-align: left !important;
}

.cell-align-center {
  width: 100%;
  text-align: center !important;
}

@-webkit-keyframes load {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes load {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

/* Configuration Currency */
.currency-check {
  font-size: 120%;
  direction: rtl;
}

.currency-check-valid {
  color: green;
}

.currency-check-invalid {
  color: lightgrey;
}

.currency-check .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: rgba(231, 231, 231, 0.51);
  color: rgba(0, 0, 0, 0.8);
  text-align: center;
  border-radius: 6px;
  font-size: 70%;
  padding: 5px;

  /* Position the tooltip */
  position: absolute;
  z-index: 1;
}

.currency-check:hover .tooltiptext {
  visibility: visible;
}

ul.react-autocomplete-input {
  background-clip: padding-box;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  bottom: auto;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  display: block;
  font-size: 14px;
  list-style: none;
  padding: 1px;
  position: fixed;
  text-align: left;
  z-index: 20000;
  margin-top: 1em;
  max-height: 200px !important;
  height: fit-content;
  overflow-y: auto;
  box-sizing: border-box;
}

ul.react-autocomplete-input > li {
  padding: 2px 5px;
  margin-right: 5px;
  cursor: pointer;
  min-width: 100px;
}

ul.react-autocomplete-input > li.active {
  background: #ed2f71;
  color: #fff;
}

/* Tiptap Editor Styling */

.tiptap-editor > div {
  height: 100%;
  outline: 0;
  box-sizing: border-box;
}

.ProseMirror {
  outline: 0;
  min-height: 200px;
  box-sizing: border-box;
  padding: 1rem;
  height: 100%;
}

.mention {
  border-radius: 2px;
  padding: 2px 4px;
}

.image-column {
  border-radius: 2px;
  padding: 2px 4px;
  width: fit-content;
}
/* Tooltip Styling */

.tiptap h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
}

.tiptap h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.875rem;
  font-weight: 700;
}

.tiptap h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.tiptap ul {
  margin: 1rem;
  list-style-position: inside;
  list-style-type: disc;
  padding-left: 1.25rem;
}

.tiptap ol {
  margin: 1rem;
  list-style-position: inside;
  list-style-type: decimal;
  padding-left: 1.25rem;
}

.tiptap li {
  margin-bottom: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.125rem;
  list-style-position: outside;
  display: list-item;
  padding-left: 0;
}

.custom-tooltip {
  min-height: 40px;
  overflow: hidden;
  box-sizing: border-box;
  word-break: wrap;
}

.custom-tooltip p {
  word-break: wrap;
  white-space: normal;
}

/* Tooltip Modal Styling  */

.tooltip-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 550px;
  background-color: white;
}

.tooltip-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
}

/* Export Buttons */
.floating-buttons {
  position: fixed;
  bottom: 7px;
  right: 7px;
  margin-right: 5px;
}

.pivot-row-status-bar {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 5px;
}

#free-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: center;
  padding: 5px 10px;
  font-size: 0.8em;
}

#banner-message {
  font-weight: 600;
}

#banner-cta {
  padding: 5px 8px;
  background-color: #ff0079;
  border: 1px solid #ff0079;
  border-radius: 5px;
  color: white;
  text-decoration: none;
  transition:
    background-color 0.3s,
    border-color 0.3s;
}

.url-cell {
  color: #0b74e5 !important;
}

@media (max-width: 768px) {
  #free-banner {
    flex-direction: column;
    padding: 2px;
  }

  #banner-cta {
    padding: 2px 5px;
  }
}

.comment-cell span::after {
  display: inline-block;
  content: '';
  margin-left: 4px;
  width: 9px;
  height: 12px;
  background-image: url(../icons/comment.svg);
  background-size: contain; /* Ensures the SVG fits within the element */
  background-repeat: no-repeat;
}

.ag-side-bar .ag-side-button:last-of-type .ag-side-button-icon-wrapper {
  display: none;
}

.ag-side-bar .ag-side-button:last-of-type.ag-selected .ag-side-button-icon-wrapper {
  display: none;
}

.separator {
  display: flex;
  align-items: center;
  text-align: center;
  color: #666;
  font-weight: 500;
  margin-bottom: 5px;
  margin-top: 5px;
}
.separator::before,
.separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgb(229 229 229);
}
.separator:not(:empty)::before {
  margin-right: 0.5em;
}
.separator:not(:empty)::after {
  margin-left: 0.5em;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

.rotate-360 {
  animation: rotate 1s ease-in-out;
}

.custom-editor-container {
  display: block;
  background-color: white;
  padding: 5px;
  border-radius: 5px;
  border: 1px solid #484848;
}

.custom-editor-container textarea {
  width: 100%;
  margin-bottom: 5px;
  padding: 3px;
}

.custom-editor-info {
  font-size: 11px;
  font-family: Karla;
  color: #888;
}
