/* Base Styles and Reset */
/* Modern CSS Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable; /* Reserve scrollbar space to prevent layout shift between pages */
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom body class for application pages */
.custom-body {
  background: var(--gradient-radial-blue);
  min-height: 100vh;
  height: 100%;
  width: 100%;
}

/* Utility: account for sticky headers when panes scroll inside */
.sticky-offset-120 {
  scroll-margin-top: 120px;
}

/* Focus styles for accessibility */
:focus {
  outline: 2px solid var(--surface-field-highlight);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Skip link - hidden until focused */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--surface-field-highlight, #0066cc);
  color: #fff;
  padding: 8px 16px;
  z-index: 10000;
  text-decoration: none;
  font-weight: 500;
}

.skip-link:focus {
  top: 0;
}

/* Selection styles */
::selection {
  background: var(--surface-field-highlight);
  color: var(--text-on-light);
}

/* Link styles */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* Button reset */
button {
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Remove default list styles */
ul,
ol {
  list-style: none;
}

/* Table reset */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Keyframe animations */
@keyframes fadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(0.95);
    visibility: hidden;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(0);
  }
}


.text-success {
  color: var(--success-green-medium) !important;
}

.text-warning {
  color: var(--orange-medium) !important;
}

.text-danger {
  color: var(--red-medium) !important;
}

.text-medium-emphasis {
  color: var(--text-medium-emphasis) !important;
}

.text-success *, .text-danger *, .text-warning *, .text-medium-emphasis * {
  color: inherit;
}

/* Utility classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.center-text {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-truncate {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.items-center {
  align-items: center !important;
}

.items-start {
  align-items: flex-start !important;
}

.items-end {
  align-items: flex-end !important;
}

.justify-center {
  justify-content: center !important;
}

.justify-start {
  justify-content: flex-start !important;
}

.justify-end {
  justify-content: flex-end !important;
}

.justify-between {
  justify-content: space-between !important;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.min-h-screen {
  min-height: 100vh;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.p-1 {
  padding: 0.25rem;
}

.p-2 {
  padding: 0.5rem;
}

.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.m-4 {
  margin: 1rem;
}

.m-6 {
  margin: 1.5rem;
}

.m-8 {
  margin: 2rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.my-0 {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.my-1 {
  margin-top: 0.25rem !important;
  margin-bottom: 0.25rem !important;
}

.my-2 {
  margin-top: 0.5rem !important;
  margin-bottom: 0.5rem !important;
}

.my-3 {
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
}

.my-4 {
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

.my-5 {
  margin-top: 3rem !important;
  margin-bottom: 3rem !important;
}

.form-check-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 0.25em;
  width: 1em;
  height: 1em;
  border-radius: 4px;
  border: 1px solid var(--text-on-dark-color-2);
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: transparent;
  position: relative;
  background-repeat: no-repeat;
  background-position: center;
}

.form-check-input:checked {
  background-color: var(--icon-high-emphasis) !important;
  border-color: var(--blue-550) !important;
  background-image: url("/static/icons/check-input.svg");
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.z-10 {
  z-index: 10;
}

.z-20 {
  z-index: 20;
}

.z-30 {
  z-index: 30;
}

/* Responsive utilities */
.hidden {
  display: none !important;
}

.desktop-only {
  display: block !important;
}

.mobile-only {
  display: none !important;
}

@media (max-width: 1023px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }
}

@media (max-width: 1023px) {
  .hidden-mobile {
    display: none;
  }

  .block-mobile {
    display: block;
  }
}

@media (min-width: 1024px) {
  .hidden-desktop {
    display: none;
  }

  .block-desktop {
    display: block;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-contrast: high) {
  :root {
    --surface-field-highlight: #ffffff;
    --text-primary: #ffffff;
  }
}

@media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: smooth;
  }
}

/* Base badge class */
.badge {
  display: inline-block;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
}

/* Rounded pill modifier */
.rounded-pill {
  border-radius: 50rem !important;
}

/* Background color classes */
.bg-primary {
  background-color: var(--brand-blue) !important;
}

.bg-warning {
  background-color: var(--signal-orange) !important;
  color: var(--text-on-light-color-1) !important;
  /* Warning typically uses dark text */
}

.bg-danger {
  background-color: var(--signal-red) !important;
}

