﻿/* Google Font Import - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* scroll */
*::-webkit-scrollbar {
  width: 0px;
}

*::-webkit-scrollbar-track {
  background: #f1f1f1;
}

*::-webkit-scrollbar-thumb {
  background: #aaa;
}

*::-webkit-scrollbar-thumb:hover {
  background: #555;
}

a {
  text-decoration: none;
  color: #6a7381;
}

body {
  background-color: #f3f5f8;
}

input,
textarea,
select {
  font-size: 13px !important;
}

/* start slider banner in hr */
.home-hr {
  /* position: absolute;
  top: 0;
  top: 0; */
  left: 250px;
  height: auto;
  /* width: calc(100% - 250px); */
  /* background-color: var(--body-color); */
  transition: var(--tran-05);
  width: 90%;
  margin: 0 auto;
}

.home-hr-section {
  padding: 10px 70px;
}

.home-hr h1 {
  padding: 0 12px;
  font-size: 35px;
  font-weight: bold;
}

.home-hr .banner {
  background: linear-gradient(to right, #6084bf, #3b82f6);
  padding: 20px;
  border-radius: 15px;
  color: white;
  position: relative;
}

.home-hr .banner .stat {
  font-size: 1.5rem;
  font-weight: bold;
}

.banner {
  background-color: var(--company-brand-primary, #7b2cbf);
  color: white;
  border-radius: 15px;
  padding: 20px;
  margin: 10px;
  position: relative;
  /* height: 200px; */
}

.stat {
  font-size: 24px;
  font-weight: bold;
}

.slick-prev:before,
.slick-next:before {
  color: var(--company-brand-primary, #7b2cbf);
}

.swiper-pagination-bulle {
  background-color: #fff !important;
  color: #fff !important;
}

.swiper-pagination {
  position: relative;
  margin-top: 20px;
}

.brain-title {
  color: #5a189a;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.brain-card {
  background-color: #7a2cbff0;
  /* background: radial-gradient(115.49% 100% at 49.96% 100%, #a34bfc 0, #a34bfc 100%); */
  color: white;
  border-radius: 15px;
  padding: 20px;
  margin: 10px;
  position: relative;
  height: 200px !important;
}

.new-brain-card {
  /* background-color: #e2e8f0; */
  background: linear-gradient(141deg, #7a2cbf13 0%, #b6b6b6 51%, #b6b6b6 75%);
  color: #1a202c;
}

.brain-icon {
  position: absolute;
  right: 15px;
  bottom: 10px;
  width: 170px;
  height: 170px;
}

.stat {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 0;
}

.stat-label {
  font-size: 14px;
  opacity: 0.8;
}

.settings-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.slick-prev:before,
.slick-next:before {
  color: var(--company-brand-primary, #7b2cbf);
}

.create-new-btn {
  background-color: white;
  color: #1a202c;
  border: none;
  border-radius: 20px;
  padding: 5px 15px;
  text-decoration: none;
}

.modal-content {
  border-radius: 15px;
}

.color-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 5px 10px;
  display: inline-block;
  cursor: pointer;
}

/* section content */
.nav-tabs .nav-link {
  color: #000;
  border: none;
}

.nav-tabs .nav-link.active {
  font-weight: bold;
  border-bottom: 2px solid #000;
}

.file-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.file-icon {
  margin-right: 10px;
}

.come-back {
  background-color: #e6f2ff;
  color: #0066cc;
  text-align: center;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
}

.uploader {
  text-align: center;
  border: 1px solid royalblue;
  margin: 15px 0;
  padding: 30px 0;
  border-radius: 5px;
}

.uploader label {
  cursor: pointer;
}

/* data of brain */

.file-item {
  width: 100%;
  background-color: #fff;
  padding: 15px;
  border: none;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  cursor: pointer;
  transition: all .3s;
}

.file-item:hover {
  background-color: #ffffff3c;
}

.dropdown-item:hover {
  background-color: transparent !important;
}

@media (max-width: 900px) {
  .home-hr-section {
    padding: 30px 50px;
  }
}

@media (max-width: 500px) {
  .home-hr-section {
    padding: 30px 5px;
  }

  /* .brain-icon {
    display: none;
  } */
  .brain-icon {
    position: absolute;
    right: 0px;
    bottom: 20px;
    width: 90px;
    height: 90px;
  }

  .nav-item {
    font-size: 14px;
  }

  .nav-link {
    padding: 5px;
  }

  .container,
  .container-fluid,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    --bs-gutter-x: .1rem;
  }
}

/* this is a home page and it contact with js code in small screens  */
@media screen and (max-width: 868px) {
  .sidebar {
    left: -250px;
  }

  .sidebar.close {
    left: -88px;
  }

  .sidebar.show {
    left: 0;
  }

  .home-hr {
    left: 0;
    width: 100%;
  }

  .sidebar.close~.home-hr,
  .sidebar.show~.home-hr {
    left: 0;
    width: 100%;
  }
  .hr-section {
    width: 96%;
  }
}

/* end slider banner in hr */


/* page HR_jobs */
.Hr-header {
  padding: 20px 30px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.head-data {
  padding: 0 30px;
}

.head-data h1 {
  font-size: 18px;
  font-weight: bold;
}

.job-card {
  background-color: #fff;
  border: 1px solid #ececf2;
  box-shadow: 0 2px 10px rgba(26, 26, 46, 0.04);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.job-card:hover {
  border-color: #e0d8ef;
  box-shadow: 0 4px 14px rgba(26, 26, 46, 0.06);
}

.job-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0;
  line-height: 1.35;
}

.job-title a {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a2e;
  text-decoration: none;
  line-height: 1.3;
}

.job-title a:hover {
  text-decoration: underline;
  color: #771bc8;
}

.job-title .job-details {
  display: inline-block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: #6b6b80;
}

/* ==============================================
   NEBLUE PAGINATION (jobs list)
   ============================================== */
.neblue-pagination-wrapper {
  margin-top: 20px;
  margin-bottom: 4px;
  padding: 5px 0;
}

.neblue-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.neblue-pagination-info {
  margin: 0;
  font-size: 13px;
  color: #6a7381;
  font-weight: 500;
}

.neblue-pagination-info-from,
.neblue-pagination-info-to,
.neblue-pagination-info-total {
  font-weight: 600;
  color: #374151;
}

.neblue-pagination-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.neblue-pagination-item {
  display: inline-flex;
}

.neblue-pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 500;
  color: #4b5563;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.neblue-pagination-link:hover:not(.neblue-pagination-link--disabled):not(.neblue-pagination-link--active) {
  background-color: #4b5563;
  color: #fff;
}

.neblue-pagination-link--active {
  background: linear-gradient(135deg, #4b556380 0%, #4b5563a1 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px color-mix(in srgb, #4b5563 35%, transparent);
  pointer-events: none;
}

.neblue-pagination-link--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.neblue-pagination-link--prev,
.neblue-pagination-link--next {
  gap: 6px;
}

.neblue-pagination-item--disabled .neblue-pagination-link {
  cursor: not-allowed;
}



@media (max-width: 576px) {
  .neblue-pagination {
    align-items: baseline;
    text-align: center;
    padding: 10px;
    gap: 5px;
  }
  
  .neblue-pagination-list {
    justify-content: center;
  }
  .neblue-pagination-info {
    order: -1;
  }
  .job-title a {
    font-size: 16px;
  }
}

/* ==============================================
   FRONT FOOTER (guest facing pages)
   ============================================== */
.front-footer {
  border-top: 1px solid #eef0f4;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

.front-footer__inner {
  flex-wrap: wrap;
  gap: 4px;
}

.front-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4b5563;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 20px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.front-footer__link i {
  font-size: 13px;
  color: var(--company-brand-primary, #7b2cbf);
  transition: transform 0.2s ease;
}

.front-footer__link:hover {
  background-color: color-mix(in srgb, var(--company-brand-primary, #7b2cbf) 8%, white);
  color: var(--company-brand-primary, #7b2cbf);
  text-decoration: none;
}

.front-footer__link:hover i {
  transform: scale(1.1);
}

.front-footer__link + .front-footer__link {
  border-left: 1px solid #e5e7eb;
  margin-left: 4px;
  padding-left: 16px;
}

@media (max-width: 480px) {
  .front-footer__link {
    font-size: 12.5px;
  }
  .front-footer__link + .front-footer__link {
    padding-left: 10px;
  }
}

.job-metrics {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-top: 20px;
}

.job-metrics div {
  text-align: center;
}

.status-btn {
  background-color: #7a36b6f0;
  color: white;
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
}

.status-btn:hover {
  background-color: #fff;
  color: #7a36b6;
  border: 1px solid #7a36b6;
}

.publish-btn {
  background-color: #7a36b6;
  color: #fff;
  padding: 7px 15px;
  border: none;
  border-radius: 5px;
  font-size: 12px;
  cursor: pointer;
}

.candidate-btn {
  color: #6c757d;
  padding: 7px 15px;
  border: 1px solid rgb(128, 128, 128);
  background-color: transparent;
  border-radius: 5px;
  font-size: 12px;
}
.candidate-btn:hover {
  background-color: #6c757d;
  color: #fff;
transition: all 0.3s ease;
}

.job-active-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: center;
  width: 42px;
  height: 24px;
  margin-top: 0;
  margin-bottom: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.job-active-switch .job-active-toggle {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}

.job-active-switch .job-active-switch__slider {
  display: block;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #d4d0db;
  position: relative;
  transition: background 0.18s ease;
}

.job-active-switch .job-active-switch__slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s ease;
}

.job-active-switch .job-active-toggle:checked + .job-active-switch__slider {
  background: #8238c3;
}

.job-active-switch .job-active-toggle:checked + .job-active-switch__slider::after {
  transform: translateX(18px);
}

.job-active-switch .job-active-toggle:focus-visible + .job-active-switch__slider {
  outline: 2px solid #8238c3;
  outline-offset: 2px;
}

.job-active-switch.job-active-switch--disabled,
.job-active-switch .job-active-toggle:disabled + .job-active-switch__slider {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.job-card .actions-job-buttons {
  align-items: center !important;
  column-gap: 0.15rem;
  row-gap: 0.2rem;
}

.job-card .actions-job-buttons > .m-1 {
  margin: 0.12rem !important;
}



.job-card .actions-job-buttons .dropdown .btn-link {
  padding: 2px 6px;
  line-height: 1;
}

.job-card .actions-job-buttons .job-active-switch {
  width: 40px;
  height: 22px;
}

.job-card .actions-job-buttons .job-active-switch .job-active-switch__slider {
  width: 40px;
  height: 22px;
  background: #d8d4e0;
}

.job-card .actions-job-buttons .job-active-switch .job-active-switch__slider::after {
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
}

.job-card .actions-job-buttons .job-active-switch .job-active-toggle:checked + .job-active-switch__slider {
  background:  #7a36b6;
}

.job-card .actions-job-buttons .job-active-switch .job-active-toggle:checked + .job-active-switch__slider::after {
  transform: translateX(18px);
}
.talent-pool-section {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.talent-pool-title {
  font-size: 17px;
  font-weight: bold;
  text-decoration: none;
  color: #000;
}

.talent-pool-info span {
  font-size: 13px !important;
  font-weight: 100 !important;
  padding: 0 15px !important;
}

.talent-pool-info {
  font-size: 13px;
  color: #6c757d;
}

.section-title {
  font-size: 13px;
  color: #6c757d;
  font-weight: bold;
  margin-bottom: 10px;
}

.times-data p {
  font-size: 13px;
  color: #6a7381;
}

.times-data p a {
  color: #7a13d4f0;
}

.link-upload {
  color: #7a13d4f0;

}

.dropdown-item.active,
.dropdown-item:active {
  background-color: #FFF8E1;
  color: black;
}

.dropdown-menu-jobs {
  display: flex;
  justify-content: end;
  flex-wrap: wrap;
}

/* Guest invite modal (jobs list) */
.guest-invite-modal .modal-dialog {
  max-width: 440px;
  width: calc(100% - 1.5rem);
  margin: 1rem auto;
}

.guest-invite-modal .guest-invite-modal__content {
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.16);
}

.guest-invite-modal .guest-invite-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem 0.8rem;
  border-bottom: 1px solid #f0f0f4;
  background: #fff;
}

.guest-invite-modal .guest-invite-modal__title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.guest-invite-modal .guest-invite-modal__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #7a36b6;
  background: #f5effc;
  font-size: 0.85rem;
}

.guest-invite-modal .guest-invite-modal__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.25;
}

.guest-invite-modal .guest-invite-modal__subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  font-weight: 400;
  color: #6b7280;
  line-height: 1.35;
}

.guest-invite-modal .guest-invite-modal__close {
  margin: 0;
  padding: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  opacity: 1;
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236b7280'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/0.7rem auto no-repeat;
  box-shadow: none;
}

.guest-invite-modal .guest-invite-modal__close:hover {
  background-color: #f9fafb;
}

.guest-invite-modal .guest-invite-modal__body {
  padding: 0.85rem 0.8rem 0.7rem;
}

.guest-invite-modal .guest-invite-modal__hint {
  margin: 0 0 0.9rem;
  font-size: 0.76rem;
  font-weight: 400;
  color: #6b7280;
  line-height: 1.5;
}

.guest-invite-modal .guest-invite-modal__field {
  margin-bottom: 0.85rem;
}

.guest-invite-modal .guest-invite-modal__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #374151;
}

.guest-invite-modal .guest-invite-modal__input {
  min-height: 2.45rem;
  border-radius: 10px;
  border-color: #e5e7eb;
  font-size: 0.86rem;
  color: #111827;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.guest-invite-modal .guest-invite-modal__input:focus {
  border-color: #7a36b6;
  box-shadow: 0 0 0 3px rgba(122, 54, 182, 0.14);
}

.guest-invite-modal .guest-invite-modal__error {
  margin: 0 0 0.35rem;
  font-size: 0.74rem;
  color: #dc2626;
}

.guest-invite-modal .guest-invite-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.7rem 0.8rem;
  border-top: 1px solid #f0f0f4;
  background: #fafafa;
}

.guest-invite-modal .guest-invite-modal__btn {
  appearance: none;
  min-height: 2rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  cursor: pointer;
  line-height: 1.2;
}

.guest-invite-modal .guest-invite-modal__btn--ghost {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #4b5563;
}

.guest-invite-modal .guest-invite-modal__btn--ghost:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #111827;
}

.guest-invite-modal .guest-invite-modal__btn--primary {
  border: none;
  background: #7a36b6;
  color: #fff;
  box-shadow: 0 6px 16px rgba(122, 54, 182, 0.25);
}

.guest-invite-modal .guest-invite-modal__btn--primary:hover,
.guest-invite-modal .guest-invite-modal__btn--primary:focus {
  background: #6c2eb8;
  color: #fff;
}

.guest-invite-modal .guest-invite-modal__btn--primary:disabled {
  opacity: 0.7;
  box-shadow: none;
  cursor: not-allowed;
}

@media (max-width: 575.98px) {
  .guest-invite-modal .modal-dialog {
    width: calc(100% - 1rem);
  }

  .guest-invite-modal .guest-invite-modal__header,
  .guest-invite-modal .guest-invite-modal__body,
  .guest-invite-modal .guest-invite-modal__footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .guest-invite-modal .guest-invite-modal__footer {
    justify-content: stretch;
  }

  .guest-invite-modal .guest-invite-modal__btn {
    flex: 1;
    text-align: center;
  }
}

.jobs-filter-bar__main {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.jobs-filter-bar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.jobs-filter-bar__left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  min-width: 0;
}

.jobs-filter-bar__count {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1a1a2e;
}

.job-card.is-filter-hidden {
  display: none !important;
}

.cards-jobs__empty-filter {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
  border: 1px dashed #e2e8f0;
  border-radius: 12px;
  background: #fafafa;
  color: #6b6b80;
  font-size: 0.88rem;
}

.cards-jobs__empty-filter.is-visible {
  display: block;
}

.jobs-filter-field {
  position: relative;
}

.jobs-filter-field__icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.72rem;
  color: #9a9ab0;
  pointer-events: none;
}

.jobs-filter-field__input {
  padding-left: 2rem !important;
}

.agency-offcanvas .agency-filter-input,
.agency-offcanvas .jobs-filter-select {
  width: 100%;
  min-height: 2.15rem;
  padding: 0.35rem 0.7rem;
  border: 1.5px solid #dbe3ef;
  border-radius: 6px;
  background: #fff;
  color: #1a1a2e;
  font-size: 0.78rem;
  line-height: 1.25;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.agency-offcanvas .agency-filter-input::placeholder {
  color: #8b93a7;
  font-size: 0.78rem;
}

.jobs-filter-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b6b80' d='M2.2 4.2L6 8l3.8-3.8L11 5.4 6 10.4 1 5.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 10px;
  padding-right: 1.75rem !important;
  cursor: pointer;
}

.jobs-filter-select:focus,
.jobs-filter-field__input:focus,
.agency-offcanvas .agency-filter-input:focus {
  border-color: #5b9bd5;
  box-shadow: 0 0 0 2px rgba(91, 155, 213, 0.16);
  background-color: #fff;
  outline: none;
}

#jobsFilterCustomDates[hidden] {
  display: none !important;
}

#jobsFilterCustomDates {
  display: grid;
  /* grid-template-columns: 1fr 1fr;
  gap: 0.4rem; */
  margin-top: 0.35rem !important;
}

.jobs-filter-option-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.jobs-filter-option-chip {
  position: relative;
  cursor: pointer;
  margin: 0;
}

.jobs-filter-option-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.jobs-filter-option-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.55rem;
  padding: 0.18rem 0.55rem;
  border: 1px solid #e4e4e8;
  border-radius: 999px;
  background: #fafafa;
  color: #4b4b60;
  font-size: 0.68rem;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.jobs-filter-option-chip:hover span {
  border-color: #d4c0ef;
  background: #f8f4fc;
}

.jobs-filter-option-chip input:checked + span {
  background: #771bc8;
  border-color: #771bc8;
  color: #fff;
}

.agency-offcanvas .agency-filter-group__label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #1a1a2e;
  text-transform: none;
  letter-spacing: 0;
}

#jobsFilterOffcanvas .offcanvas-header {
  padding: 0.7rem 0.75rem;
}

#jobsFilterOffcanvas .offcanvas-title {
  font-size: 0.84rem;
}

#jobsFilterOffcanvas .offcanvas-body {
  padding: 0.75rem;
  gap: 0.7rem;
}

#jobsFilterOffcanvas .agency-offcanvas-footer {
  padding: 0.65rem 0.75rem;
  gap: 0.45rem;
}

#jobsFilterOffcanvas .agency-btn-apply,
#jobsFilterOffcanvas .agency-btn-reset {
  font-size: 0.75rem;
  padding: 0.4rem 0.7rem;
}

#jobsFilterOffcanvas .jobs-filter-field__icon {
  font-size: 0.65rem;
  left: 0.65rem;
}

#jobsFilterOffcanvas .jobs-filter-field__input {
  padding-left: 1.75rem !important;
}

#jobsFilterOffcanvas .agency-filter-date-label {
  font-size: 0.65rem;
  margin-bottom: 0.15rem;
}

.jobs-applied-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-top: 0.15rem;
}

.jobs-applied-tags[hidden] {
  display: none !important;
}

.jobs-applied-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.jobs-applied-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  max-width: 100%;
  padding: 0.18rem 0.28rem 0.18rem 0.52rem;
  border: 1px solid #d9dee8;
  border-radius: 999px;
  background: #fff;
  color: #445066;
  font-size: 0.64rem;
  font-weight: 500;
  line-height: 1.2;
}

.jobs-applied-tag__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jobs-applied-tag__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.95rem;
  height: 0.95rem;
  border: none;
  border-radius: 50%;
  background: #eef1f6;
  color: #5b6472;
  font-size: 0.58rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.jobs-applied-tag__remove i {
  font-size: 0.52rem;
  line-height: 1;
}

.jobs-applied-tag__remove:hover {
  background: #e4e8ef;
  color: #1a1a2e;
}

.jobs-applied-tags__clear {
  border: none;
  background: transparent;
  color: #771bc8;
  font-size: 0.66rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.1rem 0.15rem;
}

.jobs-applied-tags__clear:hover {
  text-decoration: underline;
}

.dropdown-menu {
  width: 90%;
  margin: 0 auto;
}

.dropdown-menu a {
  font-size: 14px;
  color: gray;
}

.dropdown-menu .dropdown-item {
  font-size: 12px !important;
}

.vacancy-image {
  display: flex;
  justify-content: center;
}

.vacancy-image img {
  height: auto;
  width: 400px;
}

/* media queries */
@media (max-width: 768px) {
  .job-metrics {
    gap: 20px;
    justify-content: flex-start;
  }

  .dropdown-menu {
    max-width: 100%;
  }

  .dropdown-toggle {
    display: block;
    text-align: left;
    padding: 10px;
    font-size: 11px;
  }

  .dropdown-item {
    padding: 5px 10px;
    font-size: 11px !important;
  }

  .dropdown-menu .dropdown-item {
    font-size: 11px !important;
  }

  .vacancy-image img {
    width: 250px;
  }
}


/* page uploaded cv */
.main-upload {
  width: 60%;
  margin: 0 auto;
}

.upload {
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-cv h1 {
  font-size: 25px;
  font-weight: 500;
  text-align: center;
}

.wrapper-file {
  width: 100%;
  background: #fff;
  border-radius: 5px;
  padding: 10px;
}

.wrapper-file header {
  color: #7a13d4f0;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
}

.wrapper-file .form {
  height: 150px;
  display: flex;
  cursor: pointer;
  margin: 3px 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: 5px;
  border: 1px dashed #7a36b6f0;
}


.form :where(i, p) {
  color: #7a13d4f0;
}

.form i {
  font-size: 30px;
}

.form p {
  margin-top: 15px;
  font-size: 16px;
}

section .row-progress {
  margin: 20px 0;
  background: #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  list-style: none;
  padding: 7px 10px;
  border-radius: 5px;
  display: flex;
  align-items: self-start;
  justify-content: space-between;
}

section .row-progress i {
  font-size: 20px;
}

section .details span {
  font-size: 14px;
}

.progress-area .row-progress .progress-content {
  width: 100%;
  margin-left: 15px;
}

.progress-area .details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 4px;
  justify-content: space-between;
}

.progress-area .progress-content .progress-bar {
  height: 6px;
  width: 100%;
  margin-bottom: 4px;
  background: #fff;
  border-radius: 30px;
}

.progress-content .progress-bar .progress-part {
  height: 100%;
  width: 0%;
  background: #7a13d4f0;
  border-radius: inherit;
}

.uploaded-area {
  max-height: 180px;
  overflow-y: scroll;
}

.uploaded-area {
  max-height: 232px;
  overflow-y: scroll;
}

.uploaded-area::-webkit-scrollbar {
  width: 0;
}

.uploaded-area.onprogress {
  max-height: 150px;
}

.uploaded-area::-webkit-scrollbar {
  width: 0px;
}

.uploaded-area .row-progress .progress-content {
  display: flex;
  align-items: center;
}

.uploaded-area .row-progress .details {
  display: flex;
  margin-left: 15px;
  flex-direction: column;
}

.uploaded-area .row-progress .details .size {
  color: #404040;
  font-size: 11px;
}

.uploaded-area i.fa-check {
  font-size: 16px;
}


.module-section {
  padding: 15px 25px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  border-radius: 10px;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
}

.module-content p {
  font-weight: bold;
  font-size: 18px;
}

.parent-tags .wrapper-tags {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  border: 1px solid #dee2e6;
  padding: 4px 10px;
  border-radius: 10px;
  margin: 5px 8px;
}

.input-tag {
  border: none;
  outline: none;
  background-color: transparent;
  padding: 4px 0;
  flex: 1;

}

.item-tag {
  display: flex;
  align-items: center;
  column-gap: 10px;
  width: max-content;
  box-shadow: 0 2px 10px 0 rgb(0, 0, 0, 8%);
  padding: 8px;
  background-color: #7a13d4f0;
  color: #fff;
  border-radius: 25px;
  font-size: 15px;
  cursor: default;
}

.btn-rm-tag {
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  display: grid;
  place-content: center;
  font-size: 11px;
  cursor: pointer;
}

.tags-length {
  display: block;
  text-align: right;
  padding: 10px 5px;
  font-size: 14px;
}

.actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.actions a i {
  font-size: 16px;
}

@media screen and (max-width: 1000px) {
  .main-upload {
    width: 90%;
    margin: 0 auto;
  }

  .module-section {
    padding: 15px;
  }

  .wrapper-file {
    border-radius: 5px;
    padding: 10px;
  }

  .head-data {
    padding: 0 15px;
  }

  .Hr-header {
    padding: 15px 10px;
  }
}

@media screen and (max-width: 500px) {
  .main-upload {
    width: 96%;
    margin: 0 auto;
  }

  section .row-progress {
    padding: 15px 7px;
    margin: 10px 0;
  }

  .head-data {
    padding: 26px 5px;
  }

  .Hr-header {
    padding: 15px 5px;
  }

  .upload-cv h1 {
    font-size: 18px;
    font-weight: 600;
  }

  .module-section {
    padding: 8px;
  }
}

/* create new job */

.complete-info-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
}

.complete-info-link .data-link {
  padding: 5px 10px;
  position: relative;
  transition: transform 0.3s ease;
}

.complete-info-link .data-link:hover {
  transform: translateY(-2px);
}

.complete-info-link .data-link a {
  font-weight: 700;
  font-size: 16px;
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.complete-info-link .data-link:hover a {
  color: #7a36b6;
}

.complete-info-link .data-link small {
  font-size: 12px;
  line-height: 1.4;
  color: #666;
}

/* Content wrapper styles for hover effects */
.content-wrapper {
  background-color: #f8f9fa;
  padding: 15px;
  height: auto;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.content-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(122, 54, 182, 0.1), transparent);
  transition: left 0.5s ease;
}

.content-wrapper:hover::before {
  left: 100%;
}

.content-wrapper:hover {
  background-color: #fff;
  border-color: #7a36b6;
  box-shadow: 0 8px 25px rgba(122, 54, 182, 0.15);
  transform: translateY(-3px);
}

.content-wrapper.active {
  background-color: #fff;
  border-color: #7a36b6;
  box-shadow: 0 8px 25px rgba(122, 54, 182, 0.15);
  transform: translateY(-3px);
}

.content-wrapper small {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  margin-top: 8px;
  transform: translateY(-10px);
}

/* Active state - always show */
.content-wrapper small.active {
  opacity: 1;
  max-height: 100px;
  transform: translateY(0);
}

/* Hover state - show for all small elements */
.data-link:hover .content-wrapper small {
  opacity: 1;
  max-height: 100px;
  transform: translateY(0);
}

/* Additional styling for better UX */
.data-link {
  cursor: pointer;
}

.content-wrapper a {
  position: relative;
  z-index: 2;
}

/* Focus states for accessibility */
.content-wrapper:focus-within {
  outline: 2px solid #7a36b6;
  outline-offset: 2px;
}

/* Animation for step completion indicator */
.content-wrapper.completed::after {
  content: '?';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  background-color: #28a745;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.job-details-data {
  background-color: #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  padding: 10px 20px;
  border-radius: 7px;
}

.job-details-data p {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px
}

.btn-generate,
.btn-regenerate {
  background-color: #8736dc;
  color: #fff;
  padding: 7px 15px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  text-decoration: none;
}

.btn-generate.disabled,
.btn-regenerate.disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}

.btn-regenerate .btn-regenerate-count {
  font-size: 12px;
  opacity: 0.9;
}

.btn-generate-post {
  background-color: #fff;
  color: #8736dc;
  padding: 7px 15px;
  border: 1px solid #8736dc;
  border-radius: 5px;
  font-size: 14px;
  text-decoration: none;
}

.btn-generate-post:hover {
  background-color: #f3ebfc;
  color: #8736dc;
}

.btn-clear {
  font-size: 14px;
  /* display: none; */
}

.job-description-editor-shell .job-desc-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.55rem !important;
}

.job-description-editor-shell .job-desc-actions .btn-clear,
.job-description-editor-shell .job-desc-actions .btn-generate,
.job-description-editor-shell .job-desc-actions .btn-regenerate,
.job-description-editor-shell .job-desc-actions .btn-generate-post {
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  white-space: nowrap;
  line-height: 1.2;
  text-decoration: none;
}

@media (max-width: 767.98px) {
  .job-description-editor-shell .job-desc-actions {
    flex-wrap: nowrap;
    justify-content: flex-end;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.3rem;
  }

  .job-description-editor-shell .job-desc-actions::-webkit-scrollbar {
    display: none;
  }

  .job-description-editor-shell .job-desc-actions .btn-clear,
  .job-description-editor-shell .job-desc-actions .btn-generate,
  .job-description-editor-shell .job-desc-actions .btn-regenerate,
  .job-description-editor-shell .job-desc-actions .btn-generate-post {
    font-size: 11px;
    padding: 5px 8px;
    border-radius: 5px;
    flex: 0 0 auto;
  }

  .job-description-editor-shell .job-desc-actions .btn-clear {
    padding: 5px 7px;
  }

  .job-description-editor-shell .job-desc-actions i {
    font-size: 10px;
  }
}

@media (max-width: 575.98px) {
  .job-description-editor-shell .job-desc-actions {
    justify-content: flex-start;
    gap: 0.25rem;
  }

  .job-description-editor-shell .job-desc-actions .btn-clear,
  .job-description-editor-shell .job-desc-actions .btn-generate,
  .job-description-editor-shell .job-desc-actions .btn-regenerate,
  .job-description-editor-shell .job-desc-actions .btn-generate-post {
    font-size: 10px;
    padding: 5px 7px;
  }

  .job-description-editor-shell .job-desc-actions i {
    display: none;
  }
}

.job-toggles-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1.15rem;
  margin: 1rem 0 0.45rem;
}

.job-toggles-row .job-option-row {
  flex-wrap: nowrap;
  margin: 0;
  flex: 0 0 auto;
}

.job-toggles-row .form-check-label {
  font-size: 0.86rem;
  font-weight: 500;
  color: #1a1625;
  white-space: nowrap;
  cursor: pointer;
}

.job-toggles-row .form-check-input:checked {
  background-color: #7a2cbf;
  border-color: #7a2cbf;
}

@media (max-width: 767.98px) {
  .job-toggles-row {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.7rem;
    padding-bottom: 0.15rem;
  }

  .job-toggles-row::-webkit-scrollbar {
    display: none;
  }

  .job-toggles-row .form-check-label {
    font-size: 0.78rem;
  }

  .job-toggles-row .form-check {
    padding-left: 2em;
  }

  .job-toggles-row .form-check-input {
    width: 1.85em;
    height: 1em;
  }
}

@media (max-width: 575.98px) {
  .job-toggles-row {
    gap: 0.55rem;
  }

  .job-toggles-row .form-check-label {
    font-size: 0.74rem;
  }
}

.job-salary-fields {
  margin: 0.55rem 0 0.85rem;
  padding: 0.85rem 0.95rem 1rem;
  border: 1px solid #e8e8ec;
  border-radius: 12px;
  background: linear-gradient(180deg, #fcfbff 0%, #fff 48%);
}

.job-salary-fields__title {
  margin: 0 0 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1a1625;
}

.job-salary-fields__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 0.65rem 0.75rem;
  align-items: end;
}

.job-salary-fields label {
  display: block;
  margin-bottom: 0.28rem;
  font-size: 0.74rem;
  font-weight: 500;
  color: #64748b;
}

.job-salary-fields .form-control,
.job-salary-fields .form-select {
  min-height: 2.35rem;
  border-radius: 8px;
  border-color: #e2e8f0;
  font-size: 0.85rem;
  box-shadow: none;
}

.job-salary-fields .form-control:focus,
.job-salary-fields .form-select:focus {
  border-color: rgba(122, 44, 191, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(122, 44, 191, 0.12);
}

@media (max-width: 767.98px) {
  .job-salary-fields {
    padding: 0.75rem 0.8rem 0.85rem;
  }

  .job-salary-fields__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .job-salary-fields__currency {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575.98px) {
  .job-salary-fields__grid {
    grid-template-columns: 1fr;
  }

  .job-salary-fields__currency {
    grid-column: auto;
  }
}

label {
  font-size: 14px;
}

.keyword-tag input {
  color: #000;

}

.keyword-tag {
  background-color: #02a494;
  color: #fff;
  border-radius: 4px;
  padding: 2px 8px;
  margin: 2px 4px 2px 0;
  display: inline-flex;
  align-items: center;
}

.keyword-tag .remove-keyword {
  margin-left: 5px;
  cursor: pointer;
  font-weight: bold;
}

#keyword-container {
  padding: 0.2rem;
  cursor: text;
}

#keyword-input {
  margin: 4px 8px;
}

/* application form */
.container-Application-form .card {
  border-radius: 10px;
  border: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-section,
.form-section-sub {
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.form-section:last-child {
  border-bottom: none;
}

.toggle-btn {
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s;
}

.toggle-btn.active {
  background-color: #b468f7f0;
  color: #fff;
}

.toggle-btn.inactive {
  background-color: #e9ecef;
  color: #495057dc;
}

.add-question {
  color: #0d6efd;
  cursor: pointer;
}

/* team-member */
.popup-notice {
  padding: 3px 5px;
  background-color: #e6fef3e1;
  border-radius: 5px;
}

.popup-notice i {
  padding: 0 5px;
}

.popup-notice small {
  font-size: 13px;
}

.fa-exclamation {
  background-color: #6c757d58;
  color: #fff;
  padding: 10px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  cursor: pointer;
}

.table-team {
  width: 100%;
  border-collapse: collapse;
}

.table-team tbody tr td {
  border: none !important;
}

.table-team tbody tr td small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.rounded-circle {
  flex-shrink: 0;
  text-align: center;
}

.table-team tbody tr {
  border-bottom: 1px solid #ddd;
}

.workflow-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 20px;
}

.workflow-steps a {
  text-decoration: none;
  color: #6a7381;
  padding: 20px 10px;
  border-radius: 10px;
}

.workflow-steps a.active {
  background-color: #88888818;
}

.workflow-steps a:hover {
  background-color: #88888818;
}

.workflow-step {
  text-align: center;
  flex: 1 1 calc(14.28% - 10px);
  min-width: 80px;
  margin-bottom: 10px;
}

.workflow-step i {
  font-size: 18px;
  color: #888;
}

.evaluation-options {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.evaluation-card {
  flex: 1 1 calc(33.33% - 20px);
  min-width: 250px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.evaluation-card img {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
}

.evaluation-card h5 {
  margin: 10px 0;
  font-size: 15px;
  font-weight: 600;
}

.evaluation-card p {
  margin-top: 15px;
  font-size: 12px;
}

.btn-add {
  margin-top: 10px;
  background-color: transparent;
  color: #00756a;
  padding: 7px 15px;
  border: 1px solid #00756a;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 400;
  transition: all .4s;
}

.btn-add:hover {
  background-color: #00756a;
  color: #fff;
}

.workflow-steps a {
  text-decoration: none;
  color: inherit;
}

.workflow-steps a.disabled {
  pointer-events: none;
  cursor: default;
}

.workflow-steps a.disabled .workflow-step {
  opacity: 0.5;
}

.workflow-steps a.disabled i {
  color: #ccc;
}

/* media queries */
@media screen and (max-width: 1000px) {
  .complete-info-link .data-link small {
    font-size: 12px;
  }

  .content-wrapper {
    padding: 12px;
  }

  /* Reduce animation complexity on mobile for better performance */
  .content-wrapper::before {
    display: none;
  }

  .content-wrapper:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(122, 54, 182, 0.1);
  }
}

@media screen and (max-width: 768px) {
  .complete-info-link {
    gap: 10px;
    margin-top: 20px;
  }

  .complete-info-link .data-link {
    padding: 3px 8px;
  }

  .content-wrapper {
    padding: 10px;
  }

  /* On mobile, always show the description text for better UX */
  .content-wrapper small {
    opacity: 1;
    max-height: 100px;
    transform: translateY(0);
    margin-top: 5px;
  }

  /* Disable hover effects on touch devices */
  @media (hover: none) {
    .data-link:hover .content-wrapper small {
      opacity: 1;
      max-height: 100px;
      transform: translateY(0);
    }

    .content-wrapper:hover {
      transform: none;
      background-color: #f8f9fa;
      border-color: transparent;
      box-shadow: none;
    }

    .complete-info-link .data-link:hover {
      transform: none;
    }
  }
}

@media screen and (max-width: 770px) {
  .card-title {
    font-size: 17px;
    font-weight: bold;
  }

  /* table */
  .table-team tbody tr {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .table-team tbody tr td {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .table-team tbody tr td:nth-child(1),
  .table-team tbody tr td:nth-child(5) {
    align-self: center;
  }

  .table-team tbody tr td:nth-child(4),
  .table-team tbody tr td:nth-child(5) {
    text-align: left;
  }

  .workflow-step {
    flex: 1 1 calc(25% - 10px);
  }

  .evaluation-card {
    flex: 1 1 100%;
  }

  .workflow-steps a {
    padding: 15px 0px;
  }
}

@media (max-width: 576px) {
  .workflow-step {
    flex: 1 1 calc(33.33% - 10px);
  }

  .status-btn {
    padding: 7px 10px;
    font-size: 12px;
  }

  .candidate-btn {
    color: #6c757d;
    padding: 7px 10px;
  }

  .team-members {
    margin-top: 15px;
  }
}

/* sidebar in module hr  */
@media screen and (max-width: 868px) {
  .sidebar {
    position: fixed;
    z-index: 1000;
    transition: left 0.3s ease;
  }

  .sidebar header .toggle {
    top: 10px;
    transform: translateY(-50%);
    display: flex;
    background-color: #fff;
    color: #000;
    position: fixed;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    padding: 8px;
    transition: right 0.3s ease;
  }

  /* When sidebar is shown, toggle button is on the right inside sidebar */
  .sidebar.show header .toggle {
    right: 10px;
    top: 20px;
    width: 30px;
    height: 30px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* When sidebar is hidden, toggle button appears on the right edge of screen */
  .sidebar:not(.show) header .toggle {
    right: 10px;
    top: 24px;
    width: 30px;
    height: 30px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* page choose Assessment */
.test-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}

.test-card:hover {
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.test-card img {
  width: 50px;
  height: auto;
}

.test-info {
  flex: 1;
  min-width: 200px;
  padding-left: 15px;
}

.test-info h6 {
  font-weight: bold;
  margin: 0;
  font-size: 1.1rem;
}

.test-info p {
  margin: 5px 0 0;
  color: #6c757d;
  font-size: 0.9rem;
}

/* breadcrumb */
.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 10px 0;
  border-radius: 0.25rem;
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li+li::before {
  content: "/";
  padding: 0 0.3rem;
  color: #6c757d;
  font-size: 14px;
}

.breadcrumb li a {
  color: #b468f7f0;
  text-decoration: none;
  transition: color 0.2s ease-in;
  font-size: 14px;
}

.breadcrumb li a:hover {
  color: #7f3dbaf0;
}

.breadcrumb li.active {
  color: #6c757d;
  pointer-events: none;
}

@media (max-width: 768px) {
  .test-card {
    flex-direction: column;
    text-align: center;
  }

  .test-info {
    padding-left: 0;
    margin-top: 10px;
  }
  .breadcrumb {
    padding: 7px 0;
    margin: 0;
  }
}

/* apply job */

.job-header {
  background-color: rgba(226, 226, 226, 0.341);
  color: white;
  padding: 3rem 0;
  margin-bottom: 2rem;
  /* text-align: center; */
}

.job-header h1 {
  font-size: 25px;
  color: #000;
  font-weight: 700;
  margin-top: 1rem;
}

.job-header p {
  font-size: 14px;
  color: #000;
  margin-bottom: 1.5rem;
}

.logo-container {
  margin-bottom: 1.5rem;
}

.logo-container img {
  max-width: 180px;
  height: auto;
  transition: transform 0.3s ease;
}

.logo-container img:hover {
  transform: scale(1.05);
}

.section-title {
  color: #000;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--company-brand-primary, #7b2cbf);
  padding-bottom: 0.5rem;
  font-size: 20px;
}

.list-group-item i,
.list-unstyled li i {
  color: var(--company-brand-primary, #7b2cbf);
}

.list-group-item {
  border-left: 3px solid var(--company-brand-primary, #7b2cbf);
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.list-group-item:hover {
  background-color: #fff;
  transform: translateX(5px);
}

.card {
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-apply {
  background-color: var(--company-brand-primary, #7b2cbf);
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 7px;
  transition: all 0.5s;
  font-size: 16px;
  transition: all 0.3s;
}

.btn-apply:hover {
  background-color: color-mix(in srgb, var(--company-brand-primary, #7b2cbf) 82%, black);
  color: #fff;
}

.skill-badge {
  background-color: var(--company-brand-primary, #7b2cbf);
  color: white;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

#companyInfo {
  display: none;
  margin-top: 1rem;
}

.head-apply {
  padding-top: 20px;
  text-align: center;
  margin-bottom: 20px;
  background-color: #fff;
  width: 100%;
}

.head-apply h1 {
  font-size: 25px;
  font-weight: 600;
  color: var(--company-brand-primary, #7b2cbf);
  padding-bottom: 15px;
}

.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.tab {
  padding: 10px 20px;
  cursor: pointer;
}

.tab.active {
  border-bottom: 2px solid #983ce9;
}

.content-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.content-container .context-text {
  margin-bottom: 30px;
}

.content-container .context-text ul {
  padding-left: 20px;
}

.apply-job {
  display: block;
  width: 100%;
  padding: 10px;
  background-color: var(--company-brand-primary, #7b2cbf);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
  text-align: center;
  border-radius: 7px;
  transition: all .3s;
}

.apply-job:hover {
  background-color: #a14deb;
}

@media screen and (max-width: 768px) {
  .job-header {
    padding: 2rem 1rem;
  }

  .job-header h1 {
    font-size: 22px;
  }

  .job-header p {
    font-size: 14px;
  }

  .logo-container img {
    max-width: 140px;
  }
}

/* Page Profile Person */
.person-head-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 10px 0;
}

.person-head-links .person-link a {
  font-size: 14px;
  color: #6a7381;
  padding: 7px 15px;
}

.person-head-links .person-link .active {
  background-color: var(--company-brand-primary, #7b2cbf);
  color: #fff;
  border-radius: 7px;
}

.profile-card,
.display-data {
  background-color: #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  padding: 15px 10px;
  border-radius: 5px;
  margin-bottom: 10px;
}

.profile-card .person-info h2 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 7px;
}

.profile-card .person-info .location,
.profile-card .person-info .phone {
  margin: 5px;
  padding: 5px 0;
  background-color: #d2d2d265;
  border-radius: 20px;
  width: 180px;
  text-align: center;
}

.matches-job details {
  background-color: #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  padding: 15px 10px;
  border-radius: 5px;
}

.candidate-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
  background-color: #ffffe085;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-bar {
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 5px 15px;
}

.tag {
  background-color: #e0e0e0;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 0.8em;
}

.resume-info .row h2 {
  font-size: 16px;
  font-weight: bold;
}

.resume-info .data {
  border-bottom: 1px solid #ddddddda;
  margin: 10px 0;
}

.resume-info .data .keyword {
  padding: 5px 7px;
  background-color: #dddddd96;
  border-radius: 15px;
}

.embed-cv h2 {
  font-size: 18px;
  font-weight: bold;
}

.embed-cv embed {
  width: 100%;
  height: 750px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  margin: 10px 0;
  transition: box-shadow 0.3s;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);

}

.contact-section .section-title {
  font-size: 16px;
}

.social-icons .social-icon {
  border-radius: 5px;
  font-size: 22px;
}

.social-icons .social-icon .fa-linkedin {
  color: #0077b5;
}

.social-icons .social-icon .fa-github {
  color: #333;
}

@media screen and (max-width: 768px) {
  .embed-cv embed {
    height: 450px;
  }
}

@media screen and (max-width: 450px) {
  .embed-cv embed {
    height: 300px;
  }
}

/* Company Profile */

/* Header Banner (Parent) */
.company_profile_banner {
  background-color: var(--company-brand-primary, #7b2cbf);
  background-image: linear-gradient(135deg, var(--company-brand-primary, #7b2cbf) 0%, color-mix(in srgb, var(--company-brand-primary, #7b2cbf) 75%, black) 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 200px;
  position: relative;
  width: 100%;
}

/* Subtle blend between the banner and the white info card below it */
.company_profile_banner::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 70px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.16) 100%);
  pointer-events: none;
}

/* Main Container (Parent) */
.company_profile_main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* Company Info Section (Parent) */
.company_profile_info-section {
  background-color: #fff;
  padding: 40px 20px 30px;
  margin-top: -60px;
  position: relative;
  z-index: 2;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* Company Info Wrapper (Child of info-section) */
.company_profile_info-section .company_profile_info-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 10px;
}

/* Company Logo Wrapper (Child of info-wrapper) */
.company_profile_logo {
  position: relative;
  flex-shrink: 0;
}

/* Logo Image (Child of logo) */
.company_profile_logo__img {
  display: block;
  width: 108px;
  height: 108px;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid var(--company-brand-primary, #7b2cbf);
  background-color: #fff;
  box-shadow: 0 3px 10px rgba(123, 44, 191, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}



/* Logo Placeholder (initials avatar fallback, Child of logo) */
.company_profile_logo__placeholder {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 32px;
  font-weight: bold;
  background: linear-gradient(135deg, var(--company-brand-primary, #7b2cbf) 0%, color-mix(in srgb, var(--company-brand-primary, #7b2cbf) 70%, black) 100%);
  border: 4px solid #fff;
  box-shadow: 0 3px 10px rgba(123, 44, 191, 0.18);
}

/* Company Details (Child of info-wrapper) */
.company_profile_info-wrapper .company_profile_details {
  flex: 1;
  min-width: 0;
}

/* Company Name (Child of details) */
.company_profile_details .company_profile_name {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Verified Badge (Child of name) */
.company_profile_name .company_profile_verified-badge {
  color: var(--company-brand-primary, #7b2cbf);
  font-size: 16px;
}

/* Company Services (Child of details) */
.company_profile_details .company_profile_services {
  font-size: 13.5px;
  color: #555;
  margin-bottom: 6px;
  line-height: 1.5;
}

.company_profile_services .company_profile_read-more {
  display: inline;
  margin-left: 4px;
  padding: 0;
  border: none;
  background: none;
  color: var(--company-brand-primary, #7b2cbf);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.company_profile_services .company_profile_read-more:hover {
  text-decoration: underline;
}

.company_profile_jobs-section.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

/* Company Location (Child of details) */
.company_profile_details .company_profile_location {
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}

/* Facts + socials row (Child of details) */
.company_profile_details .company_profile_facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 4px;
}

.company_profile_facts__item {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: 12px;
  line-height: 1.3;
  color: #6b7280;
}

.company_profile_facts__item i {
  font-size: 11px;
  color: var(--company-brand-primary, #7b2cbf);
}

.company_profile_facts__link {
  color: #6b7280;
  text-decoration: none;
}

.company_profile_facts__link:hover {
  color: var(--company-brand-primary, #7b2cbf);
  text-decoration: none;
}

.company_profile_socials {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.company_profile_socials__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.company_profile_socials__link:hover {
  transform: translateY(-1px);
  opacity: 0.92;
  color: #fff;
  text-decoration: none;
}

.company_profile_socials__link--facebook {
  background: #1877f2;
}

.company_profile_socials__link--instagram {
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 52%, #8134af 100%);
}

.company_profile_socials__link--linkedin {
  background: #0a66c2;
}

/* Employee Count (Child of details) */
.company_profile_details .company_profile_employee-count {
  font-size: 13px;
  color: #666;
}

/* Share Button (Child of info-wrapper) */
.company_profile_info-wrapper .company_profile_share-wrap {
  position: relative;
  flex-shrink: 0;
}

.company_profile_info-wrapper .company_profile_share-button {
  background: none;
  border: none;
  color: var(--company-brand-primary, #7b2cbf);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  text-decoration: none;
}

.company_profile_share-button[aria-expanded="true"] {
  background-color: color-mix(in srgb, var(--company-brand-primary, #7b2cbf) 8%, white);
}

.company_profile_share-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  max-width: min(260px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid #ebe6f4;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.12);
  padding: 0.65rem 0.8rem 0.8rem;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 20;
}

.company_profile_share-panel::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 18px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid #ebe6f4;
  border-top: 1px solid #ebe6f4;
  transform: rotate(45deg);
}

.company_profile_share-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.company_profile_share-panel__title {
  font-size: 0.8rem;
  font-weight: 500;
  color: #222;
  margin-bottom: 0.15rem;
}

.company_profile_share-panel__text {
  font-size: 0.78rem;
  color: #6b7280;
  line-height: 1.4;
  margin-bottom: 0.7rem;
}

.company_profile_share-panel__icons {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.company_profile_share-panel__icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  transition: transform 0.15s ease, filter 0.2s ease;
}

.company_profile_share-panel__icon:hover {
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
  filter: brightness(0.98);
}

.company_profile_share-panel__icon--in {
  background: #0a66c2;
}

.company_profile_share-panel__icon--fb {
  background: #1877f2;
}

.company_profile_share-panel__icon--x {
  background: #111827;
}

.company_profile_share-panel__icon--link {
  background: var(--company-brand-primary, #7b2cbf);
}

.company_profile_share-panel__icon i {
  font-size: 0.75rem;
}

/* .company_profile_share-button:hover {
  background-color: #f8f9fa;
  text-decoration: none;
  color: #5a1a8a;
} */

/* Navigation Tabs (Child of info-section) */
.company_profile_info-section .company_profile_navigation-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 2px solid #e9ecef80;
  padding-bottom: 0;
}

/* Nav Tab (Child of navigation-tabs) */
.company_profile_navigation-tabs .company_profile_nav-tab {
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  padding: 13px 0;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  text-decoration: none;
}

.company_profile_nav-tab.active {
  color: var(--company-brand-primary, #7b2cbf);
  border-bottom-color: var(--company-brand-primary, #7b2cbf);
}

.company_profile_nav-tab:hover {
  color: var(--company-brand-primary, #7b2cbf);
  text-decoration: none;
}

/* Content Area (Child of main-container) */
.company_profile_main-container .company_profile_content-area {
  padding-top: 30px ;
  padding-bottom: 10px;
}

/* Tab Content (Child of content-area) */
.company_profile_content-area .company_profile_tab-content {
  display: none;
}

.company_profile_tab-content.active {
  display: block;
}

/* Company Description (Child of tab-content) */
.company_profile_tab-content .company_profile_description {
  margin-bottom: 10px;
}

.company_profile_description h3 {
  font-size: 19px;
  margin-bottom: 8px;
  color: #333;
  font-weight: 600;
}

.company_profile_description p {
  font-size: 13.5px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 15px;
}

/* Company Stats (Child of tab-content) */
.company_profile_tab-content .company_profile_stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

/* Stat Item (Child of stats) */
.company_profile_stats .company_profile_stat-item {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.company_profile_stat-item .company_profile_stat-number {
  font-size: 32px;
  font-weight: bold;
  color: var(--company-brand-primary, #7b2cbf);
  margin-bottom: 5px;
}

.company_profile_stat-item .company_profile_stat-label {
  font-size: 14px;
  color: #666;
}

/* Social Media Modal (Parent) */
.company_profile_modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

/* Modal Content (Child of modal) */
.company_profile_modal .company_profile_modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: none;
  border-radius: 10px;
  width: 80%;
  max-width: 500px;
  text-align: center;
}

.company_profile_modal .company_profile_modal-content h2 {
  font-size: 17px;
}

/* Modal Close (Child of modal-content) */
.company_profile_modal-content .company_profile_close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.company_profile_close:hover,
.company_profile_close:focus {
  color: var(--company-brand-primary, #7b2cbf);
  text-decoration: none;
}

/* Social Links (Child of modal-content) */
.company_profile_modal-content .company_profile_social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

/* Social Link (Child of social-links) */
.company_profile_social-links .company_profile_social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  text-decoration: none;
  color: white;
  font-size: 16px;
  transition: transform 0.2s ease;
}

.company_profile_social-link:hover {
  transform: scale(1.05);
}

/* Facebook (Child of social-link) */
.company_profile_social-link.company_profile_facebook {
  background-color: #3b5998;
}

/* LinkedIn (Child of social-link) */
.company_profile_social-link.company_profile_linkedin {
  background-color: #0077b5;
}

/* Copy Link Button (Child of modal-content) */
.company_profile_modal-content .company_profile_copy-link {
  background-color: var(--company-brand-primary, #7b2cbf);
  color: white;
  border: none;
  padding: 9px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
}


/* Toast Notification (Parent) */
.company_profile_toast {
  position: fixed;
  top: 20px;
  right: 0px;
  background-color: var(--company-brand-primary, #7b2cbf);
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
}

/* Toast Show (Child of toast) */
.company_profile_toast.show {
  transform: translateX(0);
}

/* Toast Icon (Child of toast) */
.company_profile_toast .company_profile_toast-icon {
  font-size: 16px;
}

/* Jobs Title (Child of jobs-section) */
.company_profile_jobs-section .company_profile_jobs-title {
  font-size: 19px;
  font-weight: 600;
  color: #333;
  margin-bottom: 24px;
}

/* Jobs List (Child of jobs-section) */
.company_profile_jobs-section .company_profile_jobs-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Job Card (Child of jobs-list) */
.company_profile_jobs-list .company_profile_job-card {
  background-color: #fff;
  border: 1px solid #e9ecef;
  border-left: 3px solid var(--company-brand-primary, #7b2cbf);
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
  cursor: pointer;
}

.company_profile_job-card:hover {
  box-shadow: 0 6px 18px rgba(123, 44, 191, 0.14);
  border-color: var(--company-brand-primary, #7b2cbf);
  transform: translateY(-2px);
}

/* Job Header (Child of job-card) */
.company_profile_job-card .company_profile_job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

/* Job Title (Child of job-header) */
.company_profile_job-header .company_profile_job-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--company-brand-primary, #7b2cbf);
  margin: 0;
  line-height: 1.35;
}

.company_profile_job-card .company_profile_job-header-info {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

/* Job Location (Child of job-card) */
.company_profile_job-card .company_profile_job-location {
  font-size: 12.5px;
  color: #666;
  margin-bottom: 8px;
}

/* Job Type Badge (Child of job-card) */
.company_profile_job-card .company_profile_job-type {
  display: inline-block;
  background-color: var(--company-brand-primary, #7b2cbf);
  color: white;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 10px;
}

/* Job Skills (Child of job-card) */
.company_profile_job-card .company_profile_job-skills {
  font-size: 12.5px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 8px;
}

/* Job Footer (Child of job-card, holds posted date + actions in one row) */
.company_profile_job-card .company_profile_job-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #eef0f4;
}

/* Job Posted Date (Child of job-footer) */
.company_profile_job-footer .company_profile_job-posted {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #999;
}

.company_profile_job-posted i {
  font-size: 11px;
  color: #b3b6bd;
}

/* Job Actions (Child of job-footer) */
.company_profile_job-footer .company_profile_job-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Job Detail Button (Child of job-actions) */
.company_profile_job-actions .company_profile_job-detail-btn {

  color: var(--company-brand-primary, #7b2cbf);
  
  border-radius: 6px;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}


/* Company Info Grid (Parent) */
.company_profile_company-info {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); */
  gap: 20px;
  /* margin: 30px 0; */
}

/* Info Item (Child of company-info) */
.company_profile_company-info .company_profile_info-item {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid var(--company-brand-primary, #7b2cbf);
}

/* Info Label (Child of info-item) */
.company_profile_info-item .company_profile_info-label {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--company-brand-primary, #7b2cbf);
  margin-bottom: 6px;
}

/* Info Value (Child of info-item) */
.company_profile_info-item .company_profile_info-value {
  font-size: 13.5px;
  color: #555;
  line-height: 1.6;
}

/* Company Description Enhanced (Child of tab-content) */
.company_profile_tab-content .company_profile_description-enhanced {
  background-color: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  border-left: 4px solid var(--company-brand-primary, #7b2cbf);
  margin: 20px 0;
}

.company_profile_description-enhanced h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--company-brand-primary, #7b2cbf);
  margin-bottom: 12px;
}

.company_profile_description-enhanced p {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .company_profile_main-container {
    padding: 0 15px;
  }

  .company_profile_banner {
    height: 150px;
  }

  .company_profile_banner::after {
    height: 50px;
  }

  .company_profile_info-section {
    padding: 30px 15px 20px;
    margin-top: -50px;
  }

  .company_profile_info-wrapper {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
  }


  .company_profile_logo__img,
  .company_profile_logo__placeholder {
    width: 76px;
    height: 76px;
    font-size: 24px;
  }

  .company_profile_name {
    font-size: 19px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .company_profile_share-button {
    align-self: center;
  }

  .company_profile_navigation-tabs {
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
  }

  .company_profile_nav-tab {
    font-size: 14px;
    padding: 11px 0;
  }

  .company_profile_job-card {
    padding: 16px;
  }

  .company_profile_job-title {
    font-size: 15px;
  }

  .company_profile_company-info {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .company_profile_job-actions {
    justify-content: center;
  }
}

@media (max-width: 480px) {

  .company_profile_info-section {
    margin-top: -40px;
    padding: 25px 15px 15px;
  }
  .company_profile_name {
    font-size: 17px;
  }

  .company_profile_services,
  .company_profile_location,
  .company_profile_employee-count {
    font-size: 12.5px;
  }

  .company_profile_navigation-tabs {
    gap: 20px;
  }

  .company_profile_nav-tab {
    font-size: 13px;
  }

  .company_profile_share-button {
    font-size: 12.5px;
    padding: 6px 12px;
  }

  .company_profile_job-card {
    padding: 14px;
  }

  .company_profile_job-title {
    font-size: 14px;
  }

  .company_profile_jobs-title {
    font-size: 17px;
  }

  .company_profile_job-detail-btn {
    font-size: 11.5px;
    padding: 6px 12px;
  }

  .company_profile_job-header .company_profile_job-title {
    font-size: 14.5px;
  }

  .company_profile_info-wrapper .company_profile_details {
    width: 100%;
    text-align: left;
  }

  .company_profile_details .company_profile_name {
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: flex-start;
  }

  .company_profile_navigation-tabs .company_profile_nav-tab {
    font-size: 13.5px;
    padding: 10px 0;
  }

  .company_profile_info-section .company_profile_navigation-tabs {
    justify-content: flex-start;
  }

  .company_profile_info-wrapper .company_profile_share-wrap {
    position: absolute;
    right: 10px;
    z-index: 5;
  }
}

/* tracking page */

/* Header Tracking CV */
.header_tracking_cv {
  background: #ffffff;
  padding: 1rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.container_tracking_cv {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

.header_wrapper_tracking_cv {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo_section_tracking_cv {
  display: flex;
  align-items: center;
}

.logo_img_tracking_cv {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.language_section_tracking_cv {
  display: flex;
  align-items: center;
}

.tracking_content_wrapper_tracking_cv {
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem;
  text-align: center;
}

/* Title */
.tracking_title_tracking_cv {
  font-size: 1.375rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

/* Input Group */
.tracking_input_group_tracking_cv {
  display: flex;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  max-width: 500px;
  margin: 0 auto;
}

.tracking_input_group_tracking_cv:focus-within {
  box-shadow: 0 6px 20px rgba(23, 162, 184, 0.25);
  transform: translateY(-2px);
}

.tracking_input_tracking_cv {
  flex: 1;
  padding: 0.75rem 1.25rem;
  border: none;
  font-size: 0.875rem;
  color: #2c3e50;
  outline: none;
  background: white;
}

.tracking_input_tracking_cv::placeholder {
  color: #95a5a6;
}

.tracking_button_tracking_cv {
  padding: 0.75rem 2rem;
  background: #5a189a;
  color: white;
  border: none;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.tracking_button_tracking_cv:hover {
  background: #5a189a;
  transform: scale(1.02);
}

.tracking_button_tracking_cv:active {
  transform: scale(0.98);
}

/* Main Content Tracking */
.main_content_tracking_cv {
  padding: 4rem 0;
}

.row_tracking_cv {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0rem;
}

.col_lg_4_tracking_cv,
.col_lg_8_tracking_cv {
  width: 94%;
  margin: 0 auto;
}

/* Cards */
.card_tracking_cv {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(90, 24, 154, 0.1);
}

/* Timeline */
.section_title_tracking_cv {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.timeline_list_tracking_cv {
  position: relative;
}

.timeline_item_tracking_cv {
  position: relative;
  padding-left: 2.5rem;
  padding-bottom: 2rem;
  border-left: 3px solid #e8eef5;
}

.timeline_item_tracking_cv:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.timeline_dot_tracking_cv {
  position: absolute;
  left: -9px;
  top: 0;
  width: 16px;
  height: 16px;
  background: #e0e7ef;
  border: 4px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.timeline_item_tracking_cv.active_tracking_cv {
  border-left-color: #5a189a;
}

.timeline_item_tracking_cv.active_tracking_cv .timeline_dot_tracking_cv {
  background: #5a189a;
  box-shadow: 0 0 0 6px rgba(90, 24, 154, 0.15);
}

.timeline_title_tracking_cv {
  font-size: 0.8125rem;
  color: #2c3e50;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.timeline_item_tracking_cv.active_tracking_cv .timeline_title_tracking_cv {
  color: #5a189a;
  font-weight: 700;
}

.timeline_date_tracking_cv {
  font-size: 0.6875rem;
  color: #9aa5b1;
}

/* Status Badge */
.status_badge_tracking_cv {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
  color: #2e7d32;
  border-radius: 25px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(46, 125, 50, 0.2);
  margin-bottom: 1.5rem;
}

.status_badge_tracking_cv i {
  margin-right: 0.5rem;
}

.main_title_tracking_cv {
  font-size: 1.375rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.subtitle_tracking_cv {
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 1.5rem;
}

/* Progress Steps */
.progress_section_tracking_cv {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 2rem 0;
  position: relative;
  padding: 1rem 0;
}

.progress_section_tracking_cv::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 50px;
  right: 50px;
  height: 3px;
  background: #e8eef5;
  z-index: 0;
}

.progress_step_tracking_cv {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 80px;
  position: relative;
  z-index: 1;
}

.step_icon_tracking_cv {
  width: 56px;
  height: 56px;
  background: #e8eef5;
  border: 3px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: #9aa5b1;
  transition: all 0.3s ease;
}

.progress_step_tracking_cv.completed_tracking_cv .step_icon_tracking_cv {
  background: #5a189a;
  color: white;
  box-shadow: 0 6px 18px rgba(90, 24, 154, 0.4);
}

.step_label_tracking_cv {
  font-size: 0.75rem;
  font-weight: 600;
  color: #5a6c7d;
  text-align: center;
  margin-bottom: 0.25rem;
}

.progress_step_tracking_cv.completed_tracking_cv .step_label_tracking_cv {
  color: #5a189a;
  font-weight: 700;
}

.step_date_tracking_cv {
  font-size: 0.6875rem;
  color: #9aa5b1;
  text-align: center;
}

/* Match Section */
.match_section_tracking_cv {
  background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
  border-radius: 12px;
  margin-top: 1rem;
}

.match_header_tracking_cv {
  display: flex;
  align-items: flex-start;
  flex-direction: column-reverse;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.recommended_badge_tracking_cv {
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
  color: #2e7d32;
  padding: 0.375rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.recommended_badge_tracking_cv i {
  margin-right: 0.375rem;
}

.match_title_tracking_cv {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #2c3e50;
  flex: 1;
  min-width: 180px;
}

.scores_grid_tracking_cv {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.score_card_tracking_cv {
  text-align: center;
  padding: 1.25rem 1rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(90, 24, 154, 0.1);
}

.score_card_tracking_cv:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(90, 24, 154, 0.25);
}

.score_value_tracking_cv {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--company-brand-primary, #7b2cbf);
}

.score_label_tracking_cv {
  font-size: 0.8125rem;
  color: #5a6c7d;
  font-weight: 600;
}

/* Summary */
.summary_box_tracking_cv {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  border: 1px solid rgba(90, 24, 154, 0.1);
}

.summary_title_tracking_cv {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #2c3e50;
}

.summary_text_tracking_cv {
  font-size: 0.8125rem;
  color: #5a6c7d;
  line-height: 1.7;
}

/* Responsive Design */
@media (min-width: 992px) {
  .row_tracking_cv {
    grid-template-columns: 380px 1fr;
  }

  .scores_grid_tracking_cv {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .header_tracking_cv {
    padding: 0.75rem 0;
  }

  .logo_img_tracking_cv {
    height: 32px;
  }

  .tracking_content_wrapper_tracking_cv {
    padding: 1.5rem 1rem;
  }

  .col_lg_4_tracking_cv,
  .col_lg_8_tracking_cv {
    width: 100%;
    margin: 0 auto;
  }

  .tracking_title_tracking_cv {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .tracking_input_tracking_cv {
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
  }

  .tracking_button_tracking_cv {
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
  }

  .main_content_tracking_cv {
    padding: 2rem 0;
  }

  .card_tracking_cv {
    padding: 1.5rem;
  }

  .main_title_tracking_cv {
    font-size: 1.5rem;
  }

  .progress_section_tracking_cv {
    overflow-x: auto;
    overflow-y: hidden;
    margin: 1.5rem -1.5rem;
    padding: 1rem 1.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #5a189a #e8eef5;
  }

  .progress_section_tracking_cv::-webkit-scrollbar {
    height: 6px;
  }

  .progress_section_tracking_cv::-webkit-scrollbar-track {
    background: #e8eef5;
    border-radius: 3px;
  }

  .progress_section_tracking_cv::-webkit-scrollbar-thumb {
    background: #5a189a;
    border-radius: 3px;
  }

  .progress_section_tracking_cv::before {
    left: 40px;
    right: 40px;
  }

  .progress_step_tracking_cv {
    min-width: 100px;
    flex-shrink: 0;
  }

  .step_icon_tracking_cv {
    width: 52px;
    height: 52px;
    font-size: 1.25rem;
  }

  .step_label_tracking_cv {
    font-size: 0.6875rem;
    white-space: nowrap;
  }

  .step_date_tracking_cv {
    font-size: 0.625rem;
  }

  .summary_box_tracking_cv {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .container_tracking_cv {
    padding: 1rem;
  }

  .logo_img_tracking_cv {
    height: 28px;
  }

  .tracking_content_wrapper_tracking_cv {
    padding: 1rem 0.5rem;
  }

  .tracking_title_tracking_cv {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .tracking_input_tracking_cv {
    padding: 0.75rem 1rem;
    text-align: center;
  }

  .tracking_button_tracking_cv {
    padding: 0.75rem 1.5rem;
  }

  .row_tracking_cv {
    gap: 1.5rem;
    display: flex;
    flex-direction: column-reverse;
  }

  .card_tracking_cv {
    padding: 1rem;
  }

  .section_title_tracking_cv {
    font-size: 1.125rem;
  }

  .main_title_tracking_cv {
    font-size: 1.25rem;
  }

  .progress_section_tracking_cv {
    overflow-x: auto;
    overflow-y: hidden;
    margin: 1rem 0;
    padding: 1rem 0;
    -webkit-overflow-scrolling: touch;
  }

  .progress_section_tracking_cv::before {
    left: 35px;
    right: 35px;
  }

  .progress_step_tracking_cv {
    min-width: 100px;
    flex-shrink: 0;
  }

  .step_icon_tracking_cv {
    width: 48px;
    height: 48px;
    font-size: 1.125rem;
  }

  .step_label_tracking_cv {
    font-size: 0.625rem;
    white-space: nowrap;
  }

  .step_date_tracking_cv {
    font-size: 0.5625rem;
  }

  .score_value_tracking_cv {
    font-size: 1.75rem;
  }
}


/* ============================================================
   AGENCY CVs PAGE  �  parent ? child, all classes prefixed -agency
   ============================================================ */

/* -- Stats row (parent) -- */
.agency-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

/* stat card */
.agency-stat-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  background: #fff;
  border-radius: 12px;
  padding: 1rem 1.125rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border: 1px solid #eeeeee;
}

/* stat card icon */
.agency-stat-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.agency-stat-card__icon--total    { background: #f3ecff; color: #771BC8; }
.agency-stat-card__icon--pending  { background: #fef9ec; color: #b07d10; }
.agency-stat-card__icon--confirmed{ background: #edfaf4; color: #1a7a52; }
.agency-stat-card__icon--rejected { background: #fdf2f2; color: #b83232; }

/* stat card body */
.agency-stat-card__body {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.agency-stat-card__value {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a2e;
}

.agency-stat-card__label {
  font-size: 0.75rem;
  color: #7a7a8a;
  font-weight: 500;
  margin-top: 0.1rem;
}

/* -- Table card (parent) -- */
.agency-table-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.07);
  border: 1px solid #eeeeee;
  overflow: hidden;
}

/* table card header */
.agency-table-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid #f3f3f5;
  background: #fdfdfd;
}

/* table card title */
.agency-table-card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  /* color: #771BC8; */
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* actions row (child of header) */
.agency-table-card__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* search wrap */
.agency-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.agency-search-wrap__icon {
  position: absolute;
  left: 0.6rem;
  color: #aaaaaa;
  font-size: 0.75rem;
  pointer-events: none;
}

.agency-search-wrap__input {
  padding: 0.4rem 0.75rem 0.4rem 1.85rem;
  border: 1px solid #e4e4e8;
  border-radius: 8px;
  font-size: 0.8rem;
  width: 200px;
  background: #fafafa;
  color: #374151;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.agency-search-wrap__input:focus {
  border-color: #771BC8;
  box-shadow: 0 0 0 3px rgba(119,27,200,0.08);
  outline: none;
  background: #fff;
}

/* filter toggle button */
.agency-btn-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  background: #f6f0ff;
  color: #771BC8;
  border: 1px solid #e0d0f5;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.agency-btn-filter:hover,
.agency-btn-filter.active {
  background: #771BC8;
  color: #fff;
  border-color: #771BC8;
}

/* upload button */
.agency-btn-upload {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  background: #771BC8;
  color: #fff;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  border: none;
}

.agency-btn-upload:hover {
  background: #5e15a0;
  color: #fff;
  transform: translateY(-1px);
}

/* table card body */
/* .agency-table-card__body {
  padding: 0.875rem 1.25rem 1.125rem;
} */

/* -- Table responsive wrapper (parent of table) -- */
.agency-table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #f0f0f2;
}

.agency-table-responsive::-webkit-scrollbar {
  height: 5px;
}

.agency-table-responsive::-webkit-scrollbar-track {
  background: #f0f0f4;
  border-radius: 3px;
}

.agency-table-responsive::-webkit-scrollbar-thumb {
  background: #771BC8;
  border-radius: 3px;
}

.agency-table-responsive::-webkit-scrollbar-thumb:hover {
  background: #5e15a0;
}

/* -- Table -- */
.agency-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.825rem;
  min-width: 860px;
}

/* table head (parent) */
.agency-table__head {
  background: #b6b6b625;
}

.agency-table__head tr {
  background: #b6b6b625;
}

/* table header cells */
.agency-table__th {
  padding: 0.7rem 0.875rem;
  color: #444455;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  font-size: 0.7875rem;
  letter-spacing: 0.025em;
  border-bottom: 1px solid #e0e0e5;
}

.agency-table__th--num     { width: 40px; text-align: center; }
.agency-table__th--actions { text-align: center; }

/* table body rows */
.agency-table__body .agency-table__row {
  /* background: #b6b6b625; */
  /* border-bottom: 1px solid #ebebef; */
  transition: background 0.15s;
}

.agency-table__body .agency-table__row:nth-child(even) {
  background: rgba(182,182,182,0.1);
}

.agency-table__body .agency-table__row:last-child {
  border-bottom: none;
}

.agency-table__body .agency-table__row:hover {
  background: rgba(119,27,200,0.04);
}

/* table cell */
.agency-table__td {
  padding: 0.65rem 0.875rem;
  vertical-align: middle;
  color: #444455;
}

.agency-table__td--num     { text-align: center; font-weight: 600; color: #771BC8; }
.agency-table__td--actions { text-align: center; }

/* -- File cell (child of agency-table__td) -- */
.agency-file-cell {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.agency-file-cell__icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.agency-file-cell__icon--pdf { background: #fdeaea; color: #c0392b; }
.agency-file-cell__icon--doc { background: #e8f0fd; color: #2563eb; }

.agency-file-cell__info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.agency-file-cell__name {
  font-weight: 600;
  font-size: 0.79rem;
  color: #1a1a2e;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agency-file-cell__size {
  font-size: 0.71rem;
  color: #aaaabb;
}

/* -- Candidate cell (child of agency-table__td) -- */
.agency-candidate-cell {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.agency-candidate-cell__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #771BC8;
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.agency-candidate-cell__info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.agency-candidate-cell__name {
  font-weight: 600;
  font-size: 0.8rem;
  color: #1a1a2e;
  white-space: nowrap;
}

.agency-candidate-cell__email {
  font-size: 0.71rem;
  color: #aaaabb;
}

/* -- Position badge -- */
.agency-position-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  background: #f2eaff;
  color: #6a1db0;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

/* -- Visibility badge -- */
.agency-visibility {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.agency-visibility--public  { background: #eaf7ef; color: #1a7a52; }
.agency-visibility--private { background: #f2f2f5; color: #777788; }

/* -- Status badge -- */
.agency-status {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.22rem 0.6rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.agency-status--pending   { background: #fef8ec; color: #b07d10; }
.agency-status--confirmed { background: #edf9f3; color: #1a7a52; }
.agency-status--rejected  { background: #fdf1f1; color: #b83232; }

/* -- AI badge -- */
.agency-ai {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.agency-ai--done   { background: #eeeeff; color: #3730a3; }
.agency-ai--queued { background: #fef8ec; color: #b07d10; }

/* -- Availability badge -- */
.agency-availability {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.agency-availability .fa-circle { font-size: 0.42rem; vertical-align: middle; }

.agency-availability--available   { background: #edf9f3; color: #1a7a52; }
.agency-availability--placed      { background: #eeeeff; color: #3730a3; }
.agency-availability--unavailable { background: #fdf1f1; color: #b83232; }

/* -- Date cell -- */
.agency-date {
  font-size: 0.77rem;
  color: #888899;
  white-space: nowrap;
}

/* -- Action buttons (child of agency-table__td--actions) -- */
.agency-action-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.agency-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 0.825rem;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.18s, color 0.18s, transform 0.1s;
}

.agency-action-btn:hover {
  transform: translateY(-1px);
}

.agency-action-btn--view          { background: #f0f0f3; color: #555566; }
.agency-action-btn--view:hover    { background: #555566; color: #fff; }

.agency-action-btn--whatsapp          { background: #e6f9ee; color: #1a8a3c; }
.agency-action-btn--whatsapp:hover    { background: #1a8a3c; color: #fff; }

.agency-action-btn--whatsapp-share       { background: #e8f8f0; color: #0e7a40; }
.agency-action-btn--whatsapp-share:hover { background: #0e7a40; color: #fff; }

.agency-action-btn--email         { background: #eeeeff; color: #4242b8; }
.agency-action-btn--email:hover   { background: #4242b8; color: #fff; }

.agency-action-btn--share         { background: #fff3ea; color: #b05218; }
.agency-action-btn--share:hover   { background: #b05218; color: #fff; }

.agency-action-btn--delete        { background: #fdf1f1; color: #b83232; }
.agency-action-btn--delete:hover  { background: #b83232; color: #fff; }

/* -- Bulk action bar -- */
.agency-bulk-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  background: #faf5ff;
  border: 1px solid #e2d4f8;
  border-radius: 10px;
  margin-bottom: 0.75rem;
}

.agency-bulk-bar--hidden {
  display: none;
}

.agency-bulk-bar__count {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #444455;
  flex: 1;
}

.agency-bulk-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.875rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.agency-bulk-btn--share {
  background: #fff;
  color: #771BC8;
  border-color: #d0aff5;
}

.agency-bulk-btn--share:hover {
  background: #771BC8;
  color: #fff;
  border-color: #771BC8;
}

.agency-bulk-btn--download {
  background: #fff;
  color: #2563eb;
  border-color: #bfdbfe;
}

.agency-bulk-btn--download:hover {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.agency-bulk-btn--delete {
  background: #b83232;
  color: #fff;
  border-color: #b83232;
}

.agency-bulk-btn--delete:hover {
  background: #951f1f;
  border-color: #951f1f;
}

/* -- Checkbox column -- */
.agency-table__th--check,
.agency-table__td--check {
  width: 44px;
  min-width: 44px;
  padding: 0.7rem 0.25rem 0.7rem 0.875rem;
  text-align: center;
  vertical-align: middle;
}

.agency-row-check,
.agency-check-all {
  width: 16px;
  height: 16px;
  accent-color: #771BC8;
  cursor: pointer;
  vertical-align: middle;
}

/* -- Active filter chips bar (child of agency-table-card) -- */
.agency-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1.25rem;

}

.agency-active-filters--hidden {
  display: none;
}

/* individual chip */
.agency-active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.45rem 0.22rem 0.65rem;
  background: #fff;
  border: 1px solid #e0e0e8;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 500;
  color: #444455;
}

/* chip remove button */
.agency-active-filter-chip__remove {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #e8e8f0;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  color: #666677;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.agency-active-filter-chip__remove:hover {
  background: #b83232;
  color: #fff;
}

/* clear all */
.agency-active-filters__clear {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  background: none;
  border: none;
  font-size: 0.74rem;
  font-weight: 600;
  color: #771BC8;
  cursor: pointer;
  border-radius: 20px;
  transition: background 0.15s;
}

.agency-active-filters__clear:hover {
  background: #f2eaff;
}

/* -- Share Modal -- */
.agency-share-modal .modal-content {
  border-radius: 14px;
  border: none;
  box-shadow: 0 8px 40px rgba(0,0,0,0.13);
}

.agency-share-modal .modal-header {
  border-bottom: 1px solid #f0f0f4;
  padding: 1rem 1.25rem;
}

.agency-share-modal .modal-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #771BC8;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.agency-share-modal .modal-body {
  padding: 1.125rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-height: 62vh;
  overflow-y: auto;
}

/* share group (parent) */
.agency-share-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.agency-share-group__label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #444455;
  text-transform: uppercase;
}

/* pill options (child) */
.agency-share-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.agency-share-option {
  display: inline-flex;
  cursor: pointer;
}

.agency-share-option input[type="checkbox"] {
  display: none;
}

.agency-share-option__pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  background: #f5f5f8;
  border: 1.5px solid #e4e4e8;
  border-radius: 20px;
  font-size: 0.775rem;
  font-weight: 500;
  color: #555566;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.agency-share-option input:checked + .agency-share-option__pill {
  background: #f2eaff;
  border-color: #771BC8;
  color: #771BC8;
  font-weight: 600;
}

.agency-share-option__pill:hover {
  border-color: #771BC8;
  color: #771BC8;
  background: #faf5ff;
}

.agency-share-option__company {
  font-size: 0.7rem;
  font-weight: 400;
  color: #888;
  margin-left: 0.25rem;
}

.agency-share-option input:checked + .agency-share-option__pill .agency-share-option__company {
  color: #9b59d4;
}

/* modal footer */
.agency-share-modal .modal-footer {
  border-top: 1px solid #f0f0f4;
  padding: 0.875rem 1.25rem;
  gap: 0.5rem;
}

.agency-share-cancel {
  padding: 0.45rem 1rem;
  background: #fff;
  border: 1px solid #e4e4e8;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #444455;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.agency-share-cancel:hover {
  border-color: #771BC8;
  color: #771BC8;
}

.agency-share-send {
  padding: 0.45rem 1.125rem;
  background: #771BC8;
  border: none;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.agency-share-send:hover {
  background: #5e15a0;
}

/* share modal scrollbar */
.agency-share-modal .modal-body::-webkit-scrollbar {
  width: 4px;
}

.agency-share-modal .modal-body::-webkit-scrollbar-thumb {
  background: #771BC8;
  border-radius: 3px;
}

/* -- Upload Modal -- */
.agency-upload-modal .modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: 0 10px 45px rgba(15, 23, 42, 0.18);
}

.agency-upload-modal .modal-header {
  border-bottom: 1px solid #f0f0f4;
  padding: 1.1rem 1.4rem;
}

.agency-upload-modal .modal-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.agency-upload-modal .modal-title i {
  color: #771BC8;
}

.agency-upload-modal .modal-body {
  padding: 1.25rem 1.4rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* visibility choice */
.agency-upload-visibility {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.agency-upload-visibility__label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #111827;
}

.agency-upload-visibility__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.agency-upload-visibility__option {
  display: inline-flex;
  align-items: stretch;
  cursor: pointer;
}

.agency-upload-visibility__option input[type="radio"] {
  display: none;
}

.agency-upload-visibility__pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  min-width: 150px;
  transition: border-color 0.16s, background 0.16s, box-shadow 0.16s;
}

.agency-upload-visibility__title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #111827;
}

.agency-upload-visibility__desc {
  font-size: 0.75rem;
  color: #6b7280;
}

.agency-upload-visibility__option input[type="radio"]:checked + .agency-upload-visibility__pill {
  border-color: #771BC8;
  background: #f5ecff;
  box-shadow: 0 0 0 1px rgba(119, 27, 200, 0.08);
}

.agency-upload-visibility__help {
  font-size: 0.75rem;
  color: #6b7280;
}

/* drag & drop zone */
.agency-upload-dropzone {
  position: relative;
  border-radius: 18px;
  border: 2px dashed #d6c3ff;
  background: #faf5ff;
  padding: 2.2rem 1.5rem;
  text-align: center;
  color: #4b2bb2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
}

.agency-upload-dropzone--hover {
  background: #f2e8ff;
  border-color: #771BC8;
}

.agency-upload-dropzone__icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #f4e6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.4rem;
  color: #771BC8;
  font-size: 1.35rem;
}

.agency-upload-dropzone__title {
  font-size: 0.96rem;
  font-weight: 700;
}

.agency-upload-dropzone__subtitle {
  font-size: 0.8rem;
  color: #6b7280;
}

.agency-upload-dropzone__browse {
  margin-top: 0.4rem;
  padding: 0.45rem 1.2rem;
  border-radius: 8px;
  border: none;
  background: #771BC8;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(119, 27, 200, 0.25);
}

.agency-upload-dropzone__browse i {
  font-size: 0.85rem;
}

.agency-upload-dropzone__hint {
  margin-top: 0.3rem;
  font-size: 0.72rem;
  color: #9ca3af;
}

/* selected files list � row pills, flex-wrap */
.agency-upload-files {
  margin-top: 0.6rem;
  border-radius: 14px;
  border: 1px solid #e8e4f4;
  background: #F7F5FC;
  padding: 0.6rem 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-height: 220px;
  overflow-y: auto;
  align-content: flex-start;
}

.agency-upload-files::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.agency-upload-files::-webkit-scrollbar-thumb {
  background: #c4b5e0;
  border-radius: 4px;
}

.agency-upload-file {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  padding: 0.5rem 0.6rem;
  border-radius: 14px;
  background: #F7F5FC;
  border: 1px solid #e0dcec;
  box-shadow: 0 2px 6px rgba(119, 27, 200, 0.06);
  width: 150px;
  min-width: 150px;
  max-width: 150px;
  flex-shrink: 0;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.agency-upload-file:hover {
  border-color: #d0c8e8;
  box-shadow: 0 3px 10px rgba(119, 27, 200, 0.1);
}

.agency-upload-file__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 1;
}

.agency-upload-file__icon {
  width: 24px;
  height: 24px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #fff;
  background: #771BC8;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(119, 27, 200, 0.25);
}

.agency-upload-file__info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.agency-upload-file__name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  line-height: 1.25;
}

.agency-upload-file__size {
  font-size: 0.7rem;
  color: #6b7280;
  font-weight: 500;
}

.agency-upload-file__badge {
  font-size: 0.7rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
  white-space: nowrap;
  font-weight: 600;
  flex-shrink: 0;
}

.agency-upload-file__remove {
  width: 26px;
  height: 26px;
  border: none;
  background: #e5e7eb;
  color: #6b7280;
  cursor: pointer;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.agency-upload-file__remove:hover {
  background: #b91c1c;
  color: #fff;
  transform: scale(1.08);
}

.agency-upload-empty {
  padding: 0.6rem 0.65rem;
  font-size: 0.8rem;
  color: #9ca3af;
  width: 100%;
  text-align: center;
}

.agency-upload-modal .modal-footer {
  border-top: 1px solid #f0f0f4;
  padding: 0.9rem 1.4rem;
}

.agency-upload-cancel {
  padding: 0.45rem 1.1rem;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
}

.agency-upload-cancel:hover {
  border-color: #771BC8;
  color: #771BC8;
}

.agency-upload-confirm {
  padding: 0.45rem 1.25rem;
  background: #771BC8;
  border-radius: 8px;
  border: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}

.agency-upload-confirm:hover {
  background: #5e15a0;
}

/* -- Table empty state -- */
.agency-table__empty-td {
  padding: 0;
}

.agency-table-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 3.5rem 1rem;
  text-align: center;
}

.agency-table-empty__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f5f5f8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #c8c8d8;
  margin-bottom: 0.5rem;
}

.agency-table-empty__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #555566;
  margin: 0;
}

.agency-table-empty__text {
  font-size: 0.8rem;
  color: #9999aa;
  margin: 0;
}

/* -- Share modal searchable select -- */
.agency-share-search-select {
  border: 1px solid #e4e4e8;
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}

.agency-share-search-select__input-wrap {
  position: relative;
  border-bottom: 1px solid #f0f0f4;
  background: #fafafa;
}

.agency-share-search-select__input-wrap i {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  color: #aaaaaa;
  font-size: 0.7rem;
  pointer-events: none;
}

.agency-share-search-input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2rem;
  border: none;
  font-size: 0.8rem;
  color: #374151;
  background: transparent;
  outline: none;
}

.agency-share-search-input::placeholder {
  color: #b0b0bb;
}

.agency-share-search-select__list {
  max-height: 130px;
  overflow-y: auto;
  padding: 0.4rem 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.agency-share-search-select__list::-webkit-scrollbar {
  width: 4px;
}

.agency-share-search-select__list::-webkit-scrollbar-thumb {
  background: #771BC8;
  border-radius: 3px;
}

.agency-share-search-select__empty {
  font-size: 0.78rem;
  color: #aaaaaa;
  padding: 0.5rem 0.25rem;
  width: 100%;
  text-align: center;
}

.agency-share-selected-count {
  font-size: 0.72rem;
  color: #771BC8;
  font-weight: 600;
  margin-top: 0.3rem;
  min-height: 1rem;
}

/* -- Date range inputs (in offcanvas) -- */
.agency-filter-date-range {
  display: grid;
  /* grid-template-columns: 1fr 1fr; */
  gap: 0.5rem;
}

.agency-filter-date-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.agency-filter-date-label {
  font-size: 0.72rem;
  color: #888899;
  font-weight: 500;
}

/* -- Filter text input (in offcanvas) -- */
.agency-filter-input {
  width: 100%;
  padding: 0.4rem 0.75rem;
  border: 1px solid #e4e4e8;
  border-radius: 8px;
  font-size: 0.8125rem;
  color: #374151;
  background: #fafafa;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.agency-filter-input:focus {
  border-color: #771BC8;
  box-shadow: 0 0 0 3px rgba(119,27,200,0.08);
  outline: none;
  background: #fff;
}

/* -- Pagination (parent) -- */
.agency-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  padding: 10px;
}

.agency-pagination__info {
  font-size: 0.78rem;
  color: #888899;
}

.agency-pagination__controls {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* prev / next buttons */
.agency-pagination__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.8rem;
  background: #fff;
  border: 1px solid #e4e4e8;
  border-radius: 7px;
  font-size: 0.775rem;
  font-weight: 600;
  color: #444455;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  line-height: 1;
}

.agency-pagination__btn:hover:not(:disabled) {
  background: #771BC8;
  border-color: #771BC8;
  color: #fff;
}

.agency-pagination__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* page number buttons (child of agency-pagination__controls) */
.agency-pagination__pages {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.agency-pagination__page {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid #e4e4e8;
  background: #fff;
  font-size: 0.775rem;
  font-weight: 600;
  color: #444455;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.agency-pagination__page:hover {
  border-color: #771BC8;
  color: #771BC8;
}

.agency-pagination__page--active {
  background: #771BC8;
  border-color: #771BC8;
  color: #fff;
}

/* -- Filter Offcanvas (Bootstrap) -- */
.agency-offcanvas {
  width: 320px !important;
}

.agency-offcanvas .offcanvas-header {
  border-bottom: 1px solid #f0f0f4;
  padding: 1rem .7rem;
}

.agency-offcanvas .offcanvas-title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: #771BC8;
}

.agency-offcanvas .offcanvas-body {
  padding: 1rem .7rem;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

/* filter group (parent) */
.agency-filter-group {
  display: flex;
  flex-direction: column;
}

.agency-filter-group__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #444455;
  text-transform: uppercase;
  margin-bottom: 0.1rem;
}

/* filter option checkboxes (child) */
.agency-filter-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s;
}

.agency-filter-option:hover {
  background: #f6f0ff;
}

.agency-filter-option input[type="checkbox"] {
  accent-color: #771BC8;
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.agency-filter-option input[type="radio"] {
  accent-color: #771BC8;
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.agency-filter-option__text {
  font-size: 0.8125rem;
  color: #374151;
  font-weight: 500;
}

/* offcanvas footer actions */
.agency-offcanvas-footer {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid #f0f0f4;
  margin-top: auto;
}

.agency-offcanvas-footer .agency-btn-apply {
  flex: 1;
  padding: 0.5rem 1rem;
  background: #771BC8;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.agency-offcanvas-footer .agency-btn-apply:hover {
  background: #5e15a0;
}

.agency-offcanvas-footer .agency-btn-reset {
  padding: 0.5rem 1rem;
  background: #fff;
  color: #444455;
  border: 1px solid #e4e4e8;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.agency-offcanvas-footer .agency-btn-reset:hover {
  border-color: #771BC8;
  color: #771BC8;
}
.agency-amount {
  font-weight: 500;
}
/* ============================================================
   AGENCY CVs  �  Responsive
   ============================================================ */

@media (max-width: 1100px) {
  .agency-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .agency-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
  }

  .agency-stat-card {
    padding: 0.75rem 0.5rem;
    gap: .5rem;
  }
  .agency-stat-card__icon {
    width: 30px;
    height: 30px;
    font-size: .8rem;
  }
  .agency-table-card__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .agency-table-card__actions {
    width: 100%;
  }

  .agency-search-wrap {
    flex: 1;
  }

  .agency-search-wrap__input {
    width: 100%;
  }

  .agency-pagination {
    /* flex-direction: column; */
    /* align-items: center; */
    gap: 0.5rem;
  }
}

@media (max-width: 576px) {
  .agency-stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: .5rem;
  }

  .agency-amount , .agency-table__company {
    font-size: 0.75rem;
  }

  .agency-stat-card__value {
    font-size: 1rem;
  }
.agency-table__td {
  padding: 0.6rem;
  vertical-align: middle;
  color: #444455;
}
  .agency-table-card__actions {
    flex-direction: column;
    align-items: stretch;
  }



  .agency-offcanvas {
    width: 80% !important;
  }
}

/* ============================================================
   PROFILE CV PAGE  �  parent before child, prefix profile_cv
   ============================================================ */

.profile_cv {
  background: #f3f5f8;
  padding: 0 0 2rem;
}

.profile_cv .profile_cv__wrap {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* -- Sidebar (parent) -- */
.profile_cv .profile_cv__sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 1.25rem;
  align-self: flex-start;
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  /* padding: 0.5rem 0.35rem 0.5rem 0; */
  background: #f3f5f8;
  border-radius: 16px;
  /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); */
}

.profile_cv .profile_cv__sidebar::-webkit-scrollbar {
  width: 5px;
}

.profile_cv .profile_cv__sidebar::-webkit-scrollbar-track {
  background: #e5e7eb;
  border-radius: 4px;
  margin: 0.25rem 0;
}

.profile_cv .profile_cv__sidebar::-webkit-scrollbar-thumb {
  background: #771BC8;
  border-radius: 4px;
}

.profile_cv .profile_cv__sidebar::-webkit-scrollbar-thumb:hover {
  background: #5e15a0;
}

.profile_cv .profile_cv__sidebar .profile_cv__header {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #eee;
  text-align: center;
}

.profile_cv .profile_cv__sidebar .profile_cv__header .profile_cv__avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: #f4e6ff;
  color: #771BC8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.profile_cv .profile_cv__sidebar .profile_cv__header .profile_cv__name {
  font-size: 1.25rem;
  font-weight: 500;
  color: #111827;
  margin: 0 0 0.75rem;
}

.profile_cv .profile_cv__sidebar .profile_cv__contact {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.profile_cv .profile_cv__sidebar .profile_cv__contact .profile_cv__contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #374151;
  margin-bottom: 0.4rem;
}

.profile_cv .profile_cv__sidebar .profile_cv__contact .profile_cv__contact-item i {
  color: #771BC8;
  width: 1rem;
  flex-shrink: 0;
}

.profile_cv .profile_cv__sidebar .profile_cv__contact .profile_cv__contact-item a {
  color: #374151;
  text-decoration: none;
  word-break: break-all;
}

.profile_cv .profile_cv__sidebar .profile_cv__contact .profile_cv__contact-item a:hover {
  color: #771BC8;
}

.profile_cv .profile_cv__sidebar .profile_cv__status-wrap {
  text-align: center;
}

.profile_cv .profile_cv__sidebar .profile_cv__status {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.profile_cv .profile_cv__sidebar .profile_cv__status--confirmed {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.profile_cv .profile_cv__sidebar .profile_cv__status--rejected {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.profile_cv .profile_cv__sidebar .profile_cv__status--pending {
  background: #fef9c3;
  color: #a16207;
  border: 1px solid #fde047;
}

.profile_cv .profile_cv__sidebar .profile_cv__actions {
  display: flex;
  gap: 0.5rem;
}

.profile_cv .profile_cv__sidebar .profile_cv__actions .profile_cv__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.profile_cv .profile_cv__sidebar .profile_cv__actions .profile_cv__btn--confirm {
  background: #16a34a;
  color: #fff;
}

.profile_cv .profile_cv__sidebar .profile_cv__actions .profile_cv__btn--confirm:hover {
  background: #15803d;
}

.profile_cv .profile_cv__sidebar .profile_cv__actions .profile_cv__btn--reject {
  background: #b91c1c;
  color: #fff;
}

.profile_cv .profile_cv__sidebar .profile_cv__actions .profile_cv__btn--reject:hover {
  background: #991b1b;
}

.profile_cv .profile_cv__sidebar .profile_cv__social {
  background: #fff;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #eee;
}

.profile_cv .profile_cv__sidebar .profile_cv__social .profile_cv__social-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 0.5rem;
}

.profile_cv .profile_cv__sidebar .profile_cv__social .profile_cv__social-links {
  display: flex;
  gap: 0.5rem;
}

.profile_cv .profile_cv__sidebar .profile_cv__social .profile_cv__social-links .profile_cv__social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.profile_cv .profile_cv__sidebar .profile_cv__social .profile_cv__social-links .profile_cv__social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.profile_cv .profile_cv__sidebar .profile_cv__social .profile_cv__social-links .profile_cv__social-link--linkedin {
  background: #0a66c2;
}

.profile_cv .profile_cv__sidebar .profile_cv__social .profile_cv__social-links .profile_cv__social-link--github {
  background: #24292f;
}

.profile_cv .profile_cv__sidebar .profile_cv__cv-doc {
  background: #fff;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #eee;
}

.profile_cv .profile_cv__sidebar .profile_cv__cv-doc .profile_cv__cv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.profile_cv .profile_cv__sidebar .profile_cv__cv-doc .profile_cv__cv-row .profile_cv__cv-link {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #771BC8;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
}

.profile_cv .profile_cv__sidebar .profile_cv__cv-doc .profile_cv__cv-row .profile_cv__cv-link:hover {
  text-decoration: underline;
}

.profile_cv .profile_cv__sidebar .profile_cv__cv-doc .profile_cv__cv-row .profile_cv__cv-link i {
  font-size: 1.25rem;
  color: #c0392b;
  flex-shrink: 0;
}

.profile_cv .profile_cv__sidebar .profile_cv__cv-doc .profile_cv__cv-download {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f3ecff;
  color: #771BC8;
  border: 1px solid #e0d0f5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.profile_cv .profile_cv__sidebar .profile_cv__cv-doc .profile_cv__cv-download:hover {
  background: #771BC8;
  color: #fff;
  border-color: #771BC8;
}

.profile_cv .profile_cv__sidebar .profile_cv__cv-doc .profile_cv__cv-date {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.35rem;
}

/* -- Main content (parent) -- */
.profile_cv .profile_cv__main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile_cv .profile_cv__main .profile_cv__card {
  background: #fff;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #eee;
}

.profile_cv .profile_cv__main .profile_cv__card .profile_cv__card-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.profile_cv .profile_cv__main .profile_cv__card .profile_cv__card-head i {
  color: #771BC8;
  font-size: 1rem;
}

.profile_cv .profile_cv__main .profile_cv__card .profile_cv__card-head .profile_cv__card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.profile_cv .profile_cv__main .profile_cv__card .profile_cv__card-body {
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.6;
}

.profile_cv .profile_cv__main .profile_cv__card .profile_cv__card-body .profile_cv__summary {
  margin: 0;
}

.profile_cv .profile_cv__main .profile_cv__card .profile_cv__card-body .profile_cv__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.profile_cv .profile_cv__main .profile_cv__card .profile_cv__card-body .profile_cv__skills .profile_cv__skill-tag {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  background: #f3f4f6;
  color: #374151;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid #e5e7eb;
}

.profile_cv .profile_cv__main .profile_cv__card .profile_cv__card-body .profile_cv__experience {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile_cv .profile_cv__main .profile_cv__card .profile_cv__card-body .profile_cv__experience .profile_cv__exp-item {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f0f0f4;
}

.profile_cv .profile_cv__main .profile_cv__card .profile_cv__card-body .profile_cv__experience .profile_cv__exp-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.profile_cv .profile_cv__main .profile_cv__card .profile_cv__card-body .profile_cv__experience .profile_cv__exp-item .profile_cv__exp-role {
  font-weight: 600;
  color: #111827;
  font-size: 0.9rem;
}

.profile_cv .profile_cv__main .profile_cv__card .profile_cv__card-body .profile_cv__experience .profile_cv__exp-item .profile_cv__exp-company {
  font-size: 0.8125rem;
  color: #6b7280;
  margin-top: 0.2rem;
}

.profile_cv .profile_cv__main .profile_cv__card .profile_cv__card-body .profile_cv__experience .profile_cv__exp-item .profile_cv__exp-period {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.15rem;
}

/* Education */
.profile_cv .profile_cv__main .profile_cv__card .profile_cv__card-body .profile_cv__education {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile_cv .profile_cv__main .profile_cv__card .profile_cv__card-body .profile_cv__education .profile_cv__edu-item {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f0f0f4;
}

.profile_cv .profile_cv__main .profile_cv__card .profile_cv__card-body .profile_cv__education .profile_cv__edu-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.profile_cv .profile_cv__main .profile_cv__card .profile_cv__card-body .profile_cv__education .profile_cv__edu-item .profile_cv__edu-degree {
  font-weight: 600;
  color: #111827;
  font-size: 0.9rem;
}

.profile_cv .profile_cv__main .profile_cv__card .profile_cv__card-body .profile_cv__education .profile_cv__edu-item .profile_cv__edu-school {
  font-size: 0.8125rem;
  color: #6b7280;
  margin-top: 0.2rem;
}

.profile_cv .profile_cv__main .profile_cv__card .profile_cv__card-body .profile_cv__education .profile_cv__edu-item .profile_cv__edu-period {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.15rem;
}

/* Projects */
.profile_cv .profile_cv__main .profile_cv__card .profile_cv__card-body .profile_cv__projects {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile_cv .profile_cv__main .profile_cv__card .profile_cv__card-body .profile_cv__projects .profile_cv__project-item {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f0f0f4;
}

.profile_cv .profile_cv__main .profile_cv__card .profile_cv__card-body .profile_cv__projects .profile_cv__project-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.profile_cv .profile_cv__main .profile_cv__card .profile_cv__card-body .profile_cv__projects .profile_cv__project-item .profile_cv__project-name {
  font-weight: 600;
  color: #111827;
  font-size: 0.9rem;
}

.profile_cv .profile_cv__main .profile_cv__card .profile_cv__card-body .profile_cv__projects .profile_cv__project-item .profile_cv__project-desc {
  font-size: 0.8125rem;
  color: #6b7280;
  margin-top: 0.25rem;
  line-height: 1.45;
}

.profile_cv .profile_cv__main .profile_cv__card.profile_cv__card--projects.profile_cv__card--hidden {
  display: none;
}

/* Professional skills (soft) */
.profile_cv .profile_cv__main .profile_cv__card .profile_cv__card-body .profile_cv__pro-skills {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0;
}

.profile_cv .profile_cv__main .profile_cv__card .profile_cv__card-body .profile_cv__pro-skills li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
  color: #1f2937;
}

.profile_cv .profile_cv__main .profile_cv__card .profile_cv__card-body .profile_cv__pro-skills li:last-child {
  margin-bottom: 0;
}

/* Languages */
.profile_cv .profile_cv__main .profile_cv__card .profile_cv__card-body .profile_cv__languages {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profile_cv .profile_cv__main .profile_cv__card .profile_cv__card-body .profile_cv__languages .profile_cv__lang-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.profile_cv .profile_cv__main .profile_cv__card .profile_cv__card-body .profile_cv__languages .profile_cv__lang-item:last-child {
  border-bottom: none;
}

.profile_cv .profile_cv__main .profile_cv__card .profile_cv__card-body .profile_cv__languages .profile_cv__lang-item .profile_cv__lang-name {
  font-weight: 600;
  color: #111827;
  font-size: 0.875rem;
}

.profile_cv .profile_cv__main .profile_cv__card .profile_cv__card-body .profile_cv__languages .profile_cv__lang-item .profile_cv__lang-level {
  font-size: 0.8125rem;
  color: #6b7280;
  padding: 0.15rem 0.5rem;
  background: #f3f4f6;
  border-radius: 20px;
}

/* Profile CV responsive */
@media (max-width: 992px) {
  .profile_cv .profile_cv__wrap {
    grid-template-columns: 1fr;
  }
}

/* create job by guest */
  /* ----- Tips sidebar (advanced) ----- */

  .jobs-tips-sidebar-head-gest {
    margin-bottom: 0.5rem;
}

.jobs-tips-sidebar-badge-gest {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #7a36b6;
    background: rgba(122, 54, 182, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    margin-bottom: 0.4rem;
}

.jobs-tips-sidebar-title-gest {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.3rem;
}

.jobs-tips-sidebar-title-gest .fa-graduation-cap {
    color: #7a36b6;
}

.jobs-tips-sidebar-intro-gest {
    font-size: 0.7rem;
    line-height: 1.45;
    color: #64748b;
    margin-bottom: 0;
}

.jobs-tips-sidebar-list-gest {
    margin: 0 0 0.5rem 0;
    padding-left: 1.2rem;
    list-style: decimal;
}

.jobs-tips-sidebar-item-gest {
    padding: 0.4rem 0;
    border-bottom: 1px solid #eef1f7;
    line-height: 1.45;
}

.jobs-tips-sidebar-item-gest:last-child {
    border-bottom: none;
}

.jobs-tips-sidebar-item-label-gest {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.15rem;
}

.jobs-tips-sidebar-item-desc-gest {
    display: block;
    font-size: 0.68rem;
    color: #64748b;
    line-height: 1.45;
}

.jobs-tips-sidebar-footer-gest {
    font-size: 0.62rem;
    color: #94a3b8;
    padding: 0.4rem 0.45rem;
    background: rgba(148, 163, 184, 0.08);
    border-radius: 8px;
    border-left: 3px solid #cbd5e1;
}

/* ----- Custom Questions Modal (guest) ----- */
.jobs-custom-questions-modal-gest
    .modal-content.jobs-custom-questions-modal-content-gest {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.jobs-custom-questions-modal-header-gest {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.jobs-custom-questions-modal-title-wrap-gest {
    display: flex;
    align-items: center;
    gap: 10px;
}

.jobs-custom-questions-modal-icon-gest {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(122, 54, 182, 0.25);
    color: #7a36b6;
    border-radius: 8px;
    font-size: 12px;
}

.jobs-custom-questions-modal-title-gest {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #111827;
}

.jobs-custom-questions-modal-body-gest {
    padding: 12px;
}

.jobs-custom-questions-modal-description-gest {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 7px 10px;
    margin-bottom: 7px;
}

.jobs-custom-questions-modal-description-text-gest {
    margin: 0;
    font-size: 12px;
    line-height: 1;
    color: #6b7280;
}

.jobs-custom-questions-modal-list-wrap-gest {
    min-height: 60px;
}

.jobs-custom-questions-row-gest {
    display: grid;
    grid-template-columns: 1fr 130px 40px;
    gap: 10px;
    align-items: start;
    margin-bottom: 10px;
}

.jobs-custom-questions-row-gest .form-control,
.jobs-custom-questions-row-gest .form-select {
    font-size: 0.9rem;
    padding: 0.45rem 0.6rem;
}

.jobs-custom-questions-row-gest .btn {
    padding: 0.45rem 0.55rem;
    line-height: 1;
}

.jobs-custom-questions-add-btn-gest {
    font-size: 0.9rem;
    padding: 0.45rem 0.75rem;
}

.jobs-custom-questions-modal-footer-gest {
    padding: 10px 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.jobs-custom-questions-btn-secondary-gest,
.jobs-custom-questions-btn-primary-gest {
    font-size: 0.9rem;
    padding: 0.45rem 0.75rem;
}
.jobs-custom-questions-btn-primary-gest {
    background: #7a36b6;
    color: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(122, 54, 182, 0.35);
}
.jobs-custom-questions-btn-primary-gest:hover {
    background: #6a2c96;
    color: #fff;
    box-shadow: 0 6px 16px rgba(122, 54, 182, 0.4);
}
.jobs-custom-questions-add-btn-gest {
    background: #fff;
    color: #7a36b6;
    border: 1px solid #7a36b6;
    border-radius: 8px;
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem !important;
}
.jobs-custom-questions-add-btn-gest:hover {
    background: #7a36b6;
    color: #fff;
}
@media (max-width: 576px) {
    .jobs-custom-questions-row-gest {
        grid-template-columns: 1fr;
    }
}

/* job details */

  /* --- Top actions ----------------------------------------- */
  .job-details-cards__top-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 16px;
}

.job-details-cards__nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    box-sizing: border-box;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        color 0.15s ease;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #7a2cbff0;
}
.job-details-cards__nav-btn:hover {
    background: #f8f9fb;
    border-color: #cbd5e0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.job-details-cards__nav-btn--fill {
    background: #7a2cbff0;
    border-color: #7a2cbff0;
    color: #fff;
}
.job-details-cards__nav-btn--fill:hover {
    background: #6517a1f0;
    border-color: #7a2cbff0;
    color: #fff;
    box-shadow: 0 2px 8px rgba(83, 74, 183, 0.28);
}

/* --- Two-column row -------------------------------------- */
.job-details-cards__dash-row {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(12px, 2.2vw, 10px);
    align-items: flex-start;
    margin-bottom: clamp(14px, 2.5vw, 10px);
}
.job-details-cards__dash-col {
    flex: 1 1 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-self: flex-start;
}
@media (min-width: 768px) {
    .job-details-cards__dash-col {
        flex: 1 1 calc(50% - 8px);
    }
}
.job-details-cards__card--stretch {
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    min-height: 0;
}

/* --- Cards ----------------------------------------------- */
.job-details-cards__card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8ecf0;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
}
.job-details-cards__hdr {
    display: block;
    padding: 13px 16px;
    background: #fff;
    border-bottom: 1px solid #eef0f3;
}
.job-details-cards__hdr-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.35;
    color: #1a202c;
    margin: 0;
}
.job-details-cards__hdr-sub {
    font-size: 0.75rem;
    font-weight: 400;
    color: #8b96a8;
    display: block;
    margin-top: 3px;
}

.job-details-cards__body {
    padding: 14px 16px;
    flex: 1;
}
.job-details-cards__body--tight-top {
    padding-top: 10px;
}

/* --- Job summary tiles ----------------------------------- */
.job-details-cards ._model_thank_info_card {
    display: flex;
    justify-content: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
}
.job-details-cards ._model_thank_info_row {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: #fafbfc;
    border-radius: 9px;
    border: 1px solid #eef0f3;
    box-shadow: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
    box-sizing: border-box;
}
.job-details-cards ._model_thank_info_row:hover {
    border-color: #c4bcef;
    box-shadow: 0 2px 8px rgba(83, 74, 183, 0.07);
}
.job-details-cards ._model_thank_info_icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f0eeff 0%, #e6e0ff 100%);
    color: #7a2cbff0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    flex-shrink: 0;
}
.job-details-cards ._model_thank_info_label {
    font-size: 0.72rem;
    color: #8b96a8;
    font-weight: 400;
    min-width: 38px;
    flex: 1;
}
.job-details-cards ._model_thank_info_value {
    font-weight: 500;
    font-size: 0.813rem;
    color: #1a202c;
    text-align: right;
    line-height: 1.35;
    word-break: break-word;
}
.job-details-cards ._model_thank_job_title_em {
    color: #7a2cbff0;
    font-weight: 600;
}
.job-details-cards ._model_thank_status {
    background: #fff;
    color: #7a2cbff0;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid #7a2cbff0;
    white-space: nowrap;
}

/* --- Applicant URL ---------------------------------------- */
.job-details-cards ._model_thank_link_wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 10px;
    border: none;
    overflow: visible;
}
.job-details-cards ._model_thank_link_input {
    flex: 1 1 180px;
    min-width: 0;
    border: 1px solid #e2e8f0;
    outline: none;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 0.75rem;
    color: #333;
    background: #fafbfc;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-weight: 400;
    transition: border-color 0.15s;
}
.job-details-cards ._model_thank_link_input:focus {
    border-color: #7a2cbff0;
}
.job-details-cards ._model_thank_btn_copy_link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 8px;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #7a2cbff0;
    font-family: inherit;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}
.job-details-cards ._model_thank_btn_copy_link:hover {
    background: #f8f9fb;
    border-color: #c4bcef;
    box-shadow: 0 1px 4px rgba(83, 74, 183, 0.08);
}
._model_thank_hint {
    font-size: 0.74rem;
    color: #8b96a8;
    line-height: 1.5;
    display: flex;
    gap: 6px;
    align-items: flex-start;
    font-weight: 400;
    margin-bottom: 0;
}
._model_thank_hint i {
    color: #7a2cbff0;
    opacity: 0.8;
    margin-top: 2px;
    flex-shrink: 0;
}

/* --- Promote zone ----------------------------------------- */
.job-details-cards__promote-zone {
    margin-top: 0;
}
.job-details-cards__split {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.job-details-cards__half {
    flex: 1 1 0;
    min-width: 0;
    align-self: flex-start;
}
.job-details-cards__card--fill {
    height: auto;
    width: 100%;
}
@media (max-width: 767px) {
    .job-details-cards__split {
        flex-direction: column;
    }
}

/* --- Post preview ----------------------------------------- */
.job-details-cards ._model_thank_social_preview {
    background: #fafbfc;
    border: 1px solid #eef0f3;
    border-radius: 9px;
    padding: 12px 14px;
    max-height: min(400px, 58vh);
    overflow-y: auto;
    font-size: 0.8rem;
    line-height: 1.65;
    color: #4a5568;
    font-weight: 400;
}
.job-details-cards ._model_thank_social_preview::-webkit-scrollbar {
    width: 4px;
}
.job-details-cards
    ._model_thank_social_preview::-webkit-scrollbar-track {
    background: transparent;
}
.job-details-cards
    ._model_thank_social_preview::-webkit-scrollbar-thumb {
    background: #d1d8e4;
    border-radius: 4px;
}

.job-details-cards
    ._model_thank_social_preview.job-details-cards__preview-no-border {
    border: none;
    background: transparent;
    padding-left: 0;
    padding-right: 0;
}
.job-details-cards ._model_thank_post_copy_source {
    min-width: 0;
}
._model_thank_post_lead {
    font-size: 0.88rem;
    font-weight: 600;
    color: #7a2cbff0;
    margin-bottom: 4px;
}
._model_thank_post_meta {
    font-size: 0.72rem;
    color: #8b96a8;
    margin-bottom: 12px;
    font-weight: 400;
}
._model_thank_post_h {
    font-size: 0.76rem;
    font-weight: 600;
    color: #7a2cbff0;
    margin: 12px 0 5px;
}
._model_thank_post_copy_source ul {
    padding-inline-start: 16px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
._model_thank_post_copy_source[dir="rtl"] {
    text-align: right;
}
._model_thank_ai_code[dir="rtl"] {
    text-align: right;
    display: inline-block;
    width: 100%;
}
._model_thank_post_copy_source li {
    font-size: 0.78rem;
}
.job-details-cards ._model_thank_post_copy_source strong {
    font-weight: 600;
    color: #2d3748;
}

/* --- Footer toolbar --------------------------------------- */
.job-details-cards__footer-tools {
    padding: 11px 16px;
    border-top: 1px solid #eef0f3;
    background: #fafbfc;
}
.job-details-cards ._model_thank_share_toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.job-details-cards ._model_thank_btn_copy_post,
.job-details-cards ._model_thank_btn_share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 16px;
    font-size: 0.79rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    border-radius: 8px;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #7a2cbff0;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
    white-space: nowrap;
}
.job-details-cards ._model_thank_btn_copy_post:hover,
.job-details-cards ._model_thank_btn_share:hover {
    background: #f8f9fb;
    border-color: #c4bcef;
    box-shadow: 0 1px 4px rgba(83, 74, 183, 0.08);
}
.job-details-cards #_model_thank_btn_linkedin,
.job-details-cards #_model_thank_btn_facebook {
    background: #fff;
    color: #7a2cbff0;
    border-color: #e2e8f0;
}
.job-details-cards #_model_thank_btn_linkedin:hover,
.job-details-cards #_model_thank_btn_facebook:hover {
    background: #f8f9fb;
    border-color: #c4bcef;
}

/* --- AI suggestion blocks --------------------------------- */
.job-details-cards
    ._model_thank_ai_suggest
    + ._model_thank_ai_suggest {
    margin-top: 12px;
}
.job-details-cards ._model_thank_ai_block {
    border-radius: 10px;
    padding: 0;
    border: 1px solid #eef0f3;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}
.job-details-cards ._model_thank_ai_block--linkedin {
    border-left: 3px solid #7a2cbff0;
}
.job-details-cards ._model_thank_ai_block--facebook {
    border-left: 3px solid #7a2cbff0;
}

.job-details-cards ._model_thank_ai_title {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 10px 12px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #1a202c;
    border-bottom: 1px solid #eef0f3;
    background: #fafbfc;
}
.job-details-cards
    ._model_thank_ai_block--facebook
    ._model_thank_ai_title {
    color: #1a202c;
}
._model_thank_ai_title_icon {
    color: #7a2cbff0;
}

.job-details-cards ._model_thank_ai_hint {
    font-size: 0.73rem;
    color: #8b96a8;
    padding: 8px 12px;
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
    border-bottom: 1px solid #eef0f3;
}
.job-details-cards ._model_thank_ai_list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
}
.job-details-cards ._model_thank_ai_row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    background: #fff;
    border-bottom: 1px solid #f2f4f7;
    flex-wrap: wrap;
    transition: background 0.12s;
}
.job-details-cards ._model_thank_ai_row:last-child {
    border-bottom: none;
}
.job-details-cards ._model_thank_ai_row:hover {
    background: #fafbfc;
}

.job-details-cards ._model_thank_ai_check {
    accent-color: #7a2cbff0;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    cursor: pointer;
}
.job-details-cards ._model_thank_ai_label {
    flex: 1;
    min-width: 0;
}
.job-details-cards ._model_thank_ai_code {
    font-size: 0.74rem;
    color: #7a2cbff0;
    font-weight: 400;
}
.job-details-cards ._model_thank_ai_link {
    font-size: 0.72rem;
    padding: 5px 11px;
    border-radius: 7px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #7a2cbff0;
    transition:
        background 0.13s ease,
        border-color 0.13s ease;
}
.job-details-cards ._model_thank_ai_link:hover {
    background: #f8f9fb;
    border-color: #c4bcef;
    color: #7a2cbff0;
}
.job-details-cards ._model_thank_ai_toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 12px;
    background: #fafbfc;
    border-top: 1px solid #eef0f3;
}
.job-details-cards ._model_thank_btn_ai {
    padding: 7px 13px;
    font-size: 0.75rem;
    cursor: pointer;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #7a2cbff0;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}
.job-details-cards ._model_thank_btn_ai:hover {
    background: #f8f9fb;
    border-color: #c4bcef;
    box-shadow: 0 1px 4px rgba(83, 74, 183, 0.08);
}

.job-details-cards ._model_thank_btn_ai--muted {
    background: #fff;
    color: #7a2cbff0;
    border: 1px solid #e2e8f0;
}
.job-details-cards ._model_thank_btn_ai--muted:hover {
    background: #f8f9fb;
    border-color: #c4bcef;
}

/* --- Responsive ------------------------------------------- */
@media (max-width: 575px) {
    .job-details-cards ._model_thank_share_toolbar > * {
        flex: 1 1 auto;
        min-height: 44px;
        justify-content: center;
    }
}

/* --- Copied state ----------------------------------------- */
.btn-copied {
    background: #eeedfe !important;
    border-color: #afa9ec !important;
    color: #7a2cbff0 !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Social post banner (job details only) ---------------- */
.job-details-cards > .jd-social-banner,
.jd-social-banner {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    grid-column: 1 / -1;
    margin: 0 0 14px;
    padding: 18px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6a24ad 0%, #7a2cbf 100%);
    color: #fff;
}
.jd-social-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
}
.jd-social-banner__copy {
    min-width: 0;
    flex: 1 1 auto;
}
.jd-social-banner__badge {
    display: inline-block;
    margin-bottom: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.jd-social-banner__title {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.35;
    color: #fff;
}
.jd-social-banner__text {
    margin: 0 0 12px;
    max-width: 36rem;
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
}
.jd-social-banner__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 14px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: #7a2cbf;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
}
.jd-social-banner__cta:hover {
    background: #f6efff;
}
.jd-social-banner__art {
    display: flex;
    gap: 8px;
    flex: 0 0 210px;
    max-width: 36%;
}
.jd-social-banner__art img {
    width: 64px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    background: #fff;
}

.jd-social-result {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    width: 100%;
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid #ebe6f4;
    border-left: 3px solid #7a2cbf;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(122, 44, 191, 0.06);
}
.jd-social-result[hidden] {
    display: none !important;
}
.jd-social-result__thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    overflow: hidden;
    border-radius: 10px;
    background: #f6f3fb;
}
.jd-social-result.is-text .jd-social-result__thumb,
.jd-social-result__thumb[hidden] {
    display: none;
}
.jd-social-result__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.jd-social-result__info {
    min-width: 0;
    flex: 1 1 auto;
}
.jd-social-result__top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.jd-social-result__label {
    font-size: 0.72rem;
    font-weight: 500;
    color: #7a2cbf;
}
.jd-social-result__meta {
    margin: 2px 0 0;
    font-size: 0.72rem;
    font-weight: 400;
    color: #5d5670;
}
.jd-social-result__snippet {
    margin: 4px 0 0;
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.4;
    color: #32264a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.jd-social-result__badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f6efff;
    color: #7a2cbf;
    font-size: 0.65rem;
    font-weight: 500;
}
.jd-social-result__editor-label {
    display: block;
    margin: 12px 0 6px;
    font-size: 0.72rem;
    font-weight: 500;
    color: #3d3354;
}
.jd-social-result__editor {
    width: 100%;
    min-height: 140px;
    padding: 10px 12px;
    border: 1px solid #e8e4f2;
    border-radius: 10px;
    resize: vertical;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.5;
    color: #32264a;
    background: #fff;
}
.jd-social-result__editor:focus {
    outline: none;
    border-color: #7a2cbf;
}
.jd-social-result__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin: 0;
}
.jd-social-result .jd-social-btn {
    min-width: 64px;
    white-space: nowrap;
}

.jd-social-modal .modal-content {
    border: 0;
    border-radius: 14px;
}
.jd-social-modal .modal-header {
    align-items: flex-start;
    padding: 14px 16px 4px;
    border-bottom: 0;
}
.jd-social-modal .modal-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: #2d2140;
}
.jd-social-modal__sub {
    margin: 3px 0 0;
    font-size: 0.74rem;
    font-weight: 400;
    color: #6b6280;
}
.jd-social-modal .modal-body {
    padding: 8px 16px 4px;
}
.jd-social-modal .modal-footer {
    gap: 8px;
    padding: 10px 16px 14px;
    border-top: 0;
}
.jd-social-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.jd-social-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
}
.jd-social-switch input {
    position: absolute;
    opacity: 0;
}
.jd-social-switch__ui {
    width: 36px;
    height: 20px;
    border-radius: 999px;
    background: #d9d3e4;
    position: relative;
}
.jd-social-switch__ui:after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
}
.jd-social-switch input:checked + .jd-social-switch__ui {
    background: #7a2cbf;
}
.jd-social-switch input:checked + .jd-social-switch__ui:after {
    left: 18px;
}
.jd-social-switch__text {
    font-size: 0.72rem;
    font-weight: 500;
    color: #5d5670;
    min-width: 4.8rem;
}
.jd-social-layout {
    display: block;
}
.jd-social-field {
    margin-bottom: 12px;
}
.jd-social-field__label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.72rem;
    font-weight: 500;
    color: #3d3354;
}
.jd-social-types,
.jd-social-tpls,
.jd-social-platforms {
    display: grid;
    gap: 8px;
}
.jd-social-types {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.jd-social-tpls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.jd-social-tpl,
.jd-social-platform,
.jd-social-type {
    margin: 0;
    cursor: pointer;
}
.jd-social-tpl input,
.jd-social-platform input,
.jd-social-type input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.jd-social-tpl__card {
    display: block;
    padding: 5px;
    border: 1px solid #e8e4f2;
    border-radius: 10px;
    background: #fff;
}
.jd-social-tpl__card img {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: contain;;
    object-position: center top;
    border-radius: 7px;
    background: #f6f3fb;
}
.jd-social-tpl__card strong {
    display: block;
    margin-top: 6px;
    font-size: 0.68rem;
    font-weight: 500;
    color: #4a425c;
    text-align: center;
}
.jd-social-tpl:has(input:checked) .jd-social-tpl__card {
    border-color: #7a2cbf;
}
.jd-social-file-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 54px;
    padding: 10px 12px;
    border: 1px dashed #cbbbe4;
    border-radius: 10px;
    background: #faf8ff;
    cursor: pointer;
}
.jd-social-file-btn input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.jd-social-file-btn__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #efe6fb;
    color: #7a2cbf;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.jd-social-file-btn__copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.jd-social-file-btn__copy strong {
    font-size: 0.78rem;
    font-weight: 500;
    color: #3d3354;
}
.jd-social-file-btn__copy small {
    font-size: 0.68rem;
    font-weight: 400;
    color: #7a728c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.jd-social-platforms {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.jd-social-platform__chip,
.jd-social-type__chip {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border: 1px solid #e8e4f2;
    border-radius: 8px;
    background: #fff;
    font-size: 0.74rem;
    font-weight: 500;
    color: #3d3354;
}
.jd-social-platform:has(input:checked) .jd-social-platform__chip,
.jd-social-type:has(input:checked) .jd-social-type__chip {
    border-color: #7a2cbf;
    background: #f6efff;
    color: #7a2cbf;
}
.jd-social-prompt-box {
    padding: 10px;
    border: 1px solid #ebe6f4;
    border-radius: 10px;
    background: #fcfbfe;
}
.jd-social-prompt-box__hint {
    margin: -2px 0 8px;
    font-size: 0.68rem;
    font-weight: 400;
    color: #7a728c;
}
.jd-social-prompt {
    width: 100%;
    min-height: 96px;
    padding: 8px 10px;
    border: 1px solid #e8e4f2;
    border-radius: 8px;
    resize: vertical;
    font-size: 0.76rem;
    font-weight: 400;
    line-height: 1.45;
    color: #32264a;
    background: #fff;
}
.jd-social-prompt:focus {
    outline: none;
    border-color: #7a2cbf;
}
.jd-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 500;
    cursor: pointer;
}
.jd-social-btn--ghost {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #4a4458;
}
.jd-social-btn--fill {
    border: 0;
    background: #7a2cbf;
    color: #fff;
}
.jd-social-btn--fill:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.jd-social-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}
.jd-social-stage.is-text {
    grid-template-columns: 1fr;
}
.jd-social-stage.is-text .jd-social-stage__media,
.jd-social-stage__media[hidden] {
    display: none;
}
.jd-social-stage__media img {
    display: block;
    width: 100%;
    max-height: 340px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
}
.jd-social-stage__copy {
    min-width: 0;
}
.jd-social-view {
    display: grid;
    gap: 12px;
}
.jd-social-view__media {
    overflow: hidden;
    border-radius: 10px;
    background: #f6f3fb;
}
.jd-social-view__media[hidden] {
    display: none;
}
.jd-social-view__media img {
    display: block;
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    background: #fff;
}
.jd-social-view__copy {
    margin: 0;
    max-height: 260px;
    overflow: auto;
    padding: 12px;
    border: 1px solid #ebe6f4;
    border-radius: 10px;
    background: #fcfbfe;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.55;
    color: #32264a;
    white-space: pre-wrap;
}
.jd-social-view__copy p {
    margin: 0 0 8px;
}
.jd-social-view__copy p:last-child {
    margin-bottom: 0;
}
.jd-social-share {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.jd-social-share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1 1 0;
    min-height: 36px;
    padding: 6px 10px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    font-size: 0.74rem;
    font-weight: 500;
    cursor: pointer;
}
.jd-social-share__btn--facebook {
    background: #1877f2;
}
.jd-social-share__btn--instagram {
    background: #c13584;
}
.jd-social-share__btn--linkedin {
    background: #0a66c2;
}
.jd-social-share__btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.jd-social-modal .ck.ck-editor {
    width: 100%;
}
.jd-social-modal .ck.ck-editor__main > .ck-editor__editable {
    min-height: 180px;
    max-height: 260px;
    overflow: auto;
    border-color: #e8e4f2;
}
.jd-social-modal .ck.ck-toolbar {
    border-color: #e8e4f2;
    background: #fcfbfe;
}
.ck.ck-balloon-panel,
.ck.ck-body-wrapper {
    z-index: 1080 !important;
}

.jd-social-progress.modal {
    position: fixed !important;
    z-index: 1065;
}
.jd-social-progress .modal-content {
    border: 0;
    border-radius: 14px;
}
.jd-social-progress .modal-header {
    padding: 16px 18px 8px;
    border-bottom: 0;
}
.jd-social-progress .modal-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: #2d2140;
}
.jd-social-progress .modal-body {
    padding: 8px 18px 18px;
}
.jd-social-progress__box {
    padding: 12px;
    border: 1px solid #eef1f5;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.jd-social-progress__track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #eef1f5;
}
.jd-social-progress__bar {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: #7a2cbf;
    transition: width 0.2s ease-in-out;
}
.jd-social-progress__pct {
    margin: 10px 0 8px;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: #7a2cbf;
}
.jd-social-progress__steps {
    margin-top: 8px;
}
.jd-social-progress__step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.jd-social-progress__step:last-child {
    margin-bottom: 0;
}
.jd-social-progress__step.is-active {
    background: #f6efff;
    border-color: #e4d4f5;
    box-shadow: 0 2px 12px rgba(122, 44, 191, 0.12);
}
.jd-social-progress__step.is-done {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.06) 0%, rgba(34, 197, 94, 0.04) 100%);
    border-color: rgba(40, 167, 69, 0.2);
}
.jd-social-progress__icon {
    width: 24px;
    flex-shrink: 0;
    text-align: center;
    font-size: 16px;
    color: #9ca3af;
}
.jd-social-progress__step.is-active .jd-social-progress__icon {
    color: #7a2cbf;
    animation: jd-social-step-pulse 1.5s ease-in-out infinite;
}
.jd-social-progress__step.is-done .jd-social-progress__icon {
    color: #16a34a;
}
.jd-social-progress__text {
    flex: 1;
    font-size: 12px;
    line-height: 1.4;
    color: #5a6575;
}
.jd-social-progress__step.is-active .jd-social-progress__text {
    color: #1a1d21;
    font-weight: 500;
}
.jd-social-progress__step.is-done .jd-social-progress__text {
    color: #166534;
}
.jd-social-progress__check {
    display: none;
    flex-shrink: 0;
    font-size: 14px;
    color: #16a34a;
}
.jd-social-progress__step.is-done .jd-social-progress__check {
    display: inline;
}
@keyframes jd-social-step-pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.9;
    }
}

@media (max-width: 767.98px) {
    .jd-social-banner {
        padding: 14px 14px;
    }
    .jd-social-banner__inner,
    .jd-social-layout,
    .jd-social-stage {
        flex-direction: column;
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .jd-social-result {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
    }
    .jd-social-result__thumb {
        flex: 0 0 56px;
        width: 56px;
        height: 56px;
        border-radius: 8px;
    }
    .jd-social-result__label {
        font-size: 0.68rem;
    }
    .jd-social-result__meta,
    .jd-social-result__snippet {
        font-size: 0.68rem;
    }
    .jd-social-result__actions {
        width: auto;
        flex-direction: row;
    }
    .jd-social-result .jd-social-btn {
        flex: 0 0 auto;
        width: auto;
        min-height: 32px;
        padding: 5px 10px;
        font-size: 0.72rem;
    }
    .jd-social-banner__art {
        display: none;
    }
    .jd-social-banner__title {
        font-size: 1rem;
        font-weight: 500;
    }
  
    .jd-social-tpls,
    .jd-social-platforms,
    .jd-social-types {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }
    .jd-social-types {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .jd-social-tpl__card img {
        height: 118px;
    }
    .jd-social-tpl__card strong {
        font-size: 0.6rem;
    }
    .jd-social-stage__media img {
      max-height: 200px;
  } 
}

/* unlock profile � parent before child */
.unlock-profile {
    --scvs-primary: #7a2cbf;
    --scvs-primary-rgb: 122, 44, 191;
    --scvs-primary-hover: #6524a3;
    --scvs-primary-tint: rgba(122, 44, 191, 0.1);
    --scvs-primary-border: rgba(122, 44, 191, 0.22);
    --scvs-bg: #f4f2f8;
    --scvs-surface: #ffffff;
    --scvs-border: #e6e2ee;
    --scvs-text: #1a1523;
    --scvs-muted: #6b6578;
    --scvs-success: #22c55e;
    --scvs-warning: #eab308;
    --scvs-danger: #ef4444;
    --scvs-radius: 8px;
    --scvs-shadow: 0 2px 10px rgba(26, 21, 35, 0.05);
    font-size: 0.8125rem;
    padding: 0 0 1.5rem;
}

.unlock-profile .unlock-profile__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    gap: 0.85rem;
    align-items: start;
}

.unlock-profile .unlock-profile__main {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

.unlock-profile .unlock-profile__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: start;
}

.unlock-profile .unlock-profile__row > .unlock-profile__card {
    align-self: start;
    height: auto;
}

.unlock-profile .unlock-profile__card--education {
    align-self: start;
}

.unlock-profile .unlock-profile__card--skills .unlock-profile__skills-grid {
    flex: 0 0 auto;
}

.unlock-profile .unlock-profile__aside {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 0;
}

.unlock-profile .unlock-profile__card {
    background: var(--scvs-surface);
    border: 1px solid var(--scvs-border);
    border-radius: var(--scvs-radius);
    box-shadow: var(--scvs-shadow);
    padding: 0.85rem 1rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    border-top: 2px solid var(--scvs-primary);
}

.unlock-profile .unlock-profile__card:not(.unlock-profile__card--header):hover {
    border-color: var(--scvs-primary-border);
    box-shadow: 0 4px 16px rgba(var(--scvs-primary-rgb), 0.08);
}

.unlock-profile .unlock-profile__card--header {
    position: relative;
    padding: 1rem 1.15rem;
    border: 1px solid var(--scvs-primary-border);
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #fbf9ff 55%, #f6f1ff 100%);
}

.unlock-profile .unlock-profile__card--header::after {
    content: "";
    position: absolute;
    right: -2rem;
    top: -1.25rem;
    width: 62%;
    height: 140%;
    background:
        radial-gradient(circle at 30% 25%, rgba(122, 44, 191, 0.22) 0%, rgba(122, 44, 191, 0) 60%),
        repeating-radial-gradient(circle at 30% 25%, rgba(122, 44, 191, 0.1) 0 2px, rgba(122, 44, 191, 0) 2px 7px);
    border-radius: 28px;
    transform: rotate(8deg);
    pointer-events: none;
    opacity: 0.75;
}

.unlock-profile .unlock-profile__header--hero {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.95rem 1.1rem;
    align-items: center;
}

.unlock-profile .unlock-profile__avatar-wrap {
    position: relative;
}

.unlock-profile .unlock-profile__avatar {
    border-radius: 12px;
    border: 1px solid var(--scvs-border);
    filter: none;
    background: #fff;
}

.unlock-profile .unlock-profile__score {
    right: -8px;
    bottom: -10px;
    min-width: 2rem;
    height: 2rem;
    font-size: 0.62rem;
    border-width: 3px;
}

.unlock-profile .unlock-profile__name-row {
    align-items: center;
    gap: 0.4rem 0.5rem;
    margin-bottom: 0.25rem;
}

.unlock-profile .unlock-profile__name {
    font-size: 1rem;
    font-weight: 800;
}

.unlock-profile .unlock-profile__verified {
    width: 1.15rem;
    height: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(122, 44, 191, 0.12);
    border: 1px solid rgba(122, 44, 191, 0.25);
    color: var(--scvs-primary);
    flex-shrink: 0;
}

.unlock-profile .unlock-profile__verified .fa-solid {
    font-size: 0.68rem;
}

.unlock-profile .unlock-profile__meta {
    font-size: 0.66rem;
}

.unlock-profile .unlock-profile__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.6rem;
}

.unlock-profile .unlock-profile__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.18rem 0.5rem;
    font-size: 0.6rem;
    font-weight: 600;
    color: #2b2b2b;
    background: #fff;
    border: 1px solid var(--scvs-border);
    border-radius: 999px;
    line-height: 1.2;
}

.unlock-profile .unlock-profile__chip--success {
    color: #166534;
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.3);
}

.unlock-profile .unlock-profile__card--section {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    padding: 0.8rem 0.95rem 0.9rem;
    border-top: 2px solid var(--scvs-primary);
}

.unlock-profile .unlock-profile__card--unlock {
    padding: 1.1rem 1rem 1rem;
    border: none;
    background: linear-gradient(
        145deg,
        #8b3fd4 0%,
        var(--scvs-primary) 42%,
        #4f46b5 100%
    );
    box-shadow: 0 8px 24px rgba(var(--scvs-primary-rgb), 0.28);
    overflow: hidden;
}

.unlock-profile .unlock-profile__card--unlock:hover {
    border-color: transparent;
    box-shadow: 0 10px 28px rgba(var(--scvs-primary-rgb), 0.32);
}

.unlock-profile .unlock-profile__card--contacts {
    padding: 0.95rem 1rem 1.05rem;
    background: var(--scvs-surface);
}

.unlock-profile .unlock-profile__unlock-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
    text-align: left;
}

.unlock-profile .unlock-profile__unlock-shield {
    position: relative;
    width: 3.25rem;
    height: 3.25rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.unlock-profile .unlock-profile__unlock-shield-shape {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 14px;
    transform: rotate(45deg);
}

.unlock-profile .unlock-profile__unlock-shield-icon {
    position: relative;
    z-index: 1;
    font-size: 1.45rem;
    color: rgba(255, 255, 255, 0.92);
}

.unlock-profile .unlock-profile__unlock-shield-lock {
    position: absolute;
    z-index: 2;
    right: 0.15rem;
    bottom: 0.1rem;
    font-size: 0.72rem;
    color: #fff;
}

.unlock-profile .unlock-profile__unlock-copy {
    min-width: 0;
    flex: 1;
}

.unlock-profile .unlock-profile__unlock-title {
    margin: 0 0 0.3rem;
    font-size: 0.88rem;
    text-align: center;
    font-weight: 500;
    color: #fff;
    line-height: 1.25;
}

.unlock-profile .unlock-profile__unlock-desc {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.45;
}

.unlock-profile .unlock-profile__unlock-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.65rem;
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.unlock-profile .unlock-profile__unlock-avatars {
    display: inline-flex;
    align-items: center;
}

.unlock-profile .unlock-profile__unlock-avatars img {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.85);
    margin-left: -0.45rem;
    background: #fff;
}

.unlock-profile .unlock-profile__unlock-avatars img:first-child {
    margin-left: 0;
}

.unlock-profile .unlock-profile__unlock-trust-text {
    margin: 0;
    font-size: 0.62rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
}

.unlock-profile .unlock-profile__contacts-title {
    margin: 0 0 0.25rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e2a44;
}

.unlock-profile .unlock-profile__contacts-desc {
    margin: 0 0 0.75rem;
    font-size: 0.65rem;
    color: var(--scvs-muted);
    line-height: 1.4;
}

.unlock-profile .unlock-profile__card--actions {
    padding: 0.85rem;
}

.unlock-profile .unlock-profile__card--cv-strip {
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--scvs-primary-border);
    background: linear-gradient(135deg, #fbf9ff 0%, #f3effa 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.unlock-profile .unlock-profile__cv-strip-left {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    flex: 1;
}

.unlock-profile .unlock-profile__cv-strip-ico {
    width: 1.9rem;
    height: 1.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--scvs-primary);
    background: rgba(122, 44, 191, 0.12);
    border: 1px solid rgba(122, 44, 191, 0.22);
    flex-shrink: 0;
}

.unlock-profile .unlock-profile__cv-strip-text {
    margin: 0;
    font-size: 0.62rem;
    color: #3d4a63;
    line-height: 1.35;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.unlock-profile .unlock-profile__cv-strip-btn {
    flex-shrink: 0;
    padding: 0.42rem 0.8rem;
    font-size: 0.68rem;
    font-weight: 500;
    color: #fff;
    background: var(--scvs-primary);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(var(--scvs-primary-rgb), 0.22);
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.unlock-profile .unlock-profile__cv-strip-btn:hover {
    background: var(--scvs-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(var(--scvs-primary-rgb), 0.26);
}

.unlock-profile .unlock-profile__card--locked-cv {
    padding: 0.95rem 1rem 1rem;
    background: var(--scvs-surface);
    box-shadow: 0 4px 18px rgba(26, 21, 35, 0.07);
}

.unlock-profile .unlock-profile__locked-cv-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.3rem;
}

.unlock-profile .unlock-profile__locked-cv-icon {
    width: 1.65rem;
    height: 1.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    color: var(--scvs-primary);
    background: var(--scvs-primary-tint);
    border: 1px solid var(--scvs-primary-border);
    border-radius: 8px;
    flex-shrink: 0;
}

.unlock-profile .unlock-profile__locked-cv-title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e2a44;
    line-height: 1.2;
}

.unlock-profile .unlock-profile__locked-cv-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.unlock-profile .unlock-profile__locked-cv-copy {
    flex: 1;
    min-width: 0;
}

.unlock-profile .unlock-profile__locked-cv-text {
    margin: 0;
    font-size: 0.68rem;
    color: var(--scvs-muted);
    line-height: 1.5;
    max-width: 11rem;
}

.unlock-profile .unlock-profile__locked-cv-art {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.unlock-profile .unlock-profile__locked-cv-doc {
    position: relative;
    width: 3.5rem;
    height: 4rem;
    padding: 0.55rem 0.45rem 0.7rem;
    background: linear-gradient(180deg, #f8f7fc 0%, #ece9f4 100%);
    border: 1px solid var(--scvs-border);
    border-radius: 8px;
    opacity: .7;
    box-shadow: 0 6px 14px rgba(var(--scvs-primary-rgb), 0.1);
}

.unlock-profile .unlock-profile__locked-cv-doc-line {
    display: block;
    height: 4px;
    margin-bottom: 0.35rem;
    background: #d8d2e6;
    border-radius: 999px;
}

.unlock-profile .unlock-profile__locked-cv-doc-line--short {
    width: 72%;
}

.unlock-profile .unlock-profile__locked-cv-pdf {
    position: absolute;
    right: -0.35rem;
    bottom: 0.55rem;
    padding: 0.12rem 0.35rem;
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #fff;
    background: var(--scvs-primary);
    border-radius: 4px;
    line-height: 1.2;
}

.unlock-profile .unlock-profile__locked-cv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    padding: 0.62rem 1rem;
    font-size: 0.76rem;
    font-weight: 500;
    color: #fff;
    background: var(--scvs-primary);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(var(--scvs-primary-rgb), 0.28);
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.unlock-profile .unlock-profile__locked-cv-btn:hover:not(:disabled) {
    background: var(--scvs-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(var(--scvs-primary-rgb), 0.32);
}

.unlock-profile .unlock-profile__locked-cv-btn:disabled {
    opacity: 0.9;
    cursor: default;
    transform: none;
}

.unlock-profile .unlock-profile__card--benefits {
    padding: 0.95rem 1rem;
    background: linear-gradient(135deg, #faf8fd 0%, #f3effa 100%);
    border: 1px solid var(--scvs-primary-border);
}

.unlock-profile .unlock-profile__benefits-title {
    margin: 0 0 0.7rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--scvs-primary);
    line-height: 1.3;
}

.unlock-profile .unlock-profile__benefits-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.unlock-profile .unlock-profile__benefits-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.unlock-profile .unlock-profile__benefits-item {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.66rem;
    font-weight: 500;
    color: #3d4a63;
    line-height: 1.35;
}

.unlock-profile .unlock-profile__benefits-item .fa-check {
    width: 1rem;
    height: 1rem;
    margin-top: 0.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    color: #fff;
    background: var(--scvs-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.unlock-profile .unlock-profile__benefits-badge {
    width: 3.25rem;
    height: 3.25rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #fff;
    background: radial-gradient(
        circle at 30% 25%,
        #b57ae8 0%,
        var(--scvs-primary) 55%,
        #5b21a8 100%
    );
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(var(--scvs-primary-rgb), 0.35);
}

.unlock-profile .unlock-profile__benefits-badge .fa-award {
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.15));
}

.unlock-profile .unlock-profile__locked-cv-file {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.65rem;
    background: var(--scvs-bg);
    border: 1px dashed var(--scvs-border);
    border-radius: 10px;
    margin-bottom: 0.65rem;
}

.unlock-profile .unlock-profile__locked-cv-file .fa-file-pdf {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--scvs-primary);
    background: #fff;
    border: 1px solid var(--scvs-primary-border);
    border-radius: 8px;
    flex-shrink: 0;
}

.unlock-profile .unlock-profile__locked-cv-filename {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--scvs-text);
    line-height: 1.2;
}

.unlock-profile .unlock-profile__locked-cv-filehint {
    font-size: 0.6rem;
    color: var(--scvs-muted);
    margin-top: 0.15rem;
}

.unlock-profile .unlock-profile__locked-cv-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.unlock-profile .unlock-profile__locked-cv-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--scvs-primary);
    background: transparent;
    border: 1px solid var(--scvs-primary-border);
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.unlock-profile .unlock-profile__locked-cv-action:hover {
    background: var(--scvs-primary-tint);
    border-color: var(--scvs-primary);
    color: var(--scvs-primary-hover);
}

.unlock-profile .unlock-profile__locked-cv-action--primary {
    color: #fff;
    background: var(--scvs-primary);
    border-color: var(--scvs-primary);
}

.unlock-profile .unlock-profile__locked-cv-action--primary:hover {
    color: #fff;
    background: var(--scvs-primary-hover);
    border-color: var(--scvs-primary-hover);
}

.unlock-profile .unlock-profile__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.85rem 1.15rem;
}

.unlock-profile .unlock-profile__avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.unlock-profile .unlock-profile__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--scvs-primary-tint);
    filter: blur(4px);
}

.unlock-profile .unlock-profile__avatar--blurred {
    filter: blur(4px);
}

.unlock-profile .unlock-profile__score {
    position: absolute;
    right: -4px;
    bottom: -4px;
    min-width: 1.65rem;
    height: 1.65rem;
    padding: 0 0.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 500;
    color: #fff;
    background: var(--scvs-primary);
    border: 2px solid var(--scvs-surface);
    border-radius: 999px;
}

.unlock-profile .unlock-profile__identity {
    min-width: 0;
}

.unlock-profile .unlock-profile__name-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.25rem;
}

.unlock-profile .unlock-profile__name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--scvs-text);
    line-height: 1.2;
}

.unlock-profile .unlock-profile__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.unlock-profile .unlock-profile__badge {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-radius: 999px;
    line-height: 1.4;
}

.unlock-profile .unlock-profile__badge--start {
    color: var(--scvs-primary);
    background: var(--scvs-primary-tint);
    border: 1px solid var(--scvs-primary-border);
}

.unlock-profile .unlock-profile__badge--applied {
    color: #fff;
    background: var(--scvs-success);
}

.unlock-profile .unlock-profile__title {
    margin: 0 0 0.25rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--scvs-muted);
}

.unlock-profile .unlock-profile__meta {
    margin: 0;
    font-size: 0.68rem;
    color: var(--scvs-muted);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
}

.unlock-profile .unlock-profile__meta .fa-location-dot {
    color: var(--scvs-primary);
    font-size: 0.65rem;
}

.unlock-profile .unlock-profile__meta-sep {
    opacity: 0.5;
}

.unlock-profile .unlock-profile__card--personal {
    padding: 0.85rem 1rem 1rem;
}

.unlock-profile .unlock-profile__section-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0 0 0.75rem;
    padding: 0 0 0.55rem;
    border: none;
    border-bottom: 1px solid var(--scvs-border);
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.unlock-profile .unlock-profile__section-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--scvs-primary);
}

.unlock-profile .unlock-profile__chevron {
    font-size: 0.65rem;
    color: var(--scvs-muted);
    transition: transform 0.2s ease;
}

.unlock-profile .unlock-profile__section-toggle[aria-expanded="false"] .unlock-profile__chevron {
    transform: rotate(-90deg);
}

.unlock-profile .unlock-profile__section-body[hidden] {
    display: none;
}

.unlock-profile .unlock-profile__info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1.25rem;
    margin: 0;
}

.unlock-profile .unlock-profile__info-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    margin: 0;
}

.unlock-profile .unlock-profile__info-icon {
    width: 2.15rem;
    height: 2.15rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    color: var(--scvs-primary);
    background: var(--scvs-primary-tint);
    border: 1px solid var(--scvs-primary-border);
    border-radius: 8px;
}

.unlock-profile .unlock-profile__info-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.unlock-profile .unlock-profile__info-label {
    font-size: 0.62rem;
    font-weight: 500;
    color: #5b6b8a;
    line-height: 1.3;
}

.unlock-profile .unlock-profile__info-value {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--scvs-text);
    line-height: 1.35;
}

.unlock-profile .unlock-profile__info-item--wide {
    grid-column: 1 / -1;
}

.unlock-profile .unlock-profile__block-title {
    margin: 0 0 0.6rem;
    padding-bottom: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--scvs-primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border-bottom: 1px solid var(--scvs-border);
    line-height: 1.3;
}

.unlock-profile .unlock-profile__block-title .fa-solid {
    width: 1.35rem;
    height: 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: var(--scvs-primary);
    background: var(--scvs-primary-tint);
    border: 1px solid var(--scvs-primary-border);
    border-radius: 5px;
    flex-shrink: 0;
}

.unlock-profile .unlock-profile__timeline {
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: 0 0.65rem;
    align-items: start;
}

.unlock-profile .unlock-profile__timeline--single .unlock-profile__timeline-rail {
    align-self: start;
}

.unlock-profile .unlock-profile__timeline--inline {
    align-items: flex-start;
}

.unlock-profile .unlock-profile__timeline-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100%;
}

.unlock-profile .unlock-profile__timeline-icon {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    color: var(--scvs-primary);
    background: var(--scvs-primary-tint);
    border: 1px solid var(--scvs-primary-border);
    border-radius: 6px;
    flex-shrink: 0;
}

.unlock-profile .unlock-profile__timeline-line {
    flex: 1;
    width: 2px;
    min-height: 1.5rem;
    margin-top: 0.35rem;
    background: linear-gradient(var(--scvs-primary-border), var(--scvs-border));
    border-radius: 2px;
}

.unlock-profile .unlock-profile__timeline--single .unlock-profile__timeline-line,
.unlock-profile .unlock-profile__timeline--inline .unlock-profile__timeline-line {
    display: none;
}

.unlock-profile .unlock-profile__timeline-body {
    min-width: 0;
    padding-bottom: 0.15rem;
    flex: 1;
}

.unlock-profile .unlock-profile__card--section .unlock-profile__tags,
.unlock-profile .unlock-profile__card--section .unlock-profile__lang-list,
.unlock-profile .unlock-profile__card--section .unlock-profile__skills-grid {
    flex: 1;
}

.unlock-profile .unlock-profile__timeline-entry {
    position: relative;
    padding-left: 0.65rem;
    margin-bottom: 0.75rem;
}

.unlock-profile .unlock-profile__timeline-entry::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--scvs-border);
}

.unlock-profile .unlock-profile__timeline-entry:last-of-type {
    margin-bottom: 0;
}

.unlock-profile .unlock-profile__timeline-company {
    margin: 0 0 0.2rem;
    font-size: 0.65rem;
    color: var(--scvs-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.unlock-profile .unlock-profile__timeline-company .fa-solid,
.unlock-profile .unlock-profile__timeline-company .fa-graduation-cap {
    color: var(--scvs-primary);
    font-size: 0.6rem;
}

.unlock-profile .unlock-profile__timeline-role {
    margin: 0 0 0.2rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--scvs-text);
    line-height: 1.35;
}

.unlock-profile .unlock-profile__timeline-type {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--scvs-muted);
}

.unlock-profile .unlock-profile__timeline-date {
    margin: 0;
    font-size: 0.65rem;
    color: var(--scvs-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.unlock-profile .unlock-profile__timeline-date .fa-solid {
    color: var(--scvs-primary);
    font-size: 0.6rem;
}

.unlock-profile .unlock-profile__view-more {
    margin-top: 0.35rem;
    padding: 0;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--scvs-primary);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.unlock-profile .unlock-profile__view-more:hover {
    color: var(--scvs-primary-hover);
}

.unlock-profile .unlock-profile__skills-more {
    margin-top: 0.55rem;
    padding: 0;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--scvs-primary);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.unlock-profile .unlock-profile__skills-more:hover {
    color: var(--scvs-primary-hover);
}

.unlock-profile .unlock-profile__view-more,
.unlock-profile .unlock-profile__skills-more {
    display: inline-flex;
  
    gap: 0.35rem;
}

.unlock-profile .unlock-profile__more-ico {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
}

.unlock-profile .unlock-profile__view-more.is-expanded .unlock-profile__more-ico,
.unlock-profile .unlock-profile__skills-more.is-expanded .unlock-profile__more-ico {
    transform: rotate(180deg);
}

.unlock-profile .unlock-profile__skills-count {
    display: inline;
    min-width: 0;
    height: auto;
    padding: 0;
    background: transparent;
    color: var(--scvs-primary);
}

.unlock-profile .unlock-profile__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    min-width: 0;
}

.unlock-profile .unlock-profile__tag {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--scvs-primary);
    background: var(--scvs-primary-tint);
    border: 1px solid var(--scvs-primary-border);
    border-radius: 999px;
    line-height: 1.3;
}

.unlock-profile .unlock-profile__card--skills .unlock-profile__block-title {
    margin-bottom: 0.35rem;
}

.unlock-profile .unlock-profile__skills-meta {
    margin: 0 0 0.55rem;
    font-size: 0.62rem;
    color: var(--scvs-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.unlock-profile .unlock-profile__skills-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.3rem;
    font-size: 0.58rem;
    font-weight: 500;
    font-style: normal;
    color: #fff;
    background: var(--scvs-primary);
    border-radius: 999px;
}

.unlock-profile .unlock-profile__skills-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
    flex: 1;
}

.unlock-profile .unlock-profile__skill {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    height: 2.35rem;
    padding: 0 0.75rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--scvs-text);
    background: linear-gradient(135deg, #fff 0%, var(--scvs-primary-tint) 100%);
    border: 1px solid var(--scvs-primary-border);
    border-radius: 6px;
    line-height: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.unlock-profile .unlock-profile__skill:hover {
    border-color: var(--scvs-primary);
    box-shadow: 0 2px 8px rgba(var(--scvs-primary-rgb), 0.12);
    transform: translateY(-1px);
}

.unlock-profile .unlock-profile__skill .fa-solid,
.unlock-profile .unlock-profile__skill .fa-brands {
    width: 1.1rem;
    height: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.58rem;
    color: var(--scvs-primary);
    background: #fff;
    border: 1px solid var(--scvs-primary-border);
    border-radius: 4px;
    flex-shrink: 0;
}

.unlock-profile .unlock-profile__skill span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.unlock-profile .unlock-profile__lang-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
}

.unlock-profile .unlock-profile__lang-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem 0.5rem;
    padding: 0.35rem 0;
    font-size: 0.72rem;
    border-bottom: 1px dashed var(--scvs-border);
}

.unlock-profile .unlock-profile__lang-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.unlock-profile .unlock-profile__lang-name {
    font-weight: 600;
    color: var(--scvs-text);
}

.unlock-profile .unlock-profile__lang-level {
    font-size: 0.65rem;
    color: var(--scvs-muted);
    padding: 0.12rem 0.4rem;
    background: var(--scvs-bg);
    border-radius: 999px;
}

.unlock-profile .unlock-profile__unlock-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    margin: 0;
    padding: 0.62rem 1rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--scvs-primary);
    background: #fff;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
    transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.unlock-profile .unlock-profile__unlock-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
}

.unlock-profile .unlock-profile__unlock-btn:disabled {
    opacity: 0.92;
    cursor: default;
    transform: none;
}

.unlock-profile .unlock-profile__contacts {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.45rem;
    width: 100%;
}

.unlock-profile .unlock-profile__contact {
    width: 100%;
    max-width: 2.35rem;
    aspect-ratio: 1;
    margin: 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.72rem;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.unlock-profile .unlock-profile__contact--locked {
    color: var(--scvs-primary);
    background: var(--scvs-primary-tint);
    border: 1px solid var(--scvs-primary-border);
    cursor: not-allowed;
    opacity: 0.85;
}

.unlock-profile .unlock-profile__contact--active {
    color: var(--scvs-primary);
    background: #fff;
    border: 1px solid var(--scvs-primary);
    cursor: pointer;
    opacity: 1;
}

.unlock-profile.is-unlocked .unlock-profile__card--unlock {
    background: linear-gradient(
        145deg,
        #22c55e 0%,
        #16a34a 55%,
        #15803d 100%
    );
}

.unlock-profile .unlock-profile__pipeline {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.65rem;
    padding: 0.4rem;
    background: var(--scvs-bg);
    border-radius: 8px;
}

.unlock-profile .unlock-profile__step {
    flex: 1;
    min-width: 1.65rem;
    height: 1.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.58rem;
    border-radius: 6px;
    border: 1px solid var(--scvs-border);
    background: var(--scvs-surface);
    color: var(--scvs-muted);
}

.unlock-profile .unlock-profile__step--current {
    color: #fff;
    background: var(--scvs-primary);
    border-color: var(--scvs-primary);
}

.unlock-profile .unlock-profile__step--done {
    color: #fff;
    background: var(--scvs-success);
    border-color: var(--scvs-success);
}

.unlock-profile .unlock-profile__step--star {
    color: #fff;
    background: var(--scvs-warning);
    border-color: var(--scvs-warning);
}

.unlock-profile .unlock-profile__quick-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.unlock-profile .unlock-profile__action {
    flex: 1;
    max-width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border: 1px solid var(--scvs-border);
    border-radius: 8px;
    background: var(--scvs-surface);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.unlock-profile .unlock-profile__action--reject {
    color: var(--scvs-danger);
}

.unlock-profile .unlock-profile__action--reject:hover {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.35);
}

.unlock-profile .unlock-profile__action--flag {
    color: var(--scvs-primary);
}

.unlock-profile .unlock-profile__action--flag:hover {
    background: var(--scvs-primary-tint);
    border-color: var(--scvs-primary-border);
}

.unlock-profile .unlock-profile__autoload {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.unlock-profile .unlock-profile__autoload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.unlock-profile .unlock-profile__autoload-track {
    position: relative;
    width: 2.5rem;
    height: 1.35rem;
    flex-shrink: 0;
    background: #d1d5db;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.unlock-profile .unlock-profile__autoload-track::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1rem;
    height: 1rem;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.unlock-profile .unlock-profile__autoload-input:checked + .unlock-profile__autoload-track {
    background: var(--scvs-primary);
}

.unlock-profile .unlock-profile__autoload-input:checked + .unlock-profile__autoload-track::after {
    transform: translateX(1.15rem);
}

.unlock-profile .unlock-profile__autoload-input:focus-visible + .unlock-profile__autoload-track {
    outline: 2px solid var(--scvs-primary);
    outline-offset: 2px;
}

.unlock-profile .unlock-profile__autoload-label {
    font-size: 0.65rem;
    font-style: italic;
    color: var(--scvs-muted);
}

.unlock-profile.is-unlocked .unlock-profile__avatar {
    filter: none;
}

.unlock-profile.is-unlocked .unlock-profile__name {
    color: var(--scvs-primary);
}

@media (max-width: 1199.98px) {
    .unlock-profile .unlock-profile__layout {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
        gap: 1rem;
    }
}

@media (max-width: 991.98px) {
    .unlock-profile .unlock-profile__layout {
        grid-template-columns: 1fr;
    }



    .unlock-profile .unlock-profile__card--unlock,
    .unlock-profile .unlock-profile__card--contacts,
    .unlock-profile .unlock-profile__card--locked-cv,
    .unlock-profile .unlock-profile__card--benefits {
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }

    .unlock-profile .unlock-profile__row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .unlock-profile .unlock-profile__card {
        padding: 1rem 1.1rem;
    }

    .unlock-profile .unlock-profile__card--header {
        padding: 0.95rem 1rem;
    }

    .unlock-profile .unlock-profile__card--header::after {
        width: 80%;
        opacity: 0.6;
    }

    .unlock-profile .unlock-profile__header--hero {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .unlock-profile .unlock-profile__avatar {
        width: 72px;
        height: 72px;
    }

    .unlock-profile .unlock-profile__name {
        font-size: 0.95rem;
    }

    .unlock-profile .unlock-profile__timeline {
        grid-template-columns: 1.85rem minmax(0, 1fr);
    }

    .unlock-profile .unlock-profile__timeline-icon {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.65rem;
    }

    .unlock-profile .unlock-profile__card--cv-strip {
        flex-direction: column;
        align-items: stretch;
        gap: 0.55rem;
    }

    .unlock-profile .unlock-profile__cv-strip-text {
        white-space: normal;
        overflow: visible;
        text-overflow: initial;
    }

    .unlock-profile .unlock-profile__cv-strip-btn {
        width: 100%;
    }

    .unlock-profile .unlock-profile__info-grid {
        gap: 0.5rem;
    }

    .unlock-profile .unlock-profile__info-item--wide {
        grid-column: 1;
    }

    .unlock-profile .unlock-profile__pipeline {
        flex-wrap: wrap;
    }

    .unlock-profile .unlock-profile__step {
        flex: 0 1 calc(20% - 0.3rem);
        min-width: 1.75rem;
        height: 1.75rem;
        font-size: 0.6rem;
    }
}

@media (max-width: 479.98px) {


    .unlock-profile .unlock-profile__skill span {
        white-space: normal;
    }

    .unlock-profile .unlock-profile__name-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .unlock-profile .unlock-profile__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .unlock-profile .unlock-profile__meta-sep {
        display: none;
    }

    .unlock-profile .unlock-profile__unlock-hero {
        gap: 0.6rem;
    }

    .unlock-profile .unlock-profile__unlock-shield {
        width: 2.85rem;
        height: 2.85rem;
    }

    .unlock-profile .unlock-profile__locked-cv-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .unlock-profile .unlock-profile__locked-cv-art {
        align-self: flex-end;
    }

    .unlock-profile .unlock-profile__locked-cv-text {
        max-width: none;
    }


    .unlock-profile .unlock-profile__benefits-badge {
        align-self: center;
    }

    .unlock-profile .unlock-profile__contacts {
        gap: 0.5rem;
    }

    .unlock-profile .unlock-profile__contact {
        max-width: 2.5rem;
        font-size: 0.75rem;
    }

    .unlock-profile .unlock-profile__quick-actions {
        justify-content: center;
    }
}

/* ============================================
   System Tutorials (system_Tutorials.html)
   Parent ? child selectors only
   ============================================ */

/* ---- Filter bar ---- */
.filter-bar-tutorials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.filter-bar-tutorials .filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #4b5563;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.25;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-bar-tutorials .filter-btn:hover {
    border-color: rgba(122, 44, 191, 0.35);
    color: var(--company-brand-primary, #7b2cbf);
    background: rgba(122, 44, 191, 0.06);
}

.filter-bar-tutorials .filter-btn.active {
    background: var(--company-brand-primary, #7b2cbf);
    border-color: var(--company-brand-primary, #7b2cbf);
    color: #fff;
    font-weight: 500;
    box-shadow: 0 3px 12px rgba(122, 44, 191, 0.22);
}

/* ---- Tutorials grid ---- */
.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}

.tutorials-grid .tutorial-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ececf1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tutorials-grid .tutorial-card:hover {
    transform: translateY(-2px);
    border-color: rgba(122, 44, 191, 0.22);
    box-shadow: 0 6px 18px rgba(122, 44, 191, 0.1);
}

.tutorials-grid .tutorial-card.is-hidden {
    display: none;
}

/* ---- Video wrapper (YouTube embed container) ---- */
.tutorials-grid .tutorial-card .video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111827;
    overflow: hidden;
}

.tutorials-grid .tutorial-card .video-wrap .video-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tutorials-grid .tutorial-card .video-wrap .play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.15) 0%, rgba(17, 24, 39, 0.45) 100%);
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 2;
}

.tutorials-grid .tutorial-card .video-wrap .play-btn:hover,
.tutorials-grid .tutorial-card .video-wrap .play-btn:focus-visible {
    background: rgba(17, 24, 39, 0.42);
    outline: none;
}

.tutorials-grid .tutorial-card .video-wrap .play-btn .play-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease;
}

.tutorials-grid .tutorial-card .video-wrap .play-btn:hover .play-icon,
.tutorials-grid .tutorial-card .video-wrap .play-btn:focus-visible .play-icon {
    transform: scale(1.06);
}

.tutorials-grid .tutorial-card .video-wrap .play-btn .play-icon svg {
    width: 15px;
    height: 15px;
    fill: var(--company-brand-primary, #7b2cbf);
    margin-left: 2px;
}

.tutorials-grid .tutorial-card .video-wrap .duration {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 2px 6px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.2;
    z-index: 2;
}

/* YouTube iframe � width only; parent controls layout when playing */
.tutorials-grid .tutorial-card .video-wrap iframe {
    width: 100%;
    border: 0;
}

.tutorials-grid .tutorial-card .video-wrap:not(.is-playing) iframe {
    display: none;
}

.tutorials-grid .tutorial-card .video-wrap.is-playing .video-thumb,
.tutorials-grid .tutorial-card .video-wrap.is-playing .play-btn,
.tutorials-grid .tutorial-card .video-wrap.is-playing .duration {
    display: none;
}

.tutorials-grid .tutorial-card .video-wrap.is-playing iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.tutorials-grid .tutorial-card.is-active {
    border-color: rgba(122, 44, 191, 0.35);
    box-shadow: 0 12px 32px rgba(122, 44, 191, 0.16);
}

.tutorials-grid .tutorial-card.is-active:hover {
    transform: none;
}

/* ---- Card body ---- */
.tutorials-grid .tutorial-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
    padding: 14px 14px 16px;
    border-top: 1px solid #f3f4f6;
}

.tutorials-grid .tutorial-card .card-body .card-tag {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.3;
}

.tutorials-grid .tutorial-card .card-body .card-tag.jobs {
    color: #5b21b6;
    background: rgba(91, 33, 182, 0.1);
}

.tutorials-grid .tutorial-card .card-body .card-tag.candidates {
    color: #0369a1;
    background: rgba(3, 105, 161, 0.1);
}

.tutorials-grid .tutorial-card .card-body .card-tag.emails {
    color: #b45309;
    background: rgba(180, 83, 9, 0.1);
}

.tutorials-grid .tutorial-card .card-body .card-tag.filters {
    color: #0f766e;
    background: rgba(15, 118, 110, 0.1);
}

.tutorials-grid .tutorial-card .card-body .card-tag.departments {
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.1);
}

.tutorials-grid .tutorial-card .card-body .card-tag.settings {
    color: #4b5563;
    background: rgba(75, 85, 99, 0.12);
}

.tutorials-grid .tutorial-card .card-body .card-tag.reports {
    color: #be123c;
    background: rgba(190, 18, 60, 0.1);
}

.tutorials-grid .tutorial-card .card-body .card-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tutorials-grid .tutorial-card .card-body .card-desc {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 400;
    color: #6b7280;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tutorials-grid .tutorial-card .card-body .card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
    font-size: 0.7rem;
    font-weight: 400;
    color: #9ca3af;
}

.tutorials-grid .tutorial-card .card-body .card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tutorials-grid .tutorial-card .card-body .card-meta i {
    font-size: 0.7rem;
    color: #b0b7c3;
}

/* ---- Empty state ---- */
.tutorials-empty {
    display: none;
    grid-column: 1 / -1;
    text-align: center;
    padding: 36px 20px;
    background: #fff;
    border: 1px dashed #e5e7eb;
    border-radius: 12px;
    color: #6b7280;
}

.tutorials-empty.is-visible {
    display: block;
}

.tutorials-empty i {
    font-size: 2rem;
    color: var(--company-brand-primary, #7b2cbf);
    margin-bottom: 12px;
    opacity: 0.7;
}

.tutorials-empty p {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 400;
}

/* ---- Responsive ---- */
@media (max-width: 1399.98px) {
    .tutorials-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 991.98px) {
    .tutorials-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 767.98px) {
    .filter-bar-tutorials {
        gap: 8px;
        margin-bottom: 14px;
    }

    .filter-bar-tutorials .filter-btn {
        padding: 6px 10px;
        font-size: 0.72rem;
        font-weight: 500;
    }

    .tutorials-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .tutorials-grid .tutorial-card {
        border-radius: 10px;
    }

    .tutorials-grid .tutorial-card .card-body {
        gap: 6px;
        padding: 10px 10px 12px;
    }

    .tutorials-grid .tutorial-card .card-body .card-tag {
        padding: 2px 7px;
        font-size: 0.58rem;
    }

    .tutorials-grid .tutorial-card .card-body .card-title {
        font-size: 0.7rem;
        line-height: 1.35;
        -webkit-line-clamp: 2;
    }

    .tutorials-grid .tutorial-card .card-body .card-desc {
        font-size: 0.62rem;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }

    .tutorials-grid .tutorial-card .card-body .card-meta {
        align-items: flex-start;
        gap: 4px;
        padding-top: 8px;
        font-size: 0.62rem;
    }

    .tutorials-grid .tutorial-card .card-body .card-meta span {
        gap: 4px;
    }

    .tutorials-grid .tutorial-card .video-wrap .play-btn .play-icon {
        width: 36px;
        height: 36px;
    }

    .tutorials-grid .tutorial-card .video-wrap .play-btn .play-icon svg {
        width: 12px;
        height: 12px;
    }

    .tutorials-grid .tutorial-card .video-wrap .duration {
        right: 6px;
        bottom: 6px;
        padding: 2px 5px;
        font-size: 0.58rem;
    }

    .tutorials-empty {
        padding: 28px 16px;
    }
}

@media (max-width: 479.98px) {
    .filter-bar-tutorials .filter-btn {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
        padding: 6px 8px;
        font-size: 0.68rem;
    }

    .tutorials-grid {
        gap: 8px;
    }

    .tutorials-grid .tutorial-card .card-body {
        padding: 8px 8px 10px;
    }

    .tutorials-grid .tutorial-card .card-body .card-desc {
        -webkit-line-clamp: 2;
    }
}

/* ============================================================
   MANAGE SYSTEM TUTORIALS  �  parent ? child (.manage-system-tutorials)
   ============================================================ */

.manage-system-tutorials {
    font-size: 0.75rem;
    color: #444455;
    line-height: 1.4;
    margin-top: 25px;
}

/* -- Stats row -- */
.manage-system-tutorials .mst-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.manage-system-tutorials .mst-stats:has(> .mst-stat-card:only-child) {
    grid-template-columns: minmax(0, 1fr);
}

.manage-system-tutorials .mst-stats:has(> .mst-stat-card:nth-child(3):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.manage-system-tutorials .mst-stats:has(> .mst-stat-card:nth-child(4)) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.manage-system-tutorials .mst-stats .mst-stat-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #fff;
    border: 1px solid #ececf0;
    border-radius: 10px;
    padding: 0.65rem 0.8rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.manage-system-tutorials .mst-stats .mst-stat-card:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
    border-color: #e0dce8;
}

.manage-system-tutorials .mst-stats .mst-stat-card .mst-stat-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.manage-system-tutorials .mst-stats .mst-stat-card .mst-stat-card__icon--total {
    background: #f3ecff;
    color: #771BC8;
}

.manage-system-tutorials .mst-stats .mst-stat-card .mst-stat-card__icon--published {
    background: #edfaf4;
    color: #1a7a52;
}

.manage-system-tutorials .mst-stats .mst-stat-card .mst-stat-card__icon--draft {
    background: #fef9ec;
    color: #b07d10;
}

.manage-system-tutorials .mst-stats .mst-stat-card .mst-stat-card__icon--views {
    background: #e8f0fd;
    color: #2563eb;
}

.manage-system-tutorials .mst-stats .mst-stat-card .mst-stat-card__body {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
}

.manage-system-tutorials .mst-stats .mst-stat-card .mst-stat-card__value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
}

.manage-system-tutorials .mst-stats .mst-stat-card .mst-stat-card__label {
    font-size: 0.68rem;
    font-weight: 600;
    color: #3a3a4a;
    margin-top: 0.05rem;
}

.manage-system-tutorials .mst-stats .mst-stat-card .mst-stat-card__hint {
    font-size: 0.6rem;
    color: #9999aa;
    margin-top: 0.05rem;
}

/* -- Table root (parent container) -- */
.manage-system-tutorials .mst-table-root {
    background: #fff;
    border: 1px solid #e8e8ec;
    border-radius: 11px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.01);
    overflow: hidden;
}

/* toolbar */
.manage-system-tutorials .mst-table-root .mst-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.5rem 0.7rem;
    border-bottom: 1px solid #ececf0;
    background: linear-gradient(180deg, #fefefe 0%, #fafafb 100%);
}

.manage-system-tutorials .mst-table-root .mst-toolbar .mst-toolbar__search {
    position: relative;
    flex: 0 1 200px;
    min-width: 140px;
    max-width: 220px;
}

.manage-system-tutorials .mst-table-root .mst-toolbar .mst-toolbar__search-icon {
    position: absolute;
    left: 0.55rem;
    top: 50%;
    transform: translateY(-50%);
    color: #aaaabb;
    font-size: 0.65rem;
    pointer-events: none;
}

.manage-system-tutorials .mst-table-root .mst-toolbar .mst-toolbar__search-input {
    width: 100%;
    padding: 0.3rem 0.6rem 0.3rem 1.65rem;
    border: 1px solid #e4e4e8;
    border-radius: 7px;
    font-size: 0.68rem;
    background: #fafafa;
    color: #374151;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.manage-system-tutorials .mst-table-root .mst-toolbar .mst-toolbar__search-input::placeholder {
    font-size: 0.65rem;
}
.manage-system-tutorials .mst-table-root .mst-toolbar .mst-toolbar__search-input:focus {
    outline: none;
    border-color: #771BC8;
    box-shadow: 0 0 0 3px rgba(119, 27, 200, 0.08);
    background: #fff;
}

.manage-system-tutorials .mst-table-root .mst-toolbar .mst-toolbar__filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.manage-system-tutorials .mst-table-root .mst-toolbar .mst-toolbar__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-left: auto;
}

.manage-system-tutorials .mst-table-root .mst-toolbar .mst-toolbar__per-page {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.38rem;
    border: 1px solid #e8e8ec;
    border-radius: 6px;
    background: #fafafa;
}

.manage-system-tutorials .mst-table-root .mst-toolbar .mst-per-page__label {
    font-size: 0.6rem;
    font-weight: 600;
    color: #888899;
    white-space: nowrap;
}

.manage-system-tutorials .mst-table-root .mst-toolbar .mst-per-page__select {
    width: 46px;
    min-width: 46px;
    padding: 0.2rem 1.1rem 0.2rem 0.35rem;
    border: none;
    border-radius: 5px;
    font-size: 0.6rem;
    font-weight: 600;
    color: #444455;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath fill='%23999' d='M0 0l4 5 4-5z'/%3E%3C/svg%3E") no-repeat right 0.15rem center;
    appearance: none;
    cursor: pointer;
    line-height: 1.2;
}

.manage-system-tutorials .mst-table-root .mst-toolbar .mst-per-page__select:focus {
    outline: none;
}

.manage-system-tutorials .mst-table-root .mst-toolbar .mst-toolbar__export {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
}

.manage-system-tutorials .mst-table-root .mst-toolbar .mst-toolbar__add-group {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
}

.manage-system-tutorials .mst-table-root .mst-toolbar .mst-export-btn {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
    padding: 0.24rem 0.48rem;
    border: 1px solid #e4e4e8;
    border-radius: 6px;
    background: #fff;
    font-size: 0.58rem;
    font-weight: 600;
    color: #555566;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
    white-space: nowrap;
    line-height: 1.2;
}

.manage-system-tutorials .mst-table-root .mst-toolbar .mst-export-btn i {
    font-size: 0.65rem;
}

.manage-system-tutorials .mst-table-root .mst-toolbar .mst-export-btn--excel:hover {
    background: #edfaf4;
    border-color: #b8e6d0;
    color: #1a7a52;
}

.manage-system-tutorials .mst-table-root .mst-toolbar .mst-export-btn--word:hover {
    background: #e8f0fd;
    border-color: #b8d0f0;
    color: #2563eb;
}

.manage-system-tutorials .mst-table-root .mst-toolbar .mst-btn-add {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.48rem 0.65rem;
    background: #771BC8;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.62rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 6px rgba(119, 27, 200, 0.2);
    white-space: nowrap;
    line-height: 1.2;
}

.manage-system-tutorials .mst-table-root .mst-toolbar .mst-btn-add:hover {
    background: #5e15a0;
    box-shadow: 0 2px 8px rgba(119, 27, 200, 0.28);
}

.manage-system-tutorials .mst-table-root .mst-toolbar .mst-btn-add i {
    font-size: 0.6rem;
}

.manage-system-tutorials .mst-table-root .mst-toolbar .mst-btn-add--outline {
    background: #fff;
    color: #771BC8;
    border: 1px solid #771BC8;
    box-shadow: none;
}

.manage-system-tutorials .mst-table-root .mst-toolbar .mst-btn-add--outline:hover {
    background: rgba(119, 27, 200, 0.08);
    color: #5e15a0;
    box-shadow: none;
}

.manage-system-tutorials .mst-table-root .mst-toolbar .mst-toolbar__select {
    padding: 0.38rem 1.6rem 0.38rem 0.65rem;
    border: 1px solid #e4e4e8;
    border-radius: 8px;
    font-size: 0.68rem;
    font-weight: 500;
    color: #444455;
    background: #fafafa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23999' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E") no-repeat right 0.55rem center;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.manage-system-tutorials .mst-table-root .mst-toolbar .mst-toolbar__select:focus {
    outline: none;
    border-color: #771BC8;
    background-color: #fff;
}

.manage-system-tutorials .mst-table-root .mst-toolbar .mst-toolbar__select--per-page {
    min-width: 108px;
    font-weight: 600;
}

/* bulk action bar */
.manage-system-tutorials .mst-table-root .mst-bulk-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    background: linear-gradient(90deg, #f9f4ff 0%, #f6f0fd 100%);
    border-bottom: 1px solid #e4d8f4;
    animation: mstBulkSlideIn 0.2s ease;
}

.manage-system-tutorials .mst-table-root .mst-bulk-bar--hidden {
    display: none;
}

@keyframes mstBulkSlideIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.manage-system-tutorials .mst-table-root .mst-bulk-bar .mst-bulk-bar__count {
    font-size: 0.65rem;
    font-weight: 700;
    color: #771BC8;
    min-width: 72px;
}

.manage-system-tutorials .mst-table-root .mst-bulk-bar .mst-bulk-bar__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-left: auto;
}

.manage-system-tutorials .mst-table-root .mst-bulk-bar .mst-bulk-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.28rem 0.6rem;
    border-radius: 6px;
    border: 1px solid transparent;
    font-size: 0.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
    line-height: 1.2;
}

.manage-system-tutorials .mst-table-root .mst-bulk-bar .mst-bulk-btn i {
    font-size: 0.62rem;
}

.manage-system-tutorials .mst-table-root .mst-bulk-bar .mst-bulk-btn--publish {
    background: #edfaf4;
    color: #1a7a52;
    border-color: #c8ead8;
}

.manage-system-tutorials .mst-table-root .mst-bulk-bar .mst-bulk-btn--publish:hover {
    background: #1a7a52;
    color: #fff;
}

.manage-system-tutorials .mst-table-root .mst-bulk-bar .mst-bulk-btn--draft {
    background: #fef9ec;
    color: #b07d10;
    border-color: #f0e0b8;
}

.manage-system-tutorials .mst-table-root .mst-bulk-bar .mst-bulk-btn--draft:hover {
    background: #b07d10;
    color: #fff;
}

.manage-system-tutorials .mst-table-root .mst-bulk-bar .mst-bulk-btn--delete {
    background: #fdf2f2;
    color: #b83232;
    border-color: #f0c0c0;
}

.manage-system-tutorials .mst-table-root .mst-bulk-bar .mst-bulk-btn--delete:hover {
    background: #b83232;
    color: #fff;
}

.manage-system-tutorials .mst-table-root .mst-bulk-bar .mst-bulk-btn--clear {
    background: #fff;
    color: #666677;
    border-color: #e4e4e8;
}

.manage-system-tutorials .mst-table-root .mst-bulk-bar .mst-bulk-btn--clear:hover {
    background: #f4f4f6;
    border-color: #ccccd5;
    color: #333344;
}

/* table scroll wrapper */
.manage-system-tutorials .mst-table-root .mst-table-scroll-wrap {
    position: relative;
    --mst-col-check: 38px;
}

.manage-system-tutorials .mst-table-root .mst-table-scroll-wrap .mst-scroll-hint {
    display: none;
}

.manage-system-tutorials .mst-table-root .mst-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.manage-system-tutorials .mst-table-root .mst-table-scroll::-webkit-scrollbar {
    height: 5px;
}

.manage-system-tutorials .mst-table-root .mst-table-scroll::-webkit-scrollbar-track {
    background: #f2f2f5;
    border-radius: 3px;
}

.manage-system-tutorials .mst-table-root .mst-table-scroll::-webkit-scrollbar-thumb {
    background: #d4c0ec;
    border-radius: 3px;
}

.manage-system-tutorials .mst-table-root .mst-table-scroll::-webkit-scrollbar-thumb:hover {
    background: #b89ad8;
}

/* table */
.manage-system-tutorials .mst-table-root .mst-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 0.7rem;
    /* table-layout: fixed; */
    min-width: 680px;
}
/* equal-width columns (check narrow, 6 content cols share remainder) */
.manage-system-tutorials .mst-table-root .mst-table .mst-table__th,
.manage-system-tutorials .mst-table-root .mst-table .mst-table__td {
    width: calc((100% - 38px) / 6);
}

.manage-system-tutorials .mst-table-root .mst-table .mst-table__th--check,
.manage-system-tutorials .mst-table-root .mst-table .mst-table__td--check {
    width: 38px;
}

.manage-system-tutorials .mst-table-root .mst-table .mst-table__head {
    background: linear-gradient(180deg, #fafafb 0%, #f5f5f8 100%);
}

.manage-system-tutorials .mst-table-root .mst-table .mst-table__head .mst-table__th {
    padding: 0.45rem 0.5rem;
    text-align: left;
    font-size: 0.57rem;
    font-weight: 600;
    color: #8a8a9a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom: 1px solid #e8e8ec;
}

.manage-system-tutorials .mst-table-root .mst-table .mst-table__head .mst-table__th--check {
    text-align: center;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
}

.manage-system-tutorials .mst-table-root .mst-table .mst-table__head .mst-table__th--actions {
    text-align: center;
}

.manage-system-tutorials .mst-table-root .mst-table .mst-table__body .mst-table__row {
    border-bottom: 1px solid #f2f2f5;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.manage-system-tutorials .mst-table-root .mst-table .mst-table__body .mst-table__row:nth-child(even):not(.mst-table__row--checked) {
    background: #fafafb;
}

.manage-system-tutorials .mst-table-root .mst-table .mst-table__body .mst-table__row:hover {
    background: rgba(119, 27, 200, 0.04);
}

.manage-system-tutorials .mst-table-root .mst-table .mst-table__body .mst-table__row:last-child {
    border-bottom: none;
}

.manage-system-tutorials .mst-table-root .mst-table .mst-table__body .mst-table__row--hidden {
    display: none;
}

.manage-system-tutorials .mst-table-root .mst-table .mst-table__body .mst-table__row--checked {
    background: rgba(119, 27, 200, 0.06);
    box-shadow: inset 3px 0 0 #771BC8;
}

.manage-system-tutorials .mst-table-root .mst-table .mst-table__body .mst-table__row--checked:hover {
    background: rgba(119, 27, 200, 0.08);
}

.manage-system-tutorials .mst-table-root .mst-table .mst-table__body .mst-table__td {
    padding: 0.42rem 0.5rem;
    vertical-align: middle;
    color: #444455;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.manage-system-tutorials .mst-table-root .mst-table .mst-table__body .mst-table__td--check {
    text-align: center;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
}

.manage-system-tutorials .mst-table-root .mst-table .mst-row-check,
.manage-system-tutorials .mst-table-root .mst-table .mst-check-all {
    width: 12px;
    height: 12px;
    margin: 0;
    border: 1.5px solid #c8c8d0;
    border-radius: 3px;
    accent-color: #771BC8;
    cursor: pointer;
    vertical-align: middle;
    flex-shrink: 0;
}

.manage-system-tutorials .mst-table-root .mst-table .mst-table__body .mst-table__td--actions {
    text-align: center;
}

/* center data columns (category, link, status, date, actions) */
.manage-system-tutorials .mst-table-root .mst-table .mst-table__head .mst-table__th:nth-child(n + 3),
.manage-system-tutorials .mst-table-root .mst-table .mst-table__body .mst-table__td:nth-child(n + 3) {
    text-align: center;
}

/* title cell */
.manage-system-tutorials .mst-table-root .mst-table .mst-table__head .mst-table__th--title {
    text-align: left;
}

.manage-system-tutorials .mst-table-root .mst-table .mst-table__body .mst-table__td--title {
    vertical-align: middle;
    text-align: left;
}

.manage-system-tutorials .mst-table-root .mst-table .mst-title-cell {
    display: block;
    line-height: 1.35;
    overflow: hidden;
}

.manage-system-tutorials .mst-table-root .mst-table .mst-title-cell .mst-title-cell__name {
    display: block;
    font-weight: 400;
    font-size: 0.71rem;
    color: #3d3d4d;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.manage-system-tutorials[data-mst-table="users"] .mst-table-root .mst-table .mst-title-cell .mst-title-cell__name,
.manage-system-tutorials[data-mst-table="departments"] .mst-table-root .mst-table .mst-title-cell .mst-title-cell__name,
.manage-system-tutorials[data-mst-table="assessments"] .mst-table-root .mst-table .mst-title-cell .mst-title-cell__name,
.manage-system-tutorials[data-mst-table="roles"] .mst-table-root .mst-table .mst-title-cell .mst-title-cell__name,
.manage-system-tutorials[data-mst-table="leads"] .mst-table-root .mst-table .mst-title-cell .mst-title-cell__name,
.manage-system-tutorials[data-mst-table="plans"] .mst-table-root .mst-table .mst-title-cell .mst-title-cell__name,
.manage-system-tutorials[data-mst-table="subscriptions"] .mst-table-root .mst-table .mst-title-cell .mst-title-cell__name {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    outline: 0;
    box-shadow: none;
    background: transparent;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
}

.manage-system-tutorials[data-mst-table="users"] .mst-table-root .mst-table .mst-title-cell .mst-title-cell__name:hover,
.manage-system-tutorials[data-mst-table="users"] .mst-table-root .mst-table .mst-title-cell .mst-title-cell__name:focus-visible,
.manage-system-tutorials[data-mst-table="departments"] .mst-table-root .mst-table .mst-title-cell .mst-title-cell__name:hover,
.manage-system-tutorials[data-mst-table="departments"] .mst-table-root .mst-table .mst-title-cell .mst-title-cell__name:focus-visible,
.manage-system-tutorials[data-mst-table="assessments"] .mst-table-root .mst-table .mst-title-cell .mst-title-cell__name:hover,
.manage-system-tutorials[data-mst-table="assessments"] .mst-table-root .mst-table .mst-title-cell .mst-title-cell__name:focus-visible,
.manage-system-tutorials[data-mst-table="roles"] .mst-table-root .mst-table .mst-title-cell .mst-title-cell__name:hover,
.manage-system-tutorials[data-mst-table="roles"] .mst-table-root .mst-table .mst-title-cell .mst-title-cell__name:focus-visible,
.manage-system-tutorials[data-mst-table="leads"] .mst-table-root .mst-table .mst-title-cell .mst-title-cell__name:hover,
.manage-system-tutorials[data-mst-table="leads"] .mst-table-root .mst-table .mst-title-cell .mst-title-cell__name:focus-visible,
.manage-system-tutorials[data-mst-table="plans"] .mst-table-root .mst-table .mst-title-cell .mst-title-cell__name:hover,
.manage-system-tutorials[data-mst-table="plans"] .mst-table-root .mst-table .mst-title-cell .mst-title-cell__name:focus-visible,
.manage-system-tutorials[data-mst-table="subscriptions"] .mst-table-root .mst-table .mst-title-cell .mst-title-cell__name:hover,
.manage-system-tutorials[data-mst-table="subscriptions"] .mst-table-root .mst-table .mst-title-cell .mst-title-cell__name:focus-visible {
    color: #7b2cbf;
    text-decoration: underline;
}

.manage-system-tutorials[data-mst-table="leads"] .mst-table-root .mst-table .mst-table__th--title,
.manage-system-tutorials[data-mst-table="leads"] .mst-table-root .mst-table .mst-table__td--title {
    width: 150px;
    max-width: 150px;
}

.manage-system-tutorials[data-mst-table="leads"] .mst-table-root .mst-table .mst-table__td--clamp {
    width: 160px;
    max-width: 160px;
}

.manage-system-tutorials[data-mst-table="leads"] .mst-table-root .mst-table .mst-clamp-text {
    display: block;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* category badge */
.manage-system-tutorials .mst-table-root .mst-table .mst-category {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.3;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.manage-system-tutorials .mst-table-root .mst-table .mst-category--jobs {
    background: #f3ecff;
    color: #771BC8;
}

.manage-system-tutorials .mst-table-root .mst-table .mst-category--candidates {
    background: #e8f0fd;
    color: #2563eb;
}

.manage-system-tutorials .mst-table-root .mst-table .mst-category--departments {
    background: #edfaf4;
    color: #1a7a52;
}

.manage-system-tutorials .mst-table-root .mst-table .mst-category--emails {
    background: #fdeaea;
    color: #c0392b;
}

.manage-system-tutorials .mst-table-root .mst-table .mst-category--filters {
    background: #fef9ec;
    color: #b07d10;
}

.manage-system-tutorials .mst-table-root .mst-table .mst-category--settings {
    background: #f0f0f4;
    color: #555566;
}

/* youtube link */
.manage-system-tutorials .mst-table-root .mst-table .mst-yt-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.45rem;
    border: 1px solid #ece4f8;
    border-radius: 6px;
    background: #faf8fd;
    text-decoration: none;
    color: #771BC8;
    font-size: 0.58rem;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.15s;
    max-width: 100%;
    overflow: hidden;
    vertical-align: middle;
}

.manage-system-tutorials .mst-table-root .mst-table .mst-yt-link:hover {
    background: #f3ecff;
    border-color: #d8c4f0;
    box-shadow: 0 1px 4px rgba(119, 27, 200, 0.08);
}

.manage-system-tutorials .mst-table-root .mst-table .mst-yt-link .mst-yt-link__icon {
    font-size: 0.75rem;
    color: #ff0000;
    flex-shrink: 0;
}

.manage-system-tutorials .mst-table-root .mst-table .mst-yt-link .mst-yt-link__url {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.manage-system-tutorials .mst-table-root .mst-table .mst-yt-link .mst-yt-link__ext {
    font-size: 0.55rem;
    color: #aaaabb;
    flex-shrink: 0;
}

/* status badge */
.manage-system-tutorials .mst-table-root .mst-table .mst-status {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.18rem 0.5rem;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.3;
    vertical-align: middle;
}

.manage-system-tutorials .mst-table-root .mst-table .mst-status .mst-status__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    display: none;
}

.manage-system-tutorials .mst-table-root .mst-table .mst-status--published {
    background: #edfaf4;
    color: #1a7a52;
}

.manage-system-tutorials .mst-table-root .mst-table .mst-status--published .mst-status__dot {
    background: #1a7a52;
    display: none;
}

.manage-system-tutorials .mst-table-root .mst-table .mst-status--draft {
    background: #fef9ec;
    color: #b07d10;
}

.manage-system-tutorials .mst-table-root .mst-table .mst-status--cancelled {
    background: #ffe5e5;
    color: #c0392b;
}

.manage-system-tutorials .mst-table-root .mst-table .mst-status--cancelled .mst-status__dot {
    background: #b07d10;
    display: none;
}
.manage-system-tutorials .mst-table-root .mst-table .mst-status--draft .mst-status__dot {
    background: #b07d10;
    display: none;
}

/* date */
.manage-system-tutorials .mst-table-root .mst-table .mst-date {
    font-size: 0.66rem;
    color: #6e6e7e;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}

/* action buttons */
.manage-system-tutorials .mst-table-root .mst-table .mst-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.manage-system-tutorials .mst-table-root .mst-table .mst-actions .mst-actions__btn {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background:none;
    border: none;
    color: rgb(110 110 126 / 65%);
    font-size: 0.65rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}

.manage-system-tutorials .mst-table-root .mst-table .mst-actions .mst-actions__btn:hover {
    color: #771BC8;
}

/* table footer / pagination */
.manage-system-tutorials .mst-table-root .mst-table-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
    border-top: 1px solid #ececf0;
    background: linear-gradient(180deg, #fdfdfd 0%, #f9f9fb 100%);
}

.manage-system-tutorials .mst-table-root .mst-table-footer .mst-table-footer__info {
    font-size: 0.65rem;
    color: #9999aa;
    flex-shrink: 0;
}

.manage-system-tutorials .mst-table-root .mst-table-footer .mst-table-footer__pagination {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: auto;
}

.manage-system-tutorials .mst-table-root .mst-table-footer .mst-page-numbers {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.manage-system-tutorials .mst-table-root .mst-table-footer .mst-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 26px;
    padding: 0 0.15rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #9999aa;
    user-select: none;
}

.manage-system-tutorials .mst-table-root .mst-table-footer .mst-page-btn {
    min-width: 26px;
    height: 26px;
    padding: 0 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e8e8ec;
    border-radius: 6px;
    background: #fff;
    font-size: 0.63rem;
    font-weight: 600;
    color: #444455;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.manage-system-tutorials .mst-table-root .mst-table-footer .mst-page-btn:hover:not(:disabled) {
    border-color: #771BC8;
    color: #771BC8;
    background: #faf5ff;
}

.manage-system-tutorials .mst-table-root .mst-table-footer .mst-page-btn--active {
    background: #771BC8;
    border-color: #771BC8;
    color: #fff;
    box-shadow: 0 2px 6px rgba(119, 27, 200, 0.25);
}

.manage-system-tutorials .mst-table-root .mst-table-footer .mst-page-btn--nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* empty state row */
.manage-system-tutorials .mst-table-root .mst-table .mst-empty-row {
    display: none;
}

.manage-system-tutorials .mst-table-root .mst-table .mst-empty-row.mst-empty-row--visible {
    display: table-row;
}

.manage-system-tutorials .mst-table-root .mst-table .mst-empty-row .mst-empty-row__cell {
    padding: 2.5rem 1rem;
    text-align: center;
    border-bottom: none;
}

.manage-system-tutorials .mst-table-root .mst-table .mst-empty-row .mst-empty-row__wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    max-width: 280px;
    margin: 0 auto;
}

.manage-system-tutorials .mst-table-root .mst-table .mst-empty-row .mst-empty-row__wrap .mst-empty-row__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f4f4f6;
    color: #b0b0bc;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.manage-system-tutorials .mst-table-root .mst-table .mst-empty-row .mst-empty-row__wrap .mst-empty-row__title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: #3a3a4a;
    line-height: 1.3;
}

.manage-system-tutorials .mst-table-root .mst-table .mst-empty-row .mst-empty-row__wrap .mst-empty-row__hint {
    margin: 0 0 0.5rem;
    font-size: 0.68rem;
    color: #9999aa;
    line-height: 1.45;
}

.manage-system-tutorials .mst-table-root .mst-table .mst-empty-row .mst-empty-row__wrap .mst-empty-row__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.38rem 0.85rem;
    border: none;
    border-radius: 7px;
    background: #771BC8;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(119, 27, 200, 0.2);
    transition: background 0.2s, box-shadow 0.2s;
    line-height: 1.2;
}

.manage-system-tutorials .mst-table-root .mst-table .mst-empty-row .mst-empty-row__wrap .mst-empty-row__btn:hover {
    background: #5e15a0;
    box-shadow: 0 3px 10px rgba(119, 27, 200, 0.28);
}

.manage-system-tutorials .mst-table-root .mst-table .mst-empty-row .mst-empty-row__wrap .mst-empty-row__btn i {
    font-size: 0.62rem;
}

/* -- Responsive -- */
@media (max-width: 1199.98px) {
    .manage-system-tutorials .mst-stats,
    .manage-system-tutorials .mst-stats:has(> .mst-stat-card:nth-child(3):last-child),
    .manage-system-tutorials .mst-stats:has(> .mst-stat-card:nth-child(4)) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .manage-system-tutorials .mst-stats:has(> .mst-stat-card:nth-child(3):last-child) > .mst-stat-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    .manage-system-tutorials .mst-stats,
    .manage-system-tutorials .mst-stats:has(> .mst-stat-card:nth-child(3):last-child),
    .manage-system-tutorials .mst-stats:has(> .mst-stat-card:nth-child(4)) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .manage-system-tutorials .mst-stats:has(> .mst-stat-card:nth-child(3):last-child) > .mst-stat-card:last-child {
        grid-column: 1 / -1;
    }

    .manage-system-tutorials .mst-stats .mst-stat-card {
        padding: 0.5rem 0.6rem;
        gap: 0.45rem;
    }

    .manage-system-tutorials .mst-stats .mst-stat-card .mst-stat-card__icon {
        width: 30px;
        height: 30px;
        font-size: 0.72rem;
    }

    .manage-system-tutorials .mst-stats .mst-stat-card .mst-stat-card__value {
        font-size: 0.85rem;
    }

    .manage-system-tutorials .mst-stats .mst-stat-card .mst-stat-card__label {
        font-size: 0.62rem;
    }

    .manage-system-tutorials .mst-stats .mst-stat-card .mst-stat-card__hint {
        font-size: 0.55rem;
    }

    .manage-system-tutorials .mst-table-root {
        border-radius: 10px;
    }

    .manage-system-tutorials .mst-table-root .mst-bulk-bar {

        gap: 0.45rem;
        padding: 0.45rem 0.75rem;
    }

    .manage-system-tutorials .mst-table-root .mst-bulk-bar .mst-bulk-bar__count {
        position: sticky;
        left: 0;
        background: linear-gradient(90deg, #faf5ff 80%, transparent);
        padding-right: 0.5rem;
        flex-shrink: 0;
    }

    .manage-system-tutorials .mst-table-root .mst-bulk-bar .mst-bulk-bar__actions {
        flex-wrap: nowrap;
        flex-shrink: 0;
        margin-left: 0;
    }



    .manage-system-tutorials .mst-table-root .mst-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
        padding: 0.45rem 0.6rem;
    }

    .manage-system-tutorials .mst-table-root .mst-toolbar .mst-toolbar__search {
        max-width: none;
        flex: 1 1 100%;
        min-width: 0;
    }

    .manage-system-tutorials .mst-table-root .mst-toolbar .mst-toolbar__search-input {
        min-height: 32px;
        font-size: 0.7rem;
    }

    .manage-system-tutorials .mst-table-root .mst-toolbar .mst-toolbar__export {
        width: 100%;
        justify-content: flex-start;
    }

    .manage-system-tutorials .mst-table-root .mst-toolbar .mst-toolbar__actions {
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
        gap: 0.35rem;
    }

    .manage-system-tutorials .mst-table-root .mst-toolbar .mst-toolbar__add-group {
        flex-wrap: wrap;
        justify-content: flex-end;
    }



    .manage-system-tutorials .mst-table-root .mst-toolbar .mst-export-btn {
        min-width: 25px;
        padding: 0.28rem 0.5rem;
    }



    .manage-system-tutorials .mst-table-root .mst-table-scroll-wrap::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 28px;
        background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.95));
        pointer-events: none;
        z-index: 6;
        transition: opacity 0.2s;
    }

    .manage-system-tutorials .mst-table-root .mst-table-scroll-wrap.is-scrolled-end::after {
        opacity: 0;
    }

    .manage-system-tutorials .mst-table-root .mst-table-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    .manage-system-tutorials .mst-table-root .mst-table-scroll-wrap {
        --mst-col-check: 42px;
    }

    .manage-system-tutorials .mst-table-root .mst-table {
        min-width: 620px;
    }

    /* sticky checkbox column on mobile */
    .manage-system-tutorials .mst-table-root .mst-table .mst-table__th,
    .manage-system-tutorials .mst-table-root .mst-table .mst-table__td {
        width: 105px;
    }

    .manage-system-tutorials .mst-table-root .mst-table .mst-table__th--check,
    .manage-system-tutorials .mst-table-root .mst-table .mst-table__td--check {
        width: var(--mst-col-check);
        min-width: var(--mst-col-check);
        max-width: var(--mst-col-check);
        /* position: sticky;
        left: 0; */
        z-index: 2;
        background: #fff;
        box-shadow: 4px 0 10px -6px rgba(0, 0, 0, 0.1);
    }

    .manage-system-tutorials .mst-table-root .mst-table .mst-table__head .mst-table__th--check {
        z-index: 4;
        background: #f5f5f8;
        box-shadow: 4px 0 10px -6px rgba(0, 0, 0, 0.08);
    }

    .manage-system-tutorials .mst-table-root .mst-table .mst-table__body .mst-table__row:nth-child(even):not(.mst-table__row--checked) .mst-table__td--check {
        background: #fafafb;
    }

    .manage-system-tutorials .mst-table-root .mst-table .mst-table__body .mst-table__row:hover .mst-table__td--check {
        background: #f9f5fe;
    }

    .manage-system-tutorials .mst-table-root .mst-table .mst-table__body .mst-table__row--checked .mst-table__td--check {
        background: #f6effd;
    }

    .manage-system-tutorials .mst-table-root .mst-table .mst-table__body .mst-table__row--checked:hover .mst-table__td--check {
        background: #f3ebfc;
    }

    .manage-system-tutorials .mst-table-root .mst-table .mst-table__head .mst-table__th,
    .manage-system-tutorials .mst-table-root .mst-table .mst-table__body .mst-table__td {
        padding: 0.38rem 0.42rem;
    }

    .manage-system-tutorials .mst-table-root .mst-table .mst-table__head .mst-table__th--check,
    .manage-system-tutorials .mst-table-root .mst-table .mst-table__body .mst-table__td--check {
        padding-left: 0.35rem;
        padding-right: 0.35rem;
        text-align: center;
    }

    .manage-system-tutorials .mst-table-root .mst-table .mst-row-check,
    .manage-system-tutorials .mst-table-root .mst-table .mst-check-all {
        width: 12px;
        height: 12px;
    }

    .manage-system-tutorials .mst-table-root .mst-table .mst-actions {
        gap: 0.3rem;
    }



    .manage-system-tutorials .mst-table-root .mst-table .mst-title-cell .mst-title-cell__name {
        font-size: 0.68rem;
    }

    .manage-system-tutorials .mst-table-root .mst-table-footer {
        justify-content: flex-end;
    }

    .manage-system-tutorials .mst-table-root .mst-table-footer .mst-table-footer__info {
        font-size: 0.62rem;
        text-align: center;
    }

    .manage-system-tutorials .mst-table-root .mst-table-footer .mst-table-footer__pagination {
        justify-content: center;
        margin-left: 0;
        flex-wrap: wrap;
    }

    .manage-system-tutorials .mst-table-root .mst-table-footer .mst-page-btn {
        min-width: 30px;
        height: 30px;
        font-size: 0.68rem;
    }
}

@media (max-width: 575.98px) {
    .manage-system-tutorials .mst-stats .mst-stat-card .mst-stat-card__hint {
        display: none;
    }

    .manage-system-tutorials .mst-table-root .mst-toolbar .mst-export-btn span {
        display: none;
    }

    .manage-system-tutorials .mst-table-root .mst-toolbar .mst-export-btn {
        padding: 0.35rem;
        justify-content: center;
    }

    .manage-system-tutorials .mst-table-root .mst-table .mst-table__th,
    .manage-system-tutorials .mst-table-root .mst-table .mst-table__td {
        width: 95px;
    }

    .manage-system-tutorials .mst-table-root .mst-table .mst-category,
    .manage-system-tutorials .mst-table-root .mst-table .mst-status {
        font-size: 0.56rem;
        padding: 0.14rem 0.38rem;
    }

    .manage-system-tutorials .mst-table-root .mst-table .mst-yt-link {
        font-size: 0.54rem;
        padding: 0.18rem 0.38rem;
    }

    .manage-system-tutorials .mst-table-root .mst-table .mst-date {
        font-size: 0.62rem;
    }
}

@media (max-width: 399.98px) {
    .manage-system-tutorials .mst-stats,
    .manage-system-tutorials .mst-stats:has(> .mst-stat-card:nth-child(3):last-child),
    .manage-system-tutorials .mst-stats:has(> .mst-stat-card:nth-child(4)) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .manage-system-tutorials .mst-stats:has(> .mst-stat-card:nth-child(3):last-child) > .mst-stat-card:last-child {
        grid-column: 1 / -1;
    }

    .manage-system-tutorials .mst-table-root .mst-bulk-bar .mst-bulk-btn span,
    .manage-system-tutorials .mst-table-root .mst-bulk-bar .mst-bulk-btn {
        font-size: 0.58rem;
        padding: 0.32rem 0.5rem;
    }
}
/* Referrals table: show action icon on name hover (desktop) */
.mst-title-cell {
  position: relative;
  padding-right: 2.1rem;
}
.mst-actions--hover {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
      opacity 0.15s ease,
      visibility 0.15s ease;
}
.mst-table__row:hover .mst-actions--hover,
.mst-title-cell:focus-within .mst-actions--hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Hide Actions column on desktop, keep it on mobile */
@media (min-width: 768px) {
  .mst-table__th--actions,
  .mst-table__td--actions {
      display: none;
  }
}
@media (max-width: 767.98px) {
  .mst-actions--hover {
      display: none !important;
  }
  .mst-table__th--actions,
  .mst-table__td--actions {
      display: table-cell;
  }
  .mst-title-cell {
    padding-right: 0;
  }

}
/* -- Tutorial Modals (Add / Edit) -- */
.mst-modal .modal-dialog,
.mst-modal .modal-dialog.modal-lg {
    max-width: 500px;
    margin: 1rem auto;
}

.mst-modal .mst-modal__content {
    border: 1px solid #e8e8ec;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.mst-modal .mst-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #ececf0;
    background: linear-gradient(180deg, #fefefe 0%, #f9f7fc 100%);
}

.mst-modal .mst-modal__header .mst-modal__title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    min-width: 0;
}

.mst-modal .mst-modal__header .mst-modal__title-wrap .mst-modal__title-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #f3ecff;
    color: #771BC8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.mst-modal .mst-modal__header .mst-modal__title-wrap .mst-modal__title-icon--edit {
    background: #f3ecff;
    color: #771BC8;
}

.mst-modal .mst-modal__header .mst-modal__title-wrap .mst-modal__title-text {
    min-width: 0;
}

.mst-modal .mst-modal__header .mst-modal__title-wrap .mst-modal__title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.3;
}

.mst-modal .mst-modal__header .mst-modal__title-wrap .mst-modal__subtitle {
    font-size: 0.62rem;
    color: #888899;
    margin: 0.15rem 0 0;
    line-height: 1.4;
}

.mst-modal .mst-modal__header .mst-modal__close {
    opacity: 0.4;
    padding: 0.35rem;
    margin: -0.2rem -0.2rem 0 0;
    flex-shrink: 0;
}

.mst-modal .mst-modal__header .mst-modal__close:hover {
    opacity: 0.7;
}

.mst-modal .mst-modal__body {
    padding: 0.8rem 1rem 0.7rem;
    background: #fff;
}

.mst-modal .mst-modal__body .mst-modal__form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 0.7rem;
}

.mst-modal .mst-modal__body .mst-modal__field--full {
    grid-column: 1 / -1;
}

.mst-modal .mst-modal__body .mst-modal__field .mst-modal__label {
    display: block;
    font-size: 0.6rem;
    font-weight: 600;
    color: #555566;
    margin-bottom: 0.28rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mst-modal .mst-modal__body .mst-modal__field .mst-modal__label .mst-modal__required {
    color: #b83232;
    margin-left: 0.15rem;
}

.mst-modal .mst-modal__body .mst-modal__field .mst-modal__input,
.mst-modal .mst-modal__body .mst-modal__field .mst-modal__select,
.mst-modal .mst-modal__body .mst-modal__field .mst-modal__textarea {
    width: 100%;
    padding: 0.4rem 0.58rem;
    border: 1px solid #e4e4e8;
    border-radius: 7px;
    font-size: 0.72rem;
    color: #374151;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    font-family: inherit;
}

.mst-modal .mst-modal__body .mst-modal__field .mst-modal__textarea {
    min-height: 72px;
    resize: vertical;
    line-height: 1.45;
    padding: 0.45rem 0.58rem;
}

.mst-modal .mst-modal__body .mst-modal__field .mst-modal__input:focus,
.mst-modal .mst-modal__body .mst-modal__field .mst-modal__select:focus,
.mst-modal .mst-modal__body .mst-modal__field .mst-modal__textarea:focus {
    outline: none;
    border-color: #771BC8;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(119, 27, 200, 0.08);
}

.mst-modal .mst-modal__body .mst-modal__field .mst-modal__input::placeholder,
.mst-modal .mst-modal__body .mst-modal__field .mst-modal__textarea::placeholder {
    color: #b0b0bc;
    font-size: 0.68rem;
}

.mst-modal .mst-modal__body .mst-modal__field .mst-modal__input:invalid:not(:placeholder-shown),
.mst-modal .mst-modal__body .mst-modal__field .mst-modal__select:invalid {
    border-color: #e07070;
}

.mst-modal .mst-modal__body .mst-modal__field .mst-modal__select {
    appearance: none;
    padding-right: 1.6rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23999' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.55rem center;
    cursor: pointer;
}

.mst-modal .mst-modal__body .mst-modal__field .mst-modal__input-wrap {
    position: relative;
}

.mst-modal .mst-modal__body .mst-modal__field .mst-modal__input-wrap .mst-modal__input-icon {
    position: absolute;
    left: 0.55rem;
    top: 50%;
    transform: translateY(-50%);
    color: #ff0000;
    font-size: 0.8rem;
    pointer-events: none;
}

.mst-modal .mst-modal__body .mst-modal__field .mst-modal__input-wrap .mst-modal__input--icon {
    padding-left: 1.85rem;
}

.mst-modal .mst-modal__body .mst-modal__field .mst-modal__hint {
    display: block;
    font-size: 0.58rem;
    color: #9999aa;
    margin-top: 0.28rem;
}

.mst-modal .mst-modal__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    border-top: 1px solid #ececf0;
    background: linear-gradient(180deg, #fdfdfd 0%, #f9f9fb 100%);
}

.mst-modal .mst-modal__footer .mst-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.42rem 0.85rem;
    border-radius: 7px;
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
    line-height: 1.2;
}

.mst-modal .mst-modal__footer .mst-modal__btn--cancel {
    background: #fff;
    border-color: #e4e4e8;
    color: #555566;
}

.mst-modal .mst-modal__footer .mst-modal__btn--cancel:hover {
    background: #f4f4f6;
    border-color: #ccccd5;
    color: #333344;
}

.mst-modal .mst-modal__footer .mst-modal__btn--save {
    background: #771BC8;
    color: #fff;
    box-shadow: 0 2px 8px rgba(119, 27, 200, 0.22);
}

.mst-modal .mst-modal__footer .mst-modal__btn--save:hover {
    background: #5e15a0;
    box-shadow: 0 3px 10px rgba(119, 27, 200, 0.3);
}

.mst-modal .mst-modal__footer .mst-modal__btn--save i {
    font-size: 0.62rem;
}

@media screen and (max-width: 575.98px) {
  .mst-modal .modal-dialog,
  .mst-modal .modal-dialog.modal-lg {
    max-width:98%;
    margin: 0 auto;
  }
}

/* =============================================================================
   Roles & Permissions � page extras (Roles&Permissiones_new.html)
   Active toggle, view action button, inactive row state.
   Scoped under .manage-system-tutorials to match System Tutorials table shell.
   ============================================================================= */

/* Active / inactive toggle (reuses mst-role-toggle markup in table cells) */
.manage-system-tutorials .mst-role-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    margin: 0;
    user-select: none;
}

.manage-system-tutorials .mst-role-toggle__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.manage-system-tutorials .mst-role-toggle__track {
    position: relative;
    width: 36px;
    height: 20px;
    background: #d8d8e0;
    border-radius: 20px;
    transition: background 0.22s ease, box-shadow 0.22s ease;
    flex-shrink: 0;
}

.manage-system-tutorials .mst-role-toggle:hover .mst-role-toggle__track {
    background: #cccdd8;
}

.manage-system-tutorials .mst-role-toggle__thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.manage-system-tutorials .mst-role-toggle__input:focus-visible + .mst-role-toggle__track {
    outline: 2px solid rgba(119, 27, 200, 0.45);
    outline-offset: 2px;
}

.manage-system-tutorials .mst-role-toggle__input:checked + .mst-role-toggle__track {
    background: #771BC8;
    box-shadow: 0 0 0 1px rgba(119, 27, 200, 0.12);
}

.manage-system-tutorials .mst-role-toggle__input:checked:hover + .mst-role-toggle__track {
    background: #6a18b4;
}

.manage-system-tutorials .mst-role-toggle__input:checked + .mst-role-toggle__track .mst-role-toggle__thumb {
    transform: translateX(16px);
    box-shadow: 0 1px 4px rgba(119, 27, 200, 0.35);
}

.manage-system-tutorials .mst-role-toggle__label {
    font-size: 0.6rem;
    font-weight: 600;
    min-width: 46px;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}

.manage-system-tutorials .mst-role-toggle__input:checked ~ .mst-role-toggle__label {
    color: #771BC8;
}

.manage-system-tutorials .mst-role-toggle__input:not(:checked) ~ .mst-role-toggle__label {
    color: #9999aa;
}

/* Dim inactive roles while keeping row readable */
.manage-system-tutorials .mst-table__row--inactive {
    opacity: 0.78;
    background: linear-gradient(90deg, rgba(248, 248, 250, 0.9) 0%, rgba(255, 255, 255, 0) 100%);
}

.manage-system-tutorials .mst-table__row--inactive:hover {
    opacity: 0.92;
}

/* =============================================================================
   Role modals � permissions matrix (Add / Edit Role)
   Collapsible groups, purple checkboxes (#771BC8), select-all support.
   ============================================================================= */

.mst-modal.mst-modal--role .modal-dialog.modal-xl {
    max-width: 750px;
}

.mst-modal.mst-modal--role .mst-modal__body {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.mst-modal.mst-modal--role .mst-modal__field--role-name {
    margin-bottom: 0.85rem;
}

.mst-modal.mst-modal--role .mst-modal__label--section {
    display: block;
    margin-bottom: 0.45rem;
}

.mst-perms {
    border: 1px solid #e8e8ec;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.mst-perms__select-all {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    padding: 0.65rem 0.85rem;
    cursor: pointer;
    background: linear-gradient(180deg, #faf9fc 0%, #f5f4f8 100%);
    border-bottom: 1px solid #ececf0;
    user-select: none;
}

.mst-perms__select-all-text {
    font-size: 0.72rem;
    font-weight: 700;
    color: #333344;
    letter-spacing: 0.01em;
}

.mst-perms__list {
    max-height: 420px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.mst-perms__group {
    border-bottom: 1px solid #f0f0f4;
}

.mst-perms__group:last-child {
    border-bottom: none;
}

.mst-perms__group-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    margin: 0;
    padding: 0.55rem 0.85rem;
    border: none;
    background: #f8f8fa;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease;
}

.mst-perms__group-head:hover {
    background: #f2f2f6;
}

.mst-perms__caret {
    font-size: 0.55rem;
    color: #888899;
    width: 0.75rem;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.mst-perms__group.is-collapsed .mst-perms__caret {
    transform: rotate(-90deg);
}

.mst-perms__group-icon {
    font-size: 0.68rem;
    color: #771BC8;
    width: 1rem;
    text-align: center;
    flex-shrink: 0;
}

.mst-perms__group-title {
    font-size: 0.68rem;
    font-weight: 700;
    color: #333344;
    flex: 1;
    min-width: 0;
}

.mst-perms__group-actions {
    margin-left: auto;
    flex-shrink: 0;
}

.mst-perms__group-check-label {
    display: inline-flex;
    align-items: center;
    margin: 0;
    cursor: pointer;
}

.mst-perms__group-body {
    background: #fff;
}

.mst-perms__group.is-collapsed .mst-perms__group-body {
    display: none;
}

.mst-perms__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.48rem 0.85rem 0.48rem 1.35rem;
    border-top: 1px solid #f4f4f7;
}

.mst-perms__row:hover {
    background: #fafafd;
}

.mst-perms__row-label {
    font-size: 0.65rem;
    font-weight: 500;
    color: #444455;
    line-height: 1.35;
}

.mst-perms__row-check {
    display: inline-flex;
    align-items: center;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.mst-perms__select-all,
.mst-perms__group-check-label,
.mst-perms__row-check {
    position: relative;
}

.mst-perms__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}

.mst-perms__box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1.5px solid #c8c8d4;
    border-radius: 4px;
    background: #fff;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    flex-shrink: 0;
}

.mst-perms__input:focus-visible + .mst-perms__box {
    outline: 2px solid rgba(119, 27, 200, 0.4);
    outline-offset: 2px;
}

.mst-perms__input:checked + .mst-perms__box {
    background: #771BC8;
    border-color: #771BC8;
    box-shadow: 0 1px 4px rgba(119, 27, 200, 0.28);
}

.mst-perms__input:checked + .mst-perms__box::after {
    content: "";
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}

.mst-perms__input:indeterminate + .mst-perms__box {
    background: #f4f4f7;
    border-color: #b8b8c6;
}

.mst-perms__input:indeterminate + .mst-perms__box::after {
    content: "";
    width: 8px;
    height: 2px;
    border-radius: 1px;
    background: #888899;
}

.mst-perms__list::-webkit-scrollbar {
    width: 6px;
}

.mst-perms__list::-webkit-scrollbar-thumb {
    background: #d4d4dc;
    border-radius: 6px;
}

.mst-perms__list::-webkit-scrollbar-thumb:hover {
    background: #b8b8c4;
}

/* View role modal � read-only permissions */
.mst-modal.mst-modal--view .mst-modal__title-icon--view {
    background: linear-gradient(135deg, #e8f0fd 0%, #dbeafe 100%);
    color: #2563eb;
}

.mst-modal.mst-modal--view .mst-modal__input--readonly {
    background: #f6f6f8;
    border-color: #e8e8ec;
    color: #333344;
    cursor: default;
}

.mst-perms--view .mst-perms__summary {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    padding: 0.65rem 0.85rem;
    background: linear-gradient(180deg, #faf9fc 0%, #f5f4f8 100%);
    border-bottom: 1px solid #ececf0;
}

.mst-perms--view .mst-perms__summary-count {
    font-size: 0.78rem;
    font-weight: 800;
    color: #771BC8;
}

.mst-perms--view .mst-perms__summary-text {
    font-size: 0.68rem;
    font-weight: 600;
    color: #666677;
}

.mst-perms--view .mst-perms__group-status {
    display: inline-flex;
    align-items: center;
}

.mst-perms--view .mst-perms__row-status {
    display: inline-flex;
    align-items: center;
    position: relative;
    flex-shrink: 0;
}

.mst-perms--view .mst-perms__box--readonly {
    pointer-events: none;
}

.mst-perms--view .mst-perms__box--checked {
    background: #771BC8;
    border-color: #771BC8;
    box-shadow: 0 1px 4px rgba(119, 27, 200, 0.28);
}

.mst-perms--view .mst-perms__box--checked::after {
    content: "";
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}

.mst-perms--view .mst-perms__box--indeterminate {
    background: #f4f4f7;
    border-color: #b8b8c6;
}

.mst-perms--view .mst-perms__box--indeterminate::after {
    content: "";
    width: 8px;
    height: 2px;
    border-radius: 1px;
    background: #888899;
}

.mst-perms--view .mst-perms__group-status--none .mst-perms__box {
    opacity: 0.55;
}


/* page referrer */

.referrer-invite-panel {
    margin-bottom: 1rem;
    border: 1px solid #e8e8ec;
    border-radius: 12px;
    background: #fff;
    padding: 1.1rem 1.25rem;
    box-shadow: 0 1px 4px rgba(17, 24, 39, 0.04);
}
.referrer-invite-panel__title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
}
.referrer-invite-panel__desc {
    margin: 0 0 1rem;
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.5;
}
.referrer-invite-panel__box {
    border: 1px solid #ececf1;
    border-radius: 10px;
    overflow: hidden;
}
.referrer-invite-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: #fff;
}
.referrer-invite-row + .referrer-invite-row {
    border-top: 1px solid #ececf1;
}
.referrer-invite-row__lead {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 148px;
    flex-shrink: 0;
}
.referrer-invite-row__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #f3ebfc;
    color: #771bc8;
    font-size: 0.9rem;
}
.referrer-invite-row__label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
}
.referrer-invite-row__field {
    flex: 1;
    min-width: 0;
}
.referrer-invite-row__input {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    font-size: 0.82rem;
    color: #374151;
    background: #fff;
    outline: none;
}
.referrer-invite-row__input::placeholder {
    color: #9ca3af;
}
.referrer-invite-row__input:focus {
    border-color: #c9a8f0;
    box-shadow: 0 0 0 1px rgba(119, 27, 200, 0.15);
}
.referrer-invite-row__input[readonly] {
    background: #fafafa;
    color: #4b5563;
}
.referrer-invite-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border-radius: 8px;
    padding: 0.5rem 0.95rem;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    flex-shrink: 0;
}
.referrer-invite-btn--primary {
    background: #771bc8;
    color: #fff;
}
.referrer-invite-btn--outline {
    background: #fff;
    color: #771bc8;
    border: 1px solid #d4c0ec;
}
.referrer-invite-row--form {
    flex-wrap: nowrap;
    gap: 0.65rem;
}
.referrer-invite-row__fields-inline {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 0.5rem;
    min-width: 0;
}
.referrer-invite-row__fields-inline .referrer-invite-row__input,
.referrer-invite-row__fields-inline .referrer-invite-row__select {
    flex: 1 1 0;
    min-width: 0;
}
.referrer-invite-row__select {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.55rem 1.75rem 0.55rem 0.75rem;
    font-size: 0.82rem;
    color: #374151;
    background: #fff
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M2 4l4 4 4-4'/%3E%3C/svg%3E")
        no-repeat right 0.65rem center;
    appearance: none;
    outline: none;
    cursor: pointer;
}
.referrer-invite-row__select:focus {
    border-color: #c9a8f0;
    box-shadow: 0 0 0 1px rgba(119, 27, 200, 0.15);
}
@media (max-width: 991.98px) {
    .referrer-invite-row--form {
        flex-wrap: wrap;
    }
    .referrer-invite-row__fields-inline {
        flex: 1 1 100%;
        flex-wrap: wrap;
    }
    .referrer-invite-row__fields-inline .referrer-invite-row__input,
    .referrer-invite-row__fields-inline
        .referrer-invite-row__select {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 140px;
    }
}
@media (max-width: 575.98px) {
    .referrer-invite-row__fields-inline .referrer-invite-row__input,
    .referrer-invite-row__fields-inline
        .referrer-invite-row__select {
        flex: 1 1 100%;
    }
    .referrer-invite-row--form .referrer-invite-btn--primary {
        width: 100%;
    }
    .referrer-invite-panel {

      padding: 1rem .75rem;
  }
}
.referrer-statement-panel {
    margin-bottom: 1rem;
    border: 1px solid #e8e8ec;
    border-radius: 12px;
    background: #fff;
    padding: 1rem 1.15rem;
    box-shadow: 0 1px 4px rgba(17, 24, 39, 0.04);
}
.referrer-statement-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}
.referrer-statement-panel__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
}
.referrer-statement-panel__month {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
    color: #374151;
    background: #fafafa;
}
.referrer-statement-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}
.referrer-statement-table th,
.referrer-statement-table td {
    padding: 0.55rem 0.6rem;
    border-bottom: 1px solid #f0f0f4;
    text-align: left;
}
.referrer-statement-table th {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8a8a9a;
    font-weight: 600;
}
.referrer-statement-table tr:last-child td {
    border-bottom: none;
}

.mst-ref-datetime {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}
.mst-ref-datetime .mst-date-time {
    font-size: 0.68rem;
    color: #9ca3af;
    font-weight: 500;
}
.mst-ref-email {
    font-size: 0.76rem;
    color: #4b5563;
}
.referrer-statement-modal__summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.referrer-statement-modal__card {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 0.5rem 0.65rem;
    background: #fafafa;
}
.referrer-statement-modal__card-label {
    display: block;
    font-size: 0.62rem;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 0.15rem;
}
.referrer-statement-modal__card-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: #111827;
}
.referrer-statement-modal__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
    flex-wrap: wrap;
}
.referrer-statement-modal__note {
    margin: 0.65rem 0 0;
    font-size: 0.68rem;
    color: #6b7280;
    line-height: 1.4;
}
@media (max-width: 767.98px) {
    .referrer-statement-modal__summary {
        grid-template-columns: 1fr;
    }
}

.referrer-toolbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}
.referrer-toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.32rem 0.58rem;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}
.referrer-toolbar-btn i {
    font-size: 0.62rem;
}
.referrer-toolbar-btn--cancel {
    background: #fff5f5;
    color: #b83232;
    border-color: #f0c0c0;
}
.referrer-toolbar-btn--cancel:hover {
    background: #fee2e2;
    border-color: #e8a8a8;
    color: #991b1b;
}
.referrer-toolbar-btn--statement {
    background: #f6effd;
    color: #771bc8;
    border-color: #d4c0ec;
}
.referrer-toolbar-btn--statement:hover {
    background: #ede0fa;
    border-color: #c9a8f0;
    color: #5e15a0;
}
@media (max-width: 575.98px) {
    .referrer-toolbar-actions {
        flex-wrap: wrap;
    }
    .referrer-toolbar-btn {
        flex: 1 1 auto;
        min-width: 0;
    }
    .referrer-toolbar-btn {
        font-size: 0.58rem;
    }
}
.referrer-statement-modal .modal-dialog {
    max-width: 940px;
}
.referrer-statement-modal .modal-body {
    padding: 1rem 1.15rem 1.1rem;
}
.referrer-statement-modal__summary {
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}
.referrer-statement-modal__card {
    padding: 0.6rem 0.75rem;
}
.referrer-statement-modal__toolbar {
    margin-bottom: 0.75rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #ececf1;
}
.referrer-statement-panel--modal {
    margin-bottom: 0;
    box-shadow: none;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}
.referrer-statement-modal .referrer-statement-table {
    table-layout: fixed;
    width: 100%;
    min-width: 0;
}
.referrer-statement-modal .mst-table-scroll {
    overflow-x: auto;
}
.referrer-statement-modal .referrer-statement-table th,
.referrer-statement-modal .referrer-statement-table td {
    vertical-align: top;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
}
.referrer-statement-modal .referrer-statement-table th {
    font-weight: 600;
    padding: 0.45rem 0.55rem;
    background: #f9fafb;
    text-transform: none;
    letter-spacing: normal;
}
.referrer-statement-modal .referrer-statement-table td {
    padding: 0.42rem 0.55rem;
    color: #374151;
}
.referrer-statement-modal .referrer-statement-table th:nth-child(1),
.referrer-statement-modal
    .referrer-statement-table
    td:nth-child(1) {
    width: 24%;
}
.referrer-statement-modal .referrer-statement-table th:nth-child(2),
.referrer-statement-modal
    .referrer-statement-table
    td:nth-child(2) {
    width: 16%;
}
.referrer-statement-modal .referrer-statement-table th:nth-child(3),
.referrer-statement-modal
    .referrer-statement-table
    td:nth-child(3) {
    width: 26%;
}
.referrer-statement-modal .referrer-statement-table th:nth-child(4),
.referrer-statement-modal
    .referrer-statement-table
    td:nth-child(4) {
    width: 16%;
    text-align: right;
}
.referrer-statement-modal .referrer-statement-table th:nth-child(5),
.referrer-statement-modal
    .referrer-statement-table
    td:nth-child(5) {
    width: 18%;
    text-align: center;
}
.ref-stmt-name {
    display: block;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
}
.ref-stmt-email {
    display: block;
    margin-top: 0.12rem;
    font-size: 0.68rem;
    color: #6b7280;
    line-height: 1.35;
}
.ref-stmt-event {
    display: block;
    line-height: 1.3;
}
.ref-stmt-date {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.68rem;
    color: #9ca3af;
}
.ref-stmt-amount {
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
}
.referrer-statement-modal .referrer-statement-table .mst-status {
    font-size: 0.68rem;
}
.referrer-statement-modal .referrer-statement-table tfoot td {
    padding: 0.45rem 0.55rem;
    vertical-align: middle;
}
.referrer-statement-modal
    .referrer-statement-table
    tfoot
    td:nth-child(4) {
    text-align: right;
}
.ref-stmt-total-row td {
    padding: 0.55rem 0.75rem !important;
    background: #f3f4f6;
    border-top: 1px solid #e5e7eb;
}
.ref-stmt-total__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.ref-stmt-total__label {
    font-size: 0.7rem;
    font-weight: 500;
    color: #6b7280;
}
.ref-stmt-total__value {
    font-size: 0.88rem;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
}
.ref-view-card {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}
.ref-view-company {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.7rem 0.75rem;
    background: #f9fafb;
    border-bottom: 1px solid #ececf1;
}
.ref-view-company__icon {
    flex-shrink: 0;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3e8ff;
    color: #771bc8;
    font-size: 0.82rem;
}
.ref-view-company__body {
    min-width: 0;
    flex: 1;
}
.ref-view-company__name {
    margin: 0 0 0.12rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
}
.ref-view-company__email {
    margin: 0 0 0.4rem;
    font-size: 0.68rem;
    color: #6b7280;
    word-break: break-all;
    line-height: 1.35;
}
.ref-view-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.ref-view-badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 500;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
}
.ref-view-badge--status {
    border-color: #d4c0ec;
    color: #771bc8;
    background: #faf5ff;
}
.ref-view-details {
    margin: 0;
    padding: 0.2rem 0.75rem;
}
.ref-view-details__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.72rem;
}
.ref-view-details__row:last-child {
    border-bottom: none;
}
.ref-view-details__row dt {
    margin: 0;
    color: #6b7280;
    font-weight: 500;
    flex-shrink: 0;
}
.ref-view-details__row dd {
    margin: 0;
    color: #111827;
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}
.ref-view-hint {
    margin: 0;
    padding: 0.48rem 0.75rem;
    font-size: 0.68rem;
    color: #6b7280;
    line-height: 1.45;
    background: #fafafa;
    border-top: 1px solid #ececf1;
}
.ref-view-card__total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    background: #f3f4f6;
    border-top: 1px solid #e5e7eb;
}
.ref-view-card__total-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: #6b7280;
}
.ref-view-card__total-value {
    font-size: 0.88rem;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
}
.ref-modal-table-wrap {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}
.referrer-modal-simple .ref-modal-mini-table {
    margin: 0;
}
.cancel-warn-box {
    display: flex;
    gap: 0.45rem;
    align-items: flex-start;
    padding: 0.5rem 0.6rem;
    margin-bottom: 0.65rem;
    border-radius: 6px;
    border: 1px solid #fde8e8;
    background: #fff8f8;
    font-size: 0.72rem;
    color: #7f1d1d;
    line-height: 1.4;
}
.cancel-warn-box i {
    margin-top: 0.1rem;
    font-size: 0.68rem;
    flex-shrink: 0;
}
.cancel-actions-panel {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.6rem 0.7rem;
    background: #ffffff;
}
.referrer-modal-simple .cancel-email-box {
    margin-bottom: 0;
}
.referrer-modal-simple #cancelSendOtpBtn {
    width: 100%;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.4rem 0.65rem;
    margin-top: 0.5rem;
    color: #fff;
    background: #771bc8;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    &:hover {
        background: #6b12b4;
    }
}

.referrer-statement-modal .mst-modal__title {
    font-size: 0.88rem;
}
.referrer-statement-modal .mst-modal__subtitle {
    font-size: 0.68rem;
}
.referrer-statement-modal .modal-body {
    font-size: 0.76rem;
}
.referrer-statement-modal__toolbar .mst-modal__hint {
    font-size: 0.72rem;
    color: #6b7280;
}
.referrer-statement-modal__note {
    font-size: 0.68rem;
    padding: 0;
    border: none;
    background: none;
}
.referrer-statement-modal .referrer-statement-panel__month {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.3rem 0.5rem;
}
.referrer-statement-modal .referrer-statement-table {
    font-size: 0.72rem;
}
.referrer-statement-modal .referrer-statement-table th {
    font-size: 0.65rem;
}
.referrer-statement-modal .referrer-statement-table tfoot td {
    font-size: 0.72rem;
}
.referrer-modal-simple .mst-modal__title {
    font-size: 0.85rem;
    font-weight: 600;
}
.referrer-modal-simple .mst-modal__subtitle {
    font-size: 0.68rem;
}
.referrer-modal-simple .modal-body {
    font-size: 0.74rem;
    padding: 0.85rem 1rem;
}
.referrer-modal-simple .mst-modal__footer {
    padding: 0.5rem 1rem;
}
.referrer-modal-simple .mst-modal__btn {
    padding: 0.32rem 0.65rem;
    font-size: 0.7rem;
    font-weight: 500;
}
.referrer-modal-simple .ref-modal-section {
    margin-bottom: 0.75rem;
}
.referrer-modal-simple .ref-modal-section__title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    color: #6b7280;
    margin-bottom: 0.45rem;
}
.referrer-modal-simple .ref-modal-grid {
    gap: 0.45rem 0.65rem;
}
.referrer-modal-simple .ref-modal-field {
    padding: 0.45rem 0.55rem;
    border-radius: 6px;
}
.referrer-modal-simple .ref-modal-field__label {
    font-size: 0.62rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 0.12rem;
}
.referrer-modal-simple .ref-modal-field__value {
    font-size: 0.74rem;
    font-weight: 500;
}
.referrer-modal-simple .ref-modal-note {
    font-size: 0.72rem;
    padding: 0.5rem 0.6rem;
    border-radius: 6px;
    background: #f9fafb;
    border-color: #e5e7eb;
}
.referrer-modal-simple .ref-modal-mini-table {
    font-size: 0.72rem;
}
.referrer-modal-simple .ref-modal-mini-table th {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    padding: 0.4rem 0.45rem;
}
.referrer-modal-simple .ref-modal-mini-table td {
    padding: 0.38rem 0.45rem;
}
.referrer-modal-simple #viewReferralModal .modal-body {
    padding: 0.75rem 1rem 0.85rem;
}
.referrer-modal-simple .cancel-otp-wrap {
    margin-top: 0.65rem;
}
.referrer-modal-simple .cancel-otp-wrap .ref-modal-section__title {
    margin-top: 0;
}
.referrer-modal-simple .cancel-info-list {
    font-size: 0.72rem;
    line-height: 1.45;
    margin-bottom: 0.65rem;
}
.referrer-modal-simple .cancel-info-list li + li {
    margin-top: 0.25rem;
}
.referrer-modal-simple .cancel-email-box {
    font-size: 0.7rem;
    padding: 0.45rem 0.55rem;
    margin-bottom: 0;
    border-radius: 6px;
    background: #faf5ff;
}
.referrer-modal-simple .cancel-otp-input {
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.4rem 0.55rem;
    width: 100%;
    max-width: 100%;
    letter-spacing: normal;
    border-radius: 6px;
}
.referrer-modal-simple .cancel-otp-hint {
    font-size: 0.68rem;
    color: #6b7280;
}
.referrer-modal-simple .cancel-success__icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.referrer-modal-simple .cancel-success__title {
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.referrer-statement-modal .mst-modal__footer {
    padding: 0.5rem 1rem;
}
.referrer-statement-modal .mst-modal__btn {
    padding: 0.32rem 0.65rem;
    font-size: 0.7rem;
    font-weight: 500;
}

.referrer-statement-table tfoot td {
    font-weight: 700;
    color: #111827;
    border-top: 1px solid #e8e8ec;
    background: #faf9fc;
}
.ref-modal-section {
    margin-bottom: 1rem;
}
.ref-modal-section__title {
    margin: 0 0 0.55rem;
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    color: #8a8a9a;
}
.ref-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 0.85rem;
}
.ref-modal-field {
    border: 1px solid #ececf1;
    border-radius: 8px;
    padding: 0.55rem 0.65rem;
    background: #fafafa;
}
.ref-modal-field__label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9ca3af;
    margin-bottom: 0.2rem;
}
.ref-modal-field__value {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1f2937;
}
.ref-modal-note {
    margin: 0;
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.5;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    background: #f9f5fe;
    border: 1px solid #eadcfc;
}
.ref-modal-mini-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.76rem;
}
.ref-modal-mini-table th,
.ref-modal-mini-table td {
    padding: 0.45rem 0.5rem;
    border-bottom: 1px solid #f0f0f4;
    text-align: left;
}
.ref-modal-mini-table th {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #8a8a9a;
}
.cancel-step {
    display: none;
}
.cancel-step--active {
    display: block;
}
.cancel-info-list {
    margin: 0 0 0.85rem;
    padding-left: 1.1rem;
    font-size: 0.8rem;
    color: #4b5563;
    line-height: 1.55;
}
.cancel-info-list li + li {
    margin-top: 0.35rem;
}
.cancel-email-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fafafa;
    font-size: 0.8rem;
    color: #374151;
    margin-bottom: 0.85rem;
}
.cancel-email-box i {
    color: #771bc8;
}
.cancel-otp-wrap {
    display: none;
    margin-top: 0.85rem;
}
.cancel-otp-wrap--visible {
    display: block;
}
.cancel-otp-input {
    width: 100%;
    max-width: 220px;
    letter-spacing: 0.35em;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.55rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}
.cancel-otp-input:focus {
    border-color: #c9a8f0;
    box-shadow: 0 0 0 1px rgba(119, 27, 200, 0.15);
    outline: none;
}
.cancel-otp-hint {
    margin: 0.45rem 0 0;
    font-size: 0.74rem;
    color: #6b7280;
}
.cancel-success {
    display: none;
    text-align: center;
    padding: 0.5rem 0;
}
.cancel-success--visible {
    display: block;
}
.cancel-success__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #edfaf4;
    color: #1a7a52;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 0.65rem;
}
@media (max-width: 575.98px) {
    .ref-modal-grid {
        grid-template-columns: 1fr;
    }
    .referrer-invite-row {
      padding: 0.5rem ;
    }
}

@media (max-width: 767.98px) {
    .referrer-invite-row {
        flex-wrap: wrap;
    }
    .referrer-invite-row__lead {
        min-width: 100%;
    }

}

/* =========================================================
   BILLING & INVOICES  -  parent > child (.billing-invoices)
   Compact Poppins + cards keep own height
   ========================================================= */


.billing-invoices {
    --bi-brand: #771bc8;
    --bi-brand-dark: #5f159e;
    --bi-brand-soft: #f5effc;
    --bi-brand-line: #e8daf8;
    --bi-text: #111827;
    --bi-muted: #6b7280;
    --bi-faint: #9ca3af;
    --bi-border: #ebebef;
    --bi-surface: #fff;
    --bi-radius: 12px;
    --bi-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 3px 12px rgba(17, 24, 39, 0.03);
    --bi-shadow-hover: 0 6px 18px rgba(119, 27, 200, 0.09);

    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding-bottom: 1.25rem;
    font-family: "Poppins", sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.4;
    color: #374151;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.billing-invoices .billing-invoices__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: start;
    margin-top: 10px ;
}

.billing-invoices .billing-invoices__stat-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    align-self: start;
    height: fit-content;
    width: 100%;
    gap: 0.65rem;
    padding: 0.85rem 0.9rem;
    background: var(--bi-surface);
    border: 1px solid var(--bi-border);
    border-radius: var(--bi-radius);
    box-shadow: var(--bi-shadow);
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.billing-invoices .billing-invoices__stat-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: transparent;
    transition: background 0.2s ease;
}



.billing-invoices .billing-invoices__stat-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.78rem;
    transition: transform 0.2s ease;
}

.billing-invoices .billing-invoices__stat-card:hover .billing-invoices__stat-icon {
    transform: scale(1.04);
}

.billing-invoices .billing-invoices__stat-icon--plan,
.billing-invoices .billing-invoices__stat-icon--date,
.billing-invoices .billing-invoices__stat-icon--wallet {
    background: var(--bi-brand-soft);
    color: var(--bi-brand);
}

.billing-invoices .billing-invoices__stat-icon--due {
    background: #fef2f2;
    color: #dc2626;
}

.billing-invoices .billing-invoices__stat-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.billing-invoices .billing-invoices__stat-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--bi-muted);
    letter-spacing: 0.01em;
}

.billing-invoices .billing-invoices__stat-value-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.billing-invoices .billing-invoices__stat-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--bi-text);
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.billing-invoices .billing-invoices__stat-value--due {
    color: #dc2626;
}

.billing-invoices .billing-invoices__stat-hint {
    font-size: 0.68rem;
    font-weight: 400;
    color: var(--bi-faint);
}

.billing-invoices .billing-invoices__stat-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.12rem;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--bi-brand);
    text-decoration: none;
    transition: color 0.2s ease, gap 0.2s ease;
}

.billing-invoices .billing-invoices__stat-link:hover {
    color: var(--bi-brand-dark);
    gap: 0.4rem;
}

.billing-invoices .billing-invoices__stat-link:focus-visible {
    outline: 2px solid var(--bi-brand);
    outline-offset: 2px;
    border-radius: 3px;
}

.billing-invoices .billing-invoices__stat-link i {
    font-size: 0.52rem;
    transition: transform 0.2s ease;
}

.billing-invoices .billing-invoices__stat-link:hover i {
    transform: translateX(2px);
}

.billing-invoices .billing-invoices__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.billing-invoices .billing-invoices__badge--plan {
    background: var(--bi-brand-soft);
    color: var(--bi-brand);
}

.billing-invoices .billing-invoices__badge--primary {
    background: var(--bi-brand-soft);
    color: var(--bi-brand);
    border: 1px solid var(--bi-brand-line);
}

.billing-invoices .billing-invoices__grid {
    display: grid;
    gap: 0.75rem;
    align-items: start;
}



.billing-invoices .billing-invoices__grid--top {
    grid-template-columns: 1fr;
    align-items: start;
}

.billing-invoices .billing-invoices__grid--bottom {
    grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
    align-items: start;
}

.billing-invoices .billing-invoices__card {
    background: var(--bi-surface);
    border: 1px solid var(--bi-border);
    border-radius: var(--bi-radius);
    box-shadow: var(--bi-shadow);
    padding: 0.95rem 1.05rem;
    display: flex;
    flex-direction: column;
    align-self: start;
    height: fit-content;
    width: 100%;
    min-width: 0;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.billing-invoices .billing-invoices__card:hover {
    border-color: #e4e4ea;
    box-shadow: 0 3px 14px rgba(17, 24, 39, 0.05);
}

.billing-invoices .billing-invoices__card--plan {
    padding: 1.05rem 1.15rem;
    border-color: #e8e4ef;
}

.billing-invoices .billing-invoices__card--plan:hover {
    border-color: var(--bi-brand-line);
    box-shadow: 0 4px 16px rgba(119, 27, 200, 0.06);
}

.billing-invoices .billing-invoices__card--plan .billing-invoices__card-head {
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f4;
}

.billing-invoices .billing-invoices__card--plan .billing-invoices__card-title {
    font-size: 0.82rem;
    letter-spacing: -0.01em;
}

.billing-invoices .billing-invoices__card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    flex-wrap: nowrap;
}

.billing-invoices .billing-invoices__card-title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--bi-text);
}

.billing-invoices .billing-invoices__plan-price {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 0.28rem;
    text-align: right;
    white-space: nowrap;
}

.billing-invoices .billing-invoices__plan-amount {
    display: inline;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--bi-brand);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.billing-invoices .billing-invoices__plan-cycle {
    display: inline;
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--bi-muted);
    line-height: 1.2;
}

.billing-invoices .billing-invoices__plan-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.billing-invoices .billing-invoices__plan-info {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    flex: 1 1 260px;
    min-width: 0;
}

.billing-invoices .billing-invoices__plan-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--bi-brand-soft);
    color: var(--bi-brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.billing-invoices .billing-invoices__plan-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.billing-invoices .billing-invoices__plan-name {
    margin: 0;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--bi-text);
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.billing-invoices .billing-invoices__plan-name-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.62rem;
    font-weight: 500;
    color: var(--bi-brand);
    background: var(--bi-brand-soft);
    border: 1px solid var(--bi-brand-line);
    border-radius: 999px;
    padding: 0.12rem 0.45rem;
    line-height: 1.3;
}

.billing-invoices .billing-invoices__plan-desc {
    margin: 0;
    font-size: 0.76rem;
    font-weight: 400;
    color: var(--bi-muted);
    line-height: 1.45;
}

.billing-invoices .billing-invoices__trial-banner {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
    padding: 0.38rem 0.65rem;
    border-radius: 8px;
    background: #edfaf4;
    border: 1px solid #c6ecd9;
    color: #1a7a52;
    font-size: 0.7rem;
    font-weight: 400;
    line-height: 1.35;
    width: fit-content;
    max-width: 100%;
}

.billing-invoices .billing-invoices__trial-banner i {
    color: #1a7a52;
    flex-shrink: 0;
    font-size: 0.68rem;
}

.billing-invoices .billing-invoices__trial-banner strong {
    font-weight: 600;
}

.billing-invoices .billing-invoices__plan-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.45rem;
    flex: 0 0 auto;
    min-width: 0;
}

.billing-invoices .billing-invoices__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.25;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease,
        box-shadow 0.2s ease;
}

.billing-invoices .billing-invoices__btn:focus-visible {
    outline: 2px solid var(--bi-brand);
    outline-offset: 2px;
}

.billing-invoices .billing-invoices__btn--primary {
    padding: 0.5rem 1rem;
    background: var(--bi-brand);
    border: 1px solid var(--bi-brand);
    color: #fff;
}

.billing-invoices .billing-invoices__btn--primary:hover {
    background: var(--bi-brand-dark);
    border-color: var(--bi-brand-dark);
}

.billing-invoices .billing-invoices__btn--primary:active {
    background: #52128a;
}

.billing-invoices .billing-invoices__btn--danger-text {
    padding: 0.5rem 0.7rem;
    background: transparent;
    border: 1px solid transparent;
    color: #dc2626;
    font-weight: 500;
    border-radius: 8px;
}

.billing-invoices .billing-invoices__btn--danger-text:hover {
    color: #b91c1c;
    background: #fef2f2;
    border-color: #fecaca;
}

.billing-invoices .billing-invoices__btn--dashed {
    width: 100%;
    margin-top: 0.15rem;
    padding: 0.55rem 0.7rem;
    background: #faf8ff;
    border: 1.5px dashed #d0b6f0;
    color: var(--bi-brand);
    font-weight: 500;
}

.billing-invoices .billing-invoices__btn--dashed:hover {
    background: var(--bi-brand-soft);
    border-color: var(--bi-brand);
    border-style: solid;
}

.billing-invoices .billing-invoices__card--payment {
    gap: 0.6rem;
}

.billing-invoices .billing-invoices__payment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--bi-border);
    border-radius: 9px;
    background: #fafafa;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.billing-invoices .billing-invoices__payment-item:hover {
    background: #fff;
    border-color: var(--bi-brand-line);
    box-shadow: 0 2px 8px rgba(119, 27, 200, 0.06);
}

.billing-invoices .billing-invoices__payment-left {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.billing-invoices .billing-invoices__card-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 26px;
    padding: 0 0.35rem;
    border-radius: 5px;
    background: linear-gradient(135deg, #1a1f71 0%, #2a2f8a 100%);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(26, 31, 113, 0.22);
}

.billing-invoices .billing-invoices__payment-meta {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
    min-width: 0;
}

.billing-invoices .billing-invoices__payment-name {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--bi-text);
}

.billing-invoices .billing-invoices__payment-expiry {
    font-size: 0.68rem;
    font-weight: 400;
    color: var(--bi-muted);
}

.billing-invoices .billing-invoices__month-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
    flex-shrink: 0;
}

.billing-invoices .billing-invoices__month-filter-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.billing-invoices .billing-invoices__month-select {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--bi-text);
  background: #fff;
  border: 1px solid var(--bi-border);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.billing-invoices .billing-invoices__month-select:hover {
    background: var(--bi-brand-soft);
    border-color: var(--bi-brand);
    color: var(--bi-brand);
}

.billing-invoices .billing-invoices__month-select:focus {
    outline: none;
    border-color: var(--bi-brand);
    box-shadow: 0 0 0 2px rgba(119, 27, 200, 0.12);
    transform: translateY(-1px);
}

.billing-invoices .billing-invoices__month-select option {
    background: #fff;
    color: var(--bi-text);
}

.billing-invoices .billing-invoices__card--invoices .mst-table-root {
    margin: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
}

.billing-invoices .billing-invoices__card--invoices .mst-table-scroll-wrap {
    margin: 0;
    border: 1px solid #f0f0f4;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.billing-invoices .billing-invoices__card--invoices .mst-scroll-hint {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.7rem;
    font-weight: 500;
    color: #6b7280;
    background: #faf8ff;
    border-bottom: 1px solid #f0f0f4;
}

.billing-invoices .billing-invoices__card--invoices .mst-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #d4c0ec #f5f5f7;
}

.billing-invoices .billing-invoices__card--invoices .mst-table-scroll::-webkit-scrollbar {
    height: 6px;
}

.billing-invoices .billing-invoices__card--invoices .mst-table-scroll::-webkit-scrollbar-track {
    background: #f5f5f7;
    border-radius: 999px;
}

.billing-invoices .billing-invoices__card--invoices .mst-table-scroll::-webkit-scrollbar-thumb {
    background: #d4c0ec;
    border-radius: 999px;
}

.billing-invoices .billing-invoices__card--invoices .mst-table-scroll::-webkit-scrollbar-thumb:hover {
    background: #b89ad8;
}

.billing-invoices .billing-invoices__card--invoices .mst-table {
    width: 100%;
    min-width: 720px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
}

.billing-invoices .billing-invoices__card--invoices .mst-table .mst-table__head {
    background: linear-gradient(180deg, #fafafb 0%, #f5f3f8 100%);
}

.billing-invoices .billing-invoices__card--invoices .mst-table .mst-table__th {
    font-family: inherit;
    font-size: 0.64rem;
    font-weight: 600;
    color: #8a8a9a;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.55rem 0.65rem;
    border-bottom: 1px solid #ebebef;
    white-space: nowrap;
}

.billing-invoices .billing-invoices__card--invoices .mst-table .mst-table__th--actions {
    text-align: center;
}

.billing-invoices .billing-invoices__card--invoices .mst-table .mst-table__th i {
    margin-left: 0.2rem;
    font-size: 0.55rem;
    opacity: 0.7;
}

.billing-invoices .billing-invoices__card--invoices .mst-table .mst-table__td {
    font-family: inherit;
    font-size: 0.74rem;
    color: #374151;
    padding: 0.3rem 0.5rem;
    vertical-align: middle;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s ease;
}

.billing-invoices .billing-invoices__card--invoices .mst-table .mst-table__td--actions {
    text-align: center;
}

.billing-invoices .billing-invoices__card--invoices .mst-table .mst-table__row:nth-child(even) .mst-table__td {
    background: #fafafb;
}

.billing-invoices .billing-invoices__card--invoices .mst-table .mst-table__row:hover .mst-table__td {
    background: #faf8ff;
}

.billing-invoices .billing-invoices__card--invoices .mst-table .mst-table__row:last-child .mst-table__td {
    border-bottom: none;
}

.billing-invoices .billing-invoices__card--invoices .mst-table .mst-table__row--hidden {
    display: none;
}

.billing-invoices .billing-invoices__card--invoices .mst-table-root .mst-table-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
    border-top: 1px solid #ececf0;
    background: linear-gradient(180deg, #fdfdfd 0%, #f9f9fb 100%);
}

.billing-invoices .billing-invoices__card--invoices .mst-table-root .mst-table-footer .mst-table-footer__info {
    font-size: 0.65rem;
    color: #9999aa;
    flex-shrink: 0;
}

.billing-invoices .billing-invoices__card--invoices .mst-table-root .mst-table-footer .mst-table-footer__pagination {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.3rem;
    margin-left: auto;
}

.billing-invoices .billing-invoices__card--invoices .mst-table-root .mst-table-footer .mst-page-numbers {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.25rem;
}

.billing-invoices .billing-invoices__card--invoices .mst-table-root .mst-table-footer .mst-page-btn {
    box-sizing: border-box;
    min-width: 26px;
    width: auto;
    height: 26px;
    padding: 0 0.35rem;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid #e8e8ec;
    border-radius: 6px;
    background: #fff;
    font-size: 0.63rem;
    font-weight: 600;
    line-height: 1;
    color: #444455;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.billing-invoices .billing-invoices__card--invoices .mst-table-root .mst-table-footer .mst-page-btn:hover:not(:disabled) {
    border-color: #771BC8;
    color: #771BC8;
    background: #faf5ff;
}

.billing-invoices .billing-invoices__card--invoices .mst-table-root .mst-table-footer .mst-page-btn--active {
    background: #771BC8;
    border-color: #771BC8;
    color: #fff;
    box-shadow: 0 2px 6px rgba(119, 27, 200, 0.25);
}

.billing-invoices .billing-invoices__card--invoices .mst-table-root .mst-table-footer .mst-page-btn--nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.billing-invoices .billing-invoices__card--invoices .mst-table .mst-empty-row {
    display: none;
}

.billing-invoices .billing-invoices__card--invoices .mst-table .mst-empty-row.mst-empty-row--visible {
    display: table-row;
}

.billing-invoices .billing-invoices__card--invoices .mst-table .mst-date {
    font-family: inherit;
    font-size: 0.74rem;
    font-weight: 400;
    color: #374151;
}



.billing-invoices .billing-invoices__card--invoices .mst-table .mst-table__td[data-label="Invoice ID"] .mst-date {
    font-weight: 500;
    color: var(--bi-text);
    font-variant-numeric: tabular-nums;
}

.billing-invoices .billing-invoices__inv-cell {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    max-width: 100%;
    padding-right: 0.15rem;
}

.billing-invoices .billing-invoices__inv-cell .mst-date {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.billing-invoices .billing-invoices__inv-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-4px) scale(0.92);
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

.billing-invoices .billing-invoices__card--invoices .mst-table .mst-table__row:hover .billing-invoices__inv-actions,
.billing-invoices .billing-invoices__inv-cell:focus-within .billing-invoices__inv-actions {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.billing-invoices .billing-invoices__inv-actions .mst-actions__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid var(--bi-brand-line);
    border-radius: 8px;
    background: #fff;
    color: var(--bi-brand);
    font-size: 0.78rem;
    box-shadow: 0 2px 8px rgba(119, 27, 200, 0.12);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease,
        transform 0.15s ease, box-shadow 0.15s ease;
}

.billing-invoices .billing-invoices__inv-actions .mst-actions__btn:hover {
    background: var(--bi-brand);
    border-color: var(--bi-brand);
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(119, 27, 200, 0.28);
}

.billing-invoices .billing-invoices__inv-actions .mst-actions__btn:focus-visible {
    outline: 2px solid var(--bi-brand);
    outline-offset: 2px;
}


.billing-invoices .billing-invoices__card--invoices .mst-table .mst-table__td[data-label="Amount EGP"] .mst-date,
.billing-invoices .billing-invoices__card--invoices .mst-table .mst-table__td[data-label="Amount"] .mst-date {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--bi-text);
}

.billing-invoices .billing-invoices__cycle {
    display: inline-flex;
    align-items: center;
    padding: 0.14rem 0.48rem;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
}

.billing-invoices .billing-invoices__cycle--monthly {
    background: var(--bi-brand-soft);
    color: var(--bi-brand);
    border: 1px solid var(--bi-brand-line);
}

.billing-invoices .billing-invoices__cycle--yearly {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.billing-invoices .billing-invoices__card--invoices .mst-table .mst-status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.64rem;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
}

.billing-invoices .billing-invoices__card--invoices .mst-table .mst-status__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.billing-invoices .billing-invoices__card--invoices .mst-table .mst-status--published {
    background: #edfaf4;
    color: #1a7a52;
}

.billing-invoices .billing-invoices__card--invoices .mst-table .mst-status--published .mst-status__dot {
    background: #22c55e;
}

.billing-invoices .billing-invoices__card--invoices .mst-table .mst-status--draft {
    background: #fff7ed;
    color: #c2410c;
}

.billing-invoices .billing-invoices__card--invoices .mst-table .mst-status--draft .mst-status__dot {
    background: #f97316;
}

.billing-invoices .billing-invoices__card--invoices .mst-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.billing-invoices .billing-invoices__card--invoices .mst-actions__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    padding: 0;
    border: 1px solid var(--bi-border);
    border-radius: 8px;
    background: #fff;
    color: var(--bi-muted);
    font-size: 0.6rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease,
        transform 0.15s ease, box-shadow 0.15s ease;
}

.billing-invoices .billing-invoices__card--invoices .mst-actions__btn:hover {
    border-color: var(--bi-brand);
    background: var(--bi-brand);
    color: #fff;
    transform: scale(1.06);
    box-shadow: 0 3px 10px rgba(119, 27, 200, 0.25);
}

/* Desktop: actions live on invoice-name hover; keep Actions column for mobile */
@media (min-width: 768px) {
    .billing-invoices .billing-invoices__card--invoices .mst-table__th--actions,
    .billing-invoices .billing-invoices__card--invoices .mst-table__td--actions {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .billing-invoices .billing-invoices__inv-actions {
        display: none !important;
    }

    .billing-invoices .billing-invoices__card--invoices .mst-scroll-hint {
        display: flex;
    }

    .billing-invoices .billing-invoices__card--invoices .mst-table-scroll-wrap {
        border: 1px solid #f0f0f4;
        border-radius: 10px;
        background: #fff;
        overflow: hidden;
    }

    .billing-invoices .billing-invoices__card--invoices .mst-table-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .billing-invoices .billing-invoices__card--invoices .mst-table {
        min-width: 720px;
        width: 100%;
    }

    .billing-invoices .billing-invoices__card--invoices .mst-table .mst-table__head {
        display: table-header-group;
    }

    .billing-invoices .billing-invoices__card--invoices .mst-table .mst-table__body {
        display: table-row-group;
    }

    .billing-invoices .billing-invoices__card--invoices .mst-table .mst-table__row {
        display: table-row;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
    }

    .billing-invoices .billing-invoices__card--invoices .mst-table .mst-table__td {
        display: table-cell;
        width: auto;
        text-align: left;
        white-space: nowrap;
        padding: 0.6rem 0.65rem;
        border-bottom: 1px solid #f5f5f7;
    }

    .billing-invoices .billing-invoices__card--invoices .mst-table .mst-table__td::before {
        content: none;
    }

    .billing-invoices .billing-invoices__card--invoices .mst-table .mst-table__td[data-label="Invoice ID"] {
        min-width: 9.5rem;
    }

    .billing-invoices .billing-invoices__card--invoices .mst-table__th--actions,
    .billing-invoices .billing-invoices__card--invoices .mst-table .mst-table__td--actions {
        display: table-cell !important;
        text-align: center;
        vertical-align: middle;
    }

    .billing-invoices .billing-invoices__card--invoices .mst-actions {
        justify-content: center;
        gap: 0.35rem;
    }

    .billing-invoices .billing-invoices__card--invoices .mst-actions__btn {
        width: 32px;
        height: 32px;
        font-size: 0.78rem;
    }

    .billing-invoices .billing-invoices__inv-cell {
        justify-content: flex-start;
        max-width: none;
    }
}

.billing-invoices .billing-invoices__empty {
    margin: 0.75rem 0 0;
    padding: 0.85rem;
    border-radius: 8px;
    background: #fafafa;
    border: 1px dashed var(--bi-border);
    text-align: center;
    font-size: 0.74rem;
    color: var(--bi-muted);
}

.billing-invoices .billing-invoices__pay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    border: 1px solid var(--bi-brand);
    background: var(--bi-brand);
    color: #fff;
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.billing-invoices .billing-invoices__pay-btn:hover {
    background: var(--bi-brand-dark);
    border-color: var(--bi-brand-dark);
    box-shadow: 0 2px 8px rgba(119, 27, 200, 0.24);
}

.billing-invoices .billing-invoices__pay-btn:focus-visible {
    outline: 2px solid var(--bi-brand);
    outline-offset: 2px;
}

.billing-invoices .billing-invoices__card--invoices .mst-status--failed {
    background: #fef2f2;
    color: #b91c1c;
}

.billing-invoices .billing-invoices__card--invoices .mst-status--failed .mst-status__dot {
    background: #dc2626;
}

.billing-invoices .billing-invoices__card-footer {
    margin-top: 0.7rem;
    padding-top: 0.6rem;
    border-top: 1px solid #f0f0f4;
    text-align: center;
}

.billing-invoices .billing-invoices__footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--bi-brand);
    text-decoration: none;
    transition: color 0.2s ease, gap 0.2s ease;
}

.billing-invoices .billing-invoices__footer-link:hover {
    color: var(--bi-brand-dark);
    gap: 0.45rem;
}

.billing-invoices .billing-invoices__footer-link:focus-visible {
    outline: 2px solid var(--bi-brand);
    outline-offset: 2px;
    border-radius: 3px;
}

.billing-invoices .billing-invoices__footer-link i {
    font-size: 0.55rem;
    transition: transform 0.2s ease;
}

.billing-invoices .billing-invoices__footer-link:hover i {
    transform: translateX(2px);
}

.billing-invoices .billing-invoices__usage-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1rem;
    flex: 0 0 auto;
}

.billing-invoices .billing-invoices__usage-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.billing-invoices .billing-invoices__usage-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
}

.billing-invoices .billing-invoices__usage-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #374151;
}

.billing-invoices .billing-invoices__usage-label i {
    color: var(--bi-brand);
    font-size: 0.68rem;
    width: 1rem;
    height: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bi-brand-soft);
    border-radius: 5px;
    text-align: center;
}

.billing-invoices .billing-invoices__usage-count {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--bi-muted);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.billing-invoices .billing-invoices__progress {
    width: 100%;
    height: 7px;
    border-radius: 999px;
    background: #f0f0f4;
    overflow: hidden;
}

.billing-invoices .billing-invoices__progress-bar {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--bi-brand) 0%, #9b4de0 100%);
    transition: width 0.35s ease;
    box-shadow: 0 0 6px rgba(119, 27, 200, 0.28);
}

@media (prefers-reduced-motion: reduce) {
    .billing-invoices .billing-invoices__stat-card,
    .billing-invoices .billing-invoices__stat-icon,
    .billing-invoices .billing-invoices__stat-link,
    .billing-invoices .billing-invoices__btn,
    .billing-invoices .billing-invoices__footer-link,
    .billing-invoices .billing-invoices__progress-bar {
        transition: none;
    }

    .billing-invoices .billing-invoices__stat-card:hover {
        transform: none;
    }
}

@media (max-width: 1199.98px) {
    .billing-invoices .billing-invoices__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .billing-invoices .billing-invoices__grid--top,
    .billing-invoices .billing-invoices__grid--bottom {
        grid-template-columns: 1fr;
        align-items: start;
    }
}

@media (max-width: 767.98px) {
    .home-section .billing-invoices-page-desc {
        font-size: 0.76rem;
        margin-bottom: 0.55rem;
    }

    .billing-invoices {
        gap: 0.7rem;
        font-size: 0.78rem;
    }

    .billing-invoices .billing-invoices__stats {
        gap: 0.6rem;
        align-items: start;
    }

    .billing-invoices .billing-invoices__card {
        padding: 0.8rem 0.5rem;
        border-radius: 11px;
        height: fit-content;
    }

    .billing-invoices .billing-invoices__plan-body {
        flex-direction: column;
        align-items: stretch;
    }

    .billing-invoices .billing-invoices__plan-actions {
        width: 100%;
        justify-content: stretch;
    }

    .billing-invoices .billing-invoices__plan-actions .billing-invoices__btn--primary {
        flex: 1 1 auto;
    }

    .billing-invoices .billing-invoices__card--plan .billing-invoices__card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .billing-invoices .billing-invoices__plan-price {
        text-align: left;
        width: 100%;
        justify-content: flex-start;
    }

    .billing-invoices .billing-invoices__card--invoices .mst-table {
        min-width: 720px;
    }

    .billing-invoices .billing-invoices__card--invoices .mst-table-scroll-wrap {
        border-radius: 8px;
    }

    .billing-invoices .billing-invoices__card--invoices .mst-actions__btn {
      font-size: 0.6rem;
      width: 22px;
    height: 22px;

    }

    .billing-invoices .billing-invoices__payment-item {
        flex-wrap: wrap;
    }

    .billing-invoices .billing-invoices__stat-value {
        font-size: 0.88rem;
    }

    .billing-invoices .billing-invoices__plan-name,
    .billing-invoices .billing-invoices__plan-amount {
        font-size: 0.9rem;
    }
    
.billing-invoices .billing-invoices__plan-info {
flex: 1 1 0px;
  gap: 0.4rem;
}

}

@media (max-width: 575.98px) {
    .billing-invoices .billing-invoices__stat-card {
        padding: 0.5rem ;
    }

    .billing-invoices .billing-invoices__trial-banner {
        font-size: 0.66rem;
        width: 100%;
    }

    .billing-invoices .billing-invoices__card--invoices .mst-table .mst-table__td,
    .billing-invoices .billing-invoices__card--invoices .mst-table .mst-date {
        font-size: 0.72rem;
    }

    .billing-invoices .billing-invoices__card--invoices .mst-table .mst-table__th {
        font-size: 0.62rem;
    }
    .billing-invoices .billing-invoices__stat-icon {
      font-size: 0.7rem;
      width: 26px;
      height: 26px;
    }
}

/* =========================================================
   BILLING INVOICE MODAL
   ========================================================= */
.bi-invoice-modal .modal-dialog {
    max-width: 720px;
    margin: 1rem auto;
}

.bi-invoice-modal__content {
    border: 1px solid #ebebef;
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(17, 24, 39, 0.14);
    overflow: hidden;
}

.bi-invoice-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.95rem 1.15rem;
    border-bottom: 1px solid #f0f0f4;
    background: #fff;
}

.bi-invoice-modal__title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    min-width: 0;
}

.bi-invoice-modal__title-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f5effc;
    color: #771bc8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.bi-invoice-modal__title {
    margin: 0;
    font-family: "Poppins", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
}

.bi-invoice-modal__subtitle {
    margin: 0.15rem 0 0;
    font-size: 0.72rem;
    color: #6b7280;
    line-height: 1.4;
}

.bi-invoice-modal__body {
    padding: 1rem 1.15rem;
    background: #fafafa;
}

.bi-invoice-sheet {
    background: #fff;
    border: 1px solid #ebebef;
    border-radius: 12px;
    padding: 1.25rem 1.35rem;
    color: #374151;
}

.bi-invoice-sheet__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f4;
}

.bi-invoice-sheet__brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.bi-invoice-sheet__logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #771bc8;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.bi-invoice-sheet__company {
    display: block;
    font-size: 0.95rem;
    color: #111827;
    line-height: 1.25;
}

.bi-invoice-sheet__tagline {
    display: block;
    font-size: 0.72rem;
    color: #6b7280;
}

.bi-invoice-sheet__meta {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.bi-invoice-sheet__doc-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #9ca3af;
}

.bi-invoice-sheet__id {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
}

.bi-invoice-sheet__status {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 500;
    background: #f3f4f6;
    color: #4b5563;
}

.bi-invoice-sheet__status--paid {
    background: #edfaf4;
    color: #1a7a52;
}

.bi-invoice-sheet__status--pending {
    background: #fff7ed;
    color: #c2410c;
}

.bi-invoice-sheet__status--failed {
    background: #fef2f2;
    color: #b91c1c;
}

.bi-invoice-sheet__parties {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.bi-invoice-sheet__label {
    display: block;
    font-size: 0.66rem;
    font-weight: 500;
    color: #9ca3af;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bi-invoice-sheet__parties strong {
    display: block;
    font-size: 0.84rem;
    color: #111827;
    font-weight: 600;
}

.bi-invoice-sheet__parties p {
    margin: 0.15rem 0 0;
    font-size: 0.74rem;
    color: #6b7280;
    line-height: 1.4;
}

.bi-invoice-sheet__dates {
    display: grid;
    gap: 0.65rem;
}

.bi-invoice-sheet__table-wrap {
    overflow-x: auto;
    margin-bottom: 1rem;
    border: 1px solid #f0f0f4;
    border-radius: 10px;
}

.bi-invoice-sheet__table {
    width: 100%;
    border-collapse: collapse;
    min-width: 420px;
}

.bi-invoice-sheet__table th {
    background: #faf8ff;
    font-size: 0.66rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.55rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid #f0f0f4;
}

.bi-invoice-sheet__table td {
    padding: 0.75rem;
    font-size: 0.78rem;
    color: #374151;
    vertical-align: top;
    border-bottom: 1px solid #f5f5f7;
}

.bi-invoice-sheet__table td strong {
    display: block;
    color: #111827;
    font-size: 0.8rem;
    margin-bottom: 0.15rem;
}

.bi-invoice-sheet__table td span {
    display: block;
    color: #6b7280;
    font-size: 0.72rem;
}

.bi-invoice-sheet__num {
    text-align: right !important;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.bi-invoice-sheet__totals {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.bi-invoice-sheet__total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.76rem;
    color: #6b7280;
}

.bi-invoice-sheet__total-row strong {
    color: #111827;
    font-weight: 500;
}

.bi-invoice-sheet__total-row--grand {
    margin-top: 0.25rem;
    padding-top: 0.55rem;
    border-top: 1px solid #ebebef;
    font-size: 0.88rem;
    color: #111827;
    font-weight: 600;
}

.bi-invoice-sheet__total-row--grand strong {
    color: #771bc8;
    font-weight: 600;
}

.bi-invoice-sheet__note {
    margin: 1.1rem 0 0;
    padding-top: 0.85rem;
    border-top: 1px dashed #ebebef;
    font-size: 0.72rem;
    color: #9ca3af;
    line-height: 1.45;
}

.bi-invoice-modal__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.85rem 1.15rem;
    border-top: 1px solid #f0f0f4;
    background: #fff;
}

.bi-invoice-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border-radius: 8px;
    font-family: "Poppins", sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.25;
    padding: 0.5rem 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.bi-invoice-modal__btn--ghost {
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #4b5563;
}

.bi-invoice-modal__btn--ghost:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.bi-invoice-modal__btn--primary {
    background: #771bc8;
    border: 1px solid #771bc8;
    color: #fff;
}

.bi-invoice-modal__btn--primary:hover {
    background: #5f159e;
    border-color: #5f159e;
}

@media (max-width: 767.98px) {
    .bi-invoice-modal .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .bi-invoice-sheet {
        padding: 1rem;
    }

    .bi-invoice-sheet__top,
    .bi-invoice-sheet__parties {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }

    .bi-invoice-sheet__meta {
        text-align: left;
        align-items: flex-start;
    }

    .bi-invoice-sheet__totals {
        max-width: 100%;
    }

    .bi-invoice-modal__footer {
        justify-content: stretch;
    }

    .bi-invoice-modal__btn {
        flex: 1 1 auto;
    }
}

/* ==========================================================================
   Hiring Reports (company)
   ========================================================================== */

.hr-report-lead {
    margin: -0.35rem 0 1rem;
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 400;
    max-width: 48rem;
    line-height: 1.5;
}

.hr-report-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #e8e8ec;
    border-radius: 11px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.hr-report-topbar__info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.hr-report-topbar__label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.hr-report-topbar__value {
    font-size: 0.88rem;
    font-weight: 500;
    color: #1a1625;
}

.hr-report-topbar__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.3rem;
}

.hr-report-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.66rem;
    font-weight: 500;
    color: #64748b;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e8e8ec;
}

.hr-report-chip i { color: #7a2cbf; font-size: 0.6rem; }

.hr-report-topbar__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.hr-report-topbar__actions .mst-export-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    background: #fff;
    color: #15803d;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    height: auto;
    min-height: 0;
    box-shadow: none;
}

.hr-report-topbar__actions .mst-export-btn:hover {
    background: #f0fdf4;
    border-color: #86efac;
    color: #15803d;
}

#reportActiveFilters.agency-active-filters {
    padding: 0.55rem 0.75rem;
  
}

#reportActiveFilters .agency-active-filters__clear {
    margin-left: auto;
}

#reportFilterOffcanvas .hr-report-filter__heading {
    min-width: 0;
}

#reportFilterOffcanvas .hr-report-filter__lead {
    margin: 0.2rem 0 0;
    font-size: 0.72rem;
    font-weight: 400;
    color: #94a3b8;
    line-height: 1.4;
}

#reportFilterOffcanvas .hr-report-filter__hint {
    margin: 0 0 0.45rem;
    font-size: 0.7rem;
    color: #94a3b8;
    line-height: 1.35;
}

#reportFilterOffcanvas .hr-report-preset-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
    margin-top: 0.35rem;
}

#reportFilterOffcanvas .hr-report-preset-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.55rem;
    border: 1px solid #e8e8ec;
    border-radius: 8px;
    background: #fff;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

#reportFilterOffcanvas .hr-report-preset-btn:hover {
    border-color: #d8c4ef;
    color: #7a2cbf;
    background: #faf7fe;
}

#reportFilterOffcanvas .hr-report-preset-btn.is-active {
    border-color: #7a2cbf;
    background: #f3ebfc;
    color: #7a2cbf;
    box-shadow: 0 1px 4px rgba(122, 44, 191, 0.08);
}

#reportFilterOffcanvas #reportCustomDateGroup.is-disabled {
    opacity: 0.55;
}

#reportFilterOffcanvas #reportCustomDateGroup.is-disabled .agency-filter-input {
    pointer-events: none;
}

.hr-report-tabs {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 0.75rem;
    padding: 0;
    list-style: none;
    border: none;
    overflow-x: auto;
    scrollbar-width: none;
}

.hr-report-tabs::-webkit-scrollbar { display: none; }
.hr-report-tabs .nav-item { flex-shrink: 0; }

.hr-report-tabs .nav-link {
    border: 1px solid transparent !important;
    border-radius: 8px;
    color: #64748b;
    font-weight: 500;
    font-size: 0.78rem;
    padding: 0.45rem 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    background: transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.hr-report-tabs .nav-link:hover {
    color: #7a2cbf;
    background: #faf7fe;
}

.hr-report-tabs .nav-link.active {
    background: #fff;
    color: #7a2cbf;
    font-weight: 500;
    border-color: #e8e8ec !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.hr-report-tabs .nav-link i { font-size: 0.72rem; opacity: 0.85; }

.hr-report-card {
    background: #fff;
    border: 1px solid #e8e8ec;
    border-radius: 11px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.hr-report-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hr-report-tab-panel {
    animation: hrReportFadeIn 0.2s ease;
}

@keyframes hrReportFadeIn {
    from { opacity: 0; transform: translateY(3px); }
    to { opacity: 1; transform: translateY(0); }
}

.hr-report-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.9rem;
}

.hr-report-metric {
    background: #f8fafc;
    border: 1px solid #ececf0;
    border-radius: 9px;
    padding: 0.6rem 0.7rem;
}

.hr-report-metric__label {
    display: block;
    font-size: 0.66rem;
    font-weight: 500;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.hr-report-metric__value {
    display: block;
    margin-top: 0.15rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1625;
}

.hr-report-metric__hint {
    display: block;
    margin-top: 0.12rem;
    font-size: 0.66rem;
    color: #94a3b8;
    line-height: 1.35;
}

.hr-report-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #ececf0;
}

.hr-report-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.68rem;
    color: #64748b;
}

.hr-report-legend__dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
}

.hr-report-legend__dot--active { background: #7a2cbf; }
.hr-report-legend__dot--hired { background: #15803d; }
.hr-report-legend__dot--rejected { background: #c2410c; }

.hr-job-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.75rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.hr-job-status--open {
    background: #dcfce7;
    color: #15803d;
}

.hr-job-status--closed {
    background: #f1f5f9;
    color: #64748b;
}

.manage-system-tutorials[data-mst-table="hiring-reports"] .mst-table__td[data-label="Status"] {
    white-space: nowrap;
}

.hr-dept-cell {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.hr-dept-cell__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3ebfc;
    color: #7a2cbf;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.hr-report-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #94a3b8;
    font-size: 0.88rem;
}

.hr-report-empty i {
    display: block;
    font-size: 1.75rem;
    color: #cbd5e1;
    margin-bottom: 0.65rem;
}

.hr-report-section {
    margin-bottom: 1.25rem;
}

.hr-report-section__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.hr-report-section__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1a1625;
}

.hr-report-section__sub {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 400;
}

.hr-pipeline {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.65rem;
}

.hr-pipeline__item {
    text-align: center;
    padding: 0.85rem 0.5rem 0.75rem;
    border-radius: 12px;
    background: #faf7fe;
    border: 1px solid #f0e8f8;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.hr-pipeline__item:hover {
    border-color: #e4d4f7;
    box-shadow: 0 2px 10px rgba(122, 44, 191, 0.06);
}

.hr-pipeline__count {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: #7a2cbf;
    line-height: 1.2;
}

.hr-pipeline__label {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.72rem;
    font-weight: 500;
    color: #64748b;
}

.hr-pipeline__bar-wrap {
    height: 4px;
    margin: 0.55rem 0.35rem 0;
    background: #ede4f7;
    border-radius: 999px;
    overflow: hidden;
}

.hr-pipeline__bar {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #9b59d9, #7a2cbf);
}

.hr-pipeline__item--hired .hr-pipeline__count { color: #15803d; }
.hr-pipeline__item--hired .hr-pipeline__bar { background: linear-gradient(90deg, #34d399, #15803d); }
.hr-pipeline__item--rejected .hr-pipeline__count { color: #b45309; }
.hr-pipeline__item--rejected .hr-pipeline__bar { background: linear-gradient(90deg, #fdba74, #c2410c); }

.hr-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 500;
}

.hr-pill--hired {
    background: #dcfce7;
    color: #15803d;
}

.hr-pill--rejected {
    background: #ffedd5;
    color: #c2410c;
}

.hr-pill--interview {
    background: #f3ebfc;
    color: #7a2cbf;
}

.hr-conv {
    color: #7a2cbf;
    font-weight: 500;
}

.hr-report-note {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.78rem;
    color: #94a3b8;
}

.hr-report-empty-row td {
    border-bottom: none !important;
}

.mst-stat-card__icon--hired {
    background: #edfaf4;
    color: #1a7a52;
}

.mst-stat-card__icon--rejected {
    background: #fff7ed;
    color: #c2410c;
}

.manage-system-tutorials[data-mst-table="hiring-reports"] .mst-table__th--title,
.manage-system-tutorials[data-mst-table="hiring-reports"] .mst-table__td--title {
    min-width: 160px;
}

.manage-system-tutorials[data-mst-table="hiring-reports"] .mst-table__th {
    font-weight: 500;
    color: #64748b;
    letter-spacing: 0.01em;
}

.manage-system-tutorials[data-mst-table="hiring-reports"] .mst-table__td {
    font-weight: 400;
    color: #475569;
}

.manage-system-tutorials[data-mst-table="hiring-reports"] .mst-title-cell__name {
    white-space: normal;
    word-break: break-word;
    font-weight: 500;
    color: #1a1625;
}

.manage-system-tutorials[data-mst-table="hiring-reports"] .mst-stat-card__value {
    font-weight: 600;
}

.manage-system-tutorials[data-mst-table="hiring-reports"] .mst-stat-card__label {
    font-weight: 500;
}

@media (max-width: 1100px) {
    .hr-pipeline {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .hr-report-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .hr-pipeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }
    .hr-pipeline__item {
        padding: 0.7rem 0.4rem 0.65rem;
        border-radius: 10px;
    }
    .hr-pipeline__count {
        font-size: 1.05rem;
    }
    .hr-pipeline__label {
        font-size: 0.68rem;
    }
    .hr-pipeline__bar-wrap {
        margin: 0.45rem 0.2rem 0;
    }
    .hr-report-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
        margin-bottom: 0.75rem;
    }
    .hr-report-metric {
        padding: 0.55rem 0.6rem;
    }
    .hr-report-metric__value {
        font-size: 0.92rem;
    }
    .hr-report-section__title {
        font-size: 0.9rem;
    }
    .hr-report-section__sub {
        font-size: 0.72rem;
    }
    .hr-report-legend {
        gap: 0.4rem 0.75rem;
        margin-top: 0.6rem;
        padding-top: 0.6rem;
    }
    .hr-report-topbar {
        flex-direction: column;
        align-items: stretch;
    }
    .hr-report-topbar__actions {
        width: 100%;
    }
    .hr-report-topbar__actions .agency-btn-filter {
        flex: 1;
        justify-content: center;
    }
}

/* HR Notifications page — prefix hrn- to avoid clashes */
.hrn-page {
    --hrn-text: #3d3a52;
    --hrn-soft: #7a778f;
    --hrn-faint: #a8a5b8;
    --hrn-accent: #7a2cbf;
    --hrn-accent-strong: #771bc8;
    --hrn-border: #e8e0f2;
    --hrn-muted: #f7f4fb;
    --hrn-danger: #e85d6f;
    color: var(--hrn-text);
    font-size: 13px;
    padding-bottom: 1.25rem;
}

.hrn-page *,
.hrn-page *::before,
.hrn-page *::after {
    box-sizing: border-box;
}

.hrn-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    margin: 0 0 0.5rem;
}

.hrn-kicker {
    margin: 0;
    color: var(--hrn-faint);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hrn-unread {
    display: block;
    color: var(--hrn-accent);
    font-size: 0.92rem;
    font-weight: 600;
}

.hrn-page button,
.hrn-page input,
.hrn-page a {
    font-family: inherit;
}

.hrn-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
    margin: 0 0 0.55rem;
}

.hrn-stat {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
    gap: 0.5rem;
    min-width: 0;
    min-height: 78px;
    padding: 0.6rem 0.7rem 0.7rem;
    border: 1px solid var(--hrn-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 14px rgba(122, 44, 191, 0.04);
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.hrn-stat-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 0.82rem;
}

.hrn-stat-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    z-index: 1;
    color: var(--hrn-text);
}

.hrn-stat-label {
    overflow: hidden;
    color: #2d2b40;
    font-size: 0.78rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hrn-stat strong {
    margin: 0.04rem 0 0.02rem;
    color: #2d2b40;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.1;
}

.hrn-stat-hint {
    color: var(--hrn-soft);
    font-size: 0.68rem;
    font-weight: 400;
}

.hrn-stat-wave {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 72px;
    height: 22px;
    pointer-events: none;
}

.hrn-stat-wave path {
    fill: currentColor;
}

.hrn-stat-all { color: #b57de0; }
.hrn-stat-read { color: #6cbc8d; }
.hrn-stat-unread { color: #e39a55; }
.hrn-stat-contacts { color: #6aa0d6; }

.hrn-stat-all .hrn-stat-icon { background: #f3e9fb; color: #7a2cbf; }
.hrn-stat-read .hrn-stat-icon { background: #e8f6ee; color: #2f9e6a; }
.hrn-stat-unread .hrn-stat-icon { background: #fff1e6; color: #d97a2f; }
.hrn-stat-contacts .hrn-stat-icon { background: #e8f1fb; color: #3d7ec4; }

.hrn-stat:hover {
    border-color: rgba(122, 44, 191, 0.28);
}

.hrn-stat.is-on {
    background: #fff;
}

.hrn-stat-all.is-on { border-color: #c9a6ea; }
.hrn-stat-read.is-on { border-color: #9ed4b4; }
.hrn-stat-unread.is-on {
    border-color: #f0b27a;
    box-shadow: 0 0 0 3px rgba(227, 154, 85, 0.12);
}
.hrn-stat-contacts.is-on { border-color: #9dc0e6; }

.hrn-btn {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.32rem 0.7rem;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--hrn-accent);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 500;
    cursor: pointer;
}

.hrn-btn:hover {
    background: var(--hrn-accent-strong);
    color: #fff;
}

.hrn-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.hrn-btn-ghost {
    background: #fff;
    border-color: rgba(122, 44, 191, 0.4);
    color: var(--hrn-accent);
}

.hrn-top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.hrn-btn-danger-ghost {
    background: #fff;
    border-color: rgba(232, 93, 111, 0.45);
    color: var(--hrn-danger);
}

.hrn-btn-danger-ghost:hover {
    background: #fff0f2;
    color: #d44558;
}

.hrn-card {
    overflow: hidden;
    border: 1px solid var(--hrn-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(122, 44, 191, 0.04);
}

.hrn-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    padding: 0.7rem 0.85rem 0.35rem;
}

.hrn-title {
    margin: 0;
    color: #2d2b40;
    font-size: 0.95rem;
    font-weight: 600;
}

.hrn-meta {
    color: var(--hrn-soft);
    font-size: 0.7rem;
}

.hrn-tools {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.hrn-search {
    position: relative;
    width: min(340px, 100%);
}

.hrn-search > i {
    position: absolute;
    top: 50%;
    left: 0.7rem;
    color: var(--hrn-faint);
    font-size: 0.72rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.hrn-search input {
    width: 100%;
    min-height: 32px;
    padding: 0.3rem 0.65rem 0.3rem 1.85rem;
    border: 1px solid var(--hrn-border);
    border-radius: 999px;
    background: #fff;
    color: var(--hrn-text);
    font-size: 0.74rem;
    outline: none;
}

.hrn-search input:focus {
    border-color: #c4a8e8;
    box-shadow: 0 0 0 3px rgba(122, 44, 191, 0.14);
}

.hrn-filter-btn {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--hrn-border);
    border-radius: 8px;
    background: #fff;
    color: var(--hrn-soft);
    cursor: pointer;
}

.hrn-filter-btn:hover {
    border-color: #c4a8e8;
    color: var(--hrn-accent);
}

.hrn-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin: 0 0.85rem 0.4rem;
    padding: 0;
    background: transparent;
    scrollbar-width: none;
}

.hrn-tabs::-webkit-scrollbar {
    display: none;
}

.hrn-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    min-height: 28px;
    padding: 0.22rem 0.62rem;
    border: 0;
    border-radius: 999px;
    background: #f4f1f8;
    color: var(--hrn-soft);
    font-size: 0.74rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.hrn-tab.is-on {
    background: rgba(122, 44, 191, 0.12);
    color: var(--hrn-accent);
    box-shadow: none;
}

.hrn-count {
    min-width: 1.15rem;
    padding: 0.02rem 0.32rem;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font-size: 0.68rem;
    text-align: center;
}

.hrn-tab.is-on .hrn-count {
    background: transparent;
    color: inherit;
}

.hrn-list {
    min-height: 6rem;
}

.hrn-row {
    display: grid;
    grid-template-columns: 8px 34px minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
    border-top: 1px solid #f0eaf6;
    background: #fff;
    cursor: pointer;
    transition: background 0.15s ease;
}

.hrn-row:hover {
    background: #faf7fd;
}

.hrn-row.is-unread {
    background: #fcf9ff;
}

.hrn-row:not(.is-unread) .hrn-name {
    font-weight: 500;
    color: #4a4860;
}

.hrn-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: transparent;
}

.hrn-row.is-unread .hrn-dot {
    background: var(--hrn-accent);
}

.hrn-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #fff;
    font-size: 0.76rem;
}

.hrn-icon-purple { background: #7a2cbf; }
.hrn-icon-blue { background: #5184c7; }
.hrn-icon-teal { background: #3c9c94; }
.hrn-icon-gold { background: #c99a4f; }
.hrn-icon-rose { background: #c86d80; }
.hrn-icon-slate { background: #64748b; }

.hrn-body {
    min-width: 0;
}

.hrn-group {
    padding: 0.4rem 0.85rem 0.15rem;
    color: var(--hrn-faint);
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: #fff;
    border-top: 1px solid #f0eaf6;
}

.hrn-group:first-child {
    border-top: 0;
}

.hrn-badges {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.hrn-tag {
    flex: 0 0 auto;
    padding: 0.1rem 0.42rem;
    border-radius: 999px;
    background: var(--hrn-muted);
    color: var(--hrn-accent);
    font-size: 0.62rem;
    font-weight: 600;
}

.hrn-tag-job,
.hrn-tag-jobs {
    background: #f3e9fb;
    color: #7a2cbf;
}

.hrn-tag-cv,
.hrn-tag-contact,
.hrn-tag-contacts,
.hrn-tag-onboarding {
    background: #e7f5f3;
    color: #2d7c75;
}

.hrn-tag-account,
.hrn-tag-security {
    background: #fdecee;
    color: #c24b5c;
}

.hrn-tag-interview,
.hrn-tag-company,
.hrn-tag-assessment {
    background: #e8f1fb;
    color: #3d7ec4;
}

.hrn-tag-offer,
.hrn-tag-alert,
.hrn-tag-summary {
    background: #f8efdf;
    color: #b07a2e;
}

.hrn-tag-invite,
.hrn-tag-guest,
.hrn-tag-share {
    background: #e8f1fb;
    color: #3d7ec4;
}

.hrn-tag-contract,
.hrn-tag-update,
.hrn-tag-access,
.hrn-tag-ai,
.hrn-tag-system {
    background: #eef1f5;
    color: #556274;
}

.hrn-new {
    flex: 0 0 auto;
    padding: 0.1rem 0.36rem;
    border-radius: 999px;
    background: var(--hrn-accent);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.hrn-time {
    color: var(--hrn-soft);
    font-weight: 500;
}

.hrn-when {
    color: var(--hrn-faint);
    font-size: 0.68rem;
    font-weight: 500;
    white-space: nowrap;
}

.hrn-line .hrn-time {
    display: none;
}

.hrn-name {
    display: block;
    overflow: hidden;
    min-width: 0;
    color: #2d2b40;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hrn-name:hover {
    color: var(--hrn-accent);
}

.hrn-msg {
    margin: 0.08rem 0 0.1rem;
    color: var(--hrn-soft);
    font-size: 0.72rem;
    line-height: 1.4;
}

.hrn-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    color: var(--hrn-faint);
    font-size: 0.64rem;
}

.hrn-go {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--hrn-faint);
    font-size: 0.7rem;
    text-decoration: none;
}

.hrn-go:hover {
    color: var(--hrn-accent);
}

.hrn-row-actions {
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

.hrn-icon-btn {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--hrn-faint);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
}

.hrn-row:hover .hrn-icon-btn,
.hrn-row:focus-within .hrn-icon-btn {
    opacity: 1;
    visibility: visible;
}

.hrn-icon-btn:hover,
.hrn-icon-btn-danger:hover {
    background: #fff0f2;
    color: var(--hrn-danger);
}

.hrn-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 12rem;
    padding: 1.4rem 1rem;
    text-align: center;
}

.hrn-empty[hidden],
.hrn-list[hidden] {
    display: none !important;
}

.hrn-empty-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
    border-radius: 16px;
    background: var(--hrn-muted);
    color: var(--hrn-accent);
    font-size: 1.2rem;
}

.hrn-empty strong {
    color: #2d2b40;
    font-size: 0.92rem;
}

.hrn-empty p {
    margin: 0.35rem 0 0.85rem;
    max-width: 22rem;
    color: var(--hrn-soft);
    font-size: 0.74rem;
    line-height: 1.45;
}

.hrn-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-top: 1px solid #f0eaf6;
    color: var(--hrn-soft);
    font-size: 0.64rem;
}

.hrn-pager {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.hrn-page-btn {
    padding: 0.22rem 0.65rem;
    border: 1px solid var(--hrn-border);
    border-radius: 999px;
    background: #fff;
    color: var(--hrn-text);
    cursor: pointer;
}

.hrn-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.hrn-toast {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 40;
    max-width: 18rem;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    background: #2d2b40;
    color: #fff;
    font-size: 0.74rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.hrn-toast.is-on {
    opacity: 1;
    visibility: visible;
    transform: none;
}

@media (max-width: 991.98px) {
    .hrn-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hrn-search {
        width: min(280px, 100%);
    }

    .hrn-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .hrn-tab {
        flex: 0 0 auto;
    }
}

@media (max-width: 767.98px) {
    .hrn-page {
        font-size: 12px;
        padding-bottom: 0.75rem;
    }

    .hrn-page .brain-title {
        margin-bottom: 0.2rem;
        padding-top: 0.8rem !important;
        font-size: 1.12rem;
    }

    .hrn-page .breadcrumb {
        margin-bottom: 0.4rem;
        font-size: 0.7rem;
    }

    .hrn-top,
    .hrn-head {
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
    }

    .hrn-top {
        margin: 0 0 0.35rem;
    }

    .hrn-top-actions {
        width: 100%;
        gap: 0.3rem;
    }

    .hrn-btn {
        padding: 0.2rem 0.5rem;
        font-size: 0.68rem;
    }

    .hrn-tools,
    .hrn-search {
        width: 100%;
    }

    .hrn-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.32rem;
        margin: 0 0 0.4rem;
    }

    .hrn-stat {
        min-height: 62px;
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 0.35rem;
        padding: 0.42rem 0.48rem 0.48rem;
        border-radius: 10px;
    }

    .hrn-stat-icon {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        font-size: 0.7rem;
    }

    .hrn-stat-label {
        font-size: 0.66rem;
    }

    .hrn-stat strong {
        font-size: 1rem;
    }

    .hrn-stat-hint {
        font-size: 0.58rem;
    }

    .hrn-stat-wave {
        width: 54px;
        height: 16px;
    }

    .hrn-card {
        border-radius: 10px;
    }

    .hrn-head {
        padding: 0.48rem 0.65rem 0.22rem;
    }

    .hrn-title {
        font-size: 0.82rem;
    }

    .hrn-meta {
        font-size: 0.62rem;
    }

    .hrn-search input {
        min-height: 28px;
        padding: 0.2rem 0.5rem 0.2rem 1.65rem;
        font-size: 0.68rem;
    }

    .hrn-search > i {
        left: 0.55rem;
        font-size: 0.64rem;
    }

    .hrn-filter-btn {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
        border-radius: 7px;
    }

    .hrn-tabs {
        gap: 0.2rem;
        margin: 0 0.65rem 0.28rem;
    }

    .hrn-tab {
        min-height: 24px;
        padding: 0.12rem 0.46rem;
        font-size: 0.66rem;
    }

    .hrn-count {
        font-size: 0.58rem;
    }

    .hrn-row {
        grid-template-columns: 6px 28px minmax(0, 1fr) auto;
        align-items: start;
        gap: 0.32rem 0.4rem;
        padding: 0.42rem 0.65rem;
    }

    .hrn-icon {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        font-size: 0.64rem;
    }

    .hrn-dot {
        width: 6px;
        height: 6px;
        margin-top: 0.55rem;
    }

    .hrn-when {
        display: none;
    }

    .hrn-go {
        display: none;
    }

    .hrn-icon-btn {
        width: 22px;
        height: 22px;
        opacity: 1;
        visibility: visible;
    }

    .hrn-row-actions {
        grid-column: 4;
        grid-row: 1;
        align-self: start;
        justify-content: flex-end;
    }

    .hrn-line .hrn-time {
        display: inline;
    }

    .hrn-name {
        font-size: 0.72rem;
        white-space: normal;
    }

    .hrn-msg {
        margin: 0.04rem 0 0.06rem;
        font-size: 0.64rem;
        line-height: 1.35;
        white-space: normal;
    }

    .hrn-line {
        gap: 0.35rem;
        font-size: 0.58rem;
    }

    .hrn-group {
        padding: 0.28rem 0.65rem 0.08rem;
        font-size: 0.58rem;
    }

    .hrn-badges {
        grid-column: 3;
        justify-content: flex-start;
        margin-top: 0;
        gap: 0.2rem;
    }

    .hrn-tag {
        padding: 0.05rem 0.3rem;
        font-size: 0.54rem;
    }

    .hrn-new {
        padding: 0.04rem 0.26rem;
        font-size: 0.5rem;
    }

    .hrn-empty {
        min-height: 9rem;
        padding: 1rem 0.75rem;
    }

    .hrn-empty-icon {
        width: 42px;
        height: 42px;
        margin-bottom: 0.5rem;
        border-radius: 12px;
        font-size: 0.95rem;
    }

    .hrn-empty strong {
        font-size: 0.8rem;
    }

    .hrn-empty p {
        margin: 0.25rem 0 0.65rem;
        font-size: 0.66rem;
    }

    .hrn-foot {
        align-items: stretch;
        gap: 0.28rem;
        padding: 0.4rem 0.65rem;
        font-size: 0.58rem;
        text-align: center;
    }

    .hrn-pager {
        justify-content: center;
    }

    .hrn-page-btn {
        padding: 0.12rem 0.48rem;
        font-size: 0.62rem;
    }
}

@media (max-width: 575.98px) {
    .hrn-page {
        font-size: 11.5px;
    }

    .hrn-page .brain-title {
        font-size: 1.02rem;
        padding-top: 0.65rem !important;
    }

    .hrn-stats {
        display: none;
    }

    .hrn-head,
    .hrn-group,
    .hrn-row,
    .hrn-foot {
        padding-left: 0.55rem;
        padding-right: 0.55rem;
    }

    .hrn-row {
        padding-top: 0.36rem;
        padding-bottom: 0.36rem;
    }

    .hrn-tabs {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        margin-top: 0.5rem;
    }

    .hrn-toast {
        right: 0.55rem;
        left: 0.55rem;
        bottom: 0.6rem;
        padding: 0.5rem 0.65rem;
        font-size: 0.66rem;
    }
}

/* ==========================================================================
   Companies screen (new_company.html) — namespaced `zqcmpx-` so the rules
   cannot collide with any other dashboard stylesheet.
   ========================================================================== */

.manage-system-tutorials[data-mst-table="companies"] .mst-title-cell__name {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    text-align: left;
    font-family: inherit;
    font-weight: 400;
    cursor: pointer;
}

.manage-system-tutorials[data-mst-table="companies"]
    .mst-title-cell__name:hover,
.manage-system-tutorials[data-mst-table="companies"]
    .mst-title-cell__name:focus-visible {
    color: #7b2cbf;
    text-decoration: underline;
}

.manage-system-tutorials[data-mst-table="companies"] .zqcmpx-th--status,
.manage-system-tutorials[data-mst-table="companies"] .zqcmpx-td--status {
    text-align: center;
    width: 108px;
    min-width: 108px;
}

.manage-system-tutorials[data-mst-table="companies"] .zqcmpx-th--activity,
.manage-system-tutorials[data-mst-table="companies"] .zqcmpx-td--activity {
    width: 148px;
    min-width: 148px;
    white-space: nowrap;
}

.manage-system-tutorials[data-mst-table="companies"] .zqcmpx-linkcell {
    color: #3d3d4d;
    text-decoration: none;
    font-size: 0.71rem;
    font-weight: 400;
    white-space: nowrap;
}

.manage-system-tutorials[data-mst-table="companies"] .zqcmpx-linkcell:hover {
    color: #7b2cbf;
    text-decoration: underline;
}

.manage-system-tutorials[data-mst-table="companies"]
    .mst-actions
    .mst-actions__btn--dashboard {
    text-decoration: none;
}

.manage-system-tutorials[data-mst-table="companies"] .zqcmpx-td--verified,
.manage-system-tutorials[data-mst-table="companies"] .zqcmpx-th--verified {
    width: 100px;
    max-width: 110px;
    white-space: nowrap;
}

.manage-system-tutorials[data-mst-table="companies"] .zqcmpx-verify-btn {
    appearance: none;
    border: 1px solid #c9b6ef;
    background: #faf7ff;
    color: #7b2cbf;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
}

.manage-system-tutorials[data-mst-table="companies"] .zqcmpx-verify-btn:hover,
.manage-system-tutorials[data-mst-table="companies"] .zqcmpx-verify-btn:focus-visible {
    background: #7b2cbf;
    border-color: #7b2cbf;
    color: #fff;
    outline: none;
}

/* Created / Last Activity: date + time on one line */
.zqcmpx-when {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 0.35rem;
    color: #3f3f4a;
    font-size: 0.71rem;
    font-weight: 400;
    white-space: nowrap;
}

.zqcmpx-when__date {
    color: #3f3f4a;
    white-space: nowrap;
}

.zqcmpx-when__date::after {
    content: " ";
}

.zqcmpx-when__time {
    color: #8a8a98;
    font-size: 0.66rem;
    white-space: nowrap;
}

.manage-system-tutorials[data-mst-table="companies"]
    .mst-table__td[data-label="Created"],
.manage-system-tutorials[data-mst-table="companies"]
    .zqcmpx-td--activity {
    white-space: nowrap;
}

/* Account status badges (Active / Inactive / Suspended / Archived) */
.zqcmpx-acct {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
}

.zqcmpx-acct--on {
    background: #ecfdf3;
    color: #15803d;
}

.zqcmpx-acct--off {
    background: #f3f4f6;
    color: #6b7280;
}

.zqcmpx-acct--hold {
    background: #fff7e6;
    color: #b45309;
}

.zqcmpx-acct--archive {
    background: #f1ecf9;
    color: #6b48a8;
}

body.dark .zqcmpx-when__date {
    color: #ececf1;
}

body.dark .zqcmpx-when__time {
    color: #a5a5b4;
}

body.dark .zqcmpx-acct--on {
    background: rgba(21, 128, 61, 0.22);
    color: #86efac;
}

body.dark .zqcmpx-acct--off {
    background: rgba(255, 255, 255, 0.08);
    color: #c9c9d4;
}

body.dark .zqcmpx-acct--hold {
    background: rgba(180, 83, 9, 0.24);
    color: #fdba74;
}

body.dark .zqcmpx-acct--archive {
    background: rgba(119, 27, 200, 0.24);
    color: #d8c7f7;
}

/* Agency pill — shared by the table cell and the details modal */
.zqcmpx-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.18rem 0.5rem;
    border-radius: 20px;
    font-size: 0.64rem;
    font-weight: 400;
    line-height: 1.3;
    white-space: nowrap;
}

.zqcmpx-chip--on {
    background: #f4edfb;
    color: #7b2cbf;
}

.zqcmpx-chip--off {
    background: #f3f5f8;
    color: #6b6b80;
}

/* --------------------------------------------------------------------------
   Company add / edit / details modal shell
   -------------------------------------------------------------------------- */

.zqcmpx-modal {
    --zqcmpx-brand: #7b2cbf;
    --zqcmpx-line: #e8e4ef;
    --zqcmpx-ink: #3f3f4a;
    --zqcmpx-muted: #8a8a98;
    font-weight: 400;
    letter-spacing: 0;
}

.zqcmpx-modal .form-control,
.zqcmpx-modal .form-select,
.zqcmpx-modal .btn,
.zqcmpx-modal .add-role,
.zqcmpx-modal .create-user-modal__cancel {
    font-family: inherit;
    font-weight: 400;
    letter-spacing: 0;
}

.zqcmpx-modal .modal-dialog {
    max-width: 900px;
}

.zqcmpx-modal--peek .modal-dialog {
    max-width: 1040px;
}

.zqcmpx-modal .modal-content {
    overflow: hidden;
    border-radius: 14px;
}

.zqcmpx-modal .modal-header {
    border-bottom: 0;
    padding: 0.8rem 1.25rem;
}

.zqcmpx-modal .modal-header .modal-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #7b2cbf;
    font-size: 1rem;
    font-weight: 600;
}

.zqcmpx-modal .modal-header .modal-title i {
    font-size: 0.85rem;
    opacity: 0.85;
}
.zqcmpx-modal .form-control,
.zqcmpx-modal .form-select,
.zqcmpx-telbox,
.zqcmpx-pwbox {
    border-radius: 8px;
}

.zqcmpx-modal .modal-body {
    padding: 1.1rem 1.35rem 0.75rem;
}

.zqcmpx-modal .modal-dialog-scrollable .modal-body {
    overflow-y: auto;
}

.zqcmpx-modal .modal-footer {
    background: #faf9fc;
    border-top: 1px solid #efeaf6;
    padding: 0.8rem 1.35rem 0.9rem;
}

.zqcmpx-modal .add-role,
.zqcmpx-modal .create-user-modal__cancel {
    font-weight: 400;
    border-radius: 8px;
}

/* Sections ---------------------------------------------------------------- */

.zqcmpx-fsect {
    margin-bottom: 1.2rem;
}

.zqcmpx-fsect__cap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #f1ecf7;
    color: #771bc8;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.zqcmpx-fsect__cap i {
    font-size: 0.78rem;
    opacity: 0.8;
}

.zqcmpx-fgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1.1rem;
}

/* Fields ------------------------------------------------------------------ */

.zqcmpx-flabel {
    display: flex;
    align-items: center;
    gap: 0.32rem;
    margin-bottom: 0.3rem;
    color: #64646f;
    font-size: 0.74rem;
    font-weight: 400;
}

.zqcmpx-flabel i {
    color: #771bc8;
    font-size: 0.66rem;
    opacity: 0.75;
}

.zqcmpx-modal .form-control,
.zqcmpx-modal .form-select {
    border: 1px solid #e8e4ef;
    background: #fff;
    color: #3f3f4a;
    font-size: 0.8rem;
    font-weight: 400;
}

.zqcmpx-modal .form-control::placeholder {
    color: #a2a2b0;
    font-weight: 400;
}

.zqcmpx-modal .form-control:focus,
.zqcmpx-modal .form-select:focus {
    border-color: #771bc8;
    box-shadow: 0 0 0 0.16rem rgba(119, 27, 200, 0.12);
}

.zqcmpx-fnote {
    display: flex;
    align-items: flex-start;
    gap: 0.3rem;
    margin: 0.28rem 0 0;
    color: #8a8a98;
    font-size: 0.67rem;
    font-weight: 400;
    line-height: 1.4;
}

.zqcmpx-fnote i {
    margin-top: 0.12rem;
    color: #b4a8c6;
}

/* Phone + password input groups ------------------------------------------- */

.zqcmpx-telbox,
.zqcmpx-pwbox {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #e8e4ef;
    background: #fff;
}

.zqcmpx-telbox:focus-within,
.zqcmpx-pwbox:focus-within {
    border-color: #771bc8;
    box-shadow: 0 0 0 0.16rem rgba(119, 27, 200, 0.12);
}

.zqcmpx-modal .zqcmpx-telbox__dial {
    width: 80px;
    border: 0;
    border-right: 1px solid #e8e4ef;
    border-radius: 0;
    background: #faf7fd;
    padding: 0 0.55rem;
    font-size: 0.75rem;
    font-weight: 400;
}

.zqcmpx-modal .zqcmpx-telbox__digits,
.zqcmpx-pwbox .form-control {
    border: 0;
    border-radius: 0;
    box-shadow: none !important;
}

.zqcmpx-pwbox__spin {
    flex: 0 0 auto;
    border: 0;
    border-left: 1px solid #e8e4ef;
    background: #faf7fd;
    color: #771bc8;
    padding: 0 0.85rem;
    font-size: 0.73rem;
    font-weight: 400;
    white-space: nowrap;
    transition: background 0.18s ease;
}

.zqcmpx-pwbox__spin:hover {
    background: #f1e8fa;
}

/* File fields -------------------------------------------------------------- */

.zqcmpx-modal .zqcmpx-updrop .form-control {
    padding: 0.34rem 0.5rem;
    font-size: 0.75rem;
}

.zqcmpx-modal .zqcmpx-updrop .form-control::file-selector-button {
    border: 0;
    border-radius: 6px;
    margin-inline-end: 0.6rem;
    padding: 0.3rem 0.6rem;
    background: #f4eefb;
    color: #771bc8;
    font-size: 0.72rem;
    font-weight: 400;
}

.zqcmpx-updrop__prev {
    margin-top: 0.3rem;
    color: #771bc8;
    font-size: 0.67rem;
    font-weight: 400;
}

.zqcmpx-updrop__prev a {
    color: inherit;
    font-weight: 400;
    text-decoration: none;
}

.zqcmpx-updrop__prev a:hover {
    text-decoration: underline;
}

/* Switches ----------------------------------------------------------------- */

.zqcmpx-swtwrap {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100%;
}

.zqcmpx-swt {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.15rem 0 0;
    cursor: pointer;
    user-select: none;
}

.zqcmpx-swt input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.zqcmpx-swt__rail {
    position: relative;
    width: 40px;
    height: 21px;
    flex-shrink: 0;
    border-radius: 20px;
    background: #dcdce4;
    transition: background 0.2s ease;
}

.zqcmpx-swt__knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease;
}

.zqcmpx-swt input:checked + .zqcmpx-swt__rail {
    background: #771bc8;
}

.zqcmpx-swt input:checked + .zqcmpx-swt__rail .zqcmpx-swt__knob {
    transform: translateX(19px);
}

.zqcmpx-swt input:focus-visible + .zqcmpx-swt__rail {
    outline: 2px solid rgba(119, 27, 200, 0.4);
    outline-offset: 2px;
}

.zqcmpx-swt__cap {
    color: #771bc8;
    font-size: 0.76rem;
    font-weight: 400;
}

.zqcmpx-swt input:not(:checked) ~ .zqcmpx-swt__cap {
    color: #9494a2;
}

/* Intermediate agency panel ------------------------------------------------ */

.zqcmpx-agpanel {
    margin-top: 0.2rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e9e0f4;
    border-radius: 10px;
    background: #fbf9fe;
}

.zqcmpx-agpanel__row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    cursor: pointer;
}

.zqcmpx-agpanel__cap {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #4f4f5c;
    font-size: 0.8rem;
    font-weight: 400;
}

.zqcmpx-agpanel__cap i {
    color: #771bc8;
    opacity: 0.8;
}

/* Details (view) modal ----------------------------------------------------- */

.zqcmpx-peekhead {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.1rem 0 0.9rem;
    margin-bottom: 0.4rem;
    border-bottom: 1px solid #f1ecf7;
}

.zqcmpx-peekhead__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #f4eefb;
    color: #771bc8;
    font-size: 1rem;
    font-weight: 400;
}

.zqcmpx-peekhead__name {
    display: block;
    color: #3a3a46;
    font-size: 0.95rem;
    font-weight: 500;
}

.zqcmpx-peekhead__meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.32rem;
    flex-wrap: wrap;
}

.zqcmpx-state {
    display: inline-flex;
    align-items: center;
    padding: 0.14rem 0.5rem;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 400;
}

.zqcmpx-state--on {
    background: #ecfdf3;
    color: #15803d;
}

.zqcmpx-state--off {
    background: #f3f4f6;
    color: #6b7280;
}

.zqcmpx-peeksect {
    margin-bottom: 1rem;
}

.zqcmpx-peekgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 1rem;
}

.zqcmpx-peekcell {
    padding: 0.62rem 0.75rem;
    border-radius: 8px;
    background: #f9f8fc;
}

.zqcmpx-peekcell__cap {
    display: flex;
    align-items: center;
    gap: 0.32rem;
    margin-bottom: 0.16rem;
    color: #8e8899;
    font-size: 0.67rem;
    font-weight: 400;
}

.zqcmpx-peekcell__cap i {
    color: #771bc8;
    opacity: 0.75;
}

.zqcmpx-peekcell__val {
    display: block;
    color: #3f3f4a;
    font-size: 0.8rem;
    font-weight: 400;
    word-break: break-word;
}

.zqcmpx-peekfile {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    color: #771bc8;
    font-size: 0.78rem;
    font-weight: 400;
    text-decoration: none;
}

.zqcmpx-peekfile:hover {
    color: #771bc8;
    text-decoration: underline;
}

/* Dark theme --------------------------------------------------------------- */

body.dark .zqcmpx-modal {
    --zqcmpx-line: rgba(255, 255, 255, 0.14);
    --zqcmpx-ink: #ececf1;
    --zqcmpx-muted: #a5a5b4;
}

body.dark .zqcmpx-modal .modal-footer {
    background: #2a2b2c;
    border-top-color: rgba(255, 255, 255, 0.08);
}

body.dark .zqcmpx-fsect__cap,
body.dark .zqcmpx-peekcell__cap i,
body.dark .zqcmpx-flabel i {
    color: #c4b5fd;
}

body.dark .zqcmpx-fsect__cap {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark .zqcmpx-flabel {
    color: #c9c9d4;
}

body.dark .zqcmpx-modal .form-control,
body.dark .zqcmpx-modal .form-select,
body.dark .zqcmpx-telbox,
body.dark .zqcmpx-pwbox {
    background: #3a3b3c;
    color: #f0f0f4;
}

body.dark .zqcmpx-modal .zqcmpx-telbox__dial,
body.dark .zqcmpx-pwbox__spin {
    background: #333435;
    color: #c4b5fd;
}

body.dark .zqcmpx-agpanel,
body.dark .zqcmpx-peekcell {
    background: #2f3031;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark .zqcmpx-agpanel__cap,
body.dark .zqcmpx-peekcell__val,
body.dark .zqcmpx-peekhead__name {
    color: #ececf1;
}

body.dark .zqcmpx-peekhead {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark .zqcmpx-peekhead__mark {
    background: rgba(119, 27, 200, 0.3);
    color: #d8c7f7;
}

/* Small screens ------------------------------------------------------------ */

@media (max-width: 575.98px) {
    .zqcmpx-fgrid,
    .zqcmpx-peekgrid {
        grid-template-columns: 1fr;
    }

    .zqcmpx-modal .zqcmpx-telbox__dial {
        width: 108px;
        flex-basis: 108px;
    }

    .zqcmpx-modal .modal-body {
        padding: 0.9rem 1rem 0.6rem;
    }
}

/* --------------------------------------------------------------------------
   Company details modal — tabbed layout
   -------------------------------------------------------------------------- */

.zqcmpx-peekwrap {
    display: grid;
    grid-template-columns: 224px minmax(0, 1fr);
    gap: 1.1rem;
    align-items: start;
}

.zqcmpx-aside {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.1rem 0.9rem;
    border: 1px solid #f0ecf7;
    border-radius: 12px;
    background: #fbfafd;
    text-align: center;
}

.zqcmpx-aside__mark,
.zqcmpx-aside__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 50px;
    flex-shrink: 0;
    padding: 0.45rem;
    border-radius: 18px;
  
    color: #771bc8;
    font-size: 1.4rem;
    font-weight: 400;
    overflow: hidden;
}

.zqcmpx-aside__logo-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.zqcmpx-aside__name {
    color: #3a3a46;
    font-size: 0.95rem;
    font-weight: 500;
    word-break: break-word;
}

.zqcmpx-aside__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.zqcmpx-aside__card {
    width: 100%;
    padding: 0.55rem 0.6rem;
    border-radius: 10px;
    background: #f5f1fb;
}

.zqcmpx-aside__card b {
    display: block;
    color: #771bc8;
    font-size: 0.76rem;
    font-weight: 500;
    word-break: break-word;
}

.zqcmpx-aside__card span {
    display: block;
    margin-top: 0.1rem;
    color: #8e8899;
    font-size: 0.66rem;
    font-weight: 400;
}

.zqcmpx-aside__facts {
    width: 100%;
    margin: 0.15rem 0 0;
    padding: 0.65rem 0 0;
    border-top: 1px solid #efeaf6;
    list-style: none;
    text-align: left;
}

.zqcmpx-aside__facts li {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0.3rem 0;
}

.zqcmpx-aside__facts li i {
    margin-top: 0.15rem;
    color: #771bc8;
    font-size: 0.72rem;
    opacity: 0.75;
}

.zqcmpx-aside__facts span {
    display: block;
    color: #8e8899;
    font-size: 0.64rem;
    font-weight: 400;
}

.zqcmpx-aside__facts b {
    display: block;
    color: #3f3f4a;
    font-size: 0.72rem;
    font-weight: 400;
}

/* Tabs --------------------------------------------------------------------- */

.zqcmpx-tabs {
    gap: 0.15rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.1rem;
    border-bottom: 1px solid #f0ecf7;
    /* flex-wrap: nowrap; */
    overflow-x: auto;
}

.zqcmpx-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.7rem;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: none;
    color: #8a8a98;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 400;
    white-space: nowrap;
}

.zqcmpx-tabs .nav-link i {
    font-size: 0.72rem;
    opacity: 0.8;
}

.zqcmpx-tabs .nav-link:hover {
    color: #771bc8;
}

.zqcmpx-tabs .nav-link.active {
    color: #771bc8;
    border-bottom-color: #771bc8;
    font-weight: 500;
}

.zqcmpx-tabbody {
    min-height: 260px;
}

.zqcmpx-tabbody .zqcmpx-card__cap {
    margin-bottom: 0.5rem;
    padding-bottom: 0.35rem;
    font-size: 0.68rem;
}

.zqcmpx-tabbody .zqcmpx-card__cap i {
    font-size: 0.64rem;
}

.zqcmpx-tabbody .zqcmpx-fieldlist {
    gap: 0.42rem;
}

.zqcmpx-tabbody .zqcmpx-field__cap {
    margin-bottom: 0.08rem;
    font-size: 0.58rem;
}

.zqcmpx-tabbody .zqcmpx-field__val {
    font-size: 0.68rem;
}

.zqcmpx-tabbody .zqcmpx-field__val i {
    font-size: 0.62rem;
}

.zqcmpx-tabbody .zqcmpx-stat b {
    font-size: 0.74rem;
}

.zqcmpx-tabbody .zqcmpx-stat span {
    font-size: 0.58rem;
}

.zqcmpx-tabbody .zqcmpx-minitable th {
    padding: 0.32rem 0.45rem;
    font-size: 0.58rem;
}

.zqcmpx-tabbody .zqcmpx-minitable td {
    padding: 0.4rem 0.45rem;
    font-size: 0.64rem;
}

.zqcmpx-tabbody .zqcmpx-note {
    font-size: 0.6rem;
}

.zqcmpx-tabbody .zqcmpx-steps {
    font-size: 0.64rem;
}

.zqcmpx-tabbody .zqcmpx-legalfile {
    padding: 0.5rem 0.55rem;
}

.zqcmpx-tabbody .zqcmpx-legalfile__body b {
    font-size: 0.66rem;
}

.zqcmpx-tabbody .zqcmpx-legalfile__body span {
    font-size: 0.58rem;
}

.zqcmpx-invdl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    padding: 0;
     color:#7a778f;
    cursor: pointer;
    border:none;
    background-color: transparent;
}

.zqcmpx-invdl:hover {
    color: #771bc8;
}

.zqcmpx-invdl i {
    font-size: 0.62rem;
}

.zqcmpx-invdl:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.zqcmpx-invacts {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
}

.modal.zqcmpx-invmodal {
    z-index: 1080;
}

.zqcmpx-invmodal .modal-dialog {
    max-height: calc(100vh - 1.5rem);
}

.zqcmpx-invmodal .modal-content {
    max-height: calc(100vh - 1.5rem);
}

.zqcmpx-about {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.zqcmpx-about__text {
    margin: 0;
    color: #4a4a55;
    font-size: 0.7rem;
    font-weight: 400;
    line-height: 1.65;
}

.zqcmpx-about__place {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin: 0;
    padding: 0.5rem 0.6rem;
    border: 1px solid #f0ecf7;
    border-radius: 8px;
    background: #fbfafd;
    color: #4a4a55;
    font-size: 0.68rem;
    font-weight: 400;
    line-height: 1.5;
}

.zqcmpx-about__place i {
    margin-top: 0.12rem;
    color: #771bc8;
    font-size: 0.64rem;
}

.zqcmpx-tabbody .zqcmpx-minitable--invoices th:last-child,
.zqcmpx-tabbody .zqcmpx-minitable--invoices td:last-child {
    text-align: right;
    white-space: nowrap;
}

/* Cards -------------------------------------------------------------------- */

.zqcmpx-cardgrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    align-items: start;
}

.zqcmpx-card {
    padding: 0.85rem 0.95rem;
    border: 1px solid #f0ecf7;
    border-radius: 12px;
    background: #fff;
}

.zqcmpx-card + .zqcmpx-card {
    margin-top: 0.85rem;
}

.zqcmpx-cardgrid .zqcmpx-card + .zqcmpx-card {
    margin-top: 0;
}

.zqcmpx-cardgrid + .zqcmpx-card {
    margin-top: 0.85rem;
}

.zqcmpx-card__cap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.7rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f5f2fa;
    color: #771bc8;
    font-size: 0.78rem;
    font-weight: 500;
}

.zqcmpx-card__cap i {
    font-size: 0.76rem;
    opacity: 0.85;
}

/* Field rows --------------------------------------------------------------- */

.zqcmpx-fieldlist {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.zqcmpx-field__cap {
    display: block;
    margin-bottom: 0.15rem;
    color: #8e8899;
    font-size: 0.66rem;
    font-weight: 400;
}

.zqcmpx-field__val {
    display: flex;
    align-items: flex-start;
    gap: 0.38rem;
    color: #3f3f4a;
    font-size: 0.78rem;
    font-weight: 400;
    word-break: break-word;
}

.zqcmpx-field__val i {
    margin-top: 0.18rem;
    color: #771bc8;
    font-size: 0.72rem;
    opacity: 0.75;
}

.zqcmpx-link {
    color: #771bc8;
    font-weight: 400;
    text-decoration: none;
    word-break: break-all;
}

.zqcmpx-link:hover {
    color: #771bc8;
    text-decoration: underline;
}

.zqcmpx-rich {
    margin: 0;
    color: #55555f;
    font-size: 0.76rem;
    font-weight: 400;
    line-height: 1.6;
}

/* Mini tables -------------------------------------------------------------- */

.zqcmpx-tablewrap {
    overflow-x: auto;
}

.zqcmpx-minitable {
    width: 100%;
    border-collapse: collapse;
}

.zqcmpx-minitable th {
    padding: 0.4rem 0.55rem;
    border-bottom: 1px solid #f1ecf7;
    background: #faf9fc;
    color: #8e8899;
    font-size: 0.65rem;
    font-weight: 400;
    text-align: left;
    white-space: nowrap;
}

.zqcmpx-minitable th:first-child {
    border-top-left-radius: 8px;
}

.zqcmpx-minitable th:last-child {
    border-top-right-radius: 8px;
}

.zqcmpx-minitable td {
    padding: 0.5rem 0.55rem;
    border-bottom: 1px solid #f6f3fa;
    color: #4a4a55;
    font-size: 0.72rem;
    font-weight: 400;
    vertical-align: middle;
    white-space: nowrap;
}

.zqcmpx-minitable tbody tr:last-child td {
    border-bottom: 0;
}

/* Preview variant: never scrolls sideways, long values ellipsize instead. */
.zqcmpx-minitable--tight {
    table-layout: fixed;
}

.zqcmpx-minitable--tight th,
.zqcmpx-minitable--tight td {
    overflow: hidden;
    text-overflow: ellipsis;
}

.zqcmpx-minitable--tight th:last-child,
.zqcmpx-minitable--tight td:last-child {
    width: 74px;
    text-align: right;
}

.zqcmpx-who {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.zqcmpx-who__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #f4eefb;
    color: #771bc8;
    font-size: 0.65rem;
    font-weight: 400;
}

.zqcmpx-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.14rem 0.45rem;
    border-radius: 6px;
    background: #f3f0fa;
    color: #6b48a8;
    font-size: 0.63rem;
    font-weight: 400;
}

.zqcmpx-state--wait {
    background: #fff7e6;
    color: #b45309;
}

.zqcmpx-state--trial {
    background: #eef6ff;
    color: #1d4ed8;
}

.zqcmpx-morebtn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.7rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid #eee7f7;
    border-radius: 8px;
    background: #fff;
    color: #771bc8;
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 400;
}

.zqcmpx-morebtn:hover {
    background: #f8f5fd;
}

.zqcmpx-morebtn i {
    font-size: 0.6rem;
}

/* Legal files (Company Info tab) ------------------------------------------- */

.zqcmpx-legallist {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
}

.zqcmpx-card--span {
    grid-column: 1 / -1;
}

.zqcmpx-legalfile {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.75rem;
    border: 1px solid #f0ecf7;
    border-radius: 10px;
    background: #fbfafd;
    color: inherit;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.zqcmpx-legalfile:hover {
    background: #f6f1fd;
    border-color: #e4d8f5;
    color: inherit;
    text-decoration: none;
}

.zqcmpx-legalfile__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 9px;
    background: #f1e9fb;
    color: #771bc8;
    font-size: 0.78rem;
}

.zqcmpx-legalfile__body {
    flex: 1 1 auto;
    min-width: 0;
}

.zqcmpx-legalfile__body b {
    display: block;
    color: #3f3f4a;
    font-size: 0.74rem;
    font-weight: 500;
}

.zqcmpx-legalfile__body span {
    display: block;
    overflow: hidden;
    color: #8a8a98;
    font-size: 0.66rem;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zqcmpx-legalfile__go {
    color: #b5a3d4;
    font-size: 0.68rem;
}

.zqcmpx-legalfile:hover .zqcmpx-legalfile__go {
    color: #771bc8;
}

/* Scrollable invitations list --------------------------------------------- */

.zqcmpx-card--invscroll {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.zqcmpx-invscroll {
    max-height: 300px;
    overflow: auto;
    padding-right: 0.15rem;
    border: 1px solid #f0ecf7;
    border-radius: 10px;
    background: #fff;
    scrollbar-width: thin;
    scrollbar-color: #c9a9f0 transparent;
}

.zqcmpx-invscroll::-webkit-scrollbar {
    width: 3px;
}

.zqcmpx-invscroll::-webkit-scrollbar-track {
    background: transparent;
}

.zqcmpx-invscroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #c9a9f0;
}

.zqcmpx-invscroll::-webkit-scrollbar-thumb:hover {
    background: #a87ee0;
}

.zqcmpx-invrows {
    margin: 0;
    padding: 0.45rem;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.zqcmpx-invrow {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.65rem 0.7rem;
    border: 1px solid #f0ecf7;
    border-radius: 10px;
    background: #fbfafd;
}

.zqcmpx-invrow .zqcmpx-who__mark {
    margin-top: 0.1rem;
}

.zqcmpx-invrow__main {
    flex: 1 1 auto;
    min-width: 0;
}

.zqcmpx-invrow__top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.45rem;
}

.zqcmpx-invrow__top b {
    color: #3f3f4a;
    font-size: 0.76rem;
    font-weight: 500;
}

.zqcmpx-invrow__email {
    display: block;
    margin-top: 0.12rem;
    overflow: hidden;
    color: #8a8a98;
    font-size: 0.66rem;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zqcmpx-invrow__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    margin-top: 0.35rem;
}

.zqcmpx-invrow__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    color: #6b6b80;
    font-size: 0.63rem;
    font-weight: 400;
}

.zqcmpx-invrow__meta i {
    color: #771bc8;
    font-size: 0.6rem;
    opacity: 0.75;
}

.zqcmpx-invrow__meta--muted {
    color: #a0a0ad;
}

.zqcmpx-invrow__meta--muted i {
    color: #a0a0ad;
}

body.dark .zqcmpx-legalfile,
body.dark .zqcmpx-invrow,
body.dark .zqcmpx-invscroll {
    background: #2f3031;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark .zqcmpx-legalfile:hover {
    background: #353637;
    border-color: rgba(196, 181, 253, 0.28);
}

body.dark .zqcmpx-legalfile__icon {
    background: rgba(119, 27, 200, 0.28);
    color: #d8c7f7;
}

body.dark .zqcmpx-legalfile__body b,
body.dark .zqcmpx-invrow__top b {
    color: #ececf1;
}

body.dark .zqcmpx-legalfile__body span,
body.dark .zqcmpx-invrow__email,
body.dark .zqcmpx-invrow__meta {
    color: #a5a5b4;
}

body.dark .zqcmpx-invscroll {
    scrollbar-color: #8b6bc4 transparent;
}

body.dark .zqcmpx-invscroll::-webkit-scrollbar-thumb {
    background: #8b6bc4;
}

/* Stats, timeline, referral ------------------------------------------------ */

.zqcmpx-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.6rem;
    margin: 0.6rem;
}

.zqcmpx-stat {
    padding: 0.6rem 0.7rem;
    border: 1px solid #f0ecf7;
    border-radius: 10px;
    background: #fbfafd;
}

.zqcmpx-stat b {
    display: block;
    color: #3f3f4a;
    font-size: 0.85rem;
    font-weight: 500;
}

.zqcmpx-stat span {
    display: block;
    margin-top: 0.1rem;
    color: #8e8899;
    font-size: 0.64rem;
    font-weight: 400;
}

.zqcmpx-timeline {
    margin: 0;
    padding: 0 0 0 0.85rem;
    border-left: 1px solid #f0ecf7;
    list-style: none;
}

.zqcmpx-timeline li {
    position: relative;
    padding: 0 0 0.75rem;
}

.zqcmpx-timeline li:last-child {
    padding-bottom: 0;
}

.zqcmpx-timeline li::before {
    content: "";
    position: absolute;
    left: -1.15rem;
    top: 0.3rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c9a9f0;
}

.zqcmpx-timeline b {
    display: block;
    color: #3f3f4a;
    font-size: 0.75rem;
    font-weight: 400;
}

.zqcmpx-timeline span {
    display: block;
    color: #8e8899;
    font-size: 0.66rem;
    font-weight: 400;
}

.zqcmpx-reflist {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.zqcmpx-refrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    background: #fbfafd;
}

.zqcmpx-refrow > div > b {
    display: block;
    color: #3f3f4a;
    font-size: 0.76rem;
    font-weight: 500;
}

.zqcmpx-refrow > div > span {
    display: block;
    margin-top: 0.12rem;
    color: #8a8a98;
    font-size: 0.68rem;
    font-weight: 400;
    line-height: 1.5;
}

.zqcmpx-refrow__pct {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    padding: 0.35rem 0.6rem;
    border-radius: 10px;
    background: #f1e9fb;
    color: #771bc8;
    font-size: 0.7rem;
    font-weight: 500;
}

.zqcmpx-refrow__pct em {
    color: #8a70b5;
    font-size: 0.58rem;
    font-style: normal;
    font-weight: 400;
}

.zqcmpx-steps {
    margin: 0;
    padding-left: 1.05rem;
    color: #55555f;
    font-size: 0.74rem;
    font-weight: 400;
    line-height: 1.7;
}

.zqcmpx-note {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0.7rem 0 0;
    padding: 0.6rem 0.7rem;
    border-radius: 10px;
    background: #f6f1fd;
    color: #5d4a80;
    font-size: 0.68rem;
    font-weight: 400;
    line-height: 1.6;
}

.zqcmpx-note i {
    margin-top: 0.15rem;
    color: #771bc8;
}

.zqcmpx-note b,
.zqcmpx-note strong {
    font-weight: 600;
    color: #771bc8;
}

.zqcmpx-refpanel[hidden] {
    display: none !important;
}

#zqRefAgency.zqcmpx-refpanel--dense:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#zqRefAgency.zqcmpx-refpanel--dense .zqcmpx-card {
    padding: 0.5rem 0.6rem;
    border-radius: 10px;
}

#zqRefAgency.zqcmpx-refpanel--dense .zqcmpx-card + .zqcmpx-card {
    margin-top: 0;
}

#zqRefAgency.zqcmpx-refpanel--dense .zqcmpx-card__cap {
    margin-bottom: 0.32rem;
    padding-bottom: 0.24rem;
    font-size: 0.62rem;
}

#zqRefAgency.zqcmpx-refpanel--dense .zqcmpx-card__cap i {
    font-size: 0.58rem;
}

#zqRefAgency.zqcmpx-refpanel--dense .zqcmpx-note {
    margin: 0 0 0.38rem;
    padding: 0.38rem 0.48rem;
    gap: 0.32rem;
    border-radius: 8px;
    font-size: 0.6rem;
    line-height: 1.4;
}

#zqRefAgency.zqcmpx-refpanel--dense .zqcmpx-note i {
    margin-top: 0.08rem;
    font-size: 0.58rem;
}

#zqRefAgency.zqcmpx-refpanel--dense .zqcmpx-steps {
    padding-left: 0.9rem;
    font-size: 0.6rem;
    line-height: 1.42;
}

#zqRefAgency.zqcmpx-refpanel--dense .zqcmpx-stats {
    gap: 0.38rem;
    margin-bottom: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

#zqRefAgency.zqcmpx-refpanel--dense .zqcmpx-stat {
    padding: 0.34rem 0.4rem;
    border-radius: 8px;
}

#zqRefAgency.zqcmpx-refpanel--dense .zqcmpx-stat b {
    font-size: 0.7rem;
}

#zqRefAgency.zqcmpx-refpanel--dense .zqcmpx-stat span {
    margin-top: 0.04rem;
    font-size: 0.54rem;
}

#zqRefAgency.zqcmpx-refpanel--dense .zqcmpx-reflist {
    gap: 0.3rem;
}

#zqRefAgency.zqcmpx-refpanel--dense .zqcmpx-refrow {
    gap: 0.45rem;
    padding: 0.36rem 0.48rem;
    border: 1px solid #f0ecf7;
    border-left: 2px solid #c9a9f0;
    border-radius: 8px;
}

#zqRefAgency.zqcmpx-refpanel--dense .zqcmpx-refrow > div > b {
    font-size: 0.64rem;
}

#zqRefAgency.zqcmpx-refpanel--dense .zqcmpx-refrow > div > span {
    margin-top: 0.04rem;
    font-size: 0.56rem;
    line-height: 1.32;
}

#zqRefAgency.zqcmpx-refpanel--dense .zqcmpx-refrow__pct {
    padding: 0.16rem 0.36rem;
    border-radius: 7px;
    font-size: 0.64rem;
}

#zqRefAgency.zqcmpx-refpanel--dense .zqcmpx-refrow__pct em {
    font-size: 0.5rem;
}

#zqRefAgency.zqcmpx-refpanel--dense .zqcmpx-refrow--wait {
    border-left-color: #e2dde9;
    background: #faf9fb;
}

#zqRefAgency.zqcmpx-refpanel--dense .zqcmpx-refrow--wait .zqcmpx-refrow__pct {
    background: #efedf3;
    color: #8a8a98;
}

@media (max-width: 575.98px) {
    #zqRefAgency.zqcmpx-refpanel--dense .zqcmpx-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Dark theme --------------------------------------------------------------- */

body.dark .zqcmpx-aside,
body.dark .zqcmpx-card,
body.dark .zqcmpx-stat,
body.dark .zqcmpx-refrow {
    background: #2f3031;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark .zqcmpx-aside__card {
    background: rgba(119, 27, 200, 0.22);
}

body.dark .zqcmpx-aside__mark,
body.dark .zqcmpx-aside__logo {
    background: #2f3031;
    border-color: rgba(255, 255, 255, 0.08);
    color: #d8c7f7;
    box-shadow: none;
}

body.dark .zqcmpx-aside__name,
body.dark .zqcmpx-field__val,
body.dark .zqcmpx-stat b,
body.dark .zqcmpx-refrow b,
body.dark .zqcmpx-timeline b,
body.dark .zqcmpx-minitable td,
body.dark .zqcmpx-rich,
body.dark .zqcmpx-steps {
    color: #ececf1;
}

body.dark .zqcmpx-aside__card b,
body.dark .zqcmpx-card__cap,
body.dark .zqcmpx-field__val i,
body.dark .zqcmpx-aside__facts li i,
body.dark .zqcmpx-link,
body.dark .zqcmpx-note i,
body.dark .zqcmpx-tabs .nav-link.active {
    color: #c4b5fd;
}

body.dark .zqcmpx-aside,
body.dark .zqcmpx-aside__facts,
body.dark .zqcmpx-card__cap,
body.dark .zqcmpx-tabs {
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark .zqcmpx-tabs .nav-link.active {
    border-bottom-color: #c4b5fd;
}

body.dark .zqcmpx-minitable th {
    background: #333435;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark .zqcmpx-minitable td {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

body.dark .zqcmpx-who__mark,
body.dark .zqcmpx-tag,
body.dark .zqcmpx-refrow__pct {
    background: rgba(119, 27, 200, 0.3);
    color: #d8c7f7;
}

body.dark .zqcmpx-refrow__pct em {
    color: #bda8e0;
}

body.dark #zqRefAgency.zqcmpx-refpanel--dense .zqcmpx-refrow--wait {
    background: #2a2b2c;
    border-left-color: rgba(255, 255, 255, 0.12);
}

body.dark #zqRefAgency.zqcmpx-refpanel--dense .zqcmpx-refrow--wait .zqcmpx-refrow__pct {
    background: rgba(255, 255, 255, 0.08);
    color: #a5a5b4;
}

body.dark .zqcmpx-note {
    background: rgba(119, 27, 200, 0.16);
    color: #d9d2e8;
}

body.dark .zqcmpx-state--trial {
    background: rgba(29, 78, 216, 0.22);
    color: #93c5fd;
}

body.dark .zqcmpx-morebtn {
    background: #333435;
    border-color: rgba(255, 255, 255, 0.08);
    color: #c4b5fd;
}

body.dark .zqcmpx-invdl {
    background: #333435;
    border-color: rgba(255, 255, 255, 0.08);
    color: #c4b5fd;
}

body.dark .zqcmpx-about__text,
body.dark .zqcmpx-about__place {
    color: #ececf1;
}

body.dark .zqcmpx-about__place {
    background: #2f3031;
    border-color: rgba(255, 255, 255, 0.08);
}

.manage-system-tutorials[data-mst-table="companies"] .zqcmpx-filterbtn.is-active {
    background: #771bc8;
    color: #fff;
    border-color: #771bc8;
}

.zqcmpx-filter {
    width: min(360px, 100vw);
}

.zqcmpx-filter__head {
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.05rem;
    border-bottom: 1px solid #efeaf6;
}

.zqcmpx-filter__head .offcanvas-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    color: #771bc8;
    font-size: 0.92rem;
    font-weight: 600;
}

.zqcmpx-filter__lead {
    margin: 0.3rem 0 0;
    color: #8a8a98;
    font-size: 0.7rem;
    font-weight: 400;
    line-height: 1.45;
}

.zqcmpx-filter__body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.05rem;
}

.zqcmpx-filter__group {
    margin: 0;
    padding: 0;
    border: 0;
}

.zqcmpx-filter__label {
    display: block;
    margin-bottom: 0.4rem;
    color: #3a3a46;
    font-size: 0.72rem;
    font-weight: 600;
}

.zqcmpx-filter__label span {
    color: #c2410c;
}

.zqcmpx-filter__hint {
    margin: 0 0 0.4rem;
    color: #8a8a98;
    font-size: 0.62rem;
    font-weight: 400;
}

.zqcmpx-filter__hint.is-error {
    color: #b42318;
}

.zqcmpx-filter__check {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.28rem;
    padding: 0.4rem 0.5rem;
    border: 1px solid #ece8f2;
    border-radius: 8px;
    background: #fff;
    color: #6a6a76;
    font-size: 0.66rem;
    font-weight: 500;
    cursor: pointer;
}

.zqcmpx-filter__check input {
    margin: 0;
    width: 0.78rem;
    height: 0.78rem;
    accent-color: #771bc8;
}

.zqcmpx-filter__checks {
    display: grid;
    gap: 0.35rem;
}

.zqcmpx-filter__checks--status {
    grid-template-columns: 1fr 1fr;
}

.zqcmpx-filter__checks--type {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.zqcmpx-filter__checks .zqcmpx-filter__check {
    margin: 0;
}

.zqcmpx-filter__checks--status .zqcmpx-filter__check,
.zqcmpx-filter__checks--type .zqcmpx-filter__check {
    justify-content: flex-start;
    min-height: 2.15rem;
}

.zqcmpx-filter__checks--type .zqcmpx-filter__check {
    justify-content: center;
}

.zqcmpx-filter__check:has(input:checked) {
    border-color: #771bc8;
    background: #f3eaff;
    color: #771bc8;
}

.zqcmpx-filter__dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.zqcmpx-filter__date {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    color: #8a8a98;
    font-size: 0.64rem;
    font-weight: 500;
}

.zqcmpx-filter__date input {
    width: 100%;
    padding: 0.42rem 0.5rem;
    border: 1px solid #efeaf6;
    border-radius: 8px;
    background: #fff;
    color: #3a3a46;
    font-size: 0.7rem;
    font-weight: 400;
}

.zqcmpx-filter__date input:focus {
    outline: none;
    border-color: #771bc8;
}

.zqcmpx-filter__foot {
    display: flex;
    gap: 0.5rem;
    padding: 0.85rem 1.05rem;
    border-top: 1px solid #efeaf6;
    background: #fbfafd;
}

.zqcmpx-filter__reset,
.zqcmpx-filter__apply {
    flex: 1 1 auto;
    padding: 0.52rem 0.7rem;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
}

.zqcmpx-filter__reset {
    border: 1px solid #e8e4ef;
    background: #fff;
    color: #5a5a68;
}

.zqcmpx-filter__apply {
    border: 0;
    background: #771bc8;
    color: #fff;
}

.zqcmpx-filterbtn__count {
    display: inline-flex;
    min-width: 1.1rem;
    height: 1.1rem;
    align-items: center;
    justify-content: center;
    margin-inline-start: 0.15rem;
    border-radius: 999px;
    background: #771bc8;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1;
}

.manage-system-tutorials[data-mst-table="companies"]
    .zqcmpx-filterbtn.is-active
    .zqcmpx-filterbtn__count {
    background: #fff;
    color: #771bc8;
}

.manage-system-tutorials[data-mst-table="companies"] .jobs-applied-tags {
    margin:.5rem ;
    padding: 0;
}

.manage-system-tutorials[data-mst-table="companies"] .jobs-applied-tag {
    border-color: #e8dff6;
    background: #fbfafd;
    color: #5a4a70;
    font-weight: 500;
}

.manage-system-tutorials[data-mst-table="companies"] .jobs-applied-tag__remove {
    background: #efe8f8;
    color: #6b5a82;
}

.manage-system-tutorials[data-mst-table="companies"]
    .jobs-applied-tag__remove:hover {
    background: #e4d8f3;
    color: #3a3a46;
}

.manage-system-tutorials[data-mst-table="unlocks"]
    .zqcmpx-filterbtn.is-active {
    background: #771bc8;
    color: #fff;
    border-color: #771bc8;
}

.manage-system-tutorials[data-mst-table="unlocks"]
    .zqcmpx-filterbtn.is-active
    .zqcmpx-filterbtn__count {
    background: #fff;
    color: #771bc8;
}

.manage-system-tutorials[data-mst-table="unlocks"] .jobs-applied-tags {
    margin: 0.5rem 0 0;
    padding: 0;
}

.manage-system-tutorials[data-mst-table="unlocks"] .jobs-applied-tag {
    border-color: #e8dff6;
    background: #fbfafd;
    color: #5a4a70;
    font-weight: 500;
}

.manage-system-tutorials[data-mst-table="unlocks"] .jobs-applied-tag__remove {
    background: #efe8f8;
    color: #6b5a82;
}

.manage-system-tutorials[data-mst-table="unlocks"]
    .jobs-applied-tag__remove:hover {
    background: #e4d8f3;
    color: #3a3a46;
}

.zqcmpx-filter__check-icon {
    margin-inline-end: 0.32rem;
    font-size: 0.68rem;
}

.zqcmpx-filter__check-icon--active {
    color: #1b9e5a;
}

.zqcmpx-filter__check-icon--expired {
    color: #c2410c;
}

.zqcmpx-filter__check:has(input:checked) .zqcmpx-filter__check-icon--active {
    color: #1b9e5a;
}

.zqcmpx-filter__check:has(input:checked) .zqcmpx-filter__check-icon--expired {
    color: #c2410c;
}

.zqcmpx-reset .modal-dialog {
    max-width: 380px;
}

.zqcmpx-reset .modal-body {
    text-align: center;
    padding: 1.15rem 1.2rem 0.9rem;
}

.zqcmpx-reset__mark {
    display: inline-flex;
    width: 2.4rem;
    height: 2.4rem;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.7rem;
    border-radius: 12px;
    background: #f6f0fc;
    color: #771bc8;
    font-size: 0.9rem;
}

.zqcmpx-reset__ask {
    margin: 0 0 0.35rem;
    color: #3a3a46;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.4;
}

.zqcmpx-reset__for {
    margin: 0;
    color: #8a8a98;
    font-size: 0.74rem;
    font-weight: 400;
    line-height: 1.45;
}

.zqcmpx-reset__for strong {
    color: #3a3a46;
    font-weight: 600;
}

.zqcmpx-reset__foot {
    justify-content: center;
    gap: 0.5rem;
}

.zqcmpx-reset__foot .btn,
.zqcmpx-reset__foot .add-role {
    min-width: 5.5rem;
}

body.dark .zqcmpx-reset__mark {
    background: rgba(119, 27, 200, 0.22);
    color: #d8c7f7;
}

body.dark .zqcmpx-reset__ask,
body.dark .zqcmpx-reset__for strong {
    color: #ececf1;
}

body.dark .zqcmpx-filter__check {
    background: #2f3031;
    border-color: rgba(255, 255, 255, 0.08);
    color: #a5a5b4;
}

body.dark .zqcmpx-filter__check:has(input:checked) {
    background: rgba(119, 27, 200, 0.22);
    border-color: rgba(196, 181, 253, 0.4);
    color: #d8c7f7;
}

/* Responsive --------------------------------------------------------------- */

@media (max-width: 991.98px) {
    .zqcmpx-peekwrap {
        grid-template-columns: minmax(0, 1fr);
    }

    .zqcmpx-aside {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
    }

    .zqcmpx-aside__name {
        flex: 1 1 auto;
    }

    .zqcmpx-aside__card {
        width: auto;
        flex: 1 1 160px;
    }

    .zqcmpx-cardgrid .zqcmpx-card + .zqcmpx-card {
        margin-top: 0;
    }
    .zqcmpx-tabs .nav-link {
      padding: 0.4rem .8rem;
      font-size: 0.62rem;
    }
}

@media (max-width: 575.98px) {
    .zqcmpx-cardgrid {
        grid-template-columns: minmax(0, 1fr);
    }
}



.manage-system-tutorials[data-mst-table="unlocks"] .mst-title-cell__name {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.manage-system-tutorials[data-mst-table="unlocks"] .mst-title-cell__name:hover,
.manage-system-tutorials[data-mst-table="unlocks"]
    .mst-title-cell__name:focus-visible {
    color: #7b2cbf;
    text-decoration: underline;
}


.manage-system-tutorials[data-mst-table="unlocks"]
    .mst-actions__btn--download {
    text-decoration: none;
}

/* from_share.html — matched candidates, locked CV, plan unlock quota */
.from-share {
    --fs-primary: #7a2cbf;
    --fs-primary-dark: #6524a3;
    --fs-primary-tint: rgba(122, 44, 191, 0.1);
    --fs-text: #1f2430;
    --fs-muted: #6b7280;
    --fs-line: #9ca3af;
    --fs-border: #ece8f2;
    --fs-bg: #fafafa;
    --fs-white: #fff;
    --fs-ok: #16a34a;
    margin-top: 0.85rem;
}

.from-share .from-share__quota {
    background: var(--fs-white);
    border: 1px solid var(--fs-border);
    border-radius: 10px;
    padding: 0.7rem 0.85rem 0.75rem;
    margin-bottom: 0.75rem;
}

.from-share .from-share__quota.is-empty {
    border-color: #f3c6c6;
    background: #fff8f8;
}

.from-share .from-share__quota-copy {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.from-share .from-share__quota-label {
    font-size: 0.72rem;
    color: var(--fs-muted);
}

.from-share .from-share__quota-count {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--fs-text);
}

.from-share .from-share__quota-bar {
    height: 6px;
    border-radius: 99px;
    background: #efeaf6;
    overflow: hidden;
}

.from-share .from-share__quota-fill {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: var(--fs-primary);
    transition: width 0.25s ease;
}

.from-share .from-share__quota.is-empty .from-share__quota-fill {
    background: #dc2626;
}

.from-share .from-share__quota-note,
.from-share .from-share__quota-empty {
    margin: 0.4rem 0 0;
    font-size: 0.68rem;
    line-height: 1.4;
    color: var(--fs-muted);
}

.from-share .from-share__quota-empty {
    color: #b42318;
    font-weight: 500;
}

.from-share .from-share__empty {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--fs-white);
    border: 1px solid var(--fs-border);
    border-radius: 10px;
    color: var(--fs-muted);
}

.from-share .from-share__empty i {
    font-size: 1.25rem;
    color: var(--fs-primary);
    margin-bottom: 0.5rem;
}

.from-share .from-share__empty h2 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--fs-text);
    margin: 0 0 0.25rem;
}

.from-share .from-share__empty p {
    margin: 0;
    font-size: 0.75rem;
}

.from-share .from-share__layout {
    display: grid;
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
}

.from-share .from-share__list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.from-share .from-share__card {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    width: 100%;
    text-align: left;
    background: var(--fs-white);
    border: 1px solid var(--fs-border);
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
    cursor: pointer;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.from-share .from-share__card:hover {
    border-color: #d4b8ef;
}

.from-share .from-share__card.is-selected {
    border-color: var(--fs-primary);
    box-shadow: 0 0 0 2px var(--fs-primary-tint);
}

.from-share .from-share__match {
    flex-shrink: 0;
    min-width: 2.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--fs-primary);
    background: var(--fs-primary-tint);
    border-radius: 6px;
    padding: 0.18rem 0.3rem;
    text-align: center;
    line-height: 1.3;
}

.from-share .from-share__card-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.from-share .from-share__card-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--fs-text);
    line-height: 1.3;
}

.from-share .from-share__card-meta {
    font-size: 0.68rem;
    color: var(--fs-muted);
    line-height: 1.35;
}

.from-share .from-share__card.is-added-card .from-share__card-name::after {
    content: " · added";
    font-weight: 500;
    color: var(--fs-ok);
    font-size: 0.62rem;
}

.from-share .from-share__backdrop {
    display: none;
}

.from-share .from-share__detail {
    background: var(--fs-white);
    border: 1px solid var(--fs-border);
    border-radius: 12px;
    padding: 0.85rem 0.95rem 1rem;
    min-height: 280px;
    position: sticky;
    top: 0.75rem;
}

.from-share .from-share__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    text-align: center;
    color: var(--fs-muted);
    font-size: 0.78rem;
    gap: 0.4rem;
}

.from-share .from-share__placeholder i {
    font-size: 1.35rem;
    color: var(--fs-primary);
}

.from-share .from-share__close {
    display: none;
}

.from-share .from-share__cv-head {
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--fs-border);
    margin-bottom: 0.65rem;
}

.from-share .from-share__cv-head-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
}

.from-share .from-share__cv-name {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--fs-text);
    line-height: 1.3;
}

.from-share .from-share__cv-score {
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--fs-primary);
    background: var(--fs-primary-tint);
    border-radius: 99px;
    padding: 0.18rem 0.5rem;
}

.from-share .from-share__cv-line {
    margin: 0 0 0.12rem;
    font-size: 0.72rem;
    color: var(--fs-muted);
    line-height: 1.4;
}

.from-share .from-share__cv-updated {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0.28rem 0 0;
    font-size: 0.68rem;
    color: var(--fs-muted);
}

.from-share .from-share__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--fs-ok);
}

.from-share .from-share__social {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.7rem;
}

.from-share .from-share__social-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 0.7rem;
    text-decoration: none;
}

.from-share .from-share__social-btn.is-locked {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.from-share .from-share__social-btn.is-open {
    background: var(--fs-primary);
    color: #fff;
}

.from-share .from-share__social-btn.is-open:hover {
    background: var(--fs-primary-dark);
    color: #fff;
}

.from-share .from-share__social-lock {
    position: absolute;
    right: -2px;
    bottom: -2px;
    font-size: 0.42rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 1px #e5e7eb;
}

.from-share .from-share__actions {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
}

.from-share .from-share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-height: 32px;
    padding: 0.28rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.from-share .from-share__btn:disabled {
    opacity: 0.7;
    cursor: default;
}

.from-share .from-share__btn--ghost {
    background: #fff;
    border-color: var(--fs-border);
    color: var(--fs-text);
}

.from-share .from-share__btn--ghost:hover:not(:disabled) {
    border-color: var(--fs-primary);
    color: var(--fs-primary);
    background: var(--fs-primary-tint);
}

.from-share .from-share__btn--fill {
    background: var(--fs-primary);
    border-color: var(--fs-primary);
    color: #fff;
}

.from-share .from-share__btn--fill:hover:not(:disabled) {
    background: var(--fs-primary-dark);
    border-color: var(--fs-primary-dark);
    color: #fff;
}

.from-share .from-share__hint {
    margin: 0 0 0.85rem;
    font-size: 0.66rem;
    color: var(--fs-line);
    line-height: 1.4;
}

.from-share .from-share__section {
    margin-bottom: 0.85rem;
}

.from-share .from-share__section:last-child {
    margin-bottom: 0;
}

.from-share .from-share__section-title {
    margin: 0 0 0.4rem;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fs-line);
}

.from-share .from-share__timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.from-share .from-share__item {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    font-size: 0.74rem;
    line-height: 1.45;
    color: var(--fs-text);
}

.from-share .from-share__item-ico {
    width: 0.85rem;
    margin-top: 0.18rem;
    color: #4b5563;
    font-size: 0.72rem;
    flex-shrink: 0;
}

.from-share .from-share__item-title {
    font-weight: 500;
}

.from-share .from-share__item-org {
    font-weight: 600;
    color: #374151;
}

.from-share .from-share__item-dates {
    color: var(--fs-line);
    font-style: italic;
    font-size: 0.7rem;
}

.from-share .from-share__skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.from-share .from-share__skill {
    font-size: 0.66rem;
    color: var(--fs-text);
    background: #f5f3f8;
    border: 1px solid var(--fs-border);
    border-radius: 99px;
    padding: 0.12rem 0.5rem;
}

.from-share__toast {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%) translateY(12px);
    background: #1f2430;
    color: #fff;
    font-size: 0.75rem;
    padding: 0.45rem 0.8rem;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    z-index: 1080;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.from-share__toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 991.98px) {
    .from-share .from-share__layout {
        grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
    }
}

@media (max-width: 767.98px) {
    .from-share .from-share__layout {
        grid-template-columns: 1fr;
    }

    .from-share .from-share__detail {
        position: static;
        min-height: 0;
        padding: 0.7rem 0.75rem;
    }

    .from-share .from-share__detail:not(.is-open) .from-share__cv {
        display: none;
    }

    .from-share .from-share__detail:not(.is-open)::after {
        content: "Tap a person to open the profile";
        display: block;
        text-align: center;
        font-size: 0.72rem;
        color: var(--fs-muted);
        padding: 0.85rem 0.4rem;
    }

    .from-share .from-share__backdrop.is-visible {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1050;
    }

    .from-share .from-share__detail.is-open {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: min(92vw, 380px);
        z-index: 1055;
        border-radius: 0;
        overflow-y: auto;
        padding: 0.85rem 0.85rem 1.25rem;
    }

    .from-share .from-share__close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        margin-left: auto;
        margin-bottom: 0.45rem;
        border: none;
        border-radius: 8px;
        background: #f3f4f6;
        color: #6b7280;
        cursor: pointer;
    }

    .from-share .from-share__actions {
        flex-wrap: wrap;
    }

    .from-share .from-share__btn {
        flex: 1 1 120px;
    }
}

@media (max-width: 479.98px) {
    .from-share .from-share__quota-copy {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15rem;
    }

    .from-share .from-share__cv-head-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* page_expire — applications closed (static HTML + front.hr.page_expire) */
.job-expire,
body.job-expire {
    --jx-ink: #2c2438;
    --jx-muted: #6d6478;
    --jx-line: #ebe6f1;
    --jx-paper: #ffffff;
    --jx-warm: #c45c5c;
    --jx-accent: var(--company-brand-primary, #7b2cbf);
    --jx-accent-soft: color-mix(in srgb, var(--company-brand-primary, #7b2cbf) 12%, white);
    --jx-accent-dark: color-mix(in srgb, var(--company-brand-primary, #7b2cbf) 82%, black);
    --jx-stage: color-mix(in srgb, var(--company-brand-primary, #7b2cbf) 7%, #f7f6fa);
}

body.job-expire,
body:has(> .job-expire) {
    margin: 0;
    background: var(--jx-stage);
}

body:has(> .job-expire) .front-footer {
    display: none;
}

.job-expire {
    min-height: 100vh;
    background: var(--jx-stage);
    font-weight: 400;
}

.job-expire .job-expire__stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    padding: 1.5rem 1rem;
    box-sizing: border-box;
}

.job-expire .job-expire__card {
    position: relative;
    width: min(460px, 100%);
    background: var(--jx-paper);
    border: 1px solid var(--jx-line);
    border-radius: 18px;
    padding: 1.45rem 1.4rem 1.35rem;
    text-align: center;
}

.job-expire .job-expire__badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.2rem;
    padding: 0.14rem 0.58rem;
    border-radius: 99px;
    background: #fdeeee;
    color: var(--jx-warm);
    font-size: 0.64rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.job-expire .job-expire__visual {
    margin: 0.2rem auto 0.25rem;
    width: min(176px, 54%);
}

.job-expire .job-expire__visual img {
    display: block;
    width: 100%;
    height: auto;
}

.job-expire .job-expire__title {
    margin: 0.15rem 0 0.4rem;
    color: var(--jx-ink);
    font-size: 1.18rem;
    font-weight: 600;
    line-height: 1.3;
}

.job-expire .job-expire__text {
    margin: 0 auto 0.9rem;
    max-width: 42ch;
    color: var(--jx-muted);
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.55;
}

.job-expire .job-expire__points {
    list-style: none;
    margin: 0 0 1.05rem;
    padding: 0;
    display: grid;
    gap: 0.4rem;
}

.job-expire .job-expire__points li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--jx-line);
    border-radius: 10px;
    background: var(--jx-accent-soft);
    color: var(--jx-ink);
    font-size: 0.76rem;
    font-weight: 400;
    line-height: 1.35;
    text-align: left;
}

.job-expire .job-expire__points i {
    color: var(--jx-accent);
    font-size: 0.8rem;
    width: 0.95rem;
    text-align: center;
    flex-shrink: 0;
}

.job-expire .job-expire__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.job-expire .job-expire__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.42rem 0.75rem;
    border: 1px solid var(--jx-accent);
    border-radius: 10px;
    background: var(--jx-accent);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 400;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.job-expire .job-expire__cta:hover,
.job-expire .job-expire__cta:focus-visible {
    background: var(--jx-accent-dark);
    border-color: var(--jx-accent-dark);
    color: #fff;
}

.job-expire .job-expire__cta--ghost {
    background: #fff;
    color: var(--jx-accent);
}

.job-expire .job-expire__cta--ghost:hover,
.job-expire .job-expire__cta--ghost:focus-visible {
    background: var(--jx-accent-soft);
    color: var(--jx-accent);
    border-color: var(--jx-accent);
}

@media (max-width: 575.98px) {
    .job-expire .job-expire__card {
        padding: 1.15rem 1rem 1.2rem;
        border-radius: 16px;
    }

    .job-expire .job-expire__title {
        font-size: 1.05rem;
        font-weight: 600;
    }

    .job-expire .job-expire__visual {
        width: min(150px, 62%);
    }

    .job-expire .job-expire__actions {
        grid-template-columns: 1fr;
    }
}

/* Tickets page */
.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .mst-table-root .mst-toolbar .mst-toolbar__tools {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    margin-left: auto;
}

.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .mst-stat-card,
.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .mst-toolbar,
.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .mst-table,
.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .mst-table td,
.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .mst-table th,
.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .mst-table-footer {
    font-weight: 400;
}

.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .mst-table-root .mst-table .mst-table__th {
    font-weight: 500;
    font-size: 0.6rem;
    letter-spacing: 0.03em;
    color: #8b8b9c;
    text-transform: uppercase;
}

.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .mst-table-root .mst-table .mst-table__td {
    vertical-align: middle;
    padding-top: 0.42rem;
    padding-bottom: 0.42rem;
    font-size: 0.7rem;
    font-weight: 400;
    color: #4b4b5c;
}

.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .mst-table-root .mst-table .mst-table__row:hover {
    background-color: #faf8ff;
}

.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-subject-link {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 100%;
    text-decoration: none;
    color: inherit;
}

.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-subject-link .mst-title-cell__name {
    color: #4b4b5c;
    font-weight: 400;
    font-size: 0.7rem;
}

.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-subject-link:hover .mst-title-cell__name,
.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-subject-link:focus-visible .mst-title-cell__name {
    color: #7b2cbf;
    text-decoration: underline;
}

.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-id {
    display: block;
    color: #9b8bb3;
    font-size: 0.54rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-top: 0.06rem;
}

.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-subject-link:hover .tk-id,
.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-subject-link:focus-visible .tk-id {
    color: #7b2cbf;
}

.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-subject-link:focus-visible {
    outline: none;
}

.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .mst-toolbar__filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-filter {
    position: relative;
}

.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-filter__select {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.34rem 0.72rem;
    border: 1px solid #e4dff0;
    border-radius: 7px;
    background: #fff;
    color: #4b4b5c;
    font-size: 0.72rem;
    font-weight: 400;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
}

.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-pill:hover,
.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-filter.is-open .tk-pill,
.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-filter.is-active .tk-pill,
.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-pill.is-active {
    border-color: #7b2cbf;
    background: #f3ecff;
    color: #7b2cbf;
}

.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-filter.is-active .tk-pill__caret,
.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-pill.is-active .tk-pill__caret {
    color: #7b2cbf;
}

.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-clear {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    padding: 0.34rem 0.72rem;
    border: 1px solid #e4dff0;
    border-radius: 7px;
    background: #fff;
    color: #7b2cbf;
    font-size: 0.72rem;
    font-weight: 400;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
}

.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-clear[hidden] {
    display: none;
}

.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-clear:hover {
    border-color: #7b2cbf;
    background: #fcfaff;
}

.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-pill:focus-visible {
    outline: 2px solid color-mix(in srgb, #7b2cbf 35%, white);
    outline-offset: 2px;
}

.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-pill__caret {
    font-size: 0.52rem;
    color: #9b8bb3;
}

.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-filter.is-open .tk-pill__caret {
    color: #7b2cbf;
}

.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-pill-menu {
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    min-width: 156px;
    padding: 0.28rem;
    background: #fff;
    border: 1px solid #efeaf7;
    border-radius: 7px;
    box-shadow: 0 12px 28px rgba(80, 40, 130, 0.12);
    z-index: 20;
}

.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-pill-menu[hidden] {
    display: none;
}

.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-pill-option {
    display: block;
    width: 100%;
    border: 0;
    background: none;
    text-align: left;
    padding: 0.38rem 0.58rem;
    border-radius: 7px;
    color: #4b4b5c;
    font-size: 0.72rem;
    font-weight: 400;
    cursor: pointer;
}

.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-pill-option:hover {
    background: #f7f3fc;
}

.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-pill-option.is-active {
    background: #f3ecff;
    color: #7b2cbf;
}

.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-cat,
.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-prio {
    display: inline-flex;
    align-items: center;
    gap: 0.26rem;
    font-size: 0.66rem;
    font-weight: 400;
    white-space: nowrap;
    background: none;
}

.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-cat__icon,
.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-prio__icon {
    background: none !important;
    width: auto;
    height: auto;
    border-radius: 0;
    font-size: 0.64rem;
    color: inherit;
}

.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-cat--technical-issue { color: #7b2cbf; }
.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-cat--finance { color: #16a34a; }
.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-cat--suggestion { color: #db2777; }
.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-cat--hr { color: #2563eb; }

.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-prio--high { color: #dc2626; }
.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-prio--medium { color: #d97706; }
.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-prio--low { color: #16a34a; }

.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .mst-table-root .mst-table .mst-status {
    font-weight: 400;
    border-radius: 7px;
    padding: 0.14rem 0.5rem;
    font-size: 0.62rem;
}

.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .mst-status--open {
    background: #eaf2ff;
    color: #2563eb;
}

.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .mst-status--in-progress {
    background: #f3ecff;
    color: #7b2cbf;
}

.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .mst-status--resolved {
    background: #edfaf4;
    color: #16a34a;
}

.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .mst-status--waiting-for-user {
    background: #fdf3e0;
    color: #d97706;
}

.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-datecell {
    display: inline-flex;
    align-items: baseline;
    gap: 0.28rem;
    font-weight: 400;
    white-space: nowrap;
    line-height: 1.25;
}

.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-datecell__date {
    font-size: 0.62rem;
    color: #5b5b6c;
}

.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-datecell__time {
    font-size: 0.56rem;
    color: #9b8bb3;
}

.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-col-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.1rem;
}

.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-col-actions .mst-actions__btn {
    width: 24px;
    height: 24px;
    font-size: 0.64rem;
}

.manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .tk-col-actions .mst-actions__btn--delete:hover {
    color: #dc2626;
}

.tk-modal .modal-dialog {
    max-width: 520px;
}

.tk-modal .row.g-3 {
    --bs-gutter-x: 0.6rem;
    --bs-gutter-y: 0.7rem;
}

.tk-modal .row > [class*="col-"] {
    min-width: 0;
}

.tk-modal .form-label {
    font-size: 0.72rem;
    font-weight: 400;
    margin-bottom: 0.28rem;
    color: #5b5b6c;
}

.tk-modal .form-control,
.tk-modal .form-select {
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 400;
}

.tk-modal.tk-modal--view .tk-view-dialog {
    max-width: 520px;
}

.tk-modal.tk-modal--view .modal-body.tk-view-body {
    padding: 0.85rem 0.95rem 1rem;
}

.tk-modal.tk-modal--view .usr-view-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.7rem;
    padding: 0.55rem 0.65rem;
    border-radius: 7px;
    background: #faf8ff;
    border: 1px solid #efeaf7;
}

.tk-modal.tk-modal--view .usr-view-head__name {
    font-size: 0.82rem;
    font-weight: 500;
    color: #3f3f50;
}

.tk-modal.tk-modal--view .usr-view-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
}

.tk-modal.tk-modal--view .usr-view-item {
    min-width: 0;
    padding: 0.48rem 0.58rem;
    border-radius: 7px;
    background: #fff;
    border: 1px solid #f0eef6;
}

.tk-modal.tk-modal--view .usr-view-item--wide {
    grid-column: 1 / -1;
}

.tk-modal.tk-modal--view .usr-view-item__label {
    display: block;
    margin-bottom: 0.18rem;
    font-size: 0.58rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #9b8bb3;
}

.tk-modal.tk-modal--view .usr-view-item__value {
    display: block;
    font-size: 0.74rem;
    font-weight: 400;
    line-height: 1.45;
    color: #4b4b5c;
    word-break: break-word;
}

@media (min-width: 768px) {
    .manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .mst-table-root .mst-table .mst-table__th--actions,
    .manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .mst-table-root .mst-table .mst-table__td--actions {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    .manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .mst-table-root .mst-toolbar .mst-toolbar__tools {
        display: flex;
        width: 100%;
        margin-left: 0;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        gap: 0.35rem;
    }

    .manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .mst-table-root .mst-toolbar .mst-toolbar__tools .mst-toolbar__export,
    .manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .mst-table-root .mst-toolbar .mst-toolbar__tools .mst-toolbar__actions {
        width: auto;
        flex: 1 1 0;
        min-width: 0;
        margin-left: 0;
        flex-wrap: nowrap;
    }

    .manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .mst-table-root .mst-toolbar .mst-toolbar__tools .mst-toolbar__export {
        justify-content: flex-start;
    }

    .manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .mst-table-root .mst-toolbar .mst-toolbar__tools .mst-toolbar__actions {
        justify-content: flex-end;
    }

    .manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .mst-table-root .mst-toolbar .mst-toolbar__tools .mst-export-btn {
        min-width: 0;
        padding: 0.26rem 0.42rem;
    }
    .manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .mst-actions--hover {
        display: none !important;
    }

    .manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .mst-title-cell {
        padding-right: 0;
    }

    .manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .mst-table-root .mst-table .mst-table__th--actions,
    .manage-system-tutorials:is([data-mst-table="tickets"], [data-mst-table="tickets-admin"]) .mst-table-root .mst-table .mst-table__td--actions {
        display: table-cell !important;
        text-align: right;
    }

    .tk-modal .modal-dialog {
        margin: 0.7rem;
        max-width: calc(100% - 1.4rem);
    }

    .tk-modal .form-label {
        font-size: 0.66rem;
    }

    .tk-modal .form-control,
    .tk-modal .form-select {
        font-size: 0.72rem;
        padding: 0.38rem 0.5rem;
    }

    .tk-modal.tk-modal--view .usr-view-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.38rem;
    }

    .tk-modal.tk-modal--view .usr-view-item {
        padding: 0.4rem 0.48rem;
    }

    .tk-modal.tk-modal--view .usr-view-item__label {
        font-size: 0.52rem;
    }

    .tk-modal.tk-modal--view .usr-view-item__value {
        font-size: 0.68rem;
    }
}

.manage-system-tutorials[data-mst-table="tickets-admin"] .tk-company {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 400;
    color: #4b4b5c;
    white-space: nowrap;
}

.tk-modal.tk-modal--reply .tk-view-dialog {
    max-width: 540px;
}

.tk-modal.tk-modal--reply .usr-view-head {
    margin-bottom: 0.7rem;
}

.tk-modal.tk-modal--reply .tk-modal-tabs {
    display: flex;
    gap: 0;
    margin: 0 0 0.85rem;
    padding: 0;
    border: 0;
    border-bottom: 1px solid #efeaf7;
    border-radius: 0;
    background: transparent;
}

.tk-modal.tk-modal--reply .tk-modal-tabs .nav-item {
    flex: 1 1 0;
}

.tk-modal.tk-modal--reply .tk-modal-tabs .nav-link {
    width: 100%;
    border: 0;
    border-radius: 0;
    padding: 0.42rem 0.15rem 0.5rem;
    font-size: 0.74rem;
    font-weight: 400;
    color: #8b8b9c;
    background: transparent;
    box-shadow: inset 0 -2px 0 transparent;
}

.tk-modal.tk-modal--reply .tk-modal-tabs .nav-link:hover {
    color: #7b2cbf;
}

.tk-modal.tk-modal--reply .tk-modal-tabs .nav-link.active {
    font-weight: 500;
    color: #7b2cbf;
    background: transparent;
    border: 0;
    box-shadow: inset 0 -2px 0 #7b2cbf;
}

.tk-modal.tk-modal--reply .tk-modal-tab-content {
    min-height: 11.5rem;
}

.tk-modal.tk-modal--reply .tk-reply-form {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.tk-modal.tk-modal--reply .tk-reply-hint {
    margin: 0.4rem 0 0;
    font-size: 0.66rem;
    font-weight: 400;
    line-height: 1.4;
    color: #9b8bb3;
}

.tk-modal.tk-modal--reply textarea.form-control {
    min-height: 7rem;
    resize: vertical;
}

.tk-modal.tk-modal--reply .tk-status-label {
    margin: 0 0 0.5rem;
    font-size: 0.66rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #9b8bb3;
}

.tk-modal.tk-modal--reply .tk-status-choices {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.4rem;
}

.tk-modal.tk-modal--reply .tk-status-choice {
    width: 100%;
    border: 1px solid #efeaf7;
    border-radius: 7px;
    padding: 0.58rem 0.75rem;
    background: #fff;
    color: #4b4b5c;
    font-size: 0.78rem;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
}

.tk-modal.tk-modal--reply .tk-status-choice:hover {
    border-color: #d4c8ea;
    background: #faf8ff;
}

.tk-modal.tk-modal--reply .tk-status-choice.is-active {
    border-color: #7b2cbf;
    background: #faf8ff;
    color: #7b2cbf;
    font-weight: 500;
}

.tk-modal.tk-modal--reply .tk-details-grid .usr-view-item--wide .usr-view-item__value {
    line-height: 1.55;
}

.tk-modal.tk-modal--reply:not(.is-reply) .tk-reply-send {
    display: none;
}

@media (min-width: 768px) {
    .tk-modal.tk-modal--reply .tk-view-dialog {
        max-width: 560px;
    }

    .tk-modal.tk-modal--reply .modal-body.tk-view-body {
        padding: 1.15rem 1.3rem 1.2rem;
    }

    .tk-modal.tk-modal--reply .usr-view-head {
        padding: 0.7rem 0.8rem;
        margin-bottom: 0.9rem;
    }

    .tk-modal.tk-modal--reply .tk-modal-tabs {
        margin-bottom: 1rem;
    }

    .tk-modal.tk-modal--reply .tk-modal-tabs .nav-link {
        padding: 0.5rem 0.2rem 0.62rem;
        font-size: 0.78rem;
    }

    .tk-modal.tk-modal--reply .tk-status-choices {
        gap: 0.5rem;
    }

    .tk-modal.tk-modal--reply .tk-status-choice {
        padding: 0.68rem 0.85rem;
        font-size: 0.82rem;
    }

    .tk-modal.tk-modal--reply .tk-details-grid {
        gap: 0.6rem;
    }

    .tk-modal.tk-modal--reply .tk-details-grid .usr-view-item {
        padding: 0.62rem 0.72rem;
    }

    .tk-modal.tk-modal--reply textarea.form-control {
        min-height: 8rem;
        padding: 0.7rem 0.8rem;
    }
}

/* Create plan limits (Create_plan.html). Scoped under .cplan only. */
.cplan .cplan-limits {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cplan .cplan-limits .cplan-limits__list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.cplan .cplan-limits .cplan-limit {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.45rem;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.cplan .cplan-limits .cplan-limit .cplan-limit__type {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    flex: 1 1 160px;
    min-width: 0;
}

.cplan .cplan-limits .cplan-limit .cplan-limit__select,
.cplan .cplan-limits .cplan-limit .cplan-limit__input {
    width: 100%;
    border: 1px solid #e4dced;
    background: #fff;
    color: #1a1a2e;
    border-radius: 10px;
    font-size: 0.62rem;
    font-weight: 300;
    outline: none;
    padding: 0.4rem 0.6rem;
}
.cplan .cplan-limits .cplan-limit .cplan-limit__select ::placeholder,
.cplan .cplan-limits .cplan-limit .cplan-limit__input ::placeholder {
  font-size: 0.62rem;
}
.cplan .cplan-limits .cplan-limit .cplan-limit__select:focus,
.cplan .cplan-limits .cplan-limit .cplan-limit__input:focus {
    border-color: #771bc8;
    box-shadow: 0 0 0 3px rgba(119, 27, 200, 0.12);
}

.cplan .cplan-limits .cplan-limit .cplan-limit__input {
    flex: 0 0 96px;
    width: 96px;
}

.cplan .cplan-limits .cplan-limit .cplan-limit__help {
    margin: 0;
    min-height: 0;
    font-size: 0.58rem;
    font-weight: 300;
    line-height: 1.35;
    color: #8a8496;
}

.cplan .cplan-limits .cplan-limit .cplan-limit__remove {
    flex: 0 0 24px;
    width: 30px;
    height: 30px;
      font-size: 0.72rem;
    color: #e11d48;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
}

.cplan .cplan-limits .cplan-limit .cplan-limit__remove:hover {
    background: #fff5f6;
}

.cplan .cplan-limits .cplan-limits__add {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: none;
    background: #771bc8;
    color: #fff;
    border-radius: 8px;
    padding: 0.28rem 0.6rem;
    font-size: 0.64rem;
    font-weight: 400;
    cursor: pointer;
}

.cplan .cplan-limits .cplan-limits__add:hover {
    background: #5a189a;
}

.cplan .cplan-limits .cplan-limits__add:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .cplan .cplan-limits .cplan-limit {
        align-items: center;
    }

    .cplan .cplan-limits .cplan-limit .cplan-limit__type {
        flex: 1 1 100%;
    }

    .cplan .cplan-limits .cplan-limit .cplan-limit__input {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
    }


}

/* Create plan page layout. Scoped under .cplan only. */
/* Create plan page only. Scoped under .cplan so it cannot affect other pages. */
.cplan {
    --cplan-primary: #771bc8;
    --cplan-primary-deep: #5a189a;
    --cplan-soft: #f3ecff;
    --cplan-ink: #1a1a2e;
    --cplan-text: #6b6b7b;
    --cplan-border: #ece6f4;
    --cplan-radius: 14px;
    color: var(--cplan-text);
    font-weight: 300;
}

.cplan *,
.cplan *::before,
.cplan *::after {
    box-sizing: border-box;
}

.cplan__layout {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.cplan__main {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 1 1 0;
    min-width: 0;
}

.cplan__card,
.cplan__preview {
    background: #fff;
    border: 1px solid var(--cplan-border);
    border-radius: var(--cplan-radius);
    box-shadow: 0 1px 8px rgba(80, 40, 130, 0.05);
}

.cplan__card {
    padding: 0.95rem 1rem 1rem;
}

.cplan__card-head {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 0.85rem;
}

.cplan__step {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 9px;
    background: var(--cplan-soft);
    color: var(--cplan-primary);
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cplan__card-title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--cplan-ink);
    line-height: 1.25;
}

.cplan__card-title i {
    color: var(--cplan-primary);
    font-size: 0.78rem;
}

.cplan__card-hint {
    margin: 0.12rem 0 0;
    font-size: 0.62rem;
    font-weight: 300;
    color: var(--cplan-text);
}

.cplan__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.cplan__grid > .cplan__field {
    flex: 1 1 calc(50% - 0.7rem);
    min-width: 0;
}

.cplan__grid--price > .cplan__field {
    flex: 1 1 8.2rem;
}

.cplan__field {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    min-width: 0;
}

.cplan__grid > .cplan__field--full {
    flex: 1 1 100%;
}

.cplan__label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.62rem;
    font-weight: 400;
    color: var(--cplan-ink);
}

.cplan__label i {
    color: var(--cplan-primary);
    font-size: 0.62rem;
}

.cplan__input,
.cplan__select,
.cplan__textarea {
    width: 100%;
    border: 1px solid var(--cplan-border);
    background: #fff;
    color: var(--cplan-ink);
    border-radius: 10px;
    padding: 0.4rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 300;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.cplan__textarea {
    resize: vertical;
    min-height: 78px;
}

.cplan__input:focus,
.cplan__select:focus,
.cplan__textarea:focus {
    border-color: #c9a6ea;
    box-shadow: 0 0 0 3px rgba(119, 27, 200, 0.1);
}

.cplan__switch-field {
    justify-content: flex-end;
}

.cplan__switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 38px;
}

.cplan__switch-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cplan__switch-ui {
    width: 36px;
    height: 20px;
    border-radius: 999px;
    background: #e6e0ee;
    position: relative;
    flex-shrink: 0;
    transition: background 0.15s;
}

.cplan__switch-ui::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s;
}

.cplan__switch-input:checked + .cplan__switch-ui {
    background: var(--cplan-primary);
}

.cplan__switch-input:checked + .cplan__switch-ui::after {
    transform: translateX(16px);
}

.cplan__switch-text {
    font-size: 0.72rem;
    color: var(--cplan-ink);
}

.cplan__cycle {
    display: inline-flex;
    flex-wrap: wrap;
    background: #f6f2fb;
    border-radius: 999px;
    padding: 0.2rem;
    margin-bottom: 0.8rem;
    gap: 0.15rem;
}

.cplan__cycle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    border: none;
    background: transparent;
    color: var(--cplan-text);
    font-size: 0.62rem;
    font-weight: 400;
    border-radius: 999px;
    padding: 0.28rem 0.62rem;
    cursor: pointer;
}

.cplan__cycle-btn.is-active {
    background: var(--cplan-primary);
    color: #fff;
}

.cplan__status {
    display: inline-flex;
    align-self: flex-start;
    background: #f6f2fb;
    border-radius: 999px;
    padding: 0.2rem;
    gap: 0.15rem;
    min-height: 38px;
}

.cplan__status-btn {
    border: none;
    background: transparent;
    color: var(--cplan-text);
    font-size: 0.68rem;
    font-weight: 400;
    border-radius: 999px;
    padding: 0.32rem 0.75rem;
    cursor: pointer;
}

.cplan__status-btn.is-active {
    background: var(--cplan-primary);
    color: #fff;
}

.cplan__status-btn.is-active[data-status="inactive"] {
    background: #8a8496;
}

.cplan__combo {
    position: relative;
}

.cplan__combo-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 0.28rem);
    left: 0;
    right: 0;
    margin: 0;
    padding: 0.28rem;
    list-style: none;
    background: #fff;
    border: 1px solid var(--cplan-border);
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(80, 40, 130, 0.1);
    max-height: 190px;
    overflow: auto;
}

.cplan__combo-menu[hidden] {
    display: none;
}

.cplan__combo-item,
.cplan__combo-empty {
    display: block;
    width: 100%;
    border: none;
    background: transparent;
    text-align: start;
    border-radius: 8px;
    padding: 0.42rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 300;
    color: var(--cplan-ink);
}

.cplan__combo-item {
    cursor: pointer;
}

.cplan__combo-item:hover,
.cplan__combo-item.is-selected {
    background: var(--cplan-soft);
    color: var(--cplan-primary);
}

.cplan__combo-item[hidden],
.cplan__combo-empty[hidden] {
    display: none;
}

.cplan__combo-empty {
    color: var(--cplan-text);
}

.cplan__features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.cplan__feature {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1 1 calc(50% - 0.45rem);
    border: 1px solid var(--cplan-border);
    border-radius: 10px;
    padding: 0.5rem 0.6rem;
    cursor: pointer;
    background: #fff;
}

.cplan__feature:hover {
    border-color: #ddccef;
    background: #fcfaff;
}

.cplan__feature-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cplan__feature-box {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1px solid #d8cce8;
    color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    flex-shrink: 0;
}

.cplan__feature-input:checked + .cplan__feature-box {
    background: var(--cplan-primary);
    border-color: var(--cplan-primary);
    color: #fff;
}

#cplanCompanyWrap {
    margin-top: 0.55rem;
    padding: 0;
    background: transparent;
    border: none;
}

#cplanCompanyWrap[hidden] {
    display: none;
}

.cplan__preview-company {
    margin: 0.35rem 0 0;
    font-size: 0.62rem;
    font-weight: 400;
    color: var(--cplan-primary);
}

.cplan__feature-text {
    font-size: 0.68rem;
    font-weight: 300;
    color: var(--cplan-ink);
}

.cplan__add {
    display: flex;
    gap: 0.45rem;
    margin-top: 0.7rem;
}

.cplan__add-btn,
.cplan__btn {
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 400;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.cplan__add-btn {
    background: var(--cplan-soft);
    color: var(--cplan-primary);
    padding: 0 0.7rem;
    font-size: 0.64rem;
    flex-shrink: 0;
}

.cplan__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.cplan__btn {
    min-height: 32px;
    padding: 0 0.75rem;
    font-size: 0.68rem;
}

.cplan__btn--ghost {
    background: #fff;
    color: var(--cplan-ink);
    border: 1px solid var(--cplan-border);
}

.cplan__btn--primary {
    background: var(--cplan-primary);
    color: #fff;
}

.cplan__btn--primary:hover {
    background: var(--cplan-primary-deep);
}

.cplan__note {
    margin: 0;
    font-size: 0.72rem;
    color: #1a9c78;
    font-weight: 500;
}

.cplan__aside {
    position: sticky;
    top: 1rem;
    flex: 0 0 280px;
    width: 280px;
}

.cplan__preview {
    padding: 0.85rem;
    background: linear-gradient(180deg, #fbf8ff 0%, #fff 42%);
}

.cplan__preview.is-featured {
    border-color: var(--cplan-primary);
    box-shadow: 0 8px 22px rgba(119, 27, 200, 0.14);
}

.cplan__preview-top {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.45rem;
}

.cplan__preview-badge {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--cplan-soft);
    color: var(--cplan-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    flex-shrink: 0;
}

.cplan__preview-kicker {
    margin: 0;
    font-size: 0.56rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--cplan-primary);
}

.cplan__preview-name {
    margin: 0.05rem 0 0;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--cplan-ink);
}

.cplan__preview-status {
    display: inline-flex;
    margin-top: 0.2rem;
    padding: 0.08rem 0.4rem;
    border-radius: 999px;
    background: #e8f8f2;
    color: #1a9c78;
    font-size: 0.56rem;
    font-weight: 400;
}

.cplan__preview-status.is-inactive {
    background: #f3f1f5;
    color: #8a8496;
}

.cplan__preview-desc {
    margin: 0 0 0.6rem;
    font-size: 0.64rem;
    font-weight: 300;
    line-height: 1.45;
}

.cplan__preview-pricebox {
    background: #fff;
    border: 1px solid #efe8f6;
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
    margin-bottom: 0.65rem;
}

.cplan__preview-price {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 0.28rem;
    color: var(--cplan-ink);
}

.cplan__preview-price strong {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--cplan-primary-deep);
}

.cplan__preview-price span {
    font-size: 0.64rem;
    font-weight: 300;
}

.cplan__preview-trial {
    margin: 0.28rem 0 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.62rem;
    font-weight: 300;
    color: #1a9c78;
}

.cplan__preview-label {
    margin: 0 0 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.6rem;
    font-weight: 400;
    color: var(--cplan-text);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.cplan__preview-label i {
    color: var(--cplan-primary);
}

.cplan__preview-limits,
.cplan__preview-features {
    list-style: none;
    margin: 0 0 0.65rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.cplan__preview-limits {
    font-size: 0.66rem;
    font-weight: 300;
    color: var(--cplan-ink);
}

.cplan__preview-limits li,
.cplan__preview-features li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.cplan__preview-limits span {
    font-weight: 400;
    color: var(--cplan-primary);
}

.cplan__preview-limits i,
.cplan__preview-features i {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    background: var(--cplan-soft);
    color: var(--cplan-primary);
    font-size: 0.58rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cplan__preview-features li {
    font-size: 0.64rem;
    font-weight: 300;
    color: var(--cplan-ink);
}

@media (max-width: 1100px) {
    .cplan__layout {
        flex-direction: column-reverse;
    }

    .cplan__aside {
        position: static;
        order: -1;
        flex: none;
        width: 100%;
    }

    .cplan__grid--price > .cplan__field {
        flex: 1 1 calc(50% - 0.7rem);
    }
}

@media (max-width: 640px) {
    .cplan__layout {
        gap: 0.7rem;
    }

    .cplan__main {
        gap: 0.65rem;
    }

    .cplan__card {
        padding: 0.75rem 0.7rem;
    }

    .cplan__card-head {
        gap: 0.5rem;
        margin-bottom: 0.65rem;
    }

    .cplan__grid,
    .cplan__features {
        gap: 0.5rem;
    }

    .cplan__grid > .cplan__field,
    .cplan__grid--price > .cplan__field,
    .cplan__feature {
        flex: 1 1 100%;
    }

    .cplan__cycle {
        display: flex;
        width: 100%;
        border-radius: 12px;
    }

    .cplan__cycle-btn {
        flex: 1 1 0;
        justify-content: center;
        padding: 0.38rem 0.35rem;
        text-align: center;
    }

    .cplan__switch {
        min-height: 30px;
    }

    .cplan__preview {
        padding: 0.7rem;
    }
}

/* Subscription modal Select2 — match .cplan inputs (scoped). */
#subscriptionFormModal .cplan .csub-select2 + .select2-container {
    width: 100% !important;
    max-width: 100%;
}

#subscriptionFormModal .cplan .select2-container--bootstrap-5 .select2-selection,
#subscriptionFormModal .cplan .select2-container--default .select2-selection {
    min-height: 38px;
    border: 1px solid var(--cplan-border, #ece6f4) !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color 0.15s, box-shadow 0.15s;
}

#subscriptionFormModal .cplan .select2-container--bootstrap-5 .select2-selection--single,
#subscriptionFormModal .cplan .select2-container--default .select2-selection--single {
    padding: 0.15rem 0.55rem;
    display: flex;
    align-items: center;
}

#subscriptionFormModal .cplan .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered,
#subscriptionFormModal .cplan .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1.35 !important;
    color: var(--cplan-ink, #1a1a2e) !important;
    font-size: 0.72rem !important;
    font-weight: 300;
}

#subscriptionFormModal .cplan .select2-container--bootstrap-5 .select2-selection--single .select2-selection__placeholder,
#subscriptionFormModal .cplan .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #9a93a6 !important;
    font-size: 0.72rem;
    font-weight: 300;
}

#subscriptionFormModal .cplan .select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow,
#subscriptionFormModal .cplan .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    top: 0 !important;
    right: 0.45rem !important;
    display: flex;
    align-items: center;
}

#subscriptionFormModal .cplan .select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow b,
#subscriptionFormModal .cplan .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #9a93a6 transparent transparent transparent !important;
    margin: 0 !important;
}

#subscriptionFormModal .cplan .select2-container--bootstrap-5 .select2-selection__clear,
#subscriptionFormModal .cplan .select2-container--default .select2-selection__clear {
    margin: 0 0.35rem 0 0 !important;
    font-size: 0.85rem !important;
    color: #9a93a6 !important;
    float: none !important;
    position: static !important;
    order: 2;
}

#subscriptionFormModal .cplan .select2-container--bootstrap-5.select2-container--focus .select2-selection,
#subscriptionFormModal .cplan .select2-container--bootstrap-5.select2-container--open .select2-selection,
#subscriptionFormModal .cplan .select2-container--default.select2-container--focus .select2-selection,
#subscriptionFormModal .cplan .select2-container--default.select2-container--open .select2-selection {
    border-color: #c9a6ea !important;
    box-shadow: 0 0 0 3px rgba(119, 27, 200, 0.1) !important;
}

#subscriptionFormModal .select2-container--bootstrap-5 .select2-dropdown,
#subscriptionFormModal .select2-container--default .select2-dropdown,
.select2-container--bootstrap-5.csub-select2-dropdown .select2-dropdown,
.select2-dropdown.csub-select2-dropdown {
    border: 1px solid var(--cplan-border, #ece6f4) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 28px rgba(80, 40, 130, 0.12) !important;
    overflow: hidden;
    z-index: 2000 !important;
}

#subscriptionFormModal .select2-container--bootstrap-5 .select2-search--dropdown,
.select2-container--bootstrap-5.csub-select2-dropdown .select2-search--dropdown {
    padding: 0.55rem 0.6rem 0.35rem !important;
}

#subscriptionFormModal .select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field,
.select2-container--bootstrap-5.csub-select2-dropdown .select2-search--dropdown .select2-search__field {
    border: 1px solid var(--cplan-border, #ece6f4) !important;
    border-radius: 10px !important;
    padding: 0.4rem 0.7rem !important;
    font-size: 0.72rem !important;
    color: var(--cplan-ink, #1a1a2e) !important;
    outline: none !important;
    box-shadow: none !important;
}

#subscriptionFormModal .select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field:focus,
.select2-container--bootstrap-5.csub-select2-dropdown .select2-search--dropdown .select2-search__field:focus {
    border-color: #c9a6ea !important;
    box-shadow: 0 0 0 3px rgba(119, 27, 200, 0.1) !important;
}

#subscriptionFormModal .select2-container--bootstrap-5 .select2-results__options,
.select2-container--bootstrap-5.csub-select2-dropdown .select2-results__options {
    max-height: 220px;
    padding: 0.25rem 0.35rem 0.45rem;
}

#subscriptionFormModal .select2-container--bootstrap-5 .select2-results__option,
.select2-container--bootstrap-5.csub-select2-dropdown .select2-results__option {
    border-radius: 8px;
    margin: 0.1rem 0;
    padding: 0.42rem 0.65rem !important;
    font-size: 0.72rem !important;
    font-weight: 300;
    color: var(--cplan-ink, #1a1a2e) !important;
}

#subscriptionFormModal .select2-container--bootstrap-5 .select2-results__option--highlighted,
#subscriptionFormModal .select2-container--bootstrap-5 .select2-results__option--selected,
.select2-container--bootstrap-5.csub-select2-dropdown .select2-results__option--highlighted,
.select2-container--bootstrap-5.csub-select2-dropdown .select2-results__option--selected,
.select2-container--bootstrap-5 .select2-results__option--highlighted[aria-selected],
.select2-results__option--highlighted.select2-results__option--selectable {
    background: var(--cplan-soft, #f3ecff) !important;
    color: var(--cplan-primary, #771bc8) !important;
}

#subscriptionFormModal .cplan .select2-container--bootstrap-5.select2-container--disabled .select2-selection,
#subscriptionFormModal .cplan .select2-container--default.select2-container--disabled .select2-selection {
    background: #f7f5fa !important;
    cursor: not-allowed;
    opacity: 0.85;
}

/* Incoming tickets placeholders only. */
.manage-system-tutorials[data-mst-table="tickets-admin"] .mst-table-root .mst-toolbar .mst-toolbar__search-input::placeholder,
.tk-modal.tk-modal--reply textarea.form-control::placeholder {
    font-size: 0.58rem;
    font-weight: 300;
    color: #b0a8bc;
}

[data-mst-table="tickets-admin"] .tk-filter:not(.is-active) .tk-pill__text {
    font-size: 0.62rem;
    font-weight: 300;
    color: #9a93a6;
}
