.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9); /* Light overlay */
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: opacity 0.3s ease-in-out;
  opacity: 1;
}

#loader {
  width: 4.8px;
  height: 4.8px;
  display: block;
  margin: 20px auto;
  position: relative;
  border-radius: 4px;
  color: #115109;
  background: currentColor;
  box-sizing: border-box;
  animation: animloader 0.3s 0.3s linear infinite alternate;
}
#loader::after,
#loader::before {
  content: "";
  box-sizing: border-box;
  width: 4.8px;
  height: 4.8px;
  border-radius: 4px;
  background: currentColor;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 15px;
  animation: animloader 0.3s 0.45s linear infinite alternate;
}
#loader::after {
  top: -15px;
  animation-delay: 0s;
}

@keyframes animloader {
  0% {
    width: 4.8px;
  }
  100% {
    width: 48px;
  }
}

.custom-bg-sidebar {
  background-color: #4e73df;
  background-image: linear-gradient(180deg, #4e73df 10%, #224abe 100%);
  background-size: cover;
}

.custom-bg-sidebar-header {
  background-color: #4e73df;
  background-size: cover;
}

/* Toast */
.colored-toast.swal2-icon-success {
  background-color: #a5dc86 !important;
}

.colored-toast.swal2-icon-error {
  background-color: #f27474 !important;
}

.colored-toast.swal2-icon-warning {
  background-color: #f8bb86 !important;
}

.colored-toast.swal2-icon-info {
  background-color: #0dcaf0 !important;
}

.colored-toast.swal2-icon-question {
  background-color: #87adbd !important;
}

.colored-toast .swal2-title {
  color: white;
}

.colored-toast .swal2-close {
  color: white;
}

.colored-toast .swal2-html-container {
  color: white;
}
/* Toast end */

/* Notification dropdown */
.notification-panel {
  --notification-blue: #4e73df;
  --notification-blue-dark: #224abe;
  --notification-blue-soft: #eef3ff;
  --notification-border: #e7ecf6;
  --notification-text: #263445;
  --notification-muted: #6c7a91;
  min-width: 360px;
  max-width: 380px;
  padding: 0;
  border: 1px solid rgba(78, 115, 223, 0.16);
  border-radius: 14px;
  box-shadow: 0 16px 35px rgba(31, 45, 61, 0.16);
  overflow: hidden;
}

.notification-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  background: linear-gradient(135deg, var(--notification-blue), var(--notification-blue-dark));
  color: #fff;
}

.notification-panel-title,
.notification-panel-subtitle {
  display: block;
}

.notification-panel-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.notification-panel-subtitle {
  margin-top: 0.1rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.78);
}

.notification-mark-read-btn {
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.notification-mark-read-btn:hover,
.notification-mark-read-btn:focus {
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
  transform: translateY(-1px);
}

.notification-list {
  max-height: 360px;
  overflow-y: auto;
  padding: 0.45rem;
  background: linear-gradient(180deg, #f8faff 0%, #fff 42%);
}

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

.notification-list::-webkit-scrollbar-track {
  background: #eef2fb;
  border-radius: 999px;
}

.notification-list::-webkit-scrollbar-thumb {
  background: #a9b8de;
  border-radius: 999px;
}

.notification-item {
  position: relative;
  display: flex;
  width: 100%;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  padding: 0.75rem 0.75rem 0.75rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--notification-text);
  text-align: left;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.notification-item:last-child {
  margin-bottom: 0;
}

.notification-item:hover,
.notification-item:focus {
  border-color: rgba(78, 115, 223, 0.18);
  background: #fff;
  box-shadow: 0 8px 20px rgba(78, 115, 223, 0.12);
  color: var(--notification-text);
  outline: none;
  transform: translateY(-1px);
}

.notification-item.is-unread {
  border-color: rgba(78, 115, 223, 0.2);
  background: var(--notification-blue-soft);
}

.notification-item.is-unread::before {
  content: "";
  position: absolute;
  top: 0.85rem;
  left: 0.35rem;
  width: 4px;
  height: calc(100% - 1.7rem);
  border-radius: 999px;
  background: var(--notification-blue);
}

.notification-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #edf2ff;
  color: var(--notification-blue);
  font-size: 0.8rem;
}

.notification-item.is-unread .notification-item-icon {
  background: linear-gradient(135deg, var(--notification-blue), var(--notification-blue-dark));
  color: #fff;
}

.notification-item-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0.18rem;
}

