.dataTable tbody tr:hover {
  background-color: #2e305f; /* Light gray, change as needed */
}

.dtCustomBtn {
  border-width: 1px !important; /* Adjust thickness */
  font-weight: 500 !important;
  width: 70px !important;
}

.dtCustomBtn:hover {
  /*filter: brightness(90%);  dims by 10% */
  color: white !important;
}

.addNewBtn {
  border-width: 1px !important; /* Adjust thickness */
  font-weight: 500 !important;
  /* width: 100px !important; */
}

.addNewBtn:hover {
  /*filter: brightness(90%);  dims by 10% */
  color: white !important;
}

.extraStyle {
  height: 38px;
  width: 75px;
}

#companyInfoDataView thead,
#treeDataView thead,
#productDataView thead,
#productDataView thead,
#resourceItemDataView thead,
#externalContactDataView thead,
#manufacturerDataView thead,
#payrollDataView thead,
#staffDataView thead,
#userDataView thead {
  display: none;
}

#companyInfoDataView th,
#companyInfoDataView td,
#treeDataView th,
#treeDataView td,
#productDataView th,
#productDataView td,
#resourceItemDataView th,
#resourceItemDataView td,
#externalContactDataView th,
#externalContactDataView td,
#manufacturerDataView th,
#manufacturerDataView td,
#payrollDataView th,
#payrollDataView td,
#staffDataView th,
#staffDataView td,
#userDataView th,
#userDataView td {
  border: none !important;
}

.actions li.disabled a[href="#previous"] {
  color: #6c757d; /* Change to whatever color you want */
  background-color: #f7f7f9;
  border: 1px solid #f7f7f9; /* Light gray border when disabled */
  pointer-events: none; /* Optional: disables click */
}

label {
  display: inline-block;
  margin-bottom: .5rem;
}

input, button, select, optgroup, textarea {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button, input {
  overflow: visible;
}

input {
  padding: 0.15rem !important;
  border: 0;
  border-bottom: 1px solid #E0E0E0;
}

input:focus {
  border: 0 !important;
  border-bottom: 1px solid #48CCFF !important;
  outline: none !important;
  color: #48CCFF;
}

label, input, textarea {
  transition: all 0.2s !important;
}

label {
  font-size: 14px;
  font-weight: bold;
}

label {
  display: inline-block;
  margin-bottom: .5rem;
}

input, button, select, optgroup, textarea {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button, input {
  overflow: visible;
}

input[type="radio"], input[type="checkbox"] {
  box-sizing: border-box;
  padding: 0;
}

input {
  padding: 0.15rem !important;
  border: 0;
  border-bottom: 1px solid #E0E0E0;
}

input:focus {
  border: 0 !important;
  border-bottom: 1px solid #2196f3 !important;
  outline: none !important;
  color: #2196f3;
}

label, input, textarea {
  transition: all 0.2s !important;
}

label {
  font-size: 14px;
  font-weight: normal;
}

/* === Shared input wrapper for checkbox and radio === */
.cms-cr-input {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding-left: 28px;
  cursor: pointer;
  font-size: 14px;
  user-select: none;
}

.cms-cr-input input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

/* Shared mark base */
.cms-cr-mark {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 18px;
  width: 18px;
  background-color: #2a2c44;
  border: 1px solid #383e5d;
  transition: background-color 0.2s, box-shadow 0.2s;
}

/* Shape control */
.cms-cr-input input[type="checkbox"] ~ .cms-cr-mark {
  border-radius: 0;
}
.cms-cr-input input[type="radio"] ~ .cms-cr-mark {
  border-radius: 50%;
}

/* Hover effect */
.cms-cr-input:hover input ~ .cms-cr-mark {
  border: 1px solid #2196f3;
}

/* Checked state with 3D effect */
.cms-cr-input input:checked ~ .cms-cr-mark {
  background-color: #2196f3;
  border: 1px solid #2196f3;
  box-shadow: inset 1px 1px 3px rgba(0,0,0,0.3), 
              inset -1px -1px 3px rgba(255,255,255,0.5),
              1px 1px 2px rgba(0,0,0,0.2);
  transform: translateY(-50%) translateY(1px);
}

/* Checkmark for checkbox */
.cms-cr-input input[type="checkbox"]:checked ~ .cms-cr-mark::after {
  content: "";
  position: absolute;
  display: block;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Dot for radio */
.cms-cr-input input[type="radio"]:checked ~ .cms-cr-mark::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}

/* Disabled state */
.cms-cr-input input:disabled ~ .cms-cr-mark {
  background-color: transparent;
  border: 1px solid #888;
  cursor: not-allowed;
  box-shadow: none;
}

.cms-cr-input:has(input:disabled) {
  opacity: 0.6;
  cursor: not-allowed;
}

.custom-swal-popup {
  padding-top: 2rem !important;
}

.wizard > .content {
  position: relative;
}

.wizard > .content > section {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto; /* or a fixed width */
  max-width: 100%;
}

.form-control {
  font-size: 0.90rem;
  font-weight: 400;
}

#photoFile .dz-message {
  position: relative;
  top: 30px;
  text-align: center;
}

body.dark-theme {
  background-color: #1C1E2E;
}

.breadcrumb-item a,
.breadcrumb-item span {
  /*color: white !important;*/
  font-weight: 700;
}

.breadcrumb-outline {
  border: 0.5px solid gray; /* Bootstrap 5 primary color */
  /* border: 2px solid #0d6efd; Bootstrap 5 primary color */
  border-radius: 0.375rem;  /* optional: add rounded corners */
}

.goUpBtn {
  display: none;
}

.link-colour {
  color: #4994EC;
  text-decoration: none;
}

.link-colour:hover {
  color: lightblue; /* or any color you prefer on hover */
  text-decoration: underline; /* optional, adds underline on hover */
}

.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  background-color: rgba(0, 0, 0, 0.4); /* semi-transparent background */
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.75rem;
  text-align: center;
}

