/* Ensure full height for sticky footers and backgrounds */
/* 1. Lock the screen height */
html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

/* 2. Turn Body into a Column */
body {
  display: flex;
  flex-direction: column;
  height: 100vh;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.hang-tags-body {
  overflow: auto;
}
.hang-tags-body main {
  flex: 1 1 auto;
  overflow: auto;
}
.line-clamp-2 {
  display: -webkit-box;
  padding-right: 10px;
  -webkit-line-clamp: 2;
  /* Show 2 lines, then add "..." */
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* Hides the text that got cut off */
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
}

.action-button-group .dropdown-toggle::after {
  border: none;
  /* Removes the default CSS triangle borders */
  content: "•••";
  /* Inserts new text/icon */
  font-size: 0.8rem;
  vertical-align: middle;
}
.action-button-group.vertical-dots .dropdown-toggle::after {
  border: none;
  /* Removes the default CSS triangle borders */
  content: "•••";
  /* Inserts new text/icon */
  font-size: 0.8rem;
  vertical-align: middle;

  /* NEW: Required for rotation */
  display: inline-block;
  transform: rotate(90deg) !important;

  /* Optional tweak if it looks too close to the left/right */
    margin-left: 0.25rem;
}

.tv-body {
  height: auto;
  width: 100%;
  overflow: auto;
  display: block;
}
.tv-html {
  height: auto;
  overflow: auto;
}
.tv-body main {
  flex: initial;
  overflow: visible;
}
/* Keep main content flexible with inner scrolling */
.page-content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* 3. Make Main take up all remaining space */
main {
  flex: 1 1 auto;
  /* Grows to fill space */
  display: flex;
  /* Becomes a flex container for its children */
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  /* Crucial Firefox/Flexbox fix */
}

/* 4. The Table Container grows and scrolls */
.table-scroll-container {
  flex: 1 1 auto;
  /* Takes remaining space inside Main */
  overflow: auto;
  /* Enables scrolling ONLY here */
  min-height: 0;
}

.search-width {
  max-width: 250px;
  width: 250px;
  min-width: 38px;
}
.dots {
  background-image: radial-gradient(circle, #ddd 1px, transparent 1px);
  background-size: 15px 15px;
}
.bg-white {
  background: #fff;
}
.btn-icon {
  background: none;
  color: inherit;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  outline: inherit;
}
.input-group input {
  text-align: left;
  max-width: 75%;
}
td a img:hover {
  margin: 0px;
  border: solid 2px #fff;
}
.hidden {
  display: none;
}
.zoom-0 {
  transform: scale(0.5);
}
.zoom-1 {
  transform: scale(1);
}
.zoom-2 {
  transform: scale(1.5);
}
.w-5 {
  width: 5% !important;
}
.w-10 {
  width: 10% !important;
}
.w-15 {
  width: 15% !important;
}
.w-20 {
  width: 20% !important;
}
th {
  min-width: 100px;
  max-width: 300px;
}
.overlay-header {
  position: fixed;
  top: 10px;
  right: 10px;
}
.print-header {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 50px;
  padding: 0 10px;
  color: #333;
}
.print-header h2 {
  margin: 0;
  padding: 0;
  font-size: 20px;
  color: #333;
  font-weight: 900;
}
.hide-elements {
  padding: 5px 30px;
  background: #fff;
  border: solid 0px #ddd;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}
.hide-elements label {
  margin: 0 5px;
}
.fa-times-circle {
  color: #222;
  font-size: 3em;
}
.bg-blur {
  background: transparent;
  -webkit-backdrop-filter: blur(5px) !important;
  backdrop-filter: blur(5px) !important;
  opacity: 0.9;
}
.navbar-headerxxx .container-fluidxxx {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-start;
  color: #ccc;
}
.navbar-right {
  padding: 0;
}
.navbar-right h5 {
  margin: 0 0 0 50px;
  padding: 2px;
  color: #999;
}
.main-content {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50vh;
  height: 100%;
  width: 100%;
}
.hang-tags-preview {
  width: 100%;
  height: 100%;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}
.hang-tags-zoom-controls {
  margin-left: 8px;
  display: inline-flex;
  gap: 6px;
}
.side-menu-footer {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 60px;
  padding: 0 50px;
  background: #fff;
  border: solid 1px #ddd;
  color: #333;
}
.tags-spacer {
  display: block;
  width: 100%;
  height: 100px;
}
.spacer-25 {
  display: block;
  width: 100%;
  height: 25px;
}
.spacer-50 {
  display: block;
  width: 100%;
  height: 50px;
}
.spacer-60 {
  display: block;
  width: 100%;
  height: 60px;
}
.spacer-75 {
  display: block;
  width: 10%;
  height: 75px;
}
.spacer-100 {
  display: block;
  width: 100%;
  height: 100px;
}
.spacer-125 {
  display: block;
  width: 100%;
  height: 125px;
}
.spacer-150 {
  display: block;
  width: 100%;
  height: 150px;
}
.spacer-300 {
  display: block;
  width: 100%;
  height: 300px;
}
.tags-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 8.5in;
  height: 10.8in;
  color: #333 !important;
  background: #fff !important;
}
.tag-left {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
  width: 4.2in;
  height: 10.8in;
  color: #333;
  border: solid 1px #ddd;
}
.tag-right {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
  width: 4.2in;
  height: 10.8in;
  background: #fff;
  color: #333;
  border: solid 1px #ddd;
}

.shadow {
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
}
.icon-circle::before {
  display: inline-block;
  position: relative;
  top: 0px;
  left: 0px;
  padding: 8px;
  width: 36px;
  height: 36px;
  background: #ac2c39;
  border: solid 1px #fff;
  border-radius: 50%;
}

/* data table styles */
#vehiclesTable {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
}
#vehiclesTable td.text-center.nowrap {
  width: fit-content;
  min-width: 300px;
}
th.no-wrap {
  width: 220px;
  min-width: 220px;
}
#vehiclesTable th.column-hidden,
#vehiclesTable td.column-hidden,
#vehiclesTable col.column-hidden {
  display: none;
}
thead tr th {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
th::after {
  content: "";
  color: #F9C10A;
  
}
.table-card {
  border-radius: 15px;
  height: 80vh;
  overflow: hidden;
  overflow-y: auto;
}
#vehiclesTable tbody tr {
  border-bottom: solid 1px rgba(255, 255, 255, 0.1);
}
.table tbody tr:hover {
  outline: solid 1px rgba(155, 155, 155, 0.4);
}
.table-image-container {
  max-width: 80px;
  margin: 4px auto;
  width: 100%;
  max-height: 100px;
  height: 100%;
  overflow: hidden;
  border-radius: 5px;
  img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }
  img:hover {
    outline: solid 4px #ee0000;
  }
}
.nowrap {
  white-space: nowrap;
}
#rowCount {
  font-size: 16px;
  font-weight: 400;
}
th {
  cursor: pointer;
  position: relative;
}

