/* General */

:root {
  --banner-offset: 0px;
  --header-cust-invoices: calc(320px + var(--banner-offset));
  --header-feedback-history: calc(175px + var(--banner-offset));
  --header-support-issues: calc(270px + var(--banner-offset));
  --header-single-input: calc(238px + var(--banner-offset));
  --header-no-input: calc(103px + var(--banner-offset));
  --header-engine-kit: calc(140px + var(--banner-offset));
  --header-back-order: calc(308px + var(--banner-offset));
  --header-order-history: calc(335px + var(--banner-offset));
  --header-order-status: calc(230px + var(--banner-offset));
  --header-sub-dealers: calc(234px + var(--banner-offset));
  --header-search-input: calc(222px + var(--banner-offset));
  --header-fpp-input: calc(210px + var(--banner-offset));
  --header-purchase-summary: calc(270px + var(--banner-offset));
  --header-warranty-claim: calc(262px + var(--banner-offset));
  --header-order-history-filters: calc(230px + var(--banner-offset));
  --header-upload-order: calc(158px + var(--banner-offset));
  --drop-ship-addresses: calc(310px + var(--banner-offset));
  --header-catalog-table: calc(165px + var(--banner-offset));
  --header-compare-title: calc(91px + var(--banner-offset));
  --header-compare-input: calc(135px + var(--banner-offset));
  --header-compare-table: calc(205px + var(--banner-offset));
  --header-engine-kit-search: calc(100px + var(--banner-offset));
  --header-engine-kit-results: calc(104px + var(--banner-offset));
}

@media (max-width: 1260px) and (min-width: 576px) {
  :root {
    --header-warranty-claim: calc(310px + var(--banner-offset));
    --header-search-input: calc(270px + var(--banner-offset));
    --header-fpp-input: calc(258px + var(--banner-offset));
    --header-purchase-summary: calc(320px + var(--banner-offset));
    --header-order-status: calc(280px + var(--banner-offset));
    --header-order-history: calc(380px + var(--banner-offset));
    --header-cust-invoices: calc(368px + var(--banner-offset));
    --header-single-input: calc(285px + var(--banner-offset));
    --header-back-order: calc(348px + var(--banner-offset));
    --header-sub-dealers: calc(280px + var(--banner-offset));
    --header-no-input: calc(150px + var(--banner-offset));
    --header-feedback-history: calc(220px + var(--banner-offset));
    --header-support-issues: calc(318px + var(--banner-offset));
    --header-order-history-filters: calc(278px + var(--banner-offset));
    --header-upload-order: calc(206px + var(--banner-offset));
    --drop-ship-addresses: calc(360px + var(--banner-offset));
    --header-catalog-table: calc(212px + var(--banner-offset));
    --header-compare-title: calc(138px + var(--banner-offset));
    --header-compare-input: calc(182px + var(--banner-offset));
    --header-compare-table: calc(252px + var(--banner-offset));
    --header-engine-kit-search: calc(147px + var(--banner-offset));
    --header-engine-kit-results: calc(151px + var(--banner-offset));
  }
}

body a:hover {
  color: currentColor;
}

/* Utility classes */

.util-full-height {
  height: 100%;
}

.util-leading-tight {
  line-height: 1.25;
}

.overflow-x-auto {
  overflow-x: auto;
}

.util-flex-none {
  flex: none;
}

.util-cursor-default {
  cursor: default;
}

.util-w-10 {
  width: 10%;
}

.util-w-20 {
  width: 20%;
}

.util-bg-cover {
  background-size: cover;
}

.util-darken {
  background: rgba(255, 255, 255, 0.1);
}

.util-blue {
  color: #006cb2;
}

.util-bg-blue {
  background: #006cb2;
}

.util-light-blue {
  color: #66b2e0;
}

.util-red {
  color: #b72426;
}

.util-bold {
  font-weight: 600;
}

.util-rounded {
  border-radius: 15px;
}

.util-text-sm {
  font-size: 0.6rem;
}