.notification-item-title {
  color: var(--notification-text);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
}

.notification-item-body {
  color: var(--notification-muted);
  font-size: 0.8rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.notification-item-time {
  margin-top: 0.1rem;
  color: #8591a5;
  font-size: 0.74rem;
  font-weight: 600;
}

.notification-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 145px;
  padding: 1.25rem;
  color: var(--notification-muted);
  font-size: 0.82rem;
  text-align: center;
}

.notification-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--notification-blue-soft);
  color: var(--notification-blue);
}

@media (max-width: 575.98px) {
  .notification-panel {
    min-width: min(340px, calc(100vw - 1.5rem));
    max-width: calc(100vw - 1.5rem);
  }
}
/* Notification dropdown end */

/* Notification dropdown visual refresh */
#notification_nav .notification-panel {
  --notification-blue: #4e73df;
  --notification-blue-dark: #224abe;
  --notification-sky: #28a7e8;
  --notification-teal: #18b6a0;
  --notification-green: #39b56a;
  --notification-gold: #f2a93b;
  --notification-indigo: #6d63ff;
  --notification-pink: #ff6b9a;
  --notification-ink: #1f2d3d;
  --notification-muted: #6d7890;
  min-width: 390px !important;
  max-width: 410px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.55) 0 18%, transparent 19%),
    linear-gradient(155deg, #f8fbff 0%, #eef4ff 52%, #fff8ef 100%) !important;
  box-shadow: 0 22px 55px rgba(34, 74, 190, 0.23), 0 4px 12px rgba(31, 45, 61, 0.08) !important;
  overflow: hidden !important;
}

#notification_nav .notification-panel::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(90deg, var(--notification-blue), var(--notification-teal), var(--notification-gold), var(--notification-pink));
}

#notification_nav .notification-panel-header {
  position: relative;
  padding: 1rem 1.1rem 0.9rem !important;
  border: 0 !important;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.28) 0 18%, transparent 19%),
    linear-gradient(135deg, #4e73df 0%, #3156c7 48%, #224abe 100%) !important;
  color: #fff !important;
}

#notification_nav .notification-panel-title {
  font-size: 1rem !important;
  font-weight: 800 !important;
}

#notification_nav .notification-panel-subtitle {
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 0.73rem !important;
  font-weight: 500;
}

#notification_nav .notification-mark-read-btn {
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  border-radius: 999px !important;
  padding: 0.38rem 0.8rem !important;
  background: rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

#notification_nav .notification-mark-read-btn:hover,
#notification_nav .notification-mark-read-btn:focus {
  background: #fff !important;
  color: var(--notification-blue-dark) !important;
}

#notification_nav .notification-list {
  max-height: 395px !important;
  padding: 0.75rem !important;
  background:
    linear-gradient(90deg, rgba(78, 115, 223, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, #f7faff 0%, #fff 58%) !important;
  background-size: 22px 22px, auto;
}

#notification_nav .notification-item {
  appearance: none;
  position: relative;
  display: flex !important;
  width: 100% !important;
  gap: 0.78rem !important;
  margin: 0 0 0.62rem !important;
  padding: 0.82rem 0.82rem 0.82rem 0.9rem !important;
  border: 1px solid rgba(78, 115, 223, 0.1) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.88) !important;
  color: var(--notification-ink) !important;
  text-align: left !important;
  box-shadow: 0 10px 24px rgba(78, 115, 223, 0.08) !important;
  overflow: hidden;
}

#notification_nav .notification-item::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--notification-blue), transparent);
  opacity: 0.7;
}

#notification_nav .notification-item:hover,
#notification_nav .notification-item:focus {
  border-color: rgba(78, 115, 223, 0.25) !important;
  background: #fff !important;
  box-shadow: 0 14px 30px rgba(78, 115, 223, 0.15) !important;
  transform: translateY(-2px);
}

