@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

@font-face {
    font-family: "Open Sans";
    src: url("fonts/OpenSans-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Open Sans";
    src: url("fonts/OpenSans-Semibold.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: "Montserrat";
    src: url("fonts/Montserrat-ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
}

/**Variables*/
:root {
    --top-row-color: #f7f7f7;
    --top-row-border: 1px solid #d6d5d5;
    --top-row-height: 3.5rem;
    --nav-base-fill: #4c4c4c;
    --nav-base-fore: #d7d7d7;
    --page-back-fill: lightgray;
    --page-content-fill: white;
    --pcs-primary: #af1d1e;
    --pcs-gray: #4c4c4c;
}

.hidden {
    display: none;
}

/**Core elements*/
html, body {
    font-family: "Open Sans", Roboto, Arial, sans-serif;
}

h1, h2, h3, h4, h5, .page-title, .k-card-title {
    font-family: "Montserrat", Arial, sans-serif;
    font-weight: 800;
}

h1 {
    font-size: 1.9rem;
    font-weight: bold;
}

    h1:focus {
        outline: none;
    }

/**Top Level Page Styles*/

.root-page {
    position: relative;
    display: flex;
    flex-direction: row;
    height: 100%;
}

    .root-page.collapsed {
        flex-direction: column;
    }

.sidebar {
    background-image: linear-gradient(180deg, #808080 0%, var(--nav-base-fill) 15%);
    /**Full Width*/
    width: 250px;
    height: 100vh;
    position: sticky;
    top: 0;
}

    .sidebar.collapsed {
        width: 100%;
        height: auto;
        position: unset;
        top: unset;
    }

.nav-item-icon.k-svg-icon {
    width: 1.5rem;
    margin-right: .5em;
}

main {
    flex: 1;
    min-height: 100vh;
}

.top-row {
    background-color: var(--top-row-color);
    border-bottom: var(--top-row-border);
    justify-content: flex-end;
    height: var(--top-row-height);
    display: flex;
    align-items: center;
    /**Full Width*/
    position: sticky;
    top: 0;
    z-index: 1;
}

    .top-row.collapsed {
        position: unset;
        top: unset;
        z-index: unset;
    }

.page-container {
    padding-left: 1em;
    background: var(--page-back-fill);
    width: 100%;
    height: calc(100% - var(--top-row-height));
}

    .page-container.collapsed {
        padding-left: 0;
    }

/** Next to top level Page Styles */
.page {
    background: var(--nav-base-fill);
    height: 100%;
}

.breadcrumb-header, .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title {
    font-size: 1.9rem;
}

.page-icon {
    padding-right: .5em;
    color: var(--pcs-primary);
}

.page-header {
    padding: .25em .5em .25em .75em;
    background: var(--nav-base-fill);
    color: white;
}

.breadcrumb-header {
    border-top: .1em solid var(--page-back-fill);
    border-bottom: .1em solid var(--page-back-fill);
    background: var(--page-content-fill);
}

    .breadcrumb-header .breadcrumb-trail {
        max-width: calc(100% - 150px);
    }

.pcs .k-breadcrumb-link {
    color: var(--pcs-primary);
}

.help-footer {
    border-radius: .5em;
    margin: .5em;
    padding: .5em;
    background: var(--page-content-fill);
}

    .help-footer .help-controls {
        border-top: .1em solid var(--nav-base-fill);
        padding-top: .25em;
        display: flex;
        justify-content: center;
    }

.page-header .header-part {
    display: flex;
    align-items: center;
}


/** Dialogs */
.k-dialog-wrapper .k-dialog {
    max-width: 60em;
}
/**Tile Layouts*/
.pcs .k-tilelayout {
    background-color: unset;
}

.k-tilelayout .k-tilelayout-item-header .k-card-title {
    font-size: 1.35rem;
}

.k-tilelayout-item-header.k-card-header {
    padding-block: unset;
    padding-inline: unset;
    padding: .25em .25em .25em .5em;
}

.pcs .k-card-body {
    background: var(--page-back-fill);
    padding-block: unset;
    padding-inline: unset;
    padding: .5em;
}

.k-card.warning-tile, .k-card.warning-tile .k-card-body {
    background: #fff3cd;
}

    .k-card.warning-tile .k-tilelayout-item-header .k-card-title {
        font-size: 1.5rem;
    }

    .k-card.warning-tile .k-tilelayout-item-header.k-card-header {
        padding-block: unset;
        padding-inline: unset;
        padding: .5em;
    }

.title-control-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.title-control-header h5 {
    margin: 0;
}
/* Re-enable selection and scrolling of disabled textboxes.
    Apply text selection style.
    Can cause some side effects with appearance of hover and focus states */
.k-no-disable .k-disabled, .k-no-disable .k-checkbox.k-disabled {
    opacity: 1;
}
    /* UI for Blazor 3.0 + */
    .k-no-disable .k-input-inner.k-disabled,
    .k-no-disable .k-disabled > .k-input-inner,
    input.k-textbox[disabled] {
        pointer-events: initial;
    }

.k-no-disable .k-input-inner[disabled]::selection {
    color: #fff;
    background-color: #ff6358;
}
/** Grids*/
.pcs .k-grid-header {
    font-weight: bold;
}
/* Override Default Telerik theme colors*/
.pcs .k-avatar-solid-primary {
    border-color: var(--pcs-primary);
    color: white;
    background-color: var(--pcs-primary);
}

.pcs .k-menu:not(.k-context-menu) > .k-item {
    color: var(--pcs-primary);
}

.pcs .k-button-solid-primary {
    border-color: var(--pcs-primary);
    color: white;
    background-color: var(--pcs-primary);
    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.02));
}

/* Forms */
.form-buttons-center.k-form .k-form-buttons{
    justify-content: center;
}
.form-buttons-end.k-form .k-form-buttons {
    justify-content: flex-end;
}

/*For lining up rows in TelerikForm Cols and one column has a label and field and the other no label*/
.single-form-row.vertical {
    margin-top: 20px;
    margin-left: 0.5em;
}

.k-form .single-form-row .k-form-label {
    display: unset; /*otherwise set as flex end and makes other stuff move to new line*/
}

.pcs .k-d-grid {
    column-gap: .5em;
}

.pcs .k-form {
    background: rgb(245,245,245);
    border: .1em solid var(--page-back-fill);
    border-radius: .75em;
    padding: .5em;
}

    .pcs .k-form .k-form-legend {
        font-weight: bold;
    }

    .pcs .k-form .k-form-label {
        font-weight: bold;
    }
/*  */
a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}


.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+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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;
        }

.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");
    }



/**.dd Styles*/
.dd-top-row {
    display: flex;
    justify-items: flex-end;
    height: auto;
    width: 100%;
    padding-bottom: .5em;
}

.dd-nav {
    display: flex;
    align-items: center;
    padding-right: 0.5em;
}

.dd-title {
    width: 100%;
    font-size: 1.9em;
    font-weight: bold;
    padding-top: .5rem;
}

.dd-controls {
    width: 28rem;
}

.dd-controls, .dd-border {
    padding: .25rem .75rem .25rem .75rem;
    border: 1px solid black;
    border-radius: .5rem;
}

.dd-singleButton, .k-button.dd-singleButton {
    display: block;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    margin-left: auto;
    margin-right: auto;
    min-width: 10em;
}


