body {
  margin: 0;
  color: #1D2630;
  font-size: 0.875rem;
  line-height: 1.57;
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 400;
  background-color: #E5EAF7;
  min-height: 100vh;
  padding-bottom: 4em;
  position: relative;
}

/* main.TP_containerWrapper {
    padding-top: 6em;
} */

.TP_menuwrapper {
  display: flex;
  background: #e4e9f6;
  align-items: center;
  border-radius: 50px;
  width: max-content;
  height: 55px;
  margin: 3px auto;
}

.TP_menuwrapper a.nav-link {
  color: #111111;
  font-weight: 600;
  padding: 8px 24px !important;
  border-radius: 50px;
}

.TP_menuwrapper a.nav-link:hover {
  text-decoration: none;
  background: #0468ff;
  border-radius: 50px;
  color: #fff;
}

/* Active menu styling */
.TP_menuwrapper a.nav-link.active {
  background: #0468FF;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(4, 104, 255, 0.18);
}

.TP_menuwrapper li.nav-item {
  padding: 0 1em;
}

.TP_UserDropdown .btn {
  background: #e4e9f6;
  border-radius: 50px;
  padding: 8px 16px;
  font-weight: 600;
  color: #111111;
  border: 0;
}

.TP_UserDropdown .btn {
  background: transparent;
  border-radius: 50px;
  padding: 8px 0px 8px 16px;
  font-weight: 600;
  color: #111111;
  box-shadow: unset;
}

.TP_notificationIcon .fa-bell {
  color: #111;
}

.TP_notificationIcon .rounded-pill {
  background: #DA1E28 !important;
  border-radius: 30px !important;
  height: 25px;
  width: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.TP_MainHeader {
  background-color: #fff;
  color: #1D2630;
  -webkit-transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
  transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
  box-shadow: none;
  width: 100%;
  box-sizing: border-box;
  -webkit-flex-shrink: 0;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  position: fixed;
  z-index: 1100;
  top: 0;
  left: auto;
  right: 0;
  background-color: #3366FF;
  color: #fff;
  background-color: #fff;
  z-index: 1200;
  box-shadow: 0px 1px 5px rgba(0, 0, 0, .1);
  width: 100%;
  z-index: 1201;
  -webkit-transition: width 225ms cubic-bezier(0.4, 0, 0.6, 1) 0ms, margin 225ms cubic-bezier(0.4, 0, 0.6, 1) 0ms;
  transition: width 225ms cubic-bezier(0.4, 0, 0.6, 1) 0ms, margin 225ms cubic-bezier(0.4, 0, 0.6, 1) 0ms;
  margin-left: 280px;
  width: calc(100% - 280px);
  width: 100%;
}

.TP_UserDropdown .dropdown-menu {
  background-color: #fff;
  color: #1D2630;
  -webkit-transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
  transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
  border-radius: 12px;
  box-shadow: none;
  overflow: hidden;
  border: none;
  border-radius: 12px;
  border-color: #E8E8E8;
  box-shadow: 0px 2px 8px rgba(19, 25, 32, 0.08);
}

.TP_logoutBtn .dropdown-item {
  background: #0468ff;
  border-radius: 50px;
  color: #fff;
}

.card {
  background-color: #fff;
  color: #1D2630;
  -webkit-transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
  transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
  border-radius: 12px;
  box-shadow: none;
  overflow: hidden;
  position: relative;
  border: 1px solid;
  border-radius: 12px;
  border-color: #E8E8E8;
  padding: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.05);
}

footer {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 24px 16px 0px;
  margin-top: auto;
  position: absolute;
  bottom: 0;
  width: 100%;

}

footer p {
  font-size: 12px;
  font-weight: 600;
}

.container {
  padding: 25px 15px;
  max-width: 100%;
}

.TP_heading1 {
  color: #111;
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: 28px;
}

