:root {
  --emata-text-color: #242527;
  --emata-text-color-secondary: #6c757d;
  --emata-text-color-notes: #696b6c;
  --emata-text-color-tertiary: #ffffff;
  --emata-text-color-error: #d80537;
  --emata-text-color-warning: #fd7932;
  --emata-border-color: #dadbdc;
  --emata-system-attention-color: #1b71e9;

  --emate-font-family: "Inter", sans-serif;
  --emata-font-size: 15px;
  --emata-font-size-secondary: 14px;
  --emata-font-weight: 500;
  --emata-line-height: 24px;
  --emata-line-height-secondary: 18px;
  --emata-letter-spacing: 0%;
  --emata-letter-spacing: 0;

  --emata-input-border-color: #e9ecef;
  --emata-input-background-color: #ffffff;

  --emata-card-border-color: #9ca1a5;
  --emata-card-border-line-width: 1px;
  --emata-card-background-color: #fafbfb;
  --emata-card-border-radius: 8px;
  --emata-card-padding: 24px;

  --emata-color: #242527;

  --emata-background-color: #ecedee;
  --emata-background-color-secondary: #ffffff;
  --emata-background-color-tertiary: #f4f5f5;
  --emata-background-color-error: #d80537;

  --emata-small-popup-max-width: 400px;
  --emata-small-popup-min-height: 500px;
  --emata-medium-popup-max-width: 800px;
  --emata-medium-popup-min-height: 500px;
  --emata-large-popup-max-width: 1200px;
  --emata-large-popup-min-height: 500px;

  --emata-logo-small-width: 2.25rem;
  --emata-logo-small-height: 2.25rem;

  --emata-color-green: #27a669;
}

html body * {
  color: var(--emata-text-color);
  font-family: var(--emate-font-family) !important;
  font-size: var(--emata-font-size) !important;
  font-weight: var(--emata-font-weight) !important;
  line-height: var(--emata-line-height) !important;
  letter-spacing: var(--emata-letter-spacing) !important;
}

html body h3 {
  font-weight: 700 !important;
  font-size: 30px !important;
  line-height: 36px !important;
  letter-spacing: 0 !important;
}

html body h2 {
  font-weight: 700 !important;
  font-size: 1.5rem !important;
  line-height: 1.875rem !important;
  letter-spacing: 0 !important;
}

html body h1 {
  font-weight: 600 !important;
  font-size: 1.25rem !important;
  line-height: 1.5rem !important;
  letter-spacing: 0 !important;
}

.secondary-text {
  color: var(--emata-text-color-secondary) !important;
  font-size: var(--emata-font-size-secondary) !important;
  line-height: var(--emata-line-height-secondary) !important;
}

html body a {
  color: var(--emata-text-color) !important;
  font-size: var(--emata-font-size) !important;
  font-weight: var(--emata-font-weight) !important;
  line-height: var(--emata-line-height) !important;
  letter-spacing: var(--emata-letter-spacing) !important;
}

html body .form-check-input:checked {
  background-color: var(--emata-color-green) !important;
  border-color: var(--emata-color-green) !important;
}

html body input {
  border-color: var(--emata-input-border-color);
  background-color: var(--emata-input-background-color) !important;
}

.emata-card {
  border: var(--emata-card-border-line-width) solid var(--emata-card-border-color);
  background-color: var(--emata-card-background-color);
  border-radius: var(--emata-card-border-radius);
  border-collapse: separate;
  padding: var(--emata-card-padding);
}

/* Custom popover styles */
.popover {
  background: var(--emata-color) !important;
}

.popover .popover-body {
  color: var(--emata-text-color-tertiary) !important;
  font-size: var(--emata-font-size-secondary) !important;
  line-height: var(--emata-line-height-secondary) !important;
  padding: 0.5rem !important;
}

.popover .popover-arrow::after {
  border-top-color: var(--emata-color) !important;
}

.small-popup {
  width: 100%;
  max-width: var(--emata-small-popup-max-width);
  min-height: var(--emata-small-popup-min-height);
}

.medium-popup {
  width: 100%;
  max-width: var(--emata-medium-popup-max-width);
  min-height: var(--emata-medium-popup-min-height);
}

.large-popup {
  width: 100%;
  max-width: var(--emata-large-popup-max-width);
  min-height: var(--emata-large-popup-min-height);
}

