/* /Components/ApplicationStepBar.razor.rz.scp.css */
/* Holds the step bar and the document-analysis indicator on one line. The indicator right-aligns
   itself (margin-left:auto in its own scoped css) and wraps to its own right-aligned line when the
   step bar - which already wraps at this container width - leaves no room beside it. */
.step-row[b-f0hycz7153] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.step[b-f0hycz7153] {
    transition: opacity 0.15s ease;
}

/* Anchors inherit the step colours rather than the global link colour. */
.step-link[b-f0hycz7153] {
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

.step-link:hover[b-f0hycz7153] {
    opacity: 0.8;
}

.step-static[b-f0hycz7153] {
    cursor: default;
}

.step-done[b-f0hycz7153] {
    background: #E6F4EA;
    color: #1E7A34;
}

.step-current[b-f0hycz7153] {
    background: var(--primary);
    color: var(--primary-foreground);
}

.step-upcoming[b-f0hycz7153] {
    background: var(--muted);
    color: var(--muted-foreground);
}
/* /Components/DocumentAnalysisIndicator.razor.rz.scp.css */
/* margin-left:auto pins the chip to the far right of the step bar's row when both fit on one line,
   and keeps it right-aligned on its own line when they don't - the step bar already wraps inside
   the wizard's max-w-2xl container, so "beside the bar" has to degrade gracefully rather than
   leaving the chip looking like it fell off the end. */
.analysis-wrap[b-yjp6nwcq8n] {
    position: relative;
    margin-left: auto;
}

/* Mirrors ApplicationStepBar's .step padding/font and .step-upcoming's colours exactly, so the chip
   sits at precisely the step bar's height and reads as part of the same family - without taking the
   orange, which stays reserved for the current-step marker. */
.analysis-chip[b-yjp6nwcq8n] {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    margin: 0;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted-foreground);
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
}

.analysis-chip .analysis-count[b-yjp6nwcq8n] {
    color: var(--foreground);
    font-weight: 600;
}

/* Anchored right so it opens leftward: at the right edge of the wizard's 672px container, a
   left-anchored panel this wide would run off the page. */
.analysis-panel[b-yjp6nwcq8n] {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.375rem;
    min-width: 19rem;
    background: var(--popover);
    color: var(--popover-foreground);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: left;
    z-index: 30;
}

/* Deliberately NO overflow:hidden here. This element is the containing block for its own
   absolutely-positioned ::before bridge below, and an ancestor clips abs-pos descendants it is
   itself the containing block for - so overflow:hidden silently made the bridge zero-area and
   un-hittable, closing the panel the moment the pointer crossed the gap. It isn't needed either:
   no child of this panel paints a background, so nothing can bleed past the rounded corners. */

/* Invisible bridge so the panel doesn't close while the cursor crosses the gap - same trick
   .bp-nav-dropdown-menu uses in bp-brand.css. */
.analysis-panel[b-yjp6nwcq8n]::before {
    content: "";
    position: absolute;
    top: -0.375rem;
    left: 0;
    right: 0;
    height: 0.375rem;
}

/* focus-within as well as hover, so this works on touch and by keyboard rather than mouse only. */
.analysis-wrap:hover .analysis-panel[b-yjp6nwcq8n],
.analysis-wrap:focus-within .analysis-panel[b-yjp6nwcq8n] {
    display: block;
}

.analysis-panel-header[b-yjp6nwcq8n] {
    padding: 0.5rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--muted-foreground);
    border-bottom: 1px solid var(--border);
}

.analysis-row[b-yjp6nwcq8n] {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.75rem;
}

.analysis-row + .analysis-row[b-yjp6nwcq8n] {
    border-top: 1px solid var(--border);
}

.analysis-row-icon[b-yjp6nwcq8n] {
    display: inline-flex;
    color: var(--muted-foreground);
    flex-shrink: 0;
}

