:root {
    --bs-danger: red;
}

html, body {
    height: 100%;
}

app {
    display: block;
    height: 100%;
}

.header-logo {
    background-image: url(../images/SKGForms24Logo.svg);
    width: 180px;
    height: 24px;
    /* ... */
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

.large-button {
    padding: 20px; /* increase padding for bigger size */
    font-size: 20px; /* increase font size for readability */
    /* width: 200px; */
    background-color: ButtonHighlight;
    justify-content: center;
}

.big-action-button:focus {
    color: darkred;
}

.big-action-button {  
    font-size: 14px;
    padding: 10px 20px;
    background-color: red;  /* #007bff; = blau */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.start-menu-button-list {
    align-self: auto;
    background-color: greenyellow;
    flex-direction: column;
    margin: 20px 10px 10px 10px ;
}

.xaf-static-text.white-space-pre-line {
    font-size: 18px;
    color: #54595f;
}

.SaveActionStyle {
    background-color: dodgerblue;
    color: white;
    width: 200px;
}

#blazor-error-ui {
    background: inherit;
    bottom: 0;
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 100001;
}

.dxbl-grid-header-content {
    font-weight: 400;
    
}

.dxbl-image {
    color: darkgrey
}

.dxbl-pager-active-page-btn {
    background: darkgrey
}

.dxbl-checkbox.invalid.validation-invalid.dxbl-checkbox-unchecked {
    background-color:Window;
    
}

.cursor-pointer.xaf-prevent-contextmenu:hover {
    background-color: ghostwhite
}

.invalid {
    background-color: lightyellow;
}

.dxbl-text-edit {
    border-width: 2px
}

.dxbl-checkbox {
    border-width: 3px
}

/* Add this CSS rule to your site.css file */
.dxbl-checkbox.invalid.validation-invalid.dxbl-checkbox {
    background-color: var(--bs-danger);
}

@media (max-width: 1920px) {
    app .header-left-side .header-logo {
        display: flex !important;
    }

    app .sidebar {
        display: none !important;
    }

    app .collapse-toggle .sidebar {
        display: flex !important;
    }

    app .collapse-toggle .header-left-side {
        min-width: 1500;
    }
}

.vertical-buttons {
    display: flex;
    flex-direction: column;
    width: 500px;
    gap: 15px; /* Adjust the gap as needed */
    padding-left: 100px;
}

.menu-button {
    margin-top: 2% ;
    margin-left: 20%;
    height: 100px;
    width: 60%;
  /*  color: yellow; */
  /*  background-color: dimgray; */
  /*  border-color: blueviolet; */
    font-size:larger;
}

.dxbl-text-edit-input::placeholder {
    color: lightgray; /* Set the text color of NullText to lightgray, it doesn't work in the table welpen as wished .. */
}

/* Maximale Breite bei Tabellen in Formularen ausnutzen, siehe Welpen erfassen mit Eigentümer, Welpenliste in Wurfmeldung */
@media (min-width: 768px) {
    .dxbl-col-md-7 {
        -webkit-box-flex: 0;
        -webkit-flex: 0 0 auto;
        -ms-flex: 0 0 auto;
        flex: 0 0 auto;
        width: 100%;  /* 60% => 100% */
    }
}


/* Das Popup Window für das Einreichen ist nun mindestens 1100px bereit, d.h.
    auf kleinen Devices nicht gut brauchbar.
    Andere Lösungsmöglichkeiten:
    - Buttons vertikal anordnen
    - Reihenfolge der Buttons so, dass zuerst die Aktiven Actions links angezeigt werden
    - Nicht aktive Buttons ausblenden
    - Text kürzen
    - evtl. Scrollbar einbauen (wenn Buttons vertikal angeordnet sind
*/
/* Increase width of DevExpress popup dialog */

/*
.dxbl-popup-fixed-width {
    min-width: 300px !important;
    width: 90vw !important;
    max-width: 1200px !important;
}
*/
/* Ensure the modal content uses the full width 
.dxbl-modal-content {
    width: 90% !important;
}

/* Adjust the form layout inside popup 
.dxbl-fl-group {
    width: 100% !important;
}

/* Ensure buttons in toolbar use full width 
.dxbl-toolbar .dxbl-btn-toolbar {
    width: 100% !important;
}


/* Ensure memo editor uses full width */
.dxbl-memo-edit {
    width: 100% !important;
}
