:root {
    --color-blue: #0E35D1;
    --color-yellow: #E1FF6B;
    --color-orange: #ECCD13;
    --mp-color-brand-primary: var(--color-blue);
    --mp-color-brand-accent: var(--color-yellow);
    --mp-color-brand-warning: var(--color-orange);
    --mp-color-surface-subtle: #F9FAFB;
    --mp-color-surface-info: #F6F8FF;
    --mp-color-surface-password: #FDFDE8;
    --mp-color-border-default: #E5E7EB;
    --mp-color-border-muted: #D1D5DB;
    --mp-color-border-info: var(--color-blue);
    --mp-color-text-muted: #6B7280;
    --mp-color-text-subtle: #555555;
    --mp-color-text-subtle-strong: #777777;
    --mp-color-warning-strong: #C5A800;
}

/* Table of Contents
   1. Base
   2. User Management
   3. Shared Components
   4. Utilities
   5. Navigation and Layout
   6. Print
   7. Motion Preferences
*/

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
}

body {
    width: 100%;
    background-image: url('../images/background.png');
    background-position: center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    color: black;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

.countdown-circle-container {
    padding-top: 16px;
    position: relative;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(1.5);
}

.countdown-value {
    position: absolute;
    font-weight: bold;
    font-size: 1.25rem;
    pointer-events: none;
}

.animated-progress .mud-progress-circular-svg {
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.2));
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.animated-progress.danger,
.pulse-countdown {
    animation: pulse 1s infinite;
}

.danger-text {
    color: var(--mud-palette-error);
}

.update-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    z-index: 1500;
    border-radius: 8px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.update-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

code {
    color: #c02d76;
}

.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;
}

mark {
    background-color: #a4dded;
    padding: 0 2px;
    border-radius: 3px;
}

/* User Management Layout Styles */
.mp-main-container {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.mp-flex-container {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    flex: 1 1 auto;
    min-height: 0;
}

.mp-content-container {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
    overflow-y: auto;
}

.mp-management-surface {
    border: 1px solid var(--mud-palette-primary);
}

.mp-action-container {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 200px;
    height: fit-content;
    flex: 0 0 auto;
}

.mp-search-row {
    position: relative;
    margin-bottom: 1rem;
    max-width: 100%;
}

.mp-search-row .input-group-text {
    background-color: white;
    border-right: none;
}

.mp-search-row .form-control {
    border-left: none;
}

.mp-table {
    width: 100%;
}

.mp-table th {
    font-weight: 600;
    vertical-align: middle;
    white-space: nowrap;
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 0.75rem 0.5rem;
}

.mp-table td {
    vertical-align: middle;
    padding: 0.5rem;
}

.mp-card-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mp-user-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
    overflow: hidden;
}

.mp-user-card-header {
    padding: 1rem;
    border-bottom: 1px solid #E5E7EB;
    background-color: #F9FAFB;
    font-weight: 600;
}

.mp-user-card-body {
    padding: 1rem;
}

.mp-user-detail {
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
}

.mp-user-detail span:first-child {
    font-size: 0.75rem;
    color: #6B7280;
    margin-bottom: 0.125rem;
    font-weight: 600;
}

.mp-sticky-alerts {
    position: sticky;
    top: 0;
    z-index: 1040;
    margin-bottom: 1rem;
}

