#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;
}
.dropArea {
    border: 2px dashed #343a40;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    font-size: 1.5rem;
    cursor: pointer;
    position: relative;
    min-height: 200px;
    color: #6c757d;
}

.dropArea:hover {
    background-color: #f8f9fa;
    color: #333;
}

.dropArea input[type=file] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.dropAreaDrug {
    background-color: #007bff;
}
.cb-inherit label {
    margin: 0;
    margin-top: .3rem;
    margin-left: .5rem;
}
.cb-inherit input {
    height: 0.85rem;
    margin-top: .3rem;
}
.k-numerictextbox.form-control {
    padding: 0 !important;
    display: block;
}
a.btn {
    color: #FFF !important;
}
.topButtonBar {
    margin-bottom: 1em;
}
table.objektelist tr:hover {
    background-color: rgb(234, 234, 234);
}
.sidebar {
    /*position: fixed;*/
    z-index: 100;
    height: 100vh;
    overflow-y: scroll;
    max-width: 100vw !important;
    min-width: 1px !important;
    white-space: nowrap;
    overflow-x: hidden;
    transition: width 0.2s;
}
/*.main-sidebar {
    margin-left: 260px;
}*/
.objektInfoRow {
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}
input[readonly] {
    background-color: #e5eaef;
}
.k-input {
    height: calc(1.8125rem + 2px) !important;
}
.k-numerictextbox {
    width: auto !important;
}
@media (min-width: 1px) and (max-width: 991.98px) {
    .sidebar.toggled {
        margin-left: -260px;
    }
    .sidebar {
        margin-left: 0;
    }
    .navbar {
        width: 100%;
    }
    footer.footer {
        width: 100%;
    }
    .content {
        width: 100%;
        max-width: 100%;
    }
}
.color-alt {
    color: rgba(0, 0, 0, 0.2);
}
.rowRIMOOld {
    color: #e80000;
}
.rowRIMOBlue {
    color: #007ad7;
}
.rowRIMOBold {
    font-weight: bold;
}
.rowRIMOAngebot {
    font-style: italic;
}
.rowGlobalFilter {
    min-height: 34px;
}
.k-grid-content, .k-grid-content-locked {
    white-space: nowrap !important;
}
.gutter.gutter-horizontal {
    background-color: #e7e7e7;
    cursor: col-resize;
}
.sidebar-dropdown .sidebar-link {
    padding: .55rem 1.5rem .55rem 1.55rem !important;
}
.wrapper.page {
    height: 100%;
}
.main {
    height: 100%;
    max-height: 100%;
    overflow-y: scroll;
    transition: width 0.2s;
}
body {
    overflow: hidden;
    line-height: 1 !important;
}
.riverProgressBar {
    transition: width linear 1s;
}
.skeleton-table-row {
    height: 60px;
    display: flex;
    justify-content: space-evenly;
}