#notification_nav .notification-item.is-unread {
  background: linear-gradient(135deg, #ffffff 0%, #eef5ff 100%) !important;
}

#notification_nav .notification-item.is-unread::before {
  top: 0.78rem !important;
  left: 0.38rem !important;
  width: 5px !important;
  height: calc(100% - 1.56rem) !important;
  border-radius: 999px !important;
  background: var(--notification-blue) !important;
  box-shadow: 0 0 0 4px rgba(78, 115, 223, 0.12);
}

#notification_nav .notification-item-icon {
  flex: 0 0 42px !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #eaf0ff, #fff) !important;
  color: var(--notification-blue) !important;
  box-shadow: inset 0 -1px 0 rgba(78, 115, 223, 0.12), 0 8px 16px rgba(78, 115, 223, 0.1);
}

#notification_nav .notification-item-content {
  gap: 0.22rem !important;
}

#notification_nav .notification-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.05rem;
}

#notification_nav .notification-item-chip {
  display: inline-flex;
  align-items: center;
  max-width: 132px;
  padding: 0.18rem 0.52rem;
  border-radius: 999px;
  background: rgba(78, 115, 223, 0.12);
  color: var(--notification-blue-dark);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

#notification_nav .notification-item-title {
  color: var(--notification-ink) !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  line-height: 1.28 !important;
}

#notification_nav .notification-item-body {
  color: #56647a !important;
  font-size: 0.8rem !important;
  font-weight: 500;
}

#notification_nav .notification-item-time {
  flex: 0 0 auto;
  margin: 0 !important;
  color: #8a95aa !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  white-space: nowrap;
}

#notification_nav .notification-tone-sky .notification-item-icon,
#notification_nav .notification-tone-sky::before {
  background: linear-gradient(135deg, #31b5f2, #187bd9) !important;
  color: #fff !important;
}

#notification_nav .notification-tone-teal .notification-item-icon,
#notification_nav .notification-tone-teal::before {
  background: linear-gradient(135deg, #22c7b6, #0b8f82) !important;
  color: #fff !important;
}

#notification_nav .notification-tone-green .notification-item-icon,
#notification_nav .notification-tone-green::before {
  background: linear-gradient(135deg, #53cf7d, #219653) !important;
  color: #fff !important;
}

#notification_nav .notification-tone-gold .notification-item-icon,
#notification_nav .notification-tone-gold::before {
  background: linear-gradient(135deg, #ffc857, #f2992e) !important;
  color: #5b3b05 !important;
}

#notification_nav .notification-tone-indigo .notification-item-icon,
#notification_nav .notification-tone-indigo::before {
  background: linear-gradient(135deg, #8178ff, #4e73df) !important;
  color: #fff !important;
}

#notification_nav .notification-tone-blue .notification-item-icon,
#notification_nav .notification-tone-blue::before {
  background: linear-gradient(135deg, #4e73df, #224abe) !important;
  color: #fff !important;
}

#notification_nav .notification-tone-sky .notification-item-chip {
  background: rgba(40, 167, 232, 0.13);
  color: #126ea3;
}

#notification_nav .notification-tone-teal .notification-item-chip {
  background: rgba(24, 182, 160, 0.13);
  color: #087b70;
}

#notification_nav .notification-tone-green .notification-item-chip {
  background: rgba(57, 181, 106, 0.13);
  color: #1f7a45;
}

#notification_nav .notification-tone-gold .notification-item-chip {
  background: rgba(242, 169, 59, 0.18);
  color: #8b570e;
}

#notification_nav .notification-tone-indigo .notification-item-chip {
  background: rgba(109, 99, 255, 0.13);
  color: #4640b4;
}

#notification_nav .notification-empty-state {
  border: 1px dashed rgba(78, 115, 223, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: #6d7890 !important;
}

#notification_nav .notification-empty-icon {
  border-radius: 18px !important;
  background: linear-gradient(135deg, #eef4ff, #fff5df) !important;
  color: var(--notification-gold) !important;
}

