:root {
  --checkbox-border-color: #b2b2b2;
  --checkbox-disabled-bg-color: #d9d9d9;
  --topbar-height: 72px;
  --topbar-mobile-height: 56px;
  --sidebar-width: 230px;
  --sidebar-collapsed-width: 60px;
  --layout-padding: 16px;
  --layout-horizontal-padding: 24px;
  --card-padding: 16px;
  --sidebar-transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --content-transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --dark-green: #15363c;
  --dark-green-20: #2c4a50;
  --mid-green: #43947b;
  --light-green: #4aa589;
  --light-green-20: #dbede7;
  --light-green-10: #edf6f3;
  --pink: #c97e6f;
  --light-orange: #f7e2ca;
  --light-orange-20: #faeee0;
  --light-orange-10: #fdf7f0;
  --dark-blue: #163c4e;
  --light-blue: #86c2d4;
  --light-blue-30: #daecf2;
  --gray-800: #2f2f2f;
  --gray-700: #575756;
  --gray-600: #878787;
  --gray-500: #60717e;
  --gray-400: #b2b2b2;
  --gray-200: #dadada;
  --gray-100: #e8e8e8;
  --gray-50: #f3f3f3;
  --error: #c81c1a;
  --error-500: #e53330;
  --error-100: #ffe6e9;
  --success: #025a25;
  --success-500: #007e33;
  --success-100: #d6f1d8;
  --light-border: #d6dce1;
  --warning: #e69d00;
  --warning-100: #faebcc;
  --warning-50: #fef7e9;
  --toggle-animation-duration: 0.15s;
  --color-transition-duration: 0.15s;
  --table-cell-height: 40px;
  --box-shadow: 0 0 10px 4px rgba(0, 0, 0, 0.1);
  --box-shadow-light: 0 0 4px 2px rgba(0, 0, 0, 0.05);
}

/* Z-index values: 
.product-details .lower .detail-tab: 1
.product-details .lower .detail-tab.active::after: 2
.product-details .product-gallery__selected-image-index: 1
.category-accordion .accordion--top + .subcategory-list: 1
.topbar__cart--count: 2
.searchbar-wrapper #wait: 2
.custom-dropdown__content: 2
.breadcrumbs: 2
.table-select-filter__dropdown: 9
.backdrop: 9
.nav-container: 10
.mobile-drawer: 11
.autocomplete-dropdown: 99
.search-instructions: 100
.sidebar: 100
.modal: 1000+
.topbar: 1000
#image-preview: 2000
.dropdown-menu: 2000
#tooltip-content: 2001

*/

/* SCROLLBAR for Chrome */
@supports selector(::-webkit-scrollbar) {
  *::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }

  *::-webkit-scrollbar-track {
    background: transparent;
  }

  *::-webkit-scrollbar-thumb {
    background-color: var(--gray-600);
    border-radius: 4px;
  }

  *::-webkit-scrollbar-thumb:hover {
    background-color: var(--gray-400);
  }
}

@font-face {
  font-family: "Aeonik";
  src: url("../assets/fonts/Aeonik/Aeonik-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Aeonik";
  src: url("../assets/fonts/Aeonik/Aeonik-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "Aeonik";
  src: url("../assets/fonts/Aeonik/AeonikBlack-Regular.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
}
@font-face {
  font-family: "Roboto";
  src: url("../assets/fonts/Roboto/Roboto-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Roboto";
  src: url("../assets/fonts/Roboto/Roboto-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

body {
  font-family: "Aeonik", Arial, sans-serif;
  color: var(--gray-800);
}

body.no-scroll {
  overflow: hidden;
}

body,
html {
  height: 100%;
}

body,
html,
* {
  margin: 0;
  padding: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.no-scroll {
  -ms-overflow-style: none;
  scrollbar-width: none;
  overflow: auto;
}

.no-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

a {
  color: var(--gray-800);
}

a:focus-visible {
  outline: 2px solid var(--light-green);
}

h1 {
  font-size: 32px;
  font-weight: 900;
  line-height: 100%;
}

h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
}

.custom-link {
  color: var(--light-green);
}

.highlight {
  font-weight: 700;
}

/* ICONS */
i#wait {
  display: none;
}

.fa-spinner-third.fa-spin {
  animation-duration: 1s;
}

i.icon-danger {
  color: var(--error);
}
i.icon-warning {
  color: var(--warning);
}

/* TABLE */
.table-overflow-wrapper {
  display: grid;
  overflow-x: auto;
}

.responsive-table__mobile {
  display: none;
}

table.is-last-card-element {
  border-radius: 0px 0px 8px 8px;
}
table.is-last-card-element tr:last-child td {
  border-bottom: none;
}
table.is-last-card-element tr:last-child td:first-child {
  border-bottom-left-radius: 8px;
}
table.is-last-card-element tr:last-child td:last-child {
  border-bottom-right-radius: 8px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: inherit;
  background: white;
  overflow-x: scroll;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.data-table th,
.data-table td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}
.data-table tr:has(.col-checkbox) input[type="checkbox"] {
  display: block;
}
.data-table tr:has(td .status-badge) td,
.data-table tr:has(td select) td {
  padding-block: 7px;
}

.data-table tr:has(td .btn) td {
  padding-block: 6px;
}
.data-table tr:has(td.col-quantity .quantity-input) td,
.data-table tr:has(td .product-img) td,
.data-table tr:has(td.col-image img) td,
.data-table tr:has(td input.custom-input) td {
  padding-block: 3px;
}

.data-table th:first-child,
.data-table td:first-child {
  padding-left: 16px;
}

.data-table th:last-child,
.data-table td:last-child {
  padding-right: 16px;
}

.data-table th {
  padding-block: 12px;
  font-size: 12px;
  color: var(--gray-800);
  font-weight: 700;
  line-height: 16px;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table td {
  font-size: 14px;
  color: var(--gray-800);
}

.data-table a {
  text-decoration: underline;
  cursor: pointer;
}

.data-table td a {
  white-space: nowrap;
  color: var(--mid-green);
}

.data-table td a:hover {
  color: var(--light-green);
}

.data-table td a i {
  text-decoration: none;
}

.data-table td a:has(> i) {
  text-decoration: none;
}

.data-table tr.is-clickable {
  cursor: pointer;
  transition: background-color 0.15s;
}

.data-table tr.is-clickable:hover {
  background-color: var(--light-green-20);
}

/* TABLE - sticky header */
.table-sticky-header {
  position: fixed;
  display: none;
  top: 0;
  left: calc(var(--sidebar-collapsed-width) + var(--layout-horizontal-padding) +1px);
  padding-bottom: 5px;
  z-index: 50;
  background: transparent;
  overflow: hidden;
}

.table-sticky-header.is-visible {
  display: block;
}

.table-sticky-header.is-visible thead tr {
  position: relative;
}

.table-sticky-header.is-visible thead tr:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  transform: translateY(100%);
  width: 100%;
  height: 5px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0));
}

/* TABLE - spacer */
.data-table .table-spacer {
  background-color: var(--light-green-10);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gray-200);
}
.data-table .table-spacer--secondary {
  background-color: var(--light-green-20);
}
.data-table .table-spacer td {
  height: var(--table-cell-height);
  padding: 4px 16px;
}

/* TABLE - content divider */
.data-table .table-content-divider {
  background-color: var(--warning-50);
}

.data-table .table-content-divider td {
  height: var(--table-cell-height);
}

.data-table .table-content-divider__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-weight: 700;
  font-size: 12px;
  color: var(--gray-700);
  text-transform: uppercase;
}

.data-table .table-content-divider__inner::before,
.data-table .table-content-divider__inner::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--gray-200);
}

.data-table .table-content-divider__toggle-wrapper {
  position: absolute;
  right: 0;
  padding-left: 16px;
  background: var(--warning-50);
}

.data-table .table-content-divider__toggle {
  padding: 5px 8px;
  background: var(--warning-100);
  box-shadow: inset 0 0 0 1px var(--warning);
}

.data-table .table-content-divider__toggle i {
  transition: transform 0.15s ease;
}

.data-table .table-content-divider__toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.data-table
  .table-content-divider:not(:has(~ .table-content-divider)):has(.table-content-divider__toggle[aria-expanded="false"])
  td {
  border-bottom: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* TABLE - empty state */
.data-table .empty-table-notification td {
  text-align: center;
}

/* TABLE - product sub-row */
.data-table .product-sub-row td.col-nb,
.data-table .product-sub-row td.col-quantity {
  text-align: center;
  vertical-align: middle;
}

.data-table .product-sub-row td {
  color: var(--gray-600);
}

.data-table .product-sub-row td i {
  color: var(--gray-600);
}

.data-table .replacement-row {
  background-color: var(--light-orange-20);
}

.data-table .replacement-row td {
  height: var(--table-cell-height);
}

.data-table .replacement-row .col-colspan-right {
  text-align: right;
}

/* TABLE - sub-row */
.data-table .sub-row td > div {
  max-width: 70%;
}
.data-table .main-row:has(+ .main-row-inner) th,
.data-table .main-row:has(+ .main-row-inner) td,
.data-table .main-row:has(+ .sub-row) th,
.data-table .main-row:has(+ .sub-row) td,
.data-table .main-row-inner:has(+ .sub-row) th,
.data-table .main-row-inner:has(+ .sub-row) td,
.data-table .main-row-inner:has(+ .main-row-inner) th,
.data-table .main-row-inner:has(+ .main-row-inner) td {
  border-bottom: none;
}

.data-table .product-groups-path td,
.data-table .product-groups-path th {
  height: var(--table-cell-height);
  padding-block: 12px;
  background-color: var(--light-green-10);
}

.data-table .product-groups-path__content {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.data-table .product-groups-path span {
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  line-height: 100%;
  color: var(--gray-800);
  text-transform: uppercase;
}

.data-table .product-groups-path span a {
  text-decoration: underline;
  color: var(--gray-800);
}

.data-table .product-groups-path span:not(:first-child) {
  padding-left: 8px;
  border-left: 1px solid var(--gray-400);
}

/* TABLE - not orderable row */
.data-table .not-orderable-row.table-spacer {
  background-color: var(--gray-50);
}

.data-table .not-orderable-row.table-spacer.table-spacer--secondary {
  background-color: var(--gray-100);
}

.data-table .not-orderable-row .col-code button[data-modal],
.data-table .not-orderable-row .col-manufacturer-code button[data-modal] {
  color: var(--gray-600);
}

.data-table .not-orderable-row.main-row td,
.data-table .not-orderable-row.sub-row td {
  color: var(--gray-600);
}

/* TABLE - col styles */
.data-table .col-checkbox {
  width: 40px;
  padding-left: 12px;
  padding-right: 12px;
  text-align: center;
  vertical-align: middle;
}

.data-table .col-checkbox span {
  display: flex;
  align-items: center;
  justify-content: center;
}

.data-table .product-img,
.data-table .col-image img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  text-align: center;
}

.data-table .col-image {
  width: 62px;
}

.data-table td.col-image {
  text-align: center;
}

.data-table .col-select,
.data-table .col-actions {
  width: 1px;
  min-width: 1px;
  text-align: right;
}

.data-table .col-e-invoice {
  text-align: center;
}

.data-table .col-nb {
  min-width: 65px;
  width: 65px;
  font-size: 12px;
  color: var(--gray-600);
  text-align: center;
}

.data-table .col-comment,
.data-table .col-info {
  width: 40px;
  text-align: center;
}

.data-table .col-link {
  width: 40px;
}

.data-table .col-link a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.data-table .col-info i {
  vertical-align: middle;
}
.data-table .col-code button[data-modal],
.data-table .col-manufacturer-code button[data-modal] {
  white-space: nowrap;
  color: var(--mid-green);
  text-decoration: underline;
}

.data-table .col-manufacturer-code,
.data-table .col-code {
  width: 140px;
  white-space: nowrap;
}

.data-table .col-code:has(.copy-button) {
  width: 154px;
}

.data-table .col-code .copy-button {
  margin-left: 4px;
  transition: color 0.15s ease;
}

.data-table .col-code .copy-button:hover {
  color: var(--light-green);
}

.data-table .col-title {
  width: auto;
  min-width: 210px;
}

.data-table .col-warehouse {
  width: 100px;
}

.data-table .col-product-not-found {
  text-align: center;
  color: var(--error);
}

.data-table .col-availability,
.data-table .col-availability-detail,
.data-table .col-wholesale,
.data-table .col-retail {
  white-space: nowrap;
}

.data-table .col-transportation-fee {
  width: 150px;
  text-align: right;
}

.data-table .col-price,
.data-table .col-wholesale,
.data-table .col-retail,
.data-table .col-vat,
.data-table .col-sum,
.data-table .col-paid-sum,
.data-table .col-retprice {
  width: 85px;
  text-align: right;
  white-space: nowrap;
}

.data-table .col-status,
.data-table .col-unit {
  width: 1px;
  text-align: center;
  white-space: nowrap;
}

.data-table .col-availability {
  width: 130px;
  min-width: 130px;
}

.data-table .col-availability-list {
  display: flex;
  gap: 4px;
}

.data-table .col-availability-detail {
  width: 64px;
}

.data-table .col-availability-quantity,
.data-table .col-quantity {
  width: 80px;
  text-align: center;
}

.data-table .col-vehicle {
  min-width: 150px;
}

/* TABLE - add files  */
.data-table .col-add-files,
.data-table .col-files {
  text-align: center;
}

.data-table .col-files {
  min-width: 104px;
}

.data-table .col-files-list {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.data-table .col-files-list .file-wrapper {
  position: relative;
  transition: transform var(--toggle-animation-duration) ease;
}

.data-table .col-files-list .file-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  width: 18px;
}

.data-table .col-files-list .file-link i {
  font-size: 18px;
}

.data-table .col-files-list .file-delete-link {
  position: absolute;
  top: -5px;
  right: -3px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  background-color: white;
  border: 1px solid var(--gray-600);
  border-radius: 50%;
  text-decoration: none;
  color: var(--gray-600);
  transition: all var(--color-transition-duration) ease;
}

.data-table .red .col-files-list .file-delete-link {
  border: 1px solid var(--error-500);
  color: var(--error-500);
}

.data-table .col-files-list .file-delete-link i {
  color: inherit;
  font-size: 9px;
  font-weight: 900;
}

.data-table .col-files-list .file-delete-link:hover {
  background: var(--error-500);
  border-color: var(--error-500);
  color: #fff;
}

/* Those warehouse styles were initially declared in the owf.css file (live version) */
.data-table .col-availability span.L_g {
  border-bottom: 3px solid #00b700;
  font-family: Consolas, monospace;
}

.data-table .col-availability span.L_b {
  border-bottom: 3px solid #009aed;
  font-family: Consolas, monospace;
}

.data-table .col-availability span.L_y {
  border-bottom: 3px solid #e1b400;
  font-family: Consolas, monospace;
}

/* TABLE - summary-row */
.data-table .summary-row__label {
  text-align: right;
}
.data-table .summary-row td {
  font-weight: 700;
  font-size: 16px;
  line-height: 100%;
}

.data-table .summary-row .col-sum {
  color: var(--error-500);
}

.data-table .summary-row .col-paid-sum {
  color: var(--success-500);
}

/* TABLE - summary */
.summary-table {
  table-layout: auto;
  width: 100%;
  border-collapse: collapse;
}
.summary-table th.col-spacer,
.summary-table .col-spacer:first-child,
.summary-table .col-spacer {
  width: 100%;
  min-width: 0;
  padding: 0;
}

.summary-table .col-transport,
.summary-table .col-post-order {
  min-width: 200px;
}

.summary-table .col-note {
  min-width: 300px;
}

.summary-table .col-without-vat,
.summary-table .col-vat,
.summary-table .col-sum {
  min-width: 110px;
  text-align: right;
}

.summary-table tbody tr .col-sum {
  font-weight: 700;
}

/* SUMMARY PRICES */
.summary-container {
  display: grid;
  grid-template-columns: auto auto;
  gap: 16px 24px;
  justify-self: end;
  align-items: center;
  width: fit-content;
  padding: 16px 24px;
  margin-left: auto;
}

.summary-container:not(:has(> *)) {
  display: none;
}

.summary-container .summary-label {
  white-space: nowrap;
  text-align: left;
  font-weight: 700;
}

.summary-container .summary-amount {
  white-space: nowrap;
  text-align: right;
}

.summary-container .summary-amount--overdue {
  color: var(--error-500);
}

/* Tires */
.data-table .col-season {
  width: 70px;
}

.data-table .col-measurement {
  width: 70px;
}

.data-table .col-manufacturer {
  width: auto;
}

.data-table .col-model {
  width: 150px;
}

.data-table .col-lisi {
  width: 84px;
}

.data-table .col-label {
  width: 163px;
}

/* All open orders table */
.data-table .col-order-title {
  font-size: 18px;
}

.data-table td.col-icon-btn {
  padding: 0px !important;
}

.data-table .col-cart {
  width: 1px;
}

.data-table td:has(.table-cart-buttons) {
  width: 1px;
}

.data-table .application-code-name {
  display: flex;
  flex-direction: column;
}

.data-table img[onmouseover] {
  cursor: pointer;
}

/* TABLE - Custom grid table */
.table-columns {
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  min-width: 300px;
}

.table-columns[data-table-columns="4"] {
  min-width: 1400px;
}

.table-columns[data-table-columns="3"] {
  min-width: 1100px;
}

.table-columns[data-table-columns="2"] {
  min-width: 800px;
}

.table-columns__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 8px 9px 16px;
  min-width: 0;
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-200);
  border-right: 1px solid var(--gray-200);
}