.util-text-md {
  font-size: 0.8rem;
}

.util-pl-xs {
  padding-left: 0.8rem !important;
}

.util-mr-xxs {
  margin-right: 0.35rem !important;
}

.util-size-12 {
  width: 3rem !important;
  height: 3rem !important;
}

@media (max-width: 400px) {
  .util-text-md {
    font-size: 0.7rem;
    /* Smaller size for extra small devices */
  }
}

@media (max-width: 575px) {
  .util-mt-sm-55 {
    margin-top: 55px;
  }
}

@media (min-width: 365px) and (max-width: 400px) {
  .navbar {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 0.5rem 0.5rem;
  }
}

@media (max-width: 360px) {

  .navbar {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 0.5rem 0.25rem;
  }

  .navbar-brand {
    display: inline-block;
    padding-top: 0.3125rem;
    padding-bottom: 0.3125rem;
    margin-right: 0.5rem;
    font-size: 1.25rem;
    line-height: inherit;
    white-space: nowrap;
  }

}


.util-text-md-2 {
  font-size: 0.9rem;
}

.util-text-lg {
  font-size: 1.1rem;
}

.util-text-xl {
  font-size: 1.25rem;
}

.util-text-xxl {
  font-size: 1.5rem;
}

.util-highlight {
  text-shadow: -4px 0px 8px rgba(255, 193, 7, 0.7),
    4px 0px 8px rgba(255, 193, 7, 0.7), 8px 0px 16px rgba(255, 193, 7, 0.7),
    -8px 0px 16px rgba(255, 193, 7, 0.7);
}

.util-bg-gray {
  background: #f2f3f7;
}

.util-bg-gray-2 {
  background: #c2c2c6;
}

.util-bg-dark-gray {
  background: #dedfe2;
}

.util-top-bar-aduser {
  background-color: #006400;
}

.util-top-bar-background {
  background-color: #003366;
}

.util-bg-highlight {
  background: #ffff66;
}

#content .util-td-accordion {
  padding-top: 18px;
}

.util-h-max {
  height: max-content;
}

.util-z-999 {
  z-index: 999;
}

.util-z-1000 {
  z-index: 1000;
}

.util-w-0 {
  width: 0px;
}

.util-w-100 {
  width: 100px;
}

.util-text-2xl {
  font-size: 1.6rem;
}

.util-box-shadow {
  box-shadow: inset 0 1px 0 #dee2e6, inset 0 -1px 0 #dee2e6;
}

.overflow-y-auto {
  overflow-y: auto;
}

.overflow-y-scroll {
  overflow-y: scroll;
}

.overflow-y-clip {
  overflow-y: clip;
}

.util-h-32 {
  height: 8rem;
}

.checkout-form-step1 {
  min-height: 250px;
}

.checkout-form-step3 {
  min-height: 326px;
}

.util-border-color-light-grey {
  border-color: #cccccc;
}

.min-w-205 {
  min-width: 205px;
}

.text-black {
  color: #000;
}

.w-30 {
  width: 30%;
}

.w-9 {
  width: 9%;
}

/* Bootstrap overrides */

.btn-group-xs>.btn,
.btn-xs {
  padding: 0.25rem 0.4rem;
  font-size: 0.8rem;
  line-height: 0.5;
  border-radius: 0.2rem;
}

.tooltip-inner {
  max-width: 100%;
}

.tooltip-inner {
  max-width: 315px;
  text-align: left;
}

.tooltip-inner img {
  max-height: 300px;
  max-width: 300px;
}

.collapsing {
  -webkit-transition: none;
  transition: none;
  display: none;
}

.form-check-input {
  margin-top: 7px;
}

.page-item.active .page-link,
.btn-primary,
.btn-primary:disabled {
  background-color: #20609f;
  border-color: #20609f;
}

.btn-primary:not(:disabled):hover {
  background-color: #1a457c;
  border-color: #1a457c;
}

.nav-tabs .nav-link.active {
  color: #283747;
}

.dropdown-item:active {
  background-color: #006cb2;
}

