html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.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;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
/*Fix for dropdown going behind a grid*/
.dropdown-menu {
    position: fixed !important;
}

/* ===============================
   RADZEN + BOOTSTRAP THEMED DROPDOWNS
   Reusable site-wide styling
   =============================== */

    /* -------------------------
   Radzen-styled Bootstrap dropdown
   Put in app.css after bootstrap + Radzen css
   ------------------------- */

    /* Force Bootstrap internal dropdown bg var to our Radzen card bg */
    .dropdown-menu,
    .dropdown-menu.show {
        --bs-dropdown-bg: var(--rz-card-background-color) !important;
        background-color: var(--rz-card-background-color) !important;
        border: 1px solid var(--rz-border-color, rgba(0,0,0,0.08)) !important;
        box-shadow: 0 6px 12px rgba(0,0,0,0.08) !important;
        opacity: 1 !important;
        backdrop-filter: none !important;
        z-index: 1200 !important; /* make sure it appears above grid content */
        border-radius: 8px !important; /* rounded corners to match Radzen */
        padding: 0.25rem 0 !important;
    }

/* Make the toggle match Radzen buttons and get the same rounded feel */
.dropdown-toggle {
    background-color: var(--rz-button-background, var(--rz-primary-color)) !important;
    color: var(--rz-button-color, var(--rz-background-color)) !important;
    border: 1px solid var(--rz-border-color, rgba(0,0,0,0.08)) !important;
    box-shadow: none !important;
    border-radius: 8px !important;
}

/* Individual items: text + icon color */
.dropdown-menu .dropdown-item,
.dropdown-menu.show .dropdown-item {
    color: var(--rz-text-color) !important;
    background: transparent !important;
    padding: .4rem 1rem !important;
    display: flex;
    align-items: center;
}

    /* Icon inside item */
    .dropdown-menu .dropdown-item i {
        color: var(--rz-text-color) !important;
        margin-right: .5rem;
    }

  /*  .dropdown-menu .dropdown-item.dropdown-item:hover {
        color: var(--rz-success-color) !important;
    }*/

/*body .dropdown-menu .dropdown-item:hover,
body .dropdown-menu .dropdown-item:focus {
    color: var(--rz-success-color) !important;
}*/

    /* Hover / focus / active state — force high contrast */
    .dropdown-menu .dropdown-item:hover,
    .dropdown-menu.show .dropdown-item:hover,
    .dropdown-menu .dropdown-item:focus,
    .dropdown-menu .dropdown-item.active,
    .dropdown-menu.show .dropdown-item.active {
        background-color: var(--rz-primary-hover-color, rgba(0,0,0,0.06)) !important;
     /*   color: var(--rz-background-color) !important;*/
         color: var(--rz-secondary-text-color) !important;
     /*   color: var(--rz-success-color) !important;*/
        text-decoration: none !important;
    }

    /* If you use <button class="dropdown-item">, remove default outline and keep focus visible properly */
    .dropdown-menu .dropdown-item:focus {
        outline: none !important;
        box-shadow: inset 0 0 0 2px rgba(255,255,255,0.05);
    }

/* Make sure the menu isn't semi-transparent due to parent RGBA backgrounds */
.dropdown, .dropdown-menu {
    background-clip: padding-box !important;
}

/* Optional: slightly bigger corner on large screens */
@media (min-width: 992px) {
    .dropdown-menu {
        border-radius: 10px !important;
    }

    .dropdown-toggle {
        border-radius: 10px !important;
    }
}

/* Next to are required for word wrap in table cell and align top */

/* Target all grid cells in this table */
.rz-grid-table td {
    vertical-align: top !important; /* vertical alignment */
    text-align: left !important; /* horizontal alignment */
    white-space: pre-wrap !important; /* wrap text */
    word-break: break-word !important; /* break long words */
}

/* Prevent Radzen text truncation span from forcing center */
.rz-cell-data {
    display: block !important; /* allow wrapping and top align */
    white-space: normal !important; /* override truncation */
    overflow: visible !important; /* show full content */
    text-overflow: clip !important; /* remove ellipsis */
}

/*text to show carriage returns*/
.handleCarriageReturns{
    white-space: pre-wrap;
}

/* for missing materials icons*/
.rzi {
    font-family: 'Material Symbols Outlined' !important;
}
.nestplan-shell {
    --rz-sidebar-width: 15.625rem;
    --rz-header-min-height: 3.75rem;
    --rz-layout-body-padding: 1.5rem;
}