.table-columns__item.is-last-row {
  border-bottom: none;
}

.table-columns__item.is-last-column {
  border-right: none;
}

.table-columns__item-title {
  min-width: 160px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  white-space: nowrap;
}

.table-columns__item-value {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-columns__item-value-inner {
  display: flex;
  flex-wrap: wrap;
  column-gap: 16px;
  white-space: normal;
}

.table-columns__item a {
  white-space: nowrap;
  color: var(--light-green);
}

.table-columns__item--divider {
  text-align: center;
  justify-content: center;
  background-color: var(--light-green-10);
  line-height: 17px;
}

/* TABLE - sorting */
.table__sorter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  white-space: nowrap;
}

.table__sorter-links {
  display: inline-flex;
  flex-direction: column;
}

.table__sorter-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 8px;
  text-decoration: none;
  overflow: hidden;
}

.table__sorter-links a:after {
  display: inline-block;
  height: 8px;
  width: 18px;
  min-height: 8px;
  min-width: 18px;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  color: var(--gray-600);
  font-family: "Font Awesome 6 Pro";
  font-weight: 400;
  line-height: 1;
  font-size: 17px;
  text-align: center;
  transition: all 0.15s ease-out;
}

.table__sorter-links a.table__sorter-asc::after {
  content: "\f0de";
}

.table__sorter-links a.table__sorter-desc::after {
  content: "\f0dd";
  transform: translateY(-8px);
}

.table__sorter-links a.current::after {
  font-weight: 700;
  color: var(--gray-700);
}

.table__sorter-links a:hover::after {
  color: var(--light-green);
}

/* TABLE - filters */
.table-checkbox-filters {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 11px var(--card-padding);
  border-bottom: 1px solid var(--gray-200);
}

.table-filters--icon-text,
.table-checkbox-filters--icon-text {
  align-items: flex-start;
  font-size: 14px;
  line-height: 100%;
  color: var(--gray-800);
}

.table-filters--icon-text i,
.table-checkbox-filters--icon-text i {
  color: var(--gray-600);
}

.table-checkbox-filters__checkboxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.table-date-filter {
  display: flex;
  align-items: center;
}

.table-date-filter__item {
  padding: 0 16px;
  color: var(--gray-800);
  font-size: 14px;
  font-weight: 400;
  line-height: 100%;
  user-select: none;
  -webkit-user-select: none;
}

.table-date-filter__item:first-child {
  padding-left: 0;
}

.table-date-filter__item:last-child {
  padding-right: 0;
}

.table-date-filter__item:not(:first-child) {
  border-left: 1px solid var(--gray-200);
}

.table-date-filter__item.current {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* TABLE - select filter */
.table-select-filters {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.table-select-filters[aria-hidden="true"]:not(.toggle-smooth) {
  display: none;
}

/* Smooth toggle inside .card__header */
.card__header:has(> .table-select-filters.toggle-smooth) {
  transition: padding-bottom var(--toggle-animation-duration) ease;
}
.card__header:has(> .custom-dropdown__wrapper.toggle-smooth[aria-hidden="true"]),
.card__header:has(> .table-select-filters.toggle-smooth[aria-hidden="true"]) {
  padding-bottom: var(--card-header-collapsed-padding-bottom, calc(var(--card-padding) - 8px));
}

.table-select-filters__group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  align-items: end;
}

.table-select-filter {
  position: relative;
}

.table-select-filter__select-display.custom-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 34px;
  padding: 8px 16px 8px 8px;
  cursor: pointer;
}
.table-select-filter__select-display.custom-input.has-selected {
  box-shadow: inset 0 0 0 1px var(--gray-600);
}
.table-select-filter[aria-expanded="true"] .table-select-filter__select-display.custom-input {
  box-shadow: inset 0 0 0 2px var(--light-green);
}

.table-select-filter__selected-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--gray-600);
}

.table-select-filter i {
  color: var(--gray-600);
  font-size: 14px;
  line-height: 100%;
  transition: transform 0.2s ease;
}

.table-select-filter[aria-expanded="true"] .fa-chevron-down {
  transform: rotate(180deg);
}

.table-select-filter__dropdown {
  display: none;
  position: absolute;
  top: 105%;
  left: 0;
  right: 0;
  width: 320px;
  border: 1px solid var(--gray-200);
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.15);
  background: #fff;
  margin-top: 2px;
  z-index: 9;
}
.table-select-filter__dropdown.align-right {
  left: auto;
  right: 0;
}

.table-select-filter[aria-expanded="true"] .table-select-filter__dropdown {
  display: block;
}

.table-select-filter__dropdown-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 12px 0;
  background-color: var(--gray-50);
}

.table-select-filter__selected-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4px;
}
.table-select-filter__selected-tags .table-select-filter__tag:last-child {
  margin-bottom: 12px;
}

.table-select-filter__tag {
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px var(--gray-200);
  padding-left: 8px;
  background-color: #fff;
  max-width: 100%;
  overflow: hidden;
  color: var(--gray-800);
}
.table-select-filter__tag:hover {
  box-shadow: inset 0 0 0 1px var(--gray-600);
}

.table-select-filter__tag-label {
  padding-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  line-height: 140%;
  font-family: "Aeonik", Arial, sans-serif;
}

.table-select-filter__tag .remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  min-width: 24px;
  height: 24px;
  cursor: pointer;
  font-weight: bold;
}

.table-select-filter__tag-counter {
  color: var(--gray-800);
}

.table-select-filter__options-list {
  max-height: 300px;
  list-style: none;
  overflow-y: auto;
}

.table-select-filter__options-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 16px;
  line-height: 16px;
}
.table-select-filter__options-list li {
  border-top: 1px solid var(--gray-200);
}

.table-select-filter__options-list li:hover,
.table-select-filter__options-list li.keyboard-focus {
  background: var(--light-green-20);
}

.table-select-filter__options-list li span {
  margin-bottom: -1px;
  transition: color 0.15s ease;
}

.table-select-filters__actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

/* TABLE - range filter */
/* Range filters come in any order among the select filters: the wide slider takes two columns,
   "dense" lets the following filters fill the gap left when it wraps to the next row */
.table-select-filters__group:has(> .table-range-filter) {
  grid-auto-flow: row dense;
  align-items: start;
}

/* Alternative layout: range filters in their own group after the select filters */
.table-select-filters__group--range {
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  align-items: stretch;
}
.table-select-filters__group--range > .table-range-filter {
  grid-column: auto;
}

.table-range-filter {
  --range-thumb-size: 16px;
  --range-track-height: 4px;
  display: flex;
  grid-column: span 2;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  background-color: #fff;
  transition: box-shadow 0.2s;
}

.table-range-filter__body {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--gray-200);
}

.table-range-filter.has-selected .table-range-filter__body {
  box-shadow: inset 0 0 0 1px var(--gray-600);
}

.table-range-filter__control {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding-top: 4px;
}

.table-range-filter__label {
  min-width: 0;
  padding-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  /* text-align: center; */
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-800);
}

.table-range-filter__input.custom-input {
  flex: 0 0 50px;
  width: 50px;
  height: 34px;
  padding: 8px 4px 6px;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--mid-green);
  -moz-appearance: textfield;
  appearance: textfield;
  box-shadow:
    inset 0 0 0 1px var(--gray-200),
    var(--box-shadow-light);
}
.table-range-filter__input.custom-input:focus {
  box-shadow:
    inset 0 0 0 2px var(--light-green),
    0 0 0 3px var(--light-green-20);
}
.table-range-filter__input::-webkit-outer-spin-button,
.table-range-filter__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.table-range-filter__slider {
  position: relative;
  height: var(--range-thumb-size);
}

.table-range-filter__track {
  position: absolute;
  top: 50%;
  left: calc(var(--range-thumb-size) / 2);
  right: calc(var(--range-thumb-size) / 2);
  height: var(--range-track-height);
  transform: translateY(-50%);
  border-radius: var(--range-track-height);
  background-color: var(--gray-100);
}

.table-range-filter__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: inherit;
  background-color: var(--light-green);
}

.table-range-filter__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  z-index: 1;
}
.table-range-filter__range.is-on-top {
  z-index: 2;
}

.table-range-filter__range::-webkit-slider-runnable-track {
  height: 100%;
  background: transparent;
  border: none;
}
.table-range-filter__range::-moz-range-track {
  height: 100%;
  background: transparent;
  border: none;
}

.table-range-filter__range::-webkit-slider-thumb {
  width: var(--range-thumb-size);
  height: var(--range-thumb-size);
  border: 2px solid var(--light-green);
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
  transition: box-shadow 0.15s;
}
.table-range-filter__range::-moz-range-thumb {
  box-sizing: border-box;
  width: var(--range-thumb-size);
  height: var(--range-thumb-size);
  border: 2px solid var(--light-green);
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  pointer-events: auto;
  transition: box-shadow 0.15s;
}