.alert p {
  margin: 0 !important;
}

/* Misc */

.form input::placeholder {
  color: #999;
}

.form {
  border: 1px solid #eee;
}

.form label:not(.form-check-label):after {
  content: ':';
}

.titan-multi-check .form-check-input {
  margin-top: 4px;
}

.titan-multi-check .form-check-input:disabled~.form-check-label {
  color: #212529;
}

.titan-thumbnail {
  height: 96px;
  width: 96px;
}

.titan-card-sm {
  width: 135px;
}

.titan-card-md {
  width: 270px;
}

.titan-breadcrumbs {
  top: 16px;
}

.titan-min {
  width: 1%;
  white-space: nowrap;
}

.titan-icon-badge {
  display: block;
  position: relative;
}

.titan-icon-badge span {
  position: absolute;
  right: 20px;
  top: -5px;
}

.titan-spinner {
  top: 41px;
  right: 25px;
}

.titan-hero {
  background-size: contain;
  background-repeat: no-repeat;
  width: 100%;
  height: 0;
  padding-top: 28.571%;
  /* (hero image height 600px / hero image width 2100px) * 100 */
}

.titan-hamburger {
  color: white;
}

.titan-menu {
  background: #20609f;
  border-top: 1px solid #1a457c;
  border-bottom: 1px solid #333;
}

.titan-min-3-lines {
  min-height: 4.7rem;
}

.titan-min-4-lines {
  min-height: 5.9rem;
}

.titan-min-8-lines {
  min-height: 10.7rem;
}

.titan-required:before {
  content: '*';
  color: #b72426;
}

h1 {
  border-bottom: 3px solid #20609f;
  display: inline-block;
  font-size: 1.25rem;
  margin-bottom: 25px;
  padding-bottom: 5px;
}

.right {
  float: right;
}

.titan-text-gray {
  color: dimgray;
}

.titan-map-responsive {
  overflow: hidden;
  padding-bottom: 56.25%;
  position: relative;
  height: 0;
}

.titan-map-responsive iframe {
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  position: absolute;
}

.titan-card-header {
  left: -8px;
  top: -3px;
  position: relative;
}

.titan-card-delete {
  right: -10px;
  top: -3px;
  position: relative;
}

.titan-bg-blue {
  background-color: #20609f;
}

.table-responsive resultSearch {
  display: block;
  overflow-y: auto;
}

@media (max-width: 450px) {
  .menu-search {
    width: 25% !important;
  }
}

.titan-sticky {
  padding: 10px 0px 10px 0px;
}

.titan-sticky h1 {
  margin-bottom: 0px !important;
}

/* small devices (portrait phones, less than 400px) */
@media (max-width: 400px) {
  .titan-sticky {
    background: #fff;
    position: sticky;
    top: calc(150px + var(--banner-offset, 0px));
    z-index: 1000;
  }

  .result-list-sticky {
    position: sticky;
    top: 0px;
    z-index: 1000;
  }

  .resultslist {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 800px;
  }
}

/* small devices (portrait phones, less than 768px) */
@media (min-width: 410px) and (max-width: 768px) {
  .titan-sticky {
    background: #fff;
    position: sticky;
    top: calc(150px + var(--banner-offset, 0px));
    z-index: 1000;
  }

  .result-list-sticky {
    position: sticky;
    top: 0px;
    z-index: 1000;
  }

  .resultslist {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 800px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 769px) {
  .titan-sticky {
    background: #fff;
    position: sticky;
    top: calc(150px + var(--banner-offset, 0px));
    z-index: 1000;
  }

  .result-list-sticky {
    position: sticky;
    top: calc(174px + var(--banner-offset, 0px));
    z-index: 1000;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 1260px) {
  .titan-sticky {
    background: #fff;
    position: sticky;
    top: calc(102px + var(--banner-offset, 0px));
    z-index: 1000;
  }

  .result-list-sticky {
    position: sticky;
    top: calc(174px + var(--banner-offset, 0px));
    z-index: 1000;
  }
}

/* Tablets landscape and small laptops */
@media (min-width: 1024px) and (max-width: 1260px) {
  #card-sticky {
    background-color: #f1f1f1;
    position: sticky;
    top: calc(210px + var(--banner-offset, 0px));
    z-index: 5;
  }
}

/* Standard desktops */
@media (min-width: 1260px) and (max-width: 1440px) {
  #card-sticky {
    background-color: #f1f1f1;
    position: sticky;
    top: calc(162px + var(--banner-offset, 0px));
    z-index: 5;
  }
}