.analysis-row-text[b-yjp6nwcq8n] {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.analysis-row-label[b-yjp6nwcq8n] {
    font-size: 0.8125rem;
    font-weight: 500;
}

.analysis-row-sub[b-yjp6nwcq8n] {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.6875rem;
    color: var(--muted-foreground);
}

/* The brand's "square peg" motif - an orange square rotated 11deg, same as .bp-hero-motif's
   .bp-motif-sq. Orange is fine here: it's inside an opened panel, not competing with the step bar. */
.analysis-peg[b-yjp6nwcq8n] {
    width: 5px;
    height: 5px;
    border-radius: 1px;
    background: var(--primary);
    transform: rotate(11deg);
    flex-shrink: 0;
}

.analysis-panel-foot[b-yjp6nwcq8n] {
    padding: 0.5rem 0.75rem;
    border-top: 1px solid var(--border);
    font-size: 0.6875rem;
    color: var(--muted-foreground);
}
/* /Components/StatusHistoryTooltip.razor.rz.scp.css */
.sht-trigger[b-bwxalzs1po] {
    cursor: help;
    border-bottom: 1px dashed var(--muted-foreground);
}

.sht-panel[b-bwxalzs1po] {
    position: fixed;
    z-index: 70;
    min-width: 220px;
    max-width: 280px;
    background-color: var(--popover);
    color: var(--popover-foreground);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem;
    font-size: 0.8125rem;
}

.sht-panel-header[b-bwxalzs1po] {
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.sht-panel-empty[b-bwxalzs1po] {
    color: var(--muted-foreground);
}

.sht-timeline[b-bwxalzs1po] {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sht-timeline-item[b-bwxalzs1po] {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.sht-timeline-item:not(:last-child)[b-bwxalzs1po]::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 12px;
    bottom: -2px;
    width: 1px;
    background-color: var(--border);
}

.sht-marker[b-bwxalzs1po] {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    margin-top: 4px;
    background-color: var(--bp-orange);
    border-radius: 1px;
    transform: rotate(11deg);
}

.sht-timeline-item:first-child .sht-status[b-bwxalzs1po] {
    color: var(--bp-orange);
}

.sht-status[b-bwxalzs1po] {
    font-weight: 500;
    color: var(--foreground);
}

.sht-timestamp[b-bwxalzs1po] {
    color: var(--muted-foreground);
    font-size: 0.75rem;
}
/* /Pages/Applications/ApplicationDetails.razor.rz.scp.css */
/* This app ships a purged Tailwind subset (only classes actually used by BlazorBlueprint's own
   components get compiled into the served CSS - see App.razor's <link> list), so ad-hoc utilities
   like hover:underline, bg-green-100, or the color/10 opacity-modifier syntax silently do nothing
   here, and native <input type="file"> chrome can't be restyled with utility classes anyway (it needs
   the ::file-selector-button pseudo-element). Scoped CSS (Blazor CSS isolation) sidesteps all of that
   with plain rules against this design system's real CSS variables (see wwwroot/styles/themes/default.css). */

.file-input-link[b-gusbuskzki]::file-selector-button {
    cursor: pointer;
}

.file-input-link:hover[b-gusbuskzki]::file-selector-button {
    text-decoration: underline;
    color: var(--primary);
}

.uploaded-label[b-gusbuskzki] {
    text-decoration: line-through;
    color: var(--muted-foreground);
}

/* Clicking a required-file label selects that type in the Upload Files section below - the pointer
   cursor and hover color are the only cue needed since it's not an actual link/button element. */
.required-label[b-gusbuskzki] {
    cursor: pointer;
}

.required-label:hover[b-gusbuskzki] {
    color: var(--primary);
}

/* Background-polled quality-gate soft-reject flag - reuses this design system's real warning
   variables (see wwwroot/styles/themes/default.css) rather than Tailwind amber utilities, so it
   isn't at risk of the purged-subset issue this file's own banner warns about.
   ".required-label.flagged-label" (two classes) rather than ".flagged-label" alone, so this
   reliably wins over ".uploaded-label" when a document is both already-uploaded AND flagged -
   equal-specificity single-class rules would otherwise depend on source order, which is fragile.
   text-decoration is reset to none so the strikethrough doesn't fight with the warning colour. */
.required-label.flagged-label[b-gusbuskzki] {
    color: var(--alert-warning-foreground);
    background-color: var(--alert-warning-bg);
    text-decoration: none;
    border-radius: 0.25rem;
    padding: 0 0.25rem;
}

.flagged-icon[b-gusbuskzki] {
    color: var(--alert-warning);
}

/* sm:grid-cols-3 isn't in the compiled Tailwind subset (only sm:grid-cols-2 and lg:grid-cols-3 are -
   see the file banner above), so the Marital Status / Business Type / Premises row fell back to
   stacking. Plain CSS grid, no responsive breakpoint needed for this internal 3-field row. */
.conditions-grid[b-gusbuskzki] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
/* /Pages/Applications/PopiaNotice.razor.rz.scp.css */
/* Tailwind's list-decimal/list-disc/list-inside utilities aren't in this app's compiled CSS (same
   purged-subset issue noted elsewhere in this project), and whatever reset this app ships zeroes out
   the browser's default list markers too - so numbers/bullets never showed at all. Plain scoped CSS
   instead of guessing at more utility classes. */
.popia-list[b-ec86pgfmfb] {
    list-style: decimal;
    padding-left: 1.5rem;
    margin: 0;
}

.popia-list > li[b-ec86pgfmfb] {
    padding-left: 0.25rem;
}

.popia-list > li + li[b-ec86pgfmfb] {
    margin-top: 0.75rem;
}

.popia-sublist[b-ec86pgfmfb] {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0.5rem 0 0;
}

.popia-sublist > li + li[b-ec86pgfmfb] {
    margin-top: 0.375rem;
}
/* /Shared/AiChatWidget.razor.rz.scp.css */
.chat-panel[b-20siq3y1nr] {
    position: relative;
    width: 22rem;
    height: 34rem;
    min-width: 18rem;
    min-height: 20rem;
    max-width: min(90vw, 40rem);
    max-height: min(80vh, 48rem);
    overflow: hidden;
}

.chat-messages[b-20siq3y1nr] {
    min-height: 0;
}

/* Custom top-left drag handle (native CSS resize only supports bottom-right). */
.chat-resize-handle[b-20siq3y1nr] {
    position: absolute;
    top: 0;
    left: 0;
    width: 1rem;
    height: 1rem;
    cursor: nwse-resize;
    z-index: 10;
    color: var(--muted-foreground, currentColor);
    touch-action: none;
}

.chat-resize-handle[b-20siq3y1nr]::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    opacity: 0.5;
}

.chat-resize-handle:hover[b-20siq3y1nr]::before {
    opacity: 1;
}

.chat-bubble[b-20siq3y1nr]  h2 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0.5rem 0 0.25rem;
}

.chat-bubble[b-20siq3y1nr]  h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0.4rem 0 0.2rem;
}

