:root {
    /*
        full height -
        taskbar height -
        breadcrumb font size * line height -
        breadcrumb margins -
        footer top padding
    */
    --defined-height: calc(
       100dvh -
       var(--mecs-taskbar-height) -
       (var(--mecs-font-size) * var(--mecs-line-height)) -
       var(--mecs-gap-big) -
       var(--mecs-gap-normal) -
       var(--mecs-padding));
    --central-hublink-width: 20rem;
    --purple: #8B5CF6;
}

#page {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    height: 1px;
    overflow-y: auto;
}

    #page > #breadcrumb:not(.breadcrumb-empty) {
        margin-top: var(--mecs-gap-big);
        margin-bottom: var(--mecs-gap-normal);
        color: var(--mecs-base-grey);
    }

    .body:has(#landing, #contact, #security, #privacy) {
        padding: 0;
    }

.authorizing {
    width: 100dvw;
    height: 100dvh;

    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;

    display: flex;
    justify-content: center;
    align-items: center;
}

.mud-skeleton {
    border-radius: var(--mecs-border-radius-less);
}

.has-task-table td:nth-of-type(1),
.has-task-table th:nth-of-type(1),
.has-report-table td:nth-of-type(1),
.has-report-table th:nth-of-type(1),
.has-report-table td:last-of-type,
.has-report-table th:last-of-type {
    flex: .5;
}

.has-report-table td:nth-of-type(2),
.has-report-table th:nth-of-type(2) {
    flex: .75;
}

.has-task-table td:nth-of-type(3), .has-task-table th:nth-of-type(3) {
    flex: 1.5;
}

.has-task-table td:nth-of-type(4),
.has-task-table th:nth-of-type(4),
.has-report-table td:nth-of-type(4),
.has-report-table th:nth-of-type(4) {
    flex: 1.5;
}

td svg {
    width: 21px;
    height: auto;
}

td:not(:has(svg)) {
    height: fit-content;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

h1:focus {
    outline: none;
}

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

.content {
    padding-top: var(--mecs-gap-normal);
}

.defined-height {
   height: var(--defined-height);
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#dotnet-compile-error {
    display: none;
}

.select-class {
    height: 43px;
    padding: var(--mecs-gap-tiny);
}

input, select, textarea {
    padding-left: var(--mecs-gap-tiny);
    background-color: var(--mecs-base-lighter);
}

svg.favorite {
    fill: var(--mecs-warning);
    stroke: var(--mecs-warning);
}

.no-items {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: normal;
}

.red {
    fill: var(--mecs-error) !important;
    background-color: inherit;
}

.red > svg {
    fill: var(--mecs-error) !important;
}

.green {
    fill: var(--mecs-success) !important;
    background-color: inherit;
}

.green > svg {
    fill: var(--mecs-success) !important;
}

.blue {
    fill: var(--mecs-link-color) !important;
    background-color: inherit;
}

.blue > svg {
    fill: var(--mecs-link-color) !important;
}

.form-button {
    height: 54px;
    width: 192px;
    border-radius: var(--mecs-border-radius);
    font-weight: bolder;
    background-color: var(--mecs-base);
    border: 0;
    cursor: pointer;
    overflow: hidden;
    color: white;
    transition: color .15s;
    transition: background-color .15s;
}

svg {
    overflow: visible;
}

.greyed-out {
    background-color: var(--mecs-base-lightest);
    color: var(--mecs-base-light);
}

@media(max-width: 65rem)
{
    .defined-height {
        height: auto;
    }
}