/* Ultra-wide screens */
@media (min-width: 1440px) {
  #card-sticky {
    background-color: #f1f1f1;
    position: sticky;
    top: calc(162px + var(--banner-offset, 0px));
    z-index: 5;
  }
}

@media (max-width: 1500px) {
  .newarrivals-table {
    overflow-x: auto;
    display: block;
  }
}

@media (min-width: 1501px) {
  .arrival-header {
    position: sticky;
    top: calc(160px + var(--banner-offset, 0px));
    z-index: 999;
  }
}

@media (min-width: 640px) {
  .table-header {
    position: sticky;
    top: calc(174px + var(--banner-offset, 0px)) !important;
    z-index: 1000;
  }
}

@media (max-width:639px) {
  #results_list_view {
    overflow-x: auto;
  }
}

.pointer {
  cursor: pointer;
}

table.attributes {
  border-spacing: 0;
}

table.attributes th {
  border-bottom: 0.5px solid lightgray;
}

table.attributes td {
  border-bottom: 0.5px solid lightgray;
}

.background-spin {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 9995;
}

.cover-spin {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  text-align: center;
}

.blink_me {
  animation: blinker 1s linear infinite;
}

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

/* ---------------------------------------------------
    SIDEBAR STYLE
----------------------------------------------------- */

.wrapper {
  display: flex;
  width: 100%;
  align-items: stretch;
}

#sidebar {
  min-width: 250px;
  max-width: 250px;
  background: rgba(32, 96, 159, 1);
  color: #fff;
  transition: all 0.3s;
  height: calc(100vh - 100px);
  overflow-y: auto;
  position: fixed;
  z-index: 1040;
}

#sidebar::-webkit-scrollbar {
  width: 8px;
}

#sidebar::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 4px;
}

#sidebar::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}

#sidebar.active {
  margin-left: -250px;
}

@media (min-width: 768px) {
  #sidebar:not(.active)+section#content {
    width: calc(100% - 250px) !important;
    margin-left: 250px;
  }

  footer {
    margin-left: 250px;
  }
}

@media (max-width: 768px) {
  #sidebar {
    margin-left: -250px;
  }

  #sidebar.active {
    margin-left: 0;
  }

  #widget-table {
    width: 100% !important;
  }

  .cart-add-parts {
    width: 100% !important;
  }
}

#sidebar .sidebar-header {
  padding: 10px;
  background: rgba(32, 96, 159, 1)6d7fcc;
}

#sidebar ul.components {
  padding: 20px 0;
}

#sidebar ul p {
  color: #fff;
  padding: 10px;
}

#sidebar ul>li {
  margin: 5px 0px 5px 0px;
}

#sidebar ul>li>ul>li {
  margin: 0;
}

#sidebar i {
  width: 30px;
  text-align: center;
}

#sidebar ul li a {
  color: #fff;
  padding: 7px;
  font-size: 1.1em;
  display: block;
}

#sidebar ul li a.active {
  color: black;
  background: #B1D4E0;
}

#sidebar ul li a:hover {
  color: black;
  background: #B1D4E0;
}

#sidebar ul li.active>a,
a[aria-expanded="true"] {
  color: #fff;
  font-weight: 700;
  background: #2E8BC0;
}

a[data-toggle="collapse"] {
  position: relative;
}