.table-range-filter__range:focus-visible::-webkit-slider-thumb {
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.2),
    0 0 0 4px var(--light-green-20);
}
.table-range-filter__range:focus-visible::-moz-range-thumb {
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.2),
    0 0 0 4px var(--light-green-20);
}

.table-range-filter__marks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.table-range-filter__mark {
  position: absolute;
  top: 50%;
  width: 1px;
  height: 8px;
  transform: translate(-50%, -50%);
  background-color: var(--gray-400);
}
.table-range-filter__mark--major {
  height: 10px;
  background-color: var(--gray-600);
}

.table-range-filter__ticks {
  position: relative;
  height: 11px;
  margin: 0 calc(var(--range-thumb-size) / 2);
  font-size: 11px;
  line-height: 100%;
  font-variant-numeric: tabular-nums;
  color: var(--gray-600);
}

.table-range-filter__tick {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}

/* Top filters */
.top-filters.table-select-filters {
  padding: 0;
}

.top-filters .table-select-filters__group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.top-filters .form-group {
  flex: 1 1 auto;
  min-width: 180px;
  max-width: 240px;
}

/* TABLE - select car dropdown button */
.table-select-car {
  width: 100%;
  max-width: 500px;
}

.table-select-car .dropdown-header {
  display: flex;
  flex-direction: column;
  padding: 12px;
  background-color: var(--gray-50);
}
.table-select-car .dropdown-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* TABLE - Double select cart buttons */
.table-cart-buttons {
  display: flex;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--light-green);
  box-shadow: none;
}
.table-cart-buttons .btn {
  padding: 5px 8px;
  box-shadow: inset 0 0 0 1px var(--light-green);
  border-radius: 0;
}
.table-cart-buttons .btn:disabled,
.table-cart-buttons .btn.disabled {
  box-shadow: inset 0 0 0 1px var(--light-green);
}

.table-cart-buttons .btn:first-child {
  border-radius: 8px 0 0 8px;
}

.table-cart-buttons .btn:not(:first-child) {
  border-radius: 0 8px 8px 0;
  margin-left: -1px;
}

.table-cart-buttons .btn i {
  width: 20px;
  font-size: 14px;
}

/* TABLE - accordion */
.table-accordion__active {
  transition: background-color 0.2s;
}

.table-accordion__toggle-wrapper {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.table-accordion__toggle {
  display: flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
}

.table-accordion__row {
  display: none;
  border: none;
  background-color: #f3f3f3;
}

.table-accordion__row[aria-hidden="false"] {
  display: table-row;
}

.table-accordion__row:has(+ .table-accordion__row-sub) th,
.table-accordion__row:has(+ .table-accordion__row-sub) td,
.table-accordion__row:has(+ .table-accordion__row-inner) th,
.table-accordion__row:has(+ .table-accordion__row-inner) td {
  border-bottom: none;
}

.table-accordion__toggle i {
  transition: transform var(--toggle-animation-duration) cubic-bezier(0.4, 0, 0.2, 1);
}

.table-accordion__active .table-accordion__toggle i {
  transform: rotate(180deg);
}

.cards-section {
  display: flex;
  gap: var(--layout-padding);
}

.card {
  width: 100%;
  background-color: white;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
}

.card.overflow-visible {
  overflow: visible;
}

.card.overflow-hidden {
  overflow: hidden;
}

.card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: var(--card-padding);
  border-radius: 8px 8px 0 0;
}

.card__header h2 {
  font-size: 20px;
}

.card__header h3 {
  font-size: 18px;
}

.card__header h2,
.card__header h3 {
  line-height: 24px;
  color: var(--gray-800);
}

.card__header:has(+ *) {
  border-bottom: 1px solid var(--gray-200);
}
.card__header:has(+ .table-overflow-wrapper .toggle-target[aria-hidden="true"]) {
  border-bottom: none;
}

.card__header.no-border {
  border-bottom: none;
}

.card__header-content {
  display: flex;
  gap: 16px;
  align-items: center;
}

.card__header-section {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gray-600);
}

.card__subtitle-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.card__header--link-back {
  line-height: 100%;
  color: var(--gray-800);
  font-size: 16px;
}

h2.card__header--title-subtitle,
h3.card__header--title-subtitle,
.card__header--title-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: var(--gray-300);
  padding-left: 12px;
  border-left: 1px solid var(--gray-200);
}

.card__header--title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-800);
}

.card__header--title-separator {
  width: 1px;
  height: 16px;
  background-color: var(--gray-200);
}

.card__header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card__content {
  display: flex;
  flex-direction: column;
  padding: var(--card-padding);
  gap: 24px;
}

.card__footer {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  padding: var(--card-padding);
}

.card__filters {
  display: flex;
  gap: 16px;
  align-items: end;
}

.card__filters .form-group {
  flex-grow: 1;
  width: 200px;
  max-width: 200px;
}

.card__filters .form-group:has(.date-input) {
  width: 150px;
}

/* BUTTON */
button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  outline: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

button:focus-visible {
  outline: 2px solid var(--light-green);
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  text-wrap: nowrap;
  text-decoration: none;
  color: inherit;
  line-height: 100%;
}

.btn-small {
  padding: 8px 14px;
}

/* BUTTON - primary */
.btn-primary {
  background-color: var(--light-green);
  box-shadow: inset 0 0 0 1px var(--light-green);
  color: white;
}

.btn-primary:hover {
  background-color: #3e967b;
  box-shadow: inset 0 0 0 1px #3e967b;
}

.btn-primary:active {
  outline: 4px solid var(--light-green-20);
}

/* BUTTON - outline */
.btn-outline {
  background-color: white;
  box-shadow: inset 0 0 0 1px var(--light-green);
  color: var(--gray-800);
  outline: 4px solid transparent;
}

.btn-outline:hover {
  color: var(--light-green);
}

.btn-outline:active {
  color: white;
  background-color: var(--light-green);
  outline: 4px solid var(--light-green-20);
}

/* BUTTON - tertiary */
.btn-teritary {
  color: var(--light-green);
}

.btn-teritary:hover {
  background-color: var(--light-green-10);
}

.btn-teritary:active {
  box-shadow: inset 0 0 0 1px var(--light-green);
}

/* BUTTON - gray */
.btn-gray {
  background-color: var(--gray-100);
  box-shadow: inset 0 0 0 1px var(--gray-100);
  color: var(--gray-800);
}

.btn-gray:hover {
  background-color: var(--gray-200);
}

.btn-gray:active {
  box-shadow: inset 0 0 0 1px var(--light-green);
}

/* BUTTON - danger */
.btn-danger {
  background-color: var(--error-500);
  box-shadow: inset 0 0 0 1px var(--error-500);
  color: white;
}

.btn-danger:hover {
  background-color: var(--error);
  box-shadow: inset 0 0 0 1px var(--error);
}

.btn-danger:active {
  outline: 4px solid var(--error-100);
}

/* BUTTON - danger outline */
.btn-danger-outline {
  background-color: white;
  box-shadow: inset 0 0 0 1px var(--error-500);
  color: var(--gray-800);
  outline: 4px solid transparent;
}

.btn-danger-outline:hover {
  box-shadow: inset 0 0 0 1px var(--error);
  color: var(--error-500);
}

.btn-danger-outline:active {
  background-color: var(--error-500);
  color: white;
  outline: 4px solid var(--error-100);
}

/* BUTTON - disabled */
.btn:disabled,
.btn[aria-disabled="true"] {
  background-color: var(--gray-100);
  color: var(--gray-600);
  border-color: transparent;
  cursor: not-allowed;
  box-shadow: inset 0 0 0 1px var(--gray-100);
  outline: none;
  font-weight: 700;
}

.btn[aria-hidden="true"] {
  display: none;
}

.back-btn {
  font-size: 18px;
  line-height: 24px;
  color: var(--gray-600);
}

/* TOGGLE BUTTON - button */
.toggle-btn i {
  transition: transform 0.15s ease;
}

.toggle-btn[aria-expanded="false"] i {
  transform: rotate(180deg);
}

.toggle-btn-target[aria-hidden="true"] {
  display: none;
}

/* TOGGLE BUTTON - target */
.toggle-target.toggle-smooth {
  transition:
    max-height var(--toggle-animation-duration) ease,
    padding-top var(--toggle-animation-duration) ease,
    padding-bottom var(--toggle-animation-duration) ease;
}

.toggle-target.toggle-smooth[aria-hidden="true"] {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  border-bottom: none;
}

.icon-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 24px;
  min-width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: none;
  outline: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  border-radius: 50%;
  color: var(--gray-600);
  transition:
    background-color var(--color-transition-duration) ease-in-out,
    color var(--color-transition-duration) ease-in-out;
}

.icon-btn:hover {
  background-color: var(--gray-100);
  color: var(--gray-800);
}

.icon-btn:active {
  background-color: var(--gray-100);
  transition: none;
  color: var(--gray-800);
}

.chevron-down {
  width: 14px;
  height: 14px;
  background-image: url("../assets/icons/chevron-down.svg");
  background-size: 14px 14px;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
}

.custom-input::placeholder {
  font-size: 14px;
  color: var(--gray-600);
}

.date-input {
  cursor: pointer;
}

.icon-input-wrapper {
  position: relative;
}

.icon-input-wrapper > i,
.icon-input-wrapper .input-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-600);
  font-size: 14px;
  pointer-events: none;
}

.icon-input-wrapper input {
  padding-right: 38px;
}

.icon-input-wrapper.icon-left > i,
.icon-input-wrapper.icon-left .input-icon {
  left: 14px;
  right: unset;
}

.icon-input-wrapper.icon-left input {
  padding-left: 38px;
  padding-right: 14px;
}

.custom-checkbox {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
  user-select: none;
  color: #0d0f24;
}

.custom-checkbox .required:after {
  content: " *";
  color: var(--error);
}

input[type="checkbox"] {
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--checkbox-border-color);
  appearance: none;
  background-color: white;
  outline: none;
  transition: outline 0.1s;
  border-radius: 3px;
  cursor: pointer;
  flex-shrink: 0;
}

input[type="checkbox"]:checked {
  background-size: cover;
}

input[type="checkbox"]:not(:disabled):checked {
  border-color: var(--light-green);
  background-image: url("../assets/icons/check.svg");
  background-color: var(--light-green);
}

input[type="checkbox"]:disabled {
  background-color: var(--checkbox-disabled-bg-color);
  cursor: not-allowed;
}

input[type="checkbox"]:disabled:checked {
  background-image: url("../assets/icons/check.svg");
}

select:disabled,
input[type="text"]:disabled {
  background-color: var(--gray-50);
  cursor: not-allowed;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--dark-green);
  display: flex;
  align-items: center;
  padding: 16px 24px;
  height: var(--topbar-height);
}

.topbar__searchbars {
  display: flex;
  gap: 16px;
  flex: 1 1 0;
}

.topbar__mobile {
  display: none;
}

.topbar__main {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.topbar__right {
  display: flex;
  gap: 24px;
}

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

.topbar__delivery .fa-truck-arrow-right {
  font-size: 24px;
  color: var(--light-green);
}

.white-chevron {
  color: white;
  font-size: 14px;
}

.topbar__delivery--time {
  font-size: 20px;
  color: white;
  font-weight: 700;
}

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

.topbar__language--lang {
  color: white;
  font-size: 16px;
  padding-top: 2px;
}

.topbar__cart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--dark-green-20);
  position: relative;
  cursor: pointer;
  font-size: 16px;
  color: var(--light-green);
}

.topbar__cart i {
  color: var(--light-green);
}

.topbar__cart--count {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--pink);
  color: white;
  font-weight: 700;
  font-size: 10px;
  z-index: 2;
}

.topbar__user {
  position: relative;
  cursor: pointer;
  color: white;
}

.topbar__user-greeting {
  font-size: 14px;
  margin-bottom: 4px;
}

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

.topbar__user-name {
  font-weight: 700;
  font-size: 14px;
}

.topbar__user-chevron {
  width: 14px;
  height: 14px;
  display: inline-block;
}

.dropdown-container {
  position: relative;
}

.user-dropdown {
  min-width: 220px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.user-dropdown:focus {
  outline: none;
}

.user-dropdown.active {
  display: flex;
  flex-direction: column;
}

.user-dropdown__item {
  width: 100%;
  padding: 10px 16px;
  color: var(--gray-800);
  font-size: 16px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  transition: background 0.1s;
}

.user-dropdown__item:not(button) {
  cursor: default;
  background: none;
}

button.user-dropdown__item:hover,
button.user-dropdown__item:focus {
  background: #f0f0f0;
}

.user-dropdown__item-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-dropdown__item-content img,
.user-dropdown__chevron {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: inline-block;
}

.user-dropdown__item--company {
  justify-content: space-between;
}

.user-dropdown__chevron {
  margin-left: 8px;
  flex-shrink: 0;
}

.user-dropdown__item--heading {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-800);
}

.user-dropdown__item--info {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  cursor: default;
  padding-top: 12px;
  padding-bottom: 12px;
}

.user-dropdown__item--info span:first-child {
  font-weight: 700;
  font-size: 12px;
}