.TP_heading2 {
  color: #111;
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

h2.TP_cardTitle {
  color: #111;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  margin-bottom: 1rem !important;
}

hr {
  border-color: #e8e8e8;
  opacity: 1;
}

.kpi {
  position: relative;
  text-align: left !important;
  gap: 0 !important;
}

.TP_Kpigreen {
  border-radius: 12px;
  background: linear-gradient(84deg, #4EBE66 8.39%, #82E49F 94.2%);
  box-shadow: 0 5px 10px 0 rgba(0, 29, 108, 0.06);
  padding: 20px;
  gap: 15px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.kpi.TP_Kpigreen:after {
  content: '';
  border-radius: 24px;
  background: #BFF6A5;
  box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.10);
  height: 100px;
  width: 100px;
  position: absolute;
  transform: rotate(-45deg);
  right: -24px;
  bottom: -45px;
}

.TP_Kpiblue {
  border-radius: 12px;
  background: linear-gradient(84deg, #0076FB 8.39%, #2DBAFF 94.2%);
  box-shadow: 0 5px 10px 0 rgba(0, 29, 108, 0.06);
  padding: 20px;
  gap: 15px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.kpi.TP_Kpiblue:after {
  content: '';
  border-radius: 24px;
  background: #A4DBFD;
  box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.10);
  height: 100px;
  width: 100px;
  position: absolute;
  transform: rotate(-45deg);
  right: -24px;
  bottom: -45px;
}

.TP_Kpiorange {
  border-radius: 12px;
  background: linear-gradient(84deg, #ED7811 8.39%, #FFA15E 94.2%);
  box-shadow: 0 5px 10px 0 rgba(0, 29, 108, 0.06);
  padding: 20px;
  gap: 15px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.kpi.TP_Kpiorange:after {
  content: '';
  border-radius: 24px;
  background: #FFD7C2;
  box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.10);
  height: 100px;
  width: 100px;
  position: absolute;
  transform: rotate(-45deg);
  right: -24px;
  bottom: -45px;
}

.TP_Kpired {
  border-radius: 12px;
  background: linear-gradient(84deg, #E74C3C 8.39%, #F08080 94.2%);
  box-shadow: 0 5px 10px 0 rgba(0, 29, 108, 0.06);
  padding: 20px;
  gap: 15px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.kpi.TP_Kpired:after {
  content: '';
  border-radius: 24px;
  background: #F5A9A9;
  box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.10);
  height: 100px;
  width: 100px;
  position: absolute;
  transform: rotate(-45deg);
  right: -24px;
  bottom: -45px;
}

.kpi-label {
  color: #FFF;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 24px;
  /* 171.429% */
  text-transform: uppercase;
}

.kpi-value {
  color: #FFF;
  font-size: 30px;
  font-style: normal;
  font-weight: 700;
  line-height: 28px;
  /* 93.333% */
}

.btn-primary {
  border-radius: 50px;
  background: #0468FF;
  display: flex;
  padding: 0.625rem 1.2rem !important;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  border-radius: 30px;
  background: #004DC0;
  text-decoration: none;
}

.btn-secondary {
  border-radius: 50px;
  display: flex;
  padding: .375rem 1rem;
  justify-content: center;
  align-items: center;
  gap: 8px;

}

.btn-secondary:hover {
  text-decoration: none;
}



.btn-light {
  background-color: #e8eefd;
  color: #0468ff;
  border-color: #e8eefd;
  border-radius: 45px;
  padding: 12px 15px;
}

.btn-light:hover {
  background-color: #d5e0fc;
  color: #0468ff;
  border-color: #b8c8ef;
  text-decoration: none;
}


.btn-danger {
  background-color: #FBE9EA;
  color: #DA1E28;
  border-color: #ffe2e3;

}

.btn-danger:hover {
  background-color: #ffd3d5;
  color: #DA1E28;
  border-color: #ffd3d5;
  text-decoration: none;


}

/* table{
     box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.05);margin-bottom: 0 !important;
} */
.TP_tableWrapper {
  margin: 0 -16px;
}

.table thead {
  background: #e2e2e2;
}

.table thead th {
  font-size: 0.75rem;
  line-height: 1.5rem;
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 500;
  display: table-cell;
  vertical-align: inherit;
  text-align: left;
  padding: 16px;
  color: #1D2630;
  font-size: 0.875rem;
  padding: 12px;
  border-color: rgba(148, 145, 145, 0.25);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #E5EAEF;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid rgba(0, 25, 60, 0.09);
  border-bottom: 1px solid rgba(0, 25, 60, 0.09);
}

.table tbody td {
  padding: 12px;
  border-top: 1px solid rgba(242, 241, 241, 1);
  color: #1D2630;
  font-size: 0.875rem;
  padding: 8px 12px;
  border-color: rgba(148, 145, 145, 0.25);
}

td .TP_actionIcon a .fa-regular {
  color: #0468FF;
  padding: 0 5px;
}

td .TP_actionIcon a:hover .fa-regular {
  color: #004DC0;
}

ul.TP_actionIcon {
  display: flex;
  gap: 8px;
  padding-left: 0;
}

ul.TP_actionIcon li {
  list-style: none;
}

ul.TP_actionIcon li a {
  color: #0468ff;
}

/* Width of scrollbar */
::-webkit-scrollbar {
  width: 4px;
  /* thin vertical scrollbar */
  height: 8px;
  /* thin horizontal scrollbar */
}

/* Scrollbar Track */
::-webkit-scrollbar-track {
  background: #fff;
}

/* Scrollbar Thumb (the slider) */
::-webkit-scrollbar-thumb {
  background: #f2f2f2;
  /* change this */
  border-radius: 10px;
}

/* Hover color */
::-webkit-scrollbar-thumb:hover {
  background: #ddd;
}


span.TP_tableSearch button {
  border: 0;
  background: unset;
  position: absolute;
  left: 15px;
  top: 20px;
  color: #0000008a;
}

span.TP_tableSearch input {
  padding-left: 40px !important;
  width: 200px;
}

span.TP_tableSearch {
  position: relative;
}

span.TP_tableSearch button:hover {
  background: transparent;
  color: #111111;
}

.TP_resetFilter {
  color: #5B6B79;
}

span.TP_astrisk {
  color: red;
}

.form-label {
  font-weight: 600;
  color: #202123;
  font-size: 14px;
}

.TP_validation_error {
  color: #FF4528;
  font-size: 14px;
  margin-top: 0.4px;
}

.form-control:focus {
  border: 1px solid #0468ff;
  outline: none;
  box-shadow: unset;
}

.TP_tableFilter .form-control {
  padding: .375rem .75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  border-color: #dee2e6;
  border-radius: 8px;
}

.TP_loginHeader h3 {
  margin: 0;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.33;
  font-weight: 700;
  margin-bottom: 8px;
}

.TP_loginHeader h5 {
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
}







/* Modern Upload Area 
/////////////////////////////////////////////////////////////////////////////////////*/

.modern-upload-area {
  position: relative;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  cursor: pointer;
  transition: all 0.3s ease;
}

.modern-upload-area:hover {
  border-color: #0468FF;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(4, 104, 255, 0.1);
}

.modern-upload-area.drag-over {
  border-color: #0468FF;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-style: solid;
}

.modern-upload-area.has-file {
  border-color: #10b981;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.upload-icon-wrapper {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, #0468FF 0%, #0254d8 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: uploadPulse 2s ease-in-out infinite;
}

@keyframes uploadPulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(4, 104, 255, 0.7);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 8px rgba(4, 104, 255, 0);
  }
}

.upload-icon {
  width: 24px;
  height: 24px;
  color: white;
}

.upload-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.upload-primary-text {
  font-size: 14px;
  font-weight: 600;
  color: #0468FF;
}

.upload-secondary-text {
  font-size: 12px;
  color: #6b7280;
}

@media (max-width: 768px) {
  .modern-upload-area {
    padding: 20px 16px;
  }

  .upload-icon-wrapper {
    width: 40px;
    height: 40px;
  }

  .upload-icon {
    width: 20px;
    height: 20px;
  }
}

/* Modern Files List (attachment preview) */
.modern-files-list {
  margin-top: 1rem;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  background: #f8f9fa;
  overflow: hidden;
}

.files-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #e9ecef;
  border-bottom: 1px solid #dee2e6;
}

.files-count {
  font-weight: 600;
  color: #212529;
  font-size: 0.9rem;
}

.btn-files-clear {
  background: none;
  border: none;
  color: #dc3545;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-files-clear:hover {
  background: rgba(220, 53, 69, 0.1);
  color: #bb2d3b;
}

.files-container {
  padding: 0.75rem;
}

.file-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
  gap: 0.75rem;
}

.file-item:last-child {
  margin-bottom: 0;
}

.file-item:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  border-color: #0468FF;
}