.mp-action-button {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

@media (max-width: 767.98px) {
    .mp-flex-container {
        flex-direction: column;
    }

    .mp-action-container {
        width: 100%;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 0;
        border-top: 1px solid #dee2e6;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
        z-index: 1030;
    }

    .mp-content-container {
        padding-bottom: 5rem;
    }

    .mp-search-row .input-group {
        width: 100%;
    }
}

@media (min-width: 600px) {
    .square-box {
        height: 100%;
        aspect-ratio: 1 / 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

.hover-elevation {
    transition: box-shadow 0.3s ease;
}

.hover-elevation:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25) !important;
    z-index: 999;
}

.text-decoration-none:hover {
    text-decoration: none !important;
}

.heading-text-light {
    font-weight: normal;
    font-size: 1.15rem;
    color: var(--mud-palette-text-secondary);
    font-family: var(--mud-typography-default-family);
    line-height: var(--mud-typography-default-line-height);
    letter-spacing: var(--mud-typography-default-letter-spacing);
}

.border-primary {
    border-color: var(--mud-palette-primary);
}

.input-outline-primary .mud-input-outlined-border {
    border: 1px solid var(--mud-palette-primary) !important;
    transition: border 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.input-outline-primary .mud-input.mud-input-outlined:focus-within .mud-input-outlined-border {
    border: 2px solid var(--mud-palette-primary) !important;
}

.upload-container {
    width: 400px;
    margin: 0 auto 20px;
    padding: 16px;
    text-align: center;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.upload-title {
    margin-bottom: 10px;
}

.upload-box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    border: 2px dashed var(--mp-color-border-muted);
    background-color: #ffffff;
    transition: border-color 0.3s ease;
}

.upload-box.drag-over {
    border-color: var(--mud-palette-primary);
    border-style: solid;
    background-color: rgba(0, 123, 255, 0.1);
}

.upload-icon {
    margin-bottom: 10px;
}

.upload-text {
    margin-bottom: 5px;
    color: var(--mp-color-text-subtle);
}

.upload-caption {
    margin-bottom: 4px;
    color: var(--mp-color-text-subtle-strong);
}

.preview-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    position: relative;
}

.image-preview-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.image-preview {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.remove-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 1;
    /* Ensure it's above the image */
}

.processing-icon {
    position: absolute;
}

.status-icon {
    position: absolute;
    font-size: 48px !important;
}

.success-icon {
    color: green;
}

.error-icon {
    color: red;
}

.rounded {
    border-radius: 18px;
}

.white-bg {
    background: white !important;
}

.neon-yellow-bg {
    background-color: #E1FF6B;
}

.logo-a {
    font-style: italic;
    font-weight: 100 !important;
    font-size: 36px !important;
    font-stretch: extra-condensed !important;
    transition: font-size 0.4s ease-in-out;
}

.logo-b-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.logo-b {
    font-weight: 600 !important;
    font-size: 24px !important;
    margin-left: 3px !important;
    transition: font-size 0.4s ease-in-out;
}

.logo-environment {
    color: #1976d2 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em;
    margin-left: 3px !important;
    margin-top: -2px;
    line-height: 1;
}

@media (max-width: 960px) {
    .logo-a {
        font-size: 28px !important;
        /* Smaller size for mobile */
    }

    .logo-b {
        font-size: 18px !important;
        /* Smaller size for mobile */
    }

    .logo-environment {
        font-size: 8px !important;
    }
}

@media (max-width: 600px) {
    .logo-a {
        font-size: 22px !important;
        /* Even smaller for very small phones */
    }

    .logo-b {
        font-size: 16px !important;
        /* Even smaller for very small phones */
    }

    .logo-environment {
        font-size: 7px !important;
    }
}

.profile-grid {
    display: grid;
    grid-template-columns: 200px;
}

.enum-dropdown-select {
    height: 32px;
    background-color: var(--color-blue);
    color: white;
    border-radius: 24px;
    font-size: 1.25rem;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px 1px var(--color-yellow);
    }

    to {
        box-shadow: 0 0 5px 1px var(--color-blue);
    }
}

.search>div {
    background: white;
    border-radius: 20px;
}

.search {
    width: 100%;
    max-width: 725px;
    margin: auto;
    min-width: 300px;
}

.search-buttons-container {
    position: absolute;
    right: 5%;
}

.search-button {
    transform-origin: center right;
}

.font-16 {
    font-size: 16px;
}

.mud-button-label {
    margin-top: 2px;
}

.mud-input-outlined-border {
    border-radius: 18px !important;
}

.mud-input-numeric-spin {
    padding-right: 12px !important;
}

.fade-transition {
    transition: opacity 0.3s ease-in-out;
}

.custom-button {
    border: 1px solid black !important;
    color: black !important;
}

.custom-button-highlighted {
    background-color: var(--mud-palette-secondary) !important;
    color: black !important;
}

.mp-cancel-button {
    border-radius: 9999px !important;
    text-transform: uppercase;
    background-color: transparent !important;
    color: var(--mud-palette-error) !important;
    border: 1px solid var(--mud-palette-error) !important;
}

.mp-cancel-button:hover {
    background-color: rgba(var(--mud-palette-error-rgb), 0.08) !important;
}

.mp-cancel-button .mud-button-label {
    font-weight: 700;
    letter-spacing: 0.06em;
}

.circular-thumbnail {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover !important;
}

.vh-60 {
    height: 60vh;
}

.vh-70 {
    height: 70vh;
}

.h-full {
    height: 100%;
}

.w-full {
    width: 100%;
}

.relative {
    position: relative;
}

.font-size-6xl {
    font-size: 6rem;
}