.logo {
  width: auto;
  margin-right: 80px;
}

.main-area {
  min-height: 100vh;
  padding-top: var(--topbar-height);
  background-color: var(--dark-green);
  display: flex;
  flex-direction: column;
}
/* sidebar */
.sidebar {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  width: var(--sidebar-width);
  height: calc(100vh - var(--topbar-height));
  height: calc(100dvh - var(--topbar-height));
  padding: 0px 10px;
  background: var(--dark-green);
  transition: var(--sidebar-transition);
  z-index: 100;
  overflow-x: hidden;
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
  transition: var(--sidebar-transition);
}

/* Sidebar hover collapse functionality */
.sidebar:hover .sidebar__item-label,
.sidebar.drawer-open:hover .sidebar__item-label {
  display: block;
  opacity: 1;
  width: auto;
}

.sidebar.collapsed .sidebar__item-label {
  display: none;
}

.sidebar-toggle {
  display: flex;
  align-items: center;
  padding-top: 8px;
  padding-left: 6px;
  padding-bottom: 6px;
}

.sidebar-toggle--btn {
  background-color: inherit;
  padding: 7px;
  display: flex;
  align-items: center;
  color: var(--light-green);
}

.sidebar-toggle--icon {
  font-size: 14px;
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed .sidebar-toggle--icon {
  transform: rotate(180deg);
}

.sidebar-toggle--label {
  background-color: inherit;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  margin-left: 10px;
  overflow: hidden;
  white-space: nowrap;
  opacity: 1;
  width: auto;
  transition:
    width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar__items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  padding: 8px;
  transition: color var(--color-transition-duration) ease-in-out;
  cursor: pointer;
  text-decoration: none;
}

.sidebar__item svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: var(--light-green);
  transition: fill var(--color-transition-duration) ease-in-out;
}

.sidebar__item:hover svg {
  fill: #b7dbd0;
}

.sidebar__item:hover .sidebar__item-label {
  color: #b7dbd0;
}

.sidebar__item-label {
  overflow: hidden;
  white-space: nowrap;
  opacity: 1;
  transition:
    width 0.3s,
    opacity 0.2s,
    margin 0.3s,
    color var(--color-transition-duration) ease-in-out;
  width: auto;
  flex-shrink: 1;
  color: var(--light-green);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  text-overflow: ellipsis;
}

.sidebar.collapsed .sidebar__item-label {
  width: 0;
  opacity: 0;
  pointer-events: none;
}

.sidebar__item:hover {
  cursor: pointer;
  color: #b7dbd0;
}

.sidebar__item.active {
  background-color: var(--dark-green-20);
}

.content {
  margin-left: var(--sidebar-collapsed-width);
  transition: var(--content-transition);
  background: var(--dark-green);
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Navigation */
.nav-container {
  position: sticky;
  top: var(--topbar-height);
  background: var(--dark-green);
  flex-shrink: 0;
  z-index: 10;
}

.nav-container:not(:has(.dashboard-nav)) + .container {
  border-top-left-radius: 8px;
}
.top-nav__wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 24px 0;
  gap: 8px;
}

.top-nav {
  display: flex;
  gap: 30px;
  background-color: var(--dark-green);
}

.top-nav__item {
  color: white;
  font-size: 16px;
  padding-bottom: 16px;
  cursor: pointer;
  text-decoration: none;
}

.top-nav__item.active {
  box-shadow: inset 0 -4px 0 var(--light-green);
}

.top-nav__global-filters {
  display: flex;
  gap: 16px;
  align-items: center;
}

.top-nav__global-filters .custom-checkbox {
  color: white;
}

.container {
  display: flex;
  flex-direction: column;
  gap: var(--layout-padding);
  padding: var(--layout-padding) var(--layout-horizontal-padding) 48px;
  background-color: var(--gray-50);
  flex: 1;
}

.bottom-nav__wrapper {
  display: flex;
}

.bottom-nav__wrapper:has(.dashboard-nav) {
  border-top-left-radius: 8px;
  background-color: white;
  border-bottom: 1px solid var(--gray-200);
}

.dashboard-nav {
  display: flex;
  gap: 24px;
  padding: 24px 24px 0px 24px;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
}

.dashboard-nav::-webkit-scrollbar {
  display: none;
}

.dashboard-nav {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.dashboard-nav__item {
  color: var(--gray-600);
  font-size: 16px;
  font-weight: 700;
  line-height: 100%;
  cursor: pointer;
  padding-bottom: 16px;
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--color-transition-duration) ease-in-out;
}

.dashboard-nav__item.active {
  color: var(--light-green);
  box-shadow: inset 0 -4px 0 var(--light-green);
}

.dashboard-nav__item:hover {
  color: var(--light-green);
}

.dashboard-nav__item .fa-triangle-exclamation.icon-warning {
  font-size: 14px;
  animation: fade 1s infinite;
}

@keyframes fade {
  50% {
    opacity: 0;
  }
}

.sidebar-toggle--btn-m {
  display: none;
  justify-content: center;
  align-items: center;
  color: var(--light-green);
  background-color: var(--dark-green);
  width: 60px;
  font-size: 14px;
  border-bottom-right-radius: 8px;
}

.clear-input-btn,
.info-btn,
.searchbar-wrapper #wait {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 14px;
  width: 14px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
}

.clear-input-btn {
  display: none;
}

.info-btn .clear-input-btn:focus-visible,
.info-btn:focus-visible {
  outline-offset: 2px;
}

.clear-input-btn i,
.info-btn i,
.vin-input-box .list-link i,
.searchbar-wrapper #wait {
  color: var(--light-green);
  font-size: 14px;
}

.searchbar-wrapper:focus-within .clear-input-btn i,
.searchbar-wrapper:focus-within .info-btn i,
.vin-input-box:focus-within .clear-input-btn i,
.vin-input-box:focus-within .list-link i,
.searchbar-wrapper:focus-within #wait {
  color: var(--dark-green);
}

.vin-input-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 275px;
  min-width: 275px;
  overflow: hidden;
  padding: 0 16px 0 0;
  color: var(--gray-200);
  background-color: var(--dark-green-20);
  border: 1px solid var(--dark-green-20);
  border-radius: 36px;
  cursor: text;
  transition:
    border 100ms,
    background-color 100ms,
    color 100ms;
}

.vin-input-box:hover {
  border-color: var(--light-green);
}

.vin-input-box:focus-within {
  outline: none;
  border-color: var(--light-green);
  background-color: var(--gray-100);
  color: var(--gray-600);
}

.vin-input-box .prefix {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-width: 32px;
  gap: 2px;
  background-color: #003399;
  color: #ffffff;
  border-top-left-radius: 36px;
  border-bottom-left-radius: 36px;
  padding-left: 2px;
  align-self: stretch;
  text-align: center;
  box-sizing: border-box;
}

.vin-input-box .prefix-icon {
  width: 15.29px;
  height: 14.42px;
  display: block;
}

.vin-input-box .prefix-text {
  font-size: 7.63px;
  display: block;
  white-space: nowrap;
  max-width: 100%;
}

.vin-input-box form {
  width: 100%;
}

.vin-input-box input {
  flex-grow: 1;
  width: 100%;
  padding: 10px 0px;
  border: none;
  outline: none;
  background-color: transparent;
  color: var(--gray-200);
  font-size: 16px;
  -webkit-background-clip: text;
}

.vin-input-box input::placeholder {
  font-size: 16px;
  color: var(--gray-200);
  opacity: 1;
}

.vin-input-box input:-webkit-autofill {
  -webkit-text-fill-color: var(--gray-200);
}

.vin-input-box:focus-within input:-webkit-autofill {
  transition: background-color 5000s ease-in-out 0s;
  -webkit-text-fill-color: var(--gray-800);
}

.vin-input-box:focus-within input {
  color: var(--gray-800);
}

.vin-input-box:focus-within input::placeholder {
  color: #b0b0b0;
}

/* SEARCH - searchbar field */
.searchbar-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--dark-green-20);
  border-radius: 36px;
  border: 1px solid var(--dark-green-20);
  transition:
    border 100ms,
    background-color 100ms;
  padding: 0 16px 0 0;
  max-width: 468px;
  width: 100%;
}

.searchbar-wrapper:hover {
  border-color: var(--light-green);
}

.searchbar-wrapper:focus-within {
  border-color: var(--light-green);
  background-color: var(--gray-100);
  color: var(--gray-600);
}

.searchbar-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  color: white;
  background-color: var(--light-green);
  border-radius: 36px;
  padding: 6px;
}

.searchbar-btn--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.searchbar-btn--icon.type-icon {
  visibility: hidden;
}

.searchbar-btn--icon svg {
  width: 18px;
  height: 14px;
  flex-shrink: 0;
  fill: white;
}
.searchbar-btn--icon i {
  font-size: 14px;
  width: 14px;
  height: 14px;
}

.searchbar-btn--active {
  display: flex;
  margin-left: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.searchbar-wrapper .searchbar {
  position: relative;
  flex-grow: 1;
  width: 100%;
  padding: 12px 2px 8px 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--gray-200);
  font-family: inherit;
  font-size: 16px;
}

.searchbar-wrapper .searchbar::placeholder {
  color: var(--gray-200);
  opacity: 1;
  font-size: 16px;
}

.searchbar-wrapper:focus-within .searchbar::placeholder {
  color: var(--gray-600);
}

.searchbar-wrapper:focus-within .searchbar {
  color: var(--gray-800);
}

.searchbar-wrapper .searchbar-notification {
  padding: 12px 0 8px;
  font-size: 16px;
  color: var(--light-green);
  white-space: nowrap;
  cursor: text;
}

/* SEARCH - searchbar type dropdown */
.searchbar-dropdown .dropdown-item span {
  margin-bottom: -2px;
}

.searchbar-dropdown svg {
  width: 18px;
  height: 14px;
  flex-shrink: 0;
  fill: var(--gray-700);
}

.searchbar-dropdown i {
  color: var(--gray-700);
}

/* SEARCH - autocomplete dropdown */
.autocomplete-dropdown {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  width: max-content;
  max-width: 730px;
  min-width: 100%;
  max-height: 540px;
  top: 110%;
  background-color: white;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  z-index: 99;
  overflow-y: auto;
  transition: box-shadow 0.2s;
}

.autocomplete-dropdown.visual-focus {
  box-shadow:
    var(--box-shadow),
    0 0 4px 1px var(--light-green);
}

.autocomplete-dropdown.active.has-results {
  display: flex;
  flex-direction: column;
}

.autocomplete-dropdown__item {
  position: relative;
}

.autocomplete-dropdown__item,
.autocomplete-dropdown__item-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  color: var(--gray-800);
  text-align: left;
  text-decoration: none;
}

.autocomplete-dropdown__item-link {
  padding: 8px;
}

.autocomplete-dropdown__item:not(:has(.autocomplete-dropdown__item-link)) {
  padding: 8px;
}

.autocomplete-dropdown__item-link:has(+ .autocomplete-dropdown__cart) {
  padding-right: 38px;
}

a.autocomplete-dropdown__item-link:focus-visible {
  outline-offset: -2px;
  outline: 2px solid var(--light-green);
}

.autocomplete-dropdown__row:not(:last-child) .autocomplete-dropdown__item {
  border-bottom: 1px solid var(--gray-200);
}

.autocomplete-dropdown__item .autocomplete-dropdown__icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.autocomplete-dropdown__item .autocomplete-dropdown__icon-wrapper i {
  color: var(--gray-400);
}

.autocomplete-dropdown__item .autocomplete-dropdown__icon-wrapper svg {
  width: 18px;
  height: 14px;
  flex-shrink: 0;
  fill: var(--gray-400);
}

.autocomplete-dropdown__item,
.autocomplete-dropdown__item i,
.autocomplete-dropdown__item svg {
  transition: all 0.15s;
  font-size: 14px;
}

.autocomplete-dropdown__row.keyboard-focus .autocomplete-dropdown__item,
.autocomplete-dropdown__item:hover {
  background-color: var(--light-green-20);
}

.autocomplete-dropdown__row.keyboard-focus .autocomplete-dropdown__item .autocomplete-dropdown__icon-wrapper i,
.autocomplete-dropdown__item:hover .autocomplete-dropdown__icon-wrapper i {
  color: var(--light-green);
}

.autocomplete-dropdown__row.keyboard-focus .autocomplete-dropdown__item .autocomplete-dropdown__icon-wrapper svg,
.autocomplete-dropdown__item:hover .autocomplete-dropdown__icon-wrapper svg {
  fill: var(--light-green);
}

.autocomplete-dropdown__item.disabled {
  background-color: var(--gray-50);
}

.autocomplete-dropdown__item.disabled:hover svg {
  fill: var(--gray-400);
}

.autocomplete-dropdown__item.disabled:hover i {
  color: var(--gray-400);
}

.autocomplete-dropdown__group-overview {
  padding: 6px 8px;
}

.autocomplete-dropdown__cart {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  border-radius: 50%;
  line-height: 100%;
  background-color: var(--gray-100);
  transition: all 0.15s;
}

span.autocomplete-dropdown__cart {
  pointer-events: none;
}