@media (max-width: 768px) {
  .emata-popup {
    max-width: 100%;
  }
}

.emata-button {
  display: inline-block;
  /* padding: 12px 24px; */
  text-align: center;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.3s ease-in-out;
  border: none;
}
/* shadow on hover */
.emata-button:hover {
  transform: translateY(-3px);
}
.emata-button:active {
  transform: translateY(1px);
}

/* Toolbar button */
.main-button {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: center;
  background-color: var(--emata-color);
  padding: 7px 15px;
  border-radius: 0.35rem;
  white-space: nowrap;
  cursor: pointer;
}
@media (max-width: 768px) {
  .main-button.toolbar-button {
    padding: 5px;
    border-radius: 0.25rem;
  }

  .main-button.toolbar-button span {
    font-size: 12px !important;
    line-height: 16px !important;
  }
}
.main-button span {
  color: var(--emata-text-color-tertiary) !important;

  /* typography */
  font-family: Inter;
  font-weight: 600;
  font-size: 15px;
  line-height: 24px;
  letter-spacing: 0%;
}
.main-button.disabled span {
  color: var(--emata-text-color-secondary) !important;
}

.btn.main-button {
  background-color: var(--emata-color);
  color: var(--emata-text-color-tertiary) !important;
  border-radius: 0.35rem;
  padding: 7px 15px;
}
.btn.main-button:hover,
.btn.main-button:disabled,
.btn.main-button[disabled] {
  background-color: var(--emata-text-color-secondary) !important;
  color: var(--emata-text-color-tertiary) !important;
}

.toast.text-bg-success,
.toast.text-bg-success div {
  color: var(--emata-text-color-tertiary) !important;
  background-color: var(--emata-color-green) !important;
  border-radius: var(--emata-card-border-radius);
}

/* emata-dropdown-menu */
.emata-dropdown-menu .dropdown-item {
  display: flex;
  align-items: center;
  height: 40px;
  min-width: 320px;
  width: 100%;
}
.emata-dropdown-menu .dropdown-item .center {
  flex-grow: 1;
}
.emata-dropdown-menu .dropdown-item.red div {
  color: var(--emata-text-color-error) !important;
}

/* emata borders and separators */
.emata-top-border {
  border-top: 1px solid #dadbdc;
}

.extra-menu-item a.active {
  font-weight: bold !important;
}

.emata-text-color-error {
  color: var(--emata-text-color-error) !important;
}
.emata-text-color-warning {
  color: var(--emata-text-color-warning) !important;
}
.emata-text-color-success {
  color: var(--emata-color-green) !important;
}

.btn-dark {
  color: #fff !important;
}

html body .typography-title-2 {
  font-family: Inter !important;
  font-weight: 700 !important;
  font-size: 24px !important;
  line-height: 30px !important;
}

html body .typography-body-bold {
  font-family: Inter !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  line-height: 24px !important;
}

html body .typography-title-3 {
  font-family: Inter !important;
  font-weight: 600 !important;
  font-size: 19px !important;
  line-height: 24px !important;
}

html body .typography-notes {
  font-family: Inter !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  line-height: 18px !important;
}

html body .typography-body-normal {
  font-family: Inter !important;
  font-weight: 500 !important;
  font-size: 15px !important;
  line-height: 24px !important;
}

html body .typography-label {
  font-family: IBM Plex Mono !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  line-height: 18px !important;
}

html body .typography-label-bold {
  font-family: IBM Plex Mono !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  line-height: 18px !important;
}

html body .text-color-attention {
  color: #1b71e9 !important;
}

html body .text-color-error {
  color: #d80537 !important;
}

html body .text-color-warning {
  color: #fd7932 !important;
}

html body .text-color-white {
  color: #ffffff !important;
}

html body .text-color-notes {
  color: var(--emata-text-color-notes) !important;
}
html body .text-color-tonal-shade-4 {
  color: #9ca1a5 !important;
}
html body .text-color-tonal-shade-2 {
  color: #696b6c !important;
}

html body .text-color-tonal-shade-1 {
  color: #242527 !important;
}

html body .background-color-tonal-light {
  background-color: #fafbfb !important;
}

html body .text-underline {
  text-decoration: underline !important;
}
