/* Notification CSS */
.notification-wrapper {
  position: relative;
  display: inline-block;
}

.notification-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.notification-icon {
  width: 28px;
  height: 28px;
  display: block;
}

.notification-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 3px;
  background-color: #e53935;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  border-radius: 50%;
  border: 2px solid #0b2a3b;
}

.notification-wrapper {
  position: relative;
}

.notification-dropdown {
  position: absolute;
  top: 42px;
  right: 0;
  width: 320px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 9999;
  overflow: hidden;
}

.notification-list {
  max-height: 260px;
  min-height: 260px;
  overflow-y: auto;
  list-style: none;
  padding: 0;
  margin: 0;
}

.notification-list li {
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.notification-list li:last-child {
  border-bottom: none;
}

.notification-dropdown .view-all {
  padding: 8px;
  text-align: center;
  border-top: 1px solid #eee;
  background: #009ddc;
  border-radius: 0 0 8px 8px;
}

.notification-dropdown .view-all a {
  font-weight: 500;
  font-size: 15px;
  color: #fff;
  text-decoration: none;
}

.notification:first-child {
  border-radius: 8px 8px 0 0;
}

.notification:last-child {
  border-radius: 0 0 8px 8px;
}

body .notification a.notification-link {
  text-decoration: none;
  color: #333;
  display: flex;
  margin: 0;
}

.notification.unread {
  background: #f4f9ff;
  font-weight: 600;
  border-left: 2px solid #009ddc;
}

.notification.read {
  background: #fff;
  font-weight: 400;
}

.notification-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
}

.notification-detail-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  height: 100vh;
  background: #ffffff;
  z-index: 1000;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  transition: right 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
}

.notification-detail-panel.active {
  right: 0;
}

.notification-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  font-weight: 600;
  background: #009ddc;
  color: #fff;
  font-size: 20px;
}

.notification-detail-header .close-detail {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

.detail-footer {
  margin-top: 10px;
  font-size: 13px;
  color: #333333;
}

.notification-detail-content {
  padding: 16px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.6;
}

.custom-ul-list li.add-asset a::before {
  background-image: url(../img/assets-blk.svg);
}

/* Toast notification css Top Center */
.toast-container {
  position: fixed;
  top: 70px;
  /* below header */
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
}

/* Toast Card */
.toast {
  width: 360px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-30px);
  transition: all 0.3s ease;
}

/* Show animation */
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Header (match top bar theme) */
body .toast-header {
  background: #009ddc;
  color: #fff;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Body */
.toast-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  color: #222;
}

.toast-message {
  font-size: 13px;
  color: #555;
}

/* Close button */
body .toast-close {
  cursor: pointer;
  font-size: 16px;
  color: #fff;
}

body .toast-close:hover {
  color: #ccc;
}