.autocomplete-dropdown__cart i {
  font-size: 12px;
  color: var(--gray-600);
}
.autocomplete-dropdown__group-items .autocomplete-dropdown__item:hover .autocomplete-dropdown__cart,
.autocomplete-dropdown__cart:hover {
  background-color: var(--light-green);
}

.autocomplete-dropdown__group-items .autocomplete-dropdown__item:hover .autocomplete-dropdown__cart i,
.autocomplete-dropdown__cart:hover i {
  color: white;
}

.autocomplete-dropdown__group-items .autocomplete-dropdown__item-link {
  padding-left: 28px;
}

.autocomplete-dropdown__group-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 100%;
  background-color: var(--gray-100);
  transition: all 0.15s;
}

.autocomplete-dropdown__group-toggle i {
  color: var(--gray-600);
}

.autocomplete-dropdown__group-toggle:hover,
.autocomplete-dropdown__group-toggle[aria-expanded="true"] {
  background-color: var(--light-green);
}

.autocomplete-dropdown__group-toggle:hover,
.autocomplete-dropdown__group-toggle:hover i,
.autocomplete-dropdown__group-toggle[aria-expanded="true"],
.autocomplete-dropdown__group-toggle[aria-expanded="true"] i {
  color: white;
}

.autocomplete-dropdown__item:has(.autocomplete-dropdown__group-toggle[aria-expanded="true"]) {
  background-color: var(--light-green-20);
}

.autocomplete-dropdown__group-size {
  transform: translateY(2px);
}

.autocomplete-dropdown__item:has(.autocomplete-dropdown__group-toggle[aria-expanded="true"])
  .autocomplete-dropdown__icon-wrapper
  i {
  color: var(--light-green);
}

.autocomplete-dropdown__group-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.autocomplete-dropdown__group-items[aria-hidden="true"] {
  display: none;
}

.autocomplete-dropdown__title {
  font-size: 14px;
  color: #2f2f2f;
  font-weight: 400;
}

.autocomplete-dropdown__item.disabled .autocomplete-dropdown__title {
  font-weight: 700;
}

.autocomplete-dropdown__title a {
  transition: color 0.15s;
}

.autocomplete-dropdown__title a.autocomplete-dropdown__oe-search-link {
  font-weight: 700;
}

.autocomplete-dropdown__title a:hover {
  color: var(--light-green);
}

select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: none;
  box-shadow: inset 0 0 0 1px var(--gray-200);
  border-radius: 8px;
  padding: 9px 40px 9px 16px;
  color: #2f2f2f;
  font-size: 14px;
  background-color: white;
  background-image: url("../assets/icons/chevron-down-gray.svg");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
  font-family: "Aeonik", Arial, sans-serif;
}
select:hover {
  box-shadow: inset 0 0 0 1px var(--gray-600);
}
select:focus {
  box-shadow: inset 0 0 0 2px var(--light-green);
}

/* MODALS */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background: rgba(0, 0, 0, 0.4);
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  max-height: 80dvh;
  margin: 16px;
  border-radius: 8px;
  background: #fff;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px;
  border-bottom: 1px solid #d6dce1;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-800);
}

.modal-header .close-modal {
  width: 28px;
  min-width: 28px;
  height: 28px;
  margin-left: auto;
  margin-bottom: auto;
}

.modal-header .close-modal i {
  font-size: 20px;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 16px;
  overflow-y: auto;
}

.modal-body__top {
  padding: 16px;
}

.modal-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
}

.modal-footer button {
  flex: 1;
}

/* MODALS - add files to row */
.add-files-modal .modal-content {
  max-width: 600px;
}

.add-files-modal__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.add-files-modal__form-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.add-files-modal__form-content:has(.no-files) {
  flex-direction: row;
  align-items: center;
}

.add-files-modal__form .upload-btn {
  align-self: flex-start;
  padding: 10px 14px;
}

.add-files-modal__form input[type="file"] {
  display: none;
}

.add-files-modal__form .uploaded-files {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.add-files-modal__form .uploaded-files:not(:has(.upload-file-name-item)) {
  display: none;
}

.add-files-modal__form .upload-file-name-item {
  font-size: 14px;
  color: var(--light-green);
  word-break: break-all;
}

.add-files-modal__form .no-files .upload-file-name-item {
  color: var(--gray-600);
}

/* MODALS - universal notification modal */
.notification-modal .modal-header {
  border-bottom: none;
}

.notification-modal .modal-title i {
  display: none;
}

.notification-modal.error .modal-title i.error {
  display: inline-block;
  color: var(--error-500);
}

.notification-modal.success .modal-title i.success {
  display: inline-block;
  color: var(--success-500);
}

/* MODALS - car info modal */
.car-info-modal .modal-content {
  width: 1300px;
  max-width: 100%;
}
.car-info-modal .modal-header {
  padding: 16px;
}

.car-info-modal .modal-body {
  padding: 0;
  gap: 0;
}

.car-info-modal .data-table sup {
  line-height: 50%;
}

.car-info-modal .modal-table-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
  font-weight: 700;
  line-height: 24px;
  font-size: 18px;
  background-color: var(--gray-50);
}

/* MODALS - OE-order modal */
.notification-banner--error button[data-modal="orderSearchModal"] {
  color: var(--error-500);
  font-weight: 700;
}

.notification-banner--error button[data-modal="orderSearchModal"],
.notification-banner--primary button[data-modal="orderSearchModal"] {
  text-decoration: underline;
}

.oe-order-page__modal .modal-content {
  max-width: 992px;
  width: 100%;
}

.oe-order-page__modal .modal-body {
  gap: 0;
  padding: 0;
}

.oe-order-page__modal .modal-body__top {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--gray-200);
}

.oe-order-page__modal .notification-banner {
  align-items: center;
  padding: 12px 24px;
  line-height: 24px;
}

.oe-order-page__modal .notification-banner--success {
  color: var(--success-500);
}

.oe-order-page__modal .notification-banner--success i {
  margin-top: 0;
  color: var(--success-500);
}

.oe-order-page__modal .notification-banner--success,
.oe-order-page__modal .notification-banner--primary,
.oe-order-page__modal .notification-banner--transparent {
  border: none;
  border-radius: 0;
}

.oe-order-page__modal .notification-banner--transparent {
  padding-inline: 16px;
  font-size: 18px;
}

.oe-order-page__modal table {
  min-width: 700px;
  margin-bottom: 16px;
}

.oe-order-page__modal table.data-table .col-name {
  width: unset;
}

.oe-order-page__modal table .col-code,
.oe-order-page__modal table .col-delivery-date {
  width: 160px;
}

.oe-order-page__modal table .col-cart {
  width: 92px;
}

.oe-order-page__modal table td {
  padding: 4px 8px;
}

/* MODALS - product details modal */
.product-details-modal > .modal-content {
  width: calc(100vw - 64px);
  height: 100%;
  max-width: 100%;
  max-height: calc(100vh - 64px);
  margin: 0;
}

.product-details-modal > .modal-content .modal-body {
  padding: 0;
}

.product-details-modal > .modal-content .modal-body > div > .card {
  border: none;
}

.custom-label {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
  color: #2f2f2f;
  color: var(--gray-800);
  font-weight: 700;
  font-size: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.form-group--fixed {
  max-width: 300px;
}

.form-group label {
  padding-top: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-800);
}

.form-group .required:after {
  content: " *";
  color: var(--error);
}

.form-group-h {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group-h input {
  max-width: 70px;
  font-size: 14px;
}

.form-group-h .custom-input::placeholder {
  text-align: center;
}

.custom-input {
  width: 100%;
  max-width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: none;
  box-shadow: inset 0 0 0 1px var(--gray-200);
  border-radius: 8px;
  padding: 10px 14px 8px 14px;
  color: var(--gray-800);
  font-size: 14px;
  background-color: white;
  outline: none;
  transition: box-shadow 0.2s;
  box-sizing: border-box;
  font-family: "Aeonik", Arial, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

textarea.custom-input {
  overflow: auto;
}

textarea.custom-input::-webkit-scrollbar {
  width: 6px;
}

textarea.custom-input::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 8px;
}

.custom-input::-webkit-scrollbar-track {
  background: transparent;
  margin: 6px;
}

.custom-input.custom-input--small {
  padding: 10px 14px 8px 14px;
  height: 34px;
}
.custom-input:hover {
  box-shadow: inset 0 0 0 1px var(--gray-600);
}
.custom-input:focus {
  box-shadow: inset 0 0 0 2px var(--light-green);
}

/* CUSTOM DROPDOWN */
.card__header:has(.custom-dropdown__wrapper) {
  align-items: flex-end;
}
.card__subtitle-header:has(.custom-dropdown__wrapper) {
  flex: 1;
  width: 100%;
}

.custom-dropdown__wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.custom-dropdown {
  position: relative;
  width: 100%;
  max-width: 200px;
}

.custom-dropdown__current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 34px;
  padding: 7px 14px;
  font-size: 14px;
  line-height: 140%;
  background-color: white;
  border: none;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--gray-200);
  cursor: pointer;
  outline: none;
  transition: box-shadow 0.2s;
  color: var(--gray-800);
}

.custom-dropdown__current:hover {
  box-shadow: inset 0 0 0 1px var(--gray-600);
}
.custom-dropdown__current:focus {
  box-shadow: inset 0 0 0 2px var(--light-green);
}

.custom-dropdown__current-label {
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: "Aeonik", Arial, sans-serif;
}

.custom-dropdown__current-label.is-placeholder {
  color: var(--gray-600);
}

.custom-dropdown__current i {
  transition: transform 0.2s ease;
  color: var(--gray-700);
}
.custom-dropdown__current[aria-expanded="true"] i.fa-chevron-down {
  transform: rotate(180deg);
}

.custom-dropdown__clear {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 2px;
  margin-left: auto;
  color: var(--gray-700);
  cursor: pointer;
  border-radius: 8px;
  transition: background-color var(--color-transition-duration);
  font-size: 12px;
  background-color: var(--gray-100);
}

.custom-dropdown__clear[hidden] {
  display: none;
}

.custom-dropdown__clear:hover,
.custom-dropdown__clear:focus-visible {
  background-color: var(--gray-200);
  color: var(--gray-800);
}

.custom-dropdown__current.btn-primary .custom-dropdown__clear {
  color: white;
}

.custom-dropdown__reset-current {
  position: absolute;
  top: -5px;
  right: -3px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  background-color: var(--gray-800);
  border-radius: 50%;
  text-decoration: none;
}

.custom-dropdown__reset-current i {
  color: white;
  font-size: 10px;
  font-weight: 900;
}

.custom-dropdown__content {
  display: flex;
  flex-direction: column;
  position: absolute;
  left: 0;
  right: 0;
  width: max-content;
  max-width: 700px;
  min-width: 100%;
  max-height: 420px;
  top: 112%;
  background-color: white;
  box-shadow:
    inset 0 0 0 1px var(--gray-200),
    var(--box-shadow);
  border-radius: 8px;
  z-index: 2;
  overflow-y: auto;
}

.custom-dropdown__content.align-right {
  left: auto;
}

.custom-dropdown__content[aria-hidden="true"] {
  display: none;
}

.custom-dropdown__header {
  display: flex;
  flex-direction: column;
  padding: 12px;
  background-color: var(--gray-50);
}
.custom-dropdown__options {
  max-height: 300px;
  list-style: none;
  overflow-y: auto;
}

.custom-dropdown__options li:not(:last-child) {
  border-bottom: 1px solid var(--gray-200);
}

.custom-dropdown:has(.custom-dropdown__header) .custom-dropdown__options li {
  border-top: 1px solid var(--gray-200);
  border-bottom: none;
}

.custom-dropdown__options li:hover,
.custom-dropdown__options li.keyboard-focus,
.custom-dropdown__options li:focus-visible {
  outline: none;
  background-color: var(--light-green-20);
}

.custom-dropdown__option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 12px;
  cursor: pointer;
  font-size: 14px;
  text-align: left;
}

.custom-dropdown__option:focus-visible {
  outline: none;
}

.custom-dropdown__option,
.custom-dropdown__option a {
  text-decoration: none;
}

.custom-dropdown__option span,
.custom-dropdown__option a {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 140%;
}

.custom-dropdown__option:has(input) span {
  position: relative;
  top: 1px;
}

/* CUSTROM DROPDOWN - primary btn styles */
.custom-dropdown__current.btn-primary {
  background-color: var(--light-green);
  box-shadow: inset 0 0 0 1px var(--light-green);
  color: white;
}

.custom-dropdown__current.btn-primary i {
  color: white;
}

.footer {
  margin-left: var(--sidebar-collapsed-width);
  transition: var(--content-transition);
  background: var(--gray-200);
  color: var(--gray-800);
  padding: 24px 48px;
  margin-top: auto;
}

.footer__content {
  display: flex;
}

.footer__col {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.footer__col a {
  color: var(--gray-800);
}

.footer__col--title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
}

.footer__col--title:has(.tecdoc-inside-icon) {
  margin-bottom: 8px;
}

.footer__col--title .tecdoc-inside-icon {
  display: block;
  height: 65px;
}

.footer__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__icon {
  margin-right: 6px;
  font-size: 1em;
  vertical-align: middle;
}