.font-size-3xl {
    font-size: 3rem;
}

.mt-6px {
    margin-top: 6px;
}

.height-360px {
    height: 360px;
}

.h-200px {
    height: 200px;
}

.w-270px {
    width: 270px;
}

.min-h-60vh {
    min-height: 60vh;
}

.min-h-screen {
    min-height: 100vh;
}

.min-h-wizard-panel {
    min-height: calc(100vh - 500px);
}

.w-200px {
    width: 200px;
}

.w-40px {
    width: 40px;
}

.max-w-500px {
    max-width: 500px;
}

.max-w-90 {
    max-width: 90%;
}

.max-w-100 {
    max-width: 100%;
}

.min-w-40 {
    min-width: 40%;
}

.min-w-unset {
    min-width: unset;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.min-w-0 {
    min-width: 0;
}

.bg-transparent {
    background: transparent;
}

.border-none {
    border: none;
}

.shadow-none {
    box-shadow: none;
}

.cursor-pointer {
    cursor: pointer;
}

.text-transform-none {
    text-transform: none;
}

.fw-bold {
    font-weight: bold;
}

.opacity-100-important {
    opacity: 100% !important;
}

.d-none-important {
    display: none !important;
}

.pl-6 {
    padding-left: 1.5rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.me-n12px {
    margin-right: -12px;
}

.tagged-wrapper-layout {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 0.5rem;
}

.tagged-values-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 1 1 auto;
    min-width: 0;
}

.tagged-input-dynamic-width {
    min-width: var(--tagged-input-min-width, 236px);
}

.search-shell {
    position: relative;
    min-width: 40%;
}

.full-size-input {
    width: 100%;
    height: 100%;
}

.upload-input-overlay {
    opacity: 0;
}

.cover-media {
    object-fit: cover;
}

.image-preview-frame {
    position: relative;
    width: 100%;
    height: 360px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.thumbnail-chip-compact {
    z-index: 10;
}

.thumbnail-chip-compact .mud-chip-close {
    z-index: 20;
    position: relative;
    font-size: 18px;
    margin-left: 8px;
}

.time-input-field {
    position: relative;
}

.time-input-field .mud-input-slot {
    padding-top: 9px !important;
    padding-bottom: 9px !important;
    align-items: center;
}

.time-input-field .mud-input-text {
    width: 56px;
}

.time-input-field .mud-input-control {
    flex: none;
}

.time-input-field .mud-input-numeric-spin {
    padding-right: 0 !important;
}

.adornment-icons {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 6px;
}

.hidden-picker-anchor {
    position: absolute;
    left: 0;
    top: 100%;
    opacity: 0;
    pointer-events: none;
    height: 0;
    width: 0;
}

.text-warning-strong {
    color: var(--mp-color-warning-strong);
}

.bg-brand-accent {
    background-color: var(--mp-color-brand-accent) !important;
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%
}

@media (max-width: 600px) {
    .tagged-wrapper {
        display: block !important;
        flex-wrap: wrap !important;
    }
}

.missing-status-dropdown {
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: -20px;
    z-index: 10;
}

.missing-status-dropdown .mud-menu {
    display: flex !important;
    width: 100%;
}

.orbital-image-wrapper {
    position: relative;
    margin-top: 20px;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-image {
    width: 100%;
    height: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 50%;
    animation-name: fadeInOpacity;
    animation-iteration-count: 1;
    animation-timing-function: ease-in;
    animation-duration: 2s;
}

.orbital-image-list {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    position: relative;
}

.small-images-container {
    position: absolute;
}

.small-image-container {
    position: absolute;
    height: 50px;
    width: 50px;
}

.small-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    cursor: pointer;
}

.orbit-container {
    position: relative;
    width: var(--main-image-size, 300px);
    min-height: var(--main-image-size, 300px);
    margin: 0 auto;
}

.orbit-center {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--main-image-size, 300px);
    height: var(--main-image-size, 300px);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 1;
    border-radius: 50%;
    overflow: hidden;
    border: 2px black solid;
    padding: 30px;
}

.orbit-item {
    position: absolute;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.status-history-scroll {
    max-height: var(--status-history-max-height, 300px);
    overflow-y: auto;
}

@media print {
    .status-history-scroll {
        max-height: none !important;
        overflow-y: visible !important;
    }
}

.image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    cursor: zoom-out;
}

.overlay-image-container img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    cursor: default;
}
.selected-orbit-item {
    border: 2px var(--color-blue) solid !important;
    animation: glow 1.5s infinite alternate;
}