.skeleton-table-col {
    height: 60px;
    flex-basis: 25%
}
.form-group {
    margin-bottom: 0.2rem !important;
}
.k-button-md.k-icon-button > .k-button-icon {
    min-width: 0.85rem !important;
    min-height: 0.85rem !important;
}
.alert-data-changed {
    position: fixed;
    right: 0.85rem;
    top: 5rem;
    z-index: 1000;
}
.tab .nav-tabs .nav-link.active {
    font-weight: bold;
}
.sticky-btn-bar {
    z-index: 100;
    position: sticky;
    bottom: -1px;
    background-color: white;
    padding: 12px 0;
    margin-top: 12px;
    transition: opacity ease-in-out 0.5s;
}
.sticky-btn-bar.is-sticky {
    opacity: 0.2;
}
.sticky-btn-bar.is-sticky:hover {
    opacity: 1;
}
.row-beitragsrechnung, .row-rechnung, .pointer {
    cursor: pointer;
}
label {
    margin-bottom: .2rem !important;
    margin-top: .3rem !important;
}
.objettype-1-bgcolor {
    background-color: #ffffff !important;
}
.objettype-2-bgcolor {
    background-color: #fecf50 !important;
}
.objettype-3-bgcolor {
    background-color: #f9fad1 !important;
}
.objettype-4-bgcolor {
    background-color: #9fffe3 !important;
}
.objettype-5-bgcolor {
    background-color: #ffc294 !important;
}
.objettype-1-bgcolor:hover {
    background-color: #DDD !important;
}
.objettype-2-bgcolor:hover {
    background-color: #fecf5080 !important;
}
.objettype-3-bgcolor:hover {
    background-color: #f9fad180 !important;
}
.objettype-4-bgcolor:hover {
    background-color: #9fffe380 !important;
}
.objettype-5-bgcolor:hover {
    background-color: #ffc29480 !important;
}
.required {
    background-color: #ffeeee !important;
}
.rimo-tooltip::after {
    content: "\f05a";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 0.5em;
    cursor: help;
}
.RIMOGrid {
    min-height: 600px;
}
/* Vorschau des Risikoort-CSV-Imports: alter Wert -> neuer Wert */
.rimo-csv-preview {
    max-height: calc(100vh - 400px);
    overflow: auto;
}
.rimo-csv-preview table {
    margin-bottom: 0;
}
.rimo-csv-preview th {
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: #fff;
    white-space: nowrap;
}
.rimo-csv-preview td {
    min-width: 10rem;
    max-width: 25rem;
    overflow-wrap: anywhere;
}
/* Zeilenumbrüche nur innerhalb der Werte erhalten, nicht zwischen alt, Pfeil und neu */
.rimo-csv-old {
    color: #6c757d;
    text-decoration: line-through;
    white-space: pre-wrap;
}
.rimo-csv-arrow {
    margin: 0 0.4em;
    color: #6c757d;
    white-space: nowrap;
}
.rimo-csv-new {
    font-weight: 600;
    white-space: pre-wrap;
}
.rimo-csv-empty {
    font-style: italic;
    text-decoration: none;
}
.navbar {
    padding: 2px !important;
}
.avatar {
    width: 20px !important;
    height: 20px !important;
}
.content {
    padding: 0.5rem 0.5rem 1.5rem !important;
}
.card {
    margin-bottom: 0.85rem !important;
}
.card.mandantBorder {
    border: 2px solid #1abc9c! important;
    padding: 1rem;
    margin-top: 1rem;
}
.menuitem-mandant {
    border-left: 4px solid #1abc9c;
}
.mandant-bcolor {
    background-color: #1abc9c;
}
.menuitem-schaden {
    border-left: 4px solid #3498db;
}
.menuitem-vertrag {
    border-left: 4px solid #9b59b6;
}
.menuitem-versicherer {
    border-left: 4px solid #e67e22;
}
.menuitem-vfstelle {
    border-left: 4px solid #f1c40f;
}
.menuitem-objekt {
    border-left: 4px solid #2ecc71;
}
.menuitem-admin {
    border-left: 4px solid #e74c3c;
}
.menuitem-mandant .active {
    background-color: #1abc9c;
    color: #FFF;
}
.menuitem-schaden .active {
    background-color: #3498db;
    color: #FFF;
}
.menuitem-vertrag .active {
    background-color: #9b59b6;
    color: #FFF;
}
.menuitem-versicherer .active {
    background-color: #e67e22;
    color: #FFF;
}
.menuitem-vfstelle .active {
    background-color: #f1c40f;
    color: #FFF;
}
.menuitem-objekt .active {
    background-color: #2ecc71;
    color: #FFF;
}
.menuitem-admin .active {
    background-color: #e74c3c;
    color: #FFF;
}
.page-mandant {
    border-top: 4px solid #1abc9c;
    background-color: #f2f2f2;
}
    .page-mandant .nav-link.active {
        border-top: 4px solid #1abc9c;
    }

.page-schaden {
    border-top: 4px solid #3498db;
    background-color: #f2f2f2;
}
    .page-schaden .nav-link.active {
        border-top: 4px solid #3498db;
    }
.page-vertrag {
    border-top: 4px solid #9b59b6;
    background-color: #f2f2f2;
}
    .page-vertrag .nav-link.active {
        border-top: 4px solid #9b59b6;
    }
.page-versicherer {
    border-top: 4px solid #e67e22;
    background-color: #f2f2f2;
}
.page-versicherer .nav-link.active {
    border-top: 4px solid #e67e22;
}

.page-vfstelle {
    border-top: 4px solid #f1c40f;
    background-color: #f2f2f2;
}
.page-vfstelle .nav-link.active {
    border-top: 4px solid #f1c40f;
}

.page-objekt {
    border-top: 4px solid #2ecc71;
    background-color: #f2f2f2;
}
    .page-objekt .nav-link.active {
        border-top: 4px solid #2ecc71;
    }
.page-admin {
    border-top: 4px solid #e74c3c;
    background-color: #f2f2f2;
}
    .page-admin .nav-link.active {
        border-top: 4px solid #e74c3c;
    }