.footer__note {
  margin-left: 4px;
}

.footer__all-branches {
  margin-top: auto;
  padding-top: 24px;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
  color: black;
}

.footer__copyright {
  margin-top: auto;
  padding-top: 24px;
  font-size: 15px;
}

/* STATUS BADGES */
.status {
  display: flex;
  gap: 8px;
  align-items: center;
}

.status-count {
  color: var(--gray-600);
}

.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--gray-100);
  color: var(--gray-800);
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}

.status-badge--light {
  background-color: var(--gray-50);
}

.status-badge--success {
  background-color: var(--success-100);
  color: var(--success);
}

.status-badge--disabled {
  background-color: var(--gray-100);
  color: var(--gray-600);
}

.status-badge--error {
  background-color: var(--error-100);
  color: var(--error);
}

/* PAGINATION */
.card__footer:has(.pagination-bar) {
  justify-content: flex-start;
  width: 100%;
  border-top: 1px solid var(--gray-200);
}
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  padding: 0;
}

.pagination li {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  color: #2f2f2f;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-duration) ease-in-out;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.pagination li svg {
  pointer-events: none;
}

.pagination li:not(.ellipsis):not(.disabled):hover {
  border-color: #4aa589;
}

.pagination li.selected {
  background-color: #4aa589;
  color: #ffffff;
  font-weight: 700;
}

.pagination li.ellipsis {
  cursor: default;
  border: none;
}

.pagination li.disabled {
  color: #adb5bd;
  cursor: default;
}

.pagination-rows {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 14px;
  color: #2f2f2f;
}

.pagination-rows-list {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination-rows-list li {
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  padding: 0 16px;
}

.pagination-rows-list li:first-child {
  padding-left: 0;
}

.pagination-rows-list li:last-child {
  padding-right: 0;
}

.pagination-rows-list li.selected {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.pagination-rows-list li + li {
  border-left: 1px solid #b2b2b2;
}

/* BREADCRUMBS */
.breadcrumbs {
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.breadcrumbs__items {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 8px;
  color: var(--gray-800);
  font-size: 16px;
  white-space: normal;
  flex-wrap: wrap;
  list-style: none;
}
.sub-breadcrumbs-nav .breadcrumbs__items {
  padding: 0;
}

.breadcrumbs a {
  text-underline-offset: 4px;
}

.breadcrumbs i {
  font-size: 12px;
}

.sub-breadcrumbs-nav .breadcrumbs__items > *:first-child {
  margin-top: -2px;
  font-weight: 700;
  font-size: 18px;
  line-height: 24px;
}

.stock-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  vertical-align: middle;
}

.status-dot.green {
  background: var(--light-green);
}

.status-dot.yellow {
  background: #f6b800;
}

/* DROPDOWN */
.dropdown-menu {
  position: absolute;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  box-shadow: 0px 2px 10px 4px #0000001a;
  z-index: 2000;
  min-width: 120px;
  overflow: hidden;
  outline: none;
}

.dropdown-menu[aria-hidden="true"] {
  display: none;
}

.dropdown-header {
  border-bottom: 1px solid var(--gray-200);
}
.dropdown-btn {
  cursor: pointer;
}
.dropdown-list {
  max-height: 350px;
  list-style: none;
  overflow-y: auto;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  color: var(--gray-800);
  text-decoration: none;
}

.dropdown-item:not(:last-child),
.dropdown-menu li:not(:last-child) {
  border-bottom: 1px solid var(--gray-200);
}

.dropdown-item:hover,
.dropdown-item.keyboard-focus {
  background-color: var(--light-green-20);
}

.dropdown-item:focus-visible {
  outline: none;
}

.dropdown- .dropdown-item span {
  line-height: 1;
}

.dropdown-item i {
  font-size: 14px;
}

.dropdown-item--danger {
  color: var(--error);
}

.dropdown-item-title {
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--gray-800);
  cursor: default;
}

.dropdown-item.dropdown-item-title:hover {
  background: none;
}

.dropdown-item--label {
  justify-content: flex-start;
  align-items: flex-start;
}

.dropdown-item--label:hover {
  cursor: default;
  background: none;
}
/* DROPDOWN - universal multi-level */
.dropdown-item[data-dropdown-next] i {
  margin-left: auto;
}

/* DROPDOWN - tecdoc settings */
.dropdown-btn[data-dropdown="tecdocSettingsDropdown"] {
  padding: 10px;
}

/* DROPDOWN - select cart */
.table-select-cart__menu .dropdown-header {
  display: flex;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  line-height: 140%;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gray-200);
}

.table-select-cart__menu .dropdown-list {
  max-height: 303px;
}

.table-select-cart__menu .dropdown-item:disabled {
  background-color: var(--gray-100);
  color: var(--gray-600);
  cursor: not-allowed;
  outline: none;
}

.table-select-cart__menu .dropdown-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-top: 1px solid var(--gray-200);
}

.table-select-cart__menu .dropdown-footer .custom-input {
  padding: 6px 8px;
  height: 30px;
}

.table-select-cart__menu .dropdown-footer .btn {
  padding: 8px;
}

/* DROPDOWN - search instructions */
.search-instructions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  max-width: 310px;
  width: max-content;
  z-index: 100;
  font-size: 14px;
  word-break: break-word;
  white-space: normal;
}
.search-instructions__header {
  font-size: 14px;
}

.search-instructions__legend {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 4px;
}

.search-instructions__legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  color: var(--gray-800);
}

.search-instructions__legend-item-icon-wrapper {
  display: flex;
  justify-content: center;
  align-self: start;
}
.search-instructions__legend-item-icon-wrapper i {
  color: var(--light-green);
}
.search-instructions__legend-item-icon-wrapper svg {
  width: 18px;
  height: 14px;
  flex-shrink: 0;
  fill: var(--light-green);
}
.search-instructions__legend-item-title {
  font-size: 14px;
  color: #2f2f2f;
  font-weight: 400;
}

/* QUANTITY INPUT WITH BUTTONS */
.quantity-input {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 4px;
  color: var(--gray-800);
  font-size: 14px;
  width: 96px;
  background-color: white;
}

.quantity-input .icon-btn {
  /* width: 22px;
  min-width: 22px;
  height: 22px; */
  color: var(--gray-800);
}

.quantity-input input {
  width: 24px;
  box-sizing: border-box;
  border: none;
  padding: 0;
  text-align: center;
  color: #03060d;
  font-size: 14px;
  outline: none;
  background: #fff;
  -webkit-appearance: none;
  -moz-appearance: textfield;
  appearance: textfield;
}

.quantity-input button:disabled {
  color: var(--gray-400);
  cursor: not-allowed;
}

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

.hidden {
  display: none !important;
}

.no-outline {
  outline: none !important;
}

.company-dropdown-header {
  padding: 10px 16px;
  border-bottom: 1px solid var(--gray-200);
}

.company-dropdown-header button {
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}

.company-dropdown-header i {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  font-size: 14px;
  width: 20px;
  height: 20px;
}

.company-dropdown-search {
  padding: 10px 16px;
  border-bottom: 1px solid var(--gray-200);
}

.company-selector {
  max-height: 240px;
  overflow-y: auto;
}

.company-selector::-webkit-scrollbar-button {
  display: none;
  height: 0;
  width: 0;
}

.hide-scroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hide-scroll::-webkit-scrollbar {
  display: none;
}

.user-dropdown,
.company-dropdown {
  width: 240px;
}

.backdrop {
  display: none;
  position: fixed;
  z-index: 9;
  top: var(--topbar-mobile-height);
  left: 0;
  width: 100vw;
  height: calc(100vh - var(--topbar-mobile-height));
  height: calc(100dvh - var(--topbar-mobile-height));
  transition: opacity 0.3s;
  opacity: 0;
  background: #00000040;
}

.backdrop.active {
  display: block;
  opacity: 1;
}

.mobile-drawer {
  display: none;
}

.topbar-upper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar-upper .logo-link {
  display: flex;
  align-items: center;
}

.files {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.file {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--light-green);
  text-decoration: none;
}

.file i {
  font-size: 14px;
  vertical-align: top;
  line-height: 1;
}

.file .file-name {
  vertical-align: middle;
  text-decoration: none;
}

.file:hover .file-name {
  text-decoration: underline;
  text-decoration-color: var(--light-green);
  text-underline-offset: 3px;
}

.notification-banner {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background-color: var(--success-100);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  color: var(--gray-800);
  line-height: 130%;
  font-size: 14px;
}

.data-table .notification-banner {
  padding: 8px 12px;
}

.notification-banner i {
  color: var(--success);
  font-size: 14px;
  line-height: 24px;
}

.notification-banner--error {
  background-color: var(--error-100);
}

.notification-banner--error i {
  color: var(--error);
}

.notification-banner--primary {
  background-color: var(--light-blue-30);
}

.notification-banner--primary i {
  color: var(--dark-blue);
}

.notification-banner--warning {
  background-color: var(--warning-100);
  color: var(--gray-800);
}

.notification-banner--warning i {
  color: var(--warning);
}

.notification-banner--transparent {
  background-color: transparent;
}

.notification-banner--transparent,
.notification-banner--transparent i {
  color: var(--gray-800);
}

.notification-banner__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notification-banner__content--title {
  font-weight: 700;
  line-height: 24px;
}
.notification-banner__content--text {
  line-height: 24px;
}

.notification-banner__content--text a,
.notification-banner__content--text button {
  color: var(--gray-800);
}

.notification-banner__content p:not(:last-child) {
  padding-bottom: 12px;
}

.notification-banner__close {
  margin-left: auto;
  margin-bottom: auto;
}

.notification-banner__close i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 16px;
  color: var(--gray-600);
}

.date-range-group {
  display: flex;
  gap: 16px;
}

.m-product-cards {
  display: none;
}

/* TOOLTIP */
.tooltip-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.tooltip-container i {
  font-size: 13px;
  color: var(--gray-600);
}
.tooltip-container i:hover,
.tooltip-container i:focus-visible,
.tooltip-container i:active {
  color: var(--gray-800);
}

#tooltip-content {
  --tooltip-max-width: 500px;
  --tooltip-max-height: 350px;
  position: fixed;
  top: 0;
  left: 0;
  width: max-content;
  max-width: min(var(--tooltip-max-width), var(--tooltip-available-width, 100vw));
  max-height: min(var(--tooltip-max-height), var(--tooltip-available-height, 100vh));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 9px 12px;
  border: 1px solid var(--gray-800);
  border-radius: 8px;
  z-index: 2001;
  background: var(--dark-green);
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  text-align: left;
  text-transform: none;
  word-break: break-word;
  box-shadow: 0 0 8px 4px rgba(0, 0, 0, 0.2);
  white-space: pre-line;
  opacity: 1;
  transition: opacity 0.15s ease;
}

#tooltip-content[aria-hidden="true"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.15s ease,
    visibility 0s linear 0.15s;
}

#tooltip-content.reference-hidden {
  visibility: hidden;
  pointer-events: none;
}

#tooltip-content::-webkit-scrollbar-thumb {
  background-color: var(--gray-400);
}

.horizontal-separator {
  width: 100%;
  border-bottom: 1px solid var(--gray-200);
}

/* Product groups */
.card__header:has(+ #product-groups-wrapper[aria-hidden="true"]) {
  border-bottom: none;
}

#product-groups-wrapper {
  transition:
    max-height var(--toggle-animation-duration) ease,
    padding var(--toggle-animation-duration) ease;
  padding: 0;
}

#product-groups-wrapper[aria-hidden="true"] {
  max-height: 0;
  padding: 0;
  overflow: hidden;
}

.product-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(321px, 1fr));
  align-items: start;
  gap: 8px;
  padding: var(--card-padding);
}

.product-groups__toggle-button i {
  transition: transform var(--toggle-animation-duration) ease;
}

.product-groups__toggle-button[aria-expanded="false"] i {
  transform: rotate(180deg);
}

/* Accordion */
.category-accordion {
  position: relative;
  border-radius: 8px;
  height: 100%;
}

.category-accordion .accordion {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  width: 100%;
  min-height: 36px;
  border: none;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  color: #2f2f2f;
  box-sizing: border-box;
}

.category-accordion .subcategory-list .accordion:focus-visible {
  outline-offset: -2px;
}

.category-accordion .accordion:not(:first-child) {
  border-top: 1px solid var(--gray-200);
}

.category-accordion .accordion--top {
  justify-content: space-between;
  border: 1px solid #dadada;
  border-radius: 8px;
  background: var(--gray-100);
  height: 100%;
  overflow: hidden;
}

.category-accordion .accordion[aria-expanded="true"] {
  background: var(--light-green-10);
}

.category-accordion .accordion--top[aria-expanded="true"] {
  background: var(--light-green-20);
  border-radius: 8px 8px 0 0;
}

.category-accordion .accordion i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  transition: all 0.15s ease;
}

.category-accordion .accordion i.fa-circle-small {
  font-size: 6px;
}

.category-accordion .accordion[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.category-accordion .accordion__label {
  display: flex;
  align-items: center;
}

.category-accordion .accordion--top .accordion__label {
  gap: 12px;
}

.category-accordion .accordion__icon {
  display: flex;
  align-items: center;
}

.category-accordion .accordion__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
}

