/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.menu .app-brand.demo {
  height: 64px;
  margin-top: 12px;
}

.app-brand-logo.demo svg {
  width: 22px;
  height: 38px;
}

.app-brand-text.demo {
  font-size: 1.75rem;
  letter-spacing: -0.5px;
}

/* ! For .layout-navbar-fixed added fix padding top to .layout-page */
/* Detached navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 74px !important;
}
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}
.docs-page .layout-navbar-fixed.layout-wrapper:not(.layout-without-menu) .layout-page,
.docs-page .layout-menu-fixed.layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 62px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/* Recruitment workspace shell */
.arm-shell {
  background: #f5f5f9 !important;
  color: #4b5563;
}

.arm-topbar {
  position: relative;
  width: 100%;
  min-height: 72px;
  flex: 0 0 72px;
  background: #fff;
  border-bottom: 1px solid #e7e7eb;
  box-shadow: none;
}

.arm-topbar .navbar-brand {
  margin-inline-end: auto;
}

.arm-topbar > .container-xxl {
  padding-block: 0.75rem;
}

.arm-topbar .app-brand-text {
  color: #3f4856 !important;
}

.arm-content-wrapper {
  min-height: calc(100vh - 72px);
  background: #f5f5f9;
}

.arm-main-nav {
  position: relative;
  display: block;
  width: 100%;
  min-width: 100%;
  min-height: 64px;
  flex: 0 0 64px;
  background: #fff;
  box-shadow: 0 3px 8px rgba(34, 48, 62, 0.06);
}

.arm-main-nav .menu-inner {
  display: flex;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0.75rem 0;
  gap: 0.5rem;
  justify-content: space-between;
}

.arm-main-nav .menu-item {
  min-width: 0;
  flex: 1 1 0;
  padding-inline: 0;
}

.arm-main-nav .menu-link {
  display: flex;
  width: 100%;
  height: 40px;
  min-height: 40px;
  align-items: center;
  padding-block: 0.5rem;
}

.arm-main-nav .menu-item.active > .menu-link {
  background: var(--bs-primary-bg-subtle);
  color: var(--bs-primary);
}

.arm-content {
  width: 100%;
  padding-top: 1.75rem;
}

.arm-page-heading {
  color: #364152;
  font-size: 1.75rem;
  font-weight: 500;
}

.arm-vacancies-card {
  overflow: hidden;
  border: 0;
  border-radius: 0.5rem;
  box-shadow: 0 3px 10px rgba(34, 48, 62, 0.08);
}

.arm-vacancies-table {
  margin-bottom: 0;
}

.arm-vacancies-table > :not(caption) > * > * {
  padding: 1.1rem 1.25rem;
  border-bottom-color: #e7e7eb;
  vertical-align: middle;
}

.arm-vacancies-table thead th {
  color: #4b5563;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
}

.arm-vacancies-table tbody tr:last-child td {
  border-bottom: 0;
}

.arm-vacancy-title {
  color: #4b5563;
  font-weight: 600;
}

.arm-add-candidate-button {
  min-width: 118px;
}

.arm-footer {
  background: transparent;
  font-size: 0.875rem;
}

/* Candidate form */
.candidate-modal-dialog {
  max-width: 760px;
}

.candidate-modal-content {
  border: 0;
  border-radius: 0.65rem;
}

#add-candidate-form {
  display: contents;
}

.candidate-modal-header {
  padding: 2.25rem 2.25rem 1.25rem;
  border-bottom: 0;
}

.candidate-modal-header .modal-title {
  color: #364152;
  font-size: 1.75rem;
  font-weight: 500;
}

.candidate-modal-body {
  padding: 1.25rem 2.25rem;
}

.candidate-form-section {
  margin-bottom: 2rem;
}

.candidate-form-section h5,
.candidate-modal-body > section > h5 {
  color: #3f4856;
  font-size: 1.05rem;
  font-weight: 500;
}

#candidate-rating i {
  margin-inline-end: 0.35rem;
  font-size: 1.6rem;
}

.candidate-resume-dropzone {
  display: flex;
  min-height: 120px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border: 1px dashed #8b95a5;
  border-radius: 0.4rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.candidate-resume-dropzone.is-dragging {
  border-color: var(--bs-primary);
  background: var(--bs-primary-bg-subtle);
}

.candidate-resume-dropzone.has-file {
  border-color: var(--bs-primary);
  background: color-mix(in srgb, var(--bs-primary-bg-subtle) 55%, transparent);
}

.candidate-resume-empty-state,
.candidate-resume-selected-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
}

