/* Bootstrap Overides */
:root {
  /* primary */
  --bs-primary-rgb: 0, 148, 223;
  --bs-primary: #0094df;
  --bs-blue: #0094df;
  --bs-link-color: #0094df;
  /* success */
  --bs-success-rgb: 74, 164, 112;
  --bs-success: #00000020;
  /**/
  --bs-border-color: #eee;
}
.btn-primary {
  background: var(--bs-primary);
  border-color: transparent !important;
  --bs-btn-hover-bg: #0081c3 !important;
}
.btn-success {
  background: var(--bs-success);
  border: transparent;
}
button {
  outline: none !important;
  box-shadow: none !important;
}
.bg-light {
  /*background: #eeeeee !important;*/
  background: #f5f5f5 !important;
}
.bg-light-blue {
  background-color: #e3f3fa !important;
}
.border-grey {
  border-color: #c2c2c2 !important;
}
.card {
  border: none;
}
.card-header,
.card-footer {
  background: white;
}
.btn-outline-secondary {
  --bs-btn-color: #000;
  border-color: #ddd;
  border: 0;
}
.fs-5 {
  line-height: 0;
  padding: 0;
  vertical-align: text-top;
}
.fs-7 {
  font-size: 0.9rem !important;
}
.fs-8 {
  font-size: 0.75rem !important;
}
table.edit-po th,
table.edit-po td {
  padding: 0.3rem 0.5rem;
  line-height: 1.1;
  font-size: 0.75rem;
}
.table-xs td {
  padding: 0;
}
.table-sm-nh td {
  padding: 0 0.5rem;
}
.small,
small {
  line-height: 1.2 !important;
}
/**/

/**/

.quick-links {
  gap: 0.5rem;
}
.quick-links a {
  display: flex;
  margin: 0rem !important;
  line-height: 1;
  align-items: center;
  align-self: center;
  font-size: 0.8rem;
  flex-direction: column;
  text-wrap-mode: nowrap !important;
  flex-wrap: nowrap !important;
  /*width: min-content;*/
}
.quick-links a strong {
  font-weight: 300;
  font-size: calc(1.275rem + 0.3vw);
}
.quick-links a.active {
  background: initial;
  opacity: 0.5;
  border: none;
}
/**/

/* Scrollbars */
/* width */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
/* Track */
::-webkit-scrollbar-track {
  background: #fff;
  border-radius: 10px;
}
/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--bs-primary);
  border-radius: 10px;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #999;
}
/**/

/* Tables */
table td {
  max-width: 150px;
  text-overflow: ellipsis;
  overflow: hidden;
  text-wrap-mode: nowrap;
}
.dt-paging .pagination {
  --bs-pagination-border-radius: 0.25rem;
}
.dt-paging .dt-paging-button.page-item.active button,
.dt-paging .dt-paging-button.page-item button:hover {
  background-color: var(--bs-secondary);
  color: white;
  border-color: transparent !important;
}
.dt-paging .dt-paging-button.page-item button {
  color: var(--bs-btn-color);
}
.dt-paging .dt-paging-button.page-item.disabled {
  /*display: none;*/
}
.dt-paging-button .page-link {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}
.dt-paging-button .page-link,
.dt-info,
.dt-length select,
.form-label,
aside .nav-item a {
  font-size: 0.875rem;
  font-weight: 600;
}
.dt-length select {
  padding-right: 2rem !important;
  margin-right: 0 !important;
}
.dt-search input {
  margin-left: 0 !important;
  width: 100% !important;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
}
.dt-scroll-head {
  top: -17px;
  position: sticky !important;
  position: -webkit-sticky !important;
  z-index: 1;
}
.table-secondary {
  --bs-table-bg: #eeeeee;
  --bs-table-border-color: inherit;
}
.dt-layout-end,
.dt-info {
  display: inline-flex;
}
.dt-layout-start {
  display: flex;
  gap: 0.5rem;
}
.dt-search {
  margin: 0 !important;
}
.dt-info {
  line-height: 1;
}
.select-info {
  margin-left: 5px !important;
}
/**/

