/* Fluent UI base reset */
@import url('../_content/Microsoft.FluentUI.AspNetCore.Components/css/reboot.css');

/* Fluent UI component scoped styles (grid headers, autocomplete chips, etc.)
   Hash is tied to NuGet package v4.13.2 — update if package version changes */
@import url('../_content/Microsoft.FluentUI.AspNetCore.Components/Microsoft.FluentUI.AspNetCore.Components.ewdlgswx1m.bundle.scp.css');

body {
    font-family: "Calibri", sans-serif;
    font-size: var(--type-ramp-base-font-size);
    line-height: var(--type-ramp-base-line-height);
    margin: 0;
}

/* Allow Fluent UI popups to overflow grid containers */
.fluent-data-grid {
    overflow: visible;
    position: relative;
}

fluent-select[open] {
    z-index: 1000;
}

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

/* ── Public Document Viewer ─────────────────────────────────────── */

.public-doc-viewer {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 24px 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.public-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0 20px;
    border-bottom: 2px solid #003366;
    margin-bottom: 24px;
}

.public-header .logo-star {
    height: 65px;
    width: auto;
}

.public-header .logo-audit {
    height: 45px;
    width: auto;
    cursor: pointer;
}

.public-header .header-text {
    text-align: center;
}

.public-header h2 {
    margin: 0;
    font-size: 18pt;
    color: #003366 !important;
    font-weight: bold;
}

.public-header h3 {
    margin: 4px 0 0;
    font-size: 12pt;
    color: #003366 !important;
    font-weight: normal;
}

.search-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.askted-link {
    align-self: center;
    margin-left: auto;
}

a {
    color: #006BA4 !important;
    font-weight: normal !important;
    font-size: 16px !important;
    line-height: 120%;
    letter-spacing: 0;
    text-decoration: underline;
}

.loading-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 0;
}

.results-section {
    margin-top: 8px;
}

.result-group {
    margin-bottom: 24px;
}

.grid-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.public-footer {
    border-bottom: 2px solid var(--neutral-stroke-rest);
    border-top: 1px solid var(--neutral-stroke-rest);
    border-left: 1px solid var(--neutral-stroke-rest);
    border-right: 1px solid var(--neutral-stroke-rest);
    padding: 10px 12px;
    font-size: 9pt;
    color: var(--neutral-foreground-rest);
    margin-top: 28px;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.no-results {
    padding: 24px 0;
    text-align: center;
    color: #666;
}

.download-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9pt;
    color: #003366 !important;
    text-decoration: none !important;
}

.download-link:hover {
    text-decoration: underline !important;
}

h4 {
    color: #242424 !important;
    font-weight: bold !important;
    font-size: 18px !important;
    line-height: 120%;
    letter-spacing: 0;
    text-decoration: none;
}

h2 {
    color: #35639D !important;
    font-weight: bold !important;
    font-size: 24px !important;
    line-height: 120%;
    letter-spacing: 0;
    text-decoration: none;
}

    h2:focus {
        outline: none;
    }

h3 {
    color: #007E8F !important;
    font-weight: bold !important;
    font-size: 20px !important;
    line-height: 120%;
    letter-spacing: 0;
    text-decoration: none;
}