﻿@import '/_content/Microsoft.FluentUI.AspNetCore.Components/css/reboot.css';

/*#region BuiltIn */

:root {
    --whiteFont: #eee;
    --blackFont: #333;
    --highContrastFont: #fdfdfd;
    --backgroundDark: #000;
    --backgroundLight: #fafafa;
    --highContrastDark: #000;
    --pLightGrey: #3d3d41;
    --iconWhite: #fafafa;
    --pIconAccent: #0078d7;
    --pIconWarnning: #c32626;
    --pIconWarnningHover: #a62020;
    --hContrastTxtHighlight: #ffd939;
    --hContrastTxtHover: #695808;
    /* Font size transition duration */
    --font-transition-duration: 0.3s;
}

/* Global smooth transition for font size changes */
*, *::before, *::after {
    transition: font-size var(--font-transition-duration) ease-in-out, line-height var(--font-transition-duration) ease-in-out, padding var(--font-transition-duration) ease-in-out, margin var(--font-transition-duration) ease-in-out;
}

/* Exclude certain elements from transitions for performance */
img, video, iframe, canvas {
    transition: none !important;
}

/*.e-dialog {
    min-height: 180px !important;
}*/

.sf-grid {
    min-height: 400px !important;
}

.Heading_1, .Heading_2, .Heading_3, .Heading_4, .Heading_5, .Heading_6, .Heading_7, .Heading_8, .Heading_9 {
    margin-bottom: 1rem;
}

/* Section heading classes applied to structured document headings */
.section-title,
.section-heading-1,
.section-heading-2,
.section-heading-3,
.section-heading-4,
.section-heading-5,
.section-heading-6,
.section-heading-7,
.section-heading-8,
.section-heading-9 {
    margin-bottom: 1rem !important;
}

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

body {
    display: block;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    overflow: auto;
    color: var(--neutral-foreground-rest);
    background-color: var(--neutral-layer-4);
    font-family: var(--body-font);
    font-size: var(--type-ramp-base-font-size);
    line-height: var(--type-ramp-base-line-height);
}

.accessible-font {
    font-family: "opendyslexic-regular", sans-serif !important;
}

.default-font {
    font-family: "Segoe UI", sans-serif !important;
}

.navmenu-icon {
    display: none;
}

.main {
    min-height: calc(100dvh - 86px - 51px);
    color: var(--neutral-foreground-rest);
    align-items: stretch !important;
}

.body-content {
    align-self: stretch;
    /*height: calc(100dvh - 86px) !important;*/
    height: fit-content;
    display: flex;
    min-width: 0;
    overflow-x: hidden;
}

