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;
}

.required-field::after {
    content: " *";
    color: #dc3545; /* Bootstrap danger red */
    font-weight: bold;
}

/* Highlight textboxes, selects, and textareas with validation errors */
input.input-validation-error,
select.input-validation-error,
textarea.input-validation-error {
    border: 1px solid #dc3545 !important;
    background-color: #fff8f8;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Ensure validation messages stand out */
.field-validation-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

@font-face {
    font-family: 'IDAutomationCode39';
    src: url('/fonts/IDAutomationCode39.otf') format('opentype'), url('/fonts/IDAutomationCode39.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.barcode-font {
    font-family: 'IDAutomationCode39', sans-serif;
    font-size: 24px;
    line-height: 1;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* Custom ghost button style for topbar dropdowns */
.btn-ghost-dark {
    background-color: transparent;
    transition: background-color 0.2s ease-in-out;
}

    .btn-ghost-dark:hover,
    .btn-ghost-dark:focus,
    .btn-ghost-dark.show {
        background-color: rgba(255, 255, 255, 0.12) !important;
        color: #ffffff !important;
    }

        /* Ensures the role subtitle remains readable on hover */
        .btn-ghost-dark:hover .user-role-text {
            color: rgba(255, 255, 255, 0.85) !important;
        }