.file-item-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f4ff;
  border-radius: 6px;
  flex-shrink: 0;
}

.file-item-icon svg {
  width: 18px;
  height: 18px;
  color: #0468FF;
}

.file-item-details {
  flex: 1;
  min-width: 0;
}

.file-item-name {
  display: block;
  font-weight: 600;
  color: #212529;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-item-size {
  display: block;
  color: #6c757d;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.file-item-remove {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.file-item-remove:hover {
  background: rgba(220, 53, 69, 0.1);
  color: #bb2d3b;
}

.file-item-remove svg {
  width: 18px;
  height: 18px;
}


/* Modern Upload Area
/////////////////////////////////////////////////////////////////////////////////////*/







/* Notifications - modern simple design */
.notifications-header .muted.small {
  margin: 0;
}

.notifications-page .notifications-header {
  gap: 1rem;
}

.notifications-empty .empty-icon {
  font-size: 48px;
  opacity: 0.85;
}

.notifications-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.notification-card {
  border-radius: 10px;
  padding: 12px 14px;
  transition: transform .12s ease, box-shadow .12s ease;
  border: 1px solid rgba(22, 27, 34, 0.06);
  background: #fff;
}

.notification-card.unread {
  background: linear-gradient(90deg, rgba(230, 240, 255, 0.8), #fff);
  border-left: 4px solid #0468FF;
}

/* .notification-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(9,30,66,0.06); } */

.notification-accent {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #9ea8b4;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-accent .fa-bell {
  font-size: 18px;
  color: #FFF;
}

.notification-card.unread .notification-accent {
  background: #0468FF;
}

.notification-card.unread.variant-2 .notification-accent {
  background: #10B981;
}

.notification-card.unread.variant-3 .notification-accent {
  background: #F97316;
}

.notification-message {
  color: #0f1720;
  font-weight: 600;
}

.notification-meta {
  color: #6b7280;
}

.notification-actions .btn {
  white-space: nowrap;
}

@media (min-width: 768px) {
  .notifications-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1200px) {
  .notifications-grid {
    grid-template-columns: 1fr 1fr;
  }

  .notifications-page .card {
    overflow: scroll;
  }

}

/* small tweaks for header form */
.notifications-header form .form-control {
  padding-left: 3em !important;
  padding: .5rem .5rem;
}

.notifications-header form button {
  position: absolute;
  left: 20px;
  border: 0;
  background: unset;
  font-size: 16px;
}

/* Color variants for notification cards */
.notification-card.variant-1 {
  background: linear-gradient(90deg, #F2F8FF 0%, #FFFFFF 100%);
  border-left: 4px solid rgba(52, 102, 255, 0.06);
}

.notification-card.variant-2 {
  background: linear-gradient(90deg, #F6FFF2 0%, #FFFFFF 100%);
  border-left: 4px solid rgba(72, 187, 120, 0.06);
}

.notification-card.variant-3 {
  background: linear-gradient(90deg, #FFF7ED 0%, #FFFFFF 100%);
  border-left: 4px solid rgba(237, 129, 24, 0.06);
}

.notification-card.variant-4 {
  background: linear-gradient(90deg, #F6F2FF 0%, #FFFFFF 100%);
  border-left: 4px solid rgba(124, 77, 255, 0.06);
}

/* Stronger accent when unread: keep unread left border vivid */
.notification-card.unread.variant-1 {
  border-left-color: #0468FF;
}

.notification-card.unread.variant-2 {
  border-left-color: #10B981;
}

.notification-card.unread.variant-3 {
  border-left-color: #F97316;
}

.notification-card.unread.variant-4 {
  border-left-color: #7C4DFF;
}

/* Slightly increase contrast of unread card background */
.notification-card.unread.variant-1 {
  background: linear-gradient(90deg, rgba(102, 126, 234, 0.08), #fff);
}

.notification-card.unread.variant-2 {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.06), #fff);
}

.notification-card.unread.variant-3 {
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.06), #fff);
}

.notification-card.unread.variant-4 {
  background: linear-gradient(90deg, rgba(124, 77, 255, 0.06), #fff);
}


header .header-logo img {
  height: 65px;
}

@media (max-width: 991px) {
  .pagination-wrapper {
    justify-content: center;
    gap: 2rem;
    flex-direction: column;
    align-items: center;
  }

  .pagination {
    background: #e5eaef;
    width: 100%;
    padding: 1em;
    border-radius: 8px;
  }

  .TP_UserDropdownWrap {
    position: absolute;
    right: 7em;
  }

  .TP_menuwrapper {
    display: flex;
    background: #ffffff;
    align-items: center;
    border-radius: 0;
    width: 100%;
    height: auto;
    margin: 2px auto;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    box-shadow: 0 15px 30px 0 rgba(0, 0, 0, 0.03);
    padding: 1em;
  }

  .TP_MainHeader .navbar-collapse {
    flex-grow: 1;
    flex-basis: 100%;
    align-items: center;
    width: 100%;
    position: absolute;
    top: 5.7em;
    left: 0;
  }

  .navbar-toggler:focus {
    box-shadow: unset;
    background-color: #f2f6ff;
  }

  .TP_menuwrapper li.nav-item {
    width: 100%;
    text-align: center;
  }

  .TP_menuwrapper a.nav-link {
    padding: 12px 24px !important;
  }
}

/* ============================================
   RMS Admin Pages - Unified Styling
   ============================================ */

/* ===== RMS Page Container ===== */
.rms-container {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* ===== Card Styling ===== */
.rms-card {
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.rms-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.rms-card-header {
  background: linear-gradient(135deg, #0468FF 0%, #0056d2 100%);
  color: #fff;
  padding: 1.25rem;
  border-bottom: none;
  font-weight: 600;
}

.rms-card-header h4 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.rms-card-body {
  padding: 1.5rem;
  background-color: #ffffff;
}

/* ===== Header and Action Bar ===== */
.rms-header-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.rms-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1D2630;
  margin: 0;
}

/* ===== Search and Filter Section ===== */
.rms-search-filter {
  margin-bottom: 1.5rem;
  ;
}

.rms-search-filter .form-control,
.rms-search-filter .form-select {
  font-size: 0.875rem;
  padding: 0.625rem 0.875rem;
  transition: border-color 0.2s ease;
}

.rms-search-filter .form-control:focus,
.rms-search-filter .form-select:focus {
  border-color: #0468FF;
  box-shadow: 0 0 0 3px rgba(4, 104, 255, 0.1);
}

.rms-search-filter .btn {
  border-radius: 4px;
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  transition: all 0.2s ease;
}

/* ===== Table Styling ===== */
.rms-table-wrapper {
  overflow-x: auto;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.rms-table {
  margin-bottom: 0;
  font-size: 0.875rem;
}

.rms-table thead {
  background-color: #f8f9fa;
  border-bottom: 2px solid #e9ecef;
}

.rms-table thead th {
  padding: 0.875rem;
  font-weight: 600;
  color: #495057;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  border: none;
}

.rms-table tbody tr {
  border-bottom: 1px solid #e9ecef;
  transition: background-color 0.2s ease;
}

.rms-table tbody tr:hover {
  background-color: #f8f9fa;
}

.rms-table tbody td {
  padding: 0.875rem;
  vertical-align: middle;
  color: #1D2630;
}

.rms-table tbody strong {
  color: #0468FF;
  font-weight: 600;
}

.rms-table code {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 3px;
  padding: 0.25rem 0.5rem;
  color: #d63384;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ===== Badge Styling ===== */
.rms-badge {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.rms-badge-active {
  background-color: #dcfce7;
  color: #166534;
}

.rms-badge-inactive {
  background-color: #fee2e2;
  color: #991b1b;
}

.rms-badge-success {
  background-color: #dcfce7;
  color: #166534;
}

.rms-badge-danger {
  background-color: #fee2e2;
  color: #991b1b;
}

.rms-badge-info {
  background-color: #dbeafe;
  color: #075985;
}

.rms-badge-warning {
  background-color: #fef3c7;
  color: #92400e;
}

/* ===== Button Styling ===== */
.rms-btn {
  border-radius: 45px;
  font-weight: 600;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.rms-btn-primary {
  background-color: #0468FF;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rms-btn-primary:hover {
  background-color: #0056d2;
  box-shadow: none;
  color: #FFF;
  text-decoration: none;
}

.rms-btn-secondary {
  background-color: #6c757d;
  color: #fff;
}

.rms-btn-secondary:hover {
  background-color: #5c636a;
}

.rms-btn-success {
  background-color: #16a34a;
  color: #fff;
}

.rms-btn-success:hover {
  background-color: #15803d;
}

.rms-btn-warning {
  background-color: #f59e0b;
  color: #fff;
  border-radius: 5px;
  padding: 8px 12px !important;
}

.rms-btn-warning:hover {
  background-color: #d97706;
  text-decoration: none;
  color: #FFF;
}

.rms-btn-danger {
  background-color: #dc2626;
  color: #fff;
  border-radius: 5px;
  padding: 8px 12px !important;
}

.rms-btn-danger:hover {
  background-color: #b91c1c;
  color: #fff;
}

.rms-btn-light {
  background-color: #e9ecef;
  color: #1D2630;
  border: 1px solid #dee2e6;
}

.rms-btn-light:hover {
  background-color: #dee2e6;
  border-color: #bcc2ca;
}

.rms-btn-sm {
  padding: 0.5rem 1.75rem;
  font-size: 0.8rem;
}

.rms-btn-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* ===== Form Styling ===== */
.rms-form-group {
  margin-bottom: 1.5rem;
}

.rms-form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #1D2630;
  font-size: 0.875rem;
}

.rms-form-control {
  border: 1px solid #dfe1e6;
  border-radius: 4px;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  width: 100%;
  transition: border-color 0.2s ease;
}

.rms-form-control:focus {
  outline: none;
  border-color: #0468FF;
  box-shadow: 0 0 0 3px rgba(4, 104, 255, 0.1);
}

/* ===== Empty State ===== */
.rms-empty-state {
  text-align: center;
  padding: 3rem;
  color: #6b7280;
}

.rms-empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.rms-empty-state-text {
  font-size: 1rem;
  margin: 0;
}

/* ===== Status Badge for Table ===== */
.rms-status-active {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  background-color: #dcfce7;
  color: #166534;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.rms-status-inactive {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  background-color: #fee2e2;
  color: #991b1b;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ===== Color Indicator Badge ===== */
.rms-color-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  font-size: 0.75rem;
  font-weight: 600;
}

.rms-color-dot {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .rms-search-filter {
    padding: 1rem;
  }

  .rms-search-filter .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }

  .rms-search-filter [class*="col-"] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .rms-table {
    font-size: 0.8rem;
  }

  .rms-table thead th {
    padding: 0.6rem;
    font-size: 0.7rem;
  }

  .rms-table tbody td {
    padding: 0.6rem;
  }

  .rms-btn-group {
    flex-direction: column;
    gap: 0.25rem;
  }

  .rms-btn {
    justify-content: center;
  }

  .rms-header-action {
    flex-direction: column;
    align-items: stretch;
  }

  .rms-header-action .btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .rms-card-body {
    padding: 1rem;
  }

  .rms-title {
    font-size: 1.25rem;
  }

  .rms-card-header h4 {
    font-size: 1.1rem;
  }

  .rms-table {
    font-size: 0.75rem;
  }

  .rms-table thead th {
    padding: 0.5rem;
    font-size: 0.65rem;
  }

  .rms-table tbody td {
    padding: 0.5rem;
  }

  .rms-btn-sm {
    padding: 0.4rem 0.6rem;
    font-size: 0.7rem;
  }

  .rms-badge {
    padding: 0.4rem 0.6rem;
    font-size: 0.65rem;
  }
}

/* ===== Animation ===== */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rms-card {
  animation: slideIn 0.3s ease;
}

/* ===== Print Styling ===== */
@media print {

  .rms-search-filter,
  .rms-btn-group,
  .rms-header-action {
    display: none;
  }

  .rms-table {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .rms-table thead {
    background-color: #f0f0f0;
  }
}


/**2/1/2026**/

body.dropdown-open::after {
  background: rgba(3, 38, 50, 0.8) !important;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease-in-out;
  position: fixed;
  width: 100%;
  height: 100vh;
  content: "";
  top: 0;
  left: 0;
  z-index: 9;
}

.dropdown-open {
  overflow: hidden;
}

header .user-dropdown-menu {
  background: linear-gradient(0deg, #E6ECF5 0%, #A6C6F6 100%);
  border: none !important;
  box-shadow: none !important;
  top: calc(100% + 2.5rem);
  opacity: 0 !important;
  visibility: hidden !important;
  transition: all 0.2s ease !important;
  z-index: 1000 !important;
}

header .user-dropdown.active .user-dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

header .user-dropdown-menu::after {
  content: "";
  position: absolute;
  top: -10px;
  right: 15px;
  border-left: 10px solid transparent;
  transform: rotate(180deg);
  border-right: 10px solid transparent;
  border-top: 15px solid #a6c6f6;
}

header .logout-btn-dropdown svg,
header .dropdown-separator {
  display: none;
}

header .logout-btn-dropdown {
  background: #0468ff;
}

header .logout-btn-dropdown:hover {
  background: #0258da;
  transform: none;
  box-shadow: none;
}

header .dropdown-avatar {
  background: #0468ff;
  border: 2px solid #0468ff;
}

header .dropdown-avatar-initial {
  color: #f8faff;
}

header .dropdown-user-details {
  gap: 0;
  line-height: 18px;
}

header .nav-dropdown-menu {
  background: linear-gradient(0deg, #E6ECF5 0%, #A6C6F6 100%);
  border: none;
  box-shadow: none;
  top: calc(100% + 35px);
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 9999;
}

header .nav-dropdown-menu::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 15px;
  border-left: 10px solid transparent;
  transform: rotate(180deg);
  border-right: 10px solid transparent;
  border-top: 15px solid #a6c6f6;
}

header .nav-dropdown.active .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  display: block;
}

header .nav-dropdown-menu .dropdown-item {
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

header .nav-dropdown-menu .dropdown-item:hover {
  background: #0468FF;
  color: #FFF;
  border-radius: 5px;
}

header {
  padding: .5rem;
}

header .header-nav {
  flex: none;
  background: rgb(228, 233, 246);
  padding: 10px;
  border-radius: 45px;
  overflow: visible;
}

.navbar-light .navbar-nav .nav-link {
  color: #54577A;
  border-radius: 45px;
  background: transparent;
}

header .header-nav .nav-link.active,
header .header-nav .nav-link:hover {
  background: #0468FF;
  color: #fff;
  border-radius: 45px;
}

/* KPI Interactive Card Styles */
.kpi-card-interactive {
  padding: 2rem 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.kpi-card-interactive:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.kpi-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: white;
}

.kpi-header i {
  font-size: 2rem;
}

.kpi-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
}

.kpi-buttons {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.kpi-buttons .btn {
  flex: 1;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.kpi-buttons .btn-light {
  background-color: rgba(255, 255, 255, 0.95);
  color: #333;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.kpi-buttons .btn-light:hover {
  background-color: white;
  color: #333;
}

header .user-dropdown-toggle {
  background: #FFF;
  border: solid 1px #ced2de;
  color: #032632;
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: 45px;
  padding: 0 15px 0 3px;
}

header .dropdown-arrow {
  display: none;
}

header .user-details {
  gap: 0;
}

header .header-left {
  gap: 5px;
}

.status-badge {
  border-radius: 5px;
  padding: 5px 10px;
}

header .user-avatar {
  background: #0468ff;
}

header .avatar-initial {
  color: #fff;
}


/* Header CSS Ends Here */

.pagination-btn {
  border: 1px solid #E5E7EB;
}

.form-actions button[type=submit] {
  order: 1;
}

.table thead th {
  text-transform: none;
}

.pagination-wrapper {
  padding: 0;
  margin-top: 1rem;
}

.rms-table-wrapper {
  margin: 0 -16px 15px -16px;
  border-radius: 0;
}

.rms-btn-primary i {
  order: 1;
}

.rms-btn-primary i.bi-search {
  display: none;
}

a.rms-btn i.bi-plus {
  font-size: 18px;
}

.variant-1 .btn-light {
  background: #0468ff;
  color: #FFF;
  border: solid 1px #0468ff;
  padding: 12px 15px;
}

.variant-1 .btn-light:hover {
  background: #004DC0;
  color: #FFF;
  border: solid 1px #004DC0;
}

.variant-2 .btn-light {
  background: #10B981;
  color: #FFF;
  border: solid 1px #10B981;
  padding: 12px 15px;
}

.variant-2 .btn-light:hover {
  background: #089365;
  color: #FFF;
  border: solid 1px #089365;
}

.variant-3 .btn-light {
  background: #F97316;
  color: #FFF;
  border: solid 1px #F97316;
  padding: 12px 15px;
}

.variant-3 .btn-light:hover {
  background: #d25f10;
  color: #FFF;
  border: solid 1px #d25f10;
}

header .logout-btn-dropdown {
  padding: 0.5rem 1rem;
}

.pagination-btn:hover:not(.pagination-btn-disabled):not(.pagination-btn-active) {
  background: #e5f0ff;
  border-color: #0468ff;
}

.form-control,
.form-select {
  border: 1px solid #8EA0B3;
  border-radius: 8px !important;
  padding: 0.625rem 0.875rem;
}

.notification-message {
  width: 740px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table td,
.table th {
  border: none;
  border-bottom: 1px solid #ddd;
}

a:hover {
  text-decoration: none;
}

/* Status Badge Styles */
.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
}

.status-new {
  background: #e3f2fd;
  color: #1976d2;
}

.status-routed-to-admin {
  background: #fff3e0;
  color: #f57c00;
}

.status-admin-reviewing {
  background: #f3e5f5;
  color: #7b1fa2;
}

.status-assigned-to-developer {
  background: #e8f5e9;
  color: #388e3c;
}

.status-in-progress {
  background: #e1f5fe;
  color: #0277bd;
}

.status-waiting-for-user-action {
  background: #fff9c4;
  color: #f57f17;
}

.status-closed-pending-admin {
  background: #fce4ec;
  color: #c2185b;
}

.status-closed {
  background: #e0e0e0;
  color: #424242;
}

.status-reopened {
  background: #ffebee;
  color: #d32f2f;
}

#emailActionsContainer button.btn.btn-primary.w-100 {

  width: 100% !important;

}

.status-admin-edited {
  background: #e0f2f1;
  color: #00796b;
}

.table-overflow {
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-overflow {
    max-width: 450px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

span.badge.bg-success {
  --bs-bg-opacity: 1;
  background-color: #16a34a26 !important;
  color: #16a34a !important;
  font-size: 12px !important;
  border-radius: 8px !important;
  line-height: 16px !important;
}

.text-success-iibf {
  background-color: #16a34a26 !important;
  color: #16a34a !important;
  font-size: 12px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  padding: 5px 20px !important;
  line-height: 16px !important;
}

.text-danger-iibf {
  background-color: #FBE9EA !important;
  color: #781116;
  border: 1px solid #FBE9EA !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 5px 20px !important;
  border-radius: 8px !important;
  line-height: 16px !important;
}

.bg-danger {
  background-color: #FBE9EA !important;
  color: #781116;
  border: 1px solid #FBE9EA !important;
  font-size: 12px !important;
  border-radius: 8px !important;
  line-height: 16px !important;
}

.bg-secondary {
  --bs-bg-opacity: 1;
  background-color: #6c757d2b !important;
  color: #474d52 !important;
  font-size: 12px !important;
  border-radius: 8px !important;
  line-height: 16px !important;
}

span.badge.bg-primary {
  --bs-bg-opacity: 1;
  background-color: #0d6efd26 !important;
  color: #0d6efd !important;
  font-size: 12px !important;
  border-radius: 50px;
  line-height: 16px;
}

span.badge.bg-warning {
  --bs-bg-opacity: 1;
  background-color: #ffc10752 !important;
  color: #bf9105 !important;
  font-size: 12px;
  border-radius: 8px;
  line-height: 16px;
}

.btnNewGroup {
  gap: 5px !important;
  display: flex !important;
}

.btnNewGroup .btn-sm {
  background: #0468ff !important;
  color: #FFF !important;
  border: none !important;
  padding: 8px 35px !important;
  border-radius: 35px !important;
}

.btn-Clearall {
  background: #FFF !important;
  color: #DA1E28 !important;
  font-weight: 700 !important;
  border: none !important;
  padding: 10px 0px !important;
  border-radius: 0px !important;
}

input.is-invalid,
textarea.is-invalid,
select.is-invalid {
  border: 2px solid #dc3545 !important;
  box-shadow: none;
  background-image: none !important;
}

/* Focus state */
input.is-invalid:focus,
textarea.is-invalid:focus,
select.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.15rem rgba(220, 53, 69, 0.25);
}

/* Hide message until error */
.invalid-feedback {
  display: none;
  color: #dc3545;
}

/* Toggle Switch Styles */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  order: 2;
  margin-left: 10px;
}

span.toggle-label {
  order: 1;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

.toggle-switch input:checked+.toggle-slider {
  background-color: #0468FF;
}

.toggle-switch input:checked+.toggle-slider:before {
  transform: translateX(26px);
}

.toggle-switch input:focus+.toggle-slider {
  box-shadow: 0 0 1px #0468FF;
}


.btn {
  font-size: inherit !important;
  font-weight: 600 !important;
}
.btn-outline-primary{
  border-radius: 50px !important; padding: 0.625rem 1.2rem;
}
.btn-outline-secondary{
  border-radius: 50px !important; padding: 0.625rem 1.2rem;
}
/* .w-100 {
  width: auto !important;
} */

.bg-lightNew {
  background-color: rgb(228 233 246);
}

.flatpickr-input {
  text-transform: uppercase;
}
header .header-nav .nav-item{ padding: 0 5px;}
.error-page-content{ max-width: 600px; margin: 0 auto; text-align: center;}




/* === Media CSS ======================================================== */

@media(max-width: 992px){
  header .header-nav{ background: transparent; margin: 0; position: absolute; right: 90px; top: 10px; width: 100%; border-radius: 0; justify-content: flex-end;}
  .TP_UserDropdownWrap { position: relative; right: 0;}
  header { padding: .5rem; align-items: flex-start;}
  header .user-avatar{ width: 32px; height: 32px;}
  header .navbar-collapse.collapse.show{ height: 100%;}
  header .header-nav .navbar-toggler{ position: absolute; top: 0px; padding: 4px 6px;}
  .auth-right{ display: none !important;}
  header .user-details{ display: none !important;}
  header .user-dropdown-toggle{ padding: 3px;}
  header .avatar-initial{ font-size: 1rem;}
  header .offcanvas{ max-width: 80%; padding: 20px 10px}
  .offcanvas-header{ justify-content: end; padding-top: 0;}
  .navbar-nav{ width: 100%; height: 100%; display: inline-block;}
header .nav-dropdown.active .nav-dropdown-menu{
  position: relative; min-width: 100%; top: 4px; margin: 0;
}
header .nav-dropdown{ width: 100%}

}



@media(max-width: 767px){
  span.TP_tableSearch, .status-filter-container, .source-filter-container {
    position: relative;
    width: 100%;
}
header .header-logo img {
    height: 58px;
}
span.TP_tableSearch form {
    width: 100%;
    display: inline-flex !important;
}
.TP_tableFilter .form-control{ width: 100%; min-width: 100%;}
.auth-left{ padding: 1.5rem 1rem !important;}
.d-flex.justify-content-between.align-items-center.mb-3 {
    flex-wrap: wrap;
    gap: 10px;
}
.card-header.d-flex.justify-content-between.align-items-center {
    flex-wrap: wrap;
}
.btnNewGroup .btn-sm {
    padding: 8px 20px !important;
}
.g-3, .gy-3{ gap: 10px}
.notification-overflow{ max-width: 185px;}
.notification-actions .btn{ padding: 7px 10px;}
.notification-accent{ width: 36px; height: 36px;}
.error-page h2{ font-size: 2rem;}
.error-page p{ font-size: 1rem; line-height: 1.4rem;}
.detail-grid{ gap: 0}
.query-form-grid .form-group{ margin-bottom: 0;}

}