html,
body {
  font-family: var(--bulma-body-family);
}

html {
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh; /* Ensure footer stays at bottom even with minimal content */
}

#root {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  min-height: 100vh;
}

#root > main {
  padding-bottom: 8em;
}

.header-buttons {
  display: none;
}

.header-buttons .button-grouped:not(:first-of-type) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.header-buttons .button-grouped:not(:last-of-type) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.custom-tooltip-container {
  position: relative;
  display: inline-block;
}

.custom-tooltip {
  visibility: hidden;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  margin-left: -400px;
  bottom: -5px;
  opacity: 0;
  transition: opacity 0.3s;
}

.custom-tooltip-trigger:hover + .custom-tooltip {
  visibility: visible;
  opacity: 1;
}

.centered-table-cell {
  text-align: center !important;
}

#notification-box {
  position: fixed;
  top: 10px;
  left: 0;
  width: 100%;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
}

#notification-box-content {
  width: 90%;
  border: 1px solid var(--bulma-warning);
}

.custom-span {
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
}

.menu-list {
  list-style: none;
  margin: 0;
  position: relative;
  padding: 0;
}

.order-placed h1,
.order-placed h2 {
  padding: 20px 10px;
}

.order-placed h1 {
  font-size: 25px;
}

.order-placed h2 {
  font-size: 20px;
}

.order-placed a {
  color: var(--bulma-petrol-base) !important;
  font-weight: 600;
  font-size: 20px;
  padding: 20px 5px;
}

.order-placed a:hover {
  opacity: 75%;
}

.subtitle {
  color: var(--bulma-white-rgb);
}

.menu-active {
  display: flex !important;
}

.card-content p {
  color: var(--bulma-grey-dark);
}

.card {
  z-index: 0;
  border: 1px solid var(--bulma-grey-lighter)
}

.card-footer {
  border-top: transparent;
}

.card-footer-item {
  justify-content: flex-end;
}

.card-content {
  min-height: 130px;
}

footer {
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}

.popup-el {
  min-width: 125px;
  min-height: 100px;
  border-radius: 5px;
}

.field-preview {
  width: fit-content;
}

.field-preview select,
.field-preview input {
  cursor: default;
  flex: 1;
}

dt,
dd {
  font-size: 1.1rem;
  display: flex;
}

dd {
  flex: 1 !important;
  justify-content: flex-end;
}

#order_preview {
  flex-grow: 0;
}

#order_preview .row {
  justify-content: space-between;
}

.language-selection {
  border-bottom: 1px solid var(--bulma-grey-lighter);
}

.language-selection:first-child {
  border-top: 1px solid var(--bulma-grey-lighter);
}

table tr,
td,
th {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
  height: max-content;
  white-space: nowrap;
}

thead {
  background-color: var(--efci-brightsandyslate-rgb) !important;
}

.field-preview select,
.field-preview input {
  text-align: start;
}

.language-button {
  white-space: nowrap;
}

.button-grouped {
  margin: 0;
  width: fit-content;
  border-radius: 20px;
  box-shadow: none;
  height: fit-content;
  white-space: wrap;
}

@media (min-width: 600px) {
  .field-preview select,
  .field-preview input {
    text-align: end;
  }

  .language-selection {
    display: flex;
    justify-content: center;
    padding-bottom: 3px;
  }

  .dropdown-content {
    width: 8rem;
  }
}

.user-button {
  padding: 5px 0 5px 15px;
}

@media (min-width: 900px) {
  .box-message {
    font-size: 1rem;
    border-radius: 5px;
  }

  .header-buttons {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .article-title {
    font-size: 2rem;
  }

  table,
  tr,
  td,
  th {
    font-size: 1rem;
  }

}

.even-row:nth-child(odd) {
  border-radius: 0 !important;
  background-color: var(--bulma-grey-lighter);
}

thead {
  position: sticky;
  top: 0;
  z-index: 1;
}

@media screen and (max-width: 768px) {
  #account-settings-menu .column, #product-menu .column {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .is-mobile-reversed {
    flex-direction: column-reverse;
    display: flex;
  }
}

.category-collapsable.is-active > div, .account-collapsable.is-active > div {
  background-color: var(--bulma-grey-lighter);
}

.category-collapsable > div:hover, .account-collapsable > div:hover, #products-collapsible > section > a > div:hover, #account-collapsible > section > a > div:hover {
  background-color: var(--bulma-grey-lighter);
}

.accordion-trigger .accordion-icon {
  transform: rotate(90deg);
  transition-duration: 150ms;
  transition-property: transform;
}

.accordion-trigger.is-active .accordion-icon {
  transform: rotate(0deg);
  transition-duration: 150ms;
  transition-property: transform;
}

.icon, .accordion-trigger {
  vertical-align: bottom;
}

.rounded {
  --tl-radius: 0;
  --tr-radius: 0;
  --bl-radius: 0;
  --br-radius: 0;

  border-radius: var(--tl-radius) var(--tr-radius) var(--br-radius) var(--bl-radius) !important;
}

.rounded-top-left {
  --tl-radius: 0.375rem;
}

.rounded-top-right {
  --tr-radius: 0.375rem;
}

.rounded-bottom-left {
  --bl-radius: 0.375rem;
}

.rounded-bottom-right {
  --br-radius: 0.375rem;
}

.rounded-all {
  --tl-radius: 0.375rem;
  --tr-radius: 0.375rem;
  --bl-radius: 0.375rem;
  --br-radius: 0.375rem;
}

.border {
  border-width: 1px;
  border-style: solid;
  border-color: var(--bulma-grey-lighter);
}

.border-0 {
  border-width: 0;
}

.border-2 {
  border-width: 2px;
}

.border-4 {
  border-width: 4px;
}

.border-8 {
  border-width: 8px;
}

.border-t {
  border-top-width: 1px;
}

.border-r {
  border-right-width: 1px;
}

.border-b {
  border-bottom-width: 1px;
}

.border-l {
  border-left-width: 1px;
}

.border-primary {
  border-color: var(--bulma-primary-rgb)
}

.w-full {
  width: 100%;
}

.drop-shadow {
  box-shadow: 0 3px 10px rgb(0 0 0 / 0.2);
}

.dropdown-item:hover {
  background-color: var(--bulma-petrol-base) !important;
  color: white !important;
}

.dropdown {
  z-index: 999999;
}

button[name="language"]:first-of-type {
  border-top-left-radius: 0.375rem !important;
  border-top-right-radius: 0.375rem !important;
  border-bottom: 1px solid var(--bulma-petrol-base) !important;
}

button[name="language"]:last-of-type {
  border-bottom-left-radius: 0.375rem !important;
  border-bottom-right-radius: 0.375rem !important;
}


#fold-menu:has(~.is-collapsible.is-active) {
  --br-radius: 0;
  --bl-radius: 0;
}

.dc_table_wrapper {
  position: relative;
  max-height: 600px;
  overflow: auto;
  margin-bottom: 20px;
}

.document-item:nth-child(even) {
  margin-bottom: 1.25rem;
}

.has-background-blue-light {
  background-color: rgba(231, 242, 252, 0.63);
}

.has-word-break {
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.is-no-underlined ul li {
  text-decoration: none;
  padding: 10px;
}
