


/* Splash: paint a branded background + centered loader BEFORE Blazor boots,
   so the page is never a stark white rectangle while the WASM bundle downloads.
   #app is reused as Blazor's mount node after boot — its min-height rule keeps
   subsequent pages from collapsing if a component forgets to fill the viewport. */
html,
body {
    height: 100%;
    margin: 0;
    background: #ffffff;
    color: #282a38;
}

#app {
    min-height: 100%;
}

.astart-splash {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
    box-sizing: border-box;
}



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

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    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+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMj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DU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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;
        }

/* Sits in normal flow under the .loading-progress image, so the percentage is
   reliably readable on the white page background regardless of the plane SVG's
   colors. The ::after pseudo carries the live --blazor-load-percentage-text
   that Blazor updates during boot, then "Loading" once boot finishes. */
.loading-progress-text {
    margin-top: 0.5rem;
    text-align: center;
    font-weight: bold;
    color: #282a38 !important;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.page-header {
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.8) 100%), url("../media/branding/page-header.svg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom;
    /* MudAppBar's theme default is min-height: 64px, which clips the title +
       subtitle + divider + breadcrumb stack on phone-sized content. min-height: auto
       lets the bar size to whatever the content stack needs, so the height tracks
       the responsive type scales (h6 → h4) and the breadcrumb's expand/collapse. */
    min-height: auto;
}

.border-a:not(:hover) {
    border: 2px solid rgba(0, 0, 0, 0.09) !important;
/*    box-shadow: 0px 5px 2px rgba(0, 0, 0, 0.01), 0px 0px 1px rgba(0, 0, 0, 0.03), 0px 1px 3px rgba(0, 0, 0, 0.04);*/
}

.border-a:hover{
    scale: 1.008;
}

.hover-border:hover {
    border: 2px solid var(--mud-palette-primary);
    color: var( --mud-palette-primary);
    transition: ease 0.33s;
}


.hover-border:not(:hover) {
    border-width: 2px;
    color: initial !important;
}

.text-truncate {
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
}

.text-truncate-2 {
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
}

.astart-link-list .mud-list-item {
    border-color: #BDBDBD !important;
    border-bottom: 1px solid;
}

.hover-text-primary:hover * {
    color: var(--mud-palette-primary)
}

.astart-link-list-item {
    border-color: lightslategrey !important;
}

.astart-form-buttons {
    position: sticky;
    bottom: 0;
}

.astart-form-buttons, .astart-mobile-bottom-nav {
    box-shadow: 0 -10px 12px -18px rgb(0,0,0)
}

@media (max-width: 768px) {
    .astart-form-buttons {
        bottom: 3rem !important;
    }
}

.astart-disabled-form {
    opacity: 0.9;
}

.astart-disabled-form:active {
    pointer-events: none;
}

.application-timeline{
    margin-top: -25px;
    margin-bottom: 70px;
}

.application-timeline::before {
    top: 76px !important;
}

.application-timeline .mud-timeline-item-divider{
    min-height: unset !important;
}

/* Compact-view timeline: a CSS grid that auto-fits 8 status items into multiple
   rows on phone screens. The original MudTimeline (above) keeps the horizontal
   connector for the desktop path; this is a separate, self-contained layout. */
.application-timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0.5rem;
    padding: 0.5rem 0.25rem 0.25rem;
}

.tl-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.5rem 0.25rem;
    border: 1px solid var(--mud-palette-lines-default, #e0e0e0);
    border-radius: 6px;
    background: var(--mud-palette-surface, #fff);
    min-height: 84px;
}

.tl-cell--current {
    border-color: var(--mud-palette-primary);
    border-width: 2px;
    box-shadow: 0 0 0 2px var(--mud-palette-primary) inset;
}

.tl-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.35rem;
    background: var(--mud-palette-grey-light, #cfd8dc);
    color: #fff;
    font-weight: bold;
    font-size: 0.7rem;
}

.tl-dot--start {
    background: var(--mud-palette-primary);
}

.tl-dot--current {
    background: #fff;
    color: var(--mud-palette-primary);
    border: 3px solid var(--mud-palette-primary);
}

.tl-dot--complete {
    background: var(--mud-palette-primary);
}

.tl-dot-number {
    line-height: 1;
}

.tl-label {
    width: 100%;
}


.mud-input-control > .mud-input-control-input-container > .mud-input-label-inputcontrol{
    font-weight: bold !important;
}
.mud-input-control > .mud-input-control-input-container > .mud-input.mud-shrink ~ .mud-input-label-inputcontrol.mud-input-label-animated,
.mud-input-control > .mud-input-control-input-container > .mud-input:focus-within ~ .mud-input-label-inputcontrol.mud-input-label-animated {
    transform: translate(14px, -9px) scale(1) !important;
}
.mud-input-outlined-border legend {
    font-size: 1.1rem !important; /*Exactly 75% of the 1.2rem size above */
    font-weight: bold !important; /* CRITICAL: This must match so the width calculates correctly */
}

/* Validation error messages: make them noticeably more prominent than
   MudBlazor's default small grey helper text. Targets MudForm's per-field
   error helper text (.mud-input-helper-text.mud-input-error) and the legacy
   .validation-message class. The ⚠ prefix draws the eye even before the
   text is read. */
.mud-input-helper-text.mud-input-error,
.validation-message {
    color: var(--mud-palette-error);
    font-weight: 600;
    font-size: 0.875rem;
    margin-top: 0.35rem;
    line-height: 1.35;
}

.mud-input-helper-text.mud-input-error::before {
    content: "!"; /* ⚠ warning sign */
    margin-right: 0.3rem;
    font-size: 0.9rem;
}


.text-xss{
    font-size: 0.70rem;
}

/* ApplicationView card + section styling. */
.astart-app-card {
    border-radius: 8px;
    transition: box-shadow 0.2s ease;
}

.astart-app-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.astart-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--mud-palette-text-secondary, #555);
}

