html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* =========================
   Radzen Buttons
========================= */
.rz-button {
    border-radius: 12px !important;
    min-height: 0 !important;
}

/* =========================
   Algemene Radzen Inputs
========================= */
.rz-input,
.rz-dropdown,
.rz-multiselect,
.rz-spinner,
.rz-calendar,
.rz-autocomplete,
.rz-numeric,
.rz-mask,
.rz-textarea {
    border-radius: 12px !important;
}

/* =========================
   DatePicker
========================= */
.rz-datepicker {
    border-radius: 12px !important;
    border: 1px solid var(--rz-input-border-color, #ccc) !important;
    overflow: hidden; /* voorkomt dat inner input corners door de container heen piepen */
}

    .rz-datepicker .rz-input,
    .rz-datepicker .rz-datepicker-input,
    .rz-datepicker .rz-popup {
        border: none !important;
        border-radius: 0 !important;
    }

/* =========================
   DataGrid Filter Inputs - Uitgebreid
========================= */
/* Alle input elementen in DataGrid filters */
.rz-datagrid input,
.rz-datagrid .rz-input,
.rz-datagrid .rz-textbox,
.rz-datagrid .rz-numeric,
.rz-datagrid .rz-dropdown,
.rz-datagrid .rz-multiselect {
    border-radius: 12px !important;
}

/* Specifieke filter cell selectors */
.rz-datagrid .rz-filtercell input,
.rz-datagrid .rz-filtercell .rz-input,
.rz-datagrid .rz-filtercell .rz-textbox,
.rz-datagrid .rz-filtercell .rz-numeric,
.rz-datagrid .rz-filtercell .rz-dropdown {
    border-radius: 12px !important;
}

/* Header filter inputs */
.rz-datagrid .rz-column-filter input,
.rz-datagrid .rz-column-filter .rz-input,
.rz-datagrid .rz-column-filter .rz-textbox {
    border-radius: 12px !important;
}

/* Filter row inputs */
.rz-datagrid .rz-grid-filter-row input,
.rz-datagrid .rz-grid-filter-row .rz-input,
.rz-datagrid .rz-grid-filter-row .rz-textbox {
    border-radius: 12px !important;
}

/* DataGrid filter wrapper containers */
.rz-datagrid th .rz-input-container,
.rz-datagrid th .rz-textbox-container,
.rz-datagrid .rz-filtercell .rz-input-container {
    border-radius: 12px !important;
    overflow: hidden;
}

/* Extra specifieke selectors voor hardnekkige filters */
.rz-datagrid thead input[type="text"],
.rz-datagrid thead input[type="number"],
.rz-datagrid thead input[type="email"],
.rz-datagrid thead input[type="password"],
.rz-datagrid thead input[type="search"],
.rz-datagrid tbody input[type="text"],
.rz-datagrid tbody input[type="number"] {
    border-radius: 12px !important;
}

/* =========================
   Extra fix voor overige wrapper-inputs
========================= */
.rz-grid-filter .rz-input,
.rz-cell-filter .rz-input,
.rz-grid-filter-row .rz-input,
.rz-column-filter-wrapper .rz-input,
.rz-filter-input .rz-input {
    border-radius: 12px !important;
}

/* =========================
   Fallback voor alle Radzen inputs
========================= */
/* Als laatste redmiddel - zeer brede selector */
[class*="rz-"] input,
[class*="rz-"].rz-input,
.rz-component input {
    border-radius: 12px !important;
}

/* =========================
   Popup/Overlay components
========================= */
.rz-popup,
.rz-dropdown-panel,
.rz-multiselect-panel,
.rz-calendar-popup,
.rz-dialog,
.rz-notification {
    border-radius: 12px !important;
}

/* =========================
   Cards en Panels
========================= */
.rz-card,
.rz-panel,
.rz-fieldset {
    border-radius: 12px !important;
}

/* =========================
   Radzen HtmlEditor
========================= */
.rz-html-editor {
    border-radius: 12px !important;
    border: 1px solid var(--rz-input-border-color, #ccc) !important;
    overflow: hidden !important; /* zorgt dat content binnen de radius blijft */
}

/* Content binnen de editor */
.rz-html-editor .rz-html-editor-content {
    border-radius: 12px !important;
    padding: 8px; /* optioneel: wat lucht */
}

/* =========================
   Radzen DataGrid
========================= */
.rz-data-grid {
    border-radius: 12px !important;
    border: 1px solid var(--rz-input-border-color, #ccc) !important;
    overflow: hidden !important; /* voorkomt dat de table hoeken doorsteken */
}

/* Zorg dat de table zich netjes voegt binnen de container */
.rz-data-grid .rz-grid-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100%;
}

/* Header-hoeken */
.rz-data-grid .rz-grid-table thead tr:first-child th:first-child {
    border-top-left-radius: 12px !important;
}

.rz-data-grid .rz-grid-table thead tr:first-child th:last-child {
    border-top-right-radius: 12px !important;
}

/* Footer/Pager-hoeken */
.rz-data-grid .rz-grid-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px !important;
}

.rz-data-grid .rz-grid-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px !important;
}


h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

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

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNz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iA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.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, "Loading");
    }

code {
    color: #c02d76;
}

label {
    font-weight: bold;
    color: darkblue;
    margin: 3px;
}

input {
    margin: 3px
}

.flex-outer div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

    .flex-outer div:last-child {
        margin-top: 20px;
    }

    .flex-outer div label,
    .flex-outer div input {
        flex: 1 0 120px;
        max-width: 220px;
    }

        .flex-outer div label + * {
            flex: 1 0 120px;
        }