.content {
    padding: 1rem 1.5rem;
    align-self: stretch !important;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media(max-width: 768px) {
    .content {
        padding: 1rem 0.5rem;
    }
}

.manage {
    width: 100dvw;
}

footer {
    background: var(--neutral-layer-1);
    border-top: solid 1px #ebdcdd;
    color: var(--presence-busy);
    flex-direction: column !important;
    font-size: 12px;
    line-height: 18px;
    padding: 12px 0;
    align-items: center;
    padding: 10px 10px;
}

    footer a {
        color: var(--neutral-foreground-rest);
        text-decoration: none;
    }

        footer a:focus {
            outline: 1px dashed;
            outline-offset: 3px;
        }

        footer a:hover {
            text-decoration: underline;
        }

.alert {
    border: 1px dashed var(--accent-fill-rest);
    padding: 5px;
}


#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;
    margin: 20px 0;
}

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

    .blazor-error-boundary::before {
        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;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

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

code {
    color: #c02d76;
}
/*#endregion BuiltIn */
/*#region Default */

h1 {
    outline: none;
}

.appHeader {
    background-color: var(--foreground-on-accent-rest) !important;
    color: var(--accent-fill-rest) !important;
}
/*#endregion Default */
/* #region Form */

.formSection {
    display: flex;
    flex-direction: column;
    row-gap: 1.5rem;
}

.container-fluid {
    width: 100%;
}

.validatedFormSection {
    display: flex;
    flex-direction: column;
    row-gap: .7rem;
}

.auto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.auto-grid-2-col {
    /* user setting */
    --min-column-size: 150px;
    --column-count: 2;
    --gap: 2rem;
    /* calculations */
    --breakpoint: calc(var(--min-column-size) * var(--column-count) + (var(--gap) * (var(--column-count) - 1)) );
    --column-size: calc((100% / var(--column-count)) - var(--gap));
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat( auto-fit, minmax( min(max(var(--column-size), (100% - var(--breakpoint)) * -999 ), 100%), 1fr) );
}


.formRow {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

    .formRow .formCheckbox {
        align-self: flex-end;
        /*        padding-bottom: .4rem;*/
    }

    .formRow .formDropdown {
        align-self: end;
    }

    .formRow .formBtn {
        align-self: flex-end;
    }

.formRadioBtn {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}


label.e-label-top {
    font-weight: 500;
}

.inputSizeHalf {
    width: 7rem;
}

.inputSizeLessThanOne {
    width: 11rem;
}

.inputSizeOne {
    width: 15rem;
}

.inputSizeOneHalf {
    width: 23rem;
}

.inputSizeTwo {
    width: 31rem;
}

.inputSizeThree {
    width: 47rem;
}

.inputSizeFour {
    width: 69rem;
}

.inputSizeFull {
    width: 100%;
}

.ellipsisLabel {
    max-width: 210px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.validationMessageContainer {
    height: 21px;
}

/* Equalize vertical spacing in validated form sections:
   items that have no validationMessageContainer get matching bottom padding
   so the row-gap is visually consistent and no empty placeholder divs are needed. */
.validatedFormSection > *:not(:has(.validationMessageContainer)) {
    padding-bottom: 21px;
}
/* #endregion Form */
/*#region SyncFusion */
/*#region SfList */

.e-listview.e-list-template .e-list-wrapper.e-list-multi-line .e-list-item-header {
    font-weight: 400;
}

.searchableList .e-content {
    overflow-y: auto;
    max-height: 30rem;
}

.searchableList .e-list-header {
    padding: 0;
}

.searchableList .header {
    width: 100%;
    height: 100%;
}
/*#endregion SfList*/
/*#region SfGrid */
/*override grid column checkbox disabled style*/
.e-checkbox-wrapper.e-checkbox-disabled .e-frame.e-check, .e-css.e-checkbox-wrapper.e-checkbox-disabled .e-frame.e-check {
    border-color: var(--color-sf-content-text-color) !important;
    color: var(--color-sf-content-text-color) !important;
}
/*#endregion SfGrid*/
/* ***************************************************************************** */
/*#region Theme*/
.e-smaller {
    font-size: small;
    transition: font-size 0.3s ease-in-out !important;
}

.e-bigger {
    font-size: larger;
    transition: font-size 0.3s ease-in-out !important;
}
/* Font size step classes with smooth transitions */
.e-smaller1, .e-smaller2, .e-smaller3, .e-smaller4,
.e-bigger1, .e-bigger2, .e-bigger3, .e-bigger4 {
    transition: font-size 0.3s ease-in-out, line-height 0.3s ease-in-out, padding 0.3s ease-in-out !important;
}

body.fabric {
    background-color: var(--backgroundLight) !important;
    color: var(--blackFont);
}

body.fabricDark {
    background-color: var(--backgroundDark) !important;
    color: var(--whiteFont);
}

body.highContrast {
    background-color: var(--highContrastDark) !important;
    color: var(--highContrastFont);
}
/* Scroll modifications */
/*::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background-color: var(--pobaOrangeLightest);
    border-radius: 100px;
}

.fabric-dark ::-webkit-scrollbar-track {
    background-color: var(--pLightGrey);
    border-radius: 100px;
}

.highContrast ::-webkit-scrollbar-track {
    background-color: var(--pLightGrey);
    border-radius: 100px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--pobaOrangeLight);
    border-radius: 100px;
}

    ::-webkit-scrollbar-thumb:hover {
        background-color: var(--pobaOrangeDark);
        border-radius: 100px;
    }*/

.stickyToolbar {
    position: sticky;
    top: 0;
    z-index: 999;
    margin: 0 -1rem;
    padding: 0 1rem;
    background-color: var(--neutral-layer-1);
    /*box-shadow: var(--elevation-shadow-flyout);*/
}

@supports (animation-timeline: scroll()) {
    .stickyToolbar {
        animation: scroll-shadow linear both;
        animation-timeline: scroll();
        animation-range: 0ex 5ex;
    }

    @keyframes scroll-shadow {
        from {
            box-shadow: none;
        }

        to {
            box-shadow: var(--elevation-shadow-flyout);
        }
    }
}

.stickyToolbar-1 {
    position: sticky;
    top: -1rem;
    z-index: 1000;
}
/*#endregion Theme*/
/* ***************************************************************************** */
/*#region Fonts*/
@font-face {
    font-family: 'opendyslexic-regular';
    font-style: normal;
    src: url('../fonts/opendyslexic-regular.otf') format('opentype');
}

@font-face {
    font-family: 'opendyslexic-bold';
    font-style: oblique;
    src: url('../fonts/opendyslexic-bold.otf') format('opentype');
}

@font-face {
    font-family: 'opendyslexic-italic';
    font-style: italic;
    src: url('../fonts/opendyslexic-italic.otf') format('opentype');
}

@font-face {
    font-family: 'opendyslexic-bolditalic';
    font-style: italic oblique;
    src: url('../fonts/opendyslexic-bolditalic.otf') format('opentype');
}

@font-face {
    font-family: 'Material Symbols Outlined';
    src: local('Material Icons'), url('../fonts/MaterialSymbolsOutlined.woff2') format('woff2');
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: 200;
    font-style: normal;
    font-size: 24px;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    /*Support for all WebKit browsers.*/
    -webkit-font-smoothing: antialiased;
    /*Support for Safari and Chrome.*/
    text-rendering: optimizeLegibility;
    /*Support for Firefox.*/
    -moz-osx-font-smoothing: grayscale;
    /*Support for IE.*/
    font-feature-settings: 'liga';
}
/*#endregion Fonts*/
/* ***************************************************************************** */
/*#region SfInputs*/

.FilterCodebookListInput {
    height: 100%;
    border-color: transparent !important;
}

.readOnlyInput input {
    background-color: whitesmoke !important;
}

.readOnlyInput textarea {
    background-color: whitesmoke !important;
}
/*#endregion SfInputs*/
/*#region SfToast*/

.e-toast.e-toast-warning.e-toast-header-icon.e-toast-header-close-icon {
    border: 1px solid var(--color-sf-msg-warning-icon-color);
}

.e-toast.e-toast-danger.e-toast-header-icon.e-toast-header-close-icon {
    border: 1px solid var(--color-sf-msg-danger-icon-color);
}

.e-toast.e-toast-info.e-toast-header-icon.e-toast-header-close-icon {
    border: 1px solid var(--color-sf-msg-info-icon-color);
}

.e-toast.e-toast-success.e-toast-header-icon.e-toast-header-close-icon {
    border: 1px solid var(--color-sf-msg-success-icon-color);
}

.e-control.e-toast.e-lib.e-toast-container {
    z-index: 100001 !important;
}
/*#endregion SfToast*/
/*#endregion SyncFusion */
/*#region Validation messages*/
/* Error messages (current) */
.validation-message,
.text-danger,
.field-validation-error {
    color: red;
}
/* Success messages */
.text-success,
.field-validation-valid {
    color: green;
}
/* Warning messages */
.text-warning,
.field-validation-warning {
    color: orange;
}
/* Info messages */
.text-info,
.field-validation-info {
    color: blue;
}
/* Custom validation message types */
.validation-message.success {
    color: var(--success-color, #28a745);
}

.validation-message.warning {
    color: var(--warning-color, #ffc107);
}

.validation-message.info {
    color: var(--info-color, #17a2b8);
}
/*#endregion Validation messages */

.navmenu {
    background-color: var(--neutral-layer-card-container);
    /*    position: sticky;*/
    width: 300px;
    /*top: 0;*/
    /*position: absolute;
    top: 0;
    height: 100%;
    width: 100%;*/
}

.nav-logo {
    width: 205px;
    max-width: 100%;
    object-fit: contain;
}

.content article {
    width: 100%;
}
/* Slide down animation for document containers */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/*#region Media */

@media (max-width: 600px) {
    .header-gutters {
        margin: 0.5rem 3rem 0.5rem 1.5rem !important;
    }

    [dir="rtl"] .header-gutters {
        margin: 0.5rem 1.5rem 0.5rem 3rem !important;
    }

    .main {
        flex-direction: column !important;
        row-gap: 0 !important;
    }

    nav.sitenav {
        width: 100%;
        height: 100%;
    }

    #main-menu {
        width: 100% !important;
    }

        #main-menu > div:first-child:is(.expander) {
            display: none;
        }

    .navmenu {
        width: 100%;
    }

    #navmenu-toggle {
        appearance: none;
    }

        #navmenu-toggle ~ nav {
            display: none;
        }

        #navmenu-toggle:checked ~ nav {
            display: block;
        }

    .navmenu-icon {
        cursor: pointer;
        z-index: 10;
        display: block;
        position: absolute;
        top: 15px;
        left: unset;
        right: 20px;
        width: 20px;
        height: 20px;
        border: none;
    }

    [dir="rtl"] .navmenu-icon {
        left: 20px;
        right: unset;
    }
}
/*#endregion Media */

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
        overflow: hidden;
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        max-height: 1000px;
        overflow: visible;
    }
}

