/*
	This CSS file matches the color scheme from MudBlazor to Bootstrap when utilized for authentication.
	The file remains available at all times for demonstration purposes,
	but it is exclusively employed in the 'App.razor' component when authentication is enabled.
*/



.btn-primary {
    text-transform: uppercase;
    border: none;
    --bs-btn-color: #fff !important;
    --bs-btn-bg: #F39304 !important;
    --bs-btn-hover-color: #fff !important;
    --bs-btn-hover-bg: #f07e3b !important;
    --bs-btn-active-color: #fff !important;
    --bs-btn-active-bg: #F39304 !important;
    --bs-btn-disabled-color: #fff !important;
    --bs-btn-disabled-bg: #9f9f9f !important;
}

.nav-pills {
    --bs-nav-pills-link-active-bg: var(--mud-palette-primary) !important;
}

.nav {
    --bs-nav-link-color: var(--mud-palette-primary) !important;
    --bs-nav-link-hover-color: var(--mud-palette-primary-darken) !important;
}

.text-centre {
    text-align: center !important;
}

.footer {
    border-top: 3px solid lightgray;
    bottom: 0;
    color: white;
    text-align: right;
    width: 100%;
}

.loginLogo {
    content: url("/images/LoginLogo.png");
    width: 248px;
}

.headerLogo {
    content: url("/images/HeaderLogo.png");
}

.hover-effect:hover {
    background-color: var(--mud-palette-primary-hover) !important;
    transition: background-color 0.2s ease;
}

.cursor-pointer {
    cursor: pointer;
}

html, body {
    overflow: auto !important;
    height: auto !important;
}

.mud-main-content {
    min-height: 100vh;
}