.image-container {
    position: relative;
    height: 300px;
    display: inline-flex;
    margin: auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.face-image {
    height: 300px;
}

.scanning-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.scanning-animation {
    background: linear-gradient(transparent, rgba(0, 255, 0, 0.3), transparent);
    height: 20px;
    width: 100%;
    position: absolute;
    animation: scan 2s linear infinite;
}

.verification-status {
    background-color: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

@keyframes scan {
    0% {
        top: 0;
    }

    100% {
        top: calc(100% - 20px);
    }
}

.thumbnail-chip {
    height: 54px;
    border-radius: 27px;
    padding: 0 8px 0 0;
    margin: 6px;
    position: relative;
    z-index: 1000;
}

.thumbnail-chip .mud-chip-close {
    z-index: 20;
    position: relative;
    font-size: 18px;
    margin-left: 8px;
}

.thumbnail-image {
    width: 48px;
    height: 48px;
    border-radius: 24px;
    object-fit: cover;
    margin-right: 6px;
}

.webcam-title {
    margin-bottom: 1rem;
}

.image-preview-wrapper {
    position: relative;
    margin-top: 1rem;
}

.image-preview {
    max-width: 100%;
    border-radius: 8px;
}

.capture-fab {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
}

.retake-fab {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
}

.appbar-background-image {
    background-image: url('../images/background.png');
    background-position: center;
    background-size: 100% 100%;
    background-attachment: fixed;
}

.left-drawer {
    background: transparent !important;
    border: 0 !important;
    transition: width 0.3s ease;
}

.left-drawer .mud-drawer-content,
.left-drawer .mud-drawer,
.left-drawer-container {
    background: transparent !important;
    background-color: transparent !important;
}

.left-drawer.collapsed {
    width: 3rem !important;
}

.left-drawer.expanded {
    width: 10rem !important;
}

.left-drawer-container {
    height: 100vh;
    padding: 0 !important;
    margin: 0 !important;
}

a.left-drawer-nav-item {
    color: var(--mud-palette-drawer-text) !important;
    text-decoration: none !important;
}

.left-drawer-nav-item:hover {
    background-color: rgba(var(--mud-palette-primary-rgb), 0.08);
}

.hidden {
    visibility: hidden;
}

.menu-item-match {
    height: 36px;
    padding: 0 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin-bottom: 4px;
}

.menu-item-match:last-child {
    margin-bottom: 0;
}

.menu-item-match>.mud-menu-item-text {
    font-weight: bold;
    font-size: 0.875rem;
}

.menu-item-match.text-uppercase>.mud-menu-item-text {
    text-transform: uppercase !important;
}

.menu-status-info {
    background-color: var(--mud-palette-info);
    color: white;
}

.menu-status-info:hover {
    background-color: var(--mud-palette-info-darken);
}

.menu-status-error {
    background-color: var(--mud-palette-error);
    color: white;
}

.menu-status-error:hover {
    background-color: var(--mud-palette-error-darken);
}

.menu-status-warning {
    background-color: var(--mud-palette-warning);
    color: black;
}

.menu-status-warning:hover {
    background-color: var(--mud-palette-warning-darken);
}

.menu-status-success {
    background-color: var(--mud-palette-success);
    color: white;
}

.menu-status-success:hover {
    background-color: var(--mud-palette-success-darken);
}

.menu-status-default {
    background-color: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
}

.menu-status-default:hover {
    background-color: var(--mud-palette-surface-darken);
}

.glass-dropdown {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px) saturate(180%);
    -webkit-backdrop-filter: blur(8px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.appbar-padded {
    transition: padding 0.3s ease-in-out;
}

.hide-on-medium-screen,
.hide-on-small-screen {
    transition: opacity 0.3s ease, max-height 0.3s ease;
    max-height: 100px;
    overflow: hidden;
}

@media (min-width: 960px) {
    .appbar-padded {
        padding-left: 5%;
        padding-right: 5%;
    }

    .scroll-locked .mud-layout .mud-appbar.appbar-padded {
        padding-right: 5% !important;
    }

    .hide-on-medium-screen {
        opacity: 0;
        max-height: 0;
        display: none;
    }
}

.right-drawer {
    background: transparent !important;
}

.mud-drawer-pos-right {
    scrollbar-gutter: stable;
}

@media (max-width: 959px) {
    .right-drawer {
        background: transparent !important;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-radius: 12px;
    }

    .right-drawer-pull-tab {
        position: fixed;
        z-index: 1200;
        background-color: var(--mud-palette-primary);
        color: var(--mud-palette-primary-text);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        border-radius: 24px 0 0 24px;
        width: 24px;
        height: 48px;
        box-shadow: -2px 0 4px rgba(0, 0, 0, 0.1);
    }

    .right-drawer-pull-tab.pull-tab-close {
        right: var(--mud-drawer-width-right);
        z-index: 99999999;
        animation: mud-drawer-slide-in-right 225ms cubic-bezier(0, 0, 0.2, 1);
    }

    .hide-on-small-screen {
        opacity: 0;
        max-height: 0;
        display: none;
    }

    .left-drawer {
        background: var(--color-yellow) !important;
        -webkit-backdrop-filter: inherit;
        backdrop-filter: inherit;
        opacity: 80%;
    }
}

.text-black {
    color: black !important;
}

.justify-self-center {
    justify-self: center !important;
}

.hidden-canvas {
    display: none;
}

.mud-container,
.mud-paper {
    overflow: hidden;
}

@media print {

    .mud-drawer,
    .mud-drawer-content,
    .mud-drawer-container,
    .mud-drawer-fixed,
    .mud-drawer-open,
    .mud-drawer-right,
    .mud-drawer-left,
    .right-drawer-pull-tab {
        display: none !important;
    }

    .mud-main-content {
        padding-top: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }

    .mud-main-content,
    .mud-container,
    .scrollable-content {
        overflow: visible !important;
        max-height: none !important;
        height: auto !important;
    }

    .mud-button,
    .mud-icon-button,
    .mud-toolbar,
    .mud-appbar,
    #mud-snackbar-container {
        display: none !important;
    }

    body {
        background: white !important;
        color: black;
    }

    html,
    body {
        height: auto !important;
        overflow: visible !important;
    }

    .mud-paper,
    .mud-elevation,
    .border,
    .mud-table,
    .mud-expand-panel {
        box-shadow: none !important;
        border: none !important;
    }

    .mud-paper {
        page-break-inside: auto !important;
        break-inside: auto !important;
        overflow: visible !important;
        height: auto !important;
    }

    .mud-toolbar,
    .mud-icon-button,
    .mud-button-group,
    .mud-tabs,
    .mud-expand-panel-icon {
        display: none !important;
    }

    .mud-grid {
        display: block !important;
    }

    .mud-item {
        width: 100% !important;
        padding: 0 0 1rem 0 !important;
    }

    /* Management pages print styles - ensure whole list is printed */
    .management-toolbar,
    .mud-pagination,
    .mud-table-container .mud-table-actions,
    .mud-table-row .mud-table-cell:last-child,
    .mud-icon-button {
        display: none !important;
    }

    .mud-table-container {
        overflow: visible !important;
        max-height: none !important;
    }

    .mud-table {
        page-break-inside: auto !important;
    }

    .mud-table-row {
        page-break-inside: avoid !important;
        page-break-after: auto !important;
    }

    .mud-table-head {
        display: table-header-group !important;
    }

    .facilities-table,
    .users-table,
    .mud-stack[class*="w-100"] {
        overflow: visible !important;
        height: auto !important;
    }

    /* Ensure management tables show all data */
    .mud-table-container .mud-table-body {
        overflow: visible !important;
        max-height: none !important;
    }
}

.person-name {
    font-size: 1.5rem !important;
}

@media print {
    .person-name {
        font-size: 1.5rem !important;
    }
}

.mp-user-modal-surface {
    border-radius: 28px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.mp-user-modal-content {
    padding-inline: 32px;
    padding-block: 12px 32px;
}

.mp-user-modal-actions {
    padding: 0 32px 32px;
}

.mp-user-modal {
    padding: 0 16px;
}

.mp-user-modal-form {
    max-width: 880px;
    margin: 0 auto;
    gap: 24px;
}

.mp-user-modal-section {
    margin-top: 8px;
    gap: 8px;
}

.mp-user-modal-section-title {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.mp-user-modal-table-title {
    font-weight: 400;
}

.mp-user-modal-grid .mud-input-control,
.mp-user-modal-grid .mud-select,
.mp-user-modal-grid .mud-input {
    width: 100%;
}

.mp-user-modal-info-panel {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    margin-top: 12px;
    border: 1px solid var(--mp-color-border-info);
    border-radius: 10px;
    background: var(--mp-color-surface-info);
}

.mp-user-modal-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--mp-color-brand-accent);
    color: var(--mp-color-brand-primary);
}

.mp-user-modal-profile-table .mp-user-modal-permission-toggle .mud-checkbox-root {
    margin: 0 auto;
}

.mp-user-modal-user-type-table .mud-table-body td:first-child,
.mp-user-modal-user-type-table .mud-table-head th:first-child {
    width: 60%;
}

.mp-user-modal-user-type-table .mp-user-modal-user-type-select {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mp-user-modal-single-column-table .mud-table-head th:first-child,
.mp-user-modal-single-column-table .mud-table-body td:first-child {
    width: 100%;
}

.mp-user-modal-single-column-table .mud-table-head th:last-child,
.mp-user-modal-single-column-table .mud-table-body td:last-child {
    text-align: center;
}

.mp-user-modal-single-column-table .mp-user-modal-permission-toggle-single {
    justify-content: center;
}

.mp-user-modal-profile-column {
    text-align: left;
}

/* Temporary Password Modal Styles */
.mp-temp-password-modal {
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid var(--mud-palette-primary);
}

.mp-temp-password-modal .mud-dialog-title {
    display: none;
}

.mp-temp-password-modal .mud-dialog-content {
    padding: 0 24px 24px;
}

.mp-temp-password-field {
    width: 100%;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 600;
}

.mp-temp-password-field .mud-input {
    background-color: var(--mp-color-surface-password);
    border-radius: var(--mud-default-borderradius);
    padding-inline: 12px;
    min-height: 56px;
}

.mp-temp-password-field .mud-input-outlined-border {
    background: transparent;
    border-color: var(--mud-palette-lines-inputs);
    border-radius: var(--mud-default-borderradius);
}

.mp-temp-password-field input,
.mp-temp-password-field .mud-input-slot {
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--mud-palette-text-primary);
}

.mp-temp-password-btn {
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 32px;
}

.file-upload-container {
    width: 100%;
    font-family: Arial, sans-serif;
}

.file-upload-container .drop-zone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 300px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
    cursor: pointer;
    transition: border-color 0.3s;
    overflow-y: auto;
}

.file-upload-container .drop-zone.drag-over {
    border-color: #2196f3;
}

.file-upload-container .drop-zone-text-wrapper {
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: center;
}

.file-upload-container .drop-zone h6 {
    margin: 0;
    color: #666;
    font-size: 1.25rem;
}

.file-upload-container .file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.file-upload-container .thumbnail-list {
    display: flex;
    flex-wrap: wrap;
    margin-top: 16px;
    gap: 8px;
}

.file-upload-container .thumbnail-item {
    position: relative;
    height: 100px;
}

.file-upload-container .thumbnail-content {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #f0f0f0;
    border-radius: 16px;
    padding-right: 4px;
    height: 32px;
}

.file-upload-container .thumbnail-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
}