/*Forms*/
.form-label {
  margin-bottom: 0;
  font-size: 13px;
}
.form-control {
  /*border-width: 2px;
  border-radius: 0.5rem;*/
}
table .form-check-input {
  height: 1.25rem;
  width: 1.25rem;
}
/**/

/* Layout */
.nav-item {
  border-bottom: 1px solid #ffffff50;
}
aside .nav-item a {
  color: white;
  padding: 0.5rem 0 !important;
  font-weight: 400;
  line-height: 0.875rem;
}
aside .nav-item a.active,
aside .nav-item a:hover {
  background: #00000020;
}

.grid-2 {
  grid-template-columns: 1fr 1fr !important;
  display: grid;
  gap: 0.5rem;
}
.grid-3 {
  grid-template-columns: 1fr 1fr 1fr !important;
  display: grid;
  gap: 0.5rem;
}
.grid-4 {
  grid-template-columns: 1fr 1fr 1fr 1fr !important;
  display: grid;
  gap: 0.5rem;
}

/* Overrides selects adjustments */
.offcanvas .bootstrap-select .dropdown-menu li {
  font-size: 13px;
}
.dropdown-item .text {
  white-space: normal !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
  display: block;
}
.bootstrap-select.show-tick .dropdown-menu li a span.text {
  margin-right: 0px !important;
}
#accordionOptions
  .bootstrap-select:not([class*='col-']):not([class*='form-control']):not(
    .input-group-btn
  ) {
  width: 200px !important;
}
.bootstrap-select .dropdown-menu li a span.text {
  font-size: 0.875rem !important;
}

/* Accordion */
#accordionOptions .accordion-button:not(.collapsed),
#accordionColumns .accordion-button:not(.collapsed),
#accordionFilters .accordion-button:not(.collapsed) {
  background-color: #e3f3fa !important;
}

#accordionFilters .accordion-item,
#accordionOptions .accordion-item,
#accordionColumns .accordion-item,
#accordionOptions .accordion-item:has(.accordion-collapse.show),
#accordionColumns .accordion-item:has(.accordion-collapse.show),
#accordionFilters .accordion-item:has(.accordion-collapse.show) {
  border: 1px solid #b1b1b1 !important;
}

.bootstrap-select.show-tick .dropdown-menu li a span.text {
  font-size: 0.875rem !important;
}
#accordionOptions .card {
  border: 1px solid #a0a0a0 !important;
}

#accordionOptions .card-header {
  background-color: #e5e5e5 !important;
}

