html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}



/* File Upload */
.file_input {
  justify-content: space-between;
  display: flex;
  flex-direction: column;
}

.file_input .btn_close {
  position: absolute;
  top: 8px;
  right: 8px;
}


[dir="rtl"] .file_input .btn_close {
  left: 8px;
}

.file_input .box {
  background: rgb(250, 250, 250);

  border: 1px dashed rgb(232, 232, 232);
  /* border: 1px dashed #848484; */
  border-radius: 14px;
  height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
}

.file_input .box * {
  cursor: pointer;
}

.file_input .box .drop_here,
.file_input .box .invalid,
.file_input .box .failed {
  display: none;
}

.file_input.is_drag .box {
  border: 2px solid #848484;
}

.file_input.invalid_drag .box {
  border: 2px dashed #dc3545;
}

.file_input.is_drag .box .file_icon_lable,
.file_input.invalid_drag .box .file_icon_lable {
  display: none !important;
  color: #2C2C2C;
}

.file_input.is_drag .drop_here,
.file_input.invalid_drag .invalid,
.file_input.is_drag .box .drop_here,
.file_input.upload_failed .box .failed {
  display: block;
  pointer-events: none;
}

.file_input.upload_failed .file_icon_lable label {
  display: none;
}

.file_input.is_uploading .box,
.file_input.has_file .box,
.file_input.has_image .box {
  display: none;
}

.file_input .uploading,
.file_input .preview {
  display: none;
  background: #EFF1F4;
  position: relative;
  border: 1px solid #848484;
  border-radius: 14px;
  height: 140px;
}

.file_input.is_uploading .uploading {
  display: flex;
  justify-content: center;
  align-items: center;
}

.file_input.has_image .preview,
.file_input.has_file .preview {
  display: block;
}

.file_input .uploading .progress {
  height: 100%;
  width: 100%;
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  border-radius: 14px;
  display: grid;
  place-items: center;
}

.file_input .uploading .progress .circle {
  position: relative;
  height: 80px;
  width: 80px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#4d5bf9 0deg, #cadcff 0deg)
}

.file_input .uploading .progress .circle:before {
  content: "";
  position: absolute;
  height: 84%;
  width: 84%;
  border-radius: 50%;
  background-color: #EFF1F4;
}

.file_input .uploading .progress .circle .value {
  position: relative;
  font-size: 1.25rem;
  color: #2C2C2C;
}

.file_input .preview img {
  display: none;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
}

.file_input .preview .pdf {
  display: none;
}

.file_icon_lable {
  display: flex;
  pointer-events: none;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.file_icon_lable i {
  color: #2C2C2C;
  font-size: 32px;
  margin-bottom: 4px;
}

.file_icon_lable span {
  color: #848484;
  max-width: 75%;
  text-align: center;
  word-wrap: break-word;
}

.file_input.has_image .preview img {
  display: block;
}

.file_input.has_file .preview .pdf {
  display: flex;
}

.declaration:has(.is-valid) .form-label,
.file_input:has(.is-valid) .form-label,
.success_label {
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.125 9.75L10.6219 15L7.875 12.375' stroke='%234FA55C' stroke-width='2.0' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z' stroke='%234FA55C' stroke-width='2.0' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
}

.declaration:has(.is-invalid) .form-label,
.file_input:has(.is-invalid) .form-label {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='24' height='24' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
}

.declaration:has(.is-valid) .form-label,
.declaration:has(.is-invalid) .form-label,
.file_input:has(.is-valid) .form-label,
.file_input:has(.is-invalid) .form-label,
.success_label {
  background-repeat: no-repeat;
  background-position: right 0.1875rem center;
  padding-right: calc(1.5em + 0.75rem) !important;
}

[dir="rtl"] .declaration:has(.is-valid) .form-label,
[dir="rtl"] .declaration:has(.is-invalid) .form-label,
[dir="rtl"] .file_input:has(.is-valid) .form-label,
[dir="rtl"] .file_input:has(.is-invalid) .form-label,
[dir="rtl"] .success_label {
  background-position: left 0.1875rem center;
  padding-left: calc(1.5em + 0.75rem) !important;
  padding-right: 0px !important;
}

.success_label {
  width: 100%;
  text-align: start;
  display: flex;
}


/**********************************************************/
/**********************************************************/
/**********************************************************/

/* center td */
th,
td {
  text-align: center !important;
}

th {
  width: auto;
  /* Allows the header cells to stretch */
}



/* Ensure the body or any parent does not hide the overflow */

body,
html {
  overflow-x: hidden;
  /* Hide horizontal scrollbar if any */
  height: 100%;
  /* Ensure the body takes full viewport height */
}

.flex.h-screen {
  padding-left: 70px !important;
  /* Same as the sidebar width */
}

.w-16 {
  width: 70px !important;
  /* Initial width when not hovered */
}

.w-64 {
  width: 316px !important;
  /* Expanded width when hovered */
}

.rotate-90 {
  transform: rotate(90deg);
}

.chevronIcon {
  transition: transform 0.3s ease;
  /* Smooth transition for rotation */
}

.dataTables_info {
  font-size: 14px;
  margin-inline-start: 10px;
}

.dataTables_paginate {
  font-size: 14px;
  margin-bottom: 4px;
}

table.dataTable thead th {
  border-bottom: none;
}

table.dataTable.no-footer {
  border-bottom: 1px solid #e2e8f0;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  padding: 0.35rem 0.75rem;
}


/***************************/
/***************************/
/***************************/

#toast {

  z-index: 9999;

}