/* Auth pages (NoMenuLayout): reserve space for the fixed bottom copyright bar */
.no-menu-main-content {
    padding-bottom: calc(var(--app-bar-height, 42px) + 1.5rem + env(safe-area-inset-bottom, 0px));
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiI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yNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

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

/* Relocation dashboard + client information: left accent (app bar) + rounding on marked Mud surfaces. */
.relocation-dashboard-scope .relocation-dashboard-surface.mud-card,
.relocation-dashboard-scope .relocation-dashboard-surface.mud-paper,
.application-information-page .relocation-dashboard-surface.mud-card,
.application-information-page .relocation-dashboard-surface.mud-paper {
    box-sizing: border-box;
    border-radius: 12px;
    border-left: 4px solid var(--mud-palette-appbar-background, #f39304);
}

.relocation-dashboard-scope .relocation-dashboard-surface.mud-card.border-primary {
    border-left-width: 4px;
    border-left-color: var(--mud-palette-appbar-background, #f39304);
}

.relocation-dashboard-scope .relocation-dashboard-surface.home-search-todos.mud-paper {
    border-left-color: var(--mud-palette-error, #f44336);
}

/* Client relocation switcher (Relocation dashboard + agreements page); same accent without Blazor isolation. */
.mud-paper.client-relocation-switcher-row {
    box-sizing: border-box;
    border-radius: 12px;
    border-left: 4px solid var(--mud-palette-appbar-background, #f39304);
}

/* Applicant information and preferences: room for sticky action bar on mobile and desktop */
.application-information-page {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.application-information-page .application-information-content {
    /* Inner wrapper avoids Mud py-* utilities overriding padding-bottom on MudContainer */
    padding-bottom: calc(8rem + env(safe-area-inset-bottom, 0px));
}

/* Applicant profile steps: top-level instruction above split sections (e.g. housing). */
.application-step-intro {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    border: 1px solid var(--mud-palette-lines-default, rgba(0, 0, 0, 0.1));
    border-left: 4px solid var(--mud-palette-appbar-background, #f39304);
    background: var(--mud-palette-surface, #fff)
}

.application-step-intro__icon {
    flex-shrink: 0;
    margin-top: 0.125rem;
    opacity: 0.9;
}

.application-step-intro__title {
    font-weight: 600;
    line-height: 1.35;
}

.application-step-intro__list {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.application-step-intro__list li + li {
    margin-top: 0.35rem;
}

@media (min-width: 600px) {
    .application-information-page .application-information-content {
        padding-bottom: calc(4rem + env(safe-area-inset-bottom, 0px));
    }
}

.sticky-form-action-bar,
.application-information-action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    background: var(--mud-palette-surface, #fff);
    border-top: 1px solid var(--mud-palette-lines-default, rgba(0, 0, 0, 0.12));
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

.applicant-profile-edit-page {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.applicant-profile-edit-page .applicant-profile-edit-content {
    padding-bottom: calc(8rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 600px) {
    .applicant-profile-edit-page .applicant-profile-edit-content {
        padding-bottom: calc(4rem + env(safe-area-inset-bottom, 0px));
    }
}

.applicant-profile-wizard-action-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.5rem;
}

.applicant-profile-wizard-action-bar__start {
    justify-self: start;
}

.applicant-profile-wizard-action-bar__center {
    justify-self: center;
}

.applicant-profile-wizard-action-bar__end {
    justify-self: end;
}

.applicant-profile-wizard-stepper .mud-stepper-nav {
    flex-wrap: nowrap;
}

/* Step content and nav buttons are rendered outside the stepper (sticky bar + MudPaper). */
.applicant-profile-wizard-stepper .mud-stepper-content {
    display: none;
}

/* Applicant profile wizard: group dense fields into readable sections */
.applicant-profile-form-section {
    padding: 1rem 1.25rem 1.25rem;
    border-radius: 10px;
    border: 1px solid var(--mud-palette-lines-default, rgba(0, 0, 0, 0.12));
    border-left: 3px solid var(--mud-palette-primary, #594ae2);
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.applicant-profile-form-section__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.875rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--mud-palette-lines-default, rgba(0, 0, 0, 0.08));
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--mud-palette-primary, #594ae2);
}

.applicant-profile-form-section__title .mud-icon-root {
    opacity: 0.9;
}

.applicant-profile-form-section__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--mud-palette-lines-default, rgba(0, 0, 0, 0.08));
}

.applicant-profile-form-section__toolbar-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--mud-palette-primary, #594ae2);
}

@media (min-width: 960px) {
    .applicant-profile-form-section {
        padding: 1.125rem 1.5rem 1.375rem;
    }
}

/* Image preview and file upload controls */
.image-upload-loading {
    display: flex;
    align-items: center;
    min-height: 120px;
    color: var(--mud-palette-text-secondary);
}

.image-upload-preview {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.image-upload-preview--clickable {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.image-upload-preview--clickable:hover .image-upload-preview__img {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
}

.image-upload-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.image-upload-grid__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.image-upload-preview__img {
    flex-shrink: 0;
    display: block;
    max-width: 120px;
    max-height: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.image-upload-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.5;
}

.image-upload-status-badge--pending {
    background-color: rgba(237, 108, 2, 0.1);
    color: #c45700;
}

.image-upload-status-badge .mud-icon-root {
    font-size: 1rem !important;
    width: 1rem !important;
    height: 1rem !important;
}


.file-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.file-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3125rem 0.875rem;
    border-radius: 4px;
    border: 1px solid var(--mud-palette-primary, #594ae2);
    color: var(--mud-palette-primary, #594ae2);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    line-height: 1.75;
}

.file-upload-btn:hover {
    background-color: var(--mud-palette-primary-hover, rgba(89, 74, 226, 0.08));
}

.file-upload-btn:focus-visible {
    outline: 2px solid var(--mud-palette-primary, #594ae2);
    outline-offset: 2px;
}

.file-upload-btn .mud-icon-root {
    font-size: 1.1rem !important;
    width: 1.1rem !important;
    height: 1.1rem !important;
}

.document-upload-row {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--mud-palette-lines-default, rgba(0, 0, 0, 0.12));
    border-radius: 8px;
    margin-bottom: 0.8rem;
    background-color: #efefef
}

.document-upload-controls {
    display: flex;
    align-items: center;
}

.family-profile-internal-section {
    border: 1px solid var(--mud-palette-warning);
    border-left-width: 4px;
    background: color-mix(in srgb, var(--mud-palette-warning) 10%, transparent);
    border-radius: var(--mud-default-borderradius);
    padding: 1rem 1.1rem;
}

.family-profile-internal-section__title {
    font-weight: 600;
    color: var(--mud-palette-warning-darken);
}

.family-profile-internal-section__category + .family-profile-internal-section__category {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed color-mix(in srgb, var(--mud-palette-warning) 45%, transparent);
}

.family-profile-template-panel {
    border-color: color-mix(in srgb, var(--mud-palette-warning) 55%, transparent) !important;
    background: color-mix(in srgb, var(--mud-palette-warning) 6%, #fff);
}

.file-upload-btn--internal {
    border-color: var(--mud-palette-warning);
    color: var(--mud-palette-warning-darken);
}

.file-upload-btn--internal:hover {
    background: color-mix(in srgb, var(--mud-palette-warning) 14%, transparent);
}

/* Collapsible form entry cards (employment, pets, occupants, etc.) */
.form-entry-expansion-panels {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: transparent;
}

.form-entry-expansion-panels .mud-expansion-panels {
    background: transparent;
}

.form-entry-expansion-panels .form-entry-card.mud-expand-panel {
    border: 1px solid var(--mud-palette-lines-default, rgba(0, 0, 0, 0.12));
    border-left: 3px solid var(--mud-palette-primary, #594ae2);
    border-radius: 10px;
    background: transparent;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.form-entry-expansion-panels .mud-expand-panel-header {
    padding: 0.75rem 1rem 0.75rem 1.125rem;
    min-height: unset;
}

.form-entry-expansion-panels .mud-expand-panel-header .mud-expand-panel-text {
    flex: 1;
    margin: 0;
}

.form-entry-expansion-panels .mud-expand-panel .mud-collapse-container {
    border-top: none;
}

.form-entry-card__title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
}

.form-entry-card__body {
    padding: 0 1.125rem 1.25rem;
    border-top: 1px solid var(--mud-palette-lines-default, rgba(0, 0, 0, 0.08));
    padding-top: 1rem;
}

.form-entry-card__status-chip {
    align-self: flex-start;
    font-weight: 600;
}

@media (min-width: 960px) {
    .form-entry-card__body {
        padding: 1rem 1.5rem 1.375rem;
    }
}

/* Required proof-of-employment upload block */
.employment-proof-section {
    padding: 1rem 1.25rem 1.25rem;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary, #594ae2) 35%, var(--mud-palette-lines-default, rgba(0, 0, 0, 0.12)));
    border-left: 4px solid var(--mud-palette-primary, #594ae2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.employment-proof-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid color-mix(in srgb, var(--mud-palette-primary, #594ae2) 18%, transparent);
}

.employment-proof-section__title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--mud-palette-primary, #594ae2);
}

.employment-proof-section__title .mud-icon-root {
    opacity: 0.9;
}

.employment-proof-section__required-chip {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.employment-proof-section__description {
    color: var(--mud-palette-text-secondary, rgba(0, 0, 0, 0.6));
    margin-bottom: 0.875rem;
}

.employment-proof-section .document-upload-controls {
    margin-top: 0.25rem;
}

@media (min-width: 960px) {
    .employment-proof-section {
        padding: 1.125rem 1.5rem 1.375rem;
    }
}

.applicant-profile-form-section .additional-document-category:not(:last-child) {
    border-bottom: 1px solid var(--mud-palette-lines-default, rgba(0, 0, 0, 0.08));
    padding-bottom: 1.2rem;
    margin-bottom: 1.2rem;
}

/* Property media lightbox — MudDialog portals to body, so chrome overrides must be global.
   Beats MudBlazor `.mud-dialog .mud-dialog-title { padding: 16px 24px; }`. */
.mud-dialog.media-lightbox-dialog--mobile {
    background: #000;
}

.mud-dialog.media-lightbox-dialog--mobile .mud-dialog-title {
    background: #000;
    color: #fff;
    padding: 12px 16px;
}

.mud-dialog.media-lightbox-dialog--mobile .mud-dialog-content {
    background: #000;
    color: #fff;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0 16px 12px;
}

/* Staff calendar: Heron roots are outside Blazor CSS isolation (same as dashboard Mud surfaces). */
.mud-calendar.staff-calendar .mud-cal-toolbar {
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px 4px;
    overflow-x: visible;
}

.mud-calendar.staff-calendar .mud-cal-toolbar-nav {
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.mud-calendar.staff-calendar .calendar-event-tooltip-root,
.mud-calendar.staff-calendar .mud-tooltip-root.calendar-event-tooltip-root {
    display: block !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.mud-calendar.staff-calendar .mud-cal-month-view .mud-cal-drop-item,
.mud-calendar.staff-calendar .mud-cal-month-view .mud-cal-drop-item .mud-drop-item {
    max-width: 100%;
    overflow: hidden;
}

.mud-calendar.staff-calendar .mud-cal-week-view .mud-cal-drop-item:has(.calendar-event-allday),
.mud-calendar.staff-calendar .mud-cal-week-view [style*="position:absolute"]:has(.calendar-event-allday),
.mud-calendar.staff-calendar .mud-cal-week-view [style*="position: absolute"]:has(.calendar-event-allday) {
    left: 0 !important;
    width: max-content !important;
    max-width: 100% !important;
    z-index: 1;
}

.mud-calendar.staff-calendar .mud-cal-week-view .mud-cal-drop-item:has(.calendar-event-timed),
.mud-calendar.staff-calendar .mud-cal-week-view [style*="position:absolute"]:has(.calendar-event-timed),
.mud-calendar.staff-calendar .mud-cal-week-view [style*="position: absolute"]:has(.calendar-event-timed) {
    left: 0 !important;
    width: 100% !important;
    z-index: 2;
}