/* Keep the header and footer in the grid on account pages with interactive islands. */
.nestplan-shell > :is(.rz-header, .rz-footer).fixed {
    position: static;
}

.nestplan-shell .nestplan-page {
    min-inline-size: 0;
    scroll-padding-block-start: var(--rz-layout-body-padding);
}

.nestplan-header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand context actions";
    align-items: center;
    gap: 1rem;
    min-block-size: var(--rz-header-min-height);
    padding: .5rem 1.5rem;
    color: var(--rz-header-color);
}

.nestplan-header-brand,
.nestplan-header-actions,
.nestplan-header .nestplan-brand-link,
.nestplan-header .nestplan-header-link {
    display: flex;
    align-items: center;
}

.nestplan-header-brand {
    grid-area: brand;
    gap: .625rem;
}

.nestplan-header-actions {
    grid-area: actions;
    gap: .25rem;
}

.nestplan-header .nestplan-brand-link {
    gap: .5rem;
    color: var(--rz-header-color);
    font-size: 1.05rem;
    font-weight: 700;
    white-space: nowrap;
}

.nestplan-header-context {
    grid-area: context;
    display: grid;
    min-inline-size: 0;
    padding-inline-start: 1rem;
    border-inline-start: 1px solid color-mix(in srgb, var(--rz-header-color) 32%, transparent);
    line-height: 1.3;
}

.nestplan-centre-name,
.nestplan-location-name,
.nestplan-account-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nestplan-centre-name {
    font-weight: 600;
}

.nestplan-location-name {
    font-size: .8125rem;
}

.nestplan-account-name {
    max-inline-size: 15rem;
}

.nestplan-shell .nestplan-header .nestplan-header-button,
.nestplan-shell .nestplan-header .nestplan-header-link {
    justify-content: center;
    gap: .375rem;
    min-inline-size: 2.5rem;
    min-block-size: 2.5rem;
    color: var(--rz-header-color);
}

.nestplan-shell .nestplan-header .nestplan-header-link {
    padding: .375rem .5rem;
    border-radius: var(--rz-border-radius);
    text-decoration: none;
}

.nestplan-header .nestplan-header-link:hover {
    background-color: color-mix(in srgb, var(--rz-header-color) 12%, transparent);
}

.nestplan-header :is(.nestplan-brand-link, .nestplan-header-link, .nestplan-header-button):focus-visible {
    outline: 2px solid var(--rz-header-color);
    outline-offset: 2px;
}

.nestplan-shell .nestplan-sidebar {
    display: flex;
    flex-direction: column;
    min-block-size: 0;
    --rz-panel-menu-item-padding-block: .55rem;
}

.nestplan-sidebar-menu {
    flex: 1 1 auto;
    overflow: auto;
    padding: .5rem;
}

.nestplan-sidebar .rz-navigation-item-link {
    min-block-size: 2.5rem;
    border-inline-start: .1875rem solid transparent;
}

.nestplan-sidebar .rz-navigation-item-link.active {
    border-inline-start-color: currentColor;
    font-weight: 650;
}

.nestplan-sidebar-context {
    display: grid;
    flex-shrink: 0;
    gap: .5rem;
    padding: .75rem;
    border-block-start: var(--rz-sidebar-border-inline-end);
}

@media (max-width: 768px) {
    .nestplan-shell {
        --rz-layout-body-padding: 1rem;
    }

    .nestplan-header-inner {
        gap: .5rem;
        padding-inline: .75rem;
    }

    .nestplan-header-brand {
        gap: .375rem;
    }

    .nestplan-header-action-label {
        display: none;
    }

    .nestplan-shell .nestplan-sidebar {
        position: relative;
        grid-area: rz-body;
        justify-self: start;
        z-index: var(--rz-sidebar-z);
    }

    .nestplan-shell .nestplan-header .nestplan-header-button,
    .nestplan-shell .nestplan-header .nestplan-header-link {
        min-inline-size: 2.75rem;
        min-block-size: 2.75rem;
    }
}

@media (max-width: 480px) {
    .nestplan-header-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "brand actions" "context context";
        row-gap: 0;
    }

    .nestplan-header-context {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: baseline;
        gap: .5rem;
        padding: .375rem 0 0;
        border: 0;
    }

    .nestplan-location-name {
        max-inline-size: 42vw;
    }
}