.chat-bubble[b-20siq3y1nr]  ul,
.chat-bubble[b-20siq3y1nr]  ol {
    margin: 0.25rem 0;
    padding-left: 1.25rem;
}

.chat-bubble[b-20siq3y1nr]  ul {
    list-style: disc;
}

.chat-bubble[b-20siq3y1nr]  ol {
    list-style: decimal;
}

.chat-bubble[b-20siq3y1nr]  p {
    margin: 0.25rem 0;
}

.chat-bubble[b-20siq3y1nr]  p:first-child {
    margin-top: 0;
}

.chat-bubble[b-20siq3y1nr]  p:last-child {
    margin-bottom: 0;
}

.chat-bubble[b-20siq3y1nr]  strong {
    font-weight: 600;
}

.chat-bubble[b-20siq3y1nr]  a {
    color: var(--primary);
    text-decoration: underline;
}

.chat-bubble[b-20siq3y1nr]  code {
    background: var(--border);
    border-radius: 0.25rem;
    padding: 0.1rem 0.3rem;
    font-size: 0.85em;
}

.chat-cursor[b-20siq3y1nr] {
    display: inline-block;
    animation: chat-cursor-blink-b-20siq3y1nr 1s steps(1) infinite;
    color: var(--primary);
}

@keyframes chat-cursor-blink-b-20siq3y1nr {
    50% {
        opacity: 0;
    }
}
