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;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Disabled button cursor - shows not-allowed cursor on hover */
button:disabled,
.btn:disabled,
a.btn:disabled,
input[type="button"]:disabled,
input[type="submit"]:disabled {
  cursor: not-allowed !important;
}

/* ============================================
   Permission-based Read-only/Disabled Styles
   ============================================
   Use this class when user doesn't have permission
   to edit/add/delete. Same styling as Payroll's
   Total Salary column - gray background with not-allowed cursor.
   ============================================ */

/* For readonly input fields with not-allowed class (same as Payroll Total Salary) */
input.not-allowed[readonly],
input[readonly].not-allowed {
  background-color: #e9ecef !important;
  cursor: not-allowed !important;
  border: 1px solid #ced4da !important;
}

/* For readonly textarea fields with not-allowed class */
textarea.not-allowed[readonly],
textarea[readonly].not-allowed {
  background-color: #e9ecef !important;
  cursor: not-allowed !important;
  border: 1px solid #ced4da !important;
  resize: none;
}

/* For disabled select/dropdown fields with not-allowed class */
select.not-allowed[disabled],
select[disabled].not-allowed {
  background-color: #e9ecef !important;
  cursor: not-allowed !important;
  border: 1px solid #ced4da !important;
}

/* For buttons and links without permission */
/* Keep original colors but make them 70% visible (lighter) */
.btn.not-allowed,
a.not-allowed {
  opacity: 0.7 !important;
  cursor: not-allowed !important;
  text-decoration: none;
  pointer-events: auto !important; /* Allow clicks to show popup */
}

/* Ensure not-allowed cursor on hover for buttons */
.btn.not-allowed:hover,
.btn.not-allowed:focus,
.btn.not-allowed:active,
a.not-allowed:hover,
a.not-allowed:focus,
a.not-allowed:active {
  cursor: not-allowed !important;
  opacity: 0.7 !important;
}