:root {
  --accent: 0 0 0;
  --light-accent: rgb(245, 247, 251);
}

.breadcrumbs li.separator {
  margin: 0 1px;
  color: #9aa0a6;
  font-size: 11px;
}

body .grid-height:has(.dataTables_wrapper) {
  height: auto !important;
  overflow: inherit !important;
  margin: 0;
}

.grid-height:has(.table-design) {
  margin: 5px 0;
}

.dataTables_filter+.grid-height .table-design {
  display: table;
  margin: 0;
  border-spacing: 0;
  border: none;
  overflow: visible;
  min-width: 0;
}

.dataTables_filter+.grid-height {
  border-radius: var(--rounded-sm);
  overflow: auto;
  border: var(--border-width) solid var(--border-color);
  background: var(--bg-primary);
  width: 100%;
  border-spacing: inherit;
}

.group-title {
  h3 {
    font-size: 28px;
    font-weight: var(--font-semibold);
    line-height: 1.2;
    margin-bottom: 2px;
  }

  p {
    opacity: 0.8;
    font-size: var(--text-sm);
  }
}

.chartjs-legend {
  margin-bottom: 20px;

  span {
    min-width: 10px;
    height: 10px;
    display: inline-block;
    border-radius: 999px;
    margin-right: 6px;
  }

  ul {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: small;
  }
}

.profile-img {
  margin: calc(var(--space-3) * -1);
  aspect-ratio: 1/1.3;
  overflow: hidden;
  min-height: 200px;
}

.cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-info {
  flex: 1;
}

.profile-data {
  position: sticky;
  top: 15px;
  height: 100%;
  min-width: 280px;
  max-width: 280px;
}

.profile-container {
  display: inline-block;
}

.profile-toggle {
  img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    border: var(--border-width) solid var(--border-color);
    transition: border-color 0.2s;
    object-fit: cover;

    &:hover {
      border-color: var(--accent);
    }
  }
}

/* vacancy page */
.content:has(.career-portal) {
  margin: 0;
}

.career-portal {
  max-width: 800px;
  margin: auto;
  padding-block: 2rem;

  .nav-logo {
    text-align: center;
    margin-bottom: 40px;
  }

  h1 {
    font-size: large;
    margin-bottom: 15px;
    opacity: 0.8;
    font-weight: 400;
  }
}

.job-body .img-c {
  width: 100px;
  height: 100px;
  overflow: hidden;
}

.fix_body {
  position: absolute;
  right: 0;
  top: 0;
  font-size: var(--text-xs);
  padding: 6px 12px;
  background: rgba(var(--foreground), 0.04);
}

.job-content li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-sm);
  padding-block: 4px;
  opacity: .8;
}

body .job-body .job-content .material-symbols-rounded {
  font-size: 20px;
}

.column-force {
  grid-column: none;
  margin-left: -8px;
}

.row:has(.col-sm-12 .table-design) {
  flex: 1;
  display: flex;
  flex-direction: column;
}

body {
  .select2-container--default {
    .select2-selection--multiple {
      .select2-selection__rendered {
        padding: 0;
        display: flex;
        align-items: center;
        gap: 4px;
        overflow: auto;
        scrollbar-width: none;

        li {
          margin: 0;
        }
      }
    }

    .select2-search--inline {
      .select2-search__field {
        margin: 0;
      }
    }
  }
}

body .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: rgba(var(--foreground), 1);
}

.select2-results__option {
    font-size: var(--text-sm);
}

.select2-container {
  width: 100% !important;
}

.dataTables_empty {
  opacity: .5;
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination {
  display: inline-flex;

  li {
    border: solid 1px rgba(var(--foreground), 0.1);
    font-size: calc(var(--text-sm) - 1px);
    padding: 6px 16px;
    text-align: center;
    font-weight: var(--font-semibold);
    cursor: pointer;

    &.active {
      color: rgba(var(--foreground));
      opacity: 1;
      background: rgba(var(--foreground), 0.04);
    }

    &:hover {
      background: rgba(var(--foreground), 0.04);
    }

    &.disabled {
      a {
        opacity: 0.5;
      }
    }

    &:first-child {
      border-top-left-radius: calc(var(--rounded-sm) - 1px);
      border-bottom-left-radius: calc(var(--rounded-sm) - 1px);
    }

    &:last-child {
      border-top-right-radius: calc(var(--rounded-sm) - 1px);
      border-bottom-right-radius: calc(var(--rounded-sm) - 1px);
    }
  }
}

.dataTables_filter {
  margin-top: -42px;

  input {
    background: transparent;
    padding: 6px var(--space-3);
  }
}

.offer-letter .fields {
  --grid-scale: 180px;
}

.eye-modal-btn .emb-icon {
  position: absolute;
  opacity: 0;
  font-size: xx-large;
}

.eye-modal-btn {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.eye-modal-btn:after {
  background: rgba(var(--foreground), 0.05);
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.eye-modal-btn:hover:after {
  opacity: 1;
}

.eye-modal-btn:hover .emb-icon {
  opacity: 1;
}
.apply-page .fields,
.contact-page .fields {
  grid-template-columns: 1fr 1fr 1fr;
}

body.change-password-page .sidebar{
  display: none;
}

/* media */
@media (max-width: 1600px) {
  .group-title h3 {
    font-size: x-large;
  }
  .group-title p {
    font-size: small;
  }
  .calendar-zoom{
    zoom: .8;
  }
}

@media (max-width: 1199px) {
  .profile-data {
    position: initial;
  }

  .filter-field .md-full {
    width: max-content;
  }

  .account-overview {
    flex-direction: column;
  }

  .account-overview .profile-data {
    flex-direction: row;
    max-width: none;
    gap: 1rem;
  }

  .account-overview .profile-img {
    max-width: 200px;
    margin-right: 0;
  }
}

@media (max-width: 991px) {

  .profile-menu {
    display: flex;
    height: var(--h-component);
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }

  .column-force {
    grid-column: auto;
    justify-content: center;
    margin: 0;
  }

  .filter-field,
  .contact-help {
    flex-direction: column;
  }

  .profile-menu {
    display: flex;
    height: var(--h-component);
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }

  .profile-menu .mt-4 {
    margin: 0;
  }

  .dataTables_paginate .paginate_button.page-item {
    display: none;
  }

  .dataTables_paginate .paginate_button.previous,
  .dataTables_paginate .paginate_button.next {
    display: block;
  }

}

@media (max-width:600px) {
  .job-body.card.larger {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: calc(var(--space-5) + 20px);
  }

  .job-content li {
    justify-content: center;
  }

  .account-overview .profile-data {
    flex-direction: column;
  }

  .account-overview .profile-img {
    max-width: 100%;
    aspect-ratio: auto;
    margin: 0;
  }
}