.btn-table {
  height: 20px;
  width: 70px;
  font-size: 0.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-table-fit {
  height: 20px;
  font-size: 0.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-tabs .nav-link {
  border: var(--bs-nav-tabs-border-width) solid #d9d2d2 !important;
  border-bottom: 0 !important;
}
.modal-body .nav-link {
  background-color: #eeeeee !important;
  color: #000000 !important;
}
.modal-body .nav-link.active {
  background-color: #fff !important;
}
.add-sku-btn,
.add-sku-item-btn {
  height: 35px;
  width: 40px;
  font-size: 1.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.long-form h6 {
  font-weight: 700 !important;
  text-transform: uppercase;
}
.long-form .form-group {
  display: grid;
  grid-template-columns: 80px auto;
  align-items: anchor-center;
  margin-bottom: -1px;
}
.long-form .form-group.long-label {
  display: grid;
  grid-template-columns: 120px auto;
  align-items: anchor-center;
  margin-bottom: -1px;
}
.long-form .form-group.short-label {
  grid-template-columns: 50px auto;
}

.long-form .form-control-sm {
  border-width: 1px;
  padding: 0rem 0.5rem;
  font-size: 1rem;
  color: #000;
  border-radius: 0 !important;
}
.long-form .form-control-sm.item {
  max-height: 35px !important;
}
.long-form .bootstrap-select > .dropdown-toggle {
  max-height: 35px !important;
}
.long-form .no-field {
  border-bottom: solid 1px #ddd;
  text-align: start;
  padding-left: 0.25rem;
  display: flex;
  align-items: center;
  color: #000;
}
.long-form .form-control-sm,
.long-form .no-field {
  min-height: calc(1.1em + 0.5rem + calc(var(--bs-border-width) * 2));
  font-size: 0.875rem;
}
.long-form .form-label {
  font-size: 11px;
  font-weight: normal;
  line-height: 11px;
  font-family: verdana;
  overflow-wrap: normal;
}
.long-form a {
  text-decoration: none;
}
.long-form .form-group-100 .form-group {
  grid-template-columns: 100px auto;
}
.long-form .form-group-auto-100 {
  grid-template-columns: auto 100px !important;
}
.long-form .form-group-5fr-1fr {
  grid-template-columns: 5fr 1fr !important;
}
.order-notes h6 {
  font-size: 12px;
}
.order-notes h6,
.order-notes div,
.order-notes p {
  margin-bottom: 0.25rem !important;
}
.order-notes div {
  padding: 0.5rem;
  border-radius: 0.25rem;
}
.order-notes p {
  line-height: 1;
}
.bg-warning {
  --bs-bg-opacity: 0.3;
}
.card.card-form {
  border: none !important;
  background: #f5f5f5;
}

/*Media Queries*/
@media (max-width: 576px) {
  .row aside {
    height: initial !important;
    position: absolute;
    z-index: 100;
  }
  .row main {
    padding-top: 63px !important;
  }
  .dt-layout-table {
    margin-top: 0 !important;
  }
  .long-form .form-control-sm,
  .long-form .no-field {
    min-height: calc(
      1.4em + 0.5rem + calc(var(--bs-border-width) * 2)
    ) !important;
  }
}

@media (min-width: 992px) {
  .custom-sidebar {
    /*width: 12%;*/
  }

  #navbarTogglerDemo02 {
    width: 100%;
  }

  #navbarTogglerDemo02 > .navbar-nav {
    width: 100%;
    margin-right: 0 !important;
  }
}

@media (min-width: 576px) {
  aside,
  .w-min {
    max-width: min-content !important;
  }
}
/*
.select-info {
  display: none;
}*/

#filter-navbar {
  background-color: white;
  border: none;
  margin: 10px;
  font-size: 14px;
}

.navbar-nav .nav-link.active {
  font-weight: bold;
  color: white;
}

.navbar-brand {
  color: white;
}

.form-check {
  margin-right: 8px;
}

.fs-12,
.card .card .card-header strong {
  font-size: 12px !important;
}
.card .card {
  border: solid 1px #ccc;
}

.card .card .card-header {
  background: #e5e5e5 !important;
}
.card-header {
  display: flex;
  justify-content: space-between;
  line-height: 1;
  align-items: center;
}
.card-header h5 {
  margin-bottom: 0;
}
.fg-3 {
  gap: 1rem;
}
.form-check-label,
.form-check-input {
  cursor: pointer;
}
.quick-links-sm a strong {
  font-size: inherit;
  font-weight: 600;
  color: initial;
  border-right: solid 1px;
  border-left: solid 1px;
  border-radius: 50px;
  padding: 0 5px;
}
.quick-links-sm a {
  flex-direction: row-reverse;
  gap: 0.25rem;
  color: royalblue;
}
.quick-links-sm a.btn-outline-secondary {
  background: initial;
  color: royalblue;
}
.filter-badge {
  text-wrap: wrap;
  display: flex !important;
  align-items: anchor-center;
  padding: 0 0 0 1rem;
  background: #6c757d !important;
  font-weight: normal;
  letter-spacing: 0.5px;
}

#production-module span {
  padding: 0.5rem 0.5rem !important;
  font-size: 1rem !important;
}
.add-long-form {
  padding: 0.5rem 0.5rem !important;
  font-size: 0.875rem !important;
}
#item-group span,
#sku-group span {
  padding: 0.5rem 0.5rem !important;
  font-size: 0.85rem !important;
}
.payment-order-summary {
  display: grid !important;
  grid-template-columns: 70px 70px 70px 70px 70px 70px !important;
}
.min-90,
.min-90 td {
  min-width: 90px;
}
.min-100,
.min-100 td {
  min-width: 100px;
}
.min-10,
.min-10 td {
  width: 10px;
  min-width: 10px !important;
}
.h-30 {
  height: 30px;
}
.btn-icon {
  font-size: 1.2rem;
  line-height: 1;
  height: 30px;
  padding: 0;
  align-content: center;
  border: none;
}
.modal-content {
  border: none;
}