.file-upload-container .thumbnail-image-remove {
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.file-upload-container .toolbar {
    position: relative;
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 16px;
}

/* Management table alternating row colors */
.mp-management-table .mud-table-body .mud-table-row:nth-child(even):not(.facility-row--highlight):not(.user-row--highlight) {
    background-color: rgba(var(--mud-palette-grey-light-rgb), 0.3);
}

.mp-management-table .mud-table-body .mud-table-row:nth-child(odd):not(.facility-row--highlight):not(.user-row--highlight) {
    background-color: rgba(var(--mud-palette-grey-light-rgb), 0.1);
}

/* User row highlighting */
@keyframes userHighlight {
    0% {
        background-color: transparent;
    }
    20% {
        background-color: rgba(var(--mud-palette-primary-rgb), 0.18);
    }
    40% {
        background-color: transparent;
    }
    60% {
        background-color: rgba(var(--mud-palette-primary-rgb), 0.18);
    }
    80% {
        background-color: transparent;
    }
    100% {
        background-color: transparent;
    }
}

.mp-management-table .user-row--highlight {
    animation: userHighlight 2s ease-out 1;
    position: relative;
    z-index: 10;
    border: 2px solid rgba(var(--mud-palette-primary-rgb), 0.8) !important;
}

/* Reduced Motion Support */

@media (prefers-reduced-motion: reduce) {
    .animated-progress.danger,
    .pulse-countdown,
    .scanning-animation,
    .selected-orbit-item,
    .update-notification,
    .fade-transition,
    .hover-elevation,
    .mp-management-table .user-row--highlight {
        animation: none !important;
        transition: none !important;
    }
}
