@page {
  size: A4 landscape;
  margin: 10mm;
}

@media print {
  .MuiDrawer-root, .print-hide {
    display: none !important;
  }

  .print-only {
    display: flex !important;
  }

  .candidate-print-root {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .candidate-print-root .MuiPaper-root,
  .candidate-print-root .MuiCard-root,
  .candidate-print-root .MuiCardContent-root {
    box-shadow: none !important;
    border-radius: 8px !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .candidate-print-root .MuiPaper-root,
  .candidate-print-root .MuiCardContent-root {
    padding: 10px !important;
  }

  .candidate-print-root .MuiTypography-h4,
  .candidate-print-root .MuiTypography-h5,
  .candidate-print-root .MuiTypography-h6 {
    font-size: 1.22rem !important;
    line-height: 1.24 !important;
  }

  .candidate-print-root .MuiTypography-subtitle1,
  .candidate-print-root .MuiTypography-subtitle2,
  .candidate-print-root .MuiTypography-body1,
  .candidate-print-root .MuiTypography-body2,
  .candidate-print-root .MuiTypography-caption,
  .candidate-print-root .MuiTypography-overline {
    font-size: 0.96rem !important;
    line-height: 1.32 !important;
  }

  .candidate-print-root .MuiChip-root {
    max-width: 100% !important;
    min-height: 20px !important;
    height: auto !important;
  }

  .candidate-print-root .MuiChip-label {
    font-size: 0.84rem !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  .candidate-print-root .MuiLinearProgress-root {
    height: 4px !important;
  }

  .candidate-print-root .MuiStack-root {
    gap: 6px !important;
  }

  .candidate-print-root .MuiDivider-root {
    margin-top: 6px !important;
    margin-bottom: 6px !important;
  }

  body, #root, main, .MuiContainer-root {
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    background: white !important;
  }

  .MuiPaper-root,
  .MuiCard-root {
    box-shadow: none !important;
  }

  .MuiTableContainer-root {
    overflow: visible !important;
    max-width: 100% !important;
    border-radius: 0 !important;
  }

  .MuiTable-root {
    width: 100% !important;
    table-layout: fixed;
  }

  .MuiTableCell-root {
    padding: 4px 6px !important;
    font-size: 12.25px !important;
    line-height: 1.32 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .MuiChip-root {
    max-width: 100%;
    height: auto !important;
  }

  .MuiChip-label {
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  /* Hide include/checkbox column in print to reclaim width. */
  .MuiTable-root th:nth-child(1),
  .MuiTable-root td:nth-child(1) {
    display: none !important;
  }
}

.candidate-pack-export-mode .MuiDrawer-root,
.candidate-pack-export-mode .print-hide {
  display: none !important;
}

.candidate-pack-export-mode .print-only {
  display: flex !important;
}

.candidate-pack-export-mode .candidate-print-root {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.candidate-pack-export-mode .candidate-print-root,
.candidate-pack-export-mode .candidate-print-root * {
  box-sizing: border-box;
}

.candidate-pack-export-mode .candidate-print-root .MuiPaper-root,
.candidate-pack-export-mode .candidate-print-root .MuiCard-root,
.candidate-pack-export-mode .candidate-print-root .MuiCardContent-root {
  box-shadow: none !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  border-color: #d8e0e5 !important;
}

.candidate-pack-export-mode .candidate-print-root .MuiPaper-root,
.candidate-pack-export-mode .candidate-print-root .MuiCardContent-root {
  padding: 9px !important;
}

.candidate-pack-export-mode .candidate-pack-section-header {
  background: #ffffff !important;
}

.candidate-pack-export-mode .candidate-pack-section-header .MuiStack-root {
  gap: 6px !important;
}

.candidate-pack-export-mode .candidate-pack-personal-summary {
  padding: 8px !important;
  border: none !important;
}

.candidate-pack-export-mode .candidate-pack-brief-top {
  background-color: transparent !important;
  border-color: transparent !important;
}

.candidate-pack-export-mode .candidate-pack-brief-main {
  gap: 9px !important;
}

.candidate-pack-export-mode .candidate-pack-brief-count-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.candidate-pack-export-mode .candidate-pack-brief-count-card {
  min-width: 150px !important;
  border: none !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.candidate-pack-export-mode .candidate-pack-section-header .MuiDivider-root {
  margin-top: 4px !important;
  margin-bottom: 4px !important;
}

.candidate-pack-export-mode .candidate-pack-profile-facts-grid {
  column-gap: 8px !important;
  row-gap: 2px !important;
}

.candidate-pack-export-mode .candidate-pack-profile-fact-row {
  grid-template-columns: minmax(84px, 42%) minmax(0, 1fr) !important;
  column-gap: 6px !important;
  align-items: start !important;
}

.candidate-pack-export-mode .candidate-pack-profile-fact-row .MuiTypography-root,
.candidate-pack-export-mode .candidate-pack-brief-count-card .MuiTypography-root,
.candidate-pack-export-mode .candidate-pack-brief-main .MuiTypography-root {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

.candidate-pack-export-mode .candidate-pack-section-title {
  margin: 24px 0 12px 1px !important;
  font-size: 1.42rem !important;
  line-height: 1.18 !important;
  letter-spacing: 0.68px !important;
  text-transform: uppercase !important;
  color: #4a5d66 !important;
  font-weight: 800 !important;
}

.candidate-pack-export-mode .candidate-pack-section-capability-matrix,
.candidate-pack-export-mode .candidate-pack-section-behavioral-patterns,
.candidate-pack-export-mode .candidate-pack-section-signal-highlights,
.candidate-pack-export-mode .candidate-pack-section-recruiter-notes,
.candidate-pack-export-mode .candidate-pack-section-assessment-activity > .MuiPaper-root {
  padding-top: 13px !important;
}

.candidate-pack-export-mode .candidate-pack-capability-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 7px !important;
}

.candidate-pack-export-mode .candidate-pack-capability-card {
  break-inside: avoid;
  page-break-inside: avoid;
}

.candidate-pack-export-mode .candidate-print-root .MuiTypography-h4,
.candidate-pack-export-mode .candidate-print-root .MuiTypography-h5,
.candidate-pack-export-mode .candidate-print-root .MuiTypography-h6 {
  font-size: 1.72rem !important;
  line-height: 1.32 !important;
}

.candidate-pack-export-mode .candidate-print-root .MuiTypography-subtitle1,
.candidate-pack-export-mode .candidate-print-root .MuiTypography-subtitle2,
.candidate-pack-export-mode .candidate-print-root .MuiTypography-body1,
.candidate-pack-export-mode .candidate-print-root .MuiTypography-body2,
.candidate-pack-export-mode .candidate-print-root .MuiTypography-caption,
.candidate-pack-export-mode .candidate-print-root .MuiTypography-overline {
  font-size: 1.3rem !important;
  line-height: 1.48 !important;
}

.candidate-pack-export-mode .candidate-print-root .MuiChip-root {
  max-width: 100% !important;
  min-height: 20px !important;
  height: auto !important;
}

.candidate-pack-export-mode .candidate-print-root .MuiChip-label {
  font-size: 1.16rem !important;
  line-height: 1.38 !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

.candidate-pack-export-mode .candidate-print-root .MuiLinearProgress-root {
  height: 4px !important;
}

.candidate-pack-export-mode .candidate-print-root .MuiStack-root {
  gap: 5px !important;
}

.candidate-pack-export-mode .candidate-print-root .MuiDivider-root {
  margin-top: 4px !important;
  margin-bottom: 4px !important;
}

.candidate-pack-export-mode .candidate-print-root .MuiTableContainer-root {
  overflow: visible !important;
  max-width: 100% !important;
  border-radius: 0 !important;
}

.candidate-pack-export-mode .candidate-print-root .MuiTable-root {
  width: 100% !important;
  table-layout: fixed;
}

.candidate-pack-export-mode .candidate-print-root .MuiTableCell-root {
  padding: 6px 7px !important;
  font-size: 16px !important;
  line-height: 1.52 !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.candidate-pack-export-mode .candidate-pack-section-recruiter-notes .MuiTypography-root {
  font-size: 1.3rem !important;
  line-height: 1.6 !important;
}

.candidate-pack-export-mode .candidate-pack-behavior-card-head {
  margin-bottom: 7px !important;
}

.candidate-pack-export-mode .candidate-print-root .MuiTable-root th:nth-child(1),
.candidate-pack-export-mode .candidate-print-root .MuiTable-root td:nth-child(1) {
  display: none !important;
}
