/* Base styling for table headers */
table.dataTable thead th {
  position: relative;
  padding-right: 30px; /* Space for sorting icon */
}

/* Datatable Loading/processing */
.dt-processing {
  color: #fff;
  position: absolute;
  float: left;
  left: 44%;
  padding: 22px;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.6);
  margin-bottom: unset;
  text-align: center;
}

/* Default unsorted state */
table.dataTable thead th.dt-orderable-asc::after,
table.dataTable thead th.dt-orderable-desc::after {
  font-family: 'Material Symbols Outlined';
  content: 'unfold_more'; /* ↕ */
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: gray;
}

.dt-column-title {
  padding-right: 12px;
}

/* Ascending sort */
table.dataTable thead th.dt-ordering-asc::after {
  content: 'keyboard_arrow_up'; /* ↑ */
  color: black;
  font-size: 18px;
}

/* Descending sort */
table.dataTable thead th.dt-ordering-desc::after {
  content: 'keyboard_arrow_down'; /* ↓ */
  color: black;
  font-size: 18px;
}

table.dataTable thead th.dt-orderable-none::after {
  display: none;
}

.dt-length *,
.dt-search * {
  display: inline;
}

.dt-length select {
  width: 75px;
}

.dt-search input[type='search'] {
  width: 200px;
}

.dt-search label {
  padding-right: 8px;
}

/* location assignment custom styles */
.province-sidebar {
  border-right: 1px solid #ccc;
}

.location-assignment-fixed-height {
  height: 500px;
	max-height: 500px !important;
  overflow-y: auto;
  overflow-x: hidden;
	border: 0;
}

.custom-button-color {
  background-color: #E5F3DF;
  &:hover {
    background-color: #E5F3DF;
  }
  &:active {
    background-color: #E5F3DF;
    border-color: #E5F3DF;
  }
}

.custom-checkbox .form-check-input:checked {
  background-color: #63B138;
  border-color: #63B138;
}

.custom-checkbox .form-check-input:checked::before {
  background-color: #63B138;
}

/* pending_address/customer_profile style */
.fixed-height {
  display: inline-block;
  border: 1px solid #ccc;
}
/* end */
a.dropdown-toggle:after {
  display: none;
}

.dropdown-toggle:empty::after {
  font-size: 20px;
}

/* for ordering day of delivery schedules and barangay delivery schedules */
.weekDays-selector input {
  display: none !important;
}

.weekDays-selector input[type='checkbox'] + label,
.weekDay {
  display: inline-block;
  border-radius: 25px;
  background: #fff;
  border: 2px solid #ababab;
  height: 35px;
  width: 35px;
  margin-right: 8px;
  line-height: 31px;
  text-align: center;
  cursor: pointer;
  font-size: 11px;
}

.weekDays-selector input[type='checkbox']:checked + label,
.weekDay:hover,
.weekDay {
  background: #4bad48;
  border: 1px solid #4bad48;
  color: #ffffff;
}

.fg-row {
  margin-bottom: 8px !important;
  margin-left: 10px
}

.fg-row label {
  line-height: 32px;
}

.schedule-height {
  min-height: 42px
}

.input-xs {
  height: 43px;
  display: inline-block;
  border-radius: 7px;
  border: 1px solid #edeeef;
  font-size: 13px;
  padding: 0px 6px;
}

hr.new-line {
  border: 0.5px solid gray;
}

.new-header {
  color:#7b8c9d;
  font-weight: 500;
}

.ms-custom {
  margin-left: 2.2rem;
}

/* for tom-select */
.ts-control {
  padding: 10px;
}

.banner {
  height: 270px;
}

