.img-logo-sidenav{
  height: 40px;
}
.img-logo-organization{
  height: 60px;
}

.error-validation, #excel-upload-error, .slabs-error{
  color: red;
}

/* Remove the extra lable of validator */
#salary_from\[\]-error, 
#salary_to\[\]-error, 
#tax_fixed_amount\[\]-error,
#tax_percentage\[\]-error{
  display: none !important;
}

.loader-overlay {
    position: fixed;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999999;
    background: rgba(255, 255, 255, .9);
}

.loader {
    position: fixed;
    width: 100px;
    height: auto;
     animation: heartbeat 5s infinite;
}

.sidebar-logo.button-logo{
  bottom: 0px;
  padding: 16px 16px 25px 16px;
  height: unset;
}

.sidebar-logo .logo-small img{
  object-fit: cover !important;
}

.no-logo{
  width: 170px;
  height: 40px;
  object-fit: cover;
}

/* Payroll generation loader */

.doted-loader {
  font-weight: bold;
  font-size: 24px;
  /* font-family: monospace; */
  /* color: #015BA6; */
}

.doted-loader::after {
  content: '';
  display: inline-block;
  width: 3ch;
  animation: dots 1s steps(4, end) infinite;
  overflow: hidden;
  vertical-align: bottom;
}

.cursor-pointer{
  cursor: pointer;
}

/* Hide arrows in Chrome, Safari, Edge, Opera */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Hide arrows in Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

@keyframes dots {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
  100% { content: ''; }
}

#employee-list-tab.active,
#employee-grid-tab.active {
  background-color: #015BA6 !important;
  border: 1px solid #015BA6 !important;
  color: #FFF;
}

[data-color=primary] .table tbody tr td a:hover:not(.show) {
  color: #000;
}

[data-color=primary] .table tbody tr td a.show:hover {
  color: #FFF;
}

.form-border{
  border-bottom: 1px solid rgb(229, 231, 235);
}



#late_grace-error , #early_grace-error{
    margin-top: -15px;
    display: block;
}

.drag-upload-btn-custom{
  font-size: 12px;
  font-weight: 600;
  /* background: #FFF; */
  /* border: 1px dashed #E9EDF4; */
  border-radius: 5px;
  position: relative;
  transition: all 0.5s;
}

.on-active-no-efect{
  box-shadow: none !important;
  border: none !important;
  /* padding: 0.5rem 0.85rem !important; */
  height: 1.8rem;
  width: 1.8rem;
}

.on-active-no-efect:hover{
  color: #015BA6;
}

.on-active-no-efect:active{
  color: #015BA6 !important;
}

.on-active-no-efect input{
  opacity: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
}

.drag-upload-btn-custom input{
  opacity: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
}

.fs-19{
  font-size: 19px;
}

.h-74::before{
  height: 74px!important;
}

#removeImage {
  transition: none !important;
}

.card-bg-1-custom::before{
  height: 114px;
}

#employeeProfileImageCircle:hover .profile-uploader{
  opacity: 1;
  visibility: visible;
}

.profile-uploader {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.bg-overlay-img .bg-3{
  height: 50px;
  width: 50px;
  object-fit: cover;
}

.bg-overlay-img .bg-2{
  height: 60px;
  width: 100px;
  object-fit: cover;
}

.bg-overlay-img .bg-1{
  height: 248px;
  width: 249px;
  object-fit: cover;
}

.cursor_grabbing {
  cursor: -webkit-grabbing; cursor: grabbing;
}

.sortable-placeholder {
  border: 2px dashed #ccc;
  margin: 10px;
  height: 25px; /* Adjust according to your table height */
  background: #f9f9f9;
}

#use_deptartment, #use_type, #use_location{
  background: rgb(240, 240, 240);
}




/* Style for Entity in the formula building UI */
.entity-pill {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 999px;
    background-color: #f8f9fa;
    font-size: 13px;
    white-space: nowrap;
    cursor: grab;
    user-select: none;
    transition: background-color 0.2s ease;
}

.entity-pill:hover {
    background-color: #e9ecef;
}


#formula {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.validation-error {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 4px;
}

/* End Here */
.global-entity-pills{
  background-color: #b9cddf;
  border: 1px #b9cddf;
}