.dropdown-toggle::after {
  display: block;
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

/*
.dropdown-toggle[aria-expanded="true"]:after {
  transform: rotate(180deg);
  }
  .dropdown-toggle:after {
  transition: 0.7s;
  }
}
*/

ul ul a {
  color: #fff;
  font-size: 1.1em !important;
  padding-left: 30px !important;
  background: #2E8BC0;
}

ul.CTAs {
  padding: 20px;
}

ul.CTAs a {
  text-align: center;
  font-size: 0.9em !important;
  display: block;
  border-radius: 5px;
  margin-bottom: 5px;
}

a.download {
  background: #fff;
  color: #7386D5;
}

a.article,
a.article:hover {
  color: #fff !important;
  text-decoration: none !important;
}

/*Widget icon colors*/
.icon-color.saved-carts {
  color: blue;
}

.icon-color.open-orders {
  color: red;
}

.icon-color.back-orders {
  color: sienna;
}

.icon-color.open-invoices {
  color: hotpink;
}

.icon-color.open-feedback {
  color: lime;
}

.icon-color.warranty-claims {
  color: blueviolet;
}

.icon-color.open-quotes {
  color: orange;
}

.icon-color.srn {
  color: crimson;
}

.icon-color.order-history {
  color: teal;
}

.icon-color.rebates {
  color: green;
}

.icon-color.subdealer {
  color: Chocolate;
}

/* custom css for product details page and media queries for mobile screens*/

@media (max-width: 450px) {
  .menu-search {
    width: 25% !important;
  }
}

a.cssProductAnchor {
  display: block;
  position: relative;
  top: -100px;
  visibility: hidden;
}

.row.cl-info span {
  padding: 4px;

}

#stickyHeader {
  visibility: hidden;
}

#stickyHeader.sticky {
  visibility: visible;
  top: 90px;
}

.modal-body #stickyHeader {
  top: 0px !important;
}

.cl-vtc .btn-secondary {
  width: fit-content;
  float: right;
  margin-right: 90px;
}

@media (max-width: 576px) {
  .modal-lg {
    width: 75%;
    padding: 0.5rem;
  }

  .modal-xl {
    width: 80%;
    padding: 0.5rem;
  }

  .modal-content {
    height: 70vh;
    /* Adjust height as needed */
    overflow-y: auto;
  }

  .modal-dialog .modal-content {
    max-height: calc(100vh - 1rem);
    overflow-y: auto;
  }
}

.logo-container {
  width: 191px;
}

@media (max-width: 576px) {
  .logo-container {
    width: 100px;
  }
}

@media (max-width: 1260px) {
  .hide-on-tablet {
    display: none !important;
  }
}

@media (max-width: 1260px) {
  .show-on-tablet {
    display: flex !important;
  }

  nav.titan-menu {
    flex-direction: column !important;
  }

  nav.titan-menu> :nth-of-type(1),
  nav.titan-menu> :nth-of-type(2) {
    width: 100% !important;
  }
}