.fluent-dialog-main {
    z-index: 1002 !important;
}

.DialogForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lining input {
    border: initial !important;
}

#user_slideout {
    z-index: 1003 !important;
}

.e-dlg-container {
}
/* Survey Completion Styles */
.survey-completed,
.survey-already-completed {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 40px;
    min-height: 300px;
}

    .survey-completed h3,
    .survey-already-completed h3 {
        margin: 0 0 16px 0;
        font-size: 1.5rem;
        font-weight: 600;
        color: #374151;
    }

    .survey-completed p,
    .survey-already-completed p {
        margin: 0;
        font-size: 1rem;
        color: #6b7280;
        max-width: 400px;
        line-height: 1.6;
    }

.survey-completed {
    background: #f0fdf4;
    border-radius: 12px;
    border: 1px solid #86efac;
}

    .survey-completed h3 {
        color: #166534;
    }

    .survey-completed p {
        color: #15803d;
    }

.survey-already-completed {
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.survey-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 40px;
    min-height: 300px;
    background: #f0f9ff;
    border-radius: 12px;
    border: 1px solid #bae6fd;
}

    .survey-loading h3 {
        margin: 0 0 16px 0;
        font-size: 1.5rem;
        font-weight: 600;
        color: #0369a1;
    }

.form-section-bordered {
    border: 1px solid #ccc;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
}

