.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;
}

#menuAssignList thead,
#contactDataView thead,
#organizationDataView thead,
#companyInfoDataView thead,
#productInfoView thead,
#organizationInfoView thead,
#treeDataView thead,
#productDataView thead,
#productDataView thead,
#resourceItemDataView thead,
#externalContactDataView thead,
#manufacturerDataView thead,
#payrollDataView thead,
#staffDataView thead,
#userDataView thead {
  display: none;
}

#menuAssignList th,
#menuAssignList td,
#contactDataView th,
#contactDataView td,
#organizationDataView th,
#organizationDataView td,
#companyInfoDataView th,
#companyInfoDataView td,
#productInfoView th,
#productInfoView td,
#organizationInfoView th,
#organizationInfoView 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 {
  transition: background-color 0.5s ease;
}

.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 */
}

.notification-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  top: 5px;
}

.notification-icon .mdi-bell-outline {
  font-size: 26px;
  line-height: 1;
}

.notification-count {
  position: absolute;
  top: 0px;
  right: -1px;

  min-width: 16px;
  height: 16px;
  padding: 0 5px;

  background-color: #ff3b5c;
  color: white;

  font-size: 10px;
  font-weight: bold;
  font-style: normal;
  line-height: 17px;
  text-align: center;
  border-radius: 8px;

  transform: translate(50%, -25%);
}

.profile-badge-xs {
  width: 36px;
  height: 36px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  border: none;
  background-color: darkorchid;
  color: #fff;

  font-size: 14px;
  font-weight: 600;
  line-height: 1;

  vertical-align: middle;
  flex-shrink: 0;
}

.form-control.flatpickr-input[readonly] {
  background-color: inherit;
  color: inherit;
}

.dt-button.delete-all-button {
  background: #dc3545 !important;
  background-color: #dc3545 !important;
  color: white !important;
  border-color: #dc3545 !important;
}

.dt-button.delete-all-button:hover {
  background: #c82333 !important;
  background-color: #c82333 !important;
}

.dt-button.delete-selected-button {
  background: #ff9800 !important;
  background-color: #ff9800 !important;
  color: white !important;
  border-color: #ff9800 !important;
}

.dt-button.delete-selected-button:hover {
  background: #f57c00 !important;
  background-color: #f57c00 !important;
  border-color: #f57c00 !important;
}

.dt-button.save-settings-button {
  background: #28a745 !important;
  background-color: #28a745 !important;
  color: white !important;
  border-color: #28a745 !important;
}

.dt-button.save-settings-button:hover {
  background: #218838 !important;
  background-color: #218838 !important;
  border-color: #1e7e34 !important;
  color: white !important;
}

table.dataTable tbody tr:hover > * {
  background-color: #1f35c6 !important;
}

.address-cell {
  white-space: pre-line !important;
}

table.dataTable.no-row-hover tbody tr:hover,
table.dataTable.no-row-hover tbody tr:hover > td {
    background-color: inherit !important;
}

.close-btn {
  width: 30px;
  height: 30px;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-x {
  position: relative;
  width: 12px;
  height: 12px;
}

.close-x::before,
.close-x::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 0;
  width: 12px;
  height: 2px;
  background: white;
}

.close-x::before {
  transform: rotate(45deg);
}

.close-x::after {
  transform: rotate(-45deg);
}

table.dataTable thead th {
  color: orange !important;
}

table.dataTable td.bold-text {
  font-weight: bold !important;
}

table.dataTable td.larger-text {
  font-size: 18px;
}

/* ============================================================
   Notification List
============================================================ */

.notification-list {
  max-height: 650px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 5px;
}


/* ============================================================
   Notification Item
============================================================ */

.notification-item {
  display: flex !important;
  flex-direction: row;
  align-items: flex-start;

  width: 100%;
  padding: 14px 16px;
  margin-bottom: 8px;

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;

  background: rgba(255, 255, 255, 0.015);

  cursor: pointer;

  transition:
    background-color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.notification-item:hover {
  background-color: rgba(23, 162, 184, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.10);
}

.notification-item.unread {
  border-left: 3px solid var(--info);
  background: rgba(23, 162, 184, 0.04);
}


/* ============================================================
   Notification List - Avatar
============================================================ */

.notification-avatar {
  flex: 0 0 48px;

  width: 48px;
  height: 48px;
  margin-right: 15px;

  border-radius: 50%;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-avatar img {
  display: block;

  width: 48px;
  height: 48px;

  border-radius: 50%;
  object-fit: cover;
}

.notification-avatar.system-avatar {
  background: var(--info);
  color: white;
  font-size: 23px;
}


/* ============================================================
   Notification List - Content
============================================================ */

.notification-content {
  flex: 1 1 auto;
  min-width: 0;
}

.notification-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
}

.notification-heading {
  display: flex;
  align-items: center;

  min-width: 0;
}

.notification-type {
  flex-shrink: 0;

  margin-right: 14px;

  font-size: 13px;
  font-weight: 600;
}

.notification-type i {
  font-size: 17px;
}

.notification-title {
  font-size: 14px;
  font-weight: 600;

  color: inherit;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ============================================================
   Notification List - Actions
============================================================ */

.notification-actions {
  flex-shrink: 0;

  display: flex;
  align-items: center;
  gap: 12px;

  margin-left: 20px;
}

.notification-actions i {
  font-size: 18px;
}


/* ============================================================
   Notification List - Meta
============================================================ */

.notification-meta {
  margin-top: 4px;

  font-size: 12px;
  color: #8f9398;
}

.notification-sender {
  font-weight: 500;
}


/* ============================================================
   Notification List - Message Preview
============================================================ */

.notification-message {
  margin-top: 7px;

  font-size: 14px;
  line-height: 1.45;

  color: #aeb2b8;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;

  overflow: hidden;
}


/* ============================================================
   Notification List - Scrollbar
============================================================ */

.notification-list::-webkit-scrollbar {
  width: 6px;
}

.notification-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
}


/* ============================================================
   Notification Toolbar
============================================================ */

.notification-toolbar {
  gap: 10px;
}

.notification-toolbar-title {
  flex-shrink: 0;
}

.notification-toolbar-controls {
  min-width: 0;
}

#notificationTypeFilter {
  width: 170px;
}