/* dashboard */
.dash-cards {
  width: 370px;
  display: inline-block;
  margin: .5rem;
  border-radius: 4px !important;
  box-shadow: 0 -1px 1px 0 rgba(0, 0, 0, .05), 0 1px 2px 0 rgba(0, 0, 0, .2) !important;
  transition: all .5s ease;
  border: 1px solid rgba(0, 0, 0, .125);
  background: #fff;
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.cursor-pointer {
  cursor: pointer;
}

.center-absolute {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@media (min-width: 768px) and (max-width: 1260px) {
  .catalog-header {
    top: 152px;
  }
}

@media (min-width: 1261px) {
  .catalog-header {
    top: 102px;
  }
}

@media (max-width: 1360px) {
  .catalog-table {
    overflow-x: auto;
    display: block;
  }

  .catalog-table-header {
    top: 0 !important;
  }
}

@media (max-width: 575px) {
  .input-button-height {
    height: 38px;
  }

  .mobile-header {
    position: relative !important;
    top: 0 !important;
  }

  .mobile-titan {
    position: relative !important;
    top: 0 !important;
  }
}

.header-warranty-claim {
  top: var(--header-warranty-claim);
}

.header-search-input {
  top: var(--header-search-input);
}

.header-fpp-input {
  top: var(--header-fpp-input);
}

.header-purchase-summary {
  top: var(--header-purchase-summary);
}

.header-order-status {
  top: var(--header-order-status);
}

.header-order-history {
  top: var(--header-order-history);
}

.header-order-history-filters {
  top: var(--header-order-history-filters);
}

.header-single-input {
  top: var(--header-single-input);
}

.header-back-order {
  top: var(--header-back-order);
}

.header-upload-order {
  top: var(--header-upload-order);
}

.drop-ship-addresses {
  top: var(--drop-ship-addresses);
}

.header-sub-dealers {
  top: var(--header-sub-dealers);
}

.header-no-input {
  top: var(--header-no-input) !important;
}

@media (max-width: 991px) {
  .header-no-input {
    position: static !important;
    top: auto !important;
  }
}

.header-feedback-history {
  top: var(--header-feedback-history);
}

.header-support-issues {
  top: var(--header-support-issues);
}

.header-order-history-filters {
  top: var(--header-order-history-filters);
}

.header-cust-invoices {
  top: var(--header-cust-invoices);
}

.header-catalog-table {
  top: var(--header-catalog-table);
}

.header-compare-title {
  top: var(--header-compare-title);
}

.header-compare-input {
  top: var(--header-compare-input);
}

.header-compare-table {
  top: var(--header-compare-table);
}

.header-engine-kit-search {
  top: var(--header-engine-kit-search);
}

.header-engine-kit-results {
  top: var(--header-engine-kit-results);
}

/* Disable sticky positioning on mobile for all header classes */
@media (max-width: 991px) {
  .header-warranty-claim,
  .header-fpp-input,
  .header-search-input,
  .header-order-status,
  .header-order-history,
  .header-order-history-filters,
  .header-single-input,
  .header-back-order,
  .header-upload-order,
  .drop-ship-addresses,
  .header-sub-dealers,
  .header-feedback-history,
  .header-support-issues,
  .header-cust-invoices,
  .header-engine-kit,
  .header-catalog-table,
  .header-compare-title,
  .header-compare-input,
  .header-compare-table,
  .header-engine-kit-search,
  .header-engine-kit-results {
    position: relative !important;
    top: auto !important;
  }
}

@media (max-width: 1260px) and (min-width: 576px) {
  .header-feedback-history {
    top: var(--header-feedback-history) !important;
  }

  .header-support-issues {
    top: var(--header-support-issues) !important;
  }

  .header-single-input {
    top: var(--header-single-input) !important;
  }

  .header-no-input {
    top: var(--header-no-input) !important;
  }

  .header-engine-kit {
    top: var(--header-engine-kit) !important;
  }

  .header-back-order {
    top: var(--header-back-order) !important;
  }

  .header-order-history {
    top: var(--header-order-history) !important;
  }

  .header-order-status {
    top: var(--header-order-status) !important;
  }

  .header-sub-dealers {
    top: var(--header-sub-dealers) !important;
  }

  .header-search-input {
    top: var(--header-search-input) !important;
  }

  .header-fpp-input {
    top: var(--header-fpp-input) !important;
  }

  .header-warranty-claim {
    top: var(--header-warranty-claim) !important;
  }

  .header-cust-invoices {
    top: var(--header-cust-invoices) !important;
  }

  .header-order-history-filters {
    top: var(--header-order-history-filters) !important;
  }

  .header-catalog-table {
    top: var(--header-catalog-table) !important;
  }

  .header-compare-title {
    top: var(--header-compare-title) !important;
  }

  .header-compare-input {
    top: var(--header-compare-input) !important;
  }

  .header-compare-table {
    top: var(--header-compare-table) !important;
  }

  .header-engine-kit-search {
    top: var(--header-engine-kit-search) !important;
  }

  .header-engine-kit-results {
    top: var(--header-engine-kit-results) !important;
  }
}

/* Shopping cart dropdown styles */
.dropdown-item:hover,
.dropdown-item:focus {
  background-color: rgb(221, 219, 219) !important;
}

@media (min-width: 1140px) {
  .sticky-table {
    position: sticky;
  }
}

@media (max-width: 1138px) {
  .sticky-table {
    position: static !important;
  }
}

@media (max-width: 1139px) {
  .sm-sc-table {
    white-space: nowrap;
    overflow-x: auto;
    display: block;
  }
}

.sm-sc-table::-webkit-scrollbar,
.table-scroll-design::-webkit-scrollbar {
  height: 8px;
}

.sm-sc-table::-webkit-scrollbar-thumb,
.table-scroll-design::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .manage-users-table {
    white-space: nowrap;
    overflow-x: auto;
    display: block;
  }
}



@media (max-width: 1350px) {
  .response-items-table {
    white-space: nowrap;
    overflow-x: auto;
    display: block;
  }
}

.hello-text {
  top: 0;
  right: 0;
  position: absolute;
  padding: 0;
  margin: 0;
  font-style: italic;
}

/* CSS for Commonly Sold Items in Product Details Page */
#commonly-sold-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 16px;
  padding: 0 16px;
}