th::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}

th.sort-asc::after {
  border-bottom: 5px solid currentColor;
  border-top: none;
}

th.sort-desc::after {
  border-top: 5px solid currentColor;
  border-bottom: none;
}
td {
  vertical-align: middle;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  padding-top: 4px;
  padding-bottom: 4px;
}
th {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  min-width: 100px;
}
.stock-number-header {
  min-width: 140px;
  padding-right: 20px;
  text-overflow: clip;
  white-space: normal;
}
.badge {
  font-size: 14px;
  font-weight: 700;
}
.price-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}
.updated-badge {
  font-size: 12px;
}
.action-button-group i {
  display: block;
  color: #fff;
  font-size: 18px;
  padding: 0;
  text-transform: uppercase;
}
.action-button-group small {
  display: block;
  min-width: 50px;
  font-size: 10px;
  line-height: 10px;
  font-weight: 700;
  padding: 0;
  text-transform: uppercase;
}
.action-button-group .dropdown-item .dropdown-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
}
.action-button-group .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.action-cell {
  width: 200px;
}
.action-button {
  min-width: 64px;
  max-width: 90px;
  font-size: 9px;
  padding: 0.35rem 0.4rem;
  font-weight: 400;
  text-transform: uppercase;
}
.action-button i {
  font-size: 20px;
  font-weight: 400;
}
.table img {
  width: 80px;
  border-radius: 5px;
}
.vehicle-model {
  width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.model-cell,
.color-cell {
  padding-top: 4px;
  padding-bottom: 4px;
}
.model-text,
.column-type,
.column-color {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.photos-status {
  font-size: 24px;
  font-weight: 500;
  text-transform: uppercase;
}
.placeholder {
  border-radius: 5px;
  padding: 10px;
  margin: 5px 0;
  height: 15px;
}
.offcanvas {
  width: 320px !important;
  opacity: 0.94;
}
.side-menu-footer {
  position: absolute;
  background: none;
  border: none;
  bottom: 0;
  right: 0;
  padding: 10px 0;
}

/* Key Tags */
.modal {
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.warning-icon-container {
  text-align: center;
  font-size: 300%;
  color: red;
  padding-top: 80px;
}
.error-message {
  text-align: center;
  font-size: large;
}
.rotated-label {
  transform: rotate(90deg);
  transform-origin: right;
}
.blank-line {
  background: #ccc;
  border-radius: 4px;
  height: 11px;
  margin-bottom: 10px;
}
.placeholder {
  font-size: 12px !important;
  line-height: 12px !important;
  height: 12px !important;
}
.key-tag-container {
  border: solid 1px #ccc;
  border-radius: 10px;
  padding: 0px 5px;
  margin-top: 3px;
  width: 1.5in;
  height: 2in;
  background: #fff;
  color: #000;
  zoom: 2;
}
.keytag-label {
  font-size: 6px;
  color: #999;
  margin: -8px 0 0px 0;
  padding-left: 0px;
}
.model-usage {
  text-align: center;
  font-size: 12px;
  line-height: 14px;
  font-weight: bold;
  border-bottom: solid 1px #eee;
}
.stock-number {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  line-height: 26px;
  border-bottom: solid 1px #eee;
}
.model-year {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  line-height: 20px;
  border-bottom: solid 1px #eee;
}
.manufacturer {
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  border-bottom: solid 1px #eee;
}
.model-name {
  text-align: center;
  font-size: 14px;
  line-height: 20px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-bottom: solid 1px #eee;
}
.model-code {
  text-align: center;
  font-size: 14px;
  line-height: 18px;
  font-weight: bold;
  border-bottom: solid 1px #eee;
}
.model-color {
  text-align: center;
  font-size: 12px;
  line-height: 18px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-bottom: solid 1px #eee;
}
.model-vin {
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  line-height: 18px;
}
.model-usage::after {
  display: block;
  text-align: left;
  margin-bottom: -1px;
  margin-top: -4px;
  content: "USAGE";
  font-size: 6px !important;
  line-height: 8px;
  color: #ccc;
}
.stock-number::after {
  display: block;
  text-align: left;
  margin-bottom: -1px;
  margin-top: -4px;
  content: "STOCK NUMBER";
  font-size: 6px !important;
  line-height: 8px;
  color: #ccc;
}
.model-year::after {
  display: block;
  text-align: left;
  margin-bottom: -1px;
  margin-top: -4px;
  content: "YEAR";
  font-size: 6px !important;
  line-height: 8px;
  color: #ccc;
}
.manufacturer::after {
  display: block;
  text-align: left;
  margin-bottom: -1px;
  margin-top: -4px;
  content: "MANUFACTURER";
  font-size: 6px !important;
  line-height: 8px;
  color: #ccc;
}
.model-name::after {
  display: block;
  text-align: left;
  margin-bottom: -1px;
  margin-top: -4px;
  content: "MODEL";
  font-size: 6px !important;
  line-height: 8px;
  color: #ccc;
}
.model-code::after {
  display: block;
  text-align: left;
  margin-bottom: -1px;
  margin-top: -4px;
  content: "CODE";
  font-size: 6px !important;
  line-height: 8px;
  color: #ccc;
}
.model-color::after {
  display: block;
  text-align: left;
  margin-bottom: -1px;
  margin-top: -4px;
  content: "COLOR";
  font-size: 6px !important;
  line-height: 8px;
  color: #ccc;
}
.model-vin::after {
  display: block;
  text-align: left;
  margin-bottom: -1px;
  margin-top: -4px;
  content: "VIN";
  font-size: 6px !important;
  line-height: 8px;
  color: #ccc;
}

/* Vertical Label */
.rotated-label-text {
  writing-mode: vertical-rl;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  text-align: center;
  width: 1.4in;
}
.year-make-container {
  padding: 0;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.model-year-vertical {
  font-size: 22px;
  font-weight: 700;
  line-height: 16px;
  padding-bottom: 1px;
}
.manufacturer-vertical {
  font-size: 22px;
  font-weight: 700;
  line-height: 16px;
  padding-bottom: 1px;
}
.model-name-vertical {
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
}
.model-vin-vertical {
  font-size: 16px;
  font-weight: 400;
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
}
.no-wrap {
  white-space: nowrap;
}



.custom-tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
  transform: translateY(-100%);
  margin-top: -5px;
  z-index: 1000;
}

.custom-tooltip::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px 5px 0;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.8) transparent transparent;
}

/* Hide default anchor */
::backdrop {
  display: none;
}

/* Custom Search Dropdown Styles */
.search-container {
  position: relative;
  display: inline-block;
  width: auto;
}

.search-with-suggestions {
  position: relative;
  max-width: 200px;
  display: grid;
  margin-right: 0.25rem;
  margin-left: 0.25rem;
  width: 100%; /* Ensure container takes up full width of input */
}

.search-suggestions-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px; /* Match minimum width of search input */
  width: 100%; /* Take full width of parent container */
  max-height: 300px;
  overflow-y: auto;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1050;
  display: none;
  margin-top: 2px;
}