/***************************/
/***************************/
/***************************/
/* Remove the border by default */
.select2-container--default .select2-selection--multiple {
  border: 1px solid rgb(232, 232, 232) !important;
  outline: none !important;
  border-radius: 12px !important;

  /* You might also need this */
}

.select2-container--default .select2-selection--single {
  border: 1px solid rgb(205, 205, 205) !important;
  outline: none !important;
  border-radius: 8px !important;

  /* You might also need this */
}

/* When the Select2 container has focus, add the border to the inner element */
.select2-container--default.select2-container--focus .select2-selection--multiple {
  border: 1px solid black !important;
}

.select2-container--default.select2-container--focus .select2-selection--single {
  border: 1px solid blue !important;
}

/* Alternatively, if Select2 is applying an 'active' class, you could use: */
.select2-container--default.select2-container--active .select2-selection--multiple {
  border: 1px solid black !important;
}

.select2-container--default.select2-container--focus .select2-selection--single {
  border: 1px solid blue !important;
}

.select2-selection.select2-selection--single {
  padding: 8px 12px !important;
}

.select2-selection.select2-selection--single,
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 45px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  padding-right: 10px !important;
}


/***************************/
/***************************/
/***************************/



/* Basic progress bar styles */
.progress {
  width: 66px;
  background-color: #f1f5f9;
  /* slate-100 */
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  height: 16px;
  margin-bottom: 1px;
  font-size: 10px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
  border-radius: 9999px;
  text-align: center;
  line-height: 16px;
  color: #0b3a20;
  width: 0%;
  transition: width 300ms ease-in-out;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.percentage-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-weight: 600;
}


.count-container {
  display: flex;
  justify-content: center;
  white-space: nowrap;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
}


.count-container .text {
  padding: 4px 6px;
}

/* .count-container.fit-to-work{
  border: 1px solid #4CAF50;   
}

.count-container.fit-to-work .text{   
  color:  #4CAF50;   
} */

.count-container.fit-to-work {
  border: 1px solid #1CCF91;
  /* background-image: linear-gradient(#2BDE7E, #10C2A2); */
}


.count-container.fit-to-work .text {
  color: #2BDE7E;
  /* Start color of the gradient for text, or adjust as preferred */
  background-image: linear-gradient(to right, #2BDE7E, #10C2A2);
  /* Optional: apply gradient to text */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fit-to-hire-count {
  background-image: linear-gradient(to right, #2BDE7E, #10C2A2);
}


.count-container.not-fit {
  border: 1px solid #D91B1B;
}

.count-container.not-fit .text {
  color: #D91B1B;
}

.not-fit-to-hire-count {
  background-color: #D91B1B;
  /* Red background */
}

.count-container.total-employees {
  border: 1px solid #6B7280;
}

.count-container.total-employees .text {
  color: #6B7280;
}

.total-employees-count {
  background-color: #6B7280;
  /* Red background */
}

.total-employees-count,
.fit-to-hire-count,
.not-fit-to-hire-count {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  padding: 4px;
  line-height: 16px;
  color: white;
  font-weight: bold;
}





/***************************/
/***************************/
/***************************/
#sidebar {
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: #235DF0;
  z-index: 100;
  width: 4rem;
  /* Default to 64px */
  transition: width 0.3s ease-in-out;
  /* Smooth transition for width */
}



/* #sidebar.w-64 .sidebar-text {
      display: block;
      opacity: 1;
  } 
  
  #sidebar.w-16 .sidebar-text {
      display: none;
      opacity: 0;
  } */
/***************************/
.nav-button.active,
.nav-button:hover {
  background-color: #1A73E8;
  /* Differentiate active/hover state */
  color: white;
}

/***************************/
/***************************/
/***************************/

.info-block {
  min-height: 42px;
}



.inactive-nav .nav-icon {
  width: 50px;
  text-align: center;
}

.active-nav .nav-icon {
  width: 40px;
  text-align: center;
}

.inactive-nav .sidebar-text {
  margin-left: 10px;
}

.active-nav .sidebar-text {
  margin-left: 15px;
}

/* Dynamic text visibility tied to width changes */
.sidebar-text {
  min-width: 200px;
  /* margin-left: 10px;*/
  display: none;
  /* Hide text by default */
  transition: opacity 0.3s ease-in-out;
  /* Smooth transition for text visibility */
}

/* Select2 Custom Styling */
.select2-container--default .select2-selection--multiple {
  border-color: #d1d5db;
  border-radius: 0.375rem;
  min-height: 120px;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px #3b82f6;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: #e5e7eb;
  border: none;
  border-radius: 9999px;
  padding: 2px 8px;
  margin: 4px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: #6b7280;
  margin-right: 5px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  color: #ef4444;
}

.select2-dropdown {
  border-color: #d1d5db;
  border-radius: 0.375rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #3b82f6;
}