@media (max-width: 575.98px) {
  #notification_nav .notification-panel {
    min-width: min(360px, calc(100vw - 1.25rem)) !important;
    max-width: calc(100vw - 1.25rem) !important;
  }
}
/* Notification dropdown visual refresh end */

/* landing page */

.custom-header-img-logo {
  height: 100px;
}

.custom-img-height {
  height: 250px;
}

/* landing page end */

/* Datatable page entry text */
div .dt-length .dt-input {
  margin-right: 5px !important;
}

/* Proposal DataTables reusable layout */
#ind_pro_dt,
#ind5_pro_dt,
#group_pro_dt {
  width: 100% !important;
}

#ind_pro_dt th,
#ind_pro_dt td,
#ind5_pro_dt th,
#ind5_pro_dt td,
#group_pro_dt th,
#group_pro_dt td {
  vertical-align: middle;
}

#ind_pro_dt thead th,
#ind5_pro_dt thead th,
#group_pro_dt thead th,
table.dataTable thead th.proposal-dt-col-actions,
table.dataTable thead th.proposal-dt-col-status,
table.dataTable thead th.proposal-dt-col-code,
table.dataTable thead th.proposal-dt-col-text,
table.dataTable thead th.proposal-dt-col-summary {
  text-align: center !important;
  white-space: nowrap;
}

#ind_pro_dt tbody td,
#ind5_pro_dt tbody td,
#group_pro_dt tbody td,
table.dataTable tbody td.proposal-dt-col-actions,
table.dataTable tbody td.proposal-dt-col-status,
table.dataTable tbody td.proposal-dt-col-code,
table.dataTable tbody td.proposal-dt-col-text,
table.dataTable tbody td.proposal-dt-col-summary {
  text-align: left !important;
}

.proposal-dt-col-actions,
.proposal-dt-col-code {
  white-space: nowrap;
}

.proposal-dt-col-actions {
  min-width: 115px;
}

.proposal-dt-col-status {
  min-width: 220px;
}

.proposal-dt-col-code {
  min-width: 150px;
}

.proposal-dt-col-text,
.proposal-dt-col-summary {
  min-width: 150px;
}

.proposal-dt-col-actions .dropdown-toggle {
  min-width: 110px;
}

table.dataTable tbody td.proposal-dt-col-text,
table.dataTable tbody td.proposal-dt-col-summary {
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.proposal-dt-cell {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
}

table.dataTable > tbody > tr.selected > *,
table.dataTable.display > tbody > tr.selected > *,
table.dataTable.stripe > tbody > tr.selected > *,
table.dataTable.order-column > tbody > tr.selected > *,
table.dataTable.display > tbody > tr.selected > .sorting_1,
table.dataTable.display > tbody > tr.selected > .sorting_2,
table.dataTable.display > tbody > tr.selected > .sorting_3,
table.dataTable.order-column > tbody > tr.selected > .sorting_1,
table.dataTable.order-column > tbody > tr.selected > .sorting_2,
table.dataTable.order-column > tbody > tr.selected > .sorting_3 {
  box-shadow: none !important;
  color: inherit !important;
}

table.dataTable > tbody > tr.selected a {
  color: inherit !important;
}

table.dataTable > tbody > tr:hover > *,
table.dataTable.hover > tbody > tr:hover > *,
table.dataTable.display > tbody > tr:hover > *,
table.dataTable > tbody > tr:hover > .sorting_1,
table.dataTable > tbody > tr:hover > .sorting_2,
table.dataTable > tbody > tr:hover > .sorting_3,
table.dataTable.display > tbody > tr:hover > .sorting_1,
table.dataTable.display > tbody > tr:hover > .sorting_2,
table.dataTable.display > tbody > tr:hover > .sorting_3,
table.dataTable.order-column.hover > tbody > tr:hover > .sorting_1,
table.dataTable.order-column.hover > tbody > tr:hover > .sorting_2,
table.dataTable.order-column.hover > tbody > tr:hover > .sorting_3 {
  --bs-table-accent-bg: #f2f4f7;
  background-color: #f2f4f7 !important;
  box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, 0.06) !important;
  color: inherit !important;
}

/* Proposal DataTables reusable layout end */