.formula-pills{
background-color: #ccc;
border: 1px solid #ccc;
}

.pay-item-row {
  transition: all 0.3s ease;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.pay-item-row:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pay-item-row.border-danger {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.empty-state {
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.empty-state:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

.action-icon a {
  transition: all 0.2s ease;
}

.action-icon a:hover {
  transform: scale(1.1);
}

.select2-container--default .select2-selection--single {
  border-radius: 6px;
  border: 1px solid #ced4da;
}

.select2-container--default .select2-selection--single:focus {
  border-color: #015BA6;
  box-shadow: 0 0 0 0.2rem rgba(1, 91, 166, 0.25);
}

.select2-dropdown {
  border-radius: 6px;
  border: 1px solid #ced4da;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* .form-check-input:checked {
  background-color: #015BA6;
  border-color: #015BA6;
} */

/* .btn-primary {
  background-color: #015BA6;
  border-color: #015BA6;
} */

/* .btn-primary:hover {
  background-color: #014a8a;
  border-color: #014a8a;
} */

/* Animation for new pay items */
.pay-item-row {
  animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
  from {
      opacity: 0;
      transform: translateY(-20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .pay-item-row .col-md-5,
  .pay-item-row .col-md-3,
  .pay-item-row .col-md-2 {
      margin-bottom: 1rem;
  }
  
  .action-icon {
      text-align: center;
  }
}

.text-center{
  text-align: end;
}





/* User Profile side nav css */

.user-profile-text-center {
    text-align: center;
}
.user-profile-p-2 {
    padding: 0.5rem;
}

.user-profile-bg-light {
    --tw-bg-opacity: 1;
    background-color: rgb(248 249 250 / var(--tw-bg-opacity, 1));
}
.user-profile-rounded {
    border-radius: 0.25rem;
}
.user-profile-items-center {
    align-items: center;
}
.user-profile-flex {
    display: flex
;
}
.user-profile-mb-4 {
    margin-bottom: 1rem;
}

.user-profile-size-8 {
    width: 2rem;
    height: 2rem;
}

.user-profile-text-start {
    text-align: left !important;
}
.user-profile-ms-2 {
    margin-left: .5rem !important;
}


.fs-12 {
    font-size: 0.75rem;
}
.fw-normal {
    font-weight: 400 !important;
}
.mb-1 {
    margin-bottom: .25rem !important;
}
h6, .h6 {
    font-size: 14px;
    font-weight: 600;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: #202C4B;
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    margin-bottom: 0;
}
/* End here */

button.swal2-cancel{
  background-color: #F8F9FA;
  border: 1px solid #F8F9FA;
  color: #111827;
  border: 1px solid #E5E7EB !important;
}

button.swal2-cancel:hover{
  color: #fff;
}

button.swal2-confirm, button.swal2-deny{
  min-width: 93.53px;
}

button.swal2-confirm:hover{
  background-color: #2F80ED;
  border: 1px solid #2F80ED;
}

button.swal2-deny {
  background: #3B7080;
  border: 1px solid #3B7080;
  color: #FFF;
  border-radius: 5px;
  padding: 0.5rem 0.85rem;
  font-size: 14px;
  transition: all 0.5s;
  font-weight: 500;
}
button.swal2-deny:hover{
  background-color: rgb(46.1272727273, 87.5636363636, 100.0727272727);
  border: 1px solid rgb(46.1272727273, 87.5636363636, 100.0727272727);
  color: #FFF;
}


.img-fill-side-nav{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.truncate-text {
  display: inline-block;
  max-width: 500px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.max-width-300px{
  max-width: 300px;
}
.max-width-160px{
  max-width: 160px;
}

.overflow-wrap-anywhere{
  overflow-wrap: anywhere;
}

.select2-container--disabled .select2-selection {
  pointer-events: none;
  outline: none !important;
  box-shadow: none !important;
}











.info-icon {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    vertical-align: middle;
    cursor: pointer;
  }

  /* Tooltip box styling */
  .info-icon .tooltip-box {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    color: black;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.78em;
    line-height: 1.4em;
    width: 500px;
    text-align: justify;
    box-shadow: 0 3px 8px rgba(var(--bs-primary-rgb), 0.25);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 10;
  }

  /* Tooltip arrow */
  .info-icon .tooltip-box::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
  }
  /* Show tooltip on hover */
  .info-icon:hover .tooltip-box {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
  }

  /* Bullet points */
  .tooltip-box ul {
    margin: 0;
    padding-left: 18px;
    list-style-type: disc;
  }

  .tooltip-box li {
    margin-bottom: 6px;
  }

  .tooltip-box ul li code {
  color: #015BA6
}




    /* Selected (checked) state */
.btn-check:checked + .btn-outline-primary {
  background-color: #015BA6 !important; /* Bootstrap primary blue */
  color: #fff !important; /* White text */
  border-color: #015BA6 !important;
}

/* Default (unselected) state */
.btn-outline-primary {
  color: #015BA6 !important; /* Keep primary blue text */
  background-color: transparent !important;
  border-color: #015BA6 !important;
}

/* Disable hover color change */
.btn-outline-primary:hover {
  background-color: transparent !important;
  color: #015BA6 !important;
  border-color: #015BA6 !important;
}

/* Keep white text on hover if selected */
.btn-check:checked + .btn-outline-primary:hover {
  background-color: #015BA6 !important;
  color: #fff !important;
}

.h-400 {
  height: 400px;
}
.employee-card {
  width: 100%;
  cursor: grab;
  transition: none !important;
}

.employee-card.border-primary {
  background-color: #e7f1ff !important;
  border-color: #0d6efd !important;
}

.employee-card:hover {
  background-color: #f8f9fa !important;
}

.bg-light-blue {
  background-color: #e7f1ff !important;
}


.input-group .form-control.is-invalid,
.input-group .form-select.is-invalid {
  border-color: #dc3545 !important;
  box-shadow: none !important;
}

.invalid-feedback,
.text-danger.small {
  display: block;
  /* font-size: 0.85rem; */
  /* margin-top: 2px; */
}






/* ChatBot Widget */

/* === Main Container === */
  #chat-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 500px;
    height: 800px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    animation: chatSlideUp 0.3s ease-out;
  }

  @keyframes chatSlideUp {
    from {
      transform: translateY(20px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  /* === Header === */
  #chat-widget-header {
    background: linear-gradient(135deg, #015BA6, #3B7080);
    color: #fff;
    padding: 18px 20px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  #chat-widget-header button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: opacity 0.2s ease;
  }

  #chat-widget-header button:hover {
    opacity: 0.7;
  }

  /* === Chat Body === */
  #chat-widget-body {
    flex: 1;
    padding: 18px;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
  }

  #chat-widget-body p {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 12px;
    max-width: 85%;
    word-wrap: break-word;
  }

  /* Bot + User Message Styles */
  #chat-widget-body p.bot-message {
    background: #e3f0f7;
    color: #333;
    align-self: flex-start;
    border-top-left-radius: 0;
  }

  #chat-widget-body p.user-message {
    background: #015BA6;
    color: #fff;
    align-self: flex-end;
    border-top-right-radius: 0;
  }

  /* === Footer === */
  #chat-widget-footer {
    padding: 12px;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 10px;
    background: #fff;
  }

  #chat-widget-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
  }

  #chat-widget-input:focus {
    border-color: #015BA6;
    box-shadow: 0 0 3px rgba(1, 91, 166, 0.3);
  }

  #chat-widget-send {
    background: #015BA6;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  #chat-widget-send:hover {
    background: #3B7080;
  }

  /* === Floating Chat Button === */
  #chat-widget-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    /* background: linear-gradient(135deg, #015BA6, #3B7080); */
    background: #015BA6;
    color: #fff;
    border: none;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
  }

  #chat-widget-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  }

  .bot-message ul.bot-list {
  padding-left: 20px;
  margin-top: 5px;
}