.center-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Full viewport height */
    text-align: center;
}

.login-form {
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

.rz-header .rz-stack {
    height: 100%;
}

.header-image {
    display: block;
    margin: 0 auto 20px auto;
    max-width: 100%;
    height: auto;
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.form-actions {
    text-align: center;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

    .btn-primary:hover {
        background-color: #0056b3;
    }

.qr-code {
    margin-bottom: 20px; /* Adds whitespace below the QR code */
    max-width: 100%; /* Ensures QR code is responsive */
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.layout {
    display: flex;
    height: 100vh; /* Ensure the layout spans the entire height of the viewport */
    overflow: hidden;
}

.nav-menu {
    width: 250px; /* Fixed width for the NavMenu */
    position: fixed; /* Keep the NavMenu in place */
    height: 100vh; /* Full viewport height */
    background-color: #f4f4f4; /* Adjust the background color */
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1); /* Optional: Add a shadow for better UI */
    overflow-y: auto; /* Enable vertical scrolling if the content exceeds the height */
}


.dialogCss {
    width: 1200px !important;
}

.wrapperDialogCss {
    margin-left: -16px !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        width: 60px;
    }

    .main-content {
        margin-left: 60px;
        width: calc(100% - 60px);
    }

    .dialogCss {
        width: 400px !important;
    }
}

.radzencard-browsegrid {
    margin: 25px auto !important;
    padding: 15px !important;
    overflow-x: auto !important;
    min-width: 95% !important;
}

.radzencard-browsegrid-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-grow: 1; /* Ensures flexibility inside the grid */
    width: 100%; /* Stretch items to full available width */
}

/* Small italic bold HTML editor styling */
.html-editor-small-italic .rz-html-editor-content {
    font-size: 12px !important;
    font-style: italic !important;
    font-weight: bold !important;
    line-height: 1.4 !important;
}

    .html-editor-small-italic .rz-html-editor-content *,
    .html-editor-small-italic .rz-html-editor-content p,
    .html-editor-small-italic .rz-html-editor-content div,
    .html-editor-small-italic .rz-html-editor-content span {
        font-size: 12px !important;
        font-style: italic !important;
        font-weight: bold !important;
    }

    /* Remove default margins for cleaner look */
    .html-editor-small-italic .rz-html-editor-content p {
        margin: 0 0 5px 0 !important;
    }

        .html-editor-small-italic .rz-html-editor-content p:last-child {
            margin-bottom: 0 !important;
        }

/* Very small italic bold (10px) */
.html-editor-tiny-italic .rz-html-editor-content,
.html-editor-tiny-italic .rz-html-editor-content * {
    font-size: 10px !important;
    font-style: italic !important;
    font-weight: bold !important;
    line-height: 1.3 !important;
}

/* Medium small italic bold (14px) */
.html-editor-medium-italic .rz-html-editor-content,
.html-editor-medium-italic .rz-html-editor-content * {
    font-size: 14px !important;
    font-style: italic !important;
    font-weight: bold !important;
    line-height: 1.4 !important;
}

/* Only italic bold, normal size */
.html-editor-italic .rz-html-editor-content,
.html-editor-italic .rz-html-editor-content * {
    font-style: italic !important;
    font-weight: bold !important;
}

/* Clean up margins for all variants */
.html-editor-tiny-italic .rz-html-editor-content p,
.html-editor-medium-italic .rz-html-editor-content p,
.html-editor-italic .rz-html-editor-content p {
    margin: 0 0 5px 0 !important;
}

.html-editor-tiny-italic .rz-html-editor-content p:last-child,
.html-editor-medium-italic .rz-html-editor-content p:last-child,
.html-editor-italic .rz-html-editor-content p:last-child {
    margin-bottom: 0 !important;
}

.header-link {
    text-decoration: underline;
    color: blue;
    white-space: nowrap;
    display: inline-block;
    font-weight: 500;
}

.header-splitbutton {
    min-width: 110px;
    white-space: nowrap;
    flex-shrink: 0; /* voorkomt dat hij te smal wordt */
}

.header-logo {
    height: 50px;
    flex-shrink: 0; /* logo blijft altijd zichtbaar op 1 regel */
}

@media (max-width: 900px) {
    .header-link {
        font-size: 0.9rem;
    }

    .header-splitbutton {
        min-width: 90px;
    }

    .header-logo {
        height: 40px;
    }
}

.shepherd-element {
    z-index: 9999;
}

.shepherd-modal-overlay-container {
    z-index: 9998;
}

.shepherd-content {
    border-radius: 8px;
}

.shepherd-header {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.shepherd-title {
    font-weight: bold !important;
}

.shepherd-text {
    padding: 1rem;
    font-size: 1rem;
    line-height: 1.5;
}

.shepherd-footer {
    border-top: 1px solid #e0e0e0;
    padding-top: 1.25rem;
    padding-right: 1rem;
    padding-bottom: 0.75rem;
    padding-left: 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}


.shepherd-button {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.shepherd-footer .shepherd-button {
    margin-top: 0.75rem; 
}

/* Shepherd cancel-knop (links) */
.shepherd-button-secondary {
  background-color: #f44336 !important;   /* rood */
  color: white !important;
  border: none !important;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

/* Hover effect */
.shepherd-button-secondary:hover {
  background-color: #d32f2f !important;
}

/* Extra spacing zodat knoppen niet tegen elkaar plakken */
.shepherd-footer .shepherd-button + .shepherd-button {
  margin-left: 8px;
}
