.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-400px{
  max-width: 400px;
}
.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;
}
/* =====================================================
   DARK MODE OVERRIDES
   Applied when <html data-theme="dark">
   ===================================================== */

/* --- Toggle button --- */
#dark-mode-toggle {
    width: 34px;
    height: 34px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}
#dark-mode-toggle:hover { background: #E8E9EA; }

[data-theme=dark] #dark-mode-toggle { border-color: #1F2228; color: #D8DFEE; }
[data-theme=dark] #dark-mode-toggle:hover { background: #1F2228; }

/* --- Loader overlay --- */
[data-theme=dark] .loader-overlay { background: rgba(13,13,13,0.92); }

/* --- Page wrapper & content --- */
[data-theme=dark] .page-wrapper { background-color: #131313; }
[data-theme=dark] .page-wrapper .content { background-color: #131313; }

/* --- Cards --- */
[data-theme=dark] .card { background-color: #0D0D0D; border-color: #1F2228; }
[data-theme=dark] .card .card-header { background-color: #0D0D0D; border-color: #1F2228; }
[data-theme=dark] .card .card-body { background-color: #0D0D0D; }
[data-theme=dark] .card .card-footer { background-color: #0D0D0D; border-color: #1F2228; }
[data-theme=dark] .card .card-title,
[data-theme=dark] .card h5,
[data-theme=dark] .card h6 { color: #D8DFEE; }

/* --- Headings & text --- */
[data-theme=dark] h1,[data-theme=dark] h2,[data-theme=dark] h3,
[data-theme=dark] h4,[data-theme=dark] h5,[data-theme=dark] h6,
[data-theme=dark] .h1,[data-theme=dark] .h2,[data-theme=dark] .h3,
[data-theme=dark] .h4,[data-theme=dark] .h5,[data-theme=dark] .h6 { color: #D8DFEE; }
[data-theme=dark] p:not(#letterPreview p) { color: #6B7280; }
[data-theme=dark] #letterPreview { background: #fff !important; color: #000 !important; }
[data-theme=dark] #letterPreview p,
[data-theme=dark] #letterPreview span,
[data-theme=dark] #letterPreview td,
[data-theme=dark] #letterPreview th,
[data-theme=dark] #letterPreview li { color: inherit !important; }

/* --- Borders --- */
[data-theme=dark] hr { border-color: #1F2228; }
[data-theme=dark] .border { border-color: #1F2228 !important; }
[data-theme=dark] .border-bottom { border-bottom-color: #1F2228 !important; }
[data-theme=dark] .border-top { border-top-color: #1F2228 !important; }
[data-theme=dark] .form-border { border-bottom-color: #1F2228 !important; }

/* --- Sidebar extras --- */
/* [data-theme=dark] .sidebar .sidebar-logo { border-bottom: 1px solid #1F2228; }
[data-theme=dark] .sidebar-logo.button-logo { border-top: 1px solid #1F2228; } */
[data-theme=dark] .user-profile-bg-light { background-color: #1F2228 !important; }
[data-theme=dark] .sidebar h6,[data-theme=dark] .sidebar p { color: #6B7280; }
[data-theme=dark] .sidebar-profile-info h6,
[data-theme=dark] .sidebar-profile-info p { color: #6B7280 !important; }

/* --- Buttons --- */
[data-theme=dark] .btn.btn-light,
[data-theme=dark] .btn.btn-light:hover,
[data-theme=dark] .btn.btn-light:focus,
[data-theme=dark] .btn.btn-light:active { background-color: #1F2228; border-color: #1F2228; color: #D8DFEE; }
[data-theme=dark] .btn.btn-light.border { border-color: #1F2228 !important; }
[data-theme=dark] .btn.btn-white { background: #0D0D0D; border-color: #1F2228; color: #C8D2E0; }

/* --- Form inputs --- */
[data-theme=dark] .form-control { background-color: #0D0D0D; border-color: #1F2228; color: #D8DFEE; }
[data-theme=dark] .form-control:focus { background-color: #0D0D0D; border-color: #1F2228; color: #D8DFEE; }
[data-theme=dark] .form-control::placeholder { color: #4B5563; }
[data-theme=dark] .form-control:disabled,[data-theme=dark] .form-select:disabled { background-color: #131313; color: #4B5563; }
[data-theme=dark] .col-form-label,[data-theme=dark] .form-label { color: #D8DFEE; }
[data-theme=dark] .input-group-text { background-color: #1F2228; border-color: #1F2228; color: #6B7280; }

/* --- Tables --- */
[data-theme=dark] .table { color: #6B7280; border-color: #1F2228; }
[data-theme=dark] .table thead tr th { background-color: #1F2228; color: #D8DFEE; border-color: #1F2228; }
[data-theme=dark] .table tbody tr td { background-color: #0D0D0D; color: #6B7280; border-color: #1F2228; }
[data-theme=dark] .table tbody tr:hover td { background-color: #131313; }
[data-theme=dark] .dataTables_wrapper .dataTables_filter input,
[data-theme=dark] .dataTables_wrapper .dataTables_length select { background-color: #0D0D0D; border-color: #1F2228; color: #D8DFEE; }
[data-theme=dark] .dataTables_wrapper .dataTables_info,
[data-theme=dark] .dataTables_wrapper .dataTables_length label,
[data-theme=dark] .dataTables_wrapper .dataTables_filter label { color: #6B7280; }
[data-theme=dark] .dataTables_wrapper .dataTables_paginate .paginate_button { color: #6B7280 !important; }
[data-theme=dark] .dataTables_wrapper .dataTables_paginate .paginate_button.current,
[data-theme=dark] .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover { background:#015BA6; border-color:#015BA6; color:#fff !important; }
[data-theme=dark] .dataTables_wrapper .dataTables_paginate .paginate_button:hover { background:#1F2228; border-color:#1F2228; color:#D8DFEE !important; }

/* --- Alerts --- */
[data-theme=dark] .alert-success { background-color:rgba(3,201,90,0.12); border-color:rgba(3,201,90,0.2); color:#03C95A; }
[data-theme=dark] .alert-danger  { background-color:rgba(231,13,13,0.12); border-color:rgba(231,13,13,0.2); color:#E70D0D; }
[data-theme=dark] .alert-warning { background-color:rgba(255,193,7,0.12); border-color:rgba(255,193,7,0.2); color:#FFC107; }
[data-theme=dark] .alert-info    { background-color:rgba(27,132,255,0.12); border-color:rgba(27,132,255,0.2); color:#1B84FF; }

/* --- Modals & Offcanvas --- */
[data-theme=dark] .modal-content { background-color:#0D0D0D; border-color:#1F2228; }
[data-theme=dark] .modal-header  { background-color:#0D0D0D; border-color:#1F2228; }
[data-theme=dark] .modal-body    { background-color:#0D0D0D; color:#6B7280; }
[data-theme=dark] .modal-footer  { background-color:#0D0D0D; border-color:#1F2228; }
[data-theme=dark] .modal-title   { color:#D8DFEE; }
[data-theme=dark] .offcanvas { background-color:#0D0D0D; border-color:#1F2228; }
[data-theme=dark] .offcanvas-header { border-color:#1F2228; }

/* --- Dropdowns --- */
[data-theme=dark] .dropdown-menu { background-color:#0D0D0D; border-color:#1F2228; }
[data-theme=dark] .dropdown-item { color:#D8DFEE; }
[data-theme=dark] .dropdown-item:hover,[data-theme=dark] .dropdown-item:focus { background-color:#1F2228; color:#D8DFEE; }
[data-theme=dark] .dropdown-divider { border-color:#1F2228; }

/* --- Select2 --- */
[data-theme=dark] .select2-container--default .select2-selection--single,
[data-theme=dark] .select2-container--default .select2-selection--multiple { background-color:#0D0D0D; border-color:#1F2228; }
[data-theme=dark] .select2-container--default .select2-selection--single .select2-selection__rendered { color:#D8DFEE; }
[data-theme=dark] .select2-container--default .select2-selection--single .select2-selection__arrow b { border-top-color:#6B7280; }
[data-theme=dark] .select2-dropdown { background-color:#0D0D0D; border-color:#1F2228; }
[data-theme=dark] .select2-container--default .select2-results__option { color:#D8DFEE; }
[data-theme=dark] .select2-container--default .select2-results__option--highlighted[aria-selected] { background-color:#015BA6; color:#fff; }
[data-theme=dark] .select2-search--dropdown .select2-search__field { background-color:#131313; border-color:#1F2228; color:#D8DFEE; }
[data-theme=dark] .select2-container--default .select2-selection--multiple .select2-selection__choice { background-color:#1F2228; border-color:#374151; color:#D8DFEE; }
[data-theme=dark] .select2-container--default .select2-results__option--selected { background-color: #015BA6; }


/* --- Daterangepicker --- */
[data-theme=dark] .daterangepicker { background-color:#0D0D0D; border-color:#1F2228; color:#D8DFEE; }
[data-theme=dark] .daterangepicker .calendar-table { background-color:#0D0D0D; border-color:#1F2228; }
[data-theme=dark] .daterangepicker td.available:hover,[data-theme=dark] .daterangepicker th.available:hover { background-color:#1F2228; }
[data-theme=dark] .daterangepicker td.active,[data-theme=dark] .daterangepicker td.active:hover { background-color:#015BA6; }
[data-theme=dark] .daterangepicker .drp-buttons { border-color:#1F2228; }
[data-theme=dark] .daterangepicker select.monthselect,
[data-theme=dark] .daterangepicker select.yearselect { background-color:#131313; border-color:#1F2228; color:#D8DFEE; }
[data-theme=dark] .daterangepicker:before { border-bottom-color:#1F2228; }
[data-theme=dark] .daterangepicker:after { border-bottom-color:#0D0D0D; }

/* --- Bootstrap datetimepicker --- */
[data-theme=dark] .bootstrap-datetimepicker-widget { background-color:#0D0D0D; border-color:#1F2228; }
[data-theme=dark] .bootstrap-datetimepicker-widget table td,[data-theme=dark] .bootstrap-datetimepicker-widget table th { color:#D8DFEE; }
[data-theme=dark] .bootstrap-datetimepicker-widget table td:hover,[data-theme=dark] .bootstrap-datetimepicker-widget table th:hover { background-color:#1F2228; }

/* --- Summernote --- */
[data-theme=dark] .note-editor.note-frame { border-color:#1F2228; }
[data-theme=dark] .note-toolbar { background-color:#131313; border-color:#1F2228; }
[data-theme=dark] .note-btn { background-color:#0D0D0D; border-color:#1F2228; color:#D8DFEE; }
[data-theme=dark] .note-editable { background-color:#0D0D0D; color:#D8DFEE; }

/* --- Tabs --- */
[data-theme=dark] .nav-tabs { border-color:#1F2228; }
[data-theme=dark] .nav-tabs .nav-link { color:#6B7280; }
[data-theme=dark] .nav-tabs .nav-link.active { background-color:#0D0D0D; border-color:#1F2228 #1F2228 #0D0D0D; color:#D8DFEE; }
[data-theme=dark] .nav-tabs .nav-link:hover { border-color:#1F2228; color:#D8DFEE; }
[data-theme=dark] .nav-tabs.nav-tabs-solid { background-color: transparent !important; }
[data-theme=dark] .nav-tabs.nav-tabs-solid .nav-link { color:#6B7280; background-color: transparent; }
[data-theme=dark] .nav-tabs.nav-tabs-solid .nav-link.active { background-color:#015BA6 !important; border-color:#015BA6 !important; color:#fff !important; }

/* --- List group --- */
[data-theme=dark] .list-group-item { background-color:#0D0D0D; border-color:#1F2228 !important; color:#6B7280; }

/* --- SweetAlert2 --- */
[data-theme=dark] .swal2-popup { background-color:#0D0D0D; color:#D8DFEE; }
[data-theme=dark] .swal2-title { color:#D8DFEE; }
[data-theme=dark] .swal2-html-container { color:#6B7280; }
[data-theme=dark] button.swal2-cancel { background-color:#1F2228 !important; border-color:#1F2228 !important; color:#D8DFEE !important; }

/* --- Tooltip box (info icon) --- */
[data-theme=dark] .info-icon .tooltip-box { background-color:#1F2228; color:#D8DFEE; box-shadow:0 3px 8px rgba(0,0,0,0.5); }
[data-theme=dark] .info-icon .tooltip-box::before { border-color:#1F2228 transparent transparent transparent; }

/* --- Formula builder pills --- */
[data-theme=dark] .entity-pill { background-color:#1F2228; border-color:#374151; color:#D8DFEE; }
[data-theme=dark] .entity-pill:hover { background-color:#374151; }
[data-theme=dark] .global-entity-pills { background-color:#1a3347; border-color:#1a3347; color:#D8DFEE; }
[data-theme=dark] .formula-pills { background-color:#374151; border-color:#374151; color:#D8DFEE; }

/* --- Empty state --- */
[data-theme=dark] .empty-state { background:#131313; border-color:#1F2228; }
[data-theme=dark] .empty-state:hover { background:#1F2228; border-color:#374151; }

/* --- Chat widget --- */
[data-theme=dark] #chat-widget-container { background:#0D0D0D; box-shadow:0 8px 20px rgba(0,0,0,0.5); }
[data-theme=dark] #chat-widget-body { background:#131313; }
[data-theme=dark] #chat-widget-body p.bot-message { background:#1F2228; color:#D8DFEE; }
[data-theme=dark] #chat-widget-footer { background:#0D0D0D; border-color:#1F2228; }
[data-theme=dark] #chat-widget-input { background:#131313; border-color:#1F2228; color:#D8DFEE; }

/* --- bg-light / bg-white / utility overrides --- */
[data-theme=dark] .bg-light { background-color:#1F2228 !important; border-color:#1F2228 !important; color:#6B7280 !important; }
[data-theme=dark] .bg-E8E9EA { background-color:#1F2228 !important; }
[data-theme=dark] .bg-gray-100 { background-color:#1F2228 !important; }

/* --- Accordion --- */
[data-theme=dark] .accordion-item { background-color:#0D0D0D; border-color:#1F2228; }
[data-theme=dark] .accordion-button { background-color:#0D0D0D; color:#D8DFEE; }
[data-theme=dark] .accordion-button:not(.collapsed) { background-color:#131313; color:#D8DFEE; }
[data-theme=dark] .accordion-body { background-color:#0D0D0D; color:#6B7280; }

/* --- Pagination --- */
[data-theme=dark] .page-link { background-color:#0D0D0D; border-color:#1F2228; color:#6B7280; }
[data-theme=dark] .page-link:hover { background-color:#1F2228; border-color:#1F2228; color:#D8DFEE; }
[data-theme=dark] .page-item.active .page-link { background-color:#015BA6; border-color:#015BA6; color:#fff; }
[data-theme=dark] .page-item.disabled .page-link { background-color:#0D0D0D; border-color:#1F2228; color:#374151; }

/* --- Progress --- */
[data-theme=dark] .progress { background-color:#1F2228; }

/* --- Scrollbar --- */
[data-theme=dark] ::-webkit-scrollbar { width:6px; height:6px; }
[data-theme=dark] ::-webkit-scrollbar-track { background:#131313; }
[data-theme=dark] ::-webkit-scrollbar-thumb { background:#374151; border-radius:3px; }
[data-theme=dark] ::-webkit-scrollbar-thumb:hover { background:#4B5563; }


/* =====================================================
   DARK MODE — EMPLOYEE DETAIL PAGE FIXES
   ===================================================== */

/* Fix h1-h6 headings hardcoded to #202C4B in dev-style.css */
[data-theme=dark] h1,
[data-theme=dark] h2,
[data-theme=dark] h3,
[data-theme=dark] h4,
[data-theme=dark] h5,
[data-theme=dark] h6,
[data-theme=dark] .h1,
[data-theme=dark] .h2,
[data-theme=dark] .h3,
[data-theme=dark] .h4,
[data-theme=dark] .h5,
[data-theme=dark] .h6 { color: #D8DFEE !important; }

/* Label spans (icon + label text rows like "Father's Name", "Department" etc.) */
[data-theme=dark] span.d-inline-flex { color: #9CA3AF; }

/* .text-dark values in the info card */
[data-theme=dark] p.text-dark { color: #D8DFEE !important; }

/* card-bg-1 gradient card (employee profile card) */
[data-theme=dark] .card.card-bg-1 { background-color: #0D0D0D !important; }
[data-theme=dark] .card.card-bg-1::before { background: linear-gradient(to bottom, #1a1a2e, #0D0D0D) !important; }
[data-theme=dark] .card.card-bg-1 .card-body { background-color: transparent !important; }

/* border-bottom separator inside the card */
[data-theme=dark] .card.card-bg-1 .border-bottom { border-color: #1F2228 !important; }

/* badge-soft-dark in dark mode */
[data-theme=dark] .badge.badge-soft-dark { background-color: #1F2228 !important; color: #D8DFEE !important; }

/* Tabler icons in the label rows */
[data-theme=dark] .card-bg-1 span.d-inline-flex i,
[data-theme=dark] .card-bg-1 span.d-inline-flex .ti { color: #9CA3AF; }

/* =====================================================
   DARK MODE — ACCORDION HEADER FIX
   .custom-accordion-items has background:#FFF hardcoded
   with high specificity — needs an equally specific override
   ===================================================== */
[data-theme=dark] .custom-accordion-items .accordions-items-seperate .accordion-item .accordion-header .accordion-button {
    background: #0D0D0D !important;
    color: #D8DFEE;
}
[data-theme=dark] .custom-accordion-items .accordions-items-seperate .accordion-item .accordion-header .accordion-button h5,
[data-theme=dark] .custom-accordion-items .accordions-items-seperate .accordion-item .accordion-header .accordion-button small {
    color: #D8DFEE !important;
}
[data-theme=dark] .custom-accordion-items .accordions-items-seperate .accordion-item .accordion-header .accordion-button .collapse-arrow i {
    color: #9CA3AF;
}
[data-theme=dark] .custom-accordion-items .accordions-items-seperate .accordion-item {
    border-color: #1F2228;
    background-color: #0D0D0D;
}
[data-theme=dark] .custom-accordion-items .accordions-items-seperate .accordion-item .accordion-collapse.border-top {
    border-top-color: #1F2228 !important;
}

/* =====================================================
   DARK MODE — EMPLOYEE GRID CARD FIXES
   span.fs-12 labels (Emp NO, Joining Date, Status)
   and h6.fw-medium values inside the grid cards
   ===================================================== */
/* [data-theme=dark] span.fs-12 { color: #9CA3AF; } */

[data-theme=dark] .card .text-center h6.fw-medium { color: #D8DFEE !important; }
[data-theme=dark] .card .text-center h6.fw-medium a { color: #D8DFEE !important; }
[data-theme=dark] .card .text-center h6.mb-1 a { color: #D8DFEE !important; }

/* =====================================================
   DARK MODE — SIDEBAR LOGO & BOTTOM USER PROFILE FIXES
   ===================================================== */

/* Top logo — style.css hides .logo in dark mode expecting a .dark-logo
   but this app only has .logo — so keep it visible */
[data-theme=dark] .sidebar .sidebar-logo .logo { display: block }

/* User profile card inside bottom logo area */
[data-theme=dark] .user-profile-bg-light {
    background-color: #1F2228 !important;
}

/* Name (h6) and email (p) text */
[data-theme=dark] .sidebar-profile-info h6 { color: #D8DFEE !important; }
[data-theme=dark] .sidebar-profile-info p   { color: #9CA3AF !important; }

[data-theme=dark] .mini-sidebar .sidebar .sidebar-logo .logo { display: none; }
[data-theme=dark] .sidebar .sidebar-logo .logo-small { display: none;}
[data-theme=dark] .mini-sidebar .sidebar .sidebar-logo .logo-small {
  display: block;
  text-align: center;
}

@media (min-width: 992px) {
  [data-theme=dark] .expand-menu.mini-sidebar .sidebar .sidebar-logo .logo {
      display: block;
  }
  [data-theme=dark] .expand-menu.mini-sidebar .sidebar .sidebar-logo .logo-small {
    display: none;
    text-align: center;
  }
}

/* =====================================================
   DARK MODE — FORM SWITCH / CHECKBOX FIX
   Bootstrap's switch knob is rgba(0,0,0,0.25) — invisible
   on a dark background. Replace with a light knob.
   ===================================================== */

/* Unchecked switch: dark track + light knob */
[data-theme=dark] .form-switch .form-check-input {
    background-color: #374151;
    border-color: #4B5563;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%28255%2C255%2C255%2C0.7%29'/%3e%3c/svg%3e");
}

/* Checked switch: brand blue track + white knob */
[data-theme=dark] .form-switch .form-check-input:checked {
    background-color: #015BA6;
    border-color: #015BA6;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

/* =====================================================
   DARK MODE — FORM CHECK LABEL & PLAIN CHECKBOX FIX
   ===================================================== */

/* Label text next to checkboxes */
[data-theme=dark] .form-check-label { color: #D8DFEE; }

/* Plain checkbox (no role=switch) — unchecked */
[data-theme=dark] .form-check-input[type=checkbox]:not([role=switch]) {
    background-color: #0D0D0D;
    border-color: #4B5563;
}

/* Plain checkbox — checked: brand blue + white tick */
[data-theme=dark] .form-check-input[type=checkbox]:not([role=switch]):checked {
    background-color: #015BA6;
    border-color: #015BA6;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

/* =====================================================
   DARK MODE — SIDE POPUP ALERT FIX
   style.css inverts .text-white to #0D0D0D in dark mode,
   but alert-solid-* popups have coloured backgrounds and
   always need white text regardless of theme.
   ===================================================== */
[data-theme=dark] .alert-solid-primary,
[data-theme=dark] .alert-solid-secondary,
[data-theme=dark] .alert-solid-warning,
[data-theme=dark] .alert-solid-info,
[data-theme=dark] .alert-solid-success,
[data-theme=dark] .alert-solid-danger,
[data-theme=dark] .alert-solid-dark {
    color: #FFF !important;
}

[data-theme=dark] .alert-solid-primary .text-white,
[data-theme=dark] .alert-solid-secondary .text-white,
[data-theme=dark] .alert-solid-warning .text-white,
[data-theme=dark] .alert-solid-info .text-white,
[data-theme=dark] .alert-solid-success .text-white,
[data-theme=dark] .alert-solid-danger .text-white,
[data-theme=dark] .alert-solid-dark .text-white {
    color: #FFF !important;
}

[data-theme=dark] .alert-solid-primary i,
[data-theme=dark] .alert-solid-secondary i,
[data-theme=dark] .alert-solid-warning i,
[data-theme=dark] .alert-solid-info i,
[data-theme=dark] .alert-solid-success i,
[data-theme=dark] .alert-solid-danger i,
[data-theme=dark] .alert-solid-dark i {
    color: #FFF !important;
}

/* =====================================================
   DARK MODE — SELECT2 OPEN STATE FIXES
   1. Arrow uses border-color (rotated div), not border-top-color
   2. Open state arrow turns #000 — needs light override
   3. select2-container--focus forces background:#FFF !important
   ===================================================== */

/* Closed arrow — rotated chevron uses border-color */
[data-theme=dark] .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: #9CA3AF;
}

/* Open arrow — style.css sets border-color:#000, override to light */
[data-theme=dark] .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: #9CA3AF !important;
}

/* Focus/open state forces background:#FFF !important — override to dark */
[data-theme=dark] .select2-container--focus .select2-selection--single,
[data-theme=dark] .select2-container--default.select2-container--open .select2-selection--single {
  background: #0D0D0D !important;
  border-color: #1F2228 !important;
}

/* Keep rendered text light when open */
[data-theme=dark] .select2-container--default.select2-container--open .select2-selection--single .select2-selection__rendered {
  color: #D8DFEE !important;
}

/* Dropdown panel */
[data-theme=dark] span.select2-container.select2-container--default.select2-container--open {
  box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.5);
}

/* =====================================================
   DARK MODE — DATATABLE SORTING ICON FIX
   In light mode #D1D5DB is barely visible on the light
   header — giving an "inactive" look. In dark mode the
   same colour looks fully active against #1F2228.
   Solution: dim both arrows on unsorted columns, and
   highlight only the active arrow on sorted columns.
   ===================================================== */

/* Unsorted column — both arrows very dim */
[data-theme=dark] table.dataTable > thead .sorting:before,
[data-theme=dark] table.dataTable > thead .sorting:after {
    color: #4B5563 !important;
}

/* Sorted ASC — up arrow (before) bright, down arrow (after) dim */
[data-theme=dark] table.dataTable > thead .sorting_asc:before {
    color: #D8DFEE !important;
}
[data-theme=dark] table.dataTable > thead .sorting_asc:after {
    color: #4B5563 !important;
}

/* Sorted DESC — down arrow (after) bright, up arrow (before) dim */
[data-theme=dark] table.dataTable > thead .sorting_desc:after {
    color: #D8DFEE !important;
}
[data-theme=dark] table.dataTable > thead .sorting_desc:before {
    color: #4B5563 !important;
}

/* Disabled states — keep dim */
[data-theme=dark] table.dataTable > thead .sorting_asc_disabled:before,
[data-theme=dark] table.dataTable > thead .sorting_asc_disabled:after,
[data-theme=dark] table.dataTable > thead .sorting_desc_disabled:before,
[data-theme=dark] table.dataTable > thead .sorting_desc_disabled:after {
  color: #374151 !important;
}

/* =====================================================
   DARK MODE — RULES / FORMULA / TAX EXEMPTION
   "Generated Expression" inline-styled div fix
   ===================================================== */
[data-theme=dark] .rb-advanced-toggle div[style*="font-weight:600"],
[data-theme=dark] .fb-advanced-toggle div[style*="font-weight:600"],
[data-theme=dark] .te-advanced-toggle div[style*="font-weight:600"] {
  color: #D8DFEE;
}

/* --- Auth footer --- */
.auth-footer {
  background: rgba(255,255,255,0.8);
  border-top: 1px solid #e9ecef;
}
[data-theme=dark] .auth-footer {
  background: rgba(13,13,13,0.9);
  border-top-color: #1F2228;
}
[data-theme=dark] .auth-footer .text-muted {
  color: #6B7280 !important;
}

/* --- Auth page body background --- */
[data-theme=dark] body {
  background: #131313 !important;
}

/* --- Main app footer --- */
[data-theme=dark] .footer {
  background-color: #0D0D0D;
  border-top-color: #1F2228 !important;
  color: #6B7280;
}
[data-theme=dark] .footer p {
  color: #6B7280;
}

[data-theme=dark] .toggle-password {
  color: #D8DFEE;
}

[data-theme=dark] .pay-item-type-display {
  color: #D8DFEE;
}

[data-theme=dark] .border-bottom .fw-bold {
  color: #D8DFEE;
}

[data-theme=dark] #use_deptartment,
[data-theme=dark] #use_type,
[data-theme=dark] #use_location {
  background: #1F2228;
  color: #D8DFEE;
}

[data-theme=dark] #prefix-ordering .form-check-label {
  color: #D8DFEE;
}

[data-theme=dark] #sampleEmployeeNo,
[data-theme=dark] #prefix-ordering ~ div {
  color: #D8DFEE;
}

[data-theme=dark] .badge.bg-success,
[data-theme=dark] .badge.bg-warning,
[data-theme=dark] .badge.bg-danger,
[data-theme=dark] .badge.bg-secondary,
[data-theme=dark] .badge.bg-info,
[data-theme=dark] .badge.bg-primary {
  color: #fff !important;
}

[data-theme=dark] #otp-description,
[data-theme=dark] #twofa-secret-key,
[data-theme=dark] #twofa-disable-hint {
  color: #D8DFEE;
}
[data-theme=dark] .profile-uploader .bg-white {
    background-color: #1F2228 !important;
    color: #D8DFEE !important;
}

/* =====================================================
   DARK MODE — ORGANIZATION PROFILE PAGE
   ===================================================== */
.profile-tab-header { border-bottom: 1px solid #E5E7EB; }

[data-theme=dark] .profile-tab-header { border-bottom-color: #1F2228; }

/* btn-icon (history button and similar icon-only buttons) */
[data-theme=dark] .btn.btn-icon { color: #9CA3AF; }
[data-theme=dark] .btn.btn-icon:hover { background-color: #1F2228; color: #D8DFEE; }

/* No Record Found */
.no-record-icon { font-size: 48px; opacity: 0.3; }
.no-record-text { font-weight: bolder; opacity: 0.3; }
[data-theme=dark] .no-record-icon { color: #D8DFEE; }
[data-theme=dark] .no-record-text { color: #D8DFEE; opacity: 0.5; }

/* Daterangepicker — prev/next month (off) dates */
[data-theme=dark] .daterangepicker td.off,
[data-theme=dark] .daterangepicker td.off.in-range,
[data-theme=dark] .daterangepicker td.off.start-date,
[data-theme=dark] .daterangepicker td.off.end-date {
    background-color: #131313 !important;
    color: #4B5563 !important;
}

/* Payroll modal — start/end readonly fields */
.payroll-date-readonly { color: #212529; }
[data-theme=dark] .payroll-date-readonly { color: #D8DFEE !important; }

/* Bootstrap-datetimepicker — focused/hover background & month span cells */
[data-theme=dark] .bootstrap-datetimepicker-widget table thead tr:first-child th:hover { background-color: #1F2228; }
[data-theme=dark] .bootstrap-datetimepicker-widget table td span { color: #D8DFEE; }
[data-theme=dark] .bootstrap-datetimepicker-widget table td span:hover { background-color: #1F2228; color: #D8DFEE; }
[data-theme=dark] .bootstrap-datetimepicker-widget table td span.old,
[data-theme=dark] .bootstrap-datetimepicker-widget table td span.disabled,
[data-theme=dark] .bootstrap-datetimepicker-widget table td span.disabled:hover { color: #4B5563; }
[data-theme=dark] .bootstrap-datetimepicker-widget table td span.active,
[data-theme=dark] .datepicker table tr td span.focused,
[data-theme=dark] .datepicker table tr td span:hover,
[data-theme=dark] .datepicker .datepicker-switch:hover, [data-theme=dark] .datepicker .next:hover, [data-theme=dark] .datepicker .prev:hover, [data-theme=dark] .datepicker tfoot tr th:hover
{ background-color: #1F2228; color: #fff; }
[data-theme=dark] .bootstrap-datetimepicker-widget.dropdown-menu { background-color: #131313; border-color: #1F2228; }

/* Table anchor hover — keep light color in dark mode (dashboard tables only) */
[data-theme=dark] .table-nowrap tbody tr td a:hover:not(.show) { color: #D8DFEE }

/* Organization create/edit — user section bordered box */
[data-theme=dark] .user-section .fw-semibold { color: #D8DFEE; }
[data-theme=dark] .user-section i { color: #D8DFEE; }

.min-height-319{
  min-height: 319px;
}

/* ===== Dashboard - Recent Payslips Dark Mode ===== */
[data-theme=dark] .payslip-row { background-color: #1F2228 !important; }
[data-theme=dark] .payslip-row h6,
[data-theme=dark] .payslip-row .fw-semibold { color: #D8DFEE !important; }
[data-theme=dark] .payslip-row .text-muted { color: #D8DFEE !important; }
[data-theme=dark] .payslip-row a.text-muted,
[data-theme=dark] .payslip-row a.text-muted i { color: #D8DFEE !important; }
/* ===== Dashboard - Toggle Salary Icon Dark Mode ===== */
[data-theme=dark] #toggleSalaryIcon { color: #D8DFEE !important; }