.bg-muted {
  background-color: var(--grey-faint) !important;
  color: var(--text-medium-emphasis) !important;
}

/* Hover background utilities */
.bg-hover-light {
  transition: background-color 0.15s ease;
}

.bg-hover-light:hover {
  background-color: var(--surface-field-passive) !important;
}

/* Font weight bold */
.fw-bold {
  font-weight: 700 !important;
}

/* Additional badge responsive behavior */
.badge:empty {
  display: none;
}

/* Badge link styling (if used within links) */
a>.badge {
  position: relative;
  top: -1px;
}

/* Badge button styling (if used within buttons) */
.btn .badge {
  position: relative;
  top: -1px;
}

button:not(:disabled),
[type="button"]:not(:disabled),
[type="reset"]:not(:disabled),
[type="submit"]:not(:disabled) {
  cursor: pointer;
}

.polite_modal {
  position: relative;
}

.d-row {
  display: flex;
  justify-content: space-between;
}

.d-row-gap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.d-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast-container {
  left: unset;
  z-index: 9999 !important;
  padding: 1rem;
  transform: translateX(-50%) !important;
  left: 50% !important;
  bottom: 0;
  position: fixed;
  right: 0;
  width: max-content;
  max-width: 100%;
  pointer-events: none;
}

#outer-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9998;
}