td.wrap-text {
  white-space: normal !important;
  word-break: break-word;
}

.text-view-data {
  color: darkturquoise;
  font-weight: bold;
}

.resource-data-view {
  color: greenyellow;
}

#productList tbody tr {
  height: auto;             /* allow content to set height */
  vertical-align: middle;
}

#productList .datatable-img {
  height: 72px;
  width: 72px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  margin: auto;
}

.form-title-color {
  color: orange;
}

#loaderOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4); /* dark semi-transparent */
  backdrop-filter: blur(4px); /* subtle blur effect */
  -webkit-backdrop-filter: blur(4px); /* Safari support */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
  opacity: 1;
}

#loaderOverlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.dt-top-align {
  vertical-align: top !important;
}

.icon-yes {
  color: #66ff99; /* Softer green for dark backgrounds */
  font-size: 24px;
}

.icon-no {
  color: #ff6b6b; /* Softer red for dark backgrounds */
  font-size: 24px;
}

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden; /* Prevent page scroll */
}

.main-panel {
  display: flex;
  flex-direction: column;
  height: 90vh; /* Fill the viewport */
}

.content-wrapper {
  flex: 1 1 auto; /* Take up remaining space */
  overflow-y: auto;
  padding: 1rem; /* Optional */
}

.card-hover-yellow:hover {
  background-color: darkslateblue; /* light yellow */
  transition: background-color 0.3s ease;
}

.row-checkbox {
  transform: scale(1.5); /* Increase size (1.0 is default) */
  margin-right: 8px;      /* Optional spacing */
  cursor: pointer;
}

.row-checkbox {
  vertical-align: middle;
}

#jstree,
#jstree .jstree-container-ul,
#jstree .jstree-node,
#jstree .jstree-wholerow {
  background: transparent !important;
}

#jstree,
#jstree li,
#jstree a {
  font-size: 14px;
  color: lightyellow;
}

#jstree a.jstree-clicked {
  color: white !important;  /* Blue on click */
  font-weight: bold;
}

.jstree-icon.mdi {
  font-size: 22px !important;
  font-weight: bold !important;
}

#treeContainer {
  max-height: 67vh;
  overflow-y: auto;
  border: 1px solid #444444;
  padding: 10px;
}

#jstree .jstree-search {
  color: red !important;
  font-weight: bold;
}

.custom-outline-btn {
  color: #28a745; /* Text/icon color */
  border-color: #444444; /* Outline color */
}

.custom-outline-btn:hover {
  background-color: #333333; /* Hover background */
  color: #fff; /* Text/icon color on hover */
}

.cms-grid {
  background: transparent !important;
  padding: 30px;
}

.yes-green {
  color: lightGreen;
  /* font-weight: bold; optional */
}

.no-red {
  color: red;
  /* font-weight: bold; optional */
}