::-webkit-scrollbar {
  height: 10px; /* Increase this to make scrollbar thicker */
  width: 10px; /* Increase this to make scrollbar thicker */
}

.csv-upload-results td {
  white-space: normal !important;
  text-overflow: unset !important;
  overflow: visible !important;
}

.product-image-upload-gallery-container > ul {
  list-style-type: none;
}

.product-image-upload-gallery-container .upload-list-image-wrapper {
  position: relative;
}

.product-image-upload-gallery-container {
  margin-top: 20px;
}

.product-image-upload-gallery-container .upload-misc-buttons {
  margin-bottom: 20px;
}

.product-image-upload-gallery-container .uploaded-image-delete-wrapper {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 5px;
  right: 5px;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: center;
}

.product-image-upload-gallery-container .uploaded-image-delete-wrapper input {
  transform: scale(2);
  cursor: pointer;
  margin-left: 6px;
}

.product-image-upload-gallery-container img {
  aspect-ratio: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.product-image-upload-gallery-container .image-name-display {
  display: flex;
  flex-flow: wrap;
  justify-content: center;
  align-items: center;
}
.image-name-display span {
  font-size: 0.8rem;
}
button.edit-uploaded-image-name {
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  margin-left: 5px;
}

.product-image-upload-gallery-container .image-name-input-wrapper {
  display: flex;
  flex-flow: row;
  justify-content: space-between;
}

.product-image-upload-container .crop-wrap {
  width: 50%;
  aspect-ratio: 1;
  margin: 0 auto;
  display: flex;
  flex-flow: column nowrap;
  /* gap: 60px; */
}
.iframe-docs-sign {
  width: 100%;
  height: 60vh;
}

@media (max-width: 992px) {
  .dt-layout-end {
    margin-top: 0.5rem;
  }
  .product-image-upload-gallery-container > ul {
    display: contents;
  }
  .product-image-upload-container .crop-wrap {
    width: 100%;
  }
  .product-image-upload-gallery-container img {
    aspect-ratio: 16/9;
  }
  .upload-list-image-name-wrapper {
    margin: 0.5rem 0;
  }
  .crop-container .cr-boundary {
    width: 100% !important;
  }
  .iframe-docs-sign {
    height: 75vh;
  }
}

.hidden {
  display: none;
}

.icn-spinner {
  animation: spin-animation 0.5s infinite;
  display: inline-block;
  font-size: 40px;
}

@keyframes spin-animation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(359deg);
  }
}

.payments-actions .btn-outline-secondary.text-success:hover {
  color: white !important;
  background-color: #198754;
  border-color: #198754;
}

.payments-actions .btn-outline-secondary.text-danger:hover {
  color: white !important;
  background-color: #dc3545;
  border-color: #dc3545;
}

/* Row you're dragging */
table.dataTable tr.dt-rowReorder-moving {
  background: linear-gradient(
    90deg,
    rgba(0, 123, 255, 0.1),
    rgba(0, 123, 255, 0.06)
  );
  outline: 2px solid rgba(0, 123, 255, 0.35); /* subtle outline, no layout shift */
  outline-offset: -2px; /* stays inside the row */
  box-shadow: inset 4px 0 0 #0d6efd; /* blue left bar */
  cursor: grabbing;
}

/* Placeholder row position */
table.dataTable tr.dt-rowReorder-shadow {
  background-color: rgba(13, 110, 253, 0.06) !important;
  box-shadow: inset 0 0 0 2px rgba(13, 110, 253, 0.35); /* thin border all around */
}

/* Make the handle feel interactive without shifting layout */
.drag-handle {
  cursor: grab;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}
.drag-handle:hover {
  opacity: 1;
}
.drag-handle:active {
  cursor: grabbing;
}

/* Optional: highlight the drop target row under the pointer */
table.dataTable tbody tr.drag-target {
  background-color: rgba(255, 193, 7, 0.16); /* amber hint */
  box-shadow: inset 4px 0 0 #ffc107;
}
