/* Fixed 1024px recruitment CV layout, matched to the approved visual template. */
@font-face {
  font-family: "Mustagel CV Tajawal";
  src: url("../../wp-content/themes/avantage/fonts/Tajawal-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: block;
}

.cv-profile-export,
.mustagel-cv,
.mustagel-cv * {
  box-sizing: border-box;
}

.cv-profile-export {
  --cv-scale: 1;
  width: 1024px;
  flex: 0 0 1024px;
  margin: 0 auto;
  overflow: visible;
  border: 0;
  background: #fff;
  box-shadow: 0 18px 50px rgba(6, 48, 118, .12);
  line-height: normal;
  transform: scale(var(--cv-scale));
  transform-origin: top center;
}

.mustagel-cv {
  width: 1024px;
  overflow: hidden;
  background: #fff;
  color: #151a27;
  font-family: "Mustagel CV Tajawal", Arial, sans-serif;
  line-height: normal;
}

/* The public site applies a highly specific RTL font rule to every element.
   Keep the certificate self-contained so its typography is identical in the
   public and administration pages. */
.mustagel-cv,
.mustagel-cv * {
  font-family: "Mustagel CV Tajawal", Arial, sans-serif !important;
}

.mustagel-cv__brand,
.mustagel-cv__footer {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.mustagel-cv__footer {
  margin-top: 3px;
}

.mustagel-cv__brand img,
.mustagel-cv__footer img {
  display: block;
  width: 1024px;
  height: auto;
}

.mustagel-cv__layout {
  display: grid;
  grid-template-columns: 29.1% minmax(0, 1fr);
  gap: 16px;
  padding: 12px 17px 12px;
  margin-bottom: 0 !important;
  direction: ltr;
  line-height: normal !important;
}

.mustagel-cv__photos {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 21px 15px;
  border: 2px solid #0b398a;
  border-radius: 25px;
  background: #fff;
}

.mustagel-cv__portrait-frame {
  display: grid;
  width: 202px;
  height: 202px;
  max-width: 100%;
  place-items: center;
  overflow: hidden;
  border: 2px solid #0b398a;
  border-radius: 50%;
  background: #fff;
}

.mustagel-cv__portrait,
.mustagel-cv__full-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mustagel-cv__portrait {
  object-position: center top;
}

.mustagel-cv__photo-placeholder {
  padding: 18px;
  color: #6d7789;
  font-size: 15px;
  text-align: center;
}

.mustagel-cv__full-photo-frame {
  width: 100%;
  height: var(--cv-full-photo-height, 648px);
  overflow: hidden;
  border-radius: 0;
  background: #fff;
}

.mustagel-cv__full-photo {
  object-position: center top;
}

.mustagel-cv__content {
  min-width: 0;
  direction: rtl;
}

.mustagel-cv__section+.mustagel-cv__section {
  margin-top: 15px;
}

.mustagel-cv__section-title {
  display: flex;
  min-height: 70px;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 7px 22px;
  direction: ltr;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(105deg, #062e79 0%, #0d4b9c 100%);
  color: #fff;
  font-size: 23px;
  font-weight: 500;
  line-height: 1;
}

.mustagel-cv__section-title small {
  display: block;
  direction: ltr;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.mustagel-cv__section-title-ar {
  margin-left: auto;
  direction: rtl;
  color: #fff;
  font-family: "Mustagel CV Tajawal", Arial, sans-serif;
  font-size: 24px;
  font-weight: 500;
  white-space: nowrap;
}

.mustagel-cv__title-icon {
  display: grid;
  width: 46px;
  height: 47px;
  flex: 0 0 46px;
  place-items: center;
  border-radius: 11px;
  background: #fff;
  color: #083883;
}

.mustagel-cv__title-icon.is-person {
  border-radius: 50%;
}

.mustagel-cv__title-icon svg {
  width: 31px;
  height: 31px;
  fill: currentColor;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.mustagel-cv__title-icon.is-person svg {
  width: 36px;
  height: 36px;
  stroke-width: 0;
}

.mustagel-cv__data-card {
  overflow: hidden;
  border: 1px solid #dce0e8;
  border-top: 0;
  border-radius: 0 0 17px 17px;
  background: #fff;
}

.mustagel-cv__personal-table,
.mustagel-cv__employment-table {
  width: 100%;
  margin: 0 !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  table-layout: fixed;
  line-height: normal !important;
}

.mustagel-cv__personal-table {
  direction: ltr;
  height: var(--cv-personal-table-height, 690px);
}

.mustagel-cv__personal-card {
  height: calc(var(--cv-personal-table-height, 690px) + 2px);
}

.mustagel-cv__employment-card--0 {
  height: 80px;
}

.mustagel-cv__employment-card--1 {
  height: 114px;
}

.mustagel-cv__employment-card--2 {
  height: 148px;
}

.mustagel-cv__employment-card--3 {
  height: 182px;
}

.mustagel-cv__personal-table tr+tr {
  border-top: 1px solid #e5e6eb;
}

.mustagel-cv__personal-table th,
.mustagel-cv__personal-table td {
  height: 46px;
  padding: 6px 17px;
  vertical-align: middle;
  background: #fff;
  font-size: 16px;
  line-height: 1.25;
}

.mustagel-cv__personal-table th {
  width: 32%;
  color: #093789;
  font-family: Arial, sans-serif;
  font-weight: 700;
  text-align: left;
}

.mustagel-cv__personal-table td {
  width: 36%;
  color: #121621;
  font-family: Arial, "Mustagel CV Tajawal", sans-serif;
  font-size: 15px;
  text-align: center;
}

.mustagel-cv__personal-table .mustagel-cv__ar-label {
  direction: rtl;
  font-family: "Mustagel CV Tajawal", Arial, sans-serif;
  font-size: 18px;
  font-weight: 500;
  text-align: right;
}

.mustagel-cv__employment-table {
  direction: rtl;
}

.mustagel-cv__employment-section .mustagel-cv__section-title {
  min-height: 56px;
  height: 56px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.mustagel-cv__employment-table th,
.mustagel-cv__employment-table td {
  width: 25%;
  border-inline-start: 1px solid #e2e5ec;
  text-align: center;
}

.mustagel-cv__employment-table th:last-child,
.mustagel-cv__employment-table td:last-child {
  border-inline-start: 0;
}

.mustagel-cv__employment-table th {
  height: 78px;
  padding: 7px 5px 5px;
  color: #083883;
  background: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.1;
}

.mustagel-cv__employment-table th > img {
  display: block;
  width: 147px;
  max-width: 100%;
  height: 62px;
  margin: 0 auto;
  object-fit: contain;
}

.mustagel-cv__employment-table th span {
  display: block;
  margin-top: 3px;
  direction: ltr;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
}

.mustagel-cv__employment-icon {
  display: block;
  width: 31px;
  height: 31px;
  margin: 0 auto 3px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.mustagel-cv__employment-table tbody tr+tr {
  border-top: 1px solid #e2e5ec;
}

.mustagel-cv__employment-table td {
  height: 34px;
  padding: 6px 4px;
  direction: ltr;
  color: #121621;
  font-family: Arial, "Mustagel CV Tajawal", sans-serif;
  font-size: 13px;
  line-height: 1;
}

.mustagel-cv__skills-section {
  margin: 0 17px 5px;
  overflow: hidden;
  border: 1px solid #dce0e8;
  border-radius: 17px;
  background: #fff;
}

.mustagel-cv__skills-section .mustagel-cv__section-title {
  min-height: 56px;
  height: 56px;
  padding-top: 5px;
  padding-bottom: 5px;
  border-radius: 16px 16px 0 0;
}

.mustagel-cv__skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 16px;
  padding: 6px 14px 7px;
  direction: ltr;
}

.mustagel-cv__skill {
  display: grid;
  grid-template-columns: 34px 39px minmax(0, 1fr);
  min-height: 41px;
  align-items: center;
  gap: 7px;
  padding: 3px 10px;
  direction: ltr;
  border-radius: 11px;
  background: #2461aa;
  color: #fff;
}

.mustagel-cv__skill-status {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #1768b3;
  font-family: Arial, sans-serif;
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
}

.mustagel-cv__skill.is-disabled .mustagel-cv__skill-status {
  color: #173c79;
}

.mustagel-cv__skill-icon {
  display: block;
  width: 35px;
  height: 35px;
  border-radius: 6px;
  object-fit: cover;
}

.mustagel-cv__skill-label {
  min-width: 0;
  direction: rtl;
  color: #fff;
  line-height: 1.02;
  text-align: right;
}

.mustagel-cv__skill-label strong,
.mustagel-cv__skill-label small {
  display: block;
  overflow: hidden;
  color: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mustagel-cv__skill-label strong {
  font-size: 13px;
  font-weight: 500;
}

.mustagel-cv__skill-label small {
  margin-top: 2px;
  direction: ltr;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-align: left;
}

.cv-profile-fit {
  display: flex;
  width: 100%;
  max-width: 1024px;
  min-width: 0;
  min-height: 1px;
  margin: 0 auto;
  align-items: flex-start;
  justify-content: center;
  overflow: visible;
}

.cv-admin-page {
  min-width: 0;
  margin: 0;
  padding: 22px;
  background: #f2f6fc;
  color: #18233d;
  font-family: "Mustagel CV Tajawal", Arial, sans-serif;
}

.cv-admin-toolbar {
  display: flex;
  width: min(100%, 1024px);
  margin: 0 auto 18px;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.cv-admin-toolbar button {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  background: #0a3c8d;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 16px;
  cursor: pointer;
}

.cv-admin-toolbar button.is-secondary {
  border: 1px solid #cbd9ee;
  background: #fff;
  color: #0a3c8d;
}

.cv-admin-toolbar button:disabled {
  cursor: wait;
  opacity: .65;
}

.cv-admin-status {
  color: #526277;
  font-size: 14px;
  font-weight: 700;
}

/* The approved CV is one fixed 1024px artwork.  On a narrow screen it is
   scaled as a complete sheet by the page script, rather than reflowing into a
   different mobile design. */
@media (max-width: 760px) {
  .cv-profile-fit,
  .cv-certificate-fit {
    max-width: 100%;
    min-width: 0;
  }

  .cv-admin-page {
    padding: 12px 0;
  }

  .cv-admin-toolbar {
    width: calc(100% - 24px);
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media print {

  .cv-admin-toolbar,
  .cv-download-toolbar {
    display: none !important;
  }

  .cv-admin-page {
    padding: 0;
    background: #fff;
  }

  .cv-profile-export {
    width: 100%;
    border: 0;
    box-shadow: none;
    transform: none !important;
  }
}
