label{
    white-space: nowrap;
    text-transform: none !important;
}

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

  .select2.select2-container .select2-selection {
    border: 1px solid #ccc;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    height: 34px;
    margin-bottom: 15px;
    outline: none !important;
    transition: all .15s ease-in-out;
  }

  .select2.select2-container .select2-selection .select2-selection__rendered {
    color: #333;
    line-height: 32px;
    padding-right: 33px;
  }

  .select2.select2-container .select2-selection .select2-selection__arrow {
    background: #f8f8f8;
    border-left: 1px solid #ccc;
    -webkit-border-radius: 0 3px 3px 0;
    -moz-border-radius: 0 3px 3px 0;
    border-radius: 0 3px 3px 0;
    height: 32px;
    width: 33px;
  }

  .select2.select2-container.select2-container--open .select2-selection.select2-selection--single {
    background: #f8f8f8;
  }

  .select2.select2-container.select2-container--open .select2-selection.select2-selection--single .select2-selection__arrow {
    -webkit-border-radius: 0 3px 0 0;
    -moz-border-radius: 0 3px 0 0;
    border-radius: 0 3px 0 0;
  }

  .select2.select2-container.select2-container--open .select2-selection.select2-selection--multiple {
    border: 1px solid #34495e;
  }

  .select2.select2-container .select2-selection--multiple {
    height: auto;
    min-height: 34px;
  }

  .select2.select2-container .select2-selection--multiple .select2-search--inline .select2-search__field {
    margin-top: 0;
    height: 32px;
  }

  .select2.select2-container .select2-selection--multiple .select2-selection__rendered {
    display: block;
    padding: 0 4px;
    line-height: 29px;
  }

  .select2.select2-container .select2-selection--multiple .select2-selection__choice {
    background-color: #f8f8f8;
    border: 1px solid #ccc;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    margin: 4px 4px 0 0;
    padding: 0 6px 0 22px;
    height: 24px;
    line-height: 24px;
    font-size: 12px;
    position: relative;
  }

  .select2.select2-container .select2-selection--multiple .select2-selection__choice .select2-selection__choice__remove {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    margin: 0;
    text-align: center;
    color: #e74c3c;
    font-weight: bold;
    font-size: 16px;
  }

  .select2-container .select2-dropdown {
    background: transparent;
    border: none;
    margin-top: -10px;
    border-radius: 5%;
  }

  .select2-container .select2-dropdown .select2-search {
    padding: 0;
  }

  .select2-container .select2-dropdown .select2-search input {
    outline: none !important;
    border: 1px solid #34495e !important;
    border-bottom: none !important;
    padding: 4px 6px !important;
  }

  .select2-container .select2-dropdown .select2-results {
    padding: 0;
  }

  .select2-container .select2-dropdown .select2-results ul {
    background: #fff;
    border: 1px solid #34495e;
  }

  .select2-container .select2-dropdown .select2-results ul .select2-results__option--highlighted[aria-selected] {
    background-color: #3498db;
  }

/* Sticky Columns for different Tables */
.table-responsive.sticky-columns {
  overflow-x: auto;
}

.table-responsive.sticky-columns table {
  border-collapse: separate;
  border-spacing: 0;
}

/* Make S.N column sticky (first column) */
.table-responsive.sticky-columns thead th:first-child,
.table-responsive.sticky-columns tbody td:first-child {
  position: sticky;
  left: 0;
  z-index: 10;
  background-color: #fff;
  min-width: 80px;
  padding: 0.75rem 0.5rem;
  border-right: 2px solid #dee2e6;
}

/* Make column Info sticky (second column) */
.table-responsive.sticky-columns thead th:nth-of-type(2),
.table-responsive.sticky-columns tbody td:nth-of-type(2) {
  position: sticky;
  left: 80px;
  z-index: 10;
  background-color: #fff;
  min-width: 250px;
  border-right: 2px solid #dee2e6;
}

/* Sticky header styling */
.table-responsive.sticky-columns thead th:first-child {
  background-color: #212529;
  z-index: 20;
  color: white;
}

.table-responsive.sticky-columns thead th:nth-of-type(2) {
  background-color: #212529;
  z-index: 20;
  color: white;
}

/* Add subtle shadow to sticky columns for better visual separation */
.table-responsive.sticky-columns tbody tr:hover td:first-child {
  background-color: #f8fafc;
  box-shadow: inset -2px 0 0 rgba(102, 126, 234, 0.3);
}

.table-responsive.sticky-columns tbody tr:hover td:nth-of-type(2) {
  background-color: #f8fafc;
  box-shadow: inset -2px 0 0 rgba(102, 126, 234, 0.3);
}

/* Default state for sticky columns on hover */
.table-responsive.sticky-columns tbody tr:hover td:first-child,
.table-responsive.sticky-columns tbody tr:hover td:nth-of-type(2) {
  background-color: #f8fafc;
}

/* Ensure table dark theme header compatibility */
.table-responsive.sticky-columns .table-dark thead th:first-child,
.table-responsive.sticky-columns .table-dark thead th:nth-of-type(2) {
  background-color: #212529;
  z-index: 20;
  color: white;
}

/* Sticky footer for tables */
.table-responsive.sticky-columns tfoot tr {
  position: sticky;
  bottom: 0;
  z-index: 15;
}

.table-responsive.sticky-columns tfoot tr td {
  background-color: #ffeeba;
  border-top: 2px solid #dee2e6;
}

/* Sticky footer first column with colspan */
.table-responsive.sticky-columns tfoot tr td:first-child {
  position: sticky;
  left: 0;
  z-index: 25;
  background-color: #ffeeba;
  border-right: 2px solid #dee2e6;
  width: 330px;
}

/* Styling for disabled rows in salary release tables */
tr.opacity-50 {
  opacity: 0.5;
  background-color: #f5f5f5;
}

tr.opacity-50 input[type="number"]:disabled {
  background-color: #e9ecef;
  cursor: not-allowed;
}

/* Compact spacing for Recruitment and Offboarding modules */
.card.module-compact {
  padding: 0.9rem !important;
}

.card.module-compact .card {
  margin-bottom: 0.75rem;
}

.card.module-compact .card-header {
  padding: 0.55rem 0.75rem;
}

.card.module-compact .card-body {
  padding: 0.75rem;
}

.card.module-compact .form-label,
.card.module-compact label {
  margin-bottom: 0.25rem;
}

.card.module-compact .form-control,
.card.module-compact .form-select,
.card.module-compact .input-group-text {
  padding: 0.33rem 0.6rem;
  min-height: calc(1.5em + 0.66rem + 2px);
}

.card.module-compact textarea.form-control {
  min-height: 72px;
}

.card.module-compact .btn {
  padding: 0.3rem 0.65rem;
}

.card.module-compact p,
.card.module-compact .form-text {
  margin-bottom: 0.45rem;
}

.card.module-compact .table > :not(caption) > * > * {
  padding: 0.42rem 0.5rem;
}

.card.module-compact .select2.select2-container .select2-selection {
  margin-bottom: 0.4rem;
  height: 32px;
}

.card.module-compact .select2.select2-container .select2-selection .select2-selection__rendered {
  line-height: 30px;
}

.card.module-compact .select2.select2-container .select2-selection .select2-selection__arrow {
  height: 30px;
}
