@keyframes v-progress-start {
    0% {
        width: 0%;
    }

    100% {
        width: 50%;
    }
}

:root {
    /* Keep dialog headers and toolbar/search bars using the same blue */
    --ix-color-blue: #309fdb;
    --dialog-header-color: #309fdb;
    --ix-color-navy-blue: #0062a1;
    --ix-color-schavemaker-blue: #062F87;
}

.v-loading-indicator,
.v-system-error,
.v-reconnect-dialog {
    position: absolute;
    left: 0;
    top: 0;
    border: none;
    z-index: 10000;
    pointer-events: none;
}

.v-system-error,
.v-reconnect-dialog {
    display: flex;
    right: 0;
    bottom: 0;
    background: var(--lumo-shade-40pct);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-content: center;
}

.v-system-error .caption,
.v-system-error .message,
.v-reconnect-dialog .text {
    width: 30em;
    max-width: 100%;
    padding: var(--lumo-space-xl);
    background: var(--lumo-base-color);
    border-radius: 4px;
    text-align: center;
}

.v-system-error .caption {
    padding-bottom: var(--lumo-space-s);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.v-system-error .message {
    pointer-events: all;
    padding-top: var(--lumo-space-s);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    color: grey;
}

.v-loading-indicator {
    position: fixed !important;
    width: 50%;
    opacity: 0.6;
    height: 4px;
    background: var(--lumo-primary-color);
    transition: none;
    animation: v-progress-start 1000ms 200ms both;
}

.v-loading-indicator[style*="none"] {
    display: block !important;
    width: 100% !important;
    opacity: 0;
    transition: opacity 500ms 300ms, width 300ms;
    animation: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 300;
}

.dialog-container {
    padding: 0;
    height: 100%;
}

.dialog-header {
    width: 100%;
    align-items: center;
    background-color: var(--dialog-header-color, #6e8598);
    flex-shrink: 0;
    height: 48px;
    padding: 16px 10px;
}

.dialog-header-text {
    color: white;
    margin: 0;
    padding-left: 10px;
}

.dialog-close-button {
    color: white;
    margin-left: auto;
}

.dialog-content {
    width: 100%;
    margin: 0 !important;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow: hidden;
    flex: 1 1 auto;
    min-height: 0;
    background-color: var(--lumo-base-color);
    max-height: 800px;
}

.dialog-content > * {
    width: 100%;
}

.dialog-content vaadin-form-layout {
}

.dialog-content filter-buttons-bar {
    margin-top: 0;
}

.dialog-form-buttons vaadin-button[theme~="primary"],
.dialog-content form-buttons-bar vaadin-button[theme~="primary"],
.form-buttons-bar vaadin-button[theme~="primary"] {
    --lumo-primary-color: var(--ix-color-blue);
    --lumo-primary-text-color: #ffffff;
    --lumo-primary-color-10pct: rgba(48, 159, 219, 0.1);
    --lumo-primary-color-50pct: rgba(48, 159, 219, 0.5);
}

.dialog-icon {
    color: white;
    width: 24px;
    height: 24px;
}