[data-bs-theme="dark"] .search-suggestions-dropdown {
  background-color: #343a40;
  border-color: #495057;
  color: #f8f9fa;
}

.suggestion-item {
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
}

.suggestion-item:hover,
.suggestion-item.highlighted {
  background-color: #f8f9fa;
}

[data-bs-theme="dark"] .suggestion-item:hover,
[data-bs-theme="dark"] .suggestion-item.highlighted {
  background-color: #495057;
}

/* Stock numbers have a special appearance */
.suggestion-item[data-type="stockNumbers"] {
  font-weight: bold;
}

/* Make dropdown scrollable on mobile */
@media (max-width: 768px) {
  .search-suggestions-dropdown {
    min-width: 200px;
    width: 100%;
    max-height: 200px;
    left: 0;
  }

  .search-with-suggestions {
    width: 100%;
    max-width: 100%;
  }

  .search-container {
    width: 100%;
    max-width: 100%;
    display: block;
  }
}


/* CUSTOM ICONS */
.ms-keys-tag {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  background-color: currentColor;

  /* The SVG Mask */
  --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M14,14c0,1.1-.9,2-2,2H4c-1.1,0-2-.9-2-2V2c0-1.1.9-2,2-2h8c1.1,0,2,.9,2,2v12ZM4.5,3.9c0-1.9,1.6-3.5,3.5-3.5,1.9,0,3.5,1.6,3.5,3.5,0,1.4-.8,2.6-2,3.2v7.3l-1.5,1.5-1.5-1.5,1-1-1-1,1-1-1-1,1-1-1-1v-1.3c-1.2-.6-2-1.8-2-3.2M7,2.9c0,.6.4,1,1,1s1-.4,1-1-.4-1-1-1-1,.4-1,1'/%3E%3C/svg%3E");

  -webkit-mask-image: var(--svg);
  mask-image: var(--svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
}