.candidate-resume-selected-state strong {
  max-width: 100%;
  overflow: hidden;
  color: var(--bs-heading-color);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.candidate-resume-help {
  margin-top: 0.5rem;
}

.candidate-resume-dropzone.is-invalid-dropzone {
  border-color: var(--bs-danger);
}

.candidate-red-flags {
  max-height: 255px;
  overflow-y: auto;
  padding: 0.25rem 1rem 0.25rem 1.15rem;
  scrollbar-color: #d5d8de transparent;
  scrollbar-width: thin;
}

.candidate-red-flag-item {
  margin-bottom: 1rem;
}

.candidate-red-flag-item:last-child {
  margin-bottom: 0;
}

.candidate-prescreening-editor {
  min-height: 180px;
}

.candidate-prescreening-editor .ql-editor {
  min-height: 135px;
}

.candidate-modal-footer {
  padding: 0.75rem 2.25rem 2.25rem;
  border-top: 0;
}

.candidate-questionnaires-state {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 1rem;
}

.candidate-saved-message {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--bs-success);
  font-weight: 500;
}

.candidate-questionnaire-link {
  padding: 1rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.45rem;
  background: var(--bs-body-bg);
}

.candidate-questionnaire-link .input-group .btn {
  display: inline-flex;
  min-width: 46px;
  align-items: center;
  justify-content: center;
}

.candidate-questionnaire-form {
  display: flex;
  align-items: end;
  gap: 1rem;
}

@media (max-width: 767.98px) {
  .candidate-modal-dialog {
    margin: 0.75rem;
  }

  .candidate-modal-header,
  .candidate-modal-body,
  .candidate-modal-footer {
    padding-inline: 1.25rem;
  }

  .candidate-questionnaire-form {
    align-items: stretch;
    flex-direction: column;
  }

  .candidate-questionnaire-form .btn {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .arm-main-nav .menu-item {
    width: auto !important;
    min-width: 15rem;
  }

  .arm-vacancies-table > :not(caption) > * > * {
    padding-inline: 1rem;
  }
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
  #dropdown-variation-demo .btn-group .text-truncate {
    width: 231px;
    position: relative;
  }
  #dropdown-variation-demo .btn-group .text-truncate::after {
    position: absolute;
    top: 45%;
    right: 0.65rem;
  }
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}

.dropzone {
  border: 2px dashed #007bff;
  padding: 10px;
  text-align: center;
  cursor: pointer;
}

.dz-message {
  pointer-events: none;
}
.dz-message span {
  pointer-events: auto;
}

@media (min-width: 576px) {
  .dz-preview {
    display: inline-block;
    width: unset !important;
  }
}

.dz-preview {
  margin: 0;
  position: relative;
}
.dz-filename {
  position: absolute;
  top: 5px;
  background: transparent !important;
  color: red !important;
  font-weight: bold;
}

.dz-size {
  position: absolute;
  padding: 0;
  bottom: 35px;
  left: 10px;
  background: transparent !important;
  color: red !important;
  font-size: 0.75rem;
  font-weight: bold;
}

html:not([dir=rtl]) .dz-preview {
  margin-right: .5rem !important;
  margin-bottom: .5rem !important;
}

.dz-error .dz-error-mark {
  display: none !important;
}

.dz-error-message {
  background: rgba(255, 62, 29, 0.8);
  border-radius: 0.375rem !important;
  z-index: 20;
}
.dz-remove {
  position: relative;
  z-index: 50 !important;
}

.dz-image img {
  position: relative;
  max-width: 12rem;
  max-height: 12rem;
  width: 12rem;
  height: 12rem;
  border-top-left-radius: 3%;
  border-top-right-radius: 3%;
  object-fit: cover;
}

.safe-rich-text > :last-child {
  margin-bottom: 0;
}

.safe-rich-text ul,
.safe-rich-text ol {
  margin-bottom: .75rem;
  padding-inline-start: 1.5rem;
}

.safe-rich-text p {
  margin-bottom: .75rem;
}

.safe-rich-text a {
  overflow-wrap: anywhere;
}