/* TIMELINE */

.tracking-list {
  /* border: 1px solid #e5e5e5; */
  background: #fff;
  border-radius: 10px;
}

.tracking-list .tracking-item:first-child {
  font-weight: 700;
}

.tracking-item {
  border-left: 2px solid #e5e5e5;
  position: relative;
  padding: 2rem 1.5rem 0.5rem 2.5rem;
  font-size: 0.9rem;
  margin-left: 3rem;
  min-height: 5rem;
}

.tracking-item:last-child {
  padding-bottom: 4rem;
}

.tracking-item .tracking-date {
  margin-bottom: 0.5rem;
}

.tracking-item .tracking-date span {
  color: #888;
  font-size: 85%;
  padding-left: 0.4rem;
}

.tracking-item .tracking-content {
  padding: 0.5rem 0.8rem;
  background-color: #f4f4f4;
  border-radius: 0.5rem;
}

.tracking-item .tracking-content span {
  display: block;
  color: #888;
  font-size: 85%;
}

.tracking-item .tracking-icon {
  line-height: 2.6rem;
  position: absolute;
  left: -1.3rem;
  width: 2.6rem;
  height: 2.6rem;
  text-align: center;
  border-radius: 50%;
  font-size: 1.1rem;
  /* background-color: #e5e5e5; */
  /* color: #fff; */
  /* background-color: #d2f4e8; */
}

.tracking-bg-success {
  background-color: #d2f4e8;
}

.tracking-icon-success {
  color: #0f6848;
}

.tracking-bg-fail {
  background-color: #f8d7da;
}

.tracking-icon-fail {
  color: #78261f;
}

.tracking-item .tracking-icon {
  color: #fff;
  font-size: 1rem;
  padding-top: 12;
}

.tracking-item .tracking-icon i {
  padding-top: 12px;
  /* color: #0f6848; */
}

@media (min-width: 992px) {
  .tracking-item {
    margin-left: 11rem;
  }
  .tracking-item .tracking-date {
    position: absolute;
    left: -11rem;
    width: 8.5rem;
    text-align: right;
  }
  .tracking-item .tracking-date span {
    display: block;
  }
  .tracking-item .tracking-content {
    padding: 0;
    background-color: transparent;
  }
}

/* TIMELINE END */

/* custom font size */

.fs-12 {
  font-size: 12px;
}

/* custom font size end*/

/* custom modal content */

.custom-modal-content {
  height: 100% !important;
}

/* custom modal content end */

/* custom bg-color */

.bg-gray3 {
  background-color: #858796;
}

/* custom bg-color end */

/* select2 size */
.select2-container .select2-selection--single {
  height: 40px !important;
}

.select2-container .select2-selection--single .select2-selection__rendered,
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered .select2-selection__placeholder {
  line-height: 2 !important;
}

.is-invalid + .select2-container--bootstrap-5 .select2-selection,
.was-validated select:invalid + .select2-container--bootstrap-5 .select2-selection {
  border-width: 2px;
}
/* select2 size */

/* custom css for ppe_proposal_dt */

/* Headers: single line, use scrollX for overflow */
#gen_pro_activity_dt th,
#gen_pro_ppe_dt th,
#ppe_request_dt th {
  white-space: nowrap;
}

/* Body cells: can wrap */
#gen_pro_activity_dt td,
#gen_pro_ppe_dt td,
#ppe_request_dt td {
  white-space: normal;
  word-wrap: break-word;
}

/* Actions column can stay tighter if needed (optional) */
#gen_pro_activity_dt th:first-child,
#gen_pro_ppe_dt th:first-child,
#ppe_request_dt th:first-child {
  white-space: nowrap;
}

/* custom css for ppmp update modal */

  /*for black border of checkbox*/
  #ppmp_dt .form-check-input[type="checkbox"] {
    border: 2px solid black;   /* black border */
    width: 18px;
    height: 18px;
    cursor: pointer;
  }

  /* Keep the black border even when checked */
  #ppmp_dt .form-check-input[type="checkbox"]:checked {
    background-color: #007bff; /* your blue fill */
    border-color: black;       /* force black border */
  }