.category-accordion .accordion__text {
  font-weight: 400;
  font-size: 14px;
  color: #2f2f2f;
  transition: color 0.15s ease;
}

.category-accordion .accordion:not(.accordion--top) .accordion__text a {
  text-decoration: none;
}

.category-accordion .accordion--top .accordion__text a {
  text-decoration: underline;
}

.category-accordion .accordion--top .accordion__text {
  font-size: 15px;
  font-weight: 700;
}

.category-accordion .subcategory-list:has(*) {
  border-top: 1px solid var(--gray-200);
}

.category-accordion .accordion--top + .subcategory-list {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  border: 1px solid var(--gray-200);
  border-top: none;
  max-height: 424px;
  overflow-y: auto;
  box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
  z-index: 1;
}

.category-accordion .tree-lines {
  display: inline-flex;
  gap: 16px;
  margin-right: 8px;
}

.category-accordion .accordion:not(.accordion--top):hover .accordion__label .accordion__text {
  color: var(--light-green);
}

/* IMAGE PREVIEW */
#image-preview {
  --image-preview-max-width: 500px;
  --image-preview-max-height: 500px;
  --image-preview-viewport-gap: 32px;
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2000;
  width: max-content;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

#image-preview .image-preview__content {
  display: flex;
}

#image-preview .image-preview__content img {
  display: block;
  max-width: min(var(--image-preview-max-width), calc(100vw - var(--image-preview-viewport-gap)));
  max-height: min(var(--image-preview-max-height), calc(100vh - var(--image-preview-viewport-gap)));
  width: auto;
  height: auto;
}

/* Not a plain duplicate declaration: with var() an unsupported unit would reset max-height instead of falling back */
@supports (height: 100dvh) {
  #image-preview .image-preview__content img {
    max-height: min(var(--image-preview-max-height), calc(100dvh - var(--image-preview-viewport-gap)));
  }
}

/* PRODUCT DETAILS - upper section */
.product-details .product-details__upper {
  display: flex;
  gap: 40px;
  padding: 16px 16px 24px;
}

/* PRODUCT DETAILS - image column */
.product-details .product-gallery {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 25;
  max-width: 400px;
}

.product-details .product-gallery__selected-image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1/1;
  width: 100%;
  max-height: 50vh;
  cursor: pointer;
}

.product-details .product-gallery__selected-image-wrapper.no-image {
  cursor: default;
  background-color: var(--gray-50);
}

.product-details .product-gallery__selected-image-wrapper.no-image i {
  font-size: 50px;
  color: var(--gray-600);
}

.product-details .product-gallery__selected-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-details .product-gallery__selected-image-index {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 8px;
  z-index: 1;
  font-size: 14px;
  background-color: var(--gray-50);
  color: var(--gray-800);
}

.product-details .product-gallery__selected-image-index-value {
  padding-top: 2px;
  line-height: 100%;
}

.product-details .product-gallery__selected-image-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  background-color: rgba(0, 0, 0, 0.45);
}

.product-details .product-gallery__selected-image-wrapper:hover .product-gallery__selected-image-overlay {
  opacity: 1;
}

.product-details .product-gallery__selected-image-overlay i {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 50%;
  font-size: 14px;
  background-color: white;
  color: var(--gray-800);
}
.product-details .product-gallery__nav {
  display: none;
}

.product-details .product-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.product-details .product-gallery__grid__image {
  width: 100%;
  cursor: pointer;
  aspect-ratio: 1/1;
  object-fit: contain;
  border-radius: 6px;
  transition: all 0.15s;
}

.product-details .product-gallery__grid__image--active {
  box-shadow: 0 0 4px 1px var(--gray-400);
}

.product-details .product-gallery__grid__image:hover {
  transform: scale(1.05);
}

/* PRODUCT DETAILS - modal gallery */
.modal-gallery {
  display: flex;
  flex-direction: column;
  width: 1300px;
  max-width: calc(100vw - 32px);
  height: 100%;
  max-height: 80vh;
}
.modal-gallery .modal-header {
  border-bottom: none;
}

.modal-gallery .modal-body {
  flex: 1;
  min-height: 0;
}

.modal-gallery__image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  min-height: 0;
}

.modal-gallery__nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
  background-color: var(--gray-50);
  color: var(--gray-800);
  transition: background-color 0.2s;
}

.modal-gallery__nav-btn:hover {
  background-color: var(--gray-100);
}

.modal-gallery__nav-btn i {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  width: 24px;
  height: 24px;
}

.modal-gallery__nav-btn--prev {
  left: 20px;
}

.modal-gallery__nav-btn--next {
  right: 20px;
}

.modal-gallery__image {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.modal-gallery__image:focus-visible {
  outline: none;
}

.modal-gallery__thumbs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  overflow-x: auto;
  padding: 2px;
}

.modal-gallery__thumbs__image {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 6px;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.modal-gallery__thumbs__image--active {
  box-shadow: 0 0 4px 1px var(--gray-400);
}

/* PRODUCT DETAILS - details column */
.product-details__details-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 40;
}

.product-details__details-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 16px;
  line-height: 100%;
}

.product-details__details-value {
  font-weight: 700;
}

.product-details__details-description {
  line-height: 150%;
  margin-top: 8px;
}

/* PRODUCT DETAILS - price card */
.card__content:has(.product-details) {
  padding: 0;
}

.product-details__price-card-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 35;
}

.product-details__price-card {
  background-color: var(--gray-50);
  border: 1px solid var(--gray-200);
}

.product-details__price-card__header {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--gray-200);
  padding: 16px;
}

.product-details__price-card__price {
  display: flex;
  flex-direction: column;
  gap: 8px;
  line-height: 100%;
}

.product-details__price-card__price .price-value {
  font-weight: 700;
  line-height: 100%;
}

.product-details__price-card__price.retail-price .price-value {
  font-size: 24px;
  font-weight: 900;
}

.product-details__price-card__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 16px;
}

.product-details__price-card__cart {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-details__price-card__cart-controls .cart-buttons {
  display: flex;
  width: 100%;
}
.product-details__price-card__cart-controls .cart-buttons .btn {
  flex: 1;
}

.product-details__price-card__cart-controls .cart-buttons .btn:first-child {
  border-radius: 8px 0 0 8px;
}

.product-details__price-card__cart-controls .cart-buttons .btn:last-child {
  border-left: 1px solid var(--gray-200);
  border-radius: 0 8px 8px 0;
}

.product-details__price-card__cart-controls .cart-buttons .btn:active {
  outline: none;
}

.product-details__price-card__cart-controls .cart-buttons .btn i {
  width: 20px;
  font-size: 14px;
}

/* PRODUCT DETAILS - lower section, detail tabs */
.product-details .lower .detail-tabs {
  width: 100%;
  display: flex;
  position: relative;
  overflow-x: scroll;
  gap: 16px;
  padding: 0px 16px;
  background: linear-gradient(var(--gray-100), var(--gray-100)) left bottom / 100% 4px no-repeat local;
}

.product-details .lower .detail-tab {
  display: flex;
  justify-content: center;
  width: 100%;
  position: relative;
  color: var(--gray-600);
  font-weight: 700;
  cursor: pointer;
  transition: color 0.3s;
  padding-bottom: 12px;
  z-index: 1;
  white-space: nowrap;
}

.product-details .lower .detail-tab.active {
  color: var(--light-green);
}

.product-details .lower .detail-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--light-green);
  z-index: 2;
}

.product-details .lower .tab-pane {
  display: none;
}

.product-details .lower .tab-pane.active {
  display: block;
  overflow: auto;
}

.product-details .lower .key-value-table {
  width: 100%;
  border-collapse: collapse;
}

.product-details .lower .key-value-table tr {
  border-bottom: 1px solid var(--light-border);
}

.product-details .lower .key-value-table td {
  padding: 12px 8px;
  font-size: 14px;
}

.product-details .lower .key-value-table .key {
  text-align: end;
  font-weight: 700;
  width: 200px;
  padding-left: 24px;
  white-space: nowrap;
}

.product-details .lower .key-value-table .value {
  padding-left: 24px;
}

.product-details #area-of-use .data-table th {
  white-space: nowrap;
}

.product-details #area-of-use .data-table .col-car-name {
  width: 170px;
}

.product-details #area-of-use .data-table .col-produced {
  width: 100px;
  white-space: nowrap;
}

.product-details #area-of-use .data-table .col-produced,
.product-details #area-of-use .data-table .col-kw,
.product-details #area-of-use .data-table .col-hp,
.product-details #area-of-use .data-table .col-engine-volume {
  text-align: end;
}

.product-details #area-of-use .data-table .col-kw,
.product-details #area-of-use .data-table .col-hp,
.product-details #area-of-use .data-table .col-engine-volume {
  width: 80px;
  white-space: nowrap;
}

/* Filler cell: takes the remaining width so the columns stay pressed to the left */
.product-details #area-of-use .data-table tr::after {
  content: "";
  display: table-cell;
  border-bottom: 1px solid var(--gray-200);
}

.product-details #area-of-use .data-table tbody tr:last-child::after {
  border-bottom: none;
}

.product-details .lower .technical-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 16px;
}

.product-details .lower .technical-info p {
  text-align: justify;
}

/* FILTERS - accordion */
#filterAccordion {
  display: flex;
  width: 100%;
}

