html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    margin: 0;
    padding: 0;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}

html, body {
    height: 100%;
}

.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;
}

/* Ensure the toast completely vanishes from layout space when closed */
.toast.position-fixed:not(.show) {
    display: none !important;
    pointer-events: none !important;
}

/* Global toast stack (Views/Shared/_Toasts.cshtml) sits above the AdminLTE
   header/sidebar so notifications are never occluded. */
.toast-container {
    z-index: 1090;
}

#pilotSearchInput:focus {
    border-color: var(--bs-border-color) !important;
    box-shadow: none !important;
}

/* spacing for hidden col in logo table*/
#logosTable ul.dtr-details li span.dtr-title,
#templatesTable ul.dtr-details li span.dtr-title,
#assignedTemplateTable ul.dtr-details li span.dtr-title,
#templateToAssignTable ul.dtr-details li span.dtr-title {
    display: inline-block;
    min-width: 150px;
    font-weight: bold;
}


@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

[data-bs-theme="dark"] {
    --bs-body-bg: #1a1c23;
    --bs-body-color: #f8fafc;
}

/* ----- Profile page ----- */

/* Constrain the profile / change-password cards to a comfortable reading width
   while keeping them centered on wide screens. */
.profile-card {
    max-width: 900px;
}

/* Circular initials placeholder shown in the profile card header when the user
   has no uploaded photo. Sized to sit alongside the heading + role badge. */
.profile-avatar {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    color: #fff;
    background-color: var(--bs-primary, #0d6efd);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Keep the heading from pushing the avatar around on narrow viewports. */
.min-w-0 {
    min-width: 0;
}