.bot-message ul.bot-list li {
  list-style-type: disc;
  margin-bottom: 5px;
  color: #333;
}

.bot-message {
  background-color: #f4f7fb;
  border-radius: 10px;
  padding: 8px 12px;
  margin: 6px 0;
  max-width: 85%;
  color: #222;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.user-message {
  background-color: #015BA6;
  color: white;
  align-self: flex-end;
  border-radius: 10px;
  padding: 8px 12px;
  margin: 6px 0;
  max-width: 85%;
}

.typing-indicator span {
  display: inline-block;
  font-style: italic;
}

.typing-indicator .dot1,
.typing-indicator .dot2,
.typing-indicator .dot3 {
  animation: blink 1.5s infinite;
}

.typing-indicator .dot2 {
  animation-delay: 0.2s;
}

.typing-indicator .dot3 {
  animation-delay: 0.4s;
}

@keyframes blink {
  0%, 20% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}



  /* === Responsive (Mobile) === */
  @media (max-width: 600px) {
    #chat-widget-container {
      width: 90%;
      height: 80%;
      bottom: 20px;
      right: 5%;
    }

    #chat-widget-button {
      width: 60px;
      height: 60px;
      bottom: 20px;
      right: 20px;
    }
  }
  /* Large Desktop (1200px+) */