.filter-accordion {
  display: flex;
  align-items: center;
  padding: 11px var(--card-padding);
  justify-content: space-between;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.filter-accordion__content {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-left: auto;
}

.filter-accordion__header {
  display: none;
}

@media (min-width: 1025px) {
  .sidebar-toggle--label {
    display: none;
  }

  .breadcrumbs:not(:has(.breadcrumbs-nav)) {
    display: none;
  }

  .table-filters--icon-text,
  .table-checkbox-filters--icon-text {
    display: none;
  }

  .table-checkbox-filters__checkboxes {
    margin-left: auto;
  }
}

@media (min-width: 1201px) {
  .sidebar-toggle--btn {
    cursor: default;
  }
}

@media (max-width: 1600px) {
  /* TABLE - col styles */
  .data-table .col-model {
    width: 120px;
  }

  .footer__col {
    flex: 9;
  }

  .footer__col:nth-child(3) {
    flex: 10;
  }
}
@media (max-width: 1200px) {
  :root {
    --layout-horizontal-padding: 16px;
    --sidebar-collapsed-width: 0;
  }

  /* TOPBAR */
  .topbar {
    height: var(--topbar-mobile-height);
    padding: 8px 10px 8px 16px;
    flex-direction: column;
    gap: 16px;
  }

  .logo {
    width: 100%;
    margin-right: 0;
  }

  .topbar-upper .logo-link {
    flex: 0 0 120px;
  }

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

  .topbar__searchbars.mobile-hidden {
    display: none;
  }
  .topbar__searchbars.mobile-visible {
    display: flex;
    flex-direction: column;
  }

  .topbar__right {
    display: none;
  }

  .mobile-search-btn,
  .mobile-search-open-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: white;
    gap: 8px;
  }

  .mobile-search-btn--text {
    font-size: 14px;
    white-space: nowrap;
  }

  .mobile-drawer-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
  }

  .mobile-drawer-btn,
  .mobile-search-btn,
  .mobile-search-open-btn {
    display: flex;
    min-width: 40px;
    min-height: 40px;
    justify-content: center;
    align-items: center;
  }

  .topbar-upper {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 16px;
  }

  .vin-input-box,
  .searchbar-wrapper {
    width: 100%;
    max-width: 100%;
  }

  .autocomplete-dropdown {
    width: auto;
    max-height: 420px;
  }

  /* TOP-NAV */
  .nav-container {
    top: var(--topbar-mobile-height);
    background: transparent;
  }

  .nav-container:not(:has(.dashboard-nav)) {
    margin-right: auto;
  }

  .dashboard-nav {
    padding: 16px 16px 0;
  }

  .top-nav__wrapper,
  .top-nav {
    display: none;
  }

  /* LAYOUT */
  .main-area {
    padding-top: var(--topbar-mobile-height);
  }

  .container {
    padding: var(--layout-padding) var(--layout-horizontal-padding) 40px;
  }

  /* FOOTER */
  .footer {
    padding: 24px 16px;
  }

  .footer__content {
    flex-direction: column;
    gap: 32px;
  }

  .footer__col--title:has(.tecdoc-inside-icon) {
    margin-bottom: 16px;
  }

  .footer__copyright {
    margin-top: 24px;
    border-top: 1px solid var(--gray-500);
    font-size: 16px;
  }

  .content {
    background-color: var(--gray-50);
  }

  /* SIDEBARS */
  .sidebar {
    display: block;
    top: var(--topbar-mobile-height);
    width: 100%;
    max-width: 300px;
    height: calc(100vh - var(--topbar-mobile-height));
    height: calc(100dvh - var(--topbar-mobile-height));
    transform: translateX(-100%);
    box-shadow: 2px 0 16px rgba(0, 0, 0, 0.15);
  }

  .sidebar.drawer-open {
    transform: translateX(0);
  }

  .sidebar-toggle--btn-m {
    display: flex;
    height: 48px;
  }

  /* SIDEBARS right mobile sidebar */

  .mobile-drawer {
    position: fixed;
    top: var(--topbar-mobile-height);
    right: 0;
    width: 80vw;
    max-width: 320px;
    height: calc(100vh - var(--topbar-mobile-height));
    height: calc(100dvh - var(--topbar-mobile-height));
    background: var(--dark-green);
    z-index: 11;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -2px 0 16px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    padding: 8px 16px 24px 16px;
    gap: 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .mobile-drawer.open {
    transform: translateX(0);
  }

  .mobile-drawer__top {
    display: flex;
    gap: 24px;
    justify-content: flex-start;
    align-items: center;
    border-bottom: 1px solid var(--dark-green-20);
    padding-bottom: 24px;
  }

  .mobile-drawer__bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-top: auto;
  }

  .mobile-drawer__bottom .top-nav__global-filters {
    flex-direction: column;
    align-items: flex-start;
  }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .mobile-nav__item {
    color: white;
    cursor: pointer;
  }

  .mobile-nav__item--text {
    display: inline-block;
  }

  .mobile-nav__item.active .mobile-nav__item--text {
    border-bottom: 4px solid var(--light-green);
  }

  /* BREAKCRUMBS */
  .breadcrumbs {
    position: sticky;
    transform: translate(-16px, -16px);
    top: calc(var(--topbar-mobile-height) + var(--layout-padding));
    margin-right: -32px;
    margin-bottom: -16px;
    z-index: 2;
  }
  .breadcrumbs:has(.breadcrumbs-nav) {
    border-bottom: 1px solid var(--gray-200);
    background-color: white;
  }

  /* TABLE - sub-row */
  .data-table .sub-row td > div {
    max-width: 100%;
  }

  /* PRODUCT DETAILS - upper section */
  .product-details__upper {
    flex-wrap: wrap;
  }

  .product-details .product-gallery,
  .product-details__upper .product-gallery__selected-image {
    width: 100%;
    max-width: 100%;
  }

  .product-details__details-col,
  .product-details__price-card-col {
    flex: 0 0 calc(50% - 20px);
  }

  .product-details .product-gallery {
    flex: 0 0 100%;
  }

  .product-details.product-gallery__grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 1024px) {
  /* TEMPORARY HIDDING MOBILE CONTENT THAT IS NOT READY YET */
  .returns-archive__mobile,
  .m-cart-overview-products,
  .m-cart-overview-summary,
  .m-product-cards {
    display: none !important;
  }

  /* PAGINATION */
  .pagination-bar {
    flex-direction: column-reverse;
    gap: 24px;
  }

  .pagination {
    width: 100%;
  }

  /* CUSTOM DROPDOWN */
  .custom-dropdown__wrapper {
    flex-wrap: wrap;
    flex-basis: 100%;
  }

  /* TABLE */
  .responsive-table__desktop {
    display: none;
  }

  .responsive-table__mobile {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .card .responsive-table__mobile:has(.card) {
    gap: 12px;
    padding: 12px;
  }

  .responsive-table__mobile .data-table a {
    white-space: normal;
  }

  .responsive-table__mobile .data-table a.btn {
    text-decoration: none;
  }

  .responsive-table__mobile .data-table a.btn-primary {
    color: white;
  }

  .responsive-table__mobile .data-table a.btn-outline {
    color: var(--gray-800);
  }

  .responsive-table__mobile .card:not(:first-child),
  .responsive-table__mobile .card:not(:first-child) table {
    border-radius: 0 0 8px 8px;
  }

  .responsive-table__mobile .card:first-child:not(:has(.card__header)),
  .responsive-table__mobile .card:first-child:not(:has(.card__header)) table {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
  }

  .responsive-table__mobile .card:not(:last-child),
  .responsive-table__mobile .card:not(:last-child) table {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .responsive-table__mobile .card table tr:last-child th,
  .responsive-table__mobile .card table tr:last-child td {
    border-bottom: none;
  }

  .responsive-table__mobile table th {
    width: 160px;
    min-width: 160px;
  }

  /* TABLE - Custom grid table */
  .table-columns__item-title,
  .table-columns__item-value {
    white-space: normal;
  }

  /* card filters */
  .card__filters {
    flex-direction: column;
    gap: 8px;
  }

  .card__filters .form-group {
    width: 100%;
    max-width: 100%;
  }

  .date-range-group {
    width: 100%;
    gap: 8px;
  }

  .date-range-group .form-group {
    flex: 1 1 0;
    min-width: 0;
  }

  .card__filters .btn {
    width: 100%;
    margin-top: 8px;
  }

  .cards-section {
    flex-direction: column;
    gap: 16px;
  }

  /* MOBILE PRODUCT CARDS */
  .m-product-cards {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .m-product-cards__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
    border-bottom: 1px solid var(--gray-200);
  }

  .m-product-cards__header--row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    white-space: nowrap;
  }

  .m-product-cards__actions {
    display: flex;
    justify-content: flex-end;
    padding: 12px 20px;
    border-bottom: 1px solid var(--gray-200);
  }

  .m-product-card {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--gray-200);
  }

  .m-product-card.always-open:last-child {
    border-bottom: none;
  }

  .m-product-card.always-open .m-product-card__content {
    cursor: default;
  }

  .m-product-card__content {
    display: flex;
    gap: 16px;
    padding: 16px;
    justify-content: space-between;
    align-items: flex-start;
  }

  .m-product-card__main {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .m-product-card__info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-self: flex-start;
  }

  .m-product-card__info-bottom {
    display: flex;
    gap: 8px;
    white-space: nowrap;
  }

  .m-product-card--img {
    width: 84px;
    height: 84px;
    object-fit: contain;
  }

  .m-product-card--title {
    font-size: 16px;
  }

  .m-product-card__info-subinfo {
    display: flex;
    gap: 8px;
    font-size: 14px;
    align-items: center;
  }

  .m-product-card--price {
    font-weight: 700;
  }

  .m-product-card__details {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--toggle-animation-duration) ease;
  }

  .m-product-card.active .m-product-card__details,
  .m-product-card.always-open .m-product-card__details {
    max-height: 500px;
  }

  .m-product-card__details-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    gap: 16px;
  }

  .m-product-card__details-actions .btn {
    width: 100%;
  }

  .m-product-card__content {
    cursor: pointer;
  }

  .m-product-card .m-product-card__toggle {
    transition: transform var(--toggle-animation-duration) ease;
    font-size: 14px;
  }

  .m-product-card.active .m-product-card__toggle {
    transform: rotate(180deg);
  }

  .m-product-cards a {
    color: var(--light-green);
  }

  .m-warehouse-toggle {
    display: flex;
    align-items: center;
    background-color: var(--gray-50);
    padding: 5px 8px;
    gap: 4px;
    border-radius: 8px;
  }

  .m-product-card-spacer {
    background-color: var(--light-green-10);
    padding: 12px 16px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
  }

  /* detailed product card */
  .m-detailed-product-card {
    border-bottom: 1px solid var(--gray-200);
  }

  .m-detailed-product-card__content {
    display: flex;
    gap: 16px;
    padding: 16px;
  }

  .m-detailed-product-card--img {
    width: 64px;
    height: 64px;
    object-fit: contain;
  }

  .m-detailed-product-card__main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .m-detailed-product-card__info {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .m-detailed-product-card__availability {
    display: flex;
    gap: 16px;
  }

  .m-detailed-product-card__warehouse {
    display: flex;
    gap: 4px;
    padding: 5px 8px;
    background-color: var(--gray-50);
    border-radius: 8px;
  }

  .m-detailed-product-card__cart {
    display: flex;
    gap: 10px;
  }

  .m-detailed-product-card__cart .btn {
    width: 100%;
  }

  .m-detailed-product-card__prices {
    display: flex;
    gap: 16px;
  }

  .m-detailed-product-card__price {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .m-detailed-product-card__price--value {
    font-weight: 700;
  }

  .product-card-table th {
    min-width: 100px;
    width: 1px;
    white-space: nowrap;
  }

  /* FILTERS */
  .table-checkbox-filters {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .table-checkbox-filters__checkboxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
    gap: 8px 12px;
    margin-left: 0;
  }

  /* FILTERS - accordion */
  .filter-accordion {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-accordion .filter-accordion__content {
    margin-top: 12px;
  }

  .filter-accordion__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .modal-header {
    padding: 8px 16px;
  }

  .product-modal .modal-header {
    padding: 20px 16px;
  }

  .product-modal-img {
    max-height: 310px;
    object-fit: contain;
  }

  .product-modal .modal-body {
    flex-direction: column;
    padding: 16px;
  }

  .product-modal .modal-footer .btn {
    flex: 1;
  }

  #image-preview {
    --image-preview-max-width: 400px;
  }

  /* PRODUCT DETAILS - upper section */
  .product-details__cart-buttons .btn span {
    display: none;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 24px;
  }

  .table-cart-buttons .btn {
    padding: 5px 8px;
  }

  .product-groups {
    grid-template-columns: 1fr;
  }

  /* MODALS */
  .modal .modal-content {
    max-height: 95vh;
    max-height: 95dvh;
    width: calc(100vw - 16px);
  }

  /* MODALS - car info modal */

  .car-info-modal .modal-body .table-overflow-wrapper {
    overflow: visible;
  }

  /* FILTERS */
  .filter-accordion__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
    gap: 8px 12px;
    margin-left: 0;
  }

  /* TABLE */
  .data-table td a {
    white-space: normal;
  }

  /* PRODUCT DETAILS - upper section */
  .product-details__upper {
    gap: 24px;
    padding-bottom: 32px;
  }

  .product-details .product-gallery,
  .product-details__details-col,
  .product-details__price-card-col {
    flex: 0 0 100%;
  }

  .product-details__price-card-col {
    gap: 24px;
  }

  .product-details .product-gallery__selected-image-index {
    display: none;
  }

  .product-details .product-gallery__nav .product-gallery__selected-image-index {
    position: static;
    display: flex;
    font-size: 16px;
    background-color: transparent;
  }

  .product-details .product-gallery__grid {
    display: none;
  }

  .product-details .product-gallery__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .product-details .product-gallery__nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    font-size: 16px;
    color: var(--gray-800);
    background-color: var(--gray-50);
    transition: background-color 0.2s;
  }

  .product-details .product-gallery__nav-btn:hover {
    background-color: var(--gray-100);
  }

  /* PRODUCT DETAILS - modal gallery */
  .modal-gallery__nav-btn {
    padding: 4px;
  }

  .modal-gallery__nav-btn--prev {
    left: 0;
  }

  .modal-gallery__nav-btn--next {
    right: 0;
  }

  /* PRODUCT DETAILS - lower section */
  .product-details .lower .key-value-table .key {
    white-space: normal;
  }
  .product-details #area-of-use .data-table .col-car-name {
    width: auto;
  }
  .product-details #area-of-use .data-table .col-produced,
  .product-details #area-of-use .data-table .col-kw,
  .product-details #area-of-use .data-table .col-hp,
  .product-details #area-of-use .data-table .col-engine-volume {
    width: 1px;
  }
  .product-details #area-of-use .data-table tr::after {
    display: none;
  }
}

@media (max-width: 576px) {
  /* LAYOUT */
  .container {
    padding: 16px 12px 40px;
  }

  /* CARD */
  .card {
    box-shadow: var(--box-shadow-light);
  }

  .card__header-actions {
    flex-direction: column;
    width: 100%;
    flex-basis: 100%;
  }
  .card__header-actions:has([id^="filtersReset"]) {
    flex-direction: column-reverse;
  }
  .card__header-actions .btn {
    width: 100%;
  }

  /* CUSTOM INPUT */
  .custom-input,
  .table-range-filter__input.custom-input {
    font-size: 16px;
  }

  /* CUSTOM DROPDOWN */
  .custom-dropdown {
    max-width: 100%;
  }
  .custom-dropdown__content {
    width: 100%;
    max-width: 100%;
    max-height: 300px;
  }

  /* DROPDOWN - search instructions */
  .search-instructions {
    max-width: 310px;
  }

  /* FILTERS */
  .filter-accordion__content {
    grid-template-columns: 1fr;
  }

  .table-checkbox-filters__checkboxes {
    grid-template-columns: 1fr;
  }

  /* FILTERS - Table select filters */
  .table-select-filters__group {
    grid-template-columns: 1fr;
  }
  .table-range-filter {
    grid-column: 1 / -1;
  }
  .table-select-filter__dropdown {
    width: 100%;
  }

  /* FILTERS -Top filters */
  .top-filters .form-group {
    flex: 1;
    min-width: 100%;
  }

  /* TABLE - responsive table */
  .responsive-table__mobile table th {
    width: 140px;
    min-width: 140px;
  }

  /* TABLE - Custom grid table */
  .table-columns__item-title {
    min-width: 140px;
    width: 140px;
  }

  /* MODALS */
  .modal .modal-content {
    margin: 8px;
  }

  .modal .modal-footer {
    flex-direction: column;
    align-items: stretch;
  }

  /* MODALS - OE-order modal */
  .oe-order-page__modal .icon-input-wrapper {
    width: 100%;
  }
  .oe-order-page__modal .icon-input-wrapper input {
    min-width: 100%;
  }

  .data-table .summary-row td {
    font-size: 14px;
  }
}
