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

:root {
    --accent-fill-rest: #0457a0 !important;
    --accent-fill-hover: #0457a0 !important;
    --info-card-border-color: #e0dfdf;
    --info-card-header-bg: #dfe0e1c7;
    --neutral-foreground-rest: #424242;
    --neutral-foreground-hint: #8a8a8a;
    --neutral-fill-stealth-hover: rgba(0, 0, 0, 0.05);
    --focus-stroke-outer: #0078d4;
    --neutral-stroke-layer-rest: #e0e0e0;
    --neutral-stroke-divider: #e0e0e0;
    --neutral-layer-1: #ffffff;
    --error: #BC2F32;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#app {
    height: 100%;
    display: flex;
    flex-direction: column;
}

fluent-layout {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

fluent-header {
    flex-shrink: 0;
}

.fluent-wizard-summary {
    white-space: pre-line;
}

.contract-create-dialog .fluent-wizard > ol {
    padding: 10px 0 10px 0 !important;
}

.contract-create-dialog .fluent-wizard-buttons {
    margin-top: 20px;
    justify-content: space-between !important;
    width: 100%;
}

.contract-create-dialog .fluent-wizard-buttons > fluent-button {
    width: unset !important;;
}

.body-stack {
    flex: 1 1 auto;
    overflow: auto;
    min-height: 0;
}

fluent-footer {
    flex-shrink: 0;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: #BC2F32;
}

#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,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms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2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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

.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 1.25rem;
    padding-bottom: 10vh;
}

.loading-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #424242;
    margin: 0;
    letter-spacing: 0.02em;
}

.loading-spinner-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
    margin-top: 1.25rem;
}

.loading-spinner {
    width: 2rem;
    height: 2rem;
    border: 2px solid #e8e8e8;
    border-top-color: #0457a0;
    border-radius: 50%;
    animation: loading-spin 0.75s linear infinite;
}

@keyframes loading-spin {
    to { transform: rotate(360deg); }
}

.loading-label {
    font-size: 0.75rem;
    color: #b8b8b8;
    margin: 0;
    letter-spacing: 0.06em;
}

code {
    color: #c02d76;
}

.custom-accordion fluent-accordion-item::part(heading) {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    grid-template-areas: "icon button start end";
}

.custom-accordion fluent-accordion-item::part(button) {
    grid-area: button;
}

.custom-accordion fluent-accordion-item::part(icon) {
    grid-area: icon;
}

.custom-accordion fluent-accordion-item::part(start) {
    grid-area: start;
}

.custom-accordion fluent-accordion-item::part(end) {
    grid-area: end;
}

.muted-text {
    color: #737373;
}

/*Custom highlighting van nav-menu items*/
.fluent-nav-link.active,
a.fluent-nav-link[aria-current="page"] {
    background-color: var(--accent-fill-rest, #0457a0) !important;
    color: white !important;
}

.fluent-nav-link.active .positioning-region,
a.fluent-nav-link[aria-current="page"] .positioning-region,
.fluent-nav-link.active .content-region,
a.fluent-nav-link[aria-current="page"] .content-region {
    background-color: var(--accent-fill-rest, #0457a0) !important;
}

.fluent-nav-link.active:hover,
a.fluent-nav-link[aria-current="page"]:hover {
    background-color: var(--accent-fill-hover, #0457a0) !important;
    opacity: 0.9;
}

.fluent-nav-link.active:hover .positioning-region,
a.fluent-nav-link[aria-current="page"]:hover .positioning-region,
.fluent-nav-link.active:hover .content-region,
a.fluent-nav-link[aria-current="page"]:hover .content-region {
    background-color: var(--accent-fill-hover, #0457a0) !important;
}

.fluent-nav-link.active svg.fluent-nav-icon,
a.fluent-nav-link[aria-current="page"] svg.fluent-nav-icon {
    fill: white !important;
}

.fluent-nav-link.active .fluent-nav-text,
a.fluent-nav-link[aria-current="page"] .fluent-nav-text {
    color: white !important;
}

/* Add dark bottom border to fluent-select to match other input controls in the filter bar */
.datagrid-toolbar fluent-select::part(control) {
    border-bottom: 1px solid #969696;
}

.datagrid-toolbar fluent-select:hover::part(control) {
    border-bottom: 1px solid #8e8e8e;
}

/* Restore normal text color on fluent-select when a value is selected (overrides placeholder color) */
.datagrid-toolbar fluent-select[current-value]:not([current-value=""])::part(selected-value) {
    color: var(--neutral-foreground-rest) !important;
}