@media (min-width: 1200px) {
  #chat-widget-container {
    width: 450px;
    height: 650px;
  }
}

/* Tablet (768px - 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
  #chat-widget-container {
    width: 380px;
    height: 550px;
    right: 25px;
    bottom: 25px;
  }
  #chat-widget-button {
    width: 60px;
    height: 60px;
    right: 25px;
    bottom: 25px;
    font-size: 24px;
  }
}

/* Mobile Large (480px - 767px) */
@media (max-width: 767px) and (min-width: 480px) {
  #chat-widget-container {
    width: calc(100vw - 30px);
    height: calc(100vh - 120px);
    right: 15px;
    bottom: 15px;
    left: 15px;
  }
  #chat-widget-button {
    width: 55px;
    height: 55px;
    right: 15px;
    bottom: 15px;
    font-size: 22px;
  }
}

/* Mobile Small (< 480px) */
@media (max-width: 479px) {
  #chat-widget-container {
    width: calc(100vw - 20px);
    height: calc(100vh - 100px);
    right: 10px;
    bottom: 10px;
    left: 10px;
  }
  #chat-widget-header {
    padding: 12px 15px;
    font-size: 16px;
  }
  #chat-widget-body {
    padding: 12px;
  }
  #chat-widget-body p {
    font-size: 13px;
    padding: 8px 12px;
  }
  #chat-widget-footer {
    padding: 8px;
    gap: 6px;
  }
  #chat-widget-input {
    font-size: 12px;
    padding: 8px 10px;
  }
  #chat-widget-send {
    padding: 8px 12px;
    font-size: 12px;
  }
  #chat-widget-button {
    width: 45px;
    height: 45px;
    right: 10px;
    bottom: 10px;
    font-size: 18px;
  }
}

/* Landscape orientation */
@media (max-height: 500px) and (orientation: landscape) {
  #chat-widget-container {
    height: calc(100vh - 40px);
    width: 300px;
  }
}


/* open state – ^ (up) */
.accordion-button:not(.collapsed)::after {
  content: "\f078";
  font-family: "Fontawesome";
  font-size: 12px;
  line-height: 1;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3.125rem;
  color: #6B7280;
}

/* Data table highlight  */
table.dataTable thead th.sorting_asc::before,
table.dataTable thead th.sorting_asc::after {
    opacity: 0.3 !important;
}

table.dataTable thead th.sorting_asc::before {
    opacity: 1 !important;
    color: #7e6bca !important;
}

table.dataTable thead th.sorting_desc::before,
table.dataTable thead th.sorting_desc::after {
    opacity: 0.9 !important;
}

table.dataTable thead th.sorting_desc::after {
    opacity: 1 !important;
    color: #7e6bca !important;
}

table.dataTable thead th.sorting::before,
table.dataTable thead th.sorting::after {
    opacity: 0.9 !important;
}

.badge{
  min-width: 71px;
}

.pb-100 {
  padding-bottom: 100px !important;
}

#changesTableBody td:nth-child(2),
#changesTableBody td:nth-child(3) {
  word-wrap: break-word;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.bg-E8E9EA{
  background-color: #E8E9EA;
}

.mt-1px{
  margin-top: 1px;
}