.commonly-sold-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  padding: 14px 12px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  width: calc(20% - 16px);
  /* 5 per row with gap */
  box-sizing: border-box;
  margin-bottom: 10px;
}

.commonly-sold-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.cs-item-link {
  text-decoration: none !important;
  color: inherit;
  display: block;
  height: 100%;
}

.cs-item-link * {
  text-decoration: none !important;
}

.cs-item-image {
  width: 100px;
  height: 100px;
  margin: 0 auto 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 4px;
  background-color: #f9fafb;
}

.cs-item-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cs-description {
  font-size: 0.8rem;
  color: #374151;
  margin-bottom: 6px;
  min-height: 25px;
  font-weight: 700;
}

.kv-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin: 4px 0;
}

.kv-label {
  color: #6b7280;
  font-weight: 500;
  text-align: left;
  flex-shrink: 0;
}

.kv-value {
  color: #374151;
  font-weight: 600;
  text-align: right;
  flex-grow: 1;
  margin-left: 10px;
}

.cs-price-value {
  color: #16a34a;
  font-weight: 600;
}

.cs-availability-row {
  align-items: flex-start;
  flex-direction: column;
}

.cs-availability-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
}

.commonly-sold-item .badge {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  margin: 0 2px;
}

.commonly-sold-item .badge-success {
  background-color: #10b981;
  color: white;
}

.commonly-sold-item .badge-warning {
  background-color: #f59e0b;
  color: white;
}

.commonly-sold-item .badge-danger {
  background-color: #ef4444;
  color: white;
}

.cs-items-container .in-stock {
  background-color: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.cs-items-container .out-of-stock {
  background-color: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* Responsive Layout */
@media (max-width: 1200px) {
  .commonly-sold-item {
    width: calc(33.333% - 16px);
  }
}

@media (max-width: 768px) {
  .commonly-sold-item {
    width: calc(50% - 16px);
  }
}

@media (max-width: 500px) {
  .commonly-sold-item {
    width: 100%;
  }
}

/* End of Commonly Sold Items CSS */

@media (max-width: 576px) {
  #myModalItemColumn .modal-xl {
    width: 100% !important;
    margin: 0px !important;
  }

  #myModalItemColumn .modal-xl .modal-content {
    height: 100vh !important;
  }
}

.cart-pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 10px 0;
  padding: 10px;
}