.fsc-9 {
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.width-450 {
  width: 450px;
}

.table-condensed td, .table-condensed th {
  padding: 10px 4px!important;
}

tfoot tr.border-top-4 {
  border-top: 4px solid #e1e7ed !important
}

.fsc-9 {
  font-size: 0.8rem;
  letter-spacing: 1px;
}

tr.unopened-order td {
  background-color: #ced4da !important;
  transition: background-color 0.3s ease !important;
}

.title-badge {
  float: left;
  margin-top: -17px;
  margin-left: 100px;
}

.table td:first-child,
.table.dataTable td.text-muted,
.table.dataTable td:first-child {
  font-weight: 600;
  color: #7b8c9d;
}

nav.custom-breadcrumb {
  margin-top: 63px !important;
  top: 80px;
}

nav.custom-breadcrumb .breadcrumb {
  background-color: #fff;
  padding: 20px 30px;
  border-radius: 9px;
}

nav.custom-breadcrumb .breadcrumb .breadcrumb-item a {
  color: #4bad48;
}


/* Qne Product Linking */
.fixed-size-table {
  width: 500px; /* Adjust this value to your desired fixed width */
  table-layout: fixed;
}

.barcode-cell {
  white-space: nowrap;
  overflow-x: auto;
}

.barcode-content {
  min-width: 200px; /* Adjust this value to your desired minimum width */
  max-width: 200px; /* Adjust this value to your desired maximum width */
}

.vertical-line {
  border-left: 2px solid #000; /* Adjust color and thickness as needed */
  height: 100px; /* Adjust height as needed */
  margin-left: 20px; /* Adjust margin as needed */
}

.sp-cart {
  font-size: 7em; /* Twice the size of the surrounding text */
}

.fs-10 {
  font-size: 10pt;
}
.clickable-row {
  cursor: pointer;
}
/* end */

.custom-material-icon {
  font-size: 19px;
  vertical-align: text-top;
}

.custom-card-text {
  margin-right: 1rem;
  color: #6c757d;
  font-size: 1rem;
}

input.form-control:disabled {
  background-color: #F5F7FA;
}

.menu-white>ul>li.open>a>i, .menu-white>ul>li.active-page>a,
.menu-white>ul>li.open>a, .menu-white>ul>li>a:hover {
  color: #198754 !important;
}

.menu-white>ul>li.active-page>a>i:not(.has-sub-menu).material-icons-outlined,
.menu-white>ul>li.open>a>i:not(.has-sub-menu).material-icons-outlined,
.menu-white>ul>li>a:hover>i:not(.has-sub-menu).material-icons-outlined
{
  filter: invert(42%) sepia(29%) saturate(564%) hue-rotate(28deg) brightness(119%) contrast(95%) !important;
}


select[readonly] option, select[readonly] optgroup {
  display: none;
}

.shrink {
  flex-shrink: 1.5;
}

.fixed-hover-bottom {
  position: fixed;
  bottom: 0.5rem;
  right: 0.5rem;
}

input.form-control[readonly] {
  background-color:#e9ecef !important;
  opacity: .5;
}

/* style for password requirements */
.requirement { font-weight: bold; }
.unmet { color: red; }    /* Unmet requirements are red by default */
.valid { color: green; }  /* Met requirements turn green */
/* end */

img[src="#"] {
  display: none;
}

.custom-col-md-4 {
  flex: 1 1 auto;
  width: 33.33333333%
}

.tooltip-inner > .custom-reset > * {
  text-align: left;
}

.password-icon {
  position: absolute;
  top: 50%;
  right: 0.7rem;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  height: 1rem;
  width: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.icon-light-black {
  color: #666666;
}

.hidden {
  display: none !important;
}

input::-ms-reveal,
input::-ms-clear {
  display: none;
}
/* end */

/* for QNE connection */
.health-bubble {
  display: inline-block;
  width: 20px; /* make it larger */
  height: 20px; /* make it larger */
  border-radius: 50%;
  animation: breathe 2s infinite ease-in-out; /* add animation */
}

@keyframes breathe {
  0%, 100% { transform: scale(0.7); }
  50% { transform: scale(1); }
}

.connected {
  background-color: green;
}

.disconnected {
  background-color: red;
}
/* END */

.my-content {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--read-more-line-clamp, 2);
}

.badge-dark-green {
  background: #D8E9BF;
}

input.form-check-input:checked {
  background-color: #63B138;
  border-color: #63B138;
}

/* overriding dropzone blurring when hover */
.dz-preview:hover .dz-image {
  filter: none !important;
}

/* Fit the whole image inside the preview box */
.dropzone .dz-image img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
}

/* Optional: increase thumbnail size */
.dropzone .dz-preview .dz-image {
  width: 150px;
  height: 150px;
}

/* Make remove button always on top */
.dz-preview .dz-remove {
  z-index: 9999 !important;
  position: absolute !important;
  top: 5px;
  right: 5px;
  background: rgba(0,0,0,0.6);
  color: #fff !important;
  padding: 3px 6px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 12px;
}

/* Custom for text area heigth */
.text-area-height {
  min-height: 12.1rem;
}

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

.text-gray {
  color: #5f5e5e !important;
}

.animate-scale {
  transition: transform 0.25s ease, color 0.25s ease;
}

.animate-scale:hover {
  transform: scale(1.4);
  opacity: 1;
}

/* Custom border for carrier radio button */
.carrier-radio-border {
  border: 2px solid #7f7f7f !important;
}

.lh-2 {
  line-height: 2;
}

/* Datagrid */
.datagrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.datagrid-item {
  display: flex;
  flex-direction: column;
  padding-bottom: 0.5rem;
}
.datagrid-title {
  font-size: 0.875rem;
  color: rgb(105 105 105 / 75%);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}
.datagrid-content {
  font-size: 1rem;
  color: var(--bs-body-color, #212529);
  font-weight: 400;
}
.status {
  display: inline-block;
  padding: 0.25em 0.5em;
  font-size: 0.75rem;
  border-radius: 0.25rem;
  background-color: var(--bs-gray-200, #e9ecef);
  color: var(--bs-body-color, #212529);
}
.status-green {
  background-color: #d1e7dd;
  color: #0f5132;
}
.avatar {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}
.avatar-xs {
  width: 24px;
  height: 24px;
}
.avatar-list {
  display: flex;
  align-items: center;
}
.avatar-list-stacked .avatar {
  margin-left: -8px;
  border: 2px solid #fff;
}

/* for dropdown */
.dropdown-menu:not(.show) {
  display: none;
}