/* new css */
.notification-title-row {
  font-size: 16px;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

span.notification-time {
  font-weight: 500;
  font-size: 14px;
  background: #cccccc63;
  padding: 2px 7px;
  font-size: 13px;
  border-radius: 10px;
}

.notification-time-ago {
  margin-top: 8px;
  color: #8a8a8a;
  font-size: 12px;
}

.notification-message {
  font-size: 14px;
  line-height: 1.35;
}

.notification.read .notification-title-row strong {
  font-weight: 500;
}

.notification-header {
  padding: 8px;
  text-align: justify;
  background: #009ddc00;
  border-bottom: 1px solid #cccccc7a;
  font-weight: 600;
}

.notification-header h3 {
  margin-bottom: 0;
  font-size: 16px;
}

/* new detail css */
.notification-detail-panel .detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.notification-detail-panel .detail-header h3 {
  margin: 0;
  font-size: 20px;
}

.notification-detail-panel .detail-card.message-card {
  font-size: 16px;
  margin-bottom: 20px;
}

.notification-detail-panel .detail-card.message-card p {
  margin: 0;
}

.notification-detail-panel .detail-card.booking-card .card-header {
  background: transparent;
  border-top: 1px solid #ccc;
  border-bottom: none;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-detail-panel span.status-badge {
  border: 1px solid #ccc;
  padding: 2px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
  width: fit-content;
  text-wrap: nowrap;
  font-weight: 400 !important;
  font-size: 12px;
  min-height: 20px;
  text-align: center;
}

.notification-detail-panel .status-pending {
  background: #fff3cd;
  border: 1px solid #856404;
  color: #856404;
}

.notification-detail-panel .status-approved {
  background: #b3e9bc;
  border: 1px solid #187927;
  color: #187927;
}

.notification-detail-panel .status-rejected {
  background: #ffc8c8;
  border: 1px solid #cc7272;
  color: #cc7272;
}

.notification-detail-panel .status-Queried {
  background: #fff3cd;
  border: 1px solid #856404;
  color: #856404;
}

.notification-detail-panel .card-header h4 {
  margin: 0;
}

.notification-detail-panel .detail-card.booking-card {
  font-size: 16px;
  line-height: 1.45;
}

.notification-detail-panel .detail-box {
  margin-bottom: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-bottom: 8px;
  border-bottom: 1px solid #efefef;
}

.notification-detail-panel .detail-box label {
  font-weight: 500;
}

.action-buttons-group {
  display: flex;
  gap: 10px;
  text-align: center;
}

.action-buttons-group .action-btn {
  padding: 10px;
  flex: 1;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
}

.action-buttons-group .approve-btn {
  background-color: #187927;
}

.action-buttons-group .reject-btn {
  background-color: #e53935;
}

.view-all-btn {
  background: #009ddc;
  color: #ffffff;
  display: block;
  text-align: center;
  margin-top: 8px;
  padding: 10px;
  flex: 1;
  text-decoration: none;
  border-radius: 5px;
}

.view-all-btn:hover {
  background: #009ddc;
  color: #ffffff;
  display: block;
  text-align: center;
  margin-top: 8px;
  padding: 10px;
  flex: 1;
  text-decoration: none;
  border-radius: 5px;
}

body:has(.notification-detail-panel.active) {
  overflow: hidden;
}

form.booking-request-status-form .date-fields-wrapper.js-form-wrapper.form-wrapper {
  display: flex;
  gap: 16px;
}

form.booking-request-status-form fieldset.travel-accommodation-section .fieldset-wrapper {
  display: flex;
  gap: 10px;
}

form.booking-request-status-form .travel-cost-currency {
  display: flex;
  align-items: flex-end;
}

form.booking-request-status-form .accommodation-cost-currency {
  display: flex;
  align-items: flex-end;
}

form.booking-request-status-form .custom-table-layout .table-design {
  padding: 0;
}

form.booking-request-status-form span.fieldset-legend {
  font-size: 24px;
  color: #5d5d5d;
  font-weight: 700;
}

form.booking-request-status-form .js-form-item-field-travel-days.form-item-field-travel-days {
  width: 50.33%;
}

form.booking-request-status-form .js-form-item-field-accommodation-cost-currency label.form-item__label {
  white-space: nowrap;
}

form.booking-request-status-form .accommodation-cost-wrapper.js-form-wrapper.form-wrapper .js-form-item-field-accommodation-cost-currency.form-item-field-accommodation-cost-currency {
  min-width: 86px;
  max-width: 86px;
}

form.booking-request-status-form .js-form-item-field-accommodation-cost.form-item-field-accommodation-cost input.form-number {
  margin-bottom: 20px;
  border-left: none;
  border-radius: 0px 5px 5px 0px;
}

form.booking-request-status-form .travel-cost-wrapper .js-form-item-field-travel-cost.form-item-field-travel-cost input.form-number {
  margin-bottom: 20px;
}

form.booking-request-status-form .select2-container--default .select2-selection--single {
  border-radius: 5px 0px 0px 5px !important;
}

form.booking-request-status-form .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0;
}

form.booking-request-status-form .select2-container--default .select2-selection--single::after {
  display: none;
}

form.booking-request-status-form .travel-cost-currency .js-form-item-field-travel-cost-currency.form-item-field-travel-cost-currency {
  max-width: 86px;
  min-width: 86px;
}

form.booking-request-status-form .travel-cost-currency label.form-item__label {
  white-space: nowrap;
}

form.booking-request-status-form .js-form-item-field-travel-cost.form-item-field-travel-cost input.form-number {
  border-radius: 0 5px 5px 0;
  border-left: none;
}

form.booking-request-status-form .price-wrapper {
  display: flex;
  gap: 16px;
}

form.booking-request-status-form .price-wrapper .js-form-wrapper.form-wrapper {
  display: flex;
  gap: 16px;
  flex: 1;
}

form.booking-request-status-form .price-wrapper .form-item-field-course-price input,
form.booking-request-status-form .price-wrapper .form-item-field-course-discount-price input.form-number {
  margin-bottom: 20px;
  border-radius: 0px 5px 5px 0;
  border-left: 0;
}

form.booking-request-status-form .price-wrapper .course-price-currency,
form.booking-request-status-form .price-wrapper .discount-price-currency {
  display: flex;
  align-items: flex-end;
  width: 100%;
}

form.booking-request-status-form .price-wrapper .course-price-currency .form-item-field-course-price-currency,
form.booking-request-status-form .price-wrapper .discount-price-currency .form-item-field-course-discount-price-currency {
  min-width: 100px;
  max-width: 100px;
}

form.booking-request-status-form .price-wrapper .course-price-currency .form-item-field-course-price-currency label.form-item__label,
form.booking-request-status-form .price-wrapper .discount-price-currency .form-item-field-course-discount-price-currency label.form-item__label {
  white-space: nowrap;
}

form.booking-request-status-form .supplier-invalid {
  color: #c62828;
  font-weight: 500;
}

form.booking-request-status-form #details-container {
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 8px;
  background-color: #ffffff;
  transition: all 0.3s ease;
  position: relative;
  border-left: 4px solid #4a6fa5;
  box-shadow: 0 2px 8px rgba(74, 111, 165, 0.2);
}

