.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    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+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.asparagus-loader-container {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f7fcf5;
    z-index: 9999;
    overflow: hidden;
}

.asparagus-track {
    position: relative;
    width: 100vw;
    height: 120px;
    margin-bottom: 20px;
}

.asparagus {
    position: absolute;
    bottom: 0;
    right: -100px;
    width: 20px;
    height: 100px;
    animation: moveLeft 3s linear infinite;
    transform-origin: bottom center;
}

.asparagus.delay-1 { animation-delay: 1s; height: 90px; }
.asparagus.delay-2 { animation-delay: 2s; height: 110px; }

.stalk {
    position: absolute;
    bottom: 0;
    left: 2px;
    width: 16px;
    height: 85%;
    background: linear-gradient(to right, #6eb950, #8ad26b);
    border-radius: 4px;
}

.head {
    position: absolute;
    top: 5px;
    left: 0;
    width: 20px;
    height: 35px;
    background: linear-gradient(to right, #4a8c32, #65af48);
    border-radius: 50% 50% 20% 20%;
    clip-path: polygon(50% 0%, 100% 40%, 80% 100%, 20% 100%, 0% 40%);
    z-index: 2;
}

.spear-leaf {
    position: absolute;
    width: 8px;
    height: 10px;
    background: #4a8c32;
    border-radius: 0 100% 0 100%;
    z-index: 3;
}

@keyframes moveLeft {
    0% { right: -100px; transform: rotate(-10deg); }
    25% { transform: rotate(5deg) translateY(-5px); }
    50% { transform: rotate(-5deg) translateY(0); }
    75% { transform: rotate(5deg) translateY(-5px); }
    100% { right: 100vw; transform: rotate(-10deg); }
}

.loading-progress-text {
    position: relative;
    text-align: center;
    font-weight: bold;
    font-size: 1.25rem;
    color: #4a8c32;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Trwa ładowanie...");
    }

code {
    color: #c02d76;
}

.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;
}

.login-bg-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.login-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: loginFade 25s infinite;
}

@keyframes loginFade {
    0%   { opacity: 0; }
    4%   { opacity: 1; }
    16%  { opacity: 1; }
    20%  { opacity: 0; }
    100% { opacity: 0; }
}

.login-bg-slide:nth-child(1) { background-image: url('../login_background/background_image_1.webp'); animation-delay: 0s; }
.login-bg-slide:nth-child(2) { background-image: url('../login_background/background_image_2.webp'); animation-delay: 5s; }
.login-bg-slide:nth-child(3) { background-image: url('../login_background/background_image_3.webp'); animation-delay: 10s; }
.login-bg-slide:nth-child(4) { background-image: url('../login_background/background_image_4.webp'); animation-delay: 15s; }
.login-bg-slide:nth-child(5) { background-image: url('../login_background/background_image_5.webp'); animation-delay: 20s; }

/* ═══════════════════════════════════════════════════════════════
   BC-style Settings – Navision / Dynamics 365 Business Central
   ═══════════════════════════════════════════════════════════════ */

/* ── Settings Dashboard Tiles ── */
.bc-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.bc-tile {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}

.bc-tile:hover {
    border-color: #0078d4;
    box-shadow: 0 1px 4px rgba(0,120,212,.18);
}

.bc-tile-icon {
    flex-shrink: 0;
    color: #0078d4;
}

.bc-tile-body {
    min-width: 0;
}

.bc-tile-title {
    font-size: .95rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px;
}

.bc-tile-desc {
    font-size: .8rem;
    color: #666;
    margin: 0;
    line-height: 1.35;
}

/* ── BC Command Bar ── */
.bc-command-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    flex-wrap: wrap;
}

.bc-command-bar .mud-button-root {
    text-transform: none;
    font-weight: 500;
    font-size: .82rem;
    letter-spacing: 0;
    min-width: auto;
    padding: 4px 12px;
}

/* ── BC List Page Layout ── */
.bc-list-page {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 145px);
}

.bc-list-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.bc-list-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.bc-list-content {
    flex: 1;
    min-height: 0;
    overflow: auto;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 4px 4px;
}

.bc-list-content .mud-table {
    box-shadow: none;
}

.bc-list-content .mud-table .mud-table-head .mud-table-cell {
    font-weight: 600;
    font-size: .82rem;
    background: #f5f5f5;
    color: #333;
}

.bc-list-content .mud-table .mud-table-body .mud-table-cell {
    font-size: .83rem;
}

/* ── Settings dashboard header ── */
.bc-settings-header {
    margin-bottom: 20px;
}

.bc-settings-header h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px;
}

.bc-settings-header p {
    font-size: .85rem;
    color: #666;
    margin: 0;
}