.astart-status-block {
    border-left: 4px solid var(--mud-palette-primary);
    padding-left: 0.75rem;
    margin: 0.25rem 0;
}

/* Sticky columns: the shorter of the two stays in view while the longer one
   scrolls naturally. position: sticky on both means both columns try to stick
   at top: 1rem; the shorter column reaches the container bottom first and
   unsticks, while the longer one continues to stick. */
.astart-sticky-col {
    position: sticky;
    top: 1rem;
    align-self: flex-start;
}

/* Profile panel: collapse removes the bulk of the left card so it can fit
   within a single viewport when stuck. */
.astart-profile-panel {
    border: 1px solid var(--mud-palette-lines-default, #e0e0e0);
    border-radius: 6px;
}

/* Updates section: a visually distinct region grouping admin status, decision,
   payment, and messages so it reads as its own column on the right. */
.astart-updates-section {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--mud-palette-lines-default, #e0e0e0);
    border-radius: 8px;
}

/* Guided profile-setup progress card. The default MudProgressLinear + caption
   pair was too quiet — easy to miss when the user lands on step 3 of 7. This
   card gives the step state its own visual weight: primary left-border accent,
   large percentage stat, filled step chip, and a Size.Large progress bar. */
.astart-guided-progress {
    background: rgba(0, 0, 0, 0.02);
    border-left: 4px solid var(--mud-palette-primary);
    border-radius: 8px;
    transition: box-shadow 0.2s ease;
}

.astart-guided-progress:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.astart-guided-progress-pct {
    text-align: center;
}

.astart-guided-progress-bar {
    /* MudProgressLinear's track uses overflow:hidden, so the rounded ends on
       a custom border-radius need the value on both the bar and the inner
       .mud-progress-linear-bar element. */
    border-radius: 6px;
    overflow: hidden;
}

.astart-updates-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--mud-palette-lines-default, #e0e0e0);
}

.surface-bg {
    background-color: #EEEEEE !important;
}

.border-surface {
    border-color: #e7e7e7 !important;
}


/*Home Page CSS*/
/* 1. Sets the boundaries so the flag doesn't escape */
.image-anchor-wrapper {
    position: relative;
    width: 100%;
}

/* 2. Pins and styles the flag tag */
.flag-badge-overlay {
    position: absolute;
    bottom: 12px; /* Distance from the bottom of the image */
    right: 12px; /* Distance from the right of the image */
    /* Creates the white border effect seen in your screenshot */
    border-radius: 6px;
    border: 2px solid white;
    /* Applies your custom ultra-subtle shadow for depth */
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.01), 0px 0px 1px rgba(0, 0, 0, 0.03), 0px 1px 3px rgba(0, 0, 0, 0.04);
    /* Controls the size of the flag box */


    display: flex;
    align-items: center;
    justify-content: center;
}

.astart-label {
/*    font-weight: bold !important;*/
/*    text-align: left !important;*/
/*    font-size: medium !important;*/
/*    margin-bottom: -6px;*/
}
.sticky-header {
    position: sticky;
    top: 8.5rem;
    top: 4.25rem;
    z-index: 2;
    background-color: white;
    box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.08), 0px 3px 4px rgba(0, 0, 0, 0.1), 0px 1px 4px -1px rgba(0, 0, 0, 0.1);
    padding: 0;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    /*.p-carousel-indicators{
    padding: 0.15rem !important;
  }
  .p-button{
    padding-left:0.25rem;
    padding-right:0.25rem;
  }*/
}
.md\:sticky-header {
    position: sticky;
    top: 8.5rem;
    z-index: 2;
    background-color: white;
    box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.08), 0px 3px 4px rgba(0, 0, 0, 0.1), 0px 1px 4px -1px rgba(0, 0, 0, 0.1);
    padding: 0;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;

    @media (min-width: 700px) {
        top: 5.25rem;
    }
}

.nav-link .mud-typography-body1{
    font-weight: bold !important;
    text-transform: uppercase;
}

.nav-link .mud-typography-body2 {
    font-weight: bold !important;
    text-transform: uppercase;
}


@media screen and (min-width: 768px) {
    .navlinkbar{
        top: 60px;
    }
}