/**** Niedersachsen Design ****/

#app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
    z-index: 999 !important;
}

.validierungHtml {
    word-break: break-word;
}

.validierungHtml p.important {
    background-color: #e0e0e0;
    padding: 3pt;
}

.validierungHtml table.tbl-errors {
    border-collapse: collapse;
    border-color: grey;
    border-spacing: 2px;

    font-weight: normal;
    font-size: smaller;
    font-style: normal;
    line-height: normal;

    margin-bottom: 20px;
    width: 100%;
}

.validierungHtml table.tbl-errors thead {
    background-color: #f0f0f0;
    font-weight: bold;
    padding-top: 6pt;
    padding-bottom: 2pt;
}

.validierungHtml table.tbl-errors tbody {
    border-color: inherit;
}

.validierungHtml table.tbl-errors td {
    border: 1px solid lightgray;
    padding: 2px;
    vertical-align: top;
}

.bottom-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(229, 0, 70, 1);
}

.main {
    flex: 1;
}

.main .top-row {
    border-bottom: 0.1em solid #e50046;
    justify-content: flex-end;
    background-color: white;
}

.main .top-row > a, .main .top-row .btn-link {
    white-space: nowrap;
    margin-left: 1.5rem;
}

.main .top-row a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar {
    border-right: 0.1em solid #e50046;
}

.sidebar .nav-link {
    display: flex;
    vertical-align: middle;
}

.sidebar .top-row {
    border-bottom: 0.1em solid #e50046;
}

.sidebar .navbar-brand {
    font-size: 1.1rem;
}

.sidebar .fas {
    width: 2rem;
    font-size: 1.1rem;
    vertical-align: text-top;
    top: -2px;
}

.sidebar .nav-item {
    padding-bottom: 0.5rem;
}

.sidebar .nav-item:first-of-type {
    padding-top: 1rem;
}

.sidebar .nav-item:last-of-type {
    padding-bottom: 1rem;
}

.sidebar .nav-item a {
    color: rgba(229,0,70,1);
    border-radius: 4px;
    height: 3rem;
    align-items: center;
    line-height: 3rem;
}

.sidebar .nav-item a.active {
    background-color: rgba(229,0,70,1);
    color: white;
}

.sidebar .nav-item a:hover {
    color: rgba(229,0,70,.3);
}

.sidebar .nav-item a.active:hover {
    background-color: rgba(229,0,70,.9);
    color: white;
}

.content {
    padding-top: 1.1rem;
}

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

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.notification {
    z-index: 1000;
}

.notification .k-notification-container .k-notification-wrap {
    width: 350px;
}

.dangerWindow .k-window-titlebar, .dangerWindow .dangerButton {
    background-color: #e50046;
    color: #fff;
}

.dangerWindow .k-button .k-icon:hover {
    font-weight: bold;
}

.dangerButton:focus {
    box-shadow: 0 0 0 3px rgba(229,0,70,0.5)
}

.dangerButton:hover {
    opacity: 0.7;
}

.notificationWindow .k-window-titlebar, .notificationWindow .notificationButton {
    background-color: #8ab7ce;
}

.errorNotification ul
{
    margin-left: -20px;
}

.flex-float-right {
    margin-left: auto;
}

/* Telerik style overrides */
.k-window {
    max-height: 90vh;
}

.k-window-titlebar-action {
    opacity: initial;
}

.white-text {
    color: white !important;
}

/* ** custom components ** */
/* Collapsible */
.collapsible {
    border: 1px solid #eee;
    overflow: hidden;
}

.collapsible div {
    padding: 10px 20px;
}

.collapsible .title {
    background-color: rgba(0,0,0,.04);
}

.collapsible .topnews {
    text-align: right;
}

.collapsible .button {
    background-color: white;
    border: none;
    color: rgba(229,0,70,1);
    display: block;
    padding: initial;
}

.collapsible-panel {
    border: 1px solid #eee;
    border-top: none;
    padding: 20px;
    background-color: white;
    overflow: hidden;
}

/* LoadingOverlay */
.loading-panel-wrapper {
    width: 100%;
    height: 100%;
    min-height: 200px;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 123456;
    /* one way center the loading indicator inside */
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-panel-wrapper .loading-panel-overlay {
    background: gray;
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

/* ErrorBoundary */
.error-wrapper {
    background-color: yellow;
    border: 2px dashed black;
    white-space: pre-line;
    font-family: consolas, monospace;
}

.error-wrapper .error-details {
    background-color: rgba(255,255,255,0.3);
    margin: 0.5rem;
    padding: 0.5rem;
}

/* ** /custom components ** */


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

@media (max-width: 767.98px) {
    .main .top-row:not(.auth) {
        display: none;
    }

    .main .top-row.auth {
        justify-content: space-between;
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }

    .sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(229,0,70,1);
    }
}

@media (min-width: 768px) {
    #app {
        flex-direction: row;
    }

    .main {
        width: calc(100vw - 300px);
    }

    .main .bottom-row {
        display: none;
    }

    .sidebar {
        width: 300px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
}

.blink {
    animation: blink-animation 20s steps(50, start) infinite;
    -webkit-animation: blink-animation 20s steps(50, start) infinite;
}

@keyframes blink-animation {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    60% {
        opacity: 1;
    }

    70% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

@-webkit-keyframes blink-animation {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    60% {
        opacity: 1;
    }

    70% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.klar {
    float: right;
}

.klar img {
    height: 35px;
    width: auto;
    float: right;
    position: relative;
    top: 4px;
}

.ndslogo {
    height: 35px;
    width: auto;
    float: right;
    position: relative;
    top: 4px;
}

.k-tabstrip-items {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
}

.my-reconnect-modal > div {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    overflow: hidden;
    background-color: #fff;
    opacity: 0.8;
    text-align: center;
    font-weight: bold;
}

.components-reconnect-hide > div {
    display: none;
}

.components-reconnect-show > div {
    display: none;
}

.components-reconnect-show > .show {
    flex-wrap: wrap;
    display: flex;
    justify-content: center;
    align-items: center;
}

.components-reconnect-failed > div {
    display: none;
}

.components-reconnect-failed > .failed {
    flex-wrap: wrap;
    display: flex;
    justify-content: center;
    align-items: center;
}

.components-reconnect-rejected > div {
    display: none;
}

.components-reconnect-rejected > .rejected {
    flex-wrap: wrap;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Telerik Grid Footer Page Selection*/
.k-pager-numbers-wrap > ul {
    margin-top: 0;
    margin-bottom: 0;
}

.smallGrid, .smallGrid .k-filtercell *, .smallGrid .k-grid-edit-cell input {
    font-size: 13px;
}

.smallGrid .k-dropdown.k-header.k-dropdown-operator {
    width: calc(8px + 2em) !important;
}

.logModal {
    width: 70%;
    max-height: 90%;
}

.organisationModal {
    max-height: 90%;
    max-width: 75%;
}

.vorgangModal {
    width: 80%;
    min-height: 700px;
    max-height: 90%;
    position: absolute;
    top: 5%;
    left: auto;
    -webkit-transform: translate(0%, 0%);
    -ms-transform: translate(0%, 0%);
    transform: translate(0%, 0%);
}

@media (min-width: 768px) {
    .vorgangModal {
        width: 90%;
    }
}

@media (min-width: 1200px) {
    .vorgangModal {
        width: 1024px;
    }
}

.vorgangAktionen .k-window-title {
    display: flex;
    justify-content: right;
}
