html,
body {
    font-family: Verdana, Arial, sans-serif;
}

h1 {
    font-family: Verdana, Arial, sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
}

h2 {
    font-family: Verdana, Arial, sans-serif;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
}

h3 {
    font-family: Verdana, Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 30px 0 0 0;
}

h4 {
    font-family: Verdana, Arial, sans-serif;
    font-size: 0.94rem;
    font-weight: bold;
    margin: 30px 0 0 0;
}

h1:focus {
    outline: none;
}

a,
.btn-link {
    color: #0071c1;
}

.red-sky-red {
    color: #6A0013 !important;
}

.red-sky-red-bg {
    background-color: #6A0013 !important;
}

.alert-info-rs {
    background-color: #CCE2F8;
    border-color: #a5ccf3;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn-secondary {
    color: #fff !important;
    background-color: #1f80e0 !important;
    border-color: #1c73ca !important;
}

    .btn-secondary:focus,
    .btn-secondary:hover {
        background-color: #1c73ca !important;
    }

.btn-outline-white {
    --bs-btn-color: #fff;
    --bs-btn-border-color: #fff;
    --bs-btn-hover-color: #6a0013;
    --bs-btn-hover-bg: #fff;
    --bs-btn-hover-border-color: #fff;
    --bs-btn-focus-shadow-rgb: 13,110,253;
    --bs-btn-active-color: #6a0013;
    --bs-btn-active-bg: #fff;
    --bs-btn-active-border-color: #fff;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #fff;
    --bs-gradient: none;
}

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

.input-file {
    font-weight: bold;
}

    .input-file::file-selector-button {
        font-weight: normal;
    }

.content {
    padding-top: 1rem;
    width: 100%;
}

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

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.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."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

#spreadsheet-permissions-table-container {
    /* Provide an immediate constraint so 'sticky' works instantly */
    height: 80vh;
    /* Fallback height, approx 80% of viewport height */
    overflow: auto;
    width: 100%;
}

/* Row 1: Top of container */
#spreadsheet-permissions-table thead tr:nth-child(1) th {
    position: sticky;
    top: 0;
    z-index: 53;
}

/* Row 2: Pushed down by the height of Row 1 (~45px) */
#spreadsheet-permissions-table thead tr:nth-child(2) th {
    position: sticky;
    top: 45px;
    z-index: 52;
}

/* Row 3: Pushed down by Row 1 + Row 2 (~90px) */
#spreadsheet-permissions-table thead tr:nth-child(3) th,
#spreadsheet-permissions-table thead tr:nth-child(3) td {
    position: sticky;
    top: 90px;
    z-index: 51;
}

.modal-title {
    margin: 0;
}

.table {
    width: auto;
}

.table-frozen-row {
    /* To support Safari 13 and below, we need the webkit prefix in addition to the standard value */
    position: -webkit-sticky;
    position: sticky;
    z-index: 51;
}

.spreadsheet-table thead tr.table-frozen-row > th {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 51;
}

.table-frozen-column {
    /* To support Safari 13 and below, we need the webkit prefix in addition to the standard value */
    position: -webkit-sticky;
    position: sticky;
    z-index: 50;
    left: 0;
}

.table-sortable thead th {
    padding: 0.75rem;
    vertical-align: bottom;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

    .table-sortable thead th.sortable {
        cursor: pointer;
        background-position: right;
        background-repeat: no-repeat;
        padding-right: 30px !important;
    }

    .table-sortable thead th.both {
        background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAAkElEQVQoz7X QMQ5AQBCF4dWQSJxC5wwax1Cq1e7BAdxD5SL+Tq/QCM1oNiJidwox0355mXnG/DrEtIQ6azioNZQxI0ykPhTQIwhCR+BmBYtlK7kLJYwWCcJA9M4qdrZrd8pPjZWPtOqdRQy320YSV17OatFC4euts6z39GYMKRPCTKY9UnPQ6P+GtMRfGtPnBCiqhAeJPmkqAAAAAElFTkSuQmCC")
    }

    .table-sortable thead th.asc {
        background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZ0lEQVQ4y2NgGLKgquEuFxBPAGI2ahhWCsS/gDibUoO0gPgxEP8H4ttArEyuQYxAPBdqEAxPBImTY5gjEL9DM+wTENuQahAvEO9DMwiGdwAxOymGJQLxTyD+jgWDxCMZRsEoGAVoAADeemwtPcZI2wAAAABJRU5ErkJggg==")
    }

    .table-sortable thead th.desc {
        background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZUlEQVQ4y2NgGAWjYBSggaqGu5FA/BOIv2PBIPFEUgxjB+IdQPwfC94HxLykus4GiD+hGfQOiB3J8SojEE9EM2wuSJzcsFMG4ttQgx4DsRalkZENxL+AuJQaMcsGxBOAmGvopk8AVz1sLZgg0bsAAAAASUVORK5CYII=")
    }

.spreadsheet-table {
    table-layout: fixed;
    width: min-content;
    border-collapse: separate !important;
    border-spacing: 0;
}

    .spreadsheet-table tr {
        /* HACK to make .spreadsheet-grouped-row-cell-line expanding height to 100% actually work. */
        /* This doesn't actually change the row height at all, just allows the child nodes to calculate proper height values for some reason. */
        height: 1px;
    }

    .spreadsheet-table th,
    .spreadsheet-table td {
        padding: 2px 3px;
        /* Border width will be overridden per cell */
        border-width: 0px;
    }

.spreadsheet-column-number-cell {
    background-color: #e6e6e6 !important;
    text-align: center;
    font-size: 0.9em;
    font-weight: normal;
    border-left: 1px #BFBFBF solid !important;
}

.spreadsheet-row-number-cell {
    background-color: #e6e6e6 !important;
    text-align: center;
    vertical-align: bottom;
    font-size: 0.9em;
    font-weight: normal;
    border-top: 1px #BFBFBF solid !important;
}

.spreadsheet-grouped-row-cell {
    background-color: #e6e6e6 !important;
    width: 25px;
    height: inherit;
    padding: 0 !important;
}

.spreadsheet-grouped-column-cell {
    background-color: #e6e6e6 !important;
    width: inherit;
    height: 25px;
    padding: 0 !important;
}

    .spreadsheet-grouped-row-cell .btn,
    .spreadsheet-grouped-column-cell .btn {
        width: 25px;
        height: 25px;
        padding: 0px;
    }

.spreadsheet-grouped-row-cell-line {
    border-left: 3px solid #999999;
    height: 100%;
    margin-left: 12px;
}

.spreadsheet-grouped-row-cell-line-last {
    border-bottom: 3px solid #999999;
    height: 50%;
}

.spreadsheet-grouped-column-cell-line {
    border-top: 3px solid #999999;
    width: 100%;
    height: 13px;
    margin-top: 12px;
}

.spreadsheet-grouped-column-cell-line-last {
    border-right: 3px solid #999999;
    width: 50%;
}

.password-toggle-icon {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
}

.link-text-larger {
    display: block;
    margin: 2px 0 2px 0;
    font-size: 1.1rem;
}

/* Need to force Coloris elements to appear over the top of modals. */
.clr-picker {
    z-index:1060 !important;
}