/* Toggle Switch */
.form-check.form-switch {
  vertical-align: middle;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-switch .form-check-switch {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 32px;
  height: 16px;
  border-radius: 34px;
  border: 1px solid var(--card-stroke);
  background: var(--field-active-fill);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.form-switch .form-check-switch:checked {
  background: var(--brand-blue);
}

.form-switch .form-check-switch:checked::before {
  background: var(--blue-950);
}

.form-switch .form-check-switch::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  background: var(--text-high-emphasis);
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.form-switch .form-check-switch:checked::before {
  transform: translateX(15px);
}

.switch-label::after {
  content: "Inactief";
  color: var(--text-high-emphasis);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.form-check-switch:checked+.switch-label::after {
  content: "Actief";
}

/* Standalone Bootstrap-like List Styles */

/* Default list styling (same as Bootstrap) */
ul,
ol {
  margin-top: 0;
  margin-bottom: 1rem;
  padding-left: 2rem;
}

/* Ensure bullets are visible */
ul {
  list-style-type: disc;
  list-style-position: outside;
}

ol {
  list-style-type: decimal;
  list-style-position: outside;
}

/* Nested lists */
ul ul,
ol ol,
ul ol,
ol ul {
  margin-bottom: 0;
  margin-top: 0.25rem;
}

/* Bootstrap-like utility classes */

/* Remove list styling completely */
.list-unstyled {
  padding-left: 0;
  list-style: none;
  margin-bottom: 1rem;
}

.list-unstyled li {
  list-style: none;
}

/* Inline lists */
.list-inline {
  padding-left: 0;
  list-style: none;
  margin-bottom: 1rem;
}

.list-inline li,
.list-inline-item {
  display: inline-block;
  margin-right: 0.5rem;
}

.list-inline li:last-child,
.list-inline-item:last-child {
  margin-right: 0;
}

/* List group (Bootstrap component alternative) */
.list-group {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-bottom: 0;
  border-radius: 0.375rem;
}

.list-group-item {
  position: relative;
  display: block;
  padding: 0.75rem 1.25rem;
  background-color: var(--white);
  border: 1px solid var(--card-stroke);
  list-style: none;
  text-decoration: none;
  color: var(--text-primary);
}

.list-group-item:first-child {
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
}

.list-group-item:last-child {
  border-bottom-left-radius: 0.375rem;
  border-bottom-right-radius: 0.375rem;
}

.list-group-item+.list-group-item {
  border-top-width: 0;
}

.list-group-item:hover {
  background-color: var(--surface-field-passive);
}

/* Utility classes for different list styles */
.list-style-none {
  list-style-type: none !important;
}

.list-style-disc {
  list-style-type: disc !important;
}

.list-style-circle {
  list-style-type: circle !important;
}

.list-style-square {
  list-style-type: square !important;
}

.list-style-decimal {
  list-style-type: decimal !important;
}

.list-style-lower-alpha {
  list-style-type: lower-alpha !important;
}

.list-style-upper-alpha {
  list-style-type: upper-alpha !important;
}

.list-style-lower-roman {
  list-style-type: lower-roman !important;
}

.list-style-upper-roman {
  list-style-type: upper-roman !important;
}

/* Custom marker variations */
.list-custom-bullets {
  list-style-type: none;
  padding-left: 1.5rem;
}

.list-custom-bullets li::before {
  content: "•";
  color: var(--brand-blue);
  font-weight: bold;
  display: inline-block;
  width: 1rem;
  margin-left: -1rem;
}

.list-arrows {
  list-style-type: none;
  padding-left: 1.5rem;
}

.list-arrows li::before {
  content: "→";
  color: var(--grey-main);
  margin-right: 0.5rem;
  margin-left: -1.5rem;
  display: inline-block;
  width: 1rem;
}

.list-checks {
  list-style-type: none;
  padding-left: 1.5rem;
}

.list-checks li::before {
  content: "✓";
  color: var(--success-green-main);
  font-weight: bold;
  margin-right: 0.5rem;
  margin-left: -1.5rem;
  display: inline-block;
  width: 1rem;
}

/* Reset margins for nested unstyled lists */
.list-unstyled .list-unstyled {
  margin-left: 1.5rem;
}

.table> :not(caption)>*>* {
  padding: 4px 8px;
}

.repricer_home__body__table {

  /* Repricer Table Styling */
  .repricers-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
  }

  /* Table Header */
  .repricers-table thead {}

  .repricers-table thead th {
    text-align: left;
  }

  .repricers-table thead th.form-check {
    border-left: 1px solid transparent;
  }

  .repricers-table thead tr {
    text-align: left;
  }

  /* Table Body */
  .repricers-table tbody {
    vertical-align: inherit;
  }

  .repricers-table tbody tr {
    border-color: inherit;
    border-style: solid;
    border-width: 0;
    background: var(--card-fill);
  }

  .repricers-table tbody td:first-child {
    border-radius: 8px 0 0 8px;
    border-left: 1px solid var(--card-stroke);
  }

  .repricers-table tbody td:last-child {
    border-radius: 0 8px 8px 0;
    border-right: 1px solid var(--card-stroke);
  }

  .repricers-table tbody td {
    background: var(--card-fill);
    border-top: 1px solid var(--card-stroke);
    border-bottom: 1px solid var(--card-stroke);
  }

  .repricers-table tbody td.text-center {
    text-align: center;
  }

  .repricers-table img.flag {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    margin: 0 4px;
    margin-top: auto !important;
    margin-bottom: auto !important;
    vertical-align: middle;
  }

  /* Status icons */
  .siu-icon {
    margin-right: 8px;
    vertical-align: middle;
  }

  /* Buybox status column */
  .repricers-table td:nth-child(5) {
    font-weight: 500;
  }

  /* Toggle Switch */
  .form-check.form-switch {
    vertical-align: middle;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .form-switch .form-check-switch {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 32px;
    height: 16px;
    border-radius: 34px;
    border: 1px solid var(--card-stroke);
    background: var(--field-active-fill);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
  }

  .form-switch .form-check-switch:checked {
    background: var(--brand-blue);
  }

  .form-switch .form-check-switch:checked::before {
    background: var(--blue-950);
  }

  .form-switch .form-check-switch::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 10px;
    height: 10px;
    background: var(--text-high-emphasis);
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }

  .form-switch .form-check-switch:checked::before {
    transform: translateX(15px);
  }

  .switch-label::after {
    content: "Inactief";
    color: var(--text-high-emphasis);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 1px;
    transition: color 0.3s ease;
  }

  .form-check-switch:checked+.switch-label::after {
    content: "Actief";
  }

  /* Empty state */
  .repricer-empty-state {
    padding: 40px 20px;
    color: var(--grey-main);
    font-style: italic;
    background-color: var(--surface-field-passive);
  }

  /* Small muted text */
  .text-muted {
    color: var(--grey-main) !important;
  }

  small.text-muted {
    color: var(--grey-main) !important;
  }

  /* Responsive adjustments */
  @media (max-width: 1023px) {
    .repricers-table {
      font-size: 12px;
    }

    .repricers-table thead th,
    .repricers-table tbody td {
      padding: 8px 12px;
    }

    .repricers-table h5 {
      font-size: 14px;
    }

    .repricers-table img.flag {
      width: 20px;
    }
  }
}

.repricer_name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 255px;
}

.repricer_country {
  margin: 0 4px;
}

.table td {
  vertical-align: middle;
}

.no_repricer {
  padding: 50px 0;
  text-align: center;
  color: var(--text-low-emphasis);
}

.no_bg {
  background: unset !important;
  background-color: unset !important;
  border: unset !important;
  border-radius: unset !important;
}

.repricer_actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.repricer_actions a {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Enhanced mobile responsiveness */
@media (max-width: 1023px) {
  .repricer_home__body__table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .repricers-table {
    min-width: 600px;
    /* Prevent table from becoming too narrow */
    font-size: 14px;
  }

  /* Adjust name column to take more space */
  .repricer_name {
    max-width: 180px;
    font-size: 14px;
  }

  /* Make action buttons smaller */
  .repricer_actions a {
    padding: 4px 8px;
    font-size: 12px;
  }

  /* Adjust button sizes in header */
  .repricer_home__body__top .buttons {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }

  .repricer_group_add a,
  .repricer_group_remove button {
    padding: 6px 12px;
    font-size: 14px;
    text-align: center;
  }

  /* Stack header elements vertically */
  .repricer_home__body__top {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  /* Adjust flag images */
  .repricers-table img.flag {
    width: 16px;
    height: 16px;
  }

  /* Make toggle switches smaller */
  .form-switch .form-check-switch {
    width: 28px;
    height: 14px;
  }

  .form-switch .form-check-switch::before {
    width: 8px;
    height: 8px;
    top: 2px;
    left: 2px;
  }

  .form-switch .form-check-switch:checked::before {
    transform: translateX(13px);
  }

  .repricers-table tbody td {
    white-space: nowrap;
  }
}

/* For very small screens */
@media (max-width: 1023px) {
  .repricer_home__top .container-fluid {
    gap: 16px;
  }

  .repricer_box__body {
    padding: 0 16px 24px 16px;
  }

  .repricers-table {
    min-width: 500px;
    font-size: 12px;
  }

  .repricer_name {
    max-width: 120px;
    font-size: 12px;
  }

  /* Further reduce padding */
  .repricers-table thead th,
  .repricers-table tbody td {
    padding: 6px 8px;
  }
}

.pagination_main {
  margin-top: auto !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 1199px) {
  .pagination_main {
    flex-wrap: wrap;
    justify-content: center !important;
    margin-bottom: 8px;
  }
}

.pagination_main input::-webkit-outer-spin-button,
.pagination_main input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pagination_main input[type="number"] {
  -moz-appearance: textfield;
}

.pagination_main input {
  text-align: center;
  width: 34px;
  height: 34px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border-radius: 8px;
  border: 1px solid var(--field-passive-stroke);
  background: var(--white);
}

.pagination_main .ga_group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination_main .btn__ga {
  color: var(--text-inverted-high);
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--blue-400);
}

.pagination_main .pagination {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.pagination_main .pagination li {
  list-style-type: none;
}

.pagination_main .page-item img {
  margin-top: 8px;
}

.pagination_main .page-item.disabled {
  cursor: not-allowed;
}

.pagination_main .page-item {
  cursor: pointer;
}

.pagination_main .page-item a {
  text-decoration: none !important;
}

.pagination_main .page-item.active a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: var(--text-high-emphasis);
  border-radius: 50%;
  color: var(--text-inverted-high);
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 1px;
}

.header_card {
  border-radius: 8px;
  border: 1px solid var(--card-stroke);
  background: var(--card-fill);
  display: flex;
  flex-direction: column;
  gap: 22px;
  height: 100%;
}

.header_card .header_card__top {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

@media (max-width: 1399px) {
  .header_card .header_card__top h3 {
    font-size: 22px;
  }
}

.header_card .icon_wrapper {
  border-radius: 8px 0px;
  background: var(--button-primary-fill);
  display: flex;
  width: 60px;
  height: 60px;
  justify-content: center;
  align-items: center;
}

.header_card .header_card__body {
  padding-bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px 32px 20px;
}

.form-control {
  padding: 0 8px;
  height: 32px;
  border-radius: var(--field-radius);
  border: 1px solid var(--field-passive-stroke);
  background: var(--field-passive-fill);
}

.form-control:focus {
  outline: 4px solid var(--field-active-stroke);
}

/* Inline editable title input - looks like text until focused */
.form-control-inline {
  border: 1px solid transparent;
  background: transparent;
  padding: 0 4px;
  margin: 0 -4px;
  height: auto;
  width: auto;
  min-width: 200px;
}

.form-control-inline:hover {
  border-color: var(--field-passive-stroke);
  background: var(--field-passive-fill);
}

.form-control-inline:focus {
  border-color: var(--field-active-stroke);
  background: var(--field-passive-fill);
  outline: none;
}

.form-select-dropdown {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("/static/icons/dropdown_dark.svg");
  background-repeat: no-repeat;
  background-size: 2em 1.5em;
  background-position: right 4px center;
  padding-right: 28px;
  width: auto;
  min-width: 150px;
}

.form-select-dropdown-sm {
  min-width: 70px;
}

.d-inline-block {
  display: inline-block !important;
}

.mr-2 {
  margin-right: 8px !important;
}

.mr-60 {
  margin-right: 60px !important;
}

.ms-auto {
  margin-left: auto !important;
}

.pointer {
  cursor: pointer;
}

/****************************
* Bootstrap-like utilities *
***************************/

.d-flex {
  display: flex !important;
}

.d-block {
  display: block !important;
}

.d-none {
  display: none !important;
}

.invisible {
  visibility: hidden !important;
}

.align-items-center {
  align-items: center !important;
}

.align-items-start {
  align-items: flex-start !important;
}

.align-items-end {
  align-items: flex-end !important;
}

.justify-content-center {
  justify-content: center !important;
}

.justify-content-start {
  justify-content: flex-start !important;
}

.justify-content-end {
  justify-content: flex-end !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.justify-content-around {
  justify-content: space-around !important;
}

.flex-column {
  flex-direction: column !important;
}

.flex-row {
  flex-direction: row !important;
}

.mt-16 {
  margin-top: 16px !important;
}

.mb-16 {
  margin-bottom: 16px !important;
}

.pb-4 {
  padding-bottom: 1rem !important;
}

.p-16 {
  padding: 16px !important;
}

.pt-16 {
  padding-top: 16px !important;
}

.pb-16 {
  padding-bottom: 16px !important;
}

.w-100 {
  width: 100% !important;
}

.h-100 {
  height: 100% !important;
}

.min-h-100 {
  min-height: 100% !important;
}

.p-0 {
  padding: 0 !important;
}

.m-0 {
  margin: 0 !important;
}

.mt-0 {
  margin-top: 0 !important;
}
.mt-1 {
  margin-top: 0.25rem !important;
}

.mt-2 {
  margin-top: 0.5rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.mt-5 {
  margin-top: 3rem !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-1 {
  margin-bottom: 0.25rem !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mb-5 {
  margin-bottom: 3rem !important;
}

.ms-0 {
  margin-left: 0 !important;
}

.ms-1 {
  margin-left: 0.25rem !important;
}

.ms-2 {
  margin-left: 0.5rem !important;
}

.ms-3 {
  margin-left: 1rem !important;
}

.ms-4 {
  margin-left: 1.5rem !important;
}

.ms-5 {
  margin-left: 3rem !important;
}

.ms-auto {
  margin-left: auto !important;
}

.me-0 {
  margin-right: 0 !important;
}

.me-1 {
  margin-right: 0.25rem !important;
}

.me-2 {
  margin-right: 0.5rem !important;
}

.me-3 {
  margin-right: 1rem !important;
}

.me-4 {
  margin-right: 1.5rem !important;
}

.me-5 {
  margin-right: 3rem !important;
}

.me-auto {
  margin-right: auto !important;
}


.g-0 {
  --gutter-x: 0;
  --gutter-y: 0;
}

.g-1 {
  --gutter-x: 0.25rem;
  --gutter-y: 0.25rem;
}

.g-2 {
  --gutter-x: 0.5rem;
  --gutter-y: 0.5rem;
}

.g-3 {
  --gutter-x: 1rem;
  --gutter-y: 1rem;
}

.g-4 {
  --gutter-x: 1.5rem;
  --gutter-y: 1.5rem;
}

.g-5 {
  --gutter-x: 3rem;
  --gutter-y: 3rem;
}

.gx-0 {
  --gutter-x: 0;
}

.gx-1 {
  --gutter-x: 0.25rem;
}

.gx-2 {
  --gutter-x: 0.5rem;
}

.gx-3 {
  --gutter-x: 1rem;
}

.gx-4 {
  --gutter-x: 1.5rem;
}

.gx-5 {
  --gutter-x: 3rem;
}

.gy-0 {
  --gutter-y: 0;
}

.gy-1 {
  --gutter-y: 0.25rem;
}

.gy-2 {
  --gutter-y: 0.5rem;
}

.gy-3 {
  --gutter-y: 1rem;
}

.gy-4 {
  --gutter-y: 1.5rem;
}

.gy-5 {
  --gutter-y: 3rem;
}

small,
.small {
  font-size: 0.875em;
}

.text-muted {
  --bs-text-opacity: 1;
  color: var(--grey-main) !important;
}

.tabs-header {
  padding-top: 16px;
  background: var(--tab-backdrop-fill);
}

.form-label {
  display: block;
}

.product-image, .product-image-large {
  object-fit: contain;
  position: relative;
  pointer-events: none;
}

.product-image {
  height: 62px;
  width: 62px;
}

.product-image-large {
  height: 206px;
  width: 206px;
}

.hover-overlay {
  position: relative;
  transition: all var(--transition-normal);
}

.hover-overlay:hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--hover-overlay);
  border-radius: inherit;
  pointer-events: none;
}

.disabled-overlay {
  opacity: 0.6;
  position: relative;
}

.disabled-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--disabled-overlay);
  border-radius: inherit;
  pointer-events: none;
}

.highlight-underlay {
  background: var(--highlight-underlay);
  transition: background var(--transition-normal);
}

.highlight-underlay:hover {
  background: var(--field-active-stroke);
}

.destructive-underlay {
  background: var(--destructive-underlay);
}

.destructive-underlay:hover {
  background: rgba(255, 91, 91, 0.6);
}

.flag {
  margin-top: auto;
  margin-bottom: auto;
  margin-right: 0.5rem;
  height: 20px;
  width: 25px;
}

.flag-rounded {
  margin-top: auto;
  margin-bottom: auto;
  margin-right: 0.5rem;
  height: 20px;
  width: 20px;
  border-radius: 50%;
}

:root.dark-mode {
  color-scheme: dark;
}

:root.dark-mode body {
  background: var(--surface-base);
  color: rgba(204, 229, 255, 0.95);
}

:root.dark-mode .list-group-item {
  background-color: var(--card-fill);
  border-color: var(--card-stroke);
  color: rgba(204, 229, 255, 0.95);
}

:root.dark-mode .list-group-item:hover {
  background-color: var(--surface-field-passive);
}

:root.dark-mode .bg-primary {
  background-color: var(--brand-blue) !important;
}

:root.dark-mode .bg-warning {
  background-color: var(--signal-orange) !important;
  color: var(--text-primary) !important;
}

:root.dark-mode .bg-danger {
  background-color: var(--signal-red) !important;
}

:root.dark-mode .bg-hover-light:hover {
  background-color: var(--surface-field-passive) !important;
}

:root.dark-mode .text-muted {
  color: var(--grey-main) !important;
}

:root.dark-mode .hover-overlay:hover::before {
  background: var(--hover-overlay);
}

:root.dark-mode .disabled-overlay::after {
  background: var(--disabled-overlay);
}

:root.dark-mode .highlight-underlay {
  background: var(--highlight-underlay);
}

:root.dark-mode .highlight-underlay:hover {
  background: var(--field-active-stroke);
}

:root.dark-mode .destructive-underlay {
  background: var(--destructive-underlay);
}

:root.dark-mode .destructive-underlay:hover {
  background: #d84242;
}

.icon-disabled {
  filter: grayscale(1);
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

.user-select-none {
  -webkit-user-select: none !important;
     -moz-user-select: none !important;
          user-select: none !important;
}

.collapse {
  display: none;
}

.collapse.show {
  display: block;
}