/* set all top-level elements in the layout to height 100% so they match the viewport */
html, body {
    margin: 0;
    height: 100%;
    min-height: 100%;
    max-height: 100%;
    overflow: hidden;
}

/* define where scrollbars can appear in the layout -
    in a child element whose actual height
    still matches the viewport*/
body {
    overflow: auto;
}

.topmost {
    z-index: 20000 !important;
}

.navbar-brand a {
    color: rgba(0,0,0,.9);
}

.navbar-brand a:hover {
    color: rgba(0,0,0,.9);
    text-decoration: none;
}

/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    padding: 50px 15px 20px;
    height: 100%
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #0366d6;
}

.hide-grid-header > div > div.k-grid-header {
    display: none;
}

/* Reset the regular bootstrap link color */
.k-grid td > a:not(.k-button,.btn) {
    color: #007bff;
}

.k-grid tr.opacity-50 > :not(.k-command-cell) {
    opacity: .5;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

/*.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;
}

.k-grid tr.no-children td.k-hierarchy-cell * {
    display: none;
}

.k-grid tr.no-children td.k-hierarchy-cell {
    pointer-events: none;
}

.k-grid .k-filterable.collapse-filter {
    padding-right: 0 !important;
}

/* As a workaround add this class to Telerik inputs that allow null and are set to null.
   Otherwise those fields get the red error border on blur. */
 .k-input.k-invalid.valid-null {
     border-color: rgba(0, 0, 0, 0.08);
 }

.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, "Bitte warten...");
}

.nav-menu {
    width: 100%;
    position: fixed;
}

.nav-menu li:first-child {
    font-size: 125%;
    color: black !important;
    margin-left: 10px;
}
.nav-menu li:nth-last-child(2) {
    margin-left: auto !important;
}

.badge
{
    display: inline-block;
    padding: .25em .4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25rem;
}

.badge-pill
{
    padding-right: .6em;
    padding-left: .6em;
    border-radius: 10rem;
}

.badge-success
{
    color: #fff;
    background-color: #28a745;
}

.badge-warning
{
    color: #212529;
    background-color: #ffc107;
}

.badge-danger
{
    color: #fff;
    background-color: #dc3545;
}

.badge-primary
{
    color: #fff;
    background-color: #007bff;
}

.badge-info 
{
    color: #fff;
    background-color: #17a2b8;
}

.badge-light 
{
    color: #212529;
    background-color: #f8f9fa;
}

.badge-secondary 
{
    color: #fff;
    background-color: #6c757d;
}