#notificationSenderFilter {
  width: 180px;
}

#notificationReadFilter {
  width: 130px;
}

.notification-toolbar-controls button {
  white-space: nowrap;
}


/* ============================================================
   Notification Toolbar - Responsive
============================================================ */

@media (max-width: 1200px) {

  .notification-toolbar {
    align-items: flex-start !important;
  }

  .notification-toolbar-controls {
    flex: 0 0 100%;
    width: 100%;
    margin-top: 5px;
  }
}


/* ============================================================
   Notification View
============================================================ */

#notificationView {
  width: 100%;
}


/* ============================================================
   Notification View - Header
============================================================ */

.notification-view-header {
  width: 100%;
}

.notification-view-avatar {
  flex: 0 0 52px;

  width: 52px;
  height: 52px;
  margin-right: 16px;

  border-radius: 50%;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: var(--info);
  color: white;

  font-size: 24px;
}

.notification-view-avatar img {
  width: 52px;
  height: 52px;

  border-radius: 50%;
  object-fit: cover;
}

.notification-view-header-content {
  flex: 1 1 auto;
  min-width: 0;
}

.notification-view-sender {
  font-size: 16px;
  font-weight: 600;
}

.notification-view-meta {
  margin-top: 5px;

  font-size: 14px;
  color: #8f9398;
}


/* ============================================================
   Notification View - Type / Date
============================================================ */

#notificationType {
  font-size: 15px;
  font-weight: 600;
}

#notificationTypeIcon {
  font-size: 19px;
  vertical-align: middle;
}

#notificationDate {
  font-size: 14px;
}


/* ============================================================
   Notification View - Read Status
============================================================ */

.notification-view-status {
  font-size: 15px;
  font-weight: 500;

  color: #8f9398;

  white-space: nowrap;
}

#readStatusIcon {
  font-size: 20px;
  vertical-align: middle;
}

#readStatus {
  font-size: 15px;
}


/* ============================================================
   Notification View - Divider
============================================================ */

.notification-divider {
  margin-top: 18px;
  margin-bottom: 18px;

  border-color: rgba(128, 128, 128, 0.20);
}


/* ============================================================
   Notification View - Subject
============================================================ */

.notification-view-subject {
  font-size: 16px;
  font-weight: 600;

  margin-bottom: 18px;
}


/* ============================================================
   Notification View - Message
============================================================ */

.notification-view-message {
  min-height: 160px;

  font-size: 14px;
  line-height: 1.7;

  white-space: pre-wrap;
  overflow-wrap: break-word;
}


/* ============================================================
   Notification View - Section
============================================================ */

.notification-section-title {
  font-size: 13px;
  font-weight: 600;

  color: var(--info);
}


/* ============================================================
   Notification View - Attachment
============================================================ */

.notification-attachment {
  max-width: 550px;

  padding: 10px 12px;

  border: 1px solid rgba(128, 128, 128, 0.25);
  border-radius: 6px;
}

.notification-attachment-icon {
  font-size: 28px;
  color: var(--info);
}

.notification-attachment-info {
  min-width: 0;
}

.notification-attachment-name {
  font-size: 13px;
  font-weight: 500;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* ============================================================
   Notification View - Actions
============================================================ */

.notification-view-actions {
  border-top: 1px solid rgba(128, 128, 128, 0.15);
}


/* ============================================================
   Notification View - Responsive
============================================================ */

@media (max-width: 576px) {

  .notification-view-avatar {
    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    margin-right: 10px;
  }

  .notification-view-avatar img {
    width: 42px;
    height: 42px;
  }

  .notification-view-subject {
    font-size: 18px;
  }

  .notification-view-status {
    width: 100%;
    margin-top: 5px;
  }

  .notification-attachment {
    max-width: 100%;
  }
}

#notificationUpload {
  flex: 1;
  border: 2px dashed lightgray;
  background-color: transparent;
  border-radius: 16px;
  height: 100px;
  min-height: 100px;
}

.form-control:focus {
  background-color: #cce1e1 !important;
  color: #000 !important;
}