.cart-pagination-button {
  padding: 6px 14px;
  border-radius: 4px;
  margin: 2px;
  text-decoration: none;
  color: #fff;
  background-color: #6c757d;
  /* secondary button color */
  border: 1px solid transparent;
  font-size: 20px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.cart-pagination-prev,
.cart-pagination-next {
  background-color: #0056b3;
  /* primary */
}

.cart-pagination-button:hover {
  background-color: #0056b3;
}

.cart-pagination-current {
  padding: 6px 14px;
  border-radius: 4px;
  margin: 2px;
  font-weight: bold;
  background-color: #0056b3;
  color: #fff;
  font-size: 20px;
}

.cart-pagination-ellipsis {
  font-size: 18px;
  color: #6c757d;
  margin: 2px 6px;
}

.cart-pagination-input {
  width: 55px;
  padding: 4px 6px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 18px;
  font-weight: bold;
  margin-left: 6px;
  height: 45px;
}

/* Mobile responsiveness */
@media (max-width: 600px) {

  .cart-pagination-button,
  .cart-pagination-current {
    font-size: 13px;
    padding: 5px 10px;
  }

  .cart-pagination-input {
    width: 40px;
    font-size: 13px;
  }

  .cart-pagination-ellipsis {
    font-size: 14px;
  }
}



/* HTMX animations */
tr.htmx-swapping td {
  opacity: 0;
  transition: opacity 1s ease-out;
}

@media (max-width: 576px) {
  #myModalItemColumn .modal-xl {
    width: 100% !important;
    margin: 0px !important;
  }

  #myModalItemColumn .modal-xl .modal-content {
    height: 100vh !important;
  }

  #modalProduct .modal-xl {
    width: auto !important;
  }

  #modalProduct .modal-xl .modal-content {
    height: 100vh !important;
  }

  #modalPartNote .modal-lg {
    width: 100% !important;
    margin: 0px !important;
  }

  #modalPartNote .modal-lg .modal-content {
    height: 100vh !important;
  }

  #modalCompare .modal-lg {
    width: auto !important;
  }

  #modalCompare .modal-lg .modal-content {
    height: auto !important;
  }

  #modalPO .modal-lg {
    width: auto !important;
  }

  #modalPO .modal-lg .modal-content {
    height: auto !important;
  }
}

/* Sub-dealer styles */
.table-compact-padding {
  padding: 1px !important;
}

.status-active {
  color: green;
}

.status-inactive {
  color: red;
}

.input-group-narrow {
  max-width: 300px;
}

.btn-fixed-height {
  height: 38px;
}

.divider-line {
  border: 0;
  border-top: 1px solid black;
}

@media (max-width: 1159px) {
  .custinvoices-table {
    white-space: nowrap;
    overflow-x: auto;
    display: block;
  }
}

.custom-card-group {
  display: flex;
  flex-wrap: wrap;
}

@media ((max-width: 1340px) and (min-width: 992px)) {
  .custom-card-group .card {
    flex: 0 0 48%;
  }
}

/* New Arrivals and Search Result styles */
.compare-modal-height {
  height: 578px;
}

.similar-kits-container {
  height: 150px;
}

.compare-header-width {
  width: 70%;
}

.compare-header-height {
  height: 85px;
}

.padding-left-50 {
  padding-left: 50px;
}

/* Engine Kits styles */
.engine-kits-sticky-header {
  position: sticky;
  top: var(--header-engine-kit-search);
  z-index: 999;
  background: #fff;
  height: 320px;
}

.no-scrollbar {
  scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.min-width-content {
  min-width: max-content;
}

.top-3 {
  top: 3px;
}

.employee-grid-card a.titan-hamburger{
  background-color: transparent !important;
  color: #0056b3 !important;
} 
.employee-grid-card .card-header{
margin-bottom:1px !important;
}
.employee-grid-card .card-body{
  border-bottom: 1px solid rgba(0, 0, 0, .125) !important;
}

.employee-list-accordian{
  z-index: 10;
  max-width: 300px; 
  min-width: 300px; 
  display: none;
}
/* Hide close button by default */
.sidebar .closebtn {
  display: none;
  position: absolute;
  top: 0px;
  right: 2px;
  font-size: 26px;
  margin-left: 50px;
  margin-bottom: 2px;
  color: white;
  text-decoration: none;
}

/* Show close button only on mobile (phones & small tablets) */
@media screen and (max-width: 768px) {
  .sidebar .closebtn {
    display: block;
  }
}