.sidebar-header.menuitem-mandant a {
    color: #1abc9c !important;
    font-weight: bold;
    font-size: 0.85rem;
}
.sidebar-header.menuitem-schaden a {
    color: #3498db !important;
    font-weight: bold;
    font-size: 0.85rem;
}
.sidebar-header.menuitem-vertrag a {
    color: #9b59b6 !important;
    font-weight: bold;
    font-size: 0.85rem;
}
.sidebar-header.menuitem-vfstelle a {
    color: #f1c40f !important;
    font-weight: bold;
    font-size: 0.85rem;
}
.sidebar-header.menuitem-versicherer a {
    color: #e67e22 !important;
    font-weight: bold;
    font-size: 0.85rem;
}
.sidebar-header.menuitem-objekt a {
    color: #2ecc71 !important;
    font-weight: bold;
    font-size: 0.85rem;
}
.sidebar-header.menuitem-admin a {
    color: #e74c3c !important;
    font-weight: bold;
    font-size: 0.85rem;
}
.validation-errors {
    list-style-type: disclosure-closed;
    padding: 8px 0 8px 30px;
    background-color: #dc3545;
    color: #FFF;
    line-height: 1.6rem;
}
.e-input-group .e-input[readonly], .e-input-group.e-control-wrapper .e-input[readonly], .e-float-input input[readonly], .e-float-input.e-control-wrapper input[readonly], .e-float-input textarea[readonly], .e-float-input.e-control-wrapper textarea[readonly] {
    background-color: #e5eaef !important;
}
.text-info {
    font-weight: 600;
}
.elfinder-table-header-sticky table {
    background-color: white;
}
.fileChooserModal {
    max-width: 90% !important;
}
.k-grid a {
    text-decoration: underline !important;
}
.remark-cell {
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Native Checkboxen in den Zuordnungslisten des Benutzer-Editors (Mandanten, Objekte,
   Verträge, Vertragsführende Stellen, Versicherer, Benutzerrechte) sauber zur Zeile ausrichten.
   Bootstrap positioniert .form-check-input sonst absolut, wodurch die Checkbox nach oben/links
   verschoben erscheint (wurde früher von der TelerikCheckBox überschrieben). */
.form-group-row .form-check {
    display: flex;
    align-items: center;
    padding-left: 0;
    margin-bottom: .2rem;
}

.form-group-row .form-check-input {
    position: static;
    flex-shrink: 0;
    margin: 0 .4rem 0 0;
}

/* Toasts maskieren HTML (escapeHtml) – Zeilenumbrüche in Meldungen (z. B. Validierungslisten) trotzdem anzeigen. */
#toast-container .toast-message {
    white-space: pre-line;
}

/* Benutzerrechte: Bereichskarten (UserAccessRightsSelector). Sobald in einer Karte mindestens ein
   Schreibrecht gesetzt ist (.has-write), wird die Karte rot hervorgehoben. */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr));
    gap: 1rem;
    width: 100%;
    align-items: start;
}

.rights-card {
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: .25rem;
    overflow: hidden;
}

.rights-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .5rem .75rem;
    font-weight: 600;
    background: rgba(0, 0, 0, .03);
    border-bottom: 1px solid rgba(0, 0, 0, .125);
}

.rights-card-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .35rem;
}

.rights-badge {
    font-size: .75rem;
    font-weight: 400;
    padding: .1rem .5rem;
    border-radius: 10rem;
    background: rgba(0, 0, 0, .08);
    white-space: nowrap;
}

.rights-badge-write {
    font-weight: 600;
    color: #fff;
    background: #c0182a;
}

.rights-section {
    padding: .5rem .75rem;
}

.rights-section-title {
    margin-bottom: .25rem;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6c757d;
}

.rights-section-write {
    background: rgba(244, 68, 85, .06);
    border-top: 1px solid rgba(244, 68, 85, .35);
}

.rights-section-write .rights-section-title,
.rights-section-write .form-check-label {
    color: #c0182a;
}

.rights-card.has-write {
    border-color: #f44455;
}

.rights-card.has-write .rights-card-header {
    color: #c0182a;
    background: rgba(244, 68, 85, .15);
    border-bottom-color: rgba(244, 68, 85, .5);
}

/* elFinder: system managed (RIMO) folders are shown with a blue folder icon (closed and open, tree and file view). */
.elfinder .elfinder-navbar-dir.rimo-system-folder > .elfinder-navbar-icon,
.elfinder .rimo-system-folder .elfinder-cwd-icon-directory {
    filter: hue-rotate(170deg) saturate(1.4);
}

/* Mein Konto */
.account-card .card-header {
    background: transparent;
}

.account-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 0;
    border-bottom: 1px solid #e9ecef;
}

.account-row:first-child {
    padding-top: 0;
}

.account-label {
    font-size: .8rem;
    color: #6c757d;
}

.account-value {
    font-weight: 600;
    word-break: break-all;
}

.account-edit {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: .25rem;
    padding: 1rem;
    margin: .75rem 0;
}

.account-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    font-size: 1.75rem;
    color: #fff;
    background: #00ba88;
}

.twofa-method-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-right: .75rem;
    border-radius: 50%;
    color: #6c757d;
    background: #f1f3f5;
}

.twofa-method-default {
    border-left: 4px solid #2c7be5;
    background: rgba(44, 123, 229, .06);
}

.twofa-method-default .twofa-method-icon {
    color: #fff;
    background: #2c7be5;
}

.twofa-default-badge {
    font-size: .8rem;
    padding: .4em .7em;
}

.twofa-method-actions {
    white-space: nowrap;
}