form.booking-request-status-form #details-container .messages.messages--status {
  margin-bottom: 15px;
}

form.booking-request-status-form .request-info-section {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 25px;
  border: 1px solid #e0e0e0;
}

form.booking-request-status-form #accreditation-delivery-method-wrapper {
  display: flex;
  gap: 16px;
}

div#budget-validation-wrapper {
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 8px;
  background-color: #ffffff;
  transition: all 0.3s ease;
  position: relative;
  border-left: 4px solid #4a6fa5;
  box-shadow: 0 2px 8px rgba(74, 111, 165, 0.2);
}

.skeleton-wrapper {
  padding: 10px;
}

.skeleton-title,
.skeleton-line {
  background: linear-gradient(90deg, #eee, #f5f5f5, #eee);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 4px;
  margin-bottom: 10px;
}

.skeleton-title {
  height: 20px;
  width: 70%;
}

.skeleton-line {
  height: 12px;
  width: 100%;
}

.skeleton-line.short {
  width: 60%;
}

.skeleton-card {
  margin-top: 15px;
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 6px;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
}
  100% {
    background-position: 200% 0;
}
}

.skeleton-item {
  height: 60px;
  margin: 10px;
  border-radius: 6px;
  background: linear-gradient(
  90deg,
  #f0f0f0 25%,
  #e0e0e0 37%,
  #f0f0f0 63%
  );
  background-size: 400% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.no-more-notifications,
.more-notifications {
  text-align: center;
}

#details-container:empty {
  display: none;
}

.request-booking-btn {
  position: absolute;
  top: 17px;
  text-align: end;
  right: 23px;
}

#drupal-modal #direct-add-course-modal-form .js-form-item.form-item.form-group.custom-form .select2.select2-container {
  margin-bottom: 0 ;
}

.training-request-form .select2-container.select2-container--default.select2-container--open {
  z-index: 1;
}

.training-request-form .select2-container--default .select2-search--dropdown .select2-search__field {
  margin: 0 0 0px;
}

.dashboardform-inner .all-course-expandable.table tbody td {
  vertical-align: middle;
}

#notificationDetailPanel .time-ago {
  color: #636363;
}

#notificationDetailPanel .detail-card.message-card {
  border-bottom: 1px solid #e3e3e3;
  margin-bottom: 10px;
}

#notificationDetailPanel .detail-card p {
  padding-bottom: 10px;
  margin-bottom: 0;
}

#notificationDetailPanel .action-btn.download-btn {
  background: #009ddc;
  color: #ffffff;
  display: block;
  text-align: center;
  margin-top: 8px;
  padding: 10px;
  flex: 1;
  text-decoration: none;
  border-radius: 5px;
  width: 100%;
  max-width: 100%;
  display: block;
}

#notificationDetailPanel .action-download-invoice-btn {
  margin-bottom: 10px;
}

#notificationDetailPanel .close-detail {
  color: #fff;
}

@media (max-width: 450px) {
  .request-booking-btn {
    position: absolute;
    top: 64px;
    right: 0px;
    left: 19px;
  }
}
