*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --ts-bg: #eef0ed;
    --ts-panel: #f8f7f2;
    --ts-panel-alt: #ffffff;
    --ts-ink: #1f2721;
    --ts-muted: #5f6a61;
    --ts-border: #c7cdc5;
    --ts-border-strong: #8f998e;
    --ts-healthy: #2f7748;
    --ts-healthy-bg: #dfeade;
    --ts-overdue: #a9342e;
    --ts-overdue-bg: #f0d8d5;
    --ts-disabled-bg: #e5e4df;
    --ts-warn: #8a5428;
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--ts-bg);
    color: var(--ts-ink);
}

body {
    line-height: 1.4;
}

a {
    color: #245f82;
}

button,
input,
select,
textarea {
    font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #245f82;
    outline-offset: 2px;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #2f7748;
}

.invalid {
    outline: 1px solid #a9342e;
}

.validation-message,
.text-danger {
    color: #a9342e;
}

.blazor-error-boundary {
    background: #a9342e;
    border: 1px solid #7c221e;
    padding: 1rem;
    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;
}