.middle-card-header {
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.details-scroll-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-top: 1rem;
}

.details-scroll-container-grid {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    border: 2px solid #d7d7d7;
    border-radius: 4px;
}

.detail-item {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

    .detail-item:hover {
        background-color: #e9ecef;
    }

    .detail-item:last-child {
        border-bottom: none;
    }

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* #region Cookie Settings Button */

.cookie-settings-circular {
    background: rgba(255, 255, 255, 0.9) !important;
    color: white !important;
    border: 1px solid #ddd !important;
    border-radius: 50% !important;
    width: 64px !important;
    height: 64px !important;
    padding: 0 !important;
    font-size: 12px !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
    transition: background-color 0.3s ease !important;
}

    .cookie-settings-circular:hover {
        background: rgba(255, 255, 255, 1) !important;
    }

.cookie-icon {
    width: 150% !important;
    vertical-align: middle !important;
    filter: contrast(1.5) brightness(1.2) !important;
}

/* High contrast / dark mode overrides for the cookie button */
.highContrast .cookie-settings-circular {
    background: rgba(0, 0, 0, 0.9) !important;
    border-color: #555 !important;
}

    .highContrast .cookie-settings-circular:hover {
        background: rgba(0, 0, 0, 1) !important;
    }

/* #endregion